st-comp 0.0.71 → 0.0.72

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 (97) hide show
  1. package/{lib/ChartLayout.cjs.js → es/ChartLayout.cjs} +1 -1
  2. package/{lib/ChartLayout.es.js → es/ChartLayout.js} +15 -14
  3. package/es/Dialog.cjs +1 -0
  4. package/{lib/Dialog.es.js → es/Dialog.js} +21 -20
  5. package/{lib/HeatMap.cjs.js → es/HeatMap.cjs} +1 -1
  6. package/{lib/HeatMap.es.js → es/HeatMap.js} +21 -20
  7. package/{lib/Kline.es.js → es/Kline.js} +82 -82
  8. package/{lib/KlineNew.cjs.js → es/KlineNew.cjs} +1 -1
  9. package/es/LinearLegend.cjs +1 -0
  10. package/{lib/LinearLegend.es.js → es/LinearLegend.js} +20 -19
  11. package/{lib/Map.cjs.js → es/Map.cjs} +1 -1
  12. package/{lib/Map.es.js → es/Map.js} +25 -24
  13. package/es/Pagination.cjs +1 -0
  14. package/{lib/Pagination.es.js → es/Pagination.js} +103 -102
  15. package/es/Pie.cjs +2 -0
  16. package/{lib/Pie.es.js → es/Pie.js} +20 -19
  17. package/{lib/Table.cjs.js → es/Table.cjs} +3 -3
  18. package/{lib/Table.es.js → es/Table.js} +345 -344
  19. package/{lib/TreeMap.cjs.js → es/TreeMap.cjs} +2 -2
  20. package/{lib/TreeMap.es.js → es/TreeMap.js} +17 -16
  21. package/{lib/VarietySearch.cjs.js → es/VarietySearch.cjs} +2 -2
  22. package/{lib/VarietySearch.es.js → es/VarietySearch.js} +365 -364
  23. package/{lib/VirtualTable.cjs.js → es/VirtualTable.cjs} +5 -5
  24. package/{lib/VirtualTable.es.js → es/VirtualTable.js} +203 -202
  25. package/es/style.css +1 -0
  26. package/es/talib.wasm +0 -0
  27. package/es/vite.svg +1 -0
  28. package/lib/bundle.js +144404 -0
  29. package/lib/bundle.umd.cjs +139 -0
  30. package/lib/style.css +1 -1
  31. package/package.json +6 -4
  32. package/packages/ChartLayout/index.ts +5 -5
  33. package/packages/Dialog/index.ts +5 -5
  34. package/packages/HeatMap/index.ts +5 -5
  35. package/packages/LinearLegend/index.ts +5 -5
  36. package/packages/Map/index.ts +5 -5
  37. package/packages/Pagination/index.ts +5 -5
  38. package/packages/Pie/index.ts +5 -5
  39. package/packages/Table/index.ts +5 -5
  40. package/packages/TreeMap/index.ts +5 -5
  41. package/packages/VarietySearch/index.ts +5 -5
  42. package/packages/VirtualTable/index.ts +5 -5
  43. package/vitePlugins/createExportFile.ts +5 -5
  44. package/lib/Dialog.cjs.js +0 -1
  45. package/lib/LinearLegend.cjs.js +0 -1
  46. package/lib/Pagination.cjs.js +0 -1
  47. package/lib/Pie.cjs.js +0 -2
  48. package/lib/bundle.cjs.js +0 -1
  49. package/lib/bundle.es.js +0 -46
  50. /package/{lib/Kline.cjs.js → es/Kline.cjs} +0 -0
  51. /package/{lib/KlineNew.es.js → es/KlineNew.js} +0 -0
  52. /package/{lib → es}/_commonjsHelpers-10dfc225.js +0 -0
  53. /package/{lib → es}/_commonjsHelpers-87b0abe8.cjs +0 -0
  54. /package/{lib → es}/_plugin-vue_export-helper-dad06003.js +0 -0
  55. /package/{lib → es}/_plugin-vue_export-helper-f246444f.cjs +0 -0
  56. /package/{lib → es}/base-4865d432.cjs +0 -0
  57. /package/{lib → es}/base-a240bf62.js +0 -0
  58. /package/{lib → es}/bundle.umd-4967d574.js +0 -0
  59. /package/{lib → es}/bundle.umd-c5698c50.cjs +0 -0
  60. /package/{lib → es}/castArray-3341cbb4.cjs +0 -0
  61. /package/{lib → es}/castArray-a723a736.js +0 -0
  62. /package/{lib → es}/config-provider-3db4dac6.js +0 -0
  63. /package/{lib → es}/config-provider-cf4edc1e.cjs +0 -0
  64. /package/{lib → es}/el-button-c24606d0.cjs +0 -0
  65. /package/{lib → es}/el-button-fa6a5742.js +0 -0
  66. /package/{lib → es}/el-empty-282e5e93.js +0 -0
  67. /package/{lib → es}/el-empty-608948d9.cjs +0 -0
  68. /package/{lib → es}/el-icon-7718f55e.cjs +0 -0
  69. /package/{lib → es}/el-icon-d9ef9ccc.js +0 -0
  70. /package/{lib → es}/el-overlay-7fceb816.cjs +0 -0
  71. /package/{lib → es}/el-overlay-9b7bdd18.js +0 -0
  72. /package/{lib → es}/el-scrollbar-7dc53299.js +0 -0
  73. /package/{lib → es}/el-scrollbar-bc381e35.cjs +0 -0
  74. /package/{lib → es}/el-select-85ed2643.js +0 -0
  75. /package/{lib → es}/el-select-a50741c1.cjs +0 -0
  76. /package/{lib → es}/el-tag-308f715a.js +0 -0
  77. /package/{lib → es}/el-tag-87fd3960.cjs +0 -0
  78. /package/{lib → es}/el-tooltip-0ea8fbf8.cjs +0 -0
  79. /package/{lib → es}/el-tooltip-4ed993c7.js +0 -0
  80. /package/{lib → es}/focus-trap-2a734f35.cjs +0 -0
  81. /package/{lib → es}/focus-trap-6922b96b.js +0 -0
  82. /package/{lib → es}/index-1508a06b.js +0 -0
  83. /package/{lib → es}/index-48a9f60d.cjs +0 -0
  84. /package/{lib → es}/index-657047bb.js +0 -0
  85. /package/{lib → es}/index-eea0bcb3.cjs +0 -0
  86. /package/{lib → es}/index.esm-8d9a2abe.js +0 -0
  87. /package/{lib → es}/index.esm-94a95a2a.cjs +0 -0
  88. /package/{lib → es}/raf-5e5c53db.cjs +0 -0
  89. /package/{lib → es}/raf-fc8a56cf.js +0 -0
  90. /package/{lib → es}/scroll-bb8039ba.cjs +0 -0
  91. /package/{lib → es}/scroll-cfdae01b.js +0 -0
  92. /package/{lib → es}/typescript-7ae59c4c.js +0 -0
  93. /package/{lib → es}/typescript-b63f8e83.cjs +0 -0
  94. /package/{lib → es}/vnode-a9714179.js +0 -0
  95. /package/{lib → es}/vnode-abafec9e.cjs +0 -0
  96. /package/{lib → es}/zh-cn-92978806.js +0 -0
  97. /package/{lib → es}/zh-cn-d4df7172.cjs +0 -0
