@ecan-bi/indicator-library 1.0.88 → 1.0.90

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 (44) hide show
  1. package/dist/assets/editor.worker-02df2e61.js +1 -1
  2. package/dist/assets/json.worker-867823a6.js +1 -1
  3. package/dist/assets/ts.worker-7254b425.js +1 -1
  4. package/dist/index.es.js +11759 -6904
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/index.umd.js +21 -10
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/style.css +2 -2
  9. package/package.json +13 -12
  10. package/types/env.d.ts +15 -0
  11. package/types/indicator/indicator-library/data-config/data-config-group/data-config-card/DataConfigCard.vue.d.ts +1 -1
  12. package/types/indicator/indicator-library/data-config/style-config-group/StyleConfigGroup.vue.d.ts +2 -2
  13. package/types/indicator/indicator-library/data-config/style-config-group/chart-props/bar/props.d.ts +50 -0
  14. package/types/indicator/indicator-library/data-config/style-config-group/chart-props/combo-graph/props.d.ts +5 -1
  15. package/types/indicator/indicator-library/data-config/style-config-group/chart-props/index.d.ts +65 -1
  16. package/types/indicator/indicator-library/data-config/style-config-group/chart-props/line/props.d.ts +120 -2
  17. package/types/indicator/indicator-library/data-config/style-config-group/chart-props/pie/props.d.ts +26 -1
  18. package/types/indicator/indicator-library/data-config/style-config-group/data.d.ts +7 -1
  19. package/types/indicator/indicator-library/data-config/style-config-group/indicator-container/IndicatorContainer.vue.d.ts +8 -0
  20. package/types/indicator/indicator-library/data-config/style-config-group/indicator-container/index.d.ts +2 -0
  21. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/PropsToForm.vue.d.ts +1 -1
  22. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/data.d.ts +5 -0
  23. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/form-group/FormGroup.vue.d.ts +1 -1
  24. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/input-number/InputNumber.vue.d.ts +4 -4
  25. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/radio-group/RadioGroup.vue.d.ts +2 -2
  26. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/select/Select.vue.d.ts +8 -2
  27. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/slider/Slider.vue.d.ts +18 -0
  28. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/slider/index.d.ts +2 -0
  29. package/types/indicator/indicator-library/data-config/style-config-group/props-to-form/switch/Switch.vue.d.ts +2 -2
  30. package/types/indicator/indicator-library/data-config/style-config-group/table-column-config/TableColumnConfig.vue.d.ts +3 -0
  31. package/types/indicator/indicator-library/data-config/style-config-group/table-column-config/components/Condition.vue.d.ts +54 -0
  32. package/types/indicator/indicator-library/data-config/style-config-group/table-column-config/components/ConditionList.vue.d.ts +33 -0
  33. package/types/indicator/indicator-library/data-config/style-config-group/table-column-config/components/ConditionWrap.vue.d.ts +42 -0
  34. package/types/indicator/indicator-library/data-config/style-config-group/table-column-config/components/ConditionsTable.vue.d.ts +20 -0
  35. package/types/indicator/indicator-library/data-list/IndSourceList.vue.d.ts +9 -0
  36. package/types/indicator/table-graph/TableGraph.vue.d.ts +35 -0
  37. package/types/utils/constant.d.ts +1 -1
  38. package/types/utils/util.d.ts +17 -8
  39. package/types/hooks/useTransformChartDataByAttrKey.d.ts +0 -25
  40. package/types/hooks/useTransformChartDataByAttrValue.d.ts +0 -23
  41. package/types/hooks/useValueFormatter.d.ts +0 -2
  42. package/types/hooks/useVariablesInText.d.ts +0 -12
  43. package/types/indicator/chart-graph/transformProps.d.ts +0 -1
  44. package/types/utils/runCode.d.ts +0 -4
@@ -1,9 +1,14 @@
1
1
  export interface PropsGroup {
2
2
  title?: string;
3
3
  enableProps?: string;
4
+ showSwitch?: boolean;
4
5
  onlyType?: string | string[];
5
6
  excludeType?: string | string[];
6
- props: string[];
7
+ props: (string | {
8
+ value: string;
9
+ onlyType?: string | string[];
10
+ excludeType?: string | string[];
11
+ })[];
7
12
  }
