st-comp 0.0.208 → 0.0.210

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 (169) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +74 -1
  3. package/es/CustomFunction.cjs +1 -1
  4. package/es/CustomFunction.js +54 -51
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +46 -43
  7. package/es/HeatMap.cjs +1 -1
  8. package/es/HeatMap.js +118 -1
  9. package/es/Kline.cjs +1 -1
  10. package/es/Kline.js +90 -87
  11. package/es/KlineBasic.cjs +1 -1
  12. package/es/KlineBasic.js +28 -25
  13. package/es/KlineConfig.cjs +1 -1
  14. package/es/KlineConfig.js +164 -161
  15. package/es/KlineNew.cjs +1 -1
  16. package/es/KlineNew.js +114 -111
  17. package/es/KlinePlus.cjs +2 -2
  18. package/es/KlinePlus.js +183 -180
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +143 -140
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -2
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +58 -55
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +88 -85
  27. package/es/VarSelectDialog.cjs +2 -2
  28. package/es/VarSelectDialog.js +56 -53
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +17 -15
  31. package/es/VarietySearch.cjs +14 -14
  32. package/es/VarietySearch.js +2433 -2204
  33. package/es/VarietyTextCopy.cjs +3 -3
  34. package/es/VarietyTextCopy.js +34 -31
  35. package/es/VirtualTable.cjs +1 -1
  36. package/es/VirtualTable.js +106 -103
  37. package/es/_initCloneObject-52b6a510.cjs +1 -0
  38. package/es/{_initCloneObject-c477c74d.js → _initCloneObject-eaef9418.js} +26 -25
  39. package/es/base-a5af3db3.js +288 -0
  40. package/es/base-ef747d02.cjs +5 -0
  41. package/es/castArray-35947698.cjs +1 -0
  42. package/es/{castArray-1eb17278.js → castArray-7741a212.js} +1 -1
  43. package/es/{config-provider-18c0a68a.cjs → config-provider-a584d81e.cjs} +1 -1
  44. package/es/{config-provider-49c17381.js → config-provider-b16efd62.js} +6 -6
  45. package/es/debounce-62f5b6e8.cjs +1 -0
  46. package/es/{debounce-33406a0d.js → debounce-8d53f4dd.js} +9 -9
  47. package/es/{dropdown-3f1fe325.cjs → dropdown-071c5d7e.cjs} +1 -1
  48. package/es/{dropdown-6e7b1df0.js → dropdown-a59bba73.js} +15 -15
  49. package/es/el-autocomplete-a07e9439.cjs +1 -0
  50. package/es/{el-autocomplete-87b7f461.js → el-autocomplete-ba808eb6.js} +53 -51
  51. package/es/{el-button-56624e61.js → el-button-c95adb85.js} +46 -45
  52. package/es/el-button-eec58cff.cjs +1 -0
  53. package/es/{el-checkbox-f13560e9.js → el-checkbox-7421ccd3.js} +40 -40
  54. package/es/{el-checkbox-09f3b57f.cjs → el-checkbox-c25236a6.cjs} +1 -1
  55. package/es/{el-dialog-1d5f5877.js → el-dialog-41ab8417.js} +10 -9
  56. package/es/el-dialog-ae86edb8.cjs +1 -0
  57. package/es/{el-divider-8a4c87e3.cjs → el-divider-4713d74c.cjs} +1 -1
  58. package/es/{el-divider-1cda1783.js → el-divider-4e059794.js} +1 -1
  59. package/es/el-empty-1697ded8.cjs +1 -0
  60. package/es/{el-empty-04682b5d.js → el-empty-33cb66f1.js} +3 -3
  61. package/es/el-form-item-c3fe189b.cjs +12 -0
  62. package/es/{el-form-item-505c0b70.js → el-form-item-c53c374d.js} +76 -75
  63. package/es/{el-input-262851e8.js → el-input-2f75c4ba.js} +85 -84
  64. package/es/el-input-7fd293af.cjs +1 -0
  65. package/es/el-input-number-22e21d16.cjs +1 -0
  66. package/es/{el-input-number-fdac2b86.js → el-input-number-5193fe6d.js} +83 -82
  67. package/es/{el-loading-3cf7b796.cjs → el-loading-cfd86c15.cjs} +1 -1
  68. package/es/{el-loading-7440dc64.js → el-loading-f6022062.js} +2 -2
  69. package/es/el-menu-item-17dc717e.cjs +1 -0
  70. package/es/{el-menu-item-36c3004c.js → el-menu-item-7e881203.js} +54 -53
  71. package/es/el-message-5e6a6be9.cjs +1 -0
  72. package/es/{el-message-box-8f5e34ca.js → el-message-box-a93d2f6a.js} +22 -20
  73. package/es/el-message-box-c10adb52.cjs +1 -0
  74. package/es/{el-message-416bd265.js → el-message-e544a8f5.js} +29 -28
  75. package/es/{el-overlay-04426e36.js → el-overlay-09ad71cd.js} +53 -52
  76. package/es/el-overlay-9e34965f.cjs +1 -0
  77. package/es/el-popconfirm-70a976bf.cjs +1 -0
  78. package/es/{el-popconfirm-3790cda2.js → el-popconfirm-81dcd202.js} +39 -38
  79. package/es/{el-popper-49152708.js → el-popper-b4f97157.js} +192 -191
  80. package/es/el-popper-b6c99b28.cjs +1 -0
  81. package/es/{el-segmented-05509f9d.js → el-segmented-b868d074.js} +13 -12
  82. package/es/el-segmented-f8fce9ac.cjs +1 -0
  83. package/es/{el-select-700f3686.js → el-select-95627997.js} +295 -292
  84. package/es/el-select-d8d91db1.cjs +1 -0
  85. package/es/{el-table-column-44360700.js → el-table-column-376cd907.js} +57 -54
  86. package/es/el-table-column-c974cb96.cjs +14 -0
  87. package/es/{el-tag-55a172c9.js → el-tag-66cab138.js} +31 -30
  88. package/es/el-tag-a33c4b22.cjs +1 -0
  89. package/es/{el-text-ab6bfc40.js → el-text-ac60d0f2.js} +4 -4
  90. package/es/{el-text-5bcaffb6.cjs → el-text-c20a9f48.cjs} +1 -1
  91. package/es/index-098c2447.cjs +1 -0
  92. package/es/{index-d8294b1a.cjs → index-11547a0c.cjs} +1 -1
  93. package/es/{index-0afedcbd.js → index-1f7d4f70.js} +12 -11
  94. package/es/{index-ae6c9d97.cjs → index-298075cf.cjs} +1 -1
  95. package/es/{index-4e46f96c.js → index-57672682.js} +13 -12
  96. package/es/{index-66ad0d6a.js → index-844bdd85.js} +34 -34
  97. package/es/{index-29418a8d.js → index-88546436.js} +18 -18
  98. package/es/index-960806da.js +314 -0
  99. package/es/index-9780a537.cjs +1 -0
  100. package/es/index-9b9ef5dd.cjs +1 -0
  101. package/es/{base-aa512893.js → index-a871c3eb.js} +171 -454
  102. package/es/index-bb833443.cjs +1 -0
  103. package/es/index-c108567d.cjs +1 -0
  104. package/es/index-d77a7336.js +204 -0
  105. package/es/{index-cbbd78b4.js → index-d91dc23f.js} +12 -12
  106. package/es/index-e5566b94.js +368 -0
  107. package/es/index-f3562b52.cjs +1 -0
  108. package/es/{index-882d77d3.cjs → index-f967d6c1.cjs} +1 -1
  109. package/es/raf-80ef0c0a.js +6 -0
  110. package/es/{raf-336ef01e.cjs → raf-8249652f.cjs} +1 -1
  111. package/es/{scroll-0a48995c.js → scroll-679bd6bf.js} +5 -5
  112. package/es/{scroll-19533c53.cjs → scroll-b108dabd.cjs} +1 -1
  113. package/es/style.css +1 -1
  114. package/es/use-form-common-props-815d48a6.js +364 -0
  115. package/es/use-form-common-props-fd9b61a0.cjs +1 -0
  116. package/es/use-global-config-30d7d8ce.cjs +1 -0
  117. package/es/use-global-config-b5e9d3d5.js +72 -0
  118. package/es/{validator-28b22907.cjs → validator-1b8a6128.cjs} +1 -1
  119. package/es/{validator-e35f7978.js → validator-764a9db0.js} +1 -1
  120. package/es/{vnode-b62d0045.js → vnode-5ddb7ed1.js} +1 -1
  121. package/es/{vnode-8cb31692.cjs → vnode-b906ae6d.cjs} +1 -1
  122. package/es/{zh-cn-7c8640bb.cjs → zh-cn-90317f62.cjs} +1 -1
  123. package/es/{zh-cn-346f3a73.js → zh-cn-e963c628.js} +2 -2
  124. package/lib/bundle.js +1 -1
  125. package/lib/bundle.umd.cjs +202 -202
  126. package/lib/{index-da0f2951.js → index-a5dba4c8.js} +26352 -26126
  127. package/lib/{python-c0a1e4ef.js → python-198536af.js} +1 -1
  128. package/lib/style.css +1 -1
  129. package/package.json +1 -1
  130. package/packages/Kline/componentsNew/KlineTips/index.vue +4 -4
  131. package/packages/Kline/index.vue +4 -4
  132. package/packages/KlineNew/components/KlineTips/index.vue +8 -8
  133. package/packages/KlinePlus/index.vue +4 -4
  134. package/packages/VarietySearch/components/CommonIndicator/index.vue +9 -8
  135. package/packages/VarietySearch/components/CompositeOrder/index.vue +243 -0
  136. package/packages/VarietySearch/config.js +16 -7
  137. package/packages/VarietySearch/index.vue +140 -125
  138. package/src/pages/KlineBasic/api.js +1 -1
  139. package/src/pages/VarietySearch/index.vue +101 -8
  140. package/es/_initCloneObject-e660897e.cjs +0 -1
  141. package/es/base-7ba08794.cjs +0 -5
  142. package/es/castArray-efa457a5.cjs +0 -1
  143. package/es/debounce-4aa22feb.cjs +0 -1
  144. package/es/el-autocomplete-609ac86d.cjs +0 -1
  145. package/es/el-button-08310c06.cjs +0 -1
  146. package/es/el-dialog-ea480083.cjs +0 -1
  147. package/es/el-empty-b40fa7ea.cjs +0 -1
  148. package/es/el-form-item-338ea2f7.cjs +0 -12
  149. package/es/el-input-b04b5bfc.cjs +0 -1
  150. package/es/el-input-number-7242c8b5.cjs +0 -1
  151. package/es/el-menu-item-7aca344e.cjs +0 -1
  152. package/es/el-message-05cd85bf.cjs +0 -1
  153. package/es/el-message-box-b7e9917e.cjs +0 -1
  154. package/es/el-overlay-60bc5a02.cjs +0 -1
  155. package/es/el-popconfirm-24b622c5.cjs +0 -1
  156. package/es/el-popper-1dd8f5b4.cjs +0 -1
  157. package/es/el-segmented-a928d89b.cjs +0 -1
  158. package/es/el-select-5fd77a96.cjs +0 -1
  159. package/es/el-table-column-bf3ab2a6.cjs +0 -14
  160. package/es/el-tag-d59f3463.cjs +0 -1
  161. package/es/index-3d0bc5da.js +0 -566
  162. package/es/index-a206f6eb.cjs +0 -1
  163. package/es/index-b4700d83.cjs +0 -1
  164. package/es/index-c30cf7f9.cjs +0 -1
  165. package/es/raf-d8c44079.js +0 -6
  166. package/es/use-form-common-props-41182853.cjs +0 -1
  167. package/es/use-form-common-props-4cdda474.js +0 -671
  168. package/es/use-global-config-7bfbe48c.js +0 -71
  169. package/es/use-global-config-dc5527e8.cjs +0 -1
