verben-workflow-ui 0.5.82 → 0.5.84

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 (1041) hide show
  1. package/README.md +33 -2
  2. package/esm2022/public-api.mjs +39 -0
  3. package/esm2022/src/lib/base/core/base-data-page.facade.mjs +412 -0
  4. package/esm2022/src/lib/base/core/base-data-page.service.mjs +140 -0
  5. package/esm2022/src/lib/base/core/base-data-page.state.mjs +216 -0
  6. package/esm2022/src/lib/base/handlers/filter-handler.service.mjs +138 -0
  7. package/esm2022/src/lib/base/handlers/search-handler.service.mjs +31 -0
  8. package/esm2022/src/lib/base/handlers/sort-handler.service.mjs +73 -0
  9. package/esm2022/src/lib/base/index.mjs +2 -0
  10. package/esm2022/src/lib/base/models/api-payload.mjs +7 -0
  11. package/esm2022/src/lib/base/models/page-config.interface.mjs +2 -0
  12. package/esm2022/src/lib/base/models/page-filter-tab-option.interface.mjs +2 -0
  13. package/esm2022/src/lib/base/public-api.mjs +14 -0
  14. package/esm2022/src/lib/base/utils/column-helpers.mjs +55 -0
  15. package/esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs +5 -0
  16. package/esm2022/src/lib/components/actors/actors.columns.mjs +39 -0
  17. package/esm2022/src/lib/components/actors/actors.component.mjs +175 -0
  18. package/esm2022/src/lib/components/actors/actors.config.mjs +49 -0
  19. package/esm2022/src/lib/components/actors/actors.facade.mjs +57 -0
  20. package/esm2022/src/lib/components/actors/actors.form.component.mjs +74 -0
  21. package/esm2022/src/lib/components/actors/actors.module.mjs +21 -0
  22. package/esm2022/src/lib/components/actors/actors.service.mjs +65 -0
  23. package/esm2022/src/lib/components/actors/actors.state.mjs +31 -0
  24. package/esm2022/src/lib/components/actors/index.mjs +2 -0
  25. package/esm2022/src/lib/components/actors/public-api.mjs +3 -0
  26. package/esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs +5 -0
  27. package/esm2022/src/lib/components/designer/components/label-editor.component.mjs +148 -0
  28. package/esm2022/src/lib/components/designer/components/node-selector.component.mjs +317 -0
  29. package/esm2022/src/lib/components/designer/components/swimlane-label.component.mjs +161 -0
  30. package/esm2022/src/lib/components/designer/components/swimlane-popup.component.mjs +85 -0
  31. package/esm2022/src/lib/components/designer/components/wf-canvas.component.mjs +715 -0
  32. package/esm2022/src/lib/components/designer/components/wf-designer.component.mjs +135 -0
  33. package/esm2022/src/lib/components/designer/components/wf-toolbar.component.mjs +56 -0
  34. package/esm2022/src/lib/components/designer/index.mjs +2 -0
  35. package/esm2022/src/lib/components/designer/models/types.mjs +2 -0
  36. package/esm2022/src/lib/components/designer/public-api.mjs +3 -0
  37. package/esm2022/src/lib/components/designer/services/canvas-state.service.mjs +50 -0
  38. package/esm2022/src/lib/components/designer/services/connection-segment-interaction.service.mjs +108 -0
  39. package/esm2022/src/lib/components/designer/services/connection.service.mjs +266 -0
  40. package/esm2022/src/lib/components/designer/services/keyboard-handler.service.mjs +43 -0
  41. package/esm2022/src/lib/components/designer/services/label-management.service.mjs +66 -0
  42. package/esm2022/src/lib/components/designer/services/node-finder.service.mjs +30 -0
  43. package/esm2022/src/lib/components/designer/services/node-interaction.service.mjs +108 -0
  44. package/esm2022/src/lib/components/designer/services/node-precondition.service.mjs +108 -0
  45. package/esm2022/src/lib/components/designer/services/node-selection.service.mjs +96 -0
  46. package/esm2022/src/lib/components/designer/services/orthogonal-router.service.mjs +167 -0
  47. package/esm2022/src/lib/components/designer/services/position-update.service.mjs +45 -0
  48. package/esm2022/src/lib/components/designer/services/rendering.service.mjs +236 -0
  49. package/esm2022/src/lib/components/designer/services/swimlane-management.service.mjs +145 -0
  50. package/esm2022/src/lib/components/designer/services/swimlane-stats.service.mjs +44 -0
  51. package/esm2022/src/lib/components/designer/services/viewport.service.mjs +30 -0
  52. package/esm2022/src/lib/components/designer/services/wf-facade.service.mjs +239 -0
  53. package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +323 -0
  54. package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +169 -0
  55. package/esm2022/src/lib/components/designer/services/wf-state.service.mjs +108 -0
  56. package/esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs +5 -0
  57. package/esm2022/src/lib/components/expiration/expiration.component.mjs +49 -0
  58. package/esm2022/src/lib/components/expiration/expiration.module.mjs +19 -0
  59. package/esm2022/src/lib/components/expiration/index.mjs +2 -0
  60. package/esm2022/src/lib/components/expiration/public-api.mjs +3 -0
  61. package/esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs +5 -0
  62. package/esm2022/src/lib/components/file-render/file-render.component.mjs +45 -0
  63. package/esm2022/src/lib/components/file-render/file-render.module.mjs +35 -0
  64. package/esm2022/src/lib/components/file-render/index.mjs +2 -0
  65. package/esm2022/src/lib/components/file-render/public-api.mjs +3 -0
  66. package/esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs +5 -0
  67. package/esm2022/src/lib/components/file-upload/file-upload.component.mjs +93 -0
  68. package/esm2022/src/lib/components/file-upload/file-upload.module.mjs +63 -0
  69. package/esm2022/src/lib/components/file-upload/index.mjs +2 -0
  70. package/esm2022/src/lib/components/file-upload/public-api.mjs +3 -0
  71. package/esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs +5 -0
  72. package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +21 -0
  73. package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +203 -0
  74. package/esm2022/src/lib/components/flowable-status/flowable-status.config.mjs +47 -0
  75. package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +60 -0
  76. package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +52 -0
  77. package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +21 -0
  78. package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +35 -0
  79. package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +15 -0
  80. package/esm2022/src/lib/components/flowable-status/index.mjs +2 -0
  81. package/esm2022/src/lib/components/flowable-status/public-api.mjs +3 -0
  82. package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +5 -0
  83. package/esm2022/src/lib/components/form-control/form-control.component.mjs +155 -0
  84. package/esm2022/src/lib/components/form-control/form-control.module.mjs +75 -0
  85. package/esm2022/src/lib/components/form-control/index.mjs +2 -0
  86. package/esm2022/src/lib/components/form-control/public-api.mjs +3 -0
  87. package/esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs +5 -0
  88. package/esm2022/src/lib/components/form-group/base-table-style.mjs +53 -0
  89. package/esm2022/src/lib/components/form-group/form-fields/form-fields.component.mjs +952 -0
  90. package/esm2022/src/lib/components/form-group/form-fields/form-fields.module.mjs +75 -0
  91. package/esm2022/src/lib/components/form-group/form-fields/form-fields.service.mjs +73 -0
  92. package/esm2022/src/lib/components/form-group/form-group.component.mjs +699 -0
  93. package/esm2022/src/lib/components/form-group/form-group.module.mjs +85 -0
  94. package/esm2022/src/lib/components/form-group/form-group.service.mjs +56 -0
  95. package/esm2022/src/lib/components/form-group/index.mjs +2 -0
  96. package/esm2022/src/lib/components/form-group/public-api.mjs +5 -0
  97. package/esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs +5 -0
  98. package/esm2022/src/lib/components/form-response/form-response.component.mjs +641 -0
  99. package/esm2022/src/lib/components/form-response/form-response.module.mjs +76 -0
  100. package/esm2022/src/lib/components/form-response/form-response.service.mjs +54 -0
  101. package/esm2022/src/lib/components/form-response/index.mjs +2 -0
  102. package/esm2022/src/lib/components/form-response/public-api.mjs +3 -0
  103. package/esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs +5 -0
  104. package/esm2022/src/lib/components/form-timer/form-timer.component.mjs +47 -0
  105. package/esm2022/src/lib/components/form-timer/form-timer.module.mjs +28 -0
  106. package/esm2022/src/lib/components/form-timer/index.mjs +2 -0
  107. package/esm2022/src/lib/components/form-timer/public-api.mjs +3 -0
  108. package/esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs +5 -0
  109. package/esm2022/src/lib/components/forms/base-table-style.mjs +53 -0
  110. package/esm2022/src/lib/components/forms/forms.component.mjs +673 -0
  111. package/esm2022/src/lib/components/forms/forms.module.mjs +18 -0
  112. package/esm2022/src/lib/components/forms/forms.service.mjs +68 -0
  113. package/esm2022/src/lib/components/forms/index.mjs +2 -0
  114. package/esm2022/src/lib/components/forms/public-api.mjs +3 -0
  115. package/esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs +5 -0
  116. package/esm2022/src/lib/components/journal/index.mjs +2 -0
  117. package/esm2022/src/lib/components/journal/journal.component.mjs +11 -0
  118. package/esm2022/src/lib/components/journal/journal.module.mjs +18 -0
  119. package/esm2022/src/lib/components/journal/public-api.mjs +3 -0
  120. package/esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs +5 -0
  121. package/esm2022/src/lib/components/my-queue/index.mjs +2 -0
  122. package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +29 -0
  123. package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +142 -0
  124. package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +450 -0
  125. package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +40 -0
  126. package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +138 -0
  127. package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +90 -0
  128. package/esm2022/src/lib/components/my-queue/public-api.mjs +4 -0
  129. package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +144 -0
  130. package/esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs +5 -0
  131. package/esm2022/src/lib/components/operation-popup/index.mjs +2 -0
  132. package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +341 -0
  133. package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +338 -0
  134. package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +71 -0
  135. package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +44 -0
  136. package/esm2022/src/lib/components/operation-popup/public-api.mjs +2 -0
  137. package/esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs +5 -0
  138. package/esm2022/src/lib/components/stage-details/index.mjs +2 -0
  139. package/esm2022/src/lib/components/stage-details/public-api.mjs +3 -0
  140. package/esm2022/src/lib/components/stage-details/stage-details.component.mjs +49 -0
  141. package/esm2022/src/lib/components/stage-details/stage-details.module.mjs +19 -0
  142. package/esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs +5 -0
  143. package/esm2022/src/lib/components/task-form/index.mjs +2 -0
  144. package/esm2022/src/lib/components/task-form/public-api.mjs +3 -0
  145. package/esm2022/src/lib/components/task-form/task-form.component.mjs +18 -0
  146. package/esm2022/src/lib/components/task-form/task-form.module.mjs +72 -0
  147. package/esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs +5 -0
  148. package/esm2022/src/lib/components/task-history/index.mjs +2 -0
  149. package/esm2022/src/lib/components/task-history/public-api.mjs +3 -0
  150. package/esm2022/src/lib/components/task-history/task-history.component.mjs +217 -0
  151. package/esm2022/src/lib/components/task-history/task-history.module.mjs +20 -0
  152. package/esm2022/src/lib/components/task-history/task-history.service.mjs +32 -0
  153. package/esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs +5 -0
  154. package/esm2022/src/lib/components/task-notification/base-table-style.mjs +53 -0
  155. package/esm2022/src/lib/components/task-notification/index.mjs +2 -0
  156. package/esm2022/src/lib/components/task-notification/public-api.mjs +3 -0
  157. package/esm2022/src/lib/components/task-notification/task-notification.component.mjs +670 -0
  158. package/esm2022/src/lib/components/task-notification/task-notification.module.mjs +18 -0
  159. package/esm2022/src/lib/components/task-notification/task-notification.service.mjs +256 -0
  160. package/esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs +5 -0
  161. package/esm2022/src/lib/components/tasks/index.mjs +2 -0
  162. package/esm2022/src/lib/components/tasks/public-api.mjs +6 -0
  163. package/esm2022/src/lib/components/tasks/tasks.columns.mjs +34 -0
  164. package/esm2022/src/lib/components/tasks/tasks.component.mjs +113 -0
  165. package/esm2022/src/lib/components/tasks/tasks.facade.mjs +340 -0
  166. package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +144 -0
  167. package/esm2022/src/lib/components/tasks/tasks.models.mjs +4 -0
  168. package/esm2022/src/lib/components/tasks/tasks.module.mjs +48 -0
  169. package/esm2022/src/lib/components/tasks/tasks.service.mjs +106 -0
  170. package/esm2022/src/lib/components/tasks/tasks.state.mjs +96 -0
  171. package/esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs +5 -0
  172. package/esm2022/src/lib/components/wf/index.mjs +2 -0
  173. package/esm2022/src/lib/components/wf/public-api.mjs +4 -0
  174. package/esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs +5 -0
  175. package/esm2022/src/lib/components/wf/wf.columns.mjs +34 -0
  176. package/esm2022/src/lib/components/wf/wf.component.mjs +68 -0
  177. package/esm2022/src/lib/components/wf/wf.module.mjs +22 -0
  178. package/esm2022/src/lib/components/wf/wf.service.mjs +82 -0
  179. package/esm2022/src/lib/components/workflow/column.mjs +38 -0
  180. package/esm2022/src/lib/components/workflow/helper.mjs +47 -0
  181. package/esm2022/src/lib/components/workflow/index.mjs +2 -0
  182. package/esm2022/src/lib/components/workflow/public-api.mjs +4 -0
  183. package/esm2022/src/lib/components/workflow/table-style.mjs +53 -0
  184. package/esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs +5 -0
  185. package/esm2022/src/lib/components/workflow/workflow.component.mjs +210 -0
  186. package/esm2022/src/lib/components/workflow/workflow.module.mjs +19 -0
  187. package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +125 -0
  188. package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +78 -0
  189. package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +87 -0
  190. package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +84 -0
  191. package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +1265 -0
  192. package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +96 -0
  193. package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.mjs +2 -0
  194. package/esm2022/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.mjs +242 -0
  195. package/esm2022/src/lib/components/workflow-designer/index.mjs +2 -0
  196. package/esm2022/src/lib/components/workflow-designer/public-api.mjs +5 -0
  197. package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +237 -0
  198. package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +321 -0
  199. package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +240 -0
  200. package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +158 -0
  201. package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +278 -0
  202. package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +177 -0
  203. package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +226 -0
  204. package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +138 -0
  205. package/esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5 -0
  206. package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +210 -0
  207. package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +460 -0
  208. package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +126 -0
  209. package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +922 -0
  210. package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +2 -0
  211. package/esm2022/src/lib/components/workflows/index.mjs +2 -0
  212. package/esm2022/src/lib/components/workflows/public-api.mjs +7 -0
  213. package/esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs +5 -0
  214. package/esm2022/src/lib/components/workflows/workflow-form/workflow-form.component.mjs +87 -0
  215. package/esm2022/src/lib/components/workflows/workflows.api.mjs +63 -0
  216. package/esm2022/src/lib/components/workflows/workflows.columns.mjs +34 -0
  217. package/esm2022/src/lib/components/workflows/workflows.component.mjs +236 -0
  218. package/esm2022/src/lib/components/workflows/workflows.config.mjs +50 -0
  219. package/esm2022/src/lib/components/workflows/workflows.facade.mjs +114 -0
  220. package/esm2022/src/lib/components/workflows/workflows.module.mjs +21 -0
  221. package/esm2022/src/lib/components/workflows/workflows.service.mjs +63 -0
  222. package/esm2022/src/lib/components/workflows/workflows.state.mjs +23 -0
  223. package/esm2022/src/lib/models/ActionHistory.mjs +2 -0
  224. package/esm2022/src/lib/models/ActionType.mjs +11 -0
  225. package/esm2022/src/lib/models/Actor.mjs +2 -0
  226. package/esm2022/src/lib/models/ActorTag.mjs +2 -0
  227. package/esm2022/src/lib/models/Coord.mjs +2 -0
  228. package/esm2022/src/lib/models/DataType.mjs +27 -0
  229. package/esm2022/src/lib/models/EAVEntity.mjs +2 -0
  230. package/esm2022/src/lib/models/ErrorResponse.mjs +11 -0
  231. package/esm2022/src/lib/models/Escalation.mjs +2 -0
  232. package/esm2022/src/lib/models/EscalationCycle.mjs +2 -0
  233. package/esm2022/src/lib/models/EscalationStage.mjs +2 -0
  234. package/esm2022/src/lib/models/EscalationType.mjs +7 -0
  235. package/esm2022/src/lib/models/File.mjs +2 -0
  236. package/esm2022/src/lib/models/FilterTypes.mjs +9 -0
  237. package/esm2022/src/lib/models/FlowableStatus.mjs +2 -0
  238. package/esm2022/src/lib/models/Form.mjs +2 -0
  239. package/esm2022/src/lib/models/FormEntity.mjs +2 -0
  240. package/esm2022/src/lib/models/FormFill.mjs +6 -0
  241. package/esm2022/src/lib/models/FormProperty.mjs +2 -0
  242. package/esm2022/src/lib/models/FormValues.mjs +2 -0
  243. package/esm2022/src/lib/models/MailConfig.mjs +2 -0
  244. package/esm2022/src/lib/models/MessageConfig.mjs +2 -0
  245. package/esm2022/src/lib/models/MessageMedium.mjs +6 -0
  246. package/esm2022/src/lib/models/OperationAction.mjs +2 -0
  247. package/esm2022/src/lib/models/PagedResult.mjs +2 -0
  248. package/esm2022/src/lib/models/PeriodMode.mjs +12 -0
  249. package/esm2022/src/lib/models/PermissionConfig.mjs +2 -0
  250. package/esm2022/src/lib/models/ReportSchedule.mjs +2 -0
  251. package/esm2022/src/lib/models/ReportType.mjs +7 -0
  252. package/esm2022/src/lib/models/Resource.mjs +47 -0
  253. package/esm2022/src/lib/models/ResponseKeyValue.mjs +2 -0
  254. package/esm2022/src/lib/models/SMSConfig.mjs +2 -0
  255. package/esm2022/src/lib/models/SearchDynamicWrapper.mjs +2 -0
  256. package/esm2022/src/lib/models/SearchOperator.mjs +6 -0
  257. package/esm2022/src/lib/models/SearchPropertySign.mjs +11 -0
  258. package/esm2022/src/lib/models/SearchPropertyValue.mjs +2 -0
  259. package/esm2022/src/lib/models/SearchPropertyValueType.mjs +11 -0
  260. package/esm2022/src/lib/models/Size.mjs +2 -0
  261. package/esm2022/src/lib/models/SortDirection.mjs +7 -0
  262. package/esm2022/src/lib/models/StageActorRule.mjs +8 -0
  263. package/esm2022/src/lib/models/SwimLane.mjs +2 -0
  264. package/esm2022/src/lib/models/Tag.mjs +2 -0
  265. package/esm2022/src/lib/models/Task.mjs +2 -0
  266. package/esm2022/src/lib/models/TaskAssignmentType.mjs +6 -0
  267. package/esm2022/src/lib/models/TaskNotification.mjs +2 -0
  268. package/esm2022/src/lib/models/TaskNotificationMessageType.mjs +6 -0
  269. package/esm2022/src/lib/models/TaskNotificationType.mjs +8 -0
  270. package/esm2022/src/lib/models/TaskStatus.mjs +9 -0
  271. package/esm2022/src/lib/models/Workflow.mjs +2 -0
  272. package/esm2022/src/lib/models/WorkflowAction.mjs +2 -0
  273. package/esm2022/src/lib/models/WorkflowOperation.mjs +2 -0
  274. package/esm2022/src/lib/models/WorkflowStage.mjs +2 -0
  275. package/esm2022/src/lib/models/actors.mjs +2 -0
  276. package/esm2022/src/lib/models/auth-mechanism.mjs +8 -0
  277. package/esm2022/src/lib/models/base.mjs +2 -0
  278. package/esm2022/src/lib/models/index.mjs +2 -0
  279. package/esm2022/src/lib/models/object-state.mjs +8 -0
  280. package/esm2022/src/lib/models/operation-type.mjs +7 -0
  281. package/esm2022/src/lib/models/paged.mjs +2 -0
  282. package/esm2022/src/lib/models/public-api.mjs +64 -0
  283. package/esm2022/src/lib/models/query-params.mjs +2 -0
  284. package/esm2022/src/lib/models/status.mjs +6 -0
  285. package/esm2022/src/lib/models/task-history.mjs +2 -0
  286. package/esm2022/src/lib/models/user-access-request-status.mjs +7 -0
  287. package/esm2022/src/lib/models/user.mjs +2 -0
  288. package/esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs +5 -0
  289. package/esm2022/src/lib/pipes/async-label.pipe.mjs +25 -0
  290. package/esm2022/src/lib/pipes/index.mjs +2 -0
  291. package/esm2022/src/lib/pipes/public-api.mjs +2 -0
  292. package/esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs +5 -0
  293. package/esm2022/src/lib/services/environment.service.mjs +26 -0
  294. package/esm2022/src/lib/services/http-web-request.service.mjs +92 -0
  295. package/esm2022/src/lib/services/index.mjs +2 -0
  296. package/esm2022/src/lib/services/label.service.mjs +134 -0
  297. package/esm2022/src/lib/services/public-api.mjs +5 -0
  298. package/esm2022/src/lib/services/util.service.mjs +67 -0
  299. package/esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs +5 -0
  300. package/esm2022/src/lib/shared/base-table-style.mjs +55 -0
  301. package/esm2022/src/lib/shared/components/base-data-view.component.mjs +154 -0
  302. package/esm2022/src/lib/shared/components/base-model-field.mjs +21 -0
  303. package/esm2022/src/lib/shared/index.mjs +7 -0
  304. package/esm2022/src/lib/shared/models/DataViewConfig.mjs +2 -0
  305. package/esm2022/src/lib/shared/public-api.mjs +13 -0
  306. package/esm2022/src/lib/shared/shared.module.mjs +103 -0
  307. package/esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs +5 -0
  308. package/esm2022/verben-workflow-ui.mjs +5 -0
  309. package/fesm2022/verben-workflow-ui-src-lib-base.mjs +1055 -0
  310. package/fesm2022/verben-workflow-ui-src-lib-base.mjs.map +1 -0
  311. package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +484 -0
  312. package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +1 -0
  313. package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +3887 -0
  314. package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -0
  315. package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs +72 -0
  316. package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs.map +1 -0
  317. package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs +83 -0
  318. package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs.map +1 -0
  319. package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs +159 -0
  320. package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs.map +1 -0
  321. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +430 -0
  322. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +1 -0
  323. package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs +232 -0
  324. package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs.map +1 -0
  325. package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +1967 -0
  326. package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +1 -0
  327. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +769 -0
  328. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -0
  329. package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs +78 -0
  330. package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs.map +1 -0
  331. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +812 -0
  332. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -0
  333. package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs +33 -0
  334. package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs.map +1 -0
  335. package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +1012 -0
  336. package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -0
  337. package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +786 -0
  338. package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -0
  339. package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs +72 -0
  340. package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs.map +1 -0
  341. package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs +94 -0
  342. package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs.map +1 -0
  343. package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +269 -0
  344. package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -0
  345. package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs +995 -0
  346. package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs.map +1 -0
  347. package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +860 -0
  348. package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -0
  349. package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +203 -0
  350. package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs.map +1 -0
  351. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5353 -0
  352. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -0
  353. package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +365 -0
  354. package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +1 -0
  355. package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +658 -0
  356. package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +1 -0
  357. package/fesm2022/verben-workflow-ui-src-lib-models.mjs +255 -0
  358. package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +1 -0
  359. package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs +32 -0
  360. package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs.map +1 -0
  361. package/fesm2022/verben-workflow-ui-src-lib-services.mjs +314 -0
  362. package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +1 -0
  363. package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +336 -0
  364. package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +1 -0
  365. package/fesm2022/verben-workflow-ui.mjs +32 -0
  366. package/fesm2022/verben-workflow-ui.mjs.map +1 -0
  367. package/index.d.ts +5 -0
  368. package/package.json +182 -10
  369. package/public-api.d.ts +20 -0
  370. package/src/lib/base/README.md +146 -0
  371. package/src/lib/base/core/base-data-page.facade.d.ts +138 -0
  372. package/src/lib/base/core/base-data-page.service.d.ts +61 -0
  373. package/src/lib/base/core/base-data-page.state.d.ts +73 -0
  374. package/src/lib/base/handlers/filter-handler.service.d.ts +34 -0
  375. package/src/lib/base/handlers/search-handler.service.d.ts +20 -0
  376. package/src/lib/base/handlers/sort-handler.service.d.ts +30 -0
  377. package/src/lib/base/models/api-payload.d.ts +2 -0
  378. package/src/lib/base/models/page-config.interface.d.ts +24 -0
  379. package/src/lib/base/models/page-filter-tab-option.interface.d.ts +19 -0
  380. package/src/lib/base/public-api.d.ts +9 -0
  381. package/src/lib/base/utils/column-helpers.d.ts +24 -0
  382. package/src/lib/components/actors/actors.columns.d.ts +3 -0
  383. package/src/lib/components/actors/actors.component.d.ts +79 -0
  384. package/src/lib/components/actors/actors.config.d.ts +10 -0
  385. package/src/lib/components/actors/actors.facade.d.ts +29 -0
  386. package/src/lib/components/actors/actors.form.component.d.ts +23 -0
  387. package/src/lib/components/actors/actors.module.d.ts +11 -0
  388. package/src/lib/components/actors/actors.service.d.ts +33 -0
  389. package/src/lib/components/actors/actors.state.d.ts +19 -0
  390. package/src/lib/components/designer/components/label-editor.component.d.ts +22 -0
  391. package/src/lib/components/designer/components/node-selector.component.d.ts +23 -0
  392. package/src/lib/components/designer/components/swimlane-label.component.d.ts +12 -0
  393. package/src/lib/components/designer/components/swimlane-popup.component.d.ts +18 -0
  394. package/src/lib/components/designer/components/wf-canvas.component.d.ts +37 -0
  395. package/src/lib/components/designer/components/wf-designer.component.d.ts +22 -0
  396. package/src/lib/components/designer/components/wf-toolbar.component.d.ts +17 -0
  397. package/src/lib/components/designer/models/types.d.ts +103 -0
  398. package/src/lib/components/designer/services/canvas-state.service.d.ts +24 -0
  399. package/src/lib/components/designer/services/connection-segment-interaction.service.d.ts +36 -0
  400. package/src/lib/components/designer/services/connection.service.d.ts +47 -0
  401. package/src/lib/components/designer/services/keyboard-handler.service.d.ts +9 -0
  402. package/src/lib/components/designer/services/label-management.service.d.ts +14 -0
  403. package/src/lib/components/designer/services/node-finder.service.d.ts +10 -0
  404. package/src/lib/components/designer/services/node-interaction.service.d.ts +19 -0
  405. package/src/lib/components/designer/services/node-precondition.service.d.ts +37 -0
  406. package/src/lib/components/designer/services/node-selection.service.d.ts +19 -0
  407. package/src/lib/components/designer/services/orthogonal-router.service.d.ts +36 -0
  408. package/src/lib/components/designer/services/position-update.service.d.ts +10 -0
  409. package/src/lib/components/designer/services/rendering.service.d.ts +67 -0
  410. package/src/lib/components/designer/services/swimlane-management.service.d.ts +19 -0
  411. package/src/lib/components/designer/services/swimlane-stats.service.d.ts +19 -0
  412. package/src/lib/components/designer/services/viewport.service.d.ts +10 -0
  413. package/src/lib/components/designer/services/wf-facade.service.d.ts +67 -0
  414. package/src/lib/components/designer/services/wf-mapper.service.d.ts +26 -0
  415. package/src/lib/components/designer/services/wf-persistence.service.d.ts +21 -0
  416. package/src/lib/components/designer/services/wf-state.service.d.ts +30 -0
  417. package/src/lib/components/expiration/expiration.component.d.ts +20 -0
  418. package/src/lib/components/expiration/expiration.module.d.ts +9 -0
  419. package/src/lib/components/file-render/file-render.component.d.ts +17 -0
  420. package/src/lib/components/file-render/file-render.module.d.ts +10 -0
  421. package/src/lib/components/file-upload/file-upload.component.d.ts +22 -0
  422. package/src/lib/components/file-upload/file-upload.module.d.ts +11 -0
  423. package/src/lib/components/flowable-status/flowable-status.columns.d.ts +3 -0
  424. package/src/lib/components/flowable-status/flowable-status.component.d.ts +80 -0
  425. package/src/lib/components/flowable-status/flowable-status.config.d.ts +11 -0
  426. package/src/lib/components/flowable-status/flowable-status.facade.d.ts +26 -0
  427. package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +18 -0
  428. package/src/lib/components/flowable-status/flowable-status.module.d.ts +11 -0
  429. package/src/lib/components/flowable-status/flowable-status.service.d.ts +23 -0
  430. package/src/lib/components/flowable-status/flowable-status.state.d.ts +11 -0
  431. package/src/lib/components/flowable-status/public-api.d.ts +2 -0
  432. package/src/lib/components/form-control/form-control.component.d.ts +38 -0
  433. package/src/lib/components/form-control/form-control.module.d.ts +11 -0
  434. package/src/lib/components/form-group/base-table-style.d.ts +1 -0
  435. package/src/lib/components/form-group/form-fields/form-fields.component.d.ts +136 -0
  436. package/src/lib/components/form-group/form-fields/form-fields.module.d.ts +11 -0
  437. package/src/lib/components/form-group/form-fields/form-fields.service.d.ts +9 -0
  438. package/src/lib/components/form-group/form-group.component.d.ts +108 -0
  439. package/src/lib/components/form-group/form-group.module.d.ts +15 -0
  440. package/src/lib/components/form-group/form-group.service.d.ts +9 -0
  441. package/src/lib/components/form-response/form-response.component.d.ts +108 -0
  442. package/src/lib/components/form-response/form-response.module.d.ts +12 -0
  443. package/src/lib/components/form-response/form-response.service.d.ts +9 -0
  444. package/src/lib/components/form-timer/form-timer.component.d.ts +13 -0
  445. package/src/lib/components/form-timer/form-timer.module.d.ts +9 -0
  446. package/src/lib/components/forms/base-table-style.d.ts +1 -0
  447. package/src/lib/components/forms/forms.component.d.ts +88 -0
  448. package/src/lib/components/forms/forms.module.d.ts +8 -0
  449. package/src/lib/components/forms/forms.service.d.ts +9 -0
  450. package/src/lib/components/journal/journal.component.d.ts +5 -0
  451. package/src/lib/components/journal/journal.module.d.ts +8 -0
  452. package/src/lib/components/my-queue/my-queue.columns.d.ts +3 -0
  453. package/src/lib/components/my-queue/my-queue.component.d.ts +26 -0
  454. package/src/lib/components/my-queue/my-queue.facade.d.ts +42 -0
  455. package/src/lib/components/my-queue/my-queue.module.d.ts +14 -0
  456. package/src/lib/components/my-queue/my-queue.service.d.ts +65 -0
  457. package/src/lib/components/my-queue/my-queue.state.d.ts +33 -0
  458. package/src/lib/components/my-queue/tasks.form.component.d.ts +36 -0
  459. package/src/lib/components/operation-popup/operation-popup.component.d.ts +57 -0
  460. package/src/lib/components/operation-popup/operation-popup.facade.d.ts +32 -0
  461. package/src/lib/components/operation-popup/operation-popup.service.d.ts +23 -0
  462. package/src/lib/components/operation-popup/operation-popup.state.d.ts +20 -0
  463. package/src/lib/components/stage-details/stage-details.component.d.ts +24 -0
  464. package/src/lib/components/stage-details/stage-details.module.d.ts +9 -0
  465. package/src/lib/components/task-form/task-form.component.d.ts +10 -0
  466. package/src/lib/components/task-form/task-form.module.d.ts +10 -0
  467. package/src/lib/components/task-history/task-history.component.d.ts +35 -0
  468. package/src/lib/components/task-history/task-history.module.d.ts +10 -0
  469. package/src/lib/components/task-history/task-history.service.d.ts +13 -0
  470. package/src/lib/components/task-notification/base-table-style.d.ts +1 -0
  471. package/src/lib/components/task-notification/task-notification.component.d.ts +89 -0
  472. package/src/lib/components/task-notification/task-notification.module.d.ts +8 -0
  473. package/src/lib/components/task-notification/task-notification.service.d.ts +32 -0
  474. package/src/lib/components/tasks/tasks.columns.d.ts +3 -0
  475. package/src/lib/components/tasks/tasks.component.d.ts +28 -0
  476. package/src/lib/components/tasks/tasks.facade.d.ts +40 -0
  477. package/src/lib/components/tasks/tasks.form.component.d.ts +36 -0
  478. package/src/lib/components/tasks/tasks.models.d.ts +4 -0
  479. package/src/lib/components/tasks/tasks.module.d.ts +16 -0
  480. package/src/lib/components/tasks/tasks.service.d.ts +57 -0
  481. package/src/lib/components/tasks/tasks.state.d.ts +35 -0
  482. package/src/lib/components/wf/wf.columns.d.ts +3 -0
  483. package/src/lib/components/wf/wf.component.d.ts +16 -0
  484. package/src/lib/components/wf/wf.module.d.ts +10 -0
  485. package/src/lib/components/wf/wf.service.d.ts +51 -0
  486. package/src/lib/components/workflow/column.d.ts +3 -0
  487. package/src/lib/components/workflow/helper.d.ts +2 -0
  488. package/src/lib/components/workflow/table-style.d.ts +1 -0
  489. package/src/lib/components/workflow/workflow.component.d.ts +57 -0
  490. package/src/lib/components/workflow/workflow.module.d.ts +9 -0
  491. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +34 -0
  492. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +25 -0
  493. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +38 -0
  494. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +29 -0
  495. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +292 -0
  496. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +39 -0
  497. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.d.ts +5 -0
  498. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.d.ts +46 -0
  499. package/src/lib/components/workflow-designer/services/connection.service.d.ts +101 -0
  500. package/src/lib/components/workflow-designer/services/node-management.service.d.ts +73 -0
  501. package/src/lib/components/workflow-designer/services/popup.service.d.ts +147 -0
  502. package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +66 -0
  503. package/src/lib/components/workflow-designer/services/transformer.service.d.ts +51 -0
  504. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +43 -0
  505. package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +58 -0
  506. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +49 -0
  507. package/src/lib/components/workflow-designer/workflow-data.service.d.ts +59 -0
  508. package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +121 -0
  509. package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +41 -0
  510. package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +278 -0
  511. package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +129 -0
  512. package/src/lib/components/workflows/public-api.d.ts +4 -0
  513. package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +28 -0
  514. package/src/lib/components/workflows/workflows.api.d.ts +38 -0
  515. package/src/lib/components/workflows/workflows.columns.d.ts +3 -0
  516. package/src/lib/components/workflows/workflows.component.d.ts +98 -0
  517. package/src/lib/components/workflows/workflows.config.d.ts +10 -0
  518. package/src/lib/components/workflows/workflows.facade.d.ts +41 -0
  519. package/src/lib/components/workflows/workflows.module.d.ts +11 -0
  520. package/src/lib/components/workflows/workflows.service.d.ts +32 -0
  521. package/src/lib/components/workflows/workflows.state.d.ts +15 -0
  522. package/src/lib/models/ActionHistory.d.ts +14 -0
  523. package/src/lib/models/ActionType.d.ts +9 -0
  524. package/src/lib/models/Actor.d.ts +11 -0
  525. package/src/lib/models/ActorTag.d.ts +6 -0
  526. package/src/lib/models/Coord.d.ts +4 -0
  527. package/src/lib/models/DataType.d.ts +25 -0
  528. package/src/lib/models/EAVEntity.d.ts +4 -0
  529. package/src/lib/models/ErrorResponse.d.ts +6 -0
  530. package/src/lib/models/Escalation.d.ts +14 -0
  531. package/src/lib/models/EscalationCycle.d.ts +12 -0
  532. package/src/lib/models/EscalationStage.d.ts +10 -0
  533. package/src/lib/models/EscalationType.d.ts +5 -0
  534. package/src/lib/models/File.d.ts +7 -0
  535. package/src/lib/models/FilterTypes.d.ts +6 -0
  536. package/src/lib/models/FlowableStatus.d.ts +5 -0
  537. package/src/lib/models/Form.d.ts +13 -0
  538. package/src/lib/models/FormEntity.d.ts +13 -0
  539. package/src/lib/models/FormFill.d.ts +15 -0
  540. package/src/lib/models/FormProperty.d.ts +15 -0
  541. package/src/lib/models/FormValues.d.ts +14 -0
  542. package/src/lib/models/MailConfig.d.ts +12 -0
  543. package/src/lib/models/MessageConfig.d.ts +3 -0
  544. package/src/lib/models/MessageMedium.d.ts +4 -0
  545. package/src/lib/models/OperationAction.d.ts +14 -0
  546. package/src/lib/models/PagedResult.d.ts +5 -0
  547. package/src/lib/models/PeriodMode.d.ts +10 -0
  548. package/src/lib/models/PermissionConfig.d.ts +7 -0
  549. package/src/lib/models/ReportSchedule.d.ts +22 -0
  550. package/src/lib/models/ReportType.d.ts +5 -0
  551. package/src/lib/models/Resource.d.ts +20 -0
  552. package/src/lib/models/ResponseKeyValue.d.ts +5 -0
  553. package/src/lib/models/SMSConfig.d.ts +10 -0
  554. package/src/lib/models/SearchDynamicWrapper.d.ts +5 -0
  555. package/src/lib/models/SearchOperator.d.ts +4 -0
  556. package/src/lib/models/SearchPropertySign.d.ts +9 -0
  557. package/src/lib/models/SearchPropertyValue.d.ts +12 -0
  558. package/src/lib/models/SearchPropertyValueType.d.ts +9 -0
  559. package/src/lib/models/Size.d.ts +4 -0
  560. package/src/lib/models/SortDirection.d.ts +5 -0
  561. package/src/lib/models/StageActorRule.d.ts +6 -0
  562. package/src/lib/models/SwimLane.d.ts +13 -0
  563. package/src/lib/models/Tag.d.ts +6 -0
  564. package/src/lib/models/Task.d.ts +22 -0
  565. package/src/lib/models/TaskAssignmentType.d.ts +4 -0
  566. package/src/lib/models/TaskNotification.d.ts +14 -0
  567. package/src/lib/models/TaskNotificationMessageType.d.ts +4 -0
  568. package/src/lib/models/TaskNotificationType.d.ts +6 -0
  569. package/src/lib/models/TaskStatus.d.ts +7 -0
  570. package/src/lib/models/Workflow.d.ts +20 -0
  571. package/src/lib/models/WorkflowAction.d.ts +13 -0
  572. package/src/lib/models/WorkflowOperation.d.ts +6 -0
  573. package/src/lib/models/WorkflowStage.d.ts +26 -0
  574. package/src/lib/models/actors.d.ts +8 -0
  575. package/src/lib/models/auth-mechanism.d.ts +13 -0
  576. package/src/lib/models/base.d.ts +11 -0
  577. package/src/lib/models/object-state.d.ts +6 -0
  578. package/src/lib/models/operation-type.d.ts +5 -0
  579. package/src/lib/models/paged.d.ts +9 -0
  580. package/src/lib/models/query-params.d.ts +8 -0
  581. package/src/lib/models/status.d.ts +4 -0
  582. package/src/lib/models/task-history.d.ts +17 -0
  583. package/src/lib/models/user-access-request-status.d.ts +5 -0
  584. package/src/lib/models/user.d.ts +23 -0
  585. package/src/lib/pipes/async-label.pipe.d.ts +11 -0
  586. package/src/lib/services/environment.service.d.ts +23 -0
  587. package/src/lib/services/http-web-request.service.d.ts +23 -0
  588. package/src/lib/services/label.service.d.ts +15 -0
  589. package/src/lib/services/public-api.d.ts +4 -0
  590. package/src/lib/services/util.service.d.ts +20 -0
  591. package/src/lib/shared/base-table-style.d.ts +2 -0
  592. package/src/lib/shared/components/base-data-view.component.d.ts +41 -0
  593. package/src/lib/shared/components/base-model-field.d.ts +26 -0
  594. package/src/lib/shared/models/DataViewConfig.d.ts +11 -0
  595. package/src/lib/shared/public-api.d.ts +5 -0
  596. package/src/lib/shared/shared.module.d.ts +11 -0
  597. package/ng-package.json +0 -15
  598. package/src/lib/components/actors/actors.columns.ts +0 -40
  599. package/src/lib/components/actors/actors.component.css +0 -0
  600. package/src/lib/components/actors/actors.component.html +0 -329
  601. package/src/lib/components/actors/actors.component.spec.ts +0 -23
  602. package/src/lib/components/actors/actors.component.ts +0 -141
  603. package/src/lib/components/actors/actors.facade.ts +0 -314
  604. package/src/lib/components/actors/actors.form.component.html +0 -37
  605. package/src/lib/components/actors/actors.form.component.ts +0 -80
  606. package/src/lib/components/actors/actors.model.ts +0 -4
  607. package/src/lib/components/actors/actors.module.ts +0 -13
  608. package/src/lib/components/actors/actors.service.ts +0 -101
  609. package/src/lib/components/actors/actors.state.ts +0 -117
  610. package/src/lib/components/actors/ng-package.json +0 -6
  611. package/src/lib/components/designer/components/label-editor.component.ts +0 -188
  612. package/src/lib/components/designer/components/node-selector.component.ts +0 -210
  613. package/src/lib/components/designer/components/swimlane-label.component.ts +0 -102
  614. package/src/lib/components/designer/components/swimlane-popup.component.ts +0 -51
  615. package/src/lib/components/designer/components/wf-canvas.component.ts +0 -495
  616. package/src/lib/components/designer/components/wf-designer.component.ts +0 -185
  617. package/src/lib/components/designer/components/wf-node.component.ts +0 -91
  618. package/src/lib/components/designer/components/wf-properties-popup.component.ts +0 -257
  619. package/src/lib/components/designer/components/wf-toolbar.component.ts +0 -84
  620. package/src/lib/components/designer/models/types.ts +0 -132
  621. package/src/lib/components/designer/ng-package.json +0 -6
  622. package/src/lib/components/designer/services/canvas-state.service.ts +0 -63
  623. package/src/lib/components/designer/services/connection-segment-interaction.service.ts +0 -141
  624. package/src/lib/components/designer/services/connection.service.ts +0 -350
  625. package/src/lib/components/designer/services/keyboard-handler.service.ts +0 -39
  626. package/src/lib/components/designer/services/label-management.service.ts +0 -72
  627. package/src/lib/components/designer/services/node-finder.service.ts +0 -34
  628. package/src/lib/components/designer/services/node-interaction.service.ts +0 -135
  629. package/src/lib/components/designer/services/node-placement.service.ts +0 -77
  630. package/src/lib/components/designer/services/node-precondition.service.ts +0 -139
  631. package/src/lib/components/designer/services/node-renderer.service.ts +0 -97
  632. package/src/lib/components/designer/services/node-selection.service.ts +0 -110
  633. package/src/lib/components/designer/services/orthogonal-router.service.ts +0 -233
  634. package/src/lib/components/designer/services/position-update.service.ts +0 -56
  635. package/src/lib/components/designer/services/rendering.service.ts +0 -296
  636. package/src/lib/components/designer/services/swimlane-management.service.ts +0 -189
  637. package/src/lib/components/designer/services/swimlane-stats.service.ts +0 -53
  638. package/src/lib/components/designer/services/tag-helper.service.ts +0 -80
  639. package/src/lib/components/designer/services/viewport.service.ts +0 -30
  640. package/src/lib/components/designer/services/wf-facade.service.ts +0 -287
  641. package/src/lib/components/designer/services/wf-mapper.service.ts +0 -448
  642. package/src/lib/components/designer/services/wf-persistence.service.ts +0 -180
  643. package/src/lib/components/designer/services/wf-state.service.ts +0 -143
  644. package/src/lib/components/expiration/expiration.component.css +0 -0
  645. package/src/lib/components/expiration/expiration.component.html +0 -21
  646. package/src/lib/components/expiration/expiration.component.spec.ts +0 -23
  647. package/src/lib/components/expiration/expiration.component.ts +0 -52
  648. package/src/lib/components/expiration/expiration.module.ts +0 -11
  649. package/src/lib/components/expiration/ng-package.json +0 -6
  650. package/src/lib/components/file-render/file-render.component.css +0 -4
  651. package/src/lib/components/file-render/file-render.component.html +0 -21
  652. package/src/lib/components/file-render/file-render.component.spec.ts +0 -23
  653. package/src/lib/components/file-render/file-render.component.ts +0 -34
  654. package/src/lib/components/file-render/file-render.module.ts +0 -19
  655. package/src/lib/components/file-render/ng-package.json +0 -6
  656. package/src/lib/components/file-upload/file-upload.component.css +0 -0
  657. package/src/lib/components/file-upload/file-upload.component.html +0 -69
  658. package/src/lib/components/file-upload/file-upload.component.spec.ts +0 -23
  659. package/src/lib/components/file-upload/file-upload.component.ts +0 -87
  660. package/src/lib/components/file-upload/file-upload.module.ts +0 -40
  661. package/src/lib/components/file-upload/ng-package.json +0 -6
  662. package/src/lib/components/flowable-status/flowable-status.columns.ts +0 -23
  663. package/src/lib/components/flowable-status/flowable-status.component.css +0 -1
  664. package/src/lib/components/flowable-status/flowable-status.component.html +0 -159
  665. package/src/lib/components/flowable-status/flowable-status.component.ts +0 -147
  666. package/src/lib/components/flowable-status/flowable-status.facade.ts +0 -251
  667. package/src/lib/components/flowable-status/flowable-status.form.component.html +0 -13
  668. package/src/lib/components/flowable-status/flowable-status.form.component.ts +0 -51
  669. package/src/lib/components/flowable-status/flowable-status.model.ts +0 -3
  670. package/src/lib/components/flowable-status/flowable-status.module.ts +0 -13
  671. package/src/lib/components/flowable-status/flowable-status.service.ts +0 -62
  672. package/src/lib/components/flowable-status/flowable-status.state.ts +0 -97
  673. package/src/lib/components/flowable-status/ng-package.json +0 -6
  674. package/src/lib/components/flowable-status/public-api.ts +0 -3
  675. package/src/lib/components/form-control/form-control.component.css +0 -0
  676. package/src/lib/components/form-control/form-control.component.html +0 -254
  677. package/src/lib/components/form-control/form-control.component.spec.ts +0 -23
  678. package/src/lib/components/form-control/form-control.component.ts +0 -171
  679. package/src/lib/components/form-control/form-control.module.ts +0 -47
  680. package/src/lib/components/form-control/ng-package.json +0 -6
  681. package/src/lib/components/form-group/base-table-style.ts +0 -52
  682. package/src/lib/components/form-group/form-fields/form-fields.component.css +0 -114
  683. package/src/lib/components/form-group/form-fields/form-fields.component.html +0 -621
  684. package/src/lib/components/form-group/form-fields/form-fields.component.spec.ts +0 -23
  685. package/src/lib/components/form-group/form-fields/form-fields.component.ts +0 -1120
  686. package/src/lib/components/form-group/form-fields/form-fields.module.ts +0 -48
  687. package/src/lib/components/form-group/form-fields/form-fields.service.ts +0 -70
  688. package/src/lib/components/form-group/form-fields/helper.ts +0 -45
  689. package/src/lib/components/form-group/form-group.component.css +0 -113
  690. package/src/lib/components/form-group/form-group.component.html +0 -486
  691. package/src/lib/components/form-group/form-group.component.spec.ts +0 -22
  692. package/src/lib/components/form-group/form-group.component.ts +0 -798
  693. package/src/lib/components/form-group/form-group.module.ts +0 -54
  694. package/src/lib/components/form-group/form-group.service.ts +0 -53
  695. package/src/lib/components/form-group/helper.ts +0 -45
  696. package/src/lib/components/form-group/ng-package.json +0 -6
  697. package/src/lib/components/form-response/form-response.component.css +0 -114
  698. package/src/lib/components/form-response/form-response.component.html +0 -188
  699. package/src/lib/components/form-response/form-response.component.spec.ts +0 -23
  700. package/src/lib/components/form-response/form-response.component.ts +0 -726
  701. package/src/lib/components/form-response/form-response.module.ts +0 -48
  702. package/src/lib/components/form-response/form-response.service.ts +0 -52
  703. package/src/lib/components/form-response/helper.ts +0 -222
  704. package/src/lib/components/form-response/ng-package.json +0 -6
  705. package/src/lib/components/form-timer/form-timer.component.css +0 -0
  706. package/src/lib/components/form-timer/form-timer.component.html +0 -47
  707. package/src/lib/components/form-timer/form-timer.component.spec.ts +0 -23
  708. package/src/lib/components/form-timer/form-timer.component.ts +0 -52
  709. package/src/lib/components/form-timer/form-timer.module.ts +0 -19
  710. package/src/lib/components/form-timer/ng-package.json +0 -6
  711. package/src/lib/components/forms/base-table-style.ts +0 -52
  712. package/src/lib/components/forms/forms.component.css +0 -126
  713. package/src/lib/components/forms/forms.component.html +0 -538
  714. package/src/lib/components/forms/forms.component.spec.ts +0 -23
  715. package/src/lib/components/forms/forms.component.ts +0 -810
  716. package/src/lib/components/forms/forms.module.ts +0 -10
  717. package/src/lib/components/forms/forms.service.spec.ts +0 -16
  718. package/src/lib/components/forms/forms.service.ts +0 -65
  719. package/src/lib/components/forms/ng-package.json +0 -6
  720. package/src/lib/components/journal/journal.component.css +0 -0
  721. package/src/lib/components/journal/journal.component.html +0 -1
  722. package/src/lib/components/journal/journal.component.spec.ts +0 -23
  723. package/src/lib/components/journal/journal.component.ts +0 -10
  724. package/src/lib/components/journal/journal.module.ts +0 -10
  725. package/src/lib/components/journal/ng-package.json +0 -6
  726. package/src/lib/components/my-queue/my-queue.columns.ts +0 -32
  727. package/src/lib/components/my-queue/my-queue.component.css +0 -4
  728. package/src/lib/components/my-queue/my-queue.component.html +0 -181
  729. package/src/lib/components/my-queue/my-queue.component.spec.ts +0 -23
  730. package/src/lib/components/my-queue/my-queue.component.ts +0 -136
  731. package/src/lib/components/my-queue/my-queue.facade.ts +0 -577
  732. package/src/lib/components/my-queue/my-queue.helper.ts +0 -72
  733. package/src/lib/components/my-queue/my-queue.module.ts +0 -23
  734. package/src/lib/components/my-queue/my-queue.service.spec.ts +0 -16
  735. package/src/lib/components/my-queue/my-queue.service.ts +0 -229
  736. package/src/lib/components/my-queue/my-queue.state.ts +0 -105
  737. package/src/lib/components/my-queue/ng-package.json +0 -6
  738. package/src/lib/components/my-queue/tasks.form.component.html +0 -144
  739. package/src/lib/components/my-queue/tasks.form.component.ts +0 -152
  740. package/src/lib/components/operation-popup/ng-package.json +0 -6
  741. package/src/lib/components/operation-popup/operation-popup.component.css +0 -1
  742. package/src/lib/components/operation-popup/operation-popup.component.html +0 -107
  743. package/src/lib/components/operation-popup/operation-popup.component.ts +0 -381
  744. package/src/lib/components/operation-popup/operation-popup.facade.ts +0 -430
  745. package/src/lib/components/operation-popup/operation-popup.service.ts +0 -120
  746. package/src/lib/components/operation-popup/operation-popup.state.ts +0 -49
  747. package/src/lib/components/stage-details/ng-package.json +0 -6
  748. package/src/lib/components/stage-details/stage-details.component.css +0 -0
  749. package/src/lib/components/stage-details/stage-details.component.html +0 -95
  750. package/src/lib/components/stage-details/stage-details.component.spec.ts +0 -23
  751. package/src/lib/components/stage-details/stage-details.component.ts +0 -45
  752. package/src/lib/components/stage-details/stage-details.module.ts +0 -11
  753. package/src/lib/components/task-form/ng-package.json +0 -6
  754. package/src/lib/components/task-form/task-form.component.css +0 -0
  755. package/src/lib/components/task-form/task-form.component.html +0 -38
  756. package/src/lib/components/task-form/task-form.component.spec.ts +0 -23
  757. package/src/lib/components/task-form/task-form.component.ts +0 -15
  758. package/src/lib/components/task-form/task-form.module.ts +0 -31
  759. package/src/lib/components/task-history/ng-package.json +0 -6
  760. package/src/lib/components/task-history/task-history.component.css +0 -334
  761. package/src/lib/components/task-history/task-history.component.html +0 -145
  762. package/src/lib/components/task-history/task-history.component.spec.ts +0 -23
  763. package/src/lib/components/task-history/task-history.component.ts +0 -236
  764. package/src/lib/components/task-history/task-history.module.ts +0 -11
  765. package/src/lib/components/task-history/task-history.service.ts +0 -32
  766. package/src/lib/components/task-notification/base-table-style.ts +0 -52
  767. package/src/lib/components/task-notification/ng-package.json +0 -6
  768. package/src/lib/components/task-notification/task-notification.component.css +0 -94
  769. package/src/lib/components/task-notification/task-notification.component.html +0 -585
  770. package/src/lib/components/task-notification/task-notification.component.spec.ts +0 -23
  771. package/src/lib/components/task-notification/task-notification.component.ts +0 -770
  772. package/src/lib/components/task-notification/task-notification.module.ts +0 -10
  773. package/src/lib/components/task-notification/task-notification.service.spec.ts +0 -16
  774. package/src/lib/components/task-notification/task-notification.service.ts +0 -397
  775. package/src/lib/components/tasks/ng-package.json +0 -6
  776. package/src/lib/components/tasks/tasks.columns.ts +0 -36
  777. package/src/lib/components/tasks/tasks.component.css +0 -4
  778. package/src/lib/components/tasks/tasks.component.html +0 -215
  779. package/src/lib/components/tasks/tasks.component.spec.ts +0 -23
  780. package/src/lib/components/tasks/tasks.component.ts +0 -111
  781. package/src/lib/components/tasks/tasks.facade.ts +0 -443
  782. package/src/lib/components/tasks/tasks.form.component.html +0 -144
  783. package/src/lib/components/tasks/tasks.form.component.ts +0 -152
  784. package/src/lib/components/tasks/tasks.helper.ts +0 -72
  785. package/src/lib/components/tasks/tasks.models.ts +0 -4
  786. package/src/lib/components/tasks/tasks.module.ts +0 -28
  787. package/src/lib/components/tasks/tasks.service.spec.ts +0 -16
  788. package/src/lib/components/tasks/tasks.service.ts +0 -157
  789. package/src/lib/components/tasks/tasks.state.ts +0 -113
  790. package/src/lib/components/wf/ng-package.json +0 -6
  791. package/src/lib/components/wf/wf.columns.ts +0 -36
  792. package/src/lib/components/wf/wf.component.css +0 -0
  793. package/src/lib/components/wf/wf.component.html +0 -35
  794. package/src/lib/components/wf/wf.component.spec.ts +0 -23
  795. package/src/lib/components/wf/wf.component.ts +0 -72
  796. package/src/lib/components/wf/wf.facade.ts +0 -274
  797. package/src/lib/components/wf/wf.helper.ts +0 -23
  798. package/src/lib/components/wf/wf.module.ts +0 -14
  799. package/src/lib/components/wf/wf.service.spec.ts +0 -16
  800. package/src/lib/components/wf/wf.service.ts +0 -98
  801. package/src/lib/components/wf/wf.state.ts +0 -99
  802. package/src/lib/components/workflow/column.ts +0 -40
  803. package/src/lib/components/workflow/helper.ts +0 -53
  804. package/src/lib/components/workflow/ng-package.json +0 -6
  805. package/src/lib/components/workflow/table-style.ts +0 -53
  806. package/src/lib/components/workflow/workflow.component.css +0 -0
  807. package/src/lib/components/workflow/workflow.component.html +0 -226
  808. package/src/lib/components/workflow/workflow.component.spec.ts +0 -23
  809. package/src/lib/components/workflow/workflow.component.ts +0 -230
  810. package/src/lib/components/workflow/workflow.module.ts +0 -11
  811. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.css +0 -9
  812. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.html +0 -56
  813. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.spec.ts +0 -23
  814. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.ts +0 -136
  815. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.css +0 -0
  816. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.html +0 -45
  817. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.ts +0 -75
  818. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.css +0 -7
  819. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.html +0 -89
  820. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.spec.ts +0 -23
  821. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.ts +0 -76
  822. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.css +0 -11
  823. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.html +0 -74
  824. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.spec.ts +0 -23
  825. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.ts +0 -61
  826. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.css +0 -70
  827. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.html +0 -454
  828. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.spec.ts +0 -23
  829. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.ts +0 -1620
  830. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.connection-drop.spec.ts +0 -100
  831. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.css +0 -63
  832. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.html +0 -49
  833. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.spec.ts +0 -23
  834. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.ts +0 -73
  835. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.ts +0 -7
  836. package/src/lib/components/workflow-designer/docs/01-architecture.md +0 -145
  837. package/src/lib/components/workflow-designer/docs/02-coordinate-system.md +0 -170
  838. package/src/lib/components/workflow-designer/docs/03-data-model.md +0 -163
  839. package/src/lib/components/workflow-designer/docs/04-interactions.md +0 -156
  840. package/src/lib/components/workflow-designer/docs/05-persistence.md +0 -107
  841. package/src/lib/components/workflow-designer/docs/06-known-issues.md +0 -126
  842. package/src/lib/components/workflow-designer/docs/README.md +0 -71
  843. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.css +0 -9
  844. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +0 -94
  845. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.spec.ts +0 -23
  846. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.ts +0 -272
  847. package/src/lib/components/workflow-designer/ng-package.json +0 -6
  848. package/src/lib/components/workflow-designer/services/connection.service.ts +0 -309
  849. package/src/lib/components/workflow-designer/services/node-management.service.ts +0 -351
  850. package/src/lib/components/workflow-designer/services/popup.service.ts +0 -271
  851. package/src/lib/components/workflow-designer/services/swimlane.service.ts +0 -163
  852. package/src/lib/components/workflow-designer/services/transformer.service.ts +0 -301
  853. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.css +0 -0
  854. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.html +0 -208
  855. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.spec.ts +0 -23
  856. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.ts +0 -190
  857. package/src/lib/components/workflow-designer/stage-node/stage-node.component.css +0 -15
  858. package/src/lib/components/workflow-designer/stage-node/stage-node.component.html +0 -93
  859. package/src/lib/components/workflow-designer/stage-node/stage-node.component.spec.ts +0 -23
  860. package/src/lib/components/workflow-designer/stage-node/stage-node.component.ts +0 -253
  861. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.css +0 -0
  862. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.html +0 -151
  863. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.spec.ts +0 -23
  864. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.ts +0 -149
  865. package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +0 -16
  866. package/src/lib/components/workflow-designer/workflow-data.service.ts +0 -266
  867. package/src/lib/components/workflow-designer/workflow-designer.component.css +0 -59
  868. package/src/lib/components/workflow-designer/workflow-designer.component.html +0 -29
  869. package/src/lib/components/workflow-designer/workflow-designer.component.spec.ts +0 -23
  870. package/src/lib/components/workflow-designer/workflow-designer.component.ts +0 -515
  871. package/src/lib/components/workflow-designer/workflow-designer.models.ts +0 -102
  872. package/src/lib/components/workflow-designer/workflow-designer.module.ts +0 -69
  873. package/src/lib/components/workflow-designer/workflow-designer.state.ts +0 -953
  874. package/src/lib/components/workflow-designer/workflow-designer.types.ts +0 -61
  875. package/src/lib/components/workflow-stage/workflow-stage.component.css +0 -24
  876. package/src/lib/components/workflow-stage/workflow-stage.component.html +0 -201
  877. package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +0 -23
  878. package/src/lib/components/workflow-stage/workflow-stage.component.ts +0 -179
  879. package/src/lib/components/workflow-stage/workflow-stage.module.ts +0 -55
  880. package/src/lib/components/workflows/ng-package.json +0 -6
  881. package/src/lib/components/workflows/public-api.ts +0 -3
  882. package/src/lib/components/workflows/workflow-form/workflow-form.component.css +0 -0
  883. package/src/lib/components/workflows/workflow-form/workflow-form.component.html +0 -128
  884. package/src/lib/components/workflows/workflow-form/workflow-form.component.spec.ts +0 -23
  885. package/src/lib/components/workflows/workflow-form/workflow-form.component.ts +0 -87
  886. package/src/lib/components/workflows/workflows.columns.ts +0 -36
  887. package/src/lib/components/workflows/workflows.component.css +0 -4
  888. package/src/lib/components/workflows/workflows.component.html +0 -271
  889. package/src/lib/components/workflows/workflows.component.spec.ts +0 -23
  890. package/src/lib/components/workflows/workflows.component.ts +0 -214
  891. package/src/lib/components/workflows/workflows.facade.ts +0 -386
  892. package/src/lib/components/workflows/workflows.helper.ts +0 -23
  893. package/src/lib/components/workflows/workflows.module.ts +0 -14
  894. package/src/lib/components/workflows/workflows.service.spec.ts +0 -16
  895. package/src/lib/components/workflows/workflows.service.ts +0 -161
  896. package/src/lib/components/workflows/workflows.state.ts +0 -106
  897. package/src/lib/models/ActionHistory.ts +0 -17
  898. package/src/lib/models/ActionType.ts +0 -9
  899. package/src/lib/models/Actor.ts +0 -12
  900. package/src/lib/models/ActorTag.ts +0 -8
  901. package/src/lib/models/Coord.ts +0 -4
  902. package/src/lib/models/DataType.ts +0 -25
  903. package/src/lib/models/EAVEntity.ts +0 -5
  904. package/src/lib/models/ErrorResponse.ts +0 -7
  905. package/src/lib/models/Escalation.ts +0 -15
  906. package/src/lib/models/EscalationCycle.ts +0 -13
  907. package/src/lib/models/EscalationStage.ts +0 -11
  908. package/src/lib/models/EscalationType.ts +0 -5
  909. package/src/lib/models/File.ts +0 -8
  910. package/src/lib/models/FilterTypes.ts +0 -8
  911. package/src/lib/models/FlowableStatus.ts +0 -6
  912. package/src/lib/models/Form.ts +0 -14
  913. package/src/lib/models/FormEntity.ts +0 -14
  914. package/src/lib/models/FormFill.ts +0 -16
  915. package/src/lib/models/FormProperty.ts +0 -16
  916. package/src/lib/models/FormValues.ts +0 -16
  917. package/src/lib/models/MailConfig.ts +0 -13
  918. package/src/lib/models/MessageConfig.ts +0 -5
  919. package/src/lib/models/MessageMedium.ts +0 -4
  920. package/src/lib/models/OperationAction.ts +0 -15
  921. package/src/lib/models/PagedResult.ts +0 -5
  922. package/src/lib/models/PeriodMode.ts +0 -10
  923. package/src/lib/models/PermissionConfig.ts +0 -8
  924. package/src/lib/models/ReportSchedule.ts +0 -23
  925. package/src/lib/models/ReportType.ts +0 -5
  926. package/src/lib/models/Resource.ts +0 -57
  927. package/src/lib/models/ResponseKeyValue.ts +0 -5
  928. package/src/lib/models/SMSConfig.ts +0 -11
  929. package/src/lib/models/SearchDynamicWrapper.ts +0 -6
  930. package/src/lib/models/SearchOperator.ts +0 -4
  931. package/src/lib/models/SearchPropertySign.ts +0 -9
  932. package/src/lib/models/SearchPropertyValue.ts +0 -13
  933. package/src/lib/models/SearchPropertyValueType.ts +0 -9
  934. package/src/lib/models/Size.ts +0 -4
  935. package/src/lib/models/SortDirection.ts +0 -5
  936. package/src/lib/models/StageActorRule.ts +0 -6
  937. package/src/lib/models/SwimLane.ts +0 -14
  938. package/src/lib/models/Tag.ts +0 -7
  939. package/src/lib/models/Task.ts +0 -23
  940. package/src/lib/models/TaskAssignmentType.ts +0 -4
  941. package/src/lib/models/TaskNotification.ts +0 -16
  942. package/src/lib/models/TaskNotificationMessageType.ts +0 -4
  943. package/src/lib/models/TaskNotificationType.ts +0 -6
  944. package/src/lib/models/TaskStatus.ts +0 -7
  945. package/src/lib/models/Workflow.ts +0 -21
  946. package/src/lib/models/WorkflowAction.ts +0 -14
  947. package/src/lib/models/WorkflowOperation.ts +0 -7
  948. package/src/lib/models/WorkflowStage.ts +0 -27
  949. package/src/lib/models/actors.ts +0 -10
  950. package/src/lib/models/auth-mechanism.ts +0 -14
  951. package/src/lib/models/base.ts +0 -12
  952. package/src/lib/models/ng-package.json +0 -6
  953. package/src/lib/models/object-state.ts +0 -6
  954. package/src/lib/models/operation-type.ts +0 -6
  955. package/src/lib/models/paged.ts +0 -9
  956. package/src/lib/models/query-params.ts +0 -9
  957. package/src/lib/models/status.ts +0 -5
  958. package/src/lib/models/task-history.ts +0 -14
  959. package/src/lib/models/user-access-request-status.ts +0 -5
  960. package/src/lib/models/user.ts +0 -24
  961. package/src/lib/pipes/async-label.pipe.spec.ts +0 -8
  962. package/src/lib/pipes/async-label.pipe.ts +0 -30
  963. package/src/lib/pipes/ng-package.json +0 -6
  964. package/src/lib/services/environment.service.spec.ts +0 -16
  965. package/src/lib/services/environment.service.ts +0 -32
  966. package/src/lib/services/http-web-request.service.spec.ts +0 -16
  967. package/src/lib/services/http-web-request.service.ts +0 -118
  968. package/src/lib/services/label.service.spec.ts +0 -16
  969. package/src/lib/services/label.service.ts +0 -182
  970. package/src/lib/services/ng-package.json +0 -6
  971. package/src/lib/services/public-api.ts +0 -5
  972. package/src/lib/services/util.service.spec.ts +0 -16
  973. package/src/lib/services/util.service.ts +0 -58
  974. package/src/lib/shared/base-table-style.ts +0 -56
  975. package/src/lib/shared/components/base-data-view.component.ts +0 -191
  976. package/src/lib/shared/components/base-model-field.ts +0 -31
  977. package/src/lib/shared/models/DataViewConfig.ts +0 -19
  978. package/src/lib/shared/ng-package.json +0 -6
  979. package/src/lib/shared/public-api.ts +0 -14
  980. package/src/lib/shared/shared.module.ts +0 -67
  981. package/src/lib/utils/public-api.ts +0 -2
  982. package/src/lib/utils/store.ts +0 -50
  983. package/src/public-api.ts +0 -54
  984. package/src/styles.css +0 -96
  985. package/tailwind.config copy.js +0 -33
  986. package/tailwind.config.js +0 -20
  987. package/tsconfig.lib.json +0 -15
  988. package/tsconfig.lib.prod.json +0 -11
  989. package/tsconfig.spec.json +0 -15
  990. /package/src/lib/{components/actors/index.ts → base/index.d.ts} +0 -0
  991. /package/src/lib/components/{designer/index.ts → actors/index.d.ts} +0 -0
  992. /package/src/lib/components/actors/{public-api.ts → public-api.d.ts} +0 -0
  993. /package/src/lib/components/{expiration/index.ts → designer/index.d.ts} +0 -0
  994. /package/src/lib/components/designer/{public-api.ts → public-api.d.ts} +0 -0
  995. /package/src/lib/components/{file-render/index.ts → expiration/index.d.ts} +0 -0
  996. /package/src/lib/components/expiration/{public-api.ts → public-api.d.ts} +0 -0
  997. /package/src/lib/components/{file-upload/index.ts → file-render/index.d.ts} +0 -0
  998. /package/src/lib/components/file-render/{public-api.ts → public-api.d.ts} +0 -0
  999. /package/src/lib/components/{flowable-status/index.ts → file-upload/index.d.ts} +0 -0
  1000. /package/src/lib/components/file-upload/{public-api.ts → public-api.d.ts} +0 -0
  1001. /package/src/lib/components/{form-control/index.ts → flowable-status/index.d.ts} +0 -0
  1002. /package/src/lib/components/{form-group/index.ts → form-control/index.d.ts} +0 -0
  1003. /package/src/lib/components/form-control/{public-api.ts → public-api.d.ts} +0 -0
  1004. /package/src/lib/components/{form-response/index.ts → form-group/index.d.ts} +0 -0
  1005. /package/src/lib/components/form-group/{public-api.ts → public-api.d.ts} +0 -0
  1006. /package/src/lib/components/{form-timer/index.ts → form-response/index.d.ts} +0 -0
  1007. /package/src/lib/components/form-response/{public-api.ts → public-api.d.ts} +0 -0
  1008. /package/src/lib/components/{forms/index.ts → form-timer/index.d.ts} +0 -0
  1009. /package/src/lib/components/form-timer/{public-api.ts → public-api.d.ts} +0 -0
  1010. /package/src/lib/components/{journal/index.ts → forms/index.d.ts} +0 -0
  1011. /package/src/lib/components/forms/{public-api.ts → public-api.d.ts} +0 -0
  1012. /package/src/lib/components/{my-queue/index.ts → journal/index.d.ts} +0 -0
  1013. /package/src/lib/components/journal/{public-api.ts → public-api.d.ts} +0 -0
  1014. /package/src/lib/components/{operation-popup/index.ts → my-queue/index.d.ts} +0 -0
  1015. /package/src/lib/components/my-queue/{public-api.ts → public-api.d.ts} +0 -0
  1016. /package/src/lib/components/{stage-details/index.ts → operation-popup/index.d.ts} +0 -0
  1017. /package/src/lib/components/operation-popup/{public-api.ts → public-api.d.ts} +0 -0
  1018. /package/src/lib/components/{task-form/index.ts → stage-details/index.d.ts} +0 -0
  1019. /package/src/lib/components/stage-details/{public-api.ts → public-api.d.ts} +0 -0
  1020. /package/src/lib/components/{task-history/index.ts → task-form/index.d.ts} +0 -0
  1021. /package/src/lib/components/task-form/{public-api.ts → public-api.d.ts} +0 -0
  1022. /package/src/lib/components/{task-notification/index.ts → task-history/index.d.ts} +0 -0
  1023. /package/src/lib/components/task-history/{public-api.ts → public-api.d.ts} +0 -0
  1024. /package/src/lib/components/{tasks/index.ts → task-notification/index.d.ts} +0 -0
  1025. /package/src/lib/components/task-notification/{public-api.ts → public-api.d.ts} +0 -0
  1026. /package/src/lib/components/{wf/index.ts → tasks/index.d.ts} +0 -0
  1027. /package/src/lib/components/tasks/{public-api.ts → public-api.d.ts} +0 -0
  1028. /package/src/lib/components/{workflow-designer/index.ts → wf/index.d.ts} +0 -0
  1029. /package/src/lib/components/wf/{public-api.ts → public-api.d.ts} +0 -0
  1030. /package/src/lib/components/{workflows/index.ts → workflow/index.d.ts} +0 -0
  1031. /package/src/lib/components/workflow/{public-api.ts → public-api.d.ts} +0 -0
  1032. /package/src/lib/components/{workflow/index.ts → workflow-designer/index.d.ts} +0 -0
  1033. /package/src/lib/components/workflow-designer/{public-api.ts → public-api.d.ts} +0 -0
  1034. /package/src/lib/{models/index.ts → components/workflows/index.d.ts} +0 -0
  1035. /package/src/lib/{pipes/index.ts → models/index.d.ts} +0 -0
  1036. /package/src/lib/models/{public-api.ts → public-api.d.ts} +0 -0
  1037. /package/src/lib/{services/index.ts → pipes/index.d.ts} +0 -0
  1038. /package/src/lib/pipes/{public-api.ts → public-api.d.ts} +0 -0
  1039. /package/src/lib/{utils/index.ts → services/index.d.ts} +0 -0
  1040. /package/src/lib/shared/{index.ts → index.d.ts} +0 -0
  1041. /package/{src/styles → styles}/styles.css +0 -0
