@colijnit/sharedcomponents 1.0.69 → 1.0.70

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 (175) hide show
  1. package/3rdpartylicenses.txt +1203 -0
  2. package/bundles/colijnit-sharedcomponents.umd.js +3285 -4
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  4. package/colijnit-sharedcomponents.d.ts +36 -0
  5. package/colijnit-sharedcomponents.metadata.json +1 -1
  6. package/esm2015/colijnit-sharedcomponents.js +37 -1
  7. package/esm2015/lib/businessobject/co-document-right.bo.js +1 -1
  8. package/esm2015/lib/components/activity-list-header/activity-list-header.component.js +67 -0
  9. package/esm2015/lib/components/activity-list-header/activity-list-header.module.js +28 -0
  10. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.js +55 -0
  11. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.component.js +103 -0
  12. package/esm2015/lib/components/activity-list-header/components/period-filter/period-filter.module.js +34 -0
  13. package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +129 -0
  14. package/esm2015/lib/components/activity-overview-component/component-activity-overview.module.js +26 -0
  15. package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +284 -0
  16. package/esm2015/lib/components/image-display/image-display.component.js +7 -7
  17. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.js +100 -0
  18. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.js +25 -0
  19. package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +134 -0
  20. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +118 -0
  21. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.js +27 -0
  22. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +88 -0
  23. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.js +24 -0
  24. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +77 -0
  25. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.js +24 -0
  26. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +71 -0
  27. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.js +25 -0
  28. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +102 -0
  29. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.module.js +25 -0
  30. package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +258 -0
  31. package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +33 -0
  32. package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +293 -0
  33. package/esm2015/lib/components/open-activity-list/component-activity-list.module.js +30 -0
  34. package/esm2015/lib/components/open-activity-list/components/base-open-activity-list.component.js +264 -0
  35. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.js +41 -0
  36. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..js +19 -0
  37. package/esm2015/lib/components/task-modifyer/task-modifier.component.js +270 -0
  38. package/esm2015/lib/components/task-modifyer/task-modifyer.module..js +31 -0
  39. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.js +53 -0
  40. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.js +81 -0
  41. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.js +34 -0
  42. package/esm2015/lib/directives/absolute-overlay-template.directive.js +29 -0
  43. package/esm2015/lib/directives/align-with.directive.js +174 -0
  44. package/esm2015/lib/directives/click-outside.directive.js +25 -0
  45. package/esm2015/lib/directives/directives.module.js +22 -0
  46. package/esm2015/lib/enum/activity-cfg-name.enum.js +29 -0
  47. package/esm2015/lib/enum/app-button-type.enum.js +11 -0
  48. package/esm2015/lib/enum/icon.enum.js +13 -1
  49. package/esm2015/lib/interface/activities-task-config-names.js +2 -0
  50. package/esm2015/lib/interface/operation-callback-activity.js +5 -0
  51. package/esm2015/lib/interface/operation-callback-function-with-validation.js +5 -0
  52. package/esm2015/lib/interface/operation-callback-simple-function.js +1 -1
  53. package/esm2015/lib/model/icon-svg.js +13 -1
  54. package/esm2015/lib/service/app-absolute-overlay-outlet.service.js +20 -0
  55. package/esm2015/lib/service/shared-connector.service.js +121 -1
  56. package/esm2015/lib/service/shared.service.js +50 -1
  57. package/esm2015/lib/utils/browser-utils.js +100 -0
  58. package/esm2015/lib/utils/event-utils.js +59 -0
  59. package/esm2015/lib/utils/string-utils.js +5 -1
  60. package/esm2015/public-api.js +3 -1
  61. package/favicon.ico +0 -0
  62. package/fesm2015/colijnit-sharedcomponents.js +3419 -9
  63. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  64. package/index.html +12 -0
  65. package/lib/components/activity-list-header/activity-list-header.component.d.ts +25 -0
  66. package/lib/components/activity-list-header/activity-list-header.module.d.ts +2 -0
  67. package/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.d.ts +11 -0
  68. package/lib/components/activity-list-header/components/period-filter/period-filter.component.d.ts +26 -0
  69. package/lib/components/activity-list-header/components/period-filter/period-filter.module.d.ts +2 -0
  70. package/lib/components/activity-list-header/components/period-filter/style/_layout.scss +62 -0
  71. package/lib/components/activity-list-header/components/period-filter/style/_material-definition.scss +1 -0
  72. package/lib/components/activity-list-header/components/period-filter/style/_theme.scss +5 -0
  73. package/lib/components/activity-list-header/components/period-filter/style/material.scss +4 -0
  74. package/lib/components/activity-list-header/style/_layout.scss +84 -0
  75. package/lib/components/activity-list-header/style/_material-definition.scss +1 -0
  76. package/lib/components/activity-list-header/style/_theme.scss +5 -0
  77. package/lib/components/activity-list-header/style/material.scss +4 -0
  78. package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +13 -0
  79. package/lib/components/activity-overview-component/component-activity-overview.module.d.ts +2 -0
  80. package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +84 -0
  81. package/lib/components/activity-overview-component/style/_layout.scss +107 -0
  82. package/lib/components/activity-overview-component/style/_material-definition.scss +1 -0
  83. package/lib/components/activity-overview-component/style/_theme.scss +5 -0
  84. package/lib/components/activity-overview-component/style/material.scss +4 -0
  85. package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.d.ts +31 -0
  86. package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.d.ts +2 -0
  87. package/lib/components/modify-task-form/components/activity-summary-block/style/_layout.scss +139 -0
  88. package/lib/components/modify-task-form/components/activity-summary-block/style/_material-definition.scss +0 -0
  89. package/lib/components/modify-task-form/components/activity-summary-block/style/_theme.scss +5 -0
  90. package/lib/components/modify-task-form/components/activity-summary-block/style/material.scss +4 -0
  91. package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +53 -0
  92. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.d.ts +28 -0
  93. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.d.ts +2 -0
  94. package/lib/components/modify-task-form/components/creation-summary-block/style/_layout.scss +5 -0
  95. package/lib/components/modify-task-form/components/creation-summary-block/style/_material-definition.scss +0 -0
  96. package/lib/components/modify-task-form/components/creation-summary-block/style/_theme.scss +5 -0
  97. package/lib/components/modify-task-form/components/creation-summary-block/style/material.scss +4 -0
  98. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +24 -0
  99. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.d.ts +2 -0
  100. package/lib/components/modify-task-form/components/executive-summary-block/style/_layout.scss +5 -0
  101. package/lib/components/modify-task-form/components/executive-summary-block/style/_material-definition.scss +0 -0
  102. package/lib/components/modify-task-form/components/executive-summary-block/style/_theme.scss +5 -0
  103. package/lib/components/modify-task-form/components/executive-summary-block/style/material.scss +4 -0
  104. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +23 -0
  105. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.d.ts +2 -0
  106. package/lib/components/modify-task-form/components/notification-summary-block/style/_layout.scss +161 -0
  107. package/lib/components/modify-task-form/components/notification-summary-block/style/_material-definition.scss +0 -0
  108. package/lib/components/modify-task-form/components/notification-summary-block/style/_theme.scss +5 -0
  109. package/lib/components/modify-task-form/components/notification-summary-block/style/material.scss +4 -0
  110. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +15 -0
  111. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.d.ts +2 -0
  112. package/lib/components/modify-task-form/components/status-summary-block/style/_layout.scss +18 -0
  113. package/lib/components/modify-task-form/components/status-summary-block/style/_material-definition.scss +0 -0
  114. package/lib/components/modify-task-form/components/status-summary-block/style/_theme.scss +5 -0
  115. package/lib/components/modify-task-form/components/status-summary-block/style/material.scss +4 -0
  116. package/lib/components/modify-task-form/components/task-details/style/_layout.scss +142 -0
  117. package/lib/components/modify-task-form/components/task-details/style/_material-definition.scss +0 -0
  118. package/lib/components/modify-task-form/components/task-details/style/_theme.scss +5 -0
  119. package/lib/components/modify-task-form/components/task-details/style/material.scss +4 -0
  120. package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +21 -0
  121. package/lib/components/modify-task-form/components/task-details/task-details.module.d.ts +2 -0
  122. package/lib/components/modify-task-form/modify-task-form.component.d.ts +49 -0
  123. package/lib/components/modify-task-form/modify-task-form.module.d.ts +2 -0
  124. package/lib/components/modify-task-form/style/_layout.scss +135 -0
  125. package/lib/components/modify-task-form/style/_material-definition.scss +0 -0
  126. package/lib/components/modify-task-form/style/_theme.scss +5 -0
  127. package/lib/components/modify-task-form/style/material.scss +4 -0
  128. package/lib/components/open-activity-list/component-activity-list.component.d.ts +69 -0
  129. package/lib/components/open-activity-list/component-activity-list.module.d.ts +2 -0
  130. package/lib/components/open-activity-list/components/base-open-activity-list.component.d.ts +46 -0
  131. package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.d.ts +4 -0
  132. package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..d.ts +2 -0
  133. package/lib/components/open-activity-list/components/personal-activity-overview/style/_layout.scss +105 -0
  134. package/lib/components/open-activity-list/components/personal-activity-overview/style/_material-definition.scss +0 -0
  135. package/lib/components/open-activity-list/components/personal-activity-overview/style/_theme.scss +4 -0
  136. package/lib/components/open-activity-list/components/personal-activity-overview/style/material.scss +4 -0
  137. package/lib/components/open-activity-list/style/_layout.scss +26 -0
  138. package/lib/components/open-activity-list/style/_material-definition.scss +0 -0
  139. package/lib/components/open-activity-list/style/_theme.scss +4 -0
  140. package/lib/components/open-activity-list/style/material.scss +4 -0
  141. package/lib/components/task-modifyer/style/_layout.scss +5 -0
  142. package/lib/components/task-modifyer/style/_material-definition.scss +0 -0
  143. package/lib/components/task-modifyer/style/_theme.scss +4 -0
  144. package/lib/components/task-modifyer/style/material.scss +4 -0
  145. package/lib/components/task-modifyer/task-modifier.component.d.ts +67 -0
  146. package/lib/components/task-modifyer/task-modifyer.module..d.ts +2 -0
  147. package/lib/components/workflow-notification-toggle/style/_layout.scss +59 -0
  148. package/lib/components/workflow-notification-toggle/style/_material-definition.scss +0 -0
  149. package/lib/components/workflow-notification-toggle/style/_theme.scss +4 -0
  150. package/lib/components/workflow-notification-toggle/style/material.scss +4 -0
  151. package/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.d.ts +15 -0
  152. package/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.d.ts +28 -0
  153. package/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.d.ts +2 -0
  154. package/lib/directives/absolute-overlay-template.directive.d.ts +9 -0
  155. package/lib/directives/align-with.directive.d.ts +35 -0
  156. package/lib/directives/click-outside.directive.d.ts +7 -0
  157. package/lib/directives/directives.module.d.ts +2 -0
  158. package/lib/enum/activity-cfg-name.enum.d.ts +27 -0
  159. package/lib/enum/app-button-type.enum.d.ts +9 -0
  160. package/lib/enum/icon.enum.d.ts +12 -0
  161. package/lib/interface/activities-task-config-names.d.ts +12 -0
  162. package/lib/interface/operation-callback-activity.d.ts +5 -0
  163. package/lib/interface/operation-callback-function-with-validation.d.ts +5 -0
  164. package/lib/service/app-absolute-overlay-outlet.service.d.ts +9 -0
  165. package/lib/service/shared-connector.service.d.ts +18 -0
  166. package/lib/service/shared.service.d.ts +16 -0
  167. package/lib/utils/browser-utils.d.ts +15 -0
  168. package/lib/utils/event-utils.d.ts +12 -0
  169. package/lib/utils/string-utils.d.ts +1 -0
  170. package/main.36b466467ac98ce720f9.js +1 -0
  171. package/package.json +2 -1
  172. package/polyfills.907fe9d1887c5de17993.js +1 -0
  173. package/public-api.d.ts +2 -0
  174. package/runtime.8aac21847ed3d3829cca.js +1 -0
  175. package/styles.6375d1d30814ecba5d0c.css +1 -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/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/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/ioneconnector/build/model/validation-result'), require('@colijnit/mainapi/build/enum/table-name.enum'), 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/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/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/ioneconnector/build/model/validation-result', '@colijnit/mainapi/build/enum/table-name.enum', '@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.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.relationKind_enum, global.activityType, global.timeUtils, global.isNill_function, global.activityListViewModel, global.activityViewModel, global.personalActivityTab_enum, global.activitySortType_enum, global.task_bo, global.validationResult, global.tableName_enum, 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, 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, relationKind_enum, activityType, timeUtils, isNill_function, activityListViewModel, activityViewModel, personalActivityTab_enum, activitySortType_enum, task_bo, validationResult, tableName_enum, 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
 
@@ -990,6 +990,10 @@
990
990
  StringUtils._escapeRegExp = function (str) {
991
991
  return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
992
992
  };
993
+ StringUtils.IsValidEmail = function (str) {
994
+ 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,}))$/;
995
+ return !!emailRegex.test(str);
996
+ };
993
997
  return StringUtils;
994
998
  }());
995
999
 
@@ -1175,6 +1179,7 @@
1175
1179
  _a.sent();
1176
1180
  this.articleConnector = new articles.Articles(this._optionsService.options);
1177
1181
  this.mainConnector = new mainapi.MainApi(this._optionsService.options);
1182
+ this.relationConnector = new relationapi.RelationApi(this._optionsService.options);
1178
1183
  return [2 /*return*/];
1179
1184
  }
1180
1185
  });
@@ -1648,6 +1653,139 @@
1648
1653
  });
1649
1654
  });
1650
1655
  };
1656
+ SharedConnectorService.prototype.getRelationListObjects = function (request) {
1657
+ return __awaiter(this, void 0, void 0, function () {
1658
+ var _this = this;
1659
+ return __generator(this, function (_a) {
1660
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1661
+ return _this.relationConnector.getRelationListObjects(request, false).then(function (result) {
1662
+ if (result.validationResult && result.validationResult.success) {
1663
+ if (result.resultObjects) {
1664
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, result.resultObjects));
1665
+ }
1666
+ }
1667
+ else {
1668
+ reject(result.validationMessagesAsString);
1669
+ }
1670
+ });
1671
+ })];
1672
+ });
1673
+ });
1674
+ };
1675
+ SharedConnectorService.prototype.getTaskCategories = function () {
1676
+ return __awaiter(this, void 0, void 0, function () {
1677
+ var _this = this;
1678
+ return __generator(this, function (_a) {
1679
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1680
+ return _this.mainConnector.getTaskCategories().then(function (result) {
1681
+ if (result.validationResult && result.validationResult.success) {
1682
+ if (result.resultObjects) {
1683
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(taskCategory_bo.TaskCategory, result.resultObjects));
1684
+ }
1685
+ }
1686
+ else {
1687
+ reject(result.validationMessagesAsString);
1688
+ }
1689
+ });
1690
+ })];
1691
+ });
1692
+ });
1693
+ };
1694
+ SharedConnectorService.prototype.getActiveProcessesByTableAndKey = function (table, key) {
1695
+ return __awaiter(this, void 0, void 0, function () {
1696
+ var _this = this;
1697
+ return __generator(this, function (_a) {
1698
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1699
+ return _this.mainConnector.getActiveProcessesByTableAndKey(table, key).then(function (result) {
1700
+ if (result.validationResult && result.validationResult.success) {
1701
+ if (result.resultObjects) {
1702
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(workflowProcess.WorkflowProcess, result.resultObjects));
1703
+ }
1704
+ }
1705
+ else {
1706
+ reject(result.validationMessagesAsString);
1707
+ }
1708
+ });
1709
+ })];
1710
+ });
1711
+ });
1712
+ };
1713
+ SharedConnectorService.prototype.getDomainCollection = function (languageCode, domain) {
1714
+ return __awaiter(this, void 0, void 0, function () {
1715
+ var _this = this;
1716
+ return __generator(this, function (_a) {
1717
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1718
+ return _this.mainConnector.getDomainCollection(languageCode, domain).then(function (result) {
1719
+ if (result.validationResult && result.validationResult.success) {
1720
+ if (result.resultObjects) {
1721
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, result.resultObjects));
1722
+ }
1723
+ }
1724
+ else {
1725
+ reject(result.validationMessagesAsString);
1726
+ }
1727
+ });
1728
+ })];
1729
+ });
1730
+ });
1731
+ };
1732
+ SharedConnectorService.prototype.getRoleEmailAddressesByWorkflowCategoryAndKey = function (worlflowCategory, key) {
1733
+ return __awaiter(this, void 0, void 0, function () {
1734
+ var _this = this;
1735
+ return __generator(this, function (_a) {
1736
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1737
+ return _this.mainConnector.getRoleEmailAddressesByWorkflowCategoryAndKey(worlflowCategory, key).then(function (result) {
1738
+ if (result.validationResult && result.validationResult.success) {
1739
+ if (result.resultObject) {
1740
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(roleEmailAddress.RoleEmailaddress, result.resultObject));
1741
+ }
1742
+ }
1743
+ else {
1744
+ reject(result.validationMessagesAsString);
1745
+ }
1746
+ });
1747
+ })];
1748
+ });
1749
+ });
1750
+ };
1751
+ SharedConnectorService.prototype.getHistoricActivities = function (table, key) {
1752
+ return __awaiter(this, void 0, void 0, function () {
1753
+ var _this = this;
1754
+ return __generator(this, function (_a) {
1755
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1756
+ return _this.mainConnector.getHistoricActivities(table, key).then(function (result) {
1757
+ if (result.validationResult && result.validationResult.success) {
1758
+ if (result.resultObject) {
1759
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
1760
+ }
1761
+ }
1762
+ else {
1763
+ reject(result.validationMessagesAsString);
1764
+ }
1765
+ });
1766
+ })];
1767
+ });
1768
+ });
1769
+ };
1770
+ SharedConnectorService.prototype.getComponentActivities = function (table, key) {
1771
+ return __awaiter(this, void 0, void 0, function () {
1772
+ var _this = this;
1773
+ return __generator(this, function (_a) {
1774
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1775
+ return _this.mainConnector.getComponentActivities(table, key).then(function (result) {
1776
+ if (result.validationResult && result.validationResult.success) {
1777
+ if (result.resultObject) {
1778
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
1779
+ }
1780
+ }
1781
+ else {
1782
+ reject(result.validationMessagesAsString);
1783
+ }
1784
+ });
1785
+ })];
1786
+ });
1787
+ });
1788
+ };
1651
1789
  SharedConnectorService.prototype.commit = function () {
1652
1790
  return this.articleConnector.commit();
1653
1791
  };
@@ -1887,22 +2025,30 @@
1887
2025
  Icon["ArrowDown"] = "arrow_down";
1888
2026
  Icon["ArrowDownRegular"] = "arrow_down_regular";
1889
2027
  Icon["ArrowFatRight"] = "arrow_fat_right";
2028
+ Icon["ArrowPointDown"] = "arrow_point_down";
1890
2029
  Icon["ArrowPointLeft"] = "arrow_point_left";
1891
2030
  Icon["ArrowPointRight"] = "arrow_point_right";
2031
+ Icon["ArrowPointUp"] = "arrow_point_up";
1892
2032
  Icon["AtSolid"] = "at_solid";
1893
2033
  Icon["BarcodeReadRegular"] = "barcode_read_regular";
2034
+ Icon["BellRegular"] = "bell_regular";
2035
+ Icon["BellSlashRegular"] = "bell_slash_regular";
1894
2036
  Icon["BringForwardRegular"] = "bring_forward_regular";
1895
2037
  Icon["CheckDuotone"] = "check_duotone";
1896
2038
  Icon["CheckRound"] = "check_round";
2039
+ Icon["CheckSolid"] = "check_solid";
2040
+ Icon["ChevronRightRegular"] = "chevron_right_regular";
1897
2041
  Icon["ClockRegular"] = "clock_regular";
1898
2042
  Icon["CommentRegular"] = "comment_regular";
1899
2043
  Icon["CrossSkinny"] = "cross_skinny";
1900
2044
  Icon["Cubes"] = "cubes";
1901
2045
  Icon["DeleteLeftRegular"] = "delete_left_regular";
1902
2046
  Icon["DeliveryTruck"] = "delivery_truck";
2047
+ Icon["DetailView"] = "detail_view";
1903
2048
  Icon["Dropzone"] = "dropzone";
1904
2049
  Icon["EditPenRegular"] = "edit_pen_regular";
1905
2050
  Icon["Email"] = "email";
2051
+ Icon["Employee"] = "employee";
1906
2052
  Icon["EnvelopeRegular"] = "envelope_regular";
1907
2053
  Icon["EyeRegular"] = "eye_regular";
1908
2054
  Icon["FileExportRegular"] = "file_export_regular";
@@ -1911,17 +2057,21 @@
1911
2057
  Icon["FilePdfSolid"] = "file_pdf_solid";
1912
2058
  Icon["FileSignatureRegular"] = "file_signature_regular";
1913
2059
  Icon["HouseBlankRegular"] = "house_blank_regular";
2060
+ Icon["IoneWorkflow"] = "ione_workflow";
1914
2061
  Icon["Lock"] = "lock";
1915
2062
  Icon["MessageSmsRegular"] = "message_sms_regular";
