@devtable/dashboard 14.37.0 → 14.38.1

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 (22) hide show
  1. package/dist/components/plugins/viz-components/boxplot-chart/index.d.ts +1 -1
  2. package/dist/components/plugins/viz-components/boxplot-chart/type.d.ts +2 -0
  3. package/dist/components/plugins/viz-components/calendar-heatmap/migrators/index.d.ts +1 -0
  4. package/dist/components/plugins/viz-components/calendar-heatmap/type.d.ts +2 -0
  5. package/dist/components/plugins/viz-components/heatmap/migrators/index.d.ts +1 -0
  6. package/dist/components/plugins/viz-components/heatmap/type.d.ts +2 -0
  7. package/dist/components/plugins/viz-components/horizontal-bar-chart/option/legend.d.ts +2 -1
  8. package/dist/components/plugins/viz-components/horizontal-bar-chart/type.d.ts +2 -0
  9. package/dist/components/plugins/viz-components/merico-heatmap/migrators/index.d.ts +1 -0
  10. package/dist/components/plugins/viz-components/merico-heatmap/type.d.ts +2 -0
  11. package/dist/components/plugins/viz-components/pie-chart/migrators/index.d.ts +1 -0
  12. package/dist/components/plugins/viz-components/pie-chart/option/tooltip.d.ts +2 -1
  13. package/dist/components/plugins/viz-components/pie-chart/type.d.ts +2 -0
  14. package/dist/components/plugins/viz-components/scatter-chart/migrators/index.d.ts +1 -1
  15. package/dist/components/plugins/viz-components/scatter-chart/type.d.ts +3 -0
  16. package/dist/components/plugins/viz-components/sunburst/option/tooltip.d.ts +2 -1
  17. package/dist/components/plugins/viz-components/sunburst/type.d.ts +2 -0
  18. package/dist/dashboard.es.js +4717 -4507
  19. package/dist/dashboard.umd.js +126 -107
  20. package/dist/stats.html +1 -1
  21. package/dist/version.json +2 -2
  22. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { VersionBasedMigrator } from '../../../../components/plugins/plugin-data-migrator';
2
2
  import { VizComponent } from '../../../../types/plugin';
3
3
  export declare class VizBoxplotChartMigrator extends VersionBasedMigrator {
4
- readonly VERSION = 11;
4
+ readonly VERSION = 12;
5
5
  configVersions(): void;
6
6
  }
7
7
  export declare const BoxplotChartVizComponent: VizComponent;
@@ -5,6 +5,7 @@ import { TNumberFormat } from '../../../../utils';
5
5
  import { ChartingOrientation } from '../../common-echarts-fields/orientation';
6
6
  import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
7
7
  import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
