@devtable/dashboard 14.49.0 → 14.50.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-editor/dropdown-menu-items/delete-panel.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/dropdown-menu-items.d.ts +9 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/duplicate.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/index.d.ts +1 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/open-tab-data.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/open-tab-interaction.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/open-tab-panel.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/open-tab-variable.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/open-tab-visualization.d.ts +6 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/use-items.d.ts +3 -0
- package/dist/components/panel/panel-editor/dropdown-menu-items/use-query-items.d.ts +5 -0
- package/dist/components/panel/panel-render/dropdown-menu-items/download-data.d.ts +3 -0
- package/dist/components/panel/panel-render/dropdown-menu-items/download-schema.d.ts +3 -0
- package/dist/components/panel/panel-render/dropdown-menu-items/download-screenshot.d.ts +3 -0
- package/dist/components/panel/panel-render/dropdown-menu-items/dropdown-menu-items.d.ts +9 -0
- package/dist/components/panel/panel-render/{dropdown-menu/index.d.ts → dropdown-menu-items/enter-fullscreen.d.ts} +1 -2
- package/dist/components/panel/panel-render/dropdown-menu-items/index.d.ts +6 -0
- package/dist/components/panel/panel-render/dropdown-menu-items/refresh.d.ts +3 -0
- package/dist/components/panel/panel-render/dropdown-menu-items/use-items.d.ts +3 -0
- package/dist/components/panel/panel-render/panel-dropdown-menu.d.ts +6 -0
- package/dist/contexts/additional-panel-menu-items.d.ts +8 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/dashboard-editor/dashboard-editor.d.ts +2 -1
- package/dist/dashboard-render/dashboard-render.d.ts +3 -2
- package/dist/dashboard.es.js +6853 -6665
- package/dist/dashboard.umd.js +106 -106
- package/dist/stats.html +1 -1
- package/dist/types/dashboard.d.ts +11 -0
- package/dist/version.json +2 -2
- package/package.json +1 -1
- package/dist/components/panel/panel-editor/dropdown-menu/index.d.ts +0 -7
- package/dist/contexts/panel-context.d.ts +0 -30438
- /package/dist/components/panel/panel-editor/{dropdown-menu → dropdown-menu-items}/query-menu-items.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewMetaInstance } from '../../../../model';
|
|
3
|
+
type Props = {
|
|
4
|
+
view: ViewMetaInstance;
|
|
5
|
+
};
|
|
6
|
+
export declare const PanelDropdownMenuItems: (({ view }: Props) => import('./react').ReactNode[]) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dropdown-menu-items';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ViewMetaInstance } from '../../../../model';
|
|
3
|
+
type Props = {
|
|
4
|
+
view: ViewMetaInstance;
|
|
5
|
+
};
|
|
6
|
+
export declare const PanelDropdownMenuItems: (({ view }: Props) => import('./react').ReactNode[]) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ViewMetaInstance } from '../../../../model';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const EnterFullScreen: (({ view }: {
|
|
3
3
|
view: ViewMetaInstance;
|
|
4
|
-
title: string;
|
|
5
4
|
}) => import('./react/jsx-runtime').JSX.Element | null) & {
|
|
6
5
|
displayName: string;
|
|
7
6
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from './react';
|
|
2
|
+
import { PanelMenuItem } from '../types';
|
|
3
|
+
export interface IAdditionalPanelMenuItemsContext {
|
|
4
|
+
items: PanelMenuItem[];
|
|
5
|
+
}
|
|
6
|
+
export declare const AdditionalPanelMenuItemsContext: React.Context<IAdditionalPanelMenuItemsContext>;
|
|
7
|
+
export declare const AdditionalPanelMenuItemsContextProvider: React.Provider<IAdditionalPanelMenuItemsContext>;
|
|
8
|
+
export declare function useAdditionalPanelMenuItems(): IAdditionalPanelMenuItemsContext;
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from './react';
|
|
|
2
2
|
import { OnExitCallback } from '../dashboard-editor/ui/header/main-header';
|
|
3
3
|
import { ContextRecordType } from '../model';
|
|
4
4
|
import { IDashboardConfig } from '..';
|
|
5
|
-
import { DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
5
|
+
import { PanelMenuItem, DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
6
6
|
interface IDashboardProps {
|
|
7
7
|
context: ContextRecordType;
|
|
8
8
|
dashboard: IDashboard;
|
|
@@ -16,6 +16,7 @@ interface IDashboardProps {
|
|
|
16
16
|
onFilterValuesChange?: (filterValues: Record<string, any>) => void;
|
|
17
17
|
onExit: OnExitCallback;
|
|
18
18
|
lang: string;
|
|
19
|
+
additionalPanelMenuItems?: PanelMenuItem[];
|
|
19
20
|
}
|
|
20
21
|
export interface IDashboardModel {
|
|
21
22
|
readonly json: IDashboard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContextRecordType, TabInfo } from '../model';
|
|
2
2
|
import { IDashboardConfig } from '..';
|
|
3
|
-
import { DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
3
|
+
import { PanelMenuItem, DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
4
4
|
export interface IReadOnlyDashboard {
|
|
5
5
|
context: ContextRecordType;
|
|
6
6
|
dashboard: IDashboard;
|
|
@@ -15,7 +15,8 @@ export interface IReadOnlyDashboard {
|
|
|
15
15
|
onActiveTabChange?: (tab: TabInfo | null) => void;
|
|
16
16
|
lang: string;
|
|
17
17
|
onScreenshot?: (canvas: HTMLCanvasElement) => void;
|
|
18
|
+
additionalPanelMenuItems?: PanelMenuItem[];
|
|
18
19
|
}
|
|
19
|
-
export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, filterValues, onFilterValuesChange, activeTab, onActiveTabChange, lang, onScreenshot, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
|
|
20
|
+
export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, filterValues, onFilterValuesChange, activeTab, onActiveTabChange, lang, onScreenshot, additionalPanelMenuItems, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
|
|
20
21
|
displayName: string;
|
|
21
22
|
};
|