@devtable/dashboard 7.21.0 → 8.0.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.
Files changed (91) hide show
  1. package/dist/contexts/layout-state-context.d.ts +0 -1
  2. package/dist/contexts/panel-context.d.ts +2 -0
  3. package/dist/dashboard.es.js +29927 -29342
  4. package/dist/dashboard.umd.js +138 -129
  5. package/dist/filter/filter-settings/filter-setting.d.ts +0 -1
  6. package/dist/main/dashboard-editor/header/index.d.ts +6 -0
  7. package/dist/main/{main.d.ts → dashboard-editor/index.d.ts} +2 -4
  8. package/dist/main/dashboard-editor/navbar/index.d.ts +4 -0
  9. package/dist/{panel/settings/viz-config/preview-viz.d.ts → main/dashboard-editor/navbar/view-links.d.ts} +1 -1
  10. package/dist/main/dashboard-editor/settings/content/edit-filter/index.d.ts +6 -0
  11. package/dist/main/dashboard-editor/settings/content/edit-mock-context/index.d.ts +4 -0
  12. package/dist/main/dashboard-editor/settings/content/edit-panel/index.d.ts +7 -0
  13. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/panel-config/description.d.ts +0 -0
  14. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/panel-config/edit-style.d.ts +0 -0
  15. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/panel-config/index.d.ts +0 -0
  16. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/panel-config/title.d.ts +0 -0
  17. package/dist/main/dashboard-editor/settings/content/edit-panel/panel-editor.d.ts +7 -0
  18. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/pick-query/index.d.ts +0 -0
  19. package/dist/{panel/settings/panel-config → main/dashboard-editor/settings/content/edit-panel}/preview-panel.d.ts +0 -0
  20. package/dist/main/dashboard-editor/settings/content/edit-panel/preview-viz.d.ts +6 -0
  21. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/variable-config/model.d.ts +0 -0
  22. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/variable-config/styles.d.ts +0 -0
  23. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/variable-config/variable-config-panel.d.ts +1 -1
  24. package/dist/{panel/settings → main/dashboard-editor/settings/content/edit-panel}/variable-config/variable-field.d.ts +0 -0
  25. package/dist/{panel/settings/viz-config → main/dashboard-editor/settings/content/edit-panel}/viz-conf.d.ts +0 -0
  26. package/dist/main/dashboard-editor/settings/content/edit-query/index.d.ts +6 -0
  27. package/dist/main/dashboard-editor/settings/content/edit-sql-snippet/index.d.ts +6 -0
  28. package/dist/main/dashboard-editor/settings/content/edit-view/edit-view-form/config-fields/config.division.d.ts +7 -0
  29. package/dist/main/dashboard-editor/settings/content/edit-view/edit-view-form/config-fields/config.tabs.d.ts +7 -0
  30. package/dist/main/dashboard-editor/settings/content/edit-view/edit-view-form/config-fields/index.d.ts +7 -0
  31. package/dist/main/dashboard-editor/settings/content/edit-view/edit-view-form/config-fields/modal/index.d.ts +7 -0
  32. package/dist/main/{switch-views/edit-view-modal → dashboard-editor/settings/content/edit-view/edit-view-form}/config-fields/modal/modal-title-editor/function-editor.d.ts +0 -0
  33. package/dist/main/{switch-views/edit-view-modal → dashboard-editor/settings/content/edit-view/edit-view-form}/config-fields/modal/modal-title-editor/index.d.ts +0 -0
  34. package/dist/main/{switch-views/edit-view-modal → dashboard-editor/settings/content/edit-view/edit-view-form}/config-fields/modal/modal-title-editor/types.d.ts +0 -0
  35. package/dist/main/dashboard-editor/settings/content/edit-view/index.d.ts +6 -0
  36. package/dist/main/dashboard-editor/settings/content/index.d.ts +4 -0
  37. package/dist/main/dashboard-editor/settings/content/utils.d.ts +8 -0
  38. package/dist/{definition-editor → main/dashboard-editor/settings/content/view-global-vars}/global-variables-guide.d.ts +0 -0
  39. package/dist/main/dashboard-editor/settings/content/view-global-vars/global-variables-modal.d.ts +4 -0
  40. package/dist/main/dashboard-editor/settings/content/view-global-vars/index.d.ts +4 -0
  41. package/dist/main/{switch-views → dashboard-editor/settings}/index.d.ts +1 -1
  42. package/dist/main/dashboard-editor/settings/navbar/add-item-button/add-a-filter.d.ts +4 -0
  43. package/dist/main/dashboard-editor/settings/navbar/add-item-button/add-a-query.d.ts +4 -0
  44. package/dist/main/dashboard-editor/settings/navbar/add-item-button/add-a-sql-snippet.d.ts +4 -0
  45. package/dist/main/dashboard-editor/settings/navbar/add-item-button/add-a-view.d.ts +4 -0
  46. package/dist/main/dashboard-editor/settings/navbar/add-item-button/index.d.ts +9 -0
  47. package/dist/main/dashboard-editor/settings/navbar/index.d.ts +4 -0
  48. package/dist/main/dashboard-editor/settings/navbar/nav-links.d.ts +4 -0
  49. package/dist/main/{read-only.d.ts → dashboard-render/index.d.ts} +2 -2
  50. package/dist/main/index.d.ts +2 -2
  51. package/dist/model/editor/index.d.ts +36 -0
  52. package/dist/model/queries/index.d.ts +5 -2
  53. package/dist/model/sql-snippets/index.d.ts +8 -0
  54. package/dist/model/views/view/index.d.ts +6 -0
  55. package/dist/model/views/view/panels/index.d.ts +6 -0
  56. package/dist/plugins/viz-components/cartesian/option/y-axis.d.ts +2 -2
  57. package/dist/plugins/viz-components/pareto-chart/option/index.d.ts +2 -2
  58. package/dist/plugins/viz-components/pareto-chart/option/y-axes.d.ts +2 -2
  59. package/dist/plugins/viz-components/pie-chart/viz-pie-chart.d.ts +1 -1
  60. package/dist/plugins/viz-components/scatter-chart/option/y-axis.d.ts +2 -2
  61. package/dist/plugins/viz-components/sunburst/option/levels.d.ts +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/styles/action-icon-group-style.d.ts +22 -0
  64. package/dist/types/dashboard.d.ts +15 -0
  65. package/dist/{panel → utils}/error-boundary.d.ts +0 -0
  66. package/dist/view/index.d.ts +2 -2
  67. package/dist/view/view-editor.d.ts +7 -0
  68. package/dist/view/view-render.d.ts +7 -0
  69. package/package.json +1 -1
  70. package/dist/definition-editor/data-editor-modal.d.ts +0 -7
  71. package/dist/definition-editor/index.d.ts +0 -1
  72. package/dist/definition-editor/mock-context-editor/editor.d.ts +0 -2
  73. package/dist/definition-editor/mock-context-editor/index.d.ts +0 -2
  74. package/dist/definition-editor/query-editor/index.d.ts +0 -2
  75. package/dist/definition-editor/query-editor/select-or-add-query.d.ts +0 -7
  76. package/dist/definition-editor/sql-snippet-editor/editor.d.ts +0 -2
  77. package/dist/definition-editor/sql-snippet-editor/index.d.ts +0 -2
  78. package/dist/filter/filter-settings/filter-settings.d.ts +0 -2
  79. package/dist/filter/filter-settings/index.d.ts +0 -7
  80. package/dist/main/actions.d.ts +0 -7
  81. package/dist/main/switch-views/edit-view-modal/config-fields/config.division.d.ts +0 -4
  82. package/dist/main/switch-views/edit-view-modal/config-fields/config.tabs.d.ts +0 -4
  83. package/dist/main/switch-views/edit-view-modal/config-fields/index.d.ts +0 -4
  84. package/dist/main/switch-views/edit-view-modal/config-fields/modal/index.d.ts +0 -4
  85. package/dist/main/switch-views/edit-view-modal/form.d.ts +0 -4
  86. package/dist/main/switch-views/edit-view-modal/index.d.ts +0 -9
  87. package/dist/main/switch-views/select-with-add-and-edit.d.ts +0 -18
  88. package/dist/panel/settings/index.d.ts +0 -7
  89. package/dist/panel/settings/viz-config/index.d.ts +0 -2
  90. package/dist/view/main-view.d.ts +0 -8
  91. package/dist/view/read-only-view.d.ts +0 -7
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { FilterModelInstance } from '../../model';
3
3
  interface IFilterSetting {
4
4
  filter: FilterModelInstance;
5
- index: number;
6
5
  }
