monkey-front-components 0.0.779 → 0.0.781
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 +5 -2
- package/esm2020/lib/components/base/base-validators.mjs +3 -2
- package/fesm2015/monkey-front-components.mjs +6 -2
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +6 -2
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/monkey-front-components-0.0.781.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) {
|
|
@@ -315,7 +317,8 @@ class BaseComponent {
|
|
|
315
317
|
return {
|
|
316
318
|
br: 55,
|
|
317
319
|
cl: 56,
|
|
318
|
-
mx: 52
|
|
320
|
+
mx: 52,
|
|
321
|
+
us: 1
|
|
319
322
|
}[country] || '';
|
|
320
323
|
}
|
|
321
324
|
getCountryCurrencyChartFormat(country) {
|
|
@@ -397,7 +400,8 @@ const validators = {
|
|
|
397
400
|
return Validators$1.maxLength(param);
|
|
398
401
|
},
|
|
399
402
|
differentFromZero: Validators.differentFromZero,
|
|
400
|
-
fullName: Validators.validateFullName
|
|
403
|
+
fullName: Validators.validateFullName,
|
|
404
|
+
containsNumber: Validators.containsNumber
|
|
401
405
|
};
|
|
402
406
|
|
|
403
407
|
class BaseDynamicArray extends BaseComponent {
|