st-comp 0.0.178 → 0.0.180

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.
Files changed (185) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +3 -3
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +29 -33
  5. package/es/Kline.cjs +1 -1
  6. package/es/Kline.js +14 -18
  7. package/es/KlineBasic.cjs +1 -1
  8. package/es/KlineBasic.js +25 -30
  9. package/es/KlineConfig.cjs +1 -1
  10. package/es/KlineConfig.js +457 -419
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +13 -16
  13. package/es/KlinePlus.cjs +3 -3
  14. package/es/KlinePlus.js +140 -142
  15. package/es/Pagination.cjs +1 -1
  16. package/es/Pagination.js +274 -276
  17. package/es/PasswordPrompt.cjs +1 -1
  18. package/es/PasswordPrompt.js +3 -3
  19. package/es/Table.cjs +1 -1
  20. package/es/Table.js +21 -23
  21. package/es/User.cjs +1 -1
  22. package/es/User.js +472 -482
  23. package/es/VarSelectDialog.cjs +3 -3
  24. package/es/VarSelectDialog.js +440 -2878
  25. package/es/VarietySearch.cjs +12 -12
  26. package/es/VarietySearch.js +1199 -1176
  27. package/es/VirtualTable.cjs +1 -13
  28. package/es/VirtualTable.js +1547 -1567
  29. package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
  30. package/es/_initCloneObject-e2f0deb9.cjs +1 -0
  31. package/es/base-62a70f61.js +288 -0
  32. package/es/base-ef747d02.cjs +5 -0
  33. package/es/config-provider-178bb43c.cjs +1 -0
  34. package/es/config-provider-2e733cae.js +58 -0
  35. package/es/dayjs.min-2c20abe6.cjs +1 -0
  36. package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
  37. package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
  38. package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
  39. package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
  40. package/es/dropdown-f2fec683.cjs +1 -0
  41. package/es/el-button-5b08c08a.js +272 -0
  42. package/es/el-button-fc46a173.cjs +1 -0
  43. package/es/el-dialog-0b7166c9.cjs +1 -0
  44. package/es/el-dialog-d8d0da7a.js +276 -0
  45. package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
  46. package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
  47. package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
  48. package/es/el-empty-bb2b0235.cjs +1 -0
  49. package/es/el-form-item-caffd133.cjs +12 -0
  50. package/es/el-form-item-ff9c7d98.js +1267 -0
  51. package/es/el-input-6db30c8c.js +531 -0
  52. package/es/el-input-9c912678.cjs +1 -0
  53. package/es/el-input-number-05f150e5.js +311 -0
  54. package/es/el-input-number-6fe73563.cjs +1 -0
  55. package/es/el-loading-8514feaa.cjs +1 -0
  56. package/es/el-loading-93842445.js +203 -0
  57. package/es/el-menu-item-7a57c1be.cjs +1 -0
  58. package/es/el-menu-item-a886fbdd.js +768 -0
  59. package/es/el-message-8aa674f2.js +406 -0
  60. package/es/el-message-aad5b42b.cjs +1 -0
  61. package/es/el-message-box-2b6b2b68.js +550 -0
  62. package/es/el-message-box-53f355d7.cjs +1 -0
  63. package/es/el-overlay-540b2a02.js +324 -0
  64. package/es/el-overlay-96630a2e.cjs +1 -0
  65. package/es/el-popconfirm-2afdf6fb.cjs +1 -0
  66. package/es/el-popconfirm-c18d8035.js +162 -0
  67. package/es/el-popper-544fd77e.js +2412 -0
  68. package/es/el-popper-73466d7a.cjs +1 -0
  69. package/es/el-scrollbar-691cfc11.cjs +1 -0
  70. package/es/el-scrollbar-fae984e3.js +763 -0
  71. package/es/el-segmented-a7493831.js +142 -0
  72. package/es/el-segmented-b6bd3c0e.cjs +1 -0
  73. package/es/el-select-5959e837.cjs +1 -0
  74. package/es/el-select-ea8feecf.js +1251 -0
  75. package/es/el-table-column-9ef52443.js +3878 -0
  76. package/es/el-table-column-b824ac5c.cjs +14 -0
  77. package/es/el-tag-2fc9b9eb.js +116 -0
  78. package/es/el-tag-ecad6d02.cjs +1 -0
  79. package/es/index-2e331d74.js +10 -0
  80. package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
  81. package/es/index-3a74eae4.cjs +1 -0
  82. package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
  83. package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
  84. package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
  85. package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
  86. package/es/index-a9095b4a.js +163 -0
  87. package/es/index-a93dd9c4.cjs +1 -0
  88. package/es/index-ebd2fd7e.cjs +1 -0
  89. package/es/index-f1c702f6.cjs +1 -0
  90. package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
  91. package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
  92. package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
  93. package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
  94. package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
  95. package/es/style.css +1 -1
  96. package/es/use-global-config-03735617.cjs +1 -0
  97. package/es/use-global-config-4b185eb5.js +71 -0
  98. package/es/validator-0e688e4e.cjs +1 -0
  99. package/es/validator-d12a8f8c.js +5 -0
  100. package/es/vnode-4db20540.cjs +1 -0
  101. package/es/vnode-a0795a4b.js +70 -0
  102. package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
  103. package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
  104. package/lib/bundle.js +1 -1
  105. package/lib/bundle.umd.cjs +226 -245
  106. package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
  107. package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
  108. package/lib/style.css +1 -1
  109. package/package.json +2 -2
  110. package/packages/KlinePlus/index.vue +2 -1
  111. package/packages/VarSelectDialog/index.vue +43 -67
  112. package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
  113. package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
  114. package/packages/index.ts +0 -2
  115. package/src/pages/VarSelectDialog/index.vue +1 -1
  116. package/src/router/routes.ts +0 -5
  117. package/es/Dialog.cjs +0 -1
  118. package/es/Dialog.js +0 -95
  119. package/es/_commonjsHelpers-10dfc225.js +0 -8
  120. package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
  121. package/es/_initCloneObject-9ccbb113.cjs +0 -1
  122. package/es/base-bdc10baa.cjs +0 -5
  123. package/es/base-d9284bf0.js +0 -304
  124. package/es/castArray-37eb9980.cjs +0 -1
  125. package/es/castArray-b0ab0165.js +0 -10
  126. package/es/config-provider-ec6b09df.cjs +0 -1
  127. package/es/config-provider-f0151e9f.js +0 -47
  128. package/es/dayjs.min-19fb125f.cjs +0 -1
  129. package/es/dropdown-b2dab5bb.cjs +0 -1
  130. package/es/el-button-34665425.js +0 -237
  131. package/es/el-button-960edd49.cjs +0 -1
  132. package/es/el-dialog-a412484e.js +0 -267
  133. package/es/el-dialog-cd484c1f.cjs +0 -1
  134. package/es/el-empty-627ec09e.cjs +0 -1
  135. package/es/el-form-item-668ba024.js +0 -1263
  136. package/es/el-form-item-e1c3104b.cjs +0 -12
  137. package/es/el-input-22e66e37.js +0 -523
  138. package/es/el-input-5163bda3.cjs +0 -1
  139. package/es/el-input-number-481e21c5.js +0 -284
  140. package/es/el-input-number-eb54cde4.cjs +0 -1
  141. package/es/el-loading-15a5501c.cjs +0 -1
  142. package/es/el-loading-d4e403ab.js +0 -187
  143. package/es/el-menu-item-404c10e5.js +0 -772
  144. package/es/el-menu-item-ac89e804.cjs +0 -1
  145. package/es/el-message-ad87b9dd.cjs +0 -1
  146. package/es/el-message-box-41f39f6d.js +0 -558
  147. package/es/el-message-box-6694f827.cjs +0 -1
  148. package/es/el-message-ef506caa.js +0 -375
  149. package/es/el-overlay-4a9fa4e1.js +0 -269
  150. package/es/el-overlay-e5d318c3.cjs +0 -1
  151. package/es/el-popconfirm-7b9183aa.js +0 -140
  152. package/es/el-popconfirm-a497b279.cjs +0 -1
  153. package/es/el-popper-14a9d493.cjs +0 -1
  154. package/es/el-popper-e73466eb.js +0 -2263
  155. package/es/el-scrollbar-45318df0.js +0 -201
  156. package/es/el-scrollbar-8bf765f2.cjs +0 -1
  157. package/es/el-segmented-3ba6d664.cjs +0 -1
  158. package/es/el-segmented-41820018.js +0 -135
  159. package/es/el-select-1d2309a1.cjs +0 -1
  160. package/es/el-select-d7a00294.js +0 -1130
  161. package/es/el-table-column-a2d0c635.js +0 -3805
  162. package/es/el-table-column-be9a76bb.cjs +0 -14
  163. package/es/el-tag-7f391090.js +0 -280
  164. package/es/el-tag-8d49d4d2.cjs +0 -1
  165. package/es/index-02ca0096.cjs +0 -5
  166. package/es/index-3120be08.js +0 -14
  167. package/es/index-5b81f4da.cjs +0 -1
  168. package/es/index-85a32a00.js +0 -59
  169. package/es/index-8d3c5e96.cjs +0 -3
  170. package/es/index-94f38460.js +0 -306
  171. package/es/index-a99a5307.cjs +0 -1
  172. package/es/index-b90c746b.cjs +0 -1
  173. package/es/index-d94bae37.cjs +0 -1
  174. package/es/index-d99fdc6d.js +0 -159
  175. package/es/use-form-common-props-592797e2.cjs +0 -2
  176. package/es/use-form-common-props-cc347a83.js +0 -171
  177. package/es/use-global-config-584b62f1.cjs +0 -1
  178. package/es/use-global-config-c7f0a7e3.js +0 -73
  179. package/es/validator-10fa54fe.js +0 -5
  180. package/es/validator-af488a9a.cjs +0 -1
  181. package/es/vnode-1b827c99.cjs +0 -1
  182. package/es/vnode-6be33bb1.js +0 -14
  183. package/packages/Dialog/index.ts +0 -8
  184. package/packages/Dialog/index.vue +0 -54
  185. package/src/pages/Dialog/index.vue +0 -16
