st-comp 0.0.119 → 0.0.120

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 (89) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +2 -2
  3. package/es/Dialog.cjs +1 -1
  4. package/es/Dialog.js +11 -11
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +114 -111
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +12 -12
  9. package/es/KlineNew.cjs +1 -1
  10. package/es/KlineNew.js +11 -11
  11. package/es/Pagination.cjs +1 -1
  12. package/es/Pagination.js +53 -53
  13. package/es/Pie.cjs +1 -2
  14. package/es/Pie.js +1 -159
  15. package/es/Table.cjs +1 -1
  16. package/es/Table.js +42 -42
  17. package/es/User.cjs +1 -1
  18. package/es/User.js +32 -32
  19. package/es/VarietySearch.cjs +1 -1
  20. package/es/VarietySearch.js +71 -71
  21. package/es/VirtualTable.cjs +2 -2
  22. package/es/VirtualTable.js +10 -10
  23. package/es/{base-f7877059.js → base-11914420.js} +67 -67
  24. package/es/{base-ec05f348.cjs → base-b384d332.cjs} +1 -1
  25. package/es/{castArray-a45823fe.cjs → castArray-21cb8c6a.cjs} +1 -1
  26. package/es/{castArray-18f43497.js → castArray-63513408.js} +1 -1
  27. package/es/{config-provider-7cdfca4d.cjs → config-provider-08c54ec3.cjs} +1 -1
  28. package/es/{config-provider-6479d795.js → config-provider-40502529.js} +3 -3
  29. package/es/debounce-2ecf2d1f.cjs +1 -0
  30. package/es/{debounce-2336e546.js → debounce-a57891c6.js} +12 -12
  31. package/es/{dropdown-9a974876.cjs → dropdown-1de99dc2.cjs} +1 -1
  32. package/es/{dropdown-46daf582.js → dropdown-4fb49237.js} +4 -4
  33. package/es/{el-button-196807af.cjs → el-button-d234707c.cjs} +1 -1
  34. package/es/{el-button-802f579a.js → el-button-f0269eec.js} +18 -18
  35. package/es/{el-empty-19ea04f4.cjs → el-empty-2d7a61d4.cjs} +1 -1
  36. package/es/{el-empty-3c5ec277.js → el-empty-d85386ab.js} +5 -5
  37. package/es/el-form-item-7cf4d392.cjs +12 -0
  38. package/es/{el-form-item-84099d46.js → el-form-item-a2793eee.js} +43 -43
  39. package/es/{el-input-fac5b401.js → el-input-c7436eee.js} +63 -63
  40. package/es/el-input-fd2b3a26.cjs +1 -0
  41. package/es/{el-overlay-69e9ae49.js → el-overlay-587c0f42.js} +79 -79
  42. package/es/{el-overlay-891dcc40.cjs → el-overlay-7d8307c8.cjs} +1 -1
  43. package/es/{el-popover-8735b1fa.cjs → el-popover-129a9692.cjs} +1 -1
  44. package/es/{el-popover-694ded47.js → el-popover-7781eefc.js} +20 -20
  45. package/es/{el-popper-6126b1f6.js → el-popper-242a0eb5.js} +170 -170
  46. package/es/el-popper-3d8f2656.cjs +1 -0
  47. package/es/{el-scrollbar-e0493906.js → el-scrollbar-41e6d010.js} +10 -10
  48. package/es/el-scrollbar-a01fea99.cjs +1 -0
  49. package/es/el-select-d3f8b31c.cjs +1 -0
  50. package/es/{el-select-513126a5.js → el-select-f70bb17d.js} +64 -64
  51. package/es/el-table-column-1319b1ba.cjs +14 -0
  52. package/es/{el-table-column-3c920bdd.js → el-table-column-d6952a3d.js} +73 -73
  53. package/es/{el-tag-5becabc9.js → el-tag-33526075.js} +68 -68
  54. package/es/{el-tag-3b03d13e.cjs → el-tag-6d45f0b2.cjs} +1 -1
  55. package/es/{index-048dca7e.js → index-20c6f535.js} +1 -1
  56. package/es/{index-80a2b137.cjs → index-2d697ae8.cjs} +1 -1
  57. package/es/{index-7e40be25.js → index-7ee24173.js} +18 -18
  58. package/es/index-bdc8ae3f.js +81 -0
  59. package/es/{index-8a0b1c53.cjs → index-cb665c76.cjs} +1 -1
  60. package/es/{index-e1e83173.cjs → index-e0fa2f71.cjs} +1 -1
  61. package/es/{raf-07da7cdf.js → raf-862dc8b5.js} +1 -1
  62. package/es/{raf-8fc301fd.cjs → raf-930895a1.cjs} +1 -1
  63. package/es/{refs-d00b710b.cjs → refs-4b61ff18.cjs} +1 -1
  64. package/es/refs-e2671b32.js +9 -0
  65. package/es/{scroll-41224831.cjs → scroll-495227b0.cjs} +1 -1
  66. package/es/{scroll-3b521d81.js → scroll-c4e30037.js} +1 -1
  67. package/es/style.css +1 -1
  68. package/es/{use-form-common-props-1b84d8f4.cjs → use-form-common-props-41091f5f.cjs} +2 -2
  69. package/es/{use-form-common-props-f3a520d0.js → use-form-common-props-422d25a5.js} +70 -70
  70. package/es/{vnode-25d7c2f5.js → vnode-029f1740.js} +1 -1
  71. package/es/{vnode-7fbc61e1.cjs → vnode-44ebae3f.cjs} +1 -1
  72. package/es/{zh-cn-ab9a583d.cjs → zh-cn-44d71e6d.cjs} +1 -1
  73. package/es/{zh-cn-74781bbd.js → zh-cn-4659cb4f.js} +2 -2
  74. package/lib/bundle.js +1 -1
  75. package/lib/bundle.umd.cjs +1 -1
  76. package/lib/{index-824e4fa8.js → index-b77b391d.js} +7 -4
  77. package/lib/{python-d78b6dc4.js → python-7a6d9a11.js} +1 -1
  78. package/lib/style.css +1 -1
  79. package/package.json +1 -1
  80. package/packages/FactorWarning/index.vue +4 -1
  81. package/es/debounce-b2ff12bd.cjs +0 -1
  82. package/es/el-form-item-c39f717e.cjs +0 -12
  83. package/es/el-input-6c6f5bda.cjs +0 -1
  84. package/es/el-popper-f62316cd.cjs +0 -1
  85. package/es/el-scrollbar-d1c3e7f7.cjs +0 -1
  86. package/es/el-select-928f8c19.cjs +0 -1
  87. package/es/el-table-column-dd8b62aa.cjs +0 -14
  88. package/es/index-35117549.js +0 -81
  89. package/es/refs-1b1fe6ca.js +0 -9
