monkey-front-components 0.0.779 → 0.0.780
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/components/base/base-component.mjs +3 -1
- package/esm2020/lib/components/base/base-validators.mjs +3 -2
- package/fesm2015/monkey-front-components.mjs +4 -1
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +4 -1
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/monkey-front-components-0.0.780.tgz +0 -0
- package/package.json +2 -2
- package/monkey-front-components-0.0.779.tgz +0 -0
|
@@ -125,6 +125,8 @@ class BaseComponent {
|
|
|
125
125
|
}
|
|
126
126
|
if (formControl?.hasError('fullName'))
|
|
127
127
|
return 'FULL-NAME-REQUIRED';
|
|
128
|
+
if (formControl?.hasError('containsNumber'))
|
|
129
|
+
return 'CONTAINS-NUMBER';
|
|
128
130
|
return 'FIELD-INVALID';
|
|
129
131
|
}
|
|
130
132
|
getErrorLastMessageNotTranslated(formControl = null) {
|
|
@@ -397,7 +399,8 @@ const validators = {
|
|
|
397
399
|
return Validators$1.maxLength(param);
|
|
398
400
|
},
|
|
399
401
|
differentFromZero: Validators.differentFromZero,
|
|
400
|
-
fullName: Validators.validateFullName
|
|
402
|
+
fullName: Validators.validateFullName,
|
|
403
|
+
containsNumber: Validators.containsNumber
|
|
401
404
|
};
|
|
402
405
|
|
|
403
406
|
class BaseDynamicArray extends BaseComponent {
|