@devtable/dashboard 2.3.0 → 2.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.
Files changed (124) hide show
  1. package/dist/api-caller/index.d.ts +14 -8
  2. package/dist/api-caller/types.d.ts +1 -1
  3. package/dist/contexts/dashboard-action-context.d.ts +1 -1
  4. package/dist/contexts/index.d.ts +1 -3
  5. package/dist/contexts/layout-state-context.d.ts +2 -2
  6. package/dist/contexts/model-context.d.ts +24165 -0
  7. package/dist/contexts/panel-context.d.ts +2 -3
  8. package/dist/dashboard.es.js +8102 -4305
  9. package/dist/dashboard.umd.js +41 -5
  10. package/dist/definition-editor/data-editor-modal.d.ts +2 -2
  11. package/dist/definition-editor/global-variables-guide.d.ts +3 -3
  12. package/dist/definition-editor/query-editor/data-preview.d.ts +3 -3
  13. package/dist/definition-editor/query-editor/editor.d.ts +2 -2
  14. package/dist/definition-editor/query-editor/form.d.ts +4 -5
  15. package/dist/definition-editor/query-editor/index.d.ts +2 -2
  16. package/dist/definition-editor/query-editor/select-or-add-query.d.ts +2 -2
  17. package/dist/definition-editor/sql-snippet-editor/editor.d.ts +2 -2
  18. package/dist/filter/filter-checkbox/editor.d.ts +3 -5
  19. package/dist/filter/filter-checkbox/render.d.ts +3 -2
  20. package/dist/filter/filter-date-range/editor.d.ts +3 -6
  21. package/dist/filter/filter-date-range/render.d.ts +3 -2
  22. package/dist/filter/filter-multi-select/editor.d.ts +3 -7
  23. package/dist/filter/filter-multi-select/render.d.ts +4 -3
  24. package/dist/filter/filter-query-field/index.d.ts +5 -5
  25. package/dist/filter/filter-query-field/select-data-source.d.ts +5 -5
  26. package/dist/filter/filter-query-field/test-query.d.ts +7 -0
  27. package/dist/filter/filter-select/editor.d.ts +3 -7
  28. package/dist/filter/filter-select/render.d.ts +3 -2
  29. package/dist/filter/filter-settings/filter-setting.d.ts +4 -7
  30. package/dist/filter/filter-settings/filter-settings.d.ts +2 -5
  31. package/dist/filter/filter-settings/index.d.ts +2 -5
  32. package/dist/filter/filter-settings/preview-filter.d.ts +4 -8
  33. package/dist/filter/filter-text-input/editor.d.ts +3 -6
  34. package/dist/filter/filter-text-input/render.d.ts +3 -2
  35. package/dist/filter/filter.d.ts +3 -3
  36. package/dist/filter/index.d.ts +2 -6
  37. package/dist/index.d.ts +1 -0
  38. package/dist/layout/index.d.ts +3 -3
  39. package/dist/layout/read-only.d.ts +3 -3
  40. package/dist/main/actions.d.ts +3 -5
  41. package/dist/main/full-screen-panel.d.ts +3 -3
  42. package/dist/main/main.d.ts +5 -5
  43. package/dist/main/read-only.d.ts +4 -4
  44. package/dist/main/toggle-mode.d.ts +2 -2
  45. package/dist/main/use-panel-full-screen.d.ts +1 -1
  46. package/dist/main/use-sticky-area-style.d.ts +1 -0
  47. package/dist/model/context.d.ts +11 -0
  48. package/dist/model/dashboard.d.ts +15998 -0
  49. package/dist/model/filters/filter/checkbox.d.ts +16 -0
  50. package/dist/model/filters/filter/common.d.ts +14 -0
  51. package/dist/model/filters/filter/date-range.d.ts +28 -0
  52. package/dist/model/filters/filter/index.d.ts +172 -0
  53. package/dist/model/filters/filter/multi-select.d.ts +81 -0
  54. package/dist/model/filters/filter/select.d.ts +95 -0
  55. package/dist/model/filters/filter/text-input.d.ts +22 -0
  56. package/dist/model/filters/index.d.ts +3542 -0
  57. package/dist/model/index.d.ts +5 -0
  58. package/dist/model/queries/index.d.ts +116 -0
  59. package/dist/model/queries/mute-query.d.ts +17 -0
  60. package/dist/model/queries/query.d.ts +31 -0
  61. package/dist/model/queries/types.d.ts +5 -0
  62. package/dist/model/sql-snippets/index.d.ts +26 -0
  63. package/dist/model/sql-snippets/sql-snippet.d.ts +9 -0
  64. package/dist/panel/error-boundary.d.ts +1 -1
  65. package/dist/panel/index.d.ts +2 -2
  66. package/dist/panel/settings/common/aggregation-selector.d.ts +2 -2
  67. package/dist/panel/settings/common/color-array-input.d.ts +1 -1
  68. package/dist/panel/settings/common/data-field-selector.d.ts +2 -2
  69. package/dist/panel/settings/common/mantine-color.d.ts +1 -1
  70. package/dist/panel/settings/common/mantine-font-weight.d.ts +1 -1
  71. package/dist/panel/settings/common/numbro-format-selector.d.ts +1 -1
  72. package/dist/panel/settings/common/text-array-input.d.ts +1 -1
  73. package/dist/panel/settings/index.d.ts +2 -2
  74. package/dist/panel/settings/pick-query/index.d.ts +2 -2
  75. package/dist/panel/title-bar.d.ts +2 -2
  76. package/dist/panel/viz/bar-3d/panel.d.ts +1 -1
  77. package/dist/panel/viz/cartesian/panel/index.d.ts +1 -1
  78. package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +2 -2
  79. package/dist/panel/viz/cartesian/panel/regressions/regression-item.d.ts +2 -2
  80. package/dist/panel/viz/cartesian/panel/series/fields.bar.d.ts +3 -3
  81. package/dist/panel/viz/cartesian/panel/series/index.d.ts +2 -2
  82. package/dist/panel/viz/cartesian/panel/series/series-item.d.ts +2 -2
  83. package/dist/panel/viz/cartesian/panel/stats/index.d.ts +2 -2
  84. package/dist/panel/viz/cartesian/panel/stats/variable.d.ts +2 -2
  85. package/dist/panel/viz/cartesian/panel/y-axes.d.ts +2 -2
  86. package/dist/panel/viz/cartesian/type.d.ts +3 -3
  87. package/dist/panel/viz/index.d.ts +3 -3
  88. package/dist/panel/viz/pie/panel.d.ts +1 -1
  89. package/dist/panel/viz/rich-text/panel.d.ts +1 -1
  90. package/dist/panel/viz/rich-text/type.d.ts +1 -1
  91. package/dist/panel/viz/stats/panel/index.d.ts +3 -3
  92. package/dist/panel/viz/stats/panel/variable.d.ts +2 -2
  93. package/dist/panel/viz/stats/panel/variables.d.ts +2 -2
  94. package/dist/panel/viz/stats/types.d.ts +1 -1
  95. package/dist/panel/viz/stats/update/index.d.ts +2 -2
  96. package/dist/panel/viz/sunburst/panel.d.ts +1 -1
  97. package/dist/panel/viz/table/index.d.ts +1 -1
  98. package/dist/panel/viz/table/panel.d.ts +1 -1
  99. package/dist/panel/viz/table/value-type-selector.d.ts +1 -1
  100. package/dist/panel/viz/table/value.d.ts +1 -1
  101. package/dist/plugins/json-plugin-storage.d.ts +8 -0
  102. package/dist/plugins/message-channels.d.ts +8 -0
  103. package/dist/plugins/plugin-context.d.ts +12 -0
  104. package/dist/plugins/plugin-manager.d.ts +18 -0
  105. package/dist/plugins/viz-manager/components.d.ts +23 -0
  106. package/dist/plugins/viz-manager/impl.d.ts +10 -0
  107. package/dist/plugins/viz-manager/index.d.ts +3 -0
  108. package/dist/plugins/viz-manager/types.d.ts +12 -0
  109. package/dist/style.css +1 -1
  110. package/dist/types/dashboard.d.ts +6 -14
  111. package/dist/types/filter.d.ts +6 -38
  112. package/dist/types/plugin/index.d.ts +97 -0
  113. package/dist/types/viz-panel.d.ts +1 -1
  114. package/dist/utils/download.d.ts +6 -0
  115. package/dist/utils/sql.d.ts +7 -6
  116. package/dist/utils/template/editor.d.ts +3 -3
  117. package/dist/utils/template/render.d.ts +1 -1
  118. package/dist/utils/template/types.d.ts +2 -2
  119. package/package.json +22 -4
  120. package/dist/contexts/context-info-context.d.ts +0 -5
  121. package/dist/contexts/definition-context.d.ts +0 -7
  122. package/dist/contexts/filter-values-context.d.ts +0 -4
  123. package/dist/filter/filter-settings/types.d.ts +0 -4
  124. package/dist/main/use-filters.d.ts +0 -8
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IDataEditorModal {
3
3
  opened: boolean;
4
4
  close: () => void;
5
5
  }