@@ -1,10 +1,11 @@
1
- import { computed as c, getCurrentInstance as Ue, defineComponent as ze, useAttrs as We, useSlots as Ye, shallowRef as Q, ref as Z, watch as q, nextTick as O, onMounted as Xe, toRef as _e, openBlock as d, createElementBlock as S, normalizeClass as m, unref as t, normalizeStyle as be, createCommentVNode as p, Fragment as J, renderSlot as j, createElementVNode as k, createBlock as C, withCtx as R, resolveDynamicComponent as L, mergeProps as we, withModifiers as Ge, toDisplayString as U } from "vue";
2
- import { u as Qe, k as ee, f as Ze, g as qe, a as Je, e as et, V as tt, j as ot } from "./use-form-common-props-4cdda474.js";
3
- import { a as ke, n as xe, b as nt, d as B, M as at, m as te, O as st, u as Se, P as lt, Q as rt, H as it, E as H, N as ut, _ as dt, p as Ce, w as ct } from "./base-aa512893.js";
1
+ import { computed as c, getCurrentInstance as Ue, defineComponent as Pe, useAttrs as We, useSlots as Ye, shallowRef as Z, ref as q, watch as J, nextTick as R, onMounted as Xe, toRef as Ge, openBlock as d, createElementBlock as S, normalizeClass as m, unref as t, normalizeStyle as be, createCommentVNode as p, Fragment as Q, renderSlot as j, createElementVNode as T, createBlock as C, withCtx as L, resolveDynamicComponent as O, mergeProps as we, withModifiers as _e, toDisplayString as U } from "vue";
2
+ import { h as Ze, i as ee, d as qe, f as Je, e as Qe, g as et, V as tt, u as ot } from "./use-form-common-props-815d48a6.js";
3
+ import { w as nt, x as at, y as st, E as B } from "./index-a871c3eb.js";
4
+ import { s as Te, p as xe, b as lt, e as H, c as te, G as rt, u as Se, g as it, N as ut, _ as dt, f as Ce, w as ct } from "./base-a5af3db3.js";
4
5
  import { m as pt } from "./typescript-7ae59c4c.js";
5
- import { u as ft, U as oe, d as Ie, I as Ee, C as Ne } from "./el-popper-49152708.js";
6
- import { u as vt, a as mt } from "./index-cbbd78b4.js";
7
- const ht = () => ke && /firefox/i.test(window.navigator.userAgent);
6
+ import { u as ft, U as oe, d as Ie, I as Ee, C as Ne } from "./el-popper-b4f97157.js";
7
+ import { a as vt, u as mt } from "./index-d91dc23f.js";
8
+ const ht = () => Te && /firefox/i.test(window.navigator.userAgent);
8
9
  let g;
9
10
  const yt = {
10
11
  height: "0",
@@ -39,7 +40,7 @@ function bt(n) {
39
40
  f.getPropertyValue(l)
40
41
  ]), paddingSize: o, borderSize: i, boxSizing: r };
