@devtable/dashboard 13.28.3 → 13.29.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/components/plugins/viz-components/heatmap/editors/pagination/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/heatmap/heatmap-pagination.d.ts +8 -0
- package/dist/components/plugins/viz-components/heatmap/migrators/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/heatmap/option/index.d.ts +2 -1
- package/dist/components/plugins/viz-components/heatmap/render/use-heatmap-grouped-data.d.ts +7 -0
- package/dist/components/plugins/viz-components/heatmap/render/use-heatmap-series-data.d.ts +5 -0
- package/dist/components/plugins/viz-components/heatmap/type.d.ts +7 -0
- package/dist/dashboard.es.js +5000 -4895
- package/dist/dashboard.umd.js +93 -93
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/zh.d.ts +1 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { IHeatmapConf } from '../../type';
|
|
3
|
+
type Props = {
|
|
4
|
+
control: Control<IHeatmapConf>;
|
|
5
|
+
watch: UseFormWatch<IHeatmapConf>;
|
|
6
|
+
};
|
|
7
|
+
export declare function PaginationField({ control, watch }: Props): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -4,3 +4,4 @@ export declare function v2(legacyConf: any, { panelModel }: IMigrationEnv): IHea
|
|
|
4
4
|
export declare function v3(legacyConf: any): IHeatmapConf;
|
|
5
5
|
export declare function v4(legacyConf: any): IHeatmapConf;
|
|
6
6
|
export declare function v5(legacyConf: any): IHeatmapConf;
|
|
7
|
+
export declare function v6(legacyConf: any): IHeatmapConf;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ITemplateVariable } from '../../../../../utils';
|
|
2
2
|
import { IHeatmapConf } from '../type';
|
|
3
|
-
|
|
3
|
+
import { SeriesDataItem } from '../render/use-heatmap-series-data';
|
|
4
|
+
export declare function getOption(conf: IHeatmapConf, data: TPanelData, seriesData: SeriesDataItem[], variables: ITemplateVariable[], width: number, height: number): {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IHeatmapConf } from '../type';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { SeriesDataItem } from './use-heatmap-series-data';
|
|
4
|
+
export declare function useHeatmapGroupedData(panelData: TPanelData, conf: IHeatmapConf): {
|
|
5
|
+
totalPages: number;
|
|
6
|
+
groupedFullData: _.Dictionary<SeriesDataItem[]>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IHeatmapConf } from '../type';
|
|
2
|
+
export type SeriesDataItem = Record<string, any> & {
|
|
3
|
+
value: [number, number, number];
|
|
4
|
+
};
|
|
5
|
+
export declare function useHeatmapSeriesData(groupedFullData: Record<string, SeriesDataItem[]>, conf: IHeatmapConf, page: number): SeriesDataItem[];
|
|
@@ -4,6 +4,12 @@ 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
|
+
export type THeatmapPagination = {
|
|
8
|
+
page_size: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function getHeatmapPagination({ page_size }: Partial<THeatmapPagination>): {
|
|
11
|
+
page_size: number;
|
|
12
|
+
};
|
|
7
13
|
export interface IHeatmapConf {
|
|
8
14
|
x_axis: {
|
|
9
15
|
name: string;
|
|
@@ -36,6 +42,7 @@ export interface IHeatmapConf {
|
|
|
36
42
|
tooltip: {
|
|
37
43
|
metrics: IEchartsTooltipMetric[];
|
|
38
44
|
};
|
|
45
|
+
pagination: THeatmapPagination;
|
|
39
46
|
visualMap: VisualMap;
|
|
40
47
|
}
|
|
41
48
|
export declare const DEFAULT_CONFIG: IHeatmapConf;
|