@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.
@@ -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>;
@@ -1,8 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
+ import { PanelModelInstance } from '~/model/views/view/panels';
2
3
  import { ViewModelInstance } from '..';
3
- import { IDashboardPanel } from '../types/dashboard';
4
- interface IPanel extends IDashboardPanel {
4
+ interface IPanel {
5
5
  view: ViewModelInstance;
6
+ panel: PanelModelInstance;
6
7
  }
7
- export declare const Panel: React.FunctionComponent<IPanel>;
8
+ export declare const Panel: import("react").FunctionComponent<IPanel>;
8
9
  export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '..';
3
+ export declare const PanelDropdownMenu: (({ view }: {
4
+ view: ViewModelInstance;
5
+ }) => JSX.Element) & {
6
+ displayName: string;
7
+ };
@@ -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,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare function EditDescription(): JSX.Element;
2
+ export declare const EditDescription: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const EditStyle: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare function PreviewPanel(): JSX.Element;
2
+ export declare const PreviewPanel: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare function EditTitle(): JSX.Element;
2
+ export declare const EditTitle: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,5 +1,2 @@
1
- import React from 'react';
2
- import { ViewModelInstance } from '..';
3
- export declare const PanelTitleBar: React.FunctionComponent<{
4
- view: ViewModelInstance;
5
- }>;
1
+ /// <reference types="react" />
2
+ export declare const PanelTitleBar: import("react").FunctionComponent<object>;
@@ -4,6 +4,7 @@ interface IViz {
4
4
  viz: IVizConfig;
5
5
  data: $TSFixMe;
6
6
  loading: boolean;
7
+ height: string;
7
8
  }
8
9
  export declare const Viz: React.FunctionComponent<IViz>;
9
10
  export {};
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{padding:5px;height:100%;width:100%;max-width:100%;background:transparent;border-radius:4px;border:1px solid #ced4da}.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;padding-top:5px;height:calc(100% - 25px);background-color:#fff}.panel-title-wrapper{text-align:center;transition:background-color .3s ease}.panel-title-wrapper: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}
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "4.8.0",
3
+ "version": "4.10.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",