@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
|
@@ -6,22 +6,24 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
6
6
|
id: string;
|
|
7
7
|
group_id: string;
|
|
8
8
|
label?: string | undefined;
|
|
9
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
9
10
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
10
11
|
width?: number | undefined;
|
|
11
12
|
height?: number | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
min_width?: number | undefined;
|
|
14
|
+
max_width?: number | null | undefined;
|
|
14
15
|
order: number;
|
|
15
16
|
target: "empty";
|
|
16
17
|
} | {
|
|
17
18
|
id: string;
|
|
18
19
|
group_id: string;
|
|
19
20
|
label?: string | undefined;
|
|
21
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
20
22
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
21
23
|
width?: number | undefined;
|
|
22
24
|
height?: number | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
min_width?: number | undefined;
|
|
26
|
+
max_width?: number | null | undefined;
|
|
25
27
|
order: number;
|
|
26
28
|
target: "table";
|
|
27
29
|
table?: {
|
|
@@ -31,7 +33,7 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
31
33
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
32
34
|
})[] | undefined;
|
|
33
35
|
pagination?: boolean | undefined;
|
|
34
|
-
|
|
36
|
+
page_size?: number | undefined;
|
|
35
37
|
} | undefined;
|
|
36
38
|
query: {
|
|
37
39
|
resource: string;
|
|
@@ -49,27 +51,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
49
51
|
as: string;
|
|
50
52
|
})[] | undefined;
|
|
51
53
|
filters?: any;
|
|
52
|
-
|
|
54
|
+
group_by?: (string | {
|
|
53
55
|
field: string;
|
|
54
56
|
as?: string | undefined;
|
|
55
57
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
56
58
|
timezone?: string | undefined;
|
|
57
59
|
})[] | undefined;
|
|
58
|
-
|
|
60
|
+
order_by?: {
|
|
59
61
|
field: string;
|
|
60
62
|
direction?: "asc" | "desc" | undefined;
|
|
61
63
|
}[] | undefined;
|
|
62
64
|
limit?: number | undefined;
|
|
63
65
|
offset?: number | undefined;
|
|
64
|
-
|
|
66
|
+
time_series?: {
|
|
65
67
|
field: string;
|
|
66
68
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
67
69
|
timezone?: string | undefined;
|
|
68
70
|
} | undefined;
|
|
69
71
|
period?: {
|
|
70
72
|
field: string;
|
|
71
|
-
gte?:
|
|
72
|
-
lt?:
|
|
73
|
+
gte?: any;
|
|
74
|
+
lt?: any;
|
|
73
75
|
} | undefined;
|
|
74
76
|
bucket?: {
|
|
75
77
|
field: string;
|
|
@@ -83,17 +85,18 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
83
85
|
calc: string;
|
|
84
86
|
as: string;
|
|
85
87
|
}[] | undefined;
|
|
86
|
-
formatting?: Record<string,
|
|
88
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
87
89
|
};
|
|
88
90
|
} | {
|
|
89
91
|
id: string;
|
|
90
92
|
group_id: string;
|
|
91
93
|
label?: string | undefined;
|
|
94
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
92
95
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
93
96
|
width?: number | undefined;
|
|
94
97
|
height?: number | undefined;
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
min_width?: number | undefined;
|
|
99
|
+
max_width?: number | null | undefined;
|
|
97
100
|
order: number;
|
|
98
101
|
target: "chart";
|
|
99
102
|
chart: {
|
|
@@ -152,27 +155,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
152
155
|
as: string;
|
|
153
156
|
})[] | undefined;
|
|
154
157
|
filters?: any;
|
|
155
|
-
|
|
158
|
+
group_by?: (string | {
|
|
156
159
|
field: string;
|
|
157
160
|
as?: string | undefined;
|
|
158
161
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
159
162
|
timezone?: string | undefined;
|
|
160
163
|
})[] | undefined;
|
|
161
|
-
|
|
164
|
+
order_by?: {
|
|
162
165
|
field: string;
|
|
163
166
|
direction?: "asc" | "desc" | undefined;
|
|
164
167
|
}[] | undefined;
|
|
165
168
|
limit?: number | undefined;
|
|
166
169
|
offset?: number | undefined;
|
|
167
|
-
|
|
170
|
+
time_series?: {
|
|
168
171
|
field: string;
|
|
169
172
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
170
173
|
timezone?: string | undefined;
|
|
171
174
|
} | undefined;
|
|
172
175
|
period?: {
|
|
173
176
|
field: string;
|
|
174
|
-
gte?:
|
|
175
|
-
lt?:
|
|
177
|
+
gte?: any;
|
|
178
|
+
lt?: any;
|
|
176
179
|
} | undefined;
|
|
177
180
|
bucket?: {
|
|
178
181
|
field: string;
|
|
@@ -186,7 +189,7 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
186
189
|
calc: string;
|
|
187
190
|
as: string;
|
|
188
191
|
}[] | undefined;
|
|
189
|
-
formatting?: Record<string,
|
|
192
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
190
193
|
} | {
|
|
191
194
|
steps: {
|
|
192
195
|
name: string;
|
|
@@ -199,16 +202,21 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
199
202
|
};
|
|
200
203
|
filters?: any;
|
|
201
204
|
}[];
|
|
205
|
+
calcs?: {
|
|
206
|
+
calc: string;
|
|
207
|
+
as: string;
|
|
208
|
+
}[] | undefined;
|
|
202
209
|
};
|
|
203
210
|
} | {
|
|
204
211
|
id: string;
|
|
205
212
|
group_id: string;
|
|
206
213
|
label?: string | undefined;
|
|
214
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
207
215
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
208
216
|
width?: number | undefined;
|
|
209
217
|
height?: number | undefined;
|
|
210
|
-
|
|
211
|
-
|
|
218
|
+
min_width?: number | undefined;
|
|
219
|
+
max_width?: number | null | undefined;
|
|
212
220
|
order: number;
|
|
213
221
|
target: "kpi_card";
|
|
214
222
|
card: {
|
|
@@ -223,8 +231,8 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
223
231
|
text?: string | undefined;
|
|
224
232
|
field?: string | undefined;
|
|
225
233
|
} | undefined;
|
|
226
|
-
comparison?:
|
|
227
|
-
sparkline?:
|
|
234
|
+
comparison?: any;
|
|
235
|
+
sparkline?: any;
|
|
228
236
|
};
|
|
229
237
|
query: {
|
|
230
238
|
resource: string;
|
|
@@ -242,27 +250,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
242
250
|
as: string;
|
|
243
251
|
})[] | undefined;
|
|
244
252
|
filters?: any;
|
|
245
|
-
|
|
253
|
+
group_by?: (string | {
|
|
246
254
|
field: string;
|
|
247
255
|
as?: string | undefined;
|
|
248
256
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
249
257
|
timezone?: string | undefined;
|
|
250
258
|
})[] | undefined;
|
|
251
|
-
|
|
259
|
+
order_by?: {
|
|
252
260
|
field: string;
|
|
253
261
|
direction?: "asc" | "desc" | undefined;
|
|
254
262
|
}[] | undefined;
|
|
255
263
|
limit?: number | undefined;
|
|
256
264
|
offset?: number | undefined;
|
|
257
|
-
|
|
265
|
+
time_series?: {
|
|
258
266
|
field: string;
|
|
259
267
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
260
268
|
timezone?: string | undefined;
|
|
261
269
|
} | undefined;
|
|
262
270
|
period?: {
|
|
263
271
|
field: string;
|
|
264
|
-
gte?:
|
|
265
|
-
lt?:
|
|
272
|
+
gte?: any;
|
|
273
|
+
lt?: any;
|
|
266
274
|
} | undefined;
|
|
267
275
|
bucket?: {
|
|
268
276
|
field: string;
|
|
@@ -276,17 +284,18 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
276
284
|
calc: string;
|
|
277
285
|
as: string;
|
|
278
286
|
}[] | undefined;
|
|
279
|
-
formatting?: Record<string,
|
|
287
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
280
288
|
};
|
|
281
289
|
} | {
|
|
282
290
|
id: string;
|
|
283
291
|
group_id: string;
|
|
284
292
|
label?: string | undefined;
|
|
293
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
285
294
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
286
295
|
width?: number | undefined;
|
|
287
296
|
height?: number | undefined;
|
|
288
|
-
|
|
289
|
-
|
|
297
|
+
min_width?: number | undefined;
|
|
298
|
+
max_width?: number | null | undefined;
|
|
290
299
|
order: number;
|
|
291
300
|
target: "gauge_card";
|
|
292
301
|
card: {
|
|
@@ -303,9 +312,9 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
303
312
|
label?: string | undefined;
|
|
304
313
|
} | undefined;
|
|
305
314
|
progress?: {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
315
|
+
value_field: string;
|
|
316
|
+
target_value?: number | undefined;
|
|
317
|
+
target_field?: string | undefined;
|
|
309
318
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
310
319
|
} | undefined;
|
|
311
320
|
color?: string | undefined;
|
|
@@ -326,27 +335,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
326
335
|
as: string;
|
|
327
336
|
})[] | undefined;
|
|
328
337
|
filters?: any;
|
|
329
|
-
|
|
338
|
+
group_by?: (string | {
|
|
330
339
|
field: string;
|
|
331
340
|
as?: string | undefined;
|
|
332
341
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
333
342
|
timezone?: string | undefined;
|
|
334
343
|
})[] | undefined;
|
|
335
|
-
|
|
344
|
+
order_by?: {
|
|
336
345
|
field: string;
|
|
337
346
|
direction?: "asc" | "desc" | undefined;
|
|
338
347
|
}[] | undefined;
|
|
339
348
|
limit?: number | undefined;
|
|
340
349
|
offset?: number | undefined;
|
|
341
|
-
|
|
350
|
+
time_series?: {
|
|
342
351
|
field: string;
|
|
343
352
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
344
353
|
timezone?: string | undefined;
|
|
345
354
|
} | undefined;
|
|
346
355
|
period?: {
|
|
347
356
|
field: string;
|
|
348
|
-
gte?:
|
|
349
|
-
lt?:
|
|
357
|
+
gte?: any;
|
|
358
|
+
lt?: any;
|
|
350
359
|
} | undefined;
|
|
351
360
|
bucket?: {
|
|
352
361
|
field: string;
|
|
@@ -360,17 +369,18 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
360
369
|
calc: string;
|
|
361
370
|
as: string;
|
|
362
371
|
}[] | undefined;
|
|
363
|
-
formatting?: Record<string,
|
|
372
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
364
373
|
};
|
|
365
374
|
} | {
|
|
366
375
|
id: string;
|
|
367
376
|
group_id: string;
|
|
368
377
|
label?: string | undefined;
|
|
378
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
369
379
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
370
380
|
width?: number | undefined;
|
|
371
381
|
height?: number | undefined;
|
|
372
|
-
|
|
373
|
-
|
|
382
|
+
min_width?: number | undefined;
|
|
383
|
+
max_width?: number | null | undefined;
|
|
374
384
|
order: number;
|
|
375
385
|
target: "pivot_table";
|
|
376
386
|
pivot: {
|
|
@@ -407,27 +417,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
407
417
|
as: string;
|
|
408
418
|
})[] | undefined;
|
|
409
419
|
filters?: any;
|
|
410
|
-
|
|
420
|
+
group_by?: (string | {
|
|
411
421
|
field: string;
|
|
412
422
|
as?: string | undefined;
|
|
413
423
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
414
424
|
timezone?: string | undefined;
|
|
415
425
|
})[] | undefined;
|
|
416
|
-
|
|
426
|
+
order_by?: {
|
|
417
427
|
field: string;
|
|
418
428
|
direction?: "asc" | "desc" | undefined;
|
|
419
429
|
}[] | undefined;
|
|
420
430
|
limit?: number | undefined;
|
|
421
431
|
offset?: number | undefined;
|
|
422
|
-
|
|
432
|
+
time_series?: {
|
|
423
433
|
field: string;
|
|
424
434
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
425
435
|
timezone?: string | undefined;
|
|
426
436
|
} | undefined;
|
|
427
437
|
period?: {
|
|
428
438
|
field: string;
|
|
429
|
-
gte?:
|
|
430
|
-
lt?:
|
|
439
|
+
gte?: any;
|
|
440
|
+
lt?: any;
|
|
431
441
|
} | undefined;
|
|
432
442
|
bucket?: {
|
|
433
443
|
field: string;
|
|
@@ -441,7 +451,7 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
441
451
|
calc: string;
|
|
442
452
|
as: string;
|
|
443
453
|
}[] | undefined;
|
|
444
|
-
formatting?: Record<string,
|
|
454
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
445
455
|
};
|
|
446
456
|
};
|
|
447
457
|
data: unknown;
|
|
@@ -450,22 +460,24 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
450
460
|
id: string;
|
|
451
461
|
group_id: string;
|
|
452
462
|
label?: string | undefined;
|
|
463
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
453
464
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
454
465
|
width?: number | undefined;
|
|
455
466
|
height?: number | undefined;
|
|
456
|
-
|
|
457
|
-
|
|
467
|
+
min_width?: number | undefined;
|
|
468
|
+
max_width?: number | null | undefined;
|
|
458
469
|
order: number;
|
|
459
470
|
target: "empty";
|
|
460
471
|
} | {
|
|
461
472
|
id: string;
|
|
462
473
|
group_id: string;
|
|
463
474
|
label?: string | undefined;
|
|
475
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
464
476
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
465
477
|
width?: number | undefined;
|
|
466
478
|
height?: number | undefined;
|
|
467
|
-
|
|
468
|
-
|
|
479
|
+
min_width?: number | undefined;
|
|
480
|
+
max_width?: number | null | undefined;
|
|
469
481
|
order: number;
|
|
470
482
|
target: "table";
|
|
471
483
|
table?: {
|
|
@@ -475,7 +487,7 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
475
487
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
476
488
|
})[] | undefined;
|
|
477
489
|
pagination?: boolean | undefined;
|
|
478
|
-
|
|
490
|
+
page_size?: number | undefined;
|
|
479
491
|
} | undefined;
|
|
480
492
|
query: {
|
|
481
493
|
resource: string;
|
|
@@ -493,27 +505,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
493
505
|
as: string;
|
|
494
506
|
})[] | undefined;
|
|
495
507
|
filters?: any;
|
|
496
|
-
|
|
508
|
+
group_by?: (string | {
|
|
497
509
|
field: string;
|
|
498
510
|
as?: string | undefined;
|
|
499
511
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
500
512
|
timezone?: string | undefined;
|
|
501
513
|
})[] | undefined;
|
|
502
|
-
|
|
514
|
+
order_by?: {
|
|
503
515
|
field: string;
|
|
504
516
|
direction?: "asc" | "desc" | undefined;
|
|
505
517
|
}[] | undefined;
|
|
506
518
|
limit?: number | undefined;
|
|
507
519
|
offset?: number | undefined;
|
|
508
|
-
|
|
520
|
+
time_series?: {
|
|
509
521
|
field: string;
|
|
510
522
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
511
523
|
timezone?: string | undefined;
|
|
512
524
|
} | undefined;
|
|
513
525
|
period?: {
|
|
514
526
|
field: string;
|
|
515
|
-
gte?:
|
|
516
|
-
lt?:
|
|
527
|
+
gte?: any;
|
|
528
|
+
lt?: any;
|
|
517
529
|
} | undefined;
|
|
518
530
|
bucket?: {
|
|
519
531
|
field: string;
|
|
@@ -527,17 +539,18 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
527
539
|
calc: string;
|
|
528
540
|
as: string;
|
|
529
541
|
}[] | undefined;
|
|
530
|
-
formatting?: Record<string,
|
|
542
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
531
543
|
};
|
|
532
544
|
} | {
|
|
533
545
|
id: string;
|
|
534
546
|
group_id: string;
|
|
535
547
|
label?: string | undefined;
|
|
548
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
536
549
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
537
550
|
width?: number | undefined;
|
|
538
551
|
height?: number | undefined;
|
|
539
|
-
|
|
540
|
-
|
|
552
|
+
min_width?: number | undefined;
|
|
553
|
+
max_width?: number | null | undefined;
|
|
541
554
|
order: number;
|
|
542
555
|
target: "chart";
|
|
543
556
|
chart: {
|
|
@@ -596,27 +609,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
596
609
|
as: string;
|
|
597
610
|
})[] | undefined;
|
|
598
611
|
filters?: any;
|
|
599
|
-
|
|
612
|
+
group_by?: (string | {
|
|
600
613
|
field: string;
|
|
601
614
|
as?: string | undefined;
|
|
602
615
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
603
616
|
timezone?: string | undefined;
|
|
604
617
|
})[] | undefined;
|
|
605
|
-
|
|
618
|
+
order_by?: {
|
|
606
619
|
field: string;
|
|
607
620
|
direction?: "asc" | "desc" | undefined;
|
|
608
621
|
}[] | undefined;
|
|
609
622
|
limit?: number | undefined;
|
|
610
623
|
offset?: number | undefined;
|
|
611
|
-
|
|
624
|
+
time_series?: {
|
|
612
625
|
field: string;
|
|
613
626
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
614
627
|
timezone?: string | undefined;
|
|
615
628
|
} | undefined;
|
|
616
629
|
period?: {
|
|
617
630
|
field: string;
|
|
618
|
-
gte?:
|
|
619
|
-
lt?:
|
|
631
|
+
gte?: any;
|
|
632
|
+
lt?: any;
|
|
620
633
|
} | undefined;
|
|
621
634
|
bucket?: {
|
|
622
635
|
field: string;
|
|
@@ -630,7 +643,7 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
630
643
|
calc: string;
|
|
631
644
|
as: string;
|
|
632
645
|
}[] | undefined;
|
|
633
|
-
formatting?: Record<string,
|
|
646
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
634
647
|
} | {
|
|
635
648
|
steps: {
|
|
636
649
|
name: string;
|
|
@@ -643,16 +656,21 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
643
656
|
};
|
|
644
657
|
filters?: any;
|
|
645
658
|
}[];
|
|
659
|
+
calcs?: {
|
|
660
|
+
calc: string;
|
|
661
|
+
as: string;
|
|
662
|
+
}[] | undefined;
|
|
646
663
|
};
|
|
647
664
|
} | {
|
|
648
665
|
id: string;
|
|
649
666
|
group_id: string;
|
|
650
667
|
label?: string | undefined;
|
|
668
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
651
669
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
652
670
|
width?: number | undefined;
|
|
653
671
|
height?: number | undefined;
|
|
654
|
-
|
|
655
|
-
|
|
672
|
+
min_width?: number | undefined;
|
|
673
|
+
max_width?: number | null | undefined;
|
|
656
674
|
order: number;
|
|
657
675
|
target: "kpi_card";
|
|
658
676
|
card: {
|
|
@@ -667,8 +685,8 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
667
685
|
text?: string | undefined;
|
|
668
686
|
field?: string | undefined;
|
|
669
687
|
} | undefined;
|
|
670
|
-
comparison?:
|
|
671
|
-
sparkline?:
|
|
688
|
+
comparison?: any;
|
|
689
|
+
sparkline?: any;
|
|
672
690
|
};
|
|
673
691
|
query: {
|
|
674
692
|
resource: string;
|
|
@@ -686,27 +704,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
686
704
|
as: string;
|
|
687
705
|
})[] | undefined;
|
|
688
706
|
filters?: any;
|
|
689
|
-
|
|
707
|
+
group_by?: (string | {
|
|
690
708
|
field: string;
|
|
691
709
|
as?: string | undefined;
|
|
692
710
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
693
711
|
timezone?: string | undefined;
|
|
694
712
|
})[] | undefined;
|
|
695
|
-
|
|
713
|
+
order_by?: {
|
|
696
714
|
field: string;
|
|
697
715
|
direction?: "asc" | "desc" | undefined;
|
|
698
716
|
}[] | undefined;
|
|
699
717
|
limit?: number | undefined;
|
|
700
718
|
offset?: number | undefined;
|
|
701
|
-
|
|
719
|
+
time_series?: {
|
|
702
720
|
field: string;
|
|
703
721
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
704
722
|
timezone?: string | undefined;
|
|
705
723
|
} | undefined;
|
|
706
724
|
period?: {
|
|
707
725
|
field: string;
|
|
708
|
-
gte?:
|
|
709
|
-
lt?:
|
|
726
|
+
gte?: any;
|
|
727
|
+
lt?: any;
|
|
710
728
|
} | undefined;
|
|
711
729
|
bucket?: {
|
|
712
730
|
field: string;
|
|
@@ -720,17 +738,18 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
720
738
|
calc: string;
|
|
721
739
|
as: string;
|
|
722
740
|
}[] | undefined;
|
|
723
|
-
formatting?: Record<string,
|
|
741
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
724
742
|
};
|
|
725
743
|
} | {
|
|
726
744
|
id: string;
|
|
727
745
|
group_id: string;
|
|
728
746
|
label?: string | undefined;
|
|
747
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
729
748
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
730
749
|
width?: number | undefined;
|
|
731
750
|
height?: number | undefined;
|
|
732
|
-
|
|
733
|
-
|
|
751
|
+
min_width?: number | undefined;
|
|
752
|
+
max_width?: number | null | undefined;
|
|
734
753
|
order: number;
|
|
735
754
|
target: "gauge_card";
|
|
736
755
|
card: {
|
|
@@ -747,9 +766,9 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
747
766
|
label?: string | undefined;
|
|
748
767
|
} | undefined;
|
|
749
768
|
progress?: {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
769
|
+
value_field: string;
|
|
770
|
+
target_value?: number | undefined;
|
|
771
|
+
target_field?: string | undefined;
|
|
753
772
|
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
754
773
|
} | undefined;
|
|
755
774
|
color?: string | undefined;
|
|
@@ -770,27 +789,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
770
789
|
as: string;
|
|
771
790
|
})[] | undefined;
|
|
772
791
|
filters?: any;
|
|
773
|
-
|
|
792
|
+
group_by?: (string | {
|
|
774
793
|
field: string;
|
|
775
794
|
as?: string | undefined;
|
|
776
795
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
777
796
|
timezone?: string | undefined;
|
|
778
797
|
})[] | undefined;
|
|
779
|
-
|
|
798
|
+
order_by?: {
|
|
780
799
|
field: string;
|
|
781
800
|
direction?: "asc" | "desc" | undefined;
|
|
782
801
|
}[] | undefined;
|
|
783
802
|
limit?: number | undefined;
|
|
784
803
|
offset?: number | undefined;
|
|
785
|
-
|
|
804
|
+
time_series?: {
|
|
786
805
|
field: string;
|
|
787
806
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
788
807
|
timezone?: string | undefined;
|
|
789
808
|
} | undefined;
|
|
790
809
|
period?: {
|
|
791
810
|
field: string;
|
|
792
|
-
gte?:
|
|
793
|
-
lt?:
|
|
811
|
+
gte?: any;
|
|
812
|
+
lt?: any;
|
|
794
813
|
} | undefined;
|
|
795
814
|
bucket?: {
|
|
796
815
|
field: string;
|
|
@@ -804,17 +823,18 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
804
823
|
calc: string;
|
|
805
824
|
as: string;
|
|
806
825
|
}[] | undefined;
|
|
807
|
-
formatting?: Record<string,
|
|
826
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
808
827
|
};
|
|
809
828
|
} | {
|
|
810
829
|
id: string;
|
|
811
830
|
group_id: string;
|
|
812
831
|
label?: string | undefined;
|
|
832
|
+
variables?: import("../model/dashboard.types.js").DashboardVariables | undefined;
|
|
813
833
|
size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
|
|
814
834
|
width?: number | undefined;
|
|
815
835
|
height?: number | undefined;
|
|
816
|
-
|
|
817
|
-
|
|
836
|
+
min_width?: number | undefined;
|
|
837
|
+
max_width?: number | null | undefined;
|
|
818
838
|
order: number;
|
|
819
839
|
target: "pivot_table";
|
|
820
840
|
pivot: {
|
|
@@ -851,27 +871,27 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
851
871
|
as: string;
|
|
852
872
|
})[] | undefined;
|
|
853
873
|
filters?: any;
|
|
854
|
-
|
|
874
|
+
group_by?: (string | {
|
|
855
875
|
field: string;
|
|
856
876
|
as?: string | undefined;
|
|
857
877
|
grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
|
|
858
878
|
timezone?: string | undefined;
|
|
859
879
|
})[] | undefined;
|
|
860
|
-
|
|
880
|
+
order_by?: {
|
|
861
881
|
field: string;
|
|
862
882
|
direction?: "asc" | "desc" | undefined;
|
|
863
883
|
}[] | undefined;
|
|
864
884
|
limit?: number | undefined;
|
|
865
885
|
offset?: number | undefined;
|
|
866
|
-
|
|
886
|
+
time_series?: {
|
|
867
887
|
field: string;
|
|
868
888
|
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
869
889
|
timezone?: string | undefined;
|
|
870
890
|
} | undefined;
|
|
871
891
|
period?: {
|
|
872
892
|
field: string;
|
|
873
|
-
gte?:
|
|
874
|
-
lt?:
|
|
893
|
+
gte?: any;
|
|
894
|
+
lt?: any;
|
|
875
895
|
} | undefined;
|
|
876
896
|
bucket?: {
|
|
877
897
|
field: string;
|
|
@@ -885,7 +905,7 @@ export declare function useWidgetData(slug: Ref<string>, widgetId: Ref<string>,
|
|
|
885
905
|
calc: string;
|
|
886
906
|
as: string;
|
|
887
907
|
}[] | undefined;
|
|
888
|
-
formatting?: Record<string,
|
|
908
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
889
909
|
};
|
|
890
910
|
};
|
|
891
911
|
data: unknown;
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
:layout="{
|
|
113
113
|
size: widget.size,
|
|
114
114
|
width: widget.width,
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
min_width: widget.min_width,
|
|
116
|
+
max_width: widget.max_width,
|
|
117
117
|
height: widget.height,
|
|
118
118
|
}"
|
|
119
119
|
@edit="emit('edit-widget', widget)"
|