@colijnit/sharedcomponents 255.1.2 → 255.1.4

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.
@@ -9629,7 +9629,7 @@ FileUploadPopupComponent.decorators = [
9629
9629
  template: `
9630
9630
  <co-dialog *ngIf="!useWithoutSettingProps && documentUnderEdit" cssId="popup_files_upload_content"
9631
9631
  [headerTemplate]="headerTemplate" contentSize noClickOutside
9632
- (close)="onPopupClose()">
9632
+ (close)="onPopupClose()" (closeClick)="onPopupCancelClick()">
9633
9633
  <div class="co-dialog-wrapper">
9634
9634
  <div class="file-upload-form-wrapper" fxLayout="column" fxLayoutGap="10px">
9635
9635
  <co-form class="narrow-scrollbar" (validSubmit)="onValidSubmit()">
@@ -11623,6 +11623,14 @@ class ActivityListComponent {
11623
11623
  }
11624
11624
  return false;
11625
11625
  }
11626
+ showEmailHistory(activity) {
11627
+ if ((activity.remark && activity.remark.emailHistory && activity.remark.emailHistory.length > 0) ||
11628
+ (activity.work && activity.work.emailHistory && activity.work.emailHistory.length > 0) ||
11629
+ (activity.task && activity.task.emailHistory && activity.task.emailHistory.length > 0)) {
11630
+ return true;
11631
+ }
11632
+ return false;
11633
+ }
11626
11634
  showWorkedTime(activity) {
11627
11635
  if ((activity.IsWork && activity.work && activity.work.workedTime) ||
11628
11636
  (activity.IsTask && activity.task && activity.task.workedTime)) {
@@ -11669,6 +11677,7 @@ ActivityListComponent.decorators = [
11669
11677
  </div>
11670
11678
  <div class="icon-indicators">
11671
11679
  <co-icon *ngIf="showAttachments(activity)" [iconData]="iconCacheService.getIcon(Icon.PaperclipRegular)" (click)="openActivityPopup(activity)"></co-icon>
11680
+ <co-icon *ngIf="showEmailHistory(activity)" [iconData]="iconCacheService.getIcon(Icon.EmailRegular)"></co-icon>
11672
11681
  <span *ngIf="showAttachments(activity)">{{activity.documents.length}}</span>
11673
11682
  <co-icon *ngIf="showWorkedTime(activity)"
11674
11683
  [iconData]="iconCacheService.getIcon(Icon.ClockRegular)"></co-icon>
@@ -15261,11 +15270,12 @@ WorkflowInfoTilesModule.decorators = [
15261
15270
  ];
15262
15271
 
15263
15272
  class TaskCreatorComponent {
15264
- constructor(iconService, dictionaryService, sharedService, _dialogService) {
15273
+ constructor(iconService, dictionaryService, sharedService, _dialogService, _formMasterService) {
15265
15274
  this.iconService = iconService;
15266
15275
  this.dictionaryService = dictionaryService;
15267
15276
  this.sharedService = sharedService;
15268
15277
  this._dialogService = _dialogService;
15278
+ this._formMasterService = _formMasterService;
15269
15279
  this.icons = Icon;
15270
15280
  this.table = TableName$1.Transactions;
15271
15281
  this.activityCreated = new EventEmitter();
@@ -15310,7 +15320,7 @@ class TaskCreatorComponent {
15310
15320
  }
15311
15321
  createRemarkClicked() {
15312
15322
  return __awaiter(this, void 0, void 0, function* () {
15313
- this.createForm.submit();
15323
+ this._formMasterService.submitSlaves();
15314
15324
  if (this.createForm.isValid()) {
15315
15325
  let remark = this.createRemark();
15316
15326
  let activity = new Activity();
@@ -15339,7 +15349,7 @@ class TaskCreatorComponent {
15339
15349
  }
15340
15350
  createWorkClicked() {
15341
15351
  return __awaiter(this, void 0, void 0, function* () {
15342
- this.createForm.submit();
15352
+ this._formMasterService.submitSlaves();
15343
15353
  if (this.createForm.isValid()) {
15344
15354
  let work = this.createWork();
15345
15355
  let activity = new Activity();
@@ -15356,7 +15366,7 @@ class TaskCreatorComponent {
15356
15366
  }
15357
15367
  createTaskClicked() {
15358
15368
  return __awaiter(this, void 0, void 0, function* () {
15359
- this.createForm.submit();
15369
+ this._formMasterService.submitSlaves();
15360
15370
  if (this.createForm.isValid()) {
15361
15371
  const task = this.createTask();
15362
15372
  let activity = new Activity();
@@ -15601,14 +15611,18 @@ TaskCreatorComponent.decorators = [
15601
15611
  (click)="emailDialogClosed()"></co-button>
15602
15612
  </div>
15603
15613
  </ng-template>
15604
- `
15614
+ `,
15615
+ providers: [
15616
+ FormMasterService
15617
+ ]
15605
15618
  },] }
15606
15619
  ];
15607
15620
  TaskCreatorComponent.ctorParameters = () => [
15608
15621
  { type: IconCacheService },
15609
15622
  { type: DictionaryService },
15610
15623
  { type: SharedService },
15611
- { type: CoreDialogService }
15624
+ { type: CoreDialogService },
15625
+ { type: FormMasterService }
15612
15626
  ];
15613
15627
  TaskCreatorComponent.propDecorators = {
15614
15628
  createForm: [{ type: ViewChild, args: [FormComponent,] }],