iptdevs-design-system 3.1.938 → 3.1.940
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/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +5 -11
- package/esm2020/lib/core/models/terms/terms-rs.model.mjs +2 -0
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +6 -1
- package/fesm2015/iptdevs-design-system.mjs +10 -10
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +10 -10
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.d.ts +2 -4
- package/lib/core/models/terms/terms-rs.model.d.ts +196 -0
- package/lib/core/services/commercial-service/comercial.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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,
|
|
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';
|
|
@@ -3887,6 +3886,11 @@ class CommercialService extends IPTGeneralService {
|
|
|
3887
3886
|
this.generateRequestParams(params);
|
|
3888
3887
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
3889
3888
|
}
|
|
3889
|
+
obtainCodByAdvisorWithTheirStates(params) {
|
|
3890
|
+
let serviceUrl = this.SERVICE_URL + 'obtain/cod/by/advisor/with/their/states';
|
|
3891
|
+
this.generateRequestParams(params);
|
|
3892
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
3893
|
+
}
|
|
3890
3894
|
}
|
|
3891
3895
|
CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3892
3896
|
CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
|
|
@@ -4779,7 +4783,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4779
4783
|
super();
|
|
4780
4784
|
this.fb = fb;
|
|
4781
4785
|
this.changeStepEvent = new EventEmitter();
|
|
4782
|
-
this.destroy$ = new Subject();
|
|
4783
4786
|
this.errorMessage = 'Faltan campos por llenar.';
|
|
4784
4787
|
this.hasErrors = false;
|
|
4785
4788
|
this.genders = [];
|
|
@@ -4790,8 +4793,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4790
4793
|
this.initForm();
|
|
4791
4794
|
this.startLocalStorageWork();
|
|
4792
4795
|
this.validateErrors();
|
|
4793
|
-
this.getParameters();
|
|
4794
4796
|
this.trackStudentIdCardChanges();
|
|
4797
|
+
this.getParameters();
|
|
4795
4798
|
if (changes['initialData']) {
|
|
4796
4799
|
if (this.initialData != null) {
|
|
4797
4800
|
if (this.initialData.student != null) {
|
|
@@ -4803,10 +4806,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4803
4806
|
}
|
|
4804
4807
|
}
|
|
4805
4808
|
}
|
|
4806
|
-
ngOnDestroy() {
|
|
4807
|
-
this.destroy$.next();
|
|
4808
|
-
this.destroy$.complete();
|
|
4809
|
-
}
|
|
4810
4809
|
setDataFromUserHistory() {
|
|
4811
4810
|
this.codFormStepTwo.controls['student_name'].setValue(this.initialData.name);
|
|
4812
4811
|
this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.last_name);
|
|
@@ -5056,7 +5055,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
5056
5055
|
}
|
|
5057
5056
|
}
|
|
5058
5057
|
trackStudentIdCardChanges() {
|
|
5059
|
-
|
|
5058
|
+
console.log('entro aqui');
|
|
5059
|
+
this.codFormStepTwo.controls['student_id_card'].valueChanges.pipe().subscribe(value => {
|
|
5060
5060
|
console.log('student_id_card value:', value); // Depuración
|
|
5061
5061
|
if (value && /[a-zA-Z]/.test(value)) {
|
|
5062
5062
|
console.log('Contains letters, filtering idTypes'); // Depuración
|
|
@@ -5064,7 +5064,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
5064
5064
|
}
|
|
5065
5065
|
else {
|
|
5066
5066
|
console.log('No letters, restoring idTypes'); // Depuración
|
|
5067
|
-
this.idTypes = this.parametersAll?.TypeIdCardByCountryCol
|
|
5067
|
+
this.idTypes = this.parametersAll?.TypeIdCardByCountryCol;
|
|
5068
5068
|
}
|
|
5069
5069
|
console.log('Current idTypes:', this.idTypes); // Depuración
|
|
5070
5070
|
});
|