@stemy/ngx-dynamic-form 19.9.2 → 19.9.3
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.
|
@@ -284,7 +284,7 @@ export interface IDynamicForm {
|
|
|
284
284
|
getField(path: string): FormFieldConfig;
|
|
285
285
|
getControl(path: string): AbstractControl;
|
|
286
286
|
}
|
|
287
|
-
type FormFieldValidatorFn<T> = ((control: AbstractControl, field:
|
|
287
|
+
type FormFieldValidatorFn<T> = ((control: AbstractControl, field: FormFieldConfig) => T) & {
|
|
288
288
|
validatorName?: string;
|
|
289
289
|
};
|
|
290
290
|
export type ValidationMessageFn = (error: any, field: FormFieldConfig) => string | Observable<string>;
|
|
@@ -9,6 +9,6 @@ export declare function emailValidation(): ValidatorFn;
|
|
|
9
9
|
export declare function arrayLengthValidation(min?: number, max?: number): ValidatorFn;
|
|
10
10
|
export declare function minLengthValidation(minLength: number, each?: boolean): ValidatorFn;
|
|
11
11
|
export declare function maxLengthValidation(maxLength: number, each?: boolean): ValidatorFn;
|
|
12
|
-
export declare function minValueValidation(
|
|
13
|
-
export declare function maxValueValidation(
|
|
12
|
+
export declare function minValueValidation(each?: boolean): ValidatorFn;
|
|
13
|
+
export declare function maxValueValidation(each?: boolean): ValidatorFn;
|
|
14
14
|
export declare function setFieldMinDate(field: FormFieldConfig, min: Date): void;
|