st-comp 0.0.248 → 0.0.249

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 (163) hide show
  1. package/components.d.ts +1 -0
  2. package/es/ChartLayout.js +4 -4
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +82 -80
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +36 -35
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +20 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +30 -28
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +83 -82
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +19 -18
  15. package/es/KlinePlus.cjs +1 -1
  16. package/es/KlinePlus.js +22 -21
  17. package/es/LinearLegend.cjs +1 -1
  18. package/es/LinearLegend.js +63 -1
  19. package/es/MonacoEditor.cjs +1 -1
  20. package/es/MonacoEditor.js +28 -26
  21. package/es/Pagination.cjs +1 -1
  22. package/es/Pagination.js +121 -120
  23. package/es/PasswordPrompt.cjs +1 -1
  24. package/es/PasswordPrompt.js +3 -3
  25. package/es/Table.cjs +1 -1
  26. package/es/Table.js +31 -30
  27. package/es/User.cjs +1 -1
  28. package/es/User.js +157 -155
  29. package/es/VarSelectDialog.cjs +2 -2
  30. package/es/VarSelectDialog.js +29 -27
  31. package/es/VarietyAiHelper.cjs +4 -0
  32. package/es/VarietyAiHelper.js +270 -0
  33. package/es/VarietyAutoComplete.cjs +1 -1
  34. package/es/VarietyAutoComplete.js +13 -12
  35. package/es/VarietySearch.cjs +10 -10
  36. package/es/VarietySearch.js +70 -68
  37. package/es/{VarietySelect-2fd501da.cjs → VarietySelect-5c845562.cjs} +1 -1
  38. package/es/{VarietySelect-b9fe3000.js → VarietySelect-9f267958.js} +4 -4
  39. package/es/VarietyTextCopy.cjs +1 -1
  40. package/es/VarietyTextCopy.js +24 -22
  41. package/es/VirtualTable.cjs +1 -1
  42. package/es/VirtualTable.js +70 -70
  43. package/es/{_initCloneObject-3823a101.cjs → _initCloneObject-2b82e9f7.cjs} +1 -1
  44. package/es/{_initCloneObject-382335b2.js → _initCloneObject-69c8ae23.js} +7 -7
  45. package/es/aiTools.js +36 -0
  46. package/es/{base-ff0e366f.js → base-29f73b05.js} +40 -40
  47. package/es/{castArray-15070be9.js → castArray-609a313e.js} +1 -1
  48. package/es/{config-provider-2182708a.cjs → config-provider-2ae47cc8.cjs} +1 -1
  49. package/es/{config-provider-2e85eee8.js → config-provider-7860903c.js} +6 -6
  50. package/es/{debounce-e9e47f9a.js → debounce-a09ce9a3.js} +1 -1
  51. package/es/{dropdown-2b35a683.js → dropdown-497442b7.js} +30 -29
  52. package/es/dropdown-eba9eaf5.cjs +1 -0
  53. package/es/{el-autocomplete-18be2c5a.js → el-autocomplete-27c60cc8.js} +24 -23
  54. package/es/el-autocomplete-b59eb529.cjs +1 -0
  55. package/es/{el-button-68baab7b.cjs → el-button-974ff9e9.cjs} +1 -1
  56. package/es/{el-button-f08c0639.js → el-button-e2c63c08.js} +39 -39
  57. package/es/el-checkbox-08185353.cjs +1 -0
  58. package/es/{el-checkbox-058dba2d.js → el-checkbox-71ebd862.js} +31 -31
  59. package/es/el-dialog-1b185570.cjs +1 -0
  60. package/es/{el-dialog-d328e0d8.js → el-dialog-eedcfd3e.js} +15 -15
  61. package/es/{el-divider-4fe55ebe.js → el-divider-523e5874.js} +1 -1
  62. package/es/{el-empty-ceecb81c.js → el-empty-f5a1607a.js} +5 -5
  63. package/es/{el-form-item-cb328886.js → el-form-item-bdcfd297.js} +36 -36
  64. package/es/{el-form-item-4076e55f.cjs → el-form-item-c997b4fa.cjs} +1 -1
  65. package/es/{el-input-0f6ead19.js → el-input-d47281da.js} +91 -91
  66. package/es/el-input-fa18ef84.cjs +1 -0
  67. package/es/el-input-number-3d94fa58.cjs +1 -0
  68. package/es/{el-input-number-66e68609.js → el-input-number-c8018cb1.js} +28 -28
  69. package/es/{el-loading-412370c7.js → el-loading-0cd81d05.js} +5 -5
  70. package/es/{el-loading-05826e64.cjs → el-loading-969a79ca.cjs} +1 -1
  71. package/es/el-menu-item-26071fd6.cjs +1 -0
  72. package/es/{el-menu-item-0ee8ad18.js → el-menu-item-dac65bb3.js} +31 -30
  73. package/es/el-message-0ea8fbf8.cjs +1 -0
  74. package/es/el-message-4ed993c7.js +1 -0
  75. package/es/el-message-box-31e0aa98.cjs +1 -0
  76. package/es/{el-message-box-6db52b29.js → el-message-box-fea4fca8.js} +11 -11
  77. package/es/{el-overlay-981f8d49.js → el-overlay-1ee0338d.js} +63 -63
  78. package/es/el-overlay-ea65cb05.cjs +1 -0
  79. package/es/{el-popconfirm-005013fa.js → el-popconfirm-089b8bec.js} +17 -16
  80. package/es/el-popconfirm-9e232436.cjs +1 -0
  81. package/es/el-popper-2d3914e4.cjs +1 -0
  82. package/es/el-popper-c9b3d3cf.js +1662 -0
  83. package/es/el-segmented-140ac042.cjs +1 -0
  84. package/es/{el-segmented-050d0090.js → el-segmented-9d3a9e11.js} +8 -8
  85. package/es/el-select-a11f33e8.cjs +1 -0
  86. package/es/{el-select-23a1f302.js → el-select-e51e11c1.js} +92 -91
  87. package/es/{el-table-column-d0c374cf.js → el-table-column-05d292a8.js} +25 -24
  88. package/es/el-table-column-98570a4d.cjs +14 -0
  89. package/es/{el-tag-f13f463b.js → el-tag-17cd04a1.js} +14 -14
  90. package/es/el-tag-6d8e653e.cjs +1 -0
  91. package/es/{el-text-27cef2be.js → el-text-2710fff3.js} +2 -2
  92. package/es/{el-text-1470de46.cjs → el-text-a18106cb.cjs} +1 -1
  93. package/es/{index-09bd2621.js → index-0ee486ad.js} +43 -43
  94. package/es/index-0f79095c.js +440 -0
  95. package/es/{index-e0901394.js → index-1d9b50de.js} +34 -34
  96. package/es/index-28e03bad.cjs +1 -0
  97. package/es/{index-269b22da.cjs → index-299ee017.cjs} +1 -1
  98. package/es/{index-cebc7160.cjs → index-33f80550.cjs} +1 -1
  99. package/es/{index-4f48940d.cjs → index-37b8d3c6.cjs} +1 -1
  100. package/es/{index-2375023e.cjs → index-5befc414.cjs} +4 -4
  101. package/es/{index-696b6a94.cjs → index-6b99def3.cjs} +1 -1
  102. package/es/index-6ca95c8a.cjs +1 -0
  103. package/es/index-7dce9f59.cjs +1 -0
  104. package/es/{index-269b8a8c.js → index-8391a3df.js} +37 -37
  105. package/es/{index-c266c23a.js → index-8f9d0d17.js} +16 -15
  106. package/es/{index-15b9603e.js → index-95e5d454.js} +3 -3
  107. package/es/{index-b937ea22.js → index-b0117ba2.js} +2 -2
  108. package/es/{index-80a7ad32.js → index-bcd895a0.js} +17 -17
  109. package/es/{index-ec7ad93f.js → index-c2b9bbfd.js} +95 -65
  110. package/es/{index-4a3f30c5.js → index-c71e37dc.js} +11 -11
  111. package/es/{index-93a8960e.js → index-de24705f.js} +1 -1
  112. package/es/index-e8eeea22.cjs +1 -0
  113. package/es/{index-ee977f79.cjs → index-eb99b188.cjs} +1 -1
  114. package/es/{el-message-e6c755df.js → index-f30561d3.js} +33 -33
  115. package/es/{python-c67c8901.cjs → python-27ece6fa.cjs} +2 -2
  116. package/es/{python-823b276b.js → python-656db04f.js} +30 -28
  117. package/es/raf-744cf95a.js +6 -0
  118. package/es/{scroll-41b4f625.js → scroll-6799bafc.js} +5 -5
  119. package/es/style.css +1 -1
  120. package/es/{use-form-common-props-631cacae.js → use-form-common-props-cb0ca65c.js} +72 -72
  121. package/es/{use-form-common-props-344056f9.cjs → use-form-common-props-d3ed62c6.cjs} +1 -1
  122. package/es/{use-global-config-cf78ebac.cjs → use-global-config-c80f33a4.cjs} +1 -1
  123. package/es/{use-global-config-5d001623.js → use-global-config-cdaeca54.js} +14 -14
  124. package/es/{validator-3cad04b2.cjs → validator-07160325.cjs} +1 -1
  125. package/es/{validator-4160d9e7.js → validator-4ab9774f.js} +1 -1
  126. package/es/{vnode-06571d5b.js → vnode-a83e6de8.js} +1 -1
  127. package/es/{zh-cn-aabfaa94.cjs → zh-cn-6a0f844c.cjs} +1 -1
  128. package/es/{zh-cn-5df98ac2.js → zh-cn-8a6390a4.js} +2 -2
  129. package/lib/aiTools.js +36 -0
  130. package/lib/bundle.js +1 -1
  131. package/lib/bundle.umd.cjs +157 -154
  132. package/lib/{index-f00d1e1f.js → index-6ac0579e.js} +16077 -15806
  133. package/lib/{python-0f34e2e6.js → python-0432340a.js} +1 -1
  134. package/lib/style.css +1 -1
  135. package/package.json +1 -1
  136. package/packages/VarietyAiHelper/index.ts +8 -0
  137. package/packages/VarietyAiHelper/index.vue +430 -0
  138. package/packages/index.ts +2 -0
  139. package/public/aiTools.js +36 -0
  140. package/src/App.vue +24 -14
  141. package/src/pages/VarietyAiHelper/index.vue +20 -0
  142. package/src/pages/VarietySearch/index.vue +75 -51
  143. package/src/router/routes.ts +5 -0
  144. package/es/dropdown-89b74bc9.cjs +0 -1
  145. package/es/el-autocomplete-b9a3054a.cjs +0 -1
  146. package/es/el-checkbox-b982e2ef.cjs +0 -1
  147. package/es/el-dialog-ad7309e9.cjs +0 -1
  148. package/es/el-input-172c49f8.cjs +0 -1
  149. package/es/el-input-number-c2e71528.cjs +0 -1
  150. package/es/el-menu-item-7f986598.cjs +0 -1
  151. package/es/el-message-a86c0efa.cjs +0 -1
  152. package/es/el-message-box-40ff2af5.cjs +0 -1
  153. package/es/el-overlay-d7a6e4a9.cjs +0 -1
  154. package/es/el-popconfirm-737a015b.cjs +0 -1
  155. package/es/el-popper-7ba87e05.cjs +0 -1
  156. package/es/el-popper-fdc7c793.js +0 -2094
  157. package/es/el-segmented-3fd66a0e.cjs +0 -1
  158. package/es/el-select-12f6deb7.cjs +0 -1
  159. package/es/el-table-column-516a0ed9.cjs +0 -14
  160. package/es/el-tag-789f05d3.cjs +0 -1
  161. package/es/index-8de94a49.cjs +0 -1
  162. package/es/index-c04f444f.cjs +0 -1
  163. package/es/raf-8e05a7f4.js +0 -6
