@acorex/modules 21.0.0-next.63 → 21.0.0-next.65

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 (108) hide show
  1. package/fesm2022/{acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-u1hZ4P5s.mjs → acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs} +25 -3
  2. package/fesm2022/acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BC6vzGG9.mjs.map +1 -0
  3. package/fesm2022/acorex-modules-ai-management.mjs +43 -7
  4. package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
  5. package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-DlhSQ0cB.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-DqmJVJ0z.mjs} +22 -37
  6. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-DqmJVJ0z.mjs.map +1 -0
  7. package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-B6C2PRZw.mjs → acorex-modules-assessment-management-assessment-case.entity-DhVwPz0T.mjs} +8 -7
  8. package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-DhVwPz0T.mjs.map +1 -0
  9. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-DquzZNaQ.mjs → acorex-modules-assessment-management-assessment-session.entity-BvV2Qgw1.mjs} +2 -2
  10. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-DquzZNaQ.mjs.map → acorex-modules-assessment-management-assessment-session.entity-BvV2Qgw1.mjs.map} +1 -1
  11. package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-CRE8SxzC.mjs → acorex-modules-assessment-management-fill-assessment-session.command-4fkaeAG-.mjs} +2 -2
  12. package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-CRE8SxzC.mjs.map → acorex-modules-assessment-management-fill-assessment-session.command-4fkaeAG-.mjs.map} +1 -1
  13. package/fesm2022/{acorex-modules-assessment-management-preview-question.command-Ce7yOnJY.mjs → acorex-modules-assessment-management-preview-question.command-6IGOdVVZ.mjs} +2 -2
  14. package/fesm2022/{acorex-modules-assessment-management-preview-question.command-Ce7yOnJY.mjs.map → acorex-modules-assessment-management-preview-question.command-6IGOdVVZ.mjs.map} +1 -1
  15. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-S-8MDeB7.mjs → acorex-modules-assessment-management-preview-questionnaire.command-CRDBe_BS.mjs} +2 -2
  16. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-S-8MDeB7.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-CRDBe_BS.mjs.map} +1 -1
  17. package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-wdHMGBxi.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-B2ES-zcL.mjs} +2 -2
  18. package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-wdHMGBxi.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-B2ES-zcL.mjs.map} +1 -1
  19. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-1Pm9O0kv.mjs → acorex-modules-assessment-management-question-bank-item.entity-Cw2WCdYK.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-1Pm9O0kv.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-Cw2WCdYK.mjs.map} +1 -1
  21. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-Dwx0y7WY.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-D9I3S-ZT.mjs} +120 -7
  22. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-D9I3S-ZT.mjs.map +1 -0
  23. package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-BI_jc4C6.mjs → acorex-modules-assessment-management-questionnaire.entity-D9nHUmQB.mjs} +2 -2
  24. package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-BI_jc4C6.mjs.map → acorex-modules-assessment-management-questionnaire.entity-D9nHUmQB.mjs.map} +1 -1
  25. package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-BOeO3Dit.mjs +350 -0
  26. package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-BOeO3Dit.mjs.map +1 -0
  27. package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
  28. package/fesm2022/acorex-modules-common.mjs +0 -8
  29. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  30. package/fesm2022/{acorex-modules-content-management-acorex-modules-content-management-CO8lZb34.mjs → acorex-modules-content-management-acorex-modules-content-management-DMMKjUJP.mjs} +6 -6
  31. package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-DMMKjUJP.mjs.map +1 -0
  32. package/fesm2022/{acorex-modules-content-management-permission-definition.provider-Bcq5uOVH.mjs → acorex-modules-content-management-permission-definition.provider-B9RvUa2y.mjs} +2 -2
  33. package/fesm2022/{acorex-modules-content-management-permission-definition.provider-Bcq5uOVH.mjs.map → acorex-modules-content-management-permission-definition.provider-B9RvUa2y.mjs.map} +1 -1
  34. package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-D_q_xWeI.mjs → acorex-modules-content-management-template-content-editor-widget-edit.component-BAuczQJ_.mjs} +2 -2
  35. package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-D_q_xWeI.mjs.map → acorex-modules-content-management-template-content-editor-widget-edit.component-BAuczQJ_.mjs.map} +1 -1
  36. package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-DU5y6UxK.mjs → acorex-modules-content-management-template-content-editor-widget-view.component-BbAK7l89.mjs} +2 -2
  37. package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-DU5y6UxK.mjs.map → acorex-modules-content-management-template-content-editor-widget-view.component-BbAK7l89.mjs.map} +1 -1
  38. package/fesm2022/acorex-modules-content-management.mjs +1 -1
  39. package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-DkdNLMKa.mjs → acorex-modules-conversation-acorex-modules-conversation-CuaEuIdl.mjs} +122 -38
  40. package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-CuaEuIdl.mjs.map +1 -0
  41. package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-VKPbkRqI.mjs → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-E0e9YjO9.mjs} +2 -2
  42. package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-VKPbkRqI.mjs.map → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-E0e9YjO9.mjs.map} +1 -1
  43. package/fesm2022/{acorex-modules-conversation-comments-page.component-ehUCjoFD.mjs → acorex-modules-conversation-comments-page.component-zaGnoDs-.mjs} +2 -2
  44. package/fesm2022/{acorex-modules-conversation-comments-page.component-ehUCjoFD.mjs.map → acorex-modules-conversation-comments-page.component-zaGnoDs-.mjs.map} +1 -1
  45. package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-ZNcVi54N.mjs → acorex-modules-conversation-send-assist-chat-message.command-D2vjfYtY.mjs} +2 -2
  46. package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-ZNcVi54N.mjs.map → acorex-modules-conversation-send-assist-chat-message.command-D2vjfYtY.mjs.map} +1 -1
  47. package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-CX6lm1lG.mjs → acorex-modules-conversation-start-assist-chat.command-C2IEDIG9.mjs} +2 -2
  48. package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-CX6lm1lG.mjs.map → acorex-modules-conversation-start-assist-chat.command-C2IEDIG9.mjs.map} +1 -1
  49. package/fesm2022/acorex-modules-conversation.mjs +1 -1
  50. package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-BWezAea1.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-uRz1c5Km.mjs} +20 -20
  51. package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-BWezAea1.mjs.map → acorex-modules-human-capital-management-acorex-modules-human-capital-management-uRz1c5Km.mjs.map} +1 -1
  52. package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bh_Bbq5-.mjs → acorex-modules-human-capital-management-approve-leave-request.command-23klKnTy.mjs} +2 -2
  53. package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bh_Bbq5-.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-23klKnTy.mjs.map} +1 -1
  54. package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-BpDdDG9i.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-BJ8xUiR2.mjs} +2 -2
  55. package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-BpDdDG9i.mjs.map → acorex-modules-human-capital-management-assign-position-assignment.command-BJ8xUiR2.mjs.map} +1 -1
  56. package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-CjtKaKFw.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-B3u1gXWI.mjs} +2 -2
  57. package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-CjtKaKFw.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-B3u1gXWI.mjs.map} +1 -1
  58. package/fesm2022/{acorex-modules-human-capital-management-employee.entity-Cx_oY2aK.mjs → acorex-modules-human-capital-management-employee.entity-uhwOOw_y.mjs} +11 -3
  59. package/fesm2022/acorex-modules-human-capital-management-employee.entity-uhwOOw_y.mjs.map +1 -0
  60. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-B20Taa5x.mjs → acorex-modules-human-capital-management-employment-type.entity-BQe82rsr.mjs} +2 -2
  61. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-B20Taa5x.mjs.map → acorex-modules-human-capital-management-employment-type.entity-BQe82rsr.mjs.map} +1 -1
  62. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BO8QXpZE.mjs → acorex-modules-human-capital-management-leave-request.entity-CE4hs4C8.mjs} +2 -2
  63. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BO8QXpZE.mjs.map → acorex-modules-human-capital-management-leave-request.entity-CE4hs4C8.mjs.map} +1 -1
  64. package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-CQwSWqSh.mjs → acorex-modules-human-capital-management-leave-type.entity-DJ4EEUKg.mjs} +2 -2
  65. package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-CQwSWqSh.mjs.map → acorex-modules-human-capital-management-leave-type.entity-DJ4EEUKg.mjs.map} +1 -1
  66. package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event-type.entity-BPWJrvbN.mjs → acorex-modules-human-capital-management-lifecycle-event-type.entity-CB2hlyOP.mjs} +2 -2
  67. package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event-type.entity-BPWJrvbN.mjs.map → acorex-modules-human-capital-management-lifecycle-event-type.entity-CB2hlyOP.mjs.map} +1 -1
  68. package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event.entity-ZZuPu9KQ.mjs → acorex-modules-human-capital-management-lifecycle-event.entity-DWonFZpU.mjs} +2 -2
  69. package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event.entity-ZZuPu9KQ.mjs.map → acorex-modules-human-capital-management-lifecycle-event.entity-DWonFZpU.mjs.map} +1 -1
  70. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-BN1y0qhi.mjs → acorex-modules-human-capital-management-position-assignment.entity-o8PjggiT.mjs} +2 -2
  71. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-BN1y0qhi.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-o8PjggiT.mjs.map} +1 -1
  72. package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-LczqOHP-.mjs → acorex-modules-human-capital-management-reject-leave-request.command-B6sr7oey.mjs} +2 -2
  73. package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-LczqOHP-.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-B6sr7oey.mjs.map} +1 -1
  74. package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-Dm8YacDI.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-aH7qTRnr.mjs} +2 -2
  75. package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-Dm8YacDI.mjs.map → acorex-modules-human-capital-management-revoke-position-assignment.command-aH7qTRnr.mjs.map} +1 -1
  76. package/fesm2022/{acorex-modules-human-capital-management-start-lifecycle-event-flow.command-DPwuyFz2.mjs → acorex-modules-human-capital-management-start-lifecycle-event-flow.command-B-VsXS4c.mjs} +2 -2
  77. package/fesm2022/{acorex-modules-human-capital-management-start-lifecycle-event-flow.command-DPwuyFz2.mjs.map → acorex-modules-human-capital-management-start-lifecycle-event-flow.command-B-VsXS4c.mjs.map} +1 -1
  78. package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
  79. package/fesm2022/acorex-modules-report-management.mjs +1 -1
  80. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  81. package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management--mdNdYIs.mjs → acorex-modules-task-management-acorex-modules-task-management-DAh3IByo.mjs} +37 -19
  82. package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-DAh3IByo.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-task-management-task-board.page-BIZ1qH7m.mjs → acorex-modules-task-management-task-board.page-C2hB9JPM.mjs} +21 -12
  84. package/fesm2022/acorex-modules-task-management-task-board.page-C2hB9JPM.mjs.map +1 -0
  85. package/fesm2022/acorex-modules-task-management.mjs +1 -1
  86. package/fesm2022/acorex-modules-workflow-management-index-BhVZ1Bcw.mjs.map +1 -1
  87. package/package.json +2 -2
  88. package/types/acorex-modules-ai-management.d.ts +1 -2
  89. package/types/acorex-modules-assessment-management.d.ts +8 -0
  90. package/types/acorex-modules-conversation.d.ts +23 -3
  91. package/types/acorex-modules-task-management.d.ts +14 -1
  92. package/fesm2022/acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-u1hZ4P5s.mjs.map +0 -1
  93. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-DlhSQ0cB.mjs.map +0 -1
  94. package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-B6C2PRZw.mjs.map +0 -1
  95. package/fesm2022/acorex-modules-assessment-management-assessment-session-answers-view.util-BRdwcIvw.mjs +0 -47
  96. package/fesm2022/acorex-modules-assessment-management-assessment-session-answers-view.util-BRdwcIvw.mjs.map +0 -1
  97. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-Dwx0y7WY.mjs.map +0 -1
  98. package/fesm2022/acorex-modules-assessment-management-view-case-last-session-answers.command-Ds-QGMPy.mjs +0 -157
  99. package/fesm2022/acorex-modules-assessment-management-view-case-last-session-answers.command-Ds-QGMPy.mjs.map +0 -1
  100. package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-COTVoRRG.mjs +0 -172
  101. package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-COTVoRRG.mjs.map +0 -1
  102. package/fesm2022/acorex-modules-assessment-management-view-session-outcomes.command-2buH7ydV.mjs +0 -239
  103. package/fesm2022/acorex-modules-assessment-management-view-session-outcomes.command-2buH7ydV.mjs.map +0 -1
  104. package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-CO8lZb34.mjs.map +0 -1
  105. package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-DkdNLMKa.mjs.map +0 -1
  106. package/fesm2022/acorex-modules-human-capital-management-employee.entity-Cx_oY2aK.mjs.map +0 -1
  107. package/fesm2022/acorex-modules-task-management-acorex-modules-task-management--mdNdYIs.mjs.map +0 -1
  108. package/fesm2022/acorex-modules-task-management-task-board.page-BIZ1qH7m.mjs.map +0 -1
