@adminforth/dashboard 1.4.0 → 1.4.2

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.
Files changed (86) hide show
  1. package/README.md +23 -4
  2. package/custom/api/dashboardApi.ts +6 -9
  3. package/custom/model/dashboard.types.ts +60 -275
  4. package/custom/model/dashboardTopics.ts +5 -0
  5. package/custom/package.json +1 -0
  6. package/custom/runtime/DashboardGroup.vue +2 -2
  7. package/custom/runtime/DashboardPage.vue +17 -7
  8. package/custom/runtime/DashboardRuntime.vue +20 -8
  9. package/custom/runtime/WidgetRenderer.vue +1 -2
  10. package/custom/runtime/WidgetShell.vue +3 -3
  11. package/custom/skills/adminforth-dashboard/SKILL.md +2 -2
  12. package/custom/widgets/{gauge-card/GaugeCardWidget.vue → GaugeCardWidget.vue} +63 -61
  13. package/custom/widgets/{kpi-card/KpiCardWidget.vue → KpiCardWidget.vue} +35 -33
  14. package/custom/widgets/{pivot-table/PivotTableWidget.vue → PivotTableWidget.vue} +71 -68
  15. package/custom/widgets/{table/TableWidget.vue → TableWidget.vue} +5 -5
  16. package/custom/widgets/chart/{bar/BarChart.vue → BarChart.vue} +2 -2
  17. package/custom/widgets/chart/ChartWidget.vue +4 -15
  18. package/{dist/custom/widgets/chart/funnel → custom/widgets/chart}/FunnelChart.vue +80 -78
  19. package/{dist/custom/widgets/chart/line → custom/widgets/chart}/LineChart.vue +2 -2
  20. package/custom/widgets/chart/{pie/PieChart.vue → PieChart.vue} +2 -2
  21. package/{dist/custom/widgets/chart/stacked-bar → custom/widgets/chart}/StackedBarChart.vue +97 -95
  22. package/custom/widgets/chart/chart.types.ts +0 -28
  23. package/dist/custom/api/dashboardApi.d.ts +4 -8
  24. package/dist/custom/api/dashboardApi.js +2 -6
  25. package/dist/custom/api/dashboardApi.ts +6 -9
  26. package/dist/custom/composables/useElementSize.js +7 -10
  27. package/dist/custom/model/dashboard.types.d.ts +38 -32
  28. package/dist/custom/model/dashboard.types.js +4 -161
  29. package/dist/custom/model/dashboard.types.ts +60 -275
  30. package/dist/custom/model/dashboardTopics.d.ts +2 -0
  31. package/dist/custom/model/dashboardTopics.js +4 -0
  32. package/dist/custom/model/dashboardTopics.ts +5 -0
  33. package/dist/custom/package.json +1 -0
  34. package/dist/custom/queries/useDashboardConfig.d.ts +96 -96
  35. package/dist/custom/queries/useDashboardConfig.js +9 -12
  36. package/dist/custom/queries/useWidgetData.d.ts +96 -96
  37. package/dist/custom/queries/useWidgetData.js +9 -12
  38. package/dist/custom/runtime/DashboardGroup.vue +2 -2
  39. package/dist/custom/runtime/DashboardPage.vue +17 -7
  40. package/dist/custom/runtime/DashboardRuntime.vue +20 -8
  41. package/dist/custom/runtime/WidgetRenderer.vue +1 -2
  42. package/dist/custom/runtime/WidgetShell.vue +3 -3
  43. package/dist/custom/skills/adminforth-dashboard/SKILL.md +2 -2
  44. package/dist/custom/widgets/{gauge-card/GaugeCardWidget.vue → GaugeCardWidget.vue} +63 -61
  45. package/dist/custom/widgets/{kpi-card/KpiCardWidget.vue → KpiCardWidget.vue} +35 -33
  46. package/dist/custom/widgets/{pivot-table/PivotTableWidget.vue → PivotTableWidget.vue} +71 -68
  47. package/dist/custom/widgets/{table/TableWidget.vue → TableWidget.vue} +5 -5
  48. package/dist/custom/widgets/chart/{bar/BarChart.vue → BarChart.vue} +2 -2
  49. package/dist/custom/widgets/chart/ChartWidget.vue +4 -15
  50. package/{custom/widgets/chart/funnel → dist/custom/widgets/chart}/FunnelChart.vue +80 -78
  51. package/{custom/widgets/chart/line → dist/custom/widgets/chart}/LineChart.vue +2 -2
  52. package/dist/custom/widgets/chart/{pie/PieChart.vue → PieChart.vue} +2 -2
  53. package/{custom/widgets/chart/stacked-bar → dist/custom/widgets/chart}/StackedBarChart.vue +97 -95
  54. package/dist/custom/widgets/chart/chart.types.d.ts +0 -2
  55. package/dist/custom/widgets/chart/chart.types.js +1 -25
  56. package/dist/custom/widgets/chart/chart.types.ts +0 -28
  57. package/dist/custom/widgets/chart/chart.utils.js +6 -14
  58. package/dist/custom/widgets/registry.js +14 -22
  59. package/dist/endpoint/dashboard.d.ts +2 -3
  60. package/dist/endpoint/dashboard.js +12 -32
  61. package/dist/endpoint/groups.d.ts +2 -21
  62. package/dist/endpoint/groups.js +18 -16
  63. package/dist/endpoint/widgets.d.ts +0 -3
  64. package/dist/endpoint/widgets.js +27 -74
  65. package/dist/index.js +1 -3
  66. package/dist/schema/api.d.ts +2090 -511
  67. package/dist/schema/api.js +18 -15
  68. package/dist/schema/widget.d.ts +1003 -250
  69. package/dist/schema/widget.js +102 -46
  70. package/dist/services/dashboardConfigService.d.ts +0 -10
  71. package/dist/services/dashboardConfigService.js +6 -21
  72. package/dist/services/widgetDataService.js +226 -196
  73. package/endpoint/dashboard.ts +13 -46
  74. package/endpoint/groups.ts +25 -42
  75. package/endpoint/widgets.ts +36 -95
  76. package/index.ts +0 -3
  77. package/package.json +3 -3
  78. package/schema/api.ts +19 -15
  79. package/schema/widget.ts +113 -52
  80. package/services/dashboardConfigService.ts +6 -25
  81. package/services/widgetDataService.ts +304 -229
  82. package/custom/widgets/chart/histogram/HistogramChart.vue +0 -21
  83. package/dist/custom/widgets/chart/histogram/HistogramChart.vue +0 -21
  84. package/dist/services/widgetConfigValidator.d.ts +0 -8
  85. package/dist/services/widgetConfigValidator.js +0 -27
  86. package/services/widgetConfigValidator.ts +0 -61
