monkey-front-components 0.0.718 → 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.
@@ -120,6 +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 `INVALID-MIN-YEARS-${formControl?.getError('invalidMinYears').year}`;
125
+ }
123
126
  return 'FIELD-INVALID';
124
127
  }
125
128
  getErrorLastMessageNotTranslated(formControl = null) {
@@ -362,6 +365,9 @@ const validators = {
362
365
  documentCL: Validators.documentCL,
363
366
  documentMX: Validators.documentMX,
364
367
  date: Validators.date,
368
+ minYears: (param) => {
369
+ return Validators.minYears(param);
370
+ },
365
371
  zipCode: Validators.zipCode,
366
372
  minLength: (param) => {
367
373
  return Validators$1.minLength(param);