@acorex/modules 21.0.0-next.37 → 21.0.0-next.40
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-acorex-modules-ai-management-WuqoH4OL.mjs → acorex-modules-ai-management-acorex-modules-ai-management-Bqfx8OTv.mjs} +718 -106
- package/fesm2022/acorex-modules-ai-management-acorex-modules-ai-management-Bqfx8OTv.mjs.map +1 -0
- package/fesm2022/acorex-modules-ai-management-agent-registry-tool-configurator-widget-column.component-D0ruV6aJ.mjs +44 -0
- package/fesm2022/acorex-modules-ai-management-agent-registry-tool-configurator-widget-column.component-D0ruV6aJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-ai-management-agent-registry-tool-configurator-widget-edit.component-DyczMN-R.mjs +256 -0
- package/fesm2022/acorex-modules-ai-management-agent-registry-tool-configurator-widget-edit.component-DyczMN-R.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-agent.entity-DK9GNMdR.mjs → acorex-modules-ai-management-agent.entity-CpSXisAh.mjs} +83 -94
- package/fesm2022/acorex-modules-ai-management-agent.entity-CpSXisAh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-CWXEW9yL.mjs → acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-CYk2rB36.mjs} +62 -20
- package/fesm2022/acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-CYk2rB36.mjs.map +1 -0
- package/fesm2022/{acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-CNKwIqUE.mjs → acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BDcW8BRI.mjs} +3 -5
- package/fesm2022/{acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-CNKwIqUE.mjs.map → acorex-modules-ai-management-assist-delegated-agent-configurator-widget-edit.component-BDcW8BRI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-ai-management-assist.entity-DX2U9sd5.mjs → acorex-modules-ai-management-assist.entity-7uTePpME.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-assist.entity-DX2U9sd5.mjs.map → acorex-modules-ai-management-assist.entity-7uTePpME.mjs.map} +1 -1
- package/fesm2022/acorex-modules-ai-management-index-DUojDUau.mjs +2 -0
- package/fesm2022/{acorex-modules-ai-management-index-KX3TVRXr.mjs.map → acorex-modules-ai-management-index-DUojDUau.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-ai-management-model.entity-BeuDUahR.mjs → acorex-modules-ai-management-model.entity-C9J3trsK.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-model.entity-BeuDUahR.mjs.map → acorex-modules-ai-management-model.entity-C9J3trsK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-ai-management-open-ai-endpoint.entity-D-9unl6i.mjs → acorex-modules-ai-management-open-ai-endpoint.entity-kHsxkjEd.mjs} +2 -2
- package/fesm2022/{acorex-modules-ai-management-open-ai-endpoint.entity-D-9unl6i.mjs.map → acorex-modules-ai-management-open-ai-endpoint.entity-kHsxkjEd.mjs.map} +1 -1
- package/fesm2022/acorex-modules-ai-management.mjs +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +1 -1
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-BNK6C-Ng.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-CMS2WJDu.mjs} +510 -437
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-CMS2WJDu.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-Ds8pRzvE.mjs → acorex-modules-assessment-management-assessment-case.entity-C-Q4hu8o.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-Ds8pRzvE.mjs.map → acorex-modules-assessment-management-assessment-case.entity-C-Q4hu8o.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-tq1Q4wkS.mjs → acorex-modules-assessment-management-assessment-session.entity-CQI_FpUd.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-tq1Q4wkS.mjs.map → acorex-modules-assessment-management-assessment-session.entity-CQI_FpUd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-yf0PnWC0.mjs → acorex-modules-assessment-management-fill-assessment-session.command-Bpvco5iD.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-yf0PnWC0.mjs.map → acorex-modules-assessment-management-fill-assessment-session.command-Bpvco5iD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-index-B2SncZAW.mjs → acorex-modules-assessment-management-index-_fPuBQeK.mjs} +25 -26
- package/fesm2022/acorex-modules-assessment-management-index-_fPuBQeK.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-DPzL8C44.mjs → acorex-modules-assessment-management-preview-question.command-drR6nq76.mjs} +10 -11
- package/fesm2022/acorex-modules-assessment-management-preview-question.command-drR6nq76.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BrI5gFtx.mjs → acorex-modules-assessment-management-preview-questionnaire.command-CY8tZWdG.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BrI5gFtx.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-CY8tZWdG.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-XD5IJpvW.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DV9irFZ0.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-XD5IJpvW.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DV9irFZ0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CZ32sQ9M.mjs → acorex-modules-assessment-management-question-bank-item.entity-DO4bTKKo.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CZ32sQ9M.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-DO4bTKKo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-C7gf4s1y.mjs → acorex-modules-assessment-management-questionnaire-calculation.entity-B-N0v4zs.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-C7gf4s1y.mjs.map → acorex-modules-assessment-management-questionnaire-calculation.entity-B-N0v4zs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-BZyIlYWg.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-Cc-o6qmY.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-BZyIlYWg.mjs.map → acorex-modules-assessment-management-questionnaire-viewer-popup.component-Cc-o6qmY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-CmmThk2f.mjs → acorex-modules-assessment-management-questionnaire.entity-CJWNlaJs.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-CmmThk2f.mjs.map → acorex-modules-assessment-management-questionnaire.entity-CJWNlaJs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-GLqvK8wB.mjs → acorex-modules-assessment-management-save-questionnaire-questions.command-C3gOkZa5.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-GLqvK8wB.mjs.map → acorex-modules-assessment-management-save-questionnaire-questions.command-C3gOkZa5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-CU1TVonZ.mjs → acorex-modules-assessment-management-view-session-answers.command-AvTbWvGE.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-CU1TVonZ.mjs.map → acorex-modules-assessment-management-view-session-answers.command-AvTbWvGE.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-asset-management-acorex-modules-asset-management-BDs0ZgD5.mjs → acorex-modules-asset-management-acorex-modules-asset-management-BRap9yt6.mjs} +761 -133
- package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-BRap9yt6.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management-asset-rental-history.entity-B_QZI3Cy.mjs +302 -0
- package/fesm2022/acorex-modules-asset-management-asset-rental-history.entity-B_QZI3Cy.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management-asset-status.rules-BL0Osjqv.mjs +98 -0
- package/fesm2022/acorex-modules-asset-management-asset-status.rules-BL0Osjqv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-system-history.entity-CSCwWY_F.mjs → acorex-modules-asset-management-asset-system-assignment.entity-BRz8vItS.mjs} +77 -48
- package/fesm2022/acorex-modules-asset-management-asset-system-assignment.entity-BRz8vItS.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-CcefMT8J.mjs → acorex-modules-asset-management-asset-system-type.entity-b_o5UnuE.mjs} +72 -40
- package/fesm2022/acorex-modules-asset-management-asset-system-type.entity-b_o5UnuE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-assetSystem.entity-Dq2ASslk.mjs → acorex-modules-asset-management-asset-system.entity-C6ak4u9z.mjs} +41 -29
- package/fesm2022/acorex-modules-asset-management-asset-system.entity-C6ak4u9z.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-6Rauu2Z1.mjs → acorex-modules-asset-management-asset-type-section-component.entity-BQjGo1s1.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-6Rauu2Z1.mjs.map → acorex-modules-asset-management-asset-type-section-component.entity-BQjGo1s1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-r_H1QGwp.mjs → acorex-modules-asset-management-asset-type-section.entity-C1DJZZFy.mjs} +6 -48
- package/fesm2022/acorex-modules-asset-management-asset-type-section.entity-C1DJZZFy.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type.entity-cWVqpbHH.mjs → acorex-modules-asset-management-asset-type.entity-CtOnArR9.mjs} +68 -105
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-CtOnArR9.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset.entity-CamZGWTM.mjs → acorex-modules-asset-management-asset.entity-BaET-kSd.mjs} +257 -245
- package/fesm2022/acorex-modules-asset-management-asset.entity-BaET-kSd.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management-assetLifecycleState.provider-DZ5r2zx7.mjs +192 -0
- package/fesm2022/acorex-modules-asset-management-assetLifecycleState.provider-DZ5r2zx7.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management-status.provider-C41t4e2U.mjs +363 -0
- package/fesm2022/acorex-modules-asset-management-status.provider-C41t4e2U.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management.mjs +1 -1
- package/fesm2022/acorex-modules-business-core.mjs +17 -11
- package/fesm2022/acorex-modules-business-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-common.mjs +166 -122
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +4786 -4080
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-yqfev--M.mjs +8486 -0
- package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-yqfev--M.mjs.map +1 -0
- package/fesm2022/acorex-modules-dashboard-management-index-CYnWQ2od.mjs +127 -0
- package/fesm2022/acorex-modules-dashboard-management-index-CYnWQ2od.mjs.map +1 -0
- package/fesm2022/acorex-modules-dashboard-management.mjs +1 -7708
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +63 -35
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +131 -62
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-financial-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-health-core-allergy-type.entity-CS8a-AUb.mjs → acorex-modules-health-core-allergy-type.entity-BvJmDMcr.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-allergy-type.entity-BvJmDMcr.mjs.map +1 -0
- package/fesm2022/{acorex-modules-health-core-blood-type.entity-ZgFOuvG4.mjs → acorex-modules-health-core-blood-type.entity-Vpw9y9J5.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-blood-type.entity-Vpw9y9J5.mjs.map +1 -0
- package/fesm2022/{acorex-modules-health-core-body-part.entity-JGLwrFE2.mjs → acorex-modules-health-core-body-part.entity-Cz2NEAqm.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-body-part.entity-Cz2NEAqm.mjs.map +1 -0
- package/fesm2022/{acorex-modules-health-core-chronic-condition-type.entity-DrxEPQj1.mjs → acorex-modules-health-core-chronic-condition-type.entity-CKWVW0Rg.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-chronic-condition-type.entity-CKWVW0Rg.mjs.map +1 -0
- package/fesm2022/{acorex-modules-health-core-disability-status.entity-UaAQFFMC.mjs → acorex-modules-health-core-disability-status.entity-C7NwwT0i.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-disability-status.entity-C7NwwT0i.mjs.map +1 -0
- package/fesm2022/{acorex-modules-health-core-injury-type.entity-DcIn0rxz.mjs → acorex-modules-health-core-injury-type.entity-bfzL6j8C.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-injury-type.entity-bfzL6j8C.mjs.map +1 -0
- package/fesm2022/{acorex-modules-health-core-vaccination-type.entity-zYd6KLRC.mjs → acorex-modules-health-core-vaccination-type.entity-CqymQfWK.mjs} +3 -3
- package/fesm2022/acorex-modules-health-core-vaccination-type.entity-CqymQfWK.mjs.map +1 -0
- package/fesm2022/acorex-modules-health-core.mjs +7 -7
- package/fesm2022/acorex-modules-health-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-Ck9q-IWW.mjs +1922 -0
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-Ck9q-IWW.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-BRUrGVh1.mjs → acorex-modules-human-capital-management-approve-leave-request.command-qYSPyG_q.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-BRUrGVh1.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-qYSPyG_q.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management-assign-position-assignment.command-Da3u1fo5.mjs +90 -0
- package/fesm2022/acorex-modules-human-capital-management-assign-position-assignment.command-Da3u1fo5.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-B16M3F8s.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-DstI60jo.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-B16M3F8s.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-DstI60jo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-BRpqFRuI.mjs → acorex-modules-human-capital-management-employee.entity-DjMQm3VC.mjs} +71 -25
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-DjMQm3VC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-7ZGZYxGM.mjs → acorex-modules-human-capital-management-employment-type.entity-v8WzEHiE.mjs} +5 -5
- package/fesm2022/acorex-modules-human-capital-management-employment-type.entity-v8WzEHiE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-B3Rk84bJ.mjs → acorex-modules-human-capital-management-leave-request.entity-B9Bf-Nnm.mjs} +71 -21
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-B9Bf-Nnm.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-OKu8_PP1.mjs → acorex-modules-human-capital-management-leave-type.entity-Bpfd_hNb.mjs} +5 -6
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-Bpfd_hNb.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-D_C459kx.mjs → acorex-modules-human-capital-management-position-assignment.entity-f0IDrLSn.mjs} +81 -7
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-f0IDrLSn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-C0_moDp9.mjs → acorex-modules-human-capital-management-reject-leave-request.command-DxNsroYI.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-C0_moDp9.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-DxNsroYI.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management-revoke-position-assignment.command-C3J9pcfh.mjs +97 -0
- package/fesm2022/acorex-modules-human-capital-management-revoke-position-assignment.command-C3J9pcfh.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1629
- package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-learning-management-certificate-definition.entity-27VKYxw1.mjs → acorex-modules-learning-management-certificate-definition.entity-C_r1Djcx.mjs} +4 -4
- package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-C_r1Djcx.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-certificate-type.entity-CBM6N-PD.mjs → acorex-modules-learning-management-certificate-type.entity-DAJNtUya.mjs} +42 -20
- package/fesm2022/acorex-modules-learning-management-certificate-type.entity-DAJNtUya.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-certificate.entity-BRBJQYji.mjs → acorex-modules-learning-management-certificate.entity-CSD_CX4V.mjs} +5 -5
- package/fesm2022/acorex-modules-learning-management-certificate.entity-CSD_CX4V.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-course-type.entity-B1c6PDLq.mjs → acorex-modules-learning-management-course-type.entity-DmjeLMxV.mjs} +39 -17
- package/fesm2022/acorex-modules-learning-management-course-type.entity-DmjeLMxV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-course.entity-BN8XHAPz.mjs → acorex-modules-learning-management-course.entity-DUUgeikJ.mjs} +3 -3
- package/fesm2022/acorex-modules-learning-management-course.entity-DUUgeikJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-learning-path.entity-8QlM3R4B.mjs → acorex-modules-learning-management-learning-path.entity-Zo--bDto.mjs} +39 -17
- package/fesm2022/acorex-modules-learning-management-learning-path.entity-Zo--bDto.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-skill-level.entity-DXOWslpB.mjs → acorex-modules-learning-management-skill-level.entity-XVCTHW3O.mjs} +10 -10
- package/fesm2022/acorex-modules-learning-management-skill-level.entity-XVCTHW3O.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-skill.entity-DrLts807.mjs → acorex-modules-learning-management-skill.entity-VXkLbaD4.mjs} +35 -13
- package/fesm2022/acorex-modules-learning-management-skill.entity-VXkLbaD4.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training-definition.entity-NQqJ5avw.mjs → acorex-modules-learning-management-training-definition.entity-BbVZ9_go.mjs} +3 -3
- package/fesm2022/acorex-modules-learning-management-training-definition.entity-BbVZ9_go.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training-type.entity-CoyDCeen.mjs → acorex-modules-learning-management-training-type.entity-C1otrA63.mjs} +36 -14
- package/fesm2022/acorex-modules-learning-management-training-type.entity-C1otrA63.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training.entity-BCGn0T3H.mjs → acorex-modules-learning-management-training.entity-C4KDv1uh.mjs} +3 -3
- package/fesm2022/acorex-modules-learning-management-training.entity-C4KDv1uh.mjs.map +1 -0
- package/fesm2022/acorex-modules-learning-management.mjs +716 -19
- package/fesm2022/acorex-modules-learning-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-location-management.mjs +18 -99
- package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-CfHMiVos.mjs +7102 -0
- package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-CfHMiVos.mjs.map +1 -0
- package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-DQJJtCqU.mjs → acorex-modules-maintenance-management-failure-effect.entity-DKbARwJh.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-DQJJtCqU.mjs.map → acorex-modules-maintenance-management-failure-effect.entity-DKbARwJh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-asset-type.entity-gg2fpT2N.mjs → acorex-modules-maintenance-management-failure-mode-asset-type.entity-Br0lvFfu.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-asset-type.entity-gg2fpT2N.mjs.map → acorex-modules-maintenance-management-failure-mode-asset-type.entity-Br0lvFfu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-CHUaAnID.mjs → acorex-modules-maintenance-management-failure-mode-mechanism.entity-Dydg4AJ7.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-CHUaAnID.mjs.map → acorex-modules-maintenance-management-failure-mode-mechanism.entity-Dydg4AJ7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-B93x1uP_.mjs → acorex-modules-maintenance-management-failure-mode-solution.entity-DHiVJHFj.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-B93x1uP_.mjs.map → acorex-modules-maintenance-management-failure-mode-solution.entity-DHiVJHFj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-cause.entity-McM3l12Q.mjs → acorex-modules-maintenance-management-failure-register-cause.entity-CZfm0U8u.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-cause.entity-McM3l12Q.mjs.map → acorex-modules-maintenance-management-failure-register-cause.entity-CZfm0U8u.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-_jjy1oeg.mjs → acorex-modules-maintenance-management-failure-register-effect.entity-DbCAFveJ.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-_jjy1oeg.mjs.map → acorex-modules-maintenance-management-failure-register-effect.entity-DbCAFveJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-5CmdhowW.mjs → acorex-modules-maintenance-management-failure-register-mechanism.entity-D83Yo6dT.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-5CmdhowW.mjs.map → acorex-modules-maintenance-management-failure-register-mechanism.entity-D83Yo6dT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register.entity-D_lQrda5.mjs → acorex-modules-maintenance-management-failure-register.entity-zKGo9bOs.mjs} +4 -4
- package/fesm2022/acorex-modules-maintenance-management-failure-register.entity-zKGo9bOs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BIZxoVIS.mjs → acorex-modules-maintenance-management-failure-severity.entity-Cnvdmt0N.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BIZxoVIS.mjs.map → acorex-modules-maintenance-management-failure-severity.entity-Cnvdmt0N.mjs.map} +1 -1
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-CzX0phT-.mjs +391 -0
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-CzX0phT-.mjs.map +1 -0
- package/fesm2022/acorex-modules-maintenance-management.mjs +1 -3579
- package/fesm2022/acorex-modules-maintenance-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-measurement-core.mjs.map +1 -1
- package/fesm2022/{acorex-modules-notification-management-notification-page.component-DDhCqJtg.mjs → acorex-modules-notification-management-notification-page.component-D0we6H1f.mjs} +5 -5
- package/fesm2022/{acorex-modules-notification-management-notification-page.component-DDhCqJtg.mjs.map → acorex-modules-notification-management-notification-page.component-D0we6H1f.mjs.map} +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +36 -22
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-organization-management-JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY-BYfbGGOE.mjs +8 -0
- package/fesm2022/acorex-modules-organization-management-JOB_DEFINITION_SKILLS_PAGE_COMPONENT_KEY-BYfbGGOE.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-CnAHfj2t.mjs +925 -0
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-CnAHfj2t.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-business-unit.entity-Dpf7-aeM.mjs +372 -0
- package/fesm2022/acorex-modules-organization-management-business-unit.entity-Dpf7-aeM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-chart.entity-bRxA8XHZ.mjs → acorex-modules-organization-management-chart.entity-CQX81AiE.mjs} +37 -33
- package/fesm2022/acorex-modules-organization-management-chart.entity-CQX81AiE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-company.entity-BohMJQNi.mjs → acorex-modules-organization-management-company.entity-D-RWQ_8O.mjs} +8 -10
- package/fesm2022/acorex-modules-organization-management-company.entity-D-RWQ_8O.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-data-source-evaluator-scope.provider-BrKtojM9.mjs +48 -0
- package/fesm2022/acorex-modules-organization-management-data-source-evaluator-scope.provider-BrKtojM9.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-entity.provider-BdaKwTZq.mjs +61 -0
- package/fesm2022/acorex-modules-organization-management-entity.provider-BdaKwTZq.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-feature-definition.provider-EzMuHJ2K.mjs +19 -0
- package/fesm2022/acorex-modules-organization-management-feature-definition.provider-EzMuHJ2K.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-matrix-page.utils-DD3jLujN.mjs +61 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-matrix-page.utils-DD3jLujN.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-pages-component.provider-C8_Ab3Q7.mjs +28 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-pages-component.provider-C8_Ab3Q7.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-responsibilities-page.component-DHUlvoOO.mjs +223 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-responsibilities-page.component-DHUlvoOO.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-skills-page.component-BpVESnnH.mjs +219 -0
- package/fesm2022/acorex-modules-organization-management-job-definition-skills-page.component-BpVESnnH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-S9Jlmr-o.mjs → acorex-modules-organization-management-job-definition.entity-H8VAbZ_r.mjs} +21 -154
- package/fesm2022/acorex-modules-organization-management-job-definition.entity-H8VAbZ_r.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-level.datasource-Dxfq0cGw.mjs +95 -0
- package/fesm2022/acorex-modules-organization-management-job-level.datasource-Dxfq0cGw.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-job-level.entity-Bdja794J.mjs +271 -0
- package/fesm2022/acorex-modules-organization-management-job-level.entity-Bdja794J.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-menu.provider-DnvNM-pk.mjs +192 -0
- package/fesm2022/acorex-modules-organization-management-menu.provider-DnvNM-pk.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-org-chart.page-COkMtxFO.mjs +1740 -0
- package/fesm2022/acorex-modules-organization-management-org-chart.page-COkMtxFO.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-organization-code-identifier-rules.provider-pocBJezL.mjs +37 -0
- package/fesm2022/acorex-modules-organization-management-organization-code-identifier-rules.provider-pocBJezL.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-permission-definition.provider-BDLIuqxU.mjs +76 -0
- package/fesm2022/acorex-modules-organization-management-permission-definition.provider-BDLIuqxU.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-DLPufeWz.mjs → acorex-modules-organization-management-position.entity-BpbzqtEY.mjs} +113 -112
- package/fesm2022/acorex-modules-organization-management-position.entity-BpbzqtEY.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-mMZywr0X.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CGkXAtH2.mjs} +26 -29
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CGkXAtH2.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-CfRBMxLk.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-Dw-tX5XI.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-CfRBMxLk.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-Dw-tX5XI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-B06t1G1E.mjs → acorex-modules-organization-management-responsibilities-matrix.component-D_ClGAIJ.mjs} +14 -21
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix.component-D_ClGAIJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-responsibility-level.entity-CzkogsDv.mjs +135 -0
- package/fesm2022/acorex-modules-organization-management-responsibility-level.entity-CzkogsDv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-CMmr3wJa.mjs → acorex-modules-organization-management-responsibility.entity-DfKM6HV7.mjs} +5 -7
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DfKM6HV7.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-settings.provider-DaeJkP0y.mjs +228 -0
- package/fesm2022/acorex-modules-organization-management-settings.provider-DaeJkP0y.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-team-business-unit.entity-Cm9qcAG7.mjs +300 -0
- package/fesm2022/acorex-modules-organization-management-team-business-unit.entity-Cm9qcAG7.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-B3xgLE6N.mjs +150 -0
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-B3xgLE6N.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team-member.entity-8sTjn5Jn.mjs → acorex-modules-organization-management-team-member.entity-Dk9t9S1r.mjs} +6 -17
- package/fesm2022/acorex-modules-organization-management-team-member.entity-Dk9t9S1r.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team.entity-CGR0UlYl.mjs → acorex-modules-organization-management-team.entity-BbcFYP20.mjs} +113 -42
- package/fesm2022/acorex-modules-organization-management-team.entity-BbcFYP20.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +1 -2216
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs +40 -0
- package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-CGyf-4eq.mjs +33 -0
- package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-CGyf-4eq.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-dev-tools.mjs +14 -94
- package/fesm2022/acorex-modules-platform-dev-tools.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-DPSNAAct.mjs → acorex-modules-report-management-report-runner-root-page.component-BjKrHoBg.mjs} +107 -107
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-BjKrHoBg.mjs.map +1 -0
- package/fesm2022/acorex-modules-report-management.mjs +3 -3
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-reservation-management-acorex-modules-reservation-management-BMemqW2V.mjs → acorex-modules-reservation-management-acorex-modules-reservation-management-BoUiTlmu.mjs} +65 -76
- package/fesm2022/acorex-modules-reservation-management-acorex-modules-reservation-management-BoUiTlmu.mjs.map +1 -0
- package/fesm2022/{acorex-modules-reservation-management-reservation-class-status.entity-Bg7d38wV.mjs → acorex-modules-reservation-management-reservation-class-status.entity-D-ZdqKa8.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-reservation-class-status.entity-Bg7d38wV.mjs.map → acorex-modules-reservation-management-reservation-class-status.entity-D-ZdqKa8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-reservation-management-reservation-resource-type.entity-BK-rLEXi.mjs → acorex-modules-reservation-management-reservation-resource-type.entity-zPD-Psml.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-reservation-resource-type.entity-BK-rLEXi.mjs.map → acorex-modules-reservation-management-reservation-resource-type.entity-zPD-Psml.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-reservation-management-reservation-status-transition.entity-2ngXhKAV.mjs → acorex-modules-reservation-management-reservation-status-transition.entity-CQ85ZAGF.mjs} +2 -2
- package/fesm2022/{acorex-modules-reservation-management-reservation-status-transition.entity-2ngXhKAV.mjs.map → acorex-modules-reservation-management-reservation-status-transition.entity-CQ85ZAGF.mjs.map} +1 -1
- package/fesm2022/acorex-modules-reservation-management.mjs +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +507 -179
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-C1H_GTqy.mjs → acorex-modules-task-management-task-board.page-DA2563QE.mjs} +15 -10
- package/fesm2022/acorex-modules-task-management-task-board.page-DA2563QE.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +280 -226
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs +5 -0
- package/fesm2022/acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-column.component-C8lgSjfc.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-column.component-CDo0QVFy.mjs} +14 -6
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-column.component-CDo0QVFy.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BGUPxGXP.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BYJpDQRs.mjs} +31 -16
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BYJpDQRs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-activity-definition.entity-Bvs1OfE_.mjs → acorex-modules-workflow-management-activity-definition.entity-B3DkgDQb.mjs} +10 -12
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-B3DkgDQb.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-index-Bx2uYraH.mjs +295 -0
- package/fesm2022/acorex-modules-workflow-management-index-Bx2uYraH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-index-DWIDQsWq.mjs → acorex-modules-workflow-management-index-C9Qc07oK.mjs} +125 -3
- package/fesm2022/acorex-modules-workflow-management-index-C9Qc07oK.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-index-D8fjNgQJ.mjs +726 -0
- package/fesm2022/acorex-modules-workflow-management-index-D8fjNgQJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs +56 -0
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-definition.entity-aJou58ED.mjs → acorex-modules-workflow-management-workflow-definition.entity-DqPVpcSv.mjs} +101 -140
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DqPVpcSv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-Cq7LE7u5.mjs → acorex-modules-workflow-management-workflow-instance.entity-D-KnWlsU.mjs} +10 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-D-KnWlsU.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-task-popover.component-CIakASVR.mjs → acorex-modules-workflow-management-workflow-task-popover.component-NpUx0sB5.mjs} +11 -7
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-NpUx0sB5.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +996 -423
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/organization-management/README.md +5 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +91 -16
- package/types/acorex-modules-asset-management.d.ts +214 -83
- package/types/acorex-modules-business-core.d.ts +8 -11
- package/types/acorex-modules-common.d.ts +20 -8
- package/types/acorex-modules-conversation.d.ts +1 -0
- package/types/acorex-modules-dashboard-management.d.ts +348 -177
- package/types/acorex-modules-data-management.d.ts +2 -2
- package/types/acorex-modules-document-management.d.ts +7 -4
- package/types/acorex-modules-financial-core.d.ts +26 -19
- package/types/acorex-modules-form-template-management.d.ts +3 -3
- package/types/acorex-modules-health-core.d.ts +23 -29
- package/types/acorex-modules-human-capital-management.d.ts +28 -2
- package/types/acorex-modules-learning-management.d.ts +242 -105
- package/types/acorex-modules-maintenance-management.d.ts +563 -41
- package/types/acorex-modules-measurement-core.d.ts +95 -33
- package/types/acorex-modules-notification-management.d.ts +7 -3
- package/types/acorex-modules-organization-management.d.ts +272 -109
- package/types/acorex-modules-security-management.d.ts +40 -1
- package/types/acorex-modules-task-management.d.ts +20 -15
- package/types/acorex-modules-workflow-management.d.ts +121 -15
- package/fesm2022/acorex-modules-ai-management-acorex-modules-ai-management-WuqoH4OL.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-agent.entity-DK9GNMdR.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-ai-delegated-agent-transcript-popup.component-CWXEW9yL.mjs.map +0 -1
- package/fesm2022/acorex-modules-ai-management-index-KX3TVRXr.mjs +0 -2
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-BNK6C-Ng.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-index-B2SncZAW.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-preview-question.command-DPzL8C44.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-acorex-modules-asset-management-BDs0ZgD5.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system-history.entity-CSCwWY_F.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system-type.entity-CcefMT8J.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type-section.entity-r_H1QGwp.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-cWVqpbHH.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset.entity-CamZGWTM.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-assetSystem.entity-Dq2ASslk.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-allergy-type.entity-CS8a-AUb.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-blood-type.entity-ZgFOuvG4.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-body-part.entity-JGLwrFE2.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-chronic-condition-type.entity-DrxEPQj1.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-disability-status.entity-UaAQFFMC.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-injury-type.entity-DcIn0rxz.mjs.map +0 -1
- package/fesm2022/acorex-modules-health-core-vaccination-type.entity-zYd6KLRC.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employee.entity-BRpqFRuI.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-employment-type.entity-7ZGZYxGM.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-B3Rk84bJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-OKu8_PP1.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-position-assignment.entity-D_C459kx.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-27VKYxw1.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate-type.entity-CBM6N-PD.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate.entity-BRBJQYji.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-course-type.entity-B1c6PDLq.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-course.entity-BN8XHAPz.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-learning-path.entity-8QlM3R4B.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill-level.entity-DXOWslpB.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill-matrix-widget-edit.component-CaeZ9P_I.mjs +0 -162
- package/fesm2022/acorex-modules-learning-management-skill-matrix-widget-edit.component-CaeZ9P_I.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill-matrix-widget-view.component-1oWMtdrN.mjs +0 -70
- package/fesm2022/acorex-modules-learning-management-skill-matrix-widget-view.component-1oWMtdrN.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill-matrix.component-_cFwIN-z.mjs +0 -468
- package/fesm2022/acorex-modules-learning-management-skill-matrix.component-_cFwIN-z.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill.entity-DrLts807.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training-definition.entity-NQqJ5avw.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training-type.entity-CoyDCeen.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training.entity-BCGn0T3H.mjs.map +0 -1
- package/fesm2022/acorex-modules-maintenance-management-failure-register.entity-D_lQrda5.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-business-unit-type.entity-C-EKX6Oy.mjs +0 -91
- package/fesm2022/acorex-modules-organization-management-business-unit-type.entity-C-EKX6Oy.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-chart.entity-bRxA8XHZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-BohMJQNi.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-definition.entity-S9Jlmr-o.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-eRTHzLDQ.mjs +0 -784
- package/fesm2022/acorex-modules-organization-management-org-chart.page-eRTHzLDQ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-DLPufeWz.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-mMZywr0X.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibilities-matrix.component-B06t1G1E.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-CMmr3wJa.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-CZ4MibH4.mjs +0 -88
- package/fesm2022/acorex-modules-organization-management-team-member-role.entity-CZ4MibH4.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team-member.entity-8sTjn5Jn.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-CGR0UlYl.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-DPSNAAct.mjs.map +0 -1
- package/fesm2022/acorex-modules-reservation-management-acorex-modules-reservation-management-BMemqW2V.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-C1H_GTqy.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-column.component-C8lgSjfc.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BGUPxGXP.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-activity-definition.entity-Bvs1OfE_.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-DWIDQsWq.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-aJou58ED.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-instance.entity-Cq7LE7u5.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-CIakASVR.mjs.map +0 -1
|
@@ -0,0 +1,1922 @@
|
|
|
1
|
+
import { AXPSystemStatuses, AXPStatusProvider, systemStatusToDefinition, AXPSystemStatusType, AXP_STATUS_PROVIDERS, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
|
2
|
+
import { AXPTaskBadgeProvider, AXPResourceAppointmentBoardProvider, AXP_TASK_BADGE_PROVIDERS, AXP_RESOURCE_APPOINTMENT_PROVIDER } from '@acorex/platform/layout/components';
|
|
3
|
+
import { AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
4
|
+
import { AXPCommandEventsService, AXPCommandExecutor, AXPRuntimeModule, provideCommandSetups, AXPCommandService } from '@acorex/platform/runtime';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { inject, DestroyRef, signal, Injectable, input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, Injector, NgModule } from '@angular/core';
|
|
7
|
+
import { AXPLayoutBuilderService } from '@acorex/platform/layout/builder';
|
|
8
|
+
import * as i4 from '@acorex/core/translation';
|
|
9
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
10
|
+
import * as i1 from '@acorex/components/button';
|
|
11
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
12
|
+
import * as i2 from '@acorex/components/decorators';
|
|
13
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
14
|
+
import * as i3 from '@angular/common';
|
|
15
|
+
import { CommonModule } from '@angular/common';
|
|
16
|
+
import { AXPCommonMenuKeys, AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG } from '@acorex/modules/common';
|
|
17
|
+
import { AXP_IDENTIFIER_RULES } from '@acorex/modules/identifier-management';
|
|
18
|
+
import { AXM_ORG_CHART_NODE_CONTRIBUTOR } from '@acorex/modules/organization-management';
|
|
19
|
+
import { AXP_MODULE_MANIFEST_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
20
|
+
import { AXPSessionService, AXPAuthGuard, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
21
|
+
import { ROUTES } from '@angular/router';
|
|
22
|
+
import { firstValueFrom } from 'rxjs';
|
|
23
|
+
import { AXDataSource } from '@acorex/cdk/common';
|
|
24
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/widget-core';
|
|
25
|
+
|
|
26
|
+
const config = {
|
|
27
|
+
i18n: 'human-capital-management',
|
|
28
|
+
module: 'HumanCapitalManagement',
|
|
29
|
+
};
|
|
30
|
+
const RootConfig = {
|
|
31
|
+
config,
|
|
32
|
+
module: {
|
|
33
|
+
route: 'human-capital-management',
|
|
34
|
+
name: config.module,
|
|
35
|
+
title: '@human-capital-management:module.title',
|
|
36
|
+
icon: 'fa-light fa-users',
|
|
37
|
+
},
|
|
38
|
+
entities: {
|
|
39
|
+
employee: {
|
|
40
|
+
name: 'Employee',
|
|
41
|
+
source: `${config.module}.Employee`,
|
|
42
|
+
title: '@human-capital-management:employees.entities.employee.title',
|
|
43
|
+
titlePlural: '@human-capital-management:employees.entities.employee.plural',
|
|
44
|
+
icon: 'fa-light fa-address-card',
|
|
45
|
+
},
|
|
46
|
+
employmentType: {
|
|
47
|
+
name: 'EmploymentType',
|
|
48
|
+
source: `${config.module}.EmploymentType`,
|
|
49
|
+
title: '@human-capital-management:employment-types.entities.employment-type.title',
|
|
50
|
+
titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',
|
|
51
|
+
icon: 'fa-light fa-file-signature',
|
|
52
|
+
},
|
|
53
|
+
positionAssignment: {
|
|
54
|
+
name: 'PositionAssignment',
|
|
55
|
+
source: `${config.module}.PositionAssignment`,
|
|
56
|
+
title: '@human-capital-management:position-assignments.entities.position-assignment.title',
|
|
57
|
+
titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',
|
|
58
|
+
icon: 'fa-light fa-user-tie-hair',
|
|
59
|
+
},
|
|
60
|
+
leaveType: {
|
|
61
|
+
name: 'LeaveType',
|
|
62
|
+
source: `${config.module}.LeaveType`,
|
|
63
|
+
title: '@human-capital-management:leave-types.entities.leave-type.title',
|
|
64
|
+
titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',
|
|
65
|
+
icon: 'fa-light fa-calendar-days',
|
|
66
|
+
},
|
|
67
|
+
leaveRequest: {
|
|
68
|
+
name: 'LeaveRequest',
|
|
69
|
+
source: `${config.module}.LeaveRequest`,
|
|
70
|
+
title: '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
71
|
+
titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',
|
|
72
|
+
icon: 'fa-light fa-plane-departure',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
pages: {
|
|
76
|
+
appointmentBoard: {
|
|
77
|
+
path: 'Boards/ResourceAppointment',
|
|
78
|
+
title: '@human-capital-management:leave-requests.menus.appointment-board.title',
|
|
79
|
+
icon: 'fa-light fa-calendar-lines',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// Entity exports - services and modules removed, handled by middleware
|
|
85
|
+
// Exporting entity types for use in feature components
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region ---- Task Badge Provider ----
|
|
89
|
+
class AXMLeaveRequestBadgeProvider extends AXPTaskBadgeProvider {
|
|
90
|
+
//#endregion
|
|
91
|
+
constructor() {
|
|
92
|
+
super();
|
|
93
|
+
//#region ---- Services & Dependencies ----
|
|
94
|
+
this.entityService = inject(AXPEntityService);
|
|
95
|
+
this.leaveRequestData = this.entityService
|
|
96
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)
|
|
97
|
+
.data();
|
|
98
|
+
this.commandEvents = inject(AXPCommandEventsService);
|
|
99
|
+
this.destroyRef = inject(DestroyRef);
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region ---- Signals & Properties ----
|
|
102
|
+
this.key = 'leave-request-badge';
|
|
103
|
+
this.count = signal(0, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
104
|
+
void this.refresh();
|
|
105
|
+
const unsubscribe = this.commandEvents.listen((event) => this.handleCommandEvent(event));
|
|
106
|
+
this.destroyRef.onDestroy(unsubscribe);
|
|
107
|
+
}
|
|
108
|
+
//#region ---- Badge Actions ----
|
|
109
|
+
/**
|
|
110
|
+
* Forces badge count recalculation by querying the leave request entity service.
|
|
111
|
+
*/
|
|
112
|
+
async refresh() {
|
|
113
|
+
const baseFilters = [
|
|
114
|
+
{
|
|
115
|
+
field: 'statusId',
|
|
116
|
+
operator: { type: 'equal' },
|
|
117
|
+
value: AXPSystemStatuses.Pending.name,
|
|
118
|
+
},
|
|
119
|
+
];
|
|
120
|
+
const result = await this.leaveRequestData.query({
|
|
121
|
+
skip: 0,
|
|
122
|
+
take: 99,
|
|
123
|
+
filter: {
|
|
124
|
+
logic: 'and',
|
|
125
|
+
filters: baseFilters,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
this.count.set(result.total);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Handles command execution events and refreshes the badge when targeted leave request commands succeed.
|
|
132
|
+
*/
|
|
133
|
+
async handleCommandEvent(event) {
|
|
134
|
+
if (!event || event.stage !== 'after' || !event.success) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
await this.refresh();
|
|
138
|
+
}
|
|
139
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestBadgeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
140
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestBadgeProvider }); }
|
|
141
|
+
}
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestBadgeProvider, decorators: [{
|
|
143
|
+
type: Injectable
|
|
144
|
+
}], ctorParameters: () => [] });
|
|
145
|
+
|
|
146
|
+
class AXMLeaveRequestResourceAppointmentProvider extends AXPResourceAppointmentBoardProvider {
|
|
147
|
+
constructor() {
|
|
148
|
+
super(...arguments);
|
|
149
|
+
this.entityService = inject(AXPEntityService);
|
|
150
|
+
}
|
|
151
|
+
get name() {
|
|
152
|
+
return 'leave-request';
|
|
153
|
+
}
|
|
154
|
+
get title() {
|
|
155
|
+
return '@human-capital-management:leave-requests.entities.leave-request.plural';
|
|
156
|
+
}
|
|
157
|
+
get icon() {
|
|
158
|
+
return RootConfig.entities.leaveRequest.icon;
|
|
159
|
+
}
|
|
160
|
+
async getList(filter) {
|
|
161
|
+
const leaveRequestDataAccessor = this.entityService
|
|
162
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)
|
|
163
|
+
.data();
|
|
164
|
+
const employeeDataAccessor = this.entityService
|
|
165
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
|
|
166
|
+
.data();
|
|
167
|
+
const fieldFilters = [];
|
|
168
|
+
if (filter?.range?.from) {
|
|
169
|
+
fieldFilters.push({
|
|
170
|
+
field: 'startDate',
|
|
171
|
+
operator: { type: 'gte' },
|
|
172
|
+
value: filter.range.from,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
if (filter?.range?.end) {
|
|
176
|
+
fieldFilters.push({
|
|
177
|
+
field: 'endDate',
|
|
178
|
+
operator: { type: 'lte' },
|
|
179
|
+
value: filter.range.end,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
const employee = await employeeDataAccessor.query();
|
|
183
|
+
const { items } = await leaveRequestDataAccessor.query({
|
|
184
|
+
skip: 0,
|
|
185
|
+
take: 1000,
|
|
186
|
+
...(fieldFilters.length
|
|
187
|
+
? {
|
|
188
|
+
filter: {
|
|
189
|
+
logic: 'and',
|
|
190
|
+
filters: fieldFilters,
|
|
191
|
+
},
|
|
192
|
+
}
|
|
193
|
+
: {}),
|
|
194
|
+
});
|
|
195
|
+
const result = employee.items.map((employee) => ({
|
|
196
|
+
id: employee.id,
|
|
197
|
+
title: employee.person?.fullName ?? '',
|
|
198
|
+
description: 'description', //TODO fill later
|
|
199
|
+
icon: 'icon',
|
|
200
|
+
appointments: items
|
|
201
|
+
.filter((item) => item.employeeId === employee.id)
|
|
202
|
+
.map((item) => ({
|
|
203
|
+
id: item.id,
|
|
204
|
+
title: item.leaveType?.title ?? '',
|
|
205
|
+
startDate: item.startDate,
|
|
206
|
+
endDate: item.endDate,
|
|
207
|
+
resourceId: item.employeeId,
|
|
208
|
+
description: item.reason,
|
|
209
|
+
allDay: false,
|
|
210
|
+
})),
|
|
211
|
+
}));
|
|
212
|
+
return result;
|
|
213
|
+
// const resourcesMap = new Map<string | number, AXPResourceAppointmentResource>();
|
|
214
|
+
// for (const leave of items) {
|
|
215
|
+
// const resourceId: string | number = leave.employeeId ?? 'unassigned';
|
|
216
|
+
// let resource = resourcesMap.get(resourceId);
|
|
217
|
+
// if (!resource) {
|
|
218
|
+
// resource = {
|
|
219
|
+
// id: resourceId,
|
|
220
|
+
// title: leave.employee?.person?.displayName ?? '@general:terms.people.employee',
|
|
221
|
+
// appointments: [],
|
|
222
|
+
// };
|
|
223
|
+
// resourcesMap.set(resourceId, resource);
|
|
224
|
+
// }
|
|
225
|
+
// const task: AXPResourceAppointmentItem = {
|
|
226
|
+
// id: leave.id,
|
|
227
|
+
// title: leave.leaveType?.title ?? '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
228
|
+
// description: leave.reason,
|
|
229
|
+
// startDate: leave.startDate,
|
|
230
|
+
// endDate: leave.endDate,
|
|
231
|
+
// allDay: false,
|
|
232
|
+
// resourceId,
|
|
233
|
+
// };
|
|
234
|
+
// resource.appointments.push(task);
|
|
235
|
+
// }
|
|
236
|
+
// return Array.from(resourcesMap.values());
|
|
237
|
+
}
|
|
238
|
+
async getStatuses() {
|
|
239
|
+
const pending = AXPSystemStatuses.Pending;
|
|
240
|
+
const approved = AXPSystemStatuses.Approved;
|
|
241
|
+
const rejected = AXPSystemStatuses.Rejected;
|
|
242
|
+
const cancelled = AXPSystemStatuses.Cancelled;
|
|
243
|
+
const statuses = [
|
|
244
|
+
{ key: pending.name, index: 0, title: pending.title, color: pending.color },
|
|
245
|
+
{ key: approved.name, index: 1, title: approved.title, color: approved.color },
|
|
246
|
+
{ key: rejected.name, index: 2, title: rejected.title, color: rejected.color },
|
|
247
|
+
{ key: cancelled.name, index: 3, title: cancelled.title, color: cancelled.color },
|
|
248
|
+
];
|
|
249
|
+
return statuses;
|
|
250
|
+
}
|
|
251
|
+
async getActions(
|
|
252
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
253
|
+
context) {
|
|
254
|
+
// Actions can be wired to existing approve/reject/cancel commands later.
|
|
255
|
+
// For now, return an empty list so the board works without a context menu.
|
|
256
|
+
return [];
|
|
257
|
+
}
|
|
258
|
+
async executeCommand(
|
|
259
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
260
|
+
command) {
|
|
261
|
+
// No-op for now – commands are handled by existing leave request commands elsewhere.
|
|
262
|
+
return { success: true };
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
class AXPLeaveRequestDialogService {
|
|
267
|
+
constructor() {
|
|
268
|
+
this.layoutBuilder = inject(AXPLayoutBuilderService);
|
|
269
|
+
this.translationService = inject(AXTranslationService);
|
|
270
|
+
}
|
|
271
|
+
async showRejectionDialog() {
|
|
272
|
+
const result = await this.layoutBuilder
|
|
273
|
+
.create()
|
|
274
|
+
.dialog(dialog => {
|
|
275
|
+
dialog
|
|
276
|
+
.setTitle('@general:actions.reject.title')
|
|
277
|
+
.setMessage('@human-capital-management:leave-requests.components.rejection-dialog.message')
|
|
278
|
+
.setContext({ reason: '', note: '' })
|
|
279
|
+
.content(flex => {
|
|
280
|
+
flex
|
|
281
|
+
.setDirection('column')
|
|
282
|
+
.formField('@human-capital-management:leave-requests.components.rejection-dialog.fields.reason-label', field => {
|
|
283
|
+
field.path('reason');
|
|
284
|
+
field.largeTextBox({
|
|
285
|
+
placeholder: '@human-capital-management:leave-requests.components.rejection-dialog.fields.reason-placeholder',
|
|
286
|
+
maxLength: 500
|
|
287
|
+
});
|
|
288
|
+
})
|
|
289
|
+
.formField('@human-capital-management:leave-requests.components.rejection-dialog.fields.note-label', field => {
|
|
290
|
+
field.path('note');
|
|
291
|
+
field.largeTextBox({
|
|
292
|
+
placeholder: '@human-capital-management:leave-requests.components.rejection-dialog.fields.note-placeholder',
|
|
293
|
+
maxLength: 1000
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
})
|
|
297
|
+
.setActions(actions => {
|
|
298
|
+
actions.cancel('@general:actions.cancel.title').submit('@general:actions.reject.title');
|
|
299
|
+
})
|
|
300
|
+
.onAction(async (dialogRef) => {
|
|
301
|
+
const context = dialogRef.context();
|
|
302
|
+
const action = dialogRef.action();
|
|
303
|
+
if (!context || action === 'cancel') {
|
|
304
|
+
return { reason: undefined, note: undefined, cancelled: true };
|
|
305
|
+
}
|
|
306
|
+
return {
|
|
307
|
+
reason: context['reason'],
|
|
308
|
+
note: context['note'],
|
|
309
|
+
cancelled: false
|
|
310
|
+
};
|
|
311
|
+
});
|
|
312
|
+
})
|
|
313
|
+
.show();
|
|
314
|
+
return result;
|
|
315
|
+
}
|
|
316
|
+
async showCancellationDialog() {
|
|
317
|
+
const result = await this.layoutBuilder
|
|
318
|
+
.create()
|
|
319
|
+
.dialog(dialog => {
|
|
320
|
+
dialog
|
|
321
|
+
.setTitle('@general:actions.cancel.title')
|
|
322
|
+
.setMessage('@human-capital-management:leave-requests.components.cancellation-dialog.message')
|
|
323
|
+
.setContext({ reason: '', note: '' })
|
|
324
|
+
.content(flex => {
|
|
325
|
+
flex
|
|
326
|
+
.setDirection('column')
|
|
327
|
+
.formField('@human-capital-management:leave-requests.components.cancellation-dialog.fields.reason-label', field => {
|
|
328
|
+
field.path('reason');
|
|
329
|
+
field.largeTextBox({
|
|
330
|
+
placeholder: '@human-capital-management:leave-requests.components.cancellation-dialog.fields.reason-placeholder',
|
|
331
|
+
maxLength: 500
|
|
332
|
+
});
|
|
333
|
+
})
|
|
334
|
+
.formField('@human-capital-management:leave-requests.components.cancellation-dialog.fields.note-label', field => {
|
|
335
|
+
field.path('note');
|
|
336
|
+
field.largeTextBox({
|
|
337
|
+
placeholder: '@human-capital-management:leave-requests.components.cancellation-dialog.fields.note-placeholder',
|
|
338
|
+
maxLength: 1000
|
|
339
|
+
});
|
|
340
|
+
});
|
|
341
|
+
})
|
|
342
|
+
.setActions(actions => {
|
|
343
|
+
actions.cancel('@general:actions.close.title').submit('@general:actions.cancel.title');
|
|
344
|
+
})
|
|
345
|
+
.onAction(async (dialogRef) => {
|
|
346
|
+
const context = dialogRef.context();
|
|
347
|
+
const action = dialogRef.action();
|
|
348
|
+
if (!context || action === 'cancel') {
|
|
349
|
+
return { reason: undefined, note: undefined, cancelled: true };
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
reason: context['reason'],
|
|
353
|
+
note: context['note'],
|
|
354
|
+
cancelled: false
|
|
355
|
+
};
|
|
356
|
+
});
|
|
357
|
+
})
|
|
358
|
+
.show();
|
|
359
|
+
return result;
|
|
360
|
+
}
|
|
361
|
+
async showApprovalDialog() {
|
|
362
|
+
const result = await this.layoutBuilder
|
|
363
|
+
.create()
|
|
364
|
+
.dialog(dialog => {
|
|
365
|
+
dialog
|
|
366
|
+
.setTitle('@general:actions.approve.title')
|
|
367
|
+
.setMessage('@human-capital-management:leave-requests.components.approval-dialog.message')
|
|
368
|
+
.setContext({ note: '' })
|
|
369
|
+
.content(flex => {
|
|
370
|
+
flex
|
|
371
|
+
.setDirection('column')
|
|
372
|
+
.formField('@human-capital-management:leave-requests.components.approval-dialog.fields.note-label', field => {
|
|
373
|
+
field.path('note');
|
|
374
|
+
field.largeTextBox({
|
|
375
|
+
placeholder: '@human-capital-management:leave-requests.components.approval-dialog.fields.note-placeholder',
|
|
376
|
+
maxLength: 1000
|
|
377
|
+
});
|
|
378
|
+
});
|
|
379
|
+
})
|
|
380
|
+
.setActions(actions => {
|
|
381
|
+
actions.cancel('@general:actions.cancel.title').submit('@general:actions.approve.title');
|
|
382
|
+
})
|
|
383
|
+
.onAction(async (dialogRef) => {
|
|
384
|
+
const context = dialogRef.context();
|
|
385
|
+
const action = dialogRef.action();
|
|
386
|
+
if (!context || action === 'cancel') {
|
|
387
|
+
return { note: undefined, cancelled: true };
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
note: context['note'],
|
|
391
|
+
cancelled: false
|
|
392
|
+
};
|
|
393
|
+
});
|
|
394
|
+
})
|
|
395
|
+
.show();
|
|
396
|
+
return result;
|
|
397
|
+
}
|
|
398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPLeaveRequestDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
399
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPLeaveRequestDialogService, providedIn: 'root' }); }
|
|
400
|
+
}
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPLeaveRequestDialogService, decorators: [{
|
|
402
|
+
type: Injectable,
|
|
403
|
+
args: [{
|
|
404
|
+
providedIn: 'root'
|
|
405
|
+
}]
|
|
406
|
+
}] });
|
|
407
|
+
|
|
408
|
+
class AXMLeaveRequestTaskPopoverComponent {
|
|
409
|
+
constructor() {
|
|
410
|
+
this.task = input.required(...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
|
|
411
|
+
this.commandExecutor = inject(AXPCommandExecutor);
|
|
412
|
+
this.dialogService = inject(AXPLeaveRequestDialogService);
|
|
413
|
+
this.taskData = computed(() => {
|
|
414
|
+
const task = this.task();
|
|
415
|
+
return (task.data ||
|
|
416
|
+
task.payload);
|
|
417
|
+
}, ...(ngDevMode ? [{ debugName: "taskData" }] : /* istanbul ignore next */ []));
|
|
418
|
+
this.employeeName = computed(() => {
|
|
419
|
+
const data = this.taskData();
|
|
420
|
+
return this.task().reporter?.fullName || 'Unknown';
|
|
421
|
+
}, ...(ngDevMode ? [{ debugName: "employeeName" }] : /* istanbul ignore next */ []));
|
|
422
|
+
this.managerName = computed(() => {
|
|
423
|
+
const data = this.taskData();
|
|
424
|
+
return data?.employee?.manager?.person?.fullName || '';
|
|
425
|
+
}, ...(ngDevMode ? [{ debugName: "managerName" }] : /* istanbul ignore next */ []));
|
|
426
|
+
this.leaveType = computed(() => {
|
|
427
|
+
const data = this.taskData();
|
|
428
|
+
// Extract leave type from task title or data
|
|
429
|
+
const title = this.task().title || '';
|
|
430
|
+
const parts = title.split(' - ');
|
|
431
|
+
return parts.length > 1 ? parts[1] : data?.leaveType?.title || 'N/A';
|
|
432
|
+
}, ...(ngDevMode ? [{ debugName: "leaveType" }] : /* istanbul ignore next */ []));
|
|
433
|
+
this.canApprove = computed(() => {
|
|
434
|
+
const statusId = this.task().status?.id;
|
|
435
|
+
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Rejected.name;
|
|
436
|
+
}, ...(ngDevMode ? [{ debugName: "canApprove" }] : /* istanbul ignore next */ []));
|
|
437
|
+
this.canReject = computed(() => {
|
|
438
|
+
const statusId = this.task().status?.id;
|
|
439
|
+
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Approved.name;
|
|
440
|
+
}, ...(ngDevMode ? [{ debugName: "canReject" }] : /* istanbul ignore next */ []));
|
|
441
|
+
this.canCancel = computed(() => {
|
|
442
|
+
const statusId = this.task().status?.id;
|
|
443
|
+
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Approved.name;
|
|
444
|
+
}, ...(ngDevMode ? [{ debugName: "canCancel" }] : /* istanbul ignore next */ []));
|
|
445
|
+
}
|
|
446
|
+
formatDate(date) {
|
|
447
|
+
return new Intl.DateTimeFormat('en-US', {
|
|
448
|
+
year: 'numeric',
|
|
449
|
+
month: 'short',
|
|
450
|
+
day: 'numeric',
|
|
451
|
+
}).format(new Date(date));
|
|
452
|
+
}
|
|
453
|
+
calculateDuration() {
|
|
454
|
+
const start = new Date(this.task().startDate);
|
|
455
|
+
const end = new Date(this.task().endDate);
|
|
456
|
+
const diffTime = Math.abs(end.getTime() - start.getTime());
|
|
457
|
+
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
|
458
|
+
return diffDays + 1; // Include both start and end days
|
|
459
|
+
}
|
|
460
|
+
async handleApprove() {
|
|
461
|
+
const task = this.task();
|
|
462
|
+
const leaveRequestId = task.id;
|
|
463
|
+
try {
|
|
464
|
+
const dialogResult = await this.dialogService.showApprovalDialog();
|
|
465
|
+
if (dialogResult?.cancelled) {
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
const commandKey = 'HumanCapitalManagement.LeaveRequest:Approve';
|
|
469
|
+
const result = await this.commandExecutor.execute(commandKey, {
|
|
470
|
+
id: leaveRequestId,
|
|
471
|
+
reason: dialogResult?.reason,
|
|
472
|
+
note: dialogResult?.note,
|
|
473
|
+
});
|
|
474
|
+
if (result?.success) {
|
|
475
|
+
// Optionally emit an event or refresh the task
|
|
476
|
+
console.log('Leave request approved successfully');
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
catch (error) {
|
|
480
|
+
console.error('Failed to approve leave request:', error);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
async handleReject() {
|
|
484
|
+
const task = this.task();
|
|
485
|
+
const leaveRequestId = task.id;
|
|
486
|
+
try {
|
|
487
|
+
const dialogResult = await this.dialogService.showRejectionDialog();
|
|
488
|
+
if (dialogResult?.cancelled) {
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
const commandKey = 'HumanCapitalManagement.LeaveRequest:Reject';
|
|
492
|
+
const result = await this.commandExecutor.execute(commandKey, {
|
|
493
|
+
id: leaveRequestId,
|
|
494
|
+
reason: dialogResult?.reason,
|
|
495
|
+
note: dialogResult?.note,
|
|
496
|
+
});
|
|
497
|
+
if (result?.success) {
|
|
498
|
+
console.log('Leave request rejected successfully');
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
catch (error) {
|
|
502
|
+
console.error('Failed to reject leave request:', error);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
async handleCancel() {
|
|
506
|
+
const task = this.task();
|
|
507
|
+
const leaveRequestId = task.id;
|
|
508
|
+
try {
|
|
509
|
+
const dialogResult = await this.dialogService.showCancellationDialog();
|
|
510
|
+
if (dialogResult?.cancelled) {
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
const commandKey = 'HumanCapitalManagement.LeaveRequest:Cancel';
|
|
514
|
+
const result = await this.commandExecutor.execute(commandKey, {
|
|
515
|
+
id: leaveRequestId,
|
|
516
|
+
reason: dialogResult?.reason,
|
|
517
|
+
note: dialogResult?.note,
|
|
518
|
+
});
|
|
519
|
+
if (result?.success) {
|
|
520
|
+
console.log('Leave request cancelled successfully');
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
catch (error) {
|
|
524
|
+
console.error('Failed to cancel leave request:', error);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
528
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMLeaveRequestTaskPopoverComponent, isStandalone: true, selector: "axm-leave-request-task-popover", inputs: { task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
529
|
+
<div class="leave-request-popover">
|
|
530
|
+
<!-- Employee Info -->
|
|
531
|
+
<div class="leave-request-popover__section">
|
|
532
|
+
<div class="leave-request-popover__section-header">
|
|
533
|
+
<i class="fa-light fa-user"></i>
|
|
534
|
+
<span>Employee Information</span>
|
|
535
|
+
</div>
|
|
536
|
+
<div class="leave-request-popover__section-content">
|
|
537
|
+
<div class="leave-request-popover__info-row">
|
|
538
|
+
<span class="leave-request-popover__label">Employee:</span>
|
|
539
|
+
<span class="leave-request-popover__value">{{ employeeName() }}</span>
|
|
540
|
+
</div>
|
|
541
|
+
@if (managerName(); as manager) {
|
|
542
|
+
<div class="leave-request-popover__info-row">
|
|
543
|
+
<span class="leave-request-popover__label">Manager:</span>
|
|
544
|
+
<span class="leave-request-popover__value">{{ manager }}</span>
|
|
545
|
+
</div>
|
|
546
|
+
}
|
|
547
|
+
</div>
|
|
548
|
+
</div>
|
|
549
|
+
|
|
550
|
+
<!-- Leave Details -->
|
|
551
|
+
<div class="leave-request-popover__section">
|
|
552
|
+
<div class="leave-request-popover__section-header">
|
|
553
|
+
<i class="fa-light fa-calendar"></i>
|
|
554
|
+
<span>Leave Details</span>
|
|
555
|
+
</div>
|
|
556
|
+
<div class="leave-request-popover__section-content">
|
|
557
|
+
<div class="leave-request-popover__info-row">
|
|
558
|
+
<span class="leave-request-popover__label">Leave Type:</span>
|
|
559
|
+
<span class="leave-request-popover__value">{{ leaveType() }}</span>
|
|
560
|
+
</div>
|
|
561
|
+
<div class="leave-request-popover__info-row">
|
|
562
|
+
<span class="leave-request-popover__label">Start Date:</span>
|
|
563
|
+
<span class="leave-request-popover__value">{{ formatDate(task().startDate) }}</span>
|
|
564
|
+
</div>
|
|
565
|
+
<div class="leave-request-popover__info-row">
|
|
566
|
+
<span class="leave-request-popover__label">End Date:</span>
|
|
567
|
+
<span class="leave-request-popover__value">{{ formatDate(task().endDate) }}</span>
|
|
568
|
+
</div>
|
|
569
|
+
<div class="leave-request-popover__info-row">
|
|
570
|
+
<span class="leave-request-popover__label">Duration:</span>
|
|
571
|
+
<span class="leave-request-popover__value">{{ calculateDuration() }} days</span>
|
|
572
|
+
</div>
|
|
573
|
+
</div>
|
|
574
|
+
</div>
|
|
575
|
+
|
|
576
|
+
<!-- Reason -->
|
|
577
|
+
@if (task().description) {
|
|
578
|
+
<div class="leave-request-popover__section">
|
|
579
|
+
<div class="leave-request-popover__section-header">
|
|
580
|
+
<i class="fa-light fa-note-sticky"></i>
|
|
581
|
+
<span>Reason</span>
|
|
582
|
+
</div>
|
|
583
|
+
<div class="leave-request-popover__section-content">
|
|
584
|
+
<p class="leave-request-popover__reason">{{ task().description }}</p>
|
|
585
|
+
</div>
|
|
586
|
+
</div>
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
<!-- Status -->
|
|
590
|
+
<div class="leave-request-popover__section">
|
|
591
|
+
<div class="leave-request-popover__section-header">
|
|
592
|
+
<i class="fa-light fa-flag"></i>
|
|
593
|
+
<span>Status</span>
|
|
594
|
+
</div>
|
|
595
|
+
<div class="leave-request-popover__section-content">
|
|
596
|
+
<div class="leave-request-popover__status-badge" [attr.data-status]="task().status.id">
|
|
597
|
+
{{ task().status.title }}
|
|
598
|
+
</div>
|
|
599
|
+
</div>
|
|
600
|
+
</div>
|
|
601
|
+
|
|
602
|
+
<!-- Actions -->
|
|
603
|
+
<div class="leave-request-popover__actions">
|
|
604
|
+
@if (canApprove()) {
|
|
605
|
+
<ax-button
|
|
606
|
+
[color]="'success'"
|
|
607
|
+
[look]="'blank'"
|
|
608
|
+
[text]="'@general:actions.approve.title' | translate | async"
|
|
609
|
+
(onClick)="handleApprove()"
|
|
610
|
+
class="leave-request-popover__action-btn"
|
|
611
|
+
>
|
|
612
|
+
<ax-prefix>
|
|
613
|
+
<i class="fa-light fa-check"></i>
|
|
614
|
+
</ax-prefix>
|
|
615
|
+
</ax-button>
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
@if (canReject()) {
|
|
619
|
+
<ax-button
|
|
620
|
+
[color]="'danger'"
|
|
621
|
+
[look]="'blank'"
|
|
622
|
+
[text]="'@general:actions.reject.title' | translate | async"
|
|
623
|
+
(onClick)="handleReject()"
|
|
624
|
+
class="leave-request-popover__action-btn"
|
|
625
|
+
>
|
|
626
|
+
<ax-prefix>
|
|
627
|
+
<i class="fa-light fa-xmark"></i>
|
|
628
|
+
</ax-prefix>
|
|
629
|
+
</ax-button>
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
@if (canCancel()) {
|
|
633
|
+
<ax-button
|
|
634
|
+
[color]="'secondary'"
|
|
635
|
+
[look]="'blank'"
|
|
636
|
+
[text]="'@general:actions.cancel.title' | translate | async"
|
|
637
|
+
(onClick)="handleCancel()"
|
|
638
|
+
class="leave-request-popover__action-btn"
|
|
639
|
+
>
|
|
640
|
+
<ax-prefix>
|
|
641
|
+
<i class="fa-light fa-ban"></i>
|
|
642
|
+
</ax-prefix>
|
|
643
|
+
</ax-button>
|
|
644
|
+
}
|
|
645
|
+
</div>
|
|
646
|
+
</div>
|
|
647
|
+
`, isInline: true, styles: [".leave-request-popover{padding:12px;display:flex;flex-direction:column;gap:10px;min-width:280px;max-width:360px}.leave-request-popover__section{display:flex;flex-direction:column;gap:6px}.leave-request-popover__section-header{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--ax-sys-color-text-primary);padding-bottom:6px;border-bottom:1px solid var(--ax-sys-color-border)}.leave-request-popover__section-header i{font-size:13px;color:var(--ax-sys-color-text-neutral-600)}.leave-request-popover__section-content{display:flex;flex-direction:column;gap:6px}.leave-request-popover__info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4}.leave-request-popover__label{color:var(--ax-sys-color-text-neutral-600);font-weight:500;flex-shrink:0}.leave-request-popover__value{color:var(--ax-sys-color-text-primary);text-align:right;word-break:break-word}.leave-request-popover__reason{margin:0;padding:8px;background:var(--ax-sys-color-lighter-surface);border-radius:4px;font-size:12px;line-height:1.4;color:var(--ax-sys-color-text-primary)}.leave-request-popover__status-badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.leave-request-popover__status-badge[data-status=pending]{background:var(--ax-sys-color-warning-lightest);color:var(--ax-sys-color-warning)}.leave-request-popover__status-badge[data-status=approved]{background:var(--ax-sys-color-success-lightest);color:var(--ax-sys-color-success)}.leave-request-popover__status-badge[data-status=rejected]{background:var(--ax-sys-color-danger-lightest);color:var(--ax-sys-color-danger)}.leave-request-popover__status-badge[data-status=cancelled]{background:var(--ax-sys-color-neutral-lightest);color:var(--ax-sys-color-neutral)}.leave-request-popover__actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.leave-request-popover__action-btn{flex:1;min-width:90px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
648
|
+
}
|
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, decorators: [{
|
|
650
|
+
type: Component,
|
|
651
|
+
args: [{ selector: 'axm-leave-request-task-popover', template: `
|
|
652
|
+
<div class="leave-request-popover">
|
|
653
|
+
<!-- Employee Info -->
|
|
654
|
+
<div class="leave-request-popover__section">
|
|
655
|
+
<div class="leave-request-popover__section-header">
|
|
656
|
+
<i class="fa-light fa-user"></i>
|
|
657
|
+
<span>Employee Information</span>
|
|
658
|
+
</div>
|
|
659
|
+
<div class="leave-request-popover__section-content">
|
|
660
|
+
<div class="leave-request-popover__info-row">
|
|
661
|
+
<span class="leave-request-popover__label">Employee:</span>
|
|
662
|
+
<span class="leave-request-popover__value">{{ employeeName() }}</span>
|
|
663
|
+
</div>
|
|
664
|
+
@if (managerName(); as manager) {
|
|
665
|
+
<div class="leave-request-popover__info-row">
|
|
666
|
+
<span class="leave-request-popover__label">Manager:</span>
|
|
667
|
+
<span class="leave-request-popover__value">{{ manager }}</span>
|
|
668
|
+
</div>
|
|
669
|
+
}
|
|
670
|
+
</div>
|
|
671
|
+
</div>
|
|
672
|
+
|
|
673
|
+
<!-- Leave Details -->
|
|
674
|
+
<div class="leave-request-popover__section">
|
|
675
|
+
<div class="leave-request-popover__section-header">
|
|
676
|
+
<i class="fa-light fa-calendar"></i>
|
|
677
|
+
<span>Leave Details</span>
|
|
678
|
+
</div>
|
|
679
|
+
<div class="leave-request-popover__section-content">
|
|
680
|
+
<div class="leave-request-popover__info-row">
|
|
681
|
+
<span class="leave-request-popover__label">Leave Type:</span>
|
|
682
|
+
<span class="leave-request-popover__value">{{ leaveType() }}</span>
|
|
683
|
+
</div>
|
|
684
|
+
<div class="leave-request-popover__info-row">
|
|
685
|
+
<span class="leave-request-popover__label">Start Date:</span>
|
|
686
|
+
<span class="leave-request-popover__value">{{ formatDate(task().startDate) }}</span>
|
|
687
|
+
</div>
|
|
688
|
+
<div class="leave-request-popover__info-row">
|
|
689
|
+
<span class="leave-request-popover__label">End Date:</span>
|
|
690
|
+
<span class="leave-request-popover__value">{{ formatDate(task().endDate) }}</span>
|
|
691
|
+
</div>
|
|
692
|
+
<div class="leave-request-popover__info-row">
|
|
693
|
+
<span class="leave-request-popover__label">Duration:</span>
|
|
694
|
+
<span class="leave-request-popover__value">{{ calculateDuration() }} days</span>
|
|
695
|
+
</div>
|
|
696
|
+
</div>
|
|
697
|
+
</div>
|
|
698
|
+
|
|
699
|
+
<!-- Reason -->
|
|
700
|
+
@if (task().description) {
|
|
701
|
+
<div class="leave-request-popover__section">
|
|
702
|
+
<div class="leave-request-popover__section-header">
|
|
703
|
+
<i class="fa-light fa-note-sticky"></i>
|
|
704
|
+
<span>Reason</span>
|
|
705
|
+
</div>
|
|
706
|
+
<div class="leave-request-popover__section-content">
|
|
707
|
+
<p class="leave-request-popover__reason">{{ task().description }}</p>
|
|
708
|
+
</div>
|
|
709
|
+
</div>
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
<!-- Status -->
|
|
713
|
+
<div class="leave-request-popover__section">
|
|
714
|
+
<div class="leave-request-popover__section-header">
|
|
715
|
+
<i class="fa-light fa-flag"></i>
|
|
716
|
+
<span>Status</span>
|
|
717
|
+
</div>
|
|
718
|
+
<div class="leave-request-popover__section-content">
|
|
719
|
+
<div class="leave-request-popover__status-badge" [attr.data-status]="task().status.id">
|
|
720
|
+
{{ task().status.title }}
|
|
721
|
+
</div>
|
|
722
|
+
</div>
|
|
723
|
+
</div>
|
|
724
|
+
|
|
725
|
+
<!-- Actions -->
|
|
726
|
+
<div class="leave-request-popover__actions">
|
|
727
|
+
@if (canApprove()) {
|
|
728
|
+
<ax-button
|
|
729
|
+
[color]="'success'"
|
|
730
|
+
[look]="'blank'"
|
|
731
|
+
[text]="'@general:actions.approve.title' | translate | async"
|
|
732
|
+
(onClick)="handleApprove()"
|
|
733
|
+
class="leave-request-popover__action-btn"
|
|
734
|
+
>
|
|
735
|
+
<ax-prefix>
|
|
736
|
+
<i class="fa-light fa-check"></i>
|
|
737
|
+
</ax-prefix>
|
|
738
|
+
</ax-button>
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
@if (canReject()) {
|
|
742
|
+
<ax-button
|
|
743
|
+
[color]="'danger'"
|
|
744
|
+
[look]="'blank'"
|
|
745
|
+
[text]="'@general:actions.reject.title' | translate | async"
|
|
746
|
+
(onClick)="handleReject()"
|
|
747
|
+
class="leave-request-popover__action-btn"
|
|
748
|
+
>
|
|
749
|
+
<ax-prefix>
|
|
750
|
+
<i class="fa-light fa-xmark"></i>
|
|
751
|
+
</ax-prefix>
|
|
752
|
+
</ax-button>
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
@if (canCancel()) {
|
|
756
|
+
<ax-button
|
|
757
|
+
[color]="'secondary'"
|
|
758
|
+
[look]="'blank'"
|
|
759
|
+
[text]="'@general:actions.cancel.title' | translate | async"
|
|
760
|
+
(onClick)="handleCancel()"
|
|
761
|
+
class="leave-request-popover__action-btn"
|
|
762
|
+
>
|
|
763
|
+
<ax-prefix>
|
|
764
|
+
<i class="fa-light fa-ban"></i>
|
|
765
|
+
</ax-prefix>
|
|
766
|
+
</ax-button>
|
|
767
|
+
}
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule], styles: [".leave-request-popover{padding:12px;display:flex;flex-direction:column;gap:10px;min-width:280px;max-width:360px}.leave-request-popover__section{display:flex;flex-direction:column;gap:6px}.leave-request-popover__section-header{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--ax-sys-color-text-primary);padding-bottom:6px;border-bottom:1px solid var(--ax-sys-color-border)}.leave-request-popover__section-header i{font-size:13px;color:var(--ax-sys-color-text-neutral-600)}.leave-request-popover__section-content{display:flex;flex-direction:column;gap:6px}.leave-request-popover__info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:12px;line-height:1.4}.leave-request-popover__label{color:var(--ax-sys-color-text-neutral-600);font-weight:500;flex-shrink:0}.leave-request-popover__value{color:var(--ax-sys-color-text-primary);text-align:right;word-break:break-word}.leave-request-popover__reason{margin:0;padding:8px;background:var(--ax-sys-color-lighter-surface);border-radius:4px;font-size:12px;line-height:1.4;color:var(--ax-sys-color-text-primary)}.leave-request-popover__status-badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:500;text-transform:capitalize}.leave-request-popover__status-badge[data-status=pending]{background:var(--ax-sys-color-warning-lightest);color:var(--ax-sys-color-warning)}.leave-request-popover__status-badge[data-status=approved]{background:var(--ax-sys-color-success-lightest);color:var(--ax-sys-color-success)}.leave-request-popover__status-badge[data-status=rejected]{background:var(--ax-sys-color-danger-lightest);color:var(--ax-sys-color-danger)}.leave-request-popover__status-badge[data-status=cancelled]{background:var(--ax-sys-color-neutral-lightest);color:var(--ax-sys-color-neutral)}.leave-request-popover__actions{display:flex;gap:6px;flex-wrap:wrap;padding-top:8px;border-top:1px solid var(--ax-sys-color-border)}.leave-request-popover__action-btn{flex:1;min-width:90px}\n"] }]
|
|
771
|
+
}], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
772
|
+
|
|
773
|
+
const AXPHumanCapitalManagementFeatureKeys = {
|
|
774
|
+
EmployeeManagement: 'HumanCapitalManagement:Feature:Employee.Management',
|
|
775
|
+
LeaveManagement: 'HumanCapitalManagement:Feature:Leave.Management',
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
//#region ---- Imports ----
|
|
779
|
+
//#endregion
|
|
780
|
+
//#region ---- Feature Definition Provider ----
|
|
781
|
+
/**
|
|
782
|
+
* Human Capital Management Feature Definition Provider.
|
|
783
|
+
* Provides feature definitions for the Human Capital Management module.
|
|
784
|
+
*/
|
|
785
|
+
class AXPHumanCapitalManagementFeatureDefinitionProvider {
|
|
786
|
+
async provide(context) {
|
|
787
|
+
context.addFeature(AXPHumanCapitalManagementFeatureKeys.EmployeeManagement, {
|
|
788
|
+
title: '@human-capital-management:features.employee-management.title',
|
|
789
|
+
description: '@human-capital-management:features.employee-management.description',
|
|
790
|
+
defaultValue: true,
|
|
791
|
+
type: 'boolean',
|
|
792
|
+
});
|
|
793
|
+
context.addFeature(AXPHumanCapitalManagementFeatureKeys.LeaveManagement, {
|
|
794
|
+
title: '@human-capital-management:features.leave-management.title',
|
|
795
|
+
description: '@human-capital-management:features.leave-management.description',
|
|
796
|
+
defaultValue: true,
|
|
797
|
+
type: 'boolean',
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
//#endregion
|
|
802
|
+
|
|
803
|
+
const AXPHumanCapitalManagementCommandKeys = {
|
|
804
|
+
PositionAssignment: {
|
|
805
|
+
Assign: 'HumanCapitalManagement.PositionAssignment:Assign',
|
|
806
|
+
Revoke: 'HumanCapitalManagement.PositionAssignment:Revoke',
|
|
807
|
+
},
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
class AXMHumanCapitalModuleEntityProvider {
|
|
811
|
+
constructor() {
|
|
812
|
+
this.injector = inject(Injector);
|
|
813
|
+
}
|
|
814
|
+
preload() {
|
|
815
|
+
const module = RootConfig.module.name;
|
|
816
|
+
return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
|
|
817
|
+
module: module,
|
|
818
|
+
entity: entity.name,
|
|
819
|
+
}));
|
|
820
|
+
}
|
|
821
|
+
async get(moduleName, entityName) {
|
|
822
|
+
if (moduleName == RootConfig.module.name) {
|
|
823
|
+
switch (entityName) {
|
|
824
|
+
case RootConfig.entities.employee.name:
|
|
825
|
+
return (await import('./acorex-modules-human-capital-management-employee.entity-DjMQm3VC.mjs')).factory();
|
|
826
|
+
case RootConfig.entities.employmentType.name:
|
|
827
|
+
return (await import('./acorex-modules-human-capital-management-employment-type.entity-v8WzEHiE.mjs')).factory();
|
|
828
|
+
case RootConfig.entities.positionAssignment?.name:
|
|
829
|
+
return (await import('./acorex-modules-human-capital-management-position-assignment.entity-f0IDrLSn.mjs')).factory();
|
|
830
|
+
case RootConfig.entities.leaveType.name:
|
|
831
|
+
return (await import('./acorex-modules-human-capital-management-leave-type.entity-Bpfd_hNb.mjs')).factory();
|
|
832
|
+
case RootConfig.entities.leaveRequest.name:
|
|
833
|
+
return (await import('./acorex-modules-human-capital-management-leave-request.entity-B9Bf-Nnm.mjs')).factory();
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
return null;
|
|
837
|
+
}
|
|
838
|
+
async list() {
|
|
839
|
+
const m = RootConfig.module.name;
|
|
840
|
+
return Promise.resolve(Object.values(RootConfig.entities).map((e) => ({ name: e.name, module: m })));
|
|
841
|
+
}
|
|
842
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
843
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalModuleEntityProvider }); }
|
|
844
|
+
}
|
|
845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalModuleEntityProvider, decorators: [{
|
|
846
|
+
type: Injectable
|
|
847
|
+
}] });
|
|
848
|
+
|
|
849
|
+
//#region ---- Imports ----
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region ---- Leave Request Status Provider ----
|
|
852
|
+
/**
|
|
853
|
+
* Leave request status provider defining lifecycle states: Pending, Approved, Rejected, Cancelled.
|
|
854
|
+
* Used by the status plugin to manage leave request status transitions and metadata.
|
|
855
|
+
*/
|
|
856
|
+
class AXMLeaveRequestStatusProvider extends AXPStatusProvider {
|
|
857
|
+
constructor() {
|
|
858
|
+
super(...arguments);
|
|
859
|
+
this.key = 'human-capital-management.status.leave-request';
|
|
860
|
+
this.statuses = [
|
|
861
|
+
systemStatusToDefinition(AXPSystemStatusType.Pending, {
|
|
862
|
+
title: '@human-capital-management:leave-requests.states.pending',
|
|
863
|
+
generateView: true,
|
|
864
|
+
}),
|
|
865
|
+
systemStatusToDefinition(AXPSystemStatusType.Approved, {
|
|
866
|
+
title: '@human-capital-management:leave-requests.states.approved',
|
|
867
|
+
generateView: true,
|
|
868
|
+
}),
|
|
869
|
+
systemStatusToDefinition(AXPSystemStatusType.Rejected, {
|
|
870
|
+
title: '@human-capital-management:leave-requests.states.rejected',
|
|
871
|
+
generateView: true,
|
|
872
|
+
}),
|
|
873
|
+
systemStatusToDefinition(AXPSystemStatusType.Cancelled, {
|
|
874
|
+
title: '@human-capital-management:leave-requests.states.cancelled',
|
|
875
|
+
generateView: true,
|
|
876
|
+
}),
|
|
877
|
+
];
|
|
878
|
+
this.transitions = [
|
|
879
|
+
{
|
|
880
|
+
from: AXPSystemStatusType.Pending,
|
|
881
|
+
to: AXPSystemStatusType.Approved,
|
|
882
|
+
title: '@general:statuses.transitions.approve',
|
|
883
|
+
requiresApproval: true
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
from: AXPSystemStatusType.Pending,
|
|
887
|
+
to: AXPSystemStatusType.Rejected,
|
|
888
|
+
title: '@general:statuses.transitions.reject',
|
|
889
|
+
requiresApproval: true
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
from: AXPSystemStatusType.Pending,
|
|
893
|
+
to: AXPSystemStatusType.Cancelled,
|
|
894
|
+
title: '@general:statuses.transitions.cancel',
|
|
895
|
+
requiresApproval: true
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
from: AXPSystemStatusType.Approved,
|
|
899
|
+
to: AXPSystemStatusType.Cancelled,
|
|
900
|
+
title: '@general:statuses.transitions.cancel',
|
|
901
|
+
requiresApproval: true
|
|
902
|
+
},
|
|
903
|
+
];
|
|
904
|
+
this.defaultStatus = AXPSystemStatusType.Pending;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
//#endregion
|
|
908
|
+
|
|
909
|
+
class AXMLeaveRequestFeatureModule {
|
|
910
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
911
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, imports: [CommonModule, AXPRuntimeModule] }); }
|
|
912
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, providers: [
|
|
913
|
+
{
|
|
914
|
+
provide: AXP_TASK_BADGE_PROVIDERS,
|
|
915
|
+
useClass: AXMLeaveRequestBadgeProvider,
|
|
916
|
+
multi: true,
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
provide: AXP_STATUS_PROVIDERS,
|
|
920
|
+
useClass: AXMLeaveRequestStatusProvider,
|
|
921
|
+
multi: true,
|
|
922
|
+
},
|
|
923
|
+
provideCommandSetups([
|
|
924
|
+
{
|
|
925
|
+
key: 'HumanCapitalManagement.LeaveRequest:Approve',
|
|
926
|
+
command: () => import('./acorex-modules-human-capital-management-approve-leave-request.command-qYSPyG_q.mjs').then((c) => c.ApproveLeaveRequestCommand),
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
key: 'HumanCapitalManagement.LeaveRequest:Reject',
|
|
930
|
+
command: () => import('./acorex-modules-human-capital-management-reject-leave-request.command-DxNsroYI.mjs').then((c) => c.RejectLeaveRequestCommand),
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
key: 'HumanCapitalManagement.LeaveRequest:Cancel',
|
|
934
|
+
command: () => import('./acorex-modules-human-capital-management-cancel-leave-request.command-DstI60jo.mjs').then((c) => c.CancelLeaveRequestCommand),
|
|
935
|
+
},
|
|
936
|
+
]),
|
|
937
|
+
], imports: [CommonModule, AXPRuntimeModule] }); }
|
|
938
|
+
}
|
|
939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, decorators: [{
|
|
940
|
+
type: NgModule,
|
|
941
|
+
args: [{
|
|
942
|
+
imports: [CommonModule, AXPRuntimeModule],
|
|
943
|
+
providers: [
|
|
944
|
+
{
|
|
945
|
+
provide: AXP_TASK_BADGE_PROVIDERS,
|
|
946
|
+
useClass: AXMLeaveRequestBadgeProvider,
|
|
947
|
+
multi: true,
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
provide: AXP_STATUS_PROVIDERS,
|
|
951
|
+
useClass: AXMLeaveRequestStatusProvider,
|
|
952
|
+
multi: true,
|
|
953
|
+
},
|
|
954
|
+
provideCommandSetups([
|
|
955
|
+
{
|
|
956
|
+
key: 'HumanCapitalManagement.LeaveRequest:Approve',
|
|
957
|
+
command: () => import('./acorex-modules-human-capital-management-approve-leave-request.command-qYSPyG_q.mjs').then((c) => c.ApproveLeaveRequestCommand),
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
key: 'HumanCapitalManagement.LeaveRequest:Reject',
|
|
961
|
+
command: () => import('./acorex-modules-human-capital-management-reject-leave-request.command-DxNsroYI.mjs').then((c) => c.RejectLeaveRequestCommand),
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
key: 'HumanCapitalManagement.LeaveRequest:Cancel',
|
|
965
|
+
command: () => import('./acorex-modules-human-capital-management-cancel-leave-request.command-DstI60jo.mjs').then((c) => c.CancelLeaveRequestCommand),
|
|
966
|
+
},
|
|
967
|
+
]),
|
|
968
|
+
],
|
|
969
|
+
}]
|
|
970
|
+
}] });
|
|
971
|
+
|
|
972
|
+
const AXM_EMPLOYEE_CODE_IDENTIFIER_RULE = {
|
|
973
|
+
id: 'employee-code',
|
|
974
|
+
title: 'Employee Code',
|
|
975
|
+
entity: 'HumanCapitalManagement.Employee',
|
|
976
|
+
pattern: 'EMP-{date:YYYYMM}-{seq:4}',
|
|
977
|
+
enabled: true,
|
|
978
|
+
priority: 1,
|
|
979
|
+
scopeConfig: { byTenant: false, period: 'yearly', minValue: 100, blockSize: 0 },
|
|
980
|
+
};
|
|
981
|
+
|
|
982
|
+
//#region ---- Imports ----
|
|
983
|
+
//#endregion
|
|
984
|
+
//#region ---- Custom Status Names ----
|
|
985
|
+
const OnLeave = 'on-leave';
|
|
986
|
+
const Terminated = 'terminated';
|
|
987
|
+
//#endregion
|
|
988
|
+
//#region ---- Employee Status Provider ----
|
|
989
|
+
/**
|
|
990
|
+
* Employee status provider defining standard lifecycle states: Active, On Leave, Suspended, Terminated, Pending.
|
|
991
|
+
* Used by the status plugin to manage employee status transitions and metadata.
|
|
992
|
+
*/
|
|
993
|
+
class AXMEmployeeStatusProvider extends AXPStatusProvider {
|
|
994
|
+
constructor() {
|
|
995
|
+
super(...arguments);
|
|
996
|
+
this.key = 'human-capital-management.status.employee';
|
|
997
|
+
this.defaultStatus = AXPSystemStatusType.Active;
|
|
998
|
+
this.statuses = [
|
|
999
|
+
systemStatusToDefinition(AXPSystemStatusType.Active, {
|
|
1000
|
+
title: '@human-capital-management:employees.states.active',
|
|
1001
|
+
generateView: true,
|
|
1002
|
+
}),
|
|
1003
|
+
{
|
|
1004
|
+
name: OnLeave,
|
|
1005
|
+
title: '@human-capital-management:employees.states.on-leave',
|
|
1006
|
+
icon: 'fa-light fa-umbrella-beach',
|
|
1007
|
+
color: 'info',
|
|
1008
|
+
order: 2,
|
|
1009
|
+
isInitial: false,
|
|
1010
|
+
isFinal: false,
|
|
1011
|
+
generateView: true,
|
|
1012
|
+
},
|
|
1013
|
+
systemStatusToDefinition(AXPSystemStatusType.Suspended, {
|
|
1014
|
+
title: '@human-capital-management:employees.states.suspended',
|
|
1015
|
+
generateView: true,
|
|
1016
|
+
}),
|
|
1017
|
+
{
|
|
1018
|
+
name: Terminated,
|
|
1019
|
+
title: '@human-capital-management:employees.states.terminated',
|
|
1020
|
+
icon: 'fa-light fa-user-xmark',
|
|
1021
|
+
color: 'danger',
|
|
1022
|
+
order: 4,
|
|
1023
|
+
isInitial: false,
|
|
1024
|
+
isFinal: true,
|
|
1025
|
+
generateView: true,
|
|
1026
|
+
},
|
|
1027
|
+
systemStatusToDefinition(AXPSystemStatusType.Pending, {
|
|
1028
|
+
title: '@human-capital-management:employees.states.pending',
|
|
1029
|
+
generateView: true,
|
|
1030
|
+
}),
|
|
1031
|
+
];
|
|
1032
|
+
this.transitions = [
|
|
1033
|
+
{
|
|
1034
|
+
from: AXPSystemStatusType.Pending,
|
|
1035
|
+
to: AXPSystemStatusType.Active,
|
|
1036
|
+
title: '@human-capital-management:employees.transitions.activate',
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
from: AXPSystemStatusType.Active,
|
|
1040
|
+
to: OnLeave,
|
|
1041
|
+
title: '@human-capital-management:employees.transitions.start-leave',
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
from: OnLeave,
|
|
1045
|
+
to: AXPSystemStatusType.Active,
|
|
1046
|
+
title: '@human-capital-management:employees.transitions.return-from-leave',
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
from: AXPSystemStatusType.Active,
|
|
1050
|
+
to: AXPSystemStatusType.Suspended,
|
|
1051
|
+
title: '@human-capital-management:employees.transitions.suspend',
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
from: AXPSystemStatusType.Suspended,
|
|
1055
|
+
to: AXPSystemStatusType.Active,
|
|
1056
|
+
title: '@human-capital-management:employees.transitions.resume',
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
from: AXPSystemStatusType.Active,
|
|
1060
|
+
to: Terminated,
|
|
1061
|
+
title: '@human-capital-management:employees.transitions.terminate',
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
from: OnLeave,
|
|
1065
|
+
to: Terminated,
|
|
1066
|
+
title: '@human-capital-management:employees.transitions.terminate',
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
from: AXPSystemStatusType.Suspended,
|
|
1070
|
+
to: Terminated,
|
|
1071
|
+
title: '@human-capital-management:employees.transitions.terminate',
|
|
1072
|
+
},
|
|
1073
|
+
];
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
//#endregion
|
|
1077
|
+
|
|
1078
|
+
//#region ---- Imports ----
|
|
1079
|
+
//#endregion
|
|
1080
|
+
//#region ---- Position Assignment Status Names ----
|
|
1081
|
+
const AXM_POSITION_ASSIGNMENT_STATUS = {
|
|
1082
|
+
active: AXPSystemStatusType.Active,
|
|
1083
|
+
scheduled: 'scheduled',
|
|
1084
|
+
expired: 'expired',
|
|
1085
|
+
revoked: 'revoked',
|
|
1086
|
+
};
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region ---- Position Assignment Status Provider ----
|
|
1089
|
+
/**
|
|
1090
|
+
* Position assignment lifecycle statuses used by status plugin badges and filters.
|
|
1091
|
+
*/
|
|
1092
|
+
class AXMPositionAssignmentStatusProvider extends AXPStatusProvider {
|
|
1093
|
+
constructor() {
|
|
1094
|
+
super(...arguments);
|
|
1095
|
+
this.key = 'human-capital-management.status.position-assignment';
|
|
1096
|
+
this.defaultStatus = AXM_POSITION_ASSIGNMENT_STATUS.active;
|
|
1097
|
+
this.statuses = [
|
|
1098
|
+
systemStatusToDefinition(AXM_POSITION_ASSIGNMENT_STATUS.active, {
|
|
1099
|
+
title: '@human-capital-management:position-assignments.states.active',
|
|
1100
|
+
generateView: true,
|
|
1101
|
+
}),
|
|
1102
|
+
{
|
|
1103
|
+
name: AXM_POSITION_ASSIGNMENT_STATUS.scheduled,
|
|
1104
|
+
title: '@human-capital-management:position-assignments.states.scheduled',
|
|
1105
|
+
icon: 'fa-light fa-calendar-clock',
|
|
1106
|
+
color: 'info',
|
|
1107
|
+
order: 2,
|
|
1108
|
+
isInitial: false,
|
|
1109
|
+
isFinal: false,
|
|
1110
|
+
generateView: true,
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
name: AXM_POSITION_ASSIGNMENT_STATUS.expired,
|
|
1114
|
+
title: '@human-capital-management:position-assignments.states.expired',
|
|
1115
|
+
icon: 'fa-light fa-clock-rotate-left',
|
|
1116
|
+
color: 'warning',
|
|
1117
|
+
order: 3,
|
|
1118
|
+
isInitial: false,
|
|
1119
|
+
isFinal: true,
|
|
1120
|
+
generateView: true,
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
name: AXM_POSITION_ASSIGNMENT_STATUS.revoked,
|
|
1124
|
+
title: '@human-capital-management:position-assignments.states.revoked',
|
|
1125
|
+
icon: 'fa-light fa-user-slash',
|
|
1126
|
+
color: 'danger',
|
|
1127
|
+
order: 4,
|
|
1128
|
+
isInitial: false,
|
|
1129
|
+
isFinal: true,
|
|
1130
|
+
generateView: true,
|
|
1131
|
+
},
|
|
1132
|
+
];
|
|
1133
|
+
this.transitions = [];
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
//#endregion
|
|
1137
|
+
|
|
1138
|
+
//#region ---- Imports ----
|
|
1139
|
+
//#endregion
|
|
1140
|
+
//#region ---- Manifest Definition ----
|
|
1141
|
+
/**
|
|
1142
|
+
* Human Capital Management Module Manifest.
|
|
1143
|
+
* Defines module metadata, features, and provider references.
|
|
1144
|
+
*/
|
|
1145
|
+
const HumanCapitalManagementManifest = {
|
|
1146
|
+
name: RootConfig.module.name,
|
|
1147
|
+
version: '1.0.0',
|
|
1148
|
+
title: RootConfig.module.title,
|
|
1149
|
+
icon: RootConfig.module.icon,
|
|
1150
|
+
i18n: RootConfig.config.i18n,
|
|
1151
|
+
// Module dependencies
|
|
1152
|
+
dependencies: [
|
|
1153
|
+
'OrganizationManagement',
|
|
1154
|
+
'PersonCore',
|
|
1155
|
+
'LocationManagement',
|
|
1156
|
+
'DocumentManagement',
|
|
1157
|
+
],
|
|
1158
|
+
};
|
|
1159
|
+
//#endregion
|
|
1160
|
+
|
|
1161
|
+
const AXPHumanCapitalManagementMenuKeys = {
|
|
1162
|
+
Root: 'HumanCapitalManagement:Menu',
|
|
1163
|
+
Employees: 'HumanCapitalManagement:Menu:Employees',
|
|
1164
|
+
EmploymentTypes: 'HumanCapitalManagement:Menu:EmploymentTypes',
|
|
1165
|
+
Divider1: 'HumanCapitalManagement:Menu:Divider1',
|
|
1166
|
+
PositionAssignments: 'HumanCapitalManagement:Menu:PositionAssignments',
|
|
1167
|
+
Divider2: 'HumanCapitalManagement:Menu:Divider2',
|
|
1168
|
+
LeaveTypes: 'HumanCapitalManagement:Menu:LeaveTypes',
|
|
1169
|
+
LeaveRequests: 'HumanCapitalManagement:Menu:LeaveRequests',
|
|
1170
|
+
LeaveRequestBoard: 'HumanCapitalManagement:Menu:LeaveRequestBoard',
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
const AXMPermissionsKeys = {
|
|
1174
|
+
HumanCapitalManagement: {
|
|
1175
|
+
Employee: {
|
|
1176
|
+
Management: 'HumanCapitalManagement:Permission:Employee.Management',
|
|
1177
|
+
View: 'HumanCapitalManagement:Permission:Employee.View',
|
|
1178
|
+
Edit: 'HumanCapitalManagement:Permission:Employee.Edit',
|
|
1179
|
+
Delete: 'HumanCapitalManagement:Permission:Employee.Delete',
|
|
1180
|
+
Create: 'HumanCapitalManagement:Permission:Employee.Create',
|
|
1181
|
+
},
|
|
1182
|
+
EmploymentType: {
|
|
1183
|
+
Management: 'HumanCapitalManagement:Permission:EmploymentType.Management',
|
|
1184
|
+
View: 'HumanCapitalManagement:Permission:EmploymentType.View',
|
|
1185
|
+
Edit: 'HumanCapitalManagement:Permission:EmploymentType.Edit',
|
|
1186
|
+
Delete: 'HumanCapitalManagement:Permission:EmploymentType.Delete',
|
|
1187
|
+
Create: 'HumanCapitalManagement:Permission:EmploymentType.Create',
|
|
1188
|
+
},
|
|
1189
|
+
PositionAssignment: {
|
|
1190
|
+
Management: 'HumanCapitalManagement:Permission:PositionAssignment.Management',
|
|
1191
|
+
View: 'HumanCapitalManagement:Permission:PositionAssignment.View',
|
|
1192
|
+
Edit: 'HumanCapitalManagement:Permission:PositionAssignment.Edit',
|
|
1193
|
+
Delete: 'HumanCapitalManagement:Permission:PositionAssignment.Delete',
|
|
1194
|
+
Create: 'HumanCapitalManagement:Permission:PositionAssignment.Create',
|
|
1195
|
+
},
|
|
1196
|
+
LeaveType: {
|
|
1197
|
+
Management: 'HumanCapitalManagement:Permission:LeaveType.Management',
|
|
1198
|
+
View: 'HumanCapitalManagement:Permission:LeaveType.View',
|
|
1199
|
+
Edit: 'HumanCapitalManagement:Permission:LeaveType.Edit',
|
|
1200
|
+
Delete: 'HumanCapitalManagement:Permission:LeaveType.Delete',
|
|
1201
|
+
Create: 'HumanCapitalManagement:Permission:LeaveType.Create',
|
|
1202
|
+
},
|
|
1203
|
+
LeaveRequest: {
|
|
1204
|
+
Management: 'HumanCapitalManagement:Permission:LeaveRequest.Management',
|
|
1205
|
+
View: 'HumanCapitalManagement:Permission:LeaveRequest.View',
|
|
1206
|
+
Edit: 'HumanCapitalManagement:Permission:LeaveRequest.Edit',
|
|
1207
|
+
Delete: 'HumanCapitalManagement:Permission:LeaveRequest.Delete',
|
|
1208
|
+
Create: 'HumanCapitalManagement:Permission:LeaveRequest.Create',
|
|
1209
|
+
},
|
|
1210
|
+
},
|
|
1211
|
+
};
|
|
1212
|
+
|
|
1213
|
+
class AXMMenuProvider {
|
|
1214
|
+
constructor() {
|
|
1215
|
+
this.entityService = inject(AXPEntityService);
|
|
1216
|
+
this.sessionService = inject(AXPSessionService);
|
|
1217
|
+
}
|
|
1218
|
+
async provide(context) {
|
|
1219
|
+
const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
|
|
1220
|
+
if (!isAuthorized) {
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
const module = RootConfig.module;
|
|
1224
|
+
const organizationMenu = context.find(AXPCommonMenuKeys.Organization);
|
|
1225
|
+
if (!organizationMenu.exists) {
|
|
1226
|
+
context.addItems([
|
|
1227
|
+
{
|
|
1228
|
+
name: AXPCommonMenuKeys.Organization,
|
|
1229
|
+
priority: 9000,
|
|
1230
|
+
text: '@organization-management:module.menus.root.title',
|
|
1231
|
+
type: 'menu',
|
|
1232
|
+
icon: 'fa-light fa-sitemap',
|
|
1233
|
+
children: [],
|
|
1234
|
+
},
|
|
1235
|
+
]);
|
|
1236
|
+
}
|
|
1237
|
+
// Root Organization: Employees, Position Assignments, Leave Requests (operational)
|
|
1238
|
+
context.find(AXPCommonMenuKeys.Organization).addItems([
|
|
1239
|
+
{
|
|
1240
|
+
name: AXPHumanCapitalManagementMenuKeys.Employees,
|
|
1241
|
+
text: '@human-capital-management:employees.menus.employees.title',
|
|
1242
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.employee.name),
|
|
1243
|
+
priority: 60,
|
|
1244
|
+
icon: RootConfig.entities.employee.icon,
|
|
1245
|
+
policy: {
|
|
1246
|
+
permissions: [AXMPermissionsKeys.HumanCapitalManagement.Employee.Management],
|
|
1247
|
+
features: [AXPHumanCapitalManagementFeatureKeys.EmployeeManagement],
|
|
1248
|
+
},
|
|
1249
|
+
},
|
|
1250
|
+
{ name: AXPHumanCapitalManagementMenuKeys.Divider1, text: '', type: 'break', priority: 62 },
|
|
1251
|
+
{
|
|
1252
|
+
name: AXPHumanCapitalManagementMenuKeys.LeaveRequests,
|
|
1253
|
+
text: '@human-capital-management:leave-requests.menus.leave-requests.title',
|
|
1254
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.leaveRequest.name),
|
|
1255
|
+
priority: 63,
|
|
1256
|
+
icon: RootConfig.entities.leaveRequest.icon,
|
|
1257
|
+
badgeKey: 'leave-request-badge',
|
|
1258
|
+
policy: {
|
|
1259
|
+
permissions: [AXMPermissionsKeys.HumanCapitalManagement.LeaveRequest.Management],
|
|
1260
|
+
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1261
|
+
},
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
name: AXPHumanCapitalManagementMenuKeys.LeaveRequestBoard,
|
|
1265
|
+
text: RootConfig.pages.appointmentBoard.title,
|
|
1266
|
+
path: `${this.sessionService.application?.name}/${RootConfig.pages.appointmentBoard.path}/leave-request`,
|
|
1267
|
+
priority: 64,
|
|
1268
|
+
icon: RootConfig.pages.appointmentBoard.icon,
|
|
1269
|
+
policy: {
|
|
1270
|
+
permissions: [AXMPermissionsKeys.HumanCapitalManagement.LeaveRequest.Management],
|
|
1271
|
+
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1272
|
+
},
|
|
1273
|
+
},
|
|
1274
|
+
]);
|
|
1275
|
+
// Configuration/Organization: Employment Types, Leave Types (reference)
|
|
1276
|
+
const orgConfigMenu = context.find(AXPCommonMenuKeys.OrganizationConfig);
|
|
1277
|
+
if (!orgConfigMenu.exists) {
|
|
1278
|
+
context.find(AXPCommonMenuKeys.Configuration).addItems([
|
|
1279
|
+
{
|
|
1280
|
+
name: AXPCommonMenuKeys.OrganizationConfig,
|
|
1281
|
+
priority: 8600,
|
|
1282
|
+
text: '@organization-management:module.menus.configuration.title',
|
|
1283
|
+
icon: module.icon,
|
|
1284
|
+
type: 'menu',
|
|
1285
|
+
children: [],
|
|
1286
|
+
},
|
|
1287
|
+
]);
|
|
1288
|
+
}
|
|
1289
|
+
context.find(AXPCommonMenuKeys.OrganizationConfig).addItems([
|
|
1290
|
+
{
|
|
1291
|
+
name: AXPHumanCapitalManagementMenuKeys.EmploymentTypes,
|
|
1292
|
+
text: '@human-capital-management:employment-types.menus.employment-types.title',
|
|
1293
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.employmentType.name),
|
|
1294
|
+
priority: 8,
|
|
1295
|
+
icon: RootConfig.entities.employmentType.icon,
|
|
1296
|
+
policy: {
|
|
1297
|
+
permissions: [AXMPermissionsKeys.HumanCapitalManagement.Employee.Management],
|
|
1298
|
+
features: [AXPHumanCapitalManagementFeatureKeys.EmployeeManagement],
|
|
1299
|
+
},
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
name: AXPHumanCapitalManagementMenuKeys.LeaveTypes,
|
|
1303
|
+
text: '@human-capital-management:leave-types.menus.leave-types.title',
|
|
1304
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.leaveType.name),
|
|
1305
|
+
priority: 9,
|
|
1306
|
+
icon: RootConfig.entities.leaveType.icon,
|
|
1307
|
+
policy: {
|
|
1308
|
+
permissions: [AXMPermissionsKeys.HumanCapitalManagement.LeaveType.Management],
|
|
1309
|
+
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1310
|
+
},
|
|
1311
|
+
},
|
|
1312
|
+
]);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
class AXMEmployeeDataSourceDefinition {
|
|
1317
|
+
constructor() {
|
|
1318
|
+
this.entityService = inject(AXPEntityService);
|
|
1319
|
+
this.employeeData = this.entityService
|
|
1320
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
|
|
1321
|
+
.data();
|
|
1322
|
+
}
|
|
1323
|
+
items() {
|
|
1324
|
+
return Promise.resolve([
|
|
1325
|
+
{
|
|
1326
|
+
name: 'employees',
|
|
1327
|
+
title: 'Employees',
|
|
1328
|
+
source: () => {
|
|
1329
|
+
return new AXDataSource({
|
|
1330
|
+
key: 'id',
|
|
1331
|
+
load: async (_) => {
|
|
1332
|
+
try {
|
|
1333
|
+
const res = await this.employeeData.query();
|
|
1334
|
+
return {
|
|
1335
|
+
items: res.items.map((item) => ({
|
|
1336
|
+
...item,
|
|
1337
|
+
})),
|
|
1338
|
+
total: res.total,
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
catch (e) {
|
|
1342
|
+
console.log(e);
|
|
1343
|
+
throw e;
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
byKey: async (key) => {
|
|
1347
|
+
return await this.employeeData.byKey(key);
|
|
1348
|
+
},
|
|
1349
|
+
pageSize: 100,
|
|
1350
|
+
});
|
|
1351
|
+
},
|
|
1352
|
+
columns: [
|
|
1353
|
+
{
|
|
1354
|
+
name: 'id',
|
|
1355
|
+
title: 'ID',
|
|
1356
|
+
datatype: 'uuid',
|
|
1357
|
+
type: AXPWidgetsCatalog.text,
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
name: 'employeeCode',
|
|
1361
|
+
title: 'Employee Code',
|
|
1362
|
+
datatype: 'string',
|
|
1363
|
+
type: AXPWidgetsCatalog.text,
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
name: 'person.fullName',
|
|
1367
|
+
title: 'Display Name',
|
|
1368
|
+
datatype: 'string',
|
|
1369
|
+
type: AXPWidgetsCatalog.text,
|
|
1370
|
+
},
|
|
1371
|
+
],
|
|
1372
|
+
filters: [
|
|
1373
|
+
{
|
|
1374
|
+
field: 'employeeCode',
|
|
1375
|
+
title: 'Employee Code',
|
|
1376
|
+
operator: {
|
|
1377
|
+
type: 'equal',
|
|
1378
|
+
},
|
|
1379
|
+
widget: {
|
|
1380
|
+
type: AXPWidgetsCatalog.text,
|
|
1381
|
+
},
|
|
1382
|
+
filterType: {
|
|
1383
|
+
advance: true,
|
|
1384
|
+
inline: true,
|
|
1385
|
+
},
|
|
1386
|
+
},
|
|
1387
|
+
],
|
|
1388
|
+
textField: {
|
|
1389
|
+
name: 'person.fullName',
|
|
1390
|
+
title: 'Display Name',
|
|
1391
|
+
},
|
|
1392
|
+
valueField: {
|
|
1393
|
+
name: 'id',
|
|
1394
|
+
title: 'ID',
|
|
1395
|
+
},
|
|
1396
|
+
},
|
|
1397
|
+
]);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
class AXMEmploymentTypeDataSourceDefinition {
|
|
1402
|
+
constructor() {
|
|
1403
|
+
this.entityService = inject(AXPEntityService);
|
|
1404
|
+
this.employmentTypeData = this.entityService
|
|
1405
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.employmentType.name)
|
|
1406
|
+
.data();
|
|
1407
|
+
}
|
|
1408
|
+
items() {
|
|
1409
|
+
return Promise.resolve([
|
|
1410
|
+
{
|
|
1411
|
+
name: 'employmentTypes',
|
|
1412
|
+
title: 'Employment Types',
|
|
1413
|
+
source: () => {
|
|
1414
|
+
return new AXDataSource({
|
|
1415
|
+
key: 'id',
|
|
1416
|
+
load: async (_) => {
|
|
1417
|
+
try {
|
|
1418
|
+
const res = await this.employmentTypeData.query();
|
|
1419
|
+
return {
|
|
1420
|
+
items: res.items.map((item) => ({
|
|
1421
|
+
...item,
|
|
1422
|
+
})),
|
|
1423
|
+
total: res.total,
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
catch (e) {
|
|
1427
|
+
console.log(e);
|
|
1428
|
+
throw e;
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
byKey: async (key) => {
|
|
1432
|
+
return await this.employmentTypeData.byKey(key);
|
|
1433
|
+
},
|
|
1434
|
+
pageSize: 100,
|
|
1435
|
+
});
|
|
1436
|
+
},
|
|
1437
|
+
columns: [
|
|
1438
|
+
{
|
|
1439
|
+
name: 'id',
|
|
1440
|
+
title: 'ID',
|
|
1441
|
+
datatype: 'uuid',
|
|
1442
|
+
type: AXPWidgetsCatalog.text,
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
name: 'title',
|
|
1446
|
+
title: 'Title',
|
|
1447
|
+
datatype: 'string',
|
|
1448
|
+
type: AXPWidgetsCatalog.text,
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: 'description',
|
|
1452
|
+
title: 'Description',
|
|
1453
|
+
datatype: 'string',
|
|
1454
|
+
type: AXPWidgetsCatalog.text,
|
|
1455
|
+
},
|
|
1456
|
+
],
|
|
1457
|
+
filters: [
|
|
1458
|
+
{
|
|
1459
|
+
field: 'title',
|
|
1460
|
+
title: 'Title',
|
|
1461
|
+
operator: {
|
|
1462
|
+
type: 'equal',
|
|
1463
|
+
},
|
|
1464
|
+
widget: {
|
|
1465
|
+
type: AXPWidgetsCatalog.text,
|
|
1466
|
+
},
|
|
1467
|
+
filterType: {
|
|
1468
|
+
advance: true,
|
|
1469
|
+
inline: true,
|
|
1470
|
+
},
|
|
1471
|
+
},
|
|
1472
|
+
],
|
|
1473
|
+
textField: {
|
|
1474
|
+
name: 'title',
|
|
1475
|
+
title: 'Title',
|
|
1476
|
+
},
|
|
1477
|
+
valueField: {
|
|
1478
|
+
name: 'id',
|
|
1479
|
+
title: 'ID',
|
|
1480
|
+
},
|
|
1481
|
+
},
|
|
1482
|
+
]);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
//#region ---- Imports ----
|
|
1487
|
+
//#endregion
|
|
1488
|
+
//#region ---- Constants ----
|
|
1489
|
+
const orgChartNodeActionKey = (suffix) => `@human-capital-management:organization-chart.node-actions.${suffix}`;
|
|
1490
|
+
const positionAssignmentSubmenuGroupId = 'position-assignment';
|
|
1491
|
+
//#endregion
|
|
1492
|
+
class AXMHcmOrgChartNodeContributionProvider {
|
|
1493
|
+
constructor() {
|
|
1494
|
+
//#region ---- Services & Dependencies ----
|
|
1495
|
+
this.commandService = inject(AXPCommandService);
|
|
1496
|
+
this.sessionService = inject(AXPSessionService);
|
|
1497
|
+
this.positionAssignmentCreatePermission = 'HumanCapitalManagement:Permission:PositionAssignment.Create';
|
|
1498
|
+
this.positionAssignmentEditPermission = 'HumanCapitalManagement:Permission:PositionAssignment.Edit';
|
|
1499
|
+
}
|
|
1500
|
+
//#endregion
|
|
1501
|
+
//#region ---- AXMOrgChartNodeContributionProvider Implementation ----
|
|
1502
|
+
async getMenuActions(context) {
|
|
1503
|
+
if (context.nodeKind !== 'company-root' && context.nodeKind !== 'business-unit') {
|
|
1504
|
+
return [];
|
|
1505
|
+
}
|
|
1506
|
+
const businessUnitId = this.resolveBusinessUnitId(context);
|
|
1507
|
+
const positionId = this.resolveManagerPositionId(context);
|
|
1508
|
+
const hasManager = this.hasAssignedManager(context);
|
|
1509
|
+
const shouldShowVacantAssignAction = context.nodeKind === 'business-unit' && this.hasVacantBusinessUnitHead(context);
|
|
1510
|
+
const canCreatePositionAssignment = this.sessionService.authorize(this.positionAssignmentCreatePermission);
|
|
1511
|
+
const canEditPositionAssignment = this.sessionService.authorize(this.positionAssignmentEditPermission);
|
|
1512
|
+
const assignVacantHeadAction = shouldShowVacantAssignAction
|
|
1513
|
+
? {
|
|
1514
|
+
id: 'organization-management.assign-employee-to-head',
|
|
1515
|
+
title: orgChartNodeActionKey('assign-manager'),
|
|
1516
|
+
icon: 'fa-light fa-user-plus',
|
|
1517
|
+
order: 95,
|
|
1518
|
+
submenuGroupId: positionAssignmentSubmenuGroupId,
|
|
1519
|
+
submenuGroupTitle: orgChartNodeActionKey('position-assignment'),
|
|
1520
|
+
submenuGroupIcon: 'fa-light fa-user-tie',
|
|
1521
|
+
break: context.nodeKind === 'business-unit',
|
|
1522
|
+
disabled: !canCreatePositionAssignment || !businessUnitId || !positionId,
|
|
1523
|
+
execute: async () => {
|
|
1524
|
+
if (!businessUnitId || !positionId) {
|
|
1525
|
+
return;
|
|
1526
|
+
}
|
|
1527
|
+
const result = await this.commandService.execute(AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign, {
|
|
1528
|
+
data: {
|
|
1529
|
+
businessUnitId,
|
|
1530
|
+
positionId,
|
|
1531
|
+
isPrimary: true,
|
|
1532
|
+
},
|
|
1533
|
+
});
|
|
1534
|
+
if (result?.success) {
|
|
1535
|
+
await context.refreshChart();
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
}
|
|
1539
|
+
: null;
|
|
1540
|
+
const managerAction = {
|
|
1541
|
+
id: 'organization-management.assign-manager',
|
|
1542
|
+
title: hasManager ? orgChartNodeActionKey('change-manager') : orgChartNodeActionKey('assign-manager'),
|
|
1543
|
+
icon: 'fa-light fa-user-tie',
|
|
1544
|
+
order: 100,
|
|
1545
|
+
submenuGroupId: positionAssignmentSubmenuGroupId,
|
|
1546
|
+
submenuGroupTitle: orgChartNodeActionKey('position-assignment'),
|
|
1547
|
+
submenuGroupIcon: 'fa-light fa-user-tie',
|
|
1548
|
+
break: context.nodeKind === 'business-unit',
|
|
1549
|
+
disabled: !canCreatePositionAssignment || !businessUnitId || !positionId,
|
|
1550
|
+
execute: async () => {
|
|
1551
|
+
if (!businessUnitId || !positionId) {
|
|
1552
|
+
return;
|
|
1553
|
+
}
|
|
1554
|
+
const result = await this.commandService.execute(AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign, {
|
|
1555
|
+
data: {
|
|
1556
|
+
businessUnitId,
|
|
1557
|
+
positionId,
|
|
1558
|
+
isPrimary: true,
|
|
1559
|
+
},
|
|
1560
|
+
});
|
|
1561
|
+
if (result?.success) {
|
|
1562
|
+
await context.refreshChart();
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
};
|
|
1566
|
+
const revokeManagerAction = {
|
|
1567
|
+
id: 'organization-management.revoke-manager',
|
|
1568
|
+
title: orgChartNodeActionKey('revoke-manager-assignment'),
|
|
1569
|
+
icon: 'fa-light fa-user-minus',
|
|
1570
|
+
color: 'danger',
|
|
1571
|
+
order: 110,
|
|
1572
|
+
submenuGroupId: positionAssignmentSubmenuGroupId,
|
|
1573
|
+
submenuGroupTitle: orgChartNodeActionKey('position-assignment'),
|
|
1574
|
+
submenuGroupIcon: 'fa-light fa-user-tie',
|
|
1575
|
+
break: context.nodeKind === 'business-unit',
|
|
1576
|
+
disabled: !canEditPositionAssignment || !hasManager || !positionId,
|
|
1577
|
+
execute: async () => {
|
|
1578
|
+
if (!positionId) {
|
|
1579
|
+
return;
|
|
1580
|
+
}
|
|
1581
|
+
const employeeId = this.resolveManagerEmployeeId(context);
|
|
1582
|
+
if (!employeeId) {
|
|
1583
|
+
return;
|
|
1584
|
+
}
|
|
1585
|
+
const result = await this.commandService.execute(AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke, {
|
|
1586
|
+
positionId,
|
|
1587
|
+
employeeId,
|
|
1588
|
+
businessUnitId,
|
|
1589
|
+
});
|
|
1590
|
+
if (result?.success) {
|
|
1591
|
+
await context.refreshChart();
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
};
|
|
1595
|
+
return [
|
|
1596
|
+
...(assignVacantHeadAction ? [assignVacantHeadAction] : []),
|
|
1597
|
+
...(!shouldShowVacantAssignAction ? [managerAction] : []),
|
|
1598
|
+
...(hasManager ? [revokeManagerAction] : []),
|
|
1599
|
+
];
|
|
1600
|
+
}
|
|
1601
|
+
//#endregion
|
|
1602
|
+
//#region ---- Node Metadata ----
|
|
1603
|
+
resolveBusinessUnitId(context) {
|
|
1604
|
+
if (context.nodeKind === 'business-unit') {
|
|
1605
|
+
return (context.node.entity?.id ??
|
|
1606
|
+
context.node.metadata?.['businessUnitId'] ??
|
|
1607
|
+
context.node.metadata?.['unitId']);
|
|
1608
|
+
}
|
|
1609
|
+
return context.node.metadata?.['businessUnitId'];
|
|
1610
|
+
}
|
|
1611
|
+
resolveManagerPositionId(context) {
|
|
1612
|
+
const metadata = context.node.metadata ?? {};
|
|
1613
|
+
const topRole = metadata['topRole'];
|
|
1614
|
+
const unitHead = metadata['unitHead'];
|
|
1615
|
+
return (unitHead?.['positionId'] ??
|
|
1616
|
+
topRole?.['positionId'] ??
|
|
1617
|
+
metadata['headPositionId']);
|
|
1618
|
+
}
|
|
1619
|
+
hasAssignedManager(context) {
|
|
1620
|
+
const metadata = context.node.metadata ?? {};
|
|
1621
|
+
if (context.nodeKind === 'company-root') {
|
|
1622
|
+
const topRole = metadata['topRole'];
|
|
1623
|
+
if (!topRole) {
|
|
1624
|
+
return false;
|
|
1625
|
+
}
|
|
1626
|
+
const vacant = topRole['vacant'] === true;
|
|
1627
|
+
const employeeName = topRole['employeeName'];
|
|
1628
|
+
return !vacant && typeof employeeName === 'string' && employeeName.trim().length > 0;
|
|
1629
|
+
}
|
|
1630
|
+
if (context.nodeKind === 'business-unit') {
|
|
1631
|
+
const unitHead = metadata['unitHead'];
|
|
1632
|
+
if (!unitHead) {
|
|
1633
|
+
return false;
|
|
1634
|
+
}
|
|
1635
|
+
const vacant = unitHead['vacant'] === true;
|
|
1636
|
+
const employeeName = unitHead['employeeName'];
|
|
1637
|
+
return !vacant && typeof employeeName === 'string' && employeeName.trim().length > 0;
|
|
1638
|
+
}
|
|
1639
|
+
return false;
|
|
1640
|
+
}
|
|
1641
|
+
resolveManagerEmployeeId(context) {
|
|
1642
|
+
const metadata = context.node.metadata ?? {};
|
|
1643
|
+
if (context.nodeKind === 'company-root') {
|
|
1644
|
+
const topRole = metadata['topRole'];
|
|
1645
|
+
const employeeId = topRole?.['employeeId'];
|
|
1646
|
+
return typeof employeeId === 'string' && employeeId.trim().length > 0 ? employeeId : undefined;
|
|
1647
|
+
}
|
|
1648
|
+
if (context.nodeKind === 'business-unit') {
|
|
1649
|
+
const unitHead = metadata['unitHead'];
|
|
1650
|
+
const employeeId = unitHead?.['employeeId'];
|
|
1651
|
+
return typeof employeeId === 'string' && employeeId.trim().length > 0 ? employeeId : undefined;
|
|
1652
|
+
}
|
|
1653
|
+
return undefined;
|
|
1654
|
+
}
|
|
1655
|
+
hasVacantBusinessUnitHead(context) {
|
|
1656
|
+
if (context.nodeKind !== 'business-unit') {
|
|
1657
|
+
return false;
|
|
1658
|
+
}
|
|
1659
|
+
const metadata = context.node.metadata ?? {};
|
|
1660
|
+
const unitHead = metadata['unitHead'];
|
|
1661
|
+
return unitHead?.['vacant'] === true;
|
|
1662
|
+
}
|
|
1663
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHcmOrgChartNodeContributionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1664
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHcmOrgChartNodeContributionProvider }); }
|
|
1665
|
+
}
|
|
1666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHcmOrgChartNodeContributionProvider, decorators: [{
|
|
1667
|
+
type: Injectable
|
|
1668
|
+
}] });
|
|
1669
|
+
|
|
1670
|
+
class AXMPermissionDefinitionProvider {
|
|
1671
|
+
constructor(injector) {
|
|
1672
|
+
this.injector = injector;
|
|
1673
|
+
this.translateService = this.injector.get(AXTranslationService);
|
|
1674
|
+
}
|
|
1675
|
+
async define(context) {
|
|
1676
|
+
const keys = AXMPermissionsKeys.HumanCapitalManagement;
|
|
1677
|
+
const moduleTitle = await this.translateService.translateAsync('@human-capital-management:module.permissions.title');
|
|
1678
|
+
const moduleDescription = await this.translateService.translateAsync('@human-capital-management:module.permissions.description');
|
|
1679
|
+
context.addGroup(RootConfig.module.name, moduleTitle, moduleDescription)
|
|
1680
|
+
//
|
|
1681
|
+
.addPermission(keys.Employee.Management, await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.title'), await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.description'))
|
|
1682
|
+
.addChild(keys.Employee.View, await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.view.title'), await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.view.description'))
|
|
1683
|
+
.addChild(keys.Employee.Create, await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.create.title'), await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.create.description'))
|
|
1684
|
+
.addChild(keys.Employee.Edit, await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.edit.title'), await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.edit.description'))
|
|
1685
|
+
.addChild(keys.Employee.Delete, await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.delete.title'), await this.translateService.translateAsync('@human-capital-management:employees.permissions.employees.actions.delete.description'))
|
|
1686
|
+
.endPermission()
|
|
1687
|
+
//
|
|
1688
|
+
.addPermission(keys.EmploymentType.Management, await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.title'), await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.description'))
|
|
1689
|
+
.addChild(keys.EmploymentType.View, await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.view.title'), await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.view.description'))
|
|
1690
|
+
.addChild(keys.EmploymentType.Create, await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.create.title'), await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.create.description'))
|
|
1691
|
+
.addChild(keys.EmploymentType.Edit, await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.edit.title'), await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.edit.description'))
|
|
1692
|
+
.addChild(keys.EmploymentType.Delete, await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.delete.title'), await this.translateService.translateAsync('@human-capital-management:employment-types.permissions.employment-types.actions.delete.description'))
|
|
1693
|
+
.endPermission()
|
|
1694
|
+
//
|
|
1695
|
+
.addPermission(keys.PositionAssignment.Management, await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.title'), await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.description'))
|
|
1696
|
+
.addChild(keys.PositionAssignment.View, await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.view.title'), await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.view.description'))
|
|
1697
|
+
.addChild(keys.PositionAssignment.Create, await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.create.title'), await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.create.description'))
|
|
1698
|
+
.addChild(keys.PositionAssignment.Edit, await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.edit.title'), await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.edit.description'))
|
|
1699
|
+
.addChild(keys.PositionAssignment.Delete, await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.delete.title'), await this.translateService.translateAsync('@human-capital-management:position-assignments.permissions.position-assignments.actions.delete.description'))
|
|
1700
|
+
.endPermission()
|
|
1701
|
+
//
|
|
1702
|
+
.addPermission(keys.LeaveType.Management, await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.title'), await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.description'))
|
|
1703
|
+
.addChild(keys.LeaveType.View, await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.view.title'), await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.view.description'))
|
|
1704
|
+
.addChild(keys.LeaveType.Create, await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.create.title'), await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.create.description'))
|
|
1705
|
+
.addChild(keys.LeaveType.Edit, await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.edit.title'), await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.edit.description'))
|
|
1706
|
+
.addChild(keys.LeaveType.Delete, await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.delete.title'), await this.translateService.translateAsync('@human-capital-management:leave-types.permissions.leave-types.actions.delete.description'))
|
|
1707
|
+
.endPermission()
|
|
1708
|
+
//
|
|
1709
|
+
.addPermission(keys.LeaveRequest.Management, await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.title'), await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.description'))
|
|
1710
|
+
.addChild(keys.LeaveRequest.View, await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.view.title'), await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.view.description'))
|
|
1711
|
+
.addChild(keys.LeaveRequest.Create, await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.create.title'), await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.create.description'))
|
|
1712
|
+
.addChild(keys.LeaveRequest.Edit, await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.edit.title'), await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.edit.description'))
|
|
1713
|
+
.addChild(keys.LeaveRequest.Delete, await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.delete.title'), await this.translateService.translateAsync('@human-capital-management:leave-requests.permissions.leave-requests.actions.delete.description'))
|
|
1714
|
+
.endPermission()
|
|
1715
|
+
//
|
|
1716
|
+
.endGroup();
|
|
1717
|
+
}
|
|
1718
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1719
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider }); }
|
|
1720
|
+
}
|
|
1721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider, decorators: [{
|
|
1722
|
+
type: Injectable
|
|
1723
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1724
|
+
|
|
1725
|
+
//#region ---- Appointment Board Route ----
|
|
1726
|
+
function createAppointmentBoardRoute() {
|
|
1727
|
+
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1728
|
+
return {
|
|
1729
|
+
path: `:app/${RootConfig.pages.appointmentBoard.path}/:provider-name`,
|
|
1730
|
+
canActivate: [AXPAuthGuard],
|
|
1731
|
+
loadComponent: () => config.viewers.root(),
|
|
1732
|
+
children: [
|
|
1733
|
+
{
|
|
1734
|
+
path: '',
|
|
1735
|
+
loadComponent: () => import('@acorex/modules/common').then((c) => c.AXPResourceAppointmentPageComponent),
|
|
1736
|
+
providers: [
|
|
1737
|
+
{
|
|
1738
|
+
provide: AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG,
|
|
1739
|
+
useValue: {
|
|
1740
|
+
pageTitle: RootConfig.pages.appointmentBoard.title,
|
|
1741
|
+
pageDescription: '@human-capital-management:leave-requests.menus.appointment-board.description',
|
|
1742
|
+
pageIcon: RootConfig.pages.appointmentBoard.icon,
|
|
1743
|
+
breadcrumbs: [{ title: RootConfig.module.title }],
|
|
1744
|
+
showResourceHeaders: true,
|
|
1745
|
+
showUnassignedAppointments: true,
|
|
1746
|
+
},
|
|
1747
|
+
},
|
|
1748
|
+
],
|
|
1749
|
+
},
|
|
1750
|
+
],
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
//#endregion
|
|
1754
|
+
class AXMHumanCapitalManagementModule {
|
|
1755
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1756
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, imports: [CommonModule, AXPRuntimeModule, AXMLeaveRequestFeatureModule] }); }
|
|
1757
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, providers: [
|
|
1758
|
+
// Appointment Board route
|
|
1759
|
+
{
|
|
1760
|
+
provide: ROUTES,
|
|
1761
|
+
multi: true,
|
|
1762
|
+
useFactory: () => [createAppointmentBoardRoute()],
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
provide: AXP_RESOURCE_APPOINTMENT_PROVIDER,
|
|
1766
|
+
useClass: AXMLeaveRequestResourceAppointmentProvider,
|
|
1767
|
+
multi: true,
|
|
1768
|
+
},
|
|
1769
|
+
// Module-specific providers (not part of manifest system)
|
|
1770
|
+
{
|
|
1771
|
+
provide: AXP_IDENTIFIER_RULES,
|
|
1772
|
+
multi: true,
|
|
1773
|
+
useValue: AXM_EMPLOYEE_CODE_IDENTIFIER_RULE,
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
provide: AXP_STATUS_PROVIDERS,
|
|
1777
|
+
useClass: AXMEmployeeStatusProvider,
|
|
1778
|
+
multi: true,
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
provide: AXP_STATUS_PROVIDERS,
|
|
1782
|
+
useClass: AXMPositionAssignmentStatusProvider,
|
|
1783
|
+
multi: true,
|
|
1784
|
+
},
|
|
1785
|
+
// Module Manifest Provider
|
|
1786
|
+
{
|
|
1787
|
+
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1788
|
+
useValue: HumanCapitalManagementManifest,
|
|
1789
|
+
multi: true,
|
|
1790
|
+
},
|
|
1791
|
+
// Provider references (now using tokens)
|
|
1792
|
+
{
|
|
1793
|
+
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1794
|
+
useClass: AXMPermissionDefinitionProvider,
|
|
1795
|
+
multi: true,
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
provide: AXP_MENU_PROVIDER,
|
|
1799
|
+
useClass: AXMMenuProvider,
|
|
1800
|
+
multi: true,
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1804
|
+
useClass: AXMHumanCapitalModuleEntityProvider,
|
|
1805
|
+
multi: true,
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1809
|
+
useClass: AXMEmployeeDataSourceDefinition,
|
|
1810
|
+
multi: true,
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
provide: AXP_FEATURE_DEFINITION_PROVIDER,
|
|
1814
|
+
useClass: AXPHumanCapitalManagementFeatureDefinitionProvider,
|
|
1815
|
+
multi: true,
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
provide: AXM_ORG_CHART_NODE_CONTRIBUTOR,
|
|
1819
|
+
useClass: AXMHcmOrgChartNodeContributionProvider,
|
|
1820
|
+
multi: true,
|
|
1821
|
+
},
|
|
1822
|
+
provideCommandSetups([
|
|
1823
|
+
{
|
|
1824
|
+
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
|
|
1825
|
+
command: () => import('./acorex-modules-human-capital-management-assign-position-assignment.command-Da3u1fo5.mjs').then((c) => c.AXMAssignPositionAssignmentCommand),
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
1829
|
+
command: () => import('./acorex-modules-human-capital-management-revoke-position-assignment.command-C3J9pcfh.mjs').then((c) => c.AXMRevokePositionAssignmentByIdCommand),
|
|
1830
|
+
},
|
|
1831
|
+
]),
|
|
1832
|
+
], imports: [CommonModule, AXPRuntimeModule, AXMLeaveRequestFeatureModule] }); }
|
|
1833
|
+
}
|
|
1834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, decorators: [{
|
|
1835
|
+
type: NgModule,
|
|
1836
|
+
args: [{
|
|
1837
|
+
imports: [CommonModule, AXPRuntimeModule, AXMLeaveRequestFeatureModule],
|
|
1838
|
+
providers: [
|
|
1839
|
+
// Appointment Board route
|
|
1840
|
+
{
|
|
1841
|
+
provide: ROUTES,
|
|
1842
|
+
multi: true,
|
|
1843
|
+
useFactory: () => [createAppointmentBoardRoute()],
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
provide: AXP_RESOURCE_APPOINTMENT_PROVIDER,
|
|
1847
|
+
useClass: AXMLeaveRequestResourceAppointmentProvider,
|
|
1848
|
+
multi: true,
|
|
1849
|
+
},
|
|
1850
|
+
// Module-specific providers (not part of manifest system)
|
|
1851
|
+
{
|
|
1852
|
+
provide: AXP_IDENTIFIER_RULES,
|
|
1853
|
+
multi: true,
|
|
1854
|
+
useValue: AXM_EMPLOYEE_CODE_IDENTIFIER_RULE,
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
provide: AXP_STATUS_PROVIDERS,
|
|
1858
|
+
useClass: AXMEmployeeStatusProvider,
|
|
1859
|
+
multi: true,
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
provide: AXP_STATUS_PROVIDERS,
|
|
1863
|
+
useClass: AXMPositionAssignmentStatusProvider,
|
|
1864
|
+
multi: true,
|
|
1865
|
+
},
|
|
1866
|
+
// Module Manifest Provider
|
|
1867
|
+
{
|
|
1868
|
+
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1869
|
+
useValue: HumanCapitalManagementManifest,
|
|
1870
|
+
multi: true,
|
|
1871
|
+
},
|
|
1872
|
+
// Provider references (now using tokens)
|
|
1873
|
+
{
|
|
1874
|
+
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1875
|
+
useClass: AXMPermissionDefinitionProvider,
|
|
1876
|
+
multi: true,
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
provide: AXP_MENU_PROVIDER,
|
|
1880
|
+
useClass: AXMMenuProvider,
|
|
1881
|
+
multi: true,
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1885
|
+
useClass: AXMHumanCapitalModuleEntityProvider,
|
|
1886
|
+
multi: true,
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1890
|
+
useClass: AXMEmployeeDataSourceDefinition,
|
|
1891
|
+
multi: true,
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
provide: AXP_FEATURE_DEFINITION_PROVIDER,
|
|
1895
|
+
useClass: AXPHumanCapitalManagementFeatureDefinitionProvider,
|
|
1896
|
+
multi: true,
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
provide: AXM_ORG_CHART_NODE_CONTRIBUTOR,
|
|
1900
|
+
useClass: AXMHcmOrgChartNodeContributionProvider,
|
|
1901
|
+
multi: true,
|
|
1902
|
+
},
|
|
1903
|
+
provideCommandSetups([
|
|
1904
|
+
{
|
|
1905
|
+
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Assign,
|
|
1906
|
+
command: () => import('./acorex-modules-human-capital-management-assign-position-assignment.command-Da3u1fo5.mjs').then((c) => c.AXMAssignPositionAssignmentCommand),
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
key: AXPHumanCapitalManagementCommandKeys.PositionAssignment.Revoke,
|
|
1910
|
+
command: () => import('./acorex-modules-human-capital-management-revoke-position-assignment.command-C3J9pcfh.mjs').then((c) => c.AXMRevokePositionAssignmentByIdCommand),
|
|
1911
|
+
},
|
|
1912
|
+
]),
|
|
1913
|
+
],
|
|
1914
|
+
}]
|
|
1915
|
+
}] });
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Generated bundle index. Do not edit.
|
|
1919
|
+
*/
|
|
1920
|
+
|
|
1921
|
+
export { AXM_POSITION_ASSIGNMENT_STATUS as A, HumanCapitalManagementManifest as H, RootConfig as R, AXPHumanCapitalManagementCommandKeys as a, AXMHumanCapitalManagementModule as b, AXMLeaveRequestBadgeProvider as c, AXMLeaveRequestResourceAppointmentProvider as d, AXMLeaveRequestTaskPopoverComponent as e, AXMPermissionsKeys as f, AXPHumanCapitalManagementFeatureDefinitionProvider as g, AXPHumanCapitalManagementFeatureKeys as h, AXPHumanCapitalManagementMenuKeys as i, AXPLeaveRequestDialogService as j };
|
|
1922
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-acorex-modules-human-capital-management-Ck9q-IWW.mjs.map
|