vcomply-workflow-engine 2.6.20 → 2.6.22

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 (58) hide show
  1. package/bundles/vcomply-workflow-engine.umd.js +687 -424
  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/confirmation-alert/confirmation-alert.component.js +3 -3
  6. package/esm2015/lib/confirmation-alert/confirmation-alert.component.ngfactory.js +4 -11
  7. package/esm2015/lib/formgroup/cs-checkbox-indeterminate/cs-checkbox-indeterminate.component.js +1 -1
  8. package/esm2015/lib/log-an-issue/log-an-issue.component.js +1 -1
  9. package/esm2015/lib/sharedComponents/assessment-editor/services/editor.service.js +1 -1
  10. package/esm2015/lib/sharedComponents/assessment-editor/services/validator.service.js +4 -6
  11. package/esm2015/lib/sharedComponents/assessment-editor/services/validator.service.ngsummary.json +1 -1
  12. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.js +8 -3
  13. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.ngfactory.js +4 -3
  14. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.ngsummary.json +1 -1
  15. package/esm2015/lib/sharedComponents/format-and-evidence/format-and-evidence.component.js +1 -1
  16. package/esm2015/lib/sharedComponents/pipes/spaceTrim.pipe.js +14 -0
  17. package/esm2015/lib/sharedComponents/pipes/spaceTrim.pipe.ngsummary.json +1 -0
  18. package/esm2015/lib/sharedComponents/program-listing/program-list-model.js +1 -1
  19. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.js +289 -45
  20. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.ngfactory.js +90 -74
  21. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.ngsummary.json +1 -1
  22. package/esm2015/lib/sharedComponents/risk-classification/risk-classification.component.js +1 -1
  23. package/esm2015/lib/ui-kit/formgroup/cs-checkbox-indeterminate/cs-checkbox-indeterminate.component.js +1 -1
  24. package/esm2015/lib/workflow-assessment/import-an-assessment/import-an-assessment.component.js +1 -1
  25. package/esm2015/lib/workflow-assessment/workflow-assessment.component.js +1 -1
  26. package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +123 -146
  27. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngfactory.js +88 -60
  28. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngsummary.json +1 -1
  29. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.js +3 -14
  30. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +13 -16
  31. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngsummary.json +1 -1
  32. package/esm2015/lib/workflow-engine.module.js +4 -2
  33. package/esm2015/lib/workflow-engine.module.ngfactory.js +1 -1
  34. package/esm2015/lib/workflow-policy/workflow-policy.component.js +1 -1
  35. package/esm2015/lib/workflow-program/create-program-ui/file-pill/file-pill.component.js +1 -1
  36. package/esm2015/lib/workflow-program/create-program-ui/form-field/form-field.component.js +1 -1
  37. package/esm2015/lib/workflow-program/create-program-ui/input-with-pill/input-with-pill.component.js +1 -1
  38. package/esm2015/lib/workflow-program/workflow-program.component.js +1 -1
  39. package/esm2015/lib/workflow-risk/workflow-risk.component.js +3 -3
  40. package/esm2015/lib/workflow-risk/workflow-risk.component.ngfactory.js +39 -38
  41. package/esm2015/lib/workflow-services/responsibility.service.js +14 -3
  42. package/esm2015/lib/workflow-services/responsibility.service.ngsummary.json +1 -1
  43. package/esm2015/lib/workflow-survey-form/workflow-survey-form.component.js +1 -1
  44. package/esm2015/vcomply-workflow-engine.js +189 -188
  45. package/esm2015/vcomply-workflow-engine.ngsummary.json +1 -1
  46. package/fesm2015/vcomply-workflow-engine.js +471 -233
  47. package/fesm2015/vcomply-workflow-engine.js.map +1 -1
  48. package/lib/sharedComponents/assessment-editor/services/validator.service.d.ts +0 -1
  49. package/lib/sharedComponents/floating-bar/floating-bar.component.d.ts +2 -0
  50. package/lib/sharedComponents/pipes/spaceTrim.pipe.d.ts +4 -0
  51. package/lib/sharedComponents/program-listing/program-list-model.d.ts +2 -0
  52. package/lib/sharedComponents/program-listing/program-listing.component.d.ts +61 -1
  53. package/lib/workflow-compliance/workflow-compliance.component.d.ts +16 -103
  54. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +0 -1
  55. package/lib/workflow-services/responsibility.service.d.ts +2 -1
  56. package/package.json +2 -2
  57. package/vcomply-workflow-engine.d.ts +188 -187
  58. package/vcomply-workflow-engine.metadata.json +1 -1
