@colijnit/sharedcomponents 255.1.5 → 255.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +84 -59
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/file-upload-popup/file-upload-popup.component.js +153 -146
  5. package/esm2015/lib/components/file-upload-popup/file-upload-popup.module.js +4 -3
  6. package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +2 -1
  7. package/esm2015/lib/components/role-email-selector/role-email-selector.component.js +3 -3
  8. package/esm2015/lib/components/stock/localization/translation.js +3 -1
  9. package/esm2015/lib/components/task-creator/task-creator.component.js +74 -40
  10. package/esm2015/lib/enum/icon.enum.js +2 -1
  11. package/esm2015/lib/model/icon-svg.js +2 -1
  12. package/esm2015/lib/service/shared-connector.service.js +8 -11
  13. package/fesm2015/colijnit-sharedcomponents.js +239 -197
  14. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  15. package/lib/components/activity-list/style/_layout.scss +4 -0
  16. package/lib/components/activity-overview-component/style/_layout.scss +35 -5
  17. package/lib/components/file-upload-popup/file-upload-popup.component.d.ts +5 -1
  18. package/lib/components/file-upload-popup/style/_layout.scss +53 -8
  19. package/lib/components/open-activity-list/style/_layout.scss +1 -2
  20. package/lib/components/stock/localization/translation.d.ts +2 -0
  21. package/lib/components/task-creator/style/_layout.scss +11 -8
  22. package/lib/components/task-creator/task-creator.component.d.ts +9 -2
  23. package/lib/enum/icon.enum.d.ts +1 -0
  24. package/package.json +1 -1
@@ -1989,18 +1989,20 @@
1989
1989
  };
1990
1990
  SharedConnectorService.prototype.emailReport = function (emailJob) {
1991
1991
  return __awaiter(this, void 0, void 0, function () {
1992
- var _this = this;
1992
+ var result;
1993
1993
  return __generator(this, function (_a) {
1994
- return [2 /*return*/, new Promise(function (resolve, reject) {
1995
- return _this.mainConnector.emailReport(emailJob).then(function (result) {
1996
- if (result.validationResult && result.validationResult.success) {
1997
- resolve(result.resultObject);
1998
- }
1999
- else {
2000
- reject(result.validationMessagesAsString);
2001
- }
2002
- });
2003
- })];
1994
+ switch (_a.label) {
1995
+ case 0: return [4 /*yield*/, this.mainConnector.emailReport(emailJob)];
1996
+ case 1:
1997
+ result = _a.sent();
1998
+ if (result && result.validationResult && result.validationResult.success) {
1999
+ return [2 /*return*/, Promise.resolve(true)];
2000
+ }
2001
+ else {
2002
+ return [2 /*return*/, Promise.resolve(false)];
2003
+ }
2004
+ return [2 /*return*/];
2005
+ }
2004
2006
  });
2005
2007
  });
2006
2008
  };
@@ -2386,6 +2388,7 @@
2386
2388
  Icon["FileSignatureRegular"] = "file_signature_regular";
2387
2389
  Icon["HouseBlankRegular"] = "house_blank_regular";
2388
2390
  Icon["IoneWorkflow"] = "ione_workflow";
2391
+ Icon["ListUlRegular"] = "list_ul_regular";
2389
2392
  Icon["Lock"] = "lock";
2390
2393
  Icon["MessageSmsRegular"] = "message_sms_regular";
2391
2394
  Icon["MessageSmsSolid"] = "message_sms_solid";
@@ -2449,6 +2452,7 @@
2449
2452
  "file_signature_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M64 464H320c8.8 0 16-7.2 16-16v-6.7l39.8-9.9c2.8-.7 5.6-1.6 8.2-2.7V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3v49.1l-48 48V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zm96-115l-9.8 32.8c-6.1 20.3-24.8 34.2-46 34.2H96c-8.8 0-16-7.2-16-16s7.2-16 16-16h8.2c7.1 0 13.3-4.6 15.3-11.4l14.9-49.5c3.4-11.3 13.8-19.1 25.6-19.1s22.2 7.7 25.6 19.1l11.6 38.6c7.4-6.2 16.8-9.7 26.8-9.7c15.9 0 30.4 9 37.5 23.2l4.4 8.8h25.6l12-48.2c1.4-5.6 4.3-10.8 8.4-14.9L441.1 191.8l71 71L382.9 391.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-1.1 .3-2.1 .4-3.2 .5c-.8 .1-1.5 .2-2.3 .2H256c-6.1 0-11.6-3.4-14.3-8.8l-8.8-17.7c-1.7-3.4-5.1-5.5-8.8-5.5s-7.2 2.1-8.8 5.5l-8.8 17.7c-2.9 5.9-9.2 9.4-15.7 8.8s-12.1-5.1-13.9-11.3L160 349zM549.8 139.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0z\"/></svg>",
2450
2453
  "house_blank_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5V432c0 44.2 35.8 80 80 80H432c44.2 0 80-35.8 80-80V245.5l24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM464 204.8V432c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V204.8L288 55.5 464 204.8z\"/></svg>",
2451
2454
  "ione_workflow": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g display=\"none\"></g><g ><g ><g><g><rect x=\"34.3\" y=\"20\" fill=\"#484F60\" width=\"1.5\" height=\"3.7\"/><g><polygon fill=\"#484F60\" points=\"32,22.8 35,28 38,22.8 \"/></g></g><path fill=\"#484F60\" d=\"M18.5,21.5v7h-7v-7H18.5 M20,20H10v10h10V20L20,20z\"/><path fill=\"#484F60\" d=\"M38.5,11.5v7h-7v-7H38.5 M40,10H30v10h10V10L40,10z\"/><path fill=\"#484F60\" d=\"M38.5,31.5v7h-7v-7H38.5 M40,30H30v10h10V30L40,30z\"/><g><polygon fill=\"#484F60\" points=\"15.8,20 14.3,20 14.3,14.3 23.7,14.3 23.7,15.8 15.8,15.8 \"/><g><polygon fill=\"#484F60\" points=\"22.8,18 28,15 22.8,12 \"/></g></g><g><polygon fill=\"#484F60\" points=\"23.7,35.8 14.3,35.8 14.3,30 15.8,30 15.8,34.3 23.7,34.3 \"/><g><polygon fill=\"#484F60\" points=\"22.8,38 28,35 22.8,32 \"/></g></g></g></g><g display=\"none\"></g></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"></g><g display=\"none\"><g display=\"inline\"><rect y=\"50\" opacity=\"0.25\" fill=\"#FFFFFF\" width=\"50\" height=\"50\"/></g><g display=\"inline\"><g><rect y=\"-45\" opacity=\"0.5\" fill=\"none\" width=\"50\" height=\"45\"/><text transform=\"matrix(1 0 0 1 7.375 -37.9002)\"><tspan x=\"0\" y=\"0\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">Opmaak </tspan><tspan x=\"5.4\" y=\"12\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">item / </tspan><tspan x=\"-1.4\" y=\"24\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">structuur </tspan><tspan x=\"8.1\" y=\"36\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">item </tspan></text></g></g><g display=\"inline\"><g><rect y=\"0\" opacity=\"0.25\" fill=\"#FFFFFF\" width=\"50\" height=\"50\"/><rect y=\"5\" opacity=\"0.5\" fill=\"none\" width=\"50\" height=\"45\"/><text transform=\"matrix(1 0 0 1 5.0054 12.0999)\" font-family=\"'MyriadPro-Regular'\" font-size=\"10px\">Workflow</text></g></g></g></svg>",
