@devtable/dashboard 13.17.3 → 13.19.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/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +2 -0
- package/dist/components/plugins/common-echarts-fields/number-or-dynamic-value/get-number-or-dynamic-value.d.ts +1 -1
- package/dist/components/plugins/common-echarts-fields/visual-map/types.d.ts +18 -5
- package/dist/components/plugins/common-echarts-fields/visual-map/utils.d.ts +7 -35
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/gradient-editor.d.ts +7 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/index.d.ts +7 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/{skip-range-editor.d.ts → continuous/skip-range-editor.d.ts} +1 -1
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/piecewise/index.d.ts +7 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/piecewise/interval-editor.d.ts +8 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/piecewise/piece-editor.d.ts +9 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/piecewise/pieces-editor.d.ts +7 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/preview-visual-map.d.ts +1 -2
- package/dist/components/plugins/plugin-context.d.ts +2 -0
- package/dist/components/plugins/viz-components/calendar-heatmap/migrators/index.d.ts +5 -0
- package/dist/components/plugins/viz-components/calendar-heatmap/option/index.d.ts +56 -1
- package/dist/components/plugins/viz-components/calendar-heatmap/option/series.d.ts +3 -4
- package/dist/components/plugins/viz-components/calendar-heatmap/type.d.ts +3 -4
- package/dist/components/plugins/viz-components/heatmap/type.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-heatmap/migrators/index.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/series.d.ts +2 -2
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/x-axis.d.ts +2 -2
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/y-axis.d.ts +2 -2
- package/dist/components/plugins/viz-components/merico-heatmap/type.d.ts +2 -3
- package/dist/contexts/panel-context.d.ts +4 -0
- package/dist/dashboard-editor/model/panels/panel.d.ts +1 -0
- package/dist/dashboard.es.js +6656 -6327
- package/dist/dashboard.umd.js +81 -81
- package/dist/i18n/en.d.ts +16 -0
- package/dist/i18n/zh.d.ts +16 -0
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +1 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/gradient-editor.d.ts +0 -6
- package/dist/components/plugins/viz-components/calendar-heatmap/option/visual-map.d.ts +0 -10
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/visual-map.d.ts +0 -10
- /package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/{preview-gradient-and-apply-palette.d.ts → continuous/preview-gradient-and-apply-palette.d.ts} +0 -0
|
@@ -3449,6 +3449,7 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
3449
3449
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
3450
3450
|
readonly data: TPanelData;
|
|
3451
3451
|
readonly variableStrings: Record<string, React.ReactNode>;
|
|
3452
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
3452
3453
|
readonly dataLoading: boolean;
|
|
3453
3454
|
readonly queryStateMessages: string;
|
|
3454
3455
|
readonly queryErrors: any[];
|
|
@@ -6784,6 +6785,7 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
6784
6785
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
6785
6786
|
readonly data: TPanelData;
|
|
6786
6787
|
readonly variableStrings: Record<string, React.ReactNode>;
|
|
6788
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
6787
6789
|
readonly dataLoading: boolean;
|
|
6788
6790
|
readonly queryStateMessages: string;
|
|
6789
6791
|
readonly queryErrors: any[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TNumberOrDynamic } from './types';
|
|
2
|
-
export declare function getNumberOrDynamicValue(conf: TNumberOrDynamic, variableValueMap: Record<string, string | number>, fallbackValue?: number):
|
|
2
|
+
export declare function getNumberOrDynamicValue(conf: TNumberOrDynamic, variableValueMap: Record<string, string | number>, fallbackValue?: number): number | undefined;
|
|
@@ -9,6 +9,19 @@ export type VisualMapSkipRange = {
|
|
|
9
9
|
max: string | '';
|
|
10
10
|
gt_max: string | '';
|
|
11
11
|
};
|
|
12
|
+
export type VisualMapPiecewiseAlign = 'auto' | 'left' | 'right';
|
|
13
|
+
export type VisualMapPiecewisePiece = {
|
|
14
|
+
lower: {
|
|
15
|
+
value: string;
|
|
16
|
+
symbol: 'gt' | 'gte';
|
|
17
|
+
};
|
|
18
|
+
upper: {
|
|
19
|
+
value: string;
|
|
20
|
+
symbol: 'lt' | 'lte';
|
|
21
|
+
};
|
|
22
|
+
label: string;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
12
25
|
export type ContinuousVisualMap = {
|
|
13
26
|
type: 'continuous';
|
|
14
27
|
id: string;
|
|
@@ -29,20 +42,20 @@ export type ContinuousVisualMap = {
|
|
|
29
42
|
};
|
|
30
43
|
export type PiecewiseVisualMap = {
|
|
31
44
|
type: 'piecewise';
|
|
45
|
+
piecewise_mode: 'pieces' | 'categories';
|
|
32
46
|
id: string;
|
|
33
47
|
min: TNumberOrDynamic;
|
|
34
48
|
max: TNumberOrDynamic;
|
|
35
49
|
orient: ChartingOrientation;
|
|
36
50
|
left: VisualMapHorizontalAlign;
|
|
37
51
|
top: VisualMapVerticalAlign;
|
|
38
|
-
|
|
39
|
-
calculable: boolean;
|
|
52
|
+
align: VisualMapPiecewiseAlign;
|
|
40
53
|
itemWidth: number;
|
|
41
54
|
itemHeight: number;
|
|
42
55
|
show: boolean;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
56
|
+
precision: number;
|
|
57
|
+
pieces: VisualMapPiecewisePiece[];
|
|
58
|
+
categories: string[];
|
|
46
59
|
};
|
|
47
60
|
export type VisualMap = ContinuousVisualMap | PiecewiseVisualMap;
|
|
48
61
|
export type ContinuousVisualMapOption = {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { VisualMap } from './types';
|
|
2
|
-
|
|
1
|
+
import { ContinuousVisualMap, PiecewiseVisualMap, VisualMap, VisualMapPiecewisePiece } from './types';
|
|
2
|
+
import { AnyObject } from '../../../../types';
|
|
3
|
+
export declare function getDefaultContinuousVisualMap(color?: string[]): ContinuousVisualMap;
|
|
4
|
+
export declare function getDefaultPiecewiseVisualMap(): PiecewiseVisualMap;
|
|
5
|
+
export declare function getDefaultVisualMap(): ContinuousVisualMap;
|
|
3
6
|
export declare function getVisualMapPalettes(): {
|
|
4
7
|
compared: string[];
|
|
5
8
|
level: string[];
|
|
@@ -9,40 +12,9 @@ export declare function getVisualMapPalettes(): {
|
|
|
9
12
|
darkgreen_pink: string[];
|
|
10
13
|
spectrum: string[];
|
|
11
14
|
};
|
|
12
|
-
export declare function getVisualMap(visualMap: VisualMap, variableValueMap: Record<string, string | number>):
|
|
13
|
-
min: any;
|
|
14
|
-
max: any;
|
|
15
|
-
type: "continuous";
|
|
16
|
-
id: string;
|
|
17
|
-
orient: import("../orientation").ChartingOrientation;
|
|
18
|
-
left: import("./types").VisualMapHorizontalAlign;
|
|
19
|
-
top: import("./types").VisualMapVerticalAlign;
|
|
20
|
-
text: [string, string];
|
|
21
|
-
calculable: boolean;
|
|
22
|
-
itemWidth: number;
|
|
23
|
-
itemHeight: number;
|
|
24
|
-
show: boolean;
|
|
25
|
-
inRange: {
|
|
26
|
-
color: string[];
|
|
27
|
-
};
|
|
28
|
-
} | {
|
|
29
|
-
min: any;
|
|
30
|
-
max: any;
|
|
31
|
-
type: "piecewise";
|
|
32
|
-
id: string;
|
|
33
|
-
orient: import("../orientation").ChartingOrientation;
|
|
34
|
-
left: import("./types").VisualMapHorizontalAlign;
|
|
35
|
-
top: import("./types").VisualMapVerticalAlign;
|
|
36
|
-
text: [string, string];
|
|
37
|
-
calculable: boolean;
|
|
38
|
-
itemWidth: number;
|
|
39
|
-
itemHeight: number;
|
|
40
|
-
show: boolean;
|
|
41
|
-
inRange: {
|
|
42
|
-
color: string[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
15
|
+
export declare function getVisualMap(visualMap: VisualMap, variableValueMap: Record<string, string | number>): AnyObject;
|
|
45
16
|
export declare function getSkipRangeColor(value: number, min: number, max: number, visualMap: VisualMap): {
|
|
46
17
|
followVisualMap: boolean;
|
|
47
18
|
color: string;
|
|
48
19
|
};
|
|
20
|
+
export declare function getVisualMapPiece(): VisualMapPiecewisePiece;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { VisualMapPartialForm } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
form: UseFormReturn<VisualMapPartialForm>;
|
|
5
|
+
};
|
|
6
|
+
export declare const ContinuousVisualMapEditor: ({ form }: Props) => import('./react/jsx-runtime').JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { VisualMapPartialForm } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
form: UseFormReturn<VisualMapPartialForm>;
|
|
5
|
+
};
|
|
6
|
+
export declare const PiecewiseVisualMapEditor: ({ form }: Props) => import('./react/jsx-runtime').JSX.Element | null;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { VisualMapPartialForm } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
form: UseFormReturn<VisualMapPartialForm>;
|
|
5
|
+
index: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const IntervalEditor: ({ form, index }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { VisualMapPartialForm } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
form: UseFormReturn<VisualMapPartialForm>;
|
|
5
|
+
index: number;
|
|
6
|
+
remove: (index: number) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const PieceEditor: ({ form, index, remove }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
2
|
+
import { VisualMapPartialForm } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
form: UseFormReturn<VisualMapPartialForm>;
|
|
5
|
+
};
|
|
6
|
+
export declare const PiecesEditor: ({ form }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VisualMap } from '../types';
|
|
2
|
-
export declare const PreviewVisualMap: ({ visualMap
|
|
2
|
+
export declare const PreviewVisualMap: ({ visualMap }: {
|
|
3
3
|
visualMap: VisualMap;
|
|
4
|
-
variableValueMap: Record<string, any>;
|
|
5
4
|
}) => import('./react/jsx-runtime').JSX.Element;
|
|
@@ -3465,6 +3465,7 @@ export declare const tokens: {
|
|
|
3465
3465
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
3466
3466
|
readonly data: TPanelData;
|
|
3467
3467
|
readonly variableStrings: Record<string, import('./react').ReactNode>;
|
|
3468
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
3468
3469
|
readonly dataLoading: boolean;
|
|
3469
3470
|
readonly queryStateMessages: string;
|
|
3470
3471
|
readonly queryErrors: any[];
|
|
@@ -6838,6 +6839,7 @@ export declare const tokens: {
|
|
|
6838
6839
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
6839
6840
|
readonly data: TPanelData;
|
|
6840
6841
|
readonly variableStrings: Record<string, import('./react').ReactNode>;
|
|
6842
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
6841
6843
|
readonly dataLoading: boolean;
|
|
6842
6844
|
readonly queryStateMessages: string;
|
|
6843
6845
|
readonly queryErrors: any[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ICalendarHeatmapConf } from '../type';
|
|
2
|
+
import { IMigrationEnv } from '../../../../../components/plugins/plugin-data-migrator';
|
|
3
|
+
export declare function v2(legacyConf: any, { panelModel }: IMigrationEnv): ICalendarHeatmapConf;
|
|
4
|
+
export declare function v3(legacyConf: any): ICalendarHeatmapConf;
|
|
5
|
+
export declare function v4(legacyConf: any): ICalendarHeatmapConf;
|
|
@@ -1,3 +1,58 @@
|
|
|
1
1
|
import { ITemplateVariable } from '../../../../../utils';
|
|
2
2
|
import { ICalendarHeatmapConf } from '../type';
|
|
3
|
-
export declare function getOption(conf: ICalendarHeatmapConf, data: TPanelData, variables: ITemplateVariable[]):
|
|
3
|
+
export declare function getOption(conf: ICalendarHeatmapConf, data: TPanelData, variables: ITemplateVariable[]): {
|
|
4
|
+
calendar: {
|
|
5
|
+
top: number;
|
|
6
|
+
left: number;
|
|
7
|
+
right: number;
|
|
8
|
+
cellSize: (string | number)[];
|
|
9
|
+
range: string | number[];
|
|
10
|
+
itemStyle: {
|
|
11
|
+
borderColor: string;
|
|
12
|
+
};
|
|
13
|
+
splitLine: {
|
|
14
|
+
show: boolean;
|
|
15
|
+
};
|
|
16
|
+
dayLabel: {
|
|
17
|
+
firstDay: number;
|
|
18
|
+
};
|
|
19
|
+
monthLabel: {
|
|
20
|
+
position: string;
|
|
21
|
+
};
|
|
22
|
+
yearLabel: {
|
|
23
|
+
show: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
series: {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
coordinateSystem: string;
|
|
30
|
+
calendarIndex: number;
|
|
31
|
+
data: import("../../../../..").AnyObject[];
|
|
32
|
+
}[] | {
|
|
33
|
+
type: string;
|
|
34
|
+
name: string;
|
|
35
|
+
coordinateSystem: string;
|
|
36
|
+
calendarIndex: number;
|
|
37
|
+
data: import("../../../../..").AnyObject[];
|
|
38
|
+
};
|
|
39
|
+
tooltip: any;
|
|
40
|
+
visualMap: {
|
|
41
|
+
orient: string;
|
|
42
|
+
left: string | number;
|
|
43
|
+
dimension: number;
|
|
44
|
+
};
|
|
45
|
+
legend: {
|
|
46
|
+
show: boolean;
|
|
47
|
+
selectedMode: string;
|
|
48
|
+
top: number;
|
|
49
|
+
right: number;
|
|
50
|
+
data: {
|
|
51
|
+
name: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
grid: {
|
|
56
|
+
containLabel: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../../types';
|
|
2
|
-
|
|
3
|
-
export declare function getSeries(conf: ICalendarHeatmapConf, oneYearMode: boolean, dataByYear: Record<string, AnyObject[]>, data: TPanelData): {
|
|
2
|
+
export declare function getSeries(oneYearMode: boolean, dataByYear: Record<string, AnyObject[]>, plotData: AnyObject[]): {
|
|
4
3
|
type: string;
|
|
5
4
|
name: string;
|
|
6
5
|
coordinateSystem: string;
|
|
7
6
|
calendarIndex: number;
|
|
8
|
-
data:
|
|
7
|
+
data: AnyObject[];
|
|
9
8
|
}[] | {
|
|
10
9
|
type: string;
|
|
11
10
|
name: string;
|
|
12
11
|
coordinateSystem: string;
|
|
13
12
|
calendarIndex: number;
|
|
14
|
-
data:
|
|
13
|
+
data: AnyObject[];
|
|
15
14
|
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { TNumberFormat } from '../../../../utils';
|
|
2
|
-
import { TNumberOrDynamic } from '../../../../components/plugins/common-echarts-fields/number-or-dynamic-value';
|
|
3
1
|
import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
|
|
2
|
+
import { TNumberFormat } from '../../../../utils';
|
|
3
|
+
import { VisualMap } from '../../common-echarts-fields/visual-map';
|
|
4
4
|
export interface ICalendarHeatmapConf {
|
|
5
5
|
calendar: {
|
|
6
6
|
data_key: TDataKey;
|
|
7
7
|
locale: 'ZH' | 'EN';
|
|
8
8
|
};
|
|
9
9
|
heat_block: {
|
|
10
|
-
min: TNumberOrDynamic;
|
|
11
|
-
max: TNumberOrDynamic;
|
|
12
10
|
name: string;
|
|
13
11
|
data_key: TDataKey;
|
|
14
12
|
value_formatter: TNumberFormat;
|
|
@@ -16,5 +14,6 @@ export interface ICalendarHeatmapConf {
|
|
|
16
14
|
tooltip: {
|
|
17
15
|
metrics: IEchartsTooltipMetric[];
|
|
18
16
|
};
|
|
17
|
+
visualMap: VisualMap;
|
|
19
18
|
}
|
|
20
19
|
export declare const DEFAULT_CONFIG: ICalendarHeatmapConf;
|
|
@@ -2,8 +2,8 @@ import { IAxisLabelOverflow } from '../../../../components/plugins/common-echart
|
|
|
2
2
|
import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
|
|
3
3
|
import { TNumberFormat } from '../../../../utils';
|
|
4
4
|
import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
|
|
5
|
-
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
6
5
|
import { VisualMap } from '../../common-echarts-fields/visual-map';
|
|
6
|
+
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
7
7
|
export interface IHeatmapConf {
|
|
8
8
|
x_axis: {
|
|
9
9
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TMericoHeatmapConf } from '../../type';
|
|
2
|
-
export declare function getSeries(conf: TMericoHeatmapConf,
|
|
2
|
+
export declare function getSeries(conf: TMericoHeatmapConf, seriesData: any[]): {
|
|
3
3
|
type: string;
|
|
4
4
|
name: string;
|
|
5
5
|
xAxisId: string;
|
|
@@ -8,7 +8,7 @@ export declare function getSeries(conf: TMericoHeatmapConf, data: TPanelData): {
|
|
|
8
8
|
itemStyle: {
|
|
9
9
|
borderWidth: number;
|
|
10
10
|
};
|
|
11
|
-
data: any[]
|
|
11
|
+
data: any[];
|
|
12
12
|
label: {
|
|
13
13
|
show: boolean;
|
|
14
14
|
fontSize: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TMericoHeatmapConf } from '../../type';
|
|
2
1
|
import { FormatterFuncType } from '../../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
|
|
3
|
-
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
export declare function getXAxis(conf: TMericoHeatmapConf, xData: any[], formatterFunc: FormatterFuncType): any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TMericoHeatmapConf } from '../../type';
|
|
2
1
|
import { FormatterFuncType } from '../../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
|
|
3
|
-
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
export declare function getYAxis(conf: TMericoHeatmapConf, yData: any[], formatterFunc: FormatterFuncType): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IAxisLabelOverflow } from '../../../../components/plugins/common-echarts-fields/axis-label-overflow';
|
|
2
2
|
import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
|
|
3
3
|
import { TNumberFormat } from '../../../../utils';
|
|
4
|
-
import { TNumberOrDynamic } from '../../../../components/plugins/common-echarts-fields/number-or-dynamic-value/types';
|
|
5
4
|
import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
|
|
5
|
+
import { VisualMap } from '../../common-echarts-fields/visual-map';
|
|
6
6
|
import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
|
|
7
7
|
export type TMericoHeatmapConf = {
|
|
8
8
|
x_axis: {
|
|
@@ -25,8 +25,6 @@ export type TMericoHeatmapConf = {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
heat_block: {
|
|
28
|
-
min: TNumberOrDynamic;
|
|
29
|
-
max: TNumberOrDynamic;
|
|
30
28
|
name: string;
|
|
31
29
|
data_key: TDataKey;
|
|
32
30
|
value_formatter: TNumberFormat;
|
|
@@ -38,5 +36,6 @@ export type TMericoHeatmapConf = {
|
|
|
38
36
|
tooltip: {
|
|
39
37
|
metrics: IEchartsTooltipMetric[];
|
|
40
38
|
};
|
|
39
|
+
visualMap: VisualMap;
|
|
41
40
|
};
|
|
42
41
|
export declare const DEFAULT_CONFIG: TMericoHeatmapConf;
|
|
@@ -3454,6 +3454,7 @@ export declare const useRenderPanelContext: () => {
|
|
|
3454
3454
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
3455
3455
|
readonly data: TPanelData;
|
|
3456
3456
|
readonly variableStrings: Record<string, React.ReactNode>;
|
|
3457
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
3457
3458
|
readonly dataLoading: boolean;
|
|
3458
3459
|
readonly queryStateMessages: string;
|
|
3459
3460
|
readonly queryErrors: any[];
|
|
@@ -6789,6 +6790,7 @@ export declare const useRenderPanelContext: () => {
|
|
|
6789
6790
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
6790
6791
|
readonly data: TPanelData;
|
|
6791
6792
|
readonly variableStrings: Record<string, React.ReactNode>;
|
|
6793
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
6792
6794
|
readonly dataLoading: boolean;
|
|
6793
6795
|
readonly queryStateMessages: string;
|
|
6794
6796
|
readonly queryErrors: any[];
|
|
@@ -10685,6 +10687,7 @@ export declare const useEditPanelContext: () => {
|
|
|
10685
10687
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
10686
10688
|
readonly data: TPanelData;
|
|
10687
10689
|
readonly variableStrings: Record<string, React.ReactNode>;
|
|
10690
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
10688
10691
|
readonly dataLoading: boolean;
|
|
10689
10692
|
readonly queryStateMessages: string;
|
|
10690
10693
|
readonly queryErrors: any[];
|
|
@@ -14058,6 +14061,7 @@ export declare const useEditPanelContext: () => {
|
|
|
14058
14061
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
14059
14062
|
readonly data: TPanelData;
|
|
14060
14063
|
readonly variableStrings: Record<string, React.ReactNode>;
|
|
14064
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
14061
14065
|
readonly dataLoading: boolean;
|
|
14062
14066
|
readonly queryStateMessages: string;
|
|
14063
14067
|
readonly queryErrors: any[];
|
|
@@ -2891,6 +2891,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
2891
2891
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
2892
2892
|
readonly data: TPanelData;
|
|
2893
2893
|
readonly variableStrings: Record<string, import('./react').ReactNode>;
|
|
2894
|
+
readonly variableValueMap: Record<string, string | number>;
|
|
2894
2895
|
readonly dataLoading: boolean;
|
|
2895
2896
|
readonly queryStateMessages: string;
|
|
2896
2897
|
readonly queryErrors: any[];
|