st-comp 0.0.206 → 0.0.208

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