st-comp 0.0.196 → 0.0.198
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/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +21 -21
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +42 -39
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +68 -65
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +20 -17
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +29 -26
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +49 -46
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +19 -16
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +22 -19
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +45 -42
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +52 -49
- package/es/User.cjs +1 -1
- package/es/User.js +646 -491
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +27 -24
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +18 -16
- package/es/VarietySearch.cjs +11 -11
- package/es/VarietySearch.js +708 -705
- package/es/VarietyTextCopy.cjs +5 -0
- package/es/VarietyTextCopy.js +89 -0
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +31 -29
- package/es/_initCloneObject-52b6a510.cjs +1 -0
- package/es/{_initCloneObject-64989891.js → _initCloneObject-eaef9418.js} +5 -5
- package/es/{base-62a70f61.js → base-a5af3db3.js} +2 -2
- package/es/castArray-35947698.cjs +1 -0
- package/es/castArray-7741a212.js +10 -0
- package/es/config-provider-a584d81e.cjs +1 -0
- package/es/{config-provider-962c9213.js → config-provider-b16efd62.js} +4 -4
- package/es/{debounce-ccdceb02.js → debounce-8d53f4dd.js} +9 -9
- package/es/dropdown-071c5d7e.cjs +1 -0
- package/es/{dropdown-220099ea.js → dropdown-a59bba73.js} +19 -19
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-a2dd1bb5.js → el-autocomplete-ba808eb6.js} +13 -12
- package/es/{el-button-639a79ee.js → el-button-c95adb85.js} +4 -4
- package/es/el-button-eec58cff.cjs +1 -0
- package/es/{el-dialog-43cb14a3.js → el-dialog-41ab8417.js} +6 -6
- package/es/el-dialog-ae86edb8.cjs +1 -0
- package/es/{el-divider-2f300113.js → el-divider-4e059794.js} +1 -1
- package/es/{el-empty-34086220.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/{el-form-item-5425e443.js → el-form-item-eeb64520.js} +29 -28
- package/es/{el-input-f24248f2.js → el-input-2f75c4ba.js} +5 -5
- package/es/el-input-7fd293af.cjs +1 -0
- package/es/el-input-number-22e21d16.cjs +1 -0
- package/es/{el-input-number-36036e60.js → el-input-number-5193fe6d.js} +6 -6
- package/es/{el-loading-a6dd5081.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-74b350d7.js → el-loading-f6022062.js} +2 -2
- package/es/el-menu-item-17dc717e.cjs +1 -0
- package/es/{el-menu-item-7d04ed7a.js → el-menu-item-7e881203.js} +6 -6
- package/es/el-message-5e6a6be9.cjs +1 -0
- package/es/el-message-box-48d71ee5.cjs +1 -0
- package/es/{el-message-box-1286fd77.js → el-message-box-81ffd21e.js} +11 -11
- package/es/{el-message-4e885359.js → el-message-e544a8f5.js} +27 -27
- package/es/{el-overlay-0310aac7.js → el-overlay-09ad71cd.js} +29 -29
- package/es/el-overlay-9e34965f.cjs +1 -0
- package/es/el-popconfirm-70a976bf.cjs +1 -0
- package/es/{el-popconfirm-6235978c.js → el-popconfirm-81dcd202.js} +11 -11
- package/es/el-popper-b4f97157.js +2094 -0
- package/es/el-popper-b6c99b28.cjs +1 -0
- package/es/el-scrollbar-323542e7.js +34 -0
- package/es/el-scrollbar-bc3f790d.cjs +1 -0
- package/es/{el-segmented-ee920d27.js → el-segmented-b868d074.js} +4 -4
- package/es/el-segmented-f8fce9ac.cjs +1 -0
- package/es/{el-select-bfade57c.js → el-select-95627997.js} +318 -316
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/el-table-column-079b76f5.cjs +14 -0
- package/es/{el-table-column-41685d02.js → el-table-column-72c50d58.js} +38 -36
- package/es/{el-tag-ada32d9e.js → el-tag-66cab138.js} +17 -17
- package/es/{el-tag-defe821c.cjs → el-tag-a33c4b22.cjs} +1 -1
- package/es/index-11547a0c.cjs +1 -0
- package/es/{index-492bd129.js → index-1f7d4f70.js} +2 -2
- package/es/index-298075cf.cjs +1 -0
- package/es/{index-787d3588.js → index-57672682.js} +3 -3
- package/es/index-844bdd85.js +326 -0
- package/es/{index-843be67c.js → index-88546436.js} +10 -10
- package/es/{index-89502796.js → index-960806da.js} +6 -6
- package/es/{index-0a8e1adb.js → index-a871c3eb.js} +1 -1
- package/es/index-c108567d.cjs +1 -0
- package/es/{index-482f09b5.js → index-d77a7336.js} +1 -1
- package/es/{index-6277c792.js → index-d91dc23f.js} +5 -5
- package/es/{index-3e26cc9f.js → index-e5566b94.js} +88 -95
- package/es/index-f3562b52.cjs +1 -0
- package/es/{index-bc26fe71.cjs → index-f967d6c1.cjs} +1 -1
- package/es/{raf-41aed4d4.js → raf-80ef0c0a.js} +1 -1
- package/es/{scroll-7d352c1f.js → scroll-679bd6bf.js} +1 -1
- package/es/style.css +1 -1
- package/es/{el-scrollbar-d8e60ed2.js → use-form-common-props-815d48a6.js} +120 -151
- package/es/use-form-common-props-fd9b61a0.cjs +1 -0
- package/es/use-global-config-30d7d8ce.cjs +1 -0
- package/es/{use-global-config-2704a841.js → use-global-config-b5e9d3d5.js} +16 -16
- package/es/validator-1b8a6128.cjs +1 -0
- package/es/{validator-61a65ac7.js → validator-764a9db0.js} +1 -1
- package/es/{vnode-c51c8aa3.js → vnode-5ddb7ed1.js} +1 -1
- package/es/{zh-cn-6ee4b8df.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-19fbf029.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +162 -158
- package/lib/{index-dac23ed6.js → index-a75ac019.js} +18140 -17918
- package/lib/{python-fdc6b946.js → python-0eadb75b.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/ConfigProvider/index.vue +3 -2
- package/packages/User/components/EditInfoDialog.vue +132 -0
- package/packages/User/index.vue +19 -3
- package/packages/VarietyTextCopy/index.ts +8 -0
- package/packages/VarietyTextCopy/index.vue +136 -0
- package/packages/index.ts +2 -0
- package/src/pages/User/index.vue +2 -2
- package/src/pages/VarietyTextCopy/index.vue +24 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-1136ed17.cjs +0 -1
- package/es/config-provider-c629566a.cjs +0 -1
- package/es/dropdown-28ffc2a0.cjs +0 -1
- package/es/el-autocomplete-01985d09.cjs +0 -1
- package/es/el-button-1cb4ce47.cjs +0 -1
- package/es/el-dialog-10b4cda4.cjs +0 -1
- package/es/el-form-item-6d81753f.cjs +0 -12
- package/es/el-input-ebe964c2.cjs +0 -1
- package/es/el-input-number-e3d58911.cjs +0 -1
- package/es/el-menu-item-9a591f08.cjs +0 -1
- package/es/el-message-3517c44c.cjs +0 -1
- package/es/el-message-box-317e9f09.cjs +0 -1
- package/es/el-overlay-ed457566.cjs +0 -1
- package/es/el-popconfirm-d61782ad.cjs +0 -1
- package/es/el-popper-32eaad7d.cjs +0 -1
- package/es/el-popper-f38ba0a1.js +0 -2412
- package/es/el-scrollbar-2cac7413.cjs +0 -1
- package/es/el-segmented-bf42d915.cjs +0 -1
- package/es/el-select-64816d07.cjs +0 -1
- package/es/el-table-column-00904cbd.cjs +0 -14
- package/es/index-b306360f.cjs +0 -1
- package/es/index-d4910ece.cjs +0 -1
- package/es/index-ecf79ee2.cjs +0 -1
- package/es/use-global-config-878461f3.cjs +0 -1
- package/es/validator-027eff1b.cjs +0 -1
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { shallowRef as il, ref as T, computed as u, inject as we, getCurrentInstance as Ee, toRaw as rl, watch as G, defineComponent as pe, unref as $e, reactive as de, toRefs as Be, onBeforeUnmount as ft, nextTick as Q, withDirectives as ue, openBlock as v, createElementBlock as w, normalizeClass as b, withModifiers as F, renderSlot as M, createElementVNode as k, toDisplayString as H, vShow as Pe, onMounted as We, normalizeStyle as Ce, createCommentVNode as L, watchEffect as ul, provide as vt, isVNode as dl, resolveComponent as q, resolveDirective as cl, toHandlerKey as pl, createVNode as _, withCtx as $, Fragment as se, renderList as Se, createTextVNode as ot, createBlock as P, withKeys as ie, vModelText as fl, resolveDynamicComponent as Le, mergeProps as at, normalizeProps as vl } from "vue";
|
|
2
|
+
import { b as ml, d as st, a as bl, U as x, C as Fe, g as it, m as hl, u as gl, E as yl } from "./el-popper-b4f97157.js";
|
|
3
|
+
import { s as Sl, E as Ol } from "./index-844bdd85.js";
|
|
4
|
+
import { t as rt, E as Cl } from "./index-57672682.js";
|
|
5
|
+
import { w as wl, f as El, E as Vl } from "./index-a871c3eb.js";
|
|
6
|
+
import { g as z, u as Il } from "./index-d77a7336.js";
|
|
7
|
+
import { b as mt, f as U, u as ce, _ as Ve, j, i as Oe, C as ut, s as Tl, p as kl, x as re, D as Dl, c as Ml, e as W, w as Rl, l as bt } from "./base-a5af3db3.js";
|
|
8
|
+
import { c as X } from "./castArray-7741a212.js";
|
|
9
|
+
import { i as le, u as $l, m as Ll } from "./index-e5566b94.js";
|
|
10
|
+
import { u as ht } from "./index-960806da.js";
|
|
11
|
+
import { u as ee, d as Nl, f as Bl, V as Pl, e as Wl, h as Fl, i as dt, w as zl } from "./use-form-common-props-815d48a6.js";
|
|
12
|
+
import { u as Al, a as Kl } from "./index-d91dc23f.js";
|
|
13
|
+
import { s as Hl } from "./scroll-679bd6bf.js";
|
|
14
|
+
import { t as Gl, d as Ul } from "./debounce-8d53f4dd.js";
|
|
15
|
+
import { b as jl, C as ql } from "./el-tag-66cab138.js";
|
|
16
|
+
import { f as Ql } from "./vnode-5ddb7ed1.js";
|
|
17
|
+
var ct = 1 / 0, Xl = 17976931348623157e292;
|
|
18
|
+
function Yl(e) {
|
|
17
19
|
if (!e)
|
|
18
20
|
return e === 0 ? e : 0;
|
|
19
|
-
if (e =
|
|
21
|
+
if (e = Gl(e), e === ct || e === -ct) {
|
|
20
22
|
var o = e < 0 ? -1 : 1;
|
|
21
|
-
return o *
|
|
23
|
+
return o * Xl;
|
|
22
24
|
}
|
|
23
25
|
return e === e ? e : 0;
|
|
24
26
|
}
|
|
25
|
-
function
|
|
26
|
-
var o =
|
|
27
|
+
function Zl(e) {
|
|
28
|
+
var o = Yl(e), a = o % 1;
|
|
27
29
|
return o === o ? a ? o - a : o : 0;
|
|
28
30
|
}
|
|
29
|
-
function
|
|
31
|
+
function Jl(e, o, a, f) {
|
|
30
32
|
for (var d = e.length, p = a + (f ? 1 : -1); f ? p-- : ++p < d; )
|
|
31
33
|
if (o(e[p], p, e))
|
|
32
34
|
return p;
|
|
33
35
|
return -1;
|
|
34
36
|
}
|
|
35
|
-
var
|
|
37
|
+
var _l = Math.max, xl = Math.min;
|
|
36
38
|
function en(e, o, a) {
|
|
37
39
|
var f = e == null ? 0 : e.length;
|
|
38
40
|
if (!f)
|
|
39
41
|
return -1;
|
|
40
42
|
var d = f - 1;
|
|
41
|
-
return a !== void 0 && (d =
|
|
43
|
+
return a !== void 0 && (d = Zl(a), d = a < 0 ? _l(f + d, 0) : xl(d, f - 1)), Jl(e, jl(o), d, !0);
|
|
42
44
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
46
|
-
minWidth: `${Math.max(o.value,
|
|
45
|
+
const gt = 11, tn = 2;
|
|
46
|
+
function ln() {
|
|
47
|
+
const e = il(), o = T(0), a = u(() => ({
|
|
48
|
+
minWidth: `${Math.max(o.value, gt)}px`
|
|
47
49
|
}));
|
|
48
50
|
return ee(e, () => {
|
|
49
51
|
var d, p;
|
|
@@ -54,23 +56,23 @@ function tn() {
|
|
|
54
56
|
inputStyle: a
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
|
-
const
|
|
59
|
+
const yt = {
|
|
58
60
|
label: "label",
|
|
59
61
|
value: "value",
|
|
60
62
|
disabled: "disabled",
|
|
61
63
|
options: "options"
|
|
62
64
|
};
|
|
63
65
|
function nn(e) {
|
|
64
|
-
const o = u(() => ({ ...
|
|
66
|
+
const o = u(() => ({ ...yt, ...e.props }));
|
|
65
67
|
return {
|
|
66
68
|
aliasProps: o,
|
|
67
|
-
getLabel: (
|
|
68
|
-
getValue: (
|
|
69
|
-
getDisabled: (
|
|
70
|
-
getOptions: (
|
|
69
|
+
getLabel: (l) => z(l, o.value.label),
|
|
70
|
+
getValue: (l) => z(l, o.value.value),
|
|
71
|
+
getDisabled: (l) => z(l, o.value.disabled),
|
|
72
|
+
getOptions: (l) => z(l, o.value.options)
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
|
-
const
|
|
75
|
+
const St = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on = mt({
|
|
74
76
|
value: {
|
|
75
77
|
type: [String, Number, Boolean, Object],
|
|
76
78
|
required: !0
|
|
@@ -83,34 +85,34 @@ const Sl = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on
|
|
|
83
85
|
}), an = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
84
86
|
function sn(e, o) {
|
|
85
87
|
const a = we(Ie);
|
|
86
|
-
a ||
|
|
87
|
-
const f = we(
|
|
88
|
+
a || ml(Ne, "usage: <el-select><el-option /></el-select/>");
|
|
89
|
+
const f = we(St, { disabled: !1 }), d = u(() => y(X(a.props.modelValue), e.value)), p = u(() => {
|
|
88
90
|
var i;
|
|
89
91
|
if (a.props.multiple) {
|
|
90
92
|
const O = X((i = a.props.modelValue) != null ? i : []);
|
|
91
93
|
return !d.value && O.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
|
|
92
94
|
} else
|
|
93
95
|
return !1;
|
|
94
|
-
}),
|
|
96
|
+
}), l = u(() => {
|
|
95
97
|
var i;
|
|
96
98
|
return (i = e.label) != null ? i : U(e.value) ? "" : e.value;
|
|
97
|
-
}), C = u(() => e.value || e.label || ""), h = u(() => e.disabled || o.groupDisabled || p.value), S =
|
|
99
|
+
}), C = u(() => e.value || e.label || ""), h = u(() => e.disabled || o.groupDisabled || p.value), S = Ee(), y = (i = [], O) => {
|
|
98
100
|
if (U(e.value)) {
|
|
99
101
|
const I = a.props.valueKey;
|
|
100
|
-
return i && i.some((R) =>
|
|
102
|
+
return i && i.some((R) => rl(z(R, I)) === z(O, I));
|
|
101
103
|
} else
|
|
102
104
|
return i && i.includes(O);
|
|
103
105
|
}, m = () => {
|
|
104
106
|
!e.disabled && !f.disabled && (a.states.hoveringIndex = a.optionsArray.indexOf(S.proxy));
|
|
105
107
|
}, s = (i) => {
|
|
106
108
|
const O = new RegExp(an(i), "i");
|
|
107
|
-
o.visible = O.test(String(
|
|
109
|
+
o.visible = O.test(String(l.value)) || e.created;
|
|
108
110
|
};
|
|
109
|
-
return G(() =>
|
|
111
|
+
return G(() => l.value, () => {
|
|
110
112
|
!e.created && !a.props.remote && a.setSelected();
|
|
111
113
|
}), G(() => e.value, (i, O) => {
|
|
112
114
|
const { remote: I, valueKey: R } = a.props;
|
|
113
|
-
if ((I ? i !== O : !
|
|
115
|
+
if ((I ? i !== O : !le(i, O)) && (a.onOptionDestroy(O, S.proxy), a.onOptionCreate(S.proxy)), !e.created && !I) {
|
|
114
116
|
if (R && U(i) && U(O) && i[R] === O[R])
|
|
115
117
|
return;
|
|
116
118
|
a.setSelected();
|
|
@@ -119,7 +121,7 @@ function sn(e, o) {
|
|
|
119
121
|
o.groupDisabled = f.disabled;
|
|
120
122
|
}, { immediate: !0 }), {
|
|
121
123
|
select: a,
|
|
122
|
-
currentLabel:
|
|
124
|
+
currentLabel: l,
|
|
123
125
|
currentValue: C,
|
|
124
126
|
itemSelected: d,
|
|
125
127
|
isDisabled: h,
|
|
@@ -132,10 +134,10 @@ const rn = pe({
|
|
|
132
134
|
componentName: Ne,
|
|
133
135
|
props: on,
|
|
134
136
|
setup(e) {
|
|
135
|
-
const o = ce("select"), a =
|
|
137
|
+
const o = ce("select"), a = ht(), f = u(() => [
|
|
136
138
|
o.be("dropdown", "item"),
|
|
137
139
|
o.is("disabled", $e(C)),
|
|
138
|
-
o.is("selected", $e(
|
|
140
|
+
o.is("selected", $e(l)),
|
|
139
141
|
o.is("hovering", $e(s))
|
|
140
142
|
]), d = de({
|
|
141
143
|
index: -1,
|
|
@@ -144,13 +146,13 @@ const rn = pe({
|
|
|
144
146
|
hover: !1
|
|
145
147
|
}), {
|
|
146
148
|
currentLabel: p,
|
|
147
|
-
itemSelected:
|
|
149
|
+
itemSelected: l,
|
|
148
150
|
isDisabled: C,
|
|
149
151
|
select: h,
|
|
150
152
|
hoverItem: S,
|
|
151
153
|
updateOption: y
|
|
152
|
-
} = sn(e, d), { visible: m, hover: s } = Be(d), i =
|
|
153
|
-
h.onOptionCreate(i),
|
|
154
|
+
} = sn(e, d), { visible: m, hover: s } = Be(d), i = Ee().proxy;
|
|
155
|
+
h.onOptionCreate(i), ft(() => {
|
|
154
156
|
const I = i.value;
|
|
155
157
|
Q(() => {
|
|
156
158
|
const { selected: R } = h.states, g = R.some((c) => c.value === i.value);
|
|
@@ -165,7 +167,7 @@ const rn = pe({
|
|
|
165
167
|
id: a,
|
|
166
168
|
containerKls: f,
|
|
167
169
|
currentLabel: p,
|
|
168
|
-
itemSelected:
|
|
170
|
+
itemSelected: l,
|
|
169
171
|
isDisabled: C,
|
|
170
172
|
select: h,
|
|
171
173
|
visible: m,
|
|
@@ -194,19 +196,19 @@ function un(e, o) {
|
|
|
194
196
|
[Pe, e.visible]
|
|
195
197
|
]);
|
|
196
198
|
}
|
|
197
|
-
var ze = /* @__PURE__ */
|
|
199
|
+
var ze = /* @__PURE__ */ Ve(rn, [["render", un], ["__file", "option.vue"]]);
|
|
198
200
|
const dn = pe({
|
|
199
201
|
name: "ElSelectDropdown",
|
|
200
202
|
componentName: "ElSelectDropdown",
|
|
201
203
|
setup() {
|
|
202
204
|
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
|
|
205
|
+
function l() {
|
|
204
206
|
var C;
|
|
205
207
|
const h = (C = e.selectRef) == null ? void 0 : C.offsetWidth;
|
|
206
|
-
h ? p.value = `${h -
|
|
208
|
+
h ? p.value = `${h - tn}px` : p.value = "";
|
|
207
209
|
}
|
|
208
210
|
return We(() => {
|
|
209
|
-
|
|
211
|
+
l(), ee(e.selectRef, l);
|
|
210
212
|
}), {
|
|
211
213
|
ns: o,
|
|
212
214
|
minWidth: p,
|
|
@@ -236,9 +238,9 @@ function cn(e, o, a, f, d, p) {
|
|
|
236
238
|
], 2)) : L("v-if", !0)
|
|
237
239
|
], 6);
|
|
238
240
|
}
|
|
239
|
-
var pn = /* @__PURE__ */
|
|
241
|
+
var pn = /* @__PURE__ */ Ve(dn, [["render", cn], ["__file", "select-dropdown.vue"]]);
|
|
240
242
|
const fn = (e, o) => {
|
|
241
|
-
const { t: a } =
|
|
243
|
+
const { t: a } = Il(), f = ht(), d = ce("select"), p = ce("input"), l = de({
|
|
242
244
|
inputValue: "",
|
|
243
245
|
options: /* @__PURE__ */ new Map(),
|
|
244
246
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -252,106 +254,106 @@ const fn = (e, o) => {
|
|
|
252
254
|
inputHovering: !1,
|
|
253
255
|
menuVisibleOnFocus: !1,
|
|
254
256
|
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),
|
|
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 } = Nl(), { inputId: A } = Bl(e, {
|
|
256
258
|
formItemContext: B
|
|
257
|
-
}), { valueOnClear: Ke, isEmptyValue: Z } = $
|
|
259
|
+
}), { valueOnClear: Ke, isEmptyValue: Z } = $l(e), {
|
|
258
260
|
isComposing: He,
|
|
259
|
-
handleCompositionStart:
|
|
260
|
-
handleCompositionUpdate:
|
|
261
|
-
handleCompositionEnd:
|
|
262
|
-
} =
|
|
263
|
-
afterComposition: (
|
|
264
|
-
}), ne = u(() => e.disabled || !!(Y != null && Y.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur:
|
|
261
|
+
handleCompositionStart: Ot,
|
|
262
|
+
handleCompositionUpdate: Ct,
|
|
263
|
+
handleCompositionEnd: wt
|
|
264
|
+
} = Al({
|
|
265
|
+
afterComposition: (t) => Je(t)
|
|
266
|
+
}), ne = u(() => e.disabled || !!(Y != null && Y.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur: Et } = Kl(m, {
|
|
265
267
|
disabled: ne,
|
|
266
268
|
afterFocus() {
|
|
267
|
-
e.automaticDropdown && !c.value && (c.value = !0,
|
|
269
|
+
e.automaticDropdown && !c.value && (c.value = !0, l.menuVisibleOnFocus = !0);
|
|
268
270
|
},
|
|
269
|
-
beforeBlur(
|
|
271
|
+
beforeBlur(t) {
|
|
270
272
|
var n, r;
|
|
271
|
-
return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(
|
|
273
|
+
return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(t)) || ((r = y.value) == null ? void 0 : r.isFocusInsideContent(t));
|
|
272
274
|
},
|
|
273
275
|
afterBlur() {
|
|
274
|
-
var
|
|
275
|
-
c.value = !1,
|
|
276
|
+
var t;
|
|
277
|
+
c.value = !1, l.menuVisibleOnFocus = !1, e.validateEvent && ((t = B == null ? void 0 : B.validate) == null || t.call(B, "blur").catch((n) => st()));
|
|
276
278
|
}
|
|
277
|
-
}), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !Z(e.modelValue)),
|
|
278
|
-
var
|
|
279
|
-
return (
|
|
280
|
-
}),
|
|
281
|
-
const
|
|
282
|
-
return
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
}), n.length >=
|
|
286
|
-
}), $
|
|
287
|
-
const
|
|
288
|
-
return e.filterable && e.allowCreate &&
|
|
279
|
+
}), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !Z(e.modelValue)), Vt = u(() => {
|
|
280
|
+
var t;
|
|
281
|
+
return (t = Y == null ? void 0 : Y.statusIcon) != null ? t : !1;
|
|
282
|
+
}), It = u(() => e.clearable && !ne.value && ke.value && (Te.value || l.inputHovering)), Ue = u(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Tt = u(() => d.is("reverse", !!(Ue.value && c.value))), De = u(() => (B == null ? void 0 : B.validateState) || ""), kt = u(() => De.value && Pl[De.value]), Dt = u(() => e.remote ? 300 : 0), Mt = u(() => e.remote && !l.inputValue && l.options.size === 0), Rt = u(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && l.inputValue && l.options.size > 0 && oe.value === 0 ? e.noMatchText || a("el.select.noMatch") : l.options.size === 0 ? e.noDataText || a("el.select.noData") : null), oe = u(() => D.value.filter((t) => t.visible).length), D = u(() => {
|
|
283
|
+
const t = Array.from(l.options.values()), n = [];
|
|
284
|
+
return l.optionValues.forEach((r) => {
|
|
285
|
+
const V = t.findIndex((N) => N.value === r);
|
|
286
|
+
V > -1 && n.push(t[V]);
|
|
287
|
+
}), n.length >= t.length ? n : t;
|
|
288
|
+
}), $t = u(() => Array.from(l.cachedOptions.values())), Lt = u(() => {
|
|
289
|
+
const t = D.value.filter((n) => !n.created).some((n) => n.currentLabel === l.inputValue);
|
|
290
|
+
return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
|
|
289
291
|
}), je = () => {
|
|
290
|
-
e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((
|
|
292
|
+
e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((t) => {
|
|
291
293
|
var n;
|
|
292
|
-
(n =
|
|
294
|
+
(n = t.updateOption) == null || n.call(t, l.inputValue);
|
|
293
295
|
});
|
|
294
|
-
}, qe =
|
|
296
|
+
}, qe = Wl(), Nt = u(() => ["small"].includes(qe.value) ? "small" : "default"), Qe = u({
|
|
295
297
|
get() {
|
|
296
|
-
return c.value && !
|
|
298
|
+
return c.value && !Mt.value;
|
|
297
299
|
},
|
|
298
|
-
set(
|
|
299
|
-
c.value =
|
|
300
|
+
set(t) {
|
|
301
|
+
c.value = t;
|
|
300
302
|
}
|
|
301
|
-
}),
|
|
303
|
+
}), Bt = u(() => {
|
|
302
304
|
if (e.multiple && !Oe(e.modelValue))
|
|
303
|
-
return X(e.modelValue).length === 0 && !
|
|
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 && (
|
|
305
|
+
return X(e.modelValue).length === 0 && !l.inputValue;
|
|
306
|
+
const t = j(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
307
|
+
return e.filterable || Oe(t) ? !l.inputValue : !0;
|
|
308
|
+
}), Pt = u(() => {
|
|
309
|
+
var t;
|
|
310
|
+
const n = (t = e.placeholder) != null ? t : a("el.select.placeholder");
|
|
311
|
+
return e.multiple || !ke.value ? n : l.selectedLabel;
|
|
312
|
+
}), Wt = u(() => ut ? null : "mouseenter");
|
|
313
|
+
G(() => e.modelValue, (t, n) => {
|
|
314
|
+
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", fe("")), ve(), !le(t, n) && e.validateEvent && (B == null || B.validate("change").catch((r) => st()));
|
|
313
315
|
}, {
|
|
314
316
|
flush: "post",
|
|
315
317
|
deep: !0
|
|
316
|
-
}), G(() => c.value, (
|
|
317
|
-
|
|
318
|
-
}), G(() =>
|
|
319
|
-
|
|
318
|
+
}), G(() => c.value, (t) => {
|
|
319
|
+
t ? fe(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0), o("visible-change", t);
|
|
320
|
+
}), G(() => l.options.entries(), () => {
|
|
321
|
+
Tl && (ve(), e.defaultFirstOption && (e.filterable || e.remote) && oe.value && Xe());
|
|
320
322
|
}, {
|
|
321
323
|
flush: "post"
|
|
322
|
-
}), G([() =>
|
|
323
|
-
|
|
324
|
-
n.hover =
|
|
324
|
+
}), G([() => l.hoveringIndex, D], ([t]) => {
|
|
325
|
+
kl(t) && t > -1 ? E.value = D.value[t] || {} : E.value = {}, D.value.forEach((n) => {
|
|
326
|
+
n.hover = E.value === n;
|
|
325
327
|
});
|
|
326
|
-
}),
|
|
327
|
-
|
|
328
|
+
}), ul(() => {
|
|
329
|
+
l.isBeforeHide || je();
|
|
328
330
|
});
|
|
329
|
-
const fe = (
|
|
330
|
-
|
|
331
|
+
const fe = (t) => {
|
|
332
|
+
l.previousQuery === t || He.value || (l.previousQuery = t, e.filterable && re(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && re(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && oe.value ? Q(Xe) : Q(Ft));
|
|
331
333
|
}, Xe = () => {
|
|
332
|
-
const
|
|
333
|
-
|
|
334
|
+
const t = D.value.filter((N) => N.visible && !N.disabled && !N.states.groupDisabled), n = t.find((N) => N.created), r = t[0], V = D.value.map((N) => N.value);
|
|
335
|
+
l.hoveringIndex = tt(V, n || r);
|
|
334
336
|
}, ve = () => {
|
|
335
337
|
if (e.multiple)
|
|
336
|
-
|
|
338
|
+
l.selectedLabel = "";
|
|
337
339
|
else {
|
|
338
340
|
const n = j(e.modelValue) ? e.modelValue[0] : e.modelValue, r = Me(n);
|
|
339
|
-
|
|
341
|
+
l.selectedLabel = r.currentLabel, l.selected = [r];
|
|
340
342
|
return;
|
|
341
343
|
}
|
|
342
|
-
const
|
|
344
|
+
const t = [];
|
|
343
345
|
Oe(e.modelValue) || X(e.modelValue).forEach((n) => {
|
|
344
|
-
|
|
345
|
-
}),
|
|
346
|
-
}, Me = (
|
|
346
|
+
t.push(Me(n));
|
|
347
|
+
}), l.selected = t;
|
|
348
|
+
}, Me = (t) => {
|
|
347
349
|
let n;
|
|
348
|
-
const r =
|
|
349
|
-
for (let
|
|
350
|
-
const K = $
|
|
351
|
-
if (r ? z(K.value, e.valueKey) === z(
|
|
350
|
+
const r = Dl(t);
|
|
351
|
+
for (let te = l.cachedOptions.size - 1; te >= 0; te--) {
|
|
352
|
+
const K = $t.value[te];
|
|
353
|
+
if (r ? z(K.value, e.valueKey) === z(t, e.valueKey) : K.value === t) {
|
|
352
354
|
n = {
|
|
353
355
|
index: D.value.filter((J) => !J.created).indexOf(K),
|
|
354
|
-
value:
|
|
356
|
+
value: t,
|
|
355
357
|
currentLabel: K.currentLabel,
|
|
356
358
|
get isDisabled() {
|
|
357
359
|
return K.isDisabled;
|
|
@@ -362,100 +364,100 @@ const fn = (e, o) => {
|
|
|
362
364
|
}
|
|
363
365
|
if (n)
|
|
364
366
|
return n;
|
|
365
|
-
const
|
|
367
|
+
const V = r ? t.label : t ?? "";
|
|
366
368
|
return {
|
|
367
369
|
index: -1,
|
|
368
|
-
value:
|
|
369
|
-
currentLabel:
|
|
370
|
+
value: t,
|
|
371
|
+
currentLabel: V
|
|
370
372
|
};
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
|
|
375
|
-
},
|
|
376
|
-
|
|
373
|
+
}, Ft = () => {
|
|
374
|
+
l.hoveringIndex = D.value.findIndex((t) => l.selected.some((n) => he(n) === he(t)));
|
|
375
|
+
}, zt = () => {
|
|
376
|
+
l.selectionWidth = Number.parseFloat(window.getComputedStyle(h.value).width);
|
|
377
|
+
}, At = () => {
|
|
378
|
+
l.collapseItemWidth = R.value.getBoundingClientRect().width;
|
|
377
379
|
}, Re = () => {
|
|
378
|
-
var
|
|
379
|
-
(n = (
|
|
380
|
+
var t, n;
|
|
381
|
+
(n = (t = S.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
380
382
|
}, Ye = () => {
|
|
381
|
-
var
|
|
382
|
-
(n = (
|
|
383
|
+
var t, n;
|
|
384
|
+
(n = (t = y.value) == null ? void 0 : t.updatePopper) == null || n.call(t);
|
|
383
385
|
}, Ze = () => {
|
|
384
|
-
|
|
385
|
-
}, Je = (
|
|
386
|
-
if (
|
|
386
|
+
l.inputValue.length > 0 && !c.value && (c.value = !0), fe(l.inputValue);
|
|
387
|
+
}, Je = (t) => {
|
|
388
|
+
if (l.inputValue = t.target.value, e.remote)
|
|
387
389
|
_e();
|
|
388
390
|
else
|
|
389
391
|
return Ze();
|
|
390
|
-
}, _e =
|
|
392
|
+
}, _e = Ul(() => {
|
|
391
393
|
Ze();
|
|
392
|
-
},
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
const r =
|
|
394
|
+
}, Dt.value), ae = (t) => {
|
|
395
|
+
le(e.modelValue, t) || o(Fe, t);
|
|
396
|
+
}, Kt = (t) => en(t, (n) => {
|
|
397
|
+
const r = l.cachedOptions.get(n);
|
|
396
398
|
return r && !r.disabled && !r.states.groupDisabled;
|
|
397
|
-
}),
|
|
398
|
-
if (e.multiple &&
|
|
399
|
-
const n = X(e.modelValue).slice(), r =
|
|
399
|
+
}), Ht = (t) => {
|
|
400
|
+
if (e.multiple && t.code !== bl.delete && t.target.value.length <= 0) {
|
|
401
|
+
const n = X(e.modelValue).slice(), r = Kt(n);
|
|
400
402
|
if (r < 0)
|
|
401
403
|
return;
|
|
402
|
-
const
|
|
403
|
-
n.splice(r, 1), o(x, n), ae(n), o("remove-tag",
|
|
404
|
+
const V = n[r];
|
|
405
|
+
n.splice(r, 1), o(x, n), ae(n), o("remove-tag", V);
|
|
404
406
|
}
|
|
405
|
-
},
|
|
406
|
-
const r =
|
|
407
|
+
}, Gt = (t, n) => {
|
|
408
|
+
const r = l.selected.indexOf(n);
|
|
407
409
|
if (r > -1 && !ne.value) {
|
|
408
|
-
const
|
|
409
|
-
|
|
410
|
+
const V = X(e.modelValue).slice();
|
|
411
|
+
V.splice(r, 1), o(x, V), ae(V), o("remove-tag", n.value);
|
|
410
412
|
}
|
|
411
|
-
|
|
412
|
-
}, xe = (
|
|
413
|
-
|
|
413
|
+
t.stopPropagation(), be();
|
|
414
|
+
}, xe = (t) => {
|
|
415
|
+
t.stopPropagation();
|
|
414
416
|
const n = e.multiple ? [] : Ke.value;
|
|
415
417
|
if (e.multiple)
|
|
416
|
-
for (const r of
|
|
418
|
+
for (const r of l.selected)
|
|
417
419
|
r.isDisabled && n.push(r.value);
|
|
418
|
-
o(x, n), ae(n),
|
|
419
|
-
},
|
|
420
|
+
o(x, n), ae(n), l.hoveringIndex = -1, c.value = !1, o("clear"), be();
|
|
421
|
+
}, et = (t) => {
|
|
420
422
|
var n;
|
|
421
423
|
if (e.multiple) {
|
|
422
|
-
const r = X((n = e.modelValue) != null ? n : []).slice(),
|
|
423
|
-
|
|
424
|
+
const r = X((n = e.modelValue) != null ? n : []).slice(), V = tt(r, t);
|
|
425
|
+
V > -1 ? r.splice(V, 1) : (e.multipleLimit <= 0 || r.length < e.multipleLimit) && r.push(t.value), o(x, r), ae(r), t.created && fe(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
|
|
424
426
|
} else
|
|
425
|
-
!
|
|
427
|
+
!le(e.modelValue, t.value) && o(x, t.value), ae(t.value), c.value = !1;
|
|
426
428
|
be(), !c.value && Q(() => {
|
|
427
|
-
me(
|
|
429
|
+
me(t);
|
|
428
430
|
});
|
|
429
|
-
},
|
|
430
|
-
var n, r,
|
|
431
|
-
const K = j(
|
|
431
|
+
}, tt = (t, n) => Oe(n) ? -1 : U(n.value) ? t.findIndex((r) => le(z(r, e.valueKey), he(n))) : t.indexOf(n.value), me = (t) => {
|
|
432
|
+
var n, r, V, N, te;
|
|
433
|
+
const K = j(t) ? t[0] : t;
|
|
432
434
|
let ye = null;
|
|
433
435
|
if (K != null && K.value) {
|
|
434
|
-
const J = D.value.filter((
|
|
436
|
+
const J = D.value.filter((sl) => sl.value === K.value);
|
|
435
437
|
J.length > 0 && (ye = J[0].$el);
|
|
436
438
|
}
|
|
437
439
|
if (S.value && ye) {
|
|
438
|
-
const J = (N = (
|
|
439
|
-
J &&
|
|
440
|
+
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 && Hl(J, ye);
|
|
440
442
|
}
|
|
441
|
-
(
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
var
|
|
448
|
-
return (n = (
|
|
449
|
-
}),
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
(
|
|
443
|
+
(te = g.value) == null || te.handleScroll();
|
|
444
|
+
}, Ut = (t) => {
|
|
445
|
+
l.options.set(t.value, t), l.cachedOptions.set(t.value, t);
|
|
446
|
+
}, jt = (t, n) => {
|
|
447
|
+
l.options.get(t) === n && l.options.delete(t);
|
|
448
|
+
}, qt = u(() => {
|
|
449
|
+
var t, n;
|
|
450
|
+
return (n = (t = S.value) == null ? void 0 : t.popperRef) == null ? void 0 : n.contentRef;
|
|
451
|
+
}), Qt = () => {
|
|
452
|
+
l.isBeforeHide = !1, Q(() => {
|
|
453
|
+
var t;
|
|
454
|
+
(t = g.value) == null || t.update(), me(l.selected);
|
|
453
455
|
});
|
|
454
456
|
}, be = () => {
|
|
455
|
-
var
|
|
456
|
-
(
|
|
457
|
-
},
|
|
458
|
-
var
|
|
457
|
+
var t;
|
|
458
|
+
(t = m.value) == null || t.focus();
|
|
459
|
+
}, Xt = () => {
|
|
460
|
+
var t;
|
|
459
461
|
if (c.value) {
|
|
460
462
|
c.value = !1, Q(() => {
|
|
461
463
|
var n;
|
|
@@ -463,50 +465,50 @@ const fn = (e, o) => {
|
|
|
463
465
|
});
|
|
464
466
|
return;
|
|
465
467
|
}
|
|
466
|
-
(
|
|
467
|
-
},
|
|
468
|
-
xe(
|
|
469
|
-
},
|
|
468
|
+
(t = m.value) == null || t.blur();
|
|
469
|
+
}, Yt = (t) => {
|
|
470
|
+
xe(t);
|
|
471
|
+
}, Zt = (t) => {
|
|
470
472
|
if (c.value = !1, Te.value) {
|
|
471
|
-
const n = new FocusEvent("blur",
|
|
472
|
-
Q(() =>
|
|
473
|
+
const n = new FocusEvent("blur", t);
|
|
474
|
+
Q(() => Et(n));
|
|
473
475
|
}
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
},
|
|
477
|
-
ne.value || (
|
|
478
|
-
},
|
|
476
|
+
}, Jt = () => {
|
|
477
|
+
l.inputValue.length > 0 ? l.inputValue = "" : c.value = !1;
|
|
478
|
+
}, lt = () => {
|
|
479
|
+
ne.value || (ut && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : c.value = !c.value);
|
|
480
|
+
}, _t = () => {
|
|
479
481
|
if (!c.value)
|
|
480
|
-
|
|
482
|
+
lt();
|
|
481
483
|
else {
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
+
const t = D.value[l.hoveringIndex];
|
|
485
|
+
t && !t.isDisabled && et(t);
|
|
484
486
|
}
|
|
485
|
-
}, he = (
|
|
487
|
+
}, he = (t) => U(t.value) ? z(t.value, e.valueKey) : t.value, xt = u(() => D.value.filter((t) => t.visible).every((t) => t.isDisabled)), el = u(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), tl = u(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), nt = (t) => {
|
|
486
488
|
if (!c.value) {
|
|
487
489
|
c.value = !0;
|
|
488
490
|
return;
|
|
489
491
|
}
|
|
490
|
-
if (!(
|
|
491
|
-
|
|
492
|
-
const n = D.value[
|
|
493
|
-
(n.isDisabled || !n.visible) &&
|
|
492
|
+
if (!(l.options.size === 0 || oe.value === 0 || He.value) && !xt.value) {
|
|
493
|
+
t === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : t === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
|
|
494
|
+
const n = D.value[l.hoveringIndex];
|
|
495
|
+
(n.isDisabled || !n.visible) && nt(t), Q(() => me(E.value));
|
|
494
496
|
}
|
|
495
|
-
},
|
|
497
|
+
}, ll = () => {
|
|
496
498
|
if (!h.value)
|
|
497
499
|
return 0;
|
|
498
|
-
const
|
|
499
|
-
return Number.parseFloat(
|
|
500
|
-
},
|
|
501
|
-
const
|
|
502
|
-
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ?
|
|
503
|
-
}),
|
|
504
|
-
o("popup-scroll",
|
|
500
|
+
const t = window.getComputedStyle(h.value);
|
|
501
|
+
return Number.parseFloat(t.gap || "6px");
|
|
502
|
+
}, nl = u(() => {
|
|
503
|
+
const t = ll(), n = e.filterable ? t + gt : 0;
|
|
504
|
+
return { maxWidth: `${R.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t - n : l.selectionWidth - n}px` };
|
|
505
|
+
}), ol = u(() => ({ maxWidth: `${l.selectionWidth}px` })), al = (t) => {
|
|
506
|
+
o("popup-scroll", t);
|
|
505
507
|
};
|
|
506
|
-
ee(h,
|
|
508
|
+
ee(h, zt), ee(Ge, Re), ee(I, Ye), ee(R, At);
|
|
507
509
|
let ge;
|
|
508
|
-
return G(() => Qe.value, (
|
|
509
|
-
|
|
510
|
+
return G(() => Qe.value, (t) => {
|
|
511
|
+
t ? ge = ee(O, Re).stop : (ge == null || ge(), ge = void 0);
|
|
510
512
|
}), We(() => {
|
|
511
513
|
ve();
|
|
512
514
|
}), {
|
|
@@ -514,61 +516,61 @@ const fn = (e, o) => {
|
|
|
514
516
|
contentId: f,
|
|
515
517
|
nsSelect: d,
|
|
516
518
|
nsInput: p,
|
|
517
|
-
states:
|
|
519
|
+
states: l,
|
|
518
520
|
isFocused: Te,
|
|
519
521
|
expanded: c,
|
|
520
522
|
optionsArray: D,
|
|
521
|
-
hoverOption:
|
|
523
|
+
hoverOption: E,
|
|
522
524
|
selectSize: qe,
|
|
523
525
|
filteredOptionsCount: oe,
|
|
524
526
|
updateTooltip: Re,
|
|
525
527
|
updateTagTooltip: Ye,
|
|
526
528
|
debouncedOnInputChange: _e,
|
|
527
529
|
onInput: Je,
|
|
528
|
-
deletePrevTag:
|
|
529
|
-
deleteTag:
|
|
530
|
+
deletePrevTag: Ht,
|
|
531
|
+
deleteTag: Gt,
|
|
530
532
|
deleteSelected: xe,
|
|
531
|
-
handleOptionSelect:
|
|
533
|
+
handleOptionSelect: et,
|
|
532
534
|
scrollToOption: me,
|
|
533
535
|
hasModelValue: ke,
|
|
534
|
-
shouldShowPlaceholder:
|
|
535
|
-
currentPlaceholder:
|
|
536
|
-
mouseEnterEventName:
|
|
537
|
-
needStatusIcon:
|
|
538
|
-
showClearBtn:
|
|
536
|
+
shouldShowPlaceholder: Bt,
|
|
537
|
+
currentPlaceholder: Pt,
|
|
538
|
+
mouseEnterEventName: Wt,
|
|
539
|
+
needStatusIcon: Vt,
|
|
540
|
+
showClearBtn: It,
|
|
539
541
|
iconComponent: Ue,
|
|
540
|
-
iconReverse:
|
|
542
|
+
iconReverse: Tt,
|
|
541
543
|
validateState: De,
|
|
542
|
-
validateIcon:
|
|
543
|
-
showNewOption:
|
|
544
|
+
validateIcon: kt,
|
|
545
|
+
showNewOption: Lt,
|
|
544
546
|
updateOptions: je,
|
|
545
|
-
collapseTagSize:
|
|
547
|
+
collapseTagSize: Nt,
|
|
546
548
|
setSelected: ve,
|
|
547
549
|
selectDisabled: ne,
|
|
548
|
-
emptyText:
|
|
549
|
-
handleCompositionStart:
|
|
550
|
-
handleCompositionUpdate:
|
|
551
|
-
handleCompositionEnd:
|
|
552
|
-
onOptionCreate:
|
|
553
|
-
onOptionDestroy:
|
|
554
|
-
handleMenuEnter:
|
|
550
|
+
emptyText: Rt,
|
|
551
|
+
handleCompositionStart: Ot,
|
|
552
|
+
handleCompositionUpdate: Ct,
|
|
553
|
+
handleCompositionEnd: wt,
|
|
554
|
+
onOptionCreate: Ut,
|
|
555
|
+
onOptionDestroy: jt,
|
|
556
|
+
handleMenuEnter: Qt,
|
|
555
557
|
focus: be,
|
|
556
|
-
blur:
|
|
557
|
-
handleClearClick:
|
|
558
|
-
handleClickOutside:
|
|
559
|
-
handleEsc:
|
|
560
|
-
toggleMenu:
|
|
561
|
-
selectOption:
|
|
558
|
+
blur: Xt,
|
|
559
|
+
handleClearClick: Yt,
|
|
560
|
+
handleClickOutside: Zt,
|
|
561
|
+
handleEsc: Jt,
|
|
562
|
+
toggleMenu: lt,
|
|
563
|
+
selectOption: _t,
|
|
562
564
|
getValueKey: he,
|
|
563
|
-
navigateOptions:
|
|
565
|
+
navigateOptions: nt,
|
|
564
566
|
dropdownMenuVisible: Qe,
|
|
565
|
-
showTagList:
|
|
566
|
-
collapseTagList:
|
|
567
|
-
popupScroll:
|
|
567
|
+
showTagList: el,
|
|
568
|
+
collapseTagList: tl,
|
|
569
|
+
popupScroll: al,
|
|
568
570
|
getOption: Me,
|
|
569
|
-
tagStyle:
|
|
570
|
-
collapseTagStyle:
|
|
571
|
-
popperRef:
|
|
571
|
+
tagStyle: nl,
|
|
572
|
+
collapseTagStyle: ol,
|
|
573
|
+
popperRef: qt,
|
|
572
574
|
inputRef: m,
|
|
573
575
|
tooltipRef: S,
|
|
574
576
|
tagTooltipRef: y,
|
|
@@ -590,19 +592,19 @@ var vn = pe({
|
|
|
590
592
|
let f = [];
|
|
591
593
|
return () => {
|
|
592
594
|
var d, p;
|
|
593
|
-
const
|
|
595
|
+
const l = (d = o.default) == null ? void 0 : d.call(o), C = [];
|
|
594
596
|
function h(S) {
|
|
595
597
|
j(S) && S.forEach((y) => {
|
|
596
598
|
var m, s, i, O;
|
|
597
599
|
const I = (m = (y == null ? void 0 : y.type) || {}) == null ? void 0 : m.name;
|
|
598
|
-
I === "ElOptionGroup" ? h(!
|
|
600
|
+
I === "ElOptionGroup" ? h(!Ml(y.children) && !j(y.children) && re((s = y.children) == null ? void 0 : s.default) ? (i = y.children) == null ? void 0 : i.default() : y.children) : I === "ElOption" ? C.push((O = y.props) == null ? void 0 : O.value) : j(y.children) && h(y.children);
|
|
599
601
|
});
|
|
600
602
|
}
|
|
601
|
-
return
|
|
603
|
+
return l.length && h((p = l[0]) == null ? void 0 : p.children), le(C, f) || (f = C, a && (a.states.optionValues = C)), l;
|
|
602
604
|
};
|
|
603
605
|
}
|
|
604
606
|
});
|
|
605
|
-
const mn =
|
|
607
|
+
const mn = mt({
|
|
606
608
|
name: String,
|
|
607
609
|
id: String,
|
|
608
610
|
modelValue: {
|
|
@@ -620,7 +622,7 @@ const mn = ml({
|
|
|
620
622
|
default: "off"
|
|
621
623
|
},
|
|
622
624
|
automaticDropdown: Boolean,
|
|
623
|
-
size:
|
|
625
|
+
size: Fl,
|
|
624
626
|
effect: {
|
|
625
627
|
type: W(String),
|
|
626
628
|
default: "light"
|
|
@@ -674,22 +676,22 @@ const mn = ml({
|
|
|
674
676
|
type: Number,
|
|
675
677
|
default: 1
|
|
676
678
|
},
|
|
677
|
-
teleported:
|
|
679
|
+
teleported: it.teleported,
|
|
678
680
|
persistent: {
|
|
679
681
|
type: Boolean,
|
|
680
682
|
default: !0
|
|
681
683
|
},
|
|
682
684
|
clearIcon: {
|
|
683
|
-
type:
|
|
684
|
-
default:
|
|
685
|
+
type: dt,
|
|
686
|
+
default: wl
|
|
685
687
|
},
|
|
686
688
|
fitInputWidth: Boolean,
|
|
687
689
|
suffixIcon: {
|
|
688
|
-
type:
|
|
689
|
-
default:
|
|
690
|
+
type: dt,
|
|
691
|
+
default: El
|
|
690
692
|
},
|
|
691
|
-
tagType: { ...
|
|
692
|
-
tagEffect: { ...
|
|
693
|
+
tagType: { ...rt.type, default: "info" },
|
|
694
|
+
tagEffect: { ...rt.effect, default: "light" },
|
|
693
695
|
validateEvent: {
|
|
694
696
|
type: Boolean,
|
|
695
697
|
default: !0
|
|
@@ -705,7 +707,7 @@ const mn = ml({
|
|
|
705
707
|
},
|
|
706
708
|
placement: {
|
|
707
709
|
type: W(String),
|
|
708
|
-
values:
|
|
710
|
+
values: hl,
|
|
709
711
|
default: "bottom-start"
|
|
710
712
|
},
|
|
711
713
|
fallbackPlacements: {
|
|
@@ -716,18 +718,18 @@ const mn = ml({
|
|
|
716
718
|
type: [String, Number],
|
|
717
719
|
default: 0
|
|
718
720
|
},
|
|
719
|
-
appendTo:
|
|
721
|
+
appendTo: it.appendTo,
|
|
720
722
|
options: {
|
|
721
723
|
type: W(Array)
|
|
722
724
|
},
|
|
723
725
|
props: {
|
|
724
726
|
type: W(Object),
|
|
725
|
-
default: () =>
|
|
727
|
+
default: () => yt
|
|
726
728
|
},
|
|
727
|
-
...
|
|
728
|
-
...
|
|
729
|
+
...Ll,
|
|
730
|
+
...gl(["ariaLabel"])
|
|
729
731
|
});
|
|
730
|
-
x + "", Fe + "",
|
|
732
|
+
x + "", Fe + "", Sl.scroll;
|
|
731
733
|
const bn = pe({
|
|
732
734
|
name: "ElOptionGroup",
|
|
733
735
|
componentName: "ElOptionGroup",
|
|
@@ -736,25 +738,25 @@ const bn = pe({
|
|
|
736
738
|
disabled: Boolean
|
|
737
739
|
},
|
|
738
740
|
setup(e) {
|
|
739
|
-
const o = ce("select"), a = T(), f =
|
|
740
|
-
|
|
741
|
+
const o = ce("select"), a = T(), f = Ee(), d = T([]);
|
|
742
|
+
vt(St, de({
|
|
741
743
|
...Be(e)
|
|
742
744
|
}));
|
|
743
|
-
const p = u(() => d.value.some((S) => S.visible === !0)),
|
|
745
|
+
const p = u(() => d.value.some((S) => S.visible === !0)), l = (S) => {
|
|
744
746
|
var y;
|
|
745
747
|
return S.type.name === "ElOption" && !!((y = S.component) != null && y.proxy);
|
|
746
748
|
}, C = (S) => {
|
|
747
749
|
const y = X(S), m = [];
|
|
748
750
|
return y.forEach((s) => {
|
|
749
751
|
var i;
|
|
750
|
-
|
|
752
|
+
dl(s) && (l(s) ? m.push(s.component.proxy) : j(s.children) && s.children.length ? m.push(...C(s.children)) : (i = s.component) != null && i.subTree && m.push(...C(s.component.subTree)));
|
|
751
753
|
}), m;
|
|
752
754
|
}, h = () => {
|
|
753
755
|
d.value = C(f.subTree);
|
|
754
756
|
};
|
|
755
757
|
return We(() => {
|
|
756
758
|
h();
|
|
757
|
-
}),
|
|
759
|
+
}), zl(a, h, {
|
|
758
760
|
attributes: !0,
|
|
759
761
|
subtree: !0,
|
|
760
762
|
childList: !0
|
|
@@ -784,21 +786,21 @@ function hn(e, o, a, f, d, p) {
|
|
|
784
786
|
[Pe, e.visible]
|
|
785
787
|
]);
|
|
786
788
|
}
|
|
787
|
-
var Ae = /* @__PURE__ */
|
|
788
|
-
const
|
|
789
|
-
name:
|
|
790
|
-
componentName:
|
|
789
|
+
var Ae = /* @__PURE__ */ Ve(bn, [["render", hn], ["__file", "option-group.vue"]]);
|
|
790
|
+
const pt = "ElSelect", gn = pe({
|
|
791
|
+
name: pt,
|
|
792
|
+
componentName: pt,
|
|
791
793
|
components: {
|
|
792
794
|
ElSelectMenu: pn,
|
|
793
795
|
ElOption: ze,
|
|
794
796
|
ElOptions: vn,
|
|
795
797
|
ElOptionGroup: Ae,
|
|
796
|
-
ElTag:
|
|
797
|
-
ElScrollbar:
|
|
798
|
-
ElTooltip:
|
|
799
|
-
ElIcon:
|
|
798
|
+
ElTag: Cl,
|
|
799
|
+
ElScrollbar: Ol,
|
|
800
|
+
ElTooltip: yl,
|
|
801
|
+
ElIcon: Vl
|
|
800
802
|
},
|
|
801
|
-
directives: { ClickOutside:
|
|
803
|
+
directives: { ClickOutside: ql },
|
|
802
804
|
props: mn,
|
|
803
805
|
emits: [
|
|
804
806
|
x,
|
|
@@ -811,33 +813,33 @@ const pl = "ElSelect", gn = pe({
|
|
|
811
813
|
"popup-scroll"
|
|
812
814
|
],
|
|
813
815
|
setup(e, { emit: o, slots: a }) {
|
|
814
|
-
const f =
|
|
816
|
+
const f = Ee();
|
|
815
817
|
f.appContext.config.warnHandler = (...g) => {
|
|
816
818
|
!g[0] || g[0].includes('Slot "default" invoked outside of the render function') || console.warn(...g);
|
|
817
819
|
};
|
|
818
820
|
const d = u(() => {
|
|
819
|
-
const { modelValue: g, multiple: c } = e,
|
|
820
|
-
return j(g) ? c ? g :
|
|
821
|
+
const { modelValue: g, multiple: c } = e, E = c ? [] : void 0;
|
|
822
|
+
return j(g) ? c ? g : E : c ? E : g;
|
|
821
823
|
}), p = de({
|
|
822
824
|
...Be(e),
|
|
823
825
|
modelValue: d
|
|
824
|
-
}),
|
|
826
|
+
}), l = fn(p, o), { calculatorRef: C, inputStyle: h } = ln(), { getLabel: S, getValue: y, getOptions: m, getDisabled: s } = nn(e), i = (g) => ({
|
|
825
827
|
label: S(g),
|
|
826
828
|
value: y(g),
|
|
827
829
|
disabled: s(g)
|
|
828
|
-
}), O = (g) => g.reduce((c,
|
|
829
|
-
|
|
830
|
+
}), O = (g) => g.reduce((c, E) => (c.push(E), E.children && E.children.length > 0 && c.push(...O(E.children)), c), []), I = (g) => {
|
|
831
|
+
Ql(g || []).forEach((E) => {
|
|
830
832
|
var Y;
|
|
831
|
-
if (U(
|
|
832
|
-
const B =
|
|
833
|
+
if (U(E) && (E.type.name === "ElOption" || E.type.name === "ElTree")) {
|
|
834
|
+
const B = E.type.name;
|
|
833
835
|
if (B === "ElTree") {
|
|
834
|
-
const A = ((Y =
|
|
836
|
+
const A = ((Y = E.props) == null ? void 0 : Y.data) || [];
|
|
835
837
|
O(A).forEach((Z) => {
|
|
836
|
-
Z.currentLabel = Z.label || (U(Z.value) ? "" : Z.value),
|
|
838
|
+
Z.currentLabel = Z.label || (U(Z.value) ? "" : Z.value), l.onOptionCreate(Z);
|
|
837
839
|
});
|
|
838
840
|
} else if (B === "ElOption") {
|
|
839
|
-
const A = { ...
|
|
840
|
-
A.currentLabel = A.label || (U(A.value) ? "" : A.value),
|
|
841
|
+
const A = { ...E.props };
|
|
842
|
+
A.currentLabel = A.label || (U(A.value) ? "" : A.value), l.onOptionCreate(A);
|
|
841
843
|
}
|
|
842
844
|
}
|
|
843
845
|
});
|
|
@@ -849,21 +851,21 @@ const pl = "ElSelect", gn = pe({
|
|
|
849
851
|
e.persistent || I(g);
|
|
850
852
|
}, {
|
|
851
853
|
immediate: !0
|
|
852
|
-
}),
|
|
854
|
+
}), vt(Ie, de({
|
|
853
855
|
props: p,
|
|
854
|
-
states:
|
|
855
|
-
selectRef:
|
|
856
|
-
optionsArray:
|
|
857
|
-
setSelected:
|
|
858
|
-
handleOptionSelect:
|
|
859
|
-
onOptionCreate:
|
|
860
|
-
onOptionDestroy:
|
|
856
|
+
states: l.states,
|
|
857
|
+
selectRef: l.selectRef,
|
|
858
|
+
optionsArray: l.optionsArray,
|
|
859
|
+
setSelected: l.setSelected,
|
|
860
|
+
handleOptionSelect: l.handleOptionSelect,
|
|
861
|
+
onOptionCreate: l.onOptionCreate,
|
|
862
|
+
onOptionDestroy: l.onOptionDestroy
|
|
861
863
|
}));
|
|
862
|
-
const R = u(() => e.multiple ?
|
|
863
|
-
return
|
|
864
|
+
const R = u(() => e.multiple ? l.states.selected.map((g) => g.currentLabel) : l.states.selectedLabel);
|
|
865
|
+
return ft(() => {
|
|
864
866
|
f.appContext.config.warnHandler = void 0;
|
|
865
867
|
}), {
|
|
866
|
-
...
|
|
868
|
+
...l,
|
|
867
869
|
modelValue: d,
|
|
868
870
|
selectedLabel: R,
|
|
869
871
|
calculatorRef: C,
|
|
@@ -877,11 +879,11 @@ const pl = "ElSelect", gn = pe({
|
|
|
877
879
|
}
|
|
878
880
|
});
|
|
879
881
|
function yn(e, o) {
|
|
880
|
-
const a = q("el-tag"), f = q("el-tooltip"), d = q("el-icon"), p = q("el-option"),
|
|
882
|
+
const a = q("el-tag"), f = q("el-tooltip"), d = q("el-icon"), p = q("el-option"), l = q("el-option-group"), C = q("el-options"), h = q("el-scrollbar"), S = q("el-select-menu"), y = cl("click-outside");
|
|
881
883
|
return ue((v(), w("div", {
|
|
882
884
|
ref: "selectRef",
|
|
883
885
|
class: b([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
|
|
884
|
-
[
|
|
886
|
+
[pl(e.mouseEnterEventName)]: (m) => e.states.inputHovering = !0,
|
|
885
887
|
onMouseleave: (m) => e.states.inputHovering = !1
|
|
886
888
|
}, [
|
|
887
889
|
_(f, {
|
|
@@ -962,7 +964,7 @@ function yn(e, o) {
|
|
|
962
964
|
label: s.currentLabel,
|
|
963
965
|
value: s.value
|
|
964
966
|
}, () => [
|
|
965
|
-
|
|
967
|
+
ot(H(s.currentLabel), 1)
|
|
966
968
|
])
|
|
967
969
|
], 2)
|
|
968
970
|
]),
|
|
@@ -1029,7 +1031,7 @@ function yn(e, o) {
|
|
|
1029
1031
|
label: s.currentLabel,
|
|
1030
1032
|
value: s.value
|
|
1031
1033
|
}, () => [
|
|
1032
|
-
|
|
1034
|
+
ot(H(s.currentLabel), 1)
|
|
1033
1035
|
])
|
|
1034
1036
|
], 2)
|
|
1035
1037
|
]),
|
|
@@ -1081,7 +1083,7 @@ function yn(e, o) {
|
|
|
1081
1083
|
onInput: e.onInput,
|
|
1082
1084
|
onClick: F(e.toggleMenu, ["stop"])
|
|
1083
1085
|
}, 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
|
-
[
|
|
1086
|
+
[fl, e.states.inputValue]
|
|
1085
1087
|
]),
|
|
1086
1088
|
e.filterable ? (v(), w("span", {
|
|
1087
1089
|
key: 0,
|
|
@@ -1188,18 +1190,18 @@ function yn(e, o) {
|
|
|
1188
1190
|
(v(!0), w(se, null, Se(e.options, (m, s) => {
|
|
1189
1191
|
var i;
|
|
1190
1192
|
return v(), w(se, { key: s }, [
|
|
1191
|
-
(i = e.getOptions(m)) != null && i.length ? (v(), P(
|
|
1193
|
+
(i = e.getOptions(m)) != null && i.length ? (v(), P(l, {
|
|
1192
1194
|
key: 0,
|
|
1193
1195
|
label: e.getLabel(m),
|
|
1194
1196
|
disabled: e.getDisabled(m)
|
|
1195
1197
|
}, {
|
|
1196
1198
|
default: $(() => [
|
|
1197
|
-
(v(!0), w(se, null, Se(e.getOptions(m), (O) => (v(), P(p,
|
|
1199
|
+
(v(!0), w(se, null, Se(e.getOptions(m), (O) => (v(), P(p, at({
|
|
1198
1200
|
key: e.getValue(O)
|
|
1199
1201
|
}, e.getOptionProps(O)), null, 16))), 128))
|
|
1200
1202
|
]),
|
|
1201
1203
|
_: 2
|
|
1202
|
-
}, 1032, ["label", "disabled"])) : (v(), P(p,
|
|
1204
|
+
}, 1032, ["label", "disabled"])) : (v(), P(p, vl(at({ key: 1 }, e.getOptionProps(m))), null, 16))
|
|
1203
1205
|
], 64);
|
|
1204
1206
|
}), 128))
|
|
1205
1207
|
])
|
|
@@ -1242,13 +1244,13 @@ function yn(e, o) {
|
|
|
1242
1244
|
[y, e.handleClickOutside, e.popperRef]
|
|
1243
1245
|
]);
|
|
1244
1246
|
}
|
|
1245
|
-
var Sn = /* @__PURE__ */
|
|
1246
|
-
const
|
|
1247
|
+
var Sn = /* @__PURE__ */ Ve(gn, [["render", yn], ["__file", "select.vue"]]);
|
|
1248
|
+
const Wn = Rl(Sn, {
|
|
1247
1249
|
Option: ze,
|
|
1248
1250
|
OptionGroup: Ae
|
|
1249
|
-
}),
|
|
1250
|
-
|
|
1251
|
+
}), Fn = bt(ze);
|
|
1252
|
+
bt(Ae);
|
|
1251
1253
|
export {
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
+
Fn as E,
|
|
1255
|
+
Wn as a
|
|
1254
1256
|
};
|