hfn-components 0.2.6 → 0.2.8

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 (45) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.mjs +3 -1
  3. package/es/components/chart/src/HtChart.vue.mjs +2 -3
  4. package/es/components/chart/src/HtChart.vue2.mjs +1 -1
  5. package/es/components/elTable/index.d.ts +5 -4
  6. package/es/components/elTable/src/columnDeal.vue.d.ts +5 -4
  7. package/es/components/elTable/src/columnDeal.vue.mjs +1 -1
  8. package/es/components/elTable/src/columnDeal.vue2.mjs +1 -0
  9. package/es/components/elTable/src/elTable.d.ts +1 -1
  10. package/es/components/elTable/src/elTable.vue.d.ts +5 -4
  11. package/es/components/elTable/src/elTable.vue.mjs +1 -1
  12. package/es/components/elTable/src/elTable.vue2.mjs +1 -0
  13. package/es/components/htTarget/index.d.ts +1231 -0
  14. package/es/components/htTarget/src/htTarget.d.ts +1 -0
  15. package/es/components/htTarget/src/htTarget.mjs +3 -0
  16. package/es/components/htTarget/src/htTarget.vue.d.ts +1231 -0
  17. package/es/components/htTarget/src/htTarget.vue.mjs +183 -6
  18. package/es/components/htTarget/src/htTarget.vue2.mjs +81 -4
  19. package/es/components/index.d.ts +1 -0
  20. package/es/components/index.mjs +2 -0
  21. package/es/components/pieChart/index.d.ts +107 -0
  22. package/es/components/pieChart/index.mjs +7 -0
  23. package/es/components/pieChart/src/HtPieChart.d.ts +40 -0
  24. package/es/components/pieChart/src/HtPieChart.mjs +47 -0
  25. package/es/components/pieChart/src/HtPieChart.vue.d.ts +106 -0
  26. package/es/components/pieChart/src/HtPieChart.vue.mjs +23 -0
  27. package/es/components/pieChart/src/HtPieChart.vue2.mjs +84 -0
  28. package/es/components/pieChart/style/index.d.ts +1 -0
  29. package/es/components/pieChart/style/index.mjs +1 -0
  30. package/es/components/table/HtTable.vue.mjs +1 -1
  31. package/es/constants/chartConfig.d.ts +8 -0
  32. package/es/constants/chartConfig.mjs +110 -0
  33. package/es/constants/index.d.ts +1 -0
  34. package/es/constants/index.mjs +2 -1
  35. package/es/constants/table.d.ts +1 -0
  36. package/es/constants/table.mjs +4 -0
  37. package/es/constants/target.d.ts +16 -0
  38. package/es/constants/target.mjs +39 -1
  39. package/es/index.mjs +2 -0
  40. package/es/make-installer.mjs +1 -0
  41. package/package.json +1 -1
  42. package/theme-chalk/ht-chart.css +1 -1
  43. package/theme-chalk/index.css +1 -1
  44. package/theme-chalk/src/chart.scss +5 -0
  45. package/es/css/index.css +0 -59
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .echart-box{display:flex;flex-direction:column;height:100%;position:relative;width:100%}.echart-content{flex:auto}.echart-lenged{box-sizing:border-box;display:flex;flex-wrap:wrap;font-size:12px;height:auto;margin-top:6px;padding-right:22px;position:relative;width:100%;z-index:999}.bg-span{height:2px;width:14px}.bg-span,.bg-span-bar{display:inline-block;margin-right:6px}.bg-span-bar{border-radius:2px;height:10px;width:16px}.span-box{cursor:pointer;margin-left:5px;margin-right:6px}.noData,.span-box{align-items:center;display:flex}.noData{bottom:0;color:#ccc;font-size:16px;height:100%;justify-content:center;position:absolute;width:100%}
1
+ .echart-box{display:flex;flex-direction:column;height:100%;position:relative;width:100%}.echart-content{flex:auto}.echart-lenged{box-sizing:border-box;display:flex;flex-wrap:wrap;font-size:12px;height:auto;margin-top:6px;padding-right:22px;position:relative;width:100%;z-index:999}.bg-span{height:2px;width:14px}.bg-span,.bg-span-bar{display:inline-block;margin-right:6px}.bg-span-bar{border-radius:2px;height:10px;width:16px}.span-box{cursor:pointer;margin-left:5px;margin-right:6px}.noData,.span-box{align-items:center;display:flex}.noData{bottom:0;color:#ccc;font-size:16px;justify-content:center;position:absolute}._100,.noData{height:100%;width:100%}
package/es/component.mjs CHANGED
@@ -1,10 +1,12 @@
1
1
  import { HtElTable } from './components/elTable/index.mjs';
2
2
  import { HtChart } from './components/chart/index.mjs';
3
+ import { HtPieChart } from './components/pieChart/index.mjs';
3
4
 
4
5
  var Components = [
5
6
  // HtTable,
6
7
  HtChart,
7
- HtElTable
8
+ HtElTable,
9
+ HtPieChart
8
10
  ];
9
11
 
10
12
  export { Components as default };
@@ -79,13 +79,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
79
79
  ])) : createCommentVNode("v-if", true),
