@devtable/dashboard 14.24.0 → 14.25.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/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +1 -14820
- package/dist/components/plugins/index.d.ts +3 -0
- package/dist/components/plugins/plugin-context.d.ts +354 -390
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/panel-context.d.ts +708 -780
- package/dist/contexts/render-content-model-context.d.ts +2 -0
- package/dist/dashboard-editor/model/filters/index.d.ts +2 -12
- package/dist/dashboard-editor/model/panels/panel.d.ts +177 -195
- package/dist/dashboard-editor/model/queries/queries.d.ts +339 -378
- package/dist/dashboard-editor/model/queries/query.d.ts +15 -18
- package/dist/dashboard-editor/model/views/index.d.ts +69 -27
- package/dist/dashboard-editor/model/views/view.d.ts +17 -3
- package/dist/dashboard-render/model/index.d.ts +1 -0
- package/dist/dashboard-render/model/types.d.ts +32 -0
- package/dist/dashboard.es.js +9 -5
- package/dist/dashboard.umd.js +43 -43
- package/dist/index.d.ts +3 -1
- package/dist/model/meta-model/dashboard/content/filter/filter.d.ts +49 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/checkbox.d.ts +13 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/date-range.d.ts +32 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/multi-select.d.ts +33 -6
- package/dist/model/meta-model/dashboard/content/filter/widgets/select-base.d.ts +30 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/select.d.ts +32 -6
- package/dist/model/meta-model/dashboard/content/filter/widgets/text-input.d.ts +13 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select-base.d.ts +11 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +29 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-single-select.d.ts +26 -0
- package/dist/model/meta-model/dashboard/content/layout/layout-item.d.ts +28 -0
- package/dist/model/meta-model/dashboard/content/layout/layout-set.d.ts +32 -1
- package/dist/model/meta-model/dashboard/content/mock-context/mock-context.d.ts +10 -0
- package/dist/model/meta-model/dashboard/content/panel/panel.d.ts +38 -5
- package/dist/model/meta-model/dashboard/content/panel/style/border.d.ts +7 -0
- package/dist/model/meta-model/dashboard/content/panel/style/index.d.ts +7 -0
- package/dist/model/meta-model/dashboard/content/panel/title.d.ts +7 -0
- package/dist/model/meta-model/dashboard/content/panel/variable.d.ts +93 -0
- package/dist/model/meta-model/dashboard/content/panel/viz.d.ts +10 -0
- package/dist/model/meta-model/dashboard/content/query/db-query.d.ts +17 -6
- package/dist/model/meta-model/dashboard/content/query/http-query.d.ts +11 -0
- package/dist/model/meta-model/dashboard/content/query/merico-metric-query.d.ts +66 -6
- package/dist/model/meta-model/dashboard/content/query/query.d.ts +42 -10
- package/dist/model/meta-model/dashboard/content/query/transform-query.d.ts +11 -0
- package/dist/model/meta-model/dashboard/content/sql-snippet/sql-snippet.d.ts +10 -0
- package/dist/model/meta-model/dashboard/content/view/view.d.ts +23 -0
- package/dist/model/meta-model/dashboard/content/view/widgets/division.d.ts +6 -0
- package/dist/model/meta-model/dashboard/content/view/widgets/modal.d.ts +32 -0
- package/dist/model/meta-model/dashboard/content/view/widgets/tabs.d.ts +46 -0
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +77 -37
- package/dist/model/render-model/dashboard/content/layouts/layouts.d.ts +40 -2
- package/dist/model/render-model/dashboard/content/panels/index.d.ts +1 -0
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +138 -1561
- package/dist/model/render-model/dashboard/content/panels/types.d.ts +37 -0
- package/dist/model/render-model/dashboard/content/queries/mute-query.d.ts +55 -19
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +302 -296
- package/dist/model/render-model/dashboard/content/queries/query.d.ts +60 -37
- package/dist/model/render-model/dashboard/content/sql-snippets/sql-snippet.d.ts +4 -0
- package/dist/model/render-model/dashboard/content/sql-snippets/sql-snippets.d.ts +18 -0
- package/dist/model/render-model/dashboard/content/views/view.d.ts +19 -3
- package/dist/model/render-model/dashboard/content/views/views.d.ts +249 -231
- package/dist/stats.html +1 -1
- package/dist/types/utils.d.ts +3 -0
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -7,3 +7,10 @@ export declare const PanelStyleBorderMeta: import("mobx-state-tree").IModelType<
|
|
|
7
7
|
} & {
|
|
8
8
|
setEnabled(v: boolean): void;
|
|
9
9
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
10
|
+
export interface IPanelStyleBorderMeta {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
json: {
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
};
|
|
15
|
+
setEnabled(v: boolean): void;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type IPanelStyleBorderMeta } from './border';
|
|
1
2
|
export declare const PanelStyleMeta: import("mobx-state-tree").IModelType<{
|
|
2
3
|
border: import("mobx-state-tree").IModelType<{
|
|
3
4
|
enabled: import("mobx-state-tree").ISimpleType<boolean>;
|
|
@@ -15,3 +16,9 @@ export declare const PanelStyleMeta: import("mobx-state-tree").IModelType<{
|
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
19
|
+
export interface IPanelStyleMeta {
|
|
20
|
+
border: IPanelStyleBorderMeta;
|
|
21
|
+
json: {
|
|
22
|
+
border: IPanelStyleBorderMeta['json'];
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -7,3 +7,10 @@ export declare const PanelTitleMeta: import("mobx-state-tree").IModelType<{
|
|
|
7
7
|
} & {
|
|
8
8
|
setShow(v: boolean): void;
|
|
9
9
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
10
|
+
export interface IPanelTitleMeta {
|
|
11
|
+
show: boolean;
|
|
12
|
+
json: {
|
|
13
|
+
show: boolean;
|
|
14
|
+
};
|
|
15
|
+
setShow(v: boolean): void;
|
|
16
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import { type IObservableArray } from 'mobx';
|
|
2
3
|
export declare const VariableMeta: import("mobx-state-tree").IModelType<{
|
|
3
4
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
4
5
|
size: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -514,3 +515,95 @@ export declare const VariableMeta: import("mobx-state-tree").IModelType<{
|
|
|
514
515
|
export type VariableMetaType = typeof VariableMeta;
|
|
515
516
|
export type VariableMetaSnapshotIn = SnapshotIn<VariableMetaType>;
|
|
516
517
|
export type VariableMetaInstance = Instance<VariableMetaType>;
|
|
518
|
+
export interface IVariableMeta {
|
|
519
|
+
name: string;
|
|
520
|
+
size: string;
|
|
521
|
+
weight: string;
|
|
522
|
+
color: {
|
|
523
|
+
type: 'static';
|
|
524
|
+
staticColor: string;
|
|
525
|
+
} | {
|
|
526
|
+
type: 'continuous';
|
|
527
|
+
valueRange: IObservableArray<number>;
|
|
528
|
+
colorRange: IObservableArray<string>;
|
|
529
|
+
} | {
|
|
530
|
+
type: 'piecewise';
|
|
531
|
+
};
|
|
532
|
+
formatter: {
|
|
533
|
+
output: 'number' | 'percent';
|
|
534
|
+
average: boolean;
|
|
535
|
+
mantissa: number;
|
|
536
|
+
trimMantissa: boolean;
|
|
537
|
+
absolute: boolean;
|
|
538
|
+
};
|
|
539
|
+
data_field: string;
|
|
540
|
+
aggregation: {
|
|
541
|
+
type: 'none' | 'sum' | 'mean' | 'median' | 'min' | 'max' | 'CV' | 'std';
|
|
542
|
+
config: Record<string, never>;
|
|
543
|
+
fallback: string;
|
|
544
|
+
} | {
|
|
545
|
+
type: 'quantile';
|
|
546
|
+
config: {
|
|
547
|
+
p: number;
|
|
548
|
+
};
|
|
549
|
+
fallback: string;
|
|
550
|
+
} | {
|
|
551
|
+
type: 'pick_record';
|
|
552
|
+
config: {
|
|
553
|
+
method: 'first' | 'last';
|
|
554
|
+
};
|
|
555
|
+
fallback: string;
|
|
556
|
+
} | {
|
|
557
|
+
type: 'custom';
|
|
558
|
+
config: {
|
|
559
|
+
func: string;
|
|
560
|
+
};
|
|
561
|
+
fallback: string;
|
|
562
|
+
};
|
|
563
|
+
readonly json: {
|
|
564
|
+
name: string;
|
|
565
|
+
size: string;
|
|
566
|
+
color: {
|
|
567
|
+
type: 'static';
|
|
568
|
+
staticColor: string;
|
|
569
|
+
} | {
|
|
570
|
+
type: 'continuous';
|
|
571
|
+
valueRange: IObservableArray<number>;
|
|
572
|
+
colorRange: IObservableArray<string>;
|
|
573
|
+
} | {
|
|
574
|
+
type: 'piecewise';
|
|
575
|
+
};
|
|
576
|
+
weight: string;
|
|
577
|
+
formatter: {
|
|
578
|
+
output: 'number' | 'percent';
|
|
579
|
+
average: boolean;
|
|
580
|
+
mantissa: number;
|
|
581
|
+
trimMantissa: boolean;
|
|
582
|
+
absolute: boolean;
|
|
583
|
+
};
|
|
584
|
+
data_field: string;
|
|
585
|
+
aggregation: {
|
|
586
|
+
type: 'none' | 'sum' | 'mean' | 'median' | 'min' | 'max' | 'CV' | 'std';
|
|
587
|
+
config: Record<string, never>;
|
|
588
|
+
fallback: string;
|
|
589
|
+
} | {
|
|
590
|
+
type: 'quantile';
|
|
591
|
+
config: {
|
|
592
|
+
p: number;
|
|
593
|
+
};
|
|
594
|
+
fallback: string;
|
|
595
|
+
} | {
|
|
596
|
+
type: 'pick_record';
|
|
597
|
+
config: {
|
|
598
|
+
method: 'first' | 'last';
|
|
599
|
+
};
|
|
600
|
+
fallback: string;
|
|
601
|
+
} | {
|
|
602
|
+
type: 'custom';
|
|
603
|
+
config: {
|
|
604
|
+
func: string;
|
|
605
|
+
};
|
|
606
|
+
fallback: string;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
}
|
|
@@ -11,3 +11,13 @@ export declare const PanelVizMeta: import("mobx-state-tree").IModelType<{
|
|
|
11
11
|
setType(type: string): void;
|
|
12
12
|
setConf(conf: AnyObject): void;
|
|
13
13
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
14
|
+
export interface IPanelVizMeta {
|
|
15
|
+
type: string;
|
|
16
|
+
conf: AnyObject;
|
|
17
|
+
readonly json: {
|
|
18
|
+
type: string;
|
|
19
|
+
conf: AnyObject;
|
|
20
|
+
};
|
|
21
|
+
setType(type: string): void;
|
|
22
|
+
setConf(conf: AnyObject): void;
|
|
23
|
+
}
|
|
@@ -1,41 +1,52 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
2
|
import { DataSourceType } from './types';
|
|
3
3
|
export declare const DBQueryMeta: import("mobx-state-tree").IModelType<{
|
|
4
|
-
_type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
4
|
+
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Postgresql | DataSourceType.MySQL>;
|
|
5
5
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
6
6
|
}, {
|
|
7
7
|
readonly base: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
|
|
8
8
|
readonly valid: boolean;
|
|
9
9
|
readonly json: {
|
|
10
10
|
sql: string;
|
|
11
|
-
_type: DataSourceType;
|
|
11
|
+
_type: DataSourceType.Postgresql | DataSourceType.MySQL;
|
|
12
12
|
};
|
|
13
13
|
} & {
|
|
14
14
|
setSQL(sql: string): void;
|
|
15
15
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
16
16
|
export type DBQueryMetaInstance = Instance<typeof DBQueryMeta>;
|
|
17
17
|
export type DBQueryMetaSnapshotIn = SnapshotIn<DBQueryMetaInstance>;
|
|
18
|
+
export interface IDBQueryMeta {
|
|
19
|
+
_type: DataSourceType.MySQL | DataSourceType.Postgresql;
|
|
20
|
+
sql: string;
|
|
21
|
+
readonly base: any;
|
|
22
|
+
readonly valid: boolean;
|
|
23
|
+
readonly json: {
|
|
24
|
+
sql: string;
|
|
25
|
+
_type: DataSourceType.MySQL | DataSourceType.Postgresql;
|
|
26
|
+
};
|
|
27
|
+
setSQL(sql: string): void;
|
|
28
|
+
}
|
|
18
29
|
export declare const createDBQueryConfig: (type: DataSourceType.MySQL | DataSourceType.Postgresql) => {
|
|
19
|
-
_type: DataSourceType;
|
|
30
|
+
_type: DataSourceType.Postgresql | DataSourceType.MySQL;
|
|
20
31
|
sql: string;
|
|
21
32
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
22
33
|
readonly base: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
|
|
23
34
|
readonly valid: boolean;
|
|
24
35
|
readonly json: {
|
|
25
36
|
sql: string;
|
|
26
|
-
_type: DataSourceType;
|
|
37
|
+
_type: DataSourceType.Postgresql | DataSourceType.MySQL;
|
|
27
38
|
};
|
|
28
39
|
} & {
|
|
29
40
|
setSQL(sql: string): void;
|
|
30
41
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
31
|
-
_type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
42
|
+
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Postgresql | DataSourceType.MySQL>;
|
|
32
43
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
33
44
|
}, {
|
|
34
45
|
readonly base: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
|
|
35
46
|
readonly valid: boolean;
|
|
36
47
|
readonly json: {
|
|
37
48
|
sql: string;
|
|
38
|
-
_type: DataSourceType;
|
|
49
|
+
_type: DataSourceType.Postgresql | DataSourceType.MySQL;
|
|
39
50
|
};
|
|
40
51
|
} & {
|
|
41
52
|
setSQL(sql: string): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import { type IObservableArray } from 'mobx';
|
|
2
3
|
import { DataSourceType } from './types';
|
|
3
4
|
export declare const HTTPQueryMeta: import("mobx-state-tree").IModelType<{
|
|
4
5
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.HTTP>;
|
|
@@ -14,6 +15,16 @@ export declare const HTTPQueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
14
15
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
15
16
|
export type HTTPQueryMetaInstance = Instance<typeof HTTPQueryMeta>;
|
|
16
17
|
export type HTTPQueryMetaSnapshotIn = SnapshotIn<HTTPQueryMetaInstance>;
|
|
18
|
+
export interface IHTTPQueryMeta {
|
|
19
|
+
_type: DataSourceType.HTTP;
|
|
20
|
+
react_to: IObservableArray<string>;
|
|
21
|
+
readonly valid: boolean;
|
|
22
|
+
readonly json: {
|
|
23
|
+
react_to: IObservableArray<string>;
|
|
24
|
+
_type: DataSourceType.HTTP;
|
|
25
|
+
};
|
|
26
|
+
setReactTo(v: string[]): void;
|
|
27
|
+
}
|
|
17
28
|
export declare const createHTTPQueryConfig: () => {
|
|
18
29
|
_type: DataSourceType.HTTP;
|
|
19
30
|
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]>>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
2
|
import { DataSourceType } from './types';
|
|
3
|
+
import type { IObservableArray } from 'mobx';
|
|
4
|
+
import { IQueryRenderModel } from '../../../../../model/render-model';
|
|
3
5
|
declare const MetricFilterColMeta: import("mobx-state-tree").IModelType<{
|
|
4
6
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
7
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -15,11 +17,23 @@ declare const MetricFilterColMeta: import("mobx-state-tree").IModelType<{
|
|
|
15
17
|
setVariable(v: string | null): void;
|
|
16
18
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
17
19
|
type MetricFilterColMetaInstance = Instance<typeof MetricFilterColMeta>;
|
|
20
|
+
export type IMetricFilterColMeta = {
|
|
21
|
+
dimension: string;
|
|
22
|
+
variable: string;
|
|
23
|
+
allEmpty: boolean;
|
|
24
|
+
json: {
|
|
25
|
+
dimension: string;
|
|
26
|
+
variable: string;
|
|
27
|
+
};
|
|
28
|
+
removeSelf(): void;
|
|
29
|
+
setDimension(v: string | null): void;
|
|
30
|
+
setVariable(v: string | null): void;
|
|
31
|
+
};
|
|
18
32
|
export type MericoMetricType = 'derived' | 'combined';
|
|
19
33
|
export declare const MericoMetricQueryMeta: import("mobx-state-tree").IModelType<{
|
|
20
34
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.MericoMetricSystem>;
|
|
21
35
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
22
|
-
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<
|
|
36
|
+
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<MericoMetricType>, [undefined]>;
|
|
23
37
|
filters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
24
38
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
25
39
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -47,7 +61,7 @@ export declare const MericoMetricQueryMeta: import("mobx-state-tree").IModelType
|
|
|
47
61
|
readonly valid: boolean;
|
|
48
62
|
readonly json: {
|
|
49
63
|
id: string;
|
|
50
|
-
type:
|
|
64
|
+
type: MericoMetricType;
|
|
51
65
|
filters: {
|
|
52
66
|
dimension: string;
|
|
53
67
|
variable: string;
|
|
@@ -85,10 +99,56 @@ export declare const MericoMetricQueryMeta: import("mobx-state-tree").IModelType
|
|
|
85
99
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
86
100
|
export type MericoMetricQueryMetaInstance = Instance<typeof MericoMetricQueryMeta>;
|
|
87
101
|
export type MericoMetricQueryMetaSnapshotIn = SnapshotIn<MericoMetricQueryMetaInstance>;
|
|
102
|
+
export interface IMericoMetricQueryMeta {
|
|
103
|
+
_type: DataSourceType.MericoMetricSystem;
|
|
104
|
+
id: string;
|
|
105
|
+
type: 'derived' | 'combined';
|
|
106
|
+
filters: IObservableArray<IMetricFilterColMeta>;
|
|
107
|
+
groupBys: IObservableArray<string>;
|
|
108
|
+
timeQuery: {
|
|
109
|
+
enabled: boolean;
|
|
110
|
+
range_variable: string;
|
|
111
|
+
unit_variable: string;
|
|
112
|
+
timezone: string;
|
|
113
|
+
stepKeyFormat: string;
|
|
114
|
+
};
|
|
115
|
+
readonly query: IQueryRenderModel;
|
|
116
|
+
readonly valid: boolean;
|
|
117
|
+
readonly json: {
|
|
118
|
+
id: string;
|
|
119
|
+
type: 'derived' | 'combined';
|
|
120
|
+
filters: Array<{
|
|
121
|
+
dimension: string;
|
|
122
|
+
variable: string;
|
|
123
|
+
}>;
|
|
124
|
+
groupBys: IObservableArray<string>;
|
|
125
|
+
timeQuery: {
|
|
126
|
+
enabled: boolean;
|
|
127
|
+
range_variable: string;
|
|
128
|
+
unit_variable: string;
|
|
129
|
+
timezone: string;
|
|
130
|
+
stepKeyFormat: string;
|
|
131
|
+
};
|
|
132
|
+
_type: DataSourceType.MericoMetricSystem;
|
|
133
|
+
};
|
|
134
|
+
readonly usedFilterDimensionKeys: Set<string>;
|
|
135
|
+
readonly usedFilterVariableSet: Set<string>;
|
|
136
|
+
readonly usedTimeQueryVariableSet: Set<string>;
|
|
137
|
+
readonly groupByValues: string[];
|
|
138
|
+
reset(): void;
|
|
139
|
+
setID(v: string): void;
|
|
140
|
+
setType(type: string): void;
|
|
141
|
+
addFilter(k: string, v: string): void;
|
|
142
|
+
removeFilter(filter: IMetricFilterColMeta): void;
|
|
143
|
+
setGroupBys(v: string[]): void;
|
|
144
|
+
setRangeVariable(v: string | null): void;
|
|
145
|
+
setUnitVariable(v: string | null): void;
|
|
146
|
+
setTimeQueryEnabled(v: boolean): void;
|
|
147
|
+
}
|
|
88
148
|
export declare const createMericoMetricQueryMetaConfig: () => {
|
|
89
149
|
_type: DataSourceType.MericoMetricSystem;
|
|
90
150
|
id: string;
|
|
91
|
-
type:
|
|
151
|
+
type: MericoMetricType;
|
|
92
152
|
filters: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
93
153
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
94
154
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -135,7 +195,7 @@ export declare const createMericoMetricQueryMetaConfig: () => {
|
|
|
135
195
|
readonly valid: boolean;
|
|
136
196
|
readonly json: {
|
|
137
197
|
id: string;
|
|
138
|
-
type:
|
|
198
|
+
type: MericoMetricType;
|
|
139
199
|
filters: {
|
|
140
200
|
dimension: string;
|
|
141
201
|
variable: string;
|
|
@@ -173,7 +233,7 @@ export declare const createMericoMetricQueryMetaConfig: () => {
|
|
|
173
233
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
174
234
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.MericoMetricSystem>;
|
|
175
235
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
176
|
-
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<
|
|
236
|
+
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<MericoMetricType>, [undefined]>;
|
|
177
237
|
filters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
178
238
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
179
239
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -201,7 +261,7 @@ export declare const createMericoMetricQueryMetaConfig: () => {
|
|
|
201
261
|
readonly valid: boolean;
|
|
202
262
|
readonly json: {
|
|
203
263
|
id: string;
|
|
204
|
-
type:
|
|
264
|
+
type: MericoMetricType;
|
|
205
265
|
filters: {
|
|
206
266
|
dimension: string;
|
|
207
267
|
variable: string;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import { type IObservableArray } from 'mobx';
|
|
3
|
+
import { type IDBQueryMeta } from './db-query';
|
|
4
|
+
import { type IHTTPQueryMeta } from './http-query';
|
|
5
|
+
import { type ITransformQueryMeta } from './transform-query';
|
|
6
|
+
import { type IMericoMetricQueryMeta } from './merico-metric-query';
|
|
2
7
|
import { DataSourceType } from './types';
|
|
3
8
|
export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
4
9
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -14,7 +19,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
14
19
|
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
15
20
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.MericoMetricSystem>;
|
|
16
21
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
17
|
-
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<
|
|
22
|
+
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("./merico-metric-query").MericoMetricType>, [undefined]>;
|
|
18
23
|
filters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
19
24
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
20
25
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -38,7 +43,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
38
43
|
stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
39
44
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
40
45
|
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
41
|
-
_type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
46
|
+
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Postgresql | DataSourceType.MySQL>;
|
|
42
47
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
43
48
|
}>>, import("mobx-state-tree").ModelSnapshotType<{
|
|
44
49
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Transform>;
|
|
@@ -49,7 +54,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
49
54
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
50
55
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.MericoMetricSystem>;
|
|
51
56
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
52
|
-
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<
|
|
57
|
+
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("./merico-metric-query").MericoMetricType>, [undefined]>;
|
|
53
58
|
filters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
54
59
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
55
60
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -73,7 +78,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
73
78
|
stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
74
79
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
75
80
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
76
|
-
_type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
81
|
+
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Postgresql | DataSourceType.MySQL>;
|
|
77
82
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
78
83
|
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
79
84
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Transform>;
|
|
@@ -100,7 +105,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
100
105
|
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
101
106
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.MericoMetricSystem>;
|
|
102
107
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
103
|
-
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<
|
|
108
|
+
type: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("./merico-metric-query").MericoMetricType>, [undefined]>;
|
|
104
109
|
filters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
105
110
|
dimension: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
106
111
|
variable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -128,7 +133,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
128
133
|
readonly valid: boolean;
|
|
129
134
|
readonly json: {
|
|
130
135
|
id: string;
|
|
131
|
-
type:
|
|
136
|
+
type: import("./merico-metric-query").MericoMetricType;
|
|
132
137
|
filters: {
|
|
133
138
|
dimension: string;
|
|
134
139
|
variable: string;
|
|
@@ -190,14 +195,14 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
190
195
|
setUnitVariable(v: string | null): void;
|
|
191
196
|
setTimeQueryEnabled(v: boolean): void;
|
|
192
197
|
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
193
|
-
_type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
198
|
+
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Postgresql | DataSourceType.MySQL>;
|
|
194
199
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
195
200
|
}, {
|
|
196
201
|
readonly base: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
|
|
197
202
|
readonly valid: boolean;
|
|
198
203
|
readonly json: {
|
|
199
204
|
sql: string;
|
|
200
|
-
_type: DataSourceType;
|
|
205
|
+
_type: DataSourceType.Postgresql | DataSourceType.MySQL;
|
|
201
206
|
};
|
|
202
207
|
} & {
|
|
203
208
|
setSQL(sql: string): void;
|
|
@@ -220,7 +225,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
220
225
|
_type: DataSourceType.HTTP;
|
|
221
226
|
} | {
|
|
222
227
|
id: string;
|
|
223
|
-
type:
|
|
228
|
+
type: import("./merico-metric-query").MericoMetricType;
|
|
224
229
|
filters: {
|
|
225
230
|
dimension: string;
|
|
226
231
|
variable: string;
|
|
@@ -242,7 +247,7 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
242
247
|
_type: DataSourceType.MericoMetricSystem;
|
|
243
248
|
} | {
|
|
244
249
|
sql: string;
|
|
245
|
-
_type: DataSourceType;
|
|
250
|
+
_type: DataSourceType.Postgresql | DataSourceType.MySQL;
|
|
246
251
|
};
|
|
247
252
|
pre_process: string;
|
|
248
253
|
post_process: string;
|
|
@@ -258,3 +263,30 @@ export declare const QueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
258
263
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
259
264
|
export type QueryMetaInstance = Instance<typeof QueryMeta>;
|
|
260
265
|
export type QueryMetaSnapshotIn = SnapshotIn<QueryMetaInstance>;
|
|
266
|
+
export interface IQueryMeta {
|
|
267
|
+
id: string;
|
|
268
|
+
name: string;
|
|
269
|
+
key: string;
|
|
270
|
+
type: DataSourceType;
|
|
271
|
+
config: IDBQueryMeta | IHTTPQueryMeta | ITransformQueryMeta | IMericoMetricQueryMeta;
|
|
272
|
+
pre_process: string;
|
|
273
|
+
post_process: string;
|
|
274
|
+
run_by: IObservableArray<string>;
|
|
275
|
+
readonly valid: boolean;
|
|
276
|
+
readonly json: {
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
key: string;
|
|
280
|
+
type: DataSourceType;
|
|
281
|
+
config: (IDBQueryMeta | IHTTPQueryMeta | ITransformQueryMeta | IMericoMetricQueryMeta)['json'];
|
|
282
|
+
pre_process: string;
|
|
283
|
+
post_process: string;
|
|
284
|
+
run_by: IObservableArray<string>;
|
|
285
|
+
};
|
|
286
|
+
setName(name: string): void;
|
|
287
|
+
setKey(key: string): void;
|
|
288
|
+
setType(type: DataSourceType): void;
|
|
289
|
+
setRunBy(v: string[]): void;
|
|
290
|
+
setPreProcess(v: string): void;
|
|
291
|
+
setPostProcess(v: string): void;
|
|
292
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
2
|
import { DataSourceType } from './types';
|
|
3
|
+
import type { IObservableArray } from 'mobx';
|
|
3
4
|
export declare const TransformQueryMeta: import("mobx-state-tree").IModelType<{
|
|
4
5
|
_type: import("mobx-state-tree").ISimpleType<DataSourceType.Transform>;
|
|
5
6
|
dep_query_ids: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
@@ -14,6 +15,16 @@ export declare const TransformQueryMeta: import("mobx-state-tree").IModelType<{
|
|
|
14
15
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
15
16
|
export type TransformQueryMetaInstance = Instance<typeof TransformQueryMeta>;
|
|
16
17
|
export type TransformQueryMetaSnapshotIn = SnapshotIn<TransformQueryMetaInstance>;
|
|
18
|
+
export interface ITransformQueryMeta {
|
|
19
|
+
_type: DataSourceType.Transform;
|
|
20
|
+
dep_query_ids: IObservableArray<string>;
|
|
21
|
+
readonly valid: boolean;
|
|
22
|
+
readonly json: {
|
|
23
|
+
dep_query_ids: IObservableArray<string>;
|
|
24
|
+
_type: DataSourceType.Transform;
|
|
25
|
+
};
|
|
26
|
+
setDependantQueryIDs(v: string[]): void;
|
|
27
|
+
}
|
|
17
28
|
export declare const createTransformQueryConfig: () => {
|
|
18
29
|
_type: DataSourceType.Transform;
|
|
19
30
|
dep_query_ids: 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]>>;
|
|
@@ -12,3 +12,13 @@ export declare const SQLSnippetMeta: import("mobx-state-tree").IModelType<{
|
|
|
12
12
|
setValue(value: string): void;
|
|
13
13
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
14
14
|
export type SQLSnippetMetaSnapshotIn = SnapshotIn<Instance<typeof SQLSnippetMeta>>;
|
|
15
|
+
export interface ISQLSnippetMeta {
|
|
16
|
+
key: string;
|
|
17
|
+
value: string;
|
|
18
|
+
readonly json: {
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
setKey(key: string): void;
|
|
23
|
+
setValue(value: string): void;
|
|
24
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
|
+
import { IObservableArray } from 'mobx';
|
|
2
3
|
import { EViewComponentType } from './types';
|
|
4
|
+
import { type IViewDivisionConfig } from './widgets/division';
|
|
5
|
+
import { type IViewModalConfig } from './widgets/modal';
|
|
6
|
+
import { type IViewTabsConfig } from './widgets/tabs';
|
|
3
7
|
export declare const ViewMeta: import("mobx-state-tree").IModelType<{
|
|
4
8
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
9
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -271,3 +275,22 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
|
|
|
271
275
|
removePanelID(id: string): void;
|
|
272
276
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
273
277
|
export type ViewMetaInstance = Instance<typeof ViewMeta>;
|
|
278
|
+
export interface IViewMeta {
|
|
279
|
+
id: string;
|
|
280
|
+
name: string;
|
|
281
|
+
type: EViewComponentType;
|
|
282
|
+
config: IViewDivisionConfig | IViewModalConfig | IViewTabsConfig;
|
|
283
|
+
panelIDs: IObservableArray<string>;
|
|
284
|
+
readonly json: {
|
|
285
|
+
id: string;
|
|
286
|
+
name: string;
|
|
287
|
+
type: EViewComponentType;
|
|
288
|
+
config: IViewDivisionConfig['json'] | IViewModalConfig['json'] | IViewTabsConfig['json'];
|
|
289
|
+
panelIDs: string[];
|
|
290
|
+
};
|
|
291
|
+
setName(name: string): void;
|
|
292
|
+
setType(type: EViewComponentType): void;
|
|
293
|
+
appendPanelID(id: string): void;
|
|
294
|
+
appendPanelIDs(ids: string[]): void;
|
|
295
|
+
removePanelID(id: string): void;
|
|
296
|
+
}
|
|
@@ -22,3 +22,9 @@ export declare const createViewDivisionConfig: () => {
|
|
|
22
22
|
_name: EViewComponentType.Division;
|
|
23
23
|
};
|
|
24
24
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
25
|
+
export interface IViewDivisionConfig {
|
|
26
|
+
_name: EViewComponentType.Division;
|
|
27
|
+
readonly json: {
|
|
28
|
+
_name: EViewComponentType.Division;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
2
|
import { EViewComponentType } from '../../../../../../model';
|
|
3
|
+
export interface ICustomModalTitleModel {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
func_content: string;
|
|
6
|
+
readonly json: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
func_content: string;
|
|
9
|
+
};
|
|
10
|
+
readonly value: string;
|
|
11
|
+
setEnabled(v: boolean): void;
|
|
12
|
+
setFuncContent(v: string): void;
|
|
13
|
+
replace({ enabled, func_content }: {
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
func_content: string;
|
|
16
|
+
}): void;
|
|
17
|
+
}
|
|
3
18
|
export interface ICustomModalTitle {
|
|
4
19
|
enabled: boolean;
|
|
5
20
|
func_content: string;
|
|
@@ -45,6 +60,23 @@ export declare const ViewModalConfig: import("mobx-state-tree").IModelType<{
|
|
|
45
60
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
46
61
|
export type ViewModalConfigInstance = Instance<typeof ViewModalConfig>;
|
|
47
62
|
export type ViewModalConfigSnapshotIn = SnapshotIn<ViewModalConfigInstance>;
|
|
63
|
+
export interface IViewModalConfig {
|
|
64
|
+
_name: EViewComponentType.Modal;
|
|
65
|
+
width: string;
|
|
66
|
+
height: string;
|
|
67
|
+
custom_modal_title: ICustomModalTitleModel;
|
|
68
|
+
readonly json: {
|
|
69
|
+
_name: EViewComponentType.Modal;
|
|
70
|
+
width: string;
|
|
71
|
+
height: string;
|
|
72
|
+
custom_modal_title: {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
func_content: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
setWidth(v: string): void;
|
|
78
|
+
setHeight(v: string): void;
|
|
79
|
+
}
|
|
48
80
|
export declare const createViewModalConfig: () => {
|
|
49
81
|
_name: EViewComponentType.Modal;
|
|
50
82
|
width: string;
|