verben-workflow-ui 0.5.80 → 0.5.82

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 (1006) hide show
  1. package/ng-package.json +15 -0
  2. package/package.json +9 -175
  3. package/src/lib/components/actors/actors.columns.ts +40 -0
  4. package/src/lib/components/actors/actors.component.css +0 -0
  5. package/src/lib/components/actors/actors.component.html +329 -0
  6. package/src/lib/components/actors/actors.component.spec.ts +23 -0
  7. package/src/lib/components/actors/actors.component.ts +141 -0
  8. package/src/lib/components/actors/actors.facade.ts +314 -0
  9. package/src/lib/components/actors/actors.form.component.html +37 -0
  10. package/src/lib/components/actors/actors.form.component.ts +80 -0
  11. package/src/lib/components/actors/actors.model.ts +4 -0
  12. package/src/lib/components/actors/actors.module.ts +13 -0
  13. package/src/lib/components/actors/actors.service.ts +101 -0
  14. package/src/lib/components/actors/actors.state.ts +117 -0
  15. package/src/lib/components/actors/ng-package.json +6 -0
  16. package/src/lib/components/designer/components/label-editor.component.ts +188 -0
  17. package/src/lib/components/designer/components/node-selector.component.ts +210 -0
  18. package/src/lib/components/designer/components/swimlane-label.component.ts +102 -0
  19. package/src/lib/components/designer/components/swimlane-popup.component.ts +51 -0
  20. package/src/lib/components/designer/components/wf-canvas.component.ts +495 -0
  21. package/src/lib/components/designer/components/wf-designer.component.ts +185 -0
  22. package/src/lib/components/designer/components/wf-node.component.ts +91 -0
  23. package/src/lib/components/designer/components/wf-properties-popup.component.ts +257 -0
  24. package/src/lib/components/designer/components/wf-toolbar.component.ts +84 -0
  25. package/src/lib/components/designer/models/types.ts +132 -0
  26. package/src/lib/components/designer/ng-package.json +6 -0
  27. package/src/lib/components/designer/services/canvas-state.service.ts +63 -0
  28. package/src/lib/components/designer/services/connection-segment-interaction.service.ts +141 -0
  29. package/src/lib/components/designer/services/connection.service.ts +350 -0
  30. package/src/lib/components/designer/services/keyboard-handler.service.ts +39 -0
  31. package/src/lib/components/designer/services/label-management.service.ts +72 -0
  32. package/src/lib/components/designer/services/node-finder.service.ts +34 -0
  33. package/src/lib/components/designer/services/node-interaction.service.ts +135 -0
  34. package/src/lib/components/designer/services/node-placement.service.ts +77 -0
  35. package/src/lib/components/designer/services/node-precondition.service.ts +139 -0
  36. package/src/lib/components/designer/services/node-renderer.service.ts +97 -0
  37. package/src/lib/components/designer/services/node-selection.service.ts +110 -0
  38. package/src/lib/components/designer/services/orthogonal-router.service.ts +233 -0
  39. package/src/lib/components/designer/services/position-update.service.ts +56 -0
  40. package/src/lib/components/designer/services/rendering.service.ts +296 -0
  41. package/src/lib/components/designer/services/swimlane-management.service.ts +189 -0
  42. package/src/lib/components/designer/services/swimlane-stats.service.ts +53 -0
  43. package/src/lib/components/designer/services/tag-helper.service.ts +80 -0
  44. package/src/lib/components/designer/services/viewport.service.ts +30 -0
  45. package/src/lib/components/designer/services/wf-facade.service.ts +287 -0
  46. package/src/lib/components/designer/services/wf-mapper.service.ts +448 -0
  47. package/src/lib/components/designer/services/wf-persistence.service.ts +180 -0
  48. package/src/lib/components/designer/services/wf-state.service.ts +143 -0
  49. package/src/lib/components/expiration/expiration.component.css +0 -0
  50. package/src/lib/components/expiration/expiration.component.html +21 -0
  51. package/src/lib/components/expiration/expiration.component.spec.ts +23 -0
  52. package/src/lib/components/expiration/expiration.component.ts +52 -0
  53. package/src/lib/components/expiration/expiration.module.ts +11 -0
  54. package/src/lib/components/expiration/ng-package.json +6 -0
  55. package/src/lib/components/file-render/file-render.component.css +4 -0
  56. package/src/lib/components/file-render/file-render.component.html +21 -0
  57. package/src/lib/components/file-render/file-render.component.spec.ts +23 -0
  58. package/src/lib/components/file-render/file-render.component.ts +34 -0
  59. package/src/lib/components/file-render/file-render.module.ts +19 -0
  60. package/src/lib/components/file-render/ng-package.json +6 -0
  61. package/src/lib/components/file-upload/file-upload.component.css +0 -0
  62. package/src/lib/components/file-upload/file-upload.component.html +69 -0
  63. package/src/lib/components/file-upload/file-upload.component.spec.ts +23 -0
  64. package/src/lib/components/file-upload/file-upload.component.ts +87 -0
  65. package/src/lib/components/file-upload/file-upload.module.ts +40 -0
  66. package/src/lib/components/file-upload/ng-package.json +6 -0
  67. package/src/lib/components/flowable-status/flowable-status.columns.ts +23 -0
  68. package/src/lib/components/flowable-status/flowable-status.component.css +1 -0
  69. package/src/lib/components/flowable-status/flowable-status.component.html +159 -0
  70. package/src/lib/components/flowable-status/flowable-status.component.ts +147 -0
  71. package/src/lib/components/flowable-status/flowable-status.facade.ts +251 -0
  72. package/src/lib/components/flowable-status/flowable-status.form.component.html +13 -0
  73. package/src/lib/components/flowable-status/flowable-status.form.component.ts +51 -0
  74. package/src/lib/components/flowable-status/flowable-status.model.ts +3 -0
  75. package/src/lib/components/flowable-status/flowable-status.module.ts +13 -0
  76. package/src/lib/components/flowable-status/flowable-status.service.ts +62 -0
  77. package/src/lib/components/flowable-status/flowable-status.state.ts +97 -0
  78. package/src/lib/components/flowable-status/ng-package.json +6 -0
  79. package/src/lib/components/flowable-status/public-api.ts +3 -0
  80. package/src/lib/components/form-control/form-control.component.css +0 -0
  81. package/src/lib/components/form-control/form-control.component.html +254 -0
  82. package/src/lib/components/form-control/form-control.component.spec.ts +23 -0
  83. package/src/lib/components/form-control/form-control.component.ts +171 -0
  84. package/src/lib/components/form-control/form-control.module.ts +47 -0
  85. package/src/lib/components/form-control/ng-package.json +6 -0
  86. package/src/lib/components/form-group/base-table-style.ts +52 -0
  87. package/src/lib/components/form-group/form-fields/form-fields.component.css +114 -0
  88. package/src/lib/components/form-group/form-fields/form-fields.component.html +621 -0
  89. package/src/lib/components/form-group/form-fields/form-fields.component.spec.ts +23 -0
  90. package/src/lib/components/form-group/form-fields/form-fields.component.ts +1120 -0
  91. package/src/lib/components/form-group/form-fields/form-fields.module.ts +48 -0
  92. package/src/lib/components/form-group/form-fields/form-fields.service.ts +70 -0
  93. package/src/lib/components/form-group/form-fields/helper.ts +45 -0
  94. package/src/lib/components/form-group/form-group.component.css +113 -0
  95. package/src/lib/components/form-group/form-group.component.html +486 -0
  96. package/src/lib/components/form-group/form-group.component.spec.ts +22 -0
  97. package/src/lib/components/form-group/form-group.component.ts +798 -0
  98. package/src/lib/components/form-group/form-group.module.ts +54 -0
  99. package/src/lib/components/form-group/form-group.service.ts +53 -0
  100. package/src/lib/components/form-group/helper.ts +45 -0
  101. package/src/lib/components/form-group/ng-package.json +6 -0
  102. package/src/lib/components/form-response/form-response.component.css +114 -0
  103. package/src/lib/components/form-response/form-response.component.html +188 -0
  104. package/src/lib/components/form-response/form-response.component.spec.ts +23 -0
  105. package/src/lib/components/form-response/form-response.component.ts +726 -0
  106. package/src/lib/components/form-response/form-response.module.ts +48 -0
  107. package/src/lib/components/form-response/form-response.service.ts +52 -0
  108. package/src/lib/components/form-response/helper.ts +222 -0
  109. package/src/lib/components/form-response/ng-package.json +6 -0
  110. package/src/lib/components/form-timer/form-timer.component.css +0 -0
  111. package/src/lib/components/form-timer/form-timer.component.html +47 -0
  112. package/src/lib/components/form-timer/form-timer.component.spec.ts +23 -0
  113. package/src/lib/components/form-timer/form-timer.component.ts +52 -0
  114. package/src/lib/components/form-timer/form-timer.module.ts +19 -0
  115. package/src/lib/components/form-timer/ng-package.json +6 -0
  116. package/src/lib/components/forms/base-table-style.ts +52 -0
  117. package/src/lib/components/forms/forms.component.css +126 -0
  118. package/src/lib/components/forms/forms.component.html +538 -0
  119. package/src/lib/components/forms/forms.component.spec.ts +23 -0
  120. package/src/lib/components/forms/forms.component.ts +810 -0
  121. package/src/lib/components/forms/forms.module.ts +10 -0
  122. package/src/lib/components/forms/forms.service.spec.ts +16 -0
  123. package/src/lib/components/forms/forms.service.ts +65 -0
  124. package/src/lib/components/forms/ng-package.json +6 -0
  125. package/src/lib/components/journal/journal.component.css +0 -0
  126. package/src/lib/components/journal/journal.component.html +1 -0
  127. package/src/lib/components/journal/journal.component.spec.ts +23 -0
  128. package/src/lib/components/journal/journal.component.ts +10 -0
  129. package/src/lib/components/journal/journal.module.ts +10 -0
  130. package/src/lib/components/journal/ng-package.json +6 -0
  131. package/src/lib/components/my-queue/my-queue.columns.ts +32 -0
  132. package/src/lib/components/my-queue/my-queue.component.css +4 -0
  133. package/src/lib/components/my-queue/my-queue.component.html +181 -0
  134. package/src/lib/components/my-queue/my-queue.component.spec.ts +23 -0
  135. package/src/lib/components/my-queue/my-queue.component.ts +136 -0
  136. package/src/lib/components/my-queue/my-queue.facade.ts +577 -0
  137. package/src/lib/components/my-queue/my-queue.helper.ts +72 -0
  138. package/src/lib/components/my-queue/my-queue.module.ts +23 -0
  139. package/src/lib/components/my-queue/my-queue.service.spec.ts +16 -0
  140. package/src/lib/components/my-queue/my-queue.service.ts +229 -0
  141. package/src/lib/components/my-queue/my-queue.state.ts +105 -0
  142. package/src/lib/components/my-queue/ng-package.json +6 -0
  143. package/src/lib/components/my-queue/tasks.form.component.html +144 -0
  144. package/src/lib/components/my-queue/tasks.form.component.ts +152 -0
  145. package/src/lib/components/operation-popup/ng-package.json +6 -0
  146. package/src/lib/components/operation-popup/operation-popup.component.css +1 -0
  147. package/src/lib/components/operation-popup/operation-popup.component.html +107 -0
  148. package/src/lib/components/operation-popup/operation-popup.component.ts +381 -0
  149. package/src/lib/components/operation-popup/operation-popup.facade.ts +430 -0
  150. package/src/lib/components/operation-popup/operation-popup.service.ts +120 -0
  151. package/src/lib/components/operation-popup/operation-popup.state.ts +49 -0
  152. package/src/lib/components/stage-details/ng-package.json +6 -0
  153. package/src/lib/components/stage-details/stage-details.component.css +0 -0
  154. package/src/lib/components/stage-details/stage-details.component.html +95 -0
  155. package/src/lib/components/stage-details/stage-details.component.spec.ts +23 -0
  156. package/src/lib/components/stage-details/stage-details.component.ts +45 -0
  157. package/src/lib/components/stage-details/stage-details.module.ts +11 -0
  158. package/src/lib/components/task-form/ng-package.json +6 -0
  159. package/src/lib/components/task-form/task-form.component.css +0 -0
  160. package/src/lib/components/task-form/task-form.component.html +38 -0
  161. package/src/lib/components/task-form/task-form.component.spec.ts +23 -0
  162. package/src/lib/components/task-form/task-form.component.ts +15 -0
  163. package/src/lib/components/task-form/task-form.module.ts +31 -0
  164. package/src/lib/components/task-history/ng-package.json +6 -0
  165. package/src/lib/components/task-history/task-history.component.css +334 -0
  166. package/src/lib/components/task-history/task-history.component.html +145 -0
  167. package/src/lib/components/task-history/task-history.component.spec.ts +23 -0
  168. package/src/lib/components/task-history/task-history.component.ts +236 -0
  169. package/src/lib/components/task-history/task-history.module.ts +11 -0
  170. package/src/lib/components/task-history/task-history.service.ts +32 -0
  171. package/src/lib/components/task-notification/base-table-style.ts +52 -0
  172. package/src/lib/components/task-notification/ng-package.json +6 -0
  173. package/src/lib/components/task-notification/task-notification.component.css +94 -0
  174. package/src/lib/components/task-notification/task-notification.component.html +585 -0
  175. package/src/lib/components/task-notification/task-notification.component.spec.ts +23 -0
  176. package/src/lib/components/task-notification/task-notification.component.ts +770 -0
  177. package/src/lib/components/task-notification/task-notification.module.ts +10 -0
  178. package/src/lib/components/task-notification/task-notification.service.spec.ts +16 -0
  179. package/src/lib/components/task-notification/task-notification.service.ts +397 -0
  180. package/src/lib/components/tasks/ng-package.json +6 -0
  181. package/src/lib/components/tasks/tasks.columns.ts +36 -0
  182. package/src/lib/components/tasks/tasks.component.css +4 -0
  183. package/src/lib/components/tasks/tasks.component.html +215 -0
  184. package/src/lib/components/tasks/tasks.component.spec.ts +23 -0
  185. package/src/lib/components/tasks/tasks.component.ts +111 -0
  186. package/src/lib/components/tasks/tasks.facade.ts +443 -0
  187. package/src/lib/components/tasks/tasks.form.component.html +144 -0
  188. package/src/lib/components/tasks/tasks.form.component.ts +152 -0
  189. package/src/lib/components/tasks/tasks.helper.ts +72 -0
  190. package/src/lib/components/tasks/tasks.models.ts +4 -0
  191. package/src/lib/components/tasks/tasks.module.ts +28 -0
  192. package/src/lib/components/tasks/tasks.service.spec.ts +16 -0
  193. package/src/lib/components/tasks/tasks.service.ts +157 -0
  194. package/src/lib/components/tasks/tasks.state.ts +113 -0
  195. package/src/lib/components/wf/ng-package.json +6 -0
  196. package/src/lib/components/wf/wf.columns.ts +36 -0
  197. package/src/lib/components/wf/wf.component.css +0 -0
  198. package/src/lib/components/wf/wf.component.html +35 -0
  199. package/src/lib/components/wf/wf.component.spec.ts +23 -0
  200. package/src/lib/components/wf/wf.component.ts +72 -0
  201. package/src/lib/components/wf/wf.facade.ts +274 -0
  202. package/src/lib/components/wf/wf.helper.ts +23 -0
  203. package/src/lib/components/wf/wf.module.ts +14 -0
  204. package/src/lib/components/wf/wf.service.spec.ts +16 -0
  205. package/src/lib/components/wf/wf.service.ts +98 -0
  206. package/src/lib/components/wf/wf.state.ts +99 -0
  207. package/src/lib/components/workflow/column.ts +40 -0
  208. package/src/lib/components/workflow/helper.ts +53 -0
  209. package/src/lib/components/workflow/ng-package.json +6 -0
  210. package/src/lib/components/workflow/table-style.ts +53 -0
  211. package/src/lib/components/workflow/workflow.component.css +0 -0
  212. package/src/lib/components/workflow/workflow.component.html +226 -0
  213. package/src/lib/components/workflow/workflow.component.spec.ts +23 -0
  214. package/src/lib/components/workflow/workflow.component.ts +230 -0
  215. package/src/lib/components/workflow/workflow.module.ts +11 -0
  216. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.css +9 -0
  217. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.html +56 -0
  218. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.spec.ts +23 -0
  219. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.ts +136 -0
  220. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.css +0 -0
  221. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.html +45 -0
  222. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.ts +75 -0
  223. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.css +7 -0
  224. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.html +89 -0
  225. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.spec.ts +23 -0
  226. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.ts +76 -0
  227. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.css +11 -0
  228. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.html +74 -0
  229. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.spec.ts +23 -0
  230. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.ts +61 -0
  231. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.css +70 -0
  232. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.html +454 -0
  233. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.spec.ts +23 -0
  234. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.ts +1620 -0
  235. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.connection-drop.spec.ts +100 -0
  236. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.css +63 -0
  237. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.html +49 -0
  238. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.spec.ts +23 -0
  239. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.ts +73 -0
  240. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.ts +7 -0
  241. package/src/lib/components/workflow-designer/docs/01-architecture.md +145 -0
  242. package/src/lib/components/workflow-designer/docs/02-coordinate-system.md +170 -0
  243. package/src/lib/components/workflow-designer/docs/03-data-model.md +163 -0
  244. package/src/lib/components/workflow-designer/docs/04-interactions.md +156 -0
  245. package/src/lib/components/workflow-designer/docs/05-persistence.md +107 -0
  246. package/src/lib/components/workflow-designer/docs/06-known-issues.md +126 -0
  247. package/src/lib/components/workflow-designer/docs/README.md +71 -0
  248. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.css +9 -0
  249. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +94 -0
  250. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.spec.ts +23 -0
  251. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.ts +272 -0
  252. package/src/lib/components/workflow-designer/ng-package.json +6 -0
  253. package/src/lib/components/workflow-designer/services/connection.service.ts +309 -0
  254. package/src/lib/components/workflow-designer/services/node-management.service.ts +351 -0
  255. package/src/lib/components/workflow-designer/services/popup.service.ts +271 -0
  256. package/src/lib/components/workflow-designer/services/swimlane.service.ts +163 -0
  257. package/src/lib/components/workflow-designer/services/transformer.service.ts +301 -0
  258. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.css +0 -0
  259. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.html +208 -0
  260. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.spec.ts +23 -0
  261. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.ts +190 -0
  262. package/src/lib/components/workflow-designer/stage-node/stage-node.component.css +15 -0
  263. package/src/lib/components/workflow-designer/stage-node/stage-node.component.html +93 -0
  264. package/src/lib/components/workflow-designer/stage-node/stage-node.component.spec.ts +23 -0
  265. package/src/lib/components/workflow-designer/stage-node/stage-node.component.ts +253 -0
  266. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.css +0 -0
  267. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.html +151 -0
  268. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.spec.ts +23 -0
  269. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.ts +149 -0
  270. package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +16 -0
  271. package/src/lib/components/workflow-designer/workflow-data.service.ts +266 -0
  272. package/src/lib/components/workflow-designer/workflow-designer.component.css +59 -0
  273. package/src/lib/components/workflow-designer/workflow-designer.component.html +29 -0
  274. package/src/lib/components/workflow-designer/workflow-designer.component.spec.ts +23 -0
  275. package/src/lib/components/workflow-designer/workflow-designer.component.ts +515 -0
  276. package/src/lib/components/workflow-designer/workflow-designer.models.ts +102 -0
  277. package/src/lib/components/workflow-designer/workflow-designer.module.ts +69 -0
  278. package/src/lib/components/workflow-designer/workflow-designer.state.ts +953 -0
  279. package/src/lib/components/workflow-designer/workflow-designer.types.ts +61 -0
  280. package/src/lib/components/workflow-stage/workflow-stage.component.css +24 -0
  281. package/src/lib/components/workflow-stage/workflow-stage.component.html +201 -0
  282. package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +23 -0
  283. package/src/lib/components/workflow-stage/workflow-stage.component.ts +179 -0
  284. package/src/lib/components/workflow-stage/workflow-stage.module.ts +55 -0
  285. package/src/lib/components/workflows/ng-package.json +6 -0
  286. package/src/lib/components/workflows/workflow-form/workflow-form.component.css +0 -0
  287. package/src/lib/components/workflows/workflow-form/workflow-form.component.html +128 -0
  288. package/src/lib/components/workflows/workflow-form/workflow-form.component.spec.ts +23 -0
  289. package/src/lib/components/workflows/workflow-form/workflow-form.component.ts +87 -0
  290. package/src/lib/components/workflows/workflows.columns.ts +36 -0
  291. package/src/lib/components/workflows/workflows.component.css +4 -0
  292. package/src/lib/components/workflows/workflows.component.html +271 -0
  293. package/src/lib/components/workflows/workflows.component.spec.ts +23 -0
  294. package/src/lib/components/workflows/workflows.component.ts +214 -0
  295. package/src/lib/components/workflows/workflows.facade.ts +386 -0
  296. package/src/lib/components/workflows/workflows.helper.ts +23 -0
  297. package/src/lib/components/workflows/workflows.module.ts +14 -0
  298. package/src/lib/components/workflows/workflows.service.spec.ts +16 -0
  299. package/src/lib/components/workflows/workflows.service.ts +161 -0
  300. package/src/lib/components/workflows/workflows.state.ts +106 -0
  301. package/src/lib/models/ActionHistory.ts +17 -0
  302. package/src/lib/models/ActionType.ts +9 -0
  303. package/src/lib/models/Actor.ts +12 -0
  304. package/src/lib/models/ActorTag.ts +8 -0
  305. package/src/lib/models/Coord.ts +4 -0
  306. package/src/lib/models/DataType.ts +25 -0
  307. package/src/lib/models/EAVEntity.ts +5 -0
  308. package/src/lib/models/ErrorResponse.ts +7 -0
  309. package/src/lib/models/Escalation.ts +15 -0
  310. package/src/lib/models/EscalationCycle.ts +13 -0
  311. package/src/lib/models/EscalationStage.ts +11 -0
  312. package/src/lib/models/EscalationType.ts +5 -0
  313. package/src/lib/models/File.ts +8 -0
  314. package/src/lib/models/FilterTypes.ts +8 -0
  315. package/src/lib/models/FlowableStatus.ts +6 -0
  316. package/src/lib/models/Form.ts +14 -0
  317. package/src/lib/models/FormEntity.ts +14 -0
  318. package/src/lib/models/FormFill.ts +16 -0
  319. package/src/lib/models/FormProperty.ts +16 -0
  320. package/src/lib/models/FormValues.ts +16 -0
  321. package/src/lib/models/MailConfig.ts +13 -0
  322. package/src/lib/models/MessageConfig.ts +5 -0
  323. package/src/lib/models/MessageMedium.ts +4 -0
  324. package/src/lib/models/OperationAction.ts +15 -0
  325. package/src/lib/models/PagedResult.ts +5 -0
  326. package/src/lib/models/PeriodMode.ts +10 -0
  327. package/src/lib/models/PermissionConfig.ts +8 -0
  328. package/src/lib/models/ReportSchedule.ts +23 -0
  329. package/src/lib/models/ReportType.ts +5 -0
  330. package/src/lib/models/Resource.ts +57 -0
  331. package/src/lib/models/ResponseKeyValue.ts +5 -0
  332. package/src/lib/models/SMSConfig.ts +11 -0
  333. package/src/lib/models/SearchDynamicWrapper.ts +6 -0
  334. package/src/lib/models/SearchOperator.ts +4 -0
  335. package/src/lib/models/SearchPropertySign.ts +9 -0
  336. package/src/lib/models/SearchPropertyValue.ts +13 -0
  337. package/src/lib/models/SearchPropertyValueType.ts +9 -0
  338. package/src/lib/models/Size.ts +4 -0
  339. package/src/lib/models/SortDirection.ts +5 -0
  340. package/src/lib/models/StageActorRule.ts +6 -0
  341. package/src/lib/models/SwimLane.ts +14 -0
  342. package/src/lib/models/Tag.ts +7 -0
  343. package/src/lib/models/Task.ts +23 -0
  344. package/src/lib/models/TaskAssignmentType.ts +4 -0
  345. package/src/lib/models/TaskNotification.ts +16 -0
  346. package/src/lib/models/TaskNotificationMessageType.ts +4 -0
  347. package/src/lib/models/TaskNotificationType.ts +6 -0
  348. package/src/lib/models/TaskStatus.ts +7 -0
  349. package/src/lib/models/Workflow.ts +21 -0
  350. package/src/lib/models/WorkflowAction.ts +14 -0
  351. package/src/lib/models/WorkflowOperation.ts +7 -0
  352. package/src/lib/models/WorkflowStage.ts +27 -0
  353. package/src/lib/models/actors.ts +10 -0
  354. package/src/lib/models/auth-mechanism.ts +14 -0
  355. package/src/lib/models/base.ts +12 -0
  356. package/src/lib/models/ng-package.json +6 -0
  357. package/src/lib/models/object-state.ts +6 -0
  358. package/src/lib/models/operation-type.ts +6 -0
  359. package/src/lib/models/paged.ts +9 -0
  360. package/src/lib/models/query-params.ts +9 -0
  361. package/src/lib/models/status.ts +5 -0
  362. package/src/lib/models/task-history.ts +14 -0
  363. package/src/lib/models/user-access-request-status.ts +5 -0
  364. package/src/lib/models/user.ts +24 -0
  365. package/src/lib/pipes/async-label.pipe.spec.ts +8 -0
  366. package/src/lib/pipes/async-label.pipe.ts +30 -0
  367. package/src/lib/pipes/ng-package.json +6 -0
  368. package/src/lib/services/environment.service.spec.ts +16 -0
  369. package/src/lib/services/environment.service.ts +32 -0
  370. package/src/lib/services/http-web-request.service.spec.ts +16 -0
  371. package/src/lib/services/http-web-request.service.ts +118 -0
  372. package/src/lib/services/label.service.spec.ts +16 -0
  373. package/src/lib/services/label.service.ts +182 -0
  374. package/src/lib/services/ng-package.json +6 -0
  375. package/src/lib/services/public-api.ts +5 -0
  376. package/src/lib/services/util.service.spec.ts +16 -0
  377. package/src/lib/services/util.service.ts +58 -0
  378. package/src/lib/shared/base-table-style.ts +56 -0
  379. package/src/lib/shared/components/base-data-view.component.ts +191 -0
  380. package/src/lib/shared/components/base-model-field.ts +31 -0
  381. package/src/lib/shared/models/DataViewConfig.ts +19 -0
  382. package/src/lib/shared/ng-package.json +6 -0
  383. package/src/lib/shared/public-api.ts +14 -0
  384. package/src/lib/shared/shared.module.ts +67 -0
  385. package/src/lib/utils/index.ts +1 -0
  386. package/src/lib/utils/public-api.ts +2 -0
  387. package/src/lib/utils/store.ts +50 -0
  388. package/src/public-api.ts +54 -0
  389. package/src/styles.css +96 -0
  390. package/tailwind.config copy.js +33 -0
  391. package/tailwind.config.js +20 -0
  392. package/tsconfig.lib.json +15 -0
  393. package/tsconfig.lib.prod.json +11 -0
  394. package/tsconfig.spec.json +15 -0
  395. package/esm2022/public-api.mjs +0 -39
  396. package/esm2022/src/lib/components/actors/actors.columns.mjs +0 -39
  397. package/esm2022/src/lib/components/actors/actors.component.mjs +0 -129
  398. package/esm2022/src/lib/components/actors/actors.facade.mjs +0 -253
  399. package/esm2022/src/lib/components/actors/actors.form.component.mjs +0 -78
  400. package/esm2022/src/lib/components/actors/actors.module.mjs +0 -21
  401. package/esm2022/src/lib/components/actors/actors.service.mjs +0 -78
  402. package/esm2022/src/lib/components/actors/actors.state.mjs +0 -100
  403. package/esm2022/src/lib/components/actors/index.mjs +0 -2
  404. package/esm2022/src/lib/components/actors/public-api.mjs +0 -3
  405. package/esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs +0 -5
  406. package/esm2022/src/lib/components/designer/components/label-editor.component.mjs +0 -148
  407. package/esm2022/src/lib/components/designer/components/node-selector.component.mjs +0 -319
  408. package/esm2022/src/lib/components/designer/components/swimlane-label.component.mjs +0 -161
  409. package/esm2022/src/lib/components/designer/components/swimlane-popup.component.mjs +0 -85
  410. package/esm2022/src/lib/components/designer/components/wf-canvas.component.mjs +0 -715
  411. package/esm2022/src/lib/components/designer/components/wf-designer.component.mjs +0 -138
  412. package/esm2022/src/lib/components/designer/components/wf-toolbar.component.mjs +0 -56
  413. package/esm2022/src/lib/components/designer/index.mjs +0 -2
  414. package/esm2022/src/lib/components/designer/models/types.mjs +0 -2
  415. package/esm2022/src/lib/components/designer/public-api.mjs +0 -3
  416. package/esm2022/src/lib/components/designer/services/canvas-state.service.mjs +0 -50
  417. package/esm2022/src/lib/components/designer/services/connection-segment-interaction.service.mjs +0 -108
  418. package/esm2022/src/lib/components/designer/services/connection.service.mjs +0 -266
  419. package/esm2022/src/lib/components/designer/services/keyboard-handler.service.mjs +0 -43
  420. package/esm2022/src/lib/components/designer/services/label-management.service.mjs +0 -66
  421. package/esm2022/src/lib/components/designer/services/node-finder.service.mjs +0 -30
  422. package/esm2022/src/lib/components/designer/services/node-interaction.service.mjs +0 -108
  423. package/esm2022/src/lib/components/designer/services/node-precondition.service.mjs +0 -109
  424. package/esm2022/src/lib/components/designer/services/node-selection.service.mjs +0 -96
  425. package/esm2022/src/lib/components/designer/services/orthogonal-router.service.mjs +0 -167
  426. package/esm2022/src/lib/components/designer/services/position-update.service.mjs +0 -45
  427. package/esm2022/src/lib/components/designer/services/rendering.service.mjs +0 -236
  428. package/esm2022/src/lib/components/designer/services/swimlane-management.service.mjs +0 -145
  429. package/esm2022/src/lib/components/designer/services/swimlane-stats.service.mjs +0 -44
  430. package/esm2022/src/lib/components/designer/services/viewport.service.mjs +0 -30
  431. package/esm2022/src/lib/components/designer/services/wf-facade.service.mjs +0 -239
  432. package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +0 -324
  433. package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +0 -167
  434. package/esm2022/src/lib/components/designer/services/wf-state.service.mjs +0 -108
  435. package/esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs +0 -5
  436. package/esm2022/src/lib/components/expiration/expiration.component.mjs +0 -49
  437. package/esm2022/src/lib/components/expiration/expiration.module.mjs +0 -19
  438. package/esm2022/src/lib/components/expiration/index.mjs +0 -2
  439. package/esm2022/src/lib/components/expiration/public-api.mjs +0 -3
  440. package/esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs +0 -5
  441. package/esm2022/src/lib/components/file-render/file-render.component.mjs +0 -45
  442. package/esm2022/src/lib/components/file-render/file-render.module.mjs +0 -35
  443. package/esm2022/src/lib/components/file-render/index.mjs +0 -2
  444. package/esm2022/src/lib/components/file-render/public-api.mjs +0 -3
  445. package/esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs +0 -5
  446. package/esm2022/src/lib/components/file-upload/file-upload.component.mjs +0 -93
  447. package/esm2022/src/lib/components/file-upload/file-upload.module.mjs +0 -63
  448. package/esm2022/src/lib/components/file-upload/index.mjs +0 -2
  449. package/esm2022/src/lib/components/file-upload/public-api.mjs +0 -3
  450. package/esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs +0 -5
  451. package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +0 -21
  452. package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +0 -136
  453. package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +0 -207
  454. package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +0 -52
  455. package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +0 -21
  456. package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +0 -54
  457. package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +0 -85
  458. package/esm2022/src/lib/components/flowable-status/index.mjs +0 -2
  459. package/esm2022/src/lib/components/flowable-status/public-api.mjs +0 -3
  460. package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +0 -5
  461. package/esm2022/src/lib/components/form-control/form-control.component.mjs +0 -157
  462. package/esm2022/src/lib/components/form-control/form-control.module.mjs +0 -75
  463. package/esm2022/src/lib/components/form-control/index.mjs +0 -2
  464. package/esm2022/src/lib/components/form-control/public-api.mjs +0 -3
  465. package/esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs +0 -5
  466. package/esm2022/src/lib/components/form-group/base-table-style.mjs +0 -53
  467. package/esm2022/src/lib/components/form-group/form-fields/form-fields.component.mjs +0 -958
  468. package/esm2022/src/lib/components/form-group/form-fields/form-fields.module.mjs +0 -75
  469. package/esm2022/src/lib/components/form-group/form-fields/form-fields.service.mjs +0 -73
  470. package/esm2022/src/lib/components/form-group/form-group.component.mjs +0 -707
  471. package/esm2022/src/lib/components/form-group/form-group.module.mjs +0 -85
  472. package/esm2022/src/lib/components/form-group/form-group.service.mjs +0 -56
  473. package/esm2022/src/lib/components/form-group/index.mjs +0 -2
  474. package/esm2022/src/lib/components/form-group/public-api.mjs +0 -5
  475. package/esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs +0 -5
  476. package/esm2022/src/lib/components/form-response/form-response.component.mjs +0 -645
  477. package/esm2022/src/lib/components/form-response/form-response.module.mjs +0 -76
  478. package/esm2022/src/lib/components/form-response/form-response.service.mjs +0 -54
  479. package/esm2022/src/lib/components/form-response/index.mjs +0 -2
  480. package/esm2022/src/lib/components/form-response/public-api.mjs +0 -3
  481. package/esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs +0 -5
  482. package/esm2022/src/lib/components/form-timer/form-timer.component.mjs +0 -50
  483. package/esm2022/src/lib/components/form-timer/form-timer.module.mjs +0 -28
  484. package/esm2022/src/lib/components/form-timer/index.mjs +0 -2
  485. package/esm2022/src/lib/components/form-timer/public-api.mjs +0 -3
  486. package/esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs +0 -5
  487. package/esm2022/src/lib/components/forms/base-table-style.mjs +0 -53
  488. package/esm2022/src/lib/components/forms/forms.component.mjs +0 -673
  489. package/esm2022/src/lib/components/forms/forms.module.mjs +0 -18
  490. package/esm2022/src/lib/components/forms/forms.service.mjs +0 -68
  491. package/esm2022/src/lib/components/forms/index.mjs +0 -2
  492. package/esm2022/src/lib/components/forms/public-api.mjs +0 -3
  493. package/esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs +0 -5
  494. package/esm2022/src/lib/components/journal/index.mjs +0 -2
  495. package/esm2022/src/lib/components/journal/journal.component.mjs +0 -11
  496. package/esm2022/src/lib/components/journal/journal.module.mjs +0 -18
  497. package/esm2022/src/lib/components/journal/public-api.mjs +0 -3
  498. package/esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs +0 -5
  499. package/esm2022/src/lib/components/my-queue/index.mjs +0 -2
  500. package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +0 -29
  501. package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +0 -142
  502. package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +0 -469
  503. package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +0 -40
  504. package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +0 -138
  505. package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +0 -90
  506. package/esm2022/src/lib/components/my-queue/public-api.mjs +0 -4
  507. package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +0 -147
  508. package/esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs +0 -5
  509. package/esm2022/src/lib/components/operation-popup/index.mjs +0 -2
  510. package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +0 -353
  511. package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +0 -352
  512. package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +0 -71
  513. package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +0 -44
  514. package/esm2022/src/lib/components/operation-popup/public-api.mjs +0 -2
  515. package/esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs +0 -5
  516. package/esm2022/src/lib/components/stage-details/index.mjs +0 -2
  517. package/esm2022/src/lib/components/stage-details/public-api.mjs +0 -3
  518. package/esm2022/src/lib/components/stage-details/stage-details.component.mjs +0 -51
  519. package/esm2022/src/lib/components/stage-details/stage-details.module.mjs +0 -19
  520. package/esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs +0 -5
  521. package/esm2022/src/lib/components/task-form/index.mjs +0 -2
  522. package/esm2022/src/lib/components/task-form/public-api.mjs +0 -3
  523. package/esm2022/src/lib/components/task-form/task-form.component.mjs +0 -18
  524. package/esm2022/src/lib/components/task-form/task-form.module.mjs +0 -72
  525. package/esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs +0 -5
  526. package/esm2022/src/lib/components/task-history/index.mjs +0 -2
  527. package/esm2022/src/lib/components/task-history/public-api.mjs +0 -3
  528. package/esm2022/src/lib/components/task-history/task-history.component.mjs +0 -221
  529. package/esm2022/src/lib/components/task-history/task-history.module.mjs +0 -20
  530. package/esm2022/src/lib/components/task-history/task-history.service.mjs +0 -32
  531. package/esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs +0 -5
  532. package/esm2022/src/lib/components/task-notification/base-table-style.mjs +0 -53
  533. package/esm2022/src/lib/components/task-notification/index.mjs +0 -2
  534. package/esm2022/src/lib/components/task-notification/public-api.mjs +0 -3
  535. package/esm2022/src/lib/components/task-notification/task-notification.component.mjs +0 -670
  536. package/esm2022/src/lib/components/task-notification/task-notification.module.mjs +0 -18
  537. package/esm2022/src/lib/components/task-notification/task-notification.service.mjs +0 -256
  538. package/esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs +0 -5
  539. package/esm2022/src/lib/components/tasks/index.mjs +0 -2
  540. package/esm2022/src/lib/components/tasks/public-api.mjs +0 -6
  541. package/esm2022/src/lib/components/tasks/tasks.columns.mjs +0 -34
  542. package/esm2022/src/lib/components/tasks/tasks.component.mjs +0 -113
  543. package/esm2022/src/lib/components/tasks/tasks.facade.mjs +0 -355
  544. package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +0 -147
  545. package/esm2022/src/lib/components/tasks/tasks.models.mjs +0 -4
  546. package/esm2022/src/lib/components/tasks/tasks.module.mjs +0 -48
  547. package/esm2022/src/lib/components/tasks/tasks.service.mjs +0 -106
  548. package/esm2022/src/lib/components/tasks/tasks.state.mjs +0 -96
  549. package/esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs +0 -5
  550. package/esm2022/src/lib/components/wf/index.mjs +0 -2
  551. package/esm2022/src/lib/components/wf/public-api.mjs +0 -4
  552. package/esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs +0 -5
  553. package/esm2022/src/lib/components/wf/wf.columns.mjs +0 -34
  554. package/esm2022/src/lib/components/wf/wf.component.mjs +0 -69
  555. package/esm2022/src/lib/components/wf/wf.module.mjs +0 -22
  556. package/esm2022/src/lib/components/wf/wf.service.mjs +0 -82
  557. package/esm2022/src/lib/components/workflow/column.mjs +0 -38
  558. package/esm2022/src/lib/components/workflow/helper.mjs +0 -47
  559. package/esm2022/src/lib/components/workflow/index.mjs +0 -2
  560. package/esm2022/src/lib/components/workflow/public-api.mjs +0 -4
  561. package/esm2022/src/lib/components/workflow/table-style.mjs +0 -53
  562. package/esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs +0 -5
  563. package/esm2022/src/lib/components/workflow/workflow.component.mjs +0 -216
  564. package/esm2022/src/lib/components/workflow/workflow.module.mjs +0 -19
  565. package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +0 -119
  566. package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +0 -70
  567. package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +0 -76
  568. package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +0 -65
  569. package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +0 -1226
  570. package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +0 -83
  571. package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.mjs +0 -2
  572. package/esm2022/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.mjs +0 -238
  573. package/esm2022/src/lib/components/workflow-designer/index.mjs +0 -2
  574. package/esm2022/src/lib/components/workflow-designer/public-api.mjs +0 -5
  575. package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +0 -222
  576. package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +0 -300
  577. package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +0 -235
  578. package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +0 -145
  579. package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +0 -263
  580. package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +0 -175
  581. package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +0 -217
  582. package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +0 -131
  583. package/esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs +0 -5
  584. package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +0 -186
  585. package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +0 -408
  586. package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +0 -107
  587. package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +0 -759
  588. package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +0 -2
  589. package/esm2022/src/lib/components/workflows/index.mjs +0 -2
  590. package/esm2022/src/lib/components/workflows/public-api.mjs +0 -4
  591. package/esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs +0 -5
  592. package/esm2022/src/lib/components/workflows/workflow-form/workflow-form.component.mjs +0 -91
  593. package/esm2022/src/lib/components/workflows/workflows.columns.mjs +0 -34
  594. package/esm2022/src/lib/components/workflows/workflows.component.mjs +0 -190
  595. package/esm2022/src/lib/components/workflows/workflows.facade.mjs +0 -306
  596. package/esm2022/src/lib/components/workflows/workflows.helper.mjs +0 -21
  597. package/esm2022/src/lib/components/workflows/workflows.module.mjs +0 -21
  598. package/esm2022/src/lib/components/workflows/workflows.service.mjs +0 -122
  599. package/esm2022/src/lib/components/workflows/workflows.state.mjs +0 -92
  600. package/esm2022/src/lib/models/ActionHistory.mjs +0 -2
  601. package/esm2022/src/lib/models/ActionType.mjs +0 -11
  602. package/esm2022/src/lib/models/Actor.mjs +0 -2
  603. package/esm2022/src/lib/models/ActorTag.mjs +0 -2
  604. package/esm2022/src/lib/models/Coord.mjs +0 -2
  605. package/esm2022/src/lib/models/DataType.mjs +0 -27
  606. package/esm2022/src/lib/models/EAVEntity.mjs +0 -2
  607. package/esm2022/src/lib/models/ErrorResponse.mjs +0 -11
  608. package/esm2022/src/lib/models/Escalation.mjs +0 -2
  609. package/esm2022/src/lib/models/EscalationCycle.mjs +0 -2
  610. package/esm2022/src/lib/models/EscalationStage.mjs +0 -2
  611. package/esm2022/src/lib/models/EscalationType.mjs +0 -7
  612. package/esm2022/src/lib/models/File.mjs +0 -2
  613. package/esm2022/src/lib/models/FilterTypes.mjs +0 -9
  614. package/esm2022/src/lib/models/FlowableStatus.mjs +0 -2
  615. package/esm2022/src/lib/models/Form.mjs +0 -2
  616. package/esm2022/src/lib/models/FormEntity.mjs +0 -2
  617. package/esm2022/src/lib/models/FormFill.mjs +0 -6
  618. package/esm2022/src/lib/models/FormProperty.mjs +0 -2
  619. package/esm2022/src/lib/models/FormValues.mjs +0 -2
  620. package/esm2022/src/lib/models/MailConfig.mjs +0 -2
  621. package/esm2022/src/lib/models/MessageConfig.mjs +0 -2
  622. package/esm2022/src/lib/models/MessageMedium.mjs +0 -6
  623. package/esm2022/src/lib/models/OperationAction.mjs +0 -2
  624. package/esm2022/src/lib/models/PagedResult.mjs +0 -2
  625. package/esm2022/src/lib/models/PeriodMode.mjs +0 -12
  626. package/esm2022/src/lib/models/PermissionConfig.mjs +0 -2
  627. package/esm2022/src/lib/models/ReportSchedule.mjs +0 -2
  628. package/esm2022/src/lib/models/ReportType.mjs +0 -7
  629. package/esm2022/src/lib/models/Resource.mjs +0 -47
  630. package/esm2022/src/lib/models/ResponseKeyValue.mjs +0 -2
  631. package/esm2022/src/lib/models/SMSConfig.mjs +0 -2
  632. package/esm2022/src/lib/models/SearchDynamicWrapper.mjs +0 -2
  633. package/esm2022/src/lib/models/SearchOperator.mjs +0 -6
  634. package/esm2022/src/lib/models/SearchPropertySign.mjs +0 -11
  635. package/esm2022/src/lib/models/SearchPropertyValue.mjs +0 -2
  636. package/esm2022/src/lib/models/SearchPropertyValueType.mjs +0 -11
  637. package/esm2022/src/lib/models/Size.mjs +0 -2
  638. package/esm2022/src/lib/models/SortDirection.mjs +0 -7
  639. package/esm2022/src/lib/models/StageActorRule.mjs +0 -8
  640. package/esm2022/src/lib/models/SwimLane.mjs +0 -2
  641. package/esm2022/src/lib/models/Tag.mjs +0 -2
  642. package/esm2022/src/lib/models/Task.mjs +0 -2
  643. package/esm2022/src/lib/models/TaskAssignmentType.mjs +0 -6
  644. package/esm2022/src/lib/models/TaskNotification.mjs +0 -2
  645. package/esm2022/src/lib/models/TaskNotificationMessageType.mjs +0 -6
  646. package/esm2022/src/lib/models/TaskNotificationType.mjs +0 -8
  647. package/esm2022/src/lib/models/TaskStatus.mjs +0 -9
  648. package/esm2022/src/lib/models/Workflow.mjs +0 -2
  649. package/esm2022/src/lib/models/WorkflowAction.mjs +0 -2
  650. package/esm2022/src/lib/models/WorkflowOperation.mjs +0 -2
  651. package/esm2022/src/lib/models/WorkflowStage.mjs +0 -2
  652. package/esm2022/src/lib/models/actors.mjs +0 -2
  653. package/esm2022/src/lib/models/auth-mechanism.mjs +0 -8
  654. package/esm2022/src/lib/models/base.mjs +0 -2
  655. package/esm2022/src/lib/models/index.mjs +0 -2
  656. package/esm2022/src/lib/models/object-state.mjs +0 -8
  657. package/esm2022/src/lib/models/operation-type.mjs +0 -7
  658. package/esm2022/src/lib/models/paged.mjs +0 -2
  659. package/esm2022/src/lib/models/public-api.mjs +0 -64
  660. package/esm2022/src/lib/models/query-params.mjs +0 -2
  661. package/esm2022/src/lib/models/status.mjs +0 -6
  662. package/esm2022/src/lib/models/task-history.mjs +0 -2
  663. package/esm2022/src/lib/models/user-access-request-status.mjs +0 -7
  664. package/esm2022/src/lib/models/user.mjs +0 -2
  665. package/esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs +0 -5
  666. package/esm2022/src/lib/pipes/async-label.pipe.mjs +0 -25
  667. package/esm2022/src/lib/pipes/index.mjs +0 -2
  668. package/esm2022/src/lib/pipes/public-api.mjs +0 -2
  669. package/esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs +0 -5
  670. package/esm2022/src/lib/services/environment.service.mjs +0 -27
  671. package/esm2022/src/lib/services/http-web-request.service.mjs +0 -90
  672. package/esm2022/src/lib/services/index.mjs +0 -2
  673. package/esm2022/src/lib/services/label.service.mjs +0 -134
  674. package/esm2022/src/lib/services/public-api.mjs +0 -5
  675. package/esm2022/src/lib/services/util.service.mjs +0 -65
  676. package/esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs +0 -5
  677. package/esm2022/src/lib/shared/base-table-style.mjs +0 -55
  678. package/esm2022/src/lib/shared/components/base-data-view.component.mjs +0 -158
  679. package/esm2022/src/lib/shared/components/base-model-field.mjs +0 -21
  680. package/esm2022/src/lib/shared/index.mjs +0 -7
  681. package/esm2022/src/lib/shared/models/DataViewConfig.mjs +0 -2
  682. package/esm2022/src/lib/shared/public-api.mjs +0 -13
  683. package/esm2022/src/lib/shared/shared.module.mjs +0 -103
  684. package/esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs +0 -5
  685. package/esm2022/verben-workflow-ui.mjs +0 -5
  686. package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +0 -678
  687. package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +0 -1
  688. package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +0 -3892
  689. package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +0 -1
  690. package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs +0 -72
  691. package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs.map +0 -1
  692. package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs +0 -83
  693. package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs.map +0 -1
  694. package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs +0 -159
  695. package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs.map +0 -1
  696. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +0 -558
  697. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +0 -1
  698. package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs +0 -234
  699. package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs.map +0 -1
  700. package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +0 -1981
  701. package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +0 -1
  702. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +0 -773
  703. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +0 -1
  704. package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs +0 -81
  705. package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs.map +0 -1
  706. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +0 -812
  707. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +0 -1
  708. package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs +0 -33
  709. package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs.map +0 -1
  710. package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +0 -1034
  711. package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +0 -1
  712. package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +0 -812
  713. package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +0 -1
  714. package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs +0 -74
  715. package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs.map +0 -1
  716. package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs +0 -94
  717. package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs.map +0 -1
  718. package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +0 -273
  719. package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +0 -1
  720. package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs +0 -995
  721. package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs.map +0 -1
  722. package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +0 -878
  723. package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +0 -1
  724. package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +0 -204
  725. package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs.map +0 -1
  726. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +0 -4908
  727. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +0 -1
  728. package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +0 -371
  729. package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +0 -1
  730. package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +0 -854
  731. package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +0 -1
  732. package/fesm2022/verben-workflow-ui-src-lib-models.mjs +0 -255
  733. package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +0 -1
  734. package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs +0 -32
  735. package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs.map +0 -1
  736. package/fesm2022/verben-workflow-ui-src-lib-services.mjs +0 -311
  737. package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +0 -1
  738. package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +0 -340
  739. package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +0 -1
  740. package/fesm2022/verben-workflow-ui.mjs +0 -32
  741. package/fesm2022/verben-workflow-ui.mjs.map +0 -1
  742. package/index.d.ts +0 -5
  743. package/public-api.d.ts +0 -20
  744. package/src/lib/components/actors/actors.columns.d.ts +0 -3
  745. package/src/lib/components/actors/actors.component.d.ts +0 -31
  746. package/src/lib/components/actors/actors.facade.d.ts +0 -37
  747. package/src/lib/components/actors/actors.form.component.d.ts +0 -23
  748. package/src/lib/components/actors/actors.module.d.ts +0 -11
  749. package/src/lib/components/actors/actors.service.d.ts +0 -53
  750. package/src/lib/components/actors/actors.state.d.ts +0 -36
  751. package/src/lib/components/designer/components/label-editor.component.d.ts +0 -22
  752. package/src/lib/components/designer/components/node-selector.component.d.ts +0 -23
  753. package/src/lib/components/designer/components/swimlane-label.component.d.ts +0 -12
  754. package/src/lib/components/designer/components/swimlane-popup.component.d.ts +0 -18
  755. package/src/lib/components/designer/components/wf-canvas.component.d.ts +0 -37
  756. package/src/lib/components/designer/components/wf-designer.component.d.ts +0 -22
  757. package/src/lib/components/designer/components/wf-toolbar.component.d.ts +0 -17
  758. package/src/lib/components/designer/models/types.d.ts +0 -103
  759. package/src/lib/components/designer/services/canvas-state.service.d.ts +0 -24
  760. package/src/lib/components/designer/services/connection-segment-interaction.service.d.ts +0 -36
  761. package/src/lib/components/designer/services/connection.service.d.ts +0 -47
  762. package/src/lib/components/designer/services/keyboard-handler.service.d.ts +0 -9
  763. package/src/lib/components/designer/services/label-management.service.d.ts +0 -14
  764. package/src/lib/components/designer/services/node-finder.service.d.ts +0 -10
  765. package/src/lib/components/designer/services/node-interaction.service.d.ts +0 -19
  766. package/src/lib/components/designer/services/node-precondition.service.d.ts +0 -37
  767. package/src/lib/components/designer/services/node-selection.service.d.ts +0 -19
  768. package/src/lib/components/designer/services/orthogonal-router.service.d.ts +0 -36
  769. package/src/lib/components/designer/services/position-update.service.d.ts +0 -10
  770. package/src/lib/components/designer/services/rendering.service.d.ts +0 -67
  771. package/src/lib/components/designer/services/swimlane-management.service.d.ts +0 -19
  772. package/src/lib/components/designer/services/swimlane-stats.service.d.ts +0 -19
  773. package/src/lib/components/designer/services/viewport.service.d.ts +0 -10
  774. package/src/lib/components/designer/services/wf-facade.service.d.ts +0 -67
  775. package/src/lib/components/designer/services/wf-mapper.service.d.ts +0 -26
  776. package/src/lib/components/designer/services/wf-persistence.service.d.ts +0 -21
  777. package/src/lib/components/designer/services/wf-state.service.d.ts +0 -30
  778. package/src/lib/components/expiration/expiration.component.d.ts +0 -20
  779. package/src/lib/components/expiration/expiration.module.d.ts +0 -9
  780. package/src/lib/components/file-render/file-render.component.d.ts +0 -17
  781. package/src/lib/components/file-render/file-render.module.d.ts +0 -10
  782. package/src/lib/components/file-upload/file-upload.component.d.ts +0 -22
  783. package/src/lib/components/file-upload/file-upload.module.d.ts +0 -11
  784. package/src/lib/components/flowable-status/flowable-status.columns.d.ts +0 -3
  785. package/src/lib/components/flowable-status/flowable-status.component.d.ts +0 -34
  786. package/src/lib/components/flowable-status/flowable-status.facade.d.ts +0 -32
  787. package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +0 -18
  788. package/src/lib/components/flowable-status/flowable-status.module.d.ts +0 -11
  789. package/src/lib/components/flowable-status/flowable-status.service.d.ts +0 -35
  790. package/src/lib/components/flowable-status/flowable-status.state.d.ts +0 -30
  791. package/src/lib/components/flowable-status/public-api.d.ts +0 -2
  792. package/src/lib/components/form-control/form-control.component.d.ts +0 -38
  793. package/src/lib/components/form-control/form-control.module.d.ts +0 -11
  794. package/src/lib/components/form-group/base-table-style.d.ts +0 -1
  795. package/src/lib/components/form-group/form-fields/form-fields.component.d.ts +0 -136
  796. package/src/lib/components/form-group/form-fields/form-fields.module.d.ts +0 -11
  797. package/src/lib/components/form-group/form-fields/form-fields.service.d.ts +0 -9
  798. package/src/lib/components/form-group/form-group.component.d.ts +0 -108
  799. package/src/lib/components/form-group/form-group.module.d.ts +0 -15
  800. package/src/lib/components/form-group/form-group.service.d.ts +0 -9
  801. package/src/lib/components/form-response/form-response.component.d.ts +0 -108
  802. package/src/lib/components/form-response/form-response.module.d.ts +0 -12
  803. package/src/lib/components/form-response/form-response.service.d.ts +0 -9
  804. package/src/lib/components/form-timer/form-timer.component.d.ts +0 -13
  805. package/src/lib/components/form-timer/form-timer.module.d.ts +0 -9
  806. package/src/lib/components/forms/base-table-style.d.ts +0 -1
  807. package/src/lib/components/forms/forms.component.d.ts +0 -88
  808. package/src/lib/components/forms/forms.module.d.ts +0 -8
  809. package/src/lib/components/forms/forms.service.d.ts +0 -9
  810. package/src/lib/components/journal/journal.component.d.ts +0 -5
  811. package/src/lib/components/journal/journal.module.d.ts +0 -8
  812. package/src/lib/components/my-queue/my-queue.columns.d.ts +0 -3
  813. package/src/lib/components/my-queue/my-queue.component.d.ts +0 -26
  814. package/src/lib/components/my-queue/my-queue.facade.d.ts +0 -42
  815. package/src/lib/components/my-queue/my-queue.module.d.ts +0 -14
  816. package/src/lib/components/my-queue/my-queue.service.d.ts +0 -65
  817. package/src/lib/components/my-queue/my-queue.state.d.ts +0 -33
  818. package/src/lib/components/my-queue/tasks.form.component.d.ts +0 -36
  819. package/src/lib/components/operation-popup/operation-popup.component.d.ts +0 -57
  820. package/src/lib/components/operation-popup/operation-popup.facade.d.ts +0 -32
  821. package/src/lib/components/operation-popup/operation-popup.service.d.ts +0 -23
  822. package/src/lib/components/operation-popup/operation-popup.state.d.ts +0 -20
  823. package/src/lib/components/stage-details/stage-details.component.d.ts +0 -24
  824. package/src/lib/components/stage-details/stage-details.module.d.ts +0 -9
  825. package/src/lib/components/task-form/task-form.component.d.ts +0 -10
  826. package/src/lib/components/task-form/task-form.module.d.ts +0 -10
  827. package/src/lib/components/task-history/task-history.component.d.ts +0 -35
  828. package/src/lib/components/task-history/task-history.module.d.ts +0 -10
  829. package/src/lib/components/task-history/task-history.service.d.ts +0 -13
  830. package/src/lib/components/task-notification/base-table-style.d.ts +0 -1
  831. package/src/lib/components/task-notification/task-notification.component.d.ts +0 -89
  832. package/src/lib/components/task-notification/task-notification.module.d.ts +0 -8
  833. package/src/lib/components/task-notification/task-notification.service.d.ts +0 -32
  834. package/src/lib/components/tasks/tasks.columns.d.ts +0 -3
  835. package/src/lib/components/tasks/tasks.component.d.ts +0 -28
  836. package/src/lib/components/tasks/tasks.facade.d.ts +0 -40
  837. package/src/lib/components/tasks/tasks.form.component.d.ts +0 -36
  838. package/src/lib/components/tasks/tasks.models.d.ts +0 -4
  839. package/src/lib/components/tasks/tasks.module.d.ts +0 -16
  840. package/src/lib/components/tasks/tasks.service.d.ts +0 -57
  841. package/src/lib/components/tasks/tasks.state.d.ts +0 -35
  842. package/src/lib/components/wf/wf.columns.d.ts +0 -3
  843. package/src/lib/components/wf/wf.component.d.ts +0 -16
  844. package/src/lib/components/wf/wf.module.d.ts +0 -10
  845. package/src/lib/components/wf/wf.service.d.ts +0 -51
  846. package/src/lib/components/workflow/column.d.ts +0 -3
  847. package/src/lib/components/workflow/helper.d.ts +0 -2
  848. package/src/lib/components/workflow/table-style.d.ts +0 -1
  849. package/src/lib/components/workflow/workflow.component.d.ts +0 -57
  850. package/src/lib/components/workflow/workflow.module.d.ts +0 -9
  851. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +0 -30
  852. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +0 -24
  853. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +0 -34
  854. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +0 -26
  855. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +0 -188
  856. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +0 -33
  857. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.d.ts +0 -5
  858. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.d.ts +0 -42
  859. package/src/lib/components/workflow-designer/services/connection.service.d.ts +0 -85
  860. package/src/lib/components/workflow-designer/services/node-management.service.d.ts +0 -52
  861. package/src/lib/components/workflow-designer/services/popup.service.d.ts +0 -139
  862. package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +0 -51
  863. package/src/lib/components/workflow-designer/services/transformer.service.d.ts +0 -36
  864. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +0 -40
  865. package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +0 -54
  866. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +0 -45
  867. package/src/lib/components/workflow-designer/workflow-data.service.d.ts +0 -35
  868. package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +0 -47
  869. package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +0 -22
  870. package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +0 -99
  871. package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +0 -49
  872. package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +0 -28
  873. package/src/lib/components/workflows/workflows.columns.d.ts +0 -3
  874. package/src/lib/components/workflows/workflows.component.d.ts +0 -49
  875. package/src/lib/components/workflows/workflows.facade.d.ts +0 -38
  876. package/src/lib/components/workflows/workflows.helper.d.ts +0 -3
  877. package/src/lib/components/workflows/workflows.module.d.ts +0 -11
  878. package/src/lib/components/workflows/workflows.service.d.ts +0 -78
  879. package/src/lib/components/workflows/workflows.state.d.ts +0 -33
  880. package/src/lib/models/ActionHistory.d.ts +0 -14
  881. package/src/lib/models/ActionType.d.ts +0 -9
  882. package/src/lib/models/Actor.d.ts +0 -11
  883. package/src/lib/models/ActorTag.d.ts +0 -6
  884. package/src/lib/models/Coord.d.ts +0 -4
  885. package/src/lib/models/DataType.d.ts +0 -25
  886. package/src/lib/models/EAVEntity.d.ts +0 -4
  887. package/src/lib/models/ErrorResponse.d.ts +0 -6
  888. package/src/lib/models/Escalation.d.ts +0 -14
  889. package/src/lib/models/EscalationCycle.d.ts +0 -12
  890. package/src/lib/models/EscalationStage.d.ts +0 -10
  891. package/src/lib/models/EscalationType.d.ts +0 -5
  892. package/src/lib/models/File.d.ts +0 -7
  893. package/src/lib/models/FilterTypes.d.ts +0 -6
  894. package/src/lib/models/FlowableStatus.d.ts +0 -5
  895. package/src/lib/models/Form.d.ts +0 -13
  896. package/src/lib/models/FormEntity.d.ts +0 -13
  897. package/src/lib/models/FormFill.d.ts +0 -15
  898. package/src/lib/models/FormProperty.d.ts +0 -15
  899. package/src/lib/models/FormValues.d.ts +0 -14
  900. package/src/lib/models/MailConfig.d.ts +0 -12
  901. package/src/lib/models/MessageConfig.d.ts +0 -3
  902. package/src/lib/models/MessageMedium.d.ts +0 -4
  903. package/src/lib/models/OperationAction.d.ts +0 -14
  904. package/src/lib/models/PagedResult.d.ts +0 -5
  905. package/src/lib/models/PeriodMode.d.ts +0 -10
  906. package/src/lib/models/PermissionConfig.d.ts +0 -7
  907. package/src/lib/models/ReportSchedule.d.ts +0 -22
  908. package/src/lib/models/ReportType.d.ts +0 -5
  909. package/src/lib/models/Resource.d.ts +0 -20
  910. package/src/lib/models/ResponseKeyValue.d.ts +0 -5
  911. package/src/lib/models/SMSConfig.d.ts +0 -10
  912. package/src/lib/models/SearchDynamicWrapper.d.ts +0 -5
  913. package/src/lib/models/SearchOperator.d.ts +0 -4
  914. package/src/lib/models/SearchPropertySign.d.ts +0 -9
  915. package/src/lib/models/SearchPropertyValue.d.ts +0 -12
  916. package/src/lib/models/SearchPropertyValueType.d.ts +0 -9
  917. package/src/lib/models/Size.d.ts +0 -4
  918. package/src/lib/models/SortDirection.d.ts +0 -5
  919. package/src/lib/models/StageActorRule.d.ts +0 -6
  920. package/src/lib/models/SwimLane.d.ts +0 -13
  921. package/src/lib/models/Tag.d.ts +0 -6
  922. package/src/lib/models/Task.d.ts +0 -22
  923. package/src/lib/models/TaskAssignmentType.d.ts +0 -4
  924. package/src/lib/models/TaskNotification.d.ts +0 -14
  925. package/src/lib/models/TaskNotificationMessageType.d.ts +0 -4
  926. package/src/lib/models/TaskNotificationType.d.ts +0 -6
  927. package/src/lib/models/TaskStatus.d.ts +0 -7
  928. package/src/lib/models/Workflow.d.ts +0 -20
  929. package/src/lib/models/WorkflowAction.d.ts +0 -13
  930. package/src/lib/models/WorkflowOperation.d.ts +0 -6
  931. package/src/lib/models/WorkflowStage.d.ts +0 -26
  932. package/src/lib/models/actors.d.ts +0 -8
  933. package/src/lib/models/auth-mechanism.d.ts +0 -13
  934. package/src/lib/models/base.d.ts +0 -11
  935. package/src/lib/models/object-state.d.ts +0 -6
  936. package/src/lib/models/operation-type.d.ts +0 -5
  937. package/src/lib/models/paged.d.ts +0 -9
  938. package/src/lib/models/query-params.d.ts +0 -8
  939. package/src/lib/models/status.d.ts +0 -4
  940. package/src/lib/models/task-history.d.ts +0 -17
  941. package/src/lib/models/user-access-request-status.d.ts +0 -5
  942. package/src/lib/models/user.d.ts +0 -23
  943. package/src/lib/pipes/async-label.pipe.d.ts +0 -11
  944. package/src/lib/services/environment.service.d.ts +0 -23
  945. package/src/lib/services/http-web-request.service.d.ts +0 -23
  946. package/src/lib/services/label.service.d.ts +0 -15
  947. package/src/lib/services/public-api.d.ts +0 -4
  948. package/src/lib/services/util.service.d.ts +0 -12
  949. package/src/lib/shared/base-table-style.d.ts +0 -2
  950. package/src/lib/shared/components/base-data-view.component.d.ts +0 -41
  951. package/src/lib/shared/components/base-model-field.d.ts +0 -26
  952. package/src/lib/shared/models/DataViewConfig.d.ts +0 -11
  953. package/src/lib/shared/public-api.d.ts +0 -5
  954. package/src/lib/shared/shared.module.d.ts +0 -11
  955. /package/src/lib/components/actors/{index.d.ts → index.ts} +0 -0
  956. /package/src/lib/components/actors/{public-api.d.ts → public-api.ts} +0 -0
  957. /package/src/lib/components/designer/{index.d.ts → index.ts} +0 -0
  958. /package/src/lib/components/designer/{public-api.d.ts → public-api.ts} +0 -0
  959. /package/src/lib/components/expiration/{index.d.ts → index.ts} +0 -0
  960. /package/src/lib/components/expiration/{public-api.d.ts → public-api.ts} +0 -0
  961. /package/src/lib/components/file-render/{index.d.ts → index.ts} +0 -0
  962. /package/src/lib/components/file-render/{public-api.d.ts → public-api.ts} +0 -0
  963. /package/src/lib/components/file-upload/{index.d.ts → index.ts} +0 -0
  964. /package/src/lib/components/file-upload/{public-api.d.ts → public-api.ts} +0 -0
  965. /package/src/lib/components/flowable-status/{index.d.ts → index.ts} +0 -0
  966. /package/src/lib/components/form-control/{index.d.ts → index.ts} +0 -0
  967. /package/src/lib/components/form-control/{public-api.d.ts → public-api.ts} +0 -0
  968. /package/src/lib/components/form-group/{index.d.ts → index.ts} +0 -0
  969. /package/src/lib/components/form-group/{public-api.d.ts → public-api.ts} +0 -0
  970. /package/src/lib/components/form-response/{index.d.ts → index.ts} +0 -0
  971. /package/src/lib/components/form-response/{public-api.d.ts → public-api.ts} +0 -0
  972. /package/src/lib/components/form-timer/{index.d.ts → index.ts} +0 -0
  973. /package/src/lib/components/form-timer/{public-api.d.ts → public-api.ts} +0 -0
  974. /package/src/lib/components/forms/{index.d.ts → index.ts} +0 -0
  975. /package/src/lib/components/forms/{public-api.d.ts → public-api.ts} +0 -0
  976. /package/src/lib/components/journal/{index.d.ts → index.ts} +0 -0
  977. /package/src/lib/components/journal/{public-api.d.ts → public-api.ts} +0 -0
  978. /package/src/lib/components/my-queue/{index.d.ts → index.ts} +0 -0
  979. /package/src/lib/components/my-queue/{public-api.d.ts → public-api.ts} +0 -0
  980. /package/src/lib/components/operation-popup/{index.d.ts → index.ts} +0 -0
  981. /package/src/lib/components/operation-popup/{public-api.d.ts → public-api.ts} +0 -0
  982. /package/src/lib/components/stage-details/{index.d.ts → index.ts} +0 -0
  983. /package/src/lib/components/stage-details/{public-api.d.ts → public-api.ts} +0 -0
  984. /package/src/lib/components/task-form/{index.d.ts → index.ts} +0 -0
  985. /package/src/lib/components/task-form/{public-api.d.ts → public-api.ts} +0 -0
  986. /package/src/lib/components/task-history/{index.d.ts → index.ts} +0 -0
  987. /package/src/lib/components/task-history/{public-api.d.ts → public-api.ts} +0 -0
  988. /package/src/lib/components/task-notification/{index.d.ts → index.ts} +0 -0
  989. /package/src/lib/components/task-notification/{public-api.d.ts → public-api.ts} +0 -0
  990. /package/src/lib/components/tasks/{index.d.ts → index.ts} +0 -0
  991. /package/src/lib/components/tasks/{public-api.d.ts → public-api.ts} +0 -0
  992. /package/src/lib/components/wf/{index.d.ts → index.ts} +0 -0
  993. /package/src/lib/components/wf/{public-api.d.ts → public-api.ts} +0 -0
  994. /package/src/lib/components/workflow/{index.d.ts → index.ts} +0 -0
  995. /package/src/lib/components/workflow/{public-api.d.ts → public-api.ts} +0 -0
  996. /package/src/lib/components/workflow-designer/{index.d.ts → index.ts} +0 -0
  997. /package/src/lib/components/workflow-designer/{public-api.d.ts → public-api.ts} +0 -0
  998. /package/src/lib/components/workflows/{index.d.ts → index.ts} +0 -0
  999. /package/src/lib/components/workflows/{public-api.d.ts → public-api.ts} +0 -0
  1000. /package/src/lib/models/{index.d.ts → index.ts} +0 -0
  1001. /package/src/lib/models/{public-api.d.ts → public-api.ts} +0 -0
  1002. /package/src/lib/pipes/{index.d.ts → index.ts} +0 -0
  1003. /package/src/lib/pipes/{public-api.d.ts → public-api.ts} +0 -0
  1004. /package/src/lib/services/{index.d.ts → index.ts} +0 -0
  1005. /package/src/lib/shared/{index.d.ts → index.ts} +0 -0
  1006. /package/{styles → src/styles}/styles.css +0 -0
@@ -0,0 +1,1620 @@
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
+ }