@@ -1,239 +0,0 @@
1
- import { AXTranslationService } from '@acorex/core/translation';
2
- import { AXPLayoutBuilderService } from '@acorex/platform/layout/builder';
3
- import { AXPEntityService } from '@acorex/platform/layout/entity';
4
- import * as i0 from '@angular/core';
5
- import { inject, Injectable } from '@angular/core';
6
- import { defaultTo, get, isEmpty, isString, toString, first } from 'lodash-es';
7
- import { m as mapToOutcomeResultsViewModel, A as AXMQuestionnaireViewerService, R as RootConfig } from './acorex-modules-assessment-management-acorex-modules-assessment-management-DlhSQ0cB.mjs';
8
-
9
- //#region ---- Imports ----
10
- //#endregion
11
- //#region ---- Viewer ----
12
- /**
13
- * Opens a dialog that shows stored session outcome snapshots (no re-evaluation).
14
- */
15
- async function openAssessmentSessionOutcomesView(deps, session, assessmentCase) {
16
- const questionnaireId = assessmentCase.questionnaireId;
17
- if (!questionnaireId) {
18
- throw new Error('Assessment case is missing questionnaireId');
19
- }
20
- const storedOutcomes = defaultTo(get(session, 'outcomes'), {});
21
- if (isEmpty(storedOutcomes)) {
22
- throw new Error('Assessment session has no stored outcome results');
23
- }
24
- const snapshot = await deps.questionnaireViewerService.buildOutcomeResultsFromStoredValues(storedOutcomes, {
25
- questionnaireId,
26
- });
27
- const locale = deps.translationService.getActiveLang?.() ?? 'en-US';
28
- const sectionTitle = await deps.translationService.translateAsync('@assessment-management:questionnaires.components.questionnaire-viewer.flow.outcomes-section-title');
29
- const emptyMessage = await deps.translationService.translateAsync('@assessment-management:questionnaires.components.questionnaire-viewer.flow.no-outcomes');
30
- const viewModel = {
31
- ...mapToOutcomeResultsViewModel(snapshot, { locale }),
32
- title: sectionTitle,
33
- emptyMessage,
34
- };
35
- const viewTitleKey = '@assessment-management:sessions.actions.view-outcomes.title';
36
- const viewTitleBase = (await deps.translationService.translateAsync(viewTitleKey)) || 'View outcome results';
37
- const responderName = defaultTo(get(session, 'responder.displayName'), get(session, 'responderId'));
38
- const viewTitle = !isEmpty(responderName) ? `${viewTitleBase}: ${responderName}` : viewTitleBase;
39
- const dialogRef = await deps.layoutBuilder
40
- .create()
41
- .dialog((dialog) => {
42
- dialog
43
- .setTitle(viewTitle)
44
- .setSize('lg')
45
- .content((content) => {
46
- content.customWidget('outcome-results-viewer', (widget) => {
47
- widget.path('outcomeResults');
48
- });
49
- })
50
- .setContext({
51
- outcomeResults: viewModel,
52
- })
53
- .setActions((actions) => {
54
- actions.cancel('@general:actions.close.title');
55
- });
56
- })
57
- .show();
58
- if (dialogRef.action() === 'cancel') {
59
- dialogRef.close();
60
- }
61
- }
62
- //#endregion
63
-
64
- //#region ---- Imports ----
65
- //#endregion
66
- //#region ---- View Session Outcomes Command ----
67
- /**
68
- * Command that opens a dialog showing stored outcome snapshots for an assessment session.
69
- */
70
- class ViewSessionOutcomesCommand {
71
- constructor() {
72
- //#region ---- Services & Dependencies ----
73
- this.entityService = inject(AXPEntityService);
74
- this.questionnaireViewerService = inject(AXMQuestionnaireViewerService);
75
- this.translationService = inject(AXTranslationService);
76
- this.layoutBuilder = inject(AXPLayoutBuilderService);
77
- }
78
- //#endregion
79
- //#region ---- Command Implementation ----
80
- /**
81
- * Returns a non-empty string or undefined.
82
- */
83
- asNonEmptyString(value) {
84
- if (isString(value) && !isEmpty(value)) {
85
- return value;
86
- }
87
- if (value != null && !isString(value)) {
88
- const normalized = toString(value).trim();
89
- return isEmpty(normalized) ? undefined : normalized;
90
- }
91
- return undefined;
92
- }
93
- /**
94
- * Resolves session id from root input, action options, or related-list row data.
95
- */
96
- resolveSessionId(input) {
97
- const candidates = [
98
- get(input, 'sessionId'),
99
- get(input, 'options.sessionId'),
100
- get(input, '__context__.options.sessionId'),
101
- get(input, '__context__.data.id'),
102
- ];
103
- for (const candidate of candidates) {
104
- const resolved = this.asNonEmptyString(candidate);
105
- if (resolved) {
106
- return resolved;
107
- }
108
- }
109
- return null;
110
- }
111
- /**
112
- * Loads session from related-list row data, list query, or byKey (in that order).
113
- */
114
- async loadSession(sessionId, input) {
115
- const row = get(input, '__context__.data');
116
- const rowCaseId = this.asNonEmptyString(get(row, 'caseId'));
117
- if (row && rowCaseId) {
118
- return {
119
- ...row,
120
- id: sessionId,
121
- outcomes: defaultTo(get(row, 'outcomes'), {}),
122
- };
123
- }
124
- const sessionAccessor = this.entityService
125
- .withEntity(RootConfig.module.name, RootConfig.entities.assessmentSession.name)
126
- .data();
127
- const listMatch = await sessionAccessor.query({
128
- skip: 0,
129
- take: 1,
130
- filter: {
131
- field: 'id',
132
- operator: { type: 'equal' },
133
- value: sessionId,
134
- },
135
- });
136
- const fromQuery = first(listMatch.items);
137
- if (fromQuery) {
138
- return fromQuery;
139
- }
140
- return defaultTo(await sessionAccessor.byKey(sessionId), null);
141
- }
142
- /**
143
- * Loads case by id using query first, then byKey.
144
- */
145
- async loadCase(caseId) {
146
- const caseAccessor = this.entityService
147
- .withEntity(RootConfig.module.name, RootConfig.entities.assessmentCase.name)
148
- .data();
149
- const listMatch = await caseAccessor.query({
150
- skip: 0,
151
- take: 1,
152
- filter: {
153
- field: 'id',
154
- operator: { type: 'equal' },
155
- value: caseId,
156
- },
157
- });
158
- const fromQuery = first(listMatch.items);
159
- if (fromQuery) {
160
- return fromQuery;
161
- }
162
- return defaultTo(await caseAccessor.byKey(caseId), null);
163
- }
164
- async execute(input) {
165
- try {
166
- const sessionId = this.resolveSessionId(input);
167
- if (!sessionId) {
168
- return {
169
- success: false,
170
- message: {
171
- text: 'Assessment session ID is required',
172
- },
173
- };
174
- }
175
- const session = await this.loadSession(sessionId, input);
176
- if (!session) {
177
- return {
178
- success: false,
179
- message: {
180
- text: `Assessment session with ID ${sessionId} not found`,
181
- },
182
- };
183
- }
184
- const storedOutcomes = get(session, 'outcomes');
185
- if (isEmpty(storedOutcomes)) {
186
- return {
187
- success: false,
188
- message: {
189
- text: await this.translationService.translateAsync('@assessment-management:sessions.actions.view-outcomes.empty'),
190
- },
191
- };
192
- }
193
- const caseId = this.asNonEmptyString(get(session, 'caseId'));
194
- if (!caseId) {
195
- return {
196
- success: false,
197
- message: {
198
- text: 'Assessment session is missing caseId',
199
- },
200
- };
201
- }
202
- const assessmentCase = await this.loadCase(caseId);
203
- if (!assessmentCase) {
204
- return {
205
- success: false,
206
- message: {
207
- text: `Assessment case with ID ${caseId} not found`,
208
- },
209
- };
210
- }
211
- await openAssessmentSessionOutcomesView({
212
- entityService: this.entityService,
213
- questionnaireViewerService: this.questionnaireViewerService,
214
- translationService: this.translationService,
215
- layoutBuilder: this.layoutBuilder,
216
- }, session, assessmentCase);
217
- return {
218
- success: true,
219
- };
220
- }
221
- catch (error) {
222
- const message = error instanceof Error ? error.message : 'Unknown error';
223
- return {
224
- success: false,
225
- message: {
226
- text: `Error viewing session outcomes: ${message}`,
227
- },
228
- };
229
- }
230
- }
231
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ViewSessionOutcomesCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
232
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ViewSessionOutcomesCommand }); }
233
- }
234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ViewSessionOutcomesCommand, decorators: [{
235
- type: Injectable
236
- }] });
237
-
238
- export { ViewSessionOutcomesCommand };
239
- //# sourceMappingURL=acorex-modules-assessment-management-view-session-outcomes.command-2buH7ydV.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-modules-assessment-management-view-session-outcomes.command-2buH7ydV.mjs","sources":["../../../../libs/modules/assessment-management/src/lib/features/questionnaire-viewer/utils/assessment-session-outcomes-view.util.ts","../../../../libs/modules/assessment-management/src/lib/features/questionnaire-viewer/commands/view-session-outcomes.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXPOutcomeResultsViewModel } from '@acorex/platform/layout/components';\nimport { AXPLayoutBuilderService, type IWidgetBuilder } from '@acorex/platform/layout/builder';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { defaultTo, get, isEmpty } from 'lodash-es';\nimport type { AXMAssessmentManagementAssessmentCaseEntityModel } from '../../../entities/assessment-case/assessment-case.types';\nimport type { AXMAssessmentManagementAssessmentSessionEntityModel } from '../../../entities/assessment-session/assessment-session.types';\nimport { RootConfig } from '../../../const';\nimport { AXMQuestionnaireViewerService } from '../questionnaire-viewer.service';\nimport { mapToOutcomeResultsViewModel } from './outcome-results-view.mapper';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface OpenAssessmentSessionOutcomesViewDeps {\n entityService: AXPEntityService;\n questionnaireViewerService: AXMQuestionnaireViewerService;\n translationService: AXTranslationService;\n layoutBuilder: AXPLayoutBuilderService;\n}\n\n//#endregion\n\n//#region ---- Viewer ----\n\n/**\n * Opens a dialog that shows stored session outcome snapshots (no re-evaluation).\n */\nexport async function openAssessmentSessionOutcomesView(\n deps: OpenAssessmentSessionOutcomesViewDeps,\n session: AXMAssessmentManagementAssessmentSessionEntityModel,\n assessmentCase: AXMAssessmentManagementAssessmentCaseEntityModel,\n): Promise<void> {\n const questionnaireId = assessmentCase.questionnaireId;\n if (!questionnaireId) {\n throw new Error('Assessment case is missing questionnaireId');\n }\n\n const storedOutcomes = defaultTo(get(session, 'outcomes') as Record<string, unknown> | undefined, {});\n if (isEmpty(storedOutcomes)) {\n throw new Error('Assessment session has no stored outcome results');\n }\n\n const snapshot = await deps.questionnaireViewerService.buildOutcomeResultsFromStoredValues(storedOutcomes, {\n questionnaireId,\n });\n\n const locale = deps.translationService.getActiveLang?.() ?? 'en-US';\n const sectionTitle = await deps.translationService.translateAsync(\n '@assessment-management:questionnaires.components.questionnaire-viewer.flow.outcomes-section-title',\n );\n const emptyMessage = await deps.translationService.translateAsync(\n '@assessment-management:questionnaires.components.questionnaire-viewer.flow.no-outcomes',\n );\n\n const viewModel: AXPOutcomeResultsViewModel = {\n ...mapToOutcomeResultsViewModel(snapshot, { locale }),\n title: sectionTitle,\n emptyMessage,\n };\n\n const viewTitleKey = '@assessment-management:sessions.actions.view-outcomes.title';\n const viewTitleBase = (await deps.translationService.translateAsync(viewTitleKey)) || 'View outcome results';\n const responderName = defaultTo(get(session, 'responder.displayName'), get(session, 'responderId'));\n const viewTitle = !isEmpty(responderName) ? `${viewTitleBase}: ${responderName}` : viewTitleBase;\n\n const dialogRef = await deps.layoutBuilder\n .create()\n .dialog((dialog) => {\n dialog\n .setTitle(viewTitle)\n .setSize('lg')\n .content((content) => {\n content.customWidget('outcome-results-viewer', (widget: IWidgetBuilder) => {\n widget.path('outcomeResults');\n });\n })\n .setContext({\n outcomeResults: viewModel,\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.close.title');\n });\n })\n .show();\n\n if (dialogRef.action() === 'cancel') {\n dialogRef.close();\n }\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPLayoutBuilderService } from '@acorex/platform/layout/builder';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { defaultTo, first, get, isEmpty, isString, toString } from 'lodash-es';\nimport type { AXMAssessmentManagementAssessmentCaseEntityModel } from '../../../entities/assessment-case/assessment-case.types';\nimport type { AXMAssessmentManagementAssessmentSessionEntityModel } from '../../../entities/assessment-session/assessment-session.types';\nimport { RootConfig } from '../../../const';\nimport { AXMQuestionnaireViewerService } from '../questionnaire-viewer.service';\nimport { openAssessmentSessionOutcomesView } from '../utils/assessment-session-outcomes-view.util';\n\n//#endregion\n\n//#region ---- Command Input/Output Types ----\n\n/**\n * Input for ViewSessionOutcomes command.\n */\nexport interface ViewSessionOutcomesCommandInput {\n /**\n * Assessment Session ID to view stored outcome results for.\n */\n sessionId: string;\n}\n\n/** Entity list passes evaluated action options on `__context__.options` / row `data`. */\ntype ViewSessionOutcomesCommandInvocation = ViewSessionOutcomesCommandInput & {\n options?: Partial<ViewSessionOutcomesCommandInput>;\n __context__?: {\n options?: Partial<ViewSessionOutcomesCommandInput>;\n data?: Record<string, unknown>;\n };\n};\n\n//#endregion\n\n//#region ---- View Session Outcomes Command ----\n\n/**\n * Command that opens a dialog showing stored outcome snapshots for an assessment session.\n */\n@Injectable()\nexport class ViewSessionOutcomesCommand implements AXPCommand<ViewSessionOutcomesCommandInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly questionnaireViewerService = inject(AXMQuestionnaireViewerService);\n private readonly translationService = inject(AXTranslationService);\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n /**\n * Returns a non-empty string or undefined.\n */\n private asNonEmptyString(value: unknown): string | undefined {\n if (isString(value) && !isEmpty(value)) {\n return value;\n }\n if (value != null && !isString(value)) {\n const normalized = toString(value).trim();\n return isEmpty(normalized) ? undefined : normalized;\n }\n return undefined;\n }\n\n /**\n * Resolves session id from root input, action options, or related-list row data.\n */\n private resolveSessionId(input: ViewSessionOutcomesCommandInvocation): string | null {\n const candidates = [\n get(input, 'sessionId'),\n get(input, 'options.sessionId'),\n get(input, '__context__.options.sessionId'),\n get(input, '__context__.data.id'),\n ];\n\n for (const candidate of candidates) {\n const resolved = this.asNonEmptyString(candidate);\n if (resolved) {\n return resolved;\n }\n }\n\n return null;\n }\n\n /**\n * Loads session from related-list row data, list query, or byKey (in that order).\n */\n private async loadSession(\n sessionId: string,\n input: ViewSessionOutcomesCommandInvocation,\n ): Promise<AXMAssessmentManagementAssessmentSessionEntityModel | null> {\n const row = get(input, '__context__.data') as Record<string, unknown> | undefined;\n const rowCaseId = this.asNonEmptyString(get(row, 'caseId'));\n\n if (row && rowCaseId) {\n return {\n ...(row as unknown as AXMAssessmentManagementAssessmentSessionEntityModel),\n id: sessionId,\n outcomes: defaultTo(get(row, 'outcomes') as Record<string, unknown> | undefined, {}),\n };\n }\n\n const sessionAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.assessmentSession.name)\n .data<string, AXMAssessmentManagementAssessmentSessionEntityModel>();\n\n const listMatch = await sessionAccessor.query({\n skip: 0,\n take: 1,\n filter: {\n field: 'id',\n operator: { type: 'equal' },\n value: sessionId,\n },\n });\n\n const fromQuery = first(listMatch.items);\n if (fromQuery) {\n return fromQuery;\n }\n\n return defaultTo(await sessionAccessor.byKey(sessionId), null);\n }\n\n /**\n * Loads case by id using query first, then byKey.\n */\n private async loadCase(caseId: string): Promise<AXMAssessmentManagementAssessmentCaseEntityModel | null> {\n const caseAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.assessmentCase.name)\n .data<string, AXMAssessmentManagementAssessmentCaseEntityModel>();\n\n const listMatch = await caseAccessor.query({\n skip: 0,\n take: 1,\n filter: {\n field: 'id',\n operator: { type: 'equal' },\n value: caseId,\n },\n });\n\n const fromQuery = first(listMatch.items);\n if (fromQuery) {\n return fromQuery;\n }\n\n return defaultTo(await caseAccessor.byKey(caseId), null);\n }\n\n async execute(input: ViewSessionOutcomesCommandInvocation): Promise<AXPExecuteCommandResult<void>> {\n try {\n const sessionId = this.resolveSessionId(input);\n if (!sessionId) {\n return {\n success: false,\n message: {\n text: 'Assessment session ID is required',\n },\n };\n }\n\n const session = await this.loadSession(sessionId, input);\n if (!session) {\n return {\n success: false,\n message: {\n text: `Assessment session with ID ${sessionId} not found`,\n },\n };\n }\n\n const storedOutcomes = get(session, 'outcomes') as Record<string, unknown> | undefined;\n if (isEmpty(storedOutcomes)) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync(\n '@assessment-management:sessions.actions.view-outcomes.empty',\n ),\n },\n };\n }\n\n const caseId = this.asNonEmptyString(get(session, 'caseId'));\n if (!caseId) {\n return {\n success: false,\n message: {\n text: 'Assessment session is missing caseId',\n },\n };\n }\n\n const assessmentCase = await this.loadCase(caseId);\n if (!assessmentCase) {\n return {\n success: false,\n message: {\n text: `Assessment case with ID ${caseId} not found`,\n },\n };\n }\n\n await openAssessmentSessionOutcomesView(\n {\n entityService: this.entityService,\n questionnaireViewerService: this.questionnaireViewerService,\n translationService: this.translationService,\n layoutBuilder: this.layoutBuilder,\n },\n session,\n assessmentCase,\n );\n\n return {\n success: true,\n };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Unknown error';\n return {\n success: false,\n message: {\n text: `Error viewing session outcomes: ${message}`,\n },\n };\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;AAAA;AAwBA;AAEA;AAEA;;AAEG;AACI,eAAe,iCAAiC,CACrD,IAA2C,EAC3C,OAA4D,EAC5D,cAAgE,EAAA;AAEhE,IAAA,MAAM,eAAe,GAAG,cAAc,CAAC,eAAe;IACtD,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC;IAC/D;AAEA,IAAA,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAwC,EAAE,EAAE,CAAC;AACrG,IAAA,IAAI,OAAO,CAAC,cAAc,CAAC,EAAE;AAC3B,QAAA,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC;IACrE;IAEA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,mCAAmC,CAAC,cAAc,EAAE;QACzG,eAAe;AAChB,KAAA,CAAC;IAEF,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,aAAa,IAAI,IAAI,OAAO;IACnE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAC/D,mGAAmG,CACpG;IACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAC/D,wFAAwF,CACzF;AAED,IAAA,MAAM,SAAS,GAA+B;AAC5C,QAAA,GAAG,4BAA4B,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC;AACrD,QAAA,KAAK,EAAE,YAAY;QACnB,YAAY;KACb;IAED,MAAM,YAAY,GAAG,6DAA6D;AAClF,IAAA,MAAM,aAAa,GA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}
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-modules-content-management-acorex-modules-content-management-CO8lZb34.mjs","sources":["../../../../libs/modules/content-management/src/lib/const.ts","../../../../libs/modules/content-management/src/lib/manifest.ts","../../../../libs/modules/content-management/src/lib/features/template-content-editor/channel-definition.provider.ts","../../../../libs/modules/content-management/src/lib/features/template-content-editor/channel-definition.types.ts","../../../../libs/modules/content-management/src/lib/features/template-content-editor/template-content-editor-widget.config.ts","../../../../libs/modules/content-management/src/lib/features/template-content-editor/text-template-placeholder.util.ts","../../../../libs/modules/content-management/src/lib/widget-definition.provider.ts","../../../../libs/modules/content-management/src/lib/entities/promotion/promotion.service.ts","../../../../libs/modules/content-management/src/lib/features/promotion/components/promotion-slot/promotion-slot.component.ts","../../../../libs/modules/content-management/src/lib/features/promotion/components/promotion-slot/promotion-slot.component.html","../../../../libs/modules/content-management/src/lib/entities/promotion/promotion.entity.ts","../../../../libs/modules/content-management/src/lib/entities/promotion/promotion.datasource.ts","../../../../libs/modules/content-management/src/lib/entities/text-template/text-template.entity.ts","../../../../libs/modules/content-management/src/lib/entities/text-template/text-template.service.ts","../../../../libs/modules/content-management/src/lib/entities/text-template/text-template.module.ts","../../../../libs/modules/content-management/src/lib/entities/text-template/text-template.types.ts","../../../../libs/modules/content-management/src/lib/entities/promotion/promotion.module.ts","../../../../libs/modules/content-management/src/lib/entities/index.ts","../../../../libs/modules/content-management/src/lib/content-management.module.ts","../../../../libs/modules/content-management/src/lib/text-template-render.command.key.ts","../../../../libs/modules/content-management/src/lib/entity.provider.ts","../../../../libs/modules/content-management/src/lib/menu.keys.ts","../../../../libs/modules/content-management/src/lib/menu.provider.ts","../../../../libs/modules/content-management/src/lib/search-command.provider.ts","../../../../libs/modules/content-management/src/lib/setting.provider.ts","../../../../libs/modules/content-management/src/acorex-modules-content-management.ts"],"sourcesContent":["const config = {\n i18n: 'content-management',\n};\nexport const RootConfig = {\n config,\n module: {\n module: 'ContentManagement',\n name: 'ContentManagement',\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n promotion: {\n name: 'Promotion',\n title: `@${config.i18n}:promotions.entities.promotion.title`,\n titlePlural: `@${config.i18n}:promotions.entities.promotion.plural`,\n icon: 'fa-light fa-megaphone',\n },\n glossary: {\n name: 'Glossary', \n title: `@${config.i18n}:glossaries.entities.glossary.title`,\n titlePlural: `@${config.i18n}:glossaries.entities.glossary.plural`,\n icon: 'fa-light fa-file',\n },\n textTemplate: {\n name: 'TextTemplate',\n title: `@${config.i18n}:templates.entities.text-template.title`,\n titlePlural: `@${config.i18n}:templates.entities.text-template.plural`,\n icon: 'fa-light fa-envelope',\n },\n },\n};\n","//#region ---- Imports ----\n\nimport { AXPModuleManifest } from '@acorex/platform/core';\nimport { RootConfig } from './const';\n\n//#endregion\n\n//#region ---- Manifest Definition ----\n\n/**\n * Content Management Module Manifest.\n * Defines module metadata, features, and provider references.\n */\nexport const ContentManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n\n // Module dependencies (optional)\n};\n\n//#endregion\n\n","import { InjectionToken } from '@angular/core';\nimport { AXMTextTemplateChannelDefinition } from './channel-definition.types';\n\n//#region ---- Token ----\n\n/** Multi-provider token – all providers are merged for available channels */\nexport const AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER = new InjectionToken<\n AXMTextTemplateChannelDefinitionProvider\n>('AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER');\n\n//#endregion\n\n//#region ---- Interface ----\n\nexport interface AXMTextTemplateChannelDefinitionProvider {\n getChannels(): AXMTextTemplateChannelDefinition[];\n}\n\n//#endregion\n\n//#region ---- Default Implementation ----\n\nexport class AXMDefaultTextTemplateChannelDefinitionProvider\n implements AXMTextTemplateChannelDefinitionProvider\n{\n getChannels(): AXMTextTemplateChannelDefinition[] {\n return [\n {\n name: 'email',\n title: '@content-management:templates.entities.text-template.fields.channel.options.email',\n type: 'rich',\n hasSubject: true,\n },\n {\n name: 'sms',\n title: '@content-management:templates.entities.text-template.fields.channel.options.sms',\n type: 'plain',\n },\n {\n name: 'whatsapp',\n title: '@content-management:templates.entities.text-template.fields.channel.options.whatsapp',\n type: 'plain',\n },\n {\n name: 'push',\n title: '@content-management:templates.entities.text-template.fields.channel.options.push',\n type: 'plain',\n },\n ];\n }\n}\n\n//#endregion\n","//#region ---- Types ----\n\nimport type { AXMTextTemplateChannelsValue } from '../../entities/text-template/text-template.types';\n\n/**\n * Definition of a template channel (Email, SMS, WhatsApp, etc.)\n * Provided by AXPTextTemplateChannelDefinitionProvider\n */\nexport interface AXMTextTemplateChannelDefinition {\n /** Unique channel identifier, e.g. 'email', 'sms', 'whatsapp' */\n name: string;\n /** i18n key for display title */\n title: string;\n /** 'plain' = LargeTextBox, 'rich' = RichText */\n type: 'plain' | 'rich';\n /** If true, show subject field (e.g. for Email) */\n hasSubject?: boolean;\n}\n\nexport type { AXMTextTemplateChannelsValue };\n\n//#endregion\n","import { AXP_WIDGETS_EDITOR_CATEGORY, AXPWidgetConfig } from '@acorex/platform/layout/widget-core';\nimport {\n AXP_DATA_PATH_PROPERTY,\n AXP_DISABLED_PROPERTY,\n} from '@acorex/platform/layout/widgets';\n\nexport const AXMTemplateContentEditorWidget: AXPWidgetConfig = {\n name: 'template-content-editor',\n title: 'Template Content',\n icon: 'fa-light fa-envelope',\n description: 'Multi-channel template editor with tabs (Email, SMS, WhatsApp, etc.)',\n categories: AXP_WIDGETS_EDITOR_CATEGORY,\n type: 'editor',\n defaultFilterWidgetName: 'string-filter',\n properties: [AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],\n components: {\n view: {\n component: () =>\n import('./template-content-editor-widget-view.component').then(\n (c) => c.AXMTemplateContentEditorWidgetViewComponent\n ),\n },\n edit: {\n component: () =>\n import('./template-content-editor-widget-edit.component').then(\n (c) => c.AXMTemplateContentEditorWidgetEditComponent\n ),\n },\n },\n};\n","import type { AXPMultiLanguageString } from '@acorex/platform/core';\nimport { resolveMultiLanguageString } from '@acorex/core/translation';\n\n//#region ---- Placeholder replacement ----\n\nconst TEXT_TEMPLATE_PLACEHOLDER_PATTERN = /\\{\\{([\\w-]+)\\}\\}/g;\n\n/**\n * Collects unique placeholder token names from text (`{{name}}`).\n */\nexport function collectTextTemplatePlaceholderNames(text: string): string[] {\n return [...new Set((text.match(TEXT_TEMPLATE_PLACEHOLDER_PATTERN) ?? []).map((m) => m.slice(2, -2)))];\n}\n\n/**\n * Replaces `{{token}}` when `merge[token]` is defined; otherwise leaves the token unchanged.\n * Same contract as mock `ContentManagement:TextTemplate:Render` merge step.\n */\nexport function replaceTextTemplatePlaceholders(text: string, merge: Record<string, string>): string {\n return text.replace(TEXT_TEMPLATE_PLACEHOLDER_PATTERN, (full, name: string) =>\n Object.prototype.hasOwnProperty.call(merge, name) ? merge[name]! : full,\n );\n}\n\n/**\n * Resolves a template channel field (plain string or per-locale map) for the active locale.\n */\nexport function resolveTextTemplateLocalizedString(\n value: AXPMultiLanguageString | string | undefined | null,\n locale: string,\n): string {\n if (value == null || value === '') {\n return '';\n }\n if (typeof value === 'string') {\n return value;\n }\n return resolveMultiLanguageString(value, locale);\n}\n\n//#endregion\n","//#region ---- Imports ----\n\nimport { AXPWidgetDefinitionProvider } from '@acorex/platform/layout/widget-core';\nimport { Injectable } from '@angular/core';\nimport { AXMTemplateContentEditorWidget } from './features/template-content-editor';\n\n//#endregion\n\n//#region ---- Content Management Widgets Provider ----\n\n@Injectable()\nexport class AXMContentManagementWidgetsProvider implements AXPWidgetDefinitionProvider {\n getWidgets() {\n return [AXMTemplateContentEditorWidget];\n }\n}\n\n//#endregion\n","import { AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';\nimport { Injectable } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMPromotionEntityModel } from './promotion.types';\n\nexport abstract class AXMAppPromotionService extends AXMEntityCrudServiceImpl<string, AXMPromotionEntityModel> {}\n\n@Injectable()\nexport class AXMPromotionServiceImpl extends AXMEntityCrudServiceImpl<string, AXMPromotionEntityModel> {\n constructor() {\n super(`${RootConfig.module.name}.${RootConfig.entities.promotion.name}`);\n }\n}\n","import { AXSafePipe } from '@acorex/core/pipes';\nimport { AXPFileStorageService } from '@acorex/platform/common';\n\nimport { Component, inject, OnInit, signal, WritableSignal } from '@angular/core';\nimport { AXMAppPromotionService } from '../../../../entities/promotion/promotion.service';\nimport { AXMPromotionEntityModel } from '../../../../entities/promotion/promotion.types';\n\n@Component({\n selector: 'acorex-platform-promotion-slot',\n imports: [AXSafePipe],\n templateUrl: './promotion-slot.component.html',\n})\nexport class AXMPromotionSlotComponent implements OnInit {\n location: string;\n\n notificationChannelService = inject(AXMAppPromotionService);\n\n listData: WritableSignal<AXMPromotionEntityModel[]> = signal([]);\n\n private fileStorage = inject(AXPFileStorageService);\n\n async ngOnInit(): Promise<void> {\n const channels = await this.notificationChannelService.query({\n skip: 0,\n take: 10000,\n // filter: {\n // field: 'type',\n // operator: { type: 'equal' },\n // value: 'promotion',\n // },\n });\n\n const filteredItems = channels.items.filter((x) => x.placement?.name == this.location);\n\n const mappedItems = await Promise.all(\n filteredItems.map(async (item) => {\n if (item.imageId != null) {\n const image = await this.fileStorage.getInfo(item.imageId);\n\n return {\n ...item,\n image: image,\n };\n } else {\n return item;\n }\n })\n );\n\n this.listData.set(mappedItems);\n }\n} ","@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} } ","//#region ---- Imports ----\n\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n AXPEntityType,\n AXPEntityV2,\n createAllQueryView,\n createQueryView,\n} from '@acorex/platform/common';\nimport { AXPSystemActionType } from '@acorex/platform/core';\nimport {\n entityMasterCrudActions,\n entityMasterDeleteAction,\n entityMasterViewAction,\n} from '@acorex/platform/layout/entity';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\n\n//#endregion\n\n//#region ---- Upload action ----\n\nconst promotionUploadImageAction = {\n name: 'promotion-upload-image',\n title: '@document-management:actions.upload-files',\n command: {\n name: 'show-file-uploader-popup',\n options: {\n id: '{{ context.eval(\"id\") }}',\n files:\n '{{ Array.isArray(context.eval(\"imageId\")) ? context.eval(\"imageId\") : (context.eval(\"imageId\") ? [context.eval(\"imageId\")] : []) }}',\n key: 'imageId',\n multiple: false,\n accept: '.jpg,.jpeg,.png,.gif,.webp',\n fileEditable: true,\n showEditDialogAfterSelect: true,\n enableTitleDescription: true,\n },\n },\n priority: 'secondary' as const,\n type: AXPSystemActionType.Upload,\n scope: AXPEntityCommandScope.Individual,\n};\n\n//#endregion\n\n//#region ---- Entity definition factory ----\n\n/**\n * Builds the Promotion entity definition (mock/runtime parity with former module JSON seed).\n */\nexport async function promotionEntityFactory(_injector: Injector): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntityV2 = {\n version: 2,\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'comments', options: { display: 'page' } },\n { name: 'distribution' },\n {\n name: 'status',\n options: {\n field: 'status',\n definition: 'common.status.task',\n defaultStatus: 'todo',\n showInCreate: false,\n },\n },\n { name: 'policy', options: { policy: 'test' } },\n { name: 'workflow' },\n { name: 'documents', options: { documentTypeNames: ['risk-assessment-report', 'file-meeting'] } },\n ],\n module: RootConfig.module.name,\n aggregate: 'promotions',\n name: RootConfig.entities.promotion.name,\n type: AXPEntityType.AggregateRoot,\n title: RootConfig.entities.promotion.title,\n icon: RootConfig.entities.promotion.icon,\n formats: {\n individual: RootConfig.entities.promotion.title,\n plural: RootConfig.entities.promotion.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'promotion', title: 'Promotion' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'promotion',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'createdAt',\n title: '@general:terms.datetime.created-at',\n groupId: 'promotion',\n schema: {\n dataType: 'dateTime',\n nullable: true,\n readonly: true,\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: { readonly: true },\n },\n },\n options: {\n sort: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n description: 'Promotion title',\n groupId: 'promotion',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { maxLength: 100 },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'body',\n title: `@${i18n}:promotions.entities.promotion.fields.body.title`,\n description: 'Promotion body content',\n groupId: 'promotion',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.RichText,\n },\n nullable: true,\n },\n },\n {\n name: 'contentType',\n title: `@${i18n}:promotions.entities.promotion.fields.content-type.title`,\n description: 'Type of content (Media or Text)',\n groupId: 'promotion',\n schema: {\n dataType: 'object',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'name',\n textField: 'title',\n dataSource: [\n { title: 'Media', name: 'media' },\n { title: 'Text', name: 'text' },\n ],\n direction: 'horizontal',\n multiple: false,\n },\n },\n },\n },\n {\n name: 'shape',\n title: `@${i18n}:promotions.entities.promotion.fields.shape.title`,\n description: 'Display shape for media promotions',\n groupId: 'promotion',\n schema: {\n dataType: 'object',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'name',\n textField: 'title',\n dataSource: [\n { title: 'Rectangle', name: 'rectangle' },\n { title: 'Circle', name: 'circle' },\n ],\n direction: 'horizontal',\n multiple: false,\n },\n },\n },\n },\n {\n name: 'placement',\n title: `@${i18n}:promotions.entities.promotion.fields.placement.title`,\n description: 'Where the promotion is displayed',\n groupId: 'promotion',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'object',\n nullable: true,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'name',\n textField: 'title',\n dataSource: [\n { title: 'Side Menu Footer', name: 'side-menu-footer', options: [] },\n { title: 'Side Menu Header', name: 'side-menu-header', options: [] },\n ],\n direction: 'horizontal',\n multiple: false,\n },\n },\n },\n },\n {\n name: 'imageId',\n title: 'Image',\n groupId: 'promotion',\n schema: {\n dataType: 'string',\n nullable: true,\n visible: false,\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'placement' }, { name: 'createdAt' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'promotion' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'body', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'contentType', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'shape', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'placement', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'promotion' }],\n properties: [\n { name: 'createdAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'body', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },\n { name: 'contentType', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'shape', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'placement', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'promotion' }],\n properties: [\n { name: 'createdAt', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'body', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'contentType', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'shape', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'placement', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n ],\n actions: [\n { ...entityMasterViewAction(), default: true },\n entityMasterDeleteAction(),\n promotionUploadImageAction,\n ],\n },\n list: {\n title: RootConfig.entities.promotion.titlePlural,\n actions: [...entityMasterCrudActions(), promotionUploadImageAction],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'title', dir: 'asc' },\n { name: 'createdAt', dir: 'desc' },\n ],\n }),\n createQueryView('media', `@${i18n}:promotions.terms.media`, true, {\n columns: [],\n conditions: [\n {\n name: 'contentType.name',\n operator: { type: 'equal' },\n value: 'media',\n },\n ],\n sorts: [],\n }),\n createQueryView('text', `@${i18n}:promotions.terms.text`, true, {\n columns: [],\n conditions: [\n {\n name: 'contentType.name',\n operator: { type: 'equal' },\n value: 'text',\n },\n ],\n sorts: [],\n }),\n ],\n },\n },\n },\n } as AXPEntityV2;\n\n return entityDef;\n}\n\n//#endregion\n","import { AXDataSource } from '@acorex/cdk/common';\nimport { AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPFilterDefinition } from '@acorex/platform/core';\nimport { AXPWidgetsCatalog } from '@acorex/platform/layout/widget-core';\nimport { inject } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMAppPromotionService } from './promotion.service';\n\nexport class AXMPromotionDataSourceDefinition implements AXPDataSourceDefinitionProvider {\n protected promotionService = inject(AXMAppPromotionService);\n protected i18n = RootConfig.config.i18n;\n\n items(): Promise<AXPDataSourceDefinition[]> {\n return Promise.resolve([\n {\n name: 'promotion',\n title: 'Promotion',\n source: () => {\n return new AXDataSource({\n load: async (_) => {\n try {\n const res = await this.promotionService.query();\n return {\n items: res.items,\n total: res.total,\n };\n } catch (e) {\n throw e;\n }\n },\n pageSize: 100,\n });\n },\n columns: [\n {\n name: 'id',\n title: 'ID',\n datatype: 'uuid',\n type: AXPWidgetsCatalog.text,\n },\n {\n name: 'title',\n //TODO translate\n title: `Title`,\n datatype: 'string',\n type: AXPWidgetsCatalog.text,\n },\n {\n name: 'body',\n title: `Body`,\n datatype: 'string',\n type: AXPWidgetsCatalog.number,\n },\n ],\n filters: [\n {\n field: 'title',\n title: 'Title',\n operator: {\n type: 'equal',\n },\n widget: {\n type: AXPWidgetsCatalog.text,\n },\n filterType: {\n advance: true,\n inline: true,\n },\n } as AXPFilterDefinition,\n ],\n textField: {\n name: 'title',\n title: 'Title',\n },\n valueField: {\n name: 'id',\n title: 'ID',\n },\n },\n ]);\n }\n} ","//#region ---- Imports ----\n\nimport { AXPEntity, createAllQueryView } from '@acorex/platform/common';\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport { entityMasterCrudActions, entityMasterRecordActions } from '@acorex/platform/layout/entity';\nimport { Injector } from '@angular/core';\nimport { RootConfig } from '../../const';\n\n//#endregion\n\nexport async function textTemplateEntityFactory(injector: Injector): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'category' },\n { name: 'archive' },\n { name: 'unique-fields', options: { fields: 'name', scope: 'global' } },\n ],\n module: RootConfig.module.name,\n name: RootConfig.entities.textTemplate.name,\n title: RootConfig.entities.textTemplate.title,\n icon: RootConfig.entities.textTemplate.icon,\n formats: {\n individual: RootConfig.entities.textTemplate.title,\n plural: RootConfig.entities.textTemplate.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n {\n id: 'template-content',\n title: `@${i18n}:templates.entities.text-template.groups.template-content`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@content-management:templates.entities.text-template.fields.name.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@content-management:templates.entities.text-template.fields.title.placeholder',\n multiLanguage: true,\n },\n },\n },\n validations: [\n { rule: 'required' },\n { rule: 'minLength', options: { value: 3 } },\n { rule: 'maxLength', options: { value: 100 } },\n ],\n },\n {\n name: 'channels',\n title: '@content-management:templates.entities.text-template.fields.channels.title',\n groupId: 'template-content',\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.TemplateContentEditor,\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [{ name: 'name' }, { name: 'title' }],\n interfaces: {\n master: {\n create: {\n sections: [\n { id: 'basic-info' },\n { id: 'template-content' },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'channels', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n update: {\n sections: [\n { id: 'basic-info' },\n { id: 'template-content' },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'channels', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info' },\n { id: 'template-content' },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'channels', layout: { label: { visible: false }, positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n title: RootConfig.entities.textTemplate.titlePlural,\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'name', dir: 'asc' },\n { name: 'title', dir: 'asc' },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n","import { AXMEntityCrudServiceImpl } from '@acorex/platform/layout/entity';\nimport { Injectable } from '@angular/core';\nimport { RootConfig } from '../../const';\nimport { AXMTextTemplateEntityModel } from './text-template.types';\n\nexport abstract class AXMTextTemplateService extends AXMEntityCrudServiceImpl<\n string,\n AXMTextTemplateEntityModel\n> {}\n\n@Injectable()\nexport class AXMTextTemplateServiceImpl extends AXMEntityCrudServiceImpl<\n string,\n AXMTextTemplateEntityModel\n> {\n constructor() {\n super(`${RootConfig.module.name}.${RootConfig.entities.textTemplate.name}`);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AXMTextTemplateService, AXMTextTemplateServiceImpl } from './text-template.service';\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: AXMTextTemplateService,\n useClass: AXMTextTemplateServiceImpl,\n },\n ],\n})\nexport class AXMTextTemplateEntityModule {}\n","import type { AXPCategoryListItem, AXPMultiLanguageString } from '@acorex/platform/core';\nimport { AXPEntityModel } from '@acorex/platform/layout/entity';\n\n//#region ---- Types ----\n\n/** Stored value: { email: { subject?, body }, sms: { body }, ... } */\nexport interface AXMTextTemplateChannelsValue {\n [channelName: string]: {\n subject?: AXPMultiLanguageString;\n body: AXPMultiLanguageString;\n };\n}\n\nexport interface AXMTextTemplateEntityModel extends AXPEntityModel<string> {\n name?: string;\n title?: AXPMultiLanguageString;\n channels?: AXMTextTemplateChannelsValue;\n categoryIds?: string[];\n categories?: AXPCategoryListItem[];\n}\n\n//#endregion\n","import { NgModule } from '@angular/core';\nimport { AXMAppPromotionService, AXMPromotionServiceImpl } from './promotion.service';\n\n@NgModule({\n imports: [],\n exports: [],\n declarations: [],\n providers: [\n {\n provide: AXMAppPromotionService,\n useClass: AXMPromotionServiceImpl,\n },\n ],\n})\nexport class AXMPromotionEntityModule { }\n","// Entity Services\nexport * from './promotion';\nexport * from './text-template';\n\n// Entity Modules\nexport * from './promotion/promotion.module';\nexport * from './text-template/text-template.module';","import { NgModule } from \"@angular/core\";\nimport { AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';\nimport { AXPComponentSlotModule } from '@acorex/platform/core';\nimport { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex/platform/core';\nimport { ContentManagementManifest } from './manifest';\nimport { AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';\nimport { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';\nimport { AXP_WIDGET_DEFINITION_PROVIDER, AXPWidgetCoreModule } from '@acorex/platform/layout/widget-core';\nimport { AXMContentManagementWidgetsProvider } from './widget-definition.provider';\n\n// Entity Modules\nimport { AXMPromotionEntityModule, AXMTextTemplateEntityModule } from './entities';\n\nimport {\n AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER,\n AXMDefaultTextTemplateChannelDefinitionProvider,\n} from './features/template-content-editor/channel-definition.provider';\n\n// Import promotion-related components\nimport { AXMPromotionSlotComponent } from './features/promotion/components/promotion-slot/promotion-slot.component';\nimport { ROUTES, Routes } from '@angular/router';\nimport { AXPWorkflowModule } from \"@acorex/platform/workflow\";\n\n@NgModule({\n imports: [\n AXPWidgetCoreModule,\n AXPComponentSlotModule.forChild({\n 'side-menu-footer': [\n {\n name: 'side-menu-footer-promotion',\n component: AXMPromotionSlotComponent,\n options: {\n location: 'side-menu-footer',\n },\n },\n ],\n 'side-menu-header': [\n {\n name: 'side-menu-header-promotion',\n component: AXMPromotionSlotComponent,\n priority: 2,\n options: {\n location: 'side-menu-header',\n },\n },\n ],\n }),\n // Entity Modules\n AXMPromotionEntityModule,\n AXMTextTemplateEntityModule,\n ],\n exports: [],\n declarations: [],\n providers: [\n // Module Manifest Provider\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: ContentManagementManifest,\n multi: true,\n },\n // Provider references (now using tokens)\n provideLazyProvider(\n AXP_PERMISSION_DEFINITION_PROVIDER,\n () => import('./permission-definition.provider').then(m => m.AXMPermissionDefinitionProvider)\n ),\n provideLazyProvider(\n AXP_MENU_PROVIDER,\n () => import('./menu.provider').then(m => m.AXMMenuProvider)\n ),\n provideLazyProvider(\n AXP_ENTITY_DEFINITION_LOADER,\n () => import('./entity.provider').then(m => m.AXMEntityProvider)\n ),\n provideLazyProvider(\n AXP_SETTING_DEFINITION_PROVIDER,\n () => import('./setting.provider').then(m => m.AXMSettingProvider)\n ),\n provideLazyProvider(\n AXP_SEARCH_PROVIDER,\n () => import('./search-command.provider').then(m => m.AXMSearchCommandProvider)\n ),\n {\n provide: AXP_TEXT_TEMPLATE_CHANNEL_DEFINITION_PROVIDER,\n useClass: AXMDefaultTextTemplateChannelDefinitionProvider,\n multi: true,\n },\n {\n provide: AXP_WIDGET_DEFINITION_PROVIDER,\n useClass: AXMContentManagementWidgetsProvider,\n multi: true,\n },\n ]\n})\nexport class AXMContentManagementModule {\n\n}\n","/** Registry key for {@link ContentManagementTextTemplateRenderCommand}. */\nexport const AXC_TEXT_TEMPLATE_RENDER_COMMAND_KEY = 'ContentManagement:TextTemplate:Render' as const;\n","import { AXPEntity } from '@acorex/platform/common';\nimport {\n AXPEntityDefinitionLoader,\n AXPEntityDefinitionPreloader,\n AXPEntityPreloadEntity,\n} from '@acorex/platform/layout/entity';\nimport { Injector, inject } from '@angular/core';\nimport { RootConfig } from './const';\n\nexport class AXMEntityProvider implements AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader {\n private injector = inject(Injector);\n\n public preload(): AXPEntityPreloadEntity[] {\n const module = RootConfig.module.name;\n return Array.from(Object.values(RootConfig.entities)).map((entity: { name: string }) => ({\n module: module,\n entity: entity.name,\n }));\n }\n\n async get(moduleName: string, entityName: string): Promise<AXPEntity | null> {\n if (moduleName == RootConfig.module.name) {\n switch (entityName) {\n case RootConfig.entities.promotion.name: {\n const entity = (await import('./entities/promotion/promotion.entity')).promotionEntityFactory;\n return entity(this.injector);\n }\n case RootConfig.entities.textTemplate.name: {\n const entity = (await import('./entities/text-template/text-template.entity')).textTemplateEntityFactory;\n return entity(this.injector);\n }\n }\n }\n return null;\n }\n\n async list(): Promise<{ name: string; module: string }[]> {\n const m = RootConfig.module.name;\n return Promise.resolve(Object.values(RootConfig.entities).map((e) => ({ name: e.name, module: m })));\n }\n}\n","export const AXPContentManagementMenuKeys = {\n Root: 'content-management:menu',\n HelpRoot: 'app:help',\n Promotions: 'content-management:menu:promotions',\n TextTemplates: 'content-management:menu:text-templates',\n Glossary: 'content-management:menu:glossary',\n HelpCenter: 'app:help:center',\n Tutorials: 'app:help:tutorials',\n About: 'app:about',\n} as const;\n\n","import { AXPCommonMenuKeys } from '@acorex/modules/common';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from './const';\nimport { AXPContentManagementMenuKeys } from './menu.keys';\n\n@Injectable()\nexport class AXMMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const scope = RootConfig.config.i18n;\n const module = RootConfig.module;\n\n //#region ---- Administration > Content (Promotions, Page Builder) ----\n\n const contentMenu = context.find(AXPCommonMenuKeys.Content);\n if (!contentMenu.exists) {\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXPCommonMenuKeys.Content,\n priority: 10,\n text: '@general:menus.content.title',\n icon: 'fa-light fa-paint-brush',\n type: 'menu',\n children: [],\n },\n ]);\n }\n\n // Text Template under Configuration > Data and Content\n context.find(AXPCommonMenuKeys.DataAndContent).addItems([\n {\n name: AXPContentManagementMenuKeys.TextTemplates,\n text: RootConfig.entities.textTemplate.title,\n path: this.entityService.createPath(module.name, RootConfig.entities.textTemplate.name),\n icon: RootConfig.entities.textTemplate.icon,\n priority: 2,\n policy: {\n features: [module.name],\n },\n },\n ]);\n\n //#endregion\n\n //#region ---- Help Menu Extensions ----\n\n context.addItems([\n {\n name: AXPContentManagementMenuKeys.HelpRoot,\n priority: 900000,\n text: `@${scope}:help-center.menus.help.title`,\n icon: 'fa-light fa-circle-question',\n },\n ]);\n\n const helpMenu = context.find(AXPContentManagementMenuKeys.HelpRoot);\n\n if (helpMenu.exists) {\n helpMenu.addItems([\n {\n name: AXPContentManagementMenuKeys.HelpCenter,\n text: `@${scope}:help-center.menus.help-center.title`,\n icon: 'fa-light fa-book-open',\n priority: 900001,\n },\n {\n name: AXPContentManagementMenuKeys.Tutorials,\n text: `@${scope}:help-center.menus.tutorials.title`,\n icon: 'fa-light fa-clapperboard-play',\n priority: 900002,\n },\n {\n name: AXPContentManagementMenuKeys.About,\n text: `@${scope}:help-center.menus.about.title`,\n icon: 'fa-light fa-circle-info',\n priority: 900011,\n },\n ]);\n }\n\n //#endregion\n }\n}\n","import { AXPSearchCommandProvider, AXPSearchResult, createEntityCommandOptions } from '@acorex/platform/common';\nimport { RootConfig } from './const';\n\nexport class AXMSearchCommandProvider extends AXPSearchCommandProvider {\n commands: AXPSearchResult[] = [\n {\n id: 'create-promotion',\n group: 'command',\n title: RootConfig.entities.promotion.title,\n icon: RootConfig.entities.promotion.icon,\n description: RootConfig.entities.promotion.titlePlural,\n command: {\n name: 'Entity:Create',\n options: createEntityCommandOptions(\n `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,\n {\n name: RootConfig.entities.promotion.name,\n module: RootConfig.module.name,\n title: RootConfig.entities.promotion.title,\n }\n ),\n },\n },\n {\n id: 'create-text-template',\n group: 'command',\n title: `@content-management:templates.search.create-text-template.title`,\n icon: RootConfig.entities.textTemplate.icon,\n description: `@content-management:templates.search.create-text-template.description`,\n command: {\n name: 'Entity:Create',\n options: createEntityCommandOptions(\n `${RootConfig.module.name}.${RootConfig.entities.textTemplate.name}`,\n {\n name: RootConfig.entities.textTemplate.name,\n module: RootConfig.module.name,\n title: RootConfig.entities.textTemplate.title,\n }\n ),\n },\n },\n ];\n}\n","import { AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext } from '@acorex/platform/common';\n\nexport class AXMSettingProvider implements AXPSettingDefinitionProvider {\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n // context\n // // Add Form Template Group\n // .addGroup('form-template', 'Form Template', 'Settings related to form templates.', RootConfig.module.icon)\n // // Start Interface Section\n // .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')\n // .addSetting({\n // key: 'history-panel',\n // title: 'Show History Panel',\n // scope: 'U',\n // isInherited: true,\n // defaultValue: false,\n // widget: {\n // type: AXPWidgetsCatalog.toggle,\n // },\n // description: 'Enable or disable the history panel for forms.',\n // validationRules: [\n // {\n // rule: 'required',\n // },\n // ],\n // })\n // .endSection()\n // .endGroup();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IA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