verben-workflow-ui 0.6.6 → 0.6.7

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 (1121) hide show
  1. package/esm2022/public-api.mjs +43 -0
  2. package/esm2022/src/lib/base/core/base-data-page.facade.mjs +412 -0
  3. package/esm2022/src/lib/base/core/base-data-page.service.mjs +140 -0
  4. package/esm2022/src/lib/base/core/base-data-page.state.mjs +216 -0
  5. package/esm2022/src/lib/base/handlers/filter-handler.service.mjs +138 -0
  6. package/esm2022/src/lib/base/handlers/search-handler.service.mjs +31 -0
  7. package/esm2022/src/lib/base/handlers/sort-handler.service.mjs +73 -0
  8. package/esm2022/src/lib/base/index.mjs +2 -0
  9. package/esm2022/src/lib/base/models/api-payload.mjs +7 -0
  10. package/esm2022/src/lib/base/models/page-config.interface.mjs +2 -0
  11. package/esm2022/src/lib/base/models/page-filter-tab-option.interface.mjs +2 -0
  12. package/esm2022/src/lib/base/public-api.mjs +14 -0
  13. package/esm2022/src/lib/base/utils/column-helpers.mjs +55 -0
  14. package/esm2022/src/lib/base/verben-workflow-ui-src-lib-base.mjs +5 -0
  15. package/esm2022/src/lib/components/actors/actors.columns.mjs +39 -0
  16. package/esm2022/src/lib/components/actors/actors.component.mjs +175 -0
  17. package/esm2022/src/lib/components/actors/actors.config.mjs +49 -0
  18. package/esm2022/src/lib/components/actors/actors.facade.mjs +57 -0
  19. package/esm2022/src/lib/components/actors/actors.form.component.mjs +74 -0
  20. package/esm2022/src/lib/components/actors/actors.module.mjs +21 -0
  21. package/esm2022/src/lib/components/actors/actors.service.mjs +65 -0
  22. package/esm2022/src/lib/components/actors/actors.state.mjs +31 -0
  23. package/esm2022/src/lib/components/actors/index.mjs +2 -0
  24. package/esm2022/src/lib/components/actors/public-api.mjs +3 -0
  25. package/esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs +5 -0
  26. package/esm2022/src/lib/components/designer/components/label-editor.component.mjs +148 -0
  27. package/esm2022/src/lib/components/designer/components/node-selector.component.mjs +317 -0
  28. package/esm2022/src/lib/components/designer/components/swimlane-label.component.mjs +161 -0
  29. package/esm2022/src/lib/components/designer/components/swimlane-popup.component.mjs +85 -0
  30. package/esm2022/src/lib/components/designer/components/wf-canvas.component.mjs +715 -0
  31. package/esm2022/src/lib/components/designer/components/wf-designer.component.mjs +135 -0
  32. package/esm2022/src/lib/components/designer/components/wf-toolbar.component.mjs +56 -0
  33. package/esm2022/src/lib/components/designer/index.mjs +2 -0
  34. package/esm2022/src/lib/components/designer/models/types.mjs +2 -0
  35. package/esm2022/src/lib/components/designer/public-api.mjs +3 -0
  36. package/esm2022/src/lib/components/designer/services/canvas-state.service.mjs +50 -0
  37. package/esm2022/src/lib/components/designer/services/connection-segment-interaction.service.mjs +108 -0
  38. package/esm2022/src/lib/components/designer/services/connection.service.mjs +267 -0
  39. package/esm2022/src/lib/components/designer/services/keyboard-handler.service.mjs +43 -0
  40. package/esm2022/src/lib/components/designer/services/label-management.service.mjs +66 -0
  41. package/esm2022/src/lib/components/designer/services/node-finder.service.mjs +30 -0
  42. package/esm2022/src/lib/components/designer/services/node-interaction.service.mjs +108 -0
  43. package/esm2022/src/lib/components/designer/services/node-precondition.service.mjs +108 -0
  44. package/esm2022/src/lib/components/designer/services/node-selection.service.mjs +96 -0
  45. package/esm2022/src/lib/components/designer/services/orthogonal-router.service.mjs +167 -0
  46. package/esm2022/src/lib/components/designer/services/position-update.service.mjs +45 -0
  47. package/esm2022/src/lib/components/designer/services/rendering.service.mjs +236 -0
  48. package/esm2022/src/lib/components/designer/services/swimlane-management.service.mjs +145 -0
  49. package/esm2022/src/lib/components/designer/services/swimlane-stats.service.mjs +44 -0
  50. package/esm2022/src/lib/components/designer/services/viewport.service.mjs +30 -0
  51. package/esm2022/src/lib/components/designer/services/wf-facade.service.mjs +239 -0
  52. package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +326 -0
  53. package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +169 -0
  54. package/esm2022/src/lib/components/designer/services/wf-state.service.mjs +108 -0
  55. package/esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs +5 -0
  56. package/esm2022/src/lib/components/expiration/expiration.component.mjs +49 -0
  57. package/esm2022/src/lib/components/expiration/expiration.module.mjs +19 -0
  58. package/esm2022/src/lib/components/expiration/index.mjs +2 -0
  59. package/esm2022/src/lib/components/expiration/public-api.mjs +3 -0
  60. package/esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs +5 -0
  61. package/esm2022/src/lib/components/file-render/file-render.component.mjs +45 -0
  62. package/esm2022/src/lib/components/file-render/file-render.module.mjs +35 -0
  63. package/esm2022/src/lib/components/file-render/index.mjs +2 -0
  64. package/esm2022/src/lib/components/file-render/public-api.mjs +3 -0
  65. package/esm2022/src/lib/components/file-render/verben-workflow-ui-src-lib-components-file-render.mjs +5 -0
  66. package/esm2022/src/lib/components/file-upload/file-upload.component.mjs +93 -0
  67. package/esm2022/src/lib/components/file-upload/file-upload.module.mjs +63 -0
  68. package/esm2022/src/lib/components/file-upload/index.mjs +2 -0
  69. package/esm2022/src/lib/components/file-upload/public-api.mjs +3 -0
  70. package/esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs +5 -0
  71. package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +21 -0
  72. package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +203 -0
  73. package/esm2022/src/lib/components/flowable-status/flowable-status.config.mjs +47 -0
  74. package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +60 -0
  75. package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +52 -0
  76. package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +21 -0
  77. package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +35 -0
  78. package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +15 -0
  79. package/esm2022/src/lib/components/flowable-status/index.mjs +2 -0
  80. package/esm2022/src/lib/components/flowable-status/public-api.mjs +3 -0
  81. package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +5 -0
  82. package/esm2022/src/lib/components/form-control/form-control.component.mjs +180 -0
  83. package/esm2022/src/lib/components/form-control/form-control.module.mjs +75 -0
  84. package/esm2022/src/lib/components/form-control/index.mjs +2 -0
  85. package/esm2022/src/lib/components/form-control/public-api.mjs +3 -0
  86. package/esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs +5 -0
  87. package/esm2022/src/lib/components/form-group/base-table-style.mjs +53 -0
  88. package/esm2022/src/lib/components/form-group/form-fields/form-fields.component.mjs +952 -0
  89. package/esm2022/src/lib/components/form-group/form-fields/form-fields.module.mjs +75 -0
  90. package/esm2022/src/lib/components/form-group/form-fields/form-fields.service.mjs +73 -0
  91. package/esm2022/src/lib/components/form-group/form-group.component.mjs +698 -0
  92. package/esm2022/src/lib/components/form-group/form-group.module.mjs +85 -0
  93. package/esm2022/src/lib/components/form-group/form-group.service.mjs +56 -0
  94. package/esm2022/src/lib/components/form-group/index.mjs +2 -0
  95. package/esm2022/src/lib/components/form-group/public-api.mjs +5 -0
  96. package/esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs +5 -0
  97. package/esm2022/src/lib/components/form-response/form-response.component.mjs +638 -0
  98. package/esm2022/src/lib/components/form-response/form-response.module.mjs +76 -0
  99. package/esm2022/src/lib/components/form-response/form-response.service.mjs +54 -0
  100. package/esm2022/src/lib/components/form-response/index.mjs +2 -0
  101. package/esm2022/src/lib/components/form-response/public-api.mjs +3 -0
  102. package/esm2022/src/lib/components/form-response/verben-workflow-ui-src-lib-components-form-response.mjs +5 -0
  103. package/esm2022/src/lib/components/form-timer/form-timer.component.mjs +47 -0
  104. package/esm2022/src/lib/components/form-timer/form-timer.module.mjs +28 -0
  105. package/esm2022/src/lib/components/form-timer/index.mjs +2 -0
  106. package/esm2022/src/lib/components/form-timer/public-api.mjs +3 -0
  107. package/esm2022/src/lib/components/form-timer/verben-workflow-ui-src-lib-components-form-timer.mjs +5 -0
  108. package/esm2022/src/lib/components/form-values/form-values.component.mjs +1157 -0
  109. package/esm2022/src/lib/components/form-values/form-values.module.mjs +20 -0
  110. package/esm2022/src/lib/components/form-values/form-values.service.mjs +48 -0
  111. package/esm2022/src/lib/components/form-values/index.mjs +2 -0
  112. package/esm2022/src/lib/components/form-values/public-api.mjs +4 -0
  113. package/esm2022/src/lib/components/form-values/verben-workflow-ui-src-lib-components-form-values.mjs +5 -0
  114. package/esm2022/src/lib/components/form-viewer/form-viewer.component.mjs +38 -0
  115. package/esm2022/src/lib/components/form-viewer/form-viewer.module.mjs +78 -0
  116. package/esm2022/src/lib/components/form-viewer/index.mjs +2 -0
  117. package/esm2022/src/lib/components/form-viewer/public-api.mjs +3 -0
  118. package/esm2022/src/lib/components/form-viewer/verben-workflow-ui-src-lib-components-form-viewer.mjs +5 -0
  119. package/esm2022/src/lib/components/forms/base-table-style.mjs +53 -0
  120. package/esm2022/src/lib/components/forms/forms.component.mjs +673 -0
  121. package/esm2022/src/lib/components/forms/forms.module.mjs +18 -0
  122. package/esm2022/src/lib/components/forms/forms.service.mjs +68 -0
  123. package/esm2022/src/lib/components/forms/index.mjs +2 -0
  124. package/esm2022/src/lib/components/forms/public-api.mjs +3 -0
  125. package/esm2022/src/lib/components/forms/verben-workflow-ui-src-lib-components-forms.mjs +5 -0
  126. package/esm2022/src/lib/components/journal/index.mjs +2 -0
  127. package/esm2022/src/lib/components/journal/journal.component.mjs +11 -0
  128. package/esm2022/src/lib/components/journal/journal.module.mjs +18 -0
  129. package/esm2022/src/lib/components/journal/public-api.mjs +3 -0
  130. package/esm2022/src/lib/components/journal/verben-workflow-ui-src-lib-components-journal.mjs +5 -0
  131. package/esm2022/src/lib/components/my-queue/index.mjs +2 -0
  132. package/esm2022/src/lib/components/my-queue/my-queue.columns.mjs +34 -0
  133. package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +342 -0
  134. package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +502 -0
  135. package/esm2022/src/lib/components/my-queue/my-queue.module.mjs +47 -0
  136. package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +144 -0
  137. package/esm2022/src/lib/components/my-queue/my-queue.state.mjs +108 -0
  138. package/esm2022/src/lib/components/my-queue/public-api.mjs +4 -0
  139. package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +191 -0
  140. package/esm2022/src/lib/components/my-queue/verben-workflow-ui-src-lib-components-my-queue.mjs +5 -0
  141. package/esm2022/src/lib/components/operation-popup/index.mjs +2 -0
  142. package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +382 -0
  143. package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +345 -0
  144. package/esm2022/src/lib/components/operation-popup/operation-popup.service.mjs +82 -0
  145. package/esm2022/src/lib/components/operation-popup/operation-popup.state.mjs +44 -0
  146. package/esm2022/src/lib/components/operation-popup/public-api.mjs +3 -0
  147. package/esm2022/src/lib/components/operation-popup/verben-workflow-ui-src-lib-components-operation-popup.mjs +5 -0
  148. package/esm2022/src/lib/components/stage-details/index.mjs +2 -0
  149. package/esm2022/src/lib/components/stage-details/public-api.mjs +3 -0
  150. package/esm2022/src/lib/components/stage-details/stage-details.component.mjs +49 -0
  151. package/esm2022/src/lib/components/stage-details/stage-details.module.mjs +19 -0
  152. package/esm2022/src/lib/components/stage-details/verben-workflow-ui-src-lib-components-stage-details.mjs +5 -0
  153. package/esm2022/src/lib/components/task-form/index.mjs +2 -0
  154. package/esm2022/src/lib/components/task-form/public-api.mjs +3 -0
  155. package/esm2022/src/lib/components/task-form/task-form.component.mjs +18 -0
  156. package/esm2022/src/lib/components/task-form/task-form.module.mjs +72 -0
  157. package/esm2022/src/lib/components/task-form/verben-workflow-ui-src-lib-components-task-form.mjs +5 -0
  158. package/esm2022/src/lib/components/task-history/index.mjs +2 -0
  159. package/esm2022/src/lib/components/task-history/public-api.mjs +3 -0
  160. package/esm2022/src/lib/components/task-history/task-history.component.mjs +249 -0
  161. package/esm2022/src/lib/components/task-history/task-history.module.mjs +21 -0
  162. package/esm2022/src/lib/components/task-history/task-history.service.mjs +32 -0
  163. package/esm2022/src/lib/components/task-history/verben-workflow-ui-src-lib-components-task-history.mjs +5 -0
  164. package/esm2022/src/lib/components/task-notification/base-table-style.mjs +53 -0
  165. package/esm2022/src/lib/components/task-notification/index.mjs +2 -0
  166. package/esm2022/src/lib/components/task-notification/public-api.mjs +3 -0
  167. package/esm2022/src/lib/components/task-notification/task-notification.component.mjs +670 -0
  168. package/esm2022/src/lib/components/task-notification/task-notification.module.mjs +18 -0
  169. package/esm2022/src/lib/components/task-notification/task-notification.service.mjs +256 -0
  170. package/esm2022/src/lib/components/task-notification/verben-workflow-ui-src-lib-components-task-notification.mjs +5 -0
  171. package/esm2022/src/lib/components/tasks/index.mjs +2 -0
  172. package/esm2022/src/lib/components/tasks/public-api.mjs +6 -0
  173. package/esm2022/src/lib/components/tasks/tasks.columns.mjs +48 -0
  174. package/esm2022/src/lib/components/tasks/tasks.component.mjs +194 -0
  175. package/esm2022/src/lib/components/tasks/tasks.facade.mjs +372 -0
  176. package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +164 -0
  177. package/esm2022/src/lib/components/tasks/tasks.models.mjs +4 -0
  178. package/esm2022/src/lib/components/tasks/tasks.module.mjs +52 -0
  179. package/esm2022/src/lib/components/tasks/tasks.service.mjs +137 -0
  180. package/esm2022/src/lib/components/tasks/tasks.state.mjs +108 -0
  181. package/esm2022/src/lib/components/tasks/verben-workflow-ui-src-lib-components-tasks.mjs +5 -0
  182. package/esm2022/src/lib/components/wf/index.mjs +2 -0
  183. package/esm2022/src/lib/components/wf/public-api.mjs +4 -0
  184. package/esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs +5 -0
  185. package/esm2022/src/lib/components/wf/wf.columns.mjs +34 -0
  186. package/esm2022/src/lib/components/wf/wf.component.mjs +68 -0
  187. package/esm2022/src/lib/components/wf/wf.module.mjs +22 -0
  188. package/esm2022/src/lib/components/wf/wf.service.mjs +82 -0
  189. package/esm2022/src/lib/components/workflow/column.mjs +38 -0
  190. package/esm2022/src/lib/components/workflow/helper.mjs +47 -0
  191. package/esm2022/src/lib/components/workflow/index.mjs +2 -0
  192. package/esm2022/src/lib/components/workflow/public-api.mjs +4 -0
  193. package/esm2022/src/lib/components/workflow/table-style.mjs +53 -0
  194. package/esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs +5 -0
  195. package/esm2022/src/lib/components/workflow/workflow.component.mjs +210 -0
  196. package/esm2022/src/lib/components/workflow/workflow.module.mjs +19 -0
  197. package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +127 -0
  198. package/esm2022/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.mjs +78 -0
  199. package/esm2022/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.mjs +87 -0
  200. package/esm2022/src/lib/components/workflow-designer/decision-popup/decision-popup.component.mjs +84 -0
  201. package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +1270 -0
  202. package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.mjs +96 -0
  203. package/esm2022/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.mjs +2 -0
  204. package/esm2022/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.mjs +260 -0
  205. package/esm2022/src/lib/components/workflow-designer/index.mjs +2 -0
  206. package/esm2022/src/lib/components/workflow-designer/public-api.mjs +5 -0
  207. package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +238 -0
  208. package/esm2022/src/lib/components/workflow-designer/services/node-management.service.mjs +321 -0
  209. package/esm2022/src/lib/components/workflow-designer/services/popup.service.mjs +240 -0
  210. package/esm2022/src/lib/components/workflow-designer/services/swimlane.service.mjs +158 -0
  211. package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +280 -0
  212. package/esm2022/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.mjs +177 -0
  213. package/esm2022/src/lib/components/workflow-designer/stage-node/stage-node.component.mjs +226 -0
  214. package/esm2022/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.mjs +137 -0
  215. package/esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5 -0
  216. package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +210 -0
  217. package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +460 -0
  218. package/esm2022/src/lib/components/workflow-designer/workflow-designer.module.mjs +129 -0
  219. package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +928 -0
  220. package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +2 -0
  221. package/esm2022/src/lib/components/workflow-stage/index.mjs +2 -0
  222. package/esm2022/src/lib/components/workflow-stage/public-api.mjs +3 -0
  223. package/esm2022/src/lib/components/workflow-stage/verben-workflow-ui-src-lib-components-workflow-stage.mjs +5 -0
  224. package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +331 -0
  225. package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +82 -0
  226. package/esm2022/src/lib/components/workflows/index.mjs +2 -0
  227. package/esm2022/src/lib/components/workflows/public-api.mjs +7 -0
  228. package/esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs +5 -0
  229. package/esm2022/src/lib/components/workflows/workflow-form/workflow-form.component.mjs +89 -0
  230. package/esm2022/src/lib/components/workflows/workflows.api.mjs +63 -0
  231. package/esm2022/src/lib/components/workflows/workflows.columns.mjs +39 -0
  232. package/esm2022/src/lib/components/workflows/workflows.component.mjs +236 -0
  233. package/esm2022/src/lib/components/workflows/workflows.config.mjs +51 -0
  234. package/esm2022/src/lib/components/workflows/workflows.facade.mjs +114 -0
  235. package/esm2022/src/lib/components/workflows/workflows.module.mjs +21 -0
  236. package/esm2022/src/lib/components/workflows/workflows.service.mjs +63 -0
  237. package/esm2022/src/lib/components/workflows/workflows.state.mjs +23 -0
  238. package/esm2022/src/lib/models/ActionHistory.mjs +2 -0
  239. package/esm2022/src/lib/models/ActionType.mjs +11 -0
  240. package/esm2022/src/lib/models/Actor.mjs +2 -0
  241. package/esm2022/src/lib/models/ActorTag.mjs +2 -0
  242. package/esm2022/src/lib/models/Coord.mjs +2 -0
  243. package/esm2022/src/lib/models/DataExtensionValue.mjs +2 -0
  244. package/esm2022/src/lib/models/DataType.mjs +27 -0
  245. package/esm2022/src/lib/models/EAVDataType.mjs +20 -0
  246. package/esm2022/src/lib/models/EAVEntity.mjs +2 -0
  247. package/esm2022/src/lib/models/EntityDataValue.mjs +2 -0
  248. package/esm2022/src/lib/models/EntityProperty.mjs +2 -0
  249. package/esm2022/src/lib/models/ErrorResponse.mjs +11 -0
  250. package/esm2022/src/lib/models/Escalation.mjs +2 -0
  251. package/esm2022/src/lib/models/EscalationCycle.mjs +2 -0
  252. package/esm2022/src/lib/models/EscalationStage.mjs +2 -0
  253. package/esm2022/src/lib/models/EscalationType.mjs +7 -0
  254. package/esm2022/src/lib/models/File.mjs +2 -0
  255. package/esm2022/src/lib/models/FilterTypes.mjs +9 -0
  256. package/esm2022/src/lib/models/FlowableStatus.mjs +2 -0
  257. package/esm2022/src/lib/models/Form.mjs +2 -0
  258. package/esm2022/src/lib/models/FormEntity.mjs +2 -0
  259. package/esm2022/src/lib/models/FormFill.mjs +6 -0
  260. package/esm2022/src/lib/models/FormProperty.mjs +2 -0
  261. package/esm2022/src/lib/models/FormValue.mjs +6 -0
  262. package/esm2022/src/lib/models/MailConfig.mjs +2 -0
  263. package/esm2022/src/lib/models/MessageConfig.mjs +2 -0
  264. package/esm2022/src/lib/models/MessageMedium.mjs +6 -0
  265. package/esm2022/src/lib/models/OperationAction.mjs +2 -0
  266. package/esm2022/src/lib/models/PagedResult.mjs +2 -0
  267. package/esm2022/src/lib/models/PeriodMode.mjs +12 -0
  268. package/esm2022/src/lib/models/PermissionConfig.mjs +2 -0
  269. package/esm2022/src/lib/models/Property.mjs +2 -0
  270. package/esm2022/src/lib/models/ReportSchedule.mjs +2 -0
  271. package/esm2022/src/lib/models/ReportType.mjs +7 -0
  272. package/esm2022/src/lib/models/Resource.mjs +47 -0
  273. package/esm2022/src/lib/models/ResponseKeyValue.mjs +2 -0
  274. package/esm2022/src/lib/models/SMSConfig.mjs +2 -0
  275. package/esm2022/src/lib/models/SearchDynamicWrapper.mjs +2 -0
  276. package/esm2022/src/lib/models/SearchOperator.mjs +6 -0
  277. package/esm2022/src/lib/models/SearchPropertySign.mjs +11 -0
  278. package/esm2022/src/lib/models/SearchPropertyValue.mjs +2 -0
  279. package/esm2022/src/lib/models/SearchPropertyValueType.mjs +11 -0
  280. package/esm2022/src/lib/models/Size.mjs +2 -0
  281. package/esm2022/src/lib/models/SortDirection.mjs +7 -0
  282. package/esm2022/src/lib/models/StageActorRule.mjs +8 -0
  283. package/esm2022/src/lib/models/SwimLane.mjs +2 -0
  284. package/esm2022/src/lib/models/Tag.mjs +2 -0
  285. package/esm2022/src/lib/models/Task.mjs +2 -0
  286. package/esm2022/src/lib/models/TaskAssignmentType.mjs +6 -0
  287. package/esm2022/src/lib/models/TaskNotification.mjs +2 -0
  288. package/esm2022/src/lib/models/TaskNotificationMessageType.mjs +6 -0
  289. package/esm2022/src/lib/models/TaskNotificationType.mjs +9 -0
  290. package/esm2022/src/lib/models/TaskStatus.mjs +9 -0
  291. package/esm2022/src/lib/models/Workflow.mjs +2 -0
  292. package/esm2022/src/lib/models/WorkflowAction.mjs +2 -0
  293. package/esm2022/src/lib/models/WorkflowOperation.mjs +2 -0
  294. package/esm2022/src/lib/models/WorkflowStage.mjs +2 -0
  295. package/esm2022/src/lib/models/actors.mjs +2 -0
  296. package/esm2022/src/lib/models/auth-mechanism.mjs +8 -0
  297. package/esm2022/src/lib/models/base.mjs +2 -0
  298. package/esm2022/src/lib/models/index.mjs +2 -0
  299. package/esm2022/src/lib/models/object-state.mjs +8 -0
  300. package/esm2022/src/lib/models/operation-type.mjs +7 -0
  301. package/esm2022/src/lib/models/paged.mjs +2 -0
  302. package/esm2022/src/lib/models/public-api.mjs +66 -0
  303. package/esm2022/src/lib/models/query-params.mjs +2 -0
  304. package/esm2022/src/lib/models/status.mjs +6 -0
  305. package/esm2022/src/lib/models/task-history.mjs +2 -0
  306. package/esm2022/src/lib/models/user-access-request-status.mjs +7 -0
  307. package/esm2022/src/lib/models/user.mjs +2 -0
  308. package/esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs +5 -0
  309. package/esm2022/src/lib/pipes/async-label.pipe.mjs +25 -0
  310. package/esm2022/src/lib/pipes/index.mjs +2 -0
  311. package/esm2022/src/lib/pipes/public-api.mjs +2 -0
  312. package/esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs +5 -0
  313. package/esm2022/src/lib/services/environment.service.mjs +26 -0
  314. package/esm2022/src/lib/services/http-web-request.service.mjs +92 -0
  315. package/esm2022/src/lib/services/index.mjs +2 -0
  316. package/esm2022/src/lib/services/label.service.mjs +134 -0
  317. package/esm2022/src/lib/services/public-api.mjs +5 -0
  318. package/esm2022/src/lib/services/util.service.mjs +75 -0
  319. package/esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs +5 -0
  320. package/esm2022/src/lib/shared/base-table-style.mjs +55 -0
  321. package/esm2022/src/lib/shared/components/base-data-view.component.mjs +154 -0
  322. package/esm2022/src/lib/shared/components/base-model-field.mjs +21 -0
  323. package/esm2022/src/lib/shared/index.mjs +7 -0
  324. package/esm2022/src/lib/shared/models/DataViewConfig.mjs +2 -0
  325. package/esm2022/src/lib/shared/public-api.mjs +13 -0
  326. package/esm2022/src/lib/shared/shared.module.mjs +103 -0
  327. package/esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs +5 -0
  328. package/esm2022/verben-workflow-ui.mjs +5 -0
  329. package/fesm2022/verben-workflow-ui-src-lib-base.mjs +1055 -0
  330. package/fesm2022/verben-workflow-ui-src-lib-base.mjs.map +1 -0
  331. package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +484 -0
  332. package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +1 -0
  333. package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +3891 -0
  334. package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -0
  335. package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs +72 -0
  336. package/fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs.map +1 -0
  337. package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs +83 -0
  338. package/fesm2022/verben-workflow-ui-src-lib-components-file-render.mjs.map +1 -0
  339. package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs +159 -0
  340. package/fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs.map +1 -0
  341. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +430 -0
  342. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +1 -0
  343. package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs +257 -0
  344. package/fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs.map +1 -0
  345. package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs +1966 -0
  346. package/fesm2022/verben-workflow-ui-src-lib-components-form-group.mjs.map +1 -0
  347. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +766 -0
  348. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -0
  349. package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs +78 -0
  350. package/fesm2022/verben-workflow-ui-src-lib-components-form-timer.mjs.map +1 -0
  351. package/fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs +1226 -0
  352. package/fesm2022/verben-workflow-ui-src-lib-components-form-values.mjs.map +1 -0
  353. package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs +118 -0
  354. package/fesm2022/verben-workflow-ui-src-lib-components-form-viewer.mjs.map +1 -0
  355. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +812 -0
  356. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -0
  357. package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs +33 -0
  358. package/fesm2022/verben-workflow-ui-src-lib-components-journal.mjs.map +1 -0
  359. package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +1338 -0
  360. package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -0
  361. package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +845 -0
  362. package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -0
  363. package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs +72 -0
  364. package/fesm2022/verben-workflow-ui-src-lib-components-stage-details.mjs.map +1 -0
  365. package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs +94 -0
  366. package/fesm2022/verben-workflow-ui-src-lib-components-task-form.mjs.map +1 -0
  367. package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +302 -0
  368. package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -0
  369. package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs +995 -0
  370. package/fesm2022/verben-workflow-ui-src-lib-components-task-notification.mjs.map +1 -0
  371. package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +1049 -0
  372. package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -0
  373. package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs +203 -0
  374. package/fesm2022/verben-workflow-ui-src-lib-components-wf.mjs.map +1 -0
  375. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +5389 -0
  376. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -0
  377. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +415 -0
  378. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -0
  379. package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs +365 -0
  380. package/fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs.map +1 -0
  381. package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +666 -0
  382. package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +1 -0
  383. package/fesm2022/verben-workflow-ui-src-lib-models.mjs +261 -0
  384. package/fesm2022/verben-workflow-ui-src-lib-models.mjs.map +1 -0
  385. package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs +32 -0
  386. package/fesm2022/verben-workflow-ui-src-lib-pipes.mjs.map +1 -0
  387. package/fesm2022/verben-workflow-ui-src-lib-services.mjs +322 -0
  388. package/fesm2022/verben-workflow-ui-src-lib-services.mjs.map +1 -0
  389. package/fesm2022/verben-workflow-ui-src-lib-shared.mjs +336 -0
  390. package/fesm2022/verben-workflow-ui-src-lib-shared.mjs.map +1 -0
  391. package/fesm2022/verben-workflow-ui.mjs +35 -0
  392. package/fesm2022/verben-workflow-ui.mjs.map +1 -0
  393. package/index.d.ts +5 -0
  394. package/package.json +199 -8
  395. package/public-api.d.ts +23 -0
  396. package/src/lib/base/core/base-data-page.facade.d.ts +138 -0
  397. package/src/lib/base/core/base-data-page.service.d.ts +61 -0
  398. package/src/lib/base/core/base-data-page.state.d.ts +73 -0
  399. package/src/lib/base/handlers/filter-handler.service.d.ts +34 -0
  400. package/src/lib/base/handlers/search-handler.service.d.ts +20 -0
  401. package/src/lib/base/handlers/sort-handler.service.d.ts +30 -0
  402. package/src/lib/base/models/api-payload.d.ts +2 -0
  403. package/src/lib/base/models/page-config.interface.d.ts +24 -0
  404. package/src/lib/base/models/page-filter-tab-option.interface.d.ts +19 -0
  405. package/src/lib/base/public-api.d.ts +9 -0
  406. package/src/lib/base/utils/column-helpers.d.ts +24 -0
  407. package/src/lib/components/actors/actors.columns.d.ts +3 -0
  408. package/src/lib/components/actors/actors.component.d.ts +79 -0
  409. package/src/lib/components/actors/actors.config.d.ts +10 -0
  410. package/src/lib/components/actors/actors.facade.d.ts +29 -0
  411. package/src/lib/components/actors/actors.form.component.d.ts +23 -0
  412. package/src/lib/components/actors/actors.module.d.ts +11 -0
  413. package/src/lib/components/actors/actors.service.d.ts +33 -0
  414. package/src/lib/components/actors/actors.state.d.ts +19 -0
  415. package/src/lib/components/designer/components/label-editor.component.d.ts +22 -0
  416. package/src/lib/components/designer/components/node-selector.component.d.ts +23 -0
  417. package/src/lib/components/designer/components/swimlane-label.component.d.ts +12 -0
  418. package/src/lib/components/designer/components/swimlane-popup.component.d.ts +18 -0
  419. package/src/lib/components/designer/components/wf-canvas.component.d.ts +37 -0
  420. package/src/lib/components/designer/components/wf-designer.component.d.ts +22 -0
  421. package/src/lib/components/designer/components/wf-toolbar.component.d.ts +17 -0
  422. package/src/lib/components/designer/models/types.d.ts +104 -0
  423. package/src/lib/components/designer/services/canvas-state.service.d.ts +24 -0
  424. package/src/lib/components/designer/services/connection-segment-interaction.service.d.ts +36 -0
  425. package/src/lib/components/designer/services/connection.service.d.ts +47 -0
  426. package/src/lib/components/designer/services/keyboard-handler.service.d.ts +9 -0
  427. package/src/lib/components/designer/services/label-management.service.d.ts +14 -0
  428. package/src/lib/components/designer/services/node-finder.service.d.ts +10 -0
  429. package/src/lib/components/designer/services/node-interaction.service.d.ts +19 -0
  430. package/src/lib/components/designer/services/node-precondition.service.d.ts +37 -0
  431. package/src/lib/components/designer/services/node-selection.service.d.ts +19 -0
  432. package/src/lib/components/designer/services/orthogonal-router.service.d.ts +36 -0
  433. package/src/lib/components/designer/services/position-update.service.d.ts +10 -0
  434. package/src/lib/components/designer/services/rendering.service.d.ts +67 -0
  435. package/src/lib/components/designer/services/swimlane-management.service.d.ts +19 -0
  436. package/src/lib/components/designer/services/swimlane-stats.service.d.ts +19 -0
  437. package/src/lib/components/designer/services/viewport.service.d.ts +10 -0
  438. package/src/lib/components/designer/services/wf-facade.service.d.ts +67 -0
  439. package/src/lib/components/designer/services/wf-mapper.service.d.ts +26 -0
  440. package/src/lib/components/designer/services/wf-persistence.service.d.ts +21 -0
  441. package/src/lib/components/designer/services/wf-state.service.d.ts +30 -0
  442. package/src/lib/components/expiration/expiration.component.d.ts +20 -0
  443. package/src/lib/components/expiration/expiration.module.d.ts +9 -0
  444. package/src/lib/components/file-render/file-render.component.d.ts +17 -0
  445. package/src/lib/components/file-render/file-render.module.d.ts +10 -0
  446. package/src/lib/components/file-upload/file-upload.component.d.ts +22 -0
  447. package/src/lib/components/file-upload/file-upload.module.d.ts +11 -0
  448. package/src/lib/components/flowable-status/flowable-status.columns.d.ts +3 -0
  449. package/src/lib/components/flowable-status/flowable-status.component.d.ts +80 -0
  450. package/src/lib/components/flowable-status/flowable-status.config.d.ts +11 -0
  451. package/src/lib/components/flowable-status/flowable-status.facade.d.ts +26 -0
  452. package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +18 -0
  453. package/src/lib/components/flowable-status/flowable-status.module.d.ts +11 -0
  454. package/src/lib/components/flowable-status/flowable-status.service.d.ts +23 -0
  455. package/src/lib/components/flowable-status/flowable-status.state.d.ts +11 -0
  456. package/src/lib/components/flowable-status/public-api.d.ts +2 -0
  457. package/src/lib/components/form-control/form-control.component.d.ts +39 -0
  458. package/src/lib/components/form-control/form-control.module.d.ts +11 -0
  459. package/src/lib/components/form-group/base-table-style.d.ts +1 -0
  460. package/src/lib/components/form-group/form-fields/form-fields.component.d.ts +136 -0
  461. package/src/lib/components/form-group/form-fields/form-fields.module.d.ts +11 -0
  462. package/src/lib/components/form-group/form-fields/form-fields.service.d.ts +9 -0
  463. package/src/lib/components/form-group/form-group.component.d.ts +108 -0
  464. package/src/lib/components/form-group/form-group.module.d.ts +15 -0
  465. package/src/lib/components/form-group/form-group.service.d.ts +9 -0
  466. package/src/lib/components/form-response/form-response.component.d.ts +106 -0
  467. package/src/lib/components/form-response/form-response.module.d.ts +12 -0
  468. package/src/lib/components/form-response/form-response.service.d.ts +9 -0
  469. package/src/lib/components/form-timer/form-timer.component.d.ts +13 -0
  470. package/src/lib/components/form-timer/form-timer.module.d.ts +9 -0
  471. package/src/lib/components/form-values/form-values.component.d.ts +118 -0
  472. package/src/lib/components/form-values/form-values.module.d.ts +10 -0
  473. package/src/lib/components/form-values/form-values.service.d.ts +9 -0
  474. package/src/lib/components/form-viewer/form-viewer.component.d.ts +17 -0
  475. package/src/lib/components/form-viewer/form-viewer.module.d.ts +11 -0
  476. package/src/lib/components/forms/base-table-style.d.ts +1 -0
  477. package/src/lib/components/forms/forms.component.d.ts +88 -0
  478. package/src/lib/components/forms/forms.module.d.ts +8 -0
  479. package/src/lib/components/forms/forms.service.d.ts +9 -0
  480. package/src/lib/components/journal/journal.component.d.ts +5 -0
  481. package/src/lib/components/journal/journal.module.d.ts +8 -0
  482. package/src/lib/components/my-queue/my-queue.columns.d.ts +3 -0
  483. package/src/lib/components/my-queue/my-queue.component.d.ts +58 -0
  484. package/src/lib/components/my-queue/my-queue.facade.d.ts +47 -0
  485. package/src/lib/components/my-queue/my-queue.module.d.ts +15 -0
  486. package/src/lib/components/my-queue/my-queue.service.d.ts +65 -0
  487. package/src/lib/components/my-queue/my-queue.state.d.ts +39 -0
  488. package/src/lib/components/my-queue/tasks.form.component.d.ts +48 -0
  489. package/src/lib/components/operation-popup/operation-popup.component.d.ts +62 -0
  490. package/src/lib/components/operation-popup/operation-popup.facade.d.ts +32 -0
  491. package/src/lib/components/operation-popup/operation-popup.service.d.ts +23 -0
  492. package/src/lib/components/operation-popup/operation-popup.state.d.ts +20 -0
  493. package/src/lib/components/stage-details/stage-details.component.d.ts +24 -0
  494. package/src/lib/components/stage-details/stage-details.module.d.ts +9 -0
  495. package/src/lib/components/task-form/task-form.component.d.ts +10 -0
  496. package/src/lib/components/task-form/task-form.module.d.ts +10 -0
  497. package/src/lib/components/task-history/task-history.component.d.ts +41 -0
  498. package/src/lib/components/task-history/task-history.module.d.ts +11 -0
  499. package/src/lib/components/task-history/task-history.service.d.ts +13 -0
  500. package/src/lib/components/task-notification/base-table-style.d.ts +1 -0
  501. package/src/lib/components/task-notification/task-notification.component.d.ts +89 -0
  502. package/src/lib/components/task-notification/task-notification.module.d.ts +8 -0
  503. package/src/lib/components/task-notification/task-notification.service.d.ts +32 -0
  504. package/src/lib/components/tasks/tasks.columns.d.ts +11 -0
  505. package/src/lib/components/tasks/tasks.component.d.ts +40 -0
  506. package/src/lib/components/tasks/tasks.facade.d.ts +44 -0
  507. package/src/lib/components/tasks/tasks.form.component.d.ts +40 -0
  508. package/src/lib/components/tasks/tasks.models.d.ts +4 -0
  509. package/src/lib/components/tasks/tasks.module.d.ts +17 -0
  510. package/src/lib/components/tasks/tasks.service.d.ts +58 -0
  511. package/src/lib/components/tasks/tasks.state.d.ts +46 -0
  512. package/src/lib/components/wf/wf.columns.d.ts +3 -0
  513. package/src/lib/components/wf/wf.component.d.ts +16 -0
  514. package/src/lib/components/wf/wf.module.d.ts +10 -0
  515. package/src/lib/components/wf/wf.service.d.ts +51 -0
  516. package/src/lib/components/workflow/column.d.ts +3 -0
  517. package/src/lib/components/workflow/helper.d.ts +2 -0
  518. package/src/lib/components/workflow/table-style.d.ts +1 -0
  519. package/src/lib/components/workflow/workflow.component.d.ts +57 -0
  520. package/src/lib/components/workflow/workflow.module.d.ts +9 -0
  521. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +34 -0
  522. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.d.ts +25 -0
  523. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.d.ts +38 -0
  524. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.d.ts +29 -0
  525. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.d.ts +292 -0
  526. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.d.ts +39 -0
  527. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.d.ts +5 -0
  528. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.d.ts +47 -0
  529. package/src/lib/components/workflow-designer/services/connection.service.d.ts +101 -0
  530. package/src/lib/components/workflow-designer/services/node-management.service.d.ts +73 -0
  531. package/src/lib/components/workflow-designer/services/popup.service.d.ts +147 -0
  532. package/src/lib/components/workflow-designer/services/swimlane.service.d.ts +66 -0
  533. package/src/lib/components/workflow-designer/services/transformer.service.d.ts +51 -0
  534. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.d.ts +43 -0
  535. package/src/lib/components/workflow-designer/stage-node/stage-node.component.d.ts +58 -0
  536. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.d.ts +49 -0
  537. package/src/lib/components/workflow-designer/workflow-data.service.d.ts +59 -0
  538. package/src/lib/components/workflow-designer/workflow-designer.component.d.ts +121 -0
  539. package/src/lib/components/workflow-designer/workflow-designer.module.d.ts +41 -0
  540. package/src/lib/components/workflow-designer/workflow-designer.state.d.ts +278 -0
  541. package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +130 -0
  542. package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +78 -0
  543. package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +12 -0
  544. package/src/lib/components/workflows/public-api.d.ts +4 -0
  545. package/src/lib/components/workflows/workflow-form/workflow-form.component.d.ts +28 -0
  546. package/src/lib/components/workflows/workflows.api.d.ts +38 -0
  547. package/src/lib/components/workflows/workflows.columns.d.ts +3 -0
  548. package/src/lib/components/workflows/workflows.component.d.ts +98 -0
  549. package/src/lib/components/workflows/workflows.config.d.ts +10 -0
  550. package/src/lib/components/workflows/workflows.facade.d.ts +41 -0
  551. package/src/lib/components/workflows/workflows.module.d.ts +11 -0
  552. package/src/lib/components/workflows/workflows.service.d.ts +32 -0
  553. package/src/lib/components/workflows/workflows.state.d.ts +15 -0
  554. package/src/lib/models/ActionHistory.d.ts +16 -0
  555. package/src/lib/models/ActionType.d.ts +9 -0
  556. package/src/lib/models/Actor.d.ts +11 -0
  557. package/src/lib/models/ActorTag.d.ts +6 -0
  558. package/src/lib/models/Coord.d.ts +4 -0
  559. package/src/lib/models/DataExtensionValue.d.ts +4 -0
  560. package/src/lib/models/DataType.d.ts +25 -0
  561. package/src/lib/models/EAVDataType.d.ts +18 -0
  562. package/src/lib/models/EAVEntity.d.ts +4 -0
  563. package/src/lib/models/EntityDataValue.d.ts +6 -0
  564. package/src/lib/models/EntityProperty.d.ts +7 -0
  565. package/src/lib/models/ErrorResponse.d.ts +6 -0
  566. package/src/lib/models/Escalation.d.ts +14 -0
  567. package/src/lib/models/EscalationCycle.d.ts +12 -0
  568. package/src/lib/models/EscalationStage.d.ts +10 -0
  569. package/src/lib/models/EscalationType.d.ts +5 -0
  570. package/src/lib/models/File.d.ts +7 -0
  571. package/src/lib/models/FilterTypes.d.ts +6 -0
  572. package/src/lib/models/FlowableStatus.d.ts +5 -0
  573. package/src/lib/models/Form.d.ts +13 -0
  574. package/src/lib/models/FormEntity.d.ts +13 -0
  575. package/src/lib/models/FormFill.d.ts +15 -0
  576. package/src/lib/models/FormProperty.d.ts +15 -0
  577. package/src/lib/models/FormValue.d.ts +13 -0
  578. package/src/lib/models/MailConfig.d.ts +12 -0
  579. package/src/lib/models/MessageConfig.d.ts +3 -0
  580. package/src/lib/models/MessageMedium.d.ts +4 -0
  581. package/src/lib/models/OperationAction.d.ts +14 -0
  582. package/src/lib/models/PagedResult.d.ts +5 -0
  583. package/src/lib/models/PeriodMode.d.ts +10 -0
  584. package/src/lib/models/PermissionConfig.d.ts +7 -0
  585. package/src/lib/models/Property.d.ts +5 -0
  586. package/src/lib/models/ReportSchedule.d.ts +22 -0
  587. package/src/lib/models/ReportType.d.ts +5 -0
  588. package/src/lib/models/Resource.d.ts +20 -0
  589. package/src/lib/models/ResponseKeyValue.d.ts +5 -0
  590. package/src/lib/models/SMSConfig.d.ts +10 -0
  591. package/src/lib/models/SearchDynamicWrapper.d.ts +5 -0
  592. package/src/lib/models/SearchOperator.d.ts +4 -0
  593. package/src/lib/models/SearchPropertySign.d.ts +9 -0
  594. package/src/lib/models/SearchPropertyValue.d.ts +12 -0
  595. package/src/lib/models/SearchPropertyValueType.d.ts +9 -0
  596. package/src/lib/models/Size.d.ts +4 -0
  597. package/src/lib/models/SortDirection.d.ts +5 -0
  598. package/src/lib/models/StageActorRule.d.ts +6 -0
  599. package/src/lib/models/SwimLane.d.ts +13 -0
  600. package/src/lib/models/Tag.d.ts +6 -0
  601. package/src/lib/models/Task.d.ts +32 -0
  602. package/src/lib/models/TaskAssignmentType.d.ts +4 -0
  603. package/src/lib/models/TaskNotification.d.ts +14 -0
  604. package/src/lib/models/TaskNotificationMessageType.d.ts +4 -0
  605. package/src/lib/models/TaskNotificationType.d.ts +7 -0
  606. package/src/lib/models/TaskStatus.d.ts +7 -0
  607. package/src/lib/models/Workflow.d.ts +21 -0
  608. package/src/lib/models/WorkflowAction.d.ts +14 -0
  609. package/src/lib/models/WorkflowOperation.d.ts +6 -0
  610. package/src/lib/models/WorkflowStage.d.ts +26 -0
  611. package/src/lib/models/actors.d.ts +8 -0
  612. package/src/lib/models/auth-mechanism.d.ts +13 -0
  613. package/src/lib/models/base.d.ts +13 -0
  614. package/src/lib/models/object-state.d.ts +6 -0
  615. package/src/lib/models/operation-type.d.ts +5 -0
  616. package/src/lib/models/paged.d.ts +9 -0
  617. package/src/lib/models/query-params.d.ts +8 -0
  618. package/src/lib/models/status.d.ts +4 -0
  619. package/src/lib/models/task-history.d.ts +17 -0
  620. package/src/lib/models/user-access-request-status.d.ts +5 -0
  621. package/src/lib/models/user.d.ts +24 -0
  622. package/src/lib/pipes/async-label.pipe.d.ts +11 -0
  623. package/src/lib/services/environment.service.d.ts +23 -0
  624. package/src/lib/services/http-web-request.service.d.ts +23 -0
  625. package/src/lib/services/label.service.d.ts +15 -0
  626. package/src/lib/services/public-api.d.ts +4 -0
  627. package/src/lib/services/util.service.d.ts +20 -0
  628. package/src/lib/shared/base-table-style.d.ts +2 -0
  629. package/src/lib/shared/components/base-data-view.component.d.ts +41 -0
  630. package/src/lib/shared/components/base-model-field.d.ts +26 -0
  631. package/src/lib/shared/models/DataViewConfig.d.ts +11 -0
  632. package/src/lib/shared/public-api.d.ts +5 -0
  633. package/src/lib/shared/shared.module.d.ts +11 -0
  634. package/ng-package.json +0 -15
  635. package/src/lib/base/core/base-data-page.facade.ts +0 -533
  636. package/src/lib/base/core/base-data-page.service.ts +0 -222
  637. package/src/lib/base/core/base-data-page.state.ts +0 -287
  638. package/src/lib/base/handlers/filter-handler.service.ts +0 -169
  639. package/src/lib/base/handlers/search-handler.service.ts +0 -33
  640. package/src/lib/base/handlers/sort-handler.service.ts +0 -93
  641. package/src/lib/base/models/api-payload.ts +0 -13
  642. package/src/lib/base/models/page-config.interface.ts +0 -49
  643. package/src/lib/base/models/page-filter-tab-option.interface.ts +0 -20
  644. package/src/lib/base/ng-package.json +0 -6
  645. package/src/lib/base/public-api.ts +0 -16
  646. package/src/lib/base/utils/column-helpers.ts +0 -77
  647. package/src/lib/components/actors/actors.columns.ts +0 -40
  648. package/src/lib/components/actors/actors.component.css +0 -0
  649. package/src/lib/components/actors/actors.component.html +0 -320
  650. package/src/lib/components/actors/actors.component.spec.ts +0 -23
  651. package/src/lib/components/actors/actors.component.ts +0 -221
  652. package/src/lib/components/actors/actors.config.ts +0 -55
  653. package/src/lib/components/actors/actors.facade.ts +0 -71
  654. package/src/lib/components/actors/actors.form.component.html +0 -37
  655. package/src/lib/components/actors/actors.form.component.ts +0 -69
  656. package/src/lib/components/actors/actors.model.ts +0 -4
  657. package/src/lib/components/actors/actors.module.ts +0 -13
  658. package/src/lib/components/actors/actors.service.ts +0 -85
  659. package/src/lib/components/actors/actors.state.ts +0 -31
  660. package/src/lib/components/actors/ng-package.json +0 -6
  661. package/src/lib/components/designer/components/label-editor.component.ts +0 -188
  662. package/src/lib/components/designer/components/node-selector.component.ts +0 -208
  663. package/src/lib/components/designer/components/swimlane-label.component.ts +0 -102
  664. package/src/lib/components/designer/components/swimlane-popup.component.ts +0 -51
  665. package/src/lib/components/designer/components/wf-canvas.component.ts +0 -495
  666. package/src/lib/components/designer/components/wf-designer.component.ts +0 -182
  667. package/src/lib/components/designer/components/wf-node.component.ts +0 -91
  668. package/src/lib/components/designer/components/wf-properties-popup.component.ts +0 -257
  669. package/src/lib/components/designer/components/wf-toolbar.component.ts +0 -84
  670. package/src/lib/components/designer/models/types.ts +0 -133
  671. package/src/lib/components/designer/ng-package.json +0 -6
  672. package/src/lib/components/designer/services/canvas-state.service.ts +0 -63
  673. package/src/lib/components/designer/services/connection-segment-interaction.service.ts +0 -141
  674. package/src/lib/components/designer/services/connection.service.ts +0 -351
  675. package/src/lib/components/designer/services/keyboard-handler.service.ts +0 -39
  676. package/src/lib/components/designer/services/label-management.service.ts +0 -72
  677. package/src/lib/components/designer/services/node-finder.service.ts +0 -34
  678. package/src/lib/components/designer/services/node-interaction.service.ts +0 -135
  679. package/src/lib/components/designer/services/node-placement.service.ts +0 -77
  680. package/src/lib/components/designer/services/node-precondition.service.ts +0 -138
  681. package/src/lib/components/designer/services/node-renderer.service.ts +0 -97
  682. package/src/lib/components/designer/services/node-selection.service.ts +0 -110
  683. package/src/lib/components/designer/services/orthogonal-router.service.ts +0 -233
  684. package/src/lib/components/designer/services/position-update.service.ts +0 -56
  685. package/src/lib/components/designer/services/rendering.service.ts +0 -296
  686. package/src/lib/components/designer/services/swimlane-management.service.ts +0 -189
  687. package/src/lib/components/designer/services/swimlane-stats.service.ts +0 -53
  688. package/src/lib/components/designer/services/tag-helper.service.ts +0 -80
  689. package/src/lib/components/designer/services/viewport.service.ts +0 -30
  690. package/src/lib/components/designer/services/wf-facade.service.ts +0 -287
  691. package/src/lib/components/designer/services/wf-mapper.service.ts +0 -450
  692. package/src/lib/components/designer/services/wf-persistence.service.ts +0 -184
  693. package/src/lib/components/designer/services/wf-state.service.ts +0 -143
  694. package/src/lib/components/expiration/expiration.component.css +0 -0
  695. package/src/lib/components/expiration/expiration.component.html +0 -21
  696. package/src/lib/components/expiration/expiration.component.spec.ts +0 -23
  697. package/src/lib/components/expiration/expiration.component.ts +0 -52
  698. package/src/lib/components/expiration/expiration.module.ts +0 -11
  699. package/src/lib/components/expiration/ng-package.json +0 -6
  700. package/src/lib/components/file-render/file-render.component.css +0 -4
  701. package/src/lib/components/file-render/file-render.component.html +0 -21
  702. package/src/lib/components/file-render/file-render.component.spec.ts +0 -23
  703. package/src/lib/components/file-render/file-render.component.ts +0 -34
  704. package/src/lib/components/file-render/file-render.module.ts +0 -19
  705. package/src/lib/components/file-render/ng-package.json +0 -6
  706. package/src/lib/components/file-upload/file-upload.component.css +0 -0
  707. package/src/lib/components/file-upload/file-upload.component.html +0 -69
  708. package/src/lib/components/file-upload/file-upload.component.spec.ts +0 -23
  709. package/src/lib/components/file-upload/file-upload.component.ts +0 -87
  710. package/src/lib/components/file-upload/file-upload.module.ts +0 -40
  711. package/src/lib/components/file-upload/ng-package.json +0 -6
  712. package/src/lib/components/flowable-status/flowable-status.columns.ts +0 -23
  713. package/src/lib/components/flowable-status/flowable-status.component.css +0 -1
  714. package/src/lib/components/flowable-status/flowable-status.component.html +0 -166
  715. package/src/lib/components/flowable-status/flowable-status.component.ts +0 -247
  716. package/src/lib/components/flowable-status/flowable-status.config.ts +0 -54
  717. package/src/lib/components/flowable-status/flowable-status.facade.ts +0 -70
  718. package/src/lib/components/flowable-status/flowable-status.form.component.html +0 -13
  719. package/src/lib/components/flowable-status/flowable-status.form.component.ts +0 -51
  720. package/src/lib/components/flowable-status/flowable-status.model.ts +0 -3
  721. package/src/lib/components/flowable-status/flowable-status.module.ts +0 -13
  722. package/src/lib/components/flowable-status/flowable-status.service.ts +0 -39
  723. package/src/lib/components/flowable-status/flowable-status.state.ts +0 -10
  724. package/src/lib/components/flowable-status/ng-package.json +0 -6
  725. package/src/lib/components/flowable-status/public-api.ts +0 -3
  726. package/src/lib/components/form-control/form-control.component.css +0 -0
  727. package/src/lib/components/form-control/form-control.component.html +0 -259
  728. package/src/lib/components/form-control/form-control.component.spec.ts +0 -23
  729. package/src/lib/components/form-control/form-control.component.ts +0 -197
  730. package/src/lib/components/form-control/form-control.module.ts +0 -47
  731. package/src/lib/components/form-control/ng-package.json +0 -6
  732. package/src/lib/components/form-group/base-table-style.ts +0 -52
  733. package/src/lib/components/form-group/form-fields/form-fields.component.css +0 -114
  734. package/src/lib/components/form-group/form-fields/form-fields.component.html +0 -621
  735. package/src/lib/components/form-group/form-fields/form-fields.component.spec.ts +0 -23
  736. package/src/lib/components/form-group/form-fields/form-fields.component.ts +0 -1115
  737. package/src/lib/components/form-group/form-fields/form-fields.module.ts +0 -48
  738. package/src/lib/components/form-group/form-fields/form-fields.service.ts +0 -70
  739. package/src/lib/components/form-group/form-fields/helper.ts +0 -45
  740. package/src/lib/components/form-group/form-group.component.css +0 -113
  741. package/src/lib/components/form-group/form-group.component.html +0 -486
  742. package/src/lib/components/form-group/form-group.component.spec.ts +0 -22
  743. package/src/lib/components/form-group/form-group.component.ts +0 -789
  744. package/src/lib/components/form-group/form-group.module.ts +0 -54
  745. package/src/lib/components/form-group/form-group.service.ts +0 -53
  746. package/src/lib/components/form-group/helper.ts +0 -45
  747. package/src/lib/components/form-group/ng-package.json +0 -6
  748. package/src/lib/components/form-response/form-response.component.css +0 -114
  749. package/src/lib/components/form-response/form-response.component.html +0 -188
  750. package/src/lib/components/form-response/form-response.component.spec.ts +0 -23
  751. package/src/lib/components/form-response/form-response.component.ts +0 -735
  752. package/src/lib/components/form-response/form-response.module.ts +0 -48
  753. package/src/lib/components/form-response/form-response.service.ts +0 -52
  754. package/src/lib/components/form-response/helper.ts +0 -222
  755. package/src/lib/components/form-response/ng-package.json +0 -6
  756. package/src/lib/components/form-timer/form-timer.component.css +0 -0
  757. package/src/lib/components/form-timer/form-timer.component.html +0 -47
  758. package/src/lib/components/form-timer/form-timer.component.spec.ts +0 -23
  759. package/src/lib/components/form-timer/form-timer.component.ts +0 -50
  760. package/src/lib/components/form-timer/form-timer.module.ts +0 -19
  761. package/src/lib/components/form-timer/ng-package.json +0 -6
  762. package/src/lib/components/form-values/form-values.component.css +0 -48
  763. package/src/lib/components/form-values/form-values.component.html +0 -225
  764. package/src/lib/components/form-values/form-values.component.ts +0 -1437
  765. package/src/lib/components/form-values/form-values.module.ts +0 -13
  766. package/src/lib/components/form-values/form-values.service.ts +0 -45
  767. package/src/lib/components/form-values/ng-package.json +0 -6
  768. package/src/lib/components/form-viewer/form-viewer.component.css +0 -4
  769. package/src/lib/components/form-viewer/form-viewer.component.html +0 -62
  770. package/src/lib/components/form-viewer/form-viewer.component.spec.ts +0 -23
  771. package/src/lib/components/form-viewer/form-viewer.component.ts +0 -31
  772. package/src/lib/components/form-viewer/form-viewer.module.ts +0 -52
  773. package/src/lib/components/form-viewer/ng-package.json +0 -6
  774. package/src/lib/components/forms/base-table-style.ts +0 -52
  775. package/src/lib/components/forms/forms.component.css +0 -126
  776. package/src/lib/components/forms/forms.component.html +0 -538
  777. package/src/lib/components/forms/forms.component.spec.ts +0 -23
  778. package/src/lib/components/forms/forms.component.ts +0 -810
  779. package/src/lib/components/forms/forms.module.ts +0 -10
  780. package/src/lib/components/forms/forms.service.spec.ts +0 -16
  781. package/src/lib/components/forms/forms.service.ts +0 -65
  782. package/src/lib/components/forms/ng-package.json +0 -6
  783. package/src/lib/components/journal/journal.component.css +0 -0
  784. package/src/lib/components/journal/journal.component.html +0 -1
  785. package/src/lib/components/journal/journal.component.spec.ts +0 -23
  786. package/src/lib/components/journal/journal.component.ts +0 -10
  787. package/src/lib/components/journal/journal.module.ts +0 -10
  788. package/src/lib/components/journal/ng-package.json +0 -6
  789. package/src/lib/components/my-queue/my-queue.columns.ts +0 -37
  790. package/src/lib/components/my-queue/my-queue.component.css +0 -8
  791. package/src/lib/components/my-queue/my-queue.component.html +0 -319
  792. package/src/lib/components/my-queue/my-queue.component.spec.ts +0 -23
  793. package/src/lib/components/my-queue/my-queue.component.ts +0 -409
  794. package/src/lib/components/my-queue/my-queue.facade.ts +0 -670
  795. package/src/lib/components/my-queue/my-queue.helper.ts +0 -71
  796. package/src/lib/components/my-queue/my-queue.module.ts +0 -28
  797. package/src/lib/components/my-queue/my-queue.service.spec.ts +0 -16
  798. package/src/lib/components/my-queue/my-queue.service.ts +0 -262
  799. package/src/lib/components/my-queue/my-queue.state.ts +0 -133
  800. package/src/lib/components/my-queue/ng-package.json +0 -6
  801. package/src/lib/components/my-queue/tasks.form.component.html +0 -168
  802. package/src/lib/components/my-queue/tasks.form.component.ts +0 -201
  803. package/src/lib/components/operation-popup/ng-package.json +0 -6
  804. package/src/lib/components/operation-popup/operation-popup.component.css +0 -1
  805. package/src/lib/components/operation-popup/operation-popup.component.html +0 -107
  806. package/src/lib/components/operation-popup/operation-popup.component.ts +0 -476
  807. package/src/lib/components/operation-popup/operation-popup.facade.ts +0 -435
  808. package/src/lib/components/operation-popup/operation-popup.service.ts +0 -143
  809. package/src/lib/components/operation-popup/operation-popup.state.ts +0 -49
  810. package/src/lib/components/stage-details/ng-package.json +0 -6
  811. package/src/lib/components/stage-details/stage-details.component.css +0 -0
  812. package/src/lib/components/stage-details/stage-details.component.html +0 -95
  813. package/src/lib/components/stage-details/stage-details.component.spec.ts +0 -23
  814. package/src/lib/components/stage-details/stage-details.component.ts +0 -43
  815. package/src/lib/components/stage-details/stage-details.module.ts +0 -11
  816. package/src/lib/components/task-form/ng-package.json +0 -6
  817. package/src/lib/components/task-form/task-form.component.css +0 -0
  818. package/src/lib/components/task-form/task-form.component.html +0 -38
  819. package/src/lib/components/task-form/task-form.component.spec.ts +0 -23
  820. package/src/lib/components/task-form/task-form.component.ts +0 -15
  821. package/src/lib/components/task-form/task-form.module.ts +0 -31
  822. package/src/lib/components/task-history/ng-package.json +0 -6
  823. package/src/lib/components/task-history/task-history.component.css +0 -334
  824. package/src/lib/components/task-history/task-history.component.html +0 -292
  825. package/src/lib/components/task-history/task-history.component.spec.ts +0 -23
  826. package/src/lib/components/task-history/task-history.component.ts +0 -284
  827. package/src/lib/components/task-history/task-history.module.ts +0 -12
  828. package/src/lib/components/task-history/task-history.service.ts +0 -32
  829. package/src/lib/components/task-notification/base-table-style.ts +0 -52
  830. package/src/lib/components/task-notification/ng-package.json +0 -6
  831. package/src/lib/components/task-notification/task-notification.component.css +0 -94
  832. package/src/lib/components/task-notification/task-notification.component.html +0 -585
  833. package/src/lib/components/task-notification/task-notification.component.spec.ts +0 -23
  834. package/src/lib/components/task-notification/task-notification.component.ts +0 -793
  835. package/src/lib/components/task-notification/task-notification.module.ts +0 -10
  836. package/src/lib/components/task-notification/task-notification.service.spec.ts +0 -16
  837. package/src/lib/components/task-notification/task-notification.service.ts +0 -397
  838. package/src/lib/components/tasks/ng-package.json +0 -6
  839. package/src/lib/components/tasks/tasks.columns.ts +0 -50
  840. package/src/lib/components/tasks/tasks.component.css +0 -4
  841. package/src/lib/components/tasks/tasks.component.html +0 -385
  842. package/src/lib/components/tasks/tasks.component.spec.ts +0 -23
  843. package/src/lib/components/tasks/tasks.component.ts +0 -212
  844. package/src/lib/components/tasks/tasks.facade.ts +0 -482
  845. package/src/lib/components/tasks/tasks.form.component.html +0 -181
  846. package/src/lib/components/tasks/tasks.form.component.ts +0 -174
  847. package/src/lib/components/tasks/tasks.helper.ts +0 -71
  848. package/src/lib/components/tasks/tasks.models.ts +0 -4
  849. package/src/lib/components/tasks/tasks.module.ts +0 -29
  850. package/src/lib/components/tasks/tasks.service.spec.ts +0 -16
  851. package/src/lib/components/tasks/tasks.service.ts +0 -215
  852. package/src/lib/components/tasks/tasks.state.ts +0 -144
  853. package/src/lib/components/wf/ng-package.json +0 -6
  854. package/src/lib/components/wf/wf.columns.ts +0 -36
  855. package/src/lib/components/wf/wf.component.css +0 -0
  856. package/src/lib/components/wf/wf.component.html +0 -35
  857. package/src/lib/components/wf/wf.component.spec.ts +0 -23
  858. package/src/lib/components/wf/wf.component.ts +0 -71
  859. package/src/lib/components/wf/wf.facade.ts +0 -266
  860. package/src/lib/components/wf/wf.helper.ts +0 -25
  861. package/src/lib/components/wf/wf.module.ts +0 -14
  862. package/src/lib/components/wf/wf.service.spec.ts +0 -16
  863. package/src/lib/components/wf/wf.service.ts +0 -98
  864. package/src/lib/components/wf/wf.state.ts +0 -99
  865. package/src/lib/components/workflow/column.ts +0 -40
  866. package/src/lib/components/workflow/helper.ts +0 -53
  867. package/src/lib/components/workflow/ng-package.json +0 -6
  868. package/src/lib/components/workflow/table-style.ts +0 -53
  869. package/src/lib/components/workflow/workflow.component.css +0 -0
  870. package/src/lib/components/workflow/workflow.component.html +0 -226
  871. package/src/lib/components/workflow/workflow.component.spec.ts +0 -23
  872. package/src/lib/components/workflow/workflow.component.ts +0 -224
  873. package/src/lib/components/workflow/workflow.module.ts +0 -11
  874. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.css +0 -9
  875. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.html +0 -134
  876. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.spec.ts +0 -23
  877. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.ts +0 -147
  878. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.css +0 -0
  879. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.html +0 -45
  880. package/src/lib/components/workflow-designer/actor-tags-dialog/actor-tags-dialog.component.ts +0 -83
  881. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.css +0 -7
  882. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.html +0 -89
  883. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.spec.ts +0 -23
  884. package/src/lib/components/workflow-designer/conditions-popup/conditions-popup.component.ts +0 -87
  885. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.css +0 -11
  886. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.html +0 -74
  887. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.spec.ts +0 -23
  888. package/src/lib/components/workflow-designer/decision-popup/decision-popup.component.ts +0 -80
  889. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.css +0 -70
  890. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.html +0 -454
  891. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.spec.ts +0 -23
  892. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.ts +0 -1654
  893. package/src/lib/components/workflow-designer/designer-canvas/designer-canvas.connection-drop.spec.ts +0 -100
  894. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.css +0 -63
  895. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.html +0 -49
  896. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.spec.ts +0 -23
  897. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.component.ts +0 -86
  898. package/src/lib/components/workflow-designer/designer-toolbar/designer-toolbar.types.ts +0 -7
  899. package/src/lib/components/workflow-designer/docs/01-architecture.md +0 -145
  900. package/src/lib/components/workflow-designer/docs/02-coordinate-system.md +0 -171
  901. package/src/lib/components/workflow-designer/docs/03-data-model.md +0 -163
  902. package/src/lib/components/workflow-designer/docs/04-interactions.md +0 -156
  903. package/src/lib/components/workflow-designer/docs/05-persistence.md +0 -117
  904. package/src/lib/components/workflow-designer/docs/06-known-issues.md +0 -181
  905. package/src/lib/components/workflow-designer/docs/07-integration.md +0 -178
  906. package/src/lib/components/workflow-designer/docs/08-api-reference.md +0 -187
  907. package/src/lib/components/workflow-designer/docs/09-development.md +0 -141
  908. package/src/lib/components/workflow-designer/docs/README.md +0 -81
  909. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.css +0 -13
  910. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.html +0 -204
  911. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.spec.ts +0 -23
  912. package/src/lib/components/workflow-designer/escalation-dialog/escalation-dialog.component.ts +0 -308
  913. package/src/lib/components/workflow-designer/ng-package.json +0 -6
  914. package/src/lib/components/workflow-designer/services/connection.service.ts +0 -325
  915. package/src/lib/components/workflow-designer/services/node-management.service.ts +0 -372
  916. package/src/lib/components/workflow-designer/services/popup.service.ts +0 -276
  917. package/src/lib/components/workflow-designer/services/swimlane.service.ts +0 -176
  918. package/src/lib/components/workflow-designer/services/transformer.service.ts +0 -318
  919. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.css +0 -0
  920. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.html +0 -208
  921. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.spec.ts +0 -23
  922. package/src/lib/components/workflow-designer/stage-dialog/stage-dialog.component.ts +0 -194
  923. package/src/lib/components/workflow-designer/stage-node/stage-node.component.css +0 -15
  924. package/src/lib/components/workflow-designer/stage-node/stage-node.component.html +0 -93
  925. package/src/lib/components/workflow-designer/stage-node/stage-node.component.spec.ts +0 -23
  926. package/src/lib/components/workflow-designer/stage-node/stage-node.component.ts +0 -258
  927. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.css +0 -0
  928. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.html +0 -150
  929. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.spec.ts +0 -23
  930. package/src/lib/components/workflow-designer/swimlane-dialog/swimlane-dialog.component.ts +0 -153
  931. package/src/lib/components/workflow-designer/workflow-data.service.spec.ts +0 -16
  932. package/src/lib/components/workflow-designer/workflow-data.service.ts +0 -290
  933. package/src/lib/components/workflow-designer/workflow-designer.component.css +0 -59
  934. package/src/lib/components/workflow-designer/workflow-designer.component.html +0 -29
  935. package/src/lib/components/workflow-designer/workflow-designer.component.spec.ts +0 -23
  936. package/src/lib/components/workflow-designer/workflow-designer.component.ts +0 -548
  937. package/src/lib/components/workflow-designer/workflow-designer.models.ts +0 -114
  938. package/src/lib/components/workflow-designer/workflow-designer.module.ts +0 -90
  939. package/src/lib/components/workflow-designer/workflow-designer.state.ts +0 -1123
  940. package/src/lib/components/workflow-designer/workflow-designer.types.ts +0 -141
  941. package/src/lib/components/workflow-stage/ng-package.json +0 -6
  942. package/src/lib/components/workflow-stage/workflow-stage.component.css +0 -24
  943. package/src/lib/components/workflow-stage/workflow-stage.component.html +0 -339
  944. package/src/lib/components/workflow-stage/workflow-stage.component.spec.ts +0 -23
  945. package/src/lib/components/workflow-stage/workflow-stage.component.ts +0 -355
  946. package/src/lib/components/workflow-stage/workflow-stage.module.ts +0 -53
  947. package/src/lib/components/workflows/ng-package.json +0 -6
  948. package/src/lib/components/workflows/public-api.ts +0 -6
  949. package/src/lib/components/workflows/workflow-form/workflow-form.component.css +0 -0
  950. package/src/lib/components/workflows/workflow-form/workflow-form.component.html +0 -138
  951. package/src/lib/components/workflows/workflow-form/workflow-form.component.spec.ts +0 -23
  952. package/src/lib/components/workflows/workflow-form/workflow-form.component.ts +0 -85
  953. package/src/lib/components/workflows/workflows.api.ts +0 -117
  954. package/src/lib/components/workflows/workflows.columns.ts +0 -41
  955. package/src/lib/components/workflows/workflows.component.css +0 -4
  956. package/src/lib/components/workflows/workflows.component.html +0 -309
  957. package/src/lib/components/workflows/workflows.component.spec.ts +0 -23
  958. package/src/lib/components/workflows/workflows.component.ts +0 -303
  959. package/src/lib/components/workflows/workflows.config.ts +0 -58
  960. package/src/lib/components/workflows/workflows.facade.ts +0 -147
  961. package/src/lib/components/workflows/workflows.module.ts +0 -14
  962. package/src/lib/components/workflows/workflows.service.spec.ts +0 -16
  963. package/src/lib/components/workflows/workflows.service.ts +0 -88
  964. package/src/lib/components/workflows/workflows.state.ts +0 -21
  965. package/src/lib/models/ActionHistory.ts +0 -19
  966. package/src/lib/models/ActionType.ts +0 -9
  967. package/src/lib/models/Actor.ts +0 -12
  968. package/src/lib/models/ActorTag.ts +0 -8
  969. package/src/lib/models/Coord.ts +0 -4
  970. package/src/lib/models/DataExtensionValue.ts +0 -5
  971. package/src/lib/models/DataType.ts +0 -25
  972. package/src/lib/models/EAVDataType.ts +0 -18
  973. package/src/lib/models/EAVEntity.ts +0 -5
  974. package/src/lib/models/EntityDataValue.ts +0 -7
  975. package/src/lib/models/EntityProperty.ts +0 -8
  976. package/src/lib/models/ErrorResponse.ts +0 -7
  977. package/src/lib/models/Escalation.ts +0 -15
  978. package/src/lib/models/EscalationCycle.ts +0 -13
  979. package/src/lib/models/EscalationStage.ts +0 -11
  980. package/src/lib/models/EscalationType.ts +0 -5
  981. package/src/lib/models/File.ts +0 -8
  982. package/src/lib/models/FilterTypes.ts +0 -8
  983. package/src/lib/models/FlowableStatus.ts +0 -6
  984. package/src/lib/models/Form.ts +0 -14
  985. package/src/lib/models/FormEntity.ts +0 -14
  986. package/src/lib/models/FormFill.ts +0 -16
  987. package/src/lib/models/FormProperty.ts +0 -16
  988. package/src/lib/models/FormValue.ts +0 -19
  989. package/src/lib/models/MailConfig.ts +0 -13
  990. package/src/lib/models/MessageConfig.ts +0 -5
  991. package/src/lib/models/MessageMedium.ts +0 -4
  992. package/src/lib/models/OperationAction.ts +0 -15
  993. package/src/lib/models/PagedResult.ts +0 -5
  994. package/src/lib/models/PeriodMode.ts +0 -10
  995. package/src/lib/models/PermissionConfig.ts +0 -8
  996. package/src/lib/models/Property.ts +0 -6
  997. package/src/lib/models/ReportSchedule.ts +0 -23
  998. package/src/lib/models/ReportType.ts +0 -5
  999. package/src/lib/models/Resource.ts +0 -57
  1000. package/src/lib/models/ResponseKeyValue.ts +0 -5
  1001. package/src/lib/models/SMSConfig.ts +0 -11
  1002. package/src/lib/models/SearchDynamicWrapper.ts +0 -6
  1003. package/src/lib/models/SearchOperator.ts +0 -4
  1004. package/src/lib/models/SearchPropertySign.ts +0 -9
  1005. package/src/lib/models/SearchPropertyValue.ts +0 -13
  1006. package/src/lib/models/SearchPropertyValueType.ts +0 -9
  1007. package/src/lib/models/Size.ts +0 -4
  1008. package/src/lib/models/SortDirection.ts +0 -5
  1009. package/src/lib/models/StageActorRule.ts +0 -6
  1010. package/src/lib/models/SwimLane.ts +0 -14
  1011. package/src/lib/models/Tag.ts +0 -7
  1012. package/src/lib/models/Task.ts +0 -33
  1013. package/src/lib/models/TaskAssignmentType.ts +0 -4
  1014. package/src/lib/models/TaskNotification.ts +0 -16
  1015. package/src/lib/models/TaskNotificationMessageType.ts +0 -4
  1016. package/src/lib/models/TaskNotificationType.ts +0 -7
  1017. package/src/lib/models/TaskStatus.ts +0 -7
  1018. package/src/lib/models/Workflow.ts +0 -22
  1019. package/src/lib/models/WorkflowAction.ts +0 -15
  1020. package/src/lib/models/WorkflowOperation.ts +0 -7
  1021. package/src/lib/models/WorkflowStage.ts +0 -27
  1022. package/src/lib/models/actors.ts +0 -10
  1023. package/src/lib/models/auth-mechanism.ts +0 -14
  1024. package/src/lib/models/base.ts +0 -14
  1025. package/src/lib/models/ng-package.json +0 -6
  1026. package/src/lib/models/object-state.ts +0 -6
  1027. package/src/lib/models/operation-type.ts +0 -6
  1028. package/src/lib/models/paged.ts +0 -9
  1029. package/src/lib/models/query-params.ts +0 -9
  1030. package/src/lib/models/status.ts +0 -5
  1031. package/src/lib/models/task-history.ts +0 -14
  1032. package/src/lib/models/user-access-request-status.ts +0 -5
  1033. package/src/lib/models/user.ts +0 -25
  1034. package/src/lib/pipes/async-label.pipe.spec.ts +0 -12
  1035. package/src/lib/pipes/async-label.pipe.ts +0 -30
  1036. package/src/lib/pipes/ng-package.json +0 -6
  1037. package/src/lib/services/environment.service.spec.ts +0 -16
  1038. package/src/lib/services/environment.service.ts +0 -31
  1039. package/src/lib/services/http-web-request.service.spec.ts +0 -16
  1040. package/src/lib/services/http-web-request.service.ts +0 -154
  1041. package/src/lib/services/label.service.spec.ts +0 -16
  1042. package/src/lib/services/label.service.ts +0 -182
  1043. package/src/lib/services/ng-package.json +0 -6
  1044. package/src/lib/services/public-api.ts +0 -5
  1045. package/src/lib/services/util.service.spec.ts +0 -16
  1046. package/src/lib/services/util.service.ts +0 -72
  1047. package/src/lib/shared/base-table-style.ts +0 -56
  1048. package/src/lib/shared/components/base-data-view.component.ts +0 -187
  1049. package/src/lib/shared/components/base-model-field.ts +0 -31
  1050. package/src/lib/shared/models/DataViewConfig.ts +0 -19
  1051. package/src/lib/shared/ng-package.json +0 -6
  1052. package/src/lib/shared/public-api.ts +0 -14
  1053. package/src/lib/shared/shared.module.ts +0 -67
  1054. package/src/lib/utils/index.ts +0 -1
  1055. package/src/lib/utils/public-api.ts +0 -2
  1056. package/src/lib/utils/store.ts +0 -50
  1057. package/src/public-api.ts +0 -58
  1058. package/src/styles.css +0 -96
  1059. package/tailwind.config copy.js +0 -33
  1060. package/tailwind.config.js +0 -20
  1061. package/tsconfig.lib.json +0 -15
  1062. package/tsconfig.lib.prod.json +0 -11
  1063. package/tsconfig.spec.json +0 -15
  1064. /package/src/lib/base/{index.ts → index.d.ts} +0 -0
  1065. /package/src/lib/components/actors/{index.ts → index.d.ts} +0 -0
  1066. /package/src/lib/components/actors/{public-api.ts → public-api.d.ts} +0 -0
  1067. /package/src/lib/components/designer/{index.ts → index.d.ts} +0 -0
  1068. /package/src/lib/components/designer/{public-api.ts → public-api.d.ts} +0 -0
  1069. /package/src/lib/components/expiration/{index.ts → index.d.ts} +0 -0
  1070. /package/src/lib/components/expiration/{public-api.ts → public-api.d.ts} +0 -0
  1071. /package/src/lib/components/file-render/{index.ts → index.d.ts} +0 -0
  1072. /package/src/lib/components/file-render/{public-api.ts → public-api.d.ts} +0 -0
  1073. /package/src/lib/components/file-upload/{index.ts → index.d.ts} +0 -0
  1074. /package/src/lib/components/file-upload/{public-api.ts → public-api.d.ts} +0 -0
  1075. /package/src/lib/components/flowable-status/{index.ts → index.d.ts} +0 -0
  1076. /package/src/lib/components/form-control/{index.ts → index.d.ts} +0 -0
  1077. /package/src/lib/components/form-control/{public-api.ts → public-api.d.ts} +0 -0
  1078. /package/src/lib/components/form-group/{index.ts → index.d.ts} +0 -0
  1079. /package/src/lib/components/form-group/{public-api.ts → public-api.d.ts} +0 -0
  1080. /package/src/lib/components/form-response/{index.ts → index.d.ts} +0 -0
  1081. /package/src/lib/components/form-response/{public-api.ts → public-api.d.ts} +0 -0
  1082. /package/src/lib/components/form-timer/{index.ts → index.d.ts} +0 -0
  1083. /package/src/lib/components/form-timer/{public-api.ts → public-api.d.ts} +0 -0
  1084. /package/src/lib/components/form-values/{index.ts → index.d.ts} +0 -0
  1085. /package/src/lib/components/form-values/{public-api.ts → public-api.d.ts} +0 -0
  1086. /package/src/lib/components/form-viewer/{index.ts → index.d.ts} +0 -0
  1087. /package/src/lib/components/form-viewer/{public-api.ts → public-api.d.ts} +0 -0
  1088. /package/src/lib/components/forms/{index.ts → index.d.ts} +0 -0
  1089. /package/src/lib/components/forms/{public-api.ts → public-api.d.ts} +0 -0
  1090. /package/src/lib/components/journal/{index.ts → index.d.ts} +0 -0
  1091. /package/src/lib/components/journal/{public-api.ts → public-api.d.ts} +0 -0
  1092. /package/src/lib/components/my-queue/{index.ts → index.d.ts} +0 -0
  1093. /package/src/lib/components/my-queue/{public-api.ts → public-api.d.ts} +0 -0
  1094. /package/src/lib/components/operation-popup/{index.ts → index.d.ts} +0 -0
  1095. /package/src/lib/components/operation-popup/{public-api.ts → public-api.d.ts} +0 -0
  1096. /package/src/lib/components/stage-details/{index.ts → index.d.ts} +0 -0
  1097. /package/src/lib/components/stage-details/{public-api.ts → public-api.d.ts} +0 -0
  1098. /package/src/lib/components/task-form/{index.ts → index.d.ts} +0 -0
  1099. /package/src/lib/components/task-form/{public-api.ts → public-api.d.ts} +0 -0
  1100. /package/src/lib/components/task-history/{index.ts → index.d.ts} +0 -0
  1101. /package/src/lib/components/task-history/{public-api.ts → public-api.d.ts} +0 -0
  1102. /package/src/lib/components/task-notification/{index.ts → index.d.ts} +0 -0
  1103. /package/src/lib/components/task-notification/{public-api.ts → public-api.d.ts} +0 -0
  1104. /package/src/lib/components/tasks/{index.ts → index.d.ts} +0 -0
  1105. /package/src/lib/components/tasks/{public-api.ts → public-api.d.ts} +0 -0
  1106. /package/src/lib/components/wf/{index.ts → index.d.ts} +0 -0
  1107. /package/src/lib/components/wf/{public-api.ts → public-api.d.ts} +0 -0
  1108. /package/src/lib/components/workflow/{index.ts → index.d.ts} +0 -0
  1109. /package/src/lib/components/workflow/{public-api.ts → public-api.d.ts} +0 -0
  1110. /package/src/lib/components/workflow-designer/{index.ts → index.d.ts} +0 -0
  1111. /package/src/lib/components/workflow-designer/{public-api.ts → public-api.d.ts} +0 -0
  1112. /package/src/lib/components/workflow-stage/{index.ts → index.d.ts} +0 -0
  1113. /package/src/lib/components/workflow-stage/{public-api.ts → public-api.d.ts} +0 -0
  1114. /package/src/lib/components/workflows/{index.ts → index.d.ts} +0 -0
  1115. /package/src/lib/models/{index.ts → index.d.ts} +0 -0
  1116. /package/src/lib/models/{public-api.ts → public-api.d.ts} +0 -0
  1117. /package/src/lib/pipes/{index.ts → index.d.ts} +0 -0
  1118. /package/src/lib/pipes/{public-api.ts → public-api.d.ts} +0 -0
  1119. /package/src/lib/services/{index.ts → index.d.ts} +0 -0
  1120. /package/src/lib/shared/{index.ts → index.d.ts} +0 -0
  1121. /package/{src/styles → styles}/styles.css +0 -0
