@colijnit/sharedcomponents 1.0.68 → 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 (183) hide show
  1. package/3rdpartylicenses.txt +1203 -0
  2. package/bundles/colijnit-sharedcomponents.umd.js +3335 -7
  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/date-planning/component/agenda/agenda-header.component.js +32 -3
  17. package/esm2015/lib/components/image-display/image-display.component.js +7 -7
  18. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.js +100 -0
  19. package/esm2015/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.js +25 -0
  20. package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +134 -0
  21. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +118 -0
  22. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.js +27 -0
  23. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +88 -0
  24. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.js +24 -0
  25. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +77 -0
  26. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.js +24 -0
  27. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +71 -0
  28. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.js +25 -0
  29. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +102 -0
  30. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.module.js +25 -0
  31. package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +258 -0
  32. package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +33 -0
  33. package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +293 -0
  34. package/esm2015/lib/components/open-activity-list/component-activity-list.module.js +30 -0
  35. package/esm2015/lib/components/open-activity-list/components/base-open-activity-list.component.js +264 -0
  36. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.js +41 -0
  37. package/esm2015/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..js +19 -0
  38. package/esm2015/lib/components/task-modifyer/task-modifier.component.js +270 -0
  39. package/esm2015/lib/components/task-modifyer/task-modifyer.module..js +31 -0
  40. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.js +53 -0
  41. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.js +81 -0
  42. package/esm2015/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.js +34 -0
  43. package/esm2015/lib/directives/absolute-overlay-template.directive.js +29 -0
  44. package/esm2015/lib/directives/align-with.directive.js +174 -0
  45. package/esm2015/lib/directives/click-outside.directive.js +25 -0
  46. package/esm2015/lib/directives/directives.module.js +22 -0
  47. package/esm2015/lib/enum/activity-cfg-name.enum.js +29 -0
  48. package/esm2015/lib/enum/app-button-type.enum.js +11 -0
  49. package/esm2015/lib/enum/calendar-view.enum.js +2 -1
  50. package/esm2015/lib/enum/icon.enum.js +13 -1
  51. package/esm2015/lib/interface/activities-task-config-names.js +2 -0
  52. package/esm2015/lib/interface/operation-callback-activity.js +5 -0
  53. package/esm2015/lib/interface/operation-callback-function-with-validation.js +5 -0
  54. package/esm2015/lib/interface/operation-callback-simple-function.js +1 -1
  55. package/esm2015/lib/model/icon-svg.js +15 -3
  56. package/esm2015/lib/service/app-absolute-overlay-outlet.service.js +20 -0
  57. package/esm2015/lib/service/shared-connector.service.js +121 -1
  58. package/esm2015/lib/service/shared.service.js +50 -1
  59. package/esm2015/lib/utils/browser-utils.js +100 -0
  60. package/esm2015/lib/utils/calendar.utils.js +34 -1
  61. package/esm2015/lib/utils/event-utils.js +59 -0
  62. package/esm2015/lib/utils/string-utils.js +5 -1
  63. package/esm2015/public-api.js +3 -1
  64. package/favicon.ico +0 -0
  65. package/fesm2015/colijnit-sharedcomponents.js +3486 -13
  66. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  67. package/index.html +12 -0
  68. package/lib/components/activity-list-header/activity-list-header.component.d.ts +25 -0
  69. package/lib/components/activity-list-header/activity-list-header.module.d.ts +2 -0
  70. package/lib/components/activity-list-header/components/period-filter/period-filter-popup.component.d.ts +11 -0
  71. package/lib/components/activity-list-header/components/period-filter/period-filter.component.d.ts +26 -0
  72. package/lib/components/activity-list-header/components/period-filter/period-filter.module.d.ts +2 -0
  73. package/lib/components/activity-list-header/components/period-filter/style/_layout.scss +62 -0
  74. package/lib/components/activity-list-header/components/period-filter/style/_material-definition.scss +1 -0
  75. package/lib/components/activity-list-header/components/period-filter/style/_theme.scss +5 -0
  76. package/lib/components/activity-list-header/components/period-filter/style/material.scss +4 -0
  77. package/lib/components/activity-list-header/style/_layout.scss +84 -0
  78. package/lib/components/activity-list-header/style/_material-definition.scss +1 -0
  79. package/lib/components/activity-list-header/style/_theme.scss +5 -0
  80. package/lib/components/activity-list-header/style/material.scss +4 -0
  81. package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +13 -0
  82. package/lib/components/activity-overview-component/component-activity-overview.module.d.ts +2 -0
  83. package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +84 -0
  84. package/lib/components/activity-overview-component/style/_layout.scss +107 -0
  85. package/lib/components/activity-overview-component/style/_material-definition.scss +1 -0
  86. package/lib/components/activity-overview-component/style/_theme.scss +5 -0
  87. package/lib/components/activity-overview-component/style/material.scss +4 -0
  88. package/lib/components/date-planning/component/agenda/style/_layout.scss +68 -55
  89. package/lib/components/date-planning/component/agenda/style/_material-definition.scss +1 -1
  90. package/lib/components/date-planning/style/_layout.scss +1 -0
  91. package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.component.d.ts +31 -0
  92. package/lib/components/modify-task-form/components/activity-summary-block/activity-summary-block.module.d.ts +2 -0
  93. package/lib/components/modify-task-form/components/activity-summary-block/style/_layout.scss +139 -0
  94. package/lib/components/modify-task-form/components/activity-summary-block/style/_material-definition.scss +0 -0
  95. package/lib/components/modify-task-form/components/activity-summary-block/style/_theme.scss +5 -0
  96. package/lib/components/modify-task-form/components/activity-summary-block/style/material.scss +4 -0
  97. package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +53 -0
  98. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.d.ts +28 -0
  99. package/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.module.d.ts +2 -0
  100. package/lib/components/modify-task-form/components/creation-summary-block/style/_layout.scss +5 -0
  101. package/lib/components/modify-task-form/components/creation-summary-block/style/_material-definition.scss +0 -0
  102. package/lib/components/modify-task-form/components/creation-summary-block/style/_theme.scss +5 -0
  103. package/lib/components/modify-task-form/components/creation-summary-block/style/material.scss +4 -0
  104. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +24 -0
  105. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.module.d.ts +2 -0
  106. package/lib/components/modify-task-form/components/executive-summary-block/style/_layout.scss +5 -0
  107. package/lib/components/modify-task-form/components/executive-summary-block/style/_material-definition.scss +0 -0
  108. package/lib/components/modify-task-form/components/executive-summary-block/style/_theme.scss +5 -0
  109. package/lib/components/modify-task-form/components/executive-summary-block/style/material.scss +4 -0
  110. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.d.ts +23 -0
  111. package/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.module.d.ts +2 -0
  112. package/lib/components/modify-task-form/components/notification-summary-block/style/_layout.scss +161 -0
  113. package/lib/components/modify-task-form/components/notification-summary-block/style/_material-definition.scss +0 -0
  114. package/lib/components/modify-task-form/components/notification-summary-block/style/_theme.scss +5 -0
  115. package/lib/components/modify-task-form/components/notification-summary-block/style/material.scss +4 -0
  116. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +15 -0
  117. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.module.d.ts +2 -0
  118. package/lib/components/modify-task-form/components/status-summary-block/style/_layout.scss +18 -0
  119. package/lib/components/modify-task-form/components/status-summary-block/style/_material-definition.scss +0 -0
  120. package/lib/components/modify-task-form/components/status-summary-block/style/_theme.scss +5 -0
  121. package/lib/components/modify-task-form/components/status-summary-block/style/material.scss +4 -0
  122. package/lib/components/modify-task-form/components/task-details/style/_layout.scss +142 -0
  123. package/lib/components/modify-task-form/components/task-details/style/_material-definition.scss +0 -0
  124. package/lib/components/modify-task-form/components/task-details/style/_theme.scss +5 -0
  125. package/lib/components/modify-task-form/components/task-details/style/material.scss +4 -0
  126. package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +21 -0
  127. package/lib/components/modify-task-form/components/task-details/task-details.module.d.ts +2 -0
  128. package/lib/components/modify-task-form/modify-task-form.component.d.ts +49 -0
  129. package/lib/components/modify-task-form/modify-task-form.module.d.ts +2 -0
  130. package/lib/components/modify-task-form/style/_layout.scss +135 -0
  131. package/lib/components/modify-task-form/style/_material-definition.scss +0 -0
  132. package/lib/components/modify-task-form/style/_theme.scss +5 -0
  133. package/lib/components/modify-task-form/style/material.scss +4 -0
  134. package/lib/components/open-activity-list/component-activity-list.component.d.ts +69 -0
  135. package/lib/components/open-activity-list/component-activity-list.module.d.ts +2 -0
  136. package/lib/components/open-activity-list/components/base-open-activity-list.component.d.ts +46 -0
  137. package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.component.d.ts +4 -0
  138. package/lib/components/open-activity-list/components/personal-activity-overview/personal-activity-overview.module..d.ts +2 -0
  139. package/lib/components/open-activity-list/components/personal-activity-overview/style/_layout.scss +105 -0
  140. package/lib/components/open-activity-list/components/personal-activity-overview/style/_material-definition.scss +0 -0
  141. package/lib/components/open-activity-list/components/personal-activity-overview/style/_theme.scss +4 -0
  142. package/lib/components/open-activity-list/components/personal-activity-overview/style/material.scss +4 -0
  143. package/lib/components/open-activity-list/style/_layout.scss +26 -0
  144. package/lib/components/open-activity-list/style/_material-definition.scss +0 -0
  145. package/lib/components/open-activity-list/style/_theme.scss +4 -0
  146. package/lib/components/open-activity-list/style/material.scss +4 -0
  147. package/lib/components/task-modifyer/style/_layout.scss +5 -0
  148. package/lib/components/task-modifyer/style/_material-definition.scss +0 -0
  149. package/lib/components/task-modifyer/style/_theme.scss +4 -0
  150. package/lib/components/task-modifyer/style/material.scss +4 -0
  151. package/lib/components/task-modifyer/task-modifier.component.d.ts +67 -0
  152. package/lib/components/task-modifyer/task-modifyer.module..d.ts +2 -0
  153. package/lib/components/workflow-notification-toggle/style/_layout.scss +59 -0
  154. package/lib/components/workflow-notification-toggle/style/_material-definition.scss +0 -0
  155. package/lib/components/workflow-notification-toggle/style/_theme.scss +4 -0
  156. package/lib/components/workflow-notification-toggle/style/material.scss +4 -0
  157. package/lib/components/workflow-notification-toggle/workflow-notification-toggle-popup.d.ts +15 -0
  158. package/lib/components/workflow-notification-toggle/workflow-notification-toggle.component.d.ts +28 -0
  159. package/lib/components/workflow-notification-toggle/workflow-notification-toggle.module.d.ts +2 -0
  160. package/lib/directives/absolute-overlay-template.directive.d.ts +9 -0
  161. package/lib/directives/align-with.directive.d.ts +35 -0
  162. package/lib/directives/click-outside.directive.d.ts +7 -0
  163. package/lib/directives/directives.module.d.ts +2 -0
  164. package/lib/enum/activity-cfg-name.enum.d.ts +27 -0
  165. package/lib/enum/app-button-type.enum.d.ts +9 -0
  166. package/lib/enum/calendar-view.enum.d.ts +1 -0
  167. package/lib/enum/icon.enum.d.ts +12 -0
  168. package/lib/interface/activities-task-config-names.d.ts +12 -0
  169. package/lib/interface/operation-callback-activity.d.ts +5 -0
  170. package/lib/interface/operation-callback-function-with-validation.d.ts +5 -0
  171. package/lib/service/app-absolute-overlay-outlet.service.d.ts +9 -0
  172. package/lib/service/shared-connector.service.d.ts +18 -0
  173. package/lib/service/shared.service.d.ts +16 -0
  174. package/lib/utils/browser-utils.d.ts +15 -0
  175. package/lib/utils/calendar.utils.d.ts +1 -0
  176. package/lib/utils/event-utils.d.ts +12 -0
  177. package/lib/utils/string-utils.d.ts +1 -0
  178. package/main.36b466467ac98ce720f9.js +1 -0
  179. package/package.json +2 -1
  180. package/polyfills.907fe9d1887c5de17993.js +1 -0
  181. package/public-api.d.ts +2 -0
  182. package/runtime.8aac21847ed3d3829cca.js +1 -0
  183. package/styles.6375d1d30814ecba5d0c.css +1 -0
@@ -24,13 +24,20 @@ import { SendMethod as SendMethod$1 } from '@colijnit/mainapi/build/model/send-m
24
24
  import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
25
25
  import { TagTreeItem } from '@colijnit/mainapi/build/model/tag-tree-item.bo';
26
26
  import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
27
+ import { RelationApi } from '@colijnit/relationapi';
28
+ import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
29
+ import { TaskCategory } from '@colijnit/mainapi/build/model/task-category.bo';
30
+ import { WorkflowProcess } from '@colijnit/mainapi/build/model/workflow-process';
31
+ import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
32
+ import { RoleEmailaddress } from '@colijnit/mainapi/build/model/role-email-address';
33
+ import { Activity } from '@colijnit/mainapi/build/model/activity.bo';
27
34
  import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
28
35
  import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
29
36
  import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
30
37
  import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
31
38
  import * as i1 from '@angular/platform-browser';
32
39
  import { DomSanitizer } from '@angular/platform-browser';
33
- import { IconModule, InputCheckboxModule, CoDialogModule, ButtonModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, InputRadioButtonModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, PopupModule, ResponsiveTextModule, InputDatePickerModule, InputSearchModule, PromptService, FormComponent, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, CoOrientation, CoreComponentsTranslationModule, TemplateWrapperModule, FormModule, ScreenConfigurationModule } from '@colijnit/corecomponents_v12';
40
+ import { IconModule, InputCheckboxModule, CoDialogModule, ButtonModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, InputRadioButtonModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, PopupModule, ResponsiveTextModule, InputDatePickerModule, InputSearchModule, PromptService, FormComponent, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, CoOrientation, CoreComponentsTranslationModule, TemplateWrapperModule, FormModule, ScreenConfigurationModule, FormMasterService, CoreDialogService, InputDateRangePickerModule, CollapsibleModule } from '@colijnit/corecomponents_v12';
34
41
  import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
35
42
  import { ArticleTransaction as ArticleTransaction$1 } from '@colijnit/articleapi/build/model/article-transaction';
36
43
  import { PrintPriceStickers } from '@colijnit/sharedapi/build/model/print-price-stickers.bo';
@@ -52,10 +59,21 @@ import { DocumentPublication } from '@colijnit/articleapi/build/enum/refcode/doc
52
59
  import { CoDocumentRight } from '@colijnit/mainapi/build/model/co-document-right';
53
60
  import { ArrayUtils as ArrayUtils$1 } from '@colijnit/sharedapi/build/utils/array-utils';
54
61
  import { Overlay } from '@angular/cdk/overlay';
55
- import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
56
62
  import { RelationKind } from '@colijnit/articleapi/build/enum/relation-kind.enum';
57
63
  import { ActivityType } from '@colijnit/mainapi/build/enum/activity-type';
58
64
  import { TimeUtils } from '@colijnit/mainapi/build/utils/time-utils';
65
+ import { isNill as isNill$1 } from '@colijnit/ioneconnector/build/utils/function/is-nill.function';
66
+ import { ActivityListViewModel } from '@colijnit/mainapi/build/model/activity-list-view-model';
67
+ import { ActivityViewModel } from '@colijnit/mainapi/build/model/activity-view-model';
68
+ import { PersonalActivityTabEnum } from '@colijnit/mainapi/build/enum/personal-activity-tab.enum';
69
+ import { ActivitySortType } from '@colijnit/mainapi/build/enum/activity-sort-type.enum';
70
+ import { Task } from '@colijnit/mainapi/build/model/task.bo';
71
+ import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
72
+ import { TableName as TableName$1 } from '@colijnit/mainapi/build/enum/table-name.enum';
73
+ import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
74
+ import { PriorityType } from '@colijnit/mainapi/build/enum/priority-type.enum';
75
+ import { RelationRequest } from '@colijnit/relationapi/build/model/relation-request';
76
+ import { Period } from '@colijnit/mainapi/build/enum/period.enum';
59
77
 
60
78
  class DocsignComponent {
61
79
  constructor() {
@@ -526,6 +544,10 @@ class StringUtils {
526
544
  static _escapeRegExp(str) {
527
545
  return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
528
546
  }
547
+ static IsValidEmail(str) {
548
+ const 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,}))$/;
549
+ return !!emailRegex.test(str);
550
+ }
529
551
  }
530
552
 
531
553
  class Dictionary {
@@ -664,6 +686,7 @@ class SharedConnectorService {
664
686
  yield this.sharedConnector.connect();
665
687
  this.articleConnector = new Articles(this._optionsService.options);
666
688
  this.mainConnector = new MainApi(this._optionsService.options);
689
+ this.relationConnector = new RelationApi(this._optionsService.options);
667
690
  });
668
691
  }
669
692
  getConfiguration(module, params) {
@@ -1052,6 +1075,118 @@ class SharedConnectorService {
1052
1075
  });
1053
1076
  });
1054
1077
  }
1078
+ getRelationListObjects(request) {
1079
+ return __awaiter(this, void 0, void 0, function* () {
1080
+ return new Promise((resolve, reject) => {
1081
+ return this.relationConnector.getRelationListObjects(request, false).then((result) => {
1082
+ if (result.validationResult && result.validationResult.success) {
1083
+ if (result.resultObjects) {
1084
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(RelationListObject, result.resultObjects));
1085
+ }
1086
+ }
1087
+ else {
1088
+ reject(result.validationMessagesAsString);
1089
+ }
1090
+ });
1091
+ });
1092
+ });
1093
+ }
1094
+ getTaskCategories() {
1095
+ return __awaiter(this, void 0, void 0, function* () {
1096
+ return new Promise((resolve, reject) => {
1097
+ return this.mainConnector.getTaskCategories().then((result) => {
1098
+ if (result.validationResult && result.validationResult.success) {
1099
+ if (result.resultObjects) {
1100
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(TaskCategory, result.resultObjects));
1101
+ }
1102
+ }
1103
+ else {
1104
+ reject(result.validationMessagesAsString);
1105
+ }
1106
+ });
1107
+ });
1108
+ });
1109
+ }
1110
+ getActiveProcessesByTableAndKey(table, key) {
1111
+ return __awaiter(this, void 0, void 0, function* () {
1112
+ return new Promise((resolve, reject) => {
1113
+ return this.mainConnector.getActiveProcessesByTableAndKey(table, key).then((result) => {
1114
+ if (result.validationResult && result.validationResult.success) {
1115
+ if (result.resultObjects) {
1116
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(WorkflowProcess, result.resultObjects));
1117
+ }
1118
+ }
1119
+ else {
1120
+ reject(result.validationMessagesAsString);
1121
+ }
1122
+ });
1123
+ });
1124
+ });
1125
+ }
1126
+ getDomainCollection(languageCode, domain) {
1127
+ return __awaiter(this, void 0, void 0, function* () {
1128
+ return new Promise((resolve, reject) => {
1129
+ return this.mainConnector.getDomainCollection(languageCode, domain).then((result) => {
1130
+ if (result.validationResult && result.validationResult.success) {
1131
+ if (result.resultObjects) {
1132
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects));
1133
+ }
1134
+ }
1135
+ else {
1136
+ reject(result.validationMessagesAsString);
1137
+ }
1138
+ });
1139
+ });
1140
+ });
1141
+ }
1142
+ getRoleEmailAddressesByWorkflowCategoryAndKey(worlflowCategory, key) {
1143
+ return __awaiter(this, void 0, void 0, function* () {
1144
+ return new Promise((resolve, reject) => {
1145
+ return this.mainConnector.getRoleEmailAddressesByWorkflowCategoryAndKey(worlflowCategory, key).then((result) => {
1146
+ if (result.validationResult && result.validationResult.success) {
1147
+ if (result.resultObject) {
1148
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(RoleEmailaddress, result.resultObject));
1149
+ }
1150
+ }
1151
+ else {
1152
+ reject(result.validationMessagesAsString);
1153
+ }
1154
+ });
1155
+ });
1156
+ });
1157
+ }
1158
+ getHistoricActivities(table, key) {
1159
+ return __awaiter(this, void 0, void 0, function* () {
1160
+ return new Promise((resolve, reject) => {
1161
+ return this.mainConnector.getHistoricActivities(table, key).then((result) => {
1162
+ if (result.validationResult && result.validationResult.success) {
1163
+ if (result.resultObject) {
1164
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(Activity, result.resultObject));
1165
+ }
1166
+ }
1167
+ else {
1168
+ reject(result.validationMessagesAsString);
1169
+ }
1170
+ });
1171
+ });
1172
+ });
1173
+ }
1174
+ getComponentActivities(table, key) {
1175
+ return __awaiter(this, void 0, void 0, function* () {
1176
+ return new Promise((resolve, reject) => {
1177
+ return this.mainConnector.getComponentActivities(table, key).then((result) => {
1178
+ if (result.validationResult && result.validationResult.success) {
1179
+ if (result.resultObject) {
1180
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(Activity, result.resultObject));
1181
+ }
1182
+ }
1183
+ else {
1184
+ reject(result.validationMessagesAsString);
1185
+ }
1186
+ });
1187
+ });
1188
+ });
1189
+ }
1055
1190
  commit() {
1056
1191
  return this.articleConnector.commit();
1057
1192
  }
@@ -1211,22 +1346,30 @@ var Icon;
1211
1346
  Icon["ArrowDown"] = "arrow_down";
1212
1347
  Icon["ArrowDownRegular"] = "arrow_down_regular";
1213
1348
  Icon["ArrowFatRight"] = "arrow_fat_right";
1349
+ Icon["ArrowPointDown"] = "arrow_point_down";
1214
1350
  Icon["ArrowPointLeft"] = "arrow_point_left";
1215
1351
  Icon["ArrowPointRight"] = "arrow_point_right";
1352
+ Icon["ArrowPointUp"] = "arrow_point_up";
1216
1353
  Icon["AtSolid"] = "at_solid";
1217
1354
  Icon["BarcodeReadRegular"] = "barcode_read_regular";
1355
+ Icon["BellRegular"] = "bell_regular";
1356
+ Icon["BellSlashRegular"] = "bell_slash_regular";
1218
1357
  Icon["BringForwardRegular"] = "bring_forward_regular";
1219
1358
  Icon["CheckDuotone"] = "check_duotone";
1220
1359
  Icon["CheckRound"] = "check_round";
1360
+ Icon["CheckSolid"] = "check_solid";
1361
+ Icon["ChevronRightRegular"] = "chevron_right_regular";
1221
1362
  Icon["ClockRegular"] = "clock_regular";
1222
1363
  Icon["CommentRegular"] = "comment_regular";
1223
1364
  Icon["CrossSkinny"] = "cross_skinny";
1224
1365
  Icon["Cubes"] = "cubes";
1225
1366
  Icon["DeleteLeftRegular"] = "delete_left_regular";
1226
1367
  Icon["DeliveryTruck"] = "delivery_truck";
1368
+ Icon["DetailView"] = "detail_view";
1227
1369
  Icon["Dropzone"] = "dropzone";
1228
1370
  Icon["EditPenRegular"] = "edit_pen_regular";
1229
1371
  Icon["Email"] = "email";
1372
+ Icon["Employee"] = "employee";
1230
1373
  Icon["EnvelopeRegular"] = "envelope_regular";
1231
1374
  Icon["EyeRegular"] = "eye_regular";
1232
1375
  Icon["FileExportRegular"] = "file_export_regular";
