@devtable/dashboard 13.18.0 → 13.20.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/common-echarts-fields/number-or-dynamic-value/get-number-or-dynamic-value.d.ts +1 -1
- package/dist/components/plugins/editor-components/field-array-tabs/field-array-tabs.d.ts +1 -4
- package/dist/components/plugins/editor-components/field-array-tabs/tab-list.d.ts +12 -0
- package/dist/components/plugins/editor-components/field-array-tabs/types.d.ts +7 -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/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/dashboard.es.js +17117 -14347
- package/dist/dashboard.umd.js +122 -122
- package/dist/i18n/en.d.ts +2 -0
- package/dist/i18n/zh.d.ts +2 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +4 -1
- 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
|
@@ -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;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from './react';
|
|
2
2
|
import { Control, FieldValues, Path, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
|
|
4
|
-
field: FieldItem;
|
|
5
|
-
index: number;
|
|
6
|
-
}) => ReactNode;
|
|
3
|
+
import { FieldArrayTabsChildren } from './types';
|
|
7
4
|
export type FieldArrayButtonStateFunc<FieldItem> = ({ field, index, fields, }: {
|
|
8
5
|
field: FieldItem;
|
|
9
6
|
index: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from './react';
|
|
2
|
+
import { ArrayPath, FieldValues, UseFieldArrayReturn } from 'react-hook-form';
|
|
3
|
+
import { ControlledField } from './types';
|
|
4
|
+
type Props<T extends FieldValues, FieldItem> = {
|
|
5
|
+
fieldArray: UseFieldArrayReturn<T, ArrayPath<T>, 'id'>;
|
|
6
|
+
addButtonText: string;
|
|
7
|
+
add: () => void;
|
|
8
|
+
renderTabName: (field: FieldItem, index: number) => ReactNode;
|
|
9
|
+
controlledFields: ControlledField<T>[];
|
|
10
|
+
};
|
|
11
|
+
export declare const TabList: <T extends FieldValues, FieldItem>({ fieldArray, add, addButtonText, renderTabName, controlledFields, }: Props<T, FieldItem>) => import('./react/jsx-runtime').JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from './react';
|
|
2
|
+
import { ArrayPath, FieldArrayWithId, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
3
|
+
export type ControlledField<T extends FieldValues> = FieldArrayWithId<T, ArrayPath<T>, 'id'> & PathValue<T, Path<T>>;
|
|
4
|
+
export type FieldArrayTabsChildren<FieldItem> = ({ field, index }: {
|
|
5
|
+
field: FieldItem;
|
|
6
|
+
index: number;
|
|
7
|
+
}) => ReactNode;
|
|
@@ -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;
|
|
@@ -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;
|