2019-08-12 19:34:23 +03:00
|
|
|
<!--
|
|
|
|
|
|
2023-01-31 10:43:56 +02:00
|
|
|
Copyright © 2016-2023 The Thingsboard Authors
|
2019-08-12 19:34:23 +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.
|
|
|
|
|
|
|
|
|
|
-->
|
2020-02-25 19:11:25 +02:00
|
|
|
<button *ngIf="asButton" cdkOverlayOrigin #timewindowPanelOrigin="cdkOverlayOrigin" [disabled]="timewindowDisabled"
|
2019-10-31 10:06:57 +02:00
|
|
|
type="button"
|
2019-12-23 14:36:44 +02:00
|
|
|
mat-raised-button color="primary" (click)="openEditMode()">
|
2019-08-12 19:34:23 +03:00
|
|
|
<mat-icon class="material-icons">query_builder</mat-icon>
|
2019-10-24 19:52:19 +03:00
|
|
|
<span>{{innerValue?.displayValue}}</span>
|
2019-08-12 19:34:23 +03:00
|
|
|
</button>
|
|
|
|
|
<section *ngIf="!asButton" cdkOverlayOrigin #timewindowPanelOrigin="cdkOverlayOrigin"
|
|
|
|
|
class="tb-timewindow" fxLayout="row" fxLayoutAlign="start center">
|
2020-04-14 11:38:30 +03:00
|
|
|
<button *ngIf="direction === 'left'" [disabled]="timewindowDisabled" mat-icon-button class="tb-mat-32"
|
2019-10-31 10:06:57 +02:00
|
|
|
type="button"
|
2019-12-23 14:36:44 +02:00
|
|
|
(click)="openEditMode()"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ 'timewindow.edit' | translate }}"
|
|
|
|
|
[matTooltipPosition]="tooltipPosition">
|
|
|
|
|
<mat-icon class="material-icons">query_builder</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<span [fxHide]="hideLabel()"
|
2019-12-23 14:36:44 +02:00
|
|
|
(click)="openEditMode()"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ 'timewindow.edit' | translate }}"
|
|
|
|
|
[matTooltipPosition]="tooltipPosition">
|
2021-03-17 19:41:52 +02:00
|
|
|
{{innerValue?.displayValue}} <span [fxShow]="innerValue?.displayTimezoneAbbr !== ''">| <span class="timezone-abbr">{{innerValue.displayTimezoneAbbr}}</span></span>
|
2019-08-12 19:34:23 +03:00
|
|
|
</span>
|
2020-04-14 11:38:30 +03:00
|
|
|
<button *ngIf="direction === 'right'" [disabled]="timewindowDisabled" mat-icon-button class="tb-mat-32"
|
2019-10-31 10:06:57 +02:00
|
|
|
type="button"
|
2019-12-23 14:36:44 +02:00
|
|
|
(click)="openEditMode()"
|
2019-08-12 19:34:23 +03:00
|
|
|
matTooltip="{{ 'timewindow.edit' | translate }}"
|
|
|
|
|
[matTooltipPosition]="tooltipPosition">
|
|
|
|
|
<mat-icon class="material-icons">query_builder</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</section>
|