@@ -28,5 +28,4 @@ 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;
32
31
  }
@@ -15,6 +15,8 @@ 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);
18
20
  nonRemovableUsersList: any;
19
21
  removePosition: any;
20
22
  closeEvent: EventEmitter<any>;
@@ -0,0 +1,4 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ export declare class SpaceTrimPipe implements PipeTransform {
3
+ transform(value: any, ...args: any[]): any;
4
+ }
@@ -13,6 +13,8 @@ export interface programList {
13
13
  SelectedOthersProgramsCount: number;
14
14
  SelectedRegulationProgramsCount: number;
15
15
  SelectedStandardProgramsCount: number;
16
+ AllViewOnlyProgramCount?: number;
17
+ AllProgramsCount?: number;
16
18
  }
17
19
  export interface categoryList {
18
20
  data: any[];
@@ -8,12 +8,23 @@ export declare class ProgramListingComponent implements OnInit {
8
8
  loader: boolean;
9
9
  programsList: any;
10
10
  selectedProgram: any;
11
+ openedFrom: string;
12
+ viewOnlyProgramsCategoryId: any[];
11
13
  selectedCategories: any[];
14
+ tempSelectedCategories: any;
15
+ set getSelectedCategories(category: any);
16
+ responsibilityId: string;
12
17
  hideProgramsList: any;
18
+ mode: string;
13
19
  searchProgram: any;
14
20
  searchCategory: any;
21
+ preservedSelectedPrograms: any;
22
+ preservedProgramsId: any;
23
+ preservePrimaryProgram: any;
24
+ set getLinkedProgram(program: any);
15
25
  previousSelectedValues: any;
16
26
  programData: programList;
27
+ programTabDataCount: any;
17
28
  categoryData: categoryList;
18
29
  showCategories: boolean;
19
30
  currentProgram: any;
@@ -30,6 +41,14 @@ export declare class ProgramListingComponent implements OnInit {
30
41
  others: number;
31
42
  };
32
43
  displayConfirmationMessage: boolean;
44
+ tempPrimaryProgram: any;
45
+ primaryConfirmationMessage: string;
46
+ isPrimaryConfirmation: boolean;
47
+ isUncheckedProgram: boolean;
48
+ isPrimaryUnchecked: boolean;
49
+ selectedProgramsDetail: any;
50
+ selectedProgramsId: any;
51
+ programCountLoader: boolean;
33
52
  saveSelectedProgram: EventEmitter<any>;
34
53
  closeEvent: EventEmitter<any>;
35
54
  allCategories: any[];
@@ -39,6 +58,28 @@ export declare class ProgramListingComponent implements OnInit {
39
58
  handleSearch(event: any): void;
40
59
  categorySearch(event: any): void;
41
60
  selectProgram(event: any, program: any): void;
61
+ /**
62
+ * If the event is true, then push the program to the selectedProgramsDetail array. If the event is
63
+ * false, then remove the program from the selectedProgramsDetail array.
64
+ * @param {any} event - boolean
65
+ * @param {any} program - any = {
66
+ */
67
+ updateSelectedPrograms(event: any, program: any): void;
68
+ /**
69
+ * If the currentProgram is set, then set the currentProgram to the program passed in, and set the
70
+ * tempPrimaryProgram to the currentProgram.
71
+ * If the currentProgram is not set, then set the currentProgram to the program passed in.
72
+ * @param {any} event - any - the event that is triggered when the user clicks on the checkbox
73
+ * @param {any} program - the program that is being selected
74
+ */
75
+ setPrimaryProgram(event: any, program: any): void;
76
+ /**
77
+ * If the user clicks "Yes" on the confirmation modal, then the function will remove the program from
78
+ * the selectedProgramsDetail array and the selectedProgramsId array. If the user clicks "No" on the
79
+ * confirmation modal, then the function will do nothing.
80
+ * @param {boolean} event - boolean -&gt; this is the value of the checkbox
81
+ */
82
+ updatePrimaryProgram(event: boolean): void;
42
83
  selectAllCategories(value: boolean): void;
43
84
  checkCategoriesSelection(): "checked" | "unchecked" | "indeterminate";
44
85
  openCategories(): void;
@@ -46,6 +87,7 @@ export declare class ProgramListingComponent implements OnInit {
46
87
  changeTab(type: 'regulations' | 'standards' | 'internal_controls' | 'others'): void;
47
88
  changePage(event: any, type: 'category' | 'program'): void;
48
89
  getProgramsList(paramsObject?: any): void;
90
+ getProgramsCount(paramsObject?: any): void;
49
91
  getCategoriesList(queryObject?: any): void;
50
92
  saveProgram(): void;
51
93
  selectCategory(mode: any, category: any): void;
@@ -54,5 +96,23 @@ export declare class ProgramListingComponent implements OnInit {
54
96
  save(): void;
55
97
  saveChanges(value: boolean): void;
56
98
  deleteEvent(event: any): void;
57
- getSelectedProgramCount(): void;
99
+ getSelectedProgramCount(event?: boolean, programType?: number): void;
100
+ /**
101
+ * If the selectedProgram array has a length, then preserve the first element of the array as the
102
+ * preservePrimaryProgram variable. Otherwise, set the preservePrimaryProgram variable to an empty
103
+ * object.
104
+ *
105
+ * If the selectedProgramsId array has a length, then preserve the array as the preservedProgramsId
106
+ * variable. Otherwise, set the preservedProgramsId variable to an empty array.
107
+ *
108
+ * If the selectedProgramsDetail array has a length, then preserve the array as the
109
+ * preservedSelectedPrograms variable. Otherwise, set the preservedSelectedPrograms variable to an
110
+ * empty array.
111
+ *
112
+ * If the selectedProgram array does not have a length, then set the selectedProgramsDetail array to
113
+ * an empty array and the selectedProgramsId array to an empty array.
114
+ */
115
+ preservePreviousDetails(): void;
116
+ programSubTab: 'PROGRAMS' | 'OTHER_PROGRAMS';
117
+ setProgramSubTab(tab: 'PROGRAMS' | 'OTHER_PROGRAMS'): void;
58
118
  }
@@ -20,12 +20,6 @@ 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>;
29
23
  pickerChanged: EventEmitter<any>;
30
24
  populateOption: EventEmitter<any>;
31
25
  hideElementsFromMoreOptions: EventEmitter<any>;
@@ -34,6 +28,10 @@ export declare class WorkflowComplianceComponent implements OnInit {
34
28
  disconnectRefresh: EventEmitter<any>;
35
29
  checkpointCountUpdated: EventEmitter<any>;
36
30
  rcSelected: EventEmitter<any>;
31
+ openedFrom: any;
32
+ selectedRC: number;
33
+ selectedProgram: any;
34
+ set setSelectedProgram(program: any);
37
35
  scrollToBottom: boolean;
38
36
  description: EditorConfig;
39
37
  programPeopleList: any;
@@ -74,6 +72,7 @@ export declare class WorkflowComplianceComponent implements OnInit {
74
72
  moreOptions: any;
75
73
  activeSelector: string;
76
74
  sideSelectorElements: any;
75
+ displayList: {};
77
76
  focus: {
78
77
  responsibilityName: boolean;
79
78
  description: boolean;
@@ -129,9 +128,8 @@ export declare class WorkflowComplianceComponent implements OnInit {
129
128
  managePermission: boolean;
130
129
  checkpointCount: number;
131
130
  roleBasedPermissions: any;
132
- isGroupAssigned: boolean;
133
- responsibilityData: any;
134
- originalAssignee: any;
131
+ onRemovingCheckpoint: EventEmitter<any>;
132
+ isAssessmentDisabled: EventEmitter<any>;
135
133
  whatInput: ElementRef;
136
134
  unSubscribeProgram: Subject<void>;
137
135
  constructor(authService: AuthService, responsibilityService: ResponsibilityService, frequencyService: FrequencyService, uiKitService: UiKitService, snackBar: SnackBarService, permission: AuthService, programService: ProgramsService);
@@ -164,25 +162,10 @@ export declare class WorkflowComplianceComponent implements OnInit {
164
162
  assignFromFramework(freqObj: any): void;
165
163
  refreshAllLists(): void;
166
164
  refreshListsWhileProgramSelected(): void;
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
+ submitResponsibility(): any;
181
166
  validateResponsibility(): boolean | undefined;
167
+ responsibilityData: any;
182
168
  entrustResponsibility(entrustForm: any): void;
183
- /**
184
- * It resets the form.
185
- */
186
169
  reset(): void;
187
170
  action(event: string): void;
188
171
  viewResponsibilities(): void;
@@ -191,96 +174,20 @@ export declare class WorkflowComplianceComponent implements OnInit {
191
174
  frequencyPopulation(event: any): void;
192
175
  frequencyData(event: any): void;
193
176
  checkBlank(data: string): string;
194
- /**
195
- * It takes a string and returns a string.
196
- * @param {any} res - any = {
197
- */
198
177
  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
- */
206
178
  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
- */
214
179
  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
- */
228
180
  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
- */
235
181
  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
- */
243
182
  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
- */
249
183
  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
- */
259
184
  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
- */
264
185
  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
- */
270
186
  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
- */
276
187
  getEditMoreOptions(res?: any): void;
277
188
  testFunction(): void;
278
189
  reviewerTypeChange(event: any): void;
279
190
  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
- */
284
191
  populateAssuranceList(testPlanCategory: any): void;
285
192
  checkInputValue(event: any): boolean;
286
193
  switchEnable(event: boolean): void;
@@ -298,5 +205,11 @@ export declare class WorkflowComplianceComponent implements OnInit {
298
205
  */
299
206
  postAssessment(event: any): void;
300
207
  setIsUploaded(event: any): void;
301
- openAssigneeChangeConfirmation(event: any): void;
208
+ checkDefaultProgramOnRemove(program: any): void;
209
+ /**
210
+ * It takes an array of numbers and returns an array of unique numbers.
211
+ * @param {any} array - The array you want to get the unique values from.
212
+ * @returns An array of unique values.
213
+ */
214
+ getUniqueIds(array: any): unknown[];
302
215
  }
@@ -110,5 +110,4 @@ 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;
114
113
  }
@@ -14,7 +14,8 @@ 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): import("rxjs").Observable<any[]>;
17
+ getProgramsList(params: HttpParams, ids?: any): import("rxjs").Observable<any[]>;
18
+ getProgramsListCount(params: HttpParams, ids?: any): import("rxjs").Observable<any[]>;
18
19
  getCategoriesUnderProgram(params: HttpParams): import("rxjs").Observable<any[]>;
19
20
  getAssurance(): import("rxjs").Observable<any[]>;
20
21
  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.20",
3
+ "version": "2.6.22",
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
+ }