@devtable/dashboard 14.32.1 → 14.33.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/common-echarts-fields/series-unit/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/series-unit/series-unit-field.d.ts +8 -0
- package/dist/components/plugins/common-echarts-fields/series-unit/types.d.ts +6 -0
- package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +2 -1
- package/dist/components/plugins/viz-components/cartesian/option/legend.d.ts +2 -1
- package/dist/components/plugins/viz-components/cartesian/option/series/series_items.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/type.d.ts +4 -2
- package/dist/dashboard.es.js +4289 -4203
- package/dist/dashboard.umd.js +90 -85
- package/dist/i18n/en.d.ts +8 -0
- package/dist/i18n/zh.d.ts +8 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SeriesUnitType } from './types';
|
|
3
|
+
interface Props {
|
|
4
|
+
value: SeriesUnitType;
|
|
5
|
+
onChange: (v: SeriesUnitType) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const SeriesUnitField: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<unknown>>;
|
|
8
|
+
export {};
|
|
@@ -27,7 +27,8 @@ export declare function v19(legacyConf: any): ICartesianChartConf;
|
|
|
27
27
|
export declare function v20(legacyConf: $TSFixMe, panelModel: PanelModelInstance): ICartesianChartConf;
|
|
28
28
|
export declare function v21(legacyConf: any): ICartesianChartConf;
|
|
29
29
|
export declare function v22(legacyConf: any): ICartesianChartConf;
|
|
30
|
+
export declare function v23(legacyConf: any): ICartesianChartConf;
|
|
30
31
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
31
32
|
configVersions(): void;
|
|
32
|
-
readonly VERSION =
|
|
33
|
+
readonly VERSION = 23;
|
|
33
34
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { ICartesianChartConf } from '../type';
|
|
1
2
|
import { IEchartsSeriesItem } from './utils/types';
|
|
2
|
-
export declare function getLegend(series: IEchartsSeriesItem[]): Record<string, any>;
|
|
3
|
+
export declare function getLegend(conf: ICartesianChartConf, series: IEchartsSeriesItem[]): Record<string, any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICartesianChartConf, ICartesianChartSeriesItem } from '../../type';
|
|
2
2
|
import { DataTemplateType } from './types';
|
|
3
|
-
export declare function getSeriesItemOrItems({ x_axis_data_key, x_axis }: ICartesianChartConf, { y_axis_data_key, yAxisIndex, label_position, name, group_by_key, order_in_group, aggregation_on_value, stack, color, display_name_on_line, symbolSize, hide_in_legend, areaStyle, ...rest }: ICartesianChartSeriesItem, dataTemplate: DataTemplateType[], data: TPanelData, variableValueMap: Record<string, string | number>, labelFormatters: Record<string, $TSFixMe>): any;
|
|
3
|
+
export declare function getSeriesItemOrItems({ x_axis_data_key, x_axis }: ICartesianChartConf, { y_axis_data_key, yAxisIndex, label_position, name, unit, group_by_key, order_in_group, aggregation_on_value, stack, color, display_name_on_line, symbolSize, hide_in_legend, areaStyle, ...rest }: ICartesianChartSeriesItem, dataTemplate: DataTemplateType[], data: TPanelData, variableValueMap: Record<string, string | number>, labelFormatters: Record<string, $TSFixMe>): any;
|
|
@@ -2,20 +2,22 @@ import { IAxisLabelOverflow } from '../../../../components/plugins/common-echart
|
|
|
2
2
|
import { IRegressionLineConf, IRegressionTransform } from '../../../../components/plugins/common-echarts-fields/regression-line';
|
|
3
3
|
import { AggregationType, TNumberFormat } from '../../../../utils';
|
|
4
4
|
import { IEchartsLabelPosition } from '../../common-echarts-fields/label-position';
|
|
5
|
+
import { EchartsLineAreaStyle } from '../../common-echarts-fields/line-area-style';
|
|
5
6
|
import { IEChartsLineType } from '../../common-echarts-fields/line-type';
|
|
6
7
|
import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
|
|
7
8
|
import { ChartingOrientation } from '../../common-echarts-fields/orientation';
|
|
9
|
+
import { SeriesOrder } from '../../common-echarts-fields/series-order';
|
|
10
|
+
import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
|
|
8
11
|
import { SymbolSize } from '../../common-echarts-fields/symbol-size';
|
|
9
12
|
import { IEchartsTooltipMetric } from '../../common-echarts-fields/tooltip-metric';
|
|
10
13
|
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
11
14
|
import { EChartsYAxisPosition } from '../../common-echarts-fields/y-axis-position';
|
|
12
15
|
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
13
|
-
import { EchartsLineAreaStyle } from '../../common-echarts-fields/line-area-style';
|
|
14
|
-
import { SeriesOrder } from '../../common-echarts-fields/series-order';
|
|
15
16
|
export interface ICartesianChartSeriesItem {
|
|
16
17
|
type: 'line' | 'bar' | 'scatter';
|
|
17
18
|
name: string;
|
|
18
19
|
display_name_on_line: boolean;
|
|
20
|
+
unit: SeriesUnitType;
|
|
19
21
|
showSymbol: boolean;
|
|
20
22
|
symbolSize: SymbolSize;
|
|
21
23
|
y_axis_data_key: TDataKey;
|