@devtable/dashboard 2.3.0 → 2.4.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 (92) hide show
  1. package/dist/api-caller/index.d.ts +3 -3
  2. package/dist/contexts/context-info-context.d.ts +1 -1
  3. package/dist/contexts/dashboard-action-context.d.ts +1 -1
  4. package/dist/contexts/definition-context.d.ts +2 -2
  5. package/dist/contexts/filter-values-context.d.ts +1 -1
  6. package/dist/contexts/layout-state-context.d.ts +2 -2
  7. package/dist/contexts/panel-context.d.ts +2 -2
  8. package/dist/dashboard.es.js +10465 -713
  9. package/dist/dashboard.umd.js +22 -5
  10. package/dist/definition-editor/global-variables-guide.d.ts +1 -1
  11. package/dist/definition-editor/query-editor/editor.d.ts +1 -1
  12. package/dist/definition-editor/query-editor/form.d.ts +1 -1
  13. package/dist/definition-editor/query-editor/select-or-add-query.d.ts +1 -1
  14. package/dist/filter/filter-checkbox/editor.d.ts +3 -5
  15. package/dist/filter/filter-checkbox/render.d.ts +3 -2
  16. package/dist/filter/filter-date-range/editor.d.ts +3 -6
  17. package/dist/filter/filter-date-range/render.d.ts +3 -2
  18. package/dist/filter/filter-multi-select/editor.d.ts +3 -7
  19. package/dist/filter/filter-multi-select/render.d.ts +4 -3
  20. package/dist/filter/filter-query-field/index.d.ts +5 -5
  21. package/dist/filter/filter-query-field/select-data-source.d.ts +5 -5
  22. package/dist/filter/filter-query-field/test-query.d.ts +7 -0
  23. package/dist/filter/filter-select/editor.d.ts +3 -7
  24. package/dist/filter/filter-select/render.d.ts +3 -2
  25. package/dist/filter/filter-settings/filter-setting.d.ts +4 -7
  26. package/dist/filter/filter-settings/filter-settings.d.ts +4 -5
  27. package/dist/filter/filter-settings/index.d.ts +3 -4
  28. package/dist/filter/filter-settings/preview-filter.d.ts +4 -8
  29. package/dist/filter/filter-text-input/editor.d.ts +3 -6
  30. package/dist/filter/filter-text-input/render.d.ts +3 -2
  31. package/dist/filter/filter.d.ts +3 -3
  32. package/dist/filter/index.d.ts +2 -2
  33. package/dist/layout/index.d.ts +2 -2
  34. package/dist/layout/read-only.d.ts +2 -2
  35. package/dist/main/actions.d.ts +5 -5
  36. package/dist/main/full-screen-panel.d.ts +1 -1
  37. package/dist/main/main.d.ts +4 -4
  38. package/dist/main/read-only.d.ts +3 -3
  39. package/dist/main/toggle-mode.d.ts +2 -2
  40. package/dist/main/use-filters.d.ts +2124 -4
  41. package/dist/main/use-panel-full-screen.d.ts +1 -1
  42. package/dist/model/dashboard.d.ts +8103 -0
  43. package/dist/model/filter/checkbox.d.ts +16 -0
  44. package/dist/model/filter/common.d.ts +14 -0
  45. package/dist/model/filter/date-range.d.ts +28 -0
  46. package/dist/model/filter/index.d.ts +172 -0
  47. package/dist/model/filter/multi-select.d.ts +81 -0
  48. package/dist/model/filter/select.d.ts +95 -0
  49. package/dist/model/filter/text-input.d.ts +22 -0
  50. package/dist/model/index.d.ts +2 -0
  51. package/dist/panel/error-boundary.d.ts +1 -1
  52. package/dist/panel/settings/common/aggregation-selector.d.ts +2 -2
  53. package/dist/panel/settings/common/color-array-input.d.ts +1 -1
  54. package/dist/panel/settings/common/data-field-selector.d.ts +2 -2
  55. package/dist/panel/settings/common/mantine-color.d.ts +1 -1
  56. package/dist/panel/settings/common/mantine-font-weight.d.ts +1 -1
  57. package/dist/panel/settings/common/numbro-format-selector.d.ts +1 -1
  58. package/dist/panel/settings/common/text-array-input.d.ts +1 -1
  59. package/dist/panel/viz/bar-3d/panel.d.ts +1 -1
  60. package/dist/panel/viz/cartesian/panel/index.d.ts +1 -1
  61. package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +2 -2
  62. package/dist/panel/viz/cartesian/panel/regressions/regression-item.d.ts +2 -2
  63. package/dist/panel/viz/cartesian/panel/series/fields.bar.d.ts +3 -3
  64. package/dist/panel/viz/cartesian/panel/series/index.d.ts +2 -2
  65. package/dist/panel/viz/cartesian/panel/series/series-item.d.ts +2 -2
  66. package/dist/panel/viz/cartesian/panel/stats/index.d.ts +2 -2
  67. package/dist/panel/viz/cartesian/panel/stats/variable.d.ts +2 -2
  68. package/dist/panel/viz/cartesian/panel/y-axes.d.ts +2 -2
  69. package/dist/panel/viz/cartesian/type.d.ts +3 -3
  70. package/dist/panel/viz/index.d.ts +1 -1
  71. package/dist/panel/viz/pie/panel.d.ts +1 -1
  72. package/dist/panel/viz/rich-text/panel.d.ts +1 -1
  73. package/dist/panel/viz/rich-text/type.d.ts +1 -1
  74. package/dist/panel/viz/stats/panel/index.d.ts +3 -3
  75. package/dist/panel/viz/stats/panel/variable.d.ts +2 -2
  76. package/dist/panel/viz/stats/panel/variables.d.ts +2 -2
  77. package/dist/panel/viz/stats/types.d.ts +1 -1
  78. package/dist/panel/viz/stats/update/index.d.ts +2 -2
  79. package/dist/panel/viz/sunburst/panel.d.ts +1 -1
  80. package/dist/panel/viz/table/index.d.ts +1 -1
  81. package/dist/panel/viz/table/panel.d.ts +1 -1
  82. package/dist/panel/viz/table/value-type-selector.d.ts +1 -1
  83. package/dist/panel/viz/table/value.d.ts +1 -1
  84. package/dist/types/dashboard.d.ts +2 -2
  85. package/dist/types/filter.d.ts +6 -38
  86. package/dist/types/viz-panel.d.ts +1 -1
  87. package/dist/utils/sql.d.ts +2 -2
  88. package/dist/utils/template/editor.d.ts +3 -3
  89. package/dist/utils/template/render.d.ts +1 -1
  90. package/dist/utils/template/types.d.ts +2 -2
  91. package/package.json +5 -2
  92. package/dist/filter/filter-settings/types.d.ts +0 -4
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Sx } from "@mantine/core";
2
+ import { Sx } from '@mantine/core';
3
3
  interface IGlobalVariablesGuide {
4
4
  showSQLSnippets?: boolean;
5
5
  sx?: Sx;
@@ -1,4 +1,4 @@
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>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IQuery } from "../../types";
2
+ import { IQuery } from '../../types';
3
3
  interface IQueryForm {
4
4
  value: IQuery;
5
5
  onChange: any;
@@ -1,4 +1,4 @@
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>>;
@@ -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/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/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/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/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/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/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/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/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/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/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/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,7 @@
1
- /// <reference types="react" />
2
- import { IDashboardFilter } from "../../types";
1
+ import React from 'react';
2
+ import { DashboardModelInstance } from '../../model';
3
3
  interface FilterSettings {
4
- filters: IDashboardFilter[];
5
- setFilters: (v: IDashboardFilter[]) => void;
4
+ model: DashboardModelInstance;
6
5
  }
7
- export declare function FilterSettings({ filters, setFilters }: FilterSettings): JSX.Element;
6
+ export declare const FilterSettings: React.FunctionComponent<FilterSettings>;
8
7
  export {};
@@ -1,10 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter } from "../../types";
2
+ import { DashboardModelInstance } from '../../model';
3
3
  interface FilterSettingsModal {
4
4
  opened: boolean;
5
5
  close: () => void;
6
- filters: IDashboardFilter[];
7
- setFilters: (v: IDashboardFilter[]) => void;
6
+ model: DashboardModelInstance;
8
7
  }
