@devtable/dashboard 11.7.0 → 11.9.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.
@@ -6,6 +6,40 @@ interface IGetOption {
6
6
  variables: ITemplateVariable[];
7
7
  }
8
8
  export declare function getOption({ config, data, variables }: IGetOption): {
9
+ dataZoom: ({
10
+ type: string;
11
+ xAxisIndex: number[];
12
+ filterMode: "none" | "filter";
13
+ minSpan: number;
14
+ yAxisIndex?: undefined;
15
+ bottom?: undefined;
16
+ top?: undefined;
17
+ height?: undefined;
18
+ moveHandleSize?: undefined;
19
+ showDataShadow?: undefined;
20
+ } | {
21
+ type: string;
22
+ yAxisIndex: number[];
23
+ filterMode: "none" | "filter";
24
+ minSpan: number;
25
+ xAxisIndex?: undefined;
26
+ bottom?: undefined;
27
+ top?: undefined;
28
+ height?: undefined;
29
+ moveHandleSize?: undefined;
30
+ showDataShadow?: undefined;
31
+ } | {
32
+ type: string;
33
+ xAxisIndex: number[];
34
+ filterMode: "none" | "filter";
35
+ bottom: string;
36
+ top: number;
37
+ height: number;
38
+ moveHandleSize: number;
39
+ showDataShadow: boolean;
40
+ minSpan: number;
41
+ yAxisIndex?: undefined;
42
+ })[];
9
43
  grid: {
10
44
  top: number;
11
45
  left: number;
@@ -3,6 +3,7 @@ import { IEchartsTooltipMetric } from '../../../../components/plugins/common-ech
3
3
  import { AnyObject } from '../../../../types';
4
4
  import { TNumberFormat } from '../../../../utils';
5
5
  import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
6
+ import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
6
7
  export interface IBoxplotReferenceLine {
7
8
  name: string;
8
9
  template: string;
@@ -39,6 +40,7 @@ export interface IBoxplotChartConf {
39
40
  color: string;
40
41
  reference_lines: IBoxplotReferenceLine[];
41
42
  legend: TBoxplotLegend;
43
+ dataZoom: TEchartsDataZoomConfig;
42
44
  }
43
45
  export declare const DEFAULT_CONFIG: IBoxplotChartConf;
44
46
  export type TOutlierDataItem = [string, number, AnyObject];
@@ -1,8 +1,9 @@
1
1
  import { TEchartsDataZoomConfig } from './types';
2
- export declare function getEchartsDataZoomOption(conf: TEchartsDataZoomConfig): ({
2
+ type FilterMode = 'none' | 'filter';
3
+ export declare function getEchartsDataZoomOption(conf: TEchartsDataZoomConfig, filterMode?: FilterMode): ({
3
4
  type: string;
4
5
  xAxisIndex: number[];
5
- filterMode: string;
6
+ filterMode: FilterMode;
6
7
  minSpan: number;
7
8
  yAxisIndex?: undefined;
8
9
  bottom?: undefined;
@@ -13,7 +14,7 @@ export declare function getEchartsDataZoomOption(conf: TEchartsDataZoomConfig):
13
14
  } | {
14
15
  type: string;
15
16
  yAxisIndex: number[];
16
- filterMode: string;
17
+ filterMode: FilterMode;
17
18
  minSpan: number;
18
19
  xAxisIndex?: undefined;
19
20
  bottom?: undefined;
@@ -24,7 +25,7 @@ export declare function getEchartsDataZoomOption(conf: TEchartsDataZoomConfig):
24
25
  } | {
25
26
  type: string;
26
27
  xAxisIndex: number[];
27
- filterMode: string;
28
+ filterMode: FilterMode;
28
29
  bottom: string;
29
30
  top: number;
30
31
  height: number;
@@ -33,3 +34,4 @@ export declare function getEchartsDataZoomOption(conf: TEchartsDataZoomConfig):
33
34
  minSpan: number;
34
35
  yAxisIndex?: undefined;
35
36
  })[];
37
+ export {};
@@ -10,3 +10,9 @@ export declare const DEFAULT_DATA_ZOOM_CONFIG: {
10
10
  x_axis_slider: boolean;
11
11
  y_axis_slider: boolean;
12
12
  };
13
+ export declare function getDefaultDataZoomConfig(): {
14
+ x_axis_scroll: boolean;
15
+ y_axis_scroll: boolean;
16
+ x_axis_slider: boolean;
17
+ y_axis_slider: boolean;
18
+ };
@@ -4,7 +4,7 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, _var
4
4
  dataZoom: ({
5
5
  type: string;
6
6
  xAxisIndex: number[];
7
- filterMode: string;
7
+ filterMode: "none" | "filter";
8
8
  minSpan: number;
9
9
  yAxisIndex?: undefined;
10
10
  bottom?: undefined;
@@ -15,7 +15,7 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, _var
15
15
  } | {
16
16
  type: string;
17
17
  yAxisIndex: number[];
18
- filterMode: string;
18
+ filterMode: "none" | "filter";
19
19
  minSpan: number;
20
20
  xAxisIndex?: undefined;
21
21
  bottom?: undefined;
@@ -26,7 +26,7 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, _var
26
26
  } | {
27
27
  type: string;
28
28
  xAxisIndex: number[];
29
- filterMode: string;
29
+ filterMode: "none" | "filter";
30
30
  bottom: string;
31
31
  top: number;
32
32
  height: number;
@@ -12,6 +12,7 @@ interface IDashboardProps {
12
12
  config: IDashboardConfig;
13
13
  onChange?: (dashboard: IDashboard) => void;
14
14
  headerSlot?: ReactNode;
15
+ filterValues?: Record<string, any>;
15
16
  onFilterValuesChange?: (filterValues: Record<string, any>) => void;
16
17
  onExit: OnExitCallback;
17
18
  }
@@ -718,6 +718,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
718
718
  getSelectOption(id: string): any;
719
719
  } & {
720
720
  setValues(values: Record<string, any>): void;
721
+ patchValues(values: Record<string, any>): void;
721
722
  setValueByKey(key: string, value: any): void;
722
723
  getValueByKey(key: string): any;
723
724
  getSchema(ids: string[], raw?: boolean | undefined): {
@@ -9,9 +9,10 @@ interface IReadOnlyDashboard {
9
9
  config: IDashboardConfig;
10
10
  fullScreenPanelID: string;
11
11
  setFullScreenPanelID: (v: string) => void;
12
+ filterValues?: Record<string, any>;
12
13
  onFilterValuesChange?: (filterValues: Record<string, any>) => void;
13
14
  }
14
- export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, onFilterValuesChange, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
15
+ export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, filterValues, onFilterValuesChange, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
15
16
  displayName: string;
16
17
  };
17
18
  export {};