@devtable/dashboard 14.7.0 → 14.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.
- 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/plugin-adaptor.d.ts +1 -1
- package/dist/components/panel/use-config-viz-instance-service.d.ts +1 -1
- package/dist/components/plugins/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/bar-3d-chart/viz-bar-3d-chart.d.ts +1 -1
- package/dist/components/plugins/viz-components/funnel/viz-funnel-chart.d.ts +1 -1
- package/dist/components/plugins/viz-components/merico-estimation-chart/viz-merico-estimation-chart.d.ts +1 -1
- package/dist/components/plugins/viz-components/regression-chart/viz-regression-chart.d.ts +1 -1
- package/dist/components/plugins/viz-components/sunburst/viz-sunburst.d.ts +1 -1
- package/dist/components/plugins/viz-components/viz-instance-api.d.ts +17 -0
- package/dist/dashboard.es.js +8062 -7851
- package/dist/dashboard.umd.js +76 -76
- package/dist/index.d.ts +1 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
import React from './react';
|
|
2
|
-
import { IConfigComponentProps, IViewComponentProps } from '../plugins/viz-manager/components';
|
|
3
2
|
import { IVizConfig } from '../../types';
|
|
3
|
+
import { IConfigComponentProps, IViewComponentProps } from '../plugins/viz-manager/components';
|
|
4
4
|
type SetVizConfType = {
|
|
5
5
|
setVizConf: (val: React.SetStateAction<IVizConfig['conf']>) => void;
|
|
6
6
|
};
|
|
@@ -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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VizViewProps } from '../../../../types/plugin';
|
|
2
|
-
export declare function VizBar3dChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
2
|
+
export declare function VizBar3dChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VizViewProps } from '../../../../types/plugin';
|
|
2
|
-
export declare function VizFunnelChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
2
|
+
export declare function VizFunnelChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VizViewProps } from '../../../../types/plugin';
|
|
2
|
-
export declare function VizMericoEstimationChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
2
|
+
export declare function VizMericoEstimationChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VizViewProps } from '../../../../types/plugin';
|
|
2
|
-
export declare function VizRegressionChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
2
|
+
export declare function VizRegressionChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VizViewProps } from '../../../../types/plugin';
|
|
2
|
-
export declare function VizSunburst({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
2
|
+
export declare function VizSunburst({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VizInstance } from '../../../types/plugin';
|
|
2
|
+
import { IPanelInfo } from '../../../components/plugins';
|
|
3
|
+
/**
|
|
4
|
+
* Emit viz rendered event
|
|
5
|
+
* @param instance
|
|
6
|
+
* @param data
|
|
7
|
+
*/
|
|
8
|
+
export declare function notifyVizRendered(instance: VizInstance, data: unknown): void;
|
|
9
|
+
export interface IVizRenderedPayload {
|
|
10
|
+
panel: IPanelInfo;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Subscribe to viz rendered event of a viz instance
|
|
14
|
+
* @param instance
|
|
15
|
+
* @param callback
|
|
16
|
+
*/
|
|
17
|
+
export declare function onVizRendered(instance: VizInstance, callback: (data: unknown) => void): () => void;
|