@masterteam/dashboard-builder 0.0.10 → 0.0.11
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/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-697C4AOo.mjs → masterteam-dashboard-builder-dashboard-dialog.component-CF1Lnyxf.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-697C4AOo.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-CF1Lnyxf.mjs.map} +1 -1
- package/fesm2022/masterteam-dashboard-builder.mjs +78 -16
- package/fesm2022/masterteam-dashboard-builder.mjs.map +1 -1
- package/package.json +2 -2
- package/types/masterteam-dashboard-builder.d.ts +16 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/dashboard-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/dashboard-builder",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"primeng": "21.0.1",
|
|
22
22
|
"rxjs": "^7.8.2",
|
|
23
23
|
"tailwindcss": "^4.1.17",
|
|
24
|
-
"@masterteam/components": "^0.0.
|
|
24
|
+
"@masterteam/components": "^0.0.120",
|
|
25
25
|
"@masterteam/icons": "^0.0.14"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
@@ -821,6 +821,8 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
821
821
|
private cdr;
|
|
822
822
|
private dashboardService;
|
|
823
823
|
private storeService;
|
|
824
|
+
private itemStoreService;
|
|
825
|
+
private route;
|
|
824
826
|
/** Whether to wrap content in mt-page component */
|
|
825
827
|
readonly isPage: _angular_core.InputSignal<boolean>;
|
|
826
828
|
/** Page title when isPage is true */
|
|
@@ -837,6 +839,8 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
837
839
|
readonly dialogsData: _angular_core.InputSignal<DashboardDialogItem[]>;
|
|
838
840
|
/** Pre-loaded filters (optional) */
|
|
839
841
|
readonly filtersData: _angular_core.InputSignal<any[]>;
|
|
842
|
+
/** Dashboard-wide extra filters applied to every item request */
|
|
843
|
+
readonly extraFilters: _angular_core.InputSignal<Record<string, any>>;
|
|
840
844
|
/** Show filters sidebar */
|
|
841
845
|
readonly showFilters: _angular_core.InputSignal<boolean>;
|
|
842
846
|
/** Emit when page is loaded */
|
|
@@ -860,11 +864,13 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
860
864
|
readonly layoutHeight: _angular_core.Signal<string>;
|
|
861
865
|
private subscription;
|
|
862
866
|
private readonly rowHeight;
|
|
867
|
+
private lastExtraFiltersSignature;
|
|
863
868
|
private readonly hasSplitPreloadedData;
|
|
864
869
|
private dashboardDataEffect;
|
|
865
870
|
private chartsDataEffect;
|
|
866
871
|
private dialogsDataEffect;
|
|
867
872
|
private filtersDataEffect;
|
|
873
|
+
private extraFiltersEffect;
|
|
868
874
|
private preloadedInputsEffect;
|
|
869
875
|
private pageIdEffect;
|
|
870
876
|
ngOnInit(): void;
|
|
@@ -937,8 +943,9 @@ declare class DashboardViewer implements OnInit, OnDestroy {
|
|
|
937
943
|
* Track function for ngFor
|
|
938
944
|
*/
|
|
939
945
|
trackByDashboardId(_index: number, item: DashboardChartItem): string;
|
|
946
|
+
private refreshAllItems;
|
|
940
947
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardViewer, never>;
|
|
941
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardViewer, "mt-dashboard-viewer", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "chartsData": { "alias": "chartsData"; "required": false; "isSignal": true; }; "dialogsData": { "alias": "dialogsData"; "required": false; "isSignal": true; }; "filtersData": { "alias": "filtersData"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "onBack": "onBack"; "chartClick": "chartClick"; }, never, never, true, never>;
|
|
948
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardViewer, "mt-dashboard-viewer", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "chartsData": { "alias": "chartsData"; "required": false; "isSignal": true; }; "dialogsData": { "alias": "dialogsData"; "required": false; "isSignal": true; }; "filtersData": { "alias": "filtersData"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; }, { "pageLoaded": "pageLoaded"; "onBack": "onBack"; "chartClick": "chartClick"; }, never, never, true, never>;
|
|
942
949
|
}
|
|
943
950
|
|
|
944
951
|
/**
|
|
@@ -1252,6 +1259,10 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
1252
1259
|
readonly isDialog: _angular_core.InputSignal<boolean>;
|
|
1253
1260
|
/** Query params passed from parent (e.g., dialog) */
|
|
1254
1261
|
readonly queryParams: _angular_core.InputSignal<Record<string, any>>;
|
|
1262
|
+
/** Dashboard-wide extra filters passed from viewer/context */
|
|
1263
|
+
readonly extraFilters: _angular_core.InputSignal<Record<string, any>>;
|
|
1264
|
+
/** Skip global route/query filters for this item */
|
|
1265
|
+
readonly ignoreQueryFilter: _angular_core.InputSignal<boolean>;
|
|
1255
1266
|
/** Emitted when an action is triggered (useful for dialog communication) */
|
|
1256
1267
|
readonly actionTriggered: _angular_core.OutputEmitterRef<any>;
|
|
1257
1268
|
/** Dashboard ID - derived from config or chartTypeId */
|
|
@@ -1310,8 +1321,11 @@ declare class DashboardItem implements OnInit, OnDestroy {
|
|
|
1310
1321
|
* This is the main entry point for action handling.
|
|
1311
1322
|
*/
|
|
1312
1323
|
doActions(eventData: any, eventType: string): void;
|
|
1324
|
+
private buildRequestFilters;
|
|
1325
|
+
private buildParentFilter;
|
|
1326
|
+
private mergeRequestFilters;
|
|
1313
1327
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardItem, never>;
|
|
1314
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardItem, "mt-dashboard-item", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; }, never, never, true, never>;
|
|
1328
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardItem, "mt-dashboard-item", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "chartTypeId": { "alias": "chartTypeId"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "inGroup": { "alias": "inGroup"; "required": false; "isSignal": true; }; "isDialog": { "alias": "isDialog"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "extraFilters": { "alias": "extraFilters"; "required": false; "isSignal": true; }; "ignoreQueryFilter": { "alias": "ignoreQueryFilter"; "required": false; "isSignal": true; }; }, { "actionTriggered": "actionTriggered"; }, never, never, true, never>;
|
|
1315
1329
|
}
|
|
1316
1330
|
|
|
1317
1331
|
interface HeaderCardConfig$1 {
|