vcomply-workflow-engine 6.0.51 → 6.0.52
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/interfaces/responsibilty.interface.mjs +1 -1
- package/esm2022/lib/more-option/more-option.component.mjs +48 -5
- package/esm2022/lib/services/report-case-permission.service.mjs +3 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-annual/frequency-annual.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-biannual/frequency-biannual.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-daily/frequency-daily.component.mjs +1 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-monthly/frequency-monthly.component.mjs +2 -6
- package/esm2022/lib/sharedComponents/frequency/frequency-one-time/frequency-one-time.component.mjs +1 -2
- package/esm2022/lib/sharedComponents/frequency/frequency-ongoing/frequency-ongoing.component.mjs +1 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-quarterly/frequency-quarterly.component.mjs +1 -5
- package/esm2022/lib/sharedComponents/frequency/frequency-random/frequency-random.component.mjs +1 -3
- package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +2 -4
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +1 -185
- package/esm2022/lib/sharedComponents/group-users-list/group-users-list.component.mjs +3 -3
- package/esm2022/lib/workflow-compliance/workflow-compliance.component.mjs +132 -274
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +3 -5
- package/esm2022/lib/workflow-engine.module.mjs +6 -13
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +240 -83
- package/esm2022/lib/workflow-services/programs.service.mjs +112 -28
- package/esm2022/lib/workflow-services/responsibility.service.mjs +9 -9
- package/fesm2022/vcomply-workflow-engine.mjs +584 -1115
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/interfaces/responsibilty.interface.d.ts +1 -1
- package/lib/services/report-case-permission.service.d.ts +1 -3
- package/lib/sharedComponents/frequency/frequency.service.d.ts +0 -30
- package/lib/workflow-compliance/workflow-compliance.component.d.ts +4 -29
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -2
- package/lib/workflow-engine.module.d.ts +40 -42
- package/lib/workflow-program/workflow-program.component.d.ts +4 -6
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/lib/workflow-services/programs.service.d.ts +53 -13
- package/package.json +1 -1
- package/esm2022/lib/constants/mock.mjs +0 -130
- package/esm2022/lib/interfaces/frequency.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +0 -52
- package/esm2022/lib/sharedComponents/program-list/constant.mjs +0 -16
- package/esm2022/lib/sharedComponents/program-list/interfaces/data-source.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/program-list/interfaces/list-item.interface.mjs +0 -2
- package/esm2022/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.mjs +0 -20
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +0 -171
- package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +0 -43
- package/esm2022/lib/sharedComponents/program-list/services/list-utils.service.mjs +0 -27
- package/esm2022/lib/sharedComponents/program-list/services/program-list-api.service.mjs +0 -32
- package/lib/constants/mock.d.ts +0 -15
- package/lib/interfaces/frequency.interface.d.ts +0 -37
- package/lib/sharedComponents/list-container/list-container.component.d.ts +0 -9
- package/lib/sharedComponents/program-list/constant.d.ts +0 -9
- package/lib/sharedComponents/program-list/interfaces/data-source.interface.d.ts +0 -4
- package/lib/sharedComponents/program-list/interfaces/list-item.interface.d.ts +0 -5
- package/lib/sharedComponents/program-list/pipes/check-selected-items.pipes.d.ts +0 -7
- package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +0 -46
- package/lib/sharedComponents/program-list/program-list.module.d.ts +0 -13
- package/lib/sharedComponents/program-list/services/list-utils.service.d.ts +0 -7
- package/lib/sharedComponents/program-list/services/program-list-api.service.d.ts +0 -14
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { RbacService } from './RBAC.service';
|
|
3
2
|
import { AuthService } from './auth.service';
|
|
4
3
|
import { BehaviorSubject } from 'rxjs';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ReportCasePermissionService
|
|
5
|
+
export declare class ReportCasePermissionService {
|
|
7
6
|
private rbacService;
|
|
8
7
|
private authService;
|
|
9
8
|
hasPermission: BehaviorSubject<boolean>;
|
|
10
9
|
private rbacSubscription;
|
|
11
10
|
constructor(rbacService: RbacService, authService: AuthService);
|
|
12
|
-
ngOnInit(): void;
|
|
13
11
|
ngOnDestroy(): void;
|
|
14
12
|
checkReportACasePermission(): false | void;
|
|
15
13
|
checkSubscription(): boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class FrequencyService {
|
|
7
6
|
private http;
|
|
@@ -48,35 +47,6 @@ export declare class FrequencyService {
|
|
|
48
47
|
getResponsibilityList(payload: any): import("rxjs").Observable<any>;
|
|
49
48
|
getResponsibilitiesCount(payload: any): import("rxjs").Observable<any>;
|
|
50
49
|
formatDate(): string;
|
|
51
|
-
setFrequencyObject(frequency: any): FrequencyObject | null;
|
|
52
|
-
repeatOptions(frequency: any): string;
|
|
53
|
-
getOngoing(frequency: any): {
|
|
54
|
-
reminders: any;
|
|
55
|
-
startOf: string;
|
|
56
|
-
};
|
|
57
|
-
getRandomFrequency(frequency: any): {
|
|
58
|
-
type: string;
|
|
59
|
-
occurrence: any;
|
|
60
|
-
};
|
|
61
|
-
createFrequencyPattern(frequency: any): string;
|
|
62
|
-
getDay(repeatOptions: string): string;
|
|
63
|
-
getMonth(repeatOptions: string): string;
|
|
64
|
-
getLifecyclePattern(frequency: any): {
|
|
65
|
-
startFrom: number;
|
|
66
|
-
pattern: string;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Converts a date string in "YYYY-MM-DD" format to "DD-Month-YYYY~~0".
|
|
70
|
-
*
|
|
71
|
-
* @param {string} dateString - The input date string in "YYYY-MM-DD" format.
|
|
72
|
-
* @returns {string} - The formatted date string in "DD-Month-YYYY~~0" format.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```typescript
|
|
76
|
-
* formatDateString("2025-03-27"); // Returns "27-March-2025~~0"
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
formatDateString(dateString: string): string;
|
|
80
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, { optional: true; }]>;
|
|
81
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
|
|
82
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, ElementRef
|
|
1
|
+
import { OnInit, EventEmitter, ElementRef } 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,10 +11,6 @@ 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';
|
|
17
|
-
import { DataSource } from '../sharedComponents/program-list/interfaces/data-source.interface';
|
|
18
14
|
import { IframeService } from '../services/iframe.service';
|
|
19
15
|
import * as i0 from "@angular/core";
|
|
20
16
|
export declare class WorkflowComplianceComponent implements OnInit {
|
|
@@ -108,7 +104,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
108
104
|
grcSearchString: string;
|
|
109
105
|
GRC_TYPE_ARRAY: string[];
|
|
110
106
|
grcDataWithTypes: any;
|
|
111
|
-
selectedCategory: any[];
|
|
112
107
|
set closeOnEsc(escapeCondition: boolean);
|
|
113
108
|
orgDetails: any;
|
|
114
109
|
url: string;
|
|
@@ -194,7 +189,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
194
189
|
allPrograms: any[];
|
|
195
190
|
riskClassification: {
|
|
196
191
|
name: string;
|
|
197
|
-
value:
|
|
192
|
+
value: number;
|
|
198
193
|
class: string;
|
|
199
194
|
}[];
|
|
200
195
|
assignorMode: string;
|
|
@@ -219,7 +214,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
219
214
|
continuous_failed_days: number;
|
|
220
215
|
onCompletionReportDetails: {};
|
|
221
216
|
};
|
|
222
|
-
frequencyObject: FrequencyObject | null;
|
|
223
217
|
frequencyPlaceholder: string;
|
|
224
218
|
shortMonth: Array<string>;
|
|
225
219
|
isEditWhat: Boolean;
|
|
@@ -252,7 +246,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
252
246
|
allowEditDueDateFeatureFlag: boolean;
|
|
253
247
|
whatInput: ElementRef;
|
|
254
248
|
unSubscribeProgram: Subject<void>;
|
|
255
|
-
responsibilityDetails: any;
|
|
256
249
|
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);
|
|
257
250
|
ngOnInit(): void;
|
|
258
251
|
setFeatureFlags(): void;
|
|
@@ -350,14 +343,13 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
350
343
|
getOnCompletionReportDetails(event: any): any;
|
|
351
344
|
frequencyDataPopulation(event: any): void;
|
|
352
345
|
frequencyPopulation(event: any): void;
|
|
353
|
-
setPayload(event: any): Responsibility | null;
|
|
354
346
|
frequencyData(event: any): void;
|
|
355
347
|
checkBlank(data: string): string;
|
|
356
348
|
/**
|
|
357
349
|
* It takes a string and returns a string.
|
|
358
350
|
* @param {any} res - any = {
|
|
359
351
|
*/
|
|
360
|
-
getFrequencyPlaceholder(
|
|
352
|
+
getFrequencyPlaceholder(res: any): void;
|
|
361
353
|
/**
|
|
362
354
|
* It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
|
|
363
355
|
* details and then it gets the on completion of responsibility and sets the frequency placeholder to
|
|
@@ -487,23 +479,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
487
479
|
resetGRCDataWithTypes(): void;
|
|
488
480
|
removeOtherGRCObjects(event: any): void;
|
|
489
481
|
filterOtherGRCData(event: any, type: string): void;
|
|
490
|
-
programs: ListItem[];
|
|
491
|
-
selectedPrograms: any[];
|
|
492
|
-
myDataSource: DataSource<ListItem>;
|
|
493
|
-
customItemTemplate: TemplateRef<any> | undefined;
|
|
494
|
-
onItemSelected(item: ListItem): void;
|
|
495
|
-
onItemDeselected(item: ListItem): void;
|
|
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
|
-
populateResponsibilityDetails(): void;
|
|
506
|
-
populateFrequencyDetails(frequency: any): void;
|
|
507
482
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceComponent, never>;
|
|
508
|
-
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; };
|
|
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
484
|
}
|
|
@@ -45,7 +45,6 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
45
45
|
secondaryOpenPortal: string;
|
|
46
46
|
defaultRiskType: string;
|
|
47
47
|
moveToRegisterMode: string;
|
|
48
|
-
workflowDetails: any;
|
|
49
48
|
reponsibilityData: {
|
|
50
49
|
responsibilityId: null;
|
|
51
50
|
responsibilityName: string;
|
|
@@ -165,5 +164,5 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
165
164
|
onReviewerChange(event: string): void;
|
|
166
165
|
isResponsibilitySimplify(): void;
|
|
167
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowEngineContainerComponent, never>;
|
|
168
|
-
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; }; "
|
|
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>;
|
|
169
168
|
}
|
|
@@ -91,50 +91,48 @@ 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 "
|
|
95
|
-
import * as i92 from "
|
|
96
|
-
import * as i93 from "
|
|
97
|
-
import * as i94 from "@
|
|
98
|
-
import * as i95 from "
|
|
99
|
-
import * as i96 from "./
|
|
100
|
-
import * as i97 from "./ui-kit/
|
|
101
|
-
import * as i98 from "./ui-kit/
|
|
102
|
-
import * as i99 from "./
|
|
103
|
-
import * as i100 from "
|
|
104
|
-
import * as i101 from "
|
|
105
|
-
import * as i102 from "
|
|
106
|
-
import * as i103 from "./sharedComponents/
|
|
107
|
-
import * as i104 from "./
|
|
108
|
-
import * as i105 from "./ui-kit/
|
|
109
|
-
import * as i106 from "
|
|
110
|
-
import * as i107 from "
|
|
111
|
-
import * as i108 from "./ui-kit/
|
|
112
|
-
import * as i109 from "./ui-kit/
|
|
113
|
-
import * as i110 from "./ui-kit/
|
|
114
|
-
import * as i111 from "./ui-kit/
|
|
115
|
-
import * as i112 from "./
|
|
116
|
-
import * as i113 from "./
|
|
117
|
-
import * as i114 from "./
|
|
118
|
-
import * as i115 from "./
|
|
119
|
-
import * as i116 from "./
|
|
120
|
-
import * as i117 from "./
|
|
121
|
-
import * as i118 from "./
|
|
122
|
-
import * as i119 from "./sharedComponents/
|
|
123
|
-
import * as i120 from "./sharedComponents/
|
|
124
|
-
import * as i121 from "./
|
|
125
|
-
import * as i122 from "./
|
|
126
|
-
import * as i123 from "./ui-kit/
|
|
127
|
-
import * as i124 from "./
|
|
128
|
-
import * as i125 from "./
|
|
129
|
-
import * as i126 from "./
|
|
130
|
-
import * as i127 from "./sharedComponents/
|
|
131
|
-
import * as i128 from "./sharedComponents/
|
|
132
|
-
import * as i129 from "./sharedComponents/
|
|
133
|
-
import * as i130 from "./sharedComponents/link-responsibility/link-responsibility.module";
|
|
134
|
-
import * as i131 from "./sharedComponents/program-list/program-list.module";
|
|
94
|
+
import * as i91 from "@angular/forms";
|
|
95
|
+
import * as i92 from "./sharedComponents/assessment-editor/create-assessment.module";
|
|
96
|
+
import * as i93 from "@vcomply/editor";
|
|
97
|
+
import * as i94 from "@angular/common";
|
|
98
|
+
import * as i95 from "./formgroup/formgroup.module";
|
|
99
|
+
import * as i96 from "./ui-kit/tooltip/tooltip.module";
|
|
100
|
+
import * as i97 from "./ui-kit/popover/popover.module";
|
|
101
|
+
import * as i98 from "./ui-kit/line-loader/line-loader.module";
|
|
102
|
+
import * as i99 from "./formgroup/select/select.module";
|
|
103
|
+
import * as i100 from "ngx-material-timepicker";
|
|
104
|
+
import * as i101 from "ng2-date-picker";
|
|
105
|
+
import * as i102 from "./sharedComponents/no-data/no-data.module";
|
|
106
|
+
import * as i103 from "./sharedComponents/v-loader/v-loader.module";
|
|
107
|
+
import * as i104 from "./ui-kit/smiley-dialog/smiley-dialog.module";
|
|
108
|
+
import * as i105 from "./ui-kit/snack-bar/snack-bar.module";
|
|
109
|
+
import * as i106 from "@angular/common/http";
|
|
110
|
+
import * as i107 from "./ui-kit/smiley-dialog-inline/smiley-dialog-inline.module";
|
|
111
|
+
import * as i108 from "./ui-kit/click-outside/click-outside.module";
|
|
112
|
+
import * as i109 from "./ui-kit/popover-hover/popover-hover.module";
|
|
113
|
+
import * as i110 from "./ui-kit/pagination/pagination.module";
|
|
114
|
+
import * as i111 from "./ui-kit/action-dialog/action-dialog.module";
|
|
115
|
+
import * as i112 from "./sharedComponents/assessment-preview/assessment-preview.module";
|
|
116
|
+
import * as i113 from "./workflow-program/create-program-ui/create-program-ui.module";
|
|
117
|
+
import * as i114 from "./ui-kit/directive/directive.module";
|
|
118
|
+
import * as i115 from "./workflow/grc-object/grc-object.module";
|
|
119
|
+
import * as i116 from "./sharedComponents/responsibility-centers-list/rc-list.module";
|
|
120
|
+
import * as i117 from "./pipes/pipes.module";
|
|
121
|
+
import * as i118 from "./sharedComponents/floating-bar/floating-bar.module";
|
|
122
|
+
import * as i119 from "./sharedComponents/group-users-list/group-users-list.component";
|
|
123
|
+
import * as i120 from "./sharedComponents/list-loader/list-loader.module";
|
|
124
|
+
import * as i121 from "./workflow/shared/components/grc-object-list/grc-object-list.component";
|
|
125
|
+
import * as i122 from "./ui-kit/time-picker/time-picker.module";
|
|
126
|
+
import * as i123 from "./ui-kit/multi-select/multi-select.module";
|
|
127
|
+
import * as i124 from "./sharedComponents/policy-template/policy-template.module";
|
|
128
|
+
import * as i125 from "./report-a-case/report-case.module";
|
|
129
|
+
import * as i126 from "./sharedComponents/format-and-evidence/format-and-evidence.module";
|
|
130
|
+
import * as i127 from "./sharedComponents/checkbox-list/checkbox-list.module";
|
|
131
|
+
import * as i128 from "./sharedComponents/radio-list-with-pagination/radio-list-with-pagination.module";
|
|
132
|
+
import * as i129 from "./sharedComponents/link-responsibility/link-responsibility.module";
|
|
135
133
|
export declare class VComplyWorkflowEngineModule {
|
|
136
134
|
static forRoot(environmentConfig: Configurations): ModuleWithProviders<VComplyWorkflowEngineModule>;
|
|
137
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<VComplyWorkflowEngineModule, never>;
|
|
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
|
|
136
|
+
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.ReactiveFormsModule, typeof i92.CreateAssessmentModule, typeof i93.VcomplyEditorModule, typeof i94.CommonModule, typeof i95.FormgroupModule, typeof i96.TooltipModule, typeof i97.PopoverModule, typeof i98.LineLoaderModule, typeof i91.FormsModule, typeof i99.SelectModule, typeof i100.NgxMaterialTimepickerModule, typeof i101.DpDatePickerModule, typeof i102.NoDataModule, typeof i103.VLoaderModule, typeof i104.SmileyDialogModule, typeof i105.SnackBarModule, typeof i106.HttpClientModule, typeof i107.SmileyDialogInlineModule, typeof i108.ClickOutsideModule, typeof i109.PopoverHoverModule, typeof i110.PaginationModule, typeof i92.CreateAssessmentModule, typeof i111.ActionDialogModule, typeof i112.AssessmentPreviewModule, typeof i113.CreateProgramUiModule, typeof i114.DirectiveModule, typeof i115.GrcObjectModule, typeof i116.RcListModule, typeof i117.PipesModule, typeof i118.FloatingBarModule, typeof i119.GroupUsersListComponent, typeof i120.ListLoaderModule, typeof i121.GrcObjectListComponent, typeof i122.TimePickerModule, typeof i123.MultiSelectModule, typeof i124.PolicyTemplateModule, typeof i125.ReportCaseModule, typeof i126.FormatAndEvidenceModule, typeof i127.CheckboxListModule, typeof i128.RadioListWithPaginationModule, typeof i129.LinkResponsibilityModule], [typeof i1.WorkflowEngineContainerComponent]>;
|
|
139
137
|
static ɵinj: i0.ɵɵInjectorDeclaration<VComplyWorkflowEngineModule>;
|
|
140
138
|
}
|
|
@@ -11,8 +11,8 @@ export declare class WorkflowProgramComponent implements OnInit {
|
|
|
11
11
|
private programService;
|
|
12
12
|
private authService;
|
|
13
13
|
private uiKitService;
|
|
14
|
-
private changeRef;
|
|
15
14
|
private iframeService;
|
|
15
|
+
private changeRef;
|
|
16
16
|
ASSETS: {
|
|
17
17
|
responsibility_center: string;
|
|
18
18
|
case_type: string;
|
|
@@ -139,7 +139,6 @@ export declare class WorkflowProgramComponent implements OnInit {
|
|
|
139
139
|
allowedFeature: any;
|
|
140
140
|
addToProgramDetails: any;
|
|
141
141
|
orgDetails: any;
|
|
142
|
-
programDetails: any;
|
|
143
142
|
panelTitleDefaultReviewer: string;
|
|
144
143
|
panelTitleOwner: string;
|
|
145
144
|
panelTitleReviewer: string;
|
|
@@ -158,7 +157,7 @@ export declare class WorkflowProgramComponent implements OnInit {
|
|
|
158
157
|
assignorId: number[];
|
|
159
158
|
disableReviewerIds: any[];
|
|
160
159
|
disableOverseerIds: any[];
|
|
161
|
-
constructor(fb: UntypedFormBuilder, programService: ProgramsService, authService: AuthService, uiKitService: UiKitService,
|
|
160
|
+
constructor(fb: UntypedFormBuilder, programService: ProgramsService, authService: AuthService, uiKitService: UiKitService, iframeService: IframeService, changeRef: ChangeDetectorRef);
|
|
162
161
|
noWhitespaceValidator(control: UntypedFormControl): {
|
|
163
162
|
whitespace: boolean;
|
|
164
163
|
} | null;
|
|
@@ -219,6 +218,7 @@ export declare class WorkflowProgramComponent implements OnInit {
|
|
|
219
218
|
returnIds(list: any[], key: string): any[];
|
|
220
219
|
refreshList(): void;
|
|
221
220
|
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;
|
|
@@ -261,13 +261,11 @@ export declare class WorkflowProgramComponent implements OnInit {
|
|
|
261
261
|
* Get program details when user is trying to edit program
|
|
262
262
|
*/
|
|
263
263
|
getProgramDetails(): void;
|
|
264
|
-
populateProgramDetails(res: any): void;
|
|
265
264
|
populateMembers(res: any): void;
|
|
266
265
|
populateGroups(res: any): void;
|
|
267
266
|
resetAdditionalOption(): void;
|
|
268
267
|
checkProgramOptionField(): any;
|
|
269
268
|
enablefeature(): void;
|
|
270
|
-
handleDataPopulation(): void;
|
|
271
269
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowProgramComponent, never>;
|
|
272
|
-
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; };
|
|
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>;
|
|
273
271
|
}
|
|
@@ -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): "
|
|
170
|
+
setCategoryType(type: any): "strategic" | "compliance" | "operational" | "others";
|
|
171
171
|
getRCList(): void;
|
|
172
172
|
getCategoryList(): void;
|
|
173
173
|
getOwnersList(): void;
|
|
@@ -29,20 +29,61 @@ 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;
|
|
32
33
|
name: any;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
admins: {
|
|
37
|
-
users: any;
|
|
38
|
-
userGroups: any;
|
|
39
|
-
};
|
|
40
|
-
managers: {
|
|
41
|
-
users: any;
|
|
42
|
-
userGroups: any;
|
|
43
|
-
};
|
|
34
|
+
description: {
|
|
35
|
+
text: any;
|
|
36
|
+
attachments: any;
|
|
44
37
|
};
|
|
45
|
-
|
|
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;
|
|
46
87
|
};
|
|
47
88
|
generateAssessment(assessment: any): any;
|
|
48
89
|
getFramework(input: any): {
|
|
@@ -67,7 +108,6 @@ export declare class ProgramsService {
|
|
|
67
108
|
*/
|
|
68
109
|
updateProgram(payload: any, id: string): import("rxjs").Observable<any[]>;
|
|
69
110
|
getMemeberByIds(ids: any): import("rxjs").Observable<any[]>;
|
|
70
|
-
getMemeberByUIds(ids: any): import("rxjs").Observable<any[]>;
|
|
71
111
|
getMemberByGroups(ids: any): import("rxjs").Observable<any[]>;
|
|
72
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramsService, [null, null, { optional: true; }]>;
|
|
73
113
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProgramsService>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vcomply-workflow-engine",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.52",
|
|
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,130 +0,0 @@
|
|
|
1
|
-
export const MOCK_PROGRAMS = [
|
|
2
|
-
{
|
|
3
|
-
"id": "A2B4C6",
|
|
4
|
-
"name": "P1",
|
|
5
|
-
"type": "regulations",
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"id": "X7Y9Z8",
|
|
9
|
-
"name": "Standard A",
|
|
10
|
-
"type": "standards",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"id": "G7H2J9",
|
|
14
|
-
"name": "Internal Control B",
|
|
15
|
-
"type": "internal_controls",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"id": "K4L6M1",
|
|
19
|
-
"name": "Other Document C",
|
|
20
|
-
"type": "others",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"id": "N8P5Q7",
|
|
24
|
-
"name": "Regulation X",
|
|
25
|
-
"type": "regulations",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"id": "R3S9T4",
|
|
29
|
-
"name": "Standard Y",
|
|
30
|
-
"type": "standards",
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"id": "U6V2W8",
|
|
34
|
-
"name": "Internal Control Z",
|
|
35
|
-
"type": "internal_controls",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"id": "B9C4D7",
|
|
39
|
-
"name": "Other Document D",
|
|
40
|
-
"type": "others",
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"id": "E5F8H2",
|
|
44
|
-
"name": "Regulation AA",
|
|
45
|
-
"type": "regulations",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"id": "J3K7L4",
|
|
49
|
-
"name": "Standard BB",
|
|
50
|
-
"type": "standards",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"id": "M6N9P5",
|
|
54
|
-
"name": "Internal Control CC",
|
|
55
|
-
"type": "internal_controls",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"id": "Q2R8S3",
|
|
59
|
-
"name": "Other Document E",
|
|
60
|
-
"type": "others",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "T7U4V1",
|
|
64
|
-
"name": "Regulation BB",
|
|
65
|
-
"type": "regulations",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"id": "W5X8Y6",
|
|
69
|
-
"name": "Standard CC",
|
|
70
|
-
"type": "standards",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"id": "Z2A6B9",
|
|
74
|
-
"name": "Internal Control DD",
|
|
75
|
-
"type": "internal_controls",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"id": "C4D7E2",
|
|
79
|
-
"name": "Other Document F",
|
|
80
|
-
"type": "others",
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
export const MOCK_CATEGORIES = [
|
|
84
|
-
{ id: "A2B4C6", name: "P1", description: "Primary regulation document", level: 1, parent: null },
|
|
85
|
-
{ id: "D5E8F3", name: "Standard A", description: "Industry standard document", level: 1, parent: "A2B4C6" },
|
|
86
|
-
{ id: "G7H2J9", name: "Internal Control B", description: "Internal guidelines", level: 1, parent: "A2B4C6" },
|
|
87
|
-
{ id: "K4L6M1", name: "Other Document C", description: "Miscellaneous document", level: 1, parent: "A2B4C6" },
|
|
88
|
-
{ id: "N8P5Q7", name: "Regulation X", description: "Legal framework", level: 2, parent: "A2B4C6" },
|
|
89
|
-
{ id: "R3S9T4", name: "Standard Y", description: "Updated standard", level: 2, parent: "D5E8F3" },
|
|
90
|
-
{ id: "U6V2W8", name: "Internal Control Z", description: "Control procedures", level: 2, parent: "G7H2J9" },
|
|
91
|
-
{ id: "B9C4D7", name: "Other Document D", description: "General information", level: 2, parent: "K4L6M1" },
|
|
92
|
-
{ id: "E5F8H2", name: "Regulation AA", description: "Supplementary regulation", level: 3, parent: "N8P5Q7" },
|
|
93
|
-
{ id: "J3K7L4", name: "Standard BB", description: "New compliance standard", level: 3, parent: "R3S9T4" },
|
|
94
|
-
{ id: "M6N9P5", name: "Internal Control CC", description: "Advanced controls", level: 3, parent: "U6V2W8" },
|
|
95
|
-
{ id: "Q2R8S3", name: "Other Document E", description: "Additional reference", level: 3, parent: "B9C4D7" },
|
|
96
|
-
{ id: "T7U4V1", name: "Regulation BB", description: "Regulatory expansion", level: 4, parent: "E5F8H2" },
|
|
97
|
-
{ id: "W5X8Y6", name: "Standard CC", description: "Industry benchmark", level: 4, parent: "J3K7L4" },
|
|
98
|
-
{ id: "Z2A6B9", name: "Internal Control DD", description: "Internal audit policies", level: 4, parent: "M6N9P5" },
|
|
99
|
-
{ id: "C4D7E2", name: "Other Document F", description: "Extra documentation", level: 4, parent: "Q2R8S3" },
|
|
100
|
-
{ id: "F8H3J6", name: "Regulation CC", description: "Additional compliance rules", level: 5, parent: "T7U4V1" },
|
|
101
|
-
{ id: "K5L9M4", name: "Standard DD", description: "Revised guidelines", level: 5, parent: "W5X8Y6" },
|
|
102
|
-
{ id: "N2P6Q8", name: "Internal Control EE", description: "Operational security measures", level: 5, parent: "Z2A6B9" },
|
|
103
|
-
{ id: "R7S3T5", name: "Other Document G", description: "Supplementary notes", level: 5, parent: "C4D7E2" }
|
|
104
|
-
];
|
|
105
|
-
function addParentTreeToCategories(categories) {
|
|
106
|
-
// Create a map for quick lookup of categories by ID
|
|
107
|
-
const categoryMap = new Map(categories.map(category => [category.id, category]));
|
|
108
|
-
function getParentTree(category) {
|
|
109
|
-
const parentTree = [];
|
|
110
|
-
let currentParent = category.parent;
|
|
111
|
-
while (currentParent) {
|
|
112
|
-
const parentCategory = categoryMap.get(currentParent);
|
|
113
|
-
if (parentCategory) {
|
|
114
|
-
parentTree.push(parentCategory.name);
|
|
115
|
-
currentParent = parentCategory.parent;
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return parentTree;
|
|
122
|
-
}
|
|
123
|
-
return categories.map(category => ({
|
|
124
|
-
...category,
|
|
125
|
-
parentTree: getParentTree(category)
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
// Example usage:
|
|
129
|
-
const categoriesWithParentTree = addParentTreeToCategories(MOCK_CATEGORIES);
|
|
130
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Z4LXdvcmtmbG93LWVuZ2luZS9zcmMvbGliL2NvbnN0YW50cy9tb2NrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBZTtJQUN2QztRQUNFLElBQUksRUFBRSxRQUFRO1FBQ2QsTUFBTSxFQUFFLElBQUk7UUFDWixNQUFNLEVBQUUsYUFBYTtLQUN0QjtJQUNEO1FBQ0UsSUFBSSxFQUFFLFFBQVE7UUFDZCxNQUFNLEVBQUUsWUFBWTtRQUNwQixNQUF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