@devtable/dashboard 8.16.0 → 8.18.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/dashboard.es.js +8210 -7652
  2. package/dist/dashboard.umd.js +63 -63
  3. package/dist/plugins/common-echarts-fields/label-position/index.d.ts +2 -0
  4. package/dist/plugins/common-echarts-fields/label-position/label-position-selector.d.ts +9 -0
  5. package/dist/plugins/common-echarts-fields/label-position/types.d.ts +1 -0
  6. package/dist/plugins/viz-components/funnel/editors/series/index.d.ts +10 -0
  7. package/dist/plugins/viz-components/funnel/editors/series/series-item.d.ts +12 -0
  8. package/dist/plugins/viz-components/funnel/index.d.ts +2 -0
  9. package/dist/plugins/viz-components/funnel/option/index.d.ts +41 -0
  10. package/dist/plugins/viz-components/funnel/option/series.d.ts +30 -0
  11. package/dist/plugins/viz-components/funnel/option/tooltip.d.ts +4 -0
  12. package/dist/plugins/viz-components/funnel/type.d.ts +26 -0
  13. package/dist/plugins/viz-components/funnel/viz-funnel-chart.d.ts +3 -0
  14. package/dist/plugins/viz-components/funnel/viz-funnel-editor.d.ts +3 -0
  15. package/dist/plugins/viz-components/radar-chart/editors/dimensions/dimension.d.ts +11 -0
  16. package/dist/plugins/viz-components/radar-chart/{panel/dimensions.d.ts → editors/dimensions/index.d.ts} +1 -1
  17. package/dist/plugins/viz-components/radar-chart/option/index.d.ts +3 -1
  18. package/dist/plugins/viz-components/radar-chart/type.d.ts +7 -0
  19. package/dist/plugins/viz-components/radar-chart/viz-radar-chart-editor.d.ts +3 -0
  20. package/dist/plugins/viz-components/sunburst/option/levels.d.ts +1 -1
  21. package/dist/plugins/viz-components/sunburst/type.d.ts +2 -2
  22. package/package.json +1 -1
  23. package/dist/plugins/viz-components/radar-chart/viz-radar-chart-panel.d.ts +0 -3
@@ -0,0 +1,2 @@
1
+ export * from './label-position-selector';
2
+ export * from './types';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { IEchartsLabelPosition } from './types';
3
+ interface ILabelPositionSelector {
4
+ label: string;
5
+ value: IEchartsLabelPosition;
6
+ onChange: (v: IEchartsLabelPosition) => void;
7
+ }
8
+ export declare const LabelPositionSelector: import("react").ForwardRefExoticComponent<ILabelPositionSelector & import("react").RefAttributes<HTMLInputElement>>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare type IEchartsLabelPosition = 'top' | 'left' | 'right' | 'bottom' | 'inside' | 'insideLeft' | 'insideRight' | 'insideTop' | 'insideBottom' | 'insideTopLeft' | 'insideBottomLeft' | 'insideTopRight' | 'insideBottomRight' | 'outside';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFormWatch } from 'react-hook-form';
3
+ import { IFunnelConf } from '../../type';
4
+ interface ISeriesField {
5
+ control: Control<IFunnelConf, $TSFixMe>;
6
+ watch: UseFormWatch<IFunnelConf>;
7
+ data: $TSFixMe[];
8
+ }
9
+ export declare const SeriesField: ({ control, watch, data }: ISeriesField) => JSX.Element;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ import { AnyObject } from '~/types';
4
+ import { IFunnelConf } from '../../type';
5
+ interface ISeriesItemField {
6
+ control: Control<IFunnelConf, $TSFixMe>;
7
+ data: AnyObject[];
8
+ index: number;
9
+ remove: (index: number) => void;
10
+ }
11
+ export declare const SeriesItemField: ({ control, data, index, remove }: ISeriesItemField) => JSX.Element;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import { VizComponent } from '../../../types/plugin';
2
+ export declare const FunnelVizComponent: VizComponent;
@@ -0,0 +1,41 @@
1
+ import { AnyObject } from '~/types';
2
+ import { IFunnelConf } from '../type';
3
+ export declare function getOption(conf: IFunnelConf, data: AnyObject[]): {
4
+ grid: {
5
+ top: number;
6
+ left: number;
7
+ right: number;
8
+ bottom: number;
9
+ };
10
+ tooltip: {
11
+ trigger: string;
12
+ };
13
+ series: {
14
+ label: {
15
+ width: number;
16
+ overflow: "truncate" | "break" | "breakAll";
17
+ ellipsis: "...";
18
+ show: boolean;
19
+ position: import("../../../common-echarts-fields/label-position").IEchartsLabelPosition;
20
+ };
21
+ data: {
22
+ name: any;
23
+ value: any;
24
+ }[];
25
+ id: string;
26
+ name: string;
27
+ min: number;
28
+ max: number;
29
+ minSize: string;
30
+ maxSize: string;
31
+ gap: number;
32
+ sort: "none" | "ascending" | "descending";
33
+ orient: "horizontal" | "vertical";
34
+ funnelAlign: "right" | "center" | "left";
35
+ type: string;
36
+ top: number;
37
+ left: number;
38
+ right: number;
39
+ bottom: number;
40
+ }[];
41
+ };
@@ -0,0 +1,30 @@
1
+ import { AnyObject } from '~/types';
2
+ import { IFunnelConf } from '../type';
3
+ export declare function getSeries(conf: IFunnelConf, data: AnyObject[]): {
4
+ label: {
5
+ width: number;
6
+ overflow: "truncate" | "break" | "breakAll";
7
+ ellipsis: "...";
8
+ show: boolean;
9
+ position: import("../../../common-echarts-fields/label-position").IEchartsLabelPosition;
10
+ };
11
+ data: {
12
+ name: any;
13
+ value: any;
14
+ }[];
15
+ id: string;
16
+ name: string;
17
+ min: number;
18
+ max: number;
19
+ minSize: string;
20
+ maxSize: string;
21
+ gap: number;
22
+ sort: "none" | "ascending" | "descending";
23
+ orient: "horizontal" | "vertical";
24
+ funnelAlign: "right" | "center" | "left";
25
+ type: string;
26
+ top: number;
27
+ left: number;
28
+ right: number;
29
+ bottom: number;
30
+ }[];
@@ -0,0 +1,4 @@
1
+ import { IFunnelConf } from '../type';
2
+ export declare function getTooltip(conf: IFunnelConf): {
3
+ trigger: string;
4
+ };
@@ -0,0 +1,26 @@
1
+ import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
2
+ import { IEchartsLabelPosition } from '~/plugins/common-echarts-fields/label-position';
3
+ export declare function getNewSeriesItem(id?: string): IFunnelSeriesItem;
4
+ export interface IFunnelSeriesItem {
5
+ id: string;
6
+ name: string;
7
+ level_name_data_key: string;
8
+ level_value_data_key: string;
9
+ min: number;
10
+ max: number;
11
+ minSize: string;
12
+ maxSize: string;
13
+ gap: number;
14
+ axisLabel: {
15
+ show: boolean;
16
+ position: IEchartsLabelPosition;
17
+ overflow: IAxisLabelOverflow;
18
+ };
19
+ sort: 'ascending' | 'descending' | 'none';
20
+ orient: 'horizontal' | 'vertical';
21
+ funnelAlign: 'left' | 'right' | 'center';
22
+ }
23
+ export interface IFunnelConf {
24
+ series: IFunnelSeriesItem[];
25
+ }
26
+ export declare const DEFAULT_CONFIG: IFunnelConf;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizViewProps } from '~/types/plugin';
3
+ export declare function VizFunnelChart({ context }: VizViewProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizConfigProps } from '../../../types/plugin';
3
+ export declare function VizFunnelEditor({ context }: VizConfigProps): JSX.Element;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
+ import { IRadarChartConf } from '../../type';
4
+ interface IDimensionField {
5
+ control: Control<IRadarChartConf, $TSFixMe>;
6
+ index: number;
7
+ remove: UseFieldArrayRemove;
8
+ data: $TSFixMe[];
9
+ }
10
+ export declare function DimensionField({ control, index, remove, data }: IDimensionField): JSX.Element;
11
+ export {};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
- import { IRadarChartConf } from '../type';
3
+ import { IRadarChartConf } from '../../type';
4
4
  interface IDimensionsField {
5
5
  control: Control<IRadarChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IRadarChartConf>;
@@ -28,7 +28,9 @@ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
28
28
  };
