@acorex-platform/module-report-management-server 0.0.15

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.
Files changed (70) hide show
  1. package/contracts/src/entities/index.d.ts +2 -0
  2. package/contracts/src/entities/index.js +6 -0
  3. package/contracts/src/entities/index.js.map +1 -0
  4. package/contracts/src/entities/report/index.d.ts +1 -0
  5. package/contracts/src/entities/report/index.js +5 -0
  6. package/contracts/src/entities/report/index.js.map +1 -0
  7. package/contracts/src/entities/report/report.entity.d.ts +2 -0
  8. package/contracts/src/entities/report/report.entity.js +83 -0
  9. package/contracts/src/entities/report/report.entity.js.map +1 -0
  10. package/contracts/src/entities/report-category/index.d.ts +1 -0
  11. package/contracts/src/entities/report-category/index.js +5 -0
  12. package/contracts/src/entities/report-category/index.js.map +1 -0
  13. package/contracts/src/entities/report-category/report-category.entity.d.ts +2 -0
  14. package/contracts/src/entities/report-category/report-category.entity.js +72 -0
  15. package/contracts/src/entities/report-category/report-category.entity.js.map +1 -0
  16. package/contracts/src/features.keys.d.ts +6 -0
  17. package/contracts/src/features.keys.js +10 -0
  18. package/contracts/src/features.keys.js.map +1 -0
  19. package/contracts/src/index.d.ts +6 -0
  20. package/contracts/src/index.js +12 -0
  21. package/contracts/src/index.js.map +1 -0
  22. package/contracts/src/menu.keys.d.ts +6 -0
  23. package/contracts/src/menu.keys.js +10 -0
  24. package/contracts/src/menu.keys.js.map +1 -0
  25. package/contracts/src/permission.keys.d.ts +19 -0
  26. package/contracts/src/permission.keys.js +23 -0
  27. package/contracts/src/permission.keys.js.map +1 -0
  28. package/contracts/src/report.types.d.ts +477 -0
  29. package/contracts/src/report.types.js +5 -0
  30. package/contracts/src/report.types.js.map +1 -0
  31. package/contracts/src/root-config.d.ts +34 -0
  32. package/contracts/src/root-config.js +39 -0
  33. package/contracts/src/root-config.js.map +1 -0
  34. package/package.json +27 -0
  35. package/server/src/index.d.ts +8 -0
  36. package/server/src/index.js +16 -0
  37. package/server/src/index.js.map +1 -0
  38. package/server/src/lib/report-browse.service.d.ts +13 -0
  39. package/server/src/lib/report-browse.service.js +128 -0
  40. package/server/src/lib/report-browse.service.js.map +1 -0
  41. package/server/src/lib/report-browse.types.d.ts +69 -0
  42. package/server/src/lib/report-browse.types.js +5 -0
  43. package/server/src/lib/report-browse.types.js.map +1 -0
  44. package/server/src/lib/report-management-server.module.d.ts +2 -0
  45. package/server/src/lib/report-management-server.module.js +30 -0
  46. package/server/src/lib/report-management-server.module.js.map +1 -0
  47. package/server/src/lib/report-management.controller.d.ts +11 -0
  48. package/server/src/lib/report-management.controller.js +74 -0
  49. package/server/src/lib/report-management.controller.js.map +1 -0
  50. package/server/src/lib/seed/index.d.ts +19 -0
  51. package/server/src/lib/seed/index.js +21 -0
  52. package/server/src/lib/seed/index.js.map +1 -0
  53. package/server/src/lib/seed/report-management-seed.provider.d.ts +4 -0
  54. package/server/src/lib/seed/report-management-seed.provider.js +18 -0
  55. package/server/src/lib/seed/report-management-seed.provider.js.map +1 -0
  56. package/server/src/lib/seed/report-management-seed.tokens.d.ts +1 -0
  57. package/server/src/lib/seed/report-management-seed.tokens.js +7 -0
  58. package/server/src/lib/seed/report-management-seed.tokens.js.map +1 -0
  59. package/server/src/lib/seed/report-management.seed-catalog.d.ts +2 -0
  60. package/server/src/lib/seed/report-management.seed-catalog.js +10 -0
  61. package/server/src/lib/seed/report-management.seed-catalog.js.map +1 -0
  62. package/server/src/lib/seed/samples/employee-report.mock.d.ts +9 -0
  63. package/server/src/lib/seed/samples/employee-report.mock.js +322 -0
  64. package/server/src/lib/seed/samples/employee-report.mock.js.map +1 -0
  65. package/server/src/lib/seed/samples/index.d.ts +2 -0
  66. package/server/src/lib/seed/samples/index.js +6 -0
  67. package/server/src/lib/seed/samples/index.js.map +1 -0
  68. package/server/src/lib/seed/samples/location-report.mock.d.ts +9 -0
  69. package/server/src/lib/seed/samples/location-report.mock.js +339 -0
  70. package/server/src/lib/seed/samples/location-report.mock.js.map +1 -0
