vcomply-workflow-engine 5.0.1 → 5.0.3

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 (41) hide show
  1. package/esm2022/lib/constants/assessts.constants.mjs +3 -1
  2. package/esm2022/lib/more-option/more-option.component.mjs +20 -2
  3. package/esm2022/lib/report-a-case/components/case-assignees/case-assignees.component.mjs +137 -0
  4. package/esm2022/lib/report-a-case/components/case-category/case-category.component.mjs +1 -1
  5. package/esm2022/lib/report-a-case/components/case-details/case-details.component.mjs +39 -12
  6. package/esm2022/lib/report-a-case/components/case-priority/case-priority.component.mjs +35 -19
  7. package/esm2022/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.mjs +114 -0
  8. package/esm2022/lib/report-a-case/components/case-type-dropdown/case-dropdown.component.mjs +38 -11
  9. package/esm2022/lib/report-a-case/components/due-date/due-date.component.mjs +16 -5
  10. package/esm2022/lib/report-a-case/components/field-holder/field-holder.component.mjs +5 -5
  11. package/esm2022/lib/report-a-case/components/form-selectBox/form-selectBox.component.mjs +17 -30
  12. package/esm2022/lib/report-a-case/components/rc-details/rc-details.component.mjs +25 -9
  13. package/esm2022/lib/report-a-case/components/report-date/report-date.component.mjs +19 -11
  14. package/esm2022/lib/report-a-case/constants/api.constants.mjs +3 -2
  15. package/esm2022/lib/report-a-case/constants/report-case.constants.mjs +90 -3
  16. package/esm2022/lib/report-a-case/report-case.module.mjs +15 -5
  17. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +21 -2
  18. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +147 -36
  19. package/esm2022/lib/workflow-engine-container/workflow-engine-container.component.mjs +8 -1
  20. package/fesm2022/vcomply-workflow-engine.mjs +749 -181
  21. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  22. package/lib/constants/assessts.constants.d.ts +2 -0
  23. package/lib/report-a-case/components/case-assignees/case-assignees.component.d.ts +99 -0
  24. package/lib/report-a-case/components/case-category/case-category.component.d.ts +10 -0
  25. package/lib/report-a-case/components/case-details/case-details.component.d.ts +11 -0
  26. package/lib/report-a-case/components/case-priority/case-priority.component.d.ts +14 -2
  27. package/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.d.ts +94 -0
  28. package/lib/report-a-case/components/case-type-dropdown/case-dropdown.component.d.ts +14 -2
  29. package/lib/report-a-case/components/case-type-slider/case-type.component.d.ts +8 -0
  30. package/lib/report-a-case/components/due-date/due-date.component.d.ts +18 -2
  31. package/lib/report-a-case/components/field-holder/field-holder.component.d.ts +2 -0
  32. package/lib/report-a-case/components/form-selectBox/form-selectBox.component.d.ts +3 -15
  33. package/lib/report-a-case/components/rc-details/rc-details.component.d.ts +14 -1
  34. package/lib/report-a-case/components/report-date/report-date.component.d.ts +10 -0
  35. package/lib/report-a-case/constants/api.constants.d.ts +1 -0
  36. package/lib/report-a-case/constants/report-case.constants.d.ts +95 -0
  37. package/lib/report-a-case/report-case.module.d.ts +22 -19
  38. package/lib/report-a-case/services/report-a-case.service.d.ts +3 -0
  39. package/lib/report-a-case/workflow-case/workflow-case.component.d.ts +171 -21
  40. package/lib/workflow-engine-container/workflow-engine-container.component.d.ts +1 -0
  41. package/package.json +1 -1
