vcomply-workflow-engine 2.6.94 → 2.6.95

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 (41) hide show
  1. package/bundles/vcomply-workflow-engine.umd.js +1788 -214
  2. package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
  3. package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.js +11 -4
  4. package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.ngfactory.js +28 -40
  5. package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.ngsummary.json +1 -1
  6. package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.js +177 -0
  7. package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.ngfactory.js +100 -0
  8. package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.ngsummary.json +1 -0
  9. package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.js +1295 -0
  10. package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.ngfactory.js +70 -0
  11. package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.ngsummary.json +1 -0
  12. package/esm2015/lib/pipes/search.pipe.js +5 -5
  13. package/esm2015/lib/services/bulk-upload.service.js +43 -0
  14. package/esm2015/lib/services/bulk-upload.service.ngsummary.json +1 -0
  15. package/esm2015/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.js +18 -5
  16. package/esm2015/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.ngfactory.js +520 -30
  17. package/esm2015/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.ngsummary.json +1 -1
  18. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.js +2 -2
  19. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +6 -6
  20. package/esm2015/lib/workflow-engine.module.js +6 -2
  21. package/esm2015/lib/workflow-engine.module.ngfactory.js +1 -1
  22. package/esm2015/lib/workflow-program/create-program-ui/pipes/search.pipe.js +2 -2
  23. package/esm2015/lib/workflow-risk/workflow-risk.component.js +3 -2
  24. package/esm2015/lib/workflow-services/add-risk.service.js +3 -3
  25. package/esm2015/lib/workflow-services/frequency.service.js +41 -12
  26. package/esm2015/vcomply-workflow-engine.js +191 -188
  27. package/esm2015/vcomply-workflow-engine.ngsummary.json +1 -1
  28. package/fesm2015/vcomply-workflow-engine.js +1577 -28
  29. package/fesm2015/vcomply-workflow-engine.js.map +1 -1
  30. package/lib/add-multiple-responsibility/add-multiple-responsibility.component.d.ts +2 -0
  31. package/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.d.ts +34 -0
  32. package/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.ngfactory.d.ts +1 -0
  33. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +170 -0
  34. package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.ngfactory.d.ts +1 -0
  35. package/lib/services/bulk-upload.service.d.ts +6 -0
  36. package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +5 -0
  37. package/lib/workflow-services/add-risk.service.d.ts +1 -1
  38. package/lib/workflow-services/frequency.service.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/vcomply-workflow-engine.d.ts +190 -187
  41. package/vcomply-workflow-engine.metadata.json +1 -1
