@colijnit/sharedcomponents 1.0.69 → 253.1.1

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 (205) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +3863 -56
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +38 -0
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +39 -1
  6. package/esm2015/lib/components/activity-list-header/activity-list-header.component.js +67 -0
  7. package/esm2015/lib/components/activity-list-header/activity-list-header.module.js +28 -0
  8. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.js +55 -0
  9. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.component.js +103 -0
  10. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.module.js +34 -0
  11. package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +130 -0
  12. package/esm2015/lib/components/activity-overview-component/component-activity-overview.module.js +26 -0
  13. package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +278 -0
  14. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.js +100 -0
  15. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.js +25 -0
  16. package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +132 -0
  17. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +118 -0
  18. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.js +27 -0
  19. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +88 -0
  20. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.js +24 -0
  21. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +77 -0
  22. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.js +24 -0
  23. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +74 -0
  24. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.js +25 -0
  25. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +105 -0
  26. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.module.js +25 -0
  27. package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +284 -0
  28. package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +40 -0
  29. package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +278 -0
  30. package/esm2015/lib/components/open-activity-list/component-activity-list.module.js +30 -0
  31. package/esm2015/lib/components/open-activity-list/components/base-open-activity-list.component.js +266 -0
  32. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.js +41 -0
  33. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..js +19 -0
  34. package/esm2015/lib/components/simple-tags/simple-tags.component.js +5 -147
  35. package/esm2015/lib/components/simple-tags/simple-tags.module.js +4 -2
  36. package/esm2015/lib/components/simple-tags-form/simple-tags-form.component.js +196 -0
  37. package/esm2015/lib/components/simple-tags-form/simple-tags-form.module.js +26 -0
  38. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +3 -3
  39. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +28 -2
  40. package/esm2015/lib/components/stock/localization/translation.js +3 -1
  41. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +7 -2
  42. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +144 -85
  43. package/esm2015/lib/components/stock/stock.component.js +11 -42
  44. package/esm2015/lib/components/stock/stock.module.js +4 -3
  45. package/esm2015/lib/components/task-modifyer/task-modifier.component.js +270 -0
  46. package/esm2015/lib/components/task-modifyer/task-modifyer.module..js +31 -0
  47. package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.component.js +45 -0
  48. package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.module.js +22 -0
  49. package/esm2015/lib/components/workflow-info-tiles/workflow-info-tiles.component.js +55 -0
  50. package/esm2015/lib/components/workflow-info-tiles/workflow-info-tiles.module.js +22 -0
  51. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.js +53 -0
  52. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.js +81 -0
  53. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.js +34 -0
  54. package/esm2015/lib/directives/absolute-overlay-template.directive.js +29 -0
  55. package/esm2015/lib/directives/align-with.directive.js +174 -0
  56. package/esm2015/lib/directives/click-outside.directive.js +25 -0
  57. package/esm2015/lib/directives/directives.module.js +22 -0
  58. package/esm2015/lib/enum/activity-cfg-name.enum.js +29 -0
  59. package/esm2015/lib/enum/app-button-type.enum.js +11 -0
  60. package/esm2015/lib/enum/icon.enum.js +13 -1
  61. package/esm2015/lib/interface/activities-task-config-names.js +2 -0
  62. package/esm2015/lib/interface/operation-callback-activity.js +5 -0
  63. package/esm2015/lib/interface/operation-callback-function-with-validation.js +5 -0
  64. package/esm2015/lib/model/icon-svg.js +13 -1
  65. package/esm2015/lib/service/app-absolute-overlay-outlet.service.js +20 -0
  66. package/esm2015/lib/service/shared-connector.service.js +213 -1
  67. package/esm2015/lib/service/shared.service.js +93 -1
  68. package/esm2015/lib/utils/browser-utils.js +100 -0
  69. package/esm2015/lib/utils/event-utils.js +59 -0
  70. package/esm2015/lib/utils/string-utils.js +5 -1
  71. package/esm2015/public-api.js +7 -1
  72. package/fesm2015/colijnit-sharedcomponents.js +4044 -228
  73. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  74. package/lib/components/activity-list-header/activity-list-header.component.d.ts +25 -0
  75. package/lib/components/activity-list-header/activity-list-header.module.d.ts +2 -0
  76. package/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.d.ts +11 -0
  77. package/lib/components/activity-list-header/components/period-filter/period-filter.component.d.ts +26 -0
  78. package/lib/components/activity-list-header/components/period-filter/period-filter.module.d.ts +2 -0
  79. package/lib/components/activity-list-header/components/period-filter/style/_layout.scss +62 -0
  80. package/lib/components/activity-list-header/components/period-filter/style/_material-definition.scss +1 -0
  81. package/lib/components/activity-list-header/components/period-filter/style/_theme.scss +5 -0
  82. package/lib/components/activity-list-header/components/period-filter/style/material.scss +4 -0
  83. package/lib/components/activity-list-header/style/_layout.scss +84 -0
  84. package/lib/components/activity-list-header/style/_material-definition.scss +1 -0
  85. package/lib/components/activity-list-header/style/_theme.scss +5 -0
  86. package/lib/components/activity-list-header/style/material.scss +4 -0
  87. package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +15 -0
  88. package/lib/components/activity-overview-component/component-activity-overview.module.d.ts +2 -0
  89. package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +79 -0
  90. package/lib/components/activity-overview-component/style/_layout.scss +107 -0
  91. package/lib/components/activity-overview-component/style/_material-definition.scss +1 -0
  92. package/lib/components/activity-overview-component/style/_theme.scss +5 -0
  93. package/lib/components/activity-overview-component/style/material.scss +4 -0
  94. package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.d.ts +31 -0
  95. package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.d.ts +2 -0
  96. package/lib/components/modify-task-form/components/activity-summary-block/style/_layout.scss +139 -0
  97. package/lib/components/modify-task-form/components/activity-summary-block/style/_material-definition.scss +0 -0
  98. package/lib/components/modify-task-form/components/activity-summary-block/style/_theme.scss +5 -0
  99. package/lib/components/modify-task-form/components/activity-summary-block/style/material.scss +4 -0
  100. package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +52 -0
  101. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.d.ts +28 -0
  102. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.d.ts +2 -0
  103. package/lib/components/modify-task-form/components/creation-summary-block/style/_layout.scss +5 -0
  104. package/lib/components/modify-task-form/components/creation-summary-block/style/_material-definition.scss +0 -0
  105. package/lib/components/modify-task-form/components/creation-summary-block/style/_theme.scss +5 -0
  106. package/lib/components/modify-task-form/components/creation-summary-block/style/material.scss +4 -0
  107. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +24 -0
  108. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.d.ts +2 -0
  109. package/lib/components/modify-task-form/components/executive-summary-block/style/_layout.scss +5 -0
  110. package/lib/components/modify-task-form/components/executive-summary-block/style/_material-definition.scss +0 -0
  111. package/lib/components/modify-task-form/components/executive-summary-block/style/_theme.scss +5 -0
  112. package/lib/components/modify-task-form/components/executive-summary-block/style/material.scss +4 -0
  113. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +23 -0
  114. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.d.ts +2 -0
  115. package/lib/components/modify-task-form/components/notification-summary-block/style/_layout.scss +161 -0
  116. package/lib/components/modify-task-form/components/notification-summary-block/style/_material-definition.scss +0 -0
  117. package/lib/components/modify-task-form/components/notification-summary-block/style/_theme.scss +5 -0
  118. package/lib/components/modify-task-form/components/notification-summary-block/style/material.scss +4 -0
  119. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +17 -0
  120. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.d.ts +2 -0
  121. package/lib/components/modify-task-form/components/status-summary-block/style/_layout.scss +18 -0
  122. package/lib/components/modify-task-form/components/status-summary-block/style/_material-definition.scss +0 -0
  123. package/lib/components/modify-task-form/components/status-summary-block/style/_theme.scss +5 -0
  124. package/lib/components/modify-task-form/components/status-summary-block/style/material.scss +4 -0
  125. package/lib/components/modify-task-form/components/task-details/style/_layout.scss +142 -0
  126. package/lib/components/modify-task-form/components/task-details/style/_material-definition.scss +0 -0
  127. package/lib/components/modify-task-form/components/task-details/style/_theme.scss +5 -0
  128. package/lib/components/modify-task-form/components/task-details/style/material.scss +4 -0
  129. package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +23 -0
  130. package/lib/components/modify-task-form/components/task-details/task-details.module.d.ts +2 -0
  131. package/lib/components/modify-task-form/modify-task-form.component.d.ts +54 -0
  132. package/lib/components/modify-task-form/modify-task-form.module.d.ts +2 -0
  133. package/lib/components/modify-task-form/style/_layout.scss +139 -0
  134. package/lib/components/modify-task-form/style/_material-definition.scss +0 -0
  135. package/lib/components/modify-task-form/style/_theme.scss +5 -0
  136. package/lib/components/modify-task-form/style/material.scss +4 -0
  137. package/lib/components/open-activity-list/component-activity-list.component.d.ts +67 -0
  138. package/lib/components/open-activity-list/component-activity-list.module.d.ts +2 -0
  139. package/lib/components/open-activity-list/components/base-open-activity-list.component.d.ts +48 -0
  140. package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.d.ts +4 -0
  141. package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..d.ts +2 -0
  142. package/lib/components/open-activity-list/components/personal-activity-overview/style/_layout.scss +105 -0
  143. package/lib/components/open-activity-list/components/personal-activity-overview/style/_material-definition.scss +0 -0
  144. package/lib/components/open-activity-list/components/personal-activity-overview/style/_theme.scss +4 -0
  145. package/lib/components/open-activity-list/components/personal-activity-overview/style/material.scss +4 -0
  146. package/lib/components/open-activity-list/style/_layout.scss +26 -0
  147. package/lib/components/open-activity-list/style/_material-definition.scss +0 -0
  148. package/lib/components/open-activity-list/style/_theme.scss +4 -0
  149. package/lib/components/open-activity-list/style/material.scss +4 -0
  150. package/lib/components/simple-tags/simple-tags.component.d.ts +1 -8
  151. package/lib/components/simple-tags-form/simple-tags-form.component.d.ts +29 -0
  152. package/lib/components/simple-tags-form/simple-tags-form.module.d.ts +2 -0
  153. package/lib/components/simple-tags-form/style/_layout.scss +257 -0
  154. package/lib/components/simple-tags-form/style/_material-definition.scss +39 -0
  155. package/lib/components/simple-tags-form/style/_theme.scss +4 -0
  156. package/lib/components/simple-tags-form/style/material.scss +4 -0
  157. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +7 -1
  158. package/lib/components/stock/localization/translation.d.ts +2 -0
  159. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +2 -0
  160. package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +19 -6
  161. package/lib/components/stock/stock.component.d.ts +3 -0
  162. package/lib/components/stock/style/_layout.scss +64 -31
  163. package/lib/components/task-modifyer/style/_layout.scss +5 -0
  164. package/lib/components/task-modifyer/style/_material-definition.scss +0 -0
  165. package/lib/components/task-modifyer/style/_theme.scss +4 -0
  166. package/lib/components/task-modifyer/style/material.scss +4 -0
  167. package/lib/components/task-modifyer/task-modifier.component.d.ts +65 -0
  168. package/lib/components/task-modifyer/task-modifyer.module..d.ts +2 -0
  169. package/lib/components/workflow-info-tiles/components/style/_layout.scss +49 -0
  170. package/lib/components/workflow-info-tiles/components/style/_material-definition.scss +0 -0
  171. package/lib/components/workflow-info-tiles/components/style/_theme.scss +4 -0
  172. package/lib/components/workflow-info-tiles/components/style/material.scss +4 -0
  173. package/lib/components/workflow-info-tiles/components/workflow-info-tile.component.d.ts +15 -0
  174. package/lib/components/workflow-info-tiles/components/workflow-info-tile.module.d.ts +2 -0
  175. package/lib/components/workflow-info-tiles/style/_layout.scss +16 -0
  176. package/lib/components/workflow-info-tiles/style/_material-definition.scss +0 -0
  177. package/lib/components/workflow-info-tiles/style/_theme.scss +4 -0
  178. package/lib/components/workflow-info-tiles/style/material.scss +4 -0
  179. package/lib/components/workflow-info-tiles/workflow-info-tiles.component.d.ts +21 -0
  180. package/lib/components/workflow-info-tiles/workflow-info-tiles.module.d.ts +2 -0
  181. package/lib/components/workflow-notification-toggle/style/_layout.scss +59 -0
  182. package/lib/components/workflow-notification-toggle/style/_material-definition.scss +0 -0
  183. package/lib/components/workflow-notification-toggle/style/_theme.scss +4 -0
  184. package/lib/components/workflow-notification-toggle/style/material.scss +4 -0
  185. package/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.d.ts +15 -0
  186. package/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.d.ts +28 -0
  187. package/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.d.ts +2 -0
  188. package/lib/directives/absolute-overlay-template.directive.d.ts +9 -0
  189. package/lib/directives/align-with.directive.d.ts +35 -0
  190. package/lib/directives/click-outside.directive.d.ts +7 -0
  191. package/lib/directives/directives.module.d.ts +2 -0
  192. package/lib/enum/activity-cfg-name.enum.d.ts +27 -0
  193. package/lib/enum/app-button-type.enum.d.ts +9 -0
  194. package/lib/enum/icon.enum.d.ts +12 -0
  195. package/lib/interface/activities-task-config-names.d.ts +12 -0
  196. package/lib/interface/operation-callback-activity.d.ts +5 -0
  197. package/lib/interface/operation-callback-function-with-validation.d.ts +5 -0
  198. package/lib/service/app-absolute-overlay-outlet.service.d.ts +9 -0
  199. package/lib/service/shared-connector.service.d.ts +28 -0
  200. package/lib/service/shared.service.d.ts +28 -0
  201. package/lib/utils/browser-utils.d.ts +15 -0
  202. package/lib/utils/event-utils.d.ts +12 -0
  203. package/lib/utils/string-utils.d.ts +1 -0
  204. package/package.json +7 -5
  205. package/public-api.d.ts +6 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/printer.bo'), require('@colijnit/mainapi/build/model/send-method.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/mainapi/build/model/tag-tree-item.bo'), require('@colijnit/ioneconnector/build/model/object-configuration'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@angular/platform-browser'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-stock-management'), require('@colijnit/articleapi/build/model/article-transaction'), require('@colijnit/sharedapi/build/model/print-price-stickers.bo'), require('@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request'), require('@colijnit/mainapi/build/model/reporting-document-pdf-base-request'), require('@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request'), require('@colijnit/mainapi/build/enum/send-method-type.enum'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('chart.js'), require('moment'), require('@colijnit/sharedapi/build/enum/refcode/file-type-internal.enum'), require('@angular/cdk/drag-drop'), require('@colijnit/mainapi/build/enum/file-type.enum'), require('@colijnit/sharedapi/build/enum/object-right-type.enum'), require('@colijnit/mainapi/build/utils/file-utils'), require('@colijnit/mainapi/build/model/co-document'), require('@colijnit/mainapi/build/enum/co-document-type.enum'), require('@colijnit/articleapi/build/enum/refcode/document-publication.enum'), require('@colijnit/mainapi/build/model/co-document-right'), require('@colijnit/sharedapi/build/utils/array-utils'), require('@angular/cdk/overlay'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/enum/activity-type'), require('@colijnit/mainapi/build/utils/time-utils')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/mainapi/build/model/tag-tree-item.bo', '@colijnit/ioneconnector/build/model/object-configuration', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-stock', '@colijnit/articleapi/build/model/article-extended-request', '@angular/platform-browser', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-stock-management', '@colijnit/articleapi/build/model/article-transaction', '@colijnit/sharedapi/build/model/print-price-stickers.bo', '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request', '@colijnit/mainapi/build/model/reporting-document-pdf-base-request', '@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request', '@colijnit/mainapi/build/enum/send-method-type.enum', '@colijnit/articleapi/build/model/get-stock-history-request', 'chart.js', 'moment', '@colijnit/sharedapi/build/enum/refcode/file-type-internal.enum', '@angular/cdk/drag-drop', '@colijnit/mainapi/build/enum/file-type.enum', '@colijnit/sharedapi/build/enum/object-right-type.enum', '@colijnit/mainapi/build/utils/file-utils', '@colijnit/mainapi/build/model/co-document', '@colijnit/mainapi/build/enum/co-document-type.enum', '@colijnit/articleapi/build/enum/refcode/document-publication.enum', '@colijnit/mainapi/build/model/co-document-right', '@colijnit/sharedapi/build/utils/array-utils', '@angular/cdk/overlay', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/enum/activity-type', '@colijnit/mainapi/build/utils/time-utils'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.articleStock_bo, global.stockHistory_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.options, global.mainapi, global.printer_bo, global.sendMethod_bo, global.businessObjectFactory, global.tagTreeItem_bo, global.objectConfiguration, global.printStockStickers, global.articleExtended_bo, global.articleStock, global.articleExtendedRequest, global.ng.platformBrowser, global.corecomponents_v12, global.articleStockManagement, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentEmailSignDocBaseRequest, global.reportingDocumentPdfBaseRequest, global.reportingDocumentPrintSignDocBaseRequest, global.sendMethodType_enum, global.getStockHistoryRequest, global.chart_js, global.moment, global.fileTypeInternal_enum, global.ng.cdk.dragDrop, global.fileType_enum, global.objectRightType_enum, global.fileUtils, global.coDocument, global.coDocumentType_enum, global.documentPublication_enum, global.coDocumentRight, global.arrayUtils, global.ng.cdk.overlay, global.coDomainValue_bo, global.relationKind_enum, global.activityType, global.timeUtils));
5
- })(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, articleStock_bo, stockHistory_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, options, mainapi, printer_bo, sendMethod_bo, businessObjectFactory, tagTreeItem_bo, objectConfiguration, printStockStickers, articleExtended_bo, articleStock, articleExtendedRequest, i1, corecomponents_v12, articleStockManagement, articleTransaction, printPriceStickers_bo, reportingDocumentEmailSignDocBaseRequest, reportingDocumentPdfBaseRequest, reportingDocumentPrintSignDocBaseRequest, sendMethodType_enum, getStockHistoryRequest, chart_js, moment, fileTypeInternal_enum, dragDrop, fileType_enum, objectRightType_enum, fileUtils, coDocument, coDocumentType_enum, documentPublication_enum, coDocumentRight, arrayUtils, overlay, coDomainValue_bo, relationKind_enum, activityType, timeUtils) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/printer.bo'), require('@colijnit/mainapi/build/model/send-method.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/mainapi/build/model/tag-tree-item.bo'), require('@colijnit/ioneconnector/build/model/object-configuration'), require('@colijnit/relationapi'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/mainapi/build/model/task-category.bo'), require('@colijnit/mainapi/build/model/workflow-process'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/mainapi/build/model/role-email-address'), require('@colijnit/mainapi/build/model/activity.bo'), require('@colijnit/mainapi/build/model/workflow-process-info-per-status'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-transaction'), require('@colijnit/sharedapi/build/model/print-price-stickers.bo'), require('@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request'), require('@colijnit/mainapi/build/model/reporting-document-pdf-base-request'), require('@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request'), require('@colijnit/mainapi/build/enum/send-method-type.enum'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('chart.js'), require('moment'), require('@colijnit/sharedapi/build/enum/refcode/file-type-internal.enum'), require('@angular/cdk/drag-drop'), require('@colijnit/mainapi/build/enum/file-type.enum'), require('@colijnit/sharedapi/build/enum/object-right-type.enum'), require('@colijnit/mainapi/build/utils/file-utils'), require('@colijnit/mainapi/build/model/co-document'), require('@colijnit/mainapi/build/enum/co-document-type.enum'), require('@colijnit/articleapi/build/enum/refcode/document-publication.enum'), require('@colijnit/mainapi/build/model/co-document-right'), require('@colijnit/sharedapi/build/utils/array-utils'), require('@angular/cdk/overlay'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/enum/activity-type'), require('@colijnit/mainapi/build/utils/time-utils'), require('@colijnit/ioneconnector/build/utils/function/is-nill.function'), require('@colijnit/mainapi/build/model/activity-list-view-model'), require('@colijnit/mainapi/build/model/activity-view-model'), require('@colijnit/mainapi/build/enum/personal-activity-tab.enum'), require('@colijnit/mainapi/build/enum/activity-sort-type.enum'), require('@colijnit/mainapi/build/model/task.bo'), require('@colijnit/mainapi/build/enum/table-name.enum'), require('@colijnit/mainapi/build/enum/tab-category.enum'), require('@colijnit/ioneconnector/build/model/validation-result'), require('@colijnit/mainapi/build/enum/domain-name.enum'), require('@colijnit/mainapi/build/enum/priority-type.enum'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/mainapi/build/enum/period.enum')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/mainapi/build/model/tag-tree-item.bo', '@colijnit/ioneconnector/build/model/object-configuration', '@colijnit/relationapi', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/mainapi/build/model/task-category.bo', '@colijnit/mainapi/build/model/workflow-process', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/mainapi/build/model/role-email-address', '@colijnit/mainapi/build/model/activity.bo', '@colijnit/mainapi/build/model/workflow-process-info-per-status', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-stock', '@colijnit/articleapi/build/model/article-extended-request', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-transaction', '@colijnit/sharedapi/build/model/print-price-stickers.bo', '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request', '@colijnit/mainapi/build/model/reporting-document-pdf-base-request', '@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request', '@colijnit/mainapi/build/enum/send-method-type.enum', '@colijnit/articleapi/build/model/get-stock-history-request', 'chart.js', 'moment', '@colijnit/sharedapi/build/enum/refcode/file-type-internal.enum', '@angular/cdk/drag-drop', '@colijnit/mainapi/build/enum/file-type.enum', '@colijnit/sharedapi/build/enum/object-right-type.enum', '@colijnit/mainapi/build/utils/file-utils', '@colijnit/mainapi/build/model/co-document', '@colijnit/mainapi/build/enum/co-document-type.enum', '@colijnit/articleapi/build/enum/refcode/document-publication.enum', '@colijnit/mainapi/build/model/co-document-right', '@colijnit/sharedapi/build/utils/array-utils', '@angular/cdk/overlay', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/enum/activity-type', '@colijnit/mainapi/build/utils/time-utils', '@colijnit/ioneconnector/build/utils/function/is-nill.function', '@colijnit/mainapi/build/model/activity-list-view-model', '@colijnit/mainapi/build/model/activity-view-model', '@colijnit/mainapi/build/enum/personal-activity-tab.enum', '@colijnit/mainapi/build/enum/activity-sort-type.enum', '@colijnit/mainapi/build/model/task.bo', '@colijnit/mainapi/build/enum/table-name.enum', '@colijnit/mainapi/build/enum/tab-category.enum', '@colijnit/ioneconnector/build/model/validation-result', '@colijnit/mainapi/build/enum/domain-name.enum', '@colijnit/mainapi/build/enum/priority-type.enum', '@colijnit/relationapi/build/model/relation-request', '@colijnit/mainapi/build/enum/period.enum'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.articleStock_bo, global.stockHistory_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.options, global.mainapi, global.printer_bo, global.sendMethod_bo, global.businessObjectFactory, global.tagTreeItem_bo, global.objectConfiguration, global.relationapi, global.relationListObject_bo, global.taskCategory_bo, global.workflowProcess, global.coDomainValue_bo, global.roleEmailAddress, global.activity_bo, global.workflowProcessInfoPerStatus, global.printStockStickers, global.articleExtended_bo, global.articleStock, global.articleExtendedRequest, global.ng.platformBrowser, global.articleStockManagement, global.corecomponents_v12, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentEmailSignDocBaseRequest, global.reportingDocumentPdfBaseRequest, global.reportingDocumentPrintSignDocBaseRequest, global.sendMethodType_enum, global.getStockHistoryRequest, global.chart_js, global.moment, global.fileTypeInternal_enum, global.ng.cdk.dragDrop, global.fileType_enum, global.objectRightType_enum, global.fileUtils, global.coDocument, global.coDocumentType_enum, global.documentPublication_enum, global.coDocumentRight, global.arrayUtils, global.ng.cdk.overlay, global.relationKind_enum, global.activityType, global.timeUtils, global.isNill_function, global.activityListViewModel, global.activityViewModel, global.personalActivityTab_enum, global.activitySortType_enum, global.task_bo, global.tableName_enum, global.tabCategory_enum, global.validationResult, global.domainName_enum, global.priorityType_enum, global.relationRequest, global.period_enum));
5
+ })(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, articleStock_bo, stockHistory_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, options, mainapi, printer_bo, sendMethod_bo, businessObjectFactory, tagTreeItem_bo, objectConfiguration, relationapi, relationListObject_bo, taskCategory_bo, workflowProcess, coDomainValue_bo, roleEmailAddress, activity_bo, workflowProcessInfoPerStatus, printStockStickers, articleExtended_bo, articleStock, articleExtendedRequest, i1, articleStockManagement, corecomponents_v12, articleTransaction, printPriceStickers_bo, reportingDocumentEmailSignDocBaseRequest, reportingDocumentPdfBaseRequest, reportingDocumentPrintSignDocBaseRequest, sendMethodType_enum, getStockHistoryRequest, chart_js, moment, fileTypeInternal_enum, dragDrop, fileType_enum, objectRightType_enum, fileUtils, coDocument, coDocumentType_enum, documentPublication_enum, coDocumentRight, arrayUtils, overlay, relationKind_enum, activityType, timeUtils, isNill_function, activityListViewModel, activityViewModel, personalActivityTab_enum, activitySortType_enum, task_bo, tableName_enum, tabCategory_enum, validationResult, domainName_enum, priorityType_enum, relationRequest, period_enum) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -337,9 +337,13 @@
337
337
  if (!Symbol.asyncIterator)
338
338
  throw new TypeError("Symbol.asyncIterator is not defined.");
339
339
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
340
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
341
- function verb(n) { if (g[n])
342
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
340
+ return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
341
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
342
+ function verb(n, f) { if (g[n]) {
343
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); };
344
+ if (f)
345
+ i[n] = f(i[n]);
346
+ } }
343
347
  function resume(n, v) { try {
344
348
  step(g[n](v));
345
349
  }
@@ -419,7 +423,7 @@
419
423
  if (value !== null && value !== void 0) {
420
424
  if (typeof value !== "object" && typeof value !== "function")
421
425
  throw new TypeError("Object expected.");
422
- var dispose;
426
+ var dispose, inner;
423
427
  if (async) {
424
428
  if (!Symbol.asyncDispose)
425
429
  throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -429,9 +433,18 @@
429
433
  if (!Symbol.dispose)
430
434
  throw new TypeError("Symbol.dispose is not defined.");
431
435
  dispose = value[Symbol.dispose];
436
+ if (async)
437
+ inner = dispose;
432
438
  }
433
439
  if (typeof dispose !== "function")
434
440
  throw new TypeError("Object not disposable.");
441
+ if (inner)
442
+ dispose = function () { try {
443
+ inner.call(this);
444
+ }
445
+ catch (e) {
446
+ return Promise.reject(e);
447
+ } };
435
448
  env.stack.push({ value: value, dispose: dispose, async: async });
436
449
  }
437
450
  else if (async) {
@@ -990,6 +1003,10 @@
990
1003
  StringUtils._escapeRegExp = function (str) {
991
1004
  return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
992
1005
  };
1006
+ StringUtils.IsValidEmail = function (str) {
1007
+ var emailRegex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
1008
+ return !!emailRegex.test(str);
1009
+ };
993
1010
  return StringUtils;
994
1011
  }());
995
1012
 
@@ -1175,6 +1192,7 @@
1175
1192
  _a.sent();
1176
1193
  this.articleConnector = new articles.Articles(this._optionsService.options);
1177
1194
  this.mainConnector = new mainapi.MainApi(this._optionsService.options);
1195
+ this.relationConnector = new relationapi.RelationApi(this._optionsService.options);
1178
1196
  return [2 /*return*/];
1179
1197
  }
1180
1198
  });
@@ -1291,6 +1309,117 @@
1291
1309
  });
1292
1310
  });
1293
1311
  };
1312
+ SharedConnectorService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
1313
+ return __awaiter(this, void 0, void 0, function () {
1314
+ var _this = this;
1315
+ return __generator(this, function (_a) {
1316
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1317
+ return _this.mainConnector.getComponentActivitiesWithoutRelationFiltering(table, key).then(function (result) {
1318
+ if (result && result.validationResult && result.validationResult.success) {
1319
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
1320
+ }
1321
+ else {
1322
+ reject(result.validationMessagesAsString);
1323
+ }
1324
+ });
1325
+ })];
1326
+ });
1327
+ });
1328
+ };
1329
+ SharedConnectorService.prototype.updateActivity = function (activity) {
1330
+ return __awaiter(this, void 0, void 0, function () {
1331
+ var _this = this;
1332
+ return __generator(this, function (_a) {
1333
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1334
+ return _this.mainConnector.updateActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1335
+ return __generator(this, function (_a) {
1336
+ resolve(result.validationResult);
1337
+ return [2 /*return*/];
1338
+ });
1339
+ }); });
1340
+ })];
1341
+ });
1342
+ });
1343
+ };
1344
+ SharedConnectorService.prototype.deleteActivity = function (activity) {
1345
+ return __awaiter(this, void 0, void 0, function () {
1346
+ var _this = this;
1347
+ return __generator(this, function (_a) {
1348
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1349
+ return _this.mainConnector.deleteActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1350
+ return __generator(this, function (_a) {
1351
+ resolve(result.validationResult);
1352
+ return [2 /*return*/];
1353
+ });
1354
+ }); });
1355
+ })];
1356
+ });
1357
+ });
1358
+ };
1359
+ SharedConnectorService.prototype.lockTask = function (id) {
1360
+ return __awaiter(this, void 0, void 0, function () {
1361
+ var _this = this;
1362
+ return __generator(this, function (_a) {
1363
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1364
+ return _this.mainConnector.lockTask(id).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1365
+ return __generator(this, function (_a) {
1366
+ resolve(result.validationResult);
1367
+ return [2 /*return*/];
1368
+ });
1369
+ }); });
1370
+ })];
1371
+ });
1372
+ });
1373
+ };
1374
+ SharedConnectorService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
1375
+ return __awaiter(this, void 0, void 0, function () {
1376
+ var _this = this;
1377
+ return __generator(this, function (_a) {
1378
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1379
+ return _this.mainConnector.fireTrigger(workFlowProcessId, sequence, triggerId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1380
+ return __generator(this, function (_a) {
1381
+ resolve(result.validationResult);
1382
+ return [2 /*return*/];
1383
+ });
1384
+ }); });
1385
+ })];
1386
+ });
1387
+ });
1388
+ };
1389
+ SharedConnectorService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
1390
+ return __awaiter(this, void 0, void 0, function () {
1391
+ var _this = this;
1392
+ return __generator(this, function (_a) {
1393
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1394
+ return _this.mainConnector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1395
+ return __generator(this, function (_a) {
1396
+ resolve(result.validationResult);
1397
+ return [2 /*return*/];
1398
+ });
1399
+ }); });
1400
+ })];
1401
+ });
1402
+ });
1403
+ };
1404
+ SharedConnectorService.prototype.getJoinedTags = function (table, key) {
1405
+ return __awaiter(this, void 0, void 0, function () {
1406
+ var _this = this;
1407
+ return __generator(this, function (_a) {
1408
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1409
+ return _this.mainConnector.getJoinedTags(table, key).then(function (result) {
1410
+ if (result.validationResult && result.validationResult.success) {
1411
+ if (result.resultObjects) {
1412
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(tagTreeItem_bo.TagTreeItem, result.resultObjects));
1413
+ }
1414
+ }
1415
+ else {
1416
+ reject(result.validationMessagesAsString);
1417
+ }
1418
+ });
1419
+ })];
1420
+ });
1421
+ });
1422
+ };
1294
1423
  SharedConnectorService.prototype.getDocumentContent = function (id, thumbnail) {
1295
1424
  if (thumbnail === void 0) { thumbnail = true; }
1296
1425
  return __awaiter(this, void 0, void 0, function () {
@@ -1648,6 +1777,158 @@
1648
1777
  });
1649
1778
  });
1650
1779
  };
1780
+ SharedConnectorService.prototype.getRelationListObjects = function (request) {
1781
+ return __awaiter(this, void 0, void 0, function () {
1782
+ var _this = this;
1783
+ return __generator(this, function (_a) {
1784
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1785
+ return _this.relationConnector.getRelationListObjects(request, false).then(function (result) {
1786
+ if (result.validationResult && result.validationResult.success) {
1787
+ if (result.resultObjects) {
1788
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, result.resultObjects));
1789
+ }
1790
+ }
1791
+ else {
1792
+ reject(result.validationMessagesAsString);
1793
+ }
1794
+ });
1795
+ })];
1796
+ });
1797
+ });
1798
+ };
1799
+ SharedConnectorService.prototype.getTaskCategories = function () {
1800
+ return __awaiter(this, void 0, void 0, function () {
1801
+ var _this = this;
1802
+ return __generator(this, function (_a) {
1803
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1804
+ return _this.mainConnector.getTaskCategories().then(function (result) {
1805
+ if (result.validationResult && result.validationResult.success) {
1806
+ if (result.resultObjects) {
1807
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(taskCategory_bo.TaskCategory, result.resultObjects));
1808
+ }
1809
+ }
1810
+ else {
1811
+ reject(result.validationMessagesAsString);
1812
+ }
1813
+ });
1814
+ })];
1815
+ });
1816
+ });
1817
+ };
1818
+ SharedConnectorService.prototype.getActiveProcessesByTableAndKey = function (table, key) {
1819
+ return __awaiter(this, void 0, void 0, function () {
1820
+ var _this = this;
1821
+ return __generator(this, function (_a) {
1822
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1823
+ return _this.mainConnector.getActiveProcessesByTableAndKey(table, key).then(function (result) {
1824
+ if (result.validationResult && result.validationResult.success) {
1825
+ if (result.resultObjects) {
1826
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(workflowProcess.WorkflowProcess, result.resultObjects));
1827
+ }
1828
+ }
1829
+ else {
1830
+ reject(result.validationMessagesAsString);
1831
+ }
1832
+ });
1833
+ })];
1834
+ });
1835
+ });
1836
+ };
1837
+ SharedConnectorService.prototype.getDomainCollection = function (languageCode, domain) {
1838
+ return __awaiter(this, void 0, void 0, function () {
1839
+ var _this = this;
1840
+ return __generator(this, function (_a) {
1841
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1842
+ return _this.mainConnector.getDomainCollection(languageCode, domain).then(function (result) {
1843
+ if (result.validationResult && result.validationResult.success) {
1844
+ if (result.resultObjects) {
1845
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, result.resultObjects));
1846
+ }
1847
+ }
1848
+ else {
1849
+ reject(result.validationMessagesAsString);
1850
+ }
1851
+ });
1852
+ })];
1853
+ });
1854
+ });
1855
+ };
1856
+ SharedConnectorService.prototype.getRoleEmailAddressesByWorkflowCategoryAndKey = function (worlflowCategory, key) {
1857
+ return __awaiter(this, void 0, void 0, function () {
1858
+ var _this = this;
1859
+ return __generator(this, function (_a) {
1860
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1861
+ return _this.mainConnector.getRoleEmailAddressesByWorkflowCategoryAndKey(worlflowCategory, key).then(function (result) {
1862
+ if (result.validationResult && result.validationResult.success) {
1863
+ if (result.resultObject) {
1864
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(roleEmailAddress.RoleEmailaddress, result.resultObject));
1865
+ }
1866
+ }
1867
+ else {
1868
+ reject(result.validationMessagesAsString);
1869
+ }
1870
+ });
1871
+ })];
1872
+ });
1873
+ });
1874
+ };
1875
+ SharedConnectorService.prototype.getWorkflowProcessInfoPerStatus = function (worlflowCategory) {
1876
+ return __awaiter(this, void 0, void 0, function () {
1877
+ var _this = this;
1878
+ return __generator(this, function (_a) {
1879
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1880
+ return _this.mainConnector.getWorkflowProcessInfoPerStatus(worlflowCategory).then(function (result) {
1881
+ if (result.validationResult && result.validationResult.success) {
1882
+ if (result.resultObject) {
1883
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(workflowProcessInfoPerStatus.WorkflowProcessInfoPerStatus, result.resultObject));
1884
+ }
1885
+ }
1886
+ else {
1887
+ reject(result.validationMessagesAsString);
1888
+ }
1889
+ });
1890
+ })];
1891
+ });
1892
+ });
1893
+ };
1894
+ SharedConnectorService.prototype.getHistoricActivities = function (table, key) {
1895
+ return __awaiter(this, void 0, void 0, function () {
1896
+ var _this = this;
1897
+ return __generator(this, function (_a) {
1898
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1899
+ return _this.mainConnector.getHistoricActivities(table, key).then(function (result) {
1900
+ if (result.validationResult && result.validationResult.success) {
1901
+ if (result.resultObject) {
1902
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
1903
+ }
1904
+ }
1905
+ else {
1906
+ reject(result.validationMessagesAsString);
1907
+ }
1908
+ });
1909
+ })];
1910
+ });
1911
+ });
1912
+ };
1913
+ SharedConnectorService.prototype.getComponentActivities = function (table, key) {
1914
+ return __awaiter(this, void 0, void 0, function () {
1915
+ var _this = this;
1916
+ return __generator(this, function (_a) {
1917
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1918
+ return _this.mainConnector.getComponentActivities(table, key).then(function (result) {
1919
+ if (result.validationResult && result.validationResult.success) {
1920
+ if (result.resultObject) {
1921
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
1922
+ }
1923
+ }
1924
+ else {
1925
+ reject(result.validationMessagesAsString);
1926
+ }
1927
+ });
1928
+ })];
1929
+ });
1930
+ });
1931
+ };
1651
1932
  SharedConnectorService.prototype.commit = function () {
1652
1933
  return this.articleConnector.commit();
1653
1934
  };
@@ -1887,22 +2168,30 @@
1887
2168
  Icon["ArrowDown"] = "arrow_down";
1888
2169
  Icon["ArrowDownRegular"] = "arrow_down_regular";
1889
2170
  Icon["ArrowFatRight"] = "arrow_fat_right";
2171
+ Icon["ArrowPointDown"] = "arrow_point_down";
1890
2172
  Icon["ArrowPointLeft"] = "arrow_point_left";
1891
2173
  Icon["ArrowPointRight"] = "arrow_point_right";
2174
+ Icon["ArrowPointUp"] = "arrow_point_up";
1892
2175
  Icon["AtSolid"] = "at_solid";
1893
2176
  Icon["BarcodeReadRegular"] = "barcode_read_regular";
2177
+ Icon["BellRegular"] = "bell_regular";
2178
+ Icon["BellSlashRegular"] = "bell_slash_regular";
1894
2179
  Icon["BringForwardRegular"] = "bring_forward_regular";
1895
2180
  Icon["CheckDuotone"] = "check_duotone";
1896
2181
  Icon["CheckRound"] = "check_round";
2182
+ Icon["CheckSolid"] = "check_solid";
2183
+ Icon["ChevronRightRegular"] = "chevron_right_regular";
1897
2184
  Icon["ClockRegular"] = "clock_regular";
1898
2185
  Icon["CommentRegular"] = "comment_regular";
1899
2186
  Icon["CrossSkinny"] = "cross_skinny";
1900
2187
  Icon["Cubes"] = "cubes";
1901
2188
  Icon["DeleteLeftRegular"] = "delete_left_regular";
1902
2189
  Icon["DeliveryTruck"] = "delivery_truck";
2190
+ Icon["DetailView"] = "detail_view";
1903
2191
  Icon["Dropzone"] = "dropzone";
