@devtable/dashboard 10.20.2 → 10.22.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/merico-heatmap/editors/heat_block/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/index.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/tooltip/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/tooltip/metric.d.ts +9 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/tooltip/metrics.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +7 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +3 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/types.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/editors/y-axis/index.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/index.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/index.d.ts +2 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/formatters.d.ts +11 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/grid.d.ts +8 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/index.d.ts +3 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/series.d.ts +19 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/tooltip.d.ts +7 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/visual-map.d.ts +10 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/x-axis.d.ts +30 -0
- package/dist/components/plugins/viz-components/merico-heatmap/render/option/y-axis.d.ts +32 -0
- package/dist/components/plugins/viz-components/merico-heatmap/triggers/click-heat-block.d.ts +6 -0
- package/dist/components/plugins/viz-components/merico-heatmap/triggers/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/merico-heatmap/type.d.ts +41 -0
- package/dist/dashboard.es.js +8272 -7490
- package/dist/dashboard.umd.js +95 -73
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
interface IHeatBlockField {
|
|
4
|
+
control: Control<TMericoHeatmapConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<TMericoHeatmapConf>;
|
|
6
|
+
}
|
|
7
|
+
export declare function HeatBlockField({ control, watch }: IHeatBlockField): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
interface ITooltipField {
|
|
4
|
+
control: Control<TMericoHeatmapConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<TMericoHeatmapConf>;
|
|
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 { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
interface ITooltipMetricField {
|
|
4
|
+
control: Control<TMericoHeatmapConf, $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 { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
interface ITooltipMetricsField {
|
|
4
|
+
control: Control<TMericoHeatmapConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<TMericoHeatmapConf>;
|
|
6
|
+
}
|
|
7
|
+
export declare const TooltipMetricsField: ({ control, watch }: ITooltipMetricsField) => import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
interface IXAxisField {
|
|
4
|
+
control: Control<TMericoHeatmapConf, $TSFixMe>;
|
|
5
|
+
watch: UseFormWatch<TMericoHeatmapConf>;
|
|
6
|
+
}
|
|
7
|
+
export declare function XAxisField({ control, watch }: IXAxisField): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface IXAxisLabelFormatterFunctionEditor {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (v: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const XAxisLabelFormatterFunctionEditor: ({ disabled, value, onChange, }: IXAxisLabelFormatterFunctionEditor) => import('./react/jsx-runtime').JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IXAxisLabelFormatter } from './types';
|
|
3
|
+
interface IXAxisLabelFormatterField {
|
|
4
|
+
value: IXAxisLabelFormatter;
|
|
5
|
+
onChange: (v: IXAxisLabelFormatter) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const XAxisLabelFormatterField: import('./react').ForwardRefExoticComponent<IXAxisLabelFormatterField & import('./react').RefAttributes<unknown>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
interface IYAxisField {
|
|
4
|
+
watch: UseFormWatch<TMericoHeatmapConf>;
|
|
5
|
+
control: Control<TMericoHeatmapConf, $TSFixMe>;
|
|
6
|
+
}
|
|
7
|
+
export declare function YAxisField({ control, watch }: IYAxisField): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormatterFuncType } from '../../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
export declare type LabelFormattersType = {
|
|
4
|
+
x_axis: FormatterFuncType;
|
|
5
|
+
y_axis: FormatterFuncType;
|
|
6
|
+
};
|
|
7
|
+
export declare function getLabelFormatters(conf: TMericoHeatmapConf): LabelFormattersType;
|
|
8
|
+
export declare type ValueFormattersType = {
|
|
9
|
+
heat_block: FormatterFuncType;
|
|
10
|
+
};
|
|
11
|
+
export declare function getValueFormatters(conf: TMericoHeatmapConf): ValueFormattersType;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
2
|
+
export declare function getSeries(conf: TMericoHeatmapConf, data: TPanelData): {
|
|
3
|
+
type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
xAxisId: string;
|
|
6
|
+
yAxisIndex: number;
|
|
7
|
+
datasetIndex: number;
|
|
8
|
+
itemStyle: {
|
|
9
|
+
borderWidth: number;
|
|
10
|
+
};
|
|
11
|
+
data: any[][];
|
|
12
|
+
label: {
|
|
13
|
+
show: boolean;
|
|
14
|
+
fontSize: number;
|
|
15
|
+
};
|
|
16
|
+
labelLayout: {
|
|
17
|
+
hideOverlap: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CallbackDataParams } from 'echarts/types/dist/shared';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
import { LabelFormattersType, ValueFormattersType } from './formatters';
|
|
4
|
+
export declare function getTooltip(conf: TMericoHeatmapConf, data: TPanelData, labelFormatters: LabelFormattersType, valueFormatters: ValueFormattersType): {
|
|
5
|
+
confine: boolean;
|
|
6
|
+
formatter: (params: CallbackDataParams) => string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
2
|
+
export declare function getVisualMap(conf: TMericoHeatmapConf, variableValueMap: Record<string, string | number>): {
|
|
3
|
+
min: any;
|
|
4
|
+
max: any;
|
|
5
|
+
calculable: boolean;
|
|
6
|
+
orient: string;
|
|
7
|
+
left: string;
|
|
8
|
+
top: number;
|
|
9
|
+
itemWidth: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormatterFuncType } from '../../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
export declare function getXAxis(conf: TMericoHeatmapConf, data: TPanelData, formatterFunc: FormatterFuncType): {
|
|
4
|
+
id: string;
|
|
5
|
+
type: string;
|
|
6
|
+
data: any[];
|
|
7
|
+
name: string;
|
|
8
|
+
align: string;
|
|
9
|
+
axisTick: {
|
|
10
|
+
show: boolean;
|
|
11
|
+
alignWithLabel: boolean;
|
|
12
|
+
};
|
|
13
|
+
axisLabel: {
|
|
14
|
+
formatter: FormatterFuncType;
|
|
15
|
+
width: number;
|
|
16
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
17
|
+
ellipsis: "...";
|
|
18
|
+
rotate: number;
|
|
19
|
+
};
|
|
20
|
+
splitArea: {
|
|
21
|
+
show: boolean;
|
|
22
|
+
};
|
|
23
|
+
nameLocation: string;
|
|
24
|
+
nameGap: number;
|
|
25
|
+
nameTextStyle: {
|
|
26
|
+
fontWeight: string;
|
|
27
|
+
align: string;
|
|
28
|
+
};
|
|
29
|
+
z: number;
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FormatterFuncType } from '../../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
2
|
+
import { TMericoHeatmapConf } from '../../type';
|
|
3
|
+
export declare function getYAxis(conf: TMericoHeatmapConf, data: TPanelData, formatterFunc: FormatterFuncType): {
|
|
4
|
+
type: string;
|
|
5
|
+
data: any[];
|
|
6
|
+
axisLabel: {
|
|
7
|
+
formatter: FormatterFuncType;
|
|
8
|
+
width: number;
|
|
9
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
10
|
+
ellipsis: "...";
|
|
11
|
+
rotate: number;
|
|
12
|
+
};
|
|
13
|
+
axisLine: {
|
|
14
|
+
show: boolean;
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
axisTick: {
|
|
18
|
+
show: boolean;
|
|
19
|
+
alignWithLabel: boolean;
|
|
20
|
+
};
|
|
21
|
+
splitArea: {
|
|
22
|
+
show: boolean;
|
|
23
|
+
};
|
|
24
|
+
nameTextStyle: {
|
|
25
|
+
fontWeight: string;
|
|
26
|
+
align: "center" | "left" | "right";
|
|
27
|
+
};
|
|
28
|
+
nameLocation: string;
|
|
29
|
+
nameGap: number;
|
|
30
|
+
z: number;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ITriggerConfigProps, ITriggerSchema } from '~/types/plugin';
|
|
2
|
+
export declare function ClickHeatBlockSettings(props: ITriggerConfigProps): import('./react/jsx-runtime').JSX.Element;
|
|
3
|
+
export declare const ClickHeatBlock: ITriggerSchema;
|
|
4
|
+
export interface IClickHeatBlockConfig {
|
|
5
|
+
foo: '';
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClickHeatBlock } from './click-heat-block';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TNumbroFormat } from '~/components/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { IAxisLabelOverflow } from '~/components/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
+
import { IEchartsTooltipMetric } from '~/components/plugins/common-echarts-fields/tooltip-metric';
|
|
4
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
5
|
+
import { TNumberOrDynamic } from '~/components/plugins/common-echarts-fields/number-or-dynamic-value/types';
|
|
6
|
+
export declare type TMericoHeatmapConf = {
|
|
7
|
+
x_axis: {
|
|
8
|
+
name: string;
|
|
9
|
+
data_key: TDataKey;
|
|
10
|
+
axisLabel: {
|
|
11
|
+
rotate: number;
|
|
12
|
+
formatter: IXAxisLabelFormatter;
|
|
13
|
+
overflow: IAxisLabelOverflow;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
y_axis: {
|
|
17
|
+
name: string;
|
|
18
|
+
data_key: TDataKey;
|
|
19
|
+
nameAlignment: 'left' | 'center' | 'right';
|
|
20
|
+
axisLabel: {
|
|
21
|
+
rotate: number;
|
|
22
|
+
formatter: IXAxisLabelFormatter;
|
|
23
|
+
overflow: IAxisLabelOverflow;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
heat_block: {
|
|
27
|
+
min: TNumberOrDynamic;
|
|
28
|
+
max: TNumberOrDynamic;
|
|
29
|
+
name: string;
|
|
30
|
+
data_key: TDataKey;
|
|
31
|
+
value_formatter: TNumbroFormat;
|
|
32
|
+
label: {
|
|
33
|
+
show: boolean;
|
|
34
|
+
fontSize: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
tooltip: {
|
|
38
|
+
metrics: IEchartsTooltipMetric[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare const DEFAULT_CONFIG: TMericoHeatmapConf;
|