vcomply-workflow-engine 7.4.7 → 7.4.8

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.
@@ -6,6 +6,7 @@ import { AuthService } from '../workflow-services/auth.service';
6
6
  import { FrequencyBulkService } from '../workflow-services/frequency.service';
7
7
  import { ResponsibilityService } from '../workflow-services/responsibility.service';
8
8
  import { IframeService } from '../services/iframe.service';
9
+ import { BulkUploadService } from '../services/bulk-upload.service';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class AddMultipleResponsibilityWithTabComponent implements OnInit {
11
12
  private riskService;
@@ -14,6 +15,7 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
14
15
  private frequencyService;
15
16
  private snackBar;
16
17
  private iframeService;
18
+ private bulkUploadService;
17
19
  pickerChanged: EventEmitter<any>;
18
20
  populateOption: EventEmitter<any>;
19
21
  closeWorkflow: EventEmitter<any>;
@@ -118,12 +120,13 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
118
120
  };
119
121
  isDayInvalid: boolean;
120
122
  isDateFormatInvalid: boolean;
121
- constructor(riskService: AddRiskService, responsibilityService: ResponsibilityService, authService: AuthService, frequencyService: FrequencyBulkService, snackBar: SnackBarService, iframeService: IframeService);
123
+ constructor(riskService: AddRiskService, responsibilityService: ResponsibilityService, authService: AuthService, frequencyService: FrequencyBulkService, snackBar: SnackBarService, iframeService: IframeService, bulkUploadService: BulkUploadService);
122
124
  ngOnChanges(changes: SimpleChanges): void;
123
125
  ngOnInit(): void;
124
126
  triggerBrowseFile(): void;
125
127
  getUserDetails(): void;
126
128
  uploadedFile(event: any, tabType?: any): void;
129
+ blockUploadForColumnError(columnError: 'ok' | 'missing' | 'extra' | string): boolean;
127
130
  /**
128
131
  * It takes a worksheet and a sheet name, and then it sets the data for different tabs.
129
132
  * @param ws - XLSX.WorkSheet, sheet: string
@@ -244,6 +247,13 @@ export declare class AddMultipleResponsibilityWithTabComponent implements OnInit
244
247
  isInDropdownList(value: any, options: string[]): boolean;
245
248
  isValidDropdownDay(value: any): boolean;
246
249
  isValidDropdownMonth(value: any): boolean;
250
+ isValidDueDateMonth(value: any): boolean;
251
+ getDueDateDayMax(frequency: any): number;
252
+ /**
253
+ * G2 / G3: DD-01, DD-02, DD-03, DM-01, DM-02.
254
+ * Blank day and month together stay valid. Warning/info are not used here.
255
+ */
256
+ applyDueDateDayMonthMessages(obj: any): void;
247
257
  isValidDueTime(dueTime: any, hasExtendedFrequencyColumns?: boolean): boolean;
248
258
  /**
249
259
  * Optional field. When filled, the value must be a non-negative whole number.
@@ -11,9 +11,22 @@ export declare const ASSIGNEE_TYPE_DROPDOWN_LIST: string[];
11
11
  export declare const RC_TYPE_DROPDOWN_LIST: string[];
12
12
  export declare const REVIEWER_TYPE_DROPDOWN_LIST: string[];
13
13
  export declare const FREQUENCY_DROPDOWN_LIST: string[];
14
+ /** Due Date (Day) max is 7 for these frequencies (DD-02). */
15
+ export declare const WEEKDAY_FREQUENCIES: string[];
16
+ export declare const SHORT_MONTH_NAMES: string[];
14
17
  export declare const FULL_MONTH_NAMES: string[];
18
+ export declare const FILE_VALIDATION_MESSAGES: {
19
+ HEADERS_MISSING: string;
20
+ EXTRA_COLUMNS: string;
21
+ };
22
+ export declare const REQUIRED_TEMPLATE_HEADERS: string[];
23
+ export declare const REQUIRED_FREQUENCY_HEADERS: string[];
24
+ export declare const REQUIRED_ASSIGNEE_HEADERS: string[];
25
+ export declare const ALLOWED_TEMPLATE_HEADERS: string[];
15
26
  export declare const VALIDATION_MESSAGES: {
16
27
  DROPDOWN: string;
28
+ FILE_HEADERS_MISSING: string;
29
+ FILE_EXTRA_COLUMNS: string;
17
30
  RESPONSIBILITY_NAME_REQUIRED: string;
18
31
  RESPONSIBILITY_NAME_WHITESPACE: string;
19
32
  PROGRAM_CATEGORY_MISMATCH: string;
@@ -4,6 +4,26 @@ export declare class BulkUploadService {
4
4
  hasDataInList(data: any, dataStartIndex: number): boolean;
5
5
  checkEmptyFile(data: any): boolean;
6
6
  checkCorrectFile(data: any, headerIndex: number): boolean;
7
+ getHeaderRows(data: any): {
8
+ header: any[];
9
+ subHeading: any[];
10
+ };
11
+ /**
12
+ * F-02: required header missing or renamed.
13
+ * F-03: extra columns inserted.
14
+ */
15
+ validateResponsibilityHeaders(sheets: Array<{
16
+ header?: any[];
17
+ subHeading?: any[];
18
+ sheet?: string;
19
+ }>): 'ok' | 'missing' | 'extra';
20
+ validateSheetHeaders(header?: any[], subHeading?: any[], sheet?: string): 'ok' | 'missing' | 'extra';
21
+ hasProgramColumns(header?: any[]): boolean;
22
+ findLabelIndex(header: any[] | undefined, subHeading: any[] | undefined, needle: string): number;
23
+ getExpectedLastHeaderIndex(header?: any[], subHeading?: any[], sheet?: string): number;
24
+ getMaxHeaderIndex(header?: any[], subHeading?: any[], sheet?: string): number;
25
+ normalizeHeaderLabel(value: any): string;
26
+ lastFilledIndex(row?: any[]): number;
7
27
  static ɵfac: i0.ɵɵFactoryDeclaration<BulkUploadService, never>;
8
28
  static ɵprov: i0.ɵɵInjectableDeclaration<BulkUploadService>;
9
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcomply-workflow-engine",
3
- "version": "7.4.7",
3
+ "version": "7.4.8",
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 "