@colijnit/sharedcomponents 260.1.6 → 260.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.
@@ -17545,69 +17545,69 @@ class TaskCreatorComponent {
17545
17545
  TaskCreatorComponent.decorators = [
17546
17546
  { type: Component, args: [{
17547
17547
  selector: "co-task-creator",
17548
- template: `
17549
- <div class="task-creator-wrapper">
17550
- <div class="top-rows">
17551
- <co-email-selector [(emailAddresses)]="emailAddresses" [(bccEmailAddresses)]="bccEmailAddresses" *ngIf="allowEmailing"
17552
- [key]="remarkAndWorkKey" [workflowCategoryType]="workflowCategoryType"></co-email-selector>
17553
- <co-form #createForm class="creator-remarks input-fields">
17554
- <co-list-of-icons [collection]="optionCollection" (itemSelected)="itemSelected($event)"></co-list-of-icons>
17555
- <co-input-textarea *ngIf="chosenActivityType === remarkListItem"
17556
- [required]="chosenActivityType === remarkListItem"
17557
- [placeholder]="'REMARK' | sharedLocalize" [(model)]="remarkText"
17558
- class="large-remark"></co-input-textarea>
17559
- <co-input-textarea *ngIf="chosenActivityType === workListItem"
17560
- [required]="chosenActivityType === workListItem"
17561
- [placeholder]="'DESCRIPTION' | sharedLocalize" [(model)]="workDescription"
17562
- class="large-remark"></co-input-textarea>
17563
- <div class="task-input-fields" *ngIf="chosenActivityType === taskListItem">
17564
- <co-input-text [(model)]="taskName" [placeholder]="'NAME' | sharedLocalize"
17565
- [required]="chosenActivityType === taskListItem"></co-input-text>
17566
- <co-input-textarea [(model)]="taskDescription" [placeholder]="'DESCRIPTION' | sharedLocalize"
17567
- class="large-remark"
17568
- [required]="chosenActivityType === taskListItem"></co-input-textarea>
17569
- </div>
17570
- </co-form>
17571
- </div>
17572
- <div class="extras-buttons">
17573
- <co-button [iconData]="iconService.getIcon(icons.PaperclipRegular)" (click)="openAttachmentDialog()"
17574
- [label]="documents.length === 0 ? '' : documents.length.toString()"></co-button>
17575
- <co-button *ngIf="chosenActivityType === remarkListItem"
17576
- [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
17577
- (click)="createRemarkClicked()"></co-button>
17578
- <co-button *ngIf="chosenActivityType === workListItem"
17579
- [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
17580
- (click)="createWorkClicked()"></co-button>
17581
- <co-button *ngIf="chosenActivityType === taskListItem"
17582
- [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
17583
- (click)="createTaskClicked()"></co-button>
17584
- </div>
17585
- </div>
17586
- <co-dialog *ngIf="showFilesDialog" (closeClick)="attachmentDialogCancelled()"
17587
- [headerTemplate]="attachmentHeaderTemplate"
17588
- [footerTemplate]="attachmentFooterTemplate">
17589
-
17590
- <ng-template #attachmentHeaderTemplate>
17591
- <div class="co-dialog-wrapper-popup-title">
17592
- <co-icon [iconData]="iconService.getIcon(icons.PaperclipRegular)"></co-icon>
17593
- <div class="co-dialog-header-title" [textContent]="'ATTACHMENTS' | sharedLocalize"></div>
17594
- </div>
17595
- </ng-template>
17596
- <co-files-upload (documentsAdded)="addedDocument($event)" (documentDeleted)="deletedDocument"
17597
- [documents]="documents" [useWithoutSettingProps]="true"></co-files-upload>
17598
- </co-dialog>
17599
-
17600
-
17601
- <ng-template #attachmentFooterTemplate>
17602
- <div class="co-dialog-footer-button-wrapper">
17603
- <co-button class="save-button"
17604
- [iconData]="iconService.getIcon(icons.CheckDuotone)"
17605
- (click)="attachmentDialogClosed()"></co-button>
17606
- <co-button class="close-button"
17607
- [iconData]="iconService.getIcon(icons.CrossSkinny)"
17608
- (click)="attachmentDialogCancelled()"></co-button>
17609
- </div>
17610
- </ng-template>
17548
+ template: `
17549
+ <div class="task-creator-wrapper">
17550
+ <div class="top-rows">
17551
+ <co-email-selector [(emailAddresses)]="emailAddresses" [(bccEmailAddresses)]="bccEmailAddresses" *ngIf="allowEmailing"
17552
+ [key]="remarkAndWorkKey" [workflowCategoryType]="workflowCategoryType"></co-email-selector>
17553
+ <co-form #createForm class="creator-remarks input-fields">
17554
+ <co-list-of-icons [collection]="optionCollection" (itemSelected)="itemSelected($event)"></co-list-of-icons>
17555
+ <co-input-textarea *ngIf="chosenActivityType === remarkListItem"
17556
+ [required]="chosenActivityType === remarkListItem"
17557
+ [placeholder]="'REMARK' | sharedLocalize" [(model)]="remarkText"
17558
+ class="large-remark"></co-input-textarea>
17559
+ <co-input-textarea *ngIf="chosenActivityType === workListItem"
17560
+ [required]="chosenActivityType === workListItem"
17561
+ [placeholder]="'DESCRIPTION' | sharedLocalize" [(model)]="workDescription"
17562
+ class="large-remark"></co-input-textarea>
17563
+ <div class="task-input-fields" *ngIf="chosenActivityType === taskListItem">
17564
+ <co-input-text [(model)]="taskName" [placeholder]="'NAME' | sharedLocalize"
17565
+ [required]="chosenActivityType === taskListItem"></co-input-text>
17566
+ <co-input-textarea [(model)]="taskDescription" [placeholder]="'DESCRIPTION' | sharedLocalize"
17567
+ class="large-remark"
17568
+ [required]="chosenActivityType === taskListItem"></co-input-textarea>
17569
+ </div>
17570
+ </co-form>
17571
+ </div>
17572
+ <div class="extras-buttons">
17573
+ <co-button [iconData]="iconService.getIcon(icons.PaperclipRegular)" (click)="openAttachmentDialog()"
17574
+ [label]="documents.length === 0 ? '' : documents.length.toString()"></co-button>
17575
+ <co-button *ngIf="chosenActivityType === remarkListItem"
17576
+ [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
17577
+ (click)="createRemarkClicked()"></co-button>
17578
+ <co-button *ngIf="chosenActivityType === workListItem"
17579
+ [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
17580
+ (click)="createWorkClicked()"></co-button>
17581
+ <co-button *ngIf="chosenActivityType === taskListItem"
17582
+ [iconData]="iconService.getIcon(icons.PaperPlaneTopSolid)"
17583
+ (click)="createTaskClicked()"></co-button>
17584
+ </div>
17585
+ </div>
17586
+ <co-dialog *ngIf="showFilesDialog" (closeClick)="attachmentDialogCancelled()"
17587
+ [headerTemplate]="attachmentHeaderTemplate"
17588
+ [footerTemplate]="attachmentFooterTemplate">
17589
+
17590
+ <ng-template #attachmentHeaderTemplate>
17591
+ <div class="co-dialog-wrapper-popup-title">
17592
+ <co-icon [iconData]="iconService.getIcon(icons.PaperclipRegular)"></co-icon>
17593
+ <div class="co-dialog-header-title" [textContent]="'ATTACHMENTS' | sharedLocalize"></div>
17594
+ </div>
17595
+ </ng-template>
17596
+ <co-files-upload (documentsAdded)="addedDocument($event)" (documentDeleted)="deletedDocument"
17597
+ [documents]="documents" [useWithoutSettingProps]="true"></co-files-upload>
17598
+ </co-dialog>
17599
+
17600
+
17601
+ <ng-template #attachmentFooterTemplate>
17602
+ <div class="co-dialog-footer-button-wrapper">
17603
+ <co-button class="save-button"
17604
+ [iconData]="iconService.getIcon(icons.CheckDuotone)"
17605
+ (click)="attachmentDialogClosed()"></co-button>
17606
+ <co-button class="close-button"
17607
+ [iconData]="iconService.getIcon(icons.CrossSkinny)"
17608
+ (click)="attachmentDialogCancelled()"></co-button>
17609
+ </div>
17610
+ </ng-template>
17611
17611
  `,
17612
17612
  providers: [
17613
17613
  FormMasterService,
@@ -17950,12 +17950,11 @@ var UserFormMode;
17950
17950
  })(UserFormMode || (UserFormMode = {}));
17951
17951
 
17952
17952
  class FormBuilderUserFormComponent {
17953
- constructor(_detectorRef, _boFactory, _changeDetectorRef, _sharedConnectorService, _promptService, iconCacheService) {
17953
+ constructor(_detectorRef, _boFactory, _changeDetectorRef, _sharedConnectorService, iconCacheService) {
17954
17954
  this._detectorRef = _detectorRef;
17955
17955
  this._boFactory = _boFactory;
17956
17956
  this._changeDetectorRef = _changeDetectorRef;
17957
17957
  this._sharedConnectorService = _sharedConnectorService;
17958
- this._promptService = _promptService;
17959
17958
  this.iconCacheService = iconCacheService;
17960
17959
  this.formQuestionType = FormQuestionType;
17961
17960
  this.TableName = TableName$1;
@@ -17965,6 +17964,7 @@ class FormBuilderUserFormComponent {
17965
17964
  this.showPopup = false;
17966
17965
  this.readonly = false;
17967
17966
  this.enableQuestions = true;
17967
+ this.objectId = 0;
17968
17968
  this.cancelForm = new EventEmitter();
17969
17969
  this.saveForm = new EventEmitter();
17970
17970
  this.definitiveChange = new EventEmitter();
@@ -18118,7 +18118,7 @@ class FormBuilderUserFormComponent {
18118
18118
  }
18119
18119
  handleDefinitiveChange(definitive) {
18120
18120
  this.formResponse.isFinal = definitive;
18121
- this.definitiveChange.next(definitive);
18121
+ this.definitiveChange.next({ value: definitive, id: this.objectId });
18122
18122
  }
18123
18123
  commitUserForm() {
18124
18124
  FormUtils.MergeResponseWithForm(this.cloneForm, this.formResponse);
@@ -18208,7 +18208,7 @@ FormBuilderUserFormComponent.decorators = [
18208
18208
  <co-list-of-values *ngSwitchCase="formQuestionType.DropDownList"
18209
18209
  [model]="question.responseQuestion"
18210
18210
  [collection]="question.formQuestionAnswers"
18211
- [displayField]="'answer'"
18211
+ [displayField]="'response'"
18212
18212
  [required]="question.mandatory"
18213
18213
  [readonly]="readonly"
18214
18214
  [disabled]="question.disabled && index !== 0"
@@ -18240,8 +18240,6 @@ FormBuilderUserFormComponent.decorators = [
18240
18240
  ></co-input-time>
18241
18241
  </div>
18242
18242
  </div>
18243
- <div class="goto-question" *ngIf="question === activeQuestion && gotoQuestion"
18244
- [textContent]="('GOTO_NEXT_QUESTION' | sharedLocalize) + ' ' + gotoQuestion"></div>
18245
18243
  </ng-container>
18246
18244
  </co-form>
18247
18245
  </div>
@@ -18262,9 +18260,8 @@ FormBuilderUserFormComponent.decorators = [
18262
18260
  <div class="footer-wrapper">
18263
18261
  <div class="attachments-wrapper">
18264
18262
  <div class="row">
18265
- <co-icon [iconData]="iconCacheService.getIcon(icons.PaperclipRegular)" (click)="handleOpenFilesUpload()"></co-icon>
18266
- <input type="file" accept="image/*" capture="environment">
18267
- <co-files-upload #filesUploadComponent [documents]="formResponse.documents" class="co-files-upload"></co-files-upload>
18263
+ <input type="file" accept="image/*" capture="environment" (change)="handleDocumentsAdded($event)">
18264
+ <co-files-upload #filesUploadComponent [documents]="formResponse.documents" (documentsAdded)="handleDocumentsAdded($event)" (documentChangeEvent)="handleDocumentChanged($event)" class="co-files-upload"></co-files-upload>
18268
18265
  </div>
18269
18266
  </div>
18270
18267
  <div class="row">
@@ -18284,7 +18281,6 @@ FormBuilderUserFormComponent.ctorParameters = () => [
18284
18281
  { type: BusinessObjectFactory },
18285
18282
  { type: ChangeDetectorRef },
18286
18283
  { type: SharedConnectorService },
18287
- { type: PromptService },
18288
18284
  { type: IconCacheService }
18289
18285
  ];
18290
18286
  FormBuilderUserFormComponent.propDecorators = {
@@ -18296,6 +18292,7 @@ FormBuilderUserFormComponent.propDecorators = {
18296
18292
  key: [{ type: Input }],
18297
18293
  readonly: [{ type: Input }],
18298
18294
  enableQuestions: [{ type: Input }],
18295
+ objectId: [{ type: Input }],
18299
18296
  cancelForm: [{ type: Output }],
18300
18297
  saveForm: [{ type: Output }],
18301
18298
  definitiveChange: [{ type: Output }],