2019-08-12 19:34:23 +03:00
|
|
|
<!--
|
|
|
|
|
|
2025-02-25 09:39:16 +02:00
|
|
|
Copyright © 2016-2025 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.
|
|
|
|
|
|
|
|
|
|
-->
|
2023-05-15 15:15:55 +03:00
|
|
|
<button *ngIf="asButton && !strokedButton && !flatButton"
|
2023-02-07 17:45:03 +02:00
|
|
|
[disabled]="timewindowDisabled"
|
2019-10-31 10:06:57 +02:00
|
|
|
type="button"
|
2023-02-07 17:45:03 +02:00
|
|
|
mat-raised-button color="primary"
|
|
|
|
|
(click)="toggleTimewindow($event)">
|
2019-08-12 19:34:23 +03:00
|
|
|
<mat-icon class="material-icons">query_builder</mat-icon>
|
2023-05-15 15:15:55 +03:00
|
|
|
<span>{{displayValue()}}</span>
|
2019-08-12 19:34:23 +03:00
|
|
|
</button>
|
2023-04-21 18:00:56 +03:00
|
|
|
<button *ngIf="asButton && strokedButton"
|
|
|
|
|
[disabled]="timewindowDisabled"
|
|
|
|
|
type="button"
|
|
|
|
|
mat-stroked-button color="primary"
|
|
|
|
|
(click)="toggleTimewindow($event)">
|
|
|
|
|
<mat-icon class="material-icons">query_builder</mat-icon>
|
2023-05-15 15:15:55 +03:00
|
|
|
<span>{{displayValue()}}</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button *ngIf="asButton && flatButton"
|
|
|
|
|
[disabled]="timewindowDisabled"
|
|
|
|
|
type="button"
|
|
|
|
|
mat-button
|
|
|
|
|
(click)="toggleTimewindow($event)">
|
|
|
|
|
<mat-icon class="material-icons">query_builder</mat-icon>
|
|
|
|
|
<span>{{displayValue()}}</span>
|
2023-04-21 18:00:56 +03:00
|
|
|
</button>
|
2023-02-07 17:45:03 +02:00
|
|
|
<section *ngIf="!asButton"
|
|
|
|
|
class="tb-timewindow"
|
2023-08-08 18:54:07 +03:00
|
|
|
[class]="{'no-padding': noPadding}"
|
|
|
|
|
matTooltip="{{ 'timewindow.edit' | translate }}"
|
|
|
|
|
[matTooltipPosition]="tooltipPosition"
|
2024-08-19 18:35:37 +03:00
|
|
|
[matTooltipDisabled]="timewindowDisabled"
|
2023-08-08 18:54:07 +03:00
|
|
|
[style]="timewindowComponentStyle"
|
|
|
|
|
(click)="toggleTimewindow($event)">
|
|
|
|
|
<tb-icon *ngIf="computedTimewindowStyle.showIcon && computedTimewindowStyle.iconPosition === 'left'"
|
|
|
|
|
[style]="timewindowIconStyle">{{ computedTimewindowStyle.icon }}</tb-icon>
|
2024-10-09 19:36:42 +03:00
|
|
|
<div class="tb-timewindow-label" [class.!hidden]="hideLabel">
|
|
|
|
|
{{innerValue?.displayValue}} <span [class.!hidden]="!(innerValue?.displayTimezoneAbbr !== '')">| <span class="timezone-abbr">{{innerValue?.displayTimezoneAbbr}}</span></span>
|
2023-08-08 18:54:07 +03:00
|
|
|
</div>
|
|
|
|
|
<tb-icon *ngIf="computedTimewindowStyle.showIcon && computedTimewindowStyle.iconPosition === 'right'"
|
|
|
|
|
[style]="timewindowIconStyle">{{ computedTimewindowStyle.icon }}</tb-icon>
|
2019-08-12 19:34:23 +03:00
|
|
|
</section>
|