@devtable/dashboard 6.45.0 → 6.47.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.
@@ -9,6 +9,7 @@ interface IFilterTreeSelectWidget extends DefaultProps<MyComponentStylesNames, T
9
9
  value: string[];
10
10
  onChange: (v: string[]) => void;
11
11
  treeData: $TSFixMe;
12
+ disabled: boolean;
12
13
  }
13
- export declare const FilterTreeSelectWidget: ({ classNames, styles, unstyled, radius, style, label, value, onChange, treeData, }: IFilterTreeSelectWidget) => JSX.Element;
14
+ export declare const FilterTreeSelectWidget: ({ disabled, classNames, styles, unstyled, radius, style, label, value, onChange, treeData, }: IFilterTreeSelectWidget) => JSX.Element;
14
15
  export {};
@@ -1,7 +1,7 @@
1
1
  import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
2
2
  import { VizComponent } from '~/types/plugin';
3
3
  export declare class VizBoxplotChartMigrator extends VersionBasedMigrator {
4
- readonly VERSION = 4;
4
+ readonly VERSION = 5;
5
5
  configVersions(): void;
6
6
  }
7
7
  export declare const BoxplotChartVizComponent: VizComponent;
@@ -27,6 +27,9 @@ export declare function getOption({ config, data, variables }: IGetOption): {
27
27
  };
28
28
  axisLabel: {
29
29
  formatter: (value: string | number, index: number) => any;
30
+ width: number;
31
+ overflow: "truncate" | "break" | "breakAll";
32
+ ellipsis: "...";
30
33
  rotate: number;
31
34
  };
32
35
  }[];
@@ -1,5 +1,6 @@
1
1
  import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
2
2
  import { IXAxisLabelFormatter } from '../cartesian/panel/x-axis/x-axis-label-formatter/types';
3
+ import { IXAxisLabelOverflow } from '../cartesian/panel/x-axis/x-axis-label-overflow/types';
3
4
  export interface IBoxplotReferenceLine {
4
5
  name: string;
5
6
  template: string;
@@ -12,6 +13,7 @@ export interface IBoxplotChartConf {
12
13
  axisLabel: {
13
14
  rotate: number;
14
15
  formatter: IXAxisLabelFormatter;
16
+ overflow: IXAxisLabelOverflow;
15
17
  };
16
18
  };
17
19
  y_axis: {
@@ -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;
4
+ readonly VERSION = 5;
5
5
  configVersions(): void;
6
6
  }
7
7
  export declare const CartesianVizComponent: VizComponent;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IXAxisLabelOverflow } from './types';
3
+ interface IXAxisLabelOverflowField {
4
+ value: IXAxisLabelOverflow;
5
+ onChange: (v: IXAxisLabelOverflow) => void;
6
+ }
7
+ export declare const XAxisLabelOverflowField: import("react").ForwardRefExoticComponent<IXAxisLabelOverflowField & import("react").RefAttributes<unknown>>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { IOverflow } from './types';
3
+ interface IOverflowField {
4
+ sectionTitle?: string;
5
+ value: IOverflow;
6
+ onChange: (v: IOverflow) => void;
7
+ }
8
+ export declare const OverflowField: import("react").ForwardRefExoticComponent<IOverflowField & import("react").RefAttributes<unknown>>;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface IOverflow {
2
+ width: number;
3
+ overflow: 'truncate' | 'break' | 'breakAll';
4
+ ellipsis: '...';
5
+ }
6
+ export interface IXAxisLabelOverflow {
7
+ x_axis: IOverflow;
8
+ tooltip: IOverflow;
9
+ }
10
+ export declare const DEFAULT_X_AXIS_LABEL_OVERFLOW: IXAxisLabelOverflow;
@@ -0,0 +1,7 @@
1
+ import { IXAxisLabelOverflow } from './types';
2
+ export declare function getXAxisLabelOptionInXAxis(x_axis: IXAxisLabelOverflow['x_axis']): {
3
+ width: number;
4
+ overflow: "truncate" | "break" | "breakAll";
5
+ ellipsis: "...";
6
+ };
7
+ export declare function getXAxisLabelStyleInTooltip(tooltip: IXAxisLabelOverflow['tooltip']): string;
@@ -2,6 +2,7 @@ import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
2
2
  import { TEchartsDataZoomConfig } from './panel/echarts-zooming-field/types';
3
3
  import { TScatterSize } from './panel/scatter-size-select/types';
