@acorex-platform/module-report-management-server 0.0.18 → 2.0.0-beta.1

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 (194) hide show
  1. package/contracts/src/commands.keys.d.ts +13 -0
  2. package/contracts/src/commands.keys.js +19 -0
  3. package/contracts/src/commands.keys.js.map +1 -0
  4. package/contracts/src/entities/index.d.ts +1 -0
  5. package/contracts/src/entities/index.js +1 -0
  6. package/contracts/src/entities/index.js.map +1 -1
  7. package/contracts/src/entities/report/index.d.ts +1 -1
  8. package/contracts/src/entities/report/index.js +1 -1
  9. package/contracts/src/entities/report/index.js.map +1 -1
  10. package/contracts/src/entities/report/report.entity.js +180 -12
  11. package/contracts/src/entities/report/report.entity.js.map +1 -1
  12. package/contracts/src/entities/report-category/index.d.ts +1 -1
  13. package/contracts/src/entities/report-category/index.js +0 -2
  14. package/contracts/src/entities/report-category/index.js.map +1 -1
  15. package/contracts/src/entities/report-category/report-category.entity.js +14 -1
  16. package/contracts/src/entities/report-category/report-category.entity.js.map +1 -1
  17. package/contracts/src/entities/report-generation-request/index.d.ts +1 -0
  18. package/contracts/src/entities/report-generation-request/index.js +5 -0
  19. package/contracts/src/entities/report-generation-request/index.js.map +1 -0
  20. package/contracts/src/entities/report-generation-request/report-generation-request.entity.d.ts +2 -0
  21. package/contracts/src/entities/report-generation-request/report-generation-request.entity.js +208 -0
  22. package/contracts/src/entities/report-generation-request/report-generation-request.entity.js.map +1 -0
  23. package/contracts/src/entity-catalog.d.ts +7 -0
  24. package/contracts/src/entity-catalog.js +22 -0
  25. package/contracts/src/entity-catalog.js.map +1 -0
  26. package/contracts/src/entity-entry.report-category.d.ts +1 -0
  27. package/contracts/src/entity-entry.report-category.js +6 -0
  28. package/contracts/src/entity-entry.report-category.js.map +1 -0
  29. package/contracts/src/entity-entry.report-generation-request.d.ts +1 -0
  30. package/contracts/src/entity-entry.report-generation-request.js +6 -0
  31. package/contracts/src/entity-entry.report-generation-request.js.map +1 -0
  32. package/contracts/src/entity-entry.report.d.ts +1 -0
  33. package/contracts/src/entity-entry.report.js +6 -0
  34. package/contracts/src/entity-entry.report.js.map +1 -0
  35. package/contracts/src/index.d.ts +18 -1
  36. package/contracts/src/index.js +18 -1
  37. package/contracts/src/index.js.map +1 -1
  38. package/contracts/src/manifest.d.ts +6 -0
  39. package/contracts/src/manifest.js +24 -0
  40. package/contracts/src/manifest.js.map +1 -0
  41. package/contracts/src/permission.keys.d.ts +30 -14
  42. package/contracts/src/permission.keys.js +28 -12
  43. package/contracts/src/permission.keys.js.map +1 -1
  44. package/contracts/src/query-cache-targets.d.ts +5 -0
  45. package/contracts/src/query-cache-targets.js +113 -0
  46. package/contracts/src/query-cache-targets.js.map +1 -0
  47. package/contracts/src/report-filter-form.util.d.ts +20 -0
  48. package/contracts/src/report-filter-form.util.js +121 -0
  49. package/contracts/src/report-filter-form.util.js.map +1 -0
  50. package/contracts/src/report-generation.types.d.ts +97 -0
  51. package/contracts/src/report-generation.types.js +14 -0
  52. package/contracts/src/report-generation.types.js.map +1 -0
  53. package/contracts/src/report-interchange.projection.d.ts +22 -0
  54. package/contracts/src/report-interchange.projection.js +171 -0
  55. package/contracts/src/report-interchange.projection.js.map +1 -0
  56. package/contracts/src/report-interchange.snapshot.d.ts +12 -0
  57. package/contracts/src/report-interchange.snapshot.js +34 -0
  58. package/contracts/src/report-interchange.snapshot.js.map +1 -0
  59. package/contracts/src/report-interchange.types.d.ts +38 -0
  60. package/contracts/src/report-interchange.types.js +4 -0
  61. package/contracts/src/report-interchange.types.js.map +1 -0
  62. package/contracts/src/report-layout-field-schema.d.ts +64 -0
  63. package/contracts/src/report-layout-field-schema.js +294 -0
  64. package/contracts/src/report-layout-field-schema.js.map +1 -0
  65. package/contracts/src/report-layout-form.util.d.ts +67 -0
  66. package/contracts/src/report-layout-form.util.js +578 -0
  67. package/contracts/src/report-layout-form.util.js.map +1 -0
  68. package/contracts/src/report-layout-json-sections.d.ts +15 -0
  69. package/contracts/src/report-layout-json-sections.js +38 -0
  70. package/contracts/src/report-layout-json-sections.js.map +1 -0
  71. package/contracts/src/report-layout-sections.mapper.d.ts +37 -0
  72. package/contracts/src/report-layout-sections.mapper.js +306 -0
  73. package/contracts/src/report-layout-sections.mapper.js.map +1 -0
  74. package/contracts/src/report-layout-starter.d.ts +15 -0
  75. package/contracts/src/report-layout-starter.js +93 -0
  76. package/contracts/src/report-layout-starter.js.map +1 -0
  77. package/contracts/src/report-layout.presets.d.ts +17 -0
  78. package/contracts/src/report-layout.presets.js +72 -0
  79. package/contracts/src/report-layout.presets.js.map +1 -0
  80. package/contracts/src/report-parameter-binding.util.d.ts +8 -0
  81. package/contracts/src/report-parameter-binding.util.js +29 -0
  82. package/contracts/src/report-parameter-binding.util.js.map +1 -0
  83. package/contracts/src/report.types.d.ts +125 -107
  84. package/contracts/src/report.types.js.map +1 -1
  85. package/contracts/src/root-config.d.ts +9 -2
  86. package/contracts/src/root-config.js +9 -2
  87. package/contracts/src/root-config.js.map +1 -1
  88. package/contracts/src/runtime.keys.d.ts +14 -0
  89. package/contracts/src/runtime.keys.js +20 -0
  90. package/contracts/src/runtime.keys.js.map +1 -0
  91. package/contracts/src/settings.keys.d.ts +11 -0
  92. package/contracts/src/settings.keys.js +17 -0
  93. package/contracts/src/settings.keys.js.map +1 -0
  94. package/package.json +9 -7
  95. package/server/src/index.d.ts +4 -4
  96. package/server/src/index.js +9 -8
  97. package/server/src/index.js.map +1 -1
  98. package/server/src/lib/entities/index.d.ts +1 -0
  99. package/server/src/lib/entities/index.js +5 -0
  100. package/server/src/lib/entities/index.js.map +1 -0
  101. package/server/src/lib/entities/report-management.entity-catalog.d.ts +1 -0
  102. package/server/src/lib/entities/report-management.entity-catalog.js +12 -0
  103. package/server/src/lib/entities/report-management.entity-catalog.js.map +1 -0
  104. package/server/src/lib/interchange/report-interchange-definition.service.d.ts +18 -0
  105. package/server/src/lib/interchange/report-interchange-definition.service.js +94 -0
  106. package/server/src/lib/interchange/report-interchange-definition.service.js.map +1 -0
  107. package/server/src/lib/interchange/report-interchange-export-data-source.d.ts +16 -0
  108. package/server/src/lib/interchange/report-interchange-export-data-source.js +72 -0
  109. package/server/src/lib/interchange/report-interchange-export-data-source.js.map +1 -0
  110. package/server/src/lib/interchange/report-interchange-export-query.util.d.ts +10 -0
  111. package/server/src/lib/interchange/report-interchange-export-query.util.js +22 -0
  112. package/server/src/lib/interchange/report-interchange-export-query.util.js.map +1 -0
  113. package/server/src/lib/interchange/report-interchange-export.command.d.ts +31 -0
  114. package/server/src/lib/interchange/report-interchange-export.command.js +268 -0
  115. package/server/src/lib/interchange/report-interchange-export.command.js.map +1 -0
  116. package/server/src/lib/report-browse.service.js +32 -13
  117. package/server/src/lib/report-browse.service.js.map +1 -1
  118. package/server/src/lib/report-browse.types.d.ts +27 -12
  119. package/server/src/lib/report-browse.types.js +0 -1
  120. package/server/src/lib/report-browse.types.js.map +1 -1
  121. package/server/src/lib/report-definition.seed-provider.d.ts +15 -0
  122. package/server/src/lib/report-definition.seed-provider.js +63 -0
  123. package/server/src/lib/report-definition.seed-provider.js.map +1 -0
  124. package/server/src/lib/report-generation/report-generation-create.command.d.ts +17 -0
  125. package/server/src/lib/report-generation/report-generation-create.command.js +177 -0
  126. package/server/src/lib/report-generation/report-generation-create.command.js.map +1 -0
  127. package/server/src/lib/report-generation/report-generation-enqueue.service.d.ts +21 -0
  128. package/server/src/lib/report-generation/report-generation-enqueue.service.js +58 -0
  129. package/server/src/lib/report-generation/report-generation-enqueue.service.js.map +1 -0
  130. package/server/src/lib/report-generation/report-generation-execute.command.d.ts +10 -0
  131. package/server/src/lib/report-generation/report-generation-execute.command.js +49 -0
  132. package/server/src/lib/report-generation/report-generation-execute.command.js.map +1 -0
  133. package/server/src/lib/report-generation/report-generation-execute.service.d.ts +23 -0
  134. package/server/src/lib/report-generation/report-generation-execute.service.js +226 -0
  135. package/server/src/lib/report-generation/report-generation-execute.service.js.map +1 -0
  136. package/server/src/lib/report-generation/report-generation-job-presentation.util.d.ts +8 -0
  137. package/server/src/lib/report-generation/report-generation-job-presentation.util.js +43 -0
  138. package/server/src/lib/report-generation/report-generation-job-presentation.util.js.map +1 -0
  139. package/server/src/lib/report-generation/report-generation-notify.service.d.ts +23 -0
  140. package/server/src/lib/report-generation/report-generation-notify.service.js +159 -0
  141. package/server/src/lib/report-generation/report-generation-notify.service.js.map +1 -0
  142. package/server/src/lib/report-generation/report-generation-policy.util.d.ts +39 -0
  143. package/server/src/lib/report-generation/report-generation-policy.util.js +95 -0
  144. package/server/src/lib/report-generation/report-generation-policy.util.js.map +1 -0
  145. package/server/src/lib/report-generation/report-generation-progress.util.d.ts +14 -0
  146. package/server/src/lib/report-generation/report-generation-progress.util.js +51 -0
  147. package/server/src/lib/report-generation/report-generation-progress.util.js.map +1 -0
  148. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.d.ts +10 -0
  149. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js +55 -0
  150. package/server/src/lib/report-generation/report-generation-release-inline-watch.command.js.map +1 -0
  151. package/server/src/lib/report-generation/report-generation-runtime.handlers.d.ts +27 -0
  152. package/server/src/lib/report-generation/report-generation-runtime.handlers.js +136 -0
  153. package/server/src/lib/report-generation/report-generation-runtime.handlers.js.map +1 -0
  154. package/server/src/lib/report-generation/report-generation-settings.service.d.ts +12 -0
  155. package/server/src/lib/report-generation/report-generation-settings.service.js +49 -0
  156. package/server/src/lib/report-generation/report-generation-settings.service.js.map +1 -0
  157. package/server/src/lib/report-generation/report-generation.constants.d.ts +16 -0
  158. package/server/src/lib/report-generation/report-generation.constants.js +24 -0
  159. package/server/src/lib/report-generation/report-generation.constants.js.map +1 -0
  160. package/server/src/lib/report-generation/report-generation.store.d.ts +25 -0
  161. package/server/src/lib/report-generation/report-generation.store.js +145 -0
  162. package/server/src/lib/report-generation/report-generation.store.js.map +1 -0
  163. package/server/src/lib/report-generation/report-generation.util.d.ts +8 -0
  164. package/server/src/lib/report-generation/report-generation.util.js +131 -0
  165. package/server/src/lib/report-generation/report-generation.util.js.map +1 -0
  166. package/server/src/lib/report-management-runtime.handlers.d.ts +32 -0
  167. package/server/src/lib/report-management-runtime.handlers.js +78 -0
  168. package/server/src/lib/report-management-runtime.handlers.js.map +1 -0
  169. package/server/src/lib/report-management-server.module.js +55 -9
  170. package/server/src/lib/report-management-server.module.js.map +1 -1
  171. package/server/src/lib/report-management.controller.d.ts +1 -4
  172. package/server/src/lib/report-management.controller.js +2 -16
  173. package/server/src/lib/report-management.controller.js.map +1 -1
  174. package/server/src/lib/seed/index.d.ts +0 -19
  175. package/server/src/lib/seed/index.js +0 -21
  176. package/server/src/lib/seed/index.js.map +0 -1
  177. package/server/src/lib/seed/report-management-seed.provider.d.ts +0 -4
  178. package/server/src/lib/seed/report-management-seed.provider.js +0 -18
  179. package/server/src/lib/seed/report-management-seed.provider.js.map +0 -1
  180. package/server/src/lib/seed/report-management-seed.tokens.d.ts +0 -1
  181. package/server/src/lib/seed/report-management-seed.tokens.js +0 -7
  182. package/server/src/lib/seed/report-management-seed.tokens.js.map +0 -1
  183. package/server/src/lib/seed/report-management.seed-catalog.d.ts +0 -2
  184. package/server/src/lib/seed/report-management.seed-catalog.js +0 -10
  185. package/server/src/lib/seed/report-management.seed-catalog.js.map +0 -1
  186. package/server/src/lib/seed/samples/employee-report.mock.d.ts +0 -9
  187. package/server/src/lib/seed/samples/employee-report.mock.js +0 -322
  188. package/server/src/lib/seed/samples/employee-report.mock.js.map +0 -1
  189. package/server/src/lib/seed/samples/index.d.ts +0 -2
  190. package/server/src/lib/seed/samples/index.js +0 -6
  191. package/server/src/lib/seed/samples/index.js.map +0 -1
  192. package/server/src/lib/seed/samples/location-report.mock.d.ts +0 -9
  193. package/server/src/lib/seed/samples/location-report.mock.js +0 -339
  194. package/server/src/lib/seed/samples/location-report.mock.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-filter-form.util.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management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AAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED,YAAY"}
