vcomply-workflow-engine 7.3.9 → 7.4.0

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.
@@ -181,6 +181,17 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
181
181
  * @param {string} event - string - the event that is emitted from the child component (frequency | ongoing | onCompletion)
182
182
  */
183
183
  selectedTab(event: 'frequency' | 'ongoing' | 'onCompletion'): void;
184
+ /**
185
+ * Detects the four frequency columns added to the latest xlsx template:
186
+ * Due Time, Ends After Occurrences, Ends By Date (Day), Ends By Date (Month).
187
+ * Older templates without these columns keep the original column mapping.
188
+ */
189
+ detectExtendedFrequencyColumns(header?: any[], subHeading?: any[]): boolean;
190
+ /**
191
+ * Remaps frequency columns when the uploaded file includes the four new fields,
192
+ * so later columns (RC, reviewer, etc.) stay aligned. Ongoing/onCompletion are unchanged.
193
+ */
194
+ applyExtendedFrequencyColumns(obj: any, report: any, isProgram: boolean): void;
184
195
  /**
185
196
  * It takes in a report, a tab type, and a boolean value. It then returns an object with a bunch of
186
197
  * properties.
@@ -188,10 +199,33 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
188
199
  * @param {any} report - any => the array of data
189
200
  * @param {string} tabType - string - this is the type of tab that is selected.
190
201
  * @param {boolean} isProgram - boolean
202
+ * @param {boolean} hasExtendedFrequencyColumns - whether the xlsx includes the four new frequency columns
191
203
  * @returns An object with the following properties:
192
204
  */
193
- setReportDetails(report: any, tabType: string, isProgram: boolean): any;
205
+ setReportDetails(report: any, tabType: string, isProgram: boolean, hasExtendedFrequencyColumns?: boolean): any;
194
206
  isValidRiskClass(riskClass: any): boolean;
207
+ isValidDueTime(dueTime: any, hasExtendedFrequencyColumns?: boolean): boolean;
208
+ /**
209
+ * Optional field. When filled, the value must be numeric and greater than 0.
210
+ */
211
+ getEndsAfterOccurrencesError(value: any, hasExtendedFrequencyColumns?: boolean): string;
212
+ applyEndsByDateValidation(obj: any, hasExtendedFrequencyColumns?: boolean): void;
213
+ hasValue(value: any): boolean;
214
+ /**
215
+ * Optional unless either day or month is filled. Cannot be used together with Ends After Occurrences.
216
+ * Day must be numeric, greater than 0, and at most 31. Month must be full month name + ' + two-digit
217
+ * year (January'28). Combined date must exist, including leap-year February 29.
218
+ */
219
+ getEndsByDateValidation(day: any, month: any, hasExtendedFrequencyColumns?: boolean, endsAfterOccurrences?: any): {
220
+ isValid: boolean;
221
+ dayError: string;
222
+ monthError: string;
223
+ };
224
+ getEndsByDateDayError(day: string): string;
225
+ getEndsByDateMonthError(month: string): string;
226
+ isValidEndsByCalendarDate(day: string, month: string): boolean;
227
+ isEndsByDateInPast(day: string, month: string): boolean;
228
+ normalizeDueTime(dueTime: any): string;
195
229
  /**
196
230
  * It takes a string, removes all whitespace, and returns the string
197
231
  * @param {any} name - the name of the responsibility
@@ -1,3 +1,5 @@
1
1
  export declare const REGEX: {
2
2
  MONTH: RegExp;
3
+ DUE_TIME: RegExp;
4
+ ENDS_BY_DATE_MONTH: RegExp;
3
5
  };
@@ -1,7 +1,15 @@
1
1
  export declare const RISK_CLASS_LIST: string[];
2
+ export declare const FULL_MONTH_NAMES: string[];
2
3
  export declare const VALIDATION_MESSAGES: {
3
4
  RISK_CLASS: string;
4
5
  DAY: string;
5
6
  DATE_FORMAT: string;
6
7
  DUE_DATE: string;
8
+ DUE_TIME: string;
9
+ ENDS_AFTER_OCCURRENCES_GREATER_THAN_ZERO: string;
10
+ ENDS_AFTER_OCCURRENCES_NUMERIC: string;
11
+ ENDS_BY_DATE_INVALID_VALUE: string;
12
+ ENDS_BY_DATE_INCOMPLETE: string;
13
+ ENDS_BY_DATE_PAST: string;
14
+ ENDS_BY_DATE_CONFLICT: string;
7
15
  };
@@ -6,6 +6,13 @@ export declare class BulkResponsibilityViewComponent {
6
6
  DAY: string;
7
7
  DATE_FORMAT: string;
8
8
  DUE_DATE: string;
9
+ DUE_TIME: string;
10
+ ENDS_AFTER_OCCURRENCES_GREATER_THAN_ZERO: string;
11
+ ENDS_AFTER_OCCURRENCES_NUMERIC: string;
12
+ ENDS_BY_DATE_INVALID_VALUE: string;
13
+ ENDS_BY_DATE_INCOMPLETE: string;
14
+ ENDS_BY_DATE_PAST: string;
15
+ ENDS_BY_DATE_CONFLICT: string;
9
16
  };
10
17
  responsibilityBulkUpload: any;
11
18
  fileName: any;
@@ -19,8 +26,12 @@ export declare class BulkResponsibilityViewComponent {
19
26
  responsibilityType: string;
20
27
  finalResponsibilities: number;
21
28
  isConfirmClickable: boolean;
29
+ isHorizontallyScrolled: boolean;
22
30
  responsibilityMultiTabBulkUpload: any;
31
+ get hasExtendedFrequencyColumns(): boolean;
32
+ get hasProgramColumn(): boolean;
23
33
  ngOnChanges(): void;
34
+ onGridScroll(event: Event): void;
24
35
  submit(): void;
25
36
  close(): void;
26
37
  static ɵfac: i0.ɵɵFactoryDeclaration<BulkResponsibilityViewComponent, never>;
@@ -169,7 +169,7 @@ export declare class WorkflowRiskComponent implements OnInit {
169
169
  setPopupButtons(): void;
170
170
  getRiskDetails(riskId: any): void;
171
171
  populateOptionalFields(): void;
172
- setCategoryType(type: any): "strategic" | "compliance" | "others" | "operational";
172
+ setCategoryType(type: any): "compliance" | "strategic" | "others" | "operational";
173
173
  getRCList(): void;
174
174
  getCategoryList(): void;
175
175
  getOwnersList(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "7.3.9",
3
+ "version": "7.4.0",
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 "