vcomply-workflow-engine 8.0.10 → 8.0.12

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.
package/index.d.ts CHANGED
@@ -2997,7 +2997,7 @@ declare class WorkflowRiskComponent implements OnInit {
2997
2997
  setPopupButtons(): void;
2998
2998
  getRiskDetails(riskId: any): void;
2999
2999
  populateOptionalFields(): void;
3000
- setCategoryType(type: any): "compliance" | "strategic" | "operational" | "others";
3000
+ setCategoryType(type: any): "strategic" | "compliance" | "operational" | "others";
3001
3001
  getRCList(): void;
3002
3002
  getCategoryList(): void;
3003
3003
  getOwnersList(): void;
@@ -5885,10 +5885,13 @@ declare class CheckpointsPolicyQuestionsComponent implements OnInit {
5885
5885
  set checkpointDetails(value: any);
5886
5886
  saveValidQuestions: EventEmitter<any>;
5887
5887
  activeQuestionIndex: number;
5888
+ private uidCounter;
5888
5889
  constructor();
5889
5890
  ngOnInit(): void;
5890
5891
  errorTracker: any;
5891
5892
  rightAnswerIndex: any;
5893
+ private generateUid;
5894
+ private createBlankQuestion;
5892
5895
  /**
5893
5896
  * Changes active question index
5894
5897
  * @param index
@@ -5900,14 +5903,15 @@ declare class CheckpointsPolicyQuestionsComponent implements OnInit {
5900
5903
  focusAnOption(questionIndex: number, optionIndex: number): void;
5901
5904
  deleteOnBackspace(questionIndex: number, optionIndex: number): void;
5902
5905
  deleteQuestion(questionIndex: number): void;
5903
- selectRightAnswer(evt: any, index: number, answerIndex: string): void;
5906
+ selectRightAnswer(evt: any, index: number, answerIndex: number): void;
5904
5907
  reValidate(questionIndex: number): void;
5905
5908
  saveCheckPoint(): Promise<void>;
5906
5909
  mapRightAnswers(): void;
5907
5910
  validateForm(): Promise<boolean>;
5908
5911
  isOptionValid(options: any): boolean;
5909
5912
  checkDuplicate(arr: any): boolean;
5910
- trackByFn(index: any, item: any): any;
5913
+ trackByQuestion(index: number, item: any): any;
5914
+ trackByFn(index: number): number;
5911
5915
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckpointsPolicyQuestionsComponent, never>;
5912
5916
  static ɵcmp: i0.ɵɵComponentDeclaration<CheckpointsPolicyQuestionsComponent, "app-checkpoints-policy-questions", never, { "requiredPoint": { "alias": "requiredPoint"; "required": false; }; "checkpointDetails": { "alias": "checkpointDetails"; "required": false; }; }, { "changeMax": "changeMax"; "requiredPointChange": "requiredPointChange"; "saveValidQuestions": "saveValidQuestions"; }, never, never, false, never>;
5913
5917
  }
@@ -7566,15 +7570,16 @@ declare class AddMultipleResponsibilityWithTabComponent implements OnInit {
7566
7570
  checkEmptyFile(data?: any): boolean;
7567
7571
  compareWithCurrentDate(day: any, month: any): boolean;
7568
7572
  isPastDate(day: any, month: any): boolean;
7569
- getStartDateValidation(day: any, month: any): {
7570
- validStartDate: boolean;
7571
- isStartDatePast: boolean;
7572
- isStartDayInvalid: boolean;
7573
- isStartDateFormatInvalid: boolean;
7574
- };
7573
+ /**
7574
+ * Converts bulk-upload day/month values (e.g. 15 and "June'26") into a moment date.
7575
+ * Used when comparing Start Date against Due Date during frequency responsibility validation.
7576
+ */
7575
7577
  parseBulkUploadDate(day: any, month: any): moment.Moment | null;
7576
- isStartDateAfterDueDate(startDay: any, startMonth: any, dueDay: any, dueMonth: any): boolean;
7577
- applyStartDateValidation(obj: any): void;
7578
+ /**
7579
+ * Ensures the responsibility Start Date does not fall after the Due Date.
7580
+ * Returns true when Start Date is omitted, or when it is on/before the Due Date.
7581
+ */
7582
+ validateTimeLine(startDay: any, startMonth: any, day: any, month: any): boolean;
7578
7583
  downloadTemplate(): void;
7579
7584
  submitResponsibilityBulkUpload(): void;
7580
7585
  submitWorkflow(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "8.0.10",
3
+ "version": "8.0.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x || 23.x || 24.x",
6
6
  "@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x || 23.x || 24.x"