@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.
Files changed (24) hide show
  1. package/dist/dashboard.es.js +9594 -8892
  2. package/dist/dashboard.umd.js +106 -80
  3. package/dist/plugins/viz-components/calendar-heatmap/editors/calendar/index.d.ts +10 -0
  4. package/dist/plugins/viz-components/calendar-heatmap/editors/heat_block/index.d.ts +10 -0
  5. package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/index.d.ts +10 -0
  6. package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metric.d.ts +11 -0
  7. package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metrics.d.ts +10 -0
  8. package/dist/plugins/viz-components/calendar-heatmap/index.d.ts +2 -0
  9. package/dist/plugins/viz-components/calendar-heatmap/option/calendar.d.ts +22 -0
  10. package/dist/plugins/viz-components/calendar-heatmap/option/formatters.d.ts +6 -0
  11. package/dist/plugins/viz-components/calendar-heatmap/option/index.d.ts +4 -0
  12. package/dist/plugins/viz-components/calendar-heatmap/option/legend.d.ts +10 -0
  13. package/dist/plugins/viz-components/calendar-heatmap/option/series.d.ts +9 -0
  14. package/dist/plugins/viz-components/calendar-heatmap/option/tooltip.d.ts +8 -0
  15. package/dist/plugins/viz-components/calendar-heatmap/option/visual-map.d.ts +10 -0
  16. package/dist/plugins/viz-components/calendar-heatmap/triggers/click-calendar-date.d.ts +7 -0
  17. package/dist/plugins/viz-components/calendar-heatmap/triggers/index.d.ts +1 -0
  18. package/dist/plugins/viz-components/calendar-heatmap/type.d.ts +19 -0
  19. package/dist/plugins/viz-components/calendar-heatmap/viz-calendar-heatmap-editor.d.ts +3 -0
  20. package/dist/plugins/viz-components/calendar-heatmap/viz-calendar-heatmap.d.ts +3 -0
  21. package/dist/plugins/viz-components/heatmap/option/x-axis.d.ts +3 -0
  22. package/dist/plugins/viz-components/heatmap/option/y-axis.d.ts +3 -0
  23. package/dist/plugins/viz-components/radar-chart/option/index.d.ts +6 -0
  24. 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,2 @@
1
+ import { VizComponent } from '../../../types/plugin';
2
+ export declare const CalendarHeatmapVizComponent: VizComponent;
@@ -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,4 @@
1
+ import { AnyObject } from '~/types';
2
+ import { ITemplateVariable } from '~/utils/template';
3
+ import { ICalendarHeatmapConf } from '../type';
4
+ export declare function getOption(conf: ICalendarHeatmapConf, data: AnyObject[], variables: ITemplateVariable[]): any;
@@ -0,0 +1,10 @@
1
+ export declare function getLegend(oneYearMode: boolean, years: string[]): {
2
+ show: boolean;
3
+ selectedMode: string;
4
+ top: number;
5
+ right: number;
6
+ data: {
7
+ name: string;
8
+ icon: string;
9
+ }[];
10
+ };
@@ -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;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizConfigProps } from '~/types/plugin';
3
+ export declare function VizCalendarHeatmapEditor({ context }: VizConfigProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizViewProps } from '~/types/plugin';
3
+ export declare function VizCalendarHeatmap({ context, instance }: VizViewProps): JSX.Element | null;
@@ -18,6 +18,9 @@ export declare function getXAxis(conf: IHeatmapConf, data: AnyObject[], formatte
18
18
  ellipsis: "...";
19
19
  rotate: number;
20
20
  };
21
+ splitArea: {
22
+ show: boolean;
23
+ };
21
24
  nameLocation: string;
22
25
  nameGap: number;
23
26
  nameTextStyle: {
@@ -19,6 +19,9 @@ export declare function getYAxis(conf: IHeatmapConf, data: AnyObject[], formatte
19
19
  show: boolean;
20
20
  alignWithLabel: boolean;
21
21
  };
22
+ splitArea: {
23
+ show: boolean;
24
+ };
22
25
  nameTextStyle: {
23
26
  fontWeight: string;
24
27
  align: "right" | "center" | "left";
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.24.1",
3
+ "version": "8.26.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",