2455
+ "list_ul_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M64 64a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm120 8c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM64 384a32 32 0 1 0 0 64 32 32 0 1 0 0-64z\"/></svg>",
2452
2456
  "lock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M22.65,11.67H7.35c-2.82,0-3.07,2.29-3.07,5.12v8.09c0,2.83,.25,5.12,3.07,5.12h15.29c2.81,0,3.07-2.29,3.07-5.12v-8.09c0-2.83-.25-5.12-3.07-5.12Zm-12.42,15.82l2.6-6.32c-1-.7-1.65-1.85-1.65-3.15,0-2.12,1.71-3.84,3.82-3.84s3.82,1.73,3.82,3.84c0,1.31-.65,2.46-1.65,3.15l2.6,6.32H10.22Z\" fill=\"#484f60\"/><path d=\"M19.51,6.64c0-3.6-2.02-4.07-4.51-4.07h0c-2.49,0-4.51,.47-4.51,4.07v3h-2.7v-3C7.79,1.62,11.02,0,15,0h0c3.98,0,7.21,1.62,7.21,6.64v3h-2.7v-3Z\" fill=\"#484f60\"/></g></g></svg>",
2453
2457
  "message_sms_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448-.0004H64c-35.25 0-64 28.75-64 63.1v287.1c0 35.25 28.75 63.1 64 63.1h96v83.98c0 9.836 11.02 15.55 19.12 9.7L304 415.1H448c35.25 0 64-28.75 64-63.1V63.1C512 28.75 483.3-.0004 448-.0004zM464 352c0 8.75-7.25 16-16 16h-160l-80 60v-60H64c-8.75 0-16-7.25-16-16V64c0-8.75 7.25-16 16-16h384c8.75 0 16 7.25 16 16V352zM124.4 192.6C113.6 189.5 103.2 187.2 104.2 181.5c.7813-4.5 10.28-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.375 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34C143.1 147.8 136.5 145.9 130.6 145c-30.69-4.812-53.94 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34C135 239 125.7 241.1 114.3 239.4C107.9 238.4 100.4 235.4 93.38 232.9c-8.375-2.969-16 1.875-18.97 10.19S77.19 261.1 85.5 264.1C92.81 266.8 101.1 269.8 109.4 271C113.7 271.7 117.9 272 121.1 272c24.28 0 41.94-12.03 45.38-32.13C173.1 206.5 141.4 197.5 124.4 192.6zM396.4 192.6C385.6 189.5 375.2 187.2 376.2 181.5c.7813-4.5 10.31-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.406 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34c-6.156-2.125-12.69-4.062-18.59-4.969c-30.75-4.812-53.97 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34c-.7813 4.562-10.12 6.656-21.56 4.938c-6.342-.9883-13.9-3.939-20.88-6.438c-8.375-2.969-16 1.875-18.97 10.19s2.781 17.97 11.09 20.97c7.312 2.656 15.62 5.656 23.88 6.906C385.7 271.7 389.9 272 393.1 272c24.28 0 41.94-12.03 45.38-32.13C445.1 206.5 413.4 197.5 396.4 192.6zM309.1 144.8c-6.469-2.062-13.72 .0625-17.88 5.594L256 197.3L220.8 150.4C216.7 144.9 209.4 142.7 202.9 144.8C196.4 147 192 153.1 192 160v96c0 8.844 7.156 16 16 16S224 264.8 224 256V208l19.19 25.59c6.062 8.062 19.56 8.062 25.62 0L288 208V256c0 8.844 7.156 16 16 16S320 264.8 320 256V160C320 153.1 315.6 147 309.1 144.8z\"/></svg>",
2454
2458
  "message_sms_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M0 64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V416H64c-35.3 0-64-28.7-64-64V64zm202.9 80.8C196.4 147 192 153.1 192 160v96c0 8.8 7.2 16 16 16s16-7.2 16-16V208l19.2 25.6c3 4 7.8 6.4 12.8 6.4s9.8-2.4 12.8-6.4L288 208v48c0 8.8 7.2 16 16 16s16-7.2 16-16V160c0-6.9-4.4-13-10.9-15.2s-13.7 .1-17.9 5.6L256 197.3l-35.2-46.9c-4.1-5.5-11.3-7.8-17.9-5.6zm173.1 38c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.1 .1 12.9 1.4 20.1 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.2-2.2-17.9-4.3-27.9-4.4c-9.3-.1-20.4 1.9-29.7 7.4c-9.9 5.9-18.6 16.4-18.5 31.6c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7-.2-13.5-2.4-22.6-5.5l0 0 0 0c-1.5-.5-3.2-1.1-4.9-1.6c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.2 .4 2.6 .9 4 1.4l0 0 0 0c8.8 3 20.4 7 32.6 7.4c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.2-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4zm-272 0c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.6 .1 16.7 1.6 23.3 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.8-2.4-21.6-4.3-31.1-4.4c-9.3-.1-20.4 1.9-29.7 7.4C80.6 157.3 72 167.8 72 183c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l0 0 1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7.2-.2-14.2-2.6-23.7-5.8l0 0 0 0c-1.3-.4-2.7-.9-4.1-1.4c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.1 .4 2.4 .8 3.6 1.2l0 0 0 0c9 3.1 20.9 7.2 33.2 7.6c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.3-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4z\"/></svg>",
@@ -5530,6 +5534,7 @@
5530
5534
  this.RELATION_ID = 'RELATION_ID';