@@ -2,6 +2,7 @@ export declare const REPORT_CASE: {
2
2
  case_type: string;
3
3
  report_case: string;
4
4
  add_case: string;
5
+ receive_updates: string;
5
6
  case_details: {
6
7
  name: {
7
8
  title: string;
@@ -14,6 +15,8 @@ export declare const REPORT_CASE: {
14
15
  rc: {
15
16
  title: string;
16
17
  placeholder: string;
18
+ singularText: string;
19
+ pluralText: string;
17
20
  };
18
21
  case_type: {
19
22
  title: string;
@@ -40,10 +43,15 @@ export declare const REPORT_CASE: {
40
43
  placeholder: string;
41
44
  deadline_placeholder: string;
42
45
  };
46
+ assignees: {
47
+ title: string;
48
+ placeholder: string;
49
+ };
43
50
  };
44
51
  tooltipMessage: {
45
52
  report_case: string;
46
53
  add_case: string;
54
+ receive_updates: string;
47
55
  rc: string;
48
56
  };
49
57
  errorMessage: {
@@ -106,6 +114,74 @@ export declare const REPORT_CASE_PAYLOAD: {
106
114
  linked_assessment_issues: {};
107
115
  source: string;
108
116
  };
117
+ export declare const ADD_TO_CASE_WORKFLOW: {
118
+ name: string;
119
+ description: {
120
+ text: string;
121
+ attachments: never[];
122
+ };
123
+ receive_updates: boolean;
124
+ rc_details: {
125
+ ids: never[];
126
+ separate_rc_cases: boolean;
127
+ main_rc_id: string;
128
+ };
129
+ reported_date: string;
130
+ case_type: {
131
+ id: string;
132
+ custom_fields: never[];
133
+ };
134
+ priority: {
135
+ id: string;
136
+ custom_fields: never[];
137
+ };
138
+ category: {
139
+ ids: never[];
140
+ custom_fields: never[];
141
+ };
142
+ additional_category: {
143
+ ids: never[];
144
+ custom_fields: never[];
145
+ };
146
+ supporting_documents: never[];
147
+ stage: string;
148
+ risk_class: number;
149
+ caseToWorkflow: {
150
+ workflow_id: string;
151
+ owners: never[];
152
+ assignees: never[];
153
+ assignees_group: never[];
154
+ resolution_deadline: {
155
+ due_date: string;
156
+ stages_assignees: never[];
157
+ assignee_remind_before: number;
158
+ owner_remind_before: number;
159
+ };
160
+ exception_type: string;
161
+ associated_risks: {
162
+ text: string;
163
+ attachments: never[];
164
+ };
165
+ oversights: {
166
+ cc_ids: never[];
167
+ cc_failures_ids: never[];
168
+ };
169
+ evidence_enabled: boolean;
170
+ recommendations: {
171
+ text: string;
172
+ attachments: never[];
173
+ };
174
+ };
175
+ responsibilities_Linked: never[];
176
+ linked_assessment_issues: {
177
+ resp_id: string;
178
+ due_date_id: string;
179
+ assessment_id: string;
180
+ question_id: string;
181
+ auditee_id: number;
182
+ };
183
+ source: string;
184
+ };
109
185
  export declare const ADDITIONAL_OPTION_PAYLOAD: {
110
186
  workflow_id: string;
111
187
  owners: never[];
@@ -157,3 +233,22 @@ export declare const OVERSIGHT_SELECTOR_CONFIG: {
157
233
  selectAllEnabled: boolean;
158
234
  noDataText: string;
159
235
  };
236
+ export declare const HELPER_TEXT: {
237
+ transition_status: string;
238
+ assignee: string;
239
+ deadline: string;
240
+ };
241
+ export declare const WORKFLOW_DETAILS_PARAMS: {
242
+ rc_details: {
243
+ ids: string[];
244
+ };
245
+ case_type: {
246
+ id: string;
247
+ };
248
+ priority: {
249
+ id: string;
250
+ };
251
+ category: {
252
+ ids: never[];
253
+ };
254
+ };
@@ -13,26 +13,29 @@ import * as i11 from "./components/case-type-dropdown/case-dropdown.component";
13
13
  import * as i12 from "./components/report-date/report-date.component";
14
14
  import * as i13 from "./components/case-priority/case-priority.component";
15
15
  import * as i14 from "./components/case-category/case-category.component";
16
- import * as i15 from "@angular/common";
17
- import * as i16 from "../ui-kit/tooltip/tooltip.module";
18
- import * as i17 from "../sharedComponents/floating-bar/floating-bar.module";
19
- import * as i18 from "../formgroup/formgroup.module";
20
- import * as i19 from "ng2-date-picker";
21
- import * as i20 from "@vcomply/editor";
22
- import * as i21 from "../ui-kit/popover/popover.module";
23
- import * as i22 from "./components/vc-dropdown/vc-dropdown.module";
24
- import * as i23 from "./components/form-selectBox/form-selectBox.module";
25
- import * as i24 from "@angular/forms";
26
- import * as i25 from "../sharedComponents/responsibility-centers-list/rc-list.module";
27
- import * as i26 from "../sharedComponents/format-and-evidence/format-and-evidence.module";
28
- import * as i27 from "../sharedComponents/v-loader/v-loader.module";
29
- import * as i28 from "../ui-kit/smiley-dialog-inline/smiley-dialog-inline.module";
30
- import * as i29 from "../sharedComponents/category-list-selection/category-list-selection.module";
31
- import * as i30 from "../sharedComponents/directive/directive.module";
32
- import * as i31 from "../sharedComponents/checkbox-list/checkbox-list.module";
33
- import * as i32 from "../pipes/pipes.module";
16
+ import * as i15 from "./components/case-resolution-deadline/case-resolution-deadline.component";
17
+ import * as i16 from "./components/case-assignees/case-assignees.component";
18
+ import * as i17 from "@angular/common";
19
+ import * as i18 from "../ui-kit/tooltip/tooltip.module";
20
+ import * as i19 from "../sharedComponents/floating-bar/floating-bar.module";
21
+ import * as i20 from "../formgroup/formgroup.module";
22
+ import * as i21 from "ng2-date-picker";
23
+ import * as i22 from "@vcomply/editor";
24
+ import * as i23 from "../ui-kit/popover/popover.module";
25
+ import * as i24 from "./components/vc-dropdown/vc-dropdown.module";
26
+ import * as i25 from "./components/form-selectBox/form-selectBox.module";
27
+ import * as i26 from "@angular/forms";
28
+ import * as i27 from "../sharedComponents/responsibility-centers-list/rc-list.module";
29
+ import * as i28 from "../sharedComponents/format-and-evidence/format-and-evidence.module";
30
+ import * as i29 from "../sharedComponents/v-loader/v-loader.module";
31
+ import * as i30 from "../ui-kit/smiley-dialog-inline/smiley-dialog-inline.module";
32
+ import * as i31 from "../sharedComponents/category-list-selection/category-list-selection.module";
33
+ import * as i32 from "../sharedComponents/directive/directive.module";
34
+ import * as i33 from "../sharedComponents/checkbox-list/checkbox-list.module";
35
+ import * as i34 from "../pipes/pipes.module";
36
+ import * as i35 from "../sharedComponents/group-users-list/group-users-list.component";
34
37
  export declare class ReportCaseModule {
35
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportCaseModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<ReportCaseModule, [typeof i1.CaseTypeComponent, typeof i2.WorkflowCaseComponent, typeof i3.AssigneeComponent, typeof i4.DueDateComponent, typeof i5.InformationBlockComponent, typeof i6.CaseDetailsComponent, typeof i7.VCInputComponent, typeof i8.VCFormLabelComponent, typeof i9.FieldHolderComponent, typeof i10.RcDetailsComponent, typeof i11.CaseDropdownComponent, typeof i12.ReportDateComponent, typeof i13.CasePriorityComponent, typeof i14.CaseCategoryComponent], [typeof i15.CommonModule, typeof i16.TooltipModule, typeof i17.FloatingBarModule, typeof i18.FormgroupModule, typeof i19.DpDatePickerModule, typeof i20.VcomplyEditorModule, typeof i21.PopoverModule, typeof i22.VcDropdownModule, typeof i23.FormSelectBoxModule, typeof i24.FormsModule, typeof i25.RcListModule, typeof i26.FormatAndEvidenceModule, typeof i27.VLoaderModule, typeof i28.SmileyDialogInlineModule, typeof i29.CategoryListSelectionModule, typeof i30.SharedDirectiveModule, typeof i31.CheckboxListModule, typeof i32.PipesModule], [typeof i2.WorkflowCaseComponent]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ReportCaseModule, [typeof i1.CaseTypeComponent, typeof i2.WorkflowCaseComponent, typeof i3.AssigneeComponent, typeof i4.DueDateComponent, typeof i5.InformationBlockComponent, typeof i6.CaseDetailsComponent, typeof i7.VCInputComponent, typeof i8.VCFormLabelComponent, typeof i9.FieldHolderComponent, typeof i10.RcDetailsComponent, typeof i11.CaseDropdownComponent, typeof i12.ReportDateComponent, typeof i13.CasePriorityComponent, typeof i14.CaseCategoryComponent, typeof i15.CaseResolutionDeadlineComponent, typeof i16.CaseAssigneesComponent], [typeof i17.CommonModule, typeof i18.TooltipModule, typeof i19.FloatingBarModule, typeof i20.FormgroupModule, typeof i21.DpDatePickerModule, typeof i22.VcomplyEditorModule, typeof i23.PopoverModule, typeof i24.VcDropdownModule, typeof i25.FormSelectBoxModule, typeof i26.FormsModule, typeof i27.RcListModule, typeof i28.FormatAndEvidenceModule, typeof i29.VLoaderModule, typeof i30.SmileyDialogInlineModule, typeof i31.CategoryListSelectionModule, typeof i32.SharedDirectiveModule, typeof i33.CheckboxListModule, typeof i34.PipesModule, typeof i35.GroupUsersListComponent], [typeof i2.WorkflowCaseComponent]>;
37
40
  static ɵinj: i0.ɵɵInjectorDeclaration<ReportCaseModule>;
38
41
  }
@@ -9,6 +9,8 @@ export declare class ReportACaseService {
9
9
  private getAllTypes$;
10
10
  private getAllPriorities$;
11
11
  private getAllCategories$;
12
+ private workflowSubject;
13
+ workflow$: Observable<any>;
12
14
  workflowCode: Subject<string>;
13
15
  env: any;
14
16
  constructor(http: HttpClient, authService: AuthService, config?: Configurations);
@@ -19,6 +21,7 @@ export declare class ReportACaseService {
19
21
  getAllTypes(): Observable<any>;
20
22
  getAllPriorities(): Observable<any>;
21
23
  reportACase(payload: any): Observable<any>;
24
+ getWorkflowDetails(params: any): import("rxjs").Subscription;
22
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportACaseService, [null, null, { optional: true; }]>;
23
26
  static ɵprov: i0.ɵɵInjectableDeclaration<ReportACaseService>;
24
27
  }
@@ -3,11 +3,83 @@ import { report } from '../components/case-type-slider/case-type.component';
3
3
  import { ReportACaseService } from '../services/report-a-case.service';
4
4
  import { UiKitService } from '../../workflow-services/ui-kit.service';
5
5
  import { OrganizationUserService } from '../../workflow-services/organization-user.service';
6
+ import { ResponsibilityService } from '../../workflow-services/responsibility.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class WorkflowCaseComponent {
8
9
  private reportACaseService;
9
10
  private uiKitService;
10
11
  private organizationUserService;
12
+ private responsibilityService;
13
+ reportTexts: {
14
+ case_type: string;
15
+ report_case: string;
16
+ add_case: string;
17
+ receive_updates: string;
18
+ case_details: {
19
+ name: {
20
+ title: string;
21
+ placeholder: string;
22
+ };
23
+ description: {
24
+ title: string;
25
+ placeholder: string;
26
+ };
27
+ rc: {
28
+ title: string;
29
+ placeholder: string;
30
+ singularText: string;
31
+ pluralText: string;
32
+ };
33
+ case_type: {
34
+ title: string;
35
+ placeholder: string;
36
+ };
37
+ category: {
38
+ title: string;
39
+ placeholder: string;
40
+ };
41
+ when: {
42
+ title: string;
43
+ placeholder: string;
44
+ };
45
+ priority: {
46
+ title: string;
47
+ placeholder: string;
48
+ };
49
+ attachments: {
50
+ title: string;
51
+ placeholder: string;
52
+ };
53
+ due_date: {
54
+ title: string;
55
+ placeholder: string;
56
+ deadline_placeholder: string;
57
+ };
58
+ assignees: {
59
+ title: string;
60
+ placeholder: string;
61
+ };
62
+ };
63
+ tooltipMessage: {
64
+ report_case: string;
65
+ add_case: string;
66
+ receive_updates: string;
67
+ rc: string;
68
+ };
69
+ errorMessage: {
70
+ rc: string;
71
+ };
72
+ };
73
+ ASSETS: {
74
+ responsibility_center: string;
75
+ case_type: string;
76
+ case_category: string;
77
+ when: string;
78
+ what: string;
79
+ case_resolution_deadline: string;
80
+ case_assignees: string;
81
+ format_evidence: string;
82
+ };
11
83
  caseType: typeof report;
12
84
  caseTypeSelected: report;
13
85
  payload: {
@@ -42,36 +114,97 @@ export declare class WorkflowCaseComponent {
42
114
  linked_assessment_issues: {};
43
115
  source: string;
44
116
  };
117
+ params: {
118
+ rc_details: {
119
+ ids: string[];
120
+ };
121
+ case_type: {
122
+ id: string;
123
+ };
124
+ priority: {
125
+ id: string;
126
+ };
127
+ category: {
128
+ ids: never[];
129
+ };
130
+ };
45
131
  fieldClicked: string;
46
132
  showSmiley: boolean;
47
133
  scrollToBottom: boolean;
48
134
  sideSelectorElements: any;
49
135
  additionalOptionStatus: any;
50
- additionalPayload: {
51
- workflow_id: string;
52
- owners: never[];
53
- assignees: never[];
54
- assignees_group: never[];
55
- resolution_deadline: {
56
- due_date: string;
57
- stages_assignees: never[];
58
- assignee_remind_before: number;
59
- owner_remind_before: number;
60
- };
61
- exception_type: string;
62
- associated_risks: {
136
+ riskClassification: {
137
+ name: string;
138
+ value: number;
139
+ class: string;
140
+ }[];
141
+ addToCasePayload: {
142
+ name: string;
143
+ description: {
63
144
  text: string;
64
145
  attachments: never[];
65
146
  };
66
- oversights: {
67
- cc_ids: never[];
68
- cc_failures_ids: never[];
147
+ receive_updates: boolean;
148
+ rc_details: {
149
+ ids: never[];
150
+ separate_rc_cases: boolean;
151
+ main_rc_id: string;
69
152
  };
70
- evidence_enabled: boolean;
71
- recommendations: {
72
- text: string;
73
- attachments: never[];
153
+ reported_date: string;
154
+ case_type: {
155
+ id: string;
156
+ custom_fields: never[];
157
+ };
158
+ priority: {
159
+ id: string;
160
+ custom_fields: never[];
74
161
  };
162
+ category: {
163
+ ids: never[];
164
+ custom_fields: never[];
165
+ };
166
+ additional_category: {
167
+ ids: never[];
168
+ custom_fields: never[];
169
+ };
170
+ supporting_documents: never[];
171
+ stage: string;
172
+ risk_class: number;
173
+ caseToWorkflow: {
174
+ workflow_id: string;
175
+ owners: never[];
176
+ assignees: never[];
177
+ assignees_group: never[];
178
+ resolution_deadline: {
179
+ due_date: string;
180
+ stages_assignees: never[];
181
+ assignee_remind_before: number;
182
+ owner_remind_before: number;
183
+ };
184
+ exception_type: string;
185
+ associated_risks: {
186
+ text: string;
187
+ attachments: never[];
188
+ };
189
+ oversights: {
190
+ cc_ids: never[];
191
+ cc_failures_ids: never[];
192
+ };
193
+ evidence_enabled: boolean;
194
+ recommendations: {
195
+ text: string;
196
+ attachments: never[];
197
+ };
198
+ };
199
+ responsibilities_Linked: never[];
200
+ linked_assessment_issues: {
201
+ resp_id: string;
202
+ due_date_id: string;
203
+ assessment_id: string;
204
+ question_id: string;
205
+ auditee_id: number;
206
+ };
207
+ source: string;
75
208
  };
76
209
  exceptionType: {
77
210
  DESIGN_EXCEPTION: string;
@@ -90,6 +223,8 @@ export declare class WorkflowCaseComponent {
90
223
  };
91
224
  loader: {
92
225
  userListLoader: boolean;
226
+ typeLoader: boolean;
227
+ priorityLoader: boolean;
93
228
  };
94
229
  smileyMessage: string;
95
230
  actionButtons: any[];
@@ -112,9 +247,13 @@ export declare class WorkflowCaseComponent {
112
247
  };
113
248
  };
114
249
  closeWorkflow: EventEmitter<any>;
115
- constructor(reportACaseService: ReportACaseService, uiKitService: UiKitService, organizationUserService: OrganizationUserService);
250
+ workflowDetailsData: any;
251
+ groupList: any[];
252
+ constructor(reportACaseService: ReportACaseService, uiKitService: UiKitService, organizationUserService: OrganizationUserService, responsibilityService: ResponsibilityService);
116
253
  ngOnInit(): void;
117
254
  getUserList(): void;
255
+ getGroupList(): void;
256
+ getWorkflowDetailsData(): void;
118
257
  reportCase(): void;
119
258
  checkValidation(): boolean;
120
259
  onCaseTypeChange(caseType: report): void;
@@ -130,8 +269,19 @@ export declare class WorkflowCaseComponent {
130
269
  setEvidence(value: any): void;
131
270
  setActiveFieldSelector(field: string, type: string): void;
132
271
  smileyActions(evt: any): void;
272
+ resetForm(mode: string): void;
133
273
  closeSmiley(evt?: any): void;
134
274
  closeWorkFlow(evt: any, confirm: any): void;
275
+ onCategoryChange(event: any): void;
276
+ onPriorityChange(event: any): void;
277
+ onRcChange(event: any): void;
278
+ onCaseTypeDropdownChange(event: any): void;
279
+ addToCase(): void;
280
+ selectorAction(evt: any, type: any): void;
281
+ getCcUsers(evt: any, type: string): void;
282
+ onCaseLoader(event: any, type: string): void;
283
+ get displayAdditionalOptions(): any;
284
+ get checkloader(): boolean;
135
285
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowCaseComponent, never>;
136
286
  static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowCaseComponent, "app-workflow-case", never, {}, { "closeWorkflow": "closeWorkflow"; }, never, never, false, never>;
137
287
  }
@@ -27,6 +27,7 @@ export declare class WorkflowEngineContainerComponent implements OnInit, AfterVi
27
27
  isHostRefreshActive: boolean;
28
28
  isRCSelected: boolean;
29
29
  featureFlag_groups: boolean;
30
+ addToCaseMode: string;
30
31
  unloadNotification($event: any): void;
31
32
  constructor(uiKitService: UiKitService, snackBar: SnackBarService, auth: AuthService, orgCommonService: OrganizationCommonService, reportACaseService: ReportACaseService);
32
33
  workflowType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "