@acorex/modules 21.0.0-next.75 → 21.0.0-next.76
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-model.entity-DiDaXVa3.mjs → acorex-modules-ai-management-index-1AKm3Wpv.mjs} +4 -7
- package/fesm2022/acorex-modules-ai-management-index-1AKm3Wpv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-rule.entity-CQNx4QEB.mjs → acorex-modules-ai-management-index-D-oYCWiP.mjs} +2 -5
- package/fesm2022/acorex-modules-ai-management-index-D-oYCWiP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-assist.entity-CeALRRoV.mjs → acorex-modules-ai-management-index-IOX4YfSO.mjs} +2 -5
- package/fesm2022/acorex-modules-ai-management-index-IOX4YfSO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-open-ai-endpoint.entity-CZLNKtl0.mjs → acorex-modules-ai-management-index-KMGY_nWq.mjs} +2 -5
- package/fesm2022/acorex-modules-ai-management-index-KMGY_nWq.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-agent.entity-3ZBa5t2D.mjs → acorex-modules-ai-management-index-r6kkpdsP.mjs} +2 -5
- package/fesm2022/acorex-modules-ai-management-index-r6kkpdsP.mjs.map +1 -0
- package/fesm2022/acorex-modules-ai-management.mjs +92 -92
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-application-management-application-status.provider-CGRoY79H.mjs → acorex-modules-application-management-application-status.provider-BmTGAssq.mjs} +2 -2
- package/fesm2022/acorex-modules-application-management-application-status.provider-BmTGAssq.mjs.map +1 -0
- package/fesm2022/acorex-modules-application-management-permission-definition.provider-DEO50hd3.mjs.map +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +1143 -1146
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-yboYQ8I-.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-CLXKpUoU.mjs} +85 -86
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-CLXKpUoU.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case-status.provider-B9sQAPwy.mjs → acorex-modules-assessment-management-assessment-case-status.provider-rAq2m3xt.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-assessment-case-status.provider-rAq2m3xt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-session-answers-view.util-UCYBAHLk.mjs → acorex-modules-assessment-management-assessment-session-answers-view.util-DECCIZSO.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-assessment-session-answers-view.util-DECCIZSO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-session-status.provider-Lee6Cwg8.mjs → acorex-modules-assessment-management-assessment-session-status.provider-B-0MdMq1.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-assessment-session-status.provider-B-0MdMq1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-VivCLw2H.mjs → acorex-modules-assessment-management-fill-assessment-session.command-pLGZAFqT.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-pLGZAFqT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-Bp_dS1Js.mjs → acorex-modules-assessment-management-index-Cj5KtvVT.mjs} +6 -8
- package/fesm2022/acorex-modules-assessment-management-index-Cj5KtvVT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-BbyNZvoc.mjs → acorex-modules-assessment-management-index-ClRMor3R.mjs} +8 -10
- package/fesm2022/acorex-modules-assessment-management-index-ClRMor3R.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-Sj-5woTX.mjs → acorex-modules-assessment-management-index-DDhc6vR7.mjs} +7 -9
- package/fesm2022/acorex-modules-assessment-management-index-DDhc6vR7.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-BBWeshSs.mjs → acorex-modules-assessment-management-index-VYBOM8GR.mjs} +6 -9
- package/fesm2022/acorex-modules-assessment-management-index-VYBOM8GR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-CKF4BjCx.mjs → acorex-modules-assessment-management-preview-question.command-Bgqajt80.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-preview-question.command-Bgqajt80.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-B_2o4jC2.mjs → acorex-modules-assessment-management-preview-questionnaire.command-B84qnNRw.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-B84qnNRw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-s8KcR3D0.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-CyZGi_Zx.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-CyZGi_Zx.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-ClvQ18w6.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-CRQjv1Vz.mjs} +2 -2
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-CRQjv1Vz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-review-assessment-session.command-B2QViI9d.mjs → acorex-modules-assessment-management-review-assessment-session.command-Dgaf88SW.mjs} +3 -3
- package/fesm2022/acorex-modules-assessment-management-review-assessment-session.command-Dgaf88SW.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-CWdBtkn1.mjs → acorex-modules-assessment-management-view-session-answers.command-CocxFTxZ.mjs} +3 -3
- package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-CocxFTxZ.mjs.map +1 -0
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-rental-history-status.provider-BiWf2TwD.mjs → acorex-modules-asset-management-asset-rental-history-status.provider-_iNFw6nf.mjs} +4 -13
- package/fesm2022/acorex-modules-asset-management-asset-rental-history-status.provider-_iNFw6nf.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-system-assignment.entity-ufjDJ-0D.mjs → acorex-modules-asset-management-index-BE9Pt9Yl.mjs} +4 -7
- package/fesm2022/acorex-modules-asset-management-index-BE9Pt9Yl.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-C6tA_OBh.mjs → acorex-modules-asset-management-index-BGnVFHyV.mjs} +4 -7
- package/fesm2022/acorex-modules-asset-management-index-BGnVFHyV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset.entity-D1HwzXL_.mjs → acorex-modules-asset-management-index-BNW-nI4M.mjs} +7 -12
- package/fesm2022/acorex-modules-asset-management-index-BNW-nI4M.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-system.entity-0Fy7wSBh.mjs → acorex-modules-asset-management-index-BQRNWXnd.mjs} +4 -7
- package/fesm2022/acorex-modules-asset-management-index-BQRNWXnd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-OsuWeo2l.mjs → acorex-modules-asset-management-index-BmydXxB7.mjs} +4 -7
- package/fesm2022/acorex-modules-asset-management-index-BmydXxB7.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-rental-history.entity-D7g3TSrr.mjs → acorex-modules-asset-management-index-Bza8Y2Qq.mjs} +6 -10
- package/fesm2022/acorex-modules-asset-management-index-Bza8Y2Qq.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type.entity-Cjy7Xetu.mjs → acorex-modules-asset-management-index-CBoHnVCB.mjs} +5 -9
- package/fesm2022/acorex-modules-asset-management-index-CBoHnVCB.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-DbeerQdD.mjs → acorex-modules-asset-management-index-DDyvfemO.mjs} +4 -7
- package/fesm2022/acorex-modules-asset-management-index-DDyvfemO.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management.mjs +134 -119
- package/fesm2022/acorex-modules-asset-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CUpNfm_0.mjs → acorex-modules-auth-acorex-modules-auth-DBZfh3pH.mjs} +130 -129
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-DBZfh3pH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-DLtnhyB9.mjs → acorex-modules-auth-app-chooser.component-DN75LxY3.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-DLtnhyB9.mjs.map → acorex-modules-auth-app-chooser.component-DN75LxY3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-change-password.command-DcGeenns.mjs → acorex-modules-auth-change-password.command-DDH7PMLT.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-change-password.command-DcGeenns.mjs.map → acorex-modules-auth-change-password.command-DDH7PMLT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-edit-account-info.command-BnPtwAxA.mjs → acorex-modules-auth-edit-account-info.command-BtzrBEGu.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-edit-account-info.command-BnPtwAxA.mjs.map → acorex-modules-auth-edit-account-info.command-BtzrBEGu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-lock-screen.command-Dh0Sgo3_.mjs → acorex-modules-auth-lock-screen.command-BIiErYnc.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-lock-screen.command-Dh0Sgo3_.mjs.map → acorex-modules-auth-lock-screen.command-BIiErYnc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-C8psUPfq.mjs → acorex-modules-auth-login.module-CM6a_pvB.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-C8psUPfq.mjs.map → acorex-modules-auth-login.module-CM6a_pvB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-KMxMqtt8.mjs → acorex-modules-auth-master.layout-D9al7lUX.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-KMxMqtt8.mjs.map → acorex-modules-auth-master.layout-D9al7lUX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-BF_3fuuz.mjs → acorex-modules-auth-oauth-callback.component-CndekwOM.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-BF_3fuuz.mjs.map → acorex-modules-auth-oauth-callback.component-CndekwOM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-open-sessions.command-vxmxqvOa.mjs → acorex-modules-auth-open-sessions.command-Bgk9TcH-.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-open-sessions.command-vxmxqvOa.mjs.map → acorex-modules-auth-open-sessions.command-Bgk9TcH-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-BOoUt4Gn.mjs → acorex-modules-auth-password.component-BWEq8tpz.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-BOoUt4Gn.mjs.map → acorex-modules-auth-password.component-BWEq8tpz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-Cpjc_S82.mjs → acorex-modules-auth-password.component-Z980dxkh.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-Cpjc_S82.mjs.map → acorex-modules-auth-password.component-Z980dxkh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-profile-activity-chart.component-DfWYy7TN.mjs → acorex-modules-auth-profile-activity-chart.component-8uSUOk9s.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-profile-activity-chart.component-DfWYy7TN.mjs.map → acorex-modules-auth-profile-activity-chart.component-8uSUOk9s.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-profile-delete-account-danger-zone.component-DJcIyOxg.mjs → acorex-modules-auth-profile-delete-account-danger-zone.component-C-zoKWsQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-profile-delete-account-danger-zone.component-DJcIyOxg.mjs.map → acorex-modules-auth-profile-delete-account-danger-zone.component-C-zoKWsQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-profile-page-component.provider-DR2-c0_6.mjs → acorex-modules-auth-profile-page-component.provider-BoGC3tKI.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-profile-page-component.provider-DR2-c0_6.mjs.map → acorex-modules-auth-profile-page-component.provider-BoGC3tKI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-profile-page.component-ChsI9B3Y.mjs → acorex-modules-auth-profile-page.component-B-qdKgOT.mjs} +11 -6
- package/fesm2022/acorex-modules-auth-profile-page.component-B-qdKgOT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-remove-pin-code.command-LFwvvyZ9.mjs → acorex-modules-auth-remove-pin-code.command-DnYc0CYG.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-remove-pin-code.command-LFwvvyZ9.mjs.map → acorex-modules-auth-remove-pin-code.command-DnYc0CYG.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-CuY_v2GN.mjs → acorex-modules-auth-routes-Cg0xipUZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-CuY_v2GN.mjs.map → acorex-modules-auth-routes-Cg0xipUZ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-session-lock-overlay.component-CwNAumIp.mjs → acorex-modules-auth-session-lock-overlay.component-BkpYhoVc.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-session-lock-overlay.component-CwNAumIp.mjs.map → acorex-modules-auth-session-lock-overlay.component-BkpYhoVc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-set-pin-code.command-CfIHBTiI.mjs → acorex-modules-auth-set-pin-code.command-9DY-hUvp.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-set-pin-code.command-CfIHBTiI.mjs.map → acorex-modules-auth-set-pin-code.command-9DY-hUvp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-set-pin-code.component-CNZE8NXL.mjs → acorex-modules-auth-set-pin-code.component-QhO37PUy.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-set-pin-code.component-CNZE8NXL.mjs.map → acorex-modules-auth-set-pin-code.component-QhO37PUy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-settings.provider-BMc1yFRY.mjs → acorex-modules-auth-settings.provider-DhaMQd28.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-settings.provider-BMc1yFRY.mjs.map → acorex-modules-auth-settings.provider-DhaMQd28.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-OsTNt9lp.mjs → acorex-modules-auth-tenant-chooser.component-Hy_FsSVy.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-OsTNt9lp.mjs.map → acorex-modules-auth-tenant-chooser.component-Hy_FsSVy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-CcKZ6dpb.mjs → acorex-modules-auth-two-factor.module-l0zICZtk.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-CcKZ6dpb.mjs.map → acorex-modules-auth-two-factor.module-l0zICZtk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-view-login-history.command-Crx7Dw2t.mjs → acorex-modules-auth-view-login-history.command-o2IzCKbr.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-view-login-history.command-Crx7Dw2t.mjs.map → acorex-modules-auth-view-login-history.command-o2IzCKbr.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-business-core.mjs +993 -313
- package/fesm2022/acorex-modules-business-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-calendar-management-index-DIxSknUT.mjs +6 -0
- package/fesm2022/acorex-modules-calendar-management-index-DIxSknUT.mjs.map +1 -0
- package/fesm2022/acorex-modules-calendar-management-index-pvTUhYWL.mjs +6 -0
- package/fesm2022/acorex-modules-calendar-management-index-pvTUhYWL.mjs.map +1 -0
- package/fesm2022/acorex-modules-calendar-management-index-xkdBRrFw.mjs +6 -0
- package/fesm2022/acorex-modules-calendar-management-index-xkdBRrFw.mjs.map +1 -0
- package/fesm2022/acorex-modules-calendar-management.mjs +57 -73
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-common.mjs +136 -240
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-contact-core-acorex-modules-contact-core-D9-WvwGJ.mjs +425 -0
- package/fesm2022/acorex-modules-contact-core-acorex-modules-contact-core-D9-WvwGJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-core-entity.provider-Cl4zx8WX.mjs +35 -0
- package/fesm2022/acorex-modules-contact-core-entity.provider-Cl4zx8WX.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-core-menu.provider-DfUbrqFh.mjs +57 -0
- package/fesm2022/acorex-modules-contact-core-menu.provider-DfUbrqFh.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-core-permission-definition.provider-Dni6YOWm.mjs +24 -0
- package/fesm2022/acorex-modules-contact-core-permission-definition.provider-Dni6YOWm.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-core.mjs +2 -0
- package/fesm2022/acorex-modules-contact-core.mjs.map +1 -0
- package/fesm2022/{acorex-modules-content-management-acorex-modules-content-management-B5zqb3b_.mjs → acorex-modules-content-management-acorex-modules-content-management-DSdJ2hZ-.mjs} +58 -138
- package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-DSdJ2hZ-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-content-management-permission-definition.provider-DxI6NmP4.mjs → acorex-modules-content-management-permission-definition.provider-DRVW7Xxa.mjs} +2 -2
- package/fesm2022/acorex-modules-content-management-permission-definition.provider-DRVW7Xxa.mjs.map +1 -0
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-ChmkpMy9.mjs → acorex-modules-content-management-template-content-editor-widget-edit.component-DwUqz7ZX.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-edit.component-ChmkpMy9.mjs.map → acorex-modules-content-management-template-content-editor-widget-edit.component-DwUqz7ZX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-LyoQmopL.mjs → acorex-modules-content-management-template-content-editor-widget-view.component-CnUc_fhC.mjs} +2 -2
- package/fesm2022/{acorex-modules-content-management-template-content-editor-widget-view.component-LyoQmopL.mjs.map → acorex-modules-content-management-template-content-editor-widget-view.component-CnUc_fhC.mjs.map} +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +1 -1
- package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-lPw23AJc.mjs → acorex-modules-conversation-acorex-modules-conversation-DtFH9LbP.mjs} +192 -191
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-DtFH9LbP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-D0SGSQC8.mjs → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-Cpc1seYt.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-D0SGSQC8.mjs.map → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-Cpc1seYt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-comments-page.component-Bqeplzuy.mjs → acorex-modules-conversation-comments-page.component-B1CmPB0U.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-comments-page.component-Bqeplzuy.mjs.map → acorex-modules-conversation-comments-page.component-B1CmPB0U.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-CFwkUHCc.mjs → acorex-modules-conversation-send-assist-chat-message.command-BFFF5GTX.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-send-assist-chat-message.command-CFwkUHCc.mjs.map → acorex-modules-conversation-send-assist-chat-message.command-BFFF5GTX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-aEOnD6ax.mjs → acorex-modules-conversation-start-assist-chat.command-C-KVIK-L.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-aEOnD6ax.mjs.map → acorex-modules-conversation-start-assist-chat.command-C-KVIK-L.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/{acorex-modules-customer-management-lead.entity-CH7iga2T.mjs → acorex-modules-customer-management-index-7teVSkdT.mjs} +2 -5
- package/fesm2022/acorex-modules-customer-management-index-7teVSkdT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-opportunity-stage.entity-gXGyRjOR.mjs → acorex-modules-customer-management-index-B0wUbd2e.mjs} +2 -4
- package/fesm2022/acorex-modules-customer-management-index-B0wUbd2e.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-customer.entity-Doc1f5gH.mjs → acorex-modules-customer-management-index-CQLsaDJ-.mjs} +3 -7
- package/fesm2022/acorex-modules-customer-management-index-CQLsaDJ-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-deal-contact-role.entity-BmDALoWz.mjs → acorex-modules-customer-management-index-CQWjFZ-D.mjs} +4 -7
- package/fesm2022/acorex-modules-customer-management-index-CQWjFZ-D.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-sales-pipeline.entity-TN7eqaA1.mjs → acorex-modules-customer-management-index-DHaf2JAF.mjs} +2 -4
- package/fesm2022/acorex-modules-customer-management-index-DHaf2JAF.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-activity.entity-BENCtWk0.mjs → acorex-modules-customer-management-index-Df-6hCzG.mjs} +2 -4
- package/fesm2022/acorex-modules-customer-management-index-Df-6hCzG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-opportunity.entity-BX1vocD3.mjs → acorex-modules-customer-management-index-DwPwxZI6.mjs} +3 -7
- package/fesm2022/acorex-modules-customer-management-index-DwPwxZI6.mjs.map +1 -0
- package/fesm2022/acorex-modules-customer-management.mjs +42 -28
- package/fesm2022/acorex-modules-customer-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-D2TrYnCW.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-d_3MEOVx.mjs} +49 -45
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-d_3MEOVx.mjs.map +1 -0
- package/fesm2022/{acorex-modules-dashboard-management-index-DAQNEq43.mjs → acorex-modules-dashboard-management-index-0npgb7TY.mjs} +2 -2
- package/fesm2022/acorex-modules-dashboard-management-index-0npgb7TY.mjs.map +1 -0
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
- package/fesm2022/acorex-modules-data-management-contracts.mjs +351 -0
- package/fesm2022/acorex-modules-data-management-contracts.mjs.map +1 -0
- package/fesm2022/acorex-modules-data-management.mjs +903 -902
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management-drive-choose.component-DyJoXajP.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +109 -75
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-financial-core-data-source.provider-Do4rvgy4.mjs.map +1 -1
- package/fesm2022/acorex-modules-financial-core.mjs +608 -625
- package/fesm2022/acorex-modules-financial-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-CtTkFhXf.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +442 -30
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-health-core-start-health-record-flow.command-BzGYbiw_.mjs +257 -0
- package/fesm2022/acorex-modules-health-core-start-health-record-flow.command-BzGYbiw_.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core.mjs +2408 -93
- package/fesm2022/acorex-modules-health-core.mjs.map +1 -1
- package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-B8de7ifz.mjs → acorex-modules-help-desk-acorex-modules-help-desk-AWSV_TiH.mjs} +208 -204
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-AWSV_TiH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-O3qJdpnt.mjs → acorex-modules-help-desk-capture-screen.component-DjUG9lk7.mjs} +2 -2
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-O3qJdpnt.mjs.map → acorex-modules-help-desk-capture-screen.component-DjUG9lk7.mjs.map} +1 -1
- package/fesm2022/acorex-modules-help-desk.mjs +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-CqROha3-.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs} +1694 -196
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-B0pyS4rY.mjs → acorex-modules-human-capital-management-approve-leave-request.command-8MwfTrgO.mjs} +3 -3
- package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-8MwfTrgO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-Dc0eoIAI.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-DJft6ua8.mjs} +2 -2
- package/fesm2022/acorex-modules-human-capital-management-assign-position-assignment.command-DJft6ua8.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-TjMXVKCB.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-r5zEA5Oa.mjs} +3 -3
- package/fesm2022/acorex-modules-human-capital-management-cancel-leave-request.command-r5zEA5Oa.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-edit-personal-info.command-uCNZW1KF.mjs → acorex-modules-human-capital-management-edit-personal-info.command-CTQywAzz.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-edit-personal-info.command-uCNZW1KF.mjs.map → acorex-modules-human-capital-management-edit-personal-info.command-CTQywAzz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-edit-signature.command-9psDoX-o.mjs → acorex-modules-human-capital-management-edit-signature.command-9XI2V0Yt.mjs} +2 -2
- package/fesm2022/acorex-modules-human-capital-management-edit-signature.command-9XI2V0Yt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-DHqsjUdQ.mjs → acorex-modules-human-capital-management-reject-leave-request.command-Ba2f-i0A.mjs} +3 -3
- package/fesm2022/acorex-modules-human-capital-management-reject-leave-request.command-Ba2f-i0A.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-DQqsqBRM.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-g9p7YKJ1.mjs} +2 -2
- package/fesm2022/acorex-modules-human-capital-management-revoke-position-assignment.command-g9p7YKJ1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-start-leave-request-flow.command-nF6sDrFL.mjs → acorex-modules-human-capital-management-start-leave-request-flow.command-BPFrBjWG.mjs} +3 -3
- package/fesm2022/acorex-modules-human-capital-management-start-leave-request-flow.command-BPFrBjWG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-start-lifecycle-event-flow.command-Bya_9T7H.mjs → acorex-modules-human-capital-management-start-lifecycle-event-flow.command-C62jEjUD.mjs} +19 -7
- package/fesm2022/acorex-modules-human-capital-management-start-lifecycle-event-flow.command-C62jEjUD.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-identifier-management.mjs +11 -1
- package/fesm2022/acorex-modules-identifier-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-jira-management-index-BGnRJkkx.mjs +179 -0
- package/fesm2022/acorex-modules-jira-management-index-BGnRJkkx.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-BXgxorT1.mjs +155 -0
- package/fesm2022/acorex-modules-jira-management-index-BXgxorT1.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-Bw8ivjR_.mjs +177 -0
- package/fesm2022/acorex-modules-jira-management-index-Bw8ivjR_.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-CJNrjlaV.mjs +143 -0
- package/fesm2022/acorex-modules-jira-management-index-CJNrjlaV.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-CjgROlD2.mjs +399 -0
- package/fesm2022/acorex-modules-jira-management-index-CjgROlD2.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-D0vXHcrg.mjs +372 -0
- package/fesm2022/acorex-modules-jira-management-index-D0vXHcrg.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-D2wdvXoF.mjs +123 -0
- package/fesm2022/acorex-modules-jira-management-index-D2wdvXoF.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-DPRA7BCN.mjs +281 -0
- package/fesm2022/acorex-modules-jira-management-index-DPRA7BCN.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management-index-DpCX35Ob.mjs +222 -0
- package/fesm2022/acorex-modules-jira-management-index-DpCX35Ob.mjs.map +1 -0
- package/fesm2022/acorex-modules-jira-management.mjs +479 -0
- package/fesm2022/acorex-modules-jira-management.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training-definition.entity-DPY0OQdW.mjs → acorex-modules-learning-management-index-9Sessbgl.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-9Sessbgl.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training-type.entity-Bt37GacX.mjs → acorex-modules-learning-management-index-B2ZI7U9N.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-B2ZI7U9N.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-certificate-definition.entity-DzRELZ1L.mjs → acorex-modules-learning-management-index-Cb6YmwUo.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-Cb6YmwUo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-attendance.entity-40THDVHu.mjs → acorex-modules-learning-management-index-CnBTaY0y.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-CnBTaY0y.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-learning-path.entity-C-FcZefB.mjs → acorex-modules-learning-management-index-CnXPymvw.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-CnXPymvw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-mandatory-training-rule.entity-CxsoSJh-.mjs → acorex-modules-learning-management-index-CtfhNokr.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-CtfhNokr.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training.entity-BkxK-rqz.mjs → acorex-modules-learning-management-index-D3O6qDpQ.mjs} +5 -8
- package/fesm2022/acorex-modules-learning-management-index-D3O6qDpQ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-skill-level.entity-CnAgJyuR.mjs → acorex-modules-learning-management-index-D4Yh8EmO.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-D4Yh8EmO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-skill.entity-DmIjc2gw.mjs → acorex-modules-learning-management-index-DJ4H2IOW.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-DJ4H2IOW.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-enrollment.entity-D4j7oSWb.mjs → acorex-modules-learning-management-index-DPb7aOIM.mjs} +5 -8
- package/fesm2022/acorex-modules-learning-management-index-DPb7aOIM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-course.entity-HoC-FUPB.mjs → acorex-modules-learning-management-index-Da29yyOM.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-Da29yyOM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-certificate.entity-DA882F-J.mjs → acorex-modules-learning-management-index-DdgLO2B8.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-DdgLO2B8.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-course-type.entity-DAc4cRbW.mjs → acorex-modules-learning-management-index-DnUv_C6e.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-DnUv_C6e.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-learning-path-course.entity-B0DurZqy.mjs → acorex-modules-learning-management-index-Dxutf3MN.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-Dxutf3MN.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-certificate-type.entity-Br35cJ-M.mjs → acorex-modules-learning-management-index-pWAVoZBF.mjs} +4 -7
- package/fesm2022/acorex-modules-learning-management-index-pWAVoZBF.mjs.map +1 -0
- package/fesm2022/acorex-modules-learning-management.mjs +153 -168
- package/fesm2022/acorex-modules-learning-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-locale-management-contracts.mjs +77 -0
- package/fesm2022/acorex-modules-locale-management-contracts.mjs.map +1 -0
- package/fesm2022/acorex-modules-locale-management.mjs +62 -71
- package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-location-management.mjs +1207 -1208
- package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-status.provider-B8-Snxbx.mjs → acorex-modules-maintenance-management-failure-register-status.provider-DM5m-VsU.mjs} +2 -2
- package/fesm2022/acorex-modules-maintenance-management-failure-register-status.provider-DM5m-VsU.mjs.map +1 -0
- package/fesm2022/acorex-modules-maintenance-management-work-order-list-command-BMsD_d6k.mjs.map +1 -1
- package/fesm2022/acorex-modules-maintenance-management-work-order-status.provider-BvnpsgY3.mjs +181 -0
- package/fesm2022/acorex-modules-maintenance-management-work-order-status.provider-BvnpsgY3.mjs.map +1 -0
- package/fesm2022/acorex-modules-maintenance-management.mjs +899 -629
- package/fesm2022/acorex-modules-maintenance-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-measurement-core.mjs +898 -914
- package/fesm2022/acorex-modules-measurement-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-meeting-management.mjs +278 -170
- package/fesm2022/acorex-modules-meeting-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-notification-management-acorex-modules-notification-management-ZgxwReDF.mjs → acorex-modules-notification-management-acorex-modules-notification-management-W0YINm5V.mjs} +583 -573
- package/fesm2022/acorex-modules-notification-management-acorex-modules-notification-management-W0YINm5V.mjs.map +1 -0
- package/fesm2022/{acorex-modules-notification-management-notification-page.component-DlFbwB9o.mjs → acorex-modules-notification-management-notification-page.component-BAQGDRTj.mjs} +2 -2
- package/fesm2022/{acorex-modules-notification-management-notification-page.component-DlFbwB9o.mjs.map → acorex-modules-notification-management-notification-page.component-BAQGDRTj.mjs.map} +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1 -1
- package/fesm2022/{acorex-modules-order-management-bulk-buy-order-status.provider-CECieSZF.mjs → acorex-modules-order-management-bulk-buy-order-status.provider-C6HBZfQ_.mjs} +2 -2
- package/fesm2022/acorex-modules-order-management-bulk-buy-order-status.provider-C6HBZfQ_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-entity.provider-ZaDnKtBk.mjs → acorex-modules-order-management-entity.provider-BVlBsDWW.mjs} +5 -5
- package/fesm2022/acorex-modules-order-management-entity.provider-BVlBsDWW.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-member-order.entity-BItj1CLq.mjs → acorex-modules-order-management-index-BeIiBPSs.mjs} +3 -8
- package/fesm2022/acorex-modules-order-management-index-BeIiBPSs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-bulk-buy-order.entity-B9f4Tppc.mjs → acorex-modules-order-management-index-DUMuaQGE.mjs} +3 -8
- package/fesm2022/acorex-modules-order-management-index-DUMuaQGE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-bulk-buy-order-item.entity-DsXE-kqT.mjs → acorex-modules-order-management-index-Du2PsO2f.mjs} +5 -11
- package/fesm2022/acorex-modules-order-management-index-Du2PsO2f.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-member-order-line.entity-BX3rQTJ1.mjs → acorex-modules-order-management-index-QHrmfhTE.mjs} +2 -6
- package/fesm2022/acorex-modules-order-management-index-QHrmfhTE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-order-management-member-order-status.provider-Bkrzylqm.mjs → acorex-modules-order-management-member-order-status.provider-CKIrQc_7.mjs} +2 -2
- package/fesm2022/acorex-modules-order-management-member-order-status.provider-CKIrQc_7.mjs.map +1 -0
- package/fesm2022/acorex-modules-order-management-menu.provider-DeMKkRZa.mjs.map +1 -1
- package/fesm2022/acorex-modules-order-management-permission-definition.provider-B8ext6Sn.mjs.map +1 -1
- package/fesm2022/acorex-modules-order-management-settings.provider-BFOghuIS.mjs.map +1 -1
- package/fesm2022/acorex-modules-order-management.mjs +54 -54
- package/fesm2022/acorex-modules-order-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-BALTqTo-.mjs +4119 -0
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-BALTqTo-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-BUOpdwIy.mjs → acorex-modules-organization-management-add-business-unit-to-business-unit.command-23eGqIxP.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-add-business-unit-to-business-unit.command-23eGqIxP.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-CcoGv5J7.mjs → acorex-modules-organization-management-add-position-to-business-unit.command-B4C1jxs3.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-add-position-to-business-unit.command-B4C1jxs3.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-add-team-to-business-unit.command-n9FYDyKE.mjs → acorex-modules-organization-management-add-team-to-business-unit.command-B5vh3rwS.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-add-team-to-business-unit.command-B5vh3rwS.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-entity.provider-Dqn382Z2.mjs → acorex-modules-organization-management-entity.provider-3IL0cFTC.mjs} +15 -15
- package/fesm2022/acorex-modules-organization-management-entity.provider-3IL0cFTC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-C7VhASKJ.mjs → acorex-modules-organization-management-feature-definition.provider-DsSdRjcX.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-feature-definition.provider-DsSdRjcX.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-Bacrw4_J.mjs → acorex-modules-organization-management-job-definition-pages-component.provider-BRovo6NC.mjs} +4 -4
- package/fesm2022/acorex-modules-organization-management-job-definition-pages-component.provider-BRovo6NC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-BJkc7c-G.mjs → acorex-modules-organization-management-job-definition-responsibilities-page.component-CNtaaDfp.mjs} +3 -3
- package/fesm2022/acorex-modules-organization-management-job-definition-responsibilities-page.component-CNtaaDfp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-GuFiBC0r.mjs → acorex-modules-organization-management-job-definition-skills-page.component-D1ymUBeQ.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-job-definition-skills-page.component-D1ymUBeQ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-job-level.datasource-CCvVPEVM.mjs → acorex-modules-organization-management-job-level.datasource-_6F_fvTn.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-job-level.datasource-_6F_fvTn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-menu.provider-BeCkTwia.mjs → acorex-modules-organization-management-menu.provider-Dt7bfM-4.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-menu.provider-Dt7bfM-4.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-default-node-contribution.provider-DDY2Cgu6.mjs → acorex-modules-organization-management-org-chart-default-node-contribution.provider-Cf789vAr.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-org-chart-default-node-contribution.provider-Cf789vAr.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-DbSxtEz6.mjs → acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-CL32hDBZ.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-CL32hDBZ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-ByqjxY2S.mjs → acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-CpNTM-Ts.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-CpNTM-Ts.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-ux-node-contribution.provider-DdyF5QS0.mjs → acorex-modules-organization-management-org-chart-ux-node-contribution.provider-D-qPXdfm.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-org-chart-ux-node-contribution.provider-D-qPXdfm.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-DD1lvTXR.mjs → acorex-modules-organization-management-org-chart.page-BglvBI8J.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-org-chart.page-BglvBI8J.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-CbXQwY_b.mjs → acorex-modules-organization-management-permission-definition.provider-BOz0kQKZ.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-permission-definition.provider-BOz0kQKZ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-B1mrTFbI.mjs → acorex-modules-organization-management-remove-position-from-business-unit.command-CcfOkd7Z.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-remove-position-from-business-unit.command-CcfOkd7Z.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-B3OVj92j.mjs → acorex-modules-organization-management-replace-position-assignee.command-nNGkuyKE.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-B3OVj92j.mjs.map → acorex-modules-organization-management-replace-position-assignee.command-nNGkuyKE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-COCty9r1.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CymCi80F.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-COCty9r1.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CymCi80F.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BAC2jImJ.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-E46T_VO-.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BAC2jImJ.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-E46T_VO-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-CQ1RKj2l.mjs → acorex-modules-organization-management-responsibilities-matrix.component-Bw22pUUE.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix.component-Bw22pUUE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-settings.provider-B4ijPkN_.mjs → acorex-modules-organization-management-settings.provider-BOMwSEpo.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-settings.provider-B4ijPkN_.mjs.map → acorex-modules-organization-management-settings.provider-BOMwSEpo.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management.mjs +1 -1
- package/fesm2022/acorex-modules-person-core.mjs +1076 -223
- package/fesm2022/acorex-modules-person-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BYy7NCvH.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-dev-tools.mjs +27 -27
- package/fesm2022/acorex-modules-platform-dev-tools.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-ilmoyxAw.mjs → acorex-modules-platform-management-acorex-modules-platform-management-CdMzH5Qu.mjs} +47 -46
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-CdMzH5Qu.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-MJCUVTho.mjs → acorex-modules-platform-management-menu-list.component-B8ZKMl1A.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-MJCUVTho.mjs.map → acorex-modules-platform-management-menu-list.component-B8ZKMl1A.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-procurement-management.mjs +15 -16
- package/fesm2022/acorex-modules-procurement-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-product-catalog.mjs +1545 -33
- package/fesm2022/acorex-modules-product-catalog.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +234 -230
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-Dum62tB8.mjs → acorex-modules-report-management-report-runner-root-page.component-DaPEmTm9.mjs} +2 -3
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-DaPEmTm9.mjs.map +1 -0
- package/fesm2022/acorex-modules-report-management-settings.provider-CA7o3xKu.mjs.map +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +4 -3
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-reservation-management-reservation-resource-type.entity-DiEkzSO2.mjs → acorex-modules-reservation-management-index-DNLOtNNW.mjs} +2 -6
- package/fesm2022/acorex-modules-reservation-management-index-DNLOtNNW.mjs.map +1 -0
- package/fesm2022/{acorex-modules-reservation-management-reservation-status-transition.entity-CSj9-uAb.mjs → acorex-modules-reservation-management-index-DSDnPzHh.mjs} +2 -5
- package/fesm2022/acorex-modules-reservation-management-index-DSDnPzHh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-reservation-management-reservation-class-status.entity-CsOec92Y.mjs → acorex-modules-reservation-management-index-DySHYsCz.mjs} +2 -6
- package/fesm2022/acorex-modules-reservation-management-index-DySHYsCz.mjs.map +1 -0
- package/fesm2022/acorex-modules-reservation-management.mjs +47 -52
- package/fesm2022/acorex-modules-reservation-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-risk-management.mjs +122 -115
- package/fesm2022/acorex-modules-risk-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management-terminate-session.command-CRWFd-YW.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +468 -335
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-D5DqCfiz.mjs → acorex-modules-settings-management-permission-definition.provider-CfCLhvZi.mjs} +2 -2
- package/fesm2022/acorex-modules-settings-management-permission-definition.provider-CfCLhvZi.mjs.map +1 -0
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-TxoOyBRc.mjs → acorex-modules-settings-management-setting-page.component-B7wP0i5k.mjs} +9 -6
- package/fesm2022/acorex-modules-settings-management-setting-page.component-B7wP0i5k.mjs.map +1 -0
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-CuDjGo2x.mjs → acorex-modules-settings-management-setting-view.component-CG-GW2yS.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-CuDjGo2x.mjs.map → acorex-modules-settings-management-setting-view.component-CG-GW2yS.mjs.map} +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +813 -1
- package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-subscription-management.mjs +47 -52
- package/fesm2022/acorex-modules-subscription-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-supplier-management.mjs +34 -36
- package/fesm2022/acorex-modules-supplier-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-system-insight.mjs +74 -61
- package/fesm2022/acorex-modules-system-insight.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-CfgeDnBx.mjs → acorex-modules-task-management-task-board.page-DhPzh72z.mjs} +5 -5
- package/fesm2022/acorex-modules-task-management-task-board.page-DhPzh72z.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +7571 -1
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-tenant-management.mjs +42 -48
- package/fesm2022/acorex-modules-tenant-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-workflow-management-acorex-modules-workflow-management-LJ8Bb-CT.mjs → acorex-modules-workflow-management-acorex-modules-workflow-management-AgY9tA7s.mjs} +1453 -143
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-AgY9tA7s.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-execute-workflow-with-input.command-DUYGWSu8.mjs +127 -0
- package/fesm2022/acorex-modules-workflow-management-execute-workflow-with-input.command-DUYGWSu8.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-execute-workflow.command-DSgQNTtL.mjs +142 -0
- package/fesm2022/acorex-modules-workflow-management-execute-workflow.command-DSgQNTtL.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-index-DXIQw3Ao.mjs → acorex-modules-workflow-management-index-78oCkrbR.mjs} +3 -5
- package/fesm2022/acorex-modules-workflow-management-index-78oCkrbR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-index-8gv17yqF.mjs → acorex-modules-workflow-management-index-CvPrfCTv.mjs} +3 -3
- package/fesm2022/{acorex-modules-workflow-management-index-8gv17yqF.mjs.map → acorex-modules-workflow-management-index-CvPrfCTv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-workflow-management-index--D61tV-f.mjs → acorex-modules-workflow-management-index-DmnrXTPk.mjs} +3 -4
- package/fesm2022/acorex-modules-workflow-management-index-DmnrXTPk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-save-workflow-definition-activities.command-huamhFhc.mjs → acorex-modules-workflow-management-save-workflow-definition-activities.command-aLlfQxaT.mjs} +3 -3
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-aLlfQxaT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-configurator-widget-column.component-B0f5IsoE.mjs → acorex-modules-workflow-management-workflow-configurator-widget-column.component-Ph_BjL_5.mjs} +2 -2
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-column.component-Ph_BjL_5.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-configurator-widget-edit.component-DQ703kRI.mjs → acorex-modules-workflow-management-workflow-configurator-widget-edit.component-CfKTRKNQ.mjs} +5 -3
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-edit.component-CfKTRKNQ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-run-history-popup.component-FLqOdI2t.mjs → acorex-modules-workflow-management-workflow-run-history-popup.component-D1A_EHNk.mjs} +6 -7
- package/fesm2022/acorex-modules-workflow-management-workflow-run-history-popup.component-D1A_EHNk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-task-popover.component-Cvbzknxk.mjs → acorex-modules-workflow-management-workflow-task-popover.component-CHvHPHt9.mjs} +4 -4
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-CHvHPHt9.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +1 -1
- package/fesm2022/{acorex-modules-workplacesafety-management-hazard-ppe-rule-status.provider-D1a0CBhs.mjs → acorex-modules-workplacesafety-management-hazard-ppe-rule-status.provider-CsJpSfdA.mjs} +2 -2
- package/fesm2022/acorex-modules-workplacesafety-management-hazard-ppe-rule-status.provider-CsJpSfdA.mjs.map +1 -0
- package/fesm2022/acorex-modules-workplacesafety-management-hazard-risk-status.provider-CdzRLBqN.mjs +42 -0
- package/fesm2022/acorex-modules-workplacesafety-management-hazard-risk-status.provider-CdzRLBqN.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workplacesafety-management-hazard-status.provider-v1cFaa3q.mjs → acorex-modules-workplacesafety-management-hazard-status.provider-CmtTvpk0.mjs} +2 -2
- package/fesm2022/acorex-modules-workplacesafety-management-hazard-status.provider-CmtTvpk0.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workplacesafety-management-ppe-item-status.provider-VH_Bp0l5.mjs → acorex-modules-workplacesafety-management-ppe-item-status.provider-Bx2yqUVH.mjs} +2 -2
- package/fesm2022/acorex-modules-workplacesafety-management-ppe-item-status.provider-Bx2yqUVH.mjs.map +1 -0
- package/fesm2022/acorex-modules-workplacesafety-management.mjs +1221 -555
- package/fesm2022/acorex-modules-workplacesafety-management.mjs.map +1 -1
- package/package.json +18 -2
- package/types/acorex-modules-ai-management.d.ts +35 -34
- package/types/acorex-modules-application-management.d.ts +23 -47
- package/types/acorex-modules-assessment-management.d.ts +517 -511
- package/types/acorex-modules-asset-management.d.ts +96 -79
- package/types/acorex-modules-auth.d.ts +2 -9
- package/types/acorex-modules-business-core.d.ts +72 -64
- package/types/acorex-modules-calendar-management.d.ts +4 -4
- package/types/acorex-modules-common.d.ts +11 -117
- package/types/acorex-modules-contact-core.d.ts +70 -0
- package/types/acorex-modules-content-management.d.ts +24 -31
- package/types/acorex-modules-conversation.d.ts +74 -73
- package/types/acorex-modules-customer-management.d.ts +69 -55
- package/types/acorex-modules-dashboard-management.d.ts +64 -66
- package/types/acorex-modules-data-management-contracts.d.ts +256 -0
- package/types/acorex-modules-data-management.d.ts +100 -22
- package/types/acorex-modules-document-management.d.ts +47 -40
- package/types/acorex-modules-financial-core.d.ts +69 -69
- package/types/acorex-modules-form-template-management.d.ts +4 -2
- package/types/acorex-modules-health-core.d.ts +241 -29
- package/types/acorex-modules-help-desk.d.ts +44 -38
- package/types/acorex-modules-human-capital-management.d.ts +67 -54
- package/types/acorex-modules-jira-management.d.ts +354 -0
- package/types/acorex-modules-learning-management.d.ts +2 -2
- package/types/acorex-modules-locale-management-contracts.d.ts +66 -0
- package/types/acorex-modules-locale-management.d.ts +4 -4
- package/types/acorex-modules-location-management.d.ts +67 -67
- package/types/acorex-modules-maintenance-management.d.ts +45 -43
- package/types/acorex-modules-measurement-core.d.ts +106 -106
- package/types/acorex-modules-meeting-management.d.ts +31 -23
- package/types/acorex-modules-notification-management.d.ts +19 -20
- package/types/acorex-modules-order-management.d.ts +39 -39
- package/types/acorex-modules-organization-management.d.ts +137 -109
- package/types/acorex-modules-person-core.d.ts +73 -52
- package/types/acorex-modules-platform-management.d.ts +1 -3
- package/types/acorex-modules-procurement-management.d.ts +1 -3
- package/types/acorex-modules-product-catalog.d.ts +13 -6
- package/types/acorex-modules-project-management.d.ts +16 -15
- package/types/acorex-modules-report-management.d.ts +3 -4
- package/types/acorex-modules-reservation-management.d.ts +3 -3
- package/types/acorex-modules-risk-management.d.ts +57 -54
- package/types/acorex-modules-security-management.d.ts +65 -63
- package/types/acorex-modules-settings-management.d.ts +15 -1
- package/types/acorex-modules-subscription-management.d.ts +4 -3
- package/types/acorex-modules-supplier-management.d.ts +4 -4
- package/types/acorex-modules-system-insight.d.ts +4 -3
- package/types/acorex-modules-task-management.d.ts +95 -70
- package/types/acorex-modules-tenant-management.d.ts +5 -4
- package/types/acorex-modules-workflow-management.d.ts +23 -4
- package/types/acorex-modules-workplacesafety-management.d.ts +153 -16
- package/fesm2022/acorex-modules-ai-management-agent.entity-3ZBa5t2D.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-assist.entity-CeALRRoV.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-model.entity-DiDaXVa3.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-open-ai-endpoint.entity-CZLNKtl0.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-rule.entity-CQNx4QEB.mjs.map +0 -1
- package/fesm2022/acorex-modules-application-management-application-status.provider-CGRoY79H.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-yboYQ8I-.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-case-status.provider-B9sQAPwy.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-case.entity-BBWeshSs.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-session-answers-view.util-UCYBAHLk.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-session-status.provider-Lee6Cwg8.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-assessment-session.entity-Bp_dS1Js.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-VivCLw2H.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-preview-question.command-CKF4BjCx.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-preview-questionnaire.command-B_2o4jC2.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-s8KcR3D0.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-question-bank-item.entity-Sj-5woTX.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-ClvQ18w6.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-BbyNZvoc.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-review-assessment-session.command-B2QViI9d.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-view-session-answers.command-CWdBtkn1.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-rental-history-status.provider-BiWf2TwD.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-rental-history.entity-D7g3TSrr.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system-assignment.entity-ufjDJ-0D.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system-type.entity-DbeerQdD.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system.entity-0Fy7wSBh.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type-section-component.entity-OsuWeo2l.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type-section.entity-C6tA_OBh.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-Cjy7Xetu.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset.entity-D1HwzXL_.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-CUpNfm_0.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-profile-page.component-ChsI9B3Y.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-business-status.entity-BcfEL0kf.mjs +0 -139
- package/fesm2022/acorex-modules-business-core-business-status.entity-BcfEL0kf.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-business-type.entity-BP5XZthY.mjs +0 -139
- package/fesm2022/acorex-modules-business-core-business-type.entity-BP5XZthY.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-industry.entity-Byz8pFA7.mjs +0 -139
- package/fesm2022/acorex-modules-business-core-industry.entity-Byz8pFA7.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-manufacturer.entity-CKzGz3Ix.mjs +0 -286
- package/fesm2022/acorex-modules-business-core-manufacturer.entity-CKzGz3Ix.mjs.map +0 -1
- package/fesm2022/acorex-modules-content-management-acorex-modules-content-management-B5zqb3b_.mjs.map +0 -1
- package/fesm2022/acorex-modules-content-management-permission-definition.provider-DxI6NmP4.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-lPw23AJc.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-activity.entity-BENCtWk0.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-customer.entity-Doc1f5gH.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-deal-contact-role.entity-BmDALoWz.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-lead.entity-CH7iga2T.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-opportunity-stage.entity-gXGyRjOR.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-opportunity.entity-BX1vocD3.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-sales-pipeline.entity-TN7eqaA1.mjs.map +0 -1
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-D2TrYnCW.mjs.map +0 -1
- package/fesm2022/acorex-modules-dashboard-management-index-DAQNEq43.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-document-shortcut.entity-D3BI4azq.mjs +0 -30
- package/fesm2022/acorex-modules-document-management-document-shortcut.entity-D3BI4azq.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-CNWAvD6Z.mjs +0 -412
- package/fesm2022/acorex-modules-form-template-management-template.entity-CNWAvD6Z.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-allergy-type.entity-Ba06KigW.mjs +0 -68
- package/fesm2022/acorex-modules-health-core-allergy-type.entity-Ba06KigW.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-blood-type.entity-165JDo8r.mjs +0 -121
- package/fesm2022/acorex-modules-health-core-blood-type.entity-165JDo8r.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-body-part.entity-CGk798g1.mjs +0 -68
- package/fesm2022/acorex-modules-health-core-body-part.entity-CGk798g1.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-chronic-condition-type.entity-CHeAJ1Mm.mjs +0 -68
- package/fesm2022/acorex-modules-health-core-chronic-condition-type.entity-CHeAJ1Mm.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-disability-status.entity-DN5reubi.mjs +0 -121
- package/fesm2022/acorex-modules-health-core-disability-status.entity-DN5reubi.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-injury-type.entity-x9bs6Zly.mjs +0 -68
- package/fesm2022/acorex-modules-health-core-injury-type.entity-x9bs6Zly.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-vaccination-type.entity-DlQ4MQVm.mjs +0 -68
- package/fesm2022/acorex-modules-health-core-vaccination-type.entity-DlQ4MQVm.mjs.map +0 -1
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-B8de7ifz.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-CqROha3-.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-B0pyS4rY.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-assign-position-assignment.command-Dc0eoIAI.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-cancel-leave-request.command-TjMXVKCB.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-edit-signature.command-9psDoX-o.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-BRkS6cY0.mjs +0 -416
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-BRkS6cY0.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employment-type.entity-BZ1vVzeJ.mjs +0 -99
- package/fesm2022/acorex-modules-human-capital-management-employment-type.entity-BZ1vVzeJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-C_hKrBJ1.mjs +0 -292
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-C_hKrBJ1.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-1FFKAk-t.mjs +0 -95
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-1FFKAk-t.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event-type.entity-3zBc21d1.mjs +0 -121
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event-type.entity-3zBc21d1.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event.entity-CeE-5Dko.mjs +0 -226
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-event.entity-CeE-5Dko.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-BABjM2Mr.mjs +0 -267
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-BABjM2Mr.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-reject-leave-request.command-DHqsjUdQ.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-revoke-position-assignment.command-DQqsqBRM.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-start-leave-request-flow.command-nF6sDrFL.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-start-lifecycle-event-flow.command-Bya_9T7H.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-attendance.entity-40THDVHu.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-DzRELZ1L.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate-type.entity-Br35cJ-M.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate.entity-DA882F-J.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-course-type.entity-DAc4cRbW.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-course.entity-HoC-FUPB.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-enrollment.entity-D4j7oSWb.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-learning-path-course.entity-B0DurZqy.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-learning-path.entity-C-FcZefB.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-mandatory-training-rule.entity-CxsoSJh-.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill-level.entity-CnAgJyuR.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill.entity-DmIjc2gw.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training-definition.entity-DPY0OQdW.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training-type.entity-Bt37GacX.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training.entity-BkxK-rqz.mjs.map +0 -1
- package/fesm2022/acorex-modules-maintenance-management-failure-register-status.provider-B8-Snxbx.mjs.map +0 -1
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-B9Jp4r3m.mjs +0 -487
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-B9Jp4r3m.mjs.map +0 -1
- package/fesm2022/acorex-modules-meeting-management-meeting-schedule.entity-BJGUKFuu.mjs +0 -107
- package/fesm2022/acorex-modules-meeting-management-meeting-schedule.entity-BJGUKFuu.mjs.map +0 -1
- package/fesm2022/acorex-modules-notification-management-acorex-modules-notification-management-ZgxwReDF.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-bulk-buy-order-item.entity-DsXE-kqT.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-bulk-buy-order-status.provider-CECieSZF.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-bulk-buy-order.entity-B9f4Tppc.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-entity.provider-ZaDnKtBk.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-member-order-line.entity-BX3rQTJ1.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-member-order-status.provider-Bkrzylqm.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-member-order.entity-BItj1CLq.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY-BYfbGGOE.mjs +0 -8
- package/fesm2022/acorex-modules-organization-management-JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY-BYfbGGOE.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-Cl-ecmKK.mjs +0 -917
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-Cl-ecmKK.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-add-business-unit-to-business-unit.command-BUOpdwIy.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-add-position-to-business-unit.command-CcoGv5J7.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-add-team-to-business-unit.command-n9FYDyKE.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-business-unit.entity-LYKMuTLO.mjs +0 -404
- package/fesm2022/acorex-modules-organization-management-business-unit.entity-LYKMuTLO.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-chart.entity-BxAJonRP.mjs +0 -200
- package/fesm2022/acorex-modules-organization-management-chart.entity-BxAJonRP.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-Cexgxajh.mjs +0 -136
- package/fesm2022/acorex-modules-organization-management-company.entity-Cexgxajh.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-entity.provider-Dqn382Z2.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-feature-definition.provider-C7VhASKJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-definition-pages-component.provider-Bacrw4_J.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-definition-responsibilities-page.component-BJkc7c-G.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-definition-skills-page.component-GuFiBC0r.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-definition.entity-DsdjfMCs.mjs +0 -321
- package/fesm2022/acorex-modules-organization-management-job-definition.entity-DsdjfMCs.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-level.datasource-CCvVPEVM.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-level.entity-BrBHqHqn.mjs +0 -271
- package/fesm2022/acorex-modules-organization-management-job-level.entity-BrBHqHqn.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-menu.provider-BeCkTwia.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-default-node-contribution.provider-DDY2Cgu6.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-DbSxtEz6.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-ByqjxY2S.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-ux-node-contribution.provider-DdyF5QS0.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-DD1lvTXR.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-permission-definition.provider-CbXQwY_b.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-qwL31RSs.mjs +0 -543
- package/fesm2022/acorex-modules-organization-management-position.entity-qwL31RSs.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-remove-position-from-business-unit.command-B1mrTFbI.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix.component-CQ1RKj2l.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility-level.entity-DwpUOhLh.mjs +0 -135
- package/fesm2022/acorex-modules-organization-management-responsibility-level.entity-DwpUOhLh.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-3d2Im-NE.mjs +0 -203
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-3d2Im-NE.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-business-unit.entity-DdIc2pIC.mjs +0 -300
- package/fesm2022/acorex-modules-organization-management-team-business-unit.entity-DdIc2pIC.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-UqmN5-zL.mjs +0 -150
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-UqmN5-zL.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-member.entity-BlsBC7oU.mjs +0 -251
- package/fesm2022/acorex-modules-organization-management-team-member.entity-BlsBC7oU.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-rRp5rEKa.mjs +0 -307
- package/fesm2022/acorex-modules-organization-management-team.entity-rRp5rEKa.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-core-education-level.entity-BudWedmZ.mjs +0 -121
- package/fesm2022/acorex-modules-person-core-education-level.entity-BudWedmZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-core-gender.entity-BrnPFMd_.mjs +0 -121
- package/fesm2022/acorex-modules-person-core-gender.entity-BrnPFMd_.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-core-marital-status.entity-JSXaOaKH.mjs +0 -121
- package/fesm2022/acorex-modules-person-core-marital-status.entity-JSXaOaKH.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-core-person-identifier-type.entity-BwQ0fj61.mjs +0 -191
- package/fesm2022/acorex-modules-person-core-person-identifier-type.entity-BwQ0fj61.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-core-person-title.entity-DPEl0HTw.mjs +0 -121
- package/fesm2022/acorex-modules-person-core-person-title.entity-DPEl0HTw.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-core-religion.entity-DD1UG9on.mjs +0 -121
- package/fesm2022/acorex-modules-person-core-religion.entity-DD1UG9on.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-ilmoyxAw.mjs.map +0 -1
- package/fesm2022/acorex-modules-product-catalog-brand.entity-DLK1M-a5.mjs +0 -261
- package/fesm2022/acorex-modules-product-catalog-brand.entity-DLK1M-a5.mjs.map +0 -1
- package/fesm2022/acorex-modules-product-catalog-product-sku.entity-Dd43Ph0b.mjs +0 -596
- package/fesm2022/acorex-modules-product-catalog-product-sku.entity-Dd43Ph0b.mjs.map +0 -1
- package/fesm2022/acorex-modules-product-catalog-product.entity-CcLvq1uX.mjs +0 -668
- package/fesm2022/acorex-modules-product-catalog-product.entity-CcLvq1uX.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-Dum62tB8.mjs.map +0 -1
- package/fesm2022/acorex-modules-reservation-management-reservation-class-status.entity-CsOec92Y.mjs.map +0 -1
- package/fesm2022/acorex-modules-reservation-management-reservation-resource-type.entity-DiEkzSO2.mjs.map +0 -1
- package/fesm2022/acorex-modules-reservation-management-reservation-status-transition.entity-CSj9-uAb.mjs.map +0 -1
- package/fesm2022/acorex-modules-security-management-profile.entity-BSDeLsJ1.mjs +0 -168
- package/fesm2022/acorex-modules-security-management-profile.entity-BSDeLsJ1.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-acorex-modules-settings-management-e5asXiK4.mjs +0 -798
- package/fesm2022/acorex-modules-settings-management-acorex-modules-settings-management-e5asXiK4.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-permission-definition.provider-D5DqCfiz.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-page.component-TxoOyBRc.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-Bv7Ye6d1.mjs +0 -7564
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-Bv7Ye6d1.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-CfgeDnBx.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs +0 -5
- package/fesm2022/acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-LJ8Bb-CT.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-Bhx1tC1u.mjs +0 -255
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-Bhx1tC1u.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-automation.entity-C_WRtcFX.mjs +0 -279
- package/fesm2022/acorex-modules-workflow-management-automation.entity-C_WRtcFX.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index--D61tV-f.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-DXIQw3Ao.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-OK7e-UOe.mjs +0 -264
- package/fesm2022/acorex-modules-workflow-management-index-OK7e-UOe.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-huamhFhc.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-column.component-B0f5IsoE.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-configurator-widget-edit.component-DQ703kRI.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DFN7awRu.mjs +0 -313
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DFN7awRu.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-DcqLomn4.mjs +0 -256
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-DcqLomn4.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-run-history-popup.component-FLqOdI2t.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-Cvbzknxk.mjs.map +0 -1
- package/fesm2022/acorex-modules-workplacesafety-management-hazard-ppe-rule-status.provider-D1a0CBhs.mjs.map +0 -1
- package/fesm2022/acorex-modules-workplacesafety-management-hazard-status.provider-v1cFaa3q.mjs.map +0 -1
- package/fesm2022/acorex-modules-workplacesafety-management-ppe-item-status.provider-VH_Bp0l5.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AXPSystemStatuses } from '@acorex/platform/
|
|
1
|
+
import { AXPSystemStatuses } from '@acorex/platform/contracts';
|
|
2
2
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { inject, Injectable } from '@angular/core';
|
|
5
|
-
import { R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
5
|
+
import { R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
/**
|
|
@@ -56,4 +56,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
56
56
|
}] });
|
|
57
57
|
|
|
58
58
|
export { ApproveLeaveRequestCommand };
|
|
59
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-approve-leave-request.command-
|
|
59
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-approve-leave-request.command-8MwfTrgO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-approve-leave-request.command-8MwfTrgO.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/leave-request/commands/approve-leave-request.command.ts"],"sourcesContent":["import { AXPSystemStatuses } from '@acorex/platform/contracts';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\n\n//#region ---- Types ----\n\nexport interface ApproveLeaveRequestInput {\n id: string;\n reason?: string;\n note?: string;\n}\n\n//#endregion\n\n/**\n * Approve Leave Request Command\n * Updates the leave request status to Approved\n */\n@Injectable({ providedIn: 'root' })\nexport class ApproveLeaveRequestCommand implements AXPCommand<ApproveLeaveRequestInput, void> {\n //#region ---- Services ----\n\n private readonly entityService = inject(AXPEntityService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: ApproveLeaveRequestInput): Promise<AXPExecuteCommandResult<void>> {\n try {\n const dataAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data<string, any>();\n\n // Update the leave request status to Approved\n const updateData: any = {\n statusId: AXPSystemStatuses.Approved.name,\n };\n\n // Add reason/note if provided (these fields might not exist in entity model)\n if (input.reason) {\n updateData.reason = input.reason;\n }\n if (input.note) {\n updateData.note = input.note;\n }\n\n await dataAccessor.update(input.id, updateData);\n\n return {\n success: true,\n };\n } catch (error: any) {\n console.error('[ApproveLeaveRequestCommand] Error:', error);\n return {\n success: false,\n message: {\n text: error.message || 'Failed to approve leave request',\n },\n };\n }\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;;AAeA;AAEA;;;AAGG;MAEU,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AA0C1D,IAAA;;;IApCC,MAAM,OAAO,CAAC,KAA+B,EAAA;AAC3C,QAAA,IAAI;AACF,YAAA,MAAM,YAAY,GAAG,IAAI,CAAC;AACvB,iBAAA,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AACxE,iBAAA,IAAI,EAAe;;AAGtB,YAAA,MAAM,UAAU,GAAQ;AACtB,gBAAA,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC,IAAI;aAC1C;;AAGD,YAAA,IAAI,KAAK,CAAC,MAAM,EAAE;AAChB,gBAAA,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM;YAClC;AACA,YAAA,IAAI,KAAK,CAAC,IAAI,EAAE;AACd,gBAAA,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI;YAC9B;YAEA,MAAM,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,CAAC;YAE/C,OAAO;AACL,gBAAA,OAAO,EAAE,IAAI;aACd;QACH;QAAE,OAAO,KAAU,EAAE;AACnB,YAAA,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC;YAC3D,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;AACP,oBAAA,IAAI,EAAE,KAAK,CAAC,OAAO,IAAI,iCAAiC;AACzD,iBAAA;aACF;QACH;IACF;8GA1CW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -3,7 +3,7 @@ import { AXPCommandService } from '@acorex/platform/runtime';
|
|
|
3
3
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { inject, Injectable } from '@angular/core';
|
|
6
|
-
import { R as RootConfig, A as AXM_POSITION_ASSIGNMENT_STATUS } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
6
|
+
import { R as RootConfig, A as AXM_POSITION_ASSIGNMENT_STATUS } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
7
7
|
|
|
8
8
|
class AXMAssignPositionAssignmentCommand {
|
|
9
9
|
constructor() {
|
|
@@ -87,4 +87,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
87
87
|
}] });
|
|
88
88
|
|
|
89
89
|
export { AXMAssignPositionAssignmentCommand };
|
|
90
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-assign-position-assignment.command-
|
|
90
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-assign-position-assignment.command-DJft6ua8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-assign-position-assignment.command-DJft6ua8.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/organization-chart/commands/assign-position-assignment.command.ts"],"sourcesContent":["import { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPEntityDataSelectorService, AXPEntityDefinitionRegistryService } from '@acorex/platform/layout/entity';\nimport { AXPCommand, AXPCommandService } from '@acorex/platform/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { inject, Injectable } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\nimport { AXM_POSITION_ASSIGNMENT_STATUS } from '../../../contracts';\n\nexport interface AXMAssignPositionAssignmentInput {\n __context__?: {\n data?: Record<string, unknown>;\n };\n data?: Record<string, unknown>;\n employeeId?: string;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class AXMAssignPositionAssignmentCommand implements AXPCommand<AXMAssignPositionAssignmentInput, unknown> {\n private readonly commandService = inject(AXPCommandService);\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly entitySelector = inject(AXPEntityDataSelectorService);\n private readonly translationService = inject(AXTranslationService);\n\n private readonly positionAssignmentSource = RootConfig.entities.positionAssignment.source;\n private readonly positionAssignmentEntityInfo = {\n module: RootConfig.module.name,\n name: RootConfig.entities.positionAssignment.name,\n title: RootConfig.entities.positionAssignment.title,\n };\n\n async execute(input: AXMAssignPositionAssignmentInput): Promise<AXPExecuteCommandResult<unknown>> {\n const payload = {\n ...((input?.__context__?.data ?? input?.data ?? {}) as Record<string, unknown>),\n };\n const rawEmployeeId = (input?.employeeId ?? payload['employeeId']) as string | undefined;\n const employeeId = rawEmployeeId && rawEmployeeId.trim().length > 0 ? rawEmployeeId : await this.selectEmployeeId();\n if (!employeeId) {\n return { success: false };\n }\n payload['employeeId'] = employeeId;\n payload['statusId'] = this.resolveStatusId(payload['startDate'], payload['endDate']);\n\n return (\n await this.commandService.execute('Entity:Create', {\n __context__: {\n entity: this.positionAssignmentSource,\n entityInfo: this.positionAssignmentEntityInfo,\n data: payload,\n options: {\n process: {\n redirect: false,\n },\n },\n },\n })\n ) ?? { success: false };\n }\n\n private async selectEmployeeId(): Promise<string | undefined> {\n const employeeEntity = await this.entityRegistry.resolve(RootConfig.module.name, RootConfig.entities.employee.name);\n if (!employeeEntity) {\n return undefined;\n }\n\n const title = await this.translationService.translateAsync(\n '@human-capital-management:organization-chart.node-actions.select-employee',\n );\n const result = await this.entitySelector.open({\n entity: employeeEntity,\n title,\n allowMultiple: false,\n columns: ['person.fullName', 'employeeCode'],\n });\n\n const selected = result?.items?.[0];\n const selectedId = selected?.['id'] ?? selected?.['_id'];\n return typeof selectedId === 'string' && selectedId.trim().length > 0 ? selectedId : undefined;\n }\n\n private resolveStatusId(startDate: unknown, endDate: unknown): string {\n const nowTime = Date.now();\n const startTime = this.parseTime(startDate);\n const endTime = this.parseTime(endDate);\n if (endTime !== undefined && endTime <= nowTime) {\n return AXM_POSITION_ASSIGNMENT_STATUS.expired;\n }\n if (startTime !== undefined && startTime > nowTime) {\n return AXM_POSITION_ASSIGNMENT_STATUS.scheduled;\n }\n return AXM_POSITION_ASSIGNMENT_STATUS.active;\n }\n\n private parseTime(value: unknown): number | undefined {\n if (!value) {\n return undefined;\n }\n const dateValue = value instanceof Date ? value : new Date(String(value));\n const time = dateValue.getTime();\n return Number.isFinite(time) ? time : undefined;\n }\n}\n\n"],"names":[],"mappings":";;;;;;;MAiBa,kCAAkC,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC1C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kCAAkC,CAAC;AAC3D,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,4BAA4B,CAAC;AACrD,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,C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O,EAAE;YAC/C,OAAO,8BAA8B,CAAC,OAAO;QAC/C;QACA,IAAI,SAAS,KAAK,SAAS,IAAI,SAAS,GAAG,OAAO,EAAE;YAClD,OAAO,8BAA8B,CAAC,SAAS;QACjD;QACA,OAAO,8BAA8B,CAAC,MAAM;IAC9C;AAEQ,IAAA,SAAS,CAAC,KAAc,EAAA;QAC9B,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,OAAO,SAAS;QAClB;QACA,MAAM,SAAS,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACzE,QAAA,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,EAAE;AAChC,QAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS;IACjD;8GAlFW,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kCAAkC,cADrB,MAAM,EAAA,CAAA,CAAA;;2FACnB,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAD9C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AXPSystemStatuses } from '@acorex/platform/
|
|
1
|
+
import { AXPSystemStatuses } from '@acorex/platform/contracts';
|
|
2
2
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { inject, Injectable } from '@angular/core';
|
|
5
|
-
import { R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
5
|
+
import { R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
/**
|
|
@@ -56,4 +56,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
56
56
|
}] });
|
|
57
57
|
|
|
58
58
|
export { CancelLeaveRequestCommand };
|
|
59
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-cancel-leave-request.command-
|
|
59
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-cancel-leave-request.command-r5zEA5Oa.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-cancel-leave-request.command-r5zEA5Oa.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/leave-request/commands/cancel-leave-request.command.ts"],"sourcesContent":["import { AXPSystemStatuses } from '@acorex/platform/contracts';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\n\n//#region ---- Types ----\n\nexport interface CancelLeaveRequestInput {\n id: string;\n reason?: string;\n note?: string;\n}\n\n//#endregion\n\n/**\n * Cancel Leave Request Command\n * Updates the leave request status to Cancelled\n */\n@Injectable({ providedIn: 'root' })\nexport class CancelLeaveRequestCommand implements AXPCommand<CancelLeaveRequestInput, void> {\n //#region ---- Services ----\n\n private readonly entityService = inject(AXPEntityService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: CancelLeaveRequestInput): Promise<AXPExecuteCommandResult<void>> {\n try {\n const dataAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data<string, any>();\n\n // Update the leave request status to Cancelled\n const updateData: any = {\n statusId: AXPSystemStatuses.Cancelled.name,\n };\n\n // Add reason/note if provided (these fields might not exist in entity model)\n if (input.reason) {\n updateData.reason = input.reason;\n }\n if (input.note) {\n updateData.note = input.note;\n }\n\n await dataAccessor.update(input.id, updateData);\n\n return {\n success: true,\n };\n } catch (error: any) {\n console.error('[CancelLeaveRequestCommand] Error:', error);\n return {\n success: false,\n message: {\n text: error.message || 'Failed to cancel leave request',\n },\n };\n }\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;;AAeA;AAEA;;;AAGG;MAEU,yBAAyB,CAAA;AADtC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AA0C1D,IAAA;;;IApCC,MAAM,OAAO,CAAC,KAA8B,EAAA;AAC1C,QAAA,IAAI;AACF,YAAA,MAAM,YAAY,GAAG,IAAI,CAAC;AACvB,iBAAA,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AACxE,iBAAA,IAAI,EAAe;;AAGtB,YAAA,MAAM,UAAU,GAAQ;AACtB,gBAAA,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,IAAI;aAC3C;;AAGD,YAAA,IAAI,KAAK,CAAC,MAAM,EAAE;AAChB,gBAAA,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM;YAClC;AACA,YAAA,IAAI,KAAK,CAAC,IAAI,EAAE;AACd,gBAAA,UAAU,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI;YAC9B;YAEA,MAAM,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,CAAC;YAE/C,OAAO;AACL,gBAAA,OAAO,EAAE,IAAI;aACd;QACH;QAAE,OAAO,KAAU,EAAE;AACnB,YAAA,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC;YAC1D,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;AACP,oBAAA,IAAI,EAAE,KAAK,CAAC,OAAO,IAAI,gCAAgC;AACxD,iBAAA;aACF;QACH;IACF;8GA1CW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -7,7 +7,7 @@ import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { inject, Injectable } from '@angular/core';
|
|
9
9
|
import { trim, isNil, isEmpty, cloneDeep, defaultTo, isArray, isString, isObject } from 'lodash-es';
|
|
10
|
-
import { b as AXMHcmProfileContextService } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
10
|
+
import { b as AXMHcmProfileContextService } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
11
11
|
import { AXPUserProfileIdentityService } from '@acorex/modules/auth';
|
|
12
12
|
import { RootConfig } from '@acorex/modules/security-management';
|
|
13
13
|
|
|
@@ -243,4 +243,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
243
243
|
}] });
|
|
244
244
|
|
|
245
245
|
export { AXMHcmEditPersonalInfoCommand };
|
|
246
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-edit-personal-info.command-
|
|
246
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-edit-personal-info.command-CTQywAzz.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-modules-human-capital-management-edit-personal-info.command-uCNZW1KF.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/profile-page/sync-user-from-person.service.ts","../../../../libs/modules/human-capital-management/src/lib/features/profile-page/commands/edit-personal-info.command.ts"],"sourcesContent":["import { AXPUserProfileIdentityService } from '@acorex/modules/auth';\nimport {\n RootConfig as SecurityManagementRootConfig,\n AXMSecurityManagementUsersEntityModel,\n} from '@acorex/modules/security-management';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { trim } from 'lodash-es';\n\n//#region ---- Sync payload ----\n\nexport interface AXMHcmSyncUserFromPersonInput {\n firstName: string;\n lastName: string;\n image?: string;\n}\n\n//#endregion\n\n//#region ---- Sync user from person service ----\n\n/**\n * Keeps the application user record and session display fields aligned with person identity updates.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmSyncUserFromPersonService {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly identityService = inject(AXPUserProfileIdentityService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async sync(userId: string, person: AXMHcmSyncUserFromPersonInput): Promise<void> {\n const displayName = trim(`${person.firstName} ${person.lastName}`);\n if (!displayName) {\n return;\n }\n\n const userData = this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>();\n\n await userData.update(userId, { displayName });\n\n await this.identityService.applySessionPatch({\n title: displayName,\n ...(person.image !== undefined ? { avatar: person.image } : {}),\n });\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport { RootConfig as PersonCoreRootConfig, AXMPersonCorePersonEntityModel } from '@acorex/modules/person-core';\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 { inject, Injectable } from '@angular/core';\nimport { cloneDeep, defaultTo, isArray, isEmpty, isNil, isObject, isString, trim } from 'lodash-es';\n\nimport { AXMHcmProfileContextService } from '../profile-context.service';\nimport { AXMHcmSyncUserFromPersonService } from '../sync-user-from-person.service';\n\n//#region ---- Repeater children (aligned with Person entity) ----\n\nconst PHONES_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n path: 'value',\n name: 'value',\n options: {\n type: 'phone',\n placeholder: '@person-core:persons.entities.person.fields.phone.placeholder',\n },\n },\n];\n\nconst EMAILS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n path: 'value',\n name: 'value',\n options: {\n type: 'email',\n placeholder: '@person-core:persons.entities.person.fields.email.placeholder',\n },\n },\n];\n\n//#endregion\n\n//#region ---- Form context ----\n\ninterface AXMHcmEditPersonalInfoFormContext {\n firstName: string;\n lastName: string;\n phones: Array<{ value: string; label?: string }>;\n emails: Array<{ value: string; label?: string }>;\n}\n\n//#endregion\n\n//#region ---- Edit personal info command ----\n\n/** Opens a self-service dialog to update the linked person record and sync user display fields. */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmEditPersonalInfoCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly profileContextService = inject(AXMHcmProfileContextService);\n private readonly syncUserService = inject(AXMHcmSyncUserFromPersonService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): Promise<AXPExecuteCommandResult<void>> {\n const profileContext = await this.profileContextService.resolve();\n if (isNil(profileContext)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.no-employee',\n ),\n },\n };\n }\n\n const personData = this.entityService\n .withEntity(PersonCoreRootConfig.module.name, PersonCoreRootConfig.entities.person.name)\n .data<string, AXMPersonCorePersonEntityModel>();\n\n const person = await personData.byKey(profileContext.personId);\n if (isNil(person)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.person-not-found',\n ),\n },\n };\n }\n\n const dialogTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPExecuteCommandResult<void>>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('lg')\n .setCloseButton(true)\n .setContext(this.buildFormContext(person))\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField('@general:terms.contact.first-name', (field) => {\n field.path('firstName');\n field.textBox({\n placeholder: '@general:terms.contact.first-name',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@general:terms.contact.last-name', (field) => {\n field.path('lastName');\n field.textBox({\n placeholder: '@general:terms.contact.last-name',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@person-core:persons.entities.person.groups.phones', (field) => {\n field.path('phones');\n field.customWidget(AXPWidgetsList.Layouts.RepeaterLayout, {\n hasControls: true,\n children: PHONES_REPEATER_CHILDREN,\n });\n })\n .formField('@person-core:persons.entities.person.groups.emails', (field) => {\n field.path('emails');\n field.customWidget(AXPWidgetsList.Layouts.RepeaterLayout, {\n hasControls: true,\n children: EMAILS_REPEATER_CHILDREN,\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const form = dialogRef.context() as AXMHcmEditPersonalInfoFormContext;\n const firstName = trim(form.firstName);\n const lastName = trim(form.lastName);\n\n if (isEmpty(firstName) || isEmpty(lastName)) {\n await this.showError(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.required-name',\n );\n throw new Error('First name and last name are required');\n }\n\n dialogRef.setLoading(true);\n try {\n const phones = this.normalizeContactItems(form.phones);\n const emails = this.normalizeContactItems(form.emails);\n\n await personData.update(profileContext.personId, {\n firstName,\n lastName,\n phones,\n emails,\n });\n\n await this.syncUserService.sync(profileContext.userId, {\n firstName,\n lastName,\n image: person.image,\n });\n\n const successTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return { success: true };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n return result ?? { success: false };\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private buildFormContext(person: AXMPersonCorePersonEntityModel): AXMHcmEditPersonalInfoFormContext {\n return {\n firstName: defaultTo(person.firstName, ''),\n lastName: defaultTo(person.lastName, ''),\n phones: cloneDeep(defaultTo(person.phones, [])),\n emails: cloneDeep(defaultTo(person.emails, [])),\n };\n }\n\n /** Normalizes repeater contact rows to `{ value: string }[]`, matching Person entity storage. */\n private normalizeContactItems(items: unknown): Array<{ value: string }> {\n if (!isArray(items)) {\n return [];\n }\n\n return items\n .map((entry) => this.normalizeContactEntry(entry))\n .filter((entry) => !isEmpty(entry.value));\n }\n\n private normalizeContactEntry(entry: unknown): { value: string } {\n if (isString(entry)) {\n return { value: trim(entry) };\n }\n\n if (!isObject(entry) || isNil(entry)) {\n return { value: '' };\n }\n\n const record = entry as { value?: unknown; label?: string };\n const inner = record.value;\n\n if (isObject(inner) && !isNil(inner) && 'value' in inner) {\n const nested = inner as { value?: unknown };\n return { value: trim(String(nested.value ?? '')) };\n }\n\n return { value: trim(String(record.value ?? '')) };\n }\n\n private async showError(messageKey: string): Promise<void> {\n const content = await this.translateService.translateAsync(messageKey);\n const title = await this.translateService.translateAsync('@general:messages.generic.error.title');\n this.toastService.show({ color: 'danger', title, content, closeButton: true });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig","PersonCoreRootConfig"],"mappings":";;;;;;;;;;;;;AAiBA;AAEA;AAEA;;AAEG;MAEU,+BAA+B,CAAA;AAD5C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,6BAA6B,CAAC;AA4BzE,IAAA;;;AAtBC,IAAA,MAAM,IAAI,CAAC,MAAc,EAAE,MAAqC,EAAA;AAC9D,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,SAAS,CAAA,CAAA,EAAI,MAAM,CAAC,QAAQ,CAAA,CAAE,CAAC;QAClE,IAAI,CAAC,WAAW,EAAE;YAChB;QACF;AAEA,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC;AACnB,aAAA,UAAU,CACTA,UAA4B,CAAC,MAAM,CAAC,IAAI,EACxCA,UAA4B,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AAEjD,aAAA,IAAI,EAAiD;QAExD,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC;AAE9C,QAAA,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,CAAC;AAC3C,YAAA,KAAK,EAAE,WAAW;YAClB,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;AAChE,SAAA,CAAC;IACJ;8GA7BW,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,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,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cADhB,MAAM,EAAA,CAAA,CAAA;;2FACnB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-edit-personal-info.command-CTQywAzz.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/profile-page/sync-user-from-person.service.ts","../../../../libs/modules/human-capital-management/src/lib/features/profile-page/commands/edit-personal-info.command.ts"],"sourcesContent":["import { AXPUserProfileIdentityService } from '@acorex/modules/auth';\nimport {\n RootConfig as SecurityManagementRootConfig,\n AXMSecurityManagementUsersEntityModel,\n} from '@acorex/modules/security-management';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { trim } from 'lodash-es';\n\n//#region ---- Sync payload ----\n\nexport interface AXMHcmSyncUserFromPersonInput {\n firstName: string;\n lastName: string;\n image?: string;\n}\n\n//#endregion\n\n//#region ---- Sync user from person service ----\n\n/**\n * Keeps the application user record and session display fields aligned with person identity updates.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmSyncUserFromPersonService {\n //#region ---- Services & Dependencies ----\n\n private readonly entityService = inject(AXPEntityService);\n private readonly identityService = inject(AXPUserProfileIdentityService);\n\n //#endregion\n\n //#region ---- Public API ----\n\n async sync(userId: string, person: AXMHcmSyncUserFromPersonInput): Promise<void> {\n const displayName = trim(`${person.firstName} ${person.lastName}`);\n if (!displayName) {\n return;\n }\n\n const userData = this.entityService\n .withEntity(\n SecurityManagementRootConfig.module.name,\n SecurityManagementRootConfig.entities.users.name,\n )\n .data<string, AXMSecurityManagementUsersEntityModel>();\n\n await userData.update(userId, { displayName });\n\n await this.identityService.applySessionPatch({\n title: displayName,\n ...(person.image !== undefined ? { avatar: person.image } : {}),\n });\n }\n\n //#endregion\n}\n\n//#endregion\n","import { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPWidgetsList } from '@acorex/modules/common';\nimport { RootConfig as PersonCoreRootConfig, AXMPersonCorePersonEntityModel } from '@acorex/modules/person-core';\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 { inject, Injectable } from '@angular/core';\nimport { cloneDeep, defaultTo, isArray, isEmpty, isNil, isObject, isString, trim } from 'lodash-es';\n\nimport { AXMHcmProfileContextService } from '../profile-context.service';\nimport { AXMHcmSyncUserFromPersonService } from '../sync-user-from-person.service';\n\n//#region ---- Repeater children (aligned with Person entity) ----\n\nconst PHONES_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n path: 'value',\n name: 'value',\n options: {\n type: 'phone',\n placeholder: '@person-core:persons.entities.person.fields.phone.placeholder',\n },\n },\n];\n\nconst EMAILS_REPEATER_CHILDREN = [\n {\n type: AXPWidgetsList.Editors.ContactBox,\n mode: 'edit' as const,\n path: 'value',\n name: 'value',\n options: {\n type: 'email',\n placeholder: '@person-core:persons.entities.person.fields.email.placeholder',\n },\n },\n];\n\n//#endregion\n\n//#region ---- Form context ----\n\ninterface AXMHcmEditPersonalInfoFormContext {\n firstName: string;\n lastName: string;\n phones: Array<{ value: string; label?: string }>;\n emails: Array<{ value: string; label?: string }>;\n}\n\n//#endregion\n\n//#region ---- Edit personal info command ----\n\n/** Opens a self-service dialog to update the linked person record and sync user display fields. */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmEditPersonalInfoCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly layoutBuilder = inject(AXPLayoutBuilderService);\n private readonly entityService = inject(AXPEntityService);\n private readonly profileContextService = inject(AXMHcmProfileContextService);\n private readonly syncUserService = inject(AXMHcmSyncUserFromPersonService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): Promise<AXPExecuteCommandResult<void>> {\n const profileContext = await this.profileContextService.resolve();\n if (isNil(profileContext)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.no-employee',\n ),\n },\n };\n }\n\n const personData = this.entityService\n .withEntity(PersonCoreRootConfig.module.name, PersonCoreRootConfig.entities.person.name)\n .data<string, AXMPersonCorePersonEntityModel>();\n\n const person = await personData.byKey(profileContext.personId);\n if (isNil(person)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.person-not-found',\n ),\n },\n };\n }\n\n const dialogTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.dialog.title',\n );\n\n const result = await this.layoutBuilder\n .create()\n .dialog<AXPExecuteCommandResult<void>>((dialog) => {\n dialog\n .setTitle(dialogTitle)\n .setSize('lg')\n .setCloseButton(true)\n .setContext(this.buildFormContext(person))\n .content((layout) => {\n layout.flex((flex) => {\n flex\n .setDirection('column')\n .setGap('1rem')\n .formField('@general:terms.contact.first-name', (field) => {\n field.path('firstName');\n field.textBox({\n placeholder: '@general:terms.contact.first-name',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@general:terms.contact.last-name', (field) => {\n field.path('lastName');\n field.textBox({\n placeholder: '@general:terms.contact.last-name',\n validations: [{ rule: 'required' }],\n });\n })\n .formField('@person-core:persons.entities.person.groups.phones', (field) => {\n field.path('phones');\n field.customWidget(AXPWidgetsList.Layouts.RepeaterLayout, {\n hasControls: true,\n children: PHONES_REPEATER_CHILDREN,\n });\n })\n .formField('@person-core:persons.entities.person.groups.emails', (field) => {\n field.path('emails');\n field.customWidget(AXPWidgetsList.Layouts.RepeaterLayout, {\n hasControls: true,\n children: EMAILS_REPEATER_CHILDREN,\n });\n });\n });\n })\n .setActions((actions) => {\n actions.cancel('@general:actions.cancel.title');\n actions.submit('@general:actions.save.title');\n })\n .onAction(async (dialogRef) => {\n if (dialogRef.action() === 'cancel') {\n return { success: false };\n }\n\n const form = dialogRef.context() as AXMHcmEditPersonalInfoFormContext;\n const firstName = trim(form.firstName);\n const lastName = trim(form.lastName);\n\n if (isEmpty(firstName) || isEmpty(lastName)) {\n await this.showError(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.required-name',\n );\n throw new Error('First name and last name are required');\n }\n\n dialogRef.setLoading(true);\n try {\n const phones = this.normalizeContactItems(form.phones);\n const emails = this.normalizeContactItems(form.emails);\n\n await personData.update(profileContext.personId, {\n firstName,\n lastName,\n phones,\n emails,\n });\n\n await this.syncUserService.sync(profileContext.userId, {\n firstName,\n lastName,\n image: person.image,\n });\n\n const successTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-personal-info.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n dialogRef.close();\n return { success: true };\n } finally {\n dialogRef.setLoading(false);\n }\n });\n })\n .show();\n\n return result ?? { success: false };\n }\n\n //#endregion\n\n //#region ---- Utility Methods ----\n\n private buildFormContext(person: AXMPersonCorePersonEntityModel): AXMHcmEditPersonalInfoFormContext {\n return {\n firstName: defaultTo(person.firstName, ''),\n lastName: defaultTo(person.lastName, ''),\n phones: cloneDeep(defaultTo(person.phones, [])),\n emails: cloneDeep(defaultTo(person.emails, [])),\n };\n }\n\n /** Normalizes repeater contact rows to `{ value: string }[]`, matching Person entity storage. */\n private normalizeContactItems(items: unknown): Array<{ value: string }> {\n if (!isArray(items)) {\n return [];\n }\n\n return items\n .map((entry) => this.normalizeContactEntry(entry))\n .filter((entry) => !isEmpty(entry.value));\n }\n\n private normalizeContactEntry(entry: unknown): { value: string } {\n if (isString(entry)) {\n return { value: trim(entry) };\n }\n\n if (!isObject(entry) || isNil(entry)) {\n return { value: '' };\n }\n\n const record = entry as { value?: unknown; label?: string };\n const inner = record.value;\n\n if (isObject(inner) && !isNil(inner) && 'value' in inner) {\n const nested = inner as { value?: unknown };\n return { value: trim(String(nested.value ?? '')) };\n }\n\n return { value: trim(String(record.value ?? '')) };\n }\n\n private async showError(messageKey: string): Promise<void> {\n const content = await this.translateService.translateAsync(messageKey);\n const title = await this.translateService.translateAsync('@general:messages.generic.error.title');\n this.toastService.show({ color: 'danger', title, content, closeButton: true });\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":["SecurityManagementRootConfig","PersonCoreRootConfig"],"mappings":";;;;;;;;;;;;;AAiBA;AAEA;AAEA;;AAEG;MAEU,+BAA+B,CAAA;AAD5C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,6BAA6B,CAAC;AA4BzE,IAAA;;;AAtBC,IAAA,MAAM,IAAI,CAAC,MAAc,EAAE,MAAqC,EAAA;AAC9D,QAAA,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,SAAS,CAAA,CAAA,EAAI,MAAM,CAAC,QAAQ,CAAA,CAAE,CAAC;QAClE,IAAI,CAAC,WAAW,EAAE;YAChB;QACF;AAEA,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC;AACnB,aAAA,UAAU,CACTA,UAA4B,CAAC,MAAM,CAAC,IAAI,EACxCA,UAA4B,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI;AAEjD,aAAA,IAAI,EAAiD;QAExD,MAAM,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,CAAC;AAE9C,QAAA,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,CAAC;AAC3C,YAAA,KAAK,EAAE,WAAW;YAClB,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,GAAG,EAAE,MAAM,EAAE,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EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAChF;8GAhMW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cADhB,MAAM,EAAA,CAAA,CAAA;;2FACnB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -5,7 +5,7 @@ import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { inject, Injectable } from '@angular/core';
|
|
7
7
|
import { isNil, defaultTo, isEmpty, trim } from 'lodash-es';
|
|
8
|
-
import { b as AXMHcmProfileContextService, R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
8
|
+
import { b as AXMHcmProfileContextService, R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
9
9
|
|
|
10
10
|
//#region ---- Edit signature command ----
|
|
11
11
|
/** Opens the shared signature editor for the current employee record. */
|
|
@@ -72,4 +72,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
72
72
|
}] });
|
|
73
73
|
|
|
74
74
|
export { AXMHcmEditSignatureCommand };
|
|
75
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-edit-signature.command-
|
|
75
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-edit-signature.command-9XI2V0Yt.mjs.map
|
package/fesm2022/acorex-modules-human-capital-management-edit-signature.command-9XI2V0Yt.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-edit-signature.command-9XI2V0Yt.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/profile-page/commands/edit-signature.command.ts"],"sourcesContent":["import { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPSignatureEditorService } from '@acorex/platform/layout/components';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { inject, Injectable } from '@angular/core';\nimport { defaultTo, isEmpty, isNil, trim } from 'lodash-es';\n\nimport { RootConfig } from '../../../contracts';\nimport { AXMHumanCapitalManagementEmployeeEntityModel } from '../../../entities/employee/employee.types';\nimport { AXMHcmProfileContextService } from '../profile-context.service';\n\n//#region ---- Edit signature command ----\n\n/** Opens the shared signature editor for the current employee record. */\n@Injectable({ providedIn: 'root' })\nexport class AXMHcmEditSignatureCommand implements AXPCommand {\n //#region ---- Services & Dependencies ----\n\n private readonly signatureEditorService = inject(AXPSignatureEditorService);\n private readonly entityService = inject(AXPEntityService);\n private readonly profileContextService = inject(AXMHcmProfileContextService);\n private readonly toastService = inject(AXToastService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ---- Command ----\n\n async execute(): Promise<AXPExecuteCommandResult<void>> {\n const profileContext = await this.profileContextService.resolve();\n if (isNil(profileContext)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-signature.messages.no-employee',\n ),\n },\n };\n }\n\n const employeeData = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.employee.name)\n .data<string, AXMHumanCapitalManagementEmployeeEntityModel>();\n\n const employee = await employeeData.byKey(profileContext.employeeId);\n if (isNil(employee)) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-signature.messages.employee-not-found',\n ),\n },\n };\n }\n\n const existingSignature = defaultTo(employee.signature, '');\n const submitActionKey = isEmpty(existingSignature)\n ? '@general:actions.save.title'\n : '@general:actions.update.title';\n\n const dialogTitle = await this.translateService.translateAsync(\n '@human-capital-management:profile-page.commands.edit-signature.dialog.title',\n );\n\n const result = await this.signatureEditorService.open({\n title: dialogTitle,\n value: existingSignature,\n submitActionKey,\n });\n\n if (result.action === 'cancel') {\n return { success: false };\n }\n\n const signature = trim(defaultTo(result.value, ''));\n await employeeData.update(profileContext.employeeId, { signature });\n\n const successTitle = await this.translateService.translateAsync(\n isEmpty(signature)\n ? '@human-capital-management:profile-page.commands.edit-signature.messages.removed'\n : '@human-capital-management:profile-page.commands.edit-signature.messages.success',\n );\n this.toastService.show({ color: 'success', title: successTitle });\n return { success: true };\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;AAaA;AAEA;MAEa,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,sBAAsB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC1D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,qBAAqB,GAAG,MAAM,CAAC,2BAA2B,CAAC;AAC3D,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAmEjE,IAAA;;;AA7DC,IAAA,MAAM,OAAO,GAAA;QACX,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE;AACjE,QAAA,IAAI,KAAK,CAAC,cAAc,CAAC,EAAE;YACzB,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;oBACP,IAAI,EAAE,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAC9C,qFAAqF,CACtF;AACF,iBAAA;aACF;Q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AC,cAAc,CAC7D,OAAO,CAAC,SAAS;AACf,cAAE;cACA,iFAAiF,CACtF;AACD,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACjE,QAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;IAC1B;8GAvEW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cADb,MAAM,EAAA,CAAA,CAAA;;2FACnB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AXPSystemStatuses } from '@acorex/platform/
|
|
1
|
+
import { AXPSystemStatuses } from '@acorex/platform/contracts';
|
|
2
2
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { inject, Injectable } from '@angular/core';
|
|
5
|
-
import { R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
5
|
+
import { R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
/**
|
|
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
59
59
|
}] });
|
|
60
60
|
|
|
61
61
|
export { RejectLeaveRequestCommand };
|
|
62
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-reject-leave-request.command-
|
|
62
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-reject-leave-request.command-Ba2f-i0A.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-reject-leave-request.command-Ba2f-i0A.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/leave-request/commands/reject-leave-request.command.ts"],"sourcesContent":["import { AXPSystemStatuses } from '@acorex/platform/contracts';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\n\n//#region ---- Types ----\n\nexport interface RejectLeaveRequestInput {\n id: string;\n reason?: string;\n note?: string;\n}\n\n//#endregion\n\n/**\n * Reject Leave Request Command\n * Updates the leave request status to Rejected\n */\n@Injectable({ providedIn: 'root' })\nexport class RejectLeaveRequestCommand implements AXPCommand<RejectLeaveRequestInput, void> {\n //#region ---- Services ----\n\n private readonly entityService = inject(AXPEntityService);\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: RejectLeaveRequestInput): Promise<AXPExecuteCommandResult<void>> {\n try {\n console.log('[RejectLeaveRequestCommand] Executing with input:', input);\n\n const dataAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data<string, any>();\n\n // Update the leave request status to Rejected\n const updateData: any = {\n statusId: AXPSystemStatuses.Rejected.name,\n };\n\n // Add reason/note if provided (these fields might not exist in entity model)\n if (input.reason) {\n updateData.reason = input.reason;\n }\n if (input.note) {\n updateData.note = input.note;\n }\n\n console.log('[RejectLeaveRequestCommand] Updating entity with:', updateData);\n\n await dataAccessor.update(input.id, updateData);\n\n console.log('[RejectLeaveRequestCommand] Update successful');\n\n return {\n success: true,\n };\n } catch (error: any) {\n console.error('[RejectLeaveRequestCommand] Error:', error);\n return {\n success: false,\n message: {\n text: error.message || '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AK,CAAC,OAAO,IAAI,gCAAgC;AACxD,iBAAA;aACF;QACH;IACF;8GAhDW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -3,7 +3,7 @@ import { AXTranslationService } from '@acorex/core/translation';
|
|
|
3
3
|
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
5
|
import { inject, Injectable } from '@angular/core';
|
|
6
|
-
import { A as AXM_POSITION_ASSIGNMENT_STATUS, R as RootConfig, a as AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-
|
|
6
|
+
import { A as AXM_POSITION_ASSIGNMENT_STATUS, R as RootConfig, a as AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
7
7
|
|
|
8
8
|
class AXMRevokePositionAssignmentByIdCommand {
|
|
9
9
|
constructor() {
|
|
@@ -105,4 +105,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
105
105
|
}] });
|
|
106
106
|
|
|
107
107
|
export { AXMRevokePositionAssignmentByIdCommand };
|
|
108
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-revoke-position-assignment.command-
|
|
108
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-revoke-position-assignment.command-g9p7YKJ1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-revoke-position-assignment.command-g9p7YKJ1.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/organization-chart/commands/revoke-position-assignment.command.ts"],"sourcesContent":["import { AXDataSourceFilterOption } from '@acorex/cdk/common';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport { inject, Injectable } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\nimport {\n AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS,\n AXM_POSITION_ASSIGNMENT_STATUS,\n} from '../../../contracts';\n\nexport interface AXMRevokePositionAssignmentByIdInput {\n __context__?: {\n data?: unknown;\n };\n data?: unknown;\n id?: unknown;\n positionId?: string;\n employeeId?: string;\n businessUnitId?: string;\n /** When true, do not show the revoke confirmation (caller already confirmed). */\n skipConfirmation?: boolean;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class AXMRevokePositionAssignmentByIdCommand\n implements AXPCommand<AXMRevokePositionAssignmentByIdInput, { revokedCount: number }>\n{\n private readonly dialogService = inject(AXDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly entityService = inject(AXPEntityService);\n\n async execute(\n input: AXMRevokePositionAssignmentByIdInput,\n ): Promise<AXPExecuteCommandResult<{ revokedCount: number }>> {\n let ids = this.extractIds(input);\n if (!ids.length && input.positionId && input.employeeId) {\n ids = await this.findOverlappingLifecycleAssignmentIds(\n input.positionId,\n input.employeeId,\n input.businessUnitId,\n );\n }\n if (!ids.length) {\n if (input.skipConfirmation) {\n return { success: true, data: { revokedCount: 0 } };\n }\n return { success: false };\n }\n\n if (!input.skipConfirmation) {\n const confirmed = await this.confirmRevoke();\n if (!confirmed) {\n return { success: false };\n }\n }\n\n const payload: Record<string, unknown> = {\n endDate: new Date().toISOString(),\n statusId: AXM_POSITION_ASSIGNMENT_STATUS.revoked,\n };\n const data = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.positionAssignment.name)\n .data();\n for (const id of ids) {\n await data.update(id, payload as never);\n }\n\n return { success: true, data: { revokedCount: ids.length } };\n }\n\n private async confirmRevoke(): Promise<boolean> {\n const title = await this.translationService.translateAsync(\n '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.confirm.title',\n );\n const message = await this.translationService.translateAsync(\n '@human-capital-management:position-assignments.entities.position-assignment.actions.revoke.confirm.message',\n );\n const result = await this.dialogService.confirm(title, message, 'danger', 'horizontal', false, 'cancel');\n return result.result === true;\n }\n\n private extractIds(input: AXMRevokePositionAssignmentByIdInput): string[] {\n const raw = input?.__context__?.data ?? input?.data ?? input?.id ?? input;\n const values = Array.isArray(raw) ? raw : [raw];\n return values\n .map((value) => {\n if (typeof value === 'string') {\n return value;\n }\n if (value && typeof value === 'object') {\n const id = (value as { id?: unknown })['id'];\n return typeof id === 'string' ? id : '';\n }\n return '';\n })\n .filter((id) => id.trim().length > 0);\n }\n\n /**\n * Resolves assignment rows that still participate in overlap checks (active + scheduled).\n * Revoking only `active` left future-dated `scheduled` rows and blocked new assignments.\n */\n private async findOverlappingLifecycleAssignmentIds(\n positionId: string,\n employeeId: string,\n businessUnitId?: string,\n ): Promise<string[]> {\n const filters: AXDataSourceFilterOption[] = [\n { field: 'positionId', operator: { type: 'equal' }, value: positionId },\n { field: 'employeeId', operator: { type: 'equal' }, value: employeeId },\n { field: 'statusId', operator: { type: 'in' }, value: [...AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS] },\n ];\n if (businessUnitId) {\n filters.push({ field: 'businessUnitId', operator: { type: 'equal' }, value: businessUnitId });\n }\n\n const result = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.positionAssignment.name)\n .data()\n .query({\n skip: 0,\n take: 50,\n sort: [{ field: 'startDate', dir: 'desc' }],\n filter: { logic: 'and', filters },\n });\n\n const items = (result.items ?? []) as Array<{ id?: string }>;\n const seen = new Set<string>();\n const ids: string[] = [];\n for (const item of items) {\n const id = typeof item.id === 'string' && item.id.trim().length > 0 ? item.id.trim() : '';\n if (id && !seen.has(id)) {\n seen.add(id);\n ids.push(id);\n }\n }\n return ids;\n }\n}\n\n"],"names":[],"mappings":";;;;;;;MA2Ba,sCAAsC,CAAA;AADnD,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AA6G1D,IAAA;IA3GC,MAAM,OAAO,CACX,KAA2C,EAAA;QAE3C,IAAI,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AAChC,QAAA,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE;AACvD,YAAA,GAAG,GAAG,MAAM,IAAI,CAAC,qCAAqC,CACpD,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,cAAc,CACrB;QACH;AACA,QAAA,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;AACf,YAAA,IAAI,KAAK,CAAC,gBAAgB,EAAE;AAC1B,gBAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE;YACrD;AACA,YAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B;AAEA,QAAA,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;AAC3B,YAAA,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE;Y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EAAA,sCAAsC,cADzB,MAAM,EAAA,CAAA,CAAA;;2FACnB,sCAAsC,EAAA,UAAA,EAAA,CAAA;kBADlD,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
2
2
|
import { AXToastService } from '@acorex/components/toast';
|
|
3
3
|
import { AXTranslationService, resolveMultiLanguageString } from '@acorex/core/translation';
|
|
4
|
-
import { AXPSystemStatusType } from '@acorex/platform/
|
|
4
|
+
import { AXPSystemStatusType } from '@acorex/platform/contracts';
|
|
5
5
|
import { AXPEntityService, AXPEntityStorageService, getRecordWorkflowInstanceId } from '@acorex/platform/layout/entity';
|
|
6
6
|
import { AXPWorkflowManager, AXP_WORKFLOW_ENGINE } from '@acorex/platform/workflow';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { inject, Injectable } from '@angular/core';
|
|
9
|
-
import { R as RootConfig,
|
|
9
|
+
import { R as RootConfig, d as AXMLeaveRequestOpenStatusIds } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
10
10
|
|
|
11
11
|
//#region ---- Imports ----
|
|
12
12
|
//#endregion
|
|
@@ -239,4 +239,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
239
239
|
}] });
|
|
240
240
|
|
|
241
241
|
export { StartLeaveRequestFlowCommand };
|
|
242
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-start-leave-request-flow.command-
|
|
242
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-start-leave-request-flow.command-BPFrBjWG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-start-leave-request-flow.command-BPFrBjWG.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/leave-request/commands/start-leave-request-flow.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXMultiLanguageString, AXTranslationService, resolveMultiLanguageString } from '@acorex/core/translation';\nimport { AXPSystemStatusType } from '@acorex/platform/contracts';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport {\n AXPEntityService,\n AXPEntityStorageService,\n getRecordWorkflowInstanceId,\n} from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport {\n AXP_WORKFLOW_ENGINE,\n AXPWorkflowEngine,\n AXPWorkflowManager,\n} from '@acorex/platform/workflow';\nimport { inject, Injectable } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\nimport { AXMLeaveRequestOpenStatusIds } from '../../../contracts';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface StartLeaveRequestFlowInput {\n __context__?: {\n options?: StartLeaveRequestFlowOptions;\n };\n workflowId?: string;\n employeeId?: string;\n employeeDisplayName?: string;\n leaveTypeId?: string;\n leaveTypeTitle?: AXMultiLanguageString | string;\n}\n\nexport interface StartLeaveRequestFlowOptions {\n workflowId: string;\n input: {\n employeeId?: string;\n employeeDisplayName?: string;\n leaveTypeId: string;\n leaveTypeTitle?: AXMultiLanguageString | string;\n };\n}\n\ninterface OpenLeaveRequestRow {\n id: string;\n workflowInfo?: { instanceId?: string | null; correlationId?: string | null };\n leaveType?: { title?: AXMultiLanguageString | string };\n}\n\n//#endregion\n\n/**\n * Starts the leave request workflow after ensuring at most one pending request per employee and leave type.\n */\n@Injectable({ providedIn: 'root' })\nexport class StartLeaveRequestFlowCommand implements AXPCommand<StartLeaveRequestFlowInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly dialogService = inject(AXDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly entityService = inject(AXPEntityService);\n private readonly entityStorageService = inject(AXPEntityStorageService);\n private readonly workflowManager = inject(AXPWorkflowManager);\n private readonly workflowEngine = inject(AXP_WORKFLOW_ENGINE, { optional: true });\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: StartLeaveRequestFlowInput): Promise<AXPExecuteCommandResult<void>> {\n const options = (input?.__context__?.options ?? input) as StartLeaveRequestFlowOptions;\n const flowInput = options.input;\n const workflowId = options.workflowId?.trim();\n const leaveTypeId = flowInput?.leaveTypeId?.trim();\n const employeeId = this.resolveFlowText(flowInput?.employeeId);\n const employeeDisplayName = this.resolveFlowText(flowInput?.employeeDisplayName);\n const leaveTypeTitleForWorkflow = this.coerceLeaveTypeTitleForWorkflow(flowInput?.leaveTypeTitle);\n const leaveTypeTitleDisplay = this.resolveFlowText(flowInput?.leaveTypeTitle);\n\n if (!workflowId || !leaveTypeId) {\n return { success: false, message: { text: 'Missing workflow or leave type context.' } };\n }\n\n try {\n const openRequests = employeeId\n ? await this.findOpenLeaveRequests(employeeId, leaveTypeId)\n : [];\n const orphanInstanceIds = employeeId\n ? await this.findOrphanRunningWorkflowInstanceIds(\n employeeId,\n leaveTypeId,\n workflowId,\n openRequests,\n )\n : [];\n\n if (openRequests.length > 0 || orphanInstanceIds.length > 0) {\n const confirmed = await this.confirmReplace(leaveTypeTitleDisplay);\n if (!confirmed) {\n return { success: false };\n }\n await this.closeOpenRuns(openRequests, orphanInstanceIds);\n }\n\n const correlationId = employeeId\n ? this.buildCorrelationId(employeeId, leaveTypeId, workflowId)\n : undefined;\n\n const startResult = await this.workflowManager.start(workflowId, {\n leaveTypeId,\n ...(leaveTypeTitleForWorkflow != null ? { leaveTypeTitle: leaveTypeTitleForWorkflow } : {}),\n ...(employeeId ? { employeeId, employeeDisplayName } : {}),\n ...(employeeId\n ? {\n refId: employeeId,\n refType: `${RootConfig.module.name}.Employee`,\n correlationId,\n }\n : {}),\n });\n\n if (!startResult.success) {\n this.toastService.show({\n color: 'danger',\n title: 'Workflow Execution Failed',\n content: startResult.error ?? 'Unknown error',\n closeButton: true,\n timeOut: 5000,\n });\n return { success: false, message: { text: startResult.error ?? 'Unknown error' } };\n }\n\n return { success: true };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Unknown error';\n console.error('[StartLeaveRequestFlowCommand]', error);\n this.toastService.show({\n color: 'danger',\n title: 'Workflow Execution Error',\n content: message,\n closeButton: true,\n timeOut: 5000,\n });\n return { success: false, message: { text: message } };\n }\n }\n\n //#endregion\n\n //#region ---- Open-run detection ----\n\n private async findOpenLeaveRequests(\n employeeId: string,\n leaveTypeId: string,\n ): Promise<OpenLeaveRequestRow[]> {\n const page = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data()\n .query({\n skip: 0,\n take: 10,\n filter: {\n logic: 'and',\n filters: [\n { field: 'employeeId', operator: { type: 'equal' }, value: employeeId },\n { field: 'leaveTypeId', operator: { type: 'equal' }, value: leaveTypeId },\n {\n field: 'statusId',\n operator: { type: 'in' },\n value: [...AXMLeaveRequestOpenStatusIds],\n },\n ],\n },\n });\n\n return (page.items ?? []) as OpenLeaveRequestRow[];\n }\n\n private async findOrphanRunningWorkflowInstanceIds(\n employeeId: string,\n leaveTypeId: string,\n workflowId: string,\n openRequests: OpenLeaveRequestRow[],\n ): Promise<string[]> {\n const linkedInstanceIds = new Set(\n openRequests\n .map((row) => getRecordWorkflowInstanceId(row))\n .filter((id): id is string => !!id),\n );\n\n try {\n const page = await this.entityStorageService.query('WorkflowManagement.WorkflowInstance', {\n skip: 0,\n take: 50,\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'definitionId',\n operator: { type: 'equal' },\n value: workflowId,\n },\n { field: 'status', operator: { type: 'equal' }, value: 'Running' },\n ],\n },\n });\n\n const items = (page.items ?? []) as Array<{\n id?: string;\n workflowInstance?: { workflowState?: { input?: Record<string, unknown> } };\n }>;\n\n return items\n .filter((row) => {\n const id = row.id?.trim();\n if (!id || linkedInstanceIds.has(id)) {\n return false;\n }\n const runInput = row.workflowInstance?.workflowState?.input ?? {};\n return runInput['employeeId'] === employeeId && runInput['leaveTypeId'] === leaveTypeId;\n })\n .map((row) => row.id as string);\n } catch {\n return [];\n }\n }\n\n //#endregion\n\n //#region ---- Close and replace ----\n\n private async confirmReplace(leaveTypeTitle: string | undefined): Promise<boolean> {\n const title = await this.translationService.translateAsync(\n '@human-capital-management:leave-requests.messages.replace-open.confirm.title',\n );\n const message = await this.translationService.translateAsync(\n '@human-capital-management:leave-requests.messages.replace-open.confirm.message',\n {\n params: {\n leaveTypeTitle: String(leaveTypeTitle ?? '').trim() || '—',\n },\n },\n );\n const result = await this.dialogService.confirm(title, message, 'warning', 'horizontal', false, 'cancel');\n return result.result === true;\n }\n\n private async closeOpenRuns(\n openRequests: OpenLeaveRequestRow[],\n orphanInstanceIds: string[],\n ): Promise<void> {\n const data = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data();\n\n const supersedeNote = 'Closed to start a new leave request run.';\n\n for (const request of openRequests) {\n await data.update(request.id, {\n statusId: AXPSystemStatusType.Cancelled,\n reason: supersedeNote,\n } as never);\n\n const instanceId = getRecordWorkflowInstanceId(request);\n if (instanceId) {\n await this.cancelWorkflowInstance(instanceId);\n }\n }\n\n for (const instanceId of orphanInstanceIds) {\n await this.cancelWorkflowInstance(instanceId);\n }\n }\n\n private async cancelWorkflowInstance(instanceId: string): Promise<void> {\n const engine = this.workflowEngine as AXPWorkflowEngine | null;\n if (engine?.cancelInstance) {\n await engine.cancelInstance(instanceId, 'superseded');\n return;\n }\n\n const now = new Date().toISOString();\n try {\n await this.entityStorageService.updateOne('WorkflowManagement.WorkflowInstance', instanceId, {\n status: 'Finished',\n subStatus: 'Cancelled',\n finishedAt: now,\n updatedAt: now,\n });\n } catch (error: unknown) {\n console.warn('[StartLeaveRequestFlowCommand] Failed to cancel workflow instance:', instanceId, error);\n }\n }\n\n //#endregion\n\n //#region ---- Helpers ----\n\n private resolveFlowText(value: unknown): string {\n if (value == null || value === false) {\n return '';\n }\n if (typeof value === 'string') {\n return value.trim();\n }\n if (typeof value === 'number' || typeof value === 'boolean') {\n return String(value).trim();\n }\n return resolveMultiLanguageString(value as never, this.translationService.getActiveLang()).trim();\n }\n\n /** Preserves multi-language leave type titles on the workflow instance for locale-aware task labels. */\n private coerceLeaveTypeTitleForWorkflow(\n value: AXMultiLanguageString | string | undefined,\n ): AXMultiLanguageString | string | undefined {\n if (value == null) {\n return undefined;\n }\n if (typeof value === 'object') {\n return value;\n }\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n\n private buildCorrelationId(employeeId: string, leaveTypeId: string, workflowId: string): string {\n return `${RootConfig.module.name}.Employee:${employeeId}:${leaveTypeId}:${workflowId}`;\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AAqDA;AAEA;;AAEG;MAEU,4BAA4B,CAAA;AADzC,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACtD,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;QAC5C,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AA2QlF,IAAA;;;IArQC,MAAM,OAAO,CAAC,KAAiC,EAAA;QAC7C,MAAM,OAAO,IAAI,KAAK,EAAE,WAAW,EAAE,OAAO,IAAI,KAAK,CAAiC;AACtF,QAAA,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK;QAC/B,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE,I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,EAAE;AACjB,YAAA,OAAO,SAAS;QAClB;AACA,QAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7B,YAAA,OAAO,KAAK;QACd;AACA,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE;AAC5B,QAAA,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,SAAS;IACjD;AAEQ,IAAA,kBAAkB,CAAC,UAAkB,EAAE,WAAmB,EAAE,UAAkB,EAAA;AACpF,QAAA,OAAO,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,UAAA,EAAa,UAAU,CAAA,CAAA,EAAI,WAAW,CAAA,CAAA,EAAI,UAAU,EAAE;IACxF;8GAjRW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,cADf,MAAM,EAAA,CAAA,CAAA;;2FACnB,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
2
2
|
import { AXToastService } from '@acorex/components/toast';
|
|
3
3
|
import { AXTranslationService, resolveMultiLanguageString } from '@acorex/core/translation';
|
|
4
|
-
import { AXPSystemStatusType } from '@acorex/platform/
|
|
4
|
+
import { AXPSystemStatusType } from '@acorex/platform/contracts';
|
|
5
5
|
import { AXPEntityService, AXPEntityStorageService, getRecordWorkflowInstanceId } from '@acorex/platform/layout/entity';
|
|
6
6
|
import { AXPWorkflowManager, AXP_WORKFLOW_ENGINE } from '@acorex/platform/workflow';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { inject, Injectable } from '@angular/core';
|
|
9
|
-
import { R as RootConfig,
|
|
9
|
+
import { R as RootConfig, c as AXMLifecycleEventOpenStatusIds } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
10
10
|
|
|
11
11
|
//#region ---- Imports ----
|
|
12
12
|
//#endregion
|
|
@@ -33,9 +33,10 @@ class StartLifecycleEventFlowCommand {
|
|
|
33
33
|
const employeeId = this.resolveFlowText(flowInput?.employeeId);
|
|
34
34
|
const eventTypeId = flowInput?.eventTypeId?.trim();
|
|
35
35
|
const employeeDisplayName = this.resolveFlowText(flowInput?.employeeDisplayName);
|
|
36
|
-
const
|
|
36
|
+
const eventTypeTitleForWorkflow = this.coerceEventTypeTitleForWorkflow(flowInput?.eventTypeTitle);
|
|
37
|
+
const eventTypeTitleDisplay = this.resolveFlowText(flowInput?.eventTypeTitle);
|
|
37
38
|
const assessmentCaseTitle = this.resolveFlowText(flowInput?.assessmentCaseTitle) ||
|
|
38
|
-
this.buildAssessmentCaseTitle(
|
|
39
|
+
this.buildAssessmentCaseTitle(eventTypeTitleDisplay, employeeDisplayName);
|
|
39
40
|
if (!workflowId || !employeeId || !eventTypeId) {
|
|
40
41
|
return { success: false, message: { text: 'Missing workflow or employee context.' } };
|
|
41
42
|
}
|
|
@@ -43,7 +44,7 @@ class StartLifecycleEventFlowCommand {
|
|
|
43
44
|
const openEvents = await this.findOpenLifecycleEvents(employeeId, eventTypeId);
|
|
44
45
|
const orphanInstanceIds = await this.findOrphanRunningWorkflowInstanceIds(employeeId, eventTypeId, workflowId, openEvents);
|
|
45
46
|
if (openEvents.length > 0 || orphanInstanceIds.length > 0) {
|
|
46
|
-
const confirmed = await this.confirmReplace(
|
|
47
|
+
const confirmed = await this.confirmReplace(eventTypeTitleDisplay);
|
|
47
48
|
if (!confirmed) {
|
|
48
49
|
return { success: false };
|
|
49
50
|
}
|
|
@@ -53,7 +54,7 @@ class StartLifecycleEventFlowCommand {
|
|
|
53
54
|
employeeId,
|
|
54
55
|
employeeDisplayName,
|
|
55
56
|
eventTypeId: flowInput.eventTypeId,
|
|
56
|
-
eventTypeTitle,
|
|
57
|
+
...(eventTypeTitleForWorkflow != null ? { eventTypeTitle: eventTypeTitleForWorkflow } : {}),
|
|
57
58
|
assessmentCaseTitle,
|
|
58
59
|
questionnaireId: flowInput.questionnaireId,
|
|
59
60
|
...(flowInput.effectiveDate ? { effectiveDate: flowInput.effectiveDate } : {}),
|
|
@@ -211,6 +212,17 @@ class StartLifecycleEventFlowCommand {
|
|
|
211
212
|
}
|
|
212
213
|
return resolveMultiLanguageString(value, this.translationService.getActiveLang()).trim();
|
|
213
214
|
}
|
|
215
|
+
/** Preserves multi-language event type titles on the workflow instance for locale-aware task labels. */
|
|
216
|
+
coerceEventTypeTitleForWorkflow(value) {
|
|
217
|
+
if (value == null) {
|
|
218
|
+
return undefined;
|
|
219
|
+
}
|
|
220
|
+
if (typeof value === 'object') {
|
|
221
|
+
return value;
|
|
222
|
+
}
|
|
223
|
+
const trimmed = value.trim();
|
|
224
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
225
|
+
}
|
|
214
226
|
buildAssessmentCaseTitle(eventTypeTitle, employeeDisplayName) {
|
|
215
227
|
if (eventTypeTitle && employeeDisplayName) {
|
|
216
228
|
return `${eventTypeTitle} — ${employeeDisplayName}`;
|
|
@@ -229,4 +241,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
229
241
|
}] });
|
|
230
242
|
|
|
231
243
|
export { StartLifecycleEventFlowCommand };
|
|
232
|
-
//# sourceMappingURL=acorex-modules-human-capital-management-start-lifecycle-event-flow.command-
|
|
244
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-start-lifecycle-event-flow.command-C62jEjUD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-start-lifecycle-event-flow.command-C62jEjUD.mjs","sources":["../../../../libs/modules/human-capital-management/src/lib/features/lifecycle-event/commands/start-lifecycle-event-flow.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService, resolveMultiLanguageString, type AXMultiLanguageString } from '@acorex/core/translation';\nimport { AXPSystemStatusType } from '@acorex/platform/contracts';\nimport { AXPExecuteCommandResult } from '@acorex/platform/core';\nimport {\n AXPEntityStorageService,\n AXPEntityService,\n getRecordWorkflowInstanceId,\n} from '@acorex/platform/layout/entity';\nimport { AXPCommand } from '@acorex/platform/runtime';\nimport {\n AXP_WORKFLOW_ENGINE,\n AXPWorkflowEngine,\n AXPWorkflowManager,\n} from '@acorex/platform/workflow';\nimport { inject, Injectable } from '@angular/core';\nimport { RootConfig } from '../../../contracts';\nimport {\n AXMLifecycleEventOpenStatusIds,\n} from '../../../contracts';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface StartLifecycleEventFlowInput {\n __context__?: {\n options?: StartLifecycleEventFlowOptions;\n };\n workflowId?: string;\n employeeId?: string;\n employeeDisplayName?: string;\n eventTypeId?: string;\n eventTypeTitle?: AXMultiLanguageString | string;\n questionnaireId?: string;\n targetEmployeeStatusId?: string;\n effectiveDate?: string;\n}\n\nexport interface StartLifecycleEventFlowOptions {\n workflowId: string;\n input: {\n employeeId: string;\n employeeDisplayName: string;\n eventTypeId: string;\n eventTypeTitle?: AXMultiLanguageString | string;\n questionnaireId: string;\n effectiveDate?: string;\n /** Precomposed case/popup title; computed by StartFlow when omitted. */\n assessmentCaseTitle?: string;\n };\n}\n\ninterface OpenLifecycleEventRow {\n id: string;\n workflowInfo?: { instanceId?: string | null; correlationId?: string | null };\n eventType?: { title?: unknown };\n}\n\n//#endregion\n\n/**\n * Starts the guided lifecycle workflow after ensuring at most one in-progress event per employee and event type.\n */\n@Injectable({ providedIn: 'root' })\nexport class StartLifecycleEventFlowCommand implements AXPCommand<StartLifecycleEventFlowInput, void> {\n //#region ---- Services & Dependencies ----\n\n private readonly dialogService = inject(AXDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly entityService = inject(AXPEntityService);\n private readonly entityStorageService = inject(AXPEntityStorageService);\n private readonly workflowManager = inject(AXPWorkflowManager);\n private readonly workflowEngine = inject(AXP_WORKFLOW_ENGINE, { optional: true });\n\n //#endregion\n\n //#region ---- Command Implementation ----\n\n async execute(input: StartLifecycleEventFlowInput): Promise<AXPExecuteCommandResult<void>> {\n const options = (input?.__context__?.options ?? input) as StartLifecycleEventFlowOptions;\n const flowInput = options.input;\n const workflowId = options.workflowId?.trim();\n const employeeId = this.resolveFlowText(flowInput?.employeeId);\n const eventTypeId = flowInput?.eventTypeId?.trim();\n const employeeDisplayName = this.resolveFlowText(flowInput?.employeeDisplayName);\n const eventTypeTitleForWorkflow = this.coerceEventTypeTitleForWorkflow(flowInput?.eventTypeTitle);\n const eventTypeTitleDisplay = this.resolveFlowText(flowInput?.eventTypeTitle);\n const assessmentCaseTitle =\n this.resolveFlowText(flowInput?.assessmentCaseTitle) ||\n this.buildAssessmentCaseTitle(eventTypeTitleDisplay, employeeDisplayName);\n\n if (!workflowId || !employeeId || !eventTypeId) {\n return { success: false, message: { text: 'Missing workflow or employee context.' } };\n }\n\n try {\n const openEvents = await this.findOpenLifecycleEvents(employeeId, eventTypeId);\n const orphanInstanceIds = await this.findOrphanRunningWorkflowInstanceIds(\n employeeId,\n eventTypeId,\n workflowId,\n openEvents,\n );\n\n if (openEvents.length > 0 || orphanInstanceIds.length > 0) {\n const confirmed = await this.confirmReplace(eventTypeTitleDisplay);\n if (!confirmed) {\n return { success: false };\n }\n await this.closeOpenRuns(openEvents, orphanInstanceIds);\n }\n\n const startResult = await this.workflowManager.start(workflowId, {\n employeeId,\n employeeDisplayName,\n eventTypeId: flowInput.eventTypeId,\n ...(eventTypeTitleForWorkflow != null ? { eventTypeTitle: eventTypeTitleForWorkflow } : {}),\n assessmentCaseTitle,\n questionnaireId: flowInput.questionnaireId,\n ...(flowInput.effectiveDate ? { effectiveDate: flowInput.effectiveDate } : {}),\n refId: employeeId,\n refType: `${RootConfig.module.name}.Employee`,\n correlationId: this.buildCorrelationId(employeeId, eventTypeId, workflowId),\n });\n\n if (!startResult.success) {\n this.toastService.show({\n color: 'danger',\n title: 'Workflow Execution Failed',\n content: startResult.error ?? 'Unknown error',\n closeButton: true,\n timeOut: 5000,\n });\n return { success: false, message: { text: startResult.error ?? 'Unknown error' } };\n }\n\n return { success: true };\n } catch (error: unknown) {\n const message = error instanceof Error ? error.message : 'Unknown error';\n console.error('[StartLifecycleEventFlowCommand]', error);\n this.toastService.show({\n color: 'danger',\n title: 'Workflow Execution Error',\n content: message,\n closeButton: true,\n timeOut: 5000,\n });\n return { success: false, message: { text: message } };\n }\n }\n\n //#endregion\n\n //#region ---- Open-run detection ----\n\n private async findOpenLifecycleEvents(\n employeeId: string,\n eventTypeId: string,\n ): Promise<OpenLifecycleEventRow[]> {\n const page = await this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.lifecycleEvent.name)\n .data()\n .query({\n skip: 0,\n take: 10,\n filter: {\n logic: 'and',\n filters: [\n { field: 'employeeId', operator: { type: 'equal' }, value: employeeId },\n { field: 'eventTypeId', operator: { type: 'equal' }, value: eventTypeId },\n {\n field: 'statusId',\n operator: { type: 'in' },\n value: [...AXMLifecycleEventOpenStatusIds],\n },\n ],\n },\n });\n\n return (page.items ?? []) as OpenLifecycleEventRow[];\n }\n\n private async findOrphanRunningWorkflowInstanceIds(\n employeeId: string,\n eventTypeId: string,\n workflowId: string,\n openEvents: OpenLifecycleEventRow[],\n ): Promise<string[]> {\n const linkedInstanceIds = new Set(\n openEvents\n .map((row) => getRecordWorkflowInstanceId(row))\n .filter((id): id is string => !!id),\n );\n\n try {\n const page = await this.entityStorageService.query('WorkflowManagement.WorkflowInstance', {\n skip: 0,\n take: 50,\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'definitionId',\n operator: { type: 'equal' },\n value: workflowId,\n },\n { field: 'status', operator: { type: 'equal' }, value: 'Running' },\n ],\n },\n });\n\n const items = (page.items ?? []) as Array<{\n id?: string;\n workflowInstance?: { workflowState?: { input?: Record<string, unknown> } };\n }>;\n\n return items\n .filter((row) => {\n const id = row.id?.trim();\n if (!id || linkedInstanceIds.has(id)) {\n return false;\n }\n const runInput = row.workflowInstance?.workflowState?.input ?? {};\n return runInput['employeeId'] === employeeId && runInput['eventTypeId'] === eventTypeId;\n })\n .map((row) => row.id as string);\n } catch {\n return [];\n }\n }\n\n //#endregion\n\n //#region ---- Close and replace ----\n\n private async confirmReplace(eventTypeTitle: string | undefined): Promise<boolean> {\n const title = await this.translationService.translateAsync(\n '@human-capital-management:lifecycle-events.messages.replace-open.confirm.title',\n );\n const message = await this.translationService.translateAsync(\n '@human-capital-management:lifecycle-events.messages.replace-open.confirm.message',\n {\n params: {\n eventTypeTitle: String(eventTypeTitle ?? '').trim() || '—',\n },\n },\n );\n const result = await this.dialogService.confirm(title, message, 'warning', 'horizontal', false, 'cancel');\n return result.result === true;\n }\n\n private async closeOpenRuns(\n openEvents: OpenLifecycleEventRow[],\n orphanInstanceIds: string[],\n ): Promise<void> {\n const data = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.lifecycleEvent.name)\n .data();\n\n const supersedeNote = 'Closed to start a new lifecycle run.';\n\n for (const event of openEvents) {\n await data.update(event.id, {\n statusId: AXPSystemStatusType.Cancelled,\n notes: supersedeNote,\n } as never);\n\n const instanceId = getRecordWorkflowInstanceId(event);\n if (instanceId) {\n await this.cancelWorkflowInstance(instanceId);\n }\n }\n\n for (const instanceId of orphanInstanceIds) {\n await this.cancelWorkflowInstance(instanceId);\n }\n }\n\n private async cancelWorkflowInstance(instanceId: string): Promise<void> {\n const engine = this.workflowEngine as AXPWorkflowEngine | null;\n if (engine?.cancelInstance) {\n await engine.cancelInstance(instanceId, 'superseded');\n return;\n }\n\n const now = new Date().toISOString();\n try {\n await this.entityStorageService.updateOne('WorkflowManagement.WorkflowInstance', instanceId, {\n status: 'Finished',\n subStatus: 'Cancelled',\n finishedAt: now,\n updatedAt: now,\n });\n } catch (error: unknown) {\n console.warn('[StartLifecycleEventFlowCommand] Failed to cancel workflow instance:', instanceId, error);\n }\n }\n\n //#endregion\n\n //#region ---- Helpers ----\n\n /** Normalizes workflow start input that may be plain text, ML, or a failed expression (`false`). */\n private resolveFlowText(value: unknown): string {\n if (value == null || value === false) {\n return '';\n }\n if (typeof value === 'string') {\n return value.trim();\n }\n if (typeof value === 'number' || typeof value === 'boolean') {\n return String(value).trim();\n }\n return resolveMultiLanguageString(value as never, this.translationService.getActiveLang()).trim();\n }\n\n /** Preserves multi-language event type titles on the workflow instance for locale-aware task labels. */\n private coerceEventTypeTitleForWorkflow(\n value: AXMultiLanguageString | string | undefined,\n ): AXMultiLanguageString | string | undefined {\n if (value == null) {\n return undefined;\n }\n if (typeof value === 'object') {\n return value;\n }\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n }\n\n private buildAssessmentCaseTitle(eventTypeTitle: string, employeeDisplayName: string): string {\n if (eventTypeTitle && employeeDisplayName) {\n return `${eventTypeTitle} — ${employeeDisplayName}`;\n }\n return eventTypeTitle || employeeDisplayName;\n }\n\n private buildCorrelationId(employeeId: string, eventTypeId: string, workflowId: string): string {\n return `${RootConfig.module.name}.Employee:${employeeId}:${eventTypeId}:${workflowId}`;\n }\n\n //#endregion\n}\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AA8DA;AAEA;;AAEG;MAEU,8BAA8B,CAAA;AAD3C,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,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AA;AACpF,QAAA,OAAO,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,UAAA,EAAa,UAAU,CAAA,CAAA,EAAI,WAAW,CAAA,CAAA,EAAI,UAAU,EAAE;IACxF;8GApRW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,cADjB,MAAM,EAAA,CAAA,CAAA;;2FACnB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { e as AXMHumanCapitalManagementDataSourceKeys, f as AXMHumanCapitalManagementModule, g as AXMLeaveRequestBadgeProvider, d as AXMLeaveRequestOpenStatusIds, h as AXMLeaveRequestResourceAppointmentProvider, i as AXMLeaveRequestTaskPopoverComponent, c as AXMLifecycleEventOpenStatusIds, j as AXMPermissionsKeys, a as AXM_POSITION_ASSIGNMENT_OVERLAPPING_STATUS_IDS, A as AXM_POSITION_ASSIGNMENT_STATUS, k as AXPHumanCapitalManagementCommandKeys, l as AXPHumanCapitalManagementFeatureDefinitionProvider, m as AXPHumanCapitalManagementFeatureKeys, n as AXPHumanCapitalManagementMenuKeys, o as AXPLeaveRequestDialogService, H as HCM_CATALOG_SCOPE_HR, p as HumanCapitalManagementManifest, R as RootConfig, q as factoryEmployee, r as factoryEmploymentType, s as factoryLeaveRequest, t as factoryLeaveType, u as factoryLifecycleEvent, v as factoryLifecycleEventType, w as factoryPositionAssignment } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-BQ7fkZVA.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-modules-human-capital-management.mjs.map
|
|
@@ -5,6 +5,13 @@ import { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER,
|
|
|
5
5
|
import { AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXPSearchCommandProvider } from '@acorex/platform/common';
|
|
6
6
|
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
7
7
|
|
|
8
|
+
const AXMPermissionsKeys = {
|
|
9
|
+
IdentifierManagement: {
|
|
10
|
+
Management: 'IdentifierManagement:Permission:Management',
|
|
11
|
+
// TODO: Add permission keys when permissions are defined
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
8
15
|
const config = {
|
|
9
16
|
i18n: 'identifier-management',
|
|
10
17
|
};
|
|
@@ -25,6 +32,9 @@ const RootConfig = {
|
|
|
25
32
|
},
|
|
26
33
|
};
|
|
27
34
|
|
|
35
|
+
//#region ---- Contracts barrel ----
|
|
36
|
+
//#endregion
|
|
37
|
+
|
|
28
38
|
//#region ---- Imports ----
|
|
29
39
|
//#endregion
|
|
30
40
|
//#region ---- Manifest Definition ----
|
|
@@ -163,7 +173,7 @@ class AXMEntityProvider {
|
|
|
163
173
|
if (moduleName == RootConfig.module.name) {
|
|
164
174
|
switch (entityName
|
|
165
175
|
// case RootConfig.entities.sample.name:
|
|
166
|
-
// return (await import('./entities/sample/sample.entity')).
|
|
176
|
+
// return (await import('./entities/sample/sample.entity')).factorySample();
|
|
167
177
|
) {
|
|
168
178
|
}
|
|
169
179
|
}
|