@nattyjs/forms 0.0.1-beta.1 → 0.0.1-beta.10
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/dist/index.cjs +9 -6
- package/dist/index.mjs +9 -6
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -405,13 +405,15 @@ class FormGroup {
|
|
|
405
405
|
this.clearErrorMessage(params.name);
|
|
406
406
|
return keys.length > 0 ? jErrors : null;
|
|
407
407
|
} else {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
408
|
+
if (validator?.validator) {
|
|
409
|
+
const errors = validator.validator(params);
|
|
410
|
+
if (errors)
|
|
411
|
+
this.setErrorMessage(params.name, errors);
|
|
412
|
+
else {
|
|
413
|
+
this.clearErrorMessage(params.name);
|
|
414
|
+
}
|
|
415
|
+
return errors;
|
|
413
416
|
}
|
|
414
|
-
return errors;
|
|
415
417
|
}
|
|
416
418
|
}
|
|
417
419
|
}
|
|
@@ -451,6 +453,7 @@ const Validators = {
|
|
|
451
453
|
};
|
|
452
454
|
|
|
453
455
|
validationDecorators.decoratorRegistrationCaller.register = ReactiveFormContainer.register;
|
|
456
|
+
console.log("local link");
|
|
454
457
|
|
|
455
458
|
exports.allOf = validationDecorators.decoratorAllOfValidation;
|
|
456
459
|
exports.alpha = validationDecorators.decoratorAlphaValidation;
|
package/dist/index.mjs
CHANGED
|
@@ -404,13 +404,15 @@ class FormGroup {
|
|
|
404
404
|
this.clearErrorMessage(params.name);
|
|
405
405
|
return keys.length > 0 ? jErrors : null;
|
|
406
406
|
} else {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
407
|
+
if (validator?.validator) {
|
|
408
|
+
const errors = validator.validator(params);
|
|
409
|
+
if (errors)
|
|
410
|
+
this.setErrorMessage(params.name, errors);
|
|
411
|
+
else {
|
|
412
|
+
this.clearErrorMessage(params.name);
|
|
413
|
+
}
|
|
414
|
+
return errors;
|
|
412
415
|
}
|
|
413
|
-
return errors;
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
418
|
}
|
|
@@ -450,5 +452,6 @@ const Validators = {
|
|
|
450
452
|
};
|
|
451
453
|
|
|
452
454
|
decoratorRegistrationCaller.register = ReactiveFormContainer.register;
|
|
455
|
+
console.log("local link");
|
|
453
456
|
|
|
454
457
|
export { RunValidatorStrategy, Validators, nattyForms, useForm };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattyjs/forms",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "ajayojha",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@nattyjs/validation-decorators": "0.0.1-beta.
|
|
18
|
+
"@nattyjs/validation-decorators": "0.0.1-beta.10"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"unbuild": "1.2.1"
|