@devtable/dashboard 4.1.0 → 4.1.2
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/index.d.ts +1 -1
- package/dist/api-caller/request.d.ts +1 -1
- package/dist/contexts/layout-state-context.d.ts +0 -1
- package/dist/contexts/model-context.d.ts +1444 -1444
- package/dist/contexts/panel-context.d.ts +1 -1
- package/dist/dashboard.es.js +11033 -8417
- package/dist/dashboard.umd.js +26 -26
- package/dist/definition-editor/query-editor/form.d.ts +1 -0
- package/dist/definition-editor/query-editor/index.d.ts +1 -4
- package/dist/definition-editor/select-data-source.d.ts +14 -0
- 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-query-field/index.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/interactions/attachment-instance-manager.d.ts +14 -0
- package/dist/interactions/components/interaction-settings.d.ts +13 -0
- package/dist/interactions/components/operation-select.d.ts +11 -0
- package/dist/interactions/components/trigger-config-model.d.ts +18 -0
- package/dist/interactions/components/trigger-select.d.ts +8 -0
- package/dist/interactions/components/variable-list.d.ts +7 -0
- package/dist/interactions/hooks/use-current-interaction-manager.d.ts +6 -0
- package/dist/interactions/hooks/use-watch-triggers.d.ts +2 -0
- package/dist/interactions/interaction-manager.d.ts +14 -0
- package/dist/interactions/operation/operation-manager-impl.d.ts +13 -0
- package/dist/interactions/operation/operations/console-log.d.ts +5 -0
- package/dist/interactions/operation/operations/index.d.ts +2 -0
- package/dist/interactions/operation/operations/open-link.d.ts +6 -0
- package/dist/interactions/trigger/trigger-manager-impl.d.ts +18 -0
- package/dist/layout/read-only.d.ts +2 -2
- package/dist/main/actions.d.ts +1 -1
- 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 +956 -956
- package/dist/model/filters/filter/common.d.ts +2 -1
- package/dist/model/filters/filter/index.d.ts +10 -10
- package/dist/model/filters/filter/multi-select.d.ts +5 -4
- package/dist/model/filters/filter/select.d.ts +5 -4
- package/dist/model/filters/index.d.ts +227 -227
- 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/panel-description.d.ts +1 -4
- package/dist/panel/settings/common/data-field-selector.d.ts +2 -1
- package/dist/panel/settings/common/numbro-format-selector.d.ts +1 -0
- 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/color-manager/color-manager.d.ts +7 -0
- package/dist/plugins/color-manager/impl.d.ts +10 -0
- package/dist/plugins/color-manager/index.d.ts +2 -0
- package/dist/plugins/hooks/use-storage-data.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/json-plugin-storage.d.ts +4 -4
- package/dist/plugins/message-channels.d.ts +1 -1
- package/dist/plugins/plugin-context.d.ts +3 -1
- package/dist/plugins/plugin-data-migrator/index.d.ts +1 -0
- package/dist/plugins/plugin-data-migrator/plugin-data-migrator.d.ts +3 -3
- package/dist/plugins/plugin-data-migrator/version-based-migrator.d.ts +18 -0
- package/dist/plugins/plugin-manager.d.ts +1 -2
- package/dist/plugins/sub-tree-json-plugin-storage.d.ts +10 -0
- package/dist/plugins/viz-components/bar-3d-chart/index.d.ts +2 -0
- package/dist/plugins/viz-components/bar-3d-chart/type.d.ts +13 -0
- package/dist/plugins/viz-components/bar-3d-chart/viz-bar-3d-chart-panel.d.ts +3 -0
- package/dist/plugins/viz-components/bar-3d-chart/viz-bar-3d-chart.d.ts +3 -0
- package/dist/plugins/viz-components/boxplot-chart/index.d.ts +2 -0
- package/dist/plugins/viz-components/boxplot-chart/reference-lines/index.d.ts +9 -0
- package/dist/plugins/viz-components/boxplot-chart/reference-lines/reference-line.d.ts +14 -0
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +20 -0
- package/dist/plugins/viz-components/boxplot-chart/variables/index.d.ts +10 -0
- package/dist/plugins/viz-components/boxplot-chart/variables/variable.d.ts +11 -0
- package/dist/plugins/viz-components/boxplot-chart/viz-boxplot-chart-panel.d.ts +3 -0
- package/dist/plugins/viz-components/boxplot-chart/viz-boxplot-chart.d.ts +3 -0
- package/dist/plugins/viz-components/cartesian/index.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/grid.d.ts +5 -0
- package/dist/plugins/viz-components/cartesian/option/index.d.ts +2 -0
- package/dist/{panel/viz → plugins/viz-components}/cartesian/option/regression.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/option/series.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/tooltip.d.ts +5 -0
- package/dist/plugins/viz-components/cartesian/option/x-axis.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/y-axis.d.ts +15 -0
- package/dist/plugins/viz-components/cartesian/panel/regressions/index.d.ts +10 -0
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/regressions/regression-item.d.ts +2 -2
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/series/fields.bar.d.ts +1 -1
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/series/fields.line.d.ts +1 -1
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/series/fields.scatter.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/panel/series/index.d.ts +10 -0
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/series/series-item.d.ts +2 -2
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/stats/index.d.ts +2 -2
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/stats/variable.d.ts +2 -2
- package/dist/{panel/viz → plugins/viz-components}/cartesian/panel/y-axes.d.ts +1 -1
- package/dist/{panel/viz → plugins/viz-components}/cartesian/type.d.ts +5 -7
- package/dist/plugins/viz-components/cartesian/viz-cartesian-chart.d.ts +3 -0
- package/dist/plugins/viz-components/cartesian/viz-cartesian-panel.d.ts +3 -0
- package/dist/plugins/viz-components/pie-chart/index.d.ts +2 -0
- package/dist/plugins/viz-components/pie-chart/type.d.ts +5 -0
- package/dist/plugins/viz-components/pie-chart/viz-pie-chart-panel.d.ts +3 -0
- package/dist/plugins/viz-components/pie-chart/viz-pie-chart.d.ts +3 -0
- package/dist/plugins/viz-components/radar-chart/index.d.ts +2 -0
- package/dist/plugins/viz-components/radar-chart/option/index.d.ts +26 -0
- package/dist/plugins/viz-components/radar-chart/panel/dimensions.d.ts +10 -0
- package/dist/plugins/viz-components/radar-chart/type.d.ts +11 -0
- package/dist/plugins/viz-components/radar-chart/viz-radar-chart-panel.d.ts +3 -0
- package/dist/plugins/viz-components/radar-chart/viz-radar-chart.d.ts +3 -0
- package/dist/plugins/viz-components/regression-chart/index.d.ts +2 -0
- package/dist/plugins/viz-components/regression-chart/option/index.d.ts +2 -0
- package/dist/plugins/viz-components/regression-chart/option/regression-expression.d.ts +15 -0
- package/dist/plugins/viz-components/regression-chart/option/regression-series.d.ts +14 -0
- package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +14 -0
- package/dist/plugins/viz-components/regression-chart/type.d.ts +12 -0
- package/dist/plugins/viz-components/regression-chart/viz-regression-chart-panel.d.ts +3 -0
- package/dist/plugins/viz-components/regression-chart/viz-regression-chart.d.ts +3 -0
- package/dist/plugins/viz-components/rich-text/hooks.d.ts +8 -0
- package/dist/plugins/viz-components/rich-text/index.d.ts +2 -0
- package/dist/plugins/viz-components/rich-text/type.d.ts +4 -0
- package/dist/plugins/viz-components/rich-text/viz-rich-text-panel.d.ts +3 -0
- package/dist/plugins/viz-components/rich-text/viz-rich-text.d.ts +3 -0
- package/dist/plugins/viz-components/stats/index.d.ts +2 -0
- package/dist/{panel/viz → plugins/viz-components}/stats/panel/variable.d.ts +3 -3
- package/dist/{panel/viz → plugins/viz-components}/stats/panel/variables.d.ts +3 -3
- package/dist/{panel/viz/stats/types.d.ts → plugins/viz-components/stats/type.d.ts} +2 -1
- package/dist/plugins/viz-components/stats/update/index.d.ts +5 -0
- package/dist/plugins/viz-components/stats/viz-stats-panel.d.ts +3 -0
- package/dist/plugins/viz-components/stats/viz-stats.d.ts +3 -0
- package/dist/plugins/viz-components/sunburst/index.d.ts +2 -0
- package/dist/plugins/viz-components/sunburst/type.d.ts +5 -0
- package/dist/plugins/viz-components/sunburst/viz-sunburst-panel.d.ts +3 -0
- package/dist/plugins/viz-components/sunburst/viz-sunburst.d.ts +3 -0
- package/dist/plugins/viz-components/table/index.d.ts +1 -1
- package/dist/plugins/viz-components/table/triggers/click-cell-content.d.ts +11 -0
- package/dist/plugins/viz-components/table/triggers/index.d.ts +1 -0
- package/dist/plugins/viz-components/table/value.d.ts +3 -2
- package/dist/plugins/viz-components/table/viz-table-panel.d.ts +1 -1
- package/dist/plugins/viz-components/table/viz-table.d.ts +2 -2
- package/dist/plugins/viz-manager/components.d.ts +5 -5
- package/dist/plugins/viz-manager/impl.d.ts +3 -3
- package/dist/plugins/viz-manager/types.d.ts +3 -7
- package/dist/types/dashboard.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/plugin/index.d.ts +94 -8
- package/dist/types/utils.d.ts +4 -0
- package/dist/types/viz-panel.d.ts +1 -1
- package/dist/utils/aggregation.d.ts +9 -1
- package/dist/utils/download.d.ts +2 -2
- package/dist/utils/sql.d.ts +1 -1
- package/dist/utils/template/editor/index.d.ts +3 -0
- package/dist/utils/template/editor/template-input.d.ts +8 -0
- package/dist/utils/template/editor/utils.d.ts +2 -0
- package/dist/utils/template/editor/variable-field.d.ts +10 -0
- package/dist/utils/template/editor/variable-style.d.ts +8 -0
- package/dist/utils/template/index.d.ts +4 -0
- package/dist/utils/template/render/index.d.ts +2 -0
- package/dist/utils/template/{render.d.ts → render/render-jsx.d.ts} +1 -1
- package/dist/utils/template/render/render-string.d.ts +2 -0
- package/dist/utils/template/utils.d.ts +4 -0
- package/package.json +1 -1
- package/dist/filter/filter-query-field/select-data-source.d.ts +0 -8
- package/dist/panel/viz/bar-3d/index.d.ts +0 -9
- package/dist/panel/viz/bar-3d/panel.d.ts +0 -3
- package/dist/panel/viz/cartesian/index.d.ts +0 -10
- package/dist/panel/viz/cartesian/panel/index.d.ts +0 -3
- package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +0 -11
- package/dist/panel/viz/cartesian/panel/series/index.d.ts +0 -11
- package/dist/panel/viz/pie/index.d.ts +0 -9
- package/dist/panel/viz/pie/panel.d.ts +0 -3
- package/dist/panel/viz/rich-text/index.d.ts +0 -10
- package/dist/panel/viz/rich-text/panel.d.ts +0 -3
- package/dist/panel/viz/rich-text/type.d.ts +0 -8
- package/dist/panel/viz/stats/index.d.ts +0 -10
- package/dist/panel/viz/stats/panel/index.d.ts +0 -10
- package/dist/panel/viz/stats/update/index.d.ts +0 -15
- package/dist/panel/viz/sunburst/index.d.ts +0 -9
- package/dist/panel/viz/sunburst/panel.d.ts +0 -3
- package/dist/utils/template/editor.d.ts +0 -16
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { QueryModelInstance } from '../../model/queries';
|
|
3
3
|
interface IQueryForm {
|
|
4
4
|
queryModel: QueryModelInstance;
|
|
5
|
+
setCurrentID: React.Dispatch<React.SetStateAction<string>>;
|
|
5
6
|
}
|
|
6
7
|
export declare const QueryForm: React.FunctionComponent<IQueryForm>;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataSourceType } from '~/model/queries/types';
|
|
3
|
+
interface ISelectDataSource {
|
|
4
|
+
value: {
|
|
5
|
+
type: DataSourceType;
|
|
6
|
+
key: string;
|
|
7
|
+
};
|
|
8
|
+
onChange: (v: {
|
|
9
|
+
type: DataSourceType;
|
|
10
|
+
key: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const SelectDataSource: import("react").FunctionComponent<ISelectDataSource>;
|
|
14
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { IFilterOptionQuery } from '../../model/filters/filter/common';
|
|
3
3
|
interface IFilterQueryField {
|
|
4
4
|
value: IFilterOptionQuery;
|
|
5
5
|
onChange: (v: IFilterOptionQuery) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const FilterQueryField:
|
|
7
|
+
export declare const FilterQueryField: import("react").FunctionComponent<IFilterQueryField>;
|
|
8
8
|
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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PluginStorage, VizInstance } from '~/types/plugin';
|
|
2
|
+
export declare class AttachmentInstanceManager<T extends {
|
|
3
|
+
id: string;
|
|
4
|
+
}> {
|
|
5
|
+
protected instance: VizInstance;
|
|
6
|
+
protected attachmentKey: string;
|
|
7
|
+
protected constructInstance: (storage: PluginStorage) => Promise<T>;
|
|
8
|
+
protected attachmentStorage: PluginStorage;
|
|
9
|
+
constructor(instance: VizInstance, attachmentKey: string, constructInstance: (storage: PluginStorage) => Promise<T>);
|
|
10
|
+
getInstance(id: string): Promise<T | undefined>;
|
|
11
|
+
create<TD>(id: string, initValue: TD): Promise<T>;
|
|
12
|
+
remove(id: string): Promise<void>;
|
|
13
|
+
list(): Promise<T[]>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IVizManager } from '~/plugins';
|
|
3
|
+
import { AnyObject } from '~/types';
|
|
4
|
+
import { IPayloadVariableSchema, IVizInteractionManager, VizInstance } from '~/types/plugin';
|
|
5
|
+
export interface IInteractionSettingsProps {
|
|
6
|
+
instance: VizInstance;
|
|
7
|
+
vizManager: IVizManager;
|
|
8
|
+
interactionManager: IVizInteractionManager;
|
|
9
|
+
sampleData: AnyObject[];
|
|
10
|
+
variables: IPayloadVariableSchema[];
|
|
11
|
+
}
|
|
12
|
+
export declare const InteractionSettings: (props: IInteractionSettingsProps) => JSX.Element;
|
|
13
|
+
export declare const InteractionSettingsPanel: () => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPayloadVariableSchema, IVizOperationManager, VizInstance } from '~/types/plugin';
|
|
3
|
+
export interface IOperationSelectProps {
|
|
4
|
+
operationId: string;
|
|
5
|
+
operationManager: IVizOperationManager;
|
|
6
|
+
instance: VizInstance;
|
|
7
|
+
variables: IPayloadVariableSchema[];
|
|
8
|
+
}
|
|
9
|
+
export declare const OperationSelect: ((props: IOperationSelectProps) => JSX.Element | null) & {
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnyObject, Ready } from '~/types';
|
|
2
|
+
import { ITrigger, ITriggerSchema, IVizTriggerManager, VizInstance } from '~/types/plugin';
|
|
3
|
+
export declare class TriggerConfigModel {
|
|
4
|
+
triggerManager: IVizTriggerManager;
|
|
5
|
+
instance: VizInstance;
|
|
6
|
+
triggerId?: string;
|
|
7
|
+
trigger?: ITrigger;
|
|
8
|
+
triggerSchema?: ITriggerSchema;
|
|
9
|
+
sampleData?: AnyObject[];
|
|
10
|
+
get schemaList(): ITriggerSchema[];
|
|
11
|
+
configTrigger(triggerId: string, sampleData: AnyObject[]): Promise<void>;
|
|
12
|
+
changeSchema(schema: ITriggerSchema): Promise<void>;
|
|
13
|
+
isReady(): this is ReadyTriggerConfigModel;
|
|
14
|
+
constructor(triggerManager: IVizTriggerManager, instance: VizInstance);
|
|
15
|
+
}
|
|
16
|
+
export declare type ReadyTriggerConfigModel = Ready<TriggerConfigModel, 'trigger' | 'triggerSchema' | 'sampleData'>;
|
|
17
|
+
export declare function isReady(model: TriggerConfigModel): model is ReadyTriggerConfigModel;
|
|
18
|
+
export declare function useTriggerConfigModel(triggerManager: IVizTriggerManager, instance: VizInstance): TriggerConfigModel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ReadyTriggerConfigModel } from '~/interactions/components/trigger-config-model';
|
|
3
|
+
export interface ITriggerSelectProps {
|
|
4
|
+
model: ReadyTriggerConfigModel;
|
|
5
|
+
}
|
|
6
|
+
export declare const TriggerSelect: ((props: ITriggerSelectProps) => JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IPayloadVariableSchema } from '~/types/plugin';
|
|
3
|
+
export interface IVariableListProps {
|
|
4
|
+
variables: IPayloadVariableSchema[];
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const VariableList: (props: IVariableListProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IVizManager } from '~/plugins';
|
|
2
|
+
import { IVizInteractionManager, VizInstance } from '~/types/plugin';
|
|
3
|
+
export declare const useCurrentInteractionManager: ({ vizManager, instance, }: {
|
|
4
|
+
vizManager: IVizManager;
|
|
5
|
+
instance: VizInstance;
|
|
6
|
+
}) => IVizInteractionManager;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDashboardOperation, IDashboardOperationSchema, ITrigger, IVizInteraction, IVizInteractionManager, IVizOperationManager, IVizTriggerManager, VizComponent, VizInstance } from '~/types/plugin';
|
|
2
|
+
import { AttachmentInstanceManager } from './attachment-instance-manager';
|
|
3
|
+
export declare class InteractionManager implements IVizInteractionManager {
|
|
4
|
+
operationManager: IVizOperationManager;
|
|
5
|
+
triggerManager: IVizTriggerManager;
|
|
6
|
+
attachments: AttachmentInstanceManager<IVizInteraction>;
|
|
7
|
+
constructor(instance: VizInstance, component: VizComponent, operations?: IDashboardOperationSchema[]);
|
|
8
|
+
addInteraction(trigger: ITrigger, operation: IDashboardOperation): Promise<void>;
|
|
9
|
+
getInteractionList(): Promise<IVizInteraction[]>;
|
|
10
|
+
removeInteraction(interactionId: string): Promise<void>;
|
|
11
|
+
protected getOperationRefCount(operationRef: string): Promise<number>;
|
|
12
|
+
protected getTriggerRefCount(triggerRef: string): Promise<number>;
|
|
13
|
+
runInteraction(triggerId: string, payload: Record<string, unknown>): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IDashboardOperation, IDashboardOperationSchema, IVizOperationManager, VizInstance } from '~/types/plugin';
|
|
2
|
+
import { AttachmentInstanceManager } from '../attachment-instance-manager';
|
|
3
|
+
export declare class OperationManager implements IVizOperationManager {
|
|
4
|
+
protected operations: IDashboardOperationSchema[];
|
|
5
|
+
protected attachments: AttachmentInstanceManager<IDashboardOperation>;
|
|
6
|
+
constructor(instance: VizInstance, operations?: IDashboardOperationSchema[]);
|
|
7
|
+
runOperation(operationId: string, payload: Record<string, unknown>): Promise<void>;
|
|
8
|
+
createOrGetOperation(id: string, schema: IDashboardOperationSchema): Promise<IDashboardOperation>;
|
|
9
|
+
getOperationList(): Promise<IDashboardOperation[]>;
|
|
10
|
+
getOperationSchemaList(): IDashboardOperationSchema[];
|
|
11
|
+
removeOperation(operationId: string): Promise<void>;
|
|
12
|
+
retrieveTrigger(operationId: string): Promise<IDashboardOperation | undefined>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { ITrigger, ITriggerSchema, ITriggerSnapshot, IVizTriggerManager, VizComponent, VizInstance } from '~/types/plugin';
|
|
3
|
+
import { AttachmentInstanceManager } from '../attachment-instance-manager';
|
|
4
|
+
export declare const TRIGGERS_KEY = "__TRIGGERS";
|
|
5
|
+
export declare class VizTriggerManager implements IVizTriggerManager {
|
|
6
|
+
protected instance: VizInstance;
|
|
7
|
+
protected component: VizComponent;
|
|
8
|
+
protected attachments: AttachmentInstanceManager<ITrigger>;
|
|
9
|
+
constructor(instance: VizInstance, component: VizComponent);
|
|
10
|
+
watchTriggerSnapshotList(callback: (triggerList: ITriggerSnapshot<AnyObject>[]) => void): () => void;
|
|
11
|
+
createOrGetTrigger(id: string, schema: ITriggerSchema, options?: {
|
|
12
|
+
recreate: boolean;
|
|
13
|
+
}): Promise<ITrigger>;
|
|
14
|
+
getTriggerList(): Promise<ITrigger[]>;
|
|
15
|
+
getTriggerSchemaList(): ITriggerSchema[];
|
|
16
|
+
removeTrigger(triggerId: string): Promise<void>;
|
|
17
|
+
retrieveTrigger(id: string): Promise<ITrigger | undefined>;
|
|
18
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
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 const ReadOnlyDashboardLayout:
|
|
8
|
+
export declare const ReadOnlyDashboardLayout: import("react").FunctionComponent<IReadOnlyDashboardLayout>;
|
|
9
9
|
export {};
|
package/dist/main/actions.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface IDashboardActions {
|
|
|
6
6
|
hasChanges: boolean;
|
|
7
7
|
saveChanges: () => void;
|
|
8
8
|
revertChanges: () => void;
|
|
9
|
-
getCurrentSchema: () =>
|
|
9
|
+
getCurrentSchema: () => $TSFixMe;
|
|
10
10
|
}
|
|
11
11
|
export declare const DashboardActions: React.FunctionComponent<IDashboardActions>;
|
|
12
12
|
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>;
|