@@ -20,8 +20,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
20
20
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
21
21
  width?: number | undefined;
22
22
  height?: number | undefined;
23
- minWidth?: number | undefined;
24
- maxWidth?: number | null | undefined;
23
+ min_width?: number | undefined;
24
+ max_width?: number | null | undefined;
25
25
  order: number;
26
26
  target: "empty";
27
27
  } | {
@@ -32,8 +32,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
32
32
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
33
33
  width?: number | undefined;
34
34
  height?: number | undefined;
35
- minWidth?: number | undefined;
36
- maxWidth?: number | null | undefined;
35
+ min_width?: number | undefined;
36
+ max_width?: number | null | undefined;
37
37
  order: number;
38
38
  target: "table";
39
39
  table?: {
@@ -43,7 +43,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
43
43
  format?: import("../model/dashboard.types.js").ValueFormat | undefined;
44
44
  })[] | undefined;
45
45
  pagination?: boolean | undefined;
46
- pageSize?: number | undefined;
46
+ page_size?: number | undefined;
47
47
  } | undefined;
48
48
  query: {
49
49
  resource: string;
@@ -61,27 +61,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
61
61
  as: string;
62
62
  })[] | undefined;
63
63
  filters?: any;
64
- groupBy?: (string | {
64
+ group_by?: (string | {
65
65
  field: string;
66
66
  as?: string | undefined;
67
67
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
68
68
  timezone?: string | undefined;
69
69
  })[] | undefined;
70
- orderBy?: {
70
+ order_by?: {
71
71
  field: string;
72
72
  direction?: "asc" | "desc" | undefined;
73
73
  }[] | undefined;
74
74
  limit?: number | undefined;
75
75
  offset?: number | undefined;
76
- timeSeries?: {
76
+ time_series?: {
77
77
  field: string;
78
78
  grain: import("../model/dashboard.types.js").TimeGrain;
79
79
  timezone?: string | undefined;
80
80
  } | undefined;
81
81
  period?: {
82
82
  field: string;
83
- gte?: unknown;
84
- lt?: unknown;
83
+ gte?: any;
84
+ lt?: any;
85
85
  } | undefined;
86
86
  bucket?: {
87
87
  field: string;
@@ -95,7 +95,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
95
95
  calc: string;
96
96
  as: string;
97
97
  }[] | undefined;
98
- formatting?: Record<string, unknown> | undefined;
98
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
99
99
  };
100
100
  } | {
101
101
  id: string;
@@ -105,8 +105,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
105
105
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
106
106
  width?: number | undefined;
107
107
  height?: number | undefined;
108
- minWidth?: number | undefined;
109
- maxWidth?: number | null | undefined;
108
+ min_width?: number | undefined;
109
+ max_width?: number | null | undefined;
110
110
  order: number;
111
111
  target: "chart";
112
112
  chart: {
@@ -165,27 +165,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
165
165
  as: string;
166
166
  })[] | undefined;
167
167
  filters?: any;
168
- groupBy?: (string | {
168
+ group_by?: (string | {
169
169
  field: string;
170
170
  as?: string | undefined;
171
171
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
172
172
  timezone?: string | undefined;
173
173
  })[] | undefined;
174
- orderBy?: {
174
+ order_by?: {
175
175
  field: string;
176
176
  direction?: "asc" | "desc" | undefined;
177
177
  }[] | undefined;
178
178
  limit?: number | undefined;
179
179
  offset?: number | undefined;
180
- timeSeries?: {
180
+ time_series?: {
181
181
  field: string;
182
182
  grain: import("../model/dashboard.types.js").TimeGrain;
183
183
  timezone?: string | undefined;
184
184
  } | undefined;
185
185
  period?: {
186
186
  field: string;
187
- gte?: unknown;
188
- lt?: unknown;
187
+ gte?: any;
188
+ lt?: any;
189
189
  } | undefined;
190
190
  bucket?: {
191
191
  field: string;
@@ -199,7 +199,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
199
199
  calc: string;
200
200
  as: string;
201
201
  }[] | undefined;
202
- formatting?: Record<string, unknown> | undefined;
202
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
203
203
  } | {
204
204
  steps: {
205
205
  name: string;
@@ -225,8 +225,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
225
225
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
226
226
  width?: number | undefined;
227
227
  height?: number | undefined;
228
- minWidth?: number | undefined;
229
- maxWidth?: number | null | undefined;
228
+ min_width?: number | undefined;
229
+ max_width?: number | null | undefined;
230
230
  order: number;
231
231
  target: "kpi_card";
232
232
  card: {
@@ -241,8 +241,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
241
241
  text?: string | undefined;
242
242
  field?: string | undefined;
243
243
  } | undefined;
244
- comparison?: unknown;
245
- sparkline?: unknown;
244
+ comparison?: any;
245
+ sparkline?: any;
246
246
  };
247
247
  query: {
248
248
  resource: string;
@@ -260,27 +260,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
260
260
  as: string;
261
261
  })[] | undefined;
262
262
  filters?: any;
263
- groupBy?: (string | {
263
+ group_by?: (string | {
264
264
  field: string;
265
265
  as?: string | undefined;
266
266
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
267
267
  timezone?: string | undefined;
268
268
  })[] | undefined;
269
- orderBy?: {
269
+ order_by?: {
270
270
  field: string;
271
271
  direction?: "asc" | "desc" | undefined;
272
272
  }[] | undefined;
273
273
  limit?: number | undefined;
274
274
  offset?: number | undefined;
275
- timeSeries?: {
275
+ time_series?: {
276
276
  field: string;
277
277
  grain: import("../model/dashboard.types.js").TimeGrain;
278
278
  timezone?: string | undefined;
279
279
  } | undefined;
280
280
  period?: {
281
281
  field: string;
282
- gte?: unknown;
283
- lt?: unknown;
282
+ gte?: any;
283
+ lt?: any;
284
284
  } | undefined;
285
285
  bucket?: {
286
286
  field: string;
@@ -294,7 +294,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
294
294
  calc: string;
295
295
  as: string;
296
296
  }[] | undefined;
297
- formatting?: Record<string, unknown> | undefined;
297
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
298
298
  };
299
299
  } | {
300
300
  id: string;
@@ -304,8 +304,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
304
304
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
305
305
  width?: number | undefined;
306
306
  height?: number | undefined;
307
- minWidth?: number | undefined;
308
- maxWidth?: number | null | undefined;
307
+ min_width?: number | undefined;
308
+ max_width?: number | null | undefined;
309
309
  order: number;
310
310
  target: "gauge_card";
311
311
  card: {
@@ -322,9 +322,9 @@ export declare function useDashboardConfig(slug: Ref<string>): {
322
322
  label?: string | undefined;
323
323
  } | undefined;
324
324
  progress?: {
325
- valueField: string;
326
- targetValue?: number | undefined;
327
- targetField?: string | undefined;
325
+ value_field: string;
326
+ target_value?: number | undefined;
327
+ target_field?: string | undefined;
328
328
  format?: import("../model/dashboard.types.js").ValueFormat | undefined;
329
329
  } | undefined;
330
330
  color?: string | undefined;
@@ -345,27 +345,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
345
345
  as: string;
346
346
  })[] | undefined;
347
347
  filters?: any;
348
- groupBy?: (string | {
348
+ group_by?: (string | {
349
349
  field: string;
350
350
  as?: string | undefined;
351
351
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
352
352
  timezone?: string | undefined;
353
353
  })[] | undefined;
354
- orderBy?: {
354
+ order_by?: {
355
355
  field: string;
356
356
  direction?: "asc" | "desc" | undefined;
357
357
  }[] | undefined;
358
358
  limit?: number | undefined;
359
359
  offset?: number | undefined;
360
- timeSeries?: {
360
+ time_series?: {
361
361
  field: string;
362
362
  grain: import("../model/dashboard.types.js").TimeGrain;
363
363
  timezone?: string | undefined;
364
364
  } | undefined;
365
365
  period?: {
366
366
  field: string;
367
- gte?: unknown;
368
- lt?: unknown;
367
+ gte?: any;
368
+ lt?: any;
369
369
  } | undefined;
370
370
  bucket?: {
371
371
  field: string;
@@ -379,7 +379,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
379
379
  calc: string;
380
380
  as: string;
381
381
  }[] | undefined;
382
- formatting?: Record<string, unknown> | undefined;
382
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
383
383
  };
384
384
  } | {
385
385
  id: string;
@@ -389,8 +389,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
389
389
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
390
390
  width?: number | undefined;
391
391
  height?: number | undefined;
392
- minWidth?: number | undefined;
393
- maxWidth?: number | null | undefined;
392
+ min_width?: number | undefined;
393
+ max_width?: number | null | undefined;
394
394
  order: number;
395
395
  target: "pivot_table";
396
396
  pivot: {
@@ -427,27 +427,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
427
427
  as: string;
428
428
  })[] | undefined;
429
429
  filters?: any;
430
- groupBy?: (string | {
430
+ group_by?: (string | {
431
431
  field: string;
432
432
  as?: string | undefined;
433
433
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
434
434
  timezone?: string | undefined;
435
435
  })[] | undefined;
436
- orderBy?: {
436
+ order_by?: {
437
437
  field: string;
438
438
  direction?: "asc" | "desc" | undefined;
439
439
  }[] | undefined;
440
440
  limit?: number | undefined;
441
441
  offset?: number | undefined;
442
- timeSeries?: {
442
+ time_series?: {
443
443
  field: string;
444
444
  grain: import("../model/dashboard.types.js").TimeGrain;
445
445
  timezone?: string | undefined;
446
446
  } | undefined;
447
447
  period?: {
448
448
  field: string;
449
- gte?: unknown;
450
- lt?: unknown;
449
+ gte?: any;
450
+ lt?: any;
451
451
  } | undefined;
452
452
  bucket?: {
453
453
  field: string;
@@ -461,7 +461,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
461
461
  calc: string;
462
462
  as: string;
463
463
  }[] | undefined;
464
- formatting?: Record<string, unknown> | undefined;
464
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
465
465
  };
466
466
  })[];
467
467
  };
@@ -485,8 +485,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
485
485
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
486
486
  width?: number | undefined;
487
487
  height?: number | undefined;
488
- minWidth?: number | undefined;
489
- maxWidth?: number | null | undefined;
488
+ min_width?: number | undefined;
489
+ max_width?: number | null | undefined;
490
490
  order: number;
491
491
  target: "empty";
492
492
  } | {
@@ -497,8 +497,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
497
497
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
498
498
  width?: number | undefined;
499
499
  height?: number | undefined;
500
- minWidth?: number | undefined;
501
- maxWidth?: number | null | undefined;
500
+ min_width?: number | undefined;
501
+ max_width?: number | null | undefined;
502
502
  order: number;
503
503
  target: "table";
504
504
  table?: {
@@ -508,7 +508,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
508
508
  format?: import("../model/dashboard.types.js").ValueFormat | undefined;
509
509
  })[] | undefined;
510
510
  pagination?: boolean | undefined;
511
- pageSize?: number | undefined;
511
+ page_size?: number | undefined;
512
512
  } | undefined;
513
513
  query: {
514
514
  resource: string;
@@ -526,27 +526,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
526
526
  as: string;
527
527
  })[] | undefined;
528
528
  filters?: any;
529
- groupBy?: (string | {
529
+ group_by?: (string | {
530
530
  field: string;
531
531
  as?: string | undefined;
532
532
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
533
533
  timezone?: string | undefined;
534
534
  })[] | undefined;
535
- orderBy?: {
535
+ order_by?: {
536
536
  field: string;
537
537
  direction?: "asc" | "desc" | undefined;
538
538
  }[] | undefined;
539
539
  limit?: number | undefined;
540
540
  offset?: number | undefined;
541
- timeSeries?: {
541
+ time_series?: {
542
542
  field: string;
543
543
  grain: import("../model/dashboard.types.js").TimeGrain;
544
544
  timezone?: string | undefined;
545
545
  } | undefined;
546
546
  period?: {
547
547
  field: string;
548
- gte?: unknown;
549
- lt?: unknown;
548
+ gte?: any;
549
+ lt?: any;
550
550
  } | undefined;
551
551
  bucket?: {
552
552
  field: string;
@@ -560,7 +560,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
560
560
  calc: string;
561
561
  as: string;
562
562
  }[] | undefined;
563
- formatting?: Record<string, unknown> | undefined;
563
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
564
564
  };
565
565
  } | {
566
566
  id: string;
@@ -570,8 +570,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
570
570
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
571
571
  width?: number | undefined;
572
572
  height?: number | undefined;
573
- minWidth?: number | undefined;
574
- maxWidth?: number | null | undefined;
573
+ min_width?: number | undefined;
574
+ max_width?: number | null | undefined;
575
575
  order: number;
576
576
  target: "chart";
577
577
  chart: {
@@ -630,27 +630,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
630
630
  as: string;
631
631
  })[] | undefined;
632
632
  filters?: any;
633
- groupBy?: (string | {
633
+ group_by?: (string | {
634
634
  field: string;
635
635
  as?: string | undefined;
636
636
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
637
637
  timezone?: string | undefined;
638
638
  })[] | undefined;
639
- orderBy?: {
639
+ order_by?: {
640
640
  field: string;
641
641
  direction?: "asc" | "desc" | undefined;
642
642
  }[] | undefined;
643
643
  limit?: number | undefined;
644
644
  offset?: number | undefined;
645
- timeSeries?: {
645
+ time_series?: {
646
646
  field: string;
647
647
  grain: import("../model/dashboard.types.js").TimeGrain;
648
648
  timezone?: string | undefined;
649
649
  } | undefined;
650
650
  period?: {
651
651
  field: string;
652
- gte?: unknown;
653
- lt?: unknown;
652
+ gte?: any;
653
+ lt?: any;
654
654
  } | undefined;
655
655
  bucket?: {
656
656
  field: string;
@@ -664,7 +664,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
664
664
  calc: string;
665
665
  as: string;
666
666
  }[] | undefined;
667
- formatting?: Record<string, unknown> | undefined;
667
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
668
668
  } | {
669
669
  steps: {
670
670
  name: string;
@@ -690,8 +690,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
690
690
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
691
691
  width?: number | undefined;
692
692
  height?: number | undefined;
693
- minWidth?: number | undefined;
694
- maxWidth?: number | null | undefined;
693
+ min_width?: number | undefined;
694
+ max_width?: number | null | undefined;
695
695
  order: number;
696
696
  target: "kpi_card";
697
697
  card: {
@@ -706,8 +706,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
706
706
  text?: string | undefined;
707
707
  field?: string | undefined;
708
708
  } | undefined;
709
- comparison?: unknown;
710
- sparkline?: unknown;
709
+ comparison?: any;
710
+ sparkline?: any;
711
711
  };
712
712
  query: {
713
713
  resource: string;
@@ -725,27 +725,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
725
725
  as: string;
726
726
  })[] | undefined;
727
727
  filters?: any;
728
- groupBy?: (string | {
728
+ group_by?: (string | {
729
729
  field: string;
730
730
  as?: string | undefined;
731
731
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
732
732
  timezone?: string | undefined;
733
733
  })[] | undefined;
734
- orderBy?: {
734
+ order_by?: {
735
735
  field: string;
736
736
  direction?: "asc" | "desc" | undefined;
737
737
  }[] | undefined;
738
738
  limit?: number | undefined;
739
739
  offset?: number | undefined;
740
- timeSeries?: {
740
+ time_series?: {
741
741
  field: string;
742
742
  grain: import("../model/dashboard.types.js").TimeGrain;
743
743
  timezone?: string | undefined;
744
744
  } | undefined;
745
745
  period?: {
746
746
  field: string;
747
- gte?: unknown;
748
- lt?: unknown;
747
+ gte?: any;
748
+ lt?: any;
749
749
  } | undefined;
750
750
  bucket?: {
751
751
  field: string;
@@ -759,7 +759,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
759
759
  calc: string;
760
760
  as: string;
761
761
  }[] | undefined;
762
- formatting?: Record<string, unknown> | undefined;
762
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
763
763
  };
764
764
  } | {
765
765
  id: string;
@@ -769,8 +769,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
769
769
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
770
770
  width?: number | undefined;
771
771
  height?: number | undefined;
772
- minWidth?: number | undefined;
773
- maxWidth?: number | null | undefined;
772
+ min_width?: number | undefined;
773
+ max_width?: number | null | undefined;
774
774
  order: number;
775
775
  target: "gauge_card";
776
776
  card: {
@@ -787,9 +787,9 @@ export declare function useDashboardConfig(slug: Ref<string>): {
787
787
  label?: string | undefined;
788
788
  } | undefined;
789
789
  progress?: {
790
- valueField: string;
791
- targetValue?: number | undefined;
792
- targetField?: string | undefined;
790
+ value_field: string;
791
+ target_value?: number | undefined;
792
+ target_field?: string | undefined;
793
793
  format?: import("../model/dashboard.types.js").ValueFormat | undefined;
794
794
  } | undefined;
795
795
  color?: string | undefined;
@@ -810,27 +810,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
810
810
  as: string;
811
811
  })[] | undefined;
812
812
  filters?: any;
813
- groupBy?: (string | {
813
+ group_by?: (string | {
814
814
  field: string;
815
815
  as?: string | undefined;
816
816
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
817
817
  timezone?: string | undefined;
818
818
  })[] | undefined;
819
- orderBy?: {
819
+ order_by?: {
820
820
  field: string;
821
821
  direction?: "asc" | "desc" | undefined;
822
822
  }[] | undefined;
823
823
  limit?: number | undefined;
824
824
  offset?: number | undefined;
825
- timeSeries?: {
825
+ time_series?: {
826
826
  field: string;
827
827
  grain: import("../model/dashboard.types.js").TimeGrain;
828
828
  timezone?: string | undefined;
829
829
  } | undefined;
830
830
  period?: {
831
831
  field: string;
832
- gte?: unknown;
833
- lt?: unknown;
832
+ gte?: any;
833
+ lt?: any;
834
834
  } | undefined;
835
835
  bucket?: {
836
836
  field: string;
@@ -844,7 +844,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
844
844
  calc: string;
845
845
  as: string;
846
846
  }[] | undefined;
847
- formatting?: Record<string, unknown> | undefined;
847
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
848
848
  };
849
849
  } | {
850
850
  id: string;
@@ -854,8 +854,8 @@ export declare function useDashboardConfig(slug: Ref<string>): {
854
854
  size?: import("../model/dashboard.types.js").DashboardWidgetSize | undefined;
855
855
  width?: number | undefined;
856
856
  height?: number | undefined;
857
- minWidth?: number | undefined;
858
- maxWidth?: number | null | undefined;
857
+ min_width?: number | undefined;
858
+ max_width?: number | null | undefined;
859
859
  order: number;
860
860
  target: "pivot_table";
861
861
  pivot: {
@@ -892,27 +892,27 @@ export declare function useDashboardConfig(slug: Ref<string>): {
892
892
  as: string;
893
893
  })[] | undefined;
894
894
  filters?: any;
895
- groupBy?: (string | {
895
+ group_by?: (string | {
896
896
  field: string;
897
897
  as?: string | undefined;
898
898
  grain?: import("../model/dashboard.types.js").TimeGrain | undefined;
899
899
  timezone?: string | undefined;
900
900
  })[] | undefined;
901
- orderBy?: {
901
+ order_by?: {
902
902
  field: string;
903
903
  direction?: "asc" | "desc" | undefined;
904
904
  }[] | undefined;
905
905
  limit?: number | undefined;
906
906
  offset?: number | undefined;
907
- timeSeries?: {
907
+ time_series?: {
908
908
  field: string;
909
909
  grain: import("../model/dashboard.types.js").TimeGrain;
910
910
  timezone?: string | undefined;
911
911
  } | undefined;
912
912
  period?: {
913
913
  field: string;
914
- gte?: unknown;
915
- lt?: unknown;
914
+ gte?: any;
915
+ lt?: any;
916
916
  } | undefined;
917
917
  bucket?: {
918
918
  field: string;
@@ -926,7 +926,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
926
926
  calc: string;
927
927
  as: string;
928
928
  }[] | undefined;
929
- formatting?: Record<string, unknown> | undefined;
929
+ formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
930
930
  };
931
931
  })[];
932
932
  };
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -8,15 +7,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
8
  });
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.useDashboardConfig = useDashboardConfig;
13
- const vue_1 = require("vue");
14
- const dashboardApi_js_1 = require("../api/dashboardApi.js");
15
- function useDashboardConfig(slug) {
16
- const data = (0, vue_1.ref)(null);
17
- const isLoading = (0, vue_1.ref)(false);
18
- const isFetching = (0, vue_1.ref)(false);
19
- const error = (0, vue_1.ref)(null);
10
+ import { ref, watch } from 'vue';
11
+ import { dashboardApi } from '../api/dashboardApi.js';
12
+ export function useDashboardConfig(slug) {
13
+ const data = ref(null);
14
+ const isLoading = ref(false);
15
+ const isFetching = ref(false);
16
+ const error = ref(null);
20
17
  function refetch() {
21
18
  return __awaiter(this, void 0, void 0, function* () {
22
19
  if (!slug.value) {
@@ -29,7 +26,7 @@ function useDashboardConfig(slug) {
29
26
  isLoading.value = true;
30
27
  }
31
28
  try {
32
- const response = yield dashboardApi_js_1.dashboardApi.getDashboardConfig(slug.value);
29
+ const response = yield dashboardApi.getDashboardConfig(slug.value);
33
30
  data.value = response;
34
31
  error.value = null;
35
32
  return response;
@@ -44,7 +41,7 @@ function useDashboardConfig(slug) {
44
41
  }
45
42
  });
46
43
  }
47
- (0, vue_1.watch)(slug, () => {
44
+ watch(slug, () => {
48
45
  void refetch();
49
46
  }, { immediate: true });
50
47
  return {