st-comp 0.0.192 → 0.0.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ChartLayout.js +4 -4
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +32 -32
- package/es/FactorWarning.js +29 -29
- package/es/Kline.js +15 -15
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +110 -104
- package/es/KlineConfig.js +20 -20
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.js +17 -17
- package/es/Map.cjs +1 -1
- package/es/Map.js +1 -102944
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/Pagination.js +69 -69
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.js +29 -29
- package/es/User.js +21 -21
- package/es/VarSelectDialog.js +22 -22
- package/es/VarietyAutoComplete.js +9 -9
- package/es/VarietySearch.cjs +6 -6
- package/es/VarietySearch.js +523 -507
- package/es/VirtualTable.js +13 -13
- package/es/{_initCloneObject-d37d0044.js → _initCloneObject-25087817.js} +9 -9
- package/es/{base-62a70f61.js → base-f5b11441.js} +40 -40
- package/es/{config-provider-eb54307e.js → config-provider-95d27ce2.js} +6 -6
- package/es/{debounce-ccdceb02.js → debounce-06f59c68.js} +9 -9
- package/es/{dropdown-e0119d36.js → dropdown-7a853d45.js} +9 -9
- package/es/{el-autocomplete-fdd72342.js → el-autocomplete-e74d589c.js} +15 -15
- package/es/{el-button-17a2e708.js → el-button-5a260464.js} +33 -33
- package/es/{el-dialog-2fbffe7d.js → el-dialog-8d8f6443.js} +15 -15
- package/es/{el-divider-2f300113.js → el-divider-4e1c0fb8.js} +1 -1
- package/es/{el-empty-34086220.js → el-empty-deee6b39.js} +5 -5
- package/es/{el-form-item-5f9d8170.js → el-form-item-3167d76a.js} +33 -33
- package/es/{el-input-c2f1f98c.js → el-input-03aad76d.js} +33 -33
- package/es/{el-input-number-429626d1.js → el-input-number-12c09ac3.js} +35 -35
- package/es/{el-loading-a45d849f.js → el-loading-86fdef94.js} +5 -5
- package/es/{el-menu-item-1bbf217d.js → el-menu-item-1172154b.js} +22 -22
- package/es/{el-message-179d8e61.js → el-message-35d4e3ac.js} +23 -23
- package/es/{el-message-box-869d122c.js → el-message-box-f43b6e7a.js} +20 -20
- package/es/{el-overlay-56098a38.js → el-overlay-04659660.js} +47 -47
- package/es/{el-popconfirm-6f9a189f.js → el-popconfirm-29d538b6.js} +20 -20
- package/es/{el-popper-d236d5d3.js → el-popper-ee1f8186.js} +125 -125
- package/es/{el-scrollbar-191aee47.js → el-scrollbar-09769d9e.js} +48 -48
- package/es/{el-segmented-d74e1fd8.js → el-segmented-916b982a.js} +8 -8
- package/es/{el-select-b26edf16.js → el-select-8cb88e3c.js} +307 -307
- package/es/{el-table-column-cc880936.js → el-table-column-0c899664.js} +12 -12
- package/es/{el-tag-b79bf878.js → el-tag-554c333b.js} +21 -21
- package/es/{index-89502796.js → index-34048a1d.js} +36 -36
- package/es/{index-7926ee44.js → index-384ed4b0.js} +3 -3
- package/es/{index-5beb56b8.js → index-5b62ea0e.js} +52 -52
- package/es/{index-63a17b07.js → index-69a9bd75.js} +2 -2
- package/es/{index-a137018b.js → index-a8ee0e8c.js} +15 -3
- package/es/{index-524e4e84.js → index-b07f58c9.js} +31 -31
- package/es/{index-97658183.js → index-b7fd560c.js} +12 -12
- package/es/{index-482f09b5.js → index-cfeda35a.js} +1 -1
- package/es/{index-08cdcff5.js → index-df06f32a.js} +15 -15
- package/es/{index-b2b45b6e.cjs → index-fdb71325.cjs} +2 -2
- package/es/{python-2b765700.cjs → python-0405c62e.cjs} +1 -1
- package/es/{python-2cff7134.js → python-791e6a42.js} +1 -1
- package/es/raf-fa761d02.js +6 -0
- package/es/{scroll-7d352c1f.js → scroll-9e2dd92b.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-global-config-88d2fb63.js → use-global-config-1923bb6f.js} +16 -16
- package/es/{validator-6d37dbfa.js → validator-fd32f925.js} +1 -1
- package/es/{vnode-c51c8aa3.js → vnode-f9752526.js} +1 -1
- package/es/{zh-cn-47b11646.js → zh-cn-d667062d.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +33 -33
- package/lib/{index-e33e2a73.js → index-db060de6.js} +603 -569
- package/lib/{python-bfee2b7e.js → python-077c8efa.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/index.vue +2 -2
- package/packages/MonacoEditor/index.vue +22 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +33 -12
- package/packages/VarietySearch/config.js +2 -2
- package/es/raf-41aed4d4.js +0 -6
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { g as z, u as
|
|
6
|
-
import { b as
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { s as
|
|
12
|
-
import { t as
|
|
13
|
-
import { b as
|
|
14
|
-
import { f as
|
|
15
|
-
var
|
|
16
|
-
function
|
|
1
|
+
import { shallowRef as il, ref as T, computed as u, inject as we, getCurrentInstance as Ve, toRaw as rl, watch as G, defineComponent as pe, unref as $e, reactive as de, toRefs as Be, onBeforeUnmount as ft, nextTick as Q, withDirectives as ue, openBlock as v, createElementBlock as w, normalizeClass as b, withModifiers as F, renderSlot as M, createElementVNode as k, toDisplayString as H, vShow as Pe, onMounted as We, normalizeStyle as Ce, createCommentVNode as L, watchEffect as ul, provide as vt, isVNode as dl, resolveComponent as q, resolveDirective as cl, toHandlerKey as pl, createVNode as _, withCtx as $, Fragment as se, renderList as Se, createTextVNode as ot, createBlock as P, withKeys as ie, vModelText as fl, resolveDynamicComponent as Le, mergeProps as at, normalizeProps as vl } from "vue";
|
|
2
|
+
import { t as ml, d as st, e as bl, U as x, C as Fe, a as it, q as hl, u as gl, s as yl, f as Sl, E as Ol } from "./el-popper-ee1f8186.js";
|
|
3
|
+
import { t as rt, E as Cl } from "./index-384ed4b0.js";
|
|
4
|
+
import { j as wl, f as Vl, E as El } from "./index-b07f58c9.js";
|
|
5
|
+
import { g as z, u as Il } from "./index-cfeda35a.js";
|
|
6
|
+
import { b as mt, h as U, u as ce, _ as Ee, i as j, q as Oe, J as ut, a as Tl, f as kl, c as re, P as Dl, e as Ml, d as W, w as Rl, y as bt } from "./base-f5b11441.js";
|
|
7
|
+
import { f as J, d as le, g as $l, u as Ll } from "./index-5b62ea0e.js";
|
|
8
|
+
import { u as ht } from "./index-34048a1d.js";
|
|
9
|
+
import { h as ee, e as Nl, f as Bl, V as Pl, a as Wl, u as Fl, i as dt, t as zl } from "./el-scrollbar-09769d9e.js";
|
|
10
|
+
import { a as Al, u as Kl } from "./index-b7fd560c.js";
|
|
11
|
+
import { s as Hl } from "./scroll-9e2dd92b.js";
|
|
12
|
+
import { t as Gl, d as Ul } from "./debounce-06f59c68.js";
|
|
13
|
+
import { b as jl, C as ql } from "./el-tag-554c333b.js";
|
|
14
|
+
import { f as Ql } from "./vnode-f9752526.js";
|
|
15
|
+
var ct = 1 / 0, Jl = 17976931348623157e292;
|
|
16
|
+
function Xl(e) {
|
|
17
17
|
if (!e)
|
|
18
18
|
return e === 0 ? e : 0;
|
|
19
|
-
if (e =
|
|
19
|
+
if (e = Gl(e), e === ct || e === -ct) {
|
|
20
20
|
var o = e < 0 ? -1 : 1;
|
|
21
|
-
return o *
|
|
21
|
+
return o * Jl;
|
|
22
22
|
}
|
|
23
23
|
return e === e ? e : 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
var o =
|
|
25
|
+
function Yl(e) {
|
|
26
|
+
var o = Xl(e), a = o % 1;
|
|
27
27
|
return o === o ? a ? o - a : o : 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Zl(e, o, a, f) {
|
|
30
30
|
for (var d = e.length, p = a + (f ? 1 : -1); f ? p-- : ++p < d; )
|
|
31
31
|
if (o(e[p], p, e))
|
|
32
32
|
return p;
|
|
33
33
|
return -1;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var _l = Math.max, xl = Math.min;
|
|
36
36
|
function en(e, o, a) {
|
|
37
37
|
var f = e == null ? 0 : e.length;
|
|
38
38
|
if (!f)
|
|
39
39
|
return -1;
|
|
40
40
|
var d = f - 1;
|
|
41
|
-
return a !== void 0 && (d =
|
|
41
|
+
return a !== void 0 && (d = Yl(a), d = a < 0 ? _l(f + d, 0) : xl(d, f - 1)), Zl(e, jl(o), d, !0);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
46
|
-
minWidth: `${Math.max(o.value,
|
|
43
|
+
const gt = 11, tn = 2;
|
|
44
|
+
function ln() {
|
|
45
|
+
const e = il(), o = T(0), a = u(() => ({
|
|
46
|
+
minWidth: `${Math.max(o.value, gt)}px`
|
|
47
47
|
}));
|
|
48
48
|
return ee(e, () => {
|
|
49
49
|
var d, p;
|
|
@@ -54,23 +54,23 @@ function tn() {
|
|
|
54
54
|
inputStyle: a
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const yt = {
|
|
58
58
|
label: "label",
|
|
59
59
|
value: "value",
|
|
60
60
|
disabled: "disabled",
|
|
61
61
|
options: "options"
|
|
62
62
|
};
|
|
63
63
|
function nn(e) {
|
|
64
|
-
const o = u(() => ({ ...
|
|
64
|
+
const o = u(() => ({ ...yt, ...e.props }));
|
|
65
65
|
return {
|
|
66
66
|
aliasProps: o,
|
|
67
|
-
getLabel: (
|
|
68
|
-
getValue: (
|
|
69
|
-
getDisabled: (
|
|
70
|
-
getOptions: (
|
|
67
|
+
getLabel: (l) => z(l, o.value.label),
|
|
68
|
+
getValue: (l) => z(l, o.value.value),
|
|
69
|
+
getDisabled: (l) => z(l, o.value.disabled),
|
|
70
|
+
getOptions: (l) => z(l, o.value.options)
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const St = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on = mt({
|
|
74
74
|
value: {
|
|
75
75
|
type: [String, Number, Boolean, Object],
|
|
76
76
|
required: !0
|
|
@@ -83,34 +83,34 @@ const Sl = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on
|
|
|
83
83
|
}), an = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
84
84
|
function sn(e, o) {
|
|
85
85
|
const a = we(Ie);
|
|
86
|
-
a ||
|
|
87
|
-
const f = we(
|
|
86
|
+
a || ml(Ne, "usage: <el-select><el-option /></el-select/>");
|
|
87
|
+
const f = we(St, { disabled: !1 }), d = u(() => y(J(a.props.modelValue), e.value)), p = u(() => {
|
|
88
88
|
var i;
|
|
89
89
|
if (a.props.multiple) {
|
|
90
|
-
const O =
|
|
90
|
+
const O = J((i = a.props.modelValue) != null ? i : []);
|
|
91
91
|
return !d.value && O.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
|
|
92
92
|
} else
|
|
93
93
|
return !1;
|
|
94
|
-
}),
|
|
94
|
+
}), l = u(() => {
|
|
95
95
|
var i;
|
|
96
96
|
return (i = e.label) != null ? i : U(e.value) ? "" : e.value;
|
|
97
97
|
}), C = u(() => e.value || e.label || ""), h = u(() => e.disabled || o.groupDisabled || p.value), S = Ve(), y = (i = [], O) => {
|
|
98
98
|
if (U(e.value)) {
|
|
99
99
|
const I = a.props.valueKey;
|
|
100
|
-
return i && i.some((R) =>
|
|
100
|
+
return i && i.some((R) => rl(z(R, I)) === z(O, I));
|
|
101
101
|
} else
|
|
102
102
|
return i && i.includes(O);
|
|
103
103
|
}, m = () => {
|
|
104
104
|
!e.disabled && !f.disabled && (a.states.hoveringIndex = a.optionsArray.indexOf(S.proxy));
|
|
105
105
|
}, s = (i) => {
|
|
106
106
|
const O = new RegExp(an(i), "i");
|
|
107
|
-
o.visible = O.test(String(
|
|
107
|
+
o.visible = O.test(String(l.value)) || e.created;
|
|
108
108
|
};
|
|
109
|
-
return G(() =>
|
|
109
|
+
return G(() => l.value, () => {
|
|
110
110
|
!e.created && !a.props.remote && a.setSelected();
|
|
111
111
|
}), G(() => e.value, (i, O) => {
|
|
112
112
|
const { remote: I, valueKey: R } = a.props;
|
|
113
|
-
if ((I ? i !== O : !
|
|
113
|
+
if ((I ? i !== O : !le(i, O)) && (a.onOptionDestroy(O, S.proxy), a.onOptionCreate(S.proxy)), !e.created && !I) {
|
|
114
114
|
if (R && U(i) && U(O) && i[R] === O[R])
|
|
115
115
|
return;
|
|
116
116
|
a.setSelected();
|
|
@@ -119,7 +119,7 @@ function sn(e, o) {
|
|
|
119
119
|
o.groupDisabled = f.disabled;
|
|
120
120
|
}, { immediate: !0 }), {
|
|
121
121
|
select: a,
|
|
122
|
-
currentLabel:
|
|
122
|
+
currentLabel: l,
|
|
123
123
|
currentValue: C,
|
|
124
124
|
itemSelected: d,
|
|
125
125
|
isDisabled: h,
|
|
@@ -132,10 +132,10 @@ const rn = pe({
|
|
|
132
132
|
componentName: Ne,
|
|
133
133
|
props: on,
|
|
134
134
|
setup(e) {
|
|
135
|
-
const o = ce("select"), a =
|
|
135
|
+
const o = ce("select"), a = ht(), f = u(() => [
|
|
136
136
|
o.be("dropdown", "item"),
|
|
137
137
|
o.is("disabled", $e(C)),
|
|
138
|
-
o.is("selected", $e(
|
|
138
|
+
o.is("selected", $e(l)),
|
|
139
139
|
o.is("hovering", $e(s))
|
|
140
140
|
]), d = de({
|
|
141
141
|
index: -1,
|
|
@@ -144,13 +144,13 @@ const rn = pe({
|
|
|
144
144
|
hover: !1
|
|
145
145
|
}), {
|
|
146
146
|
currentLabel: p,
|
|
147
|
-
itemSelected:
|
|
147
|
+
itemSelected: l,
|
|
148
148
|
isDisabled: C,
|
|
149
149
|
select: h,
|
|
150
150
|
hoverItem: S,
|
|
151
151
|
updateOption: y
|
|
152
152
|
} = sn(e, d), { visible: m, hover: s } = Be(d), i = Ve().proxy;
|
|
153
|
-
h.onOptionCreate(i),
|
|
153
|
+
h.onOptionCreate(i), ft(() => {
|
|
154
154
|
const I = i.value;
|
|
155
155
|
Q(() => {
|
|
156
156
|
const { selected: R } = h.states, g = R.some((c) => c.value === i.value);
|
|
@@ -165,7 +165,7 @@ const rn = pe({
|
|
|
165
165
|
id: a,
|
|
166
166
|
containerKls: f,
|
|
167
167
|
currentLabel: p,
|
|
168
|
-
itemSelected:
|
|
168
|
+
itemSelected: l,
|
|
169
169
|
isDisabled: C,
|
|
170
170
|
select: h,
|
|
171
171
|
visible: m,
|
|
@@ -200,13 +200,13 @@ const dn = pe({
|
|
|
200
200
|
componentName: "ElSelectDropdown",
|
|
201
201
|
setup() {
|
|
202
202
|
const e = we(Ie), o = ce("select"), a = u(() => e.props.popperClass), f = u(() => e.props.multiple), d = u(() => e.props.fitInputWidth), p = T("");
|
|
203
|
-
function
|
|
203
|
+
function l() {
|
|
204
204
|
var C;
|
|
205
205
|
const h = (C = e.selectRef) == null ? void 0 : C.offsetWidth;
|
|
206
|
-
h ? p.value = `${h -
|
|
206
|
+
h ? p.value = `${h - tn}px` : p.value = "";
|
|
207
207
|
}
|
|
208
208
|
return We(() => {
|
|
209
|
-
|
|
209
|
+
l(), ee(e.selectRef, l);
|
|
210
210
|
}), {
|
|
211
211
|
ns: o,
|
|
212
212
|
minWidth: p,
|
|
@@ -238,7 +238,7 @@ function cn(e, o, a, f, d, p) {
|
|
|
238
238
|
}
|
|
239
239
|
var pn = /* @__PURE__ */ Ee(dn, [["render", cn], ["__file", "select-dropdown.vue"]]);
|
|
240
240
|
const fn = (e, o) => {
|
|
241
|
-
const { t: a } =
|
|
241
|
+
const { t: a } = Il(), f = ht(), d = ce("select"), p = ce("input"), l = de({
|
|
242
242
|
inputValue: "",
|
|
243
243
|
options: /* @__PURE__ */ new Map(),
|
|
244
244
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -252,106 +252,106 @@ const fn = (e, o) => {
|
|
|
252
252
|
inputHovering: !1,
|
|
253
253
|
menuVisibleOnFocus: !1,
|
|
254
254
|
isBeforeHide: !1
|
|
255
|
-
}), C = T(), h = T(), S = T(), y = T(), m = T(), s = T(), i = T(), O = T(), I = T(), R = T(), g = T(), c = T(!1), V = T(), { form:
|
|
255
|
+
}), C = T(), h = T(), S = T(), y = T(), m = T(), s = T(), i = T(), O = T(), I = T(), R = T(), g = T(), c = T(!1), V = T(), { form: X, formItem: B } = Nl(), { inputId: A } = Bl(e, {
|
|
256
256
|
formItemContext: B
|
|
257
|
-
}), { valueOnClear: Ke, isEmptyValue:
|
|
257
|
+
}), { valueOnClear: Ke, isEmptyValue: Y } = $l(e), {
|
|
258
258
|
isComposing: He,
|
|
259
|
-
handleCompositionStart:
|
|
260
|
-
handleCompositionUpdate:
|
|
261
|
-
handleCompositionEnd:
|
|
262
|
-
} =
|
|
263
|
-
afterComposition: (
|
|
264
|
-
}), ne = u(() => e.disabled || !!(
|
|
259
|
+
handleCompositionStart: Ot,
|
|
260
|
+
handleCompositionUpdate: Ct,
|
|
261
|
+
handleCompositionEnd: wt
|
|
262
|
+
} = Al({
|
|
263
|
+
afterComposition: (t) => Ze(t)
|
|
264
|
+
}), ne = u(() => e.disabled || !!(X != null && X.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur: Vt } = Kl(m, {
|
|
265
265
|
disabled: ne,
|
|
266
266
|
afterFocus() {
|
|
267
|
-
e.automaticDropdown && !c.value && (c.value = !0,
|
|
267
|
+
e.automaticDropdown && !c.value && (c.value = !0, l.menuVisibleOnFocus = !0);
|
|
268
268
|
},
|
|
269
|
-
beforeBlur(
|
|
269
|
+
beforeBlur(t) {
|
|
270
270
|
var n, r;
|
|
271
|
-
return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(
|
|
271
|
+
return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(t)) || ((r = y.value) == null ? void 0 : r.isFocusInsideContent(t));
|
|
272
272
|
},
|
|
273
273
|
afterBlur() {
|
|
274
|
-
var
|
|
275
|
-
c.value = !1,
|
|
274
|
+
var t;
|
|
275
|
+
c.value = !1, l.menuVisibleOnFocus = !1, e.validateEvent && ((t = B == null ? void 0 : B.validate) == null || t.call(B, "blur").catch((n) => st()));
|
|
276
276
|
}
|
|
277
|
-
}), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !
|
|
278
|
-
var
|
|
279
|
-
return (
|
|
280
|
-
}),
|
|
281
|
-
const
|
|
282
|
-
return
|
|
283
|
-
const E =
|
|
284
|
-
E > -1 && n.push(
|
|
285
|
-
}), n.length >=
|
|
286
|
-
}), $
|
|
287
|
-
const
|
|
288
|
-
return e.filterable && e.allowCreate &&
|
|
277
|
+
}), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !Y(e.modelValue)), Et = u(() => {
|
|
278
|
+
var t;
|
|
279
|
+
return (t = X == null ? void 0 : X.statusIcon) != null ? t : !1;
|
|
280
|
+
}), It = u(() => e.clearable && !ne.value && ke.value && (Te.value || l.inputHovering)), Ue = u(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Tt = u(() => d.is("reverse", !!(Ue.value && c.value))), De = u(() => (B == null ? void 0 : B.validateState) || ""), kt = u(() => De.value && Pl[De.value]), Dt = u(() => e.remote ? 300 : 0), Mt = u(() => e.remote && !l.inputValue && l.options.size === 0), Rt = u(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && l.inputValue && l.options.size > 0 && oe.value === 0 ? e.noMatchText || a("el.select.noMatch") : l.options.size === 0 ? e.noDataText || a("el.select.noData") : null), oe = u(() => D.value.filter((t) => t.visible).length), D = u(() => {
|
|
281
|
+
const t = Array.from(l.options.values()), n = [];
|
|
282
|
+
return l.optionValues.forEach((r) => {
|
|
283
|
+
const E = t.findIndex((N) => N.value === r);
|
|
284
|
+
E > -1 && n.push(t[E]);
|
|
285
|
+
}), n.length >= t.length ? n : t;
|
|
286
|
+
}), $t = u(() => Array.from(l.cachedOptions.values())), Lt = u(() => {
|
|
287
|
+
const t = D.value.filter((n) => !n.created).some((n) => n.currentLabel === l.inputValue);
|
|
288
|
+
return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
|
|
289
289
|
}), je = () => {
|
|
290
|
-
e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((
|
|
290
|
+
e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((t) => {
|
|
291
291
|
var n;
|
|
292
|
-
(n =
|
|
292
|
+
(n = t.updateOption) == null || n.call(t, l.inputValue);
|
|
293
293
|
});
|
|
294
|
-
}, qe =
|
|
294
|
+
}, qe = Wl(), Nt = u(() => ["small"].includes(qe.value) ? "small" : "default"), Qe = u({
|
|
295
295
|
get() {
|
|
296
|
-
return c.value && !
|
|
296
|
+
return c.value && !Mt.value;
|
|
297
297
|
},
|
|
298
|
-
set(
|
|
299
|
-
c.value =
|
|
298
|
+
set(t) {
|
|
299
|
+
c.value = t;
|
|
300
300
|
}
|
|
301
|
-
}),
|
|
301
|
+
}), Bt = u(() => {
|
|
302
302
|
if (e.multiple && !Oe(e.modelValue))
|
|
303
|
-
return
|
|
304
|
-
const
|
|
305
|
-
return e.filterable || Oe(
|
|
306
|
-
}),
|
|
307
|
-
var
|
|
308
|
-
const n = (
|
|
309
|
-
return e.multiple || !ke.value ? n :
|
|
310
|
-
}),
|
|
311
|
-
G(() => e.modelValue, (
|
|
312
|
-
e.multiple && e.filterable && !e.reserveKeyword && (
|
|
303
|
+
return J(e.modelValue).length === 0 && !l.inputValue;
|
|
304
|
+
const t = j(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
305
|
+
return e.filterable || Oe(t) ? !l.inputValue : !0;
|
|
306
|
+
}), Pt = u(() => {
|
|
307
|
+
var t;
|
|
308
|
+
const n = (t = e.placeholder) != null ? t : a("el.select.placeholder");
|
|
309
|
+
return e.multiple || !ke.value ? n : l.selectedLabel;
|
|
310
|
+
}), Wt = u(() => ut ? null : "mouseenter");
|
|
311
|
+
G(() => e.modelValue, (t, n) => {
|
|
312
|
+
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", fe("")), ve(), !le(t, n) && e.validateEvent && (B == null || B.validate("change").catch((r) => st()));
|
|
313
313
|
}, {
|
|
314
314
|
flush: "post",
|
|
315
315
|
deep: !0
|
|
316
|
-
}), G(() => c.value, (
|
|
317
|
-
|
|
318
|
-
}), G(() =>
|
|
319
|
-
|
|
316
|
+
}), G(() => c.value, (t) => {
|
|
317
|
+
t ? fe(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0), o("visible-change", t);
|
|
318
|
+
}), G(() => l.options.entries(), () => {
|
|
319
|
+
Tl && (ve(), e.defaultFirstOption && (e.filterable || e.remote) && oe.value && Je());
|
|
320
320
|
}, {
|
|
321
321
|
flush: "post"
|
|
322
|
-
}), G([() =>
|
|
323
|
-
|
|
322
|
+
}), G([() => l.hoveringIndex, D], ([t]) => {
|
|
323
|
+
kl(t) && t > -1 ? V.value = D.value[t] || {} : V.value = {}, D.value.forEach((n) => {
|
|
324
324
|
n.hover = V.value === n;
|
|
325
325
|
});
|
|
326
|
-
}),
|
|
327
|
-
|
|
326
|
+
}), ul(() => {
|
|
327
|
+
l.isBeforeHide || je();
|
|
328
328
|
});
|
|
329
|
-
const fe = (
|
|
330
|
-
|
|
331
|
-
},
|
|
332
|
-
const
|
|
333
|
-
|
|
329
|
+
const fe = (t) => {
|
|
330
|
+
l.previousQuery === t || He.value || (l.previousQuery = t, e.filterable && re(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && re(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && oe.value ? Q(Je) : Q(Ft));
|
|
331
|
+
}, Je = () => {
|
|
332
|
+
const t = D.value.filter((N) => N.visible && !N.disabled && !N.states.groupDisabled), n = t.find((N) => N.created), r = t[0], E = D.value.map((N) => N.value);
|
|
333
|
+
l.hoveringIndex = tt(E, n || r);
|
|
334
334
|
}, ve = () => {
|
|
335
335
|
if (e.multiple)
|
|
336
|
-
|
|
336
|
+
l.selectedLabel = "";
|
|
337
337
|
else {
|
|
338
338
|
const n = j(e.modelValue) ? e.modelValue[0] : e.modelValue, r = Me(n);
|
|
339
|
-
|
|
339
|
+
l.selectedLabel = r.currentLabel, l.selected = [r];
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
Oe(e.modelValue) ||
|
|
344
|
-
|
|
345
|
-
}),
|
|
346
|
-
}, Me = (
|
|
342
|
+
const t = [];
|
|
343
|
+
Oe(e.modelValue) || J(e.modelValue).forEach((n) => {
|
|
344
|
+
t.push(Me(n));
|
|
345
|
+
}), l.selected = t;
|
|
346
|
+
}, Me = (t) => {
|
|
347
347
|
let n;
|
|
348
|
-
const r =
|
|
349
|
-
for (let
|
|
350
|
-
const K = $
|
|
351
|
-
if (r ? z(K.value, e.valueKey) === z(
|
|
348
|
+
const r = Dl(t);
|
|
349
|
+
for (let te = l.cachedOptions.size - 1; te >= 0; te--) {
|
|
350
|
+
const K = $t.value[te];
|
|
351
|
+
if (r ? z(K.value, e.valueKey) === z(t, e.valueKey) : K.value === t) {
|
|
352
352
|
n = {
|
|
353
|
-
index: D.value.filter((
|
|
354
|
-
value:
|
|
353
|
+
index: D.value.filter((Z) => !Z.created).indexOf(K),
|
|
354
|
+
value: t,
|
|
355
355
|
currentLabel: K.currentLabel,
|
|
356
356
|
get isDisabled() {
|
|
357
357
|
return K.isDisabled;
|
|
@@ -362,100 +362,100 @@ const fn = (e, o) => {
|
|
|
362
362
|
}
|
|
363
363
|
if (n)
|
|
364
364
|
return n;
|
|
365
|
-
const E = r ?
|
|
365
|
+
const E = r ? t.label : t ?? "";
|
|
366
366
|
return {
|
|
367
367
|
index: -1,
|
|
368
|
-
value:
|
|
368
|
+
value: t,
|
|
369
369
|
currentLabel: E
|
|
370
370
|
};
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
|
|
371
|
+
}, Ft = () => {
|
|
372
|
+
l.hoveringIndex = D.value.findIndex((t) => l.selected.some((n) => he(n) === he(t)));
|
|
373
|
+
}, zt = () => {
|
|
374
|
+
l.selectionWidth = Number.parseFloat(window.getComputedStyle(h.value).width);
|
|
375
|
+
}, At = () => {
|
|
376
|
+
l.collapseItemWidth = R.value.getBoundingClientRect().width;
|
|
377
377
|
}, Re = () => {
|
|
378
|
-
var
|
|
379
|
-
(n = (
|
|
378
|
+
var t, n;
|
|
379
|
+
(n = (t = S.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
380
|
+
}, Xe = () => {
|
|
381
|
+
var t, n;
|
|
382
|
+
(n = (t = y.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
380
383
|
}, Ye = () => {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
t.inputValue.length > 0 && !c.value && (c.value = !0), fe(t.inputValue);
|
|
385
|
-
}, Je = (l) => {
|
|
386
|
-
if (t.inputValue = l.target.value, e.remote)
|
|
384
|
+
l.inputValue.length > 0 && !c.value && (c.value = !0), fe(l.inputValue);
|
|
385
|
+
}, Ze = (t) => {
|
|
386
|
+
if (l.inputValue = t.target.value, e.remote)
|
|
387
387
|
_e();
|
|
388
388
|
else
|
|
389
|
-
return
|
|
390
|
-
}, _e =
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
const r =
|
|
389
|
+
return Ye();
|
|
390
|
+
}, _e = Ul(() => {
|
|
391
|
+
Ye();
|
|
392
|
+
}, Dt.value), ae = (t) => {
|
|
393
|
+
le(e.modelValue, t) || o(Fe, t);
|
|
394
|
+
}, Kt = (t) => en(t, (n) => {
|
|
395
|
+
const r = l.cachedOptions.get(n);
|
|
396
396
|
return r && !r.disabled && !r.states.groupDisabled;
|
|
397
|
-
}),
|
|
398
|
-
if (e.multiple &&
|
|
399
|
-
const n =
|
|
397
|
+
}), Ht = (t) => {
|
|
398
|
+
if (e.multiple && t.code !== bl.delete && t.target.value.length <= 0) {
|
|
399
|
+
const n = J(e.modelValue).slice(), r = Kt(n);
|
|
400
400
|
if (r < 0)
|
|
401
401
|
return;
|
|
402
402
|
const E = n[r];
|
|
403
403
|
n.splice(r, 1), o(x, n), ae(n), o("remove-tag", E);
|
|
404
404
|
}
|
|
405
|
-
},
|
|
406
|
-
const r =
|
|
405
|
+
}, Gt = (t, n) => {
|
|
406
|
+
const r = l.selected.indexOf(n);
|
|
407
407
|
if (r > -1 && !ne.value) {
|
|
408
|
-
const E =
|
|
408
|
+
const E = J(e.modelValue).slice();
|
|
409
409
|
E.splice(r, 1), o(x, E), ae(E), o("remove-tag", n.value);
|
|
410
410
|
}
|
|
411
|
-
|
|
412
|
-
}, xe = (
|
|
413
|
-
|
|
411
|
+
t.stopPropagation(), be();
|
|
412
|
+
}, xe = (t) => {
|
|
413
|
+
t.stopPropagation();
|
|
414
414
|
const n = e.multiple ? [] : Ke.value;
|
|
415
415
|
if (e.multiple)
|
|
416
|
-
for (const r of
|
|
416
|
+
for (const r of l.selected)
|
|
417
417
|
r.isDisabled && n.push(r.value);
|
|
418
|
-
o(x, n), ae(n),
|
|
419
|
-
},
|
|
418
|
+
o(x, n), ae(n), l.hoveringIndex = -1, c.value = !1, o("clear"), be();
|
|
419
|
+
}, et = (t) => {
|
|
420
420
|
var n;
|
|
421
421
|
if (e.multiple) {
|
|
422
|
-
const r =
|
|
423
|
-
E > -1 ? r.splice(E, 1) : (e.multipleLimit <= 0 || r.length < e.multipleLimit) && r.push(
|
|
422
|
+
const r = J((n = e.modelValue) != null ? n : []).slice(), E = tt(r, t);
|
|
423
|
+
E > -1 ? r.splice(E, 1) : (e.multipleLimit <= 0 || r.length < e.multipleLimit) && r.push(t.value), o(x, r), ae(r), t.created && fe(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
|
|
424
424
|
} else
|
|
425
|
-
!
|
|
425
|
+
!le(e.modelValue, t.value) && o(x, t.value), ae(t.value), c.value = !1;
|
|
426
426
|
be(), !c.value && Q(() => {
|
|
427
|
-
me(
|
|
427
|
+
me(t);
|
|
428
428
|
});
|
|
429
|
-
},
|
|
430
|
-
var n, r, E, N,
|
|
431
|
-
const K = j(
|
|
429
|
+
}, tt = (t, n) => Oe(n) ? -1 : U(n.value) ? t.findIndex((r) => le(z(r, e.valueKey), he(n))) : t.indexOf(n.value), me = (t) => {
|
|
430
|
+
var n, r, E, N, te;
|
|
431
|
+
const K = j(t) ? t[0] : t;
|
|
432
432
|
let ye = null;
|
|
433
433
|
if (K != null && K.value) {
|
|
434
|
-
const
|
|
435
|
-
|
|
434
|
+
const Z = D.value.filter((sl) => sl.value === K.value);
|
|
435
|
+
Z.length > 0 && (ye = Z[0].$el);
|
|
436
436
|
}
|
|
437
437
|
if (S.value && ye) {
|
|
438
|
-
const
|
|
439
|
-
|
|
438
|
+
const Z = (N = (E = (r = (n = S.value) == null ? void 0 : n.popperRef) == null ? void 0 : r.contentRef) == null ? void 0 : E.querySelector) == null ? void 0 : N.call(E, `.${d.be("dropdown", "wrap")}`);
|
|
439
|
+
Z && Hl(Z, ye);
|
|
440
440
|
}
|
|
441
|
-
(
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
var
|
|
448
|
-
return (n = (
|
|
449
|
-
}),
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
(
|
|
441
|
+
(te = g.value) == null || te.handleScroll();
|
|
442
|
+
}, Ut = (t) => {
|
|
443
|
+
l.options.set(t.value, t), l.cachedOptions.set(t.value, t);
|
|
444
|
+
}, jt = (t, n) => {
|
|
445
|
+
l.options.get(t) === n && l.options.delete(t);
|
|
446
|
+
}, qt = u(() => {
|
|
447
|
+
var t, n;
|
|
448
|
+
return (n = (t = S.value) == null ? void 0 : t.popperRef) == null ? void 0 : n.contentRef;
|
|
449
|
+
}), Qt = () => {
|
|
450
|
+
l.isBeforeHide = !1, Q(() => {
|
|
451
|
+
var t;
|
|
452
|
+
(t = g.value) == null || t.update(), me(l.selected);
|
|
453
453
|
});
|
|
454
454
|
}, be = () => {
|
|
455
|
-
var
|
|
456
|
-
(
|
|
457
|
-
},
|
|
458
|
-
var
|
|
455
|
+
var t;
|
|
456
|
+
(t = m.value) == null || t.focus();
|
|
457
|
+
}, Jt = () => {
|
|
458
|
+
var t;
|
|
459
459
|
if (c.value) {
|
|
460
460
|
c.value = !1, Q(() => {
|
|
461
461
|
var n;
|
|
@@ -463,50 +463,50 @@ const fn = (e, o) => {
|
|
|
463
463
|
});
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
|
-
(
|
|
467
|
-
},
|
|
468
|
-
xe(
|
|
469
|
-
},
|
|
466
|
+
(t = m.value) == null || t.blur();
|
|
467
|
+
}, Xt = (t) => {
|
|
468
|
+
xe(t);
|
|
469
|
+
}, Yt = (t) => {
|
|
470
470
|
if (c.value = !1, Te.value) {
|
|
471
|
-
const n = new FocusEvent("blur",
|
|
472
|
-
Q(() =>
|
|
471
|
+
const n = new FocusEvent("blur", t);
|
|
472
|
+
Q(() => Vt(n));
|
|
473
473
|
}
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
},
|
|
477
|
-
ne.value || (
|
|
478
|
-
},
|
|
474
|
+
}, Zt = () => {
|
|
475
|
+
l.inputValue.length > 0 ? l.inputValue = "" : c.value = !1;
|
|
476
|
+
}, lt = () => {
|
|
477
|
+
ne.value || (ut && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : c.value = !c.value);
|
|
478
|
+
}, _t = () => {
|
|
479
479
|
if (!c.value)
|
|
480
|
-
|
|
480
|
+
lt();
|
|
481
481
|
else {
|
|
482
|
-
const
|
|
483
|
-
|
|
482
|
+
const t = D.value[l.hoveringIndex];
|
|
483
|
+
t && !t.isDisabled && et(t);
|
|
484
484
|
}
|
|
485
|
-
}, he = (
|
|
485
|
+
}, he = (t) => U(t.value) ? z(t.value, e.valueKey) : t.value, xt = u(() => D.value.filter((t) => t.visible).every((t) => t.isDisabled)), el = u(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), tl = u(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), nt = (t) => {
|
|
486
486
|
if (!c.value) {
|
|
487
487
|
c.value = !0;
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
|
-
if (!(
|
|
491
|
-
|
|
492
|
-
const n = D.value[
|
|
493
|
-
(n.isDisabled || !n.visible) &&
|
|
490
|
+
if (!(l.options.size === 0 || oe.value === 0 || He.value) && !xt.value) {
|
|
491
|
+
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));
|
|
492
|
+
const n = D.value[l.hoveringIndex];
|
|
493
|
+
(n.isDisabled || !n.visible) && nt(t), Q(() => me(V.value));
|
|
494
494
|
}
|
|
495
|
-
},
|
|
495
|
+
}, ll = () => {
|
|
496
496
|
if (!h.value)
|
|
497
497
|
return 0;
|
|
498
|
-
const
|
|
499
|
-
return Number.parseFloat(
|
|
500
|
-
},
|
|
501
|
-
const
|
|
502
|
-
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ?
|
|
503
|
-
}),
|
|
504
|
-
o("popup-scroll",
|
|
498
|
+
const t = window.getComputedStyle(h.value);
|
|
499
|
+
return Number.parseFloat(t.gap || "6px");
|
|
500
|
+
}, nl = u(() => {
|
|
501
|
+
const t = ll(), n = e.filterable ? t + gt : 0;
|
|
502
|
+
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t - n : l.selectionWidth - n}px` };
|
|
503
|
+
}), ol = u(() => ({ maxWidth: `${l.selectionWidth}px` })), al = (t) => {
|
|
504
|
+
o("popup-scroll", t);
|
|
505
505
|
};
|
|
506
|
-
ee(h,
|
|
506
|
+
ee(h, zt), ee(Ge, Re), ee(I, Xe), ee(R, At);
|
|
507
507
|
let ge;
|
|
508
|
-
return G(() => Qe.value, (
|
|
509
|
-
|
|
508
|
+
return G(() => Qe.value, (t) => {
|
|
509
|
+
t ? ge = ee(O, Re).stop : (ge == null || ge(), ge = void 0);
|
|
510
510
|
}), We(() => {
|
|
511
511
|
ve();
|
|
512
512
|
}), {
|
|
@@ -514,7 +514,7 @@ const fn = (e, o) => {
|
|
|
514
514
|
contentId: f,
|
|
515
515
|
nsSelect: d,
|
|
516
516
|
nsInput: p,
|
|
517
|
-
states:
|
|
517
|
+
states: l,
|
|
518
518
|
isFocused: Te,
|
|
519
519
|
expanded: c,
|
|
520
520
|
optionsArray: D,
|
|
@@ -522,53 +522,53 @@ const fn = (e, o) => {
|
|
|
522
522
|
selectSize: qe,
|
|
523
523
|
filteredOptionsCount: oe,
|
|
524
524
|
updateTooltip: Re,
|
|
525
|
-
updateTagTooltip:
|
|
525
|
+
updateTagTooltip: Xe,
|
|
526
526
|
debouncedOnInputChange: _e,
|
|
527
|
-
onInput:
|
|
528
|
-
deletePrevTag:
|
|
529
|
-
deleteTag:
|
|
527
|
+
onInput: Ze,
|
|
528
|
+
deletePrevTag: Ht,
|
|
529
|
+
deleteTag: Gt,
|
|
530
530
|
deleteSelected: xe,
|
|
531
|
-
handleOptionSelect:
|
|
531
|
+
handleOptionSelect: et,
|
|
532
532
|
scrollToOption: me,
|
|
533
533
|
hasModelValue: ke,
|
|
534
|
-
shouldShowPlaceholder:
|
|
535
|
-
currentPlaceholder:
|
|
536
|
-
mouseEnterEventName:
|
|
537
|
-
needStatusIcon:
|
|
538
|
-
showClearBtn:
|
|
534
|
+
shouldShowPlaceholder: Bt,
|
|
535
|
+
currentPlaceholder: Pt,
|
|
536
|
+
mouseEnterEventName: Wt,
|
|
537
|
+
needStatusIcon: Et,
|
|
538
|
+
showClearBtn: It,
|
|
539
539
|
iconComponent: Ue,
|
|
540
|
-
iconReverse:
|
|
540
|
+
iconReverse: Tt,
|
|
541
541
|
validateState: De,
|
|
542
|
-
validateIcon:
|
|
543
|
-
showNewOption:
|
|
542
|
+
validateIcon: kt,
|
|
543
|
+
showNewOption: Lt,
|
|
544
544
|
updateOptions: je,
|
|
545
|
-
collapseTagSize:
|
|
545
|
+
collapseTagSize: Nt,
|
|
546
546
|
setSelected: ve,
|
|
547
547
|
selectDisabled: ne,
|
|
548
|
-
emptyText:
|
|
549
|
-
handleCompositionStart:
|
|
550
|
-
handleCompositionUpdate:
|
|
551
|
-
handleCompositionEnd:
|
|
552
|
-
onOptionCreate:
|
|
553
|
-
onOptionDestroy:
|
|
554
|
-
handleMenuEnter:
|
|
548
|
+
emptyText: Rt,
|
|
549
|
+
handleCompositionStart: Ot,
|
|
550
|
+
handleCompositionUpdate: Ct,
|
|
551
|
+
handleCompositionEnd: wt,
|
|
552
|
+
onOptionCreate: Ut,
|
|
553
|
+
onOptionDestroy: jt,
|
|
554
|
+
handleMenuEnter: Qt,
|
|
555
555
|
focus: be,
|
|
556
|
-
blur:
|
|
557
|
-
handleClearClick:
|
|
558
|
-
handleClickOutside:
|
|
559
|
-
handleEsc:
|
|
560
|
-
toggleMenu:
|
|
561
|
-
selectOption:
|
|
556
|
+
blur: Jt,
|
|
557
|
+
handleClearClick: Xt,
|
|
558
|
+
handleClickOutside: Yt,
|
|
559
|
+
handleEsc: Zt,
|
|
560
|
+
toggleMenu: lt,
|
|
561
|
+
selectOption: _t,
|
|
562
562
|
getValueKey: he,
|
|
563
|
-
navigateOptions:
|
|
563
|
+
navigateOptions: nt,
|
|
564
564
|
dropdownMenuVisible: Qe,
|
|
565
|
-
showTagList:
|
|
566
|
-
collapseTagList:
|
|
567
|
-
popupScroll:
|
|
565
|
+
showTagList: el,
|
|
566
|
+
collapseTagList: tl,
|
|
567
|
+
popupScroll: al,
|
|
568
568
|
getOption: Me,
|
|
569
|
-
tagStyle:
|
|
570
|
-
collapseTagStyle:
|
|
571
|
-
popperRef:
|
|
569
|
+
tagStyle: nl,
|
|
570
|
+
collapseTagStyle: ol,
|
|
571
|
+
popperRef: qt,
|
|
572
572
|
inputRef: m,
|
|
573
573
|
tooltipRef: S,
|
|
574
574
|
tagTooltipRef: y,
|
|
@@ -590,19 +590,19 @@ var vn = pe({
|
|
|
590
590
|
let f = [];
|
|
591
591
|
return () => {
|
|
592
592
|
var d, p;
|
|
593
|
-
const
|
|
593
|
+
const l = (d = o.default) == null ? void 0 : d.call(o), C = [];
|
|
594
594
|
function h(S) {
|
|
595
595
|
j(S) && S.forEach((y) => {
|
|
596
596
|
var m, s, i, O;
|
|
597
597
|
const I = (m = (y == null ? void 0 : y.type) || {}) == null ? void 0 : m.name;
|
|
598
|
-
I === "ElOptionGroup" ? h(!
|
|
598
|
+
I === "ElOptionGroup" ? h(!Ml(y.children) && !j(y.children) && re((s = y.children) == null ? void 0 : s.default) ? (i = y.children) == null ? void 0 : i.default() : y.children) : I === "ElOption" ? C.push((O = y.props) == null ? void 0 : O.value) : j(y.children) && h(y.children);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
return
|
|
601
|
+
return l.length && h((p = l[0]) == null ? void 0 : p.children), le(C, f) || (f = C, a && (a.states.optionValues = C)), l;
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
|
-
const mn =
|
|
605
|
+
const mn = mt({
|
|
606
606
|
name: String,
|
|
607
607
|
id: String,
|
|
608
608
|
modelValue: {
|
|
@@ -620,7 +620,7 @@ const mn = ml({
|
|
|
620
620
|
default: "off"
|
|
621
621
|
},
|
|
622
622
|
automaticDropdown: Boolean,
|
|
623
|
-
size:
|
|
623
|
+
size: Fl,
|
|
624
624
|
effect: {
|
|
625
625
|
type: W(String),
|
|
626
626
|
default: "light"
|
|
@@ -674,22 +674,22 @@ const mn = ml({
|
|
|
674
674
|
type: Number,
|
|
675
675
|
default: 1
|
|
676
676
|
},
|
|
677
|
-
teleported:
|
|
677
|
+
teleported: it.teleported,
|
|
678
678
|
persistent: {
|
|
679
679
|
type: Boolean,
|
|
680
680
|
default: !0
|
|
681
681
|
},
|
|
682
682
|
clearIcon: {
|
|
683
|
-
type:
|
|
684
|
-
default:
|
|
683
|
+
type: dt,
|
|
684
|
+
default: wl
|
|
685
685
|
},
|
|
686
686
|
fitInputWidth: Boolean,
|
|
687
687
|
suffixIcon: {
|
|
688
|
-
type:
|
|
689
|
-
default:
|
|
688
|
+
type: dt,
|
|
689
|
+
default: Vl
|
|
690
690
|
},
|
|
691
|
-
tagType: { ...
|
|
692
|
-
tagEffect: { ...
|
|
691
|
+
tagType: { ...rt.type, default: "info" },
|
|
692
|
+
tagEffect: { ...rt.effect, default: "light" },
|
|
693
693
|
validateEvent: {
|
|
694
694
|
type: Boolean,
|
|
695
695
|
default: !0
|
|
@@ -705,7 +705,7 @@ const mn = ml({
|
|
|
705
705
|
},
|
|
706
706
|
placement: {
|
|
707
707
|
type: W(String),
|
|
708
|
-
values:
|
|
708
|
+
values: hl,
|
|
709
709
|
default: "bottom-start"
|
|
710
710
|
},
|
|
711
711
|
fallbackPlacements: {
|
|
@@ -716,18 +716,18 @@ const mn = ml({
|
|
|
716
716
|
type: [String, Number],
|
|
717
717
|
default: 0
|
|
718
718
|
},
|
|
719
|
-
appendTo:
|
|
719
|
+
appendTo: it.appendTo,
|
|
720
720
|
options: {
|
|
721
721
|
type: W(Array)
|
|
722
722
|
},
|
|
723
723
|
props: {
|
|
724
724
|
type: W(Object),
|
|
725
|
-
default: () =>
|
|
725
|
+
default: () => yt
|
|
726
726
|
},
|
|
727
|
-
...
|
|
728
|
-
...
|
|
727
|
+
...Ll,
|
|
728
|
+
...gl(["ariaLabel"])
|
|
729
729
|
});
|
|
730
|
-
x + "", Fe + "",
|
|
730
|
+
x + "", Fe + "", yl.scroll;
|
|
731
731
|
const bn = pe({
|
|
732
732
|
name: "ElOptionGroup",
|
|
733
733
|
componentName: "ElOptionGroup",
|
|
@@ -737,24 +737,24 @@ const bn = pe({
|
|
|
737
737
|
},
|
|
738
738
|
setup(e) {
|
|
739
739
|
const o = ce("select"), a = T(), f = Ve(), d = T([]);
|
|
740
|
-
|
|
740
|
+
vt(St, de({
|
|
741
741
|
...Be(e)
|
|
742
742
|
}));
|
|
743
|
-
const p = u(() => d.value.some((S) => S.visible === !0)),
|
|
743
|
+
const p = u(() => d.value.some((S) => S.visible === !0)), l = (S) => {
|
|
744
744
|
var y;
|
|
745
745
|
return S.type.name === "ElOption" && !!((y = S.component) != null && y.proxy);
|
|
746
746
|
}, C = (S) => {
|
|
747
|
-
const y =
|
|
747
|
+
const y = J(S), m = [];
|
|
748
748
|
return y.forEach((s) => {
|
|
749
749
|
var i;
|
|
750
|
-
|
|
750
|
+
dl(s) && (l(s) ? m.push(s.component.proxy) : j(s.children) && s.children.length ? m.push(...C(s.children)) : (i = s.component) != null && i.subTree && m.push(...C(s.component.subTree)));
|
|
751
751
|
}), m;
|
|
752
752
|
}, h = () => {
|
|
753
753
|
d.value = C(f.subTree);
|
|
754
754
|
};
|
|
755
755
|
return We(() => {
|
|
756
756
|
h();
|
|
757
|
-
}),
|
|
757
|
+
}), zl(a, h, {
|
|
758
758
|
attributes: !0,
|
|
759
759
|
subtree: !0,
|
|
760
760
|
childList: !0
|
|
@@ -785,20 +785,20 @@ function hn(e, o, a, f, d, p) {
|
|
|
785
785
|
]);
|
|
786
786
|
}
|
|
787
787
|
var Ae = /* @__PURE__ */ Ee(bn, [["render", hn], ["__file", "option-group.vue"]]);
|
|
788
|
-
const
|
|
789
|
-
name:
|
|
790
|
-
componentName:
|
|
788
|
+
const pt = "ElSelect", gn = pe({
|
|
789
|
+
name: pt,
|
|
790
|
+
componentName: pt,
|
|
791
791
|
components: {
|
|
792
792
|
ElSelectMenu: pn,
|
|
793
793
|
ElOption: ze,
|
|
794
794
|
ElOptions: vn,
|
|
795
795
|
ElOptionGroup: Ae,
|
|
796
|
-
ElTag:
|
|
797
|
-
ElScrollbar:
|
|
798
|
-
ElTooltip:
|
|
799
|
-
ElIcon:
|
|
796
|
+
ElTag: Cl,
|
|
797
|
+
ElScrollbar: Sl,
|
|
798
|
+
ElTooltip: Ol,
|
|
799
|
+
ElIcon: El
|
|
800
800
|
},
|
|
801
|
-
directives: { ClickOutside:
|
|
801
|
+
directives: { ClickOutside: ql },
|
|
802
802
|
props: mn,
|
|
803
803
|
emits: [
|
|
804
804
|
x,
|
|
@@ -821,23 +821,23 @@ const pl = "ElSelect", gn = pe({
|
|
|
821
821
|
}), p = de({
|
|
822
822
|
...Be(e),
|
|
823
823
|
modelValue: d
|
|
824
|
-
}),
|
|
824
|
+
}), l = fn(p, o), { calculatorRef: C, inputStyle: h } = ln(), { getLabel: S, getValue: y, getOptions: m, getDisabled: s } = nn(e), i = (g) => ({
|
|
825
825
|
label: S(g),
|
|
826
826
|
value: y(g),
|
|
827
827
|
disabled: s(g)
|
|
828
828
|
}), O = (g) => g.reduce((c, V) => (c.push(V), V.children && V.children.length > 0 && c.push(...O(V.children)), c), []), I = (g) => {
|
|
829
|
-
|
|
830
|
-
var
|
|
829
|
+
Ql(g || []).forEach((V) => {
|
|
830
|
+
var X;
|
|
831
831
|
if (U(V) && (V.type.name === "ElOption" || V.type.name === "ElTree")) {
|
|
832
832
|
const B = V.type.name;
|
|
833
833
|
if (B === "ElTree") {
|
|
834
|
-
const A = ((
|
|
835
|
-
O(A).forEach((
|
|
836
|
-
|
|
834
|
+
const A = ((X = V.props) == null ? void 0 : X.data) || [];
|
|
835
|
+
O(A).forEach((Y) => {
|
|
836
|
+
Y.currentLabel = Y.label || (U(Y.value) ? "" : Y.value), l.onOptionCreate(Y);
|
|
837
837
|
});
|
|
838
838
|
} else if (B === "ElOption") {
|
|
839
839
|
const A = { ...V.props };
|
|
840
|
-
A.currentLabel = A.label || (U(A.value) ? "" : A.value),
|
|
840
|
+
A.currentLabel = A.label || (U(A.value) ? "" : A.value), l.onOptionCreate(A);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
});
|
|
@@ -849,21 +849,21 @@ const pl = "ElSelect", gn = pe({
|
|
|
849
849
|
e.persistent || I(g);
|
|
850
850
|
}, {
|
|
851
851
|
immediate: !0
|
|
852
|
-
}),
|
|
852
|
+
}), vt(Ie, de({
|
|
853
853
|
props: p,
|
|
854
|
-
states:
|
|
855
|
-
selectRef:
|
|
856
|
-
optionsArray:
|
|
857
|
-
setSelected:
|
|
858
|
-
handleOptionSelect:
|
|
859
|
-
onOptionCreate:
|
|
860
|
-
onOptionDestroy:
|
|
854
|
+
states: l.states,
|
|
855
|
+
selectRef: l.selectRef,
|
|
856
|
+
optionsArray: l.optionsArray,
|
|
857
|
+
setSelected: l.setSelected,
|
|
858
|
+
handleOptionSelect: l.handleOptionSelect,
|
|
859
|
+
onOptionCreate: l.onOptionCreate,
|
|
860
|
+
onOptionDestroy: l.onOptionDestroy
|
|
861
861
|
}));
|
|
862
|
-
const R = u(() => e.multiple ?
|
|
863
|
-
return
|
|
862
|
+
const R = u(() => e.multiple ? l.states.selected.map((g) => g.currentLabel) : l.states.selectedLabel);
|
|
863
|
+
return ft(() => {
|
|
864
864
|
f.appContext.config.warnHandler = void 0;
|
|
865
865
|
}), {
|
|
866
|
-
...
|
|
866
|
+
...l,
|
|
867
867
|
modelValue: d,
|
|
868
868
|
selectedLabel: R,
|
|
869
869
|
calculatorRef: C,
|
|
@@ -877,11 +877,11 @@ const pl = "ElSelect", gn = pe({
|
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
879
|
function yn(e, o) {
|
|
880
|
-
const a = q("el-tag"), f = q("el-tooltip"), d = q("el-icon"), p = q("el-option"),
|
|
880
|
+
const a = q("el-tag"), f = q("el-tooltip"), d = q("el-icon"), p = q("el-option"), l = q("el-option-group"), C = q("el-options"), h = q("el-scrollbar"), S = q("el-select-menu"), y = cl("click-outside");
|
|
881
881
|
return ue((v(), w("div", {
|
|
882
882
|
ref: "selectRef",
|
|
883
883
|
class: b([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
|
|
884
|
-
[
|
|
884
|
+
[pl(e.mouseEnterEventName)]: (m) => e.states.inputHovering = !0,
|
|
885
885
|
onMouseleave: (m) => e.states.inputHovering = !1
|
|
886
886
|
}, [
|
|
887
887
|
_(f, {
|
|
@@ -962,7 +962,7 @@ function yn(e, o) {
|
|
|
962
962
|
label: s.currentLabel,
|
|
963
963
|
value: s.value
|
|
964
964
|
}, () => [
|
|
965
|
-
|
|
965
|
+
ot(H(s.currentLabel), 1)
|
|
966
966
|
])
|
|
967
967
|
], 2)
|
|
968
968
|
]),
|
|
@@ -1029,7 +1029,7 @@ function yn(e, o) {
|
|
|
1029
1029
|
label: s.currentLabel,
|
|
1030
1030
|
value: s.value
|
|
1031
1031
|
}, () => [
|
|
1032
|
-
|
|
1032
|
+
ot(H(s.currentLabel), 1)
|
|
1033
1033
|
])
|
|
1034
1034
|
], 2)
|
|
1035
1035
|
]),
|
|
@@ -1081,7 +1081,7 @@ function yn(e, o) {
|
|
|
1081
1081
|
onInput: e.onInput,
|
|
1082
1082
|
onClick: F(e.toggleMenu, ["stop"])
|
|
1083
1083
|
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
|
1084
|
-
[
|
|
1084
|
+
[fl, e.states.inputValue]
|
|
1085
1085
|
]),
|
|
1086
1086
|
e.filterable ? (v(), w("span", {
|
|
1087
1087
|
key: 0,
|
|
@@ -1188,18 +1188,18 @@ function yn(e, o) {
|
|
|
1188
1188
|
(v(!0), w(se, null, Se(e.options, (m, s) => {
|
|
1189
1189
|
var i;
|
|
1190
1190
|
return v(), w(se, { key: s }, [
|
|
1191
|
-
(i = e.getOptions(m)) != null && i.length ? (v(), P(
|
|
1191
|
+
(i = e.getOptions(m)) != null && i.length ? (v(), P(l, {
|
|
1192
1192
|
key: 0,
|
|
1193
1193
|
label: e.getLabel(m),
|
|
1194
1194
|
disabled: e.getDisabled(m)
|
|
1195
1195
|
}, {
|
|
1196
1196
|
default: $(() => [
|
|
1197
|
-
(v(!0), w(se, null, Se(e.getOptions(m), (O) => (v(), P(p,
|
|
1197
|
+
(v(!0), w(se, null, Se(e.getOptions(m), (O) => (v(), P(p, at({
|
|
1198
1198
|
key: e.getValue(O)
|
|
1199
1199
|
}, e.getOptionProps(O)), null, 16))), 128))
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 2
|
|
1202
|
-
}, 1032, ["label", "disabled"])) : (v(), P(p,
|
|
1202
|
+
}, 1032, ["label", "disabled"])) : (v(), P(p, vl(at({ key: 1 }, e.getOptionProps(m))), null, 16))
|
|
1203
1203
|
], 64);
|
|
1204
1204
|
}), 128))
|
|
1205
1205
|
])
|
|
@@ -1243,11 +1243,11 @@ function yn(e, o) {
|
|
|
1243
1243
|
]);
|
|
1244
1244
|
}
|
|
1245
1245
|
var Sn = /* @__PURE__ */ Ee(gn, [["render", yn], ["__file", "select.vue"]]);
|
|
1246
|
-
const Bn =
|
|
1246
|
+
const Bn = Rl(Sn, {
|
|
1247
1247
|
Option: ze,
|
|
1248
1248
|
OptionGroup: Ae
|
|
1249
|
-
}), Pn =
|
|
1250
|
-
|
|
1249
|
+
}), Pn = bt(ze);
|
|
1250
|
+
bt(Ae);
|
|
1251
1251
|
export {
|
|
1252
1252
|
Pn as E,
|
|
1253
1253
|
Bn as a
|