@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
|
@@ -1,1364 +0,0 @@
|
|
|
1
|
-
import { AXBadgeModule } from '@acorex/components/badge';
|
|
2
|
-
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
3
|
-
import * as i3 from '@acorex/components/button';
|
|
4
|
-
import { AXButtonComponent, AXButtonModule } from '@acorex/components/button';
|
|
5
|
-
import { AXCalendarComponent } from '@acorex/components/calendar';
|
|
6
|
-
import * as i5 from '@acorex/components/decorators';
|
|
7
|
-
import { AXDecoratorIconComponent, AXDecoratorModule } from '@acorex/components/decorators';
|
|
8
|
-
import { AXDropdownPanelComponent } from '@acorex/components/dropdown';
|
|
9
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
10
|
-
import * as i6 from '@acorex/components/loading';
|
|
11
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
12
|
-
import * as i2 from '@acorex/components/menu';
|
|
13
|
-
import { AXMenuModule } from '@acorex/components/menu';
|
|
14
|
-
import * as i7 from '@acorex/components/popover';
|
|
15
|
-
import { AXPopoverModule } from '@acorex/components/popover';
|
|
16
|
-
import { AXCalendarService } from '@acorex/core/date-time';
|
|
17
|
-
import { AXLocaleService } from '@acorex/core/locale';
|
|
18
|
-
import * as i2$1 from '@acorex/core/translation';
|
|
19
|
-
import { AXTranslatorPipe, AXTranslationModule } from '@acorex/core/translation';
|
|
20
|
-
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
21
|
-
import { AXPPlatformScope, AXPDeviceService } from '@acorex/platform/core';
|
|
22
|
-
import { AXPStateMessageComponent, AXPThemeLayoutBlockComponent } from '@acorex/platform/layout/components';
|
|
23
|
-
import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
|
24
|
-
import * as i1$1 from '@angular/common';
|
|
25
|
-
import { AsyncPipe, CommonModule } from '@angular/common';
|
|
26
|
-
import * as i0 from '@angular/core';
|
|
27
|
-
import { computed, inject, signal, effect, ViewEncapsulation, ChangeDetectionStrategy, Component, input, output, viewChild, model, untracked } from '@angular/core';
|
|
28
|
-
import * as i1$3 from '@angular/forms';
|
|
29
|
-
import { FormsModule } from '@angular/forms';
|
|
30
|
-
import { Router, ActivatedRoute, NavigationEnd, RouterModule } from '@angular/router';
|
|
31
|
-
import { filter, startWith } from 'rxjs';
|
|
32
|
-
import { AXPTaskBoardService, RootConfig } from './acorex-modules-task-management.mjs';
|
|
33
|
-
import { AXFormatPipe } from '@acorex/core/format';
|
|
34
|
-
import * as i1 from '@acorex/platform/layout/widget-core';
|
|
35
|
-
import { AXPWidgetCoreModule, AXPWidgetsCatalog } from '@acorex/platform/layout/widget-core';
|
|
36
|
-
import { AXPSettingsService } from '@acorex/platform/common';
|
|
37
|
-
import { signalStore, withState, withComputed, withMethods, patchState } from '@ngrx/signals';
|
|
38
|
-
import { AXFormFieldComponent, AXFormComponent } from '@acorex/components/form';
|
|
39
|
-
import { AXLabelComponent } from '@acorex/components/label';
|
|
40
|
-
import { isEqual, sortBy } from 'lodash-es';
|
|
41
|
-
import { AXSchedulerComponent } from '@acorex/components/scheduler';
|
|
42
|
-
import { AXDataSource } from '@acorex/cdk/common';
|
|
43
|
-
import * as i1$2 from '@acorex/components/data-table';
|
|
44
|
-
import { AXDataTableModule } from '@acorex/components/data-table';
|
|
45
|
-
import { AXKanbanComponent } from '@acorex/components/kanban';
|
|
46
|
-
|
|
47
|
-
var AXMTaskBoardSettings;
|
|
48
|
-
(function (AXMTaskBoardSettings) {
|
|
49
|
-
AXMTaskBoardSettings["ViewMode"] = "TaskManagement:Setting:TaskBoard.ViewMode";
|
|
50
|
-
AXMTaskBoardSettings["DetailPanel"] = "TaskManagement:Setting:TaskBoard.DetailPanel";
|
|
51
|
-
AXMTaskBoardSettings["DaysCount"] = "TaskManagement:Setting:TaskBoard.Calendar.DaysCount";
|
|
52
|
-
AXMTaskBoardSettings["CurrentDate"] = "TaskManagement:Setting:TaskBoard.Calendar.CurrentDate";
|
|
53
|
-
AXMTaskBoardSettings["SelectedPriorities"] = "TaskManagement:Setting:TaskBoard.Filter.SelectedPriorities";
|
|
54
|
-
AXMTaskBoardSettings["SelectedAssigneeIds"] = "TaskManagement:Setting:TaskBoard.Filter.SelectedAssigneeIds";
|
|
55
|
-
AXMTaskBoardSettings["SelectedReporterIds"] = "TaskManagement:Setting:TaskBoard.Filter.SelectedReporterIds";
|
|
56
|
-
AXMTaskBoardSettings["SelectedTaskTypeNames"] = "TaskManagement:Setting:TaskBoard.Filter.SelectedTaskTypeNames";
|
|
57
|
-
})(AXMTaskBoardSettings || (AXMTaskBoardSettings = {}));
|
|
58
|
-
|
|
59
|
-
const AXMTaskBoardViewModel = signalStore({ providedIn: 'root' }, withState(() => ({
|
|
60
|
-
daysCount: 7,
|
|
61
|
-
taskTypes: [],
|
|
62
|
-
isLoading: true,
|
|
63
|
-
detailPanel: false,
|
|
64
|
-
selectedTask: null,
|
|
65
|
-
rangeStartDate: null,
|
|
66
|
-
currentDate: new Date(),
|
|
67
|
-
currentViewMode: 'month',
|
|
68
|
-
selectedTaskTypeNames: [],
|
|
69
|
-
selectedAssigneeIds: [],
|
|
70
|
-
selectedPriorities: [],
|
|
71
|
-
selectedReporterIds: [],
|
|
72
|
-
})), withComputed((store) => ({
|
|
73
|
-
selectedTaskTypes: computed(() => {
|
|
74
|
-
const names = store.selectedTaskTypeNames();
|
|
75
|
-
if (!names || names.length === 0) {
|
|
76
|
-
return [];
|
|
77
|
-
}
|
|
78
|
-
return store.taskTypes().filter((tt) => names.includes(tt.name));
|
|
79
|
-
}),
|
|
80
|
-
isTaskSelected: computed(() => store.selectedTask() !== null),
|
|
81
|
-
isDetailPanelOpen: computed(() => store.detailPanel()),
|
|
82
|
-
endDate: computed(() => {
|
|
83
|
-
const currentDate = store.currentDate();
|
|
84
|
-
const daysCount = store.daysCount();
|
|
85
|
-
return new Date(currentDate.getTime() + daysCount * 24 * 60 * 60 * 1000);
|
|
86
|
-
}),
|
|
87
|
-
activeFilterCount: computed(() => {
|
|
88
|
-
let count = 0;
|
|
89
|
-
if (store.currentViewMode() !== 'kanban' &&
|
|
90
|
-
store.currentViewMode() !== 'status-grouped-grid' &&
|
|
91
|
-
store.selectedTaskTypeNames().length > 0) {
|
|
92
|
-
count++;
|
|
93
|
-
}
|
|
94
|
-
if (store.selectedAssigneeIds().length > 0) {
|
|
95
|
-
count++;
|
|
96
|
-
}
|
|
97
|
-
if (store.selectedReporterIds().length > 0) {
|
|
98
|
-
count++;
|
|
99
|
-
}
|
|
100
|
-
if (store.selectedPriorities().length > 0) {
|
|
101
|
-
count++;
|
|
102
|
-
}
|
|
103
|
-
return count;
|
|
104
|
-
}),
|
|
105
|
-
})), withMethods((store, settingsService = inject(AXPSettingsService), taskBoardService = inject(AXPTaskBoardService)) => {
|
|
106
|
-
const userScopedSettings = () => settingsService.scope(AXPPlatformScope.User);
|
|
107
|
-
return {
|
|
108
|
-
async initialize() {
|
|
109
|
-
patchState(store, { isLoading: true });
|
|
110
|
-
try {
|
|
111
|
-
const taskTypes = await taskBoardService.getTaskTypes();
|
|
112
|
-
patchState(store, { taskTypes });
|
|
113
|
-
const [savedDaysCount, savedDateString, savedDetailPanel, savedViewMode, savedTaskTypeNames, savedAssigneeIds, savedReporterIds, savedPriorities,] = await Promise.all([
|
|
114
|
-
userScopedSettings().get(AXMTaskBoardSettings.DaysCount),
|
|
115
|
-
userScopedSettings().get(AXMTaskBoardSettings.CurrentDate),
|
|
116
|
-
userScopedSettings().get(AXMTaskBoardSettings.DetailPanel),
|
|
117
|
-
userScopedSettings().get(AXMTaskBoardSettings.ViewMode),
|
|
118
|
-
userScopedSettings().get(AXMTaskBoardSettings.SelectedTaskTypeNames),
|
|
119
|
-
userScopedSettings().get(AXMTaskBoardSettings.SelectedAssigneeIds),
|
|
120
|
-
userScopedSettings().get(AXMTaskBoardSettings.SelectedReporterIds),
|
|
121
|
-
userScopedSettings().get(AXMTaskBoardSettings.SelectedPriorities),
|
|
122
|
-
]);
|
|
123
|
-
patchState(store, {
|
|
124
|
-
daysCount: savedDaysCount || 7,
|
|
125
|
-
detailPanel: savedDetailPanel || false,
|
|
126
|
-
currentViewMode: savedViewMode || 'month',
|
|
127
|
-
currentDate: savedDateString ? new Date(savedDateString) : new Date(),
|
|
128
|
-
selectedTaskTypeNames: savedTaskTypeNames || [],
|
|
129
|
-
selectedAssigneeIds: savedAssigneeIds || [],
|
|
130
|
-
selectedReporterIds: savedReporterIds || [],
|
|
131
|
-
selectedPriorities: savedPriorities || [],
|
|
132
|
-
isLoading: false,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
catch (error) {
|
|
136
|
-
console.error('Error initializing TaskBoard ViewModel:', error);
|
|
137
|
-
patchState(store, {
|
|
138
|
-
detailPanel: false,
|
|
139
|
-
currentViewMode: 'month',
|
|
140
|
-
currentDate: new Date(),
|
|
141
|
-
selectedTaskTypeNames: [],
|
|
142
|
-
selectedAssigneeIds: [],
|
|
143
|
-
selectedPriorities: [],
|
|
144
|
-
selectedReporterIds: [],
|
|
145
|
-
taskTypes: store.taskTypes(),
|
|
146
|
-
isLoading: false,
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
setViewMode(mode) {
|
|
151
|
-
if ((mode === 'kanban' || mode === 'status-grouped-grid') && store.selectedTaskTypeNames().length === 0) {
|
|
152
|
-
const firstTaskType = store.taskTypes()[0];
|
|
153
|
-
if (firstTaskType) {
|
|
154
|
-
this.setSelectedTaskTypeNames([firstTaskType.name]);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
if ((mode === 'kanban' || mode === 'status-grouped-grid') && store.selectedTaskTypeNames().length > 1) {
|
|
158
|
-
this.setSelectedTaskTypeNames([store.selectedTaskTypeNames()[0]]);
|
|
159
|
-
}
|
|
160
|
-
patchState(store, { currentViewMode: mode });
|
|
161
|
-
userScopedSettings()
|
|
162
|
-
.set(AXMTaskBoardSettings.ViewMode, mode)
|
|
163
|
-
.catch((error) => console.error('Error saving calendar view mode:', error));
|
|
164
|
-
},
|
|
165
|
-
setCurrentDate(date) {
|
|
166
|
-
patchState(store, { currentDate: new Date(date) });
|
|
167
|
-
userScopedSettings()
|
|
168
|
-
.set(AXMTaskBoardSettings.CurrentDate, date.toISOString())
|
|
169
|
-
.catch((error) => console.error('Error saving current date:', error));
|
|
170
|
-
},
|
|
171
|
-
setSelectedTaskTypeNames(taskTypeNames, isQueryParam = false) {
|
|
172
|
-
patchState(store, { selectedTaskTypeNames: taskTypeNames });
|
|
173
|
-
if (isQueryParam)
|
|
174
|
-
return;
|
|
175
|
-
userScopedSettings()
|
|
176
|
-
.set(AXMTaskBoardSettings.SelectedTaskTypeNames, taskTypeNames)
|
|
177
|
-
.catch((error) => console.error('Error saving selected task type filter:', error));
|
|
178
|
-
},
|
|
179
|
-
setSelectedAssigneeIds(assigneeIds, isQueryParam = false) {
|
|
180
|
-
patchState(store, { selectedAssigneeIds: assigneeIds });
|
|
181
|
-
if (isQueryParam)
|
|
182
|
-
return;
|
|
183
|
-
userScopedSettings()
|
|
184
|
-
.set(AXMTaskBoardSettings.SelectedAssigneeIds, assigneeIds)
|
|
185
|
-
.catch((error) => console.error('Error saving selected assignee filter:', error));
|
|
186
|
-
},
|
|
187
|
-
setSelectedReporterIds(reporterIds, isQueryParam = false) {
|
|
188
|
-
patchState(store, { selectedReporterIds: reporterIds });
|
|
189
|
-
if (isQueryParam)
|
|
190
|
-
return;
|
|
191
|
-
userScopedSettings()
|
|
192
|
-
.set(AXMTaskBoardSettings.SelectedReporterIds, reporterIds)
|
|
193
|
-
.catch((error) => console.error('Error saving selected reporter filter:', error));
|
|
194
|
-
},
|
|
195
|
-
setSelectedPriorities(priorities, isQueryParam = false) {
|
|
196
|
-
patchState(store, { selectedPriorities: priorities });
|
|
197
|
-
if (isQueryParam)
|
|
198
|
-
return;
|
|
199
|
-
userScopedSettings()
|
|
200
|
-
.set(AXMTaskBoardSettings.SelectedPriorities, priorities)
|
|
201
|
-
.catch((error) => console.error('Error saving selected priority filter:', error));
|
|
202
|
-
},
|
|
203
|
-
/**
|
|
204
|
-
* Sets the currently selected task. Pass `null` to clear the selection.
|
|
205
|
-
* @param task The task to select, or null.
|
|
206
|
-
*/
|
|
207
|
-
selectTask(task) {
|
|
208
|
-
patchState(store, { selectedTask: task });
|
|
209
|
-
},
|
|
210
|
-
/**
|
|
211
|
-
* A convenience method to clear the currently selected task.
|
|
212
|
-
*/
|
|
213
|
-
clearSelectedTask() {
|
|
214
|
-
patchState(store, { selectedTask: null });
|
|
215
|
-
},
|
|
216
|
-
openDetailPanel() {
|
|
217
|
-
patchState(store, { detailPanel: true });
|
|
218
|
-
userScopedSettings()
|
|
219
|
-
.set(AXMTaskBoardSettings.DetailPanel, true)
|
|
220
|
-
.catch((error) => console.error('Error saving detail panel:', error));
|
|
221
|
-
},
|
|
222
|
-
closeDetailPanel() {
|
|
223
|
-
patchState(store, { detailPanel: false });
|
|
224
|
-
userScopedSettings()
|
|
225
|
-
.set(AXMTaskBoardSettings.DetailPanel, false)
|
|
226
|
-
.catch((error) => console.error('Error saving detail panel:', error));
|
|
227
|
-
},
|
|
228
|
-
toggleDetailPanel() {
|
|
229
|
-
const detailPanel = !store.detailPanel();
|
|
230
|
-
patchState(store, { detailPanel: detailPanel });
|
|
231
|
-
userScopedSettings()
|
|
232
|
-
.set(AXMTaskBoardSettings.DetailPanel, detailPanel)
|
|
233
|
-
.catch((error) => console.error('Error saving detail panel:', error));
|
|
234
|
-
},
|
|
235
|
-
async getStatusName(key, provider) {
|
|
236
|
-
return taskBoardService.getStatusName(key, provider);
|
|
237
|
-
},
|
|
238
|
-
/**
|
|
239
|
-
* Sets the start date for a new range selection.
|
|
240
|
-
* Pass `null` to clear the selection.
|
|
241
|
-
* @param date The start date of the range.
|
|
242
|
-
*/
|
|
243
|
-
setRangeStartDate(date) {
|
|
244
|
-
patchState(store, { rangeStartDate: date });
|
|
245
|
-
},
|
|
246
|
-
setDaysCount(days) {
|
|
247
|
-
const count = Math.max(1, days);
|
|
248
|
-
patchState(store, { daysCount: count });
|
|
249
|
-
userScopedSettings()
|
|
250
|
-
.set(AXMTaskBoardSettings.DaysCount, count)
|
|
251
|
-
.catch((error) => console.error('Error saving days count:', error));
|
|
252
|
-
},
|
|
253
|
-
};
|
|
254
|
-
}));
|
|
255
|
-
|
|
256
|
-
class AXMTaskBoardDetailPanel {
|
|
257
|
-
constructor() {
|
|
258
|
-
this.rootConfig = RootConfig;
|
|
259
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
260
|
-
this.localeService = inject(AXLocaleService);
|
|
261
|
-
this.taskBoardService = inject(AXPTaskBoardService);
|
|
262
|
-
this.statusName = signal('', ...(ngDevMode ? [{ debugName: "statusName" }] : []));
|
|
263
|
-
this.extraFields = signal([], ...(ngDevMode ? [{ debugName: "extraFields" }] : []));
|
|
264
|
-
this.#selectedTaskChanged = effect(async () => {
|
|
265
|
-
const selectedTask = this.vm.selectedTask();
|
|
266
|
-
const key = selectedTask?.status.id;
|
|
267
|
-
const provider = selectedTask?.provider;
|
|
268
|
-
if (!provider)
|
|
269
|
-
return;
|
|
270
|
-
const name = await this.vm.getStatusName(key, provider);
|
|
271
|
-
if (name)
|
|
272
|
-
this.statusName.set(name);
|
|
273
|
-
}, ...(ngDevMode ? [{ debugName: "#selectedTaskChanged" }] : []));
|
|
274
|
-
this.#selectedTaskTypeChanged = effect(async () => {
|
|
275
|
-
const selectedTask = this.vm.selectedTask();
|
|
276
|
-
const selectedTaskType = this.taskBoardService.getProvider(selectedTask?.provider);
|
|
277
|
-
const extraFields = await selectedTaskType?.getExtraFields();
|
|
278
|
-
if (!extraFields) {
|
|
279
|
-
this.extraFields.set([]);
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
this.extraFields.set(extraFields);
|
|
283
|
-
}, ...(ngDevMode ? [{ debugName: "#selectedTaskTypeChanged" }] : []));
|
|
284
|
-
}
|
|
285
|
-
#selectedTaskChanged;
|
|
286
|
-
#selectedTaskTypeChanged;
|
|
287
|
-
capitalizeFirstLetter(text) {
|
|
288
|
-
return String(text).charAt(0).toUpperCase() + String(text).slice(1);
|
|
289
|
-
}
|
|
290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardDetailPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
291
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: AXMTaskBoardDetailPanel, isStandalone: true, selector: "axm-task-board-detail-panel", ngImport: i0, template: "@if (vm.isTaskSelected()) {\n @let nodeInfo = vm.selectedTask();\n <div class=\"__header\">\n <div class=\"__title\">\n <span>{{ nodeInfo?.title }}</span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n\n <div class=\"__content\">\n <div class=\"__section\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.title' | translate | async }}</span>\n </div>\n <div class=\"__content\">\n @if (nodeInfo?.description) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.description' | translate | async }}\n </span>\n </div>\n <div class=\"__content\">{{ nodeInfo?.description }}</div>\n </div>\n }\n <div class=\"__row\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.start-date' | translate | async }}\n </span>\n </div>\n <div class=\"__content\">\n {{\n nodeInfo?.startDate\n | format: 'datetime' : { format: 'short', calendar: localeService.activeProfile().calendar.system }\n | async\n }}\n </div>\n </div>\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.end-date' | translate | async }}</span>\n </div>\n <div class=\"__content\">\n {{\n nodeInfo?.endDate\n | format: 'datetime' : { format: 'short', calendar: localeService.activeProfile().calendar.system }\n | async\n }}\n </div>\n </div>\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.reporter' | translate | async }}</span>\n </div>\n <div class=\"__content\">\n {{ nodeInfo?.reporter?.fullName }}\n </div>\n </div>\n @if (nodeInfo?.assignee) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.assignee' | translate | async }}</span>\n </div>\n <div class=\"__content\">{{ nodeInfo?.assignee?.fullName }}</div>\n </div>\n }\n @if (statusName()) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.status' | translate | async }}</span>\n </div>\n <div class=\"__content\">{{ statusName() }}</div>\n </div>\n }\n @if (nodeInfo?.priority) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.priority' | translate | async }}\n </span>\n </div>\n <div class=\"__content\">{{ capitalizeFirstLetter(nodeInfo?.priority ?? '') }}</div>\n </div>\n }\n @if (extraFields() && extraFields().length) {\n <div class=\"__row\">\n <axp-widgets-container [context]=\"nodeInfo\">\n @for (extraField of extraFields(); track extraField) {\n <div class=\"__title\">\n <span>\n {{ extraField.title | translate | async }}\n </span>\n </div>\n <div class=\"__content\">\n <ng-container axp-widget-renderer [node]=\"extraField.widget\" [mode]=\"'view'\"> </ng-container>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n </div>\n </div>\n </div>\n} @else {\n <div class=\"__header\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.title' | translate | async }}\n </span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n\n <div class=\"__content ax-flex ax-items-center ax-justify-center\">\n <axp-state-message\n icon=\"fa-light fa-clipboard-list-check\"\n [title]=\"'@task-management:task-board.detail-panel.no-task-selected.title'\"\n [description]=\"'@task-management:task-board.detail-panel.no-task-selected.description'\"\n >\n </axp-state-message>\n </div>\n}\n", styles: ["axm-task-board-detail-panel{display:flex;flex-direction:column;border-radius:.5rem;border-width:1px;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}@media (min-width: 1024px){axm-task-board-detail-panel{width:24rem}}axm-task-board-detail-panel>.__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom-width:1px;padding:1rem}@media (min-width: 1024px){axm-task-board-detail-panel>.__header{width:20rem}}axm-task-board-detail-panel>.__header>.__title{display:flex;width:90%;flex-direction:row;align-items:center;gap:.5rem}axm-task-board-detail-panel>.__header>.__title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;font-weight:600;line-height:1.625}axm-task-board-detail-panel>.__content{display:flex;flex-direction:column}axm-task-board-detail-panel>.__content>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}axm-task-board-detail-panel>.__content>.__section{display:flex;flex-direction:column;padding:1rem}axm-task-board-detail-panel>.__content>.__section>.__title{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;font-weight:700}axm-task-board-detail-panel>.__content>.__section>.__content{display:flex;flex-direction:column;gap:1rem}axm-task-board-detail-panel>.__content>.__section>.__content>.__row{display:flex;flex-direction:column;gap:.25rem}axm-task-board-detail-panel>.__content>.__section>.__content>.__row>.__title{display:flex;font-size:.875rem;line-height:1.25rem;font-weight:600;opacity:.9}axm-task-board-detail-panel>.__content>.__section>.__content>.__row>.__content{display:flex;flex-direction:row;align-items:center;gap:.5rem}axm-task-board-detail-panel>.__content>.__section>.__content>.__row>.__content span{opacity:.7}\n"], dependencies: [{ kind: "component", type: 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: "component", type: AXPStateMessageComponent, selector: "axp-state-message", inputs: ["mode", "icon", "title", "description", "variant"] }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "component", type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXFormatPipe, name: "format" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
292
|
-
}
|
|
293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardDetailPanel, decorators: [{
|
|
294
|
-
type: Component,
|
|
295
|
-
args: [{ selector: 'axm-task-board-detail-panel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
|
|
296
|
-
AsyncPipe,
|
|
297
|
-
AXFormatPipe,
|
|
298
|
-
AXTranslatorPipe,
|
|
299
|
-
AXButtonComponent,
|
|
300
|
-
AXPStateMessageComponent,
|
|
301
|
-
AXPWidgetCoreModule,
|
|
302
|
-
AXDecoratorIconComponent,
|
|
303
|
-
], template: "@if (vm.isTaskSelected()) {\n @let nodeInfo = vm.selectedTask();\n <div class=\"__header\">\n <div class=\"__title\">\n <span>{{ nodeInfo?.title }}</span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n\n <div class=\"__content\">\n <div class=\"__section\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.title' | translate | async }}</span>\n </div>\n <div class=\"__content\">\n @if (nodeInfo?.description) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.description' | translate | async }}\n </span>\n </div>\n <div class=\"__content\">{{ nodeInfo?.description }}</div>\n </div>\n }\n <div class=\"__row\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.start-date' | translate | async }}\n </span>\n </div>\n <div class=\"__content\">\n {{\n nodeInfo?.startDate\n | format: 'datetime' : { format: 'short', calendar: localeService.activeProfile().calendar.system }\n | async\n }}\n </div>\n </div>\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.end-date' | translate | async }}</span>\n </div>\n <div class=\"__content\">\n {{\n nodeInfo?.endDate\n | format: 'datetime' : { format: 'short', calendar: localeService.activeProfile().calendar.system }\n | async\n }}\n </div>\n </div>\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.reporter' | translate | async }}</span>\n </div>\n <div class=\"__content\">\n {{ nodeInfo?.reporter?.fullName }}\n </div>\n </div>\n @if (nodeInfo?.assignee) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.assignee' | translate | async }}</span>\n </div>\n <div class=\"__content\">{{ nodeInfo?.assignee?.fullName }}</div>\n </div>\n }\n @if (statusName()) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>{{ '@task-management:task-board.detail-panel.status' | translate | async }}</span>\n </div>\n <div class=\"__content\">{{ statusName() }}</div>\n </div>\n }\n @if (nodeInfo?.priority) {\n <div class=\"__row\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.priority' | translate | async }}\n </span>\n </div>\n <div class=\"__content\">{{ capitalizeFirstLetter(nodeInfo?.priority ?? '') }}</div>\n </div>\n }\n @if (extraFields() && extraFields().length) {\n <div class=\"__row\">\n <axp-widgets-container [context]=\"nodeInfo\">\n @for (extraField of extraFields(); track extraField) {\n <div class=\"__title\">\n <span>\n {{ extraField.title | translate | async }}\n </span>\n </div>\n <div class=\"__content\">\n <ng-container axp-widget-renderer [node]=\"extraField.widget\" [mode]=\"'view'\"> </ng-container>\n </div>\n }\n </axp-widgets-container>\n </div>\n }\n </div>\n </div>\n </div>\n} @else {\n <div class=\"__header\">\n <div class=\"__title\">\n <span>\n {{ '@task-management:task-board.detail-panel.title' | translate | async }}\n </span>\n </div>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"vm.closeDetailPanel()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n\n <div class=\"__content ax-flex ax-items-center ax-justify-center\">\n <axp-state-message\n icon=\"fa-light fa-clipboard-list-check\"\n [title]=\"'@task-management:task-board.detail-panel.no-task-selected.title'\"\n [description]=\"'@task-management:task-board.detail-panel.no-task-selected.description'\"\n >\n </axp-state-message>\n </div>\n}\n", styles: ["axm-task-board-detail-panel{display:flex;flex-direction:column;border-radius:.5rem;border-width:1px;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}@media (min-width: 1024px){axm-task-board-detail-panel{width:24rem}}axm-task-board-detail-panel>.__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom-width:1px;padding:1rem}@media (min-width: 1024px){axm-task-board-detail-panel>.__header{width:20rem}}axm-task-board-detail-panel>.__header>.__title{display:flex;width:90%;flex-direction:row;align-items:center;gap:.5rem}axm-task-board-detail-panel>.__header>.__title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;font-weight:600;line-height:1.625}axm-task-board-detail-panel>.__content{display:flex;flex-direction:column}axm-task-board-detail-panel>.__content>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}axm-task-board-detail-panel>.__content>.__section{display:flex;flex-direction:column;padding:1rem}axm-task-board-detail-panel>.__content>.__section>.__title{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;font-weight:700}axm-task-board-detail-panel>.__content>.__section>.__content{display:flex;flex-direction:column;gap:1rem}axm-task-board-detail-panel>.__content>.__section>.__content>.__row{display:flex;flex-direction:column;gap:.25rem}axm-task-board-detail-panel>.__content>.__section>.__content>.__row>.__title{display:flex;font-size:.875rem;line-height:1.25rem;font-weight:600;opacity:.9}axm-task-board-detail-panel>.__content>.__section>.__content>.__row>.__content{display:flex;flex-direction:row;align-items:center;gap:.5rem}axm-task-board-detail-panel>.__content>.__section>.__content>.__row>.__content span{opacity:.7}\n"] }]
|
|
304
|
-
}] });
|
|
305
|
-
|
|
306
|
-
class AXMTaskBoardFiltersComponent {
|
|
307
|
-
constructor() {
|
|
308
|
-
this.rootConfig = RootConfig;
|
|
309
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
310
|
-
this.isQueryParam = input(false, ...(ngDevMode ? [{ debugName: "isQueryParam" }] : []));
|
|
311
|
-
this.applyClicked = output();
|
|
312
|
-
this.context = signal({}, ...(ngDevMode ? [{ debugName: "context" }] : []));
|
|
313
|
-
this.isInitialized = false;
|
|
314
|
-
this.#init = effect(() => {
|
|
315
|
-
const isLoading = this.vm.isLoading();
|
|
316
|
-
if (!isLoading && !this.isInitialized) {
|
|
317
|
-
this.resetContextToViewModel();
|
|
318
|
-
this.isInitialized = true;
|
|
319
|
-
}
|
|
320
|
-
}, ...(ngDevMode ? [{ debugName: "#init" }] : []));
|
|
321
|
-
this.VALID_PRIORITIES = [
|
|
322
|
-
{ title: 'Highest', name: 'highest' },
|
|
323
|
-
{ title: 'High', name: 'high' },
|
|
324
|
-
{ title: 'Medium', name: 'medium' },
|
|
325
|
-
{ title: 'Low', name: 'low' },
|
|
326
|
-
{ title: 'Lowest', name: 'lowest' },
|
|
327
|
-
{ title: 'No Priority', name: 'no_priority' },
|
|
328
|
-
];
|
|
329
|
-
this.isMultiSelectEnabled = computed(() => {
|
|
330
|
-
const viewMode = this.vm.currentViewMode();
|
|
331
|
-
return viewMode !== 'kanban' && viewMode !== 'status-grouped-grid';
|
|
332
|
-
}, ...(ngDevMode ? [{ debugName: "isMultiSelectEnabled" }] : []));
|
|
333
|
-
this.nodes = computed(() => [
|
|
334
|
-
{
|
|
335
|
-
name: 'taskType',
|
|
336
|
-
path: 'options.taskType',
|
|
337
|
-
type: AXPWidgetsCatalog.select,
|
|
338
|
-
options: {
|
|
339
|
-
valueField: 'name',
|
|
340
|
-
textField: 'title',
|
|
341
|
-
dataSource: 'task-types',
|
|
342
|
-
placeholder: 'Select Task Type',
|
|
343
|
-
multiple: this.isMultiSelectEnabled(),
|
|
344
|
-
allowClear: this.isMultiSelectEnabled(),
|
|
345
|
-
},
|
|
346
|
-
meta: {
|
|
347
|
-
title: 'task-board.filter.task-type',
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
name: 'assignee',
|
|
352
|
-
path: 'options.assignee',
|
|
353
|
-
type: AXPWidgetsCatalog.select,
|
|
354
|
-
options: {
|
|
355
|
-
multiple: true,
|
|
356
|
-
valueField: 'id',
|
|
357
|
-
allowSearch: true,
|
|
358
|
-
dataSource: 'users',
|
|
359
|
-
textField: 'displayName',
|
|
360
|
-
placeholder: 'Select Assignee',
|
|
361
|
-
},
|
|
362
|
-
meta: {
|
|
363
|
-
title: 'task-board.filter.assignee',
|
|
364
|
-
},
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
name: 'reporter',
|
|
368
|
-
path: 'options.reporter',
|
|
369
|
-
type: AXPWidgetsCatalog.select,
|
|
370
|
-
options: {
|
|
371
|
-
multiple: true,
|
|
372
|
-
valueField: 'id',
|
|
373
|
-
allowSearch: true,
|
|
374
|
-
dataSource: 'users',
|
|
375
|
-
textField: 'displayName',
|
|
376
|
-
placeholder: 'Select Reporter',
|
|
377
|
-
},
|
|
378
|
-
meta: {
|
|
379
|
-
title: 'task-board.filter.reporter',
|
|
380
|
-
},
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
name: 'priority',
|
|
384
|
-
path: 'options.priority',
|
|
385
|
-
type: AXPWidgetsCatalog.select,
|
|
386
|
-
options: {
|
|
387
|
-
multiple: true,
|
|
388
|
-
valueField: 'name',
|
|
389
|
-
textField: 'title',
|
|
390
|
-
direction: 'horizontal',
|
|
391
|
-
placeholder: 'Select Priority',
|
|
392
|
-
dataSource: this.VALID_PRIORITIES,
|
|
393
|
-
},
|
|
394
|
-
meta: {
|
|
395
|
-
title: 'task-board.filter.priority',
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
], ...(ngDevMode ? [{ debugName: "nodes" }] : []));
|
|
399
|
-
}
|
|
400
|
-
#init;
|
|
401
|
-
resetContextToViewModel() {
|
|
402
|
-
const vmTaskTypeNames = this.vm.selectedTaskTypeNames();
|
|
403
|
-
const vmAssigneeIds = this.vm.selectedAssigneeIds();
|
|
404
|
-
const vmReporterIds = this.vm.selectedReporterIds();
|
|
405
|
-
const vmPriorities = this.vm.selectedPriorities();
|
|
406
|
-
const currentViewIsMulti = this.isMultiSelectEnabled();
|
|
407
|
-
const taskTypeContextValue = currentViewIsMulti
|
|
408
|
-
? vmTaskTypeNames
|
|
409
|
-
: vmTaskTypeNames.length > 0
|
|
410
|
-
? vmTaskTypeNames[0]
|
|
411
|
-
: null;
|
|
412
|
-
this.context.set({
|
|
413
|
-
options: {
|
|
414
|
-
priority: vmPriorities,
|
|
415
|
-
assignee: vmAssigneeIds,
|
|
416
|
-
reporter: vmReporterIds,
|
|
417
|
-
taskType: taskTypeContextValue,
|
|
418
|
-
},
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
handleContextChanged(e) {
|
|
422
|
-
this.context.set(e.data);
|
|
423
|
-
}
|
|
424
|
-
handleApply() {
|
|
425
|
-
this.syncTaskTypesToViewModel(this.context()?.options?.taskType);
|
|
426
|
-
this.syncAssigneesToViewModel(this.context()?.options?.assignee);
|
|
427
|
-
this.syncReportersToViewModel(this.context()?.options?.reporter);
|
|
428
|
-
this.syncPrioritiesToViewModel(this.context()?.options?.priority);
|
|
429
|
-
this.applyClicked.emit();
|
|
430
|
-
}
|
|
431
|
-
syncTaskTypesToViewModel(selectedValue) {
|
|
432
|
-
let newNames = [];
|
|
433
|
-
if (Array.isArray(selectedValue)) {
|
|
434
|
-
newNames = selectedValue.filter((v) => v != null).map((t) => (typeof t === 'string' ? t : t.name));
|
|
435
|
-
}
|
|
436
|
-
else if (selectedValue) {
|
|
437
|
-
newNames = [typeof selectedValue === 'string' ? selectedValue : selectedValue.name];
|
|
438
|
-
}
|
|
439
|
-
const currentNames = this.vm.selectedTaskTypeNames();
|
|
440
|
-
if (!isEqual(sortBy(currentNames), sortBy(newNames))) {
|
|
441
|
-
this.vm.setSelectedTaskTypeNames(newNames, this.isQueryParam());
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
syncAssigneesToViewModel(selectedAssignees) {
|
|
445
|
-
let newIds = [];
|
|
446
|
-
if (Array.isArray(selectedAssignees)) {
|
|
447
|
-
newIds = selectedAssignees
|
|
448
|
-
.filter((v) => v != null)
|
|
449
|
-
.map((t) => (typeof t === 'string' || typeof t === 'number' ? t : t.id));
|
|
450
|
-
}
|
|
451
|
-
const currentIds = this.vm.selectedAssigneeIds();
|
|
452
|
-
if (!isEqual(sortBy(currentIds), sortBy(newIds))) {
|
|
453
|
-
this.vm.setSelectedAssigneeIds(newIds, this.isQueryParam());
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
syncReportersToViewModel(selectedReporters) {
|
|
457
|
-
let newIds = [];
|
|
458
|
-
if (Array.isArray(selectedReporters)) {
|
|
459
|
-
newIds = selectedReporters
|
|
460
|
-
.filter((v) => v != null)
|
|
461
|
-
.map((t) => (typeof t === 'string' || typeof t === 'number' ? t : t.id));
|
|
462
|
-
}
|
|
463
|
-
const currentIds = this.vm.selectedReporterIds();
|
|
464
|
-
if (!isEqual(sortBy(currentIds), sortBy(newIds))) {
|
|
465
|
-
this.vm.setSelectedReporterIds(newIds, this.isQueryParam());
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
syncPrioritiesToViewModel(selectedPriorities) {
|
|
469
|
-
let newNames = [];
|
|
470
|
-
if (Array.isArray(selectedPriorities)) {
|
|
471
|
-
newNames = selectedPriorities
|
|
472
|
-
.filter((v) => v != null)
|
|
473
|
-
.map((t) => (typeof t === 'string' ? t : t.name));
|
|
474
|
-
}
|
|
475
|
-
const currentNames = this.vm.selectedPriorities();
|
|
476
|
-
if (!isEqual(sortBy(currentNames), sortBy(newNames))) {
|
|
477
|
-
this.vm.setSelectedPriorities(newNames, this.isQueryParam());
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
handleReset() {
|
|
481
|
-
if (this.vm.currentViewMode() === 'kanban' || this.vm.currentViewMode() === 'status-grouped-grid') {
|
|
482
|
-
const currentOptions = this.context();
|
|
483
|
-
this.context.set({
|
|
484
|
-
options: {
|
|
485
|
-
taskType: currentOptions?.options?.taskType,
|
|
486
|
-
},
|
|
487
|
-
});
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
this.context.set({});
|
|
491
|
-
}
|
|
492
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardFiltersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
493
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: AXMTaskBoardFiltersComponent, isStandalone: true, selector: "axm-task-board-filters", inputs: { isQueryParam: { classPropertyName: "isQueryParam", publicName: "isQueryParam", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { applyClicked: "applyClicked" }, ngImport: i0, template: "<div class=\"ax-px-4 ax-py-3 ax-flex ax-flex-col ax-gap-2 ax-sm ax-w-[20rem]\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"handleContextChanged($event)\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-4\">\n @for (node of nodes(); track $index) {\n <ax-form-field>\n @if (node.meta?.['title']) {\n <ax-label>\n {{ node.meta?.['title'] | translate: { scope: rootConfig.config.i18n } | async }}\n </ax-label>\n }\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n </ax-form-field>\n }\n </div>\n <div class=\"ax-flex ax-gap-2 ax-mt-6 ax-mb-1\">\n <ax-button\n (onClick)=\"handleReset()\"\n class=\"ax-w-full\"\n [text]=\"'@general:actions.clear.title' | translate | async\"\n ></ax-button>\n <ax-button\n color=\"primary\"\n [type]=\"'submit'\"\n (onClick)=\"handleApply()\"\n class=\"ax-w-full\"\n [text]=\"'@general:actions.apply.title' | translate | async\"\n ></ax-button>\n </div>\n </ax-form>\n </axp-widgets-container>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "component", type: AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "component", type: AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "component", type: 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: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
494
|
-
}
|
|
495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardFiltersComponent, decorators: [{
|
|
496
|
-
type: Component,
|
|
497
|
-
args: [{ selector: 'axm-task-board-filters', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
|
|
498
|
-
CommonModule,
|
|
499
|
-
AXFormFieldComponent,
|
|
500
|
-
AXPWidgetCoreModule,
|
|
501
|
-
AXFormComponent,
|
|
502
|
-
AXLabelComponent,
|
|
503
|
-
AXButtonComponent,
|
|
504
|
-
AXTranslatorPipe,
|
|
505
|
-
AsyncPipe,
|
|
506
|
-
], template: "<div class=\"ax-px-4 ax-py-3 ax-flex ax-flex-col ax-gap-2 ax-sm ax-w-[20rem]\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"handleContextChanged($event)\">\n <ax-form>\n <div class=\"ax-flex ax-flex-col ax-gap-4\">\n @for (node of nodes(); track $index) {\n <ax-form-field>\n @if (node.meta?.['title']) {\n <ax-label>\n {{ node.meta?.['title'] | translate: { scope: rootConfig.config.i18n } | async }}\n </ax-label>\n }\n <ng-container axp-widget-renderer [node]=\"node\" [mode]=\"'edit'\"></ng-container>\n </ax-form-field>\n }\n </div>\n <div class=\"ax-flex ax-gap-2 ax-mt-6 ax-mb-1\">\n <ax-button\n (onClick)=\"handleReset()\"\n class=\"ax-w-full\"\n [text]=\"'@general:actions.clear.title' | translate | async\"\n ></ax-button>\n <ax-button\n color=\"primary\"\n [type]=\"'submit'\"\n (onClick)=\"handleApply()\"\n class=\"ax-w-full\"\n [text]=\"'@general:actions.apply.title' | translate | async\"\n ></ax-button>\n </div>\n </ax-form>\n </axp-widgets-container>\n</div>\n" }]
|
|
507
|
-
}], propDecorators: { isQueryParam: [{ type: i0.Input, args: [{ isSignal: true, alias: "isQueryParam", required: false }] }], applyClicked: [{ type: i0.Output, args: ["applyClicked"] }] } });
|
|
508
|
-
|
|
509
|
-
class AXMTaskBoardCalendarViewComponent {
|
|
510
|
-
constructor() {
|
|
511
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
512
|
-
this.calendarService = inject(AXCalendarService);
|
|
513
|
-
this.taskBoardService = inject(AXPTaskBoardService);
|
|
514
|
-
this.settingsService = inject(AXPSettingsService);
|
|
515
|
-
this.schedulerComponent = viewChild(AXSchedulerComponent, ...(ngDevMode ? [{ debugName: "schedulerComponent" }] : []));
|
|
516
|
-
this.resources = input([], ...(ngDevMode ? [{ debugName: "resources" }] : []));
|
|
517
|
-
this.startingDate = input(new Date(), ...(ngDevMode ? [{ debugName: "startingDate" }] : []));
|
|
518
|
-
this.selectedView = input('month', ...(ngDevMode ? [{ debugName: "selectedView" }] : []));
|
|
519
|
-
this.dataSource = input.required(...(ngDevMode ? [{ debugName: "dataSource" }] : []));
|
|
520
|
-
this.firstDayOfWeek = signal('monday', ...(ngDevMode ? [{ debugName: "firstDayOfWeek" }] : []));
|
|
521
|
-
this.weekendDays = signal([0, 6], ...(ngDevMode ? [{ debugName: "weekendDays" }] : []));
|
|
522
|
-
this.holidays = (range) => {
|
|
523
|
-
return this.taskBoardService.getEvents(range);
|
|
524
|
-
};
|
|
525
|
-
this.currentSchedulerView = computed(() => this.selectedView() === 'kanban' || this.selectedView() === 'grid'
|
|
526
|
-
? 'month'
|
|
527
|
-
: this.selectedView(), ...(ngDevMode ? [{ debugName: "currentSchedulerView" }] : []));
|
|
528
|
-
this.onTaskClick = output();
|
|
529
|
-
this.onTaskChanged = output();
|
|
530
|
-
this.onMonthSlotDblClicked = output();
|
|
531
|
-
this.onActionClick = output();
|
|
532
|
-
this.component = output();
|
|
533
|
-
this.onTaskRightClick = output();
|
|
534
|
-
this.onRangeChanged = output();
|
|
535
|
-
}
|
|
536
|
-
// async ngOnInit(): Promise<void> {
|
|
537
|
-
// const firstDayOfWeek = await this.settingsService.get(AXPRegionalSetting.FirstDayOfWeek) as unknown as number;
|
|
538
|
-
// const weekDays = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];
|
|
539
|
-
// this.firstDayOfWeek.set(weekDays[firstDayOfWeek] as unknown as AXDayOfWeekName);
|
|
540
|
-
// this.weekendDays.set((await this.settingsService.get(AXPRegionalSetting.WeekendDays)) as unknown as number[]);
|
|
541
|
-
// }
|
|
542
|
-
async ngAfterViewInit() {
|
|
543
|
-
if (this.schedulerComponent()) {
|
|
544
|
-
this.component.emit(this.schedulerComponent());
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
onTaskDrop(event) {
|
|
548
|
-
if (event.isSameSlotDrop)
|
|
549
|
-
return;
|
|
550
|
-
let from;
|
|
551
|
-
let end;
|
|
552
|
-
const apptStartDate = this.calendarService.create(event.appointment.startDate);
|
|
553
|
-
const apptEndDate = event.appointment.endDate;
|
|
554
|
-
const apptDiffTime = Math.abs(apptStartDate.date.getTime() - apptEndDate.getTime());
|
|
555
|
-
switch (event.slot.view) {
|
|
556
|
-
case 'month':
|
|
557
|
-
case 'agenda':
|
|
558
|
-
from = this.calendarService
|
|
559
|
-
.create(event.slot.startDate.date)
|
|
560
|
-
.set('hour', apptStartDate.hour)
|
|
561
|
-
.set('minute', apptStartDate.minute)
|
|
562
|
-
.set('second', apptStartDate.second).date;
|
|
563
|
-
end = new Date(from.getTime() + apptDiffTime);
|
|
564
|
-
break;
|
|
565
|
-
default:
|
|
566
|
-
from = event.slot.startDate.date;
|
|
567
|
-
end = event.slot.endDate.date;
|
|
568
|
-
const isAllDay = Math.abs(from.getTime() - end.getTime()) >= 24 * 60 * 60 * 1000 - 1;
|
|
569
|
-
const wasAllDay = apptDiffTime >= 24 * 60 * 60 * 1000 - 1;
|
|
570
|
-
if ((wasAllDay && isAllDay) || (!wasAllDay && !isAllDay)) {
|
|
571
|
-
end = new Date(from.getTime() + apptDiffTime);
|
|
572
|
-
}
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
this.taskBoardService.updateTaskDateRange(event.appointment, { from, end }).then((task) => {
|
|
576
|
-
this.onTaskChanged.emit(task);
|
|
577
|
-
this.schedulerComponent()?.refresh([task]);
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
onTaskRightClickHandler(event) {
|
|
581
|
-
this.onTaskRightClick.emit({ nativeEvent: event.nativeEvent, task: event.appointment });
|
|
582
|
-
}
|
|
583
|
-
onSlotDblClicked(event) {
|
|
584
|
-
if (event.sender.selectedView() === 'month') {
|
|
585
|
-
this.onMonthSlotDblClicked.emit(event.slot.startDate.date);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
async handleRangeChanged(event) {
|
|
589
|
-
this.onRangeChanged.emit(event);
|
|
590
|
-
}
|
|
591
|
-
handleActionClick(event) {
|
|
592
|
-
this.onActionClick.emit({ nativeEvent: event.nativeEvent, task: event.appointment });
|
|
593
|
-
}
|
|
594
|
-
onTaskClickHandler(event) {
|
|
595
|
-
this.onTaskClick.emit(event.appointment);
|
|
596
|
-
}
|
|
597
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardCalendarViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
598
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.12", type: AXMTaskBoardCalendarViewComponent, isStandalone: true, selector: "axm-task-board-calendar-view", inputs: { resources: { classPropertyName: "resources", publicName: "resources", isSignal: true, isRequired: false, transformFunction: null }, startingDate: { classPropertyName: "startingDate", publicName: "startingDate", isSignal: true, isRequired: false, transformFunction: null }, selectedView: { classPropertyName: "selectedView", publicName: "selectedView", isSignal: true, isRequired: false, transformFunction: null }, dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onTaskClick: "onTaskClick", onTaskChanged: "onTaskChanged", onMonthSlotDblClicked: "onMonthSlotDblClicked", onActionClick: "onActionClick", component: "component", onTaskRightClick: "onTaskRightClick", onRangeChanged: "onRangeChanged" }, viewQueries: [{ propertyName: "schedulerComponent", first: true, predicate: AXSchedulerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-scheduler\n [hasHeader]=\"false\"\n [hasActions]=\"true\"\n [holidays]=\"holidays\"\n [resources]=\"resources()\"\n [dataSource]=\"dataSource()\"\n [startingDate]=\"startingDate()\"\n [selectedView]=\"currentSchedulerView()\"\n [multiDayViewDaysCount]=\"vm.daysCount()\"\n (onAppointmentDrop)=\"onTaskDrop($event)\"\n (onActionClick)=\"handleActionClick($event)\"\n (onRangeChanged)=\"handleRangeChanged($event)\"\n (onSlotDblClicked)=\"onSlotDblClicked($event)\"\n (onAppointmentClicked)=\"onTaskClickHandler($event)\"\n (onAppointmentRightClick)=\"onTaskRightClickHandler($event)\"\n [weekend]=\"weekendDays()\"\n [firstDayOfWeek]=\"firstDayOfWeek()\"\n></ax-scheduler>\n", styles: ["ax-scheduler{line-height:1.5;background-color:rgba(var(--ax-sys-color-lightest-surface))!important}\n"], dependencies: [{ kind: "component", type: AXSchedulerComponent, selector: "ax-scheduler", inputs: ["calendar", "startingDate", "endDayHour", "startDayHour", "hasHeader", "readonly", "draggable", "hasActions", "dragStartDelay", "weekend", "allowFullScreen", "multiDayViewDaysCount", "showResourceHeaders", "showCurrentTimeIndicator", "showUnassignedAppointments", "resources", "resourceTemplate", "firstDayOfWeek", "tooltipTemplate", "dataSource", "holidays", "views", "selectedView"], outputs: ["selectedViewChange", "onDataLoaded", "onRangeChanged", "onSlotClicked", "onSlotDblClicked", "onSlotRightClick", "onAppointmentDrop", "onActionClick", "onAppointmentClicked", "onAppointmentDblClicked", "onAppointmentRightClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
599
|
-
}
|
|
600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardCalendarViewComponent, decorators: [{
|
|
601
|
-
type: Component,
|
|
602
|
-
args: [{ selector: 'axm-task-board-calendar-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [AXSchedulerComponent], template: "<ax-scheduler\n [hasHeader]=\"false\"\n [hasActions]=\"true\"\n [holidays]=\"holidays\"\n [resources]=\"resources()\"\n [dataSource]=\"dataSource()\"\n [startingDate]=\"startingDate()\"\n [selectedView]=\"currentSchedulerView()\"\n [multiDayViewDaysCount]=\"vm.daysCount()\"\n (onAppointmentDrop)=\"onTaskDrop($event)\"\n (onActionClick)=\"handleActionClick($event)\"\n (onRangeChanged)=\"handleRangeChanged($event)\"\n (onSlotDblClicked)=\"onSlotDblClicked($event)\"\n (onAppointmentClicked)=\"onTaskClickHandler($event)\"\n (onAppointmentRightClick)=\"onTaskRightClickHandler($event)\"\n [weekend]=\"weekendDays()\"\n [firstDayOfWeek]=\"firstDayOfWeek()\"\n></ax-scheduler>\n", styles: ["ax-scheduler{line-height:1.5;background-color:rgba(var(--ax-sys-color-lightest-surface))!important}\n"] }]
|
|
603
|
-
}], propDecorators: { schedulerComponent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXSchedulerComponent), { isSignal: true }] }], resources: [{ type: i0.Input, args: [{ isSignal: true, alias: "resources", required: false }] }], startingDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "startingDate", required: false }] }], selectedView: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedView", required: false }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], onTaskClick: [{ type: i0.Output, args: ["onTaskClick"] }], onTaskChanged: [{ type: i0.Output, args: ["onTaskChanged"] }], onMonthSlotDblClicked: [{ type: i0.Output, args: ["onMonthSlotDblClicked"] }], onActionClick: [{ type: i0.Output, args: ["onActionClick"] }], component: [{ type: i0.Output, args: ["component"] }], onTaskRightClick: [{ type: i0.Output, args: ["onTaskRightClick"] }], onRangeChanged: [{ type: i0.Output, args: ["onRangeChanged"] }] } });
|
|
604
|
-
|
|
605
|
-
class AXMTaskBoardGridViewComponent {
|
|
606
|
-
constructor() {
|
|
607
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
608
|
-
this.localeService = inject(AXLocaleService);
|
|
609
|
-
this.calendarService = inject(AXCalendarService);
|
|
610
|
-
this.taskBoardService = inject(AXPTaskBoardService);
|
|
611
|
-
this.dataSource = input.required(...(ngDevMode ? [{ debugName: "dataSource" }] : []));
|
|
612
|
-
this.onTaskClick = output();
|
|
613
|
-
this.onActionClick = output();
|
|
614
|
-
this.fetchedTasks = signal([], ...(ngDevMode ? [{ debugName: "fetchedTasks" }] : []));
|
|
615
|
-
this.columns = signal([], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
616
|
-
this.tasksDataSource = computed(() => {
|
|
617
|
-
const parentDataSource = this.dataSource();
|
|
618
|
-
return new AXDataSource({
|
|
619
|
-
load: async (e) => {
|
|
620
|
-
const result = await parentDataSource({ skip: e.skip, take: e.take });
|
|
621
|
-
this.fetchedTasks.set(result.items);
|
|
622
|
-
const mappedItems = result.items.map((task) => ({
|
|
623
|
-
id: task.id,
|
|
624
|
-
data: task.data,
|
|
625
|
-
title: task.title,
|
|
626
|
-
priority: task.priority,
|
|
627
|
-
description: task.description,
|
|
628
|
-
statusTitle: task.status.title,
|
|
629
|
-
reporter: task.reporter.fullName ?? '-',
|
|
630
|
-
assignee: task.assignee?.fullName ?? 'unassigned',
|
|
631
|
-
type: this.taskBoardService.getProvider(task.provider)?.title,
|
|
632
|
-
endDate: this.calendarService.format(task.endDate, 'DD/MM/YYYY HH:mm', {
|
|
633
|
-
locale: this.localeService.activeProfile().calendar.system,
|
|
634
|
-
}),
|
|
635
|
-
startDate: this.calendarService.format(task.startDate, 'DD/MM/YYYY HH:mm', {
|
|
636
|
-
locale: this.localeService.activeProfile().calendar.system,
|
|
637
|
-
}),
|
|
638
|
-
}));
|
|
639
|
-
return { items: mappedItems, total: result.total };
|
|
640
|
-
},
|
|
641
|
-
pageSize: 10,
|
|
642
|
-
key: 'id',
|
|
643
|
-
byKey: async (key) => {
|
|
644
|
-
return this.fetchedTasks().find((task) => task.id === key);
|
|
645
|
-
},
|
|
646
|
-
});
|
|
647
|
-
}, ...(ngDevMode ? [{ debugName: "tasksDataSource" }] : []));
|
|
648
|
-
this.#dataSourceChanged = effect(() => {
|
|
649
|
-
this.tasksDataSource().refresh();
|
|
650
|
-
}, ...(ngDevMode ? [{ debugName: "#dataSourceChanged" }] : []));
|
|
651
|
-
this.#providerChanged = effect(async () => {
|
|
652
|
-
const taskType = this.vm.selectedTaskTypes()[0];
|
|
653
|
-
if (!taskType) {
|
|
654
|
-
this.columns.set([]);
|
|
655
|
-
return;
|
|
656
|
-
}
|
|
657
|
-
taskType.getExtraFields().then((extraFields) => {
|
|
658
|
-
if (extraFields) {
|
|
659
|
-
this.columns.set(extraFields);
|
|
660
|
-
}
|
|
661
|
-
});
|
|
662
|
-
}, ...(ngDevMode ? [{ debugName: "#providerChanged" }] : []));
|
|
663
|
-
}
|
|
664
|
-
#dataSourceChanged;
|
|
665
|
-
#providerChanged;
|
|
666
|
-
handleRowClick(event) {
|
|
667
|
-
if (event.data) {
|
|
668
|
-
this.onTaskClick.emit(event.data);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
onActionClickHandler(e) {
|
|
672
|
-
const task = this.fetchedTasks().find((task) => task.id === e.data.id);
|
|
673
|
-
if (!task)
|
|
674
|
-
return;
|
|
675
|
-
this.onActionClick.emit({ nativeEvent: e.nativeEvent, task });
|
|
676
|
-
}
|
|
677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardGridViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: AXMTaskBoardGridViewComponent, isStandalone: true, selector: "axm-task-board-grid-view", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onTaskClick: "onTaskClick", onActionClick: "onActionClick" }, ngImport: i0, template: "<ax-data-table\n [fetchDataMode]=\"'manual'\"\n [dataSource]=\"tasksDataSource()\"\n (onRowClick)=\"handleRowClick($event)\"\n [loading]=\"{ enabled: true, animation: true }\"\n>\n <ax-text-column dataField=\"title\" caption=\"title\" [width]=\"'350px'\"></ax-text-column>\n <ax-text-column dataField=\"description\" caption=\"description\" [width]=\"'500px'\"></ax-text-column>\n <ax-text-column dataField=\"startDate\" caption=\"Start Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"endDate\" caption=\"Due Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"priority\" caption=\"priority\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"reporter\" caption=\"Reporter\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"assignee\" caption=\"Assignee\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"statusTitle\" caption=\"status\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"type\" caption=\"type\" [width]=\"'150px'\"></ax-text-column>\n\n @if (columns().length) {\n <ng-container>\n @for (column of columns(); track column) {\n <axp-widget-column-renderer\n [node]=\"column.widget\"\n [caption]=\"(column.title | translate | async)!\"\n ></axp-widget-column-renderer>\n }\n </ng-container>\n }\n\n <ax-command-column\n fixed=\"end\"\n [width]=\"'60px'\"\n (onItemClick)=\"onActionClickHandler($event)\"\n [items]=\"[{ name: 'view', text: 'View', icon: 'ax-icon ax-icon-more-horizontal' }]\"\n ></ax-command-column>\n</ax-data-table>\n", styles: ["ax-kanban{--ax-comp-kanban-status-min-width: 25rem;height:100%;line-height:1.5}\n"], dependencies: [{ kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i1$2.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "rowDetailsTemplate", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: i1$2.AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }, { kind: "component", type: i1$2.AXRowCommandColumnComponent, selector: "ax-command-column", inputs: ["width", "caption", "fixed", "footerTemplate", "items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "customExpandIcon", "customCollapseIcon", "customWidth", "node", "footerTemplate", "expandHandler", "cellTemplate", "headerTemplate"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
679
|
-
}
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardGridViewComponent, decorators: [{
|
|
681
|
-
type: Component,
|
|
682
|
-
args: [{ selector: 'axm-task-board-grid-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [AXDataTableModule, AXTranslatorPipe, AsyncPipe, AXPWidgetCoreModule], template: "<ax-data-table\n [fetchDataMode]=\"'manual'\"\n [dataSource]=\"tasksDataSource()\"\n (onRowClick)=\"handleRowClick($event)\"\n [loading]=\"{ enabled: true, animation: true }\"\n>\n <ax-text-column dataField=\"title\" caption=\"title\" [width]=\"'350px'\"></ax-text-column>\n <ax-text-column dataField=\"description\" caption=\"description\" [width]=\"'500px'\"></ax-text-column>\n <ax-text-column dataField=\"startDate\" caption=\"Start Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"endDate\" caption=\"Due Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"priority\" caption=\"priority\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"reporter\" caption=\"Reporter\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"assignee\" caption=\"Assignee\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"statusTitle\" caption=\"status\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"type\" caption=\"type\" [width]=\"'150px'\"></ax-text-column>\n\n @if (columns().length) {\n <ng-container>\n @for (column of columns(); track column) {\n <axp-widget-column-renderer\n [node]=\"column.widget\"\n [caption]=\"(column.title | translate | async)!\"\n ></axp-widget-column-renderer>\n }\n </ng-container>\n }\n\n <ax-command-column\n fixed=\"end\"\n [width]=\"'60px'\"\n (onItemClick)=\"onActionClickHandler($event)\"\n [items]=\"[{ name: 'view', text: 'View', icon: 'ax-icon ax-icon-more-horizontal' }]\"\n ></ax-command-column>\n</ax-data-table>\n", styles: ["ax-kanban{--ax-comp-kanban-status-min-width: 25rem;height:100%;line-height:1.5}\n"] }]
|
|
683
|
-
}], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], onTaskClick: [{ type: i0.Output, args: ["onTaskClick"] }], onActionClick: [{ type: i0.Output, args: ["onActionClick"] }] } });
|
|
684
|
-
|
|
685
|
-
class AXMTaskBoardKanbanViewComponent {
|
|
686
|
-
constructor() {
|
|
687
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
688
|
-
this.taskBoardService = inject(AXPTaskBoardService);
|
|
689
|
-
this.kanbanComponent = viewChild(AXKanbanComponent, ...(ngDevMode ? [{ debugName: "kanbanComponent" }] : []));
|
|
690
|
-
this.tasks = model.required(...(ngDevMode ? [{ debugName: "tasks" }] : []));
|
|
691
|
-
this.onTaskClick = output();
|
|
692
|
-
this.onTaskChanged = output();
|
|
693
|
-
this.component = output();
|
|
694
|
-
this.onActionClick = output();
|
|
695
|
-
this.statuses = signal([], ...(ngDevMode ? [{ debugName: "statuses" }] : []));
|
|
696
|
-
this.stableTasks = computed(() => this.tasks(), ...(ngDevMode ? [{ debugName: "stableTasks", equal: isEqual }] : [{ equal: isEqual }]));
|
|
697
|
-
this.kanbanTasks = computed(() => {
|
|
698
|
-
return this.stableTasks().map((task) => ({
|
|
699
|
-
id: task.id,
|
|
700
|
-
title: task.title,
|
|
701
|
-
index: task.index,
|
|
702
|
-
cssClass: task.cssClass,
|
|
703
|
-
priority: task.priority,
|
|
704
|
-
statusKey: task.status.id,
|
|
705
|
-
description: task.description,
|
|
706
|
-
}));
|
|
707
|
-
}, ...(ngDevMode ? [{ debugName: "kanbanTasks" }] : []));
|
|
708
|
-
this.#providerChanged = effect(async () => {
|
|
709
|
-
const taskType = this.vm.selectedTaskTypes()[0];
|
|
710
|
-
if (!taskType) {
|
|
711
|
-
this.statuses.set([]);
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
taskType.getStatuses().then((statuses) => {
|
|
715
|
-
if (statuses) {
|
|
716
|
-
this.statuses.set(statuses);
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
}, ...(ngDevMode ? [{ debugName: "#providerChanged" }] : []));
|
|
720
|
-
}
|
|
721
|
-
ngAfterViewInit() {
|
|
722
|
-
if (this.kanbanComponent()) {
|
|
723
|
-
this.component.emit(this.kanbanComponent());
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
#providerChanged;
|
|
727
|
-
onSortChanged(event) {
|
|
728
|
-
const tasks = this.tasks().map((item) => {
|
|
729
|
-
const task = event.allItems.find((t) => t.id === item.id);
|
|
730
|
-
if (task) {
|
|
731
|
-
const status = this.statuses().find((s) => s.key === task.statusKey);
|
|
732
|
-
return { ...item, index: task.index, status: { id: status.key, title: status.title } };
|
|
733
|
-
}
|
|
734
|
-
return item;
|
|
735
|
-
});
|
|
736
|
-
this.taskBoardService.updateTasks(tasks).then((tasks) => {
|
|
737
|
-
this.tasks.set(tasks);
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
handleItemClick(event) {
|
|
741
|
-
const task = this.stableTasks().find((task) => task.id === event.item.id);
|
|
742
|
-
if (task) {
|
|
743
|
-
this.onTaskClick.emit(task);
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
handleActionClick(event) {
|
|
747
|
-
const task = this.stableTasks().find((task) => task.id === event.item.id);
|
|
748
|
-
if (task) {
|
|
749
|
-
this.onActionClick.emit({ nativeEvent: event.nativeEvent, task: task });
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardKanbanViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
753
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.12", type: AXMTaskBoardKanbanViewComponent, isStandalone: true, selector: "axm-task-board-kanban-view", inputs: { tasks: { classPropertyName: "tasks", publicName: "tasks", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { tasks: "tasksChange", onTaskClick: "onTaskClick", onTaskChanged: "onTaskChanged", component: "component", onActionClick: "onActionClick" }, viewQueries: [{ propertyName: "kanbanComponent", first: true, predicate: AXKanbanComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ax-kanban\n [hasActions]=\"true\"\n [statuses]=\"statuses()\"\n [dataSource]=\"kanbanTasks()\"\n (onItemClick)=\"handleItemClick($event)\"\n (onSortChanged)=\"onSortChanged($event)\"\n (onActionClick)=\"handleActionClick($event)\"\n></ax-kanban>\n", styles: ["ax-kanban{--ax-comp-kanban-status-min-height: 100%;--ax-comp-kanban-status-min-width: 25rem;height:100%;line-height:1.5}\n"], dependencies: [{ kind: "component", type: AXKanbanComponent, selector: "ax-kanban", inputs: ["hasActions", "dragStartDelay", "statuses", "itemTemplate", "dataSource", "keyField", "indexField", "titleField", "cssClassField", "priorityField", "statusKeyField", "descriptionField", "emptyTemplate", "headerTemplate", "footerTemplate", "contentFooterTemplate", "tooltipTemplate"], outputs: ["onSortChanged", "onItemClick", "onActionClick", "onItemDblClick", "onItemRightClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
754
|
-
}
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardKanbanViewComponent, decorators: [{
|
|
756
|
-
type: Component,
|
|
757
|
-
args: [{ selector: 'axm-task-board-kanban-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [AXKanbanComponent], template: "<ax-kanban\n [hasActions]=\"true\"\n [statuses]=\"statuses()\"\n [dataSource]=\"kanbanTasks()\"\n (onItemClick)=\"handleItemClick($event)\"\n (onSortChanged)=\"onSortChanged($event)\"\n (onActionClick)=\"handleActionClick($event)\"\n></ax-kanban>\n", styles: ["ax-kanban{--ax-comp-kanban-status-min-height: 100%;--ax-comp-kanban-status-min-width: 25rem;height:100%;line-height:1.5}\n"] }]
|
|
758
|
-
}], propDecorators: { kanbanComponent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXKanbanComponent), { isSignal: true }] }], tasks: [{ type: i0.Input, args: [{ isSignal: true, alias: "tasks", required: true }] }, { type: i0.Output, args: ["tasksChange"] }], onTaskClick: [{ type: i0.Output, args: ["onTaskClick"] }], onTaskChanged: [{ type: i0.Output, args: ["onTaskChanged"] }], component: [{ type: i0.Output, args: ["component"] }], onActionClick: [{ type: i0.Output, args: ["onActionClick"] }] } });
|
|
759
|
-
|
|
760
|
-
class AXMTaskBoardStatusGroupedGridViewComponent {
|
|
761
|
-
constructor() {
|
|
762
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
763
|
-
this.localeService = inject(AXLocaleService);
|
|
764
|
-
this.calendarService = inject(AXCalendarService);
|
|
765
|
-
this.provider = input(...(ngDevMode ? [undefined, { debugName: "provider" }] : []));
|
|
766
|
-
this.dataSource = input.required(...(ngDevMode ? [{ debugName: "dataSource" }] : []));
|
|
767
|
-
this.onActionClick = output();
|
|
768
|
-
this.groupedTasks = signal([], ...(ngDevMode ? [{ debugName: "groupedTasks" }] : []));
|
|
769
|
-
this.allFetchedTasks = signal([], ...(ngDevMode ? [{ debugName: "allFetchedTasks" }] : []));
|
|
770
|
-
this.columns = signal([], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
771
|
-
this.statuses = signal([], ...(ngDevMode ? [{ debugName: "statuses" }] : []));
|
|
772
|
-
this.#dataChanged = effect(async () => {
|
|
773
|
-
const parentDataSource = this.dataSource();
|
|
774
|
-
const allStatuses = this.statuses();
|
|
775
|
-
if (!parentDataSource || allStatuses.length === 0) {
|
|
776
|
-
this.groupedTasks.set([]);
|
|
777
|
-
this.allFetchedTasks.set([]);
|
|
778
|
-
return;
|
|
779
|
-
}
|
|
780
|
-
const result = await parentDataSource();
|
|
781
|
-
this.allFetchedTasks.set(result.items);
|
|
782
|
-
const allTasks = result.items;
|
|
783
|
-
const statusGroups = allStatuses.map((status) => {
|
|
784
|
-
const tasksForStatus = allTasks.filter((task) => task.status.id === status.key);
|
|
785
|
-
return {
|
|
786
|
-
statusInfo: status,
|
|
787
|
-
tasks: this.createTaskDataSourceForGroup(tasksForStatus),
|
|
788
|
-
};
|
|
789
|
-
});
|
|
790
|
-
this.groupedTasks.set(statusGroups);
|
|
791
|
-
untracked(() => {
|
|
792
|
-
setTimeout(() => {
|
|
793
|
-
this.groupedTasks()?.forEach((group) => {
|
|
794
|
-
group.tasks.refresh();
|
|
795
|
-
});
|
|
796
|
-
});
|
|
797
|
-
});
|
|
798
|
-
}, ...(ngDevMode ? [{ debugName: "#dataChanged" }] : []));
|
|
799
|
-
this.#providerChanged = effect(async () => {
|
|
800
|
-
const provider = this.vm.selectedTaskTypes()[0];
|
|
801
|
-
provider?.getExtraFields().then((extraFields) => {
|
|
802
|
-
if (extraFields) {
|
|
803
|
-
this.columns.set(extraFields);
|
|
804
|
-
}
|
|
805
|
-
});
|
|
806
|
-
provider?.getStatuses().then((statuses) => {
|
|
807
|
-
if (statuses) {
|
|
808
|
-
this.statuses.set(statuses);
|
|
809
|
-
}
|
|
810
|
-
});
|
|
811
|
-
}, ...(ngDevMode ? [{ debugName: "#providerChanged" }] : []));
|
|
812
|
-
}
|
|
813
|
-
#dataChanged;
|
|
814
|
-
#providerChanged;
|
|
815
|
-
createTaskDataSourceForGroup(tasks) {
|
|
816
|
-
return new AXDataSource({
|
|
817
|
-
load: async (e) => {
|
|
818
|
-
const items = tasks.map((task) => ({
|
|
819
|
-
id: task.id,
|
|
820
|
-
data: task.data,
|
|
821
|
-
title: task.title,
|
|
822
|
-
priority: task.priority,
|
|
823
|
-
description: task.description,
|
|
824
|
-
reporter: task.reporter.fullName ?? '-',
|
|
825
|
-
assignee: task.assignee?.fullName ?? 'unassigned',
|
|
826
|
-
endDate: this.calendarService.format(task.endDate, 'DD/MM/YYYY HH:mm', {
|
|
827
|
-
locale: this.localeService.activeProfile().calendar.system,
|
|
828
|
-
}),
|
|
829
|
-
startDate: this.calendarService.format(task.startDate, 'DD/MM/YYYY HH:mm', {
|
|
830
|
-
locale: this.localeService.activeProfile().calendar.system,
|
|
831
|
-
}),
|
|
832
|
-
}));
|
|
833
|
-
return {
|
|
834
|
-
items: items.slice(e.skip, e.skip + e.take),
|
|
835
|
-
total: items.length,
|
|
836
|
-
};
|
|
837
|
-
},
|
|
838
|
-
pageSize: 5,
|
|
839
|
-
key: 'id',
|
|
840
|
-
byKey: async (key) => {
|
|
841
|
-
return tasks.find((task) => task.id === key);
|
|
842
|
-
},
|
|
843
|
-
});
|
|
844
|
-
}
|
|
845
|
-
onActionClickHandler(e) {
|
|
846
|
-
const task = this.allFetchedTasks().find((task) => task.id === e.data.id);
|
|
847
|
-
if (!task)
|
|
848
|
-
return;
|
|
849
|
-
this.onActionClick.emit({ nativeEvent: e.nativeEvent, task });
|
|
850
|
-
}
|
|
851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardStatusGroupedGridViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
852
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: AXMTaskBoardStatusGroupedGridViewComponent, isStandalone: true, selector: "axm-task-board-status-grouped-grid-view", inputs: { provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onActionClick: "onActionClick" }, ngImport: i0, template: "@for (group of groupedTasks(); track group) {\n <h1 class=\"ax-text-xl ax-font-bold\">{{ group.statusInfo.title }}</h1>\n <ax-data-table\n class=\"ax-h-[300px]\"\n [fetchDataMode]=\"'manual'\"\n [dataSource]=\"group.tasks\"\n [loading]=\"{ enabled: true, animation: true }\"\n >\n <ax-text-column dataField=\"title\" caption=\"title\" [width]=\"'350px'\"></ax-text-column>\n <ax-text-column dataField=\"description\" caption=\"description\" [width]=\"'500px'\"></ax-text-column>\n <ax-text-column dataField=\"startDate\" caption=\"Start Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"endDate\" caption=\"Due Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"priority\" caption=\"priority\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"reporter\" caption=\"Reporter\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"assignee\" caption=\"Assignee\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"priority\" caption=\"priority\" [width]=\"'125px'\"></ax-text-column>\n\n @for (column of columns(); track column) {\n <axp-widget-column-renderer\n [node]=\"column.widget\"\n [caption]=\"(column.title | translate | async)!\"\n ></axp-widget-column-renderer>\n }\n\n <ax-command-column\n fixed=\"end\"\n [width]=\"'60px'\"\n (onItemClick)=\"onActionClickHandler($event)\"\n [items]=\"[{ name: 'view', text: 'View', icon: 'ax-icon ax-icon-more-horizontal' }]\"\n ></ax-command-column>\n </ax-data-table>\n}\n", styles: ["ax-kanban{--ax-comp-kanban-status-min-width: 25rem;height:100%;line-height:1.5}\n"], dependencies: [{ kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i1$2.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "rowDetailsTemplate", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: i1$2.AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }, { kind: "component", type: i1$2.AXRowCommandColumnComponent, selector: "ax-command-column", inputs: ["width", "caption", "fixed", "footerTemplate", "items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "customExpandIcon", "customCollapseIcon", "customWidth", "node", "footerTemplate", "expandHandler", "cellTemplate", "headerTemplate"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
853
|
-
}
|
|
854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardStatusGroupedGridViewComponent, decorators: [{
|
|
855
|
-
type: Component,
|
|
856
|
-
args: [{ selector: 'axm-task-board-status-grouped-grid-view', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [AXDataTableModule, AXTranslatorPipe, AsyncPipe, AXPWidgetCoreModule], template: "@for (group of groupedTasks(); track group) {\n <h1 class=\"ax-text-xl ax-font-bold\">{{ group.statusInfo.title }}</h1>\n <ax-data-table\n class=\"ax-h-[300px]\"\n [fetchDataMode]=\"'manual'\"\n [dataSource]=\"group.tasks\"\n [loading]=\"{ enabled: true, animation: true }\"\n >\n <ax-text-column dataField=\"title\" caption=\"title\" [width]=\"'350px'\"></ax-text-column>\n <ax-text-column dataField=\"description\" caption=\"description\" [width]=\"'500px'\"></ax-text-column>\n <ax-text-column dataField=\"startDate\" caption=\"Start Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"endDate\" caption=\"Due Date\" [width]=\"'150px'\"></ax-text-column>\n <ax-text-column dataField=\"priority\" caption=\"priority\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"reporter\" caption=\"Reporter\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"assignee\" caption=\"Assignee\" [width]=\"'125px'\"></ax-text-column>\n <ax-text-column dataField=\"priority\" caption=\"priority\" [width]=\"'125px'\"></ax-text-column>\n\n @for (column of columns(); track column) {\n <axp-widget-column-renderer\n [node]=\"column.widget\"\n [caption]=\"(column.title | translate | async)!\"\n ></axp-widget-column-renderer>\n }\n\n <ax-command-column\n fixed=\"end\"\n [width]=\"'60px'\"\n (onItemClick)=\"onActionClickHandler($event)\"\n [items]=\"[{ name: 'view', text: 'View', icon: 'ax-icon ax-icon-more-horizontal' }]\"\n ></ax-command-column>\n </ax-data-table>\n}\n", styles: ["ax-kanban{--ax-comp-kanban-status-min-width: 25rem;height:100%;line-height:1.5}\n"] }]
|
|
857
|
-
}], propDecorators: { provider: [{ type: i0.Input, args: [{ isSignal: true, alias: "provider", required: false }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], onActionClick: [{ type: i0.Output, args: ["onActionClick"] }] } });
|
|
858
|
-
|
|
859
|
-
class AXMTaskBoardPage extends AXPPageLayoutBaseComponent {
|
|
860
|
-
constructor() {
|
|
861
|
-
super(...arguments);
|
|
862
|
-
this.router = inject(Router);
|
|
863
|
-
this.rootConfig = RootConfig;
|
|
864
|
-
this.deviceService = inject(AXPDeviceService);
|
|
865
|
-
this.vm = inject(AXMTaskBoardViewModel);
|
|
866
|
-
this.unsubscribe = inject(AXUnsubscriber);
|
|
867
|
-
this.activatedRoute = inject(ActivatedRoute);
|
|
868
|
-
this.localeService = inject(AXLocaleService);
|
|
869
|
-
this.calendarService = inject(AXCalendarService);
|
|
870
|
-
this.taskBoardService = inject(AXPTaskBoardService);
|
|
871
|
-
this.popover = viewChild('popover', ...(ngDevMode ? [{ debugName: "popover" }] : []));
|
|
872
|
-
this.calendar = viewChild('calendar', ...(ngDevMode ? [{ debugName: "calendar" }] : []));
|
|
873
|
-
this.isReady = signal(false, ...(ngDevMode ? [{ debugName: "isReady" }] : []));
|
|
874
|
-
this.resources = signal([], ...(ngDevMode ? [{ debugName: "resources" }] : []));
|
|
875
|
-
this.isQueryParam = signal(false, ...(ngDevMode ? [{ debugName: "isQueryParam" }] : []));
|
|
876
|
-
this.currentTask = signal(null, ...(ngDevMode ? [{ debugName: "currentTask" }] : []));
|
|
877
|
-
this.currentViewMode = signal('calendar', ...(ngDevMode ? [{ debugName: "currentViewMode" }] : []));
|
|
878
|
-
this.schedulerComponent = signal(null, ...(ngDevMode ? [{ debugName: "schedulerComponent" }] : []));
|
|
879
|
-
this.menuItems = signal([
|
|
880
|
-
{
|
|
881
|
-
key: 'calendar',
|
|
882
|
-
text: 'calendar',
|
|
883
|
-
icon: 'fa-light fa-calendar-day',
|
|
884
|
-
children: [
|
|
885
|
-
{ key: 'day', text: 'daily', icon: 'fa-light fa-calendar-day' },
|
|
886
|
-
{ key: 'week', text: 'weekly', icon: 'fa-light fa-calendar-week' },
|
|
887
|
-
{ key: 'month', text: 'monthly', icon: 'fa-light fa-calendar-alt' },
|
|
888
|
-
{ key: 'agenda', text: 'agenda', icon: 'fa-light fa-calendar-range' },
|
|
889
|
-
],
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
key: 'timeline',
|
|
893
|
-
text: 'timeline',
|
|
894
|
-
icon: 'fa-light fa-list-timeline',
|
|
895
|
-
children: [
|
|
896
|
-
{ key: 'timeline-day', text: 'daily-timeline', icon: 'fa-light fa-calendar-day' },
|
|
897
|
-
{ key: 'timeline-multi-day', text: 'multi-day-timeline', icon: 'fa-light fa-calendar-week' },
|
|
898
|
-
{ key: 'timeline-month', text: 'monthly-timeline', icon: 'fa-light fa-calendar-alt' },
|
|
899
|
-
{ key: 'timeline-year', text: 'yearly-timeline', icon: 'fa-light fa-calendar-range' },
|
|
900
|
-
],
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
key: 'table',
|
|
904
|
-
text: 'table',
|
|
905
|
-
icon: 'fa-light fa-table',
|
|
906
|
-
children: [
|
|
907
|
-
{ key: 'grid', text: 'grid', icon: 'fa-light fa-table' },
|
|
908
|
-
{ key: 'status-grouped-grid', text: 'status-grouped-grid', icon: 'fa-light fa-table' },
|
|
909
|
-
],
|
|
910
|
-
},
|
|
911
|
-
{ key: 'kanban', text: 'kanban', icon: 'fa-light fa-chart-kanban' },
|
|
912
|
-
], ...(ngDevMode ? [{ debugName: "menuItems" }] : []));
|
|
913
|
-
this.calendarType = computed(() => this.localeService.activeProfile().calendar.system, ...(ngDevMode ? [{ debugName: "calendarType" }] : []));
|
|
914
|
-
this.todayButtonText = computed(() => {
|
|
915
|
-
switch (this.vm.currentViewMode()) {
|
|
916
|
-
case 'day':
|
|
917
|
-
case 'grid':
|
|
918
|
-
case 'agenda':
|
|
919
|
-
case 'kanban':
|
|
920
|
-
case 'timeline-day':
|
|
921
|
-
case 'timeline-multi-day':
|
|
922
|
-
case 'status-grouped-grid':
|
|
923
|
-
return 'Today';
|
|
924
|
-
case 'week':
|
|
925
|
-
return 'Current week';
|
|
926
|
-
case 'month':
|
|
927
|
-
case 'timeline-month':
|
|
928
|
-
return 'Current month';
|
|
929
|
-
case 'timeline-year':
|
|
930
|
-
return 'Current year';
|
|
931
|
-
}
|
|
932
|
-
}, ...(ngDevMode ? [{ debugName: "todayButtonText" }] : []));
|
|
933
|
-
this.timeText = computed(() => {
|
|
934
|
-
if (this.vm.currentViewMode() === 'grid' ||
|
|
935
|
-
this.vm.currentViewMode() === 'kanban' ||
|
|
936
|
-
this.vm.currentViewMode() === 'status-grouped-grid') {
|
|
937
|
-
const start = this.calendarService.create(this.vm.currentDate(), this.localeService.activeProfile().calendar.system);
|
|
938
|
-
const end = start.add('day', this.vm.daysCount() - 1);
|
|
939
|
-
const startText = start.format('DD MMMM yyyy', { locale: this.localeService.activeProfile().calendar.system });
|
|
940
|
-
const endText = end.format('DD MMMM yyyy', { locale: this.localeService.activeProfile().calendar.system });
|
|
941
|
-
return `${startText} - ${endText}`;
|
|
942
|
-
}
|
|
943
|
-
return this.schedulerComponent()?.currentDateText();
|
|
944
|
-
}, ...(ngDevMode ? [{ debugName: "timeText" }] : []));
|
|
945
|
-
this.calendarDepth = computed(() => {
|
|
946
|
-
if (this.vm.currentViewMode() === 'grid' ||
|
|
947
|
-
this.vm.currentViewMode() === 'kanban' ||
|
|
948
|
-
this.vm.currentViewMode() === 'status-grouped-grid') {
|
|
949
|
-
return 'day';
|
|
950
|
-
}
|
|
951
|
-
return this.schedulerComponent()?.calendarDepth();
|
|
952
|
-
}, ...(ngDevMode ? [{ debugName: "calendarDepth" }] : []));
|
|
953
|
-
this.selectedViewMode = computed(() => {
|
|
954
|
-
const currentMode = this.vm.currentViewMode();
|
|
955
|
-
for (const category of this.menuItems()) {
|
|
956
|
-
if (category.key === currentMode) {
|
|
957
|
-
return { key: category.key, text: category.text, icon: category.icon };
|
|
958
|
-
}
|
|
959
|
-
if (category.children) {
|
|
960
|
-
const foundChild = category.children.find((child) => child.key === currentMode);
|
|
961
|
-
if (foundChild) {
|
|
962
|
-
return foundChild;
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
const firstCategory = this.menuItems()[0];
|
|
967
|
-
return firstCategory.children
|
|
968
|
-
? firstCategory.children[0]
|
|
969
|
-
: { key: firstCategory.key, text: firstCategory.text, icon: firstCategory.icon };
|
|
970
|
-
}, ...(ngDevMode ? [{ debugName: "selectedViewMode" }] : []));
|
|
971
|
-
this.filter = computed(() => {
|
|
972
|
-
const taskTypeNames = this.vm.selectedTaskTypeNames();
|
|
973
|
-
const types = taskTypeNames.length > 0 ? taskTypeNames : undefined;
|
|
974
|
-
const assigneeIds = this.vm.selectedAssigneeIds();
|
|
975
|
-
const reporterIds = this.vm.selectedReporterIds();
|
|
976
|
-
const priorities = this.vm.selectedPriorities();
|
|
977
|
-
let from = this.calendarService.create(this.vm.currentDate(), this.localeService.activeProfile().calendar.system);
|
|
978
|
-
let end;
|
|
979
|
-
const currentView = this.vm.currentViewMode();
|
|
980
|
-
if (currentView === 'grid' ||
|
|
981
|
-
currentView === 'kanban' ||
|
|
982
|
-
currentView === 'agenda' ||
|
|
983
|
-
currentView === 'timeline-multi-day' ||
|
|
984
|
-
currentView === 'status-grouped-grid') {
|
|
985
|
-
end = from.add('day', this.vm.daysCount() - 1);
|
|
986
|
-
}
|
|
987
|
-
else if (currentView === 'month' || currentView === 'timeline-month') {
|
|
988
|
-
from = from.startOf('month');
|
|
989
|
-
end = from.endOf('month');
|
|
990
|
-
}
|
|
991
|
-
else {
|
|
992
|
-
end = from.endOf('day');
|
|
993
|
-
}
|
|
994
|
-
return {
|
|
995
|
-
...(types && { types }),
|
|
996
|
-
...(assigneeIds.length > 0 && { assigneeIds }),
|
|
997
|
-
...(reporterIds.length > 0 && { reporterIds }),
|
|
998
|
-
...(priorities.length > 0 && { priorities }),
|
|
999
|
-
range: { from: from.date, end: end.date },
|
|
1000
|
-
};
|
|
1001
|
-
}, ...(ngDevMode ? [{ debugName: "filter" }] : []));
|
|
1002
|
-
this.contextMenu = viewChild('rootContextMenu', ...(ngDevMode ? [{ debugName: "contextMenu" }] : []));
|
|
1003
|
-
this.schedulerDataSource = (filter) => {
|
|
1004
|
-
const finalFilter = { ...this.filter(), ...filter };
|
|
1005
|
-
return this.taskBoardService.getTasks(finalFilter).then((result) => {
|
|
1006
|
-
this.validateSelectedTask(result.items);
|
|
1007
|
-
return result.items;
|
|
1008
|
-
});
|
|
1009
|
-
};
|
|
1010
|
-
this.gridDataSource = (filter) => {
|
|
1011
|
-
const finalFilter = { ...this.filter(), ...filter };
|
|
1012
|
-
return this.taskBoardService.getTasks(finalFilter).then((result) => {
|
|
1013
|
-
this.validateSelectedTask(result.items);
|
|
1014
|
-
return result;
|
|
1015
|
-
});
|
|
1016
|
-
};
|
|
1017
|
-
this.resolvedTasks = signal([], ...(ngDevMode ? [{ debugName: "resolvedTasks" }] : []));
|
|
1018
|
-
this.eff = effect(async () => {
|
|
1019
|
-
const viewMode = this.vm.currentViewMode();
|
|
1020
|
-
const filter = this.filter();
|
|
1021
|
-
if (viewMode === 'kanban') {
|
|
1022
|
-
await this.taskResolveHandler(filter);
|
|
1023
|
-
}
|
|
1024
|
-
}, ...(ngDevMode ? [{ debugName: "eff" }] : []));
|
|
1025
|
-
this.refreshEffect = effect(() => {
|
|
1026
|
-
this.vm.selectedTaskTypeNames();
|
|
1027
|
-
this.getResources();
|
|
1028
|
-
this.schedulerComponent()?.refresh();
|
|
1029
|
-
}, ...(ngDevMode ? [{ debugName: "refreshEffect" }] : []));
|
|
1030
|
-
this.rangeBasedViews = [
|
|
1031
|
-
'grid',
|
|
1032
|
-
'kanban',
|
|
1033
|
-
'agenda',
|
|
1034
|
-
'status-grouped-grid',
|
|
1035
|
-
'timeline-multi-day',
|
|
1036
|
-
];
|
|
1037
|
-
this.getCellClass = (date) => {
|
|
1038
|
-
const currentView = this.vm.currentViewMode();
|
|
1039
|
-
const selectionStartDate = this.vm.rangeStartDate();
|
|
1040
|
-
if (this.rangeBasedViews.includes(currentView)) {
|
|
1041
|
-
if (selectionStartDate) {
|
|
1042
|
-
const axSelectionStartDate = this.calendarService.create(selectionStartDate);
|
|
1043
|
-
if (date.equal(axSelectionStartDate, 'day')) {
|
|
1044
|
-
return 'ax-range-start ax-range-end';
|
|
1045
|
-
}
|
|
1046
|
-
return null;
|
|
1047
|
-
}
|
|
1048
|
-
const fromRange = this.calendarService.create(this.vm.currentDate());
|
|
1049
|
-
const endRange = fromRange.add('day', this.vm.daysCount() - 1);
|
|
1050
|
-
const isStart = date.equal(fromRange, 'day');
|
|
1051
|
-
const isEnd = date.equal(endRange, 'day');
|
|
1052
|
-
if (isStart && isEnd)
|
|
1053
|
-
return 'ax-range-start ax-range-end';
|
|
1054
|
-
if (isStart)
|
|
1055
|
-
return 'ax-range-start';
|
|
1056
|
-
if (isEnd)
|
|
1057
|
-
return 'ax-range-end';
|
|
1058
|
-
if (date.compare(fromRange, 'day') > 0 && date.compare(endRange, 'day') < 0) {
|
|
1059
|
-
return 'ax-range-between';
|
|
1060
|
-
}
|
|
1061
|
-
return null;
|
|
1062
|
-
}
|
|
1063
|
-
if (currentView === 'week') {
|
|
1064
|
-
const from = this.calendarService.create(this.vm.currentDate());
|
|
1065
|
-
const end = from.add('day', 6);
|
|
1066
|
-
if (date.equal(from, 'day'))
|
|
1067
|
-
return 'ax-range-start';
|
|
1068
|
-
if (date.equal(end, 'day'))
|
|
1069
|
-
return 'ax-range-end';
|
|
1070
|
-
if (date.compare(from, 'day') > 0 && date.compare(end, 'day') < 0) {
|
|
1071
|
-
return 'ax-range-between';
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
return null;
|
|
1075
|
-
};
|
|
1076
|
-
}
|
|
1077
|
-
async ngOnInit() {
|
|
1078
|
-
await super.ngOnInit();
|
|
1079
|
-
await this.vm.initialize();
|
|
1080
|
-
this.router.events
|
|
1081
|
-
.pipe(this.unsubscribe.takeUntilDestroy, filter((event) => event instanceof NavigationEnd), startWith(null))
|
|
1082
|
-
.subscribe(async () => {
|
|
1083
|
-
await this.loadFromRoute();
|
|
1084
|
-
if (!this.isReady()) {
|
|
1085
|
-
this.isReady.set(true);
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1088
|
-
this.taskBoardService.refresh$.subscribe(async () => {
|
|
1089
|
-
await this.taskResolveHandler();
|
|
1090
|
-
await this.getResources();
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
async getPageTitle() {
|
|
1094
|
-
return await this.translateService.translateAsync('@task-management:task-board.page-title');
|
|
1095
|
-
}
|
|
1096
|
-
async getPageBreadcrumbs() {
|
|
1097
|
-
return [
|
|
1098
|
-
{
|
|
1099
|
-
title: await this.translateService.translateAsync('@task-management:root-menu'),
|
|
1100
|
-
},
|
|
1101
|
-
];
|
|
1102
|
-
}
|
|
1103
|
-
async taskResolveHandler(filter = this.filter()) {
|
|
1104
|
-
const result = await this.taskBoardService.getTasks(filter);
|
|
1105
|
-
this.validateSelectedTask(result.items);
|
|
1106
|
-
this.resolvedTasks.set(result.items);
|
|
1107
|
-
}
|
|
1108
|
-
schedulerComponentChanged(component) {
|
|
1109
|
-
this.schedulerComponent.set(component);
|
|
1110
|
-
}
|
|
1111
|
-
async handleContextMenuOnOpening(event) {
|
|
1112
|
-
const currentTask = this.currentTask();
|
|
1113
|
-
if (!currentTask)
|
|
1114
|
-
return;
|
|
1115
|
-
const providerName = currentTask.provider;
|
|
1116
|
-
if (!providerName)
|
|
1117
|
-
return;
|
|
1118
|
-
const provider = this.taskBoardService.getProvider(providerName);
|
|
1119
|
-
if (!provider)
|
|
1120
|
-
return;
|
|
1121
|
-
const actions = await provider.getActions(currentTask);
|
|
1122
|
-
for (const item of actions) {
|
|
1123
|
-
event.items.push({
|
|
1124
|
-
text: item.title,
|
|
1125
|
-
icon: item.icon,
|
|
1126
|
-
color: item.color,
|
|
1127
|
-
break: item.break,
|
|
1128
|
-
data: {
|
|
1129
|
-
command: item.command,
|
|
1130
|
-
},
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
handleContextMenu(event) {
|
|
1135
|
-
this.currentTask.set(event.task);
|
|
1136
|
-
const x = event.nativeEvent.clientX;
|
|
1137
|
-
const y = event.nativeEvent.clientY;
|
|
1138
|
-
const element = event.nativeEvent.target;
|
|
1139
|
-
this.contextMenu()?.showAt({ x, y }, element);
|
|
1140
|
-
}
|
|
1141
|
-
handleMonthSlotDblClicked(date) {
|
|
1142
|
-
this.vm.setCurrentDate(date);
|
|
1143
|
-
this.vm.setViewMode('day');
|
|
1144
|
-
}
|
|
1145
|
-
handleViewChange(view, dropdownPanel) {
|
|
1146
|
-
this.router.navigate([], { queryParams: { view } });
|
|
1147
|
-
this.vm.setViewMode(view);
|
|
1148
|
-
this.popover()?.close();
|
|
1149
|
-
dropdownPanel.close();
|
|
1150
|
-
}
|
|
1151
|
-
handleContextMenuItemClick(event) {
|
|
1152
|
-
this.taskBoardService.executeCommand(event.item.data?.command, this.currentTask()?.provider ?? '');
|
|
1153
|
-
}
|
|
1154
|
-
changeDate(forward) {
|
|
1155
|
-
const date = this.calendarService.create(this.vm.currentDate(), this.localeService.activeProfile().calendar.system);
|
|
1156
|
-
switch (this.vm.currentViewMode()) {
|
|
1157
|
-
case 'day':
|
|
1158
|
-
case 'timeline-day':
|
|
1159
|
-
this.vm.setCurrentDate(date.add('day', forward ? 1 : -1).date);
|
|
1160
|
-
break;
|
|
1161
|
-
case 'week':
|
|
1162
|
-
this.vm.setCurrentDate(date.add('week', forward ? 1 : -1).date);
|
|
1163
|
-
break;
|
|
1164
|
-
case 'grid':
|
|
1165
|
-
case 'agenda':
|
|
1166
|
-
case 'kanban':
|
|
1167
|
-
case 'timeline-multi-day':
|
|
1168
|
-
case 'status-grouped-grid':
|
|
1169
|
-
this.vm.setCurrentDate(date.add('day', forward ? this.vm.daysCount() : -this.vm.daysCount()).date);
|
|
1170
|
-
break;
|
|
1171
|
-
case 'month':
|
|
1172
|
-
case 'timeline-month':
|
|
1173
|
-
this.vm.setCurrentDate(date.add('month', forward ? 1 : -1).date);
|
|
1174
|
-
break;
|
|
1175
|
-
case 'timeline-year':
|
|
1176
|
-
this.vm.setCurrentDate(date.add('year', forward ? 1 : -1).date);
|
|
1177
|
-
break;
|
|
1178
|
-
}
|
|
1179
|
-
this.popover()?.close();
|
|
1180
|
-
this.calendar()?.render();
|
|
1181
|
-
}
|
|
1182
|
-
handleCalendarSlotClick(event) {
|
|
1183
|
-
if (event.component.activeView !== event.component.depth)
|
|
1184
|
-
return;
|
|
1185
|
-
const clickedDate = event.item;
|
|
1186
|
-
const currentView = this.vm.currentViewMode();
|
|
1187
|
-
if (this.rangeBasedViews.includes(currentView)) {
|
|
1188
|
-
const selectionStartDate = this.vm.rangeStartDate();
|
|
1189
|
-
if (!selectionStartDate) {
|
|
1190
|
-
this.vm.setRangeStartDate(clickedDate);
|
|
1191
|
-
this.calendar()?.render();
|
|
1192
|
-
return;
|
|
1193
|
-
}
|
|
1194
|
-
const date1 = selectionStartDate.getTime();
|
|
1195
|
-
const date2 = clickedDate.getTime();
|
|
1196
|
-
const newStartDate = new Date(Math.min(date1, date2));
|
|
1197
|
-
const newEndDate = new Date(Math.max(date1, date2));
|
|
1198
|
-
const differenceInDays = this.calculateDifferenceInDays(newStartDate, newEndDate);
|
|
1199
|
-
this.vm.setCurrentDate(newStartDate);
|
|
1200
|
-
this.vm.setDaysCount(differenceInDays);
|
|
1201
|
-
this.vm.setRangeStartDate(null);
|
|
1202
|
-
this.calendar()?.render();
|
|
1203
|
-
this.popover()?.close();
|
|
1204
|
-
return;
|
|
1205
|
-
}
|
|
1206
|
-
let dateToSet = new Date(clickedDate);
|
|
1207
|
-
if (currentView === 'week') {
|
|
1208
|
-
const day = dateToSet.getDay();
|
|
1209
|
-
const weekStart = this.localeService.activeProfile().calendar.week.startsOn;
|
|
1210
|
-
let daysToSubtract = day - weekStart;
|
|
1211
|
-
if (daysToSubtract < 0) {
|
|
1212
|
-
daysToSubtract += 7;
|
|
1213
|
-
}
|
|
1214
|
-
dateToSet.setDate(dateToSet.getDate() - daysToSubtract);
|
|
1215
|
-
}
|
|
1216
|
-
this.vm.setCurrentDate(dateToSet);
|
|
1217
|
-
this.popover()?.close();
|
|
1218
|
-
this.calendar()?.render();
|
|
1219
|
-
}
|
|
1220
|
-
/**
|
|
1221
|
-
* Helper function to calculate the difference in whole days between two dates.
|
|
1222
|
-
* The result is inclusive (e.g., May 5 to May 6 is a 2-day range).
|
|
1223
|
-
*/
|
|
1224
|
-
calculateDifferenceInDays(start, end) {
|
|
1225
|
-
if (!start || !end) {
|
|
1226
|
-
return 1;
|
|
1227
|
-
}
|
|
1228
|
-
const startDate = new Date(start.getFullYear(), start.getMonth(), start.getDate());
|
|
1229
|
-
const endDate = new Date(end.getFullYear(), end.getMonth(), end.getDate());
|
|
1230
|
-
const timeDifference = endDate.getTime() - startDate.getTime();
|
|
1231
|
-
const daysDifference = Math.round(timeDifference / (1000 * 3600 * 24));
|
|
1232
|
-
return daysDifference + 1;
|
|
1233
|
-
}
|
|
1234
|
-
handleTodayClick() {
|
|
1235
|
-
this.vm.setRangeStartDate(null);
|
|
1236
|
-
let currentDate;
|
|
1237
|
-
if (this.vm.currentViewMode() === 'week') {
|
|
1238
|
-
currentDate = this.calendarService
|
|
1239
|
-
.create(new Date(), this.localeService.activeProfile().calendar.system)
|
|
1240
|
-
.startOf('week').date;
|
|
1241
|
-
}
|
|
1242
|
-
else {
|
|
1243
|
-
currentDate = new Date();
|
|
1244
|
-
}
|
|
1245
|
-
this.vm.setCurrentDate(currentDate);
|
|
1246
|
-
this.popover()?.close();
|
|
1247
|
-
this.calendar()?.render();
|
|
1248
|
-
}
|
|
1249
|
-
async loadFromRoute() {
|
|
1250
|
-
const snapshot = this.activatedRoute.snapshot.queryParamMap;
|
|
1251
|
-
const view = snapshot.get('view') ?? null;
|
|
1252
|
-
const allValidViews = this.menuItems().flatMap((c) => (c.children ? c.children.map((child) => child.key) : c.key));
|
|
1253
|
-
if (view && allValidViews.includes(view)) {
|
|
1254
|
-
this.vm.setViewMode(view);
|
|
1255
|
-
}
|
|
1256
|
-
else if (!this.vm.currentViewMode()) {
|
|
1257
|
-
this.vm.setViewMode('day');
|
|
1258
|
-
}
|
|
1259
|
-
const type = snapshot.getAll('type');
|
|
1260
|
-
const assignee = snapshot.getAll('assignee');
|
|
1261
|
-
const reporter = snapshot.getAll('reporter');
|
|
1262
|
-
const priority = snapshot.getAll('priority');
|
|
1263
|
-
if (type.length || assignee.length || priority.length || reporter.length) {
|
|
1264
|
-
this.isQueryParam.set(true);
|
|
1265
|
-
this.vm.setSelectedTaskTypeNames(type, true);
|
|
1266
|
-
this.vm.setSelectedAssigneeIds(assignee, true);
|
|
1267
|
-
this.vm.setSelectedReporterIds(reporter, true);
|
|
1268
|
-
this.vm.setSelectedPriorities(priority, true);
|
|
1269
|
-
}
|
|
1270
|
-
const dateRange = snapshot.get('dateRange');
|
|
1271
|
-
if (dateRange) {
|
|
1272
|
-
const range = this.taskBoardService.rangeCalculator(dateRange);
|
|
1273
|
-
if (range) {
|
|
1274
|
-
this.vm.setCurrentDate(range.from);
|
|
1275
|
-
this.vm.setDaysCount(this.calculateDifferenceInDays(range.from, range.end));
|
|
1276
|
-
switch (dateRange) {
|
|
1277
|
-
case 'today':
|
|
1278
|
-
this.vm.setViewMode('day');
|
|
1279
|
-
break;
|
|
1280
|
-
case 'this-week':
|
|
1281
|
-
this.vm.setViewMode('week');
|
|
1282
|
-
this.vm.setRangeStartDate(range.from);
|
|
1283
|
-
break;
|
|
1284
|
-
case 'this-month':
|
|
1285
|
-
this.vm.setViewMode('month');
|
|
1286
|
-
break;
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
/**
|
|
1292
|
-
* Checks if the currently selected task is still present in the list of visible tasks.
|
|
1293
|
-
* If not, it clears the selection to prevent showing details for a hidden task.
|
|
1294
|
-
* @param visibleTasks The new array of tasks that will be displayed.
|
|
1295
|
-
*/
|
|
1296
|
-
validateSelectedTask(visibleTasks) {
|
|
1297
|
-
const currentSelectedTask = this.vm.selectedTask();
|
|
1298
|
-
// Proceed only if a task is actually selected
|
|
1299
|
-
if (currentSelectedTask) {
|
|
1300
|
-
// Check if any task in the new list has the same ID as the selected one
|
|
1301
|
-
const isSelectedTaskVisible = visibleTasks.some((task) => task.id === currentSelectedTask.id);
|
|
1302
|
-
// If the selected task is NOT in the new list, clear the selection.
|
|
1303
|
-
if (!isSelectedTaskVisible) {
|
|
1304
|
-
this.vm.selectTask(null);
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
async getResources() {
|
|
1309
|
-
if (this.vm.selectedTaskTypeNames().length !== 1) {
|
|
1310
|
-
this.resources.set([]);
|
|
1311
|
-
return;
|
|
1312
|
-
}
|
|
1313
|
-
const resources = await this.taskBoardService.getResources(this.vm.selectedTaskTypeNames()[0] ?? '');
|
|
1314
|
-
this.resources.set(resources);
|
|
1315
|
-
}
|
|
1316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardPage, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1317
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.12", type: AXMTaskBoardPage, isStandalone: true, selector: "ng-component", providers: [
|
|
1318
|
-
{
|
|
1319
|
-
provide: AXPPageLayoutBase,
|
|
1320
|
-
useExisting: AXMTaskBoardPage,
|
|
1321
|
-
},
|
|
1322
|
-
], viewQueries: [{ propertyName: "popover", first: true, predicate: ["popover"], descendants: true, isSignal: true }, { propertyName: "calendar", first: true, predicate: ["calendar"], descendants: true, isSignal: true }, { propertyName: "contextMenu", first: true, predicate: ["rootContextMenu"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n <axp-page-toolbar>\n <axp-layout-prefix class=\"sm:ax-flex-row ax-flex-col ax-items-start\">\n <ax-button [text]=\"(t('task-board.view.' + selectedViewMode().text, { scope: rootConfig.config.i18n}) | async)!\">\n <ax-prefix><ax-icon [icon]=\"selectedViewMode().icon\"></ax-icon></ax-prefix>\n <ax-dropdown-panel #dropdownPanel>\n <ax-menu [orientation]=\"'vertical'\" class=\"ax-menu-container\">\n @for (category of menuItems(); track category.key) {\n <ng-container>\n @if (category.children && category.children.length > 0) {\n <ax-menu-item>\n <ax-prefix>\n <ax-icon [icon]=\"category.icon\"></ax-icon>\n </ax-prefix>\n <ax-text>{{ (t('task-board.' + category.text, { scope: rootConfig.config.i18n}) | async)! }}</ax-text>\n @for (child of category.children; track child.key) {\n <ax-menu-item (onClick)=\"handleViewChange(child.key,dropdownPanel)\">\n <ax-prefix>\n <ax-icon [icon]=\"child.icon\"></ax-icon>\n </ax-prefix>\n <ax-text\n >{{ (t('task-board.view.' + child.text, { scope: rootConfig.config.i18n}) | async)! }}</ax-text\n >\n </ax-menu-item>\n }\n </ax-menu-item>\n } @else {\n <ax-menu-item (onClick)=\"handleViewChange(category.key,dropdownPanel)\">\n <ax-prefix>\n <ax-icon [icon]=\"category.icon\"></ax-icon>\n </ax-prefix>\n <ax-text>{{ (t('task-board.' + category.text, { scope: rootConfig.config.i18n}) | async)! }}</ax-text>\n </ax-menu-item>\n }\n </ng-container>\n }\n </ax-menu>\n </ax-dropdown-panel>\n <ax-suffix>\n <ax-icon icon=\"fa-light fa-caret-down\"></ax-icon>\n </ax-suffix>\n </ax-button>\n\n <div class=\"ax-scheduler-header ax-w-max ax-sm sm:ax-md\">\n <ax-button look=\"blank\" (onClick)=\"changeDate(false)\">\n <ax-icon class=\"ax-icon ax-text-xl ax-icon-chevron-left arrow-icon\"></ax-icon>\n </ax-button>\n <ax-button look=\"blank\" [text]=\"timeText()\" #date></ax-button>\n <ax-button look=\"blank\" (onClick)=\"changeDate(true)\">\n <ax-icon class=\"ax-icon ax-text-xl ax-icon-chevron-right arrow-icon\"></ax-icon>\n </ax-button>\n <ax-popover [target]=\"date\" [placement]=\"'bottom'\" #popover [adaptivityEnabled]=\"true\">\n <div class=\"ax-overlay-pane\">\n <ax-calendar\n #calendar\n [type]=\"calendarType()\"\n [depth]=\"calendarDepth()\"\n [cellClass]=\"getCellClass\"\n [ngModel]=\"vm.currentDate()\"\n class=\"ax-single-range-calendar\"\n (onSlotClick)=\"handleCalendarSlotClick($event)\"\n >\n <ax-footer>\n <ax-button\n look=\"link\"\n color=\"primary\"\n [text]=\"todayButtonText()\"\n (onClick)=\"handleTodayClick()\"\n ></ax-button>\n </ax-footer>\n </ax-calendar>\n </div>\n </ax-popover>\n </div>\n </axp-layout-prefix>\n\n <axp-layout-suffix>\n <ax-button [text]=\"t('task-board.filter.title', { scope: rootConfig.config.i18n }) | async\">\n <ax-prefix><ax-icon icon=\"fa-{{vm.activeFilterCount()?'solid':'light'}} fa-filter\"></ax-icon></ax-prefix>\n <ax-dropdown-panel #filterDropdownPanel (onOpened)=\"filtersComponent.resetContextToViewModel()\">\n <axm-task-board-filters\n #filtersComponent\n [isQueryParam]=\"isQueryParam()\"\n (applyClicked)=\"filterDropdownPanel.close()\"\n ></axm-task-board-filters>\n </ax-dropdown-panel>\n </ax-button>\n\n @if(deviceService.isLarge()) {\n <ax-button (onClick)=\"vm.toggleDetailPanel()\">\n <ax-icon icon=\"{{ vm.isDetailPanelOpen() ? 'fa-solid fa-square-info' : 'fa-light fa-square-info' }}\"></ax-icon>\n </ax-button>\n }\n </axp-layout-suffix>\n </axp-page-toolbar>\n <axp-page-content class=\"ax-flex ax-flex-row ax-gap-2\">\n @if (isReady()) { @switch(vm.currentViewMode()) { @case('kanban') {\n <axm-task-board-kanban-view\n class=\"axp-kanban-container ax-h-full ax-w-full ax-min-w-0\"\n [tasks]=\"resolvedTasks()\"\n (onTaskClick)=\"vm.selectTask($event)\"\n (onActionClick)=\"handleContextMenu($event)\"\n ></axm-task-board-kanban-view>\n } @case('grid') {\n <axm-task-board-grid-view\n class=\"ax-h-full ax-w-full ax-min-w-0\"\n [dataSource]=\"gridDataSource\"\n (onTaskClick)=\"vm.selectTask($event)\"\n (onActionClick)=\"handleContextMenu($event)\"\n ></axm-task-board-grid-view>\n } @case('status-grouped-grid') {\n <axm-task-board-status-grouped-grid-view\n class=\"ax-flex ax-flex-col ax-gap-2 ax-w-full ax-min-w-0\"\n [dataSource]=\"gridDataSource\"\n (onActionClick)=\"handleContextMenu($event)\"\n ></axm-task-board-status-grouped-grid-view>\n } @default {\n <axm-task-board-calendar-view\n class=\"axp-scheduler-container ax-h-full ax-w-full ax-min-w-0\"\n [resources]=\"resources()\"\n [startingDate]=\"vm.currentDate()\"\n [dataSource]=\"schedulerDataSource\"\n (onTaskClick)=\"vm.selectTask($event)\"\n [selectedView]=\"vm.currentViewMode()\"\n (onActionClick)=\"handleContextMenu($event)\"\n (onTaskRightClick)=\"handleContextMenu($event)\"\n (component)=\"schedulerComponentChanged($event)\"\n (onMonthSlotDblClicked)=\"handleMonthSlotDblClicked($event)\"\n ></axm-task-board-calendar-view>\n } }\n <ax-context-menu\n #rootContextMenu\n [closeOn]=\"'leave'\"\n [orientation]=\"'vertical'\"\n (onOpening)=\"handleContextMenuOnOpening($event)\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n >\n </ax-context-menu>\n @if (vm.isDetailPanelOpen() && deviceService.isLarge()) {\n <axm-task-board-detail-panel></axm-task-board-detail-panel>\n } } @else {\n <div class=\"ax-flex ax-items-center ax-justify-center ax-w-full ax-h-full\">\n <ax-loading></ax-loading>\n </div>\n }\n </axp-page-content>\n</axp-page-layout>\n", styles: ["html[dir=rtl] axp-page-layout axp-page-toolbar axp-layout-prefix .ax-scheduler-header .arrow-icon:before{-moz-transform:scale(-1,1);-webkit-transform:scale(-1,1);-o-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scaleX(-1)}.ax-single-range-calendar .ax-range-start,.ax-single-range-calendar .ax-range-end{color:rgba(var(--ax-sys-color-on-primary-surface))!important;background-color:rgba(var(--ax-sys-color-primary-surface),.85)!important}.ax-single-range-calendar .ax-range-start:hover,.ax-single-range-calendar .ax-range-end:hover{background-color:rgba(var(--ax-sys-color-primary-surface))!important}.ax-single-range-calendar .ax-range-start.ax-state-holiday,.ax-single-range-calendar .ax-range-end.ax-state-holiday{background-color:rgba(var(--ax-sys-color-danger-surface),.85)!important}.ax-single-range-calendar .ax-range-between{color:rgba(var(--ax-sys-color-on-primary-surface))!important;background-color:rgba(var(--ax-sys-color-primary-surface),.65)}.ax-single-range-calendar .ax-range-between.ax-state-holiday{background-color:rgba(var(--ax-sys-color-danger-surface),.65)}.ax-single-range-calendar ax-footer{display:flex;justify-content:center;border-color:rgba(var(--ax-comp-calendar-view-header-border-color));border-top-width:var(--ax-comp-calendar-view-header-border-width, 1px)}axp-page-content:not(:has(axm-task-board-status-grouped-grid-view,axm-task-board-time-grouped-grid-view)){overflow-y:hidden}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type:
|
|
1323
|
-
//
|
|
1324
|
-
AXMenuModule }, { kind: "component", type: i2.AXMenuItemComponent, selector: "ax-menu-item", inputs: ["name", "data", "disabled", "color"], outputs: ["onClick"] }, { kind: "component", type: i2.AXMenuComponent, selector: "ax-menu", inputs: ["orientation", "openOn", "closeOn", "items", "hasArrow"], outputs: ["onItemClick"] }, { kind: "component", type: i2.AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: AXDropdownButtonModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i2$1.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.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: AXLoadingModule }, { kind: "component", type: i6.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type:
|
|
1325
|
-
//
|
|
1326
|
-
AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "component", type: AXMTaskBoardCalendarViewComponent, selector: "axm-task-board-calendar-view", inputs: ["resources", "startingDate", "selectedView", "dataSource"], outputs: ["onTaskClick", "onTaskChanged", "onMonthSlotDblClicked", "onActionClick", "component", "onTaskRightClick", "onRangeChanged"] }, { kind: "component", type: AXMTaskBoardKanbanViewComponent, selector: "axm-task-board-kanban-view", inputs: ["tasks"], outputs: ["tasksChange", "onTaskClick", "onTaskChanged", "component", "onActionClick"] }, { kind: "component", type: AXMTaskBoardGridViewComponent, selector: "axm-task-board-grid-view", inputs: ["dataSource"], outputs: ["onTaskClick", "onActionClick"] }, { kind: "component", type: AXMTaskBoardStatusGroupedGridViewComponent, selector: "axm-task-board-status-grouped-grid-view", inputs: ["provider", "dataSource"], outputs: ["onActionClick"] }, { kind: "component", type: AXMTaskBoardDetailPanel, selector: "axm-task-board-detail-panel" }, { kind: "component", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i7.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: AXCalendarComponent, selector: "ax-calendar", inputs: ["rtl", "readonly", "value", "name", "disabled", "depth", "activeView", "minValue", "maxValue", "disabledDates", "holidayDates", "type", "dayCellTemplate", "monthCellTemplate", "yearCellTemplate", "cellClass", "showNavigation", "count", "id", "weekend", "weekdays"], outputs: ["onOptionChanged", "valueChange", "onValueChanged", "minValueChange", "maxValueChange", "onBlur", "onFocus", "depthChange", "typeChange", "activeViewChange", "disabledDatesChange", "holidayDatesChange", "onNavigate", "onSlotClick", "countChange"] }, { kind: "component", type: AXMTaskBoardFiltersComponent, selector: "axm-task-board-filters", inputs: ["isQueryParam"], outputs: ["applyClicked"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1327
|
-
}
|
|
1328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMTaskBoardPage, decorators: [{
|
|
1329
|
-
type: Component,
|
|
1330
|
-
args: [{ imports: [
|
|
1331
|
-
FormsModule,
|
|
1332
|
-
CommonModule,
|
|
1333
|
-
RouterModule,
|
|
1334
|
-
//
|
|
1335
|
-
AXMenuModule,
|
|
1336
|
-
AXButtonModule,
|
|
1337
|
-
AXDropdownButtonModule,
|
|
1338
|
-
AXTranslationModule,
|
|
1339
|
-
AXDecoratorModule,
|
|
1340
|
-
AXLoadingModule,
|
|
1341
|
-
AXBreadcrumbsModule,
|
|
1342
|
-
AXBadgeModule,
|
|
1343
|
-
//
|
|
1344
|
-
AXPThemeLayoutBlockComponent,
|
|
1345
|
-
AXPPageLayoutComponent,
|
|
1346
|
-
AXMTaskBoardCalendarViewComponent,
|
|
1347
|
-
AXMTaskBoardKanbanViewComponent,
|
|
1348
|
-
AXMTaskBoardGridViewComponent,
|
|
1349
|
-
AXMTaskBoardStatusGroupedGridViewComponent,
|
|
1350
|
-
AXMTaskBoardDetailPanel,
|
|
1351
|
-
AXDropdownPanelComponent,
|
|
1352
|
-
AXPopoverModule,
|
|
1353
|
-
AXCalendarComponent,
|
|
1354
|
-
AXMTaskBoardFiltersComponent,
|
|
1355
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
1356
|
-
{
|
|
1357
|
-
provide: AXPPageLayoutBase,
|
|
1358
|
-
useExisting: AXMTaskBoardPage,
|
|
1359
|
-
},
|
|
1360
|
-
], template: "<axp-page-layout *translate=\"let t\">\n <axp-page-toolbar>\n <axp-layout-prefix class=\"sm:ax-flex-row ax-flex-col ax-items-start\">\n <ax-button [text]=\"(t('task-board.view.' + selectedViewMode().text, { scope: rootConfig.config.i18n}) | async)!\">\n <ax-prefix><ax-icon [icon]=\"selectedViewMode().icon\"></ax-icon></ax-prefix>\n <ax-dropdown-panel #dropdownPanel>\n <ax-menu [orientation]=\"'vertical'\" class=\"ax-menu-container\">\n @for (category of menuItems(); track category.key) {\n <ng-container>\n @if (category.children && category.children.length > 0) {\n <ax-menu-item>\n <ax-prefix>\n <ax-icon [icon]=\"category.icon\"></ax-icon>\n </ax-prefix>\n <ax-text>{{ (t('task-board.' + category.text, { scope: rootConfig.config.i18n}) | async)! }}</ax-text>\n @for (child of category.children; track child.key) {\n <ax-menu-item (onClick)=\"handleViewChange(child.key,dropdownPanel)\">\n <ax-prefix>\n <ax-icon [icon]=\"child.icon\"></ax-icon>\n </ax-prefix>\n <ax-text\n >{{ (t('task-board.view.' + child.text, { scope: rootConfig.config.i18n}) | async)! }}</ax-text\n >\n </ax-menu-item>\n }\n </ax-menu-item>\n } @else {\n <ax-menu-item (onClick)=\"handleViewChange(category.key,dropdownPanel)\">\n <ax-prefix>\n <ax-icon [icon]=\"category.icon\"></ax-icon>\n </ax-prefix>\n <ax-text>{{ (t('task-board.' + category.text, { scope: rootConfig.config.i18n}) | async)! }}</ax-text>\n </ax-menu-item>\n }\n </ng-container>\n }\n </ax-menu>\n </ax-dropdown-panel>\n <ax-suffix>\n <ax-icon icon=\"fa-light fa-caret-down\"></ax-icon>\n </ax-suffix>\n </ax-button>\n\n <div class=\"ax-scheduler-header ax-w-max ax-sm sm:ax-md\">\n <ax-button look=\"blank\" (onClick)=\"changeDate(false)\">\n <ax-icon class=\"ax-icon ax-text-xl ax-icon-chevron-left arrow-icon\"></ax-icon>\n </ax-button>\n <ax-button look=\"blank\" [text]=\"timeText()\" #date></ax-button>\n <ax-button look=\"blank\" (onClick)=\"changeDate(true)\">\n <ax-icon class=\"ax-icon ax-text-xl ax-icon-chevron-right arrow-icon\"></ax-icon>\n </ax-button>\n <ax-popover [target]=\"date\" [placement]=\"'bottom'\" #popover [adaptivityEnabled]=\"true\">\n <div class=\"ax-overlay-pane\">\n <ax-calendar\n #calendar\n [type]=\"calendarType()\"\n [depth]=\"calendarDepth()\"\n [cellClass]=\"getCellClass\"\n [ngModel]=\"vm.currentDate()\"\n class=\"ax-single-range-calendar\"\n (onSlotClick)=\"handleCalendarSlotClick($event)\"\n >\n <ax-footer>\n <ax-button\n look=\"link\"\n color=\"primary\"\n [text]=\"todayButtonText()\"\n (onClick)=\"handleTodayClick()\"\n ></ax-button>\n </ax-footer>\n </ax-calendar>\n </div>\n </ax-popover>\n </div>\n </axp-layout-prefix>\n\n <axp-layout-suffix>\n <ax-button [text]=\"t('task-board.filter.title', { scope: rootConfig.config.i18n }) | async\">\n <ax-prefix><ax-icon icon=\"fa-{{vm.activeFilterCount()?'solid':'light'}} fa-filter\"></ax-icon></ax-prefix>\n <ax-dropdown-panel #filterDropdownPanel (onOpened)=\"filtersComponent.resetContextToViewModel()\">\n <axm-task-board-filters\n #filtersComponent\n [isQueryParam]=\"isQueryParam()\"\n (applyClicked)=\"filterDropdownPanel.close()\"\n ></axm-task-board-filters>\n </ax-dropdown-panel>\n </ax-button>\n\n @if(deviceService.isLarge()) {\n <ax-button (onClick)=\"vm.toggleDetailPanel()\">\n <ax-icon icon=\"{{ vm.isDetailPanelOpen() ? 'fa-solid fa-square-info' : 'fa-light fa-square-info' }}\"></ax-icon>\n </ax-button>\n }\n </axp-layout-suffix>\n </axp-page-toolbar>\n <axp-page-content class=\"ax-flex ax-flex-row ax-gap-2\">\n @if (isReady()) { @switch(vm.currentViewMode()) { @case('kanban') {\n <axm-task-board-kanban-view\n class=\"axp-kanban-container ax-h-full ax-w-full ax-min-w-0\"\n [tasks]=\"resolvedTasks()\"\n (onTaskClick)=\"vm.selectTask($event)\"\n (onActionClick)=\"handleContextMenu($event)\"\n ></axm-task-board-kanban-view>\n } @case('grid') {\n <axm-task-board-grid-view\n class=\"ax-h-full ax-w-full ax-min-w-0\"\n [dataSource]=\"gridDataSource\"\n (onTaskClick)=\"vm.selectTask($event)\"\n (onActionClick)=\"handleContextMenu($event)\"\n ></axm-task-board-grid-view>\n } @case('status-grouped-grid') {\n <axm-task-board-status-grouped-grid-view\n class=\"ax-flex ax-flex-col ax-gap-2 ax-w-full ax-min-w-0\"\n [dataSource]=\"gridDataSource\"\n (onActionClick)=\"handleContextMenu($event)\"\n ></axm-task-board-status-grouped-grid-view>\n } @default {\n <axm-task-board-calendar-view\n class=\"axp-scheduler-container ax-h-full ax-w-full ax-min-w-0\"\n [resources]=\"resources()\"\n [startingDate]=\"vm.currentDate()\"\n [dataSource]=\"schedulerDataSource\"\n (onTaskClick)=\"vm.selectTask($event)\"\n [selectedView]=\"vm.currentViewMode()\"\n (onActionClick)=\"handleContextMenu($event)\"\n (onTaskRightClick)=\"handleContextMenu($event)\"\n (component)=\"schedulerComponentChanged($event)\"\n (onMonthSlotDblClicked)=\"handleMonthSlotDblClicked($event)\"\n ></axm-task-board-calendar-view>\n } }\n <ax-context-menu\n #rootContextMenu\n [closeOn]=\"'leave'\"\n [orientation]=\"'vertical'\"\n (onOpening)=\"handleContextMenuOnOpening($event)\"\n (onItemClick)=\"handleContextMenuItemClick($event)\"\n >\n </ax-context-menu>\n @if (vm.isDetailPanelOpen() && deviceService.isLarge()) {\n <axm-task-board-detail-panel></axm-task-board-detail-panel>\n } } @else {\n <div class=\"ax-flex ax-items-center ax-justify-center ax-w-full ax-h-full\">\n <ax-loading></ax-loading>\n </div>\n }\n </axp-page-content>\n</axp-page-layout>\n", styles: ["html[dir=rtl] axp-page-layout axp-page-toolbar axp-layout-prefix .ax-scheduler-header .arrow-icon:before{-moz-transform:scale(-1,1);-webkit-transform:scale(-1,1);-o-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scaleX(-1)}.ax-single-range-calendar .ax-range-start,.ax-single-range-calendar .ax-range-end{color:rgba(var(--ax-sys-color-on-primary-surface))!important;background-color:rgba(var(--ax-sys-color-primary-surface),.85)!important}.ax-single-range-calendar .ax-range-start:hover,.ax-single-range-calendar .ax-range-end:hover{background-color:rgba(var(--ax-sys-color-primary-surface))!important}.ax-single-range-calendar .ax-range-start.ax-state-holiday,.ax-single-range-calendar .ax-range-end.ax-state-holiday{background-color:rgba(var(--ax-sys-color-danger-surface),.85)!important}.ax-single-range-calendar .ax-range-between{color:rgba(var(--ax-sys-color-on-primary-surface))!important;background-color:rgba(var(--ax-sys-color-primary-surface),.65)}.ax-single-range-calendar .ax-range-between.ax-state-holiday{background-color:rgba(var(--ax-sys-color-danger-surface),.65)}.ax-single-range-calendar ax-footer{display:flex;justify-content:center;border-color:rgba(var(--ax-comp-calendar-view-header-border-color));border-top-width:var(--ax-comp-calendar-view-header-border-width, 1px)}axp-page-content:not(:has(axm-task-board-status-grouped-grid-view,axm-task-board-time-grouped-grid-view)){overflow-y:hidden}\n"] }]
|
|
1361
|
-
}], propDecorators: { popover: [{ type: i0.ViewChild, args: ['popover', { isSignal: true }] }], calendar: [{ type: i0.ViewChild, args: ['calendar', { isSignal: true }] }], contextMenu: [{ type: i0.ViewChild, args: ['rootContextMenu', { isSignal: true }] }] } });
|
|
1362
|
-
|
|
1363
|
-
export { AXMTaskBoardPage };
|
|
1364
|
-
//# sourceMappingURL=acorex-modules-task-management-task-board.page-CKgZoOGI.mjs.map
|