2019-01-17 14:07:54 +01:00
|
|
|
<mat-toolbar color="primary" [ngClass]="multiSelectMode ? 'multi-select' : ''" *ngIf="!vp.isMobile">
|
|
|
|
<!-- Nav menu -->
|
2019-06-14 15:19:52 +02:00
|
|
|
<button mat-icon-button *ngIf="!multiSelectMode" (click)="clickHamburgerMenu()">
|
2019-01-17 14:07:54 +01:00
|
|
|
<mat-icon>menu</mat-icon>
|
|
|
|
</button>
|
|
|
|
</mat-toolbar>
|
2018-11-29 17:36:22 +01:00
|
|
|
<mat-toolbar color="primary" [ngClass]="multiSelectMode ? 'multi-select' : ''" class="sticky-toolbar">
|
2018-11-06 15:35:51 +01:00
|
|
|
<div class="toolbar-left">
|
2018-10-05 16:34:08 +02:00
|
|
|
<!-- Nav menu -->
|
2019-06-14 15:19:52 +02:00
|
|
|
<button mat-icon-button *ngIf="vp.isMobile && nav && !multiSelectMode" (click)="clickHamburgerMenu()">
|
2018-10-05 16:34:08 +02:00
|
|
|
<mat-icon>menu</mat-icon>
|
|
|
|
</button>
|
2018-10-11 14:03:44 +02:00
|
|
|
|
2018-11-06 15:35:51 +01:00
|
|
|
<!-- Exit / Back button -->
|
2019-06-14 15:19:52 +02:00
|
|
|
<button mat-icon-button *ngIf="!nav && !editMode && !multiSelectMode" (click)="onBackButton()">
|
2018-11-06 15:35:51 +01:00
|
|
|
<mat-icon>arrow_back</mat-icon>
|
|
|
|
</button>
|
2018-10-05 16:34:08 +02:00
|
|
|
|
2018-11-06 15:35:51 +01:00
|
|
|
<!-- Cancel edit button -->
|
2019-06-14 15:19:52 +02:00
|
|
|
<button mat-icon-button *ngIf="editMode" (click)="sendMainEvent()">
|
2018-11-06 15:35:51 +01:00
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
</button>
|
2018-10-05 16:34:08 +02:00
|
|
|
|
2019-06-14 15:19:52 +02:00
|
|
|
<div class="toolbar-left-text" *ngIf="!multiSelectMode">
|
2018-11-06 15:35:51 +01:00
|
|
|
<!-- Title slot -->
|
|
|
|
<ng-content select=".title-slot"></ng-content>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-05 17:40:32 +01:00
|
|
|
|
2018-11-29 17:36:22 +01:00
|
|
|
<!-- centered information slot -->
|
|
|
|
<div *ngIf="!multiSelectMode" class="spacer"></div>
|
2019-06-14 15:19:52 +02:00
|
|
|
<div class="toolbar-centered" *ngIf="multiSelectMode">
|
2018-11-05 17:40:32 +01:00
|
|
|
<ng-content select=".central-info-slot"></ng-content>
|
|
|
|
</div>
|
2018-11-29 17:36:22 +01:00
|
|
|
<div class="spacer"></div>
|
2018-10-05 16:34:08 +02:00
|
|
|
|
2018-11-05 17:40:32 +01:00
|
|
|
<div class="toolbar-right">
|
2018-11-06 15:35:51 +01:00
|
|
|
<!-- Extra controls slot -->
|
2019-06-14 15:19:52 +02:00
|
|
|
<div class="extra-controls-wrapper">
|
2018-11-06 15:35:51 +01:00
|
|
|
<ng-content select=".extra-controls-slot"></ng-content>
|
2018-10-05 16:34:08 +02:00
|
|
|
</div>
|
|
|
|
|
2018-11-06 15:35:51 +01:00
|
|
|
<!-- Main action button - desktop -->
|
2018-11-29 17:36:22 +01:00
|
|
|
<button
|
2019-01-09 08:31:13 +01:00
|
|
|
mat-icon-button
|
|
|
|
*ngIf="mainButtonIcon == 'add' && mainButton && !editMode && !vp.isMobile && !multiSelectMode"
|
|
|
|
(click)="sendMainEvent()"
|
|
|
|
>
|
|
|
|
<mat-icon>add_circle</mat-icon>
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-icon-button
|
|
|
|
*ngIf="mainButtonIcon == 'edit' && mainButton && !editMode && !vp.isMobile && !multiSelectMode"
|
2018-11-29 17:36:22 +01:00
|
|
|
(click)="sendMainEvent()"
|
|
|
|
>
|
2019-01-09 08:31:13 +01:00
|
|
|
<mat-icon>edit</mat-icon>
|
2018-11-06 15:35:51 +01:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- Save button -->
|
2018-11-29 17:36:22 +01:00
|
|
|
<button mat-button *ngIf="editMode" (click)="save()"><strong translate class="upper">Save</strong></button>
|
2018-10-05 16:34:08 +02:00
|
|
|
|
2018-11-06 15:35:51 +01:00
|
|
|
<!-- Menu button slot -->
|
2019-06-14 15:19:52 +02:00
|
|
|
<ng-content *ngIf="!editMode" select=".menu-slot"></ng-content>
|
2018-11-06 15:35:51 +01:00
|
|
|
</div>
|
2018-10-05 16:34:08 +02:00
|
|
|
</mat-toolbar>
|
|
|
|
|
2018-11-29 17:36:22 +01:00
|
|
|
<!-- Main action button - mobile -->
|
2018-11-05 17:40:32 +01:00
|
|
|
|
2018-11-29 17:36:22 +01:00
|
|
|
<button
|
|
|
|
mat-fab
|
2019-06-14 15:19:52 +02:00
|
|
|
class="head-button "
|
2018-11-29 17:36:22 +01:00
|
|
|
*ngIf="mainButton && !editMode && vp.isMobile && !multiSelectMode"
|
|
|
|
(click)="sendMainEvent()"
|
|
|
|
>
|
2018-11-08 17:38:44 +01:00
|
|
|
<mat-icon>{{ mainButtonIcon }}</mat-icon>
|
2018-11-06 15:35:51 +01:00
|
|
|
</button>
|