|
|
|
@ -187,11 +187,12 @@ |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@if (user?.settings?.isExperimentalFeatures) { |
|
|
|
<div class="d-flex py-1"> |
|
|
|
<div |
|
|
|
class="align-items-center d-flex flex-grow-1 mr-2 text-truncate" |
|
|
|
> |
|
|
|
<span i18n>Absolute Currency Performance</span> |
|
|
|
<span i18n>Absolute Dividend Performance</span> |
|
|
|
@if (user?.subscription?.type === 'Basic') { |
|
|
|
<gf-premium-indicator class="ml-1" /> |
|
|
|
} |
|
|
|
@ -204,18 +205,13 @@ |
|
|
|
[isLoading]="isLoadingInvestmentChart" |
|
|
|
[locale]="user?.settings?.locale" |
|
|
|
[unit]="user?.settings?.baseCurrency" |
|
|
|
[value]=" |
|
|
|
performance?.netPerformance === null |
|
|
|
? null |
|
|
|
: performance?.netPerformanceWithCurrencyEffect - |
|
|
|
performance?.netPerformance |
|
|
|
" |
|
|
|
[value]="performance?.dividendInBaseCurrency" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="d-flex ml-3 py-1"> |
|
|
|
<div class="d-flex mb-3 ml-3 py-1"> |
|
|
|
<div class="flex-grow-1 mr-2 text-truncate"> |
|
|
|
<ng-container i18n>Currency Performance</ng-container> |
|
|
|
<ng-container i18n>Dividend Performance</ng-container> |
|
|
|
</div> |
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
<gf-value |
|
|
|
@ -225,19 +221,19 @@ |
|
|
|
[isLoading]="isLoadingInvestmentChart" |
|
|
|
[isPercent]="true" |
|
|
|
[locale]="user?.settings?.locale" |
|
|
|
[value]=" |
|
|
|
performance?.netPerformancePercentage === null |
|
|
|
? null |
|
|
|
: performance?.netPerformancePercentageWithCurrencyEffect - |
|
|
|
performance?.netPerformancePercentage |
|
|
|
" |
|
|
|
[value]="performance?.dividendPercentageWithCurrencyEffect" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div><hr /></div> |
|
|
|
} |
|
|
|
<div class="d-flex py-1"> |
|
|
|
<div class="flex-grow-1 mr-2 text-truncate"> |
|
|
|
<ng-container i18n>Absolute Net Performance</ng-container> |
|
|
|
<div |
|
|
|
class="align-items-center d-flex flex-grow-1 mr-2 text-truncate" |
|
|
|
> |
|
|
|
<span i18n>Absolute Currency Performance</span> |
|
|
|
@if (user?.subscription?.type === 'Basic') { |
|
|
|
<gf-premium-indicator class="ml-1" /> |
|
|
|
} |
|
|
|
</div> |
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
<gf-value |
|
|
|
@ -247,23 +243,18 @@ |
|
|
|
[isLoading]="isLoadingInvestmentChart" |
|
|
|
[locale]="user?.settings?.locale" |
|
|
|
[unit]="user?.settings?.baseCurrency" |
|
|
|
[value]="performance?.netPerformanceWithCurrencyEffect" |
|
|
|
[value]=" |
|
|
|
performance?.netPerformance === null |
|
|
|
? null |
|
|
|
: performance?.netPerformanceWithCurrencyEffect - |
|
|
|
performance?.netPerformance |
|
|
|
" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="d-flex ml-3 py-1"> |
|
|
|
<div class="flex-grow-1 mr-2 text-truncate"> |
|
|
|
<ng-container i18n>Net Performance</ng-container> |
|
|
|
@if ( |
|
|
|
user?.settings?.performanceCalculationType === |
|
|
|
PerformanceCalculationType.ROAI |
|
|
|
) { |
|
|
|
<abbr |
|
|
|
class="d-none d-sm-inline-block initialism ml-2 text-muted" |
|
|
|
title="Return on Average Investment" |
|
|
|
>(ROAI)</abbr |
|
|
|
> |
|
|
|
} |
|
|
|
<ng-container i18n>Currency Performance</ng-container> |
|
|
|
</div> |
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
<gf-value |
|
|
|
@ -274,21 +265,18 @@ |
|
|
|
[isPercent]="true" |
|
|
|
[locale]="user?.settings?.locale" |
|
|
|
[value]=" |
|
|
|
performance?.netPerformancePercentageWithCurrencyEffect |
|
|
|
performance?.netPerformancePercentage === null |
|
|
|
? null |
|
|
|
: performance?.netPerformancePercentageWithCurrencyEffect - |
|
|
|
performance?.netPerformancePercentage |
|
|
|
" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@if (user?.settings?.isExperimentalFeatures) { |
|
|
|
<div><hr /></div> |
|
|
|
<div class="d-flex py-1"> |
|
|
|
<div |
|
|
|
class="align-items-center d-flex flex-grow-1 mr-2 text-truncate" |
|
|
|
> |
|
|
|
<span i18n>Absolute Dividend Performance</span> |
|
|
|
@if (user?.subscription?.type === 'Basic') { |
|
|
|
<gf-premium-indicator class="ml-1" /> |
|
|
|
} |
|
|
|
<div class="flex-grow-1 mr-2 text-truncate"> |
|
|
|
<ng-container i18n>Absolute Net Performance</ng-container> |
|
|
|
</div> |
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
<gf-value |
|
|
|
@ -298,13 +286,23 @@ |
|
|
|
[isLoading]="isLoadingInvestmentChart" |
|
|
|
[locale]="user?.settings?.locale" |
|
|
|
[unit]="user?.settings?.baseCurrency" |
|
|
|
[value]="performance?.dividendInBaseCurrency" |
|
|
|
[value]="netPerformanceWithCurrencyEffect" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="d-flex ml-3 py-1"> |
|
|
|
<div class="flex-grow-1 mr-2 text-truncate"> |
|
|
|
<ng-container i18n>Dividend Performance</ng-container> |
|
|
|
<ng-container i18n>Net Performance</ng-container> |
|
|
|
@if ( |
|
|
|
user?.settings?.performanceCalculationType === |
|
|
|
PerformanceCalculationType.ROAI |
|
|
|
) { |
|
|
|
<abbr |
|
|
|
class="d-none d-sm-inline-block initialism ml-2 text-muted" |
|
|
|
title="Return on Average Investment" |
|
|
|
>(ROAI)</abbr |
|
|
|
> |
|
|
|
} |
|
|
|
</div> |
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
<gf-value |
|
|
|
@ -314,11 +312,10 @@ |
|
|
|
[isLoading]="isLoadingInvestmentChart" |
|
|
|
[isPercent]="true" |
|
|
|
[locale]="user?.settings?.locale" |
|
|
|
[value]="performance?.dividendPercentageWithCurrencyEffect" |
|
|
|
[value]="netPerformancePercentageWithCurrencyEffect" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
</mat-card-content> |
|
|
|
</mat-card> |
|
|
|
</div> |
|
|
|
|