vcomply-workflow-engine 2.6.15 → 2.6.16

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 (45) hide show
  1. package/bundles/vcomply-workflow-engine.umd.js +227 -379
  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-risk/add-multiple-risk.component.js +1 -1
  5. package/esm2015/lib/formgroup/cs-checkbox-indeterminate/cs-checkbox-indeterminate.component.js +1 -1
  6. package/esm2015/lib/log-an-issue/log-an-issue.component.js +1 -1
  7. package/esm2015/lib/sharedComponents/assessment-editor/services/editor.service.js +1 -1
  8. package/esm2015/lib/sharedComponents/assessment-editor/services/validator.service.js +6 -4
  9. package/esm2015/lib/sharedComponents/assessment-editor/services/validator.service.ngsummary.json +1 -1
  10. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.js +3 -8
  11. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.ngfactory.js +10 -11
  12. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.ngsummary.json +1 -1
  13. package/esm2015/lib/sharedComponents/format-and-evidence/format-and-evidence.component.js +1 -1
  14. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.js +40 -218
  15. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.ngfactory.js +70 -79
  16. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.ngsummary.json +1 -1
  17. package/esm2015/lib/sharedComponents/risk-classification/risk-classification.component.js +1 -1
  18. package/esm2015/lib/ui-kit/formgroup/cs-checkbox-indeterminate/cs-checkbox-indeterminate.component.js +1 -1
  19. package/esm2015/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.js +1 -1
  20. package/esm2015/lib/workflow-assessment/workflow-assessment.component.js +1 -1
  21. package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +145 -110
  22. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngfactory.js +157 -184
  23. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngsummary.json +1 -1
  24. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.js +14 -3
  25. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +16 -13
  26. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngsummary.json +1 -1
  27. package/esm2015/lib/workflow-engine.module.ngfactory.js +1 -1
  28. package/esm2015/lib/workflow-policy/workflow-policy.component.js +1 -1
  29. package/esm2015/lib/workflow-program/create-program-ui/file-pill/file-pill.component.js +1 -1
  30. package/esm2015/lib/workflow-program/create-program-ui/form-field/form-field.component.js +1 -1
  31. package/esm2015/lib/workflow-program/create-program-ui/input-with-pill/input-with-pill.component.js +1 -1
  32. package/esm2015/lib/workflow-program/workflow-program.component.js +1 -1
  33. package/esm2015/lib/workflow-risk/workflow-risk.component.js +1 -1
  34. package/esm2015/lib/workflow-services/responsibility.service.js +3 -8
  35. package/esm2015/lib/workflow-survey-form/workflow-survey-form.component.js +1 -1
  36. package/fesm2015/vcomply-workflow-engine.js +222 -362
  37. package/fesm2015/vcomply-workflow-engine.js.map +1 -1
  38. package/lib/sharedComponents/assessment-editor/services/validator.service.d.ts +1 -0
  39. package/lib/sharedComponents/floating-bar/floating-bar.component.d.ts +0 -2
  40. package/lib/sharedComponents/program-listing/program-listing.component.d.ts +1 -53
  41. package/lib/workflow-compliance/workflow-compliance.component.d.ts +103 -15
  42. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -0
  43. package/lib/workflow-services/responsibility.service.d.ts +1 -1
  44. package/package.json +2 -2
  45. package/vcomply-workflow-engine.metadata.json +1 -1
@@ -28,4 +28,5 @@ export declare class ValidatorService {
28
28
  * @param choices Choice for which title should be checked
29
29
  */
30
30
  checkForSameTitleWithOther(questionDetails: any): boolean;
31
+ cloneByValue(value: any): any;
31
32
  }
