vcomply-workflow-engine 6.0.77 → 6.0.78

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 (96) hide show
  1. package/esm2022/lib/add-multiple-responsibility/add-multiple-responsibility.component.mjs +1 -10
  2. package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +1 -10
  3. package/esm2022/lib/add-multiple-risk/add-multiple-risk.component.mjs +1 -10
  4. package/esm2022/lib/constants/api.constants.mjs +5 -3
  5. package/esm2022/lib/constants/mock.mjs +152 -0
  6. package/esm2022/lib/interfaces/frequency.interface.mjs +2 -0
  7. package/esm2022/lib/interfaces/iframe-type.mjs +7 -0
  8. package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
  9. package/esm2022/lib/more-option/more-option.component.mjs +17 -183
  10. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +3 -2
  11. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +5 -5
  12. package/esm2022/lib/services/common.service.mjs +40 -1
  13. package/esm2022/lib/services/iframe.service.mjs +14 -1
  14. package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +5 -1
  15. package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +5 -1
  16. package/esm2022/lib/sharedComponents/frequency/frequency-container/frequency-container.component.mjs +5 -5
  17. package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +2 -1
  18. package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +6 -2
  19. package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +3 -2
  20. package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +3 -1
  21. package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +5 -1
  22. package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +9 -2
  23. package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +4 -2
  24. package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +247 -1
  25. package/esm2022/lib/sharedComponents/link-responsibility/link-responsibility.component.mjs +1 -3
  26. package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +52 -0
  27. package/esm2022/lib/sharedComponents/program-list/constant.mjs +16 -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 +182 -0
  32. package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +47 -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-assessment/import-an-assessment/import-an-assessment.component.mjs +1 -10
  44. package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +284 -413
  45. package/esm2022/lib/workflow-engine-container/api-constants.mjs +3 -2
  46. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +32 -53
  47. package/esm2022/lib/workflow-engine.module.mjs +13 -6
  48. package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +55 -35
  49. package/esm2022/lib/workflow-program/constants.mjs +3 -3
  50. package/esm2022/lib/workflow-program/workflow-program.component.mjs +122 -338
  51. package/esm2022/lib/workflow-services/policy.service.mjs +8 -4
  52. package/esm2022/lib/workflow-services/programs.service.mjs +26 -113
  53. package/esm2022/lib/workflow-services/responsibility.service.mjs +60 -56
  54. package/fesm2022/vcomply-workflow-engine.mjs +4701 -4517
  55. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  56. package/lib/add-multiple-responsibility/add-multiple-responsibility.component.d.ts +0 -2
  57. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +0 -2
  58. package/lib/add-multiple-risk/add-multiple-risk.component.d.ts +0 -2
  59. package/lib/constants/api.constants.d.ts +4 -2
  60. package/lib/constants/mock.d.ts +15 -0
  61. package/lib/interfaces/frequency.interface.d.ts +37 -0
  62. package/lib/interfaces/iframe-type.d.ts +5 -0
  63. package/lib/interfaces/responsibilty.interface.d.ts +12 -12
  64. package/lib/services/common.service.d.ts +28 -0
  65. package/lib/services/iframe.service.d.ts +6 -0
  66. package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +1 -0
  67. package/lib/sharedComponents/frequency/frequency.service.d.ts +87 -0
  68. package/lib/sharedComponents/list-container/list-container.component.d.ts +9 -0
  69. package/lib/sharedComponents/program-list/constant.d.ts +9 -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 +45 -0
  74. package/lib/sharedComponents/program-list/program-list.module.d.ts +14 -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-assessment/import-an-assessment/import-an-assessment.component.d.ts +0 -2
  86. package/lib/workflow-compliance/workflow-compliance.component.d.ts +32 -6
  87. package/lib/workflow-engine-container/api-constants.d.ts +1 -0
  88. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +5 -2
  89. package/lib/workflow-engine.module.d.ts +42 -40
  90. package/lib/workflow-policy/workflow-policy.component.d.ts +9 -0
  91. package/lib/workflow-program/workflow-program.component.d.ts +8 -4
  92. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  93. package/lib/workflow-services/policy.service.d.ts +1 -0
  94. package/lib/workflow-services/programs.service.d.ts +13 -53
  95. package/lib/workflow-services/responsibility.service.d.ts +17 -4
  96. package/package.json +1 -1