6
- export declare function DataEditorModal({ opened, close }: IDataEditorModal): JSX.Element;
6
+ export declare const DataEditorModal: React.FunctionComponent<IDataEditorModal>;
7
7
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import { Sx } from "@mantine/core";
1
+ import { Sx } from '@mantine/core';
2
+ import React from 'react';
3
3
  interface IGlobalVariablesGuide {
4
4
  showSQLSnippets?: boolean;
5
5
  sx?: Sx;
6
6
  }
7
- export declare function GlobalVariablesGuide({ showSQLSnippets, sx }: IGlobalVariablesGuide): JSX.Element;
7
+ export declare const GlobalVariablesGuide: React.FunctionComponent<IGlobalVariablesGuide>;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare function DataPreview({ id }: {
1
+ import React from 'react';
2
+ export declare const DataPreview: React.FunctionComponent<{
3
3
  id: string;
4
- }): JSX.Element;
4
+ }>;
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface IQueryEditor {
3
3
  id: string;
4
4
  setID: React.Dispatch<React.SetStateAction<string>>;
5
5
  }
6
- export declare function QueryEditor({ id, setID }: IQueryEditor): JSX.Element | null;
6
+ export declare const QueryEditor: React.FunctionComponent<IQueryEditor>;
7
7
  export {};
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
- import { IQuery } from "../../types";
1
+ import React from 'react';
2
+ import { QueryModelInstance } from '../../model/queries';
3
3
  interface IQueryForm {
4
- value: IQuery;
5
- onChange: any;
4
+ queryModel: QueryModelInstance;
6
5
  }
