@devtable/dashboard 7.15.0 → 7.17.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.
@@ -68,7 +68,7 @@ export declare function getOption(conf: IParetoChartConf, data: $TSFixMe[], _var
68
68
  nameGap: number;
69
69
  nameTextStyle: {
70
70
  fontWeight: string;
71
- align: string;
71
+ align: "left" | "right" | "center";
72
72
  };
73
73
  position: string;
74
74
  axisLine: {
@@ -86,7 +86,7 @@ export declare function getOption(conf: IParetoChartConf, data: $TSFixMe[], _var
86
86
  nameGap: number;
87
87
  nameTextStyle: {
88
88
  fontWeight: string;
89
- align: string;
89
+ align: "left" | "right" | "center";
90
90
  };
91
91
  position: string;
92
92
  axisLine: {
@@ -5,7 +5,7 @@ export declare function getYAxes(conf: IParetoChartConf, formatters: TParetoForm
5
5
  nameGap: number;
6
6
  nameTextStyle: {
7
7
  fontWeight: string;
8
- align: string;
8
+ align: "left" | "right" | "center";
9
9
  };
10
10
  position: string;
11
11
  axisLine: {
@@ -23,7 +23,7 @@ export declare function getYAxes(conf: IParetoChartConf, formatters: TParetoForm
23
23
  nameGap: number;
24
24
  nameTextStyle: {
25
25
  fontWeight: string;
26
- align: string;
26
+ align: "left" | "right" | "center";
27
27
  };
28
28
  position: string;
29
29
  axisLine: {
@@ -19,11 +19,13 @@ export interface IParetoChartConf {
19
19
  data_key: string;
20
20
  bar: {
21
21
  name: string;
22
+ nameAlignment: 'left' | 'center' | 'right';
22
23
  color: string;
23
24
  label_formatter: TNumbroFormat;
24
25
  };
25
26
  line: {
26
27
  name: string;
28
+ nameAlignment: 'left' | 'center' | 'right';
27
29
  color: string;
28
30
  };
29
31
  dataZoom: TEchartsDataZoomConfig;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { TSeriesColor_Dynamic } from './types';
3
+ interface IDynamicColorFunctionEditor {
4
+ value: TSeriesColor_Dynamic['func_content'];
5
+ onChange: (v: TSeriesColor_Dynamic['func_content']) => void;
6
+ }
7
+ export declare const DynamicColorFunctionEditor: ({ value, onChange }: IDynamicColorFunctionEditor) => JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { AnyObject } from '~/types';
3
+ import { TSeriesColor } from './types';
4
+ export interface IDynamicSeriesColorField {
5
+ value: TSeriesColor;
6
+ onChange: (v: TSeriesColor) => void;
7
+ data: AnyObject[];
8
+ }
9
+ export declare const DynamicSeriesColorField: ({ value, onChange, data }: IDynamicSeriesColorField) => JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { AnyObject } from '~/types';
2
+ import { TSeriesColor } from './types';
3
+ export declare function getSeriesColor({ type, ...rest }: TSeriesColor, variableValueMap: Record<string, string | number>): string | (({ value: rowData }: AnyObject) => any);
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { AnyObject } from '~/types';
3
+ import { TSeriesColor } from './types';
4
+ interface ISeriesColorSelect {
5
+ label?: string;
6
+ value: TSeriesColor;
7
+ onChange: (v: TSeriesColor) => void;
8
+ data: AnyObject[];
9
+ }
10
+ export declare const SeriesColorSelect: import("react").ForwardRefExoticComponent<ISeriesColorSelect & import("react").RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { TSeriesColor } from './types';
3
+ interface IStaticSeriesColorField {
4
+ value: TSeriesColor;
5
+ onChange: (v: TSeriesColor) => void;
6
+ }
7
+ export declare const StaticSeriesColorField: ({ value, onChange }: IStaticSeriesColorField) => JSX.Element | null;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare type TSeriesColor_Static = {
2
+ type: 'static';
3
+ color: string;
4
+ };
5
+ export declare type TSeriesColor_Dynamic = {
6
+ type: 'dynamic';
7
+ func_content: string;
8
+ };
9
+ export declare type TSeriesColor = TSeriesColor_Static | TSeriesColor_Dynamic;
10
+ export declare const DEFAULT_SERIES_COLOR: {
11
+ static: TSeriesColor_Static;
12
+ dynamic: TSeriesColor_Dynamic;
13
+ };
@@ -1,4 +1,5 @@
1
1
  import { TEchartsDataZoomConfig } from '../cartesian/panel/echarts-zooming-field/types';
2
+ import { TSeriesColor } from './editors/scatter/series-color-select/types';
2
3
  import { IOverflow } from '../cartesian/panel/x-axis/x-axis-label-overflow/types';
3
4
  import { ICartesianReferenceArea, ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
4
5
  import { TScatterSize } from './editors/scatter/scatter-size-select/types';
@@ -27,7 +28,7 @@ export interface IScatterChartConf {
27
28
  name_data_key: string;
28
29
  symbolSize: TScatterSize;
29
30
  label_position: string;
30
- color: string;
31
+ color: TSeriesColor;
31
32
  label_overflow: IScatterLabelOverflow;
32
33
  };
33
34
  stats: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "7.15.0",
3
+ "version": "7.17.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",