@adminforth/dashboard 1.7.0 → 1.9.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/README.md +81 -55
- package/custom/model/dashboard.types.ts +17 -9
- package/custom/skills/adminforth-dashboard/SKILL.md +28 -12
- package/dist/custom/model/dashboard.types.d.ts +15 -8
- package/dist/custom/model/dashboard.types.ts +17 -9
- package/dist/custom/queries/useDashboardConfig.d.ts +222 -4
- package/dist/custom/queries/useWidgetData.d.ts +222 -4
- package/dist/custom/skills/adminforth-dashboard/SKILL.md +28 -12
- package/dist/schema/api.d.ts +5440 -941
- package/dist/schema/api.js +2 -2
- package/dist/schema/widget.d.ts +432 -23
- package/dist/schema/widget.js +1 -1
- package/dist/schema/widgets/charts.d.ts +558 -28
- package/dist/schema/widgets/charts.js +2 -2
- package/dist/schema/widgets/common.d.ts +17 -6
- package/dist/schema/widgets/common.js +16 -7
- package/dist/schema/widgets/gauge-card.d.ts +38 -2
- package/dist/schema/widgets/kpi-card.d.ts +38 -2
- package/dist/schema/widgets/pivot-table.d.ts +38 -2
- package/dist/schema/widgets/table.d.ts +38 -2
- package/dist/services/calc-evaluator.d.ts +1 -0
- package/dist/services/calc-evaluator.js +28 -0
- package/dist/services/dashboardFilterService.d.ts +5 -0
- package/dist/services/dashboardFilterService.js +125 -0
- package/dist/services/widgetDataService.js +53 -201
- package/package.json +2 -1
- package/schema/api.ts +1 -2
- package/schema/widget.ts +0 -1
- package/schema/widgets/charts.ts +1 -2
- package/schema/widgets/common.ts +16 -7
- package/services/calc-evaluator.ts +33 -0
- package/services/dashboardFilterService.ts +162 -0
- package/services/widgetDataService.ts +88 -263
|
@@ -46,6 +46,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
46
46
|
page_size?: number | undefined;
|
|
47
47
|
} | undefined;
|
|
48
48
|
query: {
|
|
49
|
+
source?: "resource" | undefined;
|
|
49
50
|
resource: string;
|
|
50
51
|
select?: ({
|
|
51
52
|
field: string;
|
|
@@ -92,6 +93,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
92
93
|
as: string;
|
|
93
94
|
}[] | undefined;
|
|
94
95
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
source: "steps";
|
|
98
|
+
steps: {
|
|
99
|
+
name: string;
|
|
100
|
+
resource: string;
|
|
101
|
+
select: {
|
|
102
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
103
|
+
field?: string | undefined;
|
|
104
|
+
as: string;
|
|
105
|
+
filters?: any;
|
|
106
|
+
}[];
|
|
107
|
+
filters?: any;
|
|
108
|
+
}[];
|
|
109
|
+
calcs?: {
|
|
110
|
+
calc: string;
|
|
111
|
+
as: string;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
order_by?: {
|
|
114
|
+
field: string;
|
|
115
|
+
direction?: "asc" | "desc" | undefined;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
limit?: number | undefined;
|
|
118
|
+
offset?: number | undefined;
|
|
119
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
95
120
|
};
|
|
96
121
|
} | {
|
|
97
122
|
id: string;
|
|
@@ -146,6 +171,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
146
171
|
colors?: string[] | undefined;
|
|
147
172
|
};
|
|
148
173
|
query: {
|
|
174
|
+
source?: "resource" | undefined;
|
|
149
175
|
resource: string;
|
|
150
176
|
select?: ({
|
|
151
177
|
field: string;
|
|
@@ -193,21 +219,29 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
193
219
|
}[] | undefined;
|
|
194
220
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
195
221
|
} | {
|
|
222
|
+
source: "steps";
|
|
196
223
|
steps: {
|
|
197
224
|
name: string;
|
|
198
225
|
resource: string;
|
|
199
|
-
|
|
226
|
+
select: {
|
|
200
227
|
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
201
228
|
field?: string | undefined;
|
|
202
229
|
as: string;
|
|
203
230
|
filters?: any;
|
|
204
|
-
};
|
|
231
|
+
}[];
|
|
205
232
|
filters?: any;
|
|
206
233
|
}[];
|
|
207
234
|
calcs?: {
|
|
208
235
|
calc: string;
|
|
209
236
|
as: string;
|
|
210
237
|
}[] | undefined;
|
|
238
|
+
order_by?: {
|
|
239
|
+
field: string;
|
|
240
|
+
direction?: "asc" | "desc" | undefined;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
limit?: number | undefined;
|
|
243
|
+
offset?: number | undefined;
|
|
244
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
211
245
|
};
|
|
212
246
|
} | {
|
|
213
247
|
id: string;
|
|
@@ -258,6 +292,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
258
292
|
} | undefined;
|
|
259
293
|
};
|
|
260
294
|
query: {
|
|
295
|
+
source?: "resource" | undefined;
|
|
261
296
|
resource: string;
|
|
262
297
|
select?: ({
|
|
263
298
|
field: string;
|
|
@@ -304,6 +339,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
304
339
|
as: string;
|
|
305
340
|
}[] | undefined;
|
|
306
341
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
342
|
+
} | {
|
|
343
|
+
source: "steps";
|
|
344
|
+
steps: {
|
|
345
|
+
name: string;
|
|
346
|
+
resource: string;
|
|
347
|
+
select: {
|
|
348
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
349
|
+
field?: string | undefined;
|
|
350
|
+
as: string;
|
|
351
|
+
filters?: any;
|
|
352
|
+
}[];
|
|
353
|
+
filters?: any;
|
|
354
|
+
}[];
|
|
355
|
+
calcs?: {
|
|
356
|
+
calc: string;
|
|
357
|
+
as: string;
|
|
358
|
+
}[] | undefined;
|
|
359
|
+
order_by?: {
|
|
360
|
+
field: string;
|
|
361
|
+
direction?: "asc" | "desc" | undefined;
|
|
362
|
+
}[] | undefined;
|
|
363
|
+
limit?: number | undefined;
|
|
364
|
+
offset?: number | undefined;
|
|
365
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
307
366
|
};
|
|
308
367
|
} | {
|
|
309
368
|
id: string;
|
|
@@ -339,6 +398,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
339
398
|
color?: string | undefined;
|
|
340
399
|
};
|
|
341
400
|
query: {
|
|
401
|
+
source?: "resource" | undefined;
|
|
342
402
|
resource: string;
|
|
343
403
|
select?: ({
|
|
344
404
|
field: string;
|
|
@@ -385,6 +445,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
385
445
|
as: string;
|
|
386
446
|
}[] | undefined;
|
|
387
447
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
448
|
+
} | {
|
|
449
|
+
source: "steps";
|
|
450
|
+
steps: {
|
|
451
|
+
name: string;
|
|
452
|
+
resource: string;
|
|
453
|
+
select: {
|
|
454
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
455
|
+
field?: string | undefined;
|
|
456
|
+
as: string;
|
|
457
|
+
filters?: any;
|
|
458
|
+
}[];
|
|
459
|
+
filters?: any;
|
|
460
|
+
}[];
|
|
461
|
+
calcs?: {
|
|
462
|
+
calc: string;
|
|
463
|
+
as: string;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
order_by?: {
|
|
466
|
+
field: string;
|
|
467
|
+
direction?: "asc" | "desc" | undefined;
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
limit?: number | undefined;
|
|
470
|
+
offset?: number | undefined;
|
|
471
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
388
472
|
};
|
|
389
473
|
} | {
|
|
390
474
|
id: string;
|
|
@@ -417,6 +501,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
417
501
|
}[];
|
|
418
502
|
};
|
|
419
503
|
query: {
|
|
504
|
+
source?: "resource" | undefined;
|
|
420
505
|
resource: string;
|
|
421
506
|
select?: ({
|
|
422
507
|
field: string;
|
|
@@ -463,6 +548,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
463
548
|
as: string;
|
|
464
549
|
}[] | undefined;
|
|
465
550
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
551
|
+
} | {
|
|
552
|
+
source: "steps";
|
|
553
|
+
steps: {
|
|
554
|
+
name: string;
|
|
555
|
+
resource: string;
|
|
556
|
+
select: {
|
|
557
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
558
|
+
field?: string | undefined;
|
|
559
|
+
as: string;
|
|
560
|
+
filters?: any;
|
|
561
|
+
}[];
|
|
562
|
+
filters?: any;
|
|
563
|
+
}[];
|
|
564
|
+
calcs?: {
|
|
565
|
+
calc: string;
|
|
566
|
+
as: string;
|
|
567
|
+
}[] | undefined;
|
|
568
|
+
order_by?: {
|
|
569
|
+
field: string;
|
|
570
|
+
direction?: "asc" | "desc" | undefined;
|
|
571
|
+
}[] | undefined;
|
|
572
|
+
limit?: number | undefined;
|
|
573
|
+
offset?: number | undefined;
|
|
574
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
466
575
|
};
|
|
467
576
|
})[];
|
|
468
577
|
};
|
|
@@ -512,6 +621,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
512
621
|
page_size?: number | undefined;
|
|
513
622
|
} | undefined;
|
|
514
623
|
query: {
|
|
624
|
+
source?: "resource" | undefined;
|
|
515
625
|
resource: string;
|
|
516
626
|
select?: ({
|
|
517
627
|
field: string;
|
|
@@ -558,6 +668,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
558
668
|
as: string;
|
|
559
669
|
}[] | undefined;
|
|
560
670
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
671
|
+
} | {
|
|
672
|
+
source: "steps";
|
|
673
|
+
steps: {
|
|
674
|
+
name: string;
|
|
675
|
+
resource: string;
|
|
676
|
+
select: {
|
|
677
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
678
|
+
field?: string | undefined;
|
|
679
|
+
as: string;
|
|
680
|
+
filters?: any;
|
|
681
|
+
}[];
|
|
682
|
+
filters?: any;
|
|
683
|
+
}[];
|
|
684
|
+
calcs?: {
|
|
685
|
+
calc: string;
|
|
686
|
+
as: string;
|
|
687
|
+
}[] | undefined;
|
|
688
|
+
order_by?: {
|
|
689
|
+
field: string;
|
|
690
|
+
direction?: "asc" | "desc" | undefined;
|
|
691
|
+
}[] | undefined;
|
|
692
|
+
limit?: number | undefined;
|
|
693
|
+
offset?: number | undefined;
|
|
694
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
561
695
|
};
|
|
562
696
|
} | {
|
|
563
697
|
id: string;
|
|
@@ -612,6 +746,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
612
746
|
colors?: string[] | undefined;
|
|
613
747
|
};
|
|
614
748
|
query: {
|
|
749
|
+
source?: "resource" | undefined;
|
|
615
750
|
resource: string;
|
|
616
751
|
select?: ({
|
|
617
752
|
field: string;
|
|
@@ -659,21 +794,29 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
659
794
|
}[] | undefined;
|
|
660
795
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
661
796
|
} | {
|
|
797
|
+
source: "steps";
|
|
662
798
|
steps: {
|
|
663
799
|
name: string;
|
|
664
800
|
resource: string;
|
|
665
|
-
|
|
801
|
+
select: {
|
|
666
802
|
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
667
803
|
field?: string | undefined;
|
|
668
804
|
as: string;
|
|
669
805
|
filters?: any;
|
|
670
|
-
};
|
|
806
|
+
}[];
|
|
671
807
|
filters?: any;
|
|
672
808
|
}[];
|
|
673
809
|
calcs?: {
|
|
674
810
|
calc: string;
|
|
675
811
|
as: string;
|
|
676
812
|
}[] | undefined;
|
|
813
|
+
order_by?: {
|
|
814
|
+
field: string;
|
|
815
|
+
direction?: "asc" | "desc" | undefined;
|
|
816
|
+
}[] | undefined;
|
|
817
|
+
limit?: number | undefined;
|
|
818
|
+
offset?: number | undefined;
|
|
819
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
677
820
|
};
|
|
678
821
|
} | {
|
|
679
822
|
id: string;
|
|
@@ -724,6 +867,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
724
867
|
} | undefined;
|
|
725
868
|
};
|
|
726
869
|
query: {
|
|
870
|
+
source?: "resource" | undefined;
|
|
727
871
|
resource: string;
|
|
728
872
|
select?: ({
|
|
729
873
|
field: string;
|
|
@@ -770,6 +914,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
770
914
|
as: string;
|
|
771
915
|
}[] | undefined;
|
|
772
916
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
917
|
+
} | {
|
|
918
|
+
source: "steps";
|
|
919
|
+
steps: {
|
|
920
|
+
name: string;
|
|
921
|
+
resource: string;
|
|
922
|
+
select: {
|
|
923
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
924
|
+
field?: string | undefined;
|
|
925
|
+
as: string;
|
|
926
|
+
filters?: any;
|
|
927
|
+
}[];
|
|
928
|
+
filters?: any;
|
|
929
|
+
}[];
|
|
930
|
+
calcs?: {
|
|
931
|
+
calc: string;
|
|
932
|
+
as: string;
|
|
933
|
+
}[] | undefined;
|
|
934
|
+
order_by?: {
|
|
935
|
+
field: string;
|
|
936
|
+
direction?: "asc" | "desc" | undefined;
|
|
937
|
+
}[] | undefined;
|
|
938
|
+
limit?: number | undefined;
|
|
939
|
+
offset?: number | undefined;
|
|
940
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
773
941
|
};
|
|
774
942
|
} | {
|
|
775
943
|
id: string;
|
|
@@ -805,6 +973,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
805
973
|
color?: string | undefined;
|
|
806
974
|
};
|
|
807
975
|
query: {
|
|
976
|
+
source?: "resource" | undefined;
|
|
808
977
|
resource: string;
|
|
809
978
|
select?: ({
|
|
810
979
|
field: string;
|
|
@@ -851,6 +1020,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
851
1020
|
as: string;
|
|
852
1021
|
}[] | undefined;
|
|
853
1022
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
1023
|
+
} | {
|
|
1024
|
+
source: "steps";
|
|
1025
|
+
steps: {
|
|
1026
|
+
name: string;
|
|
1027
|
+
resource: string;
|
|
1028
|
+
select: {
|
|
1029
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
1030
|
+
field?: string | undefined;
|
|
1031
|
+
as: string;
|
|
1032
|
+
filters?: any;
|
|
1033
|
+
}[];
|
|
1034
|
+
filters?: any;
|
|
1035
|
+
}[];
|
|
1036
|
+
calcs?: {
|
|
1037
|
+
calc: string;
|
|
1038
|
+
as: string;
|
|
1039
|
+
}[] | undefined;
|
|
1040
|
+
order_by?: {
|
|
1041
|
+
field: string;
|
|
1042
|
+
direction?: "asc" | "desc" | undefined;
|
|
1043
|
+
}[] | undefined;
|
|
1044
|
+
limit?: number | undefined;
|
|
1045
|
+
offset?: number | undefined;
|
|
1046
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
854
1047
|
};
|
|
855
1048
|
} | {
|
|
856
1049
|
id: string;
|
|
@@ -883,6 +1076,7 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
883
1076
|
}[];
|
|
884
1077
|
};
|
|
885
1078
|
query: {
|
|
1079
|
+
source?: "resource" | undefined;
|
|
886
1080
|
resource: string;
|
|
887
1081
|
select?: ({
|
|
888
1082
|
field: string;
|
|
@@ -929,6 +1123,30 @@ export declare function useDashboardConfig(slug: Ref<string>): {
|
|
|
929
1123
|
as: string;
|
|
930
1124
|
}[] | undefined;
|
|
931
1125
|
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
1126
|
+
} | {
|
|
1127
|
+
source: "steps";
|
|
1128
|
+
steps: {
|
|
1129
|
+
name: string;
|
|
1130
|
+
resource: string;
|
|
1131
|
+
select: {
|
|
1132
|
+
agg: import("../model/dashboard.types.js").QueryAggregateOperation;
|
|
1133
|
+
field?: string | undefined;
|
|
1134
|
+
as: string;
|
|
1135
|
+
filters?: any;
|
|
1136
|
+
}[];
|
|
1137
|
+
filters?: any;
|
|
1138
|
+
}[];
|
|
1139
|
+
calcs?: {
|
|
1140
|
+
calc: string;
|
|
1141
|
+
as: string;
|
|
1142
|
+
}[] | undefined;
|
|
1143
|
+
order_by?: {
|
|
1144
|
+
field: string;
|
|
1145
|
+
direction?: "asc" | "desc" | undefined;
|
|
1146
|
+
}[] | undefined;
|
|
1147
|
+
limit?: number | undefined;
|
|
1148
|
+
offset?: number | undefined;
|
|
1149
|
+
formatting?: Record<string, import("../model/dashboard.types.js").JsonValue> | undefined;
|
|
932
1150
|
};
|
|
933
1151
|
})[];
|
|
934
1152
|
};
|