|
|
@ -1,6 +1,7 @@ |
|
|
import { NUMERICAL_PRECISION_THRESHOLD_6_FIGURES } from '@ghostfolio/common/config'; |
|
|
import { NUMERICAL_PRECISION_THRESHOLD_6_FIGURES } from '@ghostfolio/common/config'; |
|
|
import { getDateFnsLocale, getLocale } from '@ghostfolio/common/helper'; |
|
|
import { getDateFnsLocale, getLocale } from '@ghostfolio/common/helper'; |
|
|
import { PortfolioSummary, User } from '@ghostfolio/common/interfaces'; |
|
|
import { PortfolioSummary, User } from '@ghostfolio/common/interfaces'; |
|
|
|
|
|
import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type'; |
|
|
import { translate } from '@ghostfolio/ui/i18n'; |
|
|
import { translate } from '@ghostfolio/ui/i18n'; |
|
|
import { NotificationService } from '@ghostfolio/ui/notifications'; |
|
|
import { NotificationService } from '@ghostfolio/ui/notifications'; |
|
|
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
@ -23,10 +24,16 @@ import { |
|
|
informationCircleOutline |
|
|
informationCircleOutline |
|
|
} from 'ionicons/icons'; |
|
|
} from 'ionicons/icons'; |
|
|
import { isNumber } from 'lodash'; |
|
|
import { isNumber } from 'lodash'; |
|
|
|
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
imports: [GfValueComponent, IonIcon, MatTooltipModule], |
|
|
imports: [ |
|
|
|
|
|
GfValueComponent, |
|
|
|
|
|
IonIcon, |
|
|
|
|
|
MatTooltipModule, |
|
|
|
|
|
NgxSkeletonLoaderModule |
|
|
|
|
|
], |
|
|
selector: 'gf-portfolio-summary', |
|
|
selector: 'gf-portfolio-summary', |
|
|
styleUrls: ['./portfolio-summary.component.scss'], |
|
|
styleUrls: ['./portfolio-summary.component.scss'], |
|
|
templateUrl: './portfolio-summary.component.html' |
|
|
templateUrl: './portfolio-summary.component.html' |
|
|
@ -48,6 +55,8 @@ export class GfPortfolioSummaryComponent implements OnChanges { |
|
|
'BUY_AND_SELL_ACTIVITIES_TOOLTIP' |
|
|
'BUY_AND_SELL_ACTIVITIES_TOOLTIP' |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
protected readonly PerformanceCalculationType = PerformanceCalculationType; |
|
|
|
|
|
|
|
|
protected isCashExpanded = false; |
|
|
protected isCashExpanded = false; |
|
|
protected isHoldingsExpanded = false; |
|
|
protected isHoldingsExpanded = false; |
|
|
protected precision = 2; |
|
|
protected precision = 2; |
|
|
|