@colijnit/sharedcomponents 1.0.70 → 253.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +707 -181
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +2 -0
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +3 -1
  6. package/esm2015/lib/businessobject/co-document-right.bo.js +1 -1
  7. package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +8 -7
  8. package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +15 -21
  9. package/esm2015/lib/components/image-display/image-display.component.js +7 -7
  10. package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +8 -10
  11. package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +2 -2
  12. package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +5 -5
  13. package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +2 -2
  14. package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +7 -4
  15. package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +7 -4
  16. package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +39 -13
  17. package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +10 -3
  18. package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +42 -57
  19. package/esm2015/lib/components/open-activity-list/components/base-open-activity-list.component.js +5 -3
  20. package/esm2015/lib/components/simple-tags/simple-tags.component.js +5 -147
  21. package/esm2015/lib/components/simple-tags/simple-tags.module.js +4 -2
  22. package/esm2015/lib/components/simple-tags-form/simple-tags-form.component.js +196 -0
  23. package/esm2015/lib/components/simple-tags-form/simple-tags-form.module.js +26 -0
  24. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +3 -3
  25. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +28 -2
  26. package/esm2015/lib/components/stock/localization/translation.js +3 -1
  27. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +7 -2
  28. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +144 -85
  29. package/esm2015/lib/components/stock/stock.component.js +11 -42
  30. package/esm2015/lib/components/stock/stock.module.js +4 -3
  31. package/esm2015/lib/components/task-modifyer/task-modifier.component.js +9 -9
  32. package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.component.js +45 -0
  33. package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.module.js +22 -0
  34. package/esm2015/lib/components/workflow-info-tiles/workflow-info-tiles.component.js +55 -0
  35. package/esm2015/lib/components/workflow-info-tiles/workflow-info-tiles.module.js +22 -0
  36. package/esm2015/lib/interface/operation-callback-simple-function.js +1 -1
  37. package/esm2015/lib/service/shared-connector.service.js +93 -1
  38. package/esm2015/lib/service/shared.service.js +44 -1
  39. package/esm2015/public-api.js +5 -1
  40. package/fesm2015/colijnit-sharedcomponents.js +759 -353
  41. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  42. package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +3 -1
  43. package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +3 -8
  44. package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +3 -4
  45. package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +2 -2
  46. package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +3 -1
  47. package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +3 -1
  48. package/lib/components/modify-task-form/modify-task-form.component.d.ts +9 -4
  49. package/lib/components/modify-task-form/style/_layout.scss +4 -0
  50. package/lib/components/open-activity-list/component-activity-list.component.d.ts +9 -11
  51. package/lib/components/open-activity-list/components/base-open-activity-list.component.d.ts +2 -0
  52. package/lib/components/simple-tags/simple-tags.component.d.ts +1 -8
  53. package/lib/components/simple-tags-form/simple-tags-form.component.d.ts +29 -0
  54. package/lib/components/simple-tags-form/simple-tags-form.module.d.ts +2 -0
  55. package/lib/components/simple-tags-form/style/_layout.scss +257 -0
  56. package/lib/components/simple-tags-form/style/_material-definition.scss +39 -0
  57. package/lib/components/simple-tags-form/style/_theme.scss +4 -0
  58. package/lib/components/simple-tags-form/style/material.scss +4 -0
  59. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +7 -1
  60. package/lib/components/stock/localization/translation.d.ts +2 -0
  61. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +2 -0
  62. package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +19 -6
  63. package/lib/components/stock/stock.component.d.ts +3 -0
  64. package/lib/components/stock/style/_layout.scss +64 -31
  65. package/lib/components/task-modifyer/task-modifier.component.d.ts +3 -5
  66. package/lib/components/workflow-info-tiles/components/style/_layout.scss +49 -0
  67. package/lib/components/workflow-info-tiles/components/style/_material-definition.scss +0 -0
  68. package/lib/components/workflow-info-tiles/components/style/_theme.scss +4 -0
  69. package/lib/components/workflow-info-tiles/components/style/material.scss +4 -0
  70. package/lib/components/workflow-info-tiles/components/workflow-info-tile.component.d.ts +15 -0
  71. package/lib/components/workflow-info-tiles/components/workflow-info-tile.module.d.ts +2 -0
  72. package/lib/components/workflow-info-tiles/style/_layout.scss +16 -0
  73. package/lib/components/workflow-info-tiles/style/_material-definition.scss +0 -0
  74. package/lib/components/workflow-info-tiles/style/_theme.scss +4 -0
  75. package/lib/components/workflow-info-tiles/style/material.scss +4 -0
  76. package/lib/components/workflow-info-tiles/workflow-info-tiles.component.d.ts +21 -0
  77. package/lib/components/workflow-info-tiles/workflow-info-tiles.module.d.ts +2 -0
  78. package/lib/service/shared-connector.service.d.ts +10 -0
  79. package/lib/service/shared.service.d.ts +12 -0
  80. package/package.json +7 -6
  81. package/public-api.d.ts +4 -0
  82. package/3rdpartylicenses.txt +0 -1203
  83. package/favicon.ico +0 -0
  84. package/index.html +0 -12
  85. package/main.36b466467ac98ce720f9.js +0 -1
  86. package/polyfills.907fe9d1887c5de17993.js +0 -1
  87. package/runtime.8aac21847ed3d3829cca.js +0 -1
  88. package/styles.6375d1d30814ecba5d0c.css +0 -1
@@ -31,14 +31,15 @@ import { WorkflowProcess } from '@colijnit/mainapi/build/model/workflow-process'
31
31
  import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
32
32
  import { RoleEmailaddress } from '@colijnit/mainapi/build/model/role-email-address';
33
33
  import { Activity } from '@colijnit/mainapi/build/model/activity.bo';
34
+ import { WorkflowProcessInfoPerStatus } from '@colijnit/mainapi/build/model/workflow-process-info-per-status';
34
35
  import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
35
36
  import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
36
37
  import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
37
38
  import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
38
39
  import * as i1 from '@angular/platform-browser';
39
40
  import { DomSanitizer } from '@angular/platform-browser';
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';
41
41
  import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
42
+ import { IconModule, InputCheckboxModule, CoDialogModule, ButtonModule, ListOfValuesModule, OverlayService, ClickoutsideModule, OverlayModule, InputRadioButtonModule, SimpleGridModule, ImageModule, InputTextModule, InputNumberPickerModule, CoDialogWizardModule, InputTextareaModule, PopupModule, InputDatePickerModule, ResponsiveTextModule, InputSearchModule, PromptService, FormComponent, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, CoOrientation, CoreComponentsTranslationModule, TemplateWrapperModule, FormModule, ScreenConfigurationModule, FormMasterService, IconCacheService as IconCacheService$1, CoreDialogService, InputDateRangePickerModule, CollapsibleModule, ColorSequenceService } from '@colijnit/corecomponents_v12';
42
43
  import { ArticleTransaction as ArticleTransaction$1 } from '@colijnit/articleapi/build/model/article-transaction';
43
44
  import { PrintPriceStickers } from '@colijnit/sharedapi/build/model/print-price-stickers.bo';
44
45
  import { ReportingDocumentEmailSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request';
@@ -68,8 +69,9 @@ import { ActivityViewModel } from '@colijnit/mainapi/build/model/activity-view-m
68
69
  import { PersonalActivityTabEnum } from '@colijnit/mainapi/build/enum/personal-activity-tab.enum';
69
70
  import { ActivitySortType } from '@colijnit/mainapi/build/enum/activity-sort-type.enum';
70
71
  import { Task } from '@colijnit/mainapi/build/model/task.bo';
71
- import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
72
72
  import { TableName as TableName$1 } from '@colijnit/mainapi/build/enum/table-name.enum';
73
+ import { TagCategory } from '@colijnit/mainapi/build/enum/tab-category.enum';
74
+ import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
73
75
  import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
74
76
  import { PriorityType } from '@colijnit/mainapi/build/enum/priority-type.enum';
75
77
  import { RelationRequest } from '@colijnit/relationapi/build/model/relation-request';
@@ -777,6 +779,81 @@ class SharedConnectorService {
777
779
  });
778
780
  });
779
781
  }
