vcomply-workflow-engine 6.0.48 → 6.0.49
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/constants/mock.mjs +130 -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 +3 -46
- package/esm2022/lib/sharedComponents/document-section/document-section.component.mjs +9 -41
- 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 +3 -1
- package/esm2022/lib/sharedComponents/frequency/frequency-weekly/frequency-weekly.component.mjs +4 -2
- package/esm2022/lib/sharedComponents/frequency/frequency.service.mjs +185 -1
- package/esm2022/lib/sharedComponents/list-container/list-container.component.mjs +52 -0
- package/esm2022/lib/sharedComponents/policy-template/policy-template.module.mjs +5 -5
- package/esm2022/lib/sharedComponents/policy-template/select-template-list/select-template-list.component.mjs +33 -31
- package/esm2022/lib/sharedComponents/policy-template/template-list-table/template-list-table.component.mjs +3 -9
- package/esm2022/lib/sharedComponents/policy-template/view-policy/view-policy/view-policy.component.mjs +93 -0
- package/esm2022/lib/sharedComponents/policy-template/view-policy/view-policy.module.mjs +19 -0
- package/esm2022/lib/sharedComponents/program-list/constant.mjs +10 -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/interfaces/selection-predicate.interface.mjs +2 -0
- package/esm2022/lib/sharedComponents/program-list/program-list/program-list.component.mjs +162 -0
- package/esm2022/lib/sharedComponents/program-list/program-list.module.mjs +40 -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/workflow-compliance/workflow-compliance.component.mjs +303 -153
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +5 -13
- package/esm2022/lib/workflow-engine.module.mjs +13 -6
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +3 -3
- package/esm2022/lib/workflow-program/workflow-program.component.mjs +83 -240
- package/esm2022/lib/workflow-services/programs.service.mjs +28 -112
- package/esm2022/lib/workflow-services/responsibility.service.mjs +9 -9
- package/fesm2022/vcomply-workflow-engine.mjs +1220 -709
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/constants/mock.d.ts +15 -0
- package/lib/interfaces/frequency.interface.d.ts +37 -0
- package/lib/interfaces/responsibilty.interface.d.ts +1 -1
- package/lib/sharedComponents/document-section/document-section.component.d.ts +2 -10
- package/lib/sharedComponents/frequency/frequency.service.d.ts +30 -0
- package/lib/sharedComponents/list-container/list-container.component.d.ts +9 -0
- package/lib/sharedComponents/policy-template/policy-template.module.d.ts +2 -2
- package/lib/sharedComponents/policy-template/select-template-list/select-template-list.component.d.ts +5 -7
- package/lib/sharedComponents/policy-template/template-list-table/template-list-table.component.d.ts +3 -6
- package/lib/sharedComponents/policy-template/view-policy/view-policy/view-policy.component.d.ts +25 -0
- package/lib/sharedComponents/policy-template/view-policy/view-policy.module.d.ts +9 -0
- package/lib/sharedComponents/program-list/constant.d.ts +5 -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/interfaces/selection-predicate.interface.d.ts +3 -0
- package/lib/sharedComponents/program-list/program-list/program-list.component.d.ts +42 -0
- package/lib/sharedComponents/program-list/program-list.module.d.ts +12 -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/workflow-compliance/workflow-compliance.component.d.ts +33 -5
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +2 -3
- package/lib/workflow-engine.module.d.ts +42 -40
- 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/package.json +1 -1
- package/esm2022/lib/workflow-policy/ms-word.constants.mjs +0 -21
- package/esm2022/lib/workflow-services/policy-api.service.mjs +0 -38
- package/lib/workflow-policy/ms-word.constants.d.ts +0 -20
- package/lib/workflow-services/policy-api.service.d.ts +0 -27
|
@@ -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 {};
|
|
@@ -3,13 +3,11 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { SnackBarService } from '../../ui-kit/snack-bar/snack-bar.service';
|
|
5
5
|
import { PolicyService } from '../../workflow-services/policy.service';
|
|
6
|
-
import { PolicyAPIService } from '../../workflow-services/policy-api.service';
|
|
7
6
|
import { IframeService } from '../../services/iframe.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class DocumentSectionComponent implements OnInit, OnChanges {
|
|
10
9
|
private snackBar;
|
|
11
10
|
private policyService;
|
|
12
|
-
private policyAPIService;
|
|
13
11
|
private router;
|
|
14
12
|
private route;
|
|
15
13
|
private iframeService;
|
|
@@ -21,10 +19,7 @@ export declare class DocumentSectionComponent implements OnInit, OnChanges {
|
|
|
21
19
|
doc: boolean;
|
|
22
20
|
isUploading: boolean;
|
|
23
21
|
isLoader: boolean;
|
|
24
|
-
is_ms_word_integrated: boolean;
|
|
25
|
-
createWordPolicyText: string;
|
|
26
22
|
selectedDocumentType: string;
|
|
27
|
-
feature: any;
|
|
28
23
|
templateView: boolean;
|
|
29
24
|
policyId: any;
|
|
30
25
|
policyName: any;
|
|
@@ -41,12 +36,9 @@ export declare class DocumentSectionComponent implements OnInit, OnChanges {
|
|
|
41
36
|
visible: boolean;
|
|
42
37
|
message: string;
|
|
43
38
|
};
|
|
44
|
-
constructor(snackBar: SnackBarService, policyService: PolicyService,
|
|
39
|
+
constructor(snackBar: SnackBarService, policyService: PolicyService, router: Router, route: ActivatedRoute, platformLocation: PlatformLocation, iframeService: IframeService);
|
|
45
40
|
ngOnChanges(changes: SimpleChanges): void;
|
|
46
41
|
ngOnInit(): void;
|
|
47
|
-
initialiseFeatureFlags(): void;
|
|
48
|
-
redirectUserToWordPolicy(): void;
|
|
49
|
-
createWordPolicy(): void;
|
|
50
42
|
handleFileInput(files: FileList): void;
|
|
51
43
|
showPdfBlock: boolean;
|
|
52
44
|
showDocxBlock: boolean;
|
|
@@ -58,5 +50,5 @@ export declare class DocumentSectionComponent implements OnInit, OnChanges {
|
|
|
58
50
|
editPolicyEmit(): void;
|
|
59
51
|
openTemplateList(): void;
|
|
60
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentSectionComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentSectionComponent, "lib-document-section", never, { "selectedDocumentType": { "alias": "selectedDocumentType"; "required": false; }; "
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentSectionComponent, "lib-document-section", never, { "selectedDocumentType": { "alias": "selectedDocumentType"; "required": false; }; "templateView": { "alias": "templateView"; "required": false; }; "policyId": { "alias": "policyId"; "required": false; }; "policyName": { "alias": "policyName"; "required": false; }; "organization_id": { "alias": "organization_id"; "required": false; }; "member_obj_id": { "alias": "member_obj_id"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; "templateUrl": { "alias": "templateUrl"; "required": false; }; "isTemplateOpened": { "alias": "isTemplateOpened"; "required": false; }; }, { "disconnectRefresh": "disconnectRefresh"; "editPolicy": "editPolicy"; "openTemplate": "openTemplate"; }, never, never, false, never>;
|
|
62
54
|
}
|
|
@@ -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,35 @@ 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
|
+
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;
|
|
50
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<FrequencyService, [null, null, { optional: true; }]>;
|
|
51
81
|
static ɵprov: i0.ɵɵInjectableDeclaration<FrequencyService>;
|
|
52
82
|
}
|
|
@@ -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
|
+
}
|
|
@@ -12,9 +12,9 @@ import * as i10 from "./template-pipes/template-pipes.module";
|
|
|
12
12
|
import * as i11 from "@angular/forms";
|
|
13
13
|
import * as i12 from "../../pipes/pipes.module";
|
|
14
14
|
import * as i13 from "../../formgroup/formgroup.module";
|
|
15
|
-
import * as i14 from "
|
|
15
|
+
import * as i14 from "./view-policy/view-policy.module";
|
|
16
16
|
export declare class PolicyTemplateModule {
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PolicyTemplateModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PolicyTemplateModule, [typeof i1.TemplateListTableComponent, typeof i2.SelectTemplateListComponent], [typeof i3.CommonModule, typeof i4.TooltipModule, typeof i5.PopoverModule, typeof i6.NoDataModule, typeof i7.VLoaderModule, typeof i8.MultiSelectModule, typeof i9.FloatingBarModule, typeof i10.TemplatePipesModule, typeof i11.FormsModule, typeof i12.PipesModule, typeof i13.FormgroupModule, typeof i14.
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PolicyTemplateModule, [typeof i1.TemplateListTableComponent, typeof i2.SelectTemplateListComponent], [typeof i3.CommonModule, typeof i4.TooltipModule, typeof i5.PopoverModule, typeof i6.NoDataModule, typeof i7.VLoaderModule, typeof i8.MultiSelectModule, typeof i9.FloatingBarModule, typeof i10.TemplatePipesModule, typeof i11.FormsModule, typeof i12.PipesModule, typeof i13.FormgroupModule, typeof i14.ViewPolicyModule], [typeof i1.TemplateListTableComponent, typeof i2.SelectTemplateListComponent]>;
|
|
19
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<PolicyTemplateModule>;
|
|
20
20
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { TemplateService } from '../services/template.service';
|
|
3
3
|
import { PolicyService } from '../../../workflow-services/policy.service';
|
|
4
|
-
import { Configurations } from '../../../configurations';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class SelectTemplateListComponent {
|
|
7
6
|
private templateService;
|
|
8
7
|
private policyService;
|
|
9
|
-
fileUrl: string;
|
|
10
|
-
env: any;
|
|
11
8
|
animation: boolean;
|
|
12
9
|
defaultTemplates: any[];
|
|
13
10
|
customTemplates: any[] | null;
|
|
@@ -25,11 +22,11 @@ export declare class SelectTemplateListComponent {
|
|
|
25
22
|
NO_DATA_FOUND_MESSAGE: string;
|
|
26
23
|
selectedTemplate: any[];
|
|
27
24
|
isPreview: boolean;
|
|
25
|
+
docData: any | null;
|
|
28
26
|
previewTemplate: any;
|
|
29
27
|
selectedCategoryId: number[];
|
|
30
|
-
feature: any;
|
|
31
28
|
onTemplateSelect: EventEmitter<any>;
|
|
32
|
-
constructor(templateService: TemplateService, policyService: PolicyService
|
|
29
|
+
constructor(templateService: TemplateService, policyService: PolicyService);
|
|
33
30
|
ngOnInit(): void;
|
|
34
31
|
setAnimation(): void;
|
|
35
32
|
switchTab(tab: string): void;
|
|
@@ -46,6 +43,7 @@ export declare class SelectTemplateListComponent {
|
|
|
46
43
|
deleteEvent(): void;
|
|
47
44
|
onPreview(details: any): void;
|
|
48
45
|
onClosePreview(): void;
|
|
49
|
-
|
|
50
|
-
static
|
|
46
|
+
getPreviewData(templateId: any): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectTemplateListComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectTemplateListComponent, "app-select-template-list", never, { "selectedCategoryId": { "alias": "selectedCategoryId"; "required": false; }; }, { "onTemplateSelect": "onTemplateSelect"; }, never, never, false, never>;
|
|
51
49
|
}
|
package/lib/sharedComponents/policy-template/template-list-table/template-list-table.component.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { EventEmitter
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TemplateListTableComponent
|
|
4
|
-
previewEnabled: boolean;
|
|
3
|
+
export declare class TemplateListTableComponent {
|
|
5
4
|
selectedTemplate: any;
|
|
6
5
|
templateList: any[];
|
|
7
6
|
loader: boolean;
|
|
8
7
|
categoryList: any[];
|
|
9
|
-
feature: any;
|
|
10
8
|
onSort: EventEmitter<string>;
|
|
11
9
|
onSelectTemplate: EventEmitter<any>;
|
|
12
10
|
onPreview: EventEmitter<any>;
|
|
13
|
-
ngOnInit(): void;
|
|
14
11
|
onSelect(template: any): void;
|
|
15
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateListTableComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateListTableComponent, "app-template-list-table", never, { "selectedTemplate": { "alias": "selectedTemplate"; "required": false; }; "templateList": { "alias": "templateList"; "required": false; }; "loader": { "alias": "loader"; "required": false; }; "categoryList": { "alias": "categoryList"; "required": false; };
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateListTableComponent, "app-template-list-table", never, { "selectedTemplate": { "alias": "selectedTemplate"; "required": false; }; "templateList": { "alias": "templateList"; "required": false; }; "loader": { "alias": "loader"; "required": false; }; "categoryList": { "alias": "categoryList"; "required": false; }; }, { "onSort": "onSort"; "onSelectTemplate": "onSelectTemplate"; "onPreview": "onPreview"; }, never, never, false, never>;
|
|
17
14
|
}
|
package/lib/sharedComponents/policy-template/view-policy/view-policy/view-policy.component.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DocumentEditorContainerComponent, DocumentEditorSettingsModel } from '@syncfusion/ej2-angular-documenteditor';
|
|
3
|
+
import { Configurations } from '../../../../configurations';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ViewPolicyComponent implements OnInit, OnChanges {
|
|
6
|
+
resizeEditor: boolean;
|
|
7
|
+
serviceUrl: string;
|
|
8
|
+
settings: DocumentEditorSettingsModel;
|
|
9
|
+
isContentLoaded: boolean;
|
|
10
|
+
hasComments: boolean;
|
|
11
|
+
private readonly palette;
|
|
12
|
+
contents: any;
|
|
13
|
+
userName: string;
|
|
14
|
+
documentEditor: DocumentEditorContainerComponent;
|
|
15
|
+
constructor(config?: Configurations);
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
private onCreating;
|
|
19
|
+
onCreated(): void;
|
|
20
|
+
configureEditor(): void;
|
|
21
|
+
checkComments(): void;
|
|
22
|
+
viewComment(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewPolicyComponent, [{ optional: true; }]>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewPolicyComponent, "app-view-policy", never, { "contents": { "alias": "contents"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./view-policy/view-policy.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@syncfusion/ej2-angular-documenteditor";
|
|
5
|
+
export declare class ViewPolicyModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewPolicyModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ViewPolicyModule, [typeof i1.ViewPolicyComponent], [typeof i2.CommonModule, typeof i3.DocumentEditorContainerModule], [typeof i1.ViewPolicyComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ViewPolicyModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ListItem } from '../interfaces/list-item.interface';
|
|
3
|
+
import { DataSource } from '../interfaces/data-source.interface';
|
|
4
|
+
import { ListUtilsService } from '../services/list-utils.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProgramListComponent<T extends ListItem> implements OnInit, OnChanges {
|
|
7
|
+
private listUtils;
|
|
8
|
+
items: T[];
|
|
9
|
+
selectedItems: any | null;
|
|
10
|
+
itemTemplate: TemplateRef<any> | undefined;
|
|
11
|
+
dataSource: DataSource<T> | undefined;
|
|
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
|
+
constructor(listUtils: ListUtilsService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
getProgramList(): void;
|
|
29
|
+
loadData(): void;
|
|
30
|
+
search(): void;
|
|
31
|
+
selectItem(event: any, item: any): void;
|
|
32
|
+
deselectItem(item: T): void;
|
|
33
|
+
isSelected(item: T): boolean;
|
|
34
|
+
goToPage(page: number): void;
|
|
35
|
+
getPageNumbers(): number[];
|
|
36
|
+
paginateItems(): void;
|
|
37
|
+
viewCategory(item?: any): void;
|
|
38
|
+
addParentTreeToCategories(categories: any[]): any[];
|
|
39
|
+
selectFilter(event: any, item: any): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListComponent<any>, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgramListComponent<any>, "app-program-list", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "itemSelected": "itemSelected"; "itemDeselected": "itemDeselected"; "itemsSelectedChange": "itemsSelectedChange"; }, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./program-list/program-list.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../formgroup/formgroup.module";
|
|
6
|
+
import * as i5 from "../../ui-kit/no-data/no-data.module";
|
|
7
|
+
import * as i6 from "../../ui-kit/popover/popover.module";
|
|
8
|
+
export declare class ProgramListModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProgramListModule, [typeof i1.ProgramListComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.FormgroupModule, typeof i5.NoDataModule, typeof i6.PopoverModule], [typeof i1.ProgramListComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProgramListModule>;
|
|
12
|
+
}
|
|
@@ -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 WorkflowComplianceService {
|
|
7
|
+
private http;
|
|
8
|
+
private authService;
|
|
9
|
+
env: any;
|
|
10
|
+
constructor(http: HttpClient, authService: AuthService, config?: Configurations);
|
|
11
|
+
getProgramList(): Observable<any>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceService, [null, null, { optional: true; }]>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WorkflowComplianceService>;
|
|
14
|
+
}
|
|
@@ -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,7 +11,12 @@ 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';
|
|
14
18
|
import { IframeService } from '../services/iframe.service';
|
|
19
|
+
import { WorkflowComplianceService } from '../sharedComponents/program-list/services/program-list-api.service';
|
|
15
20
|
import * as i0 from "@angular/core";
|
|
16
21
|
export declare class WorkflowComplianceComponent implements OnInit {
|
|
17
22
|
private authService;
|
|
@@ -26,6 +31,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
26
31
|
private complianceCommonService;
|
|
27
32
|
private organizationCommonService;
|
|
28
33
|
private iframeService;
|
|
34
|
+
private workflowComplianceService;
|
|
29
35
|
mode: string;
|
|
30
36
|
responsibilityId: string;
|
|
31
37
|
frameworkDetails: Array<any>;
|
|
@@ -50,6 +56,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
50
56
|
grcSearchString: string;
|
|
51
57
|
GRC_TYPE_ARRAY: string[];
|
|
52
58
|
grcDataWithTypes: any;
|
|
59
|
+
selectedCategory: any[];
|
|
53
60
|
set closeOnEsc(escapeCondition: boolean);
|
|
54
61
|
orgDetails: any;
|
|
55
62
|
url: string;
|
|
@@ -135,7 +142,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
135
142
|
allPrograms: any[];
|
|
136
143
|
riskClassification: {
|
|
137
144
|
name: string;
|
|
138
|
-
value:
|
|
145
|
+
value: string;
|
|
139
146
|
class: string;
|
|
140
147
|
}[];
|
|
141
148
|
assignorMode: string;
|
|
@@ -160,6 +167,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
160
167
|
continuous_failed_days: number;
|
|
161
168
|
onCompletionReportDetails: {};
|
|
162
169
|
};
|
|
170
|
+
frequencyObject: FrequencyObject | null;
|
|
163
171
|
frequencyPlaceholder: string;
|
|
164
172
|
shortMonth: Array<string>;
|
|
165
173
|
isEditWhat: Boolean;
|
|
@@ -192,7 +200,8 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
192
200
|
allowEditDueDateFeatureFlag: boolean;
|
|
193
201
|
whatInput: ElementRef;
|
|
194
202
|
unSubscribeProgram: Subject<void>;
|
|
195
|
-
|
|
203
|
+
responsibilityDetails: any;
|
|
204
|
+
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, workflowComplianceService: WorkflowComplianceService);
|
|
196
205
|
ngOnInit(): void;
|
|
197
206
|
setFeatureFlags(): void;
|
|
198
207
|
getInitialData(): void;
|
|
@@ -289,13 +298,14 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
289
298
|
getOnCompletionReportDetails(event: any): any;
|
|
290
299
|
frequencyDataPopulation(event: any): void;
|
|
291
300
|
frequencyPopulation(event: any): void;
|
|
301
|
+
setPayload(event: any): Responsibility | null;
|
|
292
302
|
frequencyData(event: any): void;
|
|
293
303
|
checkBlank(data: string): string;
|
|
294
304
|
/**
|
|
295
305
|
* It takes a string and returns a string.
|
|
296
306
|
* @param {any} res - any = {
|
|
297
307
|
*/
|
|
298
|
-
getFrequencyPlaceholder(
|
|
308
|
+
getFrequencyPlaceholder(frequency: any): void;
|
|
299
309
|
/**
|
|
300
310
|
* It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
|
|
301
311
|
* details and then it gets the on completion of responsibility and sets the frequency placeholder to
|
|
@@ -382,6 +392,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
382
392
|
* @param {any} testPlanCategory - any
|
|
383
393
|
*/
|
|
384
394
|
populateAssuranceList(testPlanCategory: any): void;
|
|
395
|
+
getProgramList(): void;
|
|
385
396
|
checkInputValue(event: any): boolean;
|
|
386
397
|
switchEnable(event: boolean): void;
|
|
387
398
|
onAssessmentSelect(event: any): void;
|
|
@@ -425,6 +436,23 @@ export declare class WorkflowComplianceComponent implements OnInit {
|
|
|
425
436
|
resetGRCDataWithTypes(): void;
|
|
426
437
|
removeOtherGRCObjects(event: any): void;
|
|
427
438
|
filterOtherGRCData(event: any, type: string): void;
|
|
439
|
+
programs: ListItem[];
|
|
440
|
+
selectedPrograms: any[];
|
|
441
|
+
myDataSource: DataSource<ListItem>;
|
|
442
|
+
customItemTemplate: TemplateRef<any> | undefined;
|
|
443
|
+
onItemSelected(item: ListItem): void;
|
|
444
|
+
onItemDeselected(item: ListItem): void;
|
|
445
|
+
onItemsSelectedChange(items: ListItem[]): void;
|
|
446
|
+
selectCategory(): void;
|
|
447
|
+
get currentUserInfo(): {
|
|
448
|
+
member_email: any;
|
|
449
|
+
member_id: any;
|
|
450
|
+
member_name: any;
|
|
451
|
+
organisation_id: any;
|
|
452
|
+
_id: any;
|
|
453
|
+
};
|
|
454
|
+
populateResponsibilityDetails(): void;
|
|
455
|
+
populateFrequencyDetails(frequency: any): void;
|
|
428
456
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowComplianceComponent, never>;
|
|
429
|
-
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>;
|
|
457
|
+
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>;
|
|
430
458
|
}
|
|
@@ -45,6 +45,7 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
45
45
|
secondaryOpenPortal: string;
|
|
46
46
|
defaultRiskType: string;
|
|
47
47
|
moveToRegisterMode: string;
|
|
48
|
+
workflowDetails: any;
|
|
48
49
|
reponsibilityData: {
|
|
49
50
|
responsibilityId: null;
|
|
50
51
|
responsibilityName: string;
|
|
@@ -130,8 +131,6 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
130
131
|
setWorkflowSelector(type?: boolean): void;
|
|
131
132
|
caseReportedBy(event: any): void;
|
|
132
133
|
submit(): void;
|
|
133
|
-
submitWorkflow(): void;
|
|
134
|
-
private getOrigin;
|
|
135
134
|
editWorkflow(): void;
|
|
136
135
|
closeWorkflowList(): void;
|
|
137
136
|
sizeChange(event: any): void;
|
|
@@ -164,5 +163,5 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
164
163
|
onReviewerChange(event: string): void;
|
|
165
164
|
isResponsibilitySimplify(): void;
|
|
166
165
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowEngineContainerComponent, never>;
|
|
167
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowEngineContainerComponent, "app-vcomply-workflow-engine-container", never, { "workflowType": { "alias": "workflowType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "allowedWorkflows": { "alias": "allowedWorkflows"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "secondaryOpenPortal": { "alias": "secondaryOpenPortal"; "required": false; }; "defaultRiskType": { "alias": "defaultRiskType"; "required": false; }; "moveToRegisterMode": { "alias": "moveToRegisterMode"; "required": false; }; "reponsibilityData": { "alias": "reponsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "pid": { "alias": "pid"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "issueData": { "alias": "issueData"; "required": false; }; "entrustButtonName": { "alias": "entrustButtonName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "selectedProgram": { "alias": "selectedProgram"; "required": false; }; "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "grcType": { "alias": "grcType"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
|
|
166
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowEngineContainerComponent, "app-vcomply-workflow-engine-container", never, { "workflowType": { "alias": "workflowType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "id": { "alias": "id"; "required": false; }; "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "allowedWorkflows": { "alias": "allowedWorkflows"; "required": false; }; "frameworkDetails": { "alias": "frameworkDetails"; "required": false; }; "selectedRC": { "alias": "selectedRC"; "required": false; }; "secondaryOpenPortal": { "alias": "secondaryOpenPortal"; "required": false; }; "defaultRiskType": { "alias": "defaultRiskType"; "required": false; }; "moveToRegisterMode": { "alias": "moveToRegisterMode"; "required": false; }; "workflowDetails": { "alias": "workflowDetails"; "required": false; }; "reponsibilityData": { "alias": "reponsibilityData"; "required": false; }; "assessmentQuestion": { "alias": "assessmentQuestion"; "required": false; }; "pid": { "alias": "pid"; "required": false; }; "programType": { "alias": "programType"; "required": false; }; "issueData": { "alias": "issueData"; "required": false; }; "entrustButtonName": { "alias": "entrustButtonName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "convertFileData": { "alias": "convertFileData"; "required": false; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; }; "selectedProgram": { "alias": "selectedProgram"; "required": false; }; "canFrameworkChange": { "alias": "canFrameworkChange"; "required": false; }; "addToProgramDetails": { "alias": "addToProgramDetails"; "required": false; }; "grcType": { "alias": "grcType"; "required": false; }; "isSendForAttestation": { "alias": "isSendForAttestation"; "required": false; }; "assessmentDetails": { "alias": "assessmentDetails"; "required": false; }; "templateId": { "alias": "templateId"; "required": false; }; "feature": { "alias": "feature"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
|
|
168
167
|
}
|