@@ -1,1620 +0,0 @@
1
- import {
2
- Component,
3
- ElementRef,
4
- EventEmitter,
5
- HostListener,
6
- Input,
7
- OnInit,
8
- Output,
9
- signal,
10
- ViewChild,
11
- WritableSignal,
12
- } from '@angular/core';
13
- import { EscalationType, Form, Workflow, WorkflowAction, WorkflowStage } from 'verben-workflow-ui/src/lib/models';
14
- import { WorkflowDataService } from '../workflow-data.service';
15
- import { WorkflowDesignerState } from '../workflow-designer.state';
16
- import {
17
- Connection,
18
- ConnectionPoint,
19
- Node,
20
- SwimlaneItem,
21
- ToolType,
22
- Node as WFNode,
23
- } from '../workflow-designer.types';
24
-
25
- @Component({
26
- selector: 'lib-designer-canvas',
27
- templateUrl: './designer-canvas.component.html',
28
- styleUrl: './designer-canvas.component.css',
29
- })
30
- export class DesignerCanvasComponent implements OnInit {
31
- @Input() selectedTool: ToolType = null;
32
- @Output() clickedPosition = new EventEmitter<{ x: number; y: number }>();
33
- @Output() subflowSelected = new EventEmitter();
34
- pendingStagePosition: { swimlaneIndex: number; x: number; y: number } | null =
35
- null;
36
- @Output() stagePropertiesUpdated = new EventEmitter<{
37
- nodeId: string;
38
- stageData: Partial<WorkflowStage>;
39
- }>();
40
- @Output() actionPropertiesUpdated = new EventEmitter<{
41
- connectionId: string;
42
- actionData: Partial<WorkflowAction>;
43
- }>();
44
-
45
- // Reference to the SVG element
46
- @ViewChild('canvas', { static: true }) canvasRef!: ElementRef<SVGElement>;
47
-
48
- @HostListener('window:mouseup', ['$event'])
49
- onWindowMouseUp(event: MouseEvent): void {
50
- // If we have a popup open but the mouse is released outside, clean up
51
- if (
52
- !this.showSubflowPopup &&
53
- !this.showStartNodeFormPopup &&
54
- !this.popupVisible && // Only end drag if no popup is visible
55
- this.state.isConnectionDragging()
56
- ) {
57
- console.log('External mouseup detected - cleaning up connection drag');
58
- this.state.endConnectionDrag();
59
- }
60
- }
61
-
62
- // Canvas dimensions
63
- canvasWidth = 3000;
64
- canvasHeight = 2000;
65
-
66
- // Grid size
67
- gridSize = 20;
68
-
69
- swimlaneHeight = 263;
70
- visibleConnectionPointsNodeId: string | null = null;
71
- popupVisible = false;
72
- popupX = 0;
73
- popupY = 0;
74
- allowedNodeTypes: string[] = [];
75
-
76
- showStartNodeFormPopup: boolean = false;
77
- startNodeFormsList: Form[] = [];
78
- isLoadingStartNodeForms: boolean = false;
79
- startNodeFormPopupX: number = 0;
80
- startNodeFormPopupY: number = 0;
81
- activeNodeForFormSelection: Node | null = null;
82
- nodeForms: WritableSignal<
83
- Record<string, { formId: string; formName: string }>
84
- > = signal({});
85
-
86
- showSubflowPopup: boolean = false;
87
- workflowsList: Workflow[] = [];
88
- isLoadingWorkflows: boolean = false;
89
- subflowPopupX: number = 0;
90
- subflowPopupY: number = 0;
91
- pendingSubflowPosition: {
92
- swimlaneIndex: number;
93
- x: number;
94
- y: number;
95
- } | null = null;
96
-
97
- pendingDecisionConnection: {
98
- decisionNodeId: string;
99
- swimlaneIndex: number;
100
- x: number;
101
- y: number;
102
- } | null = null;
103
-
104
- pendingConnectionSourcePoint: ConnectionPoint | null = null;
105
- pendingConnectionSourceSwimlaneIndex: number | null = null;
106
-
107
- // ─── Node-drag state ───────────────────────────────────────────────────────
108
- isDraggingNode = false;
109
- draggingNode: Node | null = null;
110
- private draggingNodeSwimlaneIndex: number = -1;
111
- /** Mouse offset relative to node top-left at drag start (absolute canvas coords). */
112
- private dragOffsetX = 0;
113
- private dragOffsetY = 0;
114
-
115
- showDecisionConditionDialog: boolean = false;
116
- showConditionsDialog: boolean = false;
117
- activeDecisionNodeId: string = '';
118
- activeConnectionId: string = '';
119
- decisionConditionPopupX: number = 0;
120
- decisionConditionPopupY: number = 0;
121
-
122
- isCreatingStageFromDecision: boolean = false;
123
- pendingDecisionCondition: string = '';
124
- activeStageId: string | null = null;
125
- activeActionId: string | null = null;
126
-
127
- showStageDialogLocal: boolean = false;
128
- showEscalationDialogLocal: boolean = false;
129
- activeEscalationType: WritableSignal<EscalationType | null> = signal(null);
130
- activeStageCode: WritableSignal<string | null> = signal(null);
131
- activeStageData: Partial<WorkflowStage> = {};
132
- activeActionData: Connection | null = null;
133
-
134
- showActionDialogLocal: boolean = false;
135
-
136
- potentialTargetPointId: string | null = null;
137
-
138
- constructor(
139
- public state: WorkflowDesignerState,
140
- private dataService: WorkflowDataService
141
- ) { }
142
-
143
- ngOnInit(): void {
144
- this.updateCanvasSize();
145
- }
146
-
147
- // Handle mouse click on canvas
148
- onCanvasClick(event: MouseEvent): void {
149
- // Only process canvas clicks if a tool is selected
150
- if (!this.selectedTool) {
151
- return;
152
- }
153
-
154
- // Get the position where the click occurred
155
- const position = this.getMousePosition(event);
156
- console.log(
157
- 'Canvas clicked at:',
158
- position,
159
- 'with tool:',
160
- this.selectedTool
161
- );
162
-
163
- // Calculate the swimlane index based on position
164
- // const swimlaneIndex = Math.floor(position.y / this.swimlaneHeight);
165
-
166
- // Only emit the position if we have a tool selected and it's a valid click area
167
- if (this.selectedTool) {
168
- this.clickedPosition.emit({
169
- x: position.x,
170
- y: position.y,
171
- });
172
- }
173
- }
174
-
175
- onShowShieldDialog(stageId: string): void {
176
- // Find the node
177
- const nodeInfo = this.state.findNodeById(stageId);
178
- if (nodeInfo) {
179
- this.activeStageId = stageId;
180
- // Seed the entry-point toggle from the node's actual start state, which is
181
- // the source of truth for the start circle and API serialization. The
182
- // auto-assigned entry node has isStartNode=true without stageData.IsEntryPoint.
183
- this.activeStageData = {
184
- ...nodeInfo.node.stageData,
185
- IsEntryPoint: nodeInfo.node.isStartNode,
186
- id: stageId,
187
- };
188
- console.log(this.activeStageData, "ACTIVE STAGE DATA");
189
- this.showStageDialogLocal = true;
190
- }
191
- }
192
-
193
- onShowActionDialog(connectionInfo: Connection): void {
194
- console.log("CONECTION", connectionInfo);
195
- // Find the node
196
- // const connectionInfo = this.state.findActionById(actionId);
197
- if (connectionInfo) {
198
- this.activeActionId = connectionInfo.id;
199
- this.activeActionData = connectionInfo;
200
- console.log(this.activeActionData);
201
- this.showActionDialogLocal = true;
202
- }
203
- }
204
-
205
- onShowEscalationDialog(event: {
206
- stageId: string;
207
- type: EscalationType;
208
- }): void {
209
- // Find the node
210
- const nodeInfo = this.state.findNodeById(event.stageId);
211
- if (nodeInfo) {
212
- this.activeStageId = event.stageId;
213
- this.activeStageData = nodeInfo.node.stageData || {
214
- id: this.activeStageId,
215
- };
216
- this.activeEscalationType.set(event.type);
217
- this.activeStageCode.set(this.activeStageData?.Code || '');
218
- console.log('Active Stage Data:', this.activeStageData);
219
- console.log('Escalation Type:', this.activeEscalationType());
220
- this.showEscalationDialogLocal = true;
221
- }
222
- }
223
-
224
- // Add this method to handle dialog closure
225
- onStageDialogClosed(): void {
226
- this.showStageDialogLocal = false;
227
- this.activeStageId = null;
228
- this.activeStageData = {};
229
- }
230
-
231
- onActionDialogClosed(): void {
232
- this.showActionDialogLocal = false;
233
- this.activeActionId = null;
234
- this.activeActionData = null;
235
- }
236
-
237
- onActionDialogDeleted(connectionId: string): void {
238
- // Remove the connection from state
239
- this.state.connections = this.state.connections.filter(
240
- (c) => c.id !== connectionId
241
- );
242
- // Close the dialog
243
- this.onActionDialogClosed();
244
- }
245
-
246
- // Add this method to handle dialog closure
247
- onEscalationDialogClosed(): void {
248
- this.showEscalationDialogLocal = false;
249
- this.activeStageId = null;
250
- this.activeEscalationType.set(null);
251
- this.activeStageCode.set(null);
252
- this.activeStageData = {};
253
- }
254
-
255
- // Add this method to handle saving stage data
256
- onStageDialogSaved(stageData: Partial<WorkflowStage>): void {
257
- if (this.activeStageId) {
258
- // Editing an existing stage
259
- const nodeInfo = this.state.findNodeById(this.activeStageId);
260
- if (nodeInfo) {
261
- // Update the stage data
262
- nodeInfo.node.stageData = {
263
- ...nodeInfo.node.stageData,
264
- ...stageData,
265
- };
266
- console.log('Updated stage data:', nodeInfo.node.stageData);
267
-
268
- // Sync the entry-point flag onto node.isStartNode, which drives both the
269
- // start circle and the IsEntryPoint value serialized to the API.
270
- if (stageData.IsEntryPoint) {
271
- // Enforce a single entry point: this node becomes the sole start node.
272
- this.state.swimlanes.forEach((swimlane) => {
273
- swimlane.nodes?.forEach((node) => {
274
- node.isStartNode = node.id === this.activeStageId;
275
- });
276
- });
277
- this.state.startNodeId = this.activeStageId;
278
- } else {
279
- nodeInfo.node.isStartNode = false;
280
- if (this.state.startNodeId === this.activeStageId) {
281
- this.state.startNodeId = null;
282
- }
283
- }
284
-
285
- // Emit event for parent component to know about the update
286
- this.stagePropertiesUpdated.emit({
287
- nodeId: this.activeStageId,
288
- stageData: nodeInfo.node.stageData,
289
- });
290
- }
291
- }
292
-
293
- // Close the dialog
294
- this.onStageDialogClosed();
295
- }
296
-
297
- onActionDialogSaved(actionData: Connection): void {
298
- if (this.activeActionId) {
299
- // Editing an existing stage
300
- // let connectionInfo = this.state.findActionById(this.activeActionId);
301
- this.state.connections = this.state.connections.map((connection, index) => {
302
- if (connection.id === this.activeActionId) {
303
- connection.label = actionData.label;
304
- connection.action = actionData.action;
305
- connection.targetStatus = actionData.targetStatus;
306
- console.log('Updated action data:', connection);
307
- }
308
- return connection;
309
- })
310
- }
311
-
312
- // Close the dialog
313
- this.onActionDialogClosed();
314
- }
315
-
316
- updateCanvasSize(): void {
317
- const requiredHeight =
318
- (this.state.swimlanes.length + 1) * this.swimlaneHeight;
319
- this.canvasHeight = Math.max(2000, requiredHeight); // Ensure we have at least our default height
320
-
321
- // Update all the swimlane clip paths when size changes
322
- setTimeout(() => {
323
- this.state.swimlanes.forEach((swimlane, index) => {
324
- const clipPathId = `swimlane-clip-${index}`;
325
- const clipPathElement = document.getElementById(clipPathId);
326
- if (clipPathElement) {
327
- const rectElement = clipPathElement.querySelector('rect');
328
- if (rectElement) {
329
- rectElement.setAttribute('width', this.canvasWidth.toString());
330
- }
331
- }
332
- });
333
- }, 0);
334
- }
335
-
336
- // Helper method to get the mouse position relative to the SVG canvas
337
- private getMousePosition(event: MouseEvent): { x: number; y: number } {
338
- // Use clientX/Y and getBoundingClientRect() for cross-browser compatibility
339
- const rect = this.canvasRef.nativeElement.getBoundingClientRect();
340
- return {
341
- x: event.clientX - rect.left,
342
- y: event.clientY - rect.top,
343
- };
344
- }
345
-
346
- // Helper method to get the mouse position for viewport-based popups
347
- // This accounts for canvas scroll position
348
- private getViewportPosition(canvasX: number, canvasY: number): { x: number; y: number } {
349
- const parentElement = this.canvasRef.nativeElement.parentElement;
350
- const scrollLeft = parentElement?.scrollLeft || 0;
351
- const scrollTop = parentElement?.scrollTop || 0;
352
-
353
- return {
354
- x: canvasX - scrollLeft,
355
- y: canvasY - scrollTop,
356
- };
357
- }
358
-
359
- showConnectionPoints(nodeId: string, swimlaneIndex: number): void {
360
- this.visibleConnectionPointsNodeId = nodeId;
361
- }
362
-
363
- isMouseOverNode(
364
- event: MouseEvent,
365
- node: WFNode,
366
- swimlaneIndex: number
367
- ): boolean {
368
- const position = this.getMousePosition(event);
369
- const nodeBounds = this.getNodeBoundsWithPadding(node, swimlaneIndex);
370
-
371
- return (
372
- position.x >= nodeBounds.x &&
373
- position.x <= nodeBounds.x + nodeBounds.width &&
374
- position.y >= nodeBounds.y &&
375
- position.y <= nodeBounds.y + nodeBounds.height
376
- );
377
- }
378
-
379
- // helper method to calculate node bounds with padding
380
- getNodeBoundsWithPadding(
381
- node: WFNode,
382
- swimlaneIndex: number
383
- ): { x: number; y: number; width: number; height: number } {
384
- const padding = 10; // Add 10px padding around nodes for easier hover detection
385
-
386
- // Calculate the absolute Y position including swimlane offset
387
- const absoluteY = node.y + swimlaneIndex * 263;
388
-
389
- return {
390
- x: node.x - padding,
391
- y: absoluteY - padding,
392
- width: node.width + padding * 2,
393
- height: node.height + padding * 2,
394
- };
395
- }
396
-
397
- hideConnectionPoints(nodeId: string): void {
398
- if (
399
- this.visibleConnectionPointsNodeId === nodeId &&
400
- !this.state.isConnectionDragging()
401
- ) {
402
- this.visibleConnectionPointsNodeId = null;
403
- }
404
- }
405
-
406
- isConnectionPointVisible(nodeId: string): boolean {
407
- return this.visibleConnectionPointsNodeId === nodeId;
408
- }
409
-
410
- startConnectionDrag(
411
- event: MouseEvent,
412
- point: ConnectionPoint,
413
- swimlaneIndex: number
414
- ): void {
415
- event.preventDefault();
416
- event.stopPropagation();
417
-
418
- // Check if this is an exit point node
419
- const nodeInfo = this.state.findNodeById(point.nodeId);
420
- if (
421
- nodeInfo &&
422
- nodeInfo.node.type === 'stage' &&
423
- nodeInfo.node.stageData?.IsExitPoint
424
- ) {
425
- // Don't allow connections from exit points
426
- console.log('Cannot create connections from exit points');
427
- return;
428
- }
429
-
430
- const position = this.getMousePosition(event);
431
- this.state.startConnectionDrag(
432
- point,
433
- swimlaneIndex,
434
- position.x,
435
- position.y
436
- );
437
-
438
- // Add mouse move and mouse up event listeners to the document
439
- document.addEventListener('mousemove', this.onMouseMove);
440
- document.addEventListener('mouseup', this.onMouseUp);
441
- }
442
-
443
- highlightPotentialTargets(event: MouseEvent): void {
444
- if (!this.state.isConnectionDragging()) return;
445
-
446
- const position = this.getMousePosition(event);
447
- const targetPointInfo = this.findConnectionPointAtPosition(
448
- position.x,
449
- position.y
450
- );
451
-
452
- if (
453
- targetPointInfo &&
454
- targetPointInfo.point.id !== this.potentialTargetPointId
455
- ) {
456
- // We have a new target point
457
- this.potentialTargetPointId = targetPointInfo.point.id;
458
- } else if (!targetPointInfo && this.potentialTargetPointId) {
459
- // We're no longer over a target point
460
- this.potentialTargetPointId = null;
461
- }
462
- }
463
-
464
- // ─────────────────────────────────────────────────────────────────────────
465
- // Node drag logic
466
- // ─────────────────────────────────────────────────────────────────────────
467
-
468
- /**
469
- * Called from the template when the user presses the mouse button on a node.
470
- * Starts the drag interaction and registers document-level listeners so the
471
- * drag continues even when the cursor leaves the SVG canvas.
472
- */
473
- onNodeMouseDown(event: MouseEvent, node: Node, swimlaneIndex: number): void {
474
- // Do not interfere with connection dragging or open popups
475
- if (
476
- this.state.isConnectionDragging() ||
477
- this.popupVisible ||
478
- this.showStartNodeFormPopup ||
479
- this.showSubflowPopup
480
- ) return;
481
-
482
- event.stopPropagation(); // Prevent onCanvasClick from firing
483
- event.preventDefault();
484
-
485
- const position = this.getMousePosition(event);
486
- // Template formula: absoluteSVGY = node.y + swimlane.order * 263
487
- const absoluteNodeY = node.y + swimlaneIndex * this.swimlaneHeight;
488
-
489
- this.isDraggingNode = true;
490
- this.draggingNode = node;
491
- this.draggingNodeSwimlaneIndex = swimlaneIndex;
492
- // Store the offset from the node's top-left so the node doesn't jump
493
- this.dragOffsetX = position.x - node.x;
494
- this.dragOffsetY = position.y - absoluteNodeY;
495
-
496
- // Seed pending values with the node's CURRENT position so that a plain
497
- // click (no mousemove) leaves node.y unchanged in onNodeDragEnd.
498
- this._pendingAbsoluteY = absoluteNodeY;
499
- this._pendingTargetSwimlaneIndex = swimlaneIndex;
500
-
501
- document.addEventListener('mousemove', this.onNodeDragMove);
502
- document.addEventListener('mouseup', this.onNodeDragEnd);
503
- }
504
-
505
- /**
506
- * Arrow function (preserves `this`) — runs on every mousemove while dragging
507
- * a node. Updates node.x / node.y in-place so Angular's change detection
508
- * picks it up and redraws the node and all connected paths automatically.
509
- */
510
- onNodeDragMove = (event: MouseEvent): void => {
511
- if (!this.isDraggingNode || !this.draggingNode) return;
512
-
513
- const position = this.getMousePosition(event);
514
-
515
- // Raw desired absolute position of the node top-left
516
- const rawAbsoluteX = position.x - this.dragOffsetX;
517
- const rawAbsoluteY = position.y - this.dragOffsetY;
518
-
519
- // Determine which swimlane the node is being dragged into (by cursor Y)
520
- let targetSwimlaneIndex = Math.floor(position.y / this.swimlaneHeight);
521
- targetSwimlaneIndex = Math.max(
522
- 0,
523
- Math.min(targetSwimlaneIndex, this.state.swimlanes.length - 1)
524
- );
525
-
526
- const swimlaneTopY = targetSwimlaneIndex * this.swimlaneHeight;
527
- const swimlaneBottomY = swimlaneTopY + this.swimlaneHeight;
528
- const padding = 5;
529
-
530
- // X: keep node fully on canvas (no left/right boundary needed for swimlanes)
531
- const newAbsoluteX = Math.max(padding, rawAbsoluteX);
532
-
533
- // Y: clamp so the node stays inside the targeted swimlane
534
- let newAbsoluteY = rawAbsoluteY;
535
- const node = this.draggingNode;
536
- if (newAbsoluteY < swimlaneTopY + padding) {
537
- newAbsoluteY = swimlaneTopY + padding;
538
- } else if (newAbsoluteY + node.height > swimlaneBottomY - padding) {
539
- newAbsoluteY = swimlaneBottomY - node.height - padding;
540
- }
541
-
542
- // Convert absolute Y to swimlane-relative Y for storage
543
- const newRelativeY = newAbsoluteY - targetSwimlaneIndex * this.swimlaneHeight;
544
-
545
- // Live preview: update position directly.
546
- // Template formula: absoluteSVGY = node.y + swimlane.order * 263
547
- // => node.y = absoluteY - swimlane.order * 263 (swimlane-relative)
548
- // The node is STILL in the source swimlane's array during preview,
549
- // so swimlane.order = draggingNodeSwimlaneIndex.
550
- node.x = newAbsoluteX;
551
- node.y = newAbsoluteY - this.draggingNodeSwimlaneIndex * this.swimlaneHeight;
552
-
553
- // Store computed values for onNodeDragEnd
554
- this._pendingTargetSwimlaneIndex = targetSwimlaneIndex;
555
- this._pendingAbsoluteY = newAbsoluteY;
556
- };
557
-
558
- /** Scratch fields used to pass computed values from move → end handlers. */
559
- private _pendingTargetSwimlaneIndex = -1;
560
- private _pendingAbsoluteY = 0;
561
-
562
- /**
563
- * Arrow function (preserves `this`) — fires on mouseup after a node drag.
564
- * Finalises the node position and performs swimlane migration if necessary.
565
- */
566
- onNodeDragEnd = (_event: MouseEvent): void => {
567
- document.removeEventListener('mousemove', this.onNodeDragMove);
568
- document.removeEventListener('mouseup', this.onNodeDragEnd);
569
-
570
- if (!this.isDraggingNode || !this.draggingNode) {
571
- this.isDraggingNode = false;
572
- this.draggingNode = null;
573
- return;
574
- }
575
-
576
- const node = this.draggingNode;
577
- const fromIndex = this.draggingNodeSwimlaneIndex;
578
- const toIndex = this._pendingTargetSwimlaneIndex !== -1
579
- ? this._pendingTargetSwimlaneIndex
580
- : fromIndex;
581
- const absoluteY = this._pendingAbsoluteY;
582
-
583
- if (fromIndex !== toIndex) {
584
- // Cross-swimlane drop: state helper moves node between arrays,
585
- // updates connections, and syncs tags. It also sets node.y correctly.
586
- this.state.moveNodeToSwimlane(node.id, fromIndex, toIndex, node.x, absoluteY);
587
- } else {
588
- // Same swimlane: node.y = absoluteY - swimlane.order * 263 (swimlane-relative)
589
- node.y = absoluteY - fromIndex * this.swimlaneHeight;
590
- }
591
-
592
- // Reset drag state
593
- this.isDraggingNode = false;
594
- this.draggingNode = null;
595
- this.draggingNodeSwimlaneIndex = -1;
596
- this.dragOffsetX = 0;
597
- this.dragOffsetY = 0;
598
- this._pendingTargetSwimlaneIndex = -1;
599
- this._pendingAbsoluteY = 0;
600
- };
601
-
602
- /**
603
- * Returns a CSS cursor value for the node rendering.
604
- * Shows 'grabbing' while the node is being dragged, 'grab' otherwise.
605
- */
606
- getCursorForNode(nodeId: string): string {
607
- return this.isDraggingNode && this.draggingNode?.id === nodeId ? 'grabbing' : 'grab';
608
- }
609
-
610
- // ─────────────────────────────────────────────────────────────────────────
611
- // Connection drag logic (existing)
612
- // ─────────────────────────────────────────────────────────────────────────
613
-
614
- // Use arrow functions to preserve 'this' context
615
- onMouseMove = (event: MouseEvent) => {
616
- const position = this.getMousePosition(event);
617
- this.updateConnectionDrag(position.x, position.y);
618
- this.highlightPotentialTargets(event);
619
- };
620
-
621
- updateConnectionDrag(currentX: number, currentY: number) {
622
- if (this.state.draggingConnectionData.sourcePoint) {
623
- this.state.draggingConnectionData.currentX = currentX;
624
- this.state.draggingConnectionData.currentY = currentY;
625
-
626
- // Calculate which swimlane the cursor is over
627
- const swimlaneIndex = Math.floor(currentY / this.swimlaneHeight);
628
- if (swimlaneIndex >= 0 && swimlaneIndex < this.state.swimlanes.length) {
629
- // Ensure the target swimlane is fully visible
630
- this.ensureSwimlaneInView(swimlaneIndex);
631
- }
632
- }
633
- }
634
-
635
- onMouseUp = (event: MouseEvent) => {
636
- document.removeEventListener('mousemove', this.onMouseMove);
637
- document.removeEventListener('mouseup', this.onMouseUp);
638
-
639
- const position = this.getMousePosition(event);
640
- console.log('Mouse up at position:', position);
641
- console.log('Is connection dragging:', this.state.isConnectionDragging());
642
-
643
- // Only proceed if we are dragging a connection
644
- if (!this.state.isConnectionDragging()) {
645
- return;
646
- }
647
-
648
- // Check if we're dropping onto a connection point
649
- const targetPointInfo = this.findConnectionPointAtPosition(
650
- position.x,
651
- position.y
652
- );
653
-
654
- if (targetPointInfo) {
655
- // We found a target connection point
656
- console.log('Found target connection point:', targetPointInfo);
657
-
658
- // Get the source point and swimlane index
659
- const sourcePoint = this.state.draggingConnectionData.sourcePoint;
660
- const sourceSwimlaneIndex =
661
- this.state.draggingConnectionData.sourceSwimlaneIndex;
662
-
663
- if (sourcePoint && sourceSwimlaneIndex !== undefined) {
664
- // Prevent connecting a node to itself
665
- if (sourcePoint.nodeId !== targetPointInfo.nodeId) {
666
- // Get source and target node types to check if connection is allowed
667
- const sourceNodeInfo = this.state.findNodeById(sourcePoint.nodeId);
668
- const targetNodeInfo = this.state.findNodeById(
669
- targetPointInfo.nodeId
670
- );
671
-
672
- if (
673
- sourceNodeInfo &&
674
- targetNodeInfo &&
675
- this.state.canConnect(
676
- sourceNodeInfo.node.type,
677
- targetNodeInfo.node.type
678
- )
679
- ) {
680
- // Create the connection
681
- const connection = {
682
- id: `conn-${Date.now()}-${Math.floor(Math.random() * 1000)}`,
683
- sourceNodeId: sourcePoint.nodeId,
684
- targetNodeId: targetPointInfo.nodeId,
685
- sourcePointId: sourcePoint.id,
686
- targetPointId: targetPointInfo.point.id,
687
- sourceSwimlaneIndex: sourceSwimlaneIndex,
688
- targetSwimlaneIndex: targetPointInfo.swimlaneIndex,
689
- label: '',
690
- action: null,
691
- };
692
-
693
- // Add to connections array
694
- this.state.connections.push(connection);
695
- console.log('Created direct connection between nodes:', connection);
696
-
697
- // Notify about connection creation
698
- this.onConnectionCreated(connection);
699
- } else {
700
- console.log(
701
- 'Cannot connect these node types:',
702
- sourceNodeInfo?.node.type,
703
- '->',
704
- targetNodeInfo?.node.type
705
- );
706
- }
707
- } else {
708
- console.log('Cannot connect a node to itself');
709
- }
710
- }
711
-
712
- // End the connection drag
713
- this.state.endConnectionDrag();
714
- return;
715
- }
716
-
717
- // Check if the position is within any swimlane
718
- const isInsideSwimlane = this.isPositionInsideSwimlane(position.y);
719
- console.log('Is inside swimlane:', isInsideSwimlane);
720
-
721
- // Only show popup if within a swimlane
722
- if (isInsideSwimlane && this.state.isConnectionDragging()) {
723
- console.log('Showing connection popup');
724
- this.showConnectionPopup(position.x, position.y);
725
- } else {
726
- // End the connection drag if outside a swimlane
727
- console.log('Ending connection drag without showing popup');
728
- this.state.endConnectionDrag();
729
- }
730
- };
731
-
732
- findConnectionPointAtPosition(
733
- x: number,
734
- y: number,
735
- tolerance: number = 10
736
- ): {
737
- point: ConnectionPoint;
738
- nodeId: string;
739
- swimlaneIndex: number;
740
- } | null {
741
- // Iterate through all swimlanes and nodes to find connection points
742
- for (
743
- let swimlaneIndex = 0;
744
- swimlaneIndex < this.state.swimlanes.length;
745
- swimlaneIndex++
746
- ) {
747
- const swimlane = this.state.swimlanes[swimlaneIndex];
748
-
749
- if (!swimlane.nodes) continue;
750
-
751
- for (const node of swimlane.nodes) {
752
- if (!node.connectionPoints) continue;
753
-
754
- // Calculate the absolute position of the node (including swimlane offset)
755
- const absoluteNodeX = node.x;
756
- const absoluteNodeY = node.y + swimlaneIndex * this.swimlaneHeight;
757
-
758
- for (const point of node.connectionPoints) {
759
- // Calculate absolute position of the connection point
760
- const pointX = absoluteNodeX + point.x;
761
- const pointY = absoluteNodeY + point.y;
762
-
763
- // Check if the given position is within tolerance of this point
764
- if (
765
- Math.abs(x - pointX) <= tolerance &&
766
- Math.abs(y - pointY) <= tolerance
767
- ) {
768
- return {
769
- point: point,
770
- nodeId: node.id,
771
- swimlaneIndex: swimlaneIndex,
772
- };
773
- }
774
- }
775
- }
776
- }
777
-
778
- return null;
779
- }
780
-
781
- isPositionInsideSwimlane(y: number): boolean {
782
- // Check if y position is within any swimlane
783
- const swimlaneCount = this.state.swimlanes.length;
784
- if (swimlaneCount === 0) return false;
785
-
786
- // Each swimlane has a height of 263px
787
- const totalSwimlaneHeight = swimlaneCount * this.swimlaneHeight;
788
-
789
- // Check if y is within the total height of all swimlanes
790
- return y >= 0 && y < totalSwimlaneHeight;
791
- }
792
-
793
- showConnectionPopup(x: number, y: number): void {
794
- console.log('Showing connection popup at:', x, y);
795
-
796
- // Convert canvas coordinates to viewport coordinates for popup positioning
797
- const viewportPos = this.getViewportPosition(x, y);
798
- this.popupX = viewportPos.x;
799
- this.popupY = viewportPos.y;
800
-
801
- // Get allowed node types based on the source node type
802
- this.allowedNodeTypes = this.state.getAllowedTargetNodeTypes();
803
- console.log('Allowed node types:', this.allowedNodeTypes);
804
-
805
- // Only show the popup if we have allowed node types
806
- if (this.allowedNodeTypes.length > 0) {
807
- this.popupVisible = true;
808
- console.log('Popup visibility set to true');
809
-
810
- // Force the popup to be visible in the next tick
811
- setTimeout(() => {
812
- console.log('Is popup visible in next tick:', this.popupVisible);
813
- }, 0);
814
- } else {
815
- // No allowed node types, just end the drag
816
- console.log('No allowed node types, ending drag');
817
- this.state.endConnectionDrag();
818
- }
819
- }
820
-
821
- hideConnectionPopup(): void {
822
- console.log('Call to hide');
823
- this.popupVisible = false;
824
- this.state.endConnectionDrag();
825
- }
826
-
827
- // Add this handler to close the popup when clicking outside
828
- // @HostListener('document:click', ['$event'])
829
- // onDocumentClick(event: MouseEvent): void {
830
- // if (this.popupVisible) {
831
- // const popupElement = document.querySelector('verben-pop-Up');
832
- // if (popupElement && !popupElement.contains(event.target as Node)) {
833
- // this.hideConnectionPopup();
834
- // }
835
- // }
836
- // }
837
-
838
- createNodeConnection(nodeType: string): void {
839
- const pathData = this.state.getConnectionPathData();
840
- if (!pathData) {
841
- this.hideConnectionPopup();
842
- return;
843
- }
844
-
845
- // Check if this node type is allowed to be created
846
- const allowedTypes = this.state.getAllowedTargetNodeTypes();
847
- if (!allowedTypes.includes(nodeType)) {
848
- console.error(
849
- `Cannot create connection to ${nodeType} from current node type`
850
- );
851
- this.hideConnectionPopup();
852
- return;
853
- }
854
-
855
- const { endX, endY } = pathData;
856
-
857
- // Determine the target swimlane from the drop position (NOT the source
858
- // swimlane). `addNode` expects an absolute canvas Y plus the target
859
- // swimlane index, and performs the swimlane-relative conversion itself.
860
- let targetSwimlaneIndex = Math.floor(endY / this.swimlaneHeight);
861
- targetSwimlaneIndex = Math.max(
862
- 0,
863
- Math.min(targetSwimlaneIndex, this.state.swimlanes.length - 1)
864
- );
865
-
866
- // Get source node info
867
- const sourcePoint = this.state.draggingConnectionData.sourcePoint;
868
- if (!sourcePoint) {
869
- this.hideConnectionPopup();
870
- return;
871
- }
872
-
873
- const sourceNodeInfo = this.state.findNodeById(sourcePoint.nodeId);
874
- if (!sourceNodeInfo) {
875
- this.hideConnectionPopup();
876
- return;
877
- }
878
-
879
- // If connecting from a decision to a stage, show condition popup first
880
- if (sourceNodeInfo.node.type === 'decision' && nodeType === 'stage') {
881
- // Store information for later stage creation
882
- this.pendingDecisionConnection = {
883
- decisionNodeId: sourceNodeInfo.node.id,
884
- swimlaneIndex: targetSwimlaneIndex,
885
- x: endX,
886
- y: endY,
887
- };
888
-
889
- // Center the popup over the connection endpoint
890
- this.decisionConditionPopupX = endX;
891
- this.decisionConditionPopupY = endY - 150; // Position above the endpoint
892
-
893
- // Set decision node ID
894
- this.activeDecisionNodeId = sourceNodeInfo.node.id;
895
- this.showDecisionConditionDialog = true;
896
-
897
- // End the connection drag
898
- this.hideConnectionPopup();
899
- return;
900
- }
901
-
902
- // Handle preconditions based on node type
903
- if (nodeType === 'stage') {
904
- // Create the stage in the target swimlane. `addNode` converts the
905
- // absolute endY to a swimlane-relative position internally.
906
- const newNode = this.state.addNode(
907
- targetSwimlaneIndex,
908
- 'stage',
909
- endX,
910
- endY,
911
- { Name: 'New Stage' } // Add default properties
912
- );
913
-
914
- if (
915
- newNode &&
916
- newNode.connectionPoints &&
917
- newNode.connectionPoints.length > 0 &&
918
- sourcePoint
919
- ) {
920
- // Handle connection creation
921
- const opposingType = {
922
- right: 'left',
923
- left: 'right',
924
- top: 'bottom',
925
- bottom: 'top',
926
- }[sourcePoint.type] as 'top' | 'right' | 'bottom' | 'left';
927
-
928
- const targetPoint = newNode.connectionPoints.find(
929
- (p) => p.type === opposingType
930
- );
931
-
932
- if (targetPoint) {
933
- // Create the connection
934
- const connection = this.state.createConnection(
935
- newNode.id,
936
- targetPoint.id,
937
- targetSwimlaneIndex
938
- );
939
-
940
- if (connection) {
941
- this.onConnectionCreated(connection);
942
- }
943
- }
944
- }
945
-
946
- this.hideConnectionPopup();
947
- return;
948
- } else if (nodeType === 'subflow') {
949
- console.log(
950
- 'Creating subflow from connection at:',
951
- endX,
952
- endY,
953
- 'swimlane:',
954
- targetSwimlaneIndex
955
- );
956
- // Show workflow selection popup and store connection data for later use
957
- this.showSubflowSelectionPopup(endX, endY, targetSwimlaneIndex);
958
- this.hideConnectionPopup();
959
- return;
960
- }
961
-
962
- // For other nodes Create the new node at the end position of the connection
963
- const newNode = this.state.addNode(
964
- targetSwimlaneIndex,
965
- nodeType as ToolType,
966
- endX,
967
- endY
968
- );
969
-
970
- if (
971
- newNode &&
972
- newNode.connectionPoints &&
973
- newNode.connectionPoints.length > 0
974
- ) {
975
- // Find the most appropriate connection point (closest to the source)
976
- if (sourcePoint) {
977
- // For simplicity, use the first connection point of opposing type
978
- // In a real implementation, you'd find the closest or most appropriate point
979
- let targetPoint;
980
-
981
- // If source is on right, target should be on left, etc.
982
- const opposingType = {
983
- right: 'left',
984
- left: 'right',
985
- top: 'bottom',
986
- bottom: 'top',
987
- }[sourcePoint.type] as 'top' | 'right' | 'bottom' | 'left';
988
-
989
- targetPoint = newNode.connectionPoints.find(
990
- (p) => p.type === opposingType
991
- );
992
-
993
- if (targetPoint) {
994
- // Create the connection
995
- const connection = this.state.createConnection(
996
- newNode.id,
997
- targetPoint.id,
998
- targetSwimlaneIndex
999
- );
1000
-
1001
- if (connection) {
1002
- this.onConnectionCreated(connection);
1003
- }
1004
- }
1005
- }
1006
- }
1007
-
1008
- if (sourceNodeInfo) {
1009
- this.updateNodeConnections(sourceNodeInfo.node);
1010
- }
1011
-
1012
- // End the connection drag
1013
- this.hideConnectionPopup();
1014
- }
1015
-
1016
- // Method to handle saving the condition
1017
- onDecisionConditionSaved(event: {
1018
- connectionId: string;
1019
- condition: string;
1020
- }): void {
1021
- if (!this.pendingDecisionConnection) {
1022
- this.showDecisionConditionDialog = false;
1023
- return;
1024
- }
1025
-
1026
- const { decisionNodeId, swimlaneIndex, x, y } =
1027
- this.pendingDecisionConnection;
1028
-
1029
- // Create the stage directly with default properties
1030
- const node = this.state.addNode(
1031
- swimlaneIndex,
1032
- 'stage',
1033
- x,
1034
- y,
1035
- { Name: 'New Stage' } // Add default properties
1036
- );
1037
-
1038
- if (node) {
1039
- const decisionNodeInfo = this.state.findNodeById(decisionNodeId);
1040
-
1041
- if (
1042
- decisionNodeInfo &&
1043
- node.connectionPoints &&
1044
- node.connectionPoints.length > 0
1045
- ) {
1046
- // Find a suitable connection point from the decision node
1047
- const decisionNode = decisionNodeInfo.node;
1048
- const decisionNodePoints = decisionNode.connectionPoints || [];
1049
- const sourcePoint = decisionNodePoints.find(
1050
- (p) => p.type === 'right' || p.type === 'bottom'
1051
- );
1052
-
1053
- if (sourcePoint) {
1054
- // Find opposing type connection point on the new stage
1055
- const opposingType = {
1056
- right: 'left',
1057
- bottom: 'top',
1058
- left: 'right',
1059
- top: 'bottom',
1060
- }[sourcePoint.type] as 'top' | 'right' | 'bottom' | 'left';
1061
-
1062
- const targetPoint = node.connectionPoints.find(
1063
- (p) => p.type === opposingType
1064
- );
1065
-
1066
- if (targetPoint) {
1067
- // Create connection with condition
1068
- const connection = {
1069
- id: `conn-${Date.now()}-${Math.floor(Math.random() * 1000)}`,
1070
- sourceNodeId: decisionNode.id,
1071
- targetNodeId: node.id,
1072
- sourcePointId: sourcePoint.id,
1073
- targetPointId: targetPoint.id,
1074
- sourceSwimlaneIndex: decisionNodeInfo.swimlaneIndex,
1075
- targetSwimlaneIndex: swimlaneIndex,
1076
- condition: event.condition,
1077
- label: '',
1078
- action: null,
1079
- };
1080
-
1081
- // Add connection to the state
1082
- this.state.connections.push(connection);
1083
- console.log(
1084
- 'Created decision connection with condition:',
1085
- connection
1086
- );
1087
- }
1088
- }
1089
- }
1090
- }
1091
-
1092
- // Clear pending data
1093
- this.pendingDecisionConnection = null;
1094
- this.pendingDecisionCondition = '';
1095
-
1096
- // Hide the condition popup
1097
- this.showDecisionConditionDialog = false;
1098
- }
1099
-
1100
- onDecisionConditionCancelled(): void {
1101
- this.showDecisionConditionDialog = false;
1102
- // Don't create the stage or connection
1103
- }
1104
-
1105
- getConnectionPath(): string {
1106
- const pathData = this.state.getConnectionPathData();
1107
- if (!pathData) return '';
1108
-
1109
- const { startX, startY, endX, endY } = pathData;
1110
- const sourcePoint = this.state.draggingConnectionData.sourcePoint;
1111
-
1112
- if (!sourcePoint) return '';
1113
-
1114
- return this.getOrthogonalPath(startX, startY, endX, endY, sourcePoint.type);
1115
- }
1116
-
1117
- getConnectionPathForSavedConnection(connection: Connection): string {
1118
- try {
1119
- const pathData = this.state.getConnectionData(connection);
1120
- if (!pathData) {
1121
- console.error('No path data for connection:', connection);
1122
- return '';
1123
- }
1124
-
1125
- const { startX, startY, endX, endY } = pathData;
1126
-
1127
- const sourceNodeInfo = this.state.findNodeById(connection.sourceNodeId);
1128
- if (!sourceNodeInfo) {
1129
- console.error('Source node not found for connection:', connection);
1130
- return '';
1131
- }
1132
-
1133
- const sourceNode = sourceNodeInfo.node;
1134
- const sourcePoint = sourceNode.connectionPoints?.find(
1135
- (p) => p.id === connection.sourcePointId
1136
- );
1137
-
1138
- if (!sourcePoint) {
1139
- console.error('Source point not found for connection:', connection);
1140
- return '';
1141
- }
1142
-
1143
- return this.getOrthogonalPath(
1144
- startX,
1145
- startY,
1146
- endX,
1147
- endY,
1148
- sourcePoint.type
1149
- );
1150
- } catch (error) {
1151
- console.error('Error generating path for connection:', connection, error);
1152
- return '';
1153
- }
1154
- }
1155
-
1156
- getOrthogonalPath(
1157
- startX: number,
1158
- startY: number,
1159
- endX: number,
1160
- endY: number,
1161
- pointType: 'top' | 'right' | 'bottom' | 'left'
1162
- ): string {
1163
- // Determine initial direction based on connection point type
1164
- let path = '';
1165
-
1166
- // For side points (left/right), start with horizontal line
1167
- if (pointType === 'left' || pointType === 'right') {
1168
- // Calculate horizontal distance
1169
- const horizontalDist = endX - startX;
1170
-
1171
- // If the end point is very close horizontally, use a simple 3-segment path
1172
- if (Math.abs(horizontalDist) < 30) {
1173
- const midY = (startY + endY) / 2;
1174
- path = `M ${startX} ${startY} H ${endX} V ${midY} V ${endY}`;
1175
- }
1176
- // Otherwise, create a path with horizontal segment first, then vertical, then horizontal
1177
- else {
1178
- path = `M ${startX} ${startY} H ${startX + horizontalDist / 2
1179
- } V ${endY} H ${endX}`;
1180
- }
1181
- }
1182
- // For top/bottom points, start with vertical line
1183
- else if (pointType === 'top' || pointType === 'bottom') {
1184
- // Calculate vertical distance
1185
- const verticalDist = endY - startY;
1186
-
1187
- // If the end point is very close vertically, use a simple 3-segment path
1188
- if (Math.abs(verticalDist) < 30) {
1189
- const midX = (startX + endX) / 2;
1190
- path = `M ${startX} ${startY} V ${endY} H ${midX} H ${endX}`;
1191
- }
1192
- // Otherwise, create a path with vertical segment first, then horizontal, then vertical
1193
- else {
1194
- path = `M ${startX} ${startY} V ${startY + verticalDist / 2
1195
- } H ${endX} V ${endY}`;
1196
- }
1197
- }
1198
-
1199
- return path;
1200
- }
1201
-
1202
- selectFormForStage(form: Form | null, node: Node) {
1203
- // If form is null, we're clearing the selection
1204
- if (node) {
1205
- if (!node.stageData) {
1206
- node.stageData = {};
1207
- }
1208
-
1209
- if (form) {
1210
- node.stageData.formId = form.Code;
1211
- node.stageData.formName = form.Name;
1212
- } else {
1213
- // Clear form selection
1214
- delete node.stageData.formId;
1215
- delete node.stageData.formName;
1216
- }
1217
-
1218
- // Emit an event to update the stage data
1219
- this.onStagePropertiesUpdated({
1220
- nodeId: node.id,
1221
- stageData: node.stageData,
1222
- });
1223
- }
1224
- }
1225
-
1226
- onStagePropertiesUpdated(event: {
1227
- nodeId: string;
1228
- stageData: Partial<WorkflowStage>;
1229
- }): void {
1230
- // Find the node in the swimlanes
1231
- for (let i = 0; i < this.state.swimlanes.length; i++) {
1232
- const swimlane = this.state.swimlanes[i];
1233
- const nodeIndex = swimlane.nodes?.findIndex((n) => n.id === event.nodeId);
1234
-
1235
- if (nodeIndex !== undefined && nodeIndex >= 0) {
1236
- // Update the stage data
1237
- if (swimlane.nodes) {
1238
- swimlane.nodes[nodeIndex].stageData = {
1239
- ...swimlane.nodes[nodeIndex].stageData,
1240
- ...event.stageData,
1241
- };
1242
- console.log(
1243
- 'Updated stage data in swimlane:',
1244
- i,
1245
- 'node:',
1246
- nodeIndex,
1247
- 'data:',
1248
- swimlane.nodes[nodeIndex].stageData
1249
- );
1250
- }
1251
- break;
1252
- }
1253
- }
1254
- }
1255
-
1256
- onConnectionCreated(connection: Connection): void {
1257
- // After a connection is created, refresh the source node to update its state
1258
- const sourceNodeInfo = this.state.findNodeById(connection.sourceNodeId);
1259
- if (sourceNodeInfo && sourceNodeInfo.node.type === 'stage') {
1260
- // Refresh node state
1261
- this.updateNodeConnections(sourceNodeInfo.node);
1262
- }
1263
- }
1264
-
1265
- // Helper method to update node's connection status
1266
- updateNodeConnections(node: WFNode): void {
1267
- // Count the number of outgoing connections that connect to stages
1268
- const outgoingConnections = this.state.connections.filter(
1269
- (conn) => conn.sourceNodeId === node.id
1270
- );
1271
-
1272
- // Check if the target nodes are stages
1273
- const connectedStageNodes = outgoingConnections
1274
- .map((conn) => this.state.findNodeById(conn.targetNodeId))
1275
- .filter((nodeInfo) => nodeInfo && nodeInfo.node.type === 'stage');
1276
-
1277
- node.hasMultipleConnectedStages = connectedStageNodes.length > 1;
1278
- node.hasParallelStages = connectedStageNodes.every(
1279
- (nd) => nd?.node.stageData?.IsParallel
1280
- );
1281
- }
1282
-
1283
- onEditSwimlane(
1284
- event: MouseEvent,
1285
- swimlane: SwimlaneItem,
1286
- swimlaneIndex: number
1287
- ): void {
1288
- event.stopPropagation(); // Prevent the canvas click event from firing
1289
- event.preventDefault();
1290
- console.log('Edit swimlane button clicked for swimlane:', swimlaneIndex);
1291
-
1292
- // Emit a special event for editing a swimlane
1293
- this.clickedPosition.emit({
1294
- x: -1, // Special value to indicate edit mode
1295
- y: swimlaneIndex,
1296
- });
1297
- }
1298
-
1299
- // showStartNodeFormPopup(event: MouseEvent): void {
1300
- // event.preventDefault();
1301
- // event.stopPropagation();
1302
-
1303
- // // Implementation will be similar to the stage form popup
1304
- // // We'll need to add UI elements for this
1305
- // console.log('Start node form popup requested');
1306
-
1307
- // // For now, this is a placeholder
1308
- // // The actual implementation would load forms and add them to the workflow
1309
- // }
1310
-
1311
- toggleStartNodeFormPopup(
1312
- event: MouseEvent,
1313
- nodeX: number,
1314
- nodeY: number,
1315
- swimlaneIndex: number,
1316
- node?: Node
1317
- ): void {
1318
- event.preventDefault();
1319
- event.stopPropagation();
1320
-
1321
- // Set popup position - convert canvas coordinates to viewport coordinates
1322
- const swimlaneOffset = swimlaneIndex * 263;
1323
- const canvasX = nodeX - (!node ? 30 : 0);
1324
- const canvasY = nodeY + swimlaneOffset;
1325
-
1326
- const viewportPos = this.getViewportPosition(canvasX, canvasY);
1327
- this.startNodeFormPopupX = viewportPos.x;
1328
- this.startNodeFormPopupY = viewportPos.y;
1329
-
1330
- // If we're opening the popup, load forms
1331
- if (!this.showStartNodeFormPopup) {
1332
- this.isLoadingStartNodeForms = true;
1333
- this.dataService
1334
- .getForms()
1335
- .then((response) => {
1336
- this.startNodeFormsList = response.Result;
1337
- this.isLoadingStartNodeForms = false;
1338
- })
1339
- .catch((error) => {
1340
- console.error('Error loading forms:', error);
1341
- this.isLoadingStartNodeForms = false;
1342
- });
1343
- }
1344
-
1345
- if (node) {
1346
- this.activeNodeForFormSelection = node;
1347
- console.log('Active node for form selection:', node);
1348
- } else {
1349
- this.activeNodeForFormSelection = null;
1350
- }
1351
-
1352
- this.showStartNodeFormPopup = !this.showStartNodeFormPopup;
1353
- }
1354
-
1355
- selectStartNodeForm(form: Form | null): void {
1356
- if (this.activeNodeForFormSelection) {
1357
- this.selectFormForStage(form, this.activeNodeForFormSelection);
1358
- } else {
1359
- if (form) {
1360
- this.state.setWorkflowForm(form.Code, form.Name);
1361
- } else {
1362
- this.state.setWorkflowForm(null, null);
1363
- }
1364
- }
1365
-
1366
- // Close the popup
1367
- this.showStartNodeFormPopup = false;
1368
- }
1369
-
1370
- showSubflowSelectionPopup(x: number, y: number, swimlaneIndex: number): void {
1371
- // Convert canvas coordinates to viewport coordinates for popup positioning
1372
- const viewportPos = this.getViewportPosition(x, y);
1373
- this.subflowPopupX = viewportPos.x;
1374
- this.subflowPopupY = viewportPos.y;
1375
- this.pendingSubflowPosition = { swimlaneIndex, x, y };
1376
-
1377
- // Store connection data if we're creating from a connection
1378
- if (this.state.isConnectionDragging()) {
1379
- // Store the source connection data
1380
- this.pendingConnectionSourcePoint =
1381
- this.state.draggingConnectionData.sourcePoint ?? null;
1382
- this.pendingConnectionSourceSwimlaneIndex =
1383
- this.state.draggingConnectionData.sourceSwimlaneIndex ?? null;
1384
- console.log('Stored connection data for subflow:', {
1385
- sourcePoint: this.pendingConnectionSourcePoint,
1386
- sourceSwimlaneIndex: this.pendingConnectionSourceSwimlaneIndex,
1387
- });
1388
- }
1389
-
1390
- // Load workflows
1391
- this.isLoadingWorkflows = true;
1392
- this.dataService
1393
- .getWorkflows()
1394
- .then((response) => {
1395
- this.workflowsList = response.Result;
1396
- this.isLoadingWorkflows = false;
1397
- })
1398
- .catch((error) => {
1399
- console.error('Error loading workflows:', error);
1400
- this.isLoadingWorkflows = false;
1401
- });
1402
-
1403
- this.showSubflowPopup = true;
1404
- }
1405
-
1406
- selectSubflowWorkflow(workflow: Workflow): void {
1407
- console.log('Selecting workflow for subflow:', workflow.Name);
1408
- console.log('Pending connection data:', {
1409
- sourcePoint: this.pendingConnectionSourcePoint,
1410
- sourceSwimlaneIndex: this.pendingConnectionSourceSwimlaneIndex,
1411
- position: this.pendingSubflowPosition,
1412
- });
1413
-
1414
- if (this.pendingSubflowPosition) {
1415
- const { swimlaneIndex, x, y } = this.pendingSubflowPosition;
1416
-
1417
- // Create the subflow node with the selected workflow data
1418
- const node = this.state.addNode(
1419
- swimlaneIndex,
1420
- 'subflow',
1421
- x,
1422
- y,
1423
- { Name: workflow.Name }, // Initialize stage name from workflow
1424
- { id: workflow.Code, name: workflow.Name }
1425
- );
1426
-
1427
- console.log('Created subflow node:', node);
1428
-
1429
- // If this was created from a connection, create the connection
1430
- if (node && this.pendingConnectionSourcePoint) {
1431
- console.log('Creating connection to new subflow node');
1432
-
1433
- // Find a suitable connection point on the new node
1434
- if (node.connectionPoints && node.connectionPoints.length > 0) {
1435
- const sourcePoint = this.pendingConnectionSourcePoint;
1436
-
1437
- // Find opposing type connection point
1438
- const opposingType = {
1439
- right: 'left',
1440
- left: 'right',
1441
- top: 'bottom',
1442
- bottom: 'top',
1443
- }[sourcePoint.type] as 'top' | 'right' | 'bottom' | 'left';
1444
-
1445
- const targetPoint = node.connectionPoints.find(
1446
- (p) => p.type === opposingType
1447
- );
1448
-
1449
- if (targetPoint) {
1450
- // Create connection
1451
- const connection = {
1452
- id: `conn-${Date.now()}-${Math.floor(Math.random() * 1000)}`,
1453
- sourceNodeId: sourcePoint.nodeId,
1454
- targetNodeId: node.id,
1455
- sourcePointId: sourcePoint.id,
1456
- targetPointId: targetPoint.id,
1457
- sourceSwimlaneIndex: this.pendingConnectionSourceSwimlaneIndex!,
1458
- targetSwimlaneIndex: swimlaneIndex,
1459
- label: '',
1460
- action: null,
1461
- };
1462
-
1463
- // Add connection directly to the state's connections array
1464
- this.state.connections.push(connection);
1465
- console.log('Added connection to state:', connection);
1466
- console.log('Connections after adding:', this.state.connections);
1467
- this.onConnectionCreated(connection);
1468
- }
1469
- }
1470
- this.state.endConnectionDrag();
1471
- }
1472
-
1473
- // Reset selection tool in parent component
1474
- this.subflowSelected.emit();
1475
- }
1476
-
1477
- // Clean up
1478
- this.showSubflowPopup = false;
1479
- this.pendingSubflowPosition = null;
1480
- this.pendingConnectionSourcePoint = null;
1481
- this.pendingConnectionSourceSwimlaneIndex = null;
1482
- }
1483
-
1484
- showDecisionConditionsPopup(
1485
- event: MouseEvent,
1486
- node: WFNode,
1487
- swimlaneIndex: number
1488
- ): void {
1489
- event.preventDefault();
1490
- event.stopPropagation();
1491
-
1492
- // Get the position for the popup
1493
- const position = this.getMousePosition(event);
1494
-
1495
- // Convert canvas coordinates to viewport coordinates for popup positioning
1496
- const viewportPos = this.getViewportPosition(position.x, position.y);
1497
-
1498
- // Find all connections from this decision node
1499
- const connections = this.state.connections.filter(
1500
- (conn) => conn.sourceNodeId === node.id
1501
- );
1502
-
1503
- if (connections.length === 0) {
1504
- // No connections to show
1505
- return;
1506
- }
1507
-
1508
- // Show the decision conditions popup
1509
- this.activeDecisionNodeId = node.id;
1510
- this.decisionConditionPopupX = viewportPos.x;
1511
- this.decisionConditionPopupY = viewportPos.y;
1512
-
1513
- // Set the correct popup visibility flag - this is likely the issue
1514
- this.showDecisionConditionDialog = true;
1515
-
1516
- // console.log('Showing decision popup:', {
1517
- // y: globalY,
1518
- // nodeId: node.id,
1519
- // isVisible: this.showDecisionConditionDialog,
1520
- // });
1521
- }
1522
-
1523
- ensureSwimlaneInView(swimlaneIndex: number): void {
1524
- // Ensure we have enough swimlanes visible
1525
- const requiredHeight = (swimlaneIndex + 1) * this.swimlaneHeight;
1526
- if (this.canvasHeight < requiredHeight) {
1527
- this.canvasHeight = requiredHeight;
1528
- }
1529
- }
1530
-
1531
- getLabelPosition(connection: Connection): { x: number; y: number } {
1532
- try {
1533
- const pathData = this.state.getConnectionData(connection);
1534
- if (!pathData) {
1535
- console.error('No path data for connection:', connection);
1536
- return { x: 0, y: 0 };
1537
- }
1538
-
1539
- const { startX, startY, endX, endY } = pathData;
1540
-
1541
- const sourceNodeInfo = this.state.findNodeById(connection.sourceNodeId);
1542
- if (!sourceNodeInfo) {
1543
- console.error('Source node not found for connection:', connection);
1544
- return { x: 0, y: 0 };
1545
- }
1546
-
1547
- const sourceNode = sourceNodeInfo.node;
1548
- const sourcePoint = sourceNode.connectionPoints?.find(
1549
- (p) => p.id === connection.sourcePointId
1550
- );
1551
-
1552
- if (!sourcePoint) {
1553
- console.error('Source point not found for connection:', connection);
1554
- return { x: 0, y: 0 };
1555
- }
1556
-
1557
- // Calculate midpoint based on the connection point type
1558
- if (sourcePoint.type === 'left' || sourcePoint.type === 'right') {
1559
- const horizontalDist = endX - startX;
1560
-
1561
- if (Math.abs(horizontalDist) < 30) {
1562
- // For short horizontal connections
1563
- const midY = (startY + endY) / 2;
1564
- return {
1565
- x: startX + (endX - startX) / 2,
1566
- y: midY,
1567
- };
1568
- } else {
1569
- // For regular connections starting horizontally
1570
- const midX = startX + horizontalDist / 2;
1571
- const midY = endY;
1572
- return {
1573
- x: midX,
1574
- y: (startY + endY) / 2,
1575
- };
1576
- }
1577
- } else {
1578
- // 'top' or 'bottom'
1579
- const verticalDist = endY - startY;
1580
-
1581
- if (Math.abs(verticalDist) < 30) {
1582
- // For short vertical connections
1583
- const midX = (startX + endX) / 2;
1584
- return {
1585
- x: midX,
1586
- y: startY + (endY - startY) / 2,
1587
- };
1588
- } else {
1589
- // For regular connections starting vertically
1590
- const midX = endX;
1591
- const midY = startY + verticalDist / 2;
1592
- return {
1593
- x: (startX + endX) / 2,
1594
- y: midY,
1595
- };
1596
- }
1597
- }
1598
- } catch (error) {
1599
- console.error(
1600
- 'Error calculating label position for connection:',
1601
- connection,
1602
- error
1603
- );
1604
- return { x: 0, y: 0 };
1605
- }
1606
- }
1607
-
1608
- saveConnectionLabel(connection: Connection, label: string) {
1609
- // Update the connection label in the state
1610
- this.state.connections = this.state.connections.map((conn) => {
1611
- if (conn.id === connection.id) {
1612
- return {
1613
- ...conn,
1614
- label: label,
1615
- };
1616
- }
1617
- return conn;
1618
- });
1619
- }
1620
- }