hfn-components 0.2.7 → 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 (89) hide show
  1. package/dist/index.css +1 -0
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/es/component.d.ts +3 -0
  4. package/es/component.mjs +12 -0
  5. package/es/components/chart/index.d.ts +171 -0
  6. package/es/components/chart/index.mjs +7 -0
  7. package/es/components/chart/src/HtChart.d.ts +65 -0
  8. package/es/components/chart/src/HtChart.mjs +77 -0
  9. package/es/components/chart/src/HtChart.vue.d.ts +177 -0
  10. package/es/components/chart/src/HtChart.vue.mjs +90 -0
  11. package/es/components/chart/src/HtChart.vue2.mjs +109 -0
  12. package/es/components/chart/src/chartConfig.d.ts +7 -0
  13. package/es/components/chart/src/chartConfig.mjs +88 -0
  14. package/es/components/chart/style/index.d.ts +1 -0
  15. package/es/components/chart/style/index.mjs +1 -0
  16. package/es/components/elTable/index.d.ts +771 -0
  17. package/es/components/elTable/index.mjs +7 -0
  18. package/es/components/elTable/src/columnDeal.vue.d.ts +39 -0
  19. package/es/components/elTable/src/columnDeal.vue.mjs +35 -0
  20. package/es/components/elTable/src/columnDeal.vue2.mjs +20 -0
  21. package/es/components/elTable/src/elTable.d.ts +38 -0
  22. package/es/components/elTable/src/elTable.mjs +30 -0
  23. package/es/components/elTable/src/elTable.vue.d.ts +770 -0
  24. package/es/components/elTable/src/elTable.vue.mjs +56 -0
  25. package/es/components/elTable/src/elTable.vue2.mjs +30 -0
  26. package/es/components/htTarget/index.d.ts +1979 -0
  27. package/es/components/htTarget/index.mjs +6 -0
  28. package/es/components/htTarget/src/htTarget.d.ts +1 -0
  29. package/es/components/htTarget/src/htTarget.mjs +3 -0
  30. package/es/components/htTarget/src/htTarget.vue.d.ts +1978 -0
  31. package/es/components/htTarget/src/htTarget.vue.mjs +204 -0
  32. package/es/components/htTarget/src/htTarget.vue2.mjs +108 -0
  33. package/es/components/index.d.ts +4 -0
  34. package/es/components/index.mjs +7 -0
  35. package/es/components/pieChart/index.d.ts +107 -0
  36. package/es/components/pieChart/index.mjs +7 -0
  37. package/es/components/pieChart/src/HtPieChart.d.ts +40 -0
  38. package/es/components/pieChart/src/HtPieChart.mjs +47 -0
  39. package/es/components/pieChart/src/HtPieChart.vue.d.ts +106 -0
  40. package/es/components/pieChart/src/HtPieChart.vue.mjs +23 -0
  41. package/es/components/pieChart/src/HtPieChart.vue2.mjs +84 -0
  42. package/es/components/pieChart/style/index.d.ts +1 -0
  43. package/es/components/pieChart/style/index.mjs +1 -0
  44. package/es/components/table/HtTable.d.ts +142 -0
  45. package/es/components/table/HtTable.mjs +136 -0
  46. package/es/components/table/HtTable.vue.d.ts +1847 -0
  47. package/es/components/table/HtTable.vue.mjs +449 -0
  48. package/es/components/table/HtTable.vue2.mjs +124 -0
  49. package/es/components/table/index.d.ts +1845 -0
  50. package/es/components/table/index.mjs +7 -0
  51. package/es/constants/chartConfig.d.ts +8 -0
  52. package/es/constants/chartConfig.mjs +110 -0
  53. package/es/constants/index.d.ts +4 -0
  54. package/es/constants/index.mjs +4 -0
  55. package/es/constants/key.d.ts +1 -0
  56. package/es/constants/key.mjs +3 -0
  57. package/es/constants/table.d.ts +118 -0
  58. package/es/constants/table.mjs +144 -0
  59. package/es/constants/target.d.ts +20 -0
  60. package/es/constants/target.mjs +54 -0
  61. package/es/defaults.d.ts +4 -0
  62. package/es/defaults.mjs +7 -0
  63. package/es/index.d.ts +5 -0
  64. package/es/index.mjs +13 -0
  65. package/es/make-installer.d.ts +4 -0
  66. package/es/make-installer.mjs +15 -0
  67. package/es/plugin.d.ts +2 -0
  68. package/es/plugin.mjs +3 -0
  69. package/es/utils/chart.d.ts +7 -0
  70. package/es/utils/chart.mjs +172 -0
  71. package/es/utils/common.d.ts +3 -0
  72. package/es/utils/common.mjs +15 -0
  73. package/es/utils/index.d.ts +4 -0
  74. package/es/utils/index.mjs +4 -0
  75. package/es/utils/table.d.ts +2 -0
  76. package/es/utils/table.mjs +31 -0
  77. package/es/utils/tool.d.ts +2 -0
  78. package/es/utils/tool.mjs +42 -0
  79. package/global.d.ts +14 -0
  80. package/package.json +1 -1
  81. package/theme-chalk/ht-chart.css +1 -0
  82. package/theme-chalk/index.css +1 -0
  83. package/theme-chalk/src/chart.scss +58 -0
  84. package/theme-chalk/src/index.scss +1 -0
  85. package/component.ts +0 -13
  86. package/defaults.ts +0 -5
  87. package/index.ts +0 -6
  88. package/make-installer.ts +0 -17
  89. package/plugin.ts +0 -1