@@ -1235,17 +1378,21 @@ var Icon;
1235
1378
  Icon["FilePdfSolid"] = "file_pdf_solid";
1236
1379
  Icon["FileSignatureRegular"] = "file_signature_regular";
1237
1380
  Icon["HouseBlankRegular"] = "house_blank_regular";
1381
+ Icon["IoneWorkflow"] = "ione_workflow";
1238
1382
  Icon["Lock"] = "lock";
1239
1383
  Icon["MessageSmsRegular"] = "message_sms_regular";
1240
1384
  Icon["MessageSmsSolid"] = "message_sms_solid";
1385
+ Icon["Notification"] = "notification";
1241
1386
  Icon["PaperclipRegular"] = "paperclip_regular";
1242
1387
  Icon["Pdf"] = "pdf";
1243
1388
  Icon["PersonDiggingRegular"] = "person_digging_regular";
1389
+ Icon["PinRoundOpen"] = "pin_round_open";
1244
1390
  Icon["Print"] = "print";
1245
1391
  Icon["PrintRegular"] = "print_regular";
1246
1392
  Icon["PrintSolid"] = "print_solid";
1247
1393
  Icon["SignatureField"] = "signature_field";
1248
1394
  Icon["TagRegular"] = "tag_regular";
1395
+ Icon["Task"] = "task";
1249
1396
  Icon["Trashbin"] = "trashbin";
1250
1397
  Icon["Xml"] = "xml";
1251
1398
  Icon["XSolid"] = "x_solid";
@@ -1259,22 +1406,30 @@ const IconSvg = {
1259
1406
  "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>",
1260
1407
  "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>",
1261
1408
  "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>",
1262
- "arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
1263
- "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
1409
+ "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>",
1410
+ "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>",
1411
+ "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>",
1412
+ "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>",
1264
1413
  "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>",
1265
1414
  "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>",
1415
+ "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>",
1416
+ "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>",
1266
1417
  "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>",
1267
1418
  "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>",
1268
1419
  "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>",
1420
+ "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>",
1421
+ "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>",
1269
1422
  "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>",
1270
1423
  "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>",
1271
1424
  "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>",
1272
1425
  "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>",
1273
1426
  "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>",
1274
1427
  "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>",
1428
+ "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>",
1275
1429
  "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>",
1276
1430
  "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>",
1277
1431
  "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>",
1432
+ "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>",
1278
1433
  "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>",
1279
1434
  "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>",
1280
1435
  "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>",
@@ -1283,17 +1438,21 @@ const IconSvg = {
1283
1438
  "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>",
1284
1439
  "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>",
1285
1440
  "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>",
1441
+ "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>",
1286
1442
  "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>",
1287
1443
  "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>",
1288
1444
  "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>",
1445
+ "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>",
1289
1446
  "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>",
1290
1447
  "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>",
1291
1448
  "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>",
1449
+ "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>",
1292
1450
  "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>",
1293
1451
  "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>",
1294
1452
  "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>",
1295
1453
  "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>",
1296
1454
  "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>",
1455
+ "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>",
1297
1456
  "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>",
1298
1457
  "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>",
1299
1458
  "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>"
@@ -2230,6 +2389,11 @@ class SharedService {
2230
2389
  yield this.connector.connect();
2231
2390
  });
2232
2391
  }
2392
+ connect() {
2393
+ return __awaiter(this, void 0, void 0, function* () {
2394
+ yield this.connector.connect();
2395
+ });
2396
+ }
2233
2397
  getAllPrinters() {
2234
2398
  return __awaiter(this, void 0, void 0, function* () {
2235
2399
  return yield this.connector.getAllPrinters();
@@ -2260,6 +2424,50 @@ class SharedService {
2260
2424
  return yield this.connector.getDocumentContent(docId, thumbnail);
2261
2425
  });
2262
2426
  }
2427
+ getRelationListObjects(request) {
2428
+ return __awaiter(this, void 0, void 0, function* () {
2429
+ return yield this.connector.getRelationListObjects(request);
2430
+ });
2431
+ }
2432
+ getTaskCategories() {
2433
+ return __awaiter(this, void 0, void 0, function* () {
2434
+ return yield this.connector.getTaskCategories();
2435
+ });
2436
+ }
2437
+ getActiveProcessesByTableAndKey(table, key) {
2438
+ return __awaiter(this, void 0, void 0, function* () {
2439
+ return yield this.connector.getActiveProcessesByTableAndKey(table, key);
2440
+ });
2441
+ }
2442
+ getDomainCollection(languageCode, domainName) {
2443
+ return __awaiter(this, void 0, void 0, function* () {
2444
+ return yield this.connector.getDomainCollection(languageCode, domainName);
2445
+ });
2446
+ }
2447
+ getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key) {
2448
+ return __awaiter(this, void 0, void 0, function* () {
2449
+ return yield this.connector.getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key);
2450
+ });
2451
+ }
2452
+ getActivities(table, key) {
2453
+ return __awaiter(this, void 0, void 0, function* () {
2454
+ const activities = yield this.connector.getComponentActivities(table, key);
2455
+ const histActivities = yield this.connector.getHistoricActivities(table, key);
2456
+ const activeActivities = [];
2457
+ const historicActivities = [];
2458
+ if (activities && activities.length > 0) {
2459
+ activities.forEach((activity) => {
2460
+ activeActivities.push(activity);
2461
+ });
2462
+ }
2463
+ if (histActivities && histActivities.length > 0) {
2464
+ histActivities.forEach((activity) => {
2465
+ historicActivities.push(activity);
2466
+ });
2467
+ }
2468
+ return activeActivities.concat(historicActivities);
2469
+ });
2470
+ }
2263
2471
  }
2264
2472
  SharedService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
