@devtable/dashboard 6.9.0 → 6.10.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 +3860 -3638
- package/dist/dashboard.umd.js +34 -33
- package/dist/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/panel/reference-lines/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/panel/reference-lines/reference-line.d.ts +3 -2
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-formatter/function-editor.d.ts +8 -0
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-formatter/index.d.ts +10 -0
- package/dist/plugins/viz-components/cartesian/panel/x-axis/x-axis-label-formatter/types.d.ts +8 -0
- package/dist/plugins/viz-components/cartesian/type.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VizComponent } from '~/types/plugin';
|
|
2
2
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
3
3
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION =
|
|
4
|
+
readonly VERSION = 3;
|
|
5
5
|
configVersions(): void;
|
|
6
6
|
}
|
|
7
7
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { ICartesianChartConf } from '../../type';
|
|
4
3
|
import { ITemplateVariable } from '~/utils/template';
|
|
4
|
+
import { ICartesianChartConf } from '../../type';
|
|
5
5
|
interface IReferenceLinesField {
|
|
6
6
|
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
7
7
|
watch: UseFormWatch<ICartesianChartConf>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFieldArrayRemove } from 'react-hook-form';
|
|
2
|
+
import { Control, UseFieldArrayRemove, UseFormWatch } from 'react-hook-form';
|
|
3
3
|
import { ICartesianChartConf } from '../../type';
|
|
4
4
|
interface IReferenceLineField {
|
|
5
5
|
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
6
6
|
index: number;
|
|
7
|
+
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
8
|
remove: UseFieldArrayRemove;
|
|
8
9
|
variableOptions: {
|
|
9
10
|
label: string;
|
|
10
11
|
value: string;
|
|
11
12
|
}[];
|
|
12
13
|
}
|
|
13
|
-
export declare function ReferenceLineField({ control, index, remove, variableOptions }: IReferenceLineField): JSX.Element;
|
|
14
|
+
export declare function ReferenceLineField({ control, index, remove, watch, variableOptions }: IReferenceLineField): JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IXAxisLabelFormatterFunctionEditor {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const XAxisLabelFormatterFunctionEditor: ({ disabled, value, onChange, }: IXAxisLabelFormatterFunctionEditor) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { IXAxisLabelFormatter } from './types';
|
|
4
|
+
interface IXAxisLabelFormatterField {
|
|
5
|
+
value: IXAxisLabelFormatter;
|
|
6
|
+
onChange: (v: IXAxisLabelFormatter) => void;
|
|
7
|
+
data: AnyObject[];
|
|
8
|
+
}
|
|
9
|
+
export declare const XAxisLabelFormatterField: ({ value, onChange, data }: IXAxisLabelFormatterField) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { TScatterSize } from './panel/scatter-size-select/types';
|
|
3
|
+
import { IXAxisLabelFormatter } from './panel/x-axis/x-axis-label-formatter/types';
|
|
3
4
|
export interface ICartesianChartSeriesItem {
|
|
4
5
|
type: 'line' | 'bar' | 'scatter';
|
|
5
6
|
name: string;
|
|
@@ -54,6 +55,7 @@ export interface ICartesianReferenceLine {
|
|
|
54
55
|
name: string;
|
|
55
56
|
template: string;
|
|
56
57
|
variable_key: string;
|
|
58
|
+
orientation: 'horizontal' | 'vertical';
|
|
57
59
|
}
|
|
58
60
|
export interface ICartesianReferenceArea {
|
|
59
61
|
name: string;
|
|
@@ -72,6 +74,7 @@ export interface ICartesianChartConf {
|
|
|
72
74
|
x_axis: {
|
|
73
75
|
axisLabel: {
|
|
74
76
|
rotate: number;
|
|
77
|
+
formatter: IXAxisLabelFormatter;
|
|
75
78
|
};
|
|
76
79
|
};
|
|
77
80
|
series: ICartesianChartSeriesItem[];
|