valtech-components 2.0.398 → 2.0.400
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/action-header/types.mjs +1 -1
- package/esm2022/lib/components/molecules/command-display/types.mjs +1 -1
- package/esm2022/lib/components/molecules/content-loader/types.mjs +1 -1
- package/esm2022/lib/components/molecules/hint/hint.component.mjs +1 -1
- package/esm2022/lib/components/molecules/info/types.mjs +1 -1
- package/esm2022/lib/components/molecules/multi-select-search/multi-select-search.component.mjs +302 -296
- package/esm2022/lib/components/molecules/pill/types.mjs +1 -1
- package/esm2022/lib/components/molecules/select-input/select-input.component.mjs +1 -1
- package/esm2022/lib/components/organisms/form/form.component.mjs +6 -3
- package/esm2022/lib/components/types.mjs +1 -1
- package/fesm2022/valtech-components.mjs +307 -296
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/action-header/types.d.ts +2 -2
- package/lib/components/molecules/info/types.d.ts +4 -4
- package/lib/components/molecules/multi-select-search/multi-select-search.component.d.ts +32 -32
- package/lib/components/molecules/pill/types.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DisplayMetadata } from
|
|
2
|
-
import { ButtonMetadata } from
|
|
1
|
+
import { DisplayMetadata } from '../../atoms/display/types';
|
|
2
|
+
import { ButtonMetadata } from '../../types';
|
|
3
3
|
export type ActionHeaderMetadata = {
|
|
4
4
|
title: DisplayMetadata;
|
|
5
5
|
action: ButtonMetadata;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ImageMetadata } from
|
|
2
|
-
import { ButtonGroupMetadata } from
|
|
3
|
-
import { LinkMetadata } from
|
|
4
|
-
import { TitleBlockMetada } from
|
|
1
|
+
import { ImageMetadata } from '../../atoms/image/types';
|
|
2
|
+
import { ButtonGroupMetadata } from '../button-group/types';
|
|
3
|
+
import { LinkMetadata } from '../link/types';
|
|
4
|
+
import { TitleBlockMetada } from '../title-block/types';
|
|
5
5
|
export type InfoMetadata = {
|
|
6
6
|
title: TitleBlockMetada;
|
|
7
7
|
link?: LinkMetadata;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IconService } from '../../../services/icons.service';
|
|
1
|
+
import { ElementRef, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
3
|
import { InputMetadata, InputOption } from '../../types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MultiSelectSearchComponent implements
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export declare class MultiSelectSearchComponent implements OnInit, OnDestroy, OnChanges, ControlValueAccessor {
|
|
6
|
+
dropdownRef: ElementRef;
|
|
7
|
+
mainInputRef: ElementRef;
|
|
8
|
+
props: InputMetadata;
|
|
9
9
|
labelProperty: string;
|
|
10
10
|
valueProperty: string;
|
|
11
11
|
placeholder: string;
|
|
12
|
-
props: InputMetadata;
|
|
13
12
|
private langService;
|
|
14
|
-
icon: IconService;
|
|
15
13
|
private changeDetector;
|
|
14
|
+
isOpen: boolean;
|
|
16
15
|
searchTerm: string;
|
|
17
|
-
|
|
18
|
-
selectedItems: InputOption[];
|
|
16
|
+
selectedValues: string[];
|
|
19
17
|
displayValue: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
private
|
|
18
|
+
filteredOptions: InputOption[];
|
|
19
|
+
searchPlaceholder: string;
|
|
20
|
+
private onChange;
|
|
21
|
+
private onTouched;
|
|
23
22
|
constructor();
|
|
24
23
|
ngOnInit(): void;
|
|
25
24
|
ngOnDestroy(): void;
|
|
26
25
|
ngOnChanges(changes: SimpleChanges): void;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
writeValue(value: any): void;
|
|
27
|
+
registerOnChange(fn: any): void;
|
|
28
|
+
registerOnTouched(fn: any): void;
|
|
29
|
+
setDisabledState(_isDisabled: boolean): void;
|
|
30
|
+
toggleDropdown(event: Event): void;
|
|
31
|
+
onSearch(event: any): void;
|
|
32
|
+
toggleOption(option: InputOption): void;
|
|
33
|
+
selectAll(): void;
|
|
34
|
+
clearAll(): void;
|
|
35
|
+
isSelected(option: InputOption): boolean;
|
|
36
|
+
trackByFn(_index: number, option: InputOption): any;
|
|
37
|
+
private handleClickOutside;
|
|
38
|
+
private parseValue;
|
|
39
|
+
private emitValue;
|
|
40
|
+
private getOptionByValue;
|
|
32
41
|
private applyDefaultValue;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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;
|
|
42
|
+
private initializeOptions;
|
|
43
|
+
private filterOptions;
|
|
44
|
+
private updateDisplayValue;
|
|
45
|
+
private syncSelectedValues;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectSearchComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectSearchComponent, "val-multi-select-search", never, { "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectSearchComponent, "val-multi-select-search", 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>;
|
|
48
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: "medium" | "small" | "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: "medium" | "small" | "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" | "default" | "large";
|
|
77
77
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
78
78
|
type: "button" | "submit" | "reset";
|
|
79
79
|
token?: string;
|