From e394cb5a43571ebf2ce0cfa9bd258b63d6e9d7f2 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Wed, 16 Oct 2024 18:34:14 +0300 Subject: [PATCH] Flex layout replacements. Switch to tailwind.css. --- .../home/pages/asset/asset.component.html | 26 ++++----- .../pages/customer/customer.component.html | 34 +++++------ .../dashboard/dashboard-form.component.html | 38 ++++++------ ...ake-dashboard-public-dialog.component.html | 12 ++-- ...-dashboard-customers-dialog.component.html | 8 +-- ...ice-transport-configuration.component.html | 32 +++++----- ...e-check-connectivity-dialog.component.html | 30 +++++----- .../device-credentials-dialog.component.html | 4 +- .../home/pages/device/device.component.html | 36 ++++++------ .../edge-instructions-dialog.component.html | 6 +- .../home/pages/edge/edge.component.html | 58 +++++++++---------- .../entity-view/entity-view.component.html | 30 +++++----- .../inbox/inbox-table-header.component.html | 6 +- ...cipient-notification-dialog.component.html | 10 ++-- .../recipient-table-header.component.html | 4 +- .../rule/escalation-form.component.html | 14 ++--- .../rule/escalations.component.html | 13 ++--- .../rule-notification-dialog.component.html | 57 +++++++++--------- .../rule/rule-table-header.component.html | 4 +- .../sent/sent-error-dialog.component.html | 2 +- .../sent-notification-dialog.component.html | 26 ++++----- .../notification-setting-form.component.html | 12 ++-- .../notification-settings.component.html | 17 +++--- ...action-button-configuration.component.html | 21 ++++--- ...tion-template-configuration.component.html | 16 ++--- ...emplate-notification-dialog.component.html | 8 +-- .../template-table-header.component.html | 4 +- .../ota-update/ota-update.component.html | 54 ++++++++--------- .../home/pages/profile/profile.component.html | 15 +++-- .../add-rule-node-dialog.component.html | 4 +- .../add-rule-node-link-dialog.component.html | 4 +- ...ate-nested-rulechain-dialog.component.html | 6 +- .../rule-node-details.component.html | 2 +- .../rulechain/rule-node-link.component.html | 2 +- .../rulechain/rulechain-page.component.html | 39 ++++++------- .../pages/rulechain/rulechain.component.html | 24 ++++---- .../pages/rulechain/rulenode.component.html | 10 ++-- 37 files changed, 341 insertions(+), 347 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/asset/asset.component.html b/ui-ngx/src/app/modules/home/pages/asset/asset.component.html index b8bfd20362..6dd373c714 100644 --- a/ui-ngx/src/app/modules/home/pages/asset/asset.component.html +++ b/ui-ngx/src/app/modules/home/pages/asset/asset.component.html @@ -15,63 +15,63 @@ limitations under the License. --> -
+
-
+
-
+
+ [class.!hidden]="isEdit || !isAssignedToCustomer(entity) + || entity?.customerIsPublic || assetScope !== 'tenant'"> asset.assignedToCustomer
+ [class.!hidden]="isEdit || !entity?.customerIsPublic || (assetScope !== 'customer' && assetScope !== 'tenant')"> {{ 'asset.asset-public' | translate }}
diff --git a/ui-ngx/src/app/modules/home/pages/customer/customer.component.html b/ui-ngx/src/app/modules/home/pages/customer/customer.component.html index ec10e208d1..5c4fe2393f 100644 --- a/ui-ngx/src/app/modules/home/pages/customer/customer.component.html +++ b/ui-ngx/src/app/modules/home/pages/customer/customer.component.html @@ -15,64 +15,64 @@ limitations under the License. --> -
+
-
+
-
+
-
+
customer.title @@ -83,22 +83,22 @@ {{ 'customer.title-max-length' | translate }} -
+
customer.description -
-
+
+
- + {{ 'dashboard.home-dashboard-hide-toolbar' | translate }}
diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.html b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.html index 7c3ab5d61d..61ebedf310 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.html +++ b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-form.component.html @@ -15,75 +15,75 @@ limitations under the License. --> -
+
-
+
-
+
+ [class.!hidden]="isEdit || !assignedCustomersText?.length + || dashboardScope !== 'tenant'"> dashboard.assignedToCustomers -
-
- +
+ dashboard.public-link @@ -118,7 +118,7 @@ {{ 'dashboard.title-max-length' | translate }} -
+
dashboard.description @@ -139,7 +139,7 @@ dashboard.mobile-order - diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.html b/ui-ngx/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.html index 49e98cdc1d..0842210366 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.html @@ -16,9 +16,9 @@ -->
- +

