vcomply-workflow-engine 6.1.16 → 6.1.18

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 (21) hide show
  1. package/esm2022/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.mjs +25 -3
  2. package/esm2022/lib/report-a-case/components/due-date/due-date.component.mjs +19 -5
  3. package/esm2022/lib/report-a-case/components/report-date/report-date.component.mjs +3 -1
  4. package/esm2022/lib/report-a-case/constants/api.constants.mjs +3 -2
  5. package/esm2022/lib/report-a-case/constants/report-case.constants.mjs +2 -1
  6. package/esm2022/lib/report-a-case/report-case.module.mjs +5 -2
  7. package/esm2022/lib/report-a-case/services/report-a-case.service.mjs +7 -1
  8. package/esm2022/lib/report-a-case/workflow-case/workflow-case.component.mjs +3 -3
  9. package/esm2022/lib/ui-kit/banner/banner.component.mjs +44 -0
  10. package/fesm2022/vcomply-workflow-engine.mjs +202 -114
  11. package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
  12. package/lib/report-a-case/components/case-resolution-deadline/case-resolution-deadline.component.d.ts +7 -3
  13. package/lib/report-a-case/components/due-date/due-date.component.d.ts +7 -2
  14. package/lib/report-a-case/components/report-date/report-date.component.d.ts +2 -0
  15. package/lib/report-a-case/constants/api.constants.d.ts +1 -0
  16. package/lib/report-a-case/constants/report-case.constants.d.ts +1 -0
  17. package/lib/report-a-case/report-case.module.d.ts +22 -21
  18. package/lib/report-a-case/services/report-a-case.service.d.ts +1 -0
  19. package/lib/ui-kit/banner/banner.component.d.ts +8 -0
  20. package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
  21. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { SelectionPopupState, SelectionState } from '../../constants/report-case.constants';
3
3
  import { ReportACaseService } from '../../services/report-a-case.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class CaseResolutionDeadlineComponent {
