vcomply-workflow-engine 2.6.21 → 2.6.23

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 (50) hide show
  1. package/bundles/vcomply-workflow-engine.umd.js +662 -293
  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/floating-bar/floating-bar.component.js +8 -3
  8. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.ngfactory.js +4 -3
  9. package/esm2015/lib/sharedComponents/floating-bar/floating-bar.component.ngsummary.json +1 -1
  10. package/esm2015/lib/sharedComponents/format-and-evidence/format-and-evidence.component.js +1 -1
  11. package/esm2015/lib/sharedComponents/pipes/spaceTrim.pipe.js +14 -0
  12. package/esm2015/lib/sharedComponents/pipes/spaceTrim.pipe.ngsummary.json +1 -0
  13. package/esm2015/lib/sharedComponents/program-listing/program-list-model.js +1 -1
  14. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.js +289 -45
  15. package/esm2015/lib/sharedComponents/program-listing/program-listing.component.ngfactory.js +90 -74
  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 +108 -40
  22. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngfactory.js +149 -116
  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 +1 -1
  25. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +2 -2
  26. package/esm2015/lib/workflow-engine.module.js +4 -2
  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 +3 -3
  34. package/esm2015/lib/workflow-risk/workflow-risk.component.ngfactory.js +39 -38
  35. package/esm2015/lib/workflow-services/responsibility.service.js +14 -3
  36. package/esm2015/lib/workflow-services/responsibility.service.ngsummary.json +1 -1
  37. package/esm2015/lib/workflow-survey-form/workflow-survey-form.component.js +1 -1
  38. package/esm2015/vcomply-workflow-engine.js +189 -188
  39. package/esm2015/vcomply-workflow-engine.ngsummary.json +1 -1
  40. package/fesm2015/vcomply-workflow-engine.js +450 -108
  41. package/fesm2015/vcomply-workflow-engine.js.map +1 -1
  42. package/lib/sharedComponents/floating-bar/floating-bar.component.d.ts +2 -0
  43. package/lib/sharedComponents/pipes/spaceTrim.pipe.d.ts +4 -0
  44. package/lib/sharedComponents/program-listing/program-list-model.d.ts +2 -0
  45. package/lib/sharedComponents/program-listing/program-listing.component.d.ts +61 -1
  46. package/lib/workflow-compliance/workflow-compliance.component.d.ts +14 -6
  47. package/lib/workflow-services/responsibility.service.d.ts +2 -1
  48. package/package.json +2 -2
  49. package/vcomply-workflow-engine.d.ts +188 -187
  50. package/vcomply-workflow-engine.metadata.json +1 -1
@@ -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,13 @@ 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);
35
+ onRemovingCheckpoint: EventEmitter<any>;
36
+ isAssessmentDisabled: EventEmitter<any>;
37
+ assigneeTypeChange: EventEmitter<any>;
37
38
  scrollToBottom: boolean;
38
39
  description: EditorConfig;
39
40
  programPeopleList: any;
@@ -298,5 +299,12 @@ export declare class WorkflowComplianceComponent implements OnInit {
298
299
  */
299
300
  postAssessment(event: any): void;
300
301
  setIsUploaded(event: any): void;
302
+ checkDefaultProgramOnRemove(program: any): void;
303
+ /**
304
+ * It takes an array of numbers and returns an array of unique numbers.
305
+ * @param {any} array - The array you want to get the unique values from.
306
+ * @returns An array of unique values.
307
+ */
308
+ getUniqueIds(array: any): unknown[];
301
309
  openAssigneeChangeConfirmation(event: any): void;
302
310
  }
@@ -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.21",
3
+ "version": "2.6.23",
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
+ }