@acorex/modules 21.0.0-next.5 → 21.0.0-next.8
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/application-management/index.d.ts +1 -0
- package/business-core/README.md +44 -1
- package/calendar-management/index.d.ts +6 -7
- package/document-management/index.d.ts +1544 -174
- package/fesm2022/acorex-modules-application-management.mjs +2 -0
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-C4_2RPxG.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-7S277fXg.mjs} +23 -23
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-7S277fXg.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-D2YRh7ro.mjs → acorex-modules-assessment-management-answers-viewer-widget-column.component-FnpwLbkS.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-column.component-D2YRh7ro.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-column.component-FnpwLbkS.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-B-S78gfQ.mjs → acorex-modules-assessment-management-answers-viewer-widget-edit.component-By0ETDZf.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-edit.component-B-S78gfQ.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-edit.component-By0ETDZf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-C1BTgRTR.mjs → acorex-modules-assessment-management-answers-viewer-widget-view.component-DxmjBgIo.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-answers-viewer-widget-view.component-C1BTgRTR.mjs.map → acorex-modules-assessment-management-answers-viewer-widget-view.component-DxmjBgIo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-DwTlClTz.mjs → acorex-modules-assessment-management-assessment-case.entity-CBjAGtV3.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-DwTlClTz.mjs.map → acorex-modules-assessment-management-assessment-case.entity-CBjAGtV3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-BmvacBUU.mjs → acorex-modules-assessment-management-assessment-session.entity-CMnJ44gj.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-BmvacBUU.mjs.map → acorex-modules-assessment-management-assessment-session.entity-CMnJ44gj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-D7ZNQBo8.mjs → acorex-modules-assessment-management-fill-assessment-session.command-8OhZEoAp.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-D7ZNQBo8.mjs.map → acorex-modules-assessment-management-fill-assessment-session.command-8OhZEoAp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BQxlJax7.mjs → acorex-modules-assessment-management-preview-questionnaire.command-CUybKZFY.mjs} +4 -4
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-BQxlJax7.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-CUybKZFY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CIjS5M1b.mjs → acorex-modules-assessment-management-question-bank-item.entity-C9gxvSqN.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CIjS5M1b.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-C9gxvSqN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-edit.component-DAYiqBeA.mjs → acorex-modules-assessment-management-questionnaire-builder-edit.component-CUCT7Tcg.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-edit.component-DAYiqBeA.mjs.map → acorex-modules-assessment-management-questionnaire-builder-edit.component-CUCT7Tcg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-view.component-BTXwZu9a.mjs → acorex-modules-assessment-management-questionnaire-builder-view.component-QhZAjnIv.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder-view.component-BTXwZu9a.mjs.map → acorex-modules-assessment-management-questionnaire-builder-view.component-QhZAjnIv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder.component-BAR6Uee-.mjs → acorex-modules-assessment-management-questionnaire-builder.component-CvdVE1TW.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-builder.component-BAR6Uee-.mjs.map → acorex-modules-assessment-management-questionnaire-builder.component-CvdVE1TW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-DZ4TltLI.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-iDPvZ1Iu.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-DZ4TltLI.mjs.map → acorex-modules-assessment-management-questionnaire-viewer-popup.component-iDPvZ1Iu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer.service-B2GV_e0o.mjs → acorex-modules-assessment-management-questionnaire-viewer.service-C2bz2R0N.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer.service-B2GV_e0o.mjs.map → acorex-modules-assessment-management-questionnaire-viewer.service-C2bz2R0N.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-mOtlUkUO.mjs → acorex-modules-assessment-management-questionnaire.entity-kvgtbI_h.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-mOtlUkUO.mjs.map → acorex-modules-assessment-management-questionnaire.entity-kvgtbI_h.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-BQ-3r9YQ.mjs → acorex-modules-assessment-management-view-session-answers.command-Dfl4QTDD.mjs} +3 -3
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-BQ-3r9YQ.mjs.map → acorex-modules-assessment-management-view-session-answers.command-Dfl4QTDD.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-D5jGjm6i.mjs → acorex-modules-auth-acorex-modules-auth-8XP9xX7L.mjs} +95 -51
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-8XP9xX7L.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BL3Fmc7y.mjs → acorex-modules-auth-app-chooser.component-BvbLYIXA.mjs} +6 -6
- package/fesm2022/acorex-modules-auth-app-chooser.component-BvbLYIXA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-login.module-D8-GN_Hx.mjs → acorex-modules-auth-login.module-DLWlieUn.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-D8-GN_Hx.mjs.map → acorex-modules-auth-login.module-DLWlieUn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-CgDrAbPS.mjs → acorex-modules-auth-master.layout-BzV1eUvM.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-CgDrAbPS.mjs.map → acorex-modules-auth-master.layout-BzV1eUvM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-lEMWnVJL.mjs → acorex-modules-auth-oauth-callback.component-CqaXMQdp.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-lEMWnVJL.mjs.map → acorex-modules-auth-oauth-callback.component-CqaXMQdp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-BQII_ltO.mjs → acorex-modules-auth-password.component-BR2qrph-.mjs} +9 -9
- package/fesm2022/{acorex-modules-auth-password.component-BQII_ltO.mjs.map → acorex-modules-auth-password.component-BR2qrph-.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-password.component-DMmRFHgO.mjs +563 -0
- package/fesm2022/acorex-modules-auth-password.component-DMmRFHgO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-BGLnoGO4.mjs → acorex-modules-auth-routes-BRQJ6Mx_.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-BGLnoGO4.mjs.map → acorex-modules-auth-routes-BRQJ6Mx_.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CptZLRwB.mjs +58 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CptZLRwB.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-BmlUjtYC.mjs → acorex-modules-auth-two-factor-code.component-CvheFTK7.mjs} +6 -6
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-BmlUjtYC.mjs.map → acorex-modules-auth-two-factor-code.component-CvheFTK7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-D1UjsoB8.mjs → acorex-modules-auth-two-factor.module-TGGOwEpP.mjs} +3 -3
- package/fesm2022/{acorex-modules-auth-two-factor.module-D1UjsoB8.mjs.map → acorex-modules-auth-two-factor.module-TGGOwEpP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-CIlGFT7H.mjs → acorex-modules-auth-user-sessions.component-C_JzCXUy.mjs} +6 -6
- package/fesm2022/{acorex-modules-auth-user-sessions.component-CIlGFT7H.mjs.map → acorex-modules-auth-user-sessions.component-C_JzCXUy.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/{acorex-modules-business-core-business-status.entity-DE3JJYdY.mjs → acorex-modules-business-core-business-status.entity-BYUneIcN.mjs} +2 -2
- package/fesm2022/acorex-modules-business-core-business-status.entity-BYUneIcN.mjs.map +1 -0
- package/fesm2022/{acorex-modules-business-core-business-type.entity-_IwOWQVA.mjs → acorex-modules-business-core-business-type.entity-DEy8LvEV.mjs} +2 -2
- package/fesm2022/acorex-modules-business-core-business-type.entity-DEy8LvEV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-business-core-industry.entity-bwgPAZDk.mjs → acorex-modules-business-core-industry.entity-CGNfgpMs.mjs} +2 -2
- package/fesm2022/acorex-modules-business-core-industry.entity-CGNfgpMs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-business-core-manufacturer.entity-CDlQlBUD.mjs → acorex-modules-business-core-manufacturer.entity-DhyMx-nJ.mjs} +2 -1
- package/fesm2022/acorex-modules-business-core-manufacturer.entity-DhyMx-nJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-business-core.mjs +4 -4
- package/fesm2022/acorex-modules-calendar-management.mjs +46 -74
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-common.mjs +6 -3
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-customer-management-customer-segment.entity-CUBg2GZp.mjs → acorex-modules-customer-management-customer-segment.entity-CoYAU5g3.mjs} +2 -1
- package/fesm2022/acorex-modules-customer-management-customer-segment.entity-CoYAU5g3.mjs.map +1 -0
- package/fesm2022/{acorex-modules-customer-management-customer-type.entity-rmq6BeCF.mjs → acorex-modules-customer-management-customer-type.entity-pt4gpOGq.mjs} +2 -1
- package/fesm2022/acorex-modules-customer-management-customer-type.entity-pt4gpOGq.mjs.map +1 -0
- package/fesm2022/acorex-modules-customer-management.mjs +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Bnp1l18X.mjs → acorex-modules-document-management-attachment-widget.component-zsWIFXD7.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Bnp1l18X.mjs.map → acorex-modules-document-management-attachment-widget.component-zsWIFXD7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-TfRh2Jom.mjs → acorex-modules-document-management-details-view.component-DD7P_Xz7.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-TfRh2Jom.mjs.map → acorex-modules-document-management-details-view.component-DD7P_Xz7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-nKUvSQuz.mjs → acorex-modules-document-management-document-signature-popup.component-DsCP-XfJ.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-nKUvSQuz.mjs.map → acorex-modules-document-management-document-signature-popup.component-DsCP-XfJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CPQC_Qxe.mjs → acorex-modules-document-management-drive-choose.component-FUlvIsJu.mjs} +7 -7
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CPQC_Qxe.mjs.map → acorex-modules-document-management-drive-choose.component-FUlvIsJu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BP_4qwha.mjs → acorex-modules-document-management-large-icons-view.component-Dzc3SOKz.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BP_4qwha.mjs.map → acorex-modules-document-management-large-icons-view.component-Dzc3SOKz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CP9Ra0z9.mjs → acorex-modules-document-management-large-tiles-view.component-DrRbFkP4.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CP9Ra0z9.mjs.map → acorex-modules-document-management-large-tiles-view.component-DrRbFkP4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-nJmv07CR.mjs → acorex-modules-document-management-link-dialog.component-DKGpdhH1.mjs} +3 -3
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-nJmv07CR.mjs.map → acorex-modules-document-management-link-dialog.component-DKGpdhH1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-LhSA_duB.mjs → acorex-modules-document-management-list-view.component-C7cR3m4S.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-LhSA_duB.mjs.map → acorex-modules-document-management-list-view.component-C7cR3m4S.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-DJABAVOV.mjs → acorex-modules-document-management-share-dialog.component-MK4UO_uy.mjs} +3 -3
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-DJABAVOV.mjs.map → acorex-modules-document-management-share-dialog.component-MK4UO_uy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-Bh_FI1nk.mjs → acorex-modules-document-management-share-email-dialog.component-D5f4T_2K.mjs} +3 -3
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-Bh_FI1nk.mjs.map → acorex-modules-document-management-share-email-dialog.component-D5f4T_2K.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BOtJGiPU.mjs → acorex-modules-document-management-small-icons-view.component-BPWvSH3i.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BOtJGiPU.mjs.map → acorex-modules-document-management-small-icons-view.component-BPWvSH3i.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BiKZ-FyZ.mjs → acorex-modules-document-management-small-tiles-view.component-fIQ4RY_F.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-BiKZ-FyZ.mjs.map → acorex-modules-document-management-small-tiles-view.component-fIQ4RY_F.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +9329 -1
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-financial-core.mjs +7 -5
- package/fesm2022/acorex-modules-financial-core.mjs.map +1 -1
- package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs +59 -0
- package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management-cancel-leave-request.command-CYMo0I8p.mjs +59 -0
- package/fesm2022/acorex-modules-human-capital-management-cancel-leave-request.command-CYMo0I8p.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-CR4xmtkI.mjs +381 -0
- package/fesm2022/acorex-modules-human-capital-management-leave-request-task-popover.component-CR4xmtkI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-BDh7IX7_.mjs → acorex-modules-human-capital-management-leave-request.entity-Dm_IKrVw.mjs} +1 -2
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-Dm_IKrVw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-DlCdAtaz.mjs → acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs} +11 -3
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-CY81Nohl.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management-reject-leave-request.command-1Bn0gaZi.mjs +62 -0
- package/fesm2022/acorex-modules-human-capital-management-reject-leave-request.command-1Bn0gaZi.mjs.map +1 -0
- package/fesm2022/acorex-modules-human-capital-management.mjs +115 -36
- package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-learning-management-certificate-definition.entity-BVvSzl2b.mjs → acorex-modules-learning-management-certificate-definition.entity-27VKYxw1.mjs} +2 -2
- package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-27VKYxw1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-course.entity-BYb3Mgyi.mjs → acorex-modules-learning-management-course.entity-BN8XHAPz.mjs} +2 -2
- package/fesm2022/acorex-modules-learning-management-course.entity-BN8XHAPz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-skill.entity-CK93JIPg.mjs → acorex-modules-learning-management-skill.entity-rfMFaOAJ.mjs} +2 -1
- package/fesm2022/acorex-modules-learning-management-skill.entity-rfMFaOAJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training-definition.entity-C5RVLTy7.mjs → acorex-modules-learning-management-training-definition.entity-NQqJ5avw.mjs} +2 -2
- package/fesm2022/acorex-modules-learning-management-training-definition.entity-NQqJ5avw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-learning-management-training.entity-KfxtUHEK.mjs → acorex-modules-learning-management-training.entity-DHGSlVR3.mjs} +2 -2
- package/fesm2022/acorex-modules-learning-management-training.entity-DHGSlVR3.mjs.map +1 -0
- package/fesm2022/acorex-modules-learning-management.mjs +5 -5
- package/fesm2022/acorex-modules-notification-management.mjs +34 -16
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-order-management.mjs +4 -0
- package/fesm2022/acorex-modules-order-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-Cki_0gIY.mjs → acorex-modules-organization-management-job-definition.entity-s-TfP412.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-job-definition.entity-s-TfP412.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-m7QrOTgN.mjs → acorex-modules-organization-management-position.entity-vbmjSfyb.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-position.entity-vbmjSfyb.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +2 -2
- package/fesm2022/{acorex-modules-person-management-person.entity-DWfnmtVe.mjs → acorex-modules-person-management-person.entity-BnliZw-K.mjs} +35 -33
- package/fesm2022/acorex-modules-person-management-person.entity-BnliZw-K.mjs.map +1 -0
- package/fesm2022/acorex-modules-person-management.mjs +1 -1
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-BIq_sJye.mjs → acorex-modules-platform-management-acorex-modules-platform-management-CAntNN8Z.mjs} +4 -2
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-BIq_sJye.mjs.map → acorex-modules-platform-management-acorex-modules-platform-management-CAntNN8Z.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-CL-zuLJ1.mjs → acorex-modules-platform-management-menu-list.component-CWutHAb3.mjs} +3 -3
- package/fesm2022/acorex-modules-platform-management-menu-list.component-CWutHAb3.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/{acorex-modules-product-catalog-brand.entity-DIv0bsiY.mjs → acorex-modules-product-catalog-brand.entity-C8VOfwF0.mjs} +2 -1
- package/fesm2022/acorex-modules-product-catalog-brand.entity-C8VOfwF0.mjs.map +1 -0
- package/fesm2022/{acorex-modules-product-catalog-product-sku.entity-CQw4VxjA.mjs → acorex-modules-product-catalog-product-sku.entity-Cxif--1E.mjs} +2 -1
- package/fesm2022/acorex-modules-product-catalog-product-sku.entity-Cxif--1E.mjs.map +1 -0
- package/fesm2022/{acorex-modules-product-catalog-product.entity-Cqye5OFr.mjs → acorex-modules-product-catalog-product.entity--aXivZUd.mjs} +2 -1
- package/fesm2022/acorex-modules-product-catalog-product.entity--aXivZUd.mjs.map +1 -0
- package/fesm2022/acorex-modules-product-catalog.mjs +3 -3
- package/fesm2022/acorex-modules-project-management.mjs +32 -1
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-Cp5QCIll.mjs → acorex-modules-report-management-report-runner-root-page.component-DEX4VgHX.mjs} +9 -9
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-DEX4VgHX.mjs.map +1 -0
- package/fesm2022/acorex-modules-report-management.mjs +2 -2
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +3 -1
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-gQ5Sk1Sj.mjs → acorex-modules-settings-management-acorex-modules-settings-management-R6m7cpPE.mjs} +18 -18
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-gQ5Sk1Sj.mjs.map → acorex-modules-settings-management-acorex-modules-settings-management-R6m7cpPE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-BEDGpTc8.mjs → acorex-modules-settings-management-permission-definition.provider-BNzuJQfL.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-BEDGpTc8.mjs.map → acorex-modules-settings-management-permission-definition.provider-BNzuJQfL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-BsA1TfMG.mjs → acorex-modules-settings-management-setting-page.component-B1SnxHdd.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-BsA1TfMG.mjs.map → acorex-modules-settings-management-setting-page.component-B1SnxHdd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-C282orx7.mjs → acorex-modules-settings-management-setting-view.component-BsuZ-NQK.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-C282orx7.mjs.map → acorex-modules-settings-management-setting-view.component-BsuZ-NQK.mjs.map} +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +1 -1
- package/fesm2022/acorex-modules-subscription-management.mjs +3 -0
- package/fesm2022/acorex-modules-subscription-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-supplier-management.mjs +1 -0
- package/fesm2022/acorex-modules-supplier-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-6D76WpRB.mjs +2246 -0
- package/fesm2022/acorex-modules-task-management-task-board.page-6D76WpRB.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +21 -8
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-tenant-management.mjs +2 -0
- package/fesm2022/acorex-modules-tenant-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management.mjs +2074 -28
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/human-capital-management/index.d.ts +4 -1
- package/package.json +2 -2
- package/task-management/index.d.ts +32 -5
- package/workflow-management/index.d.ts +530 -8
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-C4_2RPxG.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-D5jGjm6i.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-BL3Fmc7y.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-DKG8o8k8.mjs +0 -226
- package/fesm2022/acorex-modules-auth-password.component-DKG8o8k8.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-DNDhBKDp.mjs +0 -109
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-DNDhBKDp.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-business-status.entity-DE3JJYdY.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-business-type.entity-_IwOWQVA.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-industry.entity-bwgPAZDk.mjs.map +0 -1
- package/fesm2022/acorex-modules-business-core-manufacturer.entity-CDlQlBUD.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-customer-segment.entity-CUBg2GZp.mjs.map +0 -1
- package/fesm2022/acorex-modules-customer-management-customer-type.entity-rmq6BeCF.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Dk4Z-JSv.mjs +0 -8995
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Dk4Z-JSv.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-drive.component-BzpH_FSJ.mjs +0 -388
- package/fesm2022/acorex-modules-document-management-drive.component-BzpH_FSJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-request.entity-BDh7IX7_.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-leave-type.entity-DlCdAtaz.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-certificate-definition.entity-BVvSzl2b.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-course.entity-BYb3Mgyi.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-skill.entity-CK93JIPg.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training-definition.entity-C5RVLTy7.mjs.map +0 -1
- package/fesm2022/acorex-modules-learning-management-training.entity-KfxtUHEK.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-job-definition.entity-Cki_0gIY.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-m7QrOTgN.mjs.map +0 -1
- package/fesm2022/acorex-modules-person-management-person.entity-DWfnmtVe.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-menu-list.component-CL-zuLJ1.mjs.map +0 -1
- package/fesm2022/acorex-modules-product-catalog-brand.entity-DIv0bsiY.mjs.map +0 -1
- package/fesm2022/acorex-modules-product-catalog-product-sku.entity-CQw4VxjA.mjs.map +0 -1
- package/fesm2022/acorex-modules-product-catalog-product.entity-Cqye5OFr.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-runner-root-page.component-Cp5QCIll.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-CKgZoOGI.mjs +0 -1364
- package/fesm2022/acorex-modules-task-management-task-board.page-CKgZoOGI.mjs.map +0 -1
package/fesm2022/acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AXPSystemStatuses } from '@acorex/platform/common';
|
|
2
|
+
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, Injectable } from '@angular/core';
|
|
5
|
+
import { RootConfig } from './acorex-modules-human-capital-management.mjs';
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
/**
|
|
9
|
+
* Approve Leave Request Command
|
|
10
|
+
* Updates the leave request status to Approved
|
|
11
|
+
*/
|
|
12
|
+
class ApproveLeaveRequestCommand {
|
|
13
|
+
constructor() {
|
|
14
|
+
//#region ---- Services ----
|
|
15
|
+
this.entityService = inject(AXPEntityService);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ---- Command Implementation ----
|
|
19
|
+
async execute(input) {
|
|
20
|
+
try {
|
|
21
|
+
const dataAccessor = this.entityService
|
|
22
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)
|
|
23
|
+
.data();
|
|
24
|
+
// Update the leave request status to Approved
|
|
25
|
+
const updateData = {
|
|
26
|
+
statusId: AXPSystemStatuses.Approved.name,
|
|
27
|
+
};
|
|
28
|
+
// Add reason/note if provided (these fields might not exist in entity model)
|
|
29
|
+
if (input.reason) {
|
|
30
|
+
updateData.reason = input.reason;
|
|
31
|
+
}
|
|
32
|
+
if (input.note) {
|
|
33
|
+
updateData.note = input.note;
|
|
34
|
+
}
|
|
35
|
+
await dataAccessor.update(input.id, updateData);
|
|
36
|
+
return {
|
|
37
|
+
success: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.error('[ApproveLeaveRequestCommand] Error:', error);
|
|
42
|
+
return {
|
|
43
|
+
success: false,
|
|
44
|
+
message: {
|
|
45
|
+
text: error.message || 'Failed to approve leave request',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApproveLeaveRequestCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
51
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApproveLeaveRequestCommand, providedIn: 'root' }); }
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: ApproveLeaveRequestCommand, decorators: [{
|
|
54
|
+
type: Injectable,
|
|
55
|
+
args: [{ providedIn: 'root' }]
|
|
56
|
+
}] });
|
|
57
|
+
|
|
58
|
+
export { ApproveLeaveRequestCommand };
|
|
59
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-approve-leave-request.command-DN2T2hBp.mjs","sources":["../tmp-esm2022/human-capital-management/lib/features/leave-request/commands/approve-leave-request.command.js"],"sourcesContent":["import { AXPSystemStatuses } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '../../../const';\nimport * as i0 from \"@angular/core\";\n//#endregion\n/**\n * Approve Leave Request Command\n * Updates the leave request status to Approved\n */\nexport class ApproveLeaveRequestCommand {\n constructor() {\n //#region ---- Services ----\n this.entityService = inject(AXPEntityService);\n }\n //#endregion\n //#region ---- Command Implementation ----\n async execute(input) {\n try {\n const dataAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data();\n // Update the leave request status to Approved\n const updateData = {\n statusId: AXPSystemStatuses.Approved.name,\n };\n // Add reason/note if provided (these fields might not exist in entity model)\n if (input.reason) {\n updateData.reason = input.reason;\n }\n if (input.note) {\n updateData.note = input.note;\n }\n await dataAccessor.update(input.id, updateData);\n return {\n success: true,\n };\n }\n catch (error) {\n console.error('[ApproveLeaveRequestCommand] Error:', error);\n return {\n success: false,\n message: {\n text: error.message || 'Failed to approve leave request',\n },\n };\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: ApproveLeaveRequestCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: ApproveLeaveRequestCommand, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: ApproveLeaveRequestCommand, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }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SystemStatuses } from '@acorex/platform/common';
|
|
2
|
+
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, Injectable } from '@angular/core';
|
|
5
|
+
import { RootConfig } from './acorex-modules-human-capital-management.mjs';
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
/**
|
|
9
|
+
* Cancel Leave Request Command
|
|
10
|
+
* Updates the leave request status to Cancelled
|
|
11
|
+
*/
|
|
12
|
+
class CancelLeaveRequestCommand {
|
|
13
|
+
constructor() {
|
|
14
|
+
//#region ---- Services ----
|
|
15
|
+
this.entityService = inject(AXPEntityService);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ---- Command Implementation ----
|
|
19
|
+
async execute(input) {
|
|
20
|
+
try {
|
|
21
|
+
const dataAccessor = this.entityService
|
|
22
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)
|
|
23
|
+
.data();
|
|
24
|
+
// Update the leave request status to Cancelled
|
|
25
|
+
const updateData = {
|
|
26
|
+
statusId: AXPSystemStatuses.Cancelled.name,
|
|
27
|
+
};
|
|
28
|
+
// Add reason/note if provided (these fields might not exist in entity model)
|
|
29
|
+
if (input.reason) {
|
|
30
|
+
updateData.reason = input.reason;
|
|
31
|
+
}
|
|
32
|
+
if (input.note) {
|
|
33
|
+
updateData.note = input.note;
|
|
34
|
+
}
|
|
35
|
+
await dataAccessor.update(input.id, updateData);
|
|
36
|
+
return {
|
|
37
|
+
success: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.error('[CancelLeaveRequestCommand] Error:', error);
|
|
42
|
+
return {
|
|
43
|
+
success: false,
|
|
44
|
+
message: {
|
|
45
|
+
text: error.message || 'Failed to cancel leave request',
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CancelLeaveRequestCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
51
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CancelLeaveRequestCommand, providedIn: 'root' }); }
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: CancelLeaveRequestCommand, decorators: [{
|
|
54
|
+
type: Injectable,
|
|
55
|
+
args: [{ providedIn: 'root' }]
|
|
56
|
+
}] });
|
|
57
|
+
|
|
58
|
+
export { CancelLeaveRequestCommand };
|
|
59
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-cancel-leave-request.command-CYMo0I8p.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-modules-human-capital-management-cancel-leave-request.command-CYMo0I8p.mjs","sources":["../tmp-esm2022/human-capital-management/lib/features/leave-request/commands/cancel-leave-request.command.js"],"sourcesContent":["import { AXPSystemStatuses } from '@acorex/platform/common';\nimport { AXPEntityService } from '@acorex/platform/layout/entity';\nimport { Injectable, inject } from '@angular/core';\nimport { RootConfig } from '../../../const';\nimport * as i0 from \"@angular/core\";\n//#endregion\n/**\n * Cancel Leave Request Command\n * Updates the leave request status to Cancelled\n */\nexport class CancelLeaveRequestCommand {\n constructor() {\n //#region ---- Services ----\n this.entityService = inject(AXPEntityService);\n }\n //#endregion\n //#region ---- Command Implementation ----\n async execute(input) {\n try {\n const dataAccessor = this.entityService\n .withEntity(RootConfig.module.name, RootConfig.entities.leaveRequest.name)\n .data();\n // Update the leave request status to Cancelled\n const updateData = {\n statusId: AXPSystemStatuses.Cancelled.name,\n };\n // Add reason/note if provided (these fields might not exist in entity model)\n if (input.reason) {\n updateData.reason = input.reason;\n }\n if (input.note) {\n updateData.note = input.note;\n }\n await dataAccessor.update(input.id, updateData);\n return {\n success: true,\n };\n }\n catch (error) {\n console.error('[CancelLeaveRequestCommand] Error:', error);\n return {\n success: false,\n message: {\n text: error.message || 'Failed to cancel leave request',\n },\n };\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: CancelLeaveRequestCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: CancelLeaveRequestCommand, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.12\", ngImport: i0, type: CancelLeaveRequestCommand, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FuY2VsLWxlYXZlLXJlcXVlc3QuY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbW9kdWxlcy9odW1hbi1jYXBpdGFsLW1hbmFnZW1lbnQvc3JjL2xpYi9mZWF0dXJlcy9sZWF2ZS1yZXF1ZXN0L2NvbW1hbmRzL2NhbmNlbC1sZWF2ZS1yZXF1ZXN0LmNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFNUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFFbEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQVU1QyxZQUFZO0FBRVo7OztHQUdH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AAE,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AACpK;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,UAAU,EAAE,CAAC;AACpI,YAAY,IAAI,EAAE,UAAU;AAC5B,YAAY,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE;AACzC,SAAS,CAAC,EAAE,CAAC;;;;"}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import * as i1 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i2 from '@acorex/components/decorators';
|
|
4
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
+
import * as i4 from '@acorex/core/translation';
|
|
6
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
7
|
+
import { AXPCommandExecutor } from '@acorex/platform/runtime';
|
|
8
|
+
import * as i3 from '@angular/common';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
import * as i0 from '@angular/core';
|
|
11
|
+
import { input, inject, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
12
|
+
import { AXPLeaveRequestDialogService } from './acorex-modules-human-capital-management.mjs';
|
|
13
|
+
import { AXPSystemStatuses } from '@acorex/platform/common';
|
|
14
|
+
|
|
15
|
+
class AXMLeaveRequestTaskPopoverComponent {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.task = input.required(...(ngDevMode ? [{ debugName: "task" }] : []));
|
|
18
|
+
this.commandExecutor = inject(AXPCommandExecutor);
|
|
19
|
+
this.dialogService = inject(AXPLeaveRequestDialogService);
|
|
20
|
+
this.taskData = computed(() => {
|
|
21
|
+
const task = this.task();
|
|
22
|
+
return (task.data ||
|
|
23
|
+
task.payload);
|
|
24
|
+
}, ...(ngDevMode ? [{ debugName: "taskData" }] : []));
|
|
25
|
+
this.employeeName = computed(() => {
|
|
26
|
+
const data = this.taskData();
|
|
27
|
+
return data?.employee?.person?.displayName || this.task().reporter?.fullName || 'Unknown';
|
|
28
|
+
}, ...(ngDevMode ? [{ debugName: "employeeName" }] : []));
|
|
29
|
+
this.managerName = computed(() => {
|
|
30
|
+
const data = this.taskData();
|
|
31
|
+
return data?.employee?.manager?.person?.displayName || this.task().assignee?.fullName || '';
|
|
32
|
+
}, ...(ngDevMode ? [{ debugName: "managerName" }] : []));
|
|
33
|
+
this.leaveType = computed(() => {
|
|
34
|
+
const data = this.taskData();
|
|
35
|
+
// Extract leave type from task title or data
|
|
36
|
+
const title = this.task().title || '';
|
|
37
|
+
const parts = title.split(' - ');
|
|
38
|
+
return parts.length > 1 ? parts[1] : data?.leaveType?.title || 'N/A';
|
|
39
|
+
}, ...(ngDevMode ? [{ debugName: "leaveType" }] : []));
|
|
40
|
+
this.canApprove = computed(() => {
|
|
41
|
+
const statusId = this.task().status?.id;
|
|
42
|
+
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Rejected.name;
|
|
43
|
+
}, ...(ngDevMode ? [{ debugName: "canApprove" }] : []));
|
|
44
|
+
this.canReject = computed(() => {
|
|
45
|
+
const statusId = this.task().status?.id;
|
|
46
|
+
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Approved.name;
|
|
47
|
+
}, ...(ngDevMode ? [{ debugName: "canReject" }] : []));
|
|
48
|
+
this.canCancel = computed(() => {
|
|
49
|
+
const statusId = this.task().status?.id;
|
|
50
|
+
return statusId === AXPSystemStatuses.Pending.name || statusId === AXPSystemStatuses.Approved.name;
|
|
51
|
+
}, ...(ngDevMode ? [{ debugName: "canCancel" }] : []));
|
|
52
|
+
}
|
|
53
|
+
formatDate(date) {
|
|
54
|
+
return new Intl.DateTimeFormat('en-US', {
|
|
55
|
+
year: 'numeric',
|
|
56
|
+
month: 'short',
|
|
57
|
+
day: 'numeric',
|
|
58
|
+
}).format(new Date(date));
|
|
59
|
+
}
|
|
60
|
+
calculateDuration() {
|
|
61
|
+
const start = new Date(this.task().startDate);
|
|
62
|
+
const end = new Date(this.task().endDate);
|
|
63
|
+
const diffTime = Math.abs(end.getTime() - start.getTime());
|
|
64
|
+
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
|
65
|
+
return diffDays + 1; // Include both start and end days
|
|
66
|
+
}
|
|
67
|
+
async handleApprove() {
|
|
68
|
+
const task = this.task();
|
|
69
|
+
const leaveRequestId = task.id;
|
|
70
|
+
try {
|
|
71
|
+
const dialogResult = await this.dialogService.showApprovalDialog();
|
|
72
|
+
if (dialogResult?.cancelled) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const commandKey = 'HumanCapitalManagement.LeaveRequest:Approve';
|
|
76
|
+
const result = await this.commandExecutor.execute(commandKey, {
|
|
77
|
+
id: leaveRequestId,
|
|
78
|
+
reason: dialogResult?.reason,
|
|
79
|
+
note: dialogResult?.note,
|
|
80
|
+
});
|
|
81
|
+
if (result?.success) {
|
|
82
|
+
// Optionally emit an event or refresh the task
|
|
83
|
+
console.log('Leave request approved successfully');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
console.error('Failed to approve leave request:', error);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async handleReject() {
|
|
91
|
+
const task = this.task();
|
|
92
|
+
const leaveRequestId = task.id;
|
|
93
|
+
try {
|
|
94
|
+
const dialogResult = await this.dialogService.showRejectionDialog();
|
|
95
|
+
if (dialogResult?.cancelled) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const commandKey = 'HumanCapitalManagement.LeaveRequest:Reject';
|
|
99
|
+
const result = await this.commandExecutor.execute(commandKey, {
|
|
100
|
+
id: leaveRequestId,
|
|
101
|
+
reason: dialogResult?.reason,
|
|
102
|
+
note: dialogResult?.note,
|
|
103
|
+
});
|
|
104
|
+
if (result?.success) {
|
|
105
|
+
console.log('Leave request rejected successfully');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
console.error('Failed to reject leave request:', error);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async handleCancel() {
|
|
113
|
+
const task = this.task();
|
|
114
|
+
const leaveRequestId = task.id;
|
|
115
|
+
try {
|
|
116
|
+
const dialogResult = await this.dialogService.showCancellationDialog();
|
|
117
|
+
if (dialogResult?.cancelled) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const commandKey = 'HumanCapitalManagement.LeaveRequest:Cancel';
|
|
121
|
+
const result = await this.commandExecutor.execute(commandKey, {
|
|
122
|
+
id: leaveRequestId,
|
|
123
|
+
reason: dialogResult?.reason,
|
|
124
|
+
note: dialogResult?.note,
|
|
125
|
+
});
|
|
126
|
+
if (result?.success) {
|
|
127
|
+
console.log('Leave request cancelled successfully');
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
console.error('Failed to cancel leave request:', error);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", 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: `
|
|
136
|
+
<div class="leave-request-popover">
|
|
137
|
+
<!-- Employee Info -->
|
|
138
|
+
<div class="leave-request-popover__section">
|
|
139
|
+
<div class="leave-request-popover__section-header">
|
|
140
|
+
<i class="fa-light fa-user"></i>
|
|
141
|
+
<span>Employee Information</span>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="leave-request-popover__section-content">
|
|
144
|
+
<div class="leave-request-popover__info-row">
|
|
145
|
+
<span class="leave-request-popover__label">Employee:</span>
|
|
146
|
+
<span class="leave-request-popover__value">{{ employeeName() }}</span>
|
|
147
|
+
</div>
|
|
148
|
+
@if (managerName(); as manager) {
|
|
149
|
+
<div class="leave-request-popover__info-row">
|
|
150
|
+
<span class="leave-request-popover__label">Manager:</span>
|
|
151
|
+
<span class="leave-request-popover__value">{{ manager }}</span>
|
|
152
|
+
</div>
|
|
153
|
+
}
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<!-- Leave Details -->
|
|
158
|
+
<div class="leave-request-popover__section">
|
|
159
|
+
<div class="leave-request-popover__section-header">
|
|
160
|
+
<i class="fa-light fa-calendar"></i>
|
|
161
|
+
<span>Leave Details</span>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="leave-request-popover__section-content">
|
|
164
|
+
<div class="leave-request-popover__info-row">
|
|
165
|
+
<span class="leave-request-popover__label">Leave Type:</span>
|
|
166
|
+
<span class="leave-request-popover__value">{{ leaveType() }}</span>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="leave-request-popover__info-row">
|
|
169
|
+
<span class="leave-request-popover__label">Start Date:</span>
|
|
170
|
+
<span class="leave-request-popover__value">{{ formatDate(task().startDate) }}</span>
|
|
171
|
+
</div>
|
|
172
|
+
<div class="leave-request-popover__info-row">
|
|
173
|
+
<span class="leave-request-popover__label">End Date:</span>
|
|
174
|
+
<span class="leave-request-popover__value">{{ formatDate(task().endDate) }}</span>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="leave-request-popover__info-row">
|
|
177
|
+
<span class="leave-request-popover__label">Duration:</span>
|
|
178
|
+
<span class="leave-request-popover__value">{{ calculateDuration() }} days</span>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
<!-- Reason -->
|
|
184
|
+
@if (task().description) {
|
|
185
|
+
<div class="leave-request-popover__section">
|
|
186
|
+
<div class="leave-request-popover__section-header">
|
|
187
|
+
<i class="fa-light fa-note-sticky"></i>
|
|
188
|
+
<span>Reason</span>
|
|
189
|
+
</div>
|
|
190
|
+
<div class="leave-request-popover__section-content">
|
|
191
|
+
<p class="leave-request-popover__reason">{{ task().description }}</p>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
<!-- Status -->
|
|
197
|
+
<div class="leave-request-popover__section">
|
|
198
|
+
<div class="leave-request-popover__section-header">
|
|
199
|
+
<i class="fa-light fa-flag"></i>
|
|
200
|
+
<span>Status</span>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="leave-request-popover__section-content">
|
|
203
|
+
<div class="leave-request-popover__status-badge" [attr.data-status]="task().status.id">
|
|
204
|
+
{{ task().status.title }}
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
<!-- Actions -->
|
|
210
|
+
<div class="leave-request-popover__actions">
|
|
211
|
+
@if (canApprove()) {
|
|
212
|
+
<ax-button
|
|
213
|
+
[color]="'success'"
|
|
214
|
+
[look]="'blank'"
|
|
215
|
+
[text]="'@general:actions.approve.title' | translate | async"
|
|
216
|
+
(onClick)="handleApprove()"
|
|
217
|
+
class="leave-request-popover__action-btn"
|
|
218
|
+
>
|
|
219
|
+
<ax-prefix>
|
|
220
|
+
<i class="fa-light fa-check"></i>
|
|
221
|
+
</ax-prefix>
|
|
222
|
+
</ax-button>
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@if (canReject()) {
|
|
226
|
+
<ax-button
|
|
227
|
+
[color]="'danger'"
|
|
228
|
+
[look]="'blank'"
|
|
229
|
+
[text]="'@general:actions.reject.title' | translate | async"
|
|
230
|
+
(onClick)="handleReject()"
|
|
231
|
+
class="leave-request-popover__action-btn"
|
|
232
|
+
>
|
|
233
|
+
<ax-prefix>
|
|
234
|
+
<i class="fa-light fa-xmark"></i>
|
|
235
|
+
</ax-prefix>
|
|
236
|
+
</ax-button>
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@if (canCancel()) {
|
|
240
|
+
<ax-button
|
|
241
|
+
[color]="'secondary'"
|
|
242
|
+
[look]="'blank'"
|
|
243
|
+
[text]="'@general:actions.cancel.title' | translate | async"
|
|
244
|
+
(onClick)="handleCancel()"
|
|
245
|
+
class="leave-request-popover__action-btn"
|
|
246
|
+
>
|
|
247
|
+
<ax-prefix>
|
|
248
|
+
<i class="fa-light fa-ban"></i>
|
|
249
|
+
</ax-prefix>
|
|
250
|
+
</ax-button>
|
|
251
|
+
}
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
`, 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 }); }
|
|
255
|
+
}
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMLeaveRequestTaskPopoverComponent, decorators: [{
|
|
257
|
+
type: Component,
|
|
258
|
+
args: [{ selector: 'axm-leave-request-task-popover', template: `
|
|
259
|
+
<div class="leave-request-popover">
|
|
260
|
+
<!-- Employee Info -->
|
|
261
|
+
<div class="leave-request-popover__section">
|
|
262
|
+
<div class="leave-request-popover__section-header">
|
|
263
|
+
<i class="fa-light fa-user"></i>
|
|
264
|
+
<span>Employee Information</span>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="leave-request-popover__section-content">
|
|
267
|
+
<div class="leave-request-popover__info-row">
|
|
268
|
+
<span class="leave-request-popover__label">Employee:</span>
|
|
269
|
+
<span class="leave-request-popover__value">{{ employeeName() }}</span>
|
|
270
|
+
</div>
|
|
271
|
+
@if (managerName(); as manager) {
|
|
272
|
+
<div class="leave-request-popover__info-row">
|
|
273
|
+
<span class="leave-request-popover__label">Manager:</span>
|
|
274
|
+
<span class="leave-request-popover__value">{{ manager }}</span>
|
|
275
|
+
</div>
|
|
276
|
+
}
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
|
|
280
|
+
<!-- Leave Details -->
|
|
281
|
+
<div class="leave-request-popover__section">
|
|
282
|
+
<div class="leave-request-popover__section-header">
|
|
283
|
+
<i class="fa-light fa-calendar"></i>
|
|
284
|
+
<span>Leave Details</span>
|
|
285
|
+
</div>
|
|
286
|
+
<div class="leave-request-popover__section-content">
|
|
287
|
+
<div class="leave-request-popover__info-row">
|
|
288
|
+
<span class="leave-request-popover__label">Leave Type:</span>
|
|
289
|
+
<span class="leave-request-popover__value">{{ leaveType() }}</span>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="leave-request-popover__info-row">
|
|
292
|
+
<span class="leave-request-popover__label">Start Date:</span>
|
|
293
|
+
<span class="leave-request-popover__value">{{ formatDate(task().startDate) }}</span>
|
|
294
|
+
</div>
|
|
295
|
+
<div class="leave-request-popover__info-row">
|
|
296
|
+
<span class="leave-request-popover__label">End Date:</span>
|
|
297
|
+
<span class="leave-request-popover__value">{{ formatDate(task().endDate) }}</span>
|
|
298
|
+
</div>
|
|
299
|
+
<div class="leave-request-popover__info-row">
|
|
300
|
+
<span class="leave-request-popover__label">Duration:</span>
|
|
301
|
+
<span class="leave-request-popover__value">{{ calculateDuration() }} days</span>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
|
|
306
|
+
<!-- Reason -->
|
|
307
|
+
@if (task().description) {
|
|
308
|
+
<div class="leave-request-popover__section">
|
|
309
|
+
<div class="leave-request-popover__section-header">
|
|
310
|
+
<i class="fa-light fa-note-sticky"></i>
|
|
311
|
+
<span>Reason</span>
|
|
312
|
+
</div>
|
|
313
|
+
<div class="leave-request-popover__section-content">
|
|
314
|
+
<p class="leave-request-popover__reason">{{ task().description }}</p>
|
|
315
|
+
</div>
|
|
316
|
+
</div>
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
<!-- Status -->
|
|
320
|
+
<div class="leave-request-popover__section">
|
|
321
|
+
<div class="leave-request-popover__section-header">
|
|
322
|
+
<i class="fa-light fa-flag"></i>
|
|
323
|
+
<span>Status</span>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="leave-request-popover__section-content">
|
|
326
|
+
<div class="leave-request-popover__status-badge" [attr.data-status]="task().status.id">
|
|
327
|
+
{{ task().status.title }}
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
<!-- Actions -->
|
|
333
|
+
<div class="leave-request-popover__actions">
|
|
334
|
+
@if (canApprove()) {
|
|
335
|
+
<ax-button
|
|
336
|
+
[color]="'success'"
|
|
337
|
+
[look]="'blank'"
|
|
338
|
+
[text]="'@general:actions.approve.title' | translate | async"
|
|
339
|
+
(onClick)="handleApprove()"
|
|
340
|
+
class="leave-request-popover__action-btn"
|
|
341
|
+
>
|
|
342
|
+
<ax-prefix>
|
|
343
|
+
<i class="fa-light fa-check"></i>
|
|
344
|
+
</ax-prefix>
|
|
345
|
+
</ax-button>
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@if (canReject()) {
|
|
349
|
+
<ax-button
|
|
350
|
+
[color]="'danger'"
|
|
351
|
+
[look]="'blank'"
|
|
352
|
+
[text]="'@general:actions.reject.title' | translate | async"
|
|
353
|
+
(onClick)="handleReject()"
|
|
354
|
+
class="leave-request-popover__action-btn"
|
|
355
|
+
>
|
|
356
|
+
<ax-prefix>
|
|
357
|
+
<i class="fa-light fa-xmark"></i>
|
|
358
|
+
</ax-prefix>
|
|
359
|
+
</ax-button>
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@if (canCancel()) {
|
|
363
|
+
<ax-button
|
|
364
|
+
[color]="'secondary'"
|
|
365
|
+
[look]="'blank'"
|
|
366
|
+
[text]="'@general:actions.cancel.title' | translate | async"
|
|
367
|
+
(onClick)="handleCancel()"
|
|
368
|
+
class="leave-request-popover__action-btn"
|
|
369
|
+
>
|
|
370
|
+
<ax-prefix>
|
|
371
|
+
<i class="fa-light fa-ban"></i>
|
|
372
|
+
</ax-prefix>
|
|
373
|
+
</ax-button>
|
|
374
|
+
}
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
`, 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"] }]
|
|
378
|
+
}], propDecorators: { task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: true }] }] } });
|
|
379
|
+
|
|
380
|
+
export { AXMLeaveRequestTaskPopoverComponent };
|
|
381
|
+
//# sourceMappingURL=acorex-modules-human-capital-management-leave-request-task-popover.component-CR4xmtkI.mjs.map
|