@acorex/modules 21.0.0-next.51 → 21.0.0-next.53
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/ai-management/README.md +1 -0
- package/fesm2022/{acorex-modules-ai-management-assist.entity-513RdKsz.mjs → acorex-modules-ai-management-assist.entity-CnyoIO-Z.mjs} +24 -16
- package/fesm2022/acorex-modules-ai-management-assist.entity-CnyoIO-Z.mjs.map +1 -0
- package/fesm2022/acorex-modules-ai-management.mjs +374 -35
- package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-BD5oxehv.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-DcPnI9fZ.mjs} +69 -505
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-DcPnI9fZ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-BWj2PB39.mjs → acorex-modules-assessment-management-assessment-case.entity-D880d_qz.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-BWj2PB39.mjs.map → acorex-modules-assessment-management-assessment-case.entity-D880d_qz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-BQnYnNOz.mjs → acorex-modules-assessment-management-assessment-session.entity-DvbocIN1.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-BQnYnNOz.mjs.map → acorex-modules-assessment-management-assessment-session.entity-DvbocIN1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-BiS7QO_E.mjs → acorex-modules-assessment-management-fill-assessment-session.command-BMJ54EPO.mjs} +59 -85
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-BMJ54EPO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-index-BXw0Lf5c.mjs → acorex-modules-assessment-management-index-XdJCIYG3.mjs} +4 -4
- package/fesm2022/{acorex-modules-assessment-management-index-BXw0Lf5c.mjs.map → acorex-modules-assessment-management-index-XdJCIYG3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-Bm1v6ngB.mjs → acorex-modules-assessment-management-preview-question.command-CO8NfjEb.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-preview-question.command-Bm1v6ngB.mjs.map → acorex-modules-assessment-management-preview-question.command-CO8NfjEb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-Dja4PbGz.mjs → acorex-modules-assessment-management-preview-questionnaire.command-DSzbtU0e.mjs} +8 -8
- package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-Dja4PbGz.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-DSzbtU0e.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BbkWs23A.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DbvxAUgb.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BbkWs23A.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DbvxAUgb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-X8s42nZH.mjs → acorex-modules-assessment-management-question-bank-item.entity-DBfQhSKR.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-X8s42nZH.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-DBfQhSKR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-d8HUAvWp.mjs → acorex-modules-assessment-management-questionnaire-calculation.entity-CL9s20qR.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-d8HUAvWp.mjs.map → acorex-modules-assessment-management-questionnaire-calculation.entity-CL9s20qR.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-YUDOSypz.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-CH_cJlSf.mjs} +205 -11
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-CH_cJlSf.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-q3Z4VIiA.mjs → acorex-modules-assessment-management-questionnaire.entity-CrryBMC2.mjs} +40 -3
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-CrryBMC2.mjs.map +1 -0
- package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-4OLYEn35.mjs → acorex-modules-assessment-management-save-questionnaire-questions.command-Dq5VComh.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-4OLYEn35.mjs.map → acorex-modules-assessment-management-save-questionnaire-questions.command-Dq5VComh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-DWEd-ZM_.mjs → acorex-modules-assessment-management-view-session-answers.command-DpppXekm.mjs} +2 -2
- package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-DWEd-ZM_.mjs.map → acorex-modules-assessment-management-view-session-answers.command-DpppXekm.mjs.map} +1 -1
- package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
- package/fesm2022/{acorex-modules-asset-management-acorex-modules-asset-management-B1mg2dIR.mjs → acorex-modules-asset-management-acorex-modules-asset-management-BtcY1UQy.mjs} +8 -8
- package/fesm2022/{acorex-modules-asset-management-acorex-modules-asset-management-B1mg2dIR.mjs.map → acorex-modules-asset-management-acorex-modules-asset-management-BtcY1UQy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-system-assignment.entity-lL1FBlzA.mjs → acorex-modules-asset-management-asset-system-assignment.entity-pKZoxsjk.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-system-assignment.entity-lL1FBlzA.mjs.map → acorex-modules-asset-management-asset-system-assignment.entity-pKZoxsjk.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-DFHVqE7a.mjs → acorex-modules-asset-management-asset-system-type.entity-CXz2G5v1.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-DFHVqE7a.mjs.map → acorex-modules-asset-management-asset-system-type.entity-CXz2G5v1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-system.entity-DlpOp7Xj.mjs → acorex-modules-asset-management-asset-system.entity-C3zf6WVD.mjs} +13 -14
- package/fesm2022/acorex-modules-asset-management-asset-system.entity-C3zf6WVD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-CIkXc51V.mjs → acorex-modules-asset-management-asset-type-section-component.entity-DTaeNNBW.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-CIkXc51V.mjs.map → acorex-modules-asset-management-asset-type-section-component.entity-DTaeNNBW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-Ctxh5hGa.mjs → acorex-modules-asset-management-asset-type-section.entity-Bes5h7aJ.mjs} +2 -2
- package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-Ctxh5hGa.mjs.map → acorex-modules-asset-management-asset-type-section.entity-Bes5h7aJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-asset-management-asset-type.entity-CN6K0Uw3.mjs → acorex-modules-asset-management-asset-type.entity-Ch8h0sph.mjs} +21 -22
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-Ch8h0sph.mjs.map +1 -0
- package/fesm2022/{acorex-modules-asset-management-asset.entity-2XZut6JS.mjs → acorex-modules-asset-management-asset.entity-DJ-A6lx1.mjs} +26 -26
- package/fesm2022/acorex-modules-asset-management-asset.entity-DJ-A6lx1.mjs.map +1 -0
- package/fesm2022/acorex-modules-asset-management.mjs +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CGiDe3e-.mjs → acorex-modules-auth-acorex-modules-auth-NPUjHz-F.mjs} +13 -13
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-CGiDe3e-.mjs.map → acorex-modules-auth-acorex-modules-auth-NPUjHz-F.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-app-chooser.component-Dt_2eXel.mjs → acorex-modules-auth-app-chooser.component-h61xNtRT.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-Dt_2eXel.mjs.map → acorex-modules-auth-app-chooser.component-h61xNtRT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-Bl8pAhHc.mjs → acorex-modules-auth-login.module-DF5AHqYe.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-Bl8pAhHc.mjs.map → acorex-modules-auth-login.module-DF5AHqYe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-B8GSev0J.mjs → acorex-modules-auth-master.layout-00ZTMhc3.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-B8GSev0J.mjs.map → acorex-modules-auth-master.layout-00ZTMhc3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-DleQ24IP.mjs → acorex-modules-auth-oauth-callback.component-Ce5Fw8Qd.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-DleQ24IP.mjs.map → acorex-modules-auth-oauth-callback.component-Ce5Fw8Qd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-D6ALMoO4.mjs → acorex-modules-auth-password.component-CU0AY-Ia.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-D6ALMoO4.mjs.map → acorex-modules-auth-password.component-CU0AY-Ia.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-C1GbARlM.mjs → acorex-modules-auth-password.component-DQYCm8wg.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-C1GbARlM.mjs.map → acorex-modules-auth-password.component-DQYCm8wg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-FDp1SEZA.mjs → acorex-modules-auth-routes-CM4fRaWb.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-FDp1SEZA.mjs.map → acorex-modules-auth-routes-CM4fRaWb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-settings.provider-CN7Lb38l.mjs → acorex-modules-auth-settings.provider-C_3D-9ia.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-settings.provider-C_3D-9ia.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-o55sauLG.mjs → acorex-modules-auth-tenant-chooser.component-BBztdcvq.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-o55sauLG.mjs.map → acorex-modules-auth-tenant-chooser.component-BBztdcvq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-CVrYPw5D.mjs → acorex-modules-auth-two-factor.module-C9AafF86.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-CVrYPw5D.mjs.map → acorex-modules-auth-two-factor.module-C9AafF86.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-BVglZAnc.mjs → acorex-modules-auth-user-sessions.component-Qw2sgsEe.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-user-sessions.component-BVglZAnc.mjs.map → acorex-modules-auth-user-sessions.component-Qw2sgsEe.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +8 -5
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-ny5TQlkp.mjs → acorex-modules-conversation-acorex-modules-conversation-Bnjyq-wp.mjs} +1010 -164
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-Bnjyq-wp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-7O6som8z.mjs → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-Df5LmYZI.mjs} +7 -6
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-Df5LmYZI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-comments-page.component-Dm7U0ndQ.mjs → acorex-modules-conversation-comments-page.component-BXI4smIr.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-comments-page.component-Dm7U0ndQ.mjs.map → acorex-modules-conversation-comments-page.component-BXI4smIr.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation-send-assist-chat-message.command-B5qJnpCK.mjs +90 -0
- package/fesm2022/acorex-modules-conversation-send-assist-chat-message.command-B5qJnpCK.mjs.map +1 -0
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-BLYoudtN.mjs → acorex-modules-conversation-start-assist-chat.command-DI3LAaDF.mjs} +2 -2
- package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-BLYoudtN.mjs.map → acorex-modules-conversation-start-assist-chat.command-DI3LAaDF.mjs.map} +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +5 -3
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BxQxZBca.mjs → acorex-modules-document-management-drive-choose.component-DyJoXajP.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BxQxZBca.mjs.map → acorex-modules-document-management-drive-choose.component-DyJoXajP.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +98 -24
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +53 -61
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-B37ZqEql.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-XhV2JQXs.mjs} +23 -21
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-XhV2JQXs.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bf8iPUE-.mjs → acorex-modules-human-capital-management-approve-leave-request.command-Cre30Kp7.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bf8iPUE-.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-Cre30Kp7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-DqX9OAq4.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-NYgddiaD.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-DqX9OAq4.mjs.map → acorex-modules-human-capital-management-assign-position-assignment.command-NYgddiaD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-DQG0Al0X.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-DPh-KQgN.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-DQG0Al0X.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-DPh-KQgN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee-lifecycle-process.entity-DSsgKG8S.mjs → acorex-modules-human-capital-management-employee-lifecycle-process.entity-LX68KORg.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee-lifecycle-process.entity-DSsgKG8S.mjs.map → acorex-modules-human-capital-management-employee-lifecycle-process.entity-LX68KORg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-C8PaZEDs.mjs → acorex-modules-human-capital-management-employee.entity-znCbbQUd.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employee.entity-C8PaZEDs.mjs.map → acorex-modules-human-capital-management-employee.entity-znCbbQUd.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DhqHdESk.mjs → acorex-modules-human-capital-management-employment-type.entity-DUNB3zAB.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DhqHdESk.mjs.map → acorex-modules-human-capital-management-employment-type.entity-DUNB3zAB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-CPdV6kiR.mjs → acorex-modules-human-capital-management-leave-request.entity-JyFrrCGE.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-CPdV6kiR.mjs.map → acorex-modules-human-capital-management-leave-request.entity-JyFrrCGE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D3iarVMG.mjs → acorex-modules-human-capital-management-leave-type.entity-B61MiEPu.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D3iarVMG.mjs.map → acorex-modules-human-capital-management-leave-type.entity-B61MiEPu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-lifecycle-process-type.entity-EazvPSR6.mjs → acorex-modules-human-capital-management-lifecycle-process-type.entity-DJqo2kTG.mjs} +9 -11
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-process-type.entity-DJqo2kTG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-mROyAoz-.mjs → acorex-modules-human-capital-management-position-assignment.entity-CKCC6bKg.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-mROyAoz-.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-CKCC6bKg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-Bq7OtST6.mjs → acorex-modules-human-capital-management-reject-leave-request.command-Blv08UQZ.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-Bq7OtST6.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-Blv08UQZ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BpklMLve.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-lgEAbxYH.mjs} +2 -2
- package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BpklMLve.mjs.map → acorex-modules-human-capital-management-revoke-position-assignment.command-lgEAbxYH.mjs.map} +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
- package/fesm2022/acorex-modules-locale-management.mjs +1 -1
- package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-acorex-modules-maintenance-management-coPYjl8-.mjs → acorex-modules-maintenance-management-acorex-modules-maintenance-management-DiM2aFgg.mjs} +304 -206
- package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-DiM2aFgg.mjs.map +1 -0
- package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-BdnnavfB.mjs → acorex-modules-maintenance-management-failure-effect.entity-BCMeHmxS.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-BdnnavfB.mjs.map → acorex-modules-maintenance-management-failure-effect.entity-BCMeHmxS.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-asset-type.entity-tlcqWco6.mjs → acorex-modules-maintenance-management-failure-mode-asset-type.entity-ByBoVQ8D.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-asset-type.entity-tlcqWco6.mjs.map → acorex-modules-maintenance-management-failure-mode-asset-type.entity-ByBoVQ8D.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-DivWl32L.mjs → acorex-modules-maintenance-management-failure-mode-mechanism.entity-BJs4KhkU.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-DivWl32L.mjs.map → acorex-modules-maintenance-management-failure-mode-mechanism.entity-BJs4KhkU.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-9FiLeySZ.mjs → acorex-modules-maintenance-management-failure-mode-solution.entity-rw24sQxb.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-9FiLeySZ.mjs.map → acorex-modules-maintenance-management-failure-mode-solution.entity-rw24sQxb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-cause.entity-3cq1KeYM.mjs → acorex-modules-maintenance-management-failure-register-cause.entity-C_6sjW8z.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-cause.entity-3cq1KeYM.mjs.map → acorex-modules-maintenance-management-failure-register-cause.entity-C_6sjW8z.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-CaVb6rDn.mjs → acorex-modules-maintenance-management-failure-register-effect.entity-DCIAzSYQ.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-CaVb6rDn.mjs.map → acorex-modules-maintenance-management-failure-register-effect.entity-DCIAzSYQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-C2UKW63M.mjs → acorex-modules-maintenance-management-failure-register-mechanism.entity-DlXr6A4i.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-C2UKW63M.mjs.map → acorex-modules-maintenance-management-failure-register-mechanism.entity-DlXr6A4i.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-register.entity-KghFLCIJ.mjs → acorex-modules-maintenance-management-failure-register.entity-C4J3um7j.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-register.entity-KghFLCIJ.mjs.map → acorex-modules-maintenance-management-failure-register.entity-C4J3um7j.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BebswR7S.mjs → acorex-modules-maintenance-management-failure-severity.entity-C-spQtYx.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BebswR7S.mjs.map → acorex-modules-maintenance-management-failure-severity.entity-C-spQtYx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-maintenance-management-maintenance-template.entity-1V4swUZ4.mjs → acorex-modules-maintenance-management-maintenance-template.entity-Huahnjhd.mjs} +100 -178
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-Huahnjhd.mjs.map +1 -0
- package/fesm2022/{acorex-modules-maintenance-management-work-order-list-command-3hlrAtIr.mjs → acorex-modules-maintenance-management-work-order-list-command-1YsWctqu.mjs} +2 -2
- package/fesm2022/{acorex-modules-maintenance-management-work-order-list-command-3hlrAtIr.mjs.map → acorex-modules-maintenance-management-work-order-list-command-1YsWctqu.mjs.map} +1 -1
- package/fesm2022/acorex-modules-maintenance-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-order-management-settings.provider-BFOghuIS.mjs +58 -0
- package/fesm2022/acorex-modules-order-management-settings.provider-BFOghuIS.mjs.map +1 -0
- package/fesm2022/acorex-modules-order-management.mjs +2 -2
- package/fesm2022/{acorex-modules-organization-management-acorex-modules-organization-management-CGzZcKEy.mjs → acorex-modules-organization-management-acorex-modules-organization-management-BZtWfgmH.mjs} +40 -120
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-BZtWfgmH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-BEJyfR3P.mjs → acorex-modules-organization-management-add-business-unit-to-business-unit.command-C-yO5On4.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-BEJyfR3P.mjs.map → acorex-modules-organization-management-add-business-unit-to-business-unit.command-C-yO5On4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-DKgxg9q5.mjs → acorex-modules-organization-management-add-position-to-business-unit.command-BL5eWJ56.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-DKgxg9q5.mjs.map → acorex-modules-organization-management-add-position-to-business-unit.command-BL5eWJ56.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-add-team-to-business-unit.command-DJJT7BXT.mjs → acorex-modules-organization-management-add-team-to-business-unit.command-l4N6g0Hc.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-add-team-to-business-unit.command-DJJT7BXT.mjs.map → acorex-modules-organization-management-add-team-to-business-unit.command-l4N6g0Hc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-business-unit.entity-BAp38sib.mjs → acorex-modules-organization-management-business-unit.entity-CONTwX52.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-business-unit.entity-BAp38sib.mjs.map → acorex-modules-organization-management-business-unit.entity-CONTwX52.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-chart.entity-WfmpWj8R.mjs → acorex-modules-organization-management-chart.entity-DeKPBfgx.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-chart.entity-WfmpWj8R.mjs.map → acorex-modules-organization-management-chart.entity-DeKPBfgx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-company.entity-BUVLrwjq.mjs → acorex-modules-organization-management-company.entity-BAlz8AfD.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-company.entity-BUVLrwjq.mjs.map → acorex-modules-organization-management-company.entity-BAlz8AfD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-entity.provider-DH3eUGTu.mjs → acorex-modules-organization-management-entity.provider-DjPSiqcX.mjs} +15 -15
- package/fesm2022/{acorex-modules-organization-management-entity.provider-DH3eUGTu.mjs.map → acorex-modules-organization-management-entity.provider-DjPSiqcX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-DuScrBze.mjs → acorex-modules-organization-management-feature-definition.provider-BLmayeSc.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-DuScrBze.mjs.map → acorex-modules-organization-management-feature-definition.provider-BLmayeSc.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-D-J9JCsU.mjs → acorex-modules-organization-management-job-definition-pages-component.provider-HBi-EMRE.mjs} +3 -3
- package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-D-J9JCsU.mjs.map → acorex-modules-organization-management-job-definition-pages-component.provider-HBi-EMRE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-Dsy5rFGw.mjs → acorex-modules-organization-management-job-definition-responsibilities-page.component-CtIfsZ6x.mjs} +3 -3
- package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-Dsy5rFGw.mjs.map → acorex-modules-organization-management-job-definition-responsibilities-page.component-CtIfsZ6x.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-B73wLPby.mjs → acorex-modules-organization-management-job-definition-skills-page.component-C1vCQayM.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-B73wLPby.mjs.map → acorex-modules-organization-management-job-definition-skills-page.component-C1vCQayM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-B7mWKYqb.mjs → acorex-modules-organization-management-job-definition.entity-Db5li0zL.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-definition.entity-B7mWKYqb.mjs.map → acorex-modules-organization-management-job-definition.entity-Db5li0zL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-level.datasource-DibRoKXR.mjs → acorex-modules-organization-management-job-level.datasource-BTRKW7nq.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-level.datasource-DibRoKXR.mjs.map → acorex-modules-organization-management-job-level.datasource-BTRKW7nq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-job-level.entity-C_MzeTw5.mjs → acorex-modules-organization-management-job-level.entity-Cn-91_r8.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-job-level.entity-C_MzeTw5.mjs.map → acorex-modules-organization-management-job-level.entity-Cn-91_r8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-menu.provider-CQeJINzl.mjs → acorex-modules-organization-management-menu.provider-CVmV-hY5.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-menu.provider-CQeJINzl.mjs.map → acorex-modules-organization-management-menu.provider-CVmV-hY5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-default-node-contribution.provider-D3hCHSr_.mjs → acorex-modules-organization-management-org-chart-default-node-contribution.provider-bdtNexEf.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart-default-node-contribution.provider-D3hCHSr_.mjs.map → acorex-modules-organization-management-org-chart-default-node-contribution.provider-bdtNexEf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Bv0I-45L.mjs → acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-B0aaFv5p.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Bv0I-45L.mjs.map → acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-B0aaFv5p.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-DbfYza8q.mjs → acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-Xe4nhY3j.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-DbfYza8q.mjs.map → acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-Xe4nhY3j.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-ux-node-contribution.provider-C9APxguL.mjs → acorex-modules-organization-management-org-chart-ux-node-contribution.provider-CTprHwCi.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart-ux-node-contribution.provider-C9APxguL.mjs.map → acorex-modules-organization-management-org-chart-ux-node-contribution.provider-CTprHwCi.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-BcHO5kKP.mjs → acorex-modules-organization-management-org-chart.page-ChXY8ncD.mjs} +133 -12
- package/fesm2022/acorex-modules-organization-management-org-chart.page-ChXY8ncD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-BcIRJpBt.mjs → acorex-modules-organization-management-permission-definition.provider-8t2vBgtp.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-BcIRJpBt.mjs.map → acorex-modules-organization-management-permission-definition.provider-8t2vBgtp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-position.entity-DBOpLtSI.mjs → acorex-modules-organization-management-position.entity-BVWbTeks.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-position.entity-DBOpLtSI.mjs.map → acorex-modules-organization-management-position.entity-BVWbTeks.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-TqYgfnsy.mjs → acorex-modules-organization-management-remove-position-from-business-unit.command-DWzFncr1.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-TqYgfnsy.mjs.map → acorex-modules-organization-management-remove-position-from-business-unit.command-DWzFncr1.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-BJ2gn0-A.mjs → acorex-modules-organization-management-replace-position-assignee.command-CNa-CZOv.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-BJ2gn0-A.mjs.map → acorex-modules-organization-management-replace-position-assignee.command-CNa-CZOv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CZdMLIL-.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CTSCcyFv.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CZdMLIL-.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-CTSCcyFv.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BBo97rDN.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-C82TQFS-.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-BBo97rDN.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-C82TQFS-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-D9oH_Fbb.mjs → acorex-modules-organization-management-responsibilities-matrix.component-DjVuISfE.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-D9oH_Fbb.mjs.map → acorex-modules-organization-management-responsibilities-matrix.component-DjVuISfE.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibility-level.entity-D6IG9Zc7.mjs → acorex-modules-organization-management-responsibility-level.entity-BlENDhF6.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibility-level.entity-D6IG9Zc7.mjs.map → acorex-modules-organization-management-responsibility-level.entity-BlENDhF6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-BosNxYjW.mjs → acorex-modules-organization-management-responsibility.entity-DamPTQMp.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-BosNxYjW.mjs.map → acorex-modules-organization-management-responsibility.entity-DamPTQMp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-settings.provider-CL9C9UXA.mjs → acorex-modules-organization-management-settings.provider-CtQo6YHj.mjs} +3 -3
- package/fesm2022/acorex-modules-organization-management-settings.provider-CtQo6YHj.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team-business-unit.entity-CYFGTcHe.mjs → acorex-modules-organization-management-team-business-unit.entity-BfvqQb1K.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team-business-unit.entity-CYFGTcHe.mjs.map → acorex-modules-organization-management-team-business-unit.entity-BfvqQb1K.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-B5vNDne0.mjs → acorex-modules-organization-management-team-member-role.entity-wWoB56Il.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-B5vNDne0.mjs.map → acorex-modules-organization-management-team-member-role.entity-wWoB56Il.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team-member.entity-DsKuxCRB.mjs → acorex-modules-organization-management-team-member.entity-COGrDN_G.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team-member.entity-DsKuxCRB.mjs.map → acorex-modules-organization-management-team-member.entity-COGrDN_G.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-team.entity-Cg30cho_.mjs → acorex-modules-organization-management-team.entity-DC_rqp9e.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-team.entity-Cg30cho_.mjs.map → acorex-modules-organization-management-team.entity-DC_rqp9e.mjs.map} +1 -1
- package/fesm2022/acorex-modules-organization-management.mjs +1 -1
- package/fesm2022/{acorex-modules-platform-dev-tools-settings.provider-DKmgBUYt.mjs → acorex-modules-platform-dev-tools-settings.provider-BIVP27kT.mjs} +2 -2
- package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-BIVP27kT.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-dev-tools.mjs +2 -2
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DkOzj2Oy.mjs → acorex-modules-platform-management-acorex-modules-platform-management-5DJoQkx2.mjs} +1919 -4
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-5DJoQkx2.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-agWZWchQ.mjs → acorex-modules-platform-management-menu-list.component-C3WBYbOt.mjs} +4 -4
- package/fesm2022/{acorex-modules-platform-management-menu-list.component-agWZWchQ.mjs.map → acorex-modules-platform-management-menu-list.component-C3WBYbOt.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-oArHHeSx.mjs → acorex-modules-settings-management-acorex-modules-settings-management-Di6Sxtq3.mjs} +5 -5
- package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-oArHHeSx.mjs.map → acorex-modules-settings-management-acorex-modules-settings-management-Di6Sxtq3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-BsFyZ-gS.mjs → acorex-modules-settings-management-permission-definition.provider-Bml5VZUT.mjs} +2 -2
- package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-BsFyZ-gS.mjs.map → acorex-modules-settings-management-permission-definition.provider-Bml5VZUT.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-BftWms4f.mjs → acorex-modules-settings-management-setting-page.component-lN-7sTpD.mjs} +4 -4
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-BftWms4f.mjs.map → acorex-modules-settings-management-setting-page.component-lN-7sTpD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-paKdiSEr.mjs → acorex-modules-settings-management-setting-view.component-D17G4RNQ.mjs} +15 -28
- package/fesm2022/acorex-modules-settings-management-setting-view.component-D17G4RNQ.mjs.map +1 -0
- package/fesm2022/acorex-modules-settings-management.mjs +1 -1
- package/fesm2022/acorex-modules-system-insight.mjs +1 -1
- package/fesm2022/acorex-modules-system-insight.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs → acorex-modules-task-management-acorex-modules-task-management-LQn5gZ6p.mjs} +680 -10
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-LQn5gZ6p.mjs.map +1 -0
- package/fesm2022/{acorex-modules-task-management-task-board.page-DUIHtqnr.mjs → acorex-modules-task-management-task-board.page-BokG-G6Z.mjs} +204 -591
- package/fesm2022/acorex-modules-task-management-task-board.page-BokG-G6Z.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +1 -1
- package/fesm2022/acorex-modules-tenant-management.mjs +1 -1
- package/fesm2022/acorex-modules-tenant-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-CYyr1kQk.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-OLbCD-7P.mjs} +4 -4
- package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-CYyr1kQk.mjs.map → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-OLbCD-7P.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-workflow-management-index-CHySddpP.mjs → acorex-modules-workflow-management-index-34UZrsxw.mjs} +2 -2
- package/fesm2022/{acorex-modules-workflow-management-index-CHySddpP.mjs.map → acorex-modules-workflow-management-index-34UZrsxw.mjs.map} +1 -1
- package/fesm2022/acorex-modules-workflow-management-index-BxqOP8AA.mjs +1207 -0
- package/fesm2022/acorex-modules-workflow-management-index-BxqOP8AA.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-index-DC_9M9dk.mjs → acorex-modules-workflow-management-index-Eh5DDK-V.mjs} +3 -3
- package/fesm2022/{acorex-modules-workflow-management-index-DC_9M9dk.mjs.map → acorex-modules-workflow-management-index-Eh5DDK-V.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs → acorex-modules-workflow-management-save-workflow-definition-activities.command-CGNwslcn.mjs} +10 -5
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-CGNwslcn.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-definition.entity-CjQQpjdB.mjs → acorex-modules-workflow-management-workflow-definition.entity-DISpkWE4.mjs} +3 -7
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DISpkWE4.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-BnKT3Wgh.mjs → acorex-modules-workflow-management-workflow-instance.entity-B_V3uMSI.mjs} +2 -2
- package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-BnKT3Wgh.mjs.map → acorex-modules-workflow-management-workflow-instance.entity-B_V3uMSI.mjs.map} +1 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-DMszilef.mjs +356 -0
- package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-DMszilef.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +257 -130
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-modules-ai-management.d.ts +73 -5
- package/types/acorex-modules-assessment-management.d.ts +161 -97
- package/types/acorex-modules-asset-management.d.ts +3 -0
- package/types/acorex-modules-conversation.d.ts +12 -2
- package/types/acorex-modules-human-capital-management.d.ts +6 -6
- package/types/acorex-modules-maintenance-management.d.ts +28 -11
- package/types/acorex-modules-organization-management.d.ts +1 -27
- package/types/acorex-modules-platform-management.d.ts +518 -23
- package/types/acorex-modules-task-management.d.ts +100 -4
- package/types/acorex-modules-workflow-management.d.ts +53 -5
- package/fesm2022/acorex-modules-ai-management-assist.entity-513RdKsz.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-BD5oxehv.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-BiS7QO_E.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-YUDOSypz.mjs.map +0 -1
- package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-q3Z4VIiA.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-system.entity-DlpOp7Xj.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset-type.entity-CN6K0Uw3.mjs.map +0 -1
- package/fesm2022/acorex-modules-asset-management-asset.entity-2XZut6JS.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-settings.provider-CN7Lb38l.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-ny5TQlkp.mjs.map +0 -1
- package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-7O6som8z.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-B37ZqEql.mjs.map +0 -1
- package/fesm2022/acorex-modules-human-capital-management-lifecycle-process-type.entity-EazvPSR6.mjs.map +0 -1
- package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-coPYjl8-.mjs.map +0 -1
- package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-1V4swUZ4.mjs.map +0 -1
- package/fesm2022/acorex-modules-order-management-settings.provider-DF8JQ1PZ.mjs +0 -64
- package/fesm2022/acorex-modules-order-management-settings.provider-DF8JQ1PZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-CGzZcKEy.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-BcHO5kKP.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-settings.provider-CL9C9UXA.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-DKmgBUYt.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DkOzj2Oy.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-view.component-paKdiSEr.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-DUIHtqnr.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-index-jin24dmb.mjs +0 -726
- package/fesm2022/acorex-modules-workflow-management-index-jin24dmb.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-CjQQpjdB.mjs.map +0 -1
|
@@ -0,0 +1,1207 @@
|
|
|
1
|
+
import { W as WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY } from './acorex-modules-workflow-management-WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY-D6q__Ewd.mjs';
|
|
2
|
+
import * as i1 from '@acorex/cdk/accordion';
|
|
3
|
+
import { AXAccordionCdkModule } from '@acorex/cdk/accordion';
|
|
4
|
+
import * as i2 from '@acorex/components/button';
|
|
5
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
6
|
+
import * as i4 from '@acorex/components/decorators';
|
|
7
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
8
|
+
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
9
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
10
|
+
import * as i3 from '@acorex/components/menu';
|
|
11
|
+
import { AXContextMenuComponent, AXMenuModule } from '@acorex/components/menu';
|
|
12
|
+
import * as i4$1 from '@acorex/components/search-box';
|
|
13
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
14
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
15
|
+
import * as i5 from '@acorex/core/translation';
|
|
16
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
17
|
+
import { AXPWorkflowDesignerComponent, arrangeWorkflowDiagram, AXPWorkflowPaletteItemDragDirective } from '@acorex/modules/platform-management';
|
|
18
|
+
import { AXPDataGenerator } from '@acorex/platform/core';
|
|
19
|
+
import { AXPPropertyViewerComponent, buildPropertyViewerTabsFromProperties, AXPLayoutFloatingZoomBarComponent, AXPLayoutSideDetailPanelComponent } from '@acorex/platform/layout/components';
|
|
20
|
+
import { AXPEntityService } from '@acorex/platform/layout/entity';
|
|
21
|
+
import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
|
22
|
+
import { mapAXPPropertyToWidgetProperty } from '@acorex/platform/layout/widget-core';
|
|
23
|
+
import { AXPCommandService } from '@acorex/platform/runtime';
|
|
24
|
+
import { AXPActivityDefinitionService } from '@acorex/platform/workflow';
|
|
25
|
+
import * as i1$1 from '@angular/common';
|
|
26
|
+
import { CommonModule } from '@angular/common';
|
|
27
|
+
import * as i0 from '@angular/core';
|
|
28
|
+
import { input, inject, NgZone, DestroyRef, viewChild, signal, computed, effect, untracked, ChangeDetectionStrategy, Component, Injectable } from '@angular/core';
|
|
29
|
+
import { FormsModule } from '@angular/forms';
|
|
30
|
+
import { cloneDeep, isEqual } from 'lodash-es';
|
|
31
|
+
import { RootConfig } from './acorex-modules-workflow-management.mjs';
|
|
32
|
+
import { WORKFLOW_DEFINITION_ACTIVITIES_SAVE_COMMAND } from './acorex-modules-workflow-management-save-workflow-definition-activities.command-CGNwslcn.mjs';
|
|
33
|
+
|
|
34
|
+
//#region ---- Imports ----
|
|
35
|
+
const DEFAULT_NODE_W = 240;
|
|
36
|
+
const DEFAULT_NODE_H = 96;
|
|
37
|
+
const DESIGNER_GRID_SIZE = 20;
|
|
38
|
+
/** Debounce window before persisting designer edits (drag emits many modelChange events). */
|
|
39
|
+
const AUTO_SAVE_DEBOUNCE_MS = 500;
|
|
40
|
+
const DISCARD_COMMAND = 'WorkflowManagement.WorkflowDefinition:Activities:Discard';
|
|
41
|
+
const ADD_STEP_COMMAND = 'WorkflowManagement.WorkflowDefinition:Activities:AddStep';
|
|
42
|
+
const ARRANGE_LAYOUT_COMMAND = 'WorkflowManagement.WorkflowDefinition:Activities:ArrangeLayout';
|
|
43
|
+
const TOGGLE_DETAIL_PANEL_ACTION_ID = 'workflow-management.activities.toggle-detail-panel';
|
|
44
|
+
const ADD_ACTIVITY_ACTION_ID = 'workflow-management.activities.add-activity';
|
|
45
|
+
const TOGGLE_DETAIL_PANEL_ACTION_TITLE_KEY = '@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.node-actions.toggle-detail-panel';
|
|
46
|
+
const ADD_ACTIVITY_ACTION_TITLE_KEY = '@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.node-actions.add-activity';
|
|
47
|
+
const ARRANGE_LAYOUT_ACTION_TITLE_KEY = '@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.node-actions.arrange-layout';
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region ---- Helpers ----
|
|
50
|
+
function normalizeActivityDefinitionInputs(raw) {
|
|
51
|
+
if (Array.isArray(raw)) {
|
|
52
|
+
return raw;
|
|
53
|
+
}
|
|
54
|
+
if (typeof raw === 'string' && raw.trim().length > 0) {
|
|
55
|
+
try {
|
|
56
|
+
const parsed = JSON.parse(raw);
|
|
57
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
function portKey(port) {
|
|
66
|
+
return port == null || port === '' ? 'Done' : port;
|
|
67
|
+
}
|
|
68
|
+
function rowFromInstance(a) {
|
|
69
|
+
const inputs = a.inputs != null && typeof a.inputs === 'object' && !Array.isArray(a.inputs)
|
|
70
|
+
? { ...a.inputs }
|
|
71
|
+
: {};
|
|
72
|
+
const extRaw = a.extensions;
|
|
73
|
+
const extensions = extRaw != null && typeof extRaw === 'object' && !Array.isArray(extRaw)
|
|
74
|
+
? { ...extRaw }
|
|
75
|
+
: undefined;
|
|
76
|
+
return {
|
|
77
|
+
id: a.id,
|
|
78
|
+
name: typeof a.name === 'string' ? a.name : '',
|
|
79
|
+
inputs,
|
|
80
|
+
...(extensions != null && Object.keys(extensions).length > 0 ? { extensions } : {}),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function instanceFromRow(r) {
|
|
84
|
+
const out = { id: r.id, name: r.name, inputs: { ...r.inputs } };
|
|
85
|
+
if (r.extensions != null && Object.keys(r.extensions).length > 0) {
|
|
86
|
+
out.extensions = { ...r.extensions };
|
|
87
|
+
}
|
|
88
|
+
return out;
|
|
89
|
+
}
|
|
90
|
+
function emptyGraph() {
|
|
91
|
+
return { startActivityId: '', activities: [], connections: [] };
|
|
92
|
+
}
|
|
93
|
+
function graphFingerprint(g) {
|
|
94
|
+
if (g == null) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
startActivityId: g.startActivityId,
|
|
99
|
+
activities: g.activities,
|
|
100
|
+
connections: g.connections,
|
|
101
|
+
designer: g.designer,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region ---- Component ----
|
|
106
|
+
class AXMWorkflowDefinitionActivitiesPageComponent extends AXPPageLayoutBaseComponent {
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ---- Lifecycle ----
|
|
109
|
+
constructor() {
|
|
110
|
+
super();
|
|
111
|
+
//#region ---- Inputs ----
|
|
112
|
+
this.rootContext = input(...(ngDevMode ? [undefined, { debugName: "rootContext" }] : /* istanbul ignore next */ []));
|
|
113
|
+
this.pageConfig = input(...(ngDevMode ? [undefined, { debugName: "pageConfig" }] : /* istanbul ignore next */ []));
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ---- Services ----
|
|
116
|
+
this.commandService = inject(AXPCommandService);
|
|
117
|
+
this.entityService = inject(AXPEntityService);
|
|
118
|
+
this.activityDefService = inject(AXPActivityDefinitionService);
|
|
119
|
+
this.mlResolver = inject(AXTranslationService);
|
|
120
|
+
this.hostPageLayout = inject(AXPPageLayoutBase, { optional: true, skipSelf: true });
|
|
121
|
+
this.ngZone = inject(NgZone);
|
|
122
|
+
this.destroyRef = inject(DestroyRef);
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region ---- Auto-save ----
|
|
125
|
+
this.autoSaveTimer = null;
|
|
126
|
+
this.autoSaveInFlight = false;
|
|
127
|
+
this.autoSavePending = false;
|
|
128
|
+
this.suppressAutoSave = false;
|
|
129
|
+
//#region ---- View refs ----
|
|
130
|
+
this.propertyViewerRef = viewChild(AXPPropertyViewerComponent, ...(ngDevMode ? [{ debugName: "propertyViewerRef" }] : /* istanbul ignore next */ []));
|
|
131
|
+
this.workflowDesignerRef = viewChild(AXPWorkflowDesignerComponent, ...(ngDevMode ? [{ debugName: "workflowDesignerRef" }] : /* istanbul ignore next */ []));
|
|
132
|
+
this.contextMenu = viewChild(AXContextMenuComponent, ...(ngDevMode ? [{ debugName: "contextMenu" }] : /* istanbul ignore next */ []));
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ---- State ----
|
|
135
|
+
this.baselineGraph = signal(null, ...(ngDevMode ? [{ debugName: "baselineGraph" }] : /* istanbul ignore next */ []));
|
|
136
|
+
this.activityCatalogLoaded = signal(false, ...(ngDevMode ? [{ debugName: "activityCatalogLoaded" }] : /* istanbul ignore next */ []));
|
|
137
|
+
this.activityDefCache = signal({}, ...(ngDevMode ? [{ debugName: "activityDefCache" }] : /* istanbul ignore next */ []));
|
|
138
|
+
this.activitySelectItems = signal([], ...(ngDevMode ? [{ debugName: "activitySelectItems" }] : /* istanbul ignore next */ []));
|
|
139
|
+
this.activities = signal([], ...(ngDevMode ? [{ debugName: "activities" }] : /* istanbul ignore next */ []));
|
|
140
|
+
this.connections = signal([], ...(ngDevMode ? [{ debugName: "connections" }] : /* istanbul ignore next */ []));
|
|
141
|
+
this.startActivityId = signal('', ...(ngDevMode ? [{ debugName: "startActivityId" }] : /* istanbul ignore next */ []));
|
|
142
|
+
this.selectedRowId = signal(null, ...(ngDevMode ? [{ debugName: "selectedRowId" }] : /* istanbul ignore next */ []));
|
|
143
|
+
this.viewerTabs = signal([], ...(ngDevMode ? [{ debugName: "viewerTabs" }] : /* istanbul ignore next */ []));
|
|
144
|
+
this.selectedActivityOutcomeRows = signal([], ...(ngDevMode ? [{ debugName: "selectedActivityOutcomeRows" }] : /* istanbul ignore next */ []));
|
|
145
|
+
this.isDirty = signal(false, ...(ngDevMode ? [{ debugName: "isDirty" }] : /* istanbul ignore next */ []));
|
|
146
|
+
this.backgroundPattern = signal('dots', ...(ngDevMode ? [{ debugName: "backgroundPattern" }] : /* istanbul ignore next */ []));
|
|
147
|
+
this.zoomLevel = signal(100, ...(ngDevMode ? [{ debugName: "zoomLevel" }] : /* istanbul ignore next */ []));
|
|
148
|
+
this.isFullscreen = signal(false, ...(ngDevMode ? [{ debugName: "isFullscreen" }] : /* istanbul ignore next */ []));
|
|
149
|
+
this.isInfoPanelOpen = signal(false, ...(ngDevMode ? [{ debugName: "isInfoPanelOpen" }] : /* istanbul ignore next */ []));
|
|
150
|
+
this.isPaletteOpen = signal(false, ...(ngDevMode ? [{ debugName: "isPaletteOpen" }] : /* istanbul ignore next */ []));
|
|
151
|
+
this.paletteSearchTerm = signal('', ...(ngDevMode ? [{ debugName: "paletteSearchTerm" }] : /* istanbul ignore next */ []));
|
|
152
|
+
/** Canvas layout keyed by activity instance id; kept in sync with designer `modelChange` and saved on `graph.designer`. */
|
|
153
|
+
this.designerLayout = signal({}, ...(ngDevMode ? [{ debugName: "designerLayout" }] : /* istanbul ignore next */ []));
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region ---- Computed ----
|
|
156
|
+
this.context = computed(() => this.rootContext() ?? {}, ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
157
|
+
this.selectedRow = computed(() => this.activities().find((x) => x.id === this.selectedRowId()) ?? null, ...(ngDevMode ? [{ debugName: "selectedRow" }] : /* istanbul ignore next */ []));
|
|
158
|
+
this.startActivityItems = computed(() => this.activities().map((r) => ({ value: r.id, text: this.formatActivityStepLabel(r) })), ...(ngDevMode ? [{ debugName: "startActivityItems" }] : /* istanbul ignore next */ []));
|
|
159
|
+
this.activitySelectOptions = computed(() => {
|
|
160
|
+
const graphTitleByName = new Map();
|
|
161
|
+
for (const r of this.activities()) {
|
|
162
|
+
const n = r.name?.trim();
|
|
163
|
+
if (!n) {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
const ext = r.extensions;
|
|
167
|
+
const dt = ext && typeof ext['displayTitle'] === 'string' ? ext['displayTitle'].trim() : '';
|
|
168
|
+
if (dt) {
|
|
169
|
+
graphTitleByName.set(n, dt);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const byValue = new Map();
|
|
173
|
+
for (const x of this.activitySelectItems()) {
|
|
174
|
+
byValue.set(x.value, {
|
|
175
|
+
value: x.value,
|
|
176
|
+
description: x.description,
|
|
177
|
+
icon: x.icon,
|
|
178
|
+
text: graphTitleByName.get(x.value) ?? x.text,
|
|
179
|
+
categoryId: x.categoryId,
|
|
180
|
+
categoryTitle: x.categoryTitle,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
for (const r of this.activities()) {
|
|
184
|
+
const n = r.name?.trim();
|
|
185
|
+
if (!n || byValue.has(n)) {
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
byValue.set(n, {
|
|
189
|
+
value: n,
|
|
190
|
+
description: '',
|
|
191
|
+
icon: '',
|
|
192
|
+
text: graphTitleByName.get(n) ?? n,
|
|
193
|
+
categoryId: 'uncategorized',
|
|
194
|
+
categoryTitle: 'Uncategorized',
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
return [...byValue.values()].sort((a, b) => a.text.localeCompare(b.text));
|
|
198
|
+
}, ...(ngDevMode ? [{ debugName: "activitySelectOptions" }] : /* istanbul ignore next */ []));
|
|
199
|
+
this.paletteItems = computed(() => this.activitySelectOptions().map((x) => ({
|
|
200
|
+
type: x.value,
|
|
201
|
+
title: x.text,
|
|
202
|
+
shape: 'rounded-rectangle',
|
|
203
|
+
size: { width: 230, height: 90 },
|
|
204
|
+
inboundPorts: [{ side: 'left', ratio: 0.5, key: 'in', label: 'in' }],
|
|
205
|
+
outboundPorts: [{ side: 'right', ratio: 0.5, key: 'Done', label: 'Done' }],
|
|
206
|
+
data: { category: 'activity-definition' },
|
|
207
|
+
})), ...(ngDevMode ? [{ debugName: "paletteItems" }] : /* istanbul ignore next */ []));
|
|
208
|
+
this.paletteGroups = computed(() => {
|
|
209
|
+
const groupsById = new Map();
|
|
210
|
+
for (const item of this.activitySelectOptions()) {
|
|
211
|
+
const groupId = item.categoryId.trim() || 'uncategorized';
|
|
212
|
+
const groupTitle = item.categoryTitle.trim() || 'Uncategorized';
|
|
213
|
+
const existing = groupsById.get(groupId);
|
|
214
|
+
const paletteItem = {
|
|
215
|
+
type: item.value,
|
|
216
|
+
title: item.text,
|
|
217
|
+
description: item.description,
|
|
218
|
+
icon: item.icon,
|
|
219
|
+
shape: 'rounded-rectangle',
|
|
220
|
+
size: { width: 230, height: 90 },
|
|
221
|
+
inboundPorts: [{ side: 'left', ratio: 0.5, key: 'in', label: 'in' }],
|
|
222
|
+
outboundPorts: [{ side: 'right', ratio: 0.5, key: 'Done', label: 'Done' }],
|
|
223
|
+
data: { category: 'activity-definition' },
|
|
224
|
+
};
|
|
225
|
+
if (existing) {
|
|
226
|
+
existing.items.push(paletteItem);
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
groupsById.set(groupId, { id: groupId, title: groupTitle, items: [paletteItem] });
|
|
230
|
+
}
|
|
231
|
+
return [...groupsById.values()]
|
|
232
|
+
.map((group) => ({
|
|
233
|
+
...group,
|
|
234
|
+
items: [...group.items].sort((a, b) => a.title.localeCompare(b.title)),
|
|
235
|
+
}))
|
|
236
|
+
.sort((a, b) => a.title.localeCompare(b.title));
|
|
237
|
+
}, ...(ngDevMode ? [{ debugName: "paletteGroups" }] : /* istanbul ignore next */ []));
|
|
238
|
+
this.filteredPaletteGroups = computed(() => {
|
|
239
|
+
const searchTerm = this.paletteSearchTerm().trim().toLowerCase();
|
|
240
|
+
const groups = this.paletteGroups();
|
|
241
|
+
if (!searchTerm) {
|
|
242
|
+
return groups;
|
|
243
|
+
}
|
|
244
|
+
return groups
|
|
245
|
+
.map((group) => {
|
|
246
|
+
const items = group.items.filter((item) => {
|
|
247
|
+
const title = item.title?.toLowerCase() ?? '';
|
|
248
|
+
const description = item.description?.toLowerCase() ?? '';
|
|
249
|
+
return title.includes(searchTerm) || description.includes(searchTerm);
|
|
250
|
+
});
|
|
251
|
+
return { ...group, items };
|
|
252
|
+
})
|
|
253
|
+
.filter((group) => group.items.length > 0);
|
|
254
|
+
}, ...(ngDevMode ? [{ debugName: "filteredPaletteGroups" }] : /* istanbul ignore next */ []));
|
|
255
|
+
this.designerModel = computed(() => {
|
|
256
|
+
const rows = this.activities();
|
|
257
|
+
const conns = this.connections();
|
|
258
|
+
const cache = this.activityDefCache();
|
|
259
|
+
const layout = this.designerLayout();
|
|
260
|
+
const nodes = rows.map((r, i) => {
|
|
261
|
+
const def = r.name ? cache[r.name] : undefined;
|
|
262
|
+
const outcomes = this.buildOutcomeRows(r.id, r, def);
|
|
263
|
+
const L = layout[r.id];
|
|
264
|
+
const pos = L ? { x: L.x, y: L.y } : this.gridFallbackPosition(i);
|
|
265
|
+
const size = L ? { width: L.width, height: L.height } : { width: DEFAULT_NODE_W, height: DEFAULT_NODE_H };
|
|
266
|
+
return {
|
|
267
|
+
id: r.id,
|
|
268
|
+
type: r.name,
|
|
269
|
+
title: this.resolveNodeTitle(r),
|
|
270
|
+
shape: 'rounded-rectangle',
|
|
271
|
+
size,
|
|
272
|
+
position: pos,
|
|
273
|
+
color: this.startActivityId() === r.id ? 'success' : 'secondary',
|
|
274
|
+
inboundPorts: [
|
|
275
|
+
{ id: `${r.id}:in`, kind: 'inbound', side: 'left', ratio: 0.5, key: 'in', label: 'in' },
|
|
276
|
+
],
|
|
277
|
+
outboundPorts: outcomes.map((o, oi, arr) => ({
|
|
278
|
+
id: `${r.id}:out:${o.port}`,
|
|
279
|
+
kind: 'outbound',
|
|
280
|
+
side: 'right',
|
|
281
|
+
ratio: arr.length === 1 ? 0.5 : (oi + 1) / (arr.length + 1),
|
|
282
|
+
key: o.port,
|
|
283
|
+
label: o.label,
|
|
284
|
+
})),
|
|
285
|
+
};
|
|
286
|
+
});
|
|
287
|
+
const outPortByKey = new Map();
|
|
288
|
+
for (const n of nodes) {
|
|
289
|
+
for (const p of n.outboundPorts) {
|
|
290
|
+
outPortByKey.set(`${n.id}:${portKey(p.key)}`, p.id);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
const connectors = conns
|
|
294
|
+
.map((c, i) => {
|
|
295
|
+
const sourcePortKey = portKey(c.source.port);
|
|
296
|
+
const sourcePortId = outPortByKey.get(`${c.source.activtyName}:${sourcePortKey}`);
|
|
297
|
+
if (!sourcePortId) {
|
|
298
|
+
return null;
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
id: `c-${i}-${c.source.activtyName}-${c.target.activtyName}-${sourcePortKey}`,
|
|
302
|
+
sourceNodeId: c.source.activtyName,
|
|
303
|
+
sourcePortId,
|
|
304
|
+
targetNodeId: c.target.activtyName,
|
|
305
|
+
targetPortId: `${c.target.activtyName}:in`,
|
|
306
|
+
};
|
|
307
|
+
})
|
|
308
|
+
.filter((x) => x != null);
|
|
309
|
+
return { nodes, connectors };
|
|
310
|
+
}, ...(ngDevMode ? [{ debugName: "designerModel" }] : /* istanbul ignore next */ []));
|
|
311
|
+
this.selectedNodeInfoRows = computed(() => {
|
|
312
|
+
const selected = this.selectedRow();
|
|
313
|
+
if (!selected) {
|
|
314
|
+
return [];
|
|
315
|
+
}
|
|
316
|
+
const selectOption = this.activitySelectOptions().find((x) => x.value === selected.name);
|
|
317
|
+
return [
|
|
318
|
+
{ title: 'Title', content: this.resolveNodeTitle(selected) || '---' },
|
|
319
|
+
{ title: 'Type', content: selected.name || '---' },
|
|
320
|
+
{ title: 'Id', content: selected.id || '---' },
|
|
321
|
+
{ title: 'Category', content: selectOption?.categoryTitle || '---' },
|
|
322
|
+
{ title: 'Inputs', content: `${Object.keys(selected.inputs ?? {}).length}` },
|
|
323
|
+
{ title: 'Outcomes', content: `${this.selectedActivityOutcomeRows().length}` },
|
|
324
|
+
];
|
|
325
|
+
}, ...(ngDevMode ? [{ debugName: "selectedNodeInfoRows" }] : /* istanbul ignore next */ []));
|
|
326
|
+
this.workflowDetailPanelCopy = signal({
|
|
327
|
+
panelTitle: 'Activity details',
|
|
328
|
+
emptyMessage: 'Select a node to see details.',
|
|
329
|
+
}, ...(ngDevMode ? [{ debugName: "workflowDetailPanelCopy" }] : /* istanbul ignore next */ []));
|
|
330
|
+
this.workflowDetailPanelHeader = computed(() => {
|
|
331
|
+
const selected = this.selectedRow();
|
|
332
|
+
if (selected == null) {
|
|
333
|
+
return null;
|
|
334
|
+
}
|
|
335
|
+
const selectOption = this.activitySelectOptions().find((x) => x.value === selected.name);
|
|
336
|
+
const iconGlyph = selectOption?.icon?.trim();
|
|
337
|
+
return {
|
|
338
|
+
primaryTitle: this.resolveNodeTitle(selected) || '---',
|
|
339
|
+
icon: iconGlyph ? { iconClass: `fa-light fa-lg fa-fw ${iconGlyph}` } : undefined,
|
|
340
|
+
};
|
|
341
|
+
}, ...(ngDevMode ? [{ debugName: "workflowDetailPanelHeader" }] : /* istanbul ignore next */ []));
|
|
342
|
+
this.workflowDetailPanelRows = computed(() => {
|
|
343
|
+
if (this.selectedRow() == null) {
|
|
344
|
+
return [];
|
|
345
|
+
}
|
|
346
|
+
return this.selectedNodeInfoRows().map((row) => ({
|
|
347
|
+
label: row.title,
|
|
348
|
+
value: row.content,
|
|
349
|
+
}));
|
|
350
|
+
}, ...(ngDevMode ? [{ debugName: "workflowDetailPanelRows" }] : /* istanbul ignore next */ []));
|
|
351
|
+
this.workflowDetailPanelEmptyState = computed(() => {
|
|
352
|
+
if (this.selectedRow() != null) {
|
|
353
|
+
return null;
|
|
354
|
+
}
|
|
355
|
+
const copy = this.workflowDetailPanelCopy();
|
|
356
|
+
return {
|
|
357
|
+
primaryTitle: copy.panelTitle,
|
|
358
|
+
message: copy.emptyMessage,
|
|
359
|
+
icon: { iconClass: 'fa-solid fa-lg fa-fw fa-diagram-project' },
|
|
360
|
+
};
|
|
361
|
+
}, ...(ngDevMode ? [{ debugName: "workflowDetailPanelEmptyState" }] : /* istanbul ignore next */ []));
|
|
362
|
+
let previousRootId = undefined;
|
|
363
|
+
effect(() => {
|
|
364
|
+
const ctx = this.rootContext();
|
|
365
|
+
const currentId = ctx != null && typeof ctx === 'object' ? ctx['id'] : undefined;
|
|
366
|
+
if (currentId !== previousRootId) {
|
|
367
|
+
previousRootId = currentId;
|
|
368
|
+
untracked(() => this.hydrateFromServerContext(ctx));
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
this.destroyRef.onDestroy(() => this.clearAutoSaveTimer());
|
|
372
|
+
}
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region ---- Page chrome / commands ----
|
|
375
|
+
// override async getPrimaryMenuItems(): Promise<AXPActionMenuItem[]> {
|
|
376
|
+
// const addTitle =
|
|
377
|
+
// (await this.translateService.translateAsync(
|
|
378
|
+
// '@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.add-step',
|
|
379
|
+
// )) || 'Add step';
|
|
380
|
+
// const discardTitle = (await this.translateService.translateAsync('@general:actions.discard.title')) || 'Discard';
|
|
381
|
+
// const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';
|
|
382
|
+
// const addAction: AXPLayoutDetailsViewAction = {
|
|
383
|
+
// title: addTitle,
|
|
384
|
+
// icon: 'fa-light fa-plus',
|
|
385
|
+
// zone: 'header',
|
|
386
|
+
// priority: 'primary',
|
|
387
|
+
// color: 'primary',
|
|
388
|
+
// command: { name: ADD_STEP_COMMAND, options: {} },
|
|
389
|
+
// };
|
|
390
|
+
// const discardAction: AXPLayoutDetailsViewAction = {
|
|
391
|
+
// title: discardTitle,
|
|
392
|
+
// icon: 'fa-light fa-rotate-left',
|
|
393
|
+
// zone: 'footer',
|
|
394
|
+
// priority: 'secondary',
|
|
395
|
+
// color: 'default',
|
|
396
|
+
// visible: this.isDirty(),
|
|
397
|
+
// command: { name: DISCARD_COMMAND, options: {} },
|
|
398
|
+
// };
|
|
399
|
+
// const saveAction: AXPLayoutDetailsViewAction = {
|
|
400
|
+
// title: saveTitle,
|
|
401
|
+
// icon: 'fa-light fa-floppy-disk',
|
|
402
|
+
// zone: 'footer',
|
|
403
|
+
// priority: 'primary',
|
|
404
|
+
// color: 'primary',
|
|
405
|
+
// visible: this.isDirty(),
|
|
406
|
+
// command: { name: WORKFLOW_DEFINITION_ACTIVITIES_SAVE_COMMAND, options: {} },
|
|
407
|
+
// };
|
|
408
|
+
// return [addAction, discardAction, saveAction];
|
|
409
|
+
// }
|
|
410
|
+
async getSecondaryMenuItems() {
|
|
411
|
+
const title = await this.mlResolver.translateAsync(ARRANGE_LAYOUT_ACTION_TITLE_KEY);
|
|
412
|
+
return [
|
|
413
|
+
{
|
|
414
|
+
title,
|
|
415
|
+
icon: 'fa-light fa-sitemap',
|
|
416
|
+
command: { name: ARRANGE_LAYOUT_COMMAND, options: {} },
|
|
417
|
+
disabled: this.activities().length === 0,
|
|
418
|
+
},
|
|
419
|
+
];
|
|
420
|
+
}
|
|
421
|
+
execute(command) {
|
|
422
|
+
if (command.name === DISCARD_COMMAND) {
|
|
423
|
+
this.applyBaselineGraph();
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
if (command.name === ADD_STEP_COMMAND) {
|
|
427
|
+
this.addStep();
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
if (command.name === ARRANGE_LAYOUT_COMMAND) {
|
|
431
|
+
this.applyArrangedLayout();
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (command.name === WORKFLOW_DEFINITION_ACTIVITIES_SAVE_COMMAND) {
|
|
435
|
+
return this.handleSaveExecute();
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region ---- Designer handlers ----
|
|
440
|
+
onDesignerModelChange(model) {
|
|
441
|
+
const previousNodeCount = this.activities().length;
|
|
442
|
+
const oldById = new Map(this.activities().map((x) => [x.id, x]));
|
|
443
|
+
const nextRows = model.nodes.map((n) => {
|
|
444
|
+
const prev = oldById.get(n.id);
|
|
445
|
+
const title = n.title?.trim();
|
|
446
|
+
const extensions = { ...(prev?.extensions ?? {}) };
|
|
447
|
+
if (title) {
|
|
448
|
+
extensions['displayTitle'] = title;
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
delete extensions['displayTitle'];
|
|
452
|
+
}
|
|
453
|
+
return {
|
|
454
|
+
id: n.id,
|
|
455
|
+
name: n.type?.trim() ? n.type : (prev?.name ?? ''),
|
|
456
|
+
inputs: { ...(prev?.inputs ?? {}) },
|
|
457
|
+
...(Object.keys(extensions).length > 0 ? { extensions } : {}),
|
|
458
|
+
};
|
|
459
|
+
});
|
|
460
|
+
const outgoingByPortId = new Map();
|
|
461
|
+
for (const n of model.nodes) {
|
|
462
|
+
for (const p of n.outboundPorts) {
|
|
463
|
+
outgoingByPortId.set(p.id, portKey(p.key));
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
const nextConnections = [];
|
|
467
|
+
for (const c of model.connectors) {
|
|
468
|
+
const pk = outgoingByPortId.get(c.sourcePortId);
|
|
469
|
+
if (!pk) {
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
nextConnections.push({
|
|
473
|
+
source: { activtyName: c.sourceNodeId, port: pk === 'Done' ? null : pk },
|
|
474
|
+
target: { activtyName: c.targetNodeId, port: null },
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
this.activities.set(nextRows);
|
|
478
|
+
this.connections.set(nextConnections);
|
|
479
|
+
if (!nextRows.some((x) => x.id === this.startActivityId())) {
|
|
480
|
+
this.startActivityId.set(nextRows[0]?.id ?? '');
|
|
481
|
+
}
|
|
482
|
+
if (!nextRows.some((x) => x.id === this.selectedRowId())) {
|
|
483
|
+
this.selectedRowId.set(nextRows[0]?.id ?? null);
|
|
484
|
+
}
|
|
485
|
+
for (const r of nextRows) {
|
|
486
|
+
void this.ensureDefinition(r.name);
|
|
487
|
+
}
|
|
488
|
+
this.syncDesignerLayoutFromModel(model);
|
|
489
|
+
void this.refreshPropertyViewer();
|
|
490
|
+
this.recomputeDirty();
|
|
491
|
+
if (nextRows.length > previousNodeCount) {
|
|
492
|
+
this.closePalette();
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
onDesignerActivationChange(a) {
|
|
496
|
+
if (a?.kind !== 'node') {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
this.selectedRowId.set(a.id);
|
|
500
|
+
void this.refreshPropertyViewer();
|
|
501
|
+
}
|
|
502
|
+
//#region ---- Context Menu ----
|
|
503
|
+
onDesignerNodeContextMenu(payload) {
|
|
504
|
+
const anchor = payload.event.currentTarget instanceof HTMLElement
|
|
505
|
+
? payload.event.currentTarget
|
|
506
|
+
: payload.event.target instanceof HTMLElement
|
|
507
|
+
? payload.event.target.closest('.axp-workflow-designer__node')
|
|
508
|
+
: null;
|
|
509
|
+
if (!(anchor instanceof HTMLElement)) {
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
void this.openWorkflowContextMenuAt(payload.event.clientX, payload.event.clientY, anchor, [
|
|
513
|
+
ADD_ACTIVITY_ACTION_ID,
|
|
514
|
+
TOGGLE_DETAIL_PANEL_ACTION_ID,
|
|
515
|
+
]);
|
|
516
|
+
}
|
|
517
|
+
onDesignerSurfaceContextMenu(event) {
|
|
518
|
+
if (event.target instanceof HTMLElement && event.target.closest('.axp-workflow-designer__node')) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
event.preventDefault();
|
|
522
|
+
event.stopPropagation();
|
|
523
|
+
const anchor = event.target instanceof HTMLElement
|
|
524
|
+
? (event.target.closest('.axp-workflow-designer__surface') ?? event.target)
|
|
525
|
+
: null;
|
|
526
|
+
if (!(anchor instanceof HTMLElement)) {
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
void this.openWorkflowContextMenuAt(event.clientX, event.clientY, anchor, [ADD_ACTIVITY_ACTION_ID]);
|
|
530
|
+
}
|
|
531
|
+
handleWorkflowContextMenuItemClick(e) {
|
|
532
|
+
if (e.item.name === TOGGLE_DETAIL_PANEL_ACTION_ID) {
|
|
533
|
+
this.toggleInfoPanel();
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
if (e.item.name === ADD_ACTIVITY_ACTION_ID) {
|
|
537
|
+
this.openPalette();
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
openPalette() {
|
|
541
|
+
this.isPaletteOpen.set(true);
|
|
542
|
+
this.paletteSearchTerm.set('');
|
|
543
|
+
}
|
|
544
|
+
closePalette() {
|
|
545
|
+
this.isPaletteOpen.set(false);
|
|
546
|
+
}
|
|
547
|
+
async openWorkflowContextMenuAt(clientX, clientY, targetElement, actionIds) {
|
|
548
|
+
const items = [];
|
|
549
|
+
for (const actionId of actionIds) {
|
|
550
|
+
const item = await this.buildWorkflowContextMenuItem(actionId);
|
|
551
|
+
if (item != null) {
|
|
552
|
+
items.push(item);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
if (items.length === 0) {
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
const menu = this.contextMenu();
|
|
559
|
+
if (menu == null) {
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
this.ngZone.run(() => {
|
|
563
|
+
const openingEvent = {
|
|
564
|
+
sender: menu,
|
|
565
|
+
canceled: false,
|
|
566
|
+
targetElement,
|
|
567
|
+
items,
|
|
568
|
+
};
|
|
569
|
+
menu.showAt({ x: clientX, y: clientY }, targetElement, openingEvent);
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
async buildWorkflowContextMenuItem(actionId) {
|
|
573
|
+
if (actionId === ADD_ACTIVITY_ACTION_ID) {
|
|
574
|
+
return {
|
|
575
|
+
name: ADD_ACTIVITY_ACTION_ID,
|
|
576
|
+
text: (await this.translateService.translateAsync(ADD_ACTIVITY_ACTION_TITLE_KEY)) ?? 'Add Activity',
|
|
577
|
+
icon: 'fa-light fa-plus',
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
if (actionId === TOGGLE_DETAIL_PANEL_ACTION_ID) {
|
|
581
|
+
return {
|
|
582
|
+
name: TOGGLE_DETAIL_PANEL_ACTION_ID,
|
|
583
|
+
text: (await this.translateService.translateAsync(TOGGLE_DETAIL_PANEL_ACTION_TITLE_KEY)) ?? 'Toggle Details Panel',
|
|
584
|
+
icon: 'fa-light fa-sidebar',
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
return null;
|
|
588
|
+
}
|
|
589
|
+
//#endregion
|
|
590
|
+
onBackgroundPatternChange(event) {
|
|
591
|
+
const value = event.target.value;
|
|
592
|
+
if (value === 'line' || value === 'dots') {
|
|
593
|
+
this.backgroundPattern.set(value);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
onDesignerZoomChange(value) {
|
|
597
|
+
this.zoomLevel.set(this.clampZoomLevel(value));
|
|
598
|
+
}
|
|
599
|
+
onPaletteSearchChange(event) {
|
|
600
|
+
this.paletteSearchTerm.set(event?.value ?? '');
|
|
601
|
+
}
|
|
602
|
+
zoomIn() {
|
|
603
|
+
this.workflowDesignerRef()?.zoomIn();
|
|
604
|
+
this.zoomLevel.set(this.clampZoomLevel(this.workflowDesignerRef()?.getZoomLevel() ?? this.zoomLevel()));
|
|
605
|
+
}
|
|
606
|
+
zoomOut() {
|
|
607
|
+
this.workflowDesignerRef()?.zoomOut();
|
|
608
|
+
this.zoomLevel.set(this.clampZoomLevel(this.workflowDesignerRef()?.getZoomLevel() ?? this.zoomLevel()));
|
|
609
|
+
}
|
|
610
|
+
zoomReset() {
|
|
611
|
+
this.workflowDesignerRef()?.zoomReset();
|
|
612
|
+
this.zoomLevel.set(this.clampZoomLevel(this.workflowDesignerRef()?.getZoomLevel() ?? 100));
|
|
613
|
+
}
|
|
614
|
+
toggleFullscreen() {
|
|
615
|
+
const next = !this.isFullscreen();
|
|
616
|
+
this.isFullscreen.set(next);
|
|
617
|
+
const doc = globalThis.document;
|
|
618
|
+
if (!doc) {
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
if (next) {
|
|
622
|
+
void doc.documentElement.requestFullscreen?.();
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
void doc.exitFullscreen?.();
|
|
626
|
+
}
|
|
627
|
+
toggleInfoPanel() {
|
|
628
|
+
this.isInfoPanelOpen.update((open) => !open);
|
|
629
|
+
}
|
|
630
|
+
onStartActivityChange(event) {
|
|
631
|
+
this.startActivityId.set(event.value != null ? String(event.value) : '');
|
|
632
|
+
this.recomputeDirty();
|
|
633
|
+
}
|
|
634
|
+
onSelectedActivityTypeChange(event) {
|
|
635
|
+
const row = this.selectedRow();
|
|
636
|
+
if (!row) {
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
const name = event.value != null ? String(event.value) : '';
|
|
640
|
+
const rowId = row.id;
|
|
641
|
+
this.activities.update((rows) => rows.map((r) => (r.id !== rowId ? r : { ...r, name, inputs: {}, extensions: undefined })));
|
|
642
|
+
void this.ensureDefinition(name);
|
|
643
|
+
void this.activityDefService.getActivityByName(name).then((def) => {
|
|
644
|
+
const rowNow = this.activities().find((r) => r.id === rowId) ?? null;
|
|
645
|
+
const allowed = new Set(this.buildOutcomeRows(rowId, rowNow, def).map((o) => o.port));
|
|
646
|
+
this.pruneOutgoingConnections(rowId, allowed);
|
|
647
|
+
void this.refreshPropertyViewer();
|
|
648
|
+
this.recomputeDirty();
|
|
649
|
+
});
|
|
650
|
+
void this.refreshPropertyViewer();
|
|
651
|
+
this.recomputeDirty();
|
|
652
|
+
}
|
|
653
|
+
onViewerChanged(ev) {
|
|
654
|
+
if (ev.mode === 'init') {
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
const id = this.selectedRowId();
|
|
658
|
+
if (id == null || ev.values == null) {
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
const inputs = ev.values.inputs ?? {};
|
|
662
|
+
this.activities.update((rows) => rows.map((r) => (r.id === id ? { ...r, inputs: { ...inputs } } : r)));
|
|
663
|
+
const sel = this.activities().find((r) => r.id === id);
|
|
664
|
+
if (sel?.name?.trim()) {
|
|
665
|
+
void this.activityDefService.getActivityByName(sel.name).then((def) => {
|
|
666
|
+
this.selectedActivityOutcomeRows.set(this.buildOutcomeRows(sel.id, sel, def));
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
this.recomputeDirty();
|
|
670
|
+
}
|
|
671
|
+
//#endregion
|
|
672
|
+
//#region ---- Graph persistence ----
|
|
673
|
+
gridFallbackPosition(index) {
|
|
674
|
+
return { x: 80 + (index % 4) * 320, y: 80 + Math.floor(index / 4) * 190 };
|
|
675
|
+
}
|
|
676
|
+
clampZoomLevel(value) {
|
|
677
|
+
if (Number.isNaN(value)) {
|
|
678
|
+
return 100;
|
|
679
|
+
}
|
|
680
|
+
return Math.max(20, Math.min(300, Math.round(value)));
|
|
681
|
+
}
|
|
682
|
+
initDesignerLayoutFromGraph(graph) {
|
|
683
|
+
const activities = graph?.activities ?? [];
|
|
684
|
+
const raw = graph?.designer?.nodes;
|
|
685
|
+
const next = {};
|
|
686
|
+
if (raw != null) {
|
|
687
|
+
for (const [id, v] of Object.entries(raw)) {
|
|
688
|
+
if (v != null && typeof v.x === 'number' && typeof v.y === 'number') {
|
|
689
|
+
next[id] = {
|
|
690
|
+
x: v.x,
|
|
691
|
+
y: v.y,
|
|
692
|
+
width: typeof v.width === 'number' && v.width > 0 ? v.width : DEFAULT_NODE_W,
|
|
693
|
+
height: typeof v.height === 'number' && v.height > 0 ? v.height : DEFAULT_NODE_H,
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
activities.forEach((a, i) => {
|
|
699
|
+
if (!next[a.id]) {
|
|
700
|
+
const p = this.gridFallbackPosition(i);
|
|
701
|
+
next[a.id] = { x: p.x, y: p.y, width: DEFAULT_NODE_W, height: DEFAULT_NODE_H };
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
this.designerLayout.set(next);
|
|
705
|
+
}
|
|
706
|
+
syncDesignerLayoutFromModel(model) {
|
|
707
|
+
const next = {};
|
|
708
|
+
for (const n of model.nodes) {
|
|
709
|
+
next[n.id] = {
|
|
710
|
+
x: n.position.x,
|
|
711
|
+
y: n.position.y,
|
|
712
|
+
width: n.size.width > 0 ? n.size.width : DEFAULT_NODE_W,
|
|
713
|
+
height: n.size.height > 0 ? n.size.height : DEFAULT_NODE_H,
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
this.designerLayout.set(next);
|
|
717
|
+
}
|
|
718
|
+
/** Updates persisted node coordinates only (no activity/connection graph rewrite). */
|
|
719
|
+
applyArrangedLayout() {
|
|
720
|
+
if (this.activities().length === 0) {
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
const startId = this.startActivityId().trim();
|
|
724
|
+
const arranged = arrangeWorkflowDiagram(this.designerModel(), {
|
|
725
|
+
startNodeId: startId.length > 0 ? startId : undefined,
|
|
726
|
+
gridSize: DESIGNER_GRID_SIZE,
|
|
727
|
+
});
|
|
728
|
+
this.syncDesignerLayoutFromModel(arranged);
|
|
729
|
+
this.recomputeDirty();
|
|
730
|
+
}
|
|
731
|
+
buildDesignerNodesForSave() {
|
|
732
|
+
const layout = this.designerLayout();
|
|
733
|
+
const out = {};
|
|
734
|
+
for (const [id, L] of Object.entries(layout)) {
|
|
735
|
+
out[id] = {
|
|
736
|
+
x: L.x,
|
|
737
|
+
y: L.y,
|
|
738
|
+
nodeId: id,
|
|
739
|
+
width: L.width,
|
|
740
|
+
height: L.height,
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
return out;
|
|
744
|
+
}
|
|
745
|
+
buildCurrentGraph() {
|
|
746
|
+
const base = this.baselineGraph();
|
|
747
|
+
return {
|
|
748
|
+
startActivityId: this.startActivityId(),
|
|
749
|
+
activities: this.activities().map((r) => instanceFromRow(r)),
|
|
750
|
+
connections: cloneDeep(this.connections()),
|
|
751
|
+
designer: {
|
|
752
|
+
...base?.designer,
|
|
753
|
+
nodes: this.buildDesignerNodesForSave(),
|
|
754
|
+
},
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
recomputeDirty() {
|
|
758
|
+
this.isDirty.set(!isEqual(graphFingerprint(this.buildCurrentGraph()), graphFingerprint(this.baselineGraph())));
|
|
759
|
+
this.recompute();
|
|
760
|
+
this.scheduleAutoSave();
|
|
761
|
+
}
|
|
762
|
+
clearAutoSaveTimer() {
|
|
763
|
+
if (this.autoSaveTimer != null) {
|
|
764
|
+
clearTimeout(this.autoSaveTimer);
|
|
765
|
+
this.autoSaveTimer = null;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
/** Debounced persist for designer moves, connections, arrange, and property edits. */
|
|
769
|
+
scheduleAutoSave() {
|
|
770
|
+
if (this.suppressAutoSave || !this.isDirty()) {
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
const ctx = this.context();
|
|
774
|
+
const id = typeof ctx['id'] === 'string' ? ctx['id'] : undefined;
|
|
775
|
+
if (!id) {
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
this.clearAutoSaveTimer();
|
|
779
|
+
this.autoSaveTimer = setTimeout(() => {
|
|
780
|
+
this.autoSaveTimer = null;
|
|
781
|
+
void this.runAutoSave();
|
|
782
|
+
}, AUTO_SAVE_DEBOUNCE_MS);
|
|
783
|
+
}
|
|
784
|
+
async runAutoSave() {
|
|
785
|
+
if (this.suppressAutoSave || !this.isDirty()) {
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
if (this.autoSaveInFlight) {
|
|
789
|
+
this.autoSavePending = true;
|
|
790
|
+
return;
|
|
791
|
+
}
|
|
792
|
+
this.autoSaveInFlight = true;
|
|
793
|
+
try {
|
|
794
|
+
await this.handleSaveExecute({ silent: true });
|
|
795
|
+
}
|
|
796
|
+
finally {
|
|
797
|
+
this.autoSaveInFlight = false;
|
|
798
|
+
if (this.autoSavePending) {
|
|
799
|
+
this.autoSavePending = false;
|
|
800
|
+
if (this.isDirty()) {
|
|
801
|
+
this.scheduleAutoSave();
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
async handleSaveExecute(options) {
|
|
807
|
+
this.clearAutoSaveTimer();
|
|
808
|
+
const ctx = this.context();
|
|
809
|
+
const id = typeof ctx['id'] === 'string' ? ctx['id'] : undefined;
|
|
810
|
+
if (!id) {
|
|
811
|
+
return {
|
|
812
|
+
success: false,
|
|
813
|
+
message: { text: await this.translateService.translateAsync('@general:messages.entity.invalid-data') },
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
const graph = this.buildCurrentGraph();
|
|
817
|
+
const result = await this.commandService.execute(WORKFLOW_DEFINITION_ACTIVITIES_SAVE_COMMAND, { id, graph, silent: options?.silent });
|
|
818
|
+
const execResult = (result ?? { success: false });
|
|
819
|
+
if (execResult.success) {
|
|
820
|
+
this.baselineGraph.set(cloneDeep(graph));
|
|
821
|
+
this.isDirty.set(false);
|
|
822
|
+
if (!options?.silent) {
|
|
823
|
+
this.recompute();
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
return execResult;
|
|
827
|
+
}
|
|
828
|
+
hydrateFromServerContext(ctx) {
|
|
829
|
+
this.clearAutoSaveTimer();
|
|
830
|
+
this.suppressAutoSave = true;
|
|
831
|
+
try {
|
|
832
|
+
const graph = ctx?.['graph'] ?? emptyGraph();
|
|
833
|
+
this.baselineGraph.set(cloneDeep(graph));
|
|
834
|
+
this.initDesignerLayoutFromGraph(graph);
|
|
835
|
+
this.activities.set((graph.activities ?? []).map((a) => rowFromInstance(a)));
|
|
836
|
+
this.connections.set(cloneDeep(graph.connections ?? []));
|
|
837
|
+
let start = graph.startActivityId ?? '';
|
|
838
|
+
const rows = this.activities();
|
|
839
|
+
if (!start && rows.length > 0) {
|
|
840
|
+
start = rows[0].id;
|
|
841
|
+
}
|
|
842
|
+
this.startActivityId.set(start);
|
|
843
|
+
this.selectedRowId.set(rows[0]?.id ?? null);
|
|
844
|
+
this.isDirty.set(false);
|
|
845
|
+
void this.ensureActivityCatalogLoaded();
|
|
846
|
+
for (const r of rows) {
|
|
847
|
+
void this.ensureDefinition(r.name);
|
|
848
|
+
}
|
|
849
|
+
void this.refreshPropertyViewer();
|
|
850
|
+
}
|
|
851
|
+
finally {
|
|
852
|
+
this.suppressAutoSave = false;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
applyBaselineGraph() {
|
|
856
|
+
this.clearAutoSaveTimer();
|
|
857
|
+
this.suppressAutoSave = true;
|
|
858
|
+
try {
|
|
859
|
+
const base = this.baselineGraph();
|
|
860
|
+
this.initDesignerLayoutFromGraph(base ?? undefined);
|
|
861
|
+
const rows = (base?.activities ?? []).map((a) => rowFromInstance(a));
|
|
862
|
+
this.activities.set(rows);
|
|
863
|
+
this.connections.set(cloneDeep(base?.connections ?? []));
|
|
864
|
+
let start = base?.startActivityId ?? '';
|
|
865
|
+
if (!start && rows.length > 0) {
|
|
866
|
+
start = rows[0].id;
|
|
867
|
+
}
|
|
868
|
+
this.startActivityId.set(start);
|
|
869
|
+
this.selectedRowId.set(rows[0]?.id ?? null);
|
|
870
|
+
this.isDirty.set(false);
|
|
871
|
+
for (const r of rows) {
|
|
872
|
+
void this.ensureDefinition(r.name);
|
|
873
|
+
}
|
|
874
|
+
void this.refreshPropertyViewer();
|
|
875
|
+
this.recompute();
|
|
876
|
+
}
|
|
877
|
+
finally {
|
|
878
|
+
this.suppressAutoSave = false;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
addStep() {
|
|
882
|
+
const catalog = this.activitySelectOptions();
|
|
883
|
+
const defaultName = catalog[0]?.value ?? '';
|
|
884
|
+
const row = { id: AXPDataGenerator.uuid(), name: defaultName, inputs: {} };
|
|
885
|
+
this.activities.update((list) => [...list, row]);
|
|
886
|
+
const idx = this.activities().length - 1;
|
|
887
|
+
const p = this.gridFallbackPosition(idx);
|
|
888
|
+
this.designerLayout.update((L) => ({
|
|
889
|
+
...L,
|
|
890
|
+
[row.id]: { x: p.x, y: p.y, width: DEFAULT_NODE_W, height: DEFAULT_NODE_H },
|
|
891
|
+
}));
|
|
892
|
+
this.selectedRowId.set(row.id);
|
|
893
|
+
if (!this.startActivityId() && row.id) {
|
|
894
|
+
this.startActivityId.set(row.id);
|
|
895
|
+
}
|
|
896
|
+
void this.ensureDefinition(row.name);
|
|
897
|
+
void this.refreshPropertyViewer();
|
|
898
|
+
this.recomputeDirty();
|
|
899
|
+
}
|
|
900
|
+
//#endregion
|
|
901
|
+
//#region ---- Outcomes & labels ----
|
|
902
|
+
formatActivityStepLabel(r) {
|
|
903
|
+
const shortId = r.id.length >= 8 ? r.id.slice(0, 8) : r.id;
|
|
904
|
+
const typePart = r.name?.trim() ? r.name : '…';
|
|
905
|
+
return `${typePart} (${shortId})`;
|
|
906
|
+
}
|
|
907
|
+
resolveNodeTitle(r) {
|
|
908
|
+
const ext = r.extensions;
|
|
909
|
+
const display = ext && typeof ext['displayTitle'] === 'string' ? ext['displayTitle'].trim() : '';
|
|
910
|
+
if (display) {
|
|
911
|
+
return display;
|
|
912
|
+
}
|
|
913
|
+
return this.activitySelectOptions().find((x) => x.value === r.name)?.text ?? r.name;
|
|
914
|
+
}
|
|
915
|
+
outcomeRowsFromRawDefinition(raw) {
|
|
916
|
+
if (raw == null) {
|
|
917
|
+
return [];
|
|
918
|
+
}
|
|
919
|
+
let items = [];
|
|
920
|
+
if (Array.isArray(raw)) {
|
|
921
|
+
items = raw;
|
|
922
|
+
}
|
|
923
|
+
else if (typeof raw === 'string' && raw.trim().length > 0) {
|
|
924
|
+
try {
|
|
925
|
+
const parsed = JSON.parse(raw);
|
|
926
|
+
items = Array.isArray(parsed) ? parsed : [];
|
|
927
|
+
}
|
|
928
|
+
catch {
|
|
929
|
+
return [];
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
else {
|
|
933
|
+
return [];
|
|
934
|
+
}
|
|
935
|
+
const rows = [];
|
|
936
|
+
for (const item of items) {
|
|
937
|
+
if (typeof item === 'string' && item.trim()) {
|
|
938
|
+
rows.push({ port: item, label: item });
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
if (item != null && typeof item === 'object' && !Array.isArray(item)) {
|
|
942
|
+
const o = item;
|
|
943
|
+
const portVal = o['name'] ?? o['value'] ?? o['outcome'] ?? o['port'];
|
|
944
|
+
if (typeof portVal !== 'string' || !portVal.trim()) {
|
|
945
|
+
continue;
|
|
946
|
+
}
|
|
947
|
+
const titleRaw = o['title'];
|
|
948
|
+
let label = portVal;
|
|
949
|
+
if (typeof titleRaw === 'string' && titleRaw.trim()) {
|
|
950
|
+
label = titleRaw;
|
|
951
|
+
}
|
|
952
|
+
else if (titleRaw != null && typeof titleRaw === 'object') {
|
|
953
|
+
label = this.mlResolver.resolve(titleRaw) ?? portVal;
|
|
954
|
+
}
|
|
955
|
+
rows.push({ port: portVal, label });
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
return rows;
|
|
959
|
+
}
|
|
960
|
+
outcomePortsFromConnections(activityId) {
|
|
961
|
+
const ports = new Set();
|
|
962
|
+
for (const c of this.connections()) {
|
|
963
|
+
if (c.source.activtyName === activityId) {
|
|
964
|
+
ports.add(portKey(c.source.port));
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
return [...ports];
|
|
968
|
+
}
|
|
969
|
+
outcomePortsFromTaskActions(inputs) {
|
|
970
|
+
const actions = inputs['actions'];
|
|
971
|
+
if (actions == null) {
|
|
972
|
+
return [];
|
|
973
|
+
}
|
|
974
|
+
let root = actions;
|
|
975
|
+
if (typeof actions === 'string' && actions.trim().length > 0) {
|
|
976
|
+
try {
|
|
977
|
+
root = JSON.parse(actions);
|
|
978
|
+
}
|
|
979
|
+
catch {
|
|
980
|
+
return [];
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
if (typeof root !== 'object' || root === null) {
|
|
984
|
+
return [];
|
|
985
|
+
}
|
|
986
|
+
const names = [];
|
|
987
|
+
const obj = root;
|
|
988
|
+
for (const key of ['suffix', 'prefix']) {
|
|
989
|
+
const list = obj[key];
|
|
990
|
+
if (!Array.isArray(list)) {
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
for (const entry of list) {
|
|
994
|
+
if (!entry || typeof entry !== 'object') {
|
|
995
|
+
continue;
|
|
996
|
+
}
|
|
997
|
+
const cmd = entry['command'];
|
|
998
|
+
if (cmd && typeof cmd === 'object') {
|
|
999
|
+
const n = cmd['name'];
|
|
1000
|
+
if (typeof n === 'string' && n.trim()) {
|
|
1001
|
+
names.push(n);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
return names;
|
|
1007
|
+
}
|
|
1008
|
+
buildOutcomeRows(activityId, row, def) {
|
|
1009
|
+
const map = new Map();
|
|
1010
|
+
for (const o of this.outcomeRowsFromRawDefinition(def?.outcomes)) {
|
|
1011
|
+
map.set(o.port, o);
|
|
1012
|
+
}
|
|
1013
|
+
for (const p of this.outcomePortsFromConnections(activityId)) {
|
|
1014
|
+
if (!map.has(p)) {
|
|
1015
|
+
map.set(p, { port: p, label: p });
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
if (row) {
|
|
1019
|
+
for (const p of this.outcomePortsFromTaskActions(row.inputs)) {
|
|
1020
|
+
if (!map.has(p)) {
|
|
1021
|
+
map.set(p, { port: p, label: p });
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
if (map.size === 0) {
|
|
1026
|
+
map.set('Done', { port: 'Done', label: 'Done' });
|
|
1027
|
+
}
|
|
1028
|
+
return [...map.values()].sort((a, b) => a.port.localeCompare(b.port));
|
|
1029
|
+
}
|
|
1030
|
+
pruneOutgoingConnections(sourceActivityId, allowedPorts) {
|
|
1031
|
+
this.connections.update((list) => list.filter((c) => {
|
|
1032
|
+
if (c.source.activtyName !== sourceActivityId) {
|
|
1033
|
+
return true;
|
|
1034
|
+
}
|
|
1035
|
+
return allowedPorts.has(portKey(c.source.port));
|
|
1036
|
+
}));
|
|
1037
|
+
}
|
|
1038
|
+
//#endregion
|
|
1039
|
+
//#region ---- Catalog & property viewer ----
|
|
1040
|
+
async ensureActivityCatalogLoaded() {
|
|
1041
|
+
if (this.activityCatalogLoaded()) {
|
|
1042
|
+
return;
|
|
1043
|
+
}
|
|
1044
|
+
try {
|
|
1045
|
+
const data = this.entityService
|
|
1046
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.activityDefinition.name)
|
|
1047
|
+
.data();
|
|
1048
|
+
const res = (await data.query({ skip: 0, take: 1000 }));
|
|
1049
|
+
const items = (res.items ?? [])
|
|
1050
|
+
.map((row) => {
|
|
1051
|
+
const n = row.name;
|
|
1052
|
+
const typeFallback = row.type;
|
|
1053
|
+
const valueKey = typeof n === 'string' && n.trim()
|
|
1054
|
+
? n.trim()
|
|
1055
|
+
: typeof n === 'number'
|
|
1056
|
+
? String(n)
|
|
1057
|
+
: typeof typeFallback === 'string' && typeFallback.trim()
|
|
1058
|
+
? typeFallback.trim()
|
|
1059
|
+
: typeof typeFallback === 'number'
|
|
1060
|
+
? String(typeFallback)
|
|
1061
|
+
: '';
|
|
1062
|
+
if (!valueKey) {
|
|
1063
|
+
return null;
|
|
1064
|
+
}
|
|
1065
|
+
const titleRaw = row.title;
|
|
1066
|
+
let text = valueKey;
|
|
1067
|
+
if (typeof titleRaw === 'string' && titleRaw.trim()) {
|
|
1068
|
+
text = titleRaw.trim();
|
|
1069
|
+
}
|
|
1070
|
+
else if (titleRaw != null && typeof titleRaw === 'object') {
|
|
1071
|
+
text = this.mlResolver.resolve(titleRaw) ?? valueKey;
|
|
1072
|
+
}
|
|
1073
|
+
const descriptionRaw = row.description;
|
|
1074
|
+
let description = descriptionRaw;
|
|
1075
|
+
if (typeof descriptionRaw === 'string' && descriptionRaw.trim()) {
|
|
1076
|
+
description = descriptionRaw.trim();
|
|
1077
|
+
}
|
|
1078
|
+
else if (descriptionRaw != null && typeof descriptionRaw === 'object') {
|
|
1079
|
+
description = this.mlResolver.resolve(descriptionRaw) ?? descriptionRaw;
|
|
1080
|
+
}
|
|
1081
|
+
const categoryRaw = row.category;
|
|
1082
|
+
const categoryTitleResolved = categoryRaw?.title != null
|
|
1083
|
+
? (this.mlResolver.resolve(categoryRaw.title) ?? categoryRaw.name)
|
|
1084
|
+
: 'Uncategorized';
|
|
1085
|
+
const icon = row.icon;
|
|
1086
|
+
return {
|
|
1087
|
+
value: valueKey,
|
|
1088
|
+
text: String(text).trim() || valueKey,
|
|
1089
|
+
description: description,
|
|
1090
|
+
categoryId: categoryRaw?.id ?? 'uncategorized',
|
|
1091
|
+
categoryTitle: categoryTitleResolved,
|
|
1092
|
+
icon: icon,
|
|
1093
|
+
};
|
|
1094
|
+
})
|
|
1095
|
+
.filter((x) => x != null);
|
|
1096
|
+
items.sort((a, b) => a.text.localeCompare(b.text));
|
|
1097
|
+
this.activitySelectItems.set(items);
|
|
1098
|
+
}
|
|
1099
|
+
catch {
|
|
1100
|
+
this.activitySelectItems.set([]);
|
|
1101
|
+
}
|
|
1102
|
+
finally {
|
|
1103
|
+
this.activityCatalogLoaded.set(true);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
async ensureDefinition(name) {
|
|
1107
|
+
if (!name?.trim()) {
|
|
1108
|
+
return;
|
|
1109
|
+
}
|
|
1110
|
+
if (this.activityDefCache()[name]) {
|
|
1111
|
+
return;
|
|
1112
|
+
}
|
|
1113
|
+
const def = await this.activityDefService.getActivityByName(name);
|
|
1114
|
+
if (def) {
|
|
1115
|
+
this.activityDefCache.update((c) => ({ ...c, [name]: def }));
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
async refreshPropertyViewer() {
|
|
1119
|
+
const row = this.selectedRow();
|
|
1120
|
+
if (row == null || row.name.trim() === '') {
|
|
1121
|
+
this.viewerTabs.set([]);
|
|
1122
|
+
this.selectedActivityOutcomeRows.set([]);
|
|
1123
|
+
setTimeout(() => this.propertyViewerRef()?.initializeContext({ inputs: {} }), 0);
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
const def = await this.activityDefService.getActivityByName(row.name);
|
|
1127
|
+
if (def) {
|
|
1128
|
+
this.activityDefCache.update((c) => ({ ...c, [row.name]: def }));
|
|
1129
|
+
}
|
|
1130
|
+
const rowLatest = this.activities().find((r) => r.id === row.id) ?? row;
|
|
1131
|
+
this.selectedActivityOutcomeRows.set(this.buildOutcomeRows(row.id, rowLatest, def));
|
|
1132
|
+
const inputProps = normalizeActivityDefinitionInputs(def?.inputs);
|
|
1133
|
+
const group = { name: 'activity-inputs', title: 'Inputs', order: 0 };
|
|
1134
|
+
const widgetProps = inputProps.map((p, index) => mapAXPPropertyToWidgetProperty(p, {
|
|
1135
|
+
group,
|
|
1136
|
+
order: index,
|
|
1137
|
+
valuePathPrefix: 'inputs',
|
|
1138
|
+
resolveTitle: (prop) => typeof prop.title === 'string' ? prop.title : (this.mlResolver.resolve(prop.title) ?? prop.name),
|
|
1139
|
+
resolveDescription: (prop) => prop.description === undefined
|
|
1140
|
+
? undefined
|
|
1141
|
+
: typeof prop.description === 'string'
|
|
1142
|
+
? prop.description
|
|
1143
|
+
: this.mlResolver.resolve(prop.description),
|
|
1144
|
+
}));
|
|
1145
|
+
this.viewerTabs.set(buildPropertyViewerTabsFromProperties(widgetProps));
|
|
1146
|
+
setTimeout(() => {
|
|
1147
|
+
const current = this.activities().find((r) => r.id === row.id);
|
|
1148
|
+
this.propertyViewerRef()?.initializeContext({ inputs: cloneDeep(current?.inputs ?? {}) });
|
|
1149
|
+
}, 0);
|
|
1150
|
+
}
|
|
1151
|
+
//#endregion
|
|
1152
|
+
//#region ---- Utilities ----
|
|
1153
|
+
recompute() {
|
|
1154
|
+
super.recompute();
|
|
1155
|
+
const maybeLayout = this.hostPageLayout;
|
|
1156
|
+
maybeLayout.recompute?.();
|
|
1157
|
+
}
|
|
1158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowDefinitionActivitiesPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMWorkflowDefinitionActivitiesPageComponent, isStandalone: true, selector: "axm-workflow-definition-activities-page", inputs: { rootContext: { classPropertyName: "rootContext", publicName: "rootContext", isSignal: true, isRequired: false, transformFunction: null }, pageConfig: { classPropertyName: "pageConfig", publicName: "pageConfig", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: block; width: 100%; height: 100%;" }, providers: [{ provide: AXPPageLayoutBase, useExisting: AXMWorkflowDefinitionActivitiesPageComponent }], viewQueries: [{ propertyName: "propertyViewerRef", first: true, predicate: AXPPropertyViewerComponent, descendants: true, isSignal: true }, { propertyName: "workflowDesignerRef", first: true, predicate: AXPWorkflowDesignerComponent, descendants: true, isSignal: true }, { propertyName: "contextMenu", first: true, predicate: AXContextMenuComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- <axp-page-toolbar>\n <axp-layout-suffix>\n <div class=\"axm-workflow-definition-activities__toolbar-group\">\n <ax-button>\n <ax-icon icon=\"fa-light fa-sliders\"></ax-icon>\n <ax-dropdown-panel>\n <div class=\"axm-workflow-definition-activities__appearance-panel\">\n <label class=\"axm-workflow-definition-activities__pattern-label\" for=\"background-pattern-select\"\n >Background Pattern</label\n >\n <select\n id=\"background-pattern-select\"\n class=\"axm-workflow-definition-activities__pattern-select\"\n [value]=\"backgroundPattern()\"\n (change)=\"onBackgroundPatternChange($event)\"\n >\n <option value=\"dots\">Dots</option>\n <option value=\"line\">Lines</option>\n </select>\n </div>\n </ax-dropdown-panel>\n </ax-button>\n <ax-button (onClick)=\"toggleFullscreen()\">\n <ax-icon>\n <i class=\"fa-solid\" [class]=\"isFullscreen() ? 'fa-compress' : 'fa-expand'\"></i>\n </ax-icon>\n </ax-button>\n <ax-button (onClick)=\"toggleInfoPanel()\">\n <ax-icon [icon]=\"isInfoPanelOpen() ? 'fa-solid fa-square-info' : 'fa-light fa-square-info'\"></ax-icon>\n </ax-button>\n </div>\n </axp-layout-suffix>\n </axp-page-toolbar> -->\n\n<div\n class=\"axm-workflow-definition-activities\"\n [class.axm-workflow-definition-activities--with-palette]=\"isPaletteOpen()\"\n [class.axm-workflow-definition-activities--with-info]=\"isInfoPanelOpen()\"\n>\n @if (isPaletteOpen()) {\n <aside class=\"axm-workflow-definition-activities__palette\">\n <div class=\"axm-workflow-definition-activities__palette-head\">\n <div class=\"axm-workflow-definition-activities__palette-head-row\">\n <h3 class=\"axm-workflow-definition-activities__title\">\n {{\n ('@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.add-step'\n | translate\n | async) ?? 'Activities'\n }}\n </h3>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"closePalette()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n <p class=\"axm-workflow-definition-activities__palette-sub\">\n {{\n ('@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.connections.hint'\n | translate\n | async) ?? ''\n }}\n </p>\n <ax-search-box\n class=\"axm-workflow-definition-activities__palette-search ax-sm\"\n [value]=\"paletteSearchTerm()\"\n (onValueChanged)=\"onPaletteSearchChange($event)\"\n [placeholder]=\"'@general:search.title' | translate | async\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n <div class=\"axm-workflow-definition-activities__palette-list\">\n <div class=\"axm-workflow-definition-activities__accordion-group\" axAccordionGroup [accordion]=\"false\">\n @for (group of filteredPaletteGroups(); track group.id) {\n @if (group.items.length > 0) {\n <section\n class=\"axm-workflow-definition-activities__accordion-item\"\n axAccordionItem\n [isCollapsed]=\"false\"\n #acc=\"axAccordionItem\"\n >\n <header\n class=\"axm-workflow-definition-activities__accordion-header\"\n axAccordionItemHeader\n role=\"button\"\n >\n <div class=\"axm-workflow-definition-activities__accordion-header-main\">\n <span class=\"axm-workflow-definition-activities__accordion-title\">{{ group.title }}</span>\n </div>\n <span class=\"axm-workflow-definition-activities__accordion-chevron\">\n <i [class]=\"acc.isCollapsed() ? 'fa-light fa-chevron-down' : 'fa-light fa-chevron-up'\"></i>\n </span>\n </header>\n <div class=\"axm-workflow-definition-activities__accordion-content\" axAccordionItemContent>\n @for (item of group.items; track item.type) {\n <button\n type=\"button\"\n class=\"axm-workflow-definition-activities__palette-item\"\n [axpWorkflowPaletteItem]=\"item\"\n >\n <span class=\"axm-workflow-definition-activities__palette-item-icon\" aria-hidden=\"true\">\n <i [class]=\"'fa-light ' + item.icon\"></i>\n </span>\n <span class=\"axm-workflow-definition-activities__palette-item-body\">\n <span class=\"axm-workflow-definition-activities__palette-item-title\">{{ item.title }}</span>\n <span class=\"axm-workflow-definition-activities__palette-item-meta\">{{\n item.description\n }}</span>\n </span>\n </button>\n }\n </div>\n </section>\n }\n }\n </div>\n </div>\n </aside>\n }\n\n <div class=\"axm-workflow-definition-activities__main\">\n <section class=\"axm-workflow-definition-activities__canvas\" (contextmenu)=\"onDesignerSurfaceContextMenu($event)\">\n <axp-workflow-designer\n [model]=\"designerModel()\"\n [backgroundPattern]=\"backgroundPattern()\"\n (zoomChange)=\"onDesignerZoomChange($event)\"\n (modelChange)=\"onDesignerModelChange($event)\"\n (activationChange)=\"onDesignerActivationChange($event)\"\n (nodeContextMenu)=\"onDesignerNodeContextMenu($event)\"\n ></axp-workflow-designer>\n <ax-context-menu\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleWorkflowContextMenuItemClick($event)\"\n />\n <axp-layout-floating-zoom-bar\n [zoomLevel]=\"zoomLevel()\"\n (zoomIn)=\"zoomIn()\"\n (zoomOut)=\"zoomOut()\"\n (zoomReset)=\"zoomReset()\"\n />\n </section>\n </div>\n @if (isInfoPanelOpen()) {\n <axp-layout-side-detail-panel\n class=\"axm-workflow-definition-activities__info ax-sticky ax-top-0 ax-z-10 ax-max-h-full ax-flex-none\"\n [header]=\"workflowDetailPanelHeader()\"\n [rows]=\"workflowDetailPanelRows()\"\n [emptyState]=\"workflowDetailPanelEmptyState()\"\n (panelClose)=\"toggleInfoPanel()\"\n />\n }\n</div>\n", styles: [".axm-workflow-definition-activities{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;height:100%;gap:.75rem}.axm-workflow-definition-activities--with-palette{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.axm-workflow-definition-activities--with-info:not(.axm-workflow-definition-activities--with-palette){grid-template-columns:minmax(0,1fr) minmax(260px,320px)}.axm-workflow-definition-activities--with-palette.axm-workflow-definition-activities--with-info{grid-template-columns:minmax(260px,300px) minmax(0,1fr) minmax(260px,320px)}.axm-workflow-definition-activities--fullscreen{position:fixed;inset:0;z-index:400;height:100vh;background:rgb(var(--ax-sys-color-lightest-surface));padding:.75rem}.axm-workflow-definition-activities__palette{display:flex;flex-direction:column;gap:.75rem;min-height:0;padding:.5rem;border-radius:16px}.axm-workflow-definition-activities__palette-head{display:flex;flex-direction:column;gap:.5rem}.axm-workflow-definition-activities__palette-head-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.axm-workflow-definition-activities__palette-sub{margin:0;font-size:.75rem;line-height:1.35;color:var(--ax-sys-color-on-light-surface)}.axm-workflow-definition-activities__palette-search{width:100%}.axm-workflow-definition-activities__main{display:flex;flex-direction:column;gap:.75rem;min-height:0;min-width:0}.axm-workflow-definition-activities__toolbar{display:flex;justify-content:flex-end}.axm-workflow-definition-activities__toolbar-group{display:inline-flex;align-items:center;gap:.5rem}.axm-workflow-definition-activities__appearance-panel{display:flex;flex-direction:column;gap:.75rem;min-width:220px;padding:.35rem}.axm-workflow-definition-activities__zoom-actions{display:flex;align-items:center;gap:.4rem}.axm-workflow-definition-activities__pattern-label{font-size:.75rem;color:var(--ax-sys-color-on-light-surface)}.axm-workflow-definition-activities__pattern-select{border-radius:8px;min-height:34px;border:1px solid rgb(var(--ax-sys-color-border-surface));background:rgb(var(--ax-sys-color-surface));color:var(--ax-sys-color-on-surface);padding:0 .5rem}.axm-workflow-definition-activities__canvas{position:relative;flex:1 1 auto;min-height:min(70vh,720px);border-radius:16px;overflow:hidden;background:var(--ax-sys-color-surface)}.axm-workflow-definition-activities__canvas axp-workflow-designer{display:block;width:100%;height:100%;min-height:inherit}.axm-workflow-definition-activities__title{margin:0;font-size:.9375rem;font-weight:700;letter-spacing:-.01em;color:var(--ax-sys-color-on-surface)}.axm-workflow-definition-activities__palette-list{display:flex;flex-direction:column;gap:.45rem;overflow:auto;padding-inline-end:2px;margin-inline-end:-2px}.axm-workflow-definition-activities__accordion-group{display:flex;flex-direction:column;gap:.45rem}.axm-workflow-definition-activities__accordion-item{border-radius:12px;overflow:hidden;transition:border-color .15s ease}.axm-workflow-definition-activities__accordion-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.62rem .7rem;cursor:pointer;-webkit-user-select:none;user-select:none}.axm-workflow-definition-activities__accordion-header-main{display:inline-flex;align-items:center;gap:.45rem;min-width:0}.axm-workflow-definition-activities__accordion-title{font-size:.8125rem;font-weight:700;line-height:1.25;color:var(--ax-sys-color-on-surface)}.axm-workflow-definition-activities__accordion-content{display:flex;flex-direction:column;gap:.4rem}.axm-workflow-definition-activities__accordion-chevron{color:var(--ax-sys-color-on-light-surface);font-size:.8rem;line-height:1}.axm-workflow-definition-activities__palette-item{position:relative;display:flex;align-items:center;gap:.65rem;width:100%;padding:.4rem .55rem;border-radius:12px;color:var(--ax-sys-color-on-surface);cursor:grab;text-align:left;font:inherit;transition:border-color .15s ease}.axm-workflow-definition-activities__palette-item:hover{background-color:rgb(var(--ax-sys-color-primary-50))}.axm-workflow-definition-activities__palette-item:active{cursor:grabbing;background-color:rgb(var(--ax-sys-color-primary-100))}.axm-workflow-definition-activities__palette-item-icon{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;flex-shrink:0;border-radius:10px;color:rgb(var(--ax-sys-color-primary-600));font-size:1rem}.axm-workflow-definition-activities__palette-item-body{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1}.axm-workflow-definition-activities__palette-item-title{font-size:.8125rem;font-weight:600;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.axm-workflow-definition-activities__palette-item-meta{font-size:.6875rem;font-family:ui-monospace,monospace;color:var(--ax-sys-color-on-light-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.axm-workflow-definition-activities__palette-item-grip{flex-shrink:0;font-size:.85rem;opacity:.35;color:var(--ax-sys-color-on-light-surface)}.axm-workflow-definition-activities__info{min-height:0}@media(max-width:1100px){.axm-workflow-definition-activities{grid-template-columns:1fr;min-height:auto}.axm-workflow-definition-activities__palette{max-height:280px}.axm-workflow-definition-activities__canvas{min-height:480px}.axm-workflow-definition-activities__info{max-height:280px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXAccordionCdkModule }, { kind: "directive", type: i1.AXAccordionGroupDirective, selector: "[axAccordionGroup]", inputs: ["accordion", "activeIndex", "collapsedOnItemClick"], exportAs: ["axAccordionGroup"] }, { kind: "directive", type: i1.AXAccordionItemContentDirective, selector: "[axAccordionItemContent]", inputs: ["transition"], exportAs: ["axAccordionItemContent"] }, { kind: "directive", type: i1.AXAccordionItemHeaderDirective, selector: "[axAccordionItemHeader]", exportAs: ["axAccordionItemHeader"] }, { kind: "directive", type: i1.AXAccordionItemDirective, selector: "[axAccordionItem]", inputs: ["isCollapsed"], outputs: ["isCollapsedChange", "onClick"], exportAs: ["axAccordionItem"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.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: AXMenuModule }, { kind: "component", type: i3.AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening", "onClose"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i4$1.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPLayoutFloatingZoomBarComponent, selector: "axp-layout-floating-zoom-bar", inputs: ["zoomLevel"], outputs: ["zoomIn", "zoomOut", "zoomReset"] }, { kind: "component", type: AXPLayoutSideDetailPanelComponent, selector: "axp-layout-side-detail-panel", inputs: ["multiSelectLabel", "header", "sections", "rows", "rowsSectionTitle", "noRowsMessage", "emptyState"], outputs: ["panelClose"] }, { kind: "component", type: AXPWorkflowDesignerComponent, selector: "axp-workflow-designer", inputs: ["model", "readonly", "gridSize", "snapToGrid", "connectionPreviewStyle", "backgroundPattern", "canConnect", "paletteItems", "showPortLabels", "nodeBodyTemplate"], outputs: ["modelChange", "zoomChange", "designerPointerDown", "designerClick", "designerDoubleClick", "nodePointerDown", "nodeClick", "nodeDoubleClick", "nodeContextMenu", "nodeDragStart", "nodeDragEnd", "portPointerDown", "linkDragStart", "linkDragMove", "linkDragEnd", "connectorClick", "connectorDoubleClick", "connectionCreated", "connectionRejected", "activationChange"] }, { kind: "directive", type: AXPWorkflowPaletteItemDragDirective, selector: "[axpWorkflowPaletteItem]", inputs: ["axpWorkflowPaletteItem", "axpWorkflowPaletteDragDisabled"], outputs: ["axpWorkflowPaletteDragStart", "axpWorkflowPaletteDragEnd"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1160
|
+
}
|
|
1161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowDefinitionActivitiesPageComponent, decorators: [{
|
|
1162
|
+
type: Component,
|
|
1163
|
+
args: [{ selector: 'axm-workflow-definition-activities-page', imports: [
|
|
1164
|
+
CommonModule,
|
|
1165
|
+
FormsModule,
|
|
1166
|
+
AXAccordionCdkModule,
|
|
1167
|
+
AXButtonModule,
|
|
1168
|
+
AXMenuModule,
|
|
1169
|
+
AXDecoratorModule,
|
|
1170
|
+
AXDropdownModule,
|
|
1171
|
+
AXFormModule,
|
|
1172
|
+
AXSearchBoxModule,
|
|
1173
|
+
AXSelectBoxModule,
|
|
1174
|
+
AXTranslationModule,
|
|
1175
|
+
AXPLayoutFloatingZoomBarComponent,
|
|
1176
|
+
AXPLayoutSideDetailPanelComponent,
|
|
1177
|
+
AXPWorkflowDesignerComponent,
|
|
1178
|
+
AXPWorkflowPaletteItemDragDirective,
|
|
1179
|
+
], host: {
|
|
1180
|
+
style: 'display: block; width: 100%; height: 100%;',
|
|
1181
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: AXPPageLayoutBase, useExisting: AXMWorkflowDefinitionActivitiesPageComponent }], template: "<!-- <axp-page-toolbar>\n <axp-layout-suffix>\n <div class=\"axm-workflow-definition-activities__toolbar-group\">\n <ax-button>\n <ax-icon icon=\"fa-light fa-sliders\"></ax-icon>\n <ax-dropdown-panel>\n <div class=\"axm-workflow-definition-activities__appearance-panel\">\n <label class=\"axm-workflow-definition-activities__pattern-label\" for=\"background-pattern-select\"\n >Background Pattern</label\n >\n <select\n id=\"background-pattern-select\"\n class=\"axm-workflow-definition-activities__pattern-select\"\n [value]=\"backgroundPattern()\"\n (change)=\"onBackgroundPatternChange($event)\"\n >\n <option value=\"dots\">Dots</option>\n <option value=\"line\">Lines</option>\n </select>\n </div>\n </ax-dropdown-panel>\n </ax-button>\n <ax-button (onClick)=\"toggleFullscreen()\">\n <ax-icon>\n <i class=\"fa-solid\" [class]=\"isFullscreen() ? 'fa-compress' : 'fa-expand'\"></i>\n </ax-icon>\n </ax-button>\n <ax-button (onClick)=\"toggleInfoPanel()\">\n <ax-icon [icon]=\"isInfoPanelOpen() ? 'fa-solid fa-square-info' : 'fa-light fa-square-info'\"></ax-icon>\n </ax-button>\n </div>\n </axp-layout-suffix>\n </axp-page-toolbar> -->\n\n<div\n class=\"axm-workflow-definition-activities\"\n [class.axm-workflow-definition-activities--with-palette]=\"isPaletteOpen()\"\n [class.axm-workflow-definition-activities--with-info]=\"isInfoPanelOpen()\"\n>\n @if (isPaletteOpen()) {\n <aside class=\"axm-workflow-definition-activities__palette\">\n <div class=\"axm-workflow-definition-activities__palette-head\">\n <div class=\"axm-workflow-definition-activities__palette-head-row\">\n <h3 class=\"axm-workflow-definition-activities__title\">\n {{\n ('@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.add-step'\n | translate\n | async) ?? 'Activities'\n }}\n </h3>\n <ax-button [look]=\"'blank'\" class=\"ax-sm ax-rounded-full\" (onClick)=\"closePalette()\">\n <ax-icon icon=\"fa-solid fa-xmark\"></ax-icon>\n </ax-button>\n </div>\n <p class=\"axm-workflow-definition-activities__palette-sub\">\n {{\n ('@workflow-management:workflow-definitions.entities.workflow-definition.pages.activities.connections.hint'\n | translate\n | async) ?? ''\n }}\n </p>\n <ax-search-box\n class=\"axm-workflow-definition-activities__palette-search ax-sm\"\n [value]=\"paletteSearchTerm()\"\n (onValueChanged)=\"onPaletteSearchChange($event)\"\n [placeholder]=\"'@general:search.title' | translate | async\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n <div class=\"axm-workflow-definition-activities__palette-list\">\n <div class=\"axm-workflow-definition-activities__accordion-group\" axAccordionGroup [accordion]=\"false\">\n @for (group of filteredPaletteGroups(); track group.id) {\n @if (group.items.length > 0) {\n <section\n class=\"axm-workflow-definition-activities__accordion-item\"\n axAccordionItem\n [isCollapsed]=\"false\"\n #acc=\"axAccordionItem\"\n >\n <header\n class=\"axm-workflow-definition-activities__accordion-header\"\n axAccordionItemHeader\n role=\"button\"\n >\n <div class=\"axm-workflow-definition-activities__accordion-header-main\">\n <span class=\"axm-workflow-definition-activities__accordion-title\">{{ group.title }}</span>\n </div>\n <span class=\"axm-workflow-definition-activities__accordion-chevron\">\n <i [class]=\"acc.isCollapsed() ? 'fa-light fa-chevron-down' : 'fa-light fa-chevron-up'\"></i>\n </span>\n </header>\n <div class=\"axm-workflow-definition-activities__accordion-content\" axAccordionItemContent>\n @for (item of group.items; track item.type) {\n <button\n type=\"button\"\n class=\"axm-workflow-definition-activities__palette-item\"\n [axpWorkflowPaletteItem]=\"item\"\n >\n <span class=\"axm-workflow-definition-activities__palette-item-icon\" aria-hidden=\"true\">\n <i [class]=\"'fa-light ' + item.icon\"></i>\n </span>\n <span class=\"axm-workflow-definition-activities__palette-item-body\">\n <span class=\"axm-workflow-definition-activities__palette-item-title\">{{ item.title }}</span>\n <span class=\"axm-workflow-definition-activities__palette-item-meta\">{{\n item.description\n }}</span>\n </span>\n </button>\n }\n </div>\n </section>\n }\n }\n </div>\n </div>\n </aside>\n }\n\n <div class=\"axm-workflow-definition-activities__main\">\n <section class=\"axm-workflow-definition-activities__canvas\" (contextmenu)=\"onDesignerSurfaceContextMenu($event)\">\n <axp-workflow-designer\n [model]=\"designerModel()\"\n [backgroundPattern]=\"backgroundPattern()\"\n (zoomChange)=\"onDesignerZoomChange($event)\"\n (modelChange)=\"onDesignerModelChange($event)\"\n (activationChange)=\"onDesignerActivationChange($event)\"\n (nodeContextMenu)=\"onDesignerNodeContextMenu($event)\"\n ></axp-workflow-designer>\n <ax-context-menu\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onItemClick)=\"handleWorkflowContextMenuItemClick($event)\"\n />\n <axp-layout-floating-zoom-bar\n [zoomLevel]=\"zoomLevel()\"\n (zoomIn)=\"zoomIn()\"\n (zoomOut)=\"zoomOut()\"\n (zoomReset)=\"zoomReset()\"\n />\n </section>\n </div>\n @if (isInfoPanelOpen()) {\n <axp-layout-side-detail-panel\n class=\"axm-workflow-definition-activities__info ax-sticky ax-top-0 ax-z-10 ax-max-h-full ax-flex-none\"\n [header]=\"workflowDetailPanelHeader()\"\n [rows]=\"workflowDetailPanelRows()\"\n [emptyState]=\"workflowDetailPanelEmptyState()\"\n (panelClose)=\"toggleInfoPanel()\"\n />\n }\n</div>\n", styles: [".axm-workflow-definition-activities{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;height:100%;gap:.75rem}.axm-workflow-definition-activities--with-palette{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.axm-workflow-definition-activities--with-info:not(.axm-workflow-definition-activities--with-palette){grid-template-columns:minmax(0,1fr) minmax(260px,320px)}.axm-workflow-definition-activities--with-palette.axm-workflow-definition-activities--with-info{grid-template-columns:minmax(260px,300px) minmax(0,1fr) minmax(260px,320px)}.axm-workflow-definition-activities--fullscreen{position:fixed;inset:0;z-index:400;height:100vh;background:rgb(var(--ax-sys-color-lightest-surface));padding:.75rem}.axm-workflow-definition-activities__palette{display:flex;flex-direction:column;gap:.75rem;min-height:0;padding:.5rem;border-radius:16px}.axm-workflow-definition-activities__palette-head{display:flex;flex-direction:column;gap:.5rem}.axm-workflow-definition-activities__palette-head-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.axm-workflow-definition-activities__palette-sub{margin:0;font-size:.75rem;line-height:1.35;color:var(--ax-sys-color-on-light-surface)}.axm-workflow-definition-activities__palette-search{width:100%}.axm-workflow-definition-activities__main{display:flex;flex-direction:column;gap:.75rem;min-height:0;min-width:0}.axm-workflow-definition-activities__toolbar{display:flex;justify-content:flex-end}.axm-workflow-definition-activities__toolbar-group{display:inline-flex;align-items:center;gap:.5rem}.axm-workflow-definition-activities__appearance-panel{display:flex;flex-direction:column;gap:.75rem;min-width:220px;padding:.35rem}.axm-workflow-definition-activities__zoom-actions{display:flex;align-items:center;gap:.4rem}.axm-workflow-definition-activities__pattern-label{font-size:.75rem;color:var(--ax-sys-color-on-light-surface)}.axm-workflow-definition-activities__pattern-select{border-radius:8px;min-height:34px;border:1px solid rgb(var(--ax-sys-color-border-surface));background:rgb(var(--ax-sys-color-surface));color:var(--ax-sys-color-on-surface);padding:0 .5rem}.axm-workflow-definition-activities__canvas{position:relative;flex:1 1 auto;min-height:min(70vh,720px);border-radius:16px;overflow:hidden;background:var(--ax-sys-color-surface)}.axm-workflow-definition-activities__canvas axp-workflow-designer{display:block;width:100%;height:100%;min-height:inherit}.axm-workflow-definition-activities__title{margin:0;font-size:.9375rem;font-weight:700;letter-spacing:-.01em;color:var(--ax-sys-color-on-surface)}.axm-workflow-definition-activities__palette-list{display:flex;flex-direction:column;gap:.45rem;overflow:auto;padding-inline-end:2px;margin-inline-end:-2px}.axm-workflow-definition-activities__accordion-group{display:flex;flex-direction:column;gap:.45rem}.axm-workflow-definition-activities__accordion-item{border-radius:12px;overflow:hidden;transition:border-color .15s ease}.axm-workflow-definition-activities__accordion-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.62rem .7rem;cursor:pointer;-webkit-user-select:none;user-select:none}.axm-workflow-definition-activities__accordion-header-main{display:inline-flex;align-items:center;gap:.45rem;min-width:0}.axm-workflow-definition-activities__accordion-title{font-size:.8125rem;font-weight:700;line-height:1.25;color:var(--ax-sys-color-on-surface)}.axm-workflow-definition-activities__accordion-content{display:flex;flex-direction:column;gap:.4rem}.axm-workflow-definition-activities__accordion-chevron{color:var(--ax-sys-color-on-light-surface);font-size:.8rem;line-height:1}.axm-workflow-definition-activities__palette-item{position:relative;display:flex;align-items:center;gap:.65rem;width:100%;padding:.4rem .55rem;border-radius:12px;color:var(--ax-sys-color-on-surface);cursor:grab;text-align:left;font:inherit;transition:border-color .15s ease}.axm-workflow-definition-activities__palette-item:hover{background-color:rgb(var(--ax-sys-color-primary-50))}.axm-workflow-definition-activities__palette-item:active{cursor:grabbing;background-color:rgb(var(--ax-sys-color-primary-100))}.axm-workflow-definition-activities__palette-item-icon{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;flex-shrink:0;border-radius:10px;color:rgb(var(--ax-sys-color-primary-600));font-size:1rem}.axm-workflow-definition-activities__palette-item-body{display:flex;flex-direction:column;gap:.1rem;min-width:0;flex:1}.axm-workflow-definition-activities__palette-item-title{font-size:.8125rem;font-weight:600;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.axm-workflow-definition-activities__palette-item-meta{font-size:.6875rem;font-family:ui-monospace,monospace;color:var(--ax-sys-color-on-light-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.axm-workflow-definition-activities__palette-item-grip{flex-shrink:0;font-size:.85rem;opacity:.35;color:var(--ax-sys-color-on-light-surface)}.axm-workflow-definition-activities__info{min-height:0}@media(max-width:1100px){.axm-workflow-definition-activities{grid-template-columns:1fr;min-height:auto}.axm-workflow-definition-activities__palette{max-height:280px}.axm-workflow-definition-activities__canvas{min-height:480px}.axm-workflow-definition-activities__info{max-height:280px}}\n"] }]
|
|
1182
|
+
}], ctorParameters: () => [], propDecorators: { rootContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootContext", required: false }] }], pageConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageConfig", required: false }] }], propertyViewerRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPPropertyViewerComponent), { isSignal: true }] }], workflowDesignerRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPWorkflowDesignerComponent), { isSignal: true }] }], contextMenu: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXContextMenuComponent), { isSignal: true }] }] } });
|
|
1183
|
+
|
|
1184
|
+
var workflowDefinitionActivitiesPage_component = /*#__PURE__*/Object.freeze({
|
|
1185
|
+
__proto__: null,
|
|
1186
|
+
AXMWorkflowDefinitionActivitiesPageComponent: AXMWorkflowDefinitionActivitiesPageComponent
|
|
1187
|
+
});
|
|
1188
|
+
|
|
1189
|
+
//#region ---- Workflow Definition Activities Page Provider ----
|
|
1190
|
+
class AXMWorkflowDefinitionActivitiesPageComponentProvider {
|
|
1191
|
+
async components() {
|
|
1192
|
+
return [
|
|
1193
|
+
{
|
|
1194
|
+
key: WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY,
|
|
1195
|
+
loader: () => Promise.resolve().then(function () { return workflowDefinitionActivitiesPage_component; }).then((m) => m.AXMWorkflowDefinitionActivitiesPageComponent),
|
|
1196
|
+
},
|
|
1197
|
+
];
|
|
1198
|
+
}
|
|
1199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowDefinitionActivitiesPageComponentProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1200
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowDefinitionActivitiesPageComponentProvider }); }
|
|
1201
|
+
}
|
|
1202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMWorkflowDefinitionActivitiesPageComponentProvider, decorators: [{
|
|
1203
|
+
type: Injectable
|
|
1204
|
+
}] });
|
|
1205
|
+
|
|
1206
|
+
export { AXMWorkflowDefinitionActivitiesPageComponent, AXMWorkflowDefinitionActivitiesPageComponentProvider, WORKFLOW_DEFINITION_ACTIVITIES_PAGE_COMPONENT_KEY };
|
|
1207
|
+
//# sourceMappingURL=acorex-modules-workflow-management-index-BxqOP8AA.mjs.map
|