@devtable/dashboard 9.18.3 → 9.19.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/contexts/panel-context.d.ts +4 -4
- package/dist/dashboard.es.js +9445 -8822
- package/dist/dashboard.umd.js +112 -112
- package/dist/filter/filter-multi-select/render/widget.d.ts +1 -1
- package/dist/global.d.ts +3 -1
- package/dist/interactions/components/interaction-settings.d.ts +1 -2
- package/dist/interactions/components/trigger-config-model.d.ts +3 -3
- package/dist/main/dashboard-editor/settings/content/data-preview/index.d.ts +2 -1
- package/dist/main/dashboard-editor/settings/content/edit-panel/variable-config/variable-field.d.ts +1 -1
- package/dist/main/use-panel-full-screen.d.ts +318 -8
- package/dist/model/panels/index.d.ts +1156 -71
- package/dist/model/panels/panel.d.ts +28 -5
- package/dist/model/queries/index.d.ts +1 -0
- package/dist/panel/index.d.ts +1 -1
- package/dist/panel/panel-error-or-state-message.d.ts +7 -0
- package/dist/panel/panel-viz-section.d.ts +8 -0
- package/dist/panel/settings/common/data-field-selector.d.ts +1 -2
- package/dist/panel/viz/index.d.ts +3 -7
- package/dist/plugins/common-echarts-fields/tooltip-metric/types.d.ts +1 -1
- package/dist/plugins/common-echarts-fields/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/hooks/use-row-data-map.d.ts +2 -0
- package/dist/plugins/plugin-context.d.ts +318 -8
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/editors/x-axis.d.ts +1 -3
- package/dist/plugins/viz-components/boxplot-chart/editors/y-axis.d.ts +1 -3
- package/dist/plugins/viz-components/boxplot-chart/index.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/option/dataset.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/option/index.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/option/reference-line.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/calendar/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/heat_block/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/option/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/calendar-heatmap/option/tooltip.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/type.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/editors/regressions/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/regressions/regression-item.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/scatter-size-select/dynamic.d.ts +1 -3
- package/dist/plugins/viz-components/cartesian/editors/scatter-size-select/get-echarts-symbol-size.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/scatter-size-select/index.d.ts +0 -2
- package/dist/plugins/viz-components/cartesian/editors/series/fields.line.d.ts +1 -3
- package/dist/plugins/viz-components/cartesian/editors/series/fields.scatter.d.ts +1 -3
- package/dist/plugins/viz-components/cartesian/editors/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/series/series-item.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/stats/index.d.ts +0 -1
- package/dist/plugins/viz-components/cartesian/editors/x-axis/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/migrators/index.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/regression.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/series/data.d.ts +3 -4
- package/dist/plugins/viz-components/cartesian/option/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/option/series/reference_lines.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/option/series/series_items.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/option/utils/variables.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/type.d.ts +3 -3
- package/dist/plugins/viz-components/funnel/editors/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/funnel/editors/series/series-item.d.ts +1 -3
- package/dist/plugins/viz-components/funnel/option/index.d.ts +3 -30
- package/dist/plugins/viz-components/funnel/option/series.d.ts +1 -31
- package/dist/plugins/viz-components/funnel/option/tooltip.d.ts +2 -2
- package/dist/plugins/viz-components/funnel/type.d.ts +2 -2
- package/dist/plugins/viz-components/heatmap/editors/heat_block/index.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/x-axis/index.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/viz-components/heatmap/editors/y-axis/index.d.ts +1 -3
- package/dist/plugins/viz-components/heatmap/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/heatmap/option/series.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/option/tooltip.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/option/x-axis.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/option/y-axis.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/type.d.ts +3 -3
- package/dist/plugins/viz-components/horizontal-bar-chart/editors/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/editors/series/series-item.d.ts +1 -3
- package/dist/plugins/viz-components/horizontal-bar-chart/editors/y-axis/index.d.ts +1 -3
- package/dist/plugins/viz-components/horizontal-bar-chart/option/index.d.ts +1 -70
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/data.d.ts +4 -5
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/reference_lines.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/series_items.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/option/utils/variables.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/type.d.ts +4 -4
- package/dist/plugins/viz-components/merico-estimation-chart/editors/deviation.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/editors/metrics/index.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/editors/metrics/metric.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/editors/x_axis.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/option/data.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/index.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-1.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-2.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-3.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-4.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/type.d.ts +3 -3
- package/dist/plugins/viz-components/pareto-chart/editors/bar.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/line.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/mark-line.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/x-axis.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/y-axis.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/pareto-chart/option/series.d.ts +1 -2
- package/dist/plugins/viz-components/pie-chart/option/index.d.ts +14 -1
- package/dist/plugins/viz-components/pie-chart/option/series.d.ts +13 -1
- package/dist/plugins/viz-components/pie-chart/type.d.ts +3 -3
- package/dist/plugins/viz-components/radar-chart/editors/dimensions/dimension.d.ts +1 -2
- package/dist/plugins/viz-components/radar-chart/editors/dimensions/index.d.ts +1 -2
- package/dist/plugins/viz-components/radar-chart/option/index.d.ts +1 -62
- package/dist/plugins/viz-components/radar-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/editors/regression-field.d.ts +1 -2
- package/dist/plugins/viz-components/regression-chart/editors/x-axis.d.ts +1 -2
- package/dist/plugins/viz-components/regression-chart/editors/y-axis.d.ts +1 -2
- package/dist/plugins/viz-components/regression-chart/migrators/index.d.ts +2 -0
- package/dist/plugins/viz-components/regression-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/toolbox/regression-description/desc.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/toolbox/regression-description/index.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/index.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/dynamic.d.ts +1 -3
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/get-echarts-symbol-size.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/index.d.ts +0 -2
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/series-color-select/dynamic.d.ts +1 -3
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/series-color-select/index.d.ts +0 -2
- package/dist/plugins/viz-components/scatter-chart/editors/stats/index.d.ts +0 -1
- package/dist/plugins/viz-components/scatter-chart/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/x-axis/index.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/viz-components/scatter-chart/option/dataset.d.ts +4 -0
- package/dist/plugins/viz-components/scatter-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/type.d.ts +3 -3
- package/dist/plugins/viz-components/sunburst/editors/data-field.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/editors/levels/index.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/editors/levels/level.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/option/data.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/sunburst/type.d.ts +3 -3
- package/dist/plugins/viz-components/table/editors/columns/column.d.ts +1 -3
- package/dist/plugins/viz-components/table/editors/columns/index.d.ts +1 -3
- package/dist/plugins/viz-components/table/editors/styling.d.ts +1 -2
- package/dist/plugins/viz-components/table/type.d.ts +2 -2
- package/dist/plugins/viz-components/viz-merico-gqm/request/call-expert-system.d.ts +2 -3
- package/dist/types/dashboard.d.ts +1 -1
- package/dist/types/plugin/index.d.ts +4 -3
- package/dist/utils/aggregation.d.ts +3 -2
- package/dist/utils/data.d.ts +24 -0
- package/dist/utils/download.d.ts +2 -2
- package/dist/utils/template/editor/variable-field.d.ts +0 -1
- package/dist/utils/template/render/render-jsx.d.ts +2 -2
- package/dist/utils/template/render/render-string.d.ts +1 -1
- package/dist/utils/template/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/main/dashboard-editor/settings/content/edit-panel/preview-viz.d.ts +0 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
2
|
import { VariableModel } from '~/model/variables';
|
|
3
|
+
import { QueryModelInstance } from '../queries';
|
|
3
4
|
export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
4
5
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
6
|
title: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -23,7 +24,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
23
24
|
} & {
|
|
24
25
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
25
26
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
26
|
-
|
|
27
|
+
queryIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
27
28
|
viz: import("mobx-state-tree").IModelType<{
|
|
28
29
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
29
30
|
conf: import("mobx-state-tree").IType<import("../..").AnyObject, import("../..").AnyObject, import("../..").AnyObject>;
|
|
@@ -287,7 +288,9 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
287
288
|
};
|
|
288
289
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
289
290
|
}, {
|
|
290
|
-
|
|
291
|
+
getQuery(queryID: string): QueryModelInstance | undefined;
|
|
292
|
+
readonly queryIDSet: Set<string>;
|
|
293
|
+
readonly queries: ({
|
|
291
294
|
id: string;
|
|
292
295
|
name: string;
|
|
293
296
|
type: import("../queries/types").DataSourceType;
|
|
@@ -420,7 +423,18 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
420
423
|
beforeDestroy(): void;
|
|
421
424
|
} & {
|
|
422
425
|
afterCreate(): void;
|
|
423
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)
|
|
426
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
427
|
+
readonly data: TPanelData;
|
|
428
|
+
readonly dataStuff: {
|
|
429
|
+
data: ((string[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>) | (number[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>))[];
|
|
430
|
+
len: number;
|
|
431
|
+
state: "error" | "loading" | "idle";
|
|
432
|
+
error: any;
|
|
433
|
+
}[];
|
|
434
|
+
readonly dataLoading: boolean;
|
|
435
|
+
readonly queryStateMessages: string[];
|
|
436
|
+
readonly queryErrors: any[];
|
|
437
|
+
readonly canRenderViz: boolean;
|
|
424
438
|
readonly json: {
|
|
425
439
|
id: string;
|
|
426
440
|
viz: {
|
|
@@ -441,7 +455,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
441
455
|
moved: boolean;
|
|
442
456
|
static: boolean;
|
|
443
457
|
};
|
|
444
|
-
|
|
458
|
+
queryIDs: string[];
|
|
445
459
|
variables: {
|
|
446
460
|
name: string;
|
|
447
461
|
size: string;
|
|
@@ -611,16 +625,25 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
611
625
|
}[];
|
|
612
626
|
description: string;
|
|
613
627
|
};
|
|
628
|
+
readonly dataFieldOptions: {
|
|
629
|
+
label: string;
|
|
630
|
+
value: string;
|
|
631
|
+
group: string;
|
|
632
|
+
}[];
|
|
614
633
|
} & {
|
|
615
634
|
setID(id: string): void;
|
|
616
635
|
setTitle(title: string): void;
|
|
617
636
|
setDescription(description: string): void;
|
|
618
|
-
|
|
637
|
+
addQueryID(queryID: string): void;
|
|
638
|
+
removeQueryID(queryID: string): void;
|
|
639
|
+
setQueryIDs(queryIDs: string[]): void;
|
|
619
640
|
addVariable(variable: SnapshotIn<typeof VariableModel>): void;
|
|
620
641
|
removeVariable(variable: Instance<typeof VariableModel>): void;
|
|
621
642
|
removeSelf(): void;
|
|
622
643
|
} & {
|
|
623
644
|
moveToView(sourceViewID: string, targetViewID: string): void;
|
|
645
|
+
refreshData(): void;
|
|
646
|
+
downloadData(): void;
|
|
624
647
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
625
648
|
export declare type PanelModelInstance = Instance<typeof PanelModel>;
|
|
626
649
|
export declare type PanelModelSnapshotIn = SnapshotIn<PanelModelInstance>;
|
|
@@ -228,6 +228,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
228
228
|
remove(index: number): void;
|
|
229
229
|
replaceByIndex(index: number, replacement: QueryModelInstance): void;
|
|
230
230
|
downloadAllData(): void;
|
|
231
|
+
downloadDataByQueryIDs(ids: string[]): void;
|
|
231
232
|
downloadDataByQueryID(id: string): void;
|
|
232
233
|
refetchDataByQueryID(queryID: string): Promise<void> | undefined;
|
|
233
234
|
removeQuery(queryID: string): void;
|
package/dist/panel/index.d.ts
CHANGED
|
@@ -5,9 +5,8 @@ interface IDataFieldSelector {
|
|
|
5
5
|
required?: boolean;
|
|
6
6
|
value: string;
|
|
7
7
|
onChange: (v: string) => void;
|
|
8
|
-
data: $TSFixMe[];
|
|
9
8
|
clearable?: boolean;
|
|
10
9
|
sx?: Sx;
|
|
11
10
|
}
|
|
12
|
-
export declare const DataFieldSelector: React.ForwardRefExoticComponent<IDataFieldSelector & React.RefAttributes<unknown
|
|
11
|
+
export declare const DataFieldSelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDataFieldSelector & React.RefAttributes<unknown>, "ref"> & React.RefAttributes<unknown>>>;
|
|
13
12
|
export {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { QueryModelInstance } from '~/model';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import { IVizConfig } from '../../types';
|
|
4
3
|
interface IViz {
|
|
5
4
|
viz: IVizConfig;
|
|
6
|
-
data:
|
|
7
|
-
loading: boolean;
|
|
8
|
-
error?: string;
|
|
9
|
-
query?: QueryModelInstance;
|
|
5
|
+
data: TPanelData;
|
|
10
6
|
}
|
|
11
|
-
export declare const Viz:
|
|
7
|
+
export declare const Viz: import('./react').FunctionComponent<IViz>;
|
|
12
8
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AnyObject } from '~/types';
|
|
3
2
|
import { IXAxisLabelFormatter } from './types';
|
|
4
3
|
interface IXAxisLabelFormatterField {
|
|
5
4
|
value: IXAxisLabelFormatter;
|
|
6
5
|
onChange: (v: IXAxisLabelFormatter) => void;
|
|
7
|
-
data: AnyObject[];
|
|
8
6
|
triggerButtonText?: string;
|
|
9
7
|
}
|
|
10
8
|
export declare const XAxisLabelFormatterField: import('./react').ForwardRefExoticComponent<IXAxisLabelFormatterField & import('./react').RefAttributes<unknown>>;
|
|
@@ -60,7 +60,7 @@ export declare const tokens: {
|
|
|
60
60
|
} & {
|
|
61
61
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
62
62
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
63
|
-
|
|
63
|
+
queryIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
64
64
|
viz: {
|
|
65
65
|
type: string;
|
|
66
66
|
conf: import("..").AnyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import("..").AnyObject, import("..").AnyObject, import("..").AnyObject>>;
|
|
@@ -591,7 +591,7 @@ export declare const tokens: {
|
|
|
591
591
|
};
|
|
592
592
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>>;
|
|
593
593
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
594
|
-
|
|
594
|
+
getQuery(queryID: string): ({
|
|
595
595
|
id: string;
|
|
596
596
|
name: string;
|
|
597
597
|
type: import("../model/queries/types").DataSourceType;
|
|
@@ -725,6 +725,152 @@ export declare const tokens: {
|
|
|
725
725
|
} & {
|
|
726
726
|
afterCreate(): void;
|
|
727
727
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
728
|
+
readonly queryIDSet: Set<string>;
|
|
729
|
+
readonly queries: ({
|
|
730
|
+
id: string;
|
|
731
|
+
name: string;
|
|
732
|
+
type: import("../model/queries/types").DataSourceType;
|
|
733
|
+
key: string;
|
|
734
|
+
sql: string;
|
|
735
|
+
pre_process: string;
|
|
736
|
+
post_process: string;
|
|
737
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
738
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
739
|
+
state: "error" | "loading" | "idle";
|
|
740
|
+
data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
|
|
741
|
+
error: any;
|
|
742
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
743
|
+
readonly valid: boolean;
|
|
744
|
+
readonly json: {
|
|
745
|
+
id: string;
|
|
746
|
+
key: string;
|
|
747
|
+
sql: string;
|
|
748
|
+
name: string;
|
|
749
|
+
type: import("../model/queries/types").DataSourceType;
|
|
750
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
751
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
752
|
+
pre_process: string;
|
|
753
|
+
post_process: string;
|
|
754
|
+
};
|
|
755
|
+
readonly conditionOptions: {
|
|
756
|
+
label: string;
|
|
757
|
+
value: string;
|
|
758
|
+
group: string;
|
|
759
|
+
}[];
|
|
760
|
+
readonly unmetRunByConditions: string[];
|
|
761
|
+
} & {
|
|
762
|
+
readonly reQueryKey: string;
|
|
763
|
+
readonly runByConditionsMet: boolean;
|
|
764
|
+
readonly conditionNames: {
|
|
765
|
+
context: string[];
|
|
766
|
+
filters: any[];
|
|
767
|
+
};
|
|
768
|
+
} & {
|
|
769
|
+
setName(name: string): void;
|
|
770
|
+
setKey(key: string): void;
|
|
771
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
772
|
+
setSQL(sql: string): void;
|
|
773
|
+
setRunBy(v: string[]): void;
|
|
774
|
+
setReactTo(v: string[]): void;
|
|
775
|
+
setPreProcess(v: string): void;
|
|
776
|
+
setPostProcess(v: string): void;
|
|
777
|
+
} & {
|
|
778
|
+
readonly formattedSQL: any;
|
|
779
|
+
readonly typedAsSQL: boolean;
|
|
780
|
+
readonly typedAsHTTP: boolean;
|
|
781
|
+
readonly datasource: any;
|
|
782
|
+
readonly httpConfigString: string;
|
|
783
|
+
} & {
|
|
784
|
+
readonly stateMessage: string;
|
|
785
|
+
} & {
|
|
786
|
+
controller: AbortController;
|
|
787
|
+
} & {
|
|
788
|
+
runSQL: () => Promise<void>;
|
|
789
|
+
runHTTP: () => Promise<void>;
|
|
790
|
+
} & {
|
|
791
|
+
fetchData: () => Promise<void>;
|
|
792
|
+
beforeDestroy(): void;
|
|
793
|
+
} & {
|
|
794
|
+
afterCreate(): void;
|
|
795
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
796
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
797
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
798
|
+
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
799
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
800
|
+
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
801
|
+
pre_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
802
|
+
post_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
803
|
+
run_by: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
804
|
+
react_to: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
805
|
+
} & {
|
|
806
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
807
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
|
|
808
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
809
|
+
}, {
|
|
810
|
+
readonly valid: boolean;
|
|
811
|
+
readonly json: {
|
|
812
|
+
id: string;
|
|
813
|
+
key: string;
|
|
814
|
+
sql: string;
|
|
815
|
+
name: string;
|
|
816
|
+
type: import("../model/queries/types").DataSourceType;
|
|
817
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
818
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
819
|
+
pre_process: string;
|
|
820
|
+
post_process: string;
|
|
821
|
+
};
|
|
822
|
+
readonly conditionOptions: {
|
|
823
|
+
label: string;
|
|
824
|
+
value: string;
|
|
825
|
+
group: string;
|
|
826
|
+
}[];
|
|
827
|
+
readonly unmetRunByConditions: string[];
|
|
828
|
+
} & {
|
|
829
|
+
readonly reQueryKey: string;
|
|
830
|
+
readonly runByConditionsMet: boolean;
|
|
831
|
+
readonly conditionNames: {
|
|
832
|
+
context: string[];
|
|
833
|
+
filters: any[];
|
|
834
|
+
};
|
|
835
|
+
} & {
|
|
836
|
+
setName(name: string): void;
|
|
837
|
+
setKey(key: string): void;
|
|
838
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
839
|
+
setSQL(sql: string): void;
|
|
840
|
+
setRunBy(v: string[]): void;
|
|
841
|
+
setReactTo(v: string[]): void;
|
|
842
|
+
setPreProcess(v: string): void;
|
|
843
|
+
setPostProcess(v: string): void;
|
|
844
|
+
} & {
|
|
845
|
+
readonly formattedSQL: any;
|
|
846
|
+
readonly typedAsSQL: boolean;
|
|
847
|
+
readonly typedAsHTTP: boolean;
|
|
848
|
+
readonly datasource: any;
|
|
849
|
+
readonly httpConfigString: string;
|
|
850
|
+
} & {
|
|
851
|
+
readonly stateMessage: string;
|
|
852
|
+
} & {
|
|
853
|
+
controller: AbortController;
|
|
854
|
+
} & {
|
|
855
|
+
runSQL: () => Promise<void>;
|
|
856
|
+
runHTTP: () => Promise<void>;
|
|
857
|
+
} & {
|
|
858
|
+
fetchData: () => Promise<void>;
|
|
859
|
+
beforeDestroy(): void;
|
|
860
|
+
} & {
|
|
861
|
+
afterCreate(): void;
|
|
862
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
863
|
+
readonly data: TPanelData;
|
|
864
|
+
readonly dataStuff: {
|
|
865
|
+
data: ((string[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>) | (number[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>))[];
|
|
866
|
+
len: number;
|
|
867
|
+
state: "error" | "loading" | "idle";
|
|
868
|
+
error: any;
|
|
869
|
+
}[];
|
|
870
|
+
readonly dataLoading: boolean;
|
|
871
|
+
readonly queryStateMessages: string[];
|
|
872
|
+
readonly queryErrors: any[];
|
|
873
|
+
readonly canRenderViz: boolean;
|
|
728
874
|
readonly json: {
|
|
729
875
|
id: string;
|
|
730
876
|
viz: {
|
|
@@ -745,7 +891,7 @@ export declare const tokens: {
|
|
|
745
891
|
moved: boolean;
|
|
746
892
|
static: boolean;
|
|
747
893
|
};
|
|
748
|
-
|
|
894
|
+
queryIDs: string[];
|
|
749
895
|
variables: {
|
|
750
896
|
name: string;
|
|
751
897
|
size: string;
|
|
@@ -915,11 +1061,18 @@ export declare const tokens: {
|
|
|
915
1061
|
}[];
|
|
916
1062
|
description: string;
|
|
917
1063
|
};
|
|
1064
|
+
readonly dataFieldOptions: {
|
|
1065
|
+
label: string;
|
|
1066
|
+
value: string;
|
|
1067
|
+
group: string;
|
|
1068
|
+
}[];
|
|
918
1069
|
} & {
|
|
919
1070
|
setID(id: string): void;
|
|
920
1071
|
setTitle(title: string): void;
|
|
921
1072
|
setDescription(description: string): void;
|
|
922
|
-
|
|
1073
|
+
addQueryID(queryID: string): void;
|
|
1074
|
+
removeQueryID(queryID: string): void;
|
|
1075
|
+
setQueryIDs(queryIDs: string[]): void;
|
|
923
1076
|
addVariable(variable: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
924
1077
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
925
1078
|
size: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -1555,6 +1708,8 @@ export declare const tokens: {
|
|
|
1555
1708
|
removeSelf(): void;
|
|
1556
1709
|
} & {
|
|
1557
1710
|
moveToView(sourceViewID: string, targetViewID: string): void;
|
|
1711
|
+
refreshData(): void;
|
|
1712
|
+
downloadData(): void;
|
|
1558
1713
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1559
1714
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
1560
1715
|
title: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -1578,7 +1733,7 @@ export declare const tokens: {
|
|
|
1578
1733
|
} & {
|
|
1579
1734
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
1580
1735
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
1581
|
-
|
|
1736
|
+
queryIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
1582
1737
|
viz: import("mobx-state-tree").IModelType<{
|
|
1583
1738
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
1584
1739
|
conf: import("mobx-state-tree").IType<import("..").AnyObject, import("..").AnyObject, import("..").AnyObject>;
|
|
@@ -1842,7 +1997,7 @@ export declare const tokens: {
|
|
|
1842
1997
|
};
|
|
1843
1998
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
1844
1999
|
}, {
|
|
1845
|
-
|
|
2000
|
+
getQuery(queryID: string): ({
|
|
1846
2001
|
id: string;
|
|
1847
2002
|
name: string;
|
|
1848
2003
|
type: import("../model/queries/types").DataSourceType;
|
|
@@ -1976,6 +2131,152 @@ export declare const tokens: {
|
|
|
1976
2131
|
} & {
|
|
1977
2132
|
afterCreate(): void;
|
|
1978
2133
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
2134
|
+
readonly queryIDSet: Set<string>;
|
|
2135
|
+
readonly queries: ({
|
|
2136
|
+
id: string;
|
|
2137
|
+
name: string;
|
|
2138
|
+
type: import("../model/queries/types").DataSourceType;
|
|
2139
|
+
key: string;
|
|
2140
|
+
sql: string;
|
|
2141
|
+
pre_process: string;
|
|
2142
|
+
post_process: string;
|
|
2143
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
2144
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
2145
|
+
state: "error" | "loading" | "idle";
|
|
2146
|
+
data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
|
|
2147
|
+
error: any;
|
|
2148
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2149
|
+
readonly valid: boolean;
|
|
2150
|
+
readonly json: {
|
|
2151
|
+
id: string;
|
|
2152
|
+
key: string;
|
|
2153
|
+
sql: string;
|
|
2154
|
+
name: string;
|
|
2155
|
+
type: import("../model/queries/types").DataSourceType;
|
|
2156
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
2157
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
2158
|
+
pre_process: string;
|
|
2159
|
+
post_process: string;
|
|
2160
|
+
};
|
|
2161
|
+
readonly conditionOptions: {
|
|
2162
|
+
label: string;
|
|
2163
|
+
value: string;
|
|
2164
|
+
group: string;
|
|
2165
|
+
}[];
|
|
2166
|
+
readonly unmetRunByConditions: string[];
|
|
2167
|
+
} & {
|
|
2168
|
+
readonly reQueryKey: string;
|
|
2169
|
+
readonly runByConditionsMet: boolean;
|
|
2170
|
+
readonly conditionNames: {
|
|
2171
|
+
context: string[];
|
|
2172
|
+
filters: any[];
|
|
2173
|
+
};
|
|
2174
|
+
} & {
|
|
2175
|
+
setName(name: string): void;
|
|
2176
|
+
setKey(key: string): void;
|
|
2177
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
2178
|
+
setSQL(sql: string): void;
|
|
2179
|
+
setRunBy(v: string[]): void;
|
|
2180
|
+
setReactTo(v: string[]): void;
|
|
2181
|
+
setPreProcess(v: string): void;
|
|
2182
|
+
setPostProcess(v: string): void;
|
|
2183
|
+
} & {
|
|
2184
|
+
readonly formattedSQL: any;
|
|
2185
|
+
readonly typedAsSQL: boolean;
|
|
2186
|
+
readonly typedAsHTTP: boolean;
|
|
2187
|
+
readonly datasource: any;
|
|
2188
|
+
readonly httpConfigString: string;
|
|
2189
|
+
} & {
|
|
2190
|
+
readonly stateMessage: string;
|
|
2191
|
+
} & {
|
|
2192
|
+
controller: AbortController;
|
|
2193
|
+
} & {
|
|
2194
|
+
runSQL: () => Promise<void>;
|
|
2195
|
+
runHTTP: () => Promise<void>;
|
|
2196
|
+
} & {
|
|
2197
|
+
fetchData: () => Promise<void>;
|
|
2198
|
+
beforeDestroy(): void;
|
|
2199
|
+
} & {
|
|
2200
|
+
afterCreate(): void;
|
|
2201
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
2202
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
2203
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
2204
|
+
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
2205
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
2206
|
+
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
2207
|
+
pre_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
2208
|
+
post_process: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
2209
|
+
run_by: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
2210
|
+
react_to: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
2211
|
+
} & {
|
|
2212
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
2213
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
|
|
2214
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
2215
|
+
}, {
|
|
2216
|
+
readonly valid: boolean;
|
|
2217
|
+
readonly json: {
|
|
2218
|
+
id: string;
|
|
2219
|
+
key: string;
|
|
2220
|
+
sql: string;
|
|
2221
|
+
name: string;
|
|
2222
|
+
type: import("../model/queries/types").DataSourceType;
|
|
2223
|
+
run_by: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
2224
|
+
react_to: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
2225
|
+
pre_process: string;
|
|
2226
|
+
post_process: string;
|
|
2227
|
+
};
|
|
2228
|
+
readonly conditionOptions: {
|
|
2229
|
+
label: string;
|
|
2230
|
+
value: string;
|
|
2231
|
+
group: string;
|
|
2232
|
+
}[];
|
|
2233
|
+
readonly unmetRunByConditions: string[];
|
|
2234
|
+
} & {
|
|
2235
|
+
readonly reQueryKey: string;
|
|
2236
|
+
readonly runByConditionsMet: boolean;
|
|
2237
|
+
readonly conditionNames: {
|
|
2238
|
+
context: string[];
|
|
2239
|
+
filters: any[];
|
|
2240
|
+
};
|
|
2241
|
+
} & {
|
|
2242
|
+
setName(name: string): void;
|
|
2243
|
+
setKey(key: string): void;
|
|
2244
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
2245
|
+
setSQL(sql: string): void;
|
|
2246
|
+
setRunBy(v: string[]): void;
|
|
2247
|
+
setReactTo(v: string[]): void;
|
|
2248
|
+
setPreProcess(v: string): void;
|
|
2249
|
+
setPostProcess(v: string): void;
|
|
2250
|
+
} & {
|
|
2251
|
+
readonly formattedSQL: any;
|
|
2252
|
+
readonly typedAsSQL: boolean;
|
|
2253
|
+
readonly typedAsHTTP: boolean;
|
|
2254
|
+
readonly datasource: any;
|
|
2255
|
+
readonly httpConfigString: string;
|
|
2256
|
+
} & {
|
|
2257
|
+
readonly stateMessage: string;
|
|
2258
|
+
} & {
|
|
2259
|
+
controller: AbortController;
|
|
2260
|
+
} & {
|
|
2261
|
+
runSQL: () => Promise<void>;
|
|
2262
|
+
runHTTP: () => Promise<void>;
|
|
2263
|
+
} & {
|
|
2264
|
+
fetchData: () => Promise<void>;
|
|
2265
|
+
beforeDestroy(): void;
|
|
2266
|
+
} & {
|
|
2267
|
+
afterCreate(): void;
|
|
2268
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
2269
|
+
readonly data: TPanelData;
|
|
2270
|
+
readonly dataStuff: {
|
|
2271
|
+
data: ((string[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>) | (number[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>))[];
|
|
2272
|
+
len: number;
|
|
2273
|
+
state: "error" | "loading" | "idle";
|
|
2274
|
+
error: any;
|
|
2275
|
+
}[];
|
|
2276
|
+
readonly dataLoading: boolean;
|
|
2277
|
+
readonly queryStateMessages: string[];
|
|
2278
|
+
readonly queryErrors: any[];
|
|
2279
|
+
readonly canRenderViz: boolean;
|
|
1979
2280
|
readonly json: {
|
|
1980
2281
|
id: string;
|
|
1981
2282
|
viz: {
|
|
@@ -1996,7 +2297,7 @@ export declare const tokens: {
|
|
|
1996
2297
|
moved: boolean;
|
|
1997
2298
|
static: boolean;
|
|
1998
2299
|
};
|
|
1999
|
-
|
|
2300
|
+
queryIDs: string[];
|
|
2000
2301
|
variables: {
|
|
2001
2302
|
name: string;
|
|
2002
2303
|
size: string;
|
|
@@ -2166,11 +2467,18 @@ export declare const tokens: {
|
|
|
2166
2467
|
}[];
|
|
2167
2468
|
description: string;
|
|
2168
2469
|
};
|
|
2470
|
+
readonly dataFieldOptions: {
|
|
2471
|
+
label: string;
|
|
2472
|
+
value: string;
|
|
2473
|
+
group: string;
|
|
2474
|
+
}[];
|
|
2169
2475
|
} & {
|
|
2170
2476
|
setID(id: string): void;
|
|
2171
2477
|
setTitle(title: string): void;
|
|
2172
2478
|
setDescription(description: string): void;
|
|
2173
|
-
|
|
2479
|
+
addQueryID(queryID: string): void;
|
|
2480
|
+
removeQueryID(queryID: string): void;
|
|
2481
|
+
setQueryIDs(queryIDs: string[]): void;
|
|
2174
2482
|
addVariable(variable: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
2175
2483
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
2176
2484
|
size: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -2806,6 +3114,8 @@ export declare const tokens: {
|
|
|
2806
3114
|
removeSelf(): void;
|
|
2807
3115
|
} & {
|
|
2808
3116
|
moveToView(sourceViewID: string, targetViewID: string): void;
|
|
3117
|
+
refreshData(): void;
|
|
3118
|
+
downloadData(): void;
|
|
2809
3119
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
2810
3120
|
vizInstance: import("~/service-locator").Token<VizInstance>;
|
|
2811
3121
|
interactionManager: import("~/service-locator").Token<IVizInteractionManager>;
|
|
@@ -4,7 +4,6 @@ import { IBoxplotChartConf } from '../../type';
|
|
|
4
4
|
interface ITooltipField {
|
|
5
5
|
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IBoxplotChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare function TooltipField({
|
|
8
|
+
export declare function TooltipField({ control, watch }: ITooltipField): JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -3,9 +3,8 @@ import { Control } from 'react-hook-form';
|
|
|
3
3
|
import { IBoxplotChartConf } from '../../type';
|
|
4
4
|
interface ITooltipMetricField {
|
|
5
5
|
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
6
|
-
data: TVizData;
|
|
7
6
|
index: number;
|
|
8
7
|
remove: (index: number) => void;
|
|
9
8
|
}
|
|
10
|
-
export declare const TooltipMetricField: ({ control,
|
|
9
|
+
export declare const TooltipMetricField: ({ control, index, remove }: ITooltipMetricField) => JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -4,7 +4,6 @@ import { IBoxplotChartConf } from '../../type';
|
|
|
4
4
|
interface ITooltipMetricsField {
|
|
5
5
|
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IBoxplotChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare const TooltipMetricsField: ({ control, watch
|
|
8
|
+
export declare const TooltipMetricsField: ({ control, watch }: ITooltipMetricsField) => JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IBoxplotChartConf } from '../type';
|
|
5
4
|
interface IXAxisField {
|
|
6
5
|
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
7
|
-
data: AnyObject[];
|
|
8
6
|
watch: UseFormWatch<IBoxplotChartConf>;
|
|
9
7
|
}
|
|
10
|
-
export declare const XAxisField: ({ control,
|
|
8
|
+
export declare const XAxisField: ({ control, watch }: IXAxisField) => JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IBoxplotChartConf } from '../type';
|
|
5
4
|
interface IYAxisField {
|
|
6
5
|
control: Control<IBoxplotChartConf, $TSFixMe>;
|
|
7
|
-
data: AnyObject[];
|
|
8
6
|
watch: UseFormWatch<IBoxplotChartConf>;
|
|
9
7
|
}
|
|
10
|
-
export declare const YAxisField: ({ control,
|
|
8
|
+
export declare const YAxisField: ({ control, watch }: IYAxisField) => JSX.Element;
|
|
11
9
|
export {};
|