st-comp 0.0.194 → 0.0.196
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 +270 -154
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -29
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +15 -15
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +24 -24
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +20 -20
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +17 -17
- package/es/Map.cjs +1 -1
- package/es/Map.js +102944 -1
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +69 -69
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +25 -25
- package/es/User.cjs +1 -1
- package/es/User.js +21 -21
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +22 -22
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +9 -9
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +1395 -1381
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +13 -13
- package/es/{_initCloneObject-95a1fe6e.cjs → _initCloneObject-1136ed17.cjs} +1 -1
- package/es/{_initCloneObject-25087817.js → _initCloneObject-64989891.js} +9 -9
- package/es/{base-f5b11441.js → base-62a70f61.js} +40 -40
- package/es/{config-provider-95d27ce2.js → config-provider-962c9213.js} +6 -6
- package/es/{config-provider-79c2df1b.cjs → config-provider-c629566a.cjs} +1 -1
- package/es/{debounce-06f59c68.js → debounce-ccdceb02.js} +9 -9
- package/es/{dropdown-7a853d45.js → dropdown-220099ea.js} +9 -9
- package/es/{dropdown-c2ef9062.cjs → dropdown-28ffc2a0.cjs} +1 -1
- package/es/{el-autocomplete-b7bcfb25.cjs → el-autocomplete-01985d09.cjs} +1 -1
- package/es/{el-autocomplete-e74d589c.js → el-autocomplete-a2dd1bb5.js} +15 -15
- package/es/{el-button-5973d99c.cjs → el-button-1cb4ce47.cjs} +1 -1
- package/es/{el-button-5a260464.js → el-button-639a79ee.js} +33 -33
- package/es/{el-dialog-a24f4f8f.cjs → el-dialog-10b4cda4.cjs} +1 -1
- package/es/{el-dialog-8d8f6443.js → el-dialog-43cb14a3.js} +15 -15
- package/es/{el-divider-4e1c0fb8.js → el-divider-2f300113.js} +1 -1
- package/es/{el-empty-deee6b39.js → el-empty-34086220.js} +5 -5
- package/es/{el-form-item-3167d76a.js → el-form-item-5425e443.js} +33 -33
- package/es/{el-form-item-8dc6aec8.cjs → el-form-item-6d81753f.cjs} +1 -1
- package/es/{el-input-06243b61.cjs → el-input-ebe964c2.cjs} +1 -1
- package/es/{el-input-03aad76d.js → el-input-f24248f2.js} +33 -33
- package/es/{el-input-number-12c09ac3.js → el-input-number-36036e60.js} +35 -35
- package/es/{el-input-number-854b2066.cjs → el-input-number-e3d58911.cjs} +1 -1
- package/es/{el-loading-86fdef94.js → el-loading-74b350d7.js} +5 -5
- package/es/{el-loading-a536daf8.cjs → el-loading-a6dd5081.cjs} +1 -1
- package/es/{el-menu-item-1172154b.js → el-menu-item-7d04ed7a.js} +22 -22
- package/es/{el-menu-item-6522d54c.cjs → el-menu-item-9a591f08.cjs} +1 -1
- package/es/{el-message-0aeea1a3.cjs → el-message-3517c44c.cjs} +1 -1
- package/es/{el-message-35d4e3ac.js → el-message-4e885359.js} +23 -23
- package/es/{el-message-box-f43b6e7a.js → el-message-box-1286fd77.js} +20 -20
- package/es/{el-message-box-2e7304ce.cjs → el-message-box-317e9f09.cjs} +1 -1
- package/es/{el-overlay-04659660.js → el-overlay-0310aac7.js} +47 -47
- package/es/{el-overlay-ef92f51f.cjs → el-overlay-ed457566.cjs} +1 -1
- package/es/{el-popconfirm-29d538b6.js → el-popconfirm-6235978c.js} +24 -24
- package/es/{el-popconfirm-58a1b946.cjs → el-popconfirm-d61782ad.cjs} +1 -1
- package/es/{el-popper-c9e0136d.cjs → el-popper-32eaad7d.cjs} +1 -1
- package/es/{el-popper-ee1f8186.js → el-popper-f38ba0a1.js} +126 -126
- package/es/{el-scrollbar-05815cf5.cjs → el-scrollbar-2cac7413.cjs} +1 -1
- package/es/{el-scrollbar-09769d9e.js → el-scrollbar-d8e60ed2.js} +48 -48
- package/es/{el-segmented-d454a924.cjs → el-segmented-bf42d915.cjs} +1 -1
- package/es/{el-segmented-916b982a.js → el-segmented-ee920d27.js} +8 -8
- package/es/{el-select-6d813c15.cjs → el-select-64816d07.cjs} +1 -1
- package/es/{el-select-8cb88e3c.js → el-select-bfade57c.js} +307 -307
- package/es/{el-table-column-762a20e0.cjs → el-table-column-00904cbd.cjs} +1 -1
- package/es/{el-table-column-0c899664.js → el-table-column-41685d02.js} +12 -12
- package/es/{el-tag-554c333b.js → el-tag-ada32d9e.js} +21 -21
- package/es/{el-tag-fe492a6d.cjs → el-tag-defe821c.cjs} +1 -1
- package/es/index-098c2447.cjs +1 -0
- package/es/{index-b07f58c9.js → index-0a8e1adb.js} +75 -60
- package/es/{index-5b62ea0e.js → index-3e26cc9f.js} +52 -52
- package/es/{index-cfeda35a.js → index-482f09b5.js} +1 -1
- package/es/{index-69a9bd75.js → index-492bd129.js} +2 -2
- package/es/{index-b7fd560c.js → index-6277c792.js} +12 -12
- package/es/{index-384ed4b0.js → index-787d3588.js} +3 -3
- package/es/{index-df06f32a.js → index-843be67c.js} +20 -20
- package/es/{index-34048a1d.js → index-89502796.js} +36 -36
- package/es/{index-77f4746b.cjs → index-9b9ef5dd.cjs} +1 -1
- package/es/{index-a9d4ef0f.cjs → index-b306360f.cjs} +1 -1
- package/es/{index-62573d45.cjs → index-bc26fe71.cjs} +1 -1
- package/es/{index-a8ee0e8c.js → index-bc8e277e.js} +1031 -1015
- package/es/{index-7e4e0bd3.cjs → index-d4910ece.cjs} +1 -1
- package/es/{index-fdb71325.cjs → index-d725fef6.cjs} +65 -65
- package/es/{index-ca7dbd47.cjs → index-ecf79ee2.cjs} +1 -1
- package/es/{python-0405c62e.cjs → python-c27ba105.cjs} +1 -1
- package/es/{python-791e6a42.js → python-ecde9ff2.js} +1 -1
- package/es/raf-41aed4d4.js +6 -0
- package/es/{scroll-9e2dd92b.js → scroll-7d352c1f.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-global-config-1923bb6f.js → use-global-config-2704a841.js} +16 -16
- package/es/{use-global-config-c2c5ca8f.cjs → use-global-config-878461f3.cjs} +1 -1
- package/es/{validator-866ea0bb.cjs → validator-027eff1b.cjs} +1 -1
- package/es/{validator-fd32f925.js → validator-61a65ac7.js} +1 -1
- package/es/{vnode-f9752526.js → vnode-c51c8aa3.js} +1 -1
- package/es/{zh-cn-d667062d.js → zh-cn-19fbf029.js} +2 -2
- package/es/{zh-cn-0fa1aa6d.cjs → zh-cn-6ee4b8df.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +173 -173
- package/lib/{index-db060de6.js → index-dac23ed6.js} +16515 -16356
- package/lib/{python-077c8efa.js → python-fdc6b946.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/CustomFunction/index.vue +193 -15
- package/packages/MonacoEditor/index.vue +14 -1
- package/packages/MonacoEditor/tools.js +18 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +20 -8
- package/packages/VarietySearch/components/FactorScreen/tools.js +19 -0
- package/src/pages/CustomFunction/index.vue +2 -2
- package/src/pages/VarietySearch/index.vue +68 -19
- package/es/index-eab8a286.cjs +0 -1
- package/es/raf-fa761d02.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 it, ref as T, computed as u, inject as we, getCurrentInstance as Ve, toRaw as rt, watch as G, defineComponent as pe, unref as $e, reactive as de, toRefs as Be, onBeforeUnmount as fl, 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 ut, provide as vl, isVNode as dt, resolveComponent as q, resolveDirective as ct, toHandlerKey as pt, createVNode as _, withCtx as $, Fragment as se, renderList as Se, createTextVNode as ol, createBlock as P, withKeys as ie, vModelText as ft, resolveDynamicComponent as Le, mergeProps as al, normalizeProps as vt } from "vue";
|
|
2
|
+
import { c as mt, d as sl, b as bt, U as x, C as Fe, h as il, n as ht, u as gt, q as yt, E as St, a as Ot } from "./el-popper-f38ba0a1.js";
|
|
3
|
+
import { t as rl, E as Ct } from "./index-787d3588.js";
|
|
4
|
+
import { w as wt, f as Vt, E as Et } from "./index-0a8e1adb.js";
|
|
5
|
+
import { g as z, u as It } from "./index-482f09b5.js";
|
|
6
|
+
import { b as ml, f as U, u as ce, _ as Ee, j, i as Oe, C as ul, s as Tt, p as kt, x as re, D as Dt, c as Mt, e as W, w as Rt, l as bl } from "./base-62a70f61.js";
|
|
7
|
+
import { c as X, i as te, u as $t, p as Lt } from "./index-3e26cc9f.js";
|
|
8
|
+
import { u as hl } from "./index-89502796.js";
|
|
9
|
+
import { u as ee, d as Nt, f as Bt, V as Pt, e as Wt, h as Ft, i as dl, w as zt } from "./el-scrollbar-d8e60ed2.js";
|
|
10
|
+
import { u as At, a as Kt } from "./index-6277c792.js";
|
|
11
|
+
import { s as Ht } from "./scroll-7d352c1f.js";
|
|
12
|
+
import { t as Gt, d as Ut } from "./debounce-ccdceb02.js";
|
|
13
|
+
import { b as jt, C as qt } from "./el-tag-ada32d9e.js";
|
|
14
|
+
import { f as Qt } from "./vnode-c51c8aa3.js";
|
|
15
|
+
var cl = 1 / 0, Xt = 17976931348623157e292;
|
|
16
|
+
function Yt(e) {
|
|
17
17
|
if (!e)
|
|
18
18
|
return e === 0 ? e : 0;
|
|
19
|
-
if (e =
|
|
19
|
+
if (e = Gt(e), e === cl || e === -cl) {
|
|
20
20
|
var o = e < 0 ? -1 : 1;
|
|
21
|
-
return o *
|
|
21
|
+
return o * Xt;
|
|
22
22
|
}
|
|
23
23
|
return e === e ? e : 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
var o =
|
|
25
|
+
function Zt(e) {
|
|
26
|
+
var o = Yt(e), a = o % 1;
|
|
27
27
|
return o === o ? a ? o - a : o : 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Jt(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 _t = Math.max, xt = 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 = Zt(a), d = a < 0 ? _t(f + d, 0) : xt(d, f - 1)), Jt(e, jt(o), d, !0);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
46
|
-
minWidth: `${Math.max(o.value,
|
|
43
|
+
const gl = 11, ln = 2;
|
|
44
|
+
function tn() {
|
|
45
|
+
const e = it(), o = T(0), a = u(() => ({
|
|
46
|
+
minWidth: `${Math.max(o.value, gl)}px`
|
|
47
47
|
}));
|
|
48
48
|
return ee(e, () => {
|
|
49
49
|
var d, p;
|
|
@@ -54,23 +54,23 @@ function ln() {
|
|
|
54
54
|
inputStyle: a
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const yl = {
|
|
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(() => ({ ...yl, ...e.props }));
|
|
65
65
|
return {
|
|
66
66
|
aliasProps: o,
|
|
67
|
-
getLabel: (
|
|
68
|
-
getValue: (
|
|
69
|
-
getDisabled: (
|
|
70
|
-
getOptions: (
|
|
67
|
+
getLabel: (t) => z(t, o.value.label),
|
|
68
|
+
getValue: (t) => z(t, o.value.value),
|
|
69
|
+
getDisabled: (t) => z(t, o.value.disabled),
|
|
70
|
+
getOptions: (t) => z(t, o.value.options)
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const Sl = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on = ml({
|
|
74
74
|
value: {
|
|
75
75
|
type: [String, Number, Boolean, Object],
|
|
76
76
|
required: !0
|
|
@@ -83,34 +83,34 @@ const St = 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 || mt(Ne, "usage: <el-select><el-option /></el-select/>");
|
|
87
|
+
const f = we(Sl, { disabled: !1 }), d = u(() => y(X(a.props.modelValue), e.value)), p = u(() => {
|
|
88
88
|
var i;
|
|
89
89
|
if (a.props.multiple) {
|
|
90
|
-
const O =
|
|
90
|
+
const O = X((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
|
+
}), t = 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) => rt(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(t.value)) || e.created;
|
|
108
108
|
};
|
|
109
|
-
return G(() =>
|
|
109
|
+
return G(() => t.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 : !te(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: t,
|
|
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 = hl(), 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(t)),
|
|
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: t,
|
|
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), fl(() => {
|
|
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: t,
|
|
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 t() {
|
|
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 - ln}px` : p.value = "";
|
|
207
207
|
}
|
|
208
208
|
return We(() => {
|
|
209
|
-
|
|
209
|
+
t(), ee(e.selectRef, t);
|
|
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 } = It(), f = hl(), d = ce("select"), p = ce("input"), t = 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: Y, formItem: B } = Nt(), { inputId: A } = Bt(e, {
|
|
256
256
|
formItemContext: B
|
|
257
|
-
}), { valueOnClear: Ke, isEmptyValue:
|
|
257
|
+
}), { valueOnClear: Ke, isEmptyValue: Z } = $t(e), {
|
|
258
258
|
isComposing: He,
|
|
259
|
-
handleCompositionStart:
|
|
260
|
-
handleCompositionUpdate:
|
|
261
|
-
handleCompositionEnd:
|
|
262
|
-
} =
|
|
263
|
-
afterComposition: (
|
|
264
|
-
}), ne = u(() => e.disabled || !!(
|
|
259
|
+
handleCompositionStart: Ol,
|
|
260
|
+
handleCompositionUpdate: Cl,
|
|
261
|
+
handleCompositionEnd: wl
|
|
262
|
+
} = At({
|
|
263
|
+
afterComposition: (l) => Je(l)
|
|
264
|
+
}), ne = u(() => e.disabled || !!(Y != null && Y.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur: Vl } = Kt(m, {
|
|
265
265
|
disabled: ne,
|
|
266
266
|
afterFocus() {
|
|
267
|
-
e.automaticDropdown && !c.value && (c.value = !0,
|
|
267
|
+
e.automaticDropdown && !c.value && (c.value = !0, t.menuVisibleOnFocus = !0);
|
|
268
268
|
},
|
|
269
|
-
beforeBlur(
|
|
269
|
+
beforeBlur(l) {
|
|
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(l)) || ((r = y.value) == null ? void 0 : r.isFocusInsideContent(l));
|
|
272
272
|
},
|
|
273
273
|
afterBlur() {
|
|
274
|
-
var
|
|
275
|
-
c.value = !1,
|
|
274
|
+
var l;
|
|
275
|
+
c.value = !1, t.menuVisibleOnFocus = !1, e.validateEvent && ((l = B == null ? void 0 : B.validate) == null || l.call(B, "blur").catch((n) => sl()));
|
|
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 : !Z(e.modelValue)), El = u(() => {
|
|
278
|
+
var l;
|
|
279
|
+
return (l = Y == null ? void 0 : Y.statusIcon) != null ? l : !1;
|
|
280
|
+
}), Il = u(() => e.clearable && !ne.value && ke.value && (Te.value || t.inputHovering)), Ue = u(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Tl = u(() => d.is("reverse", !!(Ue.value && c.value))), De = u(() => (B == null ? void 0 : B.validateState) || ""), kl = u(() => De.value && Pt[De.value]), Dl = u(() => e.remote ? 300 : 0), Ml = u(() => e.remote && !t.inputValue && t.options.size === 0), Rl = u(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && t.inputValue && t.options.size > 0 && oe.value === 0 ? e.noMatchText || a("el.select.noMatch") : t.options.size === 0 ? e.noDataText || a("el.select.noData") : null), oe = u(() => D.value.filter((l) => l.visible).length), D = u(() => {
|
|
281
|
+
const l = Array.from(t.options.values()), n = [];
|
|
282
|
+
return t.optionValues.forEach((r) => {
|
|
283
|
+
const E = l.findIndex((N) => N.value === r);
|
|
284
|
+
E > -1 && n.push(l[E]);
|
|
285
|
+
}), n.length >= l.length ? n : l;
|
|
286
|
+
}), $l = u(() => Array.from(t.cachedOptions.values())), Ll = u(() => {
|
|
287
|
+
const l = D.value.filter((n) => !n.created).some((n) => n.currentLabel === t.inputValue);
|
|
288
|
+
return e.filterable && e.allowCreate && t.inputValue !== "" && !l;
|
|
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((l) => {
|
|
291
291
|
var n;
|
|
292
|
-
(n =
|
|
292
|
+
(n = l.updateOption) == null || n.call(l, t.inputValue);
|
|
293
293
|
});
|
|
294
|
-
}, qe =
|
|
294
|
+
}, qe = Wt(), Nl = u(() => ["small"].includes(qe.value) ? "small" : "default"), Qe = u({
|
|
295
295
|
get() {
|
|
296
|
-
return c.value && !
|
|
296
|
+
return c.value && !Ml.value;
|
|
297
297
|
},
|
|
298
|
-
set(
|
|
299
|
-
c.value =
|
|
298
|
+
set(l) {
|
|
299
|
+
c.value = l;
|
|
300
300
|
}
|
|
301
|
-
}),
|
|
301
|
+
}), Bl = 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 X(e.modelValue).length === 0 && !t.inputValue;
|
|
304
|
+
const l = j(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
305
|
+
return e.filterable || Oe(l) ? !t.inputValue : !0;
|
|
306
|
+
}), Pl = u(() => {
|
|
307
|
+
var l;
|
|
308
|
+
const n = (l = e.placeholder) != null ? l : a("el.select.placeholder");
|
|
309
|
+
return e.multiple || !ke.value ? n : t.selectedLabel;
|
|
310
|
+
}), Wl = u(() => ul ? null : "mouseenter");
|
|
311
|
+
G(() => e.modelValue, (l, n) => {
|
|
312
|
+
e.multiple && e.filterable && !e.reserveKeyword && (t.inputValue = "", fe("")), ve(), !te(l, n) && e.validateEvent && (B == null || B.validate("change").catch((r) => sl()));
|
|
313
313
|
}, {
|
|
314
314
|
flush: "post",
|
|
315
315
|
deep: !0
|
|
316
|
-
}), G(() => c.value, (
|
|
317
|
-
|
|
318
|
-
}), G(() =>
|
|
319
|
-
|
|
316
|
+
}), G(() => c.value, (l) => {
|
|
317
|
+
l ? fe(t.inputValue) : (t.inputValue = "", t.previousQuery = null, t.isBeforeHide = !0), o("visible-change", l);
|
|
318
|
+
}), G(() => t.options.entries(), () => {
|
|
319
|
+
Tt && (ve(), e.defaultFirstOption && (e.filterable || e.remote) && oe.value && Xe());
|
|
320
320
|
}, {
|
|
321
321
|
flush: "post"
|
|
322
|
-
}), G([() =>
|
|
323
|
-
|
|
322
|
+
}), G([() => t.hoveringIndex, D], ([l]) => {
|
|
323
|
+
kt(l) && l > -1 ? V.value = D.value[l] || {} : V.value = {}, D.value.forEach((n) => {
|
|
324
324
|
n.hover = V.value === n;
|
|
325
325
|
});
|
|
326
|
-
}),
|
|
327
|
-
|
|
326
|
+
}), ut(() => {
|
|
327
|
+
t.isBeforeHide || je();
|
|
328
328
|
});
|
|
329
|
-
const fe = (
|
|
330
|
-
|
|
331
|
-
},
|
|
332
|
-
const
|
|
333
|
-
|
|
329
|
+
const fe = (l) => {
|
|
330
|
+
t.previousQuery === l || He.value || (t.previousQuery = l, e.filterable && re(e.filterMethod) ? e.filterMethod(l) : e.filterable && e.remote && re(e.remoteMethod) && e.remoteMethod(l), e.defaultFirstOption && (e.filterable || e.remote) && oe.value ? Q(Xe) : Q(Fl));
|
|
331
|
+
}, Xe = () => {
|
|
332
|
+
const l = D.value.filter((N) => N.visible && !N.disabled && !N.states.groupDisabled), n = l.find((N) => N.created), r = l[0], E = D.value.map((N) => N.value);
|
|
333
|
+
t.hoveringIndex = ll(E, n || r);
|
|
334
334
|
}, ve = () => {
|
|
335
335
|
if (e.multiple)
|
|
336
|
-
|
|
336
|
+
t.selectedLabel = "";
|
|
337
337
|
else {
|
|
338
338
|
const n = j(e.modelValue) ? e.modelValue[0] : e.modelValue, r = Me(n);
|
|
339
|
-
|
|
339
|
+
t.selectedLabel = r.currentLabel, t.selected = [r];
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
Oe(e.modelValue) ||
|
|
344
|
-
|
|
345
|
-
}),
|
|
346
|
-
}, Me = (
|
|
342
|
+
const l = [];
|
|
343
|
+
Oe(e.modelValue) || X(e.modelValue).forEach((n) => {
|
|
344
|
+
l.push(Me(n));
|
|
345
|
+
}), t.selected = l;
|
|
346
|
+
}, Me = (l) => {
|
|
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 = Dt(l);
|
|
349
|
+
for (let le = t.cachedOptions.size - 1; le >= 0; le--) {
|
|
350
|
+
const K = $l.value[le];
|
|
351
|
+
if (r ? z(K.value, e.valueKey) === z(l, e.valueKey) : K.value === l) {
|
|
352
352
|
n = {
|
|
353
|
-
index: D.value.filter((
|
|
354
|
-
value:
|
|
353
|
+
index: D.value.filter((J) => !J.created).indexOf(K),
|
|
354
|
+
value: l,
|
|
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 ? l.label : l ?? "";
|
|
366
366
|
return {
|
|
367
367
|
index: -1,
|
|
368
|
-
value:
|
|
368
|
+
value: l,
|
|
369
369
|
currentLabel: E
|
|
370
370
|
};
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
|
|
371
|
+
}, Fl = () => {
|
|
372
|
+
t.hoveringIndex = D.value.findIndex((l) => t.selected.some((n) => he(n) === he(l)));
|
|
373
|
+
}, zl = () => {
|
|
374
|
+
t.selectionWidth = Number.parseFloat(window.getComputedStyle(h.value).width);
|
|
375
|
+
}, Al = () => {
|
|
376
|
+
t.collapseItemWidth = R.value.getBoundingClientRect().width;
|
|
377
377
|
}, Re = () => {
|
|
378
|
-
var
|
|
379
|
-
(n = (
|
|
380
|
-
}, Xe = () => {
|
|
381
|
-
var t, n;
|
|
382
|
-
(n = (t = y.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
378
|
+
var l, n;
|
|
379
|
+
(n = (l = S.value) == null ? void 0 : l.updatePopper) == null || n.call(l);
|
|
383
380
|
}, Ye = () => {
|
|
384
|
-
l
|
|
385
|
-
|
|
386
|
-
|
|
381
|
+
var l, n;
|
|
382
|
+
(n = (l = y.value) == null ? void 0 : l.updatePopper) == null || n.call(l);
|
|
383
|
+
}, Ze = () => {
|
|
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)
|
|
387
387
|
_e();
|
|
388
388
|
else
|
|
389
|
-
return
|
|
390
|
-
}, _e =
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
const r =
|
|
389
|
+
return Ze();
|
|
390
|
+
}, _e = Ut(() => {
|
|
391
|
+
Ze();
|
|
392
|
+
}, Dl.value), ae = (l) => {
|
|
393
|
+
te(e.modelValue, l) || o(Fe, l);
|
|
394
|
+
}, Kl = (l) => en(l, (n) => {
|
|
395
|
+
const r = t.cachedOptions.get(n);
|
|
396
396
|
return r && !r.disabled && !r.states.groupDisabled;
|
|
397
|
-
}),
|
|
398
|
-
if (e.multiple &&
|
|
399
|
-
const n =
|
|
397
|
+
}), Hl = (l) => {
|
|
398
|
+
if (e.multiple && l.code !== bt.delete && l.target.value.length <= 0) {
|
|
399
|
+
const n = X(e.modelValue).slice(), r = Kl(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
|
+
}, Gl = (l, n) => {
|
|
406
|
+
const r = t.selected.indexOf(n);
|
|
407
407
|
if (r > -1 && !ne.value) {
|
|
408
|
-
const E =
|
|
408
|
+
const E = X(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
|
+
l.stopPropagation(), be();
|
|
412
|
+
}, xe = (l) => {
|
|
413
|
+
l.stopPropagation();
|
|
414
414
|
const n = e.multiple ? [] : Ke.value;
|
|
415
415
|
if (e.multiple)
|
|
416
|
-
for (const r of
|
|
416
|
+
for (const r of t.selected)
|
|
417
417
|
r.isDisabled && n.push(r.value);
|
|
418
|
-
o(x, n), ae(n),
|
|
419
|
-
},
|
|
418
|
+
o(x, n), ae(n), t.hoveringIndex = -1, c.value = !1, o("clear"), be();
|
|
419
|
+
}, el = (l) => {
|
|
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 = X((n = e.modelValue) != null ? n : []).slice(), E = ll(r, l);
|
|
423
|
+
E > -1 ? r.splice(E, 1) : (e.multipleLimit <= 0 || r.length < e.multipleLimit) && r.push(l.value), o(x, r), ae(r), l.created && fe(""), e.filterable && !e.reserveKeyword && (t.inputValue = "");
|
|
424
424
|
} else
|
|
425
|
-
!
|
|
425
|
+
!te(e.modelValue, l.value) && o(x, l.value), ae(l.value), c.value = !1;
|
|
426
426
|
be(), !c.value && Q(() => {
|
|
427
|
-
me(
|
|
427
|
+
me(l);
|
|
428
428
|
});
|
|
429
|
-
},
|
|
430
|
-
var n, r, E, N,
|
|
431
|
-
const K = j(
|
|
429
|
+
}, ll = (l, n) => Oe(n) ? -1 : U(n.value) ? l.findIndex((r) => te(z(r, e.valueKey), he(n))) : l.indexOf(n.value), me = (l) => {
|
|
430
|
+
var n, r, E, N, le;
|
|
431
|
+
const K = j(l) ? l[0] : l;
|
|
432
432
|
let ye = null;
|
|
433
433
|
if (K != null && K.value) {
|
|
434
|
-
const
|
|
435
|
-
|
|
434
|
+
const J = D.value.filter((st) => st.value === K.value);
|
|
435
|
+
J.length > 0 && (ye = J[0].$el);
|
|
436
436
|
}
|
|
437
437
|
if (S.value && ye) {
|
|
438
|
-
const
|
|
439
|
-
|
|
438
|
+
const J = (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
|
+
J && Ht(J, ye);
|
|
440
440
|
}
|
|
441
|
-
(
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
var
|
|
448
|
-
return (n = (
|
|
449
|
-
}),
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
(
|
|
441
|
+
(le = g.value) == null || le.handleScroll();
|
|
442
|
+
}, Ul = (l) => {
|
|
443
|
+
t.options.set(l.value, l), t.cachedOptions.set(l.value, l);
|
|
444
|
+
}, jl = (l, n) => {
|
|
445
|
+
t.options.get(l) === n && t.options.delete(l);
|
|
446
|
+
}, ql = u(() => {
|
|
447
|
+
var l, n;
|
|
448
|
+
return (n = (l = S.value) == null ? void 0 : l.popperRef) == null ? void 0 : n.contentRef;
|
|
449
|
+
}), Ql = () => {
|
|
450
|
+
t.isBeforeHide = !1, Q(() => {
|
|
451
|
+
var l;
|
|
452
|
+
(l = g.value) == null || l.update(), me(t.selected);
|
|
453
453
|
});
|
|
454
454
|
}, be = () => {
|
|
455
|
-
var
|
|
456
|
-
(
|
|
457
|
-
},
|
|
458
|
-
var
|
|
455
|
+
var l;
|
|
456
|
+
(l = m.value) == null || l.focus();
|
|
457
|
+
}, Xl = () => {
|
|
458
|
+
var l;
|
|
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
|
+
(l = m.value) == null || l.blur();
|
|
467
|
+
}, Yl = (l) => {
|
|
468
|
+
xe(l);
|
|
469
|
+
}, Zl = (l) => {
|
|
470
470
|
if (c.value = !1, Te.value) {
|
|
471
|
-
const n = new FocusEvent("blur",
|
|
472
|
-
Q(() =>
|
|
471
|
+
const n = new FocusEvent("blur", l);
|
|
472
|
+
Q(() => Vl(n));
|
|
473
473
|
}
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
},
|
|
477
|
-
ne.value || (
|
|
478
|
-
},
|
|
474
|
+
}, Jl = () => {
|
|
475
|
+
t.inputValue.length > 0 ? t.inputValue = "" : c.value = !1;
|
|
476
|
+
}, tl = () => {
|
|
477
|
+
ne.value || (ul && (t.inputHovering = !0), t.menuVisibleOnFocus ? t.menuVisibleOnFocus = !1 : c.value = !c.value);
|
|
478
|
+
}, _l = () => {
|
|
479
479
|
if (!c.value)
|
|
480
|
-
|
|
480
|
+
tl();
|
|
481
481
|
else {
|
|
482
|
-
const
|
|
483
|
-
|
|
482
|
+
const l = D.value[t.hoveringIndex];
|
|
483
|
+
l && !l.isDisabled && el(l);
|
|
484
484
|
}
|
|
485
|
-
}, he = (
|
|
485
|
+
}, he = (l) => U(l.value) ? z(l.value, e.valueKey) : l.value, xl = u(() => D.value.filter((l) => l.visible).every((l) => l.isDisabled)), et = u(() => e.multiple ? e.collapseTags ? t.selected.slice(0, e.maxCollapseTags) : t.selected : []), lt = u(() => e.multiple ? e.collapseTags ? t.selected.slice(e.maxCollapseTags) : [] : []), nl = (l) => {
|
|
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 (!(t.options.size === 0 || oe.value === 0 || He.value) && !xl.value) {
|
|
491
|
+
l === "next" ? (t.hoveringIndex++, t.hoveringIndex === t.options.size && (t.hoveringIndex = 0)) : l === "prev" && (t.hoveringIndex--, t.hoveringIndex < 0 && (t.hoveringIndex = t.options.size - 1));
|
|
492
|
+
const n = D.value[t.hoveringIndex];
|
|
493
|
+
(n.isDisabled || !n.visible) && nl(l), Q(() => me(V.value));
|
|
494
494
|
}
|
|
495
|
-
},
|
|
495
|
+
}, tt = () => {
|
|
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 l = window.getComputedStyle(h.value);
|
|
499
|
+
return Number.parseFloat(l.gap || "6px");
|
|
500
|
+
}, nt = u(() => {
|
|
501
|
+
const l = tt(), n = e.filterable ? l + gl : 0;
|
|
502
|
+
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ? t.selectionWidth - t.collapseItemWidth - l - n : t.selectionWidth - n}px` };
|
|
503
|
+
}), ot = u(() => ({ maxWidth: `${t.selectionWidth}px` })), at = (l) => {
|
|
504
|
+
o("popup-scroll", l);
|
|
505
505
|
};
|
|
506
|
-
ee(h,
|
|
506
|
+
ee(h, zl), ee(Ge, Re), ee(I, Ye), ee(R, Al);
|
|
507
507
|
let ge;
|
|
508
|
-
return G(() => Qe.value, (
|
|
509
|
-
|
|
508
|
+
return G(() => Qe.value, (l) => {
|
|
509
|
+
l ? 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: t,
|
|
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: Ye,
|
|
526
526
|
debouncedOnInputChange: _e,
|
|
527
|
-
onInput:
|
|
528
|
-
deletePrevTag:
|
|
529
|
-
deleteTag:
|
|
527
|
+
onInput: Je,
|
|
528
|
+
deletePrevTag: Hl,
|
|
529
|
+
deleteTag: Gl,
|
|
530
530
|
deleteSelected: xe,
|
|
531
|
-
handleOptionSelect:
|
|
531
|
+
handleOptionSelect: el,
|
|
532
532
|
scrollToOption: me,
|
|
533
533
|
hasModelValue: ke,
|
|
534
|
-
shouldShowPlaceholder:
|
|
535
|
-
currentPlaceholder:
|
|
536
|
-
mouseEnterEventName:
|
|
537
|
-
needStatusIcon:
|
|
538
|
-
showClearBtn:
|
|
534
|
+
shouldShowPlaceholder: Bl,
|
|
535
|
+
currentPlaceholder: Pl,
|
|
536
|
+
mouseEnterEventName: Wl,
|
|
537
|
+
needStatusIcon: El,
|
|
538
|
+
showClearBtn: Il,
|
|
539
539
|
iconComponent: Ue,
|
|
540
|
-
iconReverse:
|
|
540
|
+
iconReverse: Tl,
|
|
541
541
|
validateState: De,
|
|
542
|
-
validateIcon:
|
|
543
|
-
showNewOption:
|
|
542
|
+
validateIcon: kl,
|
|
543
|
+
showNewOption: Ll,
|
|
544
544
|
updateOptions: je,
|
|
545
|
-
collapseTagSize:
|
|
545
|
+
collapseTagSize: Nl,
|
|
546
546
|
setSelected: ve,
|
|
547
547
|
selectDisabled: ne,
|
|
548
|
-
emptyText:
|
|
549
|
-
handleCompositionStart:
|
|
550
|
-
handleCompositionUpdate:
|
|
551
|
-
handleCompositionEnd:
|
|
552
|
-
onOptionCreate:
|
|
553
|
-
onOptionDestroy:
|
|
554
|
-
handleMenuEnter:
|
|
548
|
+
emptyText: Rl,
|
|
549
|
+
handleCompositionStart: Ol,
|
|
550
|
+
handleCompositionUpdate: Cl,
|
|
551
|
+
handleCompositionEnd: wl,
|
|
552
|
+
onOptionCreate: Ul,
|
|
553
|
+
onOptionDestroy: jl,
|
|
554
|
+
handleMenuEnter: Ql,
|
|
555
555
|
focus: be,
|
|
556
|
-
blur:
|
|
557
|
-
handleClearClick:
|
|
558
|
-
handleClickOutside:
|
|
559
|
-
handleEsc:
|
|
560
|
-
toggleMenu:
|
|
561
|
-
selectOption:
|
|
556
|
+
blur: Xl,
|
|
557
|
+
handleClearClick: Yl,
|
|
558
|
+
handleClickOutside: Zl,
|
|
559
|
+
handleEsc: Jl,
|
|
560
|
+
toggleMenu: tl,
|
|
561
|
+
selectOption: _l,
|
|
562
562
|
getValueKey: he,
|
|
563
|
-
navigateOptions:
|
|
563
|
+
navigateOptions: nl,
|
|
564
564
|
dropdownMenuVisible: Qe,
|
|
565
|
-
showTagList:
|
|
566
|
-
collapseTagList:
|
|
567
|
-
popupScroll:
|
|
565
|
+
showTagList: et,
|
|
566
|
+
collapseTagList: lt,
|
|
567
|
+
popupScroll: at,
|
|
568
568
|
getOption: Me,
|
|
569
|
-
tagStyle:
|
|
570
|
-
collapseTagStyle:
|
|
571
|
-
popperRef:
|
|
569
|
+
tagStyle: nt,
|
|
570
|
+
collapseTagStyle: ot,
|
|
571
|
+
popperRef: ql,
|
|
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 t = (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(!Mt(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 t.length && h((p = t[0]) == null ? void 0 : p.children), te(C, f) || (f = C, a && (a.states.optionValues = C)), t;
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
|
-
const mn =
|
|
605
|
+
const mn = ml({
|
|
606
606
|
name: String,
|
|
607
607
|
id: String,
|
|
608
608
|
modelValue: {
|
|
@@ -620,7 +620,7 @@ const mn = mt({
|
|
|
620
620
|
default: "off"
|
|
621
621
|
},
|
|
622
622
|
automaticDropdown: Boolean,
|
|
623
|
-
size:
|
|
623
|
+
size: Ft,
|
|
624
624
|
effect: {
|
|
625
625
|
type: W(String),
|
|
626
626
|
default: "light"
|
|
@@ -674,22 +674,22 @@ const mn = mt({
|
|
|
674
674
|
type: Number,
|
|
675
675
|
default: 1
|
|
676
676
|
},
|
|
677
|
-
teleported:
|
|
677
|
+
teleported: il.teleported,
|
|
678
678
|
persistent: {
|
|
679
679
|
type: Boolean,
|
|
680
680
|
default: !0
|
|
681
681
|
},
|
|
682
682
|
clearIcon: {
|
|
683
|
-
type:
|
|
684
|
-
default:
|
|
683
|
+
type: dl,
|
|
684
|
+
default: wt
|
|
685
685
|
},
|
|
686
686
|
fitInputWidth: Boolean,
|
|
687
687
|
suffixIcon: {
|
|
688
|
-
type:
|
|
689
|
-
default:
|
|
688
|
+
type: dl,
|
|
689
|
+
default: Vt
|
|
690
690
|
},
|
|
691
|
-
tagType: { ...
|
|
692
|
-
tagEffect: { ...
|
|
691
|
+
tagType: { ...rl.type, default: "info" },
|
|
692
|
+
tagEffect: { ...rl.effect, default: "light" },
|
|
693
693
|
validateEvent: {
|
|
694
694
|
type: Boolean,
|
|
695
695
|
default: !0
|
|
@@ -705,7 +705,7 @@ const mn = mt({
|
|
|
705
705
|
},
|
|
706
706
|
placement: {
|
|
707
707
|
type: W(String),
|
|
708
|
-
values:
|
|
708
|
+
values: ht,
|
|
709
709
|
default: "bottom-start"
|
|
710
710
|
},
|
|
711
711
|
fallbackPlacements: {
|
|
@@ -716,18 +716,18 @@ const mn = mt({
|
|
|
716
716
|
type: [String, Number],
|
|
717
717
|
default: 0
|
|
718
718
|
},
|
|
719
|
-
appendTo:
|
|
719
|
+
appendTo: il.appendTo,
|
|
720
720
|
options: {
|
|
721
721
|
type: W(Array)
|
|
722
722
|
},
|
|
723
723
|
props: {
|
|
724
724
|
type: W(Object),
|
|
725
|
-
default: () =>
|
|
725
|
+
default: () => yl
|
|
726
726
|
},
|
|
727
|
-
...
|
|
728
|
-
...
|
|
727
|
+
...Lt,
|
|
728
|
+
...gt(["ariaLabel"])
|
|
729
729
|
});
|
|
730
|
-
x + "", Fe + "",
|
|
730
|
+
x + "", Fe + "", yt.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
|
+
vl(Sl, 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)), t = (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 = X(S), m = [];
|
|
748
748
|
return y.forEach((s) => {
|
|
749
749
|
var i;
|
|
750
|
-
|
|
750
|
+
dt(s) && (t(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
|
+
}), zt(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 pl = "ElSelect", gn = pe({
|
|
789
|
+
name: pl,
|
|
790
|
+
componentName: pl,
|
|
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: Ct,
|
|
797
|
+
ElScrollbar: St,
|
|
798
|
+
ElTooltip: Ot,
|
|
799
|
+
ElIcon: Et
|
|
800
800
|
},
|
|
801
|
-
directives: { ClickOutside:
|
|
801
|
+
directives: { ClickOutside: qt },
|
|
802
802
|
props: mn,
|
|
803
803
|
emits: [
|
|
804
804
|
x,
|
|
@@ -821,23 +821,23 @@ const pt = "ElSelect", gn = pe({
|
|
|
821
821
|
}), p = de({
|
|
822
822
|
...Be(e),
|
|
823
823
|
modelValue: d
|
|
824
|
-
}),
|
|
824
|
+
}), t = fn(p, o), { calculatorRef: C, inputStyle: h } = tn(), { 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
|
+
Qt(g || []).forEach((V) => {
|
|
830
|
+
var Y;
|
|
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 = ((Y = V.props) == null ? void 0 : Y.data) || [];
|
|
835
|
+
O(A).forEach((Z) => {
|
|
836
|
+
Z.currentLabel = Z.label || (U(Z.value) ? "" : Z.value), t.onOptionCreate(Z);
|
|
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), t.onOptionCreate(A);
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
});
|
|
@@ -849,21 +849,21 @@ const pt = "ElSelect", gn = pe({
|
|
|
849
849
|
e.persistent || I(g);
|
|
850
850
|
}, {
|
|
851
851
|
immediate: !0
|
|
852
|
-
}),
|
|
852
|
+
}), vl(Ie, de({
|
|
853
853
|
props: p,
|
|
854
|
-
states:
|
|
855
|
-
selectRef:
|
|
856
|
-
optionsArray:
|
|
857
|
-
setSelected:
|
|
858
|
-
handleOptionSelect:
|
|
859
|
-
onOptionCreate:
|
|
860
|
-
onOptionDestroy:
|
|
854
|
+
states: t.states,
|
|
855
|
+
selectRef: t.selectRef,
|
|
856
|
+
optionsArray: t.optionsArray,
|
|
857
|
+
setSelected: t.setSelected,
|
|
858
|
+
handleOptionSelect: t.handleOptionSelect,
|
|
859
|
+
onOptionCreate: t.onOptionCreate,
|
|
860
|
+
onOptionDestroy: t.onOptionDestroy
|
|
861
861
|
}));
|
|
862
|
-
const R = u(() => e.multiple ?
|
|
863
|
-
return
|
|
862
|
+
const R = u(() => e.multiple ? t.states.selected.map((g) => g.currentLabel) : t.states.selectedLabel);
|
|
863
|
+
return fl(() => {
|
|
864
864
|
f.appContext.config.warnHandler = void 0;
|
|
865
865
|
}), {
|
|
866
|
-
...
|
|
866
|
+
...t,
|
|
867
867
|
modelValue: d,
|
|
868
868
|
selectedLabel: R,
|
|
869
869
|
calculatorRef: C,
|
|
@@ -877,11 +877,11 @@ const pt = "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"), t = q("el-option-group"), C = q("el-options"), h = q("el-scrollbar"), S = q("el-select-menu"), y = ct("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
|
+
[pt(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
|
+
ol(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
|
+
ol(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
|
+
[ft, 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(t, {
|
|
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, al({
|
|
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, vt(al({ 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 = Rt(Sn, {
|
|
1247
1247
|
Option: ze,
|
|
1248
1248
|
OptionGroup: Ae
|
|
1249
|
-
}), Pn =
|
|
1250
|
-
|
|
1249
|
+
}), Pn = bl(ze);
|
|
1250
|
+
bl(Ae);
|
|
1251
1251
|
export {
|
|
1252
1252
|
Pn as E,
|
|
1253
1253
|
Bn as a
|