taxtank-core 0.32.9 → 0.32.11

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,6 +1,7 @@
1
1
  import { Collection as BaseCollection } from './collection';
2
2
  import { AbstractModel } from '../db/Models';
3
3
  /**
4
+ * @TODO refactor with Map
4
5
  * List of collections grouped by passed property
5
6
  */
6
7
  export declare class CollectionDictionary<Collection extends BaseCollection<AbstractModel>> {
@@ -33,7 +33,7 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
33
33
  */
34
34
  sumBy(path: string, abs?: boolean): number;
35
35
  groupBy(path?: string): CollectionDictionary<this>;
36
- indexBy(path: string): Dictionary<Model>;
36
+ indexBy(path?: string): Dictionary<Model>;
37
37
  filter(callback: (item: Model) => boolean): this;
38
38
  filterBy(path: string, values: any): this;
39
39
  filterByRange(path: string, from: any, to: any): this;
@@ -10,6 +10,7 @@ export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
10
10
  * Initial form value for comparison with changes to check saved/unsaved state
11
11
  */
12
12
  initialValue: Model;
13
+ protected excludeExtraneousValues: boolean;
13
14
  protected modelClass: Type<Model>;
14
15
  model: Model;
15
16
  submitted: boolean;
@@ -1,12 +1,14 @@
1
1
  import { UntypedFormArray, UntypedFormGroup } from '@angular/forms';
2
- import { Budget } from '../../models';
2
+ import { Budget, BudgetRule } from '../../models';
3
3
  import { AbstractForm } from '../abstract.form';
4
- import { ChartAccountsCategoryEnum } from '../../db/Enums';
5
4
  export declare class BudgetForm extends AbstractForm<Budget> {
6
- filteredRules: UntypedFormGroup[];
5
+ protected excludeExtraneousValues: boolean;
6
+ filteredRules: Map<number, UntypedFormGroup>;
7
+ total: number;
7
8
  constructor(budget: Budget);
8
9
  get rulesArray(): UntypedFormArray;
9
- filterRules(searchQuery: string, categories: ChartAccountsCategoryEnum[]): void;
10
- addRule(): void;
10
+ filterRules(): void;
11
+ static createRuleFormGroup(budgetRule: BudgetRule): UntypedFormGroup;
12
+ addRule(budgetRule?: BudgetRule): void;
11
13
  deleteRule(index: number): void;
12
14
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
+ * @TODO refactor with Map
2
3
  * List of objects grouped by passed property
3
4
  */
4
5
  export declare class Dictionary<Model> {
@@ -12,4 +13,5 @@ export declare class Dictionary<Model> {
12
13
  toArray(): Model[];
13
14
  private groupItems;
14
15
  get keys(): string[];
16
+ get length(): number;
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.9",
3
+ "version": "0.32.11",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",
@@ -9,6 +9,7 @@
9
9
  "@angular/common": "^16.2.12",
10
10
  "@angular/core": "^16.2.12",
11
11
  "@angular/forms": "^16.2.12",
12
+ "@rxweb/reactive-form-validators": "^13.0.1",
12
13
  "@angular/router": "^16.2.12",
13
14
  "@auth0/angular-jwt": "^5.0.2",
14
15
  "@stripe/stripe-js": "^2.1.10",