@fovestta2/web-angular 1.1.2 → 1.1.6

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.
@@ -17,7 +17,7 @@ export interface FormColumn {
17
17
  label: string;
18
18
  type: FieldType;
19
19
  placeholder?: string;
20
- required?: boolean;
20
+ required?: boolean | ((formGroup: FormGroup) => boolean);
21
21
  options?: {
22
22
  label: string;
23
23
  value: any;
@@ -77,10 +77,11 @@ export declare class AddUpdateFormComponent implements OnInit, OnDestroy, AfterV
77
77
  constructor(fb: FormBuilder, hostRef: ElementRef<HTMLElement>);
78
78
  ngOnInit(): void;
79
79
  ngOnChanges(changes: import('@angular/core').SimpleChanges): void;
80
+ updateExistingForm(): void;
80
81
  ngAfterViewInit(): void;
81
82
  getColumnWidth(column: FormColumn): string;
82
83
  getControl(name: string): FormControl;
83
- getSchema(column: FormColumn): ValidationSchema;
84
+ getSchema(column: FormColumn, group: AbstractControl): ValidationSchema;
84
85
  isImageField(column: FormColumn): boolean;
85
86
  getSectionArray(section: FormSection): FormArray;
86
87
  createSectionGroup(section: FormSection): FormGroup;
@@ -91,10 +92,10 @@ export declare class AddUpdateFormComponent implements OnInit, OnDestroy, AfterV
91
92
  isFieldDisabled(column: FormColumn, group: AbstractControl): boolean;
92
93
  initializeForm(): void;
93
94
  ngOnDestroy(): void;
94
- handleFieldChange(fieldName: string, eventValue?: any, control?: AbstractControl): void;
95
+ handleFieldChange(fieldName: string, eventValue?: any, control?: AbstractControl, group?: AbstractControl): void;
95
96
  formatMonthYearValue(value: string): string;
96
97
  parseMonthYearValue(value: string): string;
97
- handleMonthYearChange(fieldName: string, value: string, control?: AbstractControl): void;
98
+ handleMonthYearChange(fieldName: string, value: string, control?: AbstractControl, group?: AbstractControl): void;
98
99
  handleMonthYearBlur(fieldName: string): void;
99
100
  handleMonthYearPickerChange(fieldName: string, value: string): void;
100
101
  getMonthYearPickerValue(fieldName: string): string;
@@ -108,7 +109,7 @@ export declare class AddUpdateFormComponent implements OnInit, OnDestroy, AfterV
108
109
  buildValidators(validations?: FieldValidation[], formGroup?: FormGroup): any[];
109
110
  triggerFileUpload(fieldName: string): void;
110
111
  openTimePicker(fieldName: string): void;
111
- onFileChange(event: any, fieldName: string): void;
112
+ onFileChange(event: any, fieldName: string, group?: AbstractControl): void;
112
113
  extractFileName(value: string): string;
113
114
  getFilePreview(fieldName: string): string | null;
114
115
  getFileName(fieldName: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fovestta2/web-angular",
3
- "version": "1.1.2",
3
+ "version": "1.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "@angular/common": "^18.0.0",
10
10
  "@angular/core": "^18.0.0",
11
11
  "@angular/forms": "^18.0.0",
12
- "@fovestta2/validation-engine": "^1.2.3"
12
+ "@fovestta2/validation-engine": "^1.2.5"
13
13
  },
14
14
  "dependencies": {
15
15
  "tslib": "^2.3.0"