5
+ export declare class CaseResolutionDeadlineComponent implements OnInit {
6
6
  private reportACaseService;
7
7
  ASSETS: {
8
8
  responsibility_center: string;
@@ -163,21 +163,25 @@ export declare class CaseResolutionDeadlineComponent {
163
163
  initialResolutionDeadline: any;
164
164
  fieldSelector: string[];
165
165
  dueDateHelpText: string;
166
+ latestValidDeadline: string;
166
167
  payload: any;
167
168
  userList: any[];
168
169
  groupList: any[];
169
170
  mode: string;
171
+ caseId: string;
170
172
  set initialSelection(value: any);
171
173
  fieldSelected: string;
172
174
  validationError: any;
173
175
  fieldClicked: EventEmitter<string>;
174
176
  filterDeselector: EventEmitter<any>;
175
177
  constructor(reportACaseService: ReportACaseService);
178
+ ngOnInit(): void;
179
+ validateDeadline(): void;
176
180
  saveSelectedDueDate(): void;
177
181
  setSelectedRcList(event: any): void;
178
182
  activateSelector(active: boolean): void;
179
183
  getWorkflowDetails(): void;
180
184
  isCaseResolutionDeadlineDisabled(): boolean;
181
185
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseResolutionDeadlineComponent, never>;
182
- static ɵcmp: i0.ɵɵComponentDeclaration<CaseResolutionDeadlineComponent, "app-case-resolution-deadline", never, { "payload": { "alias": "payload"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
186
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseResolutionDeadlineComponent, "app-case-resolution-deadline", never, { "payload": { "alias": "payload"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "caseId": { "alias": "caseId"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "fieldSelected": { "alias": "fieldSelected"; "required": false; }; "validationError": { "alias": "validationError"; "required": false; }; }, { "fieldClicked": "fieldClicked"; "filterDeselector": "filterDeselector"; }, never, never, false, never>;
183
187
  }
@@ -154,7 +154,9 @@ export declare class DueDateComponent implements OnInit {
154
154
  caseOwner: string;
155
155
  caseAssignee: string;
156
156
  dueDate: string;
157
- stageAssignee: string;
157
+ stageAssignee: string; /**
158
+ * closes the date picker from policy form
159
+ */
158
160
  caseResolutionDeadline: string;
159
161
  };
160
162
  };
@@ -174,6 +176,7 @@ export declare class DueDateComponent implements OnInit {
174
176
  escalationEmail: number;
175
177
  showError: boolean;
176
178
  showAssigneeError: boolean;
179
+ CaseDeadlineWarning: string;
177
180
  payload: any;
178
181
  dueDate: any;
179
182
  workflowDetails: any;
@@ -181,6 +184,7 @@ export declare class DueDateComponent implements OnInit {
181
184
  groupList: any[];
182
185
  mode: string;
183
186
  set initialSelection(value: any);
187
+ min: string;
184
188
  closeDueDateResolution: EventEmitter<any>;
185
189
  closeDueDateEvent: EventEmitter<any>;
186
190
  constructor(commonDateService: CommonService, frequencyService: FrequencyService);
@@ -188,6 +192,7 @@ export declare class DueDateComponent implements OnInit {
188
192
  private initializeEditMode;
189
193
  private initializeDeadlineValues;
190
194
  private initializeStageAssignees;
195
+ private setMinDate;
191
196
  private createStageAssigneeMap;
192
197
  private mapWorkflowStages;
193
198
  openDatePicker(): void;
@@ -217,5 +222,5 @@ export declare class DueDateComponent implements OnInit {
217
222
  documentClick(event: any): void;
218
223
  onInputChange(): void;
219
224
  static ɵfac: i0.ɵɵFactoryDeclaration<DueDateComponent, never>;
220
- static ɵcmp: i0.ɵɵComponentDeclaration<DueDateComponent, "app-due-date", never, { "payload": { "alias": "payload"; "required": false; }; "dueDate": { "alias": "dueDate"; "required": false; }; "workflowDetails": { "alias": "workflowDetails"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; }, { "closeDueDateResolution": "closeDueDateResolution"; "closeDueDateEvent": "closeDueDateEvent"; }, never, never, false, never>;
225
+ static ɵcmp: i0.ɵɵComponentDeclaration<DueDateComponent, "app-due-date", never, { "payload": { "alias": "payload"; "required": false; }; "dueDate": { "alias": "dueDate"; "required": false; }; "workflowDetails": { "alias": "workflowDetails"; "required": false; }; "userList": { "alias": "userList"; "required": false; }; "groupList": { "alias": "groupList"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "min": { "alias": "min"; "required": false; }; }, { "closeDueDateResolution": "closeDueDateResolution"; "closeDueDateEvent": "closeDueDateEvent"; }, never, never, false, never>;
221
226
  }
@@ -1,5 +1,6 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { DatePickerComponent } from 'ng2-date-picker';
3
+ import * as moment from 'moment';
3
4
  import { CommonService } from '../../../services/common.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class ReportDateComponent {
@@ -157,6 +158,7 @@ export declare class ReportDateComponent {
157
158
  unSelectOnClick: boolean;
158
159
  openOnClick: boolean;
159
160
  openOnFocus: boolean;
161
+ max: moment.Moment;
160
162
  };
161
163
  fieldSelector: string[];
162
164
  payload: any;
@@ -5,4 +5,5 @@ export declare const API_URLS: {
5
5
  GET_STAGE_DETAILS: string;
6
6
  GET_CASE_OWNERS: string;
7
7
  ADD_CASE_TO_WORKFLOW: string;
8
+ VALIDATE_CASE_DEADLINE: string;
8
9
  };
@@ -353,3 +353,4 @@ export declare const EMAIL_REMINDERS: {
353
353
  };
354
354
  export declare const FIELD_SELECTOR: string[];
355
355
  export declare const MONTH_NAMES: string[];
356
+ export declare const BANNER_CASE_RESOLUTION_DEADLINE_WARNING = "Note: Please ensure that the case resolution deadline is not set before the associated task due date within this case.";
@@ -18,28 +18,29 @@ import * as i16 from "./components/case-assignees/case-assignees.component";
18
18
  import * as i17 from "./components/case-owners/case-owners.component";
19
19
  import * as i18 from "./components/linked assessment/linked-assessment.component";
20
20
  import * as i19 from "./components/linked-responsibilities/linked-responsibilities.component";
21
- import * as i20 from "@angular/common";
22
- import * as i21 from "../ui-kit/tooltip/tooltip.module";
23
- import * as i22 from "../sharedComponents/floating-bar/floating-bar.module";
24
- import * as i23 from "../formgroup/formgroup.module";
25
- import * as i24 from "ng2-date-picker";
26
- import * as i25 from "@vcomply/editor";
27
- import * as i26 from "../ui-kit/popover/popover.module";
28
- import * as i27 from "./components/vc-dropdown/vc-dropdown.module";
29
- import * as i28 from "./components/form-selectBox/form-selectBox.module";
30
- import * as i29 from "@angular/forms";
31
- import * as i30 from "../sharedComponents/responsibility-centers-list/rc-list.module";
32
- import * as i31 from "../sharedComponents/format-and-evidence/format-and-evidence.module";
33
- import * as i32 from "../sharedComponents/v-loader/v-loader.module";
34
- import * as i33 from "../ui-kit/smiley-dialog-inline/smiley-dialog-inline.module";
35
- import * as i34 from "../sharedComponents/category-list-selection/category-list-selection.module";
36
- import * as i35 from "../sharedComponents/directive/directive.module";
37
- import * as i36 from "../sharedComponents/checkbox-list/checkbox-list.module";
38
- import * as i37 from "../pipes/pipes.module";
39
- import * as i38 from "../sharedComponents/group-users-list/group-users-list.component";
40
- import * as i39 from "../sharedComponents/link-responsibility/link-responsibility.module";
21
+ import * as i20 from "../ui-kit/banner/banner.component";
22
+ import * as i21 from "@angular/common";
23
+ import * as i22 from "../ui-kit/tooltip/tooltip.module";
24
+ import * as i23 from "../sharedComponents/floating-bar/floating-bar.module";
25
+ import * as i24 from "../formgroup/formgroup.module";
26
+ import * as i25 from "ng2-date-picker";
27
+ import * as i26 from "@vcomply/editor";
28
+ import * as i27 from "../ui-kit/popover/popover.module";
29
+ import * as i28 from "./components/vc-dropdown/vc-dropdown.module";
30
+ import * as i29 from "./components/form-selectBox/form-selectBox.module";
31
+ import * as i30 from "@angular/forms";
32
+ import * as i31 from "../sharedComponents/responsibility-centers-list/rc-list.module";
33
+ import * as i32 from "../sharedComponents/format-and-evidence/format-and-evidence.module";
34
+ import * as i33 from "../sharedComponents/v-loader/v-loader.module";
35
+ import * as i34 from "../ui-kit/smiley-dialog-inline/smiley-dialog-inline.module";
36
+ import * as i35 from "../sharedComponents/category-list-selection/category-list-selection.module";
37
+ import * as i36 from "../sharedComponents/directive/directive.module";
38
+ import * as i37 from "../sharedComponents/checkbox-list/checkbox-list.module";
39
+ import * as i38 from "../pipes/pipes.module";
40
+ import * as i39 from "../sharedComponents/group-users-list/group-users-list.component";
41
+ import * as i40 from "../sharedComponents/link-responsibility/link-responsibility.module";
41
42
  export declare class ReportCaseModule {
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportCaseModule, never>;
43
- 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.CaseOwnersComponent, typeof i18.LinkedAssessmentComponent, typeof i19.LinkedResponsibilitiesComponent], [typeof i20.CommonModule, typeof i21.TooltipModule, typeof i22.FloatingBarModule, typeof i23.FormgroupModule, typeof i24.DpDatePickerModule, typeof i25.VcomplyEditorModule, typeof i26.PopoverModule, typeof i27.VcDropdownModule, typeof i28.FormSelectBoxModule, typeof i29.FormsModule, typeof i30.RcListModule, typeof i31.FormatAndEvidenceModule, typeof i32.VLoaderModule, typeof i33.SmileyDialogInlineModule, typeof i34.CategoryListSelectionModule, typeof i35.SharedDirectiveModule, typeof i36.CheckboxListModule, typeof i37.PipesModule, typeof i38.GroupUsersListComponent, typeof i39.LinkResponsibilityModule], [typeof i2.WorkflowCaseComponent]>;
44
+ 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.CaseOwnersComponent, typeof i18.LinkedAssessmentComponent, typeof i19.LinkedResponsibilitiesComponent, typeof i20.BannerComponent], [typeof i21.CommonModule, typeof i22.TooltipModule, typeof i23.FloatingBarModule, typeof i24.FormgroupModule, typeof i25.DpDatePickerModule, typeof i26.VcomplyEditorModule, typeof i27.PopoverModule, typeof i28.VcDropdownModule, typeof i29.FormSelectBoxModule, typeof i30.FormsModule, typeof i31.RcListModule, typeof i32.FormatAndEvidenceModule, typeof i33.VLoaderModule, typeof i34.SmileyDialogInlineModule, typeof i35.CategoryListSelectionModule, typeof i36.SharedDirectiveModule, typeof i37.CheckboxListModule, typeof i38.PipesModule, typeof i39.GroupUsersListComponent, typeof i40.LinkResponsibilityModule], [typeof i2.WorkflowCaseComponent]>;
44
45
  static ɵinj: i0.ɵɵInjectorDeclaration<ReportCaseModule>;
45
46
  }
@@ -28,6 +28,7 @@ export declare class ReportACaseService {
28
28
  getWorkflowDetails(params: any): import("rxjs").Subscription;
29
29
  getCaseOwners(workflow_id: string): Observable<Object>;
30
30
  getCaseDetails(caseId: string): Observable<Object>;
31
+ validateCaseDeadline(caseId: string): Observable<Object>;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportACaseService, [null, null, { optional: true; }]>;
32
33
  static ɵprov: i0.ɵɵInjectableDeclaration<ReportACaseService>;
33
34
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BannerComponent {
3
+ icon: string;
4
+ bannerClass?: string;
5
+ isCenter: boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BannerComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<BannerComponent, "app-banner", never, { "icon": { "alias": "icon"; "required": false; }; "bannerClass": { "alias": "bannerClass"; "required": false; }; "isCenter": { "alias": "isCenter"; "required": false; }; }, {}, never, ["[banner]"], false, never>;
8
+ }
@@ -168,7 +168,7 @@ export declare class WorkflowRiskComponent implements OnInit {
168
168
  setPopupButtons(): void;
169
169
  getRiskDetails(riskId: any): void;
170
170
  populateOptionalFields(): void;
171
- setCategoryType(type: any): "others" | "strategic" | "operational" | "compliance";
171
+ setCategoryType(type: any): "strategic" | "compliance" | "operational" | "others";
172
172
  getRCList(): void;
173
173
  getCategoryList(): void;
174
174
  getOwnersList(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "6.1.16",
3
+ "version": "6.1.18",
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 "