@devtable/dashboard 4.19.0 → 5.1.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.
@@ -2,5 +2,7 @@
2
2
  interface IPreviewSQL {
3
3
  value: string;
4
4
  }
5
- export declare function PreviewSQL({ value }: IPreviewSQL): JSX.Element;
5
+ export declare const PreviewSQL: (({ value }: IPreviewSQL) => JSX.Element) & {
6
+ displayName: string;
7
+ };
6
8
  export {};
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { IFilterConfig_DateRange } from '../../model/filters/filter/date-range';
2
+ import { IFilterConfig_DateRange, TDateRangePickerValue } from '../../model/filters/filter/date-range';
3
3
  interface IFilterDateRange {
4
4
  label: string;
5
5
  config: IFilterConfig_DateRange;
6
- value: $TSFixMe;
6
+ value: TDateRangePickerValue;
7
7
  onChange: (v: $TSFixMe) => void;
8
8
  }
9
9
  export declare const FilterDateRange: (({ label, config, value, onChange }: IFilterDateRange) => JSX.Element) & {
@@ -0,0 +1,5 @@
1
+ import { IDashboardOperationSchema } from '~/types/plugin';
2
+ export interface IOpenViewOperationConfig {
3
+ viewID: string;
4
+ }
5
+ export declare const OpenView: IDashboardOperationSchema;
@@ -0,0 +1,5 @@
1
+ import { IDashboardOperationSchema } from '~/types/plugin';
2
+ export interface ISetFilterValuesOperationConfig {
3
+ dictionary: Record<string, string>;
4
+ }
5
+ export declare const SetFilterValues: IDashboardOperationSchema;
@@ -0,0 +1,2 @@
1
+ import { DashboardModelInstance } from '..';
2
+ export declare function useInteractionOperationHacks(model: DashboardModelInstance, inEditMode: boolean): void;
@@ -7,6 +7,8 @@ interface IDashboardProps {
7
7
  className?: string;
8
8
  update: (dashboard: IDashboard) => Promise<void>;
9
9
  config: IDashboardConfig;
10
+ fullScreenPanelID: string;
11
+ setFullScreenPanelID: (v: string) => void;
10
12
  }
11
13
  export declare const Dashboard: React.FunctionComponent<IDashboardProps>;
12
14
  export {};
@@ -6,6 +6,10 @@ interface IReadOnlyDashboard {
6
6
  dashboard: IDashboard;
7
7
  className?: string;
8
8
  config: IDashboardConfig;
9
+ fullScreenPanelID: string;
10
+ setFullScreenPanelID: (v: string) => void;
9
11
  }
10
- export declare function ReadOnlyDashboard({ context, dashboard, className, config }: IReadOnlyDashboard): JSX.Element;
12
+ export declare const ReadOnlyDashboard: (({ context, dashboard, className, config, fullScreenPanelID, setFullScreenPanelID, }: IReadOnlyDashboard) => JSX.Element) & {
13
+ displayName: string;
14
+ };
11
15
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ViewModelInstance } from '..';
2
- export declare function usePanelFullScreen(view: ViewModelInstance): {
2
+ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: string, setPanelID: (v: string) => void): {
3
3
  viewPanelInFullScreen: (id: string) => void;
4
4
  exitFullScreen: () => void;
5
5
  inFullScreen: boolean;
@@ -3,6 +3,8 @@ import { ViewModelInstance } from '..';
3
3
  interface IMainDashboardView {
4
4
  view: ViewModelInstance;
5
5
  saveDashboardChanges: () => void;
6
+ fullScreenPanelID: string;
7
+ setFullScreenPanelID: (v: string) => void;
6
8
  }
7
9
  export declare const MainDashboardView: import("react").FunctionComponent<IMainDashboardView>;
8
10
  export {};
@@ -2,6 +2,8 @@
2
2
  import { ViewModelInstance } from '..';
3
3
  interface IReadOnlyDashboardView {
4
4
  view: ViewModelInstance;
5
+ fullScreenPanelID: string;
6
+ setFullScreenPanelID: (v: string) => void;
5
7
  }
6
8
  export declare const ReadOnlyDashboardView: import("react").FunctionComponent<IReadOnlyDashboardView>;
7
9
  export {};
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const RenderViewDivision: (({ children }: {
3
+ children: ReactNode;
4
+ }) => JSX.Element) & {
5
+ displayName: string;
6
+ };
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ViewModelInstance } from '~/model';
3
+ export declare const RenderViewComponent: (({ view, children }: {
4
+ view: ViewModelInstance;
5
+ children: ReactNode;
6
+ }) => JSX.Element) & {
7
+ displayName: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ViewModelInstance } from '~/model';
3
+ export declare const RenderViewModal: (({ children, view }: {
4
+ children: ReactNode;
5
+ view: ViewModelInstance;
6
+ }) => JSX.Element) & {
7
+ displayName: string;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "4.19.0",
3
+ "version": "5.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -91,6 +91,7 @@
91
91
  "chroma-js": "^2.4.2",
92
92
  "d3-array": "3.2.0",
93
93
  "d3-regression": "1.2.8",
94
+ "dayjs": "1.11.6",
94
95
  "echarts": "^5.3.2",
95
96
  "echarts-for-react": "^3.0.2",
96
97
  "echarts-gl": "^2.0.9",