@devtable/dashboard 4.5.0 → 4.6.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,6 +2,7 @@ import { Instance } from 'mobx-state-tree';
2
2
  import { EViewComponentType } from '~/types';
3
3
  export declare const ViewModel: import("mobx-state-tree").IModelType<{
4
4
  id: import("mobx-state-tree").ISimpleType<string>;
5
+ name: import("mobx-state-tree").ISimpleType<string>;
5
6
  type: import("mobx-state-tree").ISimpleType<string>;
6
7
  config: import("mobx-state-tree").IType<any, any, any>;
7
8
  panels: import("mobx-state-tree").IModelType<{
@@ -766,6 +767,7 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
766
767
  }, {
767
768
  readonly json: {
768
769
  id: string;
770
+ name: string;
769
771
  type: string;
770
772
  config: any;
771
773
  panels: {
@@ -788,8 +790,9 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
788
790
  }[];
789
791
  };
790
792
  } & {
791
- setID(id: string): void;
793
+ setName(name: string): void;
792
794
  setType(type: EViewComponentType): void;
793
795
  setConfig(config: Record<string, any>): void;
796
+ updateConfig(key: string, value: $TSFixMe): void;
794
797
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
795
798
  export declare type ViewModelInstance = Instance<typeof ViewModel>;
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}.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}.panel-root{padding:5px;height:100%;width:100%;max-width:100%;background:transparent;border-radius:5px;box-shadow:0 0 10px #0003}.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}.dashboard-layout{margin-left:-10px;margin-right:-10px}.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 -10px;padding:0 10px 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}.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}.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}.dashboard-layout{margin-left:-10px;margin-right:-10px}.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 -10px;padding:0 10px 10px}
@@ -35,6 +35,7 @@ export declare enum EViewComponentType {
35
35
  }
36
36
  export interface IDashboardView {
37
37
  id: string;
38
+ name: string;
38
39
  type: EViewComponentType;
39
40
  config: Record<string, any>;
40
41
  panels: IDashboardPanel[];
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const PreviewViewDivision: (({ 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 PreviewViewComponent: (({ 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 PreviewViewModal: (({ 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.5.0",
3
+ "version": "4.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",