iptdevs-design-system 3.1.415 → 3.1.417
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/logic/cod-self-managed-controls.mjs +96 -0
- package/esm2020/lib/cod-self-managed/logic/cod-self-managed-steps.mjs +29 -0
- package/esm2020/lib/cod-self-managed/logic/local-storage-cod.service.mjs +46 -0
- package/esm2020/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.mjs +20 -6
- package/esm2020/lib/components/atoms/select/select.component.mjs +4 -4
- package/fesm2015/iptdevs-design-system.mjs +185 -8
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +185 -8
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod-self-managed/logic/cod-self-managed-controls.d.ts +16 -0
- package/lib/cod-self-managed/logic/cod-self-managed-steps.d.ts +15 -0
- package/lib/cod-self-managed/logic/local-storage-cod.service.d.ts +9 -0
- package/lib/cod-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.d.ts +6 -3
- package/lib/components/atoms/select/select.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface Control {
|
|
4
|
+
name: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class CodSelfManagedControls {
|
|
9
|
+
controls: Array<Control[]>;
|
|
10
|
+
private $controls;
|
|
11
|
+
constructor();
|
|
12
|
+
getControlValues(): Observable<Array<Control[]>>;
|
|
13
|
+
changeValue(step: number, controlName: string, newValue: any): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodSelfManagedControls, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CodSelfManagedControls>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Control } from "./cod-self-managed-controls";
|
|
3
|
+
import { LocalStorageCodSelfMaganedService } from "./local-storage-cod.service";
|
|
4
|
+
export interface localStorageValues {
|
|
5
|
+
control: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}
|
|
8
|
+
export declare abstract class CodSelfManagedSteps {
|
|
9
|
+
localStorageCOD: LocalStorageCodSelfMaganedService;
|
|
10
|
+
constructor();
|
|
11
|
+
readAndWriteLS(step: number, control: string): localStorageValues;
|
|
12
|
+
setDataInLocalStorage(step: number, control: string, value: any): void;
|
|
13
|
+
listenFormChanges(step: number, control: string, obs: Observable<any>): void;
|
|
14
|
+
resetLocalStorage(controls: Control[]): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class LocalStorageCodSelfMaganedService {
|
|
3
|
+
constructor();
|
|
4
|
+
getCodFormData(step: number, control: string): string | null;
|
|
5
|
+
setCodFormData(step: number, control: string, value: string): void;
|
|
6
|
+
clearData(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageCodSelfMaganedService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageCodSelfMaganedService>;
|
|
9
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { EventEmitter,
|
|
1
|
+
import { EventEmitter, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { ParameterService } from '../../../core/services/parameters-service/parameters.service';
|
|
4
|
+
import { CodSelfManagedSteps } from '../../logic/cod-self-managed-steps';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CodSelfFormStepOneComponent implements
|
|
6
|
+
export declare class CodSelfFormStepOneComponent extends CodSelfManagedSteps implements OnChanges {
|
|
6
7
|
private fb;
|
|
7
8
|
private parameterService;
|
|
8
9
|
user: any;
|
|
@@ -18,8 +19,9 @@ export declare class CodSelfFormStepOneComponent implements OnInit {
|
|
|
18
19
|
states: any;
|
|
19
20
|
cities: any;
|
|
20
21
|
errorMessage: string;
|
|
22
|
+
controls: import("../../logic/cod-self-managed-controls").Control[];
|
|
21
23
|
constructor(fb: FormBuilder, parameterService: ParameterService);
|
|
22
|
-
|
|
24
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
25
|
initForm(): void;
|
|
24
26
|
getParameters(): void;
|
|
25
27
|
setDataUsers(): void;
|
|
@@ -31,6 +33,7 @@ export declare class CodSelfFormStepOneComponent implements OnInit {
|
|
|
31
33
|
sendForm(): void;
|
|
32
34
|
getState(state: any): void;
|
|
33
35
|
getCity(state: any): void;
|
|
36
|
+
startLocalStorageWork(): void;
|
|
34
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodSelfFormStepOneComponent, never>;
|
|
35
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<CodSelfFormStepOneComponent, "app-cod-self-form-step-one", never, { "user": "user"; }, { "completed": "completed"; }, never, never, false>;
|
|
36
39
|
}
|
|
@@ -15,10 +15,10 @@ export declare class SelectComponent {
|
|
|
15
15
|
eventSelect: EventEmitter<string>;
|
|
16
16
|
set control(value: AbstractControl);
|
|
17
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
ngOnInit(): void;
|
|
18
19
|
seleccionar(evt: string): void;
|
|
19
20
|
private setBinding;
|
|
20
21
|
click(value: MouseEvent): void;
|
|
21
|
-
ngOnInit(): void;
|
|
22
22
|
get textClass(): string;
|
|
23
23
|
get labelClass(): string;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|