@devtable/dashboard 8.33.0 → 8.35.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 (60) hide show
  1. package/dist/dashboard.es.js +8163 -7904
  2. package/dist/dashboard.umd.js +70 -70
  3. package/dist/global.d.ts +2 -0
  4. package/dist/panel/viz/index.d.ts +1 -1
  5. package/dist/plugins/common-echarts-fields/reference-area/field.d.ts +16 -0
  6. package/dist/plugins/common-echarts-fields/reference-area/option.d.ts +34 -0
  7. package/dist/plugins/common-echarts-fields/reference-area/types.d.ts +25 -0
  8. package/dist/plugins/viz-components/calendar-heatmap/editors/calendar/index.d.ts +1 -1
  9. package/dist/plugins/viz-components/calendar-heatmap/editors/heat_block/index.d.ts +1 -1
  10. package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/index.d.ts +1 -1
  11. package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metric.d.ts +1 -1
  12. package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metrics.d.ts +1 -1
  13. package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
  14. package/dist/plugins/viz-components/cartesian/option/regression.d.ts +1 -1
  15. package/dist/plugins/viz-components/cartesian/panel/regressions/index.d.ts +1 -1
  16. package/dist/plugins/viz-components/cartesian/panel/regressions/regression-item.d.ts +1 -1
  17. package/dist/plugins/viz-components/cartesian/panel/series/index.d.ts +1 -1
  18. package/dist/plugins/viz-components/cartesian/panel/series/series-item.d.ts +1 -1
  19. package/dist/plugins/viz-components/cartesian/panel/stats/index.d.ts +1 -1
  20. package/dist/plugins/viz-components/cartesian/panel/x-axis/index.d.ts +1 -1
  21. package/dist/plugins/viz-components/funnel/editors/series/index.d.ts +1 -1
  22. package/dist/plugins/viz-components/heatmap/editors/heat_block/index.d.ts +1 -1
  23. package/dist/plugins/viz-components/heatmap/editors/tooltip/index.d.ts +1 -1
  24. package/dist/plugins/viz-components/heatmap/editors/tooltip/metric.d.ts +1 -1
  25. package/dist/plugins/viz-components/heatmap/editors/tooltip/metrics.d.ts +1 -1
  26. package/dist/plugins/viz-components/heatmap/editors/x-axis/index.d.ts +1 -1
  27. package/dist/plugins/viz-components/heatmap/option/index.d.ts +1 -1
  28. package/dist/plugins/viz-components/horizontal-bar-chart/editors/series/index.d.ts +1 -1
  29. package/dist/plugins/viz-components/horizontal-bar-chart/option/index.d.ts +1 -1
  30. package/dist/plugins/viz-components/pareto-chart/option/index.d.ts +1 -1
  31. package/dist/plugins/viz-components/radar-chart/editors/dimensions/dimension.d.ts +1 -1
  32. package/dist/plugins/viz-components/radar-chart/editors/dimensions/index.d.ts +1 -1
  33. package/dist/plugins/viz-components/radar-chart/option/index.d.ts +1 -1
  34. package/dist/plugins/viz-components/regression-chart/option/index.d.ts +1 -1
  35. package/dist/plugins/viz-components/regression-chart/option/regression-expression.d.ts +1 -1
  36. package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +1 -1
  37. package/dist/plugins/viz-components/scatter-chart/editors/reference-areas/index.d.ts +11 -0
  38. package/dist/plugins/viz-components/scatter-chart/editors/scatter/index.d.ts +1 -1
  39. package/dist/plugins/viz-components/scatter-chart/editors/stats/index.d.ts +1 -1
  40. package/dist/plugins/viz-components/scatter-chart/editors/tooltip/index.d.ts +1 -1
  41. package/dist/plugins/viz-components/scatter-chart/editors/tooltip/metric.d.ts +1 -1
  42. package/dist/plugins/viz-components/scatter-chart/editors/tooltip/metrics.d.ts +1 -1
  43. package/dist/plugins/viz-components/scatter-chart/editors/x-axis/index.d.ts +1 -1
  44. package/dist/plugins/viz-components/scatter-chart/option/index.d.ts +1 -1
  45. package/dist/plugins/viz-components/scatter-chart/option/series.d.ts +1 -1
  46. package/dist/plugins/viz-components/scatter-chart/type.d.ts +4 -3
  47. package/dist/plugins/viz-components/sunburst/editors/data-field.d.ts +1 -1
  48. package/dist/plugins/viz-components/sunburst/editors/levels/index.d.ts +1 -1
  49. package/dist/plugins/viz-components/sunburst/editors/levels/level.d.ts +1 -1
  50. package/dist/plugins/viz-components/sunburst/option/index.d.ts +1 -1
  51. package/dist/plugins/viz-components/table/editors/styling.d.ts +1 -1
  52. package/dist/utils/download.d.ts +2 -2
  53. package/dist/utils/error-boundary.d.ts +1 -1
  54. package/dist/utils/template/editor/variable-field.d.ts +1 -1
  55. package/package.json +1 -1
  56. /package/dist/{definition-editor → components}/minimal-monaco-editor.d.ts +0 -0
  57. /package/dist/{definition-editor → main/dashboard-editor/settings/content/edit-query/query-editor-form}/select-data-source.d.ts +0 -0
  58. /package/dist/{definition-editor → main/dashboard-editor/settings/content/edit-query/query-editor-form/tabs}/preview-sql-in-monaco-editor.d.ts +0 -0
  59. /package/dist/{definition-editor/sql-snippet-editor → main/dashboard-editor/settings/content/edit-sql-snippet}/item-editor.d.ts +0 -0
  60. /package/dist/{definition-editor/sql-snippet-editor → main/dashboard-editor/settings/content/edit-sql-snippet}/preview-snippet.d.ts +0 -0
