diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/configuration/advanced/gateway-advanced-configuration.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/configuration/advanced/gateway-advanced-configuration.component.html index 843e67b0fe..1a3f358fd1 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/configuration/advanced/gateway-advanced-configuration.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/configuration/advanced/gateway-advanced-configuration.component.html @@ -17,8 +17,7 @@ --> -
-
+
gateway.logs.date-format @@ -594,7 +593,7 @@
gateway.statistics.commands
gateway.hints.commands
-
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-data-keys-panel/mapping-data-keys-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-data-keys-panel/mapping-data-keys-panel.component.html index 736d9c83c6..b129cef3f8 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-data-keys-panel/mapping-data-keys-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-data-keys-panel/mapping-data-keys-panel.component.html @@ -24,7 +24,7 @@
- +
@@ -40,25 +40,23 @@ *ngIf="keysType !== MappingKeysType.CUSTOM && keysType !== MappingKeysType.RPC_METHODS">
gateway.platform-side
-
+
{{ 'gateway.key' | translate }}
-
- - - - warning - - -
+ + + + warning + +
@@ -98,12 +96,12 @@
-
+
{{ 'gateway.value' | translate }}
- +
-
+
gateway.key
-
- - - - warning - - -
+ + + + warning + +
-
+
gateway.value
- +
-
+
{{ 'gateway.method-name' | translate }}
-
- - - - warning - - -
+ + + + warning + +
- +
{{ 'gateway.arguments' | translate }}{{' (' + keyControl.get('arguments').value?.length + ')'}} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-table/mapping-table.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-table/mapping-table.component.html index 7e1ab2bb62..a0bb6c4734 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-table/mapping-table.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mapping-table/mapping-table.component.html @@ -16,13 +16,13 @@ -->
-
- +
+
-
+
{{mappingTypeTranslationsMap.get(mappingType) | translate}}
- +
- +
- +   - + +
+
- + -
+
-
+
- + -
+
- + widget.no-data-found
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-basic-config/modbus-basic-config.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-basic-config/modbus-basic-config.component.html index 76098288b8..337e07da83 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-basic-config/modbus-basic-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-basic-config/modbus-basic-config.component.html @@ -25,7 +25,7 @@
{{ 'gateway.hints.modbus-server' | translate }}
-
+
{{ 'gateway.enable' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-data-keys-panel/modbus-data-keys-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-data-keys-panel/modbus-data-keys-panel.component.html index 890c0428f0..7ce388e3b8 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-data-keys-panel/modbus-data-keys-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-data-keys-panel/modbus-data-keys-panel.component.html @@ -24,7 +24,7 @@
- +
{{ keyControl.get('tag').value }}{{ '-' }}{{ keyControl.get('value').value }} @@ -56,104 +56,93 @@
gateway.platform-side
-
+
gateway.key
-
- - - - warning - - -
+ + + + warning + +
gateway.connector-side
-
+
gateway.type
-
- - - {{ type }} - - -
+ + + {{ type }} + +
-
+
gateway.function-code
-
- - - - {{ ModbusFunctionCodeTranslationsMap.get(code) | translate }} - - - -
+ + + + {{ ModbusFunctionCodeTranslationsMap.get(code) | translate }} + + +
-
+
gateway.objects-count
-
- - - - warning - - -
+ + + + warning + +
-
+
gateway.address
-
- - - - warning - - -
+ + + + warning + +
- +
-
+
gateway.type
-
- - - -
- - {{ ModifierTypesMap.get(keyControl.get('modifierType').value)?.name | translate}} -
-
- - - - {{ ModifierTypesMap.get(modifierType).name | translate }} - -
-
-
+ + + +
+ + {{ ModifierTypesMap.get(keyControl.get('modifierType').value)?.name | translate}} +
+
+ + + + {{ ModifierTypesMap.get(modifierType).name | translate }} + +
+
-
+
gateway.value
- +
-
+
gateway.value
-
- - - - warning - - -
+ + + + warning + +
{{ 'gateway.hints.modbus-master' | translate }}
-
- +
+
-
+
{{ 'gateway.servers-slaves' | translate}}
- +
- +
- +   - + +
+
- + -
+
-
+
- + -
+
- + widget.no-data-found
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-security-config/modbus-security-config.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-security-config/modbus-security-config.component.html index 3fc3e33ad0..44f6424dcd 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-security-config/modbus-security-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-security-config/modbus-security-config.component.html @@ -56,7 +56,7 @@
-
+
{{ 'gateway.request-client-certificate' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-config/modbus-slave-config.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-config/modbus-slave-config.component.html index 7008f3c70a..56dfac19b9 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-config/modbus-slave-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-config/modbus-slave-config.component.html @@ -25,11 +25,8 @@
+ class="tb-form-row column-xs">
gateway.host
-
-
+ class="tb-form-row column-xs">
gateway.port
-
@@ -65,12 +58,10 @@ warning -
-
+
gateway.port
-
-
-
+
gateway.method
-
{{ ModbusMethodLabelsMap.get(method) }} -
-
+
gateway.unit-id
-
-
-
+
gateway.device-name
-
-
-
+
gateway.device-profile
-
-
-
+
gateway.poll-period
-
-
-
+
gateway.baudrate
-
{{ rate }} -
-
+
{{ 'gateway.send-data-to-platform' | translate }} @@ -187,31 +165,27 @@
-
+
gateway.byte-order
-
{{ order }} -
-
+
gateway.word-order
-
{{ order }} -
- + - + {{ 'gateway.tls-connection' | translate }} @@ -222,45 +196,35 @@
-
+
gateway.vendor-name
-
-
-
+
gateway.product-code
-
-
-
+
gateway.vendor-url
-
-
-
+
gateway.product-name
-
-
-
+
gateway.model-name
-
-
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-dialog/modbus-slave-dialog.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-dialog/modbus-slave-dialog.component.html index 0a480a88ae..8d6a500ad2 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-dialog/modbus-slave-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/modbus/modbus-slave-dialog/modbus-slave-dialog.component.html @@ -18,7 +18,7 @@

{{ 'gateway.server-slave' | translate }}

- +
- -
+ matTooltipClass="tb-error-tooltip" + [matTooltip]="('gateway.host-required') | translate" + *ngIf="brokerConfigFormGroup.get('host').hasError('required') + && brokerConfigFormGroup.get('host').touched" + class="tb-error"> + warning + + +
+
+
gateway.port
+ + + + warning + + +
+
+
gateway.mqtt-version
+ + + {{ version.name }} + + +
+
+
gateway.client-id
+ + + +
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mqtt/workers-config-control/workers-config-control.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mqtt/workers-config-control/workers-config-control.component.html index 0a3bd4e6f3..53d8e1bde6 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mqtt/workers-config-control/workers-config-control.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/mqtt/workers-config-control/workers-config-control.component.html @@ -16,48 +16,44 @@ -->
-
-
+
{{ 'gateway.max-number-of-workers' | translate }}
-
- - - - warning - - -
+ + + + warning + +
-
-
+
{{ 'gateway.max-messages-queue-for-worker' | translate }}
-
- - - - warning - - -
+ + + + warning + +
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/opc/opc-server-config/opc-server-config.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/opc/opc-server-config/opc-server-config.component.html index 4a0e76ee19..0b8cc6a8b7 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/opc/opc-server-config/opc-server-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/opc/opc-server-config/opc-server-config.component.html @@ -16,126 +16,114 @@ -->
-
+
gateway.server-url
-
- - - - warning - - -
+ + + + warning + +
-
+
{{ 'gateway.timeout' | translate }}
-
- - - - warning - - -
+ + + + warning + +
-
+
{{ 'gateway.security-policy' | translate }}
-
- - - {{ version.name }} - - -
+ + + {{ version.name }} + +
-
+
{{ 'gateway.scan-period' | translate }}
-
- - - - warning - - -
+ + + + warning + +
-
+
{{ 'gateway.poll-period' | translate }}
-
- - - - warning - - -
+ + + + warning + +
-
+
{{ 'gateway.sub-check-period' | translate }}
-
- - - - warning - - -
+ + + + warning + +
-
+
{{ 'gateway.enable-subscription' | translate }}
-
+
{{ 'gateway.show-map' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/report-strategy/report-strategy.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/report-strategy/report-strategy.component.html index dec8292720..a87371bfc6 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/report-strategy/report-strategy.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/report-strategy/report-strategy.component.html @@ -17,9 +17,9 @@ -->
- + - + {{ 'gateway.report-strategy.label' | translate }} @@ -33,7 +33,7 @@ -
+
{{ 'gateway.type' | translate }}
@@ -41,17 +41,15 @@
-
+
gateway.report-strategy.report-period
-
- - - -
+ + +
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/rpc-parameters/modbus-rpc-parameters/modbus-rpc-parameters.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/rpc-parameters/modbus-rpc-parameters/modbus-rpc-parameters.component.html index 7122bcd52d..c393bb7122 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/rpc-parameters/modbus-rpc-parameters/modbus-rpc-parameters.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/rpc-parameters/modbus-rpc-parameters/modbus-rpc-parameters.component.html @@ -16,26 +16,26 @@ --> -
+
{{ 'gateway.rpc.hint.modbus-response-reading' | translate }}
{{ 'gateway.rpc.hint.modbus-writing-functions' | translate }}
-
- +
+ {{ 'gateway.rpc.type' | translate }} {{ type }} - + {{ 'gateway.rpc.functionCode' | translate }} {{ ModbusFunctionCodeTranslationsMap.get(code) | translate}}
-
- +
+ {{ 'gateway.rpc.address' | translate }} - + {{ 'gateway.rpc.objectsCount' | translate }}
-
- +
+ {{ 'gateway.rpc.value' | translate }} {{ 'gateway.rpc.method' | translate }} -
+
{{ 'gateway.rpc.arguments' | translate }} -
-
+
gateway.type
@@ -50,9 +50,9 @@
-
+
gateway.value
- + @@ -84,7 +84,7 @@
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/type-value-panel/type-value-panel.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/type-value-panel/type-value-panel.component.html index f72a2c18af..deb0d6b1b3 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/type-value-panel/type-value-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/connectors-configuration/type-value-panel/type-value-panel.component.html @@ -22,38 +22,36 @@
- +
{{ valueTitle(keyControl.get(keyControl.get('type').value).value) }}
-
+
gateway.type
-
- - - -
- - - - {{ valueTypes.get(keyControl.get('type').value)?.name | translate}} - -
-
- - + + + +
+ - {{ valueTypes.get(valueType).name | translate }} - - - -
+ + {{ valueTypes.get(keyControl.get('type').value)?.name | translate}} + +
+ + + + + {{ valueTypes.get(valueType).name | translate }} + + +
-
+
gateway.value
- + diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/add-connector-dialog.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/add-connector-dialog.component.html index d995136b27..6de041a17a 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/add-connector-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/add-connector-dialog.component.html @@ -18,7 +18,7 @@

{{ "gateway.add-connector" | translate}}

- +
-
+
- + gateway.select-connector
@@ -230,9 +227,7 @@ @@ -240,7 +235,7 @@ -
+
- {{'gateway.no-connectors' | translate}} + {{'gateway.no-connectors' | translate}}
-
-
+
-
+
gateway.configuration-delete-dialog-input @@ -36,7 +36,7 @@
-
+
-
+
gateway.rpc.template-name @@ -39,7 +38,7 @@ {{ 'gateway.rpc.template-name-duplicate' | translate }}
-
+
@@ -230,8 +230,8 @@ {{ 'gateway.rpc.methodFilter' | translate }} -
- +
+ {{ 'gateway.rpc.httpMethod' | translate }} @@ -239,24 +239,24 @@ - + {{ 'gateway.rpc.requestUrlExpression' | translate }}
-
- +
+ {{ 'gateway.rpc.responseTimeout' | translate }} - + {{ 'gateway.rpc.timeout' | translate }} - + {{ 'gateway.rpc.tries' | translate }} @@ -266,26 +266,25 @@ {{ 'gateway.rpc.valueExpression' | translate }} -
+
{{ 'gateway.rpc.httpHeaders' | translate }} -
-
- {{ 'gateway.rpc.header-name' | translate }} - {{ 'gateway.rpc.value' | translate }} - +
+
+ {{ 'gateway.rpc.header-name' | translate }} + {{ 'gateway.rpc.value' | translate }} +
-
- + - + - delete @@ -293,7 +292,7 @@
@@ -305,8 +304,8 @@ {{ 'gateway.rpc.methodFilter' | translate }} -
- +
+ {{ 'gateway.rpc.httpMethod' | translate }} @@ -314,23 +313,23 @@ - + {{ 'gateway.rpc.requestUrlExpression' | translate }}
-
- +
+ {{ 'gateway.rpc.responseTimeout' | translate }} - + {{ 'gateway.rpc.timeout' | translate }} - + {{ 'gateway.rpc.tries' | translate }} @@ -344,26 +343,25 @@ {{ 'gateway.rpc.responseValueExpression' | translate }} -
+
{{ 'gateway.rpc.httpHeaders' | translate }} -
-
- {{ 'gateway.rpc.header-name' | translate }} - {{ 'gateway.rpc.value' | translate }} - +
+
+ {{ 'gateway.rpc.header-name' | translate }} + {{ 'gateway.rpc.value' | translate }} +
-
- + - + - delete @@ -371,7 +369,7 @@
@@ -382,7 +380,7 @@ {{ 'gateway.statistics.command' | translate }} - + {{ 'widget-config.datasource-parameters' | translate }} -
+
{{ 'gateway.rpc-command-result' | translate }} -
+
schedule {{ resultTime | date: 'yyyy/MM/dd HH:mm:ss' }}
@@ -83,6 +83,6 @@
- diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss index b8424dc068..5a2f3b6d3e 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.scss @@ -30,6 +30,11 @@ margin-left: 10px; } + tb-gateway-service-rpc-connector-templates { + flex: 1 1 30%; + max-width: 30%; + } + .command-form { flex-wrap: nowrap; @@ -83,5 +88,6 @@ box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); border: solid 1px #e0e0e0; border-radius: 4px; + } } diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-statistics.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-statistics.component.html index 5dbc0aee00..dd51d8a4e8 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-statistics.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-statistics.component.html @@ -15,7 +15,7 @@ limitations under the License. --> -
+
{{ 'gateway.statistics.statistic' | translate }} @@ -42,9 +42,9 @@ -
-
- +
+
@@ -67,12 +67,10 @@
- {{ 'attribute.no-telemetry-text' | translate }} -
-
+ {{ 'attribute.no-telemetry-text' | translate }} +
+