From 78dd5bdcfe36b45866e5f6226c12e45ea122a8ed Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Wed, 16 Oct 2024 13:28:46 +0300 Subject: [PATCH] Flex layout replacements. Switch to tailwind.css. --- ...custom-action-pretty-editor.component.html | 9 +- ...ction-pretty-resources-tabs.component.html | 5 +- .../common/action/custom-sample-html.raw | 138 +++++++++--------- ...value-action-settings-panel.component.html | 17 +-- .../mobile-action-editor.component.html | 2 +- ...value-action-settings-panel.component.html | 17 +-- .../action/widget-action.component.html | 16 +- .../widget-button-appearance.component.html | 12 +- ...t-button-custom-style-panel.component.html | 2 +- .../chart-animation-settings.component.html | 5 +- .../chart/chart-bar-settings.component.html | 4 +- .../chart/chart-fill-settings.component.html | 2 +- ...-series-chart-axis-settings.component.html | 15 +- ...-series-chart-grid-settings.component.html | 7 +- ...time-series-chart-state-row.component.html | 2 +- ...e-series-chart-states-panel.component.html | 5 +- ...rt-threshold-settings-panel.component.html | 8 +- ...ries-chart-thresholds-panel.component.html | 5 +- ...e-series-chart-y-axes-panel.component.html | 6 +- ...regation-bar-width-settings.component.html | 8 +- ...tatus-widget-state-settings.component.html | 40 ++--- ...cada-symbol-object-settings.component.html | 8 +- .../device-key-autocomplete.component.html | 2 +- ...nob-control-widget-settings.component.html | 26 ++-- ...d-indicator-widget-settings.component.html | 26 ++-- ...stent-table-widget-settings.component.html | 22 +-- ...ound-switch-widget-settings.component.html | 4 +- .../control/rpc-button-style.component.html | 8 +- .../rpc-shell-widget-settings.component.html | 4 +- ...pc-terminal-widget-settings.component.html | 12 +- .../send-rpc-widget-settings.component.html | 18 +-- ...ngle-switch-widget-settings.component.html | 42 +++--- ...lide-toggle-widget-settings.component.html | 10 +- .../slider-widget-settings.component.html | 36 ++--- ...tch-control-widget-settings.component.html | 4 +- .../switch-rpc-settings.component.html | 26 ++-- ...e-attribute-widget-settings.component.html | 8 +- 37 files changed, 287 insertions(+), 294 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-editor.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-editor.component.html index bc8d53ae12..d3ed0298ab 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-editor.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-editor.component.html @@ -16,9 +16,10 @@ -->
-
+
-
+
-
+
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-resources-tabs.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-resources-tabs.component.html index f9610ecbee..eb2e0b5808 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-resources-tabs.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/custom-action-pretty-resources-tabs.component.html @@ -19,10 +19,9 @@
-
- - + - + @@ -16,57 +16,57 @@ - - - + + + - + - - + + - + - - - + + + - + - - + + - + - - + + - + @@ -76,12 +76,12 @@ - - + + - - - + + + @@ -94,20 +94,20 @@ - + - + - + - + @@ -123,11 +123,11 @@ - - - - - + + + + + @@ -140,20 +140,20 @@ - + - + - + - + @@ -177,7 +177,7 @@ - + @@ -198,9 +198,9 @@ - + - + @@ -208,21 +208,21 @@ - - - + + + - + - + @@ -230,50 +230,50 @@ - - + + - - + + - - - + + + - + - - + + - + - - + + - + @@ -283,11 +283,11 @@ - - - - - + + + + + @@ -300,20 +300,20 @@ - + - + - + - + @@ -337,7 +337,7 @@ - + diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html index 9826385d38..4e5e6709a6 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings-panel.component.html @@ -73,7 +73,7 @@
{{ 'widgets.value-action.attribute-key' | translate }}*
{{ 'widgets.value-action.time-series-key' | translate }}*
widgets.value-action.action-result-converter
- + {{ 'widgets.value-action.converter-none' | translate }} {{ 'widgets.value-action.converter-function' | translate }} @@ -124,7 +124,7 @@
{{ 'widgets.value-action.state-when-result-is' | translate:{state: stateLabel} }}
- + - + widget-config.advanced-settings @@ -163,10 +163,9 @@ - + - + {{ 'widgets.value-action.request-persistent' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/mobile-action-editor.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/mobile-action-editor.component.html index 458e619185..a3d343e720 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/mobile-action-editor.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/mobile-action-editor.component.html @@ -18,7 +18,7 @@
{{ 'widget-action.mobile.action-type' | translate }}*
- + {{ mobileActionTypeTranslations.get(mobileActionType[actionType]) | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html index 954f284631..65b6354814 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings-panel.component.html @@ -61,7 +61,7 @@
{{ 'widgets.value-action.attribute-key' | translate }}*
{{ 'widgets.value-action.time-series-key' | translate }}*
{{ (setValueSettingsFormGroup.get('action').value === setValueAction.EXECUTE_RPC ? 'widgets.value-action.parameters' : 'widgets.value-action.value') | translate }}
- + {{ 'widgets.value-action.converter-value' | translate }} {{ 'widgets.value-action.converter-constant' | translate }} {{ 'widgets.value-action.converter-function' | translate }} @@ -105,7 +105,7 @@
- + - + widget-config.advanced-settings @@ -152,10 +152,9 @@ - + - + {{ 'widgets.value-action.request-persistent' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action.component.html index be9b067d17..1b3213b251 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action.component.html @@ -18,7 +18,7 @@
widget-config.action
- + {{ widgetActionTypeTranslations.get(widgetActionType[actionType]) | translate }} @@ -30,7 +30,7 @@
{{ 'widget-action.target-dashboard' | translate }}*
- {{ 'widget-action.target-dashboard-state' | translate }} *
-
{{ 'widget-action.URL' | translate }}
- +
{{ 'alias.state-entity-parameter-name' | translate }}
- + @@ -138,7 +138,7 @@ widgetActionFormGroup.get('type').value : ''">
{{ 'widget-action.state-display-type' | translate }}
- + {{ stateDisplayTypeName(displayType) }} @@ -150,7 +150,7 @@
{{ 'widget-action.dialog-title' | translate }}
- +
@@ -191,7 +191,7 @@
{{ 'widget-action.popover-preferred-placement' | translate }}
- + {{ popoverPlacementName(placement) }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-appearance.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-appearance.component.html index b6775d0d80..634bc11605 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-appearance.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-appearance.component.html @@ -45,11 +45,11 @@ {{ 'widgets.button.icon' | translate }} -
+
- + @@ -62,15 +62,15 @@
{{ 'widgets.button.color-palette' | translate }}
-
-
+
+
widgets.button.main
-
+
widgets.button.background
@@ -80,7 +80,7 @@
- +
widgets.button.custom-styles
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-custom-style-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-custom-style-panel.component.html index 86b5acde6e..e480dfe7c5 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-custom-style-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/button/widget-button-custom-style-panel.component.html @@ -77,7 +77,7 @@
- +
-
- +
+ {{ chartLabelPositionTranslations.get(position) | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/chart-fill-settings.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/chart-fill-settings.component.html index e56fc1ec00..bcd93ef9a0 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/chart-fill-settings.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/chart-fill-settings.component.html @@ -35,7 +35,7 @@
widgets.chart.gradient-stops
-
+
widgets.chart.gradient-start
- + - + {{ 'widgets.time-series-chart.axis.show' | translate }} @@ -30,7 +29,7 @@
widgets.time-series-chart.axis.label
-
+
@@ -69,7 +68,7 @@
-
widgets.time-series-chart.axis.tick-labels
-
+
@@ -100,7 +99,7 @@
-
widgets.chart.chart-axis.scale
-
+
widgets.chart.chart-axis.scale-min
- + - + {{ 'widgets.time-series-chart.grid.grid' | translate }} @@ -37,7 +36,7 @@
{{ 'widgets.time-series-chart.grid.border' | translate }}
-
+
px diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-state-row.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-state-row.component.html index a2e11c3a8e..11e93d734f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-state-row.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-state-row.component.html @@ -33,7 +33,7 @@
- @@ -42,6 +42,5 @@
- {{ 'widgets.time-series-chart.state.no-states' | translate }} + {{ 'widgets.time-series-chart.state.no-states' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-threshold-settings-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-threshold-settings-panel.component.html index 8d8e4a007f..0b95869c2d 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-threshold-settings-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-threshold-settings-panel.component.html @@ -44,8 +44,8 @@ {{ 'widgets.time-series-chart.threshold.label' | translate }} -
- +
+ {{ timeSeriesThresholdLabelPositionTranslations.get(position) | translate }} @@ -101,7 +101,7 @@
widgets.time-series-chart.threshold.start-symbol
- + {{ chartShapeTranslations.get(shape) | translate }} @@ -118,7 +118,7 @@
widgets.time-series-chart.threshold.end-symbol
- + {{ chartShapeTranslations.get(shape) | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-thresholds-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-thresholds-panel.component.html index ba0325da93..eca14627de 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-thresholds-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-thresholds-panel.component.html @@ -29,7 +29,7 @@
-
- {{ 'widgets.time-series-chart.threshold.no-thresholds' | translate }} + {{ 'widgets.time-series-chart.threshold.no-thresholds' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axes-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axes-panel.component.html index d018b638d0..a12e1b3a7f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axes-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/chart/time-series-chart-y-axes-panel.component.html @@ -36,17 +36,17 @@
-
-