{{ 'dashboard.public-dashboard-title' | translate }}

- +
-
- +
+
-
- +
+ @@ -336,10 +336,10 @@
-
+
device.connectivity.execute-following-command
+ [class.!hidden]="!cmd.noSec || !cmd.sec"> {{ cmd.noSecLabel }} {{ cmd.secLabel }} diff --git a/ui-ngx/src/app/modules/home/pages/device/device-credentials-dialog.component.html b/ui-ngx/src/app/modules/home/pages/device/device-credentials-dialog.component.html index 27d68b5b9e..3b202adfb2 100644 --- a/ui-ngx/src/app/modules/home/pages/device/device-credentials-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/device/device-credentials-dialog.component.html @@ -17,7 +17,7 @@ -->

{{ 'device.device-credentials' | translate }}

- + - -
+
-
+
+ [class.!hidden]="isEdit || !isAssignedToCustomer(entity) + || entity?.customerIsPublic || deviceScope !== 'tenant'"> device.assignedToCustomer
+ [class.!hidden]="isEdit || !entity?.customerIsPublic || (deviceScope !== 'customer' && deviceScope !== 'tenant')"> {{ 'device.device-public' | translate }}
@@ -138,7 +138,7 @@ formControlName="deviceData" required> -
+
{{ 'device.is-gateway' | translate }} diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.html b/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.html index 1156bb7969..cfb236fd5f 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.html @@ -17,7 +17,7 @@ -->

{{ dialogTitle }}

- +
- {{ 'action.dont-show-again' | translate}} - + {{ 'action.dont-show-again' | translate}} + diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge.component.html b/ui-ngx/src/app/modules/home/pages/edge/edge.component.html index 9ac7049ce2..ccc75421ba 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge.component.html +++ b/ui-ngx/src/app/modules/home/pages/edge/edge.component.html @@ -15,74 +15,74 @@ limitations under the License. --> -
+
- -
+
@@ -91,7 +91,7 @@ (cbOnSuccess)="onEdgeInfoCopied('key')" [cbContent]="entity?.routingKey" [disabled]="(isLoading$ | async)" - [fxShow]="!isEdit && edgeScope !== 'customer_user'"> + [class.!hidden]="isEdit || edgeScope === 'customer_user'"> edge.copy-edge-key @@ -100,7 +100,7 @@ (cbOnSuccess)="onEdgeInfoCopied('secret')" [cbContent]="entity?.secret" [disabled]="(isLoading$ | async)" - [fxShow]="!isEdit && edgeScope !== 'customer_user'"> + [class.!hidden]="isEdit || edgeScope === 'customer_user'"> edge.copy-edge-secret @@ -108,18 +108,18 @@ ngxClipboard [disabled]="(isLoading$ | async)" (click)="onEntityAction($event, 'syncEdge')" - [fxShow]="!isEdit && edgeScope !== 'customer_user'"> + [class.!hidden]="isEdit || edgeScope === 'customer_user'"> edge.sync
-
+
@@ -128,7 +128,7 @@ @@ -136,15 +136,15 @@
-
+
+ [class.!hidden]="isEdit || !isAssignedToCustomer(entity) + || entity?.customerIsPublic || edgeScope !== 'tenant'"> edge.assignedToCustomer
+ [class.!hidden]="isEdit || !entity?.customerIsPublic || edgeScope !== 'tenant'"> {{ 'edge.edge-public' | translate }}
@@ -165,8 +165,8 @@ [entityType]="entityType.EDGE"> -
- +
+ edge.edge-key @@ -176,8 +176,8 @@
-
- +
+ edge.edge-secret @@ -195,7 +195,7 @@ {{ 'edge.label-max-length' | translate }} -
+
edge.description diff --git a/ui-ngx/src/app/modules/home/pages/entity-view/entity-view.component.html b/ui-ngx/src/app/modules/home/pages/entity-view/entity-view.component.html index 62b19151bb..c0ee9b61b7 100644 --- a/ui-ngx/src/app/modules/home/pages/entity-view/entity-view.component.html +++ b/ui-ngx/src/app/modules/home/pages/entity-view/entity-view.component.html @@ -15,63 +15,63 @@ limitations under the License. --> -
+
-
+
-
+
+ [class.!hidden]="isEdit || !isAssignedToCustomer(entity) + || entity?.customerIsPublic || entityViewScope !== 'tenant'"> entity-view.assignedToCustomer
+ [class.!hidden]="isEdit || !entity?.customerIsPublic || (entityViewScope !== 'customer' && entityViewScope !== 'tenant')"> {{ 'entity-view.entity-view-public' | translate }}
@@ -92,9 +92,9 @@ [entityType]="entityType.ENTITY_VIEW" > -
+
- diff --git a/ui-ngx/src/app/modules/home/pages/notification/inbox/inbox-table-header.component.html b/ui-ngx/src/app/modules/home/pages/notification/inbox/inbox-table-header.component.html index f9ed7e24db..7338a32fc2 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/inbox/inbox-table-header.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/inbox/inbox-table-header.component.html @@ -15,13 +15,13 @@ limitations under the License. --> -
+
- {{ 'notification.unread' | translate }} - {{ 'notification.all' | translate }} + {{ 'notification.unread' | translate }} + {{ 'notification.all' | translate }}
diff --git a/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-notification-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-notification-dialog.component.html index 3fd10c8729..e3959fa6e0 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-notification-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-notification-dialog.component.html @@ -18,7 +18,7 @@

{{ (isAdd ? 'notification.add-notification-recipients-group' : 'notification.edit-notification-recipients-group') | translate }}

- +
diff --git a/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-table-header.component.html b/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-table-header.component.html index 7771b32a58..e6a4d1efaf 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-table-header.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/recipient/recipient-table-header.component.html @@ -15,9 +15,9 @@ limitations under the License. --> -
+
diff --git a/ui-ngx/src/app/modules/home/pages/notification/rule/escalation-form.component.html b/ui-ngx/src/app/modules/home/pages/notification/rule/escalation-form.component.html index 6b5eab6c09..bcb87f9ac0 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/rule/escalation-form.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/rule/escalation-form.component.html @@ -15,11 +15,11 @@ limitations under the License. --> - -
-
notification.first-recipient
+ +
+
notification.first-recipient
-
+
notification.after - notification.notify + notification.notify
diff --git a/ui-ngx/src/app/modules/home/pages/notification/rule/escalations.component.html b/ui-ngx/src/app/modules/home/pages/notification/rule/escalations.component.html index 619586cd56..5777909536 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/rule/escalations.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/rule/escalations.component.html @@ -15,13 +15,12 @@ limitations under the License. --> -
-
+
- + @@ -35,8 +34,8 @@
- notification.no-rule + notification.no-rule
- + diff --git a/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-header.component.html b/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-header.component.html index a4bbf1cf4a..046f32a657 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-header.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-header.component.html @@ -15,9 +15,9 @@ limitations under the License. --> -
+
diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html index 75042166d3..cc10aa6f84 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html @@ -17,7 +17,7 @@ -->

notification.failed-send