7
6
  export declare const FilterSetting: React.FunctionComponent<IFilterSetting>;
8
7
  export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const DashboardEditorHeader: (({ saveDashboardChanges }: {
3
+ saveDashboardChanges: () => void;
4
+ }) => JSX.Element) & {
5
+ displayName: string;
6
+ };
@@ -1,14 +1,12 @@
1
1
  import React from 'react';
2
- import { ContextInfoType } from '../model/context';
3
- import { IDashboard } from '../types/dashboard';
2
+ import { ContextInfoType } from '~/model';
3
+ import { IDashboard } from '../../types/dashboard';
4
4
  interface IDashboardProps {
5
5
  context: ContextInfoType;
6
6
  dashboard: IDashboard;
7
7
  className?: string;
8
8
  update: (dashboard: IDashboard) => Promise<void>;
9
9
  config: IDashboardConfig;
10
- fullScreenPanelID: string;
11
- setFullScreenPanelID: (v: string) => void;
12
10
  }
13
11
  export declare const Dashboard: React.FunctionComponent<IDashboardProps>;
14
12
  export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const DashboardEditorNavbar: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const PreviewViz: (() => JSX.Element) & {
2
+ export declare const ViewLinks: (() => JSX.Element) & {
3
3
  displayName: string;
4
4
  };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const EditFilter: (({ id }: {
3
+ id: string;
4
+ }) => JSX.Element | null) & {
5
+ displayName: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const EditMockContext: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const EditPanel: (({ viewID, panelID }: {
3
+ viewID: string;
4
+ panelID: string;
5
+ }) => JSX.Element) & {
6
+ displayName: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PanelModelInstance } from '~/model/views/view/panels';
3
+ export declare const PanelEditor: (({ panel }: {
4
+ panel: PanelModelInstance;
5
+ }) => JSX.Element) & {
6
+ displayName: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const PreviewViz: (({ height }: {
3
+ height: string;
4
+ }) => JSX.Element) & {
5
+ displayName: string;
6
+ };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { VariableConfigUIModel } from '~/panel/settings/variable-config/model';
2
+ import { VariableConfigUIModel } from '~/main/dashboard-editor/settings/content/edit-panel/variable-config/model';
3
3
  export interface IVariableListProps {
4
4
  uiModel: VariableConfigUIModel;
5
5
  }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const EditQuery: (({ id }: {
3
+ id: string;
4
+ }) => JSX.Element | null) & {
5
+ displayName: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const EditSQLSnippet: (({ id }: {
3
+ id: string;
4
+ }) => JSX.Element) & {
5
+ displayName: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '~/model';
3
+ export declare const ViewDivisionConfigFields: (({ view }: {
4
+ view: ViewModelInstance;
5
+ }) => JSX.Element | null) & {
6
+ displayName: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '~/model';
3
+ export declare const ViewTabsConfigFields: (({ view }: {
4
+ view: ViewModelInstance;
5
+ }) => JSX.Element | null) & {
6
+ displayName: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '~/model';
3
+ export declare const ConfigFields: (({ view }: {
4
+ view: ViewModelInstance;
5
+ }) => JSX.Element) & {
6
+ displayName: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '~/model';
3
+ export declare const ViewModalConfigFields: (({ view }: {
4
+ view: ViewModelInstance;
5
+ }) => JSX.Element | null) & {
6
+ displayName: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const EditView: (({ id }: {
3
+ id: string;
4
+ }) => JSX.Element) & {
5
+ displayName: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const SettingsContent: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,8 @@
1
+ import { ValidEditorPathType } from '~/model/editor';
2
+ export declare function isGlobalVars(path: ValidEditorPathType): boolean;
3
+ export declare function isMockContext(path: ValidEditorPathType): boolean;
4
+ export declare function isFilter(path: ValidEditorPathType): boolean;
5
+ export declare function isSQLSnippet(path: ValidEditorPathType): boolean;
6
+ export declare function isQuery(path: ValidEditorPathType): boolean;
7
+ export declare function isView(path: ValidEditorPathType): boolean;
8
+ export declare function isPanel(path: ValidEditorPathType): boolean;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const GlobalVariablesModal: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ViewGlobalVars: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const SwitchViews: (() => JSX.Element) & {
2
+ export declare const Settings: (() => JSX.Element) & {
3
3
  displayName: string;
4
4
  };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const AddAFilter: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const AddAQuery: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const AddASQLSnippet: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const AddAView: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { NavActionType } from '~/model/editor';
3
+ interface IAddItemButton {
4
+ action_type: NavActionType['_action_type'];
5
+ }
6
+ export declare const AddItemButton: (({ action_type }: IAddItemButton) => JSX.Element | null) & {
7
+ displayName: string;
8
+ };
9
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const SettingsNavbar: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const SettingsNavLinks: (() => JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ContextInfoType } from '../model/context';
3
- import { IDashboard } from '../types/dashboard';
2
+ import { ContextInfoType } from '../../model/context';
3
+ import { IDashboard } from '../../types/dashboard';
4
4
  interface IReadOnlyDashboard {
5
5
  context: ContextInfoType;
6
6
  dashboard: IDashboard;
@@ -1,3 +1,3 @@
1
- export * from './main';
2
- export * from './read-only';
1
+ export * from './dashboard-editor';
2
+ export * from './dashboard-render';
3
3
  export { useTopLevelServices } from '~/main/use-top-level-services';
@@ -0,0 +1,36 @@
1
+ import { TablerIcon } from '@tabler/icons';
2
+ import { Instance } from 'mobx-state-tree';
3
+ export declare type NavActionType = {
4
+ label: string;
5
+ value: string;
6
+ _type: 'ACTION';
7
+ _action_type: '_Add_A_Filter_' | '_Add_A_SQL_SNIPPET_' | '_Add_A_QUERY_' | '_Add_A_VIEW_';
8
+ Icon: null;
9
+ children: null;
10
+ };
11
+ export declare type NavLinkType = {
12
+ label: string;
13
+ value: string;
14
+ _type: 'GROUP' | 'global_variables' | 'mock_context' | 'filter' | 'sql_snippet' | 'query' | 'view' | 'panel';
15
+ Icon?: TablerIcon;
16
+ parentID?: string;
17
+ children?: NavOptionType[];
18
+ };
19
+ export declare type NavOptionType = NavLinkType | NavActionType;
20
+ export declare type ValidEditorPathType = ['_GLOBAL_VARS_'] | ['_MOCK_CONTEXT_'] | ['_FILTERS_', string] | ['_SQL_SNIPPETS_', string] | ['_QUERIES_', string] | ['_VIEWS_', string] | ['_VIEWS_', string, '_PANELS_', string] | [];
21
+ export declare const EditorModel: import("mobx-state-tree").IModelType<{
22
+ path: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ValidEditorPathType, ValidEditorPathType, ValidEditorPathType>, [undefined]>;
23
+ settings_open: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
24
+ }, {
25
+ readonly navOptions: NavOptionType[];
26
+ isOptionActive(path: ValidEditorPathType, option: NavOptionType): boolean;
27
+ isOptionOpened(option: NavOptionType): boolean;
28
+ } & {
29
+ setPath(v: ValidEditorPathType): void;
30
+ setSettingsOpen(v: boolean): void;
31
+ } & {
32
+ open(path: ValidEditorPathType): void;
33
+ close(): void;
34
+ navigate(o: NavOptionType): void;
35
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
36
+ export declare type EditorModelInstance = Instance<typeof EditorModel>;
@@ -1,3 +1,4 @@
1
+ import { Instance } from 'mobx-state-tree';
1
2
  import { QueryModelInstance } from './query';
2
3
  export declare const QueriesModel: import("mobx-state-tree").IModelType<{
3
4
  current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -190,8 +191,9 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
190
191
  afterCreate(): void;
191
192
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
192
193
  readonly options: {
193
- value: string;
194
- label: string;
194
+ readonly value: string;
195
+ readonly label: string;
196
+ readonly _type: "query";
195
197
  }[];
196
198
  } & {
197
199
  readonly json: {
@@ -214,4 +216,5 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
214
216
  refetchDataByQueryID(queryID: string): Promise<void> | undefined;
215
217
  removeQuery(queryID: string): void;
216
218
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
219
+ export declare type QueriesModelInstance = Instance<typeof QueriesModel>;
217
220
  export * from './query';
@@ -1,3 +1,4 @@
1
+ import { Instance } from 'mobx-state-tree';
1
2
  import { SQLSnippetModelInstance } from './sql-snippet';
2
3
  export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
3
4
  current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -18,6 +19,11 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
18
19
  key: string;
19
20
  value: string;
20
21
  }[];
22
+ readonly options: {
23
+ readonly label: string;
24
+ readonly value: string;
25
+ readonly _type: "sql_snippet";
26
+ }[];
21
27
  readonly record: Record<string, string>;
22
28
  readonly firstKey: string | undefined;
23
29
  findByKey(key: string): ({
@@ -49,6 +55,8 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
49
55
  replace(current: Array<SQLSnippetModelInstance>): void;
50
56
  append(item: SQLSnippetModelInstance): void;
51
57
  remove(index: number): void;
58
+ removeByKey(key: string): void;
52
59
  replaceByIndex(index: number, replacement: SQLSnippetModelInstance): void;
53
60
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
61
+ export declare type SQLSnippetsModelInstance = Instance<typeof SQLSnippetsModel>;
54
62
  export * from './sql-snippet';
@@ -2956,6 +2956,12 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
2956
2956
  }>;
2957
2957
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
2958
2958
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
2959
+ readonly editorOptions: {
2960
+ readonly label: string;
2961
+ readonly value: string;
2962
+ readonly _type: "panel";
2963
+ readonly parentID: any;
2964
+ }[];
2959
2965
  } & {
2960
2966
  replace(current: ({
2961
2967
  id: string;
@@ -2773,6 +2773,12 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
2773
2773
  }>;
2774
2774
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
2775
2775
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
2776
+ readonly editorOptions: {
2777
+ readonly label: string;
2778
+ readonly value: string;
2779
+ readonly _type: "panel";
2780
+ readonly parentID: any;
2781
+ }[];
2776
2782
  } & {
2777
2783
  replace(current: Array<PanelModelInstance>): void;
2778
2784
  addANewPanel(): void;
@@ -2,7 +2,7 @@ import { ICartesianChartConf } from '../type';
2
2
  export declare function getYAxes(conf: ICartesianChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
3
3
  min: string | undefined;
4
4
  max: string | undefined;
5
- position: "left" | "right";
5
+ position: "right" | "left";
6
6
  axisLabel: {
7
7
  show: boolean;
8
8
  formatter: (p: $TSFixMe) => string;
@@ -12,7 +12,7 @@ export declare function getYAxes(conf: ICartesianChartConf, labelFormatters: Rec
12
12
  };
13
13
  nameTextStyle: {
14
14
  fontWeight: string;
15
- align: "left" | "right" | "center";
15
+ align: "right" | "center" | "left";
16
16
  };
17
17
  nameLocation: string;
18
18
  nameGap: number;
@@ -68,7 +68,7 @@ export declare function getOption(conf: IParetoChartConf, data: $TSFixMe[], _var
68
68
  nameGap: number;
69
69
  nameTextStyle: {
70
70
  fontWeight: string;
71
- align: "left" | "right" | "center";
71
+ align: "right" | "center" | "left";
72
72
  };
73
73
  position: string;
74
74
  axisLine: {
@@ -86,7 +86,7 @@ export declare function getOption(conf: IParetoChartConf, data: $TSFixMe[], _var
86
86
  nameGap: number;
87
87
  nameTextStyle: {
88
88
  fontWeight: string;
89
- align: "left" | "right" | "center";
89
+ align: "right" | "center" | "left";
90
90
  };
91
91
  position: string;
92
92
  axisLine: {
@@ -5,7 +5,7 @@ export declare function getYAxes(conf: IParetoChartConf, formatters: TParetoForm
5
5
  nameGap: number;
6
6
  nameTextStyle: {
7
7
  fontWeight: string;
8
- align: "left" | "right" | "center";
8
+ align: "right" | "center" | "left";
9
9
  };
10
10
  position: string;
11
11
  axisLine: {
@@ -23,7 +23,7 @@ export declare function getYAxes(conf: IParetoChartConf, formatters: TParetoForm
23
23
  nameGap: number;
24
24
  nameTextStyle: {
25
25
  fontWeight: string;
26
- align: "left" | "right" | "center";
26
+ align: "right" | "center" | "left";
27
27
  };
28
28
  position: string;
29
29
  axisLine: {
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { VizViewProps } from '~/types/plugin';
3
- export declare function VizPieChart({ context }: VizViewProps): JSX.Element;
3
+ export declare function VizPieChart({ context }: VizViewProps): JSX.Element | null;
@@ -2,7 +2,7 @@ import { IScatterChartConf } from '../type';
2
2
  export declare function getYAxes(conf: IScatterChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
3
3
  min: string | undefined;
4
4
  max: string | undefined;
5
- position: "left" | "right";
5
+ position: "right" | "left";
6
6
  axisLabel: {
7
7
  show: boolean;
8
8
  formatter: (p: $TSFixMe) => string;
@@ -12,7 +12,7 @@ export declare function getYAxes(conf: IScatterChartConf, labelFormatters: Recor
12
12
  };
13
13
  nameTextStyle: {
14
14
  fontWeight: string;
15
- align: "left" | "right" | "center";
15
+ align: "right" | "center" | "left";
16
16
  };
17
17
  nameLocation: string;
18
18
  nameGap: number;
@@ -4,7 +4,7 @@ export declare function getLevels(conf: ISunburstConf): {
4
4
  label: {
5
5
  formatter: ({ treePathInfo, name, value }: IEchartsSunburstLabelFormatter) => string | undefined;
6
6
  rotate: "0" | "radial" | "tangential";
7
- align: "left" | "right" | "center";
7
+ align: "right" | "center" | "left";
8
8
  position: import("../type").TEchartsLabelPosition;
9
9
  padding: number;
10
10
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectable{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:rgba(255,255,255,.5);padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__minimap{background-color:#fff}.react-flow__node-interaction{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.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:auto}.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:auto}.viz-root{width:100%;overflow:auto;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:auto;overflow-x:hidden;padding:0;height:100%}.dashboard-view{position:relative;height:100%;overflow-y:auto;overflow-x:hidden;-ms-overflow-style:initial!important}.dashboard-sticky-area{z-index:100;background:white;margin:0;padding:0 10px}.mantine-RichTextEditor-root{overflow-y:auto!important;-ms-overflow-style:initial!important}.dashboard-root *:not(.mantine-RichTextEditor-root):not(.dashboard-view):not(.mantine-Modal-body):not([data-enable-scrollbar])::-webkit-scrollbar{width:0!important;height:0!important}.dashboard-root *:not([data-enable-scrollbar]){overflow:-moz-scrollbars-none;-ms-overflow-style:none}.minimal-monaco-editor{border-radius:4px;overflow:hidden;background-color:#1e1e1e;padding-top:14px}
1
+ .panel-root{height:100%;width:100%;max-width:100%;background:transparent;border-radius:4px;position:relative}.panel-dropdown-target{text-align:center;transition:background-color .3s ease}.panel-dropdown-target:hover{cursor:pointer;background-color:#6464640d}.viz-root{width:100%;overflow:auto;flex-grow:1;background-color:#fff}.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}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectable{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:rgba(255,255,255,.5);padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__minimap{background-color:#fff}.react-flow__node-interaction{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.dashboard-root{overflow:auto;overflow-x:hidden;padding:0;height:100%}.dashboard-view{position:relative;height:100%;overflow-y:auto;overflow-x:hidden;-ms-overflow-style:initial!important}.dashboard-sticky-area{z-index:100;background:white;margin:0;padding:0 10px}.mantine-RichTextEditor-root{overflow-y:auto!important;-ms-overflow-style:initial!important}.dashboard-root *:not(.mantine-RichTextEditor-root):not(.dashboard-view):not(.mantine-Modal-body):not([data-enable-scrollbar])::-webkit-scrollbar{width:0!important;height:0!important}.dashboard-root *:not([data-enable-scrollbar]){overflow:-moz-scrollbars-none;-ms-overflow-style:none}.minimal-monaco-editor{border-radius:4px;overflow:hidden;background-color:#1e1e1e;padding-top:14px}
@@ -0,0 +1,22 @@
1
+ export declare const ActionIconGroupStyle: {
2
+ '> button': {
3
+ '&:first-of-type': {
4
+ borderTopRightRadius: number;
5
+ borderBottomRightRadius: number;
6
+ borderRightWidth: number;
7
+ };
8
+ ':not(:first-of-type):not(:last-of-type)': {
9
+ borderTopRightRadius: number;
10
+ borderBottomRightRadius: number;
11
+ borderTopLeftRadius: number;
12
+ borderBottomLeftRadius: number;
13
+ borderLeftWidth: number;
14
+ borderRightWidth: number;
15
+ };
16
+ '&:last-of-type': {
17
+ borderTopLeftRadius: number;
18
+ borderBottomLeftRadius: number;
19
+ borderLeftWidth: number;
20
+ };
21
+ };
22
+ };
@@ -43,6 +43,21 @@ export declare enum EViewComponentType {
43
43
  Modal = "modal",
44
44
  Tabs = "tabs"
45
45
  }
46
+ export declare const ViewComponentTypeName: {
47
+ div: string;
48
+ tabs: string;
49
+ modal: string;
50
+ };
51
+ export declare const ViewComponentTypeBackground: {
52
+ div: string;
53
+ modal: string;
54
+ tabs: string;
55
+ };
56
+ export declare const ViewComponentTypeColor: {
57
+ div: string;
58
+ modal: string;
59
+ tabs: string;
60
+ };
46
61
  export interface IDashboardView {
47
62
  id: string;
48
63
  name: string;
File without changes
@@ -1,2 +1,2 @@
1
- export * from './main-view';
2
- export * from './read-only-view';
1
+ export * from './view-editor';
2
+ export * from './view-render';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '..';
3
+ interface IDashboardViewEditor {
4
+ view: ViewModelInstance;
5
+ }
6
+ export declare const DashboardViewEditor: import("react").FunctionComponent<IDashboardViewEditor>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewModelInstance } from '..';
3
+ interface IDashboardViewRender {
4
+ view: ViewModelInstance;
5
+ }
6
+ export declare const DashboardViewRender: import("react").FunctionComponent<IDashboardViewRender>;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "7.21.0",
3
+ "version": "8.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",