|
|
|
|
@ -2,8 +2,7 @@ import { GfSymbolModule } from '@ghostfolio/client/pipes/symbol/symbol.module';
|
|
|
|
|
import { getLocale } from '@ghostfolio/common/helper';
|
|
|
|
|
import {
|
|
|
|
|
AssetProfileIdentifier,
|
|
|
|
|
HoldingWithParents,
|
|
|
|
|
PortfolioPosition
|
|
|
|
|
HoldingWithParents
|
|
|
|
|
} from '@ghostfolio/common/interfaces';
|
|
|
|
|
import { GfValueComponent } from '@ghostfolio/ui/value';
|
|
|
|
|
|
|
|
|
|
@ -29,7 +28,6 @@ import {
|
|
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
|
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
|
|
|
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
|
|
|
import { DataSource } from '@prisma/client';
|
|
|
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
|
|
|
|
|
import { Subject } from 'rxjs';
|
|
|
|
|
|
|
|
|
|
@ -64,13 +62,6 @@ export class GfTopHoldingsComponent implements OnChanges, OnDestroy {
|
|
|
|
|
@Input() locale = getLocale();
|
|
|
|
|
@Input() pageSize = Number.MAX_SAFE_INTEGER;
|
|
|
|
|
@Input() topHoldings: HoldingWithParents[];
|
|
|
|
|
@Input() positions: {
|
|
|
|
|
[symbol: string]: Pick<PortfolioPosition, 'type'> & {
|
|
|
|
|
dataSource?: DataSource;
|
|
|
|
|
name: string;
|
|
|
|
|
value: number;
|
|
|
|
|
};
|
|
|
|
|
} = {};
|
|
|
|
|
|
|
|
|
|
@Output() holdingClicked = new EventEmitter<AssetProfileIdentifier>();
|
|
|
|
|
|
|
|
|
|
|