7
- export declare function QueryForm({ value, onChange }: IQueryForm): JSX.Element;
6
+ export declare const QueryForm: React.FunctionComponent<IQueryForm>;
8
7
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface IEditQueries {
3
3
  }
4
- export declare function EditQueries({}: IEditQueries): JSX.Element;
4
+ export declare const EditQueries: React.FunctionComponent<IEditQueries>;
5
5
  export {};
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface ISelectOrAddQuery {
3
3
  id: string;
4
4
  setID: React.Dispatch<React.SetStateAction<string>>;
5
5
  }
6
- export declare function SelectOrAddQuery({ id, setID }: ISelectOrAddQuery): JSX.Element;
6
+ export declare const SelectOrAddQuery: React.FunctionComponent<ISelectOrAddQuery>;
7
7
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface ISQLSnippetsEditor {
3
3
  }
4
- export declare function SQLSnippetsEditor({}: ISQLSnippetsEditor): JSX.Element;
4
+ export declare const SQLSnippetsEditor: React.FunctionComponent<ISQLSnippetsEditor>;
5
5
  export {};
@@ -1,10 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { Control, FieldArrayWithId } from "react-hook-form";
3
- import { IFilterSettingsForm } from "../filter-settings/types";
2
+ import { IFilterConfig_Checkbox } from '../../model/filters/filter/checkbox';
4
3
  interface IFilterEditorCheckbox {
5
- field: FieldArrayWithId<IFilterSettingsForm, "filters", "id">;
4
+ config: IFilterConfig_Checkbox;
6
5
  index: number;
7
- control: Control<IFilterSettingsForm, object>;
8
6
  }