@@ -1,11 +1,11 @@
1
- import { computed as p, getCurrentInstance as je, defineComponent as ze, useAttrs as Ke, useSlots as We, shallowRef as J, ref as Z, watch as _, nextTick as L, onMounted as Ue, toRef as Ye, openBlock as c, createElementBlock as b, normalizeClass as m, unref as t, normalizeStyle as be, createCommentVNode as f, Fragment as Q, renderSlot as j, createElementVNode as N, createBlock as S, withCtx as M, resolveDynamicComponent as K, mergeProps as xe, withModifiers as Xe, createVNode as qe, toDisplayString as W } from "vue";
2
- import { a as Ge } from "./el-scrollbar-e0493906.js";
3
- import { u as Je, j as we, d as Ze, e as _e, a as Qe, b as et, V as tt, F as ot, G as nt, E as B, H as at } from "./use-form-common-props-f3a520d0.js";
4
- import { j as Pe, a as Se, b as st, d as ee, i as te, f as U, J as lt, u as Ce, q as rt, N as it, _ as ut, g as Ie, w as dt } from "./base-f7877059.js";
1
+ import { computed as p, getCurrentInstance as Ke, defineComponent as ze, useAttrs as je, useSlots as We, shallowRef as _, ref as q, watch as J, nextTick as L, onMounted as Ue, toRef as Ye, openBlock as c, createElementBlock as b, normalizeClass as m, unref as t, normalizeStyle as be, createCommentVNode as f, Fragment as Q, renderSlot as K, createElementVNode as F, createBlock as S, withCtx as M, resolveDynamicComponent as j, mergeProps as xe, withModifiers as Xe, createVNode as Ge, toDisplayString as W } from "vue";
2
+ import { a as Ze } from "./el-scrollbar-41e6d010.js";
3
+ import { u as _e, i as we, j as qe, k as Je, g as Qe, l as et, V as tt, v as ot, m as nt, E as B, n as at } from "./use-form-common-props-422d25a5.js";
4
+ import { b as Pe, C as Se, d as st, e as ee, D as te, x as U, E as lt, l as Ce, F as rt, N as it, _ as ut, G as Ie, w as dt } from "./base-11914420.js";
5
5
  import { m as ct } from "./typescript-7ae59c4c.js";
6
- import { u as pt } from "./el-popper-6126b1f6.js";
6
+ import { b as pt } from "./el-popper-242a0eb5.js";
7
7
  import { U as oe } from "./event-09e37cc8.js";
8
- import { u as ft, a as vt } from "./index-7e40be25.js";
8
+ import { u as ft, a as vt } from "./index-7ee24173.js";
9
9
  const mt = () => Pe && /firefox/i.test(window.navigator.userAgent);
10
10
  let g;