1916
2063
  Icon["MessageSmsSolid"] = "message_sms_solid";
2064
+ Icon["Notification"] = "notification";
1917
2065
  Icon["PaperclipRegular"] = "paperclip_regular";
1918
2066
  Icon["Pdf"] = "pdf";
1919
2067
  Icon["PersonDiggingRegular"] = "person_digging_regular";
2068
+ Icon["PinRoundOpen"] = "pin_round_open";
1920
2069
  Icon["Print"] = "print";
1921
2070
  Icon["PrintRegular"] = "print_regular";
1922
2071
  Icon["PrintSolid"] = "print_solid";
1923
2072
  Icon["SignatureField"] = "signature_field";
1924
2073
  Icon["TagRegular"] = "tag_regular";
2074
+ Icon["Task"] = "task";
1925
2075
  Icon["Trashbin"] = "trashbin";
1926
2076
  Icon["Xml"] = "xml";
1927
2077
  Icon["XSolid"] = "x_solid";
@@ -1935,22 +2085,30 @@
1935
2085
  "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
2086
  "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
2087
  "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>",
2088
+ "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
2089
  "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
2090
  "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>",
2091
+ "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
2092
  "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
2093
  "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>",
2094
+ "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>",
2095
+ "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
2096
  "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
2097
  "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
2098
  "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>",
2099
+ "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>",
2100
+ "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
2101
  "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
2102
  "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
2103
  "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
2104
  "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
2105
  "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
2106
  "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>",
2107
+ "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
2108
  "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
2109
  "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
2110
  "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>",
2111
+ "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
2112
  "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
2113
  "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
2114
  "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 +2117,21 @@
1959
2117
  "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
2118
  "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
2119
  "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>",
2120
+ "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
2121
  "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
2122
  "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
2123
  "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>",
2124
+ "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
2125
  "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
2126
  "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
2127
  "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>",
2128
+ "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
2129
  "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
2130
  "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
2131
  "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
2132
  "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
2133
  "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>",
2134
+ "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
2135
  "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
2136
  "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
2137
  "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>"
@@ -2586,6 +2748,18 @@
2586
2748
  });
2587
2749
  });
2588
2750
  };
2751
+ SharedService.prototype.connect = function () {
2752
+ return __awaiter(this, void 0, void 0, function () {
2753
+ return __generator(this, function (_a) {
2754
+ switch (_a.label) {
2755
+ case 0: return [4 /*yield*/, this.connector.connect()];
2756
+ case 1:
2757
+ _a.sent();
2758
+ return [2 /*return*/];
2759
+ }
2760
+ });
2761
+ });
2762
+ };
2589
2763
  SharedService.prototype.getAllPrinters = function () {
2590
2764
  return __awaiter(this, void 0, void 0, function () {
2591
2765
  return __generator(this, function (_a) {
@@ -2648,6 +2822,84 @@
2648
2822
  });
2649
2823
  });
2650
2824
  };
2825
+ SharedService.prototype.getRelationListObjects = function (request) {
2826
+ return __awaiter(this, void 0, void 0, function () {
2827
+ return __generator(this, function (_a) {
2828
+ switch (_a.label) {
2829
+ case 0: return [4 /*yield*/, this.connector.getRelationListObjects(request)];
2830
+ case 1: return [2 /*return*/, _a.sent()];
2831
+ }
2832
+ });
2833
+ });
2834
+ };
2835
+ SharedService.prototype.getTaskCategories = function () {
2836
+ return __awaiter(this, void 0, void 0, function () {
2837
+ return __generator(this, function (_a) {
2838
+ switch (_a.label) {
2839
+ case 0: return [4 /*yield*/, this.connector.getTaskCategories()];
2840
+ case 1: return [2 /*return*/, _a.sent()];
2841
+ }
2842
+ });
2843
+ });
2844
+ };
2845
+ SharedService.prototype.getActiveProcessesByTableAndKey = function (table, key) {
2846
+ return __awaiter(this, void 0, void 0, function () {
2847
+ return __generator(this, function (_a) {
2848
+ switch (_a.label) {
2849
+ case 0: return [4 /*yield*/, this.connector.getActiveProcessesByTableAndKey(table, key)];
2850
+ case 1: return [2 /*return*/, _a.sent()];
2851
+ }
2852
+ });
2853
+ });
2854
+ };
2855
+ SharedService.prototype.getDomainCollection = function (languageCode, domainName) {
2856
+ return __awaiter(this, void 0, void 0, function () {
2857
+ return __generator(this, function (_a) {
2858
+ switch (_a.label) {
2859
+ case 0: return [4 /*yield*/, this.connector.getDomainCollection(languageCode, domainName)];
2860
+ case 1: return [2 /*return*/, _a.sent()];
2861
+ }
2862
+ });
2863
+ });
2864
+ };
2865
+ SharedService.prototype.getRoleEmailAddressesByWorkflowCategoryAndKey = function (workflowCategory, key) {
2866
+ return __awaiter(this, void 0, void 0, function () {
2867
+ return __generator(this, function (_a) {
2868
+ switch (_a.label) {
2869
+ case 0: return [4 /*yield*/, this.connector.getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key)];
2870
+ case 1: return [2 /*return*/, _a.sent()];
2871
+ }
2872
+ });
2873
+ });
2874
+ };
2875
+ SharedService.prototype.getActivities = function (table, key) {
2876
+ return __awaiter(this, void 0, void 0, function () {
2877
+ var activities, histActivities, activeActivities, historicActivities;
2878
+ return __generator(this, function (_a) {
2879
+ switch (_a.label) {
2880
+ case 0: return [4 /*yield*/, this.connector.getComponentActivities(table, key)];
2881
+ case 1:
2882
+ activities = _a.sent();
2883
+ return [4 /*yield*/, this.connector.getHistoricActivities(table, key)];
2884
+ case 2:
2885
+ histActivities = _a.sent();
2886
+ activeActivities = [];
2887
+ historicActivities = [];
2888
+ if (activities && activities.length > 0) {
2889
+ activities.forEach(function (activity) {
2890
+ activeActivities.push(activity);
2891
+ });
2892
+ }
2893
+ if (histActivities && histActivities.length > 0) {
2894
+ histActivities.forEach(function (activity) {
2895
+ historicActivities.push(activity);
2896
+ });
2897
+ }
2898
+ return [2 /*return*/, activeActivities.concat(historicActivities)];
2899
+ }
2900
+ });
2901
+ });
2902
+ };
2651
2903
  return SharedService;
2652
2904
  }());
2653
2905
  SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
@@ -10424,6 +10676,2997 @@
10424
10676
  },] }
10425
10677
  ];
10426
10678
 