8
13
  export declare type PropsGroups = PropsGroup[];
9
14
  export interface DetailPropsGroup {
@@ -11,6 +16,7 @@ export interface DetailPropsGroup {
11
16
  enableProps?: boolean;
12
17
  onlyType?: string | string[];
13
18
  excludeType?: string | string[];
19
+ showSwitch?: boolean;
14
20
  enablePropsName?: string;
15
21
  props: {
16
22
  [key: string]: any;
@@ -0,0 +1,8 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ selectedComponent: any;
3
+ configColumns: any;
4
+ graphicConfig: any;
5
+ columnsConfigMap: import("vue").ComputedRef<any>;
6
+ activePanel: import("vue").Ref<string[]>;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
8
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import IndicatorContainer from './IndicatorContainer.vue';
2
+ export default IndicatorContainer;
@@ -15,7 +15,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
15
15
  formProps: import("vue").ComputedRef<{
16
16
  [key: string]: any;
17
17
  }>;
18
- lowerCaseIncludes: (v1: any, v2: any) => boolean;
18
+ lowerCaseIncludes: any;
19
19
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  props: {
21
21
  type: ObjectConstructor;
@@ -19,6 +19,11 @@ export interface PropToAttributeConfig {
19
19
  onlyType?: string | string[];
20
20
  excludeType?: string | string[];
21
21
  layout?: 'horizontal' | 'vertical';
22
+ show?: {
23
+ [key: string]: any;
24
+ }[];
25
+ effect?: any;
26
+ effectVal?: any;
22
27
  }
23
28
  declare type PropToAttributeConfigList = PropToAttributeConfig[];
24
29
  export declare type PropsToAttributeConfig = {
@@ -48,10 +48,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
48
48
  }>> & {
49
49
  onChange?: (...args: any[]) => any;
50
50
  }, {
51
- value: unknown[];
52
51
  format: {
53
52
  [key: string]: any;
54
53
  }[];
54
+ value: unknown[];
55
55
  max: number;
56
56
  useLabelIndex: boolean;
57
57
  }, {}>;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
3
  value: {
4
- type: (ObjectConstructor | StringConstructor | NumberConstructor)[];
4
+ type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
5
5
  default: string;
6
6
  };
7
7
  valueKey: {
@@ -33,7 +33,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
33
  default: number;
34
34
  };
35
35
  step: {
36
- type: (StringConstructor | NumberConstructor)[];
36
+ type: (NumberConstructor | StringConstructor)[];
37
37
  default: number;
38
38
  };
39
39
  useBlurEvent: {
@@ -51,7 +51,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
51
51
  onSuffixChange: () => void;
52
52
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
53
  value: {
54
- type: (ObjectConstructor | StringConstructor | NumberConstructor)[];
54
+ type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
55
55
  default: string;
56
56
  };
57
57
  valueKey: {
@@ -83,7 +83,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
83
83
  default: number;
84
84
  };
85
85
  step: {
86
- type: (StringConstructor | NumberConstructor)[];
86
+ type: (NumberConstructor | StringConstructor)[];
87
87
  default: number;
88
88
  };
89
89
  useBlurEvent: {
@@ -1,7 +1,7 @@
1
1
  export default _sfc_main;
2
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
3
  value: {
4
- type: (StringConstructor | NumberConstructor)[];
4
+ type: (NumberConstructor | StringConstructor)[];
5
5
  default: string;
6
6
  };
7
7
  options: {
@@ -20,7 +20,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
20
20
  onRadioChange: (e: any) => void;
21
21
  }, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
22
  value: {
23
- type: (StringConstructor | NumberConstructor)[];
23
+ type: (NumberConstructor | StringConstructor)[];
24
24
  default: string;
25
25
  };
26
26
  options: {
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _sfc_main: import("vue").DefineComponent<{
3
3
  value: {
4
- type: (StringConstructor | NumberConstructor | {
4
+ type: (NumberConstructor | StringConstructor | {
5
5
  (arrayLength: number): String[];
6
6
  (...items: String[]): String[];
7
7
  new (arrayLength: number): String[];
@@ -34,11 +34,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
34
34
  type: PropType<any>;
35
35
  default: () => any[];
36
36
  };
37
+ customOption: {
38
+ type: FunctionConstructor;
39
+ };
37
40
  }, {
38
41
  onSelectChange: (value: string | number) => void;
39
42
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
43
  value: {
41
- type: (StringConstructor | NumberConstructor | {
44
+ type: (NumberConstructor | StringConstructor | {
42
45
  (arrayLength: number): String[];
43
46
  (...items: String[]): String[];
44
47
  new (arrayLength: number): String[];
@@ -71,6 +74,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
71
74
  type: PropType<any>;
72
75
  default: () => any[];
73
76
  };
77
+ customOption: {
78
+ type: FunctionConstructor;
79
+ };
74
80
  }>> & {
75
81
  onChange?: (...args: any[]) => any;
76
82
  }, {
@@ -0,0 +1,18 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ value: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ }, {
7
+ onChange: (value: number) => void;
8
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ value: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ }>> & {
14
+ onChange?: (...args: any[]) => any;
15
+ }, {
16
+ value: number;
17
+ }, {}>;
18
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ import Slider from './Slider.vue';
2
+ export default Slider;
@@ -5,7 +5,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
5
5
  default: boolean;
6
6
  };
7
7
  width: {
8
- type: (StringConstructor | NumberConstructor)[];
8
+ type: (NumberConstructor | StringConstructor)[];
9
9
  default: number;
10
10
  };
11
11
  disabled: {
@@ -20,7 +20,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
20
20
  default: boolean;
21
21
  };
22
22
  width: {
23
- type: (StringConstructor | NumberConstructor)[];
23
+ type: (NumberConstructor | StringConstructor)[];
24
24
  default: number;
25
25
  };
26
26
  disabled: {
@@ -96,5 +96,8 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
96
96
  renderSave: (obj: any, key: string, title: string) => void;
97
97
  onEditorChange: (code: string) => void;
98
98
  changeRenderBool: (row: any, e: any) => void;
99
+ openConditions: (index: number) => void;
100
+ confirmConditions: (rules: any) => void;
101
+ conditionsTableRef: import("vue").Ref<any>;
99
102
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
100
103
  export default _sfc_main;
@@ -0,0 +1,54 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ level: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ index: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ path: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }, {
19
+ ruleOptions: {
20
+ label: string;
21
+ value: string;
22
+ }[];
23
+ condition: import("vue").Ref<{
24
+ rule: string;
25
+ value: string;
26
+ key: string;
27
+ }>;
28
+ onRuleChange: () => void;
29
+ clickConditionMenu: (data: any) => void;
30
+ onDelete: () => void;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ data: {
33
+ type: ObjectConstructor;
34
+ default: () => {};
35
+ };
36
+ level: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ index: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ path: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ }>>, {
49
+ data: Record<string, any>;
50
+ index: number;
51
+ level: number;
52
+ path: string;
53
+ }, {}>;
54
+ export default _sfc_main;
@@ -0,0 +1,33 @@
1
+ import { PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ list: {
4
+ type: PropType<any[]>;
5
+ default: () => any[];
6
+ };
7
+ level: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ path: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ list: {
17
+ type: PropType<any[]>;
18
+ default: () => any[];
19
+ };
20
+ level: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ path: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }>>, {
29
+ list: any[];
30
+ level: number;
31
+ path: string;
32
+ }, {}>;
33
+ export default _sfc_main;
@@ -0,0 +1,42 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ index: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ }, {
11
+ params: import("vue").ComputedRef<{
12
+ pageId: string;
13
+ }>;
14
+ visible: import("vue").Ref<boolean>;
15
+ conditionList: import("vue").Ref<{
16
+ [key: string]: any;
17
+ }[]>;
18
+ attribute: import("vue").Ref<{
19
+ [key: string]: any;
20
+ }>;
21
+ handleOk: () => void;
22
+ addCondition: (join?: '||' | '&&') => void;
23
+ onUploadChange: (imgSrc: string) => void;
24
+ imgBaseUrl: import("vue").ComputedRef<any>;
25
+ iconOptions: import("vue").Ref<{
26
+ label: string;
27
+ value: string;
28
+ }[]>;
29
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ data: {
31
+ type: ObjectConstructor;
32
+ default: () => {};
33
+ };
34
+ index: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ }>>, {
39
+ data: Record<string, any>;
40
+ index: number;
41
+ }, {}>;
42
+ export default _sfc_main;
@@ -0,0 +1,20 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ visible: import("vue").Ref<boolean>;
3
+ currentData: import("vue").Ref<any>;
4
+ currentIndex: import("vue").Ref<number>;
5
+ configColumns: any;
6
+ conditionsRef: import("vue").Ref<any>;
7
+ rules: import("vue").Ref<{
8
+ conditionCode: string;
9
+ name: string;
10
+ condition: any[];
11
+ attribute: any;
12
+ }[]>;
13
+ open: (tableCompColumn: any) => void;
14
+ close: () => string;
15
+ addRule: () => void;
16
+ openRuleModal: (record: any, index: number) => void;
17
+ closeRuleModal: (data: any) => void;
18
+ deleteRule: (index: number) => void;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
20
+ export default _sfc_main;
@@ -20,6 +20,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
20
20
  type: NumberConstructor;
21
21
  default: number;
22
22
  };
23
+ graphicConfig: {
24
+ type: ObjectConstructor;
25
+ default: () => {};
26
+ };
23
27
  }, {
24
28
  columnRef: import("vue").Ref<any>;
25
29
  sourceList: import("vue").Ref<{
@@ -60,7 +64,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
60
64
  type: NumberConstructor;
61
65
  default: number;
62
66
  };
67
+ graphicConfig: {
68
+ type: ObjectConstructor;
69
+ default: () => {};
70
+ };
63
71
  }>>, {
72
+ graphicConfig: Record<string, any>;
64
73
  source: string;
65
74
  data: any[];
66
75
  isSub: boolean;
@@ -0,0 +1,35 @@
1
+ import { handleFormat } from '../../utils/util';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ graphicConfig: {
4
+ type: ObjectConstructor;
5
+ default: () => void;
6
+ };
7
+ type: {
8
+ type: StringConstructor;
9
+ };
10
+ pagination: {
11
+ type: ObjectConstructor;
12
+ default: () => {};
13
+ };
14
+ }, {
15
+ tableData: import("vue").Ref<any[]>;
16
+ tableColumns: import("vue").Ref<any[]>;
17
+ handleFormat: typeof handleFormat;
18
+ columnsConfigMap: any;
19
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ graphicConfig: {
21
+ type: ObjectConstructor;
22
+ default: () => void;
23
+ };
24
+ type: {
25
+ type: StringConstructor;
26
+ };
27
+ pagination: {
28
+ type: ObjectConstructor;
29
+ default: () => {};
30
+ };
31
+ }>>, {
32
+ graphicConfig: Record<string, any>;
33
+ pagination: Record<string, any>;
34
+ }, {}>;
35
+ export default _sfc_main;
@@ -1,5 +1,5 @@
1
1
  export declare const REQUEST = "$request";
2
- export declare const INDICATOR_URL: any;
2
+ export declare const INDICATOR_URL: string;
3
3
  export declare const INDICATOR_TOKEN = "INDICATOR_TOKEN";
4
4
  export declare const CONTAINER_TYPES: string[];
5
5
  export declare const CACHE_STEP = "CACHE_STEP";
@@ -1,12 +1,4 @@
1
- /**
2
- * 字符串1 中是否包含 字符串2 (会全部转成小写)
3
- * @param v1 字符串1
4
- * @param v2 字符串2 | 字符串数组
5
- * @constructor
6
- */
7
- export declare const lowerCaseIncludes: (v1: any, v2: any) => boolean;
8
1
  export declare const handleFormatter: (formatter: string) => string;
9
- export declare const hasOwn: (v: object, k: string | symbol) => k is never;
10
2
  export declare const getConditions: (conditions: {
11
3
  [key: string]: any;
12
4
  }[]) => any[];
@@ -21,6 +13,23 @@ export declare const handleVariableList: (variableList: {
21
13
  [key: string]: any;
22
14
  }[]) => any[];
23
15
  export declare const getEventName: (type: string) => string;
16
+ export declare function getFormatStep(format: string): string;
17
+ export declare function handleFormat(row: any, item: any): any;
18
+ export declare function formatQfw(str: string): string;
19
+ export declare function getIndicatorParams({ graphicConfig, request, INDICATOR_URL, PAGE_ID, dataSourceId }: {
20
+ graphicConfig: any;
21
+ request: any;
22
+ INDICATOR_URL?: string;
23
+ PAGE_ID: any;
24
+ dataSourceId: any;
25
+ }): Promise<any>;
26
+ /**
27
+ * 图表的图例格式化
28
+ * @param format 表达式
29
+ * @param textData 传入参数
30
+ * @returns 显示的图例文本
31
+ */
32
+ export declare const getLegendFormat: (format: string, textData: any) => string;
24
33
  export declare const mapScope: (scope: 'DIM' | 'IDX' | 'BUILT_IN_DIM') => string;
25
34
  export declare const mapDataSetScope: (scope: '0' | '1' | '2') => string;
26
35
  export declare const getLoadType: (type: string) => "" | "手工录入" | "系统取数" | "运算加工";
@@ -1,25 +0,0 @@
1
- interface DataItem {
2
- name: string | number;
3
- value: string | number;
4
- type?: string;
5
- }
6
- export declare type Data = DataItem[];
7
- export interface KeyTypeDataFieldNames {
8
- name: string;
9
- types: {
10
- label: string;
11
- value: string;
12
- }[];
13
- }
14
- /**
15
- * 图形转化数据
16
- * @param data 数据
17
- * @param dataFieldNames 字段映射
18
- */
19
- export declare const useTransformChartDataByAttrKey: (data: Data, dataFieldNames: KeyTypeDataFieldNames) => {
20
- dimensions: unknown[];
21
- dataset: {
22
- [key: string]: any;
23
- }[];
24
- };
25
- export default useTransformChartDataByAttrKey;
@@ -1,23 +0,0 @@
1
- interface DataItem {
2
- name: string | number;
3
- value: string | number;
4
- type?: string;
5
- }
6
- export declare type Data = DataItem[];
7
- export interface ValueTypeDataFieldNames {
8
- name: string;
9
- value: string;
10
- type: string;
11
- }
12
- /**
13
- * 图形转化数据
14
- * @param data 数据
15
- * @param dataFieldNames 字段映射
16
- */
17
- export declare const useTransformChartDataByAttrValue: (data: Data, dataFieldNames?: ValueTypeDataFieldNames) => {
18
- dimensions: unknown[];
19
- dataset: {
20
- [key: string]: any;
21
- }[];
22
- };
23
- export default useTransformChartDataByAttrValue;
@@ -1,2 +0,0 @@
1
- export declare const useValueFormatter: (formatter: string, value: string) => string;
2
- export default useValueFormatter;
@@ -1,12 +0,0 @@
1
- export declare const useVariablesInText: (formatter?: string, { textData, codeData }?: {
2
- textData?: {
3
- [key: string]: any;
4
- };
5
- codeData?: {
6
- [key: string]: any;
7
- };
8
- }, { useNewline, useSpace }?: {
9
- useNewline?: boolean;
10
- useSpace?: boolean;
11
- }) => string;
12
- export default useVariablesInText;
@@ -1 +0,0 @@
1
- export declare const getTransformProps: (chartsOptions: any, chartData: any, fontSize: any) => {};
@@ -1,4 +0,0 @@
1
- declare const runCode: (code: string, data?: {
2
- [key: string]: any;
3
- }) => any;
4
- export default runCode;