vcomply-workflow-engine 2.6.94 → 2.6.96
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/bundles/vcomply-workflow-engine.umd.js +23118 -23475
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.js +11 -4
- package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.ngfactory.js +28 -40
- package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.ngsummary.json +1 -1
- package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.js +177 -0
- package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.ngfactory.js +100 -0
- package/esm2015/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.ngsummary.json +1 -0
- package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.js +1295 -0
- package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.ngfactory.js +70 -0
- package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.ngsummary.json +1 -0
- package/esm2015/lib/formgroup/select/cs-select/cs-select.component.js +2 -2
- package/esm2015/lib/formgroup/select/cs-select/cs-select.component.ngfactory.js +3 -3
- package/esm2015/lib/more-option/more-option.component.js +2 -11
- package/esm2015/lib/pipes/search.pipe.js +5 -5
- package/esm2015/lib/services/bulk-upload.service.js +43 -0
- package/esm2015/lib/services/bulk-upload.service.ngsummary.json +1 -0
- package/esm2015/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.js +18 -5
- package/esm2015/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.ngfactory.js +520 -30
- package/esm2015/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.ngsummary.json +1 -1
- package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.js +2 -2
- package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +7 -7
- package/esm2015/lib/workflow-engine.module.js +5 -23
- package/esm2015/lib/workflow-engine.module.ngfactory.js +1 -1
- package/esm2015/lib/workflow-program/create-program-ui/pipes/search.pipe.js +2 -2
- package/esm2015/lib/workflow-risk/workflow-risk.component.js +13 -348
- package/esm2015/lib/workflow-risk/workflow-risk.component.ngfactory.js +112 -170
- package/esm2015/lib/workflow-risk/workflow-risk.component.ngsummary.json +1 -1
- package/esm2015/lib/workflow-services/add-risk.service.js +5 -5
- package/esm2015/lib/workflow-services/frequency.service.js +41 -12
- package/esm2015/vcomply-workflow-engine.js +194 -202
- package/esm2015/vcomply-workflow-engine.ngsummary.json +1 -1
- package/fesm2015/vcomply-workflow-engine.js +22012 -22361
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/lib/add-multiple-responsibility/add-multiple-responsibility.component.d.ts +2 -0
- package/lib/add-multiple-responsibility-container/add-multiple-responsibility-container.component.d.ts +34 -0
- package/lib/{sharedComponents/frequency-dialog/frequency-dialog-annual/frequency-dialog-annual.component.ngfactory.d.ts → add-multiple-responsibility-container/add-multiple-responsibility-container.component.ngfactory.d.ts} +0 -0
- package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts +170 -0
- package/lib/{sharedComponents/frequency-dialog/frequency-dialog-biannual/frequency-dialog-biannual.component.ngfactory.d.ts → add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.ngfactory.d.ts} +0 -0
- package/lib/services/bulk-upload.service.d.ts +6 -0
- package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts +5 -0
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -77
- package/lib/workflow-services/add-risk.service.d.ts +1 -1
- package/lib/workflow-services/frequency.service.d.ts +1 -1
- package/package.json +1 -1
- package/vcomply-workflow-engine.d.ts +193 -201
- package/vcomply-workflow-engine.metadata.json +1 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-annual/frequency-dialog-annual.component.js +0 -210
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-annual/frequency-dialog-annual.component.ngfactory.js +0 -39
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-annual/frequency-dialog-annual.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-biannual/frequency-dialog-biannual.component.js +0 -185
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-biannual/frequency-dialog-biannual.component.ngfactory.js +0 -36
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-biannual/frequency-dialog-biannual.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-checkbox-list/frequency-dialog-checkbox-list.component.js +0 -26
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-checkbox-list/frequency-dialog-checkbox-list.component.ngfactory.js +0 -25
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-checkbox-list/frequency-dialog-checkbox-list.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-container/frequency-dialog-container.component.js +0 -287
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-container/frequency-dialog-container.component.ngfactory.js +0 -80
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-container/frequency-dialog-container.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-due-date/frequency-dialog-due-date.component.js +0 -57
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-due-date/frequency-dialog-due-date.component.ngfactory.js +0 -42
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-due-date/frequency-dialog-due-date.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-monthly/frequency-dialog-monthly.component.js +0 -195
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-monthly/frequency-dialog-monthly.component.ngfactory.js +0 -36
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-monthly/frequency-dialog-monthly.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-one-time/frequency-dialog-one-time.component.js +0 -136
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-one-time/frequency-dialog-one-time.component.ngfactory.js +0 -79
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-one-time/frequency-dialog-one-time.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-quarterly/frequency-dialog-quarterly.component.js +0 -179
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-quarterly/frequency-dialog-quarterly.component.ngfactory.js +0 -36
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-quarterly/frequency-dialog-quarterly.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-radio-list/frequency-dialog-radio-list.component.js +0 -31
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-radio-list/frequency-dialog-radio-list.component.ngfactory.js +0 -24
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-radio-list/frequency-dialog-radio-list.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-top/frequency-dialog-top.component.js +0 -102
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-top/frequency-dialog-top.component.ngfactory.js +0 -99
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-top/frequency-dialog-top.component.ngsummary.json +0 -1
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-weekly/frequency-dialog-weekly.component.js +0 -163
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-weekly/frequency-dialog-weekly.component.ngfactory.js +0 -36
- package/esm2015/lib/sharedComponents/frequency-dialog/frequency-dialog-weekly/frequency-dialog-weekly.component.ngsummary.json +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-annual/frequency-dialog-annual.component.d.ts +0 -37
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-biannual/frequency-dialog-biannual.component.d.ts +0 -35
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-checkbox-list/frequency-dialog-checkbox-list.component.d.ts +0 -9
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-checkbox-list/frequency-dialog-checkbox-list.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-container/frequency-dialog-container.component.d.ts +0 -31
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-container/frequency-dialog-container.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-due-date/frequency-dialog-due-date.component.d.ts +0 -16
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-due-date/frequency-dialog-due-date.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-monthly/frequency-dialog-monthly.component.d.ts +0 -33
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-monthly/frequency-dialog-monthly.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-one-time/frequency-dialog-one-time.component.d.ts +0 -32
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-one-time/frequency-dialog-one-time.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-quarterly/frequency-dialog-quarterly.component.d.ts +0 -32
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-quarterly/frequency-dialog-quarterly.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-radio-list/frequency-dialog-radio-list.component.d.ts +0 -10
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-radio-list/frequency-dialog-radio-list.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-top/frequency-dialog-top.component.d.ts +0 -22
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-top/frequency-dialog-top.component.ngfactory.d.ts +0 -1
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-weekly/frequency-dialog-weekly.component.d.ts +0 -30
- package/lib/sharedComponents/frequency-dialog/frequency-dialog-weekly/frequency-dialog-weekly.component.ngfactory.d.ts +0 -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
|
+
}
|
|
File without changes
|
package/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.d.ts
ADDED
|
@@ -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 => 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 -> Name of the program
|
|
162
|
+
* @param {string} [chileProgram] - string => 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
|
+
}
|
|
File without changes
|
package/lib/sharedComponents/bulk-responsibility-view/bulk-responsibility-view.component.d.ts
CHANGED
|
@@ -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;
|
|
@@ -2,7 +2,6 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { EditorConfig } from 'vcomply-editor';
|
|
3
3
|
import { Configurations } from '../configurations';
|
|
4
4
|
import { CategoryList } from '../interfaces/categoryList';
|
|
5
|
-
import { FrequencyService } from '../sharedComponents/frequency/frequency.service';
|
|
6
5
|
import { SnackBarService } from '../ui-kit/snack-bar/snack-bar.service';
|
|
7
6
|
import { AddRiskService } from '../workflow-services/add-risk.service';
|
|
8
7
|
import { AuthService } from '../workflow-services/auth.service';
|
|
@@ -12,7 +11,6 @@ export declare class WorkflowRiskComponent implements OnInit {
|
|
|
12
11
|
private authService;
|
|
13
12
|
private uiKitService;
|
|
14
13
|
private snackBar;
|
|
15
|
-
private frequencyService;
|
|
16
14
|
responsibilityCentersList: any;
|
|
17
15
|
selectedResponsibilityCenters: any;
|
|
18
16
|
mitigationDetails: any;
|
|
@@ -60,20 +58,11 @@ export declare class WorkflowRiskComponent implements OnInit {
|
|
|
60
58
|
categoryListLoaded: boolean;
|
|
61
59
|
rcListLoaded: boolean;
|
|
62
60
|
submitted: boolean;
|
|
63
|
-
frequencyDetails: {
|
|
64
|
-
frequency: string;
|
|
65
|
-
started_at: string;
|
|
66
|
-
frequency_time: string;
|
|
67
|
-
remind_before_days: number;
|
|
68
|
-
};
|
|
69
|
-
frequencyPlaceholder: string;
|
|
70
|
-
shortMonth: Array<string>;
|
|
71
61
|
settingsInfo: any;
|
|
72
62
|
loader: boolean;
|
|
73
63
|
activeSelector: string;
|
|
74
64
|
currentTimeStamp: number;
|
|
75
|
-
|
|
76
|
-
constructor(riskService: AddRiskService, authService: AuthService, uiKitService: UiKitService, snackBar: SnackBarService, frequencyService: FrequencyService, config?: Configurations);
|
|
65
|
+
constructor(riskService: AddRiskService, authService: AuthService, uiKitService: UiKitService, snackBar: SnackBarService, config?: Configurations);
|
|
77
66
|
description: EditorConfig;
|
|
78
67
|
mitigationDescriptionPlan: EditorConfig;
|
|
79
68
|
ngOnInit(): void;
|
|
@@ -115,69 +104,4 @@ export declare class WorkflowRiskComponent implements OnInit {
|
|
|
115
104
|
redirectToReported(): void;
|
|
116
105
|
checkDescription(): void;
|
|
117
106
|
checkMitigationPlan(): void;
|
|
118
|
-
frequencyData(event: any): void;
|
|
119
|
-
getFrequencyPlaceholder(res: any): void;
|
|
120
|
-
/**
|
|
121
|
-
* It takes a frequencyDetails array and a frequencyTime string and returns a frequencyPlaceholder
|
|
122
|
-
* string.
|
|
123
|
-
* @param {any} frequencyDetails - ["1", "1,2,3,4,5", "1", "1", "1", "1", "1", "1", "1", "1", "1",
|
|
124
|
-
* "1", "1", "1", "1", "1", "1", "
|
|
125
|
-
* @param {any} frequencyTime - "10:00 AM"
|
|
126
|
-
*/
|
|
127
|
-
getWeeklyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
128
|
-
/**
|
|
129
|
-
* It takes a string of comma separated numbers and returns a string of comma separated month names.
|
|
130
|
-
* @param {any} frequencyDetails - ["1", "1", "1,2,3,4,5,6,7,8,9,10,11,12"]
|
|
131
|
-
* @param {any} frequencyTime - "10:00 AM"
|
|
132
|
-
*/
|
|
133
|
-
getMonthlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
134
|
-
/**
|
|
135
|
-
* If the frequencyDetails[1] is less than 2, then the frequencyPlaceholder is set to the 1st, 2nd,
|
|
136
|
-
* 3rd, or nth of every month by frequencyTime.
|
|
137
|
-
*
|
|
138
|
-
* If the frequencyDetails[1] is greater than 1, then the frequencyPlaceholder is set to the 1st,
|
|
139
|
-
* 2nd, 3rd, or nth of every month, Interval: every yearSequence years by frequencyTime.
|
|
140
|
-
*
|
|
141
|
-
* I'm trying to write a test that will test the above function.
|
|
142
|
-
*
|
|
143
|
-
* Here's what I have so far:
|
|
144
|
-
* @param {any} frequencyDetails - [0] = "Yearly"
|
|
145
|
-
* @param {any} frequencyTime - "10:00 AM"
|
|
146
|
-
*/
|
|
147
|
-
getYearlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
148
|
-
/**
|
|
149
|
-
* If the frequencyDetails[1] is 1, 2, 3, 21, 22, 23, or greater than 3, then set the
|
|
150
|
-
* frequencyPlaceholder to a string that includes the frequencyDetails[1] and the frequencyTime.
|
|
151
|
-
* @param {any} frequencyDetails - ["3", "1", "1,2,3"]
|
|
152
|
-
* @param {any} frequencyTime - "10:00 AM"
|
|
153
|
-
*/
|
|
154
|
-
getQuarterlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
155
|
-
/**
|
|
156
|
-
* It takes a string of comma separated numbers and returns a string of comma separated month names.
|
|
157
|
-
* @param {any} frequencyDetails - ["1", "1", "1,2,3,4,5,6,7,8,9,10,11,12"]
|
|
158
|
-
* @param {any} frequencyTime - "10:00 AM"
|
|
159
|
-
*/
|
|
160
|
-
getBiannualPlaceholder(frequencyDetails: any, frequencyTime: any): void;
|
|
161
|
-
/**
|
|
162
|
-
* It takes an event object, and if it exists, it creates a new object with the same properties as
|
|
163
|
-
* the event object, and assigns it to the frequencyDetails property.
|
|
164
|
-
*
|
|
165
|
-
* If the event object is undefined, then the frequencyDetails property will be undefined.
|
|
166
|
-
*
|
|
167
|
-
* If the event object is null, then the frequencyDetails property will be null.
|
|
168
|
-
*
|
|
169
|
-
* If the event object is an empty object, then the frequencyDetails property will be an empty
|
|
170
|
-
* object.
|
|
171
|
-
*
|
|
172
|
-
* If the event object is an object with properties, then the frequencyDetails property will be an
|
|
173
|
-
* object with the same properties.
|
|
174
|
-
*
|
|
175
|
-
* If the event object is an object with properties, but some of those properties are undefined, then
|
|
176
|
-
* the frequencyDetails property will be an object with the same properties, but some of those
|
|
177
|
-
* properties will be undefined.
|
|
178
|
-
*
|
|
179
|
-
* If the event object is an object with properties, but some of those properties are null, then the
|
|
180
|
-
* @param {any} event - any = {
|
|
181
|
-
*/
|
|
182
|
-
frequencyDataPopulate(event: any): void;
|
|
183
107
|
}
|
|
@@ -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