9
- export declare function FilterEditorCheckbox({ field, index, control }: IFilterEditorCheckbox): JSX.Element;
7
+ export declare const FilterEditorCheckbox: import("react").FunctionComponent<IFilterEditorCheckbox>;
10
8
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter, IFilterConfig_Checkbox } from "../../types";
3
- interface IFilterCheckbox extends Omit<IDashboardFilter, 'type' | 'config'> {
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_Checkbox } from '../../model/filters/filter/checkbox';
4
+ interface IFilterCheckbox extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
4
5
  config: IFilterConfig_Checkbox;
5
6
  value: any;
6
7
  onChange: (v: any) => void;
@@ -1,10 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Control, FieldArrayWithId } from "react-hook-form";
3
- import { IFilterSettingsForm } from "../filter-settings/types";
2
+ import { IFilterConfig_DateRange } from '../../model/filters/filter/date-range';
4
3
  interface IFilterEditorDateRange {
5
- field: FieldArrayWithId<IFilterSettingsForm, "filters", "id">;
6
- index: number;
7
- control: Control<IFilterSettingsForm, object>;
4
+ config: IFilterConfig_DateRange;
8
5
  }
9
- export declare function FilterEditorDateRange({ field, index, control }: IFilterEditorDateRange): JSX.Element;
6
+ export declare const FilterEditorDateRange: import("react").FunctionComponent<IFilterEditorDateRange>;
10
7
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter, IFilterConfig_DateRange } from "../../types";
3
- interface IFilterDateRange extends Omit<IDashboardFilter, 'type' | 'config'> {
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_DateRange } from '../../model/filters/filter/date-range';
4
+ interface IFilterDateRange extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
4
5
  config: IFilterConfig_DateRange;
5
6
  value: any;
6
7
  onChange: (v: any) => void;
@@ -1,11 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Control, FieldArrayWithId, UseFormWatch } from "react-hook-form";
3
- import { IFilterSettingsForm } from "../filter-settings/types";
2
+ import { IFilterConfig_MultiSelect } from '../../model/filters/filter/multi-select';
4
3
  interface IFilterEditorMultiSelect {
5
- field: FieldArrayWithId<IFilterSettingsForm, "filters", "id">;
6
- index: number;
7
- control: Control<IFilterSettingsForm, object>;
8
- watch: UseFormWatch<IFilterSettingsForm>;
4
+ config: IFilterConfig_MultiSelect;
9
5
  }
10
- export declare function FilterEditorMultiSelect({ field, index, control, watch }: IFilterEditorMultiSelect): JSX.Element;
6
+ export declare const FilterEditorMultiSelect: import("react").FunctionComponent<IFilterEditorMultiSelect>;
11
7
  export {};
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter, IFilterConfig_Select } from "../../types";
3
- interface IFilterMultiSelect extends Omit<IDashboardFilter, 'type' | 'config'> {
4
- config: IFilterConfig_Select;
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;
5
6
  value: any;
6
7
  onChange: (v: any) => void;
7
8
  }
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import { IDashboardFilterOptionQuery } from "../../types";
1
+ import React from 'react';
2
+ import { IFilterOptionQuery } from '../../model/filters/filter/common';
3
3
  interface IFilterQueryField {
4
- value: IDashboardFilterOptionQuery;
5
- onChange: (v: IDashboardFilterOptionQuery) => void;
4
+ value: IFilterOptionQuery;
5
+ onChange: (v: IFilterOptionQuery) => void;
6
6
  }
