-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f49cbf
commit 0b7fe4c
Showing
22 changed files
with
440 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 15 additions & 2 deletions
17
src/app/modules/market/component/market-exchange-bar/market-exchange-bar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
<div class="wrapper"> | ||
<input #input (keyup)="onKeyup(input)" [placeholder]="'market.exchange.highlight' | translate"> | ||
<button class="small" appAnnotation="market.filter" (click)="onToggleClick()" [title]="'market.bar.toggle' | translate"> | ||
<button class="small" appAnnotation="market.filter" (click)="onToggleClick()" | ||
[title]="'market.bar.toggle' | translate"> | ||
<mat-icon> filter_list </mat-icon> | ||
</button> | ||
<button class="small" appAnnotation="market.reset" (click)="onClearClick()" [title]="'market.bar.reset' | translate"> | ||
<button class="small" appAnnotation="market.reset" (click)="onResetClick()" | ||
[title]="'market.bar.reset' | translate"> | ||
<mat-icon> history </mat-icon> | ||
</button> | ||
<ng-container *ngIf="records$ | async as records"> | ||
<button class="small" (click)="recordsVisible$.next(!recordsVisible$.value)" | ||
[title]="'market.bar.history' | translate" [disabled]="!records.length"> | ||
<mat-icon> history_edu </mat-icon> | ||
</button> | ||
<div class="records" *ngIf="recordsVisible$ | async"> | ||
<div class="record" *ngFor="let record of records" (click)="onResetClick(record)"> | ||
{{record | tradeExchangeText}} | ||
</div> | ||
</div> | ||
</ng-container> | ||
<button (click)="onSearch()" appAnnotation="market.search">{{'market.bar.search' | translate}}</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/app/modules/market/component/market-exchange/market-exchange.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 25 additions & 9 deletions
34
...app/modules/market/component/market-item-search-bar/market-item-search-bar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
<div class="input-container"> | ||
<input #input [placeholder]="'market.search.search' | translate" (keyup)="onKeyup()" (focus)="onFocus()" | ||
(blur)="onBlur($event)"> | ||
<button class="small" appAnnotation="market.filter" (click)="onToggleClick()" [title]="'market.bar.toggle' | translate"> | ||
<button class="small" appAnnotation="market.filter" (click)="onToggleClick()" | ||
[title]="'market.bar.toggle' | translate"> | ||
<mat-icon> filter_list </mat-icon> | ||
</button> | ||
<button class="small" appAnnotation="market.reset" (click)="onClearClick()" [title]="'market.bar.reset' | translate"> | ||
<mat-icon> history </mat-icon> | ||
<button class="small" appAnnotation="market.reset" (click)="onResetClick()" | ||
[title]="'market.bar.reset' | translate"> | ||
<mat-icon> restore </mat-icon> | ||
</button> | ||
<button (click)="onSearch()" appAnnotation="market.search">{{'market.bar.search' | translate}}</button> | ||
<cdk-virtual-scroll-viewport class="filter" [class.shown]="filterVisible$ | async" itemSize="30" minBufferPx="200" | ||
maxBufferPx="400"> | ||
<div class="entry" [class.group]="entry.group" [class.item]="!entry.group" [innerHTML]="entry.text" | ||
(click)="onItemClick(entry.value)" *cdkVirtualFor="let entry of entries$ | async; templateCacheSize: 0"> | ||
<ng-container *ngIf="records$ | async as records"> | ||
<button class="small" (click)="recordsVisible$.next(!recordsVisible$.value)" | ||
[title]="'market.bar.history' | translate" [disabled]="!records.length"> | ||
<mat-icon> history_edu </mat-icon> | ||
</button> | ||
<div class="records" *ngIf="recordsVisible$ | async"> | ||
<div class="record" *ngFor="let record of records" (click)="onResetClick(record)"> | ||
{{record | tradeSearchText}} | ||
</div> | ||
</div> | ||
</cdk-virtual-scroll-viewport> | ||
</ng-container> | ||
<button (click)="onSearch()" appAnnotation="market.search">{{'market.bar.search' | translate}}</button> | ||
<ng-container *ngIf="entries$ | async as entries"> | ||
<cdk-virtual-scroll-viewport class="filter" | ||
[style.height.px]="(entries.length * 30 > 240 ? 240 : entries.length * 30)" | ||
[class.shown]="filterVisible$ | async" itemSize="30" minBufferPx="200" maxBufferPx="400"> | ||
<div class="entry" [class.group]="entry.group" [class.item]="!entry.group" [innerHTML]="entry.text" | ||
(click)="onItemClick(entry.value)" *cdkVirtualFor="let entry of entries; templateCacheSize: 0"> | ||
</div> | ||
</cdk-virtual-scroll-viewport> | ||
</ng-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.