1904
2192
  Icon["EditPenRegular"] = "edit_pen_regular";
1905
2193
  Icon["Email"] = "email";
2194
+ Icon["Employee"] = "employee";
1906
2195
  Icon["EnvelopeRegular"] = "envelope_regular";
1907
2196
  Icon["EyeRegular"] = "eye_regular";
1908
2197
  Icon["FileExportRegular"] = "file_export_regular";
@@ -1911,17 +2200,21 @@
1911
2200
  Icon["FilePdfSolid"] = "file_pdf_solid";
1912
2201
  Icon["FileSignatureRegular"] = "file_signature_regular";
1913
2202
  Icon["HouseBlankRegular"] = "house_blank_regular";
2203
+ Icon["IoneWorkflow"] = "ione_workflow";
1914
2204
  Icon["Lock"] = "lock";
1915
2205
  Icon["MessageSmsRegular"] = "message_sms_regular";
1916
2206
  Icon["MessageSmsSolid"] = "message_sms_solid";
2207
+ Icon["Notification"] = "notification";
1917
2208
  Icon["PaperclipRegular"] = "paperclip_regular";
1918
2209
  Icon["Pdf"] = "pdf";
1919
2210
  Icon["PersonDiggingRegular"] = "person_digging_regular";
2211
+ Icon["PinRoundOpen"] = "pin_round_open";
1920
2212
  Icon["Print"] = "print";
1921
2213
  Icon["PrintRegular"] = "print_regular";
1922
2214
  Icon["PrintSolid"] = "print_solid";
1923
2215
  Icon["SignatureField"] = "signature_field";
1924
2216
  Icon["TagRegular"] = "tag_regular";
2217
+ Icon["Task"] = "task";
1925
2218
  Icon["Trashbin"] = "trashbin";
1926
2219
  Icon["Xml"] = "xml";
1927
2220
  Icon["XSolid"] = "x_solid";
@@ -1935,22 +2228,30 @@
1935
2228
  "arrow_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><polygon points=\"17.06 21.14 17.06 2.5 12.94 2.5 12.94 21.14 12.94 21.14 8.64 21.14 15 27.5 21.36 21.14 17.06 21.14\" fill=\"#484f60\"/></g></svg>",
1936
2229
  "arrow_down_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z\"/></svg>",
1937
2230
  "arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
2231
+ "arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
1938
2232
  "arrow_point_left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/></svg>",
1939
2233
  "arrow_point_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>",
2234
+ "arrow_point_up": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-260.7,400.8c-0.3,0-0.6-0.1-0.8-0.3c-0.5-0.5-0.5-1.2,0-1.6l6.2-6.2c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l6.2,6.2c0.2,0.2,0.3,0.5,0.3,0.8c0,0.3-0.1,0.6-0.3,0.8c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-5.4-5.4l-5.4,5.4C-260.1,400.6-260.4,400.8-260.7,400.8z\"/></svg>",
1940
2235
  "at_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M207.8 20.73c-93.45 18.32-168.7 93.66-187 187.1c-27.64 140.9 68.65 266.2 199.1 285.1c19.01 2.888 36.17-12.26 36.17-31.49l.0001-.6631c0-15.74-11.44-28.88-26.84-31.24c-84.35-12.98-149.2-86.13-149.2-174.2c0-102.9 88.61-185.5 193.4-175.4c91.54 8.869 158.6 91.25 158.6 183.2l0 16.16c0 22.09-17.94 40.05-40 40.05s-40.01-17.96-40.01-40.05v-120.1c0-8.847-7.161-16.02-16.01-16.02l-31.98 .0036c-7.299 0-13.2 4.992-15.12 11.68c-24.85-12.15-54.24-16.38-86.06-5.106c-38.75 13.73-68.12 48.91-73.72 89.64c-9.483 69.01 43.81 128 110.9 128c26.44 0 50.43-9.544 69.59-24.88c24 31.3 65.23 48.69 109.4 37.49C465.2 369.3 496 324.1 495.1 277.2V256.3C495.1 107.1 361.2-9.332 207.8 20.73zM239.1 304.3c-26.47 0-48-21.56-48-48.05s21.53-48.05 48-48.05s48 21.56 48 48.05S266.5 304.3 239.1 304.3z\"/></svg>",
1941
2236
  "barcode_read_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M56 48c-4.4 0-8 3.6-8 8v80c0 13.3-10.7 24-24 24s-24-10.7-24-24V56C0 25.1 25.1 0 56 0h80c13.3 0 24 10.7 24 24s-10.7 24-24 24H56zm64 80c13.3 0 24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zm56 16c0-8.8 7.2-16 16-16s16 7.2 16 16V368c0 8.8-7.2 16-16 16s-16-7.2-16-16V144zm272 0c0-8.8 7.2-16 16-16s16 7.2 16 16V368c0 8.8-7.2 16-16 16s-16-7.2-16-16V144zm-208 8c0-13.3 10.7-24 24-24s24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V152zm152-24c13.3 0 24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM528 56c0-4.4-3.6-8-8-8H440c-13.3 0-24-10.7-24-24s10.7-24 24-24h80c30.9 0 56 25.1 56 56v80c0 13.3-10.7 24-24 24s-24-10.7-24-24V56zM56 464h80c13.3 0 24 10.7 24 24s-10.7 24-24 24H56c-30.9 0-56-25.1-56-56V376c0-13.3 10.7-24 24-24s24 10.7 24 24v80c0 4.4 3.6 8 8 8zm472-8V376c0-13.3 10.7-24 24-24s24 10.7 24 24v80c0 30.9-25.1 56-56 56H440c-13.3 0-24-10.7-24-24s10.7-24 24-24h80c4.4 0 8-3.6 8-8z\"/></svg>",
2237
+ "bell_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M256 32V49.88C328.5 61.39 384 124.2 384 200V233.4C384 278.8 399.5 322.9 427.8 358.4L442.7 377C448.5 384.2 449.6 394.1 445.6 402.4C441.6 410.7 433.2 416 424 416H24C14.77 416 6.365 410.7 2.369 402.4C-1.628 394.1-.504 384.2 5.26 377L20.17 358.4C48.54 322.9 64 278.8 64 233.4V200C64 124.2 119.5 61.39 192 49.88V32C192 14.33 206.3 0 224 0C241.7 0 256 14.33 256 32V32zM216 96C158.6 96 112 142.6 112 200V233.4C112 281.3 98.12 328 72.31 368H375.7C349.9 328 336 281.3 336 233.4V200C336 142.6 289.4 96 232 96H216zM288 448C288 464.1 281.3 481.3 269.3 493.3C257.3 505.3 240.1 512 224 512C207 512 190.7 505.3 178.7 493.3C166.7 481.3 160 464.1 160 448H288z\"/></svg>",
2238
+ "bell_slash_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M183.6 118.6C206.5 82.58 244.1 56.84 288 49.88V32C288 14.33 302.3 .0003 320 .0003C337.7 .0003 352 14.33 352 32V49.88C424.5 61.39 480 124.2 480 200V233.4C480 278.8 495.5 322.9 523.8 358.4L538.7 377C543.1 383.5 545.4 392.2 542.6 400L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L183.6 118.6zM221.7 148.4L450.7 327.1C438.4 298.2 432 266.1 432 233.4V200C432 142.6 385.4 96 328 96H312C273.3 96 239.6 117.1 221.7 148.4V148.4zM160 233.4V222.1L206.7 258.9C202.7 297.7 189.5 335.2 168.3 368H345.2L406.2 416H120C110.8 416 102.4 410.7 98.37 402.4C94.37 394.1 95.5 384.2 101.3 377L116.2 358.4C144.5 322.9 160 278.8 160 233.4V233.4zM384 448C384 464.1 377.3 481.3 365.3 493.3C353.3 505.3 336.1 512 320 512C303 512 286.7 505.3 274.7 493.3C262.7 481.3 256 464.1 256 448H384z\"/></svg>",
1942
2239
  "bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
1943
2240
  "check_duotone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><defs><style>.fa-secondary{opacity:.4}</style></defs><path class=\"fa-primary\" d=\"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z\"/></svg>",
1944
2241
  "check_round": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10ZM23,34l-6.24-9.09,2.81-3.59L23,26.45,27.66,16h5.58Z\" fill=\"#484f60\"/></svg>",
2242
+ "check_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z\"/></svg>",
2243
+ "chevron_right_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path d=\"M305 239c9.4 9.4 9.4 24.6 0 33.9L113 465c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l175-175L79 81c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L305 239z\"/></svg>",
1945
2244
  "clock_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z\"/></svg>",
1946
2245
  "comment_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9c.1-.2 .2-.3 .3-.5z\"/></svg>",
1947
2246
  "cross_skinny": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><polygon points=\"25.35 5.52 24.65 4.81 15 14.46 5.35 4.81 4.65 5.52 14.29 15.17 4.65 24.81 5.35 25.52 15 15.87 24.65 25.52 25.35 24.81 15.71 15.17 25.35 5.52\" fill=\"#484f60\"/></g></svg>",
1948
2247
  "cubes": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M192 64v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H224c-17.7 0-32 14.3-32 32zM82.7 207c-15.3 8.8-20.5 28.4-11.7 43.7l32 55.4c8.8 15.3 28.4 20.5 43.7 11.7l55.4-32c15.3-8.8 20.5-28.4 11.7-43.7l-32-55.4c-8.8-15.3-28.4-20.5-43.7-11.7L82.7 207zM288 192c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H288zm64 160c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32H352zM160 384v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32zM32 352c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32H32z\"/></svg>",
1949
2248
  "delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
1950
2249
  "delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
2250
+ "detail_view": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><polygon points=\"24.55 16.18 24.55 27.49 2.44 27.49 2.44 5.38 14.69 5.38 15.59 4.48 14.04 2.94 0 2.94 0 29.93 26.99 29.93 26.99 15.88 25.92 14.81 24.55 16.18\" fill=\"#484f60\"/><polygon points=\"30 .4 17.92 .4 22 4.48 12.24 16.23 14.16 18.15 25.92 8.4 30 12.48 30 .4\" fill=\"#484f60\"/></g></g></svg>",
1951
2251
  "dropzone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><rect x=\"2\" y=\"1.67\" width=\"14\" height=\"6\" rx=\"2\" ry=\"2\" fill=\"#484f60\" opacity=\".5\"/><path d=\"M16.52,13.16l-.94-.47-1.61-2.53-1.23-1.62-.65-.85-1.53-1.59-2.06-1.17h-1.15l-.7,.7,.41,.91,2.47,2.2,.56,1.2,1.7,2.71,.82,2.26,.06,.74,.09,2.38-.23-.85-.97-.94-.79-.97-1.76-1.76-1.06-.35-.88,.24-.7,.62,1.32,1.44,1.56,1.97,2.14,3.73,2.2,2,1.82,1.14,2.44,1.06,1.91,1,2,1.03,.23,1.29,6.02-5.99v-.91s-.91-1-1-1.03c-.09-.03-.82-1.65-.82-1.65l-.47-1.91-.35-.97-1.32-1.67-.85-1.12-.5-.82-.88-1.14-.79-.77-1.33-.86-.22,.42,1.39,2.12-.94-.47-.86-1.48-1.33-1.38-1.06-.16-.03,.6,2.1,3.09-.94-.47-1.8-2.9-1.21-.86-1.29,.12,.18,.56,2.85,4.14Z\" fill=\"#484f60\"/><path d=\"M16,1.67h-1c1.1,0,2,.9,2,2v2c0,1.1-.9,2-2,2h1c1.1,0,2-.9,2-2V3.67c0-1.1-.9-2-2-2Z\" fill=\"#484f60\" opacity=\".5\"/><path d=\"M18,1.67h-1c1.1,0,2,.9,2,2v2c0,1.1-.9,2-2,2h1c1.1,0,2-.9,2-2V3.67c0-1.1-.9-2-2-2Z\" fill=\"#484f60\" opacity=\".25\"/><path d=\"M20,1.67h-1c1.1,0,2,.9,2,2v2c0,1.1-.9,2-2,2h1c1.1,0,2-.9,2-2V3.67c0-1.1-.9-2-2-2Z\" fill=\"#484f60\" opacity=\".1\"/></g></g></svg>",
1952
2252
  "edit_pen_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M441 58.9L453.1 71c9.4 9.4 9.4 24.6 0 33.9L424 134.1 377.9 88 407 58.9c9.4-9.4 24.6-9.4 33.9 0zM209.8 256.2L344 121.9 390.1 168 255.8 302.2c-2.9 2.9-6.5 5-10.4 6.1l-58.5 16.7 16.7-58.5c1.1-3.9 3.2-7.5 6.1-10.4zM373.1 25L175.8 222.2c-8.7 8.7-15 19.4-18.3 31.1l-28.6 100c-2.4 8.4-.1 17.4 6.1 23.6s15.2 8.5 23.6 6.1l100-28.6c11.8-3.4 22.5-9.7 31.1-18.3L487 138.9c28.1-28.1 28.1-73.7 0-101.8L474.9 25C446.8-3.1 401.2-3.1 373.1 25zM88 64C39.4 64 0 103.4 0 152V424c0 48.6 39.4 88 88 88H360c48.6 0 88-39.4 88-88V312c0-13.3-10.7-24-24-24s-24 10.7-24 24V424c0 22.1-17.9 40-40 40H88c-22.1 0-40-17.9-40-40V152c0-22.1 17.9-40 40-40H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H88z\"/></svg>",
1953
2253
  "email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
2254
+ "employee": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><path d=\"M15,2c-3.59,0-6.5,2.91-6.5,6.5s2.91,6.5,6.5,6.5,6.5-2.91,6.5-6.5-2.91-6.5-6.5-6.5Zm-.68,20.92l-3.58-5.37c-4.04,.67-7.12,4.18-7.12,8.41v.41c0,.9,.73,1.62,1.62,1.62H24.75c.9,0,1.62-.73,1.62-1.62v-.41c0-4.23-3.08-7.74-7.12-8.41l-3.58,5.37c-.32,.48-1.03,.48-1.35,0Z\" fill=\"#484f60\"/></g></svg>",
1954
2255
  "envelope_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z\"/></svg>",
1955
2256
  "eye_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z\"/></svg>",
1956
2257
  "file_export_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M568.1 303l-80-80c-9.375-9.375-24.56-9.375-33.94 0s-9.375 24.56 0 33.94L494.1 296H216C202.8 296 192 306.8 192 320s10.75 24 24 24h278.1l-39.03 39.03C450.3 387.7 448 393.8 448 400s2.344 12.28 7.031 16.97c9.375 9.375 24.56 9.375 33.94 0l80-80C578.3 327.6 578.3 312.4 568.1 303zM360 384c-13.25 0-24 10.74-24 24V448c0 8.836-7.164 16-16 16H64.02c-8.836 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1v72c0 13.25 10.74 24 23.1 24S384 245.3 384 232V138.6c0-16.98-6.742-33.26-18.75-45.26l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H63.1C28.65 0-.002 28.66 0 64l.0065 384c.002 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64v-40C384 394.7 373.3 384 360 384z\"/></svg>",
@@ -1959,17 +2260,21 @@
1959
2260
  "file_pdf_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z\"/></svg>",
1960
2261
  "file_signature_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M64 464H320c8.8 0 16-7.2 16-16v-6.7l39.8-9.9c2.8-.7 5.6-1.6 8.2-2.7V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3v49.1l-48 48V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zm96-115l-9.8 32.8c-6.1 20.3-24.8 34.2-46 34.2H96c-8.8 0-16-7.2-16-16s7.2-16 16-16h8.2c7.1 0 13.3-4.6 15.3-11.4l14.9-49.5c3.4-11.3 13.8-19.1 25.6-19.1s22.2 7.7 25.6 19.1l11.6 38.6c7.4-6.2 16.8-9.7 26.8-9.7c15.9 0 30.4 9 37.5 23.2l4.4 8.8h25.6l12-48.2c1.4-5.6 4.3-10.8 8.4-14.9L441.1 191.8l71 71L382.9 391.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-1.1 .3-2.1 .4-3.2 .5c-.8 .1-1.5 .2-2.3 .2H256c-6.1 0-11.6-3.4-14.3-8.8l-8.8-17.7c-1.7-3.4-5.1-5.5-8.8-5.5s-7.2 2.1-8.8 5.5l-8.8 17.7c-2.9 5.9-9.2 9.4-15.7 8.8s-12.1-5.1-13.9-11.3L160 349zM549.8 139.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0z\"/></svg>",
1961
2262
  "house_blank_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5V432c0 44.2 35.8 80 80 80H432c44.2 0 80-35.8 80-80V245.5l24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM464 204.8V432c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V204.8L288 55.5 464 204.8z\"/></svg>",
2263
+ "ione_workflow": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g display=\"none\"></g><g ><g ><g><g><rect x=\"34.3\" y=\"20\" fill=\"#484F60\" width=\"1.5\" height=\"3.7\"/><g><polygon fill=\"#484F60\" points=\"32,22.8 35,28 38,22.8 \"/></g></g><path fill=\"#484F60\" d=\"M18.5,21.5v7h-7v-7H18.5 M20,20H10v10h10V20L20,20z\"/><path fill=\"#484F60\" d=\"M38.5,11.5v7h-7v-7H38.5 M40,10H30v10h10V10L40,10z\"/><path fill=\"#484F60\" d=\"M38.5,31.5v7h-7v-7H38.5 M40,30H30v10h10V30L40,30z\"/><g><polygon fill=\"#484F60\" points=\"15.8,20 14.3,20 14.3,14.3 23.7,14.3 23.7,15.8 15.8,15.8 \"/><g><polygon fill=\"#484F60\" points=\"22.8,18 28,15 22.8,12 \"/></g></g><g><polygon fill=\"#484F60\" points=\"23.7,35.8 14.3,35.8 14.3,30 15.8,30 15.8,34.3 23.7,34.3 \"/><g><polygon fill=\"#484F60\" points=\"22.8,38 28,35 22.8,32 \"/></g></g></g></g><g display=\"none\"></g></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"><g display=\"inline\"><rect y=\"50\" opacity=\"0.25\" fill=\"#FFFFFF\" width=\"50\" height=\"50\"/></g><g display=\"inline\"><g><rect y=\"-45\" opacity=\"0.5\" fill=\"none\" width=\"50\" height=\"45\"/><text transform=\"matrix(1 0 0 1 7.375 -37.9002)\"><tspan x=\"0\" y=\"0\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">Opmaak </tspan><tspan x=\"5.4\" y=\"12\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">item / </tspan><tspan x=\"-1.4\" y=\"24\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">structuur </tspan><tspan x=\"8.1\" y=\"36\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">item </tspan></text></g></g><g display=\"inline\"><g><rect y=\"0\" opacity=\"0.25\" fill=\"#FFFFFF\" width=\"50\" height=\"50\"/><rect y=\"5\" opacity=\"0.5\" fill=\"none\" width=\"50\" height=\"45\"/><text transform=\"matrix(1 0 0 1 5.0054 12.0999)\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">Workflow</text></g></g></g></svg>",
1962
2264
  "lock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M22.65,11.67H7.35c-2.82,0-3.07,2.29-3.07,5.12v8.09c0,2.83,.25,5.12,3.07,5.12h15.29c2.81,0,3.07-2.29,3.07-5.12v-8.09c0-2.83-.25-5.12-3.07-5.12Zm-12.42,15.82l2.6-6.32c-1-.7-1.65-1.85-1.65-3.15,0-2.12,1.71-3.84,3.82-3.84s3.82,1.73,3.82,3.84c0,1.31-.65,2.46-1.65,3.15l2.6,6.32H10.22Z\" fill=\"#484f60\"/><path d=\"M19.51,6.64c0-3.6-2.02-4.07-4.51-4.07h0c-2.49,0-4.51,.47-4.51,4.07v3h-2.7v-3C7.79,1.62,11.02,0,15,0h0c3.98,0,7.21,1.62,7.21,6.64v3h-2.7v-3Z\" fill=\"#484f60\"/></g></g></svg>",
1963
2265
  "message_sms_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448-.0004H64c-35.25 0-64 28.75-64 63.1v287.1c0 35.25 28.75 63.1 64 63.1h96v83.98c0 9.836 11.02 15.55 19.12 9.7L304 415.1H448c35.25 0 64-28.75 64-63.1V63.1C512 28.75 483.3-.0004 448-.0004zM464 352c0 8.75-7.25 16-16 16h-160l-80 60v-60H64c-8.75 0-16-7.25-16-16V64c0-8.75 7.25-16 16-16h384c8.75 0 16 7.25 16 16V352zM124.4 192.6C113.6 189.5 103.2 187.2 104.2 181.5c.7813-4.5 10.28-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.375 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34C143.1 147.8 136.5 145.9 130.6 145c-30.69-4.812-53.94 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34C135 239 125.7 241.1 114.3 239.4C107.9 238.4 100.4 235.4 93.38 232.9c-8.375-2.969-16 1.875-18.97 10.19S77.19 261.1 85.5 264.1C92.81 266.8 101.1 269.8 109.4 271C113.7 271.7 117.9 272 121.1 272c24.28 0 41.94-12.03 45.38-32.13C173.1 206.5 141.4 197.5 124.4 192.6zM396.4 192.6C385.6 189.5 375.2 187.2 376.2 181.5c.7813-4.5 10.31-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.406 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34c-6.156-2.125-12.69-4.062-18.59-4.969c-30.75-4.812-53.97 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34c-.7813 4.562-10.12 6.656-21.56 4.938c-6.342-.9883-13.9-3.939-20.88-6.438c-8.375-2.969-16 1.875-18.97 10.19s2.781 17.97 11.09 20.97c7.312 2.656 15.62 5.656 23.88 6.906C385.7 271.7 389.9 272 393.1 272c24.28 0 41.94-12.03 45.38-32.13C445.1 206.5 413.4 197.5 396.4 192.6zM309.1 144.8c-6.469-2.062-13.72 .0625-17.88 5.594L256 197.3L220.8 150.4C216.7 144.9 209.4 142.7 202.9 144.8C196.4 147 192 153.1 192 160v96c0 8.844 7.156 16 16 16S224 264.8 224 256V208l19.19 25.59c6.062 8.062 19.56 8.062 25.62 0L288 208V256c0 8.844 7.156 16 16 16S320 264.8 320 256V160C320 153.1 315.6 147 309.1 144.8z\"/></svg>",
1964
2266
  "message_sms_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M0 64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V416H64c-35.3 0-64-28.7-64-64V64zm202.9 80.8C196.4 147 192 153.1 192 160v96c0 8.8 7.2 16 16 16s16-7.2 16-16V208l19.2 25.6c3 4 7.8 6.4 12.8 6.4s9.8-2.4 12.8-6.4L288 208v48c0 8.8 7.2 16 16 16s16-7.2 16-16V160c0-6.9-4.4-13-10.9-15.2s-13.7 .1-17.9 5.6L256 197.3l-35.2-46.9c-4.1-5.5-11.3-7.8-17.9-5.6zm173.1 38c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.1 .1 12.9 1.4 20.1 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.2-2.2-17.9-4.3-27.9-4.4c-9.3-.1-20.4 1.9-29.7 7.4c-9.9 5.9-18.6 16.4-18.5 31.6c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7-.2-13.5-2.4-22.6-5.5l0 0 0 0c-1.5-.5-3.2-1.1-4.9-1.6c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.2 .4 2.6 .9 4 1.4l0 0 0 0c8.8 3 20.4 7 32.6 7.4c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.2-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4zm-272 0c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.6 .1 16.7 1.6 23.3 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.8-2.4-21.6-4.3-31.1-4.4c-9.3-.1-20.4 1.9-29.7 7.4C80.6 157.3 72 167.8 72 183c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l0 0 1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7.2-.2-14.2-2.6-23.7-5.8l0 0 0 0c-1.3-.4-2.7-.9-4.1-1.4c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.1 .4 2.4 .8 3.6 1.2l0 0 0 0c9 3.1 20.9 7.2 33.2 7.6c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.3-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4z\"/></svg>",
2267
+ "notification": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><path d=\"M15,1.1C6.72,1.1,0,6,0,12.06c0,2.12,.84,4.09,2.27,5.77h-.16c.16,.1,.28,.22,.43,.32,.4,.44,.86,.85,1.35,1.24,3.07,3.75,.06,8.71-3.25,9.84,5.79-1.34,9.31-3.89,10.9-6.53,1.11,.19,2.27,.31,3.46,.31,8.28,0,15-4.91,15-10.96S23.28,1.1,15,1.1Zm1.38,17.07h-2.82v-7.06h2.82v7.06Zm-.34-9.59c-.28,.28-.61,.41-1,.41s-.72-.14-1-.41c-.28-.28-.41-.61-.41-1s.14-.72,.41-1c.27-.28,.61-.41,1-.41s.72,.14,1,.41c.28,.28,.41,.61,.41,1s-.14,.72-.41,1Z\" fill=\"#484f60\"/></g></svg>",
1965
2268
  "paperclip_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M375 73c-26-26-68.1-26-94.1 0L89 265C45.3 308.6 45.3 379.4 89 423s114.4 43.6 158.1 0L399 271c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L281 457c-62.4 62.4-163.5 62.4-225.9 0S-7.4 293.4 55 231L247 39C291.7-5.7 364.2-5.7 409 39s44.7 117.2 0 161.9L225.2 384.7c-31.6 31.6-83.6 28.7-111.5-6.2c-23.8-29.8-21.5-72.8 5.5-99.8L271 127c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L153.2 312.7c-9.7 9.7-10.6 25.1-2 35.8c10 12.5 28.7 13.6 40 2.2L375 167c26-26 26-68.1 0-94.1z\"/></svg>",
1966
2269
  "pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.88c-2.16,0-2.72-.56-2.72-2.72V12.88c0-2.15.56-2.71,2.72-2.71h11.6l8.66,8.88v3.43H32.8V19.6l-7.88-8.09h-11c-1.38,0-1.38,0-1.38,1.37V37.45c0,1.37,0,1.37,1.38,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M27.83,26.63v4.24h1a3.57,3.57,0,0,0,.78-.06,1.22,1.22,0,0,0,.52-.26,1.44,1.44,0,0,0,.34-.62,4.13,4.13,0,0,0,.13-1.18,3.79,3.79,0,0,0-.13-1.14,1.51,1.51,0,0,0-.37-.62,1.14,1.14,0,0,0-.6-.3,5.93,5.93,0,0,0-1.06-.06Z\" fill=\"#484f60\"/><path d=\"M21.86,26.63v1.82h.71a3.57,3.57,0,0,0,1-.1A.88.88,0,0,0,24,28a.84.84,0,0,0,.14-.5.8.8,0,0,0-.2-.57.88.88,0,0,0-.52-.29,6.36,6.36,0,0,0-.93,0Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.12,4.24a1.68,1.68,0,0,1-.54.63,1.9,1.9,0,0,1-.67.3,6.57,6.57,0,0,1-1.34.1h-.85V32H20.57V25.54h2.07a7.75,7.75,0,0,1,1.54.1,1.73,1.73,0,0,1,.93.63,2,2,0,0,1,.37,1.25A2,2,0,0,1,25.26,28.51Zm6.45,1.66A2.91,2.91,0,0,1,31,31.31a2.28,2.28,0,0,1-.91.51A4,4,0,0,1,29,32H26.54V25.54H28.9a4.21,4.21,0,0,1,1.22.13,2.08,2.08,0,0,1,1,.59,2.79,2.79,0,0,1,.61,1,4.76,4.76,0,0,1,.21,1.52A4.19,4.19,0,0,1,31.71,30.17Zm5.7-3.54h-3.1v1.52H37v1.08H34.31V32H33V25.54h4.39Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/></svg>",
1967
2270
  "person_digging_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M208 64a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM440.8 288c8.2 .3 15.7 4.7 19.8 11.8l104 176c4.4 7.4 4.5 16.6 .2 24.1s-12.2 12.1-20.8 12.1H288c-7.7 0-15-3.7-19.5-10s-5.7-14.3-3.3-21.6l16-48c3.3-9.8 12.4-16.4 22.8-16.4h35.4l20.3-29.5L22.8 246.2c-12.2-5.1-18-19.1-12.9-31.4s19.1-18 31.4-12.9L61 210.1l19.8-36.2C96.2 145.6 125.8 128 158 128h3.8c52.3 0 98.5 33.8 114.4 83.6l32.3 101.6 79 32.9 32.8-47.7c4.6-6.8 12.4-10.7 20.6-10.4zm-190.4 1l-20-62.8c-9.5-29.9-37.3-50.2-68.6-50.2H158c-14.6 0-28.1 8-35.1 20.8l-17.3 31.8L250.4 289zm188.1 67.6l-66.7 97L364.6 464H501.9L438.5 356.6zM81.4 301.1l128 54.4c8.9 3.8 14.6 12.5 14.6 22.1V488c0 13.3-10.7 24-24 24s-24-10.7-24-24V393.5L87.5 355.9 47 494.7c-3.7 12.7-17 20-29.8 16.3S-2.7 494 1 481.3L49 316.5l7.6-25.9 24.9 10.6z\"/></svg>",
2271
+ "pin_round_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><path d=\"M683.16,390.18a7.07,7.07,0,0,1-3.09-.77c-2.53-1.25-3.94-3.58-3.14-5.19a3.07,3.07,0,0,1,2.94-1.43h.1l-1,1.74v.2a2.48,2.48,0,0,0,.78,1.82,5.23,5.23,0,0,0,3.44,1.51,2,2,0,0,0,1.8-.84l.06-.09.52-1.48a3,3,0,0,1,.57,3.09,3.07,3.07,0,0,1-2.94,1.43Z\" transform=\"translate(-657.5 -358.97)\" fill=\"#4d5065\"/><path d=\"M683.15,386.94a4.06,4.06,0,0,1-2.62-1.16,1.5,1.5,0,0,1-.47-.92l2.32-4a5.24,5.24,0,0,0,3.13,1.45L684,386.63a1,1,0,0,1-.84.31Z\" transform=\"translate(-657.5 -358.97)\" fill=\"#4d5065\"/><path d=\"M686.75,381.45a5.78,5.78,0,0,1-2.52-.63c-2.06-1-3.21-2.9-2.57-4.21a2.48,2.48,0,0,1,2.37-1.15,5.78,5.78,0,0,1,2.53.63,5.5,5.5,0,0,1,2.32,2.05,2.26,2.26,0,0,1,.24,2.15,2.48,2.48,0,0,1-2.37,1.15Z\" transform=\"translate(-657.5 -358.97)\" fill=\"#4d5065\"/><path d=\"M679.42,390l-.89,1.92-.13,1.55,1-1.16.81-1.92-.54-.24Z\" transform=\"translate(-657.5 -358.97)\" fill=\"#4d5065\"/><path d=\"M683,399.47a15,15,0,1,1,15-15A15,15,0,0,1,683,399.47Zm0-29a14,14,0,1,0,14,14A14,14,0,0,0,683,370.44Z\" transform=\"translate(-657.5 -358.97)\" fill=\"#4d5065\"/></svg>",
1968
2272
  "print": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M38,16.5H12a2,2,0,0,0-2,2v9a2,2,0,0,0,2,2h2v-5H36v5h2a2,2,0,0,0,2-2v-9A2,2,0,0,0,38,16.5ZM37,21a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,37,21Z\" fill=\"#484f60\"/><path d=\"M35,11.5v5H15v-5H35m1-1H14v7H36v-7Z\" fill=\"#484f60\"/><path d=\"M35,25.5v13H15v-13H35m1-1H14v15H36v-15Z\" fill=\"#484f60\"/><rect x=\"17\" y=\"28.3\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"31.5\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"34.7\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/></svg>",
1969
2273
  "print_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M111.1 48h254.1L400 81.94V160H448V81.94c0-12.73-5.057-24.94-14.06-33.94l-33.94-33.94C391 5.057 378.8 0 366.1 0H111.1C85.49 0 64.01 21.48 64 47.98l.002 82.28c-.002 0 .002 0 0 0L64 160h48.01L111.1 48zM440 192H72C32.3 192 0 224.3 0 264v112c0 13.25 10.75 24 24 24H80V480c0 17.67 14.33 32 32 32h288c17.67 0 32-14.33 32-32v-80h56c13.25 0 24-10.75 24-24v-112C512 224.3 479.7 192 440 192zM384 464H128v-96h256V464zM464 352h-32c0-17.67-14.33-32-32-32h-288c-17.67 0-32 14.33-32 32h-32V264c0-13.23 10.77-24 24-24h368c13.23 0 24 10.77 24 24V352z\"/></svg>",
1970
2274
  "print_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448 192H64C28.65 192 0 220.7 0 256v96c0 17.67 14.33 32 32 32h32v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h32c17.67 0 32-14.33 32-32V256C512 220.7 483.3 192 448 192zM384 448H128v-96h256V448zM432 296c-13.25 0-24-10.75-24-24c0-13.27 10.75-24 24-24s24 10.73 24 24C456 285.3 445.3 296 432 296zM128 64h229.5L384 90.51V160h64V77.25c0-8.484-3.375-16.62-9.375-22.62l-45.25-45.25C387.4 3.375 379.2 0 370.8 0H96C78.34 0 64 14.33 64 32v128h64V64z\"/></svg>",
1971
2275
  "signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
1972
2276
  "tag_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M197.5 32c17 0 33.3 6.7 45.3 18.7l176 176c25 25 25 65.5 0 90.5L285.3 450.7c-25 25-65.5 25-90.5 0l-176-176C6.7 262.7 0 246.5 0 229.5V80C0 53.5 21.5 32 48 32H197.5zM48 229.5c0 4.2 1.7 8.3 4.7 11.3l176 176c6.2 6.2 16.4 6.2 22.6 0L384.8 283.3c6.2-6.2 6.2-16.4 0-22.6l-176-176c-3-3-7.1-4.7-11.3-4.7H48V229.5zM112 112a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"/></svg>",
2277
+ "task": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M23.82,3.53h-.88v1.32h.88c.24,0,.44,.2,.44,.44V28.24c0,.24-.2,.44-.44,.44H6.18c-.24,0-.44-.2-.44-.44V5.29c0-.24,.2-.44,.44-.44h.88v-1.32h-.88c-.97,0-1.76,.79-1.76,1.76V28.24c0,.97,.79,1.76,1.76,1.76H23.82c.97,0,1.76-.79,1.76-1.76V5.29c0-.97-.79-1.76-1.76-1.76Z\" fill=\"#484f60\"/><path d=\"M17.65,2.65c0,1.46-1.19,2.65-2.65,2.65s-2.65-1.19-2.65-2.65h-3.09c-.49,0-.88,.4-.88,.88v2.65c0,.49,.4,.88,.88,.88h11.47c.49,0,.88-.4,.88-.88V3.53c0-.49-.4-.88-.88-.88h-3.09Z\" fill=\"#484f60\"/><path d=\"M15,0C13.54,0,12.35,1.19,12.35,2.65s1.19,2.65,2.65,2.65,2.65-1.19,2.65-2.65S16.46,0,15,0Zm0,3.97c-.73,0-1.32-.59-1.32-1.32s.59-1.32,1.32-1.32,1.32,.59,1.32,1.32-.59,1.32-1.32,1.32Z\" fill=\"#484f60\"/><rect x=\"12.09\" y=\"11.51\" width=\"10\" height=\"1\" fill=\"#484f60\"/><rect x=\"12.09\" y=\"17.51\" width=\"10\" height=\"1\" fill=\"#484f60\"/><rect x=\"12.09\" y=\"23.51\" width=\"10\" height=\"1\" fill=\"#484f60\"/><path d=\"M10.09,23.51v1h-1v-1h1m1-1h-3v3h3v-3h0Z\" fill=\"#484f60\"/><polygon points=\"9.44 20.01 7.91 17.86 8.52 17.43 9.33 18.57 10.61 16.01 11.27 16.35 9.44 20.01\" fill=\"#484f60\"/><polygon points=\"9.44 14.01 7.91 11.86 8.52 11.43 9.33 12.57 10.61 10.01 11.27 10.35 9.44 14.01\" fill=\"#484f60\"/></g></g></svg>",
1973
2278
  "trashbin": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M144 400C144 408.8 136.8 416 128 416C119.2 416 112 408.8 112 400V176C112 167.2 119.2 160 128 160C136.8 160 144 167.2 144 176V400zM240 400C240 408.8 232.8 416 224 416C215.2 416 208 408.8 208 400V176C208 167.2 215.2 160 224 160C232.8 160 240 167.2 240 176V400zM336 400C336 408.8 328.8 416 320 416C311.2 416 304 408.8 304 400V176C304 167.2 311.2 160 320 160C328.8 160 336 167.2 336 176V400zM310.1 22.56L336.9 64H432C440.8 64 448 71.16 448 80C448 88.84 440.8 96 432 96H416V432C416 476.2 380.2 512 336 512H112C67.82 512 32 476.2 32 432V96H16C7.164 96 0 88.84 0 80C0 71.16 7.164 64 16 64H111.1L137 22.56C145.8 8.526 161.2 0 177.7 0H270.3C286.8 0 302.2 8.526 310.1 22.56V22.56zM148.9 64H299.1L283.8 39.52C280.9 34.84 275.8 32 270.3 32H177.7C172.2 32 167.1 34.84 164.2 39.52L148.9 64zM64 432C64 458.5 85.49 480 112 480H336C362.5 480 384 458.5 384 432V96H64V432z\" fill=\"#484f60\"></path></svg>",
1974
2279
  "xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M21.42,30.17H3.87c-2.16,0-2.72-.56-2.72-2.72V2.88C1.16,.73,1.72,.17,3.87,.17H15.48l8.66,8.88v3.43h-1.34v-2.88L14.92,1.51H3.87q-1.37,0-1.37,1.37V27.45q0,1.37,1.37,1.37H21.42q1.37,0,1.37-1.37v-2.43h1.34v2.43c0,2.16-.56,2.72-2.72,2.72Z\" fill=\"#484f60\"/><path d=\"M15.2,.84V7.28c0,1.78,.27,2.05,2.04,2.05h6.22L15.2,.84Z\" fill=\"#484f60\"/><path d=\"M9.14,14.27v8.96H28.84V14.27H9.14Zm5.36,7.4l-1.3-2.02-1.3,2.02h-1.42l2-3.05-1.81-2.8h1.38l1.17,1.88,1.15-1.88h1.37l-1.82,2.84,2,3.01h-1.43Zm7.67,0h-1.1v-4.61l-1.16,4.61h-1.14l-1.16-4.61v4.61h-1.1v-5.85h1.77l1.06,3.99,1.05-3.99h1.77v5.85Zm5.33,0h-4.12v-5.81h1.18v4.82h2.94v.99Z\" fill=\"#484f60\"/></g></g></svg>",
1975
2280
  "x_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z\"/></svg>"
@@ -2043,10 +2348,12 @@
2043
2348
  this.okButtonClicked = new i0.EventEmitter();
2044
2349
  this.cancelButtonClicked = new i0.EventEmitter();
2045
2350
  this.handleClick = new i0.EventEmitter();
2351
+ this.updateGridData = new i0.EventEmitter();
2046
2352
  this.loaded = false;
2047
2353
  this.showStockInformationGrid = true;
2048
2354
  this.showStockTransfer = false;
2049
2355
  this.stockInformation = [];
2356
+ this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
2050
2357
  this.stockHistory = [];
2051
2358
  this.allAvailableStock = 0;
2052
2359
  this.allTechnicalStock = 0;
@@ -2103,7 +2410,12 @@
2103
2410
  data.entryDate = new Date;
2104
2411
  this._stockService.updateArticleDetails(data).then(function (result) {
2105
2412
  _this.handleClick.emit();
2413
+ _this._stockService.getArticleDetails(_this.articleDetailsInformation).then(function (details) {
2414
+ _this.updateGridData.emit(details);
2415
+ });
2106
2416
  });