4
4
  import { IXAxisLabelFormatter } from './panel/x-axis/x-axis-label-formatter/types';
5
+ import { IXAxisLabelOverflow } from './panel/x-axis/x-axis-label-overflow/types';
5
6
  export interface ICartesianChartSeriesItem {
6
7
  type: 'line' | 'bar' | 'scatter';
7
8
  name: string;
@@ -77,6 +78,7 @@ export interface ICartesianChartConf {
77
78
  axisLabel: {
78
79
  rotate: number;
79
80
  formatter: IXAxisLabelFormatter;
81
+ overflow: IXAxisLabelOverflow;
80
82
  };
81
83
  };
82
84
  series: ICartesianChartSeriesItem[];
@@ -57,6 +57,9 @@ export declare function getOption(conf: IParetoChartConf, data: $TSFixMe[], _var
57
57
  };
58
58
  axisLabel: {
59
59
  formatter: (value: string | number, index: number) => any;
60
+ width: number;
61
+ overflow: "truncate" | "break" | "breakAll";
62
+ ellipsis: "...";
60
63
  rotate: number;
61
64
  };
62
65
  }[];
@@ -17,6 +17,9 @@ export declare function getXAxis(conf: IParetoChartConf): {
17
17
  };
18
18
  axisLabel: {
19
19
  formatter: (value: string | number, index: number) => any;
20
+ width: number;
21
+ overflow: "truncate" | "break" | "breakAll";
22
+ ellipsis: "...";
20
23
  rotate: number;
21
24
  };
22
25
  }[];
@@ -1,6 +1,7 @@
1
1
  import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
2
2
  import { TEchartsDataZoomConfig } from '../cartesian/panel/echarts-zooming-field/types';
3
3
  import { IXAxisLabelFormatter } from '../cartesian/panel/x-axis/x-axis-label-formatter/types';
4
+ import { IXAxisLabelOverflow } from '../cartesian/panel/x-axis/x-axis-label-overflow/types';
4
5
  export declare const DEFAULT_PARETO_MARK_LINE: {
5
6
  label_template: string;
6
7
  color: string;
@@ -12,6 +13,7 @@ export interface IParetoChartConf {
12
13
  axisLabel: {
13
14
  rotate: number;
14
15
  formatter: IXAxisLabelFormatter;
16
+ overflow: IXAxisLabelOverflow;
15
17
  };
16
18
  };
17
19
  data_key: string;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IScatterLabelOverflow } from '../../type';
3
+ interface IScatterLabelOverflowField {
4
+ value: IScatterLabelOverflow;
5
+ onChange: (v: IScatterLabelOverflow) => void;
6
+ }
7
+ export declare const ScatterLabelOverflowField: import("react").ForwardRefExoticComponent<IScatterLabelOverflowField & import("react").RefAttributes<unknown>>;
8
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { TEchartsDataZoomConfig } from '../cartesian/panel/echarts-zooming-field/types';
2
+ import { IOverflow } from '../cartesian/panel/x-axis/x-axis-label-overflow/types';
2
3
  import { ICartesianReferenceArea, ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
3
4
  import { TScatterSize } from './editors/scatter/scatter-size-select/types';
4
5
  import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
@@ -7,6 +8,10 @@ export interface IScatterTooltipMetric {
7
8
  data_key: string;
8
9
  name: string;
9
10
  }
11
+ export interface IScatterLabelOverflow {
12
+ label: IOverflow;
13
+ tooltip: IOverflow;
14
+ }
10
15
  export interface IScatterChartConf {
11
16
  x_axis: {
12
17
  data_key: string;
@@ -23,6 +28,7 @@ export interface IScatterChartConf {
23
28
  symbolSize: TScatterSize;
24
29
  label_position: string;
25
30
  color: string;
31
+ label_overflow: IScatterLabelOverflow;
26
32
  };
27
33
  stats: {
28
34
  templates: {
@@ -37,4 +43,8 @@ export interface IScatterChartConf {
37
43
  reference_areas: ICartesianReferenceArea[];
38
44
  dataZoom: TEchartsDataZoomConfig;
39
45
  }
46
+ export declare const DEFAULT_SCATTER_CHART_LABEL_OVERFLOW: {
47
+ label: IOverflow;
48
+ tooltip: IOverflow;
49
+ };
40
50
  export declare const DEFAULT_CONFIG: IScatterChartConf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "6.45.0",
3
+ "version": "6.47.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",