ecabs-components 1.1.65 → 1.1.66

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,4 +1,4 @@
1
- import { PhoneNumberCodeType } from "../models/phone.models";
1
+ import { PhoneNumberCodeType } from '../models/phone.models';
2
2
  export declare function extractPhoneNumberCode(phoneNumber: string | null, type?: PhoneNumberCodeType, withFlagClass?: boolean): string | null;
3
3
  export declare function extractDialingCode(phoneNumber: string | null): string | null;
4
4
  export declare function extractCountryFromIso(isoCode: string | null, region?: string[]): string | null;
@@ -1,27 +1,31 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2
2
  import { ControlValueAccessor, FormControl } from '@angular/forms';
3
3
  import { SelectOption } from '../base/models/select.models';
4
4
  import EcabsElementBaseComponent from '../base/element-base';
5
5
  import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
6
6
  import * as i0 from "@angular/core";
7
- export declare class EcabsChipAutocompleteComponent<T = unknown> extends EcabsElementBaseComponent implements ControlValueAccessor {
7
+ export declare class EcabsChipAutocompleteComponent<T = unknown> extends EcabsElementBaseComponent implements ControlValueAccessor, OnChanges {
8
8
  private readonly document;
9
9
  private readonly inputRef?;
10
10
  visibleOptions: number;
11
11
  autoActiveFirstOption: boolean;
12
12
  noResultsText: string;
13
+ loadingText: string;
13
14
  compareFn: (a: T, b: T) => boolean;
14
15
  avatarTemplate: TemplateRef<{
15
16
  $implicit: SelectOption<T>;
16
17
  }> | null;
17
18
  truncateAt: number;
19
+ suppressNextTermOnRefocus: boolean;
18
20
  set options(value: SelectOption<T>[] | null);
19
21
  readonly selectionChange: EventEmitter<T[]>;
20
22
  readonly termChange: EventEmitter<string>;
21
23
  protected readonly inputControl: FormControl<string>;
22
24
  private readonly normalizedTerm$;
25
+ private readonly _loading;
23
26
  private readonly _options;
24
27
  private readonly _values;
28
+ private readonly _suppressNextTermOnRefocus;
25
29
  private readonly _term;
26
30
  private readonly destroyRef;
27
31
  protected readonly overlayPanelClass = "ecabs-chip-autocomplete-overlay-panel";
@@ -30,6 +34,7 @@ export declare class EcabsChipAutocompleteComponent<T = unknown> extends EcabsEl
30
34
  protected readonly noMatchResult: import("@angular/core").Signal<boolean>;
31
35
  get options(): SelectOption<T>[] | null;
32
36
  constructor(document: Document);
37
+ ngOnChanges(changes: SimpleChanges): void;
33
38
  setOverlayHeight(): void;
34
39
  setSelection(event: MatAutocompleteSelectedEvent): void;
35
40
  removeSelection(option: SelectOption<T>): void;
@@ -46,5 +51,5 @@ export declare class EcabsChipAutocompleteComponent<T = unknown> extends EcabsEl
46
51
  private setValidSelectedOptions;
47
52
  private setFilteredOptions;
48
53
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsChipAutocompleteComponent<any>, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<EcabsChipAutocompleteComponent<any>, "ecabs-chip-autocomplete", never, { "visibleOptions": { "alias": "visibleOptions"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "compareFn": { "alias": "compareFn"; "required": false; }; "avatarTemplate": { "alias": "avatarTemplate"; "required": false; }; "truncateAt": { "alias": "truncateAt"; "required": false; }; "options": { "alias": "options"; "required": true; }; }, { "selectionChange": "selectionChange"; "termChange": "termChange"; }, never, never, true, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<EcabsChipAutocompleteComponent<any>, "ecabs-chip-autocomplete", never, { "visibleOptions": { "alias": "visibleOptions"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "compareFn": { "alias": "compareFn"; "required": false; }; "avatarTemplate": { "alias": "avatarTemplate"; "required": false; }; "truncateAt": { "alias": "truncateAt"; "required": false; }; "suppressNextTermOnRefocus": { "alias": "suppressNextTermOnRefocus"; "required": false; }; "options": { "alias": "options"; "required": true; }; }, { "selectionChange": "selectionChange"; "termChange": "termChange"; }, never, never, true, never>;
50
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "1.1.65",
3
+ "version": "1.1.66",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.12",
6
6
  "@angular/common": "^16.2.12",