@@ -1,11 +1,11 @@
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 _e, 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 k, createBlock as C, withCtx as L, resolveDynamicComponent as O, mergeProps as xe, withModifiers as Ge, toDisplayString as U } from "vue";
2
- import { u as Ze, i as ee, e as qe, f as Je, a as Qe, d as et, V as tt, h as ot } from "./use-form-common-props-631cacae.js";
3
- import { k as nt, v as at, n as st, E as B } from "./index-ec7ad93f.js";
4
- import { a as ke, f as we, b as lt, d as H, e as te, x as rt, u as Se, v as it, N as ut, _ as dt, h as Ce, w as ct } from "./base-ff0e366f.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 _e, 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 B, resolveDynamicComponent as L, mergeProps as we, withModifiers as Ge, 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-cb0ca65c.js";
3
+ import { z as nt, A as at, B as st, E as O } from "./index-c2b9bbfd.js";
4
+ import { s as Te, p as xe, b as lt, e as H, c as te, H as rt, u as Se, g as it, N as ut, _ as dt, f as Ce, w as ct } from "./base-29f73b05.js";
5
5
  import { m as pt } from "./typescript-7ae59c4c.js";
6
- import { u as ft, U as oe, d as Ie, I as Ee, C as Ne } from "./el-popper-fdc7c793.js";
7
- import { u as vt, a as mt } from "./index-4a3f30c5.js";
8
- 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 ze } from "./index-0f79095c.js";
7
+ import { a as vt, u as mt } from "./index-c71e37dc.js";
8
+ const ht = () => Te && /firefox/i.test(window.navigator.userAgent);
9
9
  let g;
