monkey-front-components 0.0.719 → 0.0.720
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 +4 -6
- package/fesm2015/monkey-front-components.mjs +3 -5
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +3 -5
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/monkey-front-components-0.0.720.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-components-0.0.719.tgz +0 -0
|
@@ -120,8 +120,9 @@ class BaseComponent {
|
|
|
120
120
|
return 'INVALID-DATE-RANGE';
|
|
121
121
|
if (formControl?.hasError('differentFromZero'))
|
|
122
122
|
return 'DIFFERENT-FROMT-ZERO';
|
|
123
|
-
if (formControl?.hasError('invalidMinYears'))
|
|
124
|
-
return
|
|
123
|
+
if (formControl?.hasError('invalidMinYears')) {
|
|
124
|
+
return `INVALID-MIN-YEARS-${formControl?.getError('invalidMinYears').year}`;
|
|
125
|
+
}
|
|
125
126
|
return 'FIELD-INVALID';
|
|
126
127
|
}
|
|
127
128
|
getErrorLastMessageNotTranslated(formControl = null) {
|
|
@@ -137,9 +138,6 @@ class BaseComponent {
|
|
|
137
138
|
if (formControl?.hasError('min')) {
|
|
138
139
|
return `${formControl?.getError('min').min}`;
|
|
139
140
|
}
|
|
140
|
-
if (formControl?.hasError('invalidMinYears')) {
|
|
141
|
-
return `${formControl?.getError('invalidMinYears').year}`;
|
|
142
|
-
}
|
|
143
141
|
return '';
|
|
144
142
|
}
|
|
145
143
|
validateFormWithTranslate(f, index) {
|