st-comp 0.0.196 → 0.0.198

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