From 6fbc7b6875165ab5f853313224096ab84045fc14 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Mon, 14 Oct 2024 15:03:03 +0300 Subject: [PATCH] Flex layout replacements. Switch to tailwind.css. --- ...anage-widget-actions-dialog.component.html | 4 +- .../manage-widget-actions.component.html | 19 ++++--- .../widget-action-dialog.component.html | 15 +++--- .../alarm-count-basic-config.component.html | 2 +- .../alarms-table-basic-config.component.html | 8 +-- .../action-button-basic-config.component.html | 6 +-- ...command-button-basic-config.component.html | 4 +- .../power-button-basic-config.component.html | 32 +++++------ .../toggle-button-basic-config.component.html | 25 +++++---- .../aggregated-data-key-row.component.html | 4 +- .../aggregated-data-keys-panel.component.html | 5 +- ...ted-value-card-basic-config.component.html | 16 +++--- .../label-card-basic-config.component.html | 6 +-- ...bel-value-card-basic-config.component.html | 10 ++-- ...le-app-qr-code-basic-config.component.html | 2 +- .../progress-bar-basic-config.component.html | 14 ++--- .../simple-card-basic-config.component.html | 2 +- ...meseries-table-basic-config.component.html | 6 +-- ...d-notification-basic-config.component.html | 8 +-- .../value-card-basic-config.component.html | 18 +++---- ...lue-chart-card-basic-config.component.html | 10 ++-- ...rt-with-labels-basic-config.component.html | 30 +++++------ .../comparison-keys-table.component.html | 5 +- .../chart/flot-basic-config.component.html | 11 ++-- .../latest-chart-basic-config.component.html | 54 +++++++++---------- .../range-chart-basic-config.component.html | 30 +++++------ ...e-series-chart-basic-config.component.html | 36 ++++++------- .../basic/common/data-key-row.component.html | 4 +- .../common/data-keys-panel.component.html | 11 ++-- .../widget-actions-panel.component.html | 4 +- ...entities-table-basic-config.component.html | 6 +-- .../analog-gauge-basic-config.component.html | 10 ++-- .../compass-gauge-basic-config.component.html | 12 ++--- ...l-simple-gauge-basic-config.component.html | 10 ++-- .../data-key-config-dialog.component.html | 4 +- .../config/data-key-config.component.html | 15 +++--- .../widget/config/data-keys.component.html | 8 +-- .../widget/config/datasource.component.html | 12 ++--- .../widget/config/datasources.component.html | 12 ++--- .../config/target-device.component.html | 2 +- .../timewindow-config-panel.component.html | 4 +- .../timewindow-style-panel.component.html | 4 +- .../widget/widget-config.component.html | 26 ++++----- .../widget/widget-container.component.html | 6 +-- .../components/widget/widget.component.html | 11 ++-- 45 files changed, 263 insertions(+), 280 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions-dialog.component.html b/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions-dialog.component.html index ba37ff19f4..6e4cb4c1e8 100644 --- a/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/action/manage-widget-actions-dialog.component.html @@ -18,7 +18,7 @@

{{ data.widgetTitle }}: {{ 'widget-config.actions' | translate }}

- + - +  
-
+
-
+
- {{ 'widget-config.no-actions-text' }} + {{ 'widget-config.no-actions-text' }}

{{ (isAdd ? 'widget-config.add-action' : 'widget-config.edit-action' ) | translate }}

- +
- {{ noKeysText }} + {{ noKeysText }} diff --git a/ui-ngx/src/app/modules/home/components/widget/config/basic/common/widget-actions-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/config/basic/common/widget-actions-panel.component.html index d2a2e59cb2..45dd4c050c 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/basic/common/widget-actions-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/config/basic/common/widget-actions-panel.component.html @@ -16,9 +16,9 @@ -->
-
+
widget-config.actions
- + {{ widgetAction.icon }} diff --git a/ui-ngx/src/app/modules/home/components/widget/config/basic/entity/entities-table-basic-config.component.html b/ui-ngx/src/app/modules/home/components/widget/config/basic/entity/entities-table-basic-config.component.html index 1c3cd26863..1ff1770f4f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/basic/entity/entities-table-basic-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/config/basic/entity/entities-table-basic-config.component.html @@ -43,8 +43,8 @@ {{ 'widget-config.card-title' | translate }} -
- +
+ {{ 'widget-config.card-icon' | translate }} -
+
{{ 'widgets.gauge.units-title' | translate }} -
+
@@ -51,7 +51,7 @@
widget-config.units-short
-
+
@@ -70,10 +70,10 @@ {{ 'widgets.gauge.value' | translate }} -
+
-
widget-config.decimals-suffix
+
widget-config.decimals-suffix
widgets.gauge.ticks
-
+
widgets.gauge.min-value-short
diff --git a/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/compass-gauge-basic-config.component.html b/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/compass-gauge-basic-config.component.html index 02e47db0f8..aff6ed4444 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/compass-gauge-basic-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/compass-gauge-basic-config.component.html @@ -35,8 +35,8 @@ {{ 'widget-config.title' | translate }} -
- +
+ {{ 'widget-config.icon' | translate }} -
+
widgets.gauge.compass-appearance
widgets.gauge.labels
-
+
widgets.gauge.label-style
-
+
diff --git a/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/digital-simple-gauge-basic-config.component.html b/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/digital-simple-gauge-basic-config.component.html index 11e0d6abc2..a924dffa9b 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/digital-simple-gauge-basic-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/config/basic/gauge/digital-simple-gauge-basic-config.component.html @@ -55,7 +55,7 @@ {{ 'widgets.gauge.min-and-max-label' | translate }} -
+
@@ -68,7 +68,7 @@
{{ 'widgets.gauge.min-and-max-value' | translate }}
-
+
widgets.gauge.min-value-short
@@ -92,14 +92,14 @@ {{ 'widgets.gauge.value' | translate }} -
+
-
widget-config.decimals-suffix
+
widget-config.decimals-suffix
{{ 'widgets.gauge.label' | translate }} -
+
diff --git a/ui-ngx/src/app/modules/home/components/widget/config/data-key-config-dialog.component.html b/ui-ngx/src/app/modules/home/components/widget/config/data-key-config-dialog.component.html index a7ada72321..f2bb7b6f9d 100644 --- a/ui-ngx/src/app/modules/home/components/widget/config/data-key-config-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/config/data-key-config-dialog.component.html @@ -18,7 +18,7 @@

{{ 'datakey.configuration' | translate }}

- + @@ -53,7 +53,7 @@ formControlName="dataKey">
-
+
widget-config.no-data-display-message
- +
diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.html b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.html index 43223de4b6..5c81563ed8 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-container.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/widget-container.component.html @@ -40,21 +40,21 @@ [class]="{'tb-widget-actions-absolute': !(widget.showWidgetTitlePanel && !widgetComponent.widgetContext?.embedTitlePanel && (widget.showTitle||widget.hasAggregation))}" (mousedown)="$event.stopPropagation()">