|
|
@ -7,11 +7,22 @@ |
|
|
matSortDirection="asc" |
|
|
matSortDirection="asc" |
|
|
[dataSource]="dataSource" |
|
|
[dataSource]="dataSource" |
|
|
> |
|
|
> |
|
|
<ng-container matColumnDef="name" sticky> |
|
|
<ng-container matColumnDef="icon" sticky> |
|
|
<th *matHeaderCellDef class="px-2" mat-header-cell mat-sort-header> |
|
|
<th *matHeaderCellDef class="px-1" mat-header-cell></th> |
|
|
|
|
|
<td *matCellDef="let element" class="px-1 text-center" mat-cell> |
|
|
|
|
|
<gf-entity-logo |
|
|
|
|
|
[dataSource]="element.dataSource" |
|
|
|
|
|
[symbol]="element.symbol" |
|
|
|
|
|
[tooltip]="element.name" |
|
|
|
|
|
/> |
|
|
|
|
|
</td> |
|
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="name"> |
|
|
|
|
|
<th *matHeaderCellDef class="px-1" mat-header-cell mat-sort-header> |
|
|
<ng-container i18n>Name</ng-container> |
|
|
<ng-container i18n>Name</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<td *matCellDef="let element" class="px-2 text-nowrap" mat-cell> |
|
|
<td *matCellDef="let element" class="px-1 text-nowrap" mat-cell> |
|
|
<div class="text-truncate"> |
|
|
<div class="text-truncate"> |
|
|
{{ element?.name }} |
|
|
{{ element?.name }} |
|
|
</div> |
|
|
</div> |
|
|
@ -26,14 +37,14 @@ |
|
|
<ng-container matColumnDef="trend50d"> |
|
|
<ng-container matColumnDef="trend50d"> |
|
|
<th |
|
|
<th |
|
|
*matHeaderCellDef |
|
|
*matHeaderCellDef |
|
|
class="d-none d-lg-table-cell px-2 text-right" |
|
|
class="d-none d-lg-table-cell px-1 text-right" |
|
|
mat-header-cell |
|
|
mat-header-cell |
|
|
> |
|
|
> |
|
|
<ng-container i18n>50-Day Trend</ng-container> |
|
|
<ng-container i18n>50-Day Trend</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<td |
|
|
<td |
|
|
*matCellDef="let element" |
|
|
*matCellDef="let element" |
|
|
class="d-none d-lg-table-cell px-2" |
|
|
class="d-none d-lg-table-cell px-1" |
|
|
mat-cell |
|
|
mat-cell |
|
|
> |
|
|
> |
|
|
<div class="d-flex justify-content-end"> |
|
|
<div class="d-flex justify-content-end"> |
|
|
@ -55,14 +66,14 @@ |
|
|
<ng-container matColumnDef="trend200d"> |
|
|
<ng-container matColumnDef="trend200d"> |
|
|
<th |
|
|
<th |
|
|
*matHeaderCellDef |
|
|
*matHeaderCellDef |
|
|
class="d-none d-lg-table-cell px-2 text-right" |
|
|
class="d-none d-lg-table-cell px-1 text-right" |
|
|
mat-header-cell |
|
|
mat-header-cell |
|
|
> |
|
|
> |
|
|
<ng-container i18n>200-Day Trend</ng-container> |
|
|
<ng-container i18n>200-Day Trend</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<td |
|
|
<td |
|
|
*matCellDef="let element" |
|
|
*matCellDef="let element" |
|
|
class="d-none d-lg-table-cell px-2" |
|
|
class="d-none d-lg-table-cell px-1" |
|
|
mat-cell |
|
|
mat-cell |
|
|
> |
|
|
> |
|
|
<div class="d-flex justify-content-end"> |
|
|
<div class="d-flex justify-content-end"> |
|
|
@ -84,14 +95,14 @@ |
|
|
<ng-container matColumnDef="date"> |
|
|
<ng-container matColumnDef="date"> |
|
|
<th |
|
|
<th |
|
|
*matHeaderCellDef |
|
|
*matHeaderCellDef |
|
|
class="d-none d-lg-table-cell px-2 text-right" |
|
|
class="d-none d-lg-table-cell px-1 text-right" |
|
|
mat-header-cell |
|
|
mat-header-cell |
|
|
> |
|
|
> |
|
|
<ng-container i18n>Last All Time High</ng-container> |
|
|
<ng-container i18n>Last All Time High</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<td |
|
|
<td |
|
|
*matCellDef="let element" |
|
|
*matCellDef="let element" |
|
|
class="d-none d-lg-table-cell px-2" |
|
|
class="d-none d-lg-table-cell px-1" |
|
|
mat-cell |
|
|
mat-cell |
|
|
> |
|
|
> |
|
|
<div class="d-flex justify-content-end"> |
|
|
<div class="d-flex justify-content-end"> |
|
|
@ -109,7 +120,7 @@ |
|
|
<ng-container matColumnDef="change"> |
|
|
<ng-container matColumnDef="change"> |
|
|
<th |
|
|
<th |
|
|
*matHeaderCellDef |
|
|
*matHeaderCellDef |
|
|
class="px-2 justify-content-end" |
|
|
class="justify-content-end px-1" |
|
|
mat-header-cell |
|
|
mat-header-cell |
|
|
mat-sort-header="performances.allTimeHigh.performancePercent" |
|
|
mat-sort-header="performances.allTimeHigh.performancePercent" |
|
|
> |
|
|
> |
|
|
@ -118,7 +129,7 @@ |
|
|
> |
|
|
> |
|
|
<span class="d-block d-sm-none text-nowrap" i18n>from ATH</span> |
|
|
<span class="d-block d-sm-none text-nowrap" i18n>from ATH</span> |
|
|
</th> |
|
|
</th> |
|
|
<td *matCellDef="let element" class="px-2 text-right" mat-cell> |
|
|
<td *matCellDef="let element" class="px-1 text-right" mat-cell> |
|
|
@if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) { |
|
|
@if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) { |
|
|
<gf-value |
|
|
<gf-value |
|
|
class="d-inline-block justify-content-end" |
|
|
class="d-inline-block justify-content-end" |
|
|
|