@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
|
@@ -187,6 +187,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
187
187
|
}, {
|
|
188
188
|
readonly query: ({
|
|
189
189
|
id: string;
|
|
190
|
+
name: string;
|
|
190
191
|
type: import("../../../queries/types").DataSourceType;
|
|
191
192
|
key: string;
|
|
192
193
|
sql: string;
|
|
@@ -195,8 +196,9 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
195
196
|
error: any;
|
|
196
197
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
197
198
|
readonly valid: string;
|
|
198
|
-
readonly
|
|
199
|
+
readonly json: {
|
|
199
200
|
id: string;
|
|
201
|
+
name: string;
|
|
200
202
|
type: import("../../../queries/types").DataSourceType;
|
|
201
203
|
key: string;
|
|
202
204
|
sql: string;
|
|
@@ -204,14 +206,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
204
206
|
} & {
|
|
205
207
|
readonly formattedSQL: any;
|
|
206
208
|
} & {
|
|
207
|
-
|
|
208
|
-
id: string;
|
|
209
|
-
type: import("../../../queries/types").DataSourceType;
|
|
210
|
-
key: string;
|
|
211
|
-
sql: string;
|
|
212
|
-
};
|
|
213
|
-
} & {
|
|
214
|
-
setID(id: string): void;
|
|
209
|
+
setName(name: string): void;
|
|
215
210
|
setKey(key: string): void;
|
|
216
211
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
217
212
|
setSQL(sql: string): void;
|
|
@@ -220,6 +215,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
220
215
|
afterCreate(): void;
|
|
221
216
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
222
217
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
218
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
223
219
|
type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
|
|
224
220
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
225
221
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -229,8 +225,9 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
229
225
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
230
226
|
}, {
|
|
231
227
|
readonly valid: string;
|
|
232
|
-
readonly
|
|
228
|
+
readonly json: {
|
|
233
229
|
id: string;
|
|
230
|
+
name: string;
|
|
234
231
|
type: import("../../../queries/types").DataSourceType;
|
|
235
232
|
key: string;
|
|
236
233
|
sql: string;
|
|
@@ -238,14 +235,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
238
235
|
} & {
|
|
239
236
|
readonly formattedSQL: any;
|
|
240
237
|
} & {
|
|
241
|
-
|
|
242
|
-
id: string;
|
|
243
|
-
type: import("../../../queries/types").DataSourceType;
|
|
244
|
-
key: string;
|
|
245
|
-
sql: string;
|
|
246
|
-
};
|
|
247
|
-
} & {
|
|
248
|
-
setID(id: string): void;
|
|
238
|
+
setName(name: string): void;
|
|
249
239
|
setKey(key: string): void;
|
|
250
240
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
251
241
|
setSQL(sql: string): void;
|
|
@@ -1243,6 +1233,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1243
1233
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1244
1234
|
readonly query: ({
|
|
1245
1235
|
id: string;
|
|
1236
|
+
name: string;
|
|
1246
1237
|
type: import("../../../queries/types").DataSourceType;
|
|
1247
1238
|
key: string;
|
|
1248
1239
|
sql: string;
|
|
@@ -1251,8 +1242,9 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1251
1242
|
error: any;
|
|
1252
1243
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1253
1244
|
readonly valid: string;
|
|
1254
|
-
readonly
|
|
1245
|
+
readonly json: {
|
|
1255
1246
|
id: string;
|
|
1247
|
+
name: string;
|
|
1256
1248
|
type: import("../../../queries/types").DataSourceType;
|
|
1257
1249
|
key: string;
|
|
1258
1250
|
sql: string;
|
|
@@ -1260,14 +1252,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1260
1252
|
} & {
|
|
1261
1253
|
readonly formattedSQL: any;
|
|
1262
1254
|
} & {
|
|
1263
|
-
|
|
1264
|
-
id: string;
|
|
1265
|
-
type: import("../../../queries/types").DataSourceType;
|
|
1266
|
-
key: string;
|
|
1267
|
-
sql: string;
|
|
1268
|
-
};
|
|
1269
|
-
} & {
|
|
1270
|
-
setID(id: string): void;
|
|
1255
|
+
setName(name: string): void;
|
|
1271
1256
|
setKey(key: string): void;
|
|
1272
1257
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
1273
1258
|
setSQL(sql: string): void;
|
|
@@ -1276,6 +1261,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1276
1261
|
afterCreate(): void;
|
|
1277
1262
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1278
1263
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
1264
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
1279
1265
|
type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
|
|
1280
1266
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
1281
1267
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -1285,8 +1271,9 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1285
1271
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
1286
1272
|
}, {
|
|
1287
1273
|
readonly valid: string;
|
|
1288
|
-
readonly
|
|
1274
|
+
readonly json: {
|
|
1289
1275
|
id: string;
|
|
1276
|
+
name: string;
|
|
1290
1277
|
type: import("../../../queries/types").DataSourceType;
|
|
1291
1278
|
key: string;
|
|
1292
1279
|
sql: string;
|
|
@@ -1294,14 +1281,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1294
1281
|
} & {
|
|
1295
1282
|
readonly formattedSQL: any;
|
|
1296
1283
|
} & {
|
|
1297
|
-
|
|
1298
|
-
id: string;
|
|
1299
|
-
type: import("../../../queries/types").DataSourceType;
|
|
1300
|
-
key: string;
|
|
1301
|
-
sql: string;
|
|
1302
|
-
};
|
|
1303
|
-
} & {
|
|
1304
|
-
setID(id: string): void;
|
|
1284
|
+
setName(name: string): void;
|
|
1305
1285
|
setKey(key: string): void;
|
|
1306
1286
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
1307
1287
|
setSQL(sql: string): void;
|
|
@@ -2017,6 +1997,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2017
1997
|
}, {
|
|
2018
1998
|
readonly query: ({
|
|
2019
1999
|
id: string;
|
|
2000
|
+
name: string;
|
|
2020
2001
|
type: import("../../../queries/types").DataSourceType;
|
|
2021
2002
|
key: string;
|
|
2022
2003
|
sql: string;
|
|
@@ -2025,8 +2006,9 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2025
2006
|
error: any;
|
|
2026
2007
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2027
2008
|
readonly valid: string;
|
|
2028
|
-
readonly
|
|
2009
|
+
readonly json: {
|
|
2029
2010
|
id: string;
|
|
2011
|
+
name: string;
|
|
2030
2012
|
type: import("../../../queries/types").DataSourceType;
|
|
2031
2013
|
key: string;
|
|
2032
2014
|
sql: string;
|
|
@@ -2034,14 +2016,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2034
2016
|
} & {
|
|
2035
2017
|
readonly formattedSQL: any;
|
|
2036
2018
|
} & {
|
|
2037
|
-
|
|
2038
|
-
id: string;
|
|
2039
|
-
type: import("../../../queries/types").DataSourceType;
|
|
2040
|
-
key: string;
|
|
2041
|
-
sql: string;
|
|
2042
|
-
};
|
|
2043
|
-
} & {
|
|
2044
|
-
setID(id: string): void;
|
|
2019
|
+
setName(name: string): void;
|
|
2045
2020
|
setKey(key: string): void;
|
|
2046
2021
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
2047
2022
|
setSQL(sql: string): void;
|
|
@@ -2050,6 +2025,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2050
2025
|
afterCreate(): void;
|
|
2051
2026
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
2052
2027
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
2028
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
2053
2029
|
type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
|
|
2054
2030
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
2055
2031
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -2059,8 +2035,9 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2059
2035
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
2060
2036
|
}, {
|
|
2061
2037
|
readonly valid: string;
|
|
2062
|
-
readonly
|
|
2038
|
+
readonly json: {
|
|
2063
2039
|
id: string;
|
|
2040
|
+
name: string;
|
|
2064
2041
|
type: import("../../../queries/types").DataSourceType;
|
|
2065
2042
|
key: string;
|
|
2066
2043
|
sql: string;
|
|
@@ -2068,14 +2045,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2068
2045
|
} & {
|
|
2069
2046
|
readonly formattedSQL: any;
|
|
2070
2047
|
} & {
|
|
2071
|
-
|
|
2072
|
-
id: string;
|
|
2073
|
-
type: import("../../../queries/types").DataSourceType;
|
|
2074
|
-
key: string;
|
|
2075
|
-
sql: string;
|
|
2076
|
-
};
|
|
2077
|
-
} & {
|
|
2078
|
-
setID(id: string): void;
|
|
2048
|
+
setName(name: string): void;
|
|
2079
2049
|
setKey(key: string): void;
|
|
2080
2050
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
2081
2051
|
setSQL(sql: string): void;
|
|
@@ -187,6 +187,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
187
187
|
}, {
|
|
188
188
|
readonly query: ({
|
|
189
189
|
id: string;
|
|
190
|
+
name: string;
|
|
190
191
|
type: import("../../../queries/types").DataSourceType;
|
|
191
192
|
key: string;
|
|
192
193
|
sql: string;
|
|
@@ -195,8 +196,9 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
195
196
|
error: any;
|
|
196
197
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
197
198
|
readonly valid: string;
|
|
198
|
-
readonly
|
|
199
|
+
readonly json: {
|
|
199
200
|
id: string;
|
|
201
|
+
name: string;
|
|
200
202
|
type: import("../../../queries/types").DataSourceType;
|
|
201
203
|
key: string;
|
|
202
204
|
sql: string;
|
|
@@ -204,14 +206,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
204
206
|
} & {
|
|
205
207
|
readonly formattedSQL: any;
|
|
206
208
|
} & {
|
|
207
|
-
|
|
208
|
-
id: string;
|
|
209
|
-
type: import("../../../queries/types").DataSourceType;
|
|
210
|
-
key: string;
|
|
211
|
-
sql: string;
|
|
212
|
-
};
|
|
213
|
-
} & {
|
|
214
|
-
setID(id: string): void;
|
|
209
|
+
setName(name: string): void;
|
|
215
210
|
setKey(key: string): void;
|
|
216
211
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
217
212
|
setSQL(sql: string): void;
|
|
@@ -220,6 +215,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
220
215
|
afterCreate(): void;
|
|
221
216
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
222
217
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
218
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
223
219
|
type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
|
|
224
220
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
225
221
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -229,8 +225,9 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
229
225
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
230
226
|
}, {
|
|
231
227
|
readonly valid: string;
|
|
232
|
-
readonly
|
|
228
|
+
readonly json: {
|
|
233
229
|
id: string;
|
|
230
|
+
name: string;
|
|
234
231
|
type: import("../../../queries/types").DataSourceType;
|
|
235
232
|
key: string;
|
|
236
233
|
sql: string;
|
|
@@ -238,14 +235,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
238
235
|
} & {
|
|
239
236
|
readonly formattedSQL: any;
|
|
240
237
|
} & {
|
|
241
|
-
|
|
242
|
-
id: string;
|
|
243
|
-
type: import("../../../queries/types").DataSourceType;
|
|
244
|
-
key: string;
|
|
245
|
-
sql: string;
|
|
246
|
-
};
|
|
247
|
-
} & {
|
|
248
|
-
setID(id: string): void;
|
|
238
|
+
setName(name: string): void;
|
|
249
239
|
setKey(key: string): void;
|
|
250
240
|
setType(type: import("../../../queries/types").DataSourceType): void;
|
|
251
241
|
setSQL(sql: string): void;
|
|
@@ -389,6 +389,7 @@ export declare const tokens: {
|
|
|
389
389
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
390
390
|
readonly query: ({
|
|
391
391
|
id: string;
|
|
392
|
+
name: string;
|
|
392
393
|
type: import("../model/queries/types").DataSourceType;
|
|
393
394
|
key: string;
|
|
394
395
|
sql: string;
|
|
@@ -397,8 +398,9 @@ export declare const tokens: {
|
|
|
397
398
|
error: any;
|
|
398
399
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
399
400
|
readonly valid: string;
|
|
400
|
-
readonly
|
|
401
|
+
readonly json: {
|
|
401
402
|
id: string;
|
|
403
|
+
name: string;
|
|
402
404
|
type: import("../model/queries/types").DataSourceType;
|
|
403
405
|
key: string;
|
|
404
406
|
sql: string;
|
|
@@ -406,14 +408,7 @@ export declare const tokens: {
|
|
|
406
408
|
} & {
|
|
407
409
|
readonly formattedSQL: any;
|
|
408
410
|
} & {
|
|
409
|
-
|
|
410
|
-
id: string;
|
|
411
|
-
type: import("../model/queries/types").DataSourceType;
|
|
412
|
-
key: string;
|
|
413
|
-
sql: string;
|
|
414
|
-
};
|
|
415
|
-
} & {
|
|
416
|
-
setID(id: string): void;
|
|
411
|
+
setName(name: string): void;
|
|
417
412
|
setKey(key: string): void;
|
|
418
413
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
419
414
|
setSQL(sql: string): void;
|
|
@@ -422,6 +417,7 @@ export declare const tokens: {
|
|
|
422
417
|
afterCreate(): void;
|
|
423
418
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
424
419
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
420
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
425
421
|
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
426
422
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
427
423
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -431,8 +427,9 @@ export declare const tokens: {
|
|
|
431
427
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
432
428
|
}, {
|
|
433
429
|
readonly valid: string;
|
|
434
|
-
readonly
|
|
430
|
+
readonly json: {
|
|
435
431
|
id: string;
|
|
432
|
+
name: string;
|
|
436
433
|
type: import("../model/queries/types").DataSourceType;
|
|
437
434
|
key: string;
|
|
438
435
|
sql: string;
|
|
@@ -440,14 +437,7 @@ export declare const tokens: {
|
|
|
440
437
|
} & {
|
|
441
438
|
readonly formattedSQL: any;
|
|
442
439
|
} & {
|
|
443
|
-
|
|
444
|
-
id: string;
|
|
445
|
-
type: import("../model/queries/types").DataSourceType;
|
|
446
|
-
key: string;
|
|
447
|
-
sql: string;
|
|
448
|
-
};
|
|
449
|
-
} & {
|
|
450
|
-
setID(id: string): void;
|
|
440
|
+
setName(name: string): void;
|
|
451
441
|
setKey(key: string): void;
|
|
452
442
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
453
443
|
setSQL(sql: string): void;
|
|
@@ -1163,6 +1153,7 @@ export declare const tokens: {
|
|
|
1163
1153
|
}, {
|
|
1164
1154
|
readonly query: ({
|
|
1165
1155
|
id: string;
|
|
1156
|
+
name: string;
|
|
1166
1157
|
type: import("../model/queries/types").DataSourceType;
|
|
1167
1158
|
key: string;
|
|
1168
1159
|
sql: string;
|
|
@@ -1171,8 +1162,9 @@ export declare const tokens: {
|
|
|
1171
1162
|
error: any;
|
|
1172
1163
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1173
1164
|
readonly valid: string;
|
|
1174
|
-
readonly
|
|
1165
|
+
readonly json: {
|
|
1175
1166
|
id: string;
|
|
1167
|
+
name: string;
|
|
1176
1168
|
type: import("../model/queries/types").DataSourceType;
|
|
1177
1169
|
key: string;
|
|
1178
1170
|
sql: string;
|
|
@@ -1180,14 +1172,7 @@ export declare const tokens: {
|
|
|
1180
1172
|
} & {
|
|
1181
1173
|
readonly formattedSQL: any;
|
|
1182
1174
|
} & {
|
|
1183
|
-
|
|
1184
|
-
id: string;
|
|
1185
|
-
type: import("../model/queries/types").DataSourceType;
|
|
1186
|
-
key: string;
|
|
1187
|
-
sql: string;
|
|
1188
|
-
};
|
|
1189
|
-
} & {
|
|
1190
|
-
setID(id: string): void;
|
|
1175
|
+
setName(name: string): void;
|
|
1191
1176
|
setKey(key: string): void;
|
|
1192
1177
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
1193
1178
|
setSQL(sql: string): void;
|
|
@@ -1196,6 +1181,7 @@ export declare const tokens: {
|
|
|
1196
1181
|
afterCreate(): void;
|
|
1197
1182
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1198
1183
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
1184
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
1199
1185
|
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
1200
1186
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
1201
1187
|
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -1205,8 +1191,9 @@ export declare const tokens: {
|
|
|
1205
1191
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
1206
1192
|
}, {
|
|
1207
1193
|
readonly valid: string;
|
|
1208
|
-
readonly
|
|
1194
|
+
readonly json: {
|
|
1209
1195
|
id: string;
|
|
1196
|
+
name: string;
|
|
1210
1197
|
type: import("../model/queries/types").DataSourceType;
|
|
1211
1198
|
key: string;
|
|
1212
1199
|
sql: string;
|
|
@@ -1214,14 +1201,7 @@ export declare const tokens: {
|
|
|
1214
1201
|
} & {
|
|
1215
1202
|
readonly formattedSQL: any;
|
|
1216
1203
|
} & {
|
|
1217
|
-
|
|
1218
|
-
id: string;
|
|
1219
|
-
type: import("../model/queries/types").DataSourceType;
|
|
1220
|
-
key: string;
|
|
1221
|
-
sql: string;
|
|
1222
|
-
};
|
|
1223
|
-
} & {
|
|
1224
|
-
setID(id: string): void;
|
|
1204
|
+
setName(name: string): void;
|
|
1225
1205
|
setKey(key: string): void;
|
|
1226
1206
|
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
1227
1207
|
setSQL(sql: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TScatterSize_Dynamic } from './types';
|
|
3
|
+
interface IDynamicSizeFunctionEditor {
|
|
4
|
+
value: TScatterSize_Dynamic['func_content'];
|
|
5
|
+
onChange: (v: TScatterSize_Dynamic['func_content']) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const DynamicSizeFunctionEditor: ({ value, onChange }: IDynamicSizeFunctionEditor) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { TScatterSize } from './types';
|
|
4
|
+
export interface IDynamicScatterSizeField {
|
|
5
|
+
value: TScatterSize;
|
|
6
|
+
onChange: (v: TScatterSize) => void;
|
|
7
|
+
data: AnyObject[];
|
|
8
|
+
}
|
|
9
|
+
export declare const DynamicScatterSizeField: ({ value, onChange, data }: IDynamicScatterSizeField) => JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { TScatterSize } from './types';
|
|
4
|
+
interface IScatterSizeSelect {
|
|
5
|
+
label?: string;
|
|
6
|
+
value: TScatterSize;
|
|
7
|
+
onChange: (v: TScatterSize) => void;
|
|
8
|
+
data: AnyObject[];
|
|
9
|
+
}
|
|
10
|
+
export declare const ScatterSizeSelect: import("react").ForwardRefExoticComponent<IScatterSizeSelect & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TScatterSize } from './types';
|
|
3
|
+
interface IStaticScatterSizeField {
|
|
4
|
+
value: TScatterSize;
|
|
5
|
+
onChange: (v: TScatterSize) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const StaticScatterSizeField: ({ value, onChange }: IStaticScatterSizeField) => JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare type TScatterSize_Static = {
|
|
2
|
+
type: 'static';
|
|
3
|
+
size: number;
|
|
4
|
+
};
|
|
5
|
+
export declare type TScatterSize_Dynamic = {
|
|
6
|
+
type: 'dynamic';
|
|
7
|
+
func_content: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type TScatterSize = TScatterSize_Static | TScatterSize_Dynamic;
|
|
10
|
+
export declare const DEFAULT_SCATTER_SIZE: {
|
|
11
|
+
static: TScatterSize_Static;
|
|
12
|
+
dynamic: TScatterSize_Dynamic;
|
|
13
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control } from 'react-hook-form';
|
|
3
|
+
import { AnyObject } from '~/types';
|
|
3
4
|
import { ICartesianChartConf } from '../../type';
|
|
4
5
|
interface IScatterFields {
|
|
5
6
|
control: Control<ICartesianChartConf, $TSFixMe>;
|
|
6
7
|
index: number;
|
|
8
|
+
data: AnyObject[];
|
|
7
9
|
}
|
|
8
|
-
export declare function ScatterFields({ control, index }: IScatterFields): JSX.Element;
|
|
10
|
+
export declare function ScatterFields({ control, index, data }: IScatterFields): JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
|
+
import { TScatterSize } from './panel/scatter-size-select/types';
|
|
2
3
|
export interface ICartesianChartSeriesItem {
|
|
3
4
|
type: 'line' | 'bar' | 'scatter';
|
|
4
5
|
name: string;
|
|
5
6
|
display_name_on_line: boolean;
|
|
6
7
|
showSymbol: false;
|
|
7
|
-
symbolSize:
|
|
8
|
+
symbolSize: TScatterSize;
|
|
8
9
|
y_axis_data_key: string;
|
|
9
10
|
yAxisIndex: number;
|
|
10
11
|
label_position?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyObject } from '~/types/utils';
|
|
2
2
|
import { ITemplateVariable } from '~/utils/template';
|
|
3
3
|
import { FilterModelInstance } from '../model';
|
|
4
|
-
import {
|
|
4
|
+
import { QueryModelSnapshotIn } from '../model/queries';
|
|
5
5
|
import { SQLSnippetModelInstance } from '../model/sql-snippets';
|
|
6
6
|
export interface IVizConfig {
|
|
7
7
|
type: string;
|
|
@@ -35,7 +35,7 @@ export declare enum DashboardMode {
|
|
|
35
35
|
}
|
|
36
36
|
export interface IDashboardDefinition {
|
|
37
37
|
sqlSnippets: SQLSnippetModelInstance[];
|
|
38
|
-
queries:
|
|
38
|
+
queries: QueryModelSnapshotIn[];
|
|
39
39
|
mock_context: Record<string, $TSFixMe>;
|
|
40
40
|
}
|
|
41
41
|
export declare enum EViewComponentType {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtable/dashboard",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@types/chroma-js": "^2.1.4",
|
|
35
35
|
"file-saver": "2.0.5",
|
|
36
36
|
"popmotion": "^11.0.3",
|
|
37
|
+
"@monaco-editor/react": "4.4.6",
|
|
37
38
|
"stickybits": "3.7.11"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|