@devtable/dashboard 14.6.0 → 14.8.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/panel/panel-render/client-panel-render.d.ts +10 -0
- package/dist/components/panel/panel-render/index.d.ts +1 -0
- package/dist/components/panel/panel-render/panel-viz-features.d.ts +19 -0
- package/dist/components/panel/use-config-viz-instance-service.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +2 -1
- package/dist/components/plugins/viz-components/cartesian/option/series/series_items.d.ts +1 -1
- package/dist/components/plugins/viz-components/cartesian/type.d.ts +2 -0
- package/dist/dashboard.es.js +4928 -4787
- package/dist/dashboard.umd.js +69 -69
- package/dist/interactions/hooks/use-current-interaction-manager.d.ts +1 -1
- package/dist/interactions/null-interaction-manager.d.ts +10 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IClientPanelRenderProps {
|
|
2
|
+
panelId: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Public API to render a panel on the dashboard user side.
|
|
6
|
+
* This component should be rendered by the ReadOnlyDashboard/DashboardEditor component, you can use it with the panel addon.
|
|
7
|
+
* @param props
|
|
8
|
+
* @constructor
|
|
9
|
+
*/
|
|
10
|
+
export declare function ClientPanelRender(props: IClientPanelRenderProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from './react';
|
|
2
|
+
export interface IPanelVizFeatures {
|
|
3
|
+
withInteraction: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Render panel title
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
withPanelTitle: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Render panel addon from plugins
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
withAddon: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IPanelVizFeaturesProps extends Partial<IPanelVizFeatures> {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function PanelVizFeatures({ children, ...rest }: IPanelVizFeaturesProps): import('./react/jsx-runtime').JSX.Element;
|
|
19
|
+
export declare function usePanelVizFeatures(): IPanelVizFeatures;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IPanelInfo } from '../../components/plugins';
|
|
2
2
|
import { IServiceLocator } from '../../components/plugins/service/service-locator';
|
|
3
|
-
export declare function useConfigVizInstanceService(panel: IPanelInfo): (services: IServiceLocator) => IServiceLocator;
|
|
3
|
+
export declare function useConfigVizInstanceService(panel: IPanelInfo, withInteraction?: boolean): (services: IServiceLocator) => IServiceLocator;
|
|
@@ -26,7 +26,8 @@ export declare function v18(legacyConf: any, { panelModel }: IMigrationEnv): ICa
|
|
|
26
26
|
export declare function v19(legacyConf: any): ICartesianChartConf;
|
|
27
27
|
export declare function v20(legacyConf: $TSFixMe, panelModel: PanelModelInstance): ICartesianChartConf;
|
|
28
28
|
export declare function v21(legacyConf: any): ICartesianChartConf;
|
|
29
|
+
export declare function v22(legacyConf: any): ICartesianChartConf;
|
|
29
30
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
30
31
|
configVersions(): void;
|
|
31
|
-
readonly VERSION =
|
|
32
|
+
readonly VERSION = 22;
|
|
32
33
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICartesianChartConf, ICartesianChartSeriesItem } from '../../type';
|
|
2
2
|
import { DataTemplateType } from './types';
|
|
3
|
-
export declare function getSeriesItemOrItems({ x_axis_data_key, x_axis }: ICartesianChartConf, { y_axis_data_key, yAxisIndex, label_position, name, group_by_key, aggregation_on_value, stack, color, display_name_on_line, symbolSize, hide_in_legend, areaStyle, ...rest }: ICartesianChartSeriesItem, dataTemplate: DataTemplateType[], data: TPanelData, variableValueMap: Record<string, string | number>, labelFormatters: Record<string, $TSFixMe>): any;
|
|
3
|
+
export declare function getSeriesItemOrItems({ x_axis_data_key, x_axis }: ICartesianChartConf, { y_axis_data_key, yAxisIndex, label_position, name, group_by_key, order_in_group, aggregation_on_value, stack, color, display_name_on_line, symbolSize, hide_in_legend, areaStyle, ...rest }: ICartesianChartSeriesItem, dataTemplate: DataTemplateType[], data: TPanelData, variableValueMap: Record<string, string | number>, labelFormatters: Record<string, $TSFixMe>): any;
|
|
@@ -11,6 +11,7 @@ import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-f
|
|
|
11
11
|
import { EChartsYAxisPosition } from '../../common-echarts-fields/y-axis-position';
|
|
12
12
|
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
13
13
|
import { EchartsLineAreaStyle } from '../../common-echarts-fields/line-area-style';
|
|
14
|
+
import { SeriesOrder } from '../../common-echarts-fields/series-order';
|
|
14
15
|
export interface ICartesianChartSeriesItem {
|
|
15
16
|
type: 'line' | 'bar' | 'scatter';
|
|
16
17
|
name: string;
|
|
@@ -29,6 +30,7 @@ export interface ICartesianChartSeriesItem {
|
|
|
29
30
|
smooth: boolean;
|
|
30
31
|
step: false | 'start' | 'middle' | 'end';
|
|
31
32
|
group_by_key: string;
|
|
33
|
+
order_in_group: SeriesOrder;
|
|
32
34
|
aggregation_on_value?: AggregationType;
|
|
33
35
|
lineStyle: {
|
|
34
36
|
type: IEChartsLineType;
|