@devtable/dashboard 9.11.2 → 9.13.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.
- package/dist/dashboard.es.js +4102 -3984
- package/dist/dashboard.umd.js +87 -82
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/index.d.ts +10 -0
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/metric.d.ts +11 -0
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/metrics.d.ts +10 -0
- package/dist/plugins/viz-components/boxplot-chart/index.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/option/dataset.d.ts +2 -2
- package/dist/plugins/viz-components/boxplot-chart/option/index.d.ts +8 -2
- package/dist/plugins/viz-components/boxplot-chart/option/tooltip/boxplot.d.ts +2 -0
- package/dist/plugins/viz-components/boxplot-chart/option/tooltip/index.d.ts +16 -0
- package/dist/plugins/viz-components/boxplot-chart/option/tooltip/scatter.d.ts +2 -0
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +7 -1
- package/package.json +1 -1
- package/dist/plugins/viz-components/boxplot-chart/option/tooltip.d.ts +0 -9
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { IBoxplotChartConf } from '../../type';
|
|
4
|
+
interface ITooltipField {
|
|
5
|
+
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IBoxplotChartConf>;
|
|
7
|
+
data: TVizData;
|
|
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 { IBoxplotChartConf } from '../../type';
|
|
4
|
+
interface ITooltipMetricField {
|
|
5
|
+
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
6
|
+
data: TVizData;
|
|
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 { IBoxplotChartConf } from '../../type';
|
|
4
|
+
interface ITooltipMetricsField {
|
|
5
|
+
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<IBoxplotChartConf>;
|
|
7
|
+
data: TVizData;
|
|
8
|
+
}
|
|
9
|
+
export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
2
2
|
import { VizComponent } from '~/types/plugin';
|
|
3
3
|
export declare class VizBoxplotChartMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION =
|
|
4
|
+
readonly VERSION = 7;
|
|
5
5
|
configVersions(): void;
|
|
6
6
|
}
|
|
7
7
|
export declare const BoxplotChartVizComponent: VizComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBoxplotChartConf, IBoxplotDataItem } from '../type';
|
|
1
|
+
import { IBoxplotChartConf, IBoxplotDataItem, TOutlierDataItem } from '../type';
|
|
2
2
|
export declare function getDataset(conf: IBoxplotChartConf, data: TVizData): ({
|
|
3
3
|
source: IBoxplotDataItem[];
|
|
4
4
|
} | {
|
|
5
|
-
source: [
|
|
5
|
+
source: TOutlierDataItem[];
|
|
6
6
|
})[];
|
|
@@ -17,13 +17,19 @@ export declare function getOption({ config, data, variables }: IGetOption): {
|
|
|
17
17
|
dataset: ({
|
|
18
18
|
source: import("../type").IBoxplotDataItem[];
|
|
19
19
|
} | {
|
|
20
|
-
source: [
|
|
20
|
+
source: import("../type").TOutlierDataItem[];
|
|
21
21
|
})[];
|
|
22
22
|
legend: Record<string, any>;
|
|
23
23
|
tooltip: {
|
|
24
24
|
trigger: string;
|
|
25
25
|
confine: boolean;
|
|
26
|
-
formatter: (params:
|
|
26
|
+
formatter: (params: {
|
|
27
|
+
componentSubType: "scatter";
|
|
28
|
+
value: import("../type").TOutlierDataItem;
|
|
29
|
+
} | {
|
|
30
|
+
componentSubType: "boxplot";
|
|
31
|
+
value: import("../type").IBoxplotDataItem;
|
|
32
|
+
}) => string;
|
|
27
33
|
};
|
|
28
34
|
xAxis: {
|
|
29
35
|
type: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IBoxplotChartConf, IBoxplotDataItem, TOutlierDataItem } from '../../type';
|
|
2
|
+
declare type TTooltipFormatterParams = {
|
|
3
|
+
componentSubType: 'scatter';
|
|
4
|
+
value: TOutlierDataItem;
|
|
5
|
+
} | {
|
|
6
|
+
componentSubType: 'boxplot';
|
|
7
|
+
value: IBoxplotDataItem;
|
|
8
|
+
};
|
|
9
|
+
export declare function getTooltip({ config }: {
|
|
10
|
+
config: IBoxplotChartConf;
|
|
11
|
+
}): {
|
|
12
|
+
trigger: string;
|
|
13
|
+
confine: boolean;
|
|
14
|
+
formatter: (params: TTooltipFormatterParams) => string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
3
|
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
4
|
+
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
5
|
+
import { AnyObject } from '~/types';
|
|
4
6
|
export interface IBoxplotReferenceLine {
|
|
5
7
|
name: string;
|
|
6
8
|
template: string;
|
|
@@ -21,10 +23,14 @@ export interface IBoxplotChartConf {
|
|
|
21
23
|
data_key: string;
|
|
22
24
|
label_formatter: TNumbroFormat;
|
|
23
25
|
};
|
|
26
|
+
tooltip: {
|
|
27
|
+
metrics: IEchartsTooltipMetric[];
|
|
28
|
+
};
|
|
24
29
|
color: string;
|
|
25
30
|
reference_lines: IBoxplotReferenceLine[];
|
|
26
31
|
}
|
|
27
32
|
export declare const DEFAULT_CONFIG: IBoxplotChartConf;
|
|
33
|
+
export declare type TOutlierDataItem = [string, number, AnyObject];
|
|
28
34
|
export interface IBoxplotDataItem {
|
|
29
35
|
name: string;
|
|
30
36
|
min: number;
|
|
@@ -32,5 +38,5 @@ export interface IBoxplotDataItem {
|
|
|
32
38
|
median: number;
|
|
33
39
|
q3: number;
|
|
34
40
|
max: number;
|
|
35
|
-
outliers:
|
|
41
|
+
outliers: TOutlierDataItem[];
|
|
36
42
|
}
|
package/package.json
CHANGED