|
|
|
@ -35,39 +35,24 @@
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
|
<table
|
|
|
|
|
class="w-100"
|
|
|
|
|
class="gf-table w-100"
|
|
|
|
|
matSort
|
|
|
|
|
matSortActive="date"
|
|
|
|
|
matSortDirection="desc"
|
|
|
|
|
mat-table
|
|
|
|
|
[dataSource]="dataSource"
|
|
|
|
|
>
|
|
|
|
|
<ng-container matColumnDef="account">
|
|
|
|
|
<th *matHeaderCellDef i18n mat-header-cell mat-sort-header>Account</th>
|
|
|
|
|
<td *matCellDef="let element" mat-cell>
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
<gf-symbol-icon
|
|
|
|
|
*ngIf="element.Account?.Platform?.url"
|
|
|
|
|
class="mr-1"
|
|
|
|
|
[tooltip]="element.Account?.Platform?.name"
|
|
|
|
|
[url]="element.Account?.Platform?.url"
|
|
|
|
|
></gf-symbol-icon>
|
|
|
|
|
<span class="d-none d-lg-block">{{ element.Account?.name }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="date">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="justify-content-center"
|
|
|
|
|
class="justify-content-center px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
Date
|
|
|
|
|
</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
|
{{ element.date | date: defaultDateFormat }}
|
|
|
|
|
</div>
|
|
|
|
@ -77,14 +62,14 @@
|
|
|
|
|
<ng-container matColumnDef="type">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="justify-content-center"
|
|
|
|
|
class="justify-content-center px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
Type
|
|
|
|
|
</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element" class="text-center">
|
|
|
|
|
<td mat-cell *matCellDef="let element" class="px-1 text-center">
|
|
|
|
|
<div
|
|
|
|
|
class="d-inline-flex justify-content-center pl-1 pr-2 py-1 type-badge"
|
|
|
|
|
[ngClass]="element.type == 'BUY' ? 'buy' : 'sell'"
|
|
|
|
@ -103,21 +88,25 @@
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="symbol">
|
|
|
|
|
<th *matHeaderCellDef i18n mat-header-cell mat-sort-header>Symbol</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.symbol | gfSymbol }}</td>
|
|
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell mat-sort-header>
|
|
|
|
|
Symbol
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
|
{{ element.symbol | gfSymbol }}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="currency">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-center"
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-center px-1"
|
|
|
|
|
mat-header-cell
|
|
|
|
|
i18n
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
Currency
|
|
|
|
|
</th>
|
|
|
|
|
<td class="d-none d-lg-table-cell" mat-cell *matCellDef="let element">
|
|
|
|
|
<td *matCellDef="let element" class="d-none d-lg-table-cell px-1" mat-cell>
|
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
|
{{ element.currency }}
|
|
|
|
|
</div>
|
|
|
|
@ -127,14 +116,14 @@
|
|
|
|
|
<ng-container matColumnDef="quantity">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end"
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
Quantity
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="d-none d-lg-table-cell" mat-cell>
|
|
|
|
|
<td *matCellDef="let element" class="d-none d-lg-table-cell px-1" mat-cell>
|
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
|
<gf-value
|
|
|
|
|
[isCurrency]="true"
|
|
|
|
@ -148,14 +137,14 @@
|
|
|
|
|
<ng-container matColumnDef="unitPrice">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end"
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
Unit Price
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="d-none d-lg-table-cell" mat-cell>
|
|
|
|
|
<td *matCellDef="let element" class="d-none d-lg-table-cell px-1" mat-cell>
|
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
|
<gf-value
|
|
|
|
|
[isCurrency]="true"
|
|
|
|
@ -169,14 +158,14 @@
|
|
|
|
|
<ng-container matColumnDef="fee">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end"
|
|
|
|
|
class="d-none d-lg-table-cell justify-content-end px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
Fee
|
|
|
|
|
</th>
|
|
|
|
|
<td class="d-none d-lg-table-cell" mat-cell *matCellDef="let element">
|
|
|
|
|
<td *matCellDef="let element" class="d-none d-lg-table-cell px1" mat-cell>
|
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
|
<gf-value
|
|
|
|
|
[isCurrency]="true"
|
|
|
|
@ -187,9 +176,26 @@
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="account">
|
|
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell mat-sort-header>
|
|
|
|
|
Account
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
<gf-symbol-icon
|
|
|
|
|
*ngIf="element.Account?.Platform?.url"
|
|
|
|
|
class="mr-1"
|
|
|
|
|
[tooltip]="element.Account?.Platform?.name"
|
|
|
|
|
[url]="element.Account?.Platform?.url"
|
|
|
|
|
></gf-symbol-icon>
|
|
|
|
|
<span class="d-none d-lg-block">{{ element.Account?.name }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="actions">
|
|
|
|
|
<th *matHeaderCellDef class="px-0 text-center" i18n mat-header-cell></th>
|
|
|
|
|
<td *matCellDef="let element" class="px-0 text-center" mat-cell>
|
|
|
|
|
<th *matHeaderCellDef class="px-1 text-center" i18n mat-header-cell></th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 text-center" mat-cell>
|
|
|
|
|
<button
|
|
|
|
|
class="mx-1 no-min-width px-2"
|
|
|
|
|
mat-button
|
|
|
|
|