arco-support-request 0.1.5 → 0.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 (76) hide show
  1. package/README.md +6 -6
  2. package/esm2020/lib/entity-type-setup/activities-create/activities-create.component.mjs +1 -4
  3. package/esm2020/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.mjs +9 -3
  4. package/esm2020/lib/entity-type-setup/service/entity-type-setup.service.mjs +16 -3
  5. package/esm2020/lib/support-request/case-list/case-list.component.mjs +20 -7
  6. package/esm2020/lib/support-request/create-form/create-form.component.mjs +225 -0
  7. package/esm2020/lib/support-request/request-flow/request-flow.component.mjs +102 -18
  8. package/esm2020/lib/support-request/self-service-flow/self-service-flow.component.mjs +8 -4
  9. package/esm2020/lib/support-request/sendemail/sendemail.component.mjs +72 -0
  10. package/esm2020/lib/support-request/support-request-create/support-request-create.component.mjs +3 -3
  11. package/esm2020/lib/support-request/support-request-details/support-request-details.component.mjs +66 -9
  12. package/esm2020/lib/support-request/support-request-index/support-request-index.component.mjs +1 -1
  13. package/esm2020/lib/support-request/support-request.module.mjs +9 -3
  14. package/esm2020/lib/support-request/support-request.service.mjs +15 -2
  15. package/fesm2015/arco-support-request.mjs +1430 -965
  16. package/fesm2015/arco-support-request.mjs.map +1 -1
  17. package/fesm2020/arco-support-request.mjs +1422 -957
  18. package/fesm2020/arco-support-request.mjs.map +1 -1
  19. package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +3 -2
  20. package/lib/support-request/case-list/case-list.component.d.ts +3 -1
  21. package/lib/support-request/create-form/create-form.component.d.ts +56 -0
  22. package/lib/support-request/request-flow/request-flow.component.d.ts +26 -4
  23. package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +3 -1
  24. package/lib/support-request/sendemail/sendemail.component.d.ts +24 -0
  25. package/lib/support-request/support-request-details/support-request-details.component.d.ts +25 -1
  26. package/lib/support-request/support-request.module.d.ts +15 -13
  27. package/lib/support-request/support-request.service.d.ts +2 -1
  28. package/package.json +1 -1
  29. package/arco-support-request.d.ts.map +0 -1
  30. package/lib/Pipe/allpipe.pipe.d.ts.map +0 -1
  31. package/lib/Pipe/translate.pipe.d.ts.map +0 -1
  32. package/lib/arco-support-request.component.d.ts.map +0 -1
  33. package/lib/arco-support-request.module.d.ts.map +0 -1
  34. package/lib/arco-support-request.service.d.ts.map +0 -1
  35. package/lib/core/global.service.d.ts.map +0 -1
  36. package/lib/core/handlebar-helper-register.d.ts.map +0 -1
  37. package/lib/core/static/jwt.d.ts.map +0 -1
  38. package/lib/entity-type-setup/activities-create/activities-create.component.d.ts.map +0 -1
  39. package/lib/entity-type-setup/activities-view/activities-view.component.d.ts.map +0 -1
  40. package/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.d.ts.map +0 -1
  41. package/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.d.ts.map +0 -1
  42. package/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.d.ts.map +0 -1
  43. package/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.d.ts.map +0 -1
  44. package/lib/entity-type-setup/interface/entityTypeInterface.d.ts.map +0 -1
  45. package/lib/entity-type-setup/interface/eventEnum.d.ts.map +0 -1
  46. package/lib/entity-type-setup/page-form-instance.d.ts.map +0 -1
  47. package/lib/entity-type-setup/page.interface.classes.d.ts.map +0 -1
  48. package/lib/entity-type-setup/service/entity-type-setup.service.d.ts.map +0 -1
  49. package/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.d.ts.map +0 -1
  50. package/lib/search.pipe.d.ts.map +0 -1
  51. package/lib/support-request/action/action.component.d.ts.map +0 -1
  52. package/lib/support-request/case-list/case-list.component.d.ts.map +0 -1
  53. package/lib/support-request/home/home.component.d.ts.map +0 -1
  54. package/lib/support-request/pagination/pagination.component.d.ts.map +0 -1
  55. package/lib/support-request/request-flow/request-flow.component.d.ts.map +0 -1
  56. package/lib/support-request/self-service-flow/self-service-flow.component.d.ts.map +0 -1
  57. package/lib/support-request/support-request-create/support-request-create.component.d.ts.map +0 -1
  58. package/lib/support-request/support-request-details/support-request-details.component.d.ts.map +0 -1
  59. package/lib/support-request/support-request-index/support-request-index.component.d.ts.map +0 -1
  60. package/lib/support-request/support-request-routing.module.d.ts.map +0 -1
  61. package/lib/support-request/support-request.module.d.ts.map +0 -1
  62. package/lib/support-request/support-request.service.d.ts.map +0 -1
  63. package/lib/support-request/supportRequestInterface.d.ts.map +0 -1
  64. package/lib/task/Interfaces/TaskInterface.d.ts.map +0 -1
  65. package/lib/task/Services/task.service.d.ts.map +0 -1
  66. package/lib/templates/attachmentsetup/attachment-interface.d.ts.map +0 -1
  67. package/lib/templates/attachmentsetup/attachment.service.d.ts.map +0 -1
  68. package/lib/templates/grid/grid-datatype/grid-datatype.component.d.ts.map +0 -1
  69. package/lib/templates/grid/grid-service.service.d.ts.map +0 -1
  70. package/lib/templates/grid/grid.component.d.ts.map +0 -1
  71. package/lib/templates/grid/inner-grid/inner-grid.component.d.ts.map +0 -1
  72. package/lib/templates/interface_enum/common-Interface.d.ts.map +0 -1
  73. package/lib/templates/interface_enum/common-enum.d.ts.map +0 -1
  74. package/lib/ticket/_interfaces/model.d.ts.map +0 -1
  75. package/lib/ticket/_ticket-services/ticket-api.service.d.ts.map +0 -1
  76. package/public-api.d.ts.map +0 -1
@@ -12,7 +12,7 @@ import * as i1$1 from '@angular/common/http';
12
12
  import { HttpHeaders, HttpClientModule } from '@angular/common/http';
13
13
  import * as i2 from '@angular/router';
14
14
  import { NavigationStart, NavigationEnd } from '@angular/router';
15
- import * as i7$1 from '@ng-select/ng-select';
15
+ import * as i5$1 from '@ng-select/ng-select';
16
16
  import { NgSelectModule } from '@ng-select/ng-select';
17
17
  import * as handlebars from 'handlebars';
18
18
  import * as i5 from '@kolkov/angular-editor';
