@devtable/dashboard 4.8.0 → 4.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.
- package/dist/contexts/panel-context.d.ts +10 -14
- package/dist/dashboard.es.js +2150 -2052
- package/dist/dashboard.umd.js +14 -14
- package/dist/main/full-screen-panel.d.ts +2 -2
- package/dist/main/use-panel-full-screen.d.ts +220 -3
- package/dist/model/views/view/index.d.ts +326 -0
- package/dist/model/views/view/panels/index.d.ts +117 -0
- package/dist/model/views/view/panels/panel.d.ts +22 -0
- package/dist/model/views/view/panels/style/border.d.ts +11 -0
- package/dist/model/views/view/panels/style/index.d.ts +19 -0
- package/dist/panel/index.d.ts +5 -4
- package/dist/panel/panel-dropdown-menu.d.ts +7 -0
- package/dist/panel/plugin-adaptor.d.ts +1 -1
- package/dist/panel/settings/panel-config/description.d.ts +3 -1
- package/dist/panel/settings/panel-config/edit-style.d.ts +4 -0
- package/dist/panel/settings/panel-config/preview-panel.d.ts +3 -1
- package/dist/panel/settings/panel-config/title.d.ts +3 -1
- package/dist/panel/title-bar.d.ts +2 -5
- package/dist/panel/viz/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/types/dashboard.d.ts +7 -0
- package/package.json +1 -1
|
@@ -35,6 +35,23 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
35
35
|
setType(type: string): void;
|
|
36
36
|
setConf(conf: import("../../../..").AnyObject): void;
|
|
37
37
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
38
|
+
style: import("mobx-state-tree").IModelType<{
|
|
39
|
+
border: import("mobx-state-tree").IModelType<{
|
|
40
|
+
enabled: import("mobx-state-tree").ISimpleType<boolean>;
|
|
41
|
+
}, {
|
|
42
|
+
readonly json: {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
};
|
|
45
|
+
} & {
|
|
46
|
+
setEnabled(v: boolean): void;
|
|
47
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
48
|
+
}, {
|
|
49
|
+
readonly json: {
|
|
50
|
+
border: {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
38
55
|
}, {
|
|
39
56
|
readonly json: {
|
|
40
57
|
id: string;
|
|
@@ -53,6 +70,11 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
53
70
|
type: string;
|
|
54
71
|
conf: import("../../../..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("../../../..").AnyObject, import("../../../..").AnyObject, import("../../../..").AnyObject>>;
|
|
55
72
|
};
|
|
73
|
+
style: {
|
|
74
|
+
border: {
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
56
78
|
};
|
|
57
79
|
} & {
|
|
58
80
|
setID(id: string): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Instance } from 'mobx-state-tree';
|
|
2
|
+
export declare const PanelStyleBorderModel: import("mobx-state-tree").IModelType<{
|
|
3
|
+
enabled: import("mobx-state-tree").ISimpleType<boolean>;
|
|
4
|
+
}, {
|
|
5
|
+
readonly json: {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
} & {
|
|
9
|
+
setEnabled(v: boolean): void;
|
|
10
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
11
|
+
export declare type PanelStyleBorderModelInstance = Instance<typeof PanelStyleBorderModel>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Instance } from 'mobx-state-tree';
|
|
2
|
+
export declare const PanelStyleModel: import("mobx-state-tree").IModelType<{
|
|
3
|
+
border: import("mobx-state-tree").IModelType<{
|
|
4
|
+
enabled: import("mobx-state-tree").ISimpleType<boolean>;
|
|
5
|
+
}, {
|
|
6
|
+
readonly json: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
};
|
|
9
|
+
} & {
|
|
10
|
+
setEnabled(v: boolean): void;
|
|
11
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
12
|
+
}, {
|
|
13
|
+
readonly json: {
|
|
14
|
+
border: {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
19
|
+
export declare type PanelStyleModelInstance = Instance<typeof PanelStyleModel>;
|
package/dist/panel/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PanelModelInstance } from '~/model/views/view/panels';
|
|
2
3
|
import { ViewModelInstance } from '..';
|
|
3
|
-
|
|
4
|
-
interface IPanel extends IDashboardPanel {
|
|
4
|
+
interface IPanel {
|
|
5
5
|
view: ViewModelInstance;
|
|
6
|
+
panel: PanelModelInstance;
|
|
6
7
|
}
|
|
7
|
-
export declare const Panel:
|
|
8
|
+
export declare const Panel: import("react").FunctionComponent<IPanel>;
|
|
8
9
|
export {};
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { IConfigComponentProps, IViewComponentProps } from '../plugins/viz-manager/components';
|
|
3
3
|
import { IVizConfig } from '../types';
|
|
4
4
|
export declare function PluginVizConfigComponent({ setVizConf, ...props }: IConfigComponentProps & {
|
|
5
|
-
setVizConf: (val: React.SetStateAction<IVizConfig>) => void;
|
|
5
|
+
setVizConf: (val: React.SetStateAction<IVizConfig['conf']>) => void;
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
export declare function PluginVizViewComponent(props: IViewComponentProps): JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const PanelTitleBar: React.FunctionComponent<{
|
|
4
|
-
view: ViewModelInstance;
|
|
5
|
-
}>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PanelTitleBar: import("react").FunctionComponent<object>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-settings-tabs{width:100%;height:100%}.filter-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.filter-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.filter-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.panel-root{
|
|
1
|
+
.filter-settings-tabs{width:100%;height:100%}.filter-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.filter-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.filter-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.panel-root{height:100%;width:100%;max-width:100%;background:transparent;border-radius:4px;position:relative}.panel-settings-tabs{width:100%;height:100%}.panel-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.panel-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.panel-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.viz-root{width:100%;overflow:scroll;flex-grow:1;background-color:#fff}.panel-dropdown-target{text-align:center;transition:background-color .3s ease}.panel-dropdown-target:hover{cursor:pointer;background-color:#6464640d}.react-grid-item{padding:0}.remove-panel{position:absolute;right:2px;top:0;cursor:pointer}.code-textarea textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.dashboard-root{overflow:scroll;padding:0 10px 10px;height:100%}.dashboard-sticky-area{z-index:100;background:white;margin:0;padding:0 10px}
|
|
@@ -6,6 +6,11 @@ export interface IVizConfig {
|
|
|
6
6
|
type: string;
|
|
7
7
|
conf: AnyObject;
|
|
8
8
|
}
|
|
9
|
+
interface IDashboardPanelStyle {
|
|
10
|
+
border: {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
9
14
|
export interface IDashboardPanel {
|
|
10
15
|
id: string;
|
|
11
16
|
title: string;
|
|
@@ -20,6 +25,7 @@ export interface IDashboardPanel {
|
|
|
20
25
|
};
|
|
21
26
|
queryID: string;
|
|
22
27
|
viz: IVizConfig;
|
|
28
|
+
style: IDashboardPanelStyle;
|
|
23
29
|
}
|
|
24
30
|
export declare enum DashboardMode {
|
|
25
31
|
Use = "use",
|
|
@@ -50,3 +56,4 @@ export interface IDashboard {
|
|
|
50
56
|
export interface IDashboardConfig {
|
|
51
57
|
apiBaseURL: string;
|
|
52
58
|
}
|
|
59
|
+
export {};
|