7
- export declare const FilterQueryField: React.ForwardRefExoticComponent<IFilterQueryField & React.RefAttributes<unknown>>;
7
+ export declare const FilterQueryField: React.FunctionComponent<IFilterQueryField>;
8
8
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import { IDashboardFilterOptionQuery } from "../../types";
1
+ import React from 'react';
2
+ import { IFilterOptionQuery } from '../../model/filters/filter/common';
3
3
  interface ISelectDataSource {
4
- value: IDashboardFilterOptionQuery;
5
- onChange: (v: IDashboardFilterOptionQuery) => void;
4
+ value: IFilterOptionQuery;
5
+ onChange: (v: IFilterOptionQuery) => void;
6
6
  }
7
- export declare function SelectDataSource({ value, onChange }: ISelectDataSource): JSX.Element;
7
+ export declare const SelectDataSource: React.FunctionComponent<ISelectDataSource>;
8
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 {};
@@ -1,11 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Control, FieldArrayWithId, UseFormWatch } from "react-hook-form";
3
- import { IFilterSettingsForm } from "../filter-settings/types";
2
+ import { IFilterConfig_Select } from '../../model/filters/filter/select';
4
3
  interface IFilterEditorSelect {
5
- field: FieldArrayWithId<IFilterSettingsForm, "filters", "id">;
6
- index: number;
7
- control: Control<IFilterSettingsForm, object>;
8
- watch: UseFormWatch<IFilterSettingsForm>;
4
+ config: IFilterConfig_Select;
9
5
  }
10
- export declare function FilterEditorSelect({ field, index, control, watch }: IFilterEditorSelect): JSX.Element;
6
+ export declare const FilterEditorSelect: import("react").FunctionComponent<IFilterEditorSelect>;
11
7
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter, IFilterConfig_Select } from "../../types";
3
- interface IFilterSelect extends Omit<IDashboardFilter, 'type' | 'config'> {
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_Select } from '../../model/filters/filter/select';
4
+ interface IFilterSelect extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
4
5
  config: IFilterConfig_Select;
5
6
  value: any;
6
7
  onChange: (v: any) => void;
@@ -1,11 +1,8 @@
1
- /// <reference types="react" />
2
- import { Control, FieldArrayWithId, UseFormWatch } from "react-hook-form";
3
- import { IFilterSettingsForm } from "./types";
1
+ import React from 'react';
2
+ import { FilterModelInstance } from '../../model';
4
3
  interface IFilterSetting {
5
- field: FieldArrayWithId<IFilterSettingsForm, "filters", "id">;
4
+ filter: FilterModelInstance;
6
5
  index: number;
7
- control: Control<IFilterSettingsForm, object>;
8
- watch: UseFormWatch<IFilterSettingsForm>;
9
6
  }
10
- export declare function FilterSetting({ field, index, control, watch }: IFilterSetting): JSX.Element;
7
+ export declare const FilterSetting: React.FunctionComponent<IFilterSetting>;
11
8
  export {};
@@ -1,8 +1,5 @@
1
- /// <reference types="react" />
2
- import { IDashboardFilter } from "../../types";
1
+ import React from 'react';
3
2
  interface FilterSettings {
4
- filters: IDashboardFilter[];
5
- setFilters: (v: IDashboardFilter[]) => void;
6
3
  }
7
- export declare function FilterSettings({ filters, setFilters }: FilterSettings): JSX.Element;
4
+ export declare const FilterSettings: React.FunctionComponent<FilterSettings>;
8
5
  export {};
@@ -1,10 +1,7 @@
1
- /// <reference types="react" />
2
- import { IDashboardFilter } from "../../types";
1
+ import React from 'react';
3
2
  interface FilterSettingsModal {
4
3
  opened: boolean;
5
4
  close: () => void;
6
- filters: IDashboardFilter[];
7
- setFilters: (v: IDashboardFilter[]) => void;
8
5
  }
9
- export declare function FilterSettingsModal({ opened, close, filters, setFilters }: FilterSettingsModal): JSX.Element;
6
+ export declare const FilterSettingsModal: React.FunctionComponent<FilterSettingsModal>;
10
7
  export {};
