@devtable/dashboard 14.8.0 → 14.10.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,7 @@ interface IFilterDateRange {
6
6
  onChange: (v: DateRangeValue) => void;
7
7
  disabled?: boolean;
8
8
  }
9
+ export declare const formatDateRangeValue: (value: DateRangeValue) => DateRangeValue;
9
10
  export declare const FilterDateRange: (({ label, config, value, onChange, disabled }: IFilterDateRange) => import('./react/jsx-runtime').JSX.Element) & {
10
11
  displayName: string;
11
12
  };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ViewMetaInstance } from '../../model';
3
+ export { type IFormattedFilter, useVisibleFilters } from './use-visible-filters';
3
4
  export declare const Filters: import('./react').FunctionComponent<{
4
5
  view: ViewMetaInstance;
5
6
  }>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the formatted filter values in the current view.
3
+ */
4
+ export declare function useVisibleFilters(): IFormattedFilter[];
5
+ export interface IFormattedFilter {
6
+ label: string;
7
+ value: string | string[];
8
+ }
@@ -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
  };
@@ -3,3 +3,4 @@ export * from './plugin-context';
3
3
  export * from './plugin-data-migrator';
4
4
  export * from './hooks';
5
5
  export * from './color-manager';
6
+ export { onVizRendered, notifyVizRendered } from './viz-components/viz-instance-api';
@@ -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;