@devtable/dashboard 13.14.0 → 13.15.0
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.
- package/dist/components/plugins/viz-components/pareto-chart/editors/reference-lines/index.d.ts +10 -0
- package/dist/components/plugins/viz-components/pareto-chart/editors/reference-lines/reference-line.d.ts +17 -0
- package/dist/components/plugins/viz-components/pareto-chart/option/index.d.ts +30 -1
- package/dist/components/plugins/viz-components/pareto-chart/option/reference_lines.d.ts +32 -0
- package/dist/components/plugins/viz-components/pareto-chart/type.d.ts +2 -0
- package/dist/dashboard.es.js +3459 -3302
- package/dist/dashboard.umd.js +70 -70
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/components/plugins/viz-components/pareto-chart/editors/reference-lines/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { ITemplateVariable } from '../../../../../../utils';
|
|
3
|
+
import { IParetoChartConf } from '../../type';
|
|
4
|
+
interface IReferenceLinesField {
|
|
5
|
+
control: Control<IParetoChartConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IParetoChartConf>;
|
|
7
|
+
variables: ITemplateVariable[];
|
|
8
|
+
}
|
|
9
|
+
export declare function ReferenceLinesField({ control, watch, variables }: IReferenceLinesField): import('./react/jsx-runtime').JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { IParetoChartConf } from '../../type';
|
|
3
|
+
interface IReferenceLineField {
|
|
4
|
+
control: Control<IParetoChartConf, $TSFixMe>;
|
|
5
|
+
index: number;
|
|
6
|
+
watch: UseFormWatch<IParetoChartConf>;
|
|
7
|
+
variableOptions: {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
yAxisOptions: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export declare function ReferenceLineField({ control, index, watch, variableOptions, yAxisOptions }: IReferenceLineField): import('./react/jsx-runtime').JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITemplateVariable } from '../../../../../utils';
|
|
2
2
|
import { IParetoChartConf } from '../type';
|
|
3
|
-
export declare function getOption(conf: IParetoChartConf, data: TPanelData,
|
|
3
|
+
export declare function getOption(conf: IParetoChartConf, data: TPanelData, variables: ITemplateVariable[]): {
|
|
4
4
|
dataZoom: ({
|
|
5
5
|
type: string;
|
|
6
6
|
xAxisIndex: number[];
|
|
@@ -110,6 +110,35 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, _var
|
|
|
110
110
|
})[][];
|
|
111
111
|
} | undefined;
|
|
112
112
|
barMaxWidth?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
name: string;
|
|
115
|
+
type: string;
|
|
116
|
+
hide_in_legend: boolean;
|
|
117
|
+
xAxisId: string;
|
|
118
|
+
yAxisIndex: number;
|
|
119
|
+
data: (string | number)[];
|
|
120
|
+
symbol: string;
|
|
121
|
+
silent: boolean;
|
|
122
|
+
tooltip: {
|
|
123
|
+
show: boolean;
|
|
124
|
+
};
|
|
125
|
+
markLine: {
|
|
126
|
+
data: {
|
|
127
|
+
[x: string]: string | number;
|
|
128
|
+
name: string;
|
|
129
|
+
}[];
|
|
130
|
+
silent: boolean;
|
|
131
|
+
symbol: string[];
|
|
132
|
+
lineStyle: {
|
|
133
|
+
type: import("../../../common-echarts-fields/line-type").IEChartsLineType;
|
|
134
|
+
width: number;
|
|
135
|
+
color: string;
|
|
136
|
+
};
|
|
137
|
+
label: {
|
|
138
|
+
formatter: () => string;
|
|
139
|
+
position: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
113
142
|
})[];
|
|
114
143
|
grid: {
|
|
115
144
|
top: number;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ITemplateVariable } from '../../../../../utils';
|
|
2
|
+
import { ICartesianReferenceLine } from '../../cartesian/type';
|
|
3
|
+
export declare function getReferenceLines(reference_lines: ICartesianReferenceLine[], variables: ITemplateVariable[], variableValueMap: Record<string, string | number>, data: TPanelData): {
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
hide_in_legend: boolean;
|
|
7
|
+
xAxisId: string;
|
|
8
|
+
yAxisIndex: number;
|
|
9
|
+
data: (string | number)[];
|
|
10
|
+
symbol: string;
|
|
11
|
+
silent: boolean;
|
|
12
|
+
tooltip: {
|
|
13
|
+
show: boolean;
|
|
14
|
+
};
|
|
15
|
+
markLine: {
|
|
16
|
+
data: {
|
|
17
|
+
[x: string]: string | number;
|
|
18
|
+
name: string;
|
|
19
|
+
}[];
|
|
20
|
+
silent: boolean;
|
|
21
|
+
symbol: string[];
|
|
22
|
+
lineStyle: {
|
|
23
|
+
type: import("../../../common-echarts-fields/line-type").IEChartsLineType;
|
|
24
|
+
width: number;
|
|
25
|
+
color: string;
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
formatter: () => string;
|
|
29
|
+
position: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}[];
|
|
@@ -3,6 +3,7 @@ import { TNumberFormat } from '../../../../utils';
|
|
|
3
3
|
import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
|
|
4
4
|
import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
|
|
5
5
|
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
6
|
+
import { ICartesianReferenceLine } from '../cartesian/type';
|
|
6
7
|
export declare const DEFAULT_PARETO_MARK_LINE: {
|
|
7
8
|
label_template: string;
|
|
8
9
|
color: string;
|
|
@@ -34,5 +35,6 @@ export interface IParetoChartConf {
|
|
|
34
35
|
label_template: string;
|
|
35
36
|
color: string;
|
|
36
37
|
};
|
|
38
|
+
reference_lines: ICartesianReferenceLine[];
|
|
37
39
|
}
|
|
38
40
|
export declare const DEFAULT_CONFIG: IParetoChartConf;
|