vcomply-workflow-engine 2.4.78 → 2.4.81

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 (32) hide show
  1. package/bundles/vcomply-workflow-engine.umd.js +139 -43
  2. package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
  3. package/esm2015/lib/log-an-issue/log-an-issue.component.ngfactory.js +6 -6
  4. package/esm2015/lib/sharedComponents/assessment-editor/components/add-page-details/add-page-details.component.ngfactory.js +4 -4
  5. package/esm2015/lib/sharedComponents/assessment-editor/components/add-segment-popup/add-segment-popup.component.ngfactory.js +4 -4
  6. package/esm2015/lib/sharedComponents/assessment-editor/components/preview/preview.module.ngfactory.js +3 -3
  7. package/esm2015/lib/sharedComponents/assessment-editor/components/preview/preview.module.ngsummary.json +1 -1
  8. package/esm2015/lib/sharedComponents/assessment-editor/components/setting-response-segment/setting-response-segment.component.ngfactory.js +4 -4
  9. package/esm2015/lib/sharedComponents/assessment-editor/create-assessment.module.ngfactory.js +3 -3
  10. package/esm2015/lib/sharedComponents/assessment-editor/create-assessment.module.ngsummary.json +1 -1
  11. package/esm2015/lib/sharedComponents/checkpoint/checkpoints-questions/checkpoints-questions.component.ngfactory.js +4 -4
  12. package/esm2015/lib/workflow-assessment/workflow-assessment.component.ngfactory.js +4 -4
  13. package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +125 -41
  14. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngfactory.js +116 -113
  15. package/esm2015/lib/workflow-compliance/workflow-compliance.component.ngsummary.json +1 -1
  16. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.js +14 -2
  17. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngfactory.js +16 -13
  18. package/esm2015/lib/workflow-engine-container/workflow-engine-container.component.ngsummary.json +1 -1
  19. package/esm2015/lib/workflow-engine.module.ngfactory.js +3 -3
  20. package/esm2015/lib/workflow-engine.module.ngsummary.json +1 -1
  21. package/esm2015/lib/workflow-policy/workflow-policy.component.ngfactory.js +4 -4
  22. package/esm2015/lib/workflow-program/create-program-ui/assessment-picker/assessment-picker.component.js +2 -2
  23. package/esm2015/lib/workflow-program/workflow-program.component.js +1 -1
  24. package/esm2015/lib/workflow-program/workflow-program.component.ngfactory.js +7 -7
  25. package/esm2015/lib/workflow-risk/workflow-risk.component.ngfactory.js +5 -5
  26. package/esm2015/lib/workflow-survey-form/workflow-survey-form.component.ngfactory.js +4 -4
  27. package/fesm2015/vcomply-workflow-engine.js +139 -43
  28. package/fesm2015/vcomply-workflow-engine.js.map +1 -1
  29. package/lib/workflow-compliance/workflow-compliance.component.d.ts +103 -8
  30. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -0
  31. package/package.json +1 -1
  32. package/vcomply-workflow-engine.metadata.json +1 -1
