valtech-components 2.0.375 → 2.0.377
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 +389 -0
- package/esm2022/lib/components/organisms/form/form.component.mjs +11 -3
- package/esm2022/lib/components/types.mjs +3 -2
- package/fesm2022/valtech-components.mjs +387 -3
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +48 -0
- package/lib/components/organisms/article/article.component.d.ts +3 -3
- package/lib/components/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { IonModal } from '@ionic/angular';
|
|
3
|
+
import { IconService } from '../../../services/icons.service';
|
|
4
|
+
import { InputMetadata, InputOption } from '../../types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MultiSelectSearchComponent implements OnChanges, OnDestroy {
|
|
7
|
+
modal: IonModal;
|
|
8
|
+
label: string;
|
|
9
|
+
labelProperty: string;
|
|
10
|
+
valueProperty: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
props: InputMetadata;
|
|
13
|
+
private langService;
|
|
14
|
+
icon: IconService;
|
|
15
|
+
private changeDetector;
|
|
16
|
+
searchTerm: string;
|
|
17
|
+
filteredItems: InputOption[];
|
|
18
|
+
selectedItems: InputOption[];
|
|
19
|
+
displayValue: string;
|
|
20
|
+
private previousOptions;
|
|
21
|
+
private isProcessingChanges;
|
|
22
|
+
private valueChangesSubscription?;
|
|
23
|
+
constructor();
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
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
|
+
toggleItem(item: any): void;
|
|
40
|
+
isItemSelected(item: any): boolean;
|
|
41
|
+
clearSelection(): void;
|
|
42
|
+
applySelection(): void;
|
|
43
|
+
updateDisplayValue(): void;
|
|
44
|
+
applyChanges(): void;
|
|
45
|
+
reset(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectSearchComponent, never>;
|
|
47
|
+
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>;
|
|
48
|
+
}
|
|
@@ -31,7 +31,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
31
31
|
getVideoElement(element: ArticleElement): ArticleVideoElement;
|
|
32
32
|
getCustomElement(element: ArticleElement): ArticleCustomElement;
|
|
33
33
|
getQuoteTextProps(element: ArticleElement): {
|
|
34
|
-
size: "
|
|
34
|
+
size: "small" | "medium" | "large" | "xlarge";
|
|
35
35
|
color: import("@ionic/core").Color;
|
|
36
36
|
content?: string;
|
|
37
37
|
bold: boolean;
|
|
@@ -44,7 +44,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
44
44
|
allowPartialBold?: boolean;
|
|
45
45
|
};
|
|
46
46
|
getHighlightTextProps(element: ArticleElement): {
|
|
47
|
-
size: "
|
|
47
|
+
size: "small" | "medium" | "large" | "xlarge";
|
|
48
48
|
color: import("@ionic/core").Color;
|
|
49
49
|
content?: string;
|
|
50
50
|
bold: boolean;
|
|
@@ -73,7 +73,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
73
73
|
contentInterpolation?: Record<string, string | number>;
|
|
74
74
|
icon?: import("valtech-components").IconMetada;
|
|
75
75
|
shape?: "round";
|
|
76
|
-
size?: "small" | "
|
|
76
|
+
size?: "small" | "large" | "default";
|
|
77
77
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
78
78
|
type: "button" | "submit" | "reset";
|
|
79
79
|
token?: string;
|