myrta-ui 1.1.25 → 1.1.26
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/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +1 -1
- package/esm2020/lib/services/mrx-form-validator/validations/max-value.validation.mjs +2 -2
- package/esm2020/lib/services/mrx-form-validator/validations/min-value.validation.mjs +2 -2
- package/fesm2015/myrta-ui.mjs +2 -2
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +2 -2
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/lib/services/mrx-form-validator/validations/max-value.validation.d.ts +1 -2
- package/lib/services/mrx-form-validator/validations/min-value.validation.d.ts +1 -2
- package/package.json +1 -1
package/fesm2020/myrta-ui.mjs
CHANGED
|
@@ -4315,7 +4315,7 @@ const minLengthValidation = (value, validations, key, invalidMessages) => {
|
|
|
4315
4315
|
|
|
4316
4316
|
const minValueValidation = (value, validations, key, invalidMessages) => {
|
|
4317
4317
|
const result = { isValid: true, message: null };
|
|
4318
|
-
if (parseInt(value)
|
|
4318
|
+
if (parseInt(value) < Number(validations[key])) {
|
|
4319
4319
|
result.message = getErrorMessageHelper(key, invalidMessages, validations.messages, Number(validations[key]));
|
|
4320
4320
|
result.isValid = false;
|
|
4321
4321
|
}
|
|
@@ -4324,7 +4324,7 @@ const minValueValidation = (value, validations, key, invalidMessages) => {
|
|
|
4324
4324
|
|
|
4325
4325
|
const maxValueValidation = (value, validations, key, invalidMessages) => {
|
|
4326
4326
|
const result = { isValid: true, message: null };
|
|
4327
|
-
if (parseInt(value)
|
|
4327
|
+
if (parseInt(value) > Number(validations[key])) {
|
|
4328
4328
|
result.message = getErrorMessageHelper(key, invalidMessages, validations.messages, Number(validations[key]));
|
|
4329
4329
|
result.isValid = false;
|
|
4330
4330
|
}
|