2019-08-09 19:13:18 +03:00
|
|
|
<!--
|
|
|
|
|
|
2024-01-09 10:46:16 +02:00
|
|
|
Copyright © 2016-2024 The Thingsboard Authors
|
2019-08-09 19:13:18 +03:00
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
<mat-sidenav-container>
|
|
|
|
|
<mat-sidenav #sidenav class="tb-site-sidenav mat-elevation-z2"
|
2021-07-13 11:15:13 +03:00
|
|
|
[disableClose]="sidenavOpened"
|
2019-08-09 19:13:18 +03:00
|
|
|
(click)="sidenavClicked()"
|
|
|
|
|
[mode]="sidenavMode"
|
2019-11-15 12:22:14 +02:00
|
|
|
[opened]="sidenavOpened && !forceFullscreen">
|
2019-08-09 19:13:18 +03:00
|
|
|
<header class="tb-nav-header">
|
|
|
|
|
<mat-toolbar color="primary" class="tb-nav-header-toolbar">
|
|
|
|
|
<div fxFlex="auto" fxLayout="row">
|
|
|
|
|
<img [src]="logo"
|
|
|
|
|
aria-label="logo" class="tb-logo-title"/>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-toolbar>
|
|
|
|
|
</header>
|
|
|
|
|
<mat-toolbar color="primary" fxFlex="0%" class="tb-side-menu-toolbar" fxLayout="column" role="navigation">
|
|
|
|
|
<tb-side-menu></tb-side-menu>
|
|
|
|
|
</mat-toolbar>
|
|
|
|
|
</mat-sidenav>
|
|
|
|
|
<mat-sidenav-content>
|
|
|
|
|
<div fxLayout="column" role="main" style="height: 100%;">
|
2023-02-09 19:13:44 +02:00
|
|
|
<mat-toolbar fxLayout="row" color="primary" class="tb-primary-toolbar">
|
2020-04-02 11:01:13 +03:00
|
|
|
<button [fxShow]="!forceFullscreen" mat-icon-button id="main"
|
2019-12-12 19:55:17 +02:00
|
|
|
[ngClass]="{'tb-invisible': displaySearchMode()}"
|
|
|
|
|
fxHide.gt-sm (click)="sidenav.toggle()">
|
2019-08-09 19:13:18 +03:00
|
|
|
<mat-icon class="material-icons">menu</mat-icon>
|
|
|
|
|
</button>
|
2020-04-02 11:01:13 +03:00
|
|
|
<button [fxShow]="forceFullscreen" mat-icon-button
|
2019-12-12 19:55:17 +02:00
|
|
|
[ngClass]="{'tb-invisible': displaySearchMode()}"
|
|
|
|
|
(click)="goBack()">
|
2019-11-15 12:22:14 +02:00
|
|
|
<mat-icon class="material-icons">arrow_back</mat-icon>
|
|
|
|
|
</button>
|
2020-04-02 11:01:13 +03:00
|
|
|
<button mat-icon-button
|
2019-12-12 19:55:17 +02:00
|
|
|
[ngClass]="{'tb-invisible': !displaySearchMode()}"
|
|
|
|
|
(click)="closeSearch()">
|
|
|
|
|
<mat-icon class="material-icons">arrow_back</mat-icon>
|
|
|
|
|
</button>
|
2020-02-04 15:14:17 +02:00
|
|
|
<tb-breadcrumb [fxShow]="!displaySearchMode()"
|
2023-02-09 19:13:44 +02:00
|
|
|
fxFlex class="mat-toolbar-tools">
|
2020-02-04 15:14:17 +02:00
|
|
|
</tb-breadcrumb>
|
2019-12-12 19:55:17 +02:00
|
|
|
<div [fxShow]="displaySearchMode()" fxFlex fxLayout="row" class="tb-dark">
|
2023-02-21 19:18:04 +02:00
|
|
|
<mat-form-field fxFlex class="tb-appearance-transparent">
|
2019-12-12 19:55:17 +02:00
|
|
|
<input #searchInput matInput
|
2023-08-14 13:30:24 +03:00
|
|
|
[formControl]="textSearch"
|
2019-12-12 19:55:17 +02:00
|
|
|
placeholder="{{ 'common.enter-search' | translate }}"/>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<button [fxShow]="searchEnabled"
|
2020-04-02 11:01:13 +03:00
|
|
|
mat-icon-button (click)="openSearch()">
|
2019-12-12 19:55:17 +02:00
|
|
|
<mat-icon class="material-icons">search</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<button *ngIf="fullscreenEnabled" [fxShow]="!displaySearchMode()"
|
2020-04-02 11:01:13 +03:00
|
|
|
mat-icon-button fxHide.lt-md (click)="toggleFullscreen()">
|
2019-08-09 19:13:18 +03:00
|
|
|
<mat-icon class="material-icons">{{ isFullscreen() ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>
|
|
|
|
|
</button>
|
2023-01-20 15:08:44 +02:00
|
|
|
<tb-notification-bell></tb-notification-bell>
|
2019-12-12 19:55:17 +02:00
|
|
|
<tb-user-menu [displayUserInfo]="!displaySearchMode()"></tb-user-menu>
|
2019-08-09 19:13:18 +03:00
|
|
|
</mat-toolbar>
|
|
|
|
|
<mat-progress-bar color="warn" style="z-index: 10; margin-bottom: -4px; width: 100%;" mode="indeterminate"
|
2023-02-09 19:13:44 +02:00
|
|
|
*ngIf="!hideLoadingBar && (isLoading$ | async)">
|
2019-08-09 19:13:18 +03:00
|
|
|
</mat-progress-bar>
|
|
|
|
|
<div fxFlex fxLayout="column" tb-toast class="tb-main-content">
|
2019-12-12 19:55:17 +02:00
|
|
|
<router-outlet (activate)="activeComponentChanged($event)"></router-outlet>
|
2019-08-09 19:13:18 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-sidenav-content>
|
|
|
|
|
</mat-sidenav-container>
|