package/dist/global.d.ts CHANGED
@@ -10,3 +10,5 @@ interface IDashboardConfig {
10
10
  }
11
11
 
12
12
  type TFunctionString = string;
13
+
14
+ type TVizData = Record<string, $TSFixMe>[];
@@ -3,7 +3,7 @@ import { QueryModelInstance } from '~/model';
3
3
  import { IVizConfig } from '../../types';
4
4
  interface IViz {
5
5
  viz: IVizConfig;
6
- data: $TSFixMe;
6
+ data: TVizData;
7
7
  loading: boolean;
8
8
  height: string;
9
9
  error?: string;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { IEchartsReferenceArea } from './types';
3
+ declare type SelectorOptionType = {
4
+ label: string;
5
+ value: string;
6
+ description?: string;
7
+ };
8
+ interface IReferenceAreaField {
9
+ value: IEchartsReferenceArea;
10
+ onChange: (v: IEchartsReferenceArea) => void;
11
+ variableOptions: SelectorOptionType[];
12
+ xAxisOptions?: SelectorOptionType[];
13
+ yAxisOptions?: SelectorOptionType[];
14
+ }
15
+ export declare const ReferenceAreaField: import("react").ForwardRefExoticComponent<IReferenceAreaField & import("react").RefAttributes<unknown>>;
16
+ export {};
@@ -0,0 +1,34 @@
1
+ import { IEchartsReferenceArea } from './types';
2
+ interface IProps {
3
+ reference_areas: IEchartsReferenceArea[];
4
+ variableValueMap: Record<string, string | number>;
5
+ }
6
+ export declare function getReferenceAreasSeries({ reference_areas, variableValueMap }: IProps): {
7
+ type: string;
8
+ name: string;
9
+ silent: boolean;
10
+ data: never[];
11
+ markArea: {
12
+ data: ({
13
+ name: string;
14
+ value: string;
15
+ itemStyle: {
16
+ color: string;
17
+ };
18
+ label: {
19
+ position: import("../label-position").IEchartsLabelPosition;
20
+ color: string;
21
+ };
22
+ xAxis: string | number | undefined;
23
+ yAxis: string | number | undefined;
24
+ } | {
25
+ xAxis: string | number | undefined;
26
+ yAxis: string | number | undefined;
27
+ name?: undefined;
28
+ value?: undefined;
29
+ itemStyle?: undefined;
30
+ label?: undefined;
31
+ })[][];
32
+ };
33
+ };
34
+ export {};
@@ -0,0 +1,25 @@
1
+ import { IEchartsLabelPosition } from '../label-position';
2
+ export interface IEchartsReferenceArea {
3
+ id: string;
4
+ content: {
5
+ text: string;
6
+ };
7
+ itemStyle: {
8
+ color: string;
9
+ };
10
+ label: {
11
+ position: IEchartsLabelPosition;
12
+ color: string;
13
+ };
14
+ leftBottomPoint: {
15
+ x_data_key: string;
16
+ y_data_key: string;
17
+ };
18
+ rightTopPoint: {
19
+ x_data_key: string;
20
+ y_data_key: string;
21
+ };
22
+ xAxisIndex: string;
23
+ yAxisIndex: string;
24
+ }
25
+ export declare function getNewReferenceArea(): IEchartsReferenceArea;
@@ -4,7 +4,7 @@ import { ICalendarHeatmapConf } from '../../type';
4
4
  interface ICalendarField {
5
5
  control: Control<ICalendarHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICalendarHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function CalendarField({ data, control, watch }: ICalendarField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { ICalendarHeatmapConf } from '../../type';
4
4
  interface IHeatBlockField {
5
5
  control: Control<ICalendarHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICalendarHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function HeatBlockField({ data, control, watch }: IHeatBlockField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { ICalendarHeatmapConf } from '../../type';
4
4
  interface ITooltipField {
5
5
  control: Control<ICalendarHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICalendarHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function TooltipField({ data, control, watch }: ITooltipField): JSX.Element;
10
10
  export {};
@@ -3,7 +3,7 @@ import { Control } from 'react-hook-form';
3
3
  import { ICalendarHeatmapConf } from '../../type';
4
4
  interface ITooltipMetricField {
5
5
  control: Control<ICalendarHeatmapConf, $TSFixMe>;
6
- data: $TSFixMe[];
6
+ data: TVizData;
7
7
  index: number;
8
8
  remove: (index: number) => void;
9
9
  }
@@ -4,7 +4,7 @@ import { ICalendarHeatmapConf } from '../../type';
4
4
  interface ITooltipMetricsField {
5
5
  control: Control<ICalendarHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICalendarHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  import { ITemplateVariable } from '~/utils/template';
2
2
  import { ICartesianChartConf } from '../type';
3
- export declare function getOption(conf: ICartesianChartConf, data: $TSFixMe[], variables: ITemplateVariable[]): any;
3
+ export declare function getOption(conf: ICartesianChartConf, data: TVizData, variables: ITemplateVariable[]): any;
@@ -12,7 +12,7 @@ interface IRegressionSeriesItem extends IRegressionLineConf {
12
12
  showSymbol: boolean;
13
13
  tooltip: Record<string, $TSFixMe>;
14
14
  }
15
- export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: $TSFixMe[]): {
15
+ export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: TVizData): {
16
16
  regressionDataSets: IRegressionDataSetItem[];
17
17
  regressionSeries: IRegressionSeriesItem[];
18
18
  regressionXAxes: Record<string, any>[];
@@ -4,7 +4,7 @@ import { ICartesianChartConf } from '../../type';
4
4
  interface IRegressionsField {
5
5
  control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function RegressionsField({ control, watch, data }: IRegressionsField): JSX.Element;
10
10
  export {};
@@ -10,7 +10,7 @@ interface IRegressionField {
10
10
  label: string;
11
11
  value: string;
12
12
  }[];
13
- data: $TSFixMe[];
13
+ data: TVizData;
14
14
  }
15
15
  export declare function RegressionField({ control, regressionItem, index, remove, yAxisOptions, data }: IRegressionField): JSX.Element;
16
16
  export {};
@@ -4,7 +4,7 @@ import { ICartesianChartConf } from '../../type';
4
4
  interface ISeriesField {
5
5
  control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function SeriesField({ control, watch, data }: ISeriesField): JSX.Element;
10
10
  export {};
@@ -10,7 +10,7 @@ interface ISeriesItemField {
10
10
  label: string;
11
11
  value: string;
12
12
  }[];
13
- data: $TSFixMe[];
13
+ data: TVizData;
14
14
  }
15
15
  export declare function SeriesItemField({ control, index, remove, seriesItem, yAxisOptions, data }: ISeriesItemField): JSX.Element;
16
16
  export {};
@@ -4,7 +4,7 @@ import { ICartesianChartConf } from '../../type';
4
4
  interface IVariablesField {
5
5
  control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function StatsField({ control, watch }: IVariablesField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { ICartesianChartConf } from '../../type';
4
4
  interface IXAxisField {
5
5
  control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function XAxisField({ data, control, watch }: IXAxisField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IFunnelConf } from '../../type';
4
4
  interface ISeriesField {
5
5
  control: Control<IFunnelConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IFunnelConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare const SeriesField: ({ control, watch, data }: ISeriesField) => JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IHeatmapConf } from '../../type';
4
4
  interface IHeatBlockField {
5
5
  control: Control<IHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function HeatBlockField({ data, control, watch }: IHeatBlockField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IHeatmapConf } from '../../type';
4
4
  interface ITooltipField {
5
5
  control: Control<IHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function TooltipField({ data, control, watch }: ITooltipField): JSX.Element;
10
10
  export {};
@@ -3,7 +3,7 @@ import { Control } from 'react-hook-form';
3
3
  import { IHeatmapConf } from '../../type';
4
4
  interface ITooltipMetricField {
5
5
  control: Control<IHeatmapConf, $TSFixMe>;
6
- data: $TSFixMe[];
6
+ data: TVizData;
7
7
  index: number;
8
8
  remove: (index: number) => void;
9
9
  }
@@ -4,7 +4,7 @@ import { IHeatmapConf } from '../../type';
4
4
  interface ITooltipMetricsField {
5
5
  control: Control<IHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IHeatmapConf } from '../../type';
4
4
  interface IXAxisField {
5
5
  control: Control<IHeatmapConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IHeatmapConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function XAxisField({ data, control, watch }: IXAxisField): JSX.Element;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  import { ITemplateVariable } from '~/utils/template';
2
2
  import { IHeatmapConf } from '../type';
3
- export declare function getOption(conf: IHeatmapConf, data: $TSFixMe[], variables: ITemplateVariable[]): any;
3
+ export declare function getOption(conf: IHeatmapConf, data: TVizData, variables: ITemplateVariable[]): any;
@@ -4,7 +4,7 @@ import { IHorizontalBarChartConf } from '../../type';
4
4
  interface ISeriesField {
5
5
  control: Control<IHorizontalBarChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IHorizontalBarChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function SeriesField({ control, watch, data }: ISeriesField): JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ITemplateVariable } from '~/utils/template';
2
2
  import { IHorizontalBarChartConf } from '../type';
3
- export declare function getOption(conf: IHorizontalBarChartConf, data: $TSFixMe[], variables: ITemplateVariable[]): {
3
+ export declare function getOption(conf: IHorizontalBarChartConf, data: TVizData, variables: ITemplateVariable[]): {
4
4
  xAxis: {
5
5
  type: string;
6
6
  min: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { ITemplateVariable } from '~/utils/template';
2
2
  import { IParetoChartConf } from '../type';
3
- export declare function getOption(conf: IParetoChartConf, data: $TSFixMe[], _variables: ITemplateVariable[]): {
3
+ export declare function getOption(conf: IParetoChartConf, data: TVizData, _variables: ITemplateVariable[]): {
4
4
  dataZoom: ({
5
5
  type: string;
6
6
  xAxisIndex: number[];
@@ -5,7 +5,7 @@ interface IDimensionField {
5
5
  control: Control<IRadarChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  remove: UseFieldArrayRemove;
8
- data: $TSFixMe[];
8
+ data: TVizData;
9
9
  }
10
10
  export declare function DimensionField({ control, index, remove, data }: IDimensionField): JSX.Element;
11
11
  export {};
@@ -4,7 +4,7 @@ import { IRadarChartConf } from '../../type';
4
4
  interface IDimensionsField {
5
5
  control: Control<IRadarChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IRadarChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function DimensionsField({ control, watch, data }: IDimensionsField): JSX.Element;
10
10
  export {};
@@ -1,5 +1,5 @@
1
1
  import { IRadarChartConf } from '../type';
2
- export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
2
+ export declare function getOption(conf: IRadarChartConf, data: TVizData): {
3
3
  legend: {
4
4
  show: boolean;
5
5
  bottom: number;
@@ -1,2 +1,2 @@
1
1
  import { IRegressionChartConf } from '../type';
2
- export declare function getOption(conf: IRegressionChartConf, data: $TSFixMe[]): any;
2
+ export declare function getOption(conf: IRegressionChartConf, data: TVizData): any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IRegressionChartConf } from '../type';
3
- export declare function getRegressionDescription(data: $TSFixMe[], conf?: IRegressionChartConf): {
3
+ export declare function getRegressionDescription(data: TVizData, conf?: IRegressionChartConf): {
4
4
  expression: JSX.Element;
5
5
  rSquared: any;
6
6
  adjustedRSquared: number;
@@ -8,7 +8,7 @@ import { IRegressionChartConf } from './type';
8
8
  interface IRegressionField {
9
9
  control: Control<IRegressionChartConf, $TSFixMe>;
10
10
  watch: UseFormWatch<IRegressionChartConf>;
11
- data: $TSFixMe[];
11
+ data: TVizData;
12
12
  }
13
13
  export declare function RegressionField({ control, watch, data }: IRegressionField): JSX.Element;
14
14
  export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFormWatch } from 'react-hook-form';
3
+ import { ITemplateVariable } from '~/utils/template';
4
+ import { IScatterChartConf } from '../../type';
5
+ interface IReferenceAreasField {
6
+ control: Control<IScatterChartConf, $TSFixMe>;
7
+ watch: UseFormWatch<IScatterChartConf>;
8
+ variables: ITemplateVariable[];
9
+ }
10
+ export declare function ReferenceAreasField({ control, watch, variables }: IReferenceAreasField): JSX.Element;
11
+ export {};
@@ -4,7 +4,7 @@ import { IScatterChartConf } from '../../type';
4
4
  interface IScatterField {
5
5
  control: Control<IScatterChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IScatterChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function ScatterField({ data, control, watch }: IScatterField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IScatterChartConf } from '../../type';
4
4
  interface IVariablesField {
5
5
  control: Control<IScatterChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IScatterChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function StatsField({ control, watch }: IVariablesField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IScatterChartConf } from '../../type';
4
4
  interface ITooltipField {
5
5
  control: Control<IScatterChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IScatterChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function TooltipField({ data, control, watch }: ITooltipField): JSX.Element;
10
10
  export {};
@@ -3,7 +3,7 @@ import { Control } from 'react-hook-form';
3
3
  import { IScatterChartConf } from '../../type';
4
4
  interface ITooltipMetricField {
5
5
  control: Control<IScatterChartConf, $TSFixMe>;
6
- data: $TSFixMe[];
6
+ data: TVizData;
7
7
  index: number;
8
8
  remove: (index: number) => void;
9
9
  }
@@ -4,7 +4,7 @@ import { IScatterChartConf } from '../../type';
4
4
  interface ITooltipMetricsField {
5
5
  control: Control<IScatterChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IScatterChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { IScatterChartConf } from '../../type';
4
4
  interface IXAxisField {
5
5
  control: Control<IScatterChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IScatterChartConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function XAxisField({ data, control, watch }: IXAxisField): JSX.Element;
10
10
  export {};
@@ -1,3 +1,3 @@
1
1
  import { IScatterChartConf } from '../type';
2
2
  import { ITemplateVariable } from '~/utils/template';
3
- export declare function getOption(conf: IScatterChartConf, data: $TSFixMe[], variables: ITemplateVariable[]): any;
3
+ export declare function getOption(conf: IScatterChartConf, data: TVizData, variables: ITemplateVariable[]): any;
@@ -1,4 +1,4 @@
1
1
  import { AnyObject } from '~/types';
2
2
  import { ITemplateVariable } from '~/utils/template';
3
3
  import { IScatterChartConf } from '../type';
4
- export declare function getSeries(conf: IScatterChartConf, xAxisData: $TSFixMe[], valueTypedXAxis: boolean, data: $TSFixMe[], labelFormatters: Record<string, $TSFixMe>, variables: ITemplateVariable[], variableValueMap: Record<string, string | number>): AnyObject[];
4
+ export declare function getSeries(conf: IScatterChartConf, xAxisData: AnyObject[], valueTypedXAxis: boolean, data: TVizData, labelFormatters: Record<string, $TSFixMe>, variables: ITemplateVariable[], variableValueMap: Record<string, string | number>): AnyObject[];
@@ -1,10 +1,11 @@
1
1
  import { TEchartsDataZoomConfig } from '../cartesian/panel/echarts-zooming-field/types';
2
2
  import { TSeriesColor } from './editors/scatter/series-color-select/types';
3
3
  import { IEchartsOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
4
- import { ICartesianReferenceArea, ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
4
+ import { IEchartsReferenceArea } from '~/plugins/common-echarts-fields/reference-area/types';
5
+ import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
6
+ import { ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
5
7
  import { TScatterSize } from './editors/scatter/scatter-size-select/types';
6
8
  import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
7
- import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
8
9
  export interface IScatterLabelOverflow {
9
10
  label: IEchartsOverflow;
10
11
  tooltip: IEchartsOverflow;
@@ -37,7 +38,7 @@ export interface IScatterChartConf {
37
38
  metrics: IEchartsTooltipMetric[];
38
39
  };
39
40
  reference_lines: ICartesianReferenceLine[];
40
- reference_areas: ICartesianReferenceArea[];
41
+ reference_areas: IEchartsReferenceArea[];
41
42
  dataZoom: TEchartsDataZoomConfig;
42
43
  }
43
44
  export declare const DEFAULT_SCATTER_CHART_LABEL_OVERFLOW: {
@@ -4,7 +4,7 @@ import { ISunburstConf } from '../type';
4
4
  interface IDataField {
5
5
  control: Control<ISunburstConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ISunburstConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function DataField({ data, control, watch }: IDataField): JSX.Element;
10
10
  export {};
@@ -4,7 +4,7 @@ import { ISunburstConf } from '../../type';
4
4
  interface ILevelsField {
5
5
  control: Control<ISunburstConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ISunburstConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare const LevelsField: ({ control, watch, data }: ILevelsField) => JSX.Element;
10
10
  export {};
@@ -3,7 +3,7 @@ import { Control } from 'react-hook-form';
3
3
  import { ISunburstConf } from '../../type';
4
4
  interface ILevelField {
5
5
  control: Control<ISunburstConf, $TSFixMe>;
6
- data: $TSFixMe[];
6
+ data: TVizData;
7
7
  index: number;
8
8
  remove: (index: number) => void;
9
9
  }
@@ -1,3 +1,3 @@
1
1
  import { ITemplateVariable } from '~/utils/template';
2
2
  import { ISunburstConf } from '../type';
3
- export declare function getOption(conf: ISunburstConf, data: $TSFixMe[], variables: ITemplateVariable[]): any;
3
+ export declare function getOption(conf: ISunburstConf, data: TVizData, variables: ITemplateVariable[]): any;
@@ -4,7 +4,7 @@ import { ITableConf } from '../type';
4
4
  interface IStylingFields {
5
5
  control: Control<ITableConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ITableConf>;
7
- data: $TSFixMe[];
7
+ data: TVizData;
8
8
  }
9
9
  export declare function StylingFields({ control, watch, data }: IStylingFields): JSX.Element;
10
10
  export {};
@@ -2,6 +2,6 @@ export declare function downloadCSV(id: string, csv: string): void;
2
2
  export declare function downloadJSON(name: string, json: string): void;
3
3
  export declare function downloadDataListAsZip(idDataList: Array<{
4
4
  id: string;
5
- data: $TSFixMe[];
5
+ data: TVizData;
6
6
  }>): void;
7
- export declare function makeCSV(data: $TSFixMe | $TSFixMe[]): string;
7
+ export declare function makeCSV(data: TVizData): string;
@@ -8,6 +8,6 @@ declare type StateType = {
8
8
  export declare class ErrorBoundary extends React.Component<PropType, StateType> {
9
9
  constructor(props: PropType);
10
10
  componentDidCatch(error: $TSFixMe): void;
11
- render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
11
+ render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
12
12
  }
13
13
  export {};
@@ -3,7 +3,7 @@ import { ITemplateVariable } from '../types';
3
3
  interface ITemplateVariableField {
4
4
  value: ITemplateVariable;
5
5
  onChange: (v: ITemplateVariable) => void;
6
- data: $TSFixMe[];
6
+ data: TVizData;
7
7
  withStyle?: boolean;
8
8
  }
9
9
  export declare const TemplateVariableField: React.ForwardRefExoticComponent<ITemplateVariableField & React.RefAttributes<unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.33.0",
3
+ "version": "8.35.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",