valtech-components 2.0.393 → 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/molecules/multi-select-simple/multi-select-simple.component.mjs +88 -131
- package/esm2022/lib/components/molecules/select-search/select-search.component.mjs +83 -116
- package/esm2022/lib/components/organisms/form/form.component.mjs +117 -78
- package/fesm2022/valtech-components.mjs +284 -321
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/multi-select-simple/multi-select-simple.component.d.ts +9 -7
- package/lib/components/molecules/select-search/select-search.component.d.ts +9 -6
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/components/organisms/form/form.component.d.ts +14 -1
- package/package.json +1 -1
|
@@ -10,12 +10,12 @@ export declare class MultiSelectSimpleComponent implements OnInit, OnDestroy, On
|
|
|
10
10
|
valueProperty: string;
|
|
11
11
|
placeholder: string;
|
|
12
12
|
private langService;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
displayValue:
|
|
18
|
-
filteredOptions:
|
|
13
|
+
private changeDetector;
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
searchTerm: string;
|
|
16
|
+
selectedValues: string[];
|
|
17
|
+
displayValue: string;
|
|
18
|
+
filteredOptions: InputOption[];
|
|
19
19
|
searchPlaceholder: string;
|
|
20
20
|
private onChange;
|
|
21
21
|
private onTouched;
|
|
@@ -39,7 +39,9 @@ export declare class MultiSelectSimpleComponent implements OnInit, OnDestroy, On
|
|
|
39
39
|
private emitValue;
|
|
40
40
|
private getOptionByValue;
|
|
41
41
|
private applyDefaultValue;
|
|
42
|
-
|
|
42
|
+
private initializeOptions;
|
|
43
|
+
private filterOptions;
|
|
44
|
+
private updateDisplayValue;
|
|
43
45
|
private syncSelectedValues;
|
|
44
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectSimpleComponent, never>;
|
|
45
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectSimpleComponent, "val-multi-select-simple", never, { "props": { "alias": "props"; "required": false; }; "labelProperty": { "alias": "labelProperty"; "required": false; }; "valueProperty": { "alias": "valueProperty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -9,12 +9,12 @@ export declare class SelectSearchComponent implements OnInit, OnDestroy, OnChang
|
|
|
9
9
|
valueProperty: string;
|
|
10
10
|
placeholder: string;
|
|
11
11
|
private langService;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
displayValue:
|
|
17
|
-
filteredOptions:
|
|
12
|
+
private changeDetector;
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
searchTerm: string;
|
|
15
|
+
selectedValue: string | null;
|
|
16
|
+
displayValue: string;
|
|
17
|
+
filteredOptions: InputOption[];
|
|
18
18
|
constructor();
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
ngOnDestroy(): void;
|
|
@@ -26,6 +26,9 @@ export declare class SelectSearchComponent implements OnInit, OnDestroy, OnChang
|
|
|
26
26
|
trackByFn(_index: number, option: InputOption): any;
|
|
27
27
|
private handleClickOutside;
|
|
28
28
|
private getOptionByValue;
|
|
29
|
+
private initializeOptions;
|
|
30
|
+
private filterOptions;
|
|
31
|
+
private updateDisplayValue;
|
|
29
32
|
private applyDefaultValue;
|
|
30
33
|
debugOptions(): void;
|
|
31
34
|
private syncSelectedValue;
|
|
@@ -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;
|
|
@@ -29,6 +41,7 @@ export declare class FormComponent implements OnInit {
|
|
|
29
41
|
form: FormGroup;
|
|
30
42
|
data: FormMetadata;
|
|
31
43
|
};
|
|
44
|
+
resetField(fieldName: string, emitEvent?: boolean): void;
|
|
32
45
|
get actions(): ButtonMetadata[];
|
|
33
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
34
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "val-form", never, { "props": { "alias": "props"; "required": false; }; }, { "onSubmit": "onSubmit"; "onInvalid": "onInvalid"; "onSelectChange": "onSelectChange"; }, never, ["*"], true, never>;
|