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