@devtable/dashboard 2.5.0 → 3.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.
Files changed (157) hide show
  1. package/README.md +25 -1
  2. package/dist/api-caller/index.d.ts +26 -0
  3. package/dist/api-caller/request.d.ts +5 -0
  4. package/dist/api-caller/types.d.ts +11 -0
  5. package/dist/contexts/dashboard-action-context.d.ts +9 -0
  6. package/dist/contexts/index.d.ts +3 -0
  7. package/dist/contexts/layout-state-context.d.ts +11 -0
  8. package/dist/contexts/model-context.d.ts +24165 -0
  9. package/dist/contexts/panel-context.d.ts +16 -0
  10. package/dist/dashboard.es.js +9526 -9191
  11. package/dist/dashboard.umd.js +22 -22
  12. package/dist/definition-editor/data-editor-modal.d.ts +7 -0
  13. package/dist/definition-editor/global-variables-guide.d.ts +8 -0
  14. package/dist/definition-editor/index.d.ts +1 -0
  15. package/dist/definition-editor/query-editor/data-preview.d.ts +4 -0
  16. package/dist/definition-editor/query-editor/editor.d.ts +7 -0
  17. package/dist/definition-editor/query-editor/form.d.ts +7 -0
  18. package/dist/definition-editor/query-editor/index.d.ts +5 -0
  19. package/dist/definition-editor/query-editor/preview-sql.d.ts +6 -0
  20. package/dist/definition-editor/query-editor/select-or-add-query.d.ts +7 -0
  21. package/dist/definition-editor/sql-snippet-editor/editor.d.ts +5 -0
  22. package/dist/definition-editor/sql-snippet-editor/index.d.ts +5 -0
  23. package/dist/definition-editor/sql-snippet-editor/preview-snippet.d.ts +6 -0
  24. package/dist/filter/filter-checkbox/editor.d.ts +8 -0
  25. package/dist/filter/filter-checkbox/render.d.ts +10 -0
  26. package/dist/filter/filter-date-range/editor.d.ts +7 -0
  27. package/dist/filter/filter-date-range/render.d.ts +10 -0
  28. package/dist/filter/filter-multi-select/editor.d.ts +7 -0
  29. package/dist/filter/filter-multi-select/render.d.ts +10 -0
  30. package/dist/filter/filter-query-field/index.d.ts +8 -0
  31. package/dist/filter/filter-query-field/select-data-source.d.ts +8 -0
  32. package/dist/filter/filter-query-field/test-query.d.ts +7 -0
  33. package/dist/filter/filter-select/editor.d.ts +7 -0
  34. package/dist/filter/filter-select/render.d.ts +10 -0
  35. package/dist/filter/filter-settings/filter-setting.d.ts +8 -0
  36. package/dist/filter/filter-settings/filter-settings.d.ts +5 -0
  37. package/dist/filter/filter-settings/index.d.ts +7 -0
  38. package/dist/filter/filter-settings/preview-filter.d.ts +7 -0
  39. package/dist/filter/filter-text-input/editor.d.ts +7 -0
  40. package/dist/filter/filter-text-input/render.d.ts +10 -0
  41. package/dist/filter/filter.d.ts +9 -0
  42. package/dist/filter/index.d.ts +5 -0
  43. package/dist/index.d.ts +6 -0
  44. package/dist/layout/index.d.ts +12 -0
  45. package/dist/layout/read-only.d.ts +9 -0
  46. package/dist/main/actions.d.ts +12 -0
  47. package/dist/main/full-screen-panel.d.ts +6 -0
  48. package/dist/main/index.d.ts +2 -0
  49. package/dist/main/main.d.ts +12 -0
  50. package/dist/main/read-only.d.ts +11 -0
  51. package/dist/main/toggle-mode.d.ts +8 -0
  52. package/dist/main/use-panel-full-screen.d.ts +7 -0
  53. package/dist/main/use-sticky-area-style.d.ts +1 -0
  54. package/dist/main/view-schema-modal.d.ts +8 -0
  55. package/dist/model/context.d.ts +11 -0
  56. package/dist/model/dashboard.d.ts +15998 -0
  57. package/dist/model/filters/filter/checkbox.d.ts +16 -0
  58. package/dist/model/filters/filter/common.d.ts +14 -0
  59. package/dist/model/filters/filter/date-range.d.ts +28 -0
  60. package/dist/model/filters/filter/index.d.ts +172 -0
  61. package/dist/model/filters/filter/multi-select.d.ts +81 -0
  62. package/dist/model/filters/filter/select.d.ts +95 -0
  63. package/dist/model/filters/filter/text-input.d.ts +22 -0
  64. package/dist/model/filters/index.d.ts +3542 -0
  65. package/dist/model/index.d.ts +5 -0
  66. package/dist/model/queries/index.d.ts +116 -0
  67. package/dist/model/queries/mute-query.d.ts +17 -0
  68. package/dist/model/queries/query.d.ts +31 -0
  69. package/dist/model/queries/types.d.ts +5 -0
  70. package/dist/model/sql-snippets/index.d.ts +26 -0
  71. package/dist/model/sql-snippets/sql-snippet.d.ts +9 -0
  72. package/dist/panel/error-boundary.d.ts +13 -0
  73. package/dist/panel/index.d.ts +7 -0
  74. package/dist/panel/panel-description.d.ts +5 -0
  75. package/dist/panel/plugin-adaptor.d.ts +7 -0
  76. package/dist/panel/settings/common/aggregation-selector.d.ts +9 -0
  77. package/dist/panel/settings/common/color-array-input.d.ts +8 -0
  78. package/dist/panel/settings/common/data-field-selector.d.ts +12 -0
  79. package/dist/panel/settings/common/mantine-color.d.ts +7 -0
  80. package/dist/panel/settings/common/mantine-font-weight.d.ts +8 -0
  81. package/dist/panel/settings/common/numbro-format-selector.d.ts +13 -0
  82. package/dist/panel/settings/common/text-array-input.d.ts +8 -0
  83. package/dist/panel/settings/index.d.ts +7 -0
  84. package/dist/panel/settings/panel-config/description.d.ts +2 -0
  85. package/dist/panel/settings/panel-config/index.d.ts +5 -0
  86. package/dist/panel/settings/panel-config/preview-panel.d.ts +2 -0
  87. package/dist/panel/settings/panel-config/title.d.ts +2 -0
  88. package/dist/panel/settings/pick-query/index.d.ts +5 -0
  89. package/dist/panel/settings/viz-config/index.d.ts +5 -0
  90. package/dist/panel/settings/viz-config/preview-viz.d.ts +5 -0
  91. package/dist/panel/settings/viz-config/viz-conf.d.ts +2 -0
  92. package/dist/panel/title-bar.d.ts +5 -0
  93. package/dist/panel/viz/bar-3d/index.d.ts +9 -0
  94. package/dist/panel/viz/bar-3d/panel.d.ts +3 -0
  95. package/dist/panel/viz/cartesian/index.d.ts +10 -0
  96. package/dist/panel/viz/cartesian/option/regression.d.ts +20 -0
  97. package/dist/panel/viz/cartesian/panel/index.d.ts +3 -0
  98. package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +11 -0
  99. package/dist/panel/viz/cartesian/panel/regressions/regression-item.d.ts +16 -0
  100. package/dist/panel/viz/cartesian/panel/series/fields.bar.d.ts +9 -0
  101. package/dist/panel/viz/cartesian/panel/series/fields.line.d.ts +9 -0
  102. package/dist/panel/viz/cartesian/panel/series/fields.scatter.d.ts +9 -0
  103. package/dist/panel/viz/cartesian/panel/series/index.d.ts +11 -0
  104. package/dist/panel/viz/cartesian/panel/series/series-item.d.ts +16 -0
  105. package/dist/panel/viz/cartesian/panel/stats/index.d.ts +10 -0
  106. package/dist/panel/viz/cartesian/panel/stats/variable.d.ts +11 -0
  107. package/dist/panel/viz/cartesian/panel/y-axes.d.ts +9 -0
  108. package/dist/panel/viz/cartesian/type.d.ts +58 -0
  109. package/dist/panel/viz/index.d.ts +9 -0
  110. package/dist/panel/viz/pie/index.d.ts +9 -0
  111. package/dist/panel/viz/pie/panel.d.ts +3 -0
  112. package/dist/panel/viz/rich-text/index.d.ts +10 -0
  113. package/dist/panel/viz/rich-text/panel.d.ts +3 -0
  114. package/dist/panel/viz/rich-text/type.d.ts +8 -0
  115. package/dist/panel/viz/stats/index.d.ts +10 -0
  116. package/dist/panel/viz/stats/panel/index.d.ts +10 -0
  117. package/dist/panel/viz/stats/panel/variable.d.ts +11 -0
  118. package/dist/panel/viz/stats/panel/variables.d.ts +10 -0
  119. package/dist/panel/viz/stats/types.d.ts +6 -0
  120. package/dist/panel/viz/stats/update/index.d.ts +15 -0
  121. package/dist/panel/viz/sunburst/index.d.ts +9 -0
  122. package/dist/panel/viz/sunburst/panel.d.ts +3 -0
  123. package/dist/plugins/hooks/index.d.ts +2 -0
  124. package/dist/plugins/hooks/use-channel-event.d.ts +2 -0
  125. package/dist/plugins/hooks/use-storage-data.d.ts +6 -0
  126. package/dist/plugins/index.d.ts +4 -0
  127. package/dist/plugins/json-plugin-storage.d.ts +12 -0
  128. package/dist/plugins/message-channels.d.ts +7 -0
  129. package/dist/plugins/plugin-context.d.ts +12 -0
  130. package/dist/plugins/plugin-data-migrator/index.d.ts +1 -0
  131. package/dist/plugins/plugin-data-migrator/plugin-data-migrator.d.ts +13 -0
  132. package/dist/plugins/plugin-manager.d.ts +18 -0
  133. package/dist/plugins/viz-components/table/index.d.ts +2 -0
  134. package/dist/plugins/viz-components/table/type.d.ts +22 -0
  135. package/dist/plugins/viz-components/table/value-type-selector.d.ts +10 -0
  136. package/dist/plugins/viz-components/table/value.d.ts +8 -0
  137. package/dist/plugins/viz-components/table/viz-table-panel.d.ts +3 -0
  138. package/dist/plugins/viz-components/table/viz-table.d.ts +3 -0
  139. package/dist/plugins/viz-manager/components.d.ts +22 -0
  140. package/dist/plugins/viz-manager/impl.d.ts +10 -0
  141. package/dist/plugins/viz-manager/index.d.ts +4 -0
  142. package/dist/plugins/viz-manager/types.d.ts +12 -0
  143. package/dist/style.css +1 -1
  144. package/dist/types/dashboard.d.ts +41 -0
  145. package/dist/types/filter.d.ts +7 -0
  146. package/dist/types/index.d.ts +3 -0
  147. package/dist/types/plugin/index.d.ts +101 -0
  148. package/dist/types/viz-panel.d.ts +6 -0
  149. package/dist/utils/aggregation.d.ts +2 -0
  150. package/dist/utils/color-mapping.d.ts +9 -0
  151. package/dist/utils/download.d.ts +6 -0
  152. package/dist/utils/sql.d.ts +9 -0
  153. package/dist/utils/template/editor.d.ts +16 -0
  154. package/dist/utils/template/render.d.ts +3 -0
  155. package/dist/utils/template/types.d.ts +21 -0
  156. package/dist/vite-env.d.ts +1 -0
  157. package/package.json +9 -4
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IDataEditorModal {
3
+ opened: boolean;
4
+ close: () => void;
5
+ }
6
+ export declare const DataEditorModal: React.FunctionComponent<IDataEditorModal>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Sx } from '@mantine/core';
2
+ import React from 'react';
3
+ interface IGlobalVariablesGuide {
4
+ showSQLSnippets?: boolean;
5
+ sx?: Sx;
6
+ }
7
+ export declare const GlobalVariablesGuide: React.FunctionComponent<IGlobalVariablesGuide>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './data-editor-modal';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const DataPreview: React.FunctionComponent<{
3
+ id: string;
4
+ }>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IQueryEditor {
3
+ id: string;
4
+ setID: React.Dispatch<React.SetStateAction<string>>;
5
+ }
6
+ export declare const QueryEditor: React.FunctionComponent<IQueryEditor>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { QueryModelInstance } from '../../model/queries';
3
+ interface IQueryForm {
4
+ queryModel: QueryModelInstance;
5
+ }
6
+ export declare const QueryForm: React.FunctionComponent<IQueryForm>;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface IEditQueries {
3
+ }
4
+ export declare const EditQueries: React.FunctionComponent<IEditQueries>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface IPreviewSQL {
3
+ value: string;
4
+ }
5
+ export declare function PreviewSQL({ value }: IPreviewSQL): JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ISelectOrAddQuery {
3
+ id: string;
4
+ setID: React.Dispatch<React.SetStateAction<string>>;
5
+ }
6
+ export declare const SelectOrAddQuery: React.FunctionComponent<ISelectOrAddQuery>;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface ISQLSnippetsEditor {
3
+ }
4
+ export declare const SQLSnippetsEditor: React.FunctionComponent<ISQLSnippetsEditor>;
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ interface IEditSQLSnippets {
3
+ }
4
+ export declare function EditSQLSnippets({}: IEditSQLSnippets): JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface IPreviewSnippet {
3
+ value: string;
4
+ }
5
+ export declare function PreviewSnippet({ value }: IPreviewSnippet): JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IFilterConfig_Checkbox } from '../../model/filters/filter/checkbox';
3
+ interface IFilterEditorCheckbox {
4
+ config: IFilterConfig_Checkbox;
5
+ index: number;
6
+ }
7
+ export declare const FilterEditorCheckbox: import("react").FunctionComponent<IFilterEditorCheckbox>;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_Checkbox } from '../../model/filters/filter/checkbox';
4
+ interface IFilterCheckbox extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
+ config: IFilterConfig_Checkbox;
6
+ value: any;
7
+ onChange: (v: any) => void;
8
+ }
9
+ export declare function FilterCheckbox({ label, config: { default_value, ...rest }, value, onChange }: IFilterCheckbox): JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { IFilterConfig_DateRange } from '../../model/filters/filter/date-range';
3
+ interface IFilterEditorDateRange {
4
+ config: IFilterConfig_DateRange;
5
+ }
6
+ export declare const FilterEditorDateRange: import("react").FunctionComponent<IFilterEditorDateRange>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_DateRange } from '../../model/filters/filter/date-range';
4
+ interface IFilterDateRange extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
+ config: IFilterConfig_DateRange;
6
+ value: any;
7
+ onChange: (v: any) => void;
8
+ }
9
+ export declare function FilterDateRange({ label, config, value, onChange }: IFilterDateRange): JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { IFilterConfig_MultiSelect } from '../../model/filters/filter/multi-select';
3
+ interface IFilterEditorMultiSelect {
4
+ config: IFilterConfig_MultiSelect;
5
+ }
6
+ export declare const FilterEditorMultiSelect: import("react").FunctionComponent<IFilterEditorMultiSelect>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_MultiSelect } from '../../model/filters/filter/multi-select';
4
+ interface IFilterMultiSelect extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
+ config: IFilterConfig_MultiSelect;
6
+ value: any;
7
+ onChange: (v: any) => void;
8
+ }
9
+ export declare function FilterMultiSelect({ label, config, value, onChange }: IFilterMultiSelect): JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IFilterOptionQuery } from '../../model/filters/filter/common';
3
+ interface IFilterQueryField {
4
+ value: IFilterOptionQuery;
5
+ onChange: (v: IFilterOptionQuery) => void;
6
+ }
7
+ export declare const FilterQueryField: React.FunctionComponent<IFilterQueryField>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IFilterOptionQuery } from '../../model/filters/filter/common';
3
+ interface ISelectDataSource {
4
+ value: IFilterOptionQuery;
5
+ onChange: (v: IFilterOptionQuery) => void;
6
+ }
7
+ export declare const SelectDataSource: React.FunctionComponent<ISelectDataSource>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IFilterOptionQuery } from '../../model/filters/filter/common';
3
+ interface ITestQuery {
4
+ query: IFilterOptionQuery;
5
+ }
6
+ export declare const TestQuery: React.FunctionComponent<ITestQuery>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { IFilterConfig_Select } from '../../model/filters/filter/select';
3
+ interface IFilterEditorSelect {
4
+ config: IFilterConfig_Select;
5
+ }
6
+ export declare const FilterEditorSelect: import("react").FunctionComponent<IFilterEditorSelect>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_Select } from '../../model/filters/filter/select';
4
+ interface IFilterSelect extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
+ config: IFilterConfig_Select;
6
+ value: any;
7
+ onChange: (v: any) => void;
8
+ }
9
+ export declare function FilterSelect({ label, config, value, onChange }: IFilterSelect): JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { FilterModelInstance } from '../../model';
3
+ interface IFilterSetting {
4
+ filter: FilterModelInstance;
5
+ index: number;
6
+ }
7
+ export declare const FilterSetting: React.FunctionComponent<IFilterSetting>;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface FilterSettings {
3
+ }
4
+ export declare const FilterSettings: React.FunctionComponent<FilterSettings>;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface FilterSettingsModal {
3
+ opened: boolean;
4
+ close: () => void;
5
+ }
6
+ export declare const FilterSettingsModal: React.FunctionComponent<FilterSettingsModal>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { FilterModelInstance } from '../../model';
3
+ interface IPreviewFilter {
4
+ filter: FilterModelInstance;
5
+ }
6
+ export declare const PreviewFilter: React.FunctionComponent<IPreviewFilter>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { IFilterConfig_TextInput } from '../../model/filters/filter/text-input';
3
+ interface IFilterEditorTextInput {
4
+ config: IFilterConfig_TextInput;
5
+ }
6
+ export declare const FilterEditorTextInput: import("react").FunctionComponent<IFilterEditorTextInput>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_TextInput } from '../../model/filters/filter/text-input';
4
+ interface IFilterTextInput extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
+ config: IFilterConfig_TextInput;
6
+ value: any;
7
+ onChange: (v: any) => void;
8
+ }
9
+ export declare function FilterTextInput({ label, config, value, onChange }: IFilterTextInput): JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { FilterModelInstance } from '../model';
3
+ interface IFilter {
4
+ filter: FilterModelInstance;
5
+ value: any;
6
+ onChange: (v: any) => void;
7
+ }
8
+ export declare const Filter: React.ForwardRefExoticComponent<IFilter & React.RefAttributes<unknown>>;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface IFilters {
3
+ }
4
+ export declare const Filters: React.FunctionComponent<IFilters>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './main';
2
+ export * from './layout';
3
+ export * from './panel';
4
+ export * from './contexts';
5
+ export * from './types';
6
+ export * from './model';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IDashboardPanel } from '../types/dashboard';
3
+ interface IDashboardLayout {
4
+ panels: IDashboardPanel[];
5
+ setPanels: React.Dispatch<React.SetStateAction<IDashboardPanel[]>>;
6
+ className?: string;
7
+ rowHeight?: number;
8
+ isDraggable: boolean;
9
+ isResizable: boolean;
10
+ }
11
+ export declare const DashboardLayout: React.FunctionComponent<IDashboardLayout>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { IDashboardPanel } from '../types/dashboard';
3
+ interface IReadOnlyDashboardLayout {
4
+ panels: IDashboardPanel[];
5
+ className?: string;
6
+ rowHeight?: number;
7
+ }
8
+ export declare const ReadOnlyDashboardLayout: React.FunctionComponent<IReadOnlyDashboardLayout>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { DashboardMode } from '../types';
3
+ interface IDashboardActions {
4
+ mode: DashboardMode;
5
+ setMode: React.Dispatch<React.SetStateAction<DashboardMode>>;
6
+ hasChanges: boolean;
7
+ saveChanges: () => void;
8
+ revertChanges: () => void;
9
+ getCurrentSchema: () => any;
10
+ }
11
+ export declare const DashboardActions: React.FunctionComponent<IDashboardActions>;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { IDashboardPanel } from '../types';
3
+ export declare const FullScreenPanel: import("react").FunctionComponent<{
4
+ panel: IDashboardPanel;
5
+ exitFullScreen: () => void;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ export * from './main';
2
+ export * from './read-only';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IDashboard, IDashboardConfig } from '../types/dashboard';
3
+ import { ContextInfoType } from '../model/context';
4
+ interface IDashboardProps {
5
+ context: ContextInfoType;
6
+ dashboard: IDashboard;
7
+ className?: string;
8
+ update: (dashboard: IDashboard) => Promise<void>;
9
+ config: IDashboardConfig;
10
+ }
11
+ export declare const Dashboard: React.FunctionComponent<IDashboardProps>;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { IDashboard, IDashboardConfig } from '../types/dashboard';
3
+ import { ContextInfoType } from '../model/context';
4
+ interface IReadOnlyDashboard {
5
+ context: ContextInfoType;
6
+ dashboard: IDashboard;
7
+ className?: string;
8
+ config: IDashboardConfig;
9
+ }
10
+ export declare function ReadOnlyDashboard({ context, dashboard, className, config }: IReadOnlyDashboard): JSX.Element;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { DashboardMode } from '../types/dashboard';
3
+ interface IModeToggler {
4
+ mode: DashboardMode;
5
+ setMode: React.Dispatch<React.SetStateAction<DashboardMode>>;
6
+ }
7
+ export declare function ModeToggler({ mode, setMode }: IModeToggler): JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IDashboardPanel } from '../types';
2
+ export declare function usePanelFullScreen(panels: IDashboardPanel[]): {
3
+ viewPanelInFullScreen: (id: string) => void;
4
+ exitFullScreen: () => void;
5
+ inFullScreen: boolean;
6
+ fullScreenPanel: IDashboardPanel | undefined;
7
+ };
@@ -0,0 +1 @@
1
+ export declare function useStickyAreaStyle(): void;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IViewSchemaModal {
3
+ opened: boolean;
4
+ close: () => void;
5
+ getCurrentSchema: () => any;
6
+ }
7
+ export declare function ViewSchemaModal({ opened, close, getCurrentSchema }: IViewSchemaModal): JSX.Element;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare const ContextModel: import("mobx-state-tree").IModelType<{
2
+ current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3
+ }, {
4
+ readonly keys: string[];
5
+ readonly entries: [string, unknown][];
6
+ } & {
7
+ replace(record: Record<string, any>): void;
8
+ get(key: string): any;
9
+ set(key: string, value: any): void;
10
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
11
+ export declare type ContextInfoType = Record<string, any>;