@acorex-platform/module-report-management-server 0.0.15 → 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/contracts/src/commands.keys.d.ts +13 -0
- package/contracts/src/commands.keys.js +19 -0
- package/contracts/src/commands.keys.js.map +1 -0
- package/contracts/src/entities/index.d.ts +1 -0
- package/contracts/src/entities/index.js +1 -0
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/report/index.d.ts +1 -1
- package/contracts/src/entities/report/index.js +1 -1
- package/contracts/src/entities/report/index.js.map +1 -1
- package/contracts/src/entities/report/report.entity.js +180 -12
- package/contracts/src/entities/report/report.entity.js.map +1 -1
- package/contracts/src/entities/report-category/index.d.ts +1 -1
- package/contracts/src/entities/report-category/index.js +0 -2
- package/contracts/src/entities/report-category/index.js.map +1 -1
- package/contracts/src/entities/report-category/report-category.entity.js +14 -1
- package/contracts/src/entities/report-category/report-category.entity.js.map +1 -1
- package/contracts/src/entities/report-generation-request/index.d.ts +1 -0
- package/contracts/src/entities/report-generation-request/index.js +5 -0
- package/contracts/src/entities/report-generation-request/index.js.map +1 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.d.ts +2 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.js +208 -0
- package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map +1 -0
- package/contracts/src/entity-catalog.d.ts +7 -0
- package/contracts/src/entity-catalog.js +22 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.report-category.d.ts +1 -0
- package/contracts/src/entity-entry.report-category.js +6 -0
- package/contracts/src/entity-entry.report-category.js.map +1 -0
- package/contracts/src/entity-entry.report-generation-request.d.ts +1 -0
- package/contracts/src/entity-entry.report-generation-request.js +6 -0
- package/contracts/src/entity-entry.report-generation-request.js.map +1 -0
- package/contracts/src/entity-entry.report.d.ts +1 -0
- package/contracts/src/entity-entry.report.js +6 -0
- package/contracts/src/entity-entry.report.js.map +1 -0
- package/contracts/src/index.d.ts +18 -1
- package/contracts/src/index.js +18 -1
- package/contracts/src/index.js.map +1 -1
- package/contracts/src/manifest.d.ts +6 -0
- package/contracts/src/manifest.js +24 -0
- package/contracts/src/manifest.js.map +1 -0
- package/contracts/src/permission.keys.d.ts +30 -14
- package/contracts/src/permission.keys.js +28 -12
- package/contracts/src/permission.keys.js.map +1 -1
- package/contracts/src/query-cache-targets.d.ts +5 -0
- package/contracts/src/query-cache-targets.js +113 -0
- package/contracts/src/query-cache-targets.js.map +1 -0
- package/contracts/src/report-filter-form.util.d.ts +20 -0
- package/contracts/src/report-filter-form.util.js +121 -0
- package/contracts/src/report-filter-form.util.js.map +1 -0
- package/contracts/src/report-generation.types.d.ts +97 -0
- package/contracts/src/report-generation.types.js +14 -0
- package/contracts/src/report-generation.types.js.map +1 -0
- package/contracts/src/report-interchange.projection.d.ts +22 -0
- package/contracts/src/report-interchange.projection.js +171 -0
- package/contracts/src/report-interchange.projection.js.map +1 -0
- package/contracts/src/report-interchange.snapshot.d.ts +12 -0
- package/contracts/src/report-interchange.snapshot.js +34 -0
- package/contracts/src/report-interchange.snapshot.js.map +1 -0
- package/contracts/src/report-interchange.types.d.ts +38 -0
- package/contracts/src/report-interchange.types.js +4 -0
- package/contracts/src/report-interchange.types.js.map +1 -0
- package/contracts/src/report-layout-field-schema.d.ts +64 -0
- package/contracts/src/report-layout-field-schema.js +294 -0
- package/contracts/src/report-layout-field-schema.js.map +1 -0
- package/contracts/src/report-layout-form.util.d.ts +67 -0
- package/contracts/src/report-layout-form.util.js +578 -0
- package/contracts/src/report-layout-form.util.js.map +1 -0
- package/contracts/src/report-layout-json-sections.d.ts +15 -0
- package/contracts/src/report-layout-json-sections.js +38 -0
- package/contracts/src/report-layout-json-sections.js.map +1 -0
- package/contracts/src/report-layout-sections.mapper.d.ts +37 -0
- package/contracts/src/report-layout-sections.mapper.js +306 -0
- package/contracts/src/report-layout-sections.mapper.js.map +1 -0
- package/contracts/src/report-layout-starter.d.ts +15 -0
- package/contracts/src/report-layout-starter.js +93 -0
- package/contracts/src/report-layout-starter.js.map +1 -0
- package/contracts/src/report-layout.presets.d.ts +17 -0
- package/contracts/src/report-layout.presets.js +72 -0
- package/contracts/src/report-layout.presets.js.map +1 -0
- package/contracts/src/report-parameter-binding.util.d.ts +8 -0
- package/contracts/src/report-parameter-binding.util.js +29 -0
- package/contracts/src/report-parameter-binding.util.js.map +1 -0
- package/contracts/src/report.types.d.ts +125 -107
- package/contracts/src/report.types.js.map +1 -1
- package/contracts/src/root-config.d.ts +9 -2
- package/contracts/src/root-config.js +9 -2
- package/contracts/src/root-config.js.map +1 -1
- package/contracts/src/runtime.keys.d.ts +14 -0
- package/contracts/src/runtime.keys.js +20 -0
- package/contracts/src/runtime.keys.js.map +1 -0
- package/contracts/src/settings.keys.d.ts +11 -0
- package/contracts/src/settings.keys.js +17 -0
- package/contracts/src/settings.keys.js.map +1 -0
- package/package.json +9 -7
- package/server/src/index.d.ts +4 -4
- package/server/src/index.js +9 -8
- package/server/src/index.js.map +1 -1
- package/server/src/lib/entities/index.d.ts +1 -0
- package/server/src/lib/entities/index.js +5 -0
- package/server/src/lib/entities/index.js.map +1 -0
- package/server/src/lib/entities/report-management.entity-catalog.d.ts +1 -0
- package/server/src/lib/entities/report-management.entity-catalog.js +12 -0
- package/server/src/lib/entities/report-management.entity-catalog.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-definition.service.d.ts +18 -0
- package/server/src/lib/interchange/report-interchange-definition.service.js +94 -0
- package/server/src/lib/interchange/report-interchange-definition.service.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.d.ts +16 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.js +72 -0
- package/server/src/lib/interchange/report-interchange-export-data-source.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.d.ts +10 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.js +22 -0
- package/server/src/lib/interchange/report-interchange-export-query.util.js.map +1 -0
- package/server/src/lib/interchange/report-interchange-export.command.d.ts +31 -0
- package/server/src/lib/interchange/report-interchange-export.command.js +268 -0
- package/server/src/lib/interchange/report-interchange-export.command.js.map +1 -0
- package/server/src/lib/report-browse.service.js +32 -13
- package/server/src/lib/report-browse.service.js.map +1 -1
- package/server/src/lib/report-browse.types.d.ts +27 -12
- package/server/src/lib/report-browse.types.js +0 -1
- package/server/src/lib/report-browse.types.js.map +1 -1
- package/server/src/lib/report-definition.seed-provider.d.ts +15 -0
- package/server/src/lib/report-definition.seed-provider.js +63 -0
- package/server/src/lib/report-definition.seed-provider.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-create.command.d.ts +17 -0
- package/server/src/lib/report-generation/report-generation-create.command.js +177 -0
- package/server/src/lib/report-generation/report-generation-create.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.d.ts +21 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.js +58 -0
- package/server/src/lib/report-generation/report-generation-enqueue.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-execute.command.d.ts +10 -0
- package/server/src/lib/report-generation/report-generation-execute.command.js +49 -0
- package/server/src/lib/report-generation/report-generation-execute.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-execute.service.d.ts +23 -0
- package/server/src/lib/report-generation/report-generation-execute.service.js +226 -0
- package/server/src/lib/report-generation/report-generation-execute.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.d.ts +8 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.js +43 -0
- package/server/src/lib/report-generation/report-generation-job-presentation.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-notify.service.d.ts +23 -0
- package/server/src/lib/report-generation/report-generation-notify.service.js +159 -0
- package/server/src/lib/report-generation/report-generation-notify.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-policy.util.d.ts +39 -0
- package/server/src/lib/report-generation/report-generation-policy.util.js +95 -0
- package/server/src/lib/report-generation/report-generation-policy.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-progress.util.d.ts +14 -0
- package/server/src/lib/report-generation/report-generation-progress.util.js +51 -0
- package/server/src/lib/report-generation/report-generation-progress.util.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.d.ts +10 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js +55 -0
- package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.d.ts +27 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.js +136 -0
- package/server/src/lib/report-generation/report-generation-runtime.handlers.js.map +1 -0
- package/server/src/lib/report-generation/report-generation-settings.service.d.ts +12 -0
- package/server/src/lib/report-generation/report-generation-settings.service.js +49 -0
- package/server/src/lib/report-generation/report-generation-settings.service.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.constants.d.ts +16 -0
- package/server/src/lib/report-generation/report-generation.constants.js +24 -0
- package/server/src/lib/report-generation/report-generation.constants.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.store.d.ts +25 -0
- package/server/src/lib/report-generation/report-generation.store.js +145 -0
- package/server/src/lib/report-generation/report-generation.store.js.map +1 -0
- package/server/src/lib/report-generation/report-generation.util.d.ts +8 -0
- package/server/src/lib/report-generation/report-generation.util.js +131 -0
- package/server/src/lib/report-generation/report-generation.util.js.map +1 -0
- package/server/src/lib/report-management-runtime.handlers.d.ts +32 -0
- package/server/src/lib/report-management-runtime.handlers.js +78 -0
- package/server/src/lib/report-management-runtime.handlers.js.map +1 -0
- package/server/src/lib/report-management-server.module.js +55 -9
- package/server/src/lib/report-management-server.module.js.map +1 -1
- package/server/src/lib/report-management.controller.d.ts +1 -4
- package/server/src/lib/report-management.controller.js +2 -16
- package/server/src/lib/report-management.controller.js.map +1 -1
- package/server/src/lib/seed/index.d.ts +0 -19
- package/server/src/lib/seed/index.js +0 -21
- package/server/src/lib/seed/index.js.map +0 -1
- package/server/src/lib/seed/report-management-seed.provider.d.ts +0 -4
- package/server/src/lib/seed/report-management-seed.provider.js +0 -18
- package/server/src/lib/seed/report-management-seed.provider.js.map +0 -1
- package/server/src/lib/seed/report-management-seed.tokens.d.ts +0 -1
- package/server/src/lib/seed/report-management-seed.tokens.js +0 -7
- package/server/src/lib/seed/report-management-seed.tokens.js.map +0 -1
- package/server/src/lib/seed/report-management.seed-catalog.d.ts +0 -2
- package/server/src/lib/seed/report-management.seed-catalog.js +0 -10
- package/server/src/lib/seed/report-management.seed-catalog.js.map +0 -1
- package/server/src/lib/seed/samples/employee-report.mock.d.ts +0 -9
- package/server/src/lib/seed/samples/employee-report.mock.js +0 -322
- package/server/src/lib/seed/samples/employee-report.mock.js.map +0 -1
- package/server/src/lib/seed/samples/index.d.ts +0 -2
- package/server/src/lib/seed/samples/index.js +0 -6
- package/server/src/lib/seed/samples/index.js.map +0 -1
- package/server/src/lib/seed/samples/location-report.mock.d.ts +0 -9
- package/server/src/lib/seed/samples/location-report.mock.js +0 -339
- package/server/src/lib/seed/samples/location-report.mock.js.map +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportManagementSeedCatalogProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const common_1 = require("@nestjs/common");
|
|
6
|
-
const report_management_seed_catalog_1 = require("./report-management.seed-catalog");
|
|
7
|
-
//#region ---- report-management seed provider ----
|
|
8
|
-
let ReportManagementSeedCatalogProvider = class ReportManagementSeedCatalogProvider {
|
|
9
|
-
getCatalog() {
|
|
10
|
-
return report_management_seed_catalog_1.reportmanagementSeedCatalog;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
exports.ReportManagementSeedCatalogProvider = ReportManagementSeedCatalogProvider;
|
|
14
|
-
exports.ReportManagementSeedCatalogProvider = ReportManagementSeedCatalogProvider = tslib_1.__decorate([
|
|
15
|
-
(0, common_1.Injectable)()
|
|
16
|
-
], ReportManagementSeedCatalogProvider);
|
|
17
|
-
//#endregion
|
|
18
|
-
//# sourceMappingURL=report-management-seed.provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report-management-seed.provider.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/seed/report-management-seed.provider.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAG5C,qFAA+E;AAE/E,mDAAmD;AAG5C,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAC9C,UAAU;QACR,OAAO,4DAA2B,CAAC;IACrC,CAAC;CACF,CAAA;AAJY,kFAAmC;8CAAnC,mCAAmC;IAD/C,IAAA,mBAAU,GAAE;GACA,mCAAmC,CAI/C;AAED,YAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const REPORT_MANAGEMENT_MODULE_SEED = "REPORT_MANAGEMENT_MODULE_SEED";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//#region ---- report-management seed tokens ----
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.REPORT_MANAGEMENT_MODULE_SEED = void 0;
|
|
5
|
-
exports.REPORT_MANAGEMENT_MODULE_SEED = 'REPORT_MANAGEMENT_MODULE_SEED';
|
|
6
|
-
//#endregion
|
|
7
|
-
//# sourceMappingURL=report-management-seed.tokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report-management-seed.tokens.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/seed/report-management-seed.tokens.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAEpC,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAE7E,YAAY"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reportmanagementSeedCatalog = void 0;
|
|
4
|
-
//#region ---- report-management seed catalog ----
|
|
5
|
-
exports.reportmanagementSeedCatalog = {
|
|
6
|
-
moduleName: 'report-management',
|
|
7
|
-
definitions: [],
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
//# sourceMappingURL=report-management.seed-catalog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report-management.seed-catalog.js","sourceRoot":"","sources":["../../../../../../../libs/modules/report-management/server/src/lib/seed/report-management.seed-catalog.ts"],"names":[],"mappings":";;;AAEA,kDAAkD;AAErC,QAAA,2BAA2B,GAAyB;IAC/D,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,YAAY"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AXPReportCategory, AXPReportDefinition } from '@acorex-platform/module-report-management-contracts';
|
|
2
|
-
export declare const EMPLOYEE_REPORT_CATEGORIES: AXPReportCategory[];
|
|
3
|
-
export declare const EMPLOYEE_REPORT_DEFINITIONS: AXPReportDefinition[];
|
|
4
|
-
/**
|
|
5
|
-
* Create a mapping of categories to their reports for easy lookup
|
|
6
|
-
*
|
|
7
|
-
* Optimization: Only processes categories with itemsCount > 0
|
|
8
|
-
*/
|
|
9
|
-
export declare const EMPLOYEE_CATEGORY_REPORT_MAPPING: Map<string, AXPReportDefinition[]>;
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EMPLOYEE_CATEGORY_REPORT_MAPPING = exports.EMPLOYEE_REPORT_DEFINITIONS = exports.EMPLOYEE_REPORT_CATEGORIES = void 0;
|
|
4
|
-
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
5
|
-
const seed_1 = require("@acorex-platform/module-common-server/seed");
|
|
6
|
-
//#region ---- Mock Categories ----
|
|
7
|
-
/**
|
|
8
|
-
* Generate report categories for employee reports
|
|
9
|
-
*/
|
|
10
|
-
function generateCategories() {
|
|
11
|
-
const categories = [];
|
|
12
|
-
// Root categories with child count metadata
|
|
13
|
-
const rootCategories = [
|
|
14
|
-
{
|
|
15
|
-
title: 'Human Resources',
|
|
16
|
-
description: 'Human resources analysis and reports',
|
|
17
|
-
childrenCount: 1, // Has 1 child category
|
|
18
|
-
itemsCount: 0, // No direct reports
|
|
19
|
-
},
|
|
20
|
-
];
|
|
21
|
-
rootCategories.forEach(({ title, description, childrenCount, itemsCount }) => {
|
|
22
|
-
const categoryId = seed_1.AXPDataGenerator.uuid();
|
|
23
|
-
categories.push({
|
|
24
|
-
id: categoryId,
|
|
25
|
-
title,
|
|
26
|
-
description,
|
|
27
|
-
parentId: undefined,
|
|
28
|
-
childrenCount,
|
|
29
|
-
itemsCount,
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
// Child categories (leaf nodes with reports)
|
|
33
|
-
const childCategories = [
|
|
34
|
-
{
|
|
35
|
-
parent: 'Human Resources',
|
|
36
|
-
children: [
|
|
37
|
-
{
|
|
38
|
-
title: 'Employee Analysis',
|
|
39
|
-
description: 'Employee analysis and insights',
|
|
40
|
-
childrenCount: 0,
|
|
41
|
-
itemsCount: 1, // Employees by Department
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
childCategories.forEach(({ parent, children }) => {
|
|
47
|
-
const parentCat = categories.find((c) => (0, seed_1.resolveMultiLanguageString)(c.title, 'en-US') === parent);
|
|
48
|
-
if (parentCat) {
|
|
49
|
-
children.forEach(({ title, description, childrenCount, itemsCount }) => {
|
|
50
|
-
categories.push({
|
|
51
|
-
id: seed_1.AXPDataGenerator.uuid(),
|
|
52
|
-
title,
|
|
53
|
-
description,
|
|
54
|
-
parentId: parentCat.id,
|
|
55
|
-
childrenCount,
|
|
56
|
-
itemsCount,
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
return categories;
|
|
62
|
-
}
|
|
63
|
-
exports.EMPLOYEE_REPORT_CATEGORIES = generateCategories();
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region ---- Mock Parameter Groups ----
|
|
66
|
-
const employeeReportParameterGroups = [
|
|
67
|
-
{
|
|
68
|
-
name: 'employeeDetails',
|
|
69
|
-
title: 'Employee Details',
|
|
70
|
-
description: 'Employee filtering options with cascade parameters',
|
|
71
|
-
parameters: [
|
|
72
|
-
{
|
|
73
|
-
path: 'departmentId',
|
|
74
|
-
title: 'Department',
|
|
75
|
-
description: 'Filter by department (cascade parent)',
|
|
76
|
-
widget: {
|
|
77
|
-
type: core_1.AXPWidgetsList.Editors.LookupBox,
|
|
78
|
-
options: {
|
|
79
|
-
entity: 'OrganizationManagement.BusinessUnit',
|
|
80
|
-
multiple: false,
|
|
81
|
-
textField: 'title',
|
|
82
|
-
valueField: 'id',
|
|
83
|
-
look: 'select',
|
|
84
|
-
columns: ['title', 'code'],
|
|
85
|
-
expose: [
|
|
86
|
-
{ source: 'id', target: 'department.id' },
|
|
87
|
-
{ source: 'title', target: 'department.title' },
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
path: 'teamId',
|
|
94
|
-
title: 'Team',
|
|
95
|
-
description: 'Filter by team (cascade child - filtered by selected department)',
|
|
96
|
-
widget: {
|
|
97
|
-
type: core_1.AXPWidgetsList.Editors.LookupBox,
|
|
98
|
-
options: {
|
|
99
|
-
entity: 'OrganizationManagement.Team',
|
|
100
|
-
multiple: false,
|
|
101
|
-
textField: 'title',
|
|
102
|
-
valueField: 'id',
|
|
103
|
-
look: 'select',
|
|
104
|
-
columns: ['title'],
|
|
105
|
-
expose: [
|
|
106
|
-
{ source: 'id', target: 'team.id' },
|
|
107
|
-
{ source: 'title', target: 'team.title' },
|
|
108
|
-
],
|
|
109
|
-
// CASCADE FILTER: Only show teams for selected department
|
|
110
|
-
// Note: This uses leader.position.departmentId path assuming teams are filtered by their leader's department
|
|
111
|
-
// Adjust the field path based on your actual Team entity structure
|
|
112
|
-
filter: {
|
|
113
|
-
logic: 'and',
|
|
114
|
-
filters: [
|
|
115
|
-
{
|
|
116
|
-
field: 'departmentId', // Path to department through team leader's position
|
|
117
|
-
operator: { type: 'equal' },
|
|
118
|
-
value: '{{ context.eval("departmentId.value") }}', // Extract value from filter context object
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
// TRIGGER: Refresh team dropdown when department changes
|
|
124
|
-
triggers: [
|
|
125
|
-
{
|
|
126
|
-
event: "{{ events.context('departmentId') }}",
|
|
127
|
-
action: `{{
|
|
128
|
-
// Clear team selection when department changes
|
|
129
|
-
if (!context.eval('department.value')) {
|
|
130
|
-
widget.setValue(null);
|
|
131
|
-
} else {
|
|
132
|
-
widget.refresh();
|
|
133
|
-
}
|
|
134
|
-
}}`,
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
path: 'employmentType',
|
|
141
|
-
title: 'Employment Type',
|
|
142
|
-
description: 'Filter by employment type',
|
|
143
|
-
widget: {
|
|
144
|
-
type: core_1.AXPWidgetsList.Editors.SelectBox,
|
|
145
|
-
options: {
|
|
146
|
-
valueField: 'value',
|
|
147
|
-
textField: 'text',
|
|
148
|
-
dataSource: [
|
|
149
|
-
{ value: 'all', text: 'All' },
|
|
150
|
-
{ value: 'full-time', text: 'Full Time' },
|
|
151
|
-
{ value: 'part-time', text: 'Part Time' },
|
|
152
|
-
{ value: 'contract', text: 'Contract' },
|
|
153
|
-
{ value: 'intern', text: 'Intern' },
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
|
-
];
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region ---- Layout Definitions Generator ----
|
|
163
|
-
function generateLayoutsForReport(reportTitle) {
|
|
164
|
-
const layouts = [];
|
|
165
|
-
const titleLower = reportTitle.toLowerCase();
|
|
166
|
-
// Generate base export options
|
|
167
|
-
const baseExportOptions = {
|
|
168
|
-
fileNameTemplate: 'Report_{date}_{user}',
|
|
169
|
-
pdf: {
|
|
170
|
-
enabled: true,
|
|
171
|
-
pageSize: 'A4',
|
|
172
|
-
headerEnabled: true,
|
|
173
|
-
footerEnabled: true,
|
|
174
|
-
showPageNumbers: true,
|
|
175
|
-
watermarkText: 'Mock Report',
|
|
176
|
-
watermarkOpacity: 0.5,
|
|
177
|
-
compression: true,
|
|
178
|
-
embedImages: true,
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
// Table Layout (always available)
|
|
182
|
-
if (titleLower.includes('employee') || titleLower.includes('department')) {
|
|
183
|
-
layouts.push({
|
|
184
|
-
id: seed_1.AXPDataGenerator.uuid(),
|
|
185
|
-
title: 'Table View',
|
|
186
|
-
description: 'Detailed tabular view of the data',
|
|
187
|
-
icon: 'fa-light fa-table',
|
|
188
|
-
isDefault: true,
|
|
189
|
-
layout: {
|
|
190
|
-
type: 'table',
|
|
191
|
-
columns: [
|
|
192
|
-
{
|
|
193
|
-
field: 'departmentTitle',
|
|
194
|
-
title: 'Department',
|
|
195
|
-
visible: true,
|
|
196
|
-
align: 'left',
|
|
197
|
-
sortable: true,
|
|
198
|
-
widget: { type: core_1.AXPWidgetsList.Editors.TextBox, path: 'departmentTitle' },
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
field: 'teamTitle',
|
|
202
|
-
title: 'Team',
|
|
203
|
-
visible: true,
|
|
204
|
-
align: 'left',
|
|
205
|
-
sortable: true,
|
|
206
|
-
widget: { type: core_1.AXPWidgetsList.Editors.TextBox, path: 'teamTitle' },
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
field: 'employeeCount',
|
|
210
|
-
title: 'Employee Count',
|
|
211
|
-
visible: true,
|
|
212
|
-
align: 'right',
|
|
213
|
-
sortable: true,
|
|
214
|
-
widget: { type: core_1.AXPWidgetsList.Editors.NumberBox, path: 'employeeCount' },
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
field: 'employmentTypes',
|
|
218
|
-
title: 'Employment Types',
|
|
219
|
-
visible: true,
|
|
220
|
-
align: 'left',
|
|
221
|
-
widget: { type: core_1.AXPWidgetsList.Editors.TextBox, path: 'employmentTypes' },
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
field: 'averageExperience',
|
|
225
|
-
title: 'Avg Experience (Years)',
|
|
226
|
-
visible: true,
|
|
227
|
-
align: 'right',
|
|
228
|
-
sortable: true,
|
|
229
|
-
widget: { type: core_1.AXPWidgetsList.Editors.NumberBox, path: 'averageExperience' },
|
|
230
|
-
},
|
|
231
|
-
],
|
|
232
|
-
actions: [],
|
|
233
|
-
options: {
|
|
234
|
-
pagination: true,
|
|
235
|
-
stickyHeader: true,
|
|
236
|
-
stripedRows: true,
|
|
237
|
-
sorting: [{ name: 'departmentTitle', dir: 'asc' }],
|
|
238
|
-
},
|
|
239
|
-
summary: [
|
|
240
|
-
{ field: 'employeeCount', operation: 'sum', displayIn: 'reportFooter' },
|
|
241
|
-
{ field: 'averageExperience', operation: 'avg', displayIn: 'reportFooter' },
|
|
242
|
-
],
|
|
243
|
-
},
|
|
244
|
-
dataSource: {
|
|
245
|
-
type: 'query',
|
|
246
|
-
name: 'getEmployeeList',
|
|
247
|
-
pagination: true,
|
|
248
|
-
sortFields: [{ name: 'departmentTitle', dir: 'asc' }],
|
|
249
|
-
},
|
|
250
|
-
export: Object.assign(Object.assign({}, baseExportOptions), { fileNameTemplate: 'Employee_Report_{date}_{user}', excel: {
|
|
251
|
-
enabled: true,
|
|
252
|
-
sheetName: 'Employee Report',
|
|
253
|
-
}, csv: {
|
|
254
|
-
enabled: true,
|
|
255
|
-
}, pdf: {
|
|
256
|
-
enabled: true,
|
|
257
|
-
} }),
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
return layouts;
|
|
261
|
-
}
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region ---- Mock Report Definitions ----
|
|
264
|
-
/**
|
|
265
|
-
* Generate report definitions for categories
|
|
266
|
-
*
|
|
267
|
-
* Optimization: Only generates reports for categories with itemsCount > 0
|
|
268
|
-
*/
|
|
269
|
-
function generateReportDefinitions() {
|
|
270
|
-
const reports = [];
|
|
271
|
-
// ✅ Get categories that have reports (itemsCount > 0)
|
|
272
|
-
const categoriesWithReports = exports.EMPLOYEE_REPORT_CATEGORIES.filter((cat) => { var _a; return ((_a = cat.itemsCount) !== null && _a !== void 0 ? _a : 0) > 0; });
|
|
273
|
-
categoriesWithReports.forEach((category) => {
|
|
274
|
-
let reportsForCategory = [];
|
|
275
|
-
switch (category.title) {
|
|
276
|
-
case 'Employee Analysis':
|
|
277
|
-
reportsForCategory = [
|
|
278
|
-
{
|
|
279
|
-
title: 'Employees by Department',
|
|
280
|
-
description: 'Employee analysis grouped by department and team with cascade filtering',
|
|
281
|
-
parameterGroups: [...employeeReportParameterGroups],
|
|
282
|
-
},
|
|
283
|
-
];
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
reportsForCategory.forEach((report) => {
|
|
287
|
-
const layouts = generateLayoutsForReport(report.title);
|
|
288
|
-
const defaultLayout = layouts.find((l) => l.isDefault) || layouts[0];
|
|
289
|
-
reports.push({
|
|
290
|
-
id: seed_1.AXPDataGenerator.uuid(),
|
|
291
|
-
title: report.title,
|
|
292
|
-
description: report.description,
|
|
293
|
-
categoryIds: [category.id],
|
|
294
|
-
parameterGroups: report.parameterGroups,
|
|
295
|
-
layouts: layouts,
|
|
296
|
-
defaultLayoutId: (defaultLayout === null || defaultLayout === void 0 ? void 0 : defaultLayout.id) || '',
|
|
297
|
-
});
|
|
298
|
-
});
|
|
299
|
-
});
|
|
300
|
-
return reports;
|
|
301
|
-
}
|
|
302
|
-
exports.EMPLOYEE_REPORT_DEFINITIONS = generateReportDefinitions();
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region ---- Category-Report Mapping ----
|
|
305
|
-
/**
|
|
306
|
-
* Create a mapping of categories to their reports for easy lookup
|
|
307
|
-
*
|
|
308
|
-
* Optimization: Only processes categories with itemsCount > 0
|
|
309
|
-
*/
|
|
310
|
-
exports.EMPLOYEE_CATEGORY_REPORT_MAPPING = new Map();
|
|
311
|
-
exports.EMPLOYEE_REPORT_CATEGORIES.filter((cat) => { var _a; return ((_a = cat.itemsCount) !== null && _a !== void 0 ? _a : 0) > 0; }).forEach((category) => {
|
|
312
|
-
const categoryTitleLc = (0, seed_1.resolveMultiLanguageString)(category.title, 'en-US').toLowerCase();
|
|
313
|
-
const categoryReports = exports.EMPLOYEE_REPORT_DEFINITIONS.filter((report) => {
|
|
314
|
-
var _a;
|
|
315
|
-
// Simple matching based on category title and report title
|
|
316
|
-
return ((0, seed_1.resolveMultiLanguageString)(report.title).toLowerCase().includes(categoryTitleLc) ||
|
|
317
|
-
((_a = (0, seed_1.resolveMultiLanguageString)(report.description)) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(categoryTitleLc)));
|
|
318
|
-
});
|
|
319
|
-
exports.EMPLOYEE_CATEGORY_REPORT_MAPPING.set(category.id, categoryReports);
|
|
320
|
-
});
|
|
321
|
-
//#endregion
|
|
322
|
-
//# sourceMappingURL=employee-report.mock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"employee-report.mock.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/report-management/server/src/lib/seed/samples/employee-report.mock.ts"],"names":[],"mappings":";;;AAEA,iEAAsE;AACtE,qEAAwG;AAQxG,uCAAuC;AAEvC;;GAEG;AACH,SAAS,kBAAkB;IACzB,MAAM,UAAU,GAAwB,EAAE,CAAC;IAE3C,4CAA4C;IAC5C,MAAM,cAAc,GAAG;QACrB;YACE,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,sCAAsC;YACnD,aAAa,EAAE,CAAC,EAAE,uBAAu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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./employee-report.mock"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./location-report.mock"), exports);
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/report-management/server/src/lib/seed/samples/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,iEAAuC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AXPReportCategory, AXPReportDefinition } from '@acorex-platform/module-report-management-contracts';
|
|
2
|
-
export declare const LOCATION_REPORT_CATEGORIES: AXPReportCategory[];
|
|
3
|
-
export declare const LOCATION_REPORT_DEFINITIONS: AXPReportDefinition[];
|
|
4
|
-
/**
|
|
5
|
-
* Create a mapping of categories to their reports for easy lookup
|
|
6
|
-
*
|
|
7
|
-
* Optimization: Only processes categories with itemsCount > 0
|
|
8
|
-
*/
|
|
9
|
-
export declare const LOCATION_CATEGORY_REPORT_MAPPING: Map<string, AXPReportDefinition[]>;
|