2265
2473
  SharedService.decorators = [
@@ -5210,6 +5418,7 @@ LayoutSwitcherModule.decorators = [
5210
5418
  var CalendarView;
5211
5419
  (function (CalendarView) {
5212
5420
  CalendarView["DayView"] = "DAY";
5421
+ CalendarView["DaysAround"] = "DAYS_AROUND";
5213
5422
  CalendarView["WeekView"] = "WEEK";
5214
5423
  CalendarView["WeekSelectView"] = "WEEK_SELECT";
5215
5424
  CalendarView["WeekPlanningView"] = "WEEK_PLANNING";
@@ -6109,6 +6318,39 @@ class CalendarUtils {
6109
6318
  week.weekDays = daysOfWeek;
6110
6319
  return week;
6111
6320
  }
6321
+ static GetDaysAround(date) {
6322
+ const daysAround = [];
6323
+ const currentDate = date ? new Date(date) : new Date();
6324
+ currentDate.setHours(0, 0, 0, 0);
6325
+ // Get the current day and go two days back
6326
+ let day = new Date(currentDate);
6327
+ day.setDate(day.getDate() - 2);
6328
+ // Loop to get the two days before and four days after the current day
6329
+ for (let i = 0; i < 7; i++) {
6330
+ const dayPerWeek = new Weekday();
6331
+ const dayHours = CalendarUtils.GetDayHours(day);
6332
+ dayPerWeek.newMonth = day.getMonth() !== currentDate.getMonth();
6333
+ dayPerWeek.weekdaySelected = day.getDate() === currentDate.getDate();
6334
+ dayPerWeek.weekdayDay = day.getDate();
6335
+ let options = { weekday: "short" };
6336
+ dayPerWeek.weekdayShort = day.toLocaleDateString(CalendarUtils.Locale, options);
6337
+ options = { weekday: "long" };
6338
+ dayPerWeek.weekdayLong = day.toLocaleDateString(CalendarUtils.Locale, options);
6339
+ options = { month: "short" };
6340
+ dayPerWeek.weekdayMonthShort = day.toLocaleDateString(CalendarUtils.Locale, options);
6341
+ options = { month: "long" };
6342
+ dayPerWeek.weekdayMonthLong = day.toLocaleDateString(CalendarUtils.Locale, options);
6343
+ dayPerWeek.weekdayYear = day.getFullYear();
6344
+ dayPerWeek.date = new Date(day);
6345
+ dayPerWeek.datesByTheHour = dayHours;
6346
+ daysAround.push(dayPerWeek);
6347
+ // Move to the next day
6348
+ day.setDate(day.getDate() + 1);
6349
+ }
6350
+ const week = new Week();
6351
+ week.weekDays = daysAround;
6352
+ return week;
6353
+ }
6112
6354
  }
6113
6355
  CalendarUtils.Locale = undefined;
6114
6356
  CalendarUtils.Now = new Date();
@@ -6215,6 +6457,9 @@ class AgendaHeaderComponent {
6215
6457
  case CalendarView.DayView:
6216
6458
  newDate.setDate(this.selectedDate.getDate() - 1);
6217
6459
  break;
6460
+ case CalendarView.DaysAround:
6461
+ newDate.setDate(this.selectedDate.getDate() - 1);
6462
+ break;
6218
6463
  case CalendarView.WeekView:
6219
6464
  newDate.setDate(this.selectedDate.getDate() - 3);
6220
6465
  break;
@@ -6236,6 +6481,9 @@ class AgendaHeaderComponent {
6236
6481
  case CalendarView.DayView:
6237
6482
  newDate.setDate(this.selectedDate.getDate() + 1);
6238
6483
  break;
6484
+ case CalendarView.DaysAround:
6485
+ newDate.setDate(this.selectedDate.getDate() + 1);
6486
+ break;
6239
6487
  case CalendarView.WeekView:
6240
6488
  newDate.setDate(this.selectedDate.getDate() + 3);
6241
6489
  break;
@@ -6277,6 +6525,13 @@ class AgendaHeaderComponent {
6277
6525
  day.description = this.selectedDate.toLocaleDateString(this._locale, options);
6278
6526
  this.day = day;
6279
6527
  break;
6528
+ case CalendarView.DaysAround:
6529
+ const weekAroundView = CalendarUtils.GetDaysAround(this.selectedDate);
6530
+ this.weekDays = weekAroundView.weekDays;
6531
+ if (this.firstAvailableDate) {
6532
+ this.showBackButton = this.weekDays.find(wd => DateUtils.DatesEqual(this.firstAvailableDate, wd.date)) === undefined;
6533
+ }
6534
+ break;
6280
6535
  case CalendarView.WeekView:
6281
6536
  const weekView = CalendarUtils.GetDaysOfWeek(this.selectedDate);
6282
6537
  this.weekDays = weekView.weekDays;
@@ -6330,6 +6585,24 @@ AgendaHeaderComponent.decorators = [
6330
6585
  [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6331
6586
  </div>
6332
6587
  </div>
6588
+ <div class="agenda-header-wrapper days-around" *ngIf="view === viewTypes.DaysAround">
6589
+ <div class="hour-label-placeholder" *ngIf="viewSelection">
6590
+ <view-select [selectedView]="view" (selectedViewChange)="changeTheView($event)"></view-select>
6591
+ </div>
6592
+ <div class="week-day-label days-around" *ngFor="let weekDay of weekDays; let index = index"
6593
+ [class.selected]="weekDay.weekdaySelected" (click)="setUnit(weekDay)">
6594
+ <co-icon *ngIf="showBackButton && index === 0" class="pointer-hover no-user-select sub-unit-icon dark"
6595
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointLeft)" (click)="subUnit()"></co-icon>
6596
+ <div *ngIf="weekDay.newMonth" [textContent]="weekDay.weekdayMonthLong + ' ' + weekDay.weekdayYear"
6597
+ class="month-description"></div>
6598
+ <div class="weekday-value day"
6599
+ [textContent]="capitalizeString(weekDay.weekdayShort)"></div>
6600
+ <div class="weekday-value date"
6601
+ [textContent]="weekDay.weekdayDay"></div>
6602
+ <co-icon *ngIf="index === 6" class="pointer-hover no-user-select add-unit-icon dark"
6603
+ [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6604
+ </div>
6605
+ </div>
6333
6606
  <div class="agenda-header-wrapper" *ngIf="view === viewTypes.WeekView">
6334
6607
  <div class="hour-label-placeholder" *ngIf="viewSelection">
6335
6608
  <view-select [selectedView]="view" (selectedViewChange)="changeTheView($event)"></view-select>
@@ -6342,8 +6615,6 @@ AgendaHeaderComponent.decorators = [
6342
6615
  class="month-description"></div>
6343
6616
  <div class="weekday-value"
6344
6617
  [textContent]="capitalizeString(weekDay.weekdayLong) + ' ' + weekDay.weekdayDay + ' ' + capitalizeString(weekDay.weekdayMonthLong) + ' ' + weekDay.weekdayYear "></div>
6345
- <!-- <div class="weekday-description" [textContent]="weekDay.weekdayYear"></div>-->
6346
-
6347
6618
  <co-icon *ngIf="index === 2" class="pointer-hover no-user-select add-unit-icon dark"
6348
6619
  [iconData]="iconCacheService.getIcon(icons.ArrowPointRight)" (click)="addUnit()"></co-icon>
6349
6620
 
@@ -10076,12 +10347,12 @@ class ImageDisplayComponent {
10076
10347
  ImageDisplayComponent.decorators = [
10077
10348
  { type: Component, args: [{
10078
10349
  selector: "co-image-display",
10079
- template: `
10080
- <img class="image" *ngIf="!!model" [src]="model">
10081
- <div class="no-image" *ngIf="!model">
10082
- <div class="img"></div>
10083
- <div class="no-image-label" [textContent]="label | localize"></div>
10084
- </div>
10350
+ template: `
10351
+ <img class="image" *ngIf="!!model" [src]="model">
10352
+ <div class="no-image" *ngIf="!model">
10353
+ <div class="img"></div>
10354
+ <div class="no-image-label" [textContent]="label | localize"></div>
10355
+ </div>
10085
10356
  `,
10086
10357
  providers: [{
10087
10358
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
@@ -10865,6 +11136,3208 @@ ActivityListModule.decorators = [
10865
11136
  },] }
10866
11137
  ];
10867
11138
 
11139
+ class BaseActivityListComponent {
11140
+ constructor() {
11141
+ this.reloadTimer = 60000; // 1 minute in milliseconds
11142
+ this.handleOpenLinkSidebar = false;
11143
+ //viewmodels
11144
+ this.privateActivityListViewModels = [];
11145
+ this.privateDelegatedActivityListViewModels = [];
11146
+ this.filteredActivityListViewModels = [];
11147
+ this.filteredDelegatedActivityListViewModels = [];
11148
+ this._activities = [];
11149
+ this._delegatedActivities = [];
11150
+ //protected userService: UserService
11151
+ }
11152
+ set activities(value) {
11153
+ clearTimeout(this._updateInterval);
11154
+ this._activities = value;
11155
+ this.filteredActivities = this._activities.slice();
11156
+ this.applyFilter();
11157
+ this._startInterval();
11158
+ }
11159
+ get activities() {
11160
+ return this._activities;
11161
+ }
11162
+ set delegatedActivities(value) {
11163
+ if (value && value.length > 0) {
11164
+ clearTimeout(this._updateInterval);
11165
+ this._delegatedActivities = value;
11166
+ this.filteredDelegatedActivities = this._delegatedActivities.slice();
11167
+ this.applyFilter();
11168
+ this._startInterval();
11169
+ }
11170
+ }
11171
+ get delegatedActivities() {
11172
+ return this._delegatedActivities;
11173
+ }
11174
+ // TODO: return this.userService.showUsergroupActivities and allow to set properly;
11175
+ get showUsergroupActivities() {
11176
+ return false;
11177
+ }
11178
+ set showUsergroupActivities(value) {
11179
+ }
11180
+ ngOnDestroy() {
11181
+ clearInterval(this._updateInterval);
11182
+ }
11183
+ reset() {
11184
+ this.filteredActivities = [];
11185
+ this.filteredDelegatedActivities = [];
11186
+ this._activities = [];
11187
+ this._delegatedActivities = [];
11188
+ }
11189
+ applyFilter() {
11190
+ this._applyFilter(this.activities, this.filteredActivities, this.filteredActivityListViewModels);
11191
+ this._applyFilter(this.delegatedActivities, this.filteredDelegatedActivities, this.filteredDelegatedActivityListViewModels);
11192
+ this._refreshActivities();
11193
+ this.afterFilterApplied();
11194
+ }
11195
+ afterFilterApplied() {
11196
+ }
11197
+ getTheActivities() {
11198
+ //this.getActivities();
11199
+ this.getDelegatedActivities();
11200
+ }
11201
+ _removeNotShowing(listViewModels) {
11202
+ for (let i = listViewModels.length - 1; i > 0; i--) {
11203
+ const listViewModel = listViewModels[i];
11204
+ if (!listViewModel.showing) {
11205
+ listViewModels.splice(i, 1);
11206
+ }
11207
+ else { // iterate through activityViewModels
11208
+ for (let j = listViewModel.activities.length - 1; j > 0; j--) {
11209
+ const activityViewModel = listViewModel.activities[j];
11210
+ if (!activityViewModel.showing) {
11211
+ listViewModel.activities.splice(j, 1);
11212
+ }
11213
+ }
11214
+ }
11215
+ }
11216
+ }
11217
+ updatePrivateListsWithFilteredLists() {
11218
+ this.privateActivityListViewModels =
11219
+ this._updatePrivateListWithFilteredList(this.privateActivityListViewModels, this.filteredActivityListViewModels);
11220
+ this.privateDelegatedActivityListViewModels =
11221
+ this._updatePrivateListWithFilteredList(this.privateDelegatedActivityListViewModels, this.filteredDelegatedActivityListViewModels);
11222
+ }
11223
+ _applyFilter(activities, filteredActivities, filteredActivityListViewModels) {
11224
+ if (isNill$1(activities)) {
11225
+ filteredActivities.length = 0;
11226
+ return;
11227
+ }
11228
+ filteredActivities = activities.slice(0);
11229
+ if (this.filterFrom && this.filterTo) {
11230
+ filteredActivities =
11231
+ activities.filter((a) => {
11232
+ if (a.executionDateTime === null || a.overDue) {
11233
+ return true;
11234
+ }
11235
+ else {
11236
+ return DateUtils.IsInBetween(a.executionDateTime, this.filterFrom, this.filterTo, false);
11237
+ }
11238
+ });
11239
+ }
11240
+ filteredActivities.sort((a, b) => a.deadlineDateTime > b.deadlineDateTime ? 1 : -1);
11241
+ this._searchText(filteredActivities);
11242
+ this._prepareViewModels(filteredActivities, filteredActivityListViewModels);
11243
+ }
11244
+ _searchText(filteredActivities) {
11245
+ if (!this.searchText) {
11246
+ return;
11247
+ }
11248
+ for (let i = filteredActivities.length - 1; i >= 0; i--) {
11249
+ const activity = filteredActivities[i];
11250
+ let found = false;
11251
+ for (let key in activity) {
11252
+ if (activity.hasOwnProperty(key)) {
11253
+ if (activity[key].toString().indexOf(this.searchText) > -1) {
11254
+ found = true;
11255
+ break;
11256
+ }
11257
+ }
11258
+ }
11259
+ if (!found) {
11260
+ filteredActivities.splice(i, 1);
11261
+ }
11262
+ }
11263
+ }
11264
+ _updatePrivateListWithFilteredList(listViewModels, filteredList) {
11265
+ let result;
11266
+ if (listViewModels.length === 0) {
11267
+ result = filteredList.slice();
11268
+ }
11269
+ else {
11270
+ result = listViewModels.slice();
11271
+ // set showing to false for items which are not in the list anymore
11272
+ for (let i = 0; i < result.length; i++) {
11273
+ const listViewModel = result[i];
11274
+ const filteredViewModel = filteredList.find(f => f.position === listViewModel.position);
11275
+ if (!filteredViewModel) {
11276
+ // flag as removed when listviewmodel is no longer in the list
11277
+ listViewModel.showing = false;
11278
+ }
11279
+ else {
11280
+ for (let j = 0; j < listViewModel.activities.length; j++) {
11281
+ const viewModel = listViewModel.activities[j];
11282
+ if (!filteredViewModel.activities.find(fa => fa.guid === viewModel.guid)) {
11283
+ // flag as removed when viewmodel is no longer in the list
11284
+ viewModel.showing = false;
11285
+ }
11286
+ }
11287
+ }
11288
+ }
11289
+ // add new items
11290
+ for (let i = 0; i < filteredList.length; i++) {
11291
+ const filteredActivityListViewModel = filteredList[i];
11292
+ const listViewModel = result.find(lvm => lvm.label === filteredActivityListViewModel.label);
11293
+ if (!listViewModel) {
11294
+ result.push(filteredActivityListViewModel);
11295
+ }
11296
+ else {
11297
+ for (let j = 0; j < filteredActivityListViewModel.activities.length; j++) {
11298
+ const filteredActivityViewModel = filteredActivityListViewModel.activities[j];
11299
+ if (!listViewModel.activities.find(a => a.activity.getId() === filteredActivityViewModel.activity.getId())) {
11300
+ listViewModel.activities.push(filteredActivityViewModel);
11301
+ }
11302
+ }
11303
+ }
11304
+ }
11305
+ }
11306
+ result.sort(this._sortByPosition);
11307
+ return result;
11308
+ }
11309
+ _refreshActivities() {
11310
+ // first remove items which are set invisible before
11311
+ this._removeNotShowing(this.privateActivityListViewModels);
11312
+ this._removeNotShowing(this.privateDelegatedActivityListViewModels);
11313
+ // update private list with (new) filtered list
11314
+ this.updatePrivateListsWithFilteredLists();
11315
+ }
11316
+ _prepareViewModels(filteredActivities, filteredActivityListViewModels) {
11317
+ filteredActivityListViewModels.map(alm => {
11318
+ alm.showing = false;
11319
+ alm.activities.map(aa => aa.showing = false);
11320
+ });
11321
+ if (filteredActivities) {
11322
+ for (let i = 0; i < filteredActivities.length; i++) {
11323
+ const activity = filteredActivities[i];
11324
+ if (!activity.overDue && DateUtils.IsToday(activity.deadlineDateTime)) {
11325
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'TODAY', 1, activity);
11326
+ }
11327
+ else if (activity.overDue) {
11328
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'TOO_LATE', 2, activity);
11329
+ }
11330
+ else if (activity.deadlineDateTime) {
11331
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'NEXT2', 3, activity);
11332
+ }
11333
+ else {
11334
+ this._addToActivityListViewModel(filteredActivityListViewModels, 'UNSCHEDULED', 4, activity);
11335
+ }
11336
+ }
11337
+ }
11338
+ filteredActivityListViewModels.sort(this._sortByPosition);
11339
+ this._setAmountListViewModels(filteredActivityListViewModels);
11340
+ }
11341
+ _setAmountListViewModels(filteredActivityListViewModels) {
11342
+ for (let i = 0; i < filteredActivityListViewModels.length; i++) {
11343
+ filteredActivityListViewModels[i].setAmount();
11344
+ }
11345
+ }
11346
+ _sortByPosition(a, b) {
11347
+ return a.position > b.position ? 1 : -1;
11348
+ }
11349
+ _addToActivityListViewModel(filteredActivityListViewModels, label, order, activity) {
11350
+ const activityListViewModel = this._getActivityListViewModel(filteredActivityListViewModels, label, order);
11351
+ activityListViewModel.showing = true;
11352
+ const activityViewModel = this._getActivityViewModel(activityListViewModel, activity);
11353
+ activityViewModel.showing = !activityViewModel.deleted;
11354
+ this._updateViewModelContent(activityViewModel, activity);
11355
+ }
11356
+ _getActivityViewModel(listViewModel, activity) {
11357
+ let viewModel = listViewModel.activities.find(a => a.activity.getId() === activity.getId());
11358
+ if (!viewModel) {
11359
+ viewModel = new ActivityViewModel();
11360
+ viewModel.activity = activity;
11361
+ viewModel.parent = listViewModel;
11362
+ listViewModel.activities.push(viewModel);
11363
+ }
11364
+ return viewModel;
11365
+ }
11366
+ _getActivityListViewModel(filteredActivityListViewModels, label, order) {
11367
+ let result = filteredActivityListViewModels.find(a => a.label === label);
11368
+ if (!result) {
11369
+ result = new ActivityListViewModel(label, order);
11370
+ filteredActivityListViewModels.push(result);
11371
+ }
11372
+ return result;
11373
+ }
11374
+ _startInterval() {
11375
+ this._updateInterval = window.setInterval(() => {
11376
+ this.getTheActivities();
11377
+ }, this.reloadTimer);
11378
+ }
11379
+ _updateViewModelContent(activityViewModel, activity) {
11380
+ activityViewModel.activity = activity;
11381
+ return activityViewModel;
11382
+ }
11383
+ }
11384
+ BaseActivityListComponent.decorators = [
11385
+ { type: Directive },
11386
+ { type: Injectable }
11387
+ ];
11388
+ BaseActivityListComponent.ctorParameters = () => [];
11389
+ BaseActivityListComponent.propDecorators = {
11390
+ handleOpenLinkSidebar: [{ type: Input }]
11391
+ };
11392
+ __decorate([
11393
+ InputBoolean()
11394
+ ], BaseActivityListComponent.prototype, "handleOpenLinkSidebar", void 0);
11395
+
11396
+ var ActivityCfgName;
11397
+ (function (ActivityCfgName) {
11398
+ ActivityCfgName["TaskForms"] = "TaskForms";
11399
+ ActivityCfgName["NewTaskFormHeader"] = "NewTaskFormHeader";
11400
+ ActivityCfgName["NewTaskTitle"] = "NewTaskTitle";
11401
+ ActivityCfgName["ActivitiesHeader"] = "activitiesHeader";
11402
+ ActivityCfgName["NewTaskGlobalButton"] = "newTaskGlobalButton";
11403
+ ActivityCfgName["AddActivityTaskButton"] = "addActivityTaskButton";
11404
+ ActivityCfgName["DeleteActivityTaskButton"] = "deleteActivityTaskButton";
11405
+ ActivityCfgName["AddActivityRemarkButton"] = "addActivityRemarkButton";
11406
+ ActivityCfgName["AddActivityWorkButton"] = "addActivityWorkButton";
11407
+ ActivityCfgName["TimeRegistrationMandatory"] = "timeRegistrationMandatory";
11408
+ ActivityCfgName["StatusSummaryHeader"] = "statusSummaryHeader";
11409
+ ActivityCfgName["CreationSummaryHeader"] = "creationSummaryHeader";
11410
+ ActivityCfgName["ExecutiveSummaryHeader"] = "executiveSummaryHeader";
11411
+ ActivityCfgName["PlanningSummaryHeader"] = "planningSummaryHeader";
11412
+ ActivityCfgName["AttachmentsHeader"] = "attachmentsHeader";
11413
+ ActivityCfgName["NotificationsSummaryHeader"] = "notificationsSummaryHeader";
11414
+ ActivityCfgName["TagsHeader"] = "tagsHeader";
11415
+ ActivityCfgName["WorkHeader"] = "workHeader";
11416
+ ActivityCfgName["WorkExecutive"] = "workExecutive";
11417
+ ActivityCfgName["WorkCalculationKey"] = "calculationKey";
11418
+ ActivityCfgName["WorkDescription"] = "workDescription";
11419
+ ActivityCfgName["WorkFile"] = "workFile";
11420
+ ActivityCfgName["EstimationStandardTime"] = "estimate";
11421
+ ActivityCfgName["TaskInvoice"] = "taskInvoice";
11422
+ ActivityCfgName["WorkedTime"] = "workedTime";
11423
+ })(ActivityCfgName || (ActivityCfgName = {}));
11424
+
11425
+ function OperationWithValidationCallback(object, object2, object3) {
11426
+ return Promise.resolve(new ValidationResult());
11427
+ }
11428
+
11429
+ var AppPopupButtonType;
11430
+ (function (AppPopupButtonType) {
11431
+ AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
11432
+ AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
11433
+ AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
11434
+ AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
11435
+ AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
11436
+ AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
11437
+ AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
11438
+ })(AppPopupButtonType || (AppPopupButtonType = {}));
11439
+
11440
+ class ModifyTaskFormComponent {
11441
+ constructor(_boFactory, sharedService
11442
+ //private _mediaMonitor: MediaMonitorService,
11443
+ /*private _activityService: ActivityService*/
11444
+ ) {
11445
+ this._boFactory = _boFactory;
11446
+ this.sharedService = sharedService;
11447
+ this.Icon = Icon;
11448
+ //public readonly TagCategory: typeof TagCategory = TagCategory;
11449
+ this.TableNames = TableName$1;
11450
+ this.readonly = false;
11451
+ this.popupContext = false;
11452
+ this.activityChange = new EventEmitter();
11453
+ this.statusChange = new EventEmitter();
11454
+ this.showWorkLog = new EventEmitter();
11455
+ this.selectedMenu = 'content-menu1';
11456
+ this.activities = [];
11457
+ this.table = TableName$1.Tasks;
11458
+ this.expandActivities = false;
11459
+ }
11460
+ /* @ViewChild(ActivityActivitiesComponent, { static: true })
11461
+ public activityActivities: ActivityActivitiesComponent;*/
11462
+ set activity(value) {
11463
+ this._activity = value;
11464
+ this.key = this._activity.task.taskId + "";
11465
+ }
11466
+ showClass() {
11467
+ return true;
11468
+ }
11469
+ get activity() {
11470
+ return this._activity;
11471
+ }
11472
+ get hasDocuments() {
11473
+ var _a, _b, _c;
11474
+ 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);
11475
+ }
11476
+ set forceReadonly(value) {
11477
+ this.readonly = value;
11478
+ }
11479
+ handleAddDocuments(docs) {
11480
+ docs.forEach(doc => this.activity.task.documents.push(doc));
11481
+ }
11482
+ handleAddDocument(doc) {
11483
+ this.activity.task.documents.push(doc);
11484
+ }
11485
+ ngOnInit() {
11486
+ this._getActivities();
11487
+ }
11488
+ showContent(menu) {
11489
+ this.selectedMenu = menu;
11490
+ }
11491
+ handleRegisterWork() {
11492
+ setTimeout(() => {
11493
+ /*if (this.activityActivities) {
11494
+ this.expandActivities = true;
11495
+ this.activityActivities.showRegisterWorkLeaf();
11496
+ }*/
11497
+ });
11498
+ }
11499
+ handleSaveActivity(activity) {
11500
+ this._updateTaskObject(activity, activity.IsWork ? "workLog" : "remarks");
11501
+ const index = this.activities.findIndex((src) => {
11502
+ return src.getId() === activity.getId();
11503
+ });
11504
+ if (index > -1) {
11505
+ this.activities[index] = activity;
11506
+ }
11507
+ else {
11508
+ this.activities.push(activity);
11509
+ }
11510
+ this.activities = this.activities.slice(0); // reset view
11511
+ }
11512
+ handleDeleteActivity(activity) {
11513
+ if (activity.IsWork) {
11514
+ this.activity.task.deleteWorkLog(activity.work);
11515
+ }
11516
+ else if (activity.IsRemark) {
11517
+ this.activity.task.deleteRemark(activity.remark);
11518
+ }
11519
+ }
11520
+ handleShowWorkLow() {
11521
+ this.expandActivities = true;
11522
+ this.showWorkLog.emit();
11523
+ }
11524
+ _updateTaskObject(activity, prop) {
11525
+ const cloneActivity = this._boFactory.makeWithRawBackendData(Activity, activity);
11526
+ if (cloneActivity.isNew) {
11527
+ this.activity.task[prop].push(activity.getBaseContent());
11528
+ }
11529
+ else {
11530
+ const index = this.activity.task[prop].findIndex((src) => {
11531
+ return src.getId() === activity.getBaseContent().getId();
11532
+ });
11533
+ if (index > -1) {
11534
+ this.activity.task[prop][index] = activity.getBaseContent();
11535
+ }
11536
+ }
11537
+ activity.editting = false;
11538
+ activity.isNew = false;
11539
+ }
11540
+ _getActivities() {
11541
+ return __awaiter(this, void 0, void 0, function* () {
11542
+ if (!this.key) {
11543
+ return;
11544
+ }
11545
+ this.activities = yield this.sharedService.getActivities(this.table, this.key.toString());
11546
+ });
11547
+ }
11548
+ }
11549
+ ModifyTaskFormComponent.decorators = [
11550
+ { type: Component, args: [{
11551
+ selector: "co-modify-task-form",
11552
+ template: `
11553
+ <div class="wrapper">
11554
+ <div class="modify-task-header-wrapper">
11555
+ <div class="modify-task-header">
11556
+ <span class="header-menu"
11557
+ [class.active]="selectedMenu === 'content-menu1'"
11558
+ [textContent]="'TASK_DETAILS' | localize"
11559
+ (click)="showContent('content-menu1')"></span>
11560
+ <span class="header-menu"
11561
+ [class.active]="selectedMenu === 'content-menu2'"
11562
+ [textContent]="'TASK_INFORMATION' | localize"
11563
+ (click)="showContent('content-menu2')"></span>
11564
+ <span class="header-menu"
11565
+ [class.active]="selectedMenu === 'content-menu3'"
11566
+ [textContent]="'PLANNING' | localize"
11567
+ (click)="showContent('content-menu3')"></span>
11568
+ </div>
11569
+ </div>
11570
+ <div class="content-menu-wrapper narrow-scrollbar">
11571
+ <div class="content-menu" [hidden]="selectedMenu !== 'content-menu1'">
11572
+ <div class="content-row-wrapper">
11573
+ <div class="content-left">
11574
+ <co-task-details [readonly]="readonly"
11575
+ [table]="TableNames.Tasks"
11576
+ [key]="key"
11577
+ [(activity)]="activity"
11578
+ (activityChange)="activityChange.emit($event)"
11579
+ (showWorkLog)="handleShowWorkLow()"
11580
+ noBorder
11581
+ ></co-task-details>
11582
+ <co-input-checkbox
11583
+ class="invoice-checkbox"
11584
+ [label]="'MARKED' | localize"
11585
+ [(model)]="activity.task.isInvoiced">
11586
+ </co-input-checkbox>
11587
+ <div class="marked-time-wrapper">
11588
+ <co-input-checkbox
11589
+ [(model)]="activity.task.workMandatory"
11590
+ [label]="'TIMEREGISTRATION_MANDATORY' | localize"
11591
+ noModuleService>
11592
+ </co-input-checkbox>
11593
+ <!-- TODO implement back later-->
11594
+ <!-- <arrow-link *ngIf="!readonly" label="REGISTER_TIME_HERE" (click)="handleRegisterWork()"></arrow-link>-->
11595
+ </div>
11596
+
11597
+ </div>
11598
+ <div class="content-right">
11599
+ <div class="activity-content-header" [textContent]="'PERSONS' | localize"></div>
11600
+ <co-executive-summary-block
11601
+ [readonly]="readonly"
11602
+ [(activity)]="activity"
11603
+ (activityChange)="activityChange.emit($event)" noBorder
11604
+ ></co-executive-summary-block>
11605
+
11606
+ <!--TODO implement new file upload here-->
11607
+ <!-- <activity-attachments
11608
+ [(activity)]="activity"
11609
+ [readonly]="readonly"
11610
+ [key]="activity.task.id"
11611
+ [noForceInput]="true"
11612
+ (activityChange)="activityChange.emit($event)"
11613
+ noBorder
11614
+ ></activity-attachments>-->
11615
+ </div>
11616
+ </div>
11617
+ <div class="activities-wrapper">
11618
+ <co-activity-list [activities]="activities">
11619
+
11620
+ </co-activity-list>
11621
+ </div>
11622
+ </div>
11623
+ <div class="content-menu" [hidden]="selectedMenu !== 'content-menu2'">
11624
+ <co-status-summary-block
11625
+ [readonly]="readonly"
11626
+ [(activity)]="activity"
11627
+ [table]="TableNames.Tasks"
11628
+ [key]="key"
11629
+ (activityChange)="activityChange.emit($event)" noBorder
11630
+ ></co-status-summary-block>
11631
+ <co-creation-summary-block
11632
+ [readonly]="readonly"
11633
+ [(activity)]="activity"
11634
+ (activityChange)="activityChange.emit($event)" noBorder
11635
+ ></co-creation-summary-block>
11636
+ <!--<planning-summary-block
11637
+ [readonly]="readonly"
11638
+ [(activity)]="activity"
11639
+ (activityChange)="activityChange.emit($event)" noBorder
11640
+ ></planning-summary-block>-->
11641
+ </div>
11642
+ <div class="content-menu" [hidden]="selectedMenu !== 'content-menu3'">
11643
+ <co-notification-summary-block
11644
+ [readonly]="readonly"
11645
+ [(activity)]="activity"
11646
+ (activityChange)="activityChange.emit($event)" noBorder
11647
+ ></co-notification-summary-block>
11648
+
11649
+ <!--TODO implement tags here-->
11650
+ <!--<tags
11651
+ [(joinedTags)]="activity.task.tags"
11652
+ [readonly]="readonly"
11653
+ [tagCategory]="TagCategory.tasks"
11654
+ [collapseable]="false"
11655
+ ></tags>-->
11656
+ </div>
11657
+ </div>
11658
+ </div>
11659
+ `,
11660
+ providers: [
11661
+ FormMasterService,
11662
+ {
11663
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
11664
+ useExisting: forwardRef(() => ModifyTaskFormComponent)
11665
+ }
11666
+ ]
11667
+ },] }
11668
+ ];
11669
+ ModifyTaskFormComponent.ctorParameters = () => [
11670
+ { type: BusinessObjectFactory },
11671
+ { type: SharedService }
11672
+ ];
11673
+ ModifyTaskFormComponent.propDecorators = {
11674
+ activity: [{ type: Input }],
11675
+ showClass: [{ type: HostBinding, args: ["class.co-modify-task-form",] }],
11676
+ activityTaskConfigNames: [{ type: Input }],
11677
+ readonly: [{ type: Input }],
11678
+ popupContext: [{ type: Input }],
11679
+ forceReadonly: [{ type: Input }],
11680
+ hidden: [{ type: HostBinding, args: ["class.hidden",] }],
11681
+ activityChange: [{ type: Output }],
11682
+ statusChange: [{ type: Output }],
11683
+ showWorkLog: [{ type: Output }]
11684
+ };
11685
+ __decorate([
11686
+ InputBoolean()
11687
+ ], ModifyTaskFormComponent.prototype, "forceReadonly", null);
11688
+
11689
+ class TaskModifierComponent {
11690
+ constructor(_dialogService, _boFactory, _dictionary, iconService) {
11691
+ this._dialogService = _dialogService;
11692
+ this._boFactory = _boFactory;
11693
+ this._dictionary = _dictionary;
11694
+ this.iconService = iconService;
11695
+ this.icons = Icon;
11696
+ this.editingComplete = new EventEmitter();
11697
+ this.activitySaved = new EventEmitter();
11698
+ this.activityDeleted = new EventEmitter();
11699
+ this.closedWithoutComplete = new EventEmitter();
11700
+ this.showWorkLog = new EventEmitter();
11701
+ this.taskCreated = new EventEmitter();
11702
+ this.taskModified = new EventEmitter();
11703
+ this.showAfterInsert = false;
11704
+ this.showNewForm = false;
11705
+ this.showModificationForm = false;
11706
+ this.taskEditting = false;
11707
+ this.Icon = Icon;
11708
+ }
11709
+ get readonly() {
11710
+ //return this.moduleService.readonly &&
11711
+ return false;
11712
+ }
11713
+ showClass() {
11714
+ return true;
11715
+ }
11716
+ get showForm() {
11717
+ return this.showNewForm || this.showModificationForm;
11718
+ }
11719
+ get header() {
11720
+ return (this.showModificationForm) ? "TASK" : "ADD_TASK2";
11721
+ }
11722
+ get subHeader() {
11723
+ return this.currentActivity ? this.currentActivity.task.taskId + "" : "";
11724
+ }
11725
+ get subSubHeader() {
11726
+ var _a, _b, _c, _d, _e, _f;
11727
+ 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)) {
11728
+ const label = this._dictionary.get('LAST_CHANGE');
11729
+ const lastModifiedBy = (_e = this.currentActivity.task) === null || _e === void 0 ? void 0 : _e.lastModifiedDisplayName;
11730
+ const lastModifiedDate = (_f = this.currentActivity.task) === null || _f === void 0 ? void 0 : _f.lastModifiedDate.toLocaleString();
11731
+ return label + ': ' + lastModifiedBy + ' | ' + lastModifiedDate;
11732
+ }
11733
+ return "";
11734
+ }
11735
+ get subHeaderLink() {
11736
+ if (this.showModificationForm && this.currentActivity && this.currentActivity.task) {
11737
+ if (this.currentActivity.task.workflowCategory && this.currentActivity.task.reference) {
11738
+ let activityName;
11739
+ activityName = this._dictionary.get("WORKFLOW_CATEGORY_" + this.currentActivity.task.workflowCategory) + " " + this.currentActivity.task.reference + ")";
11740
+ return activityName;
11741
+ }
11742
+ }
11743
+ return "";
11744
+ }
11745
+ get userIsTaskReporter() {
11746
+ return this.editActivity &&
11747
+ ((this.editActivity.task.reporterUserGroupId && this.editActivity.task.reporterUserGroupId === this.userGroupId) ||
11748
+ (this.editActivity.task.reporter && this.editActivity.task.reporter.relationId === this.relationId));
11749
+ }
11750
+ ngOnDestroy() {
11751
+ }
11752
+ handleSaveForm() {
11753
+ this.mainForm.submit();
11754
+ }
11755
+ onValid() {
11756
+ return __awaiter(this, void 0, void 0, function* () {
11757
+ if (this.editActivity) {
11758
+ const newActivity = this.editActivity.isNew;
11759
+ const result = yield this.upsertActivityOperation(this.editActivity);
11760
+ if (result) {
11761
+ this.activitySaved.next(this.editActivity);
11762
+ this.editingComplete.next(this.editActivity);
11763
+ if (newActivity) {
11764
+ this.taskCreated.next(this.editActivity.task);
11765
+ }
11766
+ else {
11767
+ this.taskModified.next(this.editActivity.task);
11768
+ }
11769
+ if (this.showAfterInsert) {
11770
+ this.startModifyingTask(this.editActivity);
11771
+ }
11772
+ }
11773
+ this.hide();
11774
+ }
11775
+ });
11776
+ }
11777
+ handleCancelForm() {
11778
+ this._createClone();
11779
+ //TODO: is this needed?
11780
+ //this.moduleService.cancelEdit();
11781
+ this.closedWithoutComplete.next(true);
11782
+ this.hide();
11783
+ }
11784
+ onPopupClose() {
11785
+ this.forceReadonly = false;
11786
+ this.hide();
11787
+ this.closedWithoutComplete.next(true);
11788
+ }
11789
+ //TODO figure out routing from external component
11790
+ /*public openReferenceInModule(): void {
11791
+ if (this.currentActivity && this.currentActivity.task) {
11792
+ if (this.currentActivity.task.workflowCategory === WorkflowCategoryType.AbsenceFile || this.currentActivity.task.workflowCategory === WorkflowCategoryType.PreventiveAbsenceFile) {
11793
+ this._appNavigator.navigateToIOneModule(IOneModuleName.AbsenceFile, this.currentActivity.task.referenceId);
11794
+ }
11795
+ }
11796
+
11797
+ }*/
11798
+ hide() {
11799
+ this.showNewForm = false;
11800
+ this.showModificationForm = false;
11801
+ }
11802
+ deleteTask() {
11803
+ return __awaiter(this, void 0, void 0, function* () {
11804
+ const doDelete = yield this._dialogService.showYesNo("DELETE_TASK", "DELETE_TASK", false);
11805
+ if (doDelete.button === AppPopupButtonType.Yes) {
11806
+ yield this.deleteActivityOperation(this.editActivity);
11807
+ this.activityDeleted.next(this.editActivity);
11808
+ this.hide();
11809
+ }
11810
+ });
11811
+ }
11812
+ createNewTask(standalone = true) {
11813
+ return __awaiter(this, void 0, void 0, function* () {
11814
+ if (this.showForm) {
11815
+ return;
11816
+ }
11817
+ this.showAfterInsert = false;
11818
+ this.currentActivity = yield this.createTaskOperation({ standalone: standalone, workflowCategory: this.workflowCategory, reference: this.reference, referenceId: this.referenceId });
11819
+ this._createClone();
11820
+ this.showNewForm = true;
11821
+ });
11822
+ }
11823
+ startModifyingTask(activity) {
11824
+ return __awaiter(this, void 0, void 0, function* () {
11825
+ if (this.showForm || !activity.IsTask) {
11826
+ return;
11827
+ }
11828
+ this.showAfterInsert = false;
11829
+ yield this.tryLockTaskOperation(activity.task.taskId);
11830
+ activity.task = activity.task;
11831
+ this.currentActivity = activity;
11832
+ this._createClone();
11833
+ this.showModificationForm = true;
11834
+ });
11835
+ }
11836
+ startModifyingTaskAndWorkLog(activity) {
11837
+ return __awaiter(this, void 0, void 0, function* () {
11838
+ yield this.startModifyingTask(activity);
11839
+ setTimeout(() => {
11840
+ /*if (this.modifyTaskForm) {
11841
+ this.modifyTaskForm.handleRegisterWork();
11842
+ }*/
11843
+ });
11844
+ });
11845
+ }
11846
+ _createClone() {
11847
+ this.editActivity = this._boFactory.makeWithRawBackendData(Activity, this.currentActivity);
11848
+ }
11849
+ doHandleStatusChange(editting) {
11850
+ this.taskEditting = editting;
11851
+ }
11852
+ updateEditActivity(activity) {
11853
+ this.editActivity = this._boFactory.makeWithRawBackendData(Activity, activity);
11854
+ }
11855
+ }
11856
+ TaskModifierComponent.decorators = [
11857
+ { type: Component, args: [{
11858
+ selector: "co-task-modifier",
11859
+ template: `
11860
+ <co-dialog *ngIf="showForm"
11861
+ (closeClick)="onPopupClose()"
11862
+ class="task-popup"
11863
+ cssId="task_modifier_popup"
11864
+ noClickOutside contentSize>
11865
+ <!--
11866
+ [header]="header"
11867
+ [subHeader]="subHeader"
11868
+ [subHeaderLink]="subHeaderLink"
11869
+ [subSubHeader]="subSubHeader"
11870
+ [headerIcon]="icons.Task"
11871
+ (openLink)="openReferenceInModule()"-->
11872
+ <!-- <ng-template>-->
11873
+ <div class="popup-wrapper"
11874
+ [ngClass]="(showNewForm) ? 'new-task-popup' : ''">
11875
+ <div class="form-wrapper mini-scrollbar">
11876
+ <co-form #mainForm (validSubmit)="onValid()">
11877
+ <!--
11878
+ <new-task-form *ngIf="showNewForm" [activity]="editActivity" [myCfgNames]="taskCfgNames" [taskKey]="referenceId" [taskWorkflowCategory]="workflowCategory"></new-task-form>
11879
+ -->
11880
+ <co-modify-task-form #modifyTaskForm *ngIf="showModificationForm"
11881
+ [activity]="editActivity"
11882
+ [readonly]="readonly"
11883
+ [popupContext]="true"
11884
+ (statusChange)="doHandleStatusChange($event)"
11885
+ (showWorkLog)="showWorkLog.emit()"
11886
+ (activityChange)="updateEditActivity($event)"
11887
+ ></co-modify-task-form>
11888
+ </co-form>
11889
+ </div>
11890
+ </div>
11891
+ <div class="popup-buttons" fxLayout="column">
11892
+ <div *ngIf="showNewForm" fxLayout="row" class="popup-thumb">
11893
+ <span [textContent]="'SHOW_AFTER_INSERT' | localize"></span>
11894
+ <!-- <thumb [(active)]=showAfterInsert"></thumb>-->
11895
+ </div>
11896
+ <div class="ok-cancel-buttons">
11897
+ <div class="button-left">
11898
+ <co-button [disabled]="readonly || taskEditting" [textContent]="'SAVE' | localize" (click)="handleSaveForm()"></co-button>
11899
+ </div>
11900
+ <div class="button-middle">
11901
+ <co-button *ngIf="showNewForm" [textContent]="'CANCEL' | localize" (click)="handleCancelForm()"></co-button>
11902
+ </div>
11903
+ <div class="button-right">
11904
+ <co-button *ngIf="showModificationForm && !readonly"
11905
+ [iconData]="iconService.getIcon(icons.Trashbin)" class="delete light"
11906
+ [disabled]="readonly || taskEditting"
11907
+ (click)="deleteTask()"></co-button>
11908
+ </div>
11909
+ </div>
11910
+ </div>
11911
+ <!-- </ng-template>-->
11912
+ </co-dialog>
11913
+ `
11914
+ },] }
11915
+ ];
11916
+ TaskModifierComponent.ctorParameters = () => [
11917
+ { type: CoreDialogService },
11918
+ { type: BusinessObjectFactory },
11919
+ { type: DictionaryService },
11920
+ { type: IconCacheService }
11921
+ ];
11922
+ TaskModifierComponent.propDecorators = {
11923
+ mainForm: [{ type: ViewChild, args: [FormComponent,] }],
11924
+ modifyTaskForm: [{ type: ViewChild, args: [forwardRef(() => ModifyTaskFormComponent),] }],
11925
+ workflowCategory: [{ type: Input }],
11926
+ reference: [{ type: Input }],
11927
+ referenceId: [{ type: Input }],
11928
+ userGroupId: [{ type: Input }],
11929
+ relationId: [{ type: Input }],
11930
+ upsertActivityOperation: [{ type: Input }],
11931
+ deleteActivityOperation: [{ type: Input }],
11932
+ tryLockTaskOperation: [{ type: Input }],
11933
+ createTaskOperation: [{ type: Input }],
11934
+ forceReadonly: [{ type: Input }],
11935
+ editingComplete: [{ type: Output }],
11936
+ activitySaved: [{ type: Output }],
11937
+ activityDeleted: [{ type: Output }],
11938
+ closedWithoutComplete: [{ type: Output }],
11939
+ showWorkLog: [{ type: Output }],
11940
+ taskCreated: [{ type: Output }],
11941
+ taskModified: [{ type: Output }],
11942
+ showClass: [{ type: HostBinding, args: ["class.co-task-modifier",] }]
11943
+ };
11944
+ __decorate([
11945
+ InputBoolean()
11946
+ ], TaskModifierComponent.prototype, "forceReadonly", void 0);
11947
+
11948
+ class BaseActivityOverviewComponent {
11949
+ constructor(_dialogService, _dictionaryService) {
11950
+ this._dialogService = _dialogService;
11951
+ this._dictionaryService = _dictionaryService;
11952
+ this.icon = Icon;
11953
+ this.cfgNames = ActivityCfgName;
11954
+ this.taskCfgNames = {
11955
+ timeRegistrationMandatory: ActivityCfgName.TimeRegistrationMandatory,
11956
+ deleteActivityTaskButton: ActivityCfgName.DeleteActivityTaskButton,
11957
+ statusSummaryHeader: ActivityCfgName.StatusSummaryHeader,
11958
+ creationSummaryHeader: ActivityCfgName.CreationSummaryHeader,
11959
+ executiveSummaryHeader: ActivityCfgName.ExecutiveSummaryHeader,
11960
+ planningSummaryHeader: ActivityCfgName.PlanningSummaryHeader,
11961
+ attachmentsHeader: ActivityCfgName.AttachmentsHeader,
11962
+ notificationsSummaryHeader: ActivityCfgName.NotificationsSummaryHeader,
11963
+ tagsHeader: ActivityCfgName.TagsHeader,
11964
+ taskInvoice: ActivityCfgName.TaskInvoice
11965
+ };
11966
+ this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
11967
+ this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
11968
+ this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
11969
+ this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
11970
+ this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
11971
+ this.fireGenericTriggerOperation = OperationWithValidationCallback;
11972
+ this.fireTriggerOperation = OperationWithValidationCallback;
11973
+ this.handleOpenLinkSidebar = false;
11974
+ this.activityChange = new EventEmitter();
11975
+ this.activityDeleted = new EventEmitter();
11976
+ this.triggerFired = new EventEmitter();
11977
+ this.genericTriggerFired = new EventEmitter();
11978
+ this.formCreated = new EventEmitter();
11979
+ this.openLink = new EventEmitter();
11980
+ this.linkClicked = new EventEmitter();
11981
+ this.overDue = false;
11982
+ this.userIsSupervisor = false;
11983
+ this.urls = [];
11984
+ this.isTask = false;
11985
+ this.hasTriggers = false;
11986
+ this.sameDates = false;
11987
+ this._activity = new Activity();
11988
+ }
11989
+ set viewModel(value) {
11990
+ this._viewModel = value;
11991
+ this.overDue = value.overDue;
11992
+ this.activity = value.activity;
11993
+ }
11994
+ set triggerToFireOnSave(value) {
11995
+ this._triggerToFireOnSave = value;
11996
+ }
11997
+ get triggerToFireOnSave() {
11998
+ return this._triggerToFireOnSave;
11999
+ }
12000
+ set activity(value) {
12001
+ this._activity = value;
12002
+ this._prepareData();
12003
+ }
12004
+ get activity() {
12005
+ return this._activity;
12006
+ }
12007
+ handleButtonEndClick() {
12008
+ this.handleTriggerClick(this.firstTriggerToCloseWF);
12009
+ }
12010
+ handleGenericTriggerClick(event) {
12011
+ return __awaiter(this, void 0, void 0, function* () {
12012
+ const result = yield this.fireGenericTriggerOperation(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId);
12013
+ if (result.success) {
12014
+ this.genericTriggerFired.next(this.activity);
12015
+ }
12016
+ else {
12017
+ const messages = [];
12018
+ const len = result.messages.length;
12019
+ for (let i = 0; i < len; i++) {
12020
+ messages.push(this._dictionaryService.get(result.messages[i].message.toUpperCase()));
12021
+ }
12022
+ this._dialogService.showError(messages.toString());
12023
+ }
12024
+ });
12025
+ }
12026
+ handleTriggerClick(eventTrigger) {
12027
+ return __awaiter(this, void 0, void 0, function* () {
12028
+ if (eventTrigger.isTaskTrigger && eventTrigger.taskId) {
12029
+ //prepare task on the activity object, so the task modifier can handle it
12030
+ this.activity.task = new Task();
12031
+ this.activity.activityType = ActivityType.Task;
12032
+ this.activity.task.taskId = eventTrigger.taskId;
12033
+ this.taskModifier.startModifyingTask(this.activity);
12034
+ }
12035
+ else if (eventTrigger.isFormTrigger) {
12036
+ //TODO reinstate when we know what to do with the formbuilder
12037
+ /*this.form = await this._formRepo.getForm(eventTrigger.formId);
12038
+ this.table = this.workFlow.table;
12039
+ this.key = this.workFlow.key;
12040
+ this.showCreateForm = true;*/
12041
+ }
12042
+ else {
12043
+ /*if (eventTrigger.toClosedState && !await this.canFireTriggerOperation({activity: this.activity, task: this.activity.task})) {
12044
+ await this.prepareWorkflowOperation({table: this.workFlow.table, key: this.workFlow.key});
12045
+ this.triggerToFireOnSave = eventTrigger;
12046
+ this.showTaskFormAndWorkLog();
12047
+ return;
12048
+ }*/
12049
+ const result = yield this.fireTriggerOperation(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId);
12050
+ if (result.success) {
12051
+ this.triggerFired.next(this.activity);
12052
+ }
12053
+ else {
12054
+ const messages = [];
12055
+ const len = result.messages.length;
12056
+ for (let i = 0; i < len; i++) {
12057
+ messages.push(this._dictionaryService.get(result.messages[i].message.toUpperCase()));
12058
+ }
12059
+ this._dialogService.showError(messages.toString());
12060
+ }
12061
+ }
12062
+ });
12063
+ }
12064
+ handleOpenLink(event, url) {
12065
+ this._stopEventPropagation(event);
12066
+ if (url) { // breadCrumbs to url
12067
+ this._openUrl(url);
12068
+ }
12069
+ else {
12070
+ this.startModifyingTask();
12071
+ }
12072
+ }
12073
+ handleOpenLinkOrUrl(event) {
12074
+ this._stopEventPropagation(event);
12075
+ if (this.link && this.link.module) {
12076
+ this.linkClicked.next({ module: this.link.module, id: this.link.id });
12077
+ }
12078
+ else if (this.urls && this.urls.length) {
12079
+ this._openUrl(this.urls[0]);
12080
+ }
12081
+ else {
12082
+ this.startModifyingTask();
12083
+ }
12084
+ }
12085
+ startModifyingTask() {
12086
+ if (this.workFlow && this.workFlow.workFlowHasOneTaskTrigger) {
12087
+ this.activity.task = new Task();
12088
+ this.activity.activityType = ActivityType.Task;
12089
+ this.activity.task.taskId = this.workFlow.taskIdFromTaskTrigger;
12090
+ }
12091
+ if (this.activity.task) {
12092
+ if (this.handleOpenLinkSidebar === true) {
12093
+ this.openLink.next(this.activity);
12094
+ }
12095
+ else {
12096
+ this.taskModifier.startModifyingTask(this.activity);
12097
+ }
12098
+ }
12099
+ // TODO: for now a message is shown.
12100
+ else if (this.workFlow) {
12101
+ this._dialogService.showInformation("Component: " + this.workFlow.component + " key: " + this.workFlow.displayKey);
12102
+ }
12103
+ }
12104
+ showTaskFormAndWorkLog() {
12105
+ if (this.activity.task) {
12106
+ //TODO REINSTATE AFTER FIXING FORM
12107
+ //this.taskModifier.startModifyingTaskAndWorkLog(this.activity);
12108
+ }
12109
+ }
12110
+ onSaveActivity(activity) {
12111
+ this.activity = activity;
12112
+ this.activityChange.next(this.activity);
12113
+ }
12114
+ onDeleteActivity(activity) {
12115
+ if (this.activity.getId() === activity.getId()) {
12116
+ if (this._viewModel) {
12117
+ this._viewModel.deleted = true;
12118
+ this._viewModel.showing = false;
12119
+ this._viewModel.refreshViewModel();
12120
+ }
12121
+ this.activityDeleted.emit(activity);
12122
+ }
12123
+ }
12124
+ //TODO Reinstate once we know what to do with the formbuilder
12125
+ /*public doCancelForm(): void {
12126
+ this.showCreateForm = false;
12127
+ }
12128
+
12129
+ public async doSaveForm(form: FormResponse): Promise<void> {
12130
+ const result: ValidationResult = await this._formRepo.insertFormResponse(form);
12131
+ if (result.success) {
12132
+ this.formCreated.next();
12133
+ this.showCreateForm = false;
12134
+ }
12135
+ }*/
12136
+ _prepareData() {
12137
+ this.workFlow = this._activity.workflow;
12138
+ if (this.workFlow) {
12139
+ this.workFlow.useSingleTaskTriggerAsTask = true;
12140
+ this.urls = this.workFlow.urls;
12141
+ this.hasTriggers = this.workFlow.hasTriggers;
12142
+ }
12143
+ this.activityName = this.activity.name;
12144
+ this.link = this.activity.link;
12145
+ this.linkDescription = this.activity.linkDescription;
12146
+ this.targetDate = this.activity.targetDateTime;
12147
+ this.deadlineDate = this.activity.deadlineDateTime;
12148
+ this.openButtonLabel = this.activity.linkLabel;
12149
+ this.activityTitle = this.activity.activityTitle;
12150
+ this.activityContextTitle = this.activity.activityContextTitle;
12151
+ this.isTask = this._activity.IsTask;
12152
+ this.sameDates = DateUtils.IsSameDay(this.targetDate, this.deadlineDate);
12153
+ this._setFirstTriggerToCloseWF();
12154
+ }
12155
+ _setFirstTriggerToCloseWF() {
12156
+ if (isNill$1(this.workFlow) || isNill$1(this.workFlow.manualTriggers)) {
12157
+ return;
12158
+ }
12159
+ this.firstTriggerToCloseWF = undefined;
12160
+ const len = this.workFlow.manualTriggers.length;
12161
+ for (let i = 0; i < len; i++) {
12162
+ if (this.workFlow.manualTriggers[i].toClosedState) {
12163
+ this.firstTriggerToCloseWF = this.workFlow.manualTriggers[i];
12164
+ break;
12165
+ }
12166
+ }
12167
+ }
12168
+ _openUrl(url) {
12169
+ const regEx = new RegExp(/(http)|(www.)/);
12170
+ if (regEx.test(url)) {
12171
+ window.open(url.indexOf("http") === -1 ? "http://" + url : url, "_blank");
12172
+ }
12173
+ else {
12174
+ //this._router.navigateByUrl(url);
12175
+ }
12176
+ }
12177
+ _stopEventPropagation(event) {
12178
+ event.preventDefault();
12179
+ event.stopPropagation();
12180
+ event.stopImmediatePropagation();
12181
+ }
12182
+ }
12183
+ BaseActivityOverviewComponent.decorators = [
12184
+ { type: Directive },
12185
+ { type: Injectable }
12186
+ ];
12187
+ BaseActivityOverviewComponent.ctorParameters = () => [
12188
+ { type: CoreDialogService },
12189
+ { type: DictionaryService }
12190
+ ];
12191
+ BaseActivityOverviewComponent.propDecorators = {
12192
+ taskModifier: [{ type: ViewChild, args: [TaskModifierComponent, { static: true },] }],
12193
+ viewModel: [{ type: Input }],
12194
+ triggerToFireOnSave: [{ type: Input }],
12195
+ canFireTriggerOperation: [{ type: Input }],
12196
+ prepareWorkflowOperation: [{ type: Input }],
12197
+ lockTaskOperation: [{ type: Input }],
12198
+ deleteActivityOperation: [{ type: Input }],
12199
+ upsertActivityOperation: [{ type: Input }],
12200
+ fireGenericTriggerOperation: [{ type: Input }],
12201
+ fireTriggerOperation: [{ type: Input }],
12202
+ userRelationId: [{ type: Input }],
12203
+ userGroupId: [{ type: Input }],
12204
+ handleOpenLinkSidebar: [{ type: Input }],
12205
+ activityChange: [{ type: Output }],
12206
+ activityDeleted: [{ type: Output }],
12207
+ triggerFired: [{ type: Output }],
12208
+ genericTriggerFired: [{ type: Output }],
12209
+ formCreated: [{ type: Output }],
12210
+ openLink: [{ type: Output }],
12211
+ linkClicked: [{ type: Output }]
12212
+ };
12213
+ __decorate([
12214
+ InputBoolean()
12215
+ ], BaseActivityOverviewComponent.prototype, "handleOpenLinkSidebar", void 0);
12216
+
12217
+ class PersonalActivityOverviewComponent extends BaseActivityOverviewComponent {
12218
+ showClass() {
12219
+ return true;
12220
+ }
12221
+ }
12222
+ PersonalActivityOverviewComponent.decorators = [
12223
+ { type: Component, args: [{
12224
+ selector: "co-personal-activity-overview",
12225
+ template: `
12226
+ <div class="overview-wrapper pointer-hover" (click)="handleOpenLinkOrUrl($event)">
12227
+ <div class="overview-wrapper-labels">
12228
+ <div class="activity-title" [textContent]="activityTitle"></div>
12229
+ <div class="activity-context-title" [textContent]="activityContextTitle"></div>
12230
+ </div>
12231
+ <div class="overview-wrapper-date">
12232
+ <div class="date-wrapper" [class.overdue]="overDue">
12233
+ <ng-container *ngIf="!sameDates">
12234
+ <div class="date" [textContent]="targetDate | date:'dd-MM-YYYY'"></div>
12235
+ <div class="date-divider" [textContent]="'-'"></div>
12236
+ </ng-container>
12237
+ <!--TODO REINSTATE AFTER finding what the heck is wrong with date-->
12238
+ <!--<div class="date" [textContent]="deadlineDate | date:'dd-MM-YYYY'"></div>-->
12239
+ </div>
12240
+ </div>
12241
+ </div>
12242
+ <!--TODO REINSTATE AFTER FIXING FORM-->
12243
+ <!-- <co-task-modifier
12244
+ (editingComplete)="onSaveActivity($event)"
12245
+ (activityDeleted)="onDeleteActivity($event)"
12246
+ (showWorkLog)="showTaskFormAndWorkLog()"
12247
+ ></co-task-modifier>-->
12248
+ <!-- [taskCfgNames]="taskCfgNames"-->
12249
+ `
12250
+ },] }
12251
+ ];
12252
+ PersonalActivityOverviewComponent.propDecorators = {
12253
+ showClass: [{ type: HostBinding, args: ["class.co-personal-activity-overview",] }]
12254
+ };
12255
+
12256
+ class ComponentActivityListComponent extends BaseActivityListComponent {
12257
+ constructor() {
12258
+ super();
12259
+ this.tabs = PersonalActivityTabEnum;
12260
+ this.icons = Icon;
12261
+ this.activityClass = Activity;
12262
+ this.activitySortType = ActivitySortType;
12263
+ this.hideTitle = false;
12264
+ this.noFreeTasks = false;
12265
+ this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
12266
+ this.fireGenericTriggerOperation = OperationWithValidationCallback;
12267
+ this.fireTriggerOperation = OperationWithValidationCallback;
12268
+ this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
12269
+ this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
12270
+ this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
12271
+ this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
12272
+ this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
12273
+ this.openLinkClick = new EventEmitter();
12274
+ this.amountActivityChanged = new EventEmitter();
12275
+ this.linkClicked = new EventEmitter();
12276
+ this.formCreated = new EventEmitter();
12277
+ this.genericTriggerFired = new EventEmitter();
12278
+ this.triggerFired = new EventEmitter();
12279
+ this.showUsergroupActivitiesChanged = new EventEmitter();
12280
+ this.activeTab = PersonalActivityTabEnum.TODO;
12281
+ /*public activitySortList: boolean[] = [];*/
12282
+ this.activityList = [];
12283
+ this._subs = [];
12284
+ this._activitiesList = [];
12285
+ }
12286
+ showClass() {
12287
+ return true;
12288
+ }
12289
+ set table(value) {
12290
+ this._table = value;
12291
+ this.getTheActivities();
12292
+ }
12293
+ get table() {
12294
+ return this._table;
12295
+ }
12296
+ set key(value) {
12297
+ this._key = value;
12298
+ this.getTheActivities();
12299
+ }
12300
+ get key() {
12301
+ return this._key;
12302
+ }
12303
+ trackByFn(index, vm) {
12304
+ return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
12305
+ }
12306
+ //TODO do we still need this?
12307
+ /*async ngOnInit(): Promise<void> {
12308
+ this._subs.push(
12309
+ this._appEventService.taskCreated.subscribe(() => {
12310
+ this.getTheActivities();
12311
+ }),
12312
+ this._appEventService.taskModified.subscribe(() => {
12313
+ this.getTheActivities();
12314
+ }),
12315
+ this._appEventService.triggerFired.subscribe(() => {
12316
+ this.getTheActivities();
12317
+ })
12318
+ );
12319
+ }*/
12320
+ ngOnDestroy() {
12321
+ this._subs.forEach(s => s.unsubscribe());
12322
+ super.ngOnDestroy();
12323
+ }
12324
+ set activitiesList(allActivities) {
12325
+ this._activitiesList = allActivities;
12326
+ if (allActivities) {
12327
+ this.activities = this.noFreeTasks ? allActivities.filter(aa => !aa.task && aa.activityType !== ActivityType.WorkflowTask) :
12328
+ allActivities.filter(aa => aa.activityType !== ActivityType.WorkflowTask);
12329
+ }
12330
+ else {
12331
+ this.activities = [];
12332
+ }
12333
+ }
12334
+ get activitiesList() {
12335
+ return this._activitiesList;
12336
+ }
12337
+ /*public async getActivities(): Promise<void> {
12338
+ if (this.table && this.key) {
12339
+ const allActivities: Activity[] = await this._activityRepo.getComponentActivities(this.table, this.key);
12340
+ if (allActivities) {
12341
+ this.activities = this.noFreeTasks ? allActivities.filter(aa => !aa.task && aa.activityType !== ActivityType.WorkflowTask) :
12342
+ allActivities.filter(aa => aa.activityType !== ActivityType.WorkflowTask);
12343
+ } else {
12344
+ this.activities = [];
12345
+ }
12346
+ this.amountActivityChanged.next(this.activities.length);
12347
+ }
12348
+ }*/
12349
+ getDelegatedActivities() {
12350
+ return __awaiter(this, void 0, void 0, function* () {
12351
+ // const allActivities: Activity[] = await this._activityRepo.getComponentActivities(this.table, this.key);
12352
+ // this.delegatedActivities = allActivities ? allActivities.filter(aa => aa.activityType !== ActivityType.WorkflowTask) : [];
12353
+ });
12354
+ }
12355
+ /*//TODO there were already unused before the move. Can they go?
12356
+ public handleOpenLink(activity: Activity): void {
12357
+ this.openLinkClick.next(activity);
12358
+ }*/
12359
+ showUsergroupActivitiesChange() {
12360
+ this.showUsergroupActivitiesChanged.next();
12361
+ }
12362
+ handleTriggerFired(activity) {
12363
+ this.triggerFired.next(activity);
12364
+ }
12365
+ handleGenericTriggerFired(activity) {
12366
+ this.genericTriggerFired.next(activity);
12367
+ }
12368
+ handleFormCreation() {
12369
+ this.formCreated.next();
12370
+ }
12371
+ handleChangedActivity(idx, activity) {
12372
+ if (this.activities) {
12373
+ this.activities[idx] = activity;
12374
+ }
12375
+ }
12376
+ deleteActivity(activity) {
12377
+ this.amountActivityChanged.next(this.activities.length - 1);
12378
+ }
12379
+ reset() {
12380
+ super.reset();
12381
+ this.activityList = [];
12382
+ }
12383
+ doFilterClicked(filter) {
12384
+ if (filter.from && filter.to) {
12385
+ this.filterFrom = new Date(filter.from);
12386
+ this.filterFrom.setHours(0);
12387
+ this.filterFrom.setMinutes(0);
12388
+ this.filterFrom.setSeconds(0);
12389
+ this.filterTo = new Date(filter.to);
12390
+ this.filterTo.setHours(0);
12391
+ this.filterTo.setMinutes(0);
12392
+ this.filterTo.setSeconds(0);
12393
+ }
12394
+ else {
12395
+ this.filterFrom = undefined;
12396
+ this.filterTo = undefined;
12397
+ }
12398
+ this.applyFilter();
12399
+ }
12400
+ openFirstTask() {
12401
+ if (!this.activities) {
12402
+ return;
12403
+ }
12404
+ const tasks = this.activities.filter((value => value.IsTask));
12405
+ if (tasks && tasks.length > 0) {
12406
+ const activityOverviews = this.activityOverviewList.toArray();
12407
+ if (activityOverviews && activityOverviews.length) {
12408
+ const len = activityOverviews.length;
12409
+ for (let i = 0; i < len; i++) {
12410
+ if (activityOverviews[i].activity.getId() === tasks[0].getId()) {
12411
+ activityOverviews[i].startModifyingTask();
12412
+ }
12413
+ }
12414
+ }
12415
+ }
12416
+ }
12417
+ }
12418
+ ComponentActivityListComponent.decorators = [
12419
+ { type: Component, args: [{
12420
+ selector: "co-component-activity-list",
12421
+ template: `
12422
+ <co-activity-list-header
12423
+ [title]="'ACTIVITIES'"
12424
+ [table]="table"
12425
+ [key]="key"
12426
+ [(showUsergroupActivities)]="showUsergroupActivities"
12427
+ [(searchText)]="searchText"
12428
+ (periodFilterClicked)="doFilterClicked($event)"
12429
+ (searchTextChange)="applyFilter()"
12430
+ (showUsergroupActivitiesChange)="showUsergroupActivitiesChange()"
12431
+ [setHasPausedNotificationsForWorkflowProcessOperation]="setHasPausedNotificationsForWorkflowProcessOperation"
12432
+ ></co-activity-list-header>
12433
+ <div class="activity-list-content">
12434
+ <div class="activity-wrapper" [@showHideTab]="activeTab">
12435
+ <div class="activity-tab-content mini-scrollbar">
12436
+ <ng-container *ngFor="let activityListViewModel of privateActivityListViewModels">
12437
+ <co-collapsible *ngIf="activityListViewModel.showing" #collapseable
12438
+ [headerTitle]="activityListViewModel.label + ' ' + activityListViewModel.amount"
12439
+ [(expanded)]="activityListViewModel.expanded">
12440
+ <ng-container *ngFor="let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index">
12441
+ <co-component-activity-overview *ngIf="activityViewModel.showing"
12442
+ [fireGenericTriggerOperation]="fireGenericTriggerOperation"
12443
+ [fireTriggerOperation]="fireTriggerOperation"
12444
+ [canFireTriggerOperation]="canFireTriggerOperation"
12445
+ [viewModel]="activityViewModel"
12446
+ [userRelationId]="relationId"
12447
+ [userGroupId]="userGroupId"
12448
+ [lockTaskOperation]="lockTaskOperation"
12449
+ [deleteActivityOperation]="deleteActivityOperation"
12450
+ [upsertActivityOperation]="upsertActivityOperation"
12451
+ (activityChange)="handleChangedActivity(index, $event)"
12452
+ (activityDeleted)="deleteActivity($event)"
12453
+ (genericTriggerFired)="handleGenericTriggerFired($event)"
12454
+ (triggerFired)="handleTriggerFired($event)"
12455
+ (linkClicked)="linkClicked.emit($event)"
12456
+ (formCreated)="handleFormCreation()"></co-component-activity-overview>
12457
+ </ng-container>
12458
+ </co-collapsible>
12459
+ </ng-container>
12460
+ </div>
12461
+ <div class="activity-tab-content mini-scrollbar">
12462
+ <ng-container *ngFor="let activityListViewModel of privateDelegatedActivityListViewModels">
12463
+ <co-collapsible *ngIf="activityListViewModel.showing" #collapseable
12464
+ [headerTitle]="activityListViewModel.label + ' ' + activityListViewModel.amount"
12465
+ [(expanded)]="activityListViewModel.expanded">
12466
+ <ng-container *ngFor="let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index">
12467
+ <co-component-activity-overview *ngIf="activityViewModel.showing"
12468
+ [fireGenericTriggerOperation]="fireGenericTriggerOperation"
12469
+ [fireTriggerOperation]="fireTriggerOperation"
12470
+ [canFireTriggerOperation]="canFireTriggerOperation"
12471
+ [viewModel]="activityViewModel"
12472
+ [userRelationId]="relationId"
12473
+ [userGroupId]="userGroupId"
12474
+ (activityChange)="handleChangedActivity(index, $event)"
12475
+ (activityDeleted)="deleteActivity($event)"
12476
+ (genericTriggerFired)="handleGenericTriggerFired($event)"
12477
+ (triggerFired)="handleTriggerFired($event)"
12478
+ (linkClicked)="linkClicked.emit($event)"
12479
+ (formCreated)="handleFormCreation()"></co-component-activity-overview>
12480
+ </ng-container>
12481
+ </co-collapsible>
12482
+ </ng-container>
12483
+ </div>
12484
+ </div>
12485
+ </div>
12486
+ `,
12487
+ animations: [
12488
+ trigger("showHideContent", [
12489
+ state("void", style({ transform: "scaleY(0)", opacity: 0 })),
12490
+ state("*", style({ transform: "scaleY(1)", opacity: 1 })),
12491
+ transition(`void <=> *`, animate("200ms ease-in-out"))
12492
+ ]),
12493
+ trigger("showHideTab", [
12494
+ state("TODO", style({ transform: "translateX(0)" })),
12495
+ state("DELEGATED", style({ transform: "translateX(calc(-100% - 20px))" })),
12496
+ transition(`TODO <=> DELEGATED`, animate("200ms ease-in-out"))
12497
+ ])
12498
+ ]
12499
+ },] }
12500
+ ];
12501
+ ComponentActivityListComponent.ctorParameters = () => [];
12502
+ ComponentActivityListComponent.propDecorators = {
12503
+ activityOverviewList: [{ type: ViewChildren, args: [PersonalActivityOverviewComponent,] }],
12504
+ showClass: [{ type: HostBinding, args: ["class.co-component-activity-list",] }],
12505
+ table: [{ type: Input }],
12506
+ key: [{ type: Input }],
12507
+ hideTitle: [{ type: Input }],
12508
+ noFreeTasks: [{ type: Input }],
12509
+ customTitle: [{ type: Input }],
12510
+ userGroupId: [{ type: Input }],
12511
+ relationId: [{ type: Input }],
12512
+ componentActivitiesMethod: [{ type: Input }],
12513
+ fireGenericTriggerOperation: [{ type: Input }],
12514
+ fireTriggerOperation: [{ type: Input }],
12515
+ canFireTriggerOperation: [{ type: Input }],
12516
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: Input }],
12517
+ lockTaskOperation: [{ type: Input }],
12518
+ deleteActivityOperation: [{ type: Input }],
12519
+ upsertActivityOperation: [{ type: Input }],
12520
+ openLinkClick: [{ type: Output }],
12521
+ amountActivityChanged: [{ type: Output }],
12522
+ linkClicked: [{ type: Output }],
12523
+ formCreated: [{ type: Output }],
12524
+ genericTriggerFired: [{ type: Output }],
12525
+ triggerFired: [{ type: Output }],
12526
+ showUsergroupActivitiesChanged: [{ type: Output }],
12527
+ activitiesList: [{ type: Input }]
12528
+ };
12529
+ __decorate([
12530
+ InputBoolean()
12531
+ ], ComponentActivityListComponent.prototype, "hideTitle", void 0);
12532
+ __decorate([
12533
+ InputBoolean()
12534
+ ], ComponentActivityListComponent.prototype, "noFreeTasks", void 0);
12535
+
12536
+ class PersonalActivityOverviewModule {
12537
+ }
12538
+ PersonalActivityOverviewModule.decorators = [
12539
+ { type: NgModule, args: [{
12540
+ imports: [
12541
+ CommonModule
12542
+ ],
12543
+ declarations: [
12544
+ PersonalActivityOverviewComponent
12545
+ ],
12546
+ exports: [
12547
+ PersonalActivityOverviewComponent
12548
+ ]
12549
+ },] }
12550
+ ];
12551
+
12552
+ class ComponentActivityOverviewComponent extends BaseActivityOverviewComponent {
12553
+ constructor(iconCacheService, dialogService, dictionaryService) {
12554
+ super(dialogService, dictionaryService);
12555
+ this.iconCacheService = iconCacheService;
12556
+ this.dialogService = dialogService;
12557
+ this.dictionaryService = dictionaryService;
12558
+ this.Icon = Icon;
12559
+ }
12560
+ showClass() {
12561
+ return true;
12562
+ }
12563
+ }
12564
+ ComponentActivityOverviewComponent.decorators = [
12565
+ { type: Component, args: [{
12566
+ selector: "co-component-activity-overview",
12567
+ template: `
12568
+ <div class="overview-wrapper">
12569
+ <div class="overview-wrapper-icons">
12570
+ <co-icon *ngIf="userIsSupervisor && (!isTask || firstTriggerToCloseWF === undefined)" icon="supervisor"
12571
+ class="supervisor-icon big dark"
12572
+ [title]="'MY_TASKS_SUPERVISOR' | localize"></co-icon>
12573
+ </div>
12574
+ <div class="overview-wrapper-labels">
12575
+ <div class="activity-title" [textContent]="activityTitle"></div>
12576
+ <div class="activity-context-title" [textContent]="activityContextTitle"></div>
12577
+ </div>
12578
+ <div class="overview-wrapper-date">
12579
+ <div class="date-wrapper" [class.overdue]="overDue">
12580
+ <ng-container *ngIf="!sameDates">
12581
+ <div class="date" [textContent]="targetDate | date:'dd-MM-YYYY'"></div>
12582
+ <div class="date-divider" [textContent]="'-'"></div>
12583
+ </ng-container>
12584
+ <div class="date" [textContent]="deadlineDate | date:'dd-MM-YYYY'"></div>
12585
+ </div>
12586
+ </div>
12587
+ </div>
12588
+ <div class="overview-main">
12589
+ <ng-container *ngIf="isTask && firstTriggerToCloseWF !== undefined">
12590
+ <co-button class="trans-green custom-text button-trigger no-margin" [label]="firstTriggerToCloseWF.description"
12591
+ (click)="handleButtonEndClick()"></co-button>
12592
+ </ng-container>
12593
+ <ng-container *ngIf="openButtonLabel">
12594
+ <co-button class="trans-green default-bg custom-text button-trigger-icon action-hover no-margin"
12595
+ iconClass="custom small" [iconData]="iconCacheService.getIcon(icon.DetailView)" [label]="openButtonLabel | localize"
12596
+ (click)="handleOpenLink($event)"></co-button>
12597
+ </ng-container>
12598
+ <!--TODO reinstate this when we figure out how to trigger a screen change. -->
12599
+ <!--<ng-container *ngIf="urls && urls.length > 0">
12600
+ <button-colijn *ngFor="let url of urls"
12601
+ class="trans-green custom-text button-trigger-icon action-hover no-margin"
12602
+ [icon]="icon.DetailView"
12603
+ [label]="'OPEN_LINK' | localize"
12604
+ iconClass="custom small"
12605
+ (click)="handleOpenLink($event, url)"></button-colijn>
12606
+ </ng-container>-->
12607
+ <ng-container *ngIf="!isTask && hasTriggers">
12608
+ <co-button class="trans-green custom-text action-hover button-trigger no-margin" *ngFor="let trigger of workFlow.manualGenericTriggers"
12609
+ [class.button-trigger-icon]="trigger.isTaskTrigger"
12610
+ [label]="trigger.triggerButtonName"
12611
+ [iconData]="trigger.isTaskTrigger ? iconCacheService.getIcon(icon.Account): null"
12612
+ iconClass="custom small"
12613
+ (click)="handleGenericTriggerClick(trigger)"
12614
+ ></co-button>
12615
+ <co-button class="trans-green custom-text action-hover button-trigger no-margin" *ngFor="let trigger of workFlow.manualTriggers"
12616
+ [class.high-prio]="trigger.overDue"
12617
+ [class.button-trigger-icon]="trigger.isTaskTrigger"
12618
+ [label]="trigger.triggerButtonName"
12619
+ [iconData]="trigger.isTaskTrigger ? iconCacheService.getIcon(icon.DetailView): null"
12620
+ iconClass="custom small"
12621
+ (click)="handleTriggerClick(trigger)"
12622
+ ></co-button >
12623
+ </ng-container>
12624
+ </div>
12625
+ <!--TODO reinstate this when we figure out how to trigger a screen change. -->
12626
+ <!-- <formbuilder-user-form *ngIf="showCreateForm"
12627
+ [showPopup]="showCreateForm"
12628
+ [table]="table"
12629
+ [key]="key"
12630
+ [form]="form"
12631
+ (cancelForm)="doCancelForm()"
12632
+ (saveForm)="doSaveForm($event)"
12633
+ ></formbuilder-user-form>-->
12634
+ <co-task-modifier
12635
+ [userGroupId]="userGroupId"
12636
+ [relationId]="userRelationId"
12637
+ [tryLockTaskOperation]="lockTaskOperation"
12638
+ [deleteActivityOperation]="deleteActivityOperation"
12639
+ [upsertActivityOperation]="upsertActivityOperation"
12640
+ (editingComplete)="onSaveActivity($event)"
12641
+ (activityDeleted)="onDeleteActivity($event)"
12642
+ (showWorkLog)="showTaskFormAndWorkLog()"
12643
+ ></co-task-modifier>
12644
+
12645
+ `,
12646
+ /* providers: [
12647
+ {provide: BaseModuleScreenConfigService, useExisting: ScreenConfigurationMockService}
12648
+ ],*/
12649
+ animations: [
12650
+ trigger("fadeInOut", [
12651
+ state("void", style({ opacity: 0 })),
12652
+ state("*", style({ opacity: 1 })),
12653
+ transition(":enter, :leave", animate("200ms ease-in-out")),
12654
+ ]),
12655
+ trigger("showHideExtended", [
12656
+ state("void", style({ "transform-origin": "top center", transform: "scaleY(0)" })),
12657
+ state("*", style({ "transform-origin": "top center", transform: "scaleY(1)" })),
12658
+ transition(":enter, :leave", [
12659
+ animate("200ms ease-in-out")
12660
+ ])
12661
+ ])
12662
+ ]
12663
+ },] }
12664
+ ];
12665
+ ComponentActivityOverviewComponent.ctorParameters = () => [
12666
+ { type: IconCacheService },
12667
+ { type: CoreDialogService },
12668
+ { type: DictionaryService }
12669
+ ];
12670
+ ComponentActivityOverviewComponent.propDecorators = {
12671
+ showClass: [{ type: HostBinding, args: ["class.co-component-activity-overview",] }]
12672
+ };
12673
+
12674
+ class BaseActivitySummaryComponent {
12675
+ constructor(dictionaryService, dialogService) {
12676
+ this.dictionaryService = dictionaryService;
12677
+ this.dialogService = dialogService;
12678
+ this.expanded = false;
12679
+ this.noBorder = false;
12680
+ this.readonly = false;
12681
+ this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
12682
+ this.fireTriggerOperation = OperationWithValidationCallback;
12683
+ this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
12684
+ this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
12685
+ this.activityChange = new EventEmitter();
12686
+ this.showWorkLog = new EventEmitter();
12687
+ this.triggerFired = new EventEmitter();
12688
+ }
12689
+ set activity(value) {
12690
+ this.editActivity = value;
12691
+ }
12692
+ get activity() {
12693
+ return this.editActivity;
12694
+ }
12695
+ set workFlow(value) {
12696
+ this._workFlow = value;
12697
+ }
12698
+ get workFlow() {
12699
+ return this._workFlow;
12700
+ }
12701
+ set task(value) {
12702
+ this._task = value;
12703
+ }
12704
+ get task() {
12705
+ return this._task;
12706
+ }
12707
+ set triggerToFireOnSave(value) {
12708
+ this._triggerToFireOnSave = value;
12709
+ }
12710
+ get triggerToFireOnSave() {
12711
+ return this._triggerToFireOnSave;
12712
+ }
12713
+ handleSave(event) {
12714
+ this._saveClone();
12715
+ }
12716
+ handleCancel(event) {
12717
+ this.expanded = false;
12718
+ }
12719
+ handleTriggerClick(trigger) {
12720
+ return __awaiter(this, void 0, void 0, function* () {
12721
+ if (this.readonly) {
12722
+ return;
12723
+ }
12724
+ if (trigger.toClosedState) {
12725
+ const canFire = yield this.canFireTriggerOperation({ editActivity: this.editActivity, task: this.editActivity.task });
12726
+ if (!canFire) {
12727
+ this.triggerToFireOnSave = trigger;
12728
+ this.showWorkLog.next();
12729
+ return;
12730
+ }
12731
+ }
12732
+ const result = yield this.fireTriggerOperation(trigger, null, null);
12733
+ if (result.success) {
12734
+ yield this.updateActivityTask(this.editActivity.task);
12735
+ yield this.prepareWorkflow();
12736
+ this.triggerFired.emit(this.workFlow);
12737
+ }
12738
+ else {
12739
+ const messages = [];
12740
+ const len = result.messages.length;
12741
+ for (let i = 0; i < len; i++) {
12742
+ messages.push(this.dictionaryService.get(result.messages[i].message.toUpperCase()));
12743
+ }
12744
+ this.dialogService.showError(messages.toString());
12745
+ }
12746
+ });
12747
+ }
12748
+ handleExpandClick(value) {
12749
+ this.expanded = value;
12750
+ }
12751
+ prepareWorkflow() {
12752
+ return __awaiter(this, void 0, void 0, function* () {
12753
+ if (this.table && this.key) {
12754
+ yield this.prepareWorkflowOperation({ table: this.table, key: this.key });
12755
+ }
12756
+ });
12757
+ }
12758
+ _saveClone() {
12759
+ this.activityChange.next(this.editActivity);
12760
+ }
12761
+ updateActivityTask(task) {
12762
+ return __awaiter(this, void 0, void 0, function* () {
12763
+ if (task) {
12764
+ yield this.loadTaskOperation(task.taskId);
12765
+ this.editActivity.task = this.task;
12766
+ this.activityChange.emit(this.editActivity);
12767
+ }
12768
+ });
12769
+ }
12770
+ }
12771
+ BaseActivitySummaryComponent.decorators = [
12772
+ { type: Directive }
12773
+ ];
12774
+ BaseActivitySummaryComponent.ctorParameters = () => [
12775
+ { type: DictionaryService },
12776
+ { type: CoreDialogService }
12777
+ ];
12778
+ BaseActivitySummaryComponent.propDecorators = {
12779
+ activity: [{ type: Input }],
12780
+ workFlow: [{ type: Input }],
12781
+ task: [{ type: Input }],
12782
+ table: [{ type: Input }],
12783
+ key: [{ type: Input }],
12784
+ expanded: [{ type: Input }],
12785
+ noBorder: [{ type: HostBinding, args: ["class.no-border",] }, { type: Input }],
12786
+ readonly: [{ type: Input }],
12787
+ canFireTriggerOperation: [{ type: Input }],
12788
+ fireTriggerOperation: [{ type: Input }],
12789
+ prepareWorkflowOperation: [{ type: Input }],
12790
+ loadTaskOperation: [{ type: Input }],
12791
+ triggerToFireOnSave: [{ type: Input }],
12792
+ activityChange: [{ type: Output }],
12793
+ showWorkLog: [{ type: Output }],
12794
+ triggerFired: [{ type: Output }],
12795
+ hidden: [{ type: HostBinding, args: ["class.hidden",] }]
12796
+ };
12797
+ __decorate([
12798
+ InputBoolean()
12799
+ ], BaseActivitySummaryComponent.prototype, "noBorder", void 0);
12800
+
12801
+ class TaskDetailsComponent extends BaseActivitySummaryComponent {
12802
+ constructor(dictionaryService, dialogService, iconCacheService) {
12803
+ super(dictionaryService, dialogService);
12804
+ this.dictionaryService = dictionaryService;
12805
+ this.dialogService = dialogService;
12806
+ this.iconCacheService = iconCacheService;
12807
+ this.Icon = Icon;
12808
+ this.showStatusDropdown = false;
12809
+ }
12810
+ set activity(value) {
12811
+ this.editActivity = value;
12812
+ this.prepareWorkflow();
12813
+ }
12814
+ showClass() {
12815
+ return true;
12816
+ }
12817
+ get activity() {
12818
+ return this.editActivity;
12819
+ }
12820
+ toggleStatusDropdown() {
12821
+ this.showStatusDropdown = !this.showStatusDropdown;
12822
+ }
12823
+ handleTriggerClickAndClose(trigger) {
12824
+ this.handleTriggerClick(trigger);
12825
+ this.showStatusDropdown = false;
12826
+ }
12827
+ }
12828
+ TaskDetailsComponent.decorators = [
12829
+ { type: Component, args: [{
12830
+ selector: "co-task-details",
12831
+ template: `
12832
+ <div class="header-wrapper">
12833
+ <div class="workflow-dropdown-wrapper">
12834
+ <div *ngIf="!workFlow" class="workflow-dropdown">
12835
+ <div class="workflow-drop error-color" [class.active]="!workFlow">
12836
+ <label [textContent]="'NO_ACTIVE_WORKFLOW_FOR_TASK' | localize"></label>
12837
+ </div>
12838
+ </div>
12839
+ <div *ngIf="workFlow && !workFlow.ended" class="workflow-dropdown">
12840
+ <div class="workflow-drop"
12841
+ [class.towait]="workFlow?.stateName?.includes('wacht') || workFlow?.stateName?.includes('hold')"
12842
+ [class.toclose]="workFlow.closed"
12843
+ (click)="toggleStatusDropdown()">
12844
+ <label [textContent]="workFlow?.stateName"></label>
12845
+ <co-icon *ngIf="!workFlow.closed" [iconData]="iconCacheService.getIcon(Icon.ChevronRightRegular)"></co-icon>
12846
+ <co-icon *ngIf="workFlow.closed" [iconData]="iconCacheService.getIcon(Icon.CheckSolid)"></co-icon>
12847
+ </div>
12848
+ <div class="workflow-dropdown-list" *ngIf="showStatusDropdown">
12849
+ <div class="workflow-drop"
12850
+ *ngFor="let trigger of workFlow?.manualTriggers"
12851
+ (click)="handleTriggerClickAndClose(trigger)">
12852
+ <label [textContent]="trigger.manualButtonText"></label>
12853
+ <div class="drop-point"
12854
+ [class.toclose]="trigger.toClosedState"
12855
+ [class.toend]="trigger.toEndOfWorkflow"
12856
+ [class.towait]="trigger.manualButtonText.includes('wacht') || trigger.manualButtonText.includes('hold')">
12857
+ <span class="dot" ></span>
12858
+ </div>
12859
+ </div>
12860
+ </div>
12861
+ </div>
12862
+ <div *ngIf="workFlow && workFlow?.ended" class="workflow-dropdown">
12863
+ <div class="workflow-drop toend" *ngIf="workFlow.ended">
12864
+ <label [textContent]="'CLOSED' | localize"></label>
12865
+ <co-icon [iconData]="iconCacheService.getIcon(Icon.CheckSolid)"></co-icon>
12866
+ </div>
12867
+ </div>
12868
+ </div>
12869
+ </div>
12870
+ <div class="details-wrapper" fxLayout="column" fxLayoutGap="5px">
12871
+ <co-input-text
12872
+ [placeholder]="'TITLE2' | localize"
12873
+ [readonly]="readonly"
12874
+ [(model)]="editActivity.task.name"
12875
+ [asyncValidators]="blackListValidatorsArray"
12876
+ ></co-input-text>
12877
+ <co-input-textarea
12878
+ [placeholder]="'DESCRIPTION' | localize"
12879
+ [readonly]="readonly"
12880
+ [(model)]="editActivity.task.description"
12881
+ [asyncValidators]="blackListValidatorsArray"
12882
+ ></co-input-textarea>
12883
+ </div>
12884
+ `
12885
+ },] }
12886
+ ];
12887
+ TaskDetailsComponent.ctorParameters = () => [
12888
+ { type: DictionaryService },
12889
+ { type: CoreDialogService },
12890
+ { type: IconCacheService }
12891
+ ];
12892
+ TaskDetailsComponent.propDecorators = {
12893
+ activity: [{ type: Input }],
12894
+ showClass: [{ type: HostBinding, args: ["class.co-task-details",] }]
12895
+ };
12896
+
12897
+ class TaskDetailsModule {
12898
+ }
12899
+ TaskDetailsModule.decorators = [
12900
+ { type: NgModule, args: [{
12901
+ imports: [
12902
+ LocalizationModule,
12903
+ InputTextModule,
12904
+ InputTextareaModule,
12905
+ IconModule,
12906
+ CommonModule,
12907
+ ],
12908
+ declarations: [
12909
+ TaskDetailsComponent
12910
+ ],
12911
+ exports: [
12912
+ TaskDetailsComponent
12913
+ ]
12914
+ },] }
12915
+ ];
12916
+
12917
+ class ActivitySummaryBlockComponent {
12918
+ constructor(_formMaster, elementRef) {
12919
+ this._formMaster = _formMaster;
12920
+ this.elementRef = elementRef;
12921
+ this.Icon = Icon;
12922
+ this.noBorder = false;
12923
+ this.readonly = false;
12924
+ this.showButtons = false;
12925
+ this.hideCancel = false;
12926
+ this.actionIcon = false;
12927
+ this.expandable = false;
12928
+ this.saveClick = new EventEmitter();
12929
+ this.cancelClick = new EventEmitter();
12930
+ }
12931
+ showClass() {
12932
+ return true;
12933
+ }
12934
+ get summaryElement() {
12935
+ return this.elementRef;
12936
+ }
12937
+ ngOnDestroy() {
12938
+ this.elementRef = undefined;
12939
+ }
12940
+ handleOkClick(event) {
12941
+ if (this.mainForm) {
12942
+ this.mainForm.submit();
12943
+ }
12944
+ }
12945
+ handleCancelClick(event) {
12946
+ this.cancelClick.next(event);
12947
+ }
12948
+ onValid() {
12949
+ this.saveClick.next(null);
12950
+ }
12951
+ }
12952
+ ActivitySummaryBlockComponent.decorators = [
12953
+ { type: Component, args: [{
12954
+ selector: "co-activity-summary-block",
12955
+ template: `
12956
+ <div class="block-wrapper border">
12957
+ <div class="activity-summary-block-edit-template" [id]="cssId">
12958
+ <co-form (validSubmit)="onValid()">
12959
+ <div class="template-wrapper">
12960
+ <ng-template [templateWrapper]="editTemplate" *ngIf="editTemplate"></ng-template>
12961
+ </div>
12962
+ </co-form>
12963
+ <div class="ok-cancel-buttons" *ngIf="showButtons">
12964
+ <co-button [disabled]="readonly" [textContent]="'OK' | localize" (click)="handleOkClick($event)"></co-button>
12965
+ <co-button *ngIf="hideCancel" [textContent]="'STICKER' | localize" (click)="handleCancelClick($event)"></co-button>
12966
+ <ng-template [templateWrapper]="extraButtonsTemplate" *ngIf="extraButtonsTemplate"></ng-template>
12967
+ </div>
12968
+ </div>
12969
+ </div>
12970
+ `,
12971
+ providers: [
12972
+ FormMasterService
12973
+ ]
12974
+ },] }
12975
+ ];
12976
+ ActivitySummaryBlockComponent.ctorParameters = () => [
12977
+ { type: FormMasterService },
12978
+ { type: ElementRef }
12979
+ ];
12980
+ ActivitySummaryBlockComponent.propDecorators = {
12981
+ mainForm: [{ type: ViewChild, args: [FormComponent,] }],
12982
+ cssId: [{ type: Input }],
12983
+ noBorder: [{ type: HostBinding, args: ["class.no-border",] }, { type: Input }],
12984
+ icon: [{ type: Input }],
12985
+ editIcon: [{ type: Input }],
12986
+ image: [{ type: Input }],
12987
+ editTitle: [{ type: Input }],
12988
+ editTemplate: [{ type: Input }],
12989
+ extraButtonsTemplate: [{ type: Input }],
12990
+ readonly: [{ type: Input }],
12991
+ showButtons: [{ type: Input }],
12992
+ hideCancel: [{ type: Input }],
12993
+ actionIcon: [{ type: HostBinding, args: ["class.icon-action",] }, { type: Input }],
12994
+ expandable: [{ type: Input }],
12995
+ saveClick: [{ type: Output }],
12996
+ cancelClick: [{ type: Output }],
12997
+ showClass: [{ type: HostBinding, args: ["class.co-activity-summary-block",] }]
12998
+ };
12999
+ __decorate([
13000
+ InputBoolean()
13001
+ ], ActivitySummaryBlockComponent.prototype, "noBorder", void 0);
13002
+ __decorate([
13003
+ InputBoolean()
13004
+ ], ActivitySummaryBlockComponent.prototype, "hideCancel", void 0);
13005
+ __decorate([
13006
+ InputBoolean()
13007
+ ], ActivitySummaryBlockComponent.prototype, "actionIcon", void 0);
13008
+ __decorate([
13009
+ InputBoolean()
13010
+ ], ActivitySummaryBlockComponent.prototype, "expandable", void 0);
13011
+
13012
+ class ActivitySummaryBlockModule {
13013
+ }
13014
+ ActivitySummaryBlockModule.decorators = [
13015
+ { type: NgModule, args: [{
13016
+ imports: [
13017
+ FormModule,
13018
+ ButtonModule,
13019
+ CommonModule,
13020
+ LocalizationModule,
13021
+ TemplateWrapperModule
13022
+ ],
13023
+ declarations: [
13024
+ ActivitySummaryBlockComponent
13025
+ ],
13026
+ exports: [
13027
+ ActivitySummaryBlockComponent
13028
+ ]
13029
+ },] }
13030
+ ];
13031
+
13032
+ class StatusSummaryBlockComponent extends BaseActivitySummaryComponent {
13033
+ constructor(dictionaryService, dialogService, iconService) {
13034
+ super(dictionaryService, dialogService);
13035
+ this.dictionaryService = dictionaryService;
13036
+ this.dialogService = dialogService;
13037
+ this.iconService = iconService;
13038
+ this.Icon = Icon;
13039
+ }
13040
+ showClass() {
13041
+ return true;
13042
+ }
13043
+ ngOnInit() {
13044
+ return __awaiter(this, void 0, void 0, function* () {
13045
+ yield this.prepareWorkflow();
13046
+ });
13047
+ }
13048
+ }
13049
+ StatusSummaryBlockComponent.decorators = [
13050
+ { type: Component, args: [{
13051
+ selector: "co-status-summary-block",
13052
+ template: `
13053
+ <co-activity-summary-block
13054
+ [cssId]="'status_summary_block_edit_template'"
13055
+ [readonly]="readonly"
13056
+ [icon]="Icon.IoneWorkflow"
13057
+ [editIcon]="Icon.IoneWorkflow"
13058
+ editTitle="STATUS_AND_WORKFLOW"
13059
+ [editTemplate]="editTemplate" actionIcon expandable noBorder
13060
+ (saveClick)="handleSave($event)" (cancelClick)="handleCancel($event)">
13061
+ </co-activity-summary-block>
13062
+ <ng-template #editTemplate>
13063
+ <div fxLayout="column">
13064
+ <div class="status-summary-date-wrapper">
13065
+ <co-input-date [model]="editActivity.task.startDateTime"
13066
+ [placeholder]="'FIRST_ACTION_DATE' | localize"
13067
+ [readonly]="true" ></co-input-date>
13068
+ <co-input-date [(model)]="editActivity.task.executedOnDateTime"
13069
+ [placeholder]="'ACTUAL_EXECUTION_DATE' | localize"
13070
+ ></co-input-date>
13071
+ </div>
13072
+ </div>
13073
+ <co-input-text class="single-field"
13074
+ [placeholder]="'ACTIVITY_STATUS' | localize"
13075
+ [model]="workFlow?.state"
13076
+ [leftIconData]="iconService.getIcon(Icon.PinRoundOpen)"
13077
+ [readonly]="true"
13078
+ ></co-input-text>
13079
+ </ng-template>
13080
+ `,
13081
+ providers: [{
13082
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
13083
+ useExisting: forwardRef(() => StatusSummaryBlockComponent)
13084
+ }]
13085
+ },] }
13086
+ ];
13087
+ StatusSummaryBlockComponent.ctorParameters = () => [
13088
+ { type: DictionaryService },
13089
+ { type: CoreDialogService },
13090
+ { type: IconCacheService }
13091
+ ];
13092
+ StatusSummaryBlockComponent.propDecorators = {
13093
+ showClass: [{ type: HostBinding, args: ["class.co-status-summary-block",] }]
13094
+ };
13095
+
13096
+ class StatusSummaryBlockModule {
13097
+ }
13098
+ StatusSummaryBlockModule.decorators = [
13099
+ { type: NgModule, args: [{
13100
+ imports: [
13101
+ ActivitySummaryBlockModule,
13102
+ InputDateRangePickerModule,
13103
+ InputDatePickerModule,
13104
+ LocalizationModule,
13105
+ InputTextModule
13106
+ ],
13107
+ declarations: [
13108
+ StatusSummaryBlockComponent
13109
+ ],
13110
+ exports: [
13111
+ StatusSummaryBlockComponent
13112
+ ]
13113
+ },] }
13114
+ ];
13115
+
13116
+ class CreationSummaryBlockComponent extends BaseActivitySummaryComponent {
13117
+ constructor(dictionaryService, dialogService, sharedService, locale) {
13118
+ super(dictionaryService, dialogService);
13119
+ this.dictionaryService = dictionaryService;
13120
+ this.dialogService = dialogService;
13121
+ this.sharedService = sharedService;
13122
+ this.locale = locale;
13123
+ this.Icon = Icon;
13124
+ this.taskCategories = [];
13125
+ this.priorityDomainColl = [];
13126
+ }
13127
+ showClass() {
13128
+ return true;
13129
+ }
13130
+ ngOnDestroy() {
13131
+ this.editTemplate = undefined;
13132
+ }
13133
+ ngOnInit() {
13134
+ this.sharedService.getTaskCategories().then((result) => {
13135
+ this.taskCategories = result;
13136
+ this.chosenTaskCategory = this.taskCategories.find(t => t.categoryId === this.editActivity.task.categoryId);
13137
+ });
13138
+ this.sharedService.getDomainCollection(this.locale, DomainName.Priority).then((result) => {
13139
+ this.priorityDomainColl = result;
13140
+ if (this.chosenTaskCategory) {
13141
+ this.chosenPriority = this._findDomainValueOfPriorityType(this.editActivity.task.priority);
13142
+ }
13143
+ });
13144
+ }
13145
+ handleTaskCategoryChange(taskCategory) {
13146
+ if (this.taskCategories.length > 0 && taskCategory) {
13147
+ this.editActivity.task.categoryId = this.chosenTaskCategory.categoryId;
13148
+ this.editActivity.task.category = this.chosenTaskCategory.category;
13149
+ }
13150
+ }
13151
+ handlePriorityChange(domainValue) {
13152
+ if (this.priorityDomainColl.length > 0 && domainValue) {
13153
+ this.editActivity.task.priority = PriorityType[domainValue.code];
13154
+ }
13155
+ }
13156
+ _findDomainValueOfPriorityType(priorityType) {
13157
+ if (!this.priorityDomainColl || isNill$1(priorityType)) {
13158
+ return undefined;
13159
+ }
13160
+ return this.priorityDomainColl.find((domainValue) => {
13161
+ return domainValue.codeAsNumber === priorityType;
13162
+ });
13163
+ }
13164
+ }
13165
+ CreationSummaryBlockComponent.decorators = [
13166
+ { type: Component, args: [{
13167
+ selector: "co-creation-summary-block",
13168
+ template: `
13169
+ <co-activity-summary-block
13170
+ [readonly]="readonly"
13171
+ [icon]="Icon.Task" editTitle="TASK_INFORMATION"
13172
+ [editTemplate]="editTemplate"
13173
+ (saveClick)="handleSave($event)"
13174
+ (cancelClick)="handleCancel($event)" expandable noBorder>
13175
+ </co-activity-summary-block>
13176
+
13177
+ <ng-template #editTemplate>
13178
+ <div fxLayout="column">
13179
+ <div class="creation-summary-date-wrapper">
13180
+ <co-input-date
13181
+ [placeholder]="'CREATION_DATE' | localize"
13182
+ [model]="editActivity.task.creationDateTime"
13183
+ [readonly]="true">
13184
+ </co-input-date>
13185
+ <co-input-text
13186
+ [placeholder]="'TIME' | localize"
13187
+ [model]="editActivity.task.creationDateTime | date:'HH:mm:ss'"
13188
+ [readonly]="true">
13189
+ </co-input-text>
13190
+ </div>
13191
+
13192
+ <co-list-of-values
13193
+ [readonly]="readonly"
13194
+ [collection]="priorityDomainColl"
13195
+ [(model)]="chosenPriority"
13196
+ (modelChange)="handlePriorityChange($event)"></co-list-of-values>
13197
+
13198
+ <co-list-of-values
13199
+ [readonly]="readonly"
13200
+ [collection]="taskCategories"
13201
+ [(model)]="chosenTaskCategory"
13202
+ [displayField]="'category'"
13203
+ (modelChange)="handleTaskCategoryChange($event)"></co-list-of-values>
13204
+ </div>
13205
+ </ng-template>
13206
+ `,
13207
+ providers: [{
13208
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
13209
+ useExisting: forwardRef(() => CreationSummaryBlockComponent)
13210
+ }]
13211
+ },] }
13212
+ ];
13213
+ CreationSummaryBlockComponent.ctorParameters = () => [
13214
+ { type: DictionaryService },
13215
+ { type: CoreDialogService },
13216
+ { type: SharedService },
13217
+ { type: LanguageCode, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
13218
+ ];
13219
+ CreationSummaryBlockComponent.propDecorators = {
13220
+ editTemplate: [{ type: ViewChild, args: ["editTemplate", { static: true },] }],
13221
+ showClass: [{ type: HostBinding, args: ["class.co-creation-summary-block",] }]
13222
+ };
13223
+
13224
+ class CreationSummaryBlockModule {
13225
+ }
13226
+ CreationSummaryBlockModule.decorators = [
13227
+ { type: NgModule, args: [{
13228
+ imports: [
13229
+ ActivitySummaryBlockModule,
13230
+ InputDatePickerModule,
13231
+ InputTextModule,
13232
+ LocalizationModule,
13233
+ CommonModule,
13234
+ ListOfValuesModule
13235
+ ],
13236
+ declarations: [
13237
+ CreationSummaryBlockComponent
13238
+ ],
13239
+ exports: [
13240
+ CreationSummaryBlockComponent
13241
+ ]
13242
+ },] }
13243
+ ];
13244
+
13245
+ var RelationType;
13246
+ (function (RelationType) {
13247
+ RelationType["Executive"] = "executive";
13248
+ RelationType["Reporter"] = "reporter";
13249
+ RelationType["Supervisor"] = "supervisor";
13250
+ })(RelationType || (RelationType = {}));
13251
+ class ExecutiveSummaryBlockComponent extends BaseActivitySummaryComponent {
13252
+ constructor(dictionaryService, dialogService, _sharedService) {
13253
+ super(dictionaryService, dialogService);
13254
+ this.dictionaryService = dictionaryService;
13255
+ this.dialogService = dialogService;
13256
+ this._sharedService = _sharedService;
13257
+ this.RelationType = RelationType;
13258
+ this.Icon = Icon;
13259
+ this._textSearchParams = new RelationRequest();
13260
+ this.personnel = [];
13261
+ }
13262
+ showClass() {
13263
+ return true;
13264
+ }
13265
+ ngOnInit() {
13266
+ return __awaiter(this, void 0, void 0, function* () {
13267
+ this._textSearchParams.relationTypeList = [RelationKind.Personnel];
13268
+ this._sharedService.getRelationListObjects(this._textSearchParams).then((result) => {
13269
+ this.personnel = result;
13270
+ });
13271
+ });
13272
+ }
13273
+ }
13274
+ ExecutiveSummaryBlockComponent.decorators = [
13275
+ { type: Component, args: [{
13276
+ selector: "co-executive-summary-block",
13277
+ template: `
13278
+
13279
+ <co-activity-summary-block [editTemplate]="editTemplate"
13280
+ [readonly]="readonly"
13281
+ [icon]="Icon.Employee"
13282
+ (saveClick)="handleSave($event)"
13283
+ (cancelClick)="handleCancel($event)"
13284
+ editTitle="PERSONS" expandable noBorder>
13285
+ </co-activity-summary-block>
13286
+ <ng-template #editTemplate>
13287
+ <div fxLayout="column">
13288
+ <co-list-of-values
13289
+ [(model)]="editActivity.task.executive"
13290
+ [collection]="personnel"
13291
+ [displayField]="'displayName'"
13292
+ [label]="'EXECUTIVE' | localize">
13293
+ </co-list-of-values>
13294
+ <co-list-of-values
13295
+ [(model)]="editActivity.task.reporter"
13296
+ [collection]="personnel"
13297
+ [displayField]="'displayName'"
13298
+ [label]="'REPORTER' | localize">
13299
+ </co-list-of-values>
13300
+ <co-list-of-values
13301
+ [(model)]="editActivity.task.supervisor"
13302
+ [collection]="personnel"
13303
+ [displayField]="'displayName'"
13304
+ [label]="'SUPERVISOR' | localize">
13305
+ </co-list-of-values>
13306
+ </div>
13307
+ </ng-template>
13308
+ `,
13309
+ providers: [{
13310
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
13311
+ useExisting: forwardRef(() => ExecutiveSummaryBlockComponent)
13312
+ }]
13313
+ },] }
13314
+ ];
13315
+ ExecutiveSummaryBlockComponent.ctorParameters = () => [
13316
+ { type: DictionaryService },
13317
+ { type: CoreDialogService },
13318
+ { type: SharedService }
13319
+ ];
13320
+ ExecutiveSummaryBlockComponent.propDecorators = {
13321
+ showClass: [{ type: HostBinding, args: ["class.co-executive-summary-block",] }]
13322
+ };
13323
+
13324
+ class ExecutiveSummaryBlockModule {
13325
+ }
13326
+ ExecutiveSummaryBlockModule.decorators = [
13327
+ { type: NgModule, args: [{
13328
+ imports: [
13329
+ LocalizationModule,
13330
+ ListOfValuesModule,
13331
+ InputDatePickerModule,
13332
+ ActivitySummaryBlockModule
13333
+ ],
13334
+ declarations: [
13335
+ ExecutiveSummaryBlockComponent
13336
+ ],
13337
+ exports: [
13338
+ ExecutiveSummaryBlockComponent
13339
+ ]
13340
+ },] }
13341
+ ];
13342
+
13343
+ class NotificationSummaryBlockComponent extends BaseActivitySummaryComponent {
13344
+ constructor(boFactory,
13345
+ //public activityService: ActivityService,
13346
+ dictionaryService, dialogService, sharedService) {
13347
+ super(dictionaryService, dialogService);
13348
+ this.boFactory = boFactory;
13349
+ this.dictionaryService = dictionaryService;
13350
+ this.dialogService = dialogService;
13351
+ this.sharedService = sharedService;
13352
+ this.Icon = Icon;
13353
+ this.listItems = [];
13354
+ }
13355
+ showClass() {
13356
+ return true;
13357
+ }
13358
+ ngOnInit() {
13359
+ return __awaiter(this, void 0, void 0, function* () {
13360
+ if (!isNill(this.editActivity.task.taskId)) {
13361
+ this.listItems = yield this.sharedService.getRoleEmailAddressesByWorkflowCategoryAndKey('TASK', (this.editActivity.task.taskId.toString()));
13362
+ }
13363
+ });
13364
+ }
13365
+ handleSendEmail(event) {
13366
+ this.handleSave(event);
13367
+ //this.activityService.sendTaskNotificationEmail(this.editActivity.task);
13368
+ }
13369
+ }
13370
+ NotificationSummaryBlockComponent.decorators = [
13371
+ { type: Component, args: [{
13372
+ selector: "co-notification-summary-block",
13373
+ template: `
13374
+ <co-activity-summary-block [readonly]="readonly" [icon]="Icon.Notification" editTitle="NOTIFICATIONS"
13375
+ [editTemplate]="editTemplate"
13376
+ [extraButtonsTemplate]="extraButtonsTemplate"
13377
+ [showButtons]="true"
13378
+ (saveClick)="handleSave($event)" (cancelClick)="handleCancel($event)" expandable noBorder>
13379
+ </co-activity-summary-block>
13380
+ <ng-template #extraButtonsTemplate>
13381
+ <co-button *ngIf="editActivity.task.emailAddresses.length > 0" label="SEND_EMAIL"
13382
+ (click)="handleSendEmail($event)"></co-button>
13383
+ </ng-template>
13384
+ <ng-template #editTemplate>
13385
+ <div fxLayout="column">
13386
+ <co-list-of-values [readonly]="readonly" [multiselect]="true"
13387
+ [collection]="listItems" [displayField]="'role'"
13388
+ [(model)]="editActivity.task.emailAddresses">
13389
+ </co-list-of-values>
13390
+ </div>
13391
+ </ng-template>
13392
+ `,
13393
+ providers: [{
13394
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
13395
+ useExisting: forwardRef(() => NotificationSummaryBlockComponent)
13396
+ }]
13397
+ },] }
13398
+ ];
13399
+ NotificationSummaryBlockComponent.ctorParameters = () => [
13400
+ { type: BusinessObjectFactory },
13401
+ { type: DictionaryService },
13402
+ { type: CoreDialogService },
13403
+ { type: SharedService }
13404
+ ];
13405
+ NotificationSummaryBlockComponent.propDecorators = {
13406
+ summaryBlock: [{ type: ViewChild, args: [ActivitySummaryBlockComponent, { static: true },] }],
13407
+ showClass: [{ type: HostBinding, args: ["class.co-notification-summary-block",] }]
13408
+ };
13409
+
13410
+ class NotificationSummaryBlockModule {
13411
+ }
13412
+ NotificationSummaryBlockModule.decorators = [
13413
+ { type: NgModule, args: [{
13414
+ imports: [
13415
+ ActivitySummaryBlockModule,
13416
+ ListOfValuesModule,
13417
+ ButtonModule,
13418
+ CommonModule
13419
+ ],
13420
+ declarations: [
13421
+ NotificationSummaryBlockComponent
13422
+ ],
13423
+ exports: [
13424
+ NotificationSummaryBlockComponent
13425
+ ]
13426
+ },] }
13427
+ ];
13428
+
13429
+ class ModifyTaskFormModule {
13430
+ }
13431
+ ModifyTaskFormModule.decorators = [
13432
+ { type: NgModule, args: [{
13433
+ imports: [
13434
+ LocalizationModule,
13435
+ TaskDetailsModule,
13436
+ InputCheckboxModule,
13437
+ ExecutiveSummaryBlockModule,
13438
+ StatusSummaryBlockModule,
13439
+ CreationSummaryBlockModule,
13440
+ NotificationSummaryBlockModule,
13441
+ ActivityListModule
13442
+ ],
13443
+ declarations: [
13444
+ ModifyTaskFormComponent
13445
+ ],
13446
+ exports: [
13447
+ ModifyTaskFormComponent
13448
+ ]
13449
+ },] }
13450
+ ];
13451
+
13452
+ class TaskModifyerModule {
13453
+ }
13454
+ TaskModifyerModule.decorators = [
13455
+ { type: NgModule, args: [{
13456
+ imports: [
13457
+ FormModule,
13458
+ CoDialogModule,
13459
+ LocalizationModule,
13460
+ CommonModule,
13461
+ ButtonModule,
13462
+ ModifyTaskFormModule
13463
+ ],
13464
+ declarations: [
13465
+ TaskModifierComponent
13466
+ ],
13467
+ exports: [
13468
+ TaskModifierComponent
13469
+ ],
13470
+ providers: [
13471
+ BusinessObjectFactory
13472
+ ]
13473
+ },] }
13474
+ ];
13475
+
13476
+ class ComponentActivityOverviewModule {
13477
+ }
13478
+ ComponentActivityOverviewModule.decorators = [
13479
+ { type: NgModule, args: [{
13480
+ imports: [
13481
+ ButtonModule,
13482
+ CommonModule,
13483
+ LocalizationModule,
13484
+ IconModule,
13485
+ TaskModifyerModule
13486
+ ],
13487
+ declarations: [
13488
+ ComponentActivityOverviewComponent
13489
+ ],
13490
+ exports: [
13491
+ ComponentActivityOverviewComponent
13492
+ ],
13493
+ },] }
13494
+ ];
13495
+
13496
+ class ActivityListHeaderComponent {
13497
+ constructor(iconService) {
13498
+ this.iconService = iconService;
13499
+ this.icons = Icon;
13500
+ this.activitySortType = ActivitySortType;
13501
+ this.title = 'MY_WORK';
13502
+ this.searchTextChange = new EventEmitter();
13503
+ this.periodFilterClicked = new EventEmitter();
13504
+ this.showUsergroupActivitiesChange = new EventEmitter();
13505
+ }
13506
+ showClass() {
13507
+ return true;
13508
+ }
13509
+ onToggleClicked(toggled) {
13510
+ this.showUsergroupActivitiesChange.emit(toggled);
13511
+ }
13512
+ }
13513
+ ActivityListHeaderComponent.decorators = [
13514
+ { type: Component, args: [{
13515
+ selector: "co-activity-list-header",
13516
+ template: `
13517
+ <div class="header-wrapper">
13518
+ <div class="title">
13519
+ <h2 [textContent]="title | localize"></h2>
13520
+ </div>
13521
+ </div>
13522
+ <div class="sub-header">
13523
+ <div class="second-column">
13524
+ <div class="second-column-right">
13525
+ <co-input-text class="input-search" [placeholder]="'SEARCH_PLACEHOLDER' | localize"
13526
+ [(model)]="searchText"
13527
+ (modelChange)="searchTextChange.emit($event)"></co-input-text>
13528
+ <co-period-filter class="period-filter" (filterClicked)="periodFilterClicked.emit($event)"></co-period-filter>
13529
+ <co-button isToggleButton class="transparent-rectangular-action user-button" [(isToggled)]="showUsergroupActivities" (onClick)="showUsergroupActivities = !showUsergroupActivities"
13530
+ [iconData]="iconService.getIcon(icons.Employee)" [title]="'SHOW_ACTIVITIES_FOR_GROUP' | localize"
13531
+ (isToggledChange)="onToggleClicked($event)"></co-button>
13532
+ <co-workflow-notification-toggle *ngIf="table && key"
13533
+ [table]="table"
13534
+ [key]="key"
13535
+ [setHasPausedNotificationsForWorkflowProcessOperation]="setHasPausedNotificationsForWorkflowProcessOperation"
13536
+ ></co-workflow-notification-toggle>
13537
+ </div>
13538
+ </div>
13539
+ </div>
13540
+ `
13541
+ },] }
13542
+ ];
13543
+ ActivityListHeaderComponent.ctorParameters = () => [
13544
+ { type: IconCacheService }
13545
+ ];
13546
+ ActivityListHeaderComponent.propDecorators = {
13547
+ title: [{ type: Input }],
13548
+ searchText: [{ type: Input }],
13549
+ showUsergroupActivities: [{ type: Input }],
13550
+ table: [{ type: Input }],
13551
+ key: [{ type: Input }],
13552
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: Input }],
13553
+ searchTextChange: [{ type: Output }],
13554
+ periodFilterClicked: [{ type: Output }],
13555
+ showUsergroupActivitiesChange: [{ type: Output }],
13556
+ showClass: [{ type: HostBinding, args: ["class.co-activity-list-header",] }]
13557
+ };
13558
+
13559
+ class WorkflowNotificationTogglePopupComponent {
13560
+ constructor(element, iconService) {
13561
+ this.element = element;
13562
+ this.iconService = iconService;
13563
+ this.icons = Icon;
13564
+ this.workflowProcesses = [];
13565
+ this.closePopupClicked = new EventEmitter();
13566
+ this.workflowProcessClicked = new EventEmitter();
13567
+ }
13568
+ ngOnDestroy() {
13569
+ this.element = undefined;
13570
+ }
13571
+ }
13572
+ WorkflowNotificationTogglePopupComponent.decorators = [
13573
+ { type: Component, args: [{
13574
+ selector: "co-workflow-notification-toggle-popup",
13575
+ template: `
13576
+ <div class="workflow-list-wrapper" [overlay]="parentForOverlay"
13577
+ [alignWith]="element"
13578
+ [alignTopOffsetPx]="35"
13579
+ [class.showing]="true"
13580
+ [enableAlign]="true"
13581
+ [clickOutside]="true"
13582
+ (clickOutside)="closePopupClicked.emit()"
13583
+ keepInView noWidthAlign alignRight>
13584
+ <div class="workflow-row" *ngFor="let workflow of workflowProcesses"
13585
+ (click)="workflowProcessClicked.emit(workflow)">
13586
+ <div class="icon-wrapper">
13587
+ <co-icon class="workflow-icon"
13588
+ [iconData]="iconService.getIcon(workflow.hasPausedNotifications ? icons.BellSlashRegular : icons.BellRegular)"
13589
+ [class.small-icon]="!workflow.hasPausedNotifications"></co-icon>
13590
+ </div>
13591
+ <div class="workflow-text">
13592
+ <span class="workflow-title" [textContent]="workflow.workflowName"></span>
13593
+ </div>
13594
+ </div>
13595
+ </div>`
13596
+ },] }
13597
+ ];
13598
+ WorkflowNotificationTogglePopupComponent.ctorParameters = () => [
13599
+ { type: ElementRef },
13600
+ { type: IconCacheService }
13601
+ ];
13602
+ WorkflowNotificationTogglePopupComponent.propDecorators = {
13603
+ workflowProcesses: [{ type: Input }],
13604
+ parentForOverlay: [{ type: Input }],
13605
+ closePopupClicked: [{ type: Output }],
13606
+ workflowProcessClicked: [{ type: Output }]
13607
+ };
13608
+
13609
+ class WorkflowNotificationToggleComponent {
13610
+ constructor(element, iconService, sharedService, _overlayService) {
13611
+ this.element = element;
13612
+ this.iconService = iconService;
13613
+ this.sharedService = sharedService;
13614
+ this._overlayService = _overlayService;
13615
+ this.icons = Icon;
13616
+ this.workflowProcesses = [];
13617
+ this.showPopup = false;
13618
+ }
13619
+ showClass() {
13620
+ return true;
13621
+ }
13622
+ ngOnInit() {
13623
+ this._loadWorkflowProcesses();
13624
+ }
13625
+ _loadWorkflowProcesses() {
13626
+ return __awaiter(this, void 0, void 0, function* () {
13627
+ this.workflowProcesses = yield this.sharedService.getActiveProcessesByTableAndKey(TableName$1[this.table], this.key);
13628
+ });
13629
+ }
13630
+ buttonClicked() {
13631
+ if (!this.showPopup) {
13632
+ this.openPopup();
13633
+ }
13634
+ else {
13635
+ this.closePopup();
13636
+ }
13637
+ }
13638
+ openPopup() {
13639
+ this.showPopup = true;
13640
+ this._workflowPopupRef = this._overlayService.createComponent(WorkflowNotificationTogglePopupComponent, { parentForOverlay: this.element, workflowProcesses: this.workflowProcesses }, {
13641
+ closePopupClicked: () => this.closePopup(),
13642
+ workflowProcessClicked: (WorkflowProcess) => this.handleWorkflowToggle(WorkflowProcess)
13643
+ });
13644
+ }
13645
+ closePopup() {
13646
+ this.showPopup = false;
13647
+ this._overlayService.removeComponent(this._workflowPopupRef);
13648
+ }
13649
+ handleWorkflowToggle(workflow) {
13650
+ return __awaiter(this, void 0, void 0, function* () {
13651
+ const valResult = yield this.setHasPausedNotificationsForWorkflowProcessOperation(workflow.workflowProcessId, !workflow.hasPausedNotifications, null);
13652
+ if (valResult && valResult.success) {
13653
+ workflow.hasPausedNotifications = !workflow.hasPausedNotifications;
13654
+ }
13655
+ });
13656
+ }
13657
+ }
13658
+ WorkflowNotificationToggleComponent.decorators = [
13659
+ { type: Component, args: [{
13660
+ selector: "co-workflow-notification-toggle",
13661
+ template: `
13662
+ <co-button isToggleButton class="transparent-rectangular-action user-button" [isToggled]="showPopup"
13663
+ (click)="buttonClicked()"
13664
+ [iconData]="iconService.getIcon(icons.BellRegular)"
13665
+ [title]="'SHOW_WORKFLOW_NOTIFICATION_SETTINGS' | localize"></co-button>
13666
+ `
13667
+ },] }
13668
+ ];
13669
+ WorkflowNotificationToggleComponent.ctorParameters = () => [
13670
+ { type: ElementRef },
13671
+ { type: IconCacheService },
13672
+ { type: SharedService },
13673
+ { type: OverlayService }
13674
+ ];
13675
+ WorkflowNotificationToggleComponent.propDecorators = {
13676
+ table: [{ type: Input }],
13677
+ key: [{ type: Input }],
13678
+ setHasPausedNotificationsForWorkflowProcessOperation: [{ type: Input }],
13679
+ showClass: [{ type: HostBinding, args: ["class.co-workflow-notification-toggle",] }]
13680
+ };
13681
+
13682
+ // App-wide service to place and remove template refs into the global absolute overlay outlet component.
13683
+ class AppAbsoluteOverlayOutletService {
13684
+ constructor() {
13685
+ this.templateCreateRequest = new Subject();
13686
+ this.templateDestroyRequest = new Subject();
13687
+ }
13688
+ placeTemplateIntoOverlay(template) {
13689
+ this.templateCreateRequest.next(template);
13690
+ }
13691
+ removeTemplateFromOverlay(template) {
13692
+ this.templateDestroyRequest.next(template);
13693
+ }
13694
+ }
13695
+ AppAbsoluteOverlayOutletService.decorators = [
13696
+ { type: Injectable }
13697
+ ];
13698
+ AppAbsoluteOverlayOutletService.ctorParameters = () => [];
13699
+
13700
+ // Directive applicable to <ng-template>'s of components. Places template content in the app's absolute overlay outlet.
13701
+ class AbsoluteOverlayTemplateDirective {
13702
+ constructor(_outletService) {
13703
+ this._outletService = _outletService;
13704
+ }
13705
+ // spawn host template in absolute overlay outlet
13706
+ ngOnInit() {
13707
+ this._outletService.placeTemplateIntoOverlay(this.absoluteOverlayTemplate);
13708
+ }
13709
+ // de-spawn host template from absolute overlay outlet
13710
+ ngOnDestroy() {
13711
+ this._outletService.removeTemplateFromOverlay(this.absoluteOverlayTemplate);
13712
+ this.absoluteOverlayTemplate = undefined;
13713
+ }
13714
+ }
13715
+ AbsoluteOverlayTemplateDirective.decorators = [
13716
+ { type: Directive, args: [{
13717
+ selector: "[absoluteOverlayTemplate]"
13718
+ },] }
13719
+ ];
13720
+ AbsoluteOverlayTemplateDirective.ctorParameters = () => [
13721
+ { type: AppAbsoluteOverlayOutletService }
13722
+ ];
13723
+ AbsoluteOverlayTemplateDirective.propDecorators = {
13724
+ absoluteOverlayTemplate: [{ type: Input }]
13725
+ };
13726
+
13727
+ // @dynamic
13728
+ class EventUtils {
13729
+ static get passiveSupported() {
13730
+ if (isNill(EventUtils._passiveSupported)) {
13731
+ EventUtils._CheckPassiveSupported();
13732
+ }
13733
+ return EventUtils._passiveSupported;
13734
+ }
13735
+ static get passiveBubble() {
13736
+ if (isNill(EventUtils._passiveBubble)) {
13737
+ EventUtils._passiveBubble = EventUtils.passiveSupported ? { passive: true, capture: false } : false;
13738
+ }
13739
+ return EventUtils._passiveBubble;
13740
+ }
13741
+ static get passiveCapture() {
13742
+ if (isNill(EventUtils._passiveCapture)) {
13743
+ EventUtils._passiveCapture = EventUtils.passiveSupported ? { passive: true, capture: true } : true;
13744
+ }
13745
+ return EventUtils._passiveCapture;
13746
+ }
13747
+ static GetMouseEventOrTouch(originalEvent) {
13748
+ return originalEvent instanceof MouseEvent ? originalEvent : originalEvent.touches[0];
13749
+ }
13750
+ static StopEvent(event) {
13751
+ if (!event) {
13752
+ return;
13753
+ }
13754
+ event.preventDefault();
13755
+ event.stopPropagation();
13756
+ event.stopImmediatePropagation();
13757
+ }
13758
+ static KillEvent(event) {
13759
+ this.StopEvent(event);
13760
+ if (event) {
13761
+ event.stopPropagation();
13762
+ }
13763
+ }
13764
+ static _CheckPassiveSupported() {
13765
+ let passiveSupported = false;
13766
+ try {
13767
+ const options = Object.defineProperty({}, "passive", {
13768
+ get: function () {
13769
+ passiveSupported = true;
13770
+ }
13771
+ });
13772
+ window.addEventListener("test", null, options);
13773
+ // Q; what is this? do we have to window.removeEventListener it?
13774
+ // A: no, because it will certainly fail, but before it does it might have set the passiveSupported variable :)
13775
+ }
13776
+ catch (e) {
13777
+ }
13778
+ this._passiveSupported = passiveSupported;
13779
+ }
13780
+ }
13781
+ EventUtils._passiveSupported = null;
13782
+ EventUtils._passiveCapture = null;
13783
+ EventUtils._passiveBubble = null;
13784
+
13785
+ class BrowserUtils {
13786
+ static ScrollToTop(nativeElement, milliSeconds = 200) {
13787
+ return BrowserUtils._ScrollTo("scrollTop", nativeElement, milliSeconds, 0);
13788
+ }
13789
+ static DownloadFile(encodedUri, fileType) {
13790
+ const link = document.createElement("a");
13791
+ const date = new Date().toDateString();
13792
+ link.href = encodedUri;
13793
+ link.target = "_blank";
13794
+ link.download = "export_" + date + fileType;
13795
+ document.body.appendChild(link);
13796
+ link.click();
13797
+ document.body.removeChild(link);
13798
+ }
13799
+ static CopyToClipboard(data) {
13800
+ const textArea = document.createElement("TEXTAREA");
13801
+ const textNode = document.createTextNode(data);
13802
+ textArea.appendChild(textNode);
13803
+ document.body.appendChild(textArea); // Required for FF
13804
+ textArea.select();
13805
+ document.execCommand("copy");
13806
+ document.body.removeChild(textArea);
13807
+ }
13808
+ static TabFocusNextElement() {
13809
+ const nextTabStop = BrowserUtils._FindNextTabStop(document.activeElement);
13810
+ if (nextTabStop) {
13811
+ nextTabStop.focus();
13812
+ }
13813
+ }
13814
+ static AreDimensionsInView(dimensions, view) {
13815
+ const vp = BrowserUtils.GetDimensions(view);
13816
+ return dimensions.top >= vp.top && dimensions.left >= vp.left && dimensions.bottom <= vp.bottom && dimensions.right <= vp.right;
13817
+ }
13818
+ static HorizontalFitInView(dimensions, view) {
13819
+ const vp = BrowserUtils.GetDimensions(view);
13820
+ return dimensions.left >= vp.left && dimensions.right <= vp.right;
13821
+ }
13822
+ static VerticalFitInView(dimensions, view) {
13823
+ const vp = BrowserUtils.GetDimensions(view);
13824
+ return dimensions.top >= vp.top && dimensions.bottom <= vp.bottom;
13825
+ }
13826
+ static GetViewport() {
13827
+ let viewPortWidth;
13828
+ let viewPortHeight;
13829
+ // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
13830
+ if (typeof window.innerWidth !== "undefined") {
13831
+ viewPortWidth = window.innerWidth;
13832
+ viewPortHeight = window.innerHeight;
13833
+ }
13834
+ else if (typeof document.documentElement !== "undefined" &&
13835
+ typeof document.documentElement.clientWidth !== "undefined" &&
13836
+ document.documentElement.clientWidth !== 0) {
13837
+ viewPortWidth = document.documentElement.clientWidth;
13838
+ viewPortHeight = document.documentElement.clientHeight;
13839
+ }
13840
+ else {
13841
+ viewPortWidth = document.getElementsByTagName("body")[0].clientWidth;
13842
+ viewPortHeight = document.getElementsByTagName("body")[0].clientHeight;
13843
+ }
13844
+ return { left: 0, top: 0, right: viewPortWidth, bottom: viewPortHeight };
13845
+ }
13846
+ static GetDimensions(view) {
13847
+ if (!view) {
13848
+ return this.GetViewport();
13849
+ }
13850
+ else {
13851
+ const elem = view instanceof HTMLElement ? view : view.nativeElement;
13852
+ const cr = elem.getBoundingClientRect();
13853
+ return { left: cr.left, top: cr.top, right: cr.right, bottom: cr.bottom };
13854
+ }
13855
+ }
13856
+ // Recursive.
13857
+ static _ScrollTo(elementScrollProp, element, milliSeconds, toScrollEnd) {
13858
+ if (!element || milliSeconds <= 0) {
13859
+ return;
13860
+ }
13861
+ const difference = toScrollEnd - element[elementScrollProp];
13862
+ const scrollPerTick = difference / milliSeconds * 10;
13863
+ setTimeout(() => {
13864
+ element[elementScrollProp] = element[elementScrollProp] + scrollPerTick;
13865
+ if (element[elementScrollProp] === toScrollEnd) {
13866
+ return;
13867
+ }
13868
+ BrowserUtils._ScrollTo(elementScrollProp, element, milliSeconds - 10, toScrollEnd);
13869
+ }, 10);
13870
+ }
13871
+ static _FindNextTabStop(element) {
13872
+ const 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)");
13873
+ const actualStopEls = [];
13874
+ for (let i = 0, len = tabStopElements.length; i < len; i++) {
13875
+ const tabEl = tabStopElements[i];
13876
+ if (tabEl.tabIndex >= 0) {
13877
+ actualStopEls.push(tabEl);
13878
+ }
13879
+ }
13880
+ const elIdx = actualStopEls.indexOf(element);
13881
+ return actualStopEls[elIdx + 1] || undefined;
13882
+ }
13883
+ }
13884
+
13885
+ class AlignWithDirective {
13886
+ constructor(_ngZone, _elementRef) {
13887
+ this._ngZone = _ngZone;
13888
+ this._elementRef = _elementRef;
13889
+ this.keepInView = true;
13890
+ this.keepInViewHorizontal = true;
13891
+ this.keepInViewVertical = true;
13892
+ this.ajustableHeight = false;
13893
+ this.alignTopOffsetPx = 0;
13894
+ this.alignLeftOffsetPx = 0;
13895
+ this.fixed = "fixed";
13896
+ this.scroll = () => {
13897
+ this._alignWithZone();
13898
+ };
13899
+ this.resize = () => {
13900
+ this._alignWithZone();
13901
+ };
13902
+ this.handleKeyUp = () => {
13903
+ this._alignWithZone();
13904
+ };
13905
+ }
13906
+ // a native OR custom element
13907
+ set alignWith(alignWith) {
13908
+ if (alignWith) {
13909
+ // enables simple #templateVars passing to [alignWith] for native elements like <div>; Angular passes these as HTMLElement's
13910
+ if (alignWith instanceof HTMLElement) {
13911
+ this._hostNativeEl = alignWith;
13912
+ }
13913
+ else {
13914
+ this._hostNativeEl = alignWith.nativeElement;
13915
+ }
13916
+ }
13917
+ }
13918
+ get _shouldDoAlign() {
13919
+ return this._hostNativeEl && this.enableAlign;
13920
+ }
13921
+ ngAfterViewInit() {
13922
+ this.align();
13923
+ // align again after hosts 'animation finished'
13924
+ setTimeout(() => {
13925
+ this.align();
13926
+ }, 200);
13927
+ }
13928
+ ngOnChanges() {
13929
+ this.align();
13930
+ }
13931
+ ngAfterContentChecked() {
13932
+ this.align();
13933
+ }
13934
+ ngOnDestroy() {
13935
+ window.removeEventListener("scroll", this.scroll, EventUtils.passiveCapture);
13936
+ window.removeEventListener("resize", this.resize, EventUtils.passiveCapture);
13937
+ window.removeEventListener("keyup", this.handleKeyUp, EventUtils.passiveCapture);
13938
+ this._elementRef = undefined;
13939
+ this._hostNativeEl = undefined;
13940
+ this.viewElement = undefined;
13941
+ }
13942
+ ngOnInit() {
13943
+ this._ngZone.runOutsideAngular(() => {
13944
+ window.addEventListener("scroll", this.scroll, EventUtils.passiveCapture);
13945
+ window.addEventListener("resize", this.resize, EventUtils.passiveCapture);
13946
+ window.addEventListener("keyup", this.handleKeyUp, EventUtils.passiveCapture);
13947
+ });
13948
+ }
13949
+ _getDimensions() {
13950
+ return {
13951
+ top: this.top,
13952
+ right: this.left + this._elementRef.nativeElement.clientWidth,
13953
+ bottom: this.top + this._elementRef.nativeElement.clientHeight,
13954
+ left: this.left
13955
+ };
13956
+ }
13957
+ align() {
13958
+ if (this._shouldDoAlign) {
13959
+ const rect = this._hostNativeEl.getBoundingClientRect();
13960
+ this.left = Math.max(0, rect.left + this.alignLeftOffsetPx);
13961
+ this.top = rect.top + this.alignTopOffsetPx;
13962
+ if (this.alignRight) {
13963
+ this.left = rect.right - this._elementRef.nativeElement.clientWidth;
13964
+ }
13965
+ if (!this.noWidthAlign) {
13966
+ this.width = rect.width;
13967
+ }
13968
+ let dimensions = this._getDimensions();
13969
+ if (this.keepInView && !BrowserUtils.AreDimensionsInView(dimensions, this.viewElement)) {
13970
+ const viewElemDimensions = BrowserUtils.GetDimensions(this.viewElement);
13971
+ if (!BrowserUtils.HorizontalFitInView(dimensions, this.viewElement) && this.keepInViewHorizontal) {
13972
+ this.left = Math.max(0, viewElemDimensions.right - this._elementRef.nativeElement.clientWidth);
13973
+ dimensions = this._getDimensions();
13974
+ }
13975
+ if (!BrowserUtils.VerticalFitInView(dimensions, this.viewElement) && this.keepInViewVertical) {
13976
+ // Prevent this from going negative (which can happen with tall popups on small screens) and starting offscreen.
13977
+ this.top = Math.max(0, rect.top - this._elementRef.nativeElement.clientHeight);
13978
+ dimensions = this._getDimensions();
13979
+ }
13980
+ // Prevent running off the _bottom_ of the screen
13981
+ const overrun = dimensions.bottom - window.innerHeight;
13982
+ if (overrun > 0) {
13983
+ this.top = Math.max(0, this.top - overrun);
13984
+ dimensions = this._getDimensions();
13985
+ }
13986
+ if (this.ajustableHeight) {
13987
+ if (dimensions.bottom >= viewElemDimensions.bottom) {
13988
+ this.height = viewElemDimensions.bottom - this.top;
13989
+ }
13990
+ else {
13991
+ this.height = undefined;
13992
+ }
13993
+ }
13994
+ }
13995
+ }
13996
+ }
13997
+ _alignWithZone() {
13998
+ if (this._shouldDoAlign) {
13999
+ this._ngZone.run(() => {
14000
+ this.align();
14001
+ });
14002
+ }
14003
+ }
14004
+ }
14005
+ AlignWithDirective.decorators = [
14006
+ { type: Directive, args: [{
14007
+ selector: "[alignWith]"
14008
+ },] }
14009
+ ];
14010
+ AlignWithDirective.ctorParameters = () => [
14011
+ { type: NgZone },
14012
+ { type: ElementRef }
14013
+ ];
14014
+ AlignWithDirective.propDecorators = {
14015
+ alignWith: [{ type: Input }],
14016
+ enableAlign: [{ type: Input }],
14017
+ keepInView: [{ type: Input }],
14018
+ keepInViewHorizontal: [{ type: Input }],
14019
+ keepInViewVertical: [{ type: Input }],
14020
+ alignRight: [{ type: Input }],
14021
+ noWidthAlign: [{ type: Input }],
14022
+ ajustableHeight: [{ type: Input }],
14023
+ alignTopOffsetPx: [{ type: Input }],
14024
+ alignLeftOffsetPx: [{ type: Input }],
14025
+ viewElement: [{ type: Input }],
14026
+ fixed: [{ type: HostBinding, args: ["style.position",] }],
14027
+ left: [{ type: HostBinding, args: ["style.left.px",] }],
14028
+ top: [{ type: HostBinding, args: ["style.top.px",] }],
14029
+ height: [{ type: HostBinding, args: ["style.max-height.px",] }],
14030
+ width: [{ type: HostBinding, args: ["style.width.px",] }]
14031
+ };
14032
+ __decorate([
14033
+ InputBoolean()
14034
+ ], AlignWithDirective.prototype, "enableAlign", void 0);
14035
+ __decorate([
14036
+ InputBoolean()
14037
+ ], AlignWithDirective.prototype, "keepInView", void 0);
14038
+ __decorate([
14039
+ InputBoolean()
14040
+ ], AlignWithDirective.prototype, "keepInViewHorizontal", void 0);
14041
+ __decorate([
14042
+ InputBoolean()
14043
+ ], AlignWithDirective.prototype, "keepInViewVertical", void 0);
14044
+ __decorate([
14045
+ InputBoolean()
14046
+ ], AlignWithDirective.prototype, "alignRight", void 0);
14047
+ __decorate([
14048
+ InputBoolean()
14049
+ ], AlignWithDirective.prototype, "noWidthAlign", void 0);
14050
+ __decorate([
14051
+ InputBoolean()
14052
+ ], AlignWithDirective.prototype, "ajustableHeight", void 0);
14053
+
14054
+ class ClickOutsideDirective {
14055
+ constructor(elementRef) {
14056
+ this.elementRef = elementRef;
14057
+ this.outsideClick = new EventEmitter();
14058
+ }
14059
+ onClick(event) {
14060
+ if (!this.elementRef.nativeElement.contains(event.target)) {
14061
+ this.outsideClick.emit(event);
14062
+ }
14063
+ }
14064
+ }
14065
+ ClickOutsideDirective.decorators = [
14066
+ { type: Directive, args: [{
14067
+ selector: '[outsideClick]',
14068
+ },] }
14069
+ ];
14070
+ ClickOutsideDirective.ctorParameters = () => [
14071
+ { type: ElementRef }
14072
+ ];
14073
+ ClickOutsideDirective.propDecorators = {
14074
+ outsideClick: [{ type: Output }],
14075
+ onClick: [{ type: HostListener, args: ['document:mousedown', ['$event'],] }]
14076
+ };
14077
+
14078
+ class DirectivesModule {
14079
+ }
14080
+ DirectivesModule.decorators = [
14081
+ { type: NgModule, args: [{
14082
+ imports: [],
14083
+ declarations: [
14084
+ AbsoluteOverlayTemplateDirective,
14085
+ AlignWithDirective,
14086
+ ClickOutsideDirective
14087
+ ],
14088
+ exports: [
14089
+ AbsoluteOverlayTemplateDirective,
14090
+ AlignWithDirective,
14091
+ ClickOutsideDirective
14092
+ ]
14093
+ },] }
14094
+ ];
14095
+
14096
+ class WorkflowNotificationToggleModule {
14097
+ }
14098
+ WorkflowNotificationToggleModule.decorators = [
14099
+ { type: NgModule, args: [{
14100
+ imports: [
14101
+ ButtonModule,
14102
+ ClickoutsideModule,
14103
+ LocalizationModule,
14104
+ IconModule,
14105
+ DirectivesModule,
14106
+ CommonModule,
14107
+ OverlayModule
14108
+ ],
14109
+ declarations: [
14110
+ WorkflowNotificationToggleComponent,
14111
+ WorkflowNotificationTogglePopupComponent
14112
+ ],
14113
+ exports: [
14114
+ WorkflowNotificationToggleComponent,
14115
+ WorkflowNotificationTogglePopupComponent
14116
+ ],
14117
+ providers: [
14118
+ OverlayService
14119
+ ]
14120
+ },] }
14121
+ ];
14122
+
14123
+ class PeriodFilterPopupComponent {
14124
+ constructor(element) {
14125
+ this.element = element;
14126
+ this.possibleFilters = [];
14127
+ this.closePopup = new EventEmitter();
14128
+ this.filterClicked = new EventEmitter();
14129
+ }
14130
+ showClass() {
14131
+ return true;
14132
+ }
14133
+ ngOnDestroy() {
14134
+ this.element = undefined;
14135
+ }
14136
+ }
14137
+ PeriodFilterPopupComponent.decorators = [
14138
+ { type: Component, args: [{
14139
+ selector: "co-period-filter-popup",
14140
+ template: `
14141
+ <div class="dropdown" id="period_filter_dropdown_template" [overlay]="parentForOverlay"
14142
+ @showFilterItems
14143
+ [alignWith]="element"
14144
+ [alignTopOffsetPx]="40"
14145
+ [class.showing]="true"
14146
+ [enableAlign]="true"
14147
+ [clickOutside]="true"
14148
+ (clickOutside)="closePopup.emit()"
14149
+ keepInView noWidthAlign alignRight>
14150
+ <div class="label" [textContent]="'PERIOD_SELECTION' | localize"></div>
14151
+ <div class="filter-item" *ngFor="let filter of possibleFilters" (click)="filterClicked.emit(filter)">
14152
+ <span class="item" [textContent]="filter | localize"></span>
14153
+ </div>
14154
+ </div>`,
14155
+ encapsulation: ViewEncapsulation.None,
14156
+ animations: [
14157
+ trigger("showFilterItems", [
14158
+ state("void", style({ "height": "0" })),
14159
+ state("*", style({ "height": "*" })),
14160
+ transition("void <=> *", animate(200)) //NOSONAR
14161
+ ])
14162
+ ]
14163
+ },] }
14164
+ ];
14165
+ PeriodFilterPopupComponent.ctorParameters = () => [
14166
+ { type: ElementRef }
14167
+ ];
14168
+ PeriodFilterPopupComponent.propDecorators = {
14169
+ showClass: [{ type: HostBinding, args: ["class.co-period-filter-popup",] }],
14170
+ possibleFilters: [{ type: Input }],
14171
+ parentForOverlay: [{ type: Input }],
14172
+ closePopup: [{ type: Output }],
14173
+ filterClicked: [{ type: Output }]
14174
+ };
14175
+
14176
+ class PeriodFilterComponent {
14177
+ constructor(element, iconService, _overlayService) {
14178
+ this.element = element;
14179
+ this.iconService = iconService;
14180
+ this._overlayService = _overlayService;
14181
+ this.icon = Icon;
14182
+ this.possibleFilters = [
14183
+ Period.All,
14184
+ Period.Today,
14185
+ Period.ThisWeek,
14186
+ Period.ThisMonth,
14187
+ Period.NextThreeMonths
14188
+ ];
14189
+ this.showPopup = false;
14190
+ this.filterClicked = new EventEmitter();
14191
+ this.currentFilter = this.possibleFilters[0];
14192
+ }
14193
+ showClass() {
14194
+ return true;
14195
+ }
14196
+ handleClick() {
14197
+ this.showFilterItems();
14198
+ }
14199
+ ngOnDestroy() {
14200
+ this.element = undefined;
14201
+ }
14202
+ showFilterItems() {
14203
+ this.showPopup = true;
14204
+ this._periodPopupRef = this._overlayService.createComponent(PeriodFilterPopupComponent, { parentForOverlay: this.element, possibleFilters: this.possibleFilters }, {
14205
+ closePopup: () => this.closePopup(),
14206
+ filterClicked: (string) => this.onFilterClick(string),
14207
+ });
14208
+ }
14209
+ closePopup() {
14210
+ this.showPopup = false;
14211
+ this._overlayService.removeComponent(this._periodPopupRef);
14212
+ }
14213
+ onFilterClick(filter) {
14214
+ this.currentFilter = filter;
14215
+ this._emitFilterClicked();
14216
+ this.closePopup();
14217
+ }
14218
+ _emitFilterClicked() {
14219
+ let from, to;
14220
+ switch (this.currentFilter) {
14221
+ case Period.Today:
14222
+ from = new Date();
14223
+ to = new Date();
14224
+ break;
14225
+ case Period.ThisWeek:
14226
+ from = DateUtils.GetFirstDayOfWeek(new Date());
14227
+ to = DateUtils.GetLastDayOfWeek(new Date());
14228
+ break;
14229
+ case Period.ThisMonth:
14230
+ from = DateUtils.GetFirstDayOfMonth(new Date());
14231
+ to = DateUtils.GetLastDayOfMonth(new Date());
14232
+ break;
14233
+ case Period.NextThreeMonths:
14234
+ from = DateUtils.GetFirstDayOfMonth(new Date());
14235
+ to = DateUtils.GetLastDayOfMonth(new Date());
14236
+ to.setMonth(to.getMonth() + 3); //NOSONAR
14237
+ break;
14238
+ }
14239
+ this.filterClicked.next({ from, to });
14240
+ }
14241
+ }
14242
+ PeriodFilterComponent.decorators = [
14243
+ { type: Component, args: [{
14244
+ selector: "co-period-filter",
14245
+ template: `
14246
+ <div class="current-filter" [textContent]="currentFilter | localize"></div>
14247
+ <co-icon [iconData]="iconService.getIcon(showPopup ? icon.ArrowPointUp : icon.ArrowPointDown)"></co-icon>
14248
+ `,
14249
+ animations: [
14250
+ trigger("showFilterItems", [
14251
+ state("void", style({ "height": "0" })),
14252
+ state("*", style({ "height": "*" })),
14253
+ transition("void <=> *", animate(200)) //NOSONAR
14254
+ ])
14255
+ ],
14256
+ encapsulation: ViewEncapsulation.None
14257
+ },] }
14258
+ ];
14259
+ PeriodFilterComponent.ctorParameters = () => [
14260
+ { type: ElementRef },
14261
+ { type: IconCacheService },
14262
+ { type: OverlayService }
14263
+ ];
14264
+ PeriodFilterComponent.propDecorators = {
14265
+ showPopup: [{ type: HostBinding, args: ["class.expanded",] }],
14266
+ showClass: [{ type: HostBinding, args: ["class.co-period-filter",] }],
14267
+ handleClick: [{ type: HostListener, args: ["click",] }],
14268
+ filterClicked: [{ type: Output }]
14269
+ };
14270
+
14271
+ class PeriodFilterModule {
14272
+ }
14273
+ PeriodFilterModule.decorators = [
14274
+ { type: NgModule, args: [{
14275
+ imports: [
14276
+ LocalizationModule,
14277
+ IconModule,
14278
+ CommonModule,
14279
+ LocalizationModule,
14280
+ ClickoutsideModule,
14281
+ DirectivesModule,
14282
+ OverlayModule
14283
+ ],
14284
+ declarations: [
14285
+ PeriodFilterComponent,
14286
+ PeriodFilterPopupComponent
14287
+ ],
14288
+ exports: [
14289
+ PeriodFilterComponent,
14290
+ PeriodFilterPopupComponent
14291
+ ],
14292
+ providers: [
14293
+ OverlayService
14294
+ ]
14295
+ },] }
14296
+ ];
14297
+
14298
+ class ActivityListHeaderModule {
14299
+ }
14300
+ ActivityListHeaderModule.decorators = [
14301
+ { type: NgModule, args: [{
14302
+ imports: [
14303
+ LocalizationModule,
14304
+ InputTextModule,
14305
+ ButtonModule,
14306
+ WorkflowNotificationToggleModule,
14307
+ PeriodFilterModule,
14308
+ CommonModule
14309
+ ],
14310
+ declarations: [
14311
+ ActivityListHeaderComponent
14312
+ ],
14313
+ exports: [
14314
+ ActivityListHeaderComponent
14315
+ ],
14316
+ },] }
14317
+ ];
14318
+
14319
+ class ComponentActivityListModule {
14320
+ }
14321
+ ComponentActivityListModule.decorators = [
14322
+ { type: NgModule, args: [{
14323
+ imports: [
14324
+ LocalizationModule,
14325
+ CommonModule,
14326
+ ButtonModule,
14327
+ CollapsibleModule,
14328
+ PersonalActivityOverviewModule,
14329
+ ComponentActivityOverviewModule,
14330
+ ActivityListHeaderModule
14331
+ ],
14332
+ declarations: [
14333
+ ComponentActivityListComponent
14334
+ ],
14335
+ exports: [
14336
+ ComponentActivityListComponent
14337
+ ]
14338
+ },] }
14339
+ ];
14340
+
10868
14341
  /*
10869
14342
  * Public API Surface of sharedcomponents
10870
14343
  */
@@ -10873,5 +14346,5 @@ ActivityListModule.decorators = [
10873
14346
  * Generated bundle index. Do not edit.
10874
14347
  */
10875
14348
 
10876
- export { ActivityListComponent, ActivityListModule, AgendaEvent, AgendaEventPerDay, CalendarView, CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, FilesUploadComponent, FilesUploadModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, SimpleTagsComponent, SimpleTagsModule, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, LocalizationModule as ɵba, LocalizePipe as ɵbb, StockInformationComponent as ɵbc, StockInformationGridComponent as ɵbd, StockTransferComponent as ɵbe, StockChangeAmountComponent as ɵbf, StockTabComponent as ɵbg, OrderTabComponent as ɵbh, StockTabsComponent as ɵbi, StockHistoryTabsComponent as ɵbj, OrderStockTabComponent as ɵbk, StockLocationComponent as ɵbl, StockHistoryComponent as ɵbm, OrderSupplyStockHistoryComponent as ɵbn, OrderCommissionStockHistoryComponent as ɵbo, OrderStockHistoryComponent as ɵbp, AllocationStockHistoryComponent as ɵbq, StockPrognoseComponent as ɵbr, StockLocationPopupComponent as ɵbs, SendMethod as ɵbt, Icon as ɵbu, CalendarAllYearsComponent as ɵbv, CalendarAllMonthsComponent as ɵbw, CalendarHeaderComponent as ɵbx, CalendarComponent as ɵby, CalendarViewComponent as ɵbz, StockService as ɵc, LanguageCode as ɵca, AgendaHeaderComponent as ɵcb, AgendaViewComponent as ɵcc, AgendaMonthViewComponent as ɵcd, AgendaBaseViewComponent as ɵce, AgendaDayViewComponent as ɵcf, AgendaWeekViewComponent as ɵcg, AgendaWeekSelectViewComponent as ɵch, AgendaHourViewComponent as ɵci, AgendaHourCellComponent as ɵcj, AgendaHourViewLabelsComponent as ɵck, AgendaHalfHourCellComponent as ɵcl, AgendaEventsComponent as ɵcm, AgendaEventComponent as ɵcn, ViewSelectComponent as ɵco, AgendaSelectEventComponent as ɵcp, MASTER_PIPES as ɵcq, ArrayNumberPipe as ɵcr, UCfirstPipe as ɵcs, FileTypeImagePipe as ɵct, BaseFileUploadComponent as ɵcu, InputBoolean as ɵcv, ImageDisplayModule as ɵcw, ImageDisplayComponent as ɵcx, FileUploadModule as ɵcy, TileRenderModule as ɵcz, SharedConnectorService as ɵd, TileRenderComponent as ɵda, FileUploadComponent as ɵdb, FileUploadPopupModule as ɵdc, MultiplePropertyTogglerModule as ɵdd, MultiplePropertyTogglerComponent as ɵde, FileUploadPopupComponent as ɵdf, AppFileDropzoneModule as ɵdg, AppFileDropzoneComponent as ɵdh, DragDropContainerComponent as ɵdi, DragDropService as ɵdj, OptionsService as ɵe, DictionaryService as ɵf, LocalizeService as ɵg, IconCacheService as ɵh, SendMethodService as ɵi, SendMethodEmailModule as ɵj, LayoutSelectionModule as ɵk, LayoutSelectionComponent as ɵl, SignatureButtonModule as ɵm, SignatureButtonComponent as ɵn, SendMethodEmailComponent as ɵo, SendMethodPrinterModule as ɵp, PrinterSelectionModule as ɵq, PrinterSelectionComponent as ɵr, SendMethodPrinterComponent as ɵs, SendMethodPdfModule as ɵt, SendMethodPdfComponent as ɵu, TabBarModule as ɵv, TabBarComponent as ɵw, StatusbarPopupComponent as ɵx, StockStatusbarModule as ɵy, StockStatusbarComponent as ɵz };
14349
+ export { ActivityListComponent, ActivityListModule, AgendaEvent, AgendaEventPerDay, CalendarView, CoLinearGaugeComponent, CoLinearGaugeModule, ComponentActivityListComponent, ComponentActivityListModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, FilesUploadComponent, FilesUploadModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, SimpleTagsComponent, SimpleTagsModule, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, LocalizationModule as ɵba, LocalizePipe as ɵbb, StockInformationComponent as ɵbc, StockInformationGridComponent as ɵbd, StockTransferComponent as ɵbe, StockChangeAmountComponent as ɵbf, StockTabComponent as ɵbg, OrderTabComponent as ɵbh, StockTabsComponent as ɵbi, StockHistoryTabsComponent as ɵbj, OrderStockTabComponent as ɵbk, StockLocationComponent as ɵbl, StockHistoryComponent as ɵbm, OrderSupplyStockHistoryComponent as ɵbn, OrderCommissionStockHistoryComponent as ɵbo, OrderStockHistoryComponent as ɵbp, AllocationStockHistoryComponent as ɵbq, StockPrognoseComponent as ɵbr, StockLocationPopupComponent as ɵbs, SendMethod as ɵbt, Icon as ɵbu, CalendarAllYearsComponent as ɵbv, CalendarAllMonthsComponent as ɵbw, CalendarHeaderComponent as ɵbx, CalendarComponent as ɵby, CalendarViewComponent as ɵbz, StockService as ɵc, LanguageCode as ɵca, AgendaHeaderComponent as ɵcb, AgendaViewComponent as ɵcc, AgendaMonthViewComponent as ɵcd, AgendaBaseViewComponent as ɵce, AgendaDayViewComponent as ɵcf, AgendaWeekViewComponent as ɵcg, AgendaWeekSelectViewComponent as ɵch, AgendaHourViewComponent as ɵci, AgendaHourCellComponent as ɵcj, AgendaHourViewLabelsComponent as ɵck, AgendaHalfHourCellComponent as ɵcl, AgendaEventsComponent as ɵcm, AgendaEventComponent as ɵcn, ViewSelectComponent as ɵco, AgendaSelectEventComponent as ɵcp, MASTER_PIPES as ɵcq, ArrayNumberPipe as ɵcr, UCfirstPipe as ɵcs, FileTypeImagePipe as ɵct, BaseFileUploadComponent as ɵcu, InputBoolean as ɵcv, ImageDisplayModule as ɵcw, ImageDisplayComponent as ɵcx, FileUploadModule as ɵcy, TileRenderModule as ɵcz, SharedConnectorService as ɵd, TileRenderComponent as ɵda, FileUploadComponent as ɵdb, FileUploadPopupModule as ɵdc, MultiplePropertyTogglerModule as ɵdd, MultiplePropertyTogglerComponent as ɵde, FileUploadPopupComponent as ɵdf, AppFileDropzoneModule as ɵdg, AppFileDropzoneComponent as ɵdh, DragDropContainerComponent as ɵdi, DragDropService as ɵdj, BaseActivityListComponent as ɵdk, PersonalActivityOverviewComponent as ɵdl, BaseActivityOverviewComponent as ɵdm, TaskModifierComponent as ɵdn, ModifyTaskFormComponent as ɵdo, PersonalActivityOverviewModule as ɵdp, ComponentActivityOverviewModule as ɵdq, TaskModifyerModule as ɵdr, ModifyTaskFormModule as ɵds, TaskDetailsModule as ɵdt, TaskDetailsComponent as ɵdu, BaseActivitySummaryComponent as ɵdv, ExecutiveSummaryBlockModule as ɵdw, ActivitySummaryBlockModule as ɵdx, ActivitySummaryBlockComponent as ɵdy, ExecutiveSummaryBlockComponent as ɵdz, OptionsService as ɵe, StatusSummaryBlockModule as ɵea, StatusSummaryBlockComponent as ɵeb, CreationSummaryBlockModule as ɵec, CreationSummaryBlockComponent as ɵed, NotificationSummaryBlockModule as ɵee, NotificationSummaryBlockComponent as ɵef, ComponentActivityOverviewComponent as ɵeg, ActivityListHeaderModule as ɵeh, WorkflowNotificationToggleModule as ɵei, DirectivesModule as ɵej, AbsoluteOverlayTemplateDirective as ɵek, AppAbsoluteOverlayOutletService as ɵel, AlignWithDirective as ɵem, ClickOutsideDirective as ɵen, WorkflowNotificationToggleComponent as ɵeo, WorkflowNotificationTogglePopupComponent as ɵep, PeriodFilterModule as ɵeq, PeriodFilterComponent as ɵer, PeriodFilterPopupComponent as ɵes, ActivityListHeaderComponent as ɵet, DictionaryService as ɵf, LocalizeService as ɵg, IconCacheService as ɵh, SendMethodService as ɵi, SendMethodEmailModule as ɵj, LayoutSelectionModule as ɵk, LayoutSelectionComponent as ɵl, SignatureButtonModule as ɵm, SignatureButtonComponent as ɵn, SendMethodEmailComponent as ɵo, SendMethodPrinterModule as ɵp, PrinterSelectionModule as ɵq, PrinterSelectionComponent as ɵr, SendMethodPrinterComponent as ɵs, SendMethodPdfModule as ɵt, SendMethodPdfComponent as ɵu, TabBarModule as ɵv, TabBarComponent as ɵw, StatusbarPopupComponent as ɵx, StockStatusbarModule as ɵy, StockStatusbarComponent as ɵz };
10877
14350
  //# sourceMappingURL=colijnit-sharedcomponents.js.map