vcomply-workflow-engine 6.0.91 → 6.0.93

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 (105) hide show
  1. package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +7 -30
  2. package/esm2022/lib/constants/api.constants.mjs +6 -1
  3. package/esm2022/lib/interfaces/frequency.interface.mjs +2 -0
  4. package/esm2022/lib/interfaces/iframe-type.mjs +7 -0
  5. package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
  6. package/esm2022/lib/more-option/more-option.component.mjs +17 -183
  7. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +3 -2
  8. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +4 -7
  9. package/esm2022/lib/services/common.service.mjs +40 -1
  10. package/esm2022/lib/services/iframe.service.mjs +14 -1
  11. package/esm2022/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.mjs +3 -6
  12. package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +10 -21
  13. package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +5 -1
  14. package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +5 -1
  15. package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
  16. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +2 -1
  17. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +6 -2
  18. package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +3 -2
  19. package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +3 -1
  20. package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +5 -1
  21. package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +9 -2
  22. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +4 -2
  23. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +267 -5
  24. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +48 -16
  25. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.module.mjs +8 -4
  26. package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +52 -0
  27. package/esm2022/lib/sharedComponents/program-list/constant.mjs +27 -0
  28. package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +2 -0
  29. package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +2 -0
  30. package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +23 -0
  31. package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +269 -0
  32. package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +51 -0
  33. package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +27 -0
  34. package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +32 -0
  35. package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +24 -0
  36. package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +19 -0
  37. package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +45 -17
  38. package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +13 -10
  39. package/esm2022/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.mjs +62 -35
  40. package/esm2022/lib/workflow/shared/services/grc.service.mjs +15 -2
  41. package/esm2022/lib/workflow/shared/workflow-pipes/get-user-details.pipe.mjs +26 -0
  42. package/esm2022/lib/workflow/shared/workflow-pipes/workflow-pipes.module.mjs +8 -3
  43. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +294 -453
  44. package/esm2022/lib/workflow-engine-container/api-constants.mjs +3 -2
  45. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +32 -53
  46. package/esm2022/lib/workflow-engine.module.mjs +11 -7
  47. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +46 -29
  48. package/esm2022/lib/workflow-program/constants.mjs +3 -3
  49. package/esm2022/lib/workflow-program/workflow-program.component.mjs +125 -338
  50. package/esm2022/lib/workflow-services/policy.service.mjs +8 -9
  51. package/esm2022/lib/workflow-services/programs.service.mjs +26 -113
  52. package/esm2022/lib/workflow-services/responsibility.service.mjs +60 -55
  53. package/fesm2022/vcomply-workflow-engine.mjs +4796 -4532
  54. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  55. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +0 -3
  56. package/lib/constants/api.constants.d.ts +5 -0
  57. package/lib/interfaces/frequency.interface.d.ts +37 -0
  58. package/lib/interfaces/iframe-type.d.ts +5 -0
  59. package/lib/interfaces/responsibilty.interface.d.ts +13 -13
  60. package/lib/services/common.service.d.ts +28 -0
  61. package/lib/services/iframe.service.d.ts +6 -0
  62. package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +0 -6
  63. package/lib/sharedComponents/format-and-evidence/format-and-evidence.component.d.ts +1 -4
  64. package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +1 -0
  65. package/lib/sharedComponents/frequency/frequency.service.d.ts +92 -2
  66. package/lib/sharedComponents/link-responsibility/link-responsibility.component.d.ts +2 -1
  67. package/lib/sharedComponents/link-responsibility/link-responsibility.module.d.ts +2 -1
  68. package/lib/sharedComponents/list-container/list-container.component.d.ts +9 -0
  69. package/lib/sharedComponents/program-list/constant.d.ts +20 -0
  70. package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +4 -0
  71. package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +5 -0
  72. package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +7 -0
  73. package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +125 -0
  74. package/lib/sharedComponents/program-list/program-list.module.d.ts +15 -0
  75. package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +7 -0
  76. package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +14 -0
  77. package/lib/ui-kit/loaders/loaders.module.d.ts +8 -0
  78. package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +9 -0
  79. package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +5 -1
  80. package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +3 -1
  81. package/lib/workflow/shared/components/program-responsibility-listing/program-responsibility-listing.component.d.ts +6 -2
  82. package/lib/workflow/shared/services/grc.service.d.ts +1 -0
  83. package/lib/workflow/shared/workflow-pipes/get-user-details.pipe.d.ts +7 -0
  84. package/lib/workflow/shared/workflow-pipes/workflow-pipes.module.d.ts +3 -2
  85. package/lib/workflow-compliance/workflow-compliance.component.d.ts +32 -10
  86. package/lib/workflow-engine-container/api-constants.d.ts +1 -0
  87. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +5 -2
  88. package/lib/workflow-engine.module.d.ts +3 -2
  89. package/lib/workflow-policy/workflow-policy.component.d.ts +9 -0
  90. package/lib/workflow-program/workflow-program.component.d.ts +8 -4
  91. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  92. package/lib/workflow-services/policy.service.d.ts +1 -1
  93. package/lib/workflow-services/programs.service.d.ts +13 -53
  94. package/lib/workflow-services/responsibility.service.d.ts +17 -4
  95. package/package.json +1 -1
  96. package/esm2022/lib/constants/policy.constant.mjs +0 -6
  97. package/esm2022/lib/constants/regix.constants.mjs +0 -4
  98. package/esm2022/lib/constants/responsibility.mjs +0 -8
  99. package/esm2022/lib/interfaces/policy.interface.mjs +0 -2
  100. package/esm2022/lib/sharedComponents/pipes/risk-class.pipe.mjs +0 -19
  101. package/lib/constants/policy.constant.d.ts +0 -2
  102. package/lib/constants/regix.constants.d.ts +0 -3
  103. package/lib/constants/responsibility.d.ts +0 -7
  104. package/lib/interfaces/policy.interface.d.ts +0 -5
  105. package/lib/sharedComponents/pipes/risk-class.pipe.d.ts +0 -7
@@ -1,6 +1,8 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ResponsibilityService } from '../../../../workflow-services/responsibility.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class GrcCategoryListingComponent implements OnInit {
5
+ private responsibilityService;
4
6
  categories: any;
5
7
  tableCard: Array<any>;
6
8
  selectedCategory: any;