29
29
  legend: {
30
30
  show: boolean;
31
+ bottom: number;
31
32
  left: string;
33
+ type: string;
32
34
  };
33
35
  series: {
34
36
  type: string;
@@ -42,7 +44,7 @@ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
42
44
  };
43
45
  areaStyle: {
44
46
  opacity: number;
45
- };
47
+ } | undefined;
46
48
  label: {
47
49
  show: boolean;
48
50
  formatter: ({ dimensionIndex, value }: {
@@ -1,5 +1,6 @@
1
1
  import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
2
2
  export interface IRadarChartDimension {
3
+ id: string;
3
4
  name: string;
4
5
  data_key: string;
5
6
  max: number;
@@ -7,6 +8,12 @@ export interface IRadarChartDimension {
7
8
  }
8
9
  export interface IRadarChartConf {
9
10
  series_name_key: string;
11
+ background: {
12
+ enabled: boolean;
13
+ };
14
+ label: {
15
+ enabled: boolean;
16
+ };
10
17
  dimensions: IRadarChartDimension[];
11
18
  }
12
19
  export declare const DEFAULT_CONFIG: IRadarChartConf;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizConfigProps } from '~/types/plugin';
3
+ export declare function VizRadarChartEditor({ context }: VizConfigProps): JSX.Element;
@@ -5,7 +5,7 @@ export declare function getLevels(conf: ISunburstConf): {
5
5
  formatter: ({ treePathInfo, name, value }: IEchartsSunburstLabelFormatter) => string | undefined;
6
6
  rotate: "0" | "radial" | "tangential";
7
7
  align: "right" | "center" | "left";
8
- position: import("../type").TEchartsLabelPosition;
8
+ position: import("../../../common-echarts-fields/label-position").IEchartsLabelPosition;
9
9
  padding: number;
10
10
  };
11
11
  id: string;
@@ -1,4 +1,4 @@
1
- export declare type TEchartsLabelPosition = 'top' | 'left' | 'right' | 'bottom' | 'inside' | 'insideLeft' | 'insideRight' | 'insideTop' | 'insideBottom' | 'insideTopLeft' | 'insideBottomLeft' | 'insideTopRight' | 'insideBottomRight';
1
+ import { IEchartsLabelPosition } from '~/plugins/common-echarts-fields/label-position';
2
2
  export interface ISunburstLevelConf {
3
3
  id: string;
4
4
  r0: string;
@@ -7,7 +7,7 @@ export interface ISunburstLevelConf {
7
7
  show_label_tolerance: number;
8
8
  rotate: 'radial' | 'tangential' | '0';
9
9
  align: 'left' | 'center' | 'right';
10
- position: TEchartsLabelPosition;
10
+ position: IEchartsLabelPosition;
11
11
  padding: number;
12
12
  };
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.16.0",
3
+ "version": "8.18.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { VizConfigProps } from '~/types/plugin';
3
- export declare function VizRadarChartPanel({ context }: VizConfigProps): JSX.Element;