hfn-components 0.6.5 → 0.6.7

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 (79) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.mjs +3 -3
  3. package/es/components/chart/index.d.ts +1 -35
  4. package/es/components/chart/index.mjs +1 -0
  5. package/es/components/chart/src/HtChart.vue.d.ts +1 -36
  6. package/es/components/chart/src/HtChart.vue.mjs +1 -1
  7. package/es/components/chart/src/HtChart.vue2.mjs +3 -0
  8. package/es/components/htTable/index.d.ts +252 -0
  9. package/es/components/htTable/index.mjs +8 -0
  10. package/es/components/htTable/src/columnDeal.vue.d.ts +41 -0
  11. package/es/components/{elTable → htTable}/src/columnDeal.vue.mjs +18 -14
  12. package/es/components/{elTable → htTable}/src/columnDeal.vue2.mjs +1 -1
  13. package/es/components/htTable/src/composables/index.d.ts +3 -0
  14. package/es/components/htTable/src/composables/index.mjs +3 -0
  15. package/es/components/htTable/src/composables/use-copy.d.ts +3 -0
  16. package/es/components/htTable/src/composables/use-copy.mjs +24 -0
  17. package/es/components/htTable/src/composables/use-pagination.d.ts +13 -0
  18. package/es/components/htTable/src/composables/use-pagination.mjs +33 -0
  19. package/es/components/htTable/src/composables/use-selection.d.ts +12 -0
  20. package/es/components/htTable/src/composables/use-selection.mjs +58 -0
  21. package/es/components/{elTable/src/elTable.d.ts → htTable/src/htTable.d.ts} +38 -7
  22. package/es/components/{elTable/src/elTable.mjs → htTable/src/htTable.mjs} +22 -4
  23. package/es/components/htTable/src/htTable.vue.d.ts +115 -0
  24. package/es/components/htTable/src/htTable.vue.mjs +216 -0
  25. package/es/components/htTable/src/htTable.vue2.mjs +84 -0
  26. package/es/components/htTarget/index.d.ts +7 -1987
  27. package/es/components/htTarget/index.mjs +1 -0
  28. package/es/components/htTarget/src/htTarget.vue.d.ts +5 -1985
  29. package/es/components/htTarget/src/htTarget.vue.mjs +54 -59
  30. package/es/components/htTarget/src/htTarget.vue2.mjs +26 -24
  31. package/es/components/index.d.ts +1 -1
  32. package/es/components/index.mjs +2 -2
  33. package/es/components/pieChart/index.d.ts +1 -27
  34. package/es/components/pieChart/index.mjs +1 -0
  35. package/es/components/pieChart/src/HtPieChart.vue.d.ts +1 -27
  36. package/es/components/pieChart/src/HtPieChart.vue.mjs +1 -1
  37. package/es/components/pieChart/src/HtPieChart.vue2.mjs +3 -0
  38. package/es/constants/icons.d.ts +1 -0
  39. package/es/constants/icons.mjs +3 -0
  40. package/es/constants/index.mjs +1 -1
  41. package/es/constants/table.d.ts +102 -83
  42. package/es/constants/table.mjs +73 -45
  43. package/es/constants/target.d.ts +166 -15
  44. package/es/hfn-components/component.d.ts +3 -0
  45. package/es/hfn-components/defaults.d.ts +4 -0
  46. package/es/hfn-components/index.d.ts +5 -0
  47. package/es/hfn-components/make-installer.d.ts +4 -0
  48. package/es/hfn-components/plugin.d.ts +2 -0
  49. package/es/icons/index.d.ts +1 -0
  50. package/es/icons/index.mjs +1 -0
  51. package/es/icons/svg/empty-simple.svg.mjs +3 -0
  52. package/es/index.mjs +2 -2
  53. package/es/utils/index.mjs +1 -1
  54. package/es/utils/table.d.ts +11 -2
  55. package/es/utils/table.mjs +36 -26
  56. package/es/utils/tool.d.ts +1 -1
  57. package/es/utils/tool.mjs +8 -36
  58. package/package.json +6 -8
  59. package/theme-chalk/ht-table.css +1 -1
  60. package/theme-chalk/ht-target.css +1 -1
  61. package/theme-chalk/index.css +1 -1
  62. package/theme-chalk/src/table.scss +61 -4
  63. package/theme-chalk/src/target.scss +23 -3
  64. package/es/components/chart/src/chartConfig.d.ts +0 -7
  65. package/es/components/chart/src/chartConfig.mjs +0 -88
  66. package/es/components/elTable/index.d.ts +0 -828
  67. package/es/components/elTable/index.mjs +0 -7
  68. package/es/components/elTable/src/columnDeal.vue.d.ts +0 -65
  69. package/es/components/elTable/src/elTable.vue.d.ts +0 -827
  70. package/es/components/elTable/src/elTable.vue.mjs +0 -111
  71. package/es/components/elTable/src/elTable.vue2.mjs +0 -51
  72. package/es/components/table/HtTable.d.ts +0 -142
  73. package/es/components/table/HtTable.mjs +0 -136
  74. package/es/components/table/HtTable.vue.d.ts +0 -1847
  75. package/es/components/table/HtTable.vue.mjs +0 -449
  76. package/es/components/table/HtTable.vue2.mjs +0 -124
  77. package/es/components/table/index.d.ts +0 -1845
  78. package/es/components/table/index.mjs +0 -7
  79. package/es/css/index.css +0 -59
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from './htTarget.vue2.mjs';
2
- import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, createBlock, createCommentVNode, Fragment, renderList, toDisplayString } from 'vue';
2
+ import { openBlock, createElementBlock, createVNode, withCtx, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode } from 'vue';
3
3
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
5
  const _hoisted_1 = {
@@ -12,43 +12,17 @@ const _hoisted_3 = {
12
12
  style: { "width": "100%" }
13
13
  };
14
14
  const _hoisted_4 = { class: "factor-content" };
15
- const _hoisted_5 = ["onClick"];
16
- const _hoisted_6 = /* @__PURE__ */ createElementVNode(
17
- "svg",
18
- {
19
- t: "1736836637226",
20
- class: "icon",
21
- viewBox: "0 0 1024 1024",
22
- version: "1.1",
23
- xmlns: "http://www.w3.org/2000/svg",
24
- "p-id": "8732",
25
- width: "15",
26
- height: "15"
27
- },
28
- [
29
- /* @__PURE__ */ createElementVNode("path", {
30
- d: "M912.064 187.984L583.968 516.064l316.768 316.8-67.872 67.872-316.768-316.8-328.112 328.128-67.888-67.888 328.112-328.112L108.784 176.672l67.888-67.888 339.424 339.392L844.16 120.096l67.888 67.888z",
31
- fill: "#bfbfbf",
32
- "p-id": "8733"
33
- })
34
- ],
35
- -1
36
- /* HOISTED */
37
- );
38
- const _hoisted_7 = [
39
- _hoisted_6
40
- ];
41
- const _hoisted_8 = { class: "dialog-footer" };
15
+ const _hoisted_5 = { class: "dialog-footer" };
42
16
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
43
17
  return openBlock(), createElementBlock("div", null, [
44
18
  createVNode($setup["ElDialog"], {
45
19
  modelValue: $setup.dialogShow,
46
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.dialogShow = $event),
20
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.dialogShow = $event),
47
21
  class: "dialog",
48
- onClose: _cache[5] || (_cache[5] = ($event) => $setup.emit("choiceCancel"))
22
+ onClose: _cache[6] || (_cache[6] = ($event) => $setup.emit("choiceCancel"))
49
23
  }, {
50
24
  footer: withCtx(() => [
51
- createElementVNode("div", _hoisted_8, [
25
+ createElementVNode("div", _hoisted_5, [
52
26
  createVNode($setup["ElButton"], {
53
27
  onClick: $setup.confirmTarge,
54
28
  type: "primary"
@@ -138,7 +112,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
112
  }, [
139
113
  createVNode($setup["ElCheckbox"], {
140
114
  onChange: ($event) => $setup.selectedTarget(item.key, $setup.selectedHead, "target"),
141
- disabled: $setup.checkList.includes(item.key),
115
+ disabled: $setup.checkListSet.has(item.key),
142
116
  label: item.name,
143
117
  value: item.key
144
118
  }, null, 8, ["onChange", "disabled", "label", "value"])
@@ -162,14 +136,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
162
136
  (openBlock(true), createElementBlock(
163
137
  Fragment,
164
138
  null,
165
- renderList($setup.BASIC_KEY.filter((v) => v.type === _ctx.fundType), (item) => {
139
+ renderList($setup.filteredBasicKey, (item) => {
166
140
  return openBlock(), createElementBlock("div", {
167
141
  class: "factor_item",
168
142
  key: item.key
169
143
  }, [
170
144
  createVNode($setup["ElCheckbox"], {
171
145
  onChange: ($event) => $setup.selectedTarget(item.key, $setup.selectedHead, "basic"),
172
- disabled: $setup.checkList.includes(item.key),
146
+ disabled: $setup.checkListSet.has(item.key),
173
147
  label: item.name,
174
148
  value: item.key
175
149
  }, null, 8, ["onChange", "disabled", "label", "value"])
@@ -197,30 +171,51 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
197
171
  class: "flow-col"
198
172
  }, {
199
173
  default: withCtx(() => [
200
- (openBlock(true), createElementBlock(
201
- Fragment,
202
- null,
203
- renderList($setup.selectedList, (item) => {
204
- return openBlock(), createElementBlock("div", {
205
- key: item.key,
206
- class: "check_item"
207
- }, [
208
- createElementVNode(
209
- "span",
210
- null,
211
- toDisplayString(item.name),
212
- 1
213
- /* TEXT */
214
- ),
215
- createElementVNode("span", {
216
- class: "flex-alignCnter",
217
- onClick: ($event) => $setup.deleteItem(item.key)
218
- }, [..._hoisted_7], 8, _hoisted_5)
219
- ]);
220
- }),
221
- 128
222
- /* KEYED_FRAGMENT */
223
- ))
174
+ createVNode($setup["VueDraggable"], {
175
+ modelValue: $setup.selectedList,
176
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.selectedList = $event),
177
+ animation: 150,
178
+ "force-fallback": true,
179
+ "ghost-class": "ghost",
180
+ class: "drag-list"
181
+ }, {
182
+ default: withCtx(() => [
183
+ (openBlock(true), createElementBlock(
184
+ Fragment,
185
+ null,
186
+ renderList($setup.selectedList, (item) => {
187
+ return openBlock(), createElementBlock("div", {
188
+ key: item.key,
189
+ class: "check_item"
190
+ }, [
191
+ createElementVNode(
192
+ "span",
193
+ null,
194
+ toDisplayString(item.name),
195
+ 1
196
+ /* TEXT */
197
+ ),
198
+ createVNode($setup["ElIcon"], {
199
+ size: 15,
200
+ color: "#bfbfbf",
201
+ class: "close-icon",
202
+ onClick: ($event) => $setup.deleteItem(item.key)
203
+ }, {
204
+ default: withCtx(() => [
205
+ createVNode($setup["Close"])
206
+ ]),
207
+ _: 2
208
+ /* DYNAMIC */
209
+ }, 1032, ["onClick"])
210
+ ]);
211
+ }),
212
+ 128
213
+ /* KEYED_FRAGMENT */
214
+ ))
215
+ ]),
216
+ _: 1
217
+ /* STABLE */
218
+ }, 8, ["modelValue"])
224
219
  ]),
225
220
  _: 1
226
221
  /* STABLE */
@@ -235,6 +230,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
235
230
  }, 8, ["modelValue"])
236
231
  ]);
237
232
  }
238
- var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/htTarget/src/htTarget.vue"]]);
233
+ var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/htTarget/src/htTarget.vue"]]);
239
234
 
240
235
  export { htTarget as default };
@@ -1,11 +1,17 @@
1
- import { defineComponent, ref, onMounted, watch } from 'vue';
2
- import { ElDialog, ElButton, ElRow, ElCol, ElRadioGroup, ElRadio, ElCheckboxGroup, ElCheckbox, ElRadioButton } from 'element-plus';
1
+ import { defineComponent, ref, computed, watch } from 'vue';
2
+ import { ElIcon, ElRadioButton, ElCheckbox, ElCheckboxGroup, ElRadio, ElRadioGroup, ElCol, ElRow, ElButton, ElDialog } from 'element-plus';
3
+ import { Close } from '@element-plus/icons-vue';
3
4
  import { targetProps } from './htTarget.mjs';
4
- import { TARGET_HEAD_KEY, TARGET_END_KEY, BASIC_KEY } from '../../../constants/target.mjs';
5
+ import { getTargetHeadWithYears } from '../../../utils/table.mjs';
6
+ import { TARGET_END_KEY, BASIC_KEY } from '../../../constants/target.mjs';
5
7
  import '../../../constants/chartConfig.mjs';
6
8
  import cloneDeep from 'lodash.clonedeep';
9
+ import { VueDraggable } from 'vue-draggable-plus';
7
10
 
8
11
  var _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...{
13
+ name: "HtTarget"
14
+ },
9
15
  __name: "htTarget",
10
16
  props: targetProps,
11
17
  emits: ["choiceTarget", "choiceCancel"],
@@ -13,23 +19,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
13
19
  __expose();
14
20
  const props = __props;
15
21
  const emit = __emit;
16
- const targetHead = ref(cloneDeep(TARGET_HEAD_KEY));
17
- const allfoot = ref(cloneDeep(TARGET_END_KEY));
22
+ const targetHead = ref(getTargetHeadWithYears());
18
23
  const selectedHead = ref("lastOneMonth");
19
24
  const checkList = ref([]);
20
25
  const dialogShow = ref(false);
21
26
  const typeTag = ref("target");
22
- onMounted(() => {
23
- let startYear = 2018;
24
- const nowYear = (/* @__PURE__ */ new Date()).getFullYear();
25
- while (startYear <= nowYear) {
26
- targetHead.value.push({
27
- name: `${startYear}`,
28
- key: `${startYear}`
29
- });
30
- startYear++;
27
+ const allfoot = computed(() => {
28
+ if (["thisWeek", "thisMonth", "pastWeek"].includes(selectedHead.value)) {
29
+ return cloneDeep(TARGET_END_KEY).filter((item) => ["return", "excessReturn"].includes(item.key));
30
+ }
31
+ if (["lastOneMonth", "lastThreeMonth", "lastSixMonth"].includes(selectedHead.value)) {
32
+ return cloneDeep(TARGET_END_KEY).filter((item) => item.key !== "monthlyPositiveRatio");
31
33
  }
34
+ return cloneDeep(TARGET_END_KEY);
32
35
  });
36
+ const filteredBasicKey = computed(() => BASIC_KEY.filter((v) => v.type === props.fundType));
37
+ const checkListSet = computed(() => new Set(checkList.value));
33
38
  watch(
34
39
  () => props.dialogShow,
35
40
  (val) => {
@@ -49,13 +54,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
49
54
  }
50
55
  );
51
56
  const headChange = () => {
52
- if (selectedHead.value === "thisWeek" || selectedHead.value === "thisMonth" || selectedHead.value === "pastWeek") {
53
- allfoot.value = cloneDeep(TARGET_END_KEY).filter((item) => item.key === "return" || item.key === "excessReturn");
54
- } else if (selectedHead.value === "lastOneMonth" || selectedHead.value === "lastThreeMonth" || selectedHead.value === "lastSixMonth") {
55
- allfoot.value = cloneDeep(TARGET_END_KEY).filter((item) => item.key !== "monthlyPositiveRatio");
56
- } else {
57
- allfoot.value = cloneDeep(TARGET_END_KEY);
58
- }
59
57
  if (selectedTree.value[selectedHead.value]) {
60
58
  checkList.value = selectedTree.value[selectedHead.value];
61
59
  } else {
@@ -129,7 +127,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
129
127
  });
130
128
  emit("choiceTarget", selectedTable);
131
129
  };
132
- const __returned__ = { props, emit, targetHead, allfoot, selectedHead, checkList, dialogShow, typeTag, headChange, typeChange, selectedTree, selectedList, selectedTarget, deleteItem, confirmTarge, get ElDialog() {
130
+ const __returned__ = { props, emit, targetHead, selectedHead, checkList, dialogShow, typeTag, allfoot, filteredBasicKey, checkListSet, headChange, typeChange, selectedTree, selectedList, selectedTarget, deleteItem, confirmTarge, get ElDialog() {
133
131
  return ElDialog;
134
132
  }, get ElButton() {
135
133
  return ElButton;
@@ -147,8 +145,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
147
145
  return ElCheckbox;
148
146
  }, get ElRadioButton() {
149
147
  return ElRadioButton;
150
- }, get BASIC_KEY() {
151
- return BASIC_KEY;
148
+ }, get ElIcon() {
149
+ return ElIcon;
150
+ }, get Close() {
151
+ return Close;
152
+ }, get VueDraggable() {
153
+ return VueDraggable;
152
154
  } };
153
155
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
154
156
  return __returned__;
@@ -1,4 +1,4 @@
1
- export * from './elTable';
1
+ export * from './htTable';
2
2
  export * from './chart';
3
3
  export * from './htTarget';
4
4
  export * from './pieChart';
@@ -1,7 +1,7 @@
1
- export { HtElTable } from './elTable/index.mjs';
1
+ export { HtTable } from './htTable/index.mjs';
2
2
  export { HtChart } from './chart/index.mjs';
3
3
  export { HtTarget } from './htTarget/index.mjs';
4
4
  export { HtPieChart } from './pieChart/index.mjs';
5
- export { columnDealProps, elTableProps } from './elTable/src/elTable.mjs';
6
5
  export { chartProps } from './chart/src/HtChart.mjs';
6
+ export { columnDealProps, elTableProps } from './htTable/src/htTable.mjs';
7
7
  export { pieProps } from './pieChart/src/HtPieChart.mjs';
@@ -31,33 +31,7 @@ export declare const HtPieChart: import("hfn-components/es/utils").SFCWithInstal
31
31
  readonly type: import("vue").PropType<string[]>;
32
32
  readonly default: readonly [];
33
33
  };
34
- }, {
35
- props: import("@vue/shared").LooseRequired<{
36
- readonly chartData: any[];
37
- readonly chartId: string;
38
- readonly floatNumber: number;
39
- readonly watchResize: boolean;
40
- readonly lineColor: string[];
41
- readonly legendData: Record<string, any>;
42
- readonly legendType: string;
43
- readonly legendFormatter: Function;
44
- } & {}>;
45
- myChart: import("vue").ShallowRef<any>;
46
- echartOptions: any;
47
- chartResize: () => void;
48
- noData: import("vue").Ref<boolean>;
49
- allLegend: import("vue").Ref<{
50
- name: string;
51
- lineType: string;
52
- isShow: boolean;
53
- color: string;
54
- }[]>;
55
- drawGraph: () => void;
56
- lengedDeal: () => void;
57
- setEchartTooltip: () => void;
58
- legendStatus: (item: import("./src/HtPieChart.vue").Legend, index: number) => void;
59
- echartInit: () => void;
60
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
35
  readonly chartData: {
62
36
  readonly type: import("vue").PropType<any[]>;
63
37
  readonly default: () => never[];
@@ -1,5 +1,6 @@
1
1
  import htPieChart from './src/HtPieChart.vue.mjs';
2
2
  import { withInstall } from '../../utils/common.mjs';
3
+ import '../../constants/chartConfig.mjs';
3
4
  export { pieProps } from './src/HtPieChart.mjs';
4
5
 
5
6
  const HtPieChart = withInstall(htPieChart);
@@ -37,33 +37,7 @@ declare const _default: import("vue").DefineComponent<{
37
37
  readonly type: import("vue").PropType<string[]>;
38
38
  readonly default: readonly [];
39
39
  };
40
- }, {
41
- props: import("@vue/shared").LooseRequired<{
42
- readonly chartData: any[];
43
- readonly chartId: string;
44
- readonly floatNumber: number;
45
- readonly watchResize: boolean;
46
- readonly lineColor: string[];
47
- readonly legendData: Record<string, any>;
48
- readonly legendType: string;
49
- readonly legendFormatter: Function;
50
- } & {}>;
51
- myChart: import("vue").ShallowRef<any>;
52
- echartOptions: any;
53
- chartResize: () => void;
54
- noData: import("vue").Ref<boolean>;
55
- allLegend: import("vue").Ref<{
56
- name: string;
57
- lineType: string;
58
- isShow: boolean;
59
- color: string;
60
- }[]>;
61
- drawGraph: () => void;
62
- lengedDeal: () => void;
63
- setEchartTooltip: () => void;
64
- legendStatus: (item: Legend, index: number) => void;
65
- echartInit: () => void;
66
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
67
41
  readonly chartData: {
68
42
  readonly type: import("vue").PropType<any[]>;
69
43
  readonly default: () => never[];
@@ -56,6 +56,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
56
56
  $setup.noData ? (openBlock(), createElementBlock("div", _hoisted_5, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
57
57
  ]);
58
58
  }
59
- var htPieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/pieChart/src/HtPieChart.vue"]]);
59
+ var htPieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/pieChart/src/HtPieChart.vue"]]);
60
60
 
61
61
  export { htPieChart as default };
@@ -5,6 +5,9 @@ import { useBasicPieConfig } from '../../../constants/chartConfig.mjs';
5
5
  import * as echarts from 'echarts/core';
6
6
 
7
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{
9
+ name: "HtPieChart"
10
+ },
8
11
  __name: "HtPieChart",
9
12
  props: pieProps,
10
13
  setup(__props, { expose: __expose }) {
@@ -0,0 +1 @@
1
+ export declare const EmptySimple: string;
@@ -0,0 +1,3 @@
1
+ const EmptySimple = `data:image/svg+xml,${encodeURIComponent('<svg width="64" height="41" viewBox="0 0 64 41" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 1)" fill="none" fill-rule="evenodd"><ellipse fill="#f5f5f5" cx="32" cy="33" rx="32" ry="7"/><g fill-rule="nonzero" stroke="#d9d9d9"><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"/><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa"/></g></g></svg>')}`;
2
+
3
+ export { EmptySimple };
@@ -1,4 +1,4 @@
1
1
  export { INSTALLED_KEY } from './key.mjs';
2
- export { CLOUMN_DEAL, TABLE_KEY, convertKey } from './table.mjs';
2
+ export { CLOUMN_DEAL, TABLE_KEY } from './table.mjs';
3
3
  export { BASIC_KEY, TARGET_END_KEY, TARGET_HEAD_KEY } from './target.mjs';
4
4
  export { BASIC_CHART_CONFIG, useBasicPieConfig } from './chartConfig.mjs';
@@ -1,59 +1,45 @@
1
+ import type { TargetHeadKeyType, TargetEndKeyType } from './target';
1
2
  export declare const TABLE_KEY: {
2
- readonly index: "序号";
3
- readonly year: "年份";
4
- readonly fundName: "基金名称";
5
- readonly cucmulativeReturn: "区间收益";
6
- readonly excessReturn: "超额区间收益";
7
- readonly vol: "年化波动率";
8
- readonly excessVol: "超额年化波动率";
9
- readonly sharpeRatio: "夏普比率";
10
- readonly excessSharpeRatio: "超额夏普比率";
11
- readonly calmarRatio: "卡玛比率";
12
- readonly excessCalmarRatio: "超额卡玛比率";
13
- readonly sortinoRatio: "索提诺比率";
14
- readonly excessSortinoRatio: "超额索提诺比率";
15
- readonly downsideDev: "下行风险";
16
- readonly excessDownsideDev: "超额下行风险";
17
- readonly interval: "最大回撤起止区间";
18
- readonly maxDrawdown: "最大回撤";
19
- readonly excessMaxDrawdown: "超额最大回撤";
20
- readonly maxDrawdownDays: "最大回撤回补期(天)";
21
- readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
22
- readonly maxNormalDays: "最长连续不创新高天数(天)";
23
- readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
24
- readonly annualReturn: "年化收益";
25
- readonly excessAnnualReturn: "超额年化收益";
26
- readonly corr: "相关系数";
27
- readonly informationRatio: "信息比率";
28
- readonly trackingError: "跟踪误差";
29
- readonly alpha: "Alpha";
30
- readonly beta: "Beta";
31
- readonly skew: "偏度";
32
- readonly kurt: "峰度";
33
- readonly cVaR: "VaR(95%置信)";
34
- readonly indexReturns: "同期指数收益";
35
- readonly '01': "1月";
36
- readonly '02': "2月";
37
- readonly '03': "3月";
38
- readonly '04': "4月";
39
- readonly '05': "5月";
40
- readonly '06': "6月";
41
- readonly '07': "7月";
42
- readonly '08': "8月";
43
- readonly '09': "9月";
44
- readonly '10': "10月";
45
- readonly '11': "11月";
46
- readonly '12': "12月";
47
- readonly MonthlyPositiveRatio: "月胜率";
48
- readonly all_year: "全年";
49
- readonly deal_type: "交易类型";
50
- readonly deal_apply_time: "申请时间";
51
- readonly deal_time: "确认日期";
52
- readonly amount: "确认净额";
53
- readonly shares: "确认份额";
54
- readonly price: "确认单位净值";
55
- readonly bsfee: "交易费用";
56
- readonly reward: "业绩报酬";
3
+ readonly materialName: "资料名称";
4
+ readonly materialAssociation: "资料关联";
5
+ readonly reportName: "报告名称";
6
+ readonly relatedManager: "关联管理人";
7
+ readonly reportAssociation: "报告关联";
8
+ readonly modifiedDate: "修改日期";
9
+ readonly creator: "创建人";
10
+ readonly createdDate: "新增日期";
11
+ readonly createdUser: "新增用户";
12
+ readonly managerName: "管理人名称";
13
+ readonly fundCompany: "基金公司";
14
+ readonly AUM: "管理规模";
15
+ readonly AUMUnit: "管理规模(亿元)";
16
+ readonly FundsUM: "在管基金数";
17
+ readonly typeUM: "在管类型";
18
+ readonly YoE: "从业年限";
19
+ readonly industry: "行业名称";
20
+ readonly p4: "产品行业收益率";
21
+ readonly p1: "基准行业收益率";
22
+ readonly raa: "择时收益率";
23
+ readonly rss: "选股收益率";
24
+ readonly rin: "交互收益率";
25
+ readonly r_total: "超额收益率";
26
+ readonly range_return: "区间投资收益率";
27
+ readonly return_money: "区间投资收益(元)";
28
+ readonly range_year_return: "区间投资年化收益率";
29
+ readonly range_contribute: "组合净值贡献度";
30
+ readonly return_money_contribute: "组合收益贡献度";
31
+ readonly money_name: "金额(元)";
32
+ readonly range_date: "统计区间";
33
+ readonly type_name: "策略";
34
+ readonly fid_num: "产品数量";
35
+ readonly assets: "投资市值";
36
+ readonly assets_rate: "投资市值占比";
37
+ readonly price_cnw: "累计净值";
38
+ readonly price_cw_nav: "复权净值";
39
+ readonly suspend_info: "停牌信息";
40
+ readonly assets_type: "资产类别";
41
+ readonly values: "市值";
42
+ readonly values_ratio: "市值占比";
57
43
  readonly ftype: "基金类型";
58
44
  readonly strategy: "平台策略";
59
45
  readonly weight_rate: "权重";
@@ -88,30 +74,62 @@ export declare const TABLE_KEY: {
88
74
  readonly cum_cash: "累计现金分红(元)";
89
75
  readonly cum_redemption: "累计赎回(元)";
90
76
  readonly cum_reward: "累计业绩报酬(元)";
91
- readonly assets_type: "资产类别";
92
- readonly values: "市值";
93
- readonly values_ratio: "市值占比";
94
- readonly type_name: "策略";
95
- readonly fid_num: "产品数量";
96
- readonly assets: "投资市值";
97
- readonly assets_rate: "投资市值占比";
98
- readonly range_return: "区间投资收益率";
99
- readonly return_money: "区间投资收益(元)";
100
- readonly range_year_return: "区间投资年化收益率";
101
- readonly range_contribute: "组合净值贡献度";
102
- readonly return_money_contribute: "组合收益贡献度";
103
- readonly money_name: "金额(元)";
104
- readonly range_date: "统计区间";
105
- readonly price_cnw: "累计净值";
106
- readonly price_cw_nav: "复权净值";
107
- readonly suspend_info: "停牌信息";
108
- readonly industry: "行业名称";
109
- readonly p4: "产品行业收益率";
110
- readonly p1: "基准行业收益率";
111
- readonly raa: "择时收益率";
112
- readonly rss: "选股收益率";
113
- readonly rin: "交互收益率";
114
- readonly r_total: "超额收益率";
77
+ readonly deal_type: "交易类型";
78
+ readonly deal_apply_time: "申请时间";
79
+ readonly deal_time: "确认日期";
80
+ readonly amount: "确认净额";
81
+ readonly shares: "确认份额";
82
+ readonly price: "确认单位净值";
83
+ readonly bsfee: "交易费用";
84
+ readonly reward: "业绩报酬";
85
+ readonly '01': "1月";
86
+ readonly '02': "2月";
87
+ readonly '03': "3月";
88
+ readonly '04': "4月";
89
+ readonly '05': "5月";
90
+ readonly '06': "6月";
91
+ readonly '07': "7月";
92
+ readonly '08': "8月";
93
+ readonly '09': "9月";
94
+ readonly '10': "10月";
95
+ readonly '11': "11月";
96
+ readonly '12': "12月";
97
+ readonly MonthlyPositiveRatio: "月胜率";
98
+ readonly all_year: "全年";
99
+ readonly vol: "年化波动率";
100
+ readonly excessVol: "超额年化波动率";
101
+ readonly sharpeRatio: "夏普比率";
102
+ readonly excessSharpeRatio: "超额夏普比率";
103
+ readonly calmarRatio: "卡玛比率";
104
+ readonly excessCalmarRatio: "超额卡玛比率";
105
+ readonly sortinoRatio: "索提诺比率";
106
+ readonly excessSortinoRatio: "超额索提诺比率";
107
+ readonly downsideDev: "下行风险";
108
+ readonly excessDownsideDev: "超额下行风险";
109
+ readonly interval: "最大回撤起止区间";
110
+ readonly maxDrawdown: "最大回撤";
111
+ readonly excessMaxDrawdown: "超额最大回撤";
112
+ readonly maxDrawdownDays: "最大回撤回补期(天)";
113
+ readonly excessMaxDrawdownDays: "超额最大回撤回补期(天)";
114
+ readonly maxNormalDays: "最长连续不创新高天数(天)";
115
+ readonly excessMaxNormalDays: "超额最长连续不创新高天数(天)";
116
+ readonly corr: "相关系数";
117
+ readonly informationRatio: "信息比率";
118
+ readonly trackingError: "跟踪误差";
119
+ readonly alpha: "Alpha";
120
+ readonly beta: "Beta";
121
+ readonly skew: "偏度";
122
+ readonly kurt: "峰度";
123
+ readonly cVaR: "VaR(95%置信)";
124
+ readonly cucmulativeReturn: "区间收益";
125
+ readonly excessReturn: "超额区间收益";
126
+ readonly annualReturn: "年化收益";
127
+ readonly excessAnnualReturn: "超额年化收益";
128
+ readonly indexReturns: "同期指数收益";
129
+ readonly index: "序号";
130
+ readonly year: "年份";
131
+ readonly fundName: "基金名称";
132
+ readonly operation: string;
115
133
  };
116
134
  export declare const CLOUMN_DEAL: {
117
135
  basicText4: (val: number | string | undefined) => string;
@@ -120,13 +138,14 @@ export declare const CLOUMN_DEAL: {
120
138
  percentage: (val: number | string | undefined) => string;
121
139
  percentage4: (val: number | string | undefined) => string;
122
140
  absPercentage: (val: number | string | undefined) => string;
123
- thoundsandText2: (val: number | string | undefined) => string;
124
- thoundsandText4: (val: number | string | undefined) => string;
141
+ thousandText2: (val: number | string | undefined) => string;
142
+ thousandText4: (val: number | string | undefined) => string;
125
143
  notProcessed: null;
126
144
  other: null;
127
145
  customDeal: null;
128
146
  customSlot: null;
129
147
  };
130
- export declare const convertKey: (data: any, key: string) => any;
131
- export type clounmKyeType = keyof typeof TABLE_KEY;
148
+ type TargetCombinedKey = `${TargetHeadKeyType}_${TargetEndKeyType}`;
149
+ export type clounmKyeType = keyof typeof TABLE_KEY | TargetCombinedKey;
132
150
  export type dealKeyType = keyof typeof CLOUMN_DEAL;
151
+ export {};