@@ -0,0 +1,1251 @@
1
+ import { shallowRef as it, ref as T, computed as u, inject as we, getCurrentInstance as Ve, toRaw as rt, watch as G, defineComponent as pe, unref as $e, reactive as de, toRefs as Be, onBeforeUnmount as fl, nextTick as Q, withDirectives as ue, openBlock as v, createElementBlock as w, normalizeClass as m, withModifiers as F, renderSlot as M, createElementVNode as k, toDisplayString as H, vShow as Pe, onMounted as We, normalizeStyle as Ce, createCommentVNode as L, watchEffect as ut, provide as vl, isVNode as dt, resolveComponent as q, resolveDirective as ct, toHandlerKey as pt, createVNode as _, withCtx as $, Fragment as se, renderList as Se, createTextVNode as ol, createBlock as P, withKeys as ie, vModelText as ft, resolveDynamicComponent as Le, mergeProps as al, normalizeProps as vt } from "vue";
2
+ import { b as bt, d as sl, a as mt, U as x, C as Fe, h as il, n as ht, u as gt, q as yt, g as St, E as Ot } from "./el-popper-544fd77e.js";
3
+ import { t as rl, E as Ct } from "./index-5d4e5c51.js";
4
+ import { o as wt, a as Vt, E as Et } from "./index-74fb90c7.js";
5
+ import { h as z, a as bl, u as It } from "./index-34592e82.js";
6
+ import { b as ml, f as U, u as ce, _ as Ee, j, i as Oe, C as ul, s as Tt, p as kt, x as re, D as Dt, c as Mt, e as W, w as Rt, l as hl } from "./base-62a70f61.js";
7
+ import { u as ee, n as X, l as te, d as $t, f as Lt, M as Nt, V as Bt, e as Pt, h as Wt, i as dl, N as Ft, O as zt } from "./el-scrollbar-fae984e3.js";
8
+ import { u as At, a as Kt, f as Ht } from "./vnode-a0795a4b.js";
9
+ import { s as Gt } from "./scroll-7d352c1f.js";
10
+ import { t as Ut, d as jt } from "./debounce-5f2ec4be.js";
11
+ import { b as qt, C as Qt } from "./el-tag-2fc9b9eb.js";
12
+ var cl = 1 / 0, Xt = 17976931348623157e292;
13
+ function Yt(e) {
14
+ if (!e)
15
+ return e === 0 ? e : 0;
16
+ if (e = Ut(e), e === cl || e === -cl) {
17
+ var o = e < 0 ? -1 : 1;
18
+ return o * Xt;
19
+ }
20
+ return e === e ? e : 0;
21
+ }
22
+ function Zt(e) {
23
+ var o = Yt(e), a = o % 1;
24
+ return o === o ? a ? o - a : o : 0;
25
+ }
26
+ function Jt(e, o, a, f) {
27
+ for (var d = e.length, p = a + (f ? 1 : -1); f ? p-- : ++p < d; )
28
+ if (o(e[p], p, e))
29
+ return p;
30
+ return -1;
31
+ }
32
+ var _t = Math.max, xt = Math.min;
33
+ function en(e, o, a) {
34
+ var f = e == null ? 0 : e.length;
35
+ if (!f)
36
+ return -1;
37
+ var d = f - 1;
38
+ return a !== void 0 && (d = Zt(a), d = a < 0 ? _t(f + d, 0) : xt(d, f - 1)), Jt(e, qt(o), d, !0);
39
+ }
40
+ const gl = 11, ln = 2;
41
+ function tn() {
42
+ const e = it(), o = T(0), a = u(() => ({
43
+ minWidth: `${Math.max(o.value, gl)}px`
44
+ }));
45
+ return ee(e, () => {
46
+ var d, p;
47
+ o.value = (p = (d = e.value) == null ? void 0 : d.getBoundingClientRect().width) != null ? p : 0;
48
+ }), {
49
+ calculatorRef: e,
50
+ calculatorWidth: o,
51
+ inputStyle: a
52
+ };
53
+ }
54
+ const yl = {
55
+ label: "label",
56
+ value: "value",
57
+ disabled: "disabled",
58
+ options: "options"
59
+ };
60
+ function nn(e) {
61
+ const o = u(() => ({ ...yl, ...e.props }));
62
+ return {
63
+ aliasProps: o,
64
+ getLabel: (t) => z(t, o.value.label),
65
+ getValue: (t) => z(t, o.value.value),
66
+ getDisabled: (t) => z(t, o.value.disabled),
67
+ getOptions: (t) => z(t, o.value.options)
68
+ };
69
+ }
70
+ const Sl = Symbol("ElSelectGroup"), Ie = Symbol("ElSelect"), Ne = "ElOption", on = ml({
71
+ value: {
72
+ type: [String, Number, Boolean, Object],
73
+ required: !0
74
+ },
75
+ label: {
76
+ type: [String, Number]
77
+ },
78
+ created: Boolean,
79
+ disabled: Boolean
80
+ }), an = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
81
+ function sn(e, o) {
82
+ const a = we(Ie);
83
+ a || bt(Ne, "usage: <el-select><el-option /></el-select/>");
84
+ const f = we(Sl, { disabled: !1 }), d = u(() => y(X(a.props.modelValue), e.value)), p = u(() => {
85
+ var i;
86
+ if (a.props.multiple) {
87
+ const O = X((i = a.props.modelValue) != null ? i : []);
88
+ return !d.value && O.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
89
+ } else
90
+ return !1;
91
+ }), t = u(() => {
92
+ var i;
93
+ return (i = e.label) != null ? i : U(e.value) ? "" : e.value;
94
+ }), C = u(() => e.value || e.label || ""), h = u(() => e.disabled || o.groupDisabled || p.value), S = Ve(), y = (i = [], O) => {
95
+ if (U(e.value)) {
96
+ const I = a.props.valueKey;
97
+ return i && i.some((R) => rt(z(R, I)) === z(O, I));
98
+ } else
99
+ return i && i.includes(O);
100
+ }, b = () => {
101
+ !e.disabled && !f.disabled && (a.states.hoveringIndex = a.optionsArray.indexOf(S.proxy));
102
+ }, s = (i) => {
103
+ const O = new RegExp(an(i), "i");
104
+ o.visible = O.test(String(t.value)) || e.created;
105
+ };
106
+ return G(() => t.value, () => {
107
+ !e.created && !a.props.remote && a.setSelected();
108
+ }), G(() => e.value, (i, O) => {
109
+ const { remote: I, valueKey: R } = a.props;
110
+ if ((I ? i !== O : !te(i, O)) && (a.onOptionDestroy(O, S.proxy), a.onOptionCreate(S.proxy)), !e.created && !I) {
111
+ if (R && U(i) && U(O) && i[R] === O[R])
112
+ return;
113
+ a.setSelected();
114
+ }
115
+ }), G(() => f.disabled, () => {
116
+ o.groupDisabled = f.disabled;
117
+ }, { immediate: !0 }), {
118
+ select: a,
119
+ currentLabel: t,
120
+ currentValue: C,
121
+ itemSelected: d,
122
+ isDisabled: h,
123
+ hoverItem: b,
124
+ updateOption: s
125
+ };
126
+ }
127
+ const rn = pe({
128
+ name: Ne,
129
+ componentName: Ne,
130
+ props: on,
131
+ setup(e) {
132
+ const o = ce("select"), a = bl(), f = u(() => [
133
+ o.be("dropdown", "item"),
134
+ o.is("disabled", $e(C)),
135
+ o.is("selected", $e(t)),
136
+ o.is("hovering", $e(s))
137
+ ]), d = de({
138
+ index: -1,
139
+ groupDisabled: !1,
140
+ visible: !0,
141
+ hover: !1
142
+ }), {
143
+ currentLabel: p,
144
+ itemSelected: t,
145
+ isDisabled: C,
146
+ select: h,
147
+ hoverItem: S,
148
+ updateOption: y
149
+ } = sn(e, d), { visible: b, hover: s } = Be(d), i = Ve().proxy;
150
+ h.onOptionCreate(i), fl(() => {
151
+ const I = i.value;
152
+ Q(() => {
153
+ const { selected: R } = h.states, g = R.some((c) => c.value === i.value);
154
+ h.states.cachedOptions.get(I) === i && !g && h.states.cachedOptions.delete(I);
155
+ }), h.onOptionDestroy(I, i);
156
+ });
157
+ function O() {
158
+ C.value || h.handleOptionSelect(i);
159
+ }
160
+ return {
161
+ ns: o,
162
+ id: a,
163
+ containerKls: f,
164
+ currentLabel: p,
165
+ itemSelected: t,
166
+ isDisabled: C,
167
+ select: h,
168
+ visible: b,
169
+ hover: s,
170
+ states: d,
171
+ hoverItem: S,
172
+ updateOption: y,
173
+ selectOptionClick: O
174
+ };
175
+ }
176
+ });
177
+ function un(e, o) {
178
+ return ue((v(), w("li", {
179
+ id: e.id,
180
+ class: m(e.containerKls),
181
+ role: "option",
182
+ "aria-disabled": e.isDisabled || void 0,
183
+ "aria-selected": e.itemSelected,
184
+ onMousemove: e.hoverItem,
185
+ onClick: F(e.selectOptionClick, ["stop"])
186
+ }, [
187
+ M(e.$slots, "default", {}, () => [
188
+ k("span", null, H(e.currentLabel), 1)
189
+ ])
190
+ ], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
191
+ [Pe, e.visible]
192
+ ]);
193
+ }
194
+ var ze = /* @__PURE__ */ Ee(rn, [["render", un], ["__file", "option.vue"]]);
195
+ const dn = pe({
196
+ name: "ElSelectDropdown",
197
+ componentName: "ElSelectDropdown",
198
+ setup() {
199
+ const e = we(Ie), o = ce("select"), a = u(() => e.props.popperClass), f = u(() => e.props.multiple), d = u(() => e.props.fitInputWidth), p = T("");
200
+ function t() {
201
+ var C;
202
+ const h = (C = e.selectRef) == null ? void 0 : C.offsetWidth;
203
+ h ? p.value = `${h - ln}px` : p.value = "";
204
+ }
205
+ return We(() => {
206
+ t(), ee(e.selectRef, t);
207
+ }), {
208
+ ns: o,
209
+ minWidth: p,
210
+ popperClass: a,
211
+ isMultiple: f,
212
+ isFitInputWidth: d
213
+ };
214
+ }
215
+ });
216
+ function cn(e, o, a, f, d, p) {
217
+ return v(), w("div", {
218
+ class: m([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
219
+ style: Ce({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
220
+ }, [
221
+ e.$slots.header ? (v(), w("div", {
222
+ key: 0,
223
+ class: m(e.ns.be("dropdown", "header"))
224
+ }, [
225
+ M(e.$slots, "header")
226
+ ], 2)) : L("v-if", !0),
227
+ M(e.$slots, "default"),
228
+ e.$slots.footer ? (v(), w("div", {
229
+ key: 1,
230
+ class: m(e.ns.be("dropdown", "footer"))
231
+ }, [
232
+ M(e.$slots, "footer")
233
+ ], 2)) : L("v-if", !0)
234
+ ], 6);
235
+ }
236
+ var pn = /* @__PURE__ */ Ee(dn, [["render", cn], ["__file", "select-dropdown.vue"]]);
237
+ const fn = (e, o) => {
238
+ const { t: a } = It(), f = bl(), d = ce("select"), p = ce("input"), t = de({
239
+ inputValue: "",
240
+ options: /* @__PURE__ */ new Map(),
241
+ cachedOptions: /* @__PURE__ */ new Map(),
242
+ optionValues: [],
243
+ selected: [],
244
+ selectionWidth: 0,
245
+ collapseItemWidth: 0,
246
+ selectedLabel: "",
247
+ hoveringIndex: -1,
248
+ previousQuery: null,
249
+ inputHovering: !1,
250
+ menuVisibleOnFocus: !1,
251
+ isBeforeHide: !1
252
+ }), C = T(), h = T(), S = T(), y = T(), b = T(), s = T(), i = T(), O = T(), I = T(), R = T(), g = T(), c = T(!1), V = T(), { form: Y, formItem: B } = $t(), { inputId: A } = Lt(e, {
253
+ formItemContext: B
254
+ }), { valueOnClear: Ke, isEmptyValue: Z } = Nt(e), {
255
+ isComposing: He,
256
+ handleCompositionStart: Ol,
257
+ handleCompositionUpdate: Cl,
258
+ handleCompositionEnd: wl
259
+ } = At({
260
+ afterComposition: (l) => Je(l)
261
+ }), ne = u(() => e.disabled || !!(Y != null && Y.disabled)), { wrapperRef: Ge, isFocused: Te, handleBlur: Vl } = Kt(b, {
262
+ disabled: ne,
263
+ afterFocus() {
264
+ e.automaticDropdown && !c.value && (c.value = !0, t.menuVisibleOnFocus = !0);
265
+ },
266
+ beforeBlur(l) {
267
+ var n, r;
268
+ return ((n = S.value) == null ? void 0 : n.isFocusInsideContent(l)) || ((r = y.value) == null ? void 0 : r.isFocusInsideContent(l));
269
+ },
270
+ afterBlur() {
271
+ var l;
272
+ c.value = !1, t.menuVisibleOnFocus = !1, e.validateEvent && ((l = B == null ? void 0 : B.validate) == null || l.call(B, "blur").catch((n) => sl()));
273
+ }
274
+ }), ke = u(() => j(e.modelValue) ? e.modelValue.length > 0 : !Z(e.modelValue)), El = u(() => {
275
+ var l;
276
+ return (l = Y == null ? void 0 : Y.statusIcon) != null ? l : !1;
277
+ }), Il = u(() => e.clearable && !ne.value && ke.value && (Te.value || t.inputHovering)), Ue = u(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Tl = u(() => d.is("reverse", !!(Ue.value && c.value))), De = u(() => (B == null ? void 0 : B.validateState) || ""), kl = u(() => De.value && Bt[De.value]), Dl = u(() => e.remote ? 300 : 0), Ml = u(() => e.remote && !t.inputValue && t.options.size === 0), Rl = u(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && t.inputValue && t.options.size > 0 && oe.value === 0 ? e.noMatchText || a("el.select.noMatch") : t.options.size === 0 ? e.noDataText || a("el.select.noData") : null), oe = u(() => D.value.filter((l) => l.visible).length), D = u(() => {
278
+ const l = Array.from(t.options.values()), n = [];
279
+ return t.optionValues.forEach((r) => {
280
+ const E = l.findIndex((N) => N.value === r);
281
+ E > -1 && n.push(l[E]);
282
+ }), n.length >= l.length ? n : l;
283
+ }), $l = u(() => Array.from(t.cachedOptions.values())), Ll = u(() => {
284
+ const l = D.value.filter((n) => !n.created).some((n) => n.currentLabel === t.inputValue);
285
+ return e.filterable && e.allowCreate && t.inputValue !== "" && !l;
286
+ }), je = () => {
287
+ e.filterable && re(e.filterMethod) || e.filterable && e.remote && re(e.remoteMethod) || D.value.forEach((l) => {
288
+ var n;
289
+ (n = l.updateOption) == null || n.call(l, t.inputValue);
290
+ });
291
+ }, qe = Pt(), Nl = u(() => ["small"].includes(qe.value) ? "small" : "default"), Qe = u({
292
+ get() {
293
+ return c.value && !Ml.value;
294
+ },
295
+ set(l) {
296
+ c.value = l;
297
+ }
298
+ }), Bl = u(() => {
299
+ if (e.multiple && !Oe(e.modelValue))
300
+ return X(e.modelValue).length === 0 && !t.inputValue;
301
+ const l = j(e.modelValue) ? e.modelValue[0] : e.modelValue;
302
+ return e.filterable || Oe(l) ? !t.inputValue : !0;
303
+ }), Pl = u(() => {
304
+ var l;
305
+ const n = (l = e.placeholder) != null ? l : a("el.select.placeholder");
306
+ return e.multiple || !ke.value ? n : t.selectedLabel;
307
+ }), Wl = u(() => ul ? null : "mouseenter");
308
+ G(() => e.modelValue, (l, n) => {
309
+ e.multiple && e.filterable && !e.reserveKeyword && (t.inputValue = "", fe("")), ve(), !te(l, n) && e.validateEvent && (B == null || B.validate("change").catch((r) => sl()));
310
+ }, {
311
+ flush: "post",
312
+ deep: !0
313
+ }), G(() => c.value, (l) => {
314
+ l ? fe(t.inputValue) : (t.inputValue = "", t.previousQuery = null, t.isBeforeHide = !0), o("visible-change", l);
315
+ }), G(() => t.options.entries(), () => {
316
+ Tt && (ve(), e.defaultFirstOption && (e.filterable || e.remote) && oe.value && Xe());
317
+ }, {
318
+ flush: "post"
319
+ }), G([() => t.hoveringIndex, D], ([l]) => {
320
+ kt(l) && l > -1 ? V.value = D.value[l] || {} : V.value = {}, D.value.forEach((n) => {
321
+ n.hover = V.value === n;
322
+ });
323
+ }), ut(() => {
324
+ t.isBeforeHide || je();
325
+ });
326
+ const fe = (l) => {
327
+ t.previousQuery === l || He.value || (t.previousQuery = l, e.filterable && re(e.filterMethod) ? e.filterMethod(l) : e.filterable && e.remote && re(e.remoteMethod) && e.remoteMethod(l), e.defaultFirstOption && (e.filterable || e.remote) && oe.value ? Q(Xe) : Q(Fl));
328
+ }, Xe = () => {
329
+ const l = D.value.filter((N) => N.visible && !N.disabled && !N.states.groupDisabled), n = l.find((N) => N.created), r = l[0], E = D.value.map((N) => N.value);
330
+ t.hoveringIndex = ll(E, n || r);
331
+ }, ve = () => {
332
+ if (e.multiple)
333
+ t.selectedLabel = "";
334
+ else {
335
+ const n = j(e.modelValue) ? e.modelValue[0] : e.modelValue, r = Me(n);
336
+ t.selectedLabel = r.currentLabel, t.selected = [r];
337
+ return;
338
+ }
339
+ const l = [];
340
+ Oe(e.modelValue) || X(e.modelValue).forEach((n) => {
341
+ l.push(Me(n));
342
+ }), t.selected = l;
343
+ }, Me = (l) => {
344
+ let n;
345
+ const r = Dt(l);
346
+ for (let le = t.cachedOptions.size - 1; le >= 0; le--) {
347
+ const K = $l.value[le];
348
+ if (r ? z(K.value, e.valueKey) === z(l, e.valueKey) : K.value === l) {
349
+ n = {
350
+ index: D.value.filter((J) => !J.created).indexOf(K),
351
+ value: l,
352
+ currentLabel: K.currentLabel,
353
+ get isDisabled() {
354
+ return K.isDisabled;
355
+ }
356
+ };
357
+ break;
358
+ }
359
+ }
360
+ if (n)
361
+ return n;
362
+ const E = r ? l.label : l ?? "";
363
+ return {
364
+ index: -1,
365
+ value: l,
366
+ currentLabel: E
367
+ };
368
+ }, Fl = () => {
369
+ t.hoveringIndex = D.value.findIndex((l) => t.selected.some((n) => he(n) === he(l)));
370
+ }, zl = () => {
371
+ t.selectionWidth = Number.parseFloat(window.getComputedStyle(h.value).width);
372
+ }, Al = () => {
373
+ t.collapseItemWidth = R.value.getBoundingClientRect().width;
374
+ }, Re = () => {
375
+ var l, n;
376
+ (n = (l = S.value) == null ? void 0 : l.updatePopper) == null || n.call(l);
377
+ }, Ye = () => {
378
+ var l, n;
379
+ (n = (l = y.value) == null ? void 0 : l.updatePopper) == null || n.call(l);
380
+ }, Ze = () => {
381
+ t.inputValue.length > 0 && !c.value && (c.value = !0), fe(t.inputValue);
382
+ }, Je = (l) => {
383
+ if (t.inputValue = l.target.value, e.remote)
384
+ _e();
385
+ else
386
+ return Ze();
387
+ }, _e = jt(() => {
388
+ Ze();
389
+ }, Dl.value), ae = (l) => {
390
+ te(e.modelValue, l) || o(Fe, l);
391
+ }, Kl = (l) => en(l, (n) => {
392
+ const r = t.cachedOptions.get(n);
393
+ return r && !r.disabled && !r.states.groupDisabled;
394
+ }), Hl = (l) => {
395
+ if (e.multiple && l.code !== mt.delete && l.target.value.length <= 0) {
396
+ const n = X(e.modelValue).slice(), r = Kl(n);
397
+ if (r < 0)
398
+ return;
399
+ const E = n[r];
400
+ n.splice(r, 1), o(x, n), ae(n), o("remove-tag", E);
401
+ }
402
+ }, Gl = (l, n) => {
403
+ const r = t.selected.indexOf(n);
404
+ if (r > -1 && !ne.value) {
405
+ const E = X(e.modelValue).slice();
406
+ E.splice(r, 1), o(x, E), ae(E), o("remove-tag", n.value);
407
+ }
408
+ l.stopPropagation(), me();
409
+ }, xe = (l) => {
410
+ l.stopPropagation();
411
+ const n = e.multiple ? [] : Ke.value;
412
+ if (e.multiple)
413
+ for (const r of t.selected)
414
+ r.isDisabled && n.push(r.value);
415
+ o(x, n), ae(n), t.hoveringIndex = -1, c.value = !1, o("clear"), me();
416
+ }, el = (l) => {
417
+ var n;
418
+ if (e.multiple) {
419
+ const r = X((n = e.modelValue) != null ? n : []).slice(), E = ll(r, l);
420
+ E > -1 ? r.splice(E, 1) : (e.multipleLimit <= 0 || r.length < e.multipleLimit) && r.push(l.value), o(x, r), ae(r), l.created && fe(""), e.filterable && !e.reserveKeyword && (t.inputValue = "");
421
+ } else
422
+ !te(e.modelValue, l.value) && o(x, l.value), ae(l.value), c.value = !1;
423
+ me(), !c.value && Q(() => {
424
+ be(l);
425
+ });
426
+ }, ll = (l, n) => Oe(n) ? -1 : U(n.value) ? l.findIndex((r) => te(z(r, e.valueKey), he(n))) : l.indexOf(n.value), be = (l) => {
427
+ var n, r, E, N, le;
428
+ const K = j(l) ? l[0] : l;
429
+ let ye = null;
430
+ if (K != null && K.value) {
431
+ const J = D.value.filter((st) => st.value === K.value);
432
+ J.length > 0 && (ye = J[0].$el);
433
+ }
434
+ if (S.value && ye) {
435
+ const J = (N = (E = (r = (n = S.value) == null ? void 0 : n.popperRef) == null ? void 0 : r.contentRef) == null ? void 0 : E.querySelector) == null ? void 0 : N.call(E, `.${d.be("dropdown", "wrap")}`);
436
+ J && Gt(J, ye);
437
+ }
438
+ (le = g.value) == null || le.handleScroll();
439
+ }, Ul = (l) => {
440
+ t.options.set(l.value, l), t.cachedOptions.set(l.value, l);
441
+ }, jl = (l, n) => {
442
+ t.options.get(l) === n && t.options.delete(l);
443
+ }, ql = u(() => {
444
+ var l, n;
445
+ return (n = (l = S.value) == null ? void 0 : l.popperRef) == null ? void 0 : n.contentRef;
446
+ }), Ql = () => {
447
+ t.isBeforeHide = !1, Q(() => {
448
+ var l;
449
+ (l = g.value) == null || l.update(), be(t.selected);
450
+ });
451
+ }, me = () => {
452
+ var l;
453
+ (l = b.value) == null || l.focus();
454
+ }, Xl = () => {
455
+ var l;
456
+ if (c.value) {
457
+ c.value = !1, Q(() => {
458
+ var n;
459
+ return (n = b.value) == null ? void 0 : n.blur();
460
+ });
461
+ return;
462
+ }
463
+ (l = b.value) == null || l.blur();
464
+ }, Yl = (l) => {
465
+ xe(l);
466
+ }, Zl = (l) => {
467
+ if (c.value = !1, Te.value) {
468
+ const n = new FocusEvent("blur", l);
469
+ Q(() => Vl(n));
470
+ }
471
+ }, Jl = () => {
472
+ t.inputValue.length > 0 ? t.inputValue = "" : c.value = !1;
473
+ }, tl = () => {
474
+ ne.value || (ul && (t.inputHovering = !0), t.menuVisibleOnFocus ? t.menuVisibleOnFocus = !1 : c.value = !c.value);
475
+ }, _l = () => {
476
+ if (!c.value)
477
+ tl();
478
+ else {
479
+ const l = D.value[t.hoveringIndex];
480
+ l && !l.isDisabled && el(l);
481
+ }
482
+ }, he = (l) => U(l.value) ? z(l.value, e.valueKey) : l.value, xl = u(() => D.value.filter((l) => l.visible).every((l) => l.isDisabled)), et = u(() => e.multiple ? e.collapseTags ? t.selected.slice(0, e.maxCollapseTags) : t.selected : []), lt = u(() => e.multiple ? e.collapseTags ? t.selected.slice(e.maxCollapseTags) : [] : []), nl = (l) => {
483
+ if (!c.value) {
484
+ c.value = !0;
485
+ return;
486
+ }
487
+ if (!(t.options.size === 0 || oe.value === 0 || He.value) && !xl.value) {
488
+ 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));
489
+ const n = D.value[t.hoveringIndex];
490
+ (n.isDisabled || !n.visible) && nl(l), Q(() => be(V.value));
491
+ }
492
+ }, tt = () => {
493
+ if (!h.value)
494
+ return 0;
495
+ const l = window.getComputedStyle(h.value);
496
+ return Number.parseFloat(l.gap || "6px");
497
+ }, nt = u(() => {
498
+ const l = tt(), n = e.filterable ? l + gl : 0;
499
+ return { maxWidth: `${R.value && e.maxCollapseTags === 1 ? t.selectionWidth - t.collapseItemWidth - l - n : t.selectionWidth - n}px` };
500
+ }), ot = u(() => ({ maxWidth: `${t.selectionWidth}px` })), at = (l) => {
501
+ o("popup-scroll", l);
502
+ };
503
+ ee(h, zl), ee(Ge, Re), ee(I, Ye), ee(R, Al);
504
+ let ge;
505
+ return G(() => Qe.value, (l) => {
506
+ l ? ge = ee(O, Re).stop : (ge == null || ge(), ge = void 0);
507
+ }), We(() => {
508
+ ve();
509
+ }), {
510
+ inputId: A,
511
+ contentId: f,
512
+ nsSelect: d,
513
+ nsInput: p,
514
+ states: t,
515
+ isFocused: Te,
516
+ expanded: c,
517
+ optionsArray: D,
518
+ hoverOption: V,
519
+ selectSize: qe,
520
+ filteredOptionsCount: oe,
521
+ updateTooltip: Re,
522
+ updateTagTooltip: Ye,
523
+ debouncedOnInputChange: _e,
524
+ onInput: Je,
525
+ deletePrevTag: Hl,
526
+ deleteTag: Gl,
527
+ deleteSelected: xe,
528
+ handleOptionSelect: el,
529
+ scrollToOption: be,
530
+ hasModelValue: ke,
531
+ shouldShowPlaceholder: Bl,
532
+ currentPlaceholder: Pl,
533
+ mouseEnterEventName: Wl,
534
+ needStatusIcon: El,
535
+ showClearBtn: Il,
536
+ iconComponent: Ue,
537
+ iconReverse: Tl,
538
+ validateState: De,
539
+ validateIcon: kl,
540
+ showNewOption: Ll,
541
+ updateOptions: je,
542
+ collapseTagSize: Nl,
543
+ setSelected: ve,
544
+ selectDisabled: ne,
545
+ emptyText: Rl,
546
+ handleCompositionStart: Ol,
547
+ handleCompositionUpdate: Cl,
548
+ handleCompositionEnd: wl,
549
+ onOptionCreate: Ul,
550
+ onOptionDestroy: jl,
551
+ handleMenuEnter: Ql,
552
+ focus: me,
553
+ blur: Xl,
554
+ handleClearClick: Yl,
555
+ handleClickOutside: Zl,
556
+ handleEsc: Jl,
557
+ toggleMenu: tl,
558
+ selectOption: _l,
559
+ getValueKey: he,
560
+ navigateOptions: nl,
561
+ dropdownMenuVisible: Qe,
562
+ showTagList: et,
563
+ collapseTagList: lt,
564
+ popupScroll: at,
565
+ getOption: Me,
566
+ tagStyle: nt,
567
+ collapseTagStyle: ot,
568
+ popperRef: ql,
569
+ inputRef: b,
570
+ tooltipRef: S,
571
+ tagTooltipRef: y,
572
+ prefixRef: s,
573
+ suffixRef: i,
574
+ selectRef: C,
575
+ wrapperRef: Ge,
576
+ selectionRef: h,
577
+ scrollbarRef: g,
578
+ menuRef: O,
579
+ tagMenuRef: I,
580
+ collapseItemRef: R
581
+ };
582
+ };
583
+ var vn = pe({
584
+ name: "ElOptions",
585
+ setup(e, { slots: o }) {
586
+ const a = we(Ie);
587
+ let f = [];
588
+ return () => {
589
+ var d, p;
590
+ const t = (d = o.default) == null ? void 0 : d.call(o), C = [];
591
+ function h(S) {
592
+ j(S) && S.forEach((y) => {
593
+ var b, s, i, O;
594
+ const I = (b = (y == null ? void 0 : y.type) || {}) == null ? void 0 : b.name;
595
+ I === "ElOptionGroup" ? h(!Mt(y.children) && !j(y.children) && re((s = y.children) == null ? void 0 : s.default) ? (i = y.children) == null ? void 0 : i.default() : y.children) : I === "ElOption" ? C.push((O = y.props) == null ? void 0 : O.value) : j(y.children) && h(y.children);
596
+ });
597
+ }
598
+ return t.length && h((p = t[0]) == null ? void 0 : p.children), te(C, f) || (f = C, a && (a.states.optionValues = C)), t;
599
+ };
600
+ }
601
+ });
602
+ const bn = ml({
603
+ name: String,
604
+ id: String,
605
+ modelValue: {
606
+ type: W([
607
+ Array,
608
+ String,
609
+ Number,
610
+ Boolean,
611
+ Object
612
+ ]),
613
+ default: void 0
614
+ },
615
+ autocomplete: {
616
+ type: String,
617
+ default: "off"
618
+ },
619
+ automaticDropdown: Boolean,
620
+ size: Wt,
621
+ effect: {
622
+ type: W(String),
623
+ default: "light"
624
+ },
625
+ disabled: Boolean,
626
+ clearable: Boolean,
627
+ filterable: Boolean,
628
+ allowCreate: Boolean,
629
+ loading: Boolean,
630
+ popperClass: {
631
+ type: String,
632
+ default: ""
633
+ },
634
+ popperStyle: {
635
+ type: W([String, Object])
636
+ },
637
+ popperOptions: {
638
+ type: W(Object),
639
+ default: () => ({})
640
+ },
641
+ remote: Boolean,
642
+ loadingText: String,
643
+ noMatchText: String,
644
+ noDataText: String,
645
+ remoteMethod: {
646
+ type: W(Function)
647
+ },
648
+ filterMethod: {
649
+ type: W(Function)
650
+ },
651
+ multiple: Boolean,
652
+ multipleLimit: {
653
+ type: Number,
654
+ default: 0
655
+ },
656
+ placeholder: {
657
+ type: String
658
+ },
659
+ defaultFirstOption: Boolean,
660
+ reserveKeyword: {
661
+ type: Boolean,
662
+ default: !0
663
+ },
664
+ valueKey: {
665
+ type: String,
666
+ default: "value"
667
+ },
668
+ collapseTags: Boolean,
669
+ collapseTagsTooltip: Boolean,
670
+ maxCollapseTags: {
671
+ type: Number,
672
+ default: 1
673
+ },
674
+ teleported: il.teleported,
675
+ persistent: {
676
+ type: Boolean,
677
+ default: !0
678
+ },
679
+ clearIcon: {
680
+ type: dl,
681
+ default: wt
682
+ },
683
+ fitInputWidth: Boolean,
684
+ suffixIcon: {
685
+ type: dl,
686
+ default: Vt
687
+ },
688
+ tagType: { ...rl.type, default: "info" },
689
+ tagEffect: { ...rl.effect, default: "light" },
690
+ validateEvent: {
691
+ type: Boolean,
692
+ default: !0
693
+ },
694
+ remoteShowSuffix: Boolean,
695
+ showArrow: {
696
+ type: Boolean,
697
+ default: !0
698
+ },
699
+ offset: {
700
+ type: Number,
701
+ default: 12
702
+ },
703
+ placement: {
704
+ type: W(String),
705
+ values: ht,
706
+ default: "bottom-start"
707
+ },
708
+ fallbackPlacements: {
709
+ type: W(Array),
710
+ default: ["bottom-start", "top-start", "right", "left"]
711
+ },
712
+ tabindex: {
713
+ type: [String, Number],
714
+ default: 0
715
+ },
716
+ appendTo: il.appendTo,
717
+ options: {
718
+ type: W(Array)
719
+ },
720
+ props: {
721
+ type: W(Object),
722
+ default: () => yl
723
+ },
724
+ ...Ft,
725
+ ...gt(["ariaLabel"])
726
+ });
727
+ x + "", Fe + "", yt.scroll;
728
+ const mn = pe({
729
+ name: "ElOptionGroup",
730
+ componentName: "ElOptionGroup",
731
+ props: {
732
+ label: String,
733
+ disabled: Boolean
734
+ },
735
+ setup(e) {
736
+ const o = ce("select"), a = T(), f = Ve(), d = T([]);
737
+ vl(Sl, de({
738
+ ...Be(e)
739
+ }));
740
+ const p = u(() => d.value.some((S) => S.visible === !0)), t = (S) => {
741
+ var y;
742
+ return S.type.name === "ElOption" && !!((y = S.component) != null && y.proxy);
743
+ }, C = (S) => {
744
+ const y = X(S), b = [];
745
+ return y.forEach((s) => {
746
+ var i;
747
+ dt(s) && (t(s) ? b.push(s.component.proxy) : j(s.children) && s.children.length ? b.push(...C(s.children)) : (i = s.component) != null && i.subTree && b.push(...C(s.component.subTree)));
748
+ }), b;
749
+ }, h = () => {
750
+ d.value = C(f.subTree);
751
+ };
752
+ return We(() => {
753
+ h();
754
+ }), zt(a, h, {
755
+ attributes: !0,
756
+ subtree: !0,
757
+ childList: !0
758
+ }), {
759
+ groupRef: a,
760
+ visible: p,
761
+ ns: o
762
+ };
763
+ }
764
+ });
765
+ function hn(e, o, a, f, d, p) {
766
+ return ue((v(), w("ul", {
767
+ ref: "groupRef",
768
+ class: m(e.ns.be("group", "wrap"))
769
+ }, [
770
+ k("li", {
771
+ class: m(e.ns.be("group", "title"))
772
+ }, H(e.label), 3),
773
+ k("li", null, [
774
+ k("ul", {
775
+ class: m(e.ns.b("group"))
776
+ }, [
777
+ M(e.$slots, "default")
778
+ ], 2)
779
+ ])
780
+ ], 2)), [
781
+ [Pe, e.visible]
782
+ ]);
783
+ }
784
+ var Ae = /* @__PURE__ */ Ee(mn, [["render", hn], ["__file", "option-group.vue"]]);
785
+ const pl = "ElSelect", gn = pe({
786
+ name: pl,
787
+ componentName: pl,
788
+ components: {
789
+ ElSelectMenu: pn,
790
+ ElOption: ze,
791
+ ElOptions: vn,
792
+ ElOptionGroup: Ae,
793
+ ElTag: Ct,
794
+ ElScrollbar: St,
795
+ ElTooltip: Ot,
796
+ ElIcon: Et
797
+ },
798
+ directives: { ClickOutside: Qt },
799
+ props: bn,
800
+ emits: [
801
+ x,
802
+ Fe,
803
+ "remove-tag",
804
+ "clear",
805
+ "visible-change",
806
+ "focus",
807
+ "blur",
808
+ "popup-scroll"
809
+ ],
810
+ setup(e, { emit: o, slots: a }) {
811
+ const f = Ve();
812
+ f.appContext.config.warnHandler = (...g) => {
813
+ !g[0] || g[0].includes('Slot "default" invoked outside of the render function') || console.warn(...g);
814
+ };
815
+ const d = u(() => {
816
+ const { modelValue: g, multiple: c } = e, V = c ? [] : void 0;
817
+ return j(g) ? c ? g : V : c ? V : g;
818
+ }), p = de({
819
+ ...Be(e),
820
+ modelValue: d
821
+ }), t = fn(p, o), { calculatorRef: C, inputStyle: h } = tn(), { getLabel: S, getValue: y, getOptions: b, getDisabled: s } = nn(e), i = (g) => ({
822
+ label: S(g),
823
+ value: y(g),
824
+ disabled: s(g)
825
+ }), O = (g) => g.reduce((c, V) => (c.push(V), V.children && V.children.length > 0 && c.push(...O(V.children)), c), []), I = (g) => {
826
+ Ht(g || []).forEach((V) => {
827
+ var Y;
828
+ if (U(V) && (V.type.name === "ElOption" || V.type.name === "ElTree")) {
829
+ const B = V.type.name;
830
+ if (B === "ElTree") {
831
+ const A = ((Y = V.props) == null ? void 0 : Y.data) || [];
832
+ O(A).forEach((Z) => {
833
+ Z.currentLabel = Z.label || (U(Z.value) ? "" : Z.value), t.onOptionCreate(Z);
834
+ });
835
+ } else if (B === "ElOption") {
836
+ const A = { ...V.props };
837
+ A.currentLabel = A.label || (U(A.value) ? "" : A.value), t.onOptionCreate(A);
838
+ }
839
+ }
840
+ });
841
+ };
842
+ G(() => {
843
+ var g;
844
+ return (g = a.default) == null ? void 0 : g.call(a);
845
+ }, (g) => {
846
+ e.persistent || I(g);
847
+ }, {
848
+ immediate: !0
849
+ }), vl(Ie, de({
850
+ props: p,
851
+ states: t.states,
852
+ selectRef: t.selectRef,
853
+ optionsArray: t.optionsArray,
854
+ setSelected: t.setSelected,
855
+ handleOptionSelect: t.handleOptionSelect,
856
+ onOptionCreate: t.onOptionCreate,
857
+ onOptionDestroy: t.onOptionDestroy
858
+ }));
859
+ const R = u(() => e.multiple ? t.states.selected.map((g) => g.currentLabel) : t.states.selectedLabel);
860
+ return fl(() => {
861
+ f.appContext.config.warnHandler = void 0;
862
+ }), {
863
+ ...t,
864
+ modelValue: d,
865
+ selectedLabel: R,
866
+ calculatorRef: C,
867
+ inputStyle: h,
868
+ getLabel: S,
869
+ getValue: y,
870
+ getOptions: b,
871
+ getDisabled: s,
872
+ getOptionProps: i
873
+ };
874
+ }
875
+ });
876
+ function yn(e, o) {
877
+ const a = q("el-tag"), f = q("el-tooltip"), d = q("el-icon"), p = q("el-option"), t = q("el-option-group"), C = q("el-options"), h = q("el-scrollbar"), S = q("el-select-menu"), y = ct("click-outside");
878
+ return ue((v(), w("div", {
879
+ ref: "selectRef",
880
+ class: m([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
881
+ [pt(e.mouseEnterEventName)]: (b) => e.states.inputHovering = !0,
882
+ onMouseleave: (b) => e.states.inputHovering = !1
883
+ }, [
884
+ _(f, {
885
+ ref: "tooltipRef",
886
+ visible: e.dropdownMenuVisible,
887
+ placement: e.placement,
888
+ teleported: e.teleported,
889
+ "popper-class": [e.nsSelect.e("popper"), e.popperClass],
890
+ "popper-style": e.popperStyle,
891
+ "popper-options": e.popperOptions,
892
+ "fallback-placements": e.fallbackPlacements,
893
+ effect: e.effect,
894
+ pure: "",
895
+ trigger: "click",
896
+ transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
897
+ "stop-popper-mouse-event": !1,
898
+ "gpu-acceleration": !1,
899
+ persistent: e.persistent,
900
+ "append-to": e.appendTo,
901
+ "show-arrow": e.showArrow,
902
+ offset: e.offset,
903
+ onBeforeShow: e.handleMenuEnter,
904
+ onHide: (b) => e.states.isBeforeHide = !1
905
+ }, {
906
+ default: $(() => {
907
+ var b;
908
+ return [
909
+ k("div", {
910
+ ref: "wrapperRef",
911
+ class: m([
912
+ e.nsSelect.e("wrapper"),
913
+ e.nsSelect.is("focused", e.isFocused),
914
+ e.nsSelect.is("hovering", e.states.inputHovering),
915
+ e.nsSelect.is("filterable", e.filterable),
916
+ e.nsSelect.is("disabled", e.selectDisabled)
917
+ ]),
918
+ onClick: F(e.toggleMenu, ["prevent"])
919
+ }, [
920
+ e.$slots.prefix ? (v(), w("div", {
921
+ key: 0,
922
+ ref: "prefixRef",
923
+ class: m(e.nsSelect.e("prefix"))
924
+ }, [
925
+ M(e.$slots, "prefix")
926
+ ], 2)) : L("v-if", !0),
927
+ k("div", {
928
+ ref: "selectionRef",
929
+ class: m([
930
+ e.nsSelect.e("selection"),
931
+ e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)
932
+ ])
933
+ }, [
934
+ e.multiple ? M(e.$slots, "tag", {
935
+ key: 0,
936
+ data: e.states.selected,
937
+ deleteTag: e.deleteTag,
938
+ selectDisabled: e.selectDisabled
939
+ }, () => [
940
+ (v(!0), w(se, null, Se(e.showTagList, (s) => (v(), w("div", {
941
+ key: e.getValueKey(s),
942
+ class: m(e.nsSelect.e("selected-item"))
943
+ }, [
944
+ _(a, {
945
+ closable: !e.selectDisabled && !s.isDisabled,
946
+ size: e.collapseTagSize,
947
+ type: e.tagType,
948
+ effect: e.tagEffect,
949
+ "disable-transitions": "",
950
+ style: Ce(e.tagStyle),
951
+ onClose: (i) => e.deleteTag(i, s)
952
+ }, {
953
+ default: $(() => [
954
+ k("span", {
955
+ class: m(e.nsSelect.e("tags-text"))
956
+ }, [
957
+ M(e.$slots, "label", {
958
+ index: s.index,
959
+ label: s.currentLabel,
960
+ value: s.value
961
+ }, () => [
962
+ ol(H(s.currentLabel), 1)
963
+ ])
964
+ ], 2)
965
+ ]),
966
+ _: 2
967
+ }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
968
+ ], 2))), 128)),
969
+ e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (v(), P(f, {
970
+ key: 0,
971
+ ref: "tagTooltipRef",
972
+ disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
973
+ "fallback-placements": ["bottom", "top", "right", "left"],
974
+ effect: e.effect,
975
+ placement: "bottom",
976
+ "popper-class": e.popperClass,
977
+ "popper-style": e.popperStyle,
978
+ teleported: e.teleported
979
+ }, {
980
+ default: $(() => [
981
+ k("div", {
982
+ ref: "collapseItemRef",
983
+ class: m(e.nsSelect.e("selected-item"))
984
+ }, [
985
+ _(a, {
986
+ closable: !1,
987
+ size: e.collapseTagSize,
988
+ type: e.tagType,
989
+ effect: e.tagEffect,
990
+ "disable-transitions": "",
991
+ style: Ce(e.collapseTagStyle)
992
+ }, {
993
+ default: $(() => [
994
+ k("span", {
995
+ class: m(e.nsSelect.e("tags-text"))
996
+ }, " + " + H(e.states.selected.length - e.maxCollapseTags), 3)
997
+ ]),
998
+ _: 1
999
+ }, 8, ["size", "type", "effect", "style"])
1000
+ ], 2)
1001
+ ]),
1002
+ content: $(() => [
1003
+ k("div", {
1004
+ ref: "tagMenuRef",
1005
+ class: m(e.nsSelect.e("selection"))
1006
+ }, [
1007
+ (v(!0), w(se, null, Se(e.collapseTagList, (s) => (v(), w("div", {
1008
+ key: e.getValueKey(s),
1009
+ class: m(e.nsSelect.e("selected-item"))
1010
+ }, [
1011
+ _(a, {
1012
+ class: "in-tooltip",
1013
+ closable: !e.selectDisabled && !s.isDisabled,
1014
+ size: e.collapseTagSize,
1015
+ type: e.tagType,
1016
+ effect: e.tagEffect,
1017
+ "disable-transitions": "",
1018
+ onClose: (i) => e.deleteTag(i, s)
1019
+ }, {
1020
+ default: $(() => [
1021
+ k("span", {
1022
+ class: m(e.nsSelect.e("tags-text"))
1023
+ }, [
1024
+ M(e.$slots, "label", {
1025
+ index: s.index,
1026
+ label: s.currentLabel,
1027
+ value: s.value
1028
+ }, () => [
1029
+ ol(H(s.currentLabel), 1)
1030
+ ])
1031
+ ], 2)
1032
+ ]),
1033
+ _: 2
1034
+ }, 1032, ["closable", "size", "type", "effect", "onClose"])
1035
+ ], 2))), 128))
1036
+ ], 2)
1037
+ ]),
1038
+ _: 3
1039
+ }, 8, ["disabled", "effect", "popper-class", "popper-style", "teleported"])) : L("v-if", !0)
1040
+ ]) : L("v-if", !0),
1041
+ k("div", {
1042
+ class: m([
1043
+ e.nsSelect.e("selected-item"),
1044
+ e.nsSelect.e("input-wrapper"),
1045
+ e.nsSelect.is("hidden", !e.filterable)
1046
+ ])
1047
+ }, [
1048
+ ue(k("input", {
1049
+ id: e.inputId,
1050
+ ref: "inputRef",
1051
+ "onUpdate:modelValue": (s) => e.states.inputValue = s,
1052
+ type: "text",
1053
+ name: e.name,
1054
+ class: m([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
1055
+ disabled: e.selectDisabled,
1056
+ autocomplete: e.autocomplete,
1057
+ style: Ce(e.inputStyle),
1058
+ tabindex: e.tabindex,
1059
+ role: "combobox",
1060
+ readonly: !e.filterable,
1061
+ spellcheck: "false",
1062
+ "aria-activedescendant": ((b = e.hoverOption) == null ? void 0 : b.id) || "",
1063
+ "aria-controls": e.contentId,
1064
+ "aria-expanded": e.dropdownMenuVisible,
1065
+ "aria-label": e.ariaLabel,
1066
+ "aria-autocomplete": "none",
1067
+ "aria-haspopup": "listbox",
1068
+ onKeydown: [
1069
+ ie(F((s) => e.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
1070
+ ie(F((s) => e.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
1071
+ ie(F(e.handleEsc, ["stop", "prevent"]), ["esc"]),
1072
+ ie(F(e.selectOption, ["stop", "prevent"]), ["enter"]),
1073
+ ie(F(e.deletePrevTag, ["stop"]), ["delete"])
1074
+ ],
1075
+ onCompositionstart: e.handleCompositionStart,
1076
+ onCompositionupdate: e.handleCompositionUpdate,
1077
+ onCompositionend: e.handleCompositionEnd,
1078
+ onInput: e.onInput,
1079
+ onClick: F(e.toggleMenu, ["stop"])
1080
+ }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
1081
+ [ft, e.states.inputValue]
1082
+ ]),
1083
+ e.filterable ? (v(), w("span", {
1084
+ key: 0,
1085
+ ref: "calculatorRef",
1086
+ "aria-hidden": "true",
1087
+ class: m(e.nsSelect.e("input-calculator")),
1088
+ textContent: H(e.states.inputValue)
1089
+ }, null, 10, ["textContent"])) : L("v-if", !0)
1090
+ ], 2),
1091
+ e.shouldShowPlaceholder ? (v(), w("div", {
1092
+ key: 1,
1093
+ class: m([
1094
+ e.nsSelect.e("selected-item"),
1095
+ e.nsSelect.e("placeholder"),
1096
+ e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
1097
+ ])
1098
+ }, [
1099
+ e.hasModelValue ? M(e.$slots, "label", {
1100
+ key: 0,
1101
+ index: e.getOption(e.modelValue).index,
1102
+ label: e.currentPlaceholder,
1103
+ value: e.modelValue
1104
+ }, () => [
1105
+ k("span", null, H(e.currentPlaceholder), 1)
1106
+ ]) : (v(), w("span", { key: 1 }, H(e.currentPlaceholder), 1))
1107
+ ], 2)) : L("v-if", !0)
1108
+ ], 2),
1109
+ k("div", {
1110
+ ref: "suffixRef",
1111
+ class: m(e.nsSelect.e("suffix"))
1112
+ }, [
1113
+ e.iconComponent && !e.showClearBtn ? (v(), P(d, {
1114
+ key: 0,
1115
+ class: m([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
1116
+ }, {
1117
+ default: $(() => [
1118
+ (v(), P(Le(e.iconComponent)))
1119
+ ]),
1120
+ _: 1
1121
+ }, 8, ["class"])) : L("v-if", !0),
1122
+ e.showClearBtn && e.clearIcon ? (v(), P(d, {
1123
+ key: 1,
1124
+ class: m([
1125
+ e.nsSelect.e("caret"),
1126
+ e.nsSelect.e("icon"),
1127
+ e.nsSelect.e("clear")
1128
+ ]),
1129
+ onClick: e.handleClearClick
1130
+ }, {
1131
+ default: $(() => [
1132
+ (v(), P(Le(e.clearIcon)))
1133
+ ]),
1134
+ _: 1
1135
+ }, 8, ["class", "onClick"])) : L("v-if", !0),
1136
+ e.validateState && e.validateIcon && e.needStatusIcon ? (v(), P(d, {
1137
+ key: 2,
1138
+ class: m([
1139
+ e.nsInput.e("icon"),
1140
+ e.nsInput.e("validateIcon"),
1141
+ e.nsInput.is("loading", e.validateState === "validating")
1142
+ ])
1143
+ }, {
1144
+ default: $(() => [
1145
+ (v(), P(Le(e.validateIcon)))
1146
+ ]),
1147
+ _: 1
1148
+ }, 8, ["class"])) : L("v-if", !0)
1149
+ ], 2)
1150
+ ], 10, ["onClick"])
1151
+ ];
1152
+ }),
1153
+ content: $(() => [
1154
+ _(S, { ref: "menuRef" }, {
1155
+ default: $(() => [
1156
+ e.$slots.header ? (v(), w("div", {
1157
+ key: 0,
1158
+ class: m(e.nsSelect.be("dropdown", "header")),
1159
+ onClick: F(() => {
1160
+ }, ["stop"])
1161
+ }, [
1162
+ M(e.$slots, "header")
1163
+ ], 10, ["onClick"])) : L("v-if", !0),
1164
+ ue(_(h, {
1165
+ id: e.contentId,
1166
+ ref: "scrollbarRef",
1167
+ tag: "ul",
1168
+ "wrap-class": e.nsSelect.be("dropdown", "wrap"),
1169
+ "view-class": e.nsSelect.be("dropdown", "list"),
1170
+ class: m([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
1171
+ role: "listbox",
1172
+ "aria-label": e.ariaLabel,
1173
+ "aria-orientation": "vertical",
1174
+ onScroll: e.popupScroll
1175
+ }, {
1176
+ default: $(() => [
1177
+ e.showNewOption ? (v(), P(p, {
1178
+ key: 0,
1179
+ value: e.states.inputValue,
1180
+ created: !0
1181
+ }, null, 8, ["value"])) : L("v-if", !0),
1182
+ _(C, null, {
1183
+ default: $(() => [
1184
+ M(e.$slots, "default", {}, () => [
1185
+ (v(!0), w(se, null, Se(e.options, (b, s) => {
1186
+ var i;
1187
+ return v(), w(se, { key: s }, [
1188
+ (i = e.getOptions(b)) != null && i.length ? (v(), P(t, {
1189
+ key: 0,
1190
+ label: e.getLabel(b),
1191
+ disabled: e.getDisabled(b)
1192
+ }, {
1193
+ default: $(() => [
1194
+ (v(!0), w(se, null, Se(e.getOptions(b), (O) => (v(), P(p, al({
1195
+ key: e.getValue(O)
1196
+ }, e.getOptionProps(O)), null, 16))), 128))
1197
+ ]),
1198
+ _: 2
1199
+ }, 1032, ["label", "disabled"])) : (v(), P(p, vt(al({ key: 1 }, e.getOptionProps(b))), null, 16))
1200
+ ], 64);
1201
+ }), 128))
1202
+ ])
1203
+ ]),
1204
+ _: 3
1205
+ })
1206
+ ]),
1207
+ _: 3
1208
+ }, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
1209
+ [Pe, e.states.options.size > 0 && !e.loading]
1210
+ ]),
1211
+ e.$slots.loading && e.loading ? (v(), w("div", {
1212
+ key: 1,
1213
+ class: m(e.nsSelect.be("dropdown", "loading"))
1214
+ }, [
1215
+ M(e.$slots, "loading")
1216
+ ], 2)) : e.loading || e.filteredOptionsCount === 0 ? (v(), w("div", {
1217
+ key: 2,
1218
+ class: m(e.nsSelect.be("dropdown", "empty"))
1219
+ }, [
1220
+ M(e.$slots, "empty", {}, () => [
1221
+ k("span", null, H(e.emptyText), 1)
1222
+ ])
1223
+ ], 2)) : L("v-if", !0),
1224
+ e.$slots.footer ? (v(), w("div", {
1225
+ key: 3,
1226
+ class: m(e.nsSelect.be("dropdown", "footer")),
1227
+ onClick: F(() => {
1228
+ }, ["stop"])
1229
+ }, [
1230
+ M(e.$slots, "footer")
1231
+ ], 10, ["onClick"])) : L("v-if", !0)
1232
+ ]),
1233
+ _: 3
1234
+ }, 512)
1235
+ ]),
1236
+ _: 3
1237
+ }, 8, ["visible", "placement", "teleported", "popper-class", "popper-style", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
1238
+ ], 16, ["onMouseleave"])), [
1239
+ [y, e.handleClickOutside, e.popperRef]
1240
+ ]);
1241
+ }
1242
+ var Sn = /* @__PURE__ */ Ee(gn, [["render", yn], ["__file", "select.vue"]]);
1243
+ const $n = Rt(Sn, {
1244
+ Option: ze,
1245
+ OptionGroup: Ae
1246
+ }), Ln = hl(ze);
1247
+ hl(Ae);
1248
+ export {
1249
+ Ln as E,
1250
+ $n as a
1251
+ };