@@ -1,11 +1,7 @@
1
- /// <reference types="react" />
2
- import { IDashboardFilter } from "../../types";
3
- import { UseFormWatch } from "react-hook-form";
4
- import { IFilterSettingsForm } from "./types";
1
+ import React from 'react';
2
+ import { FilterModelInstance } from '../../model';
5
3
  interface IPreviewFilter {
6
- filter: IDashboardFilter;
7
- index: number;
8
- watch: UseFormWatch<IFilterSettingsForm>;
4
+ filter: FilterModelInstance;
9
5
  }
10
- export declare function PreviewFilter({ filter, index, watch }: IPreviewFilter): JSX.Element;
6
+ export declare const PreviewFilter: React.FunctionComponent<IPreviewFilter>;
11
7
  export {};
@@ -1,10 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Control, FieldArrayWithId } from "react-hook-form";
3
- import { IFilterSettingsForm } from "../filter-settings/types";
2
+ import { IFilterConfig_TextInput } from '../../model/filters/filter/text-input';
4
3
  interface IFilterEditorTextInput {
5
- field: FieldArrayWithId<IFilterSettingsForm, "filters", "id">;
6
- index: number;
7
- control: Control<IFilterSettingsForm, object>;
4
+ config: IFilterConfig_TextInput;
8
5
  }