11
11
  const ht = {
@@ -44,7 +44,7 @@ function Ee(n, v = 1, i) {
44
44
  var o;
45
45
  g || (g = document.createElement("textarea"), document.body.appendChild(g));
46
46
  const { paddingSize: r, borderSize: u, boxSizing: l, contextStyle: x } = gt(n);
47
- x.forEach(([y, k]) => g == null ? void 0 : g.style.setProperty(y, k)), Object.entries(ht).forEach(([y, k]) => g == null ? void 0 : g.style.setProperty(y, k, "important")), g.value = n.value || n.placeholder || "";
47
+ x.forEach(([y, N]) => g == null ? void 0 : g.style.setProperty(y, N)), Object.entries(ht).forEach(([y, N]) => g == null ? void 0 : g.style.setProperty(y, N, "important")), g.value = n.value || n.placeholder || "";
48
48
  let d = g.scrollHeight;
49
49
  const C = {};
50
50
  l === "border-box" ? d = d + u : l === "content-box" && (d = d - r), g.value = "";
@@ -64,7 +64,7 @@ const bt = st({
64
64
  type: String,
65
65
  default: void 0
66
66
  },
67
- size: Je,
67
+ size: _e,
68
68
  disabled: Boolean,
69
69
  modelValue: {
70
70
  type: ee([
@@ -154,7 +154,7 @@ const bt = st({
154
154
  compositionupdate: (n) => n instanceof CompositionEvent,
155
155
  compositionend: (n) => n instanceof CompositionEvent
156
156
  }, wt = ["class", "style"], St = /^on[A-Z]/, Ct = (n = {}) => {
157
- const { excludeListeners: v = !1, excludeKeys: i } = n, o = p(() => ((i == null ? void 0 : i.value) || []).concat(wt)), r = je();
157
+ const { excludeListeners: v = !1, excludeKeys: i } = n, o = p(() => ((i == null ? void 0 : i.value) || []).concat(wt)), r = Ke();
158
158
  return r ? p(() => {
159
159
  var u;
160
160
  return lt(Object.entries((u = r.proxy) == null ? void 0 : u.$attrs).filter(([l]) => !o.value.includes(l) && !(v && St.test(l))));
@@ -204,9 +204,9 @@ const Et = ze({
204
204
  props: bt,
205
205
  emits: xt,
206
206
  setup(n, { expose: v, emit: i }) {
207
- const o = n, r = Ke(), u = Ct(), l = We(), x = p(() => [
207
+ const o = n, r = je(), u = Ct(), l = We(), x = p(() => [
208
208
  o.type === "textarea" ? ne.b() : a.b(),
209
- a.m(k.value),
209
+ a.m(N.value),
210
210
  a.is("disabled", E.value),
211
211
  a.is("exceed", Re.value),
212
212
  {
@@ -220,9 +220,9 @@ const Et = ze({
220
220
  ]), d = p(() => [
221
221
  a.e("wrapper"),
222
222
  a.is("focus", A.value)
223
- ]), { form: C, formItem: h } = Ze(), { inputId: y } = _e(o, {
223
+ ]), { form: C, formItem: h } = qe(), { inputId: y } = Je(o, {
224
224
  formItemContext: h
225
- }), k = Qe(), E = et(), a = Ce("input"), ne = Ce("textarea"), H = J(), w = J(), Y = Z(!1), O = Z(!1), ae = Z(), $ = J(o.inputStyle), z = p(() => H.value || w.value), { wrapperRef: Fe, isFocused: A, handleFocus: Ne, handleBlur: ke } = ft(z, {
225
+ }), N = Qe(), E = et(), a = Ce("input"), ne = Ce("textarea"), O = _(), w = _(), Y = q(!1), $ = q(!1), ae = q(), H = _(o.inputStyle), z = p(() => O.value || w.value), { wrapperRef: ke, isFocused: A, handleFocus: Fe, handleBlur: Ne } = ft(z, {
226
226
  beforeFocus() {
227
227
  return E.value;
228
228
  },
@@ -233,48 +233,48 @@ const Et = ze({
233
233
  }), se = p(() => {
234
234
  var e;
235
235
  return (e = C == null ? void 0 : C.statusIcon) != null ? e : !1;
236
- }), V = p(() => (h == null ? void 0 : h.validateState) || ""), le = p(() => V.value && tt[V.value]), Ve = p(() => O.value ? ot : nt), Te = p(() => [
236
+ }), V = p(() => (h == null ? void 0 : h.validateState) || ""), le = p(() => V.value && tt[V.value]), Ve = p(() => $.value ? ot : nt), Te = p(() => [
237
237
  r.style
238
238
  ]), re = p(() => [
239
239
  o.inputStyle,
240
- $.value,
240
+ H.value,
241
241
  { resize: o.resize }
242
- ]), I = p(() => rt(o.modelValue) ? "" : String(o.modelValue)), D = p(() => o.clearable && !E.value && !o.readonly && !!I.value && (A.value || Y.value)), X = p(() => o.showPassword && !E.value && !!I.value && (!!I.value || A.value)), P = p(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !E.value && !o.readonly && !o.showPassword), q = p(() => I.value.length), Re = p(() => !!P.value && q.value > Number(o.maxlength)), Le = p(() => !!l.suffix || !!o.suffixIcon || D.value || o.showPassword || P.value || !!V.value && se.value), [ie, ue] = It(H);
243
- Ge(w, (e) => {
242
+ ]), I = p(() => rt(o.modelValue) ? "" : String(o.modelValue)), D = p(() => o.clearable && !E.value && !o.readonly && !!I.value && (A.value || Y.value)), X = p(() => o.showPassword && !E.value && !!I.value && (!!I.value || A.value)), P = p(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !E.value && !o.readonly && !o.showPassword), G = p(() => I.value.length), Re = p(() => !!P.value && G.value > Number(o.maxlength)), Le = p(() => !!l.suffix || !!o.suffixIcon || D.value || o.showPassword || P.value || !!V.value && se.value), [ie, ue] = It(O);
243
+ Ze(w, (e) => {
244
244
  if (Me(), !P.value || o.resize !== "both")
245
245
  return;
246
- const s = e[0], { width: F } = s.contentRect;
246
+ const s = e[0], { width: k } = s.contentRect;
247
247
  ae.value = {
248
- right: `calc(100% - ${F + 15 + 6}px)`
248
+ right: `calc(100% - ${k + 15 + 6}px)`
249
249
  };
250
250
  });
251
251
  const T = () => {
252
252
  const { type: e, autosize: s } = o;
253
253
  if (!(!Pe || e !== "textarea" || !w.value))
254
254
  if (s) {
255
- const F = Ie(s) ? s.minRows : void 0, ye = Ie(s) ? s.maxRows : void 0, ge = Ee(w.value, F, ye);
256
- $.value = {
255
+ const k = Ie(s) ? s.minRows : void 0, ye = Ie(s) ? s.maxRows : void 0, ge = Ee(w.value, k, ye);
256
+ H.value = {
257
257
  overflowY: "hidden",
258
258
  ...ge
259
259
  }, L(() => {
260
- w.value.offsetHeight, $.value = ge;
260
+ w.value.offsetHeight, H.value = ge;
261
261
  });
262
262
  } else
263
- $.value = {
263
+ H.value = {
264
264
  minHeight: Ee(w.value).minHeight
265
265
  };
266
266
  }, Me = ((e) => {
267
267
  let s = !1;
268
268
  return () => {
269
- var F;
269
+ var k;
270
270
  if (s || !o.autosize)
271
271
  return;
272
- ((F = w.value) == null ? void 0 : F.offsetParent) === null || (e(), s = !0);
272
+ ((k = w.value) == null ? void 0 : k.offsetParent) === null || (e(), s = !0);
273
273
  };
274
274
  })(T), R = () => {
275
275
  const e = z.value, s = o.formatter ? o.formatter(I.value) : I.value;
276
276
  !e || e.value === s || (e.value = s);
277
- }, G = async (e) => {
277
+ }, Z = async (e) => {
278
278
  ie();
279
279
  let { value: s } = e.target;
280
280
  if (o.formatter && (s = o.parser ? o.parser(s) : s), !ce.value) {
@@ -291,15 +291,15 @@ const Et = ze({
291
291
  handleCompositionStart: pe,
292
292
  handleCompositionUpdate: fe,
293
293
  handleCompositionEnd: ve
294
- } = vt({ emit: i, afterComposition: G }), Be = () => {
295
- ie(), O.value = !O.value, setTimeout(ue);
296
- }, He = () => {
294
+ } = vt({ emit: i, afterComposition: Z }), Be = () => {
295
+ ie(), $.value = !$.value, setTimeout(ue);
296
+ }, Oe = () => {
297
297
  var e;
298
298
  return (e = z.value) == null ? void 0 : e.focus();
299
- }, Oe = () => {
299
+ }, $e = () => {
300
300
  var e;
301
301
  return (e = z.value) == null ? void 0 : e.blur();
302
- }, $e = (e) => {
302
+ }, He = (e) => {
303
303
  Y.value = !1, i("mouseleave", e);
304
304
  }, Ae = (e) => {
305
305
  Y.value = !0, i("mouseenter", e);
@@ -311,22 +311,22 @@ const Et = ze({
311
311
  }, he = () => {
312
312
  i(oe, ""), i("change", ""), i("clear"), i("input", "");
313
313
  };
314
- return _(() => o.modelValue, () => {
314
+ return J(() => o.modelValue, () => {
315
315
  var e;
316
316
  L(() => T()), o.validateEvent && ((e = h == null ? void 0 : h.validate) == null || e.call(h, "change").catch((s) => U(s)));
317
- }), _(I, () => R()), _(() => o.type, async () => {
317
+ }), J(I, () => R()), J(() => o.type, async () => {
318
318
  await L(), R(), T();
319
319
  }), Ue(() => {
320
320
  !o.formatter && o.parser && U("ElInput", "If you set the parser, you also need to set the formatter."), R(), L(T);
321
321
  }), v({
322
- input: H,
322
+ input: O,
323
323
  textarea: w,
324
324
  ref: z,
325
325
  textareaStyle: re,
326
326
  autosize: Ye(o, "autosize"),
327
327
  isComposing: ce,
328
- focus: He,
329
- blur: Oe,
328
+ focus: Oe,
329
+ blur: $e,
330
330
  select: De,
331
331
  clear: he,
332
332
  resizeTextarea: T
@@ -340,7 +340,7 @@ const Et = ze({
340
340
  ]),
341
341
  style: be(t(Te)),
342
342
  onMouseenter: Ae,
343
- onMouseleave: $e
343
+ onMouseleave: He
344
344
  }, [
345
345
  f(" input "),
346
346
  e.type !== "textarea" ? (c(), b(Q, { key: 0 }, [
@@ -349,11 +349,11 @@ const Et = ze({
349
349
  key: 0,
350
350
  class: m(t(a).be("group", "prepend"))
351
351
  }, [
352
- j(e.$slots, "prepend")
352
+ K(e.$slots, "prepend")
353
353
  ], 2)) : f("v-if", !0),
354
- N("div", {
354
+ F("div", {
355
355
  ref_key: "wrapperRef",
356
- ref: Fe,
356
+ ref: ke,
357
357
  class: m(t(d))
358
358
  }, [
359
359
  f(" prefix slot "),
@@ -361,30 +361,30 @@ const Et = ze({
361
361
  key: 0,
362
362
  class: m(t(a).e("prefix"))
363
363
  }, [
364
- N("span", {
364
+ F("span", {
365
365
  class: m(t(a).e("prefix-inner"))
366
366
  }, [
367
- j(e.$slots, "prefix"),
367
+ K(e.$slots, "prefix"),
368
368
  e.prefixIcon ? (c(), S(t(B), {
369
369
  key: 0,
370
370
  class: m(t(a).e("icon"))
371
371
  }, {
372
372
  default: M(() => [
373
- (c(), S(K(e.prefixIcon)))
373
+ (c(), S(j(e.prefixIcon)))
374
374
  ]),
375
375
  _: 1
376
376
  }, 8, ["class"])) : f("v-if", !0)
377
377
  ], 2)
378
378
  ], 2)) : f("v-if", !0),
379
- N("input", xe({
379
+ F("input", xe({
380
380
  id: t(y),
381
381
  ref_key: "input",
382
- ref: H,
382
+ ref: O,
383
383
  class: t(a).e("inner")
384
384
  }, t(u), {
385
385
  minlength: e.minlength,
386
386
  maxlength: e.maxlength,
387
- type: e.showPassword ? O.value ? "text" : "password" : e.type,
387
+ type: e.showPassword ? $.value ? "text" : "password" : e.type,
388
388
  disabled: t(E),
389
389
  readonly: e.readonly,
390
390
  autocomplete: e.autocomplete,
@@ -398,7 +398,7 @@ const Et = ze({
398
398
  onCompositionstart: t(pe),
399
399
  onCompositionupdate: t(fe),
400
400
  onCompositionend: t(ve),
401
- onInput: G,
401
+ onInput: Z,
402
402
  onChange: de,
403
403
  onKeydown: me
404
404
  }), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
@@ -407,17 +407,17 @@ const Et = ze({
407
407
  key: 1,
408
408
  class: m(t(a).e("suffix"))
409
409
  }, [
410
- N("span", {
410
+ F("span", {
411
411
  class: m(t(a).e("suffix-inner"))
412
412
  }, [
413
413
  !t(D) || !t(X) || !t(P) ? (c(), b(Q, { key: 0 }, [
414
- j(e.$slots, "suffix"),
414
+ K(e.$slots, "suffix"),
415
415
  e.suffixIcon ? (c(), S(t(B), {
416
416
  key: 0,
417
417
  class: m(t(a).e("icon"))
418
418
  }, {
419
419
  default: M(() => [
420
- (c(), S(K(e.suffixIcon)))
420
+ (c(), S(j(e.suffixIcon)))
421
421
  ]),
422
422
  _: 1
423
423
  }, 8, ["class"])) : f("v-if", !0)
@@ -429,7 +429,7 @@ const Et = ze({
429
429
  onClick: he
430
430
  }, {
431
431
  default: M(() => [
432
- qe(t(at))
432
+ Ge(t(at))
433
433
  ]),
434
434
  _: 1
435
435
  }, 8, ["class", "onMousedown"])) : f("v-if", !0),
@@ -439,7 +439,7 @@ const Et = ze({
439
439
  onClick: Be
440
440
  }, {
441
441
  default: M(() => [
442
- (c(), S(K(t(Ve))))
442
+ (c(), S(j(t(Ve))))
443
443
  ]),
444
444
  _: 1
445
445
  }, 8, ["class"])) : f("v-if", !0),
@@ -447,9 +447,9 @@ const Et = ze({
447
447
  key: 3,
448
448
  class: m(t(a).e("count"))
449
449
  }, [
450
- N("span", {
450
+ F("span", {
451
451
  class: m(t(a).e("count-inner"))
452
- }, W(t(q)) + " / " + W(e.maxlength), 3)
452
+ }, W(t(G)) + " / " + W(e.maxlength), 3)
453
453
  ], 2)) : f("v-if", !0),
454
454
  t(V) && t(le) && t(se) ? (c(), S(t(B), {
455
455
  key: 4,
@@ -460,7 +460,7 @@ const Et = ze({
460
460
  ])
461
461
  }, {
462
462
  default: M(() => [
463
- (c(), S(K(t(le))))
463
+ (c(), S(j(t(le))))
464
464
  ]),
465
465
  _: 1
466
466
  }, 8, ["class"])) : f("v-if", !0)
@@ -472,11 +472,11 @@ const Et = ze({
472
472
  key: 1,
473
473
  class: m(t(a).be("group", "append"))
474
474
  }, [
475
- j(e.$slots, "append")
475
+ K(e.$slots, "append")
476
476
  ], 2)) : f("v-if", !0)
477
477
  ], 64)) : (c(), b(Q, { key: 1 }, [
478
478
  f(" textarea "),
479
- N("textarea", xe({
479
+ F("textarea", xe({
480
480
  id: t(y),
481
481
  ref_key: "textarea",
482
482
  ref: w,
@@ -498,9 +498,9 @@ const Et = ze({
498
498
  onCompositionstart: t(pe),
499
499
  onCompositionupdate: t(fe),
500
500
  onCompositionend: t(ve),
501
- onInput: G,
502
- onFocus: t(Ne),
503
- onBlur: t(ke),
501
+ onInput: Z,
502
+ onFocus: t(Fe),
503
+ onBlur: t(Ne),
504
504
  onChange: de,
505
505
  onKeydown: me
506
506
  }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
@@ -508,14 +508,14 @@ const Et = ze({
508
508
  key: 0,
509
509
  style: be(ae.value),
510
510
  class: m(t(a).e("count"))
511
- }, W(t(q)) + " / " + W(e.maxlength), 7)) : f("v-if", !0)
511
+ }, W(t(G)) + " / " + W(e.maxlength), 7)) : f("v-if", !0)
512
512
  ], 64))
513
513
  ], 38));
514
514
  }
515
515
  });
516
516
  var Pt = /* @__PURE__ */ ut(zt, [["__file", "input.vue"]]);
517
- const Ht = dt(Pt);
517
+ const Ot = dt(Pt);
518
518
  export {
519
- Ht as E,
519
+ Ot as E,
520
520
  mt as i
521
521
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),ge=require("./el-scrollbar-a01fea99.cjs"),f=require("./use-form-common-props-41091f5f.cjs"),s=require("./base-b384d332.cjs"),be=require("./typescript-b63f8e83.cjs"),Ce=require("./el-popper-3d8f2656.cjs"),$=require("./event-61f49698.cjs"),te=require("./index-2d697ae8.cjs"),ne=()=>s.isClient&&/firefox/i.test(window.navigator.userAgent);let h;const xe={height:"0",visibility:"hidden",overflow:ne()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},we=["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"];function Ee(n){const p=window.getComputedStyle(n),u=p.getPropertyValue("box-sizing"),o=Number.parseFloat(p.getPropertyValue("padding-bottom"))+Number.parseFloat(p.getPropertyValue("padding-top")),i=Number.parseFloat(p.getPropertyValue("border-bottom-width"))+Number.parseFloat(p.getPropertyValue("border-top-width"));return{contextStyle:we.map(l=>[l,p.getPropertyValue(l)]),paddingSize:o,borderSize:i,boxSizing:u}}function oe(n,p=1,u){var o;h||(h=document.createElement("textarea"),document.body.appendChild(h));const{paddingSize:i,borderSize:c,boxSizing:l,contextStyle:y}=Ee(n);y.forEach(([v,S])=>h==null?void 0:h.style.setProperty(v,S)),Object.entries(xe).forEach(([v,S])=>h==null?void 0:h.style.setProperty(v,S,"important")),h.value=n.value||n.placeholder||"";let d=h.scrollHeight;const b={};l==="border-box"?d=d+c:l==="content-box"&&(d=d-i),h.value="";const m=h.scrollHeight-i;if(s.isNumber(p)){let v=m*p;l==="border-box"&&(v=v+i+c),d=Math.max(v,d),b.minHeight=`${v}px`}if(s.isNumber(u)){let v=m*u;l==="border-box"&&(v=v+i+c),d=Math.min(v,d)}return b.height=`${d}px`,(o=h.parentNode)==null||o.removeChild(h),h=void 0,b}const ke=s.buildProps({id:{type:String,default:void 0},size:f.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:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:f.iconPropType},prefixIcon:{type:f.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},...Ce.useAriaProps(["ariaLabel"])}),Se={[$.UPDATE_MODEL_EVENT]:n=>s.isString$1(n),input:n=>s.isString$1(n),change:n=>s.isString$1(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},Ie=["class","style"],Be=/^on[A-Z]/,Ne=(n={})=>{const{excludeListeners:p=!1,excludeKeys:u}=n,o=e.computed(()=>((u==null?void 0:u.value)||[]).concat(Ie)),i=e.getCurrentInstance();return i?e.computed(()=>{var c;return s.fromPairs(Object.entries((c=i.proxy)==null?void 0:c.$attrs).filter(([l])=>!o.value.includes(l)&&!(p&&Be.test(l))))}):(s.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),e.computed(()=>({})))};function ze(n){let p;function u(){if(n.value==null)return;const{selectionStart:i,selectionEnd:c,value:l}=n.value;if(i==null||c==null)return;const y=l.slice(0,Math.max(0,i)),d=l.slice(Math.max(0,c));p={selectionStart:i,selectionEnd:c,value:l,beforeTxt:y,afterTxt:d}}function o(){if(n.value==null||p==null)return;const{value:i}=n.value,{beforeTxt:c,afterTxt:l,selectionStart:y}=p;if(c==null||l==null||y==null)return;let d=i.length;if(i.endsWith(l))d=i.length-l.length;else if(i.startsWith(c))d=c.length;else{const b=c[y-1],m=i.indexOf(b,y-1);m!==-1&&(d=m+1)}n.value.setSelectionRange(d,d)}return[u,o]}const Ve=e.defineComponent({name:"ElInput",inheritAttrs:!1}),Pe=e.defineComponent({...Ve,props:ke,emits:Se,setup(n,{expose:p,emit:u}){const o=n,i=e.useAttrs(),c=Ne(),l=e.useSlots(),y=e.computed(()=>[o.type==="textarea"?O.b():r.b(),r.m(S.value),r.is("disabled",x.value),r.is("exceed",ue.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")]:F.value&&R.value,[r.b("hidden")]:o.type==="hidden"},i.class]),d=e.computed(()=>[r.e("wrapper"),r.is("focus",T.value)]),{form:b,formItem:m}=f.useFormItem(),{inputId:v}=f.useFormItemInputId(o,{formItemContext:m}),S=f.useFormSize(),x=f.useFormDisabled(),r=s.useNamespace("input"),O=s.useNamespace("textarea"),z=e.shallowRef(),g=e.shallowRef(),D=e.ref(!1),V=e.ref(!1),A=e.ref(),P=e.shallowRef(o.inputStyle),w=e.computed(()=>z.value||g.value),{wrapperRef:re,isFocused:T,handleFocus:ae,handleBlur:le}=te.useFocusController(w,{beforeFocus(){return x.value},afterBlur(){var t;o.validateEvent&&((t=m==null?void 0:m.validate)==null||t.call(m,"blur").catch(a=>s.debugWarn(a)))}}),H=e.computed(()=>{var t;return(t=b==null?void 0:b.statusIcon)!=null?t:!1}),I=e.computed(()=>(m==null?void 0:m.validateState)||""),W=e.computed(()=>I.value&&f.ValidateComponentsMap[I.value]),se=e.computed(()=>V.value?f.view_default:f.hide_default),ie=e.computed(()=>[i.style]),q=e.computed(()=>[o.inputStyle,P.value,{resize:o.resize}]),C=e.computed(()=>s.isNil(o.modelValue)?"":String(o.modelValue)),F=e.computed(()=>o.clearable&&!x.value&&!o.readonly&&!!C.value&&(T.value||D.value)),R=e.computed(()=>o.showPassword&&!x.value&&!!C.value&&(!!C.value||T.value)),E=e.computed(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!x.value&&!o.readonly&&!o.showPassword),L=e.computed(()=>C.value.length),ue=e.computed(()=>!!E.value&&L.value>Number(o.maxlength)),ce=e.computed(()=>!!l.suffix||!!o.suffixIcon||F.value||o.showPassword||E.value||!!I.value&&H.value),[K,j]=ze(z);ge.useResizeObserver(g,t=>{if(de(),!E.value||o.resize!=="both")return;const a=t[0],{width:k}=a.contentRect;A.value={right:`calc(100% - ${k+15+6}px)`}});const B=()=>{const{type:t,autosize:a}=o;if(!(!s.isClient||t!=="textarea"||!g.value))if(a){const k=s.isObject$1(a)?a.minRows:void 0,Q=s.isObject$1(a)?a.maxRows:void 0,ee=oe(g.value,k,Q);P.value={overflowY:"hidden",...ee},e.nextTick(()=>{g.value.offsetHeight,P.value=ee})}else P.value={minHeight:oe(g.value).minHeight}},de=(t=>{let a=!1;return()=>{var k;if(a||!o.autosize)return;((k=g.value)==null?void 0:k.offsetParent)===null||(t(),a=!0)}})(B),N=()=>{const t=w.value,a=o.formatter?o.formatter(C.value):C.value;!t||t.value===a||(t.value=a)},M=async t=>{K();let{value:a}=t.target;if(o.formatter&&(a=o.parser?o.parser(a):a),!Y.value){if(a===C.value){N();return}u($.UPDATE_MODEL_EVENT,a),u("input",a),await e.nextTick(),N(),j()}},U=t=>{u("change",t.target.value)},{isComposing:Y,handleCompositionStart:_,handleCompositionUpdate:X,handleCompositionEnd:Z}=te.useComposition({emit:u,afterComposition:M}),pe=()=>{K(),V.value=!V.value,setTimeout(j)},fe=()=>{var t;return(t=w.value)==null?void 0:t.focus()},me=()=>{var t;return(t=w.value)==null?void 0:t.blur()},ve=t=>{D.value=!1,u("mouseleave",t)},he=t=>{D.value=!0,u("mouseenter",t)},G=t=>{u("keydown",t)},ye=()=>{var t;(t=w.value)==null||t.select()},J=()=>{u($.UPDATE_MODEL_EVENT,""),u("change",""),u("clear"),u("input","")};return e.watch(()=>o.modelValue,()=>{var t;e.nextTick(()=>B()),o.validateEvent&&((t=m==null?void 0:m.validate)==null||t.call(m,"change").catch(a=>s.debugWarn(a)))}),e.watch(C,()=>N()),e.watch(()=>o.type,async()=>{await e.nextTick(),N(),B()}),e.onMounted(()=>{!o.formatter&&o.parser&&s.debugWarn("ElInput","If you set the parser, you also need to set the formatter."),N(),e.nextTick(B)}),p({input:z,textarea:g,ref:w,textareaStyle:q,autosize:e.toRef(o,"autosize"),isComposing:Y,focus:fe,blur:me,select:ye,clear:J,resizeTextarea:B}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(y),{[e.unref(r).bm("group","append")]:t.$slots.append,[e.unref(r).bm("group","prepend")]:t.$slots.prepend}]),style:e.normalizeStyle(e.unref(ie)),onMouseenter:he,onMouseleave:ve},[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:re,class:e.normalizeClass(e.unref(d))},[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(f.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(v),ref_key:"input",ref:z,class:e.unref(r).e("inner")},e.unref(c),{minlength:t.minlength,maxlength:t.maxlength,type:t.showPassword?V.value?"text":"password":t.type,disabled:e.unref(x),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,onCompositionstart:e.unref(_),onCompositionupdate:e.unref(X),onCompositionend:e.unref(Z),onInput:M,onChange:U,onKeydown:G}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),e.createCommentVNode(" suffix slot "),e.unref(ce)?(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(F)||!e.unref(R)||!e.unref(E)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.renderSlot(t.$slots,"suffix"),t.suffixIcon?(e.openBlock(),e.createBlock(e.unref(f.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(F)?(e.openBlock(),e.createBlock(e.unref(f.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:J},{default:e.withCtx(()=>[e.createVNode(e.unref(f.circle_close_default))]),_:1},8,["class","onMousedown"])):e.createCommentVNode("v-if",!0),e.unref(R)?(e.openBlock(),e.createBlock(e.unref(f.ElIcon),{key:2,class:e.normalizeClass([e.unref(r).e("icon"),e.unref(r).e("password")]),onClick:pe},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(se))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.unref(E)?(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(I)&&e.unref(W)&&e.unref(H)?(e.openBlock(),e.createBlock(e.unref(f.ElIcon),{key:4,class:e.normalizeClass([e.unref(r).e("icon"),e.unref(r).e("validateIcon"),e.unref(r).is("loading",e.unref(I)==="validating")])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(W))))]),_: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(v),ref_key:"textarea",ref:g,class:[e.unref(O).e("inner"),e.unref(r).is("focus",e.unref(T))]},e.unref(c),{minlength:t.minlength,maxlength:t.maxlength,tabindex:t.tabindex,disabled:e.unref(x),readonly:t.readonly,autocomplete:t.autocomplete,style:e.unref(q),"aria-label":t.ariaLabel,placeholder:t.placeholder,form:t.form,autofocus:t.autofocus,rows:t.rows,role:t.containerRole,onCompositionstart:e.unref(_),onCompositionupdate:e.unref(X),onCompositionend:e.unref(Z),onInput:M,onFocus:e.unref(ae),onBlur:e.unref(le),onChange:U,onKeydown:G}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),e.unref(E)?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(A.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.isFirefox=ne;