vcomply-workflow-engine 5.0.3 → 5.0.4
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/assessts.constants.mjs +4 -3
- package/esm2022/lib/more-option/more-option.component.mjs +79 -10
- package/esm2022/lib/pipes/pipes.module.mjs +10 -5
- package/esm2022/lib/pipes/user.pipe.mjs +17 -0
- package/esm2022/lib/report-a-case/components/assignee/assignee.component.mjs +42 -6
- package/esm2022/lib/report-a-case/components/case-assignees/case-assignees.component.mjs +131 -25
- package/esm2022/lib/report-a-case/components/case-category/case-category.component.mjs +157 -11
- package/esm2022/lib/report-a-case/components/case-details/case-details.component.mjs +25 -6
- package/esm2022/lib/report-a-case/components/case-owners/case-owners.component.mjs +222 -0
- package/esm2022/lib/report-a-case/components/case-priority/case-priority.component.mjs +61 -6
- package/esm2022/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.mjs +62 -30
- package/esm2022/lib/report-a-case/components/case-type-dropdown/case-dropdown.component.mjs +51 -5
- package/esm2022/lib/report-a-case/components/chip-capsule/chip-capsule.component.mjs +4 -4
- package/esm2022/lib/report-a-case/components/due-date/due-date.component.mjs +196 -20
- package/esm2022/lib/report-a-case/components/form-selectBox/form-selectBox.component.mjs +28 -3
- package/esm2022/lib/report-a-case/components/information-block/information-block.component.mjs +19 -6
- package/esm2022/lib/report-a-case/components/rc-details/rc-details.component.mjs +229 -10
- package/esm2022/lib/report-a-case/components/report-date/report-date.component.mjs +27 -12
- package/esm2022/lib/report-a-case/constants/api.constants.mjs +3 -2
- package/esm2022/lib/report-a-case/constants/report-case.constants.mjs +124 -7
- package/esm2022/lib/report-a-case/report-case.module.mjs +5 -2
- package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +14 -1
- package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +378 -175
- package/esm2022/lib/services/RBAC.service.mjs +66 -0
- package/esm2022/lib/services/api.service.mjs +32 -0
- package/esm2022/lib/services/report-case-permission.service.mjs +37 -0
- package/esm2022/lib/sharedComponents/category-list-selection/category-list-selection/category-list-selection.component.mjs +22 -11
- package/esm2022/lib/sharedComponents/format-and-evidence/format-and-evidence.component.mjs +14 -5
- package/esm2022/lib/sharedComponents/radio-list-with-pagination/radio-list-with-pagination.module.mjs +5 -4
- package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +55 -29
- package/fesm2022/vcomply-workflow-engine.mjs +2956 -1116
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/constants/assessts.constants.d.ts +1 -0
- package/lib/more-option/more-option.component.d.ts +4 -1
- package/lib/pipes/pipes.module.d.ts +3 -2
- package/lib/pipes/user.pipe.d.ts +7 -0
- package/lib/report-a-case/components/assignee/assignee.component.d.ts +14 -2
- package/lib/report-a-case/components/case-assignees/case-assignees.component.d.ts +43 -5
- package/lib/report-a-case/components/case-category/case-category.component.d.ts +43 -2
- package/lib/report-a-case/components/case-details/case-details.component.d.ts +29 -1
- package/lib/report-a-case/components/case-owners/case-owners.component.d.ts +132 -0
- package/lib/report-a-case/components/case-priority/case-priority.component.d.ts +38 -2
- package/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.d.ts +37 -7
- package/lib/report-a-case/components/case-type-dropdown/case-dropdown.component.d.ts +37 -2
- package/lib/report-a-case/components/case-type-slider/case-type.component.d.ts +24 -0
- package/lib/report-a-case/components/due-date/due-date.component.d.ts +68 -11
- package/lib/report-a-case/components/field-holder/field-holder.component.d.ts +1 -0
- package/lib/report-a-case/components/form-selectBox/form-selectBox.component.d.ts +7 -1
- package/lib/report-a-case/components/information-block/information-block.component.d.ts +6 -0
- package/lib/report-a-case/components/rc-details/rc-details.component.d.ts +40 -1
- package/lib/report-a-case/components/report-date/report-date.component.d.ts +29 -0
- package/lib/report-a-case/constants/api.constants.d.ts +1 -0
- package/lib/report-a-case/constants/report-case.constants.d.ts +120 -2
- package/lib/report-a-case/report-case.module.d.ts +21 -20
- package/lib/report-a-case/services/report-a-case.service.d.ts +3 -0
- package/lib/report-a-case/workflow-case/workflow-case.component.d.ts +125 -48
- package/lib/services/RBAC.service.d.ts +27 -0
- package/lib/services/api.service.d.ts +13 -0
- package/lib/services/report-case-permission.service.d.ts +13 -0
- package/lib/sharedComponents/category-list-selection/category-list-selection/category-list-selection.component.d.ts +2 -1
- package/lib/sharedComponents/radio-list-with-pagination/radio-list-with-pagination.module.d.ts +2 -1
- package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +9 -1
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export declare const REPORT_CASE: {
|
|
|
2
2
|
case_type: string;
|
|
3
3
|
report_case: string;
|
|
4
4
|
add_case: string;
|
|
5
|
+
default_flow: string;
|
|
5
6
|
receive_updates: string;
|
|
6
7
|
case_details: {
|
|
7
8
|
name: {
|
|
@@ -17,6 +18,11 @@ export declare const REPORT_CASE: {
|
|
|
17
18
|
placeholder: string;
|
|
18
19
|
singularText: string;
|
|
19
20
|
pluralText: string;
|
|
21
|
+
mainRcPlaceholder: string;
|
|
22
|
+
separateRcText: string;
|
|
23
|
+
separateRcTooltip: string;
|
|
24
|
+
sameRcText: string;
|
|
25
|
+
sameRcTooltip: string;
|
|
20
26
|
};
|
|
21
27
|
case_type: {
|
|
22
28
|
title: string;
|
|
@@ -26,6 +32,10 @@ export declare const REPORT_CASE: {
|
|
|
26
32
|
title: string;
|
|
27
33
|
placeholder: string;
|
|
28
34
|
};
|
|
35
|
+
additional_category: {
|
|
36
|
+
title: string;
|
|
37
|
+
placeholder: string;
|
|
38
|
+
};
|
|
29
39
|
when: {
|
|
30
40
|
title: string;
|
|
31
41
|
placeholder: string;
|
|
@@ -47,6 +57,10 @@ export declare const REPORT_CASE: {
|
|
|
47
57
|
title: string;
|
|
48
58
|
placeholder: string;
|
|
49
59
|
};
|
|
60
|
+
owners: {
|
|
61
|
+
title: string;
|
|
62
|
+
placeholder: string;
|
|
63
|
+
};
|
|
50
64
|
};
|
|
51
65
|
tooltipMessage: {
|
|
52
66
|
report_case: string;
|
|
@@ -56,6 +70,16 @@ export declare const REPORT_CASE: {
|
|
|
56
70
|
};
|
|
57
71
|
errorMessage: {
|
|
58
72
|
rc: string;
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
caseType: string;
|
|
76
|
+
reportDate: string;
|
|
77
|
+
priority: string;
|
|
78
|
+
mainRc: string;
|
|
79
|
+
caseOwner: string;
|
|
80
|
+
caseAssignee: string;
|
|
81
|
+
dueDate: string;
|
|
82
|
+
stageAssignee: string;
|
|
59
83
|
};
|
|
60
84
|
};
|
|
61
85
|
export declare const DEFAULT_FORM_CONFIG: {
|
|
@@ -240,7 +264,7 @@ export declare const HELPER_TEXT: {
|
|
|
240
264
|
};
|
|
241
265
|
export declare const WORKFLOW_DETAILS_PARAMS: {
|
|
242
266
|
rc_details: {
|
|
243
|
-
|
|
267
|
+
id: string;
|
|
244
268
|
};
|
|
245
269
|
case_type: {
|
|
246
270
|
id: string;
|
|
@@ -249,6 +273,100 @@ export declare const WORKFLOW_DETAILS_PARAMS: {
|
|
|
249
273
|
id: string;
|
|
250
274
|
};
|
|
251
275
|
category: {
|
|
252
|
-
|
|
276
|
+
id: string;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
export declare const SIDE_SELECTOR_ELEMENTS: string[];
|
|
280
|
+
export declare const RISK_CLASSIFICATION: {
|
|
281
|
+
name: string;
|
|
282
|
+
value: number;
|
|
283
|
+
class: string;
|
|
284
|
+
}[];
|
|
285
|
+
export declare const ADDITIONAL_OPTION_STATUS: {
|
|
286
|
+
EXCEPTION_TYPE: boolean;
|
|
287
|
+
EVIDENCE: boolean;
|
|
288
|
+
PRIORITY: boolean;
|
|
289
|
+
ISSUE_TYPE: boolean;
|
|
290
|
+
ASSOCIATED_RISKS: boolean;
|
|
291
|
+
OVERSIGHT: boolean;
|
|
292
|
+
RECOMMENDED_ACTIONS: boolean;
|
|
293
|
+
RISK_CLASSIFICATION: boolean;
|
|
294
|
+
};
|
|
295
|
+
export declare const VALIDATION_ERROR: {
|
|
296
|
+
name: {
|
|
297
|
+
isError: boolean;
|
|
298
|
+
message: string;
|
|
299
|
+
};
|
|
300
|
+
description: {
|
|
301
|
+
isError: boolean;
|
|
302
|
+
message: string;
|
|
303
|
+
};
|
|
304
|
+
reportDate: {
|
|
305
|
+
isError: boolean;
|
|
306
|
+
message: string;
|
|
307
|
+
};
|
|
308
|
+
caseType: {
|
|
309
|
+
isError: boolean;
|
|
310
|
+
message: string;
|
|
311
|
+
};
|
|
312
|
+
priority: {
|
|
313
|
+
isError: boolean;
|
|
314
|
+
message: string;
|
|
315
|
+
};
|
|
316
|
+
rc: {
|
|
317
|
+
isError: boolean;
|
|
318
|
+
message: string;
|
|
319
|
+
};
|
|
320
|
+
mainRc: {
|
|
321
|
+
isError: boolean;
|
|
322
|
+
message: string;
|
|
323
|
+
};
|
|
324
|
+
caseOwner: {
|
|
325
|
+
isError: boolean;
|
|
326
|
+
message: string;
|
|
253
327
|
};
|
|
328
|
+
caseAssignee: {
|
|
329
|
+
isError: boolean;
|
|
330
|
+
message: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
export declare const ACTION_BUTTONS: {
|
|
334
|
+
buttonText: string;
|
|
335
|
+
class: string;
|
|
336
|
+
id: string;
|
|
337
|
+
}[];
|
|
338
|
+
export declare const SMILEY_MESSAGE = "You're all set!";
|
|
339
|
+
export declare const ADD_TO_WORKFLOW_MOCK: {
|
|
340
|
+
workflow_id: string;
|
|
341
|
+
owners: string[];
|
|
342
|
+
assignees: string[];
|
|
343
|
+
assignees_group: string[];
|
|
344
|
+
resolution_deadline: {
|
|
345
|
+
due_date: string;
|
|
346
|
+
stages_assignees: {
|
|
347
|
+
stage_id: string;
|
|
348
|
+
assignee_id: string;
|
|
349
|
+
due_date: string;
|
|
350
|
+
}[];
|
|
351
|
+
assignee_remind_before: number;
|
|
352
|
+
owner_remind_before: number;
|
|
353
|
+
};
|
|
354
|
+
exception_type: string;
|
|
355
|
+
associated_risks: {
|
|
356
|
+
text: string;
|
|
357
|
+
attachments: never[];
|
|
358
|
+
};
|
|
359
|
+
oversights: {
|
|
360
|
+
cc_ids: string[];
|
|
361
|
+
cc_failures_ids: string[];
|
|
362
|
+
};
|
|
363
|
+
evidence_enabled: boolean;
|
|
364
|
+
recommendations: {
|
|
365
|
+
text: string;
|
|
366
|
+
attachments: never[];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
export declare const EMAIL_REMINDERS: {
|
|
370
|
+
email_reminder: number;
|
|
371
|
+
escalation_email_reminder: number;
|
|
254
372
|
};
|
|
@@ -15,27 +15,28 @@ import * as i13 from "./components/case-priority/case-priority.component";
|
|
|
15
15
|
import * as i14 from "./components/case-category/case-category.component";
|
|
16
16
|
import * as i15 from "./components/case-resolution-deadline/case-resolution-deadline.component";
|
|
17
17
|
import * as i16 from "./components/case-assignees/case-assignees.component";
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "../
|
|
21
|
-
import * as i20 from "../
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "./components/
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "../sharedComponents/
|
|
30
|
-
import * as i29 from "../sharedComponents/
|
|
31
|
-
import * as i30 from "../
|
|
32
|
-
import * as i31 from "../
|
|
33
|
-
import * as i32 from "../sharedComponents/
|
|
34
|
-
import * as i33 from "../sharedComponents/
|
|
35
|
-
import * as i34 from "../
|
|
36
|
-
import * as i35 from "../
|
|
18
|
+
import * as i17 from "./components/case-owners/case-owners.component";
|
|
19
|
+
import * as i18 from "@angular/common";
|
|
20
|
+
import * as i19 from "../ui-kit/tooltip/tooltip.module";
|
|
21
|
+
import * as i20 from "../sharedComponents/floating-bar/floating-bar.module";
|
|
22
|
+
import * as i21 from "../formgroup/formgroup.module";
|
|
23
|
+
import * as i22 from "ng2-date-picker";
|
|
24
|
+
import * as i23 from "@vcomply/editor";
|
|
25
|
+
import * as i24 from "../ui-kit/popover/popover.module";
|
|
26
|
+
import * as i25 from "./components/vc-dropdown/vc-dropdown.module";
|
|
27
|
+
import * as i26 from "./components/form-selectBox/form-selectBox.module";
|
|
28
|
+
import * as i27 from "@angular/forms";
|
|
29
|
+
import * as i28 from "../sharedComponents/responsibility-centers-list/rc-list.module";
|
|
30
|
+
import * as i29 from "../sharedComponents/format-and-evidence/format-and-evidence.module";
|
|
31
|
+
import * as i30 from "../sharedComponents/v-loader/v-loader.module";
|
|
32
|
+
import * as i31 from "../ui-kit/smiley-dialog-inline/smiley-dialog-inline.module";
|
|
33
|
+
import * as i32 from "../sharedComponents/category-list-selection/category-list-selection.module";
|
|
34
|
+
import * as i33 from "../sharedComponents/directive/directive.module";
|
|
35
|
+
import * as i34 from "../sharedComponents/checkbox-list/checkbox-list.module";
|
|
36
|
+
import * as i35 from "../pipes/pipes.module";
|
|
37
|
+
import * as i36 from "../sharedComponents/group-users-list/group-users-list.component";
|
|
37
38
|
export declare class ReportCaseModule {
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportCaseModule, never>;
|
|
39
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportCaseModule, [typeof i1.CaseTypeComponent, typeof i2.WorkflowCaseComponent, typeof i3.AssigneeComponent, typeof i4.DueDateComponent, typeof i5.InformationBlockComponent, typeof i6.CaseDetailsComponent, typeof i7.VCInputComponent, typeof i8.VCFormLabelComponent, typeof i9.FieldHolderComponent, typeof i10.RcDetailsComponent, typeof i11.CaseDropdownComponent, typeof i12.ReportDateComponent, typeof i13.CasePriorityComponent, typeof i14.CaseCategoryComponent, typeof i15.CaseResolutionDeadlineComponent, typeof i16.CaseAssigneesComponent], [typeof
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportCaseModule, [typeof i1.CaseTypeComponent, typeof i2.WorkflowCaseComponent, typeof i3.AssigneeComponent, typeof i4.DueDateComponent, typeof i5.InformationBlockComponent, typeof i6.CaseDetailsComponent, typeof i7.VCInputComponent, typeof i8.VCFormLabelComponent, typeof i9.FieldHolderComponent, typeof i10.RcDetailsComponent, typeof i11.CaseDropdownComponent, typeof i12.ReportDateComponent, typeof i13.CasePriorityComponent, typeof i14.CaseCategoryComponent, typeof i15.CaseResolutionDeadlineComponent, typeof i16.CaseAssigneesComponent, typeof i17.CaseOwnersComponent], [typeof i18.CommonModule, typeof i19.TooltipModule, typeof i20.FloatingBarModule, typeof i21.FormgroupModule, typeof i22.DpDatePickerModule, typeof i23.VcomplyEditorModule, typeof i24.PopoverModule, typeof i25.VcDropdownModule, typeof i26.FormSelectBoxModule, typeof i27.FormsModule, typeof i28.RcListModule, typeof i29.FormatAndEvidenceModule, typeof i30.VLoaderModule, typeof i31.SmileyDialogInlineModule, typeof i32.CategoryListSelectionModule, typeof i33.SharedDirectiveModule, typeof i34.CheckboxListModule, typeof i35.PipesModule, typeof i36.GroupUsersListComponent], [typeof i2.WorkflowCaseComponent]>;
|
|
40
41
|
static ɵinj: i0.ɵɵInjectorDeclaration<ReportCaseModule>;
|
|
41
42
|
}
|
|
@@ -12,6 +12,7 @@ export declare class ReportACaseService {
|
|
|
12
12
|
private workflowSubject;
|
|
13
13
|
workflow$: Observable<any>;
|
|
14
14
|
workflowCode: Subject<string>;
|
|
15
|
+
resetMoreOption: Subject<boolean>;
|
|
15
16
|
env: any;
|
|
16
17
|
constructor(http: HttpClient, authService: AuthService, config?: Configurations);
|
|
17
18
|
private fetchAllTypes;
|
|
@@ -22,6 +23,8 @@ export declare class ReportACaseService {
|
|
|
22
23
|
getAllPriorities(): Observable<any>;
|
|
23
24
|
reportACase(payload: any): Observable<any>;
|
|
24
25
|
getWorkflowDetails(params: any): import("rxjs").Subscription;
|
|
26
|
+
getCaseOwners(workflow_id: string): Observable<Object>;
|
|
27
|
+
getCaseDetails(caseId: string): Observable<Object>;
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportACaseService, [null, null, { optional: true; }]>;
|
|
26
29
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReportACaseService>;
|
|
27
30
|
}
|
|
@@ -4,16 +4,19 @@ import { ReportACaseService } from '../services/report-a-case.service';
|
|
|
4
4
|
import { UiKitService } from '../../workflow-services/ui-kit.service';
|
|
5
5
|
import { OrganizationUserService } from '../../workflow-services/organization-user.service';
|
|
6
6
|
import { ResponsibilityService } from '../../workflow-services/responsibility.service';
|
|
7
|
+
import { ReportCasePermissionService } from '../../services/report-case-permission.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class WorkflowCaseComponent {
|
|
9
10
|
private reportACaseService;
|
|
10
11
|
private uiKitService;
|
|
11
12
|
private organizationUserService;
|
|
12
13
|
private responsibilityService;
|
|
14
|
+
private permissionService;
|
|
13
15
|
reportTexts: {
|
|
14
16
|
case_type: string;
|
|
15
17
|
report_case: string;
|
|
16
18
|
add_case: string;
|
|
19
|
+
default_flow: string;
|
|
17
20
|
receive_updates: string;
|
|
18
21
|
case_details: {
|
|
19
22
|
name: {
|
|
@@ -29,6 +32,11 @@ export declare class WorkflowCaseComponent {
|
|
|
29
32
|
placeholder: string;
|
|
30
33
|
singularText: string;
|
|
31
34
|
pluralText: string;
|
|
35
|
+
mainRcPlaceholder: string;
|
|
36
|
+
separateRcText: string;
|
|
37
|
+
separateRcTooltip: string;
|
|
38
|
+
sameRcText: string;
|
|
39
|
+
sameRcTooltip: string;
|
|
32
40
|
};
|
|
33
41
|
case_type: {
|
|
34
42
|
title: string;
|
|
@@ -38,6 +46,10 @@ export declare class WorkflowCaseComponent {
|
|
|
38
46
|
title: string;
|
|
39
47
|
placeholder: string;
|
|
40
48
|
};
|
|
49
|
+
additional_category: {
|
|
50
|
+
title: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
};
|
|
41
53
|
when: {
|
|
42
54
|
title: string;
|
|
43
55
|
placeholder: string;
|
|
@@ -59,6 +71,10 @@ export declare class WorkflowCaseComponent {
|
|
|
59
71
|
title: string;
|
|
60
72
|
placeholder: string;
|
|
61
73
|
};
|
|
74
|
+
owners: {
|
|
75
|
+
title: string;
|
|
76
|
+
placeholder: string;
|
|
77
|
+
};
|
|
62
78
|
};
|
|
63
79
|
tooltipMessage: {
|
|
64
80
|
report_case: string;
|
|
@@ -68,6 +84,16 @@ export declare class WorkflowCaseComponent {
|
|
|
68
84
|
};
|
|
69
85
|
errorMessage: {
|
|
70
86
|
rc: string;
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
caseType: string;
|
|
90
|
+
reportDate: string;
|
|
91
|
+
priority: string;
|
|
92
|
+
mainRc: string;
|
|
93
|
+
caseOwner: string;
|
|
94
|
+
caseAssignee: string;
|
|
95
|
+
dueDate: string;
|
|
96
|
+
stageAssignee: string;
|
|
71
97
|
};
|
|
72
98
|
};
|
|
73
99
|
ASSETS: {
|
|
@@ -79,6 +105,7 @@ export declare class WorkflowCaseComponent {
|
|
|
79
105
|
case_resolution_deadline: string;
|
|
80
106
|
case_assignees: string;
|
|
81
107
|
format_evidence: string;
|
|
108
|
+
case_owners: string;
|
|
82
109
|
};
|
|
83
110
|
caseType: typeof report;
|
|
84
111
|
caseTypeSelected: report;
|
|
@@ -116,7 +143,7 @@ export declare class WorkflowCaseComponent {
|
|
|
116
143
|
};
|
|
117
144
|
params: {
|
|
118
145
|
rc_details: {
|
|
119
|
-
|
|
146
|
+
id: string;
|
|
120
147
|
};
|
|
121
148
|
case_type: {
|
|
122
149
|
id: string;
|
|
@@ -125,14 +152,47 @@ export declare class WorkflowCaseComponent {
|
|
|
125
152
|
id: string;
|
|
126
153
|
};
|
|
127
154
|
category: {
|
|
128
|
-
|
|
155
|
+
id: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
validationError: {
|
|
159
|
+
name: {
|
|
160
|
+
isError: boolean;
|
|
161
|
+
message: string;
|
|
162
|
+
};
|
|
163
|
+
description: {
|
|
164
|
+
isError: boolean;
|
|
165
|
+
message: string;
|
|
166
|
+
};
|
|
167
|
+
reportDate: {
|
|
168
|
+
isError: boolean;
|
|
169
|
+
message: string;
|
|
170
|
+
};
|
|
171
|
+
caseType: {
|
|
172
|
+
isError: boolean;
|
|
173
|
+
message: string;
|
|
174
|
+
};
|
|
175
|
+
priority: {
|
|
176
|
+
isError: boolean;
|
|
177
|
+
message: string;
|
|
178
|
+
};
|
|
179
|
+
rc: {
|
|
180
|
+
isError: boolean;
|
|
181
|
+
message: string;
|
|
182
|
+
};
|
|
183
|
+
mainRc: {
|
|
184
|
+
isError: boolean;
|
|
185
|
+
message: string;
|
|
186
|
+
};
|
|
187
|
+
caseOwner: {
|
|
188
|
+
isError: boolean;
|
|
189
|
+
message: string;
|
|
190
|
+
};
|
|
191
|
+
caseAssignee: {
|
|
192
|
+
isError: boolean;
|
|
193
|
+
message: string;
|
|
129
194
|
};
|
|
130
195
|
};
|
|
131
|
-
fieldClicked: string;
|
|
132
|
-
showSmiley: boolean;
|
|
133
|
-
scrollToBottom: boolean;
|
|
134
|
-
sideSelectorElements: any;
|
|
135
|
-
additionalOptionStatus: any;
|
|
136
196
|
riskClassification: {
|
|
137
197
|
name: string;
|
|
138
198
|
value: number;
|
|
@@ -210,9 +270,6 @@ export declare class WorkflowCaseComponent {
|
|
|
210
270
|
DESIGN_EXCEPTION: string;
|
|
211
271
|
EFFECTIVENESS_EXCEPTION: string;
|
|
212
272
|
};
|
|
213
|
-
activeField: string;
|
|
214
|
-
activeSelector: string;
|
|
215
|
-
userList: any;
|
|
216
273
|
oversight_config: {
|
|
217
274
|
panelTitle: string;
|
|
218
275
|
floatingTextSingular: string;
|
|
@@ -221,67 +278,87 @@ export declare class WorkflowCaseComponent {
|
|
|
221
278
|
selectAllEnabled: boolean;
|
|
222
279
|
noDataText: string;
|
|
223
280
|
};
|
|
281
|
+
smileyMessage: string;
|
|
282
|
+
actionButtons: any[];
|
|
283
|
+
sideSelectorElements: any;
|
|
284
|
+
additionalOptionStatus: any;
|
|
285
|
+
fieldClicked: string;
|
|
286
|
+
activeField: string;
|
|
287
|
+
activeSelector: string;
|
|
288
|
+
showSmiley: boolean;
|
|
289
|
+
scrollToBottom: boolean;
|
|
290
|
+
workflowDetailsData: any;
|
|
291
|
+
groupList: any[];
|
|
292
|
+
userList: any;
|
|
293
|
+
selectedOversights: any;
|
|
224
294
|
loader: {
|
|
225
295
|
userListLoader: boolean;
|
|
226
296
|
typeLoader: boolean;
|
|
227
297
|
priorityLoader: boolean;
|
|
298
|
+
caseLoader: boolean;
|
|
299
|
+
groupListLoader: boolean;
|
|
228
300
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
message: string;
|
|
235
|
-
};
|
|
236
|
-
description: {
|
|
237
|
-
isError: boolean;
|
|
238
|
-
message: string;
|
|
239
|
-
};
|
|
240
|
-
reportDate: {
|
|
241
|
-
isError: boolean;
|
|
242
|
-
message: string;
|
|
243
|
-
};
|
|
244
|
-
caseType: {
|
|
245
|
-
isError: boolean;
|
|
246
|
-
message: string;
|
|
247
|
-
};
|
|
248
|
-
};
|
|
301
|
+
openedFrom: any;
|
|
302
|
+
source: any;
|
|
303
|
+
caseId: any;
|
|
304
|
+
mode: any;
|
|
305
|
+
workflowType: any;
|
|
249
306
|
closeWorkflow: EventEmitter<any>;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
307
|
+
populateOption: EventEmitter<any>;
|
|
308
|
+
caseReportedBy: EventEmitter<any>;
|
|
309
|
+
userListEmitter: EventEmitter<any>;
|
|
310
|
+
constructor(reportACaseService: ReportACaseService, uiKitService: UiKitService, organizationUserService: OrganizationUserService, responsibilityService: ResponsibilityService, permissionService: ReportCasePermissionService);
|
|
253
311
|
ngOnInit(): void;
|
|
254
312
|
getUserList(): void;
|
|
255
313
|
getGroupList(): void;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
314
|
+
getCaseDetails(): void;
|
|
315
|
+
getWorkflowDetails(data: any): void;
|
|
316
|
+
populateReportCasePayload(data: any): void;
|
|
317
|
+
populateAddCasePayload(data: any): void;
|
|
318
|
+
populateUserDetails(data: any): void;
|
|
319
|
+
populateResolutionDeadline(data: any): void;
|
|
320
|
+
populateAdditionalFields(data: any): void;
|
|
321
|
+
populateOversights(): void;
|
|
322
|
+
setOptionalField(data: any, riskClass: number): void;
|
|
323
|
+
populateOptionalFields(): void;
|
|
259
324
|
onCaseTypeChange(caseType: report): void;
|
|
260
|
-
|
|
325
|
+
saveSupportingDocument(event: any): void;
|
|
326
|
+
onCategoryChange(event: any): void;
|
|
327
|
+
onPriorityChange(event: any): void;
|
|
328
|
+
onRcChange(event: any): void;
|
|
329
|
+
onCaseTypeDropdownChange(event: any): void;
|
|
330
|
+
reportCase(): void;
|
|
331
|
+
checkValidation(payload: any): boolean;
|
|
332
|
+
checkAddToCaseValidation(payload: any): boolean;
|
|
333
|
+
validateName(name: string): boolean;
|
|
334
|
+
validateDescription(description: string): boolean;
|
|
335
|
+
validateCaseType(caseType: string): boolean;
|
|
336
|
+
validateReportDate(reportDate: string): boolean;
|
|
337
|
+
validateCasePriority(priority: string): boolean;
|
|
338
|
+
validateRc(payload: any): boolean;
|
|
339
|
+
validateCaseOwner(owners: any): boolean;
|
|
340
|
+
validateCaseAssignee(assignees: any, assignees_group: any): boolean;
|
|
261
341
|
onFieldClicked(event: any): void;
|
|
262
342
|
addMoreInfo(event: any): void;
|
|
263
|
-
|
|
264
|
-
|
|
343
|
+
setActiveFieldSelector(field: string, type: string): void;
|
|
344
|
+
fieldDeselector(type: any): void;
|
|
265
345
|
setException(type: any): void;
|
|
266
346
|
checkDescription(): void;
|
|
267
347
|
selectFile(type: string, files: any): void;
|
|
268
348
|
uploadFile(file: any, type: string): void;
|
|
269
349
|
setEvidence(value: any): void;
|
|
270
|
-
|
|
350
|
+
deleteItem(type: any, element: any): void;
|
|
351
|
+
selectorAction(evt: any, type: any): void;
|
|
352
|
+
getCcUsers(evt: any, type: string): void;
|
|
353
|
+
filterOversights(): void;
|
|
354
|
+
addToCase(): void;
|
|
271
355
|
smileyActions(evt: any): void;
|
|
272
356
|
resetForm(mode: string): void;
|
|
273
357
|
closeSmiley(evt?: any): void;
|
|
274
358
|
closeWorkFlow(evt: any, confirm: any): void;
|
|
275
|
-
onCategoryChange(event: any): void;
|
|
276
|
-
onPriorityChange(event: any): void;
|
|
277
|
-
onRcChange(event: any): void;
|
|
278
|
-
onCaseTypeDropdownChange(event: any): void;
|
|
279
|
-
addToCase(): void;
|
|
280
|
-
selectorAction(evt: any, type: any): void;
|
|
281
|
-
getCcUsers(evt: any, type: string): void;
|
|
282
359
|
onCaseLoader(event: any, type: string): void;
|
|
283
360
|
get displayAdditionalOptions(): any;
|
|
284
361
|
get checkloader(): boolean;
|
|
285
362
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowCaseComponent, never>;
|
|
286
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowCaseComponent, "app-workflow-case", never, {}, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
|
|
363
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowCaseComponent, "app-workflow-case", never, { "openedFrom": { "alias": "openedFrom"; "required": false; }; "source": { "alias": "source"; "required": false; }; "caseId": { "alias": "caseId"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "workflowType": { "alias": "workflowType"; "required": false; }; }, { "closeWorkflow": "closeWorkflow"; "populateOption": "populateOption"; "caseReportedBy": "caseReportedBy"; "userListEmitter": "userListEmitter"; }, never, never, false, never>;
|
|
287
364
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ApiService } from './api.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RbacService {
|
|
4
|
+
private apiService;
|
|
5
|
+
permissions: any;
|
|
6
|
+
data: any;
|
|
7
|
+
constructor(apiService: ApiService);
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the RBAC (Role-Based Access Control) permissions for a given module.
|
|
10
|
+
*
|
|
11
|
+
* @param MODULE - The module for which to retrieve the permissions. Must be one of the following values:
|
|
12
|
+
* - 'assessment'
|
|
13
|
+
* - 'audit'
|
|
14
|
+
* - 'issue'
|
|
15
|
+
* - 'policy'
|
|
16
|
+
* - 'risk'
|
|
17
|
+
* - 'assurance'
|
|
18
|
+
* - 'compliance'
|
|
19
|
+
* - 'organization'
|
|
20
|
+
*
|
|
21
|
+
* @returns An array of strings representing the permissions for the specified module.
|
|
22
|
+
*/
|
|
23
|
+
getRBACPermissions(MODULE: 'assessment' | 'audit' | 'issue' | 'policy' | 'risk' | 'assurance' | 'compliance' | 'organization' | 'case'): any;
|
|
24
|
+
getRBACData(MODULE: 'assessment' | 'audit' | 'issue' | 'policy' | 'risk' | 'assurance' | 'compliance' | 'organization' | 'case'): import("rxjs").Observable<any>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RbacService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RbacService>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { Configurations } from '../configurations';
|
|
3
|
+
import { AuthService } from '../workflow-services/auth.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ApiService {
|
|
6
|
+
private authService;
|
|
7
|
+
env: any;
|
|
8
|
+
loggedUserDetail$: BehaviorSubject<any | null>;
|
|
9
|
+
constructor(authService: AuthService, config?: Configurations);
|
|
10
|
+
getUserDetails(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, [null, { optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RbacService } from './RBAC.service';
|
|
2
|
+
import { AuthService } from './auth.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ReportCasePermissionService {
|
|
5
|
+
private rbacService;
|
|
6
|
+
private authService;
|
|
7
|
+
constructor(rbacService: RbacService, authService: AuthService);
|
|
8
|
+
checkReportACasePermission(): boolean;
|
|
9
|
+
checkSubscription(): boolean;
|
|
10
|
+
checkRBACPermission(): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportCasePermissionService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReportCasePermissionService>;
|
|
13
|
+
}
|
|
@@ -31,6 +31,7 @@ export declare class CategoryListSelectionComponent implements OnInit {
|
|
|
31
31
|
totalRecords: any;
|
|
32
32
|
totalPages: any;
|
|
33
33
|
loading: any;
|
|
34
|
+
selectionMode: 'single' | 'multiple';
|
|
34
35
|
set setSelected(value: any);
|
|
35
36
|
animation: boolean;
|
|
36
37
|
selectedIds: any;
|
|
@@ -46,5 +47,5 @@ export declare class CategoryListSelectionComponent implements OnInit {
|
|
|
46
47
|
selectAll(evt: any): void;
|
|
47
48
|
checkSelectAll(): boolean;
|
|
48
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CategoryListSelectionComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CategoryListSelectionComponent, "app-category-list-selection", never, { "setList": { "alias": "categoryList"; "required": false; }; "config": { "alias": "config"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "recordStart": { "alias": "recordStart"; "required": false; }; "recordEnd": { "alias": "recordEnd"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "setSelected": { "alias": "selectedList"; "required": false; }; }, { "fetchData": "fetchData"; "back": "back"; "next": "next"; "cancel": "cancel"; }, never, never, false, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CategoryListSelectionComponent, "app-category-list-selection", never, { "setList": { "alias": "categoryList"; "required": false; }; "config": { "alias": "config"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "recordStart": { "alias": "recordStart"; "required": false; }; "recordEnd": { "alias": "recordEnd"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "setSelected": { "alias": "selectedList"; "required": false; }; }, { "fetchData": "fetchData"; "back": "back"; "next": "next"; "cancel": "cancel"; }, never, never, false, never>;
|
|
50
51
|
}
|
package/lib/sharedComponents/radio-list-with-pagination/radio-list-with-pagination.module.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import * as i5 from "../floating-bar/floating-bar.module";
|
|
|
7
7
|
import * as i6 from "../no-data/no-data.module";
|
|
8
8
|
import * as i7 from "../../formgroup/formgroup.module";
|
|
9
9
|
import * as i8 from "../../ui-kit/pagination/pagination.module";
|
|
10
|
+
import * as i9 from "../../pipes/pipes.module";
|
|
10
11
|
export declare class RadioListWithPaginationModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioListWithPaginationModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioListWithPaginationModule, [typeof i1.RadioListWithPaginationComponent, typeof i2.LinkTreatmentLoaderComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.FloatingBarModule, typeof i6.NoDataModule, typeof i7.FormgroupModule, typeof i8.PaginationModule], [typeof i1.RadioListWithPaginationComponent, typeof i2.LinkTreatmentLoaderComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioListWithPaginationModule, [typeof i1.RadioListWithPaginationComponent, typeof i2.LinkTreatmentLoaderComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.FloatingBarModule, typeof i6.NoDataModule, typeof i7.FormgroupModule, typeof i8.PaginationModule, typeof i9.PipesModule], [typeof i1.RadioListWithPaginationComponent, typeof i2.LinkTreatmentLoaderComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<RadioListWithPaginationModule>;
|
|
14
15
|
}
|
|
@@ -17,6 +17,7 @@ import { GrcObjectContainerComponent } from '../workflow/grc-object/grc-object-c
|
|
|
17
17
|
import { OrganizationCommonService } from '../workflow-services/common-workflow-services/organization-common.service';
|
|
18
18
|
import { ReportACaseService } from '../report-a-case/services/report-a-case.service';
|
|
19
19
|
import { WorkflowCaseComponent } from '../report-a-case/workflow-case/workflow-case.component';
|
|
20
|
+
import { ReportCasePermissionService } from '../services/report-case-permission.service';
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
export declare class WorkflowEngineContainerComponent implements OnInit, AfterViewInit {
|
|
22
23
|
uiKitService: UiKitService;
|
|
@@ -24,12 +25,13 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
24
25
|
auth: AuthService;
|
|
25
26
|
private orgCommonService;
|
|
26
27
|
private reportACaseService;
|
|
28
|
+
private reportCasePermissionService;
|
|
27
29
|
isHostRefreshActive: boolean;
|
|
28
30
|
isRCSelected: boolean;
|
|
29
31
|
featureFlag_groups: boolean;
|
|
30
32
|
addToCaseMode: string;
|
|
31
33
|
unloadNotification($event: any): void;
|
|
32
|
-
constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService);
|
|
34
|
+
constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService, reportCasePermissionService: ReportCasePermissionService);
|
|
33
35
|
workflowType: string;
|
|
34
36
|
mode: string;
|
|
35
37
|
id: string;
|
|
@@ -76,12 +78,14 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
76
78
|
orgDetails: any;
|
|
77
79
|
programSimplifyFlag: boolean;
|
|
78
80
|
isResponsibilitySimplifyFlag: boolean;
|
|
81
|
+
caseFeatureFlag: boolean;
|
|
79
82
|
animation: boolean;
|
|
80
83
|
workflowList: boolean;
|
|
81
84
|
showMoreOption: boolean;
|
|
82
85
|
isWorkflowSelectorEnabled: boolean;
|
|
83
86
|
disableWorkflowChange: boolean;
|
|
84
87
|
checkpointCount: number;
|
|
88
|
+
reportBy: string;
|
|
85
89
|
currentBusinessCycle: any;
|
|
86
90
|
riskComponent: WorkflowRiskComponent;
|
|
87
91
|
riskBulkUpload: AddMultipleRiskComponent;
|
|
@@ -104,6 +108,7 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
104
108
|
feature: any;
|
|
105
109
|
organizationDetails: any;
|
|
106
110
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
111
|
+
userList: any;
|
|
107
112
|
currentWorkflow: any;
|
|
108
113
|
workflowTypeList: any;
|
|
109
114
|
additionalInformationList: string[];
|
|
@@ -115,7 +120,10 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
|
|
|
115
120
|
ngOnInit(): void;
|
|
116
121
|
setNetworkListner(): void;
|
|
117
122
|
ngAfterViewInit(): void;
|
|
123
|
+
checkReportCasePermission(): void;
|
|
124
|
+
userListEmitter(event: any): void;
|
|
118
125
|
decideViewMoreOption(type?: boolean): void;
|
|
126
|
+
caseReportedBy(event: any): void;
|
|
119
127
|
submit(): void;
|
|
120
128
|
editWorkflow(): void;
|
|
121
129
|
closeWorkflowList(): void;
|
|
@@ -111,7 +111,7 @@ export declare class WorkflowRiskComponent implements OnInit {
|
|
|
111
111
|
setPopupButtons(): void;
|
|
112
112
|
getRiskDetails(riskId: any): void;
|
|
113
113
|
populateOptionalFields(): void;
|
|
114
|
-
setCategoryType(type: any): "
|
|
114
|
+
setCategoryType(type: any): "compliance" | "strategic" | "operational" | "others";
|
|
115
115
|
getRCList(): void;
|
|
116
116
|
getCategoryList(): void;
|
|
117
117
|
getOwnersList(): void;
|