@devtable/dashboard 6.6.0 → 6.7.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/dashboard.es.js +2595 -2434
- package/dist/dashboard.umd.js +18 -17
- package/dist/definition-editor/query-editor/editor.d.ts +0 -1
- package/dist/definition-editor/query-editor/form.d.ts +0 -1
- package/dist/main/use-panel-full-screen.d.ts +16 -36
- package/dist/model/queries/index.d.ts +21 -45
- package/dist/model/queries/mute-query.d.ts +3 -1
- package/dist/model/queries/query.d.ts +6 -10
- package/dist/model/views/view/index.d.ts +72 -162
- package/dist/model/views/view/panels/index.d.ts +24 -54
- package/dist/model/views/view/panels/panel.d.ts +8 -18
- package/dist/plugins/plugin-context.d.ts +16 -36
- package/dist/plugins/viz-components/cartesian/panel/scatter-size-select/dynamic-size-function-editor.d.ts +8 -0
- package/dist/plugins/viz-components/cartesian/panel/scatter-size-select/dynamic.d.ts +9 -0
- package/dist/plugins/viz-components/cartesian/panel/scatter-size-select/get-echarts-symbol-size.d.ts +3 -0
- package/dist/plugins/viz-components/cartesian/panel/scatter-size-select/index.d.ts +11 -0
- package/dist/plugins/viz-components/cartesian/panel/scatter-size-select/static.d.ts +8 -0
- package/dist/plugins/viz-components/cartesian/panel/scatter-size-select/types.d.ts +13 -0
- package/dist/plugins/viz-components/cartesian/panel/series/fields.scatter.d.ts +3 -1
- package/dist/plugins/viz-components/cartesian/type.d.ts +2 -1
- package/dist/types/dashboard.d.ts +2 -2
- package/package.json +2 -1
|
@@ -2,7 +2,6 @@ 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>>;
|
|
6
5
|
}
|
|
7
6
|
export declare const QueryForm: React.FunctionComponent<IQueryForm>;
|
|
8
7
|
export {};
|
|
@@ -373,6 +373,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
373
373
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
374
374
|
readonly query: ({
|
|
375
375
|
id: string;
|
|
376
|
+
name: string;
|
|
376
377
|
type: import("../model/queries/types").DataSourceType;
|
|
377
378
|
key: string;
|
|
378
379
|
sql: string;
|
|
@@ -381,8 +382,9 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
381
382
|
error: any;
|
|
382
383
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
383
384
|
readonly valid: string;
|
|
384
|
-
readonly
|
|
385
|
+
readonly json: {
|
|
385
386
|
id: string;
|
|
387
|
+
name: string;
|
|
386
388
|
type: import("../model/queries/types").DataSourceType;
|
|
387
389
|
key: string;
|
|
388
390
|
sql: string;
|
|
@@ -390,14 +392,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
390
392
|
} & {
|
|
391
393
|
readonly formattedSQL: any;
|
|
392
394
|
} & {
|
|
393
|
-
|
|
394
|
-
id: string;
|
|
395
|
-
type: import("../model/queries/types").DataSourceType;
|
|
396
|
-
key: string;
|
|
397
|
-
sql: string;
|
|
398
|
-
};
|
|
399
|
-
} & {
|
|
400
|
-
setID(id: string): void;
|
|
395
|
+
setName(name: string): void;
|
|
401
396
|
setKey(key: string): void;
|
|
402
397
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
403
398
|
setSQL(sql: string): void;
|
|
@@ -406,6 +401,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
406
401
|
afterCreate(): void;
|
|
407
402
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
408
403
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
404
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
409
405
|
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
410
406
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
411
407
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -415,8 +411,9 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
415
411
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
416
412
|
}, {
|
|
417
413
|
readonly valid: string;
|
|
418
|
-
readonly
|
|
414
|
+
readonly json: {
|
|
419
415
|
id: string;
|
|
416
|
+
name: string;
|
|
420
417
|
type: import("../model/queries/types").DataSourceType;
|
|
421
418
|
key: string;
|
|
422
419
|
sql: string;
|
|
@@ -424,14 +421,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
424
421
|
} & {
|
|
425
422
|
readonly formattedSQL: any;
|
|
426
423
|
} & {
|
|
427
|
-
|
|
428
|
-
id: string;
|
|
429
|
-
type: import("../model/queries/types").DataSourceType;
|
|
430
|
-
key: string;
|
|
431
|
-
sql: string;
|
|
432
|
-
};
|
|
433
|
-
} & {
|
|
434
|
-
setID(id: string): void;
|
|
424
|
+
setName(name: string): void;
|
|
435
425
|
setKey(key: string): void;
|
|
436
426
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
437
427
|
setSQL(sql: string): void;
|
|
@@ -1147,6 +1137,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1147
1137
|
}, {
|
|
1148
1138
|
readonly query: ({
|
|
1149
1139
|
id: string;
|
|
1140
|
+
name: string;
|
|
1150
1141
|
type: import("../model/queries/types").DataSourceType;
|
|
1151
1142
|
key: string;
|
|
1152
1143
|
sql: string;
|
|
@@ -1155,8 +1146,9 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1155
1146
|
error: any;
|
|
1156
1147
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1157
1148
|
readonly valid: string;
|
|
1158
|
-
readonly
|
|
1149
|
+
readonly json: {
|
|
1159
1150
|
id: string;
|
|
1151
|
+
name: string;
|
|
1160
1152
|
type: import("../model/queries/types").DataSourceType;
|
|
1161
1153
|
key: string;
|
|
1162
1154
|
sql: string;
|
|
@@ -1164,14 +1156,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1164
1156
|
} & {
|
|
1165
1157
|
readonly formattedSQL: any;
|
|
1166
1158
|
} & {
|
|
1167
|
-
|
|
1168
|
-
id: string;
|
|
1169
|
-
type: import("../model/queries/types").DataSourceType;
|
|
1170
|
-
key: string;
|
|
1171
|
-
sql: string;
|
|
1172
|
-
};
|
|
1173
|
-
} & {
|
|
1174
|
-
setID(id: string): void;
|
|
1159
|
+
setName(name: string): void;
|
|
1175
1160
|
setKey(key: string): void;
|
|
1176
1161
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
1177
1162
|
setSQL(sql: string): void;
|
|
@@ -1180,6 +1165,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1180
1165
|
afterCreate(): void;
|
|
1181
1166
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1182
1167
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
1168
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
1183
1169
|
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
1184
1170
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
1185
1171
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -1189,8 +1175,9 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1189
1175
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
1190
1176
|
}, {
|
|
1191
1177
|
readonly valid: string;
|
|
1192
|
-
readonly
|
|
1178
|
+
readonly json: {
|
|
1193
1179
|
id: string;
|
|
1180
|
+
name: string;
|
|
1194
1181
|
type: import("../model/queries/types").DataSourceType;
|
|
1195
1182
|
key: string;
|
|
1196
1183
|
sql: string;
|
|
@@ -1198,14 +1185,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1198
1185
|
} & {
|
|
1199
1186
|
readonly formattedSQL: any;
|
|
1200
1187
|
} & {
|
|
1201
|
-
|
|
1202
|
-
id: string;
|
|
1203
|
-
type: import("../model/queries/types").DataSourceType;
|
|
1204
|
-
key: string;
|
|
1205
|
-
sql: string;
|
|
1206
|
-
};
|
|
1207
|
-
} & {
|
|
1208
|
-
setID(id: string): void;
|
|
1188
|
+
setName(name: string): void;
|
|
1209
1189
|
setKey(key: string): void;
|
|
1210
1190
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
1211
1191
|
setSQL(sql: string): void;
|
|
@@ -2,6 +2,7 @@ import { QueryModelInstance } from './query';
|
|
|
2
2
|
export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
3
3
|
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
4
4
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
5
6
|
type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
|
|
6
7
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
7
8
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -11,8 +12,9 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
11
12
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
12
13
|
}, {
|
|
13
14
|
readonly valid: string;
|
|
14
|
-
readonly
|
|
15
|
+
readonly json: {
|
|
15
16
|
id: string;
|
|
17
|
+
name: string;
|
|
16
18
|
type: import("./types").DataSourceType;
|
|
17
19
|
key: string;
|
|
18
20
|
sql: string;
|
|
@@ -20,14 +22,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
20
22
|
} & {
|
|
21
23
|
readonly formattedSQL: any;
|
|
22
24
|
} & {
|
|
23
|
-
|
|
24
|
-
id: string;
|
|
25
|
-
type: import("./types").DataSourceType;
|
|
26
|
-
key: string;
|
|
27
|
-
sql: string;
|
|
28
|
-
};
|
|
29
|
-
} & {
|
|
30
|
-
setID(id: string): void;
|
|
25
|
+
setName(name: string): void;
|
|
31
26
|
setKey(key: string): void;
|
|
32
27
|
setType(type: import("./types").DataSourceType): void;
|
|
33
28
|
setSQL(sql: string): void;
|
|
@@ -39,6 +34,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
39
34
|
readonly firstID: string | undefined;
|
|
40
35
|
findByID(id: string): ({
|
|
41
36
|
id: string;
|
|
37
|
+
name: string;
|
|
42
38
|
type: import("./types").DataSourceType;
|
|
43
39
|
key: string;
|
|
44
40
|
sql: string;
|
|
@@ -47,8 +43,9 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
47
43
|
error: any;
|
|
48
44
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
49
45
|
readonly valid: string;
|
|
50
|
-
readonly
|
|
46
|
+
readonly json: {
|
|
51
47
|
id: string;
|
|
48
|
+
name: string;
|
|
52
49
|
type: import("./types").DataSourceType;
|
|
53
50
|
key: string;
|
|
54
51
|
sql: string;
|
|
@@ -56,14 +53,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
56
53
|
} & {
|
|
57
54
|
readonly formattedSQL: any;
|
|
58
55
|
} & {
|
|
59
|
-
|
|
60
|
-
id: string;
|
|
61
|
-
type: import("./types").DataSourceType;
|
|
62
|
-
key: string;
|
|
63
|
-
sql: string;
|
|
64
|
-
};
|
|
65
|
-
} & {
|
|
66
|
-
setID(id: string): void;
|
|
56
|
+
setName(name: string): void;
|
|
67
57
|
setKey(key: string): void;
|
|
68
58
|
setType(type: import("./types").DataSourceType): void;
|
|
69
59
|
setSQL(sql: string): void;
|
|
@@ -72,6 +62,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
72
62
|
afterCreate(): void;
|
|
73
63
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
74
64
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
65
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
75
66
|
type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
|
|
76
67
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
77
68
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -81,8 +72,9 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
81
72
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
82
73
|
}, {
|
|
83
74
|
readonly valid: string;
|
|
84
|
-
readonly
|
|
75
|
+
readonly json: {
|
|
85
76
|
id: string;
|
|
77
|
+
name: string;
|
|
86
78
|
type: import("./types").DataSourceType;
|
|
87
79
|
key: string;
|
|
88
80
|
sql: string;
|
|
@@ -90,14 +82,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
90
82
|
} & {
|
|
91
83
|
readonly formattedSQL: any;
|
|
92
84
|
} & {
|
|
93
|
-
|
|
94
|
-
id: string;
|
|
95
|
-
type: import("./types").DataSourceType;
|
|
96
|
-
key: string;
|
|
97
|
-
sql: string;
|
|
98
|
-
};
|
|
99
|
-
} & {
|
|
100
|
-
setID(id: string): void;
|
|
85
|
+
setName(name: string): void;
|
|
101
86
|
setKey(key: string): void;
|
|
102
87
|
setType(type: import("./types").DataSourceType): void;
|
|
103
88
|
setSQL(sql: string): void;
|
|
@@ -112,6 +97,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
112
97
|
} & {
|
|
113
98
|
readonly json: {
|
|
114
99
|
id: string;
|
|
100
|
+
name: string;
|
|
115
101
|
type: import("./types").DataSourceType;
|
|
116
102
|
key: string;
|
|
117
103
|
sql: string;
|
|
@@ -124,6 +110,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
124
110
|
downloadAllData(): void;
|
|
125
111
|
downloadDataByQueryID(query?: ({
|
|
126
112
|
id: string;
|
|
113
|
+
name: string;
|
|
127
114
|
type: import("./types").DataSourceType;
|
|
128
115
|
key: string;
|
|
129
116
|
sql: string;
|
|
@@ -132,8 +119,9 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
132
119
|
error: any;
|
|
133
120
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
134
121
|
readonly valid: string;
|
|
135
|
-
readonly
|
|
122
|
+
readonly json: {
|
|
136
123
|
id: string;
|
|
124
|
+
name: string;
|
|
137
125
|
type: import("./types").DataSourceType;
|
|
138
126
|
key: string;
|
|
139
127
|
sql: string;
|
|
@@ -141,14 +129,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
141
129
|
} & {
|
|
142
130
|
readonly formattedSQL: any;
|
|
143
131
|
} & {
|
|
144
|
-
|
|
145
|
-
id: string;
|
|
146
|
-
type: import("./types").DataSourceType;
|
|
147
|
-
key: string;
|
|
148
|
-
sql: string;
|
|
149
|
-
};
|
|
150
|
-
} & {
|
|
151
|
-
setID(id: string): void;
|
|
132
|
+
setName(name: string): void;
|
|
152
133
|
setKey(key: string): void;
|
|
153
134
|
setType(type: import("./types").DataSourceType): void;
|
|
154
135
|
setSQL(sql: string): void;
|
|
@@ -157,6 +138,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
157
138
|
afterCreate(): void;
|
|
158
139
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
159
140
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
141
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
160
142
|
type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
|
|
161
143
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
162
144
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -166,8 +148,9 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
166
148
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
167
149
|
}, {
|
|
168
150
|
readonly valid: string;
|
|
169
|
-
readonly
|
|
151
|
+
readonly json: {
|
|
170
152
|
id: string;
|
|
153
|
+
name: string;
|
|
171
154
|
type: import("./types").DataSourceType;
|
|
172
155
|
key: string;
|
|
173
156
|
sql: string;
|
|
@@ -175,14 +158,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
175
158
|
} & {
|
|
176
159
|
readonly formattedSQL: any;
|
|
177
160
|
} & {
|
|
178
|
-
|
|
179
|
-
id: string;
|
|
180
|
-
type: import("./types").DataSourceType;
|
|
181
|
-
key: string;
|
|
182
|
-
sql: string;
|
|
183
|
-
};
|
|
184
|
-
} & {
|
|
185
|
-
setID(id: string): void;
|
|
161
|
+
setName(name: string): void;
|
|
186
162
|
setKey(key: string): void;
|
|
187
163
|
setType(type: import("./types").DataSourceType): void;
|
|
188
164
|
setSQL(sql: string): void;
|
|
@@ -2,13 +2,15 @@ import { Instance } from 'mobx-state-tree';
|
|
|
2
2
|
import { DataSourceType } from './types';
|
|
3
3
|
export declare const MuteQueryModel: import("mobx-state-tree").IModelType<{
|
|
4
4
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
5
6
|
type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
6
7
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
7
8
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
8
9
|
}, {
|
|
9
10
|
readonly valid: string;
|
|
10
|
-
readonly
|
|
11
|
+
readonly json: {
|
|
11
12
|
id: string;
|
|
13
|
+
name: string;
|
|
12
14
|
type: DataSourceType;
|
|
13
15
|
key: string;
|
|
14
16
|
sql: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Instance } from 'mobx-state-tree';
|
|
1
|
+
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
2
|
import { DataSourceType } from './types';
|
|
3
3
|
export declare const QueryModel: import("mobx-state-tree").IModelType<{
|
|
4
4
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
5
6
|
type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
6
7
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
7
8
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -11,8 +12,9 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
|
|
|
11
12
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
12
13
|
}, {
|
|
13
14
|
readonly valid: string;
|
|
14
|
-
readonly
|
|
15
|
+
readonly json: {
|
|
15
16
|
id: string;
|
|
17
|
+
name: string;
|
|
16
18
|
type: DataSourceType;
|
|
17
19
|
key: string;
|
|
18
20
|
sql: string;
|
|
@@ -20,14 +22,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
|
|
|
20
22
|
} & {
|
|
21
23
|
readonly formattedSQL: any;
|
|
22
24
|
} & {
|
|
23
|
-
|
|
24
|
-
id: string;
|
|
25
|
-
type: DataSourceType;
|
|
26
|
-
key: string;
|
|
27
|
-
sql: string;
|
|
28
|
-
};
|
|
29
|
-
} & {
|
|
30
|
-
setID(id: string): void;
|
|
25
|
+
setName(name: string): void;
|
|
31
26
|
setKey(key: string): void;
|
|
32
27
|
setType(type: DataSourceType): void;
|
|
33
28
|
setSQL(sql: string): void;
|
|
@@ -36,3 +31,4 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
|
|
|
36
31
|
afterCreate(): void;
|
|
37
32
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
38
33
|
export declare type QueryModelInstance = Instance<typeof QueryModel>;
|
|
34
|
+
export declare type QueryModelSnapshotIn = SnapshotIn<QueryModelInstance>;
|