taxtank-core 0.30.0 → 0.30.2

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.
@@ -23,6 +23,10 @@ export declare class TransactionBase extends ObservableModel {
23
23
  claimPercent?: number;
24
24
  get claimRatio(): number;
25
25
  get tankType(): TankTypeEnum;
26
+ /**
27
+ * @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
28
+ */
29
+ set tankType(tankType: TankTypeEnum);
26
30
  /**
27
31
  * Check if current tank is Property
28
32
  */
@@ -1,13 +1,11 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
- import { Address } from '../../models/address/address';
2
+ import { Address, CorelogicSuggestion } from '../../models';
3
3
  import { EventEmitter } from '@angular/core';
4
- import { IEventListener } from '../../interfaces/event-listener.interface';
5
- import { CorelogicSuggestion } from '../../models/property/corelogic-suggestion';
4
+ import { IEventListener } from '../../interfaces';
6
5
  /**
7
6
  * Address form. Works with corelogic or manual address
8
7
  */
9
8
  export declare class AddressForm extends AbstractForm<Address> implements IEventListener {
10
- isCorelogicRequired: boolean;
11
9
  /**
12
10
  * Min search query required length
13
11
  */
@@ -28,12 +26,7 @@ export declare class AddressForm extends AbstractForm<Address> implements IEvent
28
26
  * Emit event to search address in corelogic when user filled enough data for corelogic
29
27
  */
30
28
  onSearch: EventEmitter<string>;
31
- /**
32
- * @param address instance which should be created/edited
33
- * @param isCorelogicRequired for example, for property we need corelogic location even for manual address,
34
- * so we have to search corelogic location based on manual fields values
35
- */
36
- constructor(address?: Address, isCorelogicRequired?: boolean);
29
+ constructor(address: Address | null);
37
30
  /**
38
31
  * Get search query for corelogic location search based on manual fields values
39
32
  */
@@ -43,6 +36,10 @@ export declare class AddressForm extends AbstractForm<Address> implements IEvent
43
36
  * Handle corelogic suggestion select
44
37
  */
45
38
  onSelectSuggestion(suggestion?: CorelogicSuggestion): void;
39
+ /**
40
+ * Check if Australia is selected in country field
41
+ */
42
+ isAustraliaSelected(): boolean;
46
43
  /**
47
44
  * Enable manual mode
48
45
  */
@@ -66,4 +63,10 @@ export declare class AddressForm extends AbstractForm<Address> implements IEvent
66
63
  * Listen street and number changes and fill address with concatinated values
67
64
  */
68
65
  private listenStreetFieldsChanges;
66
+ private enableCorelogicFields;
67
+ private disableCorelogicFields;
68
+ /**
69
+ * Corelogic loc id is required for Australian addresses
70
+ */
71
+ private listenCountryChanges;
69
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.30.0",
3
+ "version": "0.30.2",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",