@adminforth/dashboard 1.3.0 → 1.4.1
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/README.md +103 -15
- package/custom/api/dashboardApi.ts +9 -8
- package/custom/model/dashboard.types.ts +63 -270
- package/custom/model/dashboardTopics.ts +5 -0
- package/custom/runtime/DashboardGroup.vue +2 -2
- package/custom/runtime/DashboardPage.vue +17 -7
- package/custom/runtime/DashboardRuntime.vue +20 -8
- package/custom/runtime/WidgetRenderer.vue +1 -2
- package/custom/runtime/WidgetShell.vue +3 -3
- package/custom/skills/adminforth-dashboard/SKILL.md +110 -3
- package/custom/widgets/{gauge-card/GaugeCardWidget.vue → GaugeCardWidget.vue} +63 -61
- package/custom/widgets/{kpi-card/KpiCardWidget.vue → KpiCardWidget.vue} +35 -33
- package/custom/widgets/{pivot-table/PivotTableWidget.vue → PivotTableWidget.vue} +71 -68
- package/custom/widgets/{table/TableWidget.vue → TableWidget.vue} +5 -5
- package/custom/widgets/chart/{bar/BarChart.vue → BarChart.vue} +2 -2
- package/custom/widgets/chart/ChartWidget.vue +24 -18
- package/{dist/custom/widgets/chart/funnel → custom/widgets/chart}/FunnelChart.vue +80 -78
- package/{dist/custom/widgets/chart/line → custom/widgets/chart}/LineChart.vue +2 -2
- package/custom/widgets/chart/{pie/PieChart.vue → PieChart.vue} +2 -2
- package/{dist/custom/widgets/chart/stacked-bar → custom/widgets/chart}/StackedBarChart.vue +97 -95
- package/custom/widgets/chart/chart.types.ts +0 -28
- package/dist/custom/api/dashboardApi.d.ts +4 -7
- package/dist/custom/api/dashboardApi.js +5 -0
- package/dist/custom/api/dashboardApi.ts +9 -8
- package/dist/custom/model/dashboard.types.d.ts +40 -31
- package/dist/custom/model/dashboard.types.js +13 -152
- package/dist/custom/model/dashboard.types.ts +63 -270
- package/dist/custom/model/dashboardTopics.d.ts +2 -0
- package/dist/custom/model/dashboardTopics.js +8 -0
- package/dist/custom/model/dashboardTopics.ts +5 -0
- package/dist/custom/queries/useDashboardConfig.d.ts +116 -96
- package/dist/custom/queries/useWidgetData.d.ts +116 -96
- package/dist/custom/runtime/DashboardGroup.vue +2 -2
- package/dist/custom/runtime/DashboardPage.vue +17 -7
- package/dist/custom/runtime/DashboardRuntime.vue +20 -8
- package/dist/custom/runtime/WidgetRenderer.vue +1 -2
- package/dist/custom/runtime/WidgetShell.vue +3 -3
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +110 -3
- package/dist/custom/widgets/{gauge-card/GaugeCardWidget.vue → GaugeCardWidget.vue} +63 -61
- package/dist/custom/widgets/{kpi-card/KpiCardWidget.vue → KpiCardWidget.vue} +35 -33
- package/dist/custom/widgets/{pivot-table/PivotTableWidget.vue → PivotTableWidget.vue} +71 -68
- package/dist/custom/widgets/{table/TableWidget.vue → TableWidget.vue} +5 -5
- package/dist/custom/widgets/chart/{bar/BarChart.vue → BarChart.vue} +2 -2
- package/dist/custom/widgets/chart/ChartWidget.vue +24 -18
- package/{custom/widgets/chart/funnel → dist/custom/widgets/chart}/FunnelChart.vue +80 -78
- package/{custom/widgets/chart/line → dist/custom/widgets/chart}/LineChart.vue +2 -2
- package/dist/custom/widgets/chart/{pie/PieChart.vue → PieChart.vue} +2 -2
- package/{custom/widgets/chart/stacked-bar → dist/custom/widgets/chart}/StackedBarChart.vue +97 -95
- package/dist/custom/widgets/chart/chart.types.d.ts +0 -2
- package/dist/custom/widgets/chart/chart.types.js +0 -23
- package/dist/custom/widgets/chart/chart.types.ts +0 -28
- package/dist/endpoint/dashboard.d.ts +6 -2
- package/dist/endpoint/dashboard.js +29 -5
- package/dist/endpoint/groups.d.ts +2 -21
- package/dist/endpoint/groups.js +18 -16
- package/dist/endpoint/widgets.d.ts +2 -4
- package/dist/endpoint/widgets.js +28 -74
- package/dist/index.js +1 -3
- package/dist/schema/api.d.ts +2172 -500
- package/dist/schema/api.js +21 -13
- package/dist/schema/widget.d.ts +1076 -263
- package/dist/schema/widget.js +108 -49
- package/dist/services/dashboardConfigService.d.ts +0 -10
- package/dist/services/dashboardConfigService.js +6 -21
- package/dist/services/widgetDataService.d.ts +2 -1
- package/dist/services/widgetDataService.js +266 -206
- package/endpoint/dashboard.ts +47 -7
- package/endpoint/groups.ts +25 -42
- package/endpoint/widgets.ts +41 -96
- package/index.ts +0 -3
- package/package.json +3 -3
- package/schema/api.ts +23 -13
- package/schema/widget.ts +119 -55
- package/services/dashboardConfigService.ts +6 -25
- package/services/widgetDataService.ts +350 -237
- package/custom/widgets/chart/histogram/HistogramChart.vue +0 -21
- package/dist/custom/widgets/chart/histogram/HistogramChart.vue +0 -21
- package/dist/services/widgetConfigValidator.d.ts +0 -8
- package/dist/services/widgetConfigValidator.js +0 -27
- package/services/widgetConfigValidator.ts +0 -61
|
@@ -16,22 +16,24 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
16
16
|
id: string;
|
|
17
17
|
group_id: string;
|
|
18
18
|
label?: string | undefined;
|
|
19
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
19
20
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
20
21
|
width?: number | undefined;
|
|
21
22
|
height?: number | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
min_width?: number | undefined;
|
|
24
|
+
max_width?: number | null | undefined;
|
|
24
25
|
order: number;
|
|
25
26
|
target: "empty";
|
|
26
27
|
} | {
|
|
27
28
|
id: string;
|
|
28
29
|
group_id: string;
|
|
29
30
|
label?: string | undefined;
|
|
31
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
30
32
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
31
33
|
width?: number | undefined;
|
|
32
34
|
height?: number | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
min_width?: number | undefined;
|
|
36
|
+
max_width?: number | null | undefined;
|
|
35
37
|
order: number;
|
|
36
38
|
target: "table";
|
|
37
39
|
table?: {
|
|
@@ -41,7 +43,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
41
43
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
42
44
|
})[] | undefined;
|
|
43
45
|
pagination?: boolean | undefined;
|
|
44
|
-
|
|
46
|
+
page_size?: number | undefined;
|
|
45
47
|
} | undefined;
|
|
46
48
|
query: {
|
|
47
49
|
resource: string;
|
|
@@ -59,27 +61,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
59
61
|
as: string;
|
|
60
62
|
})[] | undefined;
|
|
61
63
|
filters?: any;
|
|
62
|
-
|
|
64
|
+
group_by?: (string | {
|
|
63
65
|
field: string;
|
|
64
66
|
as?: string | undefined;
|
|
65
67
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
66
68
|
timezone?: string | undefined;
|
|
67
69
|
})[] | undefined;
|
|
68
|
-
|
|
70
|
+
order_by?: {
|
|
69
71
|
field: string;
|
|
70
72
|
direction?: "asc" | "desc" | undefined;
|
|
71
73
|
}[] | undefined;
|
|
72
74
|
limit?: number | undefined;
|
|
73
75
|
offset?: number | undefined;
|
|
74
|
-
|
|
76
|
+
time_series?: {
|
|
75
77
|
field: string;
|
|
76
78
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
77
79
|
timezone?: string | undefined;
|
|
78
80
|
} | undefined;
|
|
79
81
|
period?: {
|
|
80
82
|
field: string;
|
|
81
|
-
gte?:
|
|
82
|
-
lt?:
|
|
83
|
+
gte?: any;
|
|
84
|
+
lt?: any;
|
|
83
85
|
} | undefined;
|
|
84
86
|
bucket?: {
|
|
85
87
|
field: string;
|
|
@@ -93,17 +95,18 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
93
95
|
calc: string;
|
|
94
96
|
as: string;
|
|
95
97
|
}[] | undefined;
|
|
96
|
-
formatting?: Record<string,
|
|
98
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
97
99
|
};
|
|
98
100
|
} | {
|
|
99
101
|
id: string;
|
|
100
102
|
group_id: string;
|
|
101
103
|
label?: string | undefined;
|
|
104
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
102
105
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
103
106
|
width?: number | undefined;
|
|
104
107
|
height?: number | undefined;
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
min_width?: number | undefined;
|
|
109
|
+
max_width?: number | null | undefined;
|
|
107
110
|
order: number;
|
|
108
111
|
target: "chart";
|
|
109
112
|
chart: {
|
|
@@ -162,27 +165,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
162
165
|
as: string;
|
|
163
166
|
})[] | undefined;
|
|
164
167
|
filters?: any;
|
|
165
|
-
|
|
168
|
+
group_by?: (string | {
|
|
166
169
|
field: string;
|
|
167
170
|
as?: string | undefined;
|
|
168
171
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
169
172
|
timezone?: string | undefined;
|
|
170
173
|
})[] | undefined;
|
|
171
|
-
|
|
174
|
+
order_by?: {
|
|
172
175
|
field: string;
|
|
173
176
|
direction?: "asc" | "desc" | undefined;
|
|
174
177
|
}[] | undefined;
|
|
175
178
|
limit?: number | undefined;
|
|
176
179
|
offset?: number | undefined;
|
|
177
|
-
|
|
180
|
+
time_series?: {
|
|
178
181
|
field: string;
|
|
179
182
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
180
183
|
timezone?: string | undefined;
|
|
181
184
|
} | undefined;
|
|
182
185
|
period?: {
|
|
183
186
|
field: string;
|
|
184
|
-
gte?:
|
|
185
|
-
lt?:
|
|
187
|
+
gte?: any;
|
|
188
|
+
lt?: any;
|
|
186
189
|
} | undefined;
|
|
187
190
|
bucket?: {
|
|
188
191
|
field: string;
|
|
@@ -196,7 +199,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
196
199
|
calc: string;
|
|
197
200
|
as: string;
|
|
198
201
|
}[] | undefined;
|
|
199
|
-
formatting?: Record<string,
|
|
202
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
200
203
|
} | {
|
|
201
204
|
steps: {
|
|
202
205
|
name: string;
|
|
@@ -209,16 +212,21 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
209
212
|
};
|
|
210
213
|
filters?: any;
|
|
211
214
|
}[];
|
|
215
|
+
calcs?: {
|
|
216
|
+
calc: string;
|
|
217
|
+
as: string;
|
|
218
|
+
}[] | undefined;
|
|
212
219
|
};
|
|
213
220
|
} | {
|
|
214
221
|
id: string;
|
|
215
222
|
group_id: string;
|
|
216
223
|
label?: string | undefined;
|
|
224
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
217
225
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
218
226
|
width?: number | undefined;
|
|
219
227
|
height?: number | undefined;
|
|
220
|
-
|
|
221
|
-
|
|
228
|
+
min_width?: number | undefined;
|
|
229
|
+
max_width?: number | null | undefined;
|
|
222
230
|
order: number;
|
|
223
231
|
target: "kpi_card";
|
|
224
232
|
card: {
|
|
@@ -233,8 +241,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
233
241
|
text?: string | undefined;
|
|
234
242
|
field?: string | undefined;
|
|
235
243
|
} | undefined;
|
|
236
|
-
comparison?:
|
|
237
|
-
sparkline?:
|
|
244
|
+
comparison?: any;
|
|
245
|
+
sparkline?: any;
|
|
238
246
|
};
|
|
239
247
|
query: {
|
|
240
248
|
resource: string;
|
|
@@ -252,27 +260,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
252
260
|
as: string;
|
|
253
261
|
})[] | undefined;
|
|
254
262
|
filters?: any;
|
|
255
|
-
|
|
263
|
+
group_by?: (string | {
|
|
256
264
|
field: string;
|
|
257
265
|
as?: string | undefined;
|
|
258
266
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
259
267
|
timezone?: string | undefined;
|
|
260
268
|
})[] | undefined;
|
|
261
|
-
|
|
269
|
+
order_by?: {
|
|
262
270
|
field: string;
|
|
263
271
|
direction?: "asc" | "desc" | undefined;
|
|
264
272
|
}[] | undefined;
|
|
265
273
|
limit?: number | undefined;
|
|
266
274
|
offset?: number | undefined;
|
|
267
|
-
|
|
275
|
+
time_series?: {
|
|
268
276
|
field: string;
|
|
269
277
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
270
278
|
timezone?: string | undefined;
|
|
271
279
|
} | undefined;
|
|
272
280
|
period?: {
|
|
273
281
|
field: string;
|
|
274
|
-
gte?:
|
|
275
|
-
lt?:
|
|
282
|
+
gte?: any;
|
|
283
|
+
lt?: any;
|
|
276
284
|
} | undefined;
|
|
277
285
|
bucket?: {
|
|
278
286
|
field: string;
|
|
@@ -286,17 +294,18 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
286
294
|
calc: string;
|
|
287
295
|
as: string;
|
|
288
296
|
}[] | undefined;
|
|
289
|
-
formatting?: Record<string,
|
|
297
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
290
298
|
};
|
|
291
299
|
} | {
|
|
292
300
|
id: string;
|
|
293
301
|
group_id: string;
|
|
294
302
|
label?: string | undefined;
|
|
303
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
295
304
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
296
305
|
width?: number | undefined;
|
|
297
306
|
height?: number | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
307
|
+
min_width?: number | undefined;
|
|
308
|
+
max_width?: number | null | undefined;
|
|
300
309
|
order: number;
|
|
301
310
|
target: "gauge_card";
|
|
302
311
|
card: {
|
|
@@ -313,9 +322,9 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
313
322
|
label?: string | undefined;
|
|
314
323
|
} | undefined;
|
|
315
324
|
progress?: {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
325
|
+
value_field: string;
|
|
326
|
+
target_value?: number | undefined;
|
|
327
|
+
target_field?: string | undefined;
|
|
319
328
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
320
329
|
} | undefined;
|
|
321
330
|
color?: string | undefined;
|
|
@@ -336,27 +345,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
336
345
|
as: string;
|
|
337
346
|
})[] | undefined;
|
|
338
347
|
filters?: any;
|
|
339
|
-
|
|
348
|
+
group_by?: (string | {
|
|
340
349
|
field: string;
|
|
341
350
|
as?: string | undefined;
|
|
342
351
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
343
352
|
timezone?: string | undefined;
|
|
344
353
|
})[] | undefined;
|
|
345
|
-
|
|
354
|
+
order_by?: {
|
|
346
355
|
field: string;
|
|
347
356
|
direction?: "asc" | "desc" | undefined;
|
|
348
357
|
}[] | undefined;
|
|
349
358
|
limit?: number | undefined;
|
|
350
359
|
offset?: number | undefined;
|
|
351
|
-
|
|
360
|
+
time_series?: {
|
|
352
361
|
field: string;
|
|
353
362
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
354
363
|
timezone?: string | undefined;
|
|
355
364
|
} | undefined;
|
|
356
365
|
period?: {
|
|
357
366
|
field: string;
|
|
358
|
-
gte?:
|
|
359
|
-
lt?:
|
|
367
|
+
gte?: any;
|
|
368
|
+
lt?: any;
|
|
360
369
|
} | undefined;
|
|
361
370
|
bucket?: {
|
|
362
371
|
field: string;
|
|
@@ -370,17 +379,18 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
370
379
|
calc: string;
|
|
371
380
|
as: string;
|
|
372
381
|
}[] | undefined;
|
|
373
|
-
formatting?: Record<string,
|
|
382
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
374
383
|
};
|
|
375
384
|
} | {
|
|
376
385
|
id: string;
|
|
377
386
|
group_id: string;
|
|
378
387
|
label?: string | undefined;
|
|
388
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
379
389
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
380
390
|
width?: number | undefined;
|
|
381
391
|
height?: number | undefined;
|
|
382
|
-
|
|
383
|
-
|
|
392
|
+
min_width?: number | undefined;
|
|
393
|
+
max_width?: number | null | undefined;
|
|
384
394
|
order: number;
|
|
385
395
|
target: "pivot_table";
|
|
386
396
|
pivot: {
|
|
@@ -417,27 +427,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
417
427
|
as: string;
|
|
418
428
|
})[] | undefined;
|
|
419
429
|
filters?: any;
|
|
420
|
-
|
|
430
|
+
group_by?: (string | {
|
|
421
431
|
field: string;
|
|
422
432
|
as?: string | undefined;
|
|
423
433
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
424
434
|
timezone?: string | undefined;
|
|
425
435
|
})[] | undefined;
|
|
426
|
-
|
|
436
|
+
order_by?: {
|
|
427
437
|
field: string;
|
|
428
438
|
direction?: "asc" | "desc" | undefined;
|
|
429
439
|
}[] | undefined;
|
|
430
440
|
limit?: number | undefined;
|
|
431
441
|
offset?: number | undefined;
|
|
432
|
-
|
|
442
|
+
time_series?: {
|
|
433
443
|
field: string;
|
|
434
444
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
435
445
|
timezone?: string | undefined;
|
|
436
446
|
} | undefined;
|
|
437
447
|
period?: {
|
|
438
448
|
field: string;
|
|
439
|
-
gte?:
|
|
440
|
-
lt?:
|
|
449
|
+
gte?: any;
|
|
450
|
+
lt?: any;
|
|
441
451
|
} | undefined;
|
|
442
452
|
bucket?: {
|
|
443
453
|
field: string;
|
|
@@ -451,7 +461,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
451
461
|
calc: string;
|
|
452
462
|
as: string;
|
|
453
463
|
}[] | undefined;
|
|
454
|
-
formatting?: Record<string,
|
|
464
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
455
465
|
};
|
|
456
466
|
})[];
|
|
457
467
|
};
|
|
@@ -471,22 +481,24 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
471
481
|
id: string;
|
|
472
482
|
group_id: string;
|
|
473
483
|
label?: string | undefined;
|
|
484
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
474
485
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
475
486
|
width?: number | undefined;
|
|
476
487
|
height?: number | undefined;
|
|
477
|
-
|
|
478
|
-
|
|
488
|
+
min_width?: number | undefined;
|
|
489
|
+
max_width?: number | null | undefined;
|
|
479
490
|
order: number;
|
|
480
491
|
target: "empty";
|
|
481
492
|
} | {
|
|
482
493
|
id: string;
|
|
483
494
|
group_id: string;
|
|
484
495
|
label?: string | undefined;
|
|
496
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
485
497
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
486
498
|
width?: number | undefined;
|
|
487
499
|
height?: number | undefined;
|
|
488
|
-
|
|
489
|
-
|
|
500
|
+
min_width?: number | undefined;
|
|
501
|
+
max_width?: number | null | undefined;
|
|
490
502
|
order: number;
|
|
491
503
|
target: "table";
|
|
492
504
|
table?: {
|
|
@@ -496,7 +508,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
496
508
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
497
509
|
})[] | undefined;
|
|
498
510
|
pagination?: boolean | undefined;
|
|
499
|
-
|
|
511
|
+
page_size?: number | undefined;
|
|
500
512
|
} | undefined;
|
|
501
513
|
query: {
|
|
502
514
|
resource: string;
|
|
@@ -514,27 +526,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
514
526
|
as: string;
|
|
515
527
|
})[] | undefined;
|
|
516
528
|
filters?: any;
|
|
517
|
-
|
|
529
|
+
group_by?: (string | {
|
|
518
530
|
field: string;
|
|
519
531
|
as?: string | undefined;
|
|
520
532
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
521
533
|
timezone?: string | undefined;
|
|
522
534
|
})[] | undefined;
|
|
523
|
-
|
|
535
|
+
order_by?: {
|
|
524
536
|
field: string;
|
|
525
537
|
direction?: "asc" | "desc" | undefined;
|
|
526
538
|
}[] | undefined;
|
|
527
539
|
limit?: number | undefined;
|
|
528
540
|
offset?: number | undefined;
|
|
529
|
-
|
|
541
|
+
time_series?: {
|
|
530
542
|
field: string;
|
|
531
543
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
532
544
|
timezone?: string | undefined;
|
|
533
545
|
} | undefined;
|
|
534
546
|
period?: {
|
|
535
547
|
field: string;
|
|
536
|
-
gte?:
|
|
537
|
-
lt?:
|
|
548
|
+
gte?: any;
|
|
549
|
+
lt?: any;
|
|
538
550
|
} | undefined;
|
|
539
551
|
bucket?: {
|
|
540
552
|
field: string;
|
|
@@ -548,17 +560,18 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
548
560
|
calc: string;
|
|
549
561
|
as: string;
|
|
550
562
|
}[] | undefined;
|
|
551
|
-
formatting?: Record<string,
|
|
563
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
552
564
|
};
|
|
553
565
|
} | {
|
|
554
566
|
id: string;
|
|
555
567
|
group_id: string;
|
|
556
568
|
label?: string | undefined;
|
|
569
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
557
570
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
558
571
|
width?: number | undefined;
|
|
559
572
|
height?: number | undefined;
|
|
560
|
-
|
|
561
|
-
|
|
573
|
+
min_width?: number | undefined;
|
|
574
|
+
max_width?: number | null | undefined;
|
|
562
575
|
order: number;
|
|
563
576
|
target: "chart";
|
|
564
577
|
chart: {
|
|
@@ -617,27 +630,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
617
630
|
as: string;
|
|
618
631
|
})[] | undefined;
|
|
619
632
|
filters?: any;
|
|
620
|
-
|
|
633
|
+
group_by?: (string | {
|
|
621
634
|
field: string;
|
|
622
635
|
as?: string | undefined;
|
|
623
636
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
624
637
|
timezone?: string | undefined;
|
|
625
638
|
})[] | undefined;
|
|
626
|
-
|
|
639
|
+
order_by?: {
|
|
627
640
|
field: string;
|
|
628
641
|
direction?: "asc" | "desc" | undefined;
|
|
629
642
|
}[] | undefined;
|
|
630
643
|
limit?: number | undefined;
|
|
631
644
|
offset?: number | undefined;
|
|
632
|
-
|
|
645
|
+
time_series?: {
|
|
633
646
|
field: string;
|
|
634
647
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
635
648
|
timezone?: string | undefined;
|
|
636
649
|
} | undefined;
|
|
637
650
|
period?: {
|
|
638
651
|
field: string;
|
|
639
|
-
gte?:
|
|
640
|
-
lt?:
|
|
652
|
+
gte?: any;
|
|
653
|
+
lt?: any;
|
|
641
654
|
} | undefined;
|
|
642
655
|
bucket?: {
|
|
643
656
|
field: string;
|
|
@@ -651,7 +664,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
651
664
|
calc: string;
|
|
652
665
|
as: string;
|
|
653
666
|
}[] | undefined;
|
|
654
|
-
formatting?: Record<string,
|
|
667
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
655
668
|
} | {
|
|
656
669
|
steps: {
|
|
657
670
|
name: string;
|
|
@@ -664,16 +677,21 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
664
677
|
};
|
|
665
678
|
filters?: any;
|
|
666
679
|
}[];
|
|
680
|
+
calcs?: {
|
|
681
|
+
calc: string;
|
|
682
|
+
as: string;
|
|
683
|
+
}[] | undefined;
|
|
667
684
|
};
|
|
668
685
|
} | {
|
|
669
686
|
id: string;
|
|
670
687
|
group_id: string;
|
|
671
688
|
label?: string | undefined;
|
|
689
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
672
690
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
673
691
|
width?: number | undefined;
|
|
674
692
|
height?: number | undefined;
|
|
675
|
-
|
|
676
|
-
|
|
693
|
+
min_width?: number | undefined;
|
|
694
|
+
max_width?: number | null | undefined;
|
|
677
695
|
order: number;
|
|
678
696
|
target: "kpi_card";
|
|
679
697
|
card: {
|
|
@@ -688,8 +706,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
688
706
|
text?: string | undefined;
|
|
689
707
|
field?: string | undefined;
|
|
690
708
|
} | undefined;
|
|
691
|
-
comparison?:
|
|
692
|
-
sparkline?:
|
|
709
|
+
comparison?: any;
|
|
710
|
+
sparkline?: any;
|
|
693
711
|
};
|
|
694
712
|
query: {
|
|
695
713
|
resource: string;
|
|
@@ -707,27 +725,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
707
725
|
as: string;
|
|
708
726
|
})[] | undefined;
|
|
709
727
|
filters?: any;
|
|
710
|
-
|
|
728
|
+
group_by?: (string | {
|
|
711
729
|
field: string;
|
|
712
730
|
as?: string | undefined;
|
|
713
731
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
714
732
|
timezone?: string | undefined;
|
|
715
733
|
})[] | undefined;
|
|
716
|
-
|
|
734
|
+
order_by?: {
|
|
717
735
|
field: string;
|
|
718
736
|
direction?: "asc" | "desc" | undefined;
|
|
719
737
|
}[] | undefined;
|
|
720
738
|
limit?: number | undefined;
|
|
721
739
|
offset?: number | undefined;
|
|
722
|
-
|
|
740
|
+
time_series?: {
|
|
723
741
|
field: string;
|
|
724
742
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
725
743
|
timezone?: string | undefined;
|
|
726
744
|
} | undefined;
|
|
727
745
|
period?: {
|
|
728
746
|
field: string;
|
|
729
|
-
gte?:
|
|
730
|
-
lt?:
|
|
747
|
+
gte?: any;
|
|
748
|
+
lt?: any;
|
|
731
749
|
} | undefined;
|
|
732
750
|
bucket?: {
|
|
733
751
|
field: string;
|
|
@@ -741,17 +759,18 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
741
759
|
calc: string;
|
|
742
760
|
as: string;
|
|
743
761
|
}[] | undefined;
|
|
744
|
-
formatting?: Record<string,
|
|
762
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
745
763
|
};
|
|
746
764
|
} | {
|
|
747
765
|
id: string;
|
|
748
766
|
group_id: string;
|
|
749
767
|
label?: string | undefined;
|
|
768
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
750
769
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
751
770
|
width?: number | undefined;
|
|
752
771
|
height?: number | undefined;
|
|
753
|
-
|
|
754
|
-
|
|
772
|
+
min_width?: number | undefined;
|
|
773
|
+
max_width?: number | null | undefined;
|
|
755
774
|
order: number;
|
|
756
775
|
target: "gauge_card";
|
|
757
776
|
card: {
|
|
@@ -768,9 +787,9 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
768
787
|
label?: string | undefined;
|
|
769
788
|
} | undefined;
|
|
770
789
|
progress?: {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
790
|
+
value_field: string;
|
|
791
|
+
target_value?: number | undefined;
|
|
792
|
+
target_field?: string | undefined;
|
|
774
793
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
775
794
|
} | undefined;
|
|
776
795
|
color?: string | undefined;
|
|
@@ -791,27 +810,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
791
810
|
as: string;
|
|
792
811
|
})[] | undefined;
|
|
793
812
|
filters?: any;
|
|
794
|
-
|
|
813
|
+
group_by?: (string | {
|
|
795
814
|
field: string;
|
|
796
815
|
as?: string | undefined;
|
|
797
816
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
798
817
|
timezone?: string | undefined;
|
|
799
818
|
})[] | undefined;
|
|
800
|
-
|
|
819
|
+
order_by?: {
|
|
801
820
|
field: string;
|
|
802
821
|
direction?: "asc" | "desc" | undefined;
|
|
803
822
|
}[] | undefined;
|
|
804
823
|
limit?: number | undefined;
|
|
805
824
|
offset?: number | undefined;
|
|
806
|
-
|
|
825
|
+
time_series?: {
|
|
807
826
|
field: string;
|
|
808
827
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
809
828
|
timezone?: string | undefined;
|
|
810
829
|
} | undefined;
|
|
811
830
|
period?: {
|
|
812
831
|
field: string;
|
|
813
|
-
gte?:
|
|
814
|
-
lt?:
|
|
832
|
+
gte?: any;
|
|
833
|
+
lt?: any;
|
|
815
834
|
} | undefined;
|
|
816
835
|
bucket?: {
|
|
817
836
|
field: string;
|
|
@@ -825,17 +844,18 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
825
844
|
calc: string;
|
|
826
845
|
as: string;
|
|
827
846
|
}[] | undefined;
|
|
828
|
-
formatting?: Record<string,
|
|
847
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
829
848
|
};
|
|
830
849
|
} | {
|
|
831
850
|
id: string;
|
|
832
851
|
group_id: string;
|
|
833
852
|
label?: string | undefined;
|
|
853
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
834
854
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
835
855
|
width?: number | undefined;
|
|
836
856
|
height?: number | undefined;
|
|
837
|
-
|
|
838
|
-
|
|
857
|
+
min_width?: number | undefined;
|
|
858
|
+
max_width?: number | null | undefined;
|
|
839
859
|
order: number;
|
|
840
860
|
target: "pivot_table";
|
|
841
861
|
pivot: {
|
|
@@ -872,27 +892,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
872
892
|
as: string;
|
|
873
893
|
})[] | undefined;
|
|
874
894
|
filters?: any;
|
|
875
|
-
|
|
895
|
+
group_by?: (string | {
|
|
876
896
|
field: string;
|
|
877
897
|
as?: string | undefined;
|
|
878
898
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
879
899
|
timezone?: string | undefined;
|
|
880
900
|
})[] | undefined;
|
|
881
|
-
|
|
901
|
+
order_by?: {
|
|
882
902
|
field: string;
|
|
883
903
|
direction?: "asc" | "desc" | undefined;
|
|
884
904
|
}[] | undefined;
|
|
885
905
|
limit?: number | undefined;
|
|
886
906
|
offset?: number | undefined;
|
|
887
|
-
|
|
907
|
+
time_series?: {
|
|
888
908
|
field: string;
|
|
889
909
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
890
910
|
timezone?: string | undefined;
|
|
891
911
|
} | undefined;
|
|
892
912
|
period?: {
|
|
893
913
|
field: string;
|
|
894
|
-
gte?:
|
|
895
|
-
lt?:
|
|
914
|
+
gte?: any;
|
|
915
|
+
lt?: any;
|
|
896
916
|
} | undefined;
|
|
897
917
|
bucket?: {
|
|
898
918
|
field: string;
|
|
@@ -906,7 +926,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
906
926
|
calc: string;
|
|
907
927
|
as: string;
|
|
908
928
|
}[] | undefined;
|
|
909
|
-
formatting?: Record<string,
|
|
929
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
910
930
|
};
|
|
911
931
|
})[];
|
|
912
932
|
};
|