st-comp 0.0.147 → 0.0.149

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