vcomply-workflow-engine 2.9.60 → 2.9.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/bundles/vcomply-workflow-engine.umd.js +1046 -876
  2. package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
  3. package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.js +1 -1
  4. package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.js +1 -1
  5. package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.js +1 -1
  6. package/esm2015/lib/add-multiple-risk/add-multiple-risk.component.js +1 -1
  7. package/esm2015/lib/log-an-issue/log-an-issue.component.js +1 -1
  8. package/esm2015/lib/more-option/more-option.component.js +15 -17
  9. package/esm2015/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.js +219 -0
  10. package/esm2015/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.ngfactory.js +169 -0
  11. package/esm2015/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.ngsummary.json +1 -0
  12. package/esm2015/lib/sharedComponents/approval-workflow/approval-workflow-list/approval-workflow-list.component.js +54 -0
  13. package/esm2015/lib/sharedComponents/approval-workflow/approval-workflow-list/approval-workflow-list.component.ngfactory.js +215 -0
  14. package/esm2015/lib/sharedComponents/approval-workflow/approval-workflow-list/approval-workflow-list.component.ngsummary.json +1 -0
  15. package/esm2015/lib/sharedComponents/approval-workflow/approval-workflow.component.js +40 -3
  16. package/esm2015/lib/sharedComponents/approval-workflow/approval-workflow.component.ngfactory.js +24 -408
  17. package/esm2015/lib/sharedComponents/approval-workflow/approval-workflow.component.ngsummary.json +1 -1
  18. package/esm2015/lib/sharedComponents/format-and-evidence/format-and-evidence.component.js +1 -1
  19. package/esm2015/lib/sharedComponents/link-program/link-program/link-program.component.js +26 -13
  20. package/esm2015/lib/sharedComponents/link-program/link-program/link-program.component.ngfactory.js +4 -4
  21. package/esm2015/lib/sharedComponents/link-program/link-program/link-program.component.ngsummary.json +1 -1
  22. package/esm2015/lib/sharedComponents/link-program/restapi.service.js +8 -6
  23. package/esm2015/lib/sharedComponents/no-data/no-data.component.js +4 -2
  24. package/esm2015/lib/sharedComponents/no-data/no-data.component.ngfactory.js +1 -1
  25. package/esm2015/lib/sharedComponents/no-data/no-data.component.ngsummary.json +1 -1
  26. package/esm2015/lib/sharedComponents/risk-classification/risk-classification.component.js +1 -1
  27. package/esm2015/lib/sharedComponents/select-approvers/select-approvers.component.js +65 -354
  28. package/esm2015/lib/sharedComponents/select-approvers/select-approvers.component.ngfactory.js +59 -28
  29. package/esm2015/lib/sharedComponents/select-approvers/select-approvers.component.ngsummary.json +1 -1
  30. package/esm2015/lib/ui-kit/directive/directive.module.js +19 -0
  31. package/esm2015/lib/ui-kit/directive/directive.module.ngfactory.js +12 -0
  32. package/esm2015/lib/ui-kit/directive/directive.module.ngsummary.json +1 -0
  33. package/esm2015/lib/ui-kit/directive/stop-propagation.directive.js +16 -0
  34. package/esm2015/lib/ui-kit/directive/stop-propagation.directive.ngsummary.json +1 -0
  35. package/esm2015/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.js +1 -1
  36. package/esm2015/lib/workflow-assessment/workflow-assessment.component.js +1 -1
  37. package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +1 -1
  38. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.js +1 -1
  39. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +43 -42
  40. package/esm2015/lib/workflow-engine.module.js +11 -9
  41. package/esm2015/lib/workflow-engine.module.ngfactory.js +3 -2
  42. package/esm2015/lib/workflow-engine.module.ngsummary.json +1 -1
  43. package/esm2015/lib/workflow-interfaces/create-policy-form.js +1 -1
  44. package/esm2015/lib/workflow-policy/workflow-policy.component.js +100 -39
  45. package/esm2015/lib/workflow-policy/workflow-policy.component.ngfactory.js +389 -370
  46. package/esm2015/lib/workflow-policy/workflow-policy.component.ngsummary.json +1 -1
  47. package/esm2015/lib/workflow-program/create-program-ui/file-pill/file-pill.component.js +1 -1
  48. package/esm2015/lib/workflow-program/create-program-ui/floating-bar/floating-bar.component.js +10 -7
  49. package/esm2015/lib/workflow-program/create-program-ui/form-field/form-field.component.js +1 -1
  50. package/esm2015/lib/workflow-program/create-program-ui/input-with-pill/input-with-pill.component.js +1 -1
  51. package/esm2015/lib/workflow-program/create-program-ui/pagination/pagination/pagination.component.js +2 -2
  52. package/esm2015/lib/workflow-program/create-program-ui/pagination/pagination/pagination.component.ngfactory.js +2 -2
  53. package/esm2015/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.js +2 -2
  54. package/esm2015/lib/workflow-program/create-program-ui/user-group-list/user-group-list.component.ngfactory.js +23 -8
  55. package/esm2015/lib/workflow-program/workflow-program.component.js +1 -1
  56. package/esm2015/lib/workflow-risk/workflow-risk.component.js +1 -1
  57. package/esm2015/lib/workflow-services/policy.service.js +49 -19
  58. package/esm2015/lib/workflow-services/policy.service.ngsummary.json +1 -1
  59. package/esm2015/lib/workflow-survey-form/workflow-survey-form.component.js +1 -1
  60. package/esm2015/vcomply-workflow-engine.js +302 -298
  61. package/esm2015/vcomply-workflow-engine.ngsummary.json +1 -1
  62. package/fesm2015/vcomply-workflow-engine.js +738 -584
  63. package/fesm2015/vcomply-workflow-engine.js.map +1 -1
  64. package/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.d.ts +59 -0
  65. package/lib/sharedComponents/approval-workflow/approval-create-form/approval-create-form.component.ngfactory.d.ts +1 -0
  66. package/lib/sharedComponents/approval-workflow/approval-workflow-list/approval-workflow-list.component.d.ts +19 -0
  67. package/lib/sharedComponents/approval-workflow/approval-workflow-list/approval-workflow-list.component.ngfactory.d.ts +1 -0
  68. package/lib/sharedComponents/approval-workflow/approval-workflow.component.d.ts +15 -1
  69. package/lib/sharedComponents/link-program/link-program/link-program.component.d.ts +3 -0
  70. package/lib/sharedComponents/link-program/restapi.service.d.ts +3 -3
  71. package/lib/sharedComponents/no-data/no-data.component.d.ts +3 -2
  72. package/lib/sharedComponents/select-approvers/select-approvers.component.d.ts +14 -3
  73. package/lib/ui-kit/directive/directive.module.d.ts +2 -0
  74. package/lib/ui-kit/directive/directive.module.ngfactory.d.ts +3 -0
  75. package/lib/ui-kit/directive/directive.module.ts +17 -0
  76. package/lib/ui-kit/directive/stop-propagation.directive.d.ts +3 -0
  77. package/lib/ui-kit/directive/stop-propagation.directive.spec.ts +8 -0
  78. package/lib/ui-kit/directive/stop-propagation.directive.ts +15 -0
  79. package/lib/workflow-interfaces/create-policy-form.d.ts +3 -4
  80. package/lib/workflow-policy/workflow-policy.component.d.ts +10 -1
  81. package/lib/workflow-services/policy.service.d.ts +2 -0
  82. package/package.json +1 -1
  83. package/vcomply-workflow-engine.d.ts +301 -297
  84. package/vcomply-workflow-engine.metadata.json +1 -1
