@devtable/dashboard 6.25.1 → 6.26.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,10 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFormWatch } from 'react-hook-form';
3
+ import { IScatterChartConf } from '../../type';
4
+ interface ITooltipField {
5
+ control: Control<IScatterChartConf, $TSFixMe>;
6
+ watch: UseFormWatch<IScatterChartConf>;
7
+ data: $TSFixMe[];
8
+ }
9
+ export declare function TooltipField({ data, control, watch }: ITooltipField): JSX.Element;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Control } from 'react-hook-form';
3
+ import { IScatterChartConf } from '../../type';
4
+ interface ITooltipMetricField {
5
+ control: Control<IScatterChartConf, $TSFixMe>;
6
+ data: $TSFixMe[];
7
+ index: number;
8
+ remove: (index: number) => void;
9
+ }
10
+ export declare const TooltipMetricField: ({ control, data, index, remove }: ITooltipMetricField) => JSX.Element;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFormWatch } from 'react-hook-form';
3
+ import { IScatterChartConf } from '../../type';
4
+ interface ITooltipMetricsField {
5
+ control: Control<IScatterChartConf, $TSFixMe>;
6
+ watch: UseFormWatch<IScatterChartConf>;
7
+ data: $TSFixMe[];
8
+ }
9
+ export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
10
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { TopLevelFormatterParams } from 'echarts/types/dist/shared';
2
2
  import { IScatterChartConf } from '../type';
3
3
  export declare function getTooltip(conf: IScatterChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
4
+ confine: boolean;
4
5
  formatter: (params: TopLevelFormatterParams) => string;
5
6
  };
@@ -1,6 +1,11 @@
1
1
  import { ICartesianReferenceArea, ICartesianReferenceLine, IYAxisConf } from '../cartesian/type';
2
2
  import { TScatterSize } from './editors/scatter/scatter-size-select/types';
3
3
  import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
4
+ export interface IScatterTooltipMetric {
5
+ id: string;
6
+ data_key: string;
7
+ name: string;
8
+ }
4
9
  export interface IScatterChartConf {
5
10
  x_axis: {
6
11
  data_key: string;
@@ -24,6 +29,9 @@ export interface IScatterChartConf {
24
29
  bottom: string;
25
30
  };
26
31
  };
32
+ tooltip: {
33
+ metrics: IScatterTooltipMetric[];
34
+ };
27
35
  reference_lines: ICartesianReferenceLine[];
28
36
  reference_areas: ICartesianReferenceArea[];
29
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "6.25.1",
3
+ "version": "6.26.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",