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.
@@ -1,5 +1,5 @@
1
- import { DisplayMetadata } from "../../atoms/display/types";
2
- import { ButtonMetadata } from "../../types";
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 "../../atoms/image/types";
2
- import { ButtonGroupMetadata } from "../button-group/types";
3
- import { LinkMetadata } from "../link/types";
4
- import { TitleBlockMetada } from "../title-block/types";
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 { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { IonModal } from '@ionic/angular';
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 OnChanges, OnDestroy {
7
- modal: IonModal;
8
- label: string;
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
- filteredItems: InputOption[];
18
- selectedItems: InputOption[];
16
+ selectedValues: string[];
19
17
  displayValue: string;
20
- private previousOptions;
21
- private isProcessingChanges;
22
- private valueChangesSubscription?;
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
- ionViewWillEnter(): void;
28
- private subscribeToValueChanges;
29
- private areOptionsEqual;
30
- private initializeItems;
31
- private syncControlValueWithSelectedItems;
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
- 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;
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, { "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>;
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
  }
@@ -1,4 +1,4 @@
1
- import { ActionHeaderMetadata } from "../action-header/types";
1
+ import { ActionHeaderMetadata } from '../action-header/types';
2
2
  export type PillMetadata = {
3
3
  token?: string;
4
4
  image?: string;
@@ -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: "small" | "medium" | "large" | "xlarge";
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: "small" | "medium" | "large" | "xlarge";
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" | "large" | "default";
76
+ size?: "small" | "default" | "large";
77
77
  fill?: "default" | "clear" | "outline" | "solid";
78
78
  type: "button" | "submit" | "reset";
79
79
  token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.398",
3
+ "version": "2.0.400",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",