@@ -3174,11 +3174,14 @@ class EntityTypeSetupService {
3174
3174
  //----------------------myAssigned Cases------------------------------//
3175
3175
  //----------------------myAssigned Cases------------------------------//
3176
3176
  ///////Dynmaic Apis /////
3177
- getDynamicAll(criteriastr, entityTypeRecId, processStageId, CustomerId) {
3177
+ getDynamicAll(criteriastr, entityTypeRecId, processStageId, CustomerId, SelectedContract) {
3178
3178
  let url = dynamic.getDynamicAll(entityTypeRecId, processStageId);
3179
3179
  if (CustomerId) {
3180
3180
  url += '&CustomerId=' + CustomerId;
3181
3181
  }
3182
+ if (SelectedContract) {
3183
+ url += '&ContractNumber=' + SelectedContract;
3184
+ }
3182
3185
  return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
3183
3186
  }
3184
3187
  getDynamicAllForSupportReq(criteriastr, entityTypeRecId) {
@@ -3270,6 +3273,13 @@ class EntityTypeSetupService {
3270
3273
  }
3271
3274
  return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
3272
3275
  }
3276
+ getDynamicByEntityRefrecidwithoutCriteria(entityTypeRecId, RefTypeId, criteriastr, ActivityId) {
3277
+ let url = dynamic.getDynamicRefRecidEntity(entityTypeRecId, RefTypeId);
3278
+ if (ActivityId) {
3279
+ url = url + '&ActivityId=' + ActivityId;
3280
+ }
3281
+ return this.http.get(url);
3282
+ }
3273
3283
  //------------------------category-Teams----------------------------//
3274
3284
  getAllCategoryTypeTeams(criteriastr, CategoryId) {
3275
3285
  const url = EntityTypeCategoryTypeTeams.getAllCategoryTypeTeams(CategoryId);
@@ -3420,8 +3430,11 @@ class EntityTypeSetupService {
3420
3430
  params: CriteriaBuilder(criteriastr),
3421
3431
  });
3422
3432
  }
3423
- getsupportRequestData(criteriastr, Usertype, RequesterId, Source, processStageId) {
3433
+ getsupportRequestData(criteriastr, Usertype, RequesterId, Source, processStageId, SelectedContract) {
3424
3434
  let url = environment.ServerUrl + 'entitytype/supportrequestbyrequestertype?Usertype=' + Usertype + '&UserFieldId=' + RequesterId + '&processStageId=' + processStageId;
3435
+ if (SelectedContract) {
3436
+ url += '&ContractNumber=' + SelectedContract;
3437
+ }
3425
3438
  return this.http.get(url, {
3426
3439
  params: CriteriaBuilder(criteriastr),
3427
3440
  });
@@ -4074,6 +4087,16 @@ class SupportRequestService {
4074
4087
  let url = environment.ServerUrl + 'ticketmaster/subgroup/single/' + GroupId;
4075
4088
  return this.http.get(url);
4076
4089
  }
4090
+ sendEmail(data, file) {
4091
+ let url = `${environment.ServerUrl}entitytype/send/b2bemail?EntityTypeId=${data.EntityTypeId}&RefTypeId=${data.RefTypeId}&Subject=${data.Subject}&CC=${data.CC}&Mailtext=${data.Mailtext}`;
4092
+ if (file && file.length > 0) {
4093
+ let formData = new FormData();
4094
+ let _file = file[0];
4095
+ formData.append('formFile', _file, _file.name);
4096
+ return this.http.post(url, formData);
4097
+ }
4098
+ return this.http.post(url, null);
4099
+ }
4077
4100
  getInstructionDropDown(subGroupId) {
4078
4101
  let url = environment.ServerUrl +
4079
4102
  'subgroupassingnment/instructionbysubgroup?SubGroupId=' +
@@ -4095,12 +4118,15 @@ class SupportRequestService {
4095
4118
  let url = environment.ServerUrl + 'subgroupassingnment?SubGroupId=' + subGroupId;
4096
4119
  return this.http.get(url);
4097
4120
  }
4098
- getStatusListCount(Usertype, UserFieldId, issuType) {
4121
+ getStatusListCount(Usertype, UserFieldId, issuType, SelectedContract) {
4099
4122
  let url = environment.ServerUrl +
4100
4123
  'entitytype/supportrequestbyrequestertypecount?Usertype=' +
4101
4124
  Usertype + "&UserFieldId=" + UserFieldId;
4102
4125
  if (issuType)
4103
4126
  url = url + "&IssueType=" + issuType;
4127
+ if (SelectedContract) {
4128
+ url += '&ContractNumber=' + SelectedContract;
4129
+ }
4104
4130
  return this.http.get(url);
4105
4131
  }
4106
4132
  getsupportRequestData(criteriastr, Usertype) {
@@ -5345,8 +5371,10 @@ class EntityDynamicFieldComponent {
5345
5371
  if (!isDepandancyvalue) {
5346
5372
  return;
5347
5373
  }
5374
+ this.globalService.dataLoader = true;
5348
5375
  this.entityTypeSetup.dynamicAPi(restData, _formvalue, searchCriteria, SearchText, restData.Havecriteria)
5349
5376
  .subscribe((ress) => {
5377
+ this.globalService.dataLoader = false;
5350
5378
  let res = ress;
5351
5379
  if (restData.ResponseView) {
5352
5380
  let _rview = restData.ResponseView.split(".");
@@ -5391,11 +5419,15 @@ class EntityDynamicFieldComponent {
5391
5419
  }
5392
5420
  else
5393
5421
  obx.next([]);
5422
+ }, (error) => {
5423
+ this.globalService.dataLoader = false;
5394
5424
  });
5395
5425
  }
5396
5426
  else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
5397
5427
  const url = jsonItem.api.url;
5428
+ this.globalService.dataLoader = true;
5398
5429
  this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
5430
+ this.globalService.dataLoader = false;
5399
5431
  let res = ress;
5400
5432
  if (jsonItem.api && jsonItem.api.ResponseView) {
5401
5433
  let _rview = jsonItem.api.ResponseView.split(".");
@@ -5436,6 +5468,8 @@ class EntityDynamicFieldComponent {
5436
5468
  }
5437
5469
  else
5438
5470
  obx.next([]);
5471
+ }, (error) => {
5472
+ this.globalService.dataLoader = false;
5439
5473
  });
5440
5474
  }
5441
5475
  else {
@@ -5489,9 +5523,7 @@ class EntityDynamicFieldComponent {
5489
5523
  this.pageStartFrom = 1;
5490
5524
  }
5491
5525
  autoSearchDropdown(event, field, searchValue, RequestorField) {
5492
- debugger;
5493
5526
  if (event.keyCode == 13) {
5494
- this.globalService.dataLoader = true;
5495
5527
  this.tempFields = field;
5496
5528
  if (field.DataType == E_DataType.dropdown) {
5497
5529
  if (field.FieldData) {
@@ -7311,7 +7343,7 @@ class WorkflowDynamicPopupComponent {
7311
7343
  }
7312
7344
  }
7313
7345
  WorkflowDynamicPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: WorkflowDynamicPopupComponent, deps: [{ token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: GlobalService }], target: i0.ɵɵFactoryTarget.Component });
7314
- WorkflowDynamicPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: { currentStage: "currentStage", ProcessId: "ProcessId", showWorkflowPopups: "showWorkflowPopups", isUpdateFields: "isUpdateFields", pageForm: "pageForm", columnDefs: "columnDefs", caller: "caller", EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", PageGroupValues: "PageGroupValues" }, outputs: { getWorkflowActionComments: "getWorkflowActionComments" }, ngImport: i0, template: "<div>\r\n <div class=\"modal fade show\" [ngClass]=\"{'showPop':showWorkflowPopups}\" id=\"exampleModal\" tabindex=\"-1\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">{{'WorkFlow Stage'|translate}}</h5>\r\n <button type=\"button\" (click)=\"closePopup()\" class=\"close\" data-bs-dismiss=\"modal\"\r\n aria-label=\"Close\">&times;</button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId && showWorkflowPopups \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\"\r\n [PageGroupValues]=\"PageGroupValues\"\r\n [ViewFrom]=\"'Details'\"\r\n [Type]=\"Type\"\r\n [ParameterData]=\"ParameterData\"\r\n (submitFormValue)=\"emitSubmitForm($event.formdata,$event.pageForm,$event.forms,$event.CurrentFormPageGroupObjects)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <form *ngIf=\"fieldConfig.length != 0\" [formGroup]=\"dynamicFormGroup\">\r\n <ng-container *ngIf=\"fieldConfig.length != 0\">\r\n <ng-container *ngFor=\"let item of fieldConfig; let i = index\">\r\n <!-- textarea, image, file -->\r\n <ng-container\r\n *ngIf=\"(item.Datatype == 10 || item.Datatype == 7 || item.Datatype == 8 || item.Datatype == 11) else thenBlack\">\r\n <ng-container *ngIf=\"item.IsVisible\">\r\n\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <ng-select [items]=\"dropDown$[item.FieldName] | async\" [formControlName]=\"item.FieldName\"\r\n bindLabel=\"Description\" bindValue=\"Id\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\">\r\n </ng-select>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)['errors']['required']\"\r\n style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <textarea class=\"dy-text-area\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\"></textarea>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\" type=\"file\"\r\n [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\" class=\"form-control\"\r\n (change)=\"uploadFile($event)\" accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <!-- <div class=\"form-group\"\r\n *ngIf=\"item.Datatype == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n type=\"file\"\r\n (change)=\"changeFile($event.target.file,item)\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors }\" />\r\n <i class=\"themeprimary fa fa-upload\"\r\n *ngIf=\"!isFileUpload\"\r\n (click)=\"uploadFiles()\"\r\n style=\"font-size: 20px;\"></i>\r\n <div>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"!isFileUpload\">{{\"before submitting please file attach\" | translate}}</i>\r\n <i class=\"themeprimary la la-check\"\r\n style=\"margin: 0 5px\"\r\n *ngIf=\"isFileUpload\"></i>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"isFileUpload\">{{\"file attached\" | translate}}</i>\r\n </div>\r\n \r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\"\r\n *ngIf=\"item.IsVisible\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">{{item.DisplayLabel | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"control-input\"\r\n *ngIf=\"item.Datatype == 1 || item.Datatype == 2 || item.Datatype == 5 || item.Datatype == 6 || item.Datatype == 9\">\r\n <input min=\"0\" autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\"\r\n [type]=\"getType(item.Datatype)\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- date && date-time -->\r\n <!-- <div class=\"control-input date_pick\"\r\n *ngIf=\"item.Datatype == 3 || item.Datatype == 4\">\r\n <input type=\"text\"\r\n readonly\r\n [matDatepicker]=\"Datepicker\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <mat-datepicker-toggle matSuffix\r\n [for]=\"Datepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #Datepicker></mat-datepicker>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div> -->\r\n\r\n\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n\r\n <div class=\"clearfix\">\r\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\r\n <div class=\"row\">\r\n <div class=\"col text-right\" style=\"max-width: 167px;\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{'Comments' | translate}}</label>\r\n </div>\r\n <div class=\"col control-input\">\r\n <textarea id=\"comments\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [(ngModel)]=\"workflowComments\"\r\n (click)=\"activeInputId = 'comments'\"></textarea>\r\n </div>\r\n <div class=\"canned-response\">\r\n \r\n <button type=\"button\"\r\n (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\"\r\n style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\"\r\n class=\"dropdown-menu show\"\r\n *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" (click)=\"onSubmit()\">{{'Submit'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".canned-response{position:absolute;right:10px;bottom:0}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px #000000ad}.canned-response .badge:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
7346
+ WorkflowDynamicPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: { currentStage: "currentStage", ProcessId: "ProcessId", showWorkflowPopups: "showWorkflowPopups", isUpdateFields: "isUpdateFields", pageForm: "pageForm", columnDefs: "columnDefs", caller: "caller", EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", PageGroupValues: "PageGroupValues" }, outputs: { getWorkflowActionComments: "getWorkflowActionComments" }, ngImport: i0, template: "<div>\r\n <div class=\"modal fade show\" [ngClass]=\"{'showPop':showWorkflowPopups}\" id=\"exampleModal\" tabindex=\"-1\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">{{'WorkFlow Stage'|translate}}</h5>\r\n <button type=\"button\" (click)=\"closePopup()\" class=\"close\" data-bs-dismiss=\"modal\"\r\n aria-label=\"Close\">&times;</button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId && showWorkflowPopups \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\"\r\n [PageGroupValues]=\"PageGroupValues\"\r\n [ViewFrom]=\"'Details'\"\r\n [Type]=\"Type\"\r\n [ParameterData]=\"ParameterData\"\r\n (submitFormValue)=\"emitSubmitForm($event.formdata,$event.pageForm,$event.forms,$event.CurrentFormPageGroupObjects)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <form *ngIf=\"fieldConfig.length != 0\" [formGroup]=\"dynamicFormGroup\">\r\n <ng-container *ngIf=\"fieldConfig.length != 0\">\r\n <ng-container *ngFor=\"let item of fieldConfig; let i = index\">\r\n <!-- textarea, image, file -->\r\n <ng-container\r\n *ngIf=\"(item.Datatype == 10 || item.Datatype == 7 || item.Datatype == 8 || item.Datatype == 11) else thenBlack\">\r\n <ng-container *ngIf=\"item.IsVisible\">\r\n\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <ng-select [items]=\"dropDown$[item.FieldName] | async\" [formControlName]=\"item.FieldName\"\r\n bindLabel=\"Description\" bindValue=\"Id\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\">\r\n </ng-select>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)['errors']['required']\"\r\n style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <textarea class=\"dy-text-area\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\"></textarea>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\" type=\"file\"\r\n [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\" class=\"form-control\"\r\n (change)=\"uploadFile($event)\" accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <!-- <div class=\"form-group\"\r\n *ngIf=\"item.Datatype == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n type=\"file\"\r\n (change)=\"changeFile($event.target.file,item)\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors }\" />\r\n <i class=\"themeprimary fa fa-upload\"\r\n *ngIf=\"!isFileUpload\"\r\n (click)=\"uploadFiles()\"\r\n style=\"font-size: 20px;\"></i>\r\n <div>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"!isFileUpload\">{{\"before submitting please file attach\" | translate}}</i>\r\n <i class=\"themeprimary la la-check\"\r\n style=\"margin: 0 5px\"\r\n *ngIf=\"isFileUpload\"></i>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"isFileUpload\">{{\"file attached\" | translate}}</i>\r\n </div>\r\n \r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\"\r\n *ngIf=\"item.IsVisible\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">{{item.DisplayLabel | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"control-input\"\r\n *ngIf=\"item.Datatype == 1 || item.Datatype == 2 || item.Datatype == 5 || item.Datatype == 6 || item.Datatype == 9\">\r\n <input min=\"0\" autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\"\r\n [type]=\"getType(item.Datatype)\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- date && date-time -->\r\n <!-- <div class=\"control-input date_pick\"\r\n *ngIf=\"item.Datatype == 3 || item.Datatype == 4\">\r\n <input type=\"text\"\r\n readonly\r\n [matDatepicker]=\"Datepicker\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <mat-datepicker-toggle matSuffix\r\n [for]=\"Datepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #Datepicker></mat-datepicker>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div> -->\r\n\r\n\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n\r\n <div class=\"clearfix\">\r\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\r\n <div class=\"row\">\r\n <div class=\"col text-right\" style=\"max-width: 167px;\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{'Comments' | translate}}</label>\r\n </div>\r\n <div class=\"col control-input\">\r\n <textarea id=\"comments\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [(ngModel)]=\"workflowComments\"\r\n (click)=\"activeInputId = 'comments'\"></textarea>\r\n </div>\r\n <div class=\"canned-response\">\r\n \r\n <button type=\"button\"\r\n (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\"\r\n style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\"\r\n class=\"dropdown-menu show\"\r\n *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" (click)=\"onSubmit()\">{{'Submit'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".canned-response{position:absolute;right:10px;bottom:0}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px #000000ad}.canned-response .badge:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
7315
7347
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: WorkflowDynamicPopupComponent, decorators: [{
7316
7348
  type: Component,
7317
7349
  args: [{ selector: 'app-workflow-dynamic-popup', template: "<div>\r\n <div class=\"modal fade show\" [ngClass]=\"{'showPop':showWorkflowPopups}\" id=\"exampleModal\" tabindex=\"-1\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">{{'WorkFlow Stage'|translate}}</h5>\r\n <button type=\"button\" (click)=\"closePopup()\" class=\"close\" data-bs-dismiss=\"modal\"\r\n aria-label=\"Close\">&times;</button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId && showWorkflowPopups \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\"\r\n [PageGroupValues]=\"PageGroupValues\"\r\n [ViewFrom]=\"'Details'\"\r\n [Type]=\"Type\"\r\n [ParameterData]=\"ParameterData\"\r\n (submitFormValue)=\"emitSubmitForm($event.formdata,$event.pageForm,$event.forms,$event.CurrentFormPageGroupObjects)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <form *ngIf=\"fieldConfig.length != 0\" [formGroup]=\"dynamicFormGroup\">\r\n <ng-container *ngIf=\"fieldConfig.length != 0\">\r\n <ng-container *ngFor=\"let item of fieldConfig; let i = index\">\r\n <!-- textarea, image, file -->\r\n <ng-container\r\n *ngIf=\"(item.Datatype == 10 || item.Datatype == 7 || item.Datatype == 8 || item.Datatype == 11) else thenBlack\">\r\n <ng-container *ngIf=\"item.IsVisible\">\r\n\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <ng-select [items]=\"dropDown$[item.FieldName] | async\" [formControlName]=\"item.FieldName\"\r\n bindLabel=\"Description\" bindValue=\"Id\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\">\r\n </ng-select>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)['errors']['required']\"\r\n style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <textarea class=\"dy-text-area\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\"></textarea>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\" type=\"file\"\r\n [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\" class=\"form-control\"\r\n (change)=\"uploadFile($event)\" accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <!-- <div class=\"form-group\"\r\n *ngIf=\"item.Datatype == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n type=\"file\"\r\n (change)=\"changeFile($event.target.file,item)\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors }\" />\r\n <i class=\"themeprimary fa fa-upload\"\r\n *ngIf=\"!isFileUpload\"\r\n (click)=\"uploadFiles()\"\r\n style=\"font-size: 20px;\"></i>\r\n <div>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"!isFileUpload\">{{\"before submitting please file attach\" | translate}}</i>\r\n <i class=\"themeprimary la la-check\"\r\n style=\"margin: 0 5px\"\r\n *ngIf=\"isFileUpload\"></i>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"isFileUpload\">{{\"file attached\" | translate}}</i>\r\n </div>\r\n \r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\"\r\n *ngIf=\"item.IsVisible\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">{{item.DisplayLabel | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"control-input\"\r\n *ngIf=\"item.Datatype == 1 || item.Datatype == 2 || item.Datatype == 5 || item.Datatype == 6 || item.Datatype == 9\">\r\n <input min=\"0\" autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\"\r\n [type]=\"getType(item.Datatype)\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- date && date-time -->\r\n <!-- <div class=\"control-input date_pick\"\r\n *ngIf=\"item.Datatype == 3 || item.Datatype == 4\">\r\n <input type=\"text\"\r\n readonly\r\n [matDatepicker]=\"Datepicker\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <mat-datepicker-toggle matSuffix\r\n [for]=\"Datepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #Datepicker></mat-datepicker>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div> -->\r\n\r\n\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n\r\n <div class=\"clearfix\">\r\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\r\n <div class=\"row\">\r\n <div class=\"col text-right\" style=\"max-width: 167px;\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{'Comments' | translate}}</label>\r\n </div>\r\n <div class=\"col control-input\">\r\n <textarea id=\"comments\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [(ngModel)]=\"workflowComments\"\r\n (click)=\"activeInputId = 'comments'\"></textarea>\r\n </div>\r\n <div class=\"canned-response\">\r\n \r\n <button type=\"button\"\r\n (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\"\r\n style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\"\r\n class=\"dropdown-menu show\"\r\n *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" (click)=\"onSubmit()\">{{'Submit'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".canned-response{position:absolute;right:10px;bottom:0}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px #000000ad}.canned-response .badge:focus{outline:none}\n"] }]
@@ -7763,9 +7795,7 @@ class ActivitiesCreateComponent {
7763
7795
  // this.EntityTypeId = Number(res.get('EntityTypeId'));
7764
7796
  });
7765
7797
  this.getActiveEntityForm();
7766
- debugger;
7767
7798
  this.globalService.submitComments.subscribe(x => {
7768
- debugger;
7769
7799
  if (x.message) {
7770
7800
  this.createFormData.Comments = x.message;
7771
7801
  this.submitTicketCreate(true);
@@ -7783,7 +7813,6 @@ class ActivitiesCreateComponent {
7783
7813
  this.closeActivityCreate.emit({ Type: "Cancel" });
7784
7814
  }
7785
7815
  submitTicketCreate(isDisableFormValidation) {
7786
- debugger;
7787
7816
  let CreateData = this.createFormData;
7788
7817
  if (isDisableFormValidation) {
7789
7818
  if (!this.createFormData.Comments) {
@@ -8652,1065 +8681,1399 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
8652
8681
  type: Input
8653
8682
  }] } });
8654
8683
 
8655
- class SupportRequestDetailsComponent {
8656
- constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
8657
- this.taskService = taskService;
8658
- this.EntityTypeSetupService = EntityTypeSetupService;
8659
- this.fb = fb;
8660
- this.actRoute = actRoute;
8661
- this.gridServiceService = gridServiceService;
8662
- this.ticketService = ticketService;
8663
- this.globalService = globalService;
8664
- this.route = route;
8665
- this.ViewFrom = "Page";
8666
- this.IsWfAction = false;
8667
- this.environment = environment;
8668
- // _TaskDetail: TaskVM =null;
8669
- this._TaskDetail = null;
8670
- this.stageId = null;
8671
- this.EntityTypeId = null;
8672
- this.EntityTypeIdRecId = null;
8673
- this.refRecId = null;
8674
- this.EntityFormId = null;
8675
- this.EntityPageGroupsData = [];
8676
- this.EntityDefaultPageGroupsData = [];
8677
- this.pageTitle = "Process Stage";
8678
- this.pageDesp = "Process Stage";
8679
- this.selectMode = E_SelectMode.Multi;
8680
- this.isAttach = false;
8681
- this.isCreate = false;
8682
- this.isEdit = false;
8683
- this.isDelete = false;
8684
- this.isExport = false;
8685
- this.gridActionList = [];
8686
- this.columnDefs = [
8687
- { Field: 'ProcessStage', Name: 'Process Stage Id' },
8688
- { Field: 'ProcessStageEn', Name: 'Process Stage' },
8689
- { Field: 'Comments', Name: 'Comments' },
8690
- { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
8691
- { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
8692
- ];
8693
- this.commentsData = [];
8694
- this.commentsDataCount = 0;
8695
- this.Searchcriteria = {
8696
- Pagging: {
8697
- PageNo: 1,
8698
- PageSize: 10,
8699
- },
8700
- Where: [],
8701
- SortOrder: 1,
8684
+ class AttachmentService {
8685
+ constructor(http) {
8686
+ this.http = http;
8687
+ this.IsPopUp = false;
8688
+ }
8689
+ getAttachmentList(MenuOrEntityRecId, attachmentType) {
8690
+ const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
8691
+ return this.http.get(url);
8692
+ }
8693
+ uploadAttachFile(obj, files) {
8694
+ const url = Common.uploadAttachFile();
8695
+ let data = {
8696
+ refRecId: obj.refRecId,
8697
+ DocumentType: obj.DocumentType,
8698
+ DocumentVersion: obj.DocumentVersion,
8699
+ Title: obj.Title,
8700
+ FileName: obj.FileName
8702
8701
  };
8703
- this.displayPopupCreateView = false;
8704
- this.CreateItemId = null;
8705
- this.selectedActivityItem = null;
8706
- this.commentsActivityItem = null;
8707
- this.detailsEntityTypeId = null;
8708
- this.Activity = null;
8709
- this.ActivityType = [];
8710
- this.ActivityTypeReadonly = [];
8711
- this.TotalActivity = 0;
8712
- this.StatusAndStageList = [];
8713
- this.showStageDetails = false;
8714
- this.selectedProcessList = [];
8715
- this.tabDisplayView = 1;
8716
- this.SortingField = { field: null, direction: null };
8717
- this.activitySearchcriteria = {
8718
- Pagging: {
8719
- PageNo: 1,
8720
- PageSize: 10,
8721
- },
8722
- Where: [],
8723
- SortOrder: this.SortingField,
8702
+ return this.http.post(url, files, { params: data });
8703
+ }
8704
+ getUploadFileList(DoctypeRecId, RefRecId) {
8705
+ const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
8706
+ let obj = {
8707
+ DoctypeRecId: DoctypeRecId,
8708
+ RefRecId: RefRecId
8724
8709
  };
8725
- this.TaskList = [];
8726
- this.ProcessStageList = [];
8727
- this.TimelineList = [];
8728
- this.TimelineListReadonly = [];
8729
- this.TaskCommentFile = null;
8730
- this.wfActionData = [
8731
- { id: 1, name: "New" },
8732
- { id: 2, name: "Forward" },
8733
- { id: 3, name: "Reply" },
8734
- { id: 4, name: "Esculation" },
8735
- { id: 5, name: "Delegation" },
8736
- { id: 6, name: "Complete" },
8737
- { id: 7, name: "Cancel" },
8738
- ];
8739
- this.wfStageAction = null;
8740
- this.action = null;
8741
- this.showWorkflowPopup = false;
8742
- this.workflowEntityFormId = null;
8743
- this.assignmentForm = this.fb.group({
8744
- ActionStatus: [''],
8745
- AssignedTo: [''],
8746
- TargetDate: [''],
8747
- Description: [''],
8748
- Comments: [''],
8749
- });
8750
- this.updateStatusAssignTo = [];
8751
- this.actionPopup = false;
8752
- this.targetDate = null;
8753
- this.columnDef = [
8754
- { Field: "Description", Name: "Description" },
8755
- { Field: "AssignedTo", Name: "AssignedTo" },
8756
- { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
8757
- { Field: "IsDoneEn", Name: "IsDone", },
8758
- ];
8759
- this.translatePipe = new TranslatePipe(this.globalService);
8710
+ return this.http.get(url, { observe: 'response' }); //obj,
8760
8711
  }
8761
- ngOnInit() {
8762
- // this.actRoute.paramMap.subscribe((res) => {
8763
- //
8764
- // console.log(res);
8765
- // if (this.ViewFrom != 'Popup') {
8766
- // this.RecId = Number(res.get('RecId'));
8767
- // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
8768
- // }
8769
- // });
8770
- this.getTaskDetails();
8771
- this.getActivity();
8772
- this.getWorkflowStatusWithStage();
8773
- // this.getAssignGroupData();
8774
- // this.getTaskAssignData();
8712
+ ActivateUplaodFile(RecId) {
8713
+ const url = Common.activateUploadFile(RecId);
8714
+ return this.http.get(url);
8775
8715
  }
8776
- getTaskDetails() {
8777
- if (this.RecId != null) {
8778
- this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
8779
- // alert("a");
8780
- // ;
8781
- this._TaskDetail = x;
8782
- this.stageId = x.ProcessStage;
8783
- this.EntityTypeId = x.EntityTypeId;
8784
- this.EntityTypeIdRecId = x.EntityTypeRecId;
8785
- this.refRecId = x.RecId;
8786
- this.GetPageList(this.storeCriteria);
8787
- if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
8788
- this._TaskDetail.uploadFiles.map(x => {
8789
- if (x.Ext) {
8790
- x.ExtSm = x.Ext.toLowerCase();
8791
- x.ExtSm = x.ExtSm.replace('.', '');
8792
- }
8793
- });
8794
- }
8795
- this.getActivities();
8796
- this.getEntityFormDetails();
8797
- // this.getComments();
8798
- if (this.IsWfAction) {
8799
- this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
8800
- }
8801
- }, (error) => error.error);
8802
- }
8716
+ InActivateUplaodFile(RecId) {
8717
+ const url = Common.inActivateUploadFile(RecId);
8718
+ return this.http.get(url);
8803
8719
  }
8804
- getEntityFormDetails() {
8805
- this.EntityDefaultPageGroupsData = [];
8806
- this.EntityPageGroupsData = [];
8807
- this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8808
- if (res.FormData) {
8809
- let _FormData = JSON.parse(res.FormData);
8810
- if (_FormData.PageGroup) {
8811
- if (Array.isArray(_FormData.PageGroup)) {
8812
- this.EntityPageGroupsData = _FormData.PageGroup;
8813
- }
8814
- }
8815
- if (_FormData.defaultPageGroups) {
8816
- if (Array.isArray(_FormData.defaultPageGroups)) {
8817
- this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
8818
- }
8819
- }
8820
- }
8821
- this.EntityFormId = res.RecId;
8822
- }, (error) => {
8823
- console.log(error);
8824
- });
8720
+ getDocumentType(criteriastr) {
8721
+ // let obj={
8722
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8723
+ // "Where":[],
8724
+ // "SortOrder":{"field":null,"direction":null}
8725
+ // };
8726
+ // let criteria:any= JSON.stringify(obj);
8727
+ const url = Common.getDocumentType();
8728
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8825
8729
  }
8826
- getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
8827
- // alert("zz");
8828
- let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
8829
- this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
8830
- // this.wfActionData = res;
8831
- this.getTaskDetails();
8832
- console.log(res);
8833
- }, (error) => {
8834
- var _a, _b, _c;
8835
- error.error;
8836
- if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
8837
- let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
8838
- if (msg && msg.msg) {
8839
- msg = msg.msg;
8840
- }
8841
- else {
8842
- msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
8843
- }
8844
- Swal.fire(this.translatePipe.transform(msg));
8845
- }
8846
- else {
8847
- Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
8848
- }
8849
- });
8730
+ getDocumentbyRecId(RecId) {
8731
+ const url = Common.getDocumentTypeByRecId(RecId);
8732
+ return this.http.get(url);
8850
8733
  }
8851
- getComments() {
8852
- // alert("getcommends");
8853
- if (this.refRecId != null) {
8854
- this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
8855
- // alert("getcommends");
8856
- this.commentsData = x.Data;
8857
- this.commentsDataCount = x.TotalCount;
8858
- }, (error) => {
8859
- // Swal.fire(error);
8860
- Swal.fire({
8861
- title: this.translatePipe.transform(error.error),
8862
- });
8863
- // error.error
8864
- });
8865
- }
8866
- }
8867
- getActivity() {
8868
- //this.EntityType = data.EntityType;
8869
- this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
8870
- // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
8871
- .subscribe((res) => {
8872
- this.ActivityFields = res.Data;
8873
- if (this.ActivityFields.length > 0) {
8874
- const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
8875
- this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
8876
- let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
8877
- this.ActivityFields.push(taskActivity);
8878
- this.openDefaultComments();
8879
- }
8880
- });
8734
+ deleteDocumentType(RecId) {
8735
+ const url = Common.deleteDocumentType(RecId);
8736
+ const content_ = "";
8737
+ let options_ = {
8738
+ body: content_,
8739
+ observe: "response",
8740
+ responseType: "blob",
8741
+ headers: new HttpHeaders({
8742
+ "Content-Type": "application/json",
8743
+ "Accept": "application/json"
8744
+ })
8745
+ };
8746
+ return this.http.delete(url);
8881
8747
  }
8882
- getActivityFileUploads(item) {
8883
- if (item.showform && item.RecId && item.ActivityTypeId) {
8884
- this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
8885
- .subscribe((res) => {
8886
- if (res && res.length > 0) {
8887
- item.uploadFiles = res;
8888
- }
8889
- });
8890
- }
8748
+ createDocumentType(Obj) {
8749
+ const url = Common.createDocumentType();
8750
+ return this.http.post(url, Obj, { observe: 'response' });
8891
8751
  }
8892
- getActivityFileUploadsReadonly(item) {
8893
- if (item.RecId && item.ActivityTypeId) {
8894
- this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
8895
- .subscribe((res) => {
8896
- if (res && res.length > 0) {
8897
- item.uploadFiles = res;
8898
- }
8899
- this.ActivityTypeReadonly.push(item);
8900
- });
8901
- }
8752
+ updateDocumentType(Obj) {
8753
+ const url = Common.updateDocumentType();
8754
+ return this.http.put(url, Obj, { observe: 'response' });
8902
8755
  }
8903
- addEvents(data) {
8904
- this.openPopupCreatePage(data);
8756
+ getAttachmentSetupList(criteriastr) {
8757
+ // let obj={
8758
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8759
+ // "Where":[],
8760
+ // "SortOrder":{"field":null,"direction":null}
8761
+ // };
8762
+ // let criteria:any= JSON.stringify(obj);
8763
+ const url = Common.getAttachmentSetupList();
8764
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8905
8765
  }
8906
- openPopupCreatePage(item) {
8907
- this.CreateItemId = null;
8908
- setTimeout(() => (this.CreateItemId = item.RecId), 0);
8909
- this.selectedActivityItem = item;
8910
- if (item.Description != 'Comments')
8911
- this.displayPopupCreateView = true;
8912
- // this.Activity=item.RecId;
8766
+ getDocumentTypeAssignUnAssign(MenuRecId) {
8767
+ const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
8768
+ return this.http.get(url);
8913
8769
  }
8914
- closePopupCreateView(Type) {
8915
- this.CreateItemId = null;
8916
- this.displayPopupCreateView = false;
8917
- if (Type == 'Create') {
8918
- this.getActivities();
8919
- this.openDefaultComments();
8920
- }
8770
+ assignDocumentType(data) {
8771
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8772
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8773
+ return this.http.post(url_, null);
8921
8774
  }
8922
- slider(direction, Id) {
8923
- this.slide(direction, Id);
8775
+ unassignDocumentType(data) {
8776
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8777
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8778
+ return this.http.post(url_, data);
8924
8779
  }
8925
- slide(direction, Id) {
8926
- debugger;
8927
- let container = document.getElementById(Id);
8928
- let scrollCompleted = 0;
8929
- let slideVar = setInterval(function () {
8930
- if (direction == 'left') {
8931
- container.scrollLeft -= 50;
8932
- }
8933
- else {
8934
- container.scrollLeft += 50;
8935
- }
8936
- scrollCompleted += 10;
8937
- if (scrollCompleted >= 50) {
8938
- window.clearInterval(slideVar);
8939
- }
8940
- }, 50);
8780
+ getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
8781
+ const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
8782
+ return this.http.get(url);
8941
8783
  }
8942
- getWorkflowStatusWithStage() {
8943
- this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
8944
- .subscribe((res) => {
8945
- // alert("StatusAndStageList");
8946
- this.StatusAndStageList = res.Data;
8947
- // .sort((a, b) => {
8948
- // if (a.StageId < b.StageId) return -1;
8949
- // else if (a.StageId > b.StageId) return 1;
8950
- // else return 0;
8951
- // });
8952
- let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
8953
- this.StatusAndStageList.splice(showallIndex, 1);
8954
- let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
8955
- this.StatusAndStageList.splice(showPendingIndex, 1);
8956
- }, (error) => {
8957
- var _a;
8958
- console.log(error);
8959
- Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
8960
- });
8784
+ assignDocumentTypeForEntityType(data) {
8785
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8786
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8787
+ return this.http.post(url_, null);
8961
8788
  }
8962
- selectProcess(item) {
8963
- if (this.selectedProcess)
8964
- this.showStageDetails = false;
8965
- if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
8966
- setTimeout(() => (this.selectedProcess = null), 500);
8967
- }
8968
- else {
8969
- this.showStageDetails = true;
8970
- this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
8971
- this.selectedProcess =
8972
- this.selectedProcessList[this.selectedProcessList.length - 1];
8973
- }
8789
+ unassignDocumentTypeForEntityType(data) {
8790
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8791
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8792
+ return this.http.post(url_, data);
8974
8793
  }
8975
- closeProcess() {
8976
- this.showStageDetails = false;
8977
- setTimeout(() => (this.selectedProcess = null), 500);
8794
+ assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8795
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
8796
+ return this.http.post(url_, data);
8978
8797
  }
8979
- gridChangeTabs(data) {
8980
- this.tabDisplayView = Number(data);
8798
+ unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8799
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
8800
+ return this.http.post(url_, data);
8981
8801
  }
8982
- loadMoreActivities() {
8983
- this.activitySearchcriteria.Pagging.PageSize += 10;
8984
- this.getActivities();
8802
+ getDocumentAssignList(Criteria, EntityRecId) {
8803
+ const url = Common.getDocumentAssignList(EntityRecId);
8804
+ return this.http.get(url);
8985
8805
  }
8986
- getActivities() {
8987
- debugger;
8988
- // let ActivityId = 5;
8989
- this.EntityTypeSetupService
8990
- .getDynamicByEntityRefrecid(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
8991
- .subscribe((res) => {
8992
- debugger;
8993
- this.ActivityType = res.Data;
8994
- if (res && res.Data)
8995
- this.ActivityTypeReadonly = [];
8996
- res.Data.forEach(x => {
8997
- this.getActivityFileUploadsReadonly(x);
8998
- });
8999
- this.setTimeline();
9000
- this.TotalActivity = res.TotalCount;
9001
- console.log('Activity', res.Data);
9002
- });
9003
- (error) => {
9004
- error.error;
9005
- };
8806
+ open() {
8807
+ this.IsPopUp = true;
9006
8808
  }
9007
- setTimeline() {
9008
- this.TimelineList = [];
9009
- this.TimelineListReadonly = [];
9010
- if (Array.isArray(this.ActivityType)) {
9011
- if (this.ActivityType.length > 0)
9012
- this.TimelineList.push(...this.ActivityType);
9013
- this.TimelineListReadonly.push(...this.ActivityType);
9014
- }
9015
- if (Array.isArray(this.ActivityTypeReadonly)) {
9016
- if (this.ActivityTypeReadonly.length > 0)
9017
- this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9018
- }
9019
- // if (Array.isArray(this.TaskList)) {
9020
- // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9021
- // }
9022
- // if (Array.isArray(this.ProcessStageList)) {
9023
- // if (this.ProcessStageList.length > 0) {
9024
- // this.ProcessStageList = this.ProcessStageList.map((x) => {
9025
- // x.Type = 'Workflow';
9026
- // x.ActivityTypeIdEn = 'Comments';
9027
- // return x;
9028
- // });
9029
- // this.TimelineList.push(...this.ProcessStageList);
9030
- // }
9031
- // }
9032
- this.TimelineList.sort((a, b) => {
9033
- if (a.CreatedDatetime < b.CreatedDatetime)
9034
- return -1;
9035
- else if (a.CreatedDatetime > b.CreatedDatetime)
9036
- return 1;
9037
- else
9038
- return 0;
9039
- });
9040
- this.TimelineListReadonly.sort((a, b) => {
9041
- if (a.CreatedDatetime < b.CreatedDatetime)
9042
- return -1;
9043
- else if (a.CreatedDatetime > b.CreatedDatetime)
9044
- return 1;
9045
- else
9046
- return 0;
9047
- });
8809
+ close() {
8810
+ this.IsPopUp = false;
9048
8811
  }
9049
- GetPageList(Criteria) {
9050
- if (this.EntityTypeId != null) {
9051
- this.storeCriteria = Criteria;
9052
- // let data: Observable<IEntityWFstageVM[]>;
9053
- this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9054
- // alert("grid data");
9055
- this.ProcessStageList = res.Data;
9056
- this.setTimeline();
9057
- console.log(res);
9058
- this.loadGrid(res.Data, res.TotalCount);
9059
- }, (error) => {
9060
- var _a;
9061
- console.log(error);
9062
- this.loadGrid([], 0);
9063
- Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9064
- });
9065
- }
8812
+ getSideMenuData() {
8813
+ let url = environment.ServerUrl + "entitytype/productivitymenuitems";
8814
+ return this.http.get(url);
9066
8815
  }
9067
- fileChange(event) {
9068
- this.fileList = event.target.files;
8816
+ getMenuItemData(criteriastr) {
8817
+ let url = environment.ServerUrl + "security/menuitemsmap";
8818
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9069
8819
  }
9070
- commentSubmit() {
9071
- let data = {
9072
- commnets: this.Comments,
9073
- refRecId: this.RecId,
9074
- entitytyperecid: this.EntityTypeRecId
9075
- };
9076
- // this.service.urlComments(data).subscribe(
9077
- // (x: any) => this.taskAssignData = x);
9078
- let formData = new FormData();
9079
- if (this.fileList && this.fileList.length > 0) {
9080
- let file = this.fileList[0];
9081
- formData.append('Files', file, file.name);
9082
- }
9083
- this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9084
- this.Comments = null;
9085
- this.CommentsTitle = null;
9086
- this.TaskCommentFile = null;
9087
- this.getComments();
9088
- }, (error) => error.error);
8820
+ getSingleMenuItemData(RecId) {
8821
+ let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
8822
+ return this.http.get(url);
9089
8823
  }
9090
- // commentsActivityItem:any = null;
9091
- openDefaultComments() {
9092
- this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9093
- // if (comments && comments.length > 0) {
9094
- // this.commentsActivityItem = null;
9095
- // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9096
- // this.commentsActivityItem = comments[0];
9097
- // this.openPopupCreatePage(comments[0]);
9098
- // }
9099
- // else {
9100
- // this.openPopupCreatePage(this.ActivityFields[0]);
9101
- // }
8824
+ createMenuItemData(data) {
8825
+ let url = environment.ServerUrl + "security/menuitemsmap/add";
8826
+ return this.http.post(url, data);
9102
8827
  }
9103
- getWfStageAction(EntityTypeId, StageId) {
9104
- if (EntityTypeId == null)
9105
- return;
9106
- this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9107
- // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9108
- this.wfStageAction = res;
9109
- console.log(res);
9110
- }, (error) => {
9111
- error.error;
9112
- });
8828
+ updateMenuItemData(data) {
8829
+ let url = environment.ServerUrl + "security/menuitemsmap/update";
8830
+ return this.http.put(url, data);
9113
8831
  }
9114
- getStatusField(data) {
9115
- this.action = data.ActionRecId;
9116
- this.workflowEntityFormId = data.WorkFlowForm;
9117
- this.showWorkflowPopup = true;
9118
- this.EntityTypeSetupService.onshowWorkflowPopup.next({
9119
- showWorkflowPopup: true,
9120
- fieldConfig: [],
9121
- });
8832
+ deleteMenuItemData(RecId) {
8833
+ let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
8834
+ return this.http.delete(url);
9122
8835
  }
9123
- backToList() {
9124
- this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
8836
+ }
8837
+ AttachmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
8838
+ AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
8839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
8840
+ type: Injectable,
8841
+ args: [{
8842
+ providedIn: 'root'
8843
+ }]
8844
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
8845
+ const Common = {
8846
+ getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
8847
+ uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
8848
+ getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
8849
+ activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
8850
+ inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
8851
+ getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
8852
+ getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
8853
+ deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
8854
+ createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
8855
+ updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
8856
+ getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
8857
+ getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
8858
+ assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
8859
+ unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
8860
+ getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8861
+ getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8862
+ assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
8863
+ unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
8864
+ assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
8865
+ unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
8866
+ };
8867
+ const BaseUrl = {
8868
+ commonURL: "/api/v1/common",
8869
+ };
8870
+
8871
+ class SupportRequestCreateComponent {
8872
+ constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
8873
+ this.entityTypeSetup = entityTypeSetup;
8874
+ this.attachmentService = attachmentService;
8875
+ this.router = router;
8876
+ this.route = route;
8877
+ this.supportService = supportService;
8878
+ this.globalService = globalService;
8879
+ this.EntityFormId = null;
8880
+ this.EntityTypeId = null;
8881
+ this.ViewFrom = "Page";
8882
+ this.Type = "Create";
8883
+ this.FormValues = null;
8884
+ this.IssueType = null;
8885
+ this.IssueGroup = null;
8886
+ this.IssueSubGroup = null;
8887
+ this.IssueTypeEn = null;
8888
+ this.IssueGroupEn = null;
8889
+ this.IssueSubGroupEn = null;
8890
+ this.IssueTypeAr = null;
8891
+ this.IssueGroupAr = null;
8892
+ this.IssueSubGroupAr = null;
8893
+ this.Source = null;
8894
+ this.CreatedByUserType = null;
8895
+ this.Channel = null;
8896
+ this.ChannelEn = null;
8897
+ this.ChannelAr = null;
8898
+ this.RequestField = null;
8899
+ this.RequesterId = null;
8900
+ this.RequesterIdEn = null;
8901
+ this.closeCreate = new EventEmitter();
8902
+ this.ParameterData = null;
8903
+ this.DocumentList = [];
8904
+ this.createFormData = {};
8905
+ this.pageForm = {};
8906
+ this.translatePipe = new TranslatePipe(this.globalService);
9125
8907
  }
9126
- ngOnDestroy() {
9127
- this.globalService.showBackIcon = false;
8908
+ ngOnInit() {
8909
+ this.route.paramMap.subscribe((res) => {
8910
+ if (this.ViewFrom != "Popup") {
8911
+ this.EntityTypeId = Number(res.get('EntityTypeId'));
8912
+ 8;
8913
+ }
8914
+ // this.EntityTypeId = Number(res.get('EntityTypeId'));
8915
+ });
8916
+ this.getActiveEntityForm();
8917
+ this.getAssignedDocumentList();
8918
+ this.ParameterData = {
8919
+ IssueType: this.IssueType,
8920
+ IssueTypeEn: this.IssueTypeEn,
8921
+ IssueTypeAr: this.IssueTypeAr,
8922
+ IssueGroup: this.IssueGroup,
8923
+ IssueGroupEn: this.IssueGroupEn,
8924
+ IssueGroupAr: this.IssueGroupAr,
8925
+ Issue: this.IssueSubGroup,
8926
+ IssueEn: this.IssueSubGroupEn,
8927
+ IssueAr: this.IssueSubGroupAr,
8928
+ CreatedByUserType: this.CreatedByUserType,
8929
+ Source: this.Source,
8930
+ Channel: this.Channel,
8931
+ ChannelEn: this.ChannelEn,
8932
+ ChannelAr: this.ChannelAr,
8933
+ UserType: this.RequesterIdEn,
8934
+ CustomerId: this.RequesterId,
8935
+ };
9128
8936
  }
9129
- closeModelPopup() {
9130
- this.actionPopup = false;
8937
+ getActiveEntityForm() {
8938
+ this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8939
+ this.EntityFormId = res.RecId;
8940
+ }, (error) => {
8941
+ console.log(error);
8942
+ });
9131
8943
  }
9132
- GetFormattedDate(_date) {
9133
- var todayTime = new Date(_date);
9134
- var month = todayTime.getMonth() + 1;
9135
- var day = todayTime.getDate();
9136
- var year = todayTime.getFullYear();
9137
- return year + "-" + month + "-" + day;
8944
+ getAssignedDocumentList() {
8945
+ this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
8946
+ this.DocumentList = success;
8947
+ this.DocumentList.map(x => {
8948
+ x.FileList = [];
8949
+ return x;
8950
+ });
8951
+ }, (error) => {
8952
+ });
9138
8953
  }
9139
- assignSubmit() {
9140
- if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9141
- this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9142
- this.submitData = {
9143
- recId: this.RecId,
9144
- ActionStatus: this.actionFormActionId,
9145
- AssignedTo: this.assignmentForm.value.AssignedTo,
9146
- Description: this.assignmentForm.value.Description,
9147
- Comments: this.assignmentForm.value.Comments,
9148
- };
8954
+ docFileChange(event, item) {
8955
+ let _file = event.target.files;
8956
+ item.FileList = [];
8957
+ if (_file && _file.length > 0) {
8958
+ let _Sfile = _file;
8959
+ for (let index = 0; index < _file.length; index++) {
8960
+ let _file = {
8961
+ File: _Sfile.item(index),
8962
+ FileName: _Sfile.item(index).name
8963
+ };
8964
+ item.FileList.push(_file);
8965
+ }
8966
+ item.File = _file.item(0);
8967
+ item.FileName = _file.item(0).name;
9149
8968
  }
9150
8969
  else {
9151
- this.submitData = {
9152
- recId: this.RecId,
9153
- ActionStatus: this.actionFormActionId,
9154
- AssignedTo: this.assignmentForm.value.AssignedTo,
9155
- TargetDate: this.targetDate,
9156
- Description: this.assignmentForm.value.Description,
9157
- Comments: this.assignmentForm.value.Comments,
9158
- };
8970
+ item.FileList = [];
8971
+ item.File = null;
8972
+ item.FileName = null;
9159
8973
  }
9160
- this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9161
- this.assignmentForm.reset();
9162
- this.closeModelPopup();
9163
- this.taskService.showCommentPopup = false;
9164
- this.taskService.close();
9165
- this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9166
- // Swal.fire(x);
9167
- Swal.fire({
9168
- title: this.translatePipe.transform(x),
9169
- });
9170
- this.getTaskDetails();
9171
- this.getComments();
9172
- }, (error) => {
9173
- this.assignmentForm.reset();
9174
- this.closeModelPopup();
9175
- this.taskService.showCommentPopup = false;
9176
- this.taskService.close();
9177
- // Swal.fire(error.error);
8974
+ }
8975
+ closeCreatePage() {
8976
+ // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
8977
+ this.closeCreate.emit({ Type: "Cancel" });
8978
+ }
8979
+ submitTicketCreate() {
8980
+ let CreateData = this.createFormData;
8981
+ if (!this.pageForm.valid) {
8982
+ // Swal.fire('Fill all mandatory fields', '', 'warning');
9178
8983
  Swal.fire({
9179
- title: this.translatePipe.transform(error.error),
8984
+ title: this.translatePipe.transform('Fill all mandatory fields'),
9180
8985
  });
9181
- // alert("err");
9182
- // error.error
9183
- });
9184
- }
9185
- getAssignmentByRefRecIdList(Criteria) {
9186
- this.HistoryListCriteria = Criteria;
9187
- if (this.RecId != null) {
9188
- this.globalService.dataLoader = true;
9189
- this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9190
- // alert("get");
9191
- this.loadGrid(x.Data, x.TotalCount);
9192
- this.globalService.dataLoader = false;
9193
- }, (error) => {
9194
- // Swal.fire(error);
9195
- // error.error
8986
+ return;
8987
+ }
8988
+ if (this.Type == "Edit") {
8989
+ if (!this.FormValues || !this.FormValues.RecId) {
8990
+ // Swal.fire("", "Form record not found", "warning");
9196
8991
  Swal.fire({
9197
- title: this.translatePipe.transform(error.error),
8992
+ title: this.translatePipe.transform('Form record not found'),
8993
+ });
8994
+ return;
8995
+ }
8996
+ CreateData.EntityTypeId = this.EntityTypeId;
8997
+ CreateData.RecId = this.FormValues.RecId;
8998
+ let _data = JSON.stringify(CreateData);
8999
+ this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
9000
+ // Swal.fire("Updated sucessfully");
9001
+ Swal.fire({
9002
+ title: this.translatePipe.transform('Updated sucessfully'),
9198
9003
  });
9004
+ this.pageForm.reset();
9005
+ this.closeCreate.emit({ Type: "Edit" });
9006
+ this.supportService.displayListPopUp = true;
9007
+ }, (error) => {
9008
+ console.log(error);
9199
9009
  });
9200
9010
  }
9201
- }
9202
- loadGrid(data, TotalRecord) {
9203
- if (data) {
9204
- if (data.length > 0)
9205
- this.gridServiceService.onGridRefresh.next({
9206
- isTrue: true,
9207
- list: data,
9208
- grid: 8,
9209
- count: data.length,
9210
- totalRecordCount: TotalRecord,
9011
+ else {
9012
+ CreateData.EntityTypeId = this.EntityTypeId;
9013
+ CreateData.IssueType = this.IssueType;
9014
+ CreateData.IssueGroup = this.IssueGroup;
9015
+ CreateData.Issue = this.IssueSubGroup;
9016
+ CreateData.Source = this.Source;
9017
+ CreateData.CreatedByUserType = this.CreatedByUserType;
9018
+ CreateData.Channel = this.Channel;
9019
+ if (this.RequestField && this.RequesterId) {
9020
+ CreateData[this.RequestField] = this.RequesterId;
9021
+ }
9022
+ let _data = JSON.stringify(CreateData);
9023
+ let checkFileMandatory = true;
9024
+ for (let index = 0; index < this.DocumentList.length; index++) {
9025
+ let doc = this.DocumentList[index];
9026
+ if (doc.IsManatory) {
9027
+ if (!(doc.FileList && doc.FileList.length > 0)) {
9028
+ checkFileMandatory = false;
9029
+ break;
9030
+ }
9031
+ }
9032
+ }
9033
+ if (!checkFileMandatory) {
9034
+ Swal.fire({
9035
+ title: this.translatePipe.transform('Attach the mandatory files'),
9211
9036
  });
9212
- else
9213
- this.gridServiceService.onGridRefresh.next({
9214
- isTrue: true,
9215
- list: [],
9216
- grid: 8,
9217
- count: 0,
9218
- totalRecordCount: 0,
9037
+ return;
9038
+ }
9039
+ let fileObj = [];
9040
+ this.DocumentList.map(x => {
9041
+ if (x.FileList && x.FileList.length > 0) {
9042
+ for (let index = 0; index < x.FileList.length; index++) {
9043
+ const element = x.FileList[index];
9044
+ let temp = { File: element.File, DoctypeRecId: x.RecId };
9045
+ fileObj.push(temp);
9046
+ }
9047
+ }
9048
+ });
9049
+ fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9050
+ const formData = new FormData();
9051
+ fileObj.forEach((f) => formData.append('fileUpload', f.File));
9052
+ this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9053
+ Swal.fire({
9054
+ title: this.translatePipe.transform('Created Successfully'),
9055
+ confirmButtonText: this.translatePipe.transform("Ok"),
9219
9056
  });
9220
- }
9221
- else
9222
- this.gridServiceService.onGridRefresh.next({
9223
- isTrue: true,
9224
- list: [],
9225
- grid: 8,
9226
- count: 0,
9227
- totalRecordCount: 0,
9057
+ this.pageForm.reset();
9058
+ this.closeCreate.emit({ Type: "Create", Data: res });
9059
+ this.supportService.displayListPopUp = true;
9060
+ // Swal.fire({
9061
+ // title: 'Created Successfully,Do you want to Continue? ',
9062
+ // showDenyButton: true,
9063
+ // showCancelButton: true,
9064
+ // denyButtonText: `Yes Go Details `,
9065
+ // cancelButtonText: `Create New`,
9066
+ // confirmButtonText: `No`,
9067
+ // }).then((result) => {
9068
+ // if (result.isConfirmed) {
9069
+ // this.pageForm.reset();
9070
+ // this.closeCreate.emit({ Type: "Create" });
9071
+ // } else if (result.isDenied) {
9072
+ // this.pageForm.reset();
9073
+ // this.router.navigate([
9074
+ // AllRoutes.Entity.DynamicTicketDetails,
9075
+ // res.RecId,
9076
+ // res.EntityTypeId,
9077
+ // ])
9078
+ // } else if (result.isDismissed) {
9079
+ // this.pageForm.reset();
9080
+ // }
9081
+ // })
9082
+ }, (error) => {
9083
+ console.log(error);
9228
9084
  });
9229
- }
9230
- getTaskAssignData() {
9231
- this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
9232
- }
9233
- submitComment(event) {
9234
- debugger;
9235
- if (event.keyCode == 13 && this.inputValue) {
9236
- this.globalService.submitComments.next({ message: this.inputValue });
9237
- this.inputValue = null;
9238
9085
  }
9239
9086
  }
9087
+ emitTicketCreateForm(CreateData, pageForm) {
9088
+ this.createFormData = CreateData;
9089
+ this.pageForm = pageForm;
9090
+ }
9240
9091
  }
9241
- SupportRequestDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, deps: [{ token: TaskService }, { token: EntityTypeSetupService }, { token: i3.FormBuilder }, { token: i2.ActivatedRoute }, { token: GridServiceService }, { token: TicketApiService }, { token: GlobalService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
9242
- SupportRequestDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: { EntityTypeRecId: "EntityTypeRecId", RecId: "RecId", ViewFrom: "ViewFrom", IsWfAction: "IsWfAction" }, ngImport: i0, template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n <ul class=\"attached_lists p-0 m-0\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"readonly\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n\r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name_Readonly\" >\r\n <span>{{item?.Name}}</span>\r\n <!-- <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span> -->\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: DynamicDetailsViewComponent, selector: "app-dynamic-details-view", inputs: ["ViewType", "EntityTypeId", "EntityFormId", "pageGroups", "defaultPageGroups", "PageGroupValues"] }, { kind: "component", type: ActivitiesCreateComponent, selector: "app-activities-create", inputs: ["IsHideCancelBtn", "EntityFormId", "EntityTypeId", "ActivityTypeId", "RefEntityTypeId", "RefTypeId", "ViewFrom", "ViewAction"], outputs: ["closeActivityCreate"] }, { kind: "component", type: ActivitiesViewComponent, selector: "app-activities-view", inputs: ["EntityFormId", "EntityTypeId", "ActivityTypeId", "RefTypeId", "FormData"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9092
+ SupportRequestCreateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, deps: [{ token: EntityTypeSetupService }, { token: AttachmentService }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: SupportRequestService }, { token: GlobalService }], target: i0.ɵɵFactoryTarget.Component });
9093
+ SupportRequestCreateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: { EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", ViewFrom: "ViewFrom", Type: "Type", FormValues: "FormValues", IssueType: "IssueType", IssueGroup: "IssueGroup", IssueSubGroup: "IssueSubGroup", IssueTypeEn: "IssueTypeEn", IssueGroupEn: "IssueGroupEn", IssueSubGroupEn: "IssueSubGroupEn", IssueTypeAr: "IssueTypeAr", IssueGroupAr: "IssueGroupAr", IssueSubGroupAr: "IssueSubGroupAr", Source: "Source", CreatedByUserType: "CreatedByUserType", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", RequestField: "RequestField", RequesterId: "RequesterId", RequesterIdEn: "RequesterIdEn" }, outputs: { closeCreate: "closeCreate" }, ngImport: i0, template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">\r\n {{ globalService.CurrentLanguage == 'Ar' ? (doc.DocumentNameAr ? doc.DocumentNameAr : (doc.DocumentName | translate)) :doc.DocumentName}}\r\n <!-- {{doc.DocumentName | translate}} -->\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9094
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
9244
9095
  type: Component,
9245
- args: [{ selector: 'app-support-request-details', template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n <ul class=\"attached_lists p-0 m-0\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"readonly\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n\r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name_Readonly\" >\r\n <span>{{item?.Name}}</span>\r\n <!-- <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span> -->\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"] }]
9246
- }], ctorParameters: function () { return [{ type: TaskService }, { type: EntityTypeSetupService }, { type: i3.FormBuilder }, { type: i2.ActivatedRoute }, { type: GridServiceService }, { type: TicketApiService }, { type: GlobalService }, { type: i2.Router }]; }, propDecorators: { EntityTypeRecId: [{
9096
+ args: [{ selector: 'app-support-request-create', template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">\r\n {{ globalService.CurrentLanguage == 'Ar' ? (doc.DocumentNameAr ? doc.DocumentNameAr : (doc.DocumentName | translate)) :doc.DocumentName}}\r\n <!-- {{doc.DocumentName | translate}} -->\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"] }]
9097
+ }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
9247
9098
  type: Input
9248
- }], RecId: [{
9099
+ }], EntityTypeId: [{
9249
9100
  type: Input
9250
9101
  }], ViewFrom: [{
9251
9102
  type: Input
9252
- }], IsWfAction: [{
9103
+ }], Type: [{
9104
+ type: Input
9105
+ }], FormValues: [{
9106
+ type: Input
9107
+ }], IssueType: [{
9108
+ type: Input
9109
+ }], IssueGroup: [{
9253
9110
  type: Input
9111
+ }], IssueSubGroup: [{
9112
+ type: Input
9113
+ }], IssueTypeEn: [{
9114
+ type: Input
9115
+ }], IssueGroupEn: [{
9116
+ type: Input
9117
+ }], IssueSubGroupEn: [{
9118
+ type: Input
9119
+ }], IssueTypeAr: [{
9120
+ type: Input
9121
+ }], IssueGroupAr: [{
9122
+ type: Input
9123
+ }], IssueSubGroupAr: [{
9124
+ type: Input
9125
+ }], Source: [{
9126
+ type: Input
9127
+ }], CreatedByUserType: [{
9128
+ type: Input
9129
+ }], Channel: [{
9130
+ type: Input
9131
+ }], ChannelEn: [{
9132
+ type: Input
9133
+ }], ChannelAr: [{
9134
+ type: Input
9135
+ }], RequestField: [{
9136
+ type: Input
9137
+ }], RequesterId: [{
9138
+ type: Input
9139
+ }], RequesterIdEn: [{
9140
+ type: Input
9141
+ }], closeCreate: [{
9142
+ type: Output
9254
9143
  }] } });
9255
9144
 
9256
- class AttachmentService {
9257
- constructor(http) {
9258
- this.http = http;
9259
- this.IsPopUp = false;
9145
+ class CreateFormComponent {
9146
+ constructor(globalService, supportService) {
9147
+ this.globalService = globalService;
9148
+ this.supportService = supportService;
9149
+ this.IsDropdownModel = true;
9150
+ this.Language = 'Eng';
9151
+ this.Channel = '3';
9152
+ this.ChannelEn = 'Portal';
9153
+ this.ChannelAr = 'صفحة العميل';
9154
+ this.closeCreateModel = new EventEmitter();
9155
+ this.selectedType = null;
9156
+ this.selectedSubGroup = null;
9157
+ this.selectedGroup = null;
9158
+ this.IssueTypeDDL = [];
9159
+ this.DropdownIssueSubgroup = [];
9160
+ this.isShowCreateRequest = false;
9161
+ this.CreateItemId = null;
9162
+ this.selectCaseItem = null;
9163
+ this.IssueType = "7";
9164
+ this.selectedCategory = null;
9165
+ this.IssueGroupName = "Ticket SubGroup";
9166
+ this.IssueAllList = [];
9167
+ this.IssueCaseList = [];
9260
9168
  }
9261
- getAttachmentList(MenuOrEntityRecId, attachmentType) {
9262
- const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
9263
- return this.http.get(url);
9169
+ ngOnInit() {
9170
+ if (this.PageType == "Complaint") {
9171
+ this.IssueType = "2";
9172
+ }
9173
+ else if (this.PageType == "Request") {
9174
+ this.IssueType = "7";
9175
+ }
9176
+ else if (this.PageType == "SelfService") {
9177
+ this.IssueType = "11";
9178
+ }
9179
+ else
9180
+ this.IssueType = "7";
9181
+ if (this.RequesterTypeId == "0000001") {
9182
+ this.RequesterTypeIdEn = "IndividualCustomer";
9183
+ }
9184
+ else if (this.RequesterTypeId == "0000002") {
9185
+ this.RequesterTypeIdEn = "BusinessCustomer";
9186
+ }
9187
+ else {
9188
+ this.RequesterTypeIdEn = null;
9189
+ }
9190
+ if (this.RequesterTypeId && this.PageType != "SelfService") {
9191
+ this.getIssueType();
9192
+ }
9193
+ if (this.PageType == "SelfService") {
9194
+ this.getIssueGroupRequesterMappingByRequesterType();
9195
+ }
9264
9196
  }
9265
- uploadAttachFile(obj, files) {
9266
- const url = Common.uploadAttachFile();
9267
- let data = {
9268
- refRecId: obj.refRecId,
9269
- DocumentType: obj.DocumentType,
9270
- DocumentVersion: obj.DocumentVersion,
9271
- Title: obj.Title,
9272
- FileName: obj.FileName
9273
- };
9274
- return this.http.post(url, files, { params: data });
9197
+ ClickedOut(event) {
9198
+ // console.log(event.target.className);
9199
+ if (event.target.className === "modal fade show") {
9200
+ this.closeModel();
9201
+ }
9275
9202
  }
9276
- getUploadFileList(DoctypeRecId, RefRecId) {
9277
- const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
9278
- let obj = {
9279
- DoctypeRecId: DoctypeRecId,
9280
- RefRecId: RefRecId
9281
- };
9282
- return this.http.get(url, { observe: 'response' }); //obj,
9203
+ closeModel(data, IsReload) {
9204
+ this.isShowCreateRequest = false;
9205
+ this.selectedCaseSelfService = null;
9206
+ this.closeCreateModel.emit({ IsClose: false, Data: data, IsReload: IsReload, PageType: this.PageType });
9283
9207
  }
9284
- ActivateUplaodFile(RecId) {
9285
- const url = Common.activateUploadFile(RecId);
9286
- return this.http.get(url);
9287
- }
9288
- InActivateUplaodFile(RecId) {
9289
- const url = Common.inActivateUploadFile(RecId);
9290
- return this.http.get(url);
9291
- }
9292
- getDocumentType(criteriastr) {
9293
- // let obj={
9294
- // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
9295
- // "Where":[],
9296
- // "SortOrder":{"field":null,"direction":null}
9297
- // };
9298
- // let criteria:any= JSON.stringify(obj);
9299
- const url = Common.getDocumentType();
9300
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9301
- }
9302
- getDocumentbyRecId(RecId) {
9303
- const url = Common.getDocumentTypeByRecId(RecId);
9304
- return this.http.get(url);
9305
- }
9306
- deleteDocumentType(RecId) {
9307
- const url = Common.deleteDocumentType(RecId);
9308
- const content_ = "";
9309
- let options_ = {
9310
- body: content_,
9311
- observe: "response",
9312
- responseType: "blob",
9313
- headers: new HttpHeaders({
9314
- "Content-Type": "application/json",
9315
- "Accept": "application/json"
9316
- })
9317
- };
9318
- return this.http.delete(url);
9319
- }
9320
- createDocumentType(Obj) {
9321
- const url = Common.createDocumentType();
9322
- return this.http.post(url, Obj, { observe: 'response' });
9323
- }
9324
- updateDocumentType(Obj) {
9325
- const url = Common.updateDocumentType();
9326
- return this.http.put(url, Obj, { observe: 'response' });
9327
- }
9328
- getAttachmentSetupList(criteriastr) {
9329
- // let obj={
9330
- // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
9331
- // "Where":[],
9332
- // "SortOrder":{"field":null,"direction":null}
9333
- // };
9334
- // let criteria:any= JSON.stringify(obj);
9335
- const url = Common.getAttachmentSetupList();
9336
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9337
- }
9338
- getDocumentTypeAssignUnAssign(MenuRecId) {
9339
- const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
9340
- return this.http.get(url);
9341
- }
9342
- assignDocumentType(data) {
9343
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9344
- let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9345
- return this.http.post(url_, null);
9346
- }
9347
- unassignDocumentType(data) {
9348
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9349
- let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9350
- return this.http.post(url_, data);
9351
- }
9352
- getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
9353
- const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
9354
- return this.http.get(url);
9208
+ selectSubGroup(item, IsHideForm) {
9209
+ item.showRequest = !item.showRequest;
9210
+ this.selectedSubGroup = item;
9211
+ if (IsHideForm) {
9212
+ return;
9213
+ }
9214
+ else {
9215
+ this.IsDropdownModel = false;
9216
+ this.showCreateRequest(this.selectedSubGroup);
9217
+ }
9355
9218
  }
9356
- assignDocumentTypeForEntityType(data) {
9357
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9358
- let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9359
- return this.http.post(url_, null);
9219
+ showCreateRequest(item) {
9220
+ item.showSubGroup = !item.showSubGroup;
9221
+ this.isShowCreateRequest = true;
9222
+ this.selectCaseItem = item;
9223
+ this.CreateItemId = item.CaseId;
9360
9224
  }
9361
- unassignDocumentTypeForEntityType(data) {
9362
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9363
- let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9364
- return this.http.post(url_, data);
9225
+ closePopupCreateView(Type, Data) {
9226
+ this.CreateItemId = null;
9227
+ this.isShowCreateRequest = false;
9228
+ this.selectedCaseSelfService = null;
9229
+ if (Type == 'Create') {
9230
+ if (Data && Data.RecId && Data.EntityTypeId) {
9231
+ let _data = Data;
9232
+ _data.RefRecId = Data.RecId;
9233
+ _data.CaseTypeId = Data.EntityTypeId;
9234
+ this.closeModel(_data, true);
9235
+ }
9236
+ }
9237
+ else {
9238
+ this.closeModel();
9239
+ }
9365
9240
  }
9366
- assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9367
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
9368
- return this.http.post(url_, data);
9241
+ getIssueType() {
9242
+ this.IsDropdownModel = true;
9243
+ this.IssueTypeDDL = [];
9244
+ this.DropdownIssueSubgroup = [];
9245
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9246
+ this.IssueTypeDDL = res;
9247
+ if (res) {
9248
+ this.IssueTypeDDL = res.filter(x => x.IssueType == this.IssueType);
9249
+ this.selectedType = this.IssueTypeDDL[0];
9250
+ this.selectType(this.selectedType);
9251
+ }
9252
+ }, (error) => {
9253
+ console.log(error);
9254
+ });
9369
9255
  }
9370
- unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9371
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
9372
- return this.http.post(url_, data);
9256
+ selectType(item) {
9257
+ this.IssueTypeDDL = this.IssueTypeDDL.map((x) => {
9258
+ if (x.IssueType != item.IssueType) {
9259
+ x.showGroup = false;
9260
+ x.showCategory = false;
9261
+ }
9262
+ if (x.IssueGroup) {
9263
+ x.IssueGroup.map((x) => {
9264
+ x.showSubGroup = false;
9265
+ });
9266
+ }
9267
+ if (x.Category) {
9268
+ x.Category.map((x) => {
9269
+ x.showCase = false;
9270
+ });
9271
+ }
9272
+ return x;
9273
+ });
9274
+ if (item.IssueGroup) {
9275
+ item.showGroup = !item.showGroup;
9276
+ this.selectedGroup = null;
9277
+ this.selectedSubGroup = null;
9278
+ }
9279
+ if (item.Category) {
9280
+ item.showCategory = !item.showCategory;
9281
+ this.selectedCategory = null;
9282
+ this.selectCaseItem = null;
9283
+ }
9284
+ this.selectedType = item;
9373
9285
  }
9374
- getDocumentAssignList(Criteria, EntityRecId) {
9375
- const url = Common.getDocumentAssignList(EntityRecId);
9376
- return this.http.get(url);
9286
+ selectGroup(item, Type) {
9287
+ this.IssueGroupName = item.IssueGroupEn;
9288
+ Type.IssueGroup = Type.IssueGroup.map((x) => {
9289
+ if (x.IssueGroup != item.IssueGroup) {
9290
+ x.showSubGroup = false;
9291
+ }
9292
+ return x;
9293
+ });
9294
+ item.showSubGroup = !item.showSubGroup;
9295
+ this.selectedGroup = item;
9296
+ this.selectedSubGroup = null;
9297
+ this.DropdownIssueSubgroup = item.Issue;
9377
9298
  }
9378
- open() {
9379
- this.IsPopUp = true;
9299
+ getIssueGroupRequesterMappingByRequesterType() {
9300
+ this.IssueAllList = [];
9301
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9302
+ this.IssueAllList = res.filter(x => x.IssueType == Number(this.IssueType));
9303
+ this.IssueCaseList = [];
9304
+ this.IssueAllList.forEach(x => {
9305
+ x.IssueGroup.forEach(group => {
9306
+ this.IssueCaseList.push(...group.Issue);
9307
+ });
9308
+ });
9309
+ // this.IssueCaseList.map(x => {
9310
+ // if (x.IssueImage && !x.IssueImage.includes("Account/ShowImageByPath")) {
9311
+ // x.IssueImage = "/Account/ShowImageByPath?_Path=" + x.IssueImage
9312
+ // }
9313
+ // });
9314
+ }, (error) => {
9315
+ console.log(error);
9316
+ });
9380
9317
  }
9381
- close() {
9382
- this.IsPopUp = false;
9318
+ selectCase(item) {
9319
+ console.log('caselst', item);
9320
+ this.selectedCaseSelfService = item;
9383
9321
  }
9384
- getSideMenuData() {
9385
- let url = environment.ServerUrl + "entitytype/productivitymenuitems";
9386
- return this.http.get(url);
9322
+ openSelfServiceForm() {
9323
+ this.IsDropdownModel = false;
9324
+ this.showCreateRequest(this.selectedCaseSelfService);
9387
9325
  }
9388
- getMenuItemData(criteriastr) {
9389
- let url = environment.ServerUrl + "security/menuitemsmap";
9390
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9326
+ }
9327
+ CreateFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CreateFormComponent, deps: [{ token: GlobalService }, { token: SupportRequestService }], target: i0.ɵɵFactoryTarget.Component });
9328
+ CreateFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CreateFormComponent, selector: "lib-create-form", inputs: { IsDropdownModel: "IsDropdownModel", PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr" }, outputs: { closeCreateModel: "closeCreateModel" }, ngImport: i0, template: "<div class=\"modal fade show\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':IsDropdownModel,'modal-lg':!IsDropdownModel}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} \r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n {{globalService.CurrentLanguage =='Ar' ?\r\n (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) :\r\n selectedType.IssueTypeEn }}\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n {{'SelfService'|translate}}\r\n </ng-container>\r\n \r\n \r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-container *ngIf=\"PageType != 'SelfService' && IssueTypeDDL.length > 0\">\r\n\r\n <div class=\"\" *ngIf=\"IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n </div>\r\n \r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <ng-container *ngIf=\"PageType == 'SelfService' && IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Case Type'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdAr\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdEn\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedCaseSelfService\"\r\n (click)=\"openSelfServiceForm()\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n \r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr\r\n : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> >\r\n\r\n <ng-container *ngIf=\"selectedType.IssueGroup;else elseCategory\">\r\n\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ?\r\n selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) :\r\n selectedGroup?.IssueGroupEn }}</span> >\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ?\r\n selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) :\r\n selectedSubGroup?.IssueEn }}</span> >\r\n\r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ?\r\n selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) :\r\n selectedCategory?.CategoryIdEn }}</span> >\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n <span>{{PageType |translate}} > {{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr :\r\n (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </ng-container>\r\n \r\n <app-support-request-create *ngIf=\"CreateItemId\" class=\"support_req_div\" [ViewFrom]=\"'Popup'\"\r\n [IssueType]=\"selectedType?.IssueType\" [IssueTypeEn]=\"((PageType != 'SelfService') ? selectedType?.IssueTypeEn : 'Customer Self Service')\"\r\n [IssueTypeAr]=\"selectedType?.IssueTypeAr\" [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\" [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\"\r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CreateFormComponent, decorators: [{
9330
+ type: Component,
9331
+ args: [{ selector: 'lib-create-form', template: "<div class=\"modal fade show\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':IsDropdownModel,'modal-lg':!IsDropdownModel}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} \r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n {{globalService.CurrentLanguage =='Ar' ?\r\n (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) :\r\n selectedType.IssueTypeEn }}\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n {{'SelfService'|translate}}\r\n </ng-container>\r\n \r\n \r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-container *ngIf=\"PageType != 'SelfService' && IssueTypeDDL.length > 0\">\r\n\r\n <div class=\"\" *ngIf=\"IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n </div>\r\n \r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <ng-container *ngIf=\"PageType == 'SelfService' && IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Case Type'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdAr\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdEn\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedCaseSelfService\"\r\n (click)=\"openSelfServiceForm()\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n \r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr\r\n : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> >\r\n\r\n <ng-container *ngIf=\"selectedType.IssueGroup;else elseCategory\">\r\n\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ?\r\n selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) :\r\n selectedGroup?.IssueGroupEn }}</span> >\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ?\r\n selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) :\r\n selectedSubGroup?.IssueEn }}</span> >\r\n\r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ?\r\n selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) :\r\n selectedCategory?.CategoryIdEn }}</span> >\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n <span>{{PageType |translate}} > {{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr :\r\n (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </ng-container>\r\n \r\n <app-support-request-create *ngIf=\"CreateItemId\" class=\"support_req_div\" [ViewFrom]=\"'Popup'\"\r\n [IssueType]=\"selectedType?.IssueType\" [IssueTypeEn]=\"((PageType != 'SelfService') ? selectedType?.IssueTypeEn : 'Customer Self Service')\"\r\n [IssueTypeAr]=\"selectedType?.IssueTypeAr\" [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\" [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\"\r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n</div>" }]
9332
+ }], ctorParameters: function () { return [{ type: GlobalService }, { type: SupportRequestService }]; }, propDecorators: { IsDropdownModel: [{
9333
+ type: Input
9334
+ }], PageType: [{
9335
+ type: Input
9336
+ }], RequesterTypeId: [{
9337
+ type: Input
9338
+ }], RequesterTypeIdEn: [{
9339
+ type: Input
9340
+ }], RequesterId: [{
9341
+ type: Input
9342
+ }], RequesterField: [{
9343
+ type: Input
9344
+ }], Language: [{
9345
+ type: Input
9346
+ }], HostUrl: [{
9347
+ type: Input
9348
+ }], Host: [{
9349
+ type: Input
9350
+ }], Source: [{
9351
+ type: Input
9352
+ }], Channel: [{
9353
+ type: Input
9354
+ }], ChannelEn: [{
9355
+ type: Input
9356
+ }], ChannelAr: [{
9357
+ type: Input
9358
+ }], closeCreateModel: [{
9359
+ type: Output
9360
+ }] } });
9361
+
9362
+ class SendemailComponent {
9363
+ constructor(fb, supportService) {
9364
+ this.fb = fb;
9365
+ this.supportService = supportService;
9366
+ this.closeSendEmailModel = new EventEmitter();
9367
+ this.SendEmailForm = this.fb.group({
9368
+ RefTypeId: [null, [Validators.required]],
9369
+ EntityTypeId: [null, [Validators.required]],
9370
+ Subject: [null, [Validators.required]],
9371
+ Mailtext: [null, [Validators.required]],
9372
+ CC: [null, [Validators.required]],
9373
+ Attachment: [null],
9374
+ });
9375
+ this.fileToUpload = null;
9391
9376
  }
9392
- getSingleMenuItemData(RecId) {
9393
- let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
9394
- return this.http.get(url);
9377
+ ngOnInit() {
9378
+ if (this.EntityTypeId && this.RecId) {
9379
+ this.SendEmailForm.reset();
9380
+ this.SendEmailForm.patchValue({
9381
+ EntityTypeId: this.EntityTypeId,
9382
+ RefTypeId: this.RecId
9383
+ });
9384
+ }
9395
9385
  }
9396
- createMenuItemData(data) {
9397
- let url = environment.ServerUrl + "security/menuitemsmap/add";
9398
- return this.http.post(url, data);
9386
+ handleFileInput(event) {
9387
+ this.fileToUpload = event.target.files;
9399
9388
  }
9400
- updateMenuItemData(data) {
9401
- let url = environment.ServerUrl + "security/menuitemsmap/update";
9402
- return this.http.put(url, data);
9389
+ submit(values) {
9390
+ const data = {
9391
+ EntityTypeId: values.EntityTypeId,
9392
+ RefTypeId: values.RefTypeId,
9393
+ Subject: values.Subject,
9394
+ Mailtext: values.Mailtext,
9395
+ CC: values.CC,
9396
+ };
9397
+ this.supportService.sendEmail(data, this.fileToUpload).subscribe((res => {
9398
+ this.closeModel();
9399
+ this.SendEmailForm.reset();
9400
+ Swal.fire('Created Successfully', 'Success');
9401
+ }), (error => {
9402
+ console.log(error);
9403
+ this.closeModel();
9404
+ this.SendEmailForm.reset();
9405
+ Swal.fire(errorMessageType(error));
9406
+ }));
9403
9407
  }
9404
- deleteMenuItemData(RecId) {
9405
- let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
9406
- return this.http.delete(url);
9408
+ closeModel() {
9409
+ this.closeSendEmailModel.emit({ IsClose: false, Data: null, IsReload: false });
9407
9410
  }
9408
9411
  }
9409
- AttachmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
9410
- AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
9411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
9412
- type: Injectable,
9413
- args: [{
9414
- providedIn: 'root'
9415
- }]
9416
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
9417
- const Common = {
9418
- getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
9419
- uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
9420
- getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
9421
- activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
9422
- inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
9423
- getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
9424
- getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
9425
- deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
9426
- createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
9427
- updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
9428
- getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
9429
- getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
9430
- assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
9431
- unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
9432
- getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
9433
- getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
9434
- assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
9435
- unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
9436
- assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
9437
- unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
9438
- };
9439
- const BaseUrl = {
9440
- commonURL: "/api/v1/common",
9441
- };
9412
+ SendemailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SendemailComponent, deps: [{ token: i3.FormBuilder }, { token: SupportRequestService }], target: i0.ɵɵFactoryTarget.Component });
9413
+ SendemailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SendemailComponent, selector: "lib-sendemail", inputs: { EntityTypeId: "EntityTypeId", RecId: "RecId" }, outputs: { closeSendEmailModel: "closeSendEmailModel" }, ngImport: i0, template: "<div class=\"modal fade show\" id=\"\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"\r\n aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\" role=\"document\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Send Email' | translate}}\r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <form [formGroup]=\"SendEmailForm\" (submit)=\"submit(SendEmailForm.value)\">\r\n <div class=\"form-group row\">\r\n <label for=\"CC\" class=\"col-sm-4 col-form-label\">{{'CC'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"text\" class=\"form-control\" id=\"CC\" formControlName=\"CC\">\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"SendEmailForm.get('CC')?.touched &&\r\n SendEmailForm.get('CC')?.hasError('required')\" class=\"error-message\">{{'required'|translate}}.</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Subject\" class=\"col-sm-4 col-form-label\">{{'Subject'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Subject\" class=\"form-control\" id=\"Subject\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Subject')?.touched && SendEmailForm.get('Subject')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Mailtext\" class=\"col-sm-4 col-form-label\">{{'Message'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Mailtext\" class=\"form-control\" id=\"Mailtext\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Mailtext')?.touched \r\n && SendEmailForm.get('Mailtext')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Attachment\" class=\"col-sm-4 col-form-label\">{{'Attachment'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"file\" formControlName=\"Attachment\" (change)=\"handleFileInput($event)\">\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" [disabled]=\"SendEmailForm.invalid\" class=\"btn btn-primary float-right\">{{'Send'|translate}}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\" (click)=\"closeModel()\">{{'Close'|translate}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9414
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SendemailComponent, decorators: [{
9415
+ type: Component,
9416
+ args: [{ selector: 'lib-sendemail', template: "<div class=\"modal fade show\" id=\"\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"\r\n aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\" role=\"document\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Send Email' | translate}}\r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <form [formGroup]=\"SendEmailForm\" (submit)=\"submit(SendEmailForm.value)\">\r\n <div class=\"form-group row\">\r\n <label for=\"CC\" class=\"col-sm-4 col-form-label\">{{'CC'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"text\" class=\"form-control\" id=\"CC\" formControlName=\"CC\">\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"SendEmailForm.get('CC')?.touched &&\r\n SendEmailForm.get('CC')?.hasError('required')\" class=\"error-message\">{{'required'|translate}}.</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Subject\" class=\"col-sm-4 col-form-label\">{{'Subject'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Subject\" class=\"form-control\" id=\"Subject\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Subject')?.touched && SendEmailForm.get('Subject')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Mailtext\" class=\"col-sm-4 col-form-label\">{{'Message'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Mailtext\" class=\"form-control\" id=\"Mailtext\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Mailtext')?.touched \r\n && SendEmailForm.get('Mailtext')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Attachment\" class=\"col-sm-4 col-form-label\">{{'Attachment'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"file\" formControlName=\"Attachment\" (change)=\"handleFileInput($event)\">\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" [disabled]=\"SendEmailForm.invalid\" class=\"btn btn-primary float-right\">{{'Send'|translate}}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\" (click)=\"closeModel()\">{{'Close'|translate}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
9417
+ }], ctorParameters: function () { return [{ type: i3.FormBuilder }, { type: SupportRequestService }]; }, propDecorators: { EntityTypeId: [{
9418
+ type: Input
9419
+ }], RecId: [{
9420
+ type: Input
9421
+ }], closeSendEmailModel: [{
9422
+ type: Output
9423
+ }] } });
9442
9424
 
9443
- class SupportRequestCreateComponent {
9444
- constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
9445
- this.entityTypeSetup = entityTypeSetup;
9446
- this.attachmentService = attachmentService;
9447
- this.router = router;
9448
- this.route = route;
9449
- this.supportService = supportService;
9425
+ class SupportRequestDetailsComponent {
9426
+ constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
9427
+ this.taskService = taskService;
9428
+ this.EntityTypeSetupService = EntityTypeSetupService;
9429
+ this.fb = fb;
9430
+ this.actRoute = actRoute;
9431
+ this.gridServiceService = gridServiceService;
9432
+ this.ticketService = ticketService;
9450
9433
  this.globalService = globalService;
9451
- this.EntityFormId = null;
9452
- this.EntityTypeId = null;
9434
+ this.route = route;
9453
9435
  this.ViewFrom = "Page";
9454
- this.Type = "Create";
9455
- this.FormValues = null;
9456
- this.IssueType = null;
9457
- this.IssueGroup = null;
9458
- this.IssueSubGroup = null;
9459
- this.IssueTypeEn = null;
9460
- this.IssueGroupEn = null;
9461
- this.IssueSubGroupEn = null;
9462
- this.IssueTypeAr = null;
9463
- this.IssueGroupAr = null;
9464
- this.IssueSubGroupAr = null;
9465
- this.Source = null;
9466
- this.CreatedByUserType = null;
9467
- this.Channel = null;
9468
- this.ChannelEn = null;
9469
- this.ChannelAr = null;
9470
- this.RequestField = null;
9471
- this.RequesterId = null;
9472
- this.RequesterIdEn = null;
9473
- this.closeCreate = new EventEmitter();
9474
- this.ParameterData = null;
9475
- this.DocumentList = [];
9476
- this.createFormData = {};
9477
- this.pageForm = {};
9436
+ this.IsWfAction = false;
9437
+ this.Language = 'Eng';
9438
+ this.Channel = '3';
9439
+ this.ChannelEn = 'Portal';
9440
+ this.ChannelAr = 'صفحة العميل';
9441
+ this.closeCreateModel = new EventEmitter();
9442
+ this.environment = environment;
9443
+ // _TaskDetail: TaskVM =null;
9444
+ this._TaskDetail = null;
9445
+ this.stageId = null;
9446
+ this.EntityTypeId = null;
9447
+ this.EntityTypeIdRecId = null;
9448
+ this.refRecId = null;
9449
+ this.EntityFormId = null;
9450
+ this.EntityPageGroupsData = [];
9451
+ this.EntityDefaultPageGroupsData = [];
9452
+ this.pageTitle = "Process Stage";
9453
+ this.pageDesp = "Process Stage";
9454
+ this.selectMode = E_SelectMode.Multi;
9455
+ this.isAttach = false;
9456
+ this.isCreate = false;
9457
+ this.isEdit = false;
9458
+ this.isDelete = false;
9459
+ this.isExport = false;
9460
+ this.gridActionList = [];
9461
+ this.columnDefs = [
9462
+ { Field: 'ProcessStage', Name: 'Process Stage Id' },
9463
+ { Field: 'ProcessStageEn', Name: 'Process Stage' },
9464
+ { Field: 'Comments', Name: 'Comments' },
9465
+ { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
9466
+ { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
9467
+ ];
9468
+ this.commentsData = [];
9469
+ this.commentsDataCount = 0;
9470
+ this.Searchcriteria = {
9471
+ Pagging: {
9472
+ PageNo: 1,
9473
+ PageSize: 10,
9474
+ },
9475
+ Where: [],
9476
+ SortOrder: 1,
9477
+ };
9478
+ this.displayPopupCreateView = false;
9479
+ this.CreateItemId = null;
9480
+ this.selectedActivityItem = null;
9481
+ this.commentsActivityItem = null;
9482
+ this.detailsEntityTypeId = null;
9483
+ this.Activity = null;
9484
+ this.ActivityType = [];
9485
+ this.ActivityTypeReadonly = [];
9486
+ this.TotalActivity = 0;
9487
+ this.StatusAndStageList = [];
9488
+ this.showStageDetails = false;
9489
+ this.selectedProcessList = [];
9490
+ this.tabDisplayView = 1;
9491
+ this.SortingField = { field: null, direction: null };
9492
+ this.activitySearchcriteria = {
9493
+ Pagging: {
9494
+ PageNo: 1,
9495
+ PageSize: 10,
9496
+ },
9497
+ Where: [],
9498
+ SortOrder: this.SortingField,
9499
+ };
9500
+ this.TaskList = [];
9501
+ this.ProcessStageList = [];
9502
+ this.TimelineList = [];
9503
+ this.TimelineListReadonly = [];
9504
+ this.TaskCommentFile = null;
9505
+ this.wfActionData = [
9506
+ { id: 1, name: "New" },
9507
+ { id: 2, name: "Forward" },
9508
+ { id: 3, name: "Reply" },
9509
+ { id: 4, name: "Esculation" },
9510
+ { id: 5, name: "Delegation" },
9511
+ { id: 6, name: "Complete" },
9512
+ { id: 7, name: "Cancel" },
9513
+ ];
9514
+ this.wfStageAction = null;
9515
+ this.action = null;
9516
+ this.showWorkflowPopup = false;
9517
+ this.workflowEntityFormId = null;
9518
+ this.assignmentForm = this.fb.group({
9519
+ ActionStatus: [''],
9520
+ AssignedTo: [''],
9521
+ TargetDate: [''],
9522
+ Description: [''],
9523
+ Comments: [''],
9524
+ });
9525
+ this.updateStatusAssignTo = [];
9526
+ this.actionPopup = false;
9527
+ this.targetDate = null;
9528
+ this.columnDef = [
9529
+ { Field: "Description", Name: "Description" },
9530
+ { Field: "AssignedTo", Name: "AssignedTo" },
9531
+ { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
9532
+ { Field: "IsDoneEn", Name: "IsDone", },
9533
+ ];
9478
9534
  this.translatePipe = new TranslatePipe(this.globalService);
9535
+ this.IsShowCreatePopup = false;
9536
+ this.IsShowSendEmailPopup = false;
9537
+ }
9538
+ ngOnInit() {
9539
+ // this.actRoute.paramMap.subscribe((res) => {
9540
+ //
9541
+ // console.log(res);
9542
+ // if (this.ViewFrom != 'Popup') {
9543
+ // this.RecId = Number(res.get('RecId'));
9544
+ // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
9545
+ // }
9546
+ // });
9547
+ this.getTaskDetails();
9548
+ this.getActivity();
9549
+ this.getWorkflowStatusWithStage();
9550
+ // this.getAssignGroupData();
9551
+ // this.getTaskAssignData();
9552
+ }
9553
+ getTaskDetails() {
9554
+ if (this.RecId != null) {
9555
+ this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
9556
+ // alert("a");
9557
+ // ;
9558
+ this._TaskDetail = x;
9559
+ this.stageId = x.ProcessStage;
9560
+ this.EntityTypeId = x.EntityTypeId;
9561
+ this.EntityTypeIdRecId = x.EntityTypeRecId;
9562
+ this.refRecId = x.RecId;
9563
+ this.GetPageList(this.storeCriteria);
9564
+ if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
9565
+ this._TaskDetail.uploadFiles.map(x => {
9566
+ if (x.Ext) {
9567
+ x.ExtSm = x.Ext.toLowerCase();
9568
+ x.ExtSm = x.ExtSm.replace('.', '');
9569
+ }
9570
+ });
9571
+ }
9572
+ this.getActivities();
9573
+ this.getEntityFormDetails();
9574
+ // this.getComments();
9575
+ if (this.IsWfAction) {
9576
+ this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
9577
+ }
9578
+ }, (error) => error.error);
9579
+ }
9580
+ }
9581
+ getEntityFormDetails() {
9582
+ this.EntityDefaultPageGroupsData = [];
9583
+ this.EntityPageGroupsData = [];
9584
+ this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9585
+ if (res.FormData) {
9586
+ let _FormData = JSON.parse(res.FormData);
9587
+ if (_FormData.PageGroup) {
9588
+ if (Array.isArray(_FormData.PageGroup)) {
9589
+ this.EntityPageGroupsData = _FormData.PageGroup;
9590
+ }
9591
+ }
9592
+ if (_FormData.defaultPageGroups) {
9593
+ if (Array.isArray(_FormData.defaultPageGroups)) {
9594
+ this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
9595
+ }
9596
+ }
9597
+ }
9598
+ this.EntityFormId = res.RecId;
9599
+ }, (error) => {
9600
+ console.log(error);
9601
+ });
9602
+ }
9603
+ getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
9604
+ // alert("zz");
9605
+ let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
9606
+ this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
9607
+ // this.wfActionData = res;
9608
+ this.getTaskDetails();
9609
+ console.log(res);
9610
+ }, (error) => {
9611
+ var _a, _b, _c;
9612
+ error.error;
9613
+ if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
9614
+ let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
9615
+ if (msg && msg.msg) {
9616
+ msg = msg.msg;
9617
+ }
9618
+ else {
9619
+ msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
9620
+ }
9621
+ Swal.fire(this.translatePipe.transform(msg));
9622
+ }
9623
+ else {
9624
+ Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
9625
+ }
9626
+ });
9627
+ }
9628
+ getComments() {
9629
+ // alert("getcommends");
9630
+ if (this.refRecId != null) {
9631
+ this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
9632
+ // alert("getcommends");
9633
+ this.commentsData = x.Data;
9634
+ this.commentsDataCount = x.TotalCount;
9635
+ }, (error) => {
9636
+ // Swal.fire(error);
9637
+ Swal.fire({
9638
+ title: this.translatePipe.transform(error.error),
9639
+ });
9640
+ // error.error
9641
+ });
9642
+ }
9643
+ }
9644
+ getActivity() {
9645
+ //this.EntityType = data.EntityType;
9646
+ this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
9647
+ // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
9648
+ .subscribe((res) => {
9649
+ this.ActivityFields = res.Data;
9650
+ if (this.ActivityFields.length > 0) {
9651
+ const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
9652
+ this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
9653
+ let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
9654
+ this.ActivityFields.push(taskActivity);
9655
+ this.openDefaultComments();
9656
+ }
9657
+ });
9658
+ }
9659
+ getActivityFileUploads(item) {
9660
+ if (item.showform && item.RecId && item.ActivityTypeId) {
9661
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9662
+ .subscribe((res) => {
9663
+ if (res && res.length > 0) {
9664
+ item.uploadFiles = res;
9665
+ }
9666
+ });
9667
+ }
9668
+ }
9669
+ getActivityFileUploadsReadonly(item) {
9670
+ if (item.RecId && item.ActivityTypeId) {
9671
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9672
+ .subscribe((res) => {
9673
+ if (res && res.length > 0) {
9674
+ item.uploadFiles = res;
9675
+ }
9676
+ this.ActivityTypeReadonly.push(item);
9677
+ });
9678
+ }
9679
+ }
9680
+ addEvents(data) {
9681
+ this.openPopupCreatePage(data);
9682
+ }
9683
+ openPopupCreatePage(item) {
9684
+ this.CreateItemId = null;
9685
+ setTimeout(() => (this.CreateItemId = item.RecId), 0);
9686
+ this.selectedActivityItem = item;
9687
+ if (item.Description != 'Comments')
9688
+ this.displayPopupCreateView = true;
9689
+ // this.Activity=item.RecId;
9690
+ }
9691
+ closePopupCreateView(Type) {
9692
+ this.CreateItemId = null;
9693
+ this.displayPopupCreateView = false;
9694
+ if (Type == 'Create') {
9695
+ this.getActivities();
9696
+ this.openDefaultComments();
9697
+ }
9698
+ }
9699
+ slider(direction, Id) {
9700
+ this.slide(direction, Id);
9701
+ }
9702
+ slide(direction, Id) {
9703
+ let container = document.getElementById(Id);
9704
+ let scrollCompleted = 0;
9705
+ let slideVar = setInterval(function () {
9706
+ if (direction == 'left') {
9707
+ container.scrollLeft -= 50;
9708
+ }
9709
+ else {
9710
+ container.scrollLeft += 50;
9711
+ }
9712
+ scrollCompleted += 10;
9713
+ if (scrollCompleted >= 50) {
9714
+ window.clearInterval(slideVar);
9715
+ }
9716
+ }, 50);
9717
+ }
9718
+ getWorkflowStatusWithStage() {
9719
+ this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
9720
+ .subscribe((res) => {
9721
+ // alert("StatusAndStageList");
9722
+ this.StatusAndStageList = res.Data;
9723
+ // .sort((a, b) => {
9724
+ // if (a.StageId < b.StageId) return -1;
9725
+ // else if (a.StageId > b.StageId) return 1;
9726
+ // else return 0;
9727
+ // });
9728
+ let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
9729
+ this.StatusAndStageList.splice(showallIndex, 1);
9730
+ let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
9731
+ this.StatusAndStageList.splice(showPendingIndex, 1);
9732
+ }, (error) => {
9733
+ var _a;
9734
+ console.log(error);
9735
+ Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9736
+ });
9737
+ }
9738
+ selectProcess(item) {
9739
+ if (this.selectedProcess)
9740
+ this.showStageDetails = false;
9741
+ if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
9742
+ setTimeout(() => (this.selectedProcess = null), 500);
9743
+ }
9744
+ else {
9745
+ this.showStageDetails = true;
9746
+ this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
9747
+ this.selectedProcess =
9748
+ this.selectedProcessList[this.selectedProcessList.length - 1];
9749
+ }
9479
9750
  }
9480
- ngOnInit() {
9481
- this.route.paramMap.subscribe((res) => {
9482
- if (this.ViewFrom != "Popup") {
9483
- this.EntityTypeId = Number(res.get('EntityTypeId'));
9484
- 8;
9485
- }
9486
- // this.EntityTypeId = Number(res.get('EntityTypeId'));
9751
+ closeProcess() {
9752
+ this.showStageDetails = false;
9753
+ setTimeout(() => (this.selectedProcess = null), 500);
9754
+ }
9755
+ gridChangeTabs(data) {
9756
+ this.tabDisplayView = Number(data);
9757
+ }
9758
+ loadMoreActivities() {
9759
+ this.activitySearchcriteria.Pagging.PageSize += 10;
9760
+ this.getActivities();
9761
+ }
9762
+ getActivities() {
9763
+ // let ActivityId = 5;
9764
+ this.EntityTypeSetupService
9765
+ .getDynamicByEntityRefrecidwithoutCriteria(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
9766
+ .subscribe((res) => {
9767
+ this.ActivityType = res.Data;
9768
+ if (res && res.Data)
9769
+ this.ActivityTypeReadonly = [];
9770
+ res.Data.forEach(x => {
9771
+ this.getActivityFileUploadsReadonly(x);
9772
+ });
9773
+ this.setTimeline();
9774
+ this.TotalActivity = res.TotalCount;
9775
+ console.log('Activity', res.Data);
9487
9776
  });
9488
- this.getActiveEntityForm();
9489
- this.getAssignedDocumentList();
9490
- this.ParameterData = {
9491
- IssueType: this.IssueType,
9492
- IssueTypeEn: this.IssueTypeEn,
9493
- IssueTypeAr: this.IssueTypeAr,
9494
- IssueGroup: this.IssueGroup,
9495
- IssueGroupEn: this.IssueGroupEn,
9496
- IssueGroupAr: this.IssueGroupAr,
9497
- Issue: this.IssueSubGroup,
9498
- IssueEn: this.IssueSubGroupEn,
9499
- IssueAr: this.IssueSubGroupAr,
9500
- CreatedByUserType: this.CreatedByUserType,
9501
- Source: this.Source,
9502
- Channel: this.Channel,
9503
- ChannelEn: this.ChannelEn,
9504
- ChannelAr: this.ChannelAr,
9505
- UserType: this.RequesterIdEn,
9506
- CustomerId: this.RequesterId,
9777
+ (error) => {
9778
+ error.error;
9507
9779
  };
9508
9780
  }
9509
- getActiveEntityForm() {
9510
- this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9511
- this.EntityFormId = res.RecId;
9512
- }, (error) => {
9513
- console.log(error);
9781
+ setTimeline() {
9782
+ this.TimelineList = [];
9783
+ this.TimelineListReadonly = [];
9784
+ if (Array.isArray(this.ActivityType)) {
9785
+ if (this.ActivityType.length > 0)
9786
+ this.TimelineList.push(...this.ActivityType);
9787
+ this.TimelineListReadonly.push(...this.ActivityType);
9788
+ }
9789
+ if (Array.isArray(this.ActivityTypeReadonly)) {
9790
+ if (this.ActivityTypeReadonly.length > 0)
9791
+ this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9792
+ }
9793
+ // if (Array.isArray(this.TaskList)) {
9794
+ // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9795
+ // }
9796
+ // if (Array.isArray(this.ProcessStageList)) {
9797
+ // if (this.ProcessStageList.length > 0) {
9798
+ // this.ProcessStageList = this.ProcessStageList.map((x) => {
9799
+ // x.Type = 'Workflow';
9800
+ // x.ActivityTypeIdEn = 'Comments';
9801
+ // return x;
9802
+ // });
9803
+ // this.TimelineList.push(...this.ProcessStageList);
9804
+ // }
9805
+ // }
9806
+ this.TimelineList.sort((a, b) => {
9807
+ if (a.CreatedDatetime < b.CreatedDatetime)
9808
+ return -1;
9809
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9810
+ return 1;
9811
+ else
9812
+ return 0;
9813
+ });
9814
+ this.TimelineListReadonly.sort((a, b) => {
9815
+ if (a.CreatedDatetime < b.CreatedDatetime)
9816
+ return -1;
9817
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9818
+ return 1;
9819
+ else
9820
+ return 0;
9514
9821
  });
9515
9822
  }
9516
- getAssignedDocumentList() {
9517
- this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
9518
- this.DocumentList = success;
9519
- this.DocumentList.map(x => {
9520
- x.FileList = [];
9521
- return x;
9823
+ GetPageList(Criteria) {
9824
+ if (this.EntityTypeId != null) {
9825
+ this.storeCriteria = Criteria;
9826
+ // let data: Observable<IEntityWFstageVM[]>;
9827
+ this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9828
+ // alert("grid data");
9829
+ this.ProcessStageList = res.Data;
9830
+ this.setTimeline();
9831
+ console.log(res);
9832
+ this.loadGrid(res.Data, res.TotalCount);
9833
+ }, (error) => {
9834
+ var _a;
9835
+ console.log(error);
9836
+ this.loadGrid([], 0);
9837
+ Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9522
9838
  });
9839
+ }
9840
+ }
9841
+ fileChange(event) {
9842
+ this.fileList = event.target.files;
9843
+ }
9844
+ commentSubmit() {
9845
+ let data = {
9846
+ commnets: this.Comments,
9847
+ refRecId: this.RecId,
9848
+ entitytyperecid: this.EntityTypeRecId
9849
+ };
9850
+ // this.service.urlComments(data).subscribe(
9851
+ // (x: any) => this.taskAssignData = x);
9852
+ let formData = new FormData();
9853
+ if (this.fileList && this.fileList.length > 0) {
9854
+ let file = this.fileList[0];
9855
+ formData.append('Files', file, file.name);
9856
+ }
9857
+ this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9858
+ this.Comments = null;
9859
+ this.CommentsTitle = null;
9860
+ this.TaskCommentFile = null;
9861
+ this.getComments();
9862
+ }, (error) => error.error);
9863
+ }
9864
+ // commentsActivityItem:any = null;
9865
+ openDefaultComments() {
9866
+ this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9867
+ // if (comments && comments.length > 0) {
9868
+ // this.commentsActivityItem = null;
9869
+ // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9870
+ // this.commentsActivityItem = comments[0];
9871
+ // this.openPopupCreatePage(comments[0]);
9872
+ // }
9873
+ // else {
9874
+ // this.openPopupCreatePage(this.ActivityFields[0]);
9875
+ // }
9876
+ }
9877
+ getWfStageAction(EntityTypeId, StageId) {
9878
+ if (EntityTypeId == null)
9879
+ return;
9880
+ this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9881
+ // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9882
+ this.wfStageAction = res;
9883
+ console.log(res);
9523
9884
  }, (error) => {
9885
+ error.error;
9524
9886
  });
9525
9887
  }
9526
- docFileChange(event, item) {
9527
- let _file = event.target.files;
9528
- item.FileList = [];
9529
- if (_file && _file.length > 0) {
9530
- let _Sfile = _file;
9531
- for (let index = 0; index < _file.length; index++) {
9532
- let _file = {
9533
- File: _Sfile.item(index),
9534
- FileName: _Sfile.item(index).name
9535
- };
9536
- item.FileList.push(_file);
9537
- }
9538
- item.File = _file.item(0);
9539
- item.FileName = _file.item(0).name;
9888
+ getStatusField(data) {
9889
+ this.action = data.ActionRecId;
9890
+ this.workflowEntityFormId = data.WorkFlowForm;
9891
+ this.showWorkflowPopup = true;
9892
+ this.EntityTypeSetupService.onshowWorkflowPopup.next({
9893
+ showWorkflowPopup: true,
9894
+ fieldConfig: [],
9895
+ });
9896
+ }
9897
+ backToList() {
9898
+ this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
9899
+ }
9900
+ ngOnDestroy() {
9901
+ this.globalService.showBackIcon = false;
9902
+ }
9903
+ closeModelPopup() {
9904
+ this.actionPopup = false;
9905
+ }
9906
+ GetFormattedDate(_date) {
9907
+ var todayTime = new Date(_date);
9908
+ var month = todayTime.getMonth() + 1;
9909
+ var day = todayTime.getDate();
9910
+ var year = todayTime.getFullYear();
9911
+ return year + "-" + month + "-" + day;
9912
+ }
9913
+ assignSubmit() {
9914
+ if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9915
+ this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9916
+ this.submitData = {
9917
+ recId: this.RecId,
9918
+ ActionStatus: this.actionFormActionId,
9919
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9920
+ Description: this.assignmentForm.value.Description,
9921
+ Comments: this.assignmentForm.value.Comments,
9922
+ };
9540
9923
  }
9541
9924
  else {
9542
- item.FileList = [];
9543
- item.File = null;
9544
- item.FileName = null;
9925
+ this.submitData = {
9926
+ recId: this.RecId,
9927
+ ActionStatus: this.actionFormActionId,
9928
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9929
+ TargetDate: this.targetDate,
9930
+ Description: this.assignmentForm.value.Description,
9931
+ Comments: this.assignmentForm.value.Comments,
9932
+ };
9545
9933
  }
9546
- }
9547
- closeCreatePage() {
9548
- // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
9549
- this.closeCreate.emit({ Type: "Cancel" });
9550
- }
9551
- submitTicketCreate() {
9552
- let CreateData = this.createFormData;
9553
- if (!this.pageForm.valid) {
9554
- // Swal.fire('Fill all mandatory fields', '', 'warning');
9934
+ this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9935
+ this.assignmentForm.reset();
9936
+ this.closeModelPopup();
9937
+ this.taskService.showCommentPopup = false;
9938
+ this.taskService.close();
9939
+ this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9940
+ // Swal.fire(x);
9941
+ Swal.fire({
9942
+ title: this.translatePipe.transform(x),
9943
+ });
9944
+ this.getTaskDetails();
9945
+ this.getComments();
9946
+ }, (error) => {
9947
+ this.assignmentForm.reset();
9948
+ this.closeModelPopup();
9949
+ this.taskService.showCommentPopup = false;
9950
+ this.taskService.close();
9951
+ // Swal.fire(error.error);
9555
9952
  Swal.fire({
9556
- title: this.translatePipe.transform('Fill all mandatory fields'),
9953
+ title: this.translatePipe.transform(error.error),
9557
9954
  });
9558
- return;
9559
- }
9560
- if (this.Type == "Edit") {
9561
- if (!this.FormValues || !this.FormValues.RecId) {
9562
- // Swal.fire("", "Form record not found", "warning");
9563
- Swal.fire({
9564
- title: this.translatePipe.transform('Form record not found'),
9565
- });
9566
- return;
9567
- }
9568
- CreateData.EntityTypeId = this.EntityTypeId;
9569
- CreateData.RecId = this.FormValues.RecId;
9570
- let _data = JSON.stringify(CreateData);
9571
- this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
9572
- // Swal.fire("Updated sucessfully");
9955
+ // alert("err");
9956
+ // error.error
9957
+ });
9958
+ }
9959
+ getAssignmentByRefRecIdList(Criteria) {
9960
+ this.HistoryListCriteria = Criteria;
9961
+ if (this.RecId != null) {
9962
+ this.globalService.dataLoader = true;
9963
+ this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9964
+ // alert("get");
9965
+ this.loadGrid(x.Data, x.TotalCount);
9966
+ this.globalService.dataLoader = false;
9967
+ }, (error) => {
9968
+ // Swal.fire(error);
9969
+ // error.error
9573
9970
  Swal.fire({
9574
- title: this.translatePipe.transform('Updated sucessfully'),
9971
+ title: this.translatePipe.transform(error.error),
9575
9972
  });
9576
- this.pageForm.reset();
9577
- this.closeCreate.emit({ Type: "Edit" });
9578
- this.supportService.displayListPopUp = true;
9579
- }, (error) => {
9580
- console.log(error);
9581
9973
  });
9582
9974
  }
9583
- else {
9584
- CreateData.EntityTypeId = this.EntityTypeId;
9585
- CreateData.IssueType = this.IssueType;
9586
- CreateData.IssueGroup = this.IssueGroup;
9587
- CreateData.Issue = this.IssueSubGroup;
9588
- CreateData.Source = this.Source;
9589
- CreateData.CreatedByUserType = this.CreatedByUserType;
9590
- CreateData.Channel = this.Channel;
9591
- if (this.RequestField && this.RequesterId) {
9592
- CreateData[this.RequestField] = this.RequesterId;
9593
- }
9594
- let _data = JSON.stringify(CreateData);
9595
- let checkFileMandatory = true;
9596
- for (let index = 0; index < this.DocumentList.length; index++) {
9597
- let doc = this.DocumentList[index];
9598
- if (doc.IsManatory) {
9599
- if (!(doc.FileList && doc.FileList.length > 0)) {
9600
- checkFileMandatory = false;
9601
- break;
9602
- }
9603
- }
9604
- }
9605
- if (!checkFileMandatory) {
9606
- Swal.fire({
9607
- title: this.translatePipe.transform('Attach the mandatory files'),
9975
+ }
9976
+ loadGrid(data, TotalRecord) {
9977
+ if (data) {
9978
+ if (data.length > 0)
9979
+ this.gridServiceService.onGridRefresh.next({
9980
+ isTrue: true,
9981
+ list: data,
9982
+ grid: 8,
9983
+ count: data.length,
9984
+ totalRecordCount: TotalRecord,
9608
9985
  });
9609
- return;
9610
- }
9611
- let fileObj = [];
9612
- this.DocumentList.map(x => {
9613
- if (x.FileList && x.FileList.length > 0) {
9614
- for (let index = 0; index < x.FileList.length; index++) {
9615
- const element = x.FileList[index];
9616
- let temp = { File: element.File, DoctypeRecId: x.RecId };
9617
- fileObj.push(temp);
9618
- }
9619
- }
9620
- });
9621
- fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9622
- const formData = new FormData();
9623
- fileObj.forEach((f) => formData.append('fileUpload', f.File));
9624
- this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9625
- Swal.fire({
9626
- title: this.translatePipe.transform('Created Successfully'),
9627
- confirmButtonText: this.translatePipe.transform("Ok"),
9986
+ else
9987
+ this.gridServiceService.onGridRefresh.next({
9988
+ isTrue: true,
9989
+ list: [],
9990
+ grid: 8,
9991
+ count: 0,
9992
+ totalRecordCount: 0,
9628
9993
  });
9629
- this.pageForm.reset();
9630
- this.closeCreate.emit({ Type: "Create", Data: res });
9631
- this.supportService.displayListPopUp = true;
9632
- // Swal.fire({
9633
- // title: 'Created Successfully,Do you want to Continue? ',
9634
- // showDenyButton: true,
9635
- // showCancelButton: true,
9636
- // denyButtonText: `Yes Go Details `,
9637
- // cancelButtonText: `Create New`,
9638
- // confirmButtonText: `No`,
9639
- // }).then((result) => {
9640
- // if (result.isConfirmed) {
9641
- // this.pageForm.reset();
9642
- // this.closeCreate.emit({ Type: "Create" });
9643
- // } else if (result.isDenied) {
9644
- // this.pageForm.reset();
9645
- // this.router.navigate([
9646
- // AllRoutes.Entity.DynamicTicketDetails,
9647
- // res.RecId,
9648
- // res.EntityTypeId,
9649
- // ])
9650
- // } else if (result.isDismissed) {
9651
- // this.pageForm.reset();
9652
- // }
9653
- // })
9654
- }, (error) => {
9655
- console.log(error);
9994
+ }
9995
+ else
9996
+ this.gridServiceService.onGridRefresh.next({
9997
+ isTrue: true,
9998
+ list: [],
9999
+ grid: 8,
10000
+ count: 0,
10001
+ totalRecordCount: 0,
9656
10002
  });
10003
+ }
10004
+ getTaskAssignData() {
10005
+ this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
10006
+ }
10007
+ submitComment(event) {
10008
+ if (event.keyCode == 13 && this.inputValue) {
10009
+ this.globalService.submitComments.next({ message: this.inputValue });
10010
+ this.inputValue = null;
9657
10011
  }
9658
10012
  }
9659
- emitTicketCreateForm(CreateData, pageForm) {
9660
- this.createFormData = CreateData;
9661
- this.pageForm = pageForm;
10013
+ showCreatePopup() {
10014
+ this.IsShowCreatePopup = true;
10015
+ }
10016
+ hideCreatePopup(IsHide, Data, IsReload, PageType) {
10017
+ this.IsShowCreatePopup = IsHide;
10018
+ if (Data && PageType == 'SelfService') {
10019
+ if (Data.RecId && Data.EntityTypeRecId) {
10020
+ this.RecId = Data.RecId;
10021
+ this.EntityTypeIdRecId = Data.EntityTypeRecId;
10022
+ this.IsWfAction = true;
10023
+ this.getTaskDetails();
10024
+ this.getActivity();
10025
+ this.getWorkflowStatusWithStage();
10026
+ }
10027
+ }
10028
+ else {
10029
+ this.closeCreateModel.emit({ IsClose: IsHide, Data: Data, IsReload: IsReload });
10030
+ }
10031
+ }
10032
+ showEmailCreatePopup() {
10033
+ this.IsShowSendEmailPopup = true;
10034
+ }
10035
+ hideEmailCreatePopup(IsHide, Data, IsReload) {
10036
+ this.IsShowSendEmailPopup = IsHide;
9662
10037
  }
9663
10038
  }
9664
- SupportRequestCreateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, deps: [{ token: EntityTypeSetupService }, { token: AttachmentService }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: SupportRequestService }, { token: GlobalService }], target: i0.ɵɵFactoryTarget.Component });
9665
- SupportRequestCreateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: { EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", ViewFrom: "ViewFrom", Type: "Type", FormValues: "FormValues", IssueType: "IssueType", IssueGroup: "IssueGroup", IssueSubGroup: "IssueSubGroup", IssueTypeEn: "IssueTypeEn", IssueGroupEn: "IssueGroupEn", IssueSubGroupEn: "IssueSubGroupEn", IssueTypeAr: "IssueTypeAr", IssueGroupAr: "IssueGroupAr", IssueSubGroupAr: "IssueSubGroupAr", Source: "Source", CreatedByUserType: "CreatedByUserType", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", RequestField: "RequestField", RequesterId: "RequesterId", RequesterIdEn: "RequesterIdEn" }, outputs: { closeCreate: "closeCreate" }, ngImport: i0, template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">{{doc.DocumentName | translate}}\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9666
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
10039
+ SupportRequestDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, deps: [{ token: TaskService }, { token: EntityTypeSetupService }, { token: i3.FormBuilder }, { token: i2.ActivatedRoute }, { token: GridServiceService }, { token: TicketApiService }, { token: GlobalService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
10040
+ SupportRequestDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: { EntityTypeRecId: "EntityTypeRecId", RecId: "RecId", ViewFrom: "ViewFrom", IsWfAction: "IsWfAction", PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr" }, outputs: { closeCreateModel: "closeCreateModel" }, ngImport: i0, template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"clearfix\">\r\n <div class=\"custom-dropdown pull-left\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;margin-top: 10px;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Create'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Request'\">{{'Request' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Complaint'\">{{'Complaint' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='SelfService'\">{{'SelfService' |translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <button style=\"margin: 10px 10px;\" class=\"btn btn-success pull-left\" *ngIf=\"EntityTypeRecId && refRecId\" (click)=\"showEmailCreatePopup()\">{{'Send Email'|translate}}</button>\r\n \r\n </div>\r\n <div class=\"addedDate\">\r\n <div >{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\"\r\n src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\">\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n </span>\r\n </div>\r\n \r\n </div>\r\n \r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <div class=\"msg p-l-30 bg-white w-100\">\r\n <h6 class=\"attach-title d-block\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists w-100\">\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <a id=\"nofile\"\r\n href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\"\r\n target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-container *ngIf=\"IsShowCreatePopup\">\r\n <div class=\"create_req\">\r\n <lib-create-form [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload,$event.PageType)\"></lib-create-form>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"IsShowSendEmailPopup && EntityTypeRecId && refRecId\">\r\n <div class=\"create_req\">\r\n <lib-sendemail [EntityTypeId]=\"EntityTypeRecId\" [RecId]=\"refRecId\" (closeSendEmailModel)=\"hideEmailCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-sendemail>\r\n </div>\r\n</ng-container>", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: DynamicDetailsViewComponent, selector: "app-dynamic-details-view", inputs: ["ViewType", "EntityTypeId", "EntityFormId", "pageGroups", "defaultPageGroups", "PageGroupValues"] }, { kind: "component", type: ActivitiesCreateComponent, selector: "app-activities-create", inputs: ["IsHideCancelBtn", "EntityFormId", "EntityTypeId", "ActivityTypeId", "RefEntityTypeId", "RefTypeId", "ViewFrom", "ViewAction"], outputs: ["closeActivityCreate"] }, { kind: "component", type: ActivitiesViewComponent, selector: "app-activities-view", inputs: ["EntityFormId", "EntityTypeId", "ActivityTypeId", "RefTypeId", "FormData"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "component", type: CreateFormComponent, selector: "lib-create-form", inputs: ["IsDropdownModel", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "component", type: SendemailComponent, selector: "lib-sendemail", inputs: ["EntityTypeId", "RecId"], outputs: ["closeSendEmailModel"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9667
10042
  type: Component,
9668
- args: [{ selector: 'app-support-request-create', template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">{{doc.DocumentName | translate}}\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"] }]
9669
- }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
10043
+ args: [{ selector: 'app-support-request-details', template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"clearfix\">\r\n <div class=\"custom-dropdown pull-left\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;margin-top: 10px;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Create'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Request'\">{{'Request' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Complaint'\">{{'Complaint' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='SelfService'\">{{'SelfService' |translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <button style=\"margin: 10px 10px;\" class=\"btn btn-success pull-left\" *ngIf=\"EntityTypeRecId && refRecId\" (click)=\"showEmailCreatePopup()\">{{'Send Email'|translate}}</button>\r\n \r\n </div>\r\n <div class=\"addedDate\">\r\n <div >{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\"\r\n src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\">\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n </span>\r\n </div>\r\n \r\n </div>\r\n \r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <div class=\"msg p-l-30 bg-white w-100\">\r\n <h6 class=\"attach-title d-block\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists w-100\">\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <a id=\"nofile\"\r\n href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\"\r\n target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-container *ngIf=\"IsShowCreatePopup\">\r\n <div class=\"create_req\">\r\n <lib-create-form [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload,$event.PageType)\"></lib-create-form>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"IsShowSendEmailPopup && EntityTypeRecId && refRecId\">\r\n <div class=\"create_req\">\r\n <lib-sendemail [EntityTypeId]=\"EntityTypeRecId\" [RecId]=\"refRecId\" (closeSendEmailModel)=\"hideEmailCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-sendemail>\r\n </div>\r\n</ng-container>", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"] }]
10044
+ }], ctorParameters: function () { return [{ type: TaskService }, { type: EntityTypeSetupService }, { type: i3.FormBuilder }, { type: i2.ActivatedRoute }, { type: GridServiceService }, { type: TicketApiService }, { type: GlobalService }, { type: i2.Router }]; }, propDecorators: { EntityTypeRecId: [{
9670
10045
  type: Input
9671
- }], EntityTypeId: [{
10046
+ }], RecId: [{
9672
10047
  type: Input
9673
10048
  }], ViewFrom: [{
9674
10049
  type: Input
9675
- }], Type: [{
9676
- type: Input
9677
- }], FormValues: [{
9678
- type: Input
9679
- }], IssueType: [{
10050
+ }], IsWfAction: [{
9680
10051
  type: Input
9681
- }], IssueGroup: [{
10052
+ }], PageType: [{
9682
10053
  type: Input
9683
- }], IssueSubGroup: [{
10054
+ }], RequesterTypeId: [{
9684
10055
  type: Input
9685
- }], IssueTypeEn: [{
10056
+ }], RequesterTypeIdEn: [{
9686
10057
  type: Input
9687
- }], IssueGroupEn: [{
10058
+ }], RequesterId: [{
9688
10059
  type: Input
9689
- }], IssueSubGroupEn: [{
10060
+ }], RequesterField: [{
9690
10061
  type: Input
9691
- }], IssueTypeAr: [{
10062
+ }], Language: [{
9692
10063
  type: Input
9693
- }], IssueGroupAr: [{
10064
+ }], HostUrl: [{
9694
10065
  type: Input
9695
- }], IssueSubGroupAr: [{
10066
+ }], Host: [{
9696
10067
  type: Input
9697
10068
  }], Source: [{
9698
10069
  type: Input
9699
- }], CreatedByUserType: [{
9700
- type: Input
9701
10070
  }], Channel: [{
9702
10071
  type: Input
9703
10072
  }], ChannelEn: [{
9704
10073
  type: Input
9705
10074
  }], ChannelAr: [{
9706
10075
  type: Input
9707
- }], RequestField: [{
9708
- type: Input
9709
- }], RequesterId: [{
9710
- type: Input
9711
- }], RequesterIdEn: [{
9712
- type: Input
9713
- }], closeCreate: [{
10076
+ }], closeCreateModel: [{
9714
10077
  type: Output
9715
10078
  }] } });
9716
10079
 
@@ -9760,11 +10123,12 @@ class CaseListComponent {
9760
10123
  { Field: 'ProcessStageEn', Name: 'Process Stage En' },
9761
10124
  { Field: 'ProcessStageAr', Name: 'Process Stage Ar' },
9762
10125
  ];
10126
+ this.ContractList = [];
9763
10127
  this.viewTypes = [
9764
10128
  { id: 1, name: 'Tab View', class: 'la la-table' },
9765
10129
  { id: 2, name: 'Details View', class: 'la la-id-card-o' },
9766
10130
  ];
9767
- this.selectedIndex = 0;
10131
+ this.selectedIndex = 1;
9768
10132
  this.viewTypeData = 1;
9769
10133
  this.selectMode = E_SelectMode.None;
9770
10134
  this.EntityTypeDetail = null;
@@ -9806,7 +10170,7 @@ class CaseListComponent {
9806
10170
  }
9807
10171
  getListDatas(Criteria) {
9808
10172
  this.Searchcriteria = Criteria;
9809
- this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId).subscribe((res) => {
10173
+ this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId, this.SelectedContract).subscribe((res) => {
9810
10174
  // alert("data");
9811
10175
  this.selfServiceRequestData = res.Data;
9812
10176
  this.totalRecordCount = res.TotalCount;
@@ -9857,7 +10221,7 @@ class CaseListComponent {
9857
10221
  });
9858
10222
  }
9859
10223
  viewType(data, index) {
9860
- this.selectedIndex = index;
10224
+ this.selectedIndex = data.id;
9861
10225
  this.viewTypeData = data.id;
9862
10226
  }
9863
10227
  backtoCard() {
@@ -9992,6 +10356,15 @@ class CaseListComponent {
9992
10356
  .getAllWfStage(null, this.EntityTypeId, true)
9993
10357
  .subscribe((res) => {
9994
10358
  this.StatusAndStageList = res.Data;
10359
+ this.StatusAndStageList.map(x => {
10360
+ if (x.StageId == -1 || x.OrderId == -1) {
10361
+ x.StageDescriptionAr = 'اظهار الكل';
10362
+ }
10363
+ if (x.StageId == 0 || x.OrderId == 0) {
10364
+ x.StageDescriptionAr = 'قائمة الانتظار';
10365
+ }
10366
+ return x;
10367
+ });
9995
10368
  // .sort((a, b) => {
9996
10369
  // if (a.StageId < b.StageId) return -1;
9997
10370
  // else if (a.StageId > b.StageId) return 1;
@@ -10099,7 +10472,6 @@ class CaseListComponent {
10099
10472
  this.slide(direction, Id);
10100
10473
  }
10101
10474
  slide(direction, Id) {
10102
- debugger;
10103
10475
  let container = document.getElementById(Id);
10104
10476
  let scrollCompleted = 0;
10105
10477
  let slideVar = setInterval(function () {
@@ -10117,10 +10489,10 @@ class CaseListComponent {
10117
10489
  }
10118
10490
  }
10119
10491
  CaseListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CaseListComponent, deps: [{ token: SupportRequestService }, { token: EntityTypeSetupService }, { token: GlobalService }, { token: GridServiceService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
10120
- CaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CaseListComponent, selector: "app-case-list", inputs: { EntityTypeId: "EntityTypeId", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-10\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex != i}\">\r\n <span [class.active]=\"selectedIndex === i\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10492
+ CaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CaseListComponent, selector: "app-case-list", inputs: { EntityTypeId: "EntityTypeId", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination", ContractList: "ContractList", SelectedContract: "SelectedContract" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n <ng-select [items]=\"ContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10121
10493
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CaseListComponent, decorators: [{
10122
10494
  type: Component,
10123
- args: [{ selector: 'app-case-list', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-10\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex != i}\">\r\n <span [class.active]=\"selectedIndex === i\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"] }]
10495
+ args: [{ selector: 'app-case-list', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n <ng-select [items]=\"ContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"] }]
10124
10496
  }], ctorParameters: function () {
10125
10497
  return [{ type: SupportRequestService }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10126
10498
  type: Inject,
@@ -10150,6 +10522,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10150
10522
  type: Input
10151
10523
  }], IsClientPagination: [{
10152
10524
  type: Input
10525
+ }], ContractList: [{
10526
+ type: Input
10527
+ }], SelectedContract: [{
10528
+ type: Input
10153
10529
  }] } });
10154
10530
 
10155
10531
  class SelfServiceFlowComponent {
@@ -10166,6 +10542,7 @@ class SelfServiceFlowComponent {
10166
10542
  this.IssueAllList = [];
10167
10543
  this.IssueCaseList = [];
10168
10544
  this.translatePipe = new TranslatePipe(this.globalService);
10545
+ this.ContractList = [];
10169
10546
  }
10170
10547
  ngOnInit() {
10171
10548
  this.getIssueGroupRequesterMappingByRequesterType();
@@ -10202,15 +10579,14 @@ class SelfServiceFlowComponent {
10202
10579
  var http = new XMLHttpRequest();
10203
10580
  http.open('HEAD', image_url, false);
10204
10581
  http.send();
10205
- debugger;
10206
10582
  return http.status != 404;
10207
10583
  }
10208
10584
  }
10209
10585
  SelfServiceFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SelfServiceFlowComponent, deps: [{ token: SupportRequestService }, { token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: GlobalService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
10210
- SelfServiceFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: { RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CaseListComponent, selector: "app-case-list", inputs: ["EntityTypeId", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr", "GridSearchType", "IsClientPagination"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10586
+ SelfServiceFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: { RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", ContractList: "ContractList", SelectedContract: "SelectedContract" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\" [SelectedContract]=\"SelectedContract\" [ContractList]=\"ContractList\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CaseListComponent, selector: "app-case-list", inputs: ["EntityTypeId", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr", "GridSearchType", "IsClientPagination", "ContractList", "SelectedContract"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10211
10587
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SelfServiceFlowComponent, decorators: [{
10212
10588
  type: Component,
10213
- args: [{ selector: 'app-self-service-flow', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>" }]
10589
+ args: [{ selector: 'app-self-service-flow', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\" [SelectedContract]=\"SelectedContract\" [ContractList]=\"ContractList\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>" }]
10214
10590
  }], ctorParameters: function () {
10215
10591
  return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: undefined, decorators: [{
10216
10592
  type: Inject,
@@ -10234,16 +10610,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10234
10610
  type: Input
10235
10611
  }], ChannelAr: [{
10236
10612
  type: Input
10613
+ }], ContractList: [{
10614
+ type: Input
10615
+ }], SelectedContract: [{
10616
+ type: Input
10237
10617
  }] } });
10238
10618
 
10239
10619
  // import { environment } from 'arco-support-request';
10240
10620
  class RequestFlowComponent {
10241
- constructor(supportService, fb, entityTypeSetup, router, globalService, document) {
10621
+ constructor(supportService, fb, entityTypeSetup, router, globalService, gridServiceService, document) {
10242
10622
  this.supportService = supportService;
10243
10623
  this.fb = fb;
10244
10624
  this.entityTypeSetup = entityTypeSetup;
10245
10625
  this.router = router;
10246
10626
  this.globalService = globalService;
10627
+ this.gridServiceService = gridServiceService;
10247
10628
  this.document = document;
10248
10629
  this.issuType = "7";
10249
10630
  this.Language = 'Eng';
@@ -10251,6 +10632,7 @@ class RequestFlowComponent {
10251
10632
  this.Channel = '3';
10252
10633
  this.ChannelEn = 'Portal';
10253
10634
  this.ChannelAr = 'صفحة العميل';
10635
+ this.DDContractList = [];
10254
10636
  this.viewHtml = true;
10255
10637
  this.translatePipe = new TranslatePipe(this.globalService);
10256
10638
  this.FieldListDDL = [
@@ -10334,6 +10716,27 @@ class RequestFlowComponent {
10334
10716
  this.isShowCreateRequest = false;
10335
10717
  this.selectCaseItem = null;
10336
10718
  this.isDetails = false;
10719
+ this.GridCheckedData = [];
10720
+ this.selectMode = E_SelectMode.None;
10721
+ this.columnDefs = [
10722
+ { Field: 'CaseId', Name: 'Case Id', FieldType: E_FieldType.details },
10723
+ { Field: 'CaseTypeIdAr', Name: 'Case Type Ar' },
10724
+ { Field: 'CaseTypeIdEn', Name: 'Case Type En' },
10725
+ { Field: 'Description', Name: 'Description' },
10726
+ { Field: 'Subject', Name: 'Subject' },
10727
+ { Field: 'StatusIdEn', Name: 'Status' },
10728
+ { Field: 'PriorityEn', Name: 'Priority En' },
10729
+ { Field: 'PriorityAr', Name: 'Priority Ar' },
10730
+ { Field: 'CreatedBy', Name: 'CreatedBy' },
10731
+ { Field: 'CreatedDatetime', Name: 'CreatedDatetime', DataType: E_DataType.dateTime },
10732
+ ];
10733
+ this.viewTypes = [
10734
+ { id: 1, name: 'Tab View', class: 'la la-table' },
10735
+ { id: 2, name: 'Details View', class: 'la la-id-card-o' },
10736
+ ];
10737
+ this.selectedIndex = 1;
10738
+ this.viewTypeData = 1;
10739
+ this.IsShowCreatePopup = false;
10337
10740
  router.events.subscribe(event => {
10338
10741
  if (event instanceof NavigationStart) {
10339
10742
  setTimeout(() => this.globalService.dataLoader = true, 0);
@@ -10389,6 +10792,11 @@ class RequestFlowComponent {
10389
10792
  this.getategoryrequestertype();
10390
10793
  }
10391
10794
  this.globalService.getSystemConfig();
10795
+ this.ContractList.map((x) => {
10796
+ if (x) {
10797
+ this.DDContractList.push({ ContractId: x });
10798
+ }
10799
+ });
10392
10800
  }
10393
10801
  toggleTheme(e) {
10394
10802
  if (this.globalService.CurrentLanguage == 'Eng') {
@@ -10669,12 +11077,13 @@ class RequestFlowComponent {
10669
11077
  this.Searchcriteria.Where.push(filtervals);
10670
11078
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10671
11079
  // this.entityTypeSetup.urlGetDynamicTicket(Criteria, this.EntityTypeId)
10672
- this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue).subscribe((res) => {
11080
+ this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue, this.SelectedContract).subscribe((res) => {
10673
11081
  // alert("data");
10674
11082
  this.supportRequestData = res.Data;
10675
11083
  this.totalRecordCount = res.TotalCount;
10676
11084
  console.log('datas', res);
10677
11085
  this.getPageCount();
11086
+ this.loadGrid(res.Data, res.TotalCount);
10678
11087
  }, (error) => {
10679
11088
  console.log(error);
10680
11089
  Swal.fire({
@@ -10685,7 +11094,7 @@ class RequestFlowComponent {
10685
11094
  getStatusListCount() {
10686
11095
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10687
11096
  this.supportService
10688
- .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType)
11097
+ .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType, this.SelectedContract)
10689
11098
  .subscribe((res) => {
10690
11099
  this.StatusList = res;
10691
11100
  if (this.StatusList != null && this.StatusList.length > 0) {
@@ -10749,7 +11158,6 @@ class RequestFlowComponent {
10749
11158
  this.IssueTypeDDL = [];
10750
11159
  this.dropdownIssuse = [];
10751
11160
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
10752
- debugger;
10753
11161
  this.IssueTypeDDL = res;
10754
11162
  if (res) {
10755
11163
  this.IssueTypeDDL = res.filter(x => x.IssueType == this.issuType);
@@ -10830,7 +11238,6 @@ class RequestFlowComponent {
10830
11238
  item.showCategory = !item.showCategory;
10831
11239
  }
10832
11240
  selectGroup(item, Type) {
10833
- debugger;
10834
11241
  this.showChild = false;
10835
11242
  this.showsubChild = true;
10836
11243
  this.issueGroupName = item.IssueGroupEn;
@@ -10937,14 +11344,64 @@ class RequestFlowComponent {
10937
11344
  console.log(error);
10938
11345
  });
10939
11346
  }
11347
+ getgridCheckedData(item) {
11348
+ this.GridCheckedData = item;
11349
+ }
11350
+ goDetails(data) {
11351
+ this.openDetailsPopup(data);
11352
+ }
11353
+ viewType(data, index) {
11354
+ this.selectedIndex = data.id;
11355
+ this.viewTypeData = data.id;
11356
+ }
11357
+ loadGrid(data, TotalRecord) {
11358
+ if (data) {
11359
+ if (data.length > 0)
11360
+ this.gridServiceService.onGridRefresh.next({
11361
+ isTrue: true,
11362
+ list: data,
11363
+ count: data.length,
11364
+ grid: 1,
11365
+ totalRecordCount: TotalRecord,
11366
+ });
11367
+ else
11368
+ this.gridServiceService.onGridRefresh.next({
11369
+ isTrue: true,
11370
+ grid: 1,
11371
+ list: [],
11372
+ count: 0,
11373
+ totalRecordCount: 0,
11374
+ });
11375
+ }
11376
+ else
11377
+ this.gridServiceService.onGridRefresh.next({
11378
+ isTrue: true,
11379
+ grid: 1,
11380
+ list: [],
11381
+ count: 0,
11382
+ totalRecordCount: 0,
11383
+ });
11384
+ }
11385
+ showCreatePopup() {
11386
+ this.IsShowCreatePopup = true;
11387
+ }
11388
+ hideCreatePopup(IsHide, Data, IsReload) {
11389
+ this.IsShowCreatePopup = IsHide;
11390
+ if (Data) {
11391
+ this.openDetailsPopup(Data);
11392
+ }
11393
+ if (IsReload) {
11394
+ this.getListDatas(this.storeCriteria);
11395
+ }
11396
+ }
10940
11397
  }
10941
- RequestFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, deps: [{ token: SupportRequestService }, { token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: i2.Router }, { token: GlobalService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
10942
- RequestFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: RequestFlowComponent, selector: "app-request-flow", inputs: { PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination" }, usesOnChanges: true, ngImport: i0, template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\"></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole\">\r\n\r\n <div class=\"pull-left w-50 p-r-10 p-l-10\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n \r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: ["RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
11398
+ RequestFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, deps: [{ token: SupportRequestService }, { token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: i2.Router }, { token: GlobalService }, { token: GridServiceService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
11399
+ RequestFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: RequestFlowComponent, selector: "app-request-flow", inputs: { PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", ContractList: "ContractList", SelectedContract: "SelectedContract", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination" }, usesOnChanges: true, ngImport: i0, template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\" [ContractList]=\"DDContractList\" [SelectedContract]=\"SelectedContract\" ></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <ng-container *ngIf=\"false\">\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n </ng-container>\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"showCreatePopup()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <ng-container *ngIf=\"IsShowCreatePopup\">\r\n <lib-create-form [RequesterTypeId]=\"RequesterTypeId\" [PageType]=\"PageType\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-create-form>\r\n </ng-container>\r\n \r\n </div>\r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole mb-3\">\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n <ng-select [items]=\"DDContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n <div *ngIf=\"viewTypeData == 1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (goToDetails)=\"goDetails($event.data)\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\">\r\n </app-grid>\r\n </div>\r\n <div *ngIf=\"viewTypeData == 2\">\r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: ["RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr", "ContractList", "SelectedContract"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "component", type: CreateFormComponent, selector: "lib-create-form", inputs: ["IsDropdownModel", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10943
11400
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, decorators: [{
10944
11401
  type: Component,
10945
- args: [{ selector: 'app-request-flow', template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\"></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole\">\r\n\r\n <div class=\"pull-left w-50 p-r-10 p-l-10\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n \r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n" }]
11402
+ args: [{ selector: 'app-request-flow', template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\" [ContractList]=\"DDContractList\" [SelectedContract]=\"SelectedContract\" ></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <ng-container *ngIf=\"false\">\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n </ng-container>\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"showCreatePopup()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <ng-container *ngIf=\"IsShowCreatePopup\">\r\n <lib-create-form [RequesterTypeId]=\"RequesterTypeId\" [PageType]=\"PageType\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-create-form>\r\n </ng-container>\r\n \r\n </div>\r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole mb-3\">\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n <ng-select [items]=\"DDContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n <div *ngIf=\"viewTypeData == 1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (goToDetails)=\"goDetails($event.data)\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\">\r\n </app-grid>\r\n </div>\r\n <div *ngIf=\"viewTypeData == 2\">\r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n" }]
10946
11403
  }], ctorParameters: function () {
10947
- return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: undefined, decorators: [{
11404
+ return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10948
11405
  type: Inject,
10949
11406
  args: [DOCUMENT]
10950
11407
  }] }];
@@ -10972,6 +11429,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10972
11429
  type: Input
10973
11430
  }], ChannelAr: [{
10974
11431
  type: Input
11432
+ }], ContractList: [{
11433
+ type: Input
11434
+ }], SelectedContract: [{
11435
+ type: Input
10975
11436
  }], GridSearchType: [{
10976
11437
  type: Input
10977
11438
  }], IsClientPagination: [{
@@ -10984,7 +11445,7 @@ class SupportRequestIndexComponent {
10984
11445
  }
10985
11446
  }
10986
11447
  SupportRequestIndexComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10987
- SupportRequestIndexComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestIndexComponent, selector: "app-support-request-index", ngImport: i0, template: "<div class=\"container\">\r\n <!-- <router-outlet></router-outlet> -->\r\n <app-request-flow></app-request-flow>\r\n</div>", styles: [""], dependencies: [{ kind: "component", type: RequestFlowComponent, selector: "app-request-flow", inputs: ["PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr", "GridSearchType", "IsClientPagination"] }], encapsulation: i0.ViewEncapsulation.None });
11448
+ SupportRequestIndexComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestIndexComponent, selector: "app-support-request-index", ngImport: i0, template: "<div class=\"container\">\r\n <!-- <router-outlet></router-outlet> -->\r\n <app-request-flow></app-request-flow>\r\n</div>", styles: [""], dependencies: [{ kind: "component", type: RequestFlowComponent, selector: "app-request-flow", inputs: ["PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr", "ContractList", "SelectedContract", "GridSearchType", "IsClientPagination"] }], encapsulation: i0.ViewEncapsulation.None });
10988
11449
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, decorators: [{
10989
11450
  type: Component,
10990
11451
  args: [{ selector: 'app-support-request-index', encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\r\n <!-- <router-outlet></router-outlet> -->\r\n <app-request-flow></app-request-flow>\r\n</div>" }]
@@ -11098,7 +11559,7 @@ class ActionComponent {
11098
11559
  }
11099
11560
  }
11100
11561
  ActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: ActionComponent, deps: [{ token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: SupportRequestService }], target: i0.ɵɵFactoryTarget.Component });
11101
- ActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: ActionComponent, selector: "app-action", ngImport: i0, template: "\r\n<div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-2\">\r\n </div>\r\n <div class=\"col-8 action-block\">\r\n <h4 class=\"text-center\">How can we help you ?</h4>\r\n <hr>\r\n <form [formGroup]=\"ActionForm\">\r\n <!-- <div class=\"form-group\">\r\n <label for=\"CategoryId\" style=\"font-size:large;\">Category:</label>\r\n <ng-select formControlName=\"CategoryId\" [items]=\"CategoryDDL\" bindLabel=\"Description\" \r\n bindValue=\"CategoryId\" (change)=\"getSubCategoryDDl()\">\r\n </ng-select>\r\n </div> -->\r\n <div class=\"form-group\">\r\n <label for=\"TicketGroupID\" style=\"font-size:large;\">Issue Group:</label>\r\n <ng-select formControlName=\"TicketGroupID\" [items]=\"IssueGroupDDL\" bindLabel=\"TicketGroupName\" \r\n bindValue=\"TicketGroupID\" (change)=\"getDropDownForIssueSubGroup()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('TicketGroupID')?.touched &&\r\n ActionForm.get('TicketGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n <div class=\"form-group\" *ngIf=\"TicketGroupID != null \">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Issue SubGroup:</label>\r\n <ng-select formControlName=\"SubGroupID\" [items]=\"IssueSubGroupDDL\" bindLabel=\"SubGroupName\" \r\n bindValue=\"SubGroupID\" (change)=\"getInstruction()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('SubGroupID')?.touched &&\r\n ActionForm.get('SubGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group whole\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Instructions:</label>\r\n <!-- <div id=\"accordion\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <div class=\"card\">\r\n <div class=\"card-header\" [id]=\"item.RecId+i\">\r\n <h5 class=\"mb-0\">\r\n <button class=\"btn btn-link\" (click)=\"changeTab(item.RecId)\" data-toggle=\"collapse\" [attr.data-target]=\"'#'+item.RecId\" aria-controls=\"collapseOne\">\r\n {{item?.Question+ '?'}}\r\n </button>\r\n </h5>\r\n </div>\r\n \r\n <div [id]=\"item.RecId\" class=\"collapse\" [ngClass]=\"{'show':item.RecId== CurrentId}\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\">\r\n <div class=\"card-body\">\r\n {{item?.Answer}}\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"qsntns_answrs\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <a class=\"has-arrow menus_item\" data-toggle=\"collapse\" href=\"#col{{item.RecId}}\">\r\n <i class=\"la la-angle-down\" style=\"font-size: 20px;\"></i>\r\n <span> {{item?.Question+ '?'}}</span>\r\n </a>\r\n \r\n <ul class=\"collapse\" id=\"col{{item.RecId}}\">\r\n <p> {{item?.Answer}}</p>\r\n </ul>\r\n </div>\r\n </div>\r\n <!-- <div class=\"form-group\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Case Type:</label>\r\n <ng-select formControlName=\"CaseType\" [items]=\"CaseTypeList\" bindLabel=\"CaseTypeIdEn\" \r\n bindValue=\"CaseTypeId\">\r\n </ng-select>\r\n </div> -->\r\n <button *ngIf=\"SelectedCaseTypeId != null && SelectedCaseTypeId != 0 && displayPopupCreateView != true && SubGroupID != null\" (click)=\"openPopupCreatePage()\" type=\"button\" class=\"btn btn-primary btn-lg btn-block\">Create Case</button>\r\n </form>\r\n\r\n <!-- <div class=\"modal fade show\" *ngIf=\"CreateItemId\" [ngClass]=\"{'showPop':displayPopupCreateView}\" tabindex=\"-1\"\r\nrole=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\" style=\"width: 95%; max-width: 95%;\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closePopupCreateView()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\"> -->\r\n <!-- [ViewFrom]=\"'Popup'\" -->\r\n\r\n <app-support-request-create [ViewFrom]=\"'Popup'\" *ngIf=\"displayPopupCreateView && CreateItemId &&SelectedCaseTypeId\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type)\"></app-support-request-create>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade show\"[ngClass]=\"{'showPop':this.supportService.displayListPopUp}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <div>\r\n <!-- <h5 class=\"modal-title\" id=\"exampleModalLabel\">Requested Case List</h5> -->\r\n </div>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeListPageModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <app-support-request-list *ngIf=\"SelectedCaseTypeId !=null\" [PageViewType]=\"'PopUp'\" [EntityTypeId]=\"SelectedCaseTypeId\"></app-support-request-list>\r\n </div>\r\n </div>\r\n</div>\r\n</div>\r\n <!-- </div>\r\n\r\n </div>\r\n</div>\r\n</div>-->\r\n </div>\r\n <div class=\"col-2\">\r\n </div>\r\n </div>\r\n</div> \r\n\r\n", styles: [".action-block{background-color:#fff;padding:20px;box-shadow:3px 3px 5px 2px #0000001a;border-radius:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }] });
11562
+ ActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: ActionComponent, selector: "app-action", ngImport: i0, template: "\r\n<div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-2\">\r\n </div>\r\n <div class=\"col-8 action-block\">\r\n <h4 class=\"text-center\">How can we help you ?</h4>\r\n <hr>\r\n <form [formGroup]=\"ActionForm\">\r\n <!-- <div class=\"form-group\">\r\n <label for=\"CategoryId\" style=\"font-size:large;\">Category:</label>\r\n <ng-select formControlName=\"CategoryId\" [items]=\"CategoryDDL\" bindLabel=\"Description\" \r\n bindValue=\"CategoryId\" (change)=\"getSubCategoryDDl()\">\r\n </ng-select>\r\n </div> -->\r\n <div class=\"form-group\">\r\n <label for=\"TicketGroupID\" style=\"font-size:large;\">Issue Group:</label>\r\n <ng-select formControlName=\"TicketGroupID\" [items]=\"IssueGroupDDL\" bindLabel=\"TicketGroupName\" \r\n bindValue=\"TicketGroupID\" (change)=\"getDropDownForIssueSubGroup()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('TicketGroupID')?.touched &&\r\n ActionForm.get('TicketGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n <div class=\"form-group\" *ngIf=\"TicketGroupID != null \">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Issue SubGroup:</label>\r\n <ng-select formControlName=\"SubGroupID\" [items]=\"IssueSubGroupDDL\" bindLabel=\"SubGroupName\" \r\n bindValue=\"SubGroupID\" (change)=\"getInstruction()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('SubGroupID')?.touched &&\r\n ActionForm.get('SubGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group whole\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Instructions:</label>\r\n <!-- <div id=\"accordion\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <div class=\"card\">\r\n <div class=\"card-header\" [id]=\"item.RecId+i\">\r\n <h5 class=\"mb-0\">\r\n <button class=\"btn btn-link\" (click)=\"changeTab(item.RecId)\" data-toggle=\"collapse\" [attr.data-target]=\"'#'+item.RecId\" aria-controls=\"collapseOne\">\r\n {{item?.Question+ '?'}}\r\n </button>\r\n </h5>\r\n </div>\r\n \r\n <div [id]=\"item.RecId\" class=\"collapse\" [ngClass]=\"{'show':item.RecId== CurrentId}\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\">\r\n <div class=\"card-body\">\r\n {{item?.Answer}}\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"qsntns_answrs\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <a class=\"has-arrow menus_item\" data-toggle=\"collapse\" href=\"#col{{item.RecId}}\">\r\n <i class=\"la la-angle-down\" style=\"font-size: 20px;\"></i>\r\n <span> {{item?.Question+ '?'}}</span>\r\n </a>\r\n \r\n <ul class=\"collapse\" id=\"col{{item.RecId}}\">\r\n <p> {{item?.Answer}}</p>\r\n </ul>\r\n </div>\r\n </div>\r\n <!-- <div class=\"form-group\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Case Type:</label>\r\n <ng-select formControlName=\"CaseType\" [items]=\"CaseTypeList\" bindLabel=\"CaseTypeIdEn\" \r\n bindValue=\"CaseTypeId\">\r\n </ng-select>\r\n </div> -->\r\n <button *ngIf=\"SelectedCaseTypeId != null && SelectedCaseTypeId != 0 && displayPopupCreateView != true && SubGroupID != null\" (click)=\"openPopupCreatePage()\" type=\"button\" class=\"btn btn-primary btn-lg btn-block\">Create Case</button>\r\n </form>\r\n\r\n <!-- <div class=\"modal fade show\" *ngIf=\"CreateItemId\" [ngClass]=\"{'showPop':displayPopupCreateView}\" tabindex=\"-1\"\r\nrole=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\" style=\"width: 95%; max-width: 95%;\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closePopupCreateView()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\"> -->\r\n <!-- [ViewFrom]=\"'Popup'\" -->\r\n\r\n <app-support-request-create [ViewFrom]=\"'Popup'\" *ngIf=\"displayPopupCreateView && CreateItemId &&SelectedCaseTypeId\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type)\"></app-support-request-create>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade show\"[ngClass]=\"{'showPop':this.supportService.displayListPopUp}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <div>\r\n <!-- <h5 class=\"modal-title\" id=\"exampleModalLabel\">Requested Case List</h5> -->\r\n </div>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeListPageModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <app-support-request-list *ngIf=\"SelectedCaseTypeId !=null\" [PageViewType]=\"'PopUp'\" [EntityTypeId]=\"SelectedCaseTypeId\"></app-support-request-list>\r\n </div>\r\n </div>\r\n</div>\r\n</div>\r\n <!-- </div>\r\n\r\n </div>\r\n</div>\r\n</div>-->\r\n </div>\r\n <div class=\"col-2\">\r\n </div>\r\n </div>\r\n</div> \r\n\r\n", styles: [".action-block{background-color:#fff;padding:20px;box-shadow:3px 3px 5px 2px #0000001a;border-radius:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }] });
11102
11563
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: ActionComponent, decorators: [{
11103
11564
  type: Component,
11104
11565
  args: [{ selector: 'app-action', template: "\r\n<div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-2\">\r\n </div>\r\n <div class=\"col-8 action-block\">\r\n <h4 class=\"text-center\">How can we help you ?</h4>\r\n <hr>\r\n <form [formGroup]=\"ActionForm\">\r\n <!-- <div class=\"form-group\">\r\n <label for=\"CategoryId\" style=\"font-size:large;\">Category:</label>\r\n <ng-select formControlName=\"CategoryId\" [items]=\"CategoryDDL\" bindLabel=\"Description\" \r\n bindValue=\"CategoryId\" (change)=\"getSubCategoryDDl()\">\r\n </ng-select>\r\n </div> -->\r\n <div class=\"form-group\">\r\n <label for=\"TicketGroupID\" style=\"font-size:large;\">Issue Group:</label>\r\n <ng-select formControlName=\"TicketGroupID\" [items]=\"IssueGroupDDL\" bindLabel=\"TicketGroupName\" \r\n bindValue=\"TicketGroupID\" (change)=\"getDropDownForIssueSubGroup()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('TicketGroupID')?.touched &&\r\n ActionForm.get('TicketGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n <div class=\"form-group\" *ngIf=\"TicketGroupID != null \">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Issue SubGroup:</label>\r\n <ng-select formControlName=\"SubGroupID\" [items]=\"IssueSubGroupDDL\" bindLabel=\"SubGroupName\" \r\n bindValue=\"SubGroupID\" (change)=\"getInstruction()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('SubGroupID')?.touched &&\r\n ActionForm.get('SubGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group whole\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Instructions:</label>\r\n <!-- <div id=\"accordion\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <div class=\"card\">\r\n <div class=\"card-header\" [id]=\"item.RecId+i\">\r\n <h5 class=\"mb-0\">\r\n <button class=\"btn btn-link\" (click)=\"changeTab(item.RecId)\" data-toggle=\"collapse\" [attr.data-target]=\"'#'+item.RecId\" aria-controls=\"collapseOne\">\r\n {{item?.Question+ '?'}}\r\n </button>\r\n </h5>\r\n </div>\r\n \r\n <div [id]=\"item.RecId\" class=\"collapse\" [ngClass]=\"{'show':item.RecId== CurrentId}\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\">\r\n <div class=\"card-body\">\r\n {{item?.Answer}}\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"qsntns_answrs\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <a class=\"has-arrow menus_item\" data-toggle=\"collapse\" href=\"#col{{item.RecId}}\">\r\n <i class=\"la la-angle-down\" style=\"font-size: 20px;\"></i>\r\n <span> {{item?.Question+ '?'}}</span>\r\n </a>\r\n \r\n <ul class=\"collapse\" id=\"col{{item.RecId}}\">\r\n <p> {{item?.Answer}}</p>\r\n </ul>\r\n </div>\r\n </div>\r\n <!-- <div class=\"form-group\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Case Type:</label>\r\n <ng-select formControlName=\"CaseType\" [items]=\"CaseTypeList\" bindLabel=\"CaseTypeIdEn\" \r\n bindValue=\"CaseTypeId\">\r\n </ng-select>\r\n </div> -->\r\n <button *ngIf=\"SelectedCaseTypeId != null && SelectedCaseTypeId != 0 && displayPopupCreateView != true && SubGroupID != null\" (click)=\"openPopupCreatePage()\" type=\"button\" class=\"btn btn-primary btn-lg btn-block\">Create Case</button>\r\n </form>\r\n\r\n <!-- <div class=\"modal fade show\" *ngIf=\"CreateItemId\" [ngClass]=\"{'showPop':displayPopupCreateView}\" tabindex=\"-1\"\r\nrole=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\" style=\"width: 95%; max-width: 95%;\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closePopupCreateView()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\"> -->\r\n <!-- [ViewFrom]=\"'Popup'\" -->\r\n\r\n <app-support-request-create [ViewFrom]=\"'Popup'\" *ngIf=\"displayPopupCreateView && CreateItemId &&SelectedCaseTypeId\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type)\"></app-support-request-create>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade show\"[ngClass]=\"{'showPop':this.supportService.displayListPopUp}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <div>\r\n <!-- <h5 class=\"modal-title\" id=\"exampleModalLabel\">Requested Case List</h5> -->\r\n </div>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeListPageModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <app-support-request-list *ngIf=\"SelectedCaseTypeId !=null\" [PageViewType]=\"'PopUp'\" [EntityTypeId]=\"SelectedCaseTypeId\"></app-support-request-list>\r\n </div>\r\n </div>\r\n</div>\r\n</div>\r\n <!-- </div>\r\n\r\n </div>\r\n</div>\r\n</div>-->\r\n </div>\r\n <div class=\"col-2\">\r\n </div>\r\n </div>\r\n</div> \r\n\r\n", styles: [".action-block{background-color:#fff;padding:20px;box-shadow:3px 3px 5px 2px #0000001a;border-radius:7px}\n"] }]
@@ -11136,7 +11597,9 @@ SupportRequestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
11136
11597
  CaseListComponent,
11137
11598
  GridComponent,
11138
11599
  GridDatatypeComponent,
11139
- InnerGridComponent], imports: [CommonModule,
11600
+ InnerGridComponent,
11601
+ CreateFormComponent,
11602
+ SendemailComponent], imports: [CommonModule,
11140
11603
  // SupportRequestRoutingModule,
11141
11604
  FormsModule,
11142
11605
  ReactiveFormsModule,
@@ -11195,7 +11658,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
11195
11658
  CaseListComponent,
11196
11659
  GridComponent,
11197
11660
  GridDatatypeComponent,
11198
- InnerGridComponent
11661
+ InnerGridComponent,
11662
+ CreateFormComponent,
11663
+ SendemailComponent
11199
11664
  ],
11200
11665
  imports: [
11201
11666
  CommonModule,