80
80
  createElementVNode("div", {
81
81
  class: "echart-content",
82
- id: _ctx.chartId,
83
- ref: "chartDom"
82
+ id: _ctx.chartId
84
83
  }, null, 8, _hoisted_4),
85
84
  createCommentVNode(" \u56FE\u4F8B\u5168\u7F6E\u7070\u76D2\u5B50 "),
86
85
  $setup.noData ? (openBlock(), createElementBlock("div", _hoisted_5, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
87
86
  ]);
88
87
  }
89
- var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/chart/src/HtChart.vue"]]);
88
+ var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/chart/src/HtChart.vue"]]);
90
89
 
91
90
  export { chart as default };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, shallowRef, ref, reactive, watch } from 'vue';
2
- import { BASIC_CHART_CONFIG } from './chartConfig.mjs';
2
+ import { BASIC_CHART_CONFIG } from '../../../constants/chartConfig.mjs';
3
3
  import { chartProps } from './HtChart.mjs';
4
4
  import cloneDeep from 'lodash.clonedeep';
5
5
  import { setEchartXAxis, setEchartYAxis, setEchartTooltip, legendEnterOperate, legendLeaveOperate } from '../../../utils/chart.mjs';
@@ -708,7 +708,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
708
708
  readonly convertKey: (data: any, key: string) => any;
709
709
  ColumnDeal: import("vue").DefineComponent<{
710
710
  readonly dealType: {
711
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
711
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
712
712
  readonly default: "";
713
713
  };
714
714
  readonly text: {
@@ -717,7 +717,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
717
717
  };
718
718
  }, {
719
719
  props: import("@vue/shared").LooseRequired<{
720
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
720
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
721
721
  readonly text?: string | number | undefined;
722
722
  } & {}>;
723
723
  readonly CLOUMN_DEAL: {
@@ -725,6 +725,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
725
725
  colorText: (val: string | number | undefined) => string;
726
726
  colorPercentage: (val: string | number | undefined) => string;
727
727
  percentage: (val: string | number | undefined) => string;
728
+ percentage4: (val: string | number | undefined) => string;
728
729
  absPercentage: (val: string | number | undefined) => string;
729
730
  thoundsandText2: (val: string | number | undefined) => string;
730
731
  notProcessed: null;
@@ -732,7 +733,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
732
733
  };
733
734
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
734
735
  readonly dealType: {
735
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
736
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
736
737
  readonly default: "";
737
738
  };
738
739
  readonly text: {
@@ -741,7 +742,7 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
741
742
  };
742
743
  }>>, {
743
744
  readonly text: string | number | undefined;
744
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
745
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
745
746
  }, {}>;
