st-comp 0.0.178 → 0.0.180
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 +3 -3
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -33
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +25 -30
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +457 -419
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -16
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +140 -142
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +274 -276
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +21 -23
- package/es/User.cjs +1 -1
- package/es/User.js +472 -482
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +440 -2878
- package/es/VarietySearch.cjs +12 -12
- package/es/VarietySearch.js +1199 -1176
- package/es/VirtualTable.cjs +1 -13
- package/es/VirtualTable.js +1547 -1567
- package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
- package/es/_initCloneObject-e2f0deb9.cjs +1 -0
- package/es/base-62a70f61.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/config-provider-178bb43c.cjs +1 -0
- package/es/config-provider-2e733cae.js +58 -0
- package/es/dayjs.min-2c20abe6.cjs +1 -0
- package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
- package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
- package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
- package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
- package/es/dropdown-f2fec683.cjs +1 -0
- package/es/el-button-5b08c08a.js +272 -0
- package/es/el-button-fc46a173.cjs +1 -0
- package/es/el-dialog-0b7166c9.cjs +1 -0
- package/es/el-dialog-d8d0da7a.js +276 -0
- package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
- package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
- package/es/el-empty-bb2b0235.cjs +1 -0
- package/es/el-form-item-caffd133.cjs +12 -0
- package/es/el-form-item-ff9c7d98.js +1267 -0
- package/es/el-input-6db30c8c.js +531 -0
- package/es/el-input-9c912678.cjs +1 -0
- package/es/el-input-number-05f150e5.js +311 -0
- package/es/el-input-number-6fe73563.cjs +1 -0
- package/es/el-loading-8514feaa.cjs +1 -0
- package/es/el-loading-93842445.js +203 -0
- package/es/el-menu-item-7a57c1be.cjs +1 -0
- package/es/el-menu-item-a886fbdd.js +768 -0
- package/es/el-message-8aa674f2.js +406 -0
- package/es/el-message-aad5b42b.cjs +1 -0
- package/es/el-message-box-2b6b2b68.js +550 -0
- package/es/el-message-box-53f355d7.cjs +1 -0
- package/es/el-overlay-540b2a02.js +324 -0
- package/es/el-overlay-96630a2e.cjs +1 -0
- package/es/el-popconfirm-2afdf6fb.cjs +1 -0
- package/es/el-popconfirm-c18d8035.js +162 -0
- package/es/el-popper-544fd77e.js +2412 -0
- package/es/el-popper-73466d7a.cjs +1 -0
- package/es/el-scrollbar-691cfc11.cjs +1 -0
- package/es/el-scrollbar-fae984e3.js +763 -0
- package/es/el-segmented-a7493831.js +142 -0
- package/es/el-segmented-b6bd3c0e.cjs +1 -0
- package/es/el-select-5959e837.cjs +1 -0
- package/es/el-select-ea8feecf.js +1251 -0
- package/es/el-table-column-9ef52443.js +3878 -0
- package/es/el-table-column-b824ac5c.cjs +14 -0
- package/es/el-tag-2fc9b9eb.js +116 -0
- package/es/el-tag-ecad6d02.cjs +1 -0
- package/es/index-2e331d74.js +10 -0
- package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
- package/es/index-3a74eae4.cjs +1 -0
- package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
- package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
- package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
- package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
- package/es/index-a9095b4a.js +163 -0
- package/es/index-a93dd9c4.cjs +1 -0
- package/es/index-ebd2fd7e.cjs +1 -0
- package/es/index-f1c702f6.cjs +1 -0
- package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
- package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
- package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
- package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-global-config-03735617.cjs +1 -0
- package/es/use-global-config-4b185eb5.js +71 -0
- package/es/validator-0e688e4e.cjs +1 -0
- package/es/validator-d12a8f8c.js +5 -0
- package/es/vnode-4db20540.cjs +1 -0
- package/es/vnode-a0795a4b.js +70 -0
- package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
- package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +226 -245
- package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
- package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlinePlus/index.vue +2 -1
- package/packages/VarSelectDialog/index.vue +43 -67
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
- package/packages/index.ts +0 -2
- package/src/pages/VarSelectDialog/index.vue +1 -1
- package/src/router/routes.ts +0 -5
- package/es/Dialog.cjs +0 -1
- package/es/Dialog.js +0 -95
- package/es/_commonjsHelpers-10dfc225.js +0 -8
- package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/es/_initCloneObject-9ccbb113.cjs +0 -1
- package/es/base-bdc10baa.cjs +0 -5
- package/es/base-d9284bf0.js +0 -304
- package/es/castArray-37eb9980.cjs +0 -1
- package/es/castArray-b0ab0165.js +0 -10
- package/es/config-provider-ec6b09df.cjs +0 -1
- package/es/config-provider-f0151e9f.js +0 -47
- package/es/dayjs.min-19fb125f.cjs +0 -1
- package/es/dropdown-b2dab5bb.cjs +0 -1
- package/es/el-button-34665425.js +0 -237
- package/es/el-button-960edd49.cjs +0 -1
- package/es/el-dialog-a412484e.js +0 -267
- package/es/el-dialog-cd484c1f.cjs +0 -1
- package/es/el-empty-627ec09e.cjs +0 -1
- package/es/el-form-item-668ba024.js +0 -1263
- package/es/el-form-item-e1c3104b.cjs +0 -12
- package/es/el-input-22e66e37.js +0 -523
- package/es/el-input-5163bda3.cjs +0 -1
- package/es/el-input-number-481e21c5.js +0 -284
- package/es/el-input-number-eb54cde4.cjs +0 -1
- package/es/el-loading-15a5501c.cjs +0 -1
- package/es/el-loading-d4e403ab.js +0 -187
- package/es/el-menu-item-404c10e5.js +0 -772
- package/es/el-menu-item-ac89e804.cjs +0 -1
- package/es/el-message-ad87b9dd.cjs +0 -1
- package/es/el-message-box-41f39f6d.js +0 -558
- package/es/el-message-box-6694f827.cjs +0 -1
- package/es/el-message-ef506caa.js +0 -375
- package/es/el-overlay-4a9fa4e1.js +0 -269
- package/es/el-overlay-e5d318c3.cjs +0 -1
- package/es/el-popconfirm-7b9183aa.js +0 -140
- package/es/el-popconfirm-a497b279.cjs +0 -1
- package/es/el-popper-14a9d493.cjs +0 -1
- package/es/el-popper-e73466eb.js +0 -2263
- package/es/el-scrollbar-45318df0.js +0 -201
- package/es/el-scrollbar-8bf765f2.cjs +0 -1
- package/es/el-segmented-3ba6d664.cjs +0 -1
- package/es/el-segmented-41820018.js +0 -135
- package/es/el-select-1d2309a1.cjs +0 -1
- package/es/el-select-d7a00294.js +0 -1130
- package/es/el-table-column-a2d0c635.js +0 -3805
- package/es/el-table-column-be9a76bb.cjs +0 -14
- package/es/el-tag-7f391090.js +0 -280
- package/es/el-tag-8d49d4d2.cjs +0 -1
- package/es/index-02ca0096.cjs +0 -5
- package/es/index-3120be08.js +0 -14
- package/es/index-5b81f4da.cjs +0 -1
- package/es/index-85a32a00.js +0 -59
- package/es/index-8d3c5e96.cjs +0 -3
- package/es/index-94f38460.js +0 -306
- package/es/index-a99a5307.cjs +0 -1
- package/es/index-b90c746b.cjs +0 -1
- package/es/index-d94bae37.cjs +0 -1
- package/es/index-d99fdc6d.js +0 -159
- package/es/use-form-common-props-592797e2.cjs +0 -2
- package/es/use-form-common-props-cc347a83.js +0 -171
- package/es/use-global-config-584b62f1.cjs +0 -1
- package/es/use-global-config-c7f0a7e3.js +0 -73
- package/es/validator-10fa54fe.js +0 -5
- package/es/validator-af488a9a.cjs +0 -1
- package/es/vnode-1b827c99.cjs +0 -1
- package/es/vnode-6be33bb1.js +0 -14
- package/packages/Dialog/index.ts +0 -8
- package/packages/Dialog/index.vue +0 -54
- package/src/pages/Dialog/index.vue +0 -16
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { M as Q, O as $, P as j, I as y, Q as R, p as T, E as W, R as x, S as C } from "./base-d9284bf0.js";
|
|
2
|
-
import { watch as b, ref as L } from "vue";
|
|
3
|
-
function v(e) {
|
|
4
|
-
var n;
|
|
5
|
-
const t = j(e);
|
|
6
|
-
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
7
|
-
}
|
|
8
|
-
const _ = T ? window : void 0;
|
|
9
|
-
function m(...e) {
|
|
10
|
-
let n, t, r, a;
|
|
11
|
-
if (Q(e[0]) || Array.isArray(e[0]) ? ([t, r, a] = e, n = _) : [n, t, r, a] = e, !n)
|
|
12
|
-
return $;
|
|
13
|
-
Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
|
|
14
|
-
const c = [], i = () => {
|
|
15
|
-
c.forEach((l) => l()), c.length = 0;
|
|
16
|
-
}, u = (l, f, o, s) => (l.addEventListener(f, o, s), () => l.removeEventListener(f, o, s)), d = b(() => [v(n), j(a)], ([l, f]) => {
|
|
17
|
-
i(), l && c.push(...t.flatMap((o) => r.map((s) => u(l, o, s, f))));
|
|
18
|
-
}, { immediate: !0, flush: "post" }), O = () => {
|
|
19
|
-
d(), i();
|
|
20
|
-
};
|
|
21
|
-
return y(O), O;
|
|
22
|
-
}
|
|
23
|
-
let h = !1;
|
|
24
|
-
function D(e, n, t = {}) {
|
|
25
|
-
const { window: r = _, ignore: a = [], capture: c = !0, detectIframe: i = !1 } = t;
|
|
26
|
-
if (!r)
|
|
27
|
-
return;
|
|
28
|
-
W && !h && (h = !0, Array.from(r.document.body.children).forEach((o) => o.addEventListener("click", $)));
|
|
29
|
-
let u = !0;
|
|
30
|
-
const d = (o) => a.some((s) => {
|
|
31
|
-
if (typeof s == "string")
|
|
32
|
-
return Array.from(r.document.querySelectorAll(s)).some((p) => p === o.target || o.composedPath().includes(p));
|
|
33
|
-
{
|
|
34
|
-
const p = v(s);
|
|
35
|
-
return p && (o.target === p || o.composedPath().includes(p));
|
|
36
|
-
}
|
|
37
|
-
}), l = [
|
|
38
|
-
m(r, "click", (o) => {
|
|
39
|
-
const s = v(e);
|
|
40
|
-
if (!(!s || s === o.target || o.composedPath().includes(s))) {
|
|
41
|
-
if (o.detail === 0 && (u = !d(o)), !u) {
|
|
42
|
-
u = !0;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
n(o);
|
|
46
|
-
}
|
|
47
|
-
}, { passive: !0, capture: c }),
|
|
48
|
-
m(r, "pointerdown", (o) => {
|
|
49
|
-
const s = v(e);
|
|
50
|
-
s && (u = !o.composedPath().includes(s) && !d(o));
|
|
51
|
-
}, { passive: !0 }),
|
|
52
|
-
i && m(r, "blur", (o) => {
|
|
53
|
-
var s;
|
|
54
|
-
const p = v(e);
|
|
55
|
-
((s = r.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(p != null && p.contains(r.document.activeElement)) && n(o);
|
|
56
|
-
})
|
|
57
|
-
].filter(Boolean);
|
|
58
|
-
return () => l.forEach((o) => o());
|
|
59
|
-
}
|
|
60
|
-
function J(e = {}) {
|
|
61
|
-
var n;
|
|
62
|
-
const { window: t = _ } = e, r = (n = e.document) != null ? n : t == null ? void 0 : t.document, a = R(() => null, () => r == null ? void 0 : r.activeElement);
|
|
63
|
-
return t && (m(t, "blur", (c) => {
|
|
64
|
-
c.relatedTarget === null && a.trigger();
|
|
65
|
-
}, !0), m(t, "focus", a.trigger, !0)), a;
|
|
66
|
-
}
|
|
67
|
-
function z(e, n = !1) {
|
|
68
|
-
const t = L(), r = () => t.value = !!e();
|
|
69
|
-
return r(), x(r, n), t;
|
|
70
|
-
}
|
|
71
|
-
const w = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, g = "__vueuse_ssr_handlers__";
|
|
72
|
-
w[g] = w[g] || {};
|
|
73
|
-
var I = Object.getOwnPropertySymbols, M = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable, k = (e, n) => {
|
|
74
|
-
var t = {};
|
|
75
|
-
for (var r in e)
|
|
76
|
-
M.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
|
|
77
|
-
if (e != null && I)
|
|
78
|
-
for (var r of I(e))
|
|
79
|
-
n.indexOf(r) < 0 && N.call(e, r) && (t[r] = e[r]);
|
|
80
|
-
return t;
|
|
81
|
-
};
|
|
82
|
-
function Z(e, n, t = {}) {
|
|
83
|
-
const r = t, { window: a = _ } = r, c = k(r, ["window"]);
|
|
84
|
-
let i;
|
|
85
|
-
const u = z(() => a && "ResizeObserver" in a), d = () => {
|
|
86
|
-
i && (i.disconnect(), i = void 0);
|
|
87
|
-
}, O = b(() => v(e), (f) => {
|
|
88
|
-
d(), u.value && a && f && (i = new ResizeObserver(n), i.observe(f, c));
|
|
89
|
-
}, { immediate: !0, flush: "post" }), l = () => {
|
|
90
|
-
d(), O();
|
|
91
|
-
};
|
|
92
|
-
return y(l), {
|
|
93
|
-
isSupported: u,
|
|
94
|
-
stop: l
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
var E = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable, H = (e, n) => {
|
|
98
|
-
var t = {};
|
|
99
|
-
for (var r in e)
|
|
100
|
-
B.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
|
|
101
|
-
if (e != null && E)
|
|
102
|
-
for (var r of E(e))
|
|
103
|
-
n.indexOf(r) < 0 && G.call(e, r) && (t[r] = e[r]);
|
|
104
|
-
return t;
|
|
105
|
-
};
|
|
106
|
-
function ee(e, n, t = {}) {
|
|
107
|
-
const r = t, { window: a = _ } = r, c = H(r, ["window"]);
|
|
108
|
-
let i;
|
|
109
|
-
const u = z(() => a && "MutationObserver" in a), d = () => {
|
|
110
|
-
i && (i.disconnect(), i = void 0);
|
|
111
|
-
}, O = b(() => v(e), (f) => {
|
|
112
|
-
d(), u.value && a && f && (i = new MutationObserver(n), i.observe(f, c));
|
|
113
|
-
}, { immediate: !0 }), l = () => {
|
|
114
|
-
d(), O();
|
|
115
|
-
};
|
|
116
|
-
return y(l), {
|
|
117
|
-
isSupported: u,
|
|
118
|
-
stop: l
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
var P;
|
|
122
|
-
(function(e) {
|
|
123
|
-
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
124
|
-
})(P || (P = {}));
|
|
125
|
-
var F = Object.defineProperty, S = Object.getOwnPropertySymbols, U = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable, A = (e, n, t) => n in e ? F(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Y = (e, n) => {
|
|
126
|
-
for (var t in n || (n = {}))
|
|
127
|
-
U.call(n, t) && A(e, t, n[t]);
|
|
128
|
-
if (S)
|
|
129
|
-
for (var t of S(n))
|
|
130
|
-
X.call(n, t) && A(e, t, n[t]);
|
|
131
|
-
return e;
|
|
132
|
-
};
|
|
133
|
-
const q = {
|
|
134
|
-
easeInSine: [0.12, 0, 0.39, 0],
|
|
135
|
-
easeOutSine: [0.61, 1, 0.88, 1],
|
|
136
|
-
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
137
|
-
easeInQuad: [0.11, 0, 0.5, 0],
|
|
138
|
-
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
139
|
-
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
140
|
-
easeInCubic: [0.32, 0, 0.67, 0],
|
|
141
|
-
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
142
|
-
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
143
|
-
easeInQuart: [0.5, 0, 0.75, 0],
|
|
144
|
-
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
145
|
-
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
146
|
-
easeInQuint: [0.64, 0, 0.78, 0],
|
|
147
|
-
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
148
|
-
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
149
|
-
easeInExpo: [0.7, 0, 0.84, 0],
|
|
150
|
-
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
151
|
-
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
152
|
-
easeInCirc: [0.55, 0, 1, 0.45],
|
|
153
|
-
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
154
|
-
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
155
|
-
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
156
|
-
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
157
|
-
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
158
|
-
};
|
|
159
|
-
Y({
|
|
160
|
-
linear: C
|
|
161
|
-
}, q);
|
|
162
|
-
const te = 4, re = {
|
|
163
|
-
vertical: {
|
|
164
|
-
offset: "offsetHeight",
|
|
165
|
-
scroll: "scrollTop",
|
|
166
|
-
scrollSize: "scrollHeight",
|
|
167
|
-
size: "height",
|
|
168
|
-
key: "vertical",
|
|
169
|
-
axis: "Y",
|
|
170
|
-
client: "clientY",
|
|
171
|
-
direction: "top"
|
|
172
|
-
},
|
|
173
|
-
horizontal: {
|
|
174
|
-
offset: "offsetWidth",
|
|
175
|
-
scroll: "scrollLeft",
|
|
176
|
-
scrollSize: "scrollWidth",
|
|
177
|
-
size: "width",
|
|
178
|
-
key: "horizontal",
|
|
179
|
-
axis: "X",
|
|
180
|
-
client: "clientX",
|
|
181
|
-
direction: "left"
|
|
182
|
-
}
|
|
183
|
-
}, ne = ({
|
|
184
|
-
move: e,
|
|
185
|
-
size: n,
|
|
186
|
-
bar: t
|
|
187
|
-
}) => ({
|
|
188
|
-
[t.size]: n,
|
|
189
|
-
transform: `translate${t.axis}(${e}%)`
|
|
190
|
-
});
|
|
191
|
-
export {
|
|
192
|
-
re as B,
|
|
193
|
-
te as G,
|
|
194
|
-
J as a,
|
|
195
|
-
m as b,
|
|
196
|
-
ee as c,
|
|
197
|
-
v as d,
|
|
198
|
-
D as o,
|
|
199
|
-
ne as r,
|
|
200
|
-
Z as u
|
|
201
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./base-bdc10baa.cjs"),_=require("vue");function v(e){var r;const t=u.resolveUnref(e);return(r=t==null?void 0:t.$el)!=null?r:t}const b=u.isClient?window:void 0;function y(...e){let r,t,n,i;if(u.isString$1(e[0])||Array.isArray(e[0])?([t,n,i]=e,r=b):[r,t,n,i]=e,!r)return u.noop;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const f=[],a=()=>{f.forEach(l=>l()),f.length=0},c=(l,d,o,s)=>(l.addEventListener(d,o,s),()=>l.removeEventListener(d,o,s)),p=_.watch(()=>[v(r),u.resolveUnref(i)],([l,d])=>{a(),l&&f.push(...t.flatMap(o=>n.map(s=>c(l,o,s,d))))},{immediate:!0,flush:"post"}),m=()=>{p(),a()};return u.tryOnScopeDispose(m),m}let h=!1;function z(e,r,t={}){const{window:n=b,ignore:i=[],capture:f=!0,detectIframe:a=!1}=t;if(!n)return;u.isIOS&&!h&&(h=!0,Array.from(n.document.body.children).forEach(o=>o.addEventListener("click",u.noop)));let c=!0;const p=o=>i.some(s=>{if(typeof s=="string")return Array.from(n.document.querySelectorAll(s)).some(O=>O===o.target||o.composedPath().includes(O));{const O=v(s);return O&&(o.target===O||o.composedPath().includes(O))}}),l=[y(n,"click",o=>{const s=v(e);if(!(!s||s===o.target||o.composedPath().includes(s))){if(o.detail===0&&(c=!p(o)),!c){c=!0;return}r(o)}},{passive:!0,capture:f}),y(n,"pointerdown",o=>{const s=v(e);s&&(c=!o.composedPath().includes(s)&&!p(o))},{passive:!0}),a&&y(n,"blur",o=>{var s;const O=v(e);((s=n.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(O!=null&&O.contains(n.document.activeElement))&&r(o)})].filter(Boolean);return()=>l.forEach(o=>o())}function R(e={}){var r;const{window:t=b}=e,n=(r=e.document)!=null?r:t==null?void 0:t.document,i=u.computedWithControl(()=>null,()=>n==null?void 0:n.activeElement);return t&&(y(t,"blur",f=>{f.relatedTarget===null&&i.trigger()},!0),y(t,"focus",i.trigger,!0)),i}function $(e,r=!1){const t=_.ref(),n=()=>t.value=!!e();return n(),u.tryOnMounted(n,r),t}const w=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g="__vueuse_ssr_handlers__";w[g]=w[g]||{};var E=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,C=(e,r)=>{var t={};for(var n in e)T.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&E)for(var n of E(e))r.indexOf(n)<0&&j.call(e,n)&&(t[n]=e[n]);return t};function W(e,r,t={}){const n=t,{window:i=b}=n,f=C(n,["window"]);let a;const c=$(()=>i&&"ResizeObserver"in i),p=()=>{a&&(a.disconnect(),a=void 0)},m=_.watch(()=>v(e),d=>{p(),c.value&&i&&d&&(a=new ResizeObserver(r),a.observe(d,f))},{immediate:!0,flush:"post"}),l=()=>{p(),m()};return u.tryOnScopeDispose(l),{isSupported:c,stop:l}}var I=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,Q=(e,r)=>{var t={};for(var n in e)L.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&I)for(var n of I(e))r.indexOf(n)<0&&M.call(e,n)&&(t[n]=e[n]);return t};function k(e,r,t={}){const n=t,{window:i=b}=n,f=Q(n,["window"]);let a;const c=$(()=>i&&"MutationObserver"in i),p=()=>{a&&(a.disconnect(),a=void 0)},m=_.watch(()=>v(e),d=>{p(),c.value&&i&&d&&(a=new MutationObserver(r),a.observe(d,f))},{immediate:!0}),l=()=>{p(),m()};return u.tryOnScopeDispose(l),{isSupported:c,stop:l}}var P;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(P||(P={}));var x=Object.defineProperty,S=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,A=(e,r,t)=>r in e?x(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,G=(e,r)=>{for(var t in r||(r={}))N.call(r,t)&&A(e,t,r[t]);if(S)for(var t of S(r))B.call(r,t)&&A(e,t,r[t]);return e};const H={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};G({linear:u.identity},H);const U=4,q={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},F=({move:e,size:r,bar:t})=>({[t.size]:r,transform:`translate${t.axis}(${e}%)`});exports.BAR_MAP=q;exports.GAP=U;exports.onClickOutside=z;exports.renderThumbStyle=F;exports.unrefElement=v;exports.useActiveElement=R;exports.useEventListener=y;exports.useMutationObserver=k;exports.useResizeObserver=W;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),S=require("./el-scrollbar-8bf765f2.cjs"),s=require("./base-bdc10baa.cjs"),u=require("./use-form-common-props-592797e2.cjs"),L=require("./el-popper-14a9d493.cjs"),m=require("./index-d94bae37.cjs"),A=require("./index-02ca0096.cjs"),D=s.buildProps({direction:{type:s.definePropType(String),default:"horizontal"},options:{type:s.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:u.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...L.useAriaProps(["ariaLabel"])}),F={[m.UPDATE_MODEL_EVENT]:a=>s.isString(a)||s.isNumber(a)||s.isBoolean(a),[m.CHANGE_EVENT]:a=>s.isString(a)||s.isNumber(a)||s.isBoolean(a)},O=e.defineComponent({name:"ElSegmented"}),$=e.defineComponent({...O,props:D,emits:F,setup(a,{emit:g}){const l=a,o=s.useNamespace("segmented"),y=A.useId(),C=u.useFormSize(),I=u.useFormDisabled(),{formItem:c}=u.useFormItem(),{inputId:V,isLabeledByFormItem:h}=u.useFormItemInputId(l,{formItemContext:c}),d=e.ref(null),_=S.useActiveElement(),n=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),N=t=>{const r=f(t);g(m.UPDATE_MODEL_EVENT,r),g(m.CHANGE_EVENT,r)},f=t=>s.isObject(t)?t.value:t,k=t=>s.isObject(t)?t.label:t,p=t=>!!(I.value||s.isObject(t)&&t.disabled),v=t=>l.modelValue===f(t),B=t=>l.options.find(r=>f(r)===t),z=t=>[o.e("item"),o.is("selected",v(t)),o.is("disabled",p(t))],b=()=>{if(!d.value)return;const t=d.value.querySelector(".is-selected"),r=d.value.querySelector(".is-selected input");if(!t||!r){n.width=0,n.height=0,n.translateX=0,n.translateY=0,n.focusVisible=!1;return}const i=t.getBoundingClientRect();n.isInit=!0,l.direction==="vertical"?(n.height=i.height,n.translateY=t.offsetTop):(n.width=i.width,n.translateX=t.offsetLeft);try{n.focusVisible=r.matches(":focus-visible")}catch{}},P=e.computed(()=>[o.b(),o.m(C.value),o.is("block",l.block)]),T=e.computed(()=>({width:l.direction==="vertical"?"100%":`${n.width}px`,height:l.direction==="vertical"?`${n.height}px`:"100%",transform:l.direction==="vertical"?`translateY(${n.translateY}px)`:`translateX(${n.translateX}px)`,display:n.isInit?"block":"none"})),q=e.computed(()=>[o.e("item-selected"),o.is("disabled",p(B(l.modelValue))),o.is("focus-visible",n.focusVisible)]),w=e.computed(()=>l.name||y.value);return S.useResizeObserver(d,b),e.watch(_,b),e.watch(()=>l.modelValue,()=>{var t;b(),l.validateEvent&&((t=c==null?void 0:c.validate)==null||t.call(c,"change").catch(r=>s.debugWarn(r)))},{flush:"post"}),(t,r)=>t.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(V),ref_key:"segmentedRef",ref:d,class:e.normalizeClass(e.unref(P)),role:"radiogroup","aria-label":e.unref(h)?void 0:t.ariaLabel||"segmented","aria-labelledby":e.unref(h)?e.unref(c).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(o).e("group"),e.unref(o).m(l.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(T)),class:e.normalizeClass(e.unref(q))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(i,E)=>(e.openBlock(),e.createElementBlock("label",{key:E,class:e.normalizeClass(z(i))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(o).e("item-input")),type:"radio",name:e.unref(w),disabled:p(i),checked:v(i),onChange:Y=>N(i)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("item-label"))},[e.renderSlot(t.$slots,"default",{item:i},()=>[e.createTextVNode(e.toDisplayString(k(i)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var x=s._export_sfc($,[["__file","segmented.vue"]]);const X=s.withInstall(x);exports.ElSegmented=X;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as U, reactive as j, computed as u, watch as _, openBlock as b, createElementBlock as h, unref as l, normalizeClass as r, createElementVNode as m, normalizeStyle as G, Fragment as H, renderList as M, renderSlot as W, createTextVNode as J, toDisplayString as K, createCommentVNode as Q } from "vue";
|
|
2
|
-
import { a as Z, u as ee } from "./el-scrollbar-45318df0.js";
|
|
3
|
-
import { b as te, d as V, i as C, m as k, l as w, u as se, n as ae, _ as le, e as v, w as ne } from "./base-d9284bf0.js";
|
|
4
|
-
import { d as oe, a as ie, c as re, u as de, b as ce } from "./use-form-common-props-cc347a83.js";
|
|
5
|
-
import { u as ue } from "./el-popper-e73466eb.js";
|
|
6
|
-
import { U as N, C as z } from "./index-94f38460.js";
|
|
7
|
-
import { a as me } from "./index-a8e9ec0f.js";
|
|
8
|
-
const pe = te({
|
|
9
|
-
direction: {
|
|
10
|
-
type: V(String),
|
|
11
|
-
default: "horizontal"
|
|
12
|
-
},
|
|
13
|
-
options: {
|
|
14
|
-
type: V(Array),
|
|
15
|
-
default: () => []
|
|
16
|
-
},
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: [String, Number, Boolean],
|
|
19
|
-
default: void 0
|
|
20
|
-
},
|
|
21
|
-
block: Boolean,
|
|
22
|
-
size: oe,
|
|
23
|
-
disabled: Boolean,
|
|
24
|
-
validateEvent: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !0
|
|
27
|
-
},
|
|
28
|
-
id: String,
|
|
29
|
-
name: String,
|
|
30
|
-
...ue(["ariaLabel"])
|
|
31
|
-
}), fe = {
|
|
32
|
-
[N]: (o) => C(o) || k(o) || w(o),
|
|
33
|
-
[z]: (o) => C(o) || k(o) || w(o)
|
|
34
|
-
}, ge = B({
|
|
35
|
-
name: "ElSegmented"
|
|
36
|
-
}), be = /* @__PURE__ */ B({
|
|
37
|
-
...ge,
|
|
38
|
-
props: pe,
|
|
39
|
-
emits: fe,
|
|
40
|
-
setup(o, { emit: y }) {
|
|
41
|
-
const s = o, a = se("segmented"), L = me(), F = ie(), P = re(), { formItem: d } = de(), { inputId: T, isLabeledByFormItem: S } = ce(s, {
|
|
42
|
-
formItemContext: d
|
|
43
|
-
}), c = U(null), $ = Z(), t = j({
|
|
44
|
-
isInit: !1,
|
|
45
|
-
width: 0,
|
|
46
|
-
height: 0,
|
|
47
|
-
translateX: 0,
|
|
48
|
-
translateY: 0,
|
|
49
|
-
focusVisible: !1
|
|
50
|
-
}), x = (e) => {
|
|
51
|
-
const n = p(e);
|
|
52
|
-
y(N, n), y(z, n);
|
|
53
|
-
}, p = (e) => v(e) ? e.value : e, A = (e) => v(e) ? e.label : e, f = (e) => !!(P.value || v(e) && e.disabled), I = (e) => s.modelValue === p(e), D = (e) => s.options.find((n) => p(n) === e), X = (e) => [
|
|
54
|
-
a.e("item"),
|
|
55
|
-
a.is("selected", I(e)),
|
|
56
|
-
a.is("disabled", f(e))
|
|
57
|
-
], g = () => {
|
|
58
|
-
if (!c.value)
|
|
59
|
-
return;
|
|
60
|
-
const e = c.value.querySelector(".is-selected"), n = c.value.querySelector(".is-selected input");
|
|
61
|
-
if (!e || !n) {
|
|
62
|
-
t.width = 0, t.height = 0, t.translateX = 0, t.translateY = 0, t.focusVisible = !1;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const i = e.getBoundingClientRect();
|
|
66
|
-
t.isInit = !0, s.direction === "vertical" ? (t.height = i.height, t.translateY = e.offsetTop) : (t.width = i.width, t.translateX = e.offsetLeft);
|
|
67
|
-
try {
|
|
68
|
-
t.focusVisible = n.matches(":focus-visible");
|
|
69
|
-
} catch {
|
|
70
|
-
}
|
|
71
|
-
}, Y = u(() => [
|
|
72
|
-
a.b(),
|
|
73
|
-
a.m(F.value),
|
|
74
|
-
a.is("block", s.block)
|
|
75
|
-
]), O = u(() => ({
|
|
76
|
-
width: s.direction === "vertical" ? "100%" : `${t.width}px`,
|
|
77
|
-
height: s.direction === "vertical" ? `${t.height}px` : "100%",
|
|
78
|
-
transform: s.direction === "vertical" ? `translateY(${t.translateY}px)` : `translateX(${t.translateX}px)`,
|
|
79
|
-
display: t.isInit ? "block" : "none"
|
|
80
|
-
})), R = u(() => [
|
|
81
|
-
a.e("item-selected"),
|
|
82
|
-
a.is("disabled", f(D(s.modelValue))),
|
|
83
|
-
a.is("focus-visible", t.focusVisible)
|
|
84
|
-
]), q = u(() => s.name || L.value);
|
|
85
|
-
return ee(c, g), _($, g), _(() => s.modelValue, () => {
|
|
86
|
-
var e;
|
|
87
|
-
g(), s.validateEvent && ((e = d == null ? void 0 : d.validate) == null || e.call(d, "change").catch((n) => ae(n)));
|
|
88
|
-
}, {
|
|
89
|
-
flush: "post"
|
|
90
|
-
}), (e, n) => e.options.length ? (b(), h("div", {
|
|
91
|
-
key: 0,
|
|
92
|
-
id: l(T),
|
|
93
|
-
ref_key: "segmentedRef",
|
|
94
|
-
ref: c,
|
|
95
|
-
class: r(l(Y)),
|
|
96
|
-
role: "radiogroup",
|
|
97
|
-
"aria-label": l(S) ? void 0 : e.ariaLabel || "segmented",
|
|
98
|
-
"aria-labelledby": l(S) ? l(d).labelId : void 0
|
|
99
|
-
}, [
|
|
100
|
-
m("div", {
|
|
101
|
-
class: r([l(a).e("group"), l(a).m(s.direction)])
|
|
102
|
-
}, [
|
|
103
|
-
m("div", {
|
|
104
|
-
style: G(l(O)),
|
|
105
|
-
class: r(l(R))
|
|
106
|
-
}, null, 6),
|
|
107
|
-
(b(!0), h(H, null, M(e.options, (i, E) => (b(), h("label", {
|
|
108
|
-
key: E,
|
|
109
|
-
class: r(X(i))
|
|
110
|
-
}, [
|
|
111
|
-
m("input", {
|
|
112
|
-
class: r(l(a).e("item-input")),
|
|
113
|
-
type: "radio",
|
|
114
|
-
name: l(q),
|
|
115
|
-
disabled: f(i),
|
|
116
|
-
checked: I(i),
|
|
117
|
-
onChange: (ve) => x(i)
|
|
118
|
-
}, null, 42, ["name", "disabled", "checked", "onChange"]),
|
|
119
|
-
m("div", {
|
|
120
|
-
class: r(l(a).e("item-label"))
|
|
121
|
-
}, [
|
|
122
|
-
W(e.$slots, "default", { item: i }, () => [
|
|
123
|
-
J(K(A(i)), 1)
|
|
124
|
-
])
|
|
125
|
-
], 2)
|
|
126
|
-
], 2))), 128))
|
|
127
|
-
], 2)
|
|
128
|
-
], 10, ["id", "aria-label", "aria-labelledby"])) : Q("v-if", !0);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
var he = /* @__PURE__ */ le(be, [["__file", "segmented.vue"]]);
|
|
132
|
-
const ke = ne(he);
|
|
133
|
-
export {
|
|
134
|
-
ke as E
|
|
135
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),W=require("./el-popper-14a9d493.cjs"),x=require("./index-a99a5307.cjs"),ee=require("./index-19fa1fcf.cjs"),i=require("./base-bdc10baa.cjs"),N=require("./castArray-37eb9980.cjs"),I=require("./index-02ca0096.cjs"),D=require("./el-scrollbar-8bf765f2.cjs"),Ce=require("./index-5b81f4da.cjs"),T=require("./use-form-common-props-592797e2.cjs"),k=require("./index-d94bae37.cjs"),vt=require("./scroll-4769a65d.cjs"),z=require("./el-tag-8d49d4d2.cjs"),Ee=require("./debounce-9e323221.cjs");var ye=1/0,ht=17976931348623157e292;function bt(e){if(!e)return e===0?e:0;if(e=Ee.toNumber(e),e===ye||e===-ye){var a=e<0?-1:1;return a*ht}return e===e?e:0}function gt(e){var a=bt(e),s=a%1;return a===a?s?a-s:a:0}function Ct(e,a,s,p){for(var r=e.length,m=s+(p?1:-1);p?m--:++m<r;)if(a(e[m],m,e))return m;return-1}var yt=Math.max,St=Math.min;function Et(e,a,s){var p=e==null?0:e.length;if(!p)return-1;var r=p-1;return s!==void 0&&(r=gt(s),r=s<0?yt(p+r,0):St(r,p-1)),Ct(e,z.baseIteratee(a),r,!0)}const wt=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function Vt(){const e=t.shallowRef(),a=t.ref(0),s=11,p=t.computed(()=>({minWidth:`${Math.max(a.value,s)}px`})),r=()=>{var m,n;a.value=(n=(m=e.value)==null?void 0:m.getBoundingClientRect().width)!=null?n:0};return D.useResizeObserver(e,r),{calculatorRef:e,calculatorWidth:a,inputStyle:p}}const we=Symbol("ElSelectGroup"),J=Symbol("ElSelect");function Ot(e,a){const s=t.inject(J),p=t.inject(we,{disabled:!1}),r=t.computed(()=>h(N.castArray(s.props.modelValue),e.value)),m=t.computed(()=>{var f;if(s.props.multiple){const b=N.castArray((f=s.props.modelValue)!=null?f:[]);return!r.value&&b.length>=s.props.multipleLimit&&s.props.multipleLimit>0}else return!1}),n=t.computed(()=>e.label||(i.isObject(e.value)?"":e.value)),g=t.computed(()=>e.value||e.label||""),c=t.computed(()=>e.disabled||a.groupDisabled||m.value),v=t.getCurrentInstance(),h=(f=[],b)=>{if(i.isObject(e.value)){const d=s.props.valueKey;return f&&f.some(w=>t.toRaw(I.get(w,d))===I.get(b,d))}else return f&&f.includes(b)},C=()=>{!e.disabled&&!p.disabled&&(s.states.hoveringIndex=s.optionsArray.indexOf(v.proxy))},E=f=>{const b=new RegExp(wt(f),"i");a.visible=b.test(n.value)||e.created};return t.watch(()=>n.value,()=>{!e.created&&!s.props.remote&&s.setSelected()}),t.watch(()=>e.value,(f,b)=>{const{remote:d,valueKey:w}=s.props;if(f!==b&&(s.onOptionDestroy(b,v.proxy),s.onOptionCreate(v.proxy)),!e.created&&!d){if(w&&i.isObject(f)&&i.isObject(b)&&f[w]===b[w])return;s.setSelected()}}),t.watch(()=>p.disabled,()=>{a.groupDisabled=p.disabled},{immediate:!0}),{select:s,currentLabel:n,currentValue:g,itemSelected:r,isDisabled:c,hoverItem:C,updateOption:E}}const kt=t.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const a=i.useNamespace("select"),s=I.useId(),p=t.computed(()=>[a.be("dropdown","item"),a.is("disabled",t.unref(g)),a.is("selected",t.unref(n)),a.is("hovering",t.unref(E))]),r=t.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:m,itemSelected:n,isDisabled:g,select:c,hoverItem:v,updateOption:h}=Ot(e,r),{visible:C,hover:E}=t.toRefs(r),f=t.getCurrentInstance().proxy;c.onOptionCreate(f),t.onBeforeUnmount(()=>{const d=f.value,{selected:w}=c.states,K=w.some(q=>q.value===f.value);t.nextTick(()=>{c.states.cachedOptions.get(d)===f&&!K&&c.states.cachedOptions.delete(d)}),c.onOptionDestroy(d,f)});function b(){g.value||c.handleOptionSelect(f)}return{ns:a,id:s,containerKls:p,currentLabel:m,itemSelected:n,isDisabled:g,select:c,hoverItem:v,updateOption:h,visible:C,hover:E,selectOptionClick:b,states:r}}});function It(e,a,s,p,r,m){return t.withDirectives((t.openBlock(),t.createElementBlock("li",{id:e.id,class:t.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:t.withModifiers(e.selectOptionClick,["stop"])},[t.renderSlot(e.$slots,"default",{},()=>[t.createElementVNode("span",null,t.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[t.vShow,e.visible]])}var te=i._export_sfc(kt,[["render",It],["__file","option.vue"]]);const Tt=t.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=t.inject(J),a=i.useNamespace("select"),s=t.computed(()=>e.props.popperClass),p=t.computed(()=>e.props.multiple),r=t.computed(()=>e.props.fitInputWidth),m=t.ref("");function n(){var g;m.value=`${(g=e.selectRef)==null?void 0:g.offsetWidth}px`}return t.onMounted(()=>{n(),D.useResizeObserver(e.selectRef,n)}),{ns:a,minWidth:m,popperClass:s,isMultiple:p,isFitInputWidth:r}}});function Bt(e,a,s,p,r,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:t.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.be("dropdown","header"))},[t.renderSlot(e.$slots,"header")],2)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default"),e.$slots.footer?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.ns.be("dropdown","footer"))},[t.renderSlot(e.$slots,"footer")],2)):t.createCommentVNode("v-if",!0)],6)}var Nt=i._export_sfc(Tt,[["render",Bt],["__file","select-dropdown.vue"]]);const Dt=(e,a)=>{const{t:s}=I.useLocale(),p=I.useId(),r=i.useNamespace("select"),m=i.useNamespace("input"),n=t.reactive({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),g=t.ref(null),c=t.ref(null),v=t.ref(null),h=t.ref(null),C=t.ref(null),E=t.ref(null),f=t.ref(null),b=t.ref(null),d=t.ref(null),w=t.ref(null),K=t.ref(null),{isComposing:q,handleCompositionStart:Oe,handleCompositionUpdate:ke,handleCompositionEnd:Ie}=Ce.useComposition({afterComposition:l=>pe(l)}),{wrapperRef:le,isFocused:ne,handleBlur:Te}=Ce.useFocusController(C,{beforeFocus(){return L.value},afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,n.menuVisibleOnFocus=!0)},beforeBlur(l){var o,u;return((o=v.value)==null?void 0:o.isFocusInsideContent(l))||((u=h.value)==null?void 0:u.isFocusInsideContent(l))},afterBlur(){y.value=!1,n.menuVisibleOnFocus=!1}}),y=t.ref(!1),$=t.ref(),{form:H,formItem:R}=T.useFormItem(),{inputId:Be}=T.useFormItemInputId(e,{formItemContext:R}),{valueOnClear:Ne,isEmptyValue:De}=T.useEmptyValues(e),L=t.computed(()=>e.disabled||(H==null?void 0:H.disabled)),Z=t.computed(()=>i.isArray(e.modelValue)?e.modelValue.length>0:!De(e.modelValue)),Me=t.computed(()=>{var l;return(l=H==null?void 0:H.statusIcon)!=null?l:!1}),ze=t.computed(()=>e.clearable&&!L.value&&n.inputHovering&&Z.value),oe=t.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),$e=t.computed(()=>r.is("reverse",oe.value&&y.value)),ae=t.computed(()=>(R==null?void 0:R.validateState)||""),Re=t.computed(()=>T.ValidateComponentsMap[ae.value]),Le=t.computed(()=>e.remote?300:0),Ae=t.computed(()=>e.remote&&!n.inputValue&&n.options.size===0),Pe=t.computed(()=>e.loading?e.loadingText||s("el.select.loading"):e.filterable&&n.inputValue&&n.options.size>0&&A.value===0?e.noMatchText||s("el.select.noMatch"):n.options.size===0?e.noDataText||s("el.select.noData"):null),A=t.computed(()=>V.value.filter(l=>l.visible).length),V=t.computed(()=>{const l=Array.from(n.options.values()),o=[];return n.optionValues.forEach(u=>{const S=l.findIndex(O=>O.value===u);S>-1&&o.push(l[S])}),o.length>=l.length?o:l}),Fe=t.computed(()=>Array.from(n.cachedOptions.values())),We=t.computed(()=>{const l=V.value.filter(o=>!o.created).some(o=>o.currentLabel===n.inputValue);return e.filterable&&e.allowCreate&&n.inputValue!==""&&!l}),se=()=>{e.filterable&&i.isFunction(e.filterMethod)||e.filterable&&e.remote&&i.isFunction(e.remoteMethod)||V.value.forEach(l=>{var o;(o=l.updateOption)==null||o.call(l,n.inputValue)})},ie=T.useFormSize(),Ke=t.computed(()=>["small"].includes(ie.value)?"small":"default"),qe=t.computed({get(){return y.value&&!Ae.value},set(l){y.value=l}}),He=t.computed(()=>{if(e.multiple&&!i.isUndefined(e.modelValue))return N.castArray(e.modelValue).length===0&&!n.inputValue;const l=i.isArray(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||i.isUndefined(l)?!n.inputValue:!0}),Ue=t.computed(()=>{var l;const o=(l=e.placeholder)!=null?l:s("el.select.placeholder");return e.multiple||!Z.value?o:n.selectedLabel}),je=t.computed(()=>i.isIOS?null:"mouseenter");t.watch(()=>e.modelValue,(l,o)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(n.inputValue="",U("")),j(),!z.isEqual(l,o)&&e.validateEvent&&(R==null||R.validate("change").catch(u=>i.debugWarn(u)))},{flush:"post",deep:!0}),t.watch(()=>y.value,l=>{l?U(n.inputValue):(n.inputValue="",n.previousQuery=null,n.isBeforeHide=!0),a("visible-change",l)}),t.watch(()=>n.options.entries(),()=>{i.isClient&&(j(),e.defaultFirstOption&&(e.filterable||e.remote)&&A.value&&re())},{flush:"post"}),t.watch(()=>n.hoveringIndex,l=>{i.isNumber(l)&&l>-1?$.value=V.value[l]||{}:$.value={},V.value.forEach(o=>{o.hover=$.value===o})}),t.watchEffect(()=>{n.isBeforeHide||se()});const U=l=>{n.previousQuery===l||q.value||(n.previousQuery=l,e.filterable&&i.isFunction(e.filterMethod)?e.filterMethod(l):e.filterable&&e.remote&&i.isFunction(e.remoteMethod)&&e.remoteMethod(l),e.defaultFirstOption&&(e.filterable||e.remote)&&A.value?t.nextTick(re):t.nextTick(Ge))},re=()=>{const l=V.value.filter(O=>O.visible&&!O.disabled&&!O.states.groupDisabled),o=l.find(O=>O.created),u=l[0],S=V.value.map(O=>O.value);n.hoveringIndex=he(S,o||u)},j=()=>{if(e.multiple)n.selectedLabel="";else{const o=i.isArray(e.modelValue)?e.modelValue[0]:e.modelValue,u=ue(o);n.selectedLabel=u.currentLabel,n.selected=[u];return}const l=[];i.isUndefined(e.modelValue)||N.castArray(e.modelValue).forEach(o=>{l.push(ue(o))}),n.selected=l},ue=l=>{let o;const u=i.isPlainObject(l);for(let M=n.cachedOptions.size-1;M>=0;M--){const B=Fe.value[M];if(u?I.get(B.value,e.valueKey)===I.get(l,e.valueKey):B.value===l){o={value:l,currentLabel:B.currentLabel,get isDisabled(){return B.isDisabled}};break}}if(o)return o;const S=u?l.label:l??"";return{value:l,currentLabel:S}},Ge=()=>{n.hoveringIndex=V.value.findIndex(l=>n.selected.some(o=>X(o)===X(l)))},Qe=()=>{n.selectionWidth=c.value.getBoundingClientRect().width},Xe=()=>{n.collapseItemWidth=w.value.getBoundingClientRect().width},_=()=>{var l,o;(o=(l=v.value)==null?void 0:l.updatePopper)==null||o.call(l)},ce=()=>{var l,o;(o=(l=h.value)==null?void 0:l.updatePopper)==null||o.call(l)},de=()=>{n.inputValue.length>0&&!y.value&&(y.value=!0),U(n.inputValue)},pe=l=>{if(n.inputValue=l.target.value,e.remote)fe();else return de()},fe=Ee.debounce(()=>{de()},Le.value),P=l=>{z.isEqual(e.modelValue,l)||a(k.CHANGE_EVENT,l)},Ye=l=>Et(l,o=>{const u=n.cachedOptions.get(o);return u&&!u.disabled&&!u.states.groupDisabled}),Je=l=>{if(e.multiple&&l.code!==k.EVENT_CODE.delete&&l.target.value.length<=0){const o=N.castArray(e.modelValue).slice(),u=Ye(o);if(u<0)return;const S=o[u];o.splice(u,1),a(k.UPDATE_MODEL_EVENT,o),P(o),a("remove-tag",S)}},Ze=(l,o)=>{const u=n.selected.indexOf(o);if(u>-1&&!L.value){const S=N.castArray(e.modelValue).slice();S.splice(u,1),a(k.UPDATE_MODEL_EVENT,S),P(S),a("remove-tag",o.value)}l.stopPropagation(),Q()},me=l=>{l.stopPropagation();const o=e.multiple?[]:Ne.value;if(e.multiple)for(const u of n.selected)u.isDisabled&&o.push(u.value);a(k.UPDATE_MODEL_EVENT,o),P(o),n.hoveringIndex=-1,y.value=!1,a("clear"),Q()},ve=l=>{var o;if(e.multiple){const u=N.castArray((o=e.modelValue)!=null?o:[]).slice(),S=he(u,l);S>-1?u.splice(S,1):(e.multipleLimit<=0||u.length<e.multipleLimit)&&u.push(l.value),a(k.UPDATE_MODEL_EVENT,u),P(u),l.created&&U(""),e.filterable&&!e.reserveKeyword&&(n.inputValue="")}else a(k.UPDATE_MODEL_EVENT,l.value),P(l.value),y.value=!1;Q(),!y.value&&t.nextTick(()=>{G(l)})},he=(l=[],o)=>i.isUndefined(o)?-1:i.isObject(o.value)?l.findIndex(u=>z.isEqual(I.get(u,e.valueKey),X(o))):l.indexOf(o.value),G=l=>{var o,u,S,O,M;const B=i.isArray(l)?l[0]:l;let Y=null;if(B!=null&&B.value){const F=V.value.filter(mt=>mt.value===B.value);F.length>0&&(Y=F[0].$el)}if(v.value&&Y){const F=(O=(S=(u=(o=v.value)==null?void 0:o.popperRef)==null?void 0:u.contentRef)==null?void 0:S.querySelector)==null?void 0:O.call(S,`.${r.be("dropdown","wrap")}`);F&&vt.scrollIntoView(F,Y)}(M=K.value)==null||M.handleScroll()},_e=l=>{n.options.set(l.value,l),n.cachedOptions.set(l.value,l)},xe=(l,o)=>{n.options.get(l)===o&&n.options.delete(l)},et=t.computed(()=>{var l,o;return(o=(l=v.value)==null?void 0:l.popperRef)==null?void 0:o.contentRef}),tt=()=>{n.isBeforeHide=!1,t.nextTick(()=>G(n.selected))},Q=()=>{var l;(l=C.value)==null||l.focus()},lt=()=>{var l;if(y.value){y.value=!1,t.nextTick(()=>{var o;return(o=C.value)==null?void 0:o.blur()});return}(l=C.value)==null||l.blur()},nt=l=>{me(l)},ot=l=>{if(y.value=!1,ne.value){const o=new FocusEvent("focus",l);t.nextTick(()=>Te(o))}},at=()=>{n.inputValue.length>0?n.inputValue="":y.value=!1},be=()=>{L.value||(i.isIOS&&(n.inputHovering=!0),n.menuVisibleOnFocus?n.menuVisibleOnFocus=!1:y.value=!y.value)},st=()=>{if(!y.value)be();else{const l=V.value[n.hoveringIndex];l&&!l.isDisabled&&ve(l)}},X=l=>i.isObject(l.value)?I.get(l.value,e.valueKey):l.value,it=t.computed(()=>V.value.filter(l=>l.visible).every(l=>l.isDisabled)),rt=t.computed(()=>e.multiple?e.collapseTags?n.selected.slice(0,e.maxCollapseTags):n.selected:[]),ut=t.computed(()=>e.multiple?e.collapseTags?n.selected.slice(e.maxCollapseTags):[]:[]),ge=l=>{if(!y.value){y.value=!0;return}if(!(n.options.size===0||A.value===0||q.value)&&!it.value){l==="next"?(n.hoveringIndex++,n.hoveringIndex===n.options.size&&(n.hoveringIndex=0)):l==="prev"&&(n.hoveringIndex--,n.hoveringIndex<0&&(n.hoveringIndex=n.options.size-1));const o=V.value[n.hoveringIndex];(o.isDisabled||!o.visible)&&ge(l),t.nextTick(()=>G($.value))}},ct=()=>{if(!c.value)return 0;const l=window.getComputedStyle(c.value);return Number.parseFloat(l.gap||"6px")},dt=t.computed(()=>{const l=ct();return{maxWidth:`${w.value&&e.maxCollapseTags===1?n.selectionWidth-n.collapseItemWidth-l:n.selectionWidth}px`}}),pt=t.computed(()=>({maxWidth:`${n.selectionWidth}px`})),ft=l=>{a("popup-scroll",l)};return D.useResizeObserver(c,Qe),D.useResizeObserver(b,_),D.useResizeObserver(le,_),D.useResizeObserver(d,ce),D.useResizeObserver(w,Xe),t.onMounted(()=>{j()}),{inputId:Be,contentId:p,nsSelect:r,nsInput:m,states:n,isFocused:ne,expanded:y,optionsArray:V,hoverOption:$,selectSize:ie,filteredOptionsCount:A,updateTooltip:_,updateTagTooltip:ce,debouncedOnInputChange:fe,onInput:pe,deletePrevTag:Je,deleteTag:Ze,deleteSelected:me,handleOptionSelect:ve,scrollToOption:G,hasModelValue:Z,shouldShowPlaceholder:He,currentPlaceholder:Ue,mouseEnterEventName:je,needStatusIcon:Me,showClose:ze,iconComponent:oe,iconReverse:$e,validateState:ae,validateIcon:Re,showNewOption:We,updateOptions:se,collapseTagSize:Ke,setSelected:j,selectDisabled:L,emptyText:Pe,handleCompositionStart:Oe,handleCompositionUpdate:ke,handleCompositionEnd:Ie,onOptionCreate:_e,onOptionDestroy:xe,handleMenuEnter:tt,focus:Q,blur:lt,handleClearClick:nt,handleClickOutside:ot,handleEsc:at,toggleMenu:be,selectOption:st,getValueKey:X,navigateOptions:ge,dropdownMenuVisible:qe,showTagList:rt,collapseTagList:ut,popupScroll:ft,tagStyle:dt,collapseTagStyle:pt,popperRef:et,inputRef:C,tooltipRef:v,tagTooltipRef:h,prefixRef:E,suffixRef:f,selectRef:g,wrapperRef:le,selectionRef:c,scrollbarRef:K,menuRef:b,tagMenuRef:d,collapseItemRef:w}};var Mt=t.defineComponent({name:"ElOptions",setup(e,{slots:a}){const s=t.inject(J);let p=[];return()=>{var r,m;const n=(r=a.default)==null?void 0:r.call(a),g=[];function c(v){i.isArray(v)&&v.forEach(h=>{var C,E,f,b;const d=(C=(h==null?void 0:h.type)||{})==null?void 0:C.name;d==="ElOptionGroup"?c(!i.isString(h.children)&&!i.isArray(h.children)&&i.isFunction((E=h.children)==null?void 0:E.default)?(f=h.children)==null?void 0:f.default():h.children):d==="ElOption"?g.push((b=h.props)==null?void 0:b.value):i.isArray(h.children)&&c(h.children)})}return n.length&&c((m=n[0])==null?void 0:m.children),z.isEqual(g,p)||(p=g,s&&(s.states.optionValues=g)),n}}});const zt=i.buildProps({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:T.useSizeProp,effect:{type:i.definePropType(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:i.definePropType(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:W.useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:T.iconPropType,default:ee.circle_close_default},fitInputWidth:Boolean,suffixIcon:{type:T.iconPropType,default:ee.arrow_down_default},tagType:{...x.tagProps.type,default:"info"},tagEffect:{...x.tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:i.definePropType(String),values:W.Ee,default:"bottom-start"},fallbackPlacements:{type:i.definePropType(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...T.useEmptyValuesProps,...W.useAriaProps(["ariaLabel"])}),Se="ElSelect",$t=t.defineComponent({name:Se,componentName:Se,components:{ElSelectMenu:Nt,ElOption:te,ElOptions:Mt,ElTag:x.ElTag,ElScrollbar:W.ElScrollbar,ElTooltip:W.ElTooltip,ElIcon:ee.ElIcon},directives:{ClickOutside:z.ClickOutside},props:zt,emits:[k.UPDATE_MODEL_EVENT,k.CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:a}){const s=t.computed(()=>{const{modelValue:c,multiple:v}=e,h=v?[]:void 0;return i.isArray(c)?v?c:h:v?h:c}),p=t.reactive({...t.toRefs(e),modelValue:s}),r=Dt(p,a),{calculatorRef:m,inputStyle:n}=Vt();t.provide(J,t.reactive({props:p,states:r.states,optionsArray:r.optionsArray,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy,selectRef:r.selectRef,setSelected:r.setSelected}));const g=t.computed(()=>e.multiple?r.states.selected.map(c=>c.currentLabel):r.states.selectedLabel);return{...r,modelValue:s,selectedLabel:g,calculatorRef:m,inputStyle:n}}});function Rt(e,a,s,p,r,m){const n=t.resolveComponent("el-tag"),g=t.resolveComponent("el-tooltip"),c=t.resolveComponent("el-icon"),v=t.resolveComponent("el-option"),h=t.resolveComponent("el-options"),C=t.resolveComponent("el-scrollbar"),E=t.resolveComponent("el-select-menu"),f=t.resolveDirective("click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"selectRef",class:t.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[t.toHandlerKey(e.mouseEnterEventName)]:b=>e.states.inputHovering=!0,onMouseleave:b=>e.states.inputHovering=!1},[t.createVNode(g,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:b=>e.states.isBeforeHide=!1},{default:t.withCtx(()=>{var b;return[t.createElementVNode("div",{ref:"wrapperRef",class:t.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"prefixRef",class:t.normalizeClass(e.nsSelect.e("prefix"))},[t.renderSlot(e.$slots,"prefix")],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref:"selectionRef",class:t.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?t.renderSlot(e.$slots,"tag",{key:0},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.showTagList,d=>(t.openBlock(),t.createElementBlock("div",{key:e.getValueKey(d),class:t.normalizeClass(e.nsSelect.e("selected-item"))},[t.createVNode(n,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:t.normalizeStyle(e.tagStyle),onClose:w=>e.deleteTag(w,d)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(e.nsSelect.e("tags-text"))},[t.renderSlot(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[t.createTextVNode(t.toDisplayString(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(t.openBlock(),t.createBlock(g,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:t.withCtx(()=>[t.createElementVNode("div",{ref:"collapseItemRef",class:t.normalizeClass(e.nsSelect.e("selected-item"))},[t.createVNode(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:t.normalizeStyle(e.collapseTagStyle)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(e.nsSelect.e("tags-text"))}," + "+t.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:t.withCtx(()=>[t.createElementVNode("div",{ref:"tagMenuRef",class:t.normalizeClass(e.nsSelect.e("selection"))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.collapseTagList,d=>(t.openBlock(),t.createElementBlock("div",{key:e.getValueKey(d),class:t.normalizeClass(e.nsSelect.e("selected-item"))},[t.createVNode(n,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:w=>e.deleteTag(w,d)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(e.nsSelect.e("tags-text"))},[t.renderSlot(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[t.createTextVNode(t.toDisplayString(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):t.createCommentVNode("v-if",!0)]):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:t.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[t.withDirectives(t.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:t.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:t.normalizeStyle(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((b=e.hoverOption)==null?void 0:b.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[t.withKeys(t.withModifiers(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),t.withKeys(t.withModifiers(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),t.withKeys(t.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),t.withKeys(t.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),t.withKeys(t.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:t.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[t.vModelText,e.states.inputValue]]),e.filterable?(t.openBlock(),t.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:t.normalizeClass(e.nsSelect.e("input-calculator")),textContent:t.toDisplayString(e.states.inputValue)},null,10,["textContent"])):t.createCommentVNode("v-if",!0)],2),e.shouldShowPlaceholder?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?t.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[t.createElementVNode("span",null,t.toDisplayString(e.currentPlaceholder),1)]):(t.openBlock(),t.createElementBlock("span",{key:1},t.toDisplayString(e.currentPlaceholder),1))],2)):t.createCommentVNode("v-if",!0)],2),t.createElementVNode("div",{ref:"suffixRef",class:t.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(t.openBlock(),t.createBlock(c,{key:0,class:t.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(t.openBlock(),t.createBlock(c,{key:1,class:t.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):t.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(t.openBlock(),t.createBlock(c,{key:2,class:t.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:t.withCtx(()=>[t.createVNode(E,{ref:"menuRef"},{default:t.withCtx(()=>[e.$slots.header?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:t.withModifiers(()=>{},["stop"])},[t.renderSlot(e.$slots,"header")],10,["onClick"])):t.createCommentVNode("v-if",!0),t.withDirectives(t.createVNode(C,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:t.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:t.withCtx(()=>[e.showNewOption?(t.openBlock(),t.createBlock(v,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):t.createCommentVNode("v-if",!0),t.createVNode(h,null,{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[t.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.nsSelect.be("dropdown","loading"))},[t.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.nsSelect.be("dropdown","empty"))},[t.renderSlot(e.$slots,"empty",{},()=>[t.createElementVNode("span",null,t.toDisplayString(e.emptyText),1)])],2)):t.createCommentVNode("v-if",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:t.withModifiers(()=>{},["stop"])},[t.renderSlot(e.$slots,"footer")],10,["onClick"])):t.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[f,e.handleClickOutside,e.popperRef]])}var Lt=i._export_sfc($t,[["render",Rt],["__file","select.vue"]]);const At=t.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const a=i.useNamespace("select"),s=t.ref(null),p=t.getCurrentInstance(),r=t.ref([]);t.provide(we,t.reactive({...t.toRefs(e)}));const m=t.computed(()=>r.value.some(v=>v.visible===!0)),n=v=>{var h,C;return((h=v.type)==null?void 0:h.name)==="ElOption"&&!!((C=v.component)!=null&&C.proxy)},g=v=>{const h=N.castArray(v),C=[];return h.forEach(E=>{var f,b;n(E)?C.push(E.component.proxy):(f=E.children)!=null&&f.length?C.push(...g(E.children)):(b=E.component)!=null&&b.subTree&&C.push(...g(E.component.subTree))}),C},c=()=>{r.value=g(p.subTree)};return t.onMounted(()=>{c()}),D.useMutationObserver(s,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:s,visible:m,ns:a}}});function Pt(e,a,s,p,r,m){return t.withDirectives((t.openBlock(),t.createElementBlock("ul",{ref:"groupRef",class:t.normalizeClass(e.ns.be("group","wrap"))},[t.createElementVNode("li",{class:t.normalizeClass(e.ns.be("group","title"))},t.toDisplayString(e.label),3),t.createElementVNode("li",null,[t.createElementVNode("ul",{class:t.normalizeClass(e.ns.b("group"))},[t.renderSlot(e.$slots,"default")],2)])],2)),[[t.vShow,e.visible]])}var Ve=i._export_sfc(At,[["render",Pt],["__file","option-group.vue"]]);const Ft=i.withInstall(Lt,{Option:te,OptionGroup:Ve}),Wt=i.withNoopInstall(te);i.withNoopInstall(Ve);exports.ElOption=Wt;exports.ElSelect=Ft;
|