@devtable/dashboard 8.24.1 → 8.26.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 +9594 -8892
- package/dist/dashboard.umd.js +106 -80
- package/dist/plugins/viz-components/calendar-heatmap/editors/calendar/index.d.ts +10 -0
- package/dist/plugins/viz-components/calendar-heatmap/editors/heat_block/index.d.ts +10 -0
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/index.d.ts +10 -0
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metric.d.ts +11 -0
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metrics.d.ts +10 -0
- package/dist/plugins/viz-components/calendar-heatmap/index.d.ts +2 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/calendar.d.ts +22 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/formatters.d.ts +6 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/index.d.ts +4 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/legend.d.ts +10 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/series.d.ts +9 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/tooltip.d.ts +8 -0
- package/dist/plugins/viz-components/calendar-heatmap/option/visual-map.d.ts +10 -0
- package/dist/plugins/viz-components/calendar-heatmap/triggers/click-calendar-date.d.ts +7 -0
- package/dist/plugins/viz-components/calendar-heatmap/triggers/index.d.ts +1 -0
- package/dist/plugins/viz-components/calendar-heatmap/type.d.ts +19 -0
- package/dist/plugins/viz-components/calendar-heatmap/viz-calendar-heatmap-editor.d.ts +3 -0
- package/dist/plugins/viz-components/calendar-heatmap/viz-calendar-heatmap.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/option/x-axis.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/option/y-axis.d.ts +3 -0
- package/dist/plugins/viz-components/radar-chart/option/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { ICalendarHeatmapConf } from '../../type';
|
|
4
|
+
interface ICalendarField {
|
|
5
|
+
control: Control<ICalendarHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<ICalendarHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare function CalendarField({ data, control, watch }: ICalendarField): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { ICalendarHeatmapConf } from '../../type';
|
|
4
|
+
interface IHeatBlockField {
|
|
5
|
+
control: Control<ICalendarHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<ICalendarHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare function HeatBlockField({ data, control, watch }: IHeatBlockField): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
+
import { ICalendarHeatmapConf } from '../../type';
|
|
4
|
+
interface ITooltipField {
|
|
5
|
+
control: Control<ICalendarHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<ICalendarHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
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 { ICalendarHeatmapConf } from '../../type';
|
|
4
|
+
interface ITooltipMetricField {
|
|
5
|
+
control: Control<ICalendarHeatmapConf, $TSFixMe>;
|
|
6
|
+
data: $TSFixMe[];
|
|
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 { ICalendarHeatmapConf } from '../../type';
|
|
4
|
+
interface ITooltipMetricsField {
|
|
5
|
+
control: Control<ICalendarHeatmapConf, $TSFixMe>;
|
|
6
|
+
watch: UseFormWatch<ICalendarHeatmapConf>;
|
|
7
|
+
data: $TSFixMe[];
|
|
8
|
+
}
|
|
9
|
+
export declare const TooltipMetricsField: ({ control, watch, data }: ITooltipMetricsField) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function getCalendar(oneYearMode: boolean, minDate: number, years: string[]): {
|
|
2
|
+
top: number;
|
|
3
|
+
left: number;
|
|
4
|
+
right: number;
|
|
5
|
+
cellSize: (string | number)[];
|
|
6
|
+
range: string | number[];
|
|
7
|
+
itemStyle: {
|
|
8
|
+
borderColor: string;
|
|
9
|
+
};
|
|
10
|
+
splitLine: {
|
|
11
|
+
show: boolean;
|
|
12
|
+
};
|
|
13
|
+
dayLabel: {
|
|
14
|
+
firstDay: number;
|
|
15
|
+
};
|
|
16
|
+
monthLabel: {
|
|
17
|
+
position: string;
|
|
18
|
+
};
|
|
19
|
+
yearLabel: {
|
|
20
|
+
show: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormatterFuncType } from '../../heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
2
|
+
import { ICalendarHeatmapConf } from '../type';
|
|
3
|
+
export declare type ValueFormattersType = {
|
|
4
|
+
heat_block: FormatterFuncType;
|
|
5
|
+
};
|
|
6
|
+
export declare function getValueFormatters(conf: ICalendarHeatmapConf): ValueFormattersType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { ICalendarHeatmapConf } from '../type';
|
|
3
|
+
export declare function getSeries(conf: ICalendarHeatmapConf, dataByYear: Record<string, AnyObject[]>): {
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
coordinateSystem: string;
|
|
7
|
+
calendarIndex: number;
|
|
8
|
+
data: any[][];
|
|
9
|
+
}[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CallbackDataParams } from 'echarts/types/dist/shared';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { ICalendarHeatmapConf } from '../type';
|
|
4
|
+
import { ValueFormattersType } from './formatters';
|
|
5
|
+
export declare function getTooltip(conf: ICalendarHeatmapConf, data: AnyObject[], valueFormatters: ValueFormattersType): {
|
|
6
|
+
confine: boolean;
|
|
7
|
+
formatter: (params: CallbackDataParams) => string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICalendarHeatmapConf } from '../type';
|
|
2
|
+
export declare function getVisualMap(conf: ICalendarHeatmapConf, oneYearMode: boolean): {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
calculable: boolean;
|
|
6
|
+
orient: string;
|
|
7
|
+
left: string | number;
|
|
8
|
+
top: number;
|
|
9
|
+
itemWidth: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITriggerConfigProps, ITriggerSchema } from '~/types/plugin';
|
|
3
|
+
export declare function ClickCalendarDateSettings(props: ITriggerConfigProps): JSX.Element;
|
|
4
|
+
export declare const ClickCalendarDate: ITriggerSchema;
|
|
5
|
+
export interface IClickCalendarDateConfig {
|
|
6
|
+
foo: '';
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ClickCalendarDate } from './click-calendar-date';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
3
|
+
export interface ICalendarHeatmapConf {
|
|
4
|
+
calendar: {
|
|
5
|
+
data_key: string;
|
|
6
|
+
locale: 'ZH' | 'EN';
|
|
7
|
+
};
|
|
8
|
+
heat_block: {
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
name: string;
|
|
12
|
+
data_key: '';
|
|
13
|
+
value_formatter: TNumbroFormat;
|
|
14
|
+
};
|
|
15
|
+
tooltip: {
|
|
16
|
+
metrics: IEchartsTooltipMetric[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const DEFAULT_CONFIG: ICalendarHeatmapConf;
|
|
@@ -20,6 +20,7 @@ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
|
|
|
20
20
|
};
|
|
21
21
|
tooltip: {
|
|
22
22
|
confine: boolean;
|
|
23
|
+
backgroundColor: string;
|
|
23
24
|
formatter: ({ name, marker, value }: {
|
|
24
25
|
name: string;
|
|
25
26
|
value: number[];
|
|
@@ -42,6 +43,11 @@ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
|
|
|
42
43
|
lineStyle: {
|
|
43
44
|
width: number;
|
|
44
45
|
};
|
|
46
|
+
emphasis: {
|
|
47
|
+
lineStyle: {
|
|
48
|
+
width: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
45
51
|
areaStyle: {
|
|
46
52
|
opacity: number;
|
|
47
53
|
} | undefined;
|