@@ -15,6 +15,8 @@ export declare class AddMultipleResponsibilityComponent implements OnChanges {
15
15
  closeWorkflow: EventEmitter<any>;
16
16
  disconnectRefresh: EventEmitter<any>;
17
17
  isNotificationPending: number;
18
+ closeAddMultipleResponsibility: EventEmitter<any>;
19
+ set uploadedFileData(data: any);
18
20
  responsibilityBulkUpload: any;
19
21
  templateInfo: any;
20
22
  isLoader: boolean;
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { AddRiskService } from '../workflow-services/add-risk.service';
3
+ import { AuthService } from '../workflow-services/auth.service';
4
+ import { BulkUploadService } from '../services/bulk-upload.service';
5
+ export declare class AddMultipleResponsibilityContainerComponent implements OnInit {
6
+ private riskService;
7
+ private authService;
8
+ private bulkUploadService;
9
+ downloadStatus: string;
10
+ downloadStatusV2: string;
11
+ downloadPercent: number;
12
+ fileValue: any;
13
+ showSmiley: boolean;
14
+ responsibilityData: any;
15
+ fileName: string;
16
+ singleTabResponsibility: boolean;
17
+ multiTabResponsibility: boolean;
18
+ isFileEmpty: boolean;
19
+ isWrongFile: boolean;
20
+ isWrongFormat: boolean;
21
+ errorMessage: string;
22
+ member_obj_id: string;
23
+ bulkUploadFlag: boolean;
24
+ closeWorkflow: EventEmitter<any>;
25
+ feature: any;
26
+ constructor(riskService: AddRiskService, authService: AuthService, bulkUploadService: BulkUploadService);
27
+ ngOnInit(): void;
28
+ downloadTemplate(version?: any): void;
29
+ uploadedFileData: any;
30
+ uploadedFile(event: any): void;
31
+ closeSmiley(event: any): void;
32
+ triggerBrowseFile(): void;
33
+ closeAddMultipleResponsibility(event: any): void;
34
+ }
@@ -0,0 +1,170 @@
1
+ import { EventEmitter, SimpleChanges, OnInit } from '@angular/core';
2
+ import * as XLSX from 'xlsx';
3
+ import { SnackBarService } from '../ui-kit/snack-bar/snack-bar.service';
4
+ import { AddRiskService } from '../workflow-services/add-risk.service';
5
+ import { AuthService } from '../workflow-services/auth.service';
6
+ import { FrequencyBulkService } from '../workflow-services/frequency.service';
7
+ import { ResponsibilityService } from '../workflow-services/responsibility.service';
8
+ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit {
9
+ private riskService;
10
+ private responsibilityService;
11
+ private authService;
12
+ private frequencyService;
13
+ private snackBar;
14
+ pickerChanged: EventEmitter<any>;
15
+ populateOption: EventEmitter<any>;
16
+ closeWorkflow: EventEmitter<any>;
17
+ disconnectRefresh: EventEmitter<any>;
18
+ isNotificationPending: number;
19
+ closeAddMultipleResponsibility: EventEmitter<any>;
20
+ set uploadedFileData(data: any);
21
+ responsibilityBulkUpload: any;
22
+ tabType: 'frequency' | 'ongoing' | 'onCompletion';
23
+ tabIndex: any;
24
+ bulkUpload: any;
25
+ templateInfo: any;
26
+ isLoader: boolean;
27
+ showCategoryList: boolean;
28
+ templateDownloaded: boolean;
29
+ downloadInProgress: boolean;
30
+ loader: boolean;
31
+ isFileEmpty: boolean;
32
+ isWrongFile: boolean;
33
+ isWrongFormat: boolean;
34
+ fileName: any;
35
+ data: any;
36
+ showExcel: boolean;
37
+ uploadedFiles: any;
38
+ fileResponse: any;
39
+ fileValue: any;
40
+ memberId: number;
41
+ organizationId: number;
42
+ errorMessage: string;
43
+ downloadStatus: string;
44
+ downloadPercent: number;
45
+ defaultOwner: string;
46
+ smileyMessage: string;
47
+ actionButtons: {
48
+ buttonText: string;
49
+ class: string;
50
+ id: string;
51
+ }[];
52
+ showSmiley: boolean;
53
+ member_obj_id: string;
54
+ riskClassEnabled: any;
55
+ userInfo: any;
56
+ responsibilityData: any;
57
+ constructor(riskService: AddRiskService, responsibilityService: ResponsibilityService, authService: AuthService, frequencyService: FrequencyBulkService, snackBar: SnackBarService);
58
+ ngOnChanges(changes: SimpleChanges): void;
59
+ ngOnInit(): void;
60
+ triggerBrowseFile(): void;
61
+ getUserDetails(): void;
62
+ uploadedFile(event: any, tabType?: any): void;
63
+ /**
64
+ * It takes a worksheet and a sheet name, and then it sets the data for different tabs.
65
+ * @param ws - XLSX.WorkSheet, sheet: string
66
+ * @param {string} sheet - string - the name of the sheet in the excel file
67
+ * @returns the value of the variable "responsibilityBulkUpload" which is an object.
68
+ */
69
+ setDataForDifferentTabs(ws: XLSX.WorkSheet, sheet: string): void;
70
+ /**
71
+ * If the bulkUpload object has a frequency object with a reports array, set the
72
+ * responsibilityBulkUpload to the frequency object and set the tabType to frequency. If not, check
73
+ * if the bulkUpload object has an ongoing object with a reports array, set the
74
+ * responsibilityBulkUpload to the ongoing object and set the tabType to ongoing. If not, check if
75
+ * the bulkUpload object has an onCompletion object with a reports array, set the
76
+ * responsibilityBulkUpload to the onCompletion object and set the tabType to onCompletion. If not,
77
+ * return true.
78
+ * </code>
79
+ * @param {any} data - any = {
80
+ * @returns a boolean value.
81
+ */
82
+ checkEmptyFile(data?: any): boolean;
83
+ compareWithCurrentDate(day: any, month: any): boolean;
84
+ isPastDate(day: any, month: any): boolean;
85
+ downloadTemplate(): void;
86
+ submitResponsibilityBulkUpload(): void;
87
+ returnIds(item: any, key: string): any;
88
+ reset(): void;
89
+ action(event: string): void;
90
+ closeSmiley(event: any): void;
91
+ viewResponsibilities(): void;
92
+ fileUpload(): void;
93
+ setOrganizationDetails(tempList: any): void;
94
+ /**
95
+ * It takes an event, which is a string, and then it sets the responsibilityBulkUpload variable to
96
+ * the value of the bulkUpload variable, which is an object, and then it accesses the property of
97
+ * that object that matches the event string.
98
+ *
99
+ * So if the event string is 'frequency', then the responsibilityBulkUpload variable will be set to
100
+ * the value of the frequency property of the bulkUpload object.
101
+ *
102
+ * If the event string is 'ongoing', then the responsibilityBulkUpload variable will be set to the
103
+ * value of the ongoing property of the bulkUpload object.
104
+ *
105
+ * If the event string is 'onCompletion', then the responsibilityBulkUpload variable will be set to the
106
+ * value of the onCompletion property of the bulkUpload object.
107
+ *
108
+ * If the event string is anything else, then the responsibilityBulkUpload variable will be set to
109
+ * the value of the frequency property of the bulkUpload object.
110
+ * @param {string} event - string - the event that is emitted from the child component (frequency | ongoing | onCompletion)
111
+ */
112
+ selectedTab(event: 'frequency' | 'ongoing' | 'onCompletion'): void;
113
+ /**
114
+ * It takes in a report, a tab type, and a boolean value. It then returns an object with a bunch of
115
+ * properties.
116
+ * </code>
117
+ * @param {any} report - any =&gt; the array of data
118
+ * @param {string} tabType - string - this is the type of tab that is selected.
119
+ * @param {boolean} isProgram - boolean
120
+ * @returns An object with the following properties:
121
+ */
122
+ setReportDetails(report: any, tabType: string, isProgram: boolean): any;
123
+ /**
124
+ * It takes a string, removes all whitespace, and returns the string
125
+ * @param {any} name - the name of the responsibility
126
+ * @returns the trimmedName variable.
127
+ */
128
+ checkValidResponsibilityName(name: any): any;
129
+ /**
130
+ * If the responsibility name is valid, and the assignee and assignor are not empty, then return
131
+ * true. Otherwise, return false
132
+ * @param {any} data - any - the data that is being passed in
133
+ * @returns A boolean value.
134
+ */
135
+ isValidData(data: any): boolean;
136
+ /**
137
+ * If the assignor is the same as the overseer or the NotifyOnFailure, or if the assignor is not set
138
+ * and the defaultOwner is the same as the overseer or the NotifyOnFailure, or if the assignee is the
139
+ * same as the reviewer, overseer, or NotifyOnFailure, or if the assignee is not set and the
140
+ * defaultOwner is the same as the overseer or the NotifyOnFailure, or if the reviewer is the same as
141
+ * the overseer or the NotifyOnFailure, or if the assignee is not set, then return false. Otherwise,
142
+ * return true
143
+ * @param {any} data - any - this is the data that is passed in from the form.
144
+ * @returns A boolean value.
145
+ */
146
+ isValidUsers(data: any): boolean;
147
+ /**
148
+ * It takes in a data object and returns an object with 4 boolean properties.
149
+ * The boolean properties are determined by the values of the data object.
150
+ * @param {any} data - any = {
151
+ * @returns {
152
+ * isValidAssignee: true,
153
+ * isValidAssignor: true,
154
+ * isValidReviewer: true,
155
+ * isValidOverseer: true
156
+ * }
157
+ */
158
+ validateDataWithProgram(data: any): any;
159
+ /**
160
+ * It takes two strings as arguments, and returns an object with three properties
161
+ * @param {string} programName - string -&gt; Name of the program
162
+ * @param {string} [chileProgram] - string =&gt; this is the name of the sub-program
163
+ * @returns {
164
+ * programId: 1,
165
+ * childProgramId: 2,
166
+ * categoryId: '1,2'
167
+ * }
168
+ */
169
+ getProgramId(programName: string, chileProgram?: string): any;
170
+ }
@@ -0,0 +1,6 @@
1
+ export declare class BulkUploadService {
2
+ constructor();
3
+ hasDataInList(data: any, dataStartIndex: number): boolean;
4
+ checkEmptyFile(data: any): boolean;
5
+ checkCorrectFile(data: any, headerIndex: number): boolean;
6
+ }
@@ -4,9 +4,14 @@ export declare class BulkResponsibilityViewComponent implements OnInit {
4
4
  fileName: any;
5
5
  defaultOwner: any;
6
6
  loader: boolean;
7
+ tabType: 'frequency' | 'ongoing' | 'onCompletion';
8
+ bulkUpload: any;
7
9
  submitResponsibilityBulkUpload: EventEmitter<any>;
8
10
  cancel: EventEmitter<any>;
11
+ selectedTab: EventEmitter<any>;
12
+ responsibilityType: string;
9
13
  finalResponsibilities: number;
14
+ isConfirmClickable: boolean;
10
15
  ngOnChanges(): void;
11
16
  ngOnInit(): void;
12
17
  submit(): void;
@@ -14,7 +14,7 @@ export declare class AddRiskService {
14
14
  downLoadFile(data: any, type: string, filename: string): string;
15
15
  base64ToArrayBuffer(base64: any): ArrayBufferLike;
16
16
  downloadTemplate(categoryId: string): import("rxjs").Observable<import("@angular/common/http").HttpEvent<Object>>;
17
- downloadResponsibilityTemplate(): import("rxjs").Observable<import("@angular/common/http").HttpEvent<Object>>;
17
+ downloadResponsibilityTemplate(version?: any): import("rxjs").Observable<import("@angular/common/http").HttpEvent<Object>>;
18
18
  addRisk(payload: any): import("rxjs").Observable<any>;
19
19
  addBulkRisk(payload: any[]): import("rxjs").Observable<any>;
20
20
  getRiskDetail(riskId: string): import("rxjs").Observable<any>;
@@ -1,5 +1,5 @@
1
1
  export declare class FrequencyBulkService {
2
2
  env: any;
3
3
  constructor();
4
- shortHand_freqCal(frequency: any, day: any, month: any, year?: any): string;
4
+ shortHand_freqCal(frequency: any, day: any, month: any, year?: any, dueDate?: any, ongoingValues?: any): string;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "2.6.94",
3
+ "version": "2.6.95",
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"