782
+ getComponentActivitiesWithoutRelationFiltering(table, key) {
783
+ return __awaiter(this, void 0, void 0, function* () {
784
+ return new Promise((resolve, reject) => {
785
+ return this.mainConnector.getComponentActivitiesWithoutRelationFiltering(table, key).then((result) => {
786
+ if (result && result.validationResult && result.validationResult.success) {
787
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(Activity, result.resultObject));
788
+ }
789
+ else {
790
+ reject(result.validationMessagesAsString);
791
+ }
792
+ });
793
+ });
794
+ });
795
+ }
796
+ updateActivity(activity) {
797
+ return __awaiter(this, void 0, void 0, function* () {
798
+ return new Promise((resolve, reject) => {
799
+ return this.mainConnector.updateActivity(activity).then((result) => __awaiter(this, void 0, void 0, function* () {
800
+ resolve(result.validationResult);
801
+ }));
802
+ });
803
+ });
804
+ }
805
+ deleteActivity(activity) {
806
+ return __awaiter(this, void 0, void 0, function* () {
807
+ return new Promise((resolve, reject) => {
808
+ return this.mainConnector.deleteActivity(activity).then((result) => __awaiter(this, void 0, void 0, function* () {
809
+ resolve(result.validationResult);
810
+ }));
811
+ });
812
+ });
813
+ }
814
+ lockTask(id) {
815
+ return __awaiter(this, void 0, void 0, function* () {
816
+ return new Promise((resolve, reject) => {
817
+ return this.mainConnector.lockTask(id).then((result) => __awaiter(this, void 0, void 0, function* () {
818
+ resolve(result.validationResult);
819
+ }));
820
+ });
821
+ });
822
+ }
823
+ fireTrigger(workFlowProcessId, sequence, triggerId) {
824
+ return __awaiter(this, void 0, void 0, function* () {
825
+ return new Promise((resolve, reject) => {
826
+ return this.mainConnector.fireTrigger(workFlowProcessId, sequence, triggerId).then((result) => __awaiter(this, void 0, void 0, function* () {
827
+ resolve(result.validationResult);
828
+ }));
829
+ });
830
+ });
831
+ }
832
+ fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId) {
833
+ return __awaiter(this, void 0, void 0, function* () {
834
+ return new Promise((resolve, reject) => {
835
+ return this.mainConnector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId).then((result) => __awaiter(this, void 0, void 0, function* () {
836
+ resolve(result.validationResult);
837
+ }));
838
+ });
839
+ });
840
+ }
841
+ getJoinedTags(table, key) {
842
+ return __awaiter(this, void 0, void 0, function* () {
843
+ return new Promise((resolve, reject) => {
844
+ return this.mainConnector.getJoinedTags(table, key).then((result) => {
845
+ if (result.validationResult && result.validationResult.success) {
846
+ if (result.resultObjects) {
847
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(TagTreeItem, result.resultObjects));
848
+ }
849
+ }
850
+ else {
851
+ reject(result.validationMessagesAsString);
852
+ }
853
+ });
854
+ });
855
+ });
856
+ }
780
857
  getDocumentContent(id, thumbnail = true) {
781
858
  return __awaiter(this, void 0, void 0, function* () {
782
859
  return new Promise((resolve, reject) => {
@@ -1155,6 +1232,22 @@ class SharedConnectorService {
1155
1232
  });
1156
1233
  });
1157
1234
  }
1235
+ getWorkflowProcessInfoPerStatus(worlflowCategory) {
1236
+ return __awaiter(this, void 0, void 0, function* () {
1237
+ return new Promise((resolve, reject) => {
1238
+ return this.mainConnector.getWorkflowProcessInfoPerStatus(worlflowCategory).then((result) => {
1239
+ if (result.validationResult && result.validationResult.success) {
1240
+ if (result.resultObject) {
1241
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(WorkflowProcessInfoPerStatus, result.resultObject));
1242
+ }
1243
+ }
1244
+ else {
1245
+ reject(result.validationMessagesAsString);
1246
+ }
1247
+ });
1248
+ });
1249
+ });
1250
+ }
1158
1251
  getHistoricActivities(table, key) {
1159
1252
  return __awaiter(this, void 0, void 0, function* () {
1160
1253
  return new Promise((resolve, reject) => {
@@ -1520,10 +1613,12 @@ class StockComponent {
1520
1613
  this.okButtonClicked = new EventEmitter();
1521
1614
  this.cancelButtonClicked = new EventEmitter();
1522
1615
  this.handleClick = new EventEmitter();
1616
+ this.updateGridData = new EventEmitter();
1523
1617
  this.loaded = false;
1524
1618
  this.showStockInformationGrid = true;
1525
1619
  this.showStockTransfer = false;
1526
1620
  this.stockInformation = [];
1621
+ this.articleDetailsInformation = new ArticleStockManagement();
1527
1622
  this.stockHistory = [];
1528
1623
  this.allAvailableStock = 0;
1529
1624
  this.allTechnicalStock = 0;
@@ -1571,7 +1666,12 @@ class StockComponent {
1571
1666
  data.entryDate = new Date;
1572
1667
  this._stockService.updateArticleDetails(data).then(result => {
1573
1668
  this.handleClick.emit();
1669
+ this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
1670
+ this.updateGridData.emit(details);
1671
+ });
1574
1672
  });
1673
+ this.loaded = true;
1674
+ this.loadData();
1575
1675
  }
1576
1676
  backToStock(goodId) {
1577
1677
  this.loadData();
@@ -1660,48 +1760,9 @@ StockComponent.decorators = [
1660
1760
  (transferIconClicked)="handleStockTransferClick($event)"
1661
1761
  (sendMethodDialogClicked)="handleSendMethodClick($event)"
1662
1762
  [warehouses]="warehouses"
1663
- ></co-stock-tabs>
1664
- <div class="stock-transfer-wrapper">
1665
- <co-dialog *ngIf="showStockTransfer"
1666
- (closeClick)="showStockTransfer = false"
1667
- [showCloseIcon]="true"
1668
- [modal]="true"
1669
- [headerTemplate]="headerTemplate"
1670
- [footerTemplate]="footerTemplate">
1671
- <ng-template #headerTemplate>
1672
- <div class="co-dialog-header-title-wrapper">
1673
- <co-icon [iconData]="iconCacheService.getIcon(icons.Cubes)"></co-icon>
1674
- <div class="co-dialog-header-title" [textContent]="'TRANSFER_STOCK' | localize"></div>
1675
- </div>
1676
- </ng-template>
1677
- <div class="dialog-wrapper">
1678
- <co-stock-transfer (handleClick)="backToStock($event)"
1679
- class="stock-transfer-dialog"
1680
- [article]="stockTransferArticle"
1681
- [articleToTransfer]="stockTransferArticleDetails"
1682
- (handleStickerClicked)="handleStickerClicked.emit($event)"
1683
- [articleWarehouse]="articleWarehouse"
1684
- [allWarehouses]="allWarehouses">
1685
- </co-stock-transfer>
1686
- </div>
1687
- <ng-template #footerTemplate>
1688
- <div class="button-wrapper ok-cancel-buttons">
1689
- <co-button class="save-button"
1690
- (click)="handleOkClick(stockTransferArticleDetails)"
1691
- [iconData]="iconCacheService.getIcon(icons.CheckDuotone)">
1692
- </co-button>
1693
- <co-button class="cancel-button"
1694
- (click)="showStockTransfer = false"
1695
- [iconData]="iconCacheService.getIcon(icons.CrossSkinny)">
1696
- </co-button>
1697
- </div>
1698
- </ng-template>
1699
- </co-dialog>
1700
- </div>
1763
+ [showStockTransfer]="showStockTransfer"
1701
1764
 
1702
- <co-send-method-dialog *ngIf="showSendMethodDialog">
1703
-
1704
- </co-send-method-dialog>
1765
+ ></co-stock-tabs>
1705
1766
  </div>
1706
1767
  `,
1707
1768
  encapsulation: ViewEncapsulation.None
@@ -2223,15 +2284,24 @@ StockInformationGridComponent.propDecorators = {
2223
2284
  };
2224
2285
 
2225
2286
  class StockTransferComponent {
2226
- constructor(_stockService, iconCacheService) {
2287
+ constructor(_stockService, iconCacheService, _changeDetector) {
2227
2288
  this._stockService = _stockService;
2228
2289
  this.iconCacheService = iconCacheService;
2290
+ this._changeDetector = _changeDetector;
2291
+ this.selectedArticleDetailsData = new ArticleDetailsBo();
2292
+ this.articleDetailsInformation = new ArticleStockManagement();
2293
+ this.articleStockInfo = [];
2294
+ this.stockLocations = [];
2229
2295
  this.handleClick = new EventEmitter();
2230
2296
  this.handleStickerClicked = new EventEmitter();
2297
+ this.updateGridData = new EventEmitter();
2298
+ this.showStockTransferChange = new EventEmitter();
2231
2299
  this.showSendMethodDialog = false;
2300
+ this.transferFull = false;
2232
2301
  this.warehouses = [];
2233
2302
  this.stockState = [];
2234
2303
  this.locations = [];
2304
+ this.stockStatus = [];
2235
2305
  this.icons = Icon;
2236
2306
  }
2237
2307
  ngAfterViewInit() {
@@ -2239,21 +2309,31 @@ class StockTransferComponent {
2239
2309
  this.getStockState();
2240
2310
  }
2241
2311
  handleOkClick(data) {
2242
- data.selected = true;
2243
- data.entryDate = new Date;
2244
- this._stockService.updateArticleDetails(data).then(result => {
2245
- if (result) {
2246
- this.handleClick.emit(data.goodId);
2247
- }
2248
- });
2312
+ if (this.articleToTransfer.amountTransfer > this.articleToTransfer.amountInStockFree) {
2313
+ this.transferFull = true;
2314
+ }
2315
+ else {
2316
+ data.selected = true;
2317
+ data.entryDate = new Date;
2318
+ this._stockService.updateArticleDetails(data).then((result) => {
2319
+ this.handleClick.emit();
2320
+ this.showStockTransferChange.emit(false);
2321
+ this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
2322
+ this.articleStockInfo = details;
2323
+ this.updateGridData.emit(details);
2324
+ });
2325
+ }).catch((result) => {
2326
+ // Log failure message
2327
+ });
2328
+ }
2249
2329
  }
2250
- handleCancelClick() {
2251
- this.handleClick.emit();
2330
+ onCloseClick() {
2331
+ this.showStockTransferChange.emit(false);
2252
2332
  }
2253
2333
  handleSelectedWarehouse(event) {
2254
2334
  this.articleToTransfer.targetWarehouse = event.warehouseNo;
2255
2335
  this.selectedWarehouse = event;
2256
- this.getStockManagementLocations(this.selectedWarehouse.warehouseNo);
2336
+ this.getStockManagementLocations();
2257
2337
  }
2258
2338
  handleSelectedLocation(event) {
2259
2339
  this.articleToTransfer.targetLocation = event.locationNo;
@@ -2270,9 +2350,9 @@ class StockTransferComponent {
2270
2350
  this.warehouses = warehouses;
2271
2351
  });
2272
2352
  }
2273
- getStockManagementLocations(data) {
2274
- this._stockService.getStockManagementLocations(data).then((locations) => {
2275
- this.locations = locations;
2353
+ getStockManagementLocations() {
2354
+ this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then((locations) => {
2355
+ this.stockLocations = locations;
2276
2356
  });
2277
2357
  }
2278
2358
  getStockState() {
@@ -2286,96 +2366,134 @@ StockTransferComponent.decorators = [
2286
2366
  selector: "co-stock-transfer",
2287
2367
  template: `
2288
2368
  <div class="stock-transfer">
2289
- <div class="stock-transfer-columns">
2290
- <div *ngIf="articleToTransfer" class="stock-transfer-top-column">
2291
- <div class="transfer-items">
2292
- <div class="transfer-item">
2293
- <label class="item-label" [textContent]="'WAREHOUSE' | localize"></label>
2294
- <span class="item-value" [textContent]="articleToTransfer.warehouseDescription"></span>
2369
+ <co-dialog
2370
+ (closeClick)="onCloseClick()"
2371
+ [showCloseIcon]="true"
2372
+ [modal]="true"
2373
+ [headerTemplate]="headerTemplate"
2374
+ [footerTemplate]="footerTemplate">
2375
+ <ng-template #headerTemplate>
2376
+ <div class="co-dialog-header-title-wrapper">
2377
+ <co-icon [iconData]="iconCacheService.getIcon(icons.Cubes)"></co-icon>
2378
+ <div class="co-dialog-header-title" [textContent]="'TRANSFER_STOCK' | localize"></div>
2379
+ </div>
2380
+ </ng-template>
2381
+ <div class="dialog-wrapper">
2382
+ <div class="stock-transfer-columns">
2383
+ <div *ngIf="articleToTransfer" class="stock-transfer-top-column">
2384
+ <div class="transfer-items">
2385
+ <div class="transfer-item">
2386
+ <label class="item-label" [textContent]="'WAREHOUSE' | localize"></label>
2387
+ <span class="item-value" [textContent]="articleToTransfer.warehouseDescription"></span>
2388
+ </div>
2389
+ <div class="transfer-item">
2390
+ <label class="item-label" [textContent]="'LOCATION' | localize"></label>
2391
+ <span class="item-value" [textContent]="articleToTransfer.locationNo"></span>
2392
+ </div>
2393
+ <div class="transfer-item" *ngIf="articleToTransfer?.batchNo">
2394
+ <label class="item-label" [textContent]="'BATCH_NO' | localize"></label>
2395
+ <span class="item-value" [textContent]="articleToTransfer.batchNo"></span>
2396
+ </div>
2397
+ <div class="transfer-item" *ngIf="articleToTransfer?.serialNo">
2398
+ <label class="item-label" [textContent]="'SERIE_NO' | localize"></label>
2399
+ <span class="item-value" [textContent]="articleToTransfer.serialNo"></span>
2400
+ </div>
2401
+ </div>
2402
+ <div class="transfer-quantity">
2403
+ <co-input-number-picker
2404
+ [(model)]="articleToTransfer.amountTransfer"
2405
+ [min]="1"
2406
+ [label]="'QUANTITY' | localize">
2407
+ </co-input-number-picker>
2408
+ <span *ngIf="transferFull" [textContent]="this.articleToTransfer.amountInStockFree + (' AVAILABLE' | localize)"></span>
2409
+ </div>
2295
2410
  </div>
2296
- <div class="transfer-item">
2297
- <label class="item-label" [textContent]="'LOCATION' | localize"></label>
2298
- <span class="item-value" [textContent]="articleToTransfer.locationNo"></span>
2411
+ <div class="transfer-arrow-wrapper">
2412
+ <span class="half-circle"></span>
2413
+ <div class="icon-wrapper">
2414
+ <co-icon [iconData]="iconCacheService.getIcon(icons.ArrowDownRegular)"></co-icon>
2415
+ </div>
2299
2416
  </div>
2300
- <div class="transfer-item" *ngIf="articleToTransfer?.batchNo">
2301
- <label class="item-label" [textContent]="'BATCH_NO' | localize"></label>
2302
- <span class="item-value" [textContent]="articleToTransfer.batchNo"></span>
2417
+
2418
+
2419
+ <div class="stock-transfer-bottom-column">
2420
+ <div class="transfer-bottom-row">
2421
+ <co-list-of-values [collection]="warehouses"
2422
+ [displayField]="'warehouseDescription'"
2423
+ (modelChange)="handleSelectedWarehouse($event)"
2424
+ [label]="'WAREHOUSE' | localize"
2425
+ >
2426
+ </co-list-of-values>
2427
+ <co-list-of-values [collection]="stockLocations"
2428
+ [displayField]="'locationNo'"
2429
+ (modelChange)="handleSelectedLocation($event)"
2430
+ [label]="'LOCATION' | localize"
2431
+ >
2432
+ </co-list-of-values>
2433
+ </div>
2434
+ <div class="transfer-bottom-row">
2435
+ <co-list-of-values [collection]="stockState"
2436
+ [displayField]="'stateDescription'"
2437
+ [label]="'STOCK_STATE' | localize"
2438
+ (modelChange)="handleSelectedStockState($event)"
2439
+ >
2440
+ </co-list-of-values>
2441
+ </div>
2442
+
2303
2443
  </div>
2304
- <div class="transfer-item" *ngIf="articleToTransfer?.serialNo">
2305
- <label class="item-label" [textContent]="'SERIE_NO' | localize"></label>
2306
- <span class="item-value" [textContent]="articleToTransfer.serialNo"></span>
2444
+ <div class="transfer-sticker-buttons">
2445
+ <co-button
2446
+ [label]="'STICKER' | localize"
2447
+ (click)="handleStickerClick()"
2448
+ [iconData]="iconCacheService.getIcon(icons.BarcodeReadRegular)">
2449
+ </co-button>
2307
2450
  </div>
2308
2451
  </div>
2309
- <div class="transfer-quantity">
2310
- <co-input-number-picker
2311
- [(model)]="articleToTransfer.amountTransfer"
2312
- [min]="1"
2313
- [label]="'QUANTITY' | localize">
2314
- </co-input-number-picker>
2315
- </div>
2316
2452
  </div>
2317
- <div class="transfer-arrow-wrapper">
2318
- <span class="half-circle"></span>
2319
- <div class="icon-wrapper">
2320
- <co-icon [iconData]="iconCacheService.getIcon(icons.ArrowDownRegular)"></co-icon>
2453
+ <ng-template #footerTemplate>
2454
+ <div class="button-wrapper ok-cancel-buttons">
2455
+ <co-button class="save-button"
2456
+ (click)="handleOkClick(articleToTransfer)"
2457
+ [iconData]="iconCacheService.getIcon(icons.CheckDuotone)">
2458
+ </co-button>
2459
+ <co-button class="cancel-button"
2460
+ (click)="onCloseClick()"
2461
+ [iconData]="iconCacheService.getIcon(icons.CrossSkinny)">
2462
+ </co-button>
2321
2463
  </div>
2322
- </div>
2323
-
2324
-
2325
- <div class="stock-transfer-bottom-column">
2326
- <div class="transfer-bottom-row">
2327
- <co-list-of-values [collection]="warehouses"
2328
- [displayField]="'warehouseDescription'"
2329
- (modelChange)="handleSelectedWarehouse($event)"
2330
- [label]="'WAREHOUSE' | localize"
2331
- >
2332
- </co-list-of-values>
2333
- <co-list-of-values [collection]="locations"
2334
- [displayField]="'description'"
2335
- (modelChange)="handleSelectedLocation($event)"
2336
- [label]="'LOCATION' | localize"
2337
- >
2338
- </co-list-of-values>
2339
- </div>
2340
- <div class="transfer-bottom-row">
2341
- <co-list-of-values [collection]="stockState"
2342
- [displayField]="'stateDescription'"
2343
- [label]="'STOCK_STATE' | localize"
2344
- (modelChange)="handleSelectedStockState($event)"
2345
- >
2346
- </co-list-of-values>
2347
- </div>
2348
- <div class="transfer-bottom-row">
2349
- <co-input-text [placeholder]="'DESCRIPTION' | localize"
2350
- [(model)]="articleToTransfer.stockStateRemark">
2351
- </co-input-text>
2352
- </div>
2353
- </div>
2354
- <div class="transfer-sticker-buttons">
2355
- <co-button
2356
- [label]="'STICKER' | localize"
2357
- (click)="handleStickerClick()"
2358
- [iconData]="iconCacheService.getIcon(icons.BarcodeReadRegular)">
2359
- </co-button>
2360
- </div>
2361
- </div>
2464
+ </ng-template>
2465
+ </co-dialog>
2362
2466
  </div>
2467
+ <co-send-method-dialog *ngIf="showSendMethodDialog"
2468
+ (closeClick)="showSendMethodDialog = false">
2469
+
2470
+ </co-send-method-dialog>
2363
2471
  `,
2364
2472
  encapsulation: ViewEncapsulation.None
2365
2473
  },] }
2366
2474
  ];
2367
2475
  StockTransferComponent.ctorParameters = () => [
2368
2476
  { type: StockService },
2369
- { type: IconCacheService }
2477
+ { type: IconCacheService },
2478
+ { type: ChangeDetectorRef }
2370
2479
  ];
2371
2480
  StockTransferComponent.propDecorators = {
2372
2481
  stockSticker: [{ type: Input }],
2373
2482
  article: [{ type: Input }],
2374
2483
  articleToTransfer: [{ type: Input }],
2375
- articleWarehouse: [{ type: Input }],
2376
2484
  allWarehouses: [{ type: Input }],
2485
+ showStockTransfer: [{ type: Input }],
2486
+ selectedArticleDetailsData: [{ type: Input }],
2487
+ articleFlat: [{ type: Input }],
2488
+ articleDetailsInformation: [{ type: Input }],
2489
+ selectedWarehouse: [{ type: Input }],
2490
+ selectedLocationNo: [{ type: Input }],
2491
+ articleStockInfo: [{ type: Input }],
2492
+ stockLocations: [{ type: Input }],
2377
2493
  handleClick: [{ type: Output }],
2378
- handleStickerClicked: [{ type: Output }]
2494
+ handleStickerClicked: [{ type: Output }],
2495
+ updateGridData: [{ type: Output }],
2496
+ showStockTransferChange: [{ type: Output }]
2379
2497
  };
2380
2498
 
2381
2499
  class SharedService {
@@ -2419,11 +2537,49 @@ class SharedService {
2419
2537
  return yield this.connector.getTagsFullTree(category, includeTags);
2420
2538
  });
2421
2539
  }
2540
+ getJoinedTags(table, key) {
2541
+ return __awaiter(this, void 0, void 0, function* () {
2542
+ return yield this.connector.getJoinedTags(table, key);
2543
+ });
2544
+ }
2422
2545
  getDocumentContent(docId, thumbnail = true) {
2423
2546
  return __awaiter(this, void 0, void 0, function* () {
2424
2547
  return yield this.connector.getDocumentContent(docId, thumbnail);
2425
2548
  });
2426
2549
  }
2550
+ getComponentActivitiesWithoutRelationFiltering(table, key) {
2551
+ return __awaiter(this, void 0, void 0, function* () {
2552
+ return yield this.connector.getComponentActivitiesWithoutRelationFiltering(table, key);
2553
+ });
2554
+ }
2555
+ updateActivity(activity) {
2556
+ return __awaiter(this, void 0, void 0, function* () {
2557
+ return yield this.connector.updateActivity(activity);
2558
+ });
2559
+ }
2560
+ deleteActivity(activity) {
2561
+ return __awaiter(this, void 0, void 0, function* () {
2562
+ return yield this.connector.deleteActivity(activity);
2563
+ });
2564
+ }
2565
+ lockTask(id) {
2566
+ return __awaiter(this, void 0, void 0, function* () {
2567
+ return yield this.connector.lockTask(id);
2568
+ });
2569
+ }
2570
+ canFireTrigger(activity, task) {
2571
+ return true;
2572
+ }
2573
+ fireTrigger(workFlowProcessId, sequence, triggerId) {
2574
+ return __awaiter(this, void 0, void 0, function* () {
2575
+ return yield this.connector.fireTrigger(workFlowProcessId, sequence, triggerId);
2576
+ });
2577
+ }
2578
+ fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId) {
2579
+ return __awaiter(this, void 0, void 0, function* () {
2580
+ return yield this.connector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId);
2581
+ });
2582
+ }
2427
2583
  getRelationListObjects(request) {
2428
2584
  return __awaiter(this, void 0, void 0, function* () {
2429
2585
  return yield this.connector.getRelationListObjects(request);
@@ -2449,6 +2605,11 @@ class SharedService {
2449
2605
  return yield this.connector.getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key);
2450
2606
  });
2451
2607
  }
2608
+ getWorkflowProcessInfoPerStatus(workflowCategory) {
2609
+ return __awaiter(this, void 0, void 0, function* () {
2610
+ return yield this.connector.getWorkflowProcessInfoPerStatus(workflowCategory);
2611
+ });
2612
+ }
2452
2613
  getActivities(table, key) {
2453
2614
  return __awaiter(this, void 0, void 0, function* () {
2454
2615
  const activities = yield this.connector.getComponentActivities(table, key);
@@ -3504,6 +3665,9 @@ class StockTabsComponent {
3504
3665
  },
3505
3666
  ];
3506
3667
  }
3668
+ onShowStockTransferChange(show) {
3669
+ this.showStockTransfer = show;
3670
+ }
3507
3671
  handleLocationClicked(data) {
3508
3672
  this.tabs[0].active = false;
3509
3673
  this.tabs[2].active = true;
@@ -3643,7 +3807,8 @@ StockTabsComponent.decorators = [
3643
3807
  [stockLocations]="stockLocations"
3644
3808
  (transferIconClicked)="transferIconClicked.emit($event)"
3645
3809
  (sendMethodDialogClicked)="sendMethodDialogClicked.emit($event)"
3646
-
3810
+ [showStockTransfer]="showStockTransfer"
3811
+ (showStockTransferChange)="onShowStockTransferChange($event)"
3647
3812
  ></co-stock-location>
3648
3813
 
3649
3814
  <co-order-tab *ngIf="tabs[3].active"
@@ -3690,6 +3855,7 @@ StockTabsComponent.propDecorators = {
3690
3855
  stockInformation: [{ type: Input }],
3691
3856
  article: [{ type: Input }],
3692
3857
  articleFlat: [{ type: Input }],
3858
+ showStockTransfer: [{ type: Input }],
3693
3859
  warehouses: [{ type: Input }],
3694
3860
  transferIconClicked: [{ type: Output }],
3695
3861
  sendMethodDialogClicked: [{ type: Output }]
@@ -3777,9 +3943,13 @@ class StockLocationComponent {
3777
3943
  this.icons = Icon;
3778
3944
  this.articleStockInfo = [];
3779
3945
  this.articleStockInformation = [];
3946
+ this.articleWarehouse = [];
3947
+ this.allWarehouses = [];
3780
3948
  this.dataWareHouseCode = [];
3781
3949
  this.transferIconClicked = new EventEmitter();
3782
3950
  this.sendMethodDialogClicked = new EventEmitter();
3951
+ this.showStockTransferChange = new EventEmitter();
3952
+ this.handleStickerClicked = new EventEmitter();
3783
3953
  this.showConfirmationDialog = false;
3784
3954
  this.newStockLine = false;
3785
3955
  this.showConfirmStockRow = false;
@@ -3804,6 +3974,10 @@ class StockLocationComponent {
3804
3974
  }
3805
3975
  ngOnDestroy() {
3806
3976
  }
3977
+ onShowStockTransferChange(show) {
3978
+ this.showStockTransfer = show;
3979
+ this.showStockTransferChange.emit(this.showStockTransfer);
3980
+ }
3807
3981
  onLocationDropdownClick() {
3808
3982
  this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then((locations) => {
3809
3983
  this.stockLocations = locations;
@@ -3821,7 +3995,8 @@ class StockLocationComponent {
3821
3995
  this.sendMethodDialogClicked.emit(data);
3822
3996
  }
3823
3997
  handleStockTransferClick(event) {
3824
- this.transferIconClicked.emit(event);
3998
+ this.articleDetails = event;
3999
+ this.showStockTransfer = true;
3825
4000
  }
3826
4001
  onOkClickSendLocations(row) {
3827
4002
  this.selectedArticleDetailsData = row;
@@ -3893,6 +4068,18 @@ StockLocationComponent.decorators = [
3893
4068
  selector: "co-stock-location",
3894
4069
  template: `
3895
4070
  <div class="stock-grid">
4071
+ <div class="stock-transfer-wrapper">
4072
+ <co-stock-transfer *ngIf="showStockTransfer"
4073
+ class="stock-transfer-dialog"
4074
+ [articleToTransfer]="articleDetails"
4075
+ (handleStickerClicked)="handleStickerClicked.emit($event)"
4076
+ [allWarehouses]="allWarehouses"
4077
+ [stockLocations]="stockLocations"
4078
+ [articleFlat]="articleFlat"
4079
+ [showStockTransfer]="showStockTransfer"
4080
+ (showStockTransferChange)="onShowStockTransferChange($event)">
4081
+ </co-stock-transfer>
4082
+ </div>
3896
4083
  <co-stock-location-popup
3897
4084
  [selectedWarehouse]="selectedWarehouse"
3898
4085
  [articleFlat]="articleFlat"
@@ -4003,11 +4190,16 @@ StockLocationComponent.ctorParameters = () => [
4003
4190
  StockLocationComponent.propDecorators = {
4004
4191
  articleStockInfo: [{ type: Input }],
4005
4192
  articleStockInformation: [{ type: Input }],
4193
+ articleWarehouse: [{ type: Input }],
4194
+ allWarehouses: [{ type: Input }],
4006
4195
  article: [{ type: Input }],
4196
+ showStockTransfer: [{ type: Input }],
4007
4197
  articleFlat: [{ type: Input }],
4008
4198
  dataWareHouseCode: [{ type: Input }],
4009
4199
  transferIconClicked: [{ type: Output }],
4010
4200
  sendMethodDialogClicked: [{ type: Output }],
4201
+ showStockTransferChange: [{ type: Output }],
4202
+ handleStickerClicked: [{ type: Output }],
4011
4203
  selectedWarehouse: [{ type: Input }],
4012
4204
  stockLocations: [{ type: Input }]
4013
4205
  };
@@ -4894,10 +5086,10 @@ StockLocationPopupComponent.decorators = [
4894
5086
  [readonly]="false"
4895
5087
  ></co-input-text>
4896
5088
  </div>
4897
- <co-input-text [model]="selectedArticleDetailsData?.entryDate | date"
5089
+ <co-input-date [model]="selectedArticleDetailsData?.entryDate | date"
4898
5090
  [placeholder]="'DATE' | localize"
4899
5091
  [readonly]="false"
4900
- ></co-input-text>
5092
+ ></co-input-date>
4901
5093
  </div>
4902
5094
  <div class="stock-dialog-row">
4903
5095
  <co-list-of-values [label]="'STATUS' | localize"
@@ -4976,7 +5168,8 @@ StockModule.decorators = [
4976
5168
  StockStatusbarModule,
4977
5169
  ListOfValuesModule,
4978
5170
  LocalizationModule,
4979
- PopupModule
5171
+ PopupModule,
5172
+ InputDatePickerModule
4980
5173
  ],
4981
5174
  declarations: [
4982
5175
  StockComponent,
@@ -5059,6 +5252,7 @@ class Translation {
5059
5252
  this.REFERENCE = 'REFERENCE';
5060
5253
  this.RELATION_ID = 'RELATION_ID';
5061
5254
  this.RELATION_NR = 'RELATION_NR';
5255
+ this.REMARK = 'REMARK';
5062
5256
  this.RESERVED = 'RESERVED';
5063
5257
  this.QUANTITY = 'QUANTITY';
5064
5258
  this.SEARCH = 'SEARCH';
@@ -5066,6 +5260,7 @@ class Translation {
5066
5260
  this.SERIE_NO = 'SERIE_NO';
5067
5261
  this.STANDARD_WAREHOUSE = 'STANDARD_WAREHOUSE';
5068
5262
  this.STANDARD_LOCATION = 'STANDARD_LOCATION';
5263
+ this.STATUS = 'STATUS';
5069
5264
  this.STICKER = 'STICKER';
5070
5265
  this.STOCK = 'STOCK';
5071
5266
  this.STOCK_DETAILS = 'STOCK_DETAILS';
@@ -7495,6 +7690,88 @@ class SimpleTagsComponent {
7495
7690
  this._tags = [];
7496
7691
  this._linkedTags = [];
7497
7692
  }
7693
+ set tags(tags) {
7694
+ this._tags = tags;
7695
+ }
7696
+ get tags() {
7697
+ return this._tags;
7698
+ }
7699
+ set linkedTags(tags) {
7700
+ this._linkedTags = tags;
7701
+ }
7702
+ get linkedTags() {
7703
+ return this._linkedTags;
7704
+ }
7705
+ showClass() {
7706
+ return true;
7707
+ }
7708
+ handleSaveTags() {
7709
+ this.saveClick.next(this._linkedTags);
7710
+ this.closeClick.next();
7711
+ }
7712
+ }
7713
+ SimpleTagsComponent.decorators = [
7714
+ { type: Component, args: [{
7715
+ selector: "co-simple-tags",
7716
+ template: `
7717
+ <co-dialog
7718
+ [headerTemplate]="headerTemplate"
7719
+ [footerTemplate]="footerTemplate"
7720
+ (closeClick)="closeClick.emit()"
7721
+ >
7722
+ <ng-template #headerTemplate>
7723
+ <div class="header-wrapper">
7724
+ <co-icon [iconData]="iconCacheService.getIcon(icon.TagRegular)"></co-icon>
7725
+ <span class="co-dialog-header-title" [textContent]="'Tags'"></span>
7726
+ </div>
7727
+ </ng-template>
7728
+
7729
+ <div class="dialog-content-wrapper">
7730
+ <co-simple-tags-form [tags]="tags" [(linkedTags)]="linkedTags"></co-simple-tags-form>
7731
+ </div>
7732
+
7733
+ <ng-template #footerTemplate>
7734
+ <div class="co-dialog-footer-button-wrapper">
7735
+ <co-button class="save-button"
7736
+ [iconData]="iconCacheService.getIcon(icon.CheckDuotone)"
7737
+ (click)="handleSaveTags()"
7738
+ ></co-button>
7739
+ <co-button
7740
+ class="close-button"
7741
+ [iconData]="iconCacheService.getIcon(icon.CrossSkinny)"
7742
+ (click)="closeClick.next()"
7743
+ ></co-button>
7744
+ </div>
7745
+ </ng-template>
7746
+ </co-dialog>
7747
+ `,
7748
+ encapsulation: ViewEncapsulation.None
7749
+ },] }
7750
+ ];
7751
+ SimpleTagsComponent.ctorParameters = () => [
7752
+ { type: IconCacheService },
7753
+ { type: SharedService }
7754
+ ];
7755
+ SimpleTagsComponent.propDecorators = {
7756
+ tags: [{ type: Input }],
7757
+ linkedTags: [{ type: Input }],
7758
+ closeClick: [{ type: Output }],
7759
+ saveClick: [{ type: Output }],
7760
+ showClass: [{ type: HostBinding, args: ["class.co-simple-tags",] }]
7761
+ };
7762
+
7763
+ class SimpleTagsFormComponent {
7764
+ constructor(iconCacheService, sharedService) {
7765
+ this.iconCacheService = iconCacheService;
7766
+ this.sharedService = sharedService;
7767
+ this.icon = Icon;
7768
+ this.linkedTagsChange = new EventEmitter();
7769
+ this.breadCrumbs = [];
7770
+ this.displayTags = [];
7771
+ this.searchString = '';
7772
+ this._tags = [];
7773
+ this._linkedTags = [];
7774
+ }
7498
7775
  set tags(tags) {
7499
7776
  this._tags = tags;
7500
7777
  this.setRootDisplayTags();
@@ -7567,10 +7844,6 @@ class SimpleTagsComponent {
7567
7844
  this.displayTags = matchingObjects;
7568
7845
  this.breadCrumbs = [];
7569
7846
  }
7570
- handleSaveTags() {
7571
- this.saveClick.next(this._linkedTags);
7572
- this.closeClick.next();
7573
- }
7574
7847
  _loadThumbnail(tagTreeItem) {
7575
7848
  if (tagTreeItem.image && tagTreeItem.image.documentId && !tagTreeItem.image.thumbnailBody) {
7576
7849
  this.sharedService.getDocumentContent(tagTreeItem.image.documentId, true)
@@ -7582,52 +7855,40 @@ class SimpleTagsComponent {
7582
7855
  }
7583
7856
  }
7584
7857
  }
7585
- SimpleTagsComponent.decorators = [
7858
+ SimpleTagsFormComponent.decorators = [
7586
7859
  { type: Component, args: [{
7587
- selector: "co-simple-tags",
7860
+ selector: "co-simple-tags-form",
7588
7861
  template: `
7589
- <co-dialog
7590
- [headerTemplate]="headerTemplate"
7591
- [footerTemplate]="footerTemplate"
7592
- (closeClick)="closeClick.emit()"
7593
- >
7594
- <ng-template #headerTemplate>
7595
- <div class="header-wrapper">
7596
- <co-icon [iconData]="iconCacheService.getIcon(icon.TagRegular)"></co-icon>
7597
- <span class="co-dialog-header-title" [textContent]="'Tags'"></span>
7598
- </div>
7599
- </ng-template>
7600
-
7601
- <div class="dialog-content-wrapper">
7602
- <div class="collection-navigation co-small-scrollbar">
7603
- <span class="title" [textContent]="'Beschikbare tags'"></span>
7604
- <co-input-search
7605
- [(model)]="searchString"
7606
- [placeholder]="'Search for tag name'"
7607
- (search)="searchCollection()"
7608
- (modelChange)="searchCollection()"
7609
- (rightIconClick)="searchCollection()"
7610
- ></co-input-search>
7611
- <div class="breadcrumbs">
7612
- <co-icon
7613
- [iconData]="iconCacheService.getIcon(icon.HouseBlankRegular)"
7614
- (click)="setRootDisplayTags()"
7615
- ></co-icon>
7616
- <div class="crumbs">
7617
- <span class="spacer" [textContent]="'|'"></span>
7618
- <div class="crumb" *ngFor="let crumb of breadCrumbs; let index = index" (click)="handleCrumbClicked(crumb, index)">
7619
- <span class="spacer" *ngIf="index !== 0" [textContent]="'/'"></span>
7620
- <span [textContent]="crumb.description"></span>
7621
- </div>
7862
+ <div class="form-content-wrapper">
7863
+ <div class="collection-navigation co-small-scrollbar">
7864
+ <span class="title" [textContent]="'Beschikbare tags'"></span>
7865
+ <co-input-search
7866
+ [(model)]="searchString"
7867
+ [placeholder]="'Search for tag name'"
7868
+ (search)="searchCollection()"
7869
+ (modelChange)="searchCollection()"
7870
+ (rightIconClick)="searchCollection()"
7871
+ ></co-input-search>
7872
+ <div class="breadcrumbs">
7873
+ <co-icon
7874
+ [iconData]="iconCacheService.getIcon(icon.HouseBlankRegular)"
7875
+ (click)="setRootDisplayTags()"
7876
+ ></co-icon>
7877
+ <div class="crumbs">
7878
+ <span class="spacer" [textContent]="'|'"></span>
7879
+ <div class="crumb" *ngFor="let crumb of breadCrumbs; let index = index" (click)="handleCrumbClicked(crumb, index)">
7880
+ <span class="spacer" *ngIf="index !== 0" [textContent]="'/'"></span>
7881
+ <span [textContent]="crumb.description"></span>
7622
7882
  </div>
7623
7883
  </div>
7624
- <div class="collection-view"
7625
- cdkDropList
7626
- cdkDropListSortingDisabled
7627
- #collectionList="cdkDropList"
7628
- [cdkDropListData]="displayTags"
7629
- [cdkDropListConnectedTo]="[linkedList]"
7630
- ><div class="collection-item"
7884
+ </div>
7885
+ <div class="collection-view"
7886
+ cdkDropList
7887
+ cdkDropListSortingDisabled
7888
+ #collectionList="cdkDropList"
7889
+ [cdkDropListData]="displayTags"
7890
+ [cdkDropListConnectedTo]="[linkedList]">
7891
+ <div class="collection-item"
7631
7892
  *ngFor="let tag of displayTags"
7632
7893
  cdkDrag
7633
7894
  [cdkDragDisabled]="tag.tagType !== 'T' || linkedTags.includes(tag)"
@@ -7645,68 +7906,73 @@ SimpleTagsComponent.decorators = [
7645
7906
  <co-icon *ngIf="tag.tagType === 'T'" [iconData]="iconCacheService.getIcon(icon.TagRegular)"></co-icon>
7646
7907
  <span [textContent]="tag.description"></span>
7647
7908
  </div>
7648
- </div>
7649
7909
  </div>
7910
+ </div>
7650
7911
 
7651
- <div class="linked-tags-view">
7652
- <span class="title" [textContent]="'Gekoppelde tags'"></span>
7653
- <div class="view-wrapper"
7654
- cdkDropList
7655
- #linkedList="cdkDropList"
7656
- [cdkDropListData]="linkedTags"
7657
- (cdkDropListDropped)="handleAddTag($event)">
7658
- <div class="tag-item" *ngFor="let tag of linkedTags" [cdkDragDisabled]="true" cdkDrag [style.background-color]="tag.color?.replace('0x', '#')">
7659
- <div class="placeholderLinked" *cdkDragPlaceholder></div>
7912
+ <div class="linked-tags-view">
7913
+ <span class="title" [textContent]="'Gekoppelde tags'"></span>
7914
+ <div class="view-wrapper"
7915
+ cdkDropList
7916
+ #linkedList="cdkDropList"
7917
+ [cdkDropListData]="linkedTags"
7918
+ (cdkDropListDropped)="handleAddTag($event)">
7919
+ <div class="tag-item" *ngFor="let tag of linkedTags" [cdkDragDisabled]="true" cdkDrag [style.background-color]="tag.color?.replace('0x', '#')">
7920
+ <div class="placeholderLinked" *cdkDragPlaceholder></div>
7660
7921
 
7661
- <div class="thumbnail-description">
7662
- <co-icon *ngIf="!tag.image?.thumbnailBody" [iconData]="iconCacheService.getIcon(icon.TagRegular)"></co-icon>
7663
- <div *ngIf="tag.image" class="thumbnail-wrapper">
7664
- <img [src]="tag.image.thumbnailBodyAsDataUri">
7665
- </div>
7922
+ <div class="thumbnail-description">
7923
+ <co-icon *ngIf="!tag.image?.thumbnailBody" [iconData]="iconCacheService.getIcon(icon.TagRegular)"></co-icon>
7924
+ <div *ngIf="tag.image" class="thumbnail-wrapper">
7925
+ <img [src]="tag.image.thumbnailBodyAsDataUri">
7926
+ </div>
7666
7927
 
7667
- <div class="description-wrapper">
7668
- <span [textContent]="tag.parentDescription"></span>
7669
- <span class="description" [textContent]="tag.description"></span>
7670
- </div>
7928
+ <div class="description-wrapper">
7929
+ <span [textContent]="tag.parentDescription"></span>
7930
+ <span class="description" [textContent]="tag.description"></span>
7671
7931
  </div>
7672
- <co-icon class="delete-tag" (click)="deleteLinkedTag(tag)"
7673
- [iconData]="iconCacheService.getIcon(icon.XSolid)"
7674
- ></co-icon>
7675
7932
  </div>
7933
+ <co-icon class="delete-tag" (click)="deleteLinkedTag(tag)"
7934
+ [iconData]="iconCacheService.getIcon(icon.XSolid)"
7935
+ ></co-icon>
7676
7936
  </div>
7677
7937
  </div>
7678
7938
  </div>
7679
-
7680
- <ng-template #footerTemplate>
7681
- <div class="co-dialog-footer-button-wrapper">
7682
- <co-button class="save-button"
7683
- [iconData]="iconCacheService.getIcon(icon.CheckDuotone)"
7684
- (click)="handleSaveTags()"
7685
- ></co-button>
7686
- <co-button
7687
- class="close-button"
7688
- [iconData]="iconCacheService.getIcon(icon.CrossSkinny)"
7689
- (click)="closeClick.next()"
7690
- ></co-button>
7691
- </div>
7692
- </ng-template>
7693
- </co-dialog>
7939
+ </div>
7694
7940
  `,
7695
7941
  encapsulation: ViewEncapsulation.None
7696
7942
  },] }
7697
7943
  ];
7698
- SimpleTagsComponent.ctorParameters = () => [
7944
+ SimpleTagsFormComponent.ctorParameters = () => [
7699
7945
  { type: IconCacheService },
7700
7946
  { type: SharedService }
7701
7947
  ];
7702
- SimpleTagsComponent.propDecorators = {
7948
+ SimpleTagsFormComponent.propDecorators = {
7703
7949
  tags: [{ type: Input }],
7704
7950
  linkedTags: [{ type: Input }],
7705
- closeClick: [{ type: Output }],
7706
- saveClick: [{ type: Output }],
7707
- showClass: [{ type: HostBinding, args: ["class.co-simple-tags",] }]
7951
+ linkedTagsChange: [{ type: Output }],
7952
+ showClass: [{ type: HostBinding, args: ["class.co-simple-tags-form",] }]
7708
7953
  };
7709
7954
 
7955
+ class SimpleTagsFormModule {
7956
+ }
7957
+ SimpleTagsFormModule.decorators = [
7958
+ { type: NgModule, args: [{
7959
+ imports: [
7960
+ CommonModule,
7961
+ CoDialogModule,
7962
+ InputSearchModule,
7963
+ IconModule,
7964
+ DragDropModule,
7965
+ ButtonModule
7966
+ ],
7967
+ declarations: [
7968
+ SimpleTagsFormComponent
7969
+ ],
7970
+ exports: [
7971
+ SimpleTagsFormComponent
7972
+ ]
7973
+ },] }
7974
+ ];
7975
+
7710
7976
  class SimpleTagsModule {
7711
7977
  }
7712
7978
  SimpleTagsModule.decorators = [
@@ -7717,7 +7983,8 @@ SimpleTagsModule.decorators = [
7717
7983
  InputSearchModule,
7718
7984
  IconModule,
7719
7985
  DragDropModule,
7720
- ButtonModule
7986
+ ButtonModule,
7987
+ SimpleTagsFormModule
7721
7988
  ],
7722
7989
  declarations: [
7723
7990
  SimpleTagsComponent
@@ -10347,12 +10614,12 @@ class ImageDisplayComponent {
10347
10614
  ImageDisplayComponent.decorators = [
10348
10615
  { type: Component, args: [{
10349
10616
  selector: "co-image-display",
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>
10617
+ template: `
10618
+ <img class="image" *ngIf="!!model" [src]="model">
10619
+ <div class="no-image" *ngIf="!model">
10620
+ <div class="img"></div>
10621
+ <div class="no-image-label" [textContent]="label | localize"></div>
10622
+ </div>
10356
10623
  `,
10357
10624
  providers: [{
10358
10625
  provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
@@ -11145,6 +11412,7 @@ class BaseActivityListComponent {
11145
11412
  this.privateDelegatedActivityListViewModels = [];
11146
11413
  this.filteredActivityListViewModels = [];
11147
11414
  this.filteredDelegatedActivityListViewModels = [];
11415
+ this._showUsergroupActivities = false;
11148
11416
  this._activities = [];
11149
11417
  this._delegatedActivities = [];
11150
11418
  //protected userService: UserService
@@ -11173,9 +11441,10 @@ class BaseActivityListComponent {
11173
11441
  }
11174
11442
  // TODO: return this.userService.showUsergroupActivities and allow to set properly;
11175
11443
  get showUsergroupActivities() {
11176
- return false;
11444
+ return this._showUsergroupActivities;
11177
11445
  }
11178
11446
  set showUsergroupActivities(value) {
11447
+ this._showUsergroupActivities = value;
11179
11448
  }
11180
11449
  ngOnDestroy() {
11181
11450
  clearInterval(this._updateInterval);
@@ -11195,7 +11464,7 @@ class BaseActivityListComponent {
11195
11464
  afterFilterApplied() {
11196
11465
  }
11197
11466
  getTheActivities() {
11198
- //this.getActivities();
11467
+ this.getActivities();
11199
11468
  this.getDelegatedActivities();
11200
11469
  }
11201
11470
  _removeNotShowing(listViewModels) {
@@ -11422,10 +11691,6 @@ var ActivityCfgName;
11422
11691
  ActivityCfgName["WorkedTime"] = "workedTime";
11423
11692
  })(ActivityCfgName || (ActivityCfgName = {}));
11424
11693
 
11425
- function OperationWithValidationCallback(object, object2, object3) {
11426
- return Promise.resolve(new ValidationResult());
11427
- }
11428
-
11429
11694
  var AppPopupButtonType;
11430
11695
  (function (AppPopupButtonType) {
11431
11696
  AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
@@ -11438,13 +11703,13 @@ var AppPopupButtonType;
11438
11703
  })(AppPopupButtonType || (AppPopupButtonType = {}));
11439
11704
 
11440
11705
  class ModifyTaskFormComponent {
11441
- constructor(_boFactory, sharedService
11706
+ constructor(_boFactory, sharedService, iconCacheService
11442
11707
  //private _mediaMonitor: MediaMonitorService,
11443
11708
  /*private _activityService: ActivityService*/
11444
11709
  ) {
11445
11710
  this._boFactory = _boFactory;
11446
11711
  this.sharedService = sharedService;
11447
- this.Icon = Icon;
11712
+ this.iconCacheService = iconCacheService;
11448
11713
  //public readonly TagCategory: typeof TagCategory = TagCategory;
11449
11714
  this.TableNames = TableName$1;
11450
11715
  this.readonly = false;
@@ -11456,6 +11721,7 @@ class ModifyTaskFormComponent {
11456
11721
  this.activities = [];
11457
11722
  this.table = TableName$1.Tasks;
11458
11723
  this.expandActivities = false;
11724
+ this.showTagPopup = false;
11459
11725
  }
11460
11726
  /* @ViewChild(ActivityActivitiesComponent, { static: true })
11461
11727
  public activityActivities: ActivityActivitiesComponent;*/
@@ -11484,6 +11750,7 @@ class ModifyTaskFormComponent {
11484
11750
  }
11485
11751
  ngOnInit() {
11486
11752
  this._getActivities();
11753
+ this._getTags();
11487
11754
  }
11488
11755
  showContent(menu) {
11489
11756
  this.selectedMenu = menu;
@@ -11521,6 +11788,13 @@ class ModifyTaskFormComponent {
11521
11788
  this.expandActivities = true;
11522
11789
  this.showWorkLog.emit();
11523
11790
  }
11791
+ handleEditTags() {
11792
+ this._getTags();
11793
+ this.showTagPopup = true;
11794
+ }
11795
+ handleSaveTags(tags) {
11796
+ this.activity.task.tags = tags;
11797
+ }
11524
11798
  _updateTaskObject(activity, prop) {
11525
11799
  const cloneActivity = this._boFactory.makeWithRawBackendData(Activity, activity);
11526
11800
  if (cloneActivity.isNew) {
@@ -11545,6 +11819,20 @@ class ModifyTaskFormComponent {
11545
11819
  this.activities = yield this.sharedService.getActivities(this.table, this.key.toString());
11546
11820
  });
11547
11821
  }
11822
+ _getTags() {
11823
+ return __awaiter(this, void 0, void 0, function* () {
11824
+ this.allTags = yield this.sharedService.getTagsFullTree(TagCategory.tasks, true);
11825
+ /*if (!this.key) {
11826
+ return;
11827
+ } else {
11828
+ this.editingTags = await this.sharedService.getJoinedTags(this.table, this.key.toString());
11829
+ }*/ /*if (!this.key) {
11830
+ return;
11831
+ } else {
11832
+ this.editingTags = await this.sharedService.getJoinedTags(this.table, this.key.toString());
11833
+ }*/
11834
+ });
11835
+ }
11548
11836
  }
11549
11837
  ModifyTaskFormComponent.decorators = [
11550
11838
  { type: Component, args: [{
@@ -11646,15 +11934,17 @@ ModifyTaskFormComponent.decorators = [
11646
11934
  (activityChange)="activityChange.emit($event)" noBorder
11647
11935
  ></co-notification-summary-block>
11648
11936
 
11649
- <!--TODO implement tags here-->
11650
- <!--<tags
11651
- [(joinedTags)]="activity.task.tags"
11652
- [readonly]="readonly"
11653
- [tagCategory]="TagCategory.tasks"
11654
- [collapseable]="false"
11655
- ></tags>-->
11937
+ <div class="edit-tags-wrapper">
11938
+ <co-simple-tags-form [tags]="allTags"
11939
+ [linkedTags]="activity.task.tags">
11940
+ </co-simple-tags-form>
11941
+ </div>
11942
+ <div class="transaction-tag-wrapper" *ngFor="let tag of activity.task.tags">
11943
+ <div class="tag" [textContent]="tag.description"></div>
11944
+ </div>
11656
11945
  </div>
11657
11946
  </div>
11947
+
11658
11948
  </div>
11659
11949
  `,
11660
11950
  providers: [
@@ -11668,7 +11958,8 @@ ModifyTaskFormComponent.decorators = [
11668
11958
  ];
11669
11959
  ModifyTaskFormComponent.ctorParameters = () => [
11670
11960
  { type: BusinessObjectFactory },
11671
- { type: SharedService }
11961
+ { type: SharedService },
11962
+ { type: IconCacheService$1 }
11672
11963
  ];
11673
11964
  ModifyTaskFormComponent.propDecorators = {
11674
11965
  activity: [{ type: Input }],
@@ -11687,11 +11978,12 @@ __decorate([
11687
11978
  ], ModifyTaskFormComponent.prototype, "forceReadonly", null);
11688
11979
 
11689
11980
  class TaskModifierComponent {
11690
- constructor(_dialogService, _boFactory, _dictionary, iconService) {
11981
+ constructor(_dialogService, _boFactory, _dictionary, iconService, sharedService) {
11691
11982
  this._dialogService = _dialogService;
11692
11983
  this._boFactory = _boFactory;
11693
11984
  this._dictionary = _dictionary;
11694
11985
  this.iconService = iconService;
11986
+ this.sharedService = sharedService;
11695
11987
  this.icons = Icon;
11696
11988
  this.editingComplete = new EventEmitter();
11697
11989
  this.activitySaved = new EventEmitter();
@@ -11756,7 +12048,7 @@ class TaskModifierComponent {
11756
12048
  return __awaiter(this, void 0, void 0, function* () {
11757
12049
  if (this.editActivity) {
11758
12050
  const newActivity = this.editActivity.isNew;
11759
- const result = yield this.upsertActivityOperation(this.editActivity);
12051
+ const result = yield this.sharedService.updateActivity(this.editActivity);
11760
12052
  if (result) {
11761
12053
  this.activitySaved.next(this.editActivity);
11762
12054
  this.editingComplete.next(this.editActivity);
@@ -11803,7 +12095,7 @@ class TaskModifierComponent {
11803
12095
  return __awaiter(this, void 0, void 0, function* () {
11804
12096
  const doDelete = yield this._dialogService.showYesNo("DELETE_TASK", "DELETE_TASK", false);
11805
12097
  if (doDelete.button === AppPopupButtonType.Yes) {
11806
- yield this.deleteActivityOperation(this.editActivity);
12098
+ yield this.sharedService.deleteActivity(this.editActivity);
11807
12099
  this.activityDeleted.next(this.editActivity);
11808
12100
  this.hide();
11809
12101
  }
@@ -11826,7 +12118,7 @@ class TaskModifierComponent {
11826
12118
  return;
11827
12119
  }
11828
12120
  this.showAfterInsert = false;
11829
- yield this.tryLockTaskOperation(activity.task.taskId);
12121
+ yield this.sharedService.lockTask(activity.task.taskId);
11830
12122
  activity.task = activity.task;
11831
12123
  this.currentActivity = activity;
11832
12124
  this._createClone();
@@ -11917,7 +12209,8 @@ TaskModifierComponent.ctorParameters = () => [
11917
12209
  { type: CoreDialogService },
11918
12210
  { type: BusinessObjectFactory },
11919
12211
  { type: DictionaryService },
11920
- { type: IconCacheService }
12212
+ { type: IconCacheService },
12213
+ { type: SharedService }
11921
12214
  ];
11922
12215
  TaskModifierComponent.propDecorators = {
11923
12216
  mainForm: [{ type: ViewChild, args: [FormComponent,] }],
@@ -11927,9 +12220,6 @@ TaskModifierComponent.propDecorators = {
11927
12220
  referenceId: [{ type: Input }],
11928
12221
  userGroupId: [{ type: Input }],
11929
12222
  relationId: [{ type: Input }],
11930
- upsertActivityOperation: [{ type: Input }],
11931
- deleteActivityOperation: [{ type: Input }],
11932
- tryLockTaskOperation: [{ type: Input }],
11933
12223
  createTaskOperation: [{ type: Input }],
11934
12224
  forceReadonly: [{ type: Input }],
11935
12225
  editingComplete: [{ type: Output }],
@@ -11946,9 +12236,14 @@ __decorate([
11946
12236
  ], TaskModifierComponent.prototype, "forceReadonly", void 0);
11947
12237
 
11948
12238
  class BaseActivityOverviewComponent {
11949
- constructor(_dialogService, _dictionaryService) {
12239
+ constructor(_dialogService, _dictionaryService, _sharedService
12240
+ //TODO reinstate when formbuilder is transferred
12241
+ //private _formRepo: FormDalRepository,
12242
+ /*private _router: Router*/
12243
+ ) {
11950
12244
  this._dialogService = _dialogService;
11951
12245
  this._dictionaryService = _dictionaryService;
12246
+ this._sharedService = _sharedService;
11952
12247
  this.icon = Icon;
11953
12248
  this.cfgNames = ActivityCfgName;
11954
12249
  this.taskCfgNames = {
@@ -11963,13 +12258,7 @@ class BaseActivityOverviewComponent {
11963
12258
  tagsHeader: ActivityCfgName.TagsHeader,
11964
12259
  taskInvoice: ActivityCfgName.TaskInvoice
11965
12260
  };
11966
- this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
11967
12261
  this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
11968
- this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
11969
- this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
11970
- this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
11971
- this.fireGenericTriggerOperation = OperationWithValidationCallback;
11972
- this.fireTriggerOperation = OperationWithValidationCallback;
11973
12262
  this.handleOpenLinkSidebar = false;
11974
12263
  this.activityChange = new EventEmitter();
11975
12264
  this.activityDeleted = new EventEmitter();
@@ -12009,7 +12298,7 @@ class BaseActivityOverviewComponent {
12009
12298
  }
12010
12299
  handleGenericTriggerClick(event) {
12011
12300
  return __awaiter(this, void 0, void 0, function* () {
12012
- const result = yield this.fireGenericTriggerOperation(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId);
12301
+ const result = yield this._sharedService.fireGenericTrigger(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId);
12013
12302
  if (result.success) {
12014
12303
  this.genericTriggerFired.next(this.activity);
12015
12304
  }
@@ -12040,13 +12329,13 @@ class BaseActivityOverviewComponent {
12040
12329
  this.showCreateForm = true;*/
12041
12330
  }
12042
12331
  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});
12332
+ if (eventTrigger.toClosedState && !this._sharedService.canFireTrigger(this.activity, this.activity.task)) {
12333
+ yield this.prepareWorkflowOperation({ table: this.workFlow.table, key: this.workFlow.key });
12045
12334
  this.triggerToFireOnSave = eventTrigger;
12046
12335
  this.showTaskFormAndWorkLog();
12047
12336
  return;
12048
- }*/
12049
- const result = yield this.fireTriggerOperation(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId);
12337
+ }
12338
+ const result = yield this._sharedService.fireTrigger(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId);
12050
12339
  if (result.success) {
12051
12340
  this.triggerFired.next(this.activity);
12052
12341
  }
@@ -12186,19 +12475,14 @@ BaseActivityOverviewComponent.decorators = [
12186
12475
  ];
12187
12476
  BaseActivityOverviewComponent.ctorParameters = () => [
12188
12477
  { type: CoreDialogService },
12189
- { type: DictionaryService }
12478
+ { type: DictionaryService },
12479
+ { type: SharedService }
12190
12480
  ];
12191
12481
  BaseActivityOverviewComponent.propDecorators = {
12192
12482
  taskModifier: [{ type: ViewChild, args: [TaskModifierComponent, { static: true },] }],
12193
12483
  viewModel: [{ type: Input }],
12194
12484
  triggerToFireOnSave: [{ type: Input }],
12195
- canFireTriggerOperation: [{ type: Input }],
12196
12485
  prepareWorkflowOperation: [{ type: Input }],
12197
- lockTaskOperation: [{ type: Input }],
12198
- deleteActivityOperation: [{ type: Input }],
12199
- upsertActivityOperation: [{ type: Input }],
12200
- fireGenericTriggerOperation: [{ type: Input }],
12201
- fireTriggerOperation: [{ type: Input }],
12202
12486
  userRelationId: [{ type: Input }],
12203
12487
  userGroupId: [{ type: Input }],
12204
12488
  handleOpenLinkSidebar: [{ type: Input }],
@@ -12253,9 +12537,14 @@ PersonalActivityOverviewComponent.propDecorators = {
12253
12537
  showClass: [{ type: HostBinding, args: ["class.co-personal-activity-overview",] }]
12254
12538
  };
12255
12539
 
12540
+ function OperationWithValidationCallback(object, object2, object3) {
12541
+ return Promise.resolve(new ValidationResult());
12542
+ }
12543
+
12256
12544
  class ComponentActivityListComponent extends BaseActivityListComponent {
12257
- constructor() {
12545
+ constructor(sharedService) {
12258
12546
  super();
12547
+ this.sharedService = sharedService;
12259
12548
  this.tabs = PersonalActivityTabEnum;
12260
12549
  this.icons = Icon;
12261
12550
  this.activityClass = Activity;
@@ -12263,19 +12552,12 @@ class ComponentActivityListComponent extends BaseActivityListComponent {
12263
12552
  this.hideTitle = false;
12264
12553
  this.noFreeTasks = false;
12265
12554
  this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
12266
- this.fireGenericTriggerOperation = OperationWithValidationCallback;
12267
- this.fireTriggerOperation = OperationWithValidationCallback;
12268
- this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
12269
12555
  this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
12270
- this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
12271
- this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
12272
- this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
12273
12556
  this.openLinkClick = new EventEmitter();
12274
12557
  this.amountActivityChanged = new EventEmitter();
12275
12558
  this.linkClicked = new EventEmitter();
12276
12559
  this.formCreated = new EventEmitter();
12277
- this.genericTriggerFired = new EventEmitter();
12278
- this.triggerFired = new EventEmitter();
12560
+ this.refreshRequested = new EventEmitter();
12279
12561
  this.showUsergroupActivitiesChanged = new EventEmitter();
12280
12562
  this.activeTab = PersonalActivityTabEnum.TODO;
12281
12563
  /*public activitySortList: boolean[] = [];*/
@@ -12303,24 +12585,38 @@ class ComponentActivityListComponent extends BaseActivityListComponent {
12303
12585
  trackByFn(index, vm) {
12304
12586
  return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
12305
12587
  }
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
- }*/
12588
+ ngOnInit() {
12589
+ return __awaiter(this, void 0, void 0, function* () {
12590
+ this.getTheActivities();
12591
+ /*this._subs.push(
12592
+ this._appEventService.taskCreated.subscribe(() => {
12593
+ this.getTheActivities();
12594
+ }),
12595
+ this._appEventService.taskModified.subscribe(() => {
12596
+ this.getTheActivities();
12597
+ })
12598
+ );*/
12599
+ });
12600
+ }
12320
12601
  ngOnDestroy() {
12321
- this._subs.forEach(s => s.unsubscribe());
12602
+ //this._subs.forEach(s => s.unsubscribe());
12322
12603
  super.ngOnDestroy();
12323
12604
  }
12605
+ getActivities() {
12606
+ return __awaiter(this, void 0, void 0, function* () {
12607
+ if (this.table && this.key) {
12608
+ const allActivities = yield this.sharedService.getComponentActivitiesWithoutRelationFiltering(this.table, this.key);
12609
+ if (allActivities) {
12610
+ this.activities = this.noFreeTasks ? allActivities.filter(aa => !aa.task && aa.activityType !== ActivityType.WorkflowTask) :
12611
+ allActivities.filter(aa => aa.activityType !== ActivityType.WorkflowTask);
12612
+ }
12613
+ else {
12614
+ this.activities = [];
12615
+ }
12616
+ this.amountActivityChanged.next(this.activities.length);
12617
+ }
12618
+ });
12619
+ }
12324
12620
  set activitiesList(allActivities) {
12325
12621
  this._activitiesList = allActivities;
12326
12622
  if (allActivities) {
@@ -12334,18 +12630,6 @@ class ComponentActivityListComponent extends BaseActivityListComponent {
12334
12630
  get activitiesList() {
12335
12631
  return this._activitiesList;
12336
12632
  }
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
12633
  getDelegatedActivities() {
12350
12634
  return __awaiter(this, void 0, void 0, function* () {
12351
12635
  // const allActivities: Activity[] = await this._activityRepo.getComponentActivities(this.table, this.key);
@@ -12360,10 +12644,12 @@ class ComponentActivityListComponent extends BaseActivityListComponent {
12360
12644
  this.showUsergroupActivitiesChanged.next();
12361
12645
  }
12362
12646
  handleTriggerFired(activity) {
12363
- this.triggerFired.next(activity);
12647
+ this.getTheActivities();
12648
+ this.refreshRequested.emit();
12364
12649
  }
12365
12650
  handleGenericTriggerFired(activity) {
12366
- this.genericTriggerFired.next(activity);
12651
+ this.getTheActivities();
12652
+ this.refreshRequested.emit();
12367
12653
  }
12368
12654
  handleFormCreation() {
12369
12655
  this.formCreated.next();
@@ -12439,15 +12725,9 @@ ComponentActivityListComponent.decorators = [
12439
12725
  [(expanded)]="activityListViewModel.expanded">
12440
12726
  <ng-container *ngFor="let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index">
12441
12727
  <co-component-activity-overview *ngIf="activityViewModel.showing"
12442
- [fireGenericTriggerOperation]="fireGenericTriggerOperation"
12443
- [fireTriggerOperation]="fireTriggerOperation"
12444
- [canFireTriggerOperation]="canFireTriggerOperation"
12445
12728
  [viewModel]="activityViewModel"
12446
12729
  [userRelationId]="relationId"
12447
12730
  [userGroupId]="userGroupId"
12448
- [lockTaskOperation]="lockTaskOperation"
12449
- [deleteActivityOperation]="deleteActivityOperation"
12450
- [upsertActivityOperation]="upsertActivityOperation"
12451
12731
  (activityChange)="handleChangedActivity(index, $event)"
12452
12732
  (activityDeleted)="deleteActivity($event)"
12453
12733
  (genericTriggerFired)="handleGenericTriggerFired($event)"
@@ -12465,9 +12745,6 @@ ComponentActivityListComponent.decorators = [
12465
12745
  [(expanded)]="activityListViewModel.expanded">
12466
12746
  <ng-container *ngFor="let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index">
12467
12747
  <co-component-activity-overview *ngIf="activityViewModel.showing"
12468
- [fireGenericTriggerOperation]="fireGenericTriggerOperation"
12469
- [fireTriggerOperation]="fireTriggerOperation"
12470
- [canFireTriggerOperation]="canFireTriggerOperation"
12471
12748
  [viewModel]="activityViewModel"
12472
12749
  [userRelationId]="relationId"
12473
12750
  [userGroupId]="userGroupId"
@@ -12498,7 +12775,9 @@ ComponentActivityListComponent.decorators = [
12498
12775
  ]
12499
12776
  },] }
12500
12777
  ];
12501
- ComponentActivityListComponent.ctorParameters = () => [];
12778
+ ComponentActivityListComponent.ctorParameters = () => [
12779
+ { type: SharedService }
12780
+ ];
12502
12781
  ComponentActivityListComponent.propDecorators = {
12503
12782
  activityOverviewList: [{ type: ViewChildren, args: [PersonalActivityOverviewComponent,] }],
12504
12783
  showClass: [{ type: HostBinding, args: ["class.co-component-activity-list",] }],
@@ -12510,19 +12789,12 @@ ComponentActivityListComponent.propDecorators = {
12510
12789
  userGroupId: [{ type: Input }],
12511
12790
  relationId: [{ type: Input }],
12512
12791
  componentActivitiesMethod: [{ type: Input }],
12513
- fireGenericTriggerOperation: [{ type: Input }],
12514
- fireTriggerOperation: [{ type: Input }],
12515
- canFireTriggerOperation: [{ type: Input }],
12516
12792
  setHasPausedNotificationsForWorkflowProcessOperation: [{ type: Input }],
12517
- lockTaskOperation: [{ type: Input }],
12518
- deleteActivityOperation: [{ type: Input }],
12519
- upsertActivityOperation: [{ type: Input }],
12520
12793
  openLinkClick: [{ type: Output }],
12521
12794
  amountActivityChanged: [{ type: Output }],
12522
12795
  linkClicked: [{ type: Output }],
12523
12796
  formCreated: [{ type: Output }],
12524
- genericTriggerFired: [{ type: Output }],
12525
- triggerFired: [{ type: Output }],
12797
+ refreshRequested: [{ type: Output }],
12526
12798
  showUsergroupActivitiesChanged: [{ type: Output }],
12527
12799
  activitiesList: [{ type: Input }]
12528
12800
  };
@@ -12550,11 +12822,13 @@ PersonalActivityOverviewModule.decorators = [
12550
12822
  ];
12551
12823
 
12552
12824
  class ComponentActivityOverviewComponent extends BaseActivityOverviewComponent {
12553
- constructor(iconCacheService, dialogService, dictionaryService) {
12554
- super(dialogService, dictionaryService);
12825
+ constructor(iconCacheService, dialogService, dictionaryService, sharedService
12826
+ /*public router: Router*/ ) {
12827
+ super(dialogService, dictionaryService, sharedService /*router*/);
12555
12828
  this.iconCacheService = iconCacheService;
12556
12829
  this.dialogService = dialogService;
12557
12830
  this.dictionaryService = dictionaryService;
12831
+ this.sharedService = sharedService;
12558
12832
  this.Icon = Icon;
12559
12833
  }
12560
12834
  showClass() {
@@ -12634,9 +12908,6 @@ ComponentActivityOverviewComponent.decorators = [
12634
12908
  <co-task-modifier
12635
12909
  [userGroupId]="userGroupId"
12636
12910
  [relationId]="userRelationId"
12637
- [tryLockTaskOperation]="lockTaskOperation"
12638
- [deleteActivityOperation]="deleteActivityOperation"
12639
- [upsertActivityOperation]="upsertActivityOperation"
12640
12911
  (editingComplete)="onSaveActivity($event)"
12641
12912
  (activityDeleted)="onDeleteActivity($event)"
12642
12913
  (showWorkLog)="showTaskFormAndWorkLog()"
@@ -12665,21 +12936,21 @@ ComponentActivityOverviewComponent.decorators = [
12665
12936
  ComponentActivityOverviewComponent.ctorParameters = () => [
12666
12937
  { type: IconCacheService },
12667
12938
  { type: CoreDialogService },
12668
- { type: DictionaryService }
12939
+ { type: DictionaryService },
12940
+ { type: SharedService }
12669
12941
  ];
12670
12942
  ComponentActivityOverviewComponent.propDecorators = {
12671
12943
  showClass: [{ type: HostBinding, args: ["class.co-component-activity-overview",] }]
12672
12944
  };
12673
12945
 
12674
12946
  class BaseActivitySummaryComponent {
12675
- constructor(dictionaryService, dialogService) {
12947
+ constructor(dictionaryService, dialogService, _sharedService) {
12676
12948
  this.dictionaryService = dictionaryService;
12677
12949
  this.dialogService = dialogService;
12950
+ this._sharedService = _sharedService;
12678
12951
  this.expanded = false;
12679
12952
  this.noBorder = false;
12680
12953
  this.readonly = false;
12681
- this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
12682
- this.fireTriggerOperation = OperationWithValidationCallback;
12683
12954
  this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
12684
12955
  this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
12685
12956
  this.activityChange = new EventEmitter();
@@ -12722,14 +12993,14 @@ class BaseActivitySummaryComponent {
12722
12993
  return;
12723
12994
  }
12724
12995
  if (trigger.toClosedState) {
12725
- const canFire = yield this.canFireTriggerOperation({ editActivity: this.editActivity, task: this.editActivity.task });
12996
+ const canFire = this._sharedService.canFireTrigger(this.editActivity, this.editActivity.task);
12726
12997
  if (!canFire) {
12727
12998
  this.triggerToFireOnSave = trigger;
12728
12999
  this.showWorkLog.next();
12729
13000
  return;
12730
13001
  }
12731
13002
  }
12732
- const result = yield this.fireTriggerOperation(trigger, null, null);
13003
+ const result = yield this._sharedService.fireTrigger(this.workFlow.workflowId, this.workFlow.sequence, trigger.triggerId);
12733
13004
  if (result.success) {
12734
13005
  yield this.updateActivityTask(this.editActivity.task);
12735
13006
  yield this.prepareWorkflow();
@@ -12773,7 +13044,8 @@ BaseActivitySummaryComponent.decorators = [
12773
13044
  ];
12774
13045
  BaseActivitySummaryComponent.ctorParameters = () => [
12775
13046
  { type: DictionaryService },
12776
- { type: CoreDialogService }
13047
+ { type: CoreDialogService },
13048
+ { type: SharedService }
12777
13049
  ];
12778
13050
  BaseActivitySummaryComponent.propDecorators = {
12779
13051
  activity: [{ type: Input }],
@@ -12784,8 +13056,6 @@ BaseActivitySummaryComponent.propDecorators = {
12784
13056
  expanded: [{ type: Input }],
12785
13057
  noBorder: [{ type: HostBinding, args: ["class.no-border",] }, { type: Input }],
12786
13058
  readonly: [{ type: Input }],
12787
- canFireTriggerOperation: [{ type: Input }],
12788
- fireTriggerOperation: [{ type: Input }],
12789
13059
  prepareWorkflowOperation: [{ type: Input }],
12790
13060
  loadTaskOperation: [{ type: Input }],
12791
13061
  triggerToFireOnSave: [{ type: Input }],
@@ -12799,11 +13069,12 @@ __decorate([
12799
13069
  ], BaseActivitySummaryComponent.prototype, "noBorder", void 0);
12800
13070
 
12801
13071
  class TaskDetailsComponent extends BaseActivitySummaryComponent {
12802
- constructor(dictionaryService, dialogService, iconCacheService) {
12803
- super(dictionaryService, dialogService);
13072
+ constructor(dictionaryService, dialogService, iconCacheService, sharedService) {
13073
+ super(dictionaryService, dialogService, sharedService);
12804
13074
  this.dictionaryService = dictionaryService;
12805
13075
  this.dialogService = dialogService;
12806
13076
  this.iconCacheService = iconCacheService;
13077
+ this.sharedService = sharedService;
12807
13078
  this.Icon = Icon;
12808
13079
  this.showStatusDropdown = false;
12809
13080
  }
@@ -12887,7 +13158,8 @@ TaskDetailsComponent.decorators = [
12887
13158
  TaskDetailsComponent.ctorParameters = () => [
12888
13159
  { type: DictionaryService },
12889
13160
  { type: CoreDialogService },
12890
- { type: IconCacheService }
13161
+ { type: IconCacheService },
13162
+ { type: SharedService }
12891
13163
  ];
12892
13164
  TaskDetailsComponent.propDecorators = {
12893
13165
  activity: [{ type: Input }],
@@ -13030,11 +13302,12 @@ ActivitySummaryBlockModule.decorators = [
13030
13302
  ];
13031
13303
 
13032
13304
  class StatusSummaryBlockComponent extends BaseActivitySummaryComponent {
13033
- constructor(dictionaryService, dialogService, iconService) {
13034
- super(dictionaryService, dialogService);
13305
+ constructor(dictionaryService, dialogService, iconService, sharedService) {
13306
+ super(dictionaryService, dialogService, sharedService);
13035
13307
  this.dictionaryService = dictionaryService;
13036
13308
  this.dialogService = dialogService;
13037
13309
  this.iconService = iconService;
13310
+ this.sharedService = sharedService;
13038
13311
  this.Icon = Icon;
13039
13312
  }
13040
13313
  showClass() {
@@ -13087,7 +13360,8 @@ StatusSummaryBlockComponent.decorators = [
13087
13360
  StatusSummaryBlockComponent.ctorParameters = () => [
13088
13361
  { type: DictionaryService },
13089
13362
  { type: CoreDialogService },
13090
- { type: IconCacheService }
13363
+ { type: IconCacheService },
13364
+ { type: SharedService }
13091
13365
  ];
13092
13366
  StatusSummaryBlockComponent.propDecorators = {
13093
13367
  showClass: [{ type: HostBinding, args: ["class.co-status-summary-block",] }]
@@ -13115,7 +13389,7 @@ StatusSummaryBlockModule.decorators = [
13115
13389
 
13116
13390
  class CreationSummaryBlockComponent extends BaseActivitySummaryComponent {
13117
13391
  constructor(dictionaryService, dialogService, sharedService, locale) {
13118
- super(dictionaryService, dialogService);
13392
+ super(dictionaryService, dialogService, sharedService);
13119
13393
  this.dictionaryService = dictionaryService;
13120
13394
  this.dialogService = dialogService;
13121
13395
  this.sharedService = sharedService;
@@ -13249,11 +13523,11 @@ var RelationType;
13249
13523
  RelationType["Supervisor"] = "supervisor";
13250
13524
  })(RelationType || (RelationType = {}));
13251
13525
  class ExecutiveSummaryBlockComponent extends BaseActivitySummaryComponent {
13252
- constructor(dictionaryService, dialogService, _sharedService) {
13253
- super(dictionaryService, dialogService);
13526
+ constructor(dictionaryService, dialogService, sharedService) {
13527
+ super(dictionaryService, dialogService, sharedService);
13254
13528
  this.dictionaryService = dictionaryService;
13255
13529
  this.dialogService = dialogService;
13256
- this._sharedService = _sharedService;
13530
+ this.sharedService = sharedService;
13257
13531
  this.RelationType = RelationType;
13258
13532
  this.Icon = Icon;
13259
13533
  this._textSearchParams = new RelationRequest();
@@ -13265,7 +13539,7 @@ class ExecutiveSummaryBlockComponent extends BaseActivitySummaryComponent {
13265
13539
  ngOnInit() {
13266
13540
  return __awaiter(this, void 0, void 0, function* () {
13267
13541
  this._textSearchParams.relationTypeList = [RelationKind.Personnel];
13268
- this._sharedService.getRelationListObjects(this._textSearchParams).then((result) => {
13542
+ this.sharedService.getRelationListObjects(this._textSearchParams).then((result) => {
13269
13543
  this.personnel = result;
13270
13544
  });
13271
13545
  });
@@ -13344,7 +13618,7 @@ class NotificationSummaryBlockComponent extends BaseActivitySummaryComponent {
13344
13618
  constructor(boFactory,
13345
13619
  //public activityService: ActivityService,
13346
13620
  dictionaryService, dialogService, sharedService) {
13347
- super(dictionaryService, dialogService);
13621
+ super(dictionaryService, dialogService, sharedService);
13348
13622
  this.boFactory = boFactory;
13349
13623
  this.dictionaryService = dictionaryService;
13350
13624
  this.dialogService = dialogService;
@@ -13438,7 +13712,11 @@ ModifyTaskFormModule.decorators = [
13438
13712
  StatusSummaryBlockModule,
13439
13713
  CreationSummaryBlockModule,
13440
13714
  NotificationSummaryBlockModule,
13441
- ActivityListModule
13715
+ ActivityListModule,
13716
+ SimpleTagsModule,
13717
+ ButtonModule,
13718
+ CommonModule,
13719
+ SimpleTagsFormModule
13442
13720
  ],
13443
13721
  declarations: [
13444
13722
  ModifyTaskFormComponent
@@ -14338,6 +14616,134 @@ ComponentActivityListModule.decorators = [
14338
14616
  },] }
14339
14617
  ];
14340
14618
 
14619
+ class WorkflowInfoTilesComponent {
14620
+ constructor(iconCacheService, sharedService) {
14621
+ this.iconCacheService = iconCacheService;
14622
+ this.sharedService = sharedService;
14623
+ this.Icon = Icon;
14624
+ this.icons = Icon;
14625
+ this.workflowProcessInfoPerStatusClicked = new EventEmitter();
14626
+ }
14627
+ set workflowCategory(value) {
14628
+ this._workflowCategory = value;
14629
+ this.getWorkflowProcessInfoPerStatusCollection();
14630
+ }
14631
+ showClass() {
14632
+ return true;
14633
+ }
14634
+ ngOnInit() {
14635
+ this.getWorkflowProcessInfoPerStatusCollection();
14636
+ }
14637
+ workflowProcessInfoPerStatusClickedHandler(status) {
14638
+ this.workflowProcessInfoPerStatusClicked.emit(status.statusName);
14639
+ }
14640
+ getWorkflowProcessInfoPerStatusCollection() {
14641
+ if (this._workflowCategory) {
14642
+ this.sharedService.getWorkflowProcessInfoPerStatus(this._workflowCategory).then((result) => {
14643
+ this.WorkflowProcessInfoPerStatusCollection = result;
14644
+ });
14645
+ }
14646
+ }
14647
+ }
14648
+ WorkflowInfoTilesComponent.decorators = [
14649
+ { type: Component, args: [{
14650
+ selector: "co-workflow-info-tiles",
14651
+ template: `
14652
+ <div class="tile-row">
14653
+ <co-workflow-info-tile *ngFor="let workflowProcessInfoPerStatus of WorkflowProcessInfoPerStatusCollection" [workflowProcessInfoPerStatus]="workflowProcessInfoPerStatus"
14654
+ (click)="workflowProcessInfoPerStatusClickedHandler(workflowProcessInfoPerStatus)"></co-workflow-info-tile>
14655
+ </div>
14656
+ `,
14657
+ encapsulation: ViewEncapsulation.None
14658
+ },] }
14659
+ ];
14660
+ WorkflowInfoTilesComponent.ctorParameters = () => [
14661
+ { type: IconCacheService },
14662
+ { type: SharedService }
14663
+ ];
14664
+ WorkflowInfoTilesComponent.propDecorators = {
14665
+ workflowCategory: [{ type: Input }],
14666
+ workflowProcessInfoPerStatusClicked: [{ type: Output }],
14667
+ showClass: [{ type: HostBinding, args: ["class.co-workflow-info-tiles",] }]
14668
+ };
14669
+
14670
+ class WorkflowInfoTileComponent {
14671
+ constructor(iconCacheService, colorService) {
14672
+ this.iconCacheService = iconCacheService;
14673
+ this.colorService = colorService;
14674
+ this.Icon = Icon;
14675
+ }
14676
+ showClass() {
14677
+ return true;
14678
+ }
14679
+ ngOnInit() {
14680
+ this.backgroundColor = this.colorService.GetRandomColorWithSettings([0, 360], [90, 100], [40, 95], [1, 1]);
14681
+ }
14682
+ }
14683
+ WorkflowInfoTileComponent.decorators = [
14684
+ { type: Component, args: [{
14685
+ selector: "co-workflow-info-tile",
14686
+ template: `
14687
+ <div class="top">
14688
+ <div class="tile-row">
14689
+ <label class="status-text" [textContent]="'STATUS' | localize"></label>
14690
+ <co-icon class="corner-icon" [iconData]="iconCacheService.getIcon(Icon.DetailView)" ></co-icon>
14691
+ </div>
14692
+ <label class="name-text" [textContent]="workflowProcessInfoPerStatus.statusName"></label>
14693
+ </div>
14694
+ <div class="bottom">
14695
+ <label class="name-text" [textContent]="workflowProcessInfoPerStatus.workflowProcessCount"></label>
14696
+ </div>
14697
+ `,
14698
+ encapsulation: ViewEncapsulation.None
14699
+ },] }
14700
+ ];
14701
+ WorkflowInfoTileComponent.ctorParameters = () => [
14702
+ { type: IconCacheService },
14703
+ { type: ColorSequenceService }
14704
+ ];
14705
+ WorkflowInfoTileComponent.propDecorators = {
14706
+ workflowProcessInfoPerStatus: [{ type: Input }],
14707
+ showClass: [{ type: HostBinding, args: ["class.co-workflow-info-tile",] }],
14708
+ backgroundColor: [{ type: HostBinding, args: ["style.background-color",] }]
14709
+ };
14710
+
14711
+ class WorkflowInfoTileModule {
14712
+ }
14713
+ WorkflowInfoTileModule.decorators = [
14714
+ { type: NgModule, args: [{
14715
+ imports: [
14716
+ LocalizationModule,
14717
+ IconModule
14718
+ ],
14719
+ declarations: [
14720
+ WorkflowInfoTileComponent
14721
+ ],
14722
+ exports: [
14723
+ WorkflowInfoTileComponent
14724
+ ],
14725
+ providers: []
14726
+ },] }
14727
+ ];
14728
+
14729
+ class WorkflowInfoTilesModule {
14730
+ }
14731
+ WorkflowInfoTilesModule.decorators = [
14732
+ { type: NgModule, args: [{
14733
+ imports: [
14734
+ WorkflowInfoTileModule,
14735
+ CommonModule
14736
+ ],
14737
+ declarations: [
14738
+ WorkflowInfoTilesComponent
14739
+ ],
14740
+ exports: [
14741
+ WorkflowInfoTilesComponent
14742
+ ],
14743
+ providers: []
14744
+ },] }
14745
+ ];
14746
+
14341
14747
  /*
14342
14748
  * Public API Surface of sharedcomponents
14343
14749
  */
@@ -14346,5 +14752,5 @@ ComponentActivityListModule.decorators = [
14346
14752
  * Generated bundle index. Do not edit.
14347
14753
  */
14348
14754
 
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 };
14755
+ export { ActivityListComponent, ActivityListModule, AgendaEvent, AgendaEventPerDay, CalendarView, CoLinearGaugeComponent, CoLinearGaugeModule, ComponentActivityListComponent, ComponentActivityListModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, FilesUploadComponent, FilesUploadModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, SimpleTagsComponent, SimpleTagsFormComponent, SimpleTagsFormModule, SimpleTagsModule, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, WorkflowInfoTilesComponent, WorkflowInfoTilesModule, 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, WorkflowInfoTileModule as ɵeu, WorkflowInfoTileComponent as ɵev, 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 };
14350
14756
  //# sourceMappingURL=colijnit-sharedcomponents.js.map