Move tag list to search sidebar
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
556e718f2a
commit
0563c928d1
@ -1,19 +1,58 @@
|
|||||||
<div class="tag-input-list-and-actions">
|
<div class="search-tab-inner" fxLayout="column">
|
||||||
|
<div id="file-search-input">
|
||||||
|
|
||||||
|
<div class="tag-input-list-and-actions">
|
||||||
<div #tagInputList class="tag-input-list">
|
<div #tagInputList class="tag-input-list">
|
||||||
<div class="tag-input-list-inner">
|
<div class="tag-input-list-inner">
|
||||||
<div (click)="removeFilterExpression(filter)" *ngFor="let filter of filters" class="tag-input-item"
|
<div (click)="removeFilterExpression(filter)" *ngFor="let filter of filters" class="tag-input-item"
|
||||||
mat-ripple>{{filter.getDisplayName()}}</div>
|
mat-ripple>{{filter.getDisplayName()}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button (click)="removeAllSearchTags()" id="delete-all-tags-button" mat-icon-button>
|
<button (click)="removeAllSearchTags()" id="delete-all-tags-button" mat-icon-button>
|
||||||
<ng-icon name="mat-delete-sweep"></ng-icon>
|
<ng-icon name="mat-delete-sweep"></ng-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<app-tag-input (tagAdded)="addSearchTag($event); searchForFiles()" [allowNegation]="true"
|
|
||||||
|
<app-tag-input (tagAdded)="addSearchTag($event); searchForFiles()" [allowNegation]="true"
|
||||||
[availableTags]="getValidSearchTags()"
|
[availableTags]="getValidSearchTags()"
|
||||||
class="full-width">
|
class="full-width">
|
||||||
<button (click)="openFilterDialog()" class="filter-dialog-button" mat-button>
|
<button (click)="openFilterDialog()" class="filter-dialog-button" mat-button>
|
||||||
<ng-icon name="mat-filter-alt"></ng-icon>
|
<ng-icon name="mat-filter-alt"></ng-icon>
|
||||||
</button>
|
</button>
|
||||||
</app-tag-input>
|
</app-tag-input>
|
||||||
<button (click)="openSortDialog()" id="sort-button" mat-flat-button>Sort: {{sortExpression.join(", ")}}</button>
|
|
||||||
|
<button (click)="openSortDialog()" id="sort-button" mat-flat-button>Sort: {{sortExpression.join(", ")}}</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<mat-divider fxFlex="1em"></mat-divider>
|
||||||
|
<div class="tag-list-header" fxFlex="40px">
|
||||||
|
<h2>Tags</h2>
|
||||||
|
<mat-divider></mat-divider>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="file-tag-list" fxFlex fxFlexAlign="start" fxFlexFill>
|
||||||
|
<cdk-virtual-scroll-viewport itemSize="50" maxBufferPx="4000" minBufferPx="500">
|
||||||
|
<div (click)="addSearchTagAndSearch(tag.getNormalizedOutput())"
|
||||||
|
(contextmenu)="contextMenuTag = tag; contextMenu.onContextMenu($event)"
|
||||||
|
*cdkVirtualFor="let tag of contextTags" class="selectable-tag">
|
||||||
|
<app-tag-item [tag]="tag"></app-tag-item>
|
||||||
|
</div>
|
||||||
|
</cdk-virtual-scroll-viewport>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<app-context-menu #contextMenu>
|
||||||
|
<button (click)="this.copyToClipboard(this.contextMenuTag!.getNormalizedOutput())" *ngIf="this.contextMenuTag"
|
||||||
|
mat-menu-item>Copy
|
||||||
|
"{{contextMenuTag!.getNormalizedOutput()}}"
|
||||||
|
</button>
|
||||||
|
<button (click)="this.copyToClipboard(this.contextMenuTag!.name)" *ngIf="this.contextMenuTag?.namespace"
|
||||||
|
mat-menu-item>Copy "{{this.contextMenuTag!.name}}"
|
||||||
|
</button>
|
||||||
|
<button (click)="this.copyToClipboard(this.contextMenuTag!.namespace!)" *ngIf="this.contextMenuTag?.namespace"
|
||||||
|
mat-menu-item>Copy "{{this.contextMenuTag!.namespace!}}"
|
||||||
|
</button>
|
||||||
|
</app-context-menu>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue