|
|
@ -21,13 +21,17 @@ |
|
|
|
<ng-container matColumnDef="nameWithSymbol"> |
|
|
|
<th |
|
|
|
*matHeaderCellDef |
|
|
|
class="px-1" |
|
|
|
class="px-1 name-col" |
|
|
|
mat-header-cell |
|
|
|
mat-sort-header="symbol" |
|
|
|
> |
|
|
|
<ng-container i18n>Name</ng-container> |
|
|
|
</th> |
|
|
|
<td *matCellDef="let element" class="line-height-1 px-1" mat-cell> |
|
|
|
<td |
|
|
|
*matCellDef="let element" |
|
|
|
class="line-height-1 px-1 name-col" |
|
|
|
mat-cell |
|
|
|
> |
|
|
|
<div class="text-truncate"> |
|
|
|
{{ element.name }} |
|
|
|
@if (element.name === element.symbol) { |
|
|
@ -63,8 +67,34 @@ |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</ng-container> |
|
|
|
<ng-container |
|
|
|
matColumnDef="marketPrice" |
|
|
|
[stickyEnd]="dataSource?.sort?.active === 'marketPrice'" |
|
|
|
> |
|
|
|
<th |
|
|
|
*matHeaderCellDef |
|
|
|
class="justify-content-end px-1" |
|
|
|
mat-header-cell |
|
|
|
mat-sort-header |
|
|
|
> |
|
|
|
<span class="d-none d-sm-block" i18n>Marketprice</span> |
|
|
|
<span class="d-block d-sm-none" i18n>Price</span> |
|
|
|
</th> |
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell> |
|
|
|
<div class="d-flex justify-content-end"> |
|
|
|
<gf-value |
|
|
|
[isCurrency]="true" |
|
|
|
[locale]="locale" |
|
|
|
[value]="isLoading ? undefined : element.marketPrice" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</ng-container> |
|
|
|
|
|
|
|
<ng-container matColumnDef="valueInBaseCurrency"> |
|
|
|
<ng-container |
|
|
|
matColumnDef="valueInBaseCurrency" |
|
|
|
[stickyEnd]="dataSource?.sort?.active === 'valueInBaseCurrency'" |
|
|
|
> |
|
|
|
<th |
|
|
|
*matHeaderCellDef |
|
|
|
class="d-none d-lg-table-cell justify-content-end px-1" |
|
|
@ -88,7 +118,10 @@ |
|
|
|
</td> |
|
|
|
</ng-container> |
|
|
|
|
|
|
|
<ng-container matColumnDef="allocationInPercentage"> |
|
|
|
<ng-container |
|
|
|
matColumnDef="allocationInPercentage" |
|
|
|
[stickyEnd]="dataSource?.sort?.active === 'allocationInPercentage'" |
|
|
|
> |
|
|
|
<th |
|
|
|
*matHeaderCellDef |
|
|
|
class="justify-content-end px-1" |
|
|
@ -109,7 +142,12 @@ |
|
|
|
</td> |
|
|
|
</ng-container> |
|
|
|
|
|
|
|
<ng-container matColumnDef="performance"> |
|
|
|
<ng-container |
|
|
|
matColumnDef="performance" |
|
|
|
[stickyEnd]=" |
|
|
|
dataSource?.sort?.active === 'netPerformanceWithCurrencyEffect' |
|
|
|
" |
|
|
|
> |
|
|
|
<th |
|
|
|
*matHeaderCellDef |
|
|
|
class="justify-content-end px-1" |
|
|
|