5531
5535
  this.RELATION_NR = 'RELATION_NR';
5532
5536
  this.REMARK = 'REMARK';
5537
+ this.REPORTS_TO_ATTACH_TO = 'REPORTS_TO_ATTACH_TO';
5533
5538
  this.RESERVED = 'RESERVED';
5534
5539
  this.QUANTITY = 'QUANTITY';
5535
5540
  this.SEARCH = 'SEARCH';
@@ -5546,6 +5551,7 @@
5546
5551
  this.STOCK_STATE = 'STOCK_STATE';
5547
5552
  this.STOCK_STATUS = 'STOCK_STATUS';
5548
5553
  this.SUPPLIER_NUMBER = 'SUPPLIER_NUMBER';
5554
+ this.TITLE = 'TITLE';
5549
5555
  this.TRANSFER = 'TRANSFER';
5550
5556
  this.TRANSFER_STOCK = 'TRANSFER_STOCK';
5551
5557
  this.USER = 'USER';
@@ -9201,9 +9207,17 @@
9201
9207
  var FileUploadPopupComponent = /** @class */ (function () {
9202
9208
  function FileUploadPopupComponent(
9203
9209
  //private _workabilityService: AppWorkabilityService,
9204
- _promptService, _fileTypeImgPipe) {
9210
+ _promptService, _fileTypeImgPipe,
9211
+ //private _userRights: UserRightsService,
9212
+ //private _baseDataRepo: BaseDataDalRepository,
9213
+ //private _tagsRepo: TagsDalRepository,
9214
+ //private _dataService: DataService,
9215
+ //private _toastService: AppToastService
9216
+ iconCacheService) {
9205
9217
  this._promptService = _promptService;
9206
9218
  this._fileTypeImgPipe = _fileTypeImgPipe;
9219
+ this.iconCacheService = iconCacheService;
9220
+ this.icon = exports["ɵbv"];
9207
9221
  this.useWithoutSettingProps = false;
9208
9222
  this.hasPublicAccessVisible = false;
9209
9223
  this.showDocumentReportPicker = true;
@@ -9416,13 +9430,14 @@
9416
9430
  FileUploadPopupComponent.decorators = [
9417
9431
  { type: i0.Component, args: [{
9418
9432
  selector: "co-file-upload-popup",
9419
- template: "\n <co-dialog *ngIf=\"!useWithoutSettingProps && documentUnderEdit\" cssId=\"popup_files_upload_content\"\n [headerTemplate]=\"headerTemplate\" contentSize noClickOutside\n (close)=\"onPopupClose()\" (closeClick)=\"onPopupCancelClick()\">\n <div class=\"co-dialog-wrapper\">\n <div class=\"file-upload-form-wrapper\" fxLayout=\"column\" fxLayoutGap=\"10px\">\n <co-form class=\"narrow-scrollbar\" (validSubmit)=\"onValidSubmit()\">\n <div class=\"horizontal-layout-column\">\n <div class=\"document-thumb column-left\" *ngIf=\"!addDocumentByUrl\">\n <a (click)=\"onPreviewClick()\"><img [src]=\"thumbnail\"/></a>\n </div>\n <div class=\"column-right\">\n <co-input-text\n [model]=\"documentUnderEdit.fileSize\"\n [screenConfigurationObject]=\"documentUnderEdit.isImageDocument() ?\n filesUploadConfigObjects?.ImageDocumentFileSize :\n filesUploadConfigObjects?.TextDocumentFileSize\"\n [placeholder]=\"'SIZE' | localize\"\n forceReadonly\n noValidation>\n </co-input-text>\n <ng-container *ngIf=\"documentUnderEdit.isImageDocument()\">\n <co-input-text [placeholder]=\"'DIMENSIONS' | localize\"\n [model]=\"documentUnderEdit.imageDimensions\"\n [screenConfigurationObject]=\"filesUploadConfigObjects?.ImageDocumentDimensions\"\n forceReadonly noValidation></co-input-text>\n </ng-container>\n <co-input-text\n [(model)]=\"documentUnderEdit.title\"\n [screenConfigurationObject]=\"documentUnderEdit.isImageDocument() ?\n filesUploadConfigObjects?.ImageDocumentTitle :\n filesUploadConfigObjects?.TextDocumentTitle\"\n [placeholder]=\"'TITLE2' | localize\"\n noValidation forceReadonly></co-input-text>\n </div>\n </div>\n\n <div>\n <!--<sc-tags\n [tagCategory]=\"tagCategory\"\n [readonly]=\"docUnderEditIsReadOnly\"-->\n\n <!-- ></sc-tags>--><!-- [myCfgNames]=\"tagsConfigName\" | [(joinedTags)]=\"this.documentUnderEdit.tags\"-->\n </div>\n <!--<div>\n <read-write-access *ngIf=\"showReadWriteAccess\"\n [readWriteCfgNames]=\"filesUploadConfigObjects?.readWriteAccess\"\n [layoutHorizontal]=\"true\"\n [medicalUserGroups]=\"medicalUserGroups\"\n [(userGroupsForWrite)]=\"userGroupsForWrite\"\n [(userGroupsForRead)]=\"userGroupsForRead\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></read-write-access>\n </div>-->\n <!--<div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"addDocumentByUrl\">\n <co-input-text required [placeholder]=\"'URL' | localize\" [(model)]=\"documentUnderEdit.filePath\"\n [readonly]=\"docUnderEditIsReadOnly\"></co-input-text>\n </ng-container>\n </div>-->\n <div class=\"horizontal-layout-column\">\n <div class=\"column-left\">\n <co-input-text [placeholder]=\"'DESCRIPTION' | localize\" [(model)]=\"documentUnderEdit.description\"\n [screenConfigurationObject]=\"documentUnderEdit.isImageDocument() ?\n filesUploadConfigObjects?.ImageDocumentDescription :\n filesUploadConfigObjects?.TextDocumentDescription\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></co-input-text>\n\n </div>\n <!--<div *ngIf=\"hasPublicAccessVisible\" class=\"column-right\">\n <input-switcher-yes-no label=\"PUBLIC_ACCESS\"\n [(model)]=\"documentUnderEdit.hasPublicAccess\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>\n </div>-->\n </div>\n <div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"!documentUnderEdit.isImageDocument()\">\n <div class=\"column-left\">\n <!-- <input-switcher-yes-no label=\"DOWNLOADABLE\"\n [(model)]=\"documentUnderEdit.downloadable\"\n [cfgName]=\"filesUploadConfigObjects?.TextDocumentDownloadable\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>-->\n </div>\n </ng-container>\n </div>\n <div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"fileType === fileTypes.ThreeDFile\">\n <div class=\"column-left\">\n <!-- <input-switcher-yes-no label=\"ALSO_AS_USDZ\"\n [(model)]=\"documentUnderEdit.convertToUSDZ\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>-->\n </div>\n </ng-container>\n </div>\n <div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"documentUnderEdit.isImageDocument()\">\n <div class=\"column-left\"><!--\n <input-switcher-yes-no label=\"ATTACH_TO_NOTIFICATION\"\n [(model)]=\"documentUnderEdit.attachToNotification\"\n [cfgName]=\"filesUploadConfigObjects?.ImageDocumentAttachNotification\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>-->\n </div>\n <div class=\"column-right\"><!--\n <image-type-select\n [cfgName]=\"filesUploadConfigObjects?.ImageDocumentDisplayType\"\n [(selectedModelId)]=\"this.documentUnderEdit.imageDisplayKind\"\n [readonly]=\"docUnderEditIsReadOnly\"\n label=\"DISPLAY_TYPE\"\n ></image-type-select>-->\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"!isWorkability\">\n <!-- <multiple-property-toggler *ngIf=\"!showDocumentReportPicker\"\n [propertyNamesToToggle]=\"documentPublication\"\n [(enableditems)]=\"this.documentUnderEdit.publication\"\n (onPropertyItemChange)=\"handlePropertyChange($event)\"\n label=\"PUBLISH_TO\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></multiple-property-toggler>-->\n <co-multiple-property-toggler *ngIf=\"showDocumentReportPicker\"\n [propertyNamesToToggle]=\"documentEmailReports\"\n [(enableditems)]=\"documentUnderEdit.reports\"\n (onPropertyItemChange)=\"handleReportsPropertyChange($event)\"\n label=\"REPORTS_TO_ATTACH_TO\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></co-multiple-property-toggler>\n\n <!--<ng-container *ngIf=\"documentUnderEdit.isImageDocument()\"\n [templateWrapper]=\"templateImage\"></ng-container>-->\n </div>\n </co-form>\n <div class=\"ok-cancel-buttons\">\n <co-button [disabled]=\"docUnderEditIsReadOnly\" [textContent]=\"'OK' | localize\" (click)=\"onPopupOkClick()\"></co-button>\n <co-button *ngIf=\"hideCancel\" [textContent]=\"'STICKER' | localize\" (click)=\"onPopupCancelClick()\"></co-button>\n </div>\n <!-- <default-ok-cancel-buttons class=\"justify-center\"\n [okDisabled]=\"docUnderEditIsReadOnly\"\n [hideCancel]=\"hideCancel\"\n (okClick)=\"onPopupOkClick()\"\n (cancelClick)=\"onPopupCancelClick()\">\n </default-ok-cancel-buttons>-->\n </div>\n </div>\n </co-dialog>\n <ng-template #headerTemplate>\n <div [textContent]=\"popupHeader | localize\"></div>\n </ng-template>\n <ng-template #templateImage *ngIf=\"!isWorkability\">\n <!-- <div class=\"column-right\">\n <input-lov-multi-select\n [cfgName]=\"filesUploadConfigObjects.ImageDocumentStoreGroups\"\n [(selectedModelIds)]=\"storeGroupIds\"\n [collection]=\"storeGroups\"\n [readonly]=\"docUnderEditIsReadOnly\"\n descriptionField=\"description\"\n doNotLoadCollection\n customWidth\n label=\"RETAIL_FORMULAS\"\n ></input-lov-multi-select>\n </div>-->\n </ng-template>\n ",
9433
+ template: "\n <co-dialog *ngIf=\"!useWithoutSettingProps && documentUnderEdit\" cssId=\"popup_files_upload_content\"\n [headerTemplate]=\"headerTemplate\" contentSize noClickOutside\n [footerTemplate]=\"footerTemplate\"\n (close)=\"onPopupClose()\" (closeClick)=\"onPopupCancelClick()\">\n <div class=\"file-upload-form-wrapper\" fxLayout=\"column\" fxLayoutGap=\"10px\">\n <co-form class=\"narrow-scrollbar\" (validSubmit)=\"onValidSubmit()\">\n <div class=\"horizontal-layout-column\">\n <div class=\"document-thumb column-left\" *ngIf=\"!addDocumentByUrl\">\n <a (click)=\"onPreviewClick()\"><img [src]=\"thumbnail\"/></a>\n </div>\n <div class=\"column-right\">\n <co-input-text\n [(model)]=\"documentUnderEdit.title\"\n [screenConfigurationObject]=\"documentUnderEdit.isImageDocument() ?\n filesUploadConfigObjects?.ImageDocumentTitle :\n filesUploadConfigObjects?.TextDocumentTitle\"\n [placeholder]=\"'TITLE' | localize\"\n noValidation forceReadonly></co-input-text>\n <co-input-text [placeholder]=\"'DESCRIPTION' | localize\" [(model)]=\"documentUnderEdit.description\"\n [screenConfigurationObject]=\"documentUnderEdit.isImageDocument() ?\n filesUploadConfigObjects?.ImageDocumentDescription :\n filesUploadConfigObjects?.TextDocumentDescription\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></co-input-text>\n <div class=\"row sizes\">\n <co-input-text\n [model]=\"documentUnderEdit.fileSize\"\n [screenConfigurationObject]=\"documentUnderEdit.isImageDocument() ?\n filesUploadConfigObjects?.ImageDocumentFileSize :\n filesUploadConfigObjects?.TextDocumentFileSize\"\n [placeholder]=\"'SIZE' | localize\"\n forceReadonly\n noValidation>\n </co-input-text>\n <ng-container *ngIf=\"documentUnderEdit.isImageDocument()\">\n <co-input-text [placeholder]=\"'DIMENSIONS' | localize\"\n [model]=\"documentUnderEdit.imageDimensions\"\n [screenConfigurationObject]=\"filesUploadConfigObjects?.ImageDocumentDimensions\"\n forceReadonly noValidation></co-input-text>\n </ng-container>\n </div>\n </div>\n </div>\n\n <div>\n <!--<sc-tags\n [tagCategory]=\"tagCategory\"\n [readonly]=\"docUnderEditIsReadOnly\"-->\n\n <!-- ></sc-tags>--><!-- [myCfgNames]=\"tagsConfigName\" | [(joinedTags)]=\"this.documentUnderEdit.tags\"-->\n </div>\n <!--<div>\n <read-write-access *ngIf=\"showReadWriteAccess\"\n [readWriteCfgNames]=\"filesUploadConfigObjects?.readWriteAccess\"\n [layoutHorizontal]=\"true\"\n [medicalUserGroups]=\"medicalUserGroups\"\n [(userGroupsForWrite)]=\"userGroupsForWrite\"\n [(userGroupsForRead)]=\"userGroupsForRead\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></read-write-access>\n </div>-->\n <!--<div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"addDocumentByUrl\">\n <co-input-text required [placeholder]=\"'URL' | localize\" [(model)]=\"documentUnderEdit.filePath\"\n [readonly]=\"docUnderEditIsReadOnly\"></co-input-text>\n </ng-container>\n </div>-->\n <div class=\"horizontal-layout-column\">\n <!--<div *ngIf=\"hasPublicAccessVisible\" class=\"column-right\">\n <input-switcher-yes-no label=\"PUBLIC_ACCESS\"\n [(model)]=\"documentUnderEdit.hasPublicAccess\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>\n </div>-->\n </div>\n <div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"!documentUnderEdit.isImageDocument()\">\n <div class=\"column-left\">\n <!-- <input-switcher-yes-no label=\"DOWNLOADABLE\"\n [(model)]=\"documentUnderEdit.downloadable\"\n [cfgName]=\"filesUploadConfigObjects?.TextDocumentDownloadable\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>-->\n </div>\n </ng-container>\n </div>\n <div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"fileType === fileTypes.ThreeDFile\">\n <div class=\"column-left\">\n <!-- <input-switcher-yes-no label=\"ALSO_AS_USDZ\"\n [(model)]=\"documentUnderEdit.convertToUSDZ\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>-->\n </div>\n </ng-container>\n </div>\n <div class=\"horizontal-layout-column\">\n <ng-container *ngIf=\"documentUnderEdit.isImageDocument()\">\n <div class=\"column-left\"><!--\n <input-switcher-yes-no label=\"ATTACH_TO_NOTIFICATION\"\n [(model)]=\"documentUnderEdit.attachToNotification\"\n [cfgName]=\"filesUploadConfigObjects?.ImageDocumentAttachNotification\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></input-switcher-yes-no>-->\n </div>\n <div class=\"column-right\"><!--\n <image-type-select\n [cfgName]=\"filesUploadConfigObjects?.ImageDocumentDisplayType\"\n [(selectedModelId)]=\"this.documentUnderEdit.imageDisplayKind\"\n [readonly]=\"docUnderEditIsReadOnly\"\n label=\"DISPLAY_TYPE\"\n ></image-type-select>-->\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"!isWorkability\">\n <!-- <multiple-property-toggler *ngIf=\"!showDocumentReportPicker\"\n [propertyNamesToToggle]=\"documentPublication\"\n [(enableditems)]=\"this.documentUnderEdit.publication\"\n (onPropertyItemChange)=\"handlePropertyChange($event)\"\n label=\"PUBLISH_TO\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></multiple-property-toggler>\n <co-multiple-property-toggler *ngIf=\"showDocumentReportPicker\"\n [propertyNamesToToggle]=\"documentEmailReports\"\n [(enableditems)]=\"documentUnderEdit.reports\"\n (onPropertyItemChange)=\"handleReportsPropertyChange($event)\"\n label=\"REPORTS_TO_ATTACH_TO\"\n [readonly]=\"docUnderEditIsReadOnly\"\n ></co-multiple-property-toggler>-->\n\n <!--<ng-container *ngIf=\"documentUnderEdit.isImageDocument()\"\n [templateWrapper]=\"templateImage\"></ng-container>-->\n </div>\n </co-form>\n </div>\n </co-dialog>\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"popupHeader | localize\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [disabled]=\"docUnderEditIsReadOnly\" class=\"save-button\"\n (click)=\"onPopupOkClick()\" [iconData]=\"iconCacheService.getIcon(icon.CheckDuotone)\"></co-button>\n <co-button class=\"close-button\"\n (click)=\"onPopupCancelClick()\" [iconData]=\"iconCacheService.getIcon(icon.CrossSkinny)\"></co-button>\n </div>\n </ng-template>\n <ng-template #templateImage *ngIf=\"!isWorkability\">\n <!-- <div class=\"column-right\">\n <input-lov-multi-select\n [cfgName]=\"filesUploadConfigObjects.ImageDocumentStoreGroups\"\n [(selectedModelIds)]=\"storeGroupIds\"\n [collection]=\"storeGroups\"\n [readonly]=\"docUnderEditIsReadOnly\"\n descriptionField=\"description\"\n doNotLoadCollection\n customWidth\n label=\"RETAIL_FORMULAS\"\n ></input-lov-multi-select>\n </div>-->\n </ng-template>\n ",
9420
9434
  encapsulation: i0.ViewEncapsulation.None
9421
9435
  },] }
9422
9436
  ];
9423
9437
  FileUploadPopupComponent.ctorParameters = function () { return [
9424
9438
  { type: corecomponents_v12.PromptService },
9425
- { type: FileTypeImagePipe }
9439
+ { type: FileTypeImagePipe },
9440
+ { type: IconCacheService }
9426
9441
  ]; };
9427
9442
  FileUploadPopupComponent.propDecorators = {
9428
9443
  form: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
@@ -11228,7 +11243,8 @@
11228
11243
  corecomponents_v12.ButtonModule,
11229
11244
  common.CommonModule,
11230
11245
  corecomponents_v12.ScreenConfigurationModule,
11231
- MultiplePropertyTogglerModule
11246
+ MultiplePropertyTogglerModule,
11247
+ corecomponents_v12.IconModule
11232
11248
  ],
11233
11249
  declarations: [
11234
11250
  FileUploadPopupComponent
@@ -11795,6 +11811,7 @@
11795
11811
  this.table = tableName_enum.TableName.Tasks;
11796
11812
  this.expandActivities = false;
11797
11813
  this.showTagPopup = false;
11814
+ this.allTags = [];
11798
11815
  }
11799
11816
  Object.defineProperty(ModifyTaskFormComponent.prototype, "activity", {
11800
11817
  get: function () {
@@ -13681,7 +13698,7 @@
13681
13698
  };
13682
13699
  RoleEmailSelectorComponent.prototype.removeOptionFromModel = function (email) {
13683
13700
  if (this.model.indexOf(email) > -1) {
13684
- this.model.splice(email.indexOf(email), 1);
13701
+ this.model.splice(this.model.indexOf(email), 1);
13685
13702
  }
13686
13703
  };
13687
13704
  return RoleEmailSelectorComponent;
@@ -13689,7 +13706,7 @@
13689
13706
  RoleEmailSelectorComponent.decorators = [
13690
13707
  { type: i0.Component, args: [{
13691
13708
  selector: "co-role-email-selector",
13692
- template: "\n <co-list-of-values [multiselect]=\"false\" [label]=\"recipientLabel | localize\"\n [collection]=\"emailAddressesAvailable\" [displayField]=\"'role'\"\n (modelChange)=\"roleChosen($event)\">\n </co-list-of-values>\n <co-input-text #inp [placeholder]=\"extraLabel | localize\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"addEmail(inp.model)\"></co-input-text>\n\n <div class=\"chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let email of model\">\n <span class=\"chips-description\" [textContent]=\"email\"></span>\n <co-icon class=\"remove-chip-icon\" [iconData]=\"iconService.getIcon(icons.CrossSkinny)\" (click)=\"removeOptionFromModel(email)\"></co-icon>\n </div>\n </div>\n\n "
13709
+ template: "\n <co-list-of-values [multiselect]=\"false\" [label]=\"recipientLabel | localize\"\n [collection]=\"emailAddressesAvailable\" [displayField]=\"'role'\"\n (modelChange)=\"roleChosen($event)\">\n </co-list-of-values>\n <co-input-text #inp [placeholder]=\"extraLabel | localize\"\n [rightIconData]=\"iconService.getIcon(icons.CheckSolid)\"\n (rightIconClick)=\"addEmail(inp.model)\"></co-input-text>\n\n <div class=\"chips-wrapper\">\n <div class=\"chips\" *ngFor=\"let email of model\">\n <span class=\"chips-description\" [textContent]=\"email\"></span>\n <co-icon class=\"remove-chip-icon\" [iconData]=\"iconService.getIcon(icons.CrossSkinny)\" (click)=\"removeOptionFromModel(email)\"></co-icon>\n </div>\n </div>\n\n "
13693
13710
  },] }
13694
13711
  ];
13695
13712
  RoleEmailSelectorComponent.ctorParameters = function () { return [
@@ -14827,14 +14844,17 @@
14827
14844
  this.optionCollection = [
14828
14845
  { icon: this.iconService.getIcon(this.icons.CommentRegular), label: this.dictionaryService.get('REMARK', true) },
14829
14846
  { icon: this.iconService.getIcon(this.icons.PersonDiggingRegular), label: this.dictionaryService.get('WORK', true) },
14830
- { icon: this.iconService.getIcon(this.icons.Task), label: this.dictionaryService.get('TASK', true) },
14847
+ { icon: this.iconService.getIcon(this.icons.ListUlRegular), label: this.dictionaryService.get('TASK', true) },
14831
14848
  ];
14832
14849
  this.showFilesDialog = false;
14833
14850
  this.documents = [];
14851
+ this.oldDocuments = [];
14834
14852
  this.showEmailDialog = false;
14835
14853
  this.senderAddress = '';
14836
14854
  this.emailAddresses = [];
14837
14855
  this.bccEmailAddresses = [];
14856
+ this.oldEmailAddresses = [];
14857
+ this.oldBccEmailAddresses = [];
14838
14858
  this.emailRequest = null;
14839
14859
  this.remarkText = "";
14840
14860
  this.workDescription = "";
@@ -14863,6 +14883,17 @@
14863
14883
  TaskCreatorComponent.prototype.itemSelected = function (item) {
14864
14884
  this.chosenActivityType = item;
14865
14885
  };
14886
+ TaskCreatorComponent.prototype.openAttachmentDialog = function () {
14887
+ this.oldDocuments = this.documents.slice();
14888
+ this.showFilesDialog = true;
14889
+ };
14890
+ TaskCreatorComponent.prototype.attachmentDialogClosed = function () {
14891
+ this.showFilesDialog = false;
14892
+ };
14893
+ TaskCreatorComponent.prototype.attachmentDialogCancelled = function () {
14894
+ this.documents = this.oldDocuments.slice();
14895
+ this.showFilesDialog = false;
14896
+ };
14866
14897
  TaskCreatorComponent.prototype.addedDocument = function (docs) {
14867
14898
  return __awaiter(this, void 0, void 0, function () {
14868
14899
  return __generator(this, function (_a) {
@@ -14879,6 +14910,30 @@
14879
14910
  });
14880
14911
  });
14881
14912
  };
14913
+ TaskCreatorComponent.prototype.openEmailDialog = function () {
14914
+ this.showEmailDialog = true;
14915
+ this.oldEmailAddresses = this.emailAddresses.slice();
14916
+ this.oldBccEmailAddresses = this.bccEmailAddresses.slice();
14917
+ };
14918
+ TaskCreatorComponent.prototype.emailDialogClosed = function () {
14919
+ if (this.emailAddresses.length >= 0) {
14920
+ this.emailRequest = new activityEmailRequestData.activityEmailRequestData;
14921
+ this.emailRequest.table = this.table;
14922
+ this.emailRequest.key = this.remarkAndWorkKey;
14923
+ this.emailRequest.senderAddress = this.senderAddress;
14924
+ this.emailRequest.sendAddresses = this.emailAddresses;
14925
+ this.emailRequest.ccAddresses = this.bccEmailAddresses;
14926
+ }
14927
+ else {
14928
+ this.emailRequest = null;
14929
+ }
14930
+ this.showEmailDialog = false;
14931
+ };
14932
+ TaskCreatorComponent.prototype.emailDialogCancelled = function () {
14933
+ this.emailAddresses = this.oldEmailAddresses.slice();
14934
+ this.bccEmailAddresses = this.oldBccEmailAddresses.slice();
14935
+ this.showEmailDialog = false;
14936
+ };
14882
14937
  TaskCreatorComponent.prototype.createRemarkClicked = function () {
14883
14938
  return __awaiter(this, void 0, void 0, function () {
14884
14939
  var remark, activity, _a;
@@ -14886,7 +14941,7 @@
14886
14941
  switch (_b.label) {
14887
14942
  case 0:
14888
14943
  this._formMasterService.submitSlaves();
14889
- if (!this.createForm.isValid()) return [3 /*break*/, 2];
14944
+ if (!this.createForm.isValid()) return [3 /*break*/, 3];
14890
14945
  remark = this.createRemark();
14891
14946
  activity = new activity_bo.Activity();
14892
14947
  activity.activityType = activityType.ActivityType.Remark;
@@ -14895,29 +14950,16 @@
14895
14950
  return [4 /*yield*/, this.sharedService.insertRemark(activity)];
14896
14951
  case 1:
14897
14952
  _a.createdRemark = _b.sent();
14898
- if (this.createdRemark) {
14899
- this.handleAfterCreation();
14900
- }
14901
- _b.label = 2;
14902
- case 2: return [2 /*return*/];
14953
+ if (!this.createdRemark) return [3 /*break*/, 3];
14954
+ return [4 /*yield*/, this.handleAfterCreation()];
14955
+ case 2:
14956
+ _b.sent();
14957
+ _b.label = 3;
14958
+ case 3: return [2 /*return*/];
14903
14959
  }
14904
14960
  });
14905
14961
  });
14906
14962
  };
14907
- TaskCreatorComponent.prototype.emailDialogClosed = function () {
14908
- if (this.emailAddresses.length >= 0) {
14909
- this.emailRequest = new activityEmailRequestData.activityEmailRequestData;
14910
- this.emailRequest.table = this.table;
14911
- this.emailRequest.key = this.remarkAndWorkKey;
14912
- this.emailRequest.senderAddress = this.senderAddress;
14913
- this.emailRequest.sendAddresses = this.emailAddresses;
14914
- this.emailRequest.ccAddresses = this.bccEmailAddresses;
14915
- }
14916
- else {
14917
- this.emailRequest = null;
14918
- }
14919
- this.showEmailDialog = false;
14920
- };
14921
14963
  TaskCreatorComponent.prototype.createWorkClicked = function () {
14922
14964
  return __awaiter(this, void 0, void 0, function () {
14923
14965
  var work, activity, _a;
@@ -14935,11 +14977,9 @@
14935
14977
  case 1:
14936
14978
  _a.createdWork = _b.sent();
14937
14979
  if (!this.createdWork) return [3 /*break*/, 3];
14938
- this.activityCreated.emit();
14939
- return [4 /*yield*/, this.sendEmailIfNeccesary()];
14980
+ return [4 /*yield*/, this.handleAfterCreation()];
14940
14981
  case 2:
14941
14982
  _b.sent();
14942
- this.clearFields();
14943
14983
  _b.label = 3;
14944
14984
  case 3: return [2 /*return*/];
14945
14985
  }
@@ -14963,11 +15003,9 @@
14963
15003
  case 1:
14964
15004
  _a.createdTask = _b.sent();
14965
15005
  if (!this.createdTask) return [3 /*break*/, 3];
14966
- this.activityCreated.emit();
14967
- return [4 /*yield*/, this.sendEmailIfNeccesary()];
15006
+ return [4 /*yield*/, this.handleAfterCreation()];
14968
15007
  case 2:
14969
15008
  _b.sent();
14970
- this.clearFields();
14971
15009
  _b.label = 3;
14972
15010
  case 3: return [2 /*return*/];
14973
15011
  }
@@ -15082,7 +15120,7 @@
15082
15120
  var emailsSent, history;
15083
15121
  return __generator(this, function (_a) {
15084
15122
  switch (_a.label) {
15085
- case 0: return [4 /*yield*/, this.sharedService.emailViaTemplate(template, this.createEmailAddressString(this.emailAddresses), this.createEmailAddressString(this.bccEmailAddresses), this.senderAddress, this.createEmailSubject(), "", null /*this.createAttachmentsStringArray()*/, this.createEmailParams())];
15123
+ case 0: return [4 /*yield*/, this.sharedService.emailViaTemplate(template, this.createEmailAddressString(this.emailAddresses), this.createEmailAddressString(this.bccEmailAddresses), this.senderAddress, this.createEmailSubject(), "", [], this.createEmailParams())];
15086
15124
  case 1:
15087
15125
  emailsSent = _a.sent();
15088
15126
  if (!emailsSent) return [3 /*break*/, 7];
@@ -15110,19 +15148,6 @@
15110
15148
  });
15111
15149
  });
15112
15150
  };
15113
- TaskCreatorComponent.prototype.registerSentEmails = function () {
15114
- return __awaiter(this, void 0, void 0, function () {
15115
- var history;
15116
- return __generator(this, function (_a) {
15117
- history = new activityEmailHistory_bo.ActivityEmailHistory();
15118
- history.emailAddresses = this.createEmailAddressString(this.emailAddresses) + ';' + this.createEmailAddressString(this.bccEmailAddresses);
15119
- //history.attachments = this.createAttachmentsStringArray();
15120
- history.message = '';
15121
- history.emailDateTime = new Date();
15122
- return [2 /*return*/];
15123
- });
15124
- });
15125
- };
15126
15151
  TaskCreatorComponent.prototype.createEmailAddressString = function (addresses) {
15127
15152
  if (addresses.length === 0) {
15128
15153
  return '';
@@ -15193,7 +15218,7 @@
15193
15218
  TaskCreatorComponent.decorators = [
15194
15219
  { type: i0.Component, args: [{
15195
15220
  selector: "co-task-creator",
15196
- template: "\n <co-form #createForm class=\"input-fields\">\n <co-list-of-icons [collection]=\"optionCollection\" (itemSelected)=\"itemSelected($event)\"></co-list-of-icons>\n <co-input-text *ngIf=\"chosenActivityType === optionCollection[0]\" [required]=\"chosenActivityType === optionCollection[0]\"\n [placeholder]=\"'REMARK' | localize\" [(model)]=\"remarkText\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"createRemarkClicked()\"></co-input-text>\n <co-input-text *ngIf=\"chosenActivityType === optionCollection[1]\" [required]=\"chosenActivityType === optionCollection[1]\"\n [placeholder]=\"'DESCRIPTION' | localize\" [(model)]=\"workDescription\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"createWorkClicked()\"></co-input-text>\n <div class=\"task-input-fields\" *ngIf=\"chosenActivityType === optionCollection[2]\">\n <co-input-text [(model)]=\"taskName\" [placeholder]=\"'NAME' | localize\" [required]=\"chosenActivityType === optionCollection[2]\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"createTaskClicked()\"></co-input-text>\n <co-input-text [(model)]=\"taskDescription\" [placeholder]=\"'DESCRIPTION' | localize\" [required]=\"chosenActivityType === optionCollection[2]\"></co-input-text>\n </div>\n </co-form>\n <div class=\"extras-buttons\">\n <co-button [iconData]=\"iconService.getIcon(icons.EmailRegular)\" (click)=\"showEmailDialog = true\"></co-button>\n <co-button [iconData]=\"iconService.getIcon(icons.PaperclipRegular)\" (click)=\"showFilesDialog = true\"\n [label]=\"documents.length === 0 ? '' : documents.length.toString()\" ></co-button>\n </div>\n\n <co-dialog *ngIf=\"showFilesDialog\" (closeClick)=\"showFilesDialog = false\">\n <co-files-upload (documentsAdded)=\"addedDocument($event)\" (documentDeleted)=\"deletedDocument\"\n [documents]=\"documents\" [useWithoutSettingProps]=\"true\"></co-files-upload>\n </co-dialog>\n <co-dialog *ngIf=\"showEmailDialog\" (closeClick)=\"emailDialogClosed()\"\n [footerTemplate]=\"footerTemplate\"\n [headerTemplate]=\"headerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconService.getIcon(icons.EmailRegular)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'SEND_EMAIL' | localize\"></div>\n </div>\n </ng-template>\n <co-role-email-selector [(model)]=\"emailAddresses\" [key]=\"remarkAndWorkKey\" [workflowCategoryType]=\"workflowCategoryType\"></co-role-email-selector>\n <co-role-email-selector [(model)]=\"bccEmailAddresses\" [key]=\"remarkAndWorkKey\" [workflowCategoryType]=\"workflowCategoryType\" [recipientLabel]=\"'BCC_RECIPIENT'\" [extraLabel]=\"'BCC_EXTRA_EMAIL_ADDRESSES'\"></co-role-email-selector>\n <!--TODO: reimplement once we have the backend functionality for this-->\n <!--<co-input-text [readonly]=\"false\" [label]=\"'SENDER' | localize\" [(model)]=\"senderAddress\"></co-input-text>-->\n\n </co-dialog>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconService.getIcon(icons.CheckDuotone)\"\n (click)=\"emailDialogClosed()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconService.getIcon(icons.CrossSkinny)\"\n (click)=\"emailDialogClosed()\"></co-button>\n </div>\n </ng-template>\n ",
15221
+ template: "\n <co-form #createForm class=\"input-fields\">\n <co-list-of-icons [collection]=\"optionCollection\" (itemSelected)=\"itemSelected($event)\"></co-list-of-icons>\n <co-input-text *ngIf=\"chosenActivityType === optionCollection[0]\" [required]=\"chosenActivityType === optionCollection[0]\"\n [placeholder]=\"'REMARK' | localize\" [(model)]=\"remarkText\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"createRemarkClicked()\"></co-input-text>\n <co-input-text *ngIf=\"chosenActivityType === optionCollection[1]\" [required]=\"chosenActivityType === optionCollection[1]\"\n [placeholder]=\"'DESCRIPTION' | localize\" [(model)]=\"workDescription\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"createWorkClicked()\"></co-input-text>\n <div class=\"task-input-fields\" *ngIf=\"chosenActivityType === optionCollection[2]\">\n <co-input-text [(model)]=\"taskName\" [placeholder]=\"'NAME' | localize\" [required]=\"chosenActivityType === optionCollection[2]\"\n [rightIconData]=\"iconService.getIcon(icons.PaperPlaneTopSolid)\"\n (rightIconClick)=\"createTaskClicked()\"></co-input-text>\n <co-input-text [(model)]=\"taskDescription\" [placeholder]=\"'DESCRIPTION' | localize\" [required]=\"chosenActivityType === optionCollection[2]\"></co-input-text>\n </div>\n </co-form>\n <div class=\"extras-buttons\">\n <co-button [iconData]=\"iconService.getIcon(icons.EmailRegular)\" (click)=\"openEmailDialog()\"></co-button>\n <co-button [iconData]=\"iconService.getIcon(icons.PaperclipRegular)\" (click)=\"openAttachmentDialog()\"\n [label]=\"documents.length === 0 ? '' : documents.length.toString()\" ></co-button>\n </div>\n\n <co-dialog *ngIf=\"showFilesDialog\" (closeClick)=\"attachmentDialogCancelled()\"\n [headerTemplate]=\"attachmentHeaderTemplate\"\n [footerTemplate]=\"attachmentFooterTemplate\">\n\n <ng-template #attachmentHeaderTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconService.getIcon(icons.PaperclipRegular)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'ATTACHMENTS' | localize\"></div>\n </div>\n </ng-template>\n <co-files-upload (documentsAdded)=\"addedDocument($event)\" (documentDeleted)=\"deletedDocument\"\n [documents]=\"documents\" [useWithoutSettingProps]=\"true\"></co-files-upload>\n </co-dialog>\n\n\n <ng-template #attachmentFooterTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconService.getIcon(icons.CheckDuotone)\"\n (click)=\"attachmentDialogClosed()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconService.getIcon(icons.CrossSkinny)\"\n (click)=\"attachmentDialogCancelled()\"></co-button>\n </div>\n </ng-template>\n\n\n <co-dialog *ngIf=\"showEmailDialog\" (closeClick)=\"emailDialogClosed()\"\n [footerTemplate]=\"emailFooterTemplate\"\n [headerTemplate]=\"emailheaderTemplate\">\n <ng-template #emailheaderTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconService.getIcon(icons.EmailRegular)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'SEND_EMAIL' | localize\"></div>\n </div>\n </ng-template>\n <co-role-email-selector [(model)]=\"emailAddresses\" [key]=\"remarkAndWorkKey\" [workflowCategoryType]=\"workflowCategoryType\"></co-role-email-selector>\n <co-role-email-selector [(model)]=\"bccEmailAddresses\" [key]=\"remarkAndWorkKey\" [workflowCategoryType]=\"workflowCategoryType\" [recipientLabel]=\"'BCC_RECIPIENT'\" [extraLabel]=\"'BCC_EXTRA_EMAIL_ADDRESSES'\"></co-role-email-selector>\n <!--TODO: reimplement once we have the backend functionality for this-->\n <!--<co-input-text [readonly]=\"false\" [label]=\"'SENDER' | localize\" [(model)]=\"senderAddress\"></co-input-text>-->\n\n </co-dialog>\n\n <ng-template #emailFooterTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconService.getIcon(icons.CheckDuotone)\"\n (click)=\"emailDialogClosed()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconService.getIcon(icons.CrossSkinny)\"\n (click)=\"emailDialogCancelled()\"></co-button>\n </div>\n </ng-template>\n ",
15197
15222
  providers: [
15198
15223
  corecomponents_v12.FormMasterService
15199
15224
  ]