st-comp 0.0.147 → 0.0.148
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/components.d.ts +3 -3
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +22 -20
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +631 -566
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +83 -77
- package/es/KlineNew.cjs +2 -2
- package/es/KlineNew.js +14 -10
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +95 -89
- package/es/Table.cjs +1 -1
- package/es/Table.js +62 -58
- package/es/User.cjs +1 -1
- package/es/User.js +151 -146
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1 -2384
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2800 -1
- package/es/_initCloneObject-476b02ce.cjs +1 -0
- package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-ec5c9523.js} +5 -5
- package/es/{base-00ce90ec.cjs → base-6ccc8fc2.cjs} +3 -3
- package/es/{base-674a354a.js → base-950bac7e.js} +59 -58
- package/es/castArray-374558a5.cjs +1 -0
- package/es/castArray-c770910d.js +10 -0
- package/es/config-provider-c87e277f.cjs +1 -0
- package/es/config-provider-feed0e8a.js +47 -0
- package/es/debounce-a6b4f91b.cjs +1 -0
- package/es/debounce-c64fb3b5.js +83 -0
- package/es/dropdown-6bdb3cf4.cjs +1 -0
- package/es/{dropdown-ce30ada6.js → dropdown-c9272ca3.js} +31 -30
- package/es/el-button-b8f71c7d.cjs +1 -0
- package/es/{el-button-7b9f5933.js → el-button-d7b6eebd.js} +12 -12
- package/es/{el-empty-87154b6d.cjs → el-empty-12eece57.cjs} +1 -1
- package/es/{el-empty-39b3aed7.js → el-empty-89a523ed.js} +5 -5
- package/es/{el-form-item-fc6f80ab.js → el-form-item-55d36086.js} +72 -71
- package/es/el-form-item-ebbf096d.cjs +12 -0
- package/es/el-input-2c7e70a3.cjs +1 -0
- package/es/{el-input-d249ac86.js → el-input-cb528574.js} +65 -63
- package/es/el-input-number-8e168e83.cjs +1 -0
- package/es/{el-input-number-2066fbb7.js → el-input-number-ce30bfa8.js} +22 -21
- package/es/el-message-612c2346.cjs +1 -0
- package/es/{el-message-9859835d.js → el-message-d51d032b.js} +80 -78
- package/es/{el-overlay-f0757cc4.js → el-overlay-07414277.js} +70 -69
- package/es/el-overlay-fb255b83.cjs +1 -0
- package/es/el-popper-8360bd91.cjs +1 -0
- package/es/el-popper-f4b01f85.js +2262 -0
- package/es/el-scrollbar-271142ad.cjs +1 -0
- package/es/el-scrollbar-e8e93751.js +201 -0
- package/es/el-select-2e71d4af.cjs +1 -0
- package/es/{el-select-bcbb7e55.js → el-select-e71af2e6.js} +333 -329
- package/es/el-table-column-9fe79f05.cjs +14 -0
- package/es/el-table-column-dc562f14.js +3933 -0
- package/es/el-tag-930e7b32.cjs +1 -0
- package/es/el-tag-d65768f4.js +279 -0
- package/es/index-0ed86daf.cjs +3 -0
- package/es/index-121e2861.js +306 -0
- package/es/index-18416440.cjs +1 -0
- package/es/index-674d2fd7.cjs +1 -0
- package/es/index-709675d5.js +59 -0
- package/es/{index-45de4a12.js → index-92ba4292.js} +13 -13
- package/es/index-aece600c.js +81 -0
- package/es/index-da646183.cjs +1 -0
- package/es/raf-2d77cbbe.cjs +1 -0
- package/es/raf-f55e0daa.js +6 -0
- package/es/{scroll-cca17da0.cjs → scroll-c8ac196e.cjs} +1 -1
- package/es/{scroll-cb696ed2.js → scroll-ca84f80a.js} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-common-props-4d37077d.js +586 -0
- package/es/use-form-common-props-c1960844.cjs +2 -0
- package/es/{zh-cn-ef7d7220.js → zh-cn-23c8e0d1.js} +2 -2
- package/es/{zh-cn-37af467d.cjs → zh-cn-414d7f0c.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-24f8572c.js → index-ffeb163e.js} +2 -2
- package/lib/{python-2143eee4.js → python-0ec8f68c.js} +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/utils.js +1 -1
- package/es/_initCloneObject-7493ecd5.cjs +0 -1
- package/es/config-provider-419ffbf2.js +0 -120
- package/es/config-provider-68414290.cjs +0 -3
- package/es/dropdown-127a8c0d.cjs +0 -1
- package/es/el-button-c00975e1.cjs +0 -1
- package/es/el-checkbox-group-0554b352.js +0 -67
- package/es/el-checkbox-group-7a313d34.cjs +0 -1
- package/es/el-form-item-7867f64d.cjs +0 -12
- package/es/el-input-2ff1628c.cjs +0 -1
- package/es/el-input-number-d6801a5c.cjs +0 -1
- package/es/el-message-ffcf690c.cjs +0 -1
- package/es/el-overlay-91784be2.cjs +0 -1
- package/es/el-popover-4db657e2.cjs +0 -1
- package/es/el-popover-b7b43c1f.js +0 -138
- package/es/el-scrollbar-35bac6b3.js +0 -2452
- package/es/el-scrollbar-ec09bbd3.cjs +0 -1
- package/es/el-select-0785c35a.cjs +0 -1
- package/es/el-table-column-2478adf8.cjs +0 -14
- package/es/el-table-column-c1e1a206.js +0 -3798
- package/es/el-tag-13ee17b3.cjs +0 -1
- package/es/el-tag-73372c6c.js +0 -359
- package/es/index-07b61d12.cjs +0 -1
- package/es/index-65b719a4.cjs +0 -1
- package/es/index-8b5fbc11.js +0 -66
- package/es/index-8c85d7c5.js +0 -858
- package/es/index-a49f4743.cjs +0 -2
|
@@ -1,96 +1,100 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import {
|
|
3
|
-
import { t as Ze, E as
|
|
4
|
-
import { e as
|
|
5
|
-
import {
|
|
6
|
-
import { c as z
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { shallowRef as _t, ref as V, computed as r, inject as Se, getCurrentInstance as Ee, toRaw as xt, watch as G, defineComponent as ae, unref as Ie, reactive as ne, toRefs as Te, onBeforeUnmount as el, nextTick as F, withDirectives as le, openBlock as g, createElementBlock as I, normalizeClass as p, withModifiers as L, renderSlot as $, createElementVNode as T, toDisplayString as B, vShow as $e, onMounted as ke, normalizeStyle as he, createCommentVNode as k, watchEffect as tl, provide as lt, resolveComponent as K, resolveDirective as ll, toHandlerKey as nl, createVNode as A, withCtx as D, Fragment as Xe, renderList as Ye, createTextVNode as Je, createBlock as W, withKeys as ee, vModelText as ol, resolveDynamicComponent as Ve } from "vue";
|
|
2
|
+
import { a as al, e as sl, b as il, f as rl, E as ul } from "./el-popper-f4b01f85.js";
|
|
3
|
+
import { t as Ze, E as dl } from "./index-92ba4292.js";
|
|
4
|
+
import { e as cl, o as pl, B as fl, V as vl, b as ml, u as bl, i as _e, r as hl, g as gl, a as Sl, E as yl } from "./use-form-common-props-4d37077d.js";
|
|
5
|
+
import { H as q, C as Q, u as oe, x as nt, _ as ye, o as Cl, S as P, p as me, k as xe, q as Ol, i as wl, l as Il, e as te, $ as Vl, v as El, b as Tl, d as be, w as $l, R as ot } from "./base-950bac7e.js";
|
|
6
|
+
import { c as z } from "./castArray-c770910d.js";
|
|
7
|
+
import { a as H, c as kl } from "./el-scrollbar-e8e93751.js";
|
|
8
|
+
import { a as Ml, u as Rl } from "./index-709675d5.js";
|
|
9
|
+
import { E as Dl, U as j, C as at } from "./index-121e2861.js";
|
|
10
|
+
import { s as Ll } from "./scroll-ca84f80a.js";
|
|
11
|
+
import { b as Bl, i as ge, C as Nl } from "./el-tag-d65768f4.js";
|
|
12
|
+
import { t as Wl, d as Fl } from "./debounce-c64fb3b5.js";
|
|
13
|
+
var et = 1 / 0, zl = 17976931348623157e292;
|
|
14
|
+
function Pl(e) {
|
|
11
15
|
if (!e)
|
|
12
16
|
return e === 0 ? e : 0;
|
|
13
|
-
if (e =
|
|
17
|
+
if (e = Wl(e), e === et || e === -et) {
|
|
14
18
|
var o = e < 0 ? -1 : 1;
|
|
15
|
-
return o *
|
|
19
|
+
return o * zl;
|
|
16
20
|
}
|
|
17
21
|
return e === e ? e : 0;
|
|
18
22
|
}
|
|
19
|
-
function
|
|
20
|
-
var o =
|
|
21
|
-
return o === o ?
|
|
23
|
+
function Kl(e) {
|
|
24
|
+
var o = Pl(e), a = o % 1;
|
|
25
|
+
return o === o ? a ? o - a : o : 0;
|
|
22
26
|
}
|
|
23
|
-
function
|
|
24
|
-
for (var
|
|
27
|
+
function Al(e, o, a, c) {
|
|
28
|
+
for (var s = e.length, v = a + (c ? 1 : -1); c ? v-- : ++v < s; )
|
|
25
29
|
if (o(e[v], v, e))
|
|
26
30
|
return v;
|
|
27
31
|
return -1;
|
|
28
32
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
33
|
+
var Hl = Math.max, Gl = Math.min;
|
|
34
|
+
function Ul(e, o, a) {
|
|
31
35
|
var c = e == null ? 0 : e.length;
|
|
32
36
|
if (!c)
|
|
33
37
|
return -1;
|
|
34
|
-
var
|
|
35
|
-
return
|
|
38
|
+
var s = c - 1;
|
|
39
|
+
return a !== void 0 && (s = Kl(a), s = a < 0 ? Hl(c + s, 0) : Gl(s, c - 1)), Al(e, Bl(o), s, !0);
|
|
36
40
|
}
|
|
37
|
-
const
|
|
38
|
-
function
|
|
39
|
-
const e =
|
|
40
|
-
minWidth: `${Math.max(o.value,
|
|
41
|
+
const jl = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
42
|
+
function ql() {
|
|
43
|
+
const e = _t(), o = V(0), a = 11, c = r(() => ({
|
|
44
|
+
minWidth: `${Math.max(o.value, a)}px`
|
|
41
45
|
}));
|
|
42
46
|
return H(e, () => {
|
|
43
|
-
var v,
|
|
44
|
-
o.value = (
|
|
47
|
+
var v, l;
|
|
48
|
+
o.value = (l = (v = e.value) == null ? void 0 : v.getBoundingClientRect().width) != null ? l : 0;
|
|
45
49
|
}), {
|
|
46
50
|
calculatorRef: e,
|
|
47
51
|
calculatorWidth: o,
|
|
48
52
|
inputStyle: c
|
|
49
53
|
};
|
|
50
54
|
}
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
const
|
|
55
|
+
const st = Symbol("ElSelectGroup"), Ce = Symbol("ElSelect");
|
|
56
|
+
function Ql(e, o) {
|
|
57
|
+
const a = Se(Ce), c = Se(st, { disabled: !1 }), s = r(() => b(z(a.props.modelValue), e.value)), v = r(() => {
|
|
54
58
|
var f;
|
|
55
|
-
if (
|
|
56
|
-
const h = z((f =
|
|
57
|
-
return !
|
|
59
|
+
if (a.props.multiple) {
|
|
60
|
+
const h = z((f = a.props.modelValue) != null ? f : []);
|
|
61
|
+
return !s.value && h.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
|
|
58
62
|
} else
|
|
59
63
|
return !1;
|
|
60
|
-
}),
|
|
64
|
+
}), l = r(() => e.label || (q(e.value) ? "" : e.value)), S = r(() => e.value || e.label || ""), u = r(() => e.disabled || o.groupDisabled || v.value), m = Ee(), b = (f = [], h) => {
|
|
61
65
|
if (q(e.value)) {
|
|
62
|
-
const d =
|
|
63
|
-
return f && f.some((E) =>
|
|
66
|
+
const d = a.props.valueKey;
|
|
67
|
+
return f && f.some((E) => xt(Q(E, d)) === Q(h, d));
|
|
64
68
|
} else
|
|
65
69
|
return f && f.includes(h);
|
|
66
70
|
}, y = () => {
|
|
67
|
-
!e.disabled && !c.disabled && (
|
|
71
|
+
!e.disabled && !c.disabled && (a.states.hoveringIndex = a.optionsArray.indexOf(m.proxy));
|
|
68
72
|
}, w = (f) => {
|
|
69
|
-
const h = new RegExp(
|
|
70
|
-
o.visible = h.test(
|
|
73
|
+
const h = new RegExp(jl(f), "i");
|
|
74
|
+
o.visible = h.test(l.value) || e.created;
|
|
71
75
|
};
|
|
72
|
-
return G(() =>
|
|
73
|
-
!e.created && !
|
|
76
|
+
return G(() => l.value, () => {
|
|
77
|
+
!e.created && !a.props.remote && a.setSelected();
|
|
74
78
|
}), G(() => e.value, (f, h) => {
|
|
75
|
-
const { remote: d, valueKey: E } =
|
|
76
|
-
if (f !== h && (
|
|
79
|
+
const { remote: d, valueKey: E } = a.props;
|
|
80
|
+
if (f !== h && (a.onOptionDestroy(h, m.proxy), a.onOptionCreate(m.proxy)), !e.created && !d) {
|
|
77
81
|
if (E && q(f) && q(h) && f[E] === h[E])
|
|
78
82
|
return;
|
|
79
|
-
|
|
83
|
+
a.setSelected();
|
|
80
84
|
}
|
|
81
85
|
}), G(() => c.disabled, () => {
|
|
82
86
|
o.groupDisabled = c.disabled;
|
|
83
87
|
}, { immediate: !0 }), {
|
|
84
|
-
select:
|
|
85
|
-
currentLabel:
|
|
88
|
+
select: a,
|
|
89
|
+
currentLabel: l,
|
|
86
90
|
currentValue: S,
|
|
87
|
-
itemSelected:
|
|
91
|
+
itemSelected: s,
|
|
88
92
|
isDisabled: u,
|
|
89
93
|
hoverItem: y,
|
|
90
94
|
updateOption: w
|
|
91
95
|
};
|
|
92
96
|
}
|
|
93
|
-
const
|
|
97
|
+
const Xl = ae({
|
|
94
98
|
name: "ElOption",
|
|
95
99
|
componentName: "ElOption",
|
|
96
100
|
props: {
|
|
@@ -103,28 +107,28 @@ const Jt = se({
|
|
|
103
107
|
disabled: Boolean
|
|
104
108
|
},
|
|
105
109
|
setup(e) {
|
|
106
|
-
const o = oe("select"),
|
|
110
|
+
const o = oe("select"), a = nt(), c = r(() => [
|
|
107
111
|
o.be("dropdown", "item"),
|
|
108
112
|
o.is("disabled", Ie(S)),
|
|
109
|
-
o.is("selected", Ie(
|
|
113
|
+
o.is("selected", Ie(l)),
|
|
110
114
|
o.is("hovering", Ie(w))
|
|
111
|
-
]),
|
|
115
|
+
]), s = ne({
|
|
112
116
|
index: -1,
|
|
113
117
|
groupDisabled: !1,
|
|
114
118
|
visible: !0,
|
|
115
119
|
hover: !1
|
|
116
120
|
}), {
|
|
117
121
|
currentLabel: v,
|
|
118
|
-
itemSelected:
|
|
122
|
+
itemSelected: l,
|
|
119
123
|
isDisabled: S,
|
|
120
124
|
select: u,
|
|
121
125
|
hoverItem: m,
|
|
122
126
|
updateOption: b
|
|
123
|
-
} =
|
|
124
|
-
u.onOptionCreate(f),
|
|
125
|
-
const d = f.value, { selected: E } = u.states,
|
|
127
|
+
} = Ql(e, s), { visible: y, hover: w } = Te(s), f = Ee().proxy;
|
|
128
|
+
u.onOptionCreate(f), el(() => {
|
|
129
|
+
const d = f.value, { selected: E } = u.states, se = E.some((ie) => ie.value === f.value);
|
|
126
130
|
F(() => {
|
|
127
|
-
u.states.cachedOptions.get(d) === f && !
|
|
131
|
+
u.states.cachedOptions.get(d) === f && !se && u.states.cachedOptions.delete(d);
|
|
128
132
|
}), u.onOptionDestroy(d, f);
|
|
129
133
|
});
|
|
130
134
|
function h() {
|
|
@@ -132,10 +136,10 @@ const Jt = se({
|
|
|
132
136
|
}
|
|
133
137
|
return {
|
|
134
138
|
ns: o,
|
|
135
|
-
id:
|
|
139
|
+
id: a,
|
|
136
140
|
containerKls: c,
|
|
137
141
|
currentLabel: v,
|
|
138
|
-
itemSelected:
|
|
142
|
+
itemSelected: l,
|
|
139
143
|
isDisabled: S,
|
|
140
144
|
select: u,
|
|
141
145
|
hoverItem: m,
|
|
@@ -143,12 +147,12 @@ const Jt = se({
|
|
|
143
147
|
visible: y,
|
|
144
148
|
hover: w,
|
|
145
149
|
selectOptionClick: h,
|
|
146
|
-
states:
|
|
150
|
+
states: s
|
|
147
151
|
};
|
|
148
152
|
}
|
|
149
153
|
});
|
|
150
|
-
function
|
|
151
|
-
return
|
|
154
|
+
function Yl(e, o, a, c, s, v) {
|
|
155
|
+
return le((g(), I("li", {
|
|
152
156
|
id: e.id,
|
|
153
157
|
class: p(e.containerKls),
|
|
154
158
|
role: "option",
|
|
@@ -164,28 +168,28 @@ function Xt(e, o, s, c, a, v) {
|
|
|
164
168
|
[$e, e.visible]
|
|
165
169
|
]);
|
|
166
170
|
}
|
|
167
|
-
var Me = /* @__PURE__ */ ye(
|
|
168
|
-
const
|
|
171
|
+
var Me = /* @__PURE__ */ ye(Xl, [["render", Yl], ["__file", "option.vue"]]);
|
|
172
|
+
const Jl = ae({
|
|
169
173
|
name: "ElSelectDropdown",
|
|
170
174
|
componentName: "ElSelectDropdown",
|
|
171
175
|
setup() {
|
|
172
|
-
const e = Se(Ce), o = oe("select"),
|
|
173
|
-
function
|
|
176
|
+
const e = Se(Ce), o = oe("select"), a = r(() => e.props.popperClass), c = r(() => e.props.multiple), s = r(() => e.props.fitInputWidth), v = V("");
|
|
177
|
+
function l() {
|
|
174
178
|
var S;
|
|
175
179
|
v.value = `${(S = e.selectRef) == null ? void 0 : S.offsetWidth}px`;
|
|
176
180
|
}
|
|
177
181
|
return ke(() => {
|
|
178
|
-
|
|
182
|
+
l(), H(e.selectRef, l);
|
|
179
183
|
}), {
|
|
180
184
|
ns: o,
|
|
181
185
|
minWidth: v,
|
|
182
|
-
popperClass:
|
|
186
|
+
popperClass: a,
|
|
183
187
|
isMultiple: c,
|
|
184
|
-
isFitInputWidth:
|
|
188
|
+
isFitInputWidth: s
|
|
185
189
|
};
|
|
186
190
|
}
|
|
187
191
|
});
|
|
188
|
-
function
|
|
192
|
+
function Zl(e, o, a, c, s, v) {
|
|
189
193
|
return g(), I("div", {
|
|
190
194
|
class: p([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
|
|
191
195
|
style: he({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
@@ -205,9 +209,9 @@ function Zt(e, o, s, c, a, v) {
|
|
|
205
209
|
], 2)) : k("v-if", !0)
|
|
206
210
|
], 6);
|
|
207
211
|
}
|
|
208
|
-
var
|
|
209
|
-
const
|
|
210
|
-
const { t:
|
|
212
|
+
var _l = /* @__PURE__ */ ye(Jl, [["render", Zl], ["__file", "select-dropdown.vue"]]);
|
|
213
|
+
const xl = (e, o) => {
|
|
214
|
+
const { t: a } = Cl(), c = nt(), s = oe("select"), v = oe("input"), l = ne({
|
|
211
215
|
inputValue: "",
|
|
212
216
|
options: /* @__PURE__ */ new Map(),
|
|
213
217
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -221,106 +225,106 @@ const xt = (e, o) => {
|
|
|
221
225
|
inputHovering: !1,
|
|
222
226
|
menuVisibleOnFocus: !1,
|
|
223
227
|
isBeforeHide: !1
|
|
224
|
-
}), S = V(null), u = V(null), m = V(null), b = V(null), y = V(null), w = V(null), f = V(null), h = V(null), d = V(null), E = V(null),
|
|
228
|
+
}), S = V(null), u = V(null), m = V(null), b = V(null), y = V(null), w = V(null), f = V(null), h = V(null), d = V(null), E = V(null), se = V(null), {
|
|
225
229
|
isComposing: ie,
|
|
226
|
-
handleCompositionStart:
|
|
227
|
-
handleCompositionUpdate:
|
|
228
|
-
handleCompositionEnd:
|
|
229
|
-
} =
|
|
230
|
-
afterComposition: (
|
|
231
|
-
}), { wrapperRef: Re, isFocused: De, handleBlur:
|
|
230
|
+
handleCompositionStart: rt,
|
|
231
|
+
handleCompositionUpdate: ut,
|
|
232
|
+
handleCompositionEnd: dt
|
|
233
|
+
} = Ml({
|
|
234
|
+
afterComposition: (t) => Ae(t)
|
|
235
|
+
}), { wrapperRef: Re, isFocused: De, handleBlur: ct } = Rl(y, {
|
|
232
236
|
beforeFocus() {
|
|
233
|
-
return
|
|
237
|
+
return J.value;
|
|
234
238
|
},
|
|
235
239
|
afterFocus() {
|
|
236
|
-
e.automaticDropdown && !C.value && (C.value = !0,
|
|
240
|
+
e.automaticDropdown && !C.value && (C.value = !0, l.menuVisibleOnFocus = !0);
|
|
237
241
|
},
|
|
238
|
-
beforeBlur(
|
|
242
|
+
beforeBlur(t) {
|
|
239
243
|
var n, i;
|
|
240
|
-
return ((n = m.value) == null ? void 0 : n.isFocusInsideContent(
|
|
244
|
+
return ((n = m.value) == null ? void 0 : n.isFocusInsideContent(t)) || ((i = b.value) == null ? void 0 : i.isFocusInsideContent(t));
|
|
241
245
|
},
|
|
242
246
|
afterBlur() {
|
|
243
|
-
C.value = !1,
|
|
247
|
+
C.value = !1, l.menuVisibleOnFocus = !1;
|
|
244
248
|
}
|
|
245
|
-
}), C = V(!1),
|
|
246
|
-
formItemContext:
|
|
247
|
-
}), { valueOnClear:
|
|
248
|
-
var
|
|
249
|
-
return (
|
|
250
|
-
}),
|
|
251
|
-
const
|
|
252
|
-
return
|
|
253
|
-
const O =
|
|
254
|
-
O > -1 && n.push(
|
|
255
|
-
}), n.length >=
|
|
256
|
-
}),
|
|
257
|
-
const
|
|
258
|
-
return e.filterable && e.allowCreate &&
|
|
249
|
+
}), C = V(!1), X = V(), { form: re, formItem: Y } = cl(), { inputId: pt } = pl(e, {
|
|
250
|
+
formItemContext: Y
|
|
251
|
+
}), { valueOnClear: ft, isEmptyValue: vt } = fl(e), J = r(() => e.disabled || (re == null ? void 0 : re.disabled)), Oe = r(() => P(e.modelValue) ? e.modelValue.length > 0 : !vt(e.modelValue)), mt = r(() => {
|
|
252
|
+
var t;
|
|
253
|
+
return (t = re == null ? void 0 : re.statusIcon) != null ? t : !1;
|
|
254
|
+
}), bt = r(() => e.clearable && !J.value && l.inputHovering && Oe.value), Le = r(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), ht = r(() => s.is("reverse", Le.value && C.value)), Be = r(() => (Y == null ? void 0 : Y.validateState) || ""), gt = r(() => vl[Be.value]), St = r(() => e.remote ? 300 : 0), yt = r(() => e.remote && !l.inputValue && l.options.size === 0), Ct = r(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && l.inputValue && l.options.size > 0 && Z.value === 0 ? e.noMatchText || a("el.select.noMatch") : l.options.size === 0 ? e.noDataText || a("el.select.noData") : null), Z = r(() => M.value.filter((t) => t.visible).length), M = r(() => {
|
|
255
|
+
const t = Array.from(l.options.values()), n = [];
|
|
256
|
+
return l.optionValues.forEach((i) => {
|
|
257
|
+
const O = t.findIndex((R) => R.value === i);
|
|
258
|
+
O > -1 && n.push(t[O]);
|
|
259
|
+
}), n.length >= t.length ? n : t;
|
|
260
|
+
}), Ot = r(() => Array.from(l.cachedOptions.values())), wt = r(() => {
|
|
261
|
+
const t = M.value.filter((n) => !n.created).some((n) => n.currentLabel === l.inputValue);
|
|
262
|
+
return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
|
|
259
263
|
}), Ne = () => {
|
|
260
|
-
e.filterable &&
|
|
264
|
+
e.filterable && te(e.filterMethod) || e.filterable && e.remote && te(e.remoteMethod) || M.value.forEach((t) => {
|
|
261
265
|
var n;
|
|
262
|
-
(n =
|
|
266
|
+
(n = t.updateOption) == null || n.call(t, l.inputValue);
|
|
263
267
|
});
|
|
264
|
-
}, We =
|
|
268
|
+
}, We = ml(), It = r(() => ["small"].includes(We.value) ? "small" : "default"), Vt = r({
|
|
265
269
|
get() {
|
|
266
|
-
return C.value && !
|
|
270
|
+
return C.value && !yt.value;
|
|
267
271
|
},
|
|
268
|
-
set(
|
|
269
|
-
C.value =
|
|
272
|
+
set(t) {
|
|
273
|
+
C.value = t;
|
|
270
274
|
}
|
|
271
|
-
}),
|
|
275
|
+
}), Et = r(() => {
|
|
272
276
|
if (e.multiple && !me(e.modelValue))
|
|
273
|
-
return z(e.modelValue).length === 0 && !
|
|
274
|
-
const
|
|
275
|
-
return e.filterable || me(
|
|
276
|
-
}),
|
|
277
|
-
var
|
|
278
|
-
const n = (
|
|
279
|
-
return e.multiple || !Oe.value ? n :
|
|
280
|
-
}), $
|
|
281
|
-
G(() => e.modelValue, (
|
|
282
|
-
e.multiple && e.filterable && !e.reserveKeyword && (
|
|
277
|
+
return z(e.modelValue).length === 0 && !l.inputValue;
|
|
278
|
+
const t = P(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
279
|
+
return e.filterable || me(t) ? !l.inputValue : !0;
|
|
280
|
+
}), Tt = r(() => {
|
|
281
|
+
var t;
|
|
282
|
+
const n = (t = e.placeholder) != null ? t : a("el.select.placeholder");
|
|
283
|
+
return e.multiple || !Oe.value ? n : l.selectedLabel;
|
|
284
|
+
}), $t = r(() => xe ? null : "mouseenter");
|
|
285
|
+
G(() => e.modelValue, (t, n) => {
|
|
286
|
+
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", ue("")), de(), !ge(t, n) && e.validateEvent && (Y == null || Y.validate("change").catch((i) => Ol(i)));
|
|
283
287
|
}, {
|
|
284
288
|
flush: "post",
|
|
285
289
|
deep: !0
|
|
286
|
-
}), G(() => C.value, (
|
|
287
|
-
|
|
288
|
-
}), G(() =>
|
|
289
|
-
|
|
290
|
+
}), G(() => C.value, (t) => {
|
|
291
|
+
t ? ue(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0), o("visible-change", t);
|
|
292
|
+
}), G(() => l.options.entries(), () => {
|
|
293
|
+
wl && (de(), e.defaultFirstOption && (e.filterable || e.remote) && Z.value && Fe());
|
|
290
294
|
}, {
|
|
291
295
|
flush: "post"
|
|
292
|
-
}), G(() =>
|
|
293
|
-
|
|
294
|
-
n.hover =
|
|
296
|
+
}), G(() => l.hoveringIndex, (t) => {
|
|
297
|
+
Il(t) && t > -1 ? X.value = M.value[t] || {} : X.value = {}, M.value.forEach((n) => {
|
|
298
|
+
n.hover = X.value === n;
|
|
295
299
|
});
|
|
296
|
-
}),
|
|
297
|
-
|
|
300
|
+
}), tl(() => {
|
|
301
|
+
l.isBeforeHide || Ne();
|
|
298
302
|
});
|
|
299
|
-
const ue = (
|
|
300
|
-
|
|
303
|
+
const ue = (t) => {
|
|
304
|
+
l.previousQuery === t || ie.value || (l.previousQuery = t, e.filterable && te(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && te(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && Z.value ? F(Fe) : F(kt));
|
|
301
305
|
}, Fe = () => {
|
|
302
|
-
const
|
|
303
|
-
|
|
306
|
+
const t = M.value.filter((R) => R.visible && !R.disabled && !R.states.groupDisabled), n = t.find((R) => R.created), i = t[0], O = M.value.map((R) => R.value);
|
|
307
|
+
l.hoveringIndex = je(O, n || i);
|
|
304
308
|
}, de = () => {
|
|
305
309
|
if (e.multiple)
|
|
306
|
-
|
|
310
|
+
l.selectedLabel = "";
|
|
307
311
|
else {
|
|
308
312
|
const n = P(e.modelValue) ? e.modelValue[0] : e.modelValue, i = ze(n);
|
|
309
|
-
|
|
313
|
+
l.selectedLabel = i.currentLabel, l.selected = [i];
|
|
310
314
|
return;
|
|
311
315
|
}
|
|
312
|
-
const
|
|
316
|
+
const t = [];
|
|
313
317
|
me(e.modelValue) || z(e.modelValue).forEach((n) => {
|
|
314
|
-
|
|
315
|
-
}),
|
|
316
|
-
}, ze = (
|
|
318
|
+
t.push(ze(n));
|
|
319
|
+
}), l.selected = t;
|
|
320
|
+
}, ze = (t) => {
|
|
317
321
|
let n;
|
|
318
|
-
const i =
|
|
319
|
-
for (let U =
|
|
320
|
-
const N =
|
|
321
|
-
if (i ? Q(N.value, e.valueKey) === Q(
|
|
322
|
+
const i = Vl(t);
|
|
323
|
+
for (let U = l.cachedOptions.size - 1; U >= 0; U--) {
|
|
324
|
+
const N = Ot.value[U];
|
|
325
|
+
if (i ? Q(N.value, e.valueKey) === Q(t, e.valueKey) : N.value === t) {
|
|
322
326
|
n = {
|
|
323
|
-
value:
|
|
327
|
+
value: t,
|
|
324
328
|
currentLabel: N.currentLabel,
|
|
325
329
|
get isDisabled() {
|
|
326
330
|
return N.isDisabled;
|
|
@@ -331,96 +335,96 @@ const xt = (e, o) => {
|
|
|
331
335
|
}
|
|
332
336
|
if (n)
|
|
333
337
|
return n;
|
|
334
|
-
const O = i ?
|
|
338
|
+
const O = i ? t.label : t ?? "";
|
|
335
339
|
return {
|
|
336
|
-
value:
|
|
340
|
+
value: t,
|
|
337
341
|
currentLabel: O
|
|
338
342
|
};
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
},
|
|
344
|
-
|
|
343
|
+
}, kt = () => {
|
|
344
|
+
l.hoveringIndex = M.value.findIndex((t) => l.selected.some((n) => fe(n) === fe(t)));
|
|
345
|
+
}, Mt = () => {
|
|
346
|
+
l.selectionWidth = u.value.getBoundingClientRect().width;
|
|
347
|
+
}, Rt = () => {
|
|
348
|
+
l.collapseItemWidth = E.value.getBoundingClientRect().width;
|
|
345
349
|
}, we = () => {
|
|
346
|
-
var
|
|
347
|
-
(n = (
|
|
350
|
+
var t, n;
|
|
351
|
+
(n = (t = m.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
348
352
|
}, Pe = () => {
|
|
349
|
-
var
|
|
350
|
-
(n = (
|
|
353
|
+
var t, n;
|
|
354
|
+
(n = (t = b.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
351
355
|
}, Ke = () => {
|
|
352
|
-
|
|
353
|
-
}, Ae = (
|
|
354
|
-
if (
|
|
356
|
+
l.inputValue.length > 0 && !C.value && (C.value = !0), ue(l.inputValue);
|
|
357
|
+
}, Ae = (t) => {
|
|
358
|
+
if (l.inputValue = t.target.value, e.remote)
|
|
355
359
|
He();
|
|
356
360
|
else
|
|
357
361
|
return Ke();
|
|
358
|
-
}, He =
|
|
362
|
+
}, He = Fl(() => {
|
|
359
363
|
Ke();
|
|
360
|
-
},
|
|
361
|
-
ge(e.modelValue,
|
|
362
|
-
},
|
|
363
|
-
const i =
|
|
364
|
+
}, St.value), _ = (t) => {
|
|
365
|
+
ge(e.modelValue, t) || o(at, t);
|
|
366
|
+
}, Dt = (t) => Ul(t, (n) => {
|
|
367
|
+
const i = l.cachedOptions.get(n);
|
|
364
368
|
return i && !i.disabled && !i.states.groupDisabled;
|
|
365
|
-
}),
|
|
366
|
-
if (e.multiple &&
|
|
367
|
-
const n = z(e.modelValue).slice(), i =
|
|
369
|
+
}), Lt = (t) => {
|
|
370
|
+
if (e.multiple && t.code !== Dl.delete && t.target.value.length <= 0) {
|
|
371
|
+
const n = z(e.modelValue).slice(), i = Dt(n);
|
|
368
372
|
if (i < 0)
|
|
369
373
|
return;
|
|
370
374
|
const O = n[i];
|
|
371
375
|
n.splice(i, 1), o(j, n), _(n), o("remove-tag", O);
|
|
372
376
|
}
|
|
373
|
-
},
|
|
374
|
-
const i =
|
|
375
|
-
if (i > -1 && !
|
|
377
|
+
}, Bt = (t, n) => {
|
|
378
|
+
const i = l.selected.indexOf(n);
|
|
379
|
+
if (i > -1 && !J.value) {
|
|
376
380
|
const O = z(e.modelValue).slice();
|
|
377
381
|
O.splice(i, 1), o(j, O), _(O), o("remove-tag", n.value);
|
|
378
382
|
}
|
|
379
|
-
|
|
380
|
-
}, Ge = (
|
|
381
|
-
|
|
382
|
-
const n = e.multiple ? [] :
|
|
383
|
+
t.stopPropagation(), pe();
|
|
384
|
+
}, Ge = (t) => {
|
|
385
|
+
t.stopPropagation();
|
|
386
|
+
const n = e.multiple ? [] : ft.value;
|
|
383
387
|
if (e.multiple)
|
|
384
|
-
for (const i of
|
|
388
|
+
for (const i of l.selected)
|
|
385
389
|
i.isDisabled && n.push(i.value);
|
|
386
|
-
o(j, n), _(n),
|
|
387
|
-
}, Ue = (
|
|
390
|
+
o(j, n), _(n), l.hoveringIndex = -1, C.value = !1, o("clear"), pe();
|
|
391
|
+
}, Ue = (t) => {
|
|
388
392
|
var n;
|
|
389
393
|
if (e.multiple) {
|
|
390
|
-
const i = z((n = e.modelValue) != null ? n : []).slice(), O = je(i,
|
|
391
|
-
O > -1 ? i.splice(O, 1) : (e.multipleLimit <= 0 || i.length < e.multipleLimit) && i.push(
|
|
394
|
+
const i = z((n = e.modelValue) != null ? n : []).slice(), O = je(i, t);
|
|
395
|
+
O > -1 ? i.splice(O, 1) : (e.multipleLimit <= 0 || i.length < e.multipleLimit) && i.push(t.value), o(j, i), _(i), t.created && ue(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
|
|
392
396
|
} else
|
|
393
|
-
o(j,
|
|
397
|
+
o(j, t.value), _(t.value), C.value = !1;
|
|
394
398
|
pe(), !C.value && F(() => {
|
|
395
|
-
ce(
|
|
399
|
+
ce(t);
|
|
396
400
|
});
|
|
397
|
-
}, je = (
|
|
401
|
+
}, je = (t = [], n) => me(n) ? -1 : q(n.value) ? t.findIndex((i) => ge(Q(i, e.valueKey), fe(n))) : t.indexOf(n.value), ce = (t) => {
|
|
398
402
|
var n, i, O, R, U;
|
|
399
|
-
const N = P(
|
|
403
|
+
const N = P(t) ? t[0] : t;
|
|
400
404
|
let ve = null;
|
|
401
405
|
if (N != null && N.value) {
|
|
402
|
-
const x = M.value.filter((
|
|
406
|
+
const x = M.value.filter((Zt) => Zt.value === N.value);
|
|
403
407
|
x.length > 0 && (ve = x[0].$el);
|
|
404
408
|
}
|
|
405
409
|
if (m.value && ve) {
|
|
406
|
-
const x = (R = (O = (i = (n = m.value) == null ? void 0 : n.popperRef) == null ? void 0 : i.contentRef) == null ? void 0 : O.querySelector) == null ? void 0 : R.call(O, `.${
|
|
407
|
-
x &&
|
|
410
|
+
const x = (R = (O = (i = (n = m.value) == null ? void 0 : n.popperRef) == null ? void 0 : i.contentRef) == null ? void 0 : O.querySelector) == null ? void 0 : R.call(O, `.${s.be("dropdown", "wrap")}`);
|
|
411
|
+
x && Ll(x, ve);
|
|
408
412
|
}
|
|
409
|
-
(U =
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
},
|
|
413
|
-
|
|
414
|
-
},
|
|
415
|
-
var
|
|
416
|
-
return (n = (
|
|
417
|
-
}),
|
|
418
|
-
|
|
413
|
+
(U = se.value) == null || U.handleScroll();
|
|
414
|
+
}, Nt = (t) => {
|
|
415
|
+
l.options.set(t.value, t), l.cachedOptions.set(t.value, t);
|
|
416
|
+
}, Wt = (t, n) => {
|
|
417
|
+
l.options.get(t) === n && l.options.delete(t);
|
|
418
|
+
}, Ft = r(() => {
|
|
419
|
+
var t, n;
|
|
420
|
+
return (n = (t = m.value) == null ? void 0 : t.popperRef) == null ? void 0 : n.contentRef;
|
|
421
|
+
}), zt = () => {
|
|
422
|
+
l.isBeforeHide = !1, F(() => ce(l.selected));
|
|
419
423
|
}, pe = () => {
|
|
420
|
-
var
|
|
421
|
-
(
|
|
422
|
-
},
|
|
423
|
-
var
|
|
424
|
+
var t;
|
|
425
|
+
(t = y.value) == null || t.focus();
|
|
426
|
+
}, Pt = () => {
|
|
427
|
+
var t;
|
|
424
428
|
if (C.value) {
|
|
425
429
|
C.value = !1, F(() => {
|
|
426
430
|
var n;
|
|
@@ -428,107 +432,107 @@ const xt = (e, o) => {
|
|
|
428
432
|
});
|
|
429
433
|
return;
|
|
430
434
|
}
|
|
431
|
-
(
|
|
432
|
-
},
|
|
433
|
-
Ge(
|
|
434
|
-
},
|
|
435
|
+
(t = y.value) == null || t.blur();
|
|
436
|
+
}, Kt = (t) => {
|
|
437
|
+
Ge(t);
|
|
438
|
+
}, At = (t) => {
|
|
435
439
|
if (C.value = !1, De.value) {
|
|
436
|
-
const n = new FocusEvent("focus",
|
|
437
|
-
F(() =>
|
|
440
|
+
const n = new FocusEvent("focus", t);
|
|
441
|
+
F(() => ct(n));
|
|
438
442
|
}
|
|
439
|
-
},
|
|
440
|
-
|
|
443
|
+
}, Ht = () => {
|
|
444
|
+
l.inputValue.length > 0 ? l.inputValue = "" : C.value = !1;
|
|
441
445
|
}, qe = () => {
|
|
442
|
-
|
|
443
|
-
},
|
|
446
|
+
J.value || (xe && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : C.value = !C.value);
|
|
447
|
+
}, Gt = () => {
|
|
444
448
|
if (!C.value)
|
|
445
449
|
qe();
|
|
446
450
|
else {
|
|
447
|
-
const
|
|
448
|
-
|
|
451
|
+
const t = M.value[l.hoveringIndex];
|
|
452
|
+
t && !t.isDisabled && Ue(t);
|
|
449
453
|
}
|
|
450
|
-
}, fe = (
|
|
454
|
+
}, fe = (t) => q(t.value) ? Q(t.value, e.valueKey) : t.value, Ut = r(() => M.value.filter((t) => t.visible).every((t) => t.isDisabled)), jt = r(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), qt = r(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), Qe = (t) => {
|
|
451
455
|
if (!C.value) {
|
|
452
456
|
C.value = !0;
|
|
453
457
|
return;
|
|
454
458
|
}
|
|
455
|
-
if (!(
|
|
456
|
-
|
|
457
|
-
const n = M.value[
|
|
458
|
-
(n.isDisabled || !n.visible) && Qe(
|
|
459
|
+
if (!(l.options.size === 0 || Z.value === 0 || ie.value) && !Ut.value) {
|
|
460
|
+
t === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : t === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
|
|
461
|
+
const n = M.value[l.hoveringIndex];
|
|
462
|
+
(n.isDisabled || !n.visible) && Qe(t), F(() => ce(X.value));
|
|
459
463
|
}
|
|
460
|
-
},
|
|
464
|
+
}, Qt = () => {
|
|
461
465
|
if (!u.value)
|
|
462
466
|
return 0;
|
|
463
|
-
const
|
|
464
|
-
return Number.parseFloat(
|
|
465
|
-
},
|
|
466
|
-
const
|
|
467
|
-
return { maxWidth: `${E.value && e.maxCollapseTags === 1 ?
|
|
468
|
-
}),
|
|
469
|
-
o("popup-scroll",
|
|
467
|
+
const t = window.getComputedStyle(u.value);
|
|
468
|
+
return Number.parseFloat(t.gap || "6px");
|
|
469
|
+
}, Xt = r(() => {
|
|
470
|
+
const t = Qt();
|
|
471
|
+
return { maxWidth: `${E.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t : l.selectionWidth}px` };
|
|
472
|
+
}), Yt = r(() => ({ maxWidth: `${l.selectionWidth}px` })), Jt = (t) => {
|
|
473
|
+
o("popup-scroll", t);
|
|
470
474
|
};
|
|
471
|
-
return H(u,
|
|
475
|
+
return H(u, Mt), H(h, we), H(Re, we), H(d, Pe), H(E, Rt), ke(() => {
|
|
472
476
|
de();
|
|
473
477
|
}), {
|
|
474
|
-
inputId:
|
|
478
|
+
inputId: pt,
|
|
475
479
|
contentId: c,
|
|
476
|
-
nsSelect:
|
|
480
|
+
nsSelect: s,
|
|
477
481
|
nsInput: v,
|
|
478
|
-
states:
|
|
482
|
+
states: l,
|
|
479
483
|
isFocused: De,
|
|
480
484
|
expanded: C,
|
|
481
485
|
optionsArray: M,
|
|
482
|
-
hoverOption:
|
|
486
|
+
hoverOption: X,
|
|
483
487
|
selectSize: We,
|
|
484
488
|
filteredOptionsCount: Z,
|
|
485
489
|
updateTooltip: we,
|
|
486
490
|
updateTagTooltip: Pe,
|
|
487
491
|
debouncedOnInputChange: He,
|
|
488
492
|
onInput: Ae,
|
|
489
|
-
deletePrevTag:
|
|
490
|
-
deleteTag:
|
|
493
|
+
deletePrevTag: Lt,
|
|
494
|
+
deleteTag: Bt,
|
|
491
495
|
deleteSelected: Ge,
|
|
492
496
|
handleOptionSelect: Ue,
|
|
493
497
|
scrollToOption: ce,
|
|
494
498
|
hasModelValue: Oe,
|
|
495
|
-
shouldShowPlaceholder:
|
|
496
|
-
currentPlaceholder:
|
|
497
|
-
mouseEnterEventName: $
|
|
498
|
-
needStatusIcon:
|
|
499
|
-
showClose:
|
|
499
|
+
shouldShowPlaceholder: Et,
|
|
500
|
+
currentPlaceholder: Tt,
|
|
501
|
+
mouseEnterEventName: $t,
|
|
502
|
+
needStatusIcon: mt,
|
|
503
|
+
showClose: bt,
|
|
500
504
|
iconComponent: Le,
|
|
501
|
-
iconReverse:
|
|
505
|
+
iconReverse: ht,
|
|
502
506
|
validateState: Be,
|
|
503
|
-
validateIcon:
|
|
504
|
-
showNewOption:
|
|
507
|
+
validateIcon: gt,
|
|
508
|
+
showNewOption: wt,
|
|
505
509
|
updateOptions: Ne,
|
|
506
|
-
collapseTagSize:
|
|
510
|
+
collapseTagSize: It,
|
|
507
511
|
setSelected: de,
|
|
508
|
-
selectDisabled:
|
|
509
|
-
emptyText:
|
|
510
|
-
handleCompositionStart:
|
|
511
|
-
handleCompositionUpdate:
|
|
512
|
-
handleCompositionEnd:
|
|
513
|
-
onOptionCreate:
|
|
514
|
-
onOptionDestroy:
|
|
515
|
-
handleMenuEnter:
|
|
512
|
+
selectDisabled: J,
|
|
513
|
+
emptyText: Ct,
|
|
514
|
+
handleCompositionStart: rt,
|
|
515
|
+
handleCompositionUpdate: ut,
|
|
516
|
+
handleCompositionEnd: dt,
|
|
517
|
+
onOptionCreate: Nt,
|
|
518
|
+
onOptionDestroy: Wt,
|
|
519
|
+
handleMenuEnter: zt,
|
|
516
520
|
focus: pe,
|
|
517
|
-
blur:
|
|
518
|
-
handleClearClick:
|
|
519
|
-
handleClickOutside:
|
|
520
|
-
handleEsc:
|
|
521
|
+
blur: Pt,
|
|
522
|
+
handleClearClick: Kt,
|
|
523
|
+
handleClickOutside: At,
|
|
524
|
+
handleEsc: Ht,
|
|
521
525
|
toggleMenu: qe,
|
|
522
|
-
selectOption:
|
|
526
|
+
selectOption: Gt,
|
|
523
527
|
getValueKey: fe,
|
|
524
528
|
navigateOptions: Qe,
|
|
525
|
-
dropdownMenuVisible:
|
|
526
|
-
showTagList:
|
|
527
|
-
collapseTagList:
|
|
528
|
-
popupScroll:
|
|
529
|
-
tagStyle:
|
|
530
|
-
collapseTagStyle:
|
|
531
|
-
popperRef:
|
|
529
|
+
dropdownMenuVisible: Vt,
|
|
530
|
+
showTagList: jt,
|
|
531
|
+
collapseTagList: qt,
|
|
532
|
+
popupScroll: Jt,
|
|
533
|
+
tagStyle: Xt,
|
|
534
|
+
collapseTagStyle: Yt,
|
|
535
|
+
popperRef: Ft,
|
|
532
536
|
inputRef: y,
|
|
533
537
|
tooltipRef: m,
|
|
534
538
|
tagTooltipRef: b,
|
|
@@ -537,32 +541,32 @@ const xt = (e, o) => {
|
|
|
537
541
|
selectRef: S,
|
|
538
542
|
wrapperRef: Re,
|
|
539
543
|
selectionRef: u,
|
|
540
|
-
scrollbarRef:
|
|
544
|
+
scrollbarRef: se,
|
|
541
545
|
menuRef: h,
|
|
542
546
|
tagMenuRef: d,
|
|
543
547
|
collapseItemRef: E
|
|
544
548
|
};
|
|
545
549
|
};
|
|
546
|
-
var en =
|
|
550
|
+
var en = ae({
|
|
547
551
|
name: "ElOptions",
|
|
548
552
|
setup(e, { slots: o }) {
|
|
549
|
-
const
|
|
553
|
+
const a = Se(Ce);
|
|
550
554
|
let c = [];
|
|
551
555
|
return () => {
|
|
552
|
-
var
|
|
553
|
-
const
|
|
556
|
+
var s, v;
|
|
557
|
+
const l = (s = o.default) == null ? void 0 : s.call(o), S = [];
|
|
554
558
|
function u(m) {
|
|
555
559
|
P(m) && m.forEach((b) => {
|
|
556
560
|
var y, w, f, h;
|
|
557
561
|
const d = (y = (b == null ? void 0 : b.type) || {}) == null ? void 0 : y.name;
|
|
558
|
-
d === "ElOptionGroup" ? u(
|
|
562
|
+
d === "ElOptionGroup" ? u(!El(b.children) && !P(b.children) && te((w = b.children) == null ? void 0 : w.default) ? (f = b.children) == null ? void 0 : f.default() : b.children) : d === "ElOption" ? S.push((h = b.props) == null ? void 0 : h.value) : P(b.children) && u(b.children);
|
|
559
563
|
});
|
|
560
564
|
}
|
|
561
|
-
return
|
|
565
|
+
return l.length && u((v = l[0]) == null ? void 0 : v.children), ge(S, c) || (c = S, a && (a.states.optionValues = S)), l;
|
|
562
566
|
};
|
|
563
567
|
}
|
|
564
568
|
});
|
|
565
|
-
const
|
|
569
|
+
const tn = Tl({
|
|
566
570
|
name: String,
|
|
567
571
|
id: String,
|
|
568
572
|
modelValue: {
|
|
@@ -574,7 +578,7 @@ const ln = kt({
|
|
|
574
578
|
default: "off"
|
|
575
579
|
},
|
|
576
580
|
automaticDropdown: Boolean,
|
|
577
|
-
size:
|
|
581
|
+
size: bl,
|
|
578
582
|
effect: {
|
|
579
583
|
type: be(String),
|
|
580
584
|
default: "light"
|
|
@@ -621,19 +625,19 @@ const ln = kt({
|
|
|
621
625
|
type: Number,
|
|
622
626
|
default: 1
|
|
623
627
|
},
|
|
624
|
-
teleported:
|
|
628
|
+
teleported: al.teleported,
|
|
625
629
|
persistent: {
|
|
626
630
|
type: Boolean,
|
|
627
631
|
default: !0
|
|
628
632
|
},
|
|
629
633
|
clearIcon: {
|
|
630
634
|
type: _e,
|
|
631
|
-
default:
|
|
635
|
+
default: hl
|
|
632
636
|
},
|
|
633
637
|
fitInputWidth: Boolean,
|
|
634
638
|
suffixIcon: {
|
|
635
639
|
type: _e,
|
|
636
|
-
default:
|
|
640
|
+
default: gl
|
|
637
641
|
},
|
|
638
642
|
tagType: { ...Ze.type, default: "info" },
|
|
639
643
|
tagEffect: { ...Ze.effect, default: "light" },
|
|
@@ -652,7 +656,7 @@ const ln = kt({
|
|
|
652
656
|
},
|
|
653
657
|
placement: {
|
|
654
658
|
type: be(String),
|
|
655
|
-
values:
|
|
659
|
+
values: sl,
|
|
656
660
|
default: "bottom-start"
|
|
657
661
|
},
|
|
658
662
|
fallbackPlacements: {
|
|
@@ -664,25 +668,25 @@ const ln = kt({
|
|
|
664
668
|
default: 0
|
|
665
669
|
},
|
|
666
670
|
appendTo: String,
|
|
667
|
-
...
|
|
668
|
-
...
|
|
669
|
-
}),
|
|
670
|
-
name:
|
|
671
|
-
componentName:
|
|
671
|
+
...Sl,
|
|
672
|
+
...il(["ariaLabel"])
|
|
673
|
+
}), tt = "ElSelect", ln = ae({
|
|
674
|
+
name: tt,
|
|
675
|
+
componentName: tt,
|
|
672
676
|
components: {
|
|
673
|
-
ElSelectMenu:
|
|
677
|
+
ElSelectMenu: _l,
|
|
674
678
|
ElOption: Me,
|
|
675
679
|
ElOptions: en,
|
|
676
|
-
ElTag:
|
|
677
|
-
ElScrollbar:
|
|
678
|
-
ElTooltip:
|
|
679
|
-
ElIcon:
|
|
680
|
+
ElTag: dl,
|
|
681
|
+
ElScrollbar: rl,
|
|
682
|
+
ElTooltip: ul,
|
|
683
|
+
ElIcon: yl
|
|
680
684
|
},
|
|
681
|
-
directives: { ClickOutside:
|
|
682
|
-
props:
|
|
685
|
+
directives: { ClickOutside: Nl },
|
|
686
|
+
props: tn,
|
|
683
687
|
emits: [
|
|
684
688
|
j,
|
|
685
|
-
|
|
689
|
+
at,
|
|
686
690
|
"remove-tag",
|
|
687
691
|
"clear",
|
|
688
692
|
"visible-change",
|
|
@@ -691,39 +695,39 @@ const ln = kt({
|
|
|
691
695
|
"popup-scroll"
|
|
692
696
|
],
|
|
693
697
|
setup(e, { emit: o }) {
|
|
694
|
-
const
|
|
698
|
+
const a = r(() => {
|
|
695
699
|
const { modelValue: u, multiple: m } = e, b = m ? [] : void 0;
|
|
696
700
|
return P(u) ? m ? u : b : m ? b : u;
|
|
697
701
|
}), c = ne({
|
|
698
702
|
...Te(e),
|
|
699
|
-
modelValue:
|
|
700
|
-
}),
|
|
701
|
-
|
|
703
|
+
modelValue: a
|
|
704
|
+
}), s = xl(c, o), { calculatorRef: v, inputStyle: l } = ql();
|
|
705
|
+
lt(Ce, ne({
|
|
702
706
|
props: c,
|
|
703
|
-
states:
|
|
704
|
-
optionsArray:
|
|
705
|
-
handleOptionSelect:
|
|
706
|
-
onOptionCreate:
|
|
707
|
-
onOptionDestroy:
|
|
708
|
-
selectRef:
|
|
709
|
-
setSelected:
|
|
707
|
+
states: s.states,
|
|
708
|
+
optionsArray: s.optionsArray,
|
|
709
|
+
handleOptionSelect: s.handleOptionSelect,
|
|
710
|
+
onOptionCreate: s.onOptionCreate,
|
|
711
|
+
onOptionDestroy: s.onOptionDestroy,
|
|
712
|
+
selectRef: s.selectRef,
|
|
713
|
+
setSelected: s.setSelected
|
|
710
714
|
}));
|
|
711
|
-
const S = r(() => e.multiple ?
|
|
715
|
+
const S = r(() => e.multiple ? s.states.selected.map((u) => u.currentLabel) : s.states.selectedLabel);
|
|
712
716
|
return {
|
|
713
|
-
...
|
|
714
|
-
modelValue:
|
|
717
|
+
...s,
|
|
718
|
+
modelValue: a,
|
|
715
719
|
selectedLabel: S,
|
|
716
720
|
calculatorRef: v,
|
|
717
|
-
inputStyle:
|
|
721
|
+
inputStyle: l
|
|
718
722
|
};
|
|
719
723
|
}
|
|
720
724
|
});
|
|
721
|
-
function nn(e, o,
|
|
722
|
-
const
|
|
723
|
-
return
|
|
725
|
+
function nn(e, o, a, c, s, v) {
|
|
726
|
+
const l = K("el-tag"), S = K("el-tooltip"), u = K("el-icon"), m = K("el-option"), b = K("el-options"), y = K("el-scrollbar"), w = K("el-select-menu"), f = ll("click-outside");
|
|
727
|
+
return le((g(), I("div", {
|
|
724
728
|
ref: "selectRef",
|
|
725
729
|
class: p([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
|
|
726
|
-
[
|
|
730
|
+
[nl(e.mouseEnterEventName)]: (h) => e.states.inputHovering = !0,
|
|
727
731
|
onMouseleave: (h) => e.states.inputHovering = !1
|
|
728
732
|
}, [
|
|
729
733
|
A(S, {
|
|
@@ -776,11 +780,11 @@ function nn(e, o, s, c, a, v) {
|
|
|
776
780
|
])
|
|
777
781
|
}, [
|
|
778
782
|
e.multiple ? $(e.$slots, "tag", { key: 0 }, () => [
|
|
779
|
-
(g(!0), I(
|
|
783
|
+
(g(!0), I(Xe, null, Ye(e.showTagList, (d) => (g(), I("div", {
|
|
780
784
|
key: e.getValueKey(d),
|
|
781
785
|
class: p(e.nsSelect.e("selected-item"))
|
|
782
786
|
}, [
|
|
783
|
-
A(
|
|
787
|
+
A(l, {
|
|
784
788
|
closable: !e.selectDisabled && !d.isDisabled,
|
|
785
789
|
size: e.collapseTagSize,
|
|
786
790
|
type: e.tagType,
|
|
@@ -797,7 +801,7 @@ function nn(e, o, s, c, a, v) {
|
|
|
797
801
|
label: d.currentLabel,
|
|
798
802
|
value: d.value
|
|
799
803
|
}, () => [
|
|
800
|
-
|
|
804
|
+
Je(B(d.currentLabel), 1)
|
|
801
805
|
])
|
|
802
806
|
], 2)
|
|
803
807
|
]),
|
|
@@ -818,7 +822,7 @@ function nn(e, o, s, c, a, v) {
|
|
|
818
822
|
ref: "collapseItemRef",
|
|
819
823
|
class: p(e.nsSelect.e("selected-item"))
|
|
820
824
|
}, [
|
|
821
|
-
A(
|
|
825
|
+
A(l, {
|
|
822
826
|
closable: !1,
|
|
823
827
|
size: e.collapseTagSize,
|
|
824
828
|
type: e.tagType,
|
|
@@ -840,11 +844,11 @@ function nn(e, o, s, c, a, v) {
|
|
|
840
844
|
ref: "tagMenuRef",
|
|
841
845
|
class: p(e.nsSelect.e("selection"))
|
|
842
846
|
}, [
|
|
843
|
-
(g(!0), I(
|
|
847
|
+
(g(!0), I(Xe, null, Ye(e.collapseTagList, (d) => (g(), I("div", {
|
|
844
848
|
key: e.getValueKey(d),
|
|
845
849
|
class: p(e.nsSelect.e("selected-item"))
|
|
846
850
|
}, [
|
|
847
|
-
A(
|
|
851
|
+
A(l, {
|
|
848
852
|
class: "in-tooltip",
|
|
849
853
|
closable: !e.selectDisabled && !d.isDisabled,
|
|
850
854
|
size: e.collapseTagSize,
|
|
@@ -861,7 +865,7 @@ function nn(e, o, s, c, a, v) {
|
|
|
861
865
|
label: d.currentLabel,
|
|
862
866
|
value: d.value
|
|
863
867
|
}, () => [
|
|
864
|
-
|
|
868
|
+
Je(B(d.currentLabel), 1)
|
|
865
869
|
])
|
|
866
870
|
], 2)
|
|
867
871
|
]),
|
|
@@ -880,7 +884,7 @@ function nn(e, o, s, c, a, v) {
|
|
|
880
884
|
e.nsSelect.is("hidden", !e.filterable)
|
|
881
885
|
])
|
|
882
886
|
}, [
|
|
883
|
-
|
|
887
|
+
le(T("input", {
|
|
884
888
|
id: e.inputId,
|
|
885
889
|
ref: "inputRef",
|
|
886
890
|
"onUpdate:modelValue": (d) => e.states.inputValue = d,
|
|
@@ -913,7 +917,7 @@ function nn(e, o, s, c, a, v) {
|
|
|
913
917
|
onInput: e.onInput,
|
|
914
918
|
onClick: L(e.toggleMenu, ["stop"])
|
|
915
919
|
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
|
916
|
-
[
|
|
920
|
+
[ol, e.states.inputValue]
|
|
917
921
|
]),
|
|
918
922
|
e.filterable ? (g(), I("span", {
|
|
919
923
|
key: 0,
|
|
@@ -995,7 +999,7 @@ function nn(e, o, s, c, a, v) {
|
|
|
995
999
|
}, [
|
|
996
1000
|
$(e.$slots, "header")
|
|
997
1001
|
], 10, ["onClick"])) : k("v-if", !0),
|
|
998
|
-
|
|
1002
|
+
le(A(y, {
|
|
999
1003
|
id: e.contentId,
|
|
1000
1004
|
ref: "scrollbarRef",
|
|
1001
1005
|
tag: "ul",
|
|
@@ -1055,8 +1059,8 @@ function nn(e, o, s, c, a, v) {
|
|
|
1055
1059
|
[f, e.handleClickOutside, e.popperRef]
|
|
1056
1060
|
]);
|
|
1057
1061
|
}
|
|
1058
|
-
var on = /* @__PURE__ */ ye(
|
|
1059
|
-
const
|
|
1062
|
+
var on = /* @__PURE__ */ ye(ln, [["render", nn], ["__file", "select.vue"]]);
|
|
1063
|
+
const an = ae({
|
|
1060
1064
|
name: "ElOptionGroup",
|
|
1061
1065
|
componentName: "ElOptionGroup",
|
|
1062
1066
|
props: {
|
|
@@ -1064,37 +1068,37 @@ const sn = se({
|
|
|
1064
1068
|
disabled: Boolean
|
|
1065
1069
|
},
|
|
1066
1070
|
setup(e) {
|
|
1067
|
-
const o = oe("select"),
|
|
1068
|
-
|
|
1071
|
+
const o = oe("select"), a = V(null), c = Ee(), s = V([]);
|
|
1072
|
+
lt(st, ne({
|
|
1069
1073
|
...Te(e)
|
|
1070
1074
|
}));
|
|
1071
|
-
const v = r(() =>
|
|
1075
|
+
const v = r(() => s.value.some((m) => m.visible === !0)), l = (m) => {
|
|
1072
1076
|
var b, y;
|
|
1073
1077
|
return ((b = m.type) == null ? void 0 : b.name) === "ElOption" && !!((y = m.component) != null && y.proxy);
|
|
1074
1078
|
}, S = (m) => {
|
|
1075
1079
|
const b = z(m), y = [];
|
|
1076
1080
|
return b.forEach((w) => {
|
|
1077
1081
|
var f, h;
|
|
1078
|
-
|
|
1082
|
+
l(w) ? y.push(w.component.proxy) : (f = w.children) != null && f.length ? y.push(...S(w.children)) : (h = w.component) != null && h.subTree && y.push(...S(w.component.subTree));
|
|
1079
1083
|
}), y;
|
|
1080
1084
|
}, u = () => {
|
|
1081
|
-
|
|
1085
|
+
s.value = S(c.subTree);
|
|
1082
1086
|
};
|
|
1083
1087
|
return ke(() => {
|
|
1084
1088
|
u();
|
|
1085
|
-
}),
|
|
1089
|
+
}), kl(a, u, {
|
|
1086
1090
|
attributes: !0,
|
|
1087
1091
|
subtree: !0,
|
|
1088
1092
|
childList: !0
|
|
1089
1093
|
}), {
|
|
1090
|
-
groupRef:
|
|
1094
|
+
groupRef: a,
|
|
1091
1095
|
visible: v,
|
|
1092
1096
|
ns: o
|
|
1093
1097
|
};
|
|
1094
1098
|
}
|
|
1095
1099
|
});
|
|
1096
|
-
function
|
|
1097
|
-
return
|
|
1100
|
+
function sn(e, o, a, c, s, v) {
|
|
1101
|
+
return le((g(), I("ul", {
|
|
1098
1102
|
ref: "groupRef",
|
|
1099
1103
|
class: p(e.ns.be("group", "wrap"))
|
|
1100
1104
|
}, [
|
|
@@ -1112,13 +1116,13 @@ function an(e, o, s, c, a, v) {
|
|
|
1112
1116
|
[$e, e.visible]
|
|
1113
1117
|
]);
|
|
1114
1118
|
}
|
|
1115
|
-
var
|
|
1116
|
-
const
|
|
1119
|
+
var it = /* @__PURE__ */ ye(an, [["render", sn], ["__file", "option-group.vue"]]);
|
|
1120
|
+
const yn = $l(on, {
|
|
1117
1121
|
Option: Me,
|
|
1118
|
-
OptionGroup:
|
|
1119
|
-
}),
|
|
1120
|
-
|
|
1122
|
+
OptionGroup: it
|
|
1123
|
+
}), Cn = ot(Me);
|
|
1124
|
+
ot(it);
|
|
1121
1125
|
export {
|
|
1122
|
-
|
|
1123
|
-
|
|
1126
|
+
Cn as E,
|
|
1127
|
+
yn as a
|
|
1124
1128
|
};
|