valtech-components 2.0.394 → 2.0.395
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/esm2022/lib/components/organisms/form/form.component.mjs +102 -78
- package/fesm2022/valtech-components.mjs +101 -77
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/components/organisms/form/form.component.d.ts +13 -1
- package/package.json +1 -1
|
@@ -75,7 +75,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
75
75
|
shape?: "round";
|
|
76
76
|
size?: "small" | "large" | "default";
|
|
77
77
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
78
|
-
type: "
|
|
78
|
+
type: "submit" | "button" | "reset";
|
|
79
79
|
token?: string;
|
|
80
80
|
ref?: any;
|
|
81
81
|
handler?: (value: any) => any;
|
|
@@ -15,13 +15,25 @@ export declare class FormComponent implements OnInit {
|
|
|
15
15
|
form: FormGroup;
|
|
16
16
|
types: typeof InputType;
|
|
17
17
|
private subscriptions;
|
|
18
|
+
processedSections: {
|
|
19
|
+
name: string;
|
|
20
|
+
fields: InputMetadata[];
|
|
21
|
+
}[];
|
|
22
|
+
private previousValues;
|
|
18
23
|
constructor(fb: FormBuilder, elementRef: ElementRef);
|
|
19
24
|
ngOnInit(): void;
|
|
25
|
+
private createForm;
|
|
26
|
+
private processAllSections;
|
|
27
|
+
private processField;
|
|
28
|
+
private setupChangeTracking;
|
|
20
29
|
ngOnDestroy(): void;
|
|
21
|
-
private previousValues;
|
|
22
30
|
trackSelectChanges(fieldName: string): void;
|
|
23
31
|
submitHandler(token?: string): Promise<void>;
|
|
24
32
|
getControl(field: string): FormControl;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated This method is now only used internally.
|
|
35
|
+
* Use processedSections property instead to avoid multiple calls.
|
|
36
|
+
*/
|
|
25
37
|
getFieldProp(field: InputMetadata): InputMetadata;
|
|
26
38
|
get isAtEndOfForm(): boolean;
|
|
27
39
|
get Form(): FormGroup;
|