iptdevs-design-system 3.1.941 → 3.1.944
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 +16 -22
- package/esm2020/lib/core/models/terms/terms-rs.model.mjs +1 -1
- package/esm2020/lib/core/services/certificate-service/certificate.service.mjs +11 -1
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +11 -1
- package/fesm2015/iptdevs-design-system.mjs +36 -22
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +35 -21
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.d.ts +1 -1
- package/lib/core/models/terms/terms-rs.model.d.ts +180 -0
- package/lib/core/services/certificate-service/certificate.service.d.ts +2 -0
- package/lib/core/services/commercial-service/comercial.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -3891,6 +3891,16 @@ class CommercialService extends IPTGeneralService {
|
|
|
3891
3891
|
this.generateRequestParams(params);
|
|
3892
3892
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
3893
3893
|
}
|
|
3894
|
+
extendTimeOfAcceptanceOfTerms(params) {
|
|
3895
|
+
let serviceUrl = this.SERVICE_URL + 'extend/time/of/acceptance/of/terms';
|
|
3896
|
+
this.generateRequestParams(params);
|
|
3897
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
3898
|
+
}
|
|
3899
|
+
newTermsAndConditionsAcceptanceToken(params) {
|
|
3900
|
+
let serviceUrl = this.SERVICE_URL + 'new/terms/and/conditions/acceptance/token';
|
|
3901
|
+
this.generateRequestParams(params);
|
|
3902
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
3903
|
+
}
|
|
3894
3904
|
}
|
|
3895
3905
|
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 });
|
|
3896
3906
|
CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
|
|
@@ -4887,7 +4897,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4887
4897
|
state: ['', [Validators.required], []],
|
|
4888
4898
|
city: ['', [Validators.required], []],
|
|
4889
4899
|
student_id_card_type: ['', [Validators.required], []],
|
|
4890
|
-
student_id_card: [{ value: '', disabled: true }, [Validators.required, Validators.minLength(5), Validators.maxLength(20)]],
|
|
4900
|
+
student_id_card: [{ value: '', disabled: true }, [Validators.required, Validators.minLength(5), Validators.maxLength(20), Validators.pattern(/^[a-zA-Z0-9]*$/)]],
|
|
4891
4901
|
student_last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32)]],
|
|
4892
4902
|
student_name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)]],
|
|
4893
4903
|
student_email: ['', [Validators.required, Validators.email]],
|
|
@@ -5055,34 +5065,28 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
5055
5065
|
}
|
|
5056
5066
|
}
|
|
5057
5067
|
trackStudentIdCardChanges() {
|
|
5058
|
-
console.log('
|
|
5059
|
-
this.
|
|
5060
|
-
this.codFormStepTwo.controls['student_id_card'].valueChanges.pipe().subscribe(value => {
|
|
5068
|
+
console.log('trackStudentIdCardChanges called'); // Depuración
|
|
5069
|
+
this.codFormStepTwo.controls['student_id_card'].valueChanges.subscribe(value => {
|
|
5061
5070
|
console.log('student_id_card value:', value); // Depuración
|
|
5071
|
+
this.updateIdTypes(value);
|
|
5072
|
+
});
|
|
5073
|
+
}
|
|
5074
|
+
updateIdTypes(value) {
|
|
5075
|
+
console.log('updateIdTypes called with value:', value); // Depuración
|
|
5076
|
+
if (this.parametersAll?.TypeIdCardByCountryCol) {
|
|
5062
5077
|
if (value && /[a-zA-Z]/.test(value)) {
|
|
5063
5078
|
console.log('Contains letters, filtering idTypes'); // Depuración
|
|
5064
|
-
this.
|
|
5079
|
+
this.idTypes = this.parametersAll.TypeIdCardByCountryCol.filter((_, index) => ![0, 1, 2, 7].includes(index));
|
|
5065
5080
|
}
|
|
5066
5081
|
else {
|
|
5067
5082
|
console.log('No letters, restoring idTypes'); // Depuración
|
|
5068
|
-
|
|
5083
|
+
this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol]; // Crear una copia para forzar detección de cambios
|
|
5069
5084
|
}
|
|
5070
5085
|
console.log('Current idTypes:', this.idTypes); // Depuración
|
|
5071
|
-
}
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
// Crear una copia de idTypes para evitar mutar el original directamente
|
|
5076
|
-
let filteredIdTypes = [...this.idTypes];
|
|
5077
|
-
// Ordenar las posiciones de mayor a menor para evitar problemas al eliminar
|
|
5078
|
-
const sortedPositions = positionsToRemove.sort((a, b) => b - a);
|
|
5079
|
-
// Eliminar registros en las posiciones especificadas
|
|
5080
|
-
sortedPositions.forEach(position => {
|
|
5081
|
-
if (position >= 0 && position < filteredIdTypes.length) {
|
|
5082
|
-
filteredIdTypes.splice(position, 1);
|
|
5083
|
-
}
|
|
5084
|
-
});
|
|
5085
|
-
this.idTypes = filteredIdTypes;
|
|
5086
|
+
}
|
|
5087
|
+
else {
|
|
5088
|
+
console.log('TypeIdCardByCountryCol is undefined'); // Depuración
|
|
5089
|
+
this.idTypes = [];
|
|
5086
5090
|
}
|
|
5087
5091
|
}
|
|
5088
5092
|
}
|
|
@@ -7830,6 +7834,16 @@ class CertificateService extends IPTGeneralService {
|
|
|
7830
7834
|
getCertificatesApiUrl() {
|
|
7831
7835
|
return this.SERVICE_URL + 'post/certificates';
|
|
7832
7836
|
}
|
|
7837
|
+
generateCodFileInPdf(params) {
|
|
7838
|
+
let serviceUrl = this.SERVICE_URL + 'generate/cod/file/in/pdf';
|
|
7839
|
+
this.generateRequestParams(params);
|
|
7840
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
7841
|
+
}
|
|
7842
|
+
generateCodSendEmail(params) {
|
|
7843
|
+
let serviceUrl = this.SERVICE_URL + 'generate/cod/send/email';
|
|
7844
|
+
this.generateRequestParams(params);
|
|
7845
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
7846
|
+
}
|
|
7833
7847
|
}
|
|
7834
7848
|
CertificateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CertificateService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7835
7849
|
CertificateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CertificateService, providedIn: 'root' });
|