@@ -0,0 +1,339 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOCATION_CATEGORY_REPORT_MAPPING = exports.LOCATION_REPORT_DEFINITIONS = exports.LOCATION_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 location reports
9
+ */
10
+ function generateCategories() {
11
+ const categories = [];
12
+ // Root categories with child count metadata
13
+ const rootCategories = [
14
+ {
15
+ title: 'Location Management',
16
+ description: 'Location 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: 'Location Management',
36
+ children: [
37
+ {
38
+ title: 'Location Analysis',
39
+ description: 'Location analysis and insights',
40
+ childrenCount: 0,
41
+ itemsCount: 1, // Locations by City
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.LOCATION_REPORT_CATEGORIES = generateCategories();
64
+ //#endregion
65
+ //#region ---- Mock Parameter Groups ----
66
+ const locationReportParameterGroups = [
67
+ {
68
+ name: 'locationDetails',
69
+ title: 'Location Details',
70
+ description: 'Location filtering options with cascade parameters (Country → Province → City)',
71
+ parameters: [
72
+ {
73
+ path: 'countryId',
74
+ title: 'Country',
75
+ description: 'Filter by country (cascade parent)',
76
+ widget: {
77
+ type: core_1.AXPWidgetsList.Editors.LookupBox,
78
+ options: {
79
+ entity: 'LocationManagement.GeographicRegion',
80
+ multiple: false,
81
+ textField: 'title',
82
+ valueField: 'id',
83
+ look: 'select',
84
+ hasClearButton: true,
85
+ columns: ['title', 'code'],
86
+ // Filter to show only countries (type.code = 'country')
87
+ filter: {
88
+ logic: 'and',
89
+ filters: [
90
+ {
91
+ field: 'type.code',
92
+ operator: { type: 'equal' },
93
+ value: 'country',
94
+ },
95
+ ],
96
+ },
97
+ },
98
+ },
99
+ },
100
+ {
101
+ path: 'provinceId',
102
+ title: 'Province',
103
+ description: 'Filter by province/state (cascade child - filtered by selected country)',
104
+ widget: {
105
+ type: core_1.AXPWidgetsList.Editors.LookupBox,
106
+ options: {
107
+ entity: 'LocationManagement.GeographicRegion',
108
+ multiple: false,
109
+ textField: 'title',
110
+ valueField: 'id',
111
+ look: 'select',
112
+ hasClearButton: true,
113
+ columns: ['title'],
114
+ expose: [
115
+ { source: 'id', target: 'province.id' },
116
+ { source: 'title', target: 'province.title' },
117
+ ],
118
+ // CASCADE FILTER: Only show provinces/states for selected country
119
+ filter: {
120
+ logic: 'and',
121
+ filters: [
122
+ {
123
+ field: 'parentId',
124
+ operator: { type: 'equal' },
125
+ value: '{{ context.eval("countryId.value") }}', // Use exposed country.id from expose configuration
126
+ },
127
+ {
128
+ field: 'type.code',
129
+ operator: { type: 'equal' },
130
+ value: 'state', // Filter by type to show only states/provinces
131
+ },
132
+ ],
133
+ },
134
+ },
135
+ // TRIGGER: Refresh province dropdown when country changes
136
+ triggers: [
137
+ {
138
+ event: "{{ events.context('countryId') }}",
139
+ action: '{{ widget.refresh() }}',
140
+ },
141
+ ],
142
+ },
143
+ },
144
+ {
145
+ path: 'cityId',
146
+ title: 'City',
147
+ description: 'Filter by city (cascade child - filtered by selected province)',
148
+ widget: {
149
+ type: core_1.AXPWidgetsList.Editors.LookupBox,
150
+ options: {
151
+ entity: 'LocationManagement.GeographicRegion',
152
+ multiple: false,
153
+ textField: 'title',
154
+ valueField: 'id',
155
+ look: 'select',
156
+ hasClearButton: true,
157
+ columns: ['title'],
158
+ expose: [
159
+ { source: 'id', target: 'city.id' },
160
+ { source: 'title', target: 'city.title' },
161
+ ],
162
+ // CASCADE FILTER: Only show cities for selected province
163
+ filter: {
164
+ logic: 'and',
165
+ filters: [
166
+ {
167
+ field: 'parentId',
168
+ operator: { type: 'equal' },
169
+ value: '{{ context.eval("provinceId.value") }}', // Use exposed province.id from expose configuration
170
+ },
171
+ {
172
+ field: 'type.code',
173
+ operator: { type: 'equal' },
174
+ value: 'city', // Filter by type to show only cities
175
+ },
176
+ ],
177
+ },
178
+ },
179
+ // TRIGGER: Refresh city dropdown when province changes
180
+ triggers: [
181
+ {
182
+ event: "{{ events.context('provinceId') }}",
183
+ action: '{{ widget.refresh() }}',
184
+ },
185
+ ],
186
+ },
187
+ },
188
+ ],
189
+ },
190
+ ];
191
+ //#endregion
192
+ //#region ---- Layout Definitions Generator ----
193
+ function generateLayoutsForReport(reportTitle) {
194
+ const layouts = [];
195
+ const titleLower = reportTitle.toLowerCase();
196
+ // Generate base export options
197
+ const baseExportOptions = {
198
+ fileNameTemplate: 'Report_{date}_{user}',
199
+ pdf: {
200
+ enabled: true,
201
+ pageSize: 'A4',
202
+ headerEnabled: true,
203
+ footerEnabled: true,
204
+ showPageNumbers: true,
205
+ watermarkText: 'Mock Report',
206
+ watermarkOpacity: 0.5,
207
+ compression: true,
208
+ embedImages: true,
209
+ },
210
+ };
211
+ // Table Layout (always available)
212
+ if (titleLower.includes('location') || titleLower.includes('city')) {
213
+ layouts.push({
214
+ id: seed_1.AXPDataGenerator.uuid(),
215
+ title: 'Table View',
216
+ description: 'Detailed tabular view of the data',
217
+ icon: 'fa-light fa-table',
218
+ isDefault: true,
219
+ layout: {
220
+ type: 'table',
221
+ columns: [
222
+ {
223
+ field: 'countryTitle',
224
+ title: 'Country',
225
+ visible: true,
226
+ width: 150,
227
+ align: 'left',
228
+ widget: { type: core_1.AXPWidgetsList.Editors.TextBox, path: 'countryTitle' },
229
+ },
230
+ {
231
+ field: 'provinceTitle',
232
+ title: 'Province',
233
+ visible: true,
234
+ width: 150,
235
+ align: 'left',
236
+ widget: { type: core_1.AXPWidgetsList.Editors.TextBox, path: 'provinceTitle' },
237
+ },
238
+ {
239
+ field: 'cityTitle',
240
+ title: 'City',
241
+ visible: true,
242
+ width: 150,
243
+ align: 'left',
244
+ widget: { type: core_1.AXPWidgetsList.Editors.TextBox, path: 'cityTitle' },
245
+ },
246
+ {
247
+ field: 'locationCount',
248
+ title: 'Location Count',
249
+ visible: true,
250
+ width: 120,
251
+ align: 'right',
252
+ widget: { type: core_1.AXPWidgetsList.Editors.NumberBox, path: 'locationCount' },
253
+ },
254
+ ],
255
+ actions: [],
256
+ options: {
257
+ pagination: true,
258
+ stickyHeader: true,
259
+ stripedRows: true,
260
+ },
261
+ },
262
+ dataSource: {
263
+ type: 'query',
264
+ name: 'getLocationList',
265
+ pagination: true,
266
+ },
267
+ export: Object.assign(Object.assign({}, baseExportOptions), { fileNameTemplate: 'Location_Report_{date}_{user}', excel: {
268
+ enabled: true,
269
+ sheetName: 'Location Report',
270
+ }, csv: {
271
+ enabled: true,
272
+ }, pdf: {
273
+ enabled: true,
274
+ } }),
275
+ });
276
+ }
277
+ return layouts;
278
+ }
279
+ //#endregion
280
+ //#region ---- Mock Report Definitions ----
281
+ /**
282
+ * Generate report definitions for categories
283
+ *
284
+ * Optimization: Only generates reports for categories with itemsCount > 0
285
+ */
286
+ function generateReportDefinitions() {
287
+ const reports = [];
288
+ // ✅ Get categories that have reports (itemsCount > 0)
289
+ const categoriesWithReports = exports.LOCATION_REPORT_CATEGORIES.filter((cat) => { var _a; return ((_a = cat.itemsCount) !== null && _a !== void 0 ? _a : 0) > 0; });
290
+ categoriesWithReports.forEach((category) => {
291
+ let reportsForCategory = [];
292
+ switch (category.title) {
293
+ case 'Location Analysis':
294
+ reportsForCategory = [
295
+ {
296
+ title: 'Locations by City',
297
+ description: 'Location analysis grouped by country, province, and city with cascade filtering',
298
+ parameterGroups: [...locationReportParameterGroups],
299
+ },
300
+ ];
301
+ break;
302
+ }
303
+ reportsForCategory.forEach((report) => {
304
+ const layouts = generateLayoutsForReport(report.title);
305
+ const defaultLayout = layouts.find((l) => l.isDefault) || layouts[0];
306
+ reports.push({
307
+ id: seed_1.AXPDataGenerator.uuid(),
308
+ title: report.title,
309
+ description: report.description,
310
+ categoryIds: [category.id],
311
+ parameterGroups: report.parameterGroups,
312
+ layouts: layouts,
313
+ defaultLayoutId: (defaultLayout === null || defaultLayout === void 0 ? void 0 : defaultLayout.id) || '',
314
+ });
315
+ });
316
+ });
317
+ return reports;
318
+ }
319
+ exports.LOCATION_REPORT_DEFINITIONS = generateReportDefinitions();
320
+ //#endregion
321
+ //#region ---- Category-Report Mapping ----
322
+ /**
323
+ * Create a mapping of categories to their reports for easy lookup
324
+ *
325
+ * Optimization: Only processes categories with itemsCount > 0
326
+ */
327
+ exports.LOCATION_CATEGORY_REPORT_MAPPING = new Map();
328
+ exports.LOCATION_REPORT_CATEGORIES.filter((cat) => { var _a; return ((_a = cat.itemsCount) !== null && _a !== void 0 ? _a : 0) > 0; }).forEach((category) => {
329
+ const categoryTitleLc = (0, seed_1.resolveMultiLanguageString)(category.title, 'en-US').toLowerCase();
330
+ const categoryReports = exports.LOCATION_REPORT_DEFINITIONS.filter((report) => {
331
+ var _a;
332
+ // Simple matching based on category title and report title
333
+ return ((0, seed_1.resolveMultiLanguageString)(report.title).toLowerCase().includes(categoryTitleLc) ||
334
+ ((_a = (0, seed_1.resolveMultiLanguageString)(report.description)) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(categoryTitleLc)));
335
+ });
336
+ exports.LOCATION_CATEGORY_REPORT_MAPPING.set(category.id, categoryReports);
337
+ });
338
+ //#endregion
339
+ //# sourceMappingURL=location-report.mock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-report.mock.js","sourceRoot":"","sources":["../../../../../../../../libs/modules/report-management/server/src/lib/seed/samples/location-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,qBAAqB;YAC5B,WAAW,EAAE,+BAA+B;YAC5C,aAAa,EAAE,CAAC,EAAE,uBAAuB;YACzC,UAAU,EAAE,CAAC,EAAE,oBAAoB;SACpC;KACF,CAAC;IAEF,cAAc,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,EAAE;QAC3E,MAAM,UAAU,GAAG,uBAAgB,CAAC,IAAI,EAAE,CAAC;QAC3C,UAAU,CAAC,IAAI,CAAC;YACd,EAAE,EAAE,UAAU;YACd,KAAK;YACL,WAAW;YACX,QAAQ,EAAE,SAAS;YACnB,aAAa;YACb,UAAU;SACX,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,6CAA6C;IAC7C,MAAM,eAAe,GAAG;QACtB;YACE,MAAM,EAAE,qBAAqB;YAC7B,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,mBAAmB;oBAC1B,WAAW,EAAE,gCAAgC;oBAC7C,aAAa,EAAE,CAAC;oBAChB,UAAU,EAAE,CAAC,EAAE,oBAAoB;iBACpC;aACF;SACF;KACF,CAAC;IAEF,eAAe,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/C,MAAM,SAAS,GAAG,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