@@ -21,7 +23,7 @@ export declare class GrcCategoryListingComponent implements OnInit {
21
23
  set getProgramData(value: any);
22
24
  activeSelectedCategory: EventEmitter<any>;
23
25
  onCategoryPageChange: EventEmitter<any>;
24
- constructor();
26
+ constructor(responsibilityService: ResponsibilityService);
25
27
  ngOnInit(): void;
26
28
  getSelectedCategory(category: any, event: any): void;
27
29
  deleteEvent(category: any): void;
@@ -2,9 +2,13 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { GrcResponsibilityListingComponent } from '../grc-responsibility-listing/grc-responsibility-listing.component';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { GrcService } from '../../services/grc.service';
5
+ import { ResponsibilityService } from '../../../../workflow-services/responsibility.service';
6
+ import { GetUserDetailsPipe } from '../../workflow-pipes/get-user-details.pipe';
5
7
  import * as i0 from "@angular/core";
6
8
  export declare class ProgramResponsibilityListingComponent implements OnInit {
7
9
  private grcService;
10
+ private responsibilityService;
11
+ private getUserDetails;
8
12
  programTypes: {
9
13
  title: string;
10
14
  count: number;
@@ -54,7 +58,7 @@ export declare class ProgramResponsibilityListingComponent implements OnInit {
54
58
  MODE: 'CREATE' | 'EDIT';
55
59
  closeList: EventEmitter<any>;
56
60
  responsibilityListingComponent: GrcResponsibilityListingComponent;
57
- constructor(grcService: GrcService);
61
+ constructor(grcService: GrcService, responsibilityService: ResponsibilityService, getUserDetails: GetUserDetailsPipe);
58
62
  ngOnInit(): void;
59
63
  close(): void;
60
64
  save(): void;
@@ -70,7 +74,7 @@ export declare class ProgramResponsibilityListingComponent implements OnInit {
70
74
  activeSelectedSubCategory(event: any): void;
71
75
  getResponsibilitiesList(event?: any): void;
72
76
  getUpdatedDataList(event: any): void;
73
- setDataListStructure(res: any): any;
77
+ setDataListStructure(responsibilities: any[], users: any[], responsibilityCenters: any[]): any[];
74
78
  onSelectedProgramChange(): void;
75
79
  changeSelectedProgramAndResp(event: any): void;
76
80
  getSelectedProgramIds(selectedData: any): void;
@@ -17,6 +17,7 @@ export declare class GrcService {
17
17
  readonly GRC_PAYLOAD: AddGrc;
18
18
  readonly LIST_OBJECT: ListObject;
19
19
  constructor(http: HttpClient, authService: AuthService, config?: Configurations);
20
+ getAllResponsibilities(pageNo: number): import("rxjs").Observable<any[]>;
20
21
  getGRCList(event?: any): import("rxjs").Observable<any[]>;
21
22
  getGRCTabsCount(event?: any): import("rxjs").Observable<any[]>;
22
23
  checkValidation(grcPayload: AddGrc, isAttributesSelected: boolean): boolean | 0;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GetUserDetailsPipe implements PipeTransform {
4
+ transform(ids: number[], list: any[]): any[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetUserDetailsPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetUserDetailsPipe, "getUserDetails", false>;
7
+ }
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./get-selected-value.pipe";
3
3
  import * as i2 from "./is-attributes-valid.pipe";
4
4
  import * as i3 from "./unique-responsibilities.pipe";
5
- import * as i4 from "@angular/common";
5
+ import * as i4 from "./get-user-details.pipe";
6
+ import * as i5 from "@angular/common";
6
7
  export declare class WorkflowPipesModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowPipesModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<WorkflowPipesModule, [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe], [typeof i4.CommonModule], [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WorkflowPipesModule, [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe, typeof i4.GetUserDetailsPipe], [typeof i5.CommonModule], [typeof i1.GetSelectedValuePipe, typeof i2.IsAttributesValidPipe, typeof i3.UniqueResponsibilitiesPipe, typeof i4.GetUserDetailsPipe]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<WorkflowPipesModule>;
10
11
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter, ElementRef } from '@angular/core';
1
+ import { OnInit, EventEmitter, ElementRef, TemplateRef } from '@angular/core';
2
2
  import { EditorConfig } from 'vcomply-editor';
3
3
  import { AuthService } from '../workflow-services/auth.service';
4
4
  import { ResponsibilityService } from '../workflow-services/responsibility.service';
@@ -11,6 +11,9 @@ import { GrcService } from '../workflow/shared/services/grc.service';
11
11
  import { OrganizationUserService } from '../workflow-services/organization-user.service';
12
12
  import { ComplianceCommonService } from '../workflow-services/common-workflow-services/compliance-common.service';
13
13
  import { OrganizationCommonService } from '../workflow-services/common-workflow-services/organization-common.service';
14
+ import { FrequencyObject } from '../interfaces/frequency.interface';
15
+ import { Responsibility } from '../interfaces/responsibilty.interface';
16
+ import { ListItem } from '../sharedComponents/program-list/interfaces/list-item.interface';
14
17
  import { IframeService } from '../services/iframe.service';
15
18
  import * as i0 from "@angular/core";
16
19
  export declare class WorkflowComplianceComponent implements OnInit {
@@ -104,6 +107,11 @@ export declare class WorkflowComplianceComponent implements OnInit {
104
107
  grcSearchString: string;
105
108
  GRC_TYPE_ARRAY: string[];
106
109
  grcDataWithTypes: any;
110
+ selectedCategory: any[];
111
+ programListUrl: {
112
+ programList: string;
113
+ categoryList: string;
114
+ };
107
115
  set closeOnEsc(escapeCondition: boolean);
108
116
  orgDetails: any;
109
117
  url: string;
@@ -146,7 +154,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
146
154
  assigneesListLoaded: boolean;
147
155
  categoriesListLoaded: boolean;
148
156
  groupsListLoaded: boolean;
149
- assuranceCategoryListLoaded: boolean;
150
157
  selectedFrameworkValues: any;
151
158
  hasReviewer: boolean;
152
159
  assignorsList: any[];
@@ -189,7 +196,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
189
196
  allPrograms: any[];
190
197
  riskClassification: {
191
198
  name: string;
192
- value: number;
199
+ value: string;
193
200
  class: string;
194
201
  }[];
195
202
  assignorMode: string;
@@ -214,6 +221,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
214
221
  continuous_failed_days: number;
215
222
  onCompletionReportDetails: {};
216
223
  };
224
+ frequencyObject: FrequencyObject | null;
217
225
  frequencyPlaceholder: string;
218
226
  shortMonth: Array<string>;
219
227
  isEditWhat: Boolean;
@@ -244,14 +252,14 @@ export declare class WorkflowComplianceComponent implements OnInit {
244
252
  rawResponsibility: any;
245
253
  otherGRCSubscription: Subscription;
246
254
  allowEditDueDateFeatureFlag: boolean;
255
+ allProgamSelected: any[];
247
256
  whatInput: ElementRef;
248
257
  unSubscribeProgram: Subject<void>;
258
+ responsibilityDetails: any;
249
259
  constructor(authService: AuthService, responsibilityService: ResponsibilityService, frequencyService: FrequencyService, uiKitService: UiKitService, snackBar: SnackBarService, permission: AuthService, programService: ProgramsService, grcService: GrcService, organizationUserService: OrganizationUserService, complianceCommonService: ComplianceCommonService, organizationCommonService: OrganizationCommonService, iframeService: IframeService);
250
260
  ngOnInit(): void;
251
- populateRCList(): void;
252
261
  setFeatureFlags(): void;
253
262
  getInitialData(): void;
254
- getRCDetailsinRiskTreatment(): void;
255
263
  getOrgDetails(): void;
256
264
  getSubscriptionDetail(): void;
257
265
  activateSelector(type: any, event: boolean): void;
@@ -262,8 +270,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
262
270
  onRcTypeChange(selectedType: Number): void;
263
271
  getRCList(program_id?: string): void;
264
272
  getUserDetails(): void;
265
- getAssurance(): void;
266
- getAssuranceForRequiresAudit(): void;
267
273
  getOrganizationDetails(): void;
268
274
  getCategoryList(): void;
269
275
  filterListsAccordingToProgram(program_id?: string): void;
@@ -345,13 +351,14 @@ export declare class WorkflowComplianceComponent implements OnInit {
345
351
  getOnCompletionReportDetails(event: any): any;
346
352
  frequencyDataPopulation(event: any): void;
347
353
  frequencyPopulation(event: any): void;
354
+ setPayload(event: any): Responsibility | null;
348
355
  frequencyData(event: any): void;
349
356
  checkBlank(data: string): string;
350
357
  /**
351
358
  * It takes a string and returns a string.
352
359
  * @param {any} res - any = {
353
360
  */
354
- getFrequencyPlaceholder(res: any): void;
361
+ getFrequencyPlaceholder(frequency: any): void;
355
362
  /**
356
363
  * It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
357
364
  * details and then it gets the on completion of responsibility and sets the frequency placeholder to
@@ -455,7 +462,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
455
462
  */
456
463
  postAssessment(event: any): void;
457
464
  setIsUploaded(event: any): void;
458
- checkDefaultProgramOnRemove(program: any): void;
465
+ checkDefaultProgramOnRemove(event: any): void;
459
466
  /**
460
467
  * It takes an array of numbers and returns an array of unique numbers.
461
468
  * @param {any} array - The array you want to get the unique values from.
@@ -481,6 +488,21 @@ export declare class WorkflowComplianceComponent implements OnInit {
481
488
  resetGRCDataWithTypes(): void;
482
489
  removeOtherGRCObjects(event: any): void;
483
490
  filterOtherGRCData(event: any, type: string): void;
491
+ programs: ListItem[];
492
+ selectedPrograms: any[];
493
+ customItemTemplate: TemplateRef<any> | undefined;
494
+ onItemsSelectedChange(items: ListItem[]): void;
495
+ selectCategory(): void;
496
+ get currentUserInfo(): {
497
+ member_email: any;
498
+ member_id: any;
499
+ member_name: any;
500
+ organisation_id: any;
501
+ _id: any;
502
+ };
503
+ removeProgram(program: any): void;
504
+ populateResponsibilityDetails(): void;
505
+ populateFrequencyDetails(frequency: any): void;
484
506
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceComponent, never>;
485
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowComplianceComponent, "app-workflow-compliance", never, { "mode": { "alias": "mode"; "required": false; }; "responsibilityId": { "alias": "responsibilityId"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "isEntrust": { "alias": "isEntrust"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; }; "orgDetails": { "alias": "orgDetails"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "setSelectedProgram": { "alias": "selectedProgram"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "populateOption": "populateOption"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; "closeWorkflow": "closeWorkflow"; "resetForm": "resetForm"; "disconnectRefresh": "disconnectRefresh"; "checkpointCountUpdated": "checkpointCountUpdated"; "rcSelected": "rcSelected"; "onRemovingCheckpoint": "onRemovingCheckpoint"; "isAssessmentDisabled": "isAssessmentDisabled"; "assigneeTypeChange": "assigneeTypeChange"; "onReviewerTypeChange": "onReviewerTypeChange"; }, never, never, false, never>;
507
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowComplianceComponent, "app-workflow-compliance", never, { "mode": { "alias": "mode"; "required": false; }; "responsibilityId": { "alias": "responsibilityId"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "isEntrust": { "alias": "isEntrust"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; }; "orgDetails": { "alias": "orgDetails"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "setSelectedProgram": { "alias": "selectedProgram"; "required": false; }; "responsibilityDetails": { "alias": "responsibilityDetails"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "populateOption": "populateOption"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; "closeWorkflow": "closeWorkflow"; "resetForm": "resetForm"; "disconnectRefresh": "disconnectRefresh"; "checkpointCountUpdated": "checkpointCountUpdated"; "rcSelected": "rcSelected"; "onRemovingCheckpoint": "onRemovingCheckpoint"; "isAssessmentDisabled": "isAssessmentDisabled"; "assigneeTypeChange": "assigneeTypeChange"; "onReviewerTypeChange": "onReviewerTypeChange"; }, never, never, false, never>;
486
508
  }
@@ -1,4 +1,5 @@
1
1
  export declare const API_URLS: {
2
2
  fetchPolicyList: string;
3
3
  LINKED_POLICIES: string;
4
+ LINKED_PROGRAMS: string;
4
5
  };
@@ -19,6 +19,7 @@ import { Subscription } from 'rxjs';
19
19
  import { ReportACaseService } from '../report-a-case/services/report-a-case.service';
20
20
  import { WorkflowCaseComponent } from '../report-a-case/workflow-case/workflow-case.component';
21
21
  import { ReportCasePermissionService } from '../services/report-case-permission.service';
22
+ import { IframeService } from '../services/iframe.service';
22
23
  import * as i0 from "@angular/core";
23
24
  export declare class WorkflowEngineContainerComponent implements OnInit, AfterViewInit {
24
25
  uiKitService: UiKitService;
@@ -27,12 +28,13 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
27
28
  private orgCommonService;
28
29
  private reportACaseService;
29
30
  private reportCasePermissionService;
31
+ private iframeService;
30
32
  isHostRefreshActive: boolean;
31
33
  isRCSelected: boolean;
32
34
  featureFlag_groups: boolean;
33
35
  addToCaseMode: string;
34
36
  permissionSubscription: Subscription;
35
- constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService, reportCasePermissionService: ReportCasePermissionService);
37
+ constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService, reportCasePermissionService: ReportCasePermissionService, iframeService: IframeService);
36
38
  workflowType: string;
37
39
  mode: string;
38
40
  id: string;
@@ -45,6 +47,7 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
45
47
  secondaryOpenPortal: string;
46
48
  defaultRiskType: string;
47
49
  moveToRegisterMode: string;
50
+ workflowDetails: any;
48
51
  reponsibilityData: {
49
52
  responsibilityId: null;
50
53
  responsibilityName: string;
@@ -164,5 +167,5 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
164
167
  onReviewerChange(event: string): void;
165
168
  isResponsibilitySimplify(): void;
166
169
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowEngineContainerComponent, never>;
167
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowEngineContainerComponent, "app-vcomply-workflow-engine-container", never, { "workflowType": { "alias": "workflowType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "allowedWorkflows": { "alias": "allowedWorkflows"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "secondaryOpenPortal": { "alias": "secondaryOpenPortal"; "required": false; }; "defaultRiskType": { "alias": "defaultRiskType"; "required": false; }; "moveToRegisterMode": { "alias": "moveToRegisterMode"; "required": false; }; "reponsibilityData": { "alias": "reponsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "pid": { "alias": "pid"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "issueData": { "alias": "issueData"; "required": false; }; "entrustButtonName": { "alias": "entrustButtonName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "selectedProgram": { "alias": "selectedProgram"; "required": false; }; "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "grcType": { "alias": "grcType"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
170
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowEngineContainerComponent, "app-vcomply-workflow-engine-container", never, { "workflowType": { "alias": "workflowType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "allowedWorkflows": { "alias": "allowedWorkflows"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "secondaryOpenPortal": { "alias": "secondaryOpenPortal"; "required": false; }; "defaultRiskType": { "alias": "defaultRiskType"; "required": false; }; "moveToRegisterMode": { "alias": "moveToRegisterMode"; "required": false; }; "workflowDetails": { "alias": "workflowDetails"; "required": false; }; "reponsibilityData": { "alias": "reponsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "pid": { "alias": "pid"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "issueData": { "alias": "issueData"; "required": false; }; "entrustButtonName": { "alias": "entrustButtonName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "selectedProgram": { "alias": "selectedProgram"; "required": false; }; "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "grcType": { "alias": "grcType"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
168
171
  }
@@ -91,7 +91,7 @@ import * as i87 from "./sharedComponents/approval-workflow/approval-create-form/
91
91
  import * as i88 from "./sharedComponents/link-program/link-program/link-program.component";
92
92
  import * as i89 from "./sharedComponents/link-program/tooltip-validation.pipe";
93
93
  import * as i90 from "./link-related-policies/link-related-policies.component";
94
- import * as i91 from "./sharedComponents/pipes/risk-class.pipe";
94
+ import * as i91 from "./sharedComponents/list-container/list-container.component";
95
95
  import * as i92 from "@angular/forms";
96
96
  import * as i93 from "./sharedComponents/assessment-editor/create-assessment.module";
97
97
  import * as i94 from "@vcomply/editor";
@@ -131,9 +131,10 @@ import * as i127 from "./sharedComponents/format-and-evidence/format-and-evidenc
131
131
  import * as i128 from "./sharedComponents/checkbox-list/checkbox-list.module";
132
132
  import * as i129 from "./sharedComponents/radio-list-with-pagination/radio-list-with-pagination.module";
133
133
  import * as i130 from "./sharedComponents/link-responsibility/link-responsibility.module";
134
+ import * as i131 from "./sharedComponents/program-list/program-list.module";
134
135
  export declare class VComplyWorkflowEngineModule {
135
136
  static forRoot(environmentConfig: Configurations): ModuleWithProviders<VComplyWorkflowEngineModule>;
136
137
  static ɵfac: i0.ɵɵFactoryDeclaration<VComplyWorkflowEngineModule, never>;
137
- static ɵmod: i0.ɵɵNgModuleDeclaration<VComplyWorkflowEngineModule, [typeof i1.WorkflowEngineContainerComponent, typeof i2.WorkflowRiskComponent, typeof i3.WorkflowComplianceComponent, typeof i4.WorkflowPolicyComponent, typeof i5.MoreOptionComponent, typeof i6.OwnerListComponent, typeof i7.UserRadioListComponent, typeof i8.CategoryListComponent, typeof i9.CategoryMultiSelectComponent, typeof i10.WorkflowPaginationComponent, typeof i11.AddMultipleRiskComponent, typeof i12.BulkViewComponent, typeof i13.CheckpointsComponent, typeof i14.ConfirmationAlertComponent, typeof i15.CheckpointsQuestionsComponent, typeof i16.CheckpointsListComponent, typeof i17.ReviewFrequencyComponent, typeof i18.FrequencyContainerComponent, typeof i19.FrequencyDailyComponent, typeof i20.FrequencyWeeklyComponent, typeof i21.FrequencyMonthlyComponent, typeof i22.FrequencyQuarterlyComponent, typeof i23.FrequencyBiannualComponent, typeof i24.FrequencyAnnualComponent, typeof i25.FrequencyOneTimeComponent, typeof i26.FrequencyRandomComponent, typeof i27.FrequencyOnCompletionOfComponent, typeof i28.FrequencyOngoingComponent, typeof i29.FrequencyTopComponent, typeof i30.FrequencyLifecycleComponent, typeof i31.FrequencyDueDateComponent, typeof i32.FrequencyCheckboxListComponent, typeof i33.FrequencyRadioListComponent, typeof i34.AddMultipleResponsibilityComponent, typeof i35.BulkResponsibilityViewComponent, typeof i36.CheckpointsPolicyContainerComponent, typeof i37.CheckpointsPolicyListComponent, typeof i38.CheckpointsPolicyQuestionsComponent, typeof i39.WorkflowSurveyFormComponent, typeof i40.LogAnIssueComponent, typeof i41.FilterPipe, typeof i42.RadioListComponent, typeof i43.CreateDocumentsComponent, typeof i44.FrameworkListComponent, typeof i45.ParentTableComponent, typeof i46.CheckpointFloatingBarComponent, typeof i47.RiskClassificationComponent, typeof i48.ShortMergePipe, typeof i49.FormatHtmlPipe, typeof i50.WithinDataPipe, typeof i51.rcTreeToolTipPipe, typeof i52.ResponsibilityRiskSelectorComponent, typeof i53.ArrayFilterPipe, typeof i54.AuditCategoryListComponent, typeof i55.DocumentSectionComponent, typeof i55.DocumentSectionComponent, typeof i56.WorkflowAssessmentComponent, typeof i57.ImportAnAssessmentComponent, typeof i58.AssessmentListComponent, typeof i59.AssessmentListLoaderComponent, typeof i60.AssessmentListSubLoaderComponent, typeof i61.ProgramListingComponent, typeof i62.WorkflowProgramComponent, typeof i63.RolesListComponent, typeof i64.FrameworkListTableComponent, typeof i65.FrameworkResponsibilityTableComponent, typeof i66.FrameworkTableLoaderComponent, typeof i67.ArrayConcatPipe, typeof i68.SpaceTrimPipe, typeof i69.FrequencyDialogContainerComponent, typeof i70.FrequencyDialogWeeklyComponent, typeof i71.FrequencyDialogTopComponent, typeof i72.FrequencyDialogDueDateComponent, typeof i73.FrequencyDialogCheckboxListComponent, typeof i74.FrequencyDialogMonthlyComponent, typeof i75.FrequencyDialogQuarterlyComponent, typeof i76.FrequencyDialogRadioListComponent, typeof i77.FrequencyDialogBiannualComponent, typeof i78.FrequencyDialogAnnualComponent, typeof i79.FrequencyDialogOneTimeComponent, typeof i80.AddMultipleResponsibilityContainerComponent, typeof i81.AddMultipleResponsibilityWithTabComponent, typeof i82.FrequencyResponsibilityListComponent, typeof i83.ApprovalWorkflowComponent, typeof i84.SelectApproversComponent, typeof i85.PolicyAccessComponent, typeof i86.ApprovalWorkflowListComponent, typeof i87.ApprovalCreateFormComponent, typeof i88.LinkProgramComponent, typeof i89.TooltipValidationPipe, typeof i90.LinkRelatedPoliciesComponent, typeof i91.RiskClassPipe], [typeof i92.ReactiveFormsModule, typeof i93.CreateAssessmentModule, typeof i94.VcomplyEditorModule, typeof i95.CommonModule, typeof i96.FormgroupModule, typeof i97.TooltipModule, typeof i98.PopoverModule, typeof i99.LineLoaderModule, typeof i92.FormsModule, typeof i100.SelectModule, typeof i101.NgxMaterialTimepickerModule, typeof i102.DpDatePickerModule, typeof i103.NoDataModule, typeof i104.VLoaderModule, typeof i105.SmileyDialogModule, typeof i106.SnackBarModule, typeof i107.HttpClientModule, typeof i108.SmileyDialogInlineModule, typeof i109.ClickOutsideModule, typeof i110.PopoverHoverModule, typeof i111.PaginationModule, typeof i93.CreateAssessmentModule, typeof i112.ActionDialogModule, typeof i113.AssessmentPreviewModule, typeof i114.CreateProgramUiModule, typeof i115.DirectiveModule, typeof i116.GrcObjectModule, typeof i117.RcListModule, typeof i118.PipesModule, typeof i119.FloatingBarModule, typeof i120.GroupUsersListComponent, typeof i121.ListLoaderModule, typeof i122.GrcObjectListComponent, typeof i123.TimePickerModule, typeof i124.MultiSelectModule, typeof i125.PolicyTemplateModule, typeof i126.ReportCaseModule, typeof i127.FormatAndEvidenceModule, typeof i128.CheckboxListModule, typeof i129.RadioListWithPaginationModule, typeof i130.LinkResponsibilityModule], [typeof i1.WorkflowEngineContainerComponent]>;
138
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VComplyWorkflowEngineModule, [typeof i1.WorkflowEngineContainerComponent, typeof i2.WorkflowRiskComponent, typeof i3.WorkflowComplianceComponent, typeof i4.WorkflowPolicyComponent, typeof i5.MoreOptionComponent, typeof i6.OwnerListComponent, typeof i7.UserRadioListComponent, typeof i8.CategoryListComponent, typeof i9.CategoryMultiSelectComponent, typeof i10.WorkflowPaginationComponent, typeof i11.AddMultipleRiskComponent, typeof i12.BulkViewComponent, typeof i13.CheckpointsComponent, typeof i14.ConfirmationAlertComponent, typeof i15.CheckpointsQuestionsComponent, typeof i16.CheckpointsListComponent, typeof i17.ReviewFrequencyComponent, typeof i18.FrequencyContainerComponent, typeof i19.FrequencyDailyComponent, typeof i20.FrequencyWeeklyComponent, typeof i21.FrequencyMonthlyComponent, typeof i22.FrequencyQuarterlyComponent, typeof i23.FrequencyBiannualComponent, typeof i24.FrequencyAnnualComponent, typeof i25.FrequencyOneTimeComponent, typeof i26.FrequencyRandomComponent, typeof i27.FrequencyOnCompletionOfComponent, typeof i28.FrequencyOngoingComponent, typeof i29.FrequencyTopComponent, typeof i30.FrequencyLifecycleComponent, typeof i31.FrequencyDueDateComponent, typeof i32.FrequencyCheckboxListComponent, typeof i33.FrequencyRadioListComponent, typeof i34.AddMultipleResponsibilityComponent, typeof i35.BulkResponsibilityViewComponent, typeof i36.CheckpointsPolicyContainerComponent, typeof i37.CheckpointsPolicyListComponent, typeof i38.CheckpointsPolicyQuestionsComponent, typeof i39.WorkflowSurveyFormComponent, typeof i40.LogAnIssueComponent, typeof i41.FilterPipe, typeof i42.RadioListComponent, typeof i43.CreateDocumentsComponent, typeof i44.FrameworkListComponent, typeof i45.ParentTableComponent, typeof i46.CheckpointFloatingBarComponent, typeof i47.RiskClassificationComponent, typeof i48.ShortMergePipe, typeof i49.FormatHtmlPipe, typeof i50.WithinDataPipe, typeof i51.rcTreeToolTipPipe, typeof i52.ResponsibilityRiskSelectorComponent, typeof i53.ArrayFilterPipe, typeof i54.AuditCategoryListComponent, typeof i55.DocumentSectionComponent, typeof i55.DocumentSectionComponent, typeof i56.WorkflowAssessmentComponent, typeof i57.ImportAnAssessmentComponent, typeof i58.AssessmentListComponent, typeof i59.AssessmentListLoaderComponent, typeof i60.AssessmentListSubLoaderComponent, typeof i61.ProgramListingComponent, typeof i62.WorkflowProgramComponent, typeof i63.RolesListComponent, typeof i64.FrameworkListTableComponent, typeof i65.FrameworkResponsibilityTableComponent, typeof i66.FrameworkTableLoaderComponent, typeof i67.ArrayConcatPipe, typeof i68.SpaceTrimPipe, typeof i69.FrequencyDialogContainerComponent, typeof i70.FrequencyDialogWeeklyComponent, typeof i71.FrequencyDialogTopComponent, typeof i72.FrequencyDialogDueDateComponent, typeof i73.FrequencyDialogCheckboxListComponent, typeof i74.FrequencyDialogMonthlyComponent, typeof i75.FrequencyDialogQuarterlyComponent, typeof i76.FrequencyDialogRadioListComponent, typeof i77.FrequencyDialogBiannualComponent, typeof i78.FrequencyDialogAnnualComponent, typeof i79.FrequencyDialogOneTimeComponent, typeof i80.AddMultipleResponsibilityContainerComponent, typeof i81.AddMultipleResponsibilityWithTabComponent, typeof i82.FrequencyResponsibilityListComponent, typeof i83.ApprovalWorkflowComponent, typeof i84.SelectApproversComponent, typeof i85.PolicyAccessComponent, typeof i86.ApprovalWorkflowListComponent, typeof i87.ApprovalCreateFormComponent, typeof i88.LinkProgramComponent, typeof i89.TooltipValidationPipe, typeof i90.LinkRelatedPoliciesComponent, typeof i91.ListContainerComponent], [typeof i92.ReactiveFormsModule, typeof i93.CreateAssessmentModule, typeof i94.VcomplyEditorModule, typeof i95.CommonModule, typeof i96.FormgroupModule, typeof i97.TooltipModule, typeof i98.PopoverModule, typeof i99.LineLoaderModule, typeof i92.FormsModule, typeof i100.SelectModule, typeof i101.NgxMaterialTimepickerModule, typeof i102.DpDatePickerModule, typeof i103.NoDataModule, typeof i104.VLoaderModule, typeof i105.SmileyDialogModule, typeof i106.SnackBarModule, typeof i107.HttpClientModule, typeof i108.SmileyDialogInlineModule, typeof i109.ClickOutsideModule, typeof i110.PopoverHoverModule, typeof i111.PaginationModule, typeof i93.CreateAssessmentModule, typeof i112.ActionDialogModule, typeof i113.AssessmentPreviewModule, typeof i114.CreateProgramUiModule, typeof i115.DirectiveModule, typeof i116.GrcObjectModule, typeof i117.RcListModule, typeof i118.PipesModule, typeof i119.FloatingBarModule, typeof i120.GroupUsersListComponent, typeof i121.ListLoaderModule, typeof i122.GrcObjectListComponent, typeof i123.TimePickerModule, typeof i124.MultiSelectModule, typeof i125.PolicyTemplateModule, typeof i126.ReportCaseModule, typeof i127.FormatAndEvidenceModule, typeof i128.CheckboxListModule, typeof i129.RadioListWithPaginationModule, typeof i130.LinkResponsibilityModule, typeof i131.ProgramListModule], [typeof i1.WorkflowEngineContainerComponent]>;
138
139
  static ɵinj: i0.ɵɵInjectorDeclaration<VComplyWorkflowEngineModule>;
139
140
  }
@@ -17,6 +17,7 @@ import { OrganizationUserService } from '../workflow-services/organization-user.
17
17
  import { OrganizationCommonService } from '../workflow-services/common-workflow-services/organization-common.service';
18
18
  import { ComplianceCommonService } from '../workflow-services/common-workflow-services/compliance-common.service';
19
19
  import { IframeService } from '../services/iframe.service';
20
+ import { ListItem } from '../sharedComponents/program-list/interfaces/list-item.interface';
20
21
  import * as i0 from "@angular/core";
21
22
  export declare class WorkflowPolicyComponent implements OnInit {
22
23
  private policyService;
@@ -225,6 +226,10 @@ export declare class WorkflowPolicyComponent implements OnInit {
225
226
  templateView: boolean;
226
227
  templateUrl: string;
227
228
  isTemplateClosed: boolean;
229
+ programListUrl: any;
230
+ selectedPrograms: any;
231
+ allProgamSelected: ListItem[];
232
+ linkProgram: any;
228
233
  constructor(policyService: PolicyService, snackBar: SnackBarService, uiKitService: UiKitService, authService: AuthService, responsibilityService: ResponsibilityService, router: Router, route: ActivatedRoute, frequencyService: FrequencyService, platformLocation: PlatformLocation, changeRef: ChangeDetectorRef, restApiService: RestApiService, commonService: CommonService, organizationUserService: OrganizationUserService, organizationCommonService: OrganizationCommonService, complianceCommonService: ComplianceCommonService, iframeService: IframeService);
229
234
  policyForm: PolicyForm;
230
235
  ngOnInit(): void;
@@ -411,6 +416,10 @@ export declare class WorkflowPolicyComponent implements OnInit {
411
416
  onTemplateSelect(event: any, isPreselected?: boolean): void;
412
417
  setNavigationUrl(): void;
413
418
  navigateToTemplate(): void;
419
+ onItemsSelectedChange(items: ListItem[]): void;
420
+ selectCategory(): void;
421
+ removeProgram(program: any): void;
422
+ getLinkProgram(policyId: string): void;
414
423
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowPolicyComponent, never>;
415
424
  static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowPolicyComponent, "app-workflow-policy", never, { "mode": { "alias": "mode"; "required": false; }; "policyId": { "alias": "policyId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "showConfirmationAlert": "showConfirmationAlert"; "populateOption": "populateOption"; "disconnectRefresh": "disconnectRefresh"; "shiftToEditMode": "shiftToEditMode"; }, never, never, false, never>;
416
425
  }
@@ -11,8 +11,8 @@ export declare class WorkflowProgramComponent implements OnInit {
11
11
  private programService;
12
12
  private authService;
13
13
  private uiKitService;
14
- private iframeService;
15
14
  private changeRef;
15
+ private iframeService;
16
16
  ASSETS: {
17
17
  responsibility_center: string;
18
18
  case_type: string;
@@ -139,6 +139,7 @@ export declare class WorkflowProgramComponent implements OnInit {
139
139
  allowedFeature: any;
140
140
  addToProgramDetails: any;
141
141
  orgDetails: any;
142
+ programDetails: any;
142
143
  panelTitleDefaultReviewer: string;
143
144
  panelTitleOwner: string;
144
145
  panelTitleReviewer: string;
@@ -157,7 +158,7 @@ export declare class WorkflowProgramComponent implements OnInit {
157
158
  assignorId: number[];
158
159
  disableReviewerIds: any[];
159
160
  disableOverseerIds: any[];
160
- constructor(fb: UntypedFormBuilder, programService: ProgramsService, authService: AuthService, uiKitService: UiKitService, iframeService: IframeService, changeRef: ChangeDetectorRef);
161
+ constructor(fb: UntypedFormBuilder, programService: ProgramsService, authService: AuthService, uiKitService: UiKitService, changeRef: ChangeDetectorRef, iframeService: IframeService);
161
162
  noWhitespaceValidator(control: UntypedFormControl): {
162
163
  whitespace: boolean;
163
164
  } | null;
@@ -218,7 +219,6 @@ export declare class WorkflowProgramComponent implements OnInit {
218
219
  returnIds(list: any[], key: string): any[];
219
220
  refreshList(): void;
220
221
  removeRole(evt: any): void;
221
- setDefaultAssignee(evt: any): void;
222
222
  setDefaultAssigneeOnRemove(evt: any, type: any): void;
223
223
  setDefaultReviewer(evt: any): void;
224
224
  setDefaultOverseer(evt: any): void;
@@ -253,6 +253,7 @@ export declare class WorkflowProgramComponent implements OnInit {
253
253
  uniqueByProp(array: any, key: string): unknown[];
254
254
  setList(list: any[], ids: any[], key: string): any;
255
255
  saveProgram(): void;
256
+ postIframeMessage(event: string, data: any): void;
256
257
  action(event: string): void;
257
258
  viewPrograms(): void;
258
259
  resetForm(): void;
@@ -261,11 +262,14 @@ export declare class WorkflowProgramComponent implements OnInit {
261
262
  * Get program details when user is trying to edit program
262
263
  */
263
264
  getProgramDetails(): void;
265
+ populateProgramDetails(res: any): void;
264
266
  populateMembers(res: any): void;
265
267
  populateGroups(res: any): void;
268
+ populateGroupsByGID(programDetails: any, type: string): void;
266
269
  resetAdditionalOption(): void;
267
270
  checkProgramOptionField(): any;
268
271
  enablefeature(): void;
272
+ handleDataPopulation(): void;
269
273
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowProgramComponent, never>;
270
- static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowProgramComponent, "app-workflow-program", never, { "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "programId": { "alias": "programId"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "allowedFeature": { "alias": "allowedFeature"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "orgDetails": { "alias": "orgDetails"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "populateOption": "populateOption"; "closeWorkflow": "closeWorkflow"; "showConfirmationAlert": "showConfirmationAlert"; "disconnectRefresh": "disconnectRefresh"; "refreshForm": "refreshForm"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; "onRemovingRole": "onRemovingRole"; "disableElementsFromMoreOptions": "disableElementsFromMoreOptions"; }, never, never, false, never>;
274
+ static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowProgramComponent, "app-workflow-program", never, { "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "programId": { "alias": "programId"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "allowedFeature": { "alias": "allowedFeature"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "orgDetails": { "alias": "orgDetails"; "required": false; }; "programDetails": { "alias": "programDetails"; "required": false; }; }, { "pickerChanged": "pickerChanged"; "populateOption": "populateOption"; "closeWorkflow": "closeWorkflow"; "showConfirmationAlert": "showConfirmationAlert"; "disconnectRefresh": "disconnectRefresh"; "refreshForm": "refreshForm"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; "onRemovingRole": "onRemovingRole"; "disableElementsFromMoreOptions": "disableElementsFromMoreOptions"; }, never, never, false, never>;
271
275
  }
@@ -167,7 +167,7 @@ export declare class WorkflowRiskComponent implements OnInit {
167
167
  setPopupButtons(): void;
168
168
  getRiskDetails(riskId: any): void;
169
169
  populateOptionalFields(): void;
170
- setCategoryType(type: any): "strategic" | "compliance" | "operational" | "others";
170
+ setCategoryType(type: any): "others" | "strategic" | "compliance" | "operational";
171
171
  getRCList(): void;
172
172
  getCategoryList(): void;
173
173
  getOwnersList(): void;
@@ -24,13 +24,13 @@ export declare class PolicyService {
24
24
  uploadFile(data: any, id: string, path: string): import("rxjs").Observable<Object>;
25
25
  uploadDocxFile(data: any, id: string, path: string): import("rxjs").Observable<Object>;
26
26
  savePolicyDetails(uname: any, uid: any, id: any, name: any, html: any, isSendForApprove: any): import("rxjs").Observable<Object>;
27
- fileSizeLimit(file: File): boolean;
28
27
  editPolicy(id: any): import("rxjs").Observable<any[]>;
29
28
  updatePolicy(payload: any, policyId: any): import("rxjs").Observable<any>;
30
29
  extractFile(extension: any, path: any, id: any): import("rxjs").Observable<Object>;
31
30
  createApprovalWorkflow(payload: any): import("rxjs").Observable<any>;
32
31
  editApprovalWorkflow(payload: any, id: string): import("rxjs").Observable<any>;
33
32
  LinkedPoliciesList(policyId: string): import("rxjs").Observable<Object>;
33
+ getLinkedPrograms(policyId: string): import("rxjs").Observable<Object>;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<PolicyService, [null, null, { optional: true; }]>;
35
35
  static ɵprov: i0.ɵɵInjectableDeclaration<PolicyService>;
36
36
  }
@@ -29,61 +29,20 @@ export declare class ProgramsService {
29
29
  };
30
30
  saveProgram(payload: any): import("rxjs").Observable<any[]>;
31
31
  buildPayload(formData: any, instance: any): {
32
- mode: string;
33
32
  name: any;
34
- description: {
35
- text: any;
36
- attachments: any;
33
+ type: string;
34
+ description: any;
35
+ owners: {
36
+ admins: {
37
+ users: any;
38
+ userGroups: any;
39
+ };
40
+ managers: {
41
+ users: any;
42
+ userGroups: any;
43
+ };
37
44
  };
38
- program_objective: {
39
- text: any;
40
- attachments: any;
41
- };
42
- roles: any;
43
- owners: any;
44
- owners_group: any;
45
- all_user_in_role: any;
46
- programType: any;
47
- state: any;
48
- approvers: any;
49
- calculate_past_upcoming_event: any;
50
- program_frequency: number;
51
- lock_scope: number;
52
- rc_ids: any;
53
- assignee_ids: any;
54
- assignee_group_ids: any;
55
- default_assignee_ids: any;
56
- default_assignee_group_ids: any;
57
- default_assignee_type: any;
58
- reviewers: any;
59
- reviewer_group_ids: any;
60
- default_reviewers: any;
61
- default_reviewer_group_ids: any;
62
- default_reviewers_type: any;
63
- overseers: {
64
- cc_email: any;
65
- cc_email_groups: any;
66
- failure_cc_email: never[];
67
- failure_cc_email_groups: never[];
68
- };
69
- default_overseers: {
70
- cc_email: any;
71
- cc_email_groups: any;
72
- failure_cc_email: any;
73
- failure_cc_email_groups: any;
74
- };
75
- assessment: any;
76
- evidence_upload_flag: number;
77
- is_key_evidence: any;
78
- custom_fields: any;
79
- framework: {
80
- _id: any;
81
- framework_name: any;
82
- type: any;
83
- in_scope: any;
84
- out_scope: any;
85
- }[];
86
- _id: any;
45
+ customFields: any;
87
46
  };
88
47
  generateAssessment(assessment: any): any;
89
48
  getFramework(input: any): {
@@ -108,6 +67,7 @@ export declare class ProgramsService {
108
67
  */
109
68
  updateProgram(payload: any, id: string): import("rxjs").Observable<any[]>;
110
69
  getMemeberByIds(ids: any): import("rxjs").Observable<any[]>;
70
+ getMemeberByUIds(ids: any): import("rxjs").Observable<any[]>;
111
71
  getMemberByGroups(ids: any): import("rxjs").Observable<any[]>;
112
72
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgramsService, [null, null, { optional: true; }]>;
113
73
  static ɵprov: i0.ɵɵInjectableDeclaration<ProgramsService>;
@@ -4,12 +4,15 @@ import { AuthService } from './auth.service';
4
4
  import { AssessmentList } from '../sharedComponents/assessment-list/service/assessment.interface';
5
5
  import { BehaviorSubject, Observable } from 'rxjs';
6
6
  import { Responsibility } from '../interfaces/responsibilty.interface';
7
+ import { GrcService } from '../workflow/shared/services/grc.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ResponsibilityService {
9
10
  private http;
10
11
  private authService;
12
+ private grcService;
11
13
  env: any;
12
14
  dataPerPage: number;
15
+ responsibilityPageNumber: number;
13
16
  grcOwners$: BehaviorSubject<any>;
14
17
  RCList: BehaviorSubject<any>;
15
18
  AssignorList: BehaviorSubject<any>;
@@ -18,7 +21,7 @@ export declare class ResponsibilityService {
18
21
  AssuranceCategoryList: BehaviorSubject<any>;
19
22
  private overseerList;
20
23
  private policyGroups;
21
- constructor(http: HttpClient, authService: AuthService, config?: Configurations);
24
+ constructor(http: HttpClient, authService: AuthService, grcService: GrcService, config?: Configurations);
22
25
  getResponsibilityCenterList(params?: HttpParams): Observable<any>;
23
26
  getOrganizationGroups(params?: HttpParams): Observable<any>;
24
27
  getOrganizationPolicyGroups(params?: HttpParams): Observable<any>;
@@ -31,7 +34,6 @@ export declare class ResponsibilityService {
31
34
  getProgramsListCount(params: HttpParams, ids?: any): Observable<any[]>;
32
35
  getCategoriesUnderProgram(params: HttpParams): Observable<any[]>;
33
36
  getAssurance(): Observable<any>;
34
- getAssuranceForRequiresAudit(): Observable<any>;
35
37
  getRCDetailsOfFramework(rc_id: any, category_id: any): Observable<Object>;
36
38
  submitEntrust(entrust_body: any): Observable<Object>;
37
39
  updateEntrust(entrust_body: any, object_id: any, isDelegate: any): Observable<Object>;
@@ -56,7 +58,18 @@ export declare class ResponsibilityService {
56
58
  addGRCObject(payload: any): Observable<any[]>;
57
59
  updateGRCObject(payload: any, _id: string): Observable<any[]>;
58
60
  buildResponsibilityPayload(event: any): Responsibility | null;
59
- getRiskClass(riskClass: 0 | 1 | 2 | 3): 'low' | 'low-medium' | 'medium-high' | 'high';
60
- static ɵfac: i0.ɵɵFactoryDeclaration<ResponsibilityService, [null, null, { optional: true; }]>;
61
+ getOverseer(event: any): {
62
+ success: {
63
+ userId: any;
64
+ userGroupId: any;
65
+ };
66
+ fail: {
67
+ userId: any;
68
+ userGroupId: any;
69
+ };
70
+ } | undefined;
71
+ transformData(input: any): any;
72
+ getAllResponsibilities(): Observable<any[]>;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResponsibilityService, [null, null, null, { optional: true; }]>;
61
74
  static ɵprov: i0.ɵɵInjectableDeclaration<ResponsibilityService>;
62
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "6.0.91",
3
+ "version": "6.0.93",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "
@@ -1,6 +0,0 @@
1
- export const FILE_SIZE = {
2
- MAX_SIZE: 200 * 1024 * 1024,
3
- ERROR: 'alert',
4
- MESSAGE: 'Maximum allowed size is 200 MB.'
5
- };
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9saWN5LmNvbnN0YW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdngtd29ya2Zsb3ctZW5naW5lL3NyYy9saWIvY29uc3RhbnRzL3BvbGljeS5jb25zdGFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLENBQUMsTUFBTSxTQUFTLEdBQWE7SUFDL0IsUUFBUSxFQUFFLEdBQUcsR0FBRyxJQUFJLEdBQUcsSUFBSTtJQUMzQixLQUFLLEVBQUUsT0FBTztJQUNkLE9BQU8sRUFBRSxpQ0FBaUM7Q0FDM0MsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEZpbGVTaXplIH0gZnJvbSBcIi4uL2ludGVyZmFjZXMvcG9saWN5LmludGVyZmFjZVwiO1xuXG5leHBvcnQgY29uc3QgRklMRV9TSVpFOiBGaWxlU2l6ZSA9IHtcbiAgICBNQVhfU0laRTogMjAwICogMTAyNCAqIDEwMjQsXG4gICAgRVJST1I6ICdhbGVydCcsXG4gICAgTUVTU0FHRTogJ01heGltdW0gYWxsb3dlZCBzaXplIGlzIDIwMCBNQi4nXG4gIH0iXX0=
@@ -1,4 +0,0 @@
1
- export const REGEX = {
2
- MONTH: /^[A-Za-z]+'\d{2}$/,
3
- };
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXguY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdngtd29ya2Zsb3ctZW5naW5lL3NyYy9saWIvY29uc3RhbnRzL3JlZ2l4LmNvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxLQUFLLEdBQUc7SUFDakIsS0FBSyxFQUFFLG1CQUFtQjtDQUM3QixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFJFR0VYID0ge1xuICAgIE1PTlRIOiAvXltBLVphLXpdKydcXGR7Mn0kLyxcbn0iXX0=
@@ -1,8 +0,0 @@
1
- export const RISK_CLASS_LIST = ['high', 'low-medium', 'low', 'medium-high'];
2
- export const VALIDATION_MESSAGES = {
3
- RISK_CLASS: 'Invalid risk class. Select a valid option from the drop-down list.',
4
- DAY: 'Invalid day selection. Select a valid day from the drop-down list in the template.',
5
- DATE_FORMAT: 'Invalid date format. Select a valid date from the drop-down list in the template.',
6
- DUE_DATE: 'Invalid Due Date.',
7
- };
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2liaWxpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92eC13b3JrZmxvdy1lbmdpbmUvc3JjL2xpYi9jb25zdGFudHMvcmVzcG9uc2liaWxpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHLENBQUMsTUFBTSxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsYUFBYSxDQUFDLENBQUM7QUFFNUUsTUFBTSxDQUFDLE1BQU0sbUJBQW1CLEdBQUc7SUFDakMsVUFBVSxFQUNSLG9FQUFvRTtJQUN0RSxHQUFHLEVBQUUsb0ZBQW9GO0lBQ3pGLFdBQVcsRUFDVCxtRkFBbUY7SUFDckYsUUFBUSxFQUFFLG1CQUFtQjtDQUM5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFJJU0tfQ0xBU1NfTElTVCA9IFsnaGlnaCcsICdsb3ctbWVkaXVtJywgJ2xvdycsICdtZWRpdW0taGlnaCddO1xuXG5leHBvcnQgY29uc3QgVkFMSURBVElPTl9NRVNTQUdFUyA9IHtcbiAgUklTS19DTEFTUzpcbiAgICAnSW52YWxpZCByaXNrIGNsYXNzLiBTZWxlY3QgYSB2YWxpZCBvcHRpb24gZnJvbSB0aGUgZHJvcC1kb3duIGxpc3QuJyxcbiAgREFZOiAnSW52YWxpZCBkYXkgc2VsZWN0aW9uLiBTZWxlY3QgYSB2YWxpZCBkYXkgZnJvbSB0aGUgZHJvcC1kb3duIGxpc3QgaW4gdGhlIHRlbXBsYXRlLicsXG4gIERBVEVfRk9STUFUOlxuICAgICdJbnZhbGlkIGRhdGUgZm9ybWF0LiBTZWxlY3QgYSB2YWxpZCBkYXRlIGZyb20gdGhlIGRyb3AtZG93biBsaXN0IGluIHRoZSB0ZW1wbGF0ZS4nLFxuICBEVUVfREFURTogJ0ludmFsaWQgRHVlIERhdGUuJyxcbn07XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9saWN5LmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Z4LXdvcmtmbG93LWVuZ2luZS9zcmMvbGliL2ludGVyZmFjZXMvcG9saWN5LmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGaWxlU2l6ZSB7XG4gICAgTUFYX1NJWkU6IG51bWJlcjtcbiAgICBFUlJPUjogJ3N1Y2Nlc3MnfCd3YXJuaW5nJ3wnaW5mbyd8J2FsZXJ0J3wnZXJyb3InO1xuICAgIE1FU1NBR0U6IHN0cmluZztcbiAgfVxuICAiXX0=