- + - + diff --git a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html index 470f2dde20..303db35231 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/settings/notification-setting-form.component.html @@ -15,22 +15,22 @@ limitations under the License. --> - -
-
+ +
+
+ [class.notification-type-disabled]="!notificationSettingsFormGroup.get('enabled').value"> {{notificationTemplateTypeTranslateMap.get(notificationSettingsFormGroup.get('name').value)?.name | translate}}
-
-
+
+
-
-
+
+
notification.settings.notification-settings
-
+
@@ -37,8 +36,8 @@
-
-
+
+
notification.settings.type
-
-
+
+
-
+
- + diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-table-header.component.html b/ui-ngx/src/app/modules/home/pages/notification/template/template-table-header.component.html index 6538f11ae3..bc809ba8b1 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/template/template-table-header.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-table-header.component.html @@ -15,9 +15,9 @@ limitations under the License. --> -
+
diff --git a/ui-ngx/src/app/modules/home/pages/ota-update/ota-update.component.html b/ui-ngx/src/app/modules/home/pages/ota-update/ota-update.component.html index c1430be527..34f1396af5 100644 --- a/ui-ngx/src/app/modules/home/pages/ota-update/ota-update.component.html +++ b/ui-ngx/src/app/modules/home/pages/ota-update/ota-update.component.html @@ -15,31 +15,31 @@ limitations under the License. --> -
- - - -
+
@@ -47,7 +47,7 @@ ngxClipboard (cbOnSuccess)="onPackageChecksumCopied()" [cbContent]="entity?.checksum" - [fxShow]="!isEdit && entity?.checksum"> + [class.!hidden]="isEdit || !entity?.checksum"> ota-update.copy-checksum @@ -55,17 +55,17 @@ ngxClipboard (cbOnSuccess)="onPackageDirectUrlCopied()" [cbContent]="entity?.url" - [fxShow]="!isEdit && entity?.url"> + [class.!hidden]="isEdit || !entity?.url"> ota-update.copy-direct-url
-
+
-
-
- +
+
+ ota-update.title @@ -75,7 +75,7 @@ {{ 'ota-update.title-max-length' | translate }} - + ota-update.version @@ -86,7 +86,7 @@
- + ota-update.version-tag ota-update.version-tag-hint @@ -94,7 +94,8 @@
ota-update.warning-after-save-no-edit
- + {{ "ota-update.upload-binary-file" | translate }} {{ "ota-update.use-external-url" | translate }} @@ -128,10 +129,9 @@ {{ 'ota-update.auto-generate-checksum' | translate }}
-
- + ota-update.checksum-algorithm @@ -139,23 +139,23 @@ - + ota-update.checksum ota-update.checksum-hint
-
- +
+ ota-update.file-name - + ota-update.file-size-bytes - + ota-update.content-type diff --git a/ui-ngx/src/app/modules/home/pages/profile/profile.component.html b/ui-ngx/src/app/modules/home/pages/profile/profile.component.html index 2de393dc95..d59847cf37 100644 --- a/ui-ngx/src/app/modules/home/pages/profile/profile.component.html +++ b/ui-ngx/src/app/modules/home/pages/profile/profile.component.html @@ -18,13 +18,12 @@
-
-
+
+
profile.profile {{ profile ? profile.get('email').value : '' }}
-
+
profile.last-login-time
@@ -67,9 +66,9 @@ -
+
- + {{ 'dashboard.home-dashboard-hide-toolbar' | translate }}
-
+
-
+
-
+
- +
-
+
{{editingRuleNode.component.name}}
 
@@ -137,7 +136,7 @@ -
- chevron_right + chevron_right -
+
-
+
@@ -88,7 +88,7 @@ {{ 'rulechain.name-max-length' | translate }} - + {{ 'rulechain.debug-mode' | translate }}
diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.html b/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.html index e03c5469dd..8ca8f4eece 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.html +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rulenode.component.html @@ -22,11 +22,11 @@ (mouseleave)="userNodeCallbacks.mouseLeave($event, node)">
- {{node.icon}} - -
+ [class.tb-rule-node-highlighted]="node.highlighted" + [class.tb-rule-node-invalid]="node.error"> + {{node.icon}} + +
{{ node.component.name }} {{ node.name }}