iptdevs-design-system 3.1.939 → 3.1.941

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.
@@ -28,8 +28,7 @@ import * as i4 from 'primeng/skeleton';
28
28
  import { SkeletonModule } from 'primeng/skeleton';
29
29
  import * as i6$1 from 'primeng/button';
30
30
  import { ButtonModule } from 'primeng/button';
31
- import { BehaviorSubject, finalize, Subject, map } from 'rxjs';
32
- import { takeUntil } from 'rxjs/operators';
31
+ import { BehaviorSubject, finalize, map } from 'rxjs';
33
32
  import * as i11 from 'primeng/table';
34
33
  import { TableModule } from 'primeng/table';
35
34
  import * as i5$1 from '@angular/material/checkbox';
@@ -4784,7 +4783,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4784
4783
  super();
4785
4784
  this.fb = fb;
4786
4785
  this.changeStepEvent = new EventEmitter();
4787
- this.destroy$ = new Subject();
4788
4786
  this.errorMessage = 'Faltan campos por llenar.';
4789
4787
  this.hasErrors = false;
4790
4788
  this.genders = [];
@@ -4795,8 +4793,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
4795
4793
  this.initForm();
4796
4794
  this.startLocalStorageWork();
4797
4795
  this.validateErrors();
4798
- this.getParameters();
4799
4796
  this.trackStudentIdCardChanges();
4797
+ this.getParameters();
4800
4798
  if (changes['initialData']) {
4801
4799
  if (this.initialData != null) {
4802
4800
  if (this.initialData.student != null) {
@@ -4808,10 +4806,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4808
4806
  }
4809
4807
  }
4810
4808
  }
4811
- ngOnDestroy() {
4812
- this.destroy$.next();
4813
- this.destroy$.complete();
4814
- }
4815
4809
  setDataFromUserHistory() {
4816
4810
  this.codFormStepTwo.controls['student_name'].setValue(this.initialData.name);
4817
4811
  this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.last_name);
@@ -5061,7 +5055,9 @@ class CodFormStepTwoComponent extends CodFormSteps {
5061
5055
  }
5062
5056
  }
5063
5057
  trackStudentIdCardChanges() {
5064
- this.codFormStepTwo.controls['student_id_card'].valueChanges.pipe(takeUntil(this.destroy$)).subscribe(value => {
5058
+ console.log('entro aqui');
5059
+ this.idTypes = this.parametersAll?.TypeIdCardByCountryCol;
5060
+ this.codFormStepTwo.controls['student_id_card'].valueChanges.pipe().subscribe(value => {
5065
5061
  console.log('student_id_card value:', value); // Depuración
5066
5062
  if (value && /[a-zA-Z]/.test(value)) {
5067
5063
  console.log('Contains letters, filtering idTypes'); // Depuración
@@ -5069,7 +5065,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
5069
5065
  }
5070
5066
  else {
5071
5067
  console.log('No letters, restoring idTypes'); // Depuración
5072
- this.idTypes = this.parametersAll?.TypeIdCardByCountryCol || [];
5068
+ // this.idTypes = this.parametersAll?.TypeIdCardByCountryCol;
5073
5069
  }
5074
5070
  console.log('Current idTypes:', this.idTypes); // Depuración
5075
5071
  });