746
747
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
747
748
  readonly dataSource: {
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  readonly dealType: {
3
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
3
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
4
4
  readonly default: "";
5
5
  };
6
6
  readonly text: {
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
9
9
  };
10
10
  }, {
11
11
  props: import("@vue/shared").LooseRequired<{
12
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
12
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
13
13
  readonly text?: string | number | undefined;
14
14
  } & {}>;
15
15
  readonly CLOUMN_DEAL: {
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
17
17
  colorText: (val: string | number | undefined) => string;
18
18
  colorPercentage: (val: string | number | undefined) => string;
19
19
  percentage: (val: string | number | undefined) => string;
20
+ percentage4: (val: string | number | undefined) => string;
20
21
  absPercentage: (val: string | number | undefined) => string;
21
22
  thoundsandText2: (val: string | number | undefined) => string;
22
23
  notProcessed: null;
@@ -24,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
24
25
  };
25
26
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
27
  readonly dealType: {
27
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
28
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
28
29
  readonly default: "";
29
30
  };
30
31
  readonly text: {
@@ -33,6 +34,6 @@ declare const _default: import("vue").DefineComponent<{
33
34
  };
34
35
  }>>, {
35
36
  readonly text: string | number | undefined;
36
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
37
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
37
38
  }, {}>;
38
39
  export default _default;
@@ -30,6 +30,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
30
30
  /* TEXT */
31
31
  ));
32
32
  }
33
- var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/columnDeal.vue"]]);
33
+ var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/columnDeal.vue"]]);
34
34
 
35
35
  export { ColumnDeal as default };
@@ -1,5 +1,6 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { CLOUMN_DEAL } from '../../../constants/table.mjs';
3
+ import '../../../constants/chartConfig.mjs';
3
4
  import { columnDealProps } from './elTable.mjs';
4
5
 
5
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -26,7 +26,7 @@ export declare const elTableProps: {
26
26
  };
27
27
  export declare const columnDealProps: {
28
28
  readonly dealType: {
29
- readonly type: PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
29
+ readonly type: PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
30
30
  readonly default: "";
31
31
  };
32
32
  readonly text: {
@@ -708,7 +708,7 @@ declare const _default: import("vue").DefineComponent<{
708
708
  readonly convertKey: (data: any, key: string) => any;
709
709
  ColumnDeal: import("vue").DefineComponent<{
710
710
  readonly dealType: {
711
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
711
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
712
712
  readonly default: "";
713
713
  };
714
714
  readonly text: {
@@ -717,7 +717,7 @@ declare const _default: import("vue").DefineComponent<{
717
717
  };
718
718
  }, {
719
719
  props: import("@vue/shared").LooseRequired<{
720
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
720
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
721
721
  readonly text?: string | number | undefined;
722
722
  } & {}>;
723
723
  readonly CLOUMN_DEAL: {
@@ -725,6 +725,7 @@ declare const _default: import("vue").DefineComponent<{
725
725
  colorText: (val: string | number | undefined) => string;
726
726
  colorPercentage: (val: string | number | undefined) => string;
727
727
  percentage: (val: string | number | undefined) => string;
728
+ percentage4: (val: string | number | undefined) => string;
728
729
  absPercentage: (val: string | number | undefined) => string;
729
730
  thoundsandText2: (val: string | number | undefined) => string;
730
731
  notProcessed: null;
@@ -732,7 +733,7 @@ declare const _default: import("vue").DefineComponent<{
732
733
  };
733
734
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
734
735
  readonly dealType: {
735
- readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
736
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
736
737
  readonly default: "";
737
738
  };
738
739
  readonly text: {
@@ -741,7 +742,7 @@ declare const _default: import("vue").DefineComponent<{
741
742
  };
742
743
  }>>, {
743
744
  readonly text: string | number | undefined;
744
- readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
745
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
745
746
  }, {}>;
746
747
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
747
748
  readonly dataSource: {
@@ -51,6 +51,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
51
51
  [$setup["vLoading"], $setup.props.loading]
52
52
  ]);
53
53
  }
54
- var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/elTable.vue"]]);
54
+ var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/elTable.vue"]]);
55
55
 
56
56
  export { elTable as default };
@@ -1,6 +1,7 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { ElTable, ElTableColumn, vLoading } from 'element-plus';
3
3
  import { TABLE_KEY, convertKey } from '../../../constants/table.mjs';
4
+ import '../../../constants/chartConfig.mjs';
4
5
  import ColumnDeal from './columnDeal.vue.mjs';
5
6
  import { elTableProps } from './elTable.mjs';
6
7