@@ -71,8 +71,6 @@ export declare class AddMultipleResponsibilityComponent implements OnChanges {
71
71
  isPastDate(day: any, month: any): boolean;
72
72
  downloadTemplate(): void;
73
73
  submitResponsibilityBulkUpload(): void;
74
- submitWorkflow(): void;
75
- private getOrigin;
76
74
  returnIds(item: any, key: string): number | {
77
75
  name: string;
78
76
  rcId: number;
@@ -94,8 +94,6 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
94
94
  isPastDate(day: any, month: any): boolean;
95
95
  downloadTemplate(): void;
96
96
  submitResponsibilityBulkUpload(): void;
97
- submitWorkflow(): void;
98
- private getOrigin;
99
97
  returnIds(item: any, key: string): any;
100
98
  reset(): void;
101
99
  action(event: string): void;
@@ -123,8 +123,6 @@ export declare class AddMultipleRiskComponent implements OnInit, OnChanges {
123
123
  checkValidity(risk: any): boolean;
124
124
  downloadTemplate(): void;
125
125
  submitRiskBulkUpload(completeAssessment: any): void;
126
- submitWorkflow(): void;
127
- private getOrigin;
128
126
  returnIds(item: any, key: string): any;
129
127
  reset(): void;
130
128
  action(event: string): void;
@@ -1,5 +1,7 @@
1
1
  export declare const API: {
2
2
  subscriptionList: string;
3
- goToPolicyWorkroom: string;
4
- editPolicy: string;
3
+ };
4
+ export declare const PROGRAM_LIST_API: {
5
+ programList: string;
6
+ categoryList: string;
5
7
  };
@@ -0,0 +1,15 @@
1
+ import { ListItem } from '../sharedComponents/program-list/interfaces/list-item.interface';
2
+ export declare const MOCK_PROGRAMS: ListItem[];
3
+ export declare const MOCK_CATEGORIES: ({
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ level: number;
8
+ parent: null;
9
+ } | {
10
+ id: string;
11
+ name: string;
12
+ description: string;
13
+ level: number;
14
+ parent: string;
15
+ })[];
@@ -0,0 +1,37 @@
1
+ export interface FrequencyObject {
2
+ type: 'one_time' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semester' | 'yearly' | 'random' | 'ongoing' | 'on_completion_of' | 'biannually';
3
+ endAfter: number;
4
+ startBefore: number;
5
+ autoDeactivate: number;
6
+ day: number;
7
+ time: string;
8
+ repeatOptions?: RepeatOptions;
9
+ random?: Random | {};
10
+ onComplete?: OnComplete | {};
11
+ onGoing?: OnGoing | {};
12
+ }
13
+ interface RepeatOptions {
14
+ every: number;
15
+ repeatOn: string;
16
+ lifecycle: Lifecycle;
17
+ }
18
+ interface Random {
19
+ type: string;
20
+ occurrences: number;
21
+ }
22
+ interface OnComplete {
23
+ rId: number;
24
+ aId: number;
25
+ rcId: number;
26
+ startAfter: number;
27
+ }
28
+ interface OnGoing {
29
+ reminders: number;
30
+ startOf: 'week' | 'month' | 'quarter' | 'semester' | 'year';
31
+ }
32
+ interface Lifecycle {
33
+ startFrom: string;
34
+ endBy: string | undefined;
35
+ endAfter: number | undefined;
36
+ }
37
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare enum PostMessageEvent {
2
+ CLOSE_WEBVIEW = "closeWebview",
3
+ PROGRAM_CREATED = "programCreated",
4
+ PROGRAM_UPDATED = "programUpdated"
5
+ }
@@ -1,8 +1,8 @@
1
1
  interface Frequency {
2
- type: 'daily';
2
+ type: string;
3
3
  }
4
4
  interface Assignee {
5
- type: 'all' | 'any_one';
5
+ type: 'all' | 'any';
6
6
  userId: number[];
7
7
  userGroupId: number[];
8
8
  }
@@ -11,8 +11,8 @@ interface ResponsibilityCenter {
11
11
  id: number[];
12
12
  }
13
13
  interface ReviewerFrequency {
14
- dueDays: number;
15
- extensionDays: number;
14
+ completeBy: number;
15
+ endAfter: number;
16
16
  }
17
17
  interface Reviewer {
18
18
  type: 'sequential' | 'any_one';
@@ -37,23 +37,23 @@ interface Evidence {
37
37
  }
38
38
  interface Program {
39
39
  id: number[];
40
+ tags: {
41
+ [key: string]: string;
42
+ };
40
43
  }
41
44
  export interface Responsibility {
42
45
  title: string;
43
46
  key: number;
44
- riskClass: 'low' | 'low-medium' | 'medium-high' | 'high';
47
+ riskClass: 'low' | 'low_medium' | 'medium_high' | 'high';
45
48
  notes: string;
46
49
  objective: string;
47
50
  frequency: Frequency;
48
- assignorId: number;
51
+ assignor: number;
49
52
  assignee: Assignee;
50
- responsibilityCenter: ResponsibilityCenter;
51
- reviewer: Reviewer;
52
- overseer: Overseer;
53
+ responsibilityCenter: ResponsibilityCenter | undefined;
54
+ reviewer: Reviewer | undefined;
55
+ overseer: Overseer | undefined;
53
56
  evidence: Evidence;
54
- tags: {
55
- [key: string]: string;
56
- };
57
57
  program: Program;
58
58
  grcObjectId: any[];
59
59
  assessmentId: string;
@@ -9,6 +9,34 @@ export declare class CommonService {
9
9
  };
10
10
  handleDocumentClick(datePickerObject: any): boolean;
11
11
  private closeDatePickerIfOpen;
12
+ /**
13
+ * Transforms program data to identify added and removed program IDs.
14
+ * This method compares the current program selection with previously linked programs
15
+ * to determine which programs have been added or removed.
16
+ *
17
+ * @param input - An object containing program selections, where each key represents a category
18
+ * and its value is an array of program objects with an 'id' property.
19
+ * @param linkedProgramIds - Array of previously linked program IDs
20
+ *
21
+ * @returns An object containing:
22
+ * - added: Array of program IDs that are newly selected
23
+ * - removed: Array of program IDs that were previously linked but are no longer selected
24
+ *
25
+ * @example
26
+ * // If input is { category1: [{id: 1}, {id: 2}], category2: [{id: 3}] }
27
+ * // And linkedProgramIds is [1, 4]
28
+ * // Returns { added: [2, 3], removed: [4] }
29
+ */
30
+ transformProgramData(input: Record<string, Array<{
31
+ pid: string;
32
+ }>>, linkedProgramIds?: string[]): {
33
+ added: string[];
34
+ removed: string[];
35
+ };
36
+ transformResponsibilitiesData(currentResponsibilityIds: number[], linkedResponsibilityIds?: number[]): {
37
+ added: number[];
38
+ removed: number[];
39
+ };
12
40
  static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
13
41
  static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
14
42
  }
@@ -1,6 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class IframeService {
3
3
  redirectIfInIframe(targetUrl: string, mode?: boolean): void;
4
+ postMessage(message: any): void;
5
+ private getOrigin;
6
+ getCloseWebviewMessage(event: string, data: any): {
7
+ event: string;
8
+ data: any;
9
+ };
4
10
  static ɵfac: i0.ɵɵFactoryDeclaration<IframeService, never>;
5
11
  static ɵprov: i0.ɵɵInjectableDeclaration<IframeService>;
6
12
  }
@@ -52,6 +52,7 @@ export declare class FrequencyRandomComponent implements OnInit {
52
52
  getQuarterlyFrequency(): {
53
53
  pattern: string;
54
54
  placeholder: string;
55
+ monthSequence: number[];
55
56
  };
56
57
  getYearlyFrequency(): {
57
58
  pattern: string;
@@ -1,6 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Configurations } from '../../configurations';
3
3
  import { AuthService } from '../../workflow-services/auth.service';
4
+ import { FrequencyObject } from '../../interfaces/frequency.interface';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class FrequencyService {
6
7
  private http;
@@ -47,6 +48,92 @@ export declare class FrequencyService {
47
48
  getResponsibilityList(payload: any): import("rxjs").Observable<any>;
48
49
  getResponsibilitiesCount(payload: any): import("rxjs").Observable<any>;
49
50
  formatDate(): string;
51
+ /**
52
+ * Converts a frequency configuration object into a standardized FrequencyObject format.
53
+ *
54
+ * @param frequency - The input frequency configuration object with the following properties:
55
+ * - case: The type of frequency ('one_time' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'semester' | 'yearly' | 'random' | 'ongoing' | 'on_completion_of' | 'biannually')
56
+ * - window: Number of days before the task can be started
57
+ * - failedAfter: Number of days after which the task is considered failed
58
+ * - continuous_failed_days: Number of days after which the task is auto-deactivated
59
+ * - day: The day of occurrence
60
+ * - timeIn24Hr: Time in 24-hour format
61
+ * - every: Frequency interval
62
+ * - selectedDay: Array of selected days for weekly frequency (1-7 representing Monday-Sunday)
63
+ * - selectedMonth: Array of selected months (0-11 representing January-December)
64
+ * - startFrom: Unix timestamp for the start date
65
+ * - lifecycleDetails: String in format "YYYY-MM-DD~~N" where N is the number of occurrences
66
+ * - randomTypeSelected: Index for random frequency type (0: weekly, 1: monthly, 2: quarterly, 3: yearly)
67
+ * - randomInstances: Number of random occurrences
68
+ * - selectedType: Number of reminders for ongoing frequency
69
+ * - selectedOngoingType: Index for ongoing frequency type (1: week, 2: month, 3: quarter, 4: semester, 5: year)
70
+ *
71
+ * @returns A FrequencyObject with the following structure:
72
+ * - type: Frequency type
73
+ * - startBefore: Days before task can start
74
+ * - endAfter: Days after which task fails
75
+ * - autoDeactivate: Days after which task is deactivated
76
+ * - day: Day of occurrence
77
+ * - time: Time in 24-hour format
78
+ * - repeatOptions: {
79
+ * every: number,
80
+ * repeatOn: string (binary representation of selected days/months),
81
+ * lifecycle: {
82
+ * startFrom: string (YYYY-MM-DD),
83
+ * endBy?: string (YYYY-MM-DD),
84
+ * endAfter?: number
85
+ * }
86
+ * }
87
+ * - random?: { type: string, occurrence: number }
88
+ * - onComplete: {}
89
+ * - onGoing: { reminders: number, startOf: 'week' | 'month' | 'quarter' | 'semester' | 'year' }
90
+ *
91
+ * @example
92
+ * ```typescript
93
+ * const frequency = {
94
+ * case: 'weekly',
95
+ * window: 2,
96
+ * failedAfter: 1,
97
+ * continuous_failed_days: 3,
98
+ * day: 1,
99
+ * timeIn24Hr: '09:00:00',
100
+ * every: 1,
101
+ * selectedDay: [1, 3, 5], // Monday, Wednesday, Friday
102
+ * startFrom: 1678900000,
103
+ * lifecycleDetails: '2024-12-31~~10'
104
+ * };
105
+ * const result = setFrequencyObject(frequency);
106
+ * ```
107
+ */
108
+ setFrequencyObject(frequency: any): FrequencyObject | null;
109
+ repeatOptions(frequency: any): string;
110
+ getOngoing(frequency: any): {
111
+ reminders: any;
112
+ startOf: string;
113
+ };
114
+ getRandomFrequency(frequency: any): {
115
+ type: string;
116
+ occurrence: any;
117
+ };
118
+ createFrequencyPattern(frequency: any): string;
119
+ getDay(repeatOptions: string): string;
120
+ getMonth(repeatOptions: string): string;
121
+ getLifecyclePattern(frequency: any): {
122
+ startFrom: number;
123
+ pattern: string;
124
+ };
125
+ /**
126
+ * Converts a date string in "YYYY-MM-DD" format to "DD-Month-YYYY~~0".
127
+ *
128
+ * @param {string} dateString - The input date string in "YYYY-MM-DD" format.
129
+ * @returns {string} - The formatted date string in "DD-Month-YYYY~~0" format.
130
+ *
131
+ * @example
132
+ * ```typescript
133
+ * formatDateString("2025-03-27"); // Returns "27-March-2025~~0"
134
+ * ```
135
+ */
136
+ formatDateString(dateString: string): string;
50
137
  static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, { optional: true; }]>;
51
138
  static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
52
139
  }
@@ -0,0 +1,9 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ListContainerComponent {
4
+ heading: string;
5
+ close: EventEmitter<void>;
6
+ onClose(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListContainerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListContainerComponent, "app-list-container", never, { "heading": { "alias": "heading"; "required": false; }; }, { "close": "close"; }, never, ["[body]", "[footer]"], false, never>;
9
+ }
@@ -0,0 +1,9 @@
1
+ export declare const PROGRAM_TABLE_HEADERS: string[];
2
+ export declare const PAGINATION_OPTIONS: {
3
+ PAGE_SIZE: number;
4
+ DEFAULT_CURRENT_PAGE: number;
5
+ };
6
+ export declare const PROGRAM_TYPE_LIST: {
7
+ name: string;
8
+ id: string;
9
+ }[];
@@ -0,0 +1,4 @@
1
+ import { Observable } from 'rxjs';
2
+ export interface DataSource<T> {
3
+ load(searchTerm?: string): Observable<T[]>;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface ListItem {
2
+ id: string;
3
+ name: string;
4
+ type: "regulations" | "standards" | "internal_controls" | "others";
5
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class CheckSelectedItemsPipe implements PipeTransform {
4
+ transform(id: string, selectedItems: any): boolean;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckSelectedItemsPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<CheckSelectedItemsPipe, "checkSelectedItems", false>;
7
+ }
@@ -0,0 +1,45 @@
1
+ import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { ListItem } from '../interfaces/list-item.interface';
3
+ import { ListUtilsService } from '../services/list-utils.service';
4
+ import { ProgramListApiService } from '../services/program-list-api.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ProgramListComponent<T extends ListItem> implements OnInit, OnChanges {
7
+ private listUtils;
8
+ private programListApiService;
9
+ items: T[];
10
+ selectedItems: any | null;
11
+ url: any;
12
+ itemSelected: EventEmitter<T>;
13
+ itemDeselected: EventEmitter<T>;
14
+ itemsSelectedChange: EventEmitter<T[]>;
15
+ tableHeaders: string[];
16
+ currentPage: number;
17
+ pageSize: number;
18
+ totalPages: number;
19
+ searchTerm: string;
20
+ paginatedItems: T[];
21
+ activeProgram: any | null;
22
+ categoryList: any[];
23
+ programTypeList: any[];
24
+ selectedProgramType: any[];
25
+ loaderState: any;
26
+ constructor(listUtils: ListUtilsService, programListApiService: ProgramListApiService);
27
+ ngOnInit(): void;
28
+ ngOnChanges(changes: SimpleChanges): void;
29
+ getProgramList(): void;
30
+ loadData(data: any): void;
31
+ search(): void;
32
+ selectItem(event: any, item: any): void;
33
+ deselectItem(item: T): void;
34
+ isSelected(item: T): boolean;
35
+ goToPage(page: number): void;
36
+ getPageNumbers(): number[];
37
+ paginateItems(): void;
38
+ viewCategory(item?: any): void;
39
+ addParentTreeToCategories(categories: any[]): any[];
40
+ selectFilter(event: any, item: any): void;
41
+ resetFilter(): void;
42
+ onFilterChange(): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListComponent<any>, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgramListComponent<any>, "app-program-list", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "url": { "alias": "url"; "required": false; }; }, { "itemSelected": "itemSelected"; "itemDeselected": "itemDeselected"; "itemsSelectedChange": "itemsSelectedChange"; }, never, never, false, never>;
45
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./program-list/program-list.component";
3
+ import * as i2 from "./pipes/check-selected-items.pipes";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "../../formgroup/formgroup.module";
7
+ import * as i6 from "../../ui-kit/no-data/no-data.module";
8
+ import * as i7 from "../../ui-kit/popover/popover.module";
9
+ import * as i8 from "../../ui-kit/loaders/loaders.module";
10
+ export declare class ProgramListModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProgramListModule, [typeof i1.ProgramListComponent, typeof i2.CheckSelectedItemsPipe], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.FormgroupModule, typeof i6.NoDataModule, typeof i7.PopoverModule, typeof i8.LoadersModule], [typeof i1.ProgramListComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProgramListModule>;
14
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ListUtilsService {
3
+ paginate<T>(items: T[], currentPage: number, pageSize: number): T[];
4
+ getPageNumbers(totalItems: number, pageSize: number): number[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListUtilsService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<ListUtilsService>;
7
+ }
@@ -0,0 +1,14 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Configurations } from '../../../configurations';
4
+ import { AuthService } from '../../../workflow-services/auth.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ProgramListApiService {
7
+ private http;
8
+ private authService;
9
+ env: any;
10
+ constructor(http: HttpClient, authService: AuthService, config?: Configurations);
11
+ getProgramList(apiUrl: string): Observable<any>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListApiService, [null, null, { optional: true; }]>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProgramListApiService>;
14
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./table-loader/table-loader.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class LoadersModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadersModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LoadersModule, [typeof i1.TableLoaderComponent], [typeof i2.CommonModule], [typeof i1.TableLoaderComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<LoadersModule>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TableLoaderComponent implements OnInit {
4
+ listSize: number[];
5
+ constructor();
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableLoaderComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableLoaderComponent, "app-table-loader", never, { "listSize": { "alias": "listSize"; "required": false; }; }, {}, never, never, false, never>;
9
+ }
@@ -8,6 +8,7 @@ import { UiKitService } from '../../../workflow-services/ui-kit.service';
8
8
  import { ComplianceCommonService } from '../../../workflow-services/common-workflow-services/compliance-common.service';
9
9
  import { OrganizationCommonService } from '../../../workflow-services/common-workflow-services/organization-common.service';
10
10
  import { IframeService } from '../../../services/iframe.service';
11
+ import { CommonService } from '../../../services/common.service';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
13
14
  private grcService;
@@ -17,6 +18,7 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
17
18
  private complianceCommonService;
18
19
  private organizationCommonService;
19
20
  private iframeService;
21
+ private CommonService;
20
22
  MODE: 'CREATE' | 'EDIT';
21
23
  ID: string;
22
24
  ALL_TEXT: {
@@ -96,6 +98,7 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
96
98
  selectedProgram: any[];
97
99
  selectedResponsibility: any[];
98
100
  submitLoader: boolean;
101
+ linkedResponsibilities: any;
99
102
  populateOption: EventEmitter<any>;
100
103
  pickerChanged: EventEmitter<any>;
101
104
  closeWorkflow: EventEmitter<any>;
@@ -104,7 +107,7 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
104
107
  hideElementsFromMoreOptions: EventEmitter<any>;
105
108
  otherGRCSubscription: Subscription;
106
109
  hideMoreOption: any;
107
- constructor(grcService: GrcService, apiService: ResponsibilityService, authService: AuthService, uiKitService: UiKitService, complianceCommonService: ComplianceCommonService, organizationCommonService: OrganizationCommonService, iframeService: IframeService);
110
+ constructor(grcService: GrcService, apiService: ResponsibilityService, authService: AuthService, uiKitService: UiKitService, complianceCommonService: ComplianceCommonService, organizationCommonService: OrganizationCommonService, iframeService: IframeService, CommonService: CommonService);
108
111
  ngOnDestroy(): void;
109
112
  ngOnInit(): void;
110
113
  getSubscriptionDetails(): void;
@@ -170,6 +173,7 @@ export declare class GrcObjectContainerComponent implements OnInit, OnDestroy {
170
173
  resetOtherGRCCard(): void;
171
174
  resetDataOnRCChange(): void;
172
175
  resetMoreOptionsOnRCChange(): void;
176
+ getAllResponsibilities(): void;
173
177
  static ɵfac: i0.ɵɵFactoryDeclaration<GrcObjectContainerComponent, never>;
174
178
  static ɵcmp: i0.ɵɵComponentDeclaration<GrcObjectContainerComponent, "lib-grc-object-container", never, { "grcType": { "alias": "grcType"; "required": false; }; "MODE": { "alias": "MODE"; "required": false; }; "ID": { "alias": "ID"; "required": false; }; }, { "populateOption": "populateOption"; "pickerChanged": "pickerChanged"; "closeWorkflow": "closeWorkflow"; "disconnectRefresh": "disconnectRefresh"; "resetForm": "resetForm"; "hideElementsFromMoreOptions": "hideElementsFromMoreOptions"; }, never, never, false, never>;
175
179
  }
@@ -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
  }
@@ -284,8 +284,6 @@ export declare class ImportAnAssessmentComponent {
284
284
  };
285
285
  postAssessment(data: any): void;
286
286
  postAssessmentDetails(id: any, mode: any, assessmentDetails: any): void;
287
- submitWorkflow(): void;
288
- private getOrigin;
289
287
  smileyAction(id: any): void;
290
288
  static ɵfac: i0.ɵɵFactoryDeclaration<ImportAnAssessmentComponent, never>;
291
289
  static ɵcmp: i0.ɵɵComponentDeclaration<ImportAnAssessmentComponent, "app-import-an-assessment", never, {}, { "closeWorkflow": "closeWorkflow"; "disconnectRefresh": "disconnectRefresh"; }, never, never, false, never>;