@devtable/dashboard 8.43.0 → 8.44.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/dashboard.es.js +4307 -4287
- package/dist/dashboard.umd.js +68 -68
- package/dist/plugins/common-echarts-fields/regression-line/index.d.ts +2 -0
- package/dist/plugins/common-echarts-fields/regression-line/option.d.ts +2 -0
- package/dist/plugins/common-echarts-fields/regression-line/types.d.ts +27 -0
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/migrators/index.d.ts +19 -0
- package/dist/plugins/viz-components/cartesian/option/events.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/regression.d.ts +3 -18
- package/dist/plugins/viz-components/cartesian/option/x-axis.d.ts +17 -1
- package/dist/plugins/viz-components/cartesian/type.d.ts +5 -20
- package/dist/plugins/viz-components/cartesian/viz-cartesian-editor.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/type.d.ts +1 -1
- package/dist/plugins/viz-components/horizontal-bar-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/pareto-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/option/regression-series.d.ts +1 -9
- package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/type.d.ts +1 -1
- package/package.json +1 -3
- package/dist/plugins/viz-components/cartesian/viz-cartesian-panel.d.ts +0 -3
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/get-echarts-data-zoom-option.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/types.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-areas/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-areas/reference-area.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-lines/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-lines/reference-line.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/regressions/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/regressions/regression-item.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/dynamic-size-function-editor.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/dynamic.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/get-echarts-symbol-size.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/static.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/types.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/fields.bar.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/fields.line.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/fields.scatter.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/series-item.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/stats/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/types.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/y-axes.d.ts +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
export interface IRegressionTransform {
|
|
3
|
+
type: 'ecStat:regression';
|
|
4
|
+
config: {
|
|
5
|
+
method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
|
|
6
|
+
order: number;
|
|
7
|
+
formulaOn: 'end';
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface IRegressionLineConf {
|
|
11
|
+
type: 'line';
|
|
12
|
+
yAxisIndex: number;
|
|
13
|
+
color: string;
|
|
14
|
+
lineStyle: {
|
|
15
|
+
type: 'solid' | 'dashed' | 'dotted';
|
|
16
|
+
width: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
20
|
+
data: number[][];
|
|
21
|
+
name: string;
|
|
22
|
+
showSymbol: boolean;
|
|
23
|
+
tooltip: Record<string, $TSFixMe>;
|
|
24
|
+
smooth: boolean;
|
|
25
|
+
custom?: AnyObject;
|
|
26
|
+
}
|
|
27
|
+
export declare type TDataForReg = number[][];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
3
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
4
4
|
export interface IBoxplotReferenceLine {
|
|
5
5
|
name: string;
|
|
6
6
|
template: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
2
2
|
import { VizComponent } from '~/types/plugin';
|
|
3
3
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION = 14;
|
|
5
4
|
configVersions(): void;
|
|
5
|
+
readonly VERSION = 15;
|
|
6
6
|
}
|
|
7
7
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { ITemplateVariable } from '~/utils/template';
|
|
3
|
+
import { ICartesianChartConf } from '../type';
|
|
4
|
+
export declare function updateSchema2(legacyConf: ICartesianChartConf & {
|
|
5
|
+
variables: ITemplateVariable[];
|
|
6
|
+
}): AnyObject;
|
|
7
|
+
export declare function updateToSchema3(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
8
|
+
export declare function updateToSchema4(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
9
|
+
export declare function v5(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
10
|
+
export declare function v6(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
11
|
+
export declare function v7(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
12
|
+
export declare function v8(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
13
|
+
export declare function v9(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
14
|
+
export declare function v10(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
15
|
+
export declare function v11(legacyConf: any): ICartesianChartConf;
|
|
16
|
+
export declare function v12(legacyConf: any): ICartesianChartConf;
|
|
17
|
+
export declare function v13(legacyConf: any): ICartesianChartConf;
|
|
18
|
+
export declare function v14(legacyConf: any): ICartesianChartConf;
|
|
19
|
+
export declare function v15(legacyConf: any): ICartesianChartConf;
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
fromDatasetId?: string;
|
|
5
|
-
source?: number[][];
|
|
6
|
-
transform?: IRegressionTransform;
|
|
7
|
-
}
|
|
8
|
-
interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
9
|
-
datasetId: string;
|
|
10
|
-
xAxisId: string;
|
|
11
|
-
name: string;
|
|
12
|
-
showSymbol: boolean;
|
|
13
|
-
tooltip: Record<string, $TSFixMe>;
|
|
14
|
-
}
|
|
15
|
-
export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: TVizData): {
|
|
16
|
-
regressionDataSets: IRegressionDataSetItem[];
|
|
1
|
+
import { IRegressionSeriesItem } from '~/plugins/common-echarts-fields/regression-line';
|
|
2
|
+
import { ICartesianChartConf } from '../type';
|
|
3
|
+
export declare function getRegressionConfs({ regressions, x_axis_data_key }: ICartesianChartConf, rawData: TVizData): {
|
|
17
4
|
regressionSeries: IRegressionSeriesItem[];
|
|
18
|
-
regressionXAxes: Record<string, any>[];
|
|
19
5
|
};
|
|
20
|
-
export {};
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import { ICartesianChartConf } from '../type';
|
|
2
|
-
export declare function getXAxes(conf: ICartesianChartConf, xAxisData: $TSFixMe[]
|
|
2
|
+
export declare function getXAxes(conf: ICartesianChartConf, xAxisData: $TSFixMe[]): {
|
|
3
|
+
data: any[];
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
axisTick: {
|
|
7
|
+
show: boolean;
|
|
8
|
+
alignWithLabel: boolean;
|
|
9
|
+
};
|
|
10
|
+
type: string;
|
|
11
|
+
axisLabel: {
|
|
12
|
+
formatter: (value: string | number, index: number) => any;
|
|
13
|
+
width: number;
|
|
14
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
15
|
+
ellipsis: "...";
|
|
16
|
+
rotate: number;
|
|
17
|
+
};
|
|
18
|
+
}[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
+
import { IRegressionLineConf, IRegressionTransform } from '~/plugins/common-echarts-fields/regression-line';
|
|
3
4
|
import { AggregationType } from '~/utils/aggregation';
|
|
4
|
-
import { TEchartsDataZoomConfig } from './
|
|
5
|
-
import { TScatterSize } from './
|
|
6
|
-
import { IXAxisLabelFormatter } from './
|
|
5
|
+
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
6
|
+
import { TScatterSize } from './editors/scatter-size-select/types';
|
|
7
|
+
import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
|
|
7
8
|
export interface ICartesianChartSeriesItem {
|
|
8
9
|
type: 'line' | 'bar' | 'scatter';
|
|
9
10
|
name: string;
|
|
@@ -38,28 +39,12 @@ export interface IYAxisConf {
|
|
|
38
39
|
nameAlignment: 'left' | 'center' | 'right';
|
|
39
40
|
label_formatter: TNumbroFormat;
|
|
40
41
|
}
|
|
41
|
-
export interface IRegressionTransform {
|
|
42
|
-
type: 'ecStat:regression';
|
|
43
|
-
config: {
|
|
44
|
-
method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
|
|
45
|
-
order: number;
|
|
46
|
-
formulaOn: 'end';
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export interface IRegressionLineConf {
|
|
50
|
-
type: 'line';
|
|
51
|
-
yAxisIndex: number;
|
|
52
|
-
color: string;
|
|
53
|
-
lineStyle: {
|
|
54
|
-
type: 'solid' | 'dashed' | 'dotted';
|
|
55
|
-
width: number;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
42
|
export interface IRegressionConf {
|
|
59
43
|
transform: IRegressionTransform;
|
|
60
44
|
plot: IRegressionLineConf;
|
|
61
45
|
name: string;
|
|
62
46
|
y_axis_data_key: string;
|
|
47
|
+
group_by_key: string;
|
|
63
48
|
}
|
|
64
49
|
export interface ICartesianReferenceLine {
|
|
65
50
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
3
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
4
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
4
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
5
5
|
export interface IHeatmapConf {
|
|
6
6
|
x_axis: {
|
|
7
7
|
name: string;
|
|
@@ -2,7 +2,7 @@ import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
3
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
4
4
|
import { AggregationType } from '~/utils/aggregation';
|
|
5
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
5
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
6
6
|
export interface IHorizontalBarChartReferenceLine {
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
-
import { TEchartsDataZoomConfig } from '../cartesian/
|
|
4
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
3
|
+
import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
|
|
4
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
5
5
|
export declare const DEFAULT_PARETO_MARK_LINE: {
|
|
6
6
|
label_template: string;
|
|
7
7
|
color: string;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRegressionSeriesItem } from '~/plugins/common-echarts-fields/regression-line';
|
|
2
2
|
import { IRegressionChartConf } from '../type';
|
|
3
|
-
interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
4
|
-
data: number[][];
|
|
5
|
-
name: string;
|
|
6
|
-
showSymbol: boolean;
|
|
7
|
-
tooltip: Record<string, $TSFixMe>;
|
|
8
|
-
smooth: boolean;
|
|
9
|
-
}
|
|
10
3
|
export declare function getRegressionConf({ regression }: IRegressionChartConf, data: number[][]): {
|
|
11
4
|
regressionSeries: IRegressionSeriesItem[];
|
|
12
5
|
regressionXAxes: Record<string, any>[];
|
|
13
6
|
};
|
|
14
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NOTE: this file is almost a duplicate of cartesian/
|
|
2
|
+
* NOTE: this file is almost a duplicate of cartesian/editors/regressions/regression-item.tsx
|
|
3
3
|
* FIXME: extract common input widgets & configs, then improve this file
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="react" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TEchartsDataZoomConfig } from '../cartesian/
|
|
1
|
+
import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
|
|
2
2
|
import { TSeriesColor } from './editors/scatter/series-color-select/types';
|
|
3
3
|
import { IEchartsOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
4
4
|
import { IEchartsReferenceArea } from '~/plugins/common-echarts-fields/reference-area/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtable/dashboard",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.44.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"echarts": "^5.3.2",
|
|
85
85
|
"echarts-for-react": "^3.0.2",
|
|
86
86
|
"echarts-gl": "^2.0.9",
|
|
87
|
-
"echarts-stat": "1.2.0",
|
|
88
87
|
"jsdom": "^20.0.0",
|
|
89
88
|
"jsdom-testing-mocks": "^1.5.0",
|
|
90
89
|
"lodash": "^4.17.21",
|
|
@@ -136,7 +135,6 @@
|
|
|
136
135
|
"echarts": "^5.3.2",
|
|
137
136
|
"echarts-for-react": "^3.0.2",
|
|
138
137
|
"echarts-gl": "^2.0.9",
|
|
139
|
-
"echarts-stat": "1.2.0",
|
|
140
138
|
"eventemitter2": "^6.4.6",
|
|
141
139
|
"jszip": "3.10.1",
|
|
142
140
|
"lodash": "^4.17.21",
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/index.d.ts
RENAMED
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-areas/reference-area.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-lines/reference-line.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/regressions/regression-item.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/dynamic.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/index.d.ts
RENAMED
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/static.d.ts
RENAMED
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|