st-comp 0.0.147 → 0.0.148

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 (108) hide show
  1. package/components.d.ts +3 -3
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +22 -20
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +631 -566
  8. package/es/KlineBasic.cjs +1 -1
  9. package/es/KlineBasic.js +83 -77
  10. package/es/KlineNew.cjs +2 -2
  11. package/es/KlineNew.js +14 -10
  12. package/es/Pagination.cjs +1 -1
  13. package/es/Pagination.js +95 -89
  14. package/es/Table.cjs +1 -1
  15. package/es/Table.js +62 -58
  16. package/es/User.cjs +1 -1
  17. package/es/User.js +151 -146
  18. package/es/VarietySearch.cjs +1 -1
  19. package/es/VarietySearch.js +1 -2384
  20. package/es/VirtualTable.cjs +13 -1
  21. package/es/VirtualTable.js +2800 -1
  22. package/es/_initCloneObject-476b02ce.cjs +1 -0
  23. package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-ec5c9523.js} +5 -5
  24. package/es/{base-00ce90ec.cjs → base-6ccc8fc2.cjs} +3 -3
  25. package/es/{base-674a354a.js → base-950bac7e.js} +59 -58
  26. package/es/castArray-374558a5.cjs +1 -0
  27. package/es/castArray-c770910d.js +10 -0
  28. package/es/config-provider-c87e277f.cjs +1 -0
  29. package/es/config-provider-feed0e8a.js +47 -0
  30. package/es/debounce-a6b4f91b.cjs +1 -0
  31. package/es/debounce-c64fb3b5.js +83 -0
  32. package/es/dropdown-6bdb3cf4.cjs +1 -0
  33. package/es/{dropdown-ce30ada6.js → dropdown-c9272ca3.js} +31 -30
  34. package/es/el-button-b8f71c7d.cjs +1 -0
  35. package/es/{el-button-7b9f5933.js → el-button-d7b6eebd.js} +12 -12
  36. package/es/{el-empty-87154b6d.cjs → el-empty-12eece57.cjs} +1 -1
  37. package/es/{el-empty-39b3aed7.js → el-empty-89a523ed.js} +5 -5
  38. package/es/{el-form-item-fc6f80ab.js → el-form-item-55d36086.js} +72 -71
  39. package/es/el-form-item-ebbf096d.cjs +12 -0
  40. package/es/el-input-2c7e70a3.cjs +1 -0
  41. package/es/{el-input-d249ac86.js → el-input-cb528574.js} +65 -63
  42. package/es/el-input-number-8e168e83.cjs +1 -0
  43. package/es/{el-input-number-2066fbb7.js → el-input-number-ce30bfa8.js} +22 -21
  44. package/es/el-message-612c2346.cjs +1 -0
  45. package/es/{el-message-9859835d.js → el-message-d51d032b.js} +80 -78
  46. package/es/{el-overlay-f0757cc4.js → el-overlay-07414277.js} +70 -69
  47. package/es/el-overlay-fb255b83.cjs +1 -0
  48. package/es/el-popper-8360bd91.cjs +1 -0
  49. package/es/el-popper-f4b01f85.js +2262 -0
  50. package/es/el-scrollbar-271142ad.cjs +1 -0
  51. package/es/el-scrollbar-e8e93751.js +201 -0
  52. package/es/el-select-2e71d4af.cjs +1 -0
  53. package/es/{el-select-bcbb7e55.js → el-select-e71af2e6.js} +333 -329
  54. package/es/el-table-column-9fe79f05.cjs +14 -0
  55. package/es/el-table-column-dc562f14.js +3933 -0
  56. package/es/el-tag-930e7b32.cjs +1 -0
  57. package/es/el-tag-d65768f4.js +279 -0
  58. package/es/index-0ed86daf.cjs +3 -0
  59. package/es/index-121e2861.js +306 -0
  60. package/es/index-18416440.cjs +1 -0
  61. package/es/index-674d2fd7.cjs +1 -0
  62. package/es/index-709675d5.js +59 -0
  63. package/es/{index-45de4a12.js → index-92ba4292.js} +13 -13
  64. package/es/index-aece600c.js +81 -0
  65. package/es/index-da646183.cjs +1 -0
  66. package/es/raf-2d77cbbe.cjs +1 -0
  67. package/es/raf-f55e0daa.js +6 -0
  68. package/es/{scroll-cca17da0.cjs → scroll-c8ac196e.cjs} +1 -1
  69. package/es/{scroll-cb696ed2.js → scroll-ca84f80a.js} +1 -1
  70. package/es/style.css +1 -1
  71. package/es/typescript-7ae59c4c.js +4 -0
  72. package/es/typescript-b63f8e83.cjs +1 -0
  73. package/es/use-form-common-props-4d37077d.js +586 -0
  74. package/es/use-form-common-props-c1960844.cjs +2 -0
  75. package/es/{zh-cn-ef7d7220.js → zh-cn-23c8e0d1.js} +2 -2
  76. package/es/{zh-cn-37af467d.cjs → zh-cn-414d7f0c.cjs} +1 -1
  77. package/lib/bundle.js +1 -1
  78. package/lib/bundle.umd.cjs +1 -1
  79. package/lib/{index-24f8572c.js → index-ffeb163e.js} +2 -2
  80. package/lib/{python-2143eee4.js → python-0ec8f68c.js} +1 -1
  81. package/package.json +1 -1
  82. package/packages/KlineBasic/utils.js +1 -1
  83. package/es/_initCloneObject-7493ecd5.cjs +0 -1
  84. package/es/config-provider-419ffbf2.js +0 -120
  85. package/es/config-provider-68414290.cjs +0 -3
  86. package/es/dropdown-127a8c0d.cjs +0 -1
  87. package/es/el-button-c00975e1.cjs +0 -1
  88. package/es/el-checkbox-group-0554b352.js +0 -67
  89. package/es/el-checkbox-group-7a313d34.cjs +0 -1
  90. package/es/el-form-item-7867f64d.cjs +0 -12
  91. package/es/el-input-2ff1628c.cjs +0 -1
  92. package/es/el-input-number-d6801a5c.cjs +0 -1
  93. package/es/el-message-ffcf690c.cjs +0 -1
  94. package/es/el-overlay-91784be2.cjs +0 -1
  95. package/es/el-popover-4db657e2.cjs +0 -1
  96. package/es/el-popover-b7b43c1f.js +0 -138
  97. package/es/el-scrollbar-35bac6b3.js +0 -2452
  98. package/es/el-scrollbar-ec09bbd3.cjs +0 -1
  99. package/es/el-select-0785c35a.cjs +0 -1
  100. package/es/el-table-column-2478adf8.cjs +0 -14
  101. package/es/el-table-column-c1e1a206.js +0 -3798
  102. package/es/el-tag-13ee17b3.cjs +0 -1
  103. package/es/el-tag-73372c6c.js +0 -359
  104. package/es/index-07b61d12.cjs +0 -1
  105. package/es/index-65b719a4.cjs +0 -1
  106. package/es/index-8b5fbc11.js +0 -66
  107. package/es/index-8c85d7c5.js +0 -858
  108. package/es/index-a49f4743.cjs +0 -2
