@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
|
@@ -1,1630 +1,2 @@
|
|
|
1
|
-
|
|
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 } 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 { AXP_MODULE_MANIFEST_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
19
|
-
import { AXPSessionService, AXPAuthGuard, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
20
|
-
import { ROUTES } from '@angular/router';
|
|
21
|
-
import { firstValueFrom } from 'rxjs';
|
|
22
|
-
import { AXDataSource } from '@acorex/cdk/common';
|
|
23
|
-
import { AXPWidgetsCatalog } from '@acorex/platform/layout/widget-core';
|
|
24
|
-
|
|
25
|
-
const config = {
|
|
26
|
-
i18n: 'human-capital-management',
|
|
27
|
-
module: 'HumanCapitalManagement',
|
|
28
|
-
};
|
|
29
|
-
const RootConfig = {
|
|
30
|
-
config,
|
|
31
|
-
module: {
|
|
32
|
-
route: 'human-capital-management',
|
|
33
|
-
name: config.module,
|
|
34
|
-
title: '@human-capital-management:module.title',
|
|
35
|
-
icon: 'fa-light fa-users',
|
|
36
|
-
},
|
|
37
|
-
entities: {
|
|
38
|
-
employee: {
|
|
39
|
-
name: 'Employee',
|
|
40
|
-
source: `${config.module}.Employee`,
|
|
41
|
-
title: '@human-capital-management:employees.entities.employee.title',
|
|
42
|
-
titlePlural: '@human-capital-management:employees.entities.employee.plural',
|
|
43
|
-
icon: 'fa-light fa-address-card',
|
|
44
|
-
},
|
|
45
|
-
employmentType: {
|
|
46
|
-
name: 'EmploymentType',
|
|
47
|
-
source: `${config.module}.EmploymentType`,
|
|
48
|
-
title: '@human-capital-management:employment-types.entities.employment-type.title',
|
|
49
|
-
titlePlural: '@human-capital-management:employment-types.entities.employment-type.plural',
|
|
50
|
-
icon: 'fa-light fa-file-signature',
|
|
51
|
-
},
|
|
52
|
-
positionAssignment: {
|
|
53
|
-
name: 'PositionAssignment',
|
|
54
|
-
source: `${config.module}.PositionAssignment`,
|
|
55
|
-
title: '@human-capital-management:position-assignments.entities.position-assignment.title',
|
|
56
|
-
titlePlural: '@human-capital-management:position-assignments.entities.position-assignment.plural',
|
|
57
|
-
icon: 'fa-light fa-user-tie-hair',
|
|
58
|
-
},
|
|
59
|
-
leaveType: {
|
|
60
|
-
name: 'LeaveType',
|
|
61
|
-
source: `${config.module}.LeaveType`,
|
|
62
|
-
title: '@human-capital-management:leave-types.entities.leave-type.title',
|
|
63
|
-
titlePlural: '@human-capital-management:leave-types.entities.leave-type.plural',
|
|
64
|
-
icon: 'fa-light fa-calendar-days',
|
|
65
|
-
},
|
|
66
|
-
leaveRequest: {
|
|
67
|
-
name: 'LeaveRequest',
|
|
68
|
-
source: `${config.module}.LeaveRequest`,
|
|
69
|
-
title: '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
70
|
-
titlePlural: '@human-capital-management:leave-requests.entities.leave-request.plural',
|
|
71
|
-
icon: 'fa-light fa-plane-departure',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
pages: {
|
|
75
|
-
appointmentBoard: {
|
|
76
|
-
path: 'Boards/ResourceAppointment',
|
|
77
|
-
title: '@human-capital-management:leave-requests.menus.appointment-board.title',
|
|
78
|
-
icon: 'fa-light fa-calendar-lines',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// Entity exports - services and modules removed, handled by middleware
|
|
84
|
-
// Exporting entity types for use in feature components
|
|
85
|
-
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region ---- Task Badge Provider ----
|
|
88
|
-
class AXMLeaveRequestBadgeProvider extends AXPTaskBadgeProvider {
|
|
89
|
-
//#endregion
|
|
90
|
-
constructor() {
|
|
91
|
-
super();
|
|
92
|
-
//#region ---- Services & Dependencies ----
|
|
93
|
-
this.entityService = inject(AXPEntityService);
|
|
94
|
-
this.leaveRequestData = this.entityService
|
|
95
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)
|
|
96
|
-
.data();
|
|
97
|
-
this.commandEvents = inject(AXPCommandEventsService);
|
|
98
|
-
this.destroyRef = inject(DestroyRef);
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region ---- Signals & Properties ----
|
|
101
|
-
this.key = 'leave-request-badge';
|
|
102
|
-
this.count = signal(0, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
103
|
-
void this.refresh();
|
|
104
|
-
const unsubscribe = this.commandEvents.listen((event) => this.handleCommandEvent(event));
|
|
105
|
-
this.destroyRef.onDestroy(unsubscribe);
|
|
106
|
-
}
|
|
107
|
-
//#region ---- Badge Actions ----
|
|
108
|
-
/**
|
|
109
|
-
* Forces badge count recalculation by querying the leave request entity service.
|
|
110
|
-
*/
|
|
111
|
-
async refresh() {
|
|
112
|
-
const baseFilters = [
|
|
113
|
-
{
|
|
114
|
-
field: 'statusId',
|
|
115
|
-
operator: { type: 'equal' },
|
|
116
|
-
value: AXPSystemStatuses.Pending.name,
|
|
117
|
-
},
|
|
118
|
-
];
|
|
119
|
-
const result = await this.leaveRequestData.query({
|
|
120
|
-
skip: 0,
|
|
121
|
-
take: 99,
|
|
122
|
-
filter: {
|
|
123
|
-
logic: 'and',
|
|
124
|
-
filters: baseFilters,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
this.count.set(result.total);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Handles command execution events and refreshes the badge when targeted leave request commands succeed.
|
|
131
|
-
*/
|
|
132
|
-
async handleCommandEvent(event) {
|
|
133
|
-
if (!event || event.stage !== 'after' || !event.success) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
await this.refresh();
|
|
137
|
-
}
|
|
138
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestBadgeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
139
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestBadgeProvider }); }
|
|
140
|
-
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestBadgeProvider, decorators: [{
|
|
142
|
-
type: Injectable
|
|
143
|
-
}], ctorParameters: () => [] });
|
|
144
|
-
|
|
145
|
-
class AXMLeaveRequestResourceAppointmentProvider extends AXPResourceAppointmentBoardProvider {
|
|
146
|
-
constructor() {
|
|
147
|
-
super(...arguments);
|
|
148
|
-
this.entityService = inject(AXPEntityService);
|
|
149
|
-
}
|
|
150
|
-
get name() {
|
|
151
|
-
return 'leave-request';
|
|
152
|
-
}
|
|
153
|
-
get title() {
|
|
154
|
-
return '@human-capital-management:leave-requests.entities.leave-request.plural';
|
|
155
|
-
}
|
|
156
|
-
get icon() {
|
|
157
|
-
return RootConfig.entities.leaveRequest.icon;
|
|
158
|
-
}
|
|
159
|
-
async getList(filter) {
|
|
160
|
-
const leaveRequestDataAccessor = this.entityService
|
|
161
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)
|
|
162
|
-
.data();
|
|
163
|
-
const employeeDataAccessor = this.entityService
|
|
164
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
|
|
165
|
-
.data();
|
|
166
|
-
const fieldFilters = [];
|
|
167
|
-
if (filter?.range?.from) {
|
|
168
|
-
fieldFilters.push({
|
|
169
|
-
field: 'startDate',
|
|
170
|
-
operator: { type: 'gte' },
|
|
171
|
-
value: filter.range.from,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
if (filter?.range?.end) {
|
|
175
|
-
fieldFilters.push({
|
|
176
|
-
field: 'endDate',
|
|
177
|
-
operator: { type: 'lte' },
|
|
178
|
-
value: filter.range.end,
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
const employee = await employeeDataAccessor.query();
|
|
182
|
-
const { items } = await leaveRequestDataAccessor.query({
|
|
183
|
-
skip: 0,
|
|
184
|
-
take: 1000,
|
|
185
|
-
...(fieldFilters.length
|
|
186
|
-
? {
|
|
187
|
-
filter: {
|
|
188
|
-
logic: 'and',
|
|
189
|
-
filters: fieldFilters,
|
|
190
|
-
},
|
|
191
|
-
}
|
|
192
|
-
: {}),
|
|
193
|
-
});
|
|
194
|
-
const result = employee.items.map((employee) => ({
|
|
195
|
-
id: employee.id,
|
|
196
|
-
title: employee.person?.fullName ?? '',
|
|
197
|
-
description: 'description', //TODO fill later
|
|
198
|
-
icon: 'icon',
|
|
199
|
-
appointments: items
|
|
200
|
-
.filter((item) => item.employeeId === employee.id)
|
|
201
|
-
.map((item) => ({
|
|
202
|
-
id: item.id,
|
|
203
|
-
title: item.leaveType?.title ?? '',
|
|
204
|
-
startDate: item.startDate,
|
|
205
|
-
endDate: item.endDate,
|
|
206
|
-
resourceId: item.employeeId,
|
|
207
|
-
description: item.reason,
|
|
208
|
-
allDay: false,
|
|
209
|
-
})),
|
|
210
|
-
}));
|
|
211
|
-
return result;
|
|
212
|
-
// const resourcesMap = new Map<string | number, AXPResourceAppointmentResource>();
|
|
213
|
-
// for (const leave of items) {
|
|
214
|
-
// const resourceId: string | number = leave.employeeId ?? 'unassigned';
|
|
215
|
-
// let resource = resourcesMap.get(resourceId);
|
|
216
|
-
// if (!resource) {
|
|
217
|
-
// resource = {
|
|
218
|
-
// id: resourceId,
|
|
219
|
-
// title: leave.employee?.person?.displayName ?? '@general:terms.people.employee',
|
|
220
|
-
// appointments: [],
|
|
221
|
-
// };
|
|
222
|
-
// resourcesMap.set(resourceId, resource);
|
|
223
|
-
// }
|
|
224
|
-
// const task: AXPResourceAppointmentItem = {
|
|
225
|
-
// id: leave.id,
|
|
226
|
-
// title: leave.leaveType?.title ?? '@human-capital-management:leave-requests.entities.leave-request.title',
|
|
227
|
-
// description: leave.reason,
|
|
228
|
-
// startDate: leave.startDate,
|
|
229
|
-
// endDate: leave.endDate,
|
|
230
|
-
// allDay: false,
|
|
231
|
-
// resourceId,
|
|
232
|
-
// };
|
|
233
|
-
// resource.appointments.push(task);
|
|
234
|
-
// }
|
|
235
|
-
// return Array.from(resourcesMap.values());
|
|
236
|
-
}
|
|
237
|
-
async getStatuses() {
|
|
238
|
-
const pending = AXPSystemStatuses.Pending;
|
|
239
|
-
const approved = AXPSystemStatuses.Approved;
|
|
240
|
-
const rejected = AXPSystemStatuses.Rejected;
|
|
241
|
-
const cancelled = AXPSystemStatuses.Cancelled;
|
|
242
|
-
const statuses = [
|
|
243
|
-
{ key: pending.name, index: 0, title: pending.title, color: pending.color },
|
|
244
|
-
{ key: approved.name, index: 1, title: approved.title, color: approved.color },
|
|
245
|
-
{ key: rejected.name, index: 2, title: rejected.title, color: rejected.color },
|
|
246
|
-
{ key: cancelled.name, index: 3, title: cancelled.title, color: cancelled.color },
|
|
247
|
-
];
|
|
248
|
-
return statuses;
|
|
249
|
-
}
|
|
250
|
-
async getActions(
|
|
251
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
252
|
-
context) {
|
|
253
|
-
// Actions can be wired to existing approve/reject/cancel commands later.
|
|
254
|
-
// For now, return an empty list so the board works without a context menu.
|
|
255
|
-
return [];
|
|
256
|
-
}
|
|
257
|
-
async executeCommand(
|
|
258
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
259
|
-
command) {
|
|
260
|
-
// No-op for now – commands are handled by existing leave request commands elsewhere.
|
|
261
|
-
return { success: true };
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
class AXPLeaveRequestDialogService {
|
|
266
|
-
constructor() {
|
|
267
|
-
this.layoutBuilder = inject(AXPLayoutBuilderService);
|
|
268
|
-
this.translationService = inject(AXTranslationService);
|
|
269
|
-
}
|
|
270
|
-
async showRejectionDialog() {
|
|
271
|
-
const result = await this.layoutBuilder
|
|
272
|
-
.create()
|
|
273
|
-
.dialog(dialog => {
|
|
274
|
-
dialog
|
|
275
|
-
.setTitle('@general:actions.reject.title')
|
|
276
|
-
.setMessage('@human-capital-management:leave-requests.components.rejection-dialog.message')
|
|
277
|
-
.setContext({ reason: '', note: '' })
|
|
278
|
-
.content(flex => {
|
|
279
|
-
flex
|
|
280
|
-
.setDirection('column')
|
|
281
|
-
.formField('@human-capital-management:leave-requests.components.rejection-dialog.fields.reason-label', field => {
|
|
282
|
-
field.path('reason');
|
|
283
|
-
field.largeTextBox({
|
|
284
|
-
placeholder: '@human-capital-management:leave-requests.components.rejection-dialog.fields.reason-placeholder',
|
|
285
|
-
maxLength: 500
|
|
286
|
-
});
|
|
287
|
-
})
|
|
288
|
-
.formField('@human-capital-management:leave-requests.components.rejection-dialog.fields.note-label', field => {
|
|
289
|
-
field.path('note');
|
|
290
|
-
field.largeTextBox({
|
|
291
|
-
placeholder: '@human-capital-management:leave-requests.components.rejection-dialog.fields.note-placeholder',
|
|
292
|
-
maxLength: 1000
|
|
293
|
-
});
|
|
294
|
-
});
|
|
295
|
-
})
|
|
296
|
-
.setActions(actions => {
|
|
297
|
-
actions.cancel('@general:actions.cancel.title').submit('@general:actions.reject.title');
|
|
298
|
-
})
|
|
299
|
-
.onAction(async (dialogRef) => {
|
|
300
|
-
const context = dialogRef.context();
|
|
301
|
-
const action = dialogRef.action();
|
|
302
|
-
if (!context || action === 'cancel') {
|
|
303
|
-
return { reason: undefined, note: undefined, cancelled: true };
|
|
304
|
-
}
|
|
305
|
-
return {
|
|
306
|
-
reason: context['reason'],
|
|
307
|
-
note: context['note'],
|
|
308
|
-
cancelled: false
|
|
309
|
-
};
|
|
310
|
-
});
|
|
311
|
-
})
|
|
312
|
-
.show();
|
|
313
|
-
return result;
|
|
314
|
-
}
|
|
315
|
-
async showCancellationDialog() {
|
|
316
|
-
const result = await this.layoutBuilder
|
|
317
|
-
.create()
|
|
318
|
-
.dialog(dialog => {
|
|
319
|
-
dialog
|
|
320
|
-
.setTitle('@general:actions.cancel.title')
|
|
321
|
-
.setMessage('@human-capital-management:leave-requests.components.cancellation-dialog.message')
|
|
322
|
-
.setContext({ reason: '', note: '' })
|
|
323
|
-
.content(flex => {
|
|
324
|
-
flex
|
|
325
|
-
.setDirection('column')
|
|
326
|
-
.formField('@human-capital-management:leave-requests.components.cancellation-dialog.fields.reason-label', field => {
|
|
327
|
-
field.path('reason');
|
|
328
|
-
field.largeTextBox({
|
|
329
|
-
placeholder: '@human-capital-management:leave-requests.components.cancellation-dialog.fields.reason-placeholder',
|
|
330
|
-
maxLength: 500
|
|
331
|
-
});
|
|
332
|
-
})
|
|
333
|
-
.formField('@human-capital-management:leave-requests.components.cancellation-dialog.fields.note-label', field => {
|
|
334
|
-
field.path('note');
|
|
335
|
-
field.largeTextBox({
|
|
336
|
-
placeholder: '@human-capital-management:leave-requests.components.cancellation-dialog.fields.note-placeholder',
|
|
337
|
-
maxLength: 1000
|
|
338
|
-
});
|
|
339
|
-
});
|
|
340
|
-
})
|
|
341
|
-
.setActions(actions => {
|
|
342
|
-
actions.cancel('@general:actions.close.title').submit('@general:actions.cancel.title');
|
|
343
|
-
})
|
|
344
|
-
.onAction(async (dialogRef) => {
|
|
345
|
-
const context = dialogRef.context();
|
|
346
|
-
const action = dialogRef.action();
|
|
347
|
-
if (!context || action === 'cancel') {
|
|
348
|
-
return { reason: undefined, note: undefined, cancelled: true };
|
|
349
|
-
}
|
|
350
|
-
return {
|
|
351
|
-
reason: context['reason'],
|
|
352
|
-
note: context['note'],
|
|
353
|
-
cancelled: false
|
|
354
|
-
};
|
|
355
|
-
});
|
|
356
|
-
})
|
|
357
|
-
.show();
|
|
358
|
-
return result;
|
|
359
|
-
}
|
|
360
|
-
async showApprovalDialog() {
|
|
361
|
-
const result = await this.layoutBuilder
|
|
362
|
-
.create()
|
|
363
|
-
.dialog(dialog => {
|
|
364
|
-
dialog
|
|
365
|
-
.setTitle('@general:actions.approve.title')
|
|
366
|
-
.setMessage('@human-capital-management:leave-requests.components.approval-dialog.message')
|
|
367
|
-
.setContext({ note: '' })
|
|
368
|
-
.content(flex => {
|
|
369
|
-
flex
|
|
370
|
-
.setDirection('column')
|
|
371
|
-
.formField('@human-capital-management:leave-requests.components.approval-dialog.fields.note-label', field => {
|
|
372
|
-
field.path('note');
|
|
373
|
-
field.largeTextBox({
|
|
374
|
-
placeholder: '@human-capital-management:leave-requests.components.approval-dialog.fields.note-placeholder',
|
|
375
|
-
maxLength: 1000
|
|
376
|
-
});
|
|
377
|
-
});
|
|
378
|
-
})
|
|
379
|
-
.setActions(actions => {
|
|
380
|
-
actions.cancel('@general:actions.cancel.title').submit('@general:actions.approve.title');
|
|
381
|
-
})
|
|
382
|
-
.onAction(async (dialogRef) => {
|
|
383
|
-
const context = dialogRef.context();
|
|
384
|
-
const action = dialogRef.action();
|
|
385
|
-
if (!context || action === 'cancel') {
|
|
386
|
-
return { note: undefined, cancelled: true };
|
|
387
|
-
}
|
|
388
|
-
return {
|
|
389
|
-
note: context['note'],
|
|
390
|
-
cancelled: false
|
|
391
|
-
};
|
|
392
|
-
});
|
|
393
|
-
})
|
|
394
|
-
.show();
|
|
395
|
-
return result;
|
|
396
|
-
}
|
|
397
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPLeaveRequestDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
398
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPLeaveRequestDialogService, providedIn: 'root' }); }
|
|
399
|
-
}
|
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPLeaveRequestDialogService, decorators: [{
|
|
401
|
-
type: Injectable,
|
|
402
|
-
args: [{
|
|
403
|
-
providedIn: 'root'
|
|
404
|
-
}]
|
|
405
|
-
}] });
|
|
406
|
-
|
|
407
|
-
class AXMLeaveRequestTaskPopoverComponent {
|
|
408
|
-
constructor() {
|
|
409
|
-
this.task = input.required(...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
|
|
410
|
-
this.commandExecutor = inject(AXPCommandExecutor);
|
|
411
|
-
this.dialogService = inject(AXPLeaveRequestDialogService);
|
|
412
|
-
this.taskData = computed(() => {
|
|
413
|
-
const task = this.task();
|
|
414
|
-
return (task.data ||
|
|
415
|
-
task.payload);
|
|
416
|
-
}, ...(ngDevMode ? [{ debugName: "taskData" }] : /* istanbul ignore next */ []));
|
|
417
|
-
this.employeeName = computed(() => {
|
|
418
|
-
const data = this.taskData();
|
|
419
|
-
return this.task().reporter?.fullName || 'Unknown';
|
|
420
|
-
}, ...(ngDevMode ? [{ debugName: "employeeName" }] : /* istanbul ignore next */ []));
|
|
421
|
-
this.managerName = computed(() => {
|
|
422
|
-
const data = this.taskData();
|
|
423
|
-
return data?.employee?.manager?.person?.fullName || '';
|
|
424
|
-
}, ...(ngDevMode ? [{ debugName: "managerName" }] : /* istanbul ignore next */ []));
|
|
425
|
-
this.leaveType = computed(() => {
|
|
426
|
-
const data = this.taskData();
|
|
427
|
-
// Extract leave type from task title or data
|
|
428
|
-
const title = this.task().title || '';
|
|
429
|
-
const parts = title.split(' - ');
|
|
430
|
-
return parts.length > 1 ? parts[1] : data?.leaveType?.title || 'N/A';
|
|
431
|
-
}, ...(ngDevMode ? [{ debugName: "leaveType" }] : /* istanbul ignore next */ []));
|
|
432
|
-
this.canApprove = computed(() => {
|
|
433
|
-
const statusId = this.task().status?.id;
|
|
434
|
-
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Rejected.name;
|
|
435
|
-
}, ...(ngDevMode ? [{ debugName: "canApprove" }] : /* istanbul ignore next */ []));
|
|
436
|
-
this.canReject = computed(() => {
|
|
437
|
-
const statusId = this.task().status?.id;
|
|
438
|
-
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Approved.name;
|
|
439
|
-
}, ...(ngDevMode ? [{ debugName: "canReject" }] : /* istanbul ignore next */ []));
|
|
440
|
-
this.canCancel = computed(() => {
|
|
441
|
-
const statusId = this.task().status?.id;
|
|
442
|
-
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Approved.name;
|
|
443
|
-
}, ...(ngDevMode ? [{ debugName: "canCancel" }] : /* istanbul ignore next */ []));
|
|
444
|
-
}
|
|
445
|
-
formatDate(date) {
|
|
446
|
-
return new Intl.DateTimeFormat('en-US', {
|
|
447
|
-
year: 'numeric',
|
|
448
|
-
month: 'short',
|
|
449
|
-
day: 'numeric',
|
|
450
|
-
}).format(new Date(date));
|
|
451
|
-
}
|
|
452
|
-
calculateDuration() {
|
|
453
|
-
const start = new Date(this.task().startDate);
|
|
454
|
-
const end = new Date(this.task().endDate);
|
|
455
|
-
const diffTime = Math.abs(end.getTime() - start.getTime());
|
|
456
|
-
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
|
457
|
-
return diffDays + 1; // Include both start and end days
|
|
458
|
-
}
|
|
459
|
-
async handleApprove() {
|
|
460
|
-
const task = this.task();
|
|
461
|
-
const leaveRequestId = task.id;
|
|
462
|
-
try {
|
|
463
|
-
const dialogResult = await this.dialogService.showApprovalDialog();
|
|
464
|
-
if (dialogResult?.cancelled) {
|
|
465
|
-
return;
|
|
466
|
-
}
|
|
467
|
-
const commandKey = 'HumanCapitalManagement.LeaveRequest:Approve';
|
|
468
|
-
const result = await this.commandExecutor.execute(commandKey, {
|
|
469
|
-
id: leaveRequestId,
|
|
470
|
-
reason: dialogResult?.reason,
|
|
471
|
-
note: dialogResult?.note,
|
|
472
|
-
});
|
|
473
|
-
if (result?.success) {
|
|
474
|
-
// Optionally emit an event or refresh the task
|
|
475
|
-
console.log('Leave request approved successfully');
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
catch (error) {
|
|
479
|
-
console.error('Failed to approve leave request:', error);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
async handleReject() {
|
|
483
|
-
const task = this.task();
|
|
484
|
-
const leaveRequestId = task.id;
|
|
485
|
-
try {
|
|
486
|
-
const dialogResult = await this.dialogService.showRejectionDialog();
|
|
487
|
-
if (dialogResult?.cancelled) {
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
const commandKey = 'HumanCapitalManagement.LeaveRequest:Reject';
|
|
491
|
-
const result = await this.commandExecutor.execute(commandKey, {
|
|
492
|
-
id: leaveRequestId,
|
|
493
|
-
reason: dialogResult?.reason,
|
|
494
|
-
note: dialogResult?.note,
|
|
495
|
-
});
|
|
496
|
-
if (result?.success) {
|
|
497
|
-
console.log('Leave request rejected successfully');
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
catch (error) {
|
|
501
|
-
console.error('Failed to reject leave request:', error);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
async handleCancel() {
|
|
505
|
-
const task = this.task();
|
|
506
|
-
const leaveRequestId = task.id;
|
|
507
|
-
try {
|
|
508
|
-
const dialogResult = await this.dialogService.showCancellationDialog();
|
|
509
|
-
if (dialogResult?.cancelled) {
|
|
510
|
-
return;
|
|
511
|
-
}
|
|
512
|
-
const commandKey = 'HumanCapitalManagement.LeaveRequest:Cancel';
|
|
513
|
-
const result = await this.commandExecutor.execute(commandKey, {
|
|
514
|
-
id: leaveRequestId,
|
|
515
|
-
reason: dialogResult?.reason,
|
|
516
|
-
note: dialogResult?.note,
|
|
517
|
-
});
|
|
518
|
-
if (result?.success) {
|
|
519
|
-
console.log('Leave request cancelled successfully');
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
catch (error) {
|
|
523
|
-
console.error('Failed to cancel leave request:', error);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
527
|
-
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: `
|
|
528
|
-
<div class="leave-request-popover">
|
|
529
|
-
<!-- Employee Info -->
|
|
530
|
-
<div class="leave-request-popover__section">
|
|
531
|
-
<div class="leave-request-popover__section-header">
|
|
532
|
-
<i class="fa-light fa-user"></i>
|
|
533
|
-
<span>Employee Information</span>
|
|
534
|
-
</div>
|
|
535
|
-
<div class="leave-request-popover__section-content">
|
|
536
|
-
<div class="leave-request-popover__info-row">
|
|
537
|
-
<span class="leave-request-popover__label">Employee:</span>
|
|
538
|
-
<span class="leave-request-popover__value">{{ employeeName() }}</span>
|
|
539
|
-
</div>
|
|
540
|
-
@if (managerName(); as manager) {
|
|
541
|
-
<div class="leave-request-popover__info-row">
|
|
542
|
-
<span class="leave-request-popover__label">Manager:</span>
|
|
543
|
-
<span class="leave-request-popover__value">{{ manager }}</span>
|
|
544
|
-
</div>
|
|
545
|
-
}
|
|
546
|
-
</div>
|
|
547
|
-
</div>
|
|
548
|
-
|
|
549
|
-
<!-- Leave Details -->
|
|
550
|
-
<div class="leave-request-popover__section">
|
|
551
|
-
<div class="leave-request-popover__section-header">
|
|
552
|
-
<i class="fa-light fa-calendar"></i>
|
|
553
|
-
<span>Leave Details</span>
|
|
554
|
-
</div>
|
|
555
|
-
<div class="leave-request-popover__section-content">
|
|
556
|
-
<div class="leave-request-popover__info-row">
|
|
557
|
-
<span class="leave-request-popover__label">Leave Type:</span>
|
|
558
|
-
<span class="leave-request-popover__value">{{ leaveType() }}</span>
|
|
559
|
-
</div>
|
|
560
|
-
<div class="leave-request-popover__info-row">
|
|
561
|
-
<span class="leave-request-popover__label">Start Date:</span>
|
|
562
|
-
<span class="leave-request-popover__value">{{ formatDate(task().startDate) }}</span>
|
|
563
|
-
</div>
|
|
564
|
-
<div class="leave-request-popover__info-row">
|
|
565
|
-
<span class="leave-request-popover__label">End Date:</span>
|
|
566
|
-
<span class="leave-request-popover__value">{{ formatDate(task().endDate) }}</span>
|
|
567
|
-
</div>
|
|
568
|
-
<div class="leave-request-popover__info-row">
|
|
569
|
-
<span class="leave-request-popover__label">Duration:</span>
|
|
570
|
-
<span class="leave-request-popover__value">{{ calculateDuration() }} days</span>
|
|
571
|
-
</div>
|
|
572
|
-
</div>
|
|
573
|
-
</div>
|
|
574
|
-
|
|
575
|
-
<!-- Reason -->
|
|
576
|
-
@if (task().description) {
|
|
577
|
-
<div class="leave-request-popover__section">
|
|
578
|
-
<div class="leave-request-popover__section-header">
|
|
579
|
-
<i class="fa-light fa-note-sticky"></i>
|
|
580
|
-
<span>Reason</span>
|
|
581
|
-
</div>
|
|
582
|
-
<div class="leave-request-popover__section-content">
|
|
583
|
-
<p class="leave-request-popover__reason">{{ task().description }}</p>
|
|
584
|
-
</div>
|
|
585
|
-
</div>
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
<!-- Status -->
|
|
589
|
-
<div class="leave-request-popover__section">
|
|
590
|
-
<div class="leave-request-popover__section-header">
|
|
591
|
-
<i class="fa-light fa-flag"></i>
|
|
592
|
-
<span>Status</span>
|
|
593
|
-
</div>
|
|
594
|
-
<div class="leave-request-popover__section-content">
|
|
595
|
-
<div class="leave-request-popover__status-badge" [attr.data-status]="task().status.id">
|
|
596
|
-
{{ task().status.title }}
|
|
597
|
-
</div>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
|
|
601
|
-
<!-- Actions -->
|
|
602
|
-
<div class="leave-request-popover__actions">
|
|
603
|
-
@if (canApprove()) {
|
|
604
|
-
<ax-button
|
|
605
|
-
[color]="'success'"
|
|
606
|
-
[look]="'blank'"
|
|
607
|
-
[text]="'@general:actions.approve.title' | translate | async"
|
|
608
|
-
(onClick)="handleApprove()"
|
|
609
|
-
class="leave-request-popover__action-btn"
|
|
610
|
-
>
|
|
611
|
-
<ax-prefix>
|
|
612
|
-
<i class="fa-light fa-check"></i>
|
|
613
|
-
</ax-prefix>
|
|
614
|
-
</ax-button>
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
@if (canReject()) {
|
|
618
|
-
<ax-button
|
|
619
|
-
[color]="'danger'"
|
|
620
|
-
[look]="'blank'"
|
|
621
|
-
[text]="'@general:actions.reject.title' | translate | async"
|
|
622
|
-
(onClick)="handleReject()"
|
|
623
|
-
class="leave-request-popover__action-btn"
|
|
624
|
-
>
|
|
625
|
-
<ax-prefix>
|
|
626
|
-
<i class="fa-light fa-xmark"></i>
|
|
627
|
-
</ax-prefix>
|
|
628
|
-
</ax-button>
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
@if (canCancel()) {
|
|
632
|
-
<ax-button
|
|
633
|
-
[color]="'secondary'"
|
|
634
|
-
[look]="'blank'"
|
|
635
|
-
[text]="'@general:actions.cancel.title' | translate | async"
|
|
636
|
-
(onClick)="handleCancel()"
|
|
637
|
-
class="leave-request-popover__action-btn"
|
|
638
|
-
>
|
|
639
|
-
<ax-prefix>
|
|
640
|
-
<i class="fa-light fa-ban"></i>
|
|
641
|
-
</ax-prefix>
|
|
642
|
-
</ax-button>
|
|
643
|
-
}
|
|
644
|
-
</div>
|
|
645
|
-
</div>
|
|
646
|
-
`, 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 }); }
|
|
647
|
-
}
|
|
648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, decorators: [{
|
|
649
|
-
type: Component,
|
|
650
|
-
args: [{ selector: 'axm-leave-request-task-popover', template: `
|
|
651
|
-
<div class="leave-request-popover">
|
|
652
|
-
<!-- Employee Info -->
|
|
653
|
-
<div class="leave-request-popover__section">
|
|
654
|
-
<div class="leave-request-popover__section-header">
|
|
655
|
-
<i class="fa-light fa-user"></i>
|
|
656
|
-
<span>Employee Information</span>
|
|
657
|
-
</div>
|
|
658
|
-
<div class="leave-request-popover__section-content">
|
|
659
|
-
<div class="leave-request-popover__info-row">
|
|
660
|
-
<span class="leave-request-popover__label">Employee:</span>
|
|
661
|
-
<span class="leave-request-popover__value">{{ employeeName() }}</span>
|
|
662
|
-
</div>
|
|
663
|
-
@if (managerName(); as manager) {
|
|
664
|
-
<div class="leave-request-popover__info-row">
|
|
665
|
-
<span class="leave-request-popover__label">Manager:</span>
|
|
666
|
-
<span class="leave-request-popover__value">{{ manager }}</span>
|
|
667
|
-
</div>
|
|
668
|
-
}
|
|
669
|
-
</div>
|
|
670
|
-
</div>
|
|
671
|
-
|
|
672
|
-
<!-- Leave Details -->
|
|
673
|
-
<div class="leave-request-popover__section">
|
|
674
|
-
<div class="leave-request-popover__section-header">
|
|
675
|
-
<i class="fa-light fa-calendar"></i>
|
|
676
|
-
<span>Leave Details</span>
|
|
677
|
-
</div>
|
|
678
|
-
<div class="leave-request-popover__section-content">
|
|
679
|
-
<div class="leave-request-popover__info-row">
|
|
680
|
-
<span class="leave-request-popover__label">Leave Type:</span>
|
|
681
|
-
<span class="leave-request-popover__value">{{ leaveType() }}</span>
|
|
682
|
-
</div>
|
|
683
|
-
<div class="leave-request-popover__info-row">
|
|
684
|
-
<span class="leave-request-popover__label">Start Date:</span>
|
|
685
|
-
<span class="leave-request-popover__value">{{ formatDate(task().startDate) }}</span>
|
|
686
|
-
</div>
|
|
687
|
-
<div class="leave-request-popover__info-row">
|
|
688
|
-
<span class="leave-request-popover__label">End Date:</span>
|
|
689
|
-
<span class="leave-request-popover__value">{{ formatDate(task().endDate) }}</span>
|
|
690
|
-
</div>
|
|
691
|
-
<div class="leave-request-popover__info-row">
|
|
692
|
-
<span class="leave-request-popover__label">Duration:</span>
|
|
693
|
-
<span class="leave-request-popover__value">{{ calculateDuration() }} days</span>
|
|
694
|
-
</div>
|
|
695
|
-
</div>
|
|
696
|
-
</div>
|
|
697
|
-
|
|
698
|
-
<!-- Reason -->
|
|
699
|
-
@if (task().description) {
|
|
700
|
-
<div class="leave-request-popover__section">
|
|
701
|
-
<div class="leave-request-popover__section-header">
|
|
702
|
-
<i class="fa-light fa-note-sticky"></i>
|
|
703
|
-
<span>Reason</span>
|
|
704
|
-
</div>
|
|
705
|
-
<div class="leave-request-popover__section-content">
|
|
706
|
-
<p class="leave-request-popover__reason">{{ task().description }}</p>
|
|
707
|
-
</div>
|
|
708
|
-
</div>
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
<!-- Status -->
|
|
712
|
-
<div class="leave-request-popover__section">
|
|
713
|
-
<div class="leave-request-popover__section-header">
|
|
714
|
-
<i class="fa-light fa-flag"></i>
|
|
715
|
-
<span>Status</span>
|
|
716
|
-
</div>
|
|
717
|
-
<div class="leave-request-popover__section-content">
|
|
718
|
-
<div class="leave-request-popover__status-badge" [attr.data-status]="task().status.id">
|
|
719
|
-
{{ task().status.title }}
|
|
720
|
-
</div>
|
|
721
|
-
</div>
|
|
722
|
-
</div>
|
|
723
|
-
|
|
724
|
-
<!-- Actions -->
|
|
725
|
-
<div class="leave-request-popover__actions">
|
|
726
|
-
@if (canApprove()) {
|
|
727
|
-
<ax-button
|
|
728
|
-
[color]="'success'"
|
|
729
|
-
[look]="'blank'"
|
|
730
|
-
[text]="'@general:actions.approve.title' | translate | async"
|
|
731
|
-
(onClick)="handleApprove()"
|
|
732
|
-
class="leave-request-popover__action-btn"
|
|
733
|
-
>
|
|
734
|
-
<ax-prefix>
|
|
735
|
-
<i class="fa-light fa-check"></i>
|
|
736
|
-
</ax-prefix>
|
|
737
|
-
</ax-button>
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
@if (canReject()) {
|
|
741
|
-
<ax-button
|
|
742
|
-
[color]="'danger'"
|
|
743
|
-
[look]="'blank'"
|
|
744
|
-
[text]="'@general:actions.reject.title' | translate | async"
|
|
745
|
-
(onClick)="handleReject()"
|
|
746
|
-
class="leave-request-popover__action-btn"
|
|
747
|
-
>
|
|
748
|
-
<ax-prefix>
|
|
749
|
-
<i class="fa-light fa-xmark"></i>
|
|
750
|
-
</ax-prefix>
|
|
751
|
-
</ax-button>
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
@if (canCancel()) {
|
|
755
|
-
<ax-button
|
|
756
|
-
[color]="'secondary'"
|
|
757
|
-
[look]="'blank'"
|
|
758
|
-
[text]="'@general:actions.cancel.title' | translate | async"
|
|
759
|
-
(onClick)="handleCancel()"
|
|
760
|
-
class="leave-request-popover__action-btn"
|
|
761
|
-
>
|
|
762
|
-
<ax-prefix>
|
|
763
|
-
<i class="fa-light fa-ban"></i>
|
|
764
|
-
</ax-prefix>
|
|
765
|
-
</ax-button>
|
|
766
|
-
}
|
|
767
|
-
</div>
|
|
768
|
-
</div>
|
|
769
|
-
`, 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"] }]
|
|
770
|
-
}], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
771
|
-
|
|
772
|
-
const AXPHumanCapitalManagementFeatureKeys = {
|
|
773
|
-
EmployeeManagement: 'HumanCapitalManagement:Feature:Employee.Management',
|
|
774
|
-
LeaveManagement: 'HumanCapitalManagement:Feature:Leave.Management',
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
//#region ---- Imports ----
|
|
778
|
-
//#endregion
|
|
779
|
-
//#region ---- Feature Definition Provider ----
|
|
780
|
-
/**
|
|
781
|
-
* Human Capital Management Feature Definition Provider.
|
|
782
|
-
* Provides feature definitions for the Human Capital Management module.
|
|
783
|
-
*/
|
|
784
|
-
class AXPHumanCapitalManagementFeatureDefinitionProvider {
|
|
785
|
-
async provide(context) {
|
|
786
|
-
context.addFeature(AXPHumanCapitalManagementFeatureKeys.EmployeeManagement, {
|
|
787
|
-
title: '@human-capital-management:features.employee-management.title',
|
|
788
|
-
description: '@human-capital-management:features.employee-management.description',
|
|
789
|
-
defaultValue: true,
|
|
790
|
-
type: 'boolean',
|
|
791
|
-
});
|
|
792
|
-
context.addFeature(AXPHumanCapitalManagementFeatureKeys.LeaveManagement, {
|
|
793
|
-
title: '@human-capital-management:features.leave-management.title',
|
|
794
|
-
description: '@human-capital-management:features.leave-management.description',
|
|
795
|
-
defaultValue: true,
|
|
796
|
-
type: 'boolean',
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
//#endregion
|
|
801
|
-
|
|
802
|
-
class AXMHumanCapitalModuleEntityProvider {
|
|
803
|
-
constructor() {
|
|
804
|
-
this.injector = inject(Injector);
|
|
805
|
-
}
|
|
806
|
-
preload() {
|
|
807
|
-
const module = RootConfig.module.name;
|
|
808
|
-
return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
|
|
809
|
-
module: module,
|
|
810
|
-
entity: entity.name,
|
|
811
|
-
}));
|
|
812
|
-
}
|
|
813
|
-
async get(moduleName, entityName) {
|
|
814
|
-
if (moduleName == RootConfig.module.name) {
|
|
815
|
-
switch (entityName) {
|
|
816
|
-
case RootConfig.entities.employee.name:
|
|
817
|
-
return (await import('./acorex-modules-human-capital-management-employee.entity-BRpqFRuI.mjs')).factory();
|
|
818
|
-
case RootConfig.entities.employmentType.name:
|
|
819
|
-
return (await import('./acorex-modules-human-capital-management-employment-type.entity-7ZGZYxGM.mjs')).factory();
|
|
820
|
-
case RootConfig.entities.positionAssignment?.name:
|
|
821
|
-
return (await import('./acorex-modules-human-capital-management-position-assignment.entity-D_C459kx.mjs')).factory();
|
|
822
|
-
case RootConfig.entities.leaveType.name:
|
|
823
|
-
return (await import('./acorex-modules-human-capital-management-leave-type.entity-OKu8_PP1.mjs')).factory();
|
|
824
|
-
case RootConfig.entities.leaveRequest.name:
|
|
825
|
-
return (await import('./acorex-modules-human-capital-management-leave-request.entity-B3Rk84bJ.mjs')).factory();
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
return null;
|
|
829
|
-
}
|
|
830
|
-
async list() {
|
|
831
|
-
const m = RootConfig.module.name;
|
|
832
|
-
return Promise.resolve(Object.values(RootConfig.entities).map((e) => ({ name: e.name, module: m })));
|
|
833
|
-
}
|
|
834
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
835
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalModuleEntityProvider }); }
|
|
836
|
-
}
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalModuleEntityProvider, decorators: [{
|
|
838
|
-
type: Injectable
|
|
839
|
-
}] });
|
|
840
|
-
|
|
841
|
-
//#region ---- Imports ----
|
|
842
|
-
//#endregion
|
|
843
|
-
//#region ---- Leave Request Status Provider ----
|
|
844
|
-
/**
|
|
845
|
-
* Leave request status provider defining lifecycle states: Pending, Approved, Rejected, Cancelled.
|
|
846
|
-
* Used by the status plugin to manage leave request status transitions and metadata.
|
|
847
|
-
*/
|
|
848
|
-
class AXMLeaveRequestStatusProvider extends AXPStatusProvider {
|
|
849
|
-
constructor() {
|
|
850
|
-
super(...arguments);
|
|
851
|
-
this.key = 'human-capital-management.status.leave-request';
|
|
852
|
-
this.statuses = [
|
|
853
|
-
systemStatusToDefinition(AXPSystemStatusType.Pending, {
|
|
854
|
-
title: '@human-capital-management:leave-requests.states.pending',
|
|
855
|
-
generateView: true,
|
|
856
|
-
}),
|
|
857
|
-
systemStatusToDefinition(AXPSystemStatusType.Approved, {
|
|
858
|
-
title: '@human-capital-management:leave-requests.states.approved',
|
|
859
|
-
generateView: true,
|
|
860
|
-
}),
|
|
861
|
-
systemStatusToDefinition(AXPSystemStatusType.Rejected, {
|
|
862
|
-
title: '@human-capital-management:leave-requests.states.rejected',
|
|
863
|
-
generateView: true,
|
|
864
|
-
}),
|
|
865
|
-
systemStatusToDefinition(AXPSystemStatusType.Cancelled, {
|
|
866
|
-
title: '@human-capital-management:leave-requests.states.cancelled',
|
|
867
|
-
generateView: true,
|
|
868
|
-
}),
|
|
869
|
-
];
|
|
870
|
-
this.transitions = [
|
|
871
|
-
{
|
|
872
|
-
from: AXPSystemStatusType.Pending,
|
|
873
|
-
to: AXPSystemStatusType.Approved,
|
|
874
|
-
title: '@general:statuses.transitions.approve',
|
|
875
|
-
requiresApproval: true
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
from: AXPSystemStatusType.Pending,
|
|
879
|
-
to: AXPSystemStatusType.Rejected,
|
|
880
|
-
title: '@general:statuses.transitions.reject',
|
|
881
|
-
requiresApproval: true
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
from: AXPSystemStatusType.Pending,
|
|
885
|
-
to: AXPSystemStatusType.Cancelled,
|
|
886
|
-
title: '@general:statuses.transitions.cancel',
|
|
887
|
-
requiresApproval: true
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
from: AXPSystemStatusType.Approved,
|
|
891
|
-
to: AXPSystemStatusType.Cancelled,
|
|
892
|
-
title: '@general:statuses.transitions.cancel',
|
|
893
|
-
requiresApproval: true
|
|
894
|
-
},
|
|
895
|
-
];
|
|
896
|
-
this.defaultStatus = AXPSystemStatusType.Pending;
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
//#endregion
|
|
900
|
-
|
|
901
|
-
class AXMLeaveRequestFeatureModule {
|
|
902
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
903
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, imports: [CommonModule, AXPRuntimeModule] }); }
|
|
904
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, providers: [
|
|
905
|
-
{
|
|
906
|
-
provide: AXP_TASK_BADGE_PROVIDERS,
|
|
907
|
-
useClass: AXMLeaveRequestBadgeProvider,
|
|
908
|
-
multi: true,
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
provide: AXP_STATUS_PROVIDERS,
|
|
912
|
-
useClass: AXMLeaveRequestStatusProvider,
|
|
913
|
-
multi: true,
|
|
914
|
-
},
|
|
915
|
-
provideCommandSetups([
|
|
916
|
-
{
|
|
917
|
-
key: 'HumanCapitalManagement.LeaveRequest:Approve',
|
|
918
|
-
command: () => import('./acorex-modules-human-capital-management-approve-leave-request.command-BRUrGVh1.mjs').then((c) => c.ApproveLeaveRequestCommand),
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
key: 'HumanCapitalManagement.LeaveRequest:Reject',
|
|
922
|
-
command: () => import('./acorex-modules-human-capital-management-reject-leave-request.command-C0_moDp9.mjs').then((c) => c.RejectLeaveRequestCommand),
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
key: 'HumanCapitalManagement.LeaveRequest:Cancel',
|
|
926
|
-
command: () => import('./acorex-modules-human-capital-management-cancel-leave-request.command-B16M3F8s.mjs').then((c) => c.CancelLeaveRequestCommand),
|
|
927
|
-
},
|
|
928
|
-
]),
|
|
929
|
-
], imports: [CommonModule, AXPRuntimeModule] }); }
|
|
930
|
-
}
|
|
931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMLeaveRequestFeatureModule, decorators: [{
|
|
932
|
-
type: NgModule,
|
|
933
|
-
args: [{
|
|
934
|
-
imports: [CommonModule, AXPRuntimeModule],
|
|
935
|
-
providers: [
|
|
936
|
-
{
|
|
937
|
-
provide: AXP_TASK_BADGE_PROVIDERS,
|
|
938
|
-
useClass: AXMLeaveRequestBadgeProvider,
|
|
939
|
-
multi: true,
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
provide: AXP_STATUS_PROVIDERS,
|
|
943
|
-
useClass: AXMLeaveRequestStatusProvider,
|
|
944
|
-
multi: true,
|
|
945
|
-
},
|
|
946
|
-
provideCommandSetups([
|
|
947
|
-
{
|
|
948
|
-
key: 'HumanCapitalManagement.LeaveRequest:Approve',
|
|
949
|
-
command: () => import('./acorex-modules-human-capital-management-approve-leave-request.command-BRUrGVh1.mjs').then((c) => c.ApproveLeaveRequestCommand),
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
key: 'HumanCapitalManagement.LeaveRequest:Reject',
|
|
953
|
-
command: () => import('./acorex-modules-human-capital-management-reject-leave-request.command-C0_moDp9.mjs').then((c) => c.RejectLeaveRequestCommand),
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
key: 'HumanCapitalManagement.LeaveRequest:Cancel',
|
|
957
|
-
command: () => import('./acorex-modules-human-capital-management-cancel-leave-request.command-B16M3F8s.mjs').then((c) => c.CancelLeaveRequestCommand),
|
|
958
|
-
},
|
|
959
|
-
]),
|
|
960
|
-
],
|
|
961
|
-
}]
|
|
962
|
-
}] });
|
|
963
|
-
|
|
964
|
-
const AXM_EMPLOYEE_CODE_IDENTIFIER_RULE = {
|
|
965
|
-
id: 'employee-code',
|
|
966
|
-
title: 'Employee Code',
|
|
967
|
-
entity: 'HumanCapitalManagement.Employee',
|
|
968
|
-
pattern: 'EMP-{date:YYYYMM}-{seq:4}',
|
|
969
|
-
enabled: true,
|
|
970
|
-
priority: 1,
|
|
971
|
-
scopeConfig: { byTenant: false, period: 'yearly', minValue: 100, blockSize: 0 },
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
//#region ---- Imports ----
|
|
975
|
-
//#endregion
|
|
976
|
-
//#region ---- Custom Status Names ----
|
|
977
|
-
const OnLeave = 'on-leave';
|
|
978
|
-
const Terminated = 'terminated';
|
|
979
|
-
//#endregion
|
|
980
|
-
//#region ---- Employee Status Provider ----
|
|
981
|
-
/**
|
|
982
|
-
* Employee status provider defining standard lifecycle states: Active, On Leave, Suspended, Terminated, Pending.
|
|
983
|
-
* Used by the status plugin to manage employee status transitions and metadata.
|
|
984
|
-
*/
|
|
985
|
-
class AXMEmployeeStatusProvider extends AXPStatusProvider {
|
|
986
|
-
constructor() {
|
|
987
|
-
super(...arguments);
|
|
988
|
-
this.key = 'human-capital-management.status.employee';
|
|
989
|
-
this.defaultStatus = AXPSystemStatusType.Active;
|
|
990
|
-
this.statuses = [
|
|
991
|
-
systemStatusToDefinition(AXPSystemStatusType.Active, {
|
|
992
|
-
title: '@human-capital-management:employees.states.active',
|
|
993
|
-
generateView: true,
|
|
994
|
-
}),
|
|
995
|
-
{
|
|
996
|
-
name: OnLeave,
|
|
997
|
-
title: '@human-capital-management:employees.states.on-leave',
|
|
998
|
-
icon: 'fa-light fa-umbrella-beach',
|
|
999
|
-
color: 'info',
|
|
1000
|
-
order: 2,
|
|
1001
|
-
isInitial: false,
|
|
1002
|
-
isFinal: false,
|
|
1003
|
-
generateView: true,
|
|
1004
|
-
},
|
|
1005
|
-
systemStatusToDefinition(AXPSystemStatusType.Suspended, {
|
|
1006
|
-
title: '@human-capital-management:employees.states.suspended',
|
|
1007
|
-
generateView: true,
|
|
1008
|
-
}),
|
|
1009
|
-
{
|
|
1010
|
-
name: Terminated,
|
|
1011
|
-
title: '@human-capital-management:employees.states.terminated',
|
|
1012
|
-
icon: 'fa-light fa-user-xmark',
|
|
1013
|
-
color: 'danger',
|
|
1014
|
-
order: 4,
|
|
1015
|
-
isInitial: false,
|
|
1016
|
-
isFinal: true,
|
|
1017
|
-
generateView: true,
|
|
1018
|
-
},
|
|
1019
|
-
systemStatusToDefinition(AXPSystemStatusType.Pending, {
|
|
1020
|
-
title: '@human-capital-management:employees.states.pending',
|
|
1021
|
-
generateView: true,
|
|
1022
|
-
}),
|
|
1023
|
-
];
|
|
1024
|
-
this.transitions = [
|
|
1025
|
-
{
|
|
1026
|
-
from: AXPSystemStatusType.Pending,
|
|
1027
|
-
to: AXPSystemStatusType.Active,
|
|
1028
|
-
title: '@human-capital-management:employees.transitions.activate',
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
from: AXPSystemStatusType.Active,
|
|
1032
|
-
to: OnLeave,
|
|
1033
|
-
title: '@human-capital-management:employees.transitions.start-leave',
|
|
1034
|
-
},
|
|
1035
|
-
{
|
|
1036
|
-
from: OnLeave,
|
|
1037
|
-
to: AXPSystemStatusType.Active,
|
|
1038
|
-
title: '@human-capital-management:employees.transitions.return-from-leave',
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
from: AXPSystemStatusType.Active,
|
|
1042
|
-
to: AXPSystemStatusType.Suspended,
|
|
1043
|
-
title: '@human-capital-management:employees.transitions.suspend',
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
from: AXPSystemStatusType.Suspended,
|
|
1047
|
-
to: AXPSystemStatusType.Active,
|
|
1048
|
-
title: '@human-capital-management:employees.transitions.resume',
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
from: AXPSystemStatusType.Active,
|
|
1052
|
-
to: Terminated,
|
|
1053
|
-
title: '@human-capital-management:employees.transitions.terminate',
|
|
1054
|
-
},
|
|
1055
|
-
{
|
|
1056
|
-
from: OnLeave,
|
|
1057
|
-
to: Terminated,
|
|
1058
|
-
title: '@human-capital-management:employees.transitions.terminate',
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
from: AXPSystemStatusType.Suspended,
|
|
1062
|
-
to: Terminated,
|
|
1063
|
-
title: '@human-capital-management:employees.transitions.terminate',
|
|
1064
|
-
},
|
|
1065
|
-
];
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
//#endregion
|
|
1069
|
-
|
|
1070
|
-
//#region ---- Imports ----
|
|
1071
|
-
//#endregion
|
|
1072
|
-
//#region ---- Manifest Definition ----
|
|
1073
|
-
/**
|
|
1074
|
-
* Human Capital Management Module Manifest.
|
|
1075
|
-
* Defines module metadata, features, and provider references.
|
|
1076
|
-
*/
|
|
1077
|
-
const HumanCapitalManagementManifest = {
|
|
1078
|
-
name: RootConfig.module.name,
|
|
1079
|
-
version: '1.0.0',
|
|
1080
|
-
title: RootConfig.module.title,
|
|
1081
|
-
icon: RootConfig.module.icon,
|
|
1082
|
-
i18n: RootConfig.config.i18n,
|
|
1083
|
-
// Module dependencies
|
|
1084
|
-
dependencies: [
|
|
1085
|
-
'OrganizationManagement',
|
|
1086
|
-
'PersonCore',
|
|
1087
|
-
'LocationManagement',
|
|
1088
|
-
'DocumentManagement',
|
|
1089
|
-
],
|
|
1090
|
-
};
|
|
1091
|
-
//#endregion
|
|
1092
|
-
|
|
1093
|
-
const AXPHumanCapitalManagementMenuKeys = {
|
|
1094
|
-
Root: 'HumanCapitalManagement:Menu',
|
|
1095
|
-
Employees: 'HumanCapitalManagement:Menu:Employees',
|
|
1096
|
-
EmploymentTypes: 'HumanCapitalManagement:Menu:EmploymentTypes',
|
|
1097
|
-
Divider1: 'HumanCapitalManagement:Menu:Divider1',
|
|
1098
|
-
PositionAssignments: 'HumanCapitalManagement:Menu:PositionAssignments',
|
|
1099
|
-
Divider2: 'HumanCapitalManagement:Menu:Divider2',
|
|
1100
|
-
LeaveTypes: 'HumanCapitalManagement:Menu:LeaveTypes',
|
|
1101
|
-
LeaveRequests: 'HumanCapitalManagement:Menu:LeaveRequests',
|
|
1102
|
-
LeaveRequestBoard: 'HumanCapitalManagement:Menu:LeaveRequestBoard',
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
|
-
const AXMPermissionsKeys = {
|
|
1106
|
-
HumanCapitalManagement: {
|
|
1107
|
-
Employee: {
|
|
1108
|
-
Management: 'HumanCapitalManagement:Permission:Employee.Management',
|
|
1109
|
-
View: 'HumanCapitalManagement:Permission:Employee.View',
|
|
1110
|
-
Edit: 'HumanCapitalManagement:Permission:Employee.Edit',
|
|
1111
|
-
Delete: 'HumanCapitalManagement:Permission:Employee.Delete',
|
|
1112
|
-
Create: 'HumanCapitalManagement:Permission:Employee.Create',
|
|
1113
|
-
},
|
|
1114
|
-
EmploymentType: {
|
|
1115
|
-
Management: 'HumanCapitalManagement:Permission:EmploymentType.Management',
|
|
1116
|
-
View: 'HumanCapitalManagement:Permission:EmploymentType.View',
|
|
1117
|
-
Edit: 'HumanCapitalManagement:Permission:EmploymentType.Edit',
|
|
1118
|
-
Delete: 'HumanCapitalManagement:Permission:EmploymentType.Delete',
|
|
1119
|
-
Create: 'HumanCapitalManagement:Permission:EmploymentType.Create',
|
|
1120
|
-
},
|
|
1121
|
-
PositionAssignment: {
|
|
1122
|
-
Management: 'HumanCapitalManagement:Permission:PositionAssignment.Management',
|
|
1123
|
-
View: 'HumanCapitalManagement:Permission:PositionAssignment.View',
|
|
1124
|
-
Edit: 'HumanCapitalManagement:Permission:PositionAssignment.Edit',
|
|
1125
|
-
Delete: 'HumanCapitalManagement:Permission:PositionAssignment.Delete',
|
|
1126
|
-
Create: 'HumanCapitalManagement:Permission:PositionAssignment.Create',
|
|
1127
|
-
},
|
|
1128
|
-
LeaveType: {
|
|
1129
|
-
Management: 'HumanCapitalManagement:Permission:LeaveType.Management',
|
|
1130
|
-
View: 'HumanCapitalManagement:Permission:LeaveType.View',
|
|
1131
|
-
Edit: 'HumanCapitalManagement:Permission:LeaveType.Edit',
|
|
1132
|
-
Delete: 'HumanCapitalManagement:Permission:LeaveType.Delete',
|
|
1133
|
-
Create: 'HumanCapitalManagement:Permission:LeaveType.Create',
|
|
1134
|
-
},
|
|
1135
|
-
LeaveRequest: {
|
|
1136
|
-
Management: 'HumanCapitalManagement:Permission:LeaveRequest.Management',
|
|
1137
|
-
View: 'HumanCapitalManagement:Permission:LeaveRequest.View',
|
|
1138
|
-
Edit: 'HumanCapitalManagement:Permission:LeaveRequest.Edit',
|
|
1139
|
-
Delete: 'HumanCapitalManagement:Permission:LeaveRequest.Delete',
|
|
1140
|
-
Create: 'HumanCapitalManagement:Permission:LeaveRequest.Create',
|
|
1141
|
-
},
|
|
1142
|
-
},
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
class AXMMenuProvider {
|
|
1146
|
-
constructor() {
|
|
1147
|
-
this.entityService = inject(AXPEntityService);
|
|
1148
|
-
this.sessionService = inject(AXPSessionService);
|
|
1149
|
-
}
|
|
1150
|
-
async provide(context) {
|
|
1151
|
-
const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
|
|
1152
|
-
if (!isAuthorized) {
|
|
1153
|
-
return;
|
|
1154
|
-
}
|
|
1155
|
-
const module = RootConfig.module;
|
|
1156
|
-
const organizationMenu = context.find(AXPCommonMenuKeys.Organization);
|
|
1157
|
-
if (!organizationMenu.exists) {
|
|
1158
|
-
context.addItems([
|
|
1159
|
-
{
|
|
1160
|
-
name: AXPCommonMenuKeys.Organization,
|
|
1161
|
-
priority: 9000,
|
|
1162
|
-
text: '@organization-management:module.menus.root.title',
|
|
1163
|
-
type: 'menu',
|
|
1164
|
-
icon: 'fa-light fa-sitemap',
|
|
1165
|
-
children: [],
|
|
1166
|
-
},
|
|
1167
|
-
]);
|
|
1168
|
-
}
|
|
1169
|
-
// Root Organization: Employees, Position Assignments, Leave Requests (operational)
|
|
1170
|
-
context.find(AXPCommonMenuKeys.Organization).addItems([
|
|
1171
|
-
{
|
|
1172
|
-
name: AXPHumanCapitalManagementMenuKeys.Employees,
|
|
1173
|
-
text: '@human-capital-management:employees.menus.employees.title',
|
|
1174
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.employee.name),
|
|
1175
|
-
priority: 60,
|
|
1176
|
-
icon: RootConfig.entities.employee.icon,
|
|
1177
|
-
policy: {
|
|
1178
|
-
permissions: [AXMPermissionsKeys.HumanCapitalManagement.Employee.Management],
|
|
1179
|
-
features: [AXPHumanCapitalManagementFeatureKeys.EmployeeManagement],
|
|
1180
|
-
},
|
|
1181
|
-
},
|
|
1182
|
-
{ name: AXPHumanCapitalManagementMenuKeys.Divider1, text: '', type: 'break', priority: 62 },
|
|
1183
|
-
{
|
|
1184
|
-
name: AXPHumanCapitalManagementMenuKeys.LeaveRequests,
|
|
1185
|
-
text: '@human-capital-management:leave-requests.menus.leave-requests.title',
|
|
1186
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.leaveRequest.name),
|
|
1187
|
-
priority: 63,
|
|
1188
|
-
icon: RootConfig.entities.leaveRequest.icon,
|
|
1189
|
-
badgeKey: 'leave-request-badge',
|
|
1190
|
-
policy: {
|
|
1191
|
-
permissions: [AXMPermissionsKeys.HumanCapitalManagement.LeaveRequest.Management],
|
|
1192
|
-
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1193
|
-
},
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
name: AXPHumanCapitalManagementMenuKeys.LeaveRequestBoard,
|
|
1197
|
-
text: RootConfig.pages.appointmentBoard.title,
|
|
1198
|
-
path: `${this.sessionService.application?.name}/${RootConfig.pages.appointmentBoard.path}/leave-request`,
|
|
1199
|
-
priority: 64,
|
|
1200
|
-
icon: RootConfig.pages.appointmentBoard.icon,
|
|
1201
|
-
policy: {
|
|
1202
|
-
permissions: [AXMPermissionsKeys.HumanCapitalManagement.LeaveRequest.Management],
|
|
1203
|
-
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1204
|
-
},
|
|
1205
|
-
},
|
|
1206
|
-
]);
|
|
1207
|
-
// Configuration/Organization: Employment Types, Leave Types (reference)
|
|
1208
|
-
const orgConfigMenu = context.find(AXPCommonMenuKeys.OrganizationConfig);
|
|
1209
|
-
if (!orgConfigMenu.exists) {
|
|
1210
|
-
context.find(AXPCommonMenuKeys.Configuration).addItems([
|
|
1211
|
-
{
|
|
1212
|
-
name: AXPCommonMenuKeys.OrganizationConfig,
|
|
1213
|
-
priority: 8600,
|
|
1214
|
-
text: '@organization-management:module.menus.configuration.title',
|
|
1215
|
-
icon: module.icon,
|
|
1216
|
-
type: 'menu',
|
|
1217
|
-
children: [],
|
|
1218
|
-
},
|
|
1219
|
-
]);
|
|
1220
|
-
}
|
|
1221
|
-
context.find(AXPCommonMenuKeys.OrganizationConfig).addItems([
|
|
1222
|
-
{
|
|
1223
|
-
name: AXPHumanCapitalManagementMenuKeys.EmploymentTypes,
|
|
1224
|
-
text: '@human-capital-management:employment-types.menus.employment-types.title',
|
|
1225
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.employmentType.name),
|
|
1226
|
-
priority: 8,
|
|
1227
|
-
icon: RootConfig.entities.employmentType.icon,
|
|
1228
|
-
policy: {
|
|
1229
|
-
permissions: [AXMPermissionsKeys.HumanCapitalManagement.Employee.Management],
|
|
1230
|
-
features: [AXPHumanCapitalManagementFeatureKeys.EmployeeManagement],
|
|
1231
|
-
},
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
name: AXPHumanCapitalManagementMenuKeys.LeaveTypes,
|
|
1235
|
-
text: '@human-capital-management:leave-types.menus.leave-types.title',
|
|
1236
|
-
path: this.entityService.createPath(module.name, RootConfig.entities.leaveType.name),
|
|
1237
|
-
priority: 9,
|
|
1238
|
-
icon: RootConfig.entities.leaveType.icon,
|
|
1239
|
-
policy: {
|
|
1240
|
-
permissions: [AXMPermissionsKeys.HumanCapitalManagement.LeaveType.Management],
|
|
1241
|
-
features: [AXPHumanCapitalManagementFeatureKeys.LeaveManagement],
|
|
1242
|
-
},
|
|
1243
|
-
},
|
|
1244
|
-
]);
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
class AXMEmployeeDataSourceDefinition {
|
|
1249
|
-
constructor() {
|
|
1250
|
-
this.entityService = inject(AXPEntityService);
|
|
1251
|
-
this.employeeData = this.entityService
|
|
1252
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.employee.name)
|
|
1253
|
-
.data();
|
|
1254
|
-
}
|
|
1255
|
-
items() {
|
|
1256
|
-
return Promise.resolve([
|
|
1257
|
-
{
|
|
1258
|
-
name: 'employees',
|
|
1259
|
-
title: 'Employees',
|
|
1260
|
-
source: () => {
|
|
1261
|
-
return new AXDataSource({
|
|
1262
|
-
key: 'id',
|
|
1263
|
-
load: async (_) => {
|
|
1264
|
-
try {
|
|
1265
|
-
const res = await this.employeeData.query();
|
|
1266
|
-
return {
|
|
1267
|
-
items: res.items.map((item) => ({
|
|
1268
|
-
...item,
|
|
1269
|
-
})),
|
|
1270
|
-
total: res.total,
|
|
1271
|
-
};
|
|
1272
|
-
}
|
|
1273
|
-
catch (e) {
|
|
1274
|
-
console.log(e);
|
|
1275
|
-
throw e;
|
|
1276
|
-
}
|
|
1277
|
-
},
|
|
1278
|
-
byKey: async (key) => {
|
|
1279
|
-
return await this.employeeData.byKey(key);
|
|
1280
|
-
},
|
|
1281
|
-
pageSize: 100,
|
|
1282
|
-
});
|
|
1283
|
-
},
|
|
1284
|
-
columns: [
|
|
1285
|
-
{
|
|
1286
|
-
name: 'id',
|
|
1287
|
-
title: 'ID',
|
|
1288
|
-
datatype: 'uuid',
|
|
1289
|
-
type: AXPWidgetsCatalog.text,
|
|
1290
|
-
},
|
|
1291
|
-
{
|
|
1292
|
-
name: 'employeeCode',
|
|
1293
|
-
title: 'Employee Code',
|
|
1294
|
-
datatype: 'string',
|
|
1295
|
-
type: AXPWidgetsCatalog.text,
|
|
1296
|
-
},
|
|
1297
|
-
{
|
|
1298
|
-
name: 'person.fullName',
|
|
1299
|
-
title: 'Display Name',
|
|
1300
|
-
datatype: 'string',
|
|
1301
|
-
type: AXPWidgetsCatalog.text,
|
|
1302
|
-
},
|
|
1303
|
-
],
|
|
1304
|
-
filters: [
|
|
1305
|
-
{
|
|
1306
|
-
field: 'employeeCode',
|
|
1307
|
-
title: 'Employee Code',
|
|
1308
|
-
operator: {
|
|
1309
|
-
type: 'equal',
|
|
1310
|
-
},
|
|
1311
|
-
widget: {
|
|
1312
|
-
type: AXPWidgetsCatalog.text,
|
|
1313
|
-
},
|
|
1314
|
-
filterType: {
|
|
1315
|
-
advance: true,
|
|
1316
|
-
inline: true,
|
|
1317
|
-
},
|
|
1318
|
-
},
|
|
1319
|
-
],
|
|
1320
|
-
textField: {
|
|
1321
|
-
name: 'person.fullName',
|
|
1322
|
-
title: 'Display Name',
|
|
1323
|
-
},
|
|
1324
|
-
valueField: {
|
|
1325
|
-
name: 'id',
|
|
1326
|
-
title: 'ID',
|
|
1327
|
-
},
|
|
1328
|
-
},
|
|
1329
|
-
]);
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
class AXMEmploymentTypeDataSourceDefinition {
|
|
1334
|
-
constructor() {
|
|
1335
|
-
this.entityService = inject(AXPEntityService);
|
|
1336
|
-
this.employmentTypeData = this.entityService
|
|
1337
|
-
.withEntity(RootConfig.module.name, RootConfig.entities.employmentType.name)
|
|
1338
|
-
.data();
|
|
1339
|
-
}
|
|
1340
|
-
items() {
|
|
1341
|
-
return Promise.resolve([
|
|
1342
|
-
{
|
|
1343
|
-
name: 'employmentTypes',
|
|
1344
|
-
title: 'Employment Types',
|
|
1345
|
-
source: () => {
|
|
1346
|
-
return new AXDataSource({
|
|
1347
|
-
key: 'id',
|
|
1348
|
-
load: async (_) => {
|
|
1349
|
-
try {
|
|
1350
|
-
const res = await this.employmentTypeData.query();
|
|
1351
|
-
return {
|
|
1352
|
-
items: res.items.map((item) => ({
|
|
1353
|
-
...item,
|
|
1354
|
-
})),
|
|
1355
|
-
total: res.total,
|
|
1356
|
-
};
|
|
1357
|
-
}
|
|
1358
|
-
catch (e) {
|
|
1359
|
-
console.log(e);
|
|
1360
|
-
throw e;
|
|
1361
|
-
}
|
|
1362
|
-
},
|
|
1363
|
-
byKey: async (key) => {
|
|
1364
|
-
return await this.employmentTypeData.byKey(key);
|
|
1365
|
-
},
|
|
1366
|
-
pageSize: 100,
|
|
1367
|
-
});
|
|
1368
|
-
},
|
|
1369
|
-
columns: [
|
|
1370
|
-
{
|
|
1371
|
-
name: 'id',
|
|
1372
|
-
title: 'ID',
|
|
1373
|
-
datatype: 'uuid',
|
|
1374
|
-
type: AXPWidgetsCatalog.text,
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
name: 'title',
|
|
1378
|
-
title: 'Title',
|
|
1379
|
-
datatype: 'string',
|
|
1380
|
-
type: AXPWidgetsCatalog.text,
|
|
1381
|
-
},
|
|
1382
|
-
{
|
|
1383
|
-
name: 'description',
|
|
1384
|
-
title: 'Description',
|
|
1385
|
-
datatype: 'string',
|
|
1386
|
-
type: AXPWidgetsCatalog.text,
|
|
1387
|
-
},
|
|
1388
|
-
],
|
|
1389
|
-
filters: [
|
|
1390
|
-
{
|
|
1391
|
-
field: 'title',
|
|
1392
|
-
title: 'Title',
|
|
1393
|
-
operator: {
|
|
1394
|
-
type: 'equal',
|
|
1395
|
-
},
|
|
1396
|
-
widget: {
|
|
1397
|
-
type: AXPWidgetsCatalog.text,
|
|
1398
|
-
},
|
|
1399
|
-
filterType: {
|
|
1400
|
-
advance: true,
|
|
1401
|
-
inline: true,
|
|
1402
|
-
},
|
|
1403
|
-
},
|
|
1404
|
-
],
|
|
1405
|
-
textField: {
|
|
1406
|
-
name: 'title',
|
|
1407
|
-
title: 'Title',
|
|
1408
|
-
},
|
|
1409
|
-
valueField: {
|
|
1410
|
-
name: 'id',
|
|
1411
|
-
title: 'ID',
|
|
1412
|
-
},
|
|
1413
|
-
},
|
|
1414
|
-
]);
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
class AXMPermissionDefinitionProvider {
|
|
1419
|
-
constructor(injector) {
|
|
1420
|
-
this.injector = injector;
|
|
1421
|
-
this.translateService = this.injector.get(AXTranslationService);
|
|
1422
|
-
}
|
|
1423
|
-
async define(context) {
|
|
1424
|
-
const keys = AXMPermissionsKeys.HumanCapitalManagement;
|
|
1425
|
-
const moduleTitle = await this.translateService.translateAsync('@human-capital-management:module.permissions.title');
|
|
1426
|
-
const moduleDescription = await this.translateService.translateAsync('@human-capital-management:module.permissions.description');
|
|
1427
|
-
context.addGroup(RootConfig.module.name, moduleTitle, moduleDescription)
|
|
1428
|
-
//
|
|
1429
|
-
.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'))
|
|
1430
|
-
.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'))
|
|
1431
|
-
.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'))
|
|
1432
|
-
.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'))
|
|
1433
|
-
.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'))
|
|
1434
|
-
.endPermission()
|
|
1435
|
-
//
|
|
1436
|
-
.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'))
|
|
1437
|
-
.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'))
|
|
1438
|
-
.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'))
|
|
1439
|
-
.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'))
|
|
1440
|
-
.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'))
|
|
1441
|
-
.endPermission()
|
|
1442
|
-
//
|
|
1443
|
-
.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'))
|
|
1444
|
-
.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'))
|
|
1445
|
-
.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'))
|
|
1446
|
-
.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'))
|
|
1447
|
-
.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'))
|
|
1448
|
-
.endPermission()
|
|
1449
|
-
//
|
|
1450
|
-
.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'))
|
|
1451
|
-
.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'))
|
|
1452
|
-
.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'))
|
|
1453
|
-
.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'))
|
|
1454
|
-
.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'))
|
|
1455
|
-
.endPermission()
|
|
1456
|
-
//
|
|
1457
|
-
.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'))
|
|
1458
|
-
.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'))
|
|
1459
|
-
.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'))
|
|
1460
|
-
.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'))
|
|
1461
|
-
.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'))
|
|
1462
|
-
.endPermission()
|
|
1463
|
-
//
|
|
1464
|
-
.endGroup();
|
|
1465
|
-
}
|
|
1466
|
-
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 }); }
|
|
1467
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider }); }
|
|
1468
|
-
}
|
|
1469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMPermissionDefinitionProvider, decorators: [{
|
|
1470
|
-
type: Injectable
|
|
1471
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1472
|
-
|
|
1473
|
-
//#region ---- Appointment Board Route ----
|
|
1474
|
-
function createAppointmentBoardRoute() {
|
|
1475
|
-
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1476
|
-
return {
|
|
1477
|
-
path: `:app/${RootConfig.pages.appointmentBoard.path}/:provider-name`,
|
|
1478
|
-
canActivate: [AXPAuthGuard],
|
|
1479
|
-
loadComponent: () => config.viewers.root(),
|
|
1480
|
-
children: [
|
|
1481
|
-
{
|
|
1482
|
-
path: '',
|
|
1483
|
-
loadComponent: () => import('@acorex/modules/common').then((c) => c.AXPResourceAppointmentPageComponent),
|
|
1484
|
-
providers: [
|
|
1485
|
-
{
|
|
1486
|
-
provide: AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG,
|
|
1487
|
-
useValue: {
|
|
1488
|
-
pageTitle: RootConfig.pages.appointmentBoard.title,
|
|
1489
|
-
pageDescription: '@human-capital-management:leave-requests.menus.appointment-board.description',
|
|
1490
|
-
pageIcon: RootConfig.pages.appointmentBoard.icon,
|
|
1491
|
-
breadcrumbs: [{ title: RootConfig.module.title }],
|
|
1492
|
-
showResourceHeaders: true,
|
|
1493
|
-
showUnassignedAppointments: true,
|
|
1494
|
-
},
|
|
1495
|
-
},
|
|
1496
|
-
],
|
|
1497
|
-
},
|
|
1498
|
-
],
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
//#endregion
|
|
1502
|
-
class AXMHumanCapitalManagementModule {
|
|
1503
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1504
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, imports: [CommonModule, AXPRuntimeModule, AXMLeaveRequestFeatureModule] }); }
|
|
1505
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, providers: [
|
|
1506
|
-
// Appointment Board route
|
|
1507
|
-
{
|
|
1508
|
-
provide: ROUTES,
|
|
1509
|
-
multi: true,
|
|
1510
|
-
useFactory: () => [createAppointmentBoardRoute()],
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
provide: AXP_RESOURCE_APPOINTMENT_PROVIDER,
|
|
1514
|
-
useClass: AXMLeaveRequestResourceAppointmentProvider,
|
|
1515
|
-
multi: true,
|
|
1516
|
-
},
|
|
1517
|
-
// Module-specific providers (not part of manifest system)
|
|
1518
|
-
{
|
|
1519
|
-
provide: AXP_IDENTIFIER_RULES,
|
|
1520
|
-
multi: true,
|
|
1521
|
-
useValue: AXM_EMPLOYEE_CODE_IDENTIFIER_RULE,
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
provide: AXP_STATUS_PROVIDERS,
|
|
1525
|
-
useClass: AXMEmployeeStatusProvider,
|
|
1526
|
-
multi: true,
|
|
1527
|
-
},
|
|
1528
|
-
// Module Manifest Provider
|
|
1529
|
-
{
|
|
1530
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1531
|
-
useValue: HumanCapitalManagementManifest,
|
|
1532
|
-
multi: true,
|
|
1533
|
-
},
|
|
1534
|
-
// Provider references (now using tokens)
|
|
1535
|
-
{
|
|
1536
|
-
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1537
|
-
useClass: AXMPermissionDefinitionProvider,
|
|
1538
|
-
multi: true,
|
|
1539
|
-
},
|
|
1540
|
-
{
|
|
1541
|
-
provide: AXP_MENU_PROVIDER,
|
|
1542
|
-
useClass: AXMMenuProvider,
|
|
1543
|
-
multi: true,
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1547
|
-
useClass: AXMHumanCapitalModuleEntityProvider,
|
|
1548
|
-
multi: true,
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1552
|
-
useClass: AXMEmployeeDataSourceDefinition,
|
|
1553
|
-
multi: true,
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
provide: AXP_FEATURE_DEFINITION_PROVIDER,
|
|
1557
|
-
useClass: AXPHumanCapitalManagementFeatureDefinitionProvider,
|
|
1558
|
-
multi: true,
|
|
1559
|
-
},
|
|
1560
|
-
], imports: [CommonModule, AXPRuntimeModule, AXMLeaveRequestFeatureModule] }); }
|
|
1561
|
-
}
|
|
1562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMHumanCapitalManagementModule, decorators: [{
|
|
1563
|
-
type: NgModule,
|
|
1564
|
-
args: [{
|
|
1565
|
-
imports: [CommonModule, AXPRuntimeModule, AXMLeaveRequestFeatureModule],
|
|
1566
|
-
providers: [
|
|
1567
|
-
// Appointment Board route
|
|
1568
|
-
{
|
|
1569
|
-
provide: ROUTES,
|
|
1570
|
-
multi: true,
|
|
1571
|
-
useFactory: () => [createAppointmentBoardRoute()],
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
provide: AXP_RESOURCE_APPOINTMENT_PROVIDER,
|
|
1575
|
-
useClass: AXMLeaveRequestResourceAppointmentProvider,
|
|
1576
|
-
multi: true,
|
|
1577
|
-
},
|
|
1578
|
-
// Module-specific providers (not part of manifest system)
|
|
1579
|
-
{
|
|
1580
|
-
provide: AXP_IDENTIFIER_RULES,
|
|
1581
|
-
multi: true,
|
|
1582
|
-
useValue: AXM_EMPLOYEE_CODE_IDENTIFIER_RULE,
|
|
1583
|
-
},
|
|
1584
|
-
{
|
|
1585
|
-
provide: AXP_STATUS_PROVIDERS,
|
|
1586
|
-
useClass: AXMEmployeeStatusProvider,
|
|
1587
|
-
multi: true,
|
|
1588
|
-
},
|
|
1589
|
-
// Module Manifest Provider
|
|
1590
|
-
{
|
|
1591
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
1592
|
-
useValue: HumanCapitalManagementManifest,
|
|
1593
|
-
multi: true,
|
|
1594
|
-
},
|
|
1595
|
-
// Provider references (now using tokens)
|
|
1596
|
-
{
|
|
1597
|
-
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1598
|
-
useClass: AXMPermissionDefinitionProvider,
|
|
1599
|
-
multi: true,
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
provide: AXP_MENU_PROVIDER,
|
|
1603
|
-
useClass: AXMMenuProvider,
|
|
1604
|
-
multi: true,
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1608
|
-
useClass: AXMHumanCapitalModuleEntityProvider,
|
|
1609
|
-
multi: true,
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1613
|
-
useClass: AXMEmployeeDataSourceDefinition,
|
|
1614
|
-
multi: true,
|
|
1615
|
-
},
|
|
1616
|
-
{
|
|
1617
|
-
provide: AXP_FEATURE_DEFINITION_PROVIDER,
|
|
1618
|
-
useClass: AXPHumanCapitalManagementFeatureDefinitionProvider,
|
|
1619
|
-
multi: true,
|
|
1620
|
-
},
|
|
1621
|
-
],
|
|
1622
|
-
}]
|
|
1623
|
-
}] });
|
|
1624
|
-
|
|
1625
|
-
/**
|
|
1626
|
-
* Generated bundle index. Do not edit.
|
|
1627
|
-
*/
|
|
1628
|
-
|
|
1629
|
-
export { AXMHumanCapitalManagementModule, AXMLeaveRequestBadgeProvider, AXMLeaveRequestResourceAppointmentProvider, AXMLeaveRequestTaskPopoverComponent, AXMPermissionsKeys, AXPHumanCapitalManagementFeatureDefinitionProvider, AXPHumanCapitalManagementFeatureKeys, AXPHumanCapitalManagementMenuKeys, AXPLeaveRequestDialogService, HumanCapitalManagementManifest, RootConfig };
|
|
1
|
+
export { b as AXMHumanCapitalManagementModule, c as AXMLeaveRequestBadgeProvider, d as AXMLeaveRequestResourceAppointmentProvider, e as AXMLeaveRequestTaskPopoverComponent, f as AXMPermissionsKeys, a as AXPHumanCapitalManagementCommandKeys, g as AXPHumanCapitalManagementFeatureDefinitionProvider, h as AXPHumanCapitalManagementFeatureKeys, i as AXPHumanCapitalManagementMenuKeys, j as AXPLeaveRequestDialogService, H as HumanCapitalManagementManifest, R as RootConfig } from './acorex-modules-human-capital-management-acorex-modules-human-capital-management-Ck9q-IWW.mjs';
|
|
1630
2
|
//# sourceMappingURL=acorex-modules-human-capital-management.mjs.map
|