@colijnit/sharedcomponents 255.1.3 → 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.
@@ -14815,11 +14815,12 @@
14815
14815
  ];
14816
14816
 
14817
14817
  var TaskCreatorComponent = /** @class */ (function () {
14818
- function TaskCreatorComponent(iconService, dictionaryService, sharedService, _dialogService) {
14818
+ function TaskCreatorComponent(iconService, dictionaryService, sharedService, _dialogService, _formMasterService) {
14819
14819
  this.iconService = iconService;
14820
14820
  this.dictionaryService = dictionaryService;
14821
14821
  this.sharedService = sharedService;
14822
14822
  this._dialogService = _dialogService;
14823
+ this._formMasterService = _formMasterService;
14823
14824
  this.icons = exports["ɵbv"];
14824
14825
  this.table = tableName_enum.TableName.Transactions;
14825
14826
  this.activityCreated = new i0.EventEmitter();
@@ -14884,7 +14885,7 @@
14884
14885
  return __generator(this, function (_b) {
14885
14886
  switch (_b.label) {
14886
14887
  case 0:
14887
- this.createForm.submit();
14888
+ this._formMasterService.submitSlaves();
14888
14889
  if (!this.createForm.isValid()) return [3 /*break*/, 2];
14889
14890
  remark = this.createRemark();
14890
14891
  activity = new activity_bo.Activity();
@@ -14923,7 +14924,7 @@
14923
14924
  return __generator(this, function (_b) {
14924
14925
  switch (_b.label) {
14925
14926
  case 0:
14926
- this.createForm.submit();
14927
+ this._formMasterService.submitSlaves();
14927
14928
  if (!this.createForm.isValid()) return [3 /*break*/, 3];
14928
14929
  work = this.createWork();
14929
14930
  activity = new activity_bo.Activity();
@@ -14951,7 +14952,7 @@
14951
14952
  return __generator(this, function (_b) {
14952
14953
  switch (_b.label) {
14953
14954
  case 0:
14954
- this.createForm.submit();
14955
+ this._formMasterService.submitSlaves();
14955
14956
  if (!this.createForm.isValid()) return [3 /*break*/, 3];
14956
14957
  task = this.createTask();
14957
14958
  activity = new activity_bo.Activity();
@@ -15192,14 +15193,18 @@
15192
15193
  TaskCreatorComponent.decorators = [
15193
15194
  { type: i0.Component, args: [{
15194
15195
  selector: "co-task-creator",
15195
- 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()\" [footerTemplate]=\"footerTemplate\">\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 "
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()\" [footerTemplate]=\"footerTemplate\">\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 ",
15197
+ providers: [
15198
+ corecomponents_v12.FormMasterService
15199
+ ]
15196
15200
  },] }
15197
15201
  ];
15198
15202
  TaskCreatorComponent.ctorParameters = function () { return [
15199
15203
  { type: IconCacheService },
15200
15204
  { type: DictionaryService },
15201
15205
  { type: SharedService },
15202
- { type: corecomponents_v12.CoreDialogService }
15206
+ { type: corecomponents_v12.CoreDialogService },
15207
+ { type: corecomponents_v12.FormMasterService }
15203
15208
  ]; };
15204
15209
  TaskCreatorComponent.propDecorators = {
15205
15210
  createForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],