|
|
|
@ -41,56 +41,50 @@
|
|
|
|
|
[dataSource]="dataSource"
|
|
|
|
|
>
|
|
|
|
|
<ng-container matColumnDef="count">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 text-right" i18n mat-header-cell>#</th>
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="d-none d-lg-table-cell px-1 text-right"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
>
|
|
|
|
|
#
|
|
|
|
|
</th>
|
|
|
|
|
<td
|
|
|
|
|
*matCellDef="let element; let i = index"
|
|
|
|
|
class="px-1 text-right"
|
|
|
|
|
class="d-none d-lg-table-cell px-1 text-right"
|
|
|
|
|
mat-cell
|
|
|
|
|
>
|
|
|
|
|
{{ dataSource.data.length - i }}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container matColumnDef="date">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="justify-content-center px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell mat-sort-header>
|
|
|
|
|
Date
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
{{ element.date | date: defaultDateFormat }}
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="type">
|
|
|
|
|
<th
|
|
|
|
|
*matHeaderCellDef
|
|
|
|
|
class="justify-content-center px-1"
|
|
|
|
|
i18n
|
|
|
|
|
mat-header-cell
|
|
|
|
|
mat-sort-header
|
|
|
|
|
>
|
|
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell mat-sort-header>
|
|
|
|
|
Type
|
|
|
|
|
</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element" class="px-1 text-center">
|
|
|
|
|
<td mat-cell *matCellDef="let element" class="px-1">
|
|
|
|
|
<div
|
|
|
|
|
class="d-inline-flex justify-content-center pl-1 pr-2 py-1 type-badge"
|
|
|
|
|
class="d-inline-flex p-1 type-badge"
|
|
|
|
|
[ngClass]="element.type == 'BUY' ? 'buy' : 'sell'"
|
|
|
|
|
>
|
|
|
|
|
<ion-icon
|
|
|
|
|
class="mr-1"
|
|
|
|
|
[name]="
|
|
|
|
|
element.type === 'BUY'
|
|
|
|
|
? 'arrow-forward-circle-outline'
|
|
|
|
|
: 'arrow-back-circle-outline'
|
|
|
|
|
"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<span>{{ element.type }}</span>
|
|
|
|
|
<span class="d-none d-lg-block mx-1">{{ element.type }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -102,7 +96,10 @@
|
|
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
|
{{ element.symbol | gfSymbol }}
|
|
|
|
|
<span *ngIf="element.isDraft" class="badge badge-secondary ml-1" i18n
|
|
|
|
|
<span
|
|
|
|
|
*ngIf="isAfter(element.date, endOfToday)"
|
|
|
|
|
class="badge badge-secondary ml-1"
|
|
|
|
|
i18n
|
|
|
|
|
>Draft</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
@ -188,7 +185,9 @@
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="account">
|
|
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell>Account</th>
|
|
|
|
|
<th *matHeaderCellDef class="px-1" mat-header-cell>
|
|
|
|
|
<span class="d-none d-lg-block" i18n>Account</span>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
<gf-symbol-icon
|
|
|
|
|