@@ -0,0 +1,59 @@
1
+ import { getCurrentInstance as C, shallowRef as E, ref as m, watch as g, onMounted as F, nextTick as x } from "vue";
2
+ import { u as r } from "./el-scrollbar-e8e93751.js";
3
+ import { c as _, e as f } from "./base-950bac7e.js";
4
+ function y(l, {
5
+ beforeFocus: t,
6
+ afterFocus: e,
7
+ beforeBlur: d,
8
+ afterBlur: c
9
+ } = {}) {
10
+ const p = C(), { emit: v } = p, o = E(), s = m(!1), u = (n) => {
11
+ f(t) && t(n) || s.value || (s.value = !0, v("focus", n), e == null || e());
12
+ }, i = (n) => {
13
+ var a;
14
+ f(d) && d(n) || n.relatedTarget && ((a = o.value) != null && a.contains(n.relatedTarget)) || (s.value = !1, v("blur", n), c == null || c());
15
+ }, h = () => {
16
+ var n, a;
17
+ (n = o.value) != null && n.contains(document.activeElement) && o.value !== document.activeElement || (a = l.value) == null || a.focus();
18
+ };
19
+ return g(o, (n) => {
20
+ n && n.setAttribute("tabindex", "-1");
21
+ }), r(o, "focus", u, !0), r(o, "blur", i, !0), r(o, "click", h, !0), process.env.NODE_ENV === "test" && F(() => {
22
+ const n = _(l.value) ? l.value : document.querySelector("input,textarea");
23
+ n && (r(n, "focus", u, !0), r(n, "blur", i, !0));
24
+ }), {
25
+ isFocused: s,
26
+ wrapperRef: o,
27
+ handleFocus: u,
28
+ handleBlur: i
29
+ };
30
+ }
31
+ const b = (l) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);
32
+ function D({
33
+ afterComposition: l,
34
+ emit: t
35
+ }) {
36
+ const e = m(!1), d = (o) => {
37
+ t == null || t("compositionstart", o), e.value = !0;
38
+ }, c = (o) => {
39
+ var s;
40
+ t == null || t("compositionupdate", o);
41
+ const u = (s = o.target) == null ? void 0 : s.value, i = u[u.length - 1] || "";
42
+ e.value = !b(i);
43
+ }, p = (o) => {
44
+ t == null || t("compositionend", o), e.value && (e.value = !1, x(() => l(o)));
45
+ };
46
+ return {
47
+ isComposing: e,
48
+ handleComposition: (o) => {
49
+ o.type === "compositionend" ? p(o) : c(o);
50
+ },
51
+ handleCompositionStart: d,
52
+ handleCompositionUpdate: c,
53
+ handleCompositionEnd: p
54
+ };
55
+ }
56
+ export {
57
+ D as a,
58
+ y as u
59
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as E, computed as w, openBlock as i, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as g, createElementVNode as r, renderSlot as b, createBlock as u, withModifiers as y, withCtx as p, createVNode as v, createCommentVNode as C, Transition as N } from "vue";
2
- import { c as V, u as $, E as _, a as h } from "./index-8c85d7c5.js";
3
- import { b as I, u as P, _ as F, w as K } from "./base-674a354a.js";
1
+ import { defineComponent as E, computed as w, openBlock as i, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as b, createElementVNode as r, renderSlot as g, createBlock as u, withModifiers as y, withCtx as p, createVNode as v, createCommentVNode as C, Transition as N } from "vue";
2
+ import { c as V, b as $, E as _, d as h } from "./use-form-common-props-4d37077d.js";
3
+ import { b as I, u as P, _ as F, w as K } from "./base-950bac7e.js";
4
4
  const j = I({
5
5
  type: {
6
6
  type: String,
@@ -30,8 +30,8 @@ const j = I({
30
30
  ...A,
31
31
  props: j,
32
32
  emits: q,
33
- setup(a, { emit: m }) {
34
- const S = a, T = $(), o = P("tag"), d = w(() => {
33
+ setup(a, { emit: d }) {
34
+ const S = a, T = $(), o = P("tag"), m = w(() => {
35
35
  const { type: e, hit: l, effect: t, closable: c, round: B } = S;
36
36
  return [
37
37
  o.b(),
@@ -43,23 +43,23 @@ const j = I({
43
43
  o.is("round", B)
44
44
  ];
45
45
  }), f = (e) => {
46
- m("close", e);
46
+ d("close", e);
47
47
  }, k = (e) => {
48
- m("click", e);
48
+ d("click", e);
49
49
  }, z = (e) => {
50
50
  var l, t, c;
51
51
  (c = (t = (l = e == null ? void 0 : e.component) == null ? void 0 : l.subTree) == null ? void 0 : t.component) != null && c.bum && (e.component.subTree.component.bum = null);
52
52
  };
53
53
  return (e, l) => e.disableTransitions ? (i(), M("span", {
54
54
  key: 0,
55
- class: n(s(d)),
56
- style: g({ backgroundColor: e.color }),
55
+ class: n(s(m)),
56
+ style: b({ backgroundColor: e.color }),
57
57
  onClick: k
58
58
  }, [
59
59
  r("span", {
60
60
  class: n(s(o).e("content"))
61
61
  }, [
62
- b(e.$slots, "default")
62
+ g(e.$slots, "default")
63
63
  ], 2),
64
64
  e.closable ? (i(), u(s(_), {
65
65
  key: 0,
@@ -79,14 +79,14 @@ const j = I({
79
79
  }, {
80
80
  default: p(() => [
81
81
  r("span", {
82
- class: n(s(d)),
83
- style: g({ backgroundColor: e.color }),
82
+ class: n(s(m)),
83
+ style: b({ backgroundColor: e.color }),
84
84
  onClick: k
85
85
  }, [
86
86
  r("span", {
87
87
  class: n(s(o).e("content"))
88
88
  }, [
89
- b(e.$slots, "default")
89
+ g(e.$slots, "default")
90
90
  ], 2),
91
91
  e.closable ? (i(), u(s(_), {
92
92
  key: 0,
@@ -0,0 +1,81 @@
1
+ import { ref as C, getCurrentInstance as f, provide as x, computed as s, unref as i, inject as y, watch as I } from "vue";
2
+ import { C as b, q as p, D as z, E as _, u as S, F as K, o as G } from "./base-950bac7e.js";
3
+ import { j as O, z as $, S as k, k as E, l as N, n as F } from "./use-form-common-props-4d37077d.js";
4
+ const m = Symbol();
5
+ function P(n, o, a) {
6
+ return n == null ? n : O(n, o, a);
7
+ }
8
+ const d = (n) => Object.keys(n), q = (n, o, a) => ({
9
+ get value() {
10
+ return b(n, o, a);
11
+ },
12
+ set value(t) {
13
+ P(n, o, t);
14
+ }
15
+ }), v = C();
16
+ function g(n, o = void 0) {
17
+ const a = f() ? y(m, v) : v;
18
+ return n ? s(() => {
19
+ var t, l;
20
+ return (l = (t = a.value) == null ? void 0 : t[n]) != null ? l : o;
21
+ }) : a;
22
+ }
23
+ function A(n, o) {
24
+ const a = g(), t = S(n, s(() => {
25
+ var e;
26
+ return ((e = a.value) == null ? void 0 : e.namespace) || K;
27
+ })), l = G(s(() => {
28
+ var e;
29
+ return (e = a.value) == null ? void 0 : e.locale;
30
+ })), r = N(s(() => {
31
+ var e;
32
+ return ((e = a.value) == null ? void 0 : e.zIndex) || F;
33
+ })), u = s(() => {
34
+ var e;
35
+ return i(o) || ((e = a.value) == null ? void 0 : e.size) || "";
36
+ });
37
+ return V(s(() => i(a) || {})), {
38
+ ns: t,
39
+ locale: l,
40
+ zIndex: r,
41
+ size: u
42
+ };
43
+ }
44
+ const V = (n, o, a = !1) => {
45
+ var t;
46
+ const l = !!f(), r = l ? g() : void 0, u = (t = o == null ? void 0 : o.provide) != null ? t : l ? x : void 0;
47
+ if (!u) {
48
+ p("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
49
+ return;
50
+ }
51
+ const e = s(() => {
52
+ const c = i(n);
53
+ return r != null && r.value ? Z(r.value, c) : c;
54
+ });
55
+ return u(m, e), u(z, s(() => e.value.locale)), u(_, s(() => e.value.namespace)), u($, s(() => e.value.zIndex)), u(k, {
56
+ size: s(() => e.value.size || "")
57
+ }), u(E, s(() => ({
58
+ emptyValues: e.value.emptyValues,
59
+ valueOnClear: e.value.valueOnClear
60
+ }))), (a || !v.value) && (v.value = e.value), e;
61
+ }, Z = (n, o) => {
62
+ const a = [.../* @__PURE__ */ new Set([...d(n), ...d(o)])], t = {};
63
+ for (const l of a)
64
+ t[l] = o[l] !== void 0 ? o[l] : n[l];
65
+ return t;
66
+ }, J = ({ from: n, replacement: o, scope: a, version: t, ref: l, type: r = "API" }, u) => {
67
+ I(() => i(u), (e) => {
68
+ e && p(a, `[${r}] ${n} is about to be deprecated in version ${t}, please use ${o} instead.
69
+ For more detail, please visit: ${l}
70
+ `);
71
+ }, {
72
+ immediate: !0
73
+ });
74
+ };
75
+ export {
76
+ J as a,
77
+ g as b,
78
+ q as g,
79
+ V as p,
80
+ A as u
81
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),d=require("./el-scrollbar-271142ad.cjs"),m=require("./base-6ccc8fc2.cjs");function h(s,{beforeFocus:t,afterFocus:o,beforeBlur:v,afterBlur:a}={}){const f=l.getCurrentInstance(),{emit:p}=f,e=l.shallowRef(),u=l.ref(!1),i=n=>{m.isFunction(t)&&t(n)||u.value||(u.value=!0,p("focus",n),o==null||o())},r=n=>{var c;m.isFunction(v)&&v(n)||n.relatedTarget&&((c=e.value)!=null&&c.contains(n.relatedTarget))||(u.value=!1,p("blur",n),a==null||a())},C=()=>{var n,c;(n=e.value)!=null&&n.contains(document.activeElement)&&e.value!==document.activeElement||(c=s.value)==null||c.focus()};return l.watch(e,n=>{n&&n.setAttribute("tabindex","-1")}),d.useEventListener(e,"focus",i,!0),d.useEventListener(e,"blur",r,!0),d.useEventListener(e,"click",C,!0),process.env.NODE_ENV==="test"&&l.onMounted(()=>{const n=m.isElement(s.value)?s.value:document.querySelector("input,textarea");n&&(d.useEventListener(n,"focus",i,!0),d.useEventListener(n,"blur",r,!0))}),{isFocused:u,wrapperRef:e,handleFocus:i,handleBlur:r}}const E=s=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(s);function F({afterComposition:s,emit:t}){const o=l.ref(!1),v=e=>{t==null||t("compositionstart",e),o.value=!0},a=e=>{var u;t==null||t("compositionupdate",e);const i=(u=e.target)==null?void 0:u.value,r=i[i.length-1]||"";o.value=!E(r)},f=e=>{t==null||t("compositionend",e),o.value&&(o.value=!1,l.nextTick(()=>s(e)))};return{isComposing:o,handleComposition:e=>{e.type==="compositionend"?f(e):a(e)},handleCompositionStart:v,handleCompositionUpdate:a,handleCompositionEnd:f}}exports.useComposition=F;exports.useFocusController=h;
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./base-6ccc8fc2.cjs"),t=e=>i.isClient?window.requestAnimationFrame(e):setTimeout(e,16),n=e=>i.isClient?window.cancelAnimationFrame(e):clearTimeout(e);exports.cAF=n;exports.rAF=t;
@@ -0,0 +1,6 @@
1
+ import { i as o } from "./base-950bac7e.js";
2
+ const e = (i) => o ? window.requestAnimationFrame(i) : setTimeout(i, 16), r = (i) => o ? window.cancelAnimationFrame(i) : clearTimeout(i);
3
+ export {
4
+ r as c,
5
+ e as r
6
+ };
@@ -1 +1 @@
1
- "use strict";const c=require("./base-00ce90ec.cjs");let r;const h=o=>{var l;if(!c.isClient)return 0;if(r!==void 0)return r;const t=document.createElement("div");t.className=`${o}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",t.appendChild(s);const i=s.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),r=e-i,r};function u(o,l){if(!c.isClient)return;if(!l){o.scrollTop=0;return}const t=[];let e=l.offsetParent;for(;e!==null&&o!==e&&o.contains(e);)t.push(e),e=e.offsetParent;const s=l.offsetTop+t.reduce((d,p)=>d+p.offsetTop,0),i=s+l.offsetHeight,n=o.scrollTop,f=n+o.clientHeight;s<n?o.scrollTop=s:i>f&&(o.scrollTop=i-o.clientHeight)}exports.getScrollBarWidth=h;exports.scrollIntoView=u;
1
+ "use strict";const c=require("./base-6ccc8fc2.cjs");let r;const h=o=>{var l;if(!c.isClient)return 0;if(r!==void 0)return r;const t=document.createElement("div");t.className=`${o}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",t.appendChild(s);const i=s.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),r=e-i,r};function u(o,l){if(!c.isClient)return;if(!l){o.scrollTop=0;return}const t=[];let e=l.offsetParent;for(;e!==null&&o!==e&&o.contains(e);)t.push(e),e=e.offsetParent;const s=l.offsetTop+t.reduce((d,p)=>d+p.offsetTop,0),i=s+l.offsetHeight,n=o.scrollTop,f=n+o.clientHeight;s<n?o.scrollTop=s:i>f&&(o.scrollTop=i-o.clientHeight)}exports.getScrollBarWidth=h;exports.scrollIntoView=u;
@@ -1,4 +1,4 @@
1
- import { i as f } from "./base-674a354a.js";
1
+ import { i as f } from "./base-950bac7e.js";
2
2
  let r;
3
3
  const u = (o) => {
4
4
  var l;