@acorex-platform/module-report-management-client 1.0.1 → 2.0.0-beta.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/fesm2022/{acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-eSjEqt5D.mjs → acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs} +36 -53
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs +0 -14
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs +2 -16
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs +179 -25
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs} +4 -20
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs} +4 -4
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs +292 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +1866 -25
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-CaxletoS.mjs → acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-CaxletoS.mjs.map → acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-CK5bCQhm.mjs → acorex-platform-module-report-management-client-entity-reports-page.component-D9AfxSeN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-CK5bCQhm.mjs.map → acorex-platform-module-report-management-client-entity-reports-page.component-D9AfxSeN.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs +0 -2
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-definition-access.service-DUpwky68.mjs +67 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-definition-access.service-DUpwky68.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-filter-page.component-C8XSGSdz.mjs +255 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-filter-page.component-C8XSGSdz.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs +28 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page.component-DFmdGIY9.mjs +876 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page.component-DFmdGIY9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs → acorex-platform-module-report-management-client-report-layout-switcher.util-DRG-8RcA.mjs} +258 -41
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-DRG-8RcA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-CKE8NG5T.mjs → acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-CKE8NG5T.mjs.map → acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs → acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs} +84 -26
- package/fesm2022/acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -1
- package/i18n/en-AU/report-management.json +260 -35
- package/i18n/en-US/report-management.json +260 -35
- package/i18n/fa-IR/report-management.json +260 -35
- package/package.json +2 -9
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +395 -109
- package/types/acorex-platform-module-report-management-client.d.ts +5 -5
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-eSjEqt5D.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs +0 -157
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs +0 -197
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs +0 -97
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs +0 -137
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs +0 -124
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs.map +0 -1
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.d.ts +0 -5
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.d.ts +0 -5
|
@@ -6,8 +6,8 @@ import { AXPRootLayoutComponent } from '@acorex-platform/framework-client/themes
|
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { Injectable, inject, DestroyRef, Injector, effect, NgModule } from '@angular/core';
|
|
8
8
|
import { ROUTES } from '@angular/router';
|
|
9
|
-
import { AXPInsightsReportingPermissionKeys, RootConfig, AXPReportManagementMenuKeys, AXPReportManagementFeatureKeys, AXPReportManagementSettings, AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS, buildReportGenerationNotificationCorrelationId, AXMReportManagementQueryKeys, REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY } from '@acorex-platform/module-report-management-client/contracts';
|
|
10
|
-
import { AXPTabNavigationService, AXPBackgroundOperationHandler, AXP_BACKGROUND_OPERATION_HANDLERS, AXP_USER_NOTIFICATION_SERVICE, AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
9
|
+
import { AXPInsightsReportingPermissionKeys, RootConfig, AXPReportManagementMenuKeys, AXPReportManagementFeatureKeys, AXPReportManagementSettings, AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS, buildReportGenerationNotificationCorrelationId, AXMReportManagementQueryKeys, REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY, reportTableInterchangeExportActions } from '@acorex-platform/module-report-management-client/contracts';
|
|
10
|
+
import { AXPTabNavigationService, AXPBackgroundOperationHandler, AXP_BACKGROUND_OPERATION_HANDLERS, AXP_USER_NOTIFICATION_SERVICE, AXP_PROTECTED_ROUTE_GUARDS, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXPDataRefreshService } from '@acorex-platform/framework-client/common';
|
|
11
11
|
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
|
|
12
12
|
import { AXPQueryService, AXPCommandService, AXPRuntimeModule, provideCommandSetups } from '@acorex-platform/framework-client/runtime';
|
|
13
13
|
import { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';
|
|
@@ -548,8 +548,7 @@ class AXMReportGenerationBackgroundOperationHandler extends AXPBackgroundOperati
|
|
|
548
548
|
if (command.name !== 'click') {
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
551
|
-
const reportRequestId = get(operation.data, 'reportRequestId') ??
|
|
552
|
-
get(operation.data, 'payload.reportRequestId') ??
|
|
551
|
+
const reportRequestId = get(operation.data, 'payload.reportRequestId') ??
|
|
553
552
|
get(operation.data, 'command.payload.reportRequestId');
|
|
554
553
|
if (typeof reportRequestId !== 'string' || !reportRequestId.trim()) {
|
|
555
554
|
return;
|
|
@@ -827,10 +826,12 @@ function provideReportGenerationInboxToastBridge() {
|
|
|
827
826
|
name: 'report-generation-inbox-toast-bridge',
|
|
828
827
|
priority: AXP_APP_STARTUP_PRIORITY.realtimeHandlers,
|
|
829
828
|
run: async () => {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
829
|
+
// Report toasts are an optional observer. Waiting for an inbox network
|
|
830
|
+
// refresh here blocks the entire Angular bootstrap on a disconnected device.
|
|
831
|
+
// Data readiness and transport are adapter responsibilities. The bridge
|
|
832
|
+
// observes loading/data state and must never hold application startup.
|
|
833
|
+
if (inbox)
|
|
834
|
+
void inbox.ensureReady().catch(() => undefined);
|
|
834
835
|
bridge.start();
|
|
835
836
|
},
|
|
836
837
|
};
|
|
@@ -851,12 +852,12 @@ function routesFacory() {
|
|
|
851
852
|
children: [
|
|
852
853
|
{
|
|
853
854
|
path: ':reportId',
|
|
854
|
-
loadComponent: () => import('./acorex-platform-module-report-management-client-report-viewer-page.component-
|
|
855
|
+
loadComponent: () => import('./acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs').then((c) => c.AXPReportViewerPageComponent),
|
|
855
856
|
data: { reuse: true },
|
|
856
857
|
},
|
|
857
858
|
{
|
|
858
859
|
path: '',
|
|
859
|
-
loadComponent: () => import('./acorex-platform-module-report-management-client-report-viewer-page.component-
|
|
860
|
+
loadComponent: () => import('./acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs').then((c) => c.AXPReportViewerPageComponent),
|
|
860
861
|
data: { reuse: true },
|
|
861
862
|
},
|
|
862
863
|
],
|
|
@@ -913,7 +914,8 @@ class AXMReportManagementModule {
|
|
|
913
914
|
multi: true,
|
|
914
915
|
useFactory: () => createEntityReportsPlugin(inject(Injector)),
|
|
915
916
|
},
|
|
916
|
-
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-report-management-client-entity-reports-page-component.provider-
|
|
917
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs').then((m) => m.AXMEntityReportsPageComponentProvider)),
|
|
918
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs').then((m) => m.AXMReportLayoutPageComponentProvider)),
|
|
917
919
|
], imports: [AXPDomainModule,
|
|
918
920
|
AXPRuntimeModule] }); }
|
|
919
921
|
}
|
|
@@ -972,14 +974,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
972
974
|
multi: true,
|
|
973
975
|
useFactory: () => createEntityReportsPlugin(inject(Injector)),
|
|
974
976
|
},
|
|
975
|
-
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-report-management-client-entity-reports-page-component.provider-
|
|
977
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs').then((m) => m.AXMEntityReportsPageComponentProvider)),
|
|
978
|
+
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs').then((m) => m.AXMReportLayoutPageComponentProvider)),
|
|
976
979
|
],
|
|
977
980
|
}]
|
|
978
981
|
}] });
|
|
979
982
|
|
|
980
983
|
//#endregion
|
|
981
984
|
|
|
982
|
-
//#region ---- Imports ----
|
|
983
985
|
//#endregion
|
|
984
986
|
/**
|
|
985
987
|
* Report Viewer Service
|
|
@@ -990,17 +992,16 @@ class AXPReportViewerService {
|
|
|
990
992
|
constructor() {
|
|
991
993
|
//#region ---- Dependencies ----
|
|
992
994
|
this.entityService = inject(AXPEntityService);
|
|
995
|
+
this.dataRefresh = inject(AXPDataRefreshService);
|
|
993
996
|
this.reportDefinitionService = this.entityService
|
|
994
997
|
.withEntity(RootConfig.module.name, RootConfig.entities.report.name)
|
|
995
998
|
.data();
|
|
996
|
-
//#endregion
|
|
997
|
-
//#region ---- Cache Storage ----
|
|
998
|
-
/** Cache for individual report definitions by id */
|
|
999
|
-
this.definitionsById = new Map();
|
|
1000
|
-
/** Pending API requests to prevent duplicate calls */
|
|
1001
|
-
this.pendingReportRequests = new Map();
|
|
1002
999
|
}
|
|
1003
1000
|
//#endregion
|
|
1001
|
+
//#region ---- Cache Storage ----
|
|
1002
|
+
/** Cache for individual report definitions by id */
|
|
1003
|
+
/** Pending API requests to prevent duplicate calls */
|
|
1004
|
+
//#endregion
|
|
1004
1005
|
//#region ---- Public API: Report Definitions ----
|
|
1005
1006
|
/**
|
|
1006
1007
|
* Reports bound to a host entity type via `entities[].entity`.
|
|
@@ -1046,27 +1047,17 @@ class AXPReportViewerService {
|
|
|
1046
1047
|
}
|
|
1047
1048
|
const bound = [];
|
|
1048
1049
|
for (const report of items) {
|
|
1049
|
-
this.definitionsById.set(report.id, report);
|
|
1050
1050
|
for (const binding of extractEntityBindings(report, entityType)) {
|
|
1051
1051
|
bound.push({ report, binding });
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
|
-
return bound.sort((a, b) => (a.binding.order ?? 0) - (b.binding.order ?? 0) ||
|
|
1055
|
-
resolveMultiLanguageString(a.report.title, 'en-US').localeCompare(resolveMultiLanguageString(b.report.title, 'en-US')));
|
|
1054
|
+
return bound.sort((a, b) => (a.binding.order ?? 0) - (b.binding.order ?? 0) || resolveMultiLanguageString(a.report.title, 'en-US').localeCompare(resolveMultiLanguageString(b.report.title, 'en-US')));
|
|
1056
1055
|
}
|
|
1057
1056
|
/**
|
|
1058
|
-
* Get
|
|
1057
|
+
* Get a report through the scoped entity read infrastructure
|
|
1059
1058
|
*/
|
|
1060
1059
|
async getReportById(id) {
|
|
1061
|
-
|
|
1062
|
-
return this.definitionsById.get(id);
|
|
1063
|
-
}
|
|
1064
|
-
if (this.pendingReportRequests.has(id)) {
|
|
1065
|
-
return this.pendingReportRequests.get(id);
|
|
1066
|
-
}
|
|
1067
|
-
const requestPromise = this.loadReport(id);
|
|
1068
|
-
this.pendingReportRequests.set(id, requestPromise);
|
|
1069
|
-
return requestPromise;
|
|
1060
|
+
return this.loadReport(id);
|
|
1070
1061
|
}
|
|
1071
1062
|
//#endregion
|
|
1072
1063
|
//#region ---- Public API: Layout Actions ----
|
|
@@ -1092,7 +1083,8 @@ class AXPReportViewerService {
|
|
|
1092
1083
|
});
|
|
1093
1084
|
const merged = [];
|
|
1094
1085
|
const usedNames = new Set();
|
|
1095
|
-
|
|
1086
|
+
const interchangeActions = reportTableInterchangeExportActions(layoutDefinition);
|
|
1087
|
+
[...generalActions, ...interchangeActions].forEach((action) => {
|
|
1096
1088
|
if (action.name && customActionsMap.has(action.name)) {
|
|
1097
1089
|
merged.push(customActionsMap.get(action.name));
|
|
1098
1090
|
usedNames.add(action.name);
|
|
@@ -1115,6 +1107,8 @@ class AXPReportViewerService {
|
|
|
1115
1107
|
});
|
|
1116
1108
|
return merged;
|
|
1117
1109
|
}
|
|
1110
|
+
//#endregion
|
|
1111
|
+
//#region ---- Public API: Report Definitions ----
|
|
1118
1112
|
getPrimaryActions(layoutDefinition) {
|
|
1119
1113
|
return this.getMergedActions(layoutDefinition).filter((action) => action.priority === 'primary');
|
|
1120
1114
|
}
|
|
@@ -1124,34 +1118,23 @@ class AXPReportViewerService {
|
|
|
1124
1118
|
//#endregion
|
|
1125
1119
|
//#region ---- Private: Data Loading ----
|
|
1126
1120
|
/**
|
|
1127
|
-
* Load single report
|
|
1121
|
+
* Load single report through the shared entity read policy.
|
|
1128
1122
|
* Can be overridden in extended services (e.g., API layer).
|
|
1129
1123
|
*/
|
|
1130
1124
|
async loadReport(id) {
|
|
1131
|
-
|
|
1132
|
-
const result = (await this.reportDefinitionService.byKey(id));
|
|
1133
|
-
if (result) {
|
|
1134
|
-
this.definitionsById.set(id, result);
|
|
1135
|
-
return result;
|
|
1136
|
-
}
|
|
1137
|
-
return undefined;
|
|
1138
|
-
}
|
|
1139
|
-
finally {
|
|
1140
|
-
this.pendingReportRequests.delete(id);
|
|
1141
|
-
}
|
|
1125
|
+
return (await this.reportDefinitionService.byKey(id));
|
|
1142
1126
|
}
|
|
1143
1127
|
//#endregion
|
|
1144
1128
|
//#region ---- Cache Management ----
|
|
1145
|
-
|
|
1146
|
-
|
|
1129
|
+
/** @deprecated Cache ownership belongs to shared entity reads. */
|
|
1130
|
+
isReportCached(_reportId) {
|
|
1131
|
+
return false;
|
|
1147
1132
|
}
|
|
1148
1133
|
clearAllCache() {
|
|
1149
|
-
this.
|
|
1150
|
-
this.pendingReportRequests.clear();
|
|
1134
|
+
this.clearReportsCache();
|
|
1151
1135
|
}
|
|
1152
1136
|
clearReportsCache() {
|
|
1153
|
-
this.
|
|
1154
|
-
this.pendingReportRequests.clear();
|
|
1137
|
+
this.dataRefresh.entity(RootConfig.module.name + '.' + RootConfig.entities.report.name);
|
|
1155
1138
|
}
|
|
1156
1139
|
//#endregion
|
|
1157
1140
|
//#region ---- Action Handlers (Override in Connectivity Layer) ----
|
|
@@ -1427,7 +1410,7 @@ class AXPOpenReportInPopupCommand {
|
|
|
1427
1410
|
const popupTitle = await this.resolvePopupTitle(options, rowData, runId);
|
|
1428
1411
|
const parameters = resolveReportParameterValues(options.parameters);
|
|
1429
1412
|
await this.dialogOpener.openPopup({
|
|
1430
|
-
load: () => import('./acorex-platform-module-report-management-client-report-popup-viewer.component-
|
|
1413
|
+
load: () => import('./acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs').then((module) => module.AXPReportPopupViewerComponent),
|
|
1431
1414
|
data: { reportId: options.reportId, layoutId: options.layoutId ?? '', runId },
|
|
1432
1415
|
show: (component) => this.popupService.open(component, {
|
|
1433
1416
|
title: popupTitle,
|
|
@@ -1546,4 +1529,4 @@ var openReportInPopup_command = /*#__PURE__*/Object.freeze({
|
|
|
1546
1529
|
*/
|
|
1547
1530
|
|
|
1548
1531
|
export { AXPReportViewerService as A, ENTITY_REPORTS_PAGE_COMPONENT_KEY as E, OPEN_REPORT_IN_POPUP_COMMAND as O, AXPOpenReportViewerCommand as a, collectReportParameterDefaults as b, convertContextDataToFilterClause as c, queryResultToChartSeries as d, AXLineChartReportMapper as e, AXPieChartReportMapper as f, AXBarChartReportMapper as g, bindingShowsOnPage as h, buildOpenInPopupCommandOptions as i, resolveBindingTitle as j, resolveBindingDescription as k, AXMPermissionDefinitionProvider as l, AXMReportManagementModule as m, AXPOpenReportInPopupCommand as n, queryResultToPdfSource as q, resolveReportFilterDefaultValue as r };
|
|
1549
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-
|
|
1532
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs","sources":["../../../../libs/modules/report-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/report-management/client/src/lib/menu.provider.ts","../../../../libs/modules/report-management/client/src/lib/feature-definition.provider.ts","../../../../libs/modules/report-management/client/src/lib/settings.provider.ts","../../../../libs/modules/report-management/client/src/lib/reports/report-parameter.util.ts","../../../../libs/modules/report-management/client/src/lib/features/entity-reports/entity-reports.util.ts","../../../../libs/modules/report-management/client/src/lib/features/entity-reports/entity-reports.plugin.ts","../../../../libs/modules/report-management/client/src/lib/commands/open-report-viewer.command.ts","../../../../libs/modules/report-management/client/src/lib/features/background-operation/report-generation-background-operation.handler.ts","../../../../libs/modules/report-management/client/src/lib/features/report-generation/report-generation-inbox-toast.bridge.service.ts","../../../../libs/modules/report-management/client/src/lib/features/report-generation/report-generation-inbox-toast.providers.ts","../../../../libs/modules/report-management/client/src/lib/report-management.module.ts","../../../../libs/modules/report-management/client/src/lib/reports/report-viewer-user-settings.types.ts","../../../../libs/modules/report-management/client/src/lib/reports/report-viewer.service.ts","../../../../libs/modules/report-management/client/src/lib/reports/report-mapper.ts","../../../../libs/modules/report-management/client/src/lib/commands/open-report-in-popup.command.ts","../../../../libs/modules/report-management/client/src/acorex-platform-module-report-management-client.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport {\n AXPCommonPermissionGroupKeys\n} from '@acorex-platform/module-common-client/contracts';\nimport {\n AXPInsightsReportingPermissionKeys\n} from '@acorex-platform/module-report-management-client/contracts';\n\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ----- Permission Definition Provider -----\n\n/**\n * Registers report capabilities into the shared Insights & Reporting group.\n */\n@Injectable()\nexport class AXMPermissionDefinitionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPInsightsReportingPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:insights-reporting.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.InsightsReporting.Root, `${G}.insights-reporting.title`, `${G}.insights-reporting.description`, { order: 100 });\n\n context\n .addGroup(\n groups.InsightsReporting.Reports,\n `${G}.insights-reporting-reports.title`,\n `${G}.insights-reporting-reports.description`,\n { parent: groups.InsightsReporting.Root, order: 10 },\n )\n .addPermission(keys.Access, `${P}.access.title`, `${P}.access.description`)\n .endPermission()\n .addPermission(keys.MaintainReports, `${P}.maintain-reports.title`, `${P}.maintain-reports.description`)\n .endPermission()\n .addPermission(keys.Setup, `${P}.setup.title`, `${P}.setup.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport {\n AXPInsightsReportingPermissionKeys,\n AXPReportManagementMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-report-management-client/contracts';\n\nexport class AXMMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const module = RootConfig.module;\n\n context.addItems([\n {\n name: AXPReportManagementMenuKeys.Reports,\n text: RootConfig.entities.report.titlePlural,\n path: this.entityService.withEntity(module.name, RootConfig.entities.report.name).createPath(),\n icon: RootConfig.entities.report.icon,\n priority: 8300,\n policy: {\n features: [module.name],\n permissions: [AXPInsightsReportingPermissionKeys.MaintainReports],\n },\n },\n ]);\n }\n}\n","//#region ---- Imports ----\n\nimport {\n AXPFeatureDefinitionProvider,\n AXPFeatureDefinitionProviderContext,\n} from '@acorex-platform/framework-client/core';\nimport { AXPReportManagementFeatureKeys } from '@acorex-platform/module-report-management-client/contracts';\n\n//#endregion\n\n//#region ---- Feature Definition Provider ----\n\n/**\n * Report Management Feature Definition Provider.\n * Provides feature definitions for the Report Management module.\n */\nexport class AXPReportManagementFeatureDefinitionProvider implements AXPFeatureDefinitionProvider {\n async provide(context: AXPFeatureDefinitionProviderContext): Promise<void> {\n // Report Builder feature\n context.addFeature(AXPReportManagementFeatureKeys.ReportBuilder, {\n title: '@report-management:features.report-builder.title',\n description: '@report-management:features.report-builder.description',\n defaultValue: true,\n type: 'boolean',\n });\n\n // Saved Reports feature\n context.addFeature(AXPReportManagementFeatureKeys.SavedReports, {\n title: '@report-management:features.saved-reports.title',\n description: '@report-management:features.saved-reports.description',\n defaultValue: true,\n type: 'boolean',\n });\n\n // Scheduled Reports feature\n context.addFeature(AXPReportManagementFeatureKeys.ScheduledReports, {\n title: '@report-management:features.scheduled-reports.title',\n description: '@report-management:features.scheduled-reports.description',\n defaultValue: true,\n type: 'boolean',\n });\n\n // Background Reports feature\n context.addFeature(AXPReportManagementFeatureKeys.BackgroundReports, {\n title: '@report-management:features.background-reports.title',\n description: '@report-management:features.background-reports.description',\n defaultValue: true,\n type: 'boolean',\n });\n }\n}\n\n//#endregion\n\n","import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPReportManagementSettings,\n AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS,\n} from '@acorex-platform/module-report-management-client/contracts';\n\n//#region ----- Report management settings -----\n\nconst DEDUPE_POLICY_ITEMS = [\n {\n value: 'none',\n text: '@report-management:settings.generation.items.dedupe-policy.options.none',\n },\n {\n value: 'in-flight',\n text: '@report-management:settings.generation.items.dedupe-policy.options.in-flight',\n },\n {\n value: 'in-flight-or-cooldown',\n text: '@report-management:settings.generation.items.dedupe-policy.options.in-flight-or-cooldown',\n },\n];\n\nexport class AXMReportManagementSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n const cooldownPolicy = `{{ context.eval('${AXPReportManagementSettings.GenerationDedupePolicy}') === 'in-flight-or-cooldown' }}`;\n\n context\n .addGroup(\n 'report-management',\n '@report-management:settings.group.title',\n '@report-management:settings.group.description',\n 'fa-light fa-chart-line',\n undefined,\n 840,\n )\n .addSection(\n 'generation',\n '@report-management:settings.generation.title',\n '@report-management:settings.generation.description',\n )\n .addSetting({\n key: AXPReportManagementSettings.GenerationDedupePolicy,\n title: '@report-management:settings.generation.items.dedupe-policy.title',\n description: '@report-management:settings.generation.items.dedupe-policy.description',\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS[\n AXPReportManagementSettings.GenerationDedupePolicy\n ],\n widget: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: DEDUPE_POLICY_ITEMS,\n },\n },\n validationRules: [{ rule: 'required' }],\n })\n .addSetting({\n key: AXPReportManagementSettings.GenerationDedupeCooldownMinutes,\n title: '@report-management:settings.generation.items.dedupe-cooldown-minutes.title',\n description: '@report-management:settings.generation.items.dedupe-cooldown-minutes.description',\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS[\n AXPReportManagementSettings.GenerationDedupeCooldownMinutes\n ],\n widget: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: { minValue: 0, maxValue: 1440, visibility: cooldownPolicy },\n },\n validationRules: [{ rule: 'required' }],\n })\n .addSetting({\n key: AXPReportManagementSettings.GenerationMaxConcurrentPerUser,\n title: '@report-management:settings.generation.items.max-concurrent-per-user.title',\n description: '@report-management:settings.generation.items.max-concurrent-per-user.description',\n scope: 'P',\n overridableAt: [],\n isInherited: false,\n defaultValue: AXP_REPORT_MANAGEMENT_GENERATION_SETTING_DEFAULTS[\n AXPReportManagementSettings.GenerationMaxConcurrentPerUser\n ],\n widget: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: { minValue: 0, maxValue: 50 },\n },\n validationRules: [{ rule: 'required' }],\n })\n .endSection()\n .endGroup();\n }\n}\n\n//#endregion\n","//#region ----- Types -----\n\nexport type AXPReportDateRangeValue = 'today' | { from: string; to: string };\n\nexport type AXPReportParameterValue = string | number | boolean | AXPReportDateRangeValue | Record<string, unknown>;\n\n//#endregion\n\n//#region ----- Date helpers -----\n\n/** Local calendar date as `yyyy-MM-dd` (session \"today\" for report ranges). */\nexport function formatReportDateOnly(date: Date = new Date()): string {\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n return `${year}-${month}-${day}`;\n}\n\nexport function resolveTodayDateRange(date: Date = new Date()): { from: string; to: string } {\n const day = formatReportDateOnly(date);\n return { from: day, to: day };\n}\n\nexport function isReportDateRangeObject(value: unknown): value is { from?: unknown; to?: unknown; start?: unknown; end?: unknown } {\n if (!value || typeof value !== 'object' || Array.isArray(value)) {\n return false;\n }\n const raw = value as Record<string, unknown>;\n const from = raw['from'] ?? raw['start'];\n const to = raw['to'] ?? raw['end'];\n return typeof from === 'string' && typeof to === 'string' && !!from.trim() && !!to.trim();\n}\n\nexport function toReportDateRangeFilterValue(\n range: { from: string; to: string },\n): { operation: { type: 'between' }; value: { from: string; to: string } } {\n return {\n operation: { type: 'between' },\n value: { from: range.from, to: range.to },\n };\n}\n\n/**\n * Converts report default / binding values into filter-form context shape.\n * - `'today'` and `{ from, to }` → `{ operation: between, value }`\n * - existing filter objects are left unchanged\n */\nexport function resolveReportFilterDefaultValue(value: unknown, now: Date = new Date()): unknown {\n if (value === 'today') {\n return toReportDateRangeFilterValue(resolveTodayDateRange(now));\n }\n if (isReportDateRangeObject(value)) {\n return toReportDateRangeFilterValue({\n from: String(value.from ?? value.start),\n to: String(value.to ?? value.end),\n });\n }\n return value;\n}\n\ntype ReportParameterDefaultSource = {\n path: string;\n widget?: {\n defaultValue?: unknown;\n options?: Record<string, unknown>;\n };\n};\n\ntype ReportParameterGroupDefaultSource = {\n parameters?: ReportParameterDefaultSource[];\n};\n\nexport function collectReportParameterDefaults(\n parameterGroups: ReportParameterGroupDefaultSource[] | undefined,\n now: Date = new Date(),\n): Record<string, unknown> {\n const defaults: Record<string, unknown> = {};\n for (const group of parameterGroups ?? []) {\n for (const param of group.parameters ?? []) {\n const rawDefault = param.widget?.defaultValue ?? param.widget?.options?.['defaultValue'];\n if (rawDefault === undefined) {\n continue;\n }\n defaults[param.path] = resolveReportFilterDefaultValue(rawDefault, now);\n }\n }\n return defaults;\n}\n\n//#endregion\n\n//#region ----- Parameter resolution -----\n\n/**\n * Resolves special parameter tokens after expression evaluation.\n * - `dateRange: 'today'` → `{ from, to }` for the local calendar day\n */\nexport function resolveReportParameterValues(\n parameters: Record<string, unknown> | undefined,\n now: Date = new Date(),\n): Record<string, unknown> {\n if (!parameters) {\n return {};\n }\n\n const resolved: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(parameters)) {\n if (value === 'today') {\n resolved[key] = resolveTodayDateRange(now);\n continue;\n }\n resolved[key] = value;\n }\n return resolved;\n}\n\n/**\n * Maps entity-binding parameter declarations into OpenInPopup command parameters.\n * Field paths become `context.eval` expressions; `today` and `{from,to}` stay literal.\n */\nexport function mapEntityBindingParameters(\n parameters: Record<string, AXPReportParameterValue> | undefined,\n): Record<string, unknown> | undefined {\n if (!parameters) {\n return undefined;\n }\n\n return Object.fromEntries(\n Object.entries(parameters).map(([key, value]) => [key, toBindingParameterExpression(value)]),\n );\n}\n\nfunction toBindingParameterExpression(value: AXPReportParameterValue): unknown {\n if (value === 'today') {\n return 'today';\n }\n\n if (isReportDateRangeObject(value)) {\n return {\n from: String(value.from ?? value.start),\n to: String(value.to ?? value.end),\n };\n }\n\n if (typeof value !== 'string') {\n return value;\n }\n\n const trimmed = value.trim();\n if (!trimmed || trimmed.includes('{{') || trimmed.includes('context.eval')) {\n return value;\n }\n\n return `{{ context.eval('${trimmed}') }}`;\n}\n\n//#endregion\n\n//#region ----- Viewer query params -----\n\n/**\n * Flattens popup/filter parameters into report-viewer URL query params\n * (`field.operation.type` + `field.value` / nested `from`/`to`).\n */\nexport function flattenReportParametersToQueryParams(\n parameters: Record<string, unknown>,\n): Record<string, string> {\n const result: Record<string, string> = {};\n\n for (const [field, rawValue] of Object.entries(parameters)) {\n if (rawValue === null || rawValue === undefined || rawValue === '') {\n continue;\n }\n\n if (isReportDateRangeObject(rawValue)) {\n const from = String(rawValue.from ?? rawValue.start);\n const to = String(rawValue.to ?? rawValue.end);\n result[`${field}.operation.type`] = 'between';\n result[`${field}.value.from`] = from;\n result[`${field}.value.to`] = to;\n continue;\n }\n\n if (typeof rawValue === 'object' && !Array.isArray(rawValue) && 'operation' in rawValue) {\n const filterObj = rawValue as { operation?: { type?: string }; value?: unknown };\n if (filterObj.operation?.type) {\n result[`${field}.operation.type`] = String(filterObj.operation.type);\n }\n if (isReportDateRangeObject(filterObj.value)) {\n result[`${field}.value.from`] = String(filterObj.value.from ?? filterObj.value.start);\n result[`${field}.value.to`] = String(filterObj.value.to ?? filterObj.value.end);\n } else if (filterObj.value !== undefined && filterObj.value !== null && filterObj.value !== '') {\n result[`${field}.value`] = Array.isArray(filterObj.value)\n ? filterObj.value.map(String).join(',')\n : String(filterObj.value);\n }\n continue;\n }\n\n result[`${field}.operation.type`] = Array.isArray(rawValue) ? 'in' : 'equal';\n result[`${field}.value`] = Array.isArray(rawValue) ? rawValue.map(String).join(',') : String(rawValue);\n }\n\n return result;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type {\n AXPReportDefinition,\n AXPReportEntityBinding,\n AXPReportEntityDisplay,\n} from '@acorex-platform/module-report-management-client/contracts';\nimport type { AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { mapEntityBindingParameters } from '../../reports/report-parameter.util';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport interface AXPEntityBoundReport {\n report: AXPReportDefinition;\n binding: AXPReportEntityBinding;\n}\n\n//#endregion\n\n//#region ----- Constants -----\n\nexport const OPEN_REPORT_IN_POPUP_COMMAND = 'ReportManagement.Report:OpenInPopup';\nexport const ENTITY_REPORTS_PAGE_COMPONENT_KEY = 'entity-reports-page';\n\n//#endregion\n\n//#region ----- Display helpers -----\n\nexport function normalizeReportEntityDisplays(\n display: AXPReportEntityBinding['display'],\n): Set<AXPReportEntityDisplay> {\n if (!display) {\n return new Set<AXPReportEntityDisplay>(['page']);\n }\n const list = Array.isArray(display) ? display : [display];\n return new Set(list);\n}\n\nexport function bindingShowsOnPage(binding: AXPReportEntityBinding): boolean {\n const displays = normalizeReportEntityDisplays(binding.display);\n // Default / empty → page. Explicit lists without `page` hide from the Reports page.\n return displays.has('page') || displays.size === 0;\n}\n\nexport function resolveBindingTitle(\n report: AXPReportDefinition,\n binding: AXPReportEntityBinding,\n): AXPMultiLanguageString {\n if (typeof binding.title === 'string' && binding.title.trim()) {\n return binding.title.trim();\n }\n return report.title;\n}\n\nexport function resolveBindingDescription(\n report: AXPReportDefinition,\n binding: AXPReportEntityBinding,\n): AXPMultiLanguageString | undefined {\n if (typeof binding.description === 'string' && binding.description.trim()) {\n return binding.description.trim();\n }\n if (typeof report.description === 'string') {\n const trimmed = report.description.trim();\n return trimmed || undefined;\n }\n return report.description;\n}\n\nexport function buildOpenInPopupCommandOptions(\n report: AXPReportDefinition,\n binding: AXPReportEntityBinding,\n): Record<string, unknown> {\n return {\n reportId: report.id,\n layoutId: binding.layoutId,\n title: resolveBindingTitle(report, binding),\n parameters: mapEntityBindingParameters(binding.parameters),\n };\n}\n\nexport function extractEntityBindings(\n report: AXPReportDefinition,\n entityType: string,\n): AXPReportEntityBinding[] {\n const bindings = report.entities ?? [];\n return bindings\n .filter((binding) => binding?.entity === entityType)\n .sort((a, b) => (a.order ?? 0) - (b.order ?? 0));\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport {\n AXPEntityActionPlugin,\n resolveEntityPluginDetailPageOrder,\n} from '@acorex-platform/framework-client/layout/entity';\nimport { Injector } from '@angular/core';\nimport { ENTITY_REPORTS_PAGE_COMPONENT_KEY } from './entity-reports.util';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type EntityReportsPluginOptions = {\n /** Title for the Reports detail page. */\n title?: string;\n /** Icon for the Reports detail page. */\n icon?: string;\n};\n\n//#endregion\n\n//#region ----- Plugin factory -----\n\n/**\n * Entity `reports` plugin — contributes a Reports detail page for definitions\n * bound via `entities[]`. Reports open from that page (not entity Actions).\n *\n * Takes {@link Injector} for factory signature parity with other entity plugins.\n */\nexport function createEntityReportsPlugin(_injector: Injector): AXPEntityActionPlugin {\n return {\n name: 'reports',\n order: 55,\n apply: async (ctx, options?: EntityReportsPluginOptions) => {\n const opts = options ?? {};\n const entityType = `${ctx.entity.module}.${ctx.entity.name}`;\n const pageTitle = opts.title?.trim() || '@report-management:entity-reports.page.title';\n\n //#region ----- Reports detail page -----\n\n ctx.entity.pages ??= [];\n const pageExists = ctx.entity.pages.some(\n (p: { componentKey?: string }) => p.componentKey === ENTITY_REPORTS_PAGE_COMPONENT_KEY,\n );\n const pageOrder = resolveEntityPluginDetailPageOrder(\n { relatedEntities: ctx.entity.relatedEntities, pages: ctx.entity.pages },\n 'reports',\n {\n componentKey: ENTITY_REPORTS_PAGE_COMPONENT_KEY,\n skipPage: pageExists ? { componentKey: ENTITY_REPORTS_PAGE_COMPONENT_KEY } : undefined,\n },\n );\n const page = {\n componentKey: ENTITY_REPORTS_PAGE_COMPONENT_KEY,\n title: pageTitle,\n icon: opts.icon ?? 'fa-light fa-chart-mixed',\n layout: { order: pageOrder },\n options: { entityType },\n } as any;\n if (!pageExists) {\n ctx.entity.pages.push(page);\n } else {\n const pages = ctx.entity.pages as any[];\n const index = pages.findIndex((p) => p.componentKey === ENTITY_REPORTS_PAGE_COMPONENT_KEY);\n if (index >= 0) {\n pages[index] = { ...pages[index], ...page };\n }\n }\n\n //#endregion\n\n (ctx.entity as any).extensions ??= {};\n (ctx.entity as any).extensions.reports = {\n entityType,\n };\n },\n };\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPExpressionEvaluatorService } from '@acorex-platform/framework-client/core';\nimport { AXPTabNavigationService } from '@acorex-platform/framework-client/common';\nimport { AXPExpressionEvaluatorScope } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPInAppInboxConnectorService } from '@acorex-platform/module-communication-management-client';\nimport { buildReportGenerationNotificationCorrelationId } from '@acorex-platform/module-report-management-client/contracts';\nimport { get } from 'lodash-es';\nimport { inject, Injectable } from '@angular/core';\nimport { RootConfig } from '@acorex-platform/module-report-management-client/contracts';\n\n//#endregion\n\n//#region ----- Command Input -----\n\nexport interface AXPOpenReportViewerCommandInput {\n reportId?: string;\n runId?: string;\n data?: Record<string, unknown>;\n options?: Partial<AXPOpenReportViewerCommandInput>;\n}\n\n//#endregion\n\n//#region ----- Command -----\n\n/** Opens a report in the full-page report viewer. */\n@Injectable({ providedIn: 'root' })\nexport class AXPOpenReportViewerCommand\n implements AXPCommand<AXPOpenReportViewerCommandInput | Record<string, unknown>, void>\n{\n //#region ----- Services & Dependencies -----\n\n private readonly sessionService = inject(AXPSessionService);\n private readonly tabNavigation = inject(AXPTabNavigationService);\n private readonly expressionEvaluator = inject(AXPExpressionEvaluatorService);\n private readonly translate = inject(AXTranslationService);\n private readonly inboxConnector = inject(AXPInAppInboxConnectorService, { optional: true });\n\n //#endregion\n\n //#region ----- Command Implementation -----\n\n async execute(\n input: AXPOpenReportViewerCommandInput | Record<string, unknown>,\n ): AXPCommandExecuteResultPromise<void> {\n const rowData = this.resolveRowData(input);\n const options = await this.resolveOptions(input, rowData);\n\n if (!options.reportId) {\n return {\n success: false,\n message: {\n text: await this.translate.translateAsync(\n '@report-management:report-viewer.messages.error.invalid-popup-target',\n ),\n },\n };\n }\n\n const runId = typeof options.runId === 'string' ? options.runId.trim() : '';\n if (runId) {\n await this.dismissReportGenerationInboxNotification(runId);\n }\n\n const appName = this.sessionService.application?.name;\n if (!appName) {\n return {\n success: false,\n message: {\n text: await this.translate.translateAsync(\n '@report-management:report-viewer.messages.error.invalid-popup-target',\n ),\n },\n };\n }\n\n // Put reportId in the path (not queryParams): tabular navigation drops NavigationExtras.\n const path = runId\n ? `${appName}/${RootConfig.module.route}/viewer/${options.reportId}?runId=${encodeURIComponent(runId)}`\n : `${appName}/${RootConfig.module.route}/viewer/${options.reportId}`;\n await this.tabNavigation.navigate(path);\n\n return { success: true, kind: 'object', data: undefined };\n }\n\n //#endregion\n\n //#region ----- Helpers -----\n\n private async dismissReportGenerationInboxNotification(runId: string): Promise<void> {\n if (!this.inboxConnector) {\n return;\n }\n try {\n await this.inboxConnector.dismissByCorrelationId(\n buildReportGenerationNotificationCorrelationId(runId),\n );\n } catch {\n // Best-effort — navigation should still proceed.\n }\n }\n\n private resolveRowData(\n input: AXPOpenReportViewerCommandInput | Record<string, unknown>,\n ): Record<string, unknown> {\n const ctx = input as AXPOpenReportViewerCommandInput;\n if (ctx?.data && typeof ctx.data === 'object') {\n return ctx.data as Record<string, unknown>;\n }\n if (\n (input as Record<string, unknown>)['data'] &&\n typeof (input as Record<string, unknown>)['data'] === 'object'\n ) {\n return (input as Record<string, unknown>)['data'] as Record<string, unknown>;\n }\n return input as Record<string, unknown>;\n }\n\n private async resolveOptions(\n input: AXPOpenReportViewerCommandInput | Record<string, unknown>,\n rowData: Record<string, unknown>,\n ): Promise<AXPOpenReportViewerCommandInput> {\n const typedInput = input as AXPOpenReportViewerCommandInput;\n const rawOptions = {\n reportId: typedInput.reportId,\n runId: typedInput.runId,\n ...(typedInput.options ?? {}),\n };\n\n const scope: AXPExpressionEvaluatorScope = {\n context: {\n eval: (path: string) => get(rowData, path),\n },\n };\n\n return (await this.expressionEvaluator.evaluate(rawOptions, scope)) as AXPOpenReportViewerCommandInput;\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport {\n AXP_BACKGROUND_OPERATION_HANDLERS,\n AXPBackgroundOperationHandler,\n type AXPBackgroundOperation,\n type AXPBackgroundOperationCta,\n} from '@acorex-platform/framework-client/common';\nimport { AXPExecuteCommand } from '@acorex-platform/framework-shared/core';\nimport { Injectable, Provider, inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AXPOpenReportViewerCommand } from '../../commands/open-report-viewer.command';\nimport { AXPQueryService } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryPayloadData } from '@acorex-platform/framework-shared/core';\nimport {\n AXMReportManagementQueryKeys,\n type AXMReportGenerationRequest,\n} from '@acorex-platform/module-report-management-client/contracts';\n\n//#endregion\n\n//#region ----- Handler -----\n\n@Injectable()\nexport class AXMReportGenerationBackgroundOperationHandler extends AXPBackgroundOperationHandler {\n readonly providerKey = 'report-management';\n\n private readonly openViewer = inject(AXPOpenReportViewerCommand);\n private readonly queryService = inject(AXPQueryService);\n\n async execute(command: AXPExecuteCommand, operation: AXPBackgroundOperation): Promise<void> {\n if (command.name !== 'click') {\n return;\n }\n\n const reportRequestId =\n get(operation.data, 'payload.reportRequestId') ??\n get(operation.data, 'command.payload.reportRequestId');\n if (typeof reportRequestId !== 'string' || !reportRequestId.trim()) {\n return;\n }\n\n const result = await this.queryService.fetch<{ id: string }, AXMReportGenerationRequest>(\n AXMReportManagementQueryKeys.ReportGeneration.Get,\n { id: reportRequestId },\n );\n const request = runtimeQueryPayloadData(result);\n if (!request?.reportId) {\n return;\n }\n\n if (request.status === 'completed') {\n await this.openViewer.execute({ reportId: request.reportId, runId: request.id });\n return;\n }\n\n await this.openViewer.execute({ reportId: request.reportId });\n }\n\n override resolveCta(operation: AXPBackgroundOperation): AXPBackgroundOperationCta | null {\n if (operation.status === 'failed' && operation.capabilities.retryable) {\n return {\n text: '@general:background-operation.actions.retry',\n icon: 'fa-light fa-arrow-rotate-right',\n color: 'primary',\n look: 'solid',\n command: { name: 'retry' },\n };\n }\n\n if (operation.status === 'completed' && operation.capabilities.clickable) {\n return {\n text: '@report-management:report-generation.notifications.actions.open-viewer',\n icon: 'fa-light fa-file-chart-column',\n color: 'primary',\n look: 'solid',\n command: { name: 'click' },\n };\n }\n\n return null;\n }\n}\n\n//#endregion\n\n//#region ----- Providers -----\n\nexport const AXM_REPORT_GENERATION_BACKGROUND_OPERATION_HANDLERS: Provider[] = [\n {\n provide: AXP_BACKGROUND_OPERATION_HANDLERS,\n useExisting: AXMReportGenerationBackgroundOperationHandler,\n multi: true,\n },\n AXMReportGenerationBackgroundOperationHandler,\n];\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXP_USER_NOTIFICATION_SERVICE } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPInAppInboxConnectorService } from '@acorex-platform/module-communication-management-client';\nimport type { AXPInAppInboxItem } from '@acorex-platform/module-communication-management-client';\nimport { REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY } from '@acorex-platform/module-report-management-client/contracts';\nimport { DestroyRef, effect, inject, Injectable, Injector } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { distinctUntilChanged, map } from 'rxjs';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst TOASTED_KEYS_STORAGE = 'axp:report-generation-inbox-toast-keys';\n\n//#endregion\n\n//#region ----- Bridge -----\n\n/**\n * When a report-generation inbox row arrives (user was not watching inline),\n * mirrors it as a transient toast with an open action. Inbox persistence stays server-owned.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMReportGenerationInboxToastBridgeService {\n //#region ----- Dependencies -----\n\n private readonly inboxConnector = inject(AXPInAppInboxConnectorService, { optional: true });\n private readonly userNotificationService = inject(AXP_USER_NOTIFICATION_SERVICE);\n private readonly commandService = inject(AXPCommandService);\n private readonly translationService = inject(AXTranslationService);\n private readonly sessionService = inject(AXPSessionService);\n private readonly destroyRef = inject(DestroyRef);\n private readonly injector = inject(Injector);\n\n //#endregion\n\n //#region ----- State -----\n\n private started = false;\n private inboxBaselined = false;\n private boundUserId: string | null = null;\n private readonly toastedKeys = new Set<string>();\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n start(): void {\n if (this.started || !this.inboxConnector) {\n return;\n }\n this.started = true;\n\n this.sessionService.isReadyForAppScopedApi$\n .pipe(\n map(() => this.sessionService.user?.id?.trim() || null),\n distinctUntilChanged(),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe((userId) => {\n this.bindSessionUser(userId);\n });\n\n this.bindSessionUser(this.sessionService.user?.id?.trim() || null);\n\n effect(\n () => {\n const userId = this.sessionService.user?.id?.trim();\n const inboxLoading = this.inboxConnector?.loading() ?? false;\n const items = this.readReportGenerationItems();\n\n if (!this.sessionService.isReadyForAppScopedApi || !userId) {\n return;\n }\n\n if (!this.inboxBaselined) {\n for (const item of items) {\n this.markToasted(this.toastKey(item));\n }\n if (!inboxLoading) {\n this.inboxBaselined = true;\n }\n return;\n }\n\n for (const item of items) {\n const key = this.toastKey(item);\n if (this.toastedKeys.has(key)) {\n continue;\n }\n this.markToasted(key);\n void this.showToastForInboxItem(item);\n }\n },\n { injector: this.injector },\n );\n }\n\n //#endregion\n\n //#region ----- Toast -----\n\n private async showToastForInboxItem(item: AXPInAppInboxItem): Promise<void> {\n const action = item.actions?.[0];\n const actionTitle = action?.title\n ? await this.translationService.translateAsync(action.title)\n : await this.translationService.translateAsync(\n '@report-management:report-generation.notifications.actions.open-viewer',\n );\n\n const toastActions = action?.command?.name\n ? [\n {\n text: actionTitle,\n color: 'primary' as const,\n onClick: () => this.executeInboxAction(item, action),\n },\n ]\n : undefined;\n\n await this.userNotificationService.notify({\n correlationId: item.correlationId?.trim() || item.id,\n title: await this.resolveText(item.title),\n body: await this.resolveText(item.body),\n icon: item.iconClass ?? this.resolveIcon(item),\n delivery: {\n toast: {\n color: this.resolveToastColor(item),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 8_000,\n timeOutProgress: true,\n showActions: !!toastActions?.length,\n },\n },\n toastActions,\n });\n }\n\n private async executeInboxAction(\n item: AXPInAppInboxItem,\n action: NonNullable<AXPInAppInboxItem['actions']>[number],\n ): Promise<void> {\n if (!action.command?.name) {\n return;\n }\n await this.commandService.execute(action.command.name, action.command.options ?? {});\n }\n\n //#endregion\n\n //#region ----- Helpers -----\n\n private readReportGenerationItems(): AXPInAppInboxItem[] {\n const userId = this.sessionService.user?.id?.trim();\n return (this.inboxConnector?.inboxList() ?? []).filter((item) => {\n if (item.definitionKey !== REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY) {\n return false;\n }\n const recipientUserId = item.recipientUserId?.trim();\n return !recipientUserId || recipientUserId === userId;\n });\n }\n\n private toastKey(item: AXPInAppInboxItem): string {\n return item.correlationId?.trim() || item.id;\n }\n\n private bindSessionUser(userId: string | null): void {\n if (userId === this.boundUserId) {\n return;\n }\n this.boundUserId = userId;\n this.inboxBaselined = false;\n this.toastedKeys.clear();\n if (userId) {\n this.loadPersistedToastedKeys(userId);\n }\n }\n\n private markToasted(key: string): void {\n const normalized = key.trim();\n if (!normalized) {\n return;\n }\n this.toastedKeys.add(normalized);\n this.persistToastedKeys();\n }\n\n private toastedStorageKey(userId: string): string {\n return `${TOASTED_KEYS_STORAGE}:${userId}`;\n }\n\n private loadPersistedToastedKeys(userId: string): void {\n try {\n const raw = sessionStorage.getItem(this.toastedStorageKey(userId));\n if (!raw) {\n return;\n }\n const parsed = JSON.parse(raw) as unknown;\n if (!Array.isArray(parsed)) {\n return;\n }\n for (const entry of parsed) {\n if (typeof entry === 'string' && entry.trim()) {\n this.toastedKeys.add(entry.trim());\n }\n }\n } catch {\n // Ignore corrupt session storage.\n }\n }\n\n private persistToastedKeys(): void {\n const userId = this.boundUserId?.trim();\n if (!userId) {\n return;\n }\n try {\n sessionStorage.setItem(this.toastedStorageKey(userId), JSON.stringify([...this.toastedKeys]));\n } catch {\n // Ignore quota / privacy errors.\n }\n }\n\n private async resolveText(value: string): Promise<string> {\n const text = value?.trim();\n if (!text) {\n return '';\n }\n if (text.startsWith('@')) {\n return this.translationService.translateAsync(text);\n }\n return text;\n }\n\n private resolveToastColor(item: AXPInAppInboxItem): 'success' | 'danger' | 'warning' {\n switch (item.priority) {\n case 'Danger':\n return 'danger';\n case 'Warning':\n return 'warning';\n default:\n return 'success';\n }\n }\n\n private resolveIcon(item: AXPInAppInboxItem): string {\n if (item.priority === 'Danger') {\n return 'fa-light fa-circle-exclamation';\n }\n if (item.priority === 'Warning') {\n return 'fa-light fa-triangle-exclamation';\n }\n return 'fa-light fa-circle-check';\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { inject, type Provider } from '@angular/core';\nimport {\n AXP_APP_STARTUP_PRIORITY,\n provideAppStartUpTask,\n} from '@acorex-platform/framework-client/core';\nimport { AXPInAppInboxConnectorService } from '@acorex-platform/module-communication-management-client';\nimport { AXMReportGenerationInboxToastBridgeService } from './report-generation-inbox-toast.bridge.service';\n\n//#endregion\n\n//#region ----- Providers -----\n\nexport function provideReportGenerationInboxToastBridge(): Provider[] {\n return [\n provideAppStartUpTask(() => {\n const bridge = inject(AXMReportGenerationInboxToastBridgeService);\n const inbox = inject(AXPInAppInboxConnectorService, { optional: true });\n return {\n name: 'report-generation-inbox-toast-bridge',\n priority: AXP_APP_STARTUP_PRIORITY.realtimeHandlers,\n run: async () => {\n // Report toasts are an optional observer. Waiting for an inbox network\n // refresh here blocks the entire Angular bootstrap on a disconnected device.\n // Data readiness and transport are adapter responsibilities. The bridge\n // observes loading/data state and must never hold application startup.\n if (inbox) void inbox.ensureReady().catch(() => undefined);\n bridge.start();\n },\n };\n }),\n ];\n}\n\n//#endregion\n","import { AXP_FEATURE_DEFINITION_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXPDomainModule } from '@acorex-platform/framework-client/domain';\nimport { AXP_ENTITY_ACTION_PLUGIN, provideEntity } from '@acorex-platform/framework-client/layout/entity';\nimport { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';\nimport { AXPRootLayoutComponent } from '@acorex-platform/framework-client/themes/default';\nimport { inject, Injector, NgModule } from '@angular/core';\nimport { Routes, ROUTES } from '@angular/router';\nimport { RootConfig } from '@acorex-platform/module-report-management-client/contracts';\nimport { AXP_MENU_PROVIDER, AXP_PROTECTED_ROUTE_GUARDS, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXPRuntimeModule, provideCommandSetups } from '@acorex-platform/framework-client/runtime';\n\n// Entity Modules\nimport { AXMPermissionDefinitionProvider } from './permission-definition.provider';\nimport { AXMMenuProvider } from './menu.provider';\n\nimport { AXPReportManagementFeatureDefinitionProvider } from './feature-definition.provider';\nimport { AXMReportManagementSettingProvider } from './settings.provider';\nimport { createEntityReportsPlugin } from './features/entity-reports/entity-reports.plugin';\nimport { AXM_REPORT_GENERATION_BACKGROUND_OPERATION_HANDLERS } from './features/background-operation/report-generation-background-operation.handler';\nimport { provideReportGenerationInboxToastBridge } from './features/report-generation/report-generation-inbox-toast.providers';\n\nfunction routesFacory() {\n let routes: Routes = [\n {\n path: `:app/${RootConfig.module.route}/viewer`,\n canActivate: [...AXP_PROTECTED_ROUTE_GUARDS],\n data: { tab: true, rootLayout: true },\n loadComponent: () => {\n return AXPRootLayoutComponent;\n },\n children: [\n {\n path: ':reportId',\n loadComponent: () =>\n import('./features/report-viewer/report-viewer-page/report-viewer-page.component').then(\n (c) => c.AXPReportViewerPageComponent,\n ),\n data: { reuse: true },\n },\n {\n path: '',\n loadComponent: () =>\n import('./features/report-viewer/report-viewer-page/report-viewer-page.component').then(\n (c) => c.AXPReportViewerPageComponent,\n ),\n data: { reuse: true },\n },\n ],\n },\n ];\n return routes;\n}\n\n@NgModule({\n imports: [\n AXPDomainModule,\n AXPRuntimeModule,\n // Entity Modules\n ],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: ROUTES,\n multi: true,\n useFactory: routesFacory,\n },\n provideEntity([RootConfig.entities.report.fullName, RootConfig.entities.category.fullName]),\n // Provider references (now using tokens)\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMPermissionDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMMenuProvider,\n multi: true,\n },\n \n {\n provide: AXP_FEATURE_DEFINITION_PROVIDER,\n useClass: AXPReportManagementFeatureDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_SETTING_DEFINITION_PROVIDER,\n useClass: AXMReportManagementSettingProvider,\n multi: true,\n },\n ...AXM_REPORT_GENERATION_BACKGROUND_OPERATION_HANDLERS,\n ...provideReportGenerationInboxToastBridge(),\n provideCommandSetups([\n {\n key: 'ReportManagement.Report:OpenInPopup',\n command: () =>\n import('./commands/open-report-in-popup.command').then((c) => c.AXPOpenReportInPopupCommand),\n },\n {\n key: 'ReportManagement.Report:OpenViewer',\n command: () =>\n import('./commands/open-report-viewer.command').then((c) => c.AXPOpenReportViewerCommand),\n },\n ]),\n {\n provide: AXP_ENTITY_ACTION_PLUGIN,\n multi: true,\n useFactory: () => createEntityReportsPlugin(inject(Injector)),\n },\n provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () =>\n import('./features/entity-reports/entity-reports-page-component.provider').then(\n (m) => m.AXMEntityReportsPageComponentProvider,\n ),\n ),\n provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () =>\n import('./features/report-definition/report-layout-page-component.provider').then(\n (m) => m.AXMReportLayoutPageComponentProvider,\n ),\n ),\n ],\n})\nexport class AXMReportManagementModule { }\n","import { AXPQuerySort } from '@acorex-platform/framework-shared/entity';\n\n//#region ---- User Settings (per report + layout) ----\n\nexport interface AXPReportTableColumnUserState {\n field: string;\n width?: number;\n}\n\nexport interface AXPReportTableLayoutUserState {\n columns?: AXPReportTableColumnUserState[];\n sorts?: AXPQuerySort[];\n pageSize?: number;\n}\n\nexport interface AXPReportViewerUserSettings {\n activeLayoutId?: string;\n layouts?: Record<string, { table?: AXPReportTableLayoutUserState }>;\n}\n\n//#endregion\n","import { AXPDataRefreshService } from '@acorex-platform/framework-client/common';\n//#region ---- Imports ----\n\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { resolveMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport { AXPReportDefinition, AXPReportLayoutAction, AXPReportLayoutDefinition, AXPReportLayoutType, reportTableInterchangeExportActions, RootConfig } from '@acorex-platform/module-report-management-client/contracts';\nimport { inject, Injectable } from '@angular/core';\nimport { extractEntityBindings, type AXPEntityBoundReport } from '../features/entity-reports/entity-reports.util';\n\n//#endregion\n\n/**\n * Report Viewer Service\n *\n * Handles report definition retrieval, caching, and layout actions.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class AXPReportViewerService {\n //#region ---- Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly dataRefresh = inject(AXPDataRefreshService);\n private readonly reportDefinitionService = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.report.name)\n .data();\n\n //#endregion\n\n //#region ---- Cache Storage ----\n\n /** Cache for individual report definitions by id */\n\n /** Pending API requests to prevent duplicate calls */\n\n //#endregion\n\n //#region ---- Public API: Report Definitions ----\n\n /**\n * Reports bound to a host entity type via `entities[].entity`.\n * Falls back to an in-memory filter when the nested-array query returns nothing\n * (or is unsupported by the current query backend).\n */\n async getReportsByEntityType(entityType: string): Promise<AXPEntityBoundReport[]> {\n if (!entityType?.trim()) {\n return [];\n }\n\n let items: AXPReportDefinition[] = [];\n try {\n const result = await this.reportDefinitionService.query({\n skip: 0,\n take: 1000,\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'entities.entity',\n operator: { type: 'equal' },\n value: entityType,\n },\n ],\n },\n });\n items = (result.items ?? []) as AXPReportDefinition[];\n } catch {\n items = [];\n }\n\n if (items.length === 0) {\n try {\n const fallback = await this.reportDefinitionService.query({\n skip: 0,\n take: 1000,\n });\n items = ((fallback.items ?? []) as AXPReportDefinition[]).filter((report) => (report.entities ?? []).some((binding) => binding?.entity === entityType));\n } catch {\n items = [];\n }\n }\n\n const bound: AXPEntityBoundReport[] = [];\n for (const report of items) {\n for (const binding of extractEntityBindings(report, entityType)) {\n bound.push({ report, binding });\n }\n }\n\n return bound.sort((a, b) => (a.binding.order ?? 0) - (b.binding.order ?? 0) || resolveMultiLanguageString(a.report.title, 'en-US').localeCompare(resolveMultiLanguageString(b.report.title, 'en-US')));\n }\n\n /**\n * Get a report through the scoped entity read infrastructure\n */\n async getReportById(id: string): Promise<AXPReportDefinition | undefined> {\n return this.loadReport(id);\n }\n\n //#endregion\n\n //#region ---- Public API: Layout Actions ----\n\n /**\n * Get general actions list for a layout type.\n * Override in connectivity layer (mock/API) to provide general actions.\n */\n getGeneralActionsList(layoutType: AXPReportLayoutType): AXPReportLayoutAction[] {\n return [];\n }\n\n /**\n * Get merged actions for a layout definition.\n * Combines general actions with layout-specific actions.\n */\n getMergedActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[] {\n const generalActions = this.getGeneralActionsList(layoutDefinition.layout.type);\n const customActions = layoutDefinition.actions || [];\n\n const customActionsMap = new Map<string, AXPReportLayoutAction>();\n customActions.forEach((action) => {\n if (action.name) {\n customActionsMap.set(action.name, action);\n }\n });\n\n const merged: AXPReportLayoutAction[] = [];\n const usedNames = new Set<string>();\n const interchangeActions = reportTableInterchangeExportActions(layoutDefinition);\n\n\n [...generalActions, ...interchangeActions].forEach((action) => {\n if (action.name && customActionsMap.has(action.name)) {\n merged.push(customActionsMap.get(action.name)!);\n usedNames.add(action.name);\n } else {\n merged.push(action);\n if (action.name) {\n usedNames.add(action.name);\n }\n }\n });\n\n customActions.forEach((action) => {\n if (action.name && !usedNames.has(action.name)) {\n merged.push(action);\n usedNames.add(action.name);\n } else if (!action.name) {\n merged.push(action);\n }\n });\n\n return merged;\n }\n\n //#endregion\n\n //#region ---- Public API: Report Definitions ----\n\n getPrimaryActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[] {\n return this.getMergedActions(layoutDefinition).filter((action) => action.priority === 'primary');\n }\n\n getSecondaryActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[] {\n return this.getMergedActions(layoutDefinition).filter((action) => action.priority === 'secondary');\n }\n\n //#endregion\n\n //#region ---- Private: Data Loading ----\n\n /**\n * Load single report through the shared entity read policy.\n * Can be overridden in extended services (e.g., API layer).\n */\n protected async loadReport(id: string): Promise<AXPReportDefinition | undefined> {\n return (await this.reportDefinitionService.byKey(id)) as AXPReportDefinition | undefined;\n }\n\n //#endregion\n\n //#region ---- Cache Management ----\n\n /** @deprecated Cache ownership belongs to shared entity reads. */\n protected isReportCached(_reportId: string): boolean {\n return false;\n }\n\n clearAllCache(): void {\n this.clearReportsCache();\n }\n\n clearReportsCache(): void {\n this.dataRefresh.entity(RootConfig.module.name + '.' + RootConfig.entities.report.name);\n }\n\n //#endregion\n\n //#region ---- Action Handlers (Override in Connectivity Layer) ----\n\n async executeAction(commandName: string, options?: Record<string, unknown>): Promise<void> {\n console.log(`Execute action: ${commandName} - should be implemented in connectivity layer`, options);\n }\n\n //#endregion\n}\n\n","import {\n AXPContextData,\n AXPFilterClause,\n type AXPRuntimeQueryResult,\n runtimeQueryCollectionData,\n runtimeQueryObjectData,\n runtimeQueryPayloadData,\n} from '@acorex-platform/framework-shared/core';\nimport type { AXBarChartValue } from '@acorex/charts/bar-chart';\nimport type { AXDonutChartValue } from '@acorex/charts/donut-chart';\nimport type { AXLineChartValue } from '@acorex/charts/line-chart';\n\nimport { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport { isReportDateRangeObject } from './report-parameter.util';\nimport type { AXPChartDataMapping } from '@acorex-platform/module-report-management-client/contracts';\n\nexport function AXPieChartReportMapper(data: Record<string, number>): AXDonutChartValue {\n return Object.entries(data)\n .map(([key, value]) => ({\n id: key,\n label: key,\n value: Number(value),\n }))\n .filter((item) => Number.isFinite(item.value) && item.value > 0);\n}\n\nexport function AXBarChartReportMapper(data: Record<string, number>): AXBarChartValue {\n return Object.entries(data)\n .map(([key, value]) => ({\n id: key,\n label: key,\n value: Number(value),\n }))\n .filter((item) => Number.isFinite(item.value));\n}\n\nexport function AXLineChartReportMapper(data: Record<string, number>): AXLineChartValue {\n const entries = Object.entries(data);\n if (entries.length === 0) {\n return [];\n }\n const dataPoints = entries.map(([key, value]) => ({\n x: key,\n y: value,\n }));\n\n return [\n {\n id: 'series-1',\n label: 'Data Series',\n tooltipLabel: 'Countries Info',\n lineColor: '#d81159',\n fillColor: '#d8115920',\n data: dataPoints,\n },\n ];\n}\n\n//#region ---- Helpers ----\n\n/**\n * Determines whether a filter value should be treated as empty.\n * This handles deep objects, arrays, and primitives so that\n * values like { from: null, to: null } are considered empty.\n */\nfunction isEmptyFilterValue(value: unknown): boolean {\n if (value === null || value === undefined || value === '') {\n return true;\n }\n\n if (Array.isArray(value)) {\n return value.length === 0 || value.every((item) => isEmptyFilterValue(item));\n }\n\n if (typeof value === 'object') {\n const entries = Object.entries(value as Record<string, unknown>);\n if (entries.length === 0) {\n return true;\n }\n\n // Consider object empty if all nested values are empty\n return entries.every(([, v]) => isEmptyFilterValue(v));\n }\n\n return false;\n}\n\n//#endregion\n\n/**\n * Converts AXPContextData (filter context) to AXPFilterClause format\n *\n * Input format:\n * {\n * \"fieldName\": {\n * \"operation\": { \"type\": \"between\" },\n * \"value\": { \"from\": \"...\", \"to\": \"...\" }\n * }\n * }\n *\n * Output format:\n * {\n * logic: 'and',\n * filters: [\n * {\n * field: 'fieldName',\n * operator: { type: 'between' },\n * value: { from: \"...\", to: \"...\" }\n * }\n * ]\n * }\n */\nexport function convertContextDataToFilterClause(context: AXPContextData): AXPFilterClause {\n const filters: AXDataSourceFilterOption[] = [];\n\n // Iterate through all keys in context\n for (const [fieldName, fieldData] of Object.entries(context)) {\n if (fieldName.endsWith('EditorObj') || fieldName.startsWith('__')) {\n continue;\n }\n\n // Drill-down and URL shortcuts may pass plain parameter values (e.g. { brand: 'id' })\n if (fieldData === null || fieldData === undefined || typeof fieldData !== 'object' || Array.isArray(fieldData)) {\n if (!isEmptyFilterValue(fieldData)) {\n filters.push({\n field: fieldName,\n operator: {\n type: Array.isArray(fieldData) ? 'in' : 'equal',\n },\n value: fieldData,\n });\n }\n continue;\n }\n\n // Plain `{ from, to }` / `{ start, end }` objects (e.g. dateRange from OpenInPopup)\n if (isReportDateRangeObject(fieldData) && !('operation' in fieldData)) {\n // Date-range widgets use `between`; CDK operator union is narrower than runtime.\n filters.push({\n field: fieldName,\n operator: { type: 'between' as never },\n value: {\n from: String(fieldData.from ?? fieldData.start),\n to: String(fieldData.to ?? fieldData.end),\n },\n });\n continue;\n }\n\n // Skip structured filter objects without operation metadata\n if (!('operation' in fieldData)) {\n continue;\n }\n\n const operation = (fieldData as any).operation;\n const value = (fieldData as any).value;\n\n // Skip if operation type is missing\n if (!operation || !operation.type) {\n continue;\n }\n\n // Skip if value is effectively empty (null/undefined/empty string,\n // empty object/array, or deep object where all nested values are empty)\n if (isEmptyFilterValue(value)) {\n continue;\n }\n\n // Create filter clause\n const filter: AXDataSourceFilterOption = {\n field: fieldName,\n operator: {\n type: operation.type,\n },\n value: value,\n };\n\n filters.push(filter);\n }\n\n // Return filter clause with AND logic\n if (filters.length === 0) {\n return {\n logic: 'and',\n filters: [],\n };\n }\n\n return {\n logic: 'and',\n filters: filters,\n };\n}\n\n//#region ----- Query payload helpers -----\n\nexport type AXPReportPdfSource = {\n url?: string;\n base64?: string;\n blob?: Blob;\n filename?: string;\n};\n\nfunction asPdfSource(record: Record<string, unknown> | undefined): AXPReportPdfSource | null {\n if (!record) {\n return null;\n }\n const url = typeof record['url'] === 'string' ? record['url'] : undefined;\n const base64 = typeof record['base64'] === 'string' ? record['base64'] : undefined;\n const blob = record['blob'] instanceof Blob ? record['blob'] : undefined;\n const filename = typeof record['filename'] === 'string' ? record['filename'] : undefined;\n if (url == null && base64 == null && blob == null) {\n return null;\n }\n return { url, base64, blob, filename };\n}\n\nexport function queryResultToPdfSource(\n queryResult: AXPRuntimeQueryResult<unknown> | null | undefined,\n): AXPReportPdfSource | null {\n if (!queryResult?.success) {\n return null;\n }\n\n const fromObject = asPdfSource(\n (runtimeQueryPayloadData(queryResult) ?? runtimeQueryObjectData(queryResult)) as\n | Record<string, unknown>\n | undefined,\n );\n if (fromObject) {\n return fromObject;\n }\n\n const page = runtimeQueryCollectionData(queryResult);\n return asPdfSource(page?.items?.[0] as Record<string, unknown> | undefined);\n}\n\nexport function queryResultToChartSeries(\n queryResult: AXPRuntimeQueryResult<unknown> | null | undefined,\n mapping?: AXPChartDataMapping | null,\n): Record<string, number> {\n if (!queryResult?.success) {\n return {};\n }\n\n const objectData = runtimeQueryObjectData(queryResult) as Record<string, unknown> | undefined;\n if (objectData && !('items' in objectData)) {\n const series: Record<string, number> = {};\n for (const [key, value] of Object.entries(objectData)) {\n const n = Number(value);\n if (Number.isFinite(n)) {\n series[key] = n;\n }\n }\n if (Object.keys(series).length > 0) {\n return series;\n }\n }\n\n const page = runtimeQueryCollectionData(queryResult);\n const rows = (page?.items ?? []) as Record<string, unknown>[];\n if (rows.length === 0) {\n return {};\n }\n\n const firstRow = rows[0] ?? {};\n const keys = Object.keys(firstRow);\n const xField = mapping?.xField ?? keys[0] ?? 'x';\n const yFieldsRaw = mapping?.yFields;\n const yField = Array.isArray(yFieldsRaw)\n ? yFieldsRaw[0]\n : yFieldsRaw\n ? String(yFieldsRaw)\n : (keys[1] ?? 'value');\n\n const chartData: Record<string, number> = {};\n for (const row of rows) {\n const key = String(row[xField] ?? '');\n if (!key) {\n continue;\n }\n const value = Number(row[yField] ?? 0);\n if (Number.isFinite(value)) {\n chartData[key] = value;\n }\n }\n return chartData;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXPDialogOpener } from '@acorex-platform/framework-client/core';\nimport { AXPExpressionEvaluatorService } from '@acorex-platform/framework-client/core';\nimport {\n AXPExpressionEvaluatorScope,\n resolveMultiLanguageString,\n type AXPMultiLanguageString,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPInAppInboxConnectorService } from '@acorex-platform/module-communication-management-client';\nimport { buildReportGenerationNotificationCorrelationId } from '@acorex-platform/module-report-management-client/contracts';\nimport { get, isString } from 'lodash-es';\nimport { inject, Injectable } from '@angular/core';\nimport { resolveReportParameterValues } from '../reports/report-parameter.util';\nimport { AXPReportViewerService } from '../reports';\n\n//#endregion\n\n//#region ----- Command Input -----\n\nexport interface AXPOpenReportInPopupCommandInput {\n reportId?: string;\n layoutId?: string;\n runId?: string;\n title?: AXPMultiLanguageString;\n parameters?: Record<string, unknown>;\n hideColumnFields?: string[];\n data?: Record<string, unknown>;\n options?: Partial<AXPOpenReportInPopupCommandInput>;\n}\n\n//#endregion\n\n//#region ----- Command -----\n\n/** Opens a report in a results-only popup. Pass `runId` to show a frozen generation run. */\n@Injectable({ providedIn: 'root' })\nexport class AXPOpenReportInPopupCommand\n implements AXPCommand<AXPOpenReportInPopupCommandInput | Record<string, unknown>, void>\n{\n //#region ----- Services & Dependencies -----\n\n private readonly popupService = inject(AXPopupService);\n private readonly dialogOpener = inject(AXPDialogOpener);\n private readonly expressionEvaluator = inject(AXPExpressionEvaluatorService);\n private readonly translate = inject(AXTranslationService);\n private readonly reportViewerService = inject(AXPReportViewerService);\n private readonly inboxConnector = inject(AXPInAppInboxConnectorService, { optional: true });\n\n //#endregion\n\n //#region ----- Command Implementation -----\n\n async execute(\n input: AXPOpenReportInPopupCommandInput | Record<string, unknown>,\n ): AXPCommandExecuteResultPromise<void> {\n const rowData = this.resolveRowData(input);\n const options = await this.resolveOptions(input, rowData);\n\n if (!options.reportId) {\n return {\n success: false,\n message: {\n text: await this.translate.translateAsync(\n '@report-management:report-viewer.messages.error.invalid-popup-target',\n ),\n },\n };\n }\n\n const runId = typeof options.runId === 'string' ? options.runId.trim() : '';\n if (runId) {\n await this.dismissReportGenerationInboxNotification(runId);\n }\n const popupTitle = await this.resolvePopupTitle(options, rowData, runId);\n const parameters = resolveReportParameterValues(options.parameters);\n\n await this.dialogOpener.openPopup({\n load: () =>\n import('../features/report-viewer/report-popup-viewer/report-popup-viewer.component').then(\n (module) => module.AXPReportPopupViewerComponent,\n ),\n data: { reportId: options.reportId, layoutId: options.layoutId ?? '', runId },\n show: (component) =>\n this.popupService.open(component, {\n title: popupTitle,\n size: 'lg',\n maximizable: true,\n data: {\n reportId: options.reportId,\n layoutId: options.layoutId,\n runId,\n parameters,\n hideColumnFields: options.hideColumnFields ?? [],\n },\n }),\n });\n\n return {\n success: true,\n kind: 'object',\n data: undefined,\n metadata: { refresh: false },\n };\n }\n\n //#endregion\n\n //#region ----- Helpers -----\n\n private resolveRowData(\n input: AXPOpenReportInPopupCommandInput | Record<string, unknown>,\n ): Record<string, unknown> {\n const ctx = input as AXPOpenReportInPopupCommandInput;\n if (ctx?.data && typeof ctx.data === 'object') {\n return ctx.data as Record<string, unknown>;\n }\n if (\n (input as Record<string, unknown>)['data'] &&\n typeof (input as Record<string, unknown>)['data'] === 'object'\n ) {\n return (input as Record<string, unknown>)['data'] as Record<string, unknown>;\n }\n return input as Record<string, unknown>;\n }\n\n private async resolveOptions(\n input: AXPOpenReportInPopupCommandInput | Record<string, unknown>,\n rowData: Record<string, unknown>,\n ): Promise<AXPOpenReportInPopupCommandInput> {\n const typedInput = input as AXPOpenReportInPopupCommandInput;\n const rawOptions = {\n reportId: typedInput.reportId,\n layoutId: typedInput.layoutId,\n runId: typedInput.runId,\n title: typedInput.title,\n parameters: typedInput.parameters,\n hideColumnFields: typedInput.hideColumnFields,\n ...(typedInput.options ?? {}),\n };\n\n const scope: AXPExpressionEvaluatorScope = {\n context: {\n eval: (path: string) => get(rowData, path),\n },\n };\n\n return (await this.expressionEvaluator.evaluate(rawOptions, scope)) as AXPOpenReportInPopupCommandInput;\n }\n\n private async resolvePopupTitle(\n options: AXPOpenReportInPopupCommandInput,\n rowData: Record<string, unknown>,\n runId: string,\n ): Promise<string> {\n let baseTitle = await this.resolveExplicitPopupTitle(options.title, rowData);\n\n if (!baseTitle && options.reportId) {\n const report = await this.reportViewerService.getReportById(options.reportId);\n if (report?.title) {\n baseTitle =\n this.translate.resolve(report.title) ||\n resolveMultiLanguageString(report.title, this.translate.getActiveLang() || 'en-US') ||\n '';\n }\n }\n\n if (!baseTitle) {\n baseTitle = await this.translate.translateAsync(\n '@report-management:report-viewer.components.report-popup-viewer.title',\n );\n }\n\n if (!runId) {\n return baseTitle;\n }\n\n return this.translate.translateAsync(\n '@report-management:report-viewer.components.report-popup-viewer.generated-title',\n { params: { title: baseTitle } },\n );\n }\n\n private async resolveExplicitPopupTitle(\n title: AXPMultiLanguageString | undefined,\n rowData: Record<string, unknown>,\n ): Promise<string> {\n if (title && typeof title === 'object') {\n const resolved = this.translate.resolve(title);\n if (resolved) {\n return resolved;\n }\n }\n\n if (!isString(title) || !title.trim()) {\n return '';\n }\n\n const scope: AXPExpressionEvaluatorScope = {\n context: {\n eval: (path: string) => get(rowData, path),\n },\n };\n\n const evaluated = await this.expressionEvaluator.evaluate(title, scope);\n return isString(evaluated) ? evaluated : title;\n }\n\n private async dismissReportGenerationInboxNotification(runId: string): Promise<void> {\n if (!this.inboxConnector) {\n return;\n }\n try {\n await this.inboxConnector.dismissByCorrelationId(\n buildReportGenerationNotificationCorrelationId(runId),\n );\n } catch {\n // Best-effort — opening the report should still proceed.\n }\n }\n\n //#endregion\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAeA;AAEA;AAEA;;AAEG;MAEU,+BAA+B,CAAA;IAC1C,MAAM,MAAM,CAAC,OAA+C,EAAA;QAC1D,MAAM,IAAI,GAAG,kCAAkC;QAC/C,MAAM,MAAM,GAAG,4BAA4B;QAC3C,MAAM,CAAC,GAAG,wCAAwC;QAClD,MAAM,CAAC,GAAG,2BAA2B;QAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAA,EAAG,CAAC,2BAA2B,EAAE,CAAA,EAAG,CAAC,CAAA,+BAAA,CAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;QAEvI;AACG,aAAA,QAAQ,CACP,MAAM,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AAM,EAAE;;;;;;;;ACvClC;;AAEG;;"}
|
|
@@ -34,20 +34,6 @@ const RootConfig = {
|
|
|
34
34
|
titlePlural: `@${config.i18n}:reports.entities.report.plural`,
|
|
35
35
|
icon: 'fa-light fa-file-chart-pie',
|
|
36
36
|
},
|
|
37
|
-
querySnapshotPolicy: {
|
|
38
|
-
name: 'QuerySnapshotPolicy',
|
|
39
|
-
fullName: `${config.module}.QuerySnapshotPolicy`,
|
|
40
|
-
title: `@${config.i18n}:query-snapshots.entities.policy.title`,
|
|
41
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
|
|
42
|
-
icon: 'fa-light fa-sliders',
|
|
43
|
-
},
|
|
44
|
-
querySnapshot: {
|
|
45
|
-
name: 'QuerySnapshot',
|
|
46
|
-
fullName: `${config.module}.QuerySnapshot`,
|
|
47
|
-
title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
|
|
48
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
|
|
49
|
-
icon: 'fa-light fa-camera',
|
|
50
|
-
},
|
|
51
37
|
reportGenerationRequest: {
|
|
52
38
|
name: 'ReportGenerationRequest',
|
|
53
39
|
fullName: `${config.module}.ReportGenerationRequest`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report-category.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report-category.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report-category.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report-category.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","import {AXPEntity, createAllQueryView, entityMasterCrudActions} from '@acorex-platform/framework-shared/entity';\nimport {AXPWidgetsCatalog} from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report category entity factory ----\n\nexport async function reportCategoryEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.category.name,\n parentKey: 'parentId',\n title: RootConfig.entities.category.title,\n icon: RootConfig.entities.category.icon,\n searchTags: [\n 'report-category',\n 'report-folder',\n 'report-group',\n 'category-tree',\n 'report-organization',\n 'report-hierarchy',\n 'report-classification',\n 'دسته گزارش',\n 'دستههای گزارش',\n 'دسته',\n 'گروه گزارش',\n ],\n formats: {\n individual: RootConfig.entities.category.title,\n plural: RootConfig.entities.category.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'childrenCount',\n title: '@general:terms.common.children-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'itemsCount',\n title: '@general:terms.common.items-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report-category';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAClD,YAAA,WAAW,EAAE,CAAA,6BAAA,EAAgC,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAC9D,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AAC3C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gCAAA,CAAkC;AACxD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,iCAAA,CAAmC;AAC/D,YAAA,IAAI,EAAE,oBAAoB;AAC3B,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,OAAA,CAAS;AACnC,YAAA,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AM,EAAE,EAAE;AAC9E,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,YAAY;AAClB,gBAAA,KAAK,EAAE,mCAAmC;AAC1C,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,EAAE,EAAE;AAC9E,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;AACrD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AChFA;;AAEG;;"}
|
|
@@ -34,20 +34,6 @@ const RootConfig = {
|
|
|
34
34
|
titlePlural: `@${config.i18n}:reports.entities.report.plural`,
|
|
35
35
|
icon: 'fa-light fa-file-chart-pie',
|
|
36
36
|
},
|
|
37
|
-
querySnapshotPolicy: {
|
|
38
|
-
name: 'QuerySnapshotPolicy',
|
|
39
|
-
fullName: `${config.module}.QuerySnapshotPolicy`,
|
|
40
|
-
title: `@${config.i18n}:query-snapshots.entities.policy.title`,
|
|
41
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
|
|
42
|
-
icon: 'fa-light fa-sliders',
|
|
43
|
-
},
|
|
44
|
-
querySnapshot: {
|
|
45
|
-
name: 'QuerySnapshot',
|
|
46
|
-
fullName: `${config.module}.QuerySnapshot`,
|
|
47
|
-
title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
|
|
48
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
|
|
49
|
-
icon: 'fa-light fa-camera',
|
|
50
|
-
},
|
|
51
37
|
reportGenerationRequest: {
|
|
52
38
|
name: 'ReportGenerationRequest',
|
|
53
39
|
fullName: `${config.module}.ReportGenerationRequest`,
|
|
@@ -116,7 +102,7 @@ async function reportGenerationRequestEntityFactory() {
|
|
|
116
102
|
name: 'reportId',
|
|
117
103
|
title: `${I18N}.fields.report-id`,
|
|
118
104
|
groupId: 'basic-info',
|
|
119
|
-
schema: { dataType: '
|
|
105
|
+
schema: { dataType: 'reference', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
120
106
|
options: {
|
|
121
107
|
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
122
108
|
sort: { enabled: true },
|
|
@@ -164,7 +150,7 @@ async function reportGenerationRequestEntityFactory() {
|
|
|
164
150
|
name: 'jobId',
|
|
165
151
|
title: `${I18N}.fields.job-id`,
|
|
166
152
|
groupId: 'basic-info',
|
|
167
|
-
schema: { dataType: '
|
|
153
|
+
schema: { dataType: 'reference', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
168
154
|
},
|
|
169
155
|
{
|
|
170
156
|
name: 'startedAt',
|