@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.
- package/dist/api-caller/request.d.ts +1 -1
- package/dist/contexts/dashboard-action-context.d.ts +0 -3
- package/dist/contexts/model-context.d.ts +4908 -116
- package/dist/contexts/panel-context.d.ts +1 -1
- package/dist/dashboard.es.js +6409 -6340
- package/dist/dashboard.umd.js +26 -26
- package/dist/definition-editor/query-editor/index.d.ts +1 -4
- package/dist/definition-editor/sql-snippet-editor/editor.d.ts +2 -5
- package/dist/definition-editor/sql-snippet-editor/index.d.ts +1 -4
- package/dist/filter/filter-checkbox/render.d.ts +3 -3
- package/dist/filter/filter-date-range/render.d.ts +2 -2
- package/dist/filter/filter-multi-select/render.d.ts +2 -2
- package/dist/filter/filter-select/render.d.ts +2 -2
- package/dist/filter/filter-settings/filter-settings.d.ts +2 -5
- package/dist/filter/filter-text-input/render.d.ts +2 -2
- package/dist/filter/filter.d.ts +2 -2
- package/dist/filter/index.d.ts +2 -5
- package/dist/global.d.ts +2 -0
- package/dist/layout/index.d.ts +0 -3
- package/dist/layout/read-only.d.ts +2 -4
- package/dist/main/actions.d.ts +1 -3
- package/dist/main/main.d.ts +1 -1
- package/dist/main/view-schema-modal.d.ts +1 -1
- package/dist/model/context.d.ts +3 -3
- package/dist/model/dashboard.d.ts +3196 -41
- package/dist/model/filters/index.d.ts +3 -3
- package/dist/model/panels/index.d.ts +314 -0
- package/dist/model/panels/layout.d.ts +22 -0
- package/dist/model/panels/panel.d.ts +63 -0
- package/dist/model/panels/viz.d.ts +15 -0
- package/dist/model/queries/index.d.ts +3 -3
- package/dist/model/queries/query.d.ts +1 -1
- package/dist/panel/error-boundary.d.ts +2 -2
- package/dist/panel/index.d.ts +0 -1
- package/dist/panel/panel-description.d.ts +1 -4
- package/dist/panel/settings/common/data-field-selector.d.ts +1 -1
- package/dist/panel/settings/panel-config/index.d.ts +1 -4
- package/dist/panel/settings/pick-query/index.d.ts +1 -4
- package/dist/panel/settings/viz-config/index.d.ts +1 -4
- package/dist/panel/settings/viz-config/preview-viz.d.ts +1 -4
- package/dist/panel/title-bar.d.ts +1 -4
- package/dist/panel/viz/index.d.ts +1 -1
- package/dist/plugins/json-plugin-storage.d.ts +2 -2
- package/dist/plugins/plugin-data-migrator/plugin-data-migrator.d.ts +3 -3
- package/dist/plugins/plugin-data-migrator/version-based-migrator.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/reference-lines/index.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/reference-lines/reference-line.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/variables/index.d.ts +2 -2
- package/dist/plugins/viz-components/boxplot-chart/variables/variable.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/regression.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/tooltip.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/x-axis.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/y-axis.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/regressions/index.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/regressions/regression-item.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/series/fields.bar.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/panel/series/fields.line.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/panel/series/fields.scatter.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/panel/series/index.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/series/series-item.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/stats/index.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/stats/variable.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/panel/y-axes.d.ts +1 -1
- package/dist/plugins/viz-components/radar-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/radar-chart/panel/dimensions.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/option/regression-expression.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/option/regression-series.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +2 -2
- package/dist/plugins/viz-components/stats/panel/variable.d.ts +2 -2
- package/dist/plugins/viz-components/stats/panel/variables.d.ts +2 -2
- package/dist/plugins/viz-components/table/value.d.ts +1 -1
- package/dist/plugins/viz-manager/components.d.ts +2 -2
- package/dist/types/utils.d.ts +1 -1
- package/dist/types/viz-panel.d.ts +1 -1
- package/dist/utils/aggregation.d.ts +1 -1
- package/dist/utils/download.d.ts +2 -2
- package/dist/utils/sql.d.ts +1 -1
- package/dist/utils/template/editor/variable-field.d.ts +1 -1
- package/dist/utils/template/utils.d.ts +1 -1
- package/package.json +2 -1
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare const SQLSnippetsEditor: React.FunctionComponent<ISQLSnippetsEditor>;
|
|
5
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SQLSnippetsEditor: import("react").FunctionComponent<object>;
|
|
@@ -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:
|
|
7
|
-
onChange: (v:
|
|
6
|
+
value: $TSFixMe;
|
|
7
|
+
onChange: (v: $TSFixMe) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare function FilterCheckbox({ label, config: {
|
|
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:
|
|
7
|
-
onChange: (v:
|
|
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:
|
|
7
|
-
onChange: (v:
|
|
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:
|
|
7
|
-
onChange: (v:
|
|
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
|
-
|
|
2
|
-
|
|
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:
|
|
7
|
-
onChange: (v:
|
|
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 {};
|
package/dist/filter/filter.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { FilterModelInstance } from '../model';
|
|
3
3
|
interface IFilter {
|
|
4
4
|
filter: FilterModelInstance;
|
|
5
|
-
value:
|
|
6
|
-
onChange: (v:
|
|
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 {};
|
package/dist/filter/index.d.ts
CHANGED
package/dist/global.d.ts
ADDED
package/dist/layout/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
6
|
+
export declare const ReadOnlyDashboardLayout: import("react").FunctionComponent<IReadOnlyDashboardLayout>;
|
|
9
7
|
export {};
|
package/dist/main/actions.d.ts
CHANGED
|
@@ -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
|
-
|
|
9
|
-
getCurrentSchema: () => any;
|
|
7
|
+
getCurrentSchema: () => $TSFixMe;
|
|
10
8
|
}
|
|
11
9
|
export declare const DashboardActions: React.FunctionComponent<IDashboardActions>;
|
|
12
10
|
export {};
|
package/dist/main/main.d.ts
CHANGED
|
@@ -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;
|
package/dist/model/context.d.ts
CHANGED
|
@@ -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,
|
|
7
|
+
replace(record: Record<string, $TSFixMe>): void;
|
|
8
8
|
get(key: string): any;
|
|
9
|
-
set(key: string, value:
|
|
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,
|
|
11
|
+
export declare type ContextInfoType = Record<string, $TSFixMe>;
|