@devtable/dashboard 4.1.1 → 4.2.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 (83) hide show
  1. package/dist/api-caller/request.d.ts +1 -1
  2. package/dist/contexts/dashboard-action-context.d.ts +0 -3
  3. package/dist/contexts/model-context.d.ts +4908 -116
  4. package/dist/contexts/panel-context.d.ts +1 -1
  5. package/dist/dashboard.es.js +6409 -6340
  6. package/dist/dashboard.umd.js +26 -26
  7. package/dist/definition-editor/query-editor/index.d.ts +1 -4
  8. package/dist/definition-editor/sql-snippet-editor/editor.d.ts +2 -5
  9. package/dist/definition-editor/sql-snippet-editor/index.d.ts +1 -4
  10. package/dist/filter/filter-checkbox/render.d.ts +3 -3
  11. package/dist/filter/filter-date-range/render.d.ts +2 -2
  12. package/dist/filter/filter-multi-select/render.d.ts +2 -2
  13. package/dist/filter/filter-select/render.d.ts +2 -2
  14. package/dist/filter/filter-settings/filter-settings.d.ts +2 -5
  15. package/dist/filter/filter-text-input/render.d.ts +2 -2
  16. package/dist/filter/filter.d.ts +2 -2
  17. package/dist/filter/index.d.ts +2 -5
  18. package/dist/global.d.ts +2 -0
  19. package/dist/layout/index.d.ts +0 -3
  20. package/dist/layout/read-only.d.ts +2 -4
  21. package/dist/main/actions.d.ts +1 -3
  22. package/dist/main/main.d.ts +1 -1
  23. package/dist/main/view-schema-modal.d.ts +1 -1
  24. package/dist/model/context.d.ts +3 -3
  25. package/dist/model/dashboard.d.ts +3196 -41
  26. package/dist/model/filters/index.d.ts +3 -3
  27. package/dist/model/panels/index.d.ts +314 -0
  28. package/dist/model/panels/layout.d.ts +22 -0
  29. package/dist/model/panels/panel.d.ts +63 -0
  30. package/dist/model/panels/viz.d.ts +15 -0
  31. package/dist/model/queries/index.d.ts +3 -3
  32. package/dist/model/queries/query.d.ts +1 -1
  33. package/dist/panel/error-boundary.d.ts +2 -2
  34. package/dist/panel/index.d.ts +0 -1
  35. package/dist/panel/panel-description.d.ts +1 -4
  36. package/dist/panel/settings/common/data-field-selector.d.ts +1 -1
  37. package/dist/panel/settings/panel-config/index.d.ts +1 -4
  38. package/dist/panel/settings/pick-query/index.d.ts +1 -4
  39. package/dist/panel/settings/viz-config/index.d.ts +1 -4
  40. package/dist/panel/settings/viz-config/preview-viz.d.ts +1 -4
  41. package/dist/panel/title-bar.d.ts +1 -4
  42. package/dist/panel/viz/index.d.ts +1 -1
  43. package/dist/plugins/json-plugin-storage.d.ts +2 -2
  44. package/dist/plugins/plugin-data-migrator/plugin-data-migrator.d.ts +3 -3
  45. package/dist/plugins/plugin-data-migrator/version-based-migrator.d.ts +1 -1
  46. package/dist/plugins/viz-components/boxplot-chart/reference-lines/index.d.ts +1 -1
  47. package/dist/plugins/viz-components/boxplot-chart/reference-lines/reference-line.d.ts +1 -1
  48. package/dist/plugins/viz-components/boxplot-chart/variables/index.d.ts +2 -2
  49. package/dist/plugins/viz-components/boxplot-chart/variables/variable.d.ts +2 -2
  50. package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
  51. package/dist/plugins/viz-components/cartesian/option/regression.d.ts +2 -2
  52. package/dist/plugins/viz-components/cartesian/option/series.d.ts +1 -1
  53. package/dist/plugins/viz-components/cartesian/option/tooltip.d.ts +1 -1
  54. package/dist/plugins/viz-components/cartesian/option/x-axis.d.ts +1 -1
  55. package/dist/plugins/viz-components/cartesian/option/y-axis.d.ts +2 -2
  56. package/dist/plugins/viz-components/cartesian/panel/regressions/index.d.ts +2 -2
  57. package/dist/plugins/viz-components/cartesian/panel/regressions/regression-item.d.ts +2 -2
  58. package/dist/plugins/viz-components/cartesian/panel/series/fields.bar.d.ts +1 -1
  59. package/dist/plugins/viz-components/cartesian/panel/series/fields.line.d.ts +1 -1
  60. package/dist/plugins/viz-components/cartesian/panel/series/fields.scatter.d.ts +1 -1
  61. package/dist/plugins/viz-components/cartesian/panel/series/index.d.ts +2 -2
  62. package/dist/plugins/viz-components/cartesian/panel/series/series-item.d.ts +2 -2
  63. package/dist/plugins/viz-components/cartesian/panel/stats/index.d.ts +2 -2
  64. package/dist/plugins/viz-components/cartesian/panel/stats/variable.d.ts +2 -2
  65. package/dist/plugins/viz-components/cartesian/panel/y-axes.d.ts +1 -1
  66. package/dist/plugins/viz-components/radar-chart/option/index.d.ts +1 -1
  67. package/dist/plugins/viz-components/radar-chart/panel/dimensions.d.ts +2 -2
  68. package/dist/plugins/viz-components/regression-chart/option/index.d.ts +1 -1
  69. package/dist/plugins/viz-components/regression-chart/option/regression-expression.d.ts +1 -1
  70. package/dist/plugins/viz-components/regression-chart/option/regression-series.d.ts +1 -1
  71. package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +2 -2
  72. package/dist/plugins/viz-components/stats/panel/variable.d.ts +2 -2
  73. package/dist/plugins/viz-components/stats/panel/variables.d.ts +2 -2
  74. package/dist/plugins/viz-components/table/value.d.ts +1 -1
  75. package/dist/plugins/viz-manager/components.d.ts +2 -2
  76. package/dist/types/utils.d.ts +1 -1
  77. package/dist/types/viz-panel.d.ts +1 -1
  78. package/dist/utils/aggregation.d.ts +1 -1
  79. package/dist/utils/download.d.ts +2 -2
  80. package/dist/utils/sql.d.ts +1 -1
  81. package/dist/utils/template/editor/variable-field.d.ts +1 -1
  82. package/dist/utils/template/utils.d.ts +1 -1
  83. package/package.json +2 -1
