Browse Source

Used outline fields in dashboard select panel, Twilio and GPS geofencing rule nodes; fixed cropped labels in dashboard image dialog (#16623)

* Used outline inputs in dashboard select panel and Twilio rule nodes, fixed cropped labels in dashboard image dialog

* Fixed PR comments

* Fixed license header of dashboard-image-dialog.component.scss

* Shortened Lithuanian left/right position labels

---------

Co-authored-by: Vladyslav_Prykhodko <vprykhodko@thingsboard.io>
pull/16665/head
Maksym Tsymbarov 3 weeks ago
committed by GitHub
parent
commit
995f8fa293
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      rule-engine/rule-engine-components/src/main/resources/public/static/rulenode/twilio-config.js
  2. 14
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.html
  3. 5
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.scss
  4. 2
      ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html
  5. 2
      ui-ngx/src/app/shared/components/dashboard-select-panel.component.html
  6. 4
      ui-ngx/src/assets/locale/locale.constant-lt_LT.json

2
rule-engine/rule-engine-components/src/main/resources/public/static/rulenode/twilio-config.js

File diff suppressed because one or more lines are too long

14
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.html

@ -23,13 +23,15 @@
<fieldset [disabled]="(isLoading$ | async) || (takingScreenshot$ | async)" class="flex flex-col items-stretch justify-center gap-2">
<div [formGroup]="dashboardRectFormGroup" class="flex flex-col items-center justify-center gap-2">
<mat-form-field class="rect-field" appearance="outline">
<mat-label>Top %</mat-label>
<mat-label>{{ 'position.top' | translate }}</mat-label>
<input matInput formControlName="top" type="number" step="1" min="0" max="100">
<span class="mr-2" matSuffix>%</span>
</mat-form-field>
<div class="flex flex-row items-center justify-center gap-2">
<mat-form-field class="rect-field" appearance="outline">
<mat-label>Left %</mat-label>
<mat-form-field class="rect-field" appearance="outline">
<mat-label>{{ 'position.left' | translate }}</mat-label>
<input matInput formControlName="left" type="number" step="1" min="0" max="100">
<span class="mr-2" matSuffix>%</span>
</mat-form-field>
<div class="tb-image-preview-container">
@if (!imageUrl) {
@ -39,13 +41,15 @@
}
</div>
<mat-form-field class="rect-field" appearance="outline">
<mat-label>Right %</mat-label>
<mat-label>{{ 'position.right' | translate }}</mat-label>
<input matInput formControlName="right" type="number" step="1" min="0" max="100">
<span class="mr-2" matSuffix>%</span>
</mat-form-field>
</div>
<mat-form-field class="rect-field" appearance="outline">
<mat-label>Bottom %</mat-label>
<mat-label>{{ 'position.bottom' | translate }}</mat-label>
<input matInput formControlName="bottom" type="number" step="1" min="0" max="100">
<span class="mr-2" matSuffix>%</span>
</mat-form-field>
</div>
<div class="flex flex-row items-center justify-center">

5
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-image-dialog.component.scss

@ -1,11 +1,12 @@
// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc.
// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1
$previewSize: 300px !default;
:host {
mat-form-field.rect-field {
max-width: 80px;
max-width: 96px;
}
.tb-image-preview {

2
ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html

@ -78,7 +78,7 @@
!geoActionConfigForm.get('fetchPerimeterInfoFromMessageMetadata').value) {
<div class="flex flex-col">
<div class="flex flex-row gap-4">
<mat-form-field class="flex-1">
<mat-form-field class="flex-1" appearance="outline">
<mat-label>{{ 'rule-node-config.circle-center-latitude' | translate }}</mat-label>
<input type="number" min="-90" max="90" step="0.1" matInput formControlName="centerLatitude" required>
@if (geoActionConfigForm.get('centerLatitude').hasError('required')) {

2
ui-ngx/src/app/shared/components/dashboard-select-panel.component.html

@ -6,7 +6,7 @@
-->
<div class="mat-content mat-padding flex flex-col">
<mat-form-field>
<mat-form-field appearance="outline" subscriptSizing="dynamic">
<mat-label>{{'dashboard.select-dashboard' | translate}}</mat-label>
<mat-select matInput [(ngModel)]="dashboardId"
(ngModelChange)="dashboardSelected(dashboardId)">

4
ui-ngx/src/assets/locale/locale.constant-lt_LT.json

@ -7361,8 +7361,8 @@
"position": {
"top": "Viršus",
"bottom": "Apačia",
"left": "Kairioji pusė",
"right": "Dešinioji pusė"
"left": "Kairė",
"right": "Dešinė"
},
"profile": {
"profile": "Profilis",

Loading…
Cancel
Save