10679
+ var BaseActivityListComponent = /** @class */ (function () {
10680
+ function BaseActivityListComponent() {
10681
+ this.reloadTimer = 60000; // 1 minute in milliseconds
10682
+ this.handleOpenLinkSidebar = false;
10683
+ //viewmodels
10684
+ this.privateActivityListViewModels = [];
10685
+ this.privateDelegatedActivityListViewModels = [];
10686
+ this.filteredActivityListViewModels = [];
10687
+ this.filteredDelegatedActivityListViewModels = [];
10688
+ this._activities = [];
10689
+ this._delegatedActivities = [];
10690
+ //protected userService: UserService
10691
+ }
10692
+ Object.defineProperty(BaseActivityListComponent.prototype, "activities", {
10693
+ get: function () {
10694
+ return this._activities;
10695
+ },
10696
+ set: function (value) {
10697
+ clearTimeout(this._updateInterval);
10698
+ this._activities = value;
10699
+ this.filteredActivities = this._activities.slice();
10700
+ this.applyFilter();
10701
+ this._startInterval();
10702
+ },
10703
+ enumerable: false,
10704
+ configurable: true
10705
+ });
10706
+ Object.defineProperty(BaseActivityListComponent.prototype, "delegatedActivities", {
10707
+ get: function () {
10708
+ return this._delegatedActivities;
10709
+ },
10710
+ set: function (value) {
10711
+ if (value && value.length > 0) {
10712
+ clearTimeout(this._updateInterval);
10713
+ this._delegatedActivities = value;
10714
+ this.filteredDelegatedActivities = this._delegatedActivities.slice();
10715
+ this.applyFilter();
10716
+ this._startInterval();
10717
+ }
10718
+ },
10719
+ enumerable: false,
10720
+ configurable: true
10721
+ });
10722
+ Object.defineProperty(BaseActivityListComponent.prototype, "showUsergroupActivities", {
10723
+ // TODO: return this.userService.showUsergroupActivities and allow to set properly;
10724
+ get: function () {
10725
+ return false;
10726
+ },
10727
+ set: function (value) {
10728
+ },
10729
+ enumerable: false,
10730
+ configurable: true
10731
+ });
10732
+ BaseActivityListComponent.prototype.ngOnDestroy = function () {
10733
+ clearInterval(this._updateInterval);
10734
+ };
10735
+ BaseActivityListComponent.prototype.reset = function () {
10736
+ this.filteredActivities = [];
10737
+ this.filteredDelegatedActivities = [];
10738
+ this._activities = [];
10739
+ this._delegatedActivities = [];
10740
+ };
10741
+ BaseActivityListComponent.prototype.applyFilter = function () {
10742
+ this._applyFilter(this.activities, this.filteredActivities, this.filteredActivityListViewModels);
10743
+ this._applyFilter(this.delegatedActivities, this.filteredDelegatedActivities, this.filteredDelegatedActivityListViewModels);
10744
+ this._refreshActivities();
10745
+ this.afterFilterApplied();
10746
+ };
10747
+ BaseActivityListComponent.prototype.afterFilterApplied = function () {
10748
+ };
10749
+ BaseActivityListComponent.prototype.getTheActivities = function () {
10750
+ //this.getActivities();
10751
+ this.getDelegatedActivities();
10752
+ };
10753
+ BaseActivityListComponent.prototype._removeNotShowing = function (listViewModels) {
10754
+ for (var i = listViewModels.length - 1; i > 0; i--) {
10755
+ var listViewModel = listViewModels[i];
10756
+ if (!listViewModel.showing) {
10757
+ listViewModels.splice(i, 1);
10758
+ }
10759
+ else { // iterate through activityViewModels
10760
+ for (var j = listViewModel.activities.length - 1; j > 0; j--) {
10761
+ var activityViewModel = listViewModel.activities[j];
10762
+ if (!activityViewModel.showing) {
10763
+ listViewModel.activities.splice(j, 1);
10764
+ }
10765
+ }
10766
+ }
10767
+ }
10768
+ };
10769
+ BaseActivityListComponent.prototype.updatePrivateListsWithFilteredLists = function () {
10770
+ this.privateActivityListViewModels =
10771
+ this._updatePrivateListWithFilteredList(this.privateActivityListViewModels, this.filteredActivityListViewModels);
10772
+ this.privateDelegatedActivityListViewModels =
10773
+ this._updatePrivateListWithFilteredList(this.privateDelegatedActivityListViewModels, this.filteredDelegatedActivityListViewModels);
10774
+ };
10775
+ BaseActivityListComponent.prototype._applyFilter = function (activities, filteredActivities, filteredActivityListViewModels) {
10776
+ var _this = this;
10777
+ if (isNill_function.isNill(activities)) {
10778
+ filteredActivities.length = 0;
10779
+ return;
10780
+ }
10781
+ filteredActivities = activities.slice(0);
10782
+ if (this.filterFrom && this.filterTo) {
10783
+ filteredActivities =
10784
+ activities.filter(function (a) {
10785
+ if (a.executionDateTime === null || a.overDue) {
10786
+ return true;
10787
+ }
10788
+ else {
10789
+ return DateUtils.IsInBetween(a.executionDateTime, _this.filterFrom, _this.filterTo, false);
10790
+ }
10791
+ });
10792
+ }
10793
+ filteredActivities.sort(function (a, b) { return a.deadlineDateTime > b.deadlineDateTime ? 1 : -1; });
10794
+ this._searchText(filteredActivities);
10795
+ this._prepareViewModels(filteredActivities, filteredActivityListViewModels);
10796
+ };
10797
+ BaseActivityListComponent.prototype._searchText = function (filteredActivities) {
10798
+ if (!this.searchText) {
10799
+ return;
10800
+ }
10801
+ for (var i = filteredActivities.length - 1; i >= 0; i--) {
10802
+ var activity = filteredActivities[i];
10803
+ var found = false;
10804
+ for (var key in activity) {
10805
+ if (activity.hasOwnProperty(key)) {
10806
+ if (activity[key].toString().indexOf(this.searchText) > -1) {
10807
+ found = true;
10808
+ break;
10809
+ }
10810
+ }
10811
+ }
10812
+ if (!found) {
10813
+ filteredActivities.splice(i, 1);
10814
+ }
10815
+ }
10816
+ };
10817
+ BaseActivityListComponent.prototype._updatePrivateListWithFilteredList = function (listViewModels, filteredList) {
10818
+ var result;
10819
+ if (listViewModels.length === 0) {
10820
+ result = filteredList.slice();
10821
+ }
10822
+ else {
10823
+ result = listViewModels.slice();
10824
+ var _loop_1 = function (i) {
10825
+ var listViewModel = result[i];
10826
+ var filteredViewModel = filteredList.find(function (f) { return f.position === listViewModel.position; });
10827
+ if (!filteredViewModel) {
10828
+ // flag as removed when listviewmodel is no longer in the list
10829
+ listViewModel.showing = false;
10830
+ }
10831
+ else {
10832
+ var _loop_3 = function (j) {
10833
+ var viewModel = listViewModel.activities[j];
10834
+ if (!filteredViewModel.activities.find(function (fa) { return fa.guid === viewModel.guid; })) {
10835
+ // flag as removed when viewmodel is no longer in the list
10836
+ viewModel.showing = false;
10837
+ }
10838
+ };
10839
+ for (var j = 0; j < listViewModel.activities.length; j++) {
10840
+ _loop_3(j);
10841
+ }
10842
+ }
10843
+ };
10844
+ // set showing to false for items which are not in the list anymore
10845
+ for (var i = 0; i < result.length; i++) {
10846
+ _loop_1(i);
10847
+ }
10848
+ var _loop_2 = function (i) {
10849
+ var filteredActivityListViewModel = filteredList[i];
10850
+ var listViewModel = result.find(function (lvm) { return lvm.label === filteredActivityListViewModel.label; });
10851
+ if (!listViewModel) {
10852
+ result.push(filteredActivityListViewModel);
10853
+ }
10854
+ else {
10855
+ var _loop_4 = function (j) {
10856
+ var filteredActivityViewModel = filteredActivityListViewModel.activities[j];
10857
+ if (!listViewModel.activities.find(function (a) { return a.activity.getId() === filteredActivityViewModel.activity.getId(); })) {
10858
+ listViewModel.activities.push(filteredActivityViewModel);
10859
+ }
10860
+ };
10861
+ for (var j = 0; j < filteredActivityListViewModel.activities.length; j++) {
10862
+ _loop_4(j);
10863
+ }
10864
+ }
10865
+ };
10866
+ // add new items
10867
+ for (var i = 0; i < filteredList.length; i++) {
10868
+ _loop_2(i);
10869
+ }
10870
+ }
10871
+ result.sort(this._sortByPosition);
10872
+ return result;
10873
+ };
10874
+ BaseActivityListComponent.prototype._refreshActivities = function () {
10875
+ // first remove items which are set invisible before
10876
+ this._removeNotShowing(this.privateActivityListViewModels);
10877
+ this._removeNotShowing(this.privateDelegatedActivityListViewModels);
10878
+ // update private list with (new) filtered list
10879
+ this.updatePrivateListsWithFilteredLists();
10880
+ };
10881
+ BaseActivityListComponent.prototype._prepareViewModels = function (filteredActivities, filteredActivityListViewModels) {
10882
+ filteredActivityListViewModels.map(function (alm) {
10883
+ alm.showing = false;
10884
+ alm.activities.map(function (aa) { return aa.showing = false; });
10885
+ });
10886
+ if (filteredActivities) {
10887
+ for (var i = 0; i < filteredActivities.length; i++) {
10888
+ var activity = filteredActivities[i];
10889
+ if (!activity.overDue && DateUtils.IsToday(activity.deadlineDateTime)) {
10890
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'TODAY', 1, activity);
10891
+ }
10892
+ else if (activity.overDue) {
10893
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'TOO_LATE', 2, activity);
10894
+ }
10895
+ else if (activity.deadlineDateTime) {
10896
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'NEXT2', 3, activity);
10897
+ }
10898
+ else {
10899
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'UNSCHEDULED', 4, activity);
10900
+ }
10901
+ }
10902
+ }
10903
+ filteredActivityListViewModels.sort(this._sortByPosition);
10904
+ this._setAmountListViewModels(filteredActivityListViewModels);
10905
+ };
10906
+ BaseActivityListComponent.prototype._setAmountListViewModels = function (filteredActivityListViewModels) {
10907
+ for (var i = 0; i < filteredActivityListViewModels.length; i++) {
10908
+ filteredActivityListViewModels[i].setAmount();
10909
+ }
10910
+ };
10911
+ BaseActivityListComponent.prototype._sortByPosition = function (a, b) {
10912
+ return a.position > b.position ? 1 : -1;
10913
+ };
10914
+ BaseActivityListComponent.prototype._addToActivityListViewModel = function (filteredActivityListViewModels, label, order, activity) {
10915
+ var activityListViewModel = this._getActivityListViewModel(filteredActivityListViewModels, label, order);
10916
+ activityListViewModel.showing = true;
10917
+ var activityViewModel = this._getActivityViewModel(activityListViewModel, activity);
10918
+ activityViewModel.showing = !activityViewModel.deleted;
10919
+ this._updateViewModelContent(activityViewModel, activity);
10920
+ };
10921
+ BaseActivityListComponent.prototype._getActivityViewModel = function (listViewModel, activity) {
10922
+ var viewModel = listViewModel.activities.find(function (a) { return a.activity.getId() === activity.getId(); });
10923
+ if (!viewModel) {
10924
+ viewModel = new activityViewModel.ActivityViewModel();
10925
+ viewModel.activity = activity;
10926
+ viewModel.parent = listViewModel;
10927
+ listViewModel.activities.push(viewModel);
10928
+ }
10929
+ return viewModel;
10930
+ };
10931
+ BaseActivityListComponent.prototype._getActivityListViewModel = function (filteredActivityListViewModels, label, order) {
10932
+ var result = filteredActivityListViewModels.find(function (a) { return a.label === label; });
10933
+ if (!result) {
10934
+ result = new activityListViewModel.ActivityListViewModel(label, order);
10935
+ filteredActivityListViewModels.push(result);
10936
+ }
10937
+ return result;
10938
+ };
10939
+ BaseActivityListComponent.prototype._startInterval = function () {
10940
+ var _this = this;
10941
+ this._updateInterval = window.setInterval(function () {
10942
+ _this.getTheActivities();
10943
+ }, this.reloadTimer);
10944
+ };
10945
+ BaseActivityListComponent.prototype._updateViewModelContent = function (activityViewModel, activity) {
10946
+ activityViewModel.activity = activity;
10947
+ return activityViewModel;
10948
+ };
10949
+ return BaseActivityListComponent;
10950
+ }());
10951
+ BaseActivityListComponent.decorators = [
10952
+ { type: i0.Directive },
10953
+ { type: i0.Injectable }
10954
+ ];
10955
+ BaseActivityListComponent.ctorParameters = function () { return []; };
10956
+ BaseActivityListComponent.propDecorators = {
10957
+ handleOpenLinkSidebar: [{ type: i0.Input }]
10958
+ };
10959
+ __decorate([
10960
+ InputBoolean()
10961
+ ], BaseActivityListComponent.prototype, "handleOpenLinkSidebar", void 0);
10962
+
10963
+ var ActivityCfgName;
10964
+ (function (ActivityCfgName) {
10965
+ ActivityCfgName["TaskForms"] = "TaskForms";
10966
+ ActivityCfgName["NewTaskFormHeader"] = "NewTaskFormHeader";
10967
+ ActivityCfgName["NewTaskTitle"] = "NewTaskTitle";
10968
+ ActivityCfgName["ActivitiesHeader"] = "activitiesHeader";
10969
+ ActivityCfgName["NewTaskGlobalButton"] = "newTaskGlobalButton";
10970
+ ActivityCfgName["AddActivityTaskButton"] = "addActivityTaskButton";
10971
+ ActivityCfgName["DeleteActivityTaskButton"] = "deleteActivityTaskButton";
10972
+ ActivityCfgName["AddActivityRemarkButton"] = "addActivityRemarkButton";
10973
+ ActivityCfgName["AddActivityWorkButton"] = "addActivityWorkButton";
10974
+ ActivityCfgName["TimeRegistrationMandatory"] = "timeRegistrationMandatory";
10975
+ ActivityCfgName["StatusSummaryHeader"] = "statusSummaryHeader";
10976
+ ActivityCfgName["CreationSummaryHeader"] = "creationSummaryHeader";
10977
+ ActivityCfgName["ExecutiveSummaryHeader"] = "executiveSummaryHeader";
10978
+ ActivityCfgName["PlanningSummaryHeader"] = "planningSummaryHeader";
10979
+ ActivityCfgName["AttachmentsHeader"] = "attachmentsHeader";
10980
+ ActivityCfgName["NotificationsSummaryHeader"] = "notificationsSummaryHeader";
10981
+ ActivityCfgName["TagsHeader"] = "tagsHeader";
10982
+ ActivityCfgName["WorkHeader"] = "workHeader";
10983
+ ActivityCfgName["WorkExecutive"] = "workExecutive";
10984
+ ActivityCfgName["WorkCalculationKey"] = "calculationKey";
10985
+ ActivityCfgName["WorkDescription"] = "workDescription";
10986
+ ActivityCfgName["WorkFile"] = "workFile";
10987
+ ActivityCfgName["EstimationStandardTime"] = "estimate";
10988
+ ActivityCfgName["TaskInvoice"] = "taskInvoice";
10989
+ ActivityCfgName["WorkedTime"] = "workedTime";
10990
+ })(ActivityCfgName || (ActivityCfgName = {}));
10991
+
10992
+ function OperationWithValidationCallback(object, object2, object3) {
10993
+ return Promise.resolve(new validationResult.ValidationResult());
10994
+ }
10995
+
10996
+ var AppPopupButtonType;
10997
+ (function (AppPopupButtonType) {
10998
+ AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
10999
+ AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
11000
+ AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
11001
+ AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
11002
+ AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
11003
+ AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
11004
+ AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
11005
+ })(AppPopupButtonType || (AppPopupButtonType = {}));
11006
+
11007
+ var ModifyTaskFormComponent = /** @class */ (function () {
11008
+ function ModifyTaskFormComponent(_boFactory, sharedService
11009
+ //private _mediaMonitor: MediaMonitorService,
11010
+ /*private _activityService: ActivityService*/
11011
+ ) {
11012
+ this._boFactory = _boFactory;
11013
+ this.sharedService = sharedService;
11014
+ this.Icon = exports["ɵbu"];
11015
+ //public readonly TagCategory: typeof TagCategory = TagCategory;
11016
+ this.TableNames = tableName_enum.TableName;
11017
+ this.readonly = false;
11018
+ this.popupContext = false;
11019
+ this.activityChange = new i0.EventEmitter();
11020
+ this.statusChange = new i0.EventEmitter();
11021
+ this.showWorkLog = new i0.EventEmitter();
11022
+ this.selectedMenu = 'content-menu1';
11023
+ this.activities = [];
11024
+ this.table = tableName_enum.TableName.Tasks;
11025
+ this.expandActivities = false;
11026
+ }
11027
+ Object.defineProperty(ModifyTaskFormComponent.prototype, "activity", {
11028
+ get: function () {
11029
+ return this._activity;
11030
+ },
11031
+ /* @ViewChild(ActivityActivitiesComponent, { static: true })
11032
+ public activityActivities: ActivityActivitiesComponent;*/
11033
+ set: function (value) {
11034
+ this._activity = value;
11035
+ this.key = this._activity.task.taskId + "";
11036
+ },
11037
+ enumerable: false,
11038
+ configurable: true
11039
+ });
11040
+ ModifyTaskFormComponent.prototype.showClass = function () {
11041
+ return true;
11042
+ };
11043
+ Object.defineProperty(ModifyTaskFormComponent.prototype, "hasDocuments", {
11044
+ get: function () {
11045
+ var _a, _b, _c;
11046
+ 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);
11047
+ },
11048
+ enumerable: false,
11049
+ configurable: true
11050
+ });
11051
+ Object.defineProperty(ModifyTaskFormComponent.prototype, "forceReadonly", {
11052
+ set: function (value) {
11053
+ this.readonly = value;
11054
+ },
11055
+ enumerable: false,
11056
+ configurable: true
11057
+ });
11058
+ ModifyTaskFormComponent.prototype.handleAddDocuments = function (docs) {
11059
+ var _this = this;
11060
+ docs.forEach(function (doc) { return _this.activity.task.documents.push(doc); });
11061
+ };
11062
+ ModifyTaskFormComponent.prototype.handleAddDocument = function (doc) {
11063
+ this.activity.task.documents.push(doc);
11064
+ };
11065
+ ModifyTaskFormComponent.prototype.ngOnInit = function () {
11066
+ this._getActivities();
11067
+ };
11068
+ ModifyTaskFormComponent.prototype.showContent = function (menu) {
11069
+ this.selectedMenu = menu;
11070
+ };
11071
+ ModifyTaskFormComponent.prototype.handleRegisterWork = function () {
11072
+ setTimeout(function () {
11073
+ /*if (this.activityActivities) {
11074
+ this.expandActivities = true;
11075
+ this.activityActivities.showRegisterWorkLeaf();
11076
+ }*/
11077
+ });
11078
+ };
11079
+ ModifyTaskFormComponent.prototype.handleSaveActivity = function (activity) {
11080
+ this._updateTaskObject(activity, activity.IsWork ? "workLog" : "remarks");
11081
+ var index = this.activities.findIndex(function (src) {
11082
+ return src.getId() === activity.getId();
11083
+ });
11084
+ if (index > -1) {
11085
+ this.activities[index] = activity;
11086
+ }
11087
+ else {
11088
+ this.activities.push(activity);
11089
+ }
11090
+ this.activities = this.activities.slice(0); // reset view
11091
+ };
11092
+ ModifyTaskFormComponent.prototype.handleDeleteActivity = function (activity) {
11093
+ if (activity.IsWork) {
11094
+ this.activity.task.deleteWorkLog(activity.work);
11095
+ }
11096
+ else if (activity.IsRemark) {
11097
+ this.activity.task.deleteRemark(activity.remark);
11098
+ }
11099
+ };
11100
+ ModifyTaskFormComponent.prototype.handleShowWorkLow = function () {
11101
+ this.expandActivities = true;
11102
+ this.showWorkLog.emit();
11103
+ };
11104
+ ModifyTaskFormComponent.prototype._updateTaskObject = function (activity, prop) {
11105
+ var cloneActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
11106
+ if (cloneActivity.isNew) {
11107
+ this.activity.task[prop].push(activity.getBaseContent());
11108
+ }
11109
+ else {
11110
+ var index = this.activity.task[prop].findIndex(function (src) {
11111
+ return src.getId() === activity.getBaseContent().getId();
11112
+ });
11113
+ if (index > -1) {
11114
+ this.activity.task[prop][index] = activity.getBaseContent();
11115
+ }
11116
+ }
11117
+ activity.editting = false;
11118
+ activity.isNew = false;
11119
+ };
11120
+ ModifyTaskFormComponent.prototype._getActivities = function () {
11121
+ return __awaiter(this, void 0, void 0, function () {
11122
+ var _d;
11123
+ return __generator(this, function (_e) {
11124
+ switch (_e.label) {
11125
+ case 0:
11126
+ if (!this.key) {
11127
+ return [2 /*return*/];
11128
+ }
11129
+ _d = this;
11130
+ return [4 /*yield*/, this.sharedService.getActivities(this.table, this.key.toString())];
11131
+ case 1:
11132
+ _d.activities = _e.sent();
11133
+ return [2 /*return*/];
11134
+ }
11135
+ });
11136
+ });
11137
+ };
11138
+ return ModifyTaskFormComponent;
11139
+ }());
11140
+ ModifyTaskFormComponent.decorators = [
11141
+ { type: i0.Component, args: [{
11142
+ selector: "co-modify-task-form",
11143
+ 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 <!--TODO implement tags here-->\n <!--<tags\n [(joinedTags)]=\"activity.task.tags\"\n [readonly]=\"readonly\"\n [tagCategory]=\"TagCategory.tasks\"\n [collapseable]=\"false\"\n ></tags>-->\n </div>\n </div>\n </div>\n ",
11144
+ providers: [
11145
+ corecomponents_v12.FormMasterService,
11146
+ {
11147
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
11148
+ useExisting: i0.forwardRef(function () { return ModifyTaskFormComponent; })
11149
+ }
11150
+ ]
11151
+ },] }
11152
+ ];
11153
+ ModifyTaskFormComponent.ctorParameters = function () { return [
11154
+ { type: businessObjectFactory.BusinessObjectFactory },
11155
+ { type: SharedService }
11156
+ ]; };
11157
+ ModifyTaskFormComponent.propDecorators = {
11158
+ activity: [{ type: i0.Input }],
11159
+ showClass: [{ type: i0.HostBinding, args: ["class.co-modify-task-form",] }],
11160
+ activityTaskConfigNames: [{ type: i0.Input }],
11161
+ readonly: [{ type: i0.Input }],
11162
+ popupContext: [{ type: i0.Input }],
11163
+ forceReadonly: [{ type: i0.Input }],
11164
+ hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }],
11165
+ activityChange: [{ type: i0.Output }],
11166
+ statusChange: [{ type: i0.Output }],
11167
+ showWorkLog: [{ type: i0.Output }]
11168
+ };
11169
+ __decorate([
11170
+ InputBoolean()
11171
+ ], ModifyTaskFormComponent.prototype, "forceReadonly", null);
11172
+
11173
+ var TaskModifierComponent = /** @class */ (function () {
11174
+ function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService) {
11175
+ this._dialogService = _dialogService;
11176
+ this._boFactory = _boFactory;
11177
+ this._dictionary = _dictionary;
11178
+ this.iconService = iconService;
11179
+ this.icons = exports["ɵbu"];
11180
+ this.editingComplete = new i0.EventEmitter();
11181
+ this.activitySaved = new i0.EventEmitter();
11182
+ this.activityDeleted = new i0.EventEmitter();
11183
+ this.closedWithoutComplete = new i0.EventEmitter();
11184
+ this.showWorkLog = new i0.EventEmitter();
11185
+ this.taskCreated = new i0.EventEmitter();
11186
+ this.taskModified = new i0.EventEmitter();
11187
+ this.showAfterInsert = false;
11188
+ this.showNewForm = false;
11189
+ this.showModificationForm = false;
11190
+ this.taskEditting = false;
11191
+ this.Icon = exports["ɵbu"];
11192
+ }
11193
+ Object.defineProperty(TaskModifierComponent.prototype, "readonly", {
11194
+ get: function () {
11195
+ //return this.moduleService.readonly &&
11196
+ return false;
11197
+ },
11198
+ enumerable: false,
11199
+ configurable: true
11200
+ });
11201
+ TaskModifierComponent.prototype.showClass = function () {
11202
+ return true;
11203
+ };
11204
+ Object.defineProperty(TaskModifierComponent.prototype, "showForm", {
11205
+ get: function () {
11206
+ return this.showNewForm || this.showModificationForm;
11207
+ },
11208
+ enumerable: false,
11209
+ configurable: true
11210
+ });
11211
+ Object.defineProperty(TaskModifierComponent.prototype, "header", {
11212
+ get: function () {
11213
+ return (this.showModificationForm) ? "TASK" : "ADD_TASK2";
11214
+ },
11215
+ enumerable: false,
11216
+ configurable: true
11217
+ });
11218
+ Object.defineProperty(TaskModifierComponent.prototype, "subHeader", {
11219
+ get: function () {
11220
+ return this.currentActivity ? this.currentActivity.task.taskId + "" : "";
11221
+ },
11222
+ enumerable: false,
11223
+ configurable: true
11224
+ });
11225
+ Object.defineProperty(TaskModifierComponent.prototype, "subSubHeader", {
11226
+ get: function () {
11227
+ var _a, _b, _c, _d, _e, _f;
11228
+ 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)) {
11229
+ var label = this._dictionary.get('LAST_CHANGE');
11230
+ var lastModifiedBy = (_e = this.currentActivity.task) === null || _e === void 0 ? void 0 : _e.lastModifiedDisplayName;
11231
+ var lastModifiedDate = (_f = this.currentActivity.task) === null || _f === void 0 ? void 0 : _f.lastModifiedDate.toLocaleString();
11232
+ return label + ': ' + lastModifiedBy + ' | ' + lastModifiedDate;
11233
+ }
11234
+ return "";
11235
+ },
11236
+ enumerable: false,
11237
+ configurable: true
11238
+ });
11239
+ Object.defineProperty(TaskModifierComponent.prototype, "subHeaderLink", {
11240
+ get: function () {
11241
+ if (this.showModificationForm && this.currentActivity && this.currentActivity.task) {
11242
+ if (this.currentActivity.task.workflowCategory && this.currentActivity.task.reference) {
11243
+ var activityName = void 0;
11244
+ activityName = this._dictionary.get("WORKFLOW_CATEGORY_" + this.currentActivity.task.workflowCategory) + " " + this.currentActivity.task.reference + ")";
11245
+ return activityName;
11246
+ }
11247
+ }
11248
+ return "";
11249
+ },
11250
+ enumerable: false,
11251
+ configurable: true
11252
+ });
11253
+ Object.defineProperty(TaskModifierComponent.prototype, "userIsTaskReporter", {
11254
+ get: function () {
11255
+ return this.editActivity &&
11256
+ ((this.editActivity.task.reporterUserGroupId && this.editActivity.task.reporterUserGroupId === this.userGroupId) ||
11257
+ (this.editActivity.task.reporter && this.editActivity.task.reporter.relationId === this.relationId));
11258
+ },
11259
+ enumerable: false,
11260
+ configurable: true
11261
+ });
11262
+ TaskModifierComponent.prototype.ngOnDestroy = function () {
11263
+ };
11264
+ TaskModifierComponent.prototype.handleSaveForm = function () {
11265
+ this.mainForm.submit();
11266
+ };
11267
+ TaskModifierComponent.prototype.onValid = function () {
11268
+ return __awaiter(this, void 0, void 0, function () {
11269
+ var newActivity, result;
11270
+ return __generator(this, function (_g) {
11271
+ switch (_g.label) {
11272
+ case 0:
11273
+ if (!this.editActivity) return [3 /*break*/, 2];
11274
+ newActivity = this.editActivity.isNew;
11275
+ return [4 /*yield*/, this.upsertActivityOperation(this.editActivity)];
11276
+ case 1:
11277
+ result = _g.sent();
11278
+ if (result) {
11279
+ this.activitySaved.next(this.editActivity);
11280
+ this.editingComplete.next(this.editActivity);
11281
+ if (newActivity) {
11282
+ this.taskCreated.next(this.editActivity.task);
11283
+ }
11284
+ else {
11285
+ this.taskModified.next(this.editActivity.task);
11286
+ }
11287
+ if (this.showAfterInsert) {
11288
+ this.startModifyingTask(this.editActivity);
11289
+ }
11290
+ }
11291
+ this.hide();
11292
+ _g.label = 2;
11293
+ case 2: return [2 /*return*/];
11294
+ }
11295
+ });
11296
+ });
11297
+ };
11298
+ TaskModifierComponent.prototype.handleCancelForm = function () {
11299
+ this._createClone();
11300
+ //TODO: is this needed?
11301
+ //this.moduleService.cancelEdit();
11302
+ this.closedWithoutComplete.next(true);
11303
+ this.hide();
11304
+ };
11305
+ TaskModifierComponent.prototype.onPopupClose = function () {
11306
+ this.forceReadonly = false;
11307
+ this.hide();
11308
+ this.closedWithoutComplete.next(true);
11309
+ };
11310
+ //TODO figure out routing from external component
11311
+ /*public openReferenceInModule(): void {
11312
+ if (this.currentActivity && this.currentActivity.task) {
11313
+ if (this.currentActivity.task.workflowCategory === WorkflowCategoryType.AbsenceFile || this.currentActivity.task.workflowCategory === WorkflowCategoryType.PreventiveAbsenceFile) {
11314
+ this._appNavigator.navigateToIOneModule(IOneModuleName.AbsenceFile, this.currentActivity.task.referenceId);
11315
+ }
11316
+ }
11317
+
11318
+ }*/
11319
+ TaskModifierComponent.prototype.hide = function () {
11320
+ this.showNewForm = false;
11321
+ this.showModificationForm = false;
11322
+ };
11323
+ TaskModifierComponent.prototype.deleteTask = function () {
11324
+ return __awaiter(this, void 0, void 0, function () {
11325
+ var doDelete;
11326
+ return __generator(this, function (_g) {
11327
+ switch (_g.label) {
11328
+ case 0: return [4 /*yield*/, this._dialogService.showYesNo("DELETE_TASK", "DELETE_TASK", false)];
11329
+ case 1:
11330
+ doDelete = _g.sent();
11331
+ if (!(doDelete.button === AppPopupButtonType.Yes)) return [3 /*break*/, 3];
11332
+ return [4 /*yield*/, this.deleteActivityOperation(this.editActivity)];
11333
+ case 2:
11334
+ _g.sent();
11335
+ this.activityDeleted.next(this.editActivity);
11336
+ this.hide();
11337
+ _g.label = 3;
11338
+ case 3: return [2 /*return*/];
11339
+ }
11340
+ });
11341
+ });
11342
+ };
11343
+ TaskModifierComponent.prototype.createNewTask = function (standalone) {
11344
+ if (standalone === void 0) { standalone = true; }
11345
+ return __awaiter(this, void 0, void 0, function () {
11346
+ var _g;
11347
+ return __generator(this, function (_h) {
11348
+ switch (_h.label) {
11349
+ case 0:
11350
+ if (this.showForm) {
11351
+ return [2 /*return*/];
11352
+ }
11353
+ this.showAfterInsert = false;
11354
+ _g = this;
11355
+ return [4 /*yield*/, this.createTaskOperation({ standalone: standalone, workflowCategory: this.workflowCategory, reference: this.reference, referenceId: this.referenceId })];
11356
+ case 1:
11357
+ _g.currentActivity = _h.sent();
11358
+ this._createClone();
11359
+ this.showNewForm = true;
11360
+ return [2 /*return*/];
11361
+ }
11362
+ });
11363
+ });
11364
+ };
11365
+ TaskModifierComponent.prototype.startModifyingTask = function (activity) {
11366
+ return __awaiter(this, void 0, void 0, function () {
11367
+ return __generator(this, function (_g) {
11368
+ switch (_g.label) {
11369
+ case 0:
11370
+ if (this.showForm || !activity.IsTask) {
11371
+ return [2 /*return*/];
11372
+ }
11373
+ this.showAfterInsert = false;
11374
+ return [4 /*yield*/, this.tryLockTaskOperation(activity.task.taskId)];
11375
+ case 1:
11376
+ _g.sent();
11377
+ activity.task = activity.task;
11378
+ this.currentActivity = activity;
11379
+ this._createClone();
11380
+ this.showModificationForm = true;
11381
+ return [2 /*return*/];
11382
+ }
11383
+ });
11384
+ });
11385
+ };
11386
+ TaskModifierComponent.prototype.startModifyingTaskAndWorkLog = function (activity) {
11387
+ return __awaiter(this, void 0, void 0, function () {
11388
+ return __generator(this, function (_g) {
11389
+ switch (_g.label) {
11390
+ case 0: return [4 /*yield*/, this.startModifyingTask(activity)];
11391
+ case 1:
11392
+ _g.sent();
11393
+ setTimeout(function () {
11394
+ /*if (this.modifyTaskForm) {
11395
+ this.modifyTaskForm.handleRegisterWork();
11396
+ }*/
11397
+ });
11398
+ return [2 /*return*/];
11399
+ }
11400
+ });
11401
+ });
11402
+ };
11403
+ TaskModifierComponent.prototype._createClone = function () {
11404
+ this.editActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, this.currentActivity);
11405
+ };
11406
+ TaskModifierComponent.prototype.doHandleStatusChange = function (editting) {
11407
+ this.taskEditting = editting;
11408
+ };
11409
+ TaskModifierComponent.prototype.updateEditActivity = function (activity) {
11410
+ this.editActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
11411
+ };
11412
+ return TaskModifierComponent;
11413
+ }());
11414
+ TaskModifierComponent.decorators = [
11415
+ { type: i0.Component, args: [{
11416
+ selector: "co-task-modifier",
11417
+ 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 "
11418
+ },] }
11419
+ ];
11420
+ TaskModifierComponent.ctorParameters = function () { return [
11421
+ { type: corecomponents_v12.CoreDialogService },
11422
+ { type: businessObjectFactory.BusinessObjectFactory },
11423
+ { type: DictionaryService },
11424
+ { type: IconCacheService }
11425
+ ]; };
11426
+ TaskModifierComponent.propDecorators = {
11427
+ mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
11428
+ modifyTaskForm: [{ type: i0.ViewChild, args: [i0.forwardRef(function () { return ModifyTaskFormComponent; }),] }],
11429
+ workflowCategory: [{ type: i0.Input }],
11430
+ reference: [{ type: i0.Input }],
11431
+ referenceId: [{ type: i0.Input }],
11432
+ userGroupId: [{ type: i0.Input }],
11433
+ relationId: [{ type: i0.Input }],
11434
+ upsertActivityOperation: [{ type: i0.Input }],
11435
+ deleteActivityOperation: [{ type: i0.Input }],
11436
+ tryLockTaskOperation: [{ type: i0.Input }],
11437
+ createTaskOperation: [{ type: i0.Input }],
11438
+ forceReadonly: [{ type: i0.Input }],
11439
+ editingComplete: [{ type: i0.Output }],
11440
+ activitySaved: [{ type: i0.Output }],
11441
+ activityDeleted: [{ type: i0.Output }],
11442
+ closedWithoutComplete: [{ type: i0.Output }],
11443
+ showWorkLog: [{ type: i0.Output }],
11444
+ taskCreated: [{ type: i0.Output }],
11445
+ taskModified: [{ type: i0.Output }],
11446
+ showClass: [{ type: i0.HostBinding, args: ["class.co-task-modifier",] }]
11447
+ };
11448
+ __decorate([
11449
+ InputBoolean()
11450
+ ], TaskModifierComponent.prototype, "forceReadonly", void 0);
11451
+
11452
+ var BaseActivityOverviewComponent = /** @class */ (function () {
11453
+ function BaseActivityOverviewComponent(_dialogService, _dictionaryService) {
11454
+ this._dialogService = _dialogService;
11455
+ this._dictionaryService = _dictionaryService;
11456
+ this.icon = exports["ɵbu"];
11457
+ this.cfgNames = ActivityCfgName;
11458
+ this.taskCfgNames = {
11459
+ timeRegistrationMandatory: ActivityCfgName.TimeRegistrationMandatory,
11460
+ deleteActivityTaskButton: ActivityCfgName.DeleteActivityTaskButton,
11461
+ statusSummaryHeader: ActivityCfgName.StatusSummaryHeader,
11462
+ creationSummaryHeader: ActivityCfgName.CreationSummaryHeader,
11463
+ executiveSummaryHeader: ActivityCfgName.ExecutiveSummaryHeader,
11464
+ planningSummaryHeader: ActivityCfgName.PlanningSummaryHeader,
11465
+ attachmentsHeader: ActivityCfgName.AttachmentsHeader,
11466
+ notificationsSummaryHeader: ActivityCfgName.NotificationsSummaryHeader,
11467
+ tagsHeader: ActivityCfgName.TagsHeader,
11468
+ taskInvoice: ActivityCfgName.TaskInvoice
11469
+ };
11470
+ this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
11471
+ this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
11472
+ this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
11473
+ this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
11474
+ this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
11475
+ this.fireGenericTriggerOperation = OperationWithValidationCallback;
11476
+ this.fireTriggerOperation = OperationWithValidationCallback;
11477
+ this.handleOpenLinkSidebar = false;
11478
+ this.activityChange = new i0.EventEmitter();
11479
+ this.activityDeleted = new i0.EventEmitter();
11480
+ this.triggerFired = new i0.EventEmitter();
11481
+ this.genericTriggerFired = new i0.EventEmitter();
11482
+ this.formCreated = new i0.EventEmitter();
11483
+ this.openLink = new i0.EventEmitter();
11484
+ this.linkClicked = new i0.EventEmitter();
11485
+ this.overDue = false;
11486
+ this.userIsSupervisor = false;
11487
+ this.urls = [];
11488
+ this.isTask = false;
11489
+ this.hasTriggers = false;
11490
+ this.sameDates = false;
11491
+ this._activity = new activity_bo.Activity();
11492
+ }
11493
+ Object.defineProperty(BaseActivityOverviewComponent.prototype, "viewModel", {
11494
+ set: function (value) {
11495
+ this._viewModel = value;
11496
+ this.overDue = value.overDue;
11497
+ this.activity = value.activity;
11498
+ },
11499
+ enumerable: false,
11500
+ configurable: true
11501
+ });
11502
+ Object.defineProperty(BaseActivityOverviewComponent.prototype, "triggerToFireOnSave", {
11503
+ get: function () {
11504
+ return this._triggerToFireOnSave;
11505
+ },
11506
+ set: function (value) {
11507
+ this._triggerToFireOnSave = value;
11508
+ },
11509
+ enumerable: false,
11510
+ configurable: true
11511
+ });
11512
+ Object.defineProperty(BaseActivityOverviewComponent.prototype, "activity", {
11513
+ get: function () {
11514
+ return this._activity;
11515
+ },
11516
+ set: function (value) {
11517
+ this._activity = value;
11518
+ this._prepareData();
11519
+ },
11520
+ enumerable: false,
11521
+ configurable: true
11522
+ });
11523
+ BaseActivityOverviewComponent.prototype.handleButtonEndClick = function () {
11524
+ this.handleTriggerClick(this.firstTriggerToCloseWF);
11525
+ };
11526
+ BaseActivityOverviewComponent.prototype.handleGenericTriggerClick = function (event) {
11527
+ return __awaiter(this, void 0, void 0, function () {
11528
+ var result, messages, len, i;
11529
+ return __generator(this, function (_a) {
11530
+ switch (_a.label) {
11531
+ case 0: return [4 /*yield*/, this.fireGenericTriggerOperation(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId)];
11532
+ case 1:
11533
+ result = _a.sent();
11534
+ if (result.success) {
11535
+ this.genericTriggerFired.next(this.activity);
11536
+ }
11537
+ else {
11538
+ messages = [];
11539
+ len = result.messages.length;
11540
+ for (i = 0; i < len; i++) {
11541
+ messages.push(this._dictionaryService.get(result.messages[i].message.toUpperCase()));
11542
+ }
11543
+ this._dialogService.showError(messages.toString());
11544
+ }
11545
+ return [2 /*return*/];
11546
+ }
11547
+ });
11548
+ });
11549
+ };
11550
+ BaseActivityOverviewComponent.prototype.handleTriggerClick = function (eventTrigger) {
11551
+ return __awaiter(this, void 0, void 0, function () {
11552
+ var result, messages, len, i;
11553
+ return __generator(this, function (_a) {
11554
+ switch (_a.label) {
11555
+ case 0:
11556
+ if (!(eventTrigger.isTaskTrigger && eventTrigger.taskId)) return [3 /*break*/, 1];
11557
+ //prepare task on the activity object, so the task modifier can handle it
11558
+ this.activity.task = new task_bo.Task();
11559
+ this.activity.activityType = activityType.ActivityType.Task;
11560
+ this.activity.task.taskId = eventTrigger.taskId;
11561
+ this.taskModifier.startModifyingTask(this.activity);
11562
+ return [3 /*break*/, 4];
11563
+ case 1:
11564
+ if (!eventTrigger.isFormTrigger) return [3 /*break*/, 2];
11565
+ return [3 /*break*/, 4];
11566
+ case 2: return [4 /*yield*/, this.fireTriggerOperation(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId)];
11567
+ case 3:
11568
+ result = _a.sent();
11569
+ if (result.success) {
11570
+ this.triggerFired.next(this.activity);
11571
+ }
11572
+ else {
11573
+ messages = [];
11574
+ len = result.messages.length;
11575
+ for (i = 0; i < len; i++) {
11576
+ messages.push(this._dictionaryService.get(result.messages[i].message.toUpperCase()));
11577
+ }
11578
+ this._dialogService.showError(messages.toString());
11579
+ }
11580
+ _a.label = 4;
11581
+ case 4: return [2 /*return*/];
11582
+ }
11583
+ });
11584
+ });
11585
+ };
11586
+ BaseActivityOverviewComponent.prototype.handleOpenLink = function (event, url) {
11587
+ this._stopEventPropagation(event);
11588
+ if (url) { // breadCrumbs to url
11589
+ this._openUrl(url);
11590
+ }
11591
+ else {
11592
+ this.startModifyingTask();
11593
+ }
11594
+ };
11595
+ BaseActivityOverviewComponent.prototype.handleOpenLinkOrUrl = function (event) {
11596
+ this._stopEventPropagation(event);
11597
+ if (this.link && this.link.module) {
11598
+ this.linkClicked.next({ module: this.link.module, id: this.link.id });
11599
+ }
11600
+ else if (this.urls && this.urls.length) {
11601
+ this._openUrl(this.urls[0]);
11602
+ }
11603
+ else {
11604
+ this.startModifyingTask();
11605
+ }
11606
+ };
11607
+ BaseActivityOverviewComponent.prototype.startModifyingTask = function () {
11608
+ if (this.workFlow && this.workFlow.workFlowHasOneTaskTrigger) {
11609
+ this.activity.task = new task_bo.Task();
11610
+ this.activity.activityType = activityType.ActivityType.Task;
11611
+ this.activity.task.taskId = this.workFlow.taskIdFromTaskTrigger;
11612
+ }
11613
+ if (this.activity.task) {
11614
+ if (this.handleOpenLinkSidebar === true) {
11615
+ this.openLink.next(this.activity);
11616
+ }
11617
+ else {
11618
+ this.taskModifier.startModifyingTask(this.activity);
11619
+ }
11620
+ }
11621
+ // TODO: for now a message is shown.
11622
+ else if (this.workFlow) {
11623
+ this._dialogService.showInformation("Component: " + this.workFlow.component + " key: " + this.workFlow.displayKey);
11624
+ }
11625
+ };
11626
+ BaseActivityOverviewComponent.prototype.showTaskFormAndWorkLog = function () {
11627
+ if (this.activity.task) {
11628
+ //TODO REINSTATE AFTER FIXING FORM
11629
+ //this.taskModifier.startModifyingTaskAndWorkLog(this.activity);
11630
+ }
11631
+ };
11632
+ BaseActivityOverviewComponent.prototype.onSaveActivity = function (activity) {
11633
+ this.activity = activity;
11634
+ this.activityChange.next(this.activity);
11635
+ };
11636
+ BaseActivityOverviewComponent.prototype.onDeleteActivity = function (activity) {
11637
+ if (this.activity.getId() === activity.getId()) {
11638
+ if (this._viewModel) {
11639
+ this._viewModel.deleted = true;
11640
+ this._viewModel.showing = false;
11641
+ this._viewModel.refreshViewModel();
11642
+ }
11643
+ this.activityDeleted.emit(activity);
11644
+ }
11645
+ };
11646
+ //TODO Reinstate once we know what to do with the formbuilder
11647
+ /*public doCancelForm(): void {
11648
+ this.showCreateForm = false;
11649
+ }
11650
+
11651
+ public async doSaveForm(form: FormResponse): Promise<void> {
11652
+ const result: ValidationResult = await this._formRepo.insertFormResponse(form);
11653
+ if (result.success) {
11654
+ this.formCreated.next();
11655
+ this.showCreateForm = false;
11656
+ }
11657
+ }*/
11658
+ BaseActivityOverviewComponent.prototype._prepareData = function () {
11659
+ this.workFlow = this._activity.workflow;
11660
+ if (this.workFlow) {
11661
+ this.workFlow.useSingleTaskTriggerAsTask = true;
11662
+ this.urls = this.workFlow.urls;
11663
+ this.hasTriggers = this.workFlow.hasTriggers;
11664
+ }
11665
+ this.activityName = this.activity.name;
11666
+ this.link = this.activity.link;
11667
+ this.linkDescription = this.activity.linkDescription;
11668
+ this.targetDate = this.activity.targetDateTime;
11669
+ this.deadlineDate = this.activity.deadlineDateTime;
11670
+ this.openButtonLabel = this.activity.linkLabel;
11671
+ this.activityTitle = this.activity.activityTitle;
11672
+ this.activityContextTitle = this.activity.activityContextTitle;
11673
+ this.isTask = this._activity.IsTask;
11674
+ this.sameDates = DateUtils.IsSameDay(this.targetDate, this.deadlineDate);
11675
+ this._setFirstTriggerToCloseWF();
11676
+ };
11677
+ BaseActivityOverviewComponent.prototype._setFirstTriggerToCloseWF = function () {
11678
+ if (isNill_function.isNill(this.workFlow) || isNill_function.isNill(this.workFlow.manualTriggers)) {
11679
+ return;
11680
+ }
11681
+ this.firstTriggerToCloseWF = undefined;
11682
+ var len = this.workFlow.manualTriggers.length;
11683
+ for (var i = 0; i < len; i++) {
11684
+ if (this.workFlow.manualTriggers[i].toClosedState) {
11685
+ this.firstTriggerToCloseWF = this.workFlow.manualTriggers[i];
11686
+ break;
11687
+ }
11688
+ }
11689
+ };
11690
+ BaseActivityOverviewComponent.prototype._openUrl = function (url) {
11691
+ var regEx = new RegExp(/(http)|(www.)/);
11692
+ if (regEx.test(url)) {
11693
+ window.open(url.indexOf("http") === -1 ? "http://" + url : url, "_blank");
11694
+ }
11695
+ else {
11696
+ //this._router.navigateByUrl(url);
11697
+ }
11698
+ };
11699
+ BaseActivityOverviewComponent.prototype._stopEventPropagation = function (event) {
11700
+ event.preventDefault();
11701
+ event.stopPropagation();
11702
+ event.stopImmediatePropagation();
11703
+ };
11704
+ return BaseActivityOverviewComponent;
11705
+ }());
11706
+ BaseActivityOverviewComponent.decorators = [
11707
+ { type: i0.Directive },
11708
+ { type: i0.Injectable }
11709
+ ];
11710
+ BaseActivityOverviewComponent.ctorParameters = function () { return [
11711
+ { type: corecomponents_v12.CoreDialogService },
11712
+ { type: DictionaryService }
11713
+ ]; };
11714
+ BaseActivityOverviewComponent.propDecorators = {
11715
+ taskModifier: [{ type: i0.ViewChild, args: [TaskModifierComponent, { static: true },] }],
11716
+ viewModel: [{ type: i0.Input }],
11717
+ triggerToFireOnSave: [{ type: i0.Input }],
11718
+ canFireTriggerOperation: [{ type: i0.Input }],
11719
+ prepareWorkflowOperation: [{ type: i0.Input }],
11720
+ lockTaskOperation: [{ type: i0.Input }],
11721
+ deleteActivityOperation: [{ type: i0.Input }],
11722
+ upsertActivityOperation: [{ type: i0.Input }],
11723
+ fireGenericTriggerOperation: [{ type: i0.Input }],
11724
+ fireTriggerOperation: [{ type: i0.Input }],
11725
+ userRelationId: [{ type: i0.Input }],
11726
+ userGroupId: [{ type: i0.Input }],
11727
+ handleOpenLinkSidebar: [{ type: i0.Input }],
11728
+ activityChange: [{ type: i0.Output }],
11729
+ activityDeleted: [{ type: i0.Output }],
11730
+ triggerFired: [{ type: i0.Output }],
11731
+ genericTriggerFired: [{ type: i0.Output }],
11732
+ formCreated: [{ type: i0.Output }],
11733
+ openLink: [{ type: i0.Output }],
11734
+ linkClicked: [{ type: i0.Output }]
11735
+ };
11736
+ __decorate([
11737
+ InputBoolean()
11738
+ ], BaseActivityOverviewComponent.prototype, "handleOpenLinkSidebar", void 0);
11739
+
11740
+ var PersonalActivityOverviewComponent = /** @class */ (function (_super) {
11741
+ __extends(PersonalActivityOverviewComponent, _super);
11742
+ function PersonalActivityOverviewComponent() {
11743
+ return _super !== null && _super.apply(this, arguments) || this;
11744
+ }
11745
+ PersonalActivityOverviewComponent.prototype.showClass = function () {
11746
+ return true;
11747
+ };
11748
+ return PersonalActivityOverviewComponent;
11749
+ }(BaseActivityOverviewComponent));
11750
+ PersonalActivityOverviewComponent.decorators = [
11751
+ { type: i0.Component, args: [{
11752
+ selector: "co-personal-activity-overview",
11753
+ 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 "
11754
+ },] }
11755
+ ];
11756
+ PersonalActivityOverviewComponent.propDecorators = {
11757
+ showClass: [{ type: i0.HostBinding, args: ["class.co-personal-activity-overview",] }]
11758
+ };
11759
+
11760
+ var ComponentActivityListComponent = /** @class */ (function (_super) {
11761
+ __extends(ComponentActivityListComponent, _super);
11762
+ function ComponentActivityListComponent() {
11763
+ var _this = _super.call(this) || this;
11764
+ _this.tabs = personalActivityTab_enum.PersonalActivityTabEnum;
11765
+ _this.icons = exports["ɵbu"];
11766
+ _this.activityClass = activity_bo.Activity;
11767
+ _this.activitySortType = activitySortType_enum.ActivitySortType;
11768
+ _this.hideTitle = false;
11769
+ _this.noFreeTasks = false;
11770
+ _this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
11771
+ _this.fireGenericTriggerOperation = OperationWithValidationCallback;
11772
+ _this.fireTriggerOperation = OperationWithValidationCallback;
11773
+ _this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
11774
+ _this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
11775
+ _this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
11776
+ _this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
11777
+ _this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
11778
+ _this.openLinkClick = new i0.EventEmitter();
11779
+ _this.amountActivityChanged = new i0.EventEmitter();
11780
+ _this.linkClicked = new i0.EventEmitter();
11781
+ _this.formCreated = new i0.EventEmitter();
11782
+ _this.genericTriggerFired = new i0.EventEmitter();
11783
+ _this.triggerFired = new i0.EventEmitter();
11784
+ _this.showUsergroupActivitiesChanged = new i0.EventEmitter();
11785
+ _this.activeTab = personalActivityTab_enum.PersonalActivityTabEnum.TODO;
11786
+ /*public activitySortList: boolean[] = [];*/
11787
+ _this.activityList = [];
11788
+ _this._subs = [];
11789
+ _this._activitiesList = [];
11790
+ return _this;
11791
+ }
11792
+ ComponentActivityListComponent.prototype.showClass = function () {
11793
+ return true;
11794
+ };
11795
+ Object.defineProperty(ComponentActivityListComponent.prototype, "table", {
11796
+ get: function () {
11797
+ return this._table;
11798
+ },
11799
+ set: function (value) {
11800
+ this._table = value;
11801
+ this.getTheActivities();
11802
+ },
11803
+ enumerable: false,
11804
+ configurable: true
11805
+ });
11806
+ Object.defineProperty(ComponentActivityListComponent.prototype, "key", {
11807
+ get: function () {
11808
+ return this._key;
11809
+ },
11810
+ set: function (value) {
11811
+ this._key = value;
11812
+ this.getTheActivities();
11813
+ },
11814
+ enumerable: false,
11815
+ configurable: true
11816
+ });
11817
+ ComponentActivityListComponent.prototype.trackByFn = function (index, vm) {
11818
+ return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
11819
+ };
11820
+ //TODO do we still need this?
11821
+ /*async ngOnInit(): Promise<void> {
11822
+ this._subs.push(
11823
+ this._appEventService.taskCreated.subscribe(() => {
11824
+ this.getTheActivities();
11825
+ }),
11826
+ this._appEventService.taskModified.subscribe(() => {
11827
+ this.getTheActivities();
11828
+ }),
11829
+ this._appEventService.triggerFired.subscribe(() => {
11830
+ this.getTheActivities();
11831
+ })
11832
+ );
11833
+ }*/
11834
+ ComponentActivityListComponent.prototype.ngOnDestroy = function () {
11835
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
11836
+ _super.prototype.ngOnDestroy.call(this);
11837
+ };
11838
+ Object.defineProperty(ComponentActivityListComponent.prototype, "activitiesList", {
11839
+ get: function () {
11840
+ return this._activitiesList;
11841
+ },
11842
+ set: function (allActivities) {
11843
+ this._activitiesList = allActivities;
11844
+ if (allActivities) {
11845
+ this.activities = this.noFreeTasks ? allActivities.filter(function (aa) { return !aa.task && aa.activityType !== activityType.ActivityType.WorkflowTask; }) :
11846
+ allActivities.filter(function (aa) { return aa.activityType !== activityType.ActivityType.WorkflowTask; });
11847
+ }
11848
+ else {
11849
+ this.activities = [];
11850
+ }
11851
+ },
11852
+ enumerable: false,
11853
+ configurable: true
11854
+ });
11855
+ /*public async getActivities(): Promise<void> {
11856
+ if (this.table && this.key) {
11857
+ const allActivities: Activity[] = await this._activityRepo.getComponentActivities(this.table, this.key);
11858
+ if (allActivities) {
11859
+ this.activities = this.noFreeTasks ? allActivities.filter(aa => !aa.task && aa.activityType !== ActivityType.WorkflowTask) :
11860
+ allActivities.filter(aa => aa.activityType !== ActivityType.WorkflowTask);
11861
+ } else {
11862
+ this.activities = [];
11863
+ }
11864
+ this.amountActivityChanged.next(this.activities.length);
11865
+ }
11866
+ }*/
11867
+ ComponentActivityListComponent.prototype.getDelegatedActivities = function () {
11868
+ return __awaiter(this, void 0, void 0, function () {
11869
+ return __generator(this, function (_a) {
11870
+ return [2 /*return*/];
11871
+ });
11872
+ });
11873
+ };
11874
+ /*//TODO there were already unused before the move. Can they go?
11875
+ public handleOpenLink(activity: Activity): void {
11876
+ this.openLinkClick.next(activity);
11877
+ }*/
11878
+ ComponentActivityListComponent.prototype.showUsergroupActivitiesChange = function () {
11879
+ this.showUsergroupActivitiesChanged.next();
11880
+ };
11881
+ ComponentActivityListComponent.prototype.handleTriggerFired = function (activity) {
11882
+ this.triggerFired.next(activity);
11883
+ };
11884
+ ComponentActivityListComponent.prototype.handleGenericTriggerFired = function (activity) {
11885
+ this.genericTriggerFired.next(activity);
11886
+ };
11887
+ ComponentActivityListComponent.prototype.handleFormCreation = function () {
11888
+ this.formCreated.next();
11889
+ };
11890
+ ComponentActivityListComponent.prototype.handleChangedActivity = function (idx, activity) {
11891
+ if (this.activities) {
11892
+ this.activities[idx] = activity;
11893
+ }
11894
+ };
11895
+ ComponentActivityListComponent.prototype.deleteActivity = function (activity) {
11896
+ this.amountActivityChanged.next(this.activities.length - 1);
11897
+ };
11898
+ ComponentActivityListComponent.prototype.reset = function () {
11899
+ _super.prototype.reset.call(this);
11900
+ this.activityList = [];
11901
+ };
11902
+ ComponentActivityListComponent.prototype.doFilterClicked = function (filter) {
11903
+ if (filter.from && filter.to) {
11904
+ this.filterFrom = new Date(filter.from);
11905
+ this.filterFrom.setHours(0);
11906
+ this.filterFrom.setMinutes(0);
11907
+ this.filterFrom.setSeconds(0);
11908
+ this.filterTo = new Date(filter.to);
11909
+ this.filterTo.setHours(0);
11910
+ this.filterTo.setMinutes(0);
11911
+ this.filterTo.setSeconds(0);
11912
+ }
11913
+ else {
11914
+ this.filterFrom = undefined;
11915
+ this.filterTo = undefined;
11916
+ }
11917
+ this.applyFilter();
11918
+ };
11919
+ ComponentActivityListComponent.prototype.openFirstTask = function () {
11920
+ if (!this.activities) {
11921
+ return;
11922
+ }
11923
+ var tasks = this.activities.filter((function (value) { return value.IsTask; }));
11924
+ if (tasks && tasks.length > 0) {
11925
+ var activityOverviews = this.activityOverviewList.toArray();
11926
+ if (activityOverviews && activityOverviews.length) {
11927
+ var len = activityOverviews.length;
11928
+ for (var i = 0; i < len; i++) {
11929
+ if (activityOverviews[i].activity.getId() === tasks[0].getId()) {
11930
+ activityOverviews[i].startModifyingTask();
11931
+ }
11932
+ }
11933
+ }
11934
+ }
11935
+ };
11936
+ return ComponentActivityListComponent;
11937
+ }(BaseActivityListComponent));
11938
+ ComponentActivityListComponent.decorators = [
11939
+ { type: i0.Component, args: [{
11940
+ selector: "co-component-activity-list",
11941
+ 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 [fireGenericTriggerOperation]=\"fireGenericTriggerOperation\"\n [fireTriggerOperation]=\"fireTriggerOperation\"\n [canFireTriggerOperation]=\"canFireTriggerOperation\"\n [viewModel]=\"activityViewModel\"\n [userRelationId]=\"relationId\"\n [userGroupId]=\"userGroupId\"\n [lockTaskOperation]=\"lockTaskOperation\"\n [deleteActivityOperation]=\"deleteActivityOperation\"\n [upsertActivityOperation]=\"upsertActivityOperation\"\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 [fireGenericTriggerOperation]=\"fireGenericTriggerOperation\"\n [fireTriggerOperation]=\"fireTriggerOperation\"\n [canFireTriggerOperation]=\"canFireTriggerOperation\"\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 ",
11942
+ animations: [
11943
+ animations.trigger("showHideContent", [
11944
+ animations.state("void", animations.style({ transform: "scaleY(0)", opacity: 0 })),
11945
+ animations.state("*", animations.style({ transform: "scaleY(1)", opacity: 1 })),
11946
+ animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
11947
+ ]),
11948
+ animations.trigger("showHideTab", [
11949
+ animations.state("TODO", animations.style({ transform: "translateX(0)" })),
11950
+ animations.state("DELEGATED", animations.style({ transform: "translateX(calc(-100% - 20px))" })),
11951
+ animations.transition("TODO <=> DELEGATED", animations.animate("200ms ease-in-out"))
11952
+ ])
11953
+ ]
11954
+ },] }
11955
+ ];
11956
+ ComponentActivityListComponent.ctorParameters = function () { return []; };
11957
+ ComponentActivityListComponent.propDecorators = {
11958
+ activityOverviewList: [{ type: i0.ViewChildren, args: [PersonalActivityOverviewComponent,] }],
11959
+ showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-list",] }],
11960
+ table: [{ type: i0.Input }],
11961
+ key: [{ type: i0.Input }],
11962
+ hideTitle: [{ type: i0.Input }],
11963
+ noFreeTasks: [{ type: i0.Input }],
11964
+ customTitle: [{ type: i0.Input }],
11965
+ userGroupId: [{ type: i0.Input }],
11966
+ relationId: [{ type: i0.Input }],
11967
+ componentActivitiesMethod: [{ type: i0.Input }],
11968
+ fireGenericTriggerOperation: [{ type: i0.Input }],
11969
+ fireTriggerOperation: [{ type: i0.Input }],
11970
+ canFireTriggerOperation: [{ type: i0.Input }],
11971
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
11972
+ lockTaskOperation: [{ type: i0.Input }],
11973
+ deleteActivityOperation: [{ type: i0.Input }],
11974
+ upsertActivityOperation: [{ type: i0.Input }],
11975
+ openLinkClick: [{ type: i0.Output }],
11976
+ amountActivityChanged: [{ type: i0.Output }],
11977
+ linkClicked: [{ type: i0.Output }],
11978
+ formCreated: [{ type: i0.Output }],
11979
+ genericTriggerFired: [{ type: i0.Output }],
11980
+ triggerFired: [{ type: i0.Output }],
11981
+ showUsergroupActivitiesChanged: [{ type: i0.Output }],
11982
+ activitiesList: [{ type: i0.Input }]
11983
+ };
11984
+ __decorate([
11985
+ InputBoolean()
11986
+ ], ComponentActivityListComponent.prototype, "hideTitle", void 0);
11987
+ __decorate([
11988
+ InputBoolean()
11989
+ ], ComponentActivityListComponent.prototype, "noFreeTasks", void 0);
11990
+
11991
+ var PersonalActivityOverviewModule = /** @class */ (function () {
11992
+ function PersonalActivityOverviewModule() {
11993
+ }
11994
+ return PersonalActivityOverviewModule;
11995
+ }());
11996
+ PersonalActivityOverviewModule.decorators = [
11997
+ { type: i0.NgModule, args: [{
11998
+ imports: [
11999
+ common.CommonModule
12000
+ ],
12001
+ declarations: [
12002
+ PersonalActivityOverviewComponent
12003
+ ],
12004
+ exports: [
12005
+ PersonalActivityOverviewComponent
12006
+ ]
12007
+ },] }
12008
+ ];
12009
+
12010
+ var ComponentActivityOverviewComponent = /** @class */ (function (_super) {
12011
+ __extends(ComponentActivityOverviewComponent, _super);
12012
+ function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService) {
12013
+ var _this = _super.call(this, dialogService, dictionaryService) || this;
12014
+ _this.iconCacheService = iconCacheService;
12015
+ _this.dialogService = dialogService;
12016
+ _this.dictionaryService = dictionaryService;
12017
+ _this.Icon = exports["ɵbu"];
12018
+ return _this;
12019
+ }
12020
+ ComponentActivityOverviewComponent.prototype.showClass = function () {
12021
+ return true;
12022
+ };
12023
+ return ComponentActivityOverviewComponent;
12024
+ }(BaseActivityOverviewComponent));
12025
+ ComponentActivityOverviewComponent.decorators = [
12026
+ { type: i0.Component, args: [{
12027
+ selector: "co-component-activity-overview",
12028
+ 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 [tryLockTaskOperation]=\"lockTaskOperation\"\n [deleteActivityOperation]=\"deleteActivityOperation\"\n [upsertActivityOperation]=\"upsertActivityOperation\"\n (editingComplete)=\"onSaveActivity($event)\"\n (activityDeleted)=\"onDeleteActivity($event)\"\n (showWorkLog)=\"showTaskFormAndWorkLog()\"\n ></co-task-modifier>\n\n ",
12029
+ /* providers: [
12030
+ {provide: BaseModuleScreenConfigService, useExisting: ScreenConfigurationMockService}
12031
+ ],*/
12032
+ animations: [
12033
+ animations.trigger("fadeInOut", [
12034
+ animations.state("void", animations.style({ opacity: 0 })),
12035
+ animations.state("*", animations.style({ opacity: 1 })),
12036
+ animations.transition(":enter, :leave", animations.animate("200ms ease-in-out")),
12037
+ ]),
12038
+ animations.trigger("showHideExtended", [
12039
+ animations.state("void", animations.style({ "transform-origin": "top center", transform: "scaleY(0)" })),
12040
+ animations.state("*", animations.style({ "transform-origin": "top center", transform: "scaleY(1)" })),
12041
+ animations.transition(":enter, :leave", [
12042
+ animations.animate("200ms ease-in-out")
12043
+ ])
12044
+ ])
12045
+ ]
12046
+ },] }
12047
+ ];
12048
+ ComponentActivityOverviewComponent.ctorParameters = function () { return [
12049
+ { type: IconCacheService },
12050
+ { type: corecomponents_v12.CoreDialogService },
12051
+ { type: DictionaryService }
12052
+ ]; };
12053
+ ComponentActivityOverviewComponent.propDecorators = {
12054
+ showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-overview",] }]
12055
+ };
12056
+
12057
+ var BaseActivitySummaryComponent = /** @class */ (function () {
12058
+ function BaseActivitySummaryComponent(dictionaryService, dialogService) {
12059
+ this.dictionaryService = dictionaryService;
12060
+ this.dialogService = dialogService;
12061
+ this.expanded = false;
12062
+ this.noBorder = false;
12063
+ this.readonly = false;
12064
+ this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
12065
+ this.fireTriggerOperation = OperationWithValidationCallback;
12066
+ this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
12067
+ this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
12068
+ this.activityChange = new i0.EventEmitter();
12069
+ this.showWorkLog = new i0.EventEmitter();
12070
+ this.triggerFired = new i0.EventEmitter();
12071
+ }
12072
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "activity", {
12073
+ get: function () {
12074
+ return this.editActivity;
12075
+ },
12076
+ set: function (value) {
12077
+ this.editActivity = value;
12078
+ },
12079
+ enumerable: false,
12080
+ configurable: true
12081
+ });
12082
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "workFlow", {
12083
+ get: function () {
12084
+ return this._workFlow;
12085
+ },
12086
+ set: function (value) {
12087
+ this._workFlow = value;
12088
+ },
12089
+ enumerable: false,
12090
+ configurable: true
12091
+ });
12092
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "task", {
12093
+ get: function () {
12094
+ return this._task;
12095
+ },
12096
+ set: function (value) {
12097
+ this._task = value;
12098
+ },
12099
+ enumerable: false,
12100
+ configurable: true
12101
+ });
12102
+ Object.defineProperty(BaseActivitySummaryComponent.prototype, "triggerToFireOnSave", {
12103
+ get: function () {
12104
+ return this._triggerToFireOnSave;
12105
+ },
12106
+ set: function (value) {
12107
+ this._triggerToFireOnSave = value;
12108
+ },
12109
+ enumerable: false,
12110
+ configurable: true
12111
+ });
12112
+ BaseActivitySummaryComponent.prototype.handleSave = function (event) {
12113
+ this._saveClone();
12114
+ };
12115
+ BaseActivitySummaryComponent.prototype.handleCancel = function (event) {
12116
+ this.expanded = false;
12117
+ };
12118
+ BaseActivitySummaryComponent.prototype.handleTriggerClick = function (trigger) {
12119
+ return __awaiter(this, void 0, void 0, function () {
12120
+ var canFire, result, messages, len, i;
12121
+ return __generator(this, function (_a) {
12122
+ switch (_a.label) {
12123
+ case 0:
12124
+ if (this.readonly) {
12125
+ return [2 /*return*/];
12126
+ }
12127
+ if (!trigger.toClosedState) return [3 /*break*/, 2];
12128
+ return [4 /*yield*/, this.canFireTriggerOperation({ editActivity: this.editActivity, task: this.editActivity.task })];
12129
+ case 1:
12130
+ canFire = _a.sent();
12131
+ if (!canFire) {
12132
+ this.triggerToFireOnSave = trigger;
12133
+ this.showWorkLog.next();
12134
+ return [2 /*return*/];
12135
+ }
12136
+ _a.label = 2;
12137
+ case 2: return [4 /*yield*/, this.fireTriggerOperation(trigger, null, null)];
12138
+ case 3:
12139
+ result = _a.sent();
12140
+ if (!result.success) return [3 /*break*/, 6];
12141
+ return [4 /*yield*/, this.updateActivityTask(this.editActivity.task)];
12142
+ case 4:
12143
+ _a.sent();
12144
+ return [4 /*yield*/, this.prepareWorkflow()];
12145
+ case 5:
12146
+ _a.sent();
12147
+ this.triggerFired.emit(this.workFlow);
12148
+ return [3 /*break*/, 7];
12149
+ case 6:
12150
+ messages = [];
12151
+ len = result.messages.length;
12152
+ for (i = 0; i < len; i++) {
12153
+ messages.push(this.dictionaryService.get(result.messages[i].message.toUpperCase()));
12154
+ }
12155
+ this.dialogService.showError(messages.toString());
12156
+ _a.label = 7;
12157
+ case 7: return [2 /*return*/];
12158
+ }
12159
+ });
12160
+ });
12161
+ };
12162
+ BaseActivitySummaryComponent.prototype.handleExpandClick = function (value) {
12163
+ this.expanded = value;
12164
+ };
12165
+ BaseActivitySummaryComponent.prototype.prepareWorkflow = function () {
12166
+ return __awaiter(this, void 0, void 0, function () {
12167
+ return __generator(this, function (_a) {
12168
+ switch (_a.label) {
12169
+ case 0:
12170
+ if (!(this.table && this.key)) return [3 /*break*/, 2];
12171
+ return [4 /*yield*/, this.prepareWorkflowOperation({ table: this.table, key: this.key })];
12172
+ case 1:
12173
+ _a.sent();
12174
+ _a.label = 2;
12175
+ case 2: return [2 /*return*/];
12176
+ }
12177
+ });
12178
+ });
12179
+ };
12180
+ BaseActivitySummaryComponent.prototype._saveClone = function () {
12181
+ this.activityChange.next(this.editActivity);
12182
+ };
12183
+ BaseActivitySummaryComponent.prototype.updateActivityTask = function (task) {
12184
+ return __awaiter(this, void 0, void 0, function () {
12185
+ return __generator(this, function (_a) {
12186
+ switch (_a.label) {
12187
+ case 0:
12188
+ if (!task) return [3 /*break*/, 2];
12189
+ return [4 /*yield*/, this.loadTaskOperation(task.taskId)];
12190
+ case 1:
12191
+ _a.sent();
12192
+ this.editActivity.task = this.task;
12193
+ this.activityChange.emit(this.editActivity);
12194
+ _a.label = 2;
12195
+ case 2: return [2 /*return*/];
12196
+ }
12197
+ });
12198
+ });
12199
+ };
12200
+ return BaseActivitySummaryComponent;
12201
+ }());
12202
+ BaseActivitySummaryComponent.decorators = [
12203
+ { type: i0.Directive }
12204
+ ];
12205
+ BaseActivitySummaryComponent.ctorParameters = function () { return [
12206
+ { type: DictionaryService },
12207
+ { type: corecomponents_v12.CoreDialogService }
12208
+ ]; };
12209
+ BaseActivitySummaryComponent.propDecorators = {
12210
+ activity: [{ type: i0.Input }],
12211
+ workFlow: [{ type: i0.Input }],
12212
+ task: [{ type: i0.Input }],
12213
+ table: [{ type: i0.Input }],
12214
+ key: [{ type: i0.Input }],
12215
+ expanded: [{ type: i0.Input }],
12216
+ noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
12217
+ readonly: [{ type: i0.Input }],
12218
+ canFireTriggerOperation: [{ type: i0.Input }],
12219
+ fireTriggerOperation: [{ type: i0.Input }],
12220
+ prepareWorkflowOperation: [{ type: i0.Input }],
12221
+ loadTaskOperation: [{ type: i0.Input }],
12222
+ triggerToFireOnSave: [{ type: i0.Input }],
12223
+ activityChange: [{ type: i0.Output }],
12224
+ showWorkLog: [{ type: i0.Output }],
12225
+ triggerFired: [{ type: i0.Output }],
12226
+ hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
12227
+ };
12228
+ __decorate([
12229
+ InputBoolean()
12230
+ ], BaseActivitySummaryComponent.prototype, "noBorder", void 0);
12231
+
12232
+ var TaskDetailsComponent = /** @class */ (function (_super) {
12233
+ __extends(TaskDetailsComponent, _super);
12234
+ function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService) {
12235
+ var _this = _super.call(this, dictionaryService, dialogService) || this;
12236
+ _this.dictionaryService = dictionaryService;
12237
+ _this.dialogService = dialogService;
12238
+ _this.iconCacheService = iconCacheService;
12239
+ _this.Icon = exports["ɵbu"];
12240
+ _this.showStatusDropdown = false;
12241
+ return _this;
12242
+ }
12243
+ Object.defineProperty(TaskDetailsComponent.prototype, "activity", {
12244
+ get: function () {
12245
+ return this.editActivity;
12246
+ },
12247
+ set: function (value) {
12248
+ this.editActivity = value;
12249
+ this.prepareWorkflow();
12250
+ },
12251
+ enumerable: false,
12252
+ configurable: true
12253
+ });
12254
+ TaskDetailsComponent.prototype.showClass = function () {
12255
+ return true;
12256
+ };
12257
+ TaskDetailsComponent.prototype.toggleStatusDropdown = function () {
12258
+ this.showStatusDropdown = !this.showStatusDropdown;
12259
+ };
12260
+ TaskDetailsComponent.prototype.handleTriggerClickAndClose = function (trigger) {
12261
+ this.handleTriggerClick(trigger);
12262
+ this.showStatusDropdown = false;
12263
+ };
12264
+ return TaskDetailsComponent;
12265
+ }(BaseActivitySummaryComponent));
12266
+ TaskDetailsComponent.decorators = [
12267
+ { type: i0.Component, args: [{
12268
+ selector: "co-task-details",
12269
+ 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 "
12270
+ },] }
12271
+ ];
12272
+ TaskDetailsComponent.ctorParameters = function () { return [
12273
+ { type: DictionaryService },
12274
+ { type: corecomponents_v12.CoreDialogService },
12275
+ { type: IconCacheService }
12276
+ ]; };
12277
+ TaskDetailsComponent.propDecorators = {
12278
+ activity: [{ type: i0.Input }],
12279
+ showClass: [{ type: i0.HostBinding, args: ["class.co-task-details",] }]
12280
+ };
12281
+
12282
+ var TaskDetailsModule = /** @class */ (function () {
12283
+ function TaskDetailsModule() {
12284
+ }
12285
+ return TaskDetailsModule;
12286
+ }());
12287
+ TaskDetailsModule.decorators = [
12288
+ { type: i0.NgModule, args: [{
12289
+ imports: [
12290
+ LocalizationModule,
12291
+ corecomponents_v12.InputTextModule,
12292
+ corecomponents_v12.InputTextareaModule,
12293
+ corecomponents_v12.IconModule,
12294
+ common.CommonModule,
12295
+ ],
12296
+ declarations: [
12297
+ TaskDetailsComponent
12298
+ ],
12299
+ exports: [
12300
+ TaskDetailsComponent
12301
+ ]
12302
+ },] }
12303
+ ];
12304
+
12305
+ var ActivitySummaryBlockComponent = /** @class */ (function () {
12306
+ function ActivitySummaryBlockComponent(_formMaster, elementRef) {
12307
+ this._formMaster = _formMaster;
12308
+ this.elementRef = elementRef;
12309
+ this.Icon = exports["ɵbu"];
12310
+ this.noBorder = false;
12311
+ this.readonly = false;
12312
+ this.showButtons = false;
12313
+ this.hideCancel = false;
12314
+ this.actionIcon = false;
12315
+ this.expandable = false;
12316
+ this.saveClick = new i0.EventEmitter();
12317
+ this.cancelClick = new i0.EventEmitter();
12318
+ }
12319
+ ActivitySummaryBlockComponent.prototype.showClass = function () {
12320
+ return true;
12321
+ };
12322
+ Object.defineProperty(ActivitySummaryBlockComponent.prototype, "summaryElement", {
12323
+ get: function () {
12324
+ return this.elementRef;
12325
+ },
12326
+ enumerable: false,
12327
+ configurable: true
12328
+ });
12329
+ ActivitySummaryBlockComponent.prototype.ngOnDestroy = function () {
12330
+ this.elementRef = undefined;
12331
+ };
12332
+ ActivitySummaryBlockComponent.prototype.handleOkClick = function (event) {
12333
+ if (this.mainForm) {
12334
+ this.mainForm.submit();
12335
+ }
12336
+ };
12337
+ ActivitySummaryBlockComponent.prototype.handleCancelClick = function (event) {
12338
+ this.cancelClick.next(event);
12339
+ };
12340
+ ActivitySummaryBlockComponent.prototype.onValid = function () {
12341
+ this.saveClick.next(null);
12342
+ };
12343
+ return ActivitySummaryBlockComponent;
12344
+ }());
12345
+ ActivitySummaryBlockComponent.decorators = [
12346
+ { type: i0.Component, args: [{
12347
+ selector: "co-activity-summary-block",
12348
+ 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 ",
12349
+ providers: [
12350
+ corecomponents_v12.FormMasterService
12351
+ ]
12352
+ },] }
12353
+ ];
12354
+ ActivitySummaryBlockComponent.ctorParameters = function () { return [
12355
+ { type: corecomponents_v12.FormMasterService },
12356
+ { type: i0.ElementRef }
12357
+ ]; };
12358
+ ActivitySummaryBlockComponent.propDecorators = {
12359
+ mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
12360
+ cssId: [{ type: i0.Input }],
12361
+ noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
12362
+ icon: [{ type: i0.Input }],
12363
+ editIcon: [{ type: i0.Input }],
12364
+ image: [{ type: i0.Input }],
12365
+ editTitle: [{ type: i0.Input }],
12366
+ editTemplate: [{ type: i0.Input }],
12367
+ extraButtonsTemplate: [{ type: i0.Input }],
12368
+ readonly: [{ type: i0.Input }],
12369
+ showButtons: [{ type: i0.Input }],
12370
+ hideCancel: [{ type: i0.Input }],
12371
+ actionIcon: [{ type: i0.HostBinding, args: ["class.icon-action",] }, { type: i0.Input }],
12372
+ expandable: [{ type: i0.Input }],
12373
+ saveClick: [{ type: i0.Output }],
12374
+ cancelClick: [{ type: i0.Output }],
12375
+ showClass: [{ type: i0.HostBinding, args: ["class.co-activity-summary-block",] }]
12376
+ };
12377
+ __decorate([
12378
+ InputBoolean()
12379
+ ], ActivitySummaryBlockComponent.prototype, "noBorder", void 0);
12380
+ __decorate([
12381
+ InputBoolean()
12382
+ ], ActivitySummaryBlockComponent.prototype, "hideCancel", void 0);
12383
+ __decorate([
12384
+ InputBoolean()
12385
+ ], ActivitySummaryBlockComponent.prototype, "actionIcon", void 0);
12386
+ __decorate([
12387
+ InputBoolean()
12388
+ ], ActivitySummaryBlockComponent.prototype, "expandable", void 0);
12389
+
12390
+ var ActivitySummaryBlockModule = /** @class */ (function () {
12391
+ function ActivitySummaryBlockModule() {
12392
+ }
12393
+ return ActivitySummaryBlockModule;
12394
+ }());
12395
+ ActivitySummaryBlockModule.decorators = [
12396
+ { type: i0.NgModule, args: [{
12397
+ imports: [
12398
+ corecomponents_v12.FormModule,
12399
+ corecomponents_v12.ButtonModule,
12400
+ common.CommonModule,
12401
+ LocalizationModule,
12402
+ corecomponents_v12.TemplateWrapperModule
12403
+ ],
12404
+ declarations: [
12405
+ ActivitySummaryBlockComponent
12406
+ ],
12407
+ exports: [
12408
+ ActivitySummaryBlockComponent
12409
+ ]
12410
+ },] }
12411
+ ];
12412
+
12413
+ var StatusSummaryBlockComponent = /** @class */ (function (_super) {
12414
+ __extends(StatusSummaryBlockComponent, _super);
12415
+ function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService) {
12416
+ var _this = _super.call(this, dictionaryService, dialogService) || this;
12417
+ _this.dictionaryService = dictionaryService;
12418
+ _this.dialogService = dialogService;
12419
+ _this.iconService = iconService;
12420
+ _this.Icon = exports["ɵbu"];
12421
+ return _this;
12422
+ }
12423
+ StatusSummaryBlockComponent.prototype.showClass = function () {
12424
+ return true;
12425
+ };
12426
+ StatusSummaryBlockComponent.prototype.ngOnInit = function () {
12427
+ return __awaiter(this, void 0, void 0, function () {
12428
+ return __generator(this, function (_a) {
12429
+ switch (_a.label) {
12430
+ case 0: return [4 /*yield*/, this.prepareWorkflow()];
12431
+ case 1:
12432
+ _a.sent();
12433
+ return [2 /*return*/];
12434
+ }
12435
+ });
12436
+ });
12437
+ };
12438
+ return StatusSummaryBlockComponent;
12439
+ }(BaseActivitySummaryComponent));
12440
+ StatusSummaryBlockComponent.decorators = [
12441
+ { type: i0.Component, args: [{
12442
+ selector: "co-status-summary-block",
12443
+ 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 ",
12444
+ providers: [{
12445
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
12446
+ useExisting: i0.forwardRef(function () { return StatusSummaryBlockComponent; })
12447
+ }]
12448
+ },] }
12449
+ ];
12450
+ StatusSummaryBlockComponent.ctorParameters = function () { return [
12451
+ { type: DictionaryService },
12452
+ { type: corecomponents_v12.CoreDialogService },
12453
+ { type: IconCacheService }
12454
+ ]; };
12455
+ StatusSummaryBlockComponent.propDecorators = {
12456
+ showClass: [{ type: i0.HostBinding, args: ["class.co-status-summary-block",] }]
12457
+ };
12458
+
12459
+ var StatusSummaryBlockModule = /** @class */ (function () {
12460
+ function StatusSummaryBlockModule() {
12461
+ }
12462
+ return StatusSummaryBlockModule;
12463
+ }());
12464
+ StatusSummaryBlockModule.decorators = [
12465
+ { type: i0.NgModule, args: [{
12466
+ imports: [
12467
+ ActivitySummaryBlockModule,
12468
+ corecomponents_v12.InputDateRangePickerModule,
12469
+ corecomponents_v12.InputDatePickerModule,
12470
+ LocalizationModule,
12471
+ corecomponents_v12.InputTextModule
12472
+ ],
12473
+ declarations: [
12474
+ StatusSummaryBlockComponent
12475
+ ],
12476
+ exports: [
12477
+ StatusSummaryBlockComponent
12478
+ ]
12479
+ },] }
12480
+ ];
12481
+
12482
+ var CreationSummaryBlockComponent = /** @class */ (function (_super) {
12483
+ __extends(CreationSummaryBlockComponent, _super);
12484
+ function CreationSummaryBlockComponent(dictionaryService, dialogService, sharedService, locale) {
12485
+ var _this = _super.call(this, dictionaryService, dialogService) || this;
12486
+ _this.dictionaryService = dictionaryService;
12487
+ _this.dialogService = dialogService;
12488
+ _this.sharedService = sharedService;
12489
+ _this.locale = locale;
12490
+ _this.Icon = exports["ɵbu"];
12491
+ _this.taskCategories = [];
12492
+ _this.priorityDomainColl = [];
12493
+ return _this;
12494
+ }
12495
+ CreationSummaryBlockComponent.prototype.showClass = function () {
12496
+ return true;
12497
+ };
12498
+ CreationSummaryBlockComponent.prototype.ngOnDestroy = function () {
12499
+ this.editTemplate = undefined;
12500
+ };
12501
+ CreationSummaryBlockComponent.prototype.ngOnInit = function () {
12502
+ var _this = this;
12503
+ this.sharedService.getTaskCategories().then(function (result) {
12504
+ _this.taskCategories = result;
12505
+ _this.chosenTaskCategory = _this.taskCategories.find(function (t) { return t.categoryId === _this.editActivity.task.categoryId; });
12506
+ });
12507
+ this.sharedService.getDomainCollection(this.locale, domainName_enum.DomainName.Priority).then(function (result) {
12508
+ _this.priorityDomainColl = result;
12509
+ if (_this.chosenTaskCategory) {
12510
+ _this.chosenPriority = _this._findDomainValueOfPriorityType(_this.editActivity.task.priority);
12511
+ }
12512
+ });
12513
+ };
12514
+ CreationSummaryBlockComponent.prototype.handleTaskCategoryChange = function (taskCategory) {
12515
+ if (this.taskCategories.length > 0 && taskCategory) {
12516
+ this.editActivity.task.categoryId = this.chosenTaskCategory.categoryId;
12517
+ this.editActivity.task.category = this.chosenTaskCategory.category;
12518
+ }
12519
+ };
12520
+ CreationSummaryBlockComponent.prototype.handlePriorityChange = function (domainValue) {
12521
+ if (this.priorityDomainColl.length > 0 && domainValue) {
12522
+ this.editActivity.task.priority = priorityType_enum.PriorityType[domainValue.code];
12523
+ }
12524
+ };
12525
+ CreationSummaryBlockComponent.prototype._findDomainValueOfPriorityType = function (priorityType) {
12526
+ if (!this.priorityDomainColl || isNill_function.isNill(priorityType)) {
12527
+ return undefined;
12528
+ }
12529
+ return this.priorityDomainColl.find(function (domainValue) {
12530
+ return domainValue.codeAsNumber === priorityType;
12531
+ });
12532
+ };
12533
+ return CreationSummaryBlockComponent;
12534
+ }(BaseActivitySummaryComponent));
12535
+ CreationSummaryBlockComponent.decorators = [
12536
+ { type: i0.Component, args: [{
12537
+ selector: "co-creation-summary-block",
12538
+ 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 ",
12539
+ providers: [{
12540
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
12541
+ useExisting: i0.forwardRef(function () { return CreationSummaryBlockComponent; })
12542
+ }]
12543
+ },] }
12544
+ ];
12545
+ CreationSummaryBlockComponent.ctorParameters = function () { return [
12546
+ { type: DictionaryService },
12547
+ { type: corecomponents_v12.CoreDialogService },
12548
+ { type: SharedService },
12549
+ { type: exports["ɵca"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
12550
+ ]; };
12551
+ CreationSummaryBlockComponent.propDecorators = {
12552
+ editTemplate: [{ type: i0.ViewChild, args: ["editTemplate", { static: true },] }],
12553
+ showClass: [{ type: i0.HostBinding, args: ["class.co-creation-summary-block",] }]
12554
+ };
12555
+
12556
+ var CreationSummaryBlockModule = /** @class */ (function () {
12557
+ function CreationSummaryBlockModule() {
12558
+ }
12559
+ return CreationSummaryBlockModule;
12560
+ }());
12561
+ CreationSummaryBlockModule.decorators = [
12562
+ { type: i0.NgModule, args: [{
12563
+ imports: [
12564
+ ActivitySummaryBlockModule,
12565
+ corecomponents_v12.InputDatePickerModule,
12566
+ corecomponents_v12.InputTextModule,
12567
+ LocalizationModule,
12568
+ common.CommonModule,
12569
+ corecomponents_v12.ListOfValuesModule
12570
+ ],
12571
+ declarations: [
12572
+ CreationSummaryBlockComponent
12573
+ ],
12574
+ exports: [
12575
+ CreationSummaryBlockComponent
12576
+ ]
12577
+ },] }
12578
+ ];
12579
+
12580
+ var RelationType;
12581
+ (function (RelationType) {
12582
+ RelationType["Executive"] = "executive";
12583
+ RelationType["Reporter"] = "reporter";
12584
+ RelationType["Supervisor"] = "supervisor";
12585
+ })(RelationType || (RelationType = {}));
12586
+ var ExecutiveSummaryBlockComponent = /** @class */ (function (_super) {
12587
+ __extends(ExecutiveSummaryBlockComponent, _super);
12588
+ function ExecutiveSummaryBlockComponent(dictionaryService, dialogService, _sharedService) {
12589
+ var _this = _super.call(this, dictionaryService, dialogService) || this;
12590
+ _this.dictionaryService = dictionaryService;
12591
+ _this.dialogService = dialogService;
12592
+ _this._sharedService = _sharedService;
12593
+ _this.RelationType = RelationType;
12594
+ _this.Icon = exports["ɵbu"];
12595
+ _this._textSearchParams = new relationRequest.RelationRequest();
12596
+ _this.personnel = [];
12597
+ return _this;
12598
+ }
12599
+ ExecutiveSummaryBlockComponent.prototype.showClass = function () {
12600
+ return true;
12601
+ };
12602
+ ExecutiveSummaryBlockComponent.prototype.ngOnInit = function () {
12603
+ return __awaiter(this, void 0, void 0, function () {
12604
+ var _this = this;
12605
+ return __generator(this, function (_a) {
12606
+ this._textSearchParams.relationTypeList = [relationKind_enum.RelationKind.Personnel];
12607
+ this._sharedService.getRelationListObjects(this._textSearchParams).then(function (result) {
12608
+ _this.personnel = result;
12609
+ });
12610
+ return [2 /*return*/];
12611
+ });
12612
+ });
12613
+ };
12614
+ return ExecutiveSummaryBlockComponent;
12615
+ }(BaseActivitySummaryComponent));
12616
+ ExecutiveSummaryBlockComponent.decorators = [
12617
+ { type: i0.Component, args: [{
12618
+ selector: "co-executive-summary-block",
12619
+ 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 ",
12620
+ providers: [{
12621
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
12622
+ useExisting: i0.forwardRef(function () { return ExecutiveSummaryBlockComponent; })
12623
+ }]
12624
+ },] }
12625
+ ];
12626
+ ExecutiveSummaryBlockComponent.ctorParameters = function () { return [
12627
+ { type: DictionaryService },
12628
+ { type: corecomponents_v12.CoreDialogService },
12629
+ { type: SharedService }
12630
+ ]; };
12631
+ ExecutiveSummaryBlockComponent.propDecorators = {
12632
+ showClass: [{ type: i0.HostBinding, args: ["class.co-executive-summary-block",] }]
12633
+ };
12634
+
12635
+ var ExecutiveSummaryBlockModule = /** @class */ (function () {
12636
+ function ExecutiveSummaryBlockModule() {
12637
+ }
12638
+ return ExecutiveSummaryBlockModule;
12639
+ }());
12640
+ ExecutiveSummaryBlockModule.decorators = [
12641
+ { type: i0.NgModule, args: [{
12642
+ imports: [
12643
+ LocalizationModule,
12644
+ corecomponents_v12.ListOfValuesModule,
12645
+ corecomponents_v12.InputDatePickerModule,
12646
+ ActivitySummaryBlockModule
12647
+ ],
12648
+ declarations: [
12649
+ ExecutiveSummaryBlockComponent
12650
+ ],
12651
+ exports: [
12652
+ ExecutiveSummaryBlockComponent
12653
+ ]
12654
+ },] }
12655
+ ];
12656
+
12657
+ var NotificationSummaryBlockComponent = /** @class */ (function (_super) {
12658
+ __extends(NotificationSummaryBlockComponent, _super);
12659
+ function NotificationSummaryBlockComponent(boFactory,
12660
+ //public activityService: ActivityService,
12661
+ dictionaryService, dialogService, sharedService) {
12662
+ var _this = _super.call(this, dictionaryService, dialogService) || this;
12663
+ _this.boFactory = boFactory;
12664
+ _this.dictionaryService = dictionaryService;
12665
+ _this.dialogService = dialogService;
12666
+ _this.sharedService = sharedService;
12667
+ _this.Icon = exports["ɵbu"];
12668
+ _this.listItems = [];
12669
+ return _this;
12670
+ }
12671
+ NotificationSummaryBlockComponent.prototype.showClass = function () {
12672
+ return true;
12673
+ };
12674
+ NotificationSummaryBlockComponent.prototype.ngOnInit = function () {
12675
+ return __awaiter(this, void 0, void 0, function () {
12676
+ var _a;
12677
+ return __generator(this, function (_b) {
12678
+ switch (_b.label) {
12679
+ case 0:
12680
+ if (!!isNill(this.editActivity.task.taskId)) return [3 /*break*/, 2];
12681
+ _a = this;
12682
+ return [4 /*yield*/, this.sharedService.getRoleEmailAddressesByWorkflowCategoryAndKey('TASK', (this.editActivity.task.taskId.toString()))];
12683
+ case 1:
12684
+ _a.listItems = _b.sent();
12685
+ _b.label = 2;
12686
+ case 2: return [2 /*return*/];
12687
+ }
12688
+ });
12689
+ });
12690
+ };
12691
+ NotificationSummaryBlockComponent.prototype.handleSendEmail = function (event) {
12692
+ this.handleSave(event);
12693
+ //this.activityService.sendTaskNotificationEmail(this.editActivity.task);
12694
+ };
12695
+ return NotificationSummaryBlockComponent;
12696
+ }(BaseActivitySummaryComponent));
12697
+ NotificationSummaryBlockComponent.decorators = [
12698
+ { type: i0.Component, args: [{
12699
+ selector: "co-notification-summary-block",
12700
+ 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 ",
12701
+ providers: [{
12702
+ provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
12703
+ useExisting: i0.forwardRef(function () { return NotificationSummaryBlockComponent; })
12704
+ }]
12705
+ },] }
12706
+ ];
12707
+ NotificationSummaryBlockComponent.ctorParameters = function () { return [
12708
+ { type: businessObjectFactory.BusinessObjectFactory },
12709
+ { type: DictionaryService },
12710
+ { type: corecomponents_v12.CoreDialogService },
12711
+ { type: SharedService }
12712
+ ]; };
12713
+ NotificationSummaryBlockComponent.propDecorators = {
12714
+ summaryBlock: [{ type: i0.ViewChild, args: [ActivitySummaryBlockComponent, { static: true },] }],
12715
+ showClass: [{ type: i0.HostBinding, args: ["class.co-notification-summary-block",] }]
12716
+ };
12717
+
12718
+ var NotificationSummaryBlockModule = /** @class */ (function () {
12719
+ function NotificationSummaryBlockModule() {
12720
+ }
12721
+ return NotificationSummaryBlockModule;
12722
+ }());
12723
+ NotificationSummaryBlockModule.decorators = [
12724
+ { type: i0.NgModule, args: [{
12725
+ imports: [
12726
+ ActivitySummaryBlockModule,
12727
+ corecomponents_v12.ListOfValuesModule,
12728
+ corecomponents_v12.ButtonModule,
12729
+ common.CommonModule
12730
+ ],
12731
+ declarations: [
12732
+ NotificationSummaryBlockComponent
12733
+ ],
12734
+ exports: [
12735
+ NotificationSummaryBlockComponent
12736
+ ]
12737
+ },] }
12738
+ ];
12739
+
12740
+ var ModifyTaskFormModule = /** @class */ (function () {
12741
+ function ModifyTaskFormModule() {
12742
+ }
12743
+ return ModifyTaskFormModule;
12744
+ }());
12745
+ ModifyTaskFormModule.decorators = [
12746
+ { type: i0.NgModule, args: [{
12747
+ imports: [
12748
+ LocalizationModule,
12749
+ TaskDetailsModule,
12750
+ corecomponents_v12.InputCheckboxModule,
12751
+ ExecutiveSummaryBlockModule,
12752
+ StatusSummaryBlockModule,
12753
+ CreationSummaryBlockModule,
12754
+ NotificationSummaryBlockModule,
12755
+ ActivityListModule
12756
+ ],
12757
+ declarations: [
12758
+ ModifyTaskFormComponent
12759
+ ],
12760
+ exports: [
12761
+ ModifyTaskFormComponent
12762
+ ]
12763
+ },] }
12764
+ ];
12765
+
12766
+ var TaskModifyerModule = /** @class */ (function () {
12767
+ function TaskModifyerModule() {
12768
+ }
12769
+ return TaskModifyerModule;
12770
+ }());
12771
+ TaskModifyerModule.decorators = [
12772
+ { type: i0.NgModule, args: [{
12773
+ imports: [
12774
+ corecomponents_v12.FormModule,
12775
+ corecomponents_v12.CoDialogModule,
12776
+ LocalizationModule,
12777
+ common.CommonModule,
12778
+ corecomponents_v12.ButtonModule,
12779
+ ModifyTaskFormModule
12780
+ ],
12781
+ declarations: [
12782
+ TaskModifierComponent
12783
+ ],
12784
+ exports: [
12785
+ TaskModifierComponent
12786
+ ],
12787
+ providers: [
12788
+ businessObjectFactory.BusinessObjectFactory
12789
+ ]
12790
+ },] }
12791
+ ];
12792
+
12793
+ var ComponentActivityOverviewModule = /** @class */ (function () {
12794
+ function ComponentActivityOverviewModule() {
12795
+ }
12796
+ return ComponentActivityOverviewModule;
12797
+ }());
12798
+ ComponentActivityOverviewModule.decorators = [
12799
+ { type: i0.NgModule, args: [{
12800
+ imports: [
12801
+ corecomponents_v12.ButtonModule,
12802
+ common.CommonModule,
12803
+ LocalizationModule,
12804
+ corecomponents_v12.IconModule,
12805
+ TaskModifyerModule
12806
+ ],
12807
+ declarations: [
12808
+ ComponentActivityOverviewComponent
12809
+ ],
12810
+ exports: [
12811
+ ComponentActivityOverviewComponent
12812
+ ],
12813
+ },] }
12814
+ ];
12815
+
12816
+ var ActivityListHeaderComponent = /** @class */ (function () {
12817
+ function ActivityListHeaderComponent(iconService) {
12818
+ this.iconService = iconService;
12819
+ this.icons = exports["ɵbu"];
12820
+ this.activitySortType = activitySortType_enum.ActivitySortType;
12821
+ this.title = 'MY_WORK';
12822
+ this.searchTextChange = new i0.EventEmitter();
12823
+ this.periodFilterClicked = new i0.EventEmitter();
12824
+ this.showUsergroupActivitiesChange = new i0.EventEmitter();
12825
+ }
12826
+ ActivityListHeaderComponent.prototype.showClass = function () {
12827
+ return true;
12828
+ };
12829
+ ActivityListHeaderComponent.prototype.onToggleClicked = function (toggled) {
12830
+ this.showUsergroupActivitiesChange.emit(toggled);
12831
+ };
12832
+ return ActivityListHeaderComponent;
12833
+ }());
12834
+ ActivityListHeaderComponent.decorators = [
12835
+ { type: i0.Component, args: [{
12836
+ selector: "co-activity-list-header",
12837
+ 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 "
12838
+ },] }
12839
+ ];
12840
+ ActivityListHeaderComponent.ctorParameters = function () { return [
12841
+ { type: IconCacheService }
12842
+ ]; };
12843
+ ActivityListHeaderComponent.propDecorators = {
12844
+ title: [{ type: i0.Input }],
12845
+ searchText: [{ type: i0.Input }],
12846
+ showUsergroupActivities: [{ type: i0.Input }],
12847
+ table: [{ type: i0.Input }],
12848
+ key: [{ type: i0.Input }],
12849
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
12850
+ searchTextChange: [{ type: i0.Output }],
12851
+ periodFilterClicked: [{ type: i0.Output }],
12852
+ showUsergroupActivitiesChange: [{ type: i0.Output }],
12853
+ showClass: [{ type: i0.HostBinding, args: ["class.co-activity-list-header",] }]
12854
+ };
12855
+
12856
+ var WorkflowNotificationTogglePopupComponent = /** @class */ (function () {
12857
+ function WorkflowNotificationTogglePopupComponent(element, iconService) {
12858
+ this.element = element;
12859
+ this.iconService = iconService;
12860
+ this.icons = exports["ɵbu"];
12861
+ this.workflowProcesses = [];
12862
+ this.closePopupClicked = new i0.EventEmitter();
12863
+ this.workflowProcessClicked = new i0.EventEmitter();
12864
+ }
12865
+ WorkflowNotificationTogglePopupComponent.prototype.ngOnDestroy = function () {
12866
+ this.element = undefined;
12867
+ };
12868
+ return WorkflowNotificationTogglePopupComponent;
12869
+ }());
12870
+ WorkflowNotificationTogglePopupComponent.decorators = [
12871
+ { type: i0.Component, args: [{
12872
+ selector: "co-workflow-notification-toggle-popup",
12873
+ 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>"
12874
+ },] }
12875
+ ];
12876
+ WorkflowNotificationTogglePopupComponent.ctorParameters = function () { return [
12877
+ { type: i0.ElementRef },
12878
+ { type: IconCacheService }
12879
+ ]; };
12880
+ WorkflowNotificationTogglePopupComponent.propDecorators = {
12881
+ workflowProcesses: [{ type: i0.Input }],
12882
+ parentForOverlay: [{ type: i0.Input }],
12883
+ closePopupClicked: [{ type: i0.Output }],
12884
+ workflowProcessClicked: [{ type: i0.Output }]
12885
+ };
12886
+
12887
+ var WorkflowNotificationToggleComponent = /** @class */ (function () {
12888
+ function WorkflowNotificationToggleComponent(element, iconService, sharedService, _overlayService) {
12889
+ this.element = element;
12890
+ this.iconService = iconService;
12891
+ this.sharedService = sharedService;
12892
+ this._overlayService = _overlayService;
12893
+ this.icons = exports["ɵbu"];
12894
+ this.workflowProcesses = [];
12895
+ this.showPopup = false;
12896
+ }
12897
+ WorkflowNotificationToggleComponent.prototype.showClass = function () {
12898
+ return true;
12899
+ };
12900
+ WorkflowNotificationToggleComponent.prototype.ngOnInit = function () {
12901
+ this._loadWorkflowProcesses();
12902
+ };
12903
+ WorkflowNotificationToggleComponent.prototype._loadWorkflowProcesses = function () {
12904
+ return __awaiter(this, void 0, void 0, function () {
12905
+ var _a;
12906
+ return __generator(this, function (_b) {
12907
+ switch (_b.label) {
12908
+ case 0:
12909
+ _a = this;
12910
+ return [4 /*yield*/, this.sharedService.getActiveProcessesByTableAndKey(tableName_enum.TableName[this.table], this.key)];
12911
+ case 1:
12912
+ _a.workflowProcesses = _b.sent();
12913
+ return [2 /*return*/];
12914
+ }
12915
+ });
12916
+ });
12917
+ };
12918
+ WorkflowNotificationToggleComponent.prototype.buttonClicked = function () {
12919
+ if (!this.showPopup) {
12920
+ this.openPopup();
12921
+ }
12922
+ else {
12923
+ this.closePopup();
12924
+ }
12925
+ };
12926
+ WorkflowNotificationToggleComponent.prototype.openPopup = function () {
12927
+ var _this = this;
12928
+ this.showPopup = true;
12929
+ this._workflowPopupRef = this._overlayService.createComponent(WorkflowNotificationTogglePopupComponent, { parentForOverlay: this.element, workflowProcesses: this.workflowProcesses }, {
12930
+ closePopupClicked: function () { return _this.closePopup(); },
12931
+ workflowProcessClicked: function (WorkflowProcess) { return _this.handleWorkflowToggle(WorkflowProcess); }
12932
+ });
12933
+ };
12934
+ WorkflowNotificationToggleComponent.prototype.closePopup = function () {
12935
+ this.showPopup = false;
12936
+ this._overlayService.removeComponent(this._workflowPopupRef);
12937
+ };
12938
+ WorkflowNotificationToggleComponent.prototype.handleWorkflowToggle = function (workflow) {
12939
+ return __awaiter(this, void 0, void 0, function () {
12940
+ var valResult;
12941
+ return __generator(this, function (_a) {
12942
+ switch (_a.label) {
12943
+ case 0: return [4 /*yield*/, this.setHasPausedNotificationsForWorkflowProcessOperation(workflow.workflowProcessId, !workflow.hasPausedNotifications, null)];
12944
+ case 1:
12945
+ valResult = _a.sent();
12946
+ if (valResult && valResult.success) {
12947
+ workflow.hasPausedNotifications = !workflow.hasPausedNotifications;
12948
+ }
12949
+ return [2 /*return*/];
12950
+ }
12951
+ });
12952
+ });
12953
+ };
12954
+ return WorkflowNotificationToggleComponent;
12955
+ }());
12956
+ WorkflowNotificationToggleComponent.decorators = [
12957
+ { type: i0.Component, args: [{
12958
+ selector: "co-workflow-notification-toggle",
12959
+ 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 "
12960
+ },] }
12961
+ ];
12962
+ WorkflowNotificationToggleComponent.ctorParameters = function () { return [
12963
+ { type: i0.ElementRef },
12964
+ { type: IconCacheService },
12965
+ { type: SharedService },
12966
+ { type: corecomponents_v12.OverlayService }
12967
+ ]; };
12968
+ WorkflowNotificationToggleComponent.propDecorators = {
12969
+ table: [{ type: i0.Input }],
12970
+ key: [{ type: i0.Input }],
12971
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
12972
+ showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-notification-toggle",] }]
12973
+ };
12974
+
12975
+ // App-wide service to place and remove template refs into the global absolute overlay outlet component.
12976
+ var AppAbsoluteOverlayOutletService = /** @class */ (function () {
12977
+ function AppAbsoluteOverlayOutletService() {
12978
+ this.templateCreateRequest = new rxjs.Subject();
12979
+ this.templateDestroyRequest = new rxjs.Subject();
12980
+ }
12981
+ AppAbsoluteOverlayOutletService.prototype.placeTemplateIntoOverlay = function (template) {
12982
+ this.templateCreateRequest.next(template);
12983
+ };
12984
+ AppAbsoluteOverlayOutletService.prototype.removeTemplateFromOverlay = function (template) {
12985
+ this.templateDestroyRequest.next(template);
12986
+ };
12987
+ return AppAbsoluteOverlayOutletService;
12988
+ }());
12989
+ AppAbsoluteOverlayOutletService.decorators = [
12990
+ { type: i0.Injectable }
12991
+ ];
12992
+ AppAbsoluteOverlayOutletService.ctorParameters = function () { return []; };
12993
+
12994
+ // Directive applicable to <ng-template>'s of components. Places template content in the app's absolute overlay outlet.
12995
+ var AbsoluteOverlayTemplateDirective = /** @class */ (function () {
12996
+ function AbsoluteOverlayTemplateDirective(_outletService) {
12997
+ this._outletService = _outletService;
12998
+ }
12999
+ // spawn host template in absolute overlay outlet
13000
+ AbsoluteOverlayTemplateDirective.prototype.ngOnInit = function () {
13001
+ this._outletService.placeTemplateIntoOverlay(this.absoluteOverlayTemplate);
13002
+ };
13003
+ // de-spawn host template from absolute overlay outlet
13004
+ AbsoluteOverlayTemplateDirective.prototype.ngOnDestroy = function () {
13005
+ this._outletService.removeTemplateFromOverlay(this.absoluteOverlayTemplate);
13006
+ this.absoluteOverlayTemplate = undefined;
13007
+ };
13008
+ return AbsoluteOverlayTemplateDirective;
13009
+ }());
13010
+ AbsoluteOverlayTemplateDirective.decorators = [
13011
+ { type: i0.Directive, args: [{
13012
+ selector: "[absoluteOverlayTemplate]"
13013
+ },] }
13014
+ ];
13015
+ AbsoluteOverlayTemplateDirective.ctorParameters = function () { return [
13016
+ { type: AppAbsoluteOverlayOutletService }
13017
+ ]; };
13018
+ AbsoluteOverlayTemplateDirective.propDecorators = {
13019
+ absoluteOverlayTemplate: [{ type: i0.Input }]
13020
+ };
13021
+
13022
+ // @dynamic
13023
+ var EventUtils = /** @class */ (function () {
13024
+ function EventUtils() {
13025
+ }
13026
+ Object.defineProperty(EventUtils, "passiveSupported", {
13027
+ get: function () {
13028
+ if (isNill(EventUtils._passiveSupported)) {
13029
+ EventUtils._CheckPassiveSupported();
13030
+ }
13031
+ return EventUtils._passiveSupported;
13032
+ },
13033
+ enumerable: false,
13034
+ configurable: true
13035
+ });
13036
+ Object.defineProperty(EventUtils, "passiveBubble", {
13037
+ get: function () {
13038
+ if (isNill(EventUtils._passiveBubble)) {
13039
+ EventUtils._passiveBubble = EventUtils.passiveSupported ? { passive: true, capture: false } : false;
13040
+ }
13041
+ return EventUtils._passiveBubble;
13042
+ },
13043
+ enumerable: false,
13044
+ configurable: true
13045
+ });
13046
+ Object.defineProperty(EventUtils, "passiveCapture", {
13047
+ get: function () {
13048
+ if (isNill(EventUtils._passiveCapture)) {
13049
+ EventUtils._passiveCapture = EventUtils.passiveSupported ? { passive: true, capture: true } : true;
13050
+ }
13051
+ return EventUtils._passiveCapture;
13052
+ },
13053
+ enumerable: false,
13054
+ configurable: true
13055
+ });
13056
+ EventUtils.GetMouseEventOrTouch = function (originalEvent) {
13057
+ return originalEvent instanceof MouseEvent ? originalEvent : originalEvent.touches[0];
13058
+ };
13059
+ EventUtils.StopEvent = function (event) {
13060
+ if (!event) {
13061
+ return;
13062
+ }
13063
+ event.preventDefault();
13064
+ event.stopPropagation();
13065
+ event.stopImmediatePropagation();
13066
+ };
13067
+ EventUtils.KillEvent = function (event) {
13068
+ this.StopEvent(event);
13069
+ if (event) {
13070
+ event.stopPropagation();
13071
+ }
13072
+ };
13073
+ EventUtils._CheckPassiveSupported = function () {
13074
+ var passiveSupported = false;
13075
+ try {
13076
+ var options = Object.defineProperty({}, "passive", {
13077
+ get: function () {
13078
+ passiveSupported = true;
13079
+ }
13080
+ });
13081
+ window.addEventListener("test", null, options);
13082
+ // Q; what is this? do we have to window.removeEventListener it?
13083
+ // A: no, because it will certainly fail, but before it does it might have set the passiveSupported variable :)
13084
+ }
13085
+ catch (e) {
13086
+ }
13087
+ this._passiveSupported = passiveSupported;
13088
+ };
13089
+ return EventUtils;
13090
+ }());
13091
+ EventUtils._passiveSupported = null;
13092
+ EventUtils._passiveCapture = null;
13093
+ EventUtils._passiveBubble = null;
13094
+
13095
+ var BrowserUtils = /** @class */ (function () {
13096
+ function BrowserUtils() {
13097
+ }
13098
+ BrowserUtils.ScrollToTop = function (nativeElement, milliSeconds) {
13099
+ if (milliSeconds === void 0) { milliSeconds = 200; }
13100
+ return BrowserUtils._ScrollTo("scrollTop", nativeElement, milliSeconds, 0);
13101
+ };
13102
+ BrowserUtils.DownloadFile = function (encodedUri, fileType) {
13103
+ var link = document.createElement("a");
13104
+ var date = new Date().toDateString();
13105
+ link.href = encodedUri;
13106
+ link.target = "_blank";
13107
+ link.download = "export_" + date + fileType;
13108
+ document.body.appendChild(link);
13109
+ link.click();
13110
+ document.body.removeChild(link);
13111
+ };
13112
+ BrowserUtils.CopyToClipboard = function (data) {
13113
+ var textArea = document.createElement("TEXTAREA");
13114
+ var textNode = document.createTextNode(data);
13115
+ textArea.appendChild(textNode);
13116
+ document.body.appendChild(textArea); // Required for FF
13117
+ textArea.select();
13118
+ document.execCommand("copy");
13119
+ document.body.removeChild(textArea);
13120
+ };
13121
+ BrowserUtils.TabFocusNextElement = function () {
13122
+ var nextTabStop = BrowserUtils._FindNextTabStop(document.activeElement);
13123
+ if (nextTabStop) {
13124
+ nextTabStop.focus();
13125
+ }
13126
+ };
13127
+ BrowserUtils.AreDimensionsInView = function (dimensions, view) {
13128
+ var vp = BrowserUtils.GetDimensions(view);
13129
+ return dimensions.top >= vp.top && dimensions.left >= vp.left && dimensions.bottom <= vp.bottom && dimensions.right <= vp.right;
13130
+ };
13131
+ BrowserUtils.HorizontalFitInView = function (dimensions, view) {
13132
+ var vp = BrowserUtils.GetDimensions(view);
13133
+ return dimensions.left >= vp.left && dimensions.right <= vp.right;
13134
+ };
13135
+ BrowserUtils.VerticalFitInView = function (dimensions, view) {
13136
+ var vp = BrowserUtils.GetDimensions(view);
13137
+ return dimensions.top >= vp.top && dimensions.bottom <= vp.bottom;
13138
+ };
13139
+ BrowserUtils.GetViewport = function () {
13140
+ var viewPortWidth;
13141
+ var viewPortHeight;
13142
+ // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
13143
+ if (typeof window.innerWidth !== "undefined") {
13144
+ viewPortWidth = window.innerWidth;
13145
+ viewPortHeight = window.innerHeight;
13146
+ }
13147
+ else if (typeof document.documentElement !== "undefined" &&
13148
+ typeof document.documentElement.clientWidth !== "undefined" &&
13149
+ document.documentElement.clientWidth !== 0) {
13150
+ viewPortWidth = document.documentElement.clientWidth;
13151
+ viewPortHeight = document.documentElement.clientHeight;
13152
+ }
13153
+ else {
13154
+ viewPortWidth = document.getElementsByTagName("body")[0].clientWidth;
13155
+ viewPortHeight = document.getElementsByTagName("body")[0].clientHeight;
13156
+ }
13157
+ return { left: 0, top: 0, right: viewPortWidth, bottom: viewPortHeight };
13158
+ };
13159
+ BrowserUtils.GetDimensions = function (view) {
13160
+ if (!view) {
13161
+ return this.GetViewport();
13162
+ }
13163
+ else {
13164
+ var elem = view instanceof HTMLElement ? view : view.nativeElement;
13165
+ var cr = elem.getBoundingClientRect();
13166
+ return { left: cr.left, top: cr.top, right: cr.right, bottom: cr.bottom };
13167
+ }
13168
+ };
13169
+ // Recursive.
13170
+ BrowserUtils._ScrollTo = function (elementScrollProp, element, milliSeconds, toScrollEnd) {
13171
+ if (!element || milliSeconds <= 0) {
13172
+ return;
13173
+ }
13174
+ var difference = toScrollEnd - element[elementScrollProp];
13175
+ var scrollPerTick = difference / milliSeconds * 10;
13176
+ setTimeout(function () {
13177
+ element[elementScrollProp] = element[elementScrollProp] + scrollPerTick;
13178
+ if (element[elementScrollProp] === toScrollEnd) {
13179
+ return;
13180
+ }
13181
+ BrowserUtils._ScrollTo(elementScrollProp, element, milliSeconds - 10, toScrollEnd);
13182
+ }, 10);
13183
+ };
13184
+ BrowserUtils._FindNextTabStop = function (element) {
13185
+ 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)");
13186
+ var actualStopEls = [];
13187
+ for (var i = 0, len = tabStopElements.length; i < len; i++) {
13188
+ var tabEl = tabStopElements[i];
13189
+ if (tabEl.tabIndex >= 0) {
13190
+ actualStopEls.push(tabEl);
13191
+ }
13192
+ }
13193
+ var elIdx = actualStopEls.indexOf(element);
13194
+ return actualStopEls[elIdx + 1] || undefined;
13195
+ };
13196
+ return BrowserUtils;
13197
+ }());
13198
+
13199
+ var AlignWithDirective = /** @class */ (function () {
13200
+ function AlignWithDirective(_ngZone, _elementRef) {
13201
+ var _this = this;
13202
+ this._ngZone = _ngZone;
13203
+ this._elementRef = _elementRef;
13204
+ this.keepInView = true;
13205
+ this.keepInViewHorizontal = true;
13206
+ this.keepInViewVertical = true;
13207
+ this.ajustableHeight = false;
13208
+ this.alignTopOffsetPx = 0;
13209
+ this.alignLeftOffsetPx = 0;
13210
+ this.fixed = "fixed";
13211
+ this.scroll = function () {
13212
+ _this._alignWithZone();
13213
+ };
13214
+ this.resize = function () {
13215
+ _this._alignWithZone();
13216
+ };
13217
+ this.handleKeyUp = function () {
13218
+ _this._alignWithZone();
13219
+ };
13220
+ }
13221
+ Object.defineProperty(AlignWithDirective.prototype, "alignWith", {
13222
+ // a native OR custom element
13223
+ set: function (alignWith) {
13224
+ if (alignWith) {
13225
+ // enables simple #templateVars passing to [alignWith] for native elements like <div>; Angular passes these as HTMLElement's
13226
+ if (alignWith instanceof HTMLElement) {
13227
+ this._hostNativeEl = alignWith;
13228
+ }
13229
+ else {
13230
+ this._hostNativeEl = alignWith.nativeElement;
13231
+ }
13232
+ }
13233
+ },
13234
+ enumerable: false,
13235
+ configurable: true
13236
+ });
13237
+ Object.defineProperty(AlignWithDirective.prototype, "_shouldDoAlign", {
13238
+ get: function () {
13239
+ return this._hostNativeEl && this.enableAlign;
13240
+ },
13241
+ enumerable: false,
13242
+ configurable: true
13243
+ });
13244
+ AlignWithDirective.prototype.ngAfterViewInit = function () {
13245
+ var _this = this;
13246
+ this.align();
13247
+ // align again after hosts 'animation finished'
13248
+ setTimeout(function () {
13249
+ _this.align();
13250
+ }, 200);
13251
+ };
13252
+ AlignWithDirective.prototype.ngOnChanges = function () {
13253
+ this.align();
13254
+ };
13255
+ AlignWithDirective.prototype.ngAfterContentChecked = function () {
13256
+ this.align();
13257
+ };
13258
+ AlignWithDirective.prototype.ngOnDestroy = function () {
13259
+ window.removeEventListener("scroll", this.scroll, EventUtils.passiveCapture);
13260
+ window.removeEventListener("resize", this.resize, EventUtils.passiveCapture);
13261
+ window.removeEventListener("keyup", this.handleKeyUp, EventUtils.passiveCapture);
13262
+ this._elementRef = undefined;
13263
+ this._hostNativeEl = undefined;
13264
+ this.viewElement = undefined;
13265
+ };
13266
+ AlignWithDirective.prototype.ngOnInit = function () {
13267
+ var _this = this;
13268
+ this._ngZone.runOutsideAngular(function () {
13269
+ window.addEventListener("scroll", _this.scroll, EventUtils.passiveCapture);
13270
+ window.addEventListener("resize", _this.resize, EventUtils.passiveCapture);
13271
+ window.addEventListener("keyup", _this.handleKeyUp, EventUtils.passiveCapture);
13272
+ });
13273
+ };
13274
+ AlignWithDirective.prototype._getDimensions = function () {
13275
+ return {
13276
+ top: this.top,
13277
+ right: this.left + this._elementRef.nativeElement.clientWidth,
13278
+ bottom: this.top + this._elementRef.nativeElement.clientHeight,
13279
+ left: this.left
13280
+ };
13281
+ };
13282
+ AlignWithDirective.prototype.align = function () {
13283
+ if (this._shouldDoAlign) {
13284
+ var rect = this._hostNativeEl.getBoundingClientRect();
13285
+ this.left = Math.max(0, rect.left + this.alignLeftOffsetPx);
13286
+ this.top = rect.top + this.alignTopOffsetPx;
13287
+ if (this.alignRight) {
13288
+ this.left = rect.right - this._elementRef.nativeElement.clientWidth;
13289
+ }
13290
+ if (!this.noWidthAlign) {
13291
+ this.width = rect.width;
13292
+ }
13293
+ var dimensions = this._getDimensions();
13294
+ if (this.keepInView && !BrowserUtils.AreDimensionsInView(dimensions, this.viewElement)) {
13295
+ var viewElemDimensions = BrowserUtils.GetDimensions(this.viewElement);
13296
+ if (!BrowserUtils.HorizontalFitInView(dimensions, this.viewElement) && this.keepInViewHorizontal) {
13297
+ this.left = Math.max(0, viewElemDimensions.right - this._elementRef.nativeElement.clientWidth);
13298
+ dimensions = this._getDimensions();
13299
+ }
13300
+ if (!BrowserUtils.VerticalFitInView(dimensions, this.viewElement) && this.keepInViewVertical) {
13301
+ // Prevent this from going negative (which can happen with tall popups on small screens) and starting offscreen.
13302
+ this.top = Math.max(0, rect.top - this._elementRef.nativeElement.clientHeight);
13303
+ dimensions = this._getDimensions();
13304
+ }
13305
+ // Prevent running off the _bottom_ of the screen
13306
+ var overrun = dimensions.bottom - window.innerHeight;
13307
+ if (overrun > 0) {
13308
+ this.top = Math.max(0, this.top - overrun);
13309
+ dimensions = this._getDimensions();
13310
+ }
13311
+ if (this.ajustableHeight) {
13312
+ if (dimensions.bottom >= viewElemDimensions.bottom) {
13313
+ this.height = viewElemDimensions.bottom - this.top;
13314
+ }
13315
+ else {
13316
+ this.height = undefined;
13317
+ }
13318
+ }
13319
+ }
13320
+ }
13321
+ };
13322
+ AlignWithDirective.prototype._alignWithZone = function () {
13323
+ var _this = this;
13324
+ if (this._shouldDoAlign) {
13325
+ this._ngZone.run(function () {
13326
+ _this.align();
13327
+ });
13328
+ }
13329
+ };
13330
+ return AlignWithDirective;
13331
+ }());
13332
+ AlignWithDirective.decorators = [
13333
+ { type: i0.Directive, args: [{
13334
+ selector: "[alignWith]"
13335
+ },] }
13336
+ ];
13337
+ AlignWithDirective.ctorParameters = function () { return [
13338
+ { type: i0.NgZone },
13339
+ { type: i0.ElementRef }
13340
+ ]; };
13341
+ AlignWithDirective.propDecorators = {
13342
+ alignWith: [{ type: i0.Input }],
13343
+ enableAlign: [{ type: i0.Input }],
13344
+ keepInView: [{ type: i0.Input }],
13345
+ keepInViewHorizontal: [{ type: i0.Input }],
13346
+ keepInViewVertical: [{ type: i0.Input }],
13347
+ alignRight: [{ type: i0.Input }],
13348
+ noWidthAlign: [{ type: i0.Input }],
13349
+ ajustableHeight: [{ type: i0.Input }],
13350
+ alignTopOffsetPx: [{ type: i0.Input }],
13351
+ alignLeftOffsetPx: [{ type: i0.Input }],
13352
+ viewElement: [{ type: i0.Input }],
13353
+ fixed: [{ type: i0.HostBinding, args: ["style.position",] }],
13354
+ left: [{ type: i0.HostBinding, args: ["style.left.px",] }],
13355
+ top: [{ type: i0.HostBinding, args: ["style.top.px",] }],
13356
+ height: [{ type: i0.HostBinding, args: ["style.max-height.px",] }],
13357
+ width: [{ type: i0.HostBinding, args: ["style.width.px",] }]
13358
+ };
13359
+ __decorate([
13360
+ InputBoolean()
13361
+ ], AlignWithDirective.prototype, "enableAlign", void 0);
13362
+ __decorate([
13363
+ InputBoolean()
13364
+ ], AlignWithDirective.prototype, "keepInView", void 0);
13365
+ __decorate([
13366
+ InputBoolean()
13367
+ ], AlignWithDirective.prototype, "keepInViewHorizontal", void 0);
13368
+ __decorate([
13369
+ InputBoolean()
13370
+ ], AlignWithDirective.prototype, "keepInViewVertical", void 0);
13371
+ __decorate([
13372
+ InputBoolean()
13373
+ ], AlignWithDirective.prototype, "alignRight", void 0);
13374
+ __decorate([
13375
+ InputBoolean()
13376
+ ], AlignWithDirective.prototype, "noWidthAlign", void 0);
13377
+ __decorate([
13378
+ InputBoolean()
13379
+ ], AlignWithDirective.prototype, "ajustableHeight", void 0);
13380
+
13381
+ var ClickOutsideDirective = /** @class */ (function () {
13382
+ function ClickOutsideDirective(elementRef) {
13383
+ this.elementRef = elementRef;
13384
+ this.outsideClick = new i0.EventEmitter();
13385
+ }
13386
+ ClickOutsideDirective.prototype.onClick = function (event) {
13387
+ if (!this.elementRef.nativeElement.contains(event.target)) {
13388
+ this.outsideClick.emit(event);
13389
+ }
13390
+ };
13391
+ return ClickOutsideDirective;
13392
+ }());
13393
+ ClickOutsideDirective.decorators = [
13394
+ { type: i0.Directive, args: [{
13395
+ selector: '[outsideClick]',
13396
+ },] }
13397
+ ];
13398
+ ClickOutsideDirective.ctorParameters = function () { return [
13399
+ { type: i0.ElementRef }
13400
+ ]; };
13401
+ ClickOutsideDirective.propDecorators = {
13402
+ outsideClick: [{ type: i0.Output }],
13403
+ onClick: [{ type: i0.HostListener, args: ['document:mousedown', ['$event'],] }]
13404
+ };
13405
+
13406
+ var DirectivesModule = /** @class */ (function () {
13407
+ function DirectivesModule() {
13408
+ }
13409
+ return DirectivesModule;
13410
+ }());
13411
+ DirectivesModule.decorators = [
13412
+ { type: i0.NgModule, args: [{
13413
+ imports: [],
13414
+ declarations: [
13415
+ AbsoluteOverlayTemplateDirective,
13416
+ AlignWithDirective,
13417
+ ClickOutsideDirective
13418
+ ],
13419
+ exports: [
13420
+ AbsoluteOverlayTemplateDirective,
13421
+ AlignWithDirective,
13422
+ ClickOutsideDirective
13423
+ ]
13424
+ },] }
13425
+ ];
13426
+
13427
+ var WorkflowNotificationToggleModule = /** @class */ (function () {
13428
+ function WorkflowNotificationToggleModule() {
13429
+ }
13430
+ return WorkflowNotificationToggleModule;
13431
+ }());
13432
+ WorkflowNotificationToggleModule.decorators = [
13433
+ { type: i0.NgModule, args: [{
13434
+ imports: [
13435
+ corecomponents_v12.ButtonModule,
13436
+ corecomponents_v12.ClickoutsideModule,
13437
+ LocalizationModule,
13438
+ corecomponents_v12.IconModule,
13439
+ DirectivesModule,
13440
+ common.CommonModule,
13441
+ corecomponents_v12.OverlayModule
13442
+ ],
13443
+ declarations: [
13444
+ WorkflowNotificationToggleComponent,
13445
+ WorkflowNotificationTogglePopupComponent
13446
+ ],
13447
+ exports: [
13448
+ WorkflowNotificationToggleComponent,
13449
+ WorkflowNotificationTogglePopupComponent
13450
+ ],
13451
+ providers: [
13452
+ corecomponents_v12.OverlayService
13453
+ ]
13454
+ },] }
13455
+ ];
13456
+
13457
+ var PeriodFilterPopupComponent = /** @class */ (function () {
13458
+ function PeriodFilterPopupComponent(element) {
13459
+ this.element = element;
13460
+ this.possibleFilters = [];
13461
+ this.closePopup = new i0.EventEmitter();
13462
+ this.filterClicked = new i0.EventEmitter();
13463
+ }
13464
+ PeriodFilterPopupComponent.prototype.showClass = function () {
13465
+ return true;
13466
+ };
13467
+ PeriodFilterPopupComponent.prototype.ngOnDestroy = function () {
13468
+ this.element = undefined;
13469
+ };
13470
+ return PeriodFilterPopupComponent;
13471
+ }());
13472
+ PeriodFilterPopupComponent.decorators = [
13473
+ { type: i0.Component, args: [{
13474
+ selector: "co-period-filter-popup",
13475
+ 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>",
13476
+ encapsulation: i0.ViewEncapsulation.None,
13477
+ animations: [
13478
+ animations.trigger("showFilterItems", [
13479
+ animations.state("void", animations.style({ "height": "0" })),
13480
+ animations.state("*", animations.style({ "height": "*" })),
13481
+ animations.transition("void <=> *", animations.animate(200)) //NOSONAR
13482
+ ])
13483
+ ]
13484
+ },] }
13485
+ ];
13486
+ PeriodFilterPopupComponent.ctorParameters = function () { return [
13487
+ { type: i0.ElementRef }
13488
+ ]; };
13489
+ PeriodFilterPopupComponent.propDecorators = {
13490
+ showClass: [{ type: i0.HostBinding, args: ["class.co-period-filter-popup",] }],
13491
+ possibleFilters: [{ type: i0.Input }],
13492
+ parentForOverlay: [{ type: i0.Input }],
13493
+ closePopup: [{ type: i0.Output }],
13494
+ filterClicked: [{ type: i0.Output }]
13495
+ };
13496
+
13497
+ var PeriodFilterComponent = /** @class */ (function () {
13498
+ function PeriodFilterComponent(element, iconService, _overlayService) {
13499
+ this.element = element;
13500
+ this.iconService = iconService;
13501
+ this._overlayService = _overlayService;
13502
+ this.icon = exports["ɵbu"];
13503
+ this.possibleFilters = [
13504
+ period_enum.Period.All,
13505
+ period_enum.Period.Today,
13506
+ period_enum.Period.ThisWeek,
13507
+ period_enum.Period.ThisMonth,
13508
+ period_enum.Period.NextThreeMonths
13509
+ ];
13510
+ this.showPopup = false;
13511
+ this.filterClicked = new i0.EventEmitter();
13512
+ this.currentFilter = this.possibleFilters[0];
13513
+ }
13514
+ PeriodFilterComponent.prototype.showClass = function () {
13515
+ return true;
13516
+ };
13517
+ PeriodFilterComponent.prototype.handleClick = function () {
13518
+ this.showFilterItems();
13519
+ };
13520
+ PeriodFilterComponent.prototype.ngOnDestroy = function () {
13521
+ this.element = undefined;
13522
+ };
13523
+ PeriodFilterComponent.prototype.showFilterItems = function () {
13524
+ var _this = this;
13525
+ this.showPopup = true;
13526
+ this._periodPopupRef = this._overlayService.createComponent(PeriodFilterPopupComponent, { parentForOverlay: this.element, possibleFilters: this.possibleFilters }, {
13527
+ closePopup: function () { return _this.closePopup(); },
13528
+ filterClicked: function (string) { return _this.onFilterClick(string); },
13529
+ });
13530
+ };
13531
+ PeriodFilterComponent.prototype.closePopup = function () {
13532
+ this.showPopup = false;
13533
+ this._overlayService.removeComponent(this._periodPopupRef);
13534
+ };
13535
+ PeriodFilterComponent.prototype.onFilterClick = function (filter) {
13536
+ this.currentFilter = filter;
13537
+ this._emitFilterClicked();
13538
+ this.closePopup();
13539
+ };
13540
+ PeriodFilterComponent.prototype._emitFilterClicked = function () {
13541
+ var from, to;
13542
+ switch (this.currentFilter) {
13543
+ case period_enum.Period.Today:
13544
+ from = new Date();
13545
+ to = new Date();
13546
+ break;
13547
+ case period_enum.Period.ThisWeek:
13548
+ from = DateUtils.GetFirstDayOfWeek(new Date());
13549
+ to = DateUtils.GetLastDayOfWeek(new Date());
13550
+ break;
13551
+ case period_enum.Period.ThisMonth:
13552
+ from = DateUtils.GetFirstDayOfMonth(new Date());
13553
+ to = DateUtils.GetLastDayOfMonth(new Date());
13554
+ break;
13555
+ case period_enum.Period.NextThreeMonths:
13556
+ from = DateUtils.GetFirstDayOfMonth(new Date());
13557
+ to = DateUtils.GetLastDayOfMonth(new Date());
13558
+ to.setMonth(to.getMonth() + 3); //NOSONAR
13559
+ break;
13560
+ }
13561
+ this.filterClicked.next({ from: from, to: to });
13562
+ };
13563
+ return PeriodFilterComponent;
13564
+ }());
13565
+ PeriodFilterComponent.decorators = [
13566
+ { type: i0.Component, args: [{
13567
+ selector: "co-period-filter",
13568
+ template: "\n <div class=\"current-filter\" [textContent]=\"currentFilter | localize\"></div>\n <co-icon [iconData]=\"iconService.getIcon(showPopup ? icon.ArrowPointUp : icon.ArrowPointDown)\"></co-icon>\n ",
13569
+ animations: [
13570
+ animations.trigger("showFilterItems", [
13571
+ animations.state("void", animations.style({ "height": "0" })),
13572
+ animations.state("*", animations.style({ "height": "*" })),
13573
+ animations.transition("void <=> *", animations.animate(200)) //NOSONAR
13574
+ ])
13575
+ ],
13576
+ encapsulation: i0.ViewEncapsulation.None
13577
+ },] }
13578
+ ];
13579
+ PeriodFilterComponent.ctorParameters = function () { return [
13580
+ { type: i0.ElementRef },
13581
+ { type: IconCacheService },
13582
+ { type: corecomponents_v12.OverlayService }
13583
+ ]; };
13584
+ PeriodFilterComponent.propDecorators = {
13585
+ showPopup: [{ type: i0.HostBinding, args: ["class.expanded",] }],
13586
+ showClass: [{ type: i0.HostBinding, args: ["class.co-period-filter",] }],
13587
+ handleClick: [{ type: i0.HostListener, args: ["click",] }],
13588
+ filterClicked: [{ type: i0.Output }]
13589
+ };
13590
+
13591
+ var PeriodFilterModule = /** @class */ (function () {
13592
+ function PeriodFilterModule() {
13593
+ }
13594
+ return PeriodFilterModule;
13595
+ }());
13596
+ PeriodFilterModule.decorators = [
13597
+ { type: i0.NgModule, args: [{
13598
+ imports: [
13599
+ LocalizationModule,
13600
+ corecomponents_v12.IconModule,
13601
+ common.CommonModule,
13602
+ LocalizationModule,
13603
+ corecomponents_v12.ClickoutsideModule,
13604
+ DirectivesModule,
13605
+ corecomponents_v12.OverlayModule
13606
+ ],
13607
+ declarations: [
13608
+ PeriodFilterComponent,
13609
+ PeriodFilterPopupComponent
13610
+ ],
13611
+ exports: [
13612
+ PeriodFilterComponent,
13613
+ PeriodFilterPopupComponent
13614
+ ],
13615
+ providers: [
13616
+ corecomponents_v12.OverlayService
13617
+ ]
13618
+ },] }
13619
+ ];
13620
+
13621
+ var ActivityListHeaderModule = /** @class */ (function () {
13622
+ function ActivityListHeaderModule() {
13623
+ }
13624
+ return ActivityListHeaderModule;
13625
+ }());
13626
+ ActivityListHeaderModule.decorators = [
13627
+ { type: i0.NgModule, args: [{
13628
+ imports: [
13629
+ LocalizationModule,
13630
+ corecomponents_v12.InputTextModule,
13631
+ corecomponents_v12.ButtonModule,
13632
+ WorkflowNotificationToggleModule,
13633
+ PeriodFilterModule,
13634
+ common.CommonModule
13635
+ ],
13636
+ declarations: [
13637
+ ActivityListHeaderComponent
13638
+ ],
13639
+ exports: [
13640
+ ActivityListHeaderComponent
13641
+ ],
13642
+ },] }
13643
+ ];
13644
+
13645
+ var ComponentActivityListModule = /** @class */ (function () {
13646
+ function ComponentActivityListModule() {
13647
+ }
13648
+ return ComponentActivityListModule;
13649
+ }());
13650
+ ComponentActivityListModule.decorators = [
13651
+ { type: i0.NgModule, args: [{
13652
+ imports: [
13653
+ LocalizationModule,
13654
+ common.CommonModule,
13655
+ corecomponents_v12.ButtonModule,
13656
+ corecomponents_v12.CollapsibleModule,
13657
+ PersonalActivityOverviewModule,
13658
+ ComponentActivityOverviewModule,
13659
+ ActivityListHeaderModule
13660
+ ],
13661
+ declarations: [
13662
+ ComponentActivityListComponent
13663
+ ],
13664
+ exports: [
13665
+ ComponentActivityListComponent
13666
+ ]
13667
+ },] }
13668
+ ];
13669
+
10427
13670
  /*
10428
13671
  * Public API Surface of sharedcomponents
10429
13672
  */
@@ -10438,6 +13681,8 @@
10438
13681
  exports.AgendaEventPerDay = AgendaEventPerDay;
10439
13682
  exports.CoLinearGaugeComponent = CoLinearGaugeComponent;
10440
13683
  exports.CoLinearGaugeModule = CoLinearGaugeModule;
13684
+ exports.ComponentActivityListComponent = ComponentActivityListComponent;
13685
+ exports.ComponentActivityListModule = ComponentActivityListModule;
10441
13686
  exports.DatePlanningComponent = DatePlanningComponent;
10442
13687
  exports.DatePlanningModule = DatePlanningModule;
10443
13688
  exports.DocsignComponent = DocsignComponent;
@@ -10523,7 +13768,43 @@
10523
13768
  exports["ɵdh"] = AppFileDropzoneComponent;
10524
13769
  exports["ɵdi"] = DragDropContainerComponent;
10525
13770
  exports["ɵdj"] = DragDropService;
13771
+ exports["ɵdk"] = BaseActivityListComponent;
13772
+ exports["ɵdl"] = PersonalActivityOverviewComponent;
13773
+ exports["ɵdm"] = BaseActivityOverviewComponent;
13774
+ exports["ɵdn"] = TaskModifierComponent;
13775
+ exports["ɵdo"] = ModifyTaskFormComponent;
13776
+ exports["ɵdp"] = PersonalActivityOverviewModule;
13777
+ exports["ɵdq"] = ComponentActivityOverviewModule;
13778
+ exports["ɵdr"] = TaskModifyerModule;
13779
+ exports["ɵds"] = ModifyTaskFormModule;
13780
+ exports["ɵdt"] = TaskDetailsModule;
13781
+ exports["ɵdu"] = TaskDetailsComponent;
13782
+ exports["ɵdv"] = BaseActivitySummaryComponent;
13783
+ exports["ɵdw"] = ExecutiveSummaryBlockModule;
13784
+ exports["ɵdx"] = ActivitySummaryBlockModule;
13785
+ exports["ɵdy"] = ActivitySummaryBlockComponent;
13786
+ exports["ɵdz"] = ExecutiveSummaryBlockComponent;
10526
13787
  exports["ɵe"] = OptionsService;
13788
+ exports["ɵea"] = StatusSummaryBlockModule;
13789
+ exports["ɵeb"] = StatusSummaryBlockComponent;
13790
+ exports["ɵec"] = CreationSummaryBlockModule;
13791
+ exports["ɵed"] = CreationSummaryBlockComponent;
13792
+ exports["ɵee"] = NotificationSummaryBlockModule;
13793
+ exports["ɵef"] = NotificationSummaryBlockComponent;
13794
+ exports["ɵeg"] = ComponentActivityOverviewComponent;
13795
+ exports["ɵeh"] = ActivityListHeaderModule;
13796
+ exports["ɵei"] = WorkflowNotificationToggleModule;
13797
+ exports["ɵej"] = DirectivesModule;
13798
+ exports["ɵek"] = AbsoluteOverlayTemplateDirective;
13799
+ exports["ɵel"] = AppAbsoluteOverlayOutletService;
13800
+ exports["ɵem"] = AlignWithDirective;
13801
+ exports["ɵen"] = ClickOutsideDirective;
13802
+ exports["ɵeo"] = WorkflowNotificationToggleComponent;
13803
+ exports["ɵep"] = WorkflowNotificationTogglePopupComponent;
13804
+ exports["ɵeq"] = PeriodFilterModule;
13805
+ exports["ɵer"] = PeriodFilterComponent;
13806
+ exports["ɵes"] = PeriodFilterPopupComponent;
13807
+ exports["ɵet"] = ActivityListHeaderComponent;
10527
13808
  exports["ɵf"] = DictionaryService;
10528
13809
  exports["ɵg"] = LocalizeService;
10529
13810
  exports["ɵh"] = IconCacheService;