@acorex/modules 21.0.0-beta.14 → 21.0.0-beta.15

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.
Files changed (311) hide show
  1. package/ai-management/README.md +1 -0
  2. package/fesm2022/{acorex-modules-ai-management-assist.entity-513RdKsz.mjs → acorex-modules-ai-management-assist.entity-CnyoIO-Z.mjs} +24 -16
  3. package/fesm2022/acorex-modules-ai-management-assist.entity-CnyoIO-Z.mjs.map +1 -0
  4. package/fesm2022/acorex-modules-ai-management.mjs +374 -35
  5. package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
  6. package/fesm2022/{acorex-modules-assessment-management-acorex-modules-assessment-management-D5JC6vun.mjs → acorex-modules-assessment-management-acorex-modules-assessment-management-D_Gz7bT1.mjs} +69 -509
  7. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-D_Gz7bT1.mjs.map +1 -0
  8. package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-CueA6eek.mjs → acorex-modules-assessment-management-assessment-case.entity-4pIZ5888.mjs} +2 -2
  9. package/fesm2022/{acorex-modules-assessment-management-assessment-case.entity-CueA6eek.mjs.map → acorex-modules-assessment-management-assessment-case.entity-4pIZ5888.mjs.map} +1 -1
  10. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-CHlf7QhJ.mjs → acorex-modules-assessment-management-assessment-session.entity-D0crKeSd.mjs} +2 -2
  11. package/fesm2022/{acorex-modules-assessment-management-assessment-session.entity-CHlf7QhJ.mjs.map → acorex-modules-assessment-management-assessment-session.entity-D0crKeSd.mjs.map} +1 -1
  12. package/fesm2022/{acorex-modules-assessment-management-fill-assessment-session.command-B_vRBxdF.mjs → acorex-modules-assessment-management-fill-assessment-session.command-Dy4pzGtU.mjs} +59 -85
  13. package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-Dy4pzGtU.mjs.map +1 -0
  14. package/fesm2022/{acorex-modules-assessment-management-index-DHebgRT4.mjs → acorex-modules-assessment-management-index-Ck5h5W4e.mjs} +4 -4
  15. package/fesm2022/{acorex-modules-assessment-management-index-DHebgRT4.mjs.map → acorex-modules-assessment-management-index-Ck5h5W4e.mjs.map} +1 -1
  16. package/fesm2022/{acorex-modules-assessment-management-preview-question.command-yyHW6dRW.mjs → acorex-modules-assessment-management-preview-question.command-PQwY-kI6.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-assessment-management-preview-question.command-yyHW6dRW.mjs.map → acorex-modules-assessment-management-preview-question.command-PQwY-kI6.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-CUw3O9Y9.mjs → acorex-modules-assessment-management-preview-questionnaire.command-0iL71_WM.mjs} +8 -8
  19. package/fesm2022/{acorex-modules-assessment-management-preview-questionnaire.command-CUw3O9Y9.mjs.map → acorex-modules-assessment-management-preview-questionnaire.command-0iL71_WM.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DxD6BjtU.mjs → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BZyVItYj.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-DxD6BjtU.mjs.map → acorex-modules-assessment-management-question-bank-interface-editor-widget-edit.component-BZyVItYj.mjs.map} +1 -1
  22. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CoL8v4S_.mjs → acorex-modules-assessment-management-question-bank-item.entity-DWTpoe1I.mjs} +2 -2
  23. package/fesm2022/{acorex-modules-assessment-management-question-bank-item.entity-CoL8v4S_.mjs.map → acorex-modules-assessment-management-question-bank-item.entity-DWTpoe1I.mjs.map} +1 -1
  24. package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-QJ21IWrq.mjs → acorex-modules-assessment-management-questionnaire-calculation.entity-CbN8YZHZ.mjs} +2 -2
  25. package/fesm2022/{acorex-modules-assessment-management-questionnaire-calculation.entity-QJ21IWrq.mjs.map → acorex-modules-assessment-management-questionnaire-calculation.entity-CbN8YZHZ.mjs.map} +1 -1
  26. package/fesm2022/{acorex-modules-assessment-management-questionnaire-viewer-popup.component-dbBLqNjn.mjs → acorex-modules-assessment-management-questionnaire-viewer-popup.component-D85dLyKO.mjs} +205 -11
  27. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-D85dLyKO.mjs.map +1 -0
  28. package/fesm2022/{acorex-modules-assessment-management-questionnaire.entity-BjWwHS-u.mjs → acorex-modules-assessment-management-questionnaire.entity-A9XAQcf3.mjs} +40 -3
  29. package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-A9XAQcf3.mjs.map +1 -0
  30. package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-D1BySAb5.mjs → acorex-modules-assessment-management-save-questionnaire-questions.command-CnP1R9Be.mjs} +2 -2
  31. package/fesm2022/{acorex-modules-assessment-management-save-questionnaire-questions.command-D1BySAb5.mjs.map → acorex-modules-assessment-management-save-questionnaire-questions.command-CnP1R9Be.mjs.map} +1 -1
  32. package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-B_r40P-A.mjs → acorex-modules-assessment-management-view-session-answers.command-Dtu7EpCs.mjs} +2 -2
  33. package/fesm2022/{acorex-modules-assessment-management-view-session-answers.command-B_r40P-A.mjs.map → acorex-modules-assessment-management-view-session-answers.command-Dtu7EpCs.mjs.map} +1 -1
  34. package/fesm2022/acorex-modules-assessment-management.mjs +1 -1
  35. package/fesm2022/{acorex-modules-asset-management-acorex-modules-asset-management-VXYhovvq.mjs → acorex-modules-asset-management-acorex-modules-asset-management-BFNe_Uen.mjs} +8 -8
  36. package/fesm2022/{acorex-modules-asset-management-acorex-modules-asset-management-VXYhovvq.mjs.map → acorex-modules-asset-management-acorex-modules-asset-management-BFNe_Uen.mjs.map} +1 -1
  37. package/fesm2022/{acorex-modules-asset-management-asset-system-assignment.entity-D5N_TCRn.mjs → acorex-modules-asset-management-asset-system-assignment.entity-Kzgd1XJ7.mjs} +2 -2
  38. package/fesm2022/{acorex-modules-asset-management-asset-system-assignment.entity-D5N_TCRn.mjs.map → acorex-modules-asset-management-asset-system-assignment.entity-Kzgd1XJ7.mjs.map} +1 -1
  39. package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-SFP3uNsd.mjs → acorex-modules-asset-management-asset-system-type.entity-CvHtK14j.mjs} +2 -2
  40. package/fesm2022/{acorex-modules-asset-management-asset-system-type.entity-SFP3uNsd.mjs.map → acorex-modules-asset-management-asset-system-type.entity-CvHtK14j.mjs.map} +1 -1
  41. package/fesm2022/{acorex-modules-asset-management-asset-system.entity-BoZPb8ya.mjs → acorex-modules-asset-management-asset-system.entity-ChexF88E.mjs} +13 -14
  42. package/fesm2022/acorex-modules-asset-management-asset-system.entity-ChexF88E.mjs.map +1 -0
  43. package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-C9pyLB2X.mjs → acorex-modules-asset-management-asset-type-section-component.entity-BnbjyPvQ.mjs} +2 -2
  44. package/fesm2022/{acorex-modules-asset-management-asset-type-section-component.entity-C9pyLB2X.mjs.map → acorex-modules-asset-management-asset-type-section-component.entity-BnbjyPvQ.mjs.map} +1 -1
  45. package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-C22vyuIm.mjs → acorex-modules-asset-management-asset-type-section.entity-D2sZAOdw.mjs} +2 -2
  46. package/fesm2022/{acorex-modules-asset-management-asset-type-section.entity-C22vyuIm.mjs.map → acorex-modules-asset-management-asset-type-section.entity-D2sZAOdw.mjs.map} +1 -1
  47. package/fesm2022/{acorex-modules-asset-management-asset-type.entity-B3jfFOM5.mjs → acorex-modules-asset-management-asset-type.entity-Tg52qW_f.mjs} +21 -22
  48. package/fesm2022/acorex-modules-asset-management-asset-type.entity-Tg52qW_f.mjs.map +1 -0
  49. package/fesm2022/{acorex-modules-asset-management-asset.entity-odX9EP6F.mjs → acorex-modules-asset-management-asset.entity-Df1mGPEi.mjs} +26 -26
  50. package/fesm2022/acorex-modules-asset-management-asset.entity-Df1mGPEi.mjs.map +1 -0
  51. package/fesm2022/acorex-modules-asset-management.mjs +1 -1
  52. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-OxprG_fC.mjs → acorex-modules-auth-acorex-modules-auth-B16m3Fqm.mjs} +13 -13
  53. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-OxprG_fC.mjs.map → acorex-modules-auth-acorex-modules-auth-B16m3Fqm.mjs.map} +1 -1
  54. package/fesm2022/{acorex-modules-auth-app-chooser.component-CVIfaOZn.mjs → acorex-modules-auth-app-chooser.component-DbIwCjH7.mjs} +2 -2
  55. package/fesm2022/{acorex-modules-auth-app-chooser.component-CVIfaOZn.mjs.map → acorex-modules-auth-app-chooser.component-DbIwCjH7.mjs.map} +1 -1
  56. package/fesm2022/{acorex-modules-auth-login.module-DcHZK-R8.mjs → acorex-modules-auth-login.module-B-0-j8sR.mjs} +4 -4
  57. package/fesm2022/{acorex-modules-auth-login.module-DcHZK-R8.mjs.map → acorex-modules-auth-login.module-B-0-j8sR.mjs.map} +1 -1
  58. package/fesm2022/{acorex-modules-auth-master.layout-BxFGH1Ns.mjs → acorex-modules-auth-master.layout-DY6mn8bb.mjs} +2 -2
  59. package/fesm2022/{acorex-modules-auth-master.layout-BxFGH1Ns.mjs.map → acorex-modules-auth-master.layout-DY6mn8bb.mjs.map} +1 -1
  60. package/fesm2022/{acorex-modules-auth-oauth-callback.component-D7wdpp8i.mjs → acorex-modules-auth-oauth-callback.component-B4ulbXNf.mjs} +2 -2
  61. package/fesm2022/{acorex-modules-auth-oauth-callback.component-D7wdpp8i.mjs.map → acorex-modules-auth-oauth-callback.component-B4ulbXNf.mjs.map} +1 -1
  62. package/fesm2022/{acorex-modules-auth-password.component-BStzALYp.mjs → acorex-modules-auth-password.component-BhsCiypa.mjs} +2 -2
  63. package/fesm2022/{acorex-modules-auth-password.component-BStzALYp.mjs.map → acorex-modules-auth-password.component-BhsCiypa.mjs.map} +1 -1
  64. package/fesm2022/{acorex-modules-auth-password.component-CD6RCeFv.mjs → acorex-modules-auth-password.component-DsQDCm_P.mjs} +2 -2
  65. package/fesm2022/{acorex-modules-auth-password.component-CD6RCeFv.mjs.map → acorex-modules-auth-password.component-DsQDCm_P.mjs.map} +1 -1
  66. package/fesm2022/{acorex-modules-auth-routes-DaEUQGPG.mjs → acorex-modules-auth-routes-CcONfKOF.mjs} +2 -2
  67. package/fesm2022/{acorex-modules-auth-routes-DaEUQGPG.mjs.map → acorex-modules-auth-routes-CcONfKOF.mjs.map} +1 -1
  68. package/fesm2022/{acorex-modules-auth-settings.provider-CN7Lb38l.mjs → acorex-modules-auth-settings.provider-C_3D-9ia.mjs} +2 -2
  69. package/fesm2022/acorex-modules-auth-settings.provider-C_3D-9ia.mjs.map +1 -0
  70. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-B-iqLVe6.mjs → acorex-modules-auth-tenant-chooser.component-DEFc-J_j.mjs} +2 -2
  71. package/fesm2022/{acorex-modules-auth-tenant-chooser.component-B-iqLVe6.mjs.map → acorex-modules-auth-tenant-chooser.component-DEFc-J_j.mjs.map} +1 -1
  72. package/fesm2022/{acorex-modules-auth-two-factor.module-BMKzyFEP.mjs → acorex-modules-auth-two-factor.module-CXIQH9Lj.mjs} +2 -2
  73. package/fesm2022/{acorex-modules-auth-two-factor.module-BMKzyFEP.mjs.map → acorex-modules-auth-two-factor.module-CXIQH9Lj.mjs.map} +1 -1
  74. package/fesm2022/{acorex-modules-auth-user-sessions.component-Xnz3S1SD.mjs → acorex-modules-auth-user-sessions.component-nQSdBXdv.mjs} +2 -2
  75. package/fesm2022/{acorex-modules-auth-user-sessions.component-Xnz3S1SD.mjs.map → acorex-modules-auth-user-sessions.component-nQSdBXdv.mjs.map} +1 -1
  76. package/fesm2022/acorex-modules-auth.mjs +1 -1
  77. package/fesm2022/acorex-modules-common.mjs +8 -5
  78. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  79. package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-Dnqqldoo.mjs → acorex-modules-conversation-acorex-modules-conversation-DB98kKiE.mjs} +1010 -164
  80. package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-DB98kKiE.mjs.map +1 -0
  81. package/fesm2022/{acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DmD3hdLF.mjs → acorex-modules-conversation-assist-delegated-agent-detail-popup.component-CysWKMxu.mjs} +7 -6
  82. package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-CysWKMxu.mjs.map +1 -0
  83. package/fesm2022/{acorex-modules-conversation-comments-page.component-DiooSKIu.mjs → acorex-modules-conversation-comments-page.component-CUq6Sy-I.mjs} +2 -2
  84. package/fesm2022/{acorex-modules-conversation-comments-page.component-DiooSKIu.mjs.map → acorex-modules-conversation-comments-page.component-CUq6Sy-I.mjs.map} +1 -1
  85. package/fesm2022/acorex-modules-conversation-send-assist-chat-message.command-ymDQiBCO.mjs +90 -0
  86. package/fesm2022/acorex-modules-conversation-send-assist-chat-message.command-ymDQiBCO.mjs.map +1 -0
  87. package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-C1rs_uaZ.mjs → acorex-modules-conversation-start-assist-chat.command-CSdKAZDN.mjs} +2 -2
  88. package/fesm2022/{acorex-modules-conversation-start-assist-chat.command-C1rs_uaZ.mjs.map → acorex-modules-conversation-start-assist-chat.command-CSdKAZDN.mjs.map} +1 -1
  89. package/fesm2022/acorex-modules-conversation.mjs +1 -1
  90. package/fesm2022/acorex-modules-data-management.mjs +5 -3
  91. package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
  92. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DmzcGSP1.mjs → acorex-modules-document-management-drive-choose.component-CPrVdGRH.mjs} +4 -4
  93. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DmzcGSP1.mjs.map → acorex-modules-document-management-drive-choose.component-CPrVdGRH.mjs.map} +1 -1
  94. package/fesm2022/acorex-modules-document-management.mjs +98 -24
  95. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  96. package/fesm2022/acorex-modules-form-template-management.mjs +53 -61
  97. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  98. package/fesm2022/{acorex-modules-human-capital-management-acorex-modules-human-capital-management-B37ZqEql.mjs → acorex-modules-human-capital-management-acorex-modules-human-capital-management-P9KsYGLT.mjs} +587 -596
  99. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-P9KsYGLT.mjs.map +1 -0
  100. package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bf8iPUE-.mjs → acorex-modules-human-capital-management-approve-leave-request.command-D0Ck0mRF.mjs} +2 -2
  101. package/fesm2022/{acorex-modules-human-capital-management-approve-leave-request.command-Bf8iPUE-.mjs.map → acorex-modules-human-capital-management-approve-leave-request.command-D0Ck0mRF.mjs.map} +1 -1
  102. package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-DqX9OAq4.mjs → acorex-modules-human-capital-management-assign-position-assignment.command-BnShdwaS.mjs} +2 -2
  103. package/fesm2022/{acorex-modules-human-capital-management-assign-position-assignment.command-DqX9OAq4.mjs.map → acorex-modules-human-capital-management-assign-position-assignment.command-BnShdwaS.mjs.map} +1 -1
  104. package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-DQG0Al0X.mjs → acorex-modules-human-capital-management-cancel-leave-request.command-BA4_AUut.mjs} +2 -2
  105. package/fesm2022/{acorex-modules-human-capital-management-cancel-leave-request.command-DQG0Al0X.mjs.map → acorex-modules-human-capital-management-cancel-leave-request.command-BA4_AUut.mjs.map} +1 -1
  106. package/fesm2022/{acorex-modules-human-capital-management-employee-lifecycle-process.entity-DSsgKG8S.mjs → acorex-modules-human-capital-management-employee-lifecycle-process.entity-DrdaFPhd.mjs} +2 -2
  107. package/fesm2022/{acorex-modules-human-capital-management-employee-lifecycle-process.entity-DSsgKG8S.mjs.map → acorex-modules-human-capital-management-employee-lifecycle-process.entity-DrdaFPhd.mjs.map} +1 -1
  108. package/fesm2022/{acorex-modules-human-capital-management-employee.entity-C8PaZEDs.mjs → acorex-modules-human-capital-management-employee.entity-Cz3gxAhn.mjs} +2 -2
  109. package/fesm2022/{acorex-modules-human-capital-management-employee.entity-C8PaZEDs.mjs.map → acorex-modules-human-capital-management-employee.entity-Cz3gxAhn.mjs.map} +1 -1
  110. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DhqHdESk.mjs → acorex-modules-human-capital-management-employment-type.entity-BGEomOEp.mjs} +2 -2
  111. package/fesm2022/{acorex-modules-human-capital-management-employment-type.entity-DhqHdESk.mjs.map → acorex-modules-human-capital-management-employment-type.entity-BGEomOEp.mjs.map} +1 -1
  112. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-CPdV6kiR.mjs → acorex-modules-human-capital-management-leave-request.entity-B-pEMjHo.mjs} +2 -2
  113. package/fesm2022/{acorex-modules-human-capital-management-leave-request.entity-CPdV6kiR.mjs.map → acorex-modules-human-capital-management-leave-request.entity-B-pEMjHo.mjs.map} +1 -1
  114. package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D3iarVMG.mjs → acorex-modules-human-capital-management-leave-type.entity-DoFyTTLz.mjs} +2 -2
  115. package/fesm2022/{acorex-modules-human-capital-management-leave-type.entity-D3iarVMG.mjs.map → acorex-modules-human-capital-management-leave-type.entity-DoFyTTLz.mjs.map} +1 -1
  116. package/fesm2022/{acorex-modules-human-capital-management-lifecycle-process-type.entity-EazvPSR6.mjs → acorex-modules-human-capital-management-lifecycle-process-type.entity-LAYL8BVr.mjs} +9 -11
  117. package/fesm2022/acorex-modules-human-capital-management-lifecycle-process-type.entity-LAYL8BVr.mjs.map +1 -0
  118. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-mROyAoz-.mjs → acorex-modules-human-capital-management-position-assignment.entity-BFrsxtTf.mjs} +2 -2
  119. package/fesm2022/{acorex-modules-human-capital-management-position-assignment.entity-mROyAoz-.mjs.map → acorex-modules-human-capital-management-position-assignment.entity-BFrsxtTf.mjs.map} +1 -1
  120. package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-Bq7OtST6.mjs → acorex-modules-human-capital-management-reject-leave-request.command-DRrJfmet.mjs} +2 -2
  121. package/fesm2022/{acorex-modules-human-capital-management-reject-leave-request.command-Bq7OtST6.mjs.map → acorex-modules-human-capital-management-reject-leave-request.command-DRrJfmet.mjs.map} +1 -1
  122. package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BpklMLve.mjs → acorex-modules-human-capital-management-revoke-position-assignment.command-Ct1eoAOS.mjs} +2 -2
  123. package/fesm2022/{acorex-modules-human-capital-management-revoke-position-assignment.command-BpklMLve.mjs.map → acorex-modules-human-capital-management-revoke-position-assignment.command-Ct1eoAOS.mjs.map} +1 -1
  124. package/fesm2022/acorex-modules-human-capital-management.mjs +1 -1
  125. package/fesm2022/acorex-modules-locale-management.mjs +1 -1
  126. package/fesm2022/acorex-modules-locale-management.mjs.map +1 -1
  127. package/fesm2022/{acorex-modules-maintenance-management-acorex-modules-maintenance-management-coPYjl8-.mjs → acorex-modules-maintenance-management-acorex-modules-maintenance-management-DiM2aFgg.mjs} +304 -206
  128. package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-DiM2aFgg.mjs.map +1 -0
  129. package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-BdnnavfB.mjs → acorex-modules-maintenance-management-failure-effect.entity-BCMeHmxS.mjs} +2 -2
  130. package/fesm2022/{acorex-modules-maintenance-management-failure-effect.entity-BdnnavfB.mjs.map → acorex-modules-maintenance-management-failure-effect.entity-BCMeHmxS.mjs.map} +1 -1
  131. 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
  132. 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
  133. package/fesm2022/{acorex-modules-maintenance-management-failure-mode-mechanism.entity-DivWl32L.mjs → acorex-modules-maintenance-management-failure-mode-mechanism.entity-BJs4KhkU.mjs} +2 -2
  134. 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
  135. package/fesm2022/{acorex-modules-maintenance-management-failure-mode-solution.entity-9FiLeySZ.mjs → acorex-modules-maintenance-management-failure-mode-solution.entity-rw24sQxb.mjs} +2 -2
  136. 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
  137. 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
  138. 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
  139. package/fesm2022/{acorex-modules-maintenance-management-failure-register-effect.entity-CaVb6rDn.mjs → acorex-modules-maintenance-management-failure-register-effect.entity-DCIAzSYQ.mjs} +2 -2
  140. 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
  141. package/fesm2022/{acorex-modules-maintenance-management-failure-register-mechanism.entity-C2UKW63M.mjs → acorex-modules-maintenance-management-failure-register-mechanism.entity-DlXr6A4i.mjs} +2 -2
  142. 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
  143. package/fesm2022/{acorex-modules-maintenance-management-failure-register.entity-KghFLCIJ.mjs → acorex-modules-maintenance-management-failure-register.entity-C4J3um7j.mjs} +2 -2
  144. package/fesm2022/{acorex-modules-maintenance-management-failure-register.entity-KghFLCIJ.mjs.map → acorex-modules-maintenance-management-failure-register.entity-C4J3um7j.mjs.map} +1 -1
  145. package/fesm2022/{acorex-modules-maintenance-management-failure-severity.entity-BebswR7S.mjs → acorex-modules-maintenance-management-failure-severity.entity-C-spQtYx.mjs} +2 -2
  146. 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
  147. package/fesm2022/{acorex-modules-maintenance-management-maintenance-template.entity-1V4swUZ4.mjs → acorex-modules-maintenance-management-maintenance-template.entity-Huahnjhd.mjs} +100 -178
  148. package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-Huahnjhd.mjs.map +1 -0
  149. package/fesm2022/{acorex-modules-maintenance-management-work-order-list-command-3hlrAtIr.mjs → acorex-modules-maintenance-management-work-order-list-command-1YsWctqu.mjs} +2 -2
  150. 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
  151. package/fesm2022/acorex-modules-maintenance-management.mjs +1 -1
  152. package/fesm2022/acorex-modules-notification-management.mjs +1 -1
  153. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  154. package/fesm2022/acorex-modules-order-management-settings.provider-BFOghuIS.mjs +58 -0
  155. package/fesm2022/acorex-modules-order-management-settings.provider-BFOghuIS.mjs.map +1 -0
  156. package/fesm2022/acorex-modules-order-management.mjs +2 -2
  157. package/fesm2022/{acorex-modules-organization-management-acorex-modules-organization-management-aord1Uv0.mjs → acorex-modules-organization-management-acorex-modules-organization-management-DOcHVNRe.mjs} +40 -120
  158. package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-DOcHVNRe.mjs.map +1 -0
  159. package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-AfY76V1Q.mjs → acorex-modules-organization-management-add-business-unit-to-business-unit.command-CCDTcPwM.mjs} +2 -2
  160. package/fesm2022/{acorex-modules-organization-management-add-business-unit-to-business-unit.command-AfY76V1Q.mjs.map → acorex-modules-organization-management-add-business-unit-to-business-unit.command-CCDTcPwM.mjs.map} +1 -1
  161. package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-DT9WSyiI.mjs → acorex-modules-organization-management-add-position-to-business-unit.command-DiEzhC3C.mjs} +2 -2
  162. package/fesm2022/{acorex-modules-organization-management-add-position-to-business-unit.command-DT9WSyiI.mjs.map → acorex-modules-organization-management-add-position-to-business-unit.command-DiEzhC3C.mjs.map} +1 -1
  163. package/fesm2022/{acorex-modules-organization-management-add-team-to-business-unit.command-Cm7ze35c.mjs → acorex-modules-organization-management-add-team-to-business-unit.command-DmBIQ3TU.mjs} +2 -2
  164. package/fesm2022/{acorex-modules-organization-management-add-team-to-business-unit.command-Cm7ze35c.mjs.map → acorex-modules-organization-management-add-team-to-business-unit.command-DmBIQ3TU.mjs.map} +1 -1
  165. package/fesm2022/{acorex-modules-organization-management-business-unit.entity-BgxuZhyH.mjs → acorex-modules-organization-management-business-unit.entity-BXRGTMJZ.mjs} +2 -2
  166. package/fesm2022/{acorex-modules-organization-management-business-unit.entity-BgxuZhyH.mjs.map → acorex-modules-organization-management-business-unit.entity-BXRGTMJZ.mjs.map} +1 -1
  167. package/fesm2022/{acorex-modules-organization-management-chart.entity-DSvAq3s6.mjs → acorex-modules-organization-management-chart.entity-BTraQ1Wu.mjs} +2 -2
  168. package/fesm2022/{acorex-modules-organization-management-chart.entity-DSvAq3s6.mjs.map → acorex-modules-organization-management-chart.entity-BTraQ1Wu.mjs.map} +1 -1
  169. package/fesm2022/{acorex-modules-organization-management-company.entity-BU1_8FIf.mjs → acorex-modules-organization-management-company.entity-C2ZE9ImN.mjs} +2 -2
  170. package/fesm2022/{acorex-modules-organization-management-company.entity-BU1_8FIf.mjs.map → acorex-modules-organization-management-company.entity-C2ZE9ImN.mjs.map} +1 -1
  171. package/fesm2022/{acorex-modules-organization-management-entity.provider-i18ksNjv.mjs → acorex-modules-organization-management-entity.provider-fbf2sJy4.mjs} +15 -15
  172. package/fesm2022/{acorex-modules-organization-management-entity.provider-i18ksNjv.mjs.map → acorex-modules-organization-management-entity.provider-fbf2sJy4.mjs.map} +1 -1
  173. package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-CDPVhpcX.mjs → acorex-modules-organization-management-feature-definition.provider-zcEVzBOv.mjs} +2 -2
  174. package/fesm2022/{acorex-modules-organization-management-feature-definition.provider-CDPVhpcX.mjs.map → acorex-modules-organization-management-feature-definition.provider-zcEVzBOv.mjs.map} +1 -1
  175. package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-BlOJIHXX.mjs → acorex-modules-organization-management-job-definition-pages-component.provider-DR23TvzL.mjs} +3 -3
  176. package/fesm2022/{acorex-modules-organization-management-job-definition-pages-component.provider-BlOJIHXX.mjs.map → acorex-modules-organization-management-job-definition-pages-component.provider-DR23TvzL.mjs.map} +1 -1
  177. package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-BtotMHNw.mjs → acorex-modules-organization-management-job-definition-responsibilities-page.component-CP-0Hl5F.mjs} +3 -3
  178. package/fesm2022/{acorex-modules-organization-management-job-definition-responsibilities-page.component-BtotMHNw.mjs.map → acorex-modules-organization-management-job-definition-responsibilities-page.component-CP-0Hl5F.mjs.map} +1 -1
  179. package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-Cr8vI2T9.mjs → acorex-modules-organization-management-job-definition-skills-page.component-CIxiTTwt.mjs} +2 -2
  180. package/fesm2022/{acorex-modules-organization-management-job-definition-skills-page.component-Cr8vI2T9.mjs.map → acorex-modules-organization-management-job-definition-skills-page.component-CIxiTTwt.mjs.map} +1 -1
  181. package/fesm2022/{acorex-modules-organization-management-job-definition.entity-aL7vWbHE.mjs → acorex-modules-organization-management-job-definition.entity-Dgwt_XIq.mjs} +2 -2
  182. package/fesm2022/{acorex-modules-organization-management-job-definition.entity-aL7vWbHE.mjs.map → acorex-modules-organization-management-job-definition.entity-Dgwt_XIq.mjs.map} +1 -1
  183. package/fesm2022/{acorex-modules-organization-management-job-level.datasource-Ds3ZDmRO.mjs → acorex-modules-organization-management-job-level.datasource-B7X0DGuI.mjs} +2 -2
  184. package/fesm2022/{acorex-modules-organization-management-job-level.datasource-Ds3ZDmRO.mjs.map → acorex-modules-organization-management-job-level.datasource-B7X0DGuI.mjs.map} +1 -1
  185. package/fesm2022/{acorex-modules-organization-management-job-level.entity-BzWMFrZX.mjs → acorex-modules-organization-management-job-level.entity-BMjeLs2m.mjs} +2 -2
  186. package/fesm2022/{acorex-modules-organization-management-job-level.entity-BzWMFrZX.mjs.map → acorex-modules-organization-management-job-level.entity-BMjeLs2m.mjs.map} +1 -1
  187. package/fesm2022/{acorex-modules-organization-management-menu.provider-CICmpvEv.mjs → acorex-modules-organization-management-menu.provider-B_QsUdHB.mjs} +2 -2
  188. package/fesm2022/{acorex-modules-organization-management-menu.provider-CICmpvEv.mjs.map → acorex-modules-organization-management-menu.provider-B_QsUdHB.mjs.map} +1 -1
  189. package/fesm2022/{acorex-modules-organization-management-org-chart-default-node-contribution.provider-9s5ZUus4.mjs → acorex-modules-organization-management-org-chart-default-node-contribution.provider-CaJVB_oD.mjs} +2 -2
  190. package/fesm2022/{acorex-modules-organization-management-org-chart-default-node-contribution.provider-9s5ZUus4.mjs.map → acorex-modules-organization-management-org-chart-default-node-contribution.provider-CaJVB_oD.mjs.map} +1 -1
  191. package/fesm2022/{acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-CepGeA3_.mjs → acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Ywz1ZGuf.mjs} +2 -2
  192. package/fesm2022/{acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-CepGeA3_.mjs.map → acorex-modules-organization-management-org-chart-employee-flyout-contribution.provider-Ywz1ZGuf.mjs.map} +1 -1
  193. package/fesm2022/{acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-Bi2pMYPe.mjs → acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-C4R8WYQr.mjs} +2 -2
  194. package/fesm2022/{acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-Bi2pMYPe.mjs.map → acorex-modules-organization-management-org-chart-position-employee-node-contribution.provider-C4R8WYQr.mjs.map} +1 -1
  195. package/fesm2022/{acorex-modules-organization-management-org-chart-ux-node-contribution.provider-BgopvirR.mjs → acorex-modules-organization-management-org-chart-ux-node-contribution.provider-BDjxlXqV.mjs} +2 -2
  196. package/fesm2022/{acorex-modules-organization-management-org-chart-ux-node-contribution.provider-BgopvirR.mjs.map → acorex-modules-organization-management-org-chart-ux-node-contribution.provider-BDjxlXqV.mjs.map} +1 -1
  197. package/fesm2022/{acorex-modules-organization-management-org-chart.page-Cs-wTPS-.mjs → acorex-modules-organization-management-org-chart.page-CtXZUL1l.mjs} +133 -12
  198. package/fesm2022/acorex-modules-organization-management-org-chart.page-CtXZUL1l.mjs.map +1 -0
  199. package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-DEc2_pkz.mjs → acorex-modules-organization-management-permission-definition.provider-BdaMe7tJ.mjs} +2 -2
  200. package/fesm2022/{acorex-modules-organization-management-permission-definition.provider-DEc2_pkz.mjs.map → acorex-modules-organization-management-permission-definition.provider-BdaMe7tJ.mjs.map} +1 -1
  201. package/fesm2022/{acorex-modules-organization-management-position.entity-C7u3c4LB.mjs → acorex-modules-organization-management-position.entity-Cz2o84Yj.mjs} +2 -2
  202. package/fesm2022/{acorex-modules-organization-management-position.entity-C7u3c4LB.mjs.map → acorex-modules-organization-management-position.entity-Cz2o84Yj.mjs.map} +1 -1
  203. package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-B7D1vMcs.mjs → acorex-modules-organization-management-remove-position-from-business-unit.command-Dmq52bKB.mjs} +2 -2
  204. package/fesm2022/{acorex-modules-organization-management-remove-position-from-business-unit.command-B7D1vMcs.mjs.map → acorex-modules-organization-management-remove-position-from-business-unit.command-Dmq52bKB.mjs.map} +1 -1
  205. package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-xodO4wdB.mjs → acorex-modules-organization-management-replace-position-assignee.command-K56GOu_J.mjs} +2 -2
  206. package/fesm2022/{acorex-modules-organization-management-replace-position-assignee.command-xodO4wdB.mjs.map → acorex-modules-organization-management-replace-position-assignee.command-K56GOu_J.mjs.map} +1 -1
  207. package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-BeAm1FY0.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-BFx-Q64k.mjs} +2 -2
  208. package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-BeAm1FY0.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-edit.component-BFx-Q64k.mjs.map} +1 -1
  209. package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-cdReuV2q.mjs → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-Cp9DU5Fr.mjs} +2 -2
  210. package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix-widget-view.component-cdReuV2q.mjs.map → acorex-modules-organization-management-responsibilities-matrix-widget-view.component-Cp9DU5Fr.mjs.map} +1 -1
  211. package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-bFxHz2vq.mjs → acorex-modules-organization-management-responsibilities-matrix.component-BY6btAIr.mjs} +2 -2
  212. package/fesm2022/{acorex-modules-organization-management-responsibilities-matrix.component-bFxHz2vq.mjs.map → acorex-modules-organization-management-responsibilities-matrix.component-BY6btAIr.mjs.map} +1 -1
  213. package/fesm2022/{acorex-modules-organization-management-responsibility-level.entity-BDOhL12B.mjs → acorex-modules-organization-management-responsibility-level.entity-DY79agLK.mjs} +2 -2
  214. package/fesm2022/{acorex-modules-organization-management-responsibility-level.entity-BDOhL12B.mjs.map → acorex-modules-organization-management-responsibility-level.entity-DY79agLK.mjs.map} +1 -1
  215. package/fesm2022/{acorex-modules-organization-management-responsibility.entity-DQK2qB5N.mjs → acorex-modules-organization-management-responsibility.entity-BDiA3-jg.mjs} +2 -2
  216. package/fesm2022/{acorex-modules-organization-management-responsibility.entity-DQK2qB5N.mjs.map → acorex-modules-organization-management-responsibility.entity-BDiA3-jg.mjs.map} +1 -1
  217. package/fesm2022/{acorex-modules-organization-management-settings.provider-Di4FtA78.mjs → acorex-modules-organization-management-settings.provider-B3vi7O1S.mjs} +3 -3
  218. package/fesm2022/acorex-modules-organization-management-settings.provider-B3vi7O1S.mjs.map +1 -0
  219. package/fesm2022/{acorex-modules-organization-management-team-business-unit.entity-DTWxuUQV.mjs → acorex-modules-organization-management-team-business-unit.entity-CDnoPFwO.mjs} +2 -2
  220. package/fesm2022/{acorex-modules-organization-management-team-business-unit.entity-DTWxuUQV.mjs.map → acorex-modules-organization-management-team-business-unit.entity-CDnoPFwO.mjs.map} +1 -1
  221. package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-D9SlbSQ4.mjs → acorex-modules-organization-management-team-member-role.entity-DY-jTB39.mjs} +2 -2
  222. package/fesm2022/{acorex-modules-organization-management-team-member-role.entity-D9SlbSQ4.mjs.map → acorex-modules-organization-management-team-member-role.entity-DY-jTB39.mjs.map} +1 -1
  223. package/fesm2022/{acorex-modules-organization-management-team-member.entity-D5NapdKq.mjs → acorex-modules-organization-management-team-member.entity-BUcYn4FM.mjs} +2 -2
  224. package/fesm2022/{acorex-modules-organization-management-team-member.entity-D5NapdKq.mjs.map → acorex-modules-organization-management-team-member.entity-BUcYn4FM.mjs.map} +1 -1
  225. package/fesm2022/{acorex-modules-organization-management-team.entity-CNg4ffZv.mjs → acorex-modules-organization-management-team.entity-DwegZH4p.mjs} +2 -2
  226. package/fesm2022/{acorex-modules-organization-management-team.entity-CNg4ffZv.mjs.map → acorex-modules-organization-management-team.entity-DwegZH4p.mjs.map} +1 -1
  227. package/fesm2022/acorex-modules-organization-management.mjs +1 -1
  228. package/fesm2022/{acorex-modules-platform-dev-tools-settings.provider-DKmgBUYt.mjs → acorex-modules-platform-dev-tools-settings.provider-BIVP27kT.mjs} +2 -2
  229. package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-BIVP27kT.mjs.map +1 -0
  230. package/fesm2022/acorex-modules-platform-dev-tools.mjs +2 -2
  231. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-D0D56pWx.mjs → acorex-modules-platform-management-acorex-modules-platform-management-9oOc9Os4.mjs} +1919 -4
  232. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-9oOc9Os4.mjs.map +1 -0
  233. package/fesm2022/{acorex-modules-platform-management-menu-list.component-BE9_j1Xy.mjs → acorex-modules-platform-management-menu-list.component-R3Aglcwr.mjs} +4 -4
  234. package/fesm2022/{acorex-modules-platform-management-menu-list.component-BE9_j1Xy.mjs.map → acorex-modules-platform-management-menu-list.component-R3Aglcwr.mjs.map} +1 -1
  235. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  236. package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-DHihkQXi.mjs → acorex-modules-settings-management-acorex-modules-settings-management-C0H_0XZn.mjs} +5 -5
  237. package/fesm2022/{acorex-modules-settings-management-acorex-modules-settings-management-DHihkQXi.mjs.map → acorex-modules-settings-management-acorex-modules-settings-management-C0H_0XZn.mjs.map} +1 -1
  238. package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-DZoXbvt_.mjs → acorex-modules-settings-management-permission-definition.provider-DhulLSbl.mjs} +2 -2
  239. package/fesm2022/{acorex-modules-settings-management-permission-definition.provider-DZoXbvt_.mjs.map → acorex-modules-settings-management-permission-definition.provider-DhulLSbl.mjs.map} +1 -1
  240. package/fesm2022/{acorex-modules-settings-management-setting-page.component-B6UoszKZ.mjs → acorex-modules-settings-management-setting-page.component-UDDLzNK-.mjs} +4 -4
  241. package/fesm2022/{acorex-modules-settings-management-setting-page.component-B6UoszKZ.mjs.map → acorex-modules-settings-management-setting-page.component-UDDLzNK-.mjs.map} +1 -1
  242. package/fesm2022/{acorex-modules-settings-management-setting-view.component-BGCXJQ_L.mjs → acorex-modules-settings-management-setting-view.component-CZdjJUYn.mjs} +15 -28
  243. package/fesm2022/acorex-modules-settings-management-setting-view.component-CZdjJUYn.mjs.map +1 -0
  244. package/fesm2022/acorex-modules-settings-management.mjs +1 -1
  245. package/fesm2022/acorex-modules-system-insight.mjs +1 -1
  246. package/fesm2022/acorex-modules-system-insight.mjs.map +1 -1
  247. package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-CrwI8DcQ.mjs → acorex-modules-task-management-acorex-modules-task-management-B7AIKSdW.mjs} +680 -10
  248. package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-B7AIKSdW.mjs.map +1 -0
  249. package/fesm2022/{acorex-modules-task-management-task-board.page-BG6IgTKW.mjs → acorex-modules-task-management-task-board.page-DvE836wP.mjs} +204 -591
  250. package/fesm2022/acorex-modules-task-management-task-board.page-DvE836wP.mjs.map +1 -0
  251. package/fesm2022/acorex-modules-task-management.mjs +1 -1
  252. package/fesm2022/acorex-modules-tenant-management.mjs +1 -1
  253. package/fesm2022/acorex-modules-tenant-management.mjs.map +1 -1
  254. package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BYMWJZBG.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-D9pB7g9Z.mjs} +4 -4
  255. package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-BYMWJZBG.mjs.map → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-D9pB7g9Z.mjs.map} +1 -1
  256. package/fesm2022/{acorex-modules-workflow-management-index-CHySddpP.mjs → acorex-modules-workflow-management-index-34UZrsxw.mjs} +2 -2
  257. package/fesm2022/{acorex-modules-workflow-management-index-CHySddpP.mjs.map → acorex-modules-workflow-management-index-34UZrsxw.mjs.map} +1 -1
  258. package/fesm2022/acorex-modules-workflow-management-index-BLnHdRLk.mjs +1207 -0
  259. package/fesm2022/acorex-modules-workflow-management-index-BLnHdRLk.mjs.map +1 -0
  260. package/fesm2022/{acorex-modules-workflow-management-index-DuXPh3Lz.mjs → acorex-modules-workflow-management-index-DuZJ07Ve.mjs} +3 -3
  261. package/fesm2022/{acorex-modules-workflow-management-index-DuXPh3Lz.mjs.map → acorex-modules-workflow-management-index-DuZJ07Ve.mjs.map} +1 -1
  262. 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
  263. package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-CGNwslcn.mjs.map +1 -0
  264. package/fesm2022/{acorex-modules-workflow-management-workflow-definition.entity-CjQQpjdB.mjs → acorex-modules-workflow-management-workflow-definition.entity-DISpkWE4.mjs} +3 -7
  265. package/fesm2022/acorex-modules-workflow-management-workflow-definition.entity-DISpkWE4.mjs.map +1 -0
  266. package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-d87fYJLS.mjs → acorex-modules-workflow-management-workflow-instance.entity-EE3w4EFB.mjs} +2 -2
  267. package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-d87fYJLS.mjs.map → acorex-modules-workflow-management-workflow-instance.entity-EE3w4EFB.mjs.map} +1 -1
  268. package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-DMszilef.mjs +356 -0
  269. package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-DMszilef.mjs.map +1 -0
  270. package/fesm2022/acorex-modules-workflow-management.mjs +257 -130
  271. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  272. package/package.json +2 -2
  273. package/types/acorex-modules-ai-management.d.ts +73 -5
  274. package/types/acorex-modules-assessment-management.d.ts +161 -97
  275. package/types/acorex-modules-asset-management.d.ts +3 -0
  276. package/types/acorex-modules-conversation.d.ts +12 -2
  277. package/types/acorex-modules-human-capital-management.d.ts +6 -6
  278. package/types/acorex-modules-maintenance-management.d.ts +28 -11
  279. package/types/acorex-modules-organization-management.d.ts +1 -27
  280. package/types/acorex-modules-platform-management.d.ts +518 -23
  281. package/types/acorex-modules-task-management.d.ts +100 -4
  282. package/types/acorex-modules-workflow-management.d.ts +53 -5
  283. package/fesm2022/acorex-modules-ai-management-assist.entity-513RdKsz.mjs.map +0 -1
  284. package/fesm2022/acorex-modules-assessment-management-acorex-modules-assessment-management-D5JC6vun.mjs.map +0 -1
  285. package/fesm2022/acorex-modules-assessment-management-fill-assessment-session.command-B_vRBxdF.mjs.map +0 -1
  286. package/fesm2022/acorex-modules-assessment-management-questionnaire-viewer-popup.component-dbBLqNjn.mjs.map +0 -1
  287. package/fesm2022/acorex-modules-assessment-management-questionnaire.entity-BjWwHS-u.mjs.map +0 -1
  288. package/fesm2022/acorex-modules-asset-management-asset-system.entity-BoZPb8ya.mjs.map +0 -1
  289. package/fesm2022/acorex-modules-asset-management-asset-type.entity-B3jfFOM5.mjs.map +0 -1
  290. package/fesm2022/acorex-modules-asset-management-asset.entity-odX9EP6F.mjs.map +0 -1
  291. package/fesm2022/acorex-modules-auth-settings.provider-CN7Lb38l.mjs.map +0 -1
  292. package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-Dnqqldoo.mjs.map +0 -1
  293. package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DmD3hdLF.mjs.map +0 -1
  294. package/fesm2022/acorex-modules-human-capital-management-acorex-modules-human-capital-management-B37ZqEql.mjs.map +0 -1
  295. package/fesm2022/acorex-modules-human-capital-management-lifecycle-process-type.entity-EazvPSR6.mjs.map +0 -1
  296. package/fesm2022/acorex-modules-maintenance-management-acorex-modules-maintenance-management-coPYjl8-.mjs.map +0 -1
  297. package/fesm2022/acorex-modules-maintenance-management-maintenance-template.entity-1V4swUZ4.mjs.map +0 -1
  298. package/fesm2022/acorex-modules-order-management-settings.provider-DF8JQ1PZ.mjs +0 -64
  299. package/fesm2022/acorex-modules-order-management-settings.provider-DF8JQ1PZ.mjs.map +0 -1
  300. package/fesm2022/acorex-modules-organization-management-acorex-modules-organization-management-aord1Uv0.mjs.map +0 -1
  301. package/fesm2022/acorex-modules-organization-management-org-chart.page-Cs-wTPS-.mjs.map +0 -1
  302. package/fesm2022/acorex-modules-organization-management-settings.provider-Di4FtA78.mjs.map +0 -1
  303. package/fesm2022/acorex-modules-platform-dev-tools-settings.provider-DKmgBUYt.mjs.map +0 -1
  304. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-D0D56pWx.mjs.map +0 -1
  305. package/fesm2022/acorex-modules-settings-management-setting-view.component-BGCXJQ_L.mjs.map +0 -1
  306. package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-CrwI8DcQ.mjs.map +0 -1
  307. package/fesm2022/acorex-modules-task-management-task-board.page-BG6IgTKW.mjs.map +0 -1
  308. package/fesm2022/acorex-modules-workflow-management-index-CBJu8_4q.mjs +0 -726
  309. package/fesm2022/acorex-modules-workflow-management-index-CBJu8_4q.mjs.map +0 -1
  310. package/fesm2022/acorex-modules-workflow-management-save-workflow-definition-activities.command-fFO152ni.mjs.map +0 -1
  311. 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: [".workflow-definition-activities{display:flex;flex-direction:column;gap:1rem;min-height:280px}.workflow-definition-activities__columns{display:grid;grid-template-columns:minmax(260px,1fr) minmax(340px,2fr);gap:1.25rem;align-items:start}@media(max-width:960px){.workflow-definition-activities__columns{grid-template-columns:1fr}.workflow-definition-activities__editor{position:static;max-height:none}}.workflow-definition-activities__list{display:flex;flex-direction:column;gap:.5rem;max-height:calc(100vh - 220px);overflow-y:auto;padding-inline-end:4px}.workflow-definition-activities__row{display:flex;flex-direction:row;align-items:flex-start;gap:.5rem;padding:.65rem .75rem;border-radius:var(--ax-radius-md, 6px);border:1px solid var(--ax-border-color, rgba(0, 0, 0, .08));background:var(--ax-surface-color, #fff);cursor:pointer;flex-shrink:0}.workflow-definition-activities__row--selected{border-color:var(--ax-primary-color, #2563eb);box-shadow:0 0 0 1px var(--ax-primary-color, #2563eb)}.workflow-definition-activities__row-main{flex:1;min-width:0}.workflow-definition-activities__select{width:100%}.workflow-definition-activities__row-actions{display:flex;flex-wrap:wrap;gap:.25rem;flex-shrink:0}.workflow-definition-activities__editor{position:sticky;top:.75rem;align-self:start;max-height:calc(100vh - 220px);overflow-y:auto;padding:.75rem;border-radius:var(--ax-radius-md, 6px);border:1px solid var(--ax-border-color, rgba(0, 0, 0, .08));background:var(--ax-surface-color, #fff);box-shadow:0 1px 2px #0000000a}.workflow-definition-activities__start{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--ax-border-color, rgba(0, 0, 0, .08))}.workflow-definition-activities__field-label{font-size:.8125rem;font-weight:600;color:var(--ax-text-secondary-color, #64748b)}.workflow-definition-activities__connections{margin-bottom:1.25rem}.workflow-definition-activities__inputs{margin-top:.25rem}.workflow-definition-activities__section-title{margin:0 0 .35rem;font-size:1rem;font-weight:600}.workflow-definition-activities__section-hint{margin:0 0 .75rem;font-size:.8125rem;color:var(--ax-text-secondary-color, #64748b)}.workflow-definition-activities__connection-row{display:grid;grid-template-columns:minmax(72px,.35fr) 1fr;gap:.5rem .75rem;align-items:center;margin-bottom:.5rem}@media(max-width:520px){.workflow-definition-activities__connection-row{grid-template-columns:1fr}}.workflow-definition-activities__outcome{font-size:.8125rem;font-weight:600;color:var(--ax-text-color, #1e293b);word-break:break-word}.workflow-definition-activities__connection-target{min-width:0}.workflow-definition-activities__empty,.workflow-definition-activities__hint{margin:0;color:var(--ax-text-secondary-color, #64748b);font-size:.9375rem}\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: [".workflow-definition-activities{display:flex;flex-direction:column;gap:1rem;min-height:280px}.workflow-definition-activities__columns{display:grid;grid-template-columns:minmax(260px,1fr) minmax(340px,2fr);gap:1.25rem;align-items:start}@media(max-width:960px){.workflow-definition-activities__columns{grid-template-columns:1fr}.workflow-definition-activities__editor{position:static;max-height:none}}.workflow-definition-activities__list{display:flex;flex-direction:column;gap:.5rem;max-height:calc(100vh - 220px);overflow-y:auto;padding-inline-end:4px}.workflow-definition-activities__row{display:flex;flex-direction:row;align-items:flex-start;gap:.5rem;padding:.65rem .75rem;border-radius:var(--ax-radius-md, 6px);border:1px solid var(--ax-border-color, rgba(0, 0, 0, .08));background:var(--ax-surface-color, #fff);cursor:pointer;flex-shrink:0}.workflow-definition-activities__row--selected{border-color:var(--ax-primary-color, #2563eb);box-shadow:0 0 0 1px var(--ax-primary-color, #2563eb)}.workflow-definition-activities__row-main{flex:1;min-width:0}.workflow-definition-activities__select{width:100%}.workflow-definition-activities__row-actions{display:flex;flex-wrap:wrap;gap:.25rem;flex-shrink:0}.workflow-definition-activities__editor{position:sticky;top:.75rem;align-self:start;max-height:calc(100vh - 220px);overflow-y:auto;padding:.75rem;border-radius:var(--ax-radius-md, 6px);border:1px solid var(--ax-border-color, rgba(0, 0, 0, .08));background:var(--ax-surface-color, #fff);box-shadow:0 1px 2px #0000000a}.workflow-definition-activities__start{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--ax-border-color, rgba(0, 0, 0, .08))}.workflow-definition-activities__field-label{font-size:.8125rem;font-weight:600;color:var(--ax-text-secondary-color, #64748b)}.workflow-definition-activities__connections{margin-bottom:1.25rem}.workflow-definition-activities__inputs{margin-top:.25rem}.workflow-definition-activities__section-title{margin:0 0 .35rem;font-size:1rem;font-weight:600}.workflow-definition-activities__section-hint{margin:0 0 .75rem;font-size:.8125rem;color:var(--ax-text-secondary-color, #64748b)}.workflow-definition-activities__connection-row{display:grid;grid-template-columns:minmax(72px,.35fr) 1fr;gap:.5rem .75rem;align-items:center;margin-bottom:.5rem}@media(max-width:520px){.workflow-definition-activities__connection-row{grid-template-columns:1fr}}.workflow-definition-activities__outcome{font-size:.8125rem;font-weight:600;color:var(--ax-text-color, #1e293b);word-break:break-word}.workflow-definition-activities__connection-target{min-width:0}.workflow-definition-activities__empty,.workflow-definition-activities__hint{margin:0;color:var(--ax-text-secondary-color, #64748b);font-size:.9375rem}\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-BLnHdRLk.mjs.map