package/es/Pie.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";const r=require("vue"),h=require("echarts"),C=require("./bundle.umd-c5698c50.cjs"),b=require("./_plugin-vue_export-helper-f246444f.cjs");require("./_commonjsHelpers-87b0abe8.cjs");function F(o){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>o[l]})}}return a.default=o,Object.freeze(a)}const B=F(h),D=r.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})},style:{type:Object,default:()=>[]}},setup(o){const{add:a,multiply:l,divide:i,round:_}=C.bundle_umdExports.stMath,v={colorList:["#FAF277","#FFC467","#FFA872","#FB962E","#FF772C","#FF577C","#F679D7","#9B4A9B","#9169D7","#9192D0","#655AC7","#4084DE","#0074DA","#0098DF","#00BBE9","#00D2DE","#73E2E6","#00CBB1","#00B488","#48D09A","#93D984","#C9EC7C","#D4E300","#E2BA2B","#A18300","#BC6F3F","#A84E12","#7C462E","#713532","#962B23"],legendColor:"#000",inactiveColor:"#ccc"},g={tooltipFormatter:null};let s,u;const n=o,p=r.ref(),f=r.computed(()=>({...v,...n.style})),y=r.computed(()=>({...g,...n.config}));r.watch(()=>[n.data,n.style],()=>{m()},{deep:!0}),r.onMounted(()=>{s=B.init(p.value),m();let c=!0;u=new ResizeObserver(()=>{if(c){c=null;return}s.resize()}),u.observe(p.value)}),r.onUnmounted(()=>{s.dispose(),u.disconnect(),u=null});const m=()=>{const c=n.data.reduce((e,t)=>a(e,t.value),0);s.setOption({color:f.value.colorList,tooltip:{trigger:"item",confine:!0,formatter:y.value.tooltipFormatter},legend:{orient:"vertical",right:0,bottom:0,itemWidth:28,itemHeight:18,textStyle:{fontSize:12,color:f.value.legendColor},inactiveColor:f.value.inactiveColor,formatter:e=>{const t=n.data.find(d=>d.name===e);return`${e}
2
+ ${t.label||t.value}(${typeof t.percent=="number"?t.percent:_(l(i(t.value,c),100))}%)`}},series:[{type:"pie",width:"150%",height:"150%",center:[`${100/3}%`,`${100/3}%`],radius:"50%",data:n.data.map(e=>({...e,itemStyle:{color:e.color}})),label:{show:!0,position:"inside",formatter:e=>{var d;const t=((d=e==null?void 0:e.data)==null?void 0:d.label)||e.value;return t===0?"":t},fontSize:14,color:"#000"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return(c,e)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"chartRef",ref:p,class:"chart"},null,512))}});const E=b._export_sfc(D,[["__scopeId","data-v-964eca86"]]),x={install(o){o.component("st-pie",E)}};module.exports=x;
@@ -1,9 +1,9 @@
1
- import { defineComponent as F, ref as g, computed as u, watch as B, onMounted as E, onUnmounted as b, openBlock as D, createElementBlock as A } from "vue";
2
- import * as w from "echarts";
1
+ import { defineComponent as y, ref as F, computed as u, watch as g, onMounted as B, onUnmounted as E, openBlock as b, createElementBlock as D } from "vue";
2
+ import * as A from "echarts";
3
3
  import { b as x } from "./bundle.umd-4967d574.js";
4
- import { _ as S } from "./_plugin-vue_export-helper-dad06003.js";
4
+ import { _ as w } from "./_plugin-vue_export-helper-dad06003.js";
5
5
  import "./_commonjsHelpers-10dfc225.js";
6
- const z = /* @__PURE__ */ F({
6
+ const S = /* @__PURE__ */ y({
7
7
  __name: "index",
8
8
  props: {
9
9
  data: {
@@ -22,7 +22,7 @@ const z = /* @__PURE__ */ F({
22
22
  }
23
23
  },
24
24
  setup(i) {
25
- const { add: m, multiply: f, divide: _, round: v } = x.stMath, h = {
25
+ const { add: p, multiply: m, divide: f, round: _ } = x.stMath, v = {
26
26
  colorList: [
27
27
  "#FAF277",
28
28
  "#FFC467",
@@ -58,19 +58,19 @@ const z = /* @__PURE__ */ F({
58
58
  // 饼图颜色列表
59
59
  legendColor: "#000",
60
60
  inactiveColor: "#ccc"
61
- }, C = {
61
+ }, h = {
62
62
  tooltipFormatter: null
63
63
  };
64
64
  let a, l;
65
- const o = i, s = g(), c = u(() => ({ ...h, ...o.style })), y = u(() => ({ ...C, ...o.config }));
66
- B(
65
+ const o = i, s = F(), c = u(() => ({ ...v, ...o.style })), C = u(() => ({ ...h, ...o.config }));
66
+ g(
67
67
  () => [o.data, o.style],
68
68
  () => {
69
69
  d();
70
70
  },
71
71
  { deep: !0 }
72
- ), E(() => {
73
- a = w.init(s.value), d();
72
+ ), B(() => {
73
+ a = A.init(s.value), d();
74
74
  let r = !0;
75
75
  l = new ResizeObserver(() => {
76
76
  if (r) {
@@ -79,17 +79,17 @@ const z = /* @__PURE__ */ F({
79
79
  }
80
80
  a.resize();
81
81
  }), l.observe(s.value);
82
- }), b(() => {
82
+ }), E(() => {
83
83
  a.dispose(), l.disconnect(), l = null;
84
84
  });
85
85
  const d = () => {
86
- const r = o.data.reduce((e, t) => m(e, t.value), 0);
86
+ const r = o.data.reduce((e, t) => p(e, t.value), 0);
87
87
  a.setOption({
88
88
  color: c.value.colorList,
89
89
  tooltip: {
90
90
  trigger: "item",
91
91
  confine: !0,
92
- formatter: y.value.tooltipFormatter
92
+ formatter: C.value.tooltipFormatter
93
93
  },
94
94
  legend: {
95
95
  orient: "vertical",
@@ -105,7 +105,7 @@ const z = /* @__PURE__ */ F({
105
105
  formatter: (e) => {
106
106
  const t = o.data.find((n) => n.name === e);
107
107
  return `${e}
108
- ${t.label || t.value}(${typeof t.percent == "number" ? t.percent : v(f(_(t.value, r), 100))}%)`;
108
+ ${t.label || t.value}(${typeof t.percent == "number" ? t.percent : _(m(f(t.value, r), 100))}%)`;
109
109
  }
110
110
  },
111
111
  series: [
@@ -143,17 +143,18 @@ ${t.label || t.value}(${typeof t.percent == "number" ? t.percent : v(f(_(t.value
143
143
  ]
144
144
  });
145
145
  };
146
- return (r, e) => (D(), A("div", {
146
+ return (r, e) => (b(), D("div", {
147
147
  ref_key: "chartRef",
148
148
  ref: s,
149
149
  class: "chart"
150
150
  }, null, 512));
151
151
  }
152
152
  });
153
- const p = /* @__PURE__ */ S(z, [["__scopeId", "data-v-964eca86"]]);
154
- p.install = (i) => {
155
- i.component("st-pie", p);
153
+ const z = /* @__PURE__ */ w(S, [["__scopeId", "data-v-964eca86"]]), j = {
154
+ install(i) {
155
+ i.component("st-pie", z);
156
+ }
156
157
  };
157
158
  export {
158
- p as default
159
+ j as default
159
160
  };