@devtable/dashboard 11.5.3 → 11.6.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.
@@ -0,0 +1,8 @@
1
+ import { Control, UseFormWatch } from 'react-hook-form';
2
+ import { ICartesianChartConf } from '../../type';
3
+ interface ITooltipField {
4
+ control: Control<ICartesianChartConf, $TSFixMe>;
5
+ watch: UseFormWatch<ICartesianChartConf>;
6
+ }
7
+ export declare function TooltipField({ control, watch }: ITooltipField): import('./react/jsx-runtime').JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Control } from 'react-hook-form';
2
+ import { ICartesianChartConf } from '../../type';
3
+ interface ITooltipMetricField {
4
+ control: Control<ICartesianChartConf, $TSFixMe>;
5
+ index: number;
6
+ remove: (index: number) => void;
7
+ }
8
+ export declare const TooltipMetricField: ({ control, index, remove }: ITooltipMetricField) => import('./react/jsx-runtime').JSX.Element;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Control, UseFormWatch } from 'react-hook-form';
2
+ import { ICartesianChartConf } from '../../type';
3
+ interface ITooltipMetricsField {
4
+ control: Control<ICartesianChartConf, $TSFixMe>;
5
+ watch: UseFormWatch<ICartesianChartConf>;
6
+ }
7
+ export declare const TooltipMetricsField: ({ control, watch }: ITooltipMetricsField) => import('./react/jsx-runtime').JSX.Element;
8
+ export {};
@@ -2,6 +2,6 @@ import { VersionBasedMigrator } from '../../../../components/plugins/plugin-data
2
2
  import { VizComponent } from '../../../../types/plugin';
3
3
  export declare class VizCartesianMigrator extends VersionBasedMigrator {
4
4
  configVersions(): void;
5
- readonly VERSION = 18;
5
+ readonly VERSION = 19;
6
6
  }
7
7
  export declare const CartesianVizComponent: VizComponent;
@@ -21,3 +21,4 @@ export declare function v15(legacyConf: any): ICartesianChartConf;
21
21
  export declare function v16(legacyConf: any): ICartesianChartConf;
22
22
  export declare function v17(legacyConf: any): ICartesianChartConf;
23
23
  export declare function v18(legacyConf: any, { panelModel }: IMigrationEnv): ICartesianChartConf;
24
+ export declare function v19(legacyConf: any): ICartesianChartConf;
@@ -1,3 +1,3 @@
1
1
  import { ICartesianChartConf } from '../type';
2
2
  import { IEchartsSeriesItem } from './utils/types';
3
- export declare function getTooltip(conf: ICartesianChartConf, series: IEchartsSeriesItem[], labelFormatters: Record<string, (p: $TSFixMe) => string>): any;
3
+ export declare function getTooltip(conf: ICartesianChartConf, data: TPanelData, series: IEchartsSeriesItem[], labelFormatters: Record<string, (p: $TSFixMe) => string>): any;
@@ -4,6 +4,7 @@ import { AggregationType, TNumberFormat } from '../../../../utils';
4
4
  import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
5
5
  import { TScatterSize } from './editors/scatter-size-select/types';
6
6
  import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
7
+ import { IEchartsTooltipMetric } from '../../common-echarts-fields/tooltip-metric';
7
8
  export interface ICartesianChartSeriesItem {
8
9
  type: 'line' | 'bar' | 'scatter';
9
10
  name: string;
@@ -88,6 +89,9 @@ export interface ICartesianChartConf {
88
89
  bottom: string;
89
90
  };
90
91
  };
92
+ tooltip: {
93
+ metrics: IEchartsTooltipMetric[];
94
+ };
91
95
  reference_lines: ICartesianReferenceLine[];
92
96
  reference_areas: ICartesianReferenceArea[];
93
97
  dataZoom: TEchartsDataZoomConfig;