taxtank-core 0.33.45 → 0.33.46

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.45",
3
+ "version": "0.33.46",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -1,18 +1,19 @@
1
1
  import { AbstractForm } from '../abstract.form';
2
2
  import { AllocationRule } from '../../models';
3
- import { UntypedFormArray } from '@angular/forms';
3
+ import { FormArray } from '@angular/forms';
4
4
  import { AllocationRuleTransactionForm } from './allocation-rule-transaction.form';
5
5
  import { ChartAccountsCategoryEnum } from '../../db/Enums';
6
6
  import { IEventListener } from '../../interfaces';
7
+ import { AllocationRuleCollection } from '../../collections';
7
8
  /**
8
9
  * @TODO move aux methods like isSplittable/isTaxFieldHidden/etc (used in view with ngIf) to properties to improve perf
9
10
  */
10
11
  export declare class AllocationRuleForm extends AbstractForm<AllocationRule> implements IEventListener {
11
12
  private isGST;
12
13
  chartAccountsCategories: ChartAccountsCategoryEnum[];
13
- constructor(rule: AllocationRule, isGST: boolean);
14
- get conditionsArray(): UntypedFormArray;
15
- get childTransactionsArray(): UntypedFormArray;
14
+ constructor(rule: AllocationRule, rules: AllocationRuleCollection, isGST: boolean);
15
+ get conditionsArray(): FormArray;
16
+ get childTransactionsArray(): FormArray;
16
17
  get transactionFormGroup(): AllocationRuleTransactionForm;
17
18
  addConditionForm(): void;
18
19
  isTaxFieldHidden(): boolean;
@@ -22,7 +22,7 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
22
22
  * Listen events from Event Dispatcher services
23
23
  */
24
24
  listenEvents(): void;
25
- protected fetch(path?: string, cache?: boolean): Observable<Transaction[]>;
25
+ get(path?: string): Observable<Transaction[]>;
26
26
  getCurrentYear(): Observable<Transaction[]>;
27
27
  /**
28
28
  * Add single new transaction