iptdevs-design-system 2.7.80 → 2.7.82
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/logic/local-storage-cod.service.mjs +11 -11
- package/esm2020/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.mjs +21 -5
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +9 -6
- package/fesm2015/iptdevs-design-system.mjs +38 -19
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +38 -19
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -2231,28 +2231,28 @@ class LocalStorageCODService {
|
|
|
2231
2231
|
constructor() { }
|
|
2232
2232
|
getCodFormData(step, control) {
|
|
2233
2233
|
if (step === 1)
|
|
2234
|
-
return
|
|
2234
|
+
return sessionStorage.getItem(`COD FORM - step1(${control})`);
|
|
2235
2235
|
if (step === 2)
|
|
2236
|
-
return
|
|
2236
|
+
return sessionStorage.getItem(`COD FORM - step2(${control})`);
|
|
2237
2237
|
if (step === 3)
|
|
2238
|
-
return
|
|
2238
|
+
return sessionStorage.getItem(`COD FORM - step3(${control})`);
|
|
2239
2239
|
if (step === 4)
|
|
2240
|
-
return
|
|
2240
|
+
return sessionStorage.getItem(`COD FORM - step4(${control})`);
|
|
2241
2241
|
if (step === 5)
|
|
2242
|
-
return
|
|
2242
|
+
return sessionStorage.getItem(`COD FORM - step5(${control})`);
|
|
2243
2243
|
return null;
|
|
2244
2244
|
}
|
|
2245
2245
|
setCodFormData(step, control, value) {
|
|
2246
2246
|
if (step === 1)
|
|
2247
|
-
|
|
2247
|
+
sessionStorage.setItem(`COD FORM - step1(${control})`, value);
|
|
2248
2248
|
if (step === 2)
|
|
2249
|
-
|
|
2249
|
+
sessionStorage.setItem(`COD FORM - step2(${control})`, value);
|
|
2250
2250
|
if (step === 3)
|
|
2251
|
-
|
|
2251
|
+
sessionStorage.setItem(`COD FORM - step3(${control})`, value);
|
|
2252
2252
|
if (step === 4)
|
|
2253
|
-
|
|
2253
|
+
sessionStorage.setItem(`COD FORM - step4(${control})`, value);
|
|
2254
2254
|
if (step === 5)
|
|
2255
|
-
|
|
2255
|
+
sessionStorage.setItem(`COD FORM - step5(${control})`, value);
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
2258
|
LocalStorageCODService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LocalStorageCODService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2993,13 +2993,15 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2993
2993
|
this.codFormStepTwo.controls['student_last_name'].setValue(this.initialData.student.last_name);
|
|
2994
2994
|
this.codFormStepTwo.controls['student_id_card_type'].setValue(this.initialData.student.id_card_type);
|
|
2995
2995
|
this.codFormStepTwo.controls['student_id_card'].setValue(this.initialData.student.id_card);
|
|
2996
|
-
this.codFormStepTwo.controls['country'].setValue(this.initialData.student.city.country);
|
|
2997
|
-
this.codFormStepTwo.controls['state'].setValue(this.initialData.student.city.state);
|
|
2998
|
-
this.codFormStepTwo.controls['city'].setValue(this.initialData.student.city.code);
|
|
2996
|
+
this.codFormStepTwo.controls['country'].setValue(this.initialData.student.city[0].country);
|
|
2997
|
+
this.codFormStepTwo.controls['state'].setValue(this.initialData.student.city[0].state);
|
|
2998
|
+
this.codFormStepTwo.controls['city'].setValue(this.initialData.student.city[0].code);
|
|
2999
2999
|
this.codFormStepTwo.controls['gender'].setValue(this.initialData.student.gender);
|
|
3000
|
-
this.codFormStepTwo.controls['grade'].setValue(this.initialData.aditional_information.grade);
|
|
3001
|
-
this.codFormStepTwo.controls['student_occupation'].setValue(this.initialData.aditional_information.occupation);
|
|
3002
3000
|
this.codFormStepTwo.controls['nickname'].setValue(this.initialData.student.nick_name);
|
|
3001
|
+
this.codFormStepTwo.controls['stratum'].setValue(this.initialData.aditional_information.social_stratum);
|
|
3002
|
+
this.codFormStepTwo.controls['student_occupation'].setValue(this.initialData.aditional_information.student_occupation);
|
|
3003
|
+
this.codFormStepTwo.controls['grade'].setValue(this.initialData.aditional_information.educational_level);
|
|
3004
|
+
this.codFormStepTwo.controls['civil_status'].setValue(this.initialData.aditional_information.civil_status);
|
|
3003
3005
|
this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.student.phone_indicative);
|
|
3004
3006
|
this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.student.phone_number);
|
|
3005
3007
|
this.codFormStepTwo.controls['birthdate'].setValue(this.initialData.student.birthdate);
|
|
@@ -3099,6 +3101,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3099
3101
|
});
|
|
3100
3102
|
this.parameterService.getGenders().subscribe((response) => {
|
|
3101
3103
|
this.genders = response.data;
|
|
3104
|
+
console.log(this.genders);
|
|
3102
3105
|
});
|
|
3103
3106
|
this.parameterService.getAllCities().subscribe((response) => {
|
|
3104
3107
|
this.cities = response.data;
|
|
@@ -3245,13 +3248,29 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3245
3248
|
// Controls del formulario
|
|
3246
3249
|
this.controls = new CodFormControls().controls[2];
|
|
3247
3250
|
}
|
|
3248
|
-
ngOnInit() {
|
|
3251
|
+
// ngOnInit(): void {
|
|
3252
|
+
// this.getParameters();
|
|
3253
|
+
// this.initForm();
|
|
3254
|
+
// this.startLocalStorageWork();
|
|
3255
|
+
// this.validateErrors();
|
|
3256
|
+
// if (this.initialData != null) {
|
|
3257
|
+
// this.setValueStepThree();
|
|
3258
|
+
// }
|
|
3259
|
+
// }
|
|
3260
|
+
ngOnChanges(changes) {
|
|
3249
3261
|
this.getParameters();
|
|
3250
3262
|
this.initForm();
|
|
3251
3263
|
this.startLocalStorageWork();
|
|
3252
3264
|
this.validateErrors();
|
|
3253
|
-
if (
|
|
3254
|
-
this.
|
|
3265
|
+
if (changes['initialData']) {
|
|
3266
|
+
if (this.initialData.parent != null) {
|
|
3267
|
+
console.log(this.initialData.parent);
|
|
3268
|
+
this.selectNeedAtendant(1);
|
|
3269
|
+
this.setValueStepThree();
|
|
3270
|
+
}
|
|
3271
|
+
else {
|
|
3272
|
+
console.log('No tiene acudiente');
|
|
3273
|
+
}
|
|
3255
3274
|
}
|
|
3256
3275
|
}
|
|
3257
3276
|
validateErrors() {
|
|
@@ -3397,7 +3416,7 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3397
3416
|
}
|
|
3398
3417
|
}
|
|
3399
3418
|
CodFormStepThreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CodFormStepThreeComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }, { token: CodFormControls }], target: i0.ɵɵFactoryTarget.Component });
|
|
3400
|
-
CodFormStepThreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CodFormStepThreeComponent, selector: "app-cod-form-step-three", inputs: { initialData: "initialData" }, outputs: { changeStepEvent: "changeStepEvent" }, usesInheritance: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepThree\"class=\"grid\">\n <div class=\"col-12\">\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['needAtendant'].value\"\n [control]=\"codFormStepThree.controls['needAtendant']\"\n (eventSelect)=\"selectNeedAtendant($event)\"\n [data]=\"needAtendants\"\n [defaultText]=\"'Requiere acudiente'\"\n ></ipt-select>\n </div>\n\n <div *ngIf=\"needAtendant()\" class=\"grid col-12\">\n <div class=\"col-12 md:col-6\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepThree.controls['parent_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['parent_id_card_type'].value\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdTypeParents($event)\"\n [defaultText]=\"'Tipo de documento'\"\n [control]=\"codFormStepThree.controls['parent_id_card_type']\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['parent_phone_indicative'].value\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicativesParents($event)\"\n [defaultText]=\"'Indicativo'\"\n [control]=\"codFormStepThree.controls['parent_phone_indicative']\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepThree.controls['parent_occupation']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 md:col-6\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepThree.controls['parent_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepThree.controls['parent_id_card']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepThree.controls['parent_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n - Oficina'\"\n [control]=\"codFormStepThree.controls['parent_address']\"\n ></ipt-input>\n </div>\n </div>\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"(codFormStepThree.invalid && codFormStepThree.touched) && needAtendant()\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" class=\"ml-auto p-button-sm\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [""], components: [{ type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
3419
|
+
CodFormStepThreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CodFormStepThreeComponent, selector: "app-cod-form-step-three", inputs: { initialData: "initialData" }, outputs: { changeStepEvent: "changeStepEvent" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepThree\"class=\"grid\">\n <div class=\"col-12\">\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['needAtendant'].value\"\n [control]=\"codFormStepThree.controls['needAtendant']\"\n (eventSelect)=\"selectNeedAtendant($event)\"\n [data]=\"needAtendants\"\n [defaultText]=\"'Requiere acudiente'\"\n ></ipt-select>\n </div>\n\n <div *ngIf=\"needAtendant()\" class=\"grid col-12\">\n <div class=\"col-12 md:col-6\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepThree.controls['parent_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['parent_id_card_type'].value\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdTypeParents($event)\"\n [defaultText]=\"'Tipo de documento'\"\n [control]=\"codFormStepThree.controls['parent_id_card_type']\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['parent_phone_indicative'].value\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicativesParents($event)\"\n [defaultText]=\"'Indicativo'\"\n [control]=\"codFormStepThree.controls['parent_phone_indicative']\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepThree.controls['parent_occupation']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 md:col-6\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepThree.controls['parent_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepThree.controls['parent_id_card']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepThree.controls['parent_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n - Oficina'\"\n [control]=\"codFormStepThree.controls['parent_address']\"\n ></ipt-input>\n </div>\n </div>\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"(codFormStepThree.invalid && codFormStepThree.touched) && needAtendant()\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" class=\"ml-auto p-button-sm\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [""], components: [{ type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
|
|
3401
3420
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CodFormStepThreeComponent, decorators: [{
|
|
3402
3421
|
type: Component,
|
|
3403
3422
|
args: [{ selector: 'app-cod-form-step-three', template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepThree\"class=\"grid\">\n <div class=\"col-12\">\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['needAtendant'].value\"\n [control]=\"codFormStepThree.controls['needAtendant']\"\n (eventSelect)=\"selectNeedAtendant($event)\"\n [data]=\"needAtendants\"\n [defaultText]=\"'Requiere acudiente'\"\n ></ipt-select>\n </div>\n\n <div *ngIf=\"needAtendant()\" class=\"grid col-12\">\n <div class=\"col-12 md:col-6\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepThree.controls['parent_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['parent_id_card_type'].value\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdTypeParents($event)\"\n [defaultText]=\"'Tipo de documento'\"\n [control]=\"codFormStepThree.controls['parent_id_card_type']\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepThree.controls['parent_phone_indicative'].value\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicativesParents($event)\"\n [defaultText]=\"'Indicativo'\"\n [control]=\"codFormStepThree.controls['parent_phone_indicative']\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepThree.controls['parent_occupation']\"\n ></ipt-input>\n </div>\n <div class=\"col-12 md:col-6\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepThree.controls['parent_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepThree.controls['parent_id_card']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepThree.controls['parent_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n - Oficina'\"\n [control]=\"codFormStepThree.controls['parent_address']\"\n ></ipt-input>\n </div>\n </div>\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"(codFormStepThree.invalid && codFormStepThree.touched) && needAtendant()\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" class=\"ml-auto p-button-sm\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [""] }]
|