valtech-components 2.0.402 → 2.0.404
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-search/multi-select-search.component.mjs +363 -340
- package/esm2022/lib/components/organisms/form/form.component.mjs +2 -2
- package/fesm2022/valtech-components.mjs +363 -342
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +33 -33
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IonModal } from '@ionic/angular';
|
|
3
|
+
import { IconService } from '../../../services/icons.service';
|
|
3
4
|
import { InputMetadata, InputOption } from '../../types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MultiSelectSearchComponent implements
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
props: InputMetadata;
|
|
6
|
+
export declare class MultiSelectSearchComponent implements OnChanges, OnDestroy {
|
|
7
|
+
modal: IonModal;
|
|
8
|
+
label: string;
|
|
9
9
|
labelProperty: string;
|
|
10
10
|
valueProperty: string;
|
|
11
11
|
placeholder: string;
|
|
12
12
|
private langService;
|
|
13
|
+
constructor();
|
|
14
|
+
props: InputMetadata;
|
|
15
|
+
icon: IconService;
|
|
13
16
|
private changeDetector;
|
|
14
|
-
isOpen: boolean;
|
|
15
17
|
searchTerm: string;
|
|
16
|
-
|
|
18
|
+
filteredItems: InputOption[];
|
|
19
|
+
selectedItems: InputOption[];
|
|
17
20
|
displayValue: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
private
|
|
21
|
-
private onTouched;
|
|
22
|
-
constructor();
|
|
21
|
+
private previousOptions;
|
|
22
|
+
private isProcessingChanges;
|
|
23
|
+
private valueChangesSubscription?;
|
|
23
24
|
ngOnInit(): void;
|
|
24
25
|
ngOnDestroy(): void;
|
|
25
26
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
ionViewWillEnter(): void;
|
|
28
|
+
private subscribeToValueChanges;
|
|
29
|
+
private areOptionsEqual;
|
|
30
|
+
private initializeItems;
|
|
31
|
+
private syncControlValueWithSelectedItems;
|
|
32
|
+
private applyDefaultValue;
|
|
33
|
+
onFilter(event: any): void;
|
|
34
|
+
onFocus(): void;
|
|
35
|
+
onBlur(): void;
|
|
36
|
+
openModal(): void;
|
|
37
|
+
preventDefaultBehavior(event: MouseEvent): void;
|
|
38
|
+
cancelModal(): void;
|
|
39
|
+
selectItem(item: any): void;
|
|
33
40
|
selectAll(): void;
|
|
34
41
|
clearAll(): void;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
private emitValue;
|
|
41
|
-
private getOptionByValue;
|
|
42
|
-
private applyDefaultValue;
|
|
43
|
-
private initializeOptions;
|
|
44
|
-
private filterOptions;
|
|
45
|
-
private updateDisplayValue;
|
|
46
|
-
private syncSelectedValues;
|
|
42
|
+
isItemSelected(item: any): boolean;
|
|
43
|
+
updateDisplayValue(): void;
|
|
44
|
+
applyChanges(): void;
|
|
45
|
+
applyAndClose(): void;
|
|
46
|
+
reset(): void;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectSearchComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectSearchComponent, "val-multi-select-search", never, { "
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectSearchComponent, "val-multi-select-search", never, { "label": { "alias": "label"; "required": false; }; "labelProperty": { "alias": "labelProperty"; "required": false; }; "valueProperty": { "alias": "valueProperty"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
|
|
49
49
|
}
|
|
@@ -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;
|