|
|
@ -13,7 +13,8 @@ import { |
|
|
OnChanges, |
|
|
OnChanges, |
|
|
OnInit, |
|
|
OnInit, |
|
|
forwardRef, |
|
|
forwardRef, |
|
|
inject |
|
|
inject, |
|
|
|
|
|
input |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; |
|
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; |
|
|
import { |
|
|
import { |
|
|
@ -56,12 +57,13 @@ import { PortfolioFilterFormValue } from './interfaces'; |
|
|
export class GfPortfolioFilterFormComponent |
|
|
export class GfPortfolioFilterFormComponent |
|
|
implements ControlValueAccessor, OnInit, OnChanges |
|
|
implements ControlValueAccessor, OnInit, OnChanges |
|
|
{ |
|
|
{ |
|
|
@Input() accounts: AccountWithPlatform[] = []; |
|
|
|
|
|
@Input() assetClasses: Filter[] = []; |
|
|
@Input() assetClasses: Filter[] = []; |
|
|
@Input() holdings: PortfolioPosition[] = []; |
|
|
@Input() holdings: PortfolioPosition[] = []; |
|
|
@Input() tags: Filter[] = []; |
|
|
@Input() tags: Filter[] = []; |
|
|
@Input() disabled = false; |
|
|
@Input() disabled = false; |
|
|
|
|
|
|
|
|
|
|
|
public readonly accounts = input<AccountWithPlatform[]>([]); |
|
|
|
|
|
|
|
|
public filterForm: FormGroup<{ |
|
|
public filterForm: FormGroup<{ |
|
|
account: FormControl<string | null>; |
|
|
account: FormControl<string | null>; |
|
|
assetClass: FormControl<string | null>; |
|
|
assetClass: FormControl<string | null>; |
|
|
|