@devtable/dashboard 13.37.1 → 13.39.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.
Files changed (23) hide show
  1. package/dist/components/plugins/common-echarts-fields/line-area-style/index.d.ts +2 -0
  2. package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-origin-selector.d.ts +14 -0
  3. package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-style-field.d.ts +8 -0
  4. package/dist/components/plugins/common-echarts-fields/line-area-style/temp-color-input.d.ts +9 -0
  5. package/dist/components/plugins/common-echarts-fields/line-area-style/types.d.ts +11 -0
  6. package/dist/components/plugins/viz-components/cartesian/index.d.ts +0 -5
  7. package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +7 -1
  8. package/dist/components/plugins/viz-components/cartesian/option/series/series_items.d.ts +1 -1
  9. package/dist/components/plugins/viz-components/cartesian/type.d.ts +2 -0
  10. package/dist/components/plugins/viz-components/pie-chart/editors/index.d.ts +1 -0
  11. package/dist/components/plugins/viz-components/pie-chart/editors/radius-slider.d.ts +9 -0
  12. package/dist/components/plugins/viz-components/pie-chart/option/index.d.ts +1 -1
  13. package/dist/components/plugins/viz-components/pie-chart/option/series.d.ts +1 -1
  14. package/dist/components/plugins/viz-components/pie-chart/type.d.ts +1 -0
  15. package/dist/components/plugins/viz-components/pie-chart/viz-pie-chart-editor.d.ts +1 -1
  16. package/dist/dashboard.es.js +6075 -5850
  17. package/dist/dashboard.umd.js +83 -83
  18. package/dist/i18n/en.d.ts +26 -0
  19. package/dist/i18n/zh.d.ts +26 -0
  20. package/dist/stats.html +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/version.json +2 -2
  23. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export * from './line-area-style-field';
2
+ export * from './types';
@@ -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 {};
@@ -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 { PanelModelInstance } from '../../../../../dashboard-editor';
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;
@@ -0,0 +1 @@
1
+ export * from './radius-slider';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ type PropValue = [string, string];
3
+ type Props = {
4
+ value: PropValue;
5
+ onChange: (v: PropValue) => void;
6
+ label: string;
7
+ };
8
+ export declare const RadiusSlider: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<unknown>>;
9
+ export {};
@@ -17,7 +17,7 @@ export declare function getOption(conf: IPieChartConf, data: TPanelData, width:
17
17
  } | {
18
18
  type: string;
19
19
  name: string;
20
- radius: string[];
20
+ radius: [string, string];
21
21
  itemStyle: {
22
22
  color: ({ data }: {
23
23
  data: {
@@ -20,7 +20,7 @@ export declare function getSeries(conf: IPieChartConf, data: TPanelData, width:
20
20
  } | {
21
21
  type: string;
22
22
  name: string;
23
- radius: string[];
23
+ radius: [string, string];
24
24
  itemStyle: {
25
25
  color: ({ data }: {
26
26
  data: TDataItem;
@@ -2,5 +2,6 @@ export interface IPieChartConf {
2
2
  label_field: TDataKey;
3
3
  value_field: TDataKey;
4
4
  color_field: TDataKey;
5
+ radius: [string, string];
5
6
  }
6
7
  export declare const DEFAULT_CONFIG: IPieChartConf;
@@ -1,2 +1,2 @@
1
1
  import { VizConfigProps } from '../../../../types/plugin';
2
- export declare function VizPieChartEditor({ context }: VizConfigProps): import('./react/jsx-runtime').JSX.Element;
2
+ export declare function VizPieChartEditor(props: VizConfigProps): import('./react/jsx-runtime').JSX.Element | null;