monkey-front-components 0.0.409 → 0.0.411

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.
@@ -5,9 +5,9 @@ import { takeUntil, debounceTime, filter } from 'rxjs/operators';
5
5
  import * as i1$2 from 'monkey-style-guide';
6
6
  import { MonkeyUtils, MonkeyInputModule, MonkeySelectModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyFileUploadModule, MonkeyButtonModule, MonkeyInputPhoneModule, MonkeyBadgeModule, MonkeyCheckboxModule, MonkeyDateRangePickerModule, MonkeyIconModule } from 'monkey-style-guide';
7
7
  import * as i1$4 from 'monkey-front-core';
8
- import { MonkeyEcxCommonsService, ValidateUtils, Validators as Validators$1, MonkeyEcxUtils, MonkeyEcxDirectivesModule, MonkeyEcxPipesModule } from 'monkey-front-core';
8
+ import { MonkeyEcxCommonsService, ValidateUtils, Validators, MonkeyEcxUtils, MonkeyEcxDirectivesModule, MonkeyEcxPipesModule } from 'monkey-front-core';
9
9
  import * as i1 from '@angular/forms';
10
- import { Validators, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
10
+ import { Validators as Validators$1, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
11
11
  import * as i3 from '@angular/common';
12
12
  import { isPlatformBrowser, CommonModule } from '@angular/common';
13
13
  import * as i1$1 from '@angular/router';
@@ -297,10 +297,12 @@ class BaseComponent {
297
297
  getCountryValidators(country) {
298
298
  return {
299
299
  br: {
300
- governmentId: ValidateUtils.DocumentValidator
300
+ governmentId: ValidateUtils.DocumentValidator,
301
+ zipCode: Validators.zipCodeByCountry(country)
301
302
  },
302
303
  cl: {
303
- governmentId: ValidateUtils.DocumentRutValidator
304
+ governmentId: ValidateUtils.DocumentRutValidator,
305
+ zipCode: Validators.zipCodeByCountry(country)
304
306
  }
305
307
  }[country];
306
308
  }
@@ -332,19 +334,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
332
334
  }], ctorParameters: function () { return []; } });
333
335
 
334
336
  const validators = {
335
- required: Validators.required,
336
- email: Validators$1.email,
337
- governmentId: Validators$1.documentBR,
338
- governmentIdRut: Validators$1.documentCL,
339
- documentBR: Validators$1.documentBR,
340
- documentCL: Validators$1.documentCL,
341
- date: Validators$1.date,
342
- zipCode: Validators$1.zipCode,
337
+ required: Validators$1.required,
338
+ email: Validators.email,
339
+ governmentId: Validators.documentBR,
340
+ governmentIdRut: Validators.documentCL,
341
+ documentBR: Validators.documentBR,
342
+ documentCL: Validators.documentCL,
343
+ date: Validators.date,
344
+ zipCode: Validators.zipCode,
343
345
  minLength: (param) => {
344
- return Validators.minLength(param);
346
+ return Validators$1.minLength(param);
345
347
  },
346
348
  maxLength: (param) => {
347
- return Validators.maxLength(param);
349
+ return Validators$1.maxLength(param);
348
350
  }
349
351
  };
350
352
 
@@ -464,7 +466,7 @@ class BaseDynamicArray extends BaseComponent {
464
466
  : validators[valid.name];
465
467
  validList.push(validated);
466
468
  });
467
- return Validators.compose(validList);
469
+ return Validators$1.compose(validList);
468
470
  }
469
471
  return null;
470
472
  }
@@ -602,7 +604,7 @@ class BaseDynamic extends BaseComponent {
602
604
  : validators[valid.name];
603
605
  validList.push(validated);
604
606
  });
605
- return Validators.compose(validList);
607
+ return Validators$1.compose(validList);
606
608
  }
607
609
  return null;
608
610
  }