@@ -15,8 +15,6 @@ export declare class FloatingBarComponent implements OnInit, OnChanges {
15
15
  selectedWorkflow: any;
16
16
  workflowPlaceHolder: any;
17
17
  mode: string;
18
- defaultSelected: any;
19
- set defaultSelectedValue(value: any);
20
18
  nonRemovableUsersList: any;
21
19
  removePosition: any;
22
20
  closeEvent: EventEmitter<any>;
@@ -9,16 +9,9 @@ export declare class ProgramListingComponent implements OnInit {
9
9
  programsList: any;
10
10
  selectedProgram: any;
11
11
  selectedCategories: any[];
12
- tempSelectedCategories: any;
13
- set getSelectedCategories(category: any);
14
12
  hideProgramsList: any;
15
- mode: string;
16
13
  searchProgram: any;
17
14
  searchCategory: any;
18
- preservedSelectedPrograms: any;
19
- preservedProgramsId: any;
20
- preservePrimaryProgram: any;
21
- set getLinkedProgram(program: any);
22
15
  previousSelectedValues: any;
23
16
  programData: programList;
24
17
  categoryData: categoryList;
@@ -37,13 +30,6 @@ export declare class ProgramListingComponent implements OnInit {
37
30
  others: number;
38
31
  };
39
32
  displayConfirmationMessage: boolean;
40
- tempPrimaryProgram: any;
41
- primaryConfirmationMessage: string;
42
- isPrimaryConfirmation: boolean;
43
- isUncheckedProgram: boolean;
44
- isPrimaryUnchecked: boolean;
45
- selectedProgramsDetail: any;
46
- selectedProgramsId: any;
47
33
  saveSelectedProgram: EventEmitter<any>;
48
34
  closeEvent: EventEmitter<any>;
49
35
  allCategories: any[];
@@ -53,28 +39,6 @@ export declare class ProgramListingComponent implements OnInit {
53
39
  handleSearch(event: any): void;
54
40
  categorySearch(event: any): void;
55
41
  selectProgram(event: any, program: any): void;
56
- /**
57
- * If the event is true, then push the program to the selectedProgramsDetail array. If the event is
58
- * false, then remove the program from the selectedProgramsDetail array.
59
- * @param {any} event - boolean
60
- * @param {any} program - any = {
61
- */
62
- updateSelectedPrograms(event: any, program: any): void;
63
- /**
64
- * If the currentProgram is set, then set the currentProgram to the program passed in, and set the
65
- * tempPrimaryProgram to the currentProgram.
66
- * If the currentProgram is not set, then set the currentProgram to the program passed in.
67
- * @param {any} event - any - the event that is triggered when the user clicks on the checkbox
68
- * @param {any} program - the program that is being selected
69
- */
70
- setPrimaryProgram(event: any, program: any): void;
71
- /**
72
- * If the user clicks "Yes" on the confirmation modal, then the function will remove the program from
73
- * the selectedProgramsDetail array and the selectedProgramsId array. If the user clicks "No" on the
74
- * confirmation modal, then the function will do nothing.
75
- * @param {boolean} event - boolean -&gt; this is the value of the checkbox
76
- */
77
- updatePrimaryProgram(event: boolean): void;
78
42
  selectAllCategories(value: boolean): void;
79
43
  checkCategoriesSelection(): "checked" | "unchecked" | "indeterminate";
80
44
  openCategories(): void;
@@ -90,21 +54,5 @@ export declare class ProgramListingComponent implements OnInit {
90
54
  save(): void;
91
55
  saveChanges(value: boolean): void;
92
56
  deleteEvent(event: any): void;
93
- getSelectedProgramCount(event?: boolean, programType?: number): void;
94
- /**
95
- * If the selectedProgram array has a length, then preserve the first element of the array as the
96
- * preservePrimaryProgram variable. Otherwise, set the preservePrimaryProgram variable to an empty
97
- * object.
98
- *
99
- * If the selectedProgramsId array has a length, then preserve the array as the preservedProgramsId
100
- * variable. Otherwise, set the preservedProgramsId variable to an empty array.
101
- *
102
- * If the selectedProgramsDetail array has a length, then preserve the array as the
103
- * preservedSelectedPrograms variable. Otherwise, set the preservedSelectedPrograms variable to an
104
- * empty array.
105
- *
106
- * If the selectedProgram array does not have a length, then set the selectedProgramsDetail array to
107
- * an empty array and the selectedProgramsId array to an empty array.
108
- */
109
- preservePreviousDetails(): void;
57
+ getSelectedProgramCount(): void;
110
58
  }
@@ -20,6 +20,12 @@ export declare class WorkflowComplianceComponent implements OnInit {
20
20
  frameworkDetails: Array<any>;
21
21
  isEntrust: boolean;
22
22
  set closeOnEsc(escapeCondition: boolean);
23
+ openedFrom: any;
24
+ selectedRC: number;
25
+ selectedProgram: any;
26
+ onRemovingCheckpoint: EventEmitter<any>;
27
+ isAssessmentDisabled: EventEmitter<any>;
28
+ assigneeTypeChange: EventEmitter<any>;
23
29
  pickerChanged: EventEmitter<any>;
24
30
  populateOption: EventEmitter<any>;
25
31
  hideElementsFromMoreOptions: EventEmitter<any>;
@@ -28,9 +34,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
28
34
  disconnectRefresh: EventEmitter<any>;
29
35
  checkpointCountUpdated: EventEmitter<any>;
30
36
  rcSelected: EventEmitter<any>;
31
- openedFrom: any;
32
- selectedRC: number;
33
- selectedProgram: any;
34
37
  scrollToBottom: boolean;
35
38
  description: EditorConfig;
36
39
  programPeopleList: any;
@@ -71,7 +74,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
71
74
  moreOptions: any;
72
75
  activeSelector: string;
73
76
  sideSelectorElements: any;
74
- displayList: {};
75
77
  focus: {
76
78
  responsibilityName: boolean;
77
79
  description: boolean;
@@ -127,8 +129,9 @@ export declare class WorkflowComplianceComponent implements OnInit {
127
129
  managePermission: boolean;
128
130
  checkpointCount: number;
129
131
  roleBasedPermissions: any;
130
- onRemovingCheckpoint: EventEmitter<any>;
131
- isAssessmentDisabled: EventEmitter<any>;
132
+ isGroupAssigned: boolean;
133
+ responsibilityData: any;
134
+ originalAssignee: any;
132
135
  whatInput: ElementRef;
133
136
  unSubscribeProgram: Subject<void>;
134
137
  constructor(authService: AuthService, responsibilityService: ResponsibilityService, frequencyService: FrequencyService, uiKitService: UiKitService, snackBar: SnackBarService, permission: AuthService, programService: ProgramsService);
@@ -161,10 +164,25 @@ export declare class WorkflowComplianceComponent implements OnInit {
161
164
  assignFromFramework(freqObj: any): void;
162
165
  refreshAllLists(): void;
163
166
  refreshListsWhileProgramSelected(): void;
164
- submitResponsibility(): any;
167
+ /**
168
+ * If the form is valid, then if the mode is EDIT, then set the organizationId and memberId to the
169
+ * authService values, and then call the entrustResponsibility function with the responsibilityForm as
170
+ * a parameter.
171
+ *
172
+ * If the mode is not EDIT, then call the entrustResponsibility function with the responsibilityForm
173
+ * as a parameter.
174
+ * @returns a boolean value.
175
+ */
176
+ submitResponsibility(): false | undefined;
177
+ /**
178
+ * If the responsibility name is empty, or the frequency is empty, or the assignees list is empty,
179
+ * then return false. Otherwise, return true.
180
+ */
165
181
  validateResponsibility(): boolean | undefined;
166
- responsibilityData: any;
167
182
  entrustResponsibility(entrustForm: any): void;
183
+ /**
184
+ * It resets the form.
185
+ */
168
186
  reset(): void;
169
187
  action(event: string): void;
170
188
  viewResponsibilities(): void;
@@ -173,20 +191,96 @@ export declare class WorkflowComplianceComponent implements OnInit {
173
191
  frequencyPopulation(event: any): void;
174
192
  frequencyData(event: any): void;
175
193
  checkBlank(data: string): string;
194
+ /**
195
+ * It takes a string and returns a string.
196
+ * @param {any} res - any = {
197
+ */
176
198
  getFrequencyPlaceholder(res: any): void;
199
+ /**
200
+ * It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
201
+ * details and then it gets the on completion of responsibility and sets the frequency placeholder to
202
+ * the frequency details and the report name.
203
+ * @param {any} frequencyDetails - [0] =&gt; "1"
204
+ * @param {number} reportId - number
205
+ */
177
206
  getOnCompletionOf(frequencyDetails: any, reportId: number): void;
207
+ /**
208
+ * "If the frequencyDetails[3] is 1, then set the frequencyPlaceholder to 'Daily by ' + frequencyTime,
209
+ * otherwise if frequencyDetails[3] is greater than 1, then set the frequencyPlaceholder to 'Every ' +
210
+ * parseInt(frequencyDetails[3]) + ' days by ' + frequencyTime."
211
+ * @param {any} frequencyDetails - [0, 0, 0, 1]
212
+ * @param {any} frequencyTime - "12:00 AM"
213
+ */
178
214
  getDailyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
215
+ /**
216
+ * It takes a string of comma separated numbers and returns a string of comma separated words.
217
+ *
218
+ * The function is called with a string of comma separated numbers, like this:
219
+ *
220
+ * getWeeklyPlaceholder(["1","2,3,4,5,6,7","1","1"], "10:00 AM")
221
+ *
222
+ * The function returns a string of comma separated words, like this:
223
+ *
224
+ * "Every Monday,Tuesday,Wednesday,Thursday,Friday,Saturday by 10:00 AM"</code>
225
+ * @param {any} frequencyDetails - ["1", "1,2,3,4,5", "", "1", ""]
226
+ * @param {any} frequencyTime - "10:00 AM"
227
+ */
179
228
  getWeeklyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
229
+ /**
230
+ * It takes a string of comma separated numbers, converts them to month names, and then adds them to a
231
+ * sentence.
232
+ * @param {any} frequencyDetails - ["1", "1", "1,2,3,4,5,6,7,8,9,10,11,12"]
233
+ * @param {any} frequencyTime - "10:00 AM"
234
+ */
180
235
  getMonthlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
236
+ /**
237
+ * If the frequencyDetails[1] is 1, 2, 3, 21, 22, 23, or greater than 3, then set the
238
+ * frequencyPlaceholder to a string that includes the frequencyDetails[1] and the frequencyDetails[2]
239
+ * and the frequencyTime.
240
+ * @param {any} frequencyDetails - ["3", "1", "1,2,3"]
241
+ * @param {any} frequencyTime - "10:00 AM"
242
+ */
181
243
  getQuarterlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
244
+ /**
245
+ * It takes a string of comma separated numbers and returns a string of comma separated month names.
246
+ * @param {any} frequencyDetails - ["1", "1", "1,2,3,4,5,6,7,8,9,10,11,12"]
247
+ * @param {any} frequencyTime - "10:00 AM"
248
+ */
182
249
  getBiannualPlaceholder(frequencyDetails: any, frequencyTime: any): void;
250
+ /**
251
+ * If the frequencyDetails[1] is less than 2, then the frequencyPlaceholder is set to the 1st, 2nd,
252
+ * 3rd, or nth of every month by frequencyTime.
253
+ *
254
+ * If the frequencyDetails[1] is greater than 1, then the frequencyPlaceholder is set to the 1st, 2nd,
255
+ * 3rd, or nth of every month, Interval: every yearSequence years by frequencyTime.
256
+ * @param {any} frequencyDetails - ["Yearly", "1", "1", "1"]
257
+ * @param {any} frequencyTime - "10:00 AM"
258
+ */
183
259
  getYearlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
260
+ /**
261
+ * It takes a frequencyDetails array and a frequencyTime array and returns a string.
262
+ * @param {any} frequencyDetails - [4,1,1,1]
263
+ */
184
264
  getRandomPlaceholder(frequencyDetails: any, frequencyTime: any): void;
265
+ /**
266
+ * "When the user clicks the edit button, the edit button is hidden and the input field is shown.
267
+ * When the user clicks the input field, the input field is hidden and the edit button is shown."
268
+ * @param {any} event - any - the event that triggered the function
269
+ */
185
270
  onEditWhat(event: any): void;
271
+ /**
272
+ *
273
+ * The function is called with a parameter and returns an array of strings.
274
+ * @param {any} [res] - is the response from the API
275
+ */
186
276
  getEditMoreOptions(res?: any): void;
187
277
  testFunction(): void;
188
278
  reviewerTypeChange(event: any): void;
189
279
  selectedSampleData(event: number): void;
280
+ /**
281
+ * It populates a list of assurance categories based on the test plan category selected.
282
+ * @param {any} testPlanCategory - any
283
+ */
190
284
  populateAssuranceList(testPlanCategory: any): void;
191
285
  checkInputValue(event: any): boolean;
192
286
  switchEnable(event: boolean): void;
@@ -204,11 +298,5 @@ export declare class WorkflowComplianceComponent implements OnInit {
204
298
  */
205
299
  postAssessment(event: any): void;
206
300
  setIsUploaded(event: any): void;
207
- checkDefaultProgramOnRemove(program: any): void;
208
- /**
209
- * It takes an array of numbers and returns an array of unique numbers.
210
- * @param {any} array - The array you want to get the unique values from.
211
- * @returns An array of unique values.
212
- */
213
- getUniqueIds(array: any): unknown[];
301
+ openAssigneeChangeConfirmation(event: any): void;
214
302
  }
@@ -110,4 +110,5 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
110
110
  onCheckpointSelection(event: number): void;
111
111
  onRcSelected(isRcSelected: boolean): void;
112
112
  fetchOrganizationDetails(): void;
113
+ assigneeTypeChange(): void;
113
114
  }
@@ -14,7 +14,7 @@ export declare class ResponsibilityService {
14
14
  getOrganizationPeople(params?: HttpParams): import("rxjs").Observable<any[]>;
15
15
  getAssignorsList(params?: HttpParams): import("rxjs").Observable<any[]>;
16
16
  getCategoriesList(): import("rxjs").Observable<any[]>;
17
- getProgramsList(params: HttpParams, ids?: any): import("rxjs").Observable<any[]>;
17
+ getProgramsList(params: HttpParams): import("rxjs").Observable<any[]>;
18
18
  getCategoriesUnderProgram(params: HttpParams): import("rxjs").Observable<any[]>;
19
19
  getAssurance(): import("rxjs").Observable<any[]>;
20
20
  getAssuranceForRequiresAudit(): import("rxjs").Observable<any[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "2.6.15",
3
+ "version": "2.6.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.0.1",
6
6
  "@angular/core": "^12.0.1"
@@ -22,4 +22,4 @@
22
22
  "typings": "vcomply-workflow-engine.d.ts",
23
23
  "metadata": "vcomply-workflow-engine.metadata.json",
24
24
  "sideEffects": false
25
- }
25
+ }