10
10
  const yt = {
11
11
  height: "0",
@@ -40,26 +40,26 @@ function bt(n) {
40
40
  f.getPropertyValue(l)
41
41
  ]), paddingSize: o, borderSize: i, boxSizing: r };
42
42
  }
43
- function ze(n, f = 1, r) {
43
+ function Ne(n, f = 1, r) {
44
44
  var o, i;
45
45
  g || (g = document.createElement("textarea"), ((o = n.parentNode) != null ? o : document.body).appendChild(g));
46
- const { paddingSize: u, borderSize: l, boxSizing: b, contextStyle: x } = bt(n);
47
- x.forEach(([y, w]) => g == null ? void 0 : g.style.setProperty(y, w)), Object.entries(yt).forEach(([y, w]) => g == null ? void 0 : g.style.setProperty(y, w, "important")), g.value = n.value || n.placeholder || "";
46
+ const { paddingSize: u, borderSize: l, boxSizing: b, contextStyle: w } = bt(n);
47
+ w.forEach(([y, x]) => g == null ? void 0 : g.style.setProperty(y, x)), Object.entries(yt).forEach(([y, x]) => g == null ? void 0 : g.style.setProperty(y, x, "important")), g.value = n.value || n.placeholder || "";
48
48
  let h = g.scrollHeight;
49
49
  const v = {};
50
50
  b === "border-box" ? h = h + l : b === "content-box" && (h = h - u), g.value = "";
51
- const T = g.scrollHeight - u;
52
- if (we(f)) {
53
- let y = T * f;
51
+ const k = g.scrollHeight - u;
52
+ if (xe(f)) {
53
+ let y = k * f;
54
54
  b === "border-box" && (y = y + u + l), h = Math.max(y, h), v.minHeight = `${y}px`;
55
55
  }
56
- if (we(r)) {
57
- let y = T * r;
56
+ if (xe(r)) {
57
+ let y = k * r;
58
58
  b === "border-box" && (y = y + u + l), h = Math.min(y, h);
59
59
  }
60
60
  return v.height = `${h}px`, (i = g.parentNode) == null || i.removeChild(g), g = void 0, v;
61
61
  }
62
- const xt = lt({
62
+ const wt = lt({
63
63
  id: {
64
64
  type: String,
65
65
  default: void 0
@@ -149,7 +149,7 @@ const xt = lt({
149
149
  default: void 0
150
150
  },
151
151
  name: String
152
- }), wt = {
152
+ }), xt = {
153
153
  [oe]: (n) => te(n),
154
154
  input: (n) => te(n),
155
155
  change: (n) => te(n),
@@ -177,13 +177,13 @@ function Et(n) {
177
177
  const { selectionStart: i, selectionEnd: u, value: l } = n.value;
178
178
  if (i == null || u == null)
179
179
  return;
180
- const b = l.slice(0, Math.max(0, i)), x = l.slice(Math.max(0, u));
180
+ const b = l.slice(0, Math.max(0, i)), w = l.slice(Math.max(0, u));
181
181
  f = {
182
182
  selectionStart: i,
183
183
  selectionEnd: u,
184
184
  value: l,
185
185
  beforeTxt: b,
186
- afterTxt: x
186
+ afterTxt: w
187
187
  };
188
188
  }
189
189
  function o() {
@@ -192,32 +192,32 @@ function Et(n) {
192
192
  const { value: i } = n.value, { beforeTxt: u, afterTxt: l, selectionStart: b } = f;
193
193
  if (u == null || l == null || b == null)
194
194
  return;
195
- let x = i.length;
195
+ let w = i.length;
196
196
  if (i.endsWith(l))
197
- x = i.length - l.length;
197
+ w = i.length - l.length;
198
198
  else if (i.startsWith(u))
199
- x = u.length;
199
+ w = u.length;
200
200
  else {
201
201
  const h = u[b - 1], v = i.indexOf(h, b - 1);
202
- v !== -1 && (x = v + 1);
202
+ v !== -1 && (w = v + 1);
203
203
  }
204
- n.value.setSelectionRange(x, x);
204
+ n.value.setSelectionRange(w, w);
205
205
  }
206
206
  return [r, o];
207
207
  }
208
- const Nt = "ElInput", zt = Pe({
209
- name: Nt,
208
+ const zt = "ElInput", Nt = Pe({
209
+ name: zt,
210
210
  inheritAttrs: !1
211
211
  }), Pt = /* @__PURE__ */ Pe({
212
- ...zt,
213
- props: xt,
214
- emits: wt,
212
+ ...Nt,
213
+ props: wt,
214
+ emits: xt,
215
215
  setup(n, { expose: f, emit: r }) {
216
216
  const o = n, i = We(), u = It(), l = Ye(), b = c(() => [
217
217
  o.type === "textarea" ? ne.b() : a.b(),
218
218
  a.m(y.value),
219
- a.is("disabled", w.value),
220
- a.is("exceed", Le.value),
219
+ a.is("disabled", x.value),
220
+ a.is("exceed", Be.value),
221
221
  {
222
222
  [a.b("group")]: l.prepend || l.append,
223
223
  [a.m("prefix")]: l.prefix || o.prefixIcon,
@@ -226,13 +226,13 @@ const Nt = "ElInput", zt = Pe({
226
226
  [a.b("hidden")]: o.type === "hidden"
227
227
  },
228
228
  i.class
229
- ]), x = c(() => [
229
+ ]), w = c(() => [
230
230
  a.e("wrapper"),
231
231
  a.is("focus", Y.value)
232
- ]), { form: h, formItem: v } = qe(), { inputId: T } = Je(o, {
232
+ ]), { form: h, formItem: v } = qe(), { inputId: k } = Je(o, {
233
233
  formItemContext: v
234
- }), y = Qe(), w = 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: Te, isFocused: Y, handleFocus: Ve, handleBlur: Fe } = vt(N, {
235
- disabled: w,
234
+ }), y = Qe(), x = et(), a = Se("input"), ne = Se("textarea"), A = Z(), I = Z(), W = q(!1), $ = q(!1), ae = q(), D = Z(o.inputStyle), z = c(() => A.value || I.value), { wrapperRef: ke, isFocused: Y, handleFocus: Ve, handleBlur: Fe } = vt(z, {
235
+ disabled: x,
236
236
  afterBlur() {
237
237
  var e;
238
238
  o.validateEvent && ((e = v == null ? void 0 : v.validate) == null || e.call(v, "blur").catch((s) => Ie()));
@@ -240,15 +240,15 @@ const Nt = "ElInput", zt = Pe({
240
240
  }), se = c(() => {
241
241
  var e;
242
242
  return (e = h == null ? void 0 : h.statusIcon) != null ? e : !1;
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
+ }), V = c(() => (v == null ? void 0 : v.validateState) || ""), le = c(() => V.value && tt[V.value]), Me = c(() => $.value ? at : st), Re = c(() => [
244
244
  i.style
245
245
  ]), re = c(() => [
246
246
  o.inputStyle,
247
247
  D.value,
248
248
  { resize: o.resize }
249
- ]), E = c(() => it(o.modelValue) ? "" : String(o.modelValue)), K = c(() => o.clearable && !w.value && !o.readonly && !!E.value && (Y.value || W.value)), X = c(() => o.showPassword && !w.value && !!E.value), z = c(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !w.value && !o.readonly && !o.showPassword), _ = c(() => E.value.length), Le = c(() => !!z.value && _.value > Number(o.maxlength)), Oe = c(() => !!l.suffix || !!o.suffixIcon || K.value || o.showPassword || z.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), N = c(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !x.value && !o.readonly && !o.showPassword), _ = c(() => E.value.length), Be = c(() => !!N.value && _.value > Number(o.maxlength)), Le = c(() => !!l.suffix || !!o.suffixIcon || K.value || o.showPassword || N.value || !!V.value && se.value), [ie, ue] = Et(A);
250
250
  ot(I, (e) => {
251
- if (Be(), !z.value || o.resize !== "both")
251
+ if (Oe(), !N.value || o.resize !== "both")
252
252
  return;
253
253
  const s = e[0], { width: P } = s.contentRect;
254
254
  ae.value = {
@@ -257,9 +257,9 @@ const Nt = "ElInput", zt = Pe({
257
257
  });
258
258
  const F = () => {
259
259
  const { type: e, autosize: s } = o;
260
- if (!(!ke || e !== "textarea" || !I.value))
260
+ if (!(!Te || e !== "textarea" || !I.value))
261
261
  if (s) {
262
- const P = Ce(s) ? s.minRows : void 0, ye = Ce(s) ? s.maxRows : void 0, ge = ze(I.value, P, ye);
262
+ const P = Ce(s) ? s.minRows : void 0, ye = Ce(s) ? s.maxRows : void 0, ge = Ne(I.value, P, ye);
263
263
  D.value = {
264
264
  overflowY: "hidden",
265
265
  ...ge
@@ -268,9 +268,9 @@ const Nt = "ElInput", zt = Pe({
268
268
  });
269
269
  } else
270
270
  D.value = {
271
- minHeight: ze(I.value).minHeight
271
+ minHeight: Ne(I.value).minHeight
272
272
  };
273
- }, Be = ((e) => {
273
+ }, Oe = ((e) => {
274
274
  let s = !1;
275
275
  return () => {
276
276
  var P;
@@ -279,7 +279,7 @@ const Nt = "ElInput", zt = Pe({
279
279
  ((P = I.value) == null ? void 0 : P.offsetParent) === null || (setTimeout(e), s = !0);
280
280
  };
281
281
  })(F), M = () => {
282
- const e = N.value, s = o.formatter ? o.formatter(E.value) : E.value;
282
+ const e = z.value, s = o.formatter ? o.formatter(E.value) : E.value;
283
283
  !e || e.value === s || (e.value = s);
284
284
  }, G = async (e) => {
285
285
  ie();
@@ -293,20 +293,20 @@ const Nt = "ElInput", zt = Pe({
293
293
  }
294
294
  }, de = (e) => {
295
295
  let { value: s } = e.target;
296
- o.formatter && o.parser && (s = o.parser(s)), r(Ne, s);
296
+ o.formatter && o.parser && (s = o.parser(s)), r(ze, s);
297
297
  }, {
298
298
  isComposing: ce,
299
299
  handleCompositionStart: pe,
300
300
  handleCompositionUpdate: fe,
301
301
  handleCompositionEnd: ve
302
302
  } = mt({ emit: r, afterComposition: G }), He = () => {
303
- ie(), A.value = !A.value, setTimeout(ue);
304
- }, $e = () => {
305
- var e;
306
- return (e = N.value) == null ? void 0 : e.focus();
303
+ ie(), $.value = !$.value, setTimeout(ue);
307
304
  }, Ae = () => {
308
305
  var e;
309
- return (e = N.value) == null ? void 0 : e.blur();
306
+ return (e = z.value) == null ? void 0 : e.focus();
307
+ }, $e = () => {
308
+ var e;
309
+ return (e = z.value) == null ? void 0 : e.blur();
310
310
  }, De = (e) => {
311
311
  W.value = !1, r("mouseleave", e);
312
312
  }, Ke = (e) => {
@@ -315,9 +315,9 @@ const Nt = "ElInput", zt = Pe({
315
315
  r("keydown", e);
316
316
  }, je = () => {
317
317
  var e;
318
- (e = N.value) == null || e.select();
318
+ (e = z.value) == null || e.select();
319
319
  }, he = () => {
320
- r(oe, ""), r(Ne, ""), r("clear"), r(Ee, "");
320
+ r(oe, ""), r(ze, ""), r("clear"), r(Ee, "");
321
321
  };
322
322
  return J(() => o.modelValue, () => {
323
323
  var e;
@@ -327,14 +327,14 @@ const Nt = "ElInput", zt = Pe({
327
327
  }), Xe(() => {
328
328
  !o.formatter && o.parser, M(), R(F);
329
329
  }), f({
330
- input: $,
330
+ input: A,
331
331
  textarea: I,
332
- ref: N,
332
+ ref: z,
333
333
  textareaStyle: re,
334
334
  autosize: _e(o, "autosize"),
335
335
  isComposing: ce,
336
- focus: $e,
337
- blur: Ae,
336
+ focus: Ae,
337
+ blur: $e,
338
338
  select: je,
339
339
  clear: he,
340
340
  resizeTextarea: F
@@ -359,42 +359,42 @@ const Nt = "ElInput", zt = Pe({
359
359
  }, [
360
360
  j(e.$slots, "prepend")
361
361
  ], 2)) : p("v-if", !0),
362
- k("div", {
362
+ T("div", {
363
363
  ref_key: "wrapperRef",
364
- ref: Te,
365
- class: m(t(x))
364
+ ref: ke,
365
+ class: m(t(w))
366
366
  }, [
367
367
  p(" prefix slot "),
368
368
  e.$slots.prefix || e.prefixIcon ? (d(), S("span", {
369
369
  key: 0,
370
370
  class: m(t(a).e("prefix"))
371
371
  }, [
372
- k("span", {
372
+ T("span", {
373
373
  class: m(t(a).e("prefix-inner"))
374
374
  }, [
375
375
  j(e.$slots, "prefix"),
376
- e.prefixIcon ? (d(), C(t(B), {
376
+ e.prefixIcon ? (d(), C(t(O), {
377
377
  key: 0,
378
378
  class: m(t(a).e("icon"))
379
379
  }, {
380
- default: L(() => [
381
- (d(), C(O(e.prefixIcon)))
380
+ default: B(() => [
381
+ (d(), C(L(e.prefixIcon)))
382
382
  ]),
383
383
  _: 1
384
384
  }, 8, ["class"])) : p("v-if", !0)
385
385
  ], 2)
386
386
  ], 2)) : p("v-if", !0),
387
- k("input", xe({
388
- id: t(T),
387
+ T("input", we({
388
+ id: t(k),
389
389
  ref_key: "input",
390
- ref: $,
390
+ ref: A,
391
391
  class: t(a).e("inner")
392
392
  }, t(u), {
393
393
  name: e.name,
394
394
  minlength: e.minlength,
395
395
  maxlength: e.maxlength,
396
- type: e.showPassword ? A.value ? "text" : "password" : e.type,
397
- disabled: t(w),
396
+ type: e.showPassword ? $.value ? "text" : "password" : e.type,
397
+ disabled: t(x),
398
398
  readonly: e.readonly,
399
399
  autocomplete: e.autocomplete,
400
400
  tabindex: e.tabindex,
@@ -413,55 +413,55 @@ const Nt = "ElInput", zt = Pe({
413
413
  onKeydown: me
414
414
  }), null, 16, ["id", "name", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "inputmode", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
415
415
  p(" suffix slot "),
416
- t(Oe) ? (d(), S("span", {
416
+ t(Le) ? (d(), S("span", {
417
417
  key: 1,
418
418
  class: m(t(a).e("suffix"))
419
419
  }, [
420
- k("span", {
420
+ T("span", {
421
421
  class: m(t(a).e("suffix-inner"))
422
422
  }, [
423
- !t(K) || !t(X) || !t(z) ? (d(), S(Q, { key: 0 }, [
423
+ !t(K) || !t(X) || !t(N) ? (d(), S(Q, { key: 0 }, [
424
424
  j(e.$slots, "suffix"),
425
- e.suffixIcon ? (d(), C(t(B), {
425
+ e.suffixIcon ? (d(), C(t(O), {
426
426
  key: 0,
427
427
  class: m(t(a).e("icon"))
428
428
  }, {
429
- default: L(() => [
430
- (d(), C(O(e.suffixIcon)))
429
+ default: B(() => [
430
+ (d(), C(L(e.suffixIcon)))
431
431
  ]),
432
432
  _: 1
433
433
  }, 8, ["class"])) : p("v-if", !0)
434
434
  ], 64)) : p("v-if", !0),
435
- t(K) ? (d(), C(t(B), {
435
+ t(K) ? (d(), C(t(O), {
436
436
  key: 1,
437
437
  class: m([t(a).e("icon"), t(a).e("clear")]),
438
438
  onMousedown: Ge(t(ut), ["prevent"]),
439
439
  onClick: he
440
440
  }, {
441
- default: L(() => [
442
- (d(), C(O(e.clearIcon)))
441
+ default: B(() => [
442
+ (d(), C(L(e.clearIcon)))
443
443
  ]),
444
444
  _: 1
445
445
  }, 8, ["class", "onMousedown"])) : p("v-if", !0),
446
- t(X) ? (d(), C(t(B), {
446
+ t(X) ? (d(), C(t(O), {
447
447
  key: 2,
448
448
  class: m([t(a).e("icon"), t(a).e("password")]),
449
449
  onClick: He
450
450
  }, {
451
- default: L(() => [
452
- (d(), C(O(t(Me))))
451
+ default: B(() => [
452
+ (d(), C(L(t(Me))))
453
453
  ]),
454
454
  _: 1
455
455
  }, 8, ["class"])) : p("v-if", !0),
456
- t(z) ? (d(), S("span", {
456
+ t(N) ? (d(), S("span", {
457
457
  key: 3,
458
458
  class: m(t(a).e("count"))
459
459
  }, [
460
- k("span", {
460
+ T("span", {
461
461
  class: m(t(a).e("count-inner"))
462
462
  }, U(t(_)) + " / " + U(e.maxlength), 3)
463
463
  ], 2)) : p("v-if", !0),
464
- t(V) && t(le) && t(se) ? (d(), C(t(B), {
464
+ t(V) && t(le) && t(se) ? (d(), C(t(O), {
465
465
  key: 4,
466
466
  class: m([
467
467
  t(a).e("icon"),
@@ -469,8 +469,8 @@ const Nt = "ElInput", zt = Pe({
469
469
  t(a).is("loading", t(V) === "validating")
470
470
  ])
471
471
  }, {
472
- default: L(() => [
473
- (d(), C(O(t(le))))
472
+ default: B(() => [
473
+ (d(), C(L(t(le))))
474
474
  ]),
475
475
  _: 1
476
476
  }, 8, ["class"])) : p("v-if", !0)
@@ -486,8 +486,8 @@ const Nt = "ElInput", zt = Pe({
486
486
  ], 2)) : p("v-if", !0)
487
487
  ], 64)) : (d(), S(Q, { key: 1 }, [
488
488
  p(" textarea "),
489
- k("textarea", xe({
490
- id: t(T),
489
+ T("textarea", we({
490
+ id: t(k),
491
491
  ref_key: "textarea",
492
492
  ref: I,
493
493
  class: [t(ne).e("inner"), t(a).is("focus", t(Y))]
@@ -495,7 +495,7 @@ const Nt = "ElInput", zt = Pe({
495
495
  minlength: e.minlength,
496
496
  maxlength: e.maxlength,
497
497
  tabindex: e.tabindex,
498
- disabled: t(w),
498
+ disabled: t(x),
499
499
  readonly: e.readonly,
500
500
  autocomplete: e.autocomplete,
501
501
  style: t(re),
@@ -514,7 +514,7 @@ const Nt = "ElInput", zt = Pe({
514
514
  onChange: de,
515
515
  onKeydown: me
516
516
  }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
517
- t(z) ? (d(), S("span", {
517
+ t(N) ? (d(), S("span", {
518
518
  key: 0,
519
519
  style: be(ae.value),
520
520
  class: m(t(a).e("count"))
@@ -523,9 +523,9 @@ const Nt = "ElInput", zt = Pe({
523
523
  ], 38));
524
524
  }
525
525
  });
526
- var kt = /* @__PURE__ */ dt(Pt, [["__file", "input.vue"]]);
527
- const Ht = ct(kt);
526
+ var Tt = /* @__PURE__ */ dt(Pt, [["__file", "input.vue"]]);
527
+ const Ht = ct(Tt);
528
528
  export {
529
529
  Ht as E,
530
- xt as i
530
+ wt as i
531
531
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),C=require("./use-form-common-props-d3ed62c6.cjs"),x=require("./index-33f80550.cjs"),s=require("./base-ef747d02.cjs"),be=require("./typescript-b63f8e83.cjs"),b=require("./index-28e03bad.cjs"),oe=require("./index-7dce9f59.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-fa18ef84.cjs"),E=require("./index-33f80550.cjs"),l=require("./base-ef747d02.cjs"),g=require("./use-form-common-props-d3ed62c6.cjs"),c=require("./index-28e03bad.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,t)=>{if(l.isUndefined(t)&&(t=x.value),t===0)return Math.round(e);let r=String(e);const a=r.indexOf(".");if(a===-1||!r.replace(".","").split("")[a+t])return e;const I=r.length;return r.charAt(I-1)==="5"&&(r=`${r.slice(0,Math.max(0,I-1))}6`),Number.parseFloat(Number(r).toFixed(t))},M=e=>{if(l.isNil(e))return 0;const t=e.toString(),r=t.indexOf(".");let a=0;return r!==-1&&(a=t.length-r-1),a},U=(e,t=1)=>l.isNumber(e)?e>=Number.MAX_SAFE_INTEGER&&t===1||e<=Number.MIN_SAFE_INTEGER&&t===-1?e:A(e+u.step*t):i.currentValue,O=e=>{var t;const r=e;if(u.disabledScientific&&["e","E"].includes(r.key)){r.preventDefault();return}const a={[c.EVENT_CODE.up]:()=>{r.preventDefault(),P()},[c.EVENT_CODE.down]:()=>{r.preventDefault(),D()}};(t=a[r.key])==null||t.call(a)},P=()=>{if(u.readonly||V.value||B.value)return;const e=Number(S.value)||0,t=U(e);_(t),d(c.INPUT_EVENT,i.currentValue),C()},D=()=>{if(u.readonly||V.value||y.value)return;const e=Number(S.value)||0,t=U(e,-1);_(t),d(c.INPUT_EVENT,i.currentValue),C()},k=(e,t)=>{const{max:r,min:a,step:s,precision:N,stepStrictly:I,valueOnClear:T}=u;r<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:r}[T]:T}return I&&(m=A(Math.round(m/s)*s,N),m!==e&&t&&d(c.UPDATE_MODEL_EVENT,m)),l.isUndefined(N)||(m=A(m,N)),(m>r||m<a)&&(m=m>r?r:a,t&&d(c.UPDATE_MODEL_EVENT,m)),m},_=(e,t=!0)=>{var r;const a=i.currentValue,s=k(e);if(!t){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&&((r=b==null?void 0:b.validate)==null||r.call(b,"change").catch(N=>c.debugWarn())),i.currentValue=s)},$=e=>{i.userInput=e;const t=e===""?null:Number(e);d(c.INPUT_EVENT,t),_(t,!1)},z=e=>{const t=e!==""?Number(e):"";(l.isNumber(t)&&!Number.isNaN(t)||e==="")&&_(t),C(),i.userInput=null},R=()=>{var e,t;(t=(e=p.value)==null?void 0:e.focus)==null||t.call(e)},K=()=>{var e,t;(t=(e=p.value)==null?void 0:e.blur)==null||t.call(e)},q=e=>{d("focus",e)},G=e=>{var t,r;i.userInput=null,i.currentValue===null&&((t=p.value)!=null&&t.input)&&(p.value.input.value=""),d("blur",e),u.validateEvent&&((r=b==null?void 0:b.validate)==null||r.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,t)=>{const r=k(e,!0);i.userInput===null&&r!==t&&(i.currentValue=r)},{immediate:!0}),n.watch(()=>u.precision,()=>{i.currentValue=k(u.modelValue)}),n.onMounted(()=>{var e;const{min:t,max:r,modelValue:a}=u,s=(e=p.value)==null?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(r)?s.setAttribute("aria-valuemax",String(r)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):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,t;const r=(e=p.value)==null?void 0:e.input;r==null||r.setAttribute("aria-valuenow",`${(t=i.currentValue)!=null?t:""}`)}),v({focus:R,blur:K}),(e,t)=>(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 te=l.withInstall(ne);exports.ElInputNumber=te;
@@ -1,13 +1,13 @@
1
- import { defineComponent as te, ref as pe, reactive as fe, computed as y, watch as W, onMounted as be, onUpdated as ve, openBlock as v, createElementBlock as x, normalizeClass as z, unref as l, withModifiers as Ne, withDirectives as X, withKeys as Y, renderSlot as A, createVNode as K, withCtx as P, createBlock as F, createCommentVNode as j, createSlots as Ee } from "vue";
2
- import { E as Ve } from "./el-input-0f6ead19.js";
3
- import { E as q, b as ye, d as he, e as Ie, p as ge } from "./index-ec7ad93f.js";
4
- import { c as J, b as we, f as b, d as Q, v as h, u as _e, o as T, _ as Se, e as Ae, w as Pe } from "./base-ff0e366f.js";
5
- import { u as Fe, e as Te, a as De, d as ke } from "./use-form-common-props-631cacae.js";
6
- import { u as Ce, C as re, I as D, U as N, t as Me, d as Z, e as ee } from "./el-popper-fdc7c793.js";
7
- import { u as Be } from "./index-93a8960e.js";
8
- const Le = 100, Re = 600, ne = {
1
+ import { defineComponent as te, ref as pe, reactive as fe, computed as y, watch as W, onMounted as be, onUpdated as ve, openBlock as v, createElementBlock as $, normalizeClass as z, unref as l, withModifiers as Ne, withDirectives as X, withKeys as Y, renderSlot as A, createVNode as K, withCtx as P, createBlock as F, createCommentVNode as j, createSlots as Ee } from "vue";
2
+ import { E as Ve } from "./el-input-d47281da.js";
3
+ import { E as q, f as ye, x as he, y as Ie, v as ge } from "./index-c2b9bbfd.js";
4
+ import { x as J, b as we, p as b, e as Q, g as h, u as _e, i as T, _ as Se, c as Ae, w as Pe } from "./base-29f73b05.js";
5
+ import { h as Fe, d as Te, e as De, g as ke } from "./use-form-common-props-cb0ca65c.js";
6
+ import { u as Ce, C as re, I as D, U as N, a as Me, d as Z, E as ee } from "./index-0f79095c.js";
7
+ import { u as Be } from "./index-de24705f.js";
8
+ const xe = 100, Le = 600, ne = {
9
9
  beforeMount(u, E) {
10
- const s = E.value, { interval: r = Le, delay: I = Re } = J(s) ? {} : s;
10
+ const s = E.value, { interval: r = xe, delay: I = Le } = J(s) ? {} : s;
11
11
  let d, m;
12
12
  const a = () => J(s) ? s() : s.handler(), p = () => {
13
13
  m && (clearTimeout(m), m = void 0), d && (clearInterval(d), d = void 0);
@@ -22,7 +22,7 @@ const Le = 100, Re = 600, ne = {
22
22
  }, I));
23
23
  });
24
24
  }
25
- }, $e = we({
25
+ }, Re = we({
26
26
  id: {
27
27
  type: String,
28
28
  default: void 0
@@ -80,7 +80,7 @@ const Le = 100, Re = 600, ne = {
80
80
  default: "center"
81
81
  },
82
82
  disabledScientific: Boolean
83
- }), xe = {
83
+ }), $e = {
84
84
  [re]: (u, E) => E !== u,
85
85
  blur: (u) => u instanceof FocusEvent,
86
86
  focus: (u) => u instanceof FocusEvent,
@@ -90,8 +90,8 @@ const Le = 100, Re = 600, ne = {
90
90
  name: "ElInputNumber"
91
91
  }), Ke = /* @__PURE__ */ te({
92
92
  ...ze,
93
- props: $e,
94
- emits: xe,
93
+ props: Re,
94
+ emits: $e,
95
95
  setup(u, { expose: E, emit: s }) {
96
96
  const r = u, { t: I } = Be(), d = _e("input-number"), m = pe(), a = fe({
97
97
  currentValue: r.modelValue,
@@ -138,7 +138,7 @@ const Le = 100, Re = 600, ne = {
138
138
  t.preventDefault(), B();
139
139
  },
140
140
  [ee.down]: () => {
141
- t.preventDefault(), L();
141
+ t.preventDefault(), x();
142
142
  }
143
143
  };
144
144
  (n = i[t.key]) == null || n.call(i);
@@ -146,13 +146,13 @@ const Le = 100, Re = 600, ne = {
146
146
  if (r.readonly || V.value || O.value)
147
147
  return;
148
148
  const e = Number(C.value) || 0, n = H(e);
149
- w(n), s(D, a.currentValue), $();
150
- }, L = () => {
149
+ w(n), s(D, a.currentValue), R();
150
+ }, x = () => {
151
151
  if (r.readonly || V.value || g.value)
152
152
  return;
153
153
  const e = Number(C.value) || 0, n = H(e, -1);
154
- w(n), s(D, a.currentValue), $();
155
- }, R = (e, n) => {
154
+ w(n), s(D, a.currentValue), R();
155
+ }, L = (e, n) => {
156
156
  const { max: t, min: i, step: o, precision: f, stepStrictly: _, valueOnClear: S } = r;
157
157
  t < i && Me("InputNumber", "min should not be greater than max.");
158
158
  let c = Number(e);
@@ -166,7 +166,7 @@ const Le = 100, Re = 600, ne = {
166
166
  return _ && (c = M(Math.round(c / o) * o, f), c !== e && n && s(N, c)), T(f) || (c = M(c, f)), (c > t || c < i) && (c = c > t ? t : i, n && s(N, c)), c;
167
167
  }, w = (e, n = !0) => {
168
168
  var t;
169
- const i = a.currentValue, o = R(e);
169
+ const i = a.currentValue, o = L(e);
170
170
  if (!n) {
171
171
  s(N, o);
172
172
  return;
@@ -178,7 +178,7 @@ const Le = 100, Re = 600, ne = {
178
178
  s(D, n), w(n, !1);
179
179
  }, ie = (e) => {
180
180
  const n = e !== "" ? Number(e) : "";
181
- (b(n) && !Number.isNaN(n) || e === "") && w(n), $(), a.userInput = null;
181
+ (b(n) && !Number.isNaN(n) || e === "") && w(n), R(), a.userInput = null;
182
182
  }, oe = () => {
183
183
  var e, n;
184
184
  (n = (e = m.value) == null ? void 0 : e.focus) == null || n.call(e);
@@ -190,16 +190,16 @@ const Le = 100, Re = 600, ne = {
190
190
  }, ce = (e) => {
191
191
  var n, t;
192
192
  a.userInput = null, a.currentValue === null && ((n = m.value) != null && n.input) && (m.value.input.value = ""), s("blur", e), r.validateEvent && ((t = p == null ? void 0 : p.validate) == null || t.call(p, "blur").catch((i) => Z()));
193
- }, $ = () => {
193
+ }, R = () => {
194
194
  a.currentValue !== r.modelValue && (a.currentValue = r.modelValue);
195
195
  }, me = (e) => {
196
196
  document.activeElement === e.target && e.preventDefault();
197
197
  };
198
198
  return W(() => r.modelValue, (e, n) => {
199
- const t = R(e, !0);
199
+ const t = L(e, !0);
200
200
  a.userInput === null && t !== n && (a.currentValue = t);
201
201
  }, { immediate: !0 }), W(() => r.precision, () => {
202
- a.currentValue = R(r.modelValue);
202
+ a.currentValue = L(r.modelValue);
203
203
  }), be(() => {
204
204
  var e;
205
205
  const { min: n, max: t, modelValue: i } = r, o = (e = m.value) == null ? void 0 : e.input;
@@ -215,7 +215,7 @@ const Le = 100, Re = 600, ne = {
215
215
  }), E({
216
216
  focus: oe,
217
217
  blur: se
218
- }), (e, n) => (v(), x("div", {
218
+ }), (e, n) => (v(), $("div", {
219
219
  class: z([
220
220
  l(d).b(),
221
221
  l(d).m(l(G)),
@@ -227,12 +227,12 @@ const Le = 100, Re = 600, ne = {
227
227
  onDragstart: Ne(() => {
228
228
  }, ["prevent"])
229
229
  }, [
230
- e.controls ? X((v(), x("span", {
230
+ e.controls ? X((v(), $("span", {
231
231
  key: 0,
232
232
  role: "button",
233
233
  "aria-label": l(I)("el.inputNumber.decrease"),
234
234
  class: z([l(d).e("decrease"), l(d).is("disabled", l(g))]),
235
- onKeydown: Y(L, ["enter"])
235
+ onKeydown: Y(x, ["enter"])
236
236
  }, [
237
237
  A(e.$slots, "decrease-icon", {}, () => [
238
238
  K(l(q), null, {
@@ -243,9 +243,9 @@ const Le = 100, Re = 600, ne = {
243
243
  })
244
244
  ])
245
245
  ], 42, ["aria-label", "onKeydown"])), [
246
- [l(ne), L]
246
+ [l(ne), x]
247
247
  ]) : j("v-if", !0),
248
- e.controls ? X((v(), x("span", {
248
+ e.controls ? X((v(), $("span", {
249
249
  key: 1,
250
250
  role: "button",
251
251
  "aria-label": l(I)("el.inputNumber.increase"),