st-comp 0.0.207 → 0.0.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +1 -74
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +53 -56
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +45 -48
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +1 -118
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +81 -84
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +161 -164
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +15 -18
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +18 -21
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +140 -143
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +55 -58
- package/es/User.cjs +1 -1
- package/es/User.js +85 -88
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +53 -56
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +15 -17
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +53 -56
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +33 -36
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +103 -106
- package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
- package/es/_initCloneObject-e660897e.cjs +1 -0
- package/es/base-7ba08794.cjs +5 -0
- package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
- package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
- package/es/castArray-efa457a5.cjs +1 -0
- package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
- package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
- package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
- package/es/debounce-4aa22feb.cjs +1 -0
- package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
- package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
- package/es/el-autocomplete-609ac86d.cjs +1 -0
- package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
- package/es/el-button-08310c06.cjs +1 -0
- package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
- package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
- package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
- package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
- package/es/el-dialog-ea480083.cjs +1 -0
- package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
- package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
- package/es/el-empty-b40fa7ea.cjs +1 -0
- package/es/el-form-item-338ea2f7.cjs +12 -0
- package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
- package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
- package/es/el-input-b04b5bfc.cjs +1 -0
- package/es/el-input-number-7242c8b5.cjs +1 -0
- package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
- package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
- package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
- package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
- package/es/el-menu-item-7aca344e.cjs +1 -0
- package/es/el-message-05cd85bf.cjs +1 -0
- package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
- package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
- package/es/el-message-box-b7e9917e.cjs +1 -0
- package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
- package/es/el-overlay-60bc5a02.cjs +1 -0
- package/es/el-popconfirm-24b622c5.cjs +1 -0
- package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
- package/es/el-popper-1dd8f5b4.cjs +1 -0
- package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
- package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
- package/es/el-segmented-a928d89b.cjs +1 -0
- package/es/el-select-5fd77a96.cjs +1 -0
- package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
- package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
- package/es/el-table-column-bf3ab2a6.cjs +14 -0
- package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
- package/es/el-tag-d59f3463.cjs +1 -0
- package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
- package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
- package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
- package/es/{index-88546436.js → index-29418a8d.js} +18 -18
- package/es/index-3d0bc5da.js +566 -0
- package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
- package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
- package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
- package/es/index-a206f6eb.cjs +1 -0
- package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
- package/es/index-b4700d83.cjs +1 -0
- package/es/index-c30cf7f9.cjs +1 -0
- package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
- package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
- package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
- package/es/raf-d8c44079.js +6 -0
- package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
- package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-41182853.cjs +1 -0
- package/es/use-form-common-props-4cdda474.js +671 -0
- package/es/use-global-config-7bfbe48c.js +71 -0
- package/es/use-global-config-dc5527e8.cjs +1 -0
- package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
- package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
- package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
- package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
- package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
- package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
- package/es/_initCloneObject-52b6a510.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/castArray-35947698.cjs +0 -1
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/el-autocomplete-a07e9439.cjs +0 -1
- package/es/el-button-eec58cff.cjs +0 -1
- package/es/el-dialog-ae86edb8.cjs +0 -1
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-form-item-c3fe189b.cjs +0 -12
- package/es/el-input-7fd293af.cjs +0 -1
- package/es/el-input-number-22e21d16.cjs +0 -1
- package/es/el-menu-item-17dc717e.cjs +0 -1
- package/es/el-message-5e6a6be9.cjs +0 -1
- package/es/el-message-box-c10adb52.cjs +0 -1
- package/es/el-overlay-9e34965f.cjs +0 -1
- package/es/el-popconfirm-70a976bf.cjs +0 -1
- package/es/el-popper-b6c99b28.cjs +0 -1
- package/es/el-segmented-f8fce9ac.cjs +0 -1
- package/es/el-select-d8d91db1.cjs +0 -1
- package/es/el-table-column-c974cb96.cjs +0 -14
- package/es/el-tag-a33c4b22.cjs +0 -1
- package/es/index-098c2447.cjs +0 -1
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9b9ef5dd.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c108567d.cjs +0 -1
- package/es/index-d77a7336.js +0 -204
- package/es/index-e5566b94.js +0 -368
- package/es/index-f3562b52.cjs +0 -1
- package/es/raf-80ef0c0a.js +0 -6
- package/es/use-form-common-props-815d48a6.js +0 -364
- package/es/use-form-common-props-fd9b61a0.cjs +0 -1
- package/es/use-global-config-30d7d8ce.cjs +0 -1
- package/es/use-global-config-b5e9d3d5.js +0 -72
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { g as z, u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { f as Ql } from "./vnode-5ddb7ed1.js";
|
|
17
|
-
var ct = 1 / 0, Xl = 17976931348623157e292;
|
|
18
|
-
function Yl(e) {
|
|
1
|
+
import { shallowRef as it, ref as T, computed as u, inject as we, getCurrentInstance as Ee, 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 { t as mt, d as sl, e as bt, U as x, C as Fe, a as il, m as ht, u as gt, E as yt } from "./el-popper-49152708.js";
|
|
3
|
+
import { s as St, E as Ot } from "./index-66ad0d6a.js";
|
|
4
|
+
import { t as rl, E as Ct } from "./index-4e46f96c.js";
|
|
5
|
+
import { b as ml, p as U, u as ce, _ as Ve, i as j, A as Oe, a2 as ul, a as wt, n as Et, g as re, a3 as Vt, m as It, d as W, M as Tt, I as kt, E as Dt, w as Mt, T as bl } from "./base-aa512893.js";
|
|
6
|
+
import { g as z, f as te, a as Rt, h as $t, u as Lt } from "./index-3d0bc5da.js";
|
|
7
|
+
import { c as X } from "./castArray-1eb17278.js";
|
|
8
|
+
import { j as ee, d as hl, f as Nt, g as Bt, V as Pt, a as Wt, u as Ft, k as dl, E as zt } from "./use-form-common-props-4cdda474.js";
|
|
9
|
+
import { a as At, u as Kt } from "./index-cbbd78b4.js";
|
|
10
|
+
import { s as Ht } from "./scroll-0a48995c.js";
|
|
11
|
+
import { t as Gt, d as Ut } from "./debounce-33406a0d.js";
|
|
12
|
+
import { b as jt, C as qt } from "./el-tag-55a172c9.js";
|
|
13
|
+
import { f as Qt } from "./vnode-b62d0045.js";
|
|
14
|
+
var cl = 1 / 0, Xt = 17976931348623157e292;
|
|
15
|
+
function Yt(e) {
|
|
19
16
|
if (!e)
|
|
20
17
|
return e === 0 ? e : 0;
|
|
21
|
-
if (e =
|
|
18
|
+
if (e = Gt(e), e === cl || e === -cl) {
|
|
22
19
|
var o = e < 0 ? -1 : 1;
|
|
23
|
-
return o *
|
|
20
|
+
return o * Xt;
|
|
24
21
|
}
|
|
25
22
|
return e === e ? e : 0;
|
|
26
23
|
}
|
|
27
|
-
function
|
|
28
|
-
var o =
|
|
24
|
+
function Zt(e) {
|
|
25
|
+
var o = Yt(e), a = o % 1;
|
|
29
26
|
return o === o ? a ? o - a : o : 0;
|
|
30
27
|
}
|
|
31
|
-
function
|
|
28
|
+
function Jt(e, o, a, f) {
|
|
32
29
|
for (var d = e.length, p = a + (f ? 1 : -1); f ? p-- : ++p < d; )
|
|
33
30
|
if (o(e[p], p, e))
|
|
34
31
|
return p;
|
|
35
32
|
return -1;
|
|
36
33
|
}
|
|
37
|
-
var
|
|
34
|
+
var _t = Math.max, xt = Math.min;
|
|
38
35
|
function en(e, o, a) {
|
|
39
36
|
var f = e == null ? 0 : e.length;
|
|
40
37
|
if (!f)
|
|
41
38
|
return -1;
|
|
42
39
|
var d = f - 1;
|
|
43
|
-
return a !== void 0 && (d =
|
|
40
|
+
return a !== void 0 && (d = Zt(a), d = a < 0 ? _t(f + d, 0) : xt(d, f - 1)), Jt(e, jt(o), d, !0);
|
|
44
41
|
}
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
const e =
|
|
48
|
-
minWidth: `${Math.max(o.value,
|
|
42
|
+
const gl = 11, ln = 2;
|
|
43
|
+
function tn() {
|
|
44
|
+
const e = it(), o = T(0), a = u(() => ({
|
|
45
|
+
minWidth: `${Math.max(o.value, gl)}px`
|
|
49
46
|
}));
|
|
50
47
|
return ee(e, () => {
|
|
51
48
|
var d, p;
|
|
@@ -56,23 +53,23 @@ function ln() {
|
|
|
56
53
|
inputStyle: a
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
|
-
const
|
|
56
|
+
const yl = {
|
|
60
57
|
label: "label",
|
|
61
58
|
value: "value",
|
|
62
59
|
disabled: "disabled",
|
|
63
60
|
options: "options"
|
|
64
61
|
};
|
|
65
62
|
function nn(e) {
|
|
66
|
-
const o = u(() => ({ ...
|
|
63
|
+
const o = u(() => ({ ...yl, ...e.props }));
|
|
67
64
|
return {
|
|
68
65
|
aliasProps: o,
|
|
69
|
-
getLabel: (
|
|
70
|
-
getValue: (
|
|
71
|
-
getDisabled: (
|
|
72
|
-
getOptions: (
|
|
66
|
+
getLabel: (t) => z(t, o.value.label),
|
|
67
|
+
getValue: (t) => z(t, o.value.value),
|
|
68
|
+
getDisabled: (t) => z(t, o.value.disabled),
|
|
69
|
+
getOptions: (t) => z(t, o.value.options)
|
|
73
70
|
};
|
|
74
71
|
}
|
|
75
|
-
const
|
|
72
|
+
const Sl = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on = ml({
|
|
76
73
|
value: {
|
|
77
74
|
type: [String, Number, Boolean, Object],
|
|
78
75
|
required: !0
|
|
@@ -85,34 +82,34 @@ const St = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on
|
|
|
85
82
|
}), an = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
86
83
|
function sn(e, o) {
|
|
87
84
|
const a = we(Ie);
|
|
88
|
-
a ||
|
|
89
|
-
const f = we(
|
|
85
|
+
a || mt(Ne, "usage: <el-select><el-option /></el-select/>");
|
|
86
|
+
const f = we(Sl, { disabled: !1 }), d = u(() => y(X(a.props.modelValue), e.value)), p = u(() => {
|
|
90
87
|
var i;
|
|
91
88
|
if (a.props.multiple) {
|
|
92
89
|
const O = X((i = a.props.modelValue) != null ? i : []);
|
|
93
90
|
return !d.value && O.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
|
|
94
91
|
} else
|
|
95
92
|
return !1;
|
|
96
|
-
}),
|
|
93
|
+
}), t = u(() => {
|
|
97
94
|
var i;
|
|
98
95
|
return (i = e.label) != null ? i : U(e.value) ? "" : e.value;
|
|
99
96
|
}), C = u(() => e.value || e.label || ""), h = u(() => e.disabled || o.groupDisabled || p.value), S = Ee(), y = (i = [], O) => {
|
|
100
97
|
if (U(e.value)) {
|
|
101
98
|
const I = a.props.valueKey;
|
|
102
|
-
return i && i.some((R) =>
|
|
99
|
+
return i && i.some((R) => rt(z(R, I)) === z(O, I));
|
|
103
100
|
} else
|
|
104
101
|
return i && i.includes(O);
|
|
105
102
|
}, m = () => {
|
|
106
103
|
!e.disabled && !f.disabled && (a.states.hoveringIndex = a.optionsArray.indexOf(S.proxy));
|
|
107
104
|
}, s = (i) => {
|
|
108
105
|
const O = new RegExp(an(i), "i");
|
|
109
|
-
o.visible = O.test(String(
|
|
106
|
+
o.visible = O.test(String(t.value)) || e.created;
|
|
110
107
|
};
|
|
111
|
-
return G(() =>
|
|
108
|
+
return G(() => t.value, () => {
|
|
112
109
|
!e.created && !a.props.remote && a.setSelected();
|
|
113
110
|
}), G(() => e.value, (i, O) => {
|
|
114
111
|
const { remote: I, valueKey: R } = a.props;
|
|
115
|
-
if ((I ? i !== O : !
|
|
112
|
+
if ((I ? i !== O : !te(i, O)) && (a.onOptionDestroy(O, S.proxy), a.onOptionCreate(S.proxy)), !e.created && !I) {
|
|
116
113
|
if (R && U(i) && U(O) && i[R] === O[R])
|
|
117
114
|
return;
|
|
118
115
|
a.setSelected();
|
|
@@ -121,7 +118,7 @@ function sn(e, o) {
|
|
|
121
118
|
o.groupDisabled = f.disabled;
|
|
122
119
|
}, { immediate: !0 }), {
|
|
123
120
|
select: a,
|
|
124
|
-
currentLabel:
|
|
121
|
+
currentLabel: t,
|
|
125
122
|
currentValue: C,
|
|
126
123
|
itemSelected: d,
|
|
127
124
|
isDisabled: h,
|
|
@@ -134,10 +131,10 @@ const rn = pe({
|
|
|
134
131
|
componentName: Ne,
|
|
135
132
|
props: on,
|
|
136
133
|
setup(e) {
|
|
137
|
-
const o = ce("select"), a =
|
|
134
|
+
const o = ce("select"), a = hl(), f = u(() => [
|
|
138
135
|
o.be("dropdown", "item"),
|
|
139
136
|
o.is("disabled", $e(C)),
|
|
140
|
-
o.is("selected", $e(
|
|
137
|
+
o.is("selected", $e(t)),
|
|
141
138
|
o.is("hovering", $e(s))
|
|
142
139
|
]), d = de({
|
|
143
140
|
index: -1,
|
|
@@ -146,13 +143,13 @@ const rn = pe({
|
|
|
146
143
|
hover: !1
|
|
147
144
|
}), {
|
|
148
145
|
currentLabel: p,
|
|
149
|
-
itemSelected:
|
|
146
|
+
itemSelected: t,
|
|
150
147
|
isDisabled: C,
|
|
151
148
|
select: h,
|
|
152
149
|
hoverItem: S,
|
|
153
150
|
updateOption: y
|
|
154
151
|
} = sn(e, d), { visible: m, hover: s } = Be(d), i = Ee().proxy;
|
|
155
|
-
h.onOptionCreate(i),
|
|
152
|
+
h.onOptionCreate(i), fl(() => {
|
|
156
153
|
const I = i.value;
|
|
157
154
|
Q(() => {
|
|
158
155
|
const { selected: R } = h.states, g = R.some((c) => c.value === i.value);
|
|
@@ -167,7 +164,7 @@ const rn = pe({
|
|
|
167
164
|
id: a,
|
|
168
165
|
containerKls: f,
|
|
169
166
|
currentLabel: p,
|
|
170
|
-
itemSelected:
|
|
167
|
+
itemSelected: t,
|
|
171
168
|
isDisabled: C,
|
|
172
169
|
select: h,
|
|
173
170
|
visible: m,
|
|
@@ -202,13 +199,13 @@ const dn = pe({
|
|
|
202
199
|
componentName: "ElSelectDropdown",
|
|
203
200
|
setup() {
|
|
204
201
|
const e = we(Ie), o = ce("select"), a = u(() => e.props.popperClass), f = u(() => e.props.multiple), d = u(() => e.props.fitInputWidth), p = T("");
|
|
205
|
-
function
|
|
202
|
+
function t() {
|
|
206
203
|
var C;
|
|
207
204
|
const h = (C = e.selectRef) == null ? void 0 : C.offsetWidth;
|
|
208
|
-
h ? p.value = `${h -
|
|
205
|
+
h ? p.value = `${h - ln}px` : p.value = "";
|
|
209
206
|
}
|
|
210
207
|
return We(() => {
|
|
211
|
-
|
|
208
|
+
t(), ee(e.selectRef, t);
|
|
212
209
|
}), {
|
|
213
210
|
ns: o,
|
|
214
211
|
minWidth: p,
|
|
@@ -240,7 +237,7 @@ function cn(e, o, a, f, d, p) {
|
|
|
240
237
|
}
|
|
241
238
|
var pn = /* @__PURE__ */ Ve(dn, [["render", cn], ["__file", "select-dropdown.vue"]]);
|
|
242
239
|
const fn = (e, o) => {
|
|
243
|
-
const { t: a } =
|
|
240
|
+
const { t: a } = Rt(), f = hl(), d = ce("select"), p = ce("input"), t = de({
|
|
244
241
|
inputValue: "",
|
|
245
242
|
options: /* @__PURE__ */ new Map(),
|
|
246
243
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -254,106 +251,106 @@ const fn = (e, o) => {
|
|
|
254
251
|
inputHovering: !1,
|
|
255
252
|
menuVisibleOnFocus: !1,
|
|
256
253
|
isBeforeHide: !1
|
|
257
|
-
}), 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), E = T(), { form: Y, formItem: B } =
|
|
254
|
+
}), 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), E = T(), { form: Y, formItem: B } = Nt(), { inputId: A } = Bt(e, {
|
|
258
255
|
formItemContext: B
|
|
259
|
-
}), { valueOnClear: Ke, isEmptyValue: Z } = $
|
|
256
|
+
}), { valueOnClear: Ke, isEmptyValue: Z } = $t(e), {
|
|
260
257
|
isComposing: He,
|
|
261
|
-
handleCompositionStart:
|
|
262
|
-
handleCompositionUpdate:
|
|
263
|
-
handleCompositionEnd:
|
|
264
|
-
} =
|
|
265
|
-
afterComposition: (
|
|
266
|
-
}), ne = u(() => e.disabled || !!(Y != null && Y.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur:
|
|
258
|
+
handleCompositionStart: Ol,
|
|
259
|
+
handleCompositionUpdate: Cl,
|
|
260
|
+
handleCompositionEnd: wl
|
|
261
|
+
} = At({
|
|
262
|
+
afterComposition: (l) => Je(l)
|
|
263
|
+
}), ne = u(() => e.disabled || !!(Y != null && Y.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur: El } = Kt(m, {
|
|
267
264
|
disabled: ne,
|
|
268
265
|
afterFocus() {
|
|
269
|
-
e.automaticDropdown && !c.value && (c.value = !0,
|
|
266
|
+
e.automaticDropdown && !c.value && (c.value = !0, t.menuVisibleOnFocus = !0);
|
|
270
267
|
},
|
|
271
|
-
beforeBlur(
|
|
268
|
+
beforeBlur(l) {
|
|
272
269
|
var n, r;
|
|
273
|
-
return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(
|
|
270
|
+
return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(l)) || ((r = y.value) == null ? void 0 : r.isFocusInsideContent(l));
|
|
274
271
|
},
|
|
275
272
|
afterBlur() {
|
|
276
|
-
var
|
|
277
|
-
c.value = !1,
|
|
273
|
+
var l;
|
|
274
|
+
c.value = !1, t.menuVisibleOnFocus = !1, e.validateEvent && ((l = B == null ? void 0 : B.validate) == null || l.call(B, "blur").catch((n) => sl()));
|
|
278
275
|
}
|
|
279
|
-
}), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !Z(e.modelValue)),
|
|
280
|
-
var
|
|
281
|
-
return (
|
|
282
|
-
}),
|
|
283
|
-
const
|
|
284
|
-
return
|
|
285
|
-
const V =
|
|
286
|
-
V > -1 && n.push(
|
|
287
|
-
}), n.length >=
|
|
288
|
-
}), $
|
|
289
|
-
const
|
|
290
|
-
return e.filterable && e.allowCreate &&
|
|
276
|
+
}), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !Z(e.modelValue)), Vl = u(() => {
|
|
277
|
+
var l;
|
|
278
|
+
return (l = Y == null ? void 0 : Y.statusIcon) != null ? l : !1;
|
|
279
|
+
}), 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(() => {
|
|
280
|
+
const l = Array.from(t.options.values()), n = [];
|
|
281
|
+
return t.optionValues.forEach((r) => {
|
|
282
|
+
const V = l.findIndex((N) => N.value === r);
|
|
283
|
+
V > -1 && n.push(l[V]);
|
|
284
|
+
}), n.length >= l.length ? n : l;
|
|
285
|
+
}), $l = u(() => Array.from(t.cachedOptions.values())), Ll = u(() => {
|
|
286
|
+
const l = D.value.filter((n) => !n.created).some((n) => n.currentLabel === t.inputValue);
|
|
287
|
+
return e.filterable && e.allowCreate && t.inputValue !== "" && !l;
|
|
291
288
|
}), je = () => {
|
|
292
|
-
e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((
|
|
289
|
+
e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((l) => {
|
|
293
290
|
var n;
|
|
294
|
-
(n =
|
|
291
|
+
(n = l.updateOption) == null || n.call(l, t.inputValue);
|
|
295
292
|
});
|
|
296
|
-
}, qe =
|
|
293
|
+
}, qe = Wt(), Nl = u(() => ["small"].includes(qe.value) ? "small" : "default"), Qe = u({
|
|
297
294
|
get() {
|
|
298
|
-
return c.value && !
|
|
295
|
+
return c.value && !Ml.value;
|
|
299
296
|
},
|
|
300
|
-
set(
|
|
301
|
-
c.value =
|
|
297
|
+
set(l) {
|
|
298
|
+
c.value = l;
|
|
302
299
|
}
|
|
303
|
-
}),
|
|
300
|
+
}), Bl = u(() => {
|
|
304
301
|
if (e.multiple && !Oe(e.modelValue))
|
|
305
|
-
return X(e.modelValue).length === 0 && !
|
|
306
|
-
const
|
|
307
|
-
return e.filterable || Oe(
|
|
308
|
-
}),
|
|
309
|
-
var
|
|
310
|
-
const n = (
|
|
311
|
-
return e.multiple || !ke.value ? n :
|
|
312
|
-
}),
|
|
313
|
-
G(() => e.modelValue, (
|
|
314
|
-
e.multiple && e.filterable && !e.reserveKeyword && (
|
|
302
|
+
return X(e.modelValue).length === 0 && !t.inputValue;
|
|
303
|
+
const l = j(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
304
|
+
return e.filterable || Oe(l) ? !t.inputValue : !0;
|
|
305
|
+
}), Pl = u(() => {
|
|
306
|
+
var l;
|
|
307
|
+
const n = (l = e.placeholder) != null ? l : a("el.select.placeholder");
|
|
308
|
+
return e.multiple || !ke.value ? n : t.selectedLabel;
|
|
309
|
+
}), Wl = u(() => ul ? null : "mouseenter");
|
|
310
|
+
G(() => e.modelValue, (l, n) => {
|
|
311
|
+
e.multiple && e.filterable && !e.reserveKeyword && (t.inputValue = "", fe("")), ve(), !te(l, n) && e.validateEvent && (B == null || B.validate("change").catch((r) => sl()));
|
|
315
312
|
}, {
|
|
316
313
|
flush: "post",
|
|
317
314
|
deep: !0
|
|
318
|
-
}), G(() => c.value, (
|
|
319
|
-
|
|
320
|
-
}), G(() =>
|
|
321
|
-
|
|
315
|
+
}), G(() => c.value, (l) => {
|
|
316
|
+
l ? fe(t.inputValue) : (t.inputValue = "", t.previousQuery = null, t.isBeforeHide = !0), o("visible-change", l);
|
|
317
|
+
}), G(() => t.options.entries(), () => {
|
|
318
|
+
wt && (ve(), e.defaultFirstOption && (e.filterable || e.remote) && oe.value && Xe());
|
|
322
319
|
}, {
|
|
323
320
|
flush: "post"
|
|
324
|
-
}), G([() =>
|
|
325
|
-
|
|
321
|
+
}), G([() => t.hoveringIndex, D], ([l]) => {
|
|
322
|
+
Et(l) && l > -1 ? E.value = D.value[l] || {} : E.value = {}, D.value.forEach((n) => {
|
|
326
323
|
n.hover = E.value === n;
|
|
327
324
|
});
|
|
328
|
-
}),
|
|
329
|
-
|
|
325
|
+
}), ut(() => {
|
|
326
|
+
t.isBeforeHide || je();
|
|
330
327
|
});
|
|
331
|
-
const fe = (
|
|
332
|
-
|
|
328
|
+
const fe = (l) => {
|
|
329
|
+
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));
|
|
333
330
|
}, Xe = () => {
|
|
334
|
-
const
|
|
335
|
-
|
|
331
|
+
const l = D.value.filter((N) => N.visible && !N.disabled && !N.states.groupDisabled), n = l.find((N) => N.created), r = l[0], V = D.value.map((N) => N.value);
|
|
332
|
+
t.hoveringIndex = ll(V, n || r);
|
|
336
333
|
}, ve = () => {
|
|
337
334
|
if (e.multiple)
|
|
338
|
-
|
|
335
|
+
t.selectedLabel = "";
|
|
339
336
|
else {
|
|
340
337
|
const n = j(e.modelValue) ? e.modelValue[0] : e.modelValue, r = Me(n);
|
|
341
|
-
|
|
338
|
+
t.selectedLabel = r.currentLabel, t.selected = [r];
|
|
342
339
|
return;
|
|
343
340
|
}
|
|
344
|
-
const
|
|
341
|
+
const l = [];
|
|
345
342
|
Oe(e.modelValue) || X(e.modelValue).forEach((n) => {
|
|
346
|
-
|
|
347
|
-
}),
|
|
348
|
-
}, Me = (
|
|
343
|
+
l.push(Me(n));
|
|
344
|
+
}), t.selected = l;
|
|
345
|
+
}, Me = (l) => {
|
|
349
346
|
let n;
|
|
350
|
-
const r =
|
|
351
|
-
for (let
|
|
352
|
-
const K = $
|
|
353
|
-
if (r ? z(K.value, e.valueKey) === z(
|
|
347
|
+
const r = Vt(l);
|
|
348
|
+
for (let le = t.cachedOptions.size - 1; le >= 0; le--) {
|
|
349
|
+
const K = $l.value[le];
|
|
350
|
+
if (r ? z(K.value, e.valueKey) === z(l, e.valueKey) : K.value === l) {
|
|
354
351
|
n = {
|
|
355
352
|
index: D.value.filter((J) => !J.created).indexOf(K),
|
|
356
|
-
value:
|
|
353
|
+
value: l,
|
|
357
354
|
currentLabel: K.currentLabel,
|
|
358
355
|
get isDisabled() {
|
|
359
356
|
return K.isDisabled;
|
|
@@ -364,100 +361,100 @@ const fn = (e, o) => {
|
|
|
364
361
|
}
|
|
365
362
|
if (n)
|
|
366
363
|
return n;
|
|
367
|
-
const V = r ?
|
|
364
|
+
const V = r ? l.label : l ?? "";
|
|
368
365
|
return {
|
|
369
366
|
index: -1,
|
|
370
|
-
value:
|
|
367
|
+
value: l,
|
|
371
368
|
currentLabel: V
|
|
372
369
|
};
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
|
|
370
|
+
}, Fl = () => {
|
|
371
|
+
t.hoveringIndex = D.value.findIndex((l) => t.selected.some((n) => he(n) === he(l)));
|
|
372
|
+
}, zl = () => {
|
|
373
|
+
t.selectionWidth = Number.parseFloat(window.getComputedStyle(h.value).width);
|
|
374
|
+
}, Al = () => {
|
|
375
|
+
t.collapseItemWidth = R.value.getBoundingClientRect().width;
|
|
379
376
|
}, Re = () => {
|
|
380
|
-
var
|
|
381
|
-
(n = (
|
|
377
|
+
var l, n;
|
|
378
|
+
(n = (l = S.value) == null ? void 0 : l.updatePopper) == null || n.call(l);
|
|
382
379
|
}, Ye = () => {
|
|
383
|
-
var
|
|
384
|
-
(n = (
|
|
380
|
+
var l, n;
|
|
381
|
+
(n = (l = y.value) == null ? void 0 : l.updatePopper) == null || n.call(l);
|
|
385
382
|
}, Ze = () => {
|
|
386
|
-
|
|
387
|
-
}, Je = (
|
|
388
|
-
if (
|
|
383
|
+
t.inputValue.length > 0 && !c.value && (c.value = !0), fe(t.inputValue);
|
|
384
|
+
}, Je = (l) => {
|
|
385
|
+
if (t.inputValue = l.target.value, e.remote)
|
|
389
386
|
_e();
|
|
390
387
|
else
|
|
391
388
|
return Ze();
|
|
392
|
-
}, _e =
|
|
389
|
+
}, _e = Ut(() => {
|
|
393
390
|
Ze();
|
|
394
|
-
},
|
|
395
|
-
|
|
396
|
-
},
|
|
397
|
-
const r =
|
|
391
|
+
}, Dl.value), ae = (l) => {
|
|
392
|
+
te(e.modelValue, l) || o(Fe, l);
|
|
393
|
+
}, Kl = (l) => en(l, (n) => {
|
|
394
|
+
const r = t.cachedOptions.get(n);
|
|
398
395
|
return r && !r.disabled && !r.states.groupDisabled;
|
|
399
|
-
}),
|
|
400
|
-
if (e.multiple &&
|
|
401
|
-
const n = X(e.modelValue).slice(), r =
|
|
396
|
+
}), Hl = (l) => {
|
|
397
|
+
if (e.multiple && l.code !== bt.delete && l.target.value.length <= 0) {
|
|
398
|
+
const n = X(e.modelValue).slice(), r = Kl(n);
|
|
402
399
|
if (r < 0)
|
|
403
400
|
return;
|
|
404
401
|
const V = n[r];
|
|
405
402
|
n.splice(r, 1), o(x, n), ae(n), o("remove-tag", V);
|
|
406
403
|
}
|
|
407
|
-
},
|
|
408
|
-
const r =
|
|
404
|
+
}, Gl = (l, n) => {
|
|
405
|
+
const r = t.selected.indexOf(n);
|
|
409
406
|
if (r > -1 && !ne.value) {
|
|
410
407
|
const V = X(e.modelValue).slice();
|
|
411
408
|
V.splice(r, 1), o(x, V), ae(V), o("remove-tag", n.value);
|
|
412
409
|
}
|
|
413
|
-
|
|
414
|
-
}, xe = (
|
|
415
|
-
|
|
410
|
+
l.stopPropagation(), be();
|
|
411
|
+
}, xe = (l) => {
|
|
412
|
+
l.stopPropagation();
|
|
416
413
|
const n = e.multiple ? [] : Ke.value;
|
|
417
414
|
if (e.multiple)
|
|
418
|
-
for (const r of
|
|
415
|
+
for (const r of t.selected)
|
|
419
416
|
r.isDisabled && n.push(r.value);
|
|
420
|
-
o(x, n), ae(n),
|
|
421
|
-
},
|
|
417
|
+
o(x, n), ae(n), t.hoveringIndex = -1, c.value = !1, o("clear"), be();
|
|
418
|
+
}, el = (l) => {
|
|
422
419
|
var n;
|
|
423
420
|
if (e.multiple) {
|
|
424
|
-
const r = X((n = e.modelValue) != null ? n : []).slice(), V =
|
|
425
|
-
V > -1 ? r.splice(V, 1) : (e.multipleLimit <= 0 || r.length < e.multipleLimit) && r.push(
|
|
421
|
+
const r = X((n = e.modelValue) != null ? n : []).slice(), V = ll(r, l);
|
|
422
|
+
V > -1 ? r.splice(V, 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 = "");
|
|
426
423
|
} else
|
|
427
|
-
!
|
|
424
|
+
!te(e.modelValue, l.value) && o(x, l.value), ae(l.value), c.value = !1;
|
|
428
425
|
be(), !c.value && Q(() => {
|
|
429
|
-
me(
|
|
426
|
+
me(l);
|
|
430
427
|
});
|
|
431
|
-
},
|
|
432
|
-
var n, r, V, N,
|
|
433
|
-
const K = j(
|
|
428
|
+
}, 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) => {
|
|
429
|
+
var n, r, V, N, le;
|
|
430
|
+
const K = j(l) ? l[0] : l;
|
|
434
431
|
let ye = null;
|
|
435
432
|
if (K != null && K.value) {
|
|
436
|
-
const J = D.value.filter((
|
|
433
|
+
const J = D.value.filter((st) => st.value === K.value);
|
|
437
434
|
J.length > 0 && (ye = J[0].$el);
|
|
438
435
|
}
|
|
439
436
|
if (S.value && ye) {
|
|
440
437
|
const J = (N = (V = (r = (n = S.value) == null ? void 0 : n.popperRef) == null ? void 0 : r.contentRef) == null ? void 0 : V.querySelector) == null ? void 0 : N.call(V, `.${d.be("dropdown", "wrap")}`);
|
|
441
|
-
J &&
|
|
438
|
+
J && Ht(J, ye);
|
|
442
439
|
}
|
|
443
|
-
(
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
var
|
|
450
|
-
return (n = (
|
|
451
|
-
}),
|
|
452
|
-
|
|
453
|
-
var
|
|
454
|
-
(
|
|
440
|
+
(le = g.value) == null || le.handleScroll();
|
|
441
|
+
}, Ul = (l) => {
|
|
442
|
+
t.options.set(l.value, l), t.cachedOptions.set(l.value, l);
|
|
443
|
+
}, jl = (l, n) => {
|
|
444
|
+
t.options.get(l) === n && t.options.delete(l);
|
|
445
|
+
}, ql = u(() => {
|
|
446
|
+
var l, n;
|
|
447
|
+
return (n = (l = S.value) == null ? void 0 : l.popperRef) == null ? void 0 : n.contentRef;
|
|
448
|
+
}), Ql = () => {
|
|
449
|
+
t.isBeforeHide = !1, Q(() => {
|
|
450
|
+
var l;
|
|
451
|
+
(l = g.value) == null || l.update(), me(t.selected);
|
|
455
452
|
});
|
|
456
453
|
}, be = () => {
|
|
457
|
-
var
|
|
458
|
-
(
|
|
459
|
-
},
|
|
460
|
-
var
|
|
454
|
+
var l;
|
|
455
|
+
(l = m.value) == null || l.focus();
|
|
456
|
+
}, Xl = () => {
|
|
457
|
+
var l;
|
|
461
458
|
if (c.value) {
|
|
462
459
|
c.value = !1, Q(() => {
|
|
463
460
|
var n;
|
|
@@ -465,50 +462,50 @@ const fn = (e, o) => {
|
|
|
465
462
|
});
|
|
466
463
|
return;
|
|
467
464
|
}
|
|
468
|
-
(
|
|
469
|
-
},
|
|
470
|
-
xe(
|
|
471
|
-
},
|
|
465
|
+
(l = m.value) == null || l.blur();
|
|
466
|
+
}, Yl = (l) => {
|
|
467
|
+
xe(l);
|
|
468
|
+
}, Zl = (l) => {
|
|
472
469
|
if (c.value = !1, Te.value) {
|
|
473
|
-
const n = new FocusEvent("blur",
|
|
474
|
-
Q(() =>
|
|
470
|
+
const n = new FocusEvent("blur", l);
|
|
471
|
+
Q(() => El(n));
|
|
475
472
|
}
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
ne.value || (
|
|
480
|
-
},
|
|
473
|
+
}, Jl = () => {
|
|
474
|
+
t.inputValue.length > 0 ? t.inputValue = "" : c.value = !1;
|
|
475
|
+
}, tl = () => {
|
|
476
|
+
ne.value || (ul && (t.inputHovering = !0), t.menuVisibleOnFocus ? t.menuVisibleOnFocus = !1 : c.value = !c.value);
|
|
477
|
+
}, _l = () => {
|
|
481
478
|
if (!c.value)
|
|
482
|
-
|
|
479
|
+
tl();
|
|
483
480
|
else {
|
|
484
|
-
const
|
|
485
|
-
|
|
481
|
+
const l = D.value[t.hoveringIndex];
|
|
482
|
+
l && !l.isDisabled && el(l);
|
|
486
483
|
}
|
|
487
|
-
}, he = (
|
|
484
|
+
}, 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) => {
|
|
488
485
|
if (!c.value) {
|
|
489
486
|
c.value = !0;
|
|
490
487
|
return;
|
|
491
488
|
}
|
|
492
|
-
if (!(
|
|
493
|
-
|
|
494
|
-
const n = D.value[
|
|
495
|
-
(n.isDisabled || !n.visible) &&
|
|
489
|
+
if (!(t.options.size === 0 || oe.value === 0 || He.value) && !xl.value) {
|
|
490
|
+
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));
|
|
491
|
+
const n = D.value[t.hoveringIndex];
|
|
492
|
+
(n.isDisabled || !n.visible) && nl(l), Q(() => me(E.value));
|
|
496
493
|
}
|
|
497
|
-
},
|
|
494
|
+
}, tt = () => {
|
|
498
495
|
if (!h.value)
|
|
499
496
|
return 0;
|
|
500
|
-
const
|
|
501
|
-
return Number.parseFloat(
|
|
502
|
-
},
|
|
503
|
-
const
|
|
504
|
-
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ?
|
|
505
|
-
}),
|
|
506
|
-
o("popup-scroll",
|
|
497
|
+
const l = window.getComputedStyle(h.value);
|
|
498
|
+
return Number.parseFloat(l.gap || "6px");
|
|
499
|
+
}, nt = u(() => {
|
|
500
|
+
const l = tt(), n = e.filterable ? l + gl : 0;
|
|
501
|
+
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ? t.selectionWidth - t.collapseItemWidth - l - n : t.selectionWidth - n}px` };
|
|
502
|
+
}), ot = u(() => ({ maxWidth: `${t.selectionWidth}px` })), at = (l) => {
|
|
503
|
+
o("popup-scroll", l);
|
|
507
504
|
};
|
|
508
|
-
ee(h,
|
|
505
|
+
ee(h, zl), ee(Ge, Re), ee(I, Ye), ee(R, Al);
|
|
509
506
|
let ge;
|
|
510
|
-
return G(() => Qe.value, (
|
|
511
|
-
|
|
507
|
+
return G(() => Qe.value, (l) => {
|
|
508
|
+
l ? ge = ee(O, Re).stop : (ge == null || ge(), ge = void 0);
|
|
512
509
|
}), We(() => {
|
|
513
510
|
ve();
|
|
514
511
|
}), {
|
|
@@ -516,7 +513,7 @@ const fn = (e, o) => {
|
|
|
516
513
|
contentId: f,
|
|
517
514
|
nsSelect: d,
|
|
518
515
|
nsInput: p,
|
|
519
|
-
states:
|
|
516
|
+
states: t,
|
|
520
517
|
isFocused: Te,
|
|
521
518
|
expanded: c,
|
|
522
519
|
optionsArray: D,
|
|
@@ -527,50 +524,50 @@ const fn = (e, o) => {
|
|
|
527
524
|
updateTagTooltip: Ye,
|
|
528
525
|
debouncedOnInputChange: _e,
|
|
529
526
|
onInput: Je,
|
|
530
|
-
deletePrevTag:
|
|
531
|
-
deleteTag:
|
|
527
|
+
deletePrevTag: Hl,
|
|
528
|
+
deleteTag: Gl,
|
|
532
529
|
deleteSelected: xe,
|
|
533
|
-
handleOptionSelect:
|
|
530
|
+
handleOptionSelect: el,
|
|
534
531
|
scrollToOption: me,
|
|
535
532
|
hasModelValue: ke,
|
|
536
|
-
shouldShowPlaceholder:
|
|
537
|
-
currentPlaceholder:
|
|
538
|
-
mouseEnterEventName:
|
|
539
|
-
needStatusIcon:
|
|
540
|
-
showClearBtn:
|
|
533
|
+
shouldShowPlaceholder: Bl,
|
|
534
|
+
currentPlaceholder: Pl,
|
|
535
|
+
mouseEnterEventName: Wl,
|
|
536
|
+
needStatusIcon: Vl,
|
|
537
|
+
showClearBtn: Il,
|
|
541
538
|
iconComponent: Ue,
|
|
542
|
-
iconReverse:
|
|
539
|
+
iconReverse: Tl,
|
|
543
540
|
validateState: De,
|
|
544
|
-
validateIcon:
|
|
545
|
-
showNewOption:
|
|
541
|
+
validateIcon: kl,
|
|
542
|
+
showNewOption: Ll,
|
|
546
543
|
updateOptions: je,
|
|
547
|
-
collapseTagSize:
|
|
544
|
+
collapseTagSize: Nl,
|
|
548
545
|
setSelected: ve,
|
|
549
546
|
selectDisabled: ne,
|
|
550
|
-
emptyText:
|
|
551
|
-
handleCompositionStart:
|
|
552
|
-
handleCompositionUpdate:
|
|
553
|
-
handleCompositionEnd:
|
|
554
|
-
onOptionCreate:
|
|
555
|
-
onOptionDestroy:
|
|
556
|
-
handleMenuEnter:
|
|
547
|
+
emptyText: Rl,
|
|
548
|
+
handleCompositionStart: Ol,
|
|
549
|
+
handleCompositionUpdate: Cl,
|
|
550
|
+
handleCompositionEnd: wl,
|
|
551
|
+
onOptionCreate: Ul,
|
|
552
|
+
onOptionDestroy: jl,
|
|
553
|
+
handleMenuEnter: Ql,
|
|
557
554
|
focus: be,
|
|
558
|
-
blur:
|
|
559
|
-
handleClearClick:
|
|
560
|
-
handleClickOutside:
|
|
561
|
-
handleEsc:
|
|
562
|
-
toggleMenu:
|
|
563
|
-
selectOption:
|
|
555
|
+
blur: Xl,
|
|
556
|
+
handleClearClick: Yl,
|
|
557
|
+
handleClickOutside: Zl,
|
|
558
|
+
handleEsc: Jl,
|
|
559
|
+
toggleMenu: tl,
|
|
560
|
+
selectOption: _l,
|
|
564
561
|
getValueKey: he,
|
|
565
|
-
navigateOptions:
|
|
562
|
+
navigateOptions: nl,
|
|
566
563
|
dropdownMenuVisible: Qe,
|
|
567
|
-
showTagList:
|
|
568
|
-
collapseTagList:
|
|
569
|
-
popupScroll:
|
|
564
|
+
showTagList: et,
|
|
565
|
+
collapseTagList: lt,
|
|
566
|
+
popupScroll: at,
|
|
570
567
|
getOption: Me,
|
|
571
|
-
tagStyle:
|
|
572
|
-
collapseTagStyle:
|
|
573
|
-
popperRef:
|
|
568
|
+
tagStyle: nt,
|
|
569
|
+
collapseTagStyle: ot,
|
|
570
|
+
popperRef: ql,
|
|
574
571
|
inputRef: m,
|
|
575
572
|
tooltipRef: S,
|
|
576
573
|
tagTooltipRef: y,
|
|
@@ -592,19 +589,19 @@ var vn = pe({
|
|
|
592
589
|
let f = [];
|
|
593
590
|
return () => {
|
|
594
591
|
var d, p;
|
|
595
|
-
const
|
|
592
|
+
const t = (d = o.default) == null ? void 0 : d.call(o), C = [];
|
|
596
593
|
function h(S) {
|
|
597
594
|
j(S) && S.forEach((y) => {
|
|
598
595
|
var m, s, i, O;
|
|
599
596
|
const I = (m = (y == null ? void 0 : y.type) || {}) == null ? void 0 : m.name;
|
|
600
|
-
I === "ElOptionGroup" ? h(!
|
|
597
|
+
I === "ElOptionGroup" ? h(!It(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);
|
|
601
598
|
});
|
|
602
599
|
}
|
|
603
|
-
return
|
|
600
|
+
return t.length && h((p = t[0]) == null ? void 0 : p.children), te(C, f) || (f = C, a && (a.states.optionValues = C)), t;
|
|
604
601
|
};
|
|
605
602
|
}
|
|
606
603
|
});
|
|
607
|
-
const mn =
|
|
604
|
+
const mn = ml({
|
|
608
605
|
name: String,
|
|
609
606
|
id: String,
|
|
610
607
|
modelValue: {
|
|
@@ -622,7 +619,7 @@ const mn = mt({
|
|
|
622
619
|
default: "off"
|
|
623
620
|
},
|
|
624
621
|
automaticDropdown: Boolean,
|
|
625
|
-
size:
|
|
622
|
+
size: Ft,
|
|
626
623
|
effect: {
|
|
627
624
|
type: W(String),
|
|
628
625
|
default: "light"
|
|
@@ -676,22 +673,22 @@ const mn = mt({
|
|
|
676
673
|
type: Number,
|
|
677
674
|
default: 1
|
|
678
675
|
},
|
|
679
|
-
teleported:
|
|
676
|
+
teleported: il.teleported,
|
|
680
677
|
persistent: {
|
|
681
678
|
type: Boolean,
|
|
682
679
|
default: !0
|
|
683
680
|
},
|
|
684
681
|
clearIcon: {
|
|
685
|
-
type:
|
|
686
|
-
default:
|
|
682
|
+
type: dl,
|
|
683
|
+
default: Tt
|
|
687
684
|
},
|
|
688
685
|
fitInputWidth: Boolean,
|
|
689
686
|
suffixIcon: {
|
|
690
|
-
type:
|
|
691
|
-
default:
|
|
687
|
+
type: dl,
|
|
688
|
+
default: kt
|
|
692
689
|
},
|
|
693
|
-
tagType: { ...
|
|
694
|
-
tagEffect: { ...
|
|
690
|
+
tagType: { ...rl.type, default: "info" },
|
|
691
|
+
tagEffect: { ...rl.effect, default: "light" },
|
|
695
692
|
validateEvent: {
|
|
696
693
|
type: Boolean,
|
|
697
694
|
default: !0
|
|
@@ -707,7 +704,7 @@ const mn = mt({
|
|
|
707
704
|
},
|
|
708
705
|
placement: {
|
|
709
706
|
type: W(String),
|
|
710
|
-
values:
|
|
707
|
+
values: ht,
|
|
711
708
|
default: "bottom-start"
|
|
712
709
|
},
|
|
713
710
|
fallbackPlacements: {
|
|
@@ -718,18 +715,18 @@ const mn = mt({
|
|
|
718
715
|
type: [String, Number],
|
|
719
716
|
default: 0
|
|
720
717
|
},
|
|
721
|
-
appendTo:
|
|
718
|
+
appendTo: il.appendTo,
|
|
722
719
|
options: {
|
|
723
720
|
type: W(Array)
|
|
724
721
|
},
|
|
725
722
|
props: {
|
|
726
723
|
type: W(Object),
|
|
727
|
-
default: () =>
|
|
724
|
+
default: () => yl
|
|
728
725
|
},
|
|
729
|
-
...
|
|
730
|
-
...
|
|
726
|
+
...Lt,
|
|
727
|
+
...gt(["ariaLabel"])
|
|
731
728
|
});
|
|
732
|
-
x + "", Fe + "",
|
|
729
|
+
x + "", Fe + "", St.scroll;
|
|
733
730
|
const bn = pe({
|
|
734
731
|
name: "ElOptionGroup",
|
|
735
732
|
componentName: "ElOptionGroup",
|
|
@@ -739,24 +736,24 @@ const bn = pe({
|
|
|
739
736
|
},
|
|
740
737
|
setup(e) {
|
|
741
738
|
const o = ce("select"), a = T(), f = Ee(), d = T([]);
|
|
742
|
-
|
|
739
|
+
vl(Sl, de({
|
|
743
740
|
...Be(e)
|
|
744
741
|
}));
|
|
745
|
-
const p = u(() => d.value.some((S) => S.visible === !0)),
|
|
742
|
+
const p = u(() => d.value.some((S) => S.visible === !0)), t = (S) => {
|
|
746
743
|
var y;
|
|
747
744
|
return S.type.name === "ElOption" && !!((y = S.component) != null && y.proxy);
|
|
748
745
|
}, C = (S) => {
|
|
749
746
|
const y = X(S), m = [];
|
|
750
747
|
return y.forEach((s) => {
|
|
751
748
|
var i;
|
|
752
|
-
|
|
749
|
+
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)));
|
|
753
750
|
}), m;
|
|
754
751
|
}, h = () => {
|
|
755
752
|
d.value = C(f.subTree);
|
|
756
753
|
};
|
|
757
754
|
return We(() => {
|
|
758
755
|
h();
|
|
759
|
-
}),
|
|
756
|
+
}), zt(a, h, {
|
|
760
757
|
attributes: !0,
|
|
761
758
|
subtree: !0,
|
|
762
759
|
childList: !0
|
|
@@ -787,20 +784,20 @@ function hn(e, o, a, f, d, p) {
|
|
|
787
784
|
]);
|
|
788
785
|
}
|
|
789
786
|
var Ae = /* @__PURE__ */ Ve(bn, [["render", hn], ["__file", "option-group.vue"]]);
|
|
790
|
-
const
|
|
791
|
-
name:
|
|
792
|
-
componentName:
|
|
787
|
+
const pl = "ElSelect", gn = pe({
|
|
788
|
+
name: pl,
|
|
789
|
+
componentName: pl,
|
|
793
790
|
components: {
|
|
794
791
|
ElSelectMenu: pn,
|
|
795
792
|
ElOption: ze,
|
|
796
793
|
ElOptions: vn,
|
|
797
794
|
ElOptionGroup: Ae,
|
|
798
|
-
ElTag:
|
|
799
|
-
ElScrollbar:
|
|
800
|
-
ElTooltip:
|
|
801
|
-
ElIcon:
|
|
795
|
+
ElTag: Ct,
|
|
796
|
+
ElScrollbar: Ot,
|
|
797
|
+
ElTooltip: yt,
|
|
798
|
+
ElIcon: Dt
|
|
802
799
|
},
|
|
803
|
-
directives: { ClickOutside:
|
|
800
|
+
directives: { ClickOutside: qt },
|
|
804
801
|
props: mn,
|
|
805
802
|
emits: [
|
|
806
803
|
x,
|
|
@@ -823,23 +820,23 @@ const pt = "ElSelect", gn = pe({
|
|
|
823
820
|
}), p = de({
|
|
824
821
|
...Be(e),
|
|
825
822
|
modelValue: d
|
|
826
|
-
}),
|
|
823
|
+
}), t = fn(p, o), { calculatorRef: C, inputStyle: h } = tn(), { getLabel: S, getValue: y, getOptions: m, getDisabled: s } = nn(e), i = (g) => ({
|
|
827
824
|
label: S(g),
|
|
828
825
|
value: y(g),
|
|
829
826
|
disabled: s(g)
|
|
830
827
|
}), O = (g) => g.reduce((c, E) => (c.push(E), E.children && E.children.length > 0 && c.push(...O(E.children)), c), []), I = (g) => {
|
|
831
|
-
|
|
828
|
+
Qt(g || []).forEach((E) => {
|
|
832
829
|
var Y;
|
|
833
830
|
if (U(E) && (E.type.name === "ElOption" || E.type.name === "ElTree")) {
|
|
834
831
|
const B = E.type.name;
|
|
835
832
|
if (B === "ElTree") {
|
|
836
833
|
const A = ((Y = E.props) == null ? void 0 : Y.data) || [];
|
|
837
834
|
O(A).forEach((Z) => {
|
|
838
|
-
Z.currentLabel = Z.label || (U(Z.value) ? "" : Z.value),
|
|
835
|
+
Z.currentLabel = Z.label || (U(Z.value) ? "" : Z.value), t.onOptionCreate(Z);
|
|
839
836
|
});
|
|
840
837
|
} else if (B === "ElOption") {
|
|
841
838
|
const A = { ...E.props };
|
|
842
|
-
A.currentLabel = A.label || (U(A.value) ? "" : A.value),
|
|
839
|
+
A.currentLabel = A.label || (U(A.value) ? "" : A.value), t.onOptionCreate(A);
|
|
843
840
|
}
|
|
844
841
|
}
|
|
845
842
|
});
|
|
@@ -851,21 +848,21 @@ const pt = "ElSelect", gn = pe({
|
|
|
851
848
|
e.persistent || I(g);
|
|
852
849
|
}, {
|
|
853
850
|
immediate: !0
|
|
854
|
-
}),
|
|
851
|
+
}), vl(Ie, de({
|
|
855
852
|
props: p,
|
|
856
|
-
states:
|
|
857
|
-
selectRef:
|
|
858
|
-
optionsArray:
|
|
859
|
-
setSelected:
|
|
860
|
-
handleOptionSelect:
|
|
861
|
-
onOptionCreate:
|
|
862
|
-
onOptionDestroy:
|
|
853
|
+
states: t.states,
|
|
854
|
+
selectRef: t.selectRef,
|
|
855
|
+
optionsArray: t.optionsArray,
|
|
856
|
+
setSelected: t.setSelected,
|
|
857
|
+
handleOptionSelect: t.handleOptionSelect,
|
|
858
|
+
onOptionCreate: t.onOptionCreate,
|
|
859
|
+
onOptionDestroy: t.onOptionDestroy
|
|
863
860
|
}));
|
|
864
|
-
const R = u(() => e.multiple ?
|
|
865
|
-
return
|
|
861
|
+
const R = u(() => e.multiple ? t.states.selected.map((g) => g.currentLabel) : t.states.selectedLabel);
|
|
862
|
+
return fl(() => {
|
|
866
863
|
f.appContext.config.warnHandler = void 0;
|
|
867
864
|
}), {
|
|
868
|
-
...
|
|
865
|
+
...t,
|
|
869
866
|
modelValue: d,
|
|
870
867
|
selectedLabel: R,
|
|
871
868
|
calculatorRef: C,
|
|
@@ -879,11 +876,11 @@ const pt = "ElSelect", gn = pe({
|
|
|
879
876
|
}
|
|
880
877
|
});
|
|
881
878
|
function yn(e, o) {
|
|
882
|
-
const a = q("el-tag"), f = q("el-tooltip"), d = q("el-icon"), p = q("el-option"),
|
|
879
|
+
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");
|
|
883
880
|
return ue((v(), w("div", {
|
|
884
881
|
ref: "selectRef",
|
|
885
882
|
class: b([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
|
|
886
|
-
[
|
|
883
|
+
[pt(e.mouseEnterEventName)]: (m) => e.states.inputHovering = !0,
|
|
887
884
|
onMouseleave: (m) => e.states.inputHovering = !1
|
|
888
885
|
}, [
|
|
889
886
|
_(f, {
|
|
@@ -964,7 +961,7 @@ function yn(e, o) {
|
|
|
964
961
|
label: s.currentLabel,
|
|
965
962
|
value: s.value
|
|
966
963
|
}, () => [
|
|
967
|
-
|
|
964
|
+
ol(H(s.currentLabel), 1)
|
|
968
965
|
])
|
|
969
966
|
], 2)
|
|
970
967
|
]),
|
|
@@ -1031,7 +1028,7 @@ function yn(e, o) {
|
|
|
1031
1028
|
label: s.currentLabel,
|
|
1032
1029
|
value: s.value
|
|
1033
1030
|
}, () => [
|
|
1034
|
-
|
|
1031
|
+
ol(H(s.currentLabel), 1)
|
|
1035
1032
|
])
|
|
1036
1033
|
], 2)
|
|
1037
1034
|
]),
|
|
@@ -1083,7 +1080,7 @@ function yn(e, o) {
|
|
|
1083
1080
|
onInput: e.onInput,
|
|
1084
1081
|
onClick: F(e.toggleMenu, ["stop"])
|
|
1085
1082
|
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
|
1086
|
-
[
|
|
1083
|
+
[ft, e.states.inputValue]
|
|
1087
1084
|
]),
|
|
1088
1085
|
e.filterable ? (v(), w("span", {
|
|
1089
1086
|
key: 0,
|
|
@@ -1190,18 +1187,18 @@ function yn(e, o) {
|
|
|
1190
1187
|
(v(!0), w(se, null, Se(e.options, (m, s) => {
|
|
1191
1188
|
var i;
|
|
1192
1189
|
return v(), w(se, { key: s }, [
|
|
1193
|
-
(i = e.getOptions(m)) != null && i.length ? (v(), P(
|
|
1190
|
+
(i = e.getOptions(m)) != null && i.length ? (v(), P(t, {
|
|
1194
1191
|
key: 0,
|
|
1195
1192
|
label: e.getLabel(m),
|
|
1196
1193
|
disabled: e.getDisabled(m)
|
|
1197
1194
|
}, {
|
|
1198
1195
|
default: $(() => [
|
|
1199
|
-
(v(!0), w(se, null, Se(e.getOptions(m), (O) => (v(), P(p,
|
|
1196
|
+
(v(!0), w(se, null, Se(e.getOptions(m), (O) => (v(), P(p, al({
|
|
1200
1197
|
key: e.getValue(O)
|
|
1201
1198
|
}, e.getOptionProps(O)), null, 16))), 128))
|
|
1202
1199
|
]),
|
|
1203
1200
|
_: 2
|
|
1204
|
-
}, 1032, ["label", "disabled"])) : (v(), P(p,
|
|
1201
|
+
}, 1032, ["label", "disabled"])) : (v(), P(p, vt(al({ key: 1 }, e.getOptionProps(m))), null, 16))
|
|
1205
1202
|
], 64);
|
|
1206
1203
|
}), 128))
|
|
1207
1204
|
])
|
|
@@ -1245,12 +1242,12 @@ function yn(e, o) {
|
|
|
1245
1242
|
]);
|
|
1246
1243
|
}
|
|
1247
1244
|
var Sn = /* @__PURE__ */ Ve(gn, [["render", yn], ["__file", "select.vue"]]);
|
|
1248
|
-
const
|
|
1245
|
+
const Nn = Mt(Sn, {
|
|
1249
1246
|
Option: ze,
|
|
1250
1247
|
OptionGroup: Ae
|
|
1251
|
-
}),
|
|
1252
|
-
|
|
1248
|
+
}), Bn = bl(ze);
|
|
1249
|
+
bl(Ae);
|
|
1253
1250
|
export {
|
|
1254
|
-
|
|
1255
|
-
|
|
1251
|
+
Bn as E,
|
|
1252
|
+
Nn as a
|
|
1256
1253
|
};
|