valtech-components 2.0.149 → 2.0.151

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,10 +1,10 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
1
+ import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
2
  import { IonModal } from '@ionic/angular';
3
3
  import { ViewWillEnter } from '@ionic/angular/standalone';
4
4
  import { IconService } from '../../../services/icons.service';
5
5
  import { InputMetadata, InputOption } from '../../types';
6
6
  import * as i0 from "@angular/core";
7
- export declare class SelectSearchComponent implements ViewWillEnter, OnChanges {
7
+ export declare class SelectSearchComponent implements ViewWillEnter, OnChanges, OnDestroy {
8
8
  modal: IonModal;
9
9
  label: string;
10
10
  labelProperty: string;
@@ -20,9 +20,12 @@ export declare class SelectSearchComponent implements ViewWillEnter, OnChanges {
20
20
  displayValue: string;
21
21
  private previousOptions;
22
22
  private isProcessingChanges;
23
+ private valueChangesSubscription?;
23
24
  ngOnInit(): void;
25
+ ngOnDestroy(): void;
24
26
  ngOnChanges(changes: SimpleChanges): void;
25
27
  ionViewWillEnter(): void;
28
+ private subscribeToValueChanges;
26
29
  private areOptionsEqual;
27
30
  private initializeItems;
28
31
  private syncControlValueWithSelectedItems;
@@ -36,6 +39,7 @@ export declare class SelectSearchComponent implements ViewWillEnter, OnChanges {
36
39
  isItemSelected(item: any): boolean;
37
40
  updateDisplayValue(): void;
38
41
  applyChanges(): void;
42
+ reset(): void;
39
43
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchComponent, never>;
40
44
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectSearchComponent, "val-select-search", never, { "label": { "alias": "label"; "required": false; }; "labelProperty": { "alias": "labelProperty"; "required": false; }; "valueProperty": { "alias": "valueProperty"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
41
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.149",
3
+ "version": "2.0.151",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",
@@ -39,7 +39,7 @@ input {
39
39
  &.native-input {
40
40
  font-family: var(--ion-default-font), Arial, sans-serif;
41
41
  margin-top: pxToRem(6) !important;
42
- padding: pxToRem(8) pxToRem(10) !important;
42
+ padding: pxToRem(10) pxToRem(10) !important;
43
43
 
44
44
  border: pxToRem(1) solid var(--ion-color-medium) !important;
45
45
  border-radius: pxToRem($border-radius-small) !important;