@@ -0,0 +1,97 @@
1
+ import type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';
2
+ import type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';
3
+ import type { AXPReportArtifactKind, AXPReportLayoutDefinition } from './report.types';
4
+ export type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
5
+ export type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';
6
+ export interface AXPReportGenerationArtifact {
7
+ kind: AXPReportArtifactKind;
8
+ fileId?: string;
9
+ contentType?: string;
10
+ fileName?: string;
11
+ rowCount?: number;
12
+ byteLength?: number;
13
+ lastError?: string;
14
+ }
15
+ export declare const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = "ReportManagement:ReportGeneration";
16
+ export declare const REPORT_GENERATION_OPEN_FROZEN_COMMAND = "ReportManagement.Report:OpenViewer";
17
+ /** In-app inbox correlation id for a completed report generation run. */
18
+ export declare function buildReportGenerationNotificationCorrelationId(runId: string): string;
19
+ export interface AXMReportGenerationRequest extends AXPEntityModel<string> {
20
+ reportId: string;
21
+ layoutId?: string;
22
+ layoutIds?: string[];
23
+ parameters?: Record<string, unknown>;
24
+ formats: AXPReportArtifactKind[];
25
+ trigger: AXPReportGenerationTrigger;
26
+ status: AXPReportGenerationStatus;
27
+ requestedBy?: string;
28
+ jobId?: string;
29
+ scheduleId?: string;
30
+ scheduledOccurrence?: string;
31
+ startedAt?: string;
32
+ completedAt?: string;
33
+ durationMs?: number;
34
+ lastError?: string;
35
+ expiresAt?: string;
36
+ sourceRequestId?: string;
37
+ /** When true, skip in-app notification because the report viewer is watching this run inline. */
38
+ suppressNotificationOnComplete?: boolean;
39
+ artifacts: AXPReportGenerationArtifact[];
40
+ }
41
+ export interface AXPReportViewerFreeze {
42
+ version: 1;
43
+ reportId: string;
44
+ generatedAt: string;
45
+ parameters: Record<string, unknown>;
46
+ definition?: {
47
+ title: AXPMultiLanguageString;
48
+ defaultLayoutId: string;
49
+ layouts: AXPReportLayoutDefinition[];
50
+ };
51
+ dataSources: Array<{
52
+ layoutId: string;
53
+ queryName: string;
54
+ result: AXPRuntimeQueryResult;
55
+ }>;
56
+ }
57
+ export interface AXPReportGenerationCreateInput {
58
+ reportId: string;
59
+ layoutId?: string;
60
+ layoutIds?: string[];
61
+ parameters?: Record<string, unknown>;
62
+ formats?: AXPReportArtifactKind[];
63
+ trigger?: AXPReportGenerationTrigger;
64
+ sourceRequestId?: string;
65
+ scheduleId?: string;
66
+ scheduledOccurrence?: string;
67
+ /** Set when the report viewer will poll and show the result inline. */
68
+ suppressNotificationOnComplete?: boolean;
69
+ }
70
+ export interface AXPReportGenerationReleaseInlineWatchInput {
71
+ id: string;
72
+ }
73
+ export interface AXPReportGenerationCreateResult {
74
+ id: string;
75
+ jobId?: string;
76
+ status: AXPReportGenerationStatus;
77
+ /** True when an existing run was returned instead of creating a new row. */
78
+ deduplicated?: boolean;
79
+ }
80
+ export interface AXPReportGenerationExecuteInput {
81
+ reportRequestId: string;
82
+ }
83
+ export interface AXPReportGenerationExecuteResult {
84
+ reportRequestId: string;
85
+ fileIds: string[];
86
+ rowCount?: number;
87
+ }
88
+ export interface AXPReportGenerationGetInput {
89
+ id: string;
90
+ }
91
+ export interface AXPReportGenerationGetViewerFreezeInput {
92
+ id: string;
93
+ }
94
+ export interface AXPReportGenerationListMineInput {
95
+ skip?: number;
96
+ take?: number;
97
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ //#region ----- Imports -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.REPORT_GENERATION_OPEN_FROZEN_COMMAND = exports.REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = void 0;
5
+ exports.buildReportGenerationNotificationCorrelationId = buildReportGenerationNotificationCorrelationId;
6
+ exports.REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
7
+ exports.REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';
8
+ /** In-app inbox correlation id for a completed report generation run. */
9
+ function buildReportGenerationNotificationCorrelationId(runId) {
10
+ const normalized = runId.trim();
11
+ return normalized ? `report-generation:${normalized}` : 'report-generation:';
12
+ }
13
+ //#endregion
14
+ //# sourceMappingURL=report-generation.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-generation.types.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report-generation.types.ts"],"names":[],"mappings":";AAAA,6BAA6B;;;AAgC7B,wGAGC;AARY,QAAA,6CAA6C,GAAG,mCAAmC,CAAC;AAEpF,QAAA,qCAAqC,GAAG,oCAAoC,CAAC;AAE1F,yEAAyE;AACzE,SAAgB,8CAA8C,CAAC,KAAa;IAC1E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAChC,OAAO,UAAU,CAAC,CAAC,CAAC,qBAAqB,UAAU,EAAE,CAAC,CAAC,CAAC,oBAAoB,CAAC;AAC/E,CAAC;AA2FD,YAAY"}
@@ -0,0 +1,22 @@
1
+ import { type InterchangeCloneContext, type InterchangeExportDefinition, type InterchangeFormat } from '@acorex-platform/framework-shared/interchange';
2
+ import type { AXPReportColumn, AXPReportDefinition, AXPReportLayoutAction, AXPReportLayoutDefinition } from './report.types';
3
+ export declare function virtualReportExportKey(reportId: string): string;
4
+ /**
5
+ * Binding stored on the interchange request. Rows are not included:
6
+ * the export job reads the report query itself.
7
+ */
8
+ export declare function reportExportSourceBinding(input: {
9
+ reportId: string;
10
+ layoutId?: string;
11
+ parameters?: Record<string, unknown>;
12
+ }): Record<string, unknown>;
13
+ export declare function resolveReportExportTableLayout(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>, layoutId?: string): AXPReportLayoutDefinition | undefined;
14
+ export declare function findDefaultReportTableLayout(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>): AXPReportLayoutDefinition | undefined;
15
+ export declare function visibleDefaultTableColumns(report: Pick<AXPReportDefinition, 'layouts' | 'defaultLayoutId'>): AXPReportColumn[];
16
+ export declare function projectReportDefaultTableExportDefinition(report: AXPReportDefinition, format?: InterchangeFormat): InterchangeExportDefinition;
17
+ /**
18
+ * Interchange export actions for a table layout.
19
+ * PDF is queued like Excel and CSV; the selected document-output provider renders the file.
20
+ */
21
+ export declare function reportTableInterchangeExportActions(layoutDefinition: AXPReportLayoutDefinition): AXPReportLayoutAction[];
22
+ export declare function overlayReportExportTemplates(virtual: InterchangeExportDefinition, stored: InterchangeExportDefinition[], scope: InterchangeCloneContext): InterchangeExportDefinition[];
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.virtualReportExportKey = virtualReportExportKey;
4
+ exports.reportExportSourceBinding = reportExportSourceBinding;
5
+ exports.resolveReportExportTableLayout = resolveReportExportTableLayout;
6
+ exports.findDefaultReportTableLayout = findDefaultReportTableLayout;
7
+ exports.visibleDefaultTableColumns = visibleDefaultTableColumns;
8
+ exports.projectReportDefaultTableExportDefinition = projectReportDefaultTableExportDefinition;
9
+ exports.reportTableInterchangeExportActions = reportTableInterchangeExportActions;
10
+ exports.overlayReportExportTemplates = overlayReportExportTemplates;
11
+ const interchange_1 = require("@acorex-platform/framework-shared/interchange");
12
+ const core_1 = require("@acorex-platform/framework-shared/core");
13
+ function resolveReportColumnTitle(column, locale = 'en-US') {
14
+ const title = (0, core_1.resolveMultiLanguageString)(column.title, locale).trim();
15
+ return title || column.field;
16
+ }
17
+ //#region ----- Virtual report export projection -----
18
+ function virtualReportExportKey(reportId) {
19
+ return `${interchange_1.INTERCHANGE_VIRTUAL_REPORT_EXPORT_KEY_PREFIX}${reportId}:default-table`;
20
+ }
21
+ /**
22
+ * Binding stored on the interchange request. Rows are not included:
23
+ * the export job reads the report query itself.
24
+ */
25
+ function reportExportSourceBinding(input) {
26
+ var _a, _b;
27
+ const layoutId = (_a = input.layoutId) === null || _a === void 0 ? void 0 : _a.trim();
28
+ return Object.assign(Object.assign({ reportId: input.reportId }, (layoutId ? { layoutId } : {})), { parameters: (_b = input.parameters) !== null && _b !== void 0 ? _b : {} });
29
+ }
30
+ function resolveReportExportTableLayout(report, layoutId) {
31
+ var _a;
32
+ const requested = layoutId === null || layoutId === void 0 ? void 0 : layoutId.trim();
33
+ if (requested) {
34
+ const match = report.layouts.find((layout) => layout.id === requested);
35
+ if (((_a = match === null || match === void 0 ? void 0 : match.layout) === null || _a === void 0 ? void 0 : _a.type) === 'table') {
36
+ return match;
37
+ }
38
+ }
39
+ return findDefaultReportTableLayout(report);
40
+ }
41
+ function findDefaultReportTableLayout(report) {
42
+ var _a, _b, _c;
43
+ const defaultLayout = (_b = (_a = report.layouts.find((layout) => layout.id === report.defaultLayoutId)) !== null && _a !== void 0 ? _a : report.layouts.find((layout) => layout.isDefault)) !== null && _b !== void 0 ? _b : report.layouts[0];
44
+ if (((_c = defaultLayout === null || defaultLayout === void 0 ? void 0 : defaultLayout.layout) === null || _c === void 0 ? void 0 : _c.type) === 'table') {
45
+ return defaultLayout;
46
+ }
47
+ return report.layouts.find((layout) => { var _a; return ((_a = layout.layout) === null || _a === void 0 ? void 0 : _a.type) === 'table'; });
48
+ }
49
+ function visibleDefaultTableColumns(report) {
50
+ const layout = findDefaultReportTableLayout(report);
51
+ const table = layout === null || layout === void 0 ? void 0 : layout.layout;
52
+ if ((table === null || table === void 0 ? void 0 : table.type) !== 'table' || !Array.isArray(table.columns)) {
53
+ return [];
54
+ }
55
+ return table.columns.filter((column) => column.visible !== false);
56
+ }
57
+ function projectReportDefaultTableExportDefinition(report, format = 'excel') {
58
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
59
+ const columns = visibleDefaultTableColumns(report);
60
+ const fields = columns.map((column) => ({
61
+ path: column.field,
62
+ column: resolveReportColumnTitle(column),
63
+ }));
64
+ if (fields.length === 0) {
65
+ fields.push({ path: 'id', column: 'id' });
66
+ }
67
+ const key = virtualReportExportKey(report.id);
68
+ const tableLayout = findDefaultReportTableLayout(report);
69
+ const sheetName = ((_b = (_a = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _a === void 0 ? void 0 : _a.excel) === null || _b === void 0 ? void 0 : _b.sheetName) || 'Report';
70
+ return {
71
+ id: key,
72
+ key,
73
+ title: report.title,
74
+ format,
75
+ formatOptions: {
76
+ excel: {
77
+ sheetNames: { ReportResult: sheetName },
78
+ includeHeaders: true,
79
+ freezeHeader: (_d = (_c = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _c === void 0 ? void 0 : _c.excel) === null || _d === void 0 ? void 0 : _d.freezeHeader,
80
+ autoFitColumns: ((_f = (_e = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _e === void 0 ? void 0 : _e.excel) === null || _f === void 0 ? void 0 : _f.autoFitColumns) !== false,
81
+ },
82
+ csv: {
83
+ delimiter: (_h = (_g = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _g === void 0 ? void 0 : _g.csv) === null || _h === void 0 ? void 0 : _h.delimiter,
84
+ includeHeaders: ((_k = (_j = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _j === void 0 ? void 0 : _j.csv) === null || _k === void 0 ? void 0 : _k.includeHeaders) !== false,
85
+ quoteValues: ((_m = (_l = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _l === void 0 ? void 0 : _l.csv) === null || _m === void 0 ? void 0 : _m.quoteValues) !== false,
86
+ },
87
+ pdf: reportTablePdfFormatOptions(tableLayout),
88
+ },
89
+ source: {
90
+ type: interchange_1.INTERCHANGE_EXTERNAL_SOURCE_KIND,
91
+ adapter: interchange_1.INTERCHANGE_REPORT_ADAPTER_KIND,
92
+ binding: { reportId: report.id },
93
+ },
94
+ graph: {
95
+ entity: 'ReportResult',
96
+ fields,
97
+ },
98
+ stateInfo: { isSystem: true, isImmutable: true },
99
+ scopeInfo: {},
100
+ };
101
+ }
102
+ const REPORT_PDF_PAGE_SIZES = ['A4', 'Letter', 'Legal'];
103
+ /**
104
+ * Table PDF options for the interchange renderer.
105
+ * Page size stays inside the document-output set; A3 is omitted so the PDF defaults apply.
106
+ */
107
+ function reportTablePdfFormatOptions(tableLayout) {
108
+ var _a;
109
+ const pdf = (_a = tableLayout === null || tableLayout === void 0 ? void 0 : tableLayout.export) === null || _a === void 0 ? void 0 : _a.pdf;
110
+ const pageSize = REPORT_PDF_PAGE_SIZES.find((size) => size === (pdf === null || pdf === void 0 ? void 0 : pdf.pageSize));
111
+ const orientation = (pdf === null || pdf === void 0 ? void 0 : pdf.orientation) === 'portrait' || (pdf === null || pdf === void 0 ? void 0 : pdf.orientation) === 'landscape' ? pdf.orientation : undefined;
112
+ return Object.assign(Object.assign({ layout: 'table', includeHeaders: true, showTitle: true }, (pageSize ? { pageSize } : {})), (orientation ? { orientation } : {}));
113
+ }
114
+ /**
115
+ * Interchange export actions for a table layout.
116
+ * PDF is queued like Excel and CSV; the selected document-output provider renders the file.
117
+ */
118
+ function reportTableInterchangeExportActions(layoutDefinition) {
119
+ var _a, _b, _c, _d, _e, _f, _g;
120
+ if (((_a = layoutDefinition.layout) === null || _a === void 0 ? void 0 : _a.type) !== 'table') {
121
+ return [];
122
+ }
123
+ const actions = [];
124
+ if (((_c = (_b = layoutDefinition.export) === null || _b === void 0 ? void 0 : _b.excel) === null || _c === void 0 ? void 0 : _c.enabled) !== false) {
125
+ actions.push({
126
+ name: 'export-report-excel',
127
+ title: '@report-management:report-viewer.actions.export-excel.title',
128
+ icon: 'fa-light fa-file-excel',
129
+ command: { name: 'export-report', options: { format: 'excel' } },
130
+ priority: 'secondary',
131
+ });
132
+ }
133
+ if (((_e = (_d = layoutDefinition.export) === null || _d === void 0 ? void 0 : _d.csv) === null || _e === void 0 ? void 0 : _e.enabled) !== false) {
134
+ actions.push({
135
+ name: 'export-report-csv',
136
+ title: '@report-management:report-viewer.actions.export-csv.title',
137
+ icon: 'fa-light fa-file-csv',
138
+ command: { name: 'export-report', options: { format: 'csv' } },
139
+ priority: 'secondary',
140
+ });
141
+ }
142
+ if (((_g = (_f = layoutDefinition.export) === null || _f === void 0 ? void 0 : _f.pdf) === null || _g === void 0 ? void 0 : _g.enabled) !== false) {
143
+ actions.push({
144
+ name: 'export-report-pdf',
145
+ title: '@report-management:report-viewer.actions.export-pdf.title',
146
+ icon: 'fa-light fa-file-pdf',
147
+ command: { name: 'export-report', options: { format: 'pdf' } },
148
+ priority: 'secondary',
149
+ });
150
+ }
151
+ return actions;
152
+ }
153
+ function overlayReportExportTemplates(virtual, stored, scope) {
154
+ const defaultKey = virtual.key;
155
+ const bySlot = new Map();
156
+ bySlot.set(defaultKey, virtual);
157
+ for (const definition of stored) {
158
+ const slotKey = definition.key === defaultKey ? defaultKey : definition.key || definition.id || defaultKey;
159
+ const current = bySlot.get(slotKey);
160
+ if (!current ||
161
+ (0, interchange_1.interchangeDefinitionScopeRank)(definition.scopeInfo, scope) >=
162
+ (0, interchange_1.interchangeDefinitionScopeRank)(current.scopeInfo, scope)) {
163
+ bySlot.set(slotKey, definition);
164
+ }
165
+ }
166
+ const defaultDefinition = bySlot.get(defaultKey);
167
+ bySlot.delete(defaultKey);
168
+ return [defaultDefinition, ...bySlot.values()];
169
+ }
170
+ //#endregion
171
+ //# sourceMappingURL=report-interchange.projection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-interchange.projection.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report-interchange.projection.ts"],"names":[],"mappings":";;AA0BA,wDAEC;AAMD,8DAWC;AAED,wEAYC;AAED,oEAWC;AAED,gEASC;AAED,8FA8CC;AA4BD,kFAmCC;AAED,oEAsBC;AA1ND,+EASuD;AACvD,iEAAoF;AASpF,SAAS,wBAAwB,CAAC,MAAuB,EAAE,MAAM,GAAG,OAAO;IACzE,MAAM,KAA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,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;YAC9D,QAAQ,EAAE,WAAW;SACtB,CAAC,CAAC;IACL,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAgB,4BAA4B,CAC1C,OAAoC,EACpC,MAAqC,EACrC,KAA8B;IAE9B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuC,CAAC;IAC9D,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,MAAM,UAAU,IAAI,MAAM,EAAE,CAAC;QAChC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,UAAU,CAAC;QAC3G,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACpC,IACE,CAAC,OAAO;YACR,IAAA,4CAA8B,EAAC,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC;gBACzD,IAAA,4CAA8B,EAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,EAC1D,CAAC;YACD,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IACD,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAE,CAAC;IAClD,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC1B,OAAO,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;AACjD,CAAC;AAED,YAAY"}
@@ -0,0 +1,12 @@
1
+ export interface ReportExportSnapshot {
2
+ items: Record<string, unknown>[];
3
+ parameters: Record<string, unknown>;
4
+ frozen: boolean;
5
+ }
6
+ export declare function resolveCurrentReportExportSnapshot(input: {
7
+ snapshot: ReportExportSnapshot | null;
8
+ frozen: boolean;
9
+ freezeItems?: Record<string, unknown>[];
10
+ freezeParameters?: Record<string, unknown>;
11
+ liveParameters?: Record<string, unknown>;
12
+ }): ReportExportSnapshot | null;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ //#region ----- Report export snapshot -----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.resolveCurrentReportExportSnapshot = resolveCurrentReportExportSnapshot;
5
+ function parameterFingerprint(parameters) {
6
+ try {
7
+ return JSON.stringify(parameters !== null && parameters !== void 0 ? parameters : {});
8
+ }
9
+ catch (_a) {
10
+ return '';
11
+ }
12
+ }
13
+ function resolveCurrentReportExportSnapshot(input) {
14
+ var _a, _b, _c;
15
+ if (input.frozen) {
16
+ if ((_a = input.freezeItems) === null || _a === void 0 ? void 0 : _a.length) {
17
+ return {
18
+ items: input.freezeItems,
19
+ parameters: Object.assign({}, ((_b = input.freezeParameters) !== null && _b !== void 0 ? _b : {})),
20
+ frozen: true,
21
+ };
22
+ }
23
+ return ((_c = input.snapshot) === null || _c === void 0 ? void 0 : _c.frozen) ? input.snapshot : null;
24
+ }
25
+ if (!input.snapshot || input.snapshot.frozen) {
26
+ return null;
27
+ }
28
+ if (parameterFingerprint(input.snapshot.parameters) !== parameterFingerprint(input.liveParameters)) {
29
+ return null;
30
+ }
31
+ return input.snapshot;
32
+ }
33
+ //#endregion
34
+ //# sourceMappingURL=report-interchange.snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-interchange.snapshot.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report-interchange.snapshot.ts"],"names":[],"mappings":";AAAA,4CAA4C;;AAgB5C,gFAwBC;AAhCD,SAAS,oBAAoB,CAAC,UAA+C;IAC3E,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAgB,kCAAkC,CAAC,KAMlD;;IACC,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACjB,IAAI,MAAA,KAAK,CAAC,WAAW,0CAAE,MAAM,EAAE,CAAC;YAC9B,OAAO;gBACL,KAAK,EAAE,KAAK,CAAC,WAAW;gBACxB,UAAU,oBAAO,CAAC,MAAA,KAAK,CAAC,gBAAgB,mCAAI,EAAE,CAAC,CAAE;gBACjD,MAAM,EAAE,IAAI;aACb,CAAC;QACJ,CAAC;QACD,OAAO,CAAA,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM,EAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACxD,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,oBAAoB,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,oBAAoB,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;QACnG,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC,QAAQ,CAAC;AACxB,CAAC;AAED,YAAY"}
@@ -0,0 +1,38 @@
1
+ import type { InterchangeExportDefinition, InterchangeFormat } from '@acorex-platform/framework-shared/interchange';
2
+ export type { InterchangeExportDefinition };
3
+ export interface AXPReportInterchangeExportInput {
4
+ reportId: string;
5
+ format?: InterchangeFormat;
6
+ templateId?: string;
7
+ /** Table layout whose query the background job reads. */
8
+ layoutId?: string;
9
+ /** Report filter context. The job converts this; the client does not send rows. */
10
+ parameters?: Record<string, unknown>;
11
+ locale?: string;
12
+ }
13
+ export interface AXPReportInterchangeExportResult {
14
+ id: string;
15
+ jobId: string;
16
+ status: 'queued';
17
+ templateId: string;
18
+ virtual: boolean;
19
+ }
20
+ export interface AXPReportInterchangeListTemplatesInput {
21
+ reportId: string;
22
+ }
23
+ export interface AXPReportInterchangeListTemplatesResult {
24
+ items: InterchangeExportDefinition[];
25
+ }
26
+ export interface AXPReportInterchangeCloneTemplateInput {
27
+ reportId: string;
28
+ templateId?: string;
29
+ format?: InterchangeFormat;
30
+ title?: string;
31
+ }
32
+ export interface AXPReportInterchangeSaveTemplateInput {
33
+ reportId: string;
34
+ definition: InterchangeExportDefinition;
35
+ }
36
+ export interface AXPReportInterchangeTemplateMutationResult {
37
+ definition: InterchangeExportDefinition;
38
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //#endregion
4
+ //# sourceMappingURL=report-interchange.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-interchange.types.js","sourceRoot":"","sources":["../../../../../libs/modules/report-management/contracts/src/report-interchange.types.ts"],"names":[],"mappings":";;AAmDA,YAAY"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Editor the layout page uses for one stored JSON property.
3
+ * The kind comes from the property name and the value that is stored, never from a fixed form.
4
+ */
5
+ export type ReportLayoutFieldKind = 'toggle' | 'number' | 'text' | 'multiline' | 'locale-text' | 'color' | 'icon' | 'select' | 'tags'
6
+ /** Name of a registered query (`PlatformManagement.QueryDefinition`). */
7
+ | 'query'
8
+ /** One field of the rows the view's query returns. */
9
+ | 'column'
10
+ /** Several fields of the rows the view's query returns. */
11
+ | 'column-list'
12
+ /** One filter of the report (a `parameterGroups` path). */
13
+ | 'parameter'
14
+ /** Another report definition. */
15
+ | 'report'
16
+ /** A Stimulsoft template. */
17
+ | 'template'
18
+ /** Name of a registered command. */
19
+ | 'command' | 'group' | 'list' | 'json';
20
+ /** One editable property found in a stored layout section. */
21
+ export interface ReportLayoutFieldSchema {
22
+ /** Property name as stored. */
23
+ key: string;
24
+ /**
25
+ * Context path from the section container (`layout.options.chartType`).
26
+ * Inside the rows of a `list` the path starts again at the row.
27
+ */
28
+ path: string;
29
+ /** Property names from the section root, without row indexes. Used for enum lookup and locks. */
30
+ trail: string;
31
+ kind: ReportLayoutFieldKind;
32
+ /** Allowed values when `kind` is `select`. */
33
+ options?: readonly string[];
34
+ /** Shown but not editable. Changing it would move the view to another tab or break its shape. */
35
+ locked?: boolean;
36
+ /** Children of a `group`, or the merged row template of a `list`. */
37
+ fields?: ReportLayoutFieldSchema[];
38
+ }
39
+ /** Kinds that name a field of the query rows. The page offers the columns of the chosen query. */
40
+ export declare function isReportLayoutColumnKind(kind: ReportLayoutFieldKind): boolean;
41
+ /** Property names that have a translation under `layout-editor.fields`. Others fall back to their own name. */
42
+ export declare const REPORT_LAYOUT_FIELD_LABEL_KEYS: ReadonlySet<string>;
43
+ /** `defaultZoom` → `default-zoom`, the segment used in translation keys. */
44
+ export declare function reportLayoutFieldKebabKey(key: string): string;
45
+ /** `defaultZoom` → `Default Zoom`, shown when no translation exists for the property. */
46
+ export declare function reportLayoutFieldFallbackLabel(key: string): string;
47
+ /**
48
+ * Reads every non-empty property of the stored sections and chooses an editor for it.
49
+ * Null, empty strings that carry no type hint and empty containers are skipped:
50
+ * nothing can be inferred from them, and the stored data keeps them untouched.
51
+ */
52
+ export declare function inferReportLayoutFields(sections: Record<string, unknown> | null | undefined): ReportLayoutFieldSchema[];
53
+ /** Query the view reads its rows from, or an empty string while none is chosen. */
54
+ export declare function reportLayoutQueryName(sections: Record<string, unknown> | null | undefined): string;
55
+ /**
56
+ * Field names already stored on column properties.
57
+ * A picker must keep offering them even when the query catalog does not list them.
58
+ */
59
+ export declare function reportLayoutStoredColumns(sections: Record<string, unknown> | null | undefined, fields: readonly ReportLayoutFieldSchema[]): string[];
60
+ /**
61
+ * Filter names already stored on the filter mapping.
62
+ * A picker must keep offering them even after the filter was removed from the report.
63
+ */
64
+ export declare function reportLayoutStoredParameters(sections: Record<string, unknown> | null | undefined, fields: readonly ReportLayoutFieldSchema[]): string[];