iptdevs-design-system 3.1.940 → 3.1.943
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 -21
- package/esm2020/lib/core/models/terms/terms-rs.model.mjs +1 -1
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +11 -1
- package/fesm2015/iptdevs-design-system.mjs +26 -21
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +25 -20
- 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/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,33 +5065,28 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
5055
5065
|
}
|
|
5056
5066
|
}
|
|
5057
5067
|
trackStudentIdCardChanges() {
|
|
5058
|
-
console.log('
|
|
5059
|
-
this.codFormStepTwo.controls['student_id_card'].valueChanges.
|
|
5068
|
+
console.log('trackStudentIdCardChanges called'); // Depuración
|
|
5069
|
+
this.codFormStepTwo.controls['student_id_card'].valueChanges.subscribe(value => {
|
|
5060
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) {
|
|
5061
5077
|
if (value && /[a-zA-Z]/.test(value)) {
|
|
5062
5078
|
console.log('Contains letters, filtering idTypes'); // Depuración
|
|
5063
|
-
this.
|
|
5079
|
+
this.idTypes = this.parametersAll.TypeIdCardByCountryCol.filter((_, index) => ![0, 1, 2, 7].includes(index));
|
|
5064
5080
|
}
|
|
5065
5081
|
else {
|
|
5066
5082
|
console.log('No letters, restoring idTypes'); // Depuración
|
|
5067
|
-
this.idTypes = this.parametersAll
|
|
5083
|
+
this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol]; // Crear una copia para forzar detección de cambios
|
|
5068
5084
|
}
|
|
5069
5085
|
console.log('Current idTypes:', this.idTypes); // Depuración
|
|
5070
|
-
}
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
// Crear una copia de idTypes para evitar mutar el original directamente
|
|
5075
|
-
let filteredIdTypes = [...this.idTypes];
|
|
5076
|
-
// Ordenar las posiciones de mayor a menor para evitar problemas al eliminar
|
|
5077
|
-
const sortedPositions = positionsToRemove.sort((a, b) => b - a);
|
|
5078
|
-
// Eliminar registros en las posiciones especificadas
|
|
5079
|
-
sortedPositions.forEach(position => {
|
|
5080
|
-
if (position >= 0 && position < filteredIdTypes.length) {
|
|
5081
|
-
filteredIdTypes.splice(position, 1);
|
|
5082
|
-
}
|
|
5083
|
-
});
|
|
5084
|
-
this.idTypes = filteredIdTypes;
|
|
5086
|
+
}
|
|
5087
|
+
else {
|
|
5088
|
+
console.log('TypeIdCardByCountryCol is undefined'); // Depuración
|
|
5089
|
+
this.idTypes = [];
|
|
5085
5090
|
}
|
|
5086
5091
|
}
|
|
5087
5092
|
}
|