9
- export declare function FilterEditorTextInput({ field, index, control }: IFilterEditorTextInput): JSX.Element;
6
+ export declare const FilterEditorTextInput: import("react").FunctionComponent<IFilterEditorTextInput>;
10
7
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter, IFilterConfig_TextInput } from "../../types";
3
- interface IFilterTextInput extends Omit<IDashboardFilter, 'type' | 'config'> {
2
+ import { FilterModelInstance } from '../../model';
3
+ import { IFilterConfig_TextInput } from '../../model/filters/filter/text-input';
4
+ interface IFilterTextInput extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
4
5
  config: IFilterConfig_TextInput;
5
6
  value: any;
6
7
  onChange: (v: any) => void;
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- import { IDashboardFilter } from "../types";
1
+ import React from 'react';
2
+ import { FilterModelInstance } from '../model';
3
3
  interface IFilter {
4
- filter: IDashboardFilter;
4
+ filter: FilterModelInstance;
5
5
  value: any;
6
6
  onChange: (v: any) => void;
7
7
  }
@@ -1,9 +1,5 @@
1
- /// <reference types="react" />
2
- import { IDashboardFilter } from "../types";
1
+ import React from 'react';
3
2
  interface IFilters {
4
- filters: IDashboardFilter[];
5
- filterValues: Record<string, any>;
6
- setFilterValues: (v: Record<string, any>) => void;
7
3
  }
8
- export declare function Filters({ filters, filterValues, setFilterValues }: IFilters): JSX.Element | null;
4
+ export declare const Filters: React.FunctionComponent<IFilters>;
9
5
  export {};
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './layout';
3
3
  export * from './panel';
4
4
  export * from './contexts';
5
5
  export * from './types';
6
+ export * from './model';
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { IDashboardPanel } from "../types/dashboard";
1
+ import React from 'react';
2
+ import { IDashboardPanel } from '../types/dashboard';
3
3
  interface IDashboardLayout {
4
4
  panels: IDashboardPanel[];
5
5
  setPanels: React.Dispatch<React.SetStateAction<IDashboardPanel[]>>;
@@ -8,5 +8,5 @@ interface IDashboardLayout {
8
8
  isDraggable: boolean;
9
9
  isResizable: boolean;
10
10
  }
11
- export declare function DashboardLayout({ panels, setPanels, className, rowHeight, isDraggable, isResizable, }: IDashboardLayout): JSX.Element;
11
+ export declare const DashboardLayout: React.FunctionComponent<IDashboardLayout>;
12
12
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
- import { IDashboardPanel } from "../types/dashboard";
1
+ import React from 'react';
2
+ import { IDashboardPanel } from '../types/dashboard';
3
3
  interface IReadOnlyDashboardLayout {
4
4
  panels: IDashboardPanel[];
5
5
  className?: string;
6
6
  rowHeight?: number;
7
7
  }
8
- export declare function ReadOnlyDashboardLayout({ panels, className, rowHeight, }: IReadOnlyDashboardLayout): JSX.Element;
8
+ export declare const ReadOnlyDashboardLayout: React.FunctionComponent<IReadOnlyDashboardLayout>;
9
9
  export {};
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { DashboardMode, IDashboardFilter } from "../types";
1
+ import React from 'react';
2
+ import { DashboardMode } from '../types';
3
3
  interface IDashboardActions {
4
4
  mode: DashboardMode;
5
5
  setMode: React.Dispatch<React.SetStateAction<DashboardMode>>;
@@ -7,8 +7,6 @@ interface IDashboardActions {
7
7
  saveChanges: () => void;
8
8
  revertChanges: () => void;
9
9
  getCurrentSchema: () => any;
10
- filters: IDashboardFilter[];
11
- setFilters: (v: IDashboardFilter[]) => void;
12
10
  }
13
- export declare function DashboardActions({ mode, setMode, hasChanges, saveChanges, revertChanges, getCurrentSchema, filters, setFilters, }: IDashboardActions): JSX.Element;
11
+ export declare const DashboardActions: React.FunctionComponent<IDashboardActions>;
14
12
  export {};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardPanel } from "../types";
3
- export declare function FullScreenPanel({ panel, exitFullScreen }: {
2
+ import { IDashboardPanel } from '../types';
3
+ export declare const FullScreenPanel: import("react").FunctionComponent<{
4
4
  panel: IDashboardPanel;
5
5
  exitFullScreen: () => void;
6
- }): JSX.Element;
6
+ }>;
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- import { IDashboard, IDashboardConfig } from "../types/dashboard";
3
- import { ContextInfoContextType } from "../contexts";
1
+ import React from 'react';
2
+ import { IDashboard, IDashboardConfig } from '../types/dashboard';
3
+ import { ContextInfoType } from '../model/context';
4
4
  interface IDashboardProps {
5
- context: ContextInfoContextType;
5
+ context: ContextInfoType;
6
6
  dashboard: IDashboard;
7
7
  className?: string;
8
8
  update: (dashboard: IDashboard) => Promise<void>;
9
9
  config: IDashboardConfig;
10
10
  }
11
- export declare function Dashboard({ context, dashboard, update, className, config, }: IDashboardProps): JSX.Element;
11
+ export declare const Dashboard: React.FunctionComponent<IDashboardProps>;
12
12
  export {};
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { IDashboard, IDashboardConfig } from "../types/dashboard";
3
- import { ContextInfoContextType } from "../contexts";
2
+ import { IDashboard, IDashboardConfig } from '../types/dashboard';
3
+ import { ContextInfoType } from '../model/context';
4
4
  interface IReadOnlyDashboard {
5
- context: ContextInfoContextType;
5
+ context: ContextInfoType;
6
6
  dashboard: IDashboard;
7
7
  className?: string;
8
8
  config: IDashboardConfig;
9
9
  }
10
- export declare function ReadOnlyDashboard({ context, dashboard, className, config, }: IReadOnlyDashboard): JSX.Element;
10
+ export declare function ReadOnlyDashboard({ context, dashboard, className, config }: IReadOnlyDashboard): JSX.Element;
11
11
  export {};
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { DashboardMode } from "../types/dashboard";
1
+ import React from 'react';
2
+ import { DashboardMode } from '../types/dashboard';
3
3
  interface IModeToggler {
4
4
  mode: DashboardMode;
5
5
  setMode: React.Dispatch<React.SetStateAction<DashboardMode>>;
@@ -1,4 +1,4 @@
1
- import { IDashboardPanel } from "../types";
1
+ import { IDashboardPanel } from '../types';
2
2
  export declare function usePanelFullScreen(panels: IDashboardPanel[]): {
3
3
  viewPanelInFullScreen: (id: string) => void;
4
4
  exitFullScreen: () => void;
@@ -0,0 +1 @@
1
+ export declare function useStickyAreaStyle(): void;
@@ -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>;