2417
+ this.loaded = true;
2418
+ this.loadData();
2107
2419
  };
2108
2420
  StockComponent.prototype.backToStock = function (goodId) {
2109
2421
  this.loadData();
@@ -2200,7 +2512,7 @@
2200
2512
  StockComponent.decorators = [
2201
2513
  { type: i0.Component, args: [{
2202
2514
  selector: "co-stock",
2203
- template: "\n <div class=\"stock-info-container\" *ngIf=\"loaded && articleExtended\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStockState]=\"articleStockState\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n [economicalStock]=\"economicalStock\"\n >\n </co-stock-information>\n <co-stock-tabs [stockInformation]=\"stockInformation\"\n [article]=\"articleExtended\"\n [articleFlat]=\"articleFlat\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (sendMethodDialogClicked)=\"handleSendMethodClick($event)\"\n [warehouses]=\"warehouses\"\n ></co-stock-tabs>\n <div class=\"stock-transfer-wrapper\">\n <co-dialog *ngIf=\"showStockTransfer\"\n (closeClick)=\"showStockTransfer = false\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'TRANSFER_STOCK' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <co-stock-transfer (handleClick)=\"backToStock($event)\"\n class=\"stock-transfer-dialog\"\n [article]=\"stockTransferArticle\"\n [articleToTransfer]=\"stockTransferArticleDetails\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\">\n </co-stock-transfer>\n </div>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper ok-cancel-buttons\">\n <co-button class=\"save-button\"\n (click)=\"handleOkClick(stockTransferArticleDetails)\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\">\n </co-button>\n <co-button class=\"cancel-button\"\n (click)=\"showStockTransfer = false\"\n [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n </div>\n\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\">\n\n </co-send-method-dialog>\n </div>\n ",
2515
+ template: "\n <div class=\"stock-info-container\" *ngIf=\"loaded && articleExtended\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStockState]=\"articleStockState\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n [economicalStock]=\"economicalStock\"\n >\n </co-stock-information>\n <co-stock-tabs [stockInformation]=\"stockInformation\"\n [article]=\"articleExtended\"\n [articleFlat]=\"articleFlat\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (sendMethodDialogClicked)=\"handleSendMethodClick($event)\"\n [warehouses]=\"warehouses\"\n [showStockTransfer]=\"showStockTransfer\"\n\n ></co-stock-tabs>\n </div>\n ",
2204
2516
  encapsulation: i0.ViewEncapsulation.None
2205
2517
  },] }
2206
2518
  ];
@@ -2482,15 +2794,24 @@
2482
2794
  };
2483
2795
 
2484
2796
  var StockTransferComponent = /** @class */ (function () {
2485
- function StockTransferComponent(_stockService, iconCacheService) {
2797
+ function StockTransferComponent(_stockService, iconCacheService, _changeDetector) {
2486
2798
  this._stockService = _stockService;
2487
2799
  this.iconCacheService = iconCacheService;
2800
+ this._changeDetector = _changeDetector;
2801
+ this.selectedArticleDetailsData = new articleDetails_bo.ArticleDetailsBo();
2802
+ this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
2803
+ this.articleStockInfo = [];
2804
+ this.stockLocations = [];
2488
2805
  this.handleClick = new i0.EventEmitter();
2489
2806
  this.handleStickerClicked = new i0.EventEmitter();
2807
+ this.updateGridData = new i0.EventEmitter();
2808
+ this.showStockTransferChange = new i0.EventEmitter();
2490
2809
  this.showSendMethodDialog = false;
2810
+ this.transferFull = false;
2491
2811
  this.warehouses = [];
2492
2812
  this.stockState = [];
2493
2813
  this.locations = [];
2814
+ this.stockStatus = [];
2494
2815
  this.icons = exports["ɵbu"];
2495
2816
  }
2496
2817
  StockTransferComponent.prototype.ngAfterViewInit = function () {
@@ -2499,21 +2820,31 @@
2499
2820
  };
2500
2821
  StockTransferComponent.prototype.handleOkClick = function (data) {
2501
2822
  var _this = this;
2502
- data.selected = true;
2503
- data.entryDate = new Date;
2504
- this._stockService.updateArticleDetails(data).then(function (result) {
2505
- if (result) {
2506
- _this.handleClick.emit(data.goodId);
2507
- }
2508
- });
2823
+ if (this.articleToTransfer.amountTransfer > this.articleToTransfer.amountInStockFree) {
2824
+ this.transferFull = true;
2825
+ }
2826
+ else {
2827
+ data.selected = true;
2828
+ data.entryDate = new Date;
2829
+ this._stockService.updateArticleDetails(data).then(function (result) {
2830
+ _this.handleClick.emit();
2831
+ _this.showStockTransferChange.emit(false);
2832
+ _this._stockService.getArticleDetails(_this.articleDetailsInformation).then(function (details) {
2833
+ _this.articleStockInfo = details;
2834
+ _this.updateGridData.emit(details);
2835
+ });
2836
+ }).catch(function (result) {
2837
+ // Log failure message
2838
+ });
2839
+ }
2509
2840
  };
2510
- StockTransferComponent.prototype.handleCancelClick = function () {
2511
- this.handleClick.emit();
2841
+ StockTransferComponent.prototype.onCloseClick = function () {
2842
+ this.showStockTransferChange.emit(false);
2512
2843
  };
2513
2844
  StockTransferComponent.prototype.handleSelectedWarehouse = function (event) {
2514
2845
  this.articleToTransfer.targetWarehouse = event.warehouseNo;
2515
2846
  this.selectedWarehouse = event;
2516
- this.getStockManagementLocations(this.selectedWarehouse.warehouseNo);
2847
+ this.getStockManagementLocations();
2517
2848
  };
2518
2849
  StockTransferComponent.prototype.handleSelectedLocation = function (event) {
2519
2850
  this.articleToTransfer.targetLocation = event.locationNo;
@@ -2531,10 +2862,10 @@
2531
2862
  _this.warehouses = warehouses;
2532
2863
  });
2533
2864
  };
2534
- StockTransferComponent.prototype.getStockManagementLocations = function (data) {
2865
+ StockTransferComponent.prototype.getStockManagementLocations = function () {
2535
2866
  var _this = this;
2536
- this._stockService.getStockManagementLocations(data).then(function (locations) {
2537
- _this.locations = locations;
2867
+ this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(function (locations) {
2868
+ _this.stockLocations = locations;
2538
2869
  });
2539
2870
  };
2540
2871
  StockTransferComponent.prototype.getStockState = function () {
@@ -2548,22 +2879,32 @@
2548
2879
  StockTransferComponent.decorators = [
2549
2880
  { type: i0.Component, args: [{
2550
2881
  selector: "co-stock-transfer",
2551
- template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-top-column\">\n <div class=\"transfer-items\">\n <div class=\"transfer-item\">\n <label class=\"item-label\" [textContent]=\"'WAREHOUSE' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.warehouseDescription\"></span>\n </div>\n <div class=\"transfer-item\">\n <label class=\"item-label\" [textContent]=\"'LOCATION' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.locationNo\"></span>\n </div>\n <div class=\"transfer-item\" *ngIf=\"articleToTransfer?.batchNo\">\n <label class=\"item-label\" [textContent]=\"'BATCH_NO' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.batchNo\"></span>\n </div>\n <div class=\"transfer-item\" *ngIf=\"articleToTransfer?.serialNo\">\n <label class=\"item-label\" [textContent]=\"'SERIE_NO' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.serialNo\"></span>\n </div>\n </div>\n <div class=\"transfer-quantity\">\n <co-input-number-picker\n [(model)]=\"articleToTransfer.amountTransfer\"\n [min]=\"1\"\n [label]=\"'QUANTITY' | localize\">\n </co-input-number-picker>\n </div>\n </div>\n <div class=\"transfer-arrow-wrapper\">\n <span class=\"half-circle\"></span>\n <div class=\"icon-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ArrowDownRegular)\"></co-icon>\n </div>\n </div>\n\n\n <div class=\"stock-transfer-bottom-column\">\n <div class=\"transfer-bottom-row\">\n <co-list-of-values [collection]=\"warehouses\"\n [displayField]=\"'warehouseDescription'\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [label]=\"'WAREHOUSE' | localize\"\n >\n </co-list-of-values>\n <co-list-of-values [collection]=\"locations\"\n [displayField]=\"'description'\"\n (modelChange)=\"handleSelectedLocation($event)\"\n [label]=\"'LOCATION' | localize\"\n >\n </co-list-of-values>\n </div>\n <div class=\"transfer-bottom-row\">\n <co-list-of-values [collection]=\"stockState\"\n [displayField]=\"'stateDescription'\"\n [label]=\"'STOCK_STATE' | localize\"\n (modelChange)=\"handleSelectedStockState($event)\"\n >\n </co-list-of-values>\n </div>\n <div class=\"transfer-bottom-row\">\n <co-input-text [placeholder]=\"'DESCRIPTION' | localize\"\n [(model)]=\"articleToTransfer.stockStateRemark\">\n </co-input-text>\n </div>\n </div>\n <div class=\"transfer-sticker-buttons\">\n <co-button\n [label]=\"'STICKER' | localize\"\n (click)=\"handleStickerClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.BarcodeReadRegular)\">\n </co-button>\n </div>\n </div>\n </div>\n ",
2882
+ template: "\n <div class=\"stock-transfer\">\n <co-dialog\n (closeClick)=\"onCloseClick()\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'TRANSFER_STOCK' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-top-column\">\n <div class=\"transfer-items\">\n <div class=\"transfer-item\">\n <label class=\"item-label\" [textContent]=\"'WAREHOUSE' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.warehouseDescription\"></span>\n </div>\n <div class=\"transfer-item\">\n <label class=\"item-label\" [textContent]=\"'LOCATION' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.locationNo\"></span>\n </div>\n <div class=\"transfer-item\" *ngIf=\"articleToTransfer?.batchNo\">\n <label class=\"item-label\" [textContent]=\"'BATCH_NO' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.batchNo\"></span>\n </div>\n <div class=\"transfer-item\" *ngIf=\"articleToTransfer?.serialNo\">\n <label class=\"item-label\" [textContent]=\"'SERIE_NO' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.serialNo\"></span>\n </div>\n </div>\n <div class=\"transfer-quantity\">\n <co-input-number-picker\n [(model)]=\"articleToTransfer.amountTransfer\"\n [min]=\"1\"\n [label]=\"'QUANTITY' | localize\">\n </co-input-number-picker>\n <span *ngIf=\"transferFull\" [textContent]=\"this.articleToTransfer.amountInStockFree + (' AVAILABLE' | localize)\"></span>\n </div>\n </div>\n <div class=\"transfer-arrow-wrapper\">\n <span class=\"half-circle\"></span>\n <div class=\"icon-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ArrowDownRegular)\"></co-icon>\n </div>\n </div>\n\n\n <div class=\"stock-transfer-bottom-column\">\n <div class=\"transfer-bottom-row\">\n <co-list-of-values [collection]=\"warehouses\"\n [displayField]=\"'warehouseDescription'\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [label]=\"'WAREHOUSE' | localize\"\n >\n </co-list-of-values>\n <co-list-of-values [collection]=\"stockLocations\"\n [displayField]=\"'locationNo'\"\n (modelChange)=\"handleSelectedLocation($event)\"\n [label]=\"'LOCATION' | localize\"\n >\n </co-list-of-values>\n </div>\n <div class=\"transfer-bottom-row\">\n <co-list-of-values [collection]=\"stockState\"\n [displayField]=\"'stateDescription'\"\n [label]=\"'STOCK_STATE' | localize\"\n (modelChange)=\"handleSelectedStockState($event)\"\n >\n </co-list-of-values>\n </div>\n\n </div>\n <div class=\"transfer-sticker-buttons\">\n <co-button\n [label]=\"'STICKER' | localize\"\n (click)=\"handleStickerClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.BarcodeReadRegular)\">\n </co-button>\n </div>\n </div>\n </div>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper ok-cancel-buttons\">\n <co-button class=\"save-button\"\n (click)=\"handleOkClick(articleToTransfer)\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\">\n </co-button>\n <co-button class=\"cancel-button\"\n (click)=\"onCloseClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n </div>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n (closeClick)=\"showSendMethodDialog = false\">\n\n </co-send-method-dialog>\n ",
2552
2883
  encapsulation: i0.ViewEncapsulation.None
2553
2884
  },] }
2554
2885
  ];
2555
2886
  StockTransferComponent.ctorParameters = function () { return [
2556
2887
  { type: StockService },
2557
- { type: IconCacheService }
2888
+ { type: IconCacheService },
2889
+ { type: i0.ChangeDetectorRef }
2558
2890
  ]; };
2559
2891
  StockTransferComponent.propDecorators = {
2560
2892
  stockSticker: [{ type: i0.Input }],
2561
2893
  article: [{ type: i0.Input }],
2562
2894
  articleToTransfer: [{ type: i0.Input }],
2563
- articleWarehouse: [{ type: i0.Input }],
2564
2895
  allWarehouses: [{ type: i0.Input }],
2896
+ showStockTransfer: [{ type: i0.Input }],
2897
+ selectedArticleDetailsData: [{ type: i0.Input }],
2898
+ articleFlat: [{ type: i0.Input }],
2899
+ articleDetailsInformation: [{ type: i0.Input }],
2900
+ selectedWarehouse: [{ type: i0.Input }],
2901
+ selectedLocationNo: [{ type: i0.Input }],
2902
+ articleStockInfo: [{ type: i0.Input }],
2903
+ stockLocations: [{ type: i0.Input }],
2565
2904
  handleClick: [{ type: i0.Output }],
2566
- handleStickerClicked: [{ type: i0.Output }]
2905
+ handleStickerClicked: [{ type: i0.Output }],
2906
+ updateGridData: [{ type: i0.Output }],
2907
+ showStockTransferChange: [{ type: i0.Output }]
2567
2908
  };
2568
2909
 
2569
2910
  var SharedService = /** @class */ (function () {
@@ -2586,7 +2927,19 @@
2586
2927
  });
2587
2928
  });
2588
2929
  };
2589
- SharedService.prototype.getAllPrinters = function () {
2930
+ SharedService.prototype.connect = function () {
2931
+ return __awaiter(this, void 0, void 0, function () {
2932
+ return __generator(this, function (_a) {
2933
+ switch (_a.label) {
2934
+ case 0: return [4 /*yield*/, this.connector.connect()];
2935
+ case 1:
2936
+ _a.sent();
2937
+ return [2 /*return*/];
2938
+ }
2939
+ });
2940
+ });
2941
+ };
2942
+ SharedService.prototype.getAllPrinters = function () {
2590
2943
  return __awaiter(this, void 0, void 0, function () {
2591
2944
  return __generator(this, function (_a) {
2592
2945
  switch (_a.label) {
@@ -2637,6 +2990,16 @@
2637
2990
  });
2638
2991
  });
2639
2992
  };
2993
+ SharedService.prototype.getJoinedTags = function (table, key) {
2994
+ return __awaiter(this, void 0, void 0, function () {
2995
+ return __generator(this, function (_a) {
2996
+ switch (_a.label) {
2997
+ case 0: return [4 /*yield*/, this.connector.getJoinedTags(table, key)];
2998
+ case 1: return [2 /*return*/, _a.sent()];
2999
+ }
3000
+ });
3001
+ });
3002
+ };
2640
3003
  SharedService.prototype.getDocumentContent = function (docId, thumbnail) {
2641
3004
  if (thumbnail === void 0) { thumbnail = true; }
2642
3005
  return __awaiter(this, void 0, void 0, function () {
@@ -2648,6 +3011,157 @@
2648
3011
  });
2649
3012
  });
2650
3013
  };
3014
+ SharedService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
3015
+ return __awaiter(this, void 0, void 0, function () {
3016
+ return __generator(this, function (_a) {
3017
+ switch (_a.label) {
3018
+ case 0: return [4 /*yield*/, this.connector.getComponentActivitiesWithoutRelationFiltering(table, key)];
3019
+ case 1: return [2 /*return*/, _a.sent()];
3020
+ }
3021
+ });
3022
+ });
3023
+ };
3024
+ SharedService.prototype.updateActivity = function (activity) {
3025
+ return __awaiter(this, void 0, void 0, function () {
3026
+ return __generator(this, function (_a) {
3027
+ switch (_a.label) {
3028
+ case 0: return [4 /*yield*/, this.connector.updateActivity(activity)];
3029
+ case 1: return [2 /*return*/, _a.sent()];
3030
+ }
3031
+ });
3032
+ });
3033
+ };
3034
+ SharedService.prototype.deleteActivity = function (activity) {
3035
+ return __awaiter(this, void 0, void 0, function () {
3036
+ return __generator(this, function (_a) {
3037
+ switch (_a.label) {
3038
+ case 0: return [4 /*yield*/, this.connector.deleteActivity(activity)];
3039
+ case 1: return [2 /*return*/, _a.sent()];
3040
+ }
3041
+ });
3042
+ });
3043
+ };
3044
+ SharedService.prototype.lockTask = function (id) {
3045
+ return __awaiter(this, void 0, void 0, function () {
3046
+ return __generator(this, function (_a) {
3047
+ switch (_a.label) {
3048
+ case 0: return [4 /*yield*/, this.connector.lockTask(id)];
3049
+ case 1: return [2 /*return*/, _a.sent()];
3050
+ }
3051
+ });
3052
+ });
3053
+ };
3054
+ SharedService.prototype.canFireTrigger = function (activity, task) {
3055
+ return true;
3056
+ };
3057
+ SharedService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
3058
+ return __awaiter(this, void 0, void 0, function () {
3059
+ return __generator(this, function (_a) {
3060
+ switch (_a.label) {
3061
+ case 0: return [4 /*yield*/, this.connector.fireTrigger(workFlowProcessId, sequence, triggerId)];
3062
+ case 1: return [2 /*return*/, _a.sent()];
3063
+ }
3064
+ });
3065
+ });
3066
+ };
3067
+ SharedService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
3068
+ return __awaiter(this, void 0, void 0, function () {
3069
+ return __generator(this, function (_a) {
3070
+ switch (_a.label) {
3071
+ case 0: return [4 /*yield*/, this.connector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId)];
3072
+ case 1: return [2 /*return*/, _a.sent()];
3073
+ }
3074
+ });
3075
+ });
3076
+ };
3077
+ SharedService.prototype.getRelationListObjects = function (request) {
3078
+ return __awaiter(this, void 0, void 0, function () {
3079
+ return __generator(this, function (_a) {
3080
+ switch (_a.label) {
3081
+ case 0: return [4 /*yield*/, this.connector.getRelationListObjects(request)];
3082
+ case 1: return [2 /*return*/, _a.sent()];
3083
+ }
3084
+ });
3085
+ });
3086
+ };
3087
+ SharedService.prototype.getTaskCategories = function () {
3088
+ return __awaiter(this, void 0, void 0, function () {
3089
+ return __generator(this, function (_a) {
3090
+ switch (_a.label) {
3091
+ case 0: return [4 /*yield*/, this.connector.getTaskCategories()];
3092
+ case 1: return [2 /*return*/, _a.sent()];
3093
+ }
3094
+ });
3095
+ });
3096
+ };
3097
+ SharedService.prototype.getActiveProcessesByTableAndKey = function (table, key) {
3098
+ return __awaiter(this, void 0, void 0, function () {
3099
+ return __generator(this, function (_a) {
3100
+ switch (_a.label) {
3101
+ case 0: return [4 /*yield*/, this.connector.getActiveProcessesByTableAndKey(table, key)];
3102
+ case 1: return [2 /*return*/, _a.sent()];
3103
+ }
3104
+ });
3105
+ });
3106
+ };
3107
+ SharedService.prototype.getDomainCollection = function (languageCode, domainName) {
3108
+ return __awaiter(this, void 0, void 0, function () {
3109
+ return __generator(this, function (_a) {
3110
+ switch (_a.label) {
3111
+ case 0: return [4 /*yield*/, this.connector.getDomainCollection(languageCode, domainName)];
3112
+ case 1: return [2 /*return*/, _a.sent()];
3113
+ }
3114
+ });
3115
+ });
3116
+ };
3117
+ SharedService.prototype.getRoleEmailAddressesByWorkflowCategoryAndKey = function (workflowCategory, key) {
3118
+ return __awaiter(this, void 0, void 0, function () {
3119
+ return __generator(this, function (_a) {
3120
+ switch (_a.label) {
3121
+ case 0: return [4 /*yield*/, this.connector.getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key)];
3122
+ case 1: return [2 /*return*/, _a.sent()];
3123
+ }
3124
+ });
3125
+ });
3126
+ };
3127
+ SharedService.prototype.getWorkflowProcessInfoPerStatus = function (workflowCategory) {
3128
+ return __awaiter(this, void 0, void 0, function () {
3129
+ return __generator(this, function (_a) {
3130
+ switch (_a.label) {
3131
+ case 0: return [4 /*yield*/, this.connector.getWorkflowProcessInfoPerStatus(workflowCategory)];
3132
+ case 1: return [2 /*return*/, _a.sent()];
3133
+ }
3134
+ });
3135
+ });
3136
+ };
3137
+ SharedService.prototype.getActivities = function (table, key) {
3138
+ return __awaiter(this, void 0, void 0, function () {
3139
+ var activities, histActivities, activeActivities, historicActivities;
3140
+ return __generator(this, function (_a) {
3141
+ switch (_a.label) {
3142
+ case 0: return [4 /*yield*/, this.connector.getComponentActivities(table, key)];
3143
+ case 1:
3144
+ activities = _a.sent();
3145
+ return [4 /*yield*/, this.connector.getHistoricActivities(table, key)];
3146
+ case 2:
3147
+ histActivities = _a.sent();
3148
+ activeActivities = [];
3149
+ historicActivities = [];
3150
+ if (activities && activities.length > 0) {
3151
+ activities.forEach(function (activity) {
3152
+ activeActivities.push(activity);
3153
+ });
3154
+ }
3155
+ if (histActivities && histActivities.length > 0) {
3156
+ histActivities.forEach(function (activity) {
3157
+ historicActivities.push(activity);
3158
+ });
3159
+ }
3160
+ return [2 /*return*/, activeActivities.concat(historicActivities)];
3161
+ }
3162
+ });
3163
+ });
3164
+ };
2651
3165
  return SharedService;
2652
3166
  }());
2653
3167
  SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
@@ -3504,6 +4018,9 @@
3504
4018
  },
3505
4019
  ];
3506
4020
  };
4021
+ StockTabsComponent.prototype.onShowStockTransferChange = function (show) {
4022
+ this.showStockTransfer = show;
4023
+ };
3507
4024
  StockTabsComponent.prototype.handleLocationClicked = function (data) {
3508
4025
  this.tabs[0].active = false;
3509
4026
  this.tabs[2].active = true;
@@ -3623,7 +4140,7 @@
3623
4140
  StockTabsComponent.decorators = [
3624
4141
  { type: i0.Component, args: [{
3625
4142
  selector: "co-stock-tabs",
3626
- template: "\n <co-tab-bar [wareHouseLabel]=\"'CHOICES' | localize\"\n [wareHouseSearchLabel]=\"'SEARCH' | localize\"\n [tabs]=\"tabs\"\n [dataWareHouseCode]=\"warehouses\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [secondaryTabs]=\"historyTabs\"\n [ActivateSecondaryTabs]=\"tabs[5].active\"\n [showWarehouseSelection]=\"tabs[1].active || tabs[2].active\"\n (warehouseSelected)=\"handleWarehouseSelected($event)\"\n ></co-tab-bar>\n\n <co-stock-tab *ngIf=\"tabs[0].active\"\n [articleStockInformation]=\"stockInformation\"\n (locationClicked)=\"handleLocationClicked($event)\"\n ></co-stock-tab>\n\n <co-stock-prognose *ngIf=\"tabs[1].active\"\n [stockPrognose]=\"stockPrognose\"\n ></co-stock-prognose>\n\n <co-stock-location *ngIf=\"tabs[2].active\"\n [articleStockInfo]=\"articleDetails\"\n [articleStockInformation]=\"stockInformation\"\n [article]=\"article\"\n [articleFlat]=\"articleFlat\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [dataWareHouseCode]=\"warehouses\"\n [stockLocations]=\"stockLocations\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n\n ></co-stock-location>\n\n <co-order-tab *ngIf=\"tabs[3].active\"\n [articleStockInformation]=\"stockInformation\"\n [inOrderInformation]=\"inOrderInformation\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-order-tab>\n\n <co-order-stock-tab *ngIf=\"tabs[4].active\"\n [orderInformation]=\"orderInformation\"\n ></co-order-stock-tab>\n\n <co-stock-history *ngIf=\"historyTabs[0].active && tabs[5].active\"\n [stockHistory]=\"stockHistory\"\n ></co-stock-history>\n\n <co-order-supply-stock-history *ngIf=\"historyTabs[1].active && tabs[5].active\"\n [orderSupplyStockHistory]=\"orderSupplyStockHistory\"\n ></co-order-supply-stock-history>\n\n <co-order-stock-commission-history *ngIf=\"historyTabs[2].active && tabs[5].active\"\n [orderStockCommissionHistory]=\"orderCommissionStockHistory\"\n ></co-order-stock-commission-history>\n\n <co-order-stock-history *ngIf=\"historyTabs[3].active && tabs[5].active\"\n [orderStockHistory]=\"orderStockHistory\"\n ></co-order-stock-history>\n\n <co-allocation-stock-history *ngIf=\"historyTabs[4].active && tabs[5].active\"\n [allocationStockHistory]=\"orderAllocationStockHistory\"\n ></co-allocation-stock-history>\n\n ",
4143
+ template: "\n <co-tab-bar [wareHouseLabel]=\"'CHOICES' | localize\"\n [wareHouseSearchLabel]=\"'SEARCH' | localize\"\n [tabs]=\"tabs\"\n [dataWareHouseCode]=\"warehouses\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [secondaryTabs]=\"historyTabs\"\n [ActivateSecondaryTabs]=\"tabs[5].active\"\n [showWarehouseSelection]=\"tabs[1].active || tabs[2].active\"\n (warehouseSelected)=\"handleWarehouseSelected($event)\"\n ></co-tab-bar>\n\n <co-stock-tab *ngIf=\"tabs[0].active\"\n [articleStockInformation]=\"stockInformation\"\n (locationClicked)=\"handleLocationClicked($event)\"\n ></co-stock-tab>\n\n <co-stock-prognose *ngIf=\"tabs[1].active\"\n [stockPrognose]=\"stockPrognose\"\n ></co-stock-prognose>\n\n <co-stock-location *ngIf=\"tabs[2].active\"\n [articleStockInfo]=\"articleDetails\"\n [articleStockInformation]=\"stockInformation\"\n [article]=\"article\"\n [articleFlat]=\"articleFlat\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [dataWareHouseCode]=\"warehouses\"\n [stockLocations]=\"stockLocations\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n [showStockTransfer]=\"showStockTransfer\"\n (showStockTransferChange)=\"onShowStockTransferChange($event)\"\n ></co-stock-location>\n\n <co-order-tab *ngIf=\"tabs[3].active\"\n [articleStockInformation]=\"stockInformation\"\n [inOrderInformation]=\"inOrderInformation\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-order-tab>\n\n <co-order-stock-tab *ngIf=\"tabs[4].active\"\n [orderInformation]=\"orderInformation\"\n ></co-order-stock-tab>\n\n <co-stock-history *ngIf=\"historyTabs[0].active && tabs[5].active\"\n [stockHistory]=\"stockHistory\"\n ></co-stock-history>\n\n <co-order-supply-stock-history *ngIf=\"historyTabs[1].active && tabs[5].active\"\n [orderSupplyStockHistory]=\"orderSupplyStockHistory\"\n ></co-order-supply-stock-history>\n\n <co-order-stock-commission-history *ngIf=\"historyTabs[2].active && tabs[5].active\"\n [orderStockCommissionHistory]=\"orderCommissionStockHistory\"\n ></co-order-stock-commission-history>\n\n <co-order-stock-history *ngIf=\"historyTabs[3].active && tabs[5].active\"\n [orderStockHistory]=\"orderStockHistory\"\n ></co-order-stock-history>\n\n <co-allocation-stock-history *ngIf=\"historyTabs[4].active && tabs[5].active\"\n [allocationStockHistory]=\"orderAllocationStockHistory\"\n ></co-allocation-stock-history>\n\n ",
3627
4144
  encapsulation: i0.ViewEncapsulation.None
3628
4145
  },] }
3629
4146
  ];
@@ -3636,6 +4153,7 @@
3636
4153
  stockInformation: [{ type: i0.Input }],
3637
4154
  article: [{ type: i0.Input }],
3638
4155
  articleFlat: [{ type: i0.Input }],
4156
+ showStockTransfer: [{ type: i0.Input }],
3639
4157
  warehouses: [{ type: i0.Input }],
3640
4158
  transferIconClicked: [{ type: i0.Output }],
3641
4159
  sendMethodDialogClicked: [{ type: i0.Output }]
@@ -3691,9 +4209,13 @@
3691
4209
  this.icons = exports["ɵbu"];
3692
4210
  this.articleStockInfo = [];
3693
4211
  this.articleStockInformation = [];
4212
+ this.articleWarehouse = [];
4213
+ this.allWarehouses = [];
3694
4214
  this.dataWareHouseCode = [];
3695
4215
  this.transferIconClicked = new i0.EventEmitter();
3696
4216
  this.sendMethodDialogClicked = new i0.EventEmitter();
4217
+ this.showStockTransferChange = new i0.EventEmitter();
4218
+ this.handleStickerClicked = new i0.EventEmitter();
3697
4219
  this.showConfirmationDialog = false;
3698
4220
  this.newStockLine = false;
3699
4221
  this.showConfirmStockRow = false;
@@ -3723,6 +4245,10 @@
3723
4245
  };
3724
4246
  StockLocationComponent.prototype.ngOnDestroy = function () {
3725
4247
  };
