vcomply-workflow-engine 6.0.68 → 6.0.70
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.
- package/esm2022/lib/add-multiple-responsibility/add-multiple-responsibility.component.mjs +1 -10
- package/esm2022/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.mjs +1 -10
- package/esm2022/lib/add-multiple-risk/add-multiple-risk.component.mjs +1 -10
- package/esm2022/lib/constants/api.constants.mjs +5 -3
- package/esm2022/lib/constants/mock.mjs +152 -0
- package/esm2022/lib/interfaces/frequency.interface.mjs +2 -0
- package/esm2022/lib/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/more-option/more-option.component.mjs +5 -51
- package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +3 -2
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +4 -4
- package/esm2022/lib/services/common.service.mjs +40 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +5 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +5 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +2 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +6 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +2 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +3 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +5 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +9 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +4 -2
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +247 -1
- package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +52 -0
- package/esm2022/lib/sharedComponents/program-list/constant.mjs +16 -0
- package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +2 -0
- package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +2 -0
- package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +23 -0
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +182 -0
- package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +47 -0
- package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +27 -0
- package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +32 -0
- package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +24 -0
- package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +19 -0
- package/esm2022/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +45 -17
- package/esm2022/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.mjs +13 -10
- package/esm2022/lib/workflow/shared/services/grc.service.mjs +2 -2
- package/esm2022/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.mjs +1 -10
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +269 -380
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +5 -31
- package/esm2022/lib/workflow-engine.module.mjs +13 -6
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +82 -35
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +85 -242
- package/esm2022/lib/workflow-services/policy.service.mjs +4 -4
- package/esm2022/lib/workflow-services/programs.service.mjs +28 -112
- package/esm2022/lib/workflow-services/responsibility.service.mjs +47 -44
- package/fesm2022/vcomply-workflow-engine.mjs +3014 -2695
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/add-multiple-responsibility/add-multiple-responsibility.component.d.ts +0 -2
- package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +0 -2
- package/lib/add-multiple-risk/add-multiple-risk.component.d.ts +0 -2
- package/lib/constants/api.constants.d.ts +4 -2
- package/lib/constants/mock.d.ts +15 -0
- package/lib/interfaces/frequency.interface.d.ts +37 -0
- package/lib/interfaces/responsibilty.interface.d.ts +11 -11
- package/lib/services/common.service.d.ts +28 -0
- package/lib/sharedComponents/frequency/frequency-random/frequency-random.component.d.ts +1 -0
- package/lib/sharedComponents/frequency/frequency.service.d.ts +87 -0
- package/lib/sharedComponents/list-container/list-container.component.d.ts +9 -0
- package/lib/sharedComponents/program-list/constant.d.ts +9 -0
- package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +4 -0
- package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +5 -0
- package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +7 -0
- package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +45 -0
- package/lib/sharedComponents/program-list/program-list.module.d.ts +14 -0
- package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +7 -0
- package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +14 -0
- package/lib/ui-kit/loaders/loaders.module.d.ts +8 -0
- package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +9 -0
- package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +5 -1
- package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts +3 -1
- package/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.d.ts +0 -2
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +32 -6
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -1
- package/lib/workflow-engine.module.d.ts +42 -40
- package/lib/workflow-policy/workflow-policy.component.d.ts +9 -0
- package/lib/workflow-program/workflow-program.component.d.ts +6 -4
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/lib/workflow-services/programs.service.d.ts +13 -53
- package/lib/workflow-services/responsibility.service.d.ts +14 -2
- 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;
|
package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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 {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface Frequency {
|
|
2
|
-
type:
|
|
2
|
+
type: string;
|
|
3
3
|
}
|
|
4
4
|
interface Assignee {
|
|
5
5
|
type: 'all' | 'any_one';
|
|
@@ -11,8 +11,8 @@ interface ResponsibilityCenter {
|
|
|
11
11
|
id: number[];
|
|
12
12
|
}
|
|
13
13
|
interface ReviewerFrequency {
|
|
14
|
-
|
|
15
|
-
|
|
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' | '
|
|
47
|
+
riskClass: 'low' | 'low_medium' | 'medium_high' | 'high';
|
|
45
48
|
notes: string;
|
|
46
49
|
objective: string;
|
|
47
50
|
frequency: Frequency;
|
|
48
|
-
|
|
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
|
+
id: number;
|
|
32
|
+
}>>, linkedProgramIds?: number[]): {
|
|
33
|
+
added: number[];
|
|
34
|
+
removed: number[];
|
|
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,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,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
|
}
|
package/lib/workflow/shared/components/grc-category-listing/grc-category-listing.component.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -189,7 +197,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
189
197
|
allPrograms: any[];
|
|
190
198
|
riskClassification: {
|
|
191
199
|
name: string;
|
|
192
|
-
value:
|
|
200
|
+
value: string;
|
|
193
201
|
class: string;
|
|
194
202
|
}[];
|
|
195
203
|
assignorMode: string;
|
|
@@ -214,6 +222,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
214
222
|
continuous_failed_days: number;
|
|
215
223
|
onCompletionReportDetails: {};
|
|
216
224
|
};
|
|
225
|
+
frequencyObject: FrequencyObject | null;
|
|
217
226
|
frequencyPlaceholder: string;
|
|
218
227
|
shortMonth: Array<string>;
|
|
219
228
|
isEditWhat: Boolean;
|
|
@@ -244,8 +253,10 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
244
253
|
rawResponsibility: any;
|
|
245
254
|
otherGRCSubscription: Subscription;
|
|
246
255
|
allowEditDueDateFeatureFlag: boolean;
|
|
256
|
+
allProgamSelected: any[];
|
|
247
257
|
whatInput: ElementRef;
|
|
248
258
|
unSubscribeProgram: Subject<void>;
|
|
259
|
+
responsibilityDetails: any;
|
|
249
260
|
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
261
|
ngOnInit(): void;
|
|
251
262
|
setFeatureFlags(): void;
|
|
@@ -261,7 +272,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
261
272
|
getRCList(program_id?: string): void;
|
|
262
273
|
getUserDetails(): void;
|
|
263
274
|
getAssurance(): void;
|
|
264
|
-
getAssuranceForRequiresAudit(): void;
|
|
265
275
|
getOrganizationDetails(): void;
|
|
266
276
|
getCategoryList(): void;
|
|
267
277
|
filterListsAccordingToProgram(program_id?: string): void;
|
|
@@ -343,13 +353,14 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
343
353
|
getOnCompletionReportDetails(event: any): any;
|
|
344
354
|
frequencyDataPopulation(event: any): void;
|
|
345
355
|
frequencyPopulation(event: any): void;
|
|
356
|
+
setPayload(event: any): Responsibility | null;
|
|
346
357
|
frequencyData(event: any): void;
|
|
347
358
|
checkBlank(data: string): string;
|
|
348
359
|
/**
|
|
349
360
|
* It takes a string and returns a string.
|
|
350
361
|
* @param {any} res - any = {
|
|
351
362
|
*/
|
|
352
|
-
getFrequencyPlaceholder(
|
|
363
|
+
getFrequencyPlaceholder(frequency: any): void;
|
|
353
364
|
/**
|
|
354
365
|
* It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
|
|
355
366
|
* details and then it gets the on completion of responsibility and sets the frequency placeholder to
|
|
@@ -453,7 +464,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
453
464
|
*/
|
|
454
465
|
postAssessment(event: any): void;
|
|
455
466
|
setIsUploaded(event: any): void;
|
|
456
|
-
checkDefaultProgramOnRemove(
|
|
467
|
+
checkDefaultProgramOnRemove(event: any): void;
|
|
457
468
|
/**
|
|
458
469
|
* It takes an array of numbers and returns an array of unique numbers.
|
|
459
470
|
* @param {any} array - The array you want to get the unique values from.
|
|
@@ -479,6 +490,21 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
479
490
|
resetGRCDataWithTypes(): void;
|
|
480
491
|
removeOtherGRCObjects(event: any): void;
|
|
481
492
|
filterOtherGRCData(event: any, type: string): void;
|
|
493
|
+
programs: ListItem[];
|
|
494
|
+
selectedPrograms: any[];
|
|
495
|
+
customItemTemplate: TemplateRef<any> | undefined;
|
|
496
|
+
onItemsSelectedChange(items: ListItem[]): void;
|
|
497
|
+
selectCategory(): void;
|
|
498
|
+
get currentUserInfo(): {
|
|
499
|
+
member_email: any;
|
|
500
|
+
member_id: any;
|
|
501
|
+
member_name: any;
|
|
502
|
+
organisation_id: any;
|
|
503
|
+
_id: any;
|
|
504
|
+
};
|
|
505
|
+
removeProgram(program: any): void;
|
|
506
|
+
populateResponsibilityDetails(): void;
|
|
507
|
+
populateFrequencyDetails(frequency: any): void;
|
|
482
508
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceComponent, never>;
|
|
483
|
-
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>;
|
|
509
|
+
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>;
|
|
484
510
|
}
|