@@ -0,0 +1,1338 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, input, ViewChildren, NgModule } from '@angular/core';
3
+ import * as i2 from 'verben-workflow-ui/src/lib/components/tasks';
4
+ import { TaskModel, TaskFacade } from 'verben-workflow-ui/src/lib/components/tasks';
5
+ import { SortDirection, ErrorResponse, DataType, Status, TaskStatus, ObjectState } from 'verben-workflow-ui/src/lib/models';
6
+ import { BaseDataViewComponent, SharedModule } from 'verben-workflow-ui/src/lib/shared';
7
+ import { BehaviorSubject, Subject, debounceTime, distinctUntilChanged, takeUntil, lastValueFrom } from 'rxjs';
8
+ import * as i3 from 'verben-workflow-ui/src/lib/services';
9
+ import * as i6 from '@angular/common';
10
+ import { CommonModule } from '@angular/common';
11
+ import * as i5$1 from 'verben-ng-ui';
12
+ import * as i6$1 from '@angular/router';
13
+ import { RouterLink } from '@angular/router';
14
+ import * as i5 from 'verben-workflow-ui/src/lib/components/operation-popup';
15
+ import { OperationPopupComponent, OperationPopupService } from 'verben-workflow-ui/src/lib/components/operation-popup';
16
+ import * as i8$1 from 'verben-workflow-ui/src/lib/components/workflow-stage';
17
+ import { WorkFlowStageLibModule } from 'verben-workflow-ui/src/lib/components/workflow-stage';
18
+ import * as i1 from '@angular/forms';
19
+ import { Validators } from '@angular/forms';
20
+ import * as i8 from 'verben-workflow-ui/src/lib/components/form-control';
21
+ import { FormControlerModule } from 'verben-workflow-ui/src/lib/components/form-control';
22
+ import * as i9 from 'verben-workflow-ui/src/lib/components/form-timer';
23
+ import { FormTimerModule } from 'verben-workflow-ui/src/lib/components/form-timer';
24
+
25
+ const columns = [
26
+ {
27
+ id: 'code',
28
+ header: 'CODE',
29
+ accessorKey: 'Code',
30
+ },
31
+ {
32
+ id: 'task',
33
+ header: 'TASK',
34
+ accessorKey: 'Name',
35
+ },
36
+ {
37
+ id: 'stage',
38
+ header: 'STAGE',
39
+ accessorFn: (row) => row.FullStages?.slice(0, 3)
40
+ ?.map(({ Name }) => Name)
41
+ .join(', ') +
42
+ (row.FullStages?.length && row.FullStages?.length > 3
43
+ ? ` ... + ${row.FullStages?.length - 3}`
44
+ : ''),
45
+ },
46
+ {
47
+ id: 'history',
48
+ header: 'HISTORY',
49
+ accessorKey: 'Code',
50
+ },
51
+ {
52
+ id: 'workflow',
53
+ header: 'WORKFLOW',
54
+ accessorKey: 'WorkflowCode',
55
+ },
56
+ { id: 'actions', header: 'Actions' },
57
+ ];
58
+
59
+ class MyQueueService {
60
+ httpService;
61
+ constructor(httpService) {
62
+ this.httpService = httpService;
63
+ }
64
+ /**
65
+ * Get tasks with pagination and sorting
66
+ * @param skip Number of records to skip
67
+ * @param limit Number of records to take
68
+ * @param sortParam Sort parameter
69
+ * @param sortOrder Sort order ('asc' or 'desc')
70
+ * @returns Promise containing the tasks
71
+ */
72
+ getTasks(skip, limit, sortParam, sortOrder) {
73
+ const url = `GetTasks/${skip}/${limit}/${sortParam}/${sortOrder}`;
74
+ return this.httpService.get(url);
75
+ }
76
+ /**
77
+ * Get tasks with additional parameter, pagination and sorting
78
+ * @param param Search parameter
79
+ * @param skip Number of records to skip
80
+ * @param limit Number of records to take
81
+ * @param sortParam Sort parameter
82
+ * @param sortOrder Sort order ('asc' or 'desc')
83
+ * @returns Promise containing the filtered tasks
84
+ */
85
+ getTaskWithParam(param, skip, limit, sortParam, sortOrder) {
86
+ const url = `GetTaskWithParam/${param}/${skip}/${limit}/${sortParam}/${sortOrder}`;
87
+ return this.httpService.get(url);
88
+ }
89
+ /**
90
+ * Save multiple tasks
91
+ * @param requests Array of tasks to save
92
+ * @returns Promise containing the save operation result
93
+ */
94
+ saveTasks(requests) {
95
+ const url = `SaveTasks`;
96
+ return this.httpService.post(url, requests);
97
+ }
98
+ /**
99
+ * Approve or reject multiple tasks
100
+ * @param requests Array of tasks to save
101
+ * @param isApproval True for approval, false for decline
102
+ * @returns Promise containing the save operation result
103
+ */
104
+ processTasks(requests, isApproval) {
105
+ const url = `TaskAction/${isApproval}`;
106
+ return this.httpService.post(url, requests);
107
+ }
108
+ /**
109
+ * Delete multiple tasks
110
+ * @param requestIds Array of request IDs to delete
111
+ * @returns Observable containing the delete operation result
112
+ */
113
+ deleteTasks(requestIds) {
114
+ const url = `DeleteTasks`;
115
+ return this.httpService.delete(`${url}?data=${requestIds.join(',')}`);
116
+ }
117
+ getTasksForUser(user, skip, limit, sortParam, sortOrder, param) {
118
+ //taskCode
119
+ const url = param
120
+ ? `GetTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}/undefined/${encodeURIComponent(param)}`
121
+ : `GetTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
122
+ return this.httpService.get(url);
123
+ }
124
+ getQueueTasksForUser(user, skip, limit, sortParam, sortOrder, param) {
125
+ const url = param
126
+ ? `GetQueueTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}/undefined/${encodeURIComponent(param)}`
127
+ : `GetQueueTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
128
+ return this.httpService.get(url);
129
+ }
130
+ getPossibleTasksForUser(user, skip, limit, sortParam, sortOrder) {
131
+ const url = `GetPossibleTasksForUser/${skip}/${limit}/${sortParam}/${sortOrder}/${user}`;
132
+ return this.httpService.get(url);
133
+ }
134
+ getNextActions(taskCode) {
135
+ const url = `GetNextActions/${taskCode}`;
136
+ return this.httpService.get(url);
137
+ }
138
+ getPreviousActions(taskCode) {
139
+ const url = `GetPreviousActions/${taskCode}`;
140
+ return this.httpService.get(url);
141
+ }
142
+ getAllPreviousActions(taskCode) {
143
+ const url = `GetAllPreviousActions/${taskCode}`;
144
+ return this.httpService.get(url);
145
+ }
146
+ getNextActors(taskCode, forCurrentStage, stageCode) {
147
+ const url = `GetNextActors/${taskCode}${'/' + forCurrentStage + (stageCode ? '/' + stageCode : '')}`;
148
+ return this.httpService.get(url);
149
+ }
150
+ passOn(fromStage, toStage, task, comment, recipient) {
151
+ const url = `PassOn/${fromStage}/${toStage}/${comment}${recipient ? '/' + recipient : ''}`;
152
+ return this.httpService.post(url, task);
153
+ }
154
+ passBack(fromStage, toStage, task, comment, recipient) {
155
+ const url = `PassBack/${fromStage}/${toStage}/${comment}${recipient ? '/' + recipient : ''}`;
156
+ return this.httpService.post(url, task);
157
+ }
158
+ pickTask(targetStage, task, comment, recipient) {
159
+ const url = `PickTask/${comment}/${targetStage}${recipient ? '/' + recipient : ''}`;
160
+ return this.httpService.post(url, task);
161
+ }
162
+ unPickTask(targetStage, task, comment, recipient) {
163
+ const url = `UnPickTask/${comment}/${targetStage}${recipient ? '/' + recipient : ''}`;
164
+ return this.httpService.post(url, task);
165
+ }
166
+ followTask(actorId, task) {
167
+ const url = `FollowTask/${actorId}`;
168
+ return this.httpService.post(url, task);
169
+ }
170
+ unFollowTask(taskId, actorId) {
171
+ const url = `UnFollowTask/${taskId}/${actorId}`;
172
+ return this.httpService.post(url, {});
173
+ }
174
+ reAssign(task, comment, fromUser, toUser) {
175
+ const url = `Reassign/${comment}/${toUser}/${fromUser}`;
176
+ return this.httpService.post(url, task);
177
+ }
178
+ skipTo(fromStage, toStage, task, comment, recipient, isBackward = false) {
179
+ const url = `SkipTo/${fromStage}/${toStage}/${comment}${recipient ? '/' + recipient : ''}/${isBackward}`;
180
+ return this.httpService.post(url, task);
181
+ }
182
+ getCurrentFormsForTask(taskCode) {
183
+ const url = `GetCurrentFormsForTask/${taskCode}`;
184
+ return this.httpService.get(url);
185
+ }
186
+ fillForm(form, taskCode) {
187
+ const url = `FillForm/${taskCode}`;
188
+ return this.httpService.post(url, form);
189
+ }
190
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, deps: [{ token: i3.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Injectable });
191
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, providedIn: 'root' });
192
+ }
193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueService, decorators: [{
194
+ type: Injectable,
195
+ args: [{
196
+ providedIn: 'root', // 👈 Add this line
197
+ }]
198
+ }], ctorParameters: () => [{ type: i3.HttpWebRequestService }] });
199
+
200
+ class MyQueueState {
201
+ updating$ = new BehaviorSubject(false);
202
+ resetPage = new BehaviorSubject(false);
203
+ tasks$ = new BehaviorSubject([]);
204
+ searchTerm$ = new BehaviorSubject('');
205
+ queryParams$ = new BehaviorSubject({
206
+ skip: 0,
207
+ limit: 50,
208
+ sortParam: 'CreatedAt',
209
+ sortOrder: SortDirection.Desc,
210
+ });
211
+ nextActions$ = new BehaviorSubject([]);
212
+ nextActors$ = new BehaviorSubject([]);
213
+ taskForms$ = new BehaviorSubject([]);
214
+ isUpdating$() {
215
+ return this.updating$.asObservable();
216
+ }
217
+ setUpdating(isUpdating) {
218
+ this.updating$.next(isUpdating);
219
+ }
220
+ getRequests$() {
221
+ return this.tasks$.asObservable();
222
+ }
223
+ setRequests(tasks) {
224
+ this.tasks$.next(tasks);
225
+ }
226
+ getNextActions$() {
227
+ return this.nextActions$.asObservable();
228
+ }
229
+ getNextActors$() {
230
+ return this.nextActors$.asObservable();
231
+ }
232
+ getTaskForms$() {
233
+ return this.taskForms$.asObservable();
234
+ }
235
+ setNextActions(nextActions) {
236
+ this.nextActions$.next(nextActions);
237
+ }
238
+ setNextActors(nextActors) {
239
+ this.nextActors$.next(nextActors);
240
+ }
241
+ setTaskForms(taskForms) {
242
+ this.taskForms$.next(taskForms);
243
+ }
244
+ getSearchTerm$() {
245
+ return this.searchTerm$.asObservable();
246
+ }
247
+ getSearchTermValue() {
248
+ return this.searchTerm$.getValue();
249
+ }
250
+ setSearchTerm(term) {
251
+ this.searchTerm$.next(term);
252
+ }
253
+ getQueryParams$() {
254
+ return this.queryParams$.asObservable();
255
+ }
256
+ getQueryParamsValue() {
257
+ return this.queryParams$.getValue();
258
+ }
259
+ updateQueryParams(params) {
260
+ this.queryParams$.next({ ...this.queryParams$.getValue(), ...params });
261
+ }
262
+ resetQueryParams() {
263
+ this.queryParams$.next({
264
+ skip: 0,
265
+ limit: 50,
266
+ sortParam: 'CreatedAt',
267
+ sortOrder: SortDirection.Desc,
268
+ });
269
+ }
270
+ addRequest(task) {
271
+ const currentValue = this.tasks$.getValue();
272
+ this.tasks$.next([task, ...currentValue]);
273
+ }
274
+ resetPagination() {
275
+ const currentParams = this.queryParams$.getValue();
276
+ this.queryParams$.next({ ...currentParams, skip: 0 });
277
+ }
278
+ updateRequest(updatedRequest) {
279
+ const tasks = this.tasks$.getValue();
280
+ const index = tasks.findIndex((r) => r.Code === updatedRequest.Code);
281
+ if (index !== -1) {
282
+ tasks[index] = updatedRequest;
283
+ this.tasks$.next([...tasks]);
284
+ }
285
+ }
286
+ removeRequest(taskCode) {
287
+ const currentValue = this.tasks$.getValue();
288
+ this.tasks$.next(currentValue.filter((r) => r.Code !== taskCode));
289
+ }
290
+ appendRequests(newRequests) {
291
+ const currentRequests = this.tasks$.getValue();
292
+ this.tasks$.next([...currentRequests, ...newRequests]);
293
+ }
294
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
295
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, providedIn: 'root' });
296
+ }
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueState, decorators: [{
298
+ type: Injectable,
299
+ args: [{
300
+ providedIn: 'root', // 👈 Add this line
301
+ }]
302
+ }] });
303
+
304
+ class MyQueueFacade {
305
+ service;
306
+ state;
307
+ utilService;
308
+ searchSubject = new Subject();
309
+ destroy$ = new Subject();
310
+ constructor(service, state, utilService) {
311
+ this.service = service;
312
+ this.state = state;
313
+ this.utilService = utilService;
314
+ this.searchSubject
315
+ .pipe(debounceTime(1000), distinctUntilChanged((a, b) => a.term === b.term), takeUntil(this.destroy$))
316
+ .subscribe(({ term, isQueue, user }) => {
317
+ this.handleSearch(term, isQueue, user);
318
+ });
319
+ this.isUpdating$().subscribe((loading) => {
320
+ this.utilService.sendBI(loading);
321
+ });
322
+ }
323
+ ngOnDestroy() {
324
+ this.destroy$.next();
325
+ this.destroy$.complete();
326
+ }
327
+ search(term, isQueue, user) {
328
+ this.searchSubject.next({ term, isQueue, user });
329
+ }
330
+ async handleSearch(searchTerm, isQueue, user) {
331
+ this.state.setSearchTerm(searchTerm);
332
+ this.state.resetPagination();
333
+ this.state.resetPage.next(true);
334
+ try {
335
+ this.state.setUpdating(true);
336
+ if (searchTerm.trim().length > 0) {
337
+ await this.loadRequestsWithParam(searchTerm, isQueue);
338
+ }
339
+ else {
340
+ await this.loadRequests(isQueue);
341
+ }
342
+ }
343
+ catch (error) {
344
+ throw error;
345
+ }
346
+ finally {
347
+ this.state.setUpdating(false);
348
+ }
349
+ }
350
+ isUpdating$() {
351
+ return this.state.isUpdating$();
352
+ }
353
+ getRequests$() {
354
+ return this.state.getRequests$();
355
+ }
356
+ getNextActions$() {
357
+ return this.state.getNextActions$();
358
+ }
359
+ getNextActors$() {
360
+ return this.state.getNextActors$();
361
+ }
362
+ getTaskForms$() {
363
+ return this.state.getTaskForms$();
364
+ }
365
+ getQueryParams$() {
366
+ return this.state.getQueryParams$();
367
+ }
368
+ addNewRequest(task) {
369
+ this.state.addRequest(task);
370
+ }
371
+ async loadRequests(queue = false) {
372
+ try {
373
+ this.state.setUpdating(true);
374
+ const params = this.state.getQueryParamsValue();
375
+ const response = queue
376
+ ? await this.service.getQueueTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder)
377
+ : await this.service.getTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder);
378
+ if (response instanceof ErrorResponse) {
379
+ this.utilService.showError(response.ErrorMsg);
380
+ return;
381
+ }
382
+ const { Skip, PageSize, Result } = response;
383
+ if (Result) {
384
+ Result.forEach((x) => {
385
+ x.Id = x.Code;
386
+ });
387
+ this.state.setRequests(Result);
388
+ this.state.updateQueryParams({ skip: Skip });
389
+ }
390
+ }
391
+ catch (error) {
392
+ throw error;
393
+ }
394
+ finally {
395
+ this.state.setUpdating(false);
396
+ }
397
+ }
398
+ async loadRequestsWithParam(param, queue = false) {
399
+ try {
400
+ this.state.setUpdating(true);
401
+ const params = this.state.getQueryParamsValue();
402
+ const response = queue
403
+ ? await this.service.getQueueTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder, param)
404
+ : await this.service.getTasksForUser(params.user || '', params.skip, params.limit, params.sortParam || 'CreatedDate', params.sortOrder, param);
405
+ if (response instanceof ErrorResponse) {
406
+ this.utilService.showError(response.ErrorMsg);
407
+ return;
408
+ }
409
+ response.Result.forEach((x) => {
410
+ x.Id = x.Code;
411
+ });
412
+ this.state.setRequests(response.Result);
413
+ this.state.updateQueryParams({ skip: response.Skip });
414
+ }
415
+ catch (error) {
416
+ throw error;
417
+ }
418
+ finally {
419
+ this.state.setUpdating(false);
420
+ }
421
+ }
422
+ updateQueryParams(params) {
423
+ this.state.updateQueryParams(params);
424
+ // this.loadRequests();
425
+ }
426
+ async addRequest(request) {
427
+ try {
428
+ this.state.setUpdating(true);
429
+ const newRequest = { ...request };
430
+ this.state.addRequest(newRequest);
431
+ const response = await this.service.saveTasks([newRequest]);
432
+ if (response instanceof ErrorResponse) {
433
+ this.utilService.showError(response.ErrorMsg);
434
+ return;
435
+ }
436
+ this.utilService.showSuccess('Task created successfully');
437
+ await this.loadRequests(); // Reload to get server-side changes
438
+ }
439
+ catch (error) {
440
+ this.state.removeRequest(request.Code);
441
+ throw error;
442
+ }
443
+ finally {
444
+ this.state.setUpdating(false);
445
+ }
446
+ }
447
+ resetQueryParams() {
448
+ this.state.resetQueryParams();
449
+ }
450
+ async updateRequest(request) {
451
+ try {
452
+ this.state.setUpdating(true);
453
+ const response = await this.service.saveTasks([request]);
454
+ if (response instanceof ErrorResponse) {
455
+ this.utilService.showError(response.ErrorMsg);
456
+ return;
457
+ }
458
+ this.utilService.showSuccess('Task updated successfully');
459
+ this.state.updateRequest(request);
460
+ }
461
+ catch (error) {
462
+ throw error;
463
+ }
464
+ finally {
465
+ this.state.setUpdating(false);
466
+ }
467
+ }
468
+ async deleteRequest(requestId) {
469
+ try {
470
+ this.state.setUpdating(true);
471
+ await lastValueFrom(this.service.deleteTasks([requestId]));
472
+ this.state.removeRequest(requestId);
473
+ }
474
+ catch (error) {
475
+ throw error;
476
+ }
477
+ finally {
478
+ this.state.setUpdating(false);
479
+ }
480
+ }
481
+ async approveRequest(request) {
482
+ try {
483
+ this.state.setUpdating(true);
484
+ const response = await this.service.processTasks([request], true);
485
+ if (response instanceof ErrorResponse) {
486
+ this.utilService.showError(response.ErrorMsg);
487
+ return;
488
+ }
489
+ // console.log(response);
490
+ const data = response?.[0];
491
+ if (data) {
492
+ this.state.updateRequest(data);
493
+ }
494
+ }
495
+ catch (error) {
496
+ throw error;
497
+ }
498
+ finally {
499
+ this.state.setUpdating(false);
500
+ }
501
+ }
502
+ async loadNextActions(taskCode) {
503
+ try {
504
+ this.state.setUpdating(true);
505
+ const params = this.state.getQueryParamsValue();
506
+ const requests = await this.service.getNextActions(taskCode);
507
+ if (requests instanceof ErrorResponse) {
508
+ this.utilService.showError(requests.ErrorMsg);
509
+ return [];
510
+ }
511
+ this.state.setNextActions(requests);
512
+ // if (requests.length > 0) {
513
+ // // this.selectedAction = actions[0];
514
+ // this.loadNextActors(taskCode, requests[0].ToStage);
515
+ // }
516
+ return requests;
517
+ }
518
+ catch (error) {
519
+ return [];
520
+ }
521
+ finally {
522
+ this.state.setUpdating(false);
523
+ }
524
+ }
525
+ async loadPreviousActions(taskCode) {
526
+ try {
527
+ this.state.setUpdating(true);
528
+ const requests = await this.service.getPreviousActions(taskCode);
529
+ if (requests instanceof ErrorResponse) {
530
+ this.utilService.showError(requests.ErrorMsg);
531
+ return [];
532
+ }
533
+ this.state.setNextActions(requests);
534
+ return requests;
535
+ }
536
+ catch (error) {
537
+ return [];
538
+ }
539
+ finally {
540
+ this.state.setUpdating(false);
541
+ }
542
+ }
543
+ async loadAllPreviousActions(taskCode) {
544
+ try {
545
+ this.state.setUpdating(true);
546
+ const requests = await this.service.getAllPreviousActions(taskCode);
547
+ if (requests instanceof ErrorResponse) {
548
+ this.utilService.showError(requests.ErrorMsg);
549
+ return [];
550
+ }
551
+ this.state.setNextActions(requests);
552
+ return requests;
553
+ }
554
+ catch (error) {
555
+ return [];
556
+ }
557
+ finally {
558
+ this.state.setUpdating(false);
559
+ }
560
+ }
561
+ async loadNextActors(taskCode, forCurrentStage, stageCode) {
562
+ try {
563
+ this.state.setUpdating(true);
564
+ const params = this.state.getQueryParamsValue();
565
+ const requests = await this.service.getNextActors(taskCode, forCurrentStage, stageCode);
566
+ if (requests instanceof ErrorResponse) {
567
+ this.utilService.showError(requests.ErrorMsg);
568
+ return [];
569
+ }
570
+ this.state.setNextActors(requests);
571
+ return requests;
572
+ }
573
+ catch (error) {
574
+ return [];
575
+ }
576
+ finally {
577
+ this.state.setUpdating(false);
578
+ }
579
+ }
580
+ async loadTaskForms(taskCode) {
581
+ try {
582
+ this.state.setUpdating(true);
583
+ const requests = await this.service.getCurrentFormsForTask(taskCode);
584
+ if (requests instanceof ErrorResponse) {
585
+ this.utilService.showError(requests.ErrorMsg);
586
+ return [];
587
+ }
588
+ this.state.setTaskForms(requests);
589
+ return requests;
590
+ }
591
+ catch (error) {
592
+ return [];
593
+ }
594
+ finally {
595
+ this.state.setUpdating(false);
596
+ }
597
+ }
598
+ async passOn(action, request, comment, recipient, currentUser) {
599
+ try {
600
+ this.state.setUpdating(true);
601
+ const response = await this.service.passOn(action.FromStage, action.ToStage, {
602
+ ...request,
603
+ FullStages: [],
604
+ CurrentActors: request.CurrentActors.map((c) => ({
605
+ ...c,
606
+ ActorTags: [],
607
+ })),
608
+ }, comment, recipient ?? undefined);
609
+ if (response instanceof ErrorResponse) {
610
+ this.utilService.showError(response.ErrorMsg);
611
+ return;
612
+ }
613
+ // console.log(response);
614
+ const data = response;
615
+ if (data) {
616
+ if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
617
+ this.state.updateRequest(data);
618
+ }
619
+ else {
620
+ this.state.removeRequest(request.Code);
621
+ }
622
+ this.utilService.showSuccess('Task passed on successfully');
623
+ }
624
+ }
625
+ catch (error) {
626
+ }
627
+ finally {
628
+ this.state.setUpdating(false);
629
+ }
630
+ }
631
+ async passBack(action, request, comment, recipient, currentUser) {
632
+ try {
633
+ this.state.setUpdating(true);
634
+ const response = await this.service.passBack(
635
+ // Alternate from and to stage o.
636
+ action.ToStage, action.FromStage, {
637
+ ...request,
638
+ FullStages: [],
639
+ CurrentActors: request.CurrentActors.map((c) => ({
640
+ ...c,
641
+ ActorTags: [],
642
+ })),
643
+ }, comment, recipient ?? undefined);
644
+ if (response instanceof ErrorResponse) {
645
+ this.utilService.showError(response.ErrorMsg);
646
+ return;
647
+ }
648
+ // console.log(response);
649
+ const data = response;
650
+ if (data) {
651
+ if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
652
+ this.state.updateRequest(data);
653
+ }
654
+ else {
655
+ this.state.removeRequest(request.Code);
656
+ }
657
+ this.utilService.showSuccess('Task passed back successfully');
658
+ }
659
+ }
660
+ catch (error) {
661
+ throw error;
662
+ }
663
+ finally {
664
+ this.state.setUpdating(false);
665
+ }
666
+ }
667
+ async skipTo(from, to, request, comment, recipient, currentUser) {
668
+ try {
669
+ this.state.setUpdating(true);
670
+ const response = await this.service.skipTo(from, to, {
671
+ ...request,
672
+ FullStages: [],
673
+ CurrentActors: request.CurrentActors.map((c) => ({
674
+ ...c,
675
+ ActorTags: [],
676
+ })),
677
+ }, comment, recipient ?? undefined);
678
+ if (response instanceof ErrorResponse) {
679
+ this.utilService.showError(response.ErrorMsg);
680
+ return;
681
+ }
682
+ // console.log(response);
683
+ const data = response;
684
+ if (data) {
685
+ if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
686
+ this.state.updateRequest(data);
687
+ }
688
+ else {
689
+ this.state.removeRequest(request.Code);
690
+ }
691
+ this.utilService.showSuccess('Task skipped to successfully');
692
+ }
693
+ }
694
+ catch (error) {
695
+ throw error;
696
+ }
697
+ finally {
698
+ this.state.setUpdating(false);
699
+ }
700
+ }
701
+ async reAssign(request, comment, currentUser) {
702
+ try {
703
+ this.state.setUpdating(true);
704
+ const response = await this.service.reAssign({
705
+ ...request,
706
+ FullStages: [],
707
+ CurrentActors: request.CurrentActors.map((c) => ({
708
+ ...c,
709
+ ActorTags: [],
710
+ })),
711
+ }, comment);
712
+ if (response instanceof ErrorResponse) {
713
+ this.utilService.showError(response.ErrorMsg);
714
+ return;
715
+ }
716
+ // console.log(response);
717
+ const data = response;
718
+ if (data) {
719
+ if (data.CurrentActors.map((c) => c.Identifier).includes(currentUser)) {
720
+ this.state.updateRequest(data);
721
+ }
722
+ else {
723
+ this.state.removeRequest(request.Code);
724
+ }
725
+ this.utilService.showSuccess('Task re-assigned successfully');
726
+ }
727
+ }
728
+ catch (error) {
729
+ throw error;
730
+ }
731
+ finally {
732
+ this.state.setUpdating(false);
733
+ }
734
+ }
735
+ async fillForm(form, taskCode) {
736
+ try {
737
+ this.state.setUpdating(true);
738
+ const filledForm = await this.service.fillForm(form, taskCode);
739
+ if (filledForm instanceof ErrorResponse) {
740
+ this.utilService.showError(filledForm.ErrorMsg);
741
+ throw new Error(filledForm.ErrorMsg);
742
+ }
743
+ return filledForm;
744
+ }
745
+ catch (error) {
746
+ throw error;
747
+ }
748
+ finally {
749
+ this.state.setUpdating(false);
750
+ }
751
+ }
752
+ // Load more handling
753
+ async loadMore(queue = false) {
754
+ try {
755
+ this.state.setUpdating(true);
756
+ const currentParams = this.state.getQueryParamsValue();
757
+ // const searchTerm = this.state.getSearchTermValue();
758
+ const searchTerm = this.state.getSearchTermValue();
759
+ // Update skip value
760
+ // Load and append data
761
+ const response = searchTerm
762
+ ? queue
763
+ ? await this.service.getQueueTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder, searchTerm)
764
+ : await this.service.getTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder, searchTerm)
765
+ : queue
766
+ ? await this.service.getQueueTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder)
767
+ : await this.service.getTasksForUser(currentParams.user || '', currentParams.skip, currentParams.limit, currentParams.sortParam || 'CreatedDate', currentParams.sortOrder);
768
+ if (response instanceof ErrorResponse) {
769
+ this.utilService.showError(response.ErrorMsg);
770
+ return;
771
+ }
772
+ const { Skip, PageSize, Result } = response;
773
+ response.Result.forEach((x) => {
774
+ x.Id = x.Code;
775
+ });
776
+ this.state.appendRequests(response.Result);
777
+ this.state.updateQueryParams({
778
+ skip: Skip > 0 ? Skip : Result.length,
779
+ limit: currentParams.limit,
780
+ });
781
+ }
782
+ catch (error) {
783
+ throw error;
784
+ }
785
+ finally {
786
+ this.state.setUpdating(false);
787
+ }
788
+ }
789
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, deps: [{ token: MyQueueService }, { token: MyQueueState }, { token: i3.UtilService }], target: i0.ɵɵFactoryTarget.Injectable });
790
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, providedIn: 'root' });
791
+ }
792
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueFacade, decorators: [{
793
+ type: Injectable,
794
+ args: [{
795
+ providedIn: 'root', // 👈 Add this line
796
+ }]
797
+ }], ctorParameters: () => [{ type: MyQueueService }, { type: MyQueueState }, { type: i3.UtilService }] });
798
+
799
+ class TasksFormComponent {
800
+ fb;
801
+ taskFacade;
802
+ envSvc;
803
+ utilService;
804
+ state;
805
+ operationPopupService;
806
+ workflowAPI = '';
807
+ get currentData() {
808
+ return this._currentData;
809
+ }
810
+ set currentData(value) {
811
+ this._currentData = value;
812
+ if (value?.data) {
813
+ this.form.patchValue({
814
+ Name: value.data.Name || '',
815
+ Description: value.data.Description || '',
816
+ WorkflowCode: value.data.WorkflowCode || '',
817
+ Status: value.data.Status || '',
818
+ });
819
+ if (this.readOnly) {
820
+ this.form.disable();
821
+ }
822
+ }
823
+ else {
824
+ this.form.reset();
825
+ }
826
+ }
827
+ _currentData = null;
828
+ readOnly = false;
829
+ taskForm = null;
830
+ active = 0;
831
+ dataType = DataType.Text;
832
+ onTaskFormSave = new EventEmitter();
833
+ onSave = new EventEmitter();
834
+ form;
835
+ statuses = Object.values(Status);
836
+ workflows = [];
837
+ loadingTaskForm = false;
838
+ taskFormView = false;
839
+ // active: boolean = false;
840
+ constructor(fb, taskFacade, envSvc, utilService, state, operationPopupService) {
841
+ this.fb = fb;
842
+ this.taskFacade = taskFacade;
843
+ this.envSvc = envSvc;
844
+ this.utilService = utilService;
845
+ this.state = state;
846
+ this.operationPopupService = operationPopupService;
847
+ this.taskFacade.getWorkflow$().subscribe((workflows) => {
848
+ this.workflows = workflows;
849
+ });
850
+ this.form = this.fb.group({
851
+ Name: ['', { validators: [Validators.required] }],
852
+ Description: ['', { validators: [Validators.required] }],
853
+ WorkflowCode: ['', { validators: [Validators.required] }],
854
+ Status: ['', { validators: [Validators.required] }],
855
+ TaskForms: [],
856
+ });
857
+ this.workflowAPI = this.envSvc.environment.WorkFlowAPI;
858
+ }
859
+ ngOnInit() {
860
+ try {
861
+ this.taskFacade.loadWorkflows().then(() => { });
862
+ }
863
+ catch (error) {
864
+ // Handle error
865
+ }
866
+ this.form.get('WorkflowCode')?.valueChanges.subscribe((value) => {
867
+ if (value) {
868
+ const selectedWorkflow = this.workflows.find(({ Code }) => Code === value);
869
+ if (selectedWorkflow?.Form) {
870
+ this.loadingTaskForm = true;
871
+ this.taskFacade
872
+ .loadFormsWithParam(selectedWorkflow.Form)
873
+ .then((form) => {
874
+ if (form) {
875
+ this.taskForm = form;
876
+ }
877
+ })
878
+ .finally(() => {
879
+ this.loadingTaskForm = false;
880
+ });
881
+ }
882
+ else {
883
+ this.taskForm = null;
884
+ }
885
+ }
886
+ });
887
+ }
888
+ handleSubmit() {
889
+ if (this.form.valid) {
890
+ // Emit save event with form value
891
+ if (!this.taskForm ||
892
+ this.form.get('TaskForms')?.value?.length > 0) {
893
+ this.onSave.emit(this.form.value);
894
+ }
895
+ }
896
+ }
897
+ onDelete() {
898
+ // Emit delete event
899
+ }
900
+ sendTaskForm() {
901
+ if (this.taskForm) {
902
+ this.form
903
+ .get('TaskForms')
904
+ ?.setValue([{ ...this.taskForm, Swimlane: '' }]);
905
+ this.taskFormView = false;
906
+ this.onTaskFormSave.emit(this.taskForm);
907
+ }
908
+ }
909
+ areRequiredPropertiesFilled() {
910
+ const properties = this.taskForm?.Entities[this.active].Properties || [];
911
+ // Check if all required properties have valid values
912
+ // return properties.every((property: any) => {
913
+ // console.log(property);
914
+ // return (
915
+ // !property.isRequired ||
916
+ // (property.Value !== undefined &&
917
+ // property.Value !== null &&
918
+ // property.Value !== '')
919
+ // );
920
+ // });
921
+ return true;
922
+ }
923
+ disableProcessing() {
924
+ const selectedWorkflow = this.workflows.find(({ Code }) => Code === this.form.get('WorkflowCode')?.value);
925
+ if (selectedWorkflow?.Form &&
926
+ this.currentData?.data?.TaskForms?.length === 0) {
927
+ return true;
928
+ }
929
+ else
930
+ return this.form.invalid;
931
+ }
932
+ getRoute(item) {
933
+ const workflow = this.workflows.find((x) => x.Code == item.WorkflowCode);
934
+ if (workflow) {
935
+ return workflow.Route || null;
936
+ }
937
+ return null;
938
+ }
939
+ viewSource(item, route) {
940
+ this.utilService.openRelativeRouteInNewWindow(`${route}/${item.Code}`);
941
+ }
942
+ async followTask(task) {
943
+ this.state.setUpdating(true);
944
+ const response = await this.operationPopupService.followTask({
945
+ ...task,
946
+ FullStages: [],
947
+ CurrentActors: task.CurrentActors.map((c) => ({
948
+ ...c,
949
+ ActorTags: [],
950
+ })),
951
+ });
952
+ this.state.setUpdating(false);
953
+ if (response instanceof ErrorResponse) {
954
+ this.utilService.showError(response.ErrorMsg);
955
+ return;
956
+ }
957
+ this.utilService.showSuccess('Task followed successfully');
958
+ }
959
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, deps: [{ token: i1.FormBuilder }, { token: i2.TaskFacade }, { token: i3.EnvironmentService }, { token: i3.UtilService }, { token: MyQueueState }, { token: i5.OperationPopupService }], target: i0.ɵɵFactoryTarget.Component });
960
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TasksFormComponent, selector: "tasks-form", inputs: { currentData: "currentData", readOnly: "readOnly" }, outputs: { onTaskFormSave: "onTaskFormSave", onSave: "onSave" }, ngImport: i0, template: "@if (taskFormView && taskForm) {\n <div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n >\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg':\n active === index,\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n </div>\n\n <div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n\n <!-- Empty state template -->\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n} @else {\n <form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <!-- buttons -->\n <div class=\"flex justify-between gap-4 my-2\">\n <div class=\"flex gap-3\">\n <div *ngIf=\"currentData && getRoute(currentData.data) as workflowRoute\">\n <ng-container\n *ngIf=\"\n currentData && workflowRoute && workflowRoute.trim().length > 0\n \"\n >\n <verbena-button\n *ngIf=\"currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"viewSource(currentData.data, workflowRoute)\"\n text=\"View Source Data\"\n ></verbena-button>\n </ng-container>\n </div>\n <verbena-button\n *ngIf=\"currentData && currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"followTask(currentData.data.TaskData)\"\n text=\"Follow Task\"\n ></verbena-button>\n </div>\n\n <!-- <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button> -->\n <!-- <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button> -->\n <verbena-button\n *ngIf=\"!readOnly\"\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n </form>\n}\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.VerbenaInputComponent, selector: "verbena-input", inputs: ["disabled", "label", "placeHolder", "required", "svgPosition", "minLength", "maxLength", "type", "bgColor", "border", "borderRadius", "textColor", "value", "labelPosition", "labelColor", "disable", "readOnly", "min", "max", "showBorder", "showErrorMessage", "errorMessageColor", "errorBorderColor", "errorPosition", "svg", "fontSize", "svgWidth", "svgHeight", "svgColor", "capitalization", "inputContainerClass", "inputFieldClass", "passLength", "inputWrapperClass", "passwordToggle", "customErrorMessages", "icon", "textPass"], outputs: ["valueChange"] }, { kind: "component", type: i5$1.VerbenaButtonComponent, selector: "verbena-button", inputs: ["type", "text", "styleType", "size", "block", "disable", "disabled", "isLoading", "spinnerSize", "spinnerColor", "svg", "svgPosition", "svgWidth", "svgHeight", "svgSize", "svgColor", "icon", "useIcon", "iconPosition", "iconColor", "variant", "weight", "bgColor", "textColor", "border", "borderRadius", "pd", "width", "height", "fontSize", "fontWeight", "buttonClass", "buttonTextClass"] }, { kind: "component", type: i5$1.DropDownComponent, selector: "verben-drop-down", inputs: ["options", "width", "overlayWidth", "showHorizontalLine", "horizontalLineColor", "optionLabel", "optionSubLabel", "optionValue", "placeholder", "invalidMessage", "errorPosition", "loadMoreCaption", "display", "showClear", "lazyLoad", "selectKey", "styleClass", "group", "multiselect", "filter", "avoidDuplication", "filterBy", "debounceTime", "minChar", "refPageSize", "disabled", "required", "autoScrollToCurrentItem", "load", "asyncLabel", "search"], outputs: ["optionsChange", "onChange", "onClick", "onClear"] }, { kind: "component", type: i8.FormControlComponent, selector: "form-control", inputs: ["dataType", "value", "boolInputType", "formProperties", "disabled"] }, { kind: "component", type: i9.FormTimerComponent, selector: "app-form-timer", inputs: ["expiryDate"] }] });
961
+ }
962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TasksFormComponent, decorators: [{
963
+ type: Component,
964
+ args: [{ selector: 'tasks-form', template: "@if (taskFormView && taskForm) {\n <div\n *ngIf=\"taskForm.Entities[active]\"\n class=\"flex flex-wrap bg-[#9A9FBF80] rounded-xl px-3 py-2 w-full relative gap-6\"\n >\n <app-form-timer></app-form-timer>\n <div *ngFor=\"let group of taskForm.Entities; let index = index\">\n <p\n (click)=\"active = index\"\n [ngClass]=\"{\n 'bg-[var(--vbn-color-surface)] text-primary rounded-lg shadow-lg':\n active === index,\n }\"\n class=\"px-6 py-2 cursor-pointer\"\n >\n {{ group.Name }}group\n </p>\n </div>\n </div>\n\n <div *ngIf=\"taskForm.Entities[active]; else emptyState\" class=\"mt-4\">\n <form-control\n [dataType]=\"dataType\"\n [formProperties]=\"taskForm.Entities[active].Properties\"\n ></form-control>\n\n <div class=\"flex gap-3 justify-end\">\n <verbena-button\n (click)=\"areRequiredPropertiesFilled()\"\n text=\"CHECK\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n (click)=\"taskFormView = false\"\n text=\"Close task form\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button>\n\n <verbena-button\n class=\"verben-primary-button\"\n (click)=\"sendTaskForm()\"\n [disable]=\"!areRequiredPropertiesFilled()\"\n text=\"Save\"\n ></verbena-button>\n </div>\n </div>\n\n <!-- Empty state template -->\n <ng-template #emptyState>\n <p class=\"mt-4 p-4 text-gray-600 text-center\">\n No entries available for the selected form group.\n </p>\n </ng-template>\n} @else {\n <form\n [formGroup]=\"form\"\n class=\"flex flex-col px-3 pb-3 rounded-xl h-full w-full relative space-y-4\"\n (ngSubmit)=\"handleSubmit()\"\n >\n <verbena-input\n name=\"Name\"\n label=\"Name\"\n formControlName=\"Name\"\n placeHolder=\"Enter Name\"\n />\n <verbena-input\n name=\"Description\"\n label=\"Description\"\n formControlName=\"Description\"\n placeHolder=\"Enter Description\"\n />\n\n <div class=\"space-y-1\">\n <label for=\"workflow\">Workflow</label>\n\n <verben-drop-down\n label=\"Workflow\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n placeholder=\"Select\"\n [options]=\"workflows\"\n optionLabel=\"Name\"\n optionValue=\"Code\"\n id=\"workflow\"\n formControlName=\"WorkflowCode\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <div class=\"space-y-1\">\n <label for=\"status\">Status</label>\n\n <verben-drop-down\n label=\"Status\"\n styleClass=\"w-full\"\n width=\"100%\"\n [multiselect]=\"false\"\n [showClear]=\"true\"\n placeholder=\"Null\"\n [(options)]=\"statuses\"\n id=\"status\"\n formControlName=\"Status\"\n class=\"form-control\"\n >\n </verben-drop-down>\n </div>\n\n <!-- buttons -->\n <div class=\"flex justify-between gap-4 my-2\">\n <div class=\"flex gap-3\">\n <div *ngIf=\"currentData && getRoute(currentData.data) as workflowRoute\">\n <ng-container\n *ngIf=\"\n currentData && workflowRoute && workflowRoute.trim().length > 0\n \"\n >\n <verbena-button\n *ngIf=\"currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"viewSource(currentData.data, workflowRoute)\"\n text=\"View Source Data\"\n ></verbena-button>\n </ng-container>\n </div>\n <verbena-button\n *ngIf=\"currentData && currentData.data.DataState !== 'New'\"\n class=\"verben-switch-button\"\n (click)=\"followTask(currentData.data.TaskData)\"\n text=\"Follow Task\"\n ></verbena-button>\n </div>\n\n <!-- <verbena-button\n width=\"114px\"\n height=\"39px\"\n text=\"Delete\"\n bgColor=\"var(--vbn-color-text-muted)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button> -->\n <!-- <verbena-button\n [disable]=\"!taskForm || loadingTaskForm\"\n (click)=\"taskFormView = true\"\n [text]=\"loadingTaskForm ? 'Checking for form' : 'Fill task form'\"\n styleType=\"ylw-outline\"\n class=\"ml-auto\"\n ></verbena-button> -->\n <verbena-button\n *ngIf=\"!readOnly\"\n type=\"submit\"\n text=\"Save\"\n bgColor=\"var(--vbn-color-primary)\"\n textColor=\"var(--vbn-color-on-primary)\"\n borderRadius=\"10px\"\n pd=\"10px 20px\"\n width=\"114px\"\n height=\"39px\"\n [disable]=\"disableProcessing()\"\n ></verbena-button>\n </div>\n </form>\n}\n" }]
965
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.TaskFacade }, { type: i3.EnvironmentService }, { type: i3.UtilService }, { type: MyQueueState }, { type: i5.OperationPopupService }], propDecorators: { currentData: [{
966
+ type: Input
967
+ }], readOnly: [{
968
+ type: Input
969
+ }], onTaskFormSave: [{
970
+ type: Output
971
+ }], onSave: [{
972
+ type: Output
973
+ }] } });
974
+
975
+ class MyQueueComponent extends BaseDataViewComponent {
976
+ cdr;
977
+ facade;
978
+ state;
979
+ server;
980
+ isGeneral = input(false);
981
+ user = null;
982
+ userName = null;
983
+ filterValue = null;
984
+ config = {
985
+ dataSource: [], // Populate from service
986
+ columns: columns, // Your existing column definitions
987
+ cardDataMapper: (task) => ({
988
+ selected: false,
989
+ title: task.Name,
990
+ data: task,
991
+ body: [
992
+ { title: 'Name', value: task.Name },
993
+ { title: 'Status', value: task.Status },
994
+ ],
995
+ children: [],
996
+ }),
997
+ onDetailView: (task) => {
998
+ // Custom detail view logic
999
+ },
1000
+ };
1001
+ popups;
1002
+ showForm = false;
1003
+ permissionConfig = null;
1004
+ constructor(cdr, facade, state, server) {
1005
+ super();
1006
+ this.cdr = cdr;
1007
+ this.facade = facade;
1008
+ this.state = state;
1009
+ this.server = server;
1010
+ this.facade.getRequests$().subscribe((data) => {
1011
+ this.data.set(data);
1012
+ });
1013
+ this.state.resetPage.subscribe((state) => {
1014
+ if (state) {
1015
+ this.cardDataView.clearData();
1016
+ this.currentData = null;
1017
+ }
1018
+ this.state.resetPage.next(false);
1019
+ });
1020
+ }
1021
+ loadInitialData() {
1022
+ this.facade.resetQueryParams();
1023
+ this.facade.updateQueryParams({ user: this.user || undefined });
1024
+ try {
1025
+ console.log({ FilterValue: this.filterValue });
1026
+ this.filterValue && this.filterValue.trim().length > 0
1027
+ ? this.simulateSearch(this.filterValue)
1028
+ : this.facade.loadRequests(this.isGeneral());
1029
+ }
1030
+ catch (error) {
1031
+ // Handle error
1032
+ }
1033
+ }
1034
+ ngAfterViewInit() {
1035
+ if (this.filterValue &&
1036
+ this.filterValue.trim().length > 0 &&
1037
+ this.dataView.searchValue.trim().length == 0) {
1038
+ //console.log({ SetVal: this.filterValue });
1039
+ this.dataView.searchValue = this.filterValue;
1040
+ //this.cdr.detectChanges();
1041
+ //console.log({ Val: this.dataView.searchValue });
1042
+ }
1043
+ }
1044
+ simulateSearch(filter) {
1045
+ this.facade.search(filter, this.isGeneral(), this.user || undefined);
1046
+ }
1047
+ // protected getCardDataByIdentifier(mailAddress: string): CardData | undefined {
1048
+ // return this.cardData().find(({ data }) => data.MailAddress === mailAddress);
1049
+ // }
1050
+ async loadMore() {
1051
+ try {
1052
+ await this.facade.loadMore(this.isGeneral());
1053
+ }
1054
+ catch (error) {
1055
+ // Handle error
1056
+ }
1057
+ }
1058
+ handleSearch(event) {
1059
+ this.filterValue = event.value;
1060
+ this.facade.search(event.value, this.isGeneral(), this.user || undefined);
1061
+ }
1062
+ getActionNamesForTask(task) {
1063
+ if (this.isGeneral()) {
1064
+ const actions = ['picktask', 'releasetask'];
1065
+ if (this.permissionConfig &&
1066
+ this.permissionConfig.Actions['FollowTask']) {
1067
+ actions.push(...['followtask', 'unfollowtask']);
1068
+ }
1069
+ return actions;
1070
+ }
1071
+ else {
1072
+ const actions = ['passon', 'passback'];
1073
+ if (task.FullStages?.[0]?.IsEntryPoint) {
1074
+ // Remove passback for entry point stages
1075
+ return actions.filter((action) => action !== 'passback');
1076
+ }
1077
+ if (this.permissionConfig && this.permissionConfig.Actions['Reassign']) {
1078
+ actions.push('reassign');
1079
+ }
1080
+ if (this.permissionConfig && this.permissionConfig.Actions['SkipTo']) {
1081
+ actions.push('skipto');
1082
+ }
1083
+ return actions;
1084
+ }
1085
+ }
1086
+ groupByWorkflowCode(task) {
1087
+ return `Workflow: ${task.WorkflowCode}`;
1088
+ }
1089
+ onPopupToggled(isOpen, currentPopup) {
1090
+ if (isOpen) {
1091
+ this.popups.forEach((popup) => {
1092
+ if (popup !== currentPopup && popup.dropdownOpen) {
1093
+ popup.toggleDropdown();
1094
+ }
1095
+ });
1096
+ }
1097
+ }
1098
+ onStateChange(event) {
1099
+ switch (event.key) {
1100
+ case 'create':
1101
+ var newItem = new TaskModel({
1102
+ WorkflowCode: '',
1103
+ Status: TaskStatus.Active,
1104
+ Flowable: '',
1105
+ FlowableData: null,
1106
+ FlowablePath: '',
1107
+ CurrentActors: [],
1108
+ DataState: ObjectState.New,
1109
+ Id: (this.data().length + 1).toString(),
1110
+ });
1111
+ this.facade.addNewRequest(newItem);
1112
+ // const cardData: CardData = {
1113
+ // selected: false,
1114
+ // title: ,
1115
+ // data: newGroup,
1116
+ // body: [],
1117
+ // children: [],
1118
+ // };
1119
+ // this.data = this.data.concat([newGroup]);
1120
+ // this.cardData.push(cardData);
1121
+ // this.userCardClicked(cardData);
1122
+ this.dataView.isTableView = false;
1123
+ break;
1124
+ // case 'filter':
1125
+ // this.showFilter = event.value;
1126
+ // break;
1127
+ // case 'sort':
1128
+ // this.showSort = event.value;
1129
+ // break;
1130
+ // case 'column':
1131
+ // this.showColumn = event.value;
1132
+ // break;
1133
+ default:
1134
+ break;
1135
+ }
1136
+ }
1137
+ cardClicked(item, toggleView = false) {
1138
+ this.currentData = this.cardDataView.onItemClick(item);
1139
+ if (this.currentData &&
1140
+ this.currentData.data.DataState != ObjectState.New &&
1141
+ this.currentData.data.Code.trim().length > 0) {
1142
+ this.getAllTask(this.currentData.data.Code).then((res) => {
1143
+ if (res && this.currentData) {
1144
+ this.currentData.data.TaskData = res;
1145
+ }
1146
+ });
1147
+ }
1148
+ if (toggleView) {
1149
+ this.dataView.toggleView();
1150
+ }
1151
+ }
1152
+ onFormClose(isShow) {
1153
+ this.showForm = isShow;
1154
+ }
1155
+ onFormOpen(isShow) {
1156
+ this.showForm = true;
1157
+ }
1158
+ async formFill(formValues, task) {
1159
+ const payload = formValues;
1160
+ const code = task.Code;
1161
+ const taskCode = task.TaskData ? task.TaskData.Code : '';
1162
+ if (taskCode.trim().length == 0) {
1163
+ return;
1164
+ }
1165
+ this.state.setUpdating(true);
1166
+ try {
1167
+ const res = await this.server.post(`FillForm/${taskCode}`, payload);
1168
+ this.state.setUpdating(false);
1169
+ if (res instanceof ErrorResponse) {
1170
+ return undefined;
1171
+ }
1172
+ else {
1173
+ if (this.action) {
1174
+ await this.passOn(this.action.action?.FromStage, this.action.action?.ToStage, task, this.action.comment, this.action.recipient || '');
1175
+ const updatedItem = await this.getUpdatedRequest(task.Code);
1176
+ if (updatedItem) {
1177
+ task.Status = updatedItem.Status;
1178
+ }
1179
+ this.showForm = false;
1180
+ }
1181
+ }
1182
+ }
1183
+ catch (err) {
1184
+ this.state.setUpdating(false);
1185
+ console.error('PassOn Error:', err);
1186
+ return undefined;
1187
+ }
1188
+ }
1189
+ action = null;
1190
+ // childAction: {
1191
+ // action: WorkflowAction;
1192
+ // comment: string;
1193
+ // recipient?: string;
1194
+ // } | null = null;
1195
+ async handleActionComplete(action, data) {
1196
+ if (data.TaskData &&
1197
+ data.TaskData.TaskForms &&
1198
+ data.TaskData.TaskForms.length > 0) {
1199
+ this.showForm = true;
1200
+ this.action = action;
1201
+ return;
1202
+ }
1203
+ await this.passOn(action.action.FromStage, action.action.ToStage, data, action.comment, action.recipient || '');
1204
+ const updatedItem = await this.getUpdatedRequest(data.Code);
1205
+ if (updatedItem) {
1206
+ data.Status = updatedItem.Status;
1207
+ }
1208
+ }
1209
+ async handlePickCompleted(data) {
1210
+ const taskRes = await this.getAllTask(data.Code);
1211
+ if (taskRes) {
1212
+ data.TaskData = taskRes;
1213
+ }
1214
+ }
1215
+ async passOn(fromStage, toStage, item, comment, recipient) {
1216
+ // const item: MobilizationRequest | null =
1217
+ // this.cardContextHistory.length > 0
1218
+ // ? (this.cardContextHistory[0].data as MobilizationRequest)
1219
+ // : this.currentData
1220
+ // ? (this.currentData.data as MobilizationRequest)
1221
+ // : null;
1222
+ if (!item.TaskData) {
1223
+ return;
1224
+ }
1225
+ const payload = {
1226
+ ...item.TaskData,
1227
+ DataState: ObjectState.Changed,
1228
+ HistoryToDate: item.TaskData.HistoryToDate.map((it) => ({
1229
+ ...it,
1230
+ Actor: {
1231
+ ...it.Actor,
1232
+ ActorTags: [],
1233
+ },
1234
+ })),
1235
+ CurrentActors: item.TaskData.CurrentActors.map((it) => ({
1236
+ ...it,
1237
+ ActorTags: [],
1238
+ })),
1239
+ FullStages: [],
1240
+ };
1241
+ this.state.setUpdating(true);
1242
+ const res = await this.server.post(`PassOn/${fromStage}/${toStage}/${encodeURIComponent(comment || '')}${recipient ? '/' + recipient : ''}`, payload);
1243
+ this.state.setUpdating(false);
1244
+ if (res instanceof ErrorResponse) {
1245
+ return;
1246
+ }
1247
+ else {
1248
+ this.getAllTask(item.Code).then((taskRes) => {
1249
+ if (taskRes) {
1250
+ item.TaskData = taskRes;
1251
+ }
1252
+ });
1253
+ }
1254
+ }
1255
+ async getAllTask(code) {
1256
+ this.state.setUpdating(true);
1257
+ const res = await this.server.get(`GetTaskInfo/${code}`);
1258
+ this.state.setUpdating(false);
1259
+ if (res instanceof ErrorResponse) {
1260
+ return undefined;
1261
+ }
1262
+ else {
1263
+ var result = res;
1264
+ return result;
1265
+ }
1266
+ }
1267
+ async getUpdatedRequest(code) {
1268
+ const res = await this.server.get(`GetTasksWithParam/${code}/0/0`);
1269
+ if (res instanceof ErrorResponse) {
1270
+ return undefined;
1271
+ }
1272
+ var result = res;
1273
+ if (result.Result.length > 0) {
1274
+ return result.Result[0];
1275
+ }
1276
+ else {
1277
+ return undefined;
1278
+ }
1279
+ }
1280
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: MyQueueFacade }, { token: MyQueueState }, { token: i3.HttpWebRequestService }], target: i0.ɵɵFactoryTarget.Component });
1281
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: MyQueueComponent, selector: "lib-my-queue", inputs: { isGeneral: { classPropertyName: "isGeneral", publicName: "isGeneral", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: false, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: false, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: false, isRequired: false, transformFunction: null }, permissionConfig: { classPropertyName: "permissionConfig", publicName: "permissionConfig", isSignal: false, isRequired: false, transformFunction: null } }, providers: [MyQueueService, MyQueueState, MyQueueFacade], viewQueries: [{ propertyName: "popups", predicate: ["popup"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: false,\n isSort: false,\n isExport: false,\n isSelect: true,\n isCreate: false,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [searchValue]=\"filterValue || ''\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"handleSearch($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n [groupBy]=\"groupByWorkflowCode\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a\n *ngIf=\"\n permissionConfig && permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </ng-template>\n <ng-template #header>\n <strong class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-item>\n <div (click)=\"cardClicked(item)\" class=\"flex\">\n <div\n (click)=\"cardClicked(item)\"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ item.title }}</span\n >\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\"\n >Status:</label\n >\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n *ngIf=\"\n permissionConfig &&\n permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.data)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n <div class=\"flex flex-col gap-3\">\n <app-workflow-stage\n *ngIf=\"\n currentData &&\n currentData.data.Code.trim().length > 0 &&\n currentData.data.TaskData &&\n !this.isGeneral()\n \"\n [user]=\"user\"\n [userName]=\"userName\"\n [isVisible]=\"showForm\"\n [taskCode]=\"currentData.data.TaskData.Code\"\n (onClose)=\"onFormClose($event)\"\n (onFormCompleted)=\"formFill($event, currentData.data)\"\n [forms]=\"currentData.data.TaskData.TaskForms\"\n [currentActors]=\"currentData.data.TaskData.CurrentActors\"\n [historyToDate]=\"currentData.data.TaskData.HistoryToDate\"\n [nextActions]=\"currentData.data.TaskData.NextActions\"\n [task]=\"currentData.data.TaskData\"\n (onActionCompleted)=\"\n handleActionComplete($event, currentData.data)\n \"\n (onPickCompleted)=\"handlePickCompleted(currentData.data)\"\n >\n </app-workflow-stage>\n <tasks-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n [readOnly]=\"true\"\n ></tasks-form>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-end\">\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}::ng-deep .toolbar>div:nth-child(1){justify-content:start}\n"], dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$1.DataTableComponent, selector: "lib-data-table", inputs: ["data", "columns", "dataKey", "formGroupConfig", "groupBy", "useVirtualScroll", "virtualScrollItemSize", "styleConfig"], outputs: ["rowEdit", "rowSave", "rowRevert", "rowDelete", "selectionChange"] }, { kind: "directive", type: i5$1.ColumnDirective, selector: "[libColumn]", inputs: ["libColumn"] }, { kind: "component", type: i5$1.SvgComponent, selector: "verben-svg", inputs: ["icon", "width", "height", "fill", "stroke", "type", "size"] }, { kind: "component", type: i5$1.DataViewComponent, selector: "verben-data-view", inputs: ["buttonClass", "iconClass", "activeIconClass", "columnCustomClass", "filterCustomClass", "sortCustomClass", "extendCustomClass", "exportCustomClass", "selectCustomClass", "importCustomClass", "zIndex", "createCustomClass", "tableIcon", "cardIcon", "cardClass", "tableClass", "searchKey", "searchValue", "viewState", "searchTemplate", "importTemplate", "columnTemplate", "extendTemplate", "filterTemplate", "sortTemplate", "children", "exportTemplate", "createTemplate", "selectedColumnCount", "selectedSortCount", "selectedFilterTableCount", "inputWidth", "milliseconds", "showColumnChild", "showSortChild", "showFilterChild", "showImportChild", "showExportChild", "showExtendChild", "create", "showSelected", "useTwoWayBinding", "isTableView"], outputs: ["viewChange", "stateChange", "onSearchChange"] }, { kind: "component", type: i5$1.CardDataViewComponent, selector: "verben-card-data-view", inputs: ["pd", "mg", "lHeight", "rHeight", "rWidth", "lWidth", "textColor", "lbgColor", "rbgColor", "border", "display", "borderRadius", "activeCss", "inActiveCss", "displayAsRow", "cardDataList", "dataId", "totalRecords", "footer", "noOfVisibleChildren", "showEditIcon", "useVirtualScroll", "virtualScrollItemSize", "onItemClick", "onCardChildClick"], outputs: ["editClicked", "loadMoreClick"] }, { kind: "component", type: i5$1.LeftCardDataComponent, selector: "verben-left-card-data", inputs: ["pd", "mg", "height", "weight", "activeCss", "inActiveCss", "cardDataList", "iconCollapse", "iconExpanded", "parent", "useVirtualScroll", "virtualScrollItemSize", "dataId", "cardActions", "cardChildActions", "cardActionsPosition"] }, { kind: "component", type: i5$1.LeftCardDataViewComponent, selector: "verben-left-card-data-view", inputs: ["cardDataList"] }, { kind: "component", type: i5$1.RightCardDataViewComponent, selector: "verben-right-card-data-view", inputs: ["parentData", "chilData", "meth"] }, { kind: "component", type: i5$1.CardDataViewFooterComponent, selector: "verben-card-data-view-footer" }, { kind: "component", type: i5$1.TableFilterComponent, selector: "verben-table-filter", inputs: ["filterOptions", "columns", "data", "initialFilters", "pd", "mg", "height", "width", "bgColor", "boxShadow", "textColor", "primaryColor", "secondaryColor", "tertiaryColor", "border", "borderRadius", "selectWidth", "maxFilterLength", "savedFilters", "tooltip", "saveCallback"], outputs: ["filtersApplied", "resetSortData", "filterApplied", "resetFilter"] }, { kind: "component", type: i5$1.DataExportComponent, selector: "lib-data-export", inputs: ["columns", "data", "dataFetchUrl", "dataQueryParameters"], outputs: ["exportDataEvent"] }, { kind: "component", type: i5$1.DataColumnsComponent, selector: "lib-data-columns", inputs: ["columns", "enableDragAndDrop", "maxVisibleItems", "selectedColumns"], outputs: ["columnsUpdated"] }, { kind: "component", type: i5$1.DataSortComponent, selector: "lib-data-sort", inputs: ["columns", "data", "enableDragAndDrop"], outputs: ["sortApplied", "resetFilter"] }, { kind: "directive", type: i6$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i5.OperationPopupComponent, selector: "lib-operation-popup", inputs: ["user", "task", "allowedActions"], outputs: ["actionComplete"] }, { kind: "component", type: i8$1.WorkflowStageComponent, selector: "app-workflow-stage", inputs: ["historyToDate", "taskCode", "forms", "isVisible", "readOnly", "currentActors", "user", "userName", "nextActions", "task"], outputs: ["onActionCompleted", "onPickCompleted", "onCommentCompleted", "onFormCompleted", "onOpen", "onClose"] }, { kind: "component", type: TasksFormComponent, selector: "tasks-form", inputs: ["currentData", "readOnly"], outputs: ["onTaskFormSave", "onSave"] }] });
1282
+ }
1283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueComponent, decorators: [{
1284
+ type: Component,
1285
+ args: [{ selector: 'lib-my-queue', providers: [MyQueueService, MyQueueState, MyQueueFacade], template: "<div class=\"space-y-8\">\n <verben-data-view\n #vdv\n [viewState]=\"{\n isSearch: true,\n isColumn: true,\n isFilter: false,\n isSort: false,\n isExport: false,\n isSelect: true,\n isCreate: false,\n isToggle: true,\n }\"\n [buttonClass]=\"'my-custom-button-class'\"\n [iconClass]=\"'my-icon-class'\"\n [activeIconClass]=\"'my-active-icon-class'\"\n [selectedColumnCount]=\"0\"\n [selectedSortCount]=\"0\"\n [searchValue]=\"filterValue || ''\"\n [selectedFilterTableCount]=\"0\"\n (viewChange)=\"onViewChange($event)\"\n (stateChange)=\"onStateChange($event)\"\n (onSearchChange)=\"handleSearch($event)\"\n >\n <div table-content>\n <lib-data-table\n [data]=\"data()\"\n [columns]=\"config.columns\"\n [styleConfig]=\"styles\"\n (selectionChange)=\"onSelectionChange($event)\"\n [groupBy]=\"groupByWorkflowCode\"\n >\n <ng-container libColumn=\"history\">\n <ng-template #cell let-value let-deleteRow>\n <a\n *ngIf=\"\n permissionConfig && permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"['/workflow/task-history', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view history</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"workflow\">\n <ng-template #cell let-value>\n <a\n [routerLink]=\"['/workflow/workflows', value]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)]\"\n >view Workflow</a\n >\n </ng-template>\n </ng-container>\n\n <ng-container libColumn=\"actions\">\n <ng-template #cell let-row=\"row\">\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"row\"\n [allowedActions]=\"getActionNamesForTask(row)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </ng-template>\n <ng-template #header>\n <strong class=\"text-center\">Actions</strong>\n </ng-template>\n </ng-container>\n </lib-data-table>\n </div>\n <div card-content>\n <verben-card-data-view\n borderRadius=\"12px\"\n (loadMoreClick)=\"loadMore()\"\n #vdcv\n dataId=\"Id\"\n border=\"5px\"\n [cardDataList]=\"cardData()\"\n rbgColor=\"var(--vbn-color-surface-alt)\"\n mg=\"20px\"\n >\n <verben-left-card-data-view class=\"space-y-7\">\n <verben-left-card-data\n #vlcd\n [parent]=\"vdcv\"\n dataId=\"Code\"\n class=\"bg-secondary-100 rounded-xl border-primary border-[1px]\"\n [cardDataList]=\"cardData()\"\n >\n <ng-template #card let-item>\n <div (click)=\"cardClicked(item)\" class=\"flex\">\n <div\n (click)=\"cardClicked(item)\"\n class=\"flex cursor-pointer w-full bg-secondary rounded-xl\"\n >\n <div\n class=\"w-3 rounded-xl rounded-tr-none rounded-br-none\"\n [ngClass]=\"\n item.selected ? 'bg-primary' : 'bg-secondary-200'\n \"\n ></div>\n <div class=\"flex flex-col py-2 px-4 w-full\">\n <div class=\"flex items-center gap-4 justify-between\">\n <div class=\"grid gap-y-2\">\n <span\n class=\"font-semibold text-[var(--vbn-color-on-primary)]\"\n >{{ item.title }}</span\n >\n <p class=\"flex items-center\">\n <label for=\"phone\" class=\"text-[10px] font-light\"\n >Status:</label\n >\n <span id=\"phone\" class=\"text-sm\">{{\n item.data.Status\n }}</span>\n </p>\n </div>\n\n <div class=\"grid gap-y-2\">\n <span for=\"role\" class=\"font-light\">{{\n item.data.Code\n }}</span>\n\n <div\n (click)=\"$event.stopPropagation()\"\n class=\"flex items-end gap-4\"\n >\n <a\n *ngIf=\"\n permissionConfig &&\n permissionConfig.Actions['ViewHistory']\n \"\n [routerLink]=\"[\n '/workflow/task-history',\n item.data.Code,\n ]\"\n routerLinkActive=\"router-link-active\"\n class=\"underline text-[var(--vbn-color-border-focus)] text-xs relative z-10\"\n >view history</a\n >\n\n <lib-operation-popup\n [user]=\"user || ''\"\n [task]=\"item.data\"\n [allowedActions]=\"getActionNamesForTask(item.data)\"\n (actionComplete)=\"loadInitialData()\"\n >\n <div\n trigger\n class=\"cursor-pointer p-2 -m-2 inline-flex items-center justify-center\"\n >\n <verben-svg\n icon=\"dots\"\n [width]=\"3\"\n [height]=\"18\"\n class=\"w-auto\"\n ></verben-svg>\n </div>\n </lib-operation-popup>\n </div>\n </div>\n </div>\n\n <!-- <div class=\"flex\">\n <span class=\"font-normal text-sm\">{{ item.title }}</span>\n </div>\n @for (ciItem of item.body; track ciItem.value) {\n <div class=\"\">\n <span class=\"text-muted font-light text-xs\"\n >{{ ciItem.title }}:</span\n >\n <span class=\"text-black\">{{ ciItem.value }}</span>\n </div>\n } -->\n </div>\n </div>\n </div>\n </ng-template>\n </verben-left-card-data>\n </verben-left-card-data-view>\n\n <verben-right-card-data-view>\n <ng-template #parent>\n <!-- <lib-user-request-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n (onApproval)=\"onApprove($event)\"\n ></lib-user-request-form> -->\n <div class=\"flex flex-col gap-3\">\n <app-workflow-stage\n *ngIf=\"\n currentData &&\n currentData.data.Code.trim().length > 0 &&\n currentData.data.TaskData &&\n !this.isGeneral()\n \"\n [user]=\"user\"\n [userName]=\"userName\"\n [isVisible]=\"showForm\"\n [taskCode]=\"currentData.data.TaskData.Code\"\n (onClose)=\"onFormClose($event)\"\n (onFormCompleted)=\"formFill($event, currentData.data)\"\n [forms]=\"currentData.data.TaskData.TaskForms\"\n [currentActors]=\"currentData.data.TaskData.CurrentActors\"\n [historyToDate]=\"currentData.data.TaskData.HistoryToDate\"\n [nextActions]=\"currentData.data.TaskData.NextActions\"\n [task]=\"currentData.data.TaskData\"\n (onActionCompleted)=\"\n handleActionComplete($event, currentData.data)\n \"\n (onPickCompleted)=\"handlePickCompleted(currentData.data)\"\n >\n </app-workflow-stage>\n <tasks-form\n [currentData]=\"currentData\"\n (switchView)=\"vdv.toggleView()\"\n [readOnly]=\"true\"\n ></tasks-form>\n </div>\n </ng-template>\n </verben-right-card-data-view>\n\n <verben-card-data-view-footer class=\"w-full\">\n <div\n [ngClass]=\"{\n 'flex gap-2 items-center': true,\n 'justify-end': true,\n }\"\n >\n <!-- <verbena-button\n *ngIf=\"!vdcv.hasCurrentItem()\"\n [fontWeight]=\"'bold'\"\n [bgColor]=\"'var(--vbn-color-text-muted)'\"\n [borderRadius]=\"'4px'\"\n [textColor]=\"'var(--vbn-color-surface)'\"\n [pd]=\"'9.79px 37.28px'\"\n [text]=\"'Delete'\"\n >\n </verbena-button> -->\n <div\n class=\"flex {{\n vdcv.hasCurrentItem() ? 'flex-1' : ''\n }} justify-end items-center gap-5\"\n >\n <span class=\"paginator-text\"\n >{{ cardData().length }} records loaded</span\n >\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n </verben-card-data-view-footer>\n </verben-card-data-view>\n </div>\n <div column-content>\n <lib-data-columns\n [columns]=\"config.columns\"\n (columnsUpdated)=\"onColumnsUpdated($event)\"\n ></lib-data-columns>\n </div>\n <div filter-content>\n <verben-table-filter\n [border]=\"'1px solid var(--vbn-color-primary)'\"\n borderRadius=\"10px\"\n boxShadow=\"2px 2px 2px 0px silver\"\n bgColor=\"white\"\n width=\"420px\"\n textColor=\"black\"\n pd=\"1rem\"\n primaryColor=\"var(--vbn-color-primary)\"\n secondaryColor=\"var(--vbn-color-border-focus)\"\n tertiaryColor=\"var(--vbn-color-on-primary)\"\n [filterOptions]=\"filterArray\"\n [maxFilterLength]=\"3\"\n ></verben-table-filter>\n </div>\n <div sort-content>\n <lib-data-sort\n [columns]=\"config.columns\"\n [data]=\"data()\"\n (sortApplied)=\"onSortUpdated($event)\"\n ></lib-data-sort>\n </div>\n <div export-content>\n <lib-data-export [data]=\"data()\" (exportDataEvent)=\"handleExport($event)\">\n </lib-data-export>\n </div>\n </verben-data-view>\n\n <div *ngIf=\"vdv.isTableView\" class=\"flex gap-2 justify-end\">\n <div class=\"flex justify-end items-center gap-5\">\n <span class=\"paginator-text\">{{ cardData().length }} records loaded</span>\n <button\n (click)=\"loadMore()\"\n class=\"load-more view-links text-[var(--vbn-color-border-focus)] underline\"\n >\n Load more\n </button>\n </div>\n </div>\n</div>\n", styles: [".view-links{color:var(--vbn-color-border-focus);cursor:pointer}::ng-deep .toolbar>div:nth-child(1){justify-content:start}\n"] }]
1286
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: MyQueueFacade }, { type: MyQueueState }, { type: i3.HttpWebRequestService }], propDecorators: { user: [{
1287
+ type: Input
1288
+ }], userName: [{
1289
+ type: Input
1290
+ }], filterValue: [{
1291
+ type: Input
1292
+ }], popups: [{
1293
+ type: ViewChildren,
1294
+ args: ['popup']
1295
+ }], permissionConfig: [{
1296
+ type: Input
1297
+ }] } });
1298
+
1299
+ class MyQueueModule {
1300
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1301
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, declarations: [MyQueueComponent, TasksFormComponent], imports: [CommonModule,
1302
+ SharedModule,
1303
+ RouterLink,
1304
+ FormControlerModule,
1305
+ FormTimerModule,
1306
+ OperationPopupComponent,
1307
+ WorkFlowStageLibModule], exports: [MyQueueComponent] });
1308
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, providers: [TaskFacade, OperationPopupService], imports: [CommonModule,
1309
+ SharedModule,
1310
+ FormControlerModule,
1311
+ FormTimerModule,
1312
+ OperationPopupComponent,
1313
+ WorkFlowStageLibModule] });
1314
+ }
1315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MyQueueModule, decorators: [{
1316
+ type: NgModule,
1317
+ args: [{
1318
+ declarations: [MyQueueComponent, TasksFormComponent],
1319
+ imports: [
1320
+ CommonModule,
1321
+ SharedModule,
1322
+ RouterLink,
1323
+ FormControlerModule,
1324
+ FormTimerModule,
1325
+ OperationPopupComponent,
1326
+ WorkFlowStageLibModule,
1327
+ ],
1328
+ providers: [TaskFacade, OperationPopupService],
1329
+ exports: [MyQueueComponent],
1330
+ }]
1331
+ }] });
1332
+
1333
+ /**
1334
+ * Generated bundle index. Do not edit.
1335
+ */
1336
+
1337
+ export { MyQueueComponent, MyQueueModule, MyQueueService };
1338
+ //# sourceMappingURL=verben-workflow-ui-src-lib-components-my-queue.mjs.map