@acorex/modules 21.0.0-next.70 → 21.0.0-next.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-modules-ai-management.mjs +7 -11
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-IHgQ8RVH.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-BnfSTevp.mjs} +654 -496
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-BnfSTevp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-B95yBXgi.mjs → acorex-modules-assessment-management-assessment-case.entity-BWMbcZFT.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-B95yBXgi.mjs.map → acorex-modules-assessment-management-assessment-case.entity-BWMbcZFT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session-answers-view.util-Jhy94fgV.mjs → acorex-modules-assessment-management-assessment-session-answers-view.util-B42XNJUV.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session-answers-view.util-Jhy94fgV.mjs.map → acorex-modules-assessment-management-assessment-session-answers-view.util-B42XNJUV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-DBhBxqh1.mjs → acorex-modules-assessment-management-assessment-session.entity-osEWRiw1.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-DBhBxqh1.mjs.map → acorex-modules-assessment-management-assessment-session.entity-osEWRiw1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-nkFpnKE2.mjs → acorex-modules-assessment-management-fill-assessment-session.command-DIUV6Az-.mjs} +3 -3
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-DIUV6Az-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-B29oj3WB.mjs → acorex-modules-assessment-management-preview-question.command-B0kZz-BV.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-B29oj3WB.mjs.map → acorex-modules-assessment-management-preview-question.command-B0kZz-BV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-Sd4gRHo5.mjs → acorex-modules-assessment-management-preview-questionnaire.command-BUUnlr7g.mjs} +18 -9
- package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-BUUnlr7g.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BCtQO_j7.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BvqEePUh.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BCtQO_j7.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BvqEePUh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-RLIfWCzq.mjs → acorex-modules-assessment-management-question-bank-item.entity-DZBQOgAg.mjs} +3 -2
- package/fesm2022/acorex-modules-assessment-management-question-bank-item.entity-DZBQOgAg.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-B8LMKqVO.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-BMv-XkZk.mjs} +19 -5
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-BMv-XkZk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-CZBnfCYE.mjs → acorex-modules-assessment-management-questionnaire.entity-BGkWU83k.mjs} +4 -2
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-BGkWU83k.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-review-assessment-session.command-hB_LFUSE.mjs → acorex-modules-assessment-management-review-assessment-session.command-Bqi7YO0X.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-review-assessment-session.command-hB_LFUSE.mjs.map → acorex-modules-assessment-management-review-assessment-session.command-Bqi7YO0X.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-BN-nYHha.mjs → acorex-modules-assessment-management-view-session-answers.command-2LB7JKZx.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-BN-nYHha.mjs.map → acorex-modules-assessment-management-view-session-answers.command-2LB7JKZx.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BUuEzfsI.mjs → acorex-modules-auth-acorex-modules-auth-BKMD5v6t.mjs} +17 -13
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BKMD5v6t.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-DnmLfX5x.mjs → acorex-modules-auth-app-chooser.component-DTlzE1Rd.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-DnmLfX5x.mjs.map → acorex-modules-auth-app-chooser.component-DTlzE1Rd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-D1-POhQk.mjs → acorex-modules-auth-login.module-DSQfhKUZ.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-D1-POhQk.mjs.map → acorex-modules-auth-login.module-DSQfhKUZ.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-master.layout-BDM5XtcM.mjs +25 -0
- package/fesm2022/acorex-modules-auth-master.layout-BDM5XtcM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-BhfFPeWT.mjs → acorex-modules-auth-oauth-callback.component-C4Q78fuo.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-BhfFPeWT.mjs.map → acorex-modules-auth-oauth-callback.component-C4Q78fuo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-BMVSHYy7.mjs → acorex-modules-auth-password.component-C_55t9er.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-BMVSHYy7.mjs.map → acorex-modules-auth-password.component-C_55t9er.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-Cm8DsDvu.mjs → acorex-modules-auth-password.component-VwEsbfR1.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-Cm8DsDvu.mjs.map → acorex-modules-auth-password.component-VwEsbfR1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-B85OzgW1.mjs → acorex-modules-auth-routes-prPiMAL6.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-B85OzgW1.mjs.map → acorex-modules-auth-routes-prPiMAL6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-D6_rL2WP.mjs → acorex-modules-auth-tenant-chooser.component-DVyI9cGU.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-D6_rL2WP.mjs.map → acorex-modules-auth-tenant-chooser.component-DVyI9cGU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-DfyDQIw-.mjs → acorex-modules-auth-two-factor.module-C7vZrBHK.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-DfyDQIw-.mjs.map → acorex-modules-auth-two-factor.module-C7vZrBHK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-gJSHI_eh.mjs → acorex-modules-auth-user-sessions.component-ChF8OYdd.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-gJSHI_eh.mjs.map → acorex-modules-auth-user-sessions.component-ChF8OYdd.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +462 -5
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-content-management-acorex-modules-content-management-txpooXrE.mjs → acorex-modules-content-management-acorex-modules-content-management-Bc_tCoHa.mjs} +6 -6
- package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-Bc_tCoHa.mjs.map +1 -0
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-D9woYm2m.mjs → acorex-modules-content-management-permission-definition.provider-2-_i1Kxd.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-D9woYm2m.mjs.map → acorex-modules-content-management-permission-definition.provider-2-_i1Kxd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-CQa1h31v.mjs → acorex-modules-content-management-template-content-editor-widget-edit.component-BdNwhaJ8.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-CQa1h31v.mjs.map → acorex-modules-content-management-template-content-editor-widget-edit.component-BdNwhaJ8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-DzM4oMNV.mjs → acorex-modules-content-management-template-content-editor-widget-view.component-Cwnqyt0U.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-DzM4oMNV.mjs.map → acorex-modules-content-management-template-content-editor-widget-view.component-Cwnqyt0U.mjs.map} +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +1 -1
- package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-DYW31fEm.mjs → acorex-modules-conversation-acorex-modules-conversation-B1ijk48q.mjs} +640 -219
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-B1ijk48q.mjs.map +1 -0
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-Mlan0ADR.mjs +329 -0
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-Mlan0ADR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-comments-page.component-CNqL-HdS.mjs → acorex-modules-conversation-comments-page.component--Q5RxEyI.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-comments-page.component-CNqL-HdS.mjs.map → acorex-modules-conversation-comments-page.component--Q5RxEyI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-CuYYEqhb.mjs → acorex-modules-conversation-send-assist-chat-message.command--_hCn9Et.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-CuYYEqhb.mjs.map → acorex-modules-conversation-send-assist-chat-message.command--_hCn9Et.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-BKwrZJDs.mjs → acorex-modules-conversation-start-assist-chat.command-BE1BPjj2.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-BKwrZJDs.mjs.map → acorex-modules-conversation-start-assist-chat.command-BE1BPjj2.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-kk0CINL1.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-DJMJFziT.mjs} +50 -18
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-DJMJFziT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-dashboard-management-index-Bhm8mAON.mjs → acorex-modules-dashboard-management-index-DoTVg9ro.mjs} +2 -2
- package/fesm2022/{acorex-modules-dashboard-management-index-Bhm8mAON.mjs.map → acorex-modules-dashboard-management-index-DoTVg9ro.mjs.map} +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-DrKulwY-.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-C1lNgBrC.mjs} +189 -49
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-C1lNgBrC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-TavX6h7z.mjs → acorex-modules-human-capital-management-approve-leave-request.command-CDBhDXr8.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-TavX6h7z.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-CDBhDXr8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-ZEmi88vf.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-pz0IOxa3.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-ZEmi88vf.mjs.map → acorex-modules-human-capital-management-assign-position-assignment.command-pz0IOxa3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-DzIMYIhe.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-Czwdu-nH.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-DzIMYIhe.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-Czwdu-nH.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-CrVU_3Jv.mjs → acorex-modules-human-capital-management-employee.entity-ZTRqQfRv.mjs} +21 -17
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-ZTRqQfRv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-BeiaEsNZ.mjs → acorex-modules-human-capital-management-employment-type.entity-BIIc7EpP.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-BeiaEsNZ.mjs.map → acorex-modules-human-capital-management-employment-type.entity-BIIc7EpP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-QeY6lcUY.mjs → acorex-modules-human-capital-management-leave-request.entity-Bmv7oLAr.mjs} +19 -24
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-Bmv7oLAr.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D7B3adkZ.mjs → acorex-modules-human-capital-management-leave-type.entity-OwdxjYKk.mjs} +10 -4
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-OwdxjYKk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event-type.entity-Dim-8hT7.mjs → acorex-modules-human-capital-management-lifecycle-event-type.entity-C_XVrmZt.mjs} +19 -74
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event-type.entity-C_XVrmZt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-event.entity-3HtYOKrY.mjs → acorex-modules-human-capital-management-lifecycle-event.entity-BwLAEtqA.mjs} +3 -3
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event.entity-BwLAEtqA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-Byxt921P.mjs → acorex-modules-human-capital-management-position-assignment.entity-DdMmiGbn.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-Byxt921P.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-DdMmiGbn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-CAvjZTG9.mjs → acorex-modules-human-capital-management-reject-leave-request.command-Bdwwkcs3.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-CAvjZTG9.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-Bdwwkcs3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BeWrsQo8.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-Cq-aA79w.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BeWrsQo8.mjs.map → acorex-modules-human-capital-management-revoke-position-assignment.command-Cq-aA79w.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management-start-leave-request-flow.command-Cx9TRMlY.mjs +230 -0
- package/fesm2022/acorex-modules-human-capital-management-start-leave-request-flow.command-Cx9TRMlY.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-start-lifecycle-event-flow.command-Bz2SZcmm.mjs → acorex-modules-human-capital-management-start-lifecycle-event-flow.command-DjepuAcu.mjs} +9 -14
- package/fesm2022/acorex-modules-human-capital-management-start-lifecycle-event-flow.command-DjepuAcu.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +2 -2
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-Dj9u0VEL.mjs → acorex-modules-settings-management-acorex-modules-settings-management-BfbVV7di.mjs} +5 -5
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-Dj9u0VEL.mjs.map → acorex-modules-settings-management-acorex-modules-settings-management-BfbVV7di.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-DpRn1jAo.mjs → acorex-modules-settings-management-permission-definition.provider-BBb5hqkc.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-DpRn1jAo.mjs.map → acorex-modules-settings-management-permission-definition.provider-BBb5hqkc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-C9wPgm_P.mjs → acorex-modules-settings-management-setting-page.component-Dn8CYgux.mjs} +4 -4
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-C9wPgm_P.mjs.map → acorex-modules-settings-management-setting-page.component-Dn8CYgux.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-BQ69Bx8C.mjs → acorex-modules-settings-management-setting-view.component-B5jpPo9k.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-BQ69Bx8C.mjs.map → acorex-modules-settings-management-setting-view.component-B5jpPo9k.mjs.map} +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +1 -1
- package/fesm2022/{acorex-modules-workflow-management-index-CxheG2ry.mjs → acorex-modules-workflow-management-index-CztICioV.mjs} +64 -4
- package/fesm2022/acorex-modules-workflow-management-index-CztICioV.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-column.component-Cpi0Pq3n.mjs +79 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-column.component-Cpi0Pq3n.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-edit.component-RbwX6Nd_.mjs +466 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-edit.component-RbwX6Nd_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-definition.entity-DISpkWE4.mjs → acorex-modules-workflow-management-workflow-definition.entity-BfACGpo4.mjs} +2 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-BfACGpo4.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +175 -29
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +2 -2
- package/types/acorex-modules-assessment-management.d.ts +214 -188
- package/types/acorex-modules-common.d.ts +13 -3
- package/types/acorex-modules-conversation.d.ts +22 -11
- package/types/acorex-modules-dashboard-management.d.ts +14 -2
- package/types/acorex-modules-document-management.d.ts +6 -0
- package/types/acorex-modules-human-capital-management.d.ts +28 -14
- package/types/acorex-modules-report-management.d.ts +3 -0
- package/types/acorex-modules-workflow-management.d.ts +18 -11
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-IHgQ8RVH.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-nkFpnKE2.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-Sd4gRHo5.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-question-bank-item.entity-RLIfWCzq.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-B8LMKqVO.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-CZBnfCYE.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BUuEzfsI.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-master.layout-DMP4RC6L.mjs +0 -25
- package/fesm2022/acorex-modules-auth-master.layout-DMP4RC6L.mjs.map +0 -1
- package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-txpooXrE.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-DYW31fEm.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DQlE8l4c.mjs +0 -329
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DQlE8l4c.mjs.map +0 -1
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-kk0CINL1.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-DrKulwY-.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-CrVU_3Jv.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-QeY6lcUY.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-D7B3adkZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event-type.entity-Dim-8hT7.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event.entity-3HtYOKrY.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-start-lifecycle-event-flow.command-Bz2SZcmm.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-CxheG2ry.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DISpkWE4.mjs.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { AXPEntityCommandScope, createQueryView, AXPRefreshEvent, AXVChangeType, AXPVersioningService, AXPSettingsService, AXPCommonSettings, createAllQueryView, AXPEntityQueryType, AXPLockService, AXPStatusDefinitionProviderService, AXPStatusProvider, AXPSystemStatuses, AXPSystemStatusType, AXPHomePageService, ALL_DEFAULT_OPERATORS, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_STATUS_PROVIDERS, AXPSearchService } from '@acorex/platform/common';
|
|
2
2
|
import * as i1$4 from '@acorex/platform/core';
|
|
3
|
-
import { AXPSystemActionType, AXPExpressionEvaluatorService, getSmart, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXPBroadcastEventService, AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXPComponentSlotModule, AXPPlatformScope } from '@acorex/platform/core';
|
|
3
|
+
import { AXPSystemActionType, PLATFORM_CATALOG_SCOPES_DATASOURCE_NAME, AXPCatalogScopeDefinitionProviderService, AXPCatalogScopeDefinitionsDataSourceDefinition, AXP_DATASOURCE_DEFINITION_PROVIDER, AXPExpressionEvaluatorService, getSmart, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXPBroadcastEventService, AXP_MODULE_MANIFEST_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXP_CATALOG_SCOPE_DEFINITION_PROVIDER, AXPComponentSlotModule, AXPPlatformScope } from '@acorex/platform/core';
|
|
4
4
|
import { provideCommandSetups, provideCommandMiddleware, AXPCommandExecutor } from '@acorex/platform/runtime';
|
|
5
5
|
import { AXPWidgetsModule } from '@acorex/platform/layout/widgets';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { inject, Injectable, NgModule, input, signal, computed, ChangeDetectionStrategy, Component, Injector, runInInjectionContext, ViewEncapsulation, InjectionToken, HostListener } from '@angular/core';
|
|
8
|
-
import { ensureListActions, actionExists, AXPEntityDefinitionRegistryService, AXP_ENTITY_ACTION_PLUGIN, resolveEntityPluginDetailPageOrder, cloneLayoutArrays, ensureLayoutSection, ensureLayoutPropertyView, AXMEntityCrudServiceImpl, entityMasterCrudActions, entityMasterDeleteAction, AXP_ENTITY_DEFINITION_LOADER,
|
|
8
|
+
import { ensureListActions, actionExists, AXPEntityDefinitionRegistryService, AXP_ENTITY_ACTION_PLUGIN, resolveEntityPluginDetailPageOrder, cloneLayoutArrays, ensureLayoutSection, ensureLayoutPropertyView, AXMEntityCrudServiceImpl, entityMasterCrudActions, entityMasterDeleteAction, AXP_ENTITY_DEFINITION_LOADER, AXPMiddlewareAbortError, AXP_ENTITY_STORAGE_MIDDLEWARE, AXP_ENTITY_STORAGE_BACKEND, AXPEntityEventsKeys, AXPEntityService, AXPMultiSourceType, AXP_MULTI_SOURCE_DEFINITION_PROVIDER } from '@acorex/platform/layout/entity';
|
|
9
9
|
import * as i1 from '@acorex/platform/workflow';
|
|
10
10
|
import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule, AXPWorkflowService } from '@acorex/platform/workflow';
|
|
11
11
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
12
12
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
13
13
|
import * as i4 from '@acorex/core/translation';
|
|
14
|
-
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
14
|
+
import { AXTranslationService, AXTranslationModule, createMultiLanguageString } from '@acorex/core/translation';
|
|
15
15
|
import { AXP_PAGE_COMPONENT_PROVIDER, AXPActivityLogComponent, AXPCompareViewComponent, AXPThemeLayoutBlockComponent, AXPResourceAppointmentComponent } from '@acorex/platform/layout/components';
|
|
16
16
|
import { AXPWidgetGroupEnum, AXP_WIDGET_DEFINITION_PROVIDER, AXPWidgetRegistryService, AXPWidgetsCatalog } from '@acorex/platform/layout/widget-core';
|
|
17
17
|
import { AXPopupService } from '@acorex/components/popup';
|
|
@@ -20,13 +20,13 @@ import * as i1$1 from '@acorex/components/decorators';
|
|
|
20
20
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
21
21
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
22
22
|
import { AXP_PERMISSION_DEFINITION_PROVIDER, AXPSessionService } from '@acorex/platform/auth';
|
|
23
|
+
import { castArray, get, isString, isArray, set, isEmpty } from 'lodash-es';
|
|
23
24
|
import * as i1$2 from '@angular/common';
|
|
24
25
|
import { CommonModule, AsyncPipe } from '@angular/common';
|
|
25
26
|
import * as i2 from '@acorex/components/button';
|
|
26
27
|
import { AXButtonModule } from '@acorex/components/button';
|
|
27
28
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
28
29
|
import { AXFormatService } from '@acorex/core/format';
|
|
29
|
-
import { get, set } from 'lodash-es';
|
|
30
30
|
import { AXToastService } from '@acorex/components/toast';
|
|
31
31
|
import { AXPLayoutBuilderService } from '@acorex/platform/layout/builder';
|
|
32
32
|
import * as i1$3 from '@acorex/core/validation';
|
|
@@ -114,6 +114,7 @@ const AXPWidgetsList = {
|
|
|
114
114
|
ProgressBox: 'progress-bar-editor',
|
|
115
115
|
RatePicker: 'rate-picker-editor',
|
|
116
116
|
ActivityCommandConfigurator: 'activity-command-configurator',
|
|
117
|
+
WorkflowConfigurator: 'workflow-configurator',
|
|
117
118
|
},
|
|
118
119
|
Layouts: {
|
|
119
120
|
AlertBox: 'alert-box-layout',
|
|
@@ -2252,6 +2253,411 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2252
2253
|
}]
|
|
2253
2254
|
}] });
|
|
2254
2255
|
|
|
2256
|
+
//#region ---- Imports ----
|
|
2257
|
+
//#endregion
|
|
2258
|
+
//#region ---- Plugin ----
|
|
2259
|
+
const catalogScopePlugin = {
|
|
2260
|
+
name: 'catalog-scope',
|
|
2261
|
+
order: 46,
|
|
2262
|
+
apply: (ctx, options) => {
|
|
2263
|
+
const moduleName = ctx.entity.module;
|
|
2264
|
+
const baseEntityName = ctx.entity.name;
|
|
2265
|
+
const entityTarget = options?.entityTarget?.trim() ||
|
|
2266
|
+
`${moduleName}.${baseEntityName}`;
|
|
2267
|
+
const propertyName = options?.propertyName?.trim()?.length
|
|
2268
|
+
? options.propertyName.trim()
|
|
2269
|
+
: 'catalogScopeKeys';
|
|
2270
|
+
const allowMultiple = options?.allowMultiple ?? true;
|
|
2271
|
+
const dataSource = options?.dataSource?.trim() || PLATFORM_CATALOG_SCOPES_DATASOURCE_NAME;
|
|
2272
|
+
const showInList = options?.showInList ?? false;
|
|
2273
|
+
const groupId = options?.groupId?.trim() || 'classification';
|
|
2274
|
+
const layoutOrder = options?.layoutOrder ?? 14;
|
|
2275
|
+
const groups = ctx.groups.list() ?? [];
|
|
2276
|
+
if (!groups.some((g) => g.id === groupId)) {
|
|
2277
|
+
ctx.groups.add({
|
|
2278
|
+
id: groupId,
|
|
2279
|
+
title: '@general:terms.interface.classification',
|
|
2280
|
+
});
|
|
2281
|
+
}
|
|
2282
|
+
const props = ctx.properties.list();
|
|
2283
|
+
if (!props.some((p) => p.name === propertyName)) {
|
|
2284
|
+
ctx.properties.add({
|
|
2285
|
+
name: propertyName,
|
|
2286
|
+
title: '@general:terms.classification.catalog-scopes',
|
|
2287
|
+
groupId,
|
|
2288
|
+
schema: {
|
|
2289
|
+
dataType: 'string',
|
|
2290
|
+
interface: {
|
|
2291
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
2292
|
+
options: {
|
|
2293
|
+
multiple: allowMultiple,
|
|
2294
|
+
valueField: 'name',
|
|
2295
|
+
textField: 'title',
|
|
2296
|
+
cssClassField: 'cssClass',
|
|
2297
|
+
hasClearButton: true,
|
|
2298
|
+
allowSearch: true,
|
|
2299
|
+
dataSource,
|
|
2300
|
+
filter: {
|
|
2301
|
+
field: 'targets',
|
|
2302
|
+
operator: { type: 'contains' },
|
|
2303
|
+
value: entityTarget,
|
|
2304
|
+
},
|
|
2305
|
+
...(options?.allowedScopeKeys?.length
|
|
2306
|
+
? { allowedScopeKeys: options.allowedScopeKeys }
|
|
2307
|
+
: {}),
|
|
2308
|
+
},
|
|
2309
|
+
},
|
|
2310
|
+
},
|
|
2311
|
+
validations: [{ rule: 'required' }],
|
|
2312
|
+
options: {
|
|
2313
|
+
sort: { enabled: false },
|
|
2314
|
+
filter: {
|
|
2315
|
+
advance: { enabled: true },
|
|
2316
|
+
inline: { enabled: false },
|
|
2317
|
+
},
|
|
2318
|
+
},
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
const columns = ctx.columns.list() ?? [];
|
|
2322
|
+
if (!columns.some((c) => c.name === propertyName)) {
|
|
2323
|
+
ctx.columns.add({
|
|
2324
|
+
name: propertyName,
|
|
2325
|
+
title: '@general:terms.classification.catalog-scopes',
|
|
2326
|
+
width: 220,
|
|
2327
|
+
sortable: false,
|
|
2328
|
+
filterable: true,
|
|
2329
|
+
visible: showInList,
|
|
2330
|
+
showAs: {
|
|
2331
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
2332
|
+
options: {
|
|
2333
|
+
valueField: 'name',
|
|
2334
|
+
textField: 'title',
|
|
2335
|
+
cssClassField: 'cssClass',
|
|
2336
|
+
multiple: allowMultiple,
|
|
2337
|
+
},
|
|
2338
|
+
},
|
|
2339
|
+
options: {
|
|
2340
|
+
dataPath: 'catalogScopes',
|
|
2341
|
+
},
|
|
2342
|
+
});
|
|
2343
|
+
}
|
|
2344
|
+
const applyLayoutPatch = (layout) => {
|
|
2345
|
+
const next = cloneLayoutArrays(layout);
|
|
2346
|
+
ensureLayoutSection(next, { id: groupId, order: 150 });
|
|
2347
|
+
ensureLayoutPropertyView(next, {
|
|
2348
|
+
name: propertyName,
|
|
2349
|
+
layout: { positions: { lg: { colSpan: 12, order: layoutOrder } } },
|
|
2350
|
+
});
|
|
2351
|
+
return next;
|
|
2352
|
+
};
|
|
2353
|
+
ctx.interfaces.master.create.update((create) => applyLayoutPatch(create ?? { sections: [], properties: [] }));
|
|
2354
|
+
ctx.interfaces.master.modify.update((modify) => applyLayoutPatch(modify ?? { sections: [], properties: [] }));
|
|
2355
|
+
ctx.interfaces.master.single.update((single) => applyLayoutPatch(single ?? { title: ctx.entity.title, sections: [], properties: [] }));
|
|
2356
|
+
ctx.entity.extensions ??= {};
|
|
2357
|
+
ctx.entity.extensions.catalogScope = {
|
|
2358
|
+
propertyName,
|
|
2359
|
+
entityTarget,
|
|
2360
|
+
allowMultiple,
|
|
2361
|
+
dataSource,
|
|
2362
|
+
allowedScopeKeys: options?.allowedScopeKeys,
|
|
2363
|
+
};
|
|
2364
|
+
},
|
|
2365
|
+
};
|
|
2366
|
+
//#endregion
|
|
2367
|
+
|
|
2368
|
+
//#region ---- Imports ----
|
|
2369
|
+
//#endregion
|
|
2370
|
+
//#region ---- Service ----
|
|
2371
|
+
/**
|
|
2372
|
+
* Resolves catalog scope keys to display rows using registered module providers (source of truth for {@link cssClass}).
|
|
2373
|
+
*/
|
|
2374
|
+
class AXPCatalogScopeEnrichmentService {
|
|
2375
|
+
constructor() {
|
|
2376
|
+
this.registry = inject(AXPCatalogScopeDefinitionProviderService);
|
|
2377
|
+
}
|
|
2378
|
+
async resolveItems(keys) {
|
|
2379
|
+
const items = [];
|
|
2380
|
+
for (const name of keys) {
|
|
2381
|
+
const definition = await this.registry.get(name);
|
|
2382
|
+
items.push({
|
|
2383
|
+
name,
|
|
2384
|
+
title: definition ? this.registry.resolveTitle(definition) : name,
|
|
2385
|
+
cssClass: definition?.cssClass?.trim() || undefined,
|
|
2386
|
+
});
|
|
2387
|
+
}
|
|
2388
|
+
return items;
|
|
2389
|
+
}
|
|
2390
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopeEnrichmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2391
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopeEnrichmentService, providedIn: 'root' }); }
|
|
2392
|
+
}
|
|
2393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopeEnrichmentService, decorators: [{
|
|
2394
|
+
type: Injectable,
|
|
2395
|
+
args: [{ providedIn: 'root' }]
|
|
2396
|
+
}] });
|
|
2397
|
+
|
|
2398
|
+
//#region ---- Imports ----
|
|
2399
|
+
//#endregion
|
|
2400
|
+
//#region ---- Helpers ----
|
|
2401
|
+
/**
|
|
2402
|
+
* Normalizes scope keys from stored property values and/or enriched `catalogScopes` rows.
|
|
2403
|
+
* Accepts string keys (persisted) and select-box row objects (`{ name, title, … }`).
|
|
2404
|
+
*/
|
|
2405
|
+
function normalizeCatalogScopeKeys(data, propertyName = 'catalogScopeKeys', enrichPath = 'catalogScopes') {
|
|
2406
|
+
const keys = new Set();
|
|
2407
|
+
for (const entry of castArray(get(data, propertyName))) {
|
|
2408
|
+
if (isString(entry) && entry.trim()) {
|
|
2409
|
+
keys.add(entry.trim());
|
|
2410
|
+
continue;
|
|
2411
|
+
}
|
|
2412
|
+
if (entry != null && typeof entry === 'object' && !Array.isArray(entry)) {
|
|
2413
|
+
const name = entry['name'];
|
|
2414
|
+
if (typeof name === 'string' && name.trim()) {
|
|
2415
|
+
keys.add(name.trim());
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
const scopes = get(data, enrichPath);
|
|
2420
|
+
if (isArray(scopes)) {
|
|
2421
|
+
for (const scope of scopes) {
|
|
2422
|
+
if (isString(scope) && scope.trim()) {
|
|
2423
|
+
keys.add(scope.trim());
|
|
2424
|
+
continue;
|
|
2425
|
+
}
|
|
2426
|
+
if (scope != null && typeof scope === 'object' && !Array.isArray(scope)) {
|
|
2427
|
+
const name = scope['name'];
|
|
2428
|
+
if (typeof name === 'string' && name.trim()) {
|
|
2429
|
+
keys.add(name.trim());
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
return [...keys];
|
|
2435
|
+
}
|
|
2436
|
+
/** Writes normalized string keys onto the update/create payload. */
|
|
2437
|
+
function applyNormalizedCatalogScopeKeys(data, propertyName = 'catalogScopeKeys', enrichPath = 'catalogScopes') {
|
|
2438
|
+
const keys = normalizeCatalogScopeKeys(data, propertyName, enrichPath);
|
|
2439
|
+
if (keys.length) {
|
|
2440
|
+
set(data, propertyName, keys);
|
|
2441
|
+
}
|
|
2442
|
+
return keys;
|
|
2443
|
+
}
|
|
2444
|
+
//#endregion
|
|
2445
|
+
|
|
2446
|
+
//#region ---- Imports ----
|
|
2447
|
+
const READ_OPS = new Set(['getOne', 'getAll', 'query', 'queryAll']);
|
|
2448
|
+
//#endregion
|
|
2449
|
+
//#region ---- Helpers ----
|
|
2450
|
+
function readResultRows(result) {
|
|
2451
|
+
if (!result || typeof result !== 'object') {
|
|
2452
|
+
return [];
|
|
2453
|
+
}
|
|
2454
|
+
if (Array.isArray(result)) {
|
|
2455
|
+
return result;
|
|
2456
|
+
}
|
|
2457
|
+
const items = result.items;
|
|
2458
|
+
return Array.isArray(items) ? items : [];
|
|
2459
|
+
}
|
|
2460
|
+
async function enrichRows(rows, propertyName, enrichPath, enrichment) {
|
|
2461
|
+
for (const row of rows) {
|
|
2462
|
+
if (!row) {
|
|
2463
|
+
continue;
|
|
2464
|
+
}
|
|
2465
|
+
const keys = normalizeCatalogScopeKeys(row, propertyName, enrichPath);
|
|
2466
|
+
if (isEmpty(keys)) {
|
|
2467
|
+
continue;
|
|
2468
|
+
}
|
|
2469
|
+
set(row, propertyName, keys);
|
|
2470
|
+
set(row, enrichPath, await enrichment.resolveItems(keys));
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
//#endregion
|
|
2474
|
+
//#region ---- Middleware ----
|
|
2475
|
+
/**
|
|
2476
|
+
* Resolves {@link catalogScopePlugin} keys to `catalogScopes: [{ name, title, cssClass }]` on write and read.
|
|
2477
|
+
* {@link cssClass} always comes from registered providers on read (not stale persisted mock values).
|
|
2478
|
+
*/
|
|
2479
|
+
const catalogScopeResolverMiddleware = {
|
|
2480
|
+
target: {
|
|
2481
|
+
ops: ['create', 'update', 'getOne', 'getAll', 'query', 'queryAll', 'initial'],
|
|
2482
|
+
order: 9,
|
|
2483
|
+
},
|
|
2484
|
+
execute: async (ctx, next) => {
|
|
2485
|
+
const entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
2486
|
+
const enrichment = inject(AXPCatalogScopeEnrichmentService);
|
|
2487
|
+
const [moduleName, entityName] = ctx.entityName.split('.');
|
|
2488
|
+
if (!moduleName || !entityName) {
|
|
2489
|
+
await next();
|
|
2490
|
+
return;
|
|
2491
|
+
}
|
|
2492
|
+
if ((ctx.op === 'create' || ctx.op === 'update' || ctx.op === 'initial') &&
|
|
2493
|
+
(ctx.data === undefined || ctx.data === null)) {
|
|
2494
|
+
await next();
|
|
2495
|
+
return;
|
|
2496
|
+
}
|
|
2497
|
+
const def = await entityRegistry.resolve(moduleName, entityName).catch(() => null);
|
|
2498
|
+
const catalogExt = def
|
|
2499
|
+
?.extensions?.catalogScope;
|
|
2500
|
+
if (!catalogExt?.propertyName) {
|
|
2501
|
+
await next();
|
|
2502
|
+
return;
|
|
2503
|
+
}
|
|
2504
|
+
const propertyName = catalogExt.propertyName;
|
|
2505
|
+
const enrichPath = 'catalogScopes';
|
|
2506
|
+
try {
|
|
2507
|
+
if (ctx.op === 'initial' && Array.isArray(ctx.data)) {
|
|
2508
|
+
await enrichRows(ctx.data, propertyName, enrichPath, enrichment);
|
|
2509
|
+
}
|
|
2510
|
+
else if (ctx.op === 'create' || ctx.op === 'update') {
|
|
2511
|
+
const data = ctx.data;
|
|
2512
|
+
const hasPayload = propertyName in data || enrichPath in data;
|
|
2513
|
+
if (hasPayload) {
|
|
2514
|
+
const keys = applyNormalizedCatalogScopeKeys(data, propertyName, enrichPath);
|
|
2515
|
+
if (!isEmpty(keys)) {
|
|
2516
|
+
set(data, enrichPath, await enrichment.resolveItems(keys));
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
catch (error) {
|
|
2522
|
+
console.error('[catalog-scope-resolver] Failed to resolve on write:', error);
|
|
2523
|
+
}
|
|
2524
|
+
await next();
|
|
2525
|
+
if (READ_OPS.has(ctx.op) && ctx.result) {
|
|
2526
|
+
try {
|
|
2527
|
+
if (ctx.op === 'getOne') {
|
|
2528
|
+
await enrichRows([ctx.result], propertyName, enrichPath, enrichment);
|
|
2529
|
+
}
|
|
2530
|
+
else {
|
|
2531
|
+
await enrichRows(readResultRows(ctx.result), propertyName, enrichPath, enrichment);
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
catch (error) {
|
|
2535
|
+
console.error('[catalog-scope-resolver] Failed to enrich on read:', error);
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
};
|
|
2540
|
+
//#endregion
|
|
2541
|
+
|
|
2542
|
+
//#region ---- Imports ----
|
|
2543
|
+
//#endregion
|
|
2544
|
+
//#region ---- Middleware ----
|
|
2545
|
+
/**
|
|
2546
|
+
* Rejects unknown or inapplicable {@link catalogScopePlugin} keys on create/update.
|
|
2547
|
+
*/
|
|
2548
|
+
const catalogScopeValidationMiddleware = {
|
|
2549
|
+
target: {
|
|
2550
|
+
ops: ['create', 'update'],
|
|
2551
|
+
order: 6,
|
|
2552
|
+
},
|
|
2553
|
+
execute: async (ctx, next) => {
|
|
2554
|
+
const registry = inject(AXPEntityDefinitionRegistryService, { optional: true });
|
|
2555
|
+
const scopeRegistry = inject(AXPCatalogScopeDefinitionProviderService);
|
|
2556
|
+
if (!registry || ctx.data === undefined) {
|
|
2557
|
+
await next();
|
|
2558
|
+
return;
|
|
2559
|
+
}
|
|
2560
|
+
const parts = ctx.entityName.split('.');
|
|
2561
|
+
const moduleName = parts[0] ?? '';
|
|
2562
|
+
const entityName = parts.slice(1).join('.') || (parts[0] ?? '');
|
|
2563
|
+
const entity = await registry.resolve(moduleName, entityName).catch(() => null);
|
|
2564
|
+
const ext = entity?.extensions
|
|
2565
|
+
?.catalogScope;
|
|
2566
|
+
if (!ext?.propertyName) {
|
|
2567
|
+
await next();
|
|
2568
|
+
return;
|
|
2569
|
+
}
|
|
2570
|
+
const data = ctx.data;
|
|
2571
|
+
const propertyName = ext.propertyName;
|
|
2572
|
+
const enrichPath = 'catalogScopes';
|
|
2573
|
+
if (ctx.op === 'update' &&
|
|
2574
|
+
!(propertyName in data) &&
|
|
2575
|
+
!(enrichPath in data)) {
|
|
2576
|
+
await next();
|
|
2577
|
+
return;
|
|
2578
|
+
}
|
|
2579
|
+
const keys = applyNormalizedCatalogScopeKeys(data, propertyName, enrichPath);
|
|
2580
|
+
if (isEmpty(keys)) {
|
|
2581
|
+
throw new AXPMiddlewareAbortError(`Catalog scope is required (${propertyName}).`, { code: 'VALIDATION_ERROR', status: 400 });
|
|
2582
|
+
}
|
|
2583
|
+
const allowedSubset = ext.allowedScopeKeys?.length ? new Set(ext.allowedScopeKeys) : null;
|
|
2584
|
+
const errors = [];
|
|
2585
|
+
for (const key of keys) {
|
|
2586
|
+
if (allowedSubset && !allowedSubset.has(key)) {
|
|
2587
|
+
errors.push(`"${key}" is not allowed for this entity.`);
|
|
2588
|
+
continue;
|
|
2589
|
+
}
|
|
2590
|
+
const definition = await scopeRegistry.get(key);
|
|
2591
|
+
if (!definition) {
|
|
2592
|
+
errors.push(`Unknown catalog scope: "${key}".`);
|
|
2593
|
+
continue;
|
|
2594
|
+
}
|
|
2595
|
+
const target = ext.entityTarget?.trim();
|
|
2596
|
+
if (target && !definition.targets?.includes(target)) {
|
|
2597
|
+
errors.push(`Catalog scope "${key}" does not apply to ${target}.`);
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
if (errors.length) {
|
|
2601
|
+
throw new AXPMiddlewareAbortError(errors.join(' '), {
|
|
2602
|
+
code: 'VALIDATION_ERROR',
|
|
2603
|
+
status: 400,
|
|
2604
|
+
details: { errors },
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
await next();
|
|
2608
|
+
},
|
|
2609
|
+
};
|
|
2610
|
+
//#endregion
|
|
2611
|
+
|
|
2612
|
+
//#region ---- Imports ----
|
|
2613
|
+
//#endregion
|
|
2614
|
+
//#region ---- Module ----
|
|
2615
|
+
class AXPCatalogScopePluginModule {
|
|
2616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopePluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2617
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopePluginModule }); }
|
|
2618
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopePluginModule, providers: [
|
|
2619
|
+
{ provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: catalogScopePlugin },
|
|
2620
|
+
{
|
|
2621
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
2622
|
+
useClass: AXPCatalogScopeDefinitionsDataSourceDefinition,
|
|
2623
|
+
multi: true,
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
|
|
2627
|
+
multi: true,
|
|
2628
|
+
useValue: catalogScopeValidationMiddleware,
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
|
|
2632
|
+
multi: true,
|
|
2633
|
+
useValue: catalogScopeResolverMiddleware,
|
|
2634
|
+
},
|
|
2635
|
+
] }); }
|
|
2636
|
+
}
|
|
2637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCatalogScopePluginModule, decorators: [{
|
|
2638
|
+
type: NgModule,
|
|
2639
|
+
args: [{
|
|
2640
|
+
providers: [
|
|
2641
|
+
{ provide: AXP_ENTITY_ACTION_PLUGIN, multi: true, useValue: catalogScopePlugin },
|
|
2642
|
+
{
|
|
2643
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
2644
|
+
useClass: AXPCatalogScopeDefinitionsDataSourceDefinition,
|
|
2645
|
+
multi: true,
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
|
|
2649
|
+
multi: true,
|
|
2650
|
+
useValue: catalogScopeValidationMiddleware,
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
provide: AXP_ENTITY_STORAGE_MIDDLEWARE,
|
|
2654
|
+
multi: true,
|
|
2655
|
+
useValue: catalogScopeResolverMiddleware,
|
|
2656
|
+
},
|
|
2657
|
+
],
|
|
2658
|
+
}]
|
|
2659
|
+
}] });
|
|
2660
|
+
|
|
2255
2661
|
const clonePlugin = {
|
|
2256
2662
|
name: 'clone',
|
|
2257
2663
|
order: 60,
|
|
@@ -6467,6 +6873,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
6467
6873
|
type: Injectable
|
|
6468
6874
|
}] });
|
|
6469
6875
|
|
|
6876
|
+
/** Cross-module catalog scope for shared questionnaires, question bank items, and workflows. */
|
|
6877
|
+
const COMMON_CATALOG_SCOPE_GENERAL = 'common.general';
|
|
6878
|
+
|
|
6879
|
+
//#region ---- Imports ----
|
|
6880
|
+
//#endregion
|
|
6881
|
+
//#region ---- Constants ----
|
|
6882
|
+
const M = createMultiLanguageString;
|
|
6883
|
+
const QUESTIONNAIRE = 'AssessmentManagement.Questionnaire';
|
|
6884
|
+
const QUESTION_BANK_ITEM = 'AssessmentManagement.QuestionBankItem';
|
|
6885
|
+
const WORKFLOW_DEFINITION = 'WorkflowManagement.WorkflowDefinition';
|
|
6886
|
+
const COMMON_CATALOG_TARGETS = [QUESTIONNAIRE, QUESTION_BANK_ITEM, WORKFLOW_DEFINITION];
|
|
6887
|
+
//#endregion
|
|
6888
|
+
//#region ---- Provider ----
|
|
6889
|
+
class AXPCommonCatalogScopeDefinitionProvider {
|
|
6890
|
+
async items() {
|
|
6891
|
+
return [
|
|
6892
|
+
{
|
|
6893
|
+
name: COMMON_CATALOG_SCOPE_GENERAL,
|
|
6894
|
+
title: M('General', 'عمومی'),
|
|
6895
|
+
description: M('Shared questionnaires, question bank items, and workflows not tied to a specific business domain.', 'پرسشنامهها، آیتمهای بانک سؤال و گردشکارهای مشترک که به یک حوزه کسبوکار خاص وابسته نیستند.'),
|
|
6896
|
+
targets: [...COMMON_CATALOG_TARGETS],
|
|
6897
|
+
icon: 'fa-light fa-grid-2',
|
|
6898
|
+
cssClass: 'ax-lighter-surface ax-text-on-lighter-surface ax-border-border-lighter-surface',
|
|
6899
|
+
order: 0,
|
|
6900
|
+
},
|
|
6901
|
+
];
|
|
6902
|
+
}
|
|
6903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommonCatalogScopeDefinitionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6904
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommonCatalogScopeDefinitionProvider }); }
|
|
6905
|
+
}
|
|
6906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPCommonCatalogScopeDefinitionProvider, decorators: [{
|
|
6907
|
+
type: Injectable
|
|
6908
|
+
}] });
|
|
6909
|
+
|
|
6470
6910
|
//#region ---- Platform Imports ----
|
|
6471
6911
|
//#endregion
|
|
6472
6912
|
class AXMCommonModule {
|
|
@@ -6474,6 +6914,7 @@ class AXMCommonModule {
|
|
|
6474
6914
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMCommonModule, imports: [
|
|
6475
6915
|
//#region ---- Extension & System Plugins ----
|
|
6476
6916
|
AXPCategoryModule,
|
|
6917
|
+
AXPCatalogScopePluginModule,
|
|
6477
6918
|
AXMLockSystemModule,
|
|
6478
6919
|
AXPHistoryModule,
|
|
6479
6920
|
//#endregion
|
|
@@ -6569,6 +7010,13 @@ class AXMCommonModule {
|
|
|
6569
7010
|
multi: true,
|
|
6570
7011
|
},
|
|
6571
7012
|
//#endregion
|
|
7013
|
+
//#region ---- Catalog Scope Definition Provider ----
|
|
7014
|
+
{
|
|
7015
|
+
provide: AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,
|
|
7016
|
+
useClass: AXPCommonCatalogScopeDefinitionProvider,
|
|
7017
|
+
multi: true,
|
|
7018
|
+
},
|
|
7019
|
+
//#endregion
|
|
6572
7020
|
//#region ---- Multi-Source Definition Provider ----
|
|
6573
7021
|
{
|
|
6574
7022
|
provide: AXP_MULTI_SOURCE_DEFINITION_PROVIDER,
|
|
@@ -6587,6 +7035,7 @@ class AXMCommonModule {
|
|
|
6587
7035
|
], imports: [
|
|
6588
7036
|
//#region ---- Extension & System Plugins ----
|
|
6589
7037
|
AXPCategoryModule,
|
|
7038
|
+
AXPCatalogScopePluginModule,
|
|
6590
7039
|
AXMLockSystemModule,
|
|
6591
7040
|
AXPHistoryModule,
|
|
6592
7041
|
//#endregion
|
|
@@ -6626,6 +7075,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
6626
7075
|
imports: [
|
|
6627
7076
|
//#region ---- Extension & System Plugins ----
|
|
6628
7077
|
AXPCategoryModule,
|
|
7078
|
+
AXPCatalogScopePluginModule,
|
|
6629
7079
|
AXMLockSystemModule,
|
|
6630
7080
|
AXPHistoryModule,
|
|
6631
7081
|
//#endregion
|
|
@@ -6725,6 +7175,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
6725
7175
|
multi: true,
|
|
6726
7176
|
},
|
|
6727
7177
|
//#endregion
|
|
7178
|
+
//#region ---- Catalog Scope Definition Provider ----
|
|
7179
|
+
{
|
|
7180
|
+
provide: AXP_CATALOG_SCOPE_DEFINITION_PROVIDER,
|
|
7181
|
+
useClass: AXPCommonCatalogScopeDefinitionProvider,
|
|
7182
|
+
multi: true,
|
|
7183
|
+
},
|
|
7184
|
+
//#endregion
|
|
6728
7185
|
//#region ---- Multi-Source Definition Provider ----
|
|
6729
7186
|
{
|
|
6730
7187
|
provide: AXP_MULTI_SOURCE_DEFINITION_PROVIDER,
|
|
@@ -7118,5 +7575,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
7118
7575
|
* Generated bundle index. Do not edit.
|
|
7119
7576
|
*/
|
|
7120
7577
|
|
|
7121
|
-
export { AXMCommonModule, AXMLockPopupWorkflow, AXMLockPopupWorkflowAction, AXMMenuProvider, AXMSettingProvider, AXMUnlockConfirmWorkflow, AXMUnlockConfirmWorkflowAction, AXMVersionHistoryPageComponent, AXPCommonFeatureDefinitionProvider, AXPCommonFeatureKeys, AXPCommonMenuKeys, AXPDisablePluginModule, AXPGlobalSearchModule, AXPGlobalSearchViewModel, AXPHistoryAuditInfoWidget, AXPHistoryModule, AXPResourceAppointmentPageComponent, AXPStatusPluginModule, AXPUniqueFieldsPluginModule, AXPValidationRulesModule, AXPWidgetsList, AXP_GLOBAL_SEARCH_CONFIG_TOKEN, AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG, ApprovalStatusProvider, AtLeastOneOfValidationRule, CommonManifest, HISTORY_PAGE_COMPONENT_KEY, RootConfig, ShowVersionHistoryPopupCommand, StateStatusProvider, TaskStatusProvider, UniqueValidationRule, VARIABLE_NAME_VALIDATION_PATTERN, VariableNameValidationRule, disablePlugin, getActiveStatuses, getFinalStatuses, getInitialStatuses, getStatusByName, getTransitionsFromStatus, getTransitionsToStatus, historyPlugin, humanizeChange, isValidTransition, mapChangeType, mapOpToAction, resolvePathKey, statusPlugin, uniqueFieldsPlugin, versionEntriesToActivityLogs };
|
|
7578
|
+
export { AXMCommonModule, AXMLockPopupWorkflow, AXMLockPopupWorkflowAction, AXMMenuProvider, AXMSettingProvider, AXMUnlockConfirmWorkflow, AXMUnlockConfirmWorkflowAction, AXMVersionHistoryPageComponent, AXPCommonFeatureDefinitionProvider, AXPCommonFeatureKeys, AXPCommonMenuKeys, AXPDisablePluginModule, AXPGlobalSearchModule, AXPGlobalSearchViewModel, AXPHistoryAuditInfoWidget, AXPHistoryModule, AXPResourceAppointmentPageComponent, AXPStatusPluginModule, AXPUniqueFieldsPluginModule, AXPValidationRulesModule, AXPWidgetsList, AXP_GLOBAL_SEARCH_CONFIG_TOKEN, AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG, ApprovalStatusProvider, AtLeastOneOfValidationRule, COMMON_CATALOG_SCOPE_GENERAL, CommonManifest, HISTORY_PAGE_COMPONENT_KEY, RootConfig, ShowVersionHistoryPopupCommand, StateStatusProvider, TaskStatusProvider, UniqueValidationRule, VARIABLE_NAME_VALIDATION_PATTERN, VariableNameValidationRule, disablePlugin, getActiveStatuses, getFinalStatuses, getInitialStatuses, getStatusByName, getTransitionsFromStatus, getTransitionsToStatus, historyPlugin, humanizeChange, isValidTransition, mapChangeType, mapOpToAction, resolvePathKey, statusPlugin, uniqueFieldsPlugin, versionEntriesToActivityLogs };
|
|
7122
7579
|
//# sourceMappingURL=acorex-modules-common.mjs.map
|