4248
+ StockLocationComponent.prototype.onShowStockTransferChange = function (show) {
4249
+ this.showStockTransfer = show;
4250
+ this.showStockTransferChange.emit(this.showStockTransfer);
4251
+ };
3726
4252
  StockLocationComponent.prototype.onLocationDropdownClick = function () {
3727
4253
  var _this = this;
3728
4254
  this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(function (locations) {
@@ -3741,7 +4267,8 @@
3741
4267
  this.sendMethodDialogClicked.emit(data);
3742
4268
  };
3743
4269
  StockLocationComponent.prototype.handleStockTransferClick = function (event) {
3744
- this.transferIconClicked.emit(event);
4270
+ this.articleDetails = event;
4271
+ this.showStockTransfer = true;
3745
4272
  };
3746
4273
  StockLocationComponent.prototype.onOkClickSendLocations = function (row) {
3747
4274
  this.selectedArticleDetailsData = row;
@@ -3813,7 +4340,7 @@
3813
4340
  StockLocationComponent.decorators = [
3814
4341
  { type: i0.Component, args: [{
3815
4342
  selector: "co-stock-location",
3816
- template: "\n <div class=\"stock-grid\">\n <co-stock-location-popup\n [selectedWarehouse]=\"selectedWarehouse\"\n [articleFlat]=\"articleFlat\"\n [selectedLocationNo]=\"selectedLocationNo\"\n [stockLocations]=\"stockLocations\"\n [articleDetailsInformation]=\"articleDetailsInformation\"\n [articleStockInfo]=\"articleStockInfo\"\n [selectedArticleDetailsData]=\"selectedArticleDetailsData\"\n [showConfirmationDialog]=\"showConfirmationDialog\"\n [newStockLine]=\"newStockLine\"\n (togglePopupEvent)=\"showConfirmationDialog = $event\"\n (updateGridData)=\"articleStockInfo = $event\"\n\n ></co-stock-location-popup>\n <co-simple-grid [data]=\"articleStockInfo\"\n class=\"simple-grid\"\n [showAdd]=\"true\"\n [inlineEdit]=\"false\"\n [showToolbar]=\"true\"\n (addRow)=\"handleAddRow()\"\n >\n <co-simple-grid-column [headerText]=\"'STOCK' | localize\" [field]=\"'amountInStock'\">\n <ng-template #template let-row=\"row\">\n <div class=\"stock-amount\" (click)=\"onOkClickSendLocations(row)\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.EditPenRegular)\"></co-icon>\n <span [textContent]=\"row['amountInStock']\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [width]=\"150\" [headerText]=\"'LOCATION' | localize\" [field]=\"'locationNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-list-of-values\n [model]=\"locationForNumber(row['locationNo'])\"\n [collection]=\"stockLocations\"\n [displayField]=\"'description'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged(row, $event)\"\n ></co-list-of-values>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.batch\" [headerText]=\"'BATCH' | localize\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n (modelChange)=\"row['batchNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.serial\" [headerText]=\"'SERIAL_NO' | localize\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n (modelChange)=\"row['serialNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED' | localize\" [field]=\"'stockAssigned'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['stockAssigned']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | localize\" [field]=\"'amountInStockFree'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['amountInStockFree']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA' | localize\" [field]=\"'currency'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['currency']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE' | localize\" [field]=\"'purchasePrice'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['purchasePrice']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIERNR' | localize\" [field]=\"'supplierNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['supplierNo']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'TRANSFER' | localize\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"\n (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'STICKER' | localize\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"\n (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
4343
+ template: "\n <div class=\"stock-grid\">\n <div class=\"stock-transfer-wrapper\">\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n class=\"stock-transfer-dialog\"\n [articleToTransfer]=\"articleDetails\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [allWarehouses]=\"allWarehouses\"\n [stockLocations]=\"stockLocations\"\n [articleFlat]=\"articleFlat\"\n [showStockTransfer]=\"showStockTransfer\"\n (showStockTransferChange)=\"onShowStockTransferChange($event)\">\n </co-stock-transfer>\n </div>\n <co-stock-location-popup\n [selectedWarehouse]=\"selectedWarehouse\"\n [articleFlat]=\"articleFlat\"\n [selectedLocationNo]=\"selectedLocationNo\"\n [stockLocations]=\"stockLocations\"\n [articleDetailsInformation]=\"articleDetailsInformation\"\n [articleStockInfo]=\"articleStockInfo\"\n [selectedArticleDetailsData]=\"selectedArticleDetailsData\"\n [showConfirmationDialog]=\"showConfirmationDialog\"\n [newStockLine]=\"newStockLine\"\n (togglePopupEvent)=\"showConfirmationDialog = $event\"\n (updateGridData)=\"articleStockInfo = $event\"\n\n ></co-stock-location-popup>\n <co-simple-grid [data]=\"articleStockInfo\"\n class=\"simple-grid\"\n [showAdd]=\"true\"\n [inlineEdit]=\"false\"\n [showToolbar]=\"true\"\n (addRow)=\"handleAddRow()\"\n >\n <co-simple-grid-column [headerText]=\"'STOCK' | localize\" [field]=\"'amountInStock'\">\n <ng-template #template let-row=\"row\">\n <div class=\"stock-amount\" (click)=\"onOkClickSendLocations(row)\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.EditPenRegular)\"></co-icon>\n <span [textContent]=\"row['amountInStock']\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [width]=\"150\" [headerText]=\"'LOCATION' | localize\" [field]=\"'locationNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-list-of-values\n [model]=\"locationForNumber(row['locationNo'])\"\n [collection]=\"stockLocations\"\n [displayField]=\"'description'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged(row, $event)\"\n ></co-list-of-values>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.batch\" [headerText]=\"'BATCH' | localize\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n (modelChange)=\"row['batchNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.serial\" [headerText]=\"'SERIAL_NO' | localize\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n (modelChange)=\"row['serialNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED' | localize\" [field]=\"'stockAssigned'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['stockAssigned']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | localize\" [field]=\"'amountInStockFree'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['amountInStockFree']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA' | localize\" [field]=\"'currency'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['currency']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE' | localize\" [field]=\"'purchasePrice'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['purchasePrice']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIERNR' | localize\" [field]=\"'supplierNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['supplierNo']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'TRANSFER' | localize\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"\n (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'STICKER' | localize\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"\n (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
3817
4344
  encapsulation: i0.ViewEncapsulation.None
3818
4345
  },] }
3819
4346
  ];
@@ -3825,11 +4352,16 @@
3825
4352
  StockLocationComponent.propDecorators = {
3826
4353
  articleStockInfo: [{ type: i0.Input }],
3827
4354
  articleStockInformation: [{ type: i0.Input }],
4355
+ articleWarehouse: [{ type: i0.Input }],
4356
+ allWarehouses: [{ type: i0.Input }],
3828
4357
  article: [{ type: i0.Input }],
4358
+ showStockTransfer: [{ type: i0.Input }],
3829
4359
  articleFlat: [{ type: i0.Input }],
3830
4360
  dataWareHouseCode: [{ type: i0.Input }],
3831
4361
  transferIconClicked: [{ type: i0.Output }],
3832
4362
  sendMethodDialogClicked: [{ type: i0.Output }],
4363
+ showStockTransferChange: [{ type: i0.Output }],
4364
+ handleStickerClicked: [{ type: i0.Output }],
3833
4365
  selectedWarehouse: [{ type: i0.Input }],
3834
4366
  stockLocations: [{ type: i0.Input }]
3835
4367
  };
@@ -4499,7 +5031,7 @@
4499
5031
  StockLocationPopupComponent.decorators = [
4500
5032
  { type: i0.Component, args: [{
4501
5033
  selector: "co-stock-location-popup",
4502
- template: "\n <div class=\"stock-grid\">\n <co-dialog *ngIf=\"showConfirmationDialog\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n (closeClick)=\"togglePopup()\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'CONFIRM_STOCK_CHANGE' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <div class=\"stock-dialog-header\">\n <span class=\"stock-header\" *ngIf=\"newStockLine\" [textContent]=\"'NEW_STOCK_LINE' | localize\"></span>\n <span class=\"stock-header\" *ngIf=\"!newStockLine\" [textContent]=\"'CHANGE_STOCK_LINE' | localize\"></span>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [model]=\"selectedWarehouse.warehouseDescription\"\n [placeholder]=\"'WAREHOUSE' | localize\"\n [readonly]=\"true\"\n ></co-input-text>\n\n <co-list-of-values\n [model]=\"locationForNumber(selectedLocationNo)\"\n [collection]=\"stockLocations\"\n [displayField]=\"'locationNo'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged($event)\"\n ></co-list-of-values>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [(model)]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <div class=\"stock-dialog-row\">\n <div class=\"stock-dialog-row-row\">\n <co-input-text [model]=\"articleStockInfo[0]?.purchasePrice | currency:'EUR'\"\n [placeholder]=\"'PURCHASE_PRICE' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"articleStockInfo[0].currency\"\n [placeholder]=\"'VALUTA' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <co-input-text [model]=\"selectedArticleDetailsData?.entryDate | date\"\n [placeholder]=\"'DATE' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <div class=\"stock-dialog-row\">\n <co-list-of-values [label]=\"'STATUS' | localize\"\n [model]=\"statusForId(selectedArticleDetailsData?.stockStateId)\"\n [collection]=\"stockStatus\"\n [displayField]=\"'stateDescription'\"\n (modelChange)=\"handleStockStatusChange($event)\"\n ></co-list-of-values>\n <co-input-text [placeholder]=\"'REMARK' | localize\"\n (modelChange)=\"handleStockStatusRemarkChange($event)\"></co-input-text>\n </div>\n <co-input-number-picker\n [(model)]=\"selectedArticleDetailsData.amountInStock\"\n [label]=\"'STOCK' | localize\"\n (modelChange)=\"amountInStockChanged($event)\"\n [min]=\"1\"\n ></co-input-number-picker>\n </div>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper ok-cancel-buttons\">\n <co-button class=\"save-button\"\n (click)=\"handleOkClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"disabled()\">\n </co-button>\n <co-button class=\"cancel-button\"\n (click)=\"togglePopup()\"\n [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n </div>\n ",
5034
+ template: "\n <div class=\"stock-grid\">\n <co-dialog *ngIf=\"showConfirmationDialog\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n (closeClick)=\"togglePopup()\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'CONFIRM_STOCK_CHANGE' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <div class=\"stock-dialog-header\">\n <span class=\"stock-header\" *ngIf=\"newStockLine\" [textContent]=\"'NEW_STOCK_LINE' | localize\"></span>\n <span class=\"stock-header\" *ngIf=\"!newStockLine\" [textContent]=\"'CHANGE_STOCK_LINE' | localize\"></span>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [model]=\"selectedWarehouse.warehouseDescription\"\n [placeholder]=\"'WAREHOUSE' | localize\"\n [readonly]=\"true\"\n ></co-input-text>\n\n <co-list-of-values\n [model]=\"locationForNumber(selectedLocationNo)\"\n [collection]=\"stockLocations\"\n [displayField]=\"'locationNo'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged($event)\"\n ></co-list-of-values>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [(model)]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <div class=\"stock-dialog-row\">\n <div class=\"stock-dialog-row-row\">\n <co-input-text [model]=\"articleStockInfo[0]?.purchasePrice | currency:'EUR'\"\n [placeholder]=\"'PURCHASE_PRICE' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"articleStockInfo[0].currency\"\n [placeholder]=\"'VALUTA' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <co-input-date [model]=\"selectedArticleDetailsData?.entryDate | date\"\n [placeholder]=\"'DATE' | localize\"\n [readonly]=\"false\"\n ></co-input-date>\n </div>\n <div class=\"stock-dialog-row\">\n <co-list-of-values [label]=\"'STATUS' | localize\"\n [model]=\"statusForId(selectedArticleDetailsData?.stockStateId)\"\n [collection]=\"stockStatus\"\n [displayField]=\"'stateDescription'\"\n (modelChange)=\"handleStockStatusChange($event)\"\n ></co-list-of-values>\n <co-input-text [placeholder]=\"'REMARK' | localize\"\n (modelChange)=\"handleStockStatusRemarkChange($event)\"></co-input-text>\n </div>\n <co-input-number-picker\n [(model)]=\"selectedArticleDetailsData.amountInStock\"\n [label]=\"'STOCK' | localize\"\n (modelChange)=\"amountInStockChanged($event)\"\n [min]=\"1\"\n ></co-input-number-picker>\n </div>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper ok-cancel-buttons\">\n <co-button class=\"save-button\"\n (click)=\"handleOkClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"disabled()\">\n </co-button>\n <co-button class=\"cancel-button\"\n (click)=\"togglePopup()\"\n [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n </div>\n ",
4503
5035
  encapsulation: i0.ViewEncapsulation.None
4504
5036
  },] }
4505
5037
  ];
@@ -4547,7 +5079,8 @@
4547
5079
  StockStatusbarModule,
4548
5080
  corecomponents_v12.ListOfValuesModule,
4549
5081
  LocalizationModule,
4550
- corecomponents_v12.PopupModule
5082
+ corecomponents_v12.PopupModule,
5083
+ corecomponents_v12.InputDatePickerModule
4551
5084
  ],
4552
5085
  declarations: [
4553
5086
  StockComponent,
@@ -4630,6 +5163,7 @@
4630
5163
  this.REFERENCE = 'REFERENCE';
4631
5164
  this.RELATION_ID = 'RELATION_ID';
4632
5165
  this.RELATION_NR = 'RELATION_NR';
5166
+ this.REMARK = 'REMARK';
4633
5167
  this.RESERVED = 'RESERVED';
4634
5168
  this.QUANTITY = 'QUANTITY';
4635
5169
  this.SEARCH = 'SEARCH';
@@ -4637,6 +5171,7 @@
4637
5171
  this.SERIE_NO = 'SERIE_NO';
4638
5172
  this.STANDARD_WAREHOUSE = 'STANDARD_WAREHOUSE';
4639
5173
  this.STANDARD_LOCATION = 'STANDARD_LOCATION';
5174
+ this.STATUS = 'STATUS';
4640
5175
  this.STICKER = 'STICKER';
4641
5176
  this.STOCK = 'STOCK';
4642
5177
  this.STOCK_DETAILS = 'STOCK_DETAILS';
@@ -6867,14 +7402,74 @@
6867
7402
  this._linkedTags = [];
6868
7403
  }
6869
7404
  Object.defineProperty(SimpleTagsComponent.prototype, "tags", {
7405
+ get: function () {
7406
+ return this._tags;
7407
+ },
6870
7408
  set: function (tags) {
6871
7409
  this._tags = tags;
6872
- this.setRootDisplayTags();
6873
7410
  },
6874
7411
  enumerable: false,
6875
7412
  configurable: true
6876
7413
  });
6877
7414
  Object.defineProperty(SimpleTagsComponent.prototype, "linkedTags", {
7415
+ get: function () {
7416
+ return this._linkedTags;
7417
+ },
7418
+ set: function (tags) {
7419
+ this._linkedTags = tags;
7420
+ },
7421
+ enumerable: false,
7422
+ configurable: true
7423
+ });
7424
+ SimpleTagsComponent.prototype.showClass = function () {
7425
+ return true;
7426
+ };
7427
+ SimpleTagsComponent.prototype.handleSaveTags = function () {
7428
+ this.saveClick.next(this._linkedTags);
7429
+ this.closeClick.next();
7430
+ };
7431
+ return SimpleTagsComponent;
7432
+ }());
7433
+ SimpleTagsComponent.decorators = [
7434
+ { type: i0.Component, args: [{
7435
+ selector: "co-simple-tags",
7436
+ template: "\n <co-dialog\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit()\"\n >\n <ng-template #headerTemplate>\n <div class=\"header-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span class=\"co-dialog-header-title\" [textContent]=\"'Tags'\"></span>\n </div>\n </ng-template>\n\n <div class=\"dialog-content-wrapper\">\n <co-simple-tags-form [tags]=\"tags\" [(linkedTags)]=\"linkedTags\"></co-simple-tags-form>\n </div>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icon.CheckDuotone)\"\n (click)=\"handleSaveTags()\"\n ></co-button>\n <co-button\n class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icon.CrossSkinny)\"\n (click)=\"closeClick.next()\"\n ></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
7437
+ encapsulation: i0.ViewEncapsulation.None
7438
+ },] }
7439
+ ];
7440
+ SimpleTagsComponent.ctorParameters = function () { return [
7441
+ { type: IconCacheService },
7442
+ { type: SharedService }
7443
+ ]; };
7444
+ SimpleTagsComponent.propDecorators = {
7445
+ tags: [{ type: i0.Input }],
7446
+ linkedTags: [{ type: i0.Input }],
7447
+ closeClick: [{ type: i0.Output }],
7448
+ saveClick: [{ type: i0.Output }],
7449
+ showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
7450
+ };
7451
+
7452
+ var SimpleTagsFormComponent = /** @class */ (function () {
7453
+ function SimpleTagsFormComponent(iconCacheService, sharedService) {
7454
+ this.iconCacheService = iconCacheService;
7455
+ this.sharedService = sharedService;
7456
+ this.icon = exports["ɵbu"];
7457
+ this.linkedTagsChange = new i0.EventEmitter();
7458
+ this.breadCrumbs = [];
7459
+ this.displayTags = [];
7460
+ this.searchString = '';
7461
+ this._tags = [];
7462
+ this._linkedTags = [];
7463
+ }
7464
+ Object.defineProperty(SimpleTagsFormComponent.prototype, "tags", {
7465
+ set: function (tags) {
7466
+ this._tags = tags;
7467
+ this.setRootDisplayTags();
7468
+ },
7469
+ enumerable: false,
7470
+ configurable: true
7471
+ });
7472
+ Object.defineProperty(SimpleTagsFormComponent.prototype, "linkedTags", {
6878
7473
  get: function () {
6879
7474
  return this._linkedTags;
6880
7475
  },
@@ -6886,15 +7481,15 @@
6886
7481
  enumerable: false,
6887
7482
  configurable: true
6888
7483
  });
6889
- SimpleTagsComponent.prototype.showClass = function () {
7484
+ SimpleTagsFormComponent.prototype.showClass = function () {
6890
7485
  return true;
6891
7486
  };
6892
- SimpleTagsComponent.prototype.setRootDisplayTags = function () {
7487
+ SimpleTagsFormComponent.prototype.setRootDisplayTags = function () {
6893
7488
  this.displayTags = this._tags.filter(function (tag) { return tag.treeLevel === 0; });
6894
7489
  this.breadCrumbs = [];
6895
7490
  this.searchString = '';
6896
7491
  };
6897
- SimpleTagsComponent.prototype.handleTagSelected = function (selectedTag) {
7492
+ SimpleTagsFormComponent.prototype.handleTagSelected = function (selectedTag) {
6898
7493
  if (selectedTag.tagType === 'TR' || selectedTag.tagType === 'TG') {
6899
7494
  if (selectedTag !== this.breadCrumbs[0]) {
6900
7495
  this.breadCrumbs.push(selectedTag);
@@ -6904,23 +7499,23 @@
6904
7499
  });
6905
7500
  }
6906
7501
  };
6907
- SimpleTagsComponent.prototype.handleCrumbClicked = function (tag, index) {
7502
+ SimpleTagsFormComponent.prototype.handleCrumbClicked = function (tag, index) {
6908
7503
  if (tag !== this.breadCrumbs[this.breadCrumbs.length - 1]) {
6909
7504
  this.breadCrumbs.splice(index + 1);
6910
7505
  this.handleTagSelected(tag);
6911
7506
  }
6912
7507
  };
6913
- SimpleTagsComponent.prototype.handleAddTag = function (event) {
7508
+ SimpleTagsFormComponent.prototype.handleAddTag = function (event) {
6914
7509
  var draggedTag = this.displayTags[event.previousIndex];
6915
7510
  if (!this._linkedTags.includes(draggedTag)) {
6916
7511
  this._linkedTags.push(this.displayTags[event.previousIndex]);
6917
7512
  this._loadThumbnail(draggedTag);
6918
7513
  }
6919
7514
  };
6920
- SimpleTagsComponent.prototype.deleteLinkedTag = function (tag) {
7515
+ SimpleTagsFormComponent.prototype.deleteLinkedTag = function (tag) {
6921
7516
  this._linkedTags.splice(this._linkedTags.indexOf(tag), 1);
6922
7517
  };
6923
- SimpleTagsComponent.prototype.searchCollection = function () {
7518
+ SimpleTagsFormComponent.prototype.searchCollection = function () {
6924
7519
  var _this = this;
6925
7520
  if (!this.searchString) {
6926
7521
  this.searchString = '';
@@ -6948,11 +7543,7 @@
6948
7543
  this.displayTags = matchingObjects;
6949
7544
  this.breadCrumbs = [];
6950
7545
  };
6951
- SimpleTagsComponent.prototype.handleSaveTags = function () {
6952
- this.saveClick.next(this._linkedTags);
6953
- this.closeClick.next();
6954
- };
6955
- SimpleTagsComponent.prototype._loadThumbnail = function (tagTreeItem) {
7546
+ SimpleTagsFormComponent.prototype._loadThumbnail = function (tagTreeItem) {
6956
7547
  if (tagTreeItem.image && tagTreeItem.image.documentId && !tagTreeItem.image.thumbnailBody) {
6957
7548
  this.sharedService.getDocumentContent(tagTreeItem.image.documentId, true)
6958
7549
  .then(function (result) {
@@ -6962,27 +7553,50 @@
6962
7553
  });
6963
7554
  }
6964
7555
  };
6965
- return SimpleTagsComponent;
7556
+ return SimpleTagsFormComponent;
6966
7557
  }());
6967
- SimpleTagsComponent.decorators = [
7558
+ SimpleTagsFormComponent.decorators = [
6968
7559
  { type: i0.Component, args: [{
6969
- selector: "co-simple-tags",
6970
- template: "\n <co-dialog\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit()\"\n >\n <ng-template #headerTemplate>\n <div class=\"header-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span class=\"co-dialog-header-title\" [textContent]=\"'Tags'\"></span>\n </div>\n </ng-template>\n\n <div class=\"dialog-content-wrapper\">\n <div class=\"collection-navigation co-small-scrollbar\">\n <span class=\"title\" [textContent]=\"'Beschikbare tags'\"></span>\n <co-input-search\n [(model)]=\"searchString\"\n [placeholder]=\"'Search for tag name'\"\n (search)=\"searchCollection()\"\n (modelChange)=\"searchCollection()\"\n (rightIconClick)=\"searchCollection()\"\n ></co-input-search>\n <div class=\"breadcrumbs\">\n <co-icon\n [iconData]=\"iconCacheService.getIcon(icon.HouseBlankRegular)\"\n (click)=\"setRootDisplayTags()\"\n ></co-icon>\n <div class=\"crumbs\">\n <span class=\"spacer\" [textContent]=\"'|'\"></span>\n <div class=\"crumb\" *ngFor=\"let crumb of breadCrumbs; let index = index\" (click)=\"handleCrumbClicked(crumb, index)\">\n <span class=\"spacer\" *ngIf=\"index !== 0\" [textContent]=\"'/'\"></span>\n <span [textContent]=\"crumb.description\"></span>\n </div>\n </div>\n </div>\n <div class=\"collection-view\"\n cdkDropList\n cdkDropListSortingDisabled\n #collectionList=\"cdkDropList\"\n [cdkDropListData]=\"displayTags\"\n [cdkDropListConnectedTo]=\"[linkedList]\"\n ><div class=\"collection-item\"\n *ngFor=\"let tag of displayTags\"\n cdkDrag\n [cdkDragDisabled]=\"tag.tagType !== 'T' || linkedTags.includes(tag)\"\n [class.draggable]=\"tag.tagType === 'T' && !linkedTags.includes(tag)\"\n [class.disabled]=\"linkedTags.includes(tag)\"\n (click)=\"handleTagSelected(tag)\">\n\n <div class=\"collection-item\" *cdkDragPlaceholder>\n <co-icon *ngIf=\"tag.tagType === 'T'\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span [textContent]=\"tag.description\"></span>\n </div>\n\n <div *cdkDragPreview><co-icon [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon></div>\n\n <co-icon *ngIf=\"tag.tagType === 'T'\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span [textContent]=\"tag.description\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"linked-tags-view\">\n <span class=\"title\" [textContent]=\"'Gekoppelde tags'\"></span>\n <div class=\"view-wrapper\"\n cdkDropList\n #linkedList=\"cdkDropList\"\n [cdkDropListData]=\"linkedTags\"\n (cdkDropListDropped)=\"handleAddTag($event)\">\n <div class=\"tag-item\" *ngFor=\"let tag of linkedTags\" [cdkDragDisabled]=\"true\" cdkDrag [style.background-color]=\"tag.color?.replace('0x', '#')\">\n <div class=\"placeholderLinked\" *cdkDragPlaceholder></div>\n\n <div class=\"thumbnail-description\">\n <co-icon *ngIf=\"!tag.image?.thumbnailBody\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <div *ngIf=\"tag.image\" class=\"thumbnail-wrapper\">\n <img [src]=\"tag.image.thumbnailBodyAsDataUri\">\n </div>\n\n <div class=\"description-wrapper\">\n <span [textContent]=\"tag.parentDescription\"></span>\n <span class=\"description\" [textContent]=\"tag.description\"></span>\n </div>\n </div>\n <co-icon class=\"delete-tag\" (click)=\"deleteLinkedTag(tag)\"\n [iconData]=\"iconCacheService.getIcon(icon.XSolid)\"\n ></co-icon>\n </div>\n </div>\n </div>\n </div>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icon.CheckDuotone)\"\n (click)=\"handleSaveTags()\"\n ></co-button>\n <co-button\n class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icon.CrossSkinny)\"\n (click)=\"closeClick.next()\"\n ></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
7560
+ selector: "co-simple-tags-form",
7561
+ template: "\n <div class=\"form-content-wrapper\">\n <div class=\"collection-navigation co-small-scrollbar\">\n <span class=\"title\" [textContent]=\"'Beschikbare tags'\"></span>\n <co-input-search\n [(model)]=\"searchString\"\n [placeholder]=\"'Search for tag name'\"\n (search)=\"searchCollection()\"\n (modelChange)=\"searchCollection()\"\n (rightIconClick)=\"searchCollection()\"\n ></co-input-search>\n <div class=\"breadcrumbs\">\n <co-icon\n [iconData]=\"iconCacheService.getIcon(icon.HouseBlankRegular)\"\n (click)=\"setRootDisplayTags()\"\n ></co-icon>\n <div class=\"crumbs\">\n <span class=\"spacer\" [textContent]=\"'|'\"></span>\n <div class=\"crumb\" *ngFor=\"let crumb of breadCrumbs; let index = index\" (click)=\"handleCrumbClicked(crumb, index)\">\n <span class=\"spacer\" *ngIf=\"index !== 0\" [textContent]=\"'/'\"></span>\n <span [textContent]=\"crumb.description\"></span>\n </div>\n </div>\n </div>\n <div class=\"collection-view\"\n cdkDropList\n cdkDropListSortingDisabled\n #collectionList=\"cdkDropList\"\n [cdkDropListData]=\"displayTags\"\n [cdkDropListConnectedTo]=\"[linkedList]\">\n <div class=\"collection-item\"\n *ngFor=\"let tag of displayTags\"\n cdkDrag\n [cdkDragDisabled]=\"tag.tagType !== 'T' || linkedTags.includes(tag)\"\n [class.draggable]=\"tag.tagType === 'T' && !linkedTags.includes(tag)\"\n [class.disabled]=\"linkedTags.includes(tag)\"\n (click)=\"handleTagSelected(tag)\">\n\n <div class=\"collection-item\" *cdkDragPlaceholder>\n <co-icon *ngIf=\"tag.tagType === 'T'\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span [textContent]=\"tag.description\"></span>\n </div>\n\n <div *cdkDragPreview><co-icon [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon></div>\n\n <co-icon *ngIf=\"tag.tagType === 'T'\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span [textContent]=\"tag.description\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"linked-tags-view\">\n <span class=\"title\" [textContent]=\"'Gekoppelde tags'\"></span>\n <div class=\"view-wrapper\"\n cdkDropList\n #linkedList=\"cdkDropList\"\n [cdkDropListData]=\"linkedTags\"\n (cdkDropListDropped)=\"handleAddTag($event)\">\n <div class=\"tag-item\" *ngFor=\"let tag of linkedTags\" [cdkDragDisabled]=\"true\" cdkDrag [style.background-color]=\"tag.color?.replace('0x', '#')\">\n <div class=\"placeholderLinked\" *cdkDragPlaceholder></div>\n\n <div class=\"thumbnail-description\">\n <co-icon *ngIf=\"!tag.image?.thumbnailBody\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <div *ngIf=\"tag.image\" class=\"thumbnail-wrapper\">\n <img [src]=\"tag.image.thumbnailBodyAsDataUri\">\n </div>\n\n <div class=\"description-wrapper\">\n <span [textContent]=\"tag.parentDescription\"></span>\n <span class=\"description\" [textContent]=\"tag.description\"></span>\n </div>\n </div>\n <co-icon class=\"delete-tag\" (click)=\"deleteLinkedTag(tag)\"\n [iconData]=\"iconCacheService.getIcon(icon.XSolid)\"\n ></co-icon>\n </div>\n </div>\n </div>\n </div>\n ",
6971
7562
  encapsulation: i0.ViewEncapsulation.None
6972
7563
  },] }
6973
7564
  ];
6974
- SimpleTagsComponent.ctorParameters = function () { return [
7565
+ SimpleTagsFormComponent.ctorParameters = function () { return [
6975
7566
  { type: IconCacheService },
6976
7567
  { type: SharedService }
6977
7568
  ]; };
6978
- SimpleTagsComponent.propDecorators = {
7569
+ SimpleTagsFormComponent.propDecorators = {
6979
7570
  tags: [{ type: i0.Input }],
6980
7571
  linkedTags: [{ type: i0.Input }],
6981
- closeClick: [{ type: i0.Output }],
6982
- saveClick: [{ type: i0.Output }],
6983
- showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
7572
+ linkedTagsChange: [{ type: i0.Output }],
7573
+ showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags-form",] }]
6984
7574
  };
6985
7575
 
7576
+ var SimpleTagsFormModule = /** @class */ (function () {
7577
+ function SimpleTagsFormModule() {
7578
+ }
7579
+ return SimpleTagsFormModule;
7580
+ }());
7581
+ SimpleTagsFormModule.decorators = [
7582
+ { type: i0.NgModule, args: [{
7583
+ imports: [
7584
+ common.CommonModule,
7585
+ corecomponents_v12.CoDialogModule,
7586
+ corecomponents_v12.InputSearchModule,
7587
+ corecomponents_v12.IconModule,
7588
+ dragDrop.DragDropModule,
7589
+ corecomponents_v12.ButtonModule
7590
+ ],
7591
+ declarations: [
7592
+ SimpleTagsFormComponent
7593
+ ],
7594
+ exports: [
7595
+ SimpleTagsFormComponent
7596
+ ]
7597
+ },] }
7598
+ ];
7599
+
6986
7600
  var SimpleTagsModule = /** @class */ (function () {
6987
7601
  function SimpleTagsModule() {
6988
7602
  }
@@ -6996,7 +7610,8 @@
6996
7610
  corecomponents_v12.InputSearchModule,
6997
7611
  corecomponents_v12.IconModule,
6998
7612
  dragDrop.DragDropModule,
6999
- corecomponents_v12.ButtonModule
7613
+ corecomponents_v12.ButtonModule,
7614
+ SimpleTagsFormModule
7000
7615
  ],
7001
7616
  declarations: [
7002
7617
  SimpleTagsComponent
@@ -10424,6 +11039,3154 @@
10424
11039
  },] }
10425
11040
  ];
10426
11041
 
11042
+ var BaseActivityListComponent = /** @class */ (function () {
11043
+ function BaseActivityListComponent() {
11044
+ this.reloadTimer = 60000; // 1 minute in milliseconds
11045
+ this.handleOpenLinkSidebar = false;
11046
+ //viewmodels
11047
+ this.privateActivityListViewModels = [];
11048
+ this.privateDelegatedActivityListViewModels = [];
11049
+ this.filteredActivityListViewModels = [];
11050
+ this.filteredDelegatedActivityListViewModels = [];
11051
+ this._showUsergroupActivities = false;
11052
+ this._activities = [];
11053
+ this._delegatedActivities = [];
11054
+ //protected userService: UserService
11055
+ }
11056
+ Object.defineProperty(BaseActivityListComponent.prototype, "activities", {
11057
+ get: function () {
11058
+ return this._activities;
11059
+ },
11060
+ set: function (value) {
11061
+ clearTimeout(this._updateInterval);
11062
+ this._activities = value;
11063
+ this.filteredActivities = this._activities.slice();
11064
+ this.applyFilter();
11065
+ this._startInterval();
11066
+ },
11067
+ enumerable: false,
11068
+ configurable: true
11069
+ });
11070
+ Object.defineProperty(BaseActivityListComponent.prototype, "delegatedActivities", {
11071
+ get: function () {
11072
+ return this._delegatedActivities;
11073
+ },
11074
+ set: function (value) {
11075
+ if (value && value.length > 0) {
11076
+ clearTimeout(this._updateInterval);
11077
+ this._delegatedActivities = value;
11078
+ this.filteredDelegatedActivities = this._delegatedActivities.slice();
11079
+ this.applyFilter();
11080
+ this._startInterval();
11081
+ }
11082
+ },
11083
+ enumerable: false,
11084
+ configurable: true
11085
+ });
11086
+ Object.defineProperty(BaseActivityListComponent.prototype, "showUsergroupActivities", {
11087
+ // TODO: return this.userService.showUsergroupActivities and allow to set properly;
11088
+ get: function () {
11089
+ return this._showUsergroupActivities;
11090
+ },
11091
+ set: function (value) {
11092
+ this._showUsergroupActivities = value;
11093
+ },
11094
+ enumerable: false,
11095
+ configurable: true
11096
+ });
11097
+ BaseActivityListComponent.prototype.ngOnDestroy = function () {
11098
+ clearInterval(this._updateInterval);
11099
+ };
11100
+ BaseActivityListComponent.prototype.reset = function () {
11101
+ this.filteredActivities = [];
11102
+ this.filteredDelegatedActivities = [];
11103
+ this._activities = [];
11104
+ this._delegatedActivities = [];
11105
+ };
11106
+ BaseActivityListComponent.prototype.applyFilter = function () {
11107
+ this._applyFilter(this.activities, this.filteredActivities, this.filteredActivityListViewModels);
11108
+ this._applyFilter(this.delegatedActivities, this.filteredDelegatedActivities, this.filteredDelegatedActivityListViewModels);
11109
+ this._refreshActivities();
11110
+ this.afterFilterApplied();
11111
+ };
11112
+ BaseActivityListComponent.prototype.afterFilterApplied = function () {
11113
+ };
11114
+ BaseActivityListComponent.prototype.getTheActivities = function () {
11115
+ this.getActivities();
11116
+ this.getDelegatedActivities();
11117
+ };
11118
+ BaseActivityListComponent.prototype._removeNotShowing = function (listViewModels) {
11119
+ for (var i = listViewModels.length - 1; i > 0; i--) {
11120
+ var listViewModel = listViewModels[i];
11121
+ if (!listViewModel.showing) {
11122
+ listViewModels.splice(i, 1);
11123
+ }
11124
+ else { // iterate through activityViewModels
11125
+ for (var j = listViewModel.activities.length - 1; j > 0; j--) {
11126
+ var activityViewModel = listViewModel.activities[j];
11127
+ if (!activityViewModel.showing) {
11128
+ listViewModel.activities.splice(j, 1);
11129
+ }
11130
+ }
11131
+ }
11132
+ }
11133
+ };
11134
+ BaseActivityListComponent.prototype.updatePrivateListsWithFilteredLists = function () {
11135
+ this.privateActivityListViewModels =
11136
+ this._updatePrivateListWithFilteredList(this.privateActivityListViewModels, this.filteredActivityListViewModels);
11137
+ this.privateDelegatedActivityListViewModels =
11138
+ this._updatePrivateListWithFilteredList(this.privateDelegatedActivityListViewModels, this.filteredDelegatedActivityListViewModels);
11139
+ };
11140
+ BaseActivityListComponent.prototype._applyFilter = function (activities, filteredActivities, filteredActivityListViewModels) {
11141
+ var _this = this;
11142
+ if (isNill_function.isNill(activities)) {
11143
+ filteredActivities.length = 0;
11144
+ return;
11145
+ }
11146
+ filteredActivities = activities.slice(0);
11147
+ if (this.filterFrom && this.filterTo) {
11148
+ filteredActivities =
11149
+ activities.filter(function (a) {
11150
+ if (a.executionDateTime === null || a.overDue) {
11151
+ return true;
11152
+ }
11153
+ else {
11154
+ return DateUtils.IsInBetween(a.executionDateTime, _this.filterFrom, _this.filterTo, false);
11155
+ }
11156
+ });
11157
+ }
11158
+ filteredActivities.sort(function (a, b) { return a.deadlineDateTime > b.deadlineDateTime ? 1 : -1; });
11159
+ this._searchText(filteredActivities);
11160
+ this._prepareViewModels(filteredActivities, filteredActivityListViewModels);
11161
+ };
11162
+ BaseActivityListComponent.prototype._searchText = function (filteredActivities) {
11163
+ if (!this.searchText) {
11164
+ return;
11165
+ }
11166
+ for (var i = filteredActivities.length - 1; i >= 0; i--) {
11167
+ var activity = filteredActivities[i];
11168
+ var found = false;
11169
+ for (var key in activity) {
11170
+ if (activity.hasOwnProperty(key)) {
11171
+ if (activity[key].toString().indexOf(this.searchText) > -1) {
11172
+ found = true;
11173
+ break;
11174
+ }
11175
+ }
11176
+ }
11177
+ if (!found) {
11178
+ filteredActivities.splice(i, 1);
11179
+ }
11180
+ }
11181
+ };
11182
+ BaseActivityListComponent.prototype._updatePrivateListWithFilteredList = function (listViewModels, filteredList) {
11183
+ var result;
11184
+ if (listViewModels.length === 0) {
11185
+ result = filteredList.slice();
11186
+ }
11187
+ else {
11188
+ result = listViewModels.slice();
11189
+ var _loop_1 = function (i) {
11190
+ var listViewModel = result[i];
11191
+ var filteredViewModel = filteredList.find(function (f) { return f.position === listViewModel.position; });
11192
+ if (!filteredViewModel) {
11193
+ // flag as removed when listviewmodel is no longer in the list
11194
+ listViewModel.showing = false;
11195
+ }
11196
+ else {
11197
+ var _loop_3 = function (j) {
11198
+ var viewModel = listViewModel.activities[j];
11199
+ if (!filteredViewModel.activities.find(function (fa) { return fa.guid === viewModel.guid; })) {
11200
+ // flag as removed when viewmodel is no longer in the list
11201
+ viewModel.showing = false;
11202
+ }
11203
+ };
11204
+ for (var j = 0; j < listViewModel.activities.length; j++) {
11205
+ _loop_3(j);
11206
+ }
11207
+ }
11208
+ };
11209
+ // set showing to false for items which are not in the list anymore
11210
+ for (var i = 0; i < result.length; i++) {
11211
+ _loop_1(i);
11212
+ }
11213
+ var _loop_2 = function (i) {
11214
+ var filteredActivityListViewModel = filteredList[i];
11215
+ var listViewModel = result.find(function (lvm) { return lvm.label === filteredActivityListViewModel.label; });
11216
+ if (!listViewModel) {
11217
+ result.push(filteredActivityListViewModel);
11218
+ }
11219
+ else {
11220
+ var _loop_4 = function (j) {
11221
+ var filteredActivityViewModel = filteredActivityListViewModel.activities[j];
11222
+ if (!listViewModel.activities.find(function (a) { return a.activity.getId() === filteredActivityViewModel.activity.getId(); })) {
11223
+ listViewModel.activities.push(filteredActivityViewModel);
11224
+ }
11225
+ };
11226
+ for (var j = 0; j < filteredActivityListViewModel.activities.length; j++) {
11227
+ _loop_4(j);
11228
+ }
11229
+ }
11230
+ };
11231
+ // add new items
11232
+ for (var i = 0; i < filteredList.length; i++) {
11233
+ _loop_2(i);
11234
+ }
11235
+ }
11236
+ result.sort(this._sortByPosition);
11237
+ return result;
11238
+ };
11239
+ BaseActivityListComponent.prototype._refreshActivities = function () {
11240
+ // first remove items which are set invisible before
11241
+ this._removeNotShowing(this.privateActivityListViewModels);
11242
+ this._removeNotShowing(this.privateDelegatedActivityListViewModels);
11243
+ // update private list with (new) filtered list
11244
+ this.updatePrivateListsWithFilteredLists();
11245
+ };
11246
+ BaseActivityListComponent.prototype._prepareViewModels = function (filteredActivities, filteredActivityListViewModels) {
11247
+ filteredActivityListViewModels.map(function (alm) {
11248
+ alm.showing = false;
11249
+ alm.activities.map(function (aa) { return aa.showing = false; });
11250
+ });
11251
+ if (filteredActivities) {
11252
+ for (var i = 0; i < filteredActivities.length; i++) {
11253
+ var activity = filteredActivities[i];
11254
+ if (!activity.overDue && DateUtils.IsToday(activity.deadlineDateTime)) {
11255
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'TODAY', 1, activity);
11256
+ }
11257
+ else if (activity.overDue) {
11258
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'TOO_LATE', 2, activity);
11259
+ }
11260
+ else if (activity.deadlineDateTime) {
11261
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'NEXT2', 3, activity);
11262
+ }
11263
+ else {
11264
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'UNSCHEDULED', 4, activity);
11265
+ }
11266
+ }
11267
+ }
11268
+ filteredActivityListViewModels.sort(this._sortByPosition);
11269
+ this._setAmountListViewModels(filteredActivityListViewModels);
11270
+ };
11271
+ BaseActivityListComponent.prototype._setAmountListViewModels = function (filteredActivityListViewModels) {
11272
+ for (var i = 0; i < filteredActivityListViewModels.length; i++) {
11273
+ filteredActivityListViewModels[i].setAmount();
11274
+ }
11275
+ };
11276
+ BaseActivityListComponent.prototype._sortByPosition = function (a, b) {
11277
+ return a.position > b.position ? 1 : -1;
11278
+ };
11279
+ BaseActivityListComponent.prototype._addToActivityListViewModel = function (filteredActivityListViewModels, label, order, activity) {
11280
+ var activityListViewModel = this._getActivityListViewModel(filteredActivityListViewModels, label, order);
11281
+ activityListViewModel.showing = true;
11282
+ var activityViewModel = this._getActivityViewModel(activityListViewModel, activity);
11283
+ activityViewModel.showing = !activityViewModel.deleted;
11284
+ this._updateViewModelContent(activityViewModel, activity);
11285
+ };
11286
+ BaseActivityListComponent.prototype._getActivityViewModel = function (listViewModel, activity) {
11287
+ var viewModel = listViewModel.activities.find(function (a) { return a.activity.getId() === activity.getId(); });
11288
+ if (!viewModel) {
11289
+ viewModel = new activityViewModel.ActivityViewModel();
11290
+ viewModel.activity = activity;
11291
+ viewModel.parent = listViewModel;
11292
+ listViewModel.activities.push(viewModel);
11293
+ }
11294
+ return viewModel;
11295
+ };
11296
+ BaseActivityListComponent.prototype._getActivityListViewModel = function (filteredActivityListViewModels, label, order) {
11297
+ var result = filteredActivityListViewModels.find(function (a) { return a.label === label; });
11298
+ if (!result) {
11299
+ result = new activityListViewModel.ActivityListViewModel(label, order);
11300
+ filteredActivityListViewModels.push(result);
11301
+ }
11302
+ return result;
11303
+ };
11304
+ BaseActivityListComponent.prototype._startInterval = function () {
11305
+ var _this = this;
11306
+ this._updateInterval = window.setInterval(function () {
11307
+ _this.getTheActivities();
11308
+ }, this.reloadTimer);
11309
+ };
11310
+ BaseActivityListComponent.prototype._updateViewModelContent = function (activityViewModel, activity) {
11311
+ activityViewModel.activity = activity;
11312
+ return activityViewModel;
11313
+ };
11314
+ return BaseActivityListComponent;
11315
+ }());
11316
+ BaseActivityListComponent.decorators = [
11317
+ { type: i0.Directive },
11318
+ { type: i0.Injectable }
11319
+ ];
11320
+ BaseActivityListComponent.ctorParameters = function () { return []; };
11321
+ BaseActivityListComponent.propDecorators = {
11322
+ handleOpenLinkSidebar: [{ type: i0.Input }]
11323
+ };
11324
+ __decorate([
11325
+ InputBoolean()
11326
+ ], BaseActivityListComponent.prototype, "handleOpenLinkSidebar", void 0);
11327
+
11328
+ var ActivityCfgName;
11329
+ (function (ActivityCfgName) {
11330
+ ActivityCfgName["TaskForms"] = "TaskForms";
11331
+ ActivityCfgName["NewTaskFormHeader"] = "NewTaskFormHeader";
11332
+ ActivityCfgName["NewTaskTitle"] = "NewTaskTitle";
11333
+ ActivityCfgName["ActivitiesHeader"] = "activitiesHeader";
11334
+ ActivityCfgName["NewTaskGlobalButton"] = "newTaskGlobalButton";
11335
+ ActivityCfgName["AddActivityTaskButton"] = "addActivityTaskButton";
11336
+ ActivityCfgName["DeleteActivityTaskButton"] = "deleteActivityTaskButton";
11337
+ ActivityCfgName["AddActivityRemarkButton"] = "addActivityRemarkButton";
11338
+ ActivityCfgName["AddActivityWorkButton"] = "addActivityWorkButton";
11339
+ ActivityCfgName["TimeRegistrationMandatory"] = "timeRegistrationMandatory";
11340
+ ActivityCfgName["StatusSummaryHeader"] = "statusSummaryHeader";
11341
+ ActivityCfgName["CreationSummaryHeader"] = "creationSummaryHeader";
11342
+ ActivityCfgName["ExecutiveSummaryHeader"] = "executiveSummaryHeader";
11343
+ ActivityCfgName["PlanningSummaryHeader"] = "planningSummaryHeader";
11344
+ ActivityCfgName["AttachmentsHeader"] = "attachmentsHeader";
11345
+ ActivityCfgName["NotificationsSummaryHeader"] = "notificationsSummaryHeader";
11346
+ ActivityCfgName["TagsHeader"] = "tagsHeader";
11347
+ ActivityCfgName["WorkHeader"] = "workHeader";
11348
+ ActivityCfgName["WorkExecutive"] = "workExecutive";
11349
+ ActivityCfgName["WorkCalculationKey"] = "calculationKey";
11350
+ ActivityCfgName["WorkDescription"] = "workDescription";
11351
+ ActivityCfgName["WorkFile"] = "workFile";
11352
+ ActivityCfgName["EstimationStandardTime"] = "estimate";
11353
+ ActivityCfgName["TaskInvoice"] = "taskInvoice";
11354
+ ActivityCfgName["WorkedTime"] = "workedTime";
11355
+ })(ActivityCfgName || (ActivityCfgName = {}));
11356
+
11357
+ var AppPopupButtonType;
11358
+ (function (AppPopupButtonType) {
11359
+ AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
11360
+ AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
11361
+ AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
11362
+ AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
11363
+ AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
11364
+ AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
11365
+ AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
11366
+ })(AppPopupButtonType || (AppPopupButtonType = {}));
11367
+
11368
+ var ModifyTaskFormComponent = /** @class */ (function () {
11369
+ function ModifyTaskFormComponent(_boFactory, sharedService, iconCacheService
11370
+ //private _mediaMonitor: MediaMonitorService,
11371
+ /*private _activityService: ActivityService*/
11372
+ ) {
11373
+ this._boFactory = _boFactory;
11374
+ this.sharedService = sharedService;
11375
+ this.iconCacheService = iconCacheService;
11376
+ //public readonly TagCategory: typeof TagCategory = TagCategory;
11377
+ this.TableNames = tableName_enum.TableName;
11378
+ this.readonly = false;
11379
+ this.popupContext = false;
11380
+ this.activityChange = new i0.EventEmitter();
11381
+ this.statusChange = new i0.EventEmitter();
11382
+ this.showWorkLog = new i0.EventEmitter();
11383
+ this.selectedMenu = 'content-menu1';
11384
+ this.activities = [];
11385
+ this.table = tableName_enum.TableName.Tasks;
11386
+ this.expandActivities = false;
11387
+ this.showTagPopup = false;
11388
+ }
11389
+ Object.defineProperty(ModifyTaskFormComponent.prototype, "activity", {
11390
+ get: function () {
11391
+ return this._activity;
11392
+ },
11393
+ /* @ViewChild(ActivityActivitiesComponent, { static: true })
11394
+ public activityActivities: ActivityActivitiesComponent;*/
11395
+ set: function (value) {
11396
+ this._activity = value;
11397
+ this.key = this._activity.task.taskId + "";
11398
+ },
11399
+ enumerable: false,
11400
+ configurable: true
11401
+ });
11402
+ ModifyTaskFormComponent.prototype.showClass = function () {
11403
+ return true;
11404
+ };
11405
+ Object.defineProperty(ModifyTaskFormComponent.prototype, "hasDocuments", {
11406
+ get: function () {
11407
+ var _a, _b, _c;
11408
+ return (((_c = (_b = (_a = this._activity) === null || _a === void 0 ? void 0 : _a.task) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c.length) > 0);
11409
+ },
11410
+ enumerable: false,
11411
+ configurable: true
11412
+ });
11413
+ Object.defineProperty(ModifyTaskFormComponent.prototype, "forceReadonly", {
11414
+ set: function (value) {
11415
+ this.readonly = value;
11416
+ },
11417
+ enumerable: false,
11418
+ configurable: true
11419
+ });
11420
+ ModifyTaskFormComponent.prototype.handleAddDocuments = function (docs) {
11421
+ var _this = this;
11422
+ docs.forEach(function (doc) { return _this.activity.task.documents.push(doc); });
11423
+ };
11424
+ ModifyTaskFormComponent.prototype.handleAddDocument = function (doc) {
11425
+ this.activity.task.documents.push(doc);
11426
+ };
11427
+ ModifyTaskFormComponent.prototype.ngOnInit = function () {
11428
+ this._getActivities();
11429
+ this._getTags();
11430
+ };
11431
+ ModifyTaskFormComponent.prototype.showContent = function (menu) {
11432
+ this.selectedMenu = menu;
11433
+ };
11434
+ ModifyTaskFormComponent.prototype.handleRegisterWork = function () {
11435
+ setTimeout(function () {
11436
+ /*if (this.activityActivities) {
11437
+ this.expandActivities = true;
11438
+ this.activityActivities.showRegisterWorkLeaf();
11439
+ }*/
11440
+ });
11441
+ };
11442
+ ModifyTaskFormComponent.prototype.handleSaveActivity = function (activity) {
11443
+ this._updateTaskObject(activity, activity.IsWork ? "workLog" : "remarks");
11444
+ var index = this.activities.findIndex(function (src) {
11445
+ return src.getId() === activity.getId();
11446
+ });
11447
+ if (index > -1) {
11448
+ this.activities[index] = activity;
11449
+ }
11450
+ else {
11451
+ this.activities.push(activity);
11452
+ }
11453
+ this.activities = this.activities.slice(0); // reset view
11454
+ };
11455
+ ModifyTaskFormComponent.prototype.handleDeleteActivity = function (activity) {
11456
+ if (activity.IsWork) {
11457
+ this.activity.task.deleteWorkLog(activity.work);
11458
+ }
11459
+ else if (activity.IsRemark) {
11460
+ this.activity.task.deleteRemark(activity.remark);
11461
+ }
11462
+ };
11463
+ ModifyTaskFormComponent.prototype.handleShowWorkLow = function () {
11464
+ this.expandActivities = true;
11465
+ this.showWorkLog.emit();
11466
+ };
11467
+ ModifyTaskFormComponent.prototype.handleEditTags = function () {
11468
+ this._getTags();
11469
+ this.showTagPopup = true;
11470
+ };
11471
+ ModifyTaskFormComponent.prototype.handleSaveTags = function (tags) {
11472
+ this.activity.task.tags = tags;
11473
+ };
11474
+ ModifyTaskFormComponent.prototype._updateTaskObject = function (activity, prop) {
11475
+ var cloneActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
11476
+ if (cloneActivity.isNew) {
11477
+ this.activity.task[prop].push(activity.getBaseContent());
11478
+ }
11479
+ else {
11480
+ var index = this.activity.task[prop].findIndex(function (src) {
11481
+ return src.getId() === activity.getBaseContent().getId();
11482
+ });
11483
+ if (index > -1) {
11484
+ this.activity.task[prop][index] = activity.getBaseContent();
11485
+ }
11486
+ }
11487
+ activity.editting = false;
11488
+ activity.isNew = false;
11489
+ };
11490
+ ModifyTaskFormComponent.prototype._getActivities = function () {
11491
+ return __awaiter(this, void 0, void 0, function () {
11492
+ var _d;
11493
+ return __generator(this, function (_e) {
11494
+ switch (_e.label) {
11495
+ case 0:
11496
+ if (!this.key) {
11497
+ return [2 /*return*/];
11498
+ }
11499
+ _d = this;
11500
+ return [4 /*yield*/, this.sharedService.getActivities(this.table, this.key.toString())];
11501
+ case 1:
11502
+ _d.activities = _e.sent();
11503
+ return [2 /*return*/];
11504
+ }
11505
+ });
11506
+ });
11507
+ };
11508
+ ModifyTaskFormComponent.prototype._getTags = function () {
11509
+ return __awaiter(this, void 0, void 0, function () {
11510
+ var _d;
11511
+ return __generator(this, function (_e) {
11512
+ switch (_e.label) {
11513
+ case 0:
11514
+ _d = this;
11515
+ return [4 /*yield*/, this.sharedService.getTagsFullTree(tabCategory_enum.TagCategory.tasks, true)];
11516
+ case 1:
11517
+ _d.allTags = _e.sent();
11518
+ return [2 /*return*/];
11519
+ }
11520
+ });
11521
+ });
11522
+ };
11523
+ return ModifyTaskFormComponent;
11524
+ }());
11525
+ ModifyTaskFormComponent.decorators = [
11526
+ { type: i0.Component, args: [{
11527
+ selector: "co-modify-task-form",
11528
+ template: "\n <div class=\"wrapper\">\n <div class=\"modify-task-header-wrapper\">\n <div class=\"modify-task-header\">\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu1'\"\n [textContent]=\"'TASK_DETAILS' | localize\"\n (click)=\"showContent('content-menu1')\"></span>\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu2'\"\n [textContent]=\"'TASK_INFORMATION' | localize\"\n (click)=\"showContent('content-menu2')\"></span>\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu3'\"\n [textContent]=\"'PLANNING' | localize\"\n (click)=\"showContent('content-menu3')\"></span>\n </div>\n </div>\n <div class=\"content-menu-wrapper narrow-scrollbar\">\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu1'\">\n <div class=\"content-row-wrapper\">\n <div class=\"content-left\">\n <co-task-details [readonly]=\"readonly\"\n [table]=\"TableNames.Tasks\"\n [key]=\"key\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\"\n (showWorkLog)=\"handleShowWorkLow()\"\n noBorder\n ></co-task-details>\n <co-input-checkbox\n class=\"invoice-checkbox\"\n [label]=\"'MARKED' | localize\"\n [(model)]=\"activity.task.isInvoiced\">\n </co-input-checkbox>\n <div class=\"marked-time-wrapper\">\n <co-input-checkbox\n [(model)]=\"activity.task.workMandatory\"\n [label]=\"'TIMEREGISTRATION_MANDATORY' | localize\"\n noModuleService>\n </co-input-checkbox>\n <!-- TODO implement back later-->\n <!-- <arrow-link *ngIf=\"!readonly\" label=\"REGISTER_TIME_HERE\" (click)=\"handleRegisterWork()\"></arrow-link>-->\n </div>\n\n </div>\n <div class=\"content-right\">\n <div class=\"activity-content-header\" [textContent]=\"'PERSONS' | localize\"></div>\n <co-executive-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-executive-summary-block>\n\n <!--TODO implement new file upload here-->\n <!-- <activity-attachments\n [(activity)]=\"activity\"\n [readonly]=\"readonly\"\n [key]=\"activity.task.id\"\n [noForceInput]=\"true\"\n (activityChange)=\"activityChange.emit($event)\"\n noBorder\n ></activity-attachments>-->\n </div>\n </div>\n <div class=\"activities-wrapper\">\n <co-activity-list [activities]=\"activities\">\n\n </co-activity-list>\n </div>\n </div>\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu2'\">\n <co-status-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n [table]=\"TableNames.Tasks\"\n [key]=\"key\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-status-summary-block>\n <co-creation-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-creation-summary-block>\n <!--<planning-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></planning-summary-block>-->\n </div>\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu3'\">\n <co-notification-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-notification-summary-block>\n\n <div class=\"edit-tags-wrapper\">\n <co-simple-tags-form [tags]=\"allTags\"\n [linkedTags]=\"activity.task.tags\">\n </co-simple-tags-form>\n </div>\n <div class=\"transaction-tag-wrapper\" *ngFor=\"let tag of activity.task.tags\">\n <div class=\"tag\" [textContent]=\"tag.description\"></div>\n </div>\n </div>\n </div>\n\n </div>\n ",
11529
+ providers: [
11530
+ corecomponents_v12.FormMasterService,
11531
+ {
11532
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
11533
+ useExisting: i0.forwardRef(function () { return ModifyTaskFormComponent; })
11534
+ }
11535
+ ]
11536
+ },] }
11537
+ ];
11538
+ ModifyTaskFormComponent.ctorParameters = function () { return [
11539
+ { type: businessObjectFactory.BusinessObjectFactory },
11540
+ { type: SharedService },
11541
+ { type: corecomponents_v12.IconCacheService }
11542
+ ]; };
11543
+ ModifyTaskFormComponent.propDecorators = {
11544
+ activity: [{ type: i0.Input }],
11545
+ showClass: [{ type: i0.HostBinding, args: ["class.co-modify-task-form",] }],
11546
+ activityTaskConfigNames: [{ type: i0.Input }],
11547
+ readonly: [{ type: i0.Input }],
11548
+ popupContext: [{ type: i0.Input }],
11549
+ forceReadonly: [{ type: i0.Input }],
11550
+ hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }],
11551
+ activityChange: [{ type: i0.Output }],
11552
+ statusChange: [{ type: i0.Output }],
11553
+ showWorkLog: [{ type: i0.Output }]
11554
+ };
11555
+ __decorate([
11556
+ InputBoolean()
11557
+ ], ModifyTaskFormComponent.prototype, "forceReadonly", null);
11558
+
11559
+ var TaskModifierComponent = /** @class */ (function () {
11560
+ function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService, sharedService) {
11561
+ this._dialogService = _dialogService;
11562
+ this._boFactory = _boFactory;
11563
+ this._dictionary = _dictionary;
11564
+ this.iconService = iconService;
11565
+ this.sharedService = sharedService;
11566
+ this.icons = exports["ɵbu"];
11567
+ this.editingComplete = new i0.EventEmitter();
11568
+ this.activitySaved = new i0.EventEmitter();
11569
+ this.activityDeleted = new i0.EventEmitter();
11570
+ this.closedWithoutComplete = new i0.EventEmitter();
11571
+ this.showWorkLog = new i0.EventEmitter();
11572
+ this.taskCreated = new i0.EventEmitter();
11573
+ this.taskModified = new i0.EventEmitter();
11574
+ this.showAfterInsert = false;
11575
+ this.showNewForm = false;
11576
+ this.showModificationForm = false;
11577
+ this.taskEditting = false;
11578
+ this.Icon = exports["ɵbu"];
11579
+ }
11580
+ Object.defineProperty(TaskModifierComponent.prototype, "readonly", {
11581
+ get: function () {
11582
+ //return this.moduleService.readonly &&
11583
+ return false;
11584
+ },
11585
+ enumerable: false,
11586
+ configurable: true
11587
+ });
11588
+ TaskModifierComponent.prototype.showClass = function () {
11589
+ return true;
11590
+ };
11591
+ Object.defineProperty(TaskModifierComponent.prototype, "showForm", {
11592
+ get: function () {
11593
+ return this.showNewForm || this.showModificationForm;
11594
+ },
11595
+ enumerable: false,
11596
+ configurable: true
11597
+ });
11598
+ Object.defineProperty(TaskModifierComponent.prototype, "header", {
11599
+ get: function () {
11600
+ return (this.showModificationForm) ? "TASK" : "ADD_TASK2";
11601
+ },
11602
+ enumerable: false,
11603
+ configurable: true
11604
+ });
11605
+ Object.defineProperty(TaskModifierComponent.prototype, "subHeader", {
11606
+ get: function () {
11607
+ return this.currentActivity ? this.currentActivity.task.taskId + "" : "";
11608
+ },
11609
+ enumerable: false,
11610
+ configurable: true
11611
+ });
11612
+ Object.defineProperty(TaskModifierComponent.prototype, "subSubHeader", {
11613
+ get: function () {
11614
+ var _a, _b, _c, _d, _e, _f;
11615
+ if (((_b = (_a = this.currentActivity) === null || _a === void 0 ? void 0 : _a.task) === null || _b === void 0 ? void 0 : _b.lastModifiedBy) && ((_d = (_c = this.currentActivity) === null || _c === void 0 ? void 0 : _c.task) === null || _d === void 0 ? void 0 : _d.lastModifiedDate)) {
11616
+ var label = this._dictionary.get('LAST_CHANGE');
11617
+ var lastModifiedBy = (_e = this.currentActivity.task) === null || _e === void 0 ? void 0 : _e.lastModifiedDisplayName;
11618
+ var lastModifiedDate = (_f = this.currentActivity.task) === null || _f === void 0 ? void 0 : _f.lastModifiedDate.toLocaleString();
11619
+ return label + ': ' + lastModifiedBy + ' | ' + lastModifiedDate;
11620
+ }
11621
+ return "";
11622
+ },
11623
+ enumerable: false,
11624
+ configurable: true
11625
+ });
11626
+ Object.defineProperty(TaskModifierComponent.prototype, "subHeaderLink", {
11627
+ get: function () {
11628
+ if (this.showModificationForm && this.currentActivity && this.currentActivity.task) {
11629
+ if (this.currentActivity.task.workflowCategory && this.currentActivity.task.reference) {
11630
+ var activityName = void 0;
11631
+ activityName = this._dictionary.get("WORKFLOW_CATEGORY_" + this.currentActivity.task.workflowCategory) + " " + this.currentActivity.task.reference + ")";
11632
+ return activityName;
11633
+ }
11634
+ }
11635
+ return "";
11636
+ },
11637
+ enumerable: false,
11638
+ configurable: true
11639
+ });
11640
+ Object.defineProperty(TaskModifierComponent.prototype, "userIsTaskReporter", {
11641
+ get: function () {
11642
+ return this.editActivity &&
11643
+ ((this.editActivity.task.reporterUserGroupId && this.editActivity.task.reporterUserGroupId === this.userGroupId) ||
11644
+ (this.editActivity.task.reporter && this.editActivity.task.reporter.relationId === this.relationId));
11645
+ },
11646
+ enumerable: false,
11647
+ configurable: true
11648
+ });
11649
+ TaskModifierComponent.prototype.ngOnDestroy = function () {
11650
+ };
11651
+ TaskModifierComponent.prototype.handleSaveForm = function () {
11652
+ this.mainForm.submit();
11653
+ };
11654
+ TaskModifierComponent.prototype.onValid = function () {
11655
+ return __awaiter(this, void 0, void 0, function () {
11656
+ var newActivity, result;
11657
+ return __generator(this, function (_g) {
11658
+ switch (_g.label) {
11659
+ case 0:
11660
+ if (!this.editActivity) return [3 /*break*/, 2];
11661
+ newActivity = this.editActivity.isNew;
11662
+ return [4 /*yield*/, this.sharedService.updateActivity(this.editActivity)];
11663
+ case 1:
11664
+ result = _g.sent();
11665
+ if (result) {
11666
+ this.activitySaved.next(this.editActivity);
11667
+ this.editingComplete.next(this.editActivity);
11668
+ if (newActivity) {
11669
+ this.taskCreated.next(this.editActivity.task);
11670
+ }
11671
+ else {
11672
+ this.taskModified.next(this.editActivity.task);
11673
+ }
11674
+ if (this.showAfterInsert) {
11675
+ this.startModifyingTask(this.editActivity);
11676
+ }
11677
+ }
11678
+ this.hide();
11679
+ _g.label = 2;
11680
+ case 2: return [2 /*return*/];
11681
+ }
11682
+ });
11683
+ });
11684
+ };
11685
+ TaskModifierComponent.prototype.handleCancelForm = function () {
11686
+ this._createClone();
11687
+ //TODO: is this needed?
11688
+ //this.moduleService.cancelEdit();
11689
+ this.closedWithoutComplete.next(true);
11690
+ this.hide();
11691
+ };
11692
+ TaskModifierComponent.prototype.onPopupClose = function () {
11693
+ this.forceReadonly = false;
11694
+ this.hide();
11695
+ this.closedWithoutComplete.next(true);
11696
+ };
11697
+ //TODO figure out routing from external component
11698
+ /*public openReferenceInModule(): void {
11699
+ if (this.currentActivity && this.currentActivity.task) {
11700
+ if (this.currentActivity.task.workflowCategory === WorkflowCategoryType.AbsenceFile || this.currentActivity.task.workflowCategory === WorkflowCategoryType.PreventiveAbsenceFile) {
11701
+ this._appNavigator.navigateToIOneModule(IOneModuleName.AbsenceFile, this.currentActivity.task.referenceId);
11702
+ }
11703
+ }
11704
+
11705
+ }*/
11706
+ TaskModifierComponent.prototype.hide = function () {
11707
+ this.showNewForm = false;
11708
+ this.showModificationForm = false;
11709
+ };
11710
+ TaskModifierComponent.prototype.deleteTask = function () {
11711
+ return __awaiter(this, void 0, void 0, function () {
11712
+ var doDelete;
11713
+ return __generator(this, function (_g) {
11714
+ switch (_g.label) {
11715
+ case 0: return [4 /*yield*/, this._dialogService.showYesNo("DELETE_TASK", "DELETE_TASK", false)];
11716
+ case 1:
11717
+ doDelete = _g.sent();
11718
+ if (!(doDelete.button === AppPopupButtonType.Yes)) return [3 /*break*/, 3];
11719
+ return [4 /*yield*/, this.sharedService.deleteActivity(this.editActivity)];
11720
+ case 2:
11721
+ _g.sent();
11722
+ this.activityDeleted.next(this.editActivity);
11723
+ this.hide();
11724
+ _g.label = 3;
11725
+ case 3: return [2 /*return*/];
11726
+ }
11727
+ });
11728
+ });
11729
+ };
11730
+ TaskModifierComponent.prototype.createNewTask = function (standalone) {
11731
+ if (standalone === void 0) { standalone = true; }
11732
+ return __awaiter(this, void 0, void 0, function () {
11733
+ var _g;
11734
+ return __generator(this, function (_h) {
11735
+ switch (_h.label) {
11736
+ case 0:
11737
+ if (this.showForm) {
11738
+ return [2 /*return*/];
11739
+ }
11740
+ this.showAfterInsert = false;
11741
+ _g = this;
11742
+ return [4 /*yield*/, this.createTaskOperation({ standalone: standalone, workflowCategory: this.workflowCategory, reference: this.reference, referenceId: this.referenceId })];
11743
+ case 1:
11744
+ _g.currentActivity = _h.sent();
11745
+ this._createClone();
11746
+ this.showNewForm = true;
11747
+ return [2 /*return*/];
11748
+ }
11749
+ });
11750
+ });
11751
+ };
11752
+ TaskModifierComponent.prototype.startModifyingTask = function (activity) {
11753
+ return __awaiter(this, void 0, void 0, function () {
11754
+ return __generator(this, function (_g) {
11755
+ switch (_g.label) {
11756
+ case 0:
11757
+ if (this.showForm || !activity.IsTask) {
11758
+ return [2 /*return*/];
11759
+ }
11760
+ this.showAfterInsert = false;
11761
+ return [4 /*yield*/, this.sharedService.lockTask(activity.task.taskId)];
11762
+ case 1:
11763
+ _g.sent();
11764
+ activity.task = activity.task;
11765
+ this.currentActivity = activity;
11766
+ this._createClone();
11767
+ this.showModificationForm = true;
11768
+ return [2 /*return*/];
11769
+ }
11770
+ });
11771
+ });
11772
+ };
11773
+ TaskModifierComponent.prototype.startModifyingTaskAndWorkLog = function (activity) {
11774
+ return __awaiter(this, void 0, void 0, function () {
11775
+ return __generator(this, function (_g) {
11776
+ switch (_g.label) {
11777
+ case 0: return [4 /*yield*/, this.startModifyingTask(activity)];
11778
+ case 1:
11779
+ _g.sent();
11780
+ setTimeout(function () {
11781
+ /*if (this.modifyTaskForm) {
11782
+ this.modifyTaskForm.handleRegisterWork();
11783
+ }*/
11784
+ });
11785
+ return [2 /*return*/];
11786
+ }
11787
+ });
11788
+ });
11789
+ };
11790
+ TaskModifierComponent.prototype._createClone = function () {
11791
+ this.editActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, this.currentActivity);
11792
+ };
11793
+ TaskModifierComponent.prototype.doHandleStatusChange = function (editting) {
11794
+ this.taskEditting = editting;
11795
+ };
11796
+ TaskModifierComponent.prototype.updateEditActivity = function (activity) {
11797
+ this.editActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
11798
+ };
11799
+ return TaskModifierComponent;
11800
+ }());
11801
+ TaskModifierComponent.decorators = [
11802
+ { type: i0.Component, args: [{
11803
+ selector: "co-task-modifier",
11804
+ template: "\n <co-dialog *ngIf=\"showForm\"\n (closeClick)=\"onPopupClose()\"\n class=\"task-popup\"\n cssId=\"task_modifier_popup\"\n noClickOutside contentSize>\n<!--\n [header]=\"header\"\n [subHeader]=\"subHeader\"\n [subHeaderLink]=\"subHeaderLink\"\n [subSubHeader]=\"subSubHeader\"\n [headerIcon]=\"icons.Task\"\n (openLink)=\"openReferenceInModule()\"-->\n <!-- <ng-template>-->\n <div class=\"popup-wrapper\"\n [ngClass]=\"(showNewForm) ? 'new-task-popup' : ''\">\n <div class=\"form-wrapper mini-scrollbar\">\n <co-form #mainForm (validSubmit)=\"onValid()\">\n<!--\n <new-task-form *ngIf=\"showNewForm\" [activity]=\"editActivity\" [myCfgNames]=\"taskCfgNames\" [taskKey]=\"referenceId\" [taskWorkflowCategory]=\"workflowCategory\"></new-task-form>\n-->\n <co-modify-task-form #modifyTaskForm *ngIf=\"showModificationForm\"\n [activity]=\"editActivity\"\n [readonly]=\"readonly\"\n [popupContext]=\"true\"\n (statusChange)=\"doHandleStatusChange($event)\"\n (showWorkLog)=\"showWorkLog.emit()\"\n (activityChange)=\"updateEditActivity($event)\"\n ></co-modify-task-form>\n </co-form>\n </div>\n </div>\n <div class=\"popup-buttons\" fxLayout=\"column\">\n <div *ngIf=\"showNewForm\" fxLayout=\"row\" class=\"popup-thumb\">\n <span [textContent]=\"'SHOW_AFTER_INSERT' | localize\"></span>\n <!-- <thumb [(active)]=showAfterInsert\"></thumb>-->\n </div>\n <div class=\"ok-cancel-buttons\">\n <div class=\"button-left\">\n <co-button [disabled]=\"readonly || taskEditting\" [textContent]=\"'SAVE' | localize\" (click)=\"handleSaveForm()\"></co-button>\n </div>\n <div class=\"button-middle\">\n <co-button *ngIf=\"showNewForm\" [textContent]=\"'CANCEL' | localize\" (click)=\"handleCancelForm()\"></co-button>\n </div>\n <div class=\"button-right\">\n <co-button *ngIf=\"showModificationForm && !readonly\"\n [iconData]=\"iconService.getIcon(icons.Trashbin)\" class=\"delete light\"\n [disabled]=\"readonly || taskEditting\"\n (click)=\"deleteTask()\"></co-button>\n </div>\n </div>\n </div>\n <!-- </ng-template>-->\n </co-dialog>\n "
11805
+ },] }
11806
+ ];
11807
+ TaskModifierComponent.ctorParameters = function () { return [
11808
+ { type: corecomponents_v12.CoreDialogService },
11809
+ { type: businessObjectFactory.BusinessObjectFactory },
11810
+ { type: DictionaryService },
11811
+ { type: IconCacheService },
11812
+ { type: SharedService }
11813
+ ]; };
11814
+ TaskModifierComponent.propDecorators = {
11815
+ mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
11816
+ modifyTaskForm: [{ type: i0.ViewChild, args: [i0.forwardRef(function () { return ModifyTaskFormComponent; }),] }],
11817
+ workflowCategory: [{ type: i0.Input }],
11818
+ reference: [{ type: i0.Input }],
11819
+ referenceId: [{ type: i0.Input }],
11820
+ userGroupId: [{ type: i0.Input }],
11821
+ relationId: [{ type: i0.Input }],
11822
+ createTaskOperation: [{ type: i0.Input }],
11823
+ forceReadonly: [{ type: i0.Input }],
11824
+ editingComplete: [{ type: i0.Output }],
11825
+ activitySaved: [{ type: i0.Output }],
11826
+ activityDeleted: [{ type: i0.Output }],
11827
+ closedWithoutComplete: [{ type: i0.Output }],
11828
+ showWorkLog: [{ type: i0.Output }],
11829
+ taskCreated: [{ type: i0.Output }],
11830
+ taskModified: [{ type: i0.Output }],
11831
+ showClass: [{ type: i0.HostBinding, args: ["class.co-task-modifier",] }]
11832
+ };
11833
+ __decorate([
11834
+ InputBoolean()
11835
+ ], TaskModifierComponent.prototype, "forceReadonly", void 0);
11836
+
11837
+ var BaseActivityOverviewComponent = /** @class */ (function () {
11838
+ function BaseActivityOverviewComponent(_dialogService, _dictionaryService, _sharedService
11839
+ //TODO reinstate when formbuilder is transferred
11840
+ //private _formRepo: FormDalRepository,
11841
+ /*private _router: Router*/
11842
+ ) {
11843
+ this._dialogService = _dialogService;
11844
+ this._dictionaryService = _dictionaryService;
11845
+ this._sharedService = _sharedService;
11846
+ this.icon = exports["ɵbu"];
11847
+ this.cfgNames = ActivityCfgName;
11848
+ this.taskCfgNames = {
11849
+ timeRegistrationMandatory: ActivityCfgName.TimeRegistrationMandatory,
11850
+ deleteActivityTaskButton: ActivityCfgName.DeleteActivityTaskButton,
11851
+ statusSummaryHeader: ActivityCfgName.StatusSummaryHeader,
11852
+ creationSummaryHeader: ActivityCfgName.CreationSummaryHeader,
11853
+ executiveSummaryHeader: ActivityCfgName.ExecutiveSummaryHeader,
11854
+ planningSummaryHeader: ActivityCfgName.PlanningSummaryHeader,
11855
+ attachmentsHeader: ActivityCfgName.AttachmentsHeader,
11856
+ notificationsSummaryHeader: ActivityCfgName.NotificationsSummaryHeader,
11857
+ tagsHeader: ActivityCfgName.TagsHeader,
11858
+ taskInvoice: ActivityCfgName.TaskInvoice
11859
+ };
11860
+ this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
11861
+ this.handleOpenLinkSidebar = false;
11862
+ this.activityChange = new i0.EventEmitter();
11863
+ this.activityDeleted = new i0.EventEmitter();
11864
+ this.triggerFired = new i0.EventEmitter();
11865
+ this.genericTriggerFired = new i0.EventEmitter();
11866
+ this.formCreated = new i0.EventEmitter();
11867
+ this.openLink = new i0.EventEmitter();
11868
+ this.linkClicked = new i0.EventEmitter();
11869
+ this.overDue = false;
11870
+ this.userIsSupervisor = false;
11871
+ this.urls = [];
11872
+ this.isTask = false;
11873
+ this.hasTriggers = false;
11874
+ this.sameDates = false;
11875
+ this._activity = new activity_bo.Activity();
11876
+ }
11877
+ Object.defineProperty(BaseActivityOverviewComponent.prototype, "viewModel", {
11878
+ set: function (value) {
11879
+ this._viewModel = value;
11880
+ this.overDue = value.overDue;
11881
+ this.activity = value.activity;
11882
+ },
11883
+ enumerable: false,
11884
+ configurable: true
11885
+ });
11886
+ Object.defineProperty(BaseActivityOverviewComponent.prototype, "triggerToFireOnSave", {
11887
+ get: function () {
11888
+ return this._triggerToFireOnSave;
11889
+ },
11890
+ set: function (value) {
11891
+ this._triggerToFireOnSave = value;
11892
+ },
11893
+ enumerable: false,
11894
+ configurable: true
11895
+ });
11896
+ Object.defineProperty(BaseActivityOverviewComponent.prototype, "activity", {
11897
+ get: function () {
11898
+ return this._activity;
11899
+ },
11900
+ set: function (value) {
11901
+ this._activity = value;
11902
+ this._prepareData();
11903
+ },
11904
+ enumerable: false,
11905
+ configurable: true
11906
+ });
11907
+ BaseActivityOverviewComponent.prototype.handleButtonEndClick = function () {
11908
+ this.handleTriggerClick(this.firstTriggerToCloseWF);
11909
+ };
11910
+ BaseActivityOverviewComponent.prototype.handleGenericTriggerClick = function (event) {
11911
+ return __awaiter(this, void 0, void 0, function () {
11912
+ var result, messages, len, i;
11913
+ return __generator(this, function (_a) {
11914
+ switch (_a.label) {
11915
+ case 0: return [4 /*yield*/, this._sharedService.fireGenericTrigger(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId)];
11916
+ case 1:
11917
+ result = _a.sent();
11918
+ if (result.success) {
11919
+ this.genericTriggerFired.next(this.activity);
11920
+ }
11921
+ else {
11922
+ messages = [];
11923
+ len = result.messages.length;
11924
+ for (i = 0; i < len; i++) {
11925
+ messages.push(this._dictionaryService.get(result.messages[i].message.toUpperCase()));
11926
+ }
11927
+ this._dialogService.showError(messages.toString());
11928
+ }
11929
+ return [2 /*return*/];
11930
+ }
11931
+ });
11932
+ });
11933
+ };
11934
+ BaseActivityOverviewComponent.prototype.handleTriggerClick = function (eventTrigger) {
11935
+ return __awaiter(this, void 0, void 0, function () {
11936
+ var result, messages, len, i;
11937
+ return __generator(this, function (_a) {
11938
+ switch (_a.label) {
11939
+ case 0:
11940
+ if (!(eventTrigger.isTaskTrigger && eventTrigger.taskId)) return [3 /*break*/, 1];
11941
+ //prepare task on the activity object, so the task modifier can handle it
11942
+ this.activity.task = new task_bo.Task();
11943
+ this.activity.activityType = activityType.ActivityType.Task;
11944
+ this.activity.task.taskId = eventTrigger.taskId;
11945
+ this.taskModifier.startModifyingTask(this.activity);
11946
+ return [3 /*break*/, 6];
11947
+ case 1:
11948
+ if (!eventTrigger.isFormTrigger) return [3 /*break*/, 2];
11949
+ return [3 /*break*/, 6];
11950
+ case 2:
11951
+ if (!(eventTrigger.toClosedState && !this._sharedService.canFireTrigger(this.activity, this.activity.task))) return [3 /*break*/, 4];
11952
+ return [4 /*yield*/, this.prepareWorkflowOperation({ table: this.workFlow.table, key: this.workFlow.key })];
11953
+ case 3:
11954
+ _a.sent();
11955
+ this.triggerToFireOnSave = eventTrigger;
11956
+ this.showTaskFormAndWorkLog();
11957
+ return [2 /*return*/];
11958
+ case 4: return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId)];
11959
+ case 5:
11960
+ result = _a.sent();
11961
+ if (result.success) {
11962
+ this.triggerFired.next(this.activity);
11963
+ }
11964
+ else {
11965
+ messages = [];
11966
+ len = result.messages.length;
11967
+ for (i = 0; i < len; i++) {
11968
+ messages.push(this._dictionaryService.get(result.messages[i].message.toUpperCase()));
11969
+ }
11970
+ this._dialogService.showError(messages.toString());
11971
+ }
11972
+ _a.label = 6;
11973
+ case 6: return [2 /*return*/];
11974
+ }
11975
+ });
11976
+ });
11977
+ };
11978
+ BaseActivityOverviewComponent.prototype.handleOpenLink = function (event, url) {
11979
+ this._stopEventPropagation(event);
11980
+ if (url) { // breadCrumbs to url
11981
+ this._openUrl(url);
11982
+ }
11983
+ else {
11984
+ this.startModifyingTask();
11985
+ }
11986
+ };
11987
+ BaseActivityOverviewComponent.prototype.handleOpenLinkOrUrl = function (event) {
11988
+ this._stopEventPropagation(event);
11989
+ if (this.link && this.link.module) {
11990
+ this.linkClicked.next({ module: this.link.module, id: this.link.id });
11991
+ }
11992
+ else if (this.urls && this.urls.length) {
11993
+ this._openUrl(this.urls[0]);
11994
+ }
11995
+ else {
11996
+ this.startModifyingTask();
11997
+ }
11998
+ };
11999
+ BaseActivityOverviewComponent.prototype.startModifyingTask = function () {
12000
+ if (this.workFlow && this.workFlow.workFlowHasOneTaskTrigger) {
12001
+ this.activity.task = new task_bo.Task();
12002
+ this.activity.activityType = activityType.ActivityType.Task;
12003
+ this.activity.task.taskId = this.workFlow.taskIdFromTaskTrigger;
12004
+ }
12005
+ if (this.activity.task) {
12006
+ if (this.handleOpenLinkSidebar === true) {
12007
+ this.openLink.next(this.activity);
12008
+ }
12009
+ else {
12010
+ this.taskModifier.startModifyingTask(this.activity);
12011
+ }
12012
+ }
12013
+ // TODO: for now a message is shown.
12014
+ else if (this.workFlow) {
12015
+ this._dialogService.showInformation("Component: " + this.workFlow.component + " key: " + this.workFlow.displayKey);
12016
+ }
12017
+ };
12018
+ BaseActivityOverviewComponent.prototype.showTaskFormAndWorkLog = function () {
12019
+ if (this.activity.task) {
12020
+ //TODO REINSTATE AFTER FIXING FORM
12021
+ //this.taskModifier.startModifyingTaskAndWorkLog(this.activity);
12022
+ }
12023
+ };
12024
+ BaseActivityOverviewComponent.prototype.onSaveActivity = function (activity) {
12025
+ this.activity = activity;
12026
+ this.activityChange.next(this.activity);
12027
+ };
12028
+ BaseActivityOverviewComponent.prototype.onDeleteActivity = function (activity) {
12029
+ if (this.activity.getId() === activity.getId()) {
12030
+ if (this._viewModel) {
12031
+ this._viewModel.deleted = true;
12032
+ this._viewModel.showing = false;
12033
+ this._viewModel.refreshViewModel();
12034
+ }
12035
+ this.activityDeleted.emit(activity);
12036
+ }
12037
+ };
12038
+ //TODO Reinstate once we know what to do with the formbuilder
12039
+ /*public doCancelForm(): void {
12040
+ this.showCreateForm = false;
12041
+ }
12042
+
12043
+ public async doSaveForm(form: FormResponse): Promise<void> {
12044
+ const result: ValidationResult = await this._formRepo.insertFormResponse(form);
12045
+ if (result.success) {
12046
+ this.formCreated.next();
12047
+ this.showCreateForm = false;
12048
+ }
12049
+ }*/
12050
+ BaseActivityOverviewComponent.prototype._prepareData = function () {
12051
+ this.workFlow = this._activity.workflow;
12052
+ if (this.workFlow) {
12053
+ this.workFlow.useSingleTaskTriggerAsTask = true;
12054
+ this.urls = this.workFlow.urls;
12055
+ this.hasTriggers = this.workFlow.hasTriggers;
12056
+ }
12057
+ this.activityName = this.activity.name;
12058
+ this.link = this.activity.link;
12059
+ this.linkDescription = this.activity.linkDescription;
12060
+ this.targetDate = this.activity.targetDateTime;
12061
+ this.deadlineDate = this.activity.deadlineDateTime;
12062
+ this.openButtonLabel = this.activity.linkLabel;
12063
+ this.activityTitle = this.activity.activityTitle;
12064
+ this.activityContextTitle = this.activity.activityContextTitle;
12065
+ this.isTask = this._activity.IsTask;
12066
+ this.sameDates = DateUtils.IsSameDay(this.targetDate, this.deadlineDate);
12067
+ this._setFirstTriggerToCloseWF();
12068
+ };
12069
+ BaseActivityOverviewComponent.prototype._setFirstTriggerToCloseWF = function () {
12070
+ if (isNill_function.isNill(this.workFlow) || isNill_function.isNill(this.workFlow.manualTriggers)) {
12071
+ return;
12072
+ }
12073
+ this.firstTriggerToCloseWF = undefined;
12074
+ var len = this.workFlow.manualTriggers.length;
12075
+ for (var i = 0; i < len; i++) {
12076
+ if (this.workFlow.manualTriggers[i].toClosedState) {
12077
+ this.firstTriggerToCloseWF = this.workFlow.manualTriggers[i];
12078
+ break;
12079
+ }
12080
+ }
12081
+ };
12082
+ BaseActivityOverviewComponent.prototype._openUrl = function (url) {
12083
+ var regEx = new RegExp(/(http)|(www.)/);
12084
+ if (regEx.test(url)) {
12085
+ window.open(url.indexOf("http") === -1 ? "http://" + url : url, "_blank");
12086
+ }
12087
+ else {
12088
+ //this._router.navigateByUrl(url);
12089
+ }
12090
+ };
12091
+ BaseActivityOverviewComponent.prototype._stopEventPropagation = function (event) {
12092
+ event.preventDefault();
12093
+ event.stopPropagation();
12094
+ event.stopImmediatePropagation();
12095
+ };
12096
+ return BaseActivityOverviewComponent;
12097
+ }());
12098
+ BaseActivityOverviewComponent.decorators = [
12099
+ { type: i0.Directive },
12100
+ { type: i0.Injectable }
12101
+ ];
12102
+ BaseActivityOverviewComponent.ctorParameters = function () { return [
12103
+ { type: corecomponents_v12.CoreDialogService },
12104
+ { type: DictionaryService },
12105
+ { type: SharedService }
12106
+ ]; };
12107
+ BaseActivityOverviewComponent.propDecorators = {
12108
+ taskModifier: [{ type: i0.ViewChild, args: [TaskModifierComponent, { static: true },] }],
12109
+ viewModel: [{ type: i0.Input }],
12110
+ triggerToFireOnSave: [{ type: i0.Input }],
12111
+ prepareWorkflowOperation: [{ type: i0.Input }],
12112
+ userRelationId: [{ type: i0.Input }],
12113
+ userGroupId: [{ type: i0.Input }],
12114
+ handleOpenLinkSidebar: [{ type: i0.Input }],
12115
+ activityChange: [{ type: i0.Output }],
12116
+ activityDeleted: [{ type: i0.Output }],
12117
+ triggerFired: [{ type: i0.Output }],
12118
+ genericTriggerFired: [{ type: i0.Output }],
12119
+ formCreated: [{ type: i0.Output }],
12120
+ openLink: [{ type: i0.Output }],
12121
+ linkClicked: [{ type: i0.Output }]
12122
+ };
12123
+ __decorate([
12124
+ InputBoolean()
12125
+ ], BaseActivityOverviewComponent.prototype, "handleOpenLinkSidebar", void 0);
12126
+
12127
+ var PersonalActivityOverviewComponent = /** @class */ (function (_super) {
12128
+ __extends(PersonalActivityOverviewComponent, _super);
12129
+ function PersonalActivityOverviewComponent() {
12130
+ return _super !== null && _super.apply(this, arguments) || this;
12131
+ }
12132
+ PersonalActivityOverviewComponent.prototype.showClass = function () {
12133
+ return true;
12134
+ };
12135
+ return PersonalActivityOverviewComponent;
12136
+ }(BaseActivityOverviewComponent));
12137
+ PersonalActivityOverviewComponent.decorators = [
12138
+ { type: i0.Component, args: [{
12139
+ selector: "co-personal-activity-overview",
12140
+ template: "\n <div class=\"overview-wrapper pointer-hover\" (click)=\"handleOpenLinkOrUrl($event)\">\n <div class=\"overview-wrapper-labels\">\n <div class=\"activity-title\" [textContent]=\"activityTitle\"></div>\n <div class=\"activity-context-title\" [textContent]=\"activityContextTitle\"></div>\n </div>\n <div class=\"overview-wrapper-date\">\n <div class=\"date-wrapper\" [class.overdue]=\"overDue\">\n <ng-container *ngIf=\"!sameDates\">\n <div class=\"date\" [textContent]=\"targetDate | date:'dd-MM-YYYY'\"></div>\n <div class=\"date-divider\" [textContent]=\"'-'\"></div>\n </ng-container>\n <!--TODO REINSTATE AFTER finding what the heck is wrong with date-->\n <!--<div class=\"date\" [textContent]=\"deadlineDate | date:'dd-MM-YYYY'\"></div>-->\n </div>\n </div>\n </div>\n <!--TODO REINSTATE AFTER FIXING FORM-->\n <!-- <co-task-modifier\n (editingComplete)=\"onSaveActivity($event)\"\n (activityDeleted)=\"onDeleteActivity($event)\"\n (showWorkLog)=\"showTaskFormAndWorkLog()\"\n ></co-task-modifier>-->\n <!-- [taskCfgNames]=\"taskCfgNames\"-->\n "
12141
+ },] }
12142
+ ];
12143
+ PersonalActivityOverviewComponent.propDecorators = {
12144
+ showClass: [{ type: i0.HostBinding, args: ["class.co-personal-activity-overview",] }]
12145
+ };
12146
+
12147
+ function OperationWithValidationCallback(object, object2, object3) {
12148
+ return Promise.resolve(new validationResult.ValidationResult());
12149
+ }
12150
+
12151
+ var ComponentActivityListComponent = /** @class */ (function (_super) {
12152
+ __extends(ComponentActivityListComponent, _super);
12153
+ function ComponentActivityListComponent(sharedService) {
12154
+ var _this = _super.call(this) || this;
12155
+ _this.sharedService = sharedService;
12156
+ _this.tabs = personalActivityTab_enum.PersonalActivityTabEnum;
12157
+ _this.icons = exports["ɵbu"];
12158
+ _this.activityClass = activity_bo.Activity;
12159
+ _this.activitySortType = activitySortType_enum.ActivitySortType;
12160
+ _this.hideTitle = false;
12161
+ _this.noFreeTasks = false;
12162
+ _this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
12163
+ _this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
12164
+ _this.openLinkClick = new i0.EventEmitter();
12165
+ _this.amountActivityChanged = new i0.EventEmitter();
12166
+ _this.linkClicked = new i0.EventEmitter();
12167
+ _this.formCreated = new i0.EventEmitter();
12168
+ _this.refreshRequested = new i0.EventEmitter();
12169
+ _this.showUsergroupActivitiesChanged = new i0.EventEmitter();
12170
+ _this.activeTab = personalActivityTab_enum.PersonalActivityTabEnum.TODO;
12171
+ /*public activitySortList: boolean[] = [];*/
12172
+ _this.activityList = [];
12173
+ _this._subs = [];
12174
+ _this._activitiesList = [];
12175
+ return _this;
12176
+ }
12177
+ ComponentActivityListComponent.prototype.showClass = function () {
12178
+ return true;
12179
+ };
12180
+ Object.defineProperty(ComponentActivityListComponent.prototype, "table", {
12181
+ get: function () {
12182
+ return this._table;
12183
+ },
12184
+ set: function (value) {
12185
+ this._table = value;
12186
+ this.getTheActivities();
12187
+ },
12188
+ enumerable: false,
12189
+ configurable: true
12190
+ });
12191
+ Object.defineProperty(ComponentActivityListComponent.prototype, "key", {
12192
+ get: function () {
12193
+ return this._key;
12194
+ },
12195
+ set: function (value) {
12196
+ this._key = value;
12197
+ this.getTheActivities();
12198
+ },
12199
+ enumerable: false,
12200
+ configurable: true
12201
+ });
12202
+ ComponentActivityListComponent.prototype.trackByFn = function (index, vm) {
12203
+ return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
12204
+ };
12205
+ ComponentActivityListComponent.prototype.ngOnInit = function () {
12206
+ return __awaiter(this, void 0, void 0, function () {
12207
+ return __generator(this, function (_a) {
12208
+ this.getTheActivities();
12209
+ return [2 /*return*/];
12210
+ });
12211
+ });
12212
+ };
12213
+ ComponentActivityListComponent.prototype.ngOnDestroy = function () {
12214
+ //this._subs.forEach(s => s.unsubscribe());
12215
+ _super.prototype.ngOnDestroy.call(this);
12216
+ };
12217
+ ComponentActivityListComponent.prototype.getActivities = function () {
12218
+ return __awaiter(this, void 0, void 0, function () {
12219
+ var allActivities;
12220
+ return __generator(this, function (_a) {
12221
+ switch (_a.label) {
12222
+ case 0:
12223
+ if (!(this.table && this.key)) return [3 /*break*/, 2];
12224
+ return [4 /*yield*/, this.sharedService.getComponentActivitiesWithoutRelationFiltering(this.table, this.key)];
12225
+ case 1:
12226
+ allActivities = _a.sent();
12227
+ if (allActivities) {
12228
+ this.activities = this.noFreeTasks ? allActivities.filter(function (aa) { return !aa.task && aa.activityType !== activityType.ActivityType.WorkflowTask; }) :
12229
+ allActivities.filter(function (aa) { return aa.activityType !== activityType.ActivityType.WorkflowTask; });
12230
+ }
12231
+ else {
12232
+ this.activities = [];
12233
+ }
12234
+ this.amountActivityChanged.next(this.activities.length);
12235
+ _a.label = 2;
12236
+ case 2: return [2 /*return*/];
12237
+ }
12238
+ });
12239
+ });
12240
+ };
12241
+ Object.defineProperty(ComponentActivityListComponent.prototype, "activitiesList", {
12242
+ get: function () {
12243
+ return this._activitiesList;
12244
+ },
12245
+ set: function (allActivities) {
12246
+ this._activitiesList = allActivities;
12247
+ if (allActivities) {
12248
+ this.activities = this.noFreeTasks ? allActivities.filter(function (aa) { return !aa.task && aa.activityType !== activityType.ActivityType.WorkflowTask; }) :
12249
+ allActivities.filter(function (aa) { return aa.activityType !== activityType.ActivityType.WorkflowTask; });
12250
+ }
12251
+ else {
12252
+ this.activities = [];
12253
+ }
12254
+ },
12255
+ enumerable: false,
12256
+ configurable: true
12257
+ });
12258
+ ComponentActivityListComponent.prototype.getDelegatedActivities = function () {
12259
+ return __awaiter(this, void 0, void 0, function () {
12260
+ return __generator(this, function (_a) {
12261
+ return [2 /*return*/];
12262
+ });
12263
+ });
12264
+ };
12265
+ /*//TODO there were already unused before the move. Can they go?
12266
+ public handleOpenLink(activity: Activity): void {
12267
+ this.openLinkClick.next(activity);
12268
+ }*/
12269
+ ComponentActivityListComponent.prototype.showUsergroupActivitiesChange = function () {
12270
+ this.showUsergroupActivitiesChanged.next();
12271
+ };
12272
+ ComponentActivityListComponent.prototype.handleTriggerFired = function (activity) {
12273
+ this.getTheActivities();
12274
+ this.refreshRequested.emit();
12275
+ };
12276
+ ComponentActivityListComponent.prototype.handleGenericTriggerFired = function (activity) {
12277
+ this.getTheActivities();
12278
+ this.refreshRequested.emit();
12279
+ };
12280
+ ComponentActivityListComponent.prototype.handleFormCreation = function () {
12281
+ this.formCreated.next();
12282
+ };
12283
+ ComponentActivityListComponent.prototype.handleChangedActivity = function (idx, activity) {
12284
+ if (this.activities) {
12285
+ this.activities[idx] = activity;
12286
+ }
12287
+ };
12288
+ ComponentActivityListComponent.prototype.deleteActivity = function (activity) {
12289
+ this.amountActivityChanged.next(this.activities.length - 1);
12290
+ };
12291
+ ComponentActivityListComponent.prototype.reset = function () {
12292
+ _super.prototype.reset.call(this);
12293
+ this.activityList = [];
12294
+ };
12295
+ ComponentActivityListComponent.prototype.doFilterClicked = function (filter) {
12296
+ if (filter.from && filter.to) {
12297
+ this.filterFrom = new Date(filter.from);
12298
+ this.filterFrom.setHours(0);
12299
+ this.filterFrom.setMinutes(0);
12300
+ this.filterFrom.setSeconds(0);
12301
+ this.filterTo = new Date(filter.to);
12302
+ this.filterTo.setHours(0);
12303
+ this.filterTo.setMinutes(0);
12304
+ this.filterTo.setSeconds(0);
12305
+ }
12306
+ else {
12307
+ this.filterFrom = undefined;
12308
+ this.filterTo = undefined;
12309
+ }
12310
+ this.applyFilter();
12311
+ };
12312
+ ComponentActivityListComponent.prototype.openFirstTask = function () {
12313
+ if (!this.activities) {
12314
+ return;
12315
+ }
12316
+ var tasks = this.activities.filter((function (value) { return value.IsTask; }));
12317
+ if (tasks && tasks.length > 0) {
12318
+ var activityOverviews = this.activityOverviewList.toArray();
12319
+ if (activityOverviews && activityOverviews.length) {
12320
+ var len = activityOverviews.length;
12321
+ for (var i = 0; i < len; i++) {
12322
+ if (activityOverviews[i].activity.getId() === tasks[0].getId()) {
12323
+ activityOverviews[i].startModifyingTask();
12324
+ }
12325
+ }
12326
+ }
12327
+ }
12328
+ };
12329
+ return ComponentActivityListComponent;
12330
+ }(BaseActivityListComponent));
12331
+ ComponentActivityListComponent.decorators = [
12332
+ { type: i0.Component, args: [{
12333
+ selector: "co-component-activity-list",
12334
+ template: "\n <co-activity-list-header\n [title]=\"'ACTIVITIES'\"\n [table]=\"table\"\n [key]=\"key\"\n [(showUsergroupActivities)]=\"showUsergroupActivities\"\n [(searchText)]=\"searchText\"\n (periodFilterClicked)=\"doFilterClicked($event)\"\n (searchTextChange)=\"applyFilter()\"\n (showUsergroupActivitiesChange)=\"showUsergroupActivitiesChange()\"\n [setHasPausedNotificationsForWorkflowProcessOperation]=\"setHasPausedNotificationsForWorkflowProcessOperation\"\n ></co-activity-list-header>\n <div class=\"activity-list-content\">\n <div class=\"activity-wrapper\" [@showHideTab]=\"activeTab\">\n <div class=\"activity-tab-content mini-scrollbar\">\n <ng-container *ngFor=\"let activityListViewModel of privateActivityListViewModels\">\n <co-collapsible *ngIf=\"activityListViewModel.showing\" #collapseable\n [headerTitle]=\"activityListViewModel.label + ' ' + activityListViewModel.amount\"\n [(expanded)]=\"activityListViewModel.expanded\">\n <ng-container *ngFor=\"let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index\">\n <co-component-activity-overview *ngIf=\"activityViewModel.showing\"\n [viewModel]=\"activityViewModel\"\n [userRelationId]=\"relationId\"\n [userGroupId]=\"userGroupId\"\n (activityChange)=\"handleChangedActivity(index, $event)\"\n (activityDeleted)=\"deleteActivity($event)\"\n (genericTriggerFired)=\"handleGenericTriggerFired($event)\"\n (triggerFired)=\"handleTriggerFired($event)\"\n (linkClicked)=\"linkClicked.emit($event)\"\n (formCreated)=\"handleFormCreation()\"></co-component-activity-overview>\n </ng-container>\n </co-collapsible>\n </ng-container>\n </div>\n <div class=\"activity-tab-content mini-scrollbar\">\n <ng-container *ngFor=\"let activityListViewModel of privateDelegatedActivityListViewModels\">\n <co-collapsible *ngIf=\"activityListViewModel.showing\" #collapseable\n [headerTitle]=\"activityListViewModel.label + ' ' + activityListViewModel.amount\"\n [(expanded)]=\"activityListViewModel.expanded\">\n <ng-container *ngFor=\"let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index\">\n <co-component-activity-overview *ngIf=\"activityViewModel.showing\"\n [viewModel]=\"activityViewModel\"\n [userRelationId]=\"relationId\"\n [userGroupId]=\"userGroupId\"\n (activityChange)=\"handleChangedActivity(index, $event)\"\n (activityDeleted)=\"deleteActivity($event)\"\n (genericTriggerFired)=\"handleGenericTriggerFired($event)\"\n (triggerFired)=\"handleTriggerFired($event)\"\n (linkClicked)=\"linkClicked.emit($event)\"\n (formCreated)=\"handleFormCreation()\"></co-component-activity-overview>\n </ng-container>\n </co-collapsible>\n </ng-container>\n </div>\n </div>\n </div>\n ",
12335
+ animations: [
12336
+ animations.trigger("showHideContent", [
12337
+ animations.state("void", animations.style({ transform: "scaleY(0)", opacity: 0 })),
12338
+ animations.state("*", animations.style({ transform: "scaleY(1)", opacity: 1 })),
12339
+ animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
12340
+ ]),
12341
+ animations.trigger("showHideTab", [
12342
+ animations.state("TODO", animations.style({ transform: "translateX(0)" })),
12343
+ animations.state("DELEGATED", animations.style({ transform: "translateX(calc(-100% - 20px))" })),
12344
+ animations.transition("TODO <=> DELEGATED", animations.animate("200ms ease-in-out"))
12345
+ ])
12346
+ ]
12347
+ },] }
12348
+ ];
12349
+ ComponentActivityListComponent.ctorParameters = function () { return [
12350
+ { type: SharedService }
12351
+ ]; };
12352
+ ComponentActivityListComponent.propDecorators = {
12353
+ activityOverviewList: [{ type: i0.ViewChildren, args: [PersonalActivityOverviewComponent,] }],
12354
+ showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-list",] }],
12355
+ table: [{ type: i0.Input }],
12356
+ key: [{ type: i0.Input }],
12357
+ hideTitle: [{ type: i0.Input }],
12358
+ noFreeTasks: [{ type: i0.Input }],
12359
+ customTitle: [{ type: i0.Input }],
12360
+ userGroupId: [{ type: i0.Input }],
12361
+ relationId: [{ type: i0.Input }],
12362
+ componentActivitiesMethod: [{ type: i0.Input }],
12363
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
12364
+ openLinkClick: [{ type: i0.Output }],
12365
+ amountActivityChanged: [{ type: i0.Output }],
12366
+ linkClicked: [{ type: i0.Output }],
12367
+ formCreated: [{ type: i0.Output }],
12368
+ refreshRequested: [{ type: i0.Output }],
12369
+ showUsergroupActivitiesChanged: [{ type: i0.Output }],
12370
+ activitiesList: [{ type: i0.Input }]
12371
+ };
12372
+ __decorate([
12373
+ InputBoolean()
12374
+ ], ComponentActivityListComponent.prototype, "hideTitle", void 0);
12375
+ __decorate([
12376
+ InputBoolean()
12377
+ ], ComponentActivityListComponent.prototype, "noFreeTasks", void 0);
12378
+
12379
+ var PersonalActivityOverviewModule = /** @class */ (function () {
12380
+ function PersonalActivityOverviewModule() {
12381
+ }
12382
+ return PersonalActivityOverviewModule;
12383
+ }());
12384
+ PersonalActivityOverviewModule.decorators = [
12385
+ { type: i0.NgModule, args: [{
12386
+ imports: [
12387
+ common.CommonModule
12388
+ ],
12389
+ declarations: [
12390
+ PersonalActivityOverviewComponent
12391
+ ],
12392
+ exports: [
12393
+ PersonalActivityOverviewComponent
12394
+ ]
12395
+ },] }
12396
+ ];
12397
+
12398
+ var ComponentActivityOverviewComponent = /** @class */ (function (_super) {
12399
+ __extends(ComponentActivityOverviewComponent, _super);
12400
+ function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService, sharedService
12401
+ /*public router: Router*/ ) {
12402
+ var _this = _super.call(this, dialogService, dictionaryService, sharedService /*router*/) || this;
12403
+ _this.iconCacheService = iconCacheService;
12404
+ _this.dialogService = dialogService;
12405
+ _this.dictionaryService = dictionaryService;
12406
+ _this.sharedService = sharedService;
12407
+ _this.Icon = exports["ɵbu"];
12408
+ return _this;
12409
+ }
12410
+ ComponentActivityOverviewComponent.prototype.showClass = function () {
12411
+ return true;
12412
+ };
12413
+ return ComponentActivityOverviewComponent;
12414
+ }(BaseActivityOverviewComponent));
12415
+ ComponentActivityOverviewComponent.decorators = [
12416
+ { type: i0.Component, args: [{
12417
+ selector: "co-component-activity-overview",
12418
+ template: "\n <div class=\"overview-wrapper\">\n <div class=\"overview-wrapper-icons\">\n <co-icon *ngIf=\"userIsSupervisor && (!isTask || firstTriggerToCloseWF === undefined)\" icon=\"supervisor\"\n class=\"supervisor-icon big dark\"\n [title]=\"'MY_TASKS_SUPERVISOR' | localize\"></co-icon>\n </div>\n <div class=\"overview-wrapper-labels\">\n <div class=\"activity-title\" [textContent]=\"activityTitle\"></div>\n <div class=\"activity-context-title\" [textContent]=\"activityContextTitle\"></div>\n </div>\n <div class=\"overview-wrapper-date\">\n <div class=\"date-wrapper\" [class.overdue]=\"overDue\">\n <ng-container *ngIf=\"!sameDates\">\n <div class=\"date\" [textContent]=\"targetDate | date:'dd-MM-YYYY'\"></div>\n <div class=\"date-divider\" [textContent]=\"'-'\"></div>\n </ng-container>\n <div class=\"date\" [textContent]=\"deadlineDate | date:'dd-MM-YYYY'\"></div>\n </div>\n </div>\n </div>\n <div class=\"overview-main\">\n <ng-container *ngIf=\"isTask && firstTriggerToCloseWF !== undefined\">\n <co-button class=\"trans-green custom-text button-trigger no-margin\" [label]=\"firstTriggerToCloseWF.description\"\n (click)=\"handleButtonEndClick()\"></co-button>\n </ng-container>\n <ng-container *ngIf=\"openButtonLabel\">\n <co-button class=\"trans-green default-bg custom-text button-trigger-icon action-hover no-margin\"\n iconClass=\"custom small\" [iconData]=\"iconCacheService.getIcon(icon.DetailView)\" [label]=\"openButtonLabel | localize\"\n (click)=\"handleOpenLink($event)\"></co-button>\n </ng-container>\n <!--TODO reinstate this when we figure out how to trigger a screen change. -->\n <!--<ng-container *ngIf=\"urls && urls.length > 0\">\n <button-colijn *ngFor=\"let url of urls\"\n class=\"trans-green custom-text button-trigger-icon action-hover no-margin\"\n [icon]=\"icon.DetailView\"\n [label]=\"'OPEN_LINK' | localize\"\n iconClass=\"custom small\"\n (click)=\"handleOpenLink($event, url)\"></button-colijn>\n </ng-container>-->\n <ng-container *ngIf=\"!isTask && hasTriggers\">\n <co-button class=\"trans-green custom-text action-hover button-trigger no-margin\" *ngFor=\"let trigger of workFlow.manualGenericTriggers\"\n [class.button-trigger-icon]=\"trigger.isTaskTrigger\"\n [label]=\"trigger.triggerButtonName\"\n [iconData]=\"trigger.isTaskTrigger ? iconCacheService.getIcon(icon.Account): null\"\n iconClass=\"custom small\"\n (click)=\"handleGenericTriggerClick(trigger)\"\n ></co-button>\n <co-button class=\"trans-green custom-text action-hover button-trigger no-margin\" *ngFor=\"let trigger of workFlow.manualTriggers\"\n [class.high-prio]=\"trigger.overDue\"\n [class.button-trigger-icon]=\"trigger.isTaskTrigger\"\n [label]=\"trigger.triggerButtonName\"\n [iconData]=\"trigger.isTaskTrigger ? iconCacheService.getIcon(icon.DetailView): null\"\n iconClass=\"custom small\"\n (click)=\"handleTriggerClick(trigger)\"\n ></co-button >\n </ng-container>\n </div>\n <!--TODO reinstate this when we figure out how to trigger a screen change. -->\n <!-- <formbuilder-user-form *ngIf=\"showCreateForm\"\n [showPopup]=\"showCreateForm\"\n [table]=\"table\"\n [key]=\"key\"\n [form]=\"form\"\n (cancelForm)=\"doCancelForm()\"\n (saveForm)=\"doSaveForm($event)\"\n ></formbuilder-user-form>-->\n <co-task-modifier\n [userGroupId]=\"userGroupId\"\n [relationId]=\"userRelationId\"\n (editingComplete)=\"onSaveActivity($event)\"\n (activityDeleted)=\"onDeleteActivity($event)\"\n (showWorkLog)=\"showTaskFormAndWorkLog()\"\n ></co-task-modifier>\n\n ",
12419
+ /* providers: [
12420
+ {provide: BaseModuleScreenConfigService, useExisting: ScreenConfigurationMockService}
12421
+ ],*/
12422
+ animations: [
12423
+ animations.trigger("fadeInOut", [
12424
+ animations.state("void", animations.style({ opacity: 0 })),
12425
+ animations.state("*", animations.style({ opacity: 1 })),
12426
+ animations.transition(":enter, :leave", animations.animate("200ms ease-in-out")),
12427
+ ]),
12428
+ animations.trigger("showHideExtended", [
12429
+ animations.state("void", animations.style({ "transform-origin": "top center", transform: "scaleY(0)" })),
12430
+ animations.state("*", animations.style({ "transform-origin": "top center", transform: "scaleY(1)" })),
12431
+ animations.transition(":enter, :leave", [
12432
+ animations.animate("200ms ease-in-out")
12433
+ ])
12434
+ ])
12435
+ ]
12436
+ },] }
12437
+ ];
12438
+ ComponentActivityOverviewComponent.ctorParameters = function () { return [
12439
+ { type: IconCacheService },
12440
+ { type: corecomponents_v12.CoreDialogService },
12441
+ { type: DictionaryService },
12442
+ { type: SharedService }
12443
+ ]; };
12444
+ ComponentActivityOverviewComponent.propDecorators = {
12445
+ showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-overview",] }]
12446
+ };
12447
+
12448
+ var BaseActivitySummaryComponent = /** @class */ (function () {
12449
+ function BaseActivitySummaryComponent(dictionaryService, dialogService, _sharedService) {
12450
+ this.dictionaryService = dictionaryService;
12451
+ this.dialogService = dialogService;
12452
+ this._sharedService = _sharedService;
12453
+ this.expanded = false;
12454
+ this.noBorder = false;
12455
+ this.readonly = false;
12456
+ this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
12457
+ this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
12458
+ this.activityChange = new i0.EventEmitter();
12459
+ this.showWorkLog = new i0.EventEmitter();
12460
+ this.triggerFired = new i0.EventEmitter();
12461
+ }
12462
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "activity", {
12463
+ get: function () {
12464
+ return this.editActivity;
12465
+ },
12466
+ set: function (value) {
12467
+ this.editActivity = value;
12468
+ },
12469
+ enumerable: false,
12470
+ configurable: true
12471
+ });
12472
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "workFlow", {
12473
+ get: function () {
12474
+ return this._workFlow;
12475
+ },
12476
+ set: function (value) {
12477
+ this._workFlow = value;
12478
+ },
12479
+ enumerable: false,
12480
+ configurable: true
12481
+ });
12482
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "task", {
12483
+ get: function () {
12484
+ return this._task;
12485
+ },
12486
+ set: function (value) {
12487
+ this._task = value;
12488
+ },
12489
+ enumerable: false,
12490
+ configurable: true
12491
+ });
12492
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "triggerToFireOnSave", {
12493
+ get: function () {
12494
+ return this._triggerToFireOnSave;
12495
+ },
12496
+ set: function (value) {
12497
+ this._triggerToFireOnSave = value;
12498
+ },
12499
+ enumerable: false,
12500
+ configurable: true
12501
+ });
12502
+ BaseActivitySummaryComponent.prototype.handleSave = function (event) {
12503
+ this._saveClone();
12504
+ };
12505
+ BaseActivitySummaryComponent.prototype.handleCancel = function (event) {
12506
+ this.expanded = false;
12507
+ };
12508
+ BaseActivitySummaryComponent.prototype.handleTriggerClick = function (trigger) {
12509
+ return __awaiter(this, void 0, void 0, function () {
12510
+ var canFire, result, messages, len, i;
12511
+ return __generator(this, function (_a) {
12512
+ switch (_a.label) {
12513
+ case 0:
12514
+ if (this.readonly) {
12515
+ return [2 /*return*/];
12516
+ }
12517
+ if (trigger.toClosedState) {
12518
+ canFire = this._sharedService.canFireTrigger(this.editActivity, this.editActivity.task);
12519
+ if (!canFire) {
12520
+ this.triggerToFireOnSave = trigger;
12521
+ this.showWorkLog.next();
12522
+ return [2 /*return*/];
12523
+ }
12524
+ }
12525
+ return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowId, this.workFlow.sequence, trigger.triggerId)];
12526
+ case 1:
12527
+ result = _a.sent();
12528
+ if (!result.success) return [3 /*break*/, 4];
12529
+ return [4 /*yield*/, this.updateActivityTask(this.editActivity.task)];
12530
+ case 2:
12531
+ _a.sent();
12532
+ return [4 /*yield*/, this.prepareWorkflow()];
12533
+ case 3:
12534
+ _a.sent();
12535
+ this.triggerFired.emit(this.workFlow);
12536
+ return [3 /*break*/, 5];
12537
+ case 4:
12538
+ messages = [];
12539
+ len = result.messages.length;
12540
+ for (i = 0; i < len; i++) {
12541
+ messages.push(this.dictionaryService.get(result.messages[i].message.toUpperCase()));
12542
+ }
12543
+ this.dialogService.showError(messages.toString());
12544
+ _a.label = 5;
12545
+ case 5: return [2 /*return*/];
12546
+ }
12547
+ });
12548
+ });
12549
+ };
12550
+ BaseActivitySummaryComponent.prototype.handleExpandClick = function (value) {
12551
+ this.expanded = value;
12552
+ };
12553
+ BaseActivitySummaryComponent.prototype.prepareWorkflow = function () {
12554
+ return __awaiter(this, void 0, void 0, function () {
12555
+ return __generator(this, function (_a) {
12556
+ switch (_a.label) {
12557
+ case 0:
12558
+ if (!(this.table && this.key)) return [3 /*break*/, 2];
12559
+ return [4 /*yield*/, this.prepareWorkflowOperation({ table: this.table, key: this.key })];
12560
+ case 1:
12561
+ _a.sent();
12562
+ _a.label = 2;
12563
+ case 2: return [2 /*return*/];
12564
+ }
12565
+ });
12566
+ });
12567
+ };
12568
+ BaseActivitySummaryComponent.prototype._saveClone = function () {
12569
+ this.activityChange.next(this.editActivity);
12570
+ };
12571
+ BaseActivitySummaryComponent.prototype.updateActivityTask = function (task) {
12572
+ return __awaiter(this, void 0, void 0, function () {
12573
+ return __generator(this, function (_a) {
12574
+ switch (_a.label) {
12575
+ case 0:
12576
+ if (!task) return [3 /*break*/, 2];
12577
+ return [4 /*yield*/, this.loadTaskOperation(task.taskId)];
12578
+ case 1:
12579
+ _a.sent();
12580
+ this.editActivity.task = this.task;
12581
+ this.activityChange.emit(this.editActivity);
12582
+ _a.label = 2;
12583
+ case 2: return [2 /*return*/];
12584
+ }
12585
+ });
12586
+ });
12587
+ };
12588
+ return BaseActivitySummaryComponent;
12589
+ }());
12590
+ BaseActivitySummaryComponent.decorators = [
12591
+ { type: i0.Directive }
12592
+ ];
12593
+ BaseActivitySummaryComponent.ctorParameters = function () { return [
12594
+ { type: DictionaryService },
12595
+ { type: corecomponents_v12.CoreDialogService },
12596
+ { type: SharedService }
12597
+ ]; };
12598
+ BaseActivitySummaryComponent.propDecorators = {
12599
+ activity: [{ type: i0.Input }],
12600
+ workFlow: [{ type: i0.Input }],
12601
+ task: [{ type: i0.Input }],
12602
+ table: [{ type: i0.Input }],
12603
+ key: [{ type: i0.Input }],
12604
+ expanded: [{ type: i0.Input }],
12605
+ noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
12606
+ readonly: [{ type: i0.Input }],
12607
+ prepareWorkflowOperation: [{ type: i0.Input }],
12608
+ loadTaskOperation: [{ type: i0.Input }],
12609
+ triggerToFireOnSave: [{ type: i0.Input }],
12610
+ activityChange: [{ type: i0.Output }],
12611
+ showWorkLog: [{ type: i0.Output }],
12612
+ triggerFired: [{ type: i0.Output }],
12613
+ hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
12614
+ };
12615
+ __decorate([
12616
+ InputBoolean()
12617
+ ], BaseActivitySummaryComponent.prototype, "noBorder", void 0);
12618
+
12619
+ var TaskDetailsComponent = /** @class */ (function (_super) {
12620
+ __extends(TaskDetailsComponent, _super);
12621
+ function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService, sharedService) {
12622
+ var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
12623
+ _this.dictionaryService = dictionaryService;
12624
+ _this.dialogService = dialogService;
12625
+ _this.iconCacheService = iconCacheService;
12626
+ _this.sharedService = sharedService;
12627
+ _this.Icon = exports["ɵbu"];
12628
+ _this.showStatusDropdown = false;
12629
+ return _this;
12630
+ }
12631
+ Object.defineProperty(TaskDetailsComponent.prototype, "activity", {
12632
+ get: function () {
12633
+ return this.editActivity;
12634
+ },
12635
+ set: function (value) {
12636
+ this.editActivity = value;
12637
+ this.prepareWorkflow();
12638
+ },
12639
+ enumerable: false,
12640
+ configurable: true
12641
+ });
12642
+ TaskDetailsComponent.prototype.showClass = function () {
12643
+ return true;
12644
+ };
12645
+ TaskDetailsComponent.prototype.toggleStatusDropdown = function () {
12646
+ this.showStatusDropdown = !this.showStatusDropdown;
12647
+ };
12648
+ TaskDetailsComponent.prototype.handleTriggerClickAndClose = function (trigger) {
12649
+ this.handleTriggerClick(trigger);
12650
+ this.showStatusDropdown = false;
12651
+ };
12652
+ return TaskDetailsComponent;
12653
+ }(BaseActivitySummaryComponent));
12654
+ TaskDetailsComponent.decorators = [
12655
+ { type: i0.Component, args: [{
12656
+ selector: "co-task-details",
12657
+ template: "\n <div class=\"header-wrapper\">\n <div class=\"workflow-dropdown-wrapper\">\n <div *ngIf=\"!workFlow\" class=\"workflow-dropdown\">\n <div class=\"workflow-drop error-color\" [class.active]=\"!workFlow\">\n <label [textContent]=\"'NO_ACTIVE_WORKFLOW_FOR_TASK' | localize\"></label>\n </div>\n </div>\n <div *ngIf=\"workFlow && !workFlow.ended\" class=\"workflow-dropdown\">\n <div class=\"workflow-drop\"\n [class.towait]=\"workFlow?.stateName?.includes('wacht') || workFlow?.stateName?.includes('hold')\"\n [class.toclose]=\"workFlow.closed\"\n (click)=\"toggleStatusDropdown()\">\n <label [textContent]=\"workFlow?.stateName\"></label>\n <co-icon *ngIf=\"!workFlow.closed\" [iconData]=\"iconCacheService.getIcon(Icon.ChevronRightRegular)\"></co-icon>\n <co-icon *ngIf=\"workFlow.closed\" [iconData]=\"iconCacheService.getIcon(Icon.CheckSolid)\"></co-icon>\n </div>\n <div class=\"workflow-dropdown-list\" *ngIf=\"showStatusDropdown\">\n <div class=\"workflow-drop\"\n *ngFor=\"let trigger of workFlow?.manualTriggers\"\n (click)=\"handleTriggerClickAndClose(trigger)\">\n <label [textContent]=\"trigger.manualButtonText\"></label>\n <div class=\"drop-point\"\n [class.toclose]=\"trigger.toClosedState\"\n [class.toend]=\"trigger.toEndOfWorkflow\"\n [class.towait]=\"trigger.manualButtonText.includes('wacht') || trigger.manualButtonText.includes('hold')\">\n <span class=\"dot\" ></span>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"workFlow && workFlow?.ended\" class=\"workflow-dropdown\">\n <div class=\"workflow-drop toend\" *ngIf=\"workFlow.ended\">\n <label [textContent]=\"'CLOSED' | localize\"></label>\n <co-icon [iconData]=\"iconCacheService.getIcon(Icon.CheckSolid)\"></co-icon>\n </div>\n </div>\n </div>\n </div>\n <div class=\"details-wrapper\" fxLayout=\"column\" fxLayoutGap=\"5px\">\n <co-input-text\n [placeholder]=\"'TITLE2' | localize\"\n [readonly]=\"readonly\"\n [(model)]=\"editActivity.task.name\"\n [asyncValidators]=\"blackListValidatorsArray\"\n ></co-input-text>\n <co-input-textarea\n [placeholder]=\"'DESCRIPTION' | localize\"\n [readonly]=\"readonly\"\n [(model)]=\"editActivity.task.description\"\n [asyncValidators]=\"blackListValidatorsArray\"\n ></co-input-textarea>\n </div>\n "
12658
+ },] }
12659
+ ];
12660
+ TaskDetailsComponent.ctorParameters = function () { return [
12661
+ { type: DictionaryService },
12662
+ { type: corecomponents_v12.CoreDialogService },
12663
+ { type: IconCacheService },
12664
+ { type: SharedService }
12665
+ ]; };
12666
+ TaskDetailsComponent.propDecorators = {
12667
+ activity: [{ type: i0.Input }],
12668
+ showClass: [{ type: i0.HostBinding, args: ["class.co-task-details",] }]
12669
+ };
12670
+
12671
+ var TaskDetailsModule = /** @class */ (function () {
12672
+ function TaskDetailsModule() {
12673
+ }
12674
+ return TaskDetailsModule;
12675
+ }());
12676
+ TaskDetailsModule.decorators = [
12677
+ { type: i0.NgModule, args: [{
12678
+ imports: [
12679
+ LocalizationModule,
12680
+ corecomponents_v12.InputTextModule,
12681
+ corecomponents_v12.InputTextareaModule,
12682
+ corecomponents_v12.IconModule,
12683
+ common.CommonModule,
12684
+ ],
12685
+ declarations: [
12686
+ TaskDetailsComponent
12687
+ ],
12688
+ exports: [
12689
+ TaskDetailsComponent
12690
+ ]
12691
+ },] }
12692
+ ];
12693
+
12694
+ var ActivitySummaryBlockComponent = /** @class */ (function () {
12695
+ function ActivitySummaryBlockComponent(_formMaster, elementRef) {
12696
+ this._formMaster = _formMaster;
12697
+ this.elementRef = elementRef;
12698
+ this.Icon = exports["ɵbu"];
12699
+ this.noBorder = false;
12700
+ this.readonly = false;
12701
+ this.showButtons = false;
12702
+ this.hideCancel = false;
12703
+ this.actionIcon = false;
12704
+ this.expandable = false;
12705
+ this.saveClick = new i0.EventEmitter();
12706
+ this.cancelClick = new i0.EventEmitter();
12707
+ }
12708
+ ActivitySummaryBlockComponent.prototype.showClass = function () {
12709
+ return true;
12710
+ };
12711
+ Object.defineProperty(ActivitySummaryBlockComponent.prototype, "summaryElement", {
12712
+ get: function () {
12713
+ return this.elementRef;
12714
+ },
12715
+ enumerable: false,
12716
+ configurable: true
12717
+ });
12718
+ ActivitySummaryBlockComponent.prototype.ngOnDestroy = function () {
12719
+ this.elementRef = undefined;
12720
+ };
12721
+ ActivitySummaryBlockComponent.prototype.handleOkClick = function (event) {
12722
+ if (this.mainForm) {
12723
+ this.mainForm.submit();
12724
+ }
12725
+ };
12726
+ ActivitySummaryBlockComponent.prototype.handleCancelClick = function (event) {
12727
+ this.cancelClick.next(event);
12728
+ };
12729
+ ActivitySummaryBlockComponent.prototype.onValid = function () {
12730
+ this.saveClick.next(null);
12731
+ };
12732
+ return ActivitySummaryBlockComponent;
12733
+ }());
12734
+ ActivitySummaryBlockComponent.decorators = [
12735
+ { type: i0.Component, args: [{
12736
+ selector: "co-activity-summary-block",
12737
+ template: "\n <div class=\"block-wrapper border\">\n <div class=\"activity-summary-block-edit-template\" [id]=\"cssId\">\n <co-form (validSubmit)=\"onValid()\">\n <div class=\"template-wrapper\">\n <ng-template [templateWrapper]=\"editTemplate\" *ngIf=\"editTemplate\"></ng-template>\n </div>\n </co-form>\n <div class=\"ok-cancel-buttons\" *ngIf=\"showButtons\">\n <co-button [disabled]=\"readonly\" [textContent]=\"'OK' | localize\" (click)=\"handleOkClick($event)\"></co-button>\n <co-button *ngIf=\"hideCancel\" [textContent]=\"'STICKER' | localize\" (click)=\"handleCancelClick($event)\"></co-button>\n <ng-template [templateWrapper]=\"extraButtonsTemplate\" *ngIf=\"extraButtonsTemplate\"></ng-template>\n </div>\n </div>\n </div>\n ",
12738
+ providers: [
12739
+ corecomponents_v12.FormMasterService
12740
+ ]
12741
+ },] }
12742
+ ];
12743
+ ActivitySummaryBlockComponent.ctorParameters = function () { return [
12744
+ { type: corecomponents_v12.FormMasterService },
12745
+ { type: i0.ElementRef }
12746
+ ]; };
12747
+ ActivitySummaryBlockComponent.propDecorators = {
12748
+ mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
12749
+ cssId: [{ type: i0.Input }],
12750
+ noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
12751
+ icon: [{ type: i0.Input }],
12752
+ editIcon: [{ type: i0.Input }],
12753
+ image: [{ type: i0.Input }],
12754
+ editTitle: [{ type: i0.Input }],
12755
+ editTemplate: [{ type: i0.Input }],
12756
+ extraButtonsTemplate: [{ type: i0.Input }],
12757
+ readonly: [{ type: i0.Input }],
12758
+ showButtons: [{ type: i0.Input }],
12759
+ hideCancel: [{ type: i0.Input }],
12760
+ actionIcon: [{ type: i0.HostBinding, args: ["class.icon-action",] }, { type: i0.Input }],
12761
+ expandable: [{ type: i0.Input }],
12762
+ saveClick: [{ type: i0.Output }],
12763
+ cancelClick: [{ type: i0.Output }],
12764
+ showClass: [{ type: i0.HostBinding, args: ["class.co-activity-summary-block",] }]
12765
+ };
12766
+ __decorate([
12767
+ InputBoolean()
12768
+ ], ActivitySummaryBlockComponent.prototype, "noBorder", void 0);
12769
+ __decorate([
12770
+ InputBoolean()
12771
+ ], ActivitySummaryBlockComponent.prototype, "hideCancel", void 0);
12772
+ __decorate([
12773
+ InputBoolean()
12774
+ ], ActivitySummaryBlockComponent.prototype, "actionIcon", void 0);
12775
+ __decorate([
12776
+ InputBoolean()
12777
+ ], ActivitySummaryBlockComponent.prototype, "expandable", void 0);
12778
+
12779
+ var ActivitySummaryBlockModule = /** @class */ (function () {
12780
+ function ActivitySummaryBlockModule() {
12781
+ }
12782
+ return ActivitySummaryBlockModule;
12783
+ }());
12784
+ ActivitySummaryBlockModule.decorators = [
12785
+ { type: i0.NgModule, args: [{
12786
+ imports: [
12787
+ corecomponents_v12.FormModule,
12788
+ corecomponents_v12.ButtonModule,
12789
+ common.CommonModule,
12790
+ LocalizationModule,
12791
+ corecomponents_v12.TemplateWrapperModule
12792
+ ],
12793
+ declarations: [
12794
+ ActivitySummaryBlockComponent
12795
+ ],
12796
+ exports: [
12797
+ ActivitySummaryBlockComponent
12798
+ ]
12799
+ },] }
12800
+ ];
12801
+
12802
+ var StatusSummaryBlockComponent = /** @class */ (function (_super) {
12803
+ __extends(StatusSummaryBlockComponent, _super);
12804
+ function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService, sharedService) {
12805
+ var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
12806
+ _this.dictionaryService = dictionaryService;
12807
+ _this.dialogService = dialogService;
12808
+ _this.iconService = iconService;
12809
+ _this.sharedService = sharedService;
12810
+ _this.Icon = exports["ɵbu"];
12811
+ return _this;
12812
+ }
12813
+ StatusSummaryBlockComponent.prototype.showClass = function () {
12814
+ return true;
12815
+ };
12816
+ StatusSummaryBlockComponent.prototype.ngOnInit = function () {
12817
+ return __awaiter(this, void 0, void 0, function () {
12818
+ return __generator(this, function (_a) {
12819
+ switch (_a.label) {
12820
+ case 0: return [4 /*yield*/, this.prepareWorkflow()];
12821
+ case 1:
12822
+ _a.sent();
12823
+ return [2 /*return*/];
12824
+ }
12825
+ });
12826
+ });
12827
+ };
12828
+ return StatusSummaryBlockComponent;
12829
+ }(BaseActivitySummaryComponent));
12830
+ StatusSummaryBlockComponent.decorators = [
12831
+ { type: i0.Component, args: [{
12832
+ selector: "co-status-summary-block",
12833
+ template: "\n <co-activity-summary-block\n [cssId]=\"'status_summary_block_edit_template'\"\n [readonly]=\"readonly\"\n [icon]=\"Icon.IoneWorkflow\"\n [editIcon]=\"Icon.IoneWorkflow\"\n editTitle=\"STATUS_AND_WORKFLOW\"\n [editTemplate]=\"editTemplate\" actionIcon expandable noBorder\n (saveClick)=\"handleSave($event)\" (cancelClick)=\"handleCancel($event)\">\n </co-activity-summary-block>\n <ng-template #editTemplate>\n <div fxLayout=\"column\">\n <div class=\"status-summary-date-wrapper\">\n <co-input-date [model]=\"editActivity.task.startDateTime\"\n [placeholder]=\"'FIRST_ACTION_DATE' | localize\"\n [readonly]=\"true\" ></co-input-date>\n <co-input-date [(model)]=\"editActivity.task.executedOnDateTime\"\n [placeholder]=\"'ACTUAL_EXECUTION_DATE' | localize\"\n ></co-input-date>\n </div>\n </div>\n <co-input-text class=\"single-field\"\n [placeholder]=\"'ACTIVITY_STATUS' | localize\"\n [model]=\"workFlow?.state\"\n [leftIconData]=\"iconService.getIcon(Icon.PinRoundOpen)\"\n [readonly]=\"true\"\n ></co-input-text>\n </ng-template>\n ",
12834
+ providers: [{
12835
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
12836
+ useExisting: i0.forwardRef(function () { return StatusSummaryBlockComponent; })
12837
+ }]
12838
+ },] }
12839
+ ];
12840
+ StatusSummaryBlockComponent.ctorParameters = function () { return [
12841
+ { type: DictionaryService },
12842
+ { type: corecomponents_v12.CoreDialogService },
12843
+ { type: IconCacheService },
12844
+ { type: SharedService }
12845
+ ]; };
12846
+ StatusSummaryBlockComponent.propDecorators = {
12847
+ showClass: [{ type: i0.HostBinding, args: ["class.co-status-summary-block",] }]
12848
+ };
12849
+
12850
+ var StatusSummaryBlockModule = /** @class */ (function () {
12851
+ function StatusSummaryBlockModule() {
12852
+ }
12853
+ return StatusSummaryBlockModule;
12854
+ }());
12855
+ StatusSummaryBlockModule.decorators = [
12856
+ { type: i0.NgModule, args: [{
12857
+ imports: [
12858
+ ActivitySummaryBlockModule,
12859
+ corecomponents_v12.InputDateRangePickerModule,
12860
+ corecomponents_v12.InputDatePickerModule,
12861
+ LocalizationModule,
12862
+ corecomponents_v12.InputTextModule
12863
+ ],
12864
+ declarations: [
12865
+ StatusSummaryBlockComponent
12866
+ ],
12867
+ exports: [
12868
+ StatusSummaryBlockComponent
12869
+ ]
12870
+ },] }
12871
+ ];
12872
+
12873
+ var CreationSummaryBlockComponent = /** @class */ (function (_super) {
12874
+ __extends(CreationSummaryBlockComponent, _super);
12875
+ function CreationSummaryBlockComponent(dictionaryService, dialogService, sharedService, locale) {
12876
+ var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
12877
+ _this.dictionaryService = dictionaryService;
12878
+ _this.dialogService = dialogService;
12879
+ _this.sharedService = sharedService;
12880
+ _this.locale = locale;
12881
+ _this.Icon = exports["ɵbu"];
12882
+ _this.taskCategories = [];
12883
+ _this.priorityDomainColl = [];
12884
+ return _this;
12885
+ }
12886
+ CreationSummaryBlockComponent.prototype.showClass = function () {
12887
+ return true;
12888
+ };
12889
+ CreationSummaryBlockComponent.prototype.ngOnDestroy = function () {
12890
+ this.editTemplate = undefined;
12891
+ };
12892
+ CreationSummaryBlockComponent.prototype.ngOnInit = function () {
12893
+ var _this = this;
12894
+ this.sharedService.getTaskCategories().then(function (result) {
12895
+ _this.taskCategories = result;
12896
+ _this.chosenTaskCategory = _this.taskCategories.find(function (t) { return t.categoryId === _this.editActivity.task.categoryId; });
12897
+ });
12898
+ this.sharedService.getDomainCollection(this.locale, domainName_enum.DomainName.Priority).then(function (result) {
12899
+ _this.priorityDomainColl = result;
12900
+ if (_this.chosenTaskCategory) {
12901
+ _this.chosenPriority = _this._findDomainValueOfPriorityType(_this.editActivity.task.priority);
12902
+ }
12903
+ });
12904
+ };
12905
+ CreationSummaryBlockComponent.prototype.handleTaskCategoryChange = function (taskCategory) {
12906
+ if (this.taskCategories.length > 0 && taskCategory) {
12907
+ this.editActivity.task.categoryId = this.chosenTaskCategory.categoryId;
12908
+ this.editActivity.task.category = this.chosenTaskCategory.category;
12909
+ }
12910
+ };
12911
+ CreationSummaryBlockComponent.prototype.handlePriorityChange = function (domainValue) {
12912
+ if (this.priorityDomainColl.length > 0 && domainValue) {
12913
+ this.editActivity.task.priority = priorityType_enum.PriorityType[domainValue.code];
12914
+ }
12915
+ };
12916
+ CreationSummaryBlockComponent.prototype._findDomainValueOfPriorityType = function (priorityType) {
12917
+ if (!this.priorityDomainColl || isNill_function.isNill(priorityType)) {
12918
+ return undefined;
12919
+ }
12920
+ return this.priorityDomainColl.find(function (domainValue) {
12921
+ return domainValue.codeAsNumber === priorityType;
12922
+ });
12923
+ };
12924
+ return CreationSummaryBlockComponent;
12925
+ }(BaseActivitySummaryComponent));
12926
+ CreationSummaryBlockComponent.decorators = [
12927
+ { type: i0.Component, args: [{
12928
+ selector: "co-creation-summary-block",
12929
+ template: "\n <co-activity-summary-block\n [readonly]=\"readonly\"\n [icon]=\"Icon.Task\" editTitle=\"TASK_INFORMATION\"\n [editTemplate]=\"editTemplate\"\n (saveClick)=\"handleSave($event)\"\n (cancelClick)=\"handleCancel($event)\" expandable noBorder>\n </co-activity-summary-block>\n\n <ng-template #editTemplate>\n <div fxLayout=\"column\">\n <div class=\"creation-summary-date-wrapper\">\n <co-input-date\n [placeholder]=\"'CREATION_DATE' | localize\"\n [model]=\"editActivity.task.creationDateTime\"\n [readonly]=\"true\">\n </co-input-date>\n <co-input-text\n [placeholder]=\"'TIME' | localize\"\n [model]=\"editActivity.task.creationDateTime | date:'HH:mm:ss'\"\n [readonly]=\"true\">\n </co-input-text>\n </div>\n\n <co-list-of-values\n [readonly]=\"readonly\"\n [collection]=\"priorityDomainColl\"\n [(model)]=\"chosenPriority\"\n (modelChange)=\"handlePriorityChange($event)\"></co-list-of-values>\n\n <co-list-of-values\n [readonly]=\"readonly\"\n [collection]=\"taskCategories\"\n [(model)]=\"chosenTaskCategory\"\n [displayField]=\"'category'\"\n (modelChange)=\"handleTaskCategoryChange($event)\"></co-list-of-values>\n </div>\n </ng-template>\n ",
12930
+ providers: [{
12931
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
12932
+ useExisting: i0.forwardRef(function () { return CreationSummaryBlockComponent; })
12933
+ }]
12934
+ },] }
12935
+ ];
12936
+ CreationSummaryBlockComponent.ctorParameters = function () { return [
12937
+ { type: DictionaryService },
12938
+ { type: corecomponents_v12.CoreDialogService },
12939
+ { type: SharedService },
12940
+ { type: exports["ɵca"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
12941
+ ]; };
12942
+ CreationSummaryBlockComponent.propDecorators = {
12943
+ editTemplate: [{ type: i0.ViewChild, args: ["editTemplate", { static: true },] }],
12944
+ showClass: [{ type: i0.HostBinding, args: ["class.co-creation-summary-block",] }]
12945
+ };
12946
+
12947
+ var CreationSummaryBlockModule = /** @class */ (function () {
12948
+ function CreationSummaryBlockModule() {
12949
+ }
12950
+ return CreationSummaryBlockModule;
12951
+ }());
12952
+ CreationSummaryBlockModule.decorators = [
12953
+ { type: i0.NgModule, args: [{
12954
+ imports: [
12955
+ ActivitySummaryBlockModule,
12956
+ corecomponents_v12.InputDatePickerModule,
12957
+ corecomponents_v12.InputTextModule,
12958
+ LocalizationModule,
12959
+ common.CommonModule,
12960
+ corecomponents_v12.ListOfValuesModule
12961
+ ],
12962
+ declarations: [
12963
+ CreationSummaryBlockComponent
12964
+ ],
12965
+ exports: [
12966
+ CreationSummaryBlockComponent
12967
+ ]
12968
+ },] }
12969
+ ];
12970
+
12971
+ var RelationType;
12972
+ (function (RelationType) {
12973
+ RelationType["Executive"] = "executive";
12974
+ RelationType["Reporter"] = "reporter";
12975
+ RelationType["Supervisor"] = "supervisor";
12976
+ })(RelationType || (RelationType = {}));
12977
+ var ExecutiveSummaryBlockComponent = /** @class */ (function (_super) {
12978
+ __extends(ExecutiveSummaryBlockComponent, _super);
12979
+ function ExecutiveSummaryBlockComponent(dictionaryService, dialogService, sharedService) {
12980
+ var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
12981
+ _this.dictionaryService = dictionaryService;
12982
+ _this.dialogService = dialogService;
12983
+ _this.sharedService = sharedService;
12984
+ _this.RelationType = RelationType;
12985
+ _this.Icon = exports["ɵbu"];
12986
+ _this._textSearchParams = new relationRequest.RelationRequest();
12987
+ _this.personnel = [];
12988
+ return _this;
12989
+ }
12990
+ ExecutiveSummaryBlockComponent.prototype.showClass = function () {
12991
+ return true;
12992
+ };
12993
+ ExecutiveSummaryBlockComponent.prototype.ngOnInit = function () {
12994
+ return __awaiter(this, void 0, void 0, function () {
12995
+ var _this = this;
12996
+ return __generator(this, function (_a) {
12997
+ this._textSearchParams.relationTypeList = [relationKind_enum.RelationKind.Personnel];
12998
+ this.sharedService.getRelationListObjects(this._textSearchParams).then(function (result) {
12999
+ _this.personnel = result;
13000
+ });
13001
+ return [2 /*return*/];
13002
+ });
13003
+ });
13004
+ };
13005
+ return ExecutiveSummaryBlockComponent;
13006
+ }(BaseActivitySummaryComponent));
13007
+ ExecutiveSummaryBlockComponent.decorators = [
13008
+ { type: i0.Component, args: [{
13009
+ selector: "co-executive-summary-block",
13010
+ template: "\n\n <co-activity-summary-block [editTemplate]=\"editTemplate\"\n [readonly]=\"readonly\"\n [icon]=\"Icon.Employee\"\n (saveClick)=\"handleSave($event)\"\n (cancelClick)=\"handleCancel($event)\"\n editTitle=\"PERSONS\" expandable noBorder>\n </co-activity-summary-block>\n <ng-template #editTemplate>\n <div fxLayout=\"column\">\n <co-list-of-values\n [(model)]=\"editActivity.task.executive\"\n [collection]=\"personnel\"\n [displayField]=\"'displayName'\"\n [label]=\"'EXECUTIVE' | localize\">\n </co-list-of-values>\n <co-list-of-values\n [(model)]=\"editActivity.task.reporter\"\n [collection]=\"personnel\"\n [displayField]=\"'displayName'\"\n [label]=\"'REPORTER' | localize\">\n </co-list-of-values>\n <co-list-of-values\n [(model)]=\"editActivity.task.supervisor\"\n [collection]=\"personnel\"\n [displayField]=\"'displayName'\"\n [label]=\"'SUPERVISOR' | localize\">\n </co-list-of-values>\n </div>\n </ng-template>\n ",
13011
+ providers: [{
13012
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
13013
+ useExisting: i0.forwardRef(function () { return ExecutiveSummaryBlockComponent; })
13014
+ }]
13015
+ },] }
13016
+ ];
13017
+ ExecutiveSummaryBlockComponent.ctorParameters = function () { return [
13018
+ { type: DictionaryService },
13019
+ { type: corecomponents_v12.CoreDialogService },
13020
+ { type: SharedService }
13021
+ ]; };
13022
+ ExecutiveSummaryBlockComponent.propDecorators = {
13023
+ showClass: [{ type: i0.HostBinding, args: ["class.co-executive-summary-block",] }]
13024
+ };
13025
+
13026
+ var ExecutiveSummaryBlockModule = /** @class */ (function () {
13027
+ function ExecutiveSummaryBlockModule() {
13028
+ }
13029
+ return ExecutiveSummaryBlockModule;
13030
+ }());
13031
+ ExecutiveSummaryBlockModule.decorators = [
13032
+ { type: i0.NgModule, args: [{
13033
+ imports: [
13034
+ LocalizationModule,
13035
+ corecomponents_v12.ListOfValuesModule,
13036
+ corecomponents_v12.InputDatePickerModule,
13037
+ ActivitySummaryBlockModule
13038
+ ],
13039
+ declarations: [
13040
+ ExecutiveSummaryBlockComponent
13041
+ ],
13042
+ exports: [
13043
+ ExecutiveSummaryBlockComponent
13044
+ ]
13045
+ },] }
13046
+ ];
13047
+
13048
+ var NotificationSummaryBlockComponent = /** @class */ (function (_super) {
13049
+ __extends(NotificationSummaryBlockComponent, _super);
13050
+ function NotificationSummaryBlockComponent(boFactory,
13051
+ //public activityService: ActivityService,
13052
+ dictionaryService, dialogService, sharedService) {
13053
+ var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
13054
+ _this.boFactory = boFactory;
13055
+ _this.dictionaryService = dictionaryService;
13056
+ _this.dialogService = dialogService;
13057
+ _this.sharedService = sharedService;
13058
+ _this.Icon = exports["ɵbu"];
13059
+ _this.listItems = [];
13060
+ return _this;
13061
+ }
13062
+ NotificationSummaryBlockComponent.prototype.showClass = function () {
13063
+ return true;
13064
+ };
13065
+ NotificationSummaryBlockComponent.prototype.ngOnInit = function () {
13066
+ return __awaiter(this, void 0, void 0, function () {
13067
+ var _a;
13068
+ return __generator(this, function (_b) {
13069
+ switch (_b.label) {
13070
+ case 0:
13071
+ if (!!isNill(this.editActivity.task.taskId)) return [3 /*break*/, 2];
13072
+ _a = this;
13073
+ return [4 /*yield*/, this.sharedService.getRoleEmailAddressesByWorkflowCategoryAndKey('TASK', (this.editActivity.task.taskId.toString()))];
13074
+ case 1:
13075
+ _a.listItems = _b.sent();
13076
+ _b.label = 2;
13077
+ case 2: return [2 /*return*/];
13078
+ }
13079
+ });
13080
+ });
13081
+ };
13082
+ NotificationSummaryBlockComponent.prototype.handleSendEmail = function (event) {
13083
+ this.handleSave(event);
13084
+ //this.activityService.sendTaskNotificationEmail(this.editActivity.task);
13085
+ };
13086
+ return NotificationSummaryBlockComponent;
13087
+ }(BaseActivitySummaryComponent));
13088
+ NotificationSummaryBlockComponent.decorators = [
13089
+ { type: i0.Component, args: [{
13090
+ selector: "co-notification-summary-block",
13091
+ template: "\n <co-activity-summary-block [readonly]=\"readonly\" [icon]=\"Icon.Notification\" editTitle=\"NOTIFICATIONS\"\n [editTemplate]=\"editTemplate\"\n [extraButtonsTemplate]=\"extraButtonsTemplate\"\n [showButtons]=\"true\"\n (saveClick)=\"handleSave($event)\" (cancelClick)=\"handleCancel($event)\" expandable noBorder>\n </co-activity-summary-block>\n <ng-template #extraButtonsTemplate>\n <co-button *ngIf=\"editActivity.task.emailAddresses.length > 0\" label=\"SEND_EMAIL\"\n (click)=\"handleSendEmail($event)\"></co-button>\n </ng-template>\n <ng-template #editTemplate>\n <div fxLayout=\"column\">\n <co-list-of-values [readonly]=\"readonly\" [multiselect]=\"true\"\n [collection]=\"listItems\" [displayField]=\"'role'\"\n [(model)]=\"editActivity.task.emailAddresses\">\n </co-list-of-values>\n </div>\n </ng-template>\n ",
13092
+ providers: [{
13093
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
13094
+ useExisting: i0.forwardRef(function () { return NotificationSummaryBlockComponent; })
13095
+ }]
13096
+ },] }
13097
+ ];
13098
+ NotificationSummaryBlockComponent.ctorParameters = function () { return [
13099
+ { type: businessObjectFactory.BusinessObjectFactory },
13100
+ { type: DictionaryService },
13101
+ { type: corecomponents_v12.CoreDialogService },
13102
+ { type: SharedService }
13103
+ ]; };
13104
+ NotificationSummaryBlockComponent.propDecorators = {
13105
+ summaryBlock: [{ type: i0.ViewChild, args: [ActivitySummaryBlockComponent, { static: true },] }],
13106
+ showClass: [{ type: i0.HostBinding, args: ["class.co-notification-summary-block",] }]
13107
+ };
13108
+
13109
+ var NotificationSummaryBlockModule = /** @class */ (function () {
13110
+ function NotificationSummaryBlockModule() {
13111
+ }
13112
+ return NotificationSummaryBlockModule;
13113
+ }());
13114
+ NotificationSummaryBlockModule.decorators = [
13115
+ { type: i0.NgModule, args: [{
13116
+ imports: [
13117
+ ActivitySummaryBlockModule,
13118
+ corecomponents_v12.ListOfValuesModule,
13119
+ corecomponents_v12.ButtonModule,
13120
+ common.CommonModule
13121
+ ],
13122
+ declarations: [
13123
+ NotificationSummaryBlockComponent
13124
+ ],
13125
+ exports: [
13126
+ NotificationSummaryBlockComponent
13127
+ ]
13128
+ },] }
13129
+ ];
13130
+
13131
+ var ModifyTaskFormModule = /** @class */ (function () {
13132
+ function ModifyTaskFormModule() {
13133
+ }
13134
+ return ModifyTaskFormModule;
13135
+ }());
13136
+ ModifyTaskFormModule.decorators = [
13137
+ { type: i0.NgModule, args: [{
13138
+ imports: [
13139
+ LocalizationModule,
13140
+ TaskDetailsModule,
13141
+ corecomponents_v12.InputCheckboxModule,
13142
+ ExecutiveSummaryBlockModule,
13143
+ StatusSummaryBlockModule,
13144
+ CreationSummaryBlockModule,
13145
+ NotificationSummaryBlockModule,
13146
+ ActivityListModule,
13147
+ SimpleTagsModule,
13148
+ corecomponents_v12.ButtonModule,
13149
+ common.CommonModule,
13150
+ SimpleTagsFormModule
13151
+ ],
13152
+ declarations: [
13153
+ ModifyTaskFormComponent
13154
+ ],
13155
+ exports: [
13156
+ ModifyTaskFormComponent
13157
+ ]
13158
+ },] }
13159
+ ];
13160
+
13161
+ var TaskModifyerModule = /** @class */ (function () {
13162
+ function TaskModifyerModule() {
13163
+ }
13164
+ return TaskModifyerModule;
13165
+ }());
13166
+ TaskModifyerModule.decorators = [
13167
+ { type: i0.NgModule, args: [{
13168
+ imports: [
13169
+ corecomponents_v12.FormModule,
13170
+ corecomponents_v12.CoDialogModule,
13171
+ LocalizationModule,
13172
+ common.CommonModule,
13173
+ corecomponents_v12.ButtonModule,
13174
+ ModifyTaskFormModule
13175
+ ],
13176
+ declarations: [
13177
+ TaskModifierComponent
13178
+ ],
13179
+ exports: [
13180
+ TaskModifierComponent
13181
+ ],
13182
+ providers: [
13183
+ businessObjectFactory.BusinessObjectFactory
13184
+ ]
13185
+ },] }
13186
+ ];
13187
+
13188
+ var ComponentActivityOverviewModule = /** @class */ (function () {
13189
+ function ComponentActivityOverviewModule() {
13190
+ }
13191
+ return ComponentActivityOverviewModule;
13192
+ }());
13193
+ ComponentActivityOverviewModule.decorators = [
13194
+ { type: i0.NgModule, args: [{
13195
+ imports: [
13196
+ corecomponents_v12.ButtonModule,
13197
+ common.CommonModule,
13198
+ LocalizationModule,
13199
+ corecomponents_v12.IconModule,
13200
+ TaskModifyerModule
13201
+ ],
13202
+ declarations: [
13203
+ ComponentActivityOverviewComponent
13204
+ ],
13205
+ exports: [
13206
+ ComponentActivityOverviewComponent
13207
+ ],
13208
+ },] }
13209
+ ];
13210
+
13211
+ var ActivityListHeaderComponent = /** @class */ (function () {
13212
+ function ActivityListHeaderComponent(iconService) {
13213
+ this.iconService = iconService;
13214
+ this.icons = exports["ɵbu"];
13215
+ this.activitySortType = activitySortType_enum.ActivitySortType;
13216
+ this.title = 'MY_WORK';
13217
+ this.searchTextChange = new i0.EventEmitter();
13218
+ this.periodFilterClicked = new i0.EventEmitter();
13219
+ this.showUsergroupActivitiesChange = new i0.EventEmitter();
13220
+ }
13221
+ ActivityListHeaderComponent.prototype.showClass = function () {
13222
+ return true;
13223
+ };
13224
+ ActivityListHeaderComponent.prototype.onToggleClicked = function (toggled) {
13225
+ this.showUsergroupActivitiesChange.emit(toggled);
13226
+ };
13227
+ return ActivityListHeaderComponent;
13228
+ }());
13229
+ ActivityListHeaderComponent.decorators = [
13230
+ { type: i0.Component, args: [{
13231
+ selector: "co-activity-list-header",
13232
+ template: "\n <div class=\"header-wrapper\">\n <div class=\"title\">\n <h2 [textContent]=\"title | localize\"></h2>\n </div>\n </div>\n <div class=\"sub-header\">\n <div class=\"second-column\">\n <div class=\"second-column-right\">\n <co-input-text class=\"input-search\" [placeholder]=\"'SEARCH_PLACEHOLDER' | localize\"\n [(model)]=\"searchText\"\n (modelChange)=\"searchTextChange.emit($event)\"></co-input-text>\n <co-period-filter class=\"period-filter\" (filterClicked)=\"periodFilterClicked.emit($event)\"></co-period-filter>\n <co-button isToggleButton class=\"transparent-rectangular-action user-button\" [(isToggled)]=\"showUsergroupActivities\" (onClick)=\"showUsergroupActivities = !showUsergroupActivities\"\n [iconData]=\"iconService.getIcon(icons.Employee)\" [title]=\"'SHOW_ACTIVITIES_FOR_GROUP' | localize\"\n (isToggledChange)=\"onToggleClicked($event)\"></co-button>\n <co-workflow-notification-toggle *ngIf=\"table && key\"\n [table]=\"table\"\n [key]=\"key\"\n [setHasPausedNotificationsForWorkflowProcessOperation]=\"setHasPausedNotificationsForWorkflowProcessOperation\"\n ></co-workflow-notification-toggle>\n </div>\n </div>\n </div>\n "
13233
+ },] }
13234
+ ];
13235
+ ActivityListHeaderComponent.ctorParameters = function () { return [
13236
+ { type: IconCacheService }
13237
+ ]; };
13238
+ ActivityListHeaderComponent.propDecorators = {
13239
+ title: [{ type: i0.Input }],
13240
+ searchText: [{ type: i0.Input }],
13241
+ showUsergroupActivities: [{ type: i0.Input }],
13242
+ table: [{ type: i0.Input }],
13243
+ key: [{ type: i0.Input }],
13244
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
13245
+ searchTextChange: [{ type: i0.Output }],
13246
+ periodFilterClicked: [{ type: i0.Output }],
13247
+ showUsergroupActivitiesChange: [{ type: i0.Output }],
13248
+ showClass: [{ type: i0.HostBinding, args: ["class.co-activity-list-header",] }]
13249
+ };
13250
+
13251
+ var WorkflowNotificationTogglePopupComponent = /** @class */ (function () {
13252
+ function WorkflowNotificationTogglePopupComponent(element, iconService) {
13253
+ this.element = element;
13254
+ this.iconService = iconService;
13255
+ this.icons = exports["ɵbu"];
13256
+ this.workflowProcesses = [];
13257
+ this.closePopupClicked = new i0.EventEmitter();
13258
+ this.workflowProcessClicked = new i0.EventEmitter();
13259
+ }
13260
+ WorkflowNotificationTogglePopupComponent.prototype.ngOnDestroy = function () {
13261
+ this.element = undefined;
13262
+ };
13263
+ return WorkflowNotificationTogglePopupComponent;
13264
+ }());
13265
+ WorkflowNotificationTogglePopupComponent.decorators = [
13266
+ { type: i0.Component, args: [{
13267
+ selector: "co-workflow-notification-toggle-popup",
13268
+ template: "\n <div class=\"workflow-list-wrapper\" [overlay]=\"parentForOverlay\"\n [alignWith]=\"element\"\n [alignTopOffsetPx]=\"35\"\n [class.showing]=\"true\"\n [enableAlign]=\"true\"\n [clickOutside]=\"true\"\n (clickOutside)=\"closePopupClicked.emit()\"\n keepInView noWidthAlign alignRight>\n <div class=\"workflow-row\" *ngFor=\"let workflow of workflowProcesses\"\n (click)=\"workflowProcessClicked.emit(workflow)\">\n <div class=\"icon-wrapper\">\n <co-icon class=\"workflow-icon\"\n [iconData]=\"iconService.getIcon(workflow.hasPausedNotifications ? icons.BellSlashRegular : icons.BellRegular)\"\n [class.small-icon]=\"!workflow.hasPausedNotifications\"></co-icon>\n </div>\n <div class=\"workflow-text\">\n <span class=\"workflow-title\" [textContent]=\"workflow.workflowName\"></span>\n </div>\n </div>\n </div>"
13269
+ },] }
13270
+ ];
13271
+ WorkflowNotificationTogglePopupComponent.ctorParameters = function () { return [
13272
+ { type: i0.ElementRef },
13273
+ { type: IconCacheService }
13274
+ ]; };
13275
+ WorkflowNotificationTogglePopupComponent.propDecorators = {
13276
+ workflowProcesses: [{ type: i0.Input }],
13277
+ parentForOverlay: [{ type: i0.Input }],
13278
+ closePopupClicked: [{ type: i0.Output }],
13279
+ workflowProcessClicked: [{ type: i0.Output }]
13280
+ };
13281
+
13282
+ var WorkflowNotificationToggleComponent = /** @class */ (function () {
13283
+ function WorkflowNotificationToggleComponent(element, iconService, sharedService, _overlayService) {
13284
+ this.element = element;
13285
+ this.iconService = iconService;
13286
+ this.sharedService = sharedService;
13287
+ this._overlayService = _overlayService;
13288
+ this.icons = exports["ɵbu"];
13289
+ this.workflowProcesses = [];
13290
+ this.showPopup = false;
13291
+ }
13292
+ WorkflowNotificationToggleComponent.prototype.showClass = function () {
13293
+ return true;
13294
+ };
13295
+ WorkflowNotificationToggleComponent.prototype.ngOnInit = function () {
13296
+ this._loadWorkflowProcesses();
13297
+ };
13298
+ WorkflowNotificationToggleComponent.prototype._loadWorkflowProcesses = function () {
13299
+ return __awaiter(this, void 0, void 0, function () {
13300
+ var _a;
13301
+ return __generator(this, function (_b) {
13302
+ switch (_b.label) {
13303
+ case 0:
13304
+ _a = this;
13305
+ return [4 /*yield*/, this.sharedService.getActiveProcessesByTableAndKey(tableName_enum.TableName[this.table], this.key)];
13306
+ case 1:
13307
+ _a.workflowProcesses = _b.sent();
13308
+ return [2 /*return*/];
13309
+ }
13310
+ });
13311
+ });
13312
+ };
13313
+ WorkflowNotificationToggleComponent.prototype.buttonClicked = function () {
13314
+ if (!this.showPopup) {
13315
+ this.openPopup();
13316
+ }
13317
+ else {
13318
+ this.closePopup();
13319
+ }
13320
+ };
13321
+ WorkflowNotificationToggleComponent.prototype.openPopup = function () {
13322
+ var _this = this;
13323
+ this.showPopup = true;
13324
+ this._workflowPopupRef = this._overlayService.createComponent(WorkflowNotificationTogglePopupComponent, { parentForOverlay: this.element, workflowProcesses: this.workflowProcesses }, {
13325
+ closePopupClicked: function () { return _this.closePopup(); },
13326
+ workflowProcessClicked: function (WorkflowProcess) { return _this.handleWorkflowToggle(WorkflowProcess); }
13327
+ });
13328
+ };
13329
+ WorkflowNotificationToggleComponent.prototype.closePopup = function () {
13330
+ this.showPopup = false;
13331
+ this._overlayService.removeComponent(this._workflowPopupRef);
13332
+ };
13333
+ WorkflowNotificationToggleComponent.prototype.handleWorkflowToggle = function (workflow) {
13334
+ return __awaiter(this, void 0, void 0, function () {
13335
+ var valResult;
13336
+ return __generator(this, function (_a) {
13337
+ switch (_a.label) {
13338
+ case 0: return [4 /*yield*/, this.setHasPausedNotificationsForWorkflowProcessOperation(workflow.workflowProcessId, !workflow.hasPausedNotifications, null)];
13339
+ case 1:
13340
+ valResult = _a.sent();
13341
+ if (valResult && valResult.success) {
13342
+ workflow.hasPausedNotifications = !workflow.hasPausedNotifications;
13343
+ }
13344
+ return [2 /*return*/];
13345
+ }
13346
+ });
13347
+ });
13348
+ };
13349
+ return WorkflowNotificationToggleComponent;
13350
+ }());
13351
+ WorkflowNotificationToggleComponent.decorators = [
13352
+ { type: i0.Component, args: [{
13353
+ selector: "co-workflow-notification-toggle",
13354
+ template: "\n <co-button isToggleButton class=\"transparent-rectangular-action user-button\" [isToggled]=\"showPopup\"\n (click)=\"buttonClicked()\"\n [iconData]=\"iconService.getIcon(icons.BellRegular)\"\n [title]=\"'SHOW_WORKFLOW_NOTIFICATION_SETTINGS' | localize\"></co-button>\n "
13355
+ },] }
13356
+ ];
13357
+ WorkflowNotificationToggleComponent.ctorParameters = function () { return [
13358
+ { type: i0.ElementRef },
13359
+ { type: IconCacheService },
13360
+ { type: SharedService },
13361
+ { type: corecomponents_v12.OverlayService }
13362
+ ]; };
13363
+ WorkflowNotificationToggleComponent.propDecorators = {
13364
+ table: [{ type: i0.Input }],
13365
+ key: [{ type: i0.Input }],
13366
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
13367
+ showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-notification-toggle",] }]
13368
+ };
13369
+
13370
+ // App-wide service to place and remove template refs into the global absolute overlay outlet component.
13371
+ var AppAbsoluteOverlayOutletService = /** @class */ (function () {
13372
+ function AppAbsoluteOverlayOutletService() {
13373
+ this.templateCreateRequest = new rxjs.Subject();
13374
+ this.templateDestroyRequest = new rxjs.Subject();
13375
+ }
13376
+ AppAbsoluteOverlayOutletService.prototype.placeTemplateIntoOverlay = function (template) {
13377
+ this.templateCreateRequest.next(template);
13378
+ };
13379
+ AppAbsoluteOverlayOutletService.prototype.removeTemplateFromOverlay = function (template) {
13380
+ this.templateDestroyRequest.next(template);
13381
+ };
13382
+ return AppAbsoluteOverlayOutletService;
13383
+ }());
13384
+ AppAbsoluteOverlayOutletService.decorators = [
13385
+ { type: i0.Injectable }
13386
+ ];
13387
+ AppAbsoluteOverlayOutletService.ctorParameters = function () { return []; };
13388
+
13389
+ // Directive applicable to <ng-template>'s of components. Places template content in the app's absolute overlay outlet.
13390
+ var AbsoluteOverlayTemplateDirective = /** @class */ (function () {
13391
+ function AbsoluteOverlayTemplateDirective(_outletService) {
13392
+ this._outletService = _outletService;
13393
+ }
13394
+ // spawn host template in absolute overlay outlet
13395
+ AbsoluteOverlayTemplateDirective.prototype.ngOnInit = function () {
13396
+ this._outletService.placeTemplateIntoOverlay(this.absoluteOverlayTemplate);
13397
+ };
13398
+ // de-spawn host template from absolute overlay outlet
13399
+ AbsoluteOverlayTemplateDirective.prototype.ngOnDestroy = function () {
13400
+ this._outletService.removeTemplateFromOverlay(this.absoluteOverlayTemplate);
13401
+ this.absoluteOverlayTemplate = undefined;
13402
+ };
13403
+ return AbsoluteOverlayTemplateDirective;
13404
+ }());
13405
+ AbsoluteOverlayTemplateDirective.decorators = [
13406
+ { type: i0.Directive, args: [{
13407
+ selector: "[absoluteOverlayTemplate]"
13408
+ },] }
13409
+ ];
13410
+ AbsoluteOverlayTemplateDirective.ctorParameters = function () { return [
13411
+ { type: AppAbsoluteOverlayOutletService }
13412
+ ]; };
13413
+ AbsoluteOverlayTemplateDirective.propDecorators = {
13414
+ absoluteOverlayTemplate: [{ type: i0.Input }]
13415
+ };
13416
+
13417
+ // @dynamic
13418
+ var EventUtils = /** @class */ (function () {
13419
+ function EventUtils() {
13420
+ }
13421
+ Object.defineProperty(EventUtils, "passiveSupported", {
13422
+ get: function () {
13423
+ if (isNill(EventUtils._passiveSupported)) {
13424
+ EventUtils._CheckPassiveSupported();
13425
+ }
13426
+ return EventUtils._passiveSupported;
13427
+ },
13428
+ enumerable: false,
13429
+ configurable: true
13430
+ });
13431
+ Object.defineProperty(EventUtils, "passiveBubble", {
13432
+ get: function () {
13433
+ if (isNill(EventUtils._passiveBubble)) {
13434
+ EventUtils._passiveBubble = EventUtils.passiveSupported ? { passive: true, capture: false } : false;
13435
+ }
13436
+ return EventUtils._passiveBubble;
13437
+ },
13438
+ enumerable: false,
13439
+ configurable: true
13440
+ });
13441
+ Object.defineProperty(EventUtils, "passiveCapture", {
13442
+ get: function () {
13443
+ if (isNill(EventUtils._passiveCapture)) {
13444
+ EventUtils._passiveCapture = EventUtils.passiveSupported ? { passive: true, capture: true } : true;
13445
+ }
13446
+ return EventUtils._passiveCapture;
13447
+ },
13448
+ enumerable: false,
13449
+ configurable: true
13450
+ });
13451
+ EventUtils.GetMouseEventOrTouch = function (originalEvent) {
13452
+ return originalEvent instanceof MouseEvent ? originalEvent : originalEvent.touches[0];
13453
+ };
13454
+ EventUtils.StopEvent = function (event) {
13455
+ if (!event) {
13456
+ return;
13457
+ }
13458
+ event.preventDefault();
13459
+ event.stopPropagation();
13460
+ event.stopImmediatePropagation();
13461
+ };
13462
+ EventUtils.KillEvent = function (event) {
13463
+ this.StopEvent(event);
13464
+ if (event) {
13465
+ event.stopPropagation();
13466
+ }
13467
+ };
13468
+ EventUtils._CheckPassiveSupported = function () {
13469
+ var passiveSupported = false;
13470
+ try {
13471
+ var options = Object.defineProperty({}, "passive", {
13472
+ get: function () {
13473
+ passiveSupported = true;
13474
+ }
13475
+ });
13476
+ window.addEventListener("test", null, options);
13477
+ // Q; what is this? do we have to window.removeEventListener it?
13478
+ // A: no, because it will certainly fail, but before it does it might have set the passiveSupported variable :)
13479
+ }
13480
+ catch (e) {
13481
+ }
13482
+ this._passiveSupported = passiveSupported;
13483
+ };
13484
+ return EventUtils;
13485
+ }());
13486
+ EventUtils._passiveSupported = null;
13487
+ EventUtils._passiveCapture = null;
13488
+ EventUtils._passiveBubble = null;
13489
+
13490
+ var BrowserUtils = /** @class */ (function () {
13491
+ function BrowserUtils() {
13492
+ }
13493
+ BrowserUtils.ScrollToTop = function (nativeElement, milliSeconds) {
13494
+ if (milliSeconds === void 0) { milliSeconds = 200; }
13495
+ return BrowserUtils._ScrollTo("scrollTop", nativeElement, milliSeconds, 0);
13496
+ };
13497
+ BrowserUtils.DownloadFile = function (encodedUri, fileType) {
13498
+ var link = document.createElement("a");
13499
+ var date = new Date().toDateString();
13500
+ link.href = encodedUri;
13501
+ link.target = "_blank";
13502
+ link.download = "export_" + date + fileType;
13503
+ document.body.appendChild(link);
13504
+ link.click();
13505
+ document.body.removeChild(link);
13506
+ };
13507
+ BrowserUtils.CopyToClipboard = function (data) {
13508
+ var textArea = document.createElement("TEXTAREA");
13509
+ var textNode = document.createTextNode(data);
13510
+ textArea.appendChild(textNode);
13511
+ document.body.appendChild(textArea); // Required for FF
13512
+ textArea.select();
13513
+ document.execCommand("copy");
13514
+ document.body.removeChild(textArea);
13515
+ };
13516
+ BrowserUtils.TabFocusNextElement = function () {
13517
+ var nextTabStop = BrowserUtils._FindNextTabStop(document.activeElement);
13518
+ if (nextTabStop) {
13519
+ nextTabStop.focus();
13520
+ }
13521
+ };
13522
+ BrowserUtils.AreDimensionsInView = function (dimensions, view) {
13523
+ var vp = BrowserUtils.GetDimensions(view);
13524
+ return dimensions.top >= vp.top && dimensions.left >= vp.left && dimensions.bottom <= vp.bottom && dimensions.right <= vp.right;
13525
+ };
13526
+ BrowserUtils.HorizontalFitInView = function (dimensions, view) {
13527
+ var vp = BrowserUtils.GetDimensions(view);
13528
+ return dimensions.left >= vp.left && dimensions.right <= vp.right;
13529
+ };
13530
+ BrowserUtils.VerticalFitInView = function (dimensions, view) {
13531
+ var vp = BrowserUtils.GetDimensions(view);
13532
+ return dimensions.top >= vp.top && dimensions.bottom <= vp.bottom;
13533
+ };
13534
+ BrowserUtils.GetViewport = function () {
13535
+ var viewPortWidth;
13536
+ var viewPortHeight;
13537
+ // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
13538
+ if (typeof window.innerWidth !== "undefined") {
13539
+ viewPortWidth = window.innerWidth;
13540
+ viewPortHeight = window.innerHeight;
13541
+ }
13542
+ else if (typeof document.documentElement !== "undefined" &&
13543
+ typeof document.documentElement.clientWidth !== "undefined" &&
13544
+ document.documentElement.clientWidth !== 0) {
13545
+ viewPortWidth = document.documentElement.clientWidth;
13546
+ viewPortHeight = document.documentElement.clientHeight;
13547
+ }
13548
+ else {
13549
+ viewPortWidth = document.getElementsByTagName("body")[0].clientWidth;
13550
+ viewPortHeight = document.getElementsByTagName("body")[0].clientHeight;
13551
+ }
13552
+ return { left: 0, top: 0, right: viewPortWidth, bottom: viewPortHeight };
13553
+ };
13554
+ BrowserUtils.GetDimensions = function (view) {
13555
+ if (!view) {
13556
+ return this.GetViewport();
13557
+ }
13558
+ else {
13559
+ var elem = view instanceof HTMLElement ? view : view.nativeElement;
13560
+ var cr = elem.getBoundingClientRect();
13561
+ return { left: cr.left, top: cr.top, right: cr.right, bottom: cr.bottom };
13562
+ }
13563
+ };
13564
+ // Recursive.
13565
+ BrowserUtils._ScrollTo = function (elementScrollProp, element, milliSeconds, toScrollEnd) {
13566
+ if (!element || milliSeconds <= 0) {
13567
+ return;
13568
+ }
13569
+ var difference = toScrollEnd - element[elementScrollProp];
13570
+ var scrollPerTick = difference / milliSeconds * 10;
13571
+ setTimeout(function () {
13572
+ element[elementScrollProp] = element[elementScrollProp] + scrollPerTick;
13573
+ if (element[elementScrollProp] === toScrollEnd) {
13574
+ return;
13575
+ }
13576
+ BrowserUtils._ScrollTo(elementScrollProp, element, milliSeconds - 10, toScrollEnd);
13577
+ }, 10);
13578
+ };
13579
+ BrowserUtils._FindNextTabStop = function (element) {
13580
+ var tabStopElements = document.querySelectorAll("a[href], area[href], input:not(.hidden):not(.disabled):not(.readonly):not(.read-only), select:not(.hidden):not(.disabled):not(.readonly):not(.read-only), textarea:not(.hidden):not(.disabled):not(.readonly):not(.read-only), button:not(.hidden):not(.disabled):not(.readonly):not(.read-only), iframe, object, embed, *[tabindex]:not(.hidden):not(.disabled):not(.readonly):not(.read-only), *[contenteditable]:not(.hidden):not(.disabled):not(.readonly):not(.read-only)");
13581
+ var actualStopEls = [];
13582
+ for (var i = 0, len = tabStopElements.length; i < len; i++) {
13583
+ var tabEl = tabStopElements[i];
13584
+ if (tabEl.tabIndex >= 0) {
13585
+ actualStopEls.push(tabEl);
13586
+ }
13587
+ }
13588
+ var elIdx = actualStopEls.indexOf(element);
13589
+ return actualStopEls[elIdx + 1] || undefined;
13590
+ };
13591
+ return BrowserUtils;
13592
+ }());
13593
+
13594
+ var AlignWithDirective = /** @class */ (function () {
13595
+ function AlignWithDirective(_ngZone, _elementRef) {
13596
+ var _this = this;
13597
+ this._ngZone = _ngZone;
13598
+ this._elementRef = _elementRef;
13599
+ this.keepInView = true;
13600
+ this.keepInViewHorizontal = true;
13601
+ this.keepInViewVertical = true;
13602
+ this.ajustableHeight = false;
13603
+ this.alignTopOffsetPx = 0;
13604
+ this.alignLeftOffsetPx = 0;
13605
+ this.fixed = "fixed";
13606
+ this.scroll = function () {
13607
+ _this._alignWithZone();
13608
+ };
13609
+ this.resize = function () {
13610
+ _this._alignWithZone();
13611
+ };
13612
+ this.handleKeyUp = function () {
13613
+ _this._alignWithZone();
13614
+ };
13615
+ }
13616
+ Object.defineProperty(AlignWithDirective.prototype, "alignWith", {
13617
+ // a native OR custom element
13618
+ set: function (alignWith) {
13619
+ if (alignWith) {
13620
+ // enables simple #templateVars passing to [alignWith] for native elements like <div>; Angular passes these as HTMLElement's
13621
+ if (alignWith instanceof HTMLElement) {
13622
+ this._hostNativeEl = alignWith;
13623
+ }
13624
+ else {
13625
+ this._hostNativeEl = alignWith.nativeElement;
13626
+ }
13627
+ }
13628
+ },
13629
+ enumerable: false,
13630
+ configurable: true
13631
+ });
13632
+ Object.defineProperty(AlignWithDirective.prototype, "_shouldDoAlign", {
13633
+ get: function () {
13634
+ return this._hostNativeEl && this.enableAlign;
13635
+ },
13636
+ enumerable: false,
13637
+ configurable: true
13638
+ });
13639
+ AlignWithDirective.prototype.ngAfterViewInit = function () {
13640
+ var _this = this;
13641
+ this.align();
13642
+ // align again after hosts 'animation finished'
13643
+ setTimeout(function () {
13644
+ _this.align();
13645
+ }, 200);
13646
+ };
13647
+ AlignWithDirective.prototype.ngOnChanges = function () {
13648
+ this.align();
13649
+ };
13650
+ AlignWithDirective.prototype.ngAfterContentChecked = function () {
13651
+ this.align();
13652
+ };
13653
+ AlignWithDirective.prototype.ngOnDestroy = function () {
13654
+ window.removeEventListener("scroll", this.scroll, EventUtils.passiveCapture);
13655
+ window.removeEventListener("resize", this.resize, EventUtils.passiveCapture);
13656
+ window.removeEventListener("keyup", this.handleKeyUp, EventUtils.passiveCapture);
13657
+ this._elementRef = undefined;
13658
+ this._hostNativeEl = undefined;
13659
+ this.viewElement = undefined;
13660
+ };
13661
+ AlignWithDirective.prototype.ngOnInit = function () {
13662
+ var _this = this;
13663
+ this._ngZone.runOutsideAngular(function () {
13664
+ window.addEventListener("scroll", _this.scroll, EventUtils.passiveCapture);
13665
+ window.addEventListener("resize", _this.resize, EventUtils.passiveCapture);
13666
+ window.addEventListener("keyup", _this.handleKeyUp, EventUtils.passiveCapture);
13667
+ });
13668
+ };
13669
+ AlignWithDirective.prototype._getDimensions = function () {
13670
+ return {
13671
+ top: this.top,
13672
+ right: this.left + this._elementRef.nativeElement.clientWidth,
13673
+ bottom: this.top + this._elementRef.nativeElement.clientHeight,
13674
+ left: this.left
13675
+ };
13676
+ };
13677
+ AlignWithDirective.prototype.align = function () {
13678
+ if (this._shouldDoAlign) {
13679
+ var rect = this._hostNativeEl.getBoundingClientRect();
13680
+ this.left = Math.max(0, rect.left + this.alignLeftOffsetPx);
13681
+ this.top = rect.top + this.alignTopOffsetPx;
13682
+ if (this.alignRight) {
13683
+ this.left = rect.right - this._elementRef.nativeElement.clientWidth;
13684
+ }
13685
+ if (!this.noWidthAlign) {
13686
+ this.width = rect.width;
13687
+ }
13688
+ var dimensions = this._getDimensions();
13689
+ if (this.keepInView && !BrowserUtils.AreDimensionsInView(dimensions, this.viewElement)) {
13690
+ var viewElemDimensions = BrowserUtils.GetDimensions(this.viewElement);
13691
+ if (!BrowserUtils.HorizontalFitInView(dimensions, this.viewElement) && this.keepInViewHorizontal) {
13692
+ this.left = Math.max(0, viewElemDimensions.right - this._elementRef.nativeElement.clientWidth);
13693
+ dimensions = this._getDimensions();
13694
+ }
13695
+ if (!BrowserUtils.VerticalFitInView(dimensions, this.viewElement) && this.keepInViewVertical) {
13696
+ // Prevent this from going negative (which can happen with tall popups on small screens) and starting offscreen.
13697
+ this.top = Math.max(0, rect.top - this._elementRef.nativeElement.clientHeight);
13698
+ dimensions = this._getDimensions();
13699
+ }
13700
+ // Prevent running off the _bottom_ of the screen
13701
+ var overrun = dimensions.bottom - window.innerHeight;
13702
+ if (overrun > 0) {
13703
+ this.top = Math.max(0, this.top - overrun);
13704
+ dimensions = this._getDimensions();
13705
+ }
13706
+ if (this.ajustableHeight) {
13707
+ if (dimensions.bottom >= viewElemDimensions.bottom) {
13708
+ this.height = viewElemDimensions.bottom - this.top;
13709
+ }
13710
+ else {
13711
+ this.height = undefined;
13712
+ }
13713
+ }
13714
+ }
13715
+ }
13716
+ };
13717
+ AlignWithDirective.prototype._alignWithZone = function () {
13718
+ var _this = this;
13719
+ if (this._shouldDoAlign) {
13720
+ this._ngZone.run(function () {
13721
+ _this.align();
13722
+ });
13723
+ }
13724
+ };
13725
+ return AlignWithDirective;
13726
+ }());
13727
+ AlignWithDirective.decorators = [
13728
+ { type: i0.Directive, args: [{
13729
+ selector: "[alignWith]"
13730
+ },] }
13731
+ ];
13732
+ AlignWithDirective.ctorParameters = function () { return [
13733
+ { type: i0.NgZone },
13734
+ { type: i0.ElementRef }
13735
+ ]; };
13736
+ AlignWithDirective.propDecorators = {
13737
+ alignWith: [{ type: i0.Input }],
13738
+ enableAlign: [{ type: i0.Input }],
13739
+ keepInView: [{ type: i0.Input }],
13740
+ keepInViewHorizontal: [{ type: i0.Input }],
13741
+ keepInViewVertical: [{ type: i0.Input }],
13742
+ alignRight: [{ type: i0.Input }],
13743
+ noWidthAlign: [{ type: i0.Input }],
13744
+ ajustableHeight: [{ type: i0.Input }],
13745
+ alignTopOffsetPx: [{ type: i0.Input }],
13746
+ alignLeftOffsetPx: [{ type: i0.Input }],
13747
+ viewElement: [{ type: i0.Input }],
13748
+ fixed: [{ type: i0.HostBinding, args: ["style.position",] }],
13749
+ left: [{ type: i0.HostBinding, args: ["style.left.px",] }],
13750
+ top: [{ type: i0.HostBinding, args: ["style.top.px",] }],
13751
+ height: [{ type: i0.HostBinding, args: ["style.max-height.px",] }],
13752
+ width: [{ type: i0.HostBinding, args: ["style.width.px",] }]
13753
+ };
13754
+ __decorate([
13755
+ InputBoolean()
13756
+ ], AlignWithDirective.prototype, "enableAlign", void 0);
13757
+ __decorate([
13758
+ InputBoolean()
13759
+ ], AlignWithDirective.prototype, "keepInView", void 0);
13760
+ __decorate([
13761
+ InputBoolean()
13762
+ ], AlignWithDirective.prototype, "keepInViewHorizontal", void 0);
13763
+ __decorate([
13764
+ InputBoolean()
13765
+ ], AlignWithDirective.prototype, "keepInViewVertical", void 0);
13766
+ __decorate([
13767
+ InputBoolean()
13768
+ ], AlignWithDirective.prototype, "alignRight", void 0);
13769
+ __decorate([
13770
+ InputBoolean()
13771
+ ], AlignWithDirective.prototype, "noWidthAlign", void 0);
13772
+ __decorate([
13773
+ InputBoolean()
13774
+ ], AlignWithDirective.prototype, "ajustableHeight", void 0);
13775
+
13776
+ var ClickOutsideDirective = /** @class */ (function () {
13777
+ function ClickOutsideDirective(elementRef) {
13778
+ this.elementRef = elementRef;
13779
+ this.outsideClick = new i0.EventEmitter();
13780
+ }
13781
+ ClickOutsideDirective.prototype.onClick = function (event) {
13782
+ if (!this.elementRef.nativeElement.contains(event.target)) {
13783
+ this.outsideClick.emit(event);
13784
+ }
13785
+ };
13786
+ return ClickOutsideDirective;
13787
+ }());
13788
+ ClickOutsideDirective.decorators = [
13789
+ { type: i0.Directive, args: [{
13790
+ selector: '[outsideClick]',
13791
+ },] }
13792
+ ];
13793
+ ClickOutsideDirective.ctorParameters = function () { return [
13794
+ { type: i0.ElementRef }
13795
+ ]; };
13796
+ ClickOutsideDirective.propDecorators = {
13797
+ outsideClick: [{ type: i0.Output }],
13798
+ onClick: [{ type: i0.HostListener, args: ['document:mousedown', ['$event'],] }]
13799
+ };
13800
+
13801
+ var DirectivesModule = /** @class */ (function () {
13802
+ function DirectivesModule() {
13803
+ }
13804
+ return DirectivesModule;
13805
+ }());
13806
+ DirectivesModule.decorators = [
13807
+ { type: i0.NgModule, args: [{
13808
+ imports: [],
13809
+ declarations: [
13810
+ AbsoluteOverlayTemplateDirective,
13811
+ AlignWithDirective,
13812
+ ClickOutsideDirective
13813
+ ],
13814
+ exports: [
13815
+ AbsoluteOverlayTemplateDirective,
13816
+ AlignWithDirective,
13817
+ ClickOutsideDirective
13818
+ ]
13819
+ },] }
13820
+ ];
13821
+
13822
+ var WorkflowNotificationToggleModule = /** @class */ (function () {
13823
+ function WorkflowNotificationToggleModule() {
13824
+ }
13825
+ return WorkflowNotificationToggleModule;
13826
+ }());
13827
+ WorkflowNotificationToggleModule.decorators = [
13828
+ { type: i0.NgModule, args: [{
13829
+ imports: [
13830
+ corecomponents_v12.ButtonModule,
13831
+ corecomponents_v12.ClickoutsideModule,
13832
+ LocalizationModule,
13833
+ corecomponents_v12.IconModule,
13834
+ DirectivesModule,
13835
+ common.CommonModule,
13836
+ corecomponents_v12.OverlayModule
13837
+ ],
13838
+ declarations: [
13839
+ WorkflowNotificationToggleComponent,
13840
+ WorkflowNotificationTogglePopupComponent
13841
+ ],
13842
+ exports: [
13843
+ WorkflowNotificationToggleComponent,
13844
+ WorkflowNotificationTogglePopupComponent
13845
+ ],
13846
+ providers: [
13847
+ corecomponents_v12.OverlayService
13848
+ ]
13849
+ },] }
13850
+ ];
13851
+
13852
+ var PeriodFilterPopupComponent = /** @class */ (function () {
13853
+ function PeriodFilterPopupComponent(element) {
13854
+ this.element = element;
13855
+ this.possibleFilters = [];
13856
+ this.closePopup = new i0.EventEmitter();
13857
+ this.filterClicked = new i0.EventEmitter();
13858
+ }
13859
+ PeriodFilterPopupComponent.prototype.showClass = function () {
13860
+ return true;
13861
+ };
13862
+ PeriodFilterPopupComponent.prototype.ngOnDestroy = function () {
13863
+ this.element = undefined;
13864
+ };
13865
+ return PeriodFilterPopupComponent;
13866
+ }());
13867
+ PeriodFilterPopupComponent.decorators = [
13868
+ { type: i0.Component, args: [{
13869
+ selector: "co-period-filter-popup",
13870
+ template: "\n <div class=\"dropdown\" id=\"period_filter_dropdown_template\" [overlay]=\"parentForOverlay\"\n @showFilterItems\n [alignWith]=\"element\"\n [alignTopOffsetPx]=\"40\"\n [class.showing]=\"true\"\n [enableAlign]=\"true\"\n [clickOutside]=\"true\"\n (clickOutside)=\"closePopup.emit()\"\n keepInView noWidthAlign alignRight>\n <div class=\"label\" [textContent]=\"'PERIOD_SELECTION' | localize\"></div>\n <div class=\"filter-item\" *ngFor=\"let filter of possibleFilters\" (click)=\"filterClicked.emit(filter)\">\n <span class=\"item\" [textContent]=\"filter | localize\"></span>\n </div>\n </div>",
13871
+ encapsulation: i0.ViewEncapsulation.None,
13872
+ animations: [
13873
+ animations.trigger("showFilterItems", [
13874
+ animations.state("void", animations.style({ "height": "0" })),
13875
+ animations.state("*", animations.style({ "height": "*" })),
13876
+ animations.transition("void <=> *", animations.animate(200)) //NOSONAR
13877
+ ])
13878
+ ]
13879
+ },] }
13880
+ ];
13881
+ PeriodFilterPopupComponent.ctorParameters = function () { return [
13882
+ { type: i0.ElementRef }
13883
+ ]; };
13884
+ PeriodFilterPopupComponent.propDecorators = {
13885
+ showClass: [{ type: i0.HostBinding, args: ["class.co-period-filter-popup",] }],
13886
+ possibleFilters: [{ type: i0.Input }],
13887
+ parentForOverlay: [{ type: i0.Input }],
13888
+ closePopup: [{ type: i0.Output }],
13889
+ filterClicked: [{ type: i0.Output }]
13890
+ };
13891
+
13892
+ var PeriodFilterComponent = /** @class */ (function () {
13893
+ function PeriodFilterComponent(element, iconService, _overlayService) {
13894
+ this.element = element;
13895
+ this.iconService = iconService;
13896
+ this._overlayService = _overlayService;
13897
+ this.icon = exports["ɵbu"];
13898
+ this.possibleFilters = [
13899
+ period_enum.Period.All,
13900
+ period_enum.Period.Today,
13901
+ period_enum.Period.ThisWeek,
13902
+ period_enum.Period.ThisMonth,
13903
+ period_enum.Period.NextThreeMonths
13904
+ ];
13905
+ this.showPopup = false;
13906
+ this.filterClicked = new i0.EventEmitter();
13907
+ this.currentFilter = this.possibleFilters[0];
13908
+ }
13909
+ PeriodFilterComponent.prototype.showClass = function () {
13910
+ return true;
13911
+ };
13912
+ PeriodFilterComponent.prototype.handleClick = function () {
13913
+ this.showFilterItems();
13914
+ };
13915
+ PeriodFilterComponent.prototype.ngOnDestroy = function () {
13916
+ this.element = undefined;
13917
+ };
13918
+ PeriodFilterComponent.prototype.showFilterItems = function () {
13919
+ var _this = this;
13920
+ this.showPopup = true;
13921
+ this._periodPopupRef = this._overlayService.createComponent(PeriodFilterPopupComponent, { parentForOverlay: this.element, possibleFilters: this.possibleFilters }, {
13922
+ closePopup: function () { return _this.closePopup(); },
13923
+ filterClicked: function (string) { return _this.onFilterClick(string); },
13924
+ });
13925
+ };
13926
+ PeriodFilterComponent.prototype.closePopup = function () {
13927
+ this.showPopup = false;
13928
+ this._overlayService.removeComponent(this._periodPopupRef);
13929
+ };
13930
+ PeriodFilterComponent.prototype.onFilterClick = function (filter) {
13931
+ this.currentFilter = filter;
13932
+ this._emitFilterClicked();
13933
+ this.closePopup();
13934
+ };
13935
+ PeriodFilterComponent.prototype._emitFilterClicked = function () {
13936
+ var from, to;
13937
+ switch (this.currentFilter) {
13938
+ case period_enum.Period.Today:
13939
+ from = new Date();
13940
+ to = new Date();
13941
+ break;
13942
+ case period_enum.Period.ThisWeek:
13943
+ from = DateUtils.GetFirstDayOfWeek(new Date());
13944
+ to = DateUtils.GetLastDayOfWeek(new Date());
13945
+ break;
13946
+ case period_enum.Period.ThisMonth:
13947
+ from = DateUtils.GetFirstDayOfMonth(new Date());
13948
+ to = DateUtils.GetLastDayOfMonth(new Date());
13949
+ break;
13950
+ case period_enum.Period.NextThreeMonths:
13951
+ from = DateUtils.GetFirstDayOfMonth(new Date());
13952
+ to = DateUtils.GetLastDayOfMonth(new Date());
13953
+ to.setMonth(to.getMonth() + 3); //NOSONAR
13954
+ break;
13955
+ }
13956
+ this.filterClicked.next({ from: from, to: to });
13957
+ };
13958
+ return PeriodFilterComponent;
13959
+ }());
13960
+ PeriodFilterComponent.decorators = [
13961
+ { type: i0.Component, args: [{
13962
+ selector: "co-period-filter",
13963
+ template: "\n <div class=\"current-filter\" [textContent]=\"currentFilter | localize\"></div>\n <co-icon [iconData]=\"iconService.getIcon(showPopup ? icon.ArrowPointUp : icon.ArrowPointDown)\"></co-icon>\n ",
13964
+ animations: [
13965
+ animations.trigger("showFilterItems", [
13966
+ animations.state("void", animations.style({ "height": "0" })),
13967
+ animations.state("*", animations.style({ "height": "*" })),
13968
+ animations.transition("void <=> *", animations.animate(200)) //NOSONAR
13969
+ ])
13970
+ ],
13971
+ encapsulation: i0.ViewEncapsulation.None
13972
+ },] }
13973
+ ];
13974
+ PeriodFilterComponent.ctorParameters = function () { return [
13975
+ { type: i0.ElementRef },
13976
+ { type: IconCacheService },
13977
+ { type: corecomponents_v12.OverlayService }
13978
+ ]; };
13979
+ PeriodFilterComponent.propDecorators = {
13980
+ showPopup: [{ type: i0.HostBinding, args: ["class.expanded",] }],
13981
+ showClass: [{ type: i0.HostBinding, args: ["class.co-period-filter",] }],
13982
+ handleClick: [{ type: i0.HostListener, args: ["click",] }],
13983
+ filterClicked: [{ type: i0.Output }]
13984
+ };
13985
+
13986
+ var PeriodFilterModule = /** @class */ (function () {
13987
+ function PeriodFilterModule() {
13988
+ }
13989
+ return PeriodFilterModule;
13990
+ }());
13991
+ PeriodFilterModule.decorators = [
13992
+ { type: i0.NgModule, args: [{
13993
+ imports: [
13994
+ LocalizationModule,
13995
+ corecomponents_v12.IconModule,
13996
+ common.CommonModule,
13997
+ LocalizationModule,
13998
+ corecomponents_v12.ClickoutsideModule,
13999
+ DirectivesModule,
14000
+ corecomponents_v12.OverlayModule
14001
+ ],
14002
+ declarations: [
14003
+ PeriodFilterComponent,
14004
+ PeriodFilterPopupComponent
14005
+ ],
14006
+ exports: [
14007
+ PeriodFilterComponent,
14008
+ PeriodFilterPopupComponent
14009
+ ],
14010
+ providers: [
14011
+ corecomponents_v12.OverlayService
14012
+ ]
14013
+ },] }
14014
+ ];
14015
+
14016
+ var ActivityListHeaderModule = /** @class */ (function () {
14017
+ function ActivityListHeaderModule() {
14018
+ }
14019
+ return ActivityListHeaderModule;
14020
+ }());
14021
+ ActivityListHeaderModule.decorators = [
14022
+ { type: i0.NgModule, args: [{
14023
+ imports: [
14024
+ LocalizationModule,
14025
+ corecomponents_v12.InputTextModule,
14026
+ corecomponents_v12.ButtonModule,
14027
+ WorkflowNotificationToggleModule,
14028
+ PeriodFilterModule,
14029
+ common.CommonModule
14030
+ ],
14031
+ declarations: [
14032
+ ActivityListHeaderComponent
14033
+ ],
14034
+ exports: [
14035
+ ActivityListHeaderComponent
14036
+ ],
14037
+ },] }
14038
+ ];
14039
+
14040
+ var ComponentActivityListModule = /** @class */ (function () {
14041
+ function ComponentActivityListModule() {
14042
+ }
14043
+ return ComponentActivityListModule;
14044
+ }());
14045
+ ComponentActivityListModule.decorators = [
14046
+ { type: i0.NgModule, args: [{
14047
+ imports: [
14048
+ LocalizationModule,
14049
+ common.CommonModule,
14050
+ corecomponents_v12.ButtonModule,
14051
+ corecomponents_v12.CollapsibleModule,
14052
+ PersonalActivityOverviewModule,
14053
+ ComponentActivityOverviewModule,
14054
+ ActivityListHeaderModule
14055
+ ],
14056
+ declarations: [
14057
+ ComponentActivityListComponent
14058
+ ],
14059
+ exports: [
14060
+ ComponentActivityListComponent
14061
+ ]
14062
+ },] }
14063
+ ];
14064
+
14065
+ var WorkflowInfoTilesComponent = /** @class */ (function () {
14066
+ function WorkflowInfoTilesComponent(iconCacheService, sharedService) {
14067
+ this.iconCacheService = iconCacheService;
14068
+ this.sharedService = sharedService;
14069
+ this.Icon = exports["ɵbu"];
14070
+ this.icons = exports["ɵbu"];
14071
+ this.workflowProcessInfoPerStatusClicked = new i0.EventEmitter();
14072
+ }
14073
+ Object.defineProperty(WorkflowInfoTilesComponent.prototype, "workflowCategory", {
14074
+ set: function (value) {
14075
+ this._workflowCategory = value;
14076
+ this.getWorkflowProcessInfoPerStatusCollection();
14077
+ },
14078
+ enumerable: false,
14079
+ configurable: true
14080
+ });
14081
+ WorkflowInfoTilesComponent.prototype.showClass = function () {
14082
+ return true;
14083
+ };
14084
+ WorkflowInfoTilesComponent.prototype.ngOnInit = function () {
14085
+ this.getWorkflowProcessInfoPerStatusCollection();
14086
+ };
14087
+ WorkflowInfoTilesComponent.prototype.workflowProcessInfoPerStatusClickedHandler = function (status) {
14088
+ this.workflowProcessInfoPerStatusClicked.emit(status.statusName);
14089
+ };
14090
+ WorkflowInfoTilesComponent.prototype.getWorkflowProcessInfoPerStatusCollection = function () {
14091
+ var _this = this;
14092
+ if (this._workflowCategory) {
14093
+ this.sharedService.getWorkflowProcessInfoPerStatus(this._workflowCategory).then(function (result) {
14094
+ _this.WorkflowProcessInfoPerStatusCollection = result;
14095
+ });
14096
+ }
14097
+ };
14098
+ return WorkflowInfoTilesComponent;
14099
+ }());
14100
+ WorkflowInfoTilesComponent.decorators = [
14101
+ { type: i0.Component, args: [{
14102
+ selector: "co-workflow-info-tiles",
14103
+ template: "\n <div class=\"tile-row\">\n <co-workflow-info-tile *ngFor=\"let workflowProcessInfoPerStatus of WorkflowProcessInfoPerStatusCollection\" [workflowProcessInfoPerStatus]=\"workflowProcessInfoPerStatus\"\n (click)=\"workflowProcessInfoPerStatusClickedHandler(workflowProcessInfoPerStatus)\"></co-workflow-info-tile>\n </div>\n ",
14104
+ encapsulation: i0.ViewEncapsulation.None
14105
+ },] }
14106
+ ];
14107
+ WorkflowInfoTilesComponent.ctorParameters = function () { return [
14108
+ { type: IconCacheService },
14109
+ { type: SharedService }
14110
+ ]; };
14111
+ WorkflowInfoTilesComponent.propDecorators = {
14112
+ workflowCategory: [{ type: i0.Input }],
14113
+ workflowProcessInfoPerStatusClicked: [{ type: i0.Output }],
14114
+ showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tiles",] }]
14115
+ };
14116
+
14117
+ var WorkflowInfoTileComponent = /** @class */ (function () {
14118
+ function WorkflowInfoTileComponent(iconCacheService, colorService) {
14119
+ this.iconCacheService = iconCacheService;
14120
+ this.colorService = colorService;
14121
+ this.Icon = exports["ɵbu"];
14122
+ }
14123
+ WorkflowInfoTileComponent.prototype.showClass = function () {
14124
+ return true;
14125
+ };
14126
+ WorkflowInfoTileComponent.prototype.ngOnInit = function () {
14127
+ this.backgroundColor = this.colorService.GetRandomColorWithSettings([0, 360], [90, 100], [40, 95], [1, 1]);
14128
+ };
14129
+ return WorkflowInfoTileComponent;
14130
+ }());
14131
+ WorkflowInfoTileComponent.decorators = [
14132
+ { type: i0.Component, args: [{
14133
+ selector: "co-workflow-info-tile",
14134
+ template: "\n <div class=\"top\">\n <div class=\"tile-row\">\n <label class=\"status-text\" [textContent]=\"'STATUS' | localize\"></label>\n <co-icon class=\"corner-icon\" [iconData]=\"iconCacheService.getIcon(Icon.DetailView)\" ></co-icon>\n </div>\n <label class=\"name-text\" [textContent]=\"workflowProcessInfoPerStatus.statusName\"></label>\n </div>\n <div class=\"bottom\">\n <label class=\"name-text\" [textContent]=\"workflowProcessInfoPerStatus.workflowProcessCount\"></label>\n </div>\n ",
14135
+ encapsulation: i0.ViewEncapsulation.None
14136
+ },] }
14137
+ ];
14138
+ WorkflowInfoTileComponent.ctorParameters = function () { return [
14139
+ { type: IconCacheService },
14140
+ { type: corecomponents_v12.ColorSequenceService }
14141
+ ]; };
14142
+ WorkflowInfoTileComponent.propDecorators = {
14143
+ workflowProcessInfoPerStatus: [{ type: i0.Input }],
14144
+ showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tile",] }],
14145
+ backgroundColor: [{ type: i0.HostBinding, args: ["style.background-color",] }]
14146
+ };
14147
+
14148
+ var WorkflowInfoTileModule = /** @class */ (function () {
14149
+ function WorkflowInfoTileModule() {
14150
+ }
14151
+ return WorkflowInfoTileModule;
14152
+ }());
14153
+ WorkflowInfoTileModule.decorators = [
14154
+ { type: i0.NgModule, args: [{
14155
+ imports: [
14156
+ LocalizationModule,
14157
+ corecomponents_v12.IconModule
14158
+ ],
14159
+ declarations: [
14160
+ WorkflowInfoTileComponent
14161
+ ],
14162
+ exports: [
14163
+ WorkflowInfoTileComponent
14164
+ ],
14165
+ providers: []
14166
+ },] }
14167
+ ];
14168
+
14169
+ var WorkflowInfoTilesModule = /** @class */ (function () {
14170
+ function WorkflowInfoTilesModule() {
14171
+ }
14172
+ return WorkflowInfoTilesModule;
14173
+ }());
14174
+ WorkflowInfoTilesModule.decorators = [
14175
+ { type: i0.NgModule, args: [{
14176
+ imports: [
14177
+ WorkflowInfoTileModule,
14178
+ common.CommonModule
14179
+ ],
14180
+ declarations: [
14181
+ WorkflowInfoTilesComponent
14182
+ ],
14183
+ exports: [
14184
+ WorkflowInfoTilesComponent
14185
+ ],
14186
+ providers: []
14187
+ },] }
14188
+ ];
14189
+
10427
14190
  /*
10428
14191
  * Public API Surface of sharedcomponents
10429
14192
  */
@@ -10438,6 +14201,8 @@
10438
14201
  exports.AgendaEventPerDay = AgendaEventPerDay;
10439
14202
  exports.CoLinearGaugeComponent = CoLinearGaugeComponent;
10440
14203
  exports.CoLinearGaugeModule = CoLinearGaugeModule;
14204
+ exports.ComponentActivityListComponent = ComponentActivityListComponent;
14205
+ exports.ComponentActivityListModule = ComponentActivityListModule;
10441
14206
  exports.DatePlanningComponent = DatePlanningComponent;
10442
14207
  exports.DatePlanningModule = DatePlanningModule;
10443
14208
  exports.DocsignComponent = DocsignComponent;
@@ -10452,12 +14217,16 @@
10452
14217
  exports.SendMethodDialogModule = SendMethodDialogModule;
10453
14218
  exports.SharedService = SharedService;
10454
14219
  exports.SimpleTagsComponent = SimpleTagsComponent;
14220
+ exports.SimpleTagsFormComponent = SimpleTagsFormComponent;
14221
+ exports.SimpleTagsFormModule = SimpleTagsFormModule;
10455
14222
  exports.SimpleTagsModule = SimpleTagsModule;
10456
14223
  exports.StatusbarComponent = StatusbarComponent;
10457
14224
  exports.StatusbarModule = StatusbarModule;
10458
14225
  exports.StockComponent = StockComponent;
10459
14226
  exports.StockModule = StockModule;
10460
14227
  exports.Translation = Translation;
14228
+ exports.WorkflowInfoTilesComponent = WorkflowInfoTilesComponent;
14229
+ exports.WorkflowInfoTilesModule = WorkflowInfoTilesModule;
10461
14230
  exports.sendMethodsWithIcon = sendMethodsWithIcon;
10462
14231
  exports["ɵa"] = SignatureComponent;
10463
14232
  exports["ɵb"] = SignaturesComponent;
@@ -10523,7 +14292,45 @@
10523
14292
  exports["ɵdh"] = AppFileDropzoneComponent;
10524
14293
  exports["ɵdi"] = DragDropContainerComponent;
10525
14294
  exports["ɵdj"] = DragDropService;
14295
+ exports["ɵdk"] = BaseActivityListComponent;
14296
+ exports["ɵdl"] = PersonalActivityOverviewComponent;
14297
+ exports["ɵdm"] = BaseActivityOverviewComponent;
14298
+ exports["ɵdn"] = TaskModifierComponent;
14299
+ exports["ɵdo"] = ModifyTaskFormComponent;
14300
+ exports["ɵdp"] = PersonalActivityOverviewModule;
14301
+ exports["ɵdq"] = ComponentActivityOverviewModule;
14302
+ exports["ɵdr"] = TaskModifyerModule;
14303
+ exports["ɵds"] = ModifyTaskFormModule;
14304
+ exports["ɵdt"] = TaskDetailsModule;
14305
+ exports["ɵdu"] = TaskDetailsComponent;
14306
+ exports["ɵdv"] = BaseActivitySummaryComponent;
14307
+ exports["ɵdw"] = ExecutiveSummaryBlockModule;
14308
+ exports["ɵdx"] = ActivitySummaryBlockModule;
14309
+ exports["ɵdy"] = ActivitySummaryBlockComponent;
14310
+ exports["ɵdz"] = ExecutiveSummaryBlockComponent;
10526
14311
  exports["ɵe"] = OptionsService;
14312
+ exports["ɵea"] = StatusSummaryBlockModule;
14313
+ exports["ɵeb"] = StatusSummaryBlockComponent;
14314
+ exports["ɵec"] = CreationSummaryBlockModule;
14315
+ exports["ɵed"] = CreationSummaryBlockComponent;
14316
+ exports["ɵee"] = NotificationSummaryBlockModule;
14317
+ exports["ɵef"] = NotificationSummaryBlockComponent;
14318
+ exports["ɵeg"] = ComponentActivityOverviewComponent;
14319
+ exports["ɵeh"] = ActivityListHeaderModule;
14320
+ exports["ɵei"] = WorkflowNotificationToggleModule;
14321
+ exports["ɵej"] = DirectivesModule;
14322
+ exports["ɵek"] = AbsoluteOverlayTemplateDirective;
14323
+ exports["ɵel"] = AppAbsoluteOverlayOutletService;
14324
+ exports["ɵem"] = AlignWithDirective;
14325
+ exports["ɵen"] = ClickOutsideDirective;
14326
+ exports["ɵeo"] = WorkflowNotificationToggleComponent;
14327
+ exports["ɵep"] = WorkflowNotificationTogglePopupComponent;
14328
+ exports["ɵeq"] = PeriodFilterModule;
14329
+ exports["ɵer"] = PeriodFilterComponent;
14330
+ exports["ɵes"] = PeriodFilterPopupComponent;
14331
+ exports["ɵet"] = ActivityListHeaderComponent;
14332
+ exports["ɵeu"] = WorkflowInfoTileModule;
14333
+ exports["ɵev"] = WorkflowInfoTileComponent;
10527
14334
  exports["ɵf"] = DictionaryService;
10528
14335
  exports["ɵg"] = LocalizeService;
10529
14336
  exports["ɵh"] = IconCacheService;