@adminforth/dashboard 1.5.0 → 1.6.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/custom/api/dashboardApi.ts +137 -1
- package/custom/model/dashboard.types.ts +32 -22
- package/custom/runtime/DashboardRuntime.vue +2 -3
- package/custom/skills/adminforth-dashboard/SKILL.md +66 -10
- package/custom/widgets/KpiCardWidget.vue +172 -9
- package/custom/widgets/chart/ChartWidget.vue +5 -5
- package/custom/widgets/registry.ts +4 -4
- package/dist/custom/api/dashboardApi.d.ts +46 -1
- package/dist/custom/api/dashboardApi.js +90 -0
- package/dist/custom/api/dashboardApi.ts +137 -1
- package/dist/custom/model/dashboard.types.d.ts +30 -14
- package/dist/custom/model/dashboard.types.js +2 -2
- package/dist/custom/model/dashboard.types.ts +32 -22
- package/dist/custom/queries/useDashboardConfig.d.ts +106 -104
- package/dist/custom/queries/useWidgetData.d.ts +106 -104
- package/dist/custom/runtime/DashboardRuntime.vue +2 -3
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +66 -10
- package/dist/custom/widgets/KpiCardWidget.vue +172 -9
- package/dist/custom/widgets/chart/ChartWidget.vue +5 -5
- package/dist/custom/widgets/registry.js +4 -4
- package/dist/custom/widgets/registry.ts +4 -4
- package/dist/endpoint/widgets.js +99 -14
- package/dist/schema/api.d.ts +11426 -1634
- package/dist/schema/api.js +118 -21
- package/dist/schema/widget.d.ts +425 -1980
- package/dist/schema/widget.js +13 -374
- package/dist/schema/widgets/charts.d.ts +1689 -0
- package/dist/schema/widgets/charts.js +92 -0
- package/dist/schema/widgets/common.d.ts +275 -0
- package/dist/schema/widgets/common.js +171 -0
- package/dist/schema/widgets/gauge-card.d.ts +172 -0
- package/dist/schema/widgets/gauge-card.js +28 -0
- package/dist/schema/widgets/kpi-card.d.ts +212 -0
- package/dist/schema/widgets/kpi-card.js +43 -0
- package/dist/schema/widgets/pivot-table.d.ts +196 -0
- package/dist/schema/widgets/pivot-table.js +17 -0
- package/dist/schema/widgets/table.d.ts +130 -0
- package/dist/schema/widgets/table.js +12 -0
- package/dist/services/widgetDataService.js +96 -2
- package/endpoint/widgets.ts +173 -26
- package/package.json +1 -1
- package/schema/api.ts +148 -22
- package/schema/widget.ts +43 -425
- package/schema/widgets/charts.ts +113 -0
- package/schema/widgets/common.ts +194 -0
- package/schema/widgets/gauge-card.ts +34 -0
- package/schema/widgets/kpi-card.ts +49 -0
- package/schema/widgets/pivot-table.ts +24 -0
- package/schema/widgets/table.ts +18 -0
- package/services/widgetDataService.ts +129 -3
|
@@ -60,6 +60,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
60
60
|
calc: string;
|
|
61
61
|
as: string;
|
|
62
62
|
})[] | undefined;
|
|
63
|
+
sparkline?: {
|
|
64
|
+
field: string;
|
|
65
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
66
|
+
as: string;
|
|
67
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
68
|
+
} | undefined;
|
|
63
69
|
filters?: any;
|
|
64
70
|
group_by?: (string | {
|
|
65
71
|
field: string;
|
|
@@ -73,16 +79,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
73
79
|
}[] | undefined;
|
|
74
80
|
limit?: number | undefined;
|
|
75
81
|
offset?: number | undefined;
|
|
76
|
-
time_series?: {
|
|
77
|
-
field: string;
|
|
78
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
79
|
-
timezone?: string | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
period?: {
|
|
82
|
-
field: string;
|
|
83
|
-
gte?: any;
|
|
84
|
-
lt?: any;
|
|
85
|
-
} | undefined;
|
|
86
82
|
bucket?: {
|
|
87
83
|
field: string;
|
|
88
84
|
buckets: {
|
|
@@ -164,6 +160,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
164
160
|
calc: string;
|
|
165
161
|
as: string;
|
|
166
162
|
})[] | undefined;
|
|
163
|
+
sparkline?: {
|
|
164
|
+
field: string;
|
|
165
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
166
|
+
as: string;
|
|
167
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
168
|
+
} | undefined;
|
|
167
169
|
filters?: any;
|
|
168
170
|
group_by?: (string | {
|
|
169
171
|
field: string;
|
|
@@ -177,16 +179,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
177
179
|
}[] | undefined;
|
|
178
180
|
limit?: number | undefined;
|
|
179
181
|
offset?: number | undefined;
|
|
180
|
-
time_series?: {
|
|
181
|
-
field: string;
|
|
182
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
183
|
-
timezone?: string | undefined;
|
|
184
|
-
} | undefined;
|
|
185
|
-
period?: {
|
|
186
|
-
field: string;
|
|
187
|
-
gte?: any;
|
|
188
|
-
lt?: any;
|
|
189
|
-
} | undefined;
|
|
190
182
|
bucket?: {
|
|
191
183
|
field: string;
|
|
192
184
|
buckets: {
|
|
@@ -241,8 +233,29 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
241
233
|
text?: string | undefined;
|
|
242
234
|
field?: string | undefined;
|
|
243
235
|
} | undefined;
|
|
244
|
-
comparison?:
|
|
245
|
-
|
|
236
|
+
comparison?: {
|
|
237
|
+
field: string;
|
|
238
|
+
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
239
|
+
positive_is_good?: boolean | undefined;
|
|
240
|
+
compact?: {
|
|
241
|
+
show?: boolean | undefined;
|
|
242
|
+
template?: string | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
tooltip?: {
|
|
245
|
+
label?: string | undefined;
|
|
246
|
+
template?: string | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
sparkline?: {
|
|
250
|
+
type?: "line" | undefined;
|
|
251
|
+
field: string;
|
|
252
|
+
x: string;
|
|
253
|
+
show_axes?: boolean | undefined;
|
|
254
|
+
show_labels?: boolean | undefined;
|
|
255
|
+
fill?: {
|
|
256
|
+
type?: "gradient" | "solid" | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
} | undefined;
|
|
246
259
|
};
|
|
247
260
|
query: {
|
|
248
261
|
resource: string;
|
|
@@ -259,6 +272,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
259
272
|
calc: string;
|
|
260
273
|
as: string;
|
|
261
274
|
})[] | undefined;
|
|
275
|
+
sparkline?: {
|
|
276
|
+
field: string;
|
|
277
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
278
|
+
as: string;
|
|
279
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
280
|
+
} | undefined;
|
|
262
281
|
filters?: any;
|
|
263
282
|
group_by?: (string | {
|
|
264
283
|
field: string;
|
|
@@ -272,16 +291,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
272
291
|
}[] | undefined;
|
|
273
292
|
limit?: number | undefined;
|
|
274
293
|
offset?: number | undefined;
|
|
275
|
-
time_series?: {
|
|
276
|
-
field: string;
|
|
277
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
278
|
-
timezone?: string | undefined;
|
|
279
|
-
} | undefined;
|
|
280
|
-
period?: {
|
|
281
|
-
field: string;
|
|
282
|
-
gte?: any;
|
|
283
|
-
lt?: any;
|
|
284
|
-
} | undefined;
|
|
285
294
|
bucket?: {
|
|
286
295
|
field: string;
|
|
287
296
|
buckets: {
|
|
@@ -344,6 +353,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
344
353
|
calc: string;
|
|
345
354
|
as: string;
|
|
346
355
|
})[] | undefined;
|
|
356
|
+
sparkline?: {
|
|
357
|
+
field: string;
|
|
358
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
359
|
+
as: string;
|
|
360
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
361
|
+
} | undefined;
|
|
347
362
|
filters?: any;
|
|
348
363
|
group_by?: (string | {
|
|
349
364
|
field: string;
|
|
@@ -357,16 +372,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
357
372
|
}[] | undefined;
|
|
358
373
|
limit?: number | undefined;
|
|
359
374
|
offset?: number | undefined;
|
|
360
|
-
time_series?: {
|
|
361
|
-
field: string;
|
|
362
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
363
|
-
timezone?: string | undefined;
|
|
364
|
-
} | undefined;
|
|
365
|
-
period?: {
|
|
366
|
-
field: string;
|
|
367
|
-
gte?: any;
|
|
368
|
-
lt?: any;
|
|
369
|
-
} | undefined;
|
|
370
375
|
bucket?: {
|
|
371
376
|
field: string;
|
|
372
377
|
buckets: {
|
|
@@ -426,6 +431,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
426
431
|
calc: string;
|
|
427
432
|
as: string;
|
|
428
433
|
})[] | undefined;
|
|
434
|
+
sparkline?: {
|
|
435
|
+
field: string;
|
|
436
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
437
|
+
as: string;
|
|
438
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
439
|
+
} | undefined;
|
|
429
440
|
filters?: any;
|
|
430
441
|
group_by?: (string | {
|
|
431
442
|
field: string;
|
|
@@ -439,16 +450,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
439
450
|
}[] | undefined;
|
|
440
451
|
limit?: number | undefined;
|
|
441
452
|
offset?: number | undefined;
|
|
442
|
-
time_series?: {
|
|
443
|
-
field: string;
|
|
444
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
445
|
-
timezone?: string | undefined;
|
|
446
|
-
} | undefined;
|
|
447
|
-
period?: {
|
|
448
|
-
field: string;
|
|
449
|
-
gte?: any;
|
|
450
|
-
lt?: any;
|
|
451
|
-
} | undefined;
|
|
452
453
|
bucket?: {
|
|
453
454
|
field: string;
|
|
454
455
|
buckets: {
|
|
@@ -525,6 +526,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
525
526
|
calc: string;
|
|
526
527
|
as: string;
|
|
527
528
|
})[] | undefined;
|
|
529
|
+
sparkline?: {
|
|
530
|
+
field: string;
|
|
531
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
532
|
+
as: string;
|
|
533
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
534
|
+
} | undefined;
|
|
528
535
|
filters?: any;
|
|
529
536
|
group_by?: (string | {
|
|
530
537
|
field: string;
|
|
@@ -538,16 +545,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
538
545
|
}[] | undefined;
|
|
539
546
|
limit?: number | undefined;
|
|
540
547
|
offset?: number | undefined;
|
|
541
|
-
time_series?: {
|
|
542
|
-
field: string;
|
|
543
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
544
|
-
timezone?: string | undefined;
|
|
545
|
-
} | undefined;
|
|
546
|
-
period?: {
|
|
547
|
-
field: string;
|
|
548
|
-
gte?: any;
|
|
549
|
-
lt?: any;
|
|
550
|
-
} | undefined;
|
|
551
548
|
bucket?: {
|
|
552
549
|
field: string;
|
|
553
550
|
buckets: {
|
|
@@ -629,6 +626,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
629
626
|
calc: string;
|
|
630
627
|
as: string;
|
|
631
628
|
})[] | undefined;
|
|
629
|
+
sparkline?: {
|
|
630
|
+
field: string;
|
|
631
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
632
|
+
as: string;
|
|
633
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
634
|
+
} | undefined;
|
|
632
635
|
filters?: any;
|
|
633
636
|
group_by?: (string | {
|
|
634
637
|
field: string;
|
|
@@ -642,16 +645,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
642
645
|
}[] | undefined;
|
|
643
646
|
limit?: number | undefined;
|
|
644
647
|
offset?: number | undefined;
|
|
645
|
-
time_series?: {
|
|
646
|
-
field: string;
|
|
647
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
648
|
-
timezone?: string | undefined;
|
|
649
|
-
} | undefined;
|
|
650
|
-
period?: {
|
|
651
|
-
field: string;
|
|
652
|
-
gte?: any;
|
|
653
|
-
lt?: any;
|
|
654
|
-
} | undefined;
|
|
655
648
|
bucket?: {
|
|
656
649
|
field: string;
|
|
657
650
|
buckets: {
|
|
@@ -706,8 +699,29 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
706
699
|
text?: string | undefined;
|
|
707
700
|
field?: string | undefined;
|
|
708
701
|
} | undefined;
|
|
709
|
-
comparison?:
|
|
710
|
-
|
|
702
|
+
comparison?: {
|
|
703
|
+
field: string;
|
|
704
|
+
format?: import("../model/dashboard.types.js").ValueFormat | undefined;
|
|
705
|
+
positive_is_good?: boolean | undefined;
|
|
706
|
+
compact?: {
|
|
707
|
+
show?: boolean | undefined;
|
|
708
|
+
template?: string | undefined;
|
|
709
|
+
} | undefined;
|
|
710
|
+
tooltip?: {
|
|
711
|
+
label?: string | undefined;
|
|
712
|
+
template?: string | undefined;
|
|
713
|
+
} | undefined;
|
|
714
|
+
} | undefined;
|
|
715
|
+
sparkline?: {
|
|
716
|
+
type?: "line" | undefined;
|
|
717
|
+
field: string;
|
|
718
|
+
x: string;
|
|
719
|
+
show_axes?: boolean | undefined;
|
|
720
|
+
show_labels?: boolean | undefined;
|
|
721
|
+
fill?: {
|
|
722
|
+
type?: "gradient" | "solid" | undefined;
|
|
723
|
+
} | undefined;
|
|
724
|
+
} | undefined;
|
|
711
725
|
};
|
|
712
726
|
query: {
|
|
713
727
|
resource: string;
|
|
@@ -724,6 +738,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
724
738
|
calc: string;
|
|
725
739
|
as: string;
|
|
726
740
|
})[] | undefined;
|
|
741
|
+
sparkline?: {
|
|
742
|
+
field: string;
|
|
743
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
744
|
+
as: string;
|
|
745
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
746
|
+
} | undefined;
|
|
727
747
|
filters?: any;
|
|
728
748
|
group_by?: (string | {
|
|
729
749
|
field: string;
|
|
@@ -737,16 +757,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
737
757
|
}[] | undefined;
|
|
738
758
|
limit?: number | undefined;
|
|
739
759
|
offset?: number | undefined;
|
|
740
|
-
time_series?: {
|
|
741
|
-
field: string;
|
|
742
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
743
|
-
timezone?: string | undefined;
|
|
744
|
-
} | undefined;
|
|
745
|
-
period?: {
|
|
746
|
-
field: string;
|
|
747
|
-
gte?: any;
|
|
748
|
-
lt?: any;
|
|
749
|
-
} | undefined;
|
|
750
760
|
bucket?: {
|
|
751
761
|
field: string;
|
|
752
762
|
buckets: {
|
|
@@ -809,6 +819,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
809
819
|
calc: string;
|
|
810
820
|
as: string;
|
|
811
821
|
})[] | undefined;
|
|
822
|
+
sparkline?: {
|
|
823
|
+
field: string;
|
|
824
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
825
|
+
as: string;
|
|
826
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
827
|
+
} | undefined;
|
|
812
828
|
filters?: any;
|
|
813
829
|
group_by?: (string | {
|
|
814
830
|
field: string;
|
|
@@ -822,16 +838,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
822
838
|
}[] | undefined;
|
|
823
839
|
limit?: number | undefined;
|
|
824
840
|
offset?: number | undefined;
|
|
825
|
-
time_series?: {
|
|
826
|
-
field: string;
|
|
827
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
828
|
-
timezone?: string | undefined;
|
|
829
|
-
} | undefined;
|
|
830
|
-
period?: {
|
|
831
|
-
field: string;
|
|
832
|
-
gte?: any;
|
|
833
|
-
lt?: any;
|
|
834
|
-
} | undefined;
|
|
835
841
|
bucket?: {
|
|
836
842
|
field: string;
|
|
837
843
|
buckets: {
|
|
@@ -891,6 +897,12 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
891
897
|
calc: string;
|
|
892
898
|
as: string;
|
|
893
899
|
})[] | undefined;
|
|
900
|
+
sparkline?: {
|
|
901
|
+
field: string;
|
|
902
|
+
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
903
|
+
as: string;
|
|
904
|
+
fill_missing?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
905
|
+
} | undefined;
|
|
894
906
|
filters?: any;
|
|
895
907
|
group_by?: (string | {
|
|
896
908
|
field: string;
|
|
@@ -904,16 +916,6 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
904
916
|
}[] | undefined;
|
|
905
917
|
limit?: number | undefined;
|
|
906
918
|
offset?: number | undefined;
|
|
907
|
-
time_series?: {
|
|
908
|
-
field: string;
|
|
909
|
-
grain: import("../model/dashboard.types.js").TimeGrain;
|
|
910
|
-
timezone?: string | undefined;
|
|
911
|
-
} | undefined;
|
|
912
|
-
period?: {
|
|
913
|
-
field: string;
|
|
914
|
-
gte?: any;
|
|
915
|
-
lt?: any;
|
|
916
|
-
} | undefined;
|
|
917
919
|
bucket?: {
|
|
918
920
|
field: string;
|
|
919
921
|
buckets: {
|