@fovestta2/web-angular 1.1.5 → 1.1.7
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/esm2022/lib/add-update-form/add-update-form.component.mjs +116 -90
- package/esm2022/lib/fv-dropdown/fv-dropdown.component.mjs +10 -1
- package/esm2022/lib/fv-entry-field/fv-entry-field.component.mjs +10 -1
- package/fesm2022/fovestta2-web-angular.mjs +133 -89
- package/fesm2022/fovestta2-web-angular.mjs.map +1 -1
- package/lib/add-update-form/add-update-form.component.d.ts +5 -5
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -81,7 +81,7 @@ export declare class AddUpdateFormComponent implements OnInit, OnDestroy, AfterV
|
|
|
81
81
|
ngAfterViewInit(): void;
|
|
82
82
|
getColumnWidth(column: FormColumn): string;
|
|
83
83
|
getControl(name: string): FormControl;
|
|
84
|
-
getSchema(column: FormColumn): ValidationSchema;
|
|
84
|
+
getSchema(column: FormColumn, group: AbstractControl): ValidationSchema;
|
|
85
85
|
isImageField(column: FormColumn): boolean;
|
|
86
86
|
getSectionArray(section: FormSection): FormArray;
|
|
87
87
|
createSectionGroup(section: FormSection): FormGroup;
|
|
@@ -92,10 +92,10 @@ export declare class AddUpdateFormComponent implements OnInit, OnDestroy, AfterV
|
|
|
92
92
|
isFieldDisabled(column: FormColumn, group: AbstractControl): boolean;
|
|
93
93
|
initializeForm(): void;
|
|
94
94
|
ngOnDestroy(): void;
|
|
95
|
-
handleFieldChange(fieldName: string, eventValue?: any, control?: AbstractControl): void;
|
|
95
|
+
handleFieldChange(fieldName: string, eventValue?: any, control?: AbstractControl, group?: AbstractControl): void;
|
|
96
96
|
formatMonthYearValue(value: string): string;
|
|
97
97
|
parseMonthYearValue(value: string): string;
|
|
98
|
-
handleMonthYearChange(fieldName: string, value: string, control?: AbstractControl): void;
|
|
98
|
+
handleMonthYearChange(fieldName: string, value: string, control?: AbstractControl, group?: AbstractControl): void;
|
|
99
99
|
handleMonthYearBlur(fieldName: string): void;
|
|
100
100
|
handleMonthYearPickerChange(fieldName: string, value: string): void;
|
|
101
101
|
getMonthYearPickerValue(fieldName: string): string;
|
|
@@ -109,7 +109,7 @@ export declare class AddUpdateFormComponent implements OnInit, OnDestroy, AfterV
|
|
|
109
109
|
buildValidators(validations?: FieldValidation[], formGroup?: FormGroup): any[];
|
|
110
110
|
triggerFileUpload(fieldName: string): void;
|
|
111
111
|
openTimePicker(fieldName: string): void;
|
|
112
|
-
onFileChange(event: any, fieldName: string): void;
|
|
112
|
+
onFileChange(event: any, fieldName: string, group?: AbstractControl): void;
|
|
113
113
|
extractFileName(value: string): string;
|
|
114
114
|
getFilePreview(fieldName: string): string | null;
|
|
115
115
|
getFileName(fieldName: string): string | null;
|