ca-components 1.1.996 → 1.1.998

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.
@@ -134,6 +134,7 @@ export interface ICaInput {
134
134
  };
135
135
  defaultValue?: string;
136
136
  isDropdown?: boolean;
137
+ isAddress?: boolean;
137
138
  dropdownWidthClass?: string;
138
139
  dropdownImageInput?: ICaInputWithDropdown | null;
139
140
  isInvalidSearchInDropdown?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
- import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2
+ import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef, AfterContentInit } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { UntypedFormGroup, NgControl, ControlValueAccessor } from '@angular/forms';
5
5
  import { ICaInput } from '../ca-input/config/ca-input.config';
@@ -10,13 +10,14 @@ import { CommandsHandler } from './models/commands-handler.model';
10
10
  import { InputAddressCommandsString } from './models/input-address-commands-string.model';
11
11
  import { SentAddressData } from './models/sent-address-data.model';
12
12
  import { AddressListResponse } from '../../models/address-list-response.model';
13
+ import { AddressEntity } from '../../models/address-entity.model';
13
14
  import * as i0 from "@angular/core";
14
- export declare class CaInputAddressDropdownComponent implements OnInit, ControlValueAccessor, OnDestroy {
15
+ export declare class CaInputAddressDropdownComponent implements OnInit, ControlValueAccessor, OnDestroy, AfterContentInit {
15
16
  superControl: NgControl;
16
17
  private ref;
17
18
  inputDropdown: CaInputDropdownComponent;
18
19
  set placeholderType(value: string);
19
- set activeAddress(value: AddressList | null);
20
+ set activeAddress(value: AddressEntity | null);
20
21
  set receivedAddressData(value: AddressData | null);
21
22
  set receivedAddressList(value: AddressListResponse | null);
22
23
  sentAddressValue: EventEmitter<string>;
@@ -42,10 +43,11 @@ export declare class CaInputAddressDropdownComponent implements OnInit, ControlV
42
43
  stopType: string;
43
44
  private requestSent;
44
45
  _receivedAddressList: AddressListResponse | null;
45
- _activeAddress: AddressList | null;
46
+ _activeAddress: AddressEntity | null;
46
47
  private destroy$;
47
48
  addressForm: UntypedFormGroup;
48
49
  constructor(superControl: NgControl, ref: ChangeDetectorRef);
50
+ ngAfterContentInit(): void;
49
51
  writeValue(_: any): void;
50
52
  registerOnChange(fn: any): void;
51
53
  onChange(_: any): void;
@@ -108,7 +108,7 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
108
108
  keyCode: number;
109
109
  data: any;
110
110
  }): void;
111
- setDropdownValue(option: OptionModel): void;
111
+ setDropdownValue(option: OptionModel, optionValue?: string, label?: string): void;
112
112
  onMultiselectSelect(option: OptionModel): void;
113
113
  removeMultiSelectItem(index: number): void;
114
114
  deleteAllMultiSelectItems(currentLabel?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.1.996",
3
+ "version": "1.1.998",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",