9
- export declare function FilterSettingsModal({ opened, close, filters, setFilters }: FilterSettingsModal): JSX.Element;
8
+ export declare function FilterSettingsModal({ opened, close, model }: FilterSettingsModal): JSX.Element;
10
9
  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/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/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,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardFilter } from "../types";
2
+ import { FilterModelInstance } from '../model';
3
3
  interface IFilters {
4
- filters: IDashboardFilter[];
4
+ filters: FilterModelInstance[];
5
5
  filterValues: Record<string, any>;
6
6
  setFilterValues: (v: Record<string, any>) => void;
7
7
  }
@@ -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[]>>;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardPanel } from "../types/dashboard";
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 function ReadOnlyDashboardLayout({ panels, className, rowHeight }: IReadOnlyDashboardLayout): JSX.Element;
9
9
  export {};
@@ -1,5 +1,6 @@
1
- import React from "react";
2
- import { DashboardMode, IDashboardFilter } from "../types";
1
+ import React from 'react';
2
+ import { DashboardMode } from '../types';
3
+ import { DashboardModelInstance } from '../model';
3
4
  interface IDashboardActions {
4
5
  mode: DashboardMode;
5
6
  setMode: React.Dispatch<React.SetStateAction<DashboardMode>>;
@@ -7,8 +8,7 @@ interface IDashboardActions {
7
8
  saveChanges: () => void;
8
9
  revertChanges: () => void;
9
10
  getCurrentSchema: () => any;
10
- filters: IDashboardFilter[];
11
- setFilters: (v: IDashboardFilter[]) => void;
11
+ model: DashboardModelInstance;
12
12
  }
13
- export declare function DashboardActions({ mode, setMode, hasChanges, saveChanges, revertChanges, getCurrentSchema, filters, setFilters, }: IDashboardActions): JSX.Element;
13
+ export declare function DashboardActions({ mode, setMode, hasChanges, saveChanges, revertChanges, getCurrentSchema, model, }: IDashboardActions): JSX.Element;
14
14
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IDashboardPanel } from "../types";
2
+ import { IDashboardPanel } from '../types';
3
3
  export declare function FullScreenPanel({ panel, exitFullScreen }: {
4
4
  panel: IDashboardPanel;
5
5
  exitFullScreen: () => void;
@@ -1,6 +1,6 @@
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 { ContextInfoContextType } from '../contexts';
4
4
  interface IDashboardProps {
5
5
  context: ContextInfoContextType;
6
6
  dashboard: IDashboard;
@@ -8,5 +8,5 @@ interface IDashboardProps {
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 { ContextInfoContextType } from '../contexts';
4
4
  interface IReadOnlyDashboard {
5
5
  context: ContextInfoContextType;
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>>;