@@ -1,5 +1,2 @@
1
1
  import React from 'react';
2
- interface IEditQueries {
3
- }
4
- export declare const EditQueries: React.FunctionComponent<IEditQueries>;
5
- export {};
2
+ export declare const EditQueries: React.FunctionComponent<object>;
@@ -1,5 +1,2 @@
1
- import React from 'react';
2
- interface ISQLSnippetsEditor {
3
- }
4
- export declare const SQLSnippetsEditor: React.FunctionComponent<ISQLSnippetsEditor>;
5
- export {};
1
+ /// <reference types="react" />
2
+ export declare const SQLSnippetsEditor: import("react").FunctionComponent<object>;
@@ -1,5 +1,2 @@
1
1
  /// <reference types="react" />
2
- interface IEditSQLSnippets {
3
- }
4
- export declare function EditSQLSnippets({}: IEditSQLSnippets): JSX.Element;
5
- export {};
2
+ export declare function EditSQLSnippets(): JSX.Element;
@@ -3,8 +3,8 @@ import { FilterModelInstance } from '../../model';
3
3
  import { IFilterConfig_Checkbox } from '../../model/filters/filter/checkbox';
4
4
  interface IFilterCheckbox extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
5
  config: IFilterConfig_Checkbox;
6
- value: any;
7
- onChange: (v: any) => void;
6
+ value: $TSFixMe;
7
+ onChange: (v: $TSFixMe) => void;
8
8
  }
9
- export declare function FilterCheckbox({ label, config: { default_value, ...rest }, value, onChange }: IFilterCheckbox): JSX.Element;
9
+ export declare function FilterCheckbox({ label, config: { ...rest }, value, onChange }: IFilterCheckbox): JSX.Element;
10
10
  export {};
@@ -3,8 +3,8 @@ import { FilterModelInstance } from '../../model';
3
3
  import { IFilterConfig_DateRange } from '../../model/filters/filter/date-range';
4
4
  interface IFilterDateRange extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
5
  config: IFilterConfig_DateRange;
6
- value: any;
7
- onChange: (v: any) => void;
6
+ value: $TSFixMe;
7
+ onChange: (v: $TSFixMe) => void;
8
8
  }
9
9
  export declare function FilterDateRange({ label, config, value, onChange }: IFilterDateRange): JSX.Element;
10
10
  export {};
@@ -3,8 +3,8 @@ import { FilterModelInstance } from '../../model';
3
3
  import { IFilterConfig_MultiSelect } from '../../model/filters/filter/multi-select';
4
4
  interface IFilterMultiSelect extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
5
  config: IFilterConfig_MultiSelect;
6
- value: any;
7
- onChange: (v: any) => void;
6
+ value: $TSFixMe;
7
+ onChange: (v: $TSFixMe) => void;
8
8
  }
9
9
  export declare function FilterMultiSelect({ label, config, value, onChange }: IFilterMultiSelect): JSX.Element;
10
10
  export {};
@@ -3,8 +3,8 @@ import { FilterModelInstance } from '../../model';
3
3
  import { IFilterConfig_Select } from '../../model/filters/filter/select';
4
4
  interface IFilterSelect extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
5
  config: IFilterConfig_Select;
6
- value: any;
7
- onChange: (v: any) => void;
6
+ value: $TSFixMe;
7
+ onChange: (v: $TSFixMe) => void;
8
8
  }
