iptdevs-design-system 3.1.383 → 3.1.385
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-self-managed/cod-form-self-managed/cod-self-managed.component.mjs +12 -37
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-four/cod-self-form-step-four.component.mjs +3 -3
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.mjs +24 -16
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-three/cod-self-form-step-three.component.mjs +3 -3
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-two/cod-self-form-step-two.component.mjs +3 -3
- package/fesm2015/iptdevs-design-system.mjs +50 -71
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +50 -71
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod-self-managed/cod-form-self-managed/cod-self-managed.component.d.ts +2 -4
- package/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.d.ts +10 -6
- package/package.json +1 -1
|
@@ -6096,111 +6096,90 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
6096
6096
|
}] });
|
|
6097
6097
|
|
|
6098
6098
|
class CodSelfFormStepOneComponent {
|
|
6099
|
-
constructor() {
|
|
6099
|
+
constructor(fb) {
|
|
6100
|
+
this.fb = fb;
|
|
6100
6101
|
this.completed = new EventEmitter();
|
|
6101
6102
|
}
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6103
|
+
ngOnInit() {
|
|
6104
|
+
this.initForm();
|
|
6105
|
+
}
|
|
6106
|
+
initForm() {
|
|
6107
|
+
this.codSelfFormStepOne = this.fb.group({
|
|
6108
|
+
name: ['', [Validators.required]],
|
|
6109
|
+
age: ['', [Validators.required]],
|
|
6110
|
+
});
|
|
6111
|
+
}
|
|
6112
|
+
sendForm() {
|
|
6113
|
+
this.codSelfFormStepOne.markAllAsTouched();
|
|
6114
|
+
if (this.codSelfFormStepOne.invalid)
|
|
6115
|
+
return;
|
|
6116
|
+
// Movernos al paso 1
|
|
6117
|
+
this.completed.emit(1);
|
|
6112
6118
|
}
|
|
6113
6119
|
}
|
|
6114
|
-
CodSelfFormStepOneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepOneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6115
|
-
CodSelfFormStepOneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepOneComponent, selector: "app-cod-self-form-step-one", outputs: { completed: "completed" }, ngImport: i0, template: "<div>\n <h2>Paso 1: Datos Personales</h2>\n <form
|
|
6120
|
+
CodSelfFormStepOneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepOneComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
6121
|
+
CodSelfFormStepOneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepOneComponent, selector: "app-cod-self-form-step-one", outputs: { completed: "completed" }, ngImport: i0, template: "<div>\n <h2>Paso 1: Datos Personales</h2>\n <form [formGroup]=\"codSelfFormStepOne\">\n <!-- <label for=\"name\">Nombre:</label>\n <input type=\"text\" id=\"name\" [(ngModel)]=\"name\" name=\"name\" required>\n\n <label for=\"age\">Edad:</label>\n <input type=\"number\" id=\"age\" [(ngModel)]=\"age\" name=\"age\" required> -->\n\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codSelfFormStepOne.controls['name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Edad'\"\n [control]=\"codSelfFormStepOne.controls['age']\"\n ></ipt-input>\n <!-- <button type=\"submit\">guardar</button> -->\n </form>\n</div>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <!-- <span *ngIf=\"codSelfFormStepOne.invalid && codSelfFormStepOne.touched\" 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\" [disabled]=\"codSelfFormStepOne.valid\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal", "disabledSel"], outputs: ["dateSelected"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
6116
6122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepOneComponent, decorators: [{
|
|
6117
6123
|
type: Component,
|
|
6118
|
-
args: [{ selector: 'app-cod-self-form-step-one', template: "<div>\n <h2>Paso 1: Datos Personales</h2>\n <form
|
|
6119
|
-
}], propDecorators: { completed: [{
|
|
6124
|
+
args: [{ selector: 'app-cod-self-form-step-one', template: "<div>\n <h2>Paso 1: Datos Personales</h2>\n <form [formGroup]=\"codSelfFormStepOne\">\n <!-- <label for=\"name\">Nombre:</label>\n <input type=\"text\" id=\"name\" [(ngModel)]=\"name\" name=\"name\" required>\n\n <label for=\"age\">Edad:</label>\n <input type=\"number\" id=\"age\" [(ngModel)]=\"age\" name=\"age\" required> -->\n\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codSelfFormStepOne.controls['name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Edad'\"\n [control]=\"codSelfFormStepOne.controls['age']\"\n ></ipt-input>\n <!-- <button type=\"submit\">guardar</button> -->\n </form>\n</div>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <!-- <span *ngIf=\"codSelfFormStepOne.invalid && codSelfFormStepOne.touched\" 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\" [disabled]=\"codSelfFormStepOne.valid\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n" }]
|
|
6125
|
+
}], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { completed: [{
|
|
6120
6126
|
type: Output
|
|
6121
6127
|
}] } });
|
|
6122
6128
|
|
|
6123
6129
|
class CodSelfFormStepTwoComponent {
|
|
6124
6130
|
}
|
|
6125
6131
|
CodSelfFormStepTwoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepTwoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6126
|
-
CodSelfFormStepTwoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepTwoComponent, selector: "app-cod-self-form-step-two", ngImport: i0, template: "", styles: [""] });
|
|
6132
|
+
CodSelfFormStepTwoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepTwoComponent, selector: "app-cod-self-form-step-two", ngImport: i0, template: "<span>step 2</span>\n", styles: [""] });
|
|
6127
6133
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepTwoComponent, decorators: [{
|
|
6128
6134
|
type: Component,
|
|
6129
|
-
args: [{ selector: 'app-cod-self-form-step-two', template: "" }]
|
|
6135
|
+
args: [{ selector: 'app-cod-self-form-step-two', template: "<span>step 2</span>\n" }]
|
|
6136
|
+
}] });
|
|
6137
|
+
|
|
6138
|
+
class CodSelfFormStepThreeComponent {
|
|
6139
|
+
}
|
|
6140
|
+
CodSelfFormStepThreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6141
|
+
CodSelfFormStepThreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three", ngImport: i0, template: "<span>step 3</span>\n", styles: [""] });
|
|
6142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, decorators: [{
|
|
6143
|
+
type: Component,
|
|
6144
|
+
args: [{ selector: 'app-cod-self-form-step-three', template: "<span>step 3</span>\n" }]
|
|
6145
|
+
}] });
|
|
6146
|
+
|
|
6147
|
+
class CodSelfFormStepFourComponent {
|
|
6148
|
+
}
|
|
6149
|
+
CodSelfFormStepFourComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepFourComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6150
|
+
CodSelfFormStepFourComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepFourComponent, selector: "app-cod-self-form-step-four", ngImport: i0, template: "<span>step 4</span>\n", styles: [""] });
|
|
6151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepFourComponent, decorators: [{
|
|
6152
|
+
type: Component,
|
|
6153
|
+
args: [{ selector: 'app-cod-self-form-step-four', template: "<span>step 4</span>\n" }]
|
|
6130
6154
|
}] });
|
|
6131
6155
|
|
|
6132
6156
|
class CodSelfManagedComponent {
|
|
6133
6157
|
constructor() {
|
|
6134
|
-
this.items = [];
|
|
6135
6158
|
this.currentStep = 0;
|
|
6159
|
+
this.items = [];
|
|
6136
6160
|
this.stepCompleted = [false, false, false, false];
|
|
6137
6161
|
}
|
|
6138
6162
|
ngOnInit() {
|
|
6139
6163
|
this.items = [
|
|
6140
|
-
{
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
}
|
|
6144
|
-
{
|
|
6145
|
-
label: 'Planes',
|
|
6146
|
-
id: '2',
|
|
6147
|
-
},
|
|
6148
|
-
{
|
|
6149
|
-
label: 'Payment',
|
|
6150
|
-
id: '3',
|
|
6151
|
-
},
|
|
6152
|
-
{
|
|
6153
|
-
label: 'Confirmation',
|
|
6154
|
-
id: '4',
|
|
6155
|
-
}
|
|
6164
|
+
{ label: 'Personal', id: '1' },
|
|
6165
|
+
{ label: 'Planes', id: '2' },
|
|
6166
|
+
{ label: 'Payment', id: '3' },
|
|
6167
|
+
{ label: 'Confirmation', id: '4' }
|
|
6156
6168
|
];
|
|
6157
6169
|
}
|
|
6158
|
-
onNext() {
|
|
6159
|
-
if (this.stepCompleted[this.currentStep]) {
|
|
6160
|
-
this.currentStep++;
|
|
6161
|
-
}
|
|
6162
|
-
else {
|
|
6163
|
-
// Aquí puedes mostrar algún mensaje de error o realizar alguna acción cuando el paso no está completado
|
|
6164
|
-
console.log('Completa el paso actual antes de avanzar.');
|
|
6165
|
-
}
|
|
6166
|
-
}
|
|
6167
|
-
onPrevious() {
|
|
6168
|
-
if (this.currentStep > 0) {
|
|
6169
|
-
this.currentStep--;
|
|
6170
|
-
}
|
|
6171
|
-
}
|
|
6172
6170
|
onChangeStep(step) {
|
|
6173
|
-
console.log(step.index);
|
|
6174
6171
|
console.log(step);
|
|
6175
6172
|
this.currentStep = step;
|
|
6176
6173
|
}
|
|
6177
|
-
|
|
6178
|
-
this.
|
|
6174
|
+
changeStep(step) {
|
|
6175
|
+
this.currentStep = step;
|
|
6179
6176
|
}
|
|
6180
6177
|
}
|
|
6181
6178
|
CodSelfManagedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfManagedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6182
|
-
CodSelfManagedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfManagedComponent, selector: "ipt-cod-self-managed", ngImport: i0, template: "<h3>Cod Autogestionado</h3>\n\n
|
|
6179
|
+
CodSelfManagedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfManagedComponent, selector: "ipt-cod-self-managed", ngImport: i0, template: "<h3>Cod Autogestionado</h3>\n\n<p-steps [model]=\"items\" [(activeIndex)]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\" ></p-steps>\n\n<div *ngIf=\"currentStep === 0\">\n <app-cod-self-form-step-one (completed)=\"changeStep($event)\"></app-cod-self-form-step-one>\n</div>\n\n<div *ngIf=\"currentStep === 1\">\n <app-cod-self-form-step-two (completed)=\"changeStep($event)\"></app-cod-self-form-step-two>\n</div>\n\n<div *ngIf=\"currentStep === 2\">\n <app-cod-self-form-step-three (completed)=\"changeStep($event)\"></app-cod-self-form-step-three>\n</div>\n\n<div *ngIf=\"currentStep === 3\">\n <app-cod-self-form-step-four (completed)=\"changeStep($event)\"></app-cod-self-form-step-four>\n</div>\n\n\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.Steps, selector: "p-steps", inputs: ["activeIndex", "model", "readonly", "style", "styleClass"], outputs: ["activeIndexChange"] }, { kind: "component", type: CodSelfFormStepOneComponent, selector: "app-cod-self-form-step-one", outputs: ["completed"] }, { kind: "component", type: CodSelfFormStepTwoComponent, selector: "app-cod-self-form-step-two" }, { kind: "component", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three" }, { kind: "component", type: CodSelfFormStepFourComponent, selector: "app-cod-self-form-step-four" }] });
|
|
6183
6180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfManagedComponent, decorators: [{
|
|
6184
6181
|
type: Component,
|
|
6185
|
-
args: [{ selector: 'ipt-cod-self-managed', template: "<h3>Cod Autogestionado</h3>\n\n
|
|
6186
|
-
}] });
|
|
6187
|
-
|
|
6188
|
-
class CodSelfFormStepThreeComponent {
|
|
6189
|
-
}
|
|
6190
|
-
CodSelfFormStepThreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6191
|
-
CodSelfFormStepThreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepThreeComponent, selector: "app-cod-self-form-step-three", ngImport: i0, template: "", styles: [""] });
|
|
6192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepThreeComponent, decorators: [{
|
|
6193
|
-
type: Component,
|
|
6194
|
-
args: [{ selector: 'app-cod-self-form-step-three', template: "" }]
|
|
6195
|
-
}] });
|
|
6196
|
-
|
|
6197
|
-
class CodSelfFormStepFourComponent {
|
|
6198
|
-
}
|
|
6199
|
-
CodSelfFormStepFourComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepFourComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6200
|
-
CodSelfFormStepFourComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodSelfFormStepFourComponent, selector: "app-cod-self-form-step-four", ngImport: i0, template: "", styles: [""] });
|
|
6201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodSelfFormStepFourComponent, decorators: [{
|
|
6202
|
-
type: Component,
|
|
6203
|
-
args: [{ selector: 'app-cod-self-form-step-four', template: "" }]
|
|
6182
|
+
args: [{ selector: 'ipt-cod-self-managed', template: "<h3>Cod Autogestionado</h3>\n\n<p-steps [model]=\"items\" [(activeIndex)]=\"currentStep\" (activeIndexChange)=\"currentStep = $event\" ></p-steps>\n\n<div *ngIf=\"currentStep === 0\">\n <app-cod-self-form-step-one (completed)=\"changeStep($event)\"></app-cod-self-form-step-one>\n</div>\n\n<div *ngIf=\"currentStep === 1\">\n <app-cod-self-form-step-two (completed)=\"changeStep($event)\"></app-cod-self-form-step-two>\n</div>\n\n<div *ngIf=\"currentStep === 2\">\n <app-cod-self-form-step-three (completed)=\"changeStep($event)\"></app-cod-self-form-step-three>\n</div>\n\n<div *ngIf=\"currentStep === 3\">\n <app-cod-self-form-step-four (completed)=\"changeStep($event)\"></app-cod-self-form-step-four>\n</div>\n\n\n" }]
|
|
6204
6183
|
}] });
|
|
6205
6184
|
|
|
6206
6185
|
class codSelfManagedModule {
|