@@ -0,0 +1,59 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { EditorConfig } from 'vcomply-editor';
3
+ import { AuthService } from '../../../workflow-services/auth.service';
4
+ import { PolicyService } from '../../../workflow-services/policy.service';
5
+ export declare class ApprovalCreateFormComponent implements OnInit {
6
+ private authService;
7
+ private policyService;
8
+ enableApprovalCreate: boolean;
9
+ enableApprovalLevel: boolean;
10
+ enablePolicyCategory: boolean;
11
+ workflowName: string;
12
+ selectApprovalPayload: any[];
13
+ createApprovalPayload: any[];
14
+ approvalWorkflows: any[];
15
+ filteredCategory: any[];
16
+ levels: number;
17
+ categoryConfig: {
18
+ panelTitle: string;
19
+ floatingTextSingular: string;
20
+ floatingTextPlural: string;
21
+ searchPlaceholder: string;
22
+ searchEnabled: boolean;
23
+ selectAllEnabled: boolean;
24
+ workflow: string;
25
+ };
26
+ selectedCat: any[];
27
+ editApprovalData: any[];
28
+ editIndex: number;
29
+ createDescription: string;
30
+ selectedCategoryId: any[];
31
+ mode: 'CREATE' | 'EDIT';
32
+ approverDetails: any;
33
+ approverWorkFlowList: any;
34
+ enableCreateForm: boolean;
35
+ allApprovers: any;
36
+ selectedCategory: any;
37
+ saveApprovalWorkflow: EventEmitter<any>;
38
+ constructor(authService: AuthService, policyService: PolicyService);
39
+ description: EditorConfig;
40
+ ngOnInit(): void;
41
+ createApprovalAction(event: any): void;
42
+ addLevelsClicked(event: any): void;
43
+ getCategoryId(category: any): void;
44
+ removeCategory(event: any): void;
45
+ enableCategory(event: boolean): void;
46
+ closeSelectApprover(): void;
47
+ selectedApprover(event: any): void;
48
+ deleteLevel(index: any): void;
49
+ checkLevel(): void;
50
+ editApproval(approval: any, index: any): void;
51
+ closeCreateForm(): void;
52
+ nextClick(): void;
53
+ removeMemberNameKey(): void;
54
+ generatePayload(): void;
55
+ createNewWorkflow(payload: any): void;
56
+ _editWorkflow(payload: any): void;
57
+ populateApprover(): void;
58
+ closeForm(): void;
59
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ export declare class ApprovalWorkflowListComponent implements OnInit {
3
+ hideDetails: boolean;
4
+ openIndexId: number;
5
+ selectedWorkflow: any;
6
+ approverWorkFlowList: any;
7
+ createApprovalClicked: EventEmitter<any>;
8
+ listCancelClicked: EventEmitter<any>;
9
+ selectedWorkflowNext: EventEmitter<any>;
10
+ onApprovalEdit: EventEmitter<any>;
11
+ constructor();
12
+ ngOnInit(): void;
13
+ showDetails(id: any): void;
14
+ createApprovalClick(event: boolean): void;
15
+ selectApproval(approval?: any): void;
16
+ cancelClicked(): void;
17
+ nextClicked(): void;
18
+ onEdit(approverWorkflow: any): void;
19
+ }
@@ -1,9 +1,23 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { EditorConfig } from 'vcomply-editor';
3
3
  export declare class ApprovalWorkflowComponent implements OnInit {
4
4
  hideDetails: boolean;
5
+ enableCreateForm: boolean;
6
+ approverWorkFlowList: any;
7
+ allApprovers: any;
8
+ selectedCategory: any;
9
+ selectedWorkflowNext: EventEmitter<any>;
10
+ listCancelClicked: EventEmitter<any>;
11
+ saveApprovalWorkflow: EventEmitter<any>;
5
12
  description: EditorConfig;
13
+ mode: 'CREATE' | 'EDIT';
14
+ approverDetails: any;
6
15
  constructor();
7
16
  ngOnInit(): void;
8
17
  showDetails(): void;
18
+ createApprovalClicked(event: boolean): void;
19
+ cancelClicked(event: any): void;
20
+ nextClicked(event: any): void;
21
+ approvalWorkflowAPICalled(event: any): void;
22
+ onApprovalEdit(event: any): void;
9
23
  }
@@ -50,6 +50,9 @@ export declare class LinkProgramComponent implements OnInit {
50
50
  programsList: any;
51
51
  set getSelectedProgram(program: any);
52
52
  selectedCategories: any[];
53
+ selectedLinkProgram: {
54
+ _id: string;
55
+ };
53
56
  hideProgramsList: any;
54
57
  searchProgram: any;
55
58
  previousSelectedValues: any;
@@ -24,9 +24,9 @@ export declare class RestApiService implements HttpInterceptor {
24
24
  handleError(error: HttpErrorResponse): Observable<never>;
25
25
  getBusinessCycle(): {
26
26
  selected_cycle: string;
27
- start_date: string;
28
- end_date: string;
29
- selected_cycle_arr: string[];
27
+ start_date: any;
28
+ end_date: any;
29
+ selected_cycle_arr: any;
30
30
  };
31
31
  apiDelegate(req: any): Observable<Object>;
32
32
  apiTestDelegate(req: any): Observable<Object>;
@@ -6,9 +6,10 @@ export declare class NoDataComponent implements OnInit {
6
6
  noDataButton: string | boolean;
7
7
  noDataSecButton: string | boolean;
8
8
  altText: string;
9
- buttonAction: EventEmitter<object>;
9
+ buttonAction: EventEmitter<any>;
10
10
  smallButton: boolean;
11
+ button: any;
11
12
  constructor();
12
13
  ngOnInit(): void;
13
- actionEmitter(button: object): void;
14
+ actionEmitter(button: any): void;
14
15
  }
@@ -1,7 +1,18 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  export declare class SelectApproversComponent implements OnInit {
3
+ approvalLevelName: string;
4
+ approversPayload: any[];
5
+ selectedType: string;
6
+ allApprovers: any;
7
+ levels: number;
8
+ editApprovalData: any;
9
+ closeSelectApprover: EventEmitter<any>;
10
+ selectedApprover: EventEmitter<any>;
3
11
  constructor();
4
12
  ngOnInit(): void;
5
- reviewerMemberIdsList: any;
6
- groupReviewerList: any;
13
+ closeUserList(): void;
14
+ selectedUsers(event: any): void;
15
+ generateApprovers(approvers: any): void;
16
+ approvalType(type: 'ANYONE' | 'ROUNDROBIN' | 'SEQUENTIAL'): void;
17
+ generatePayload(event: any): void;
7
18
  }
@@ -0,0 +1,2 @@
1
+ export declare class DirectiveModule {
2
+ }
@@ -0,0 +1,3 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from './directive.module';
3
+ export declare const DirectiveModuleNgFactory: i0.NgModuleFactory<i1.DirectiveModule>;
@@ -0,0 +1,17 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { StopPropagationDirective } from './stop-propagation.directive';
4
+
5
+
6
+ @NgModule({
7
+ declarations: [
8
+ StopPropagationDirective,
9
+ ],
10
+ imports: [
11
+ CommonModule
12
+ ],
13
+ exports: [
14
+ StopPropagationDirective,
15
+ ]
16
+ })
17
+ export class DirectiveModule { }
@@ -0,0 +1,3 @@
1
+ export declare class StopPropagationDirective {
2
+ onClick(event: any): void;
3
+ }
@@ -0,0 +1,8 @@
1
+ import { StopPropagationDirective } from './stop-propagation.directive';
2
+
3
+ describe('StopPropagationDirective', () => {
4
+ it('should create an instance', () => {
5
+ const directive = new StopPropagationDirective();
6
+ expect(directive).toBeTruthy();
7
+ });
8
+ });
@@ -0,0 +1,15 @@
1
+
2
+ import {Directive, HostListener} from "@angular/core";
3
+
4
+ @Directive({
5
+ selector: '[appStopPropagation]'
6
+ })
7
+ export class StopPropagationDirective
8
+ {
9
+ @HostListener("click", ["$event"])
10
+ public onClick(event: any): void
11
+ {
12
+ event.preventDefault();
13
+ event.stopPropagation();
14
+ }
15
+ }
@@ -2,10 +2,7 @@ export interface PolicyForm {
2
2
  policyName: string;
3
3
  policyNotes: string;
4
4
  selectedCategories: [];
5
- selectedApprovers: {
6
- name: string;
7
- approvers: [];
8
- }[];
5
+ selectedApprovers: any;
9
6
  selectedAssignees: [];
10
7
  selectedGroupAssignee: [];
11
8
  selectedReviewers: [];
@@ -64,7 +61,9 @@ export interface PolicyForm {
64
61
  _id: string;
65
62
  }>;
66
63
  policy_group_owners: Array<string>;
64
+ businessCycle: any;
67
65
  addVersion: boolean;
68
66
  addLinkAssessment: boolean;
69
67
  addLinkProgram: boolean;
68
+ policy_id: number;
70
69
  }
@@ -11,6 +11,7 @@ import { PlatformLocation } from '@angular/common';
11
11
  import { ActivatedRoute, Router } from '@angular/router';
12
12
  import { FrequencyService } from '../sharedComponents/frequency/frequency.service';
13
13
  import { FormatAndEvidenceComponent } from '../sharedComponents/format-and-evidence/format-and-evidence.component';
14
+ import { RestApiService } from '../sharedComponents/link-program/restapi.service';
14
15
  export declare class WorkflowPolicyComponent implements OnInit {
15
16
  private policyService;
16
17
  private snackBar;
@@ -21,6 +22,7 @@ export declare class WorkflowPolicyComponent implements OnInit {
21
22
  private route;
22
23
  private frequencyService;
23
24
  private changeRef;
25
+ private restApiService;
24
26
  pickerChanged: EventEmitter<any>;
25
27
  mode: string;
26
28
  policyId: string;
@@ -134,9 +136,11 @@ export declare class WorkflowPolicyComponent implements OnInit {
134
136
  baseURL: string;
135
137
  groupEnabled: any;
136
138
  overseerGroupsList: any[];
139
+ enableApprovalWorkflow: boolean;
137
140
  isVersionValid: boolean;
141
+ selectedLinkProgram: any;
138
142
  versionErrorMessage: string;
139
- constructor(policyService: PolicyService, snackBar: SnackBarService, uiKitService: UiKitService, authService: AuthService, responsibilityService: ResponsibilityService, router: Router, route: ActivatedRoute, frequencyService: FrequencyService, platformLocation: PlatformLocation, changeRef: ChangeDetectorRef);
143
+ constructor(policyService: PolicyService, snackBar: SnackBarService, uiKitService: UiKitService, authService: AuthService, responsibilityService: ResponsibilityService, router: Router, route: ActivatedRoute, frequencyService: FrequencyService, platformLocation: PlatformLocation, changeRef: ChangeDetectorRef, restApiService: RestApiService);
140
144
  policyForm: PolicyForm;
141
145
  ngOnInit(): void;
142
146
  /**
@@ -293,8 +297,13 @@ export declare class WorkflowPolicyComponent implements OnInit {
293
297
  changeName(event: string): string;
294
298
  typeSelected(event: boolean): void;
295
299
  onVersion(event: any): void;
300
+ clickApprovalWorkflow(event: boolean): void;
301
+ listCancelClicked(event: any): void;
302
+ selectedApprovalWorkflow(event: any): void;
296
303
  updatedProgramDetails(event: any): void;
297
304
  onAssessmentSelect(event: any): void;
298
305
  getAssessmentDetails(assessmentDetails: any, type?: string): void;
299
306
  setOwnersOnLoad(): void;
307
+ approvalWorkflowAPICall(event: any): void;
308
+ convertApprovalWorkflow(approverList: any): any;
300
309
  }
@@ -21,4 +21,6 @@ export declare class PolicyService {
21
21
  editPolicy(id: any): import("rxjs").Observable<any[]>;
22
22
  updatePolicy(payload: any, policyId: any): import("rxjs").Observable<any>;
23
23
  extractFile(extension: any, path: any, id: any): import("rxjs").Observable<Object>;
24
+ createApprovalWorkflow(payload: any): import("rxjs").Observable<any>;
25
+ editApprovalWorkflow(payload: any, id: string): import("rxjs").Observable<any>;
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "2.9.60",
3
+ "version": "2.9.61",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "10.x || 11.x || 12.x || 13.x || 14.x || 15.x || 16.x",
6
6
  "@angular/core": "10.x || 11.x || 12.x || 13.x || 14.x || 15.x || 16.x"