8
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
8
9
  export interface IBoxplotReferenceLine {
9
10
  name: string;
10
11
  template: string;
@@ -33,6 +34,7 @@ export interface IBoxplotChartConf {
33
34
  name: string;
34
35
  data_key: TDataKey;
35
36
  label_formatter: TNumberFormat;
37
+ unit: SeriesUnitType;
36
38
  };
37
39
  tooltip: {
38
40
  metrics: IEchartsTooltipMetric[];
@@ -4,3 +4,4 @@ export declare function v2(legacyConf: any, { panelModel }: IMigrationEnv): ICal
4
4
  export declare function v3(legacyConf: any): ICalendarHeatmapConf;
5
5
  export declare function v4(legacyConf: any): ICalendarHeatmapConf;
6
6
  export declare function v5(legacyConf: any): ICalendarHeatmapConf;
7
+ export declare function v6(legacyConf: any): ICalendarHeatmapConf;
@@ -1,6 +1,7 @@
1
1
  import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
2
2
  import { TNumberFormat } from '../../../../utils';
3
3
  import { VisualMap } from '../../common-echarts-fields/visual-map';
4
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
4
5
  export interface ICalendarHeatmapConf {
5
6
  calendar: {
6
7
  data_key: TDataKey;
@@ -9,6 +10,7 @@ export interface ICalendarHeatmapConf {
9
10
  heat_block: {
10
11
  name: string;
11
12
  data_key: TDataKey;
13
+ unit: SeriesUnitType;
12
14
  value_formatter: TNumberFormat;
13
15
  };
14
16
  tooltip: {
@@ -6,3 +6,4 @@ export declare function v4(legacyConf: any): IHeatmapConf;
6
6
  export declare function v5(legacyConf: any): IHeatmapConf;
7
7
  export declare function v6(legacyConf: any): IHeatmapConf;
8
8
  export declare function v7(legacyConf: any): IHeatmapConf;
9
+ export declare function v8(legacyConf: any): IHeatmapConf;
@@ -4,6 +4,7 @@ import { TNumberFormat } from '../../../../utils';
4
4
  import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
5
5
  import { VisualMap } from '../../common-echarts-fields/visual-map';
6
6
  import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
7
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
7
8
  export type THeatmapPagination = {
8
9
  page_size: number;
9
10
  };
@@ -34,6 +35,7 @@ export interface IHeatmapConf {
34
35
  heat_block: {
35
36
  name: string;
36
37
  data_key: TDataKey;
38
+ unit: SeriesUnitType;
37
39
  value_formatter: TNumberFormat;
38
40
  label: {
39
41
  show: boolean;
@@ -1,2 +1,3 @@
1
+ import { IHorizontalBarChartConf } from '../type';
1
2
  import { IEchartsSeriesItem } from './utils/types';
2
- export declare function getLegend(series: IEchartsSeriesItem[]): Record<string, any>;
3
+ export declare function getLegend(conf: IHorizontalBarChartConf, series: IEchartsSeriesItem[]): Record<string, any>;
@@ -7,6 +7,7 @@ import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-alig
7
7
  import { ChartingOrientation } from '../../common-echarts-fields/orientation';
8
8
  import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
9
9
  import { EChartsXAxisPosition } from '../../common-echarts-fields/x-axis-position';
10
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
10
11
  export interface IHorizontalBarChartReferenceLine {
11
12
  id: string;
12
13
  name: string;
@@ -25,6 +26,7 @@ export interface IHorizontalBarChartSeriesItem {
25
26
  id: string;
26
27
  type: 'bar';
27
28
  name: string;
29
+ unit: SeriesUnitType;
28
30
  stack: string;
29
31
  color?: string;
30
32
  barGap?: '0%' | '-100%';
@@ -1,3 +1,4 @@
1
1
  import { TMericoHeatmapConf } from '../type';
2
2
  export declare function v2(legacyConf: any): TMericoHeatmapConf;
3
3
  export declare function v3(legacyConf: any): TMericoHeatmapConf;
4
+ export declare function v4(legacyConf: any): TMericoHeatmapConf;
@@ -4,6 +4,7 @@ import { TNumberFormat } from '../../../../utils';
4
4
  import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
5
5
  import { VisualMap } from '../../common-echarts-fields/visual-map';
6
6
  import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
7
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
7
8
  export type TMericoHeatmapConf = {
8
9
  x_axis: {
9
10
  name: string;
@@ -27,6 +28,7 @@ export type TMericoHeatmapConf = {
27
28
  heat_block: {
28
29
  name: string;
29
30
  data_key: TDataKey;
31
+ unit: SeriesUnitType;
30
32
  value_formatter: TNumberFormat;
31
33
  label: {
32
34
  show: boolean;
@@ -6,3 +6,4 @@ export declare function v4(legacyConf: any): IPieChartConf;
6
6
  export declare function v5(legacyConf: any): IPieChartConf;
7
7
  export declare function v6(legacyConf: any): IPieChartConf;
8
8
  export declare function v7(legacyConf: any): IPieChartConf;
9
+ export declare function v8(legacyConf: any): IPieChartConf;
@@ -1 +1,2 @@
1
- export declare function getTooltip(): any;
1
+ import { IPieChartConf } from '../type';
2
+ export declare function getTooltip(conf: IPieChartConf): any;
@@ -1,4 +1,5 @@
1
1
  import { SeriesOrder } from '../../common-echarts-fields/series-order';
2
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
2
3
  export type PieChartOthersSector = {
3
4
  label: string | null;
4
5
  threshold: number | null;
@@ -19,6 +20,7 @@ export interface IPieChartConf {
19
20
  color: {
20
21
  map: NameColorMapRow[];
21
22
  };
23
+ unit: SeriesUnitType;
22
24
  series_order: SeriesOrder;
23
25
  others_sector: PieChartOthersSector;
24
26
  }
@@ -1,5 +1,5 @@
1
1
  import { VersionBasedMigrator } from '../../../../../components/plugins/plugin-data-migrator';
2
2
  export declare class VizScatterChartMigrator extends VersionBasedMigrator {
3
3
  configVersions(): void;
4
- readonly VERSION = 12;
4
+ readonly VERSION = 13;
5
5
  }
@@ -7,6 +7,7 @@ import { SymbolSize } from '../../common-echarts-fields/symbol-size';
7
7
  import { ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
8
8
  import { IEchartsLabelPosition } from '../../common-echarts-fields/label-position';
9
9
  import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
10
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
10
11
  export interface IScatterLabelOverflow {
11
12
  label: IEchartsOverflow;
12
13
  tooltip: IEchartsOverflow;
@@ -20,11 +21,13 @@ export interface IScatterChartConf {
20
21
  formatter: IXAxisLabelFormatter;
21
22
  overflow: IAxisLabelOverflow;
22
23
  };
24
+ unit: SeriesUnitType;
23
25
  };
24
26
  y_axes: IYAxisConf[];
25
27
  scatter: {
26
28
  y_data_key: TDataKey;
27
29
  name_data_key: TDataKey;
30
+ unit: SeriesUnitType;
28
31
  symbolSize: SymbolSize;
29
32
  label_position: IEchartsLabelPosition;
30
33
  color: TSeriesColor;
@@ -1 +1,2 @@
1
- export declare function getTooltip(): any;
1
+ import { ISunburstConf } from '../type';
2
+ export declare function getTooltip(conf: ISunburstConf): any;
@@ -1,4 +1,5 @@
1
1
  import { IEchartsLabelPosition } from '../../../../components/plugins/common-echarts-fields/label-position';
2
+ import { SeriesUnitType } from '../../common-echarts-fields/series-unit';
2
3
  export interface ISunburstLevelConf {
3
4
  id: string;
4
5
  r0: string;
@@ -15,6 +16,7 @@ export interface ISunburstConf {
15
16
  label_key: TDataKey;
16
17
  value_key: TDataKey;
17
18
  group_key: TDataKey;
19
+ unit: SeriesUnitType;
18
20
  levels: ISunburstLevelConf[];
19
21
  }
20
22
  export declare const DEFAULT_CONFIG: ISunburstConf;