@devtable/dashboard 13.37.1 → 13.38.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/line-area-style/index.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-origin-selector.d.ts +14 -0
- package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-style-field.d.ts +8 -0
- package/dist/components/plugins/common-echarts-fields/line-area-style/temp-color-input.d.ts +9 -0
- package/dist/components/plugins/common-echarts-fields/line-area-style/types.d.ts +11 -0
- package/dist/components/plugins/viz-components/cartesian/index.d.ts +0 -5
- package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +7 -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 +2 -0
- package/dist/dashboard.es.js +5984 -5814
- package/dist/dashboard.umd.js +83 -83
- package/dist/i18n/en.d.ts +26 -0
- package/dist/i18n/zh.d.ts +26 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-origin-selector.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EchartsLineAreaStyle } from './types';
|
|
3
|
+
interface ItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const OriginSelectorItem: import('./react').ForwardRefExoticComponent<ItemProps & import('./react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
type Props = {
|
|
10
|
+
value: EchartsLineAreaStyle['origin'];
|
|
11
|
+
onChange: (v: EchartsLineAreaStyle['origin']) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const LineAreaOriginSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<unknown>>;
|
|
14
|
+
export {};
|
package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-style-field.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EchartsLineAreaStyle } from './types';
|
|
3
|
+
type Props = {
|
|
4
|
+
value: EchartsLineAreaStyle;
|
|
5
|
+
onChange: (v: EchartsLineAreaStyle) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const LineAreaStyleField: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<unknown>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Props = {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (v: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const TempColorInput: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<unknown>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type EchartsLineAreaStyle = {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
color: string;
|
|
4
|
+
origin: 'auto' | 'start' | 'end';
|
|
5
|
+
shadowBlur: number;
|
|
6
|
+
shadowColor: string;
|
|
7
|
+
shadowOffsetX: number;
|
|
8
|
+
shadowOffsetY: number;
|
|
9
|
+
opacity: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function getDefaultLineAreaStyle(): EchartsLineAreaStyle;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { VersionBasedMigrator } from '../../../../components/plugins/plugin-data-migrator';
|
|
2
1
|
import { VizComponent } from '../../../../types/plugin';
|
|
3
|
-
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
|
-
configVersions(): void;
|
|
5
|
-
readonly VERSION = 20;
|
|
6
|
-
}
|
|
7
2
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IMigrationEnv } from '../../../../../components/plugins';
|
|
2
|
+
import { PanelModelInstance } from '../../../../../dashboard-editor';
|
|
2
3
|
import { AnyObject } from '../../../../../types';
|
|
3
4
|
import { ITemplateVariable } from '../../../../../utils';
|
|
4
5
|
import { ICartesianChartConf } from '../type';
|
|
5
|
-
import {
|
|
6
|
+
import { VersionBasedMigrator } from '../../../../../components/plugins/plugin-data-migrator';
|
|
6
7
|
export declare function updateSchema2(legacyConf: ICartesianChartConf & {
|
|
7
8
|
variables: ITemplateVariable[];
|
|
8
9
|
}): AnyObject;
|
|
@@ -24,3 +25,8 @@ export declare function v17(legacyConf: any): ICartesianChartConf;
|
|
|
24
25
|
export declare function v18(legacyConf: any, { panelModel }: IMigrationEnv): ICartesianChartConf;
|
|
25
26
|
export declare function v19(legacyConf: any): ICartesianChartConf;
|
|
26
27
|
export declare function v20(legacyConf: $TSFixMe, panelModel: PanelModelInstance): ICartesianChartConf;
|
|
28
|
+
export declare function v21(legacyConf: any): ICartesianChartConf;
|
|
29
|
+
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
30
|
+
configVersions(): void;
|
|
31
|
+
readonly VERSION = 21;
|
|
32
|
+
}
|
|
@@ -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, aggregation_on_value, stack, color, display_name_on_line, symbolSize, hide_in_legend, ...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, group_by_key, 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;
|
|
@@ -10,6 +10,7 @@ import { IEchartsTooltipMetric } from '../../common-echarts-fields/tooltip-metri
|
|
|
10
10
|
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
11
11
|
import { EChartsYAxisPosition } from '../../common-echarts-fields/y-axis-position';
|
|
12
12
|
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
13
|
+
import { EchartsLineAreaStyle } from '../../common-echarts-fields/line-area-style';
|
|
13
14
|
export interface ICartesianChartSeriesItem {
|
|
14
15
|
type: 'line' | 'bar' | 'scatter';
|
|
15
16
|
name: string;
|
|
@@ -34,6 +35,7 @@ export interface ICartesianChartSeriesItem {
|
|
|
34
35
|
width: number;
|
|
35
36
|
};
|
|
36
37
|
hide_in_legend: boolean;
|
|
38
|
+
areaStyle: EchartsLineAreaStyle;
|
|
37
39
|
}
|
|
38
40
|
export interface IYAxisConf {
|
|
39
41
|
min: string;
|