@@ -0,0 +1,7 @@
1
+ import elTable from './src/elTable.vue.mjs';
2
+ import { withInstall } from '../../utils/common.mjs';
3
+ export { columnDealProps, elTableProps } from './src/elTable.mjs';
4
+
5
+ const HtElTable = withInstall(elTable);
6
+
7
+ export { HtElTable, HtElTable as default };
@@ -0,0 +1,39 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ readonly dealType: {
3
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
4
+ readonly default: "";
5
+ };
6
+ readonly text: {
7
+ readonly type: import("vue").PropType<string | number | undefined>;
8
+ readonly default: undefined;
9
+ };
10
+ }, {
11
+ props: import("@vue/shared").LooseRequired<{
12
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
13
+ readonly text?: string | number | undefined;
14
+ } & {}>;
15
+ readonly CLOUMN_DEAL: {
16
+ basicText4: (val: string | number | undefined) => string;
17
+ colorText: (val: string | number | undefined) => string;
18
+ colorPercentage: (val: string | number | undefined) => string;
19
+ percentage: (val: string | number | undefined) => string;
20
+ percentage4: (val: string | number | undefined) => string;
21
+ absPercentage: (val: string | number | undefined) => string;
22
+ thoundsandText2: (val: string | number | undefined) => string;
23
+ notProcessed: null;
24
+ other: null;
25
+ };
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ readonly dealType: {
28
+ readonly type: import("vue").PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
29
+ readonly default: "";
30
+ };
31
+ readonly text: {
32
+ readonly type: import("vue").PropType<string | number | undefined>;
33
+ readonly default: undefined;
34
+ };
35
+ }>>, {
36
+ readonly text: string | number | undefined;
37
+ readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other";
38
+ }, {}>;
39
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import _sfc_main from './columnDeal.vue2.mjs';
2
+ import { openBlock, createElementBlock, toDisplayString, createElementVNode, normalizeStyle } from 'vue';
3
+ import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ const _hoisted_1 = { key: 0 };
6
+ const _hoisted_2 = { key: 1 };
7
+ const _hoisted_3 = { key: 2 };
8
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
9
+ return $setup.props.dealType === "notProcessed" || $setup.props.dealType === "other" ? (openBlock(), createElementBlock(
10
+ "div",
11
+ _hoisted_1,
12
+ toDisplayString($setup.props.text),
13
+ 1
14
+ /* TEXT */
15
+ )) : $setup.props.dealType === "colorText" || $setup.props.dealType === "colorPercentage" ? (openBlock(), createElementBlock("div", _hoisted_2, [
16
+ createElementVNode(
17
+ "span",
18
+ {
19
+ style: normalizeStyle({ color: $setup.props.text > 0 ? "red" : $setup.props.text < 0 ? "green" : "" })
20
+ },
21
+ toDisplayString($setup.props.text !== void 0 ? $setup.CLOUMN_DEAL[$setup.props.dealType]($setup.props.text) : "-"),
22
+ 5
23
+ /* TEXT, STYLE */
24
+ )
25
+ ])) : (openBlock(), createElementBlock(
26
+ "div",
27
+ _hoisted_3,
28
+ toDisplayString($setup.props.text !== void 0 ? $setup.CLOUMN_DEAL[$setup.props.dealType]($setup.props.text) : "-"),
29
+ 1
30
+ /* TEXT */
31
+ ));
32
+ }
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
+
35
+ export { ColumnDeal as default };
@@ -0,0 +1,20 @@
1
+ import { defineComponent } from 'vue';
2
+ import { CLOUMN_DEAL } from '../../../constants/table.mjs';
3
+ import '../../../constants/chartConfig.mjs';
4
+ import { columnDealProps } from './elTable.mjs';
5
+
6
+ var _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "columnDeal",
8
+ props: columnDealProps,
9
+ setup(__props, { expose: __expose }) {
10
+ __expose();
11
+ const props = __props;
12
+ const __returned__ = { props, get CLOUMN_DEAL() {
13
+ return CLOUMN_DEAL;
14
+ } };
15
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
16
+ return __returned__;
17
+ }
18
+ });
19
+
20
+ export { _sfc_main as default };
@@ -0,0 +1,38 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import type { clounmKyeType, dealKeyType } from 'hfn-components/es/constants';
3
+ export interface ElTableColumns {
4
+ key: clounmKyeType;
5
+ dealType: dealKeyType;
6
+ width: string | number;
7
+ customizeLabel?: string;
8
+ }
9
+ export declare const elTableProps: {
10
+ readonly dataSource: {
11
+ readonly type: ArrayConstructor;
12
+ readonly default: () => never[];
13
+ };
14
+ readonly tableColumn: {
15
+ readonly type: PropType<ElTableColumns[]>;
16
+ readonly default: () => never[];
17
+ };
18
+ readonly loading: {
19
+ readonly type: BooleanConstructor;
20
+ readonly default: false;
21
+ };
22
+ readonly headerColor: {
23
+ readonly type: StringConstructor;
24
+ readonly default: "#f0f0f0";
25
+ };
26
+ };
27
+ export declare const columnDealProps: {
28
+ readonly dealType: {
29
+ readonly type: PropType<"basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "notProcessed" | "other">;
30
+ readonly default: "";
31
+ };
32
+ readonly text: {
33
+ readonly type: PropType<string | number | undefined>;
34
+ readonly default: undefined;
35
+ };
36
+ };
37
+ export type ElTableProps = ExtractPropTypes<typeof elTableProps>;
38
+ export type ColumnDealProps = ExtractPropTypes<typeof columnDealProps>;
@@ -0,0 +1,30 @@
1
+ const elTableProps = {
2
+ dataSource: {
3
+ type: Array,
4
+ default: () => []
5
+ },
6
+ tableColumn: {
7
+ type: Array,
8
+ default: () => []
9
+ },
10
+ loading: {
11
+ type: Boolean,
12
+ default: false
13
+ },
14
+ headerColor: {
15
+ type: String,
16
+ default: "#f0f0f0"
17
+ }
18
+ };
19
+ const columnDealProps = {
20
+ dealType: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ text: {
25
+ type: [String, Number],
26
+ default: void 0
27
+ }
28
+ };
29
+
30
+ export { columnDealProps, elTableProps };