@dereekb/dbx-form 8.7.0 → 8.7.1
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.
|
@@ -466,18 +466,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
466
466
|
}] });
|
|
467
467
|
|
|
468
468
|
function minLengthValidationMessage(err, field) {
|
|
469
|
-
return `Should have atleast ${field.props.minLength} characters
|
|
469
|
+
return `Should have atleast ${field.props.minLength} characters.`;
|
|
470
470
|
}
|
|
471
471
|
function maxLengthValidationMessage(err, field) {
|
|
472
|
-
return `This value should be less than ${field.props.maxLength} characters
|
|
472
|
+
return `This value should be less than ${field.props.maxLength} characters.`;
|
|
473
473
|
}
|
|
474
474
|
function minValidationMessage(err, field) {
|
|
475
|
-
return `This value should be more than ${field.props.min}
|
|
475
|
+
return `This value should be more than or equal to ${field.props.min}.`;
|
|
476
476
|
}
|
|
477
477
|
function maxValidationMessage(err, field) {
|
|
478
|
-
return `This value should be less than ${field.props.max}
|
|
478
|
+
return `This value should be less than or equal to ${field.props.max}.`;
|
|
479
479
|
}
|
|
480
|
-
const REQUIRED_VALIDATION_MESSAGE = { name: 'required', message: 'This field is required' };
|
|
480
|
+
const REQUIRED_VALIDATION_MESSAGE = { name: 'required', message: 'This field is required.' };
|
|
481
481
|
const MIN_LENGTH_VALIDATION_MESSAGE = { name: 'minLength', message: minLengthValidationMessage };
|
|
482
482
|
const MAX_LENGTH_VALIDATION_MESSAGE = { name: 'maxLength', message: maxLengthValidationMessage };
|
|
483
483
|
const MIN_VALIDATION_MESSAGE = { name: 'min', message: minValidationMessage };
|