9
9
  export declare function FilterSelect({ label, config, value, onChange }: IFilterSelect): JSX.Element;
10
10
  export {};
@@ -1,5 +1,2 @@
1
- import React from 'react';
2
- interface FilterSettings {
3
- }
4
- export declare const FilterSettings: React.FunctionComponent<FilterSettings>;
5
- export {};
1
+ /// <reference types="react" />
2
+ export declare const FilterSettings: import("react").FunctionComponent<object>;
@@ -3,8 +3,8 @@ import { FilterModelInstance } from '../../model';
3
3
  import { IFilterConfig_TextInput } from '../../model/filters/filter/text-input';
4
4
  interface IFilterTextInput extends Omit<FilterModelInstance, 'key' | 'type' | 'config'> {
5
5
  config: IFilterConfig_TextInput;
6
- value: any;
7
- onChange: (v: any) => void;
6
+ value: $TSFixMe;
7
+ onChange: (v: $TSFixMe) => void;
8
8
  }
9
9
  export declare function FilterTextInput({ label, config, value, onChange }: IFilterTextInput): JSX.Element;
10
10
  export {};
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { FilterModelInstance } from '../model';
3
3
  interface IFilter {
4
4
  filter: FilterModelInstance;
5
- value: any;
6
- onChange: (v: any) => void;
5
+ value: $TSFixMe;
6
+ onChange: (v: $TSFixMe) => void;
7
7
  }
8
8
  export declare const Filter: React.ForwardRefExoticComponent<IFilter & React.RefAttributes<unknown>>;
9
9
  export {};
@@ -1,5 +1,2 @@
1
- import React from 'react';
2
- interface IFilters {
3
- }
4
- export declare const Filters: React.FunctionComponent<IFilters>;
5
- export {};
1
+ /// <reference types="react" />
2
+ export declare const Filters: import("react").FunctionComponent<object>;
@@ -0,0 +1,2 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
+ type $TSFixMe = any;
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
- import { IDashboardPanel } from '../types/dashboard';
3
2
  interface IDashboardLayout {
4
- panels: IDashboardPanel[];
5
- setPanels: React.Dispatch<React.SetStateAction<IDashboardPanel[]>>;
6
3
  className?: string;
7
4
  rowHeight?: number;
8
5
  isDraggable: boolean;
@@ -1,9 +1,7 @@
1
- import React from 'react';
2
- import { IDashboardPanel } from '../types/dashboard';
1
+ /// <reference types="react" />
3
2
  interface IReadOnlyDashboardLayout {
4
- panels: IDashboardPanel[];
5
3
  className?: string;
6
4
  rowHeight?: number;
7
5
  }
8
- export declare const ReadOnlyDashboardLayout: React.FunctionComponent<IReadOnlyDashboardLayout>;
6
+ export declare const ReadOnlyDashboardLayout: import("react").FunctionComponent<IReadOnlyDashboardLayout>;
9
7
  export {};
@@ -3,10 +3,8 @@ import { DashboardMode } from '../types';
3
3
  interface IDashboardActions {
4
4
  mode: DashboardMode;
5
5
  setMode: React.Dispatch<React.SetStateAction<DashboardMode>>;
6
- hasChanges: boolean;
7
6
  saveChanges: () => void;
8
- revertChanges: () => void;
9
- getCurrentSchema: () => any;
7
+ getCurrentSchema: () => $TSFixMe;
10
8
  }
11
9
  export declare const DashboardActions: React.FunctionComponent<IDashboardActions>;
12
10
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { IDashboard, IDashboardConfig } from '../types/dashboard';
3
2
  import { ContextInfoType } from '../model/context';
3
+ import { IDashboard, IDashboardConfig } from '../types/dashboard';
4
4
  interface IDashboardProps {
5
5
  context: ContextInfoType;
6
6
  dashboard: IDashboard;
@@ -2,7 +2,7 @@
2
2
  interface IViewSchemaModal {
3
3
  opened: boolean;
4
4
  close: () => void;
5
- getCurrentSchema: () => any;
5
+ getCurrentSchema: () => $TSFixMe;
6
6
  }
7
7
  export declare function ViewSchemaModal({ opened, close, getCurrentSchema }: IViewSchemaModal): JSX.Element;
8
8
  export {};
@@ -4,8 +4,8 @@ export declare const ContextModel: import("mobx-state-tree").IModelType<{
4
4
  readonly keys: string[];
5
5
  readonly entries: [string, unknown][];
6
6
  } & {
7
- replace(record: Record<string, any>): void;
7
+ replace(record: Record<string, $TSFixMe>): void;
8
8
  get(key: string): any;
9
- set(key: string, value: any): void;
9
+ set(key: string, value: $TSFixMe): void;
10
10
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
11
- export declare type ContextInfoType = Record<string, any>;
11
+ export declare type ContextInfoType = Record<string, $TSFixMe>;