41
42
  }
42
- function Pe(n, f = 1, r) {
43
+ function ze(n, f = 1, r) {
43
44
  var o, i;
44
45
  g || (g = document.createElement("textarea"), ((o = n.parentNode) != null ? o : document.body).appendChild(g));
45
46
  const { paddingSize: u, borderSize: l, boxSizing: b, contextStyle: w } = bt(n);
@@ -47,26 +48,26 @@ function Pe(n, f = 1, r) {
47
48
  let h = g.scrollHeight;
48
49
  const v = {};
49
50
  b === "border-box" ? h = h + l : b === "content-box" && (h = h - u), g.value = "";
50
- const T = g.scrollHeight - u;
51
+ const k = g.scrollHeight - u;
51
52
  if (xe(f)) {
52
- let y = T * f;
53
+ let y = k * f;
53
54
  b === "border-box" && (y = y + u + l), h = Math.max(y, h), v.minHeight = `${y}px`;
54
55
  }
55
56
  if (xe(r)) {
56
- let y = T * r;
57
+ let y = k * r;
57
58
  b === "border-box" && (y = y + u + l), h = Math.min(y, h);
58
59
  }
59
60
  return v.height = `${h}px`, (i = g.parentNode) == null || i.removeChild(g), g = void 0, v;
60
61
  }
61
- const wt = nt({
62
+ const wt = lt({
62
63
  id: {
63
64
  type: String,
64
65
  default: void 0
65
66
  },
66
- size: Qe,
67
+ size: Ze,
67
68
  disabled: Boolean,
68
69
  modelValue: {
69
- type: B([
70
+ type: H([
70
71
  String,
71
72
  Number,
72
73
  Object
@@ -88,11 +89,11 @@ const wt = nt({
88
89
  values: ["none", "both", "horizontal", "vertical"]
89
90
  },
90
91
  autosize: {
91
- type: B([Boolean, Object]),
92
+ type: H([Boolean, Object]),
92
93
  default: !1
93
94
  },
94
95
  autocomplete: {
95
- type: B(String),
96
+ type: H(String),
96
97
  default: "off"
97
98
  },
98
99
  formatter: {
@@ -111,7 +112,7 @@ const wt = nt({
111
112
  clearable: Boolean,
112
113
  clearIcon: {
113
114
  type: ee,
114
- default: at
115
+ default: nt
115
116
  },
116
117
  showPassword: Boolean,
117
118
  showWordLimit: Boolean,
@@ -134,7 +135,7 @@ const wt = nt({
134
135
  default: !0
135
136
  },
136
137
  inputStyle: {
137
- type: B([Object, Array, String]),
138
+ type: H([Object, Array, String]),
138
139
  default: () => pt({})
139
140
  },
140
141
  autofocus: Boolean,
@@ -144,7 +145,7 @@ const wt = nt({
144
145
  },
145
146
  ...ft(["ariaLabel"]),
146
147
  inputmode: {
147
- type: B(String),
148
+ type: H(String),
148
149
  default: void 0
149
150
  },
150
151
  name: String
@@ -165,7 +166,7 @@ const wt = nt({
165
166
  const { excludeListeners: f = !1, excludeKeys: r } = n, o = c(() => ((r == null ? void 0 : r.value) || []).concat(St)), i = Ue();
166
167
  return i ? c(() => {
167
168
  var u;
168
- return st(Object.entries((u = i.proxy) == null ? void 0 : u.$attrs).filter(([l]) => !o.value.includes(l) && !(f && Ct.test(l))));
169
+ return rt(Object.entries((u = i.proxy) == null ? void 0 : u.$attrs).filter(([l]) => !o.value.includes(l) && !(f && Ct.test(l))));
169
170
  }) : c(() => ({}));
170
171
  };
171
172
  function Et(n) {
@@ -204,11 +205,11 @@ function Et(n) {
204
205
  }
205
206
  return [r, o];
206
207
  }
207
- const Nt = "ElInput", Pt = ze({
208
+ const Nt = "ElInput", zt = Pe({
208
209
  name: Nt,
209
210
  inheritAttrs: !1
210
- }), zt = /* @__PURE__ */ ze({
211
- ...Pt,
211
+ }), Pt = /* @__PURE__ */ Pe({
212
+ ...zt,
212
213
  props: wt,
213
214
  emits: xt,
214
215
  setup(n, { expose: f, emit: r }) {
@@ -216,7 +217,7 @@ const Nt = "ElInput", Pt = ze({
216
217
  o.type === "textarea" ? ne.b() : a.b(),
217
218
  a.m(y.value),
218
219
  a.is("disabled", x.value),
219
- a.is("exceed", Re.value),
220
+ a.is("exceed", Le.value),
220
221
  {
221
222
  [a.b("group")]: l.prepend || l.append,
222
223
  [a.m("prefix")]: l.prefix || o.prefixIcon,
@@ -228,9 +229,9 @@ const Nt = "ElInput", Pt = ze({
228
229
  ]), w = c(() => [
229
230
  a.e("wrapper"),
230
231
  a.is("focus", Y.value)
231
- ]), { form: h, formItem: v } = Ze(), { inputId: T } = qe(o, {
232
+ ]), { form: h, formItem: v } = qe(), { inputId: k } = Je(o, {
232
233
  formItemContext: v
233
- }), y = Je(), x = et(), a = Se("input"), ne = Se("textarea"), $ = Q(), I = Q(), W = Z(!1), A = Z(!1), ae = Z(), D = Q(o.inputStyle), N = c(() => $.value || I.value), { wrapperRef: Te, isFocused: Y, handleFocus: Ve, handleBlur: Fe } = vt(N, {
234
+ }), y = Qe(), x = et(), a = Se("input"), ne = Se("textarea"), $ = Z(), I = Z(), W = q(!1), A = q(!1), ae = q(), D = Z(o.inputStyle), N = c(() => $.value || I.value), { wrapperRef: ke, isFocused: Y, handleFocus: Ve, handleBlur: Fe } = vt(N, {
234
235
  disabled: x,
235
236
  afterBlur() {
236
237
  var e;
@@ -239,48 +240,48 @@ const Nt = "ElInput", Pt = ze({
239
240
  }), se = c(() => {
240
241
  var e;
241
242
  return (e = h == null ? void 0 : h.statusIcon) != null ? e : !1;
242
- }), V = c(() => (v == null ? void 0 : v.validateState) || ""), le = c(() => V.value && tt[V.value]), Me = c(() => A.value ? lt : rt), Oe = c(() => [
243
+ }), V = c(() => (v == null ? void 0 : v.validateState) || ""), le = c(() => V.value && tt[V.value]), Me = c(() => A.value ? at : st), Re = c(() => [
243
244
  i.style
244
245
  ]), re = c(() => [
245
246
  o.inputStyle,
246
247
  D.value,
247
248
  { resize: o.resize }
248
- ]), E = c(() => it(o.modelValue) ? "" : String(o.modelValue)), K = c(() => o.clearable && !x.value && !o.readonly && !!E.value && (Y.value || W.value)), X = c(() => o.showPassword && !x.value && !!E.value), P = c(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !x.value && !o.readonly && !o.showPassword), _ = c(() => E.value.length), Re = c(() => !!P.value && _.value > Number(o.maxlength)), Le = c(() => !!l.suffix || !!o.suffixIcon || K.value || o.showPassword || P.value || !!V.value && se.value), [ie, ue] = Et($);
249
+ ]), E = c(() => it(o.modelValue) ? "" : String(o.modelValue)), K = c(() => o.clearable && !x.value && !o.readonly && !!E.value && (Y.value || W.value)), X = c(() => o.showPassword && !x.value && !!E.value), z = c(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !x.value && !o.readonly && !o.showPassword), G = c(() => E.value.length), Le = c(() => !!z.value && G.value > Number(o.maxlength)), Oe = c(() => !!l.suffix || !!o.suffixIcon || K.value || o.showPassword || z.value || !!V.value && se.value), [ie, ue] = Et($);
249
250
  ot(I, (e) => {
250
- if (Be(), !P.value || o.resize !== "both")
251
+ if (Be(), !z.value || o.resize !== "both")
251
252
  return;
252
- const s = e[0], { width: z } = s.contentRect;
253
+ const s = e[0], { width: P } = s.contentRect;
253
254
  ae.value = {
254
- right: `calc(100% - ${z + 15 + 6}px)`
255
+ right: `calc(100% - ${P + 15 + 6}px)`
255
256
  };
256
257
  });
257
258
  const F = () => {
258
259
  const { type: e, autosize: s } = o;
259
- if (!(!ke || e !== "textarea" || !I.value))
260
+ if (!(!Te || e !== "textarea" || !I.value))
260
261
  if (s) {
261
- const z = Ce(s) ? s.minRows : void 0, ye = Ce(s) ? s.maxRows : void 0, ge = Pe(I.value, z, ye);
262
+ const P = Ce(s) ? s.minRows : void 0, ye = Ce(s) ? s.maxRows : void 0, ge = ze(I.value, P, ye);
262
263
  D.value = {
263
264
  overflowY: "hidden",
264
265
  ...ge
265
- }, O(() => {
266
+ }, R(() => {
266
267
  I.value.offsetHeight, D.value = ge;
267
268
  });
268
269
  } else
269
270
  D.value = {
270
- minHeight: Pe(I.value).minHeight
271
+ minHeight: ze(I.value).minHeight
271
272
  };
272
273
  }, Be = ((e) => {
273
274
  let s = !1;
274
275
  return () => {
275
- var z;
276
+ var P;
276
277
  if (s || !o.autosize)
277
278
  return;
278
- ((z = I.value) == null ? void 0 : z.offsetParent) === null || (setTimeout(e), s = !0);
279
+ ((P = I.value) == null ? void 0 : P.offsetParent) === null || (setTimeout(e), s = !0);
279
280
  };
280
281
  })(F), M = () => {
281
282
  const e = N.value, s = o.formatter ? o.formatter(E.value) : E.value;
282
283
  !e || e.value === s || (e.value = s);
283
- }, G = async (e) => {
284
+ }, _ = async (e) => {
284
285
  ie();
285
286
  let { value: s } = e.target;
286
287
  if (o.formatter && o.parser && (s = o.parser(s)), !ce.value) {
@@ -288,7 +289,7 @@ const Nt = "ElInput", Pt = ze({
288
289
  M();
289
290
  return;
290
291
  }
291
- r(oe, s), r(Ee, s), await O(), M(), ue();
292
+ r(oe, s), r(Ee, s), await R(), M(), ue();
292
293
  }
293
294
  }, de = (e) => {
294
295
  let { value: s } = e.target;
@@ -298,7 +299,7 @@ const Nt = "ElInput", Pt = ze({
298
299
  handleCompositionStart: pe,
299
300
  handleCompositionUpdate: fe,
300
301
  handleCompositionEnd: ve
301
- } = mt({ emit: r, afterComposition: G }), He = () => {
302
+ } = mt({ emit: r, afterComposition: _ }), He = () => {
302
303
  ie(), A.value = !A.value, setTimeout(ue);
303
304
  }, $e = () => {
304
305
  var e;
@@ -318,19 +319,19 @@ const Nt = "ElInput", Pt = ze({
318
319
  }, he = () => {
319
320
  r(oe, ""), r(Ne, ""), r("clear"), r(Ee, "");
320
321
  };
321
- return q(() => o.modelValue, () => {
322
+ return J(() => o.modelValue, () => {
322
323
  var e;
323
- O(() => F()), o.validateEvent && ((e = v == null ? void 0 : v.validate) == null || e.call(v, "change").catch((s) => Ie()));
324
- }), q(E, () => M()), q(() => o.type, async () => {
325
- await O(), M(), F();
324
+ R(() => F()), o.validateEvent && ((e = v == null ? void 0 : v.validate) == null || e.call(v, "change").catch((s) => Ie()));
325
+ }), J(E, () => M()), J(() => o.type, async () => {
326
+ await R(), M(), F();
326
327
  }), Xe(() => {
327
- !o.formatter && o.parser, M(), O(F);
328
+ !o.formatter && o.parser, M(), R(F);
328
329
  }), f({
329
330
  input: $,
330
331
  textarea: I,
331
332
  ref: N,
332
333
  textareaStyle: re,
333
- autosize: _e(o, "autosize"),
334
+ autosize: Ge(o, "autosize"),
334
335
  isComposing: ce,
335
336
  focus: $e,
336
337
  blur: Ae,
@@ -345,12 +346,12 @@ const Nt = "ElInput", Pt = ze({
345
346
  [t(a).bm("group", "prepend")]: e.$slots.prepend
346
347
  }
347
348
  ]),
348
- style: be(t(Oe)),
349
+ style: be(t(Re)),
349
350
  onMouseenter: Ke,
350
351
  onMouseleave: De
351
352
  }, [
352
353
  p(" input "),
353
- e.type !== "textarea" ? (d(), S(J, { key: 0 }, [
354
+ e.type !== "textarea" ? (d(), S(Q, { key: 0 }, [
354
355
  p(" prepend slot "),
355
356
  e.$slots.prepend ? (d(), S("div", {
356
357
  key: 0,
@@ -358,9 +359,9 @@ const Nt = "ElInput", Pt = ze({
358
359
  }, [
359
360
  j(e.$slots, "prepend")
360
361
  ], 2)) : p("v-if", !0),
361
- k("div", {
362
+ T("div", {
362
363
  ref_key: "wrapperRef",
363
- ref: Te,
364
+ ref: ke,
364
365
  class: m(t(w))
365
366
  }, [
366
367
  p(" prefix slot "),
@@ -368,23 +369,23 @@ const Nt = "ElInput", Pt = ze({
368
369
  key: 0,
369
370
  class: m(t(a).e("prefix"))
370
371
  }, [
371
- k("span", {
372
+ T("span", {
372
373
  class: m(t(a).e("prefix-inner"))
373
374
  }, [
374
375
  j(e.$slots, "prefix"),
375
- e.prefixIcon ? (d(), C(t(H), {
376
+ e.prefixIcon ? (d(), C(t(B), {
376
377
  key: 0,
377
378
  class: m(t(a).e("icon"))
378
379
  }, {
379
- default: R(() => [
380
- (d(), C(L(e.prefixIcon)))
380
+ default: L(() => [
381
+ (d(), C(O(e.prefixIcon)))
381
382
  ]),
382
383
  _: 1
383
384
  }, 8, ["class"])) : p("v-if", !0)
384
385
  ], 2)
385
386
  ], 2)) : p("v-if", !0),
386
- k("input", we({
387
- id: t(T),
387
+ T("input", we({
388
+ id: t(k),
388
389
  ref_key: "input",
389
390
  ref: $,
390
391
  class: t(a).e("inner")
@@ -407,60 +408,60 @@ const Nt = "ElInput", Pt = ze({
407
408
  onCompositionstart: t(pe),
408
409
  onCompositionupdate: t(fe),
409
410
  onCompositionend: t(ve),
410
- onInput: G,
411
+ onInput: _,
411
412
  onChange: de,
412
413
  onKeydown: me
413
414
  }), null, 16, ["id", "name", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "inputmode", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
414
415
  p(" suffix slot "),
415
- t(Le) ? (d(), S("span", {
416
+ t(Oe) ? (d(), S("span", {
416
417
  key: 1,
417
418
  class: m(t(a).e("suffix"))
418
419
  }, [
419
- k("span", {
420
+ T("span", {
420
421
  class: m(t(a).e("suffix-inner"))
421
422
  }, [
422
- !t(K) || !t(X) || !t(P) ? (d(), S(J, { key: 0 }, [
423
+ !t(K) || !t(X) || !t(z) ? (d(), S(Q, { key: 0 }, [
423
424
  j(e.$slots, "suffix"),
424
- e.suffixIcon ? (d(), C(t(H), {
425
+ e.suffixIcon ? (d(), C(t(B), {
425
426
  key: 0,
426
427
  class: m(t(a).e("icon"))
427
428
  }, {
428
- default: R(() => [
429
- (d(), C(L(e.suffixIcon)))
429
+ default: L(() => [
430
+ (d(), C(O(e.suffixIcon)))
430
431
  ]),
431
432
  _: 1
432
433
  }, 8, ["class"])) : p("v-if", !0)
433
434
  ], 64)) : p("v-if", !0),
434
- t(K) ? (d(), C(t(H), {
435
+ t(K) ? (d(), C(t(B), {
435
436
  key: 1,
436
437
  class: m([t(a).e("icon"), t(a).e("clear")]),
437
- onMousedown: Ge(t(ut), ["prevent"]),
438
+ onMousedown: _e(t(ut), ["prevent"]),
438
439
  onClick: he
439
440
  }, {
440
- default: R(() => [
441
- (d(), C(L(e.clearIcon)))
441
+ default: L(() => [
442
+ (d(), C(O(e.clearIcon)))
442
443
  ]),
443
444
  _: 1
444
445
  }, 8, ["class", "onMousedown"])) : p("v-if", !0),
445
- t(X) ? (d(), C(t(H), {
446
+ t(X) ? (d(), C(t(B), {
446
447
  key: 2,
447
448
  class: m([t(a).e("icon"), t(a).e("password")]),
448
449
  onClick: He
449
450
  }, {
450
- default: R(() => [
451
- (d(), C(L(t(Me))))
451
+ default: L(() => [
452
+ (d(), C(O(t(Me))))
452
453
  ]),
453
454
  _: 1
454
455
  }, 8, ["class"])) : p("v-if", !0),
455
- t(P) ? (d(), S("span", {
456
+ t(z) ? (d(), S("span", {
456
457
  key: 3,
457
458
  class: m(t(a).e("count"))
458
459
  }, [
459
- k("span", {
460
+ T("span", {
460
461
  class: m(t(a).e("count-inner"))
461
- }, U(t(_)) + " / " + U(e.maxlength), 3)
462
+ }, U(t(G)) + " / " + U(e.maxlength), 3)
462
463
  ], 2)) : p("v-if", !0),
463
- t(V) && t(le) && t(se) ? (d(), C(t(H), {
464
+ t(V) && t(le) && t(se) ? (d(), C(t(B), {
464
465
  key: 4,
465
466
  class: m([
466
467
  t(a).e("icon"),
@@ -468,8 +469,8 @@ const Nt = "ElInput", Pt = ze({
468
469
  t(a).is("loading", t(V) === "validating")
469
470
  ])
470
471
  }, {
471
- default: R(() => [
472
- (d(), C(L(t(le))))
472
+ default: L(() => [
473
+ (d(), C(O(t(le))))
473
474
  ]),
474
475
  _: 1
475
476
  }, 8, ["class"])) : p("v-if", !0)
@@ -483,10 +484,10 @@ const Nt = "ElInput", Pt = ze({
483
484
  }, [
484
485
  j(e.$slots, "append")
485
486
  ], 2)) : p("v-if", !0)
486
- ], 64)) : (d(), S(J, { key: 1 }, [
487
+ ], 64)) : (d(), S(Q, { key: 1 }, [
487
488
  p(" textarea "),
488
- k("textarea", we({
489
- id: t(T),
489
+ T("textarea", we({
490
+ id: t(k),
490
491
  ref_key: "textarea",
491
492
  ref: I,
492
493
  class: [t(ne).e("inner"), t(a).is("focus", t(Y))]
@@ -507,24 +508,24 @@ const Nt = "ElInput", Pt = ze({
507
508
  onCompositionstart: t(pe),
508
509
  onCompositionupdate: t(fe),
509
510
  onCompositionend: t(ve),
510
- onInput: G,
511
+ onInput: _,
511
512
  onFocus: t(Ve),
512
513
  onBlur: t(Fe),
513
514
  onChange: de,
514
515
  onKeydown: me
515
516
  }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
516
- t(P) ? (d(), S("span", {
517
+ t(z) ? (d(), S("span", {
517
518
  key: 0,
518
519
  style: be(ae.value),
519
520
  class: m(t(a).e("count"))
520
- }, U(t(_)) + " / " + U(e.maxlength), 7)) : p("v-if", !0)
521
+ }, U(t(G)) + " / " + U(e.maxlength), 7)) : p("v-if", !0)
521
522
  ], 64))
522
523
  ], 38));
523
524
  }
524
525
  });
525
- var kt = /* @__PURE__ */ dt(zt, [["__file", "input.vue"]]);
526
- const Bt = ct(kt);
526
+ var Tt = /* @__PURE__ */ dt(Pt, [["__file", "input.vue"]]);
527
+ const Ht = ct(Tt);
527
528
  export {
528
- Bt as E,
529
+ Ht as E,
529
530
  wt as i
530
531
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),C=require("./use-form-common-props-fd9b61a0.cjs"),x=require("./index-098c2447.cjs"),s=require("./base-ef747d02.cjs"),be=require("./typescript-b63f8e83.cjs"),b=require("./el-popper-b6c99b28.cjs"),oe=require("./index-11547a0c.cjs"),Ce=()=>s.isClient&&/firefox/i.test(window.navigator.userAgent);let v;const Ee={height:"0",visibility:"hidden",overflow:Ce()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},xe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"];function we(n){const d=window.getComputedStyle(n),i=d.getPropertyValue("box-sizing"),o=Number.parseFloat(d.getPropertyValue("padding-bottom"))+Number.parseFloat(d.getPropertyValue("padding-top")),u=Number.parseFloat(d.getPropertyValue("border-bottom-width"))+Number.parseFloat(d.getPropertyValue("border-top-width"));return{contextStyle:xe.map(l=>[l,d.getPropertyValue(l)]),paddingSize:o,borderSize:u,boxSizing:i}}function ne(n,d=1,i){var o,u;v||(v=document.createElement("textarea"),((o=n.parentNode)!=null?o:document.body).appendChild(v));const{paddingSize:c,borderSize:l,boxSizing:h,contextStyle:y}=we(n);y.forEach(([m,g])=>v==null?void 0:v.style.setProperty(m,g)),Object.entries(Ee).forEach(([m,g])=>v==null?void 0:v.style.setProperty(m,g,"important")),v.value=n.value||n.placeholder||"";let f=v.scrollHeight;const p={};h==="border-box"?f=f+l:h==="content-box"&&(f=f-c),v.value="";const I=v.scrollHeight-c;if(s.isNumber(d)){let m=I*d;h==="border-box"&&(m=m+c+l),f=Math.max(m,f),p.minHeight=`${m}px`}if(s.isNumber(i)){let m=I*i;h==="border-box"&&(m=m+c+l),f=Math.min(m,f)}return p.height=`${f}px`,(u=v.parentNode)==null||u.removeChild(v),v=void 0,p}const re=s.buildProps({id:{type:String,default:void 0},size:C.useSizeProp,disabled:Boolean,modelValue:{type:s.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:s.definePropType([Boolean,Object]),default:!1},autocomplete:{type:s.definePropType(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:C.iconPropType,default:x.circle_close_default},showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:C.iconPropType},prefixIcon:{type:C.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:s.definePropType([Object,Array,String]),default:()=>be.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...b.useAriaProps(["ariaLabel"]),inputmode:{type:s.definePropType(String),default:void 0},name:String}),ke={[b.UPDATE_MODEL_EVENT]:n=>s.isString(n),input:n=>s.isString(n),change:n=>s.isString(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},Se=["class","style"],Ne=/^on[A-Z]/,Ie=(n={})=>{const{excludeListeners:d=!1,excludeKeys:i}=n,o=e.computed(()=>((i==null?void 0:i.value)||[]).concat(Se)),u=e.getCurrentInstance();return u?e.computed(()=>{var c;return s.fromPairs(Object.entries((c=u.proxy)==null?void 0:c.$attrs).filter(([l])=>!o.value.includes(l)&&!(d&&Ne.test(l))))}):e.computed(()=>({}))};function Be(n){let d;function i(){if(n.value==null)return;const{selectionStart:u,selectionEnd:c,value:l}=n.value;if(u==null||c==null)return;const h=l.slice(0,Math.max(0,u)),y=l.slice(Math.max(0,c));d={selectionStart:u,selectionEnd:c,value:l,beforeTxt:h,afterTxt:y}}function o(){if(n.value==null||d==null)return;const{value:u}=n.value,{beforeTxt:c,afterTxt:l,selectionStart:h}=d;if(c==null||l==null||h==null)return;let y=u.length;if(u.endsWith(l))y=u.length-l.length;else if(u.startsWith(c))y=c.length;else{const f=c[h-1],p=u.indexOf(f,h-1);p!==-1&&(y=p+1)}n.value.setSelectionRange(y,y)}return[i,o]}const Ve="ElInput",ze=e.defineComponent({name:Ve,inheritAttrs:!1}),Pe=e.defineComponent({...ze,props:re,emits:ke,setup(n,{expose:d,emit:i}){const o=n,u=e.useAttrs(),c=Ie(),l=e.useSlots(),h=e.computed(()=>[o.type==="textarea"?H.b():r.b(),r.m(m.value),r.is("disabled",g.value),r.is("exceed",ce.value),{[r.b("group")]:l.prepend||l.append,[r.m("prefix")]:l.prefix||o.prefixIcon,[r.m("suffix")]:l.suffix||o.suffixIcon||o.clearable||o.showPassword,[r.bm("suffix","password-clear")]:D.value&&R.value,[r.b("hidden")]:o.type==="hidden"},u.class]),y=e.computed(()=>[r.e("wrapper"),r.is("focus",O.value)]),{form:f,formItem:p}=C.useFormItem(),{inputId:I}=C.useFormItemInputId(o,{formItemContext:p}),m=C.useFormSize(),g=C.useFormDisabled(),r=s.useNamespace("input"),H=s.useNamespace("textarea"),P=e.shallowRef(),E=e.shallowRef(),M=e.ref(!1),T=e.ref(!1),$=e.ref(),F=e.shallowRef(o.inputStyle),k=e.computed(()=>P.value||E.value),{wrapperRef:ae,isFocused:O,handleFocus:le,handleBlur:se}=oe.useFocusController(k,{disabled:g,afterBlur(){var t;o.validateEvent&&((t=p==null?void 0:p.validate)==null||t.call(p,"blur").catch(a=>b.debugWarn()))}}),K=e.computed(()=>{var t;return(t=f==null?void 0:f.statusIcon)!=null?t:!1}),B=e.computed(()=>(p==null?void 0:p.validateState)||""),U=e.computed(()=>B.value&&C.ValidateComponentsMap[B.value]),ie=e.computed(()=>T.value?x.view_default:x.hide_default),ue=e.computed(()=>[u.style]),j=e.computed(()=>[o.inputStyle,F.value,{resize:o.resize}]),w=e.computed(()=>s.isNil(o.modelValue)?"":String(o.modelValue)),D=e.computed(()=>o.clearable&&!g.value&&!o.readonly&&!!w.value&&(O.value||M.value)),R=e.computed(()=>o.showPassword&&!g.value&&!!w.value),S=e.computed(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!g.value&&!o.readonly&&!o.showPassword),L=e.computed(()=>w.value.length),ce=e.computed(()=>!!S.value&&L.value>Number(o.maxlength)),de=e.computed(()=>!!l.suffix||!!o.suffixIcon||D.value||o.showPassword||S.value||!!B.value&&K.value),[q,W]=Be(P);C.useResizeObserver(E,t=>{if(pe(),!S.value||o.resize!=="both")return;const a=t[0],{width:N}=a.contentRect;$.value={right:`calc(100% - ${N+15+6}px)`}});const V=()=>{const{type:t,autosize:a}=o;if(!(!s.isClient||t!=="textarea"||!E.value))if(a){const N=s.isObject(a)?a.minRows:void 0,ee=s.isObject(a)?a.maxRows:void 0,te=ne(E.value,N,ee);F.value={overflowY:"hidden",...te},e.nextTick(()=>{E.value.offsetHeight,F.value=te})}else F.value={minHeight:ne(E.value).minHeight}},pe=(t=>{let a=!1;return()=>{var N;if(a||!o.autosize)return;((N=E.value)==null?void 0:N.offsetParent)===null||(setTimeout(t),a=!0)}})(V),z=()=>{const t=k.value,a=o.formatter?o.formatter(w.value):w.value;!t||t.value===a||(t.value=a)},A=async t=>{q();let{value:a}=t.target;if(o.formatter&&o.parser&&(a=o.parser(a)),!Y.value){if(a===w.value){z();return}i(b.UPDATE_MODEL_EVENT,a),i(b.INPUT_EVENT,a),await e.nextTick(),z(),W()}},_=t=>{let{value:a}=t.target;o.formatter&&o.parser&&(a=o.parser(a)),i(b.CHANGE_EVENT,a)},{isComposing:Y,handleCompositionStart:X,handleCompositionUpdate:G,handleCompositionEnd:Z}=oe.useComposition({emit:i,afterComposition:A}),fe=()=>{q(),T.value=!T.value,setTimeout(W)},me=()=>{var t;return(t=k.value)==null?void 0:t.focus()},ve=()=>{var t;return(t=k.value)==null?void 0:t.blur()},he=t=>{M.value=!1,i("mouseleave",t)},ye=t=>{M.value=!0,i("mouseenter",t)},J=t=>{i("keydown",t)},ge=()=>{var t;(t=k.value)==null||t.select()},Q=()=>{i(b.UPDATE_MODEL_EVENT,""),i(b.CHANGE_EVENT,""),i("clear"),i(b.INPUT_EVENT,"")};return e.watch(()=>o.modelValue,()=>{var t;e.nextTick(()=>V()),o.validateEvent&&((t=p==null?void 0:p.validate)==null||t.call(p,"change").catch(a=>b.debugWarn()))}),e.watch(w,()=>z()),e.watch(()=>o.type,async()=>{await e.nextTick(),z(),V()}),e.onMounted(()=>{!o.formatter&&o.parser,z(),e.nextTick(V)}),d({input:P,textarea:E,ref:k,textareaStyle:j,autosize:e.toRef(o,"autosize"),isComposing:Y,focus:me,blur:ve,select:ge,clear:Q,resizeTextarea:V}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(h),{[e.unref(r).bm("group","append")]:t.$slots.append,[e.unref(r).bm("group","prepend")]:t.$slots.prepend}]),style:e.normalizeStyle(e.unref(ue)),onMouseenter:ye,onMouseleave:he},[e.createCommentVNode(" input "),t.type!=="textarea"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" prepend slot "),t.$slots.prepend?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).be("group","prepend"))},[e.renderSlot(t.$slots,"prepend")],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{ref_key:"wrapperRef",ref:ae,class:e.normalizeClass(e.unref(y))},[e.createCommentVNode(" prefix slot "),t.$slots.prefix||t.prefixIcon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r).e("prefix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).e("prefix-inner"))},[e.renderSlot(t.$slots,"prefix"),t.prefixIcon?(e.openBlock(),e.createBlock(e.unref(x.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.prefixIcon)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(I),ref_key:"input",ref:P,class:e.unref(r).e("inner")},e.unref(c),{name:t.name,minlength:t.minlength,maxlength:t.maxlength,type:t.showPassword?T.value?"text":"password":t.type,disabled:e.unref(g),readonly:t.readonly,autocomplete:t.autocomplete,tabindex:t.tabindex,"aria-label":t.ariaLabel,placeholder:t.placeholder,style:t.inputStyle,form:t.form,autofocus:t.autofocus,role:t.containerRole,inputmode:t.inputmode,onCompositionstart:e.unref(X),onCompositionupdate:e.unref(G),onCompositionend:e.unref(Z),onInput:A,onChange:_,onKeydown:J}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),e.createCommentVNode(" suffix slot "),e.unref(de)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r).e("suffix"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).e("suffix-inner"))},[!e.unref(D)||!e.unref(R)||!e.unref(S)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"suffix"),t.suffixIcon?(e.openBlock(),e.createBlock(e.unref(x.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.suffixIcon)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],64)):e.createCommentVNode("v-if",!0),e.unref(D)?(e.openBlock(),e.createBlock(e.unref(x.ElIcon),{key:1,class:e.normalizeClass([e.unref(r).e("icon"),e.unref(r).e("clear")]),onMousedown:e.withModifiers(e.unref(s.NOOP),["prevent"]),onClick:Q},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onMousedown"])):e.createCommentVNode("v-if",!0),e.unref(R)?(e.openBlock(),e.createBlock(e.unref(x.ElIcon),{key:2,class:e.normalizeClass([e.unref(r).e("icon"),e.unref(r).e("password")]),onClick:fe},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(ie))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.unref(S)?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(r).e("count"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).e("count-inner"))},e.toDisplayString(e.unref(L))+" / "+e.toDisplayString(t.maxlength),3)],2)):e.createCommentVNode("v-if",!0),e.unref(B)&&e.unref(U)&&e.unref(K)?(e.openBlock(),e.createBlock(e.unref(x.ElIcon),{key:4,class:e.normalizeClass([e.unref(r).e("icon"),e.unref(r).e("validateIcon"),e.unref(r).is("loading",e.unref(B)==="validating")])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(U))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0)],2),e.createCommentVNode(" append slot "),t.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).be("group","append"))},[e.renderSlot(t.$slots,"append")],2)):e.createCommentVNode("v-if",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" textarea "),e.createElementVNode("textarea",e.mergeProps({id:e.unref(I),ref_key:"textarea",ref:E,class:[e.unref(H).e("inner"),e.unref(r).is("focus",e.unref(O))]},e.unref(c),{minlength:t.minlength,maxlength:t.maxlength,tabindex:t.tabindex,disabled:e.unref(g),readonly:t.readonly,autocomplete:t.autocomplete,style:e.unref(j),"aria-label":t.ariaLabel,placeholder:t.placeholder,form:t.form,autofocus:t.autofocus,rows:t.rows,role:t.containerRole,onCompositionstart:e.unref(X),onCompositionupdate:e.unref(G),onCompositionend:e.unref(Z),onInput:A,onFocus:e.unref(le),onBlur:e.unref(se),onChange:_,onKeydown:J}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),e.unref(S)?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle($.value),class:e.normalizeClass(e.unref(r).e("count"))},e.toDisplayString(e.unref(L))+" / "+e.toDisplayString(t.maxlength),7)):e.createCommentVNode("v-if",!0)],64))],38))}});var Te=s._export_sfc(Pe,[["__file","input.vue"]]);const Fe=s.withInstall(Te);exports.ElInput=Fe;exports.inputProps=re;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),W=require("./el-input-7fd293af.cjs"),E=require("./index-098c2447.cjs"),l=require("./base-ef747d02.cjs"),g=require("./use-form-common-props-fd9b61a0.cjs"),c=require("./el-popper-b6c99b28.cjs"),X=require("./index-bb833443.cjs"),Y=100,j=600,L={beforeMount(o,v){const d=v.value,{interval:u=Y,delay:h=j}=l.isFunction(d)?{}:d;let f,p;const i=()=>l.isFunction(d)?d():d.handler(),b=()=>{p&&(clearTimeout(p),p=void 0),f&&(clearInterval(f),f=void 0)};o.addEventListener("mousedown",y=>{y.button===0&&(b(),i(),document.addEventListener("mouseup",()=>b(),{once:!0}),p=setTimeout(()=>{f=setInterval(()=>{i()},u)},h))})}},J=l.buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:g.useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:o=>o===null||l.isNumber(o)||["min","max"].includes(o),default:null},name:String,placeholder:String,precision:{type:Number,validator:o=>o>=0&&o===Number.parseInt(`${o}`,10)},validateEvent:{type:Boolean,default:!0},...c.useAriaProps(["ariaLabel"]),inputmode:{type:l.definePropType(String),default:void 0},align:{type:l.definePropType(String),default:"center"},disabledScientific:Boolean}),Q={[c.CHANGE_EVENT]:(o,v)=>v!==o,blur:o=>o instanceof FocusEvent,focus:o=>o instanceof FocusEvent,[c.INPUT_EVENT]:o=>l.isNumber(o)||l.isNil(o),[c.UPDATE_MODEL_EVENT]:o=>l.isNumber(o)||l.isNil(o)},Z=n.defineComponent({name:"ElInputNumber"}),ee=n.defineComponent({...Z,props:J,emits:Q,setup(o,{expose:v,emit:d}){const u=o,{t:h}=X.useLocale(),f=l.useNamespace("input-number"),p=n.ref(),i=n.reactive({currentValue:u.modelValue,userInput:null}),{formItem:b}=g.useFormItem(),y=n.computed(()=>l.isNumber(u.modelValue)&&u.modelValue<=u.min),B=n.computed(()=>l.isNumber(u.modelValue)&&u.modelValue>=u.max),x=n.computed(()=>{const e=M(u.step);return l.isUndefined(u.precision)?Math.max(M(u.modelValue),e):(e>u.precision,u.precision)}),w=n.computed(()=>u.controls&&u.controlsPosition==="right"),F=g.useFormSize(),V=g.useFormDisabled(),S=n.computed(()=>{if(i.userInput!==null)return i.userInput;let e=i.currentValue;if(l.isNil(e))return"";if(l.isNumber(e)){if(Number.isNaN(e))return"";l.isUndefined(u.precision)||(e=e.toFixed(u.precision))}return e}),A=(e,r)=>{if(l.isUndefined(r)&&(r=x.value),r===0)return Math.round(e);let t=String(e);const a=t.indexOf(".");if(a===-1||!t.replace(".","").split("")[a+r])return e;const I=t.length;return t.charAt(I-1)==="5"&&(t=`${t.slice(0,Math.max(0,I-1))}6`),Number.parseFloat(Number(t).toFixed(r))},M=e=>{if(l.isNil(e))return 0;const r=e.toString(),t=r.indexOf(".");let a=0;return t!==-1&&(a=r.length-t-1),a},U=(e,r=1)=>l.isNumber(e)?e>=Number.MAX_SAFE_INTEGER&&r===1||e<=Number.MIN_SAFE_INTEGER&&r===-1?e:A(e+u.step*r):i.currentValue,O=e=>{var r;const t=e;if(u.disabledScientific&&["e","E"].includes(t.key)){t.preventDefault();return}const a={[c.EVENT_CODE.up]:()=>{t.preventDefault(),P()},[c.EVENT_CODE.down]:()=>{t.preventDefault(),D()}};(r=a[t.key])==null||r.call(a)},P=()=>{if(u.readonly||V.value||B.value)return;const e=Number(S.value)||0,r=U(e);_(r),d(c.INPUT_EVENT,i.currentValue),C()},D=()=>{if(u.readonly||V.value||y.value)return;const e=Number(S.value)||0,r=U(e,-1);_(r),d(c.INPUT_EVENT,i.currentValue),C()},k=(e,r)=>{const{max:t,min:a,step:s,precision:N,stepStrictly:I,valueOnClear:T}=u;t<a&&c.throwError("InputNumber","min should not be greater than max.");let m=Number(e);if(l.isNil(e)||Number.isNaN(m))return null;if(e===""){if(T===null)return null;m=l.isString(T)?{min:a,max:t}[T]:T}return I&&(m=A(Math.round(m/s)*s,N),m!==e&&r&&d(c.UPDATE_MODEL_EVENT,m)),l.isUndefined(N)||(m=A(m,N)),(m>t||m<a)&&(m=m>t?t:a,r&&d(c.UPDATE_MODEL_EVENT,m)),m},_=(e,r=!0)=>{var t;const a=i.currentValue,s=k(e);if(!r){d(c.UPDATE_MODEL_EVENT,s);return}a===s&&e||(i.userInput=null,d(c.UPDATE_MODEL_EVENT,s),a!==s&&d(c.CHANGE_EVENT,s,a),u.validateEvent&&((t=b==null?void 0:b.validate)==null||t.call(b,"change").catch(N=>c.debugWarn())),i.currentValue=s)},$=e=>{i.userInput=e;const r=e===""?null:Number(e);d(c.INPUT_EVENT,r),_(r,!1)},z=e=>{const r=e!==""?Number(e):"";(l.isNumber(r)&&!Number.isNaN(r)||e==="")&&_(r),C(),i.userInput=null},R=()=>{var e,r;(r=(e=p.value)==null?void 0:e.focus)==null||r.call(e)},K=()=>{var e,r;(r=(e=p.value)==null?void 0:e.blur)==null||r.call(e)},q=e=>{d("focus",e)},G=e=>{var r,t;i.userInput=null,i.currentValue===null&&((r=p.value)!=null&&r.input)&&(p.value.input.value=""),d("blur",e),u.validateEvent&&((t=b==null?void 0:b.validate)==null||t.call(b,"blur").catch(a=>c.debugWarn()))},C=()=>{i.currentValue!==u.modelValue&&(i.currentValue=u.modelValue)},H=e=>{document.activeElement===e.target&&e.preventDefault()};return n.watch(()=>u.modelValue,(e,r)=>{const t=k(e,!0);i.userInput===null&&t!==r&&(i.currentValue=t)},{immediate:!0}),n.watch(()=>u.precision,()=>{i.currentValue=k(u.modelValue)}),n.onMounted(()=>{var e;const{min:r,max:t,modelValue:a}=u,s=(e=p.value)==null?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(t)?s.setAttribute("aria-valuemax",String(t)):s.removeAttribute("aria-valuemax"),Number.isFinite(r)?s.setAttribute("aria-valuemin",String(r)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),s.setAttribute("aria-disabled",String(V.value)),!l.isNumber(a)&&a!=null){let N=Number(a);Number.isNaN(N)&&(N=null),d(c.UPDATE_MODEL_EVENT,N)}s.addEventListener("wheel",H,{passive:!1})}),n.onUpdated(()=>{var e,r;const t=(e=p.value)==null?void 0:e.input;t==null||t.setAttribute("aria-valuenow",`${(r=i.currentValue)!=null?r:""}`)}),v({focus:R,blur:K}),(e,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(f).b(),n.unref(f).m(n.unref(F)),n.unref(f).is("disabled",n.unref(V)),n.unref(f).is("without-controls",!e.controls),n.unref(f).is("controls-right",n.unref(w)),n.unref(f).is(e.align,!!e.align)]),onDragstart:n.withModifiers(()=>{},["prevent"])},[e.controls?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:0,role:"button","aria-label":n.unref(h)("el.inputNumber.decrease"),class:n.normalizeClass([n.unref(f).e("decrease"),n.unref(f).is("disabled",n.unref(y))]),onKeydown:n.withKeys(D,["enter"])},[n.renderSlot(e.$slots,"decrease-icon",{},()=>[n.createVNode(n.unref(E.ElIcon),null,{default:n.withCtx(()=>[n.unref(w)?(n.openBlock(),n.createBlock(n.unref(E.arrow_down_default),{key:0})):(n.openBlock(),n.createBlock(n.unref(E.minus_default),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[n.unref(L),D]]):n.createCommentVNode("v-if",!0),e.controls?n.withDirectives((n.openBlock(),n.createElementBlock("span",{key:1,role:"button","aria-label":n.unref(h)("el.inputNumber.increase"),class:n.normalizeClass([n.unref(f).e("increase"),n.unref(f).is("disabled",n.unref(B))]),onKeydown:n.withKeys(P,["enter"])},[n.renderSlot(e.$slots,"increase-icon",{},()=>[n.createVNode(n.unref(E.ElIcon),null,{default:n.withCtx(()=>[n.unref(w)?(n.openBlock(),n.createBlock(n.unref(E.arrow_up_default),{key:0})):(n.openBlock(),n.createBlock(n.unref(E.plus_default),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[n.unref(L),P]]):n.createCommentVNode("v-if",!0),n.createVNode(n.unref(W.ElInput),{id:e.id,ref_key:"input",ref:p,type:"number",step:e.step,"model-value":n.unref(S),placeholder:e.placeholder,readonly:e.readonly,disabled:n.unref(V),size:n.unref(F),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:O,onBlur:G,onFocus:q,onInput:$,onChange:z},n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")])}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],42,["onDragstart"]))}});var ne=l._export_sfc(ee,[["__file","input-number.vue"]]);const re=l.withInstall(ne);exports.ElInputNumber=re;