@@ -18,6 +18,12 @@ export declare class WorkflowComplianceComponent implements OnInit {
18
18
  frameworkDetails: Array<any>;
19
19
  isEntrust: boolean;
20
20
  set closeOnEsc(escapeCondition: boolean);
21
+ openedFrom: any;
22
+ selectedRC: number;
23
+ selectedProgram: any;
24
+ onRemovingCheckpoint: EventEmitter<any>;
25
+ isAssessmentDisabled: EventEmitter<any>;
26
+ assigneeTypeChange: EventEmitter<any>;
21
27
  pickerChanged: EventEmitter<any>;
22
28
  populateOption: EventEmitter<any>;
23
29
  hideElementsFromMoreOptions: EventEmitter<any>;
@@ -26,9 +32,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
26
32
  disconnectRefresh: EventEmitter<any>;
27
33
  checkpointCountUpdated: EventEmitter<any>;
28
34
  rcSelected: EventEmitter<any>;
29
- openedFrom: any;
30
- selectedRC: number;
31
- selectedProgram: any;
32
35
  scrollToBottom: boolean;
33
36
  description: EditorConfig;
34
37
  programPeopleList: any;
@@ -68,7 +71,6 @@ export declare class WorkflowComplianceComponent implements OnInit {
68
71
  moreOptions: any;
69
72
  activeSelector: string;
70
73
  sideSelectorElements: any;
71
- displayList: {};
72
74
  focus: {
73
75
  responsibilityName: boolean;
74
76
  description: boolean;
@@ -124,8 +126,9 @@ export declare class WorkflowComplianceComponent implements OnInit {
124
126
  managePermission: boolean;
125
127
  checkpointCount: number;
126
128
  roleBasedPermissions: any;
127
- onRemovingCheckpoint: EventEmitter<any>;
128
- isAssessmentDisabled: EventEmitter<any>;
129
+ isGroupAssigned: boolean;
130
+ responsibilityData: any;
131
+ originalAssignee: any;
129
132
  whatInput: ElementRef;
130
133
  unSubscribeProgram: Subject<void>;
131
134
  constructor(authService: AuthService, responsibilityService: ResponsibilityService, frequencyService: FrequencyService, uiKitService: UiKitService, snackBar: SnackBarService, permission: AuthService);
@@ -156,10 +159,25 @@ export declare class WorkflowComplianceComponent implements OnInit {
156
159
  entrustFramework(event: any): void;
157
160
  refreshAllLists(): void;
158
161
  refreshListsWhileProgramSelected(): void;
162
+ /**
163
+ * If the form is valid, then if the mode is EDIT, then set the organizationId and memberId to the
164
+ * authService values, and then call the entrustResponsibility function with the responsibilityForm as
165
+ * a parameter.
166
+ *
167
+ * If the mode is not EDIT, then call the entrustResponsibility function with the responsibilityForm
168
+ * as a parameter.
169
+ * @returns a boolean value.
170
+ */
159
171
  submitResponsibility(): false | undefined;
172
+ /**
173
+ * If the responsibility name is empty, or the frequency is empty, or the assignees list is empty,
174
+ * then return false. Otherwise, return true.
175
+ */
160
176
  validateResponsibility(): boolean | undefined;
161
- responsibilityData: any;
162
177
  entrustResponsibility(entrustForm: any): void;
178
+ /**
179
+ * It resets the form.
180
+ */
163
181
  reset(): void;
164
182
  action(event: string): void;
165
183
  viewResponsibilities(): void;
@@ -168,20 +186,96 @@ export declare class WorkflowComplianceComponent implements OnInit {
168
186
  frequencyPopulation(event: any): void;
169
187
  frequencyData(event: any): void;
170
188
  checkBlank(data: string): string;
189
+ /**
190
+ * It takes a string and returns a string.
191
+ * @param {any} res - any = {
192
+ */
171
193
  getFrequencyPlaceholder(res: any): void;
194
+ /**
195
+ * It gets the frequency details and report id, then it sets the frequency placeholder to the frequency
196
+ * details and then it gets the on completion of responsibility and sets the frequency placeholder to
197
+ * the frequency details and the report name.
198
+ * @param {any} frequencyDetails - [0] =&gt; "1"
199
+ * @param {number} reportId - number
200
+ */
172
201
  getOnCompletionOf(frequencyDetails: any, reportId: number): void;
202
+ /**
203
+ * "If the frequencyDetails[3] is 1, then set the frequencyPlaceholder to 'Daily by ' + frequencyTime,
204
+ * otherwise if frequencyDetails[3] is greater than 1, then set the frequencyPlaceholder to 'Every ' +
205
+ * parseInt(frequencyDetails[3]) + ' days by ' + frequencyTime."
206
+ * @param {any} frequencyDetails - [0, 0, 0, 1]
207
+ * @param {any} frequencyTime - "12:00 AM"
208
+ */
173
209
  getDailyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
210
+ /**
211
+ * It takes a string of comma separated numbers and returns a string of comma separated words.
212
+ *
213
+ * The function is called with a string of comma separated numbers, like this:
214
+ *
215
+ * getWeeklyPlaceholder(["1","2,3,4,5,6,7","1","1"], "10:00 AM")
216
+ *
217
+ * The function returns a string of comma separated words, like this:
218
+ *
219
+ * "Every Monday,Tuesday,Wednesday,Thursday,Friday,Saturday by 10:00 AM"</code>
220
+ * @param {any} frequencyDetails - ["1", "1,2,3,4,5", "", "1", ""]
221
+ * @param {any} frequencyTime - "10:00 AM"
222
+ */
174
223
  getWeeklyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
224
+ /**
225
+ * It takes a string of comma separated numbers, converts them to month names, and then adds them to a
226
+ * sentence.
227
+ * @param {any} frequencyDetails - ["1", "1", "1,2,3,4,5,6,7,8,9,10,11,12"]
228
+ * @param {any} frequencyTime - "10:00 AM"
229
+ */
175
230
  getMonthlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
231
+ /**
232
+ * If the frequencyDetails[1] is 1, 2, 3, 21, 22, 23, or greater than 3, then set the
233
+ * frequencyPlaceholder to a string that includes the frequencyDetails[1] and the frequencyDetails[2]
234
+ * and the frequencyTime.
235
+ * @param {any} frequencyDetails - ["3", "1", "1,2,3"]
236
+ * @param {any} frequencyTime - "10:00 AM"
237
+ */
176
238
  getQuarterlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
239
+ /**
240
+ * It takes a string of comma separated numbers and returns a string of comma separated month names.
241
+ * @param {any} frequencyDetails - ["1", "1", "1,2,3,4,5,6,7,8,9,10,11,12"]
242
+ * @param {any} frequencyTime - "10:00 AM"
243
+ */
177
244
  getBiannualPlaceholder(frequencyDetails: any, frequencyTime: any): void;
245
+ /**
246
+ * If the frequencyDetails[1] is less than 2, then the frequencyPlaceholder is set to the 1st, 2nd,
247
+ * 3rd, or nth of every month by frequencyTime.
248
+ *
249
+ * If the frequencyDetails[1] is greater than 1, then the frequencyPlaceholder is set to the 1st, 2nd,
250
+ * 3rd, or nth of every month, Interval: every yearSequence years by frequencyTime.
251
+ * @param {any} frequencyDetails - ["Yearly", "1", "1", "1"]
252
+ * @param {any} frequencyTime - "10:00 AM"
253
+ */
178
254
  getYearlyPlaceholder(frequencyDetails: any, frequencyTime: any): void;
255
+ /**
256
+ * It takes a frequencyDetails array and a frequencyTime array and returns a string.
257
+ * @param {any} frequencyDetails - [4,1,1,1]
258
+ */
179
259
  getRandomPlaceholder(frequencyDetails: any, frequencyTime: any): void;
260
+ /**
261
+ * "When the user clicks the edit button, the edit button is hidden and the input field is shown.
262
+ * When the user clicks the input field, the input field is hidden and the edit button is shown."
263
+ * @param {any} event - any - the event that triggered the function
264
+ */
180
265
  onEditWhat(event: any): void;
266
+ /**
267
+ *
268
+ * The function is called with a parameter and returns an array of strings.
269
+ * @param {any} [res] - is the response from the API
270
+ */
181
271
  getEditMoreOptions(res?: any): void;
182
- editorValidation(): void;
272
+ testFunction(): void;
183
273
  reviewerTypeChange(event: any): void;
184
274
  selectedSampleData(event: number): void;
275
+ /**
276
+ * It populates a list of assurance categories based on the test plan category selected.
277
+ * @param {any} testPlanCategory - any
278
+ */
185
279
  populateAssuranceList(testPlanCategory: any): void;
186
280
  checkInputValue(event: any): boolean;
187
281
  switchEnable(event: boolean): void;
@@ -199,4 +293,5 @@ export declare class WorkflowComplianceComponent implements OnInit {
199
293
  */
200
294
  postAssessment(event: any): void;
201
295
  setIsUploaded(event: any): void;
296
+ openAssigneeChangeConfirmation(event: any): void;
202
297
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "2.4.78",
3
+ "version": "2.4.81",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.0.1",
6
6
  "@angular/core": "^12.0.1"