diff --git a/ui-ngx/src/app/modules/home/components/agent/_agent-shared.scss b/ui-ngx/src/app/modules/home/components/agent/_agent-shared.scss index 666741c3f4..c44b7923e8 100644 --- a/ui-ngx/src/app/modules/home/components/agent/_agent-shared.scss +++ b/ui-ngx/src/app/modules/home/components/agent/_agent-shared.scss @@ -8,7 +8,6 @@ $agent-text-hint: rgba(0, 0, 0, 0.38); $agent-divider: rgba(0, 0, 0, 0.12); $agent-divider-light: rgba(0, 0, 0, 0.08); -$agent-ink-76: rgba(0, 0, 0, 0.76); $agent-ink-60: rgba(0, 0, 0, 0.6); $agent-ink-42: rgba(0, 0, 0, 0.42); $agent-ink-24: rgba(0, 0, 0, 0.24); @@ -33,9 +32,7 @@ $agent-error-surface: #fdecea; $agent-error-surface-light: #ffebee; $agent-info-surface: #e3f2fd; $agent-warning-surface: #fff8e1; -$agent-warning-text: #6d4c00; $agent-warning-border: #ffe082; -$agent-warning-icon: #c79100; $agent-code-bg: #1e1e1e; $agent-code-fg: #d4d4d4; $agent-editor-fg: #1f2328; @@ -66,27 +63,6 @@ $agent-type-generic-fg: #6a1b9a; @include agent-type-palette; } -@mixin agent-info-box { - display: flex; - align-items: flex-start; - gap: 12px; - padding: 12px 16px; - border-radius: 4px; - font-size: 13px; - line-height: 1.5; - mat-icon { - flex-shrink: 0; - font-size: 20px; - width: 20px; - height: 20px; - } -} - -@mixin agent-info-box-tone { - background: $agent-info-surface; - color: $agent-color-info; -} - @mixin agent-command-block { position: relative; background: $agent-code-bg; diff --git a/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.html b/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.html index 4d07407836..3e7222143f 100644 --- a/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.html +++ b/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.html @@ -29,8 +29,8 @@
{{ dockerCommand }}
-
- info +
+ info_outline agent.install-instructions-replace-hint
diff --git a/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.scss b/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.scss index c498e8018f..4373feb38f 100644 --- a/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.scss +++ b/ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.scss @@ -88,8 +88,3 @@ } } } - -.tb-info-box { - @include agent-info-box; - @include agent-info-box-tone; -} diff --git a/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.html b/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.html index ba758ca850..88855e5893 100644 --- a/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.html @@ -20,11 +20,11 @@ -
- auto_awesome +
+ info_outline
-

{{ infoTitleKey | translate }}

-

{{ infoBodyKey | translate }}

+
{{ infoTitleKey | translate }}
+
{{ infoBodyKey | translate }}
@@ -135,19 +135,15 @@
{{ dockerCommand }}
-
- info -
-

{{ infoBodyKey | translate }}

-
+
+ info_outline + {{ infoBodyKey | translate }}
} @else { -
+
error_outline -
-

edge.auto-provision-no-script

-
+ edge.auto-provision-no-script
} diff --git a/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.scss b/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.scss index 4204d78207..c3f58c4989 100644 --- a/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.scss @@ -118,36 +118,6 @@ } } -.tb-info-box { - @include agent-info-box; - margin: 0 0 16px; - - p { - margin: 0 0 6px; - font-size: inherit; - line-height: inherit; - &:last-child { margin-bottom: 0; } - } - - .info-title { - font-weight: 500; - } - - &.info { - background: $agent-info-surface; - color: $agent-color-info; - - mat-icon { color: $agent-color-info; } - } - - &.invalid { - background: $agent-error-surface; - color: $agent-color-error; - - mat-icon { color: $agent-color-error; } - } -} - .success-banner { display: flex; align-items: center; diff --git a/ui-ngx/src/app/modules/home/components/agent/wizard/_agent-wizard.scss b/ui-ngx/src/app/modules/home/components/agent/wizard/_agent-wizard.scss index 49a8d13fd7..689721caf0 100644 --- a/ui-ngx/src/app/modules/home/components/agent/wizard/_agent-wizard.scss +++ b/ui-ngx/src/app/modules/home/components/agent/wizard/_agent-wizard.scss @@ -128,24 +128,6 @@ @mixin wizard-step-basics { .hint { font-size: 13px; color: $agent-text-secondary; margin: 0 0 16px; } - .tb-app-compose-hint { - display: flex; - align-items: center; - gap: 6px; - margin-bottom: 16px; - padding: 6px 10px; - border-radius: 4px; - background: $agent-warning-surface; - color: $agent-warning-text; - font-size: 12px; - .tb-app-compose-hint-icon { - font-size: 16px; - width: 16px; - height: 16px; - color: $agent-warning-icon; - } - } - .loading-state, .error-state { display: flex; align-items: center; gap: 12px; padding: 12px; color: $agent-text-secondary; } @@ -162,27 +144,6 @@ .config-toggle { display: flex; justify-content: center; margin-bottom: 16px; } - - .tb-agent-deploy-note { - display: flex; - align-items: flex-start; - gap: 10px; - margin: 0 0 16px; - padding: 12px 16px; - border-radius: 8px; - background: color-mix(in srgb, var(--tb-primary-500) 6%, transparent); - font-size: 13px; - line-height: 1.5; - color: $agent-ink-76; - - mat-icon { - flex-shrink: 0; - color: var(--tb-primary-500); - font-size: 20px; - width: 20px; - height: 20px; - } - } } @mixin wizard-type-cards { @@ -496,10 +457,4 @@ .tb-type-badge { @include agent-type-badge; } - - .info-box { - @include agent-info-box; - @include agent-info-box-tone; - margin-bottom: 16px; - } } diff --git a/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-install-flow.component.html b/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-install-flow.component.html index 9be619233e..8714ed94dc 100644 --- a/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-install-flow.component.html +++ b/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-install-flow.component.html @@ -55,9 +55,8 @@ } @if (selectAgent && !embedded && !checkingManaged && !managedApp) { -
- auto_awesome +
+ info_outline agent.deploy-via-agent-desc
} @@ -236,8 +235,8 @@ } @if (relatedEntityId) { -
- info_outline +
+ info_outline agent.app-compose-creds-overridden-hint
} @@ -300,8 +299,8 @@
}
-
- info +
+ info_outline agent.app-install-confirm-info
@if (relatedEntityId) { -
- info_outline +
+ info_outline agent.app-compose-creds-overridden-hint
} @@ -167,8 +167,8 @@ }
-
- info +
+ info_outline agent.app-install-confirm-info
diff --git a/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-upgrade-flow.component.html b/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-upgrade-flow.component.html index d9a7ea8f85..aba02480fa 100644 --- a/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-upgrade-flow.component.html +++ b/ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-upgrade-flow.component.html @@ -167,8 +167,8 @@
}
-
- info +
+ info_outline agent.app-upgrade-rollback-info
@if (isNoData) { -
+
+ info_outline {{ 'alarm-rule.condition-type-hint' | translate }}
} diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.scss b/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.scss index d5e65c439a..91f07bce91 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.scss +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.scss @@ -225,7 +225,7 @@ $border: 1px solid mat.m2-get-color-from-palette($tb-primary); } .red-button { - color: #D12730; + color: var(--tb-crit); } .mat-form-field { diff --git a/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.html b/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.html index 7f88ab5be1..36c8999fed 100644 --- a/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.html @@ -86,10 +86,12 @@
device.connectivity.execute-following-command
-
- warning - {{ 'api-key.generated-api-key-insecure-url' | translate }} -
+ @if (!secureUrl) { +
+ warning + {{ 'api-key.generated-api-key-insecure-url' | translate }} +
+ }
diff --git a/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.scss b/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.scss index 810077ed52..c3ce2e93ee 100644 --- a/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.scss @@ -14,12 +14,6 @@ min-height: 42px; } - .insecure-url-warning { - .mat-icon { - color: #FAA405; - } - } - @media #{$mat-sm} { width: 470px; } diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.html index 1be553205c..6f6c84cc2f 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.html @@ -1,15 +1,17 @@
{{ 'calculated-fields.argument-settings' | translate }}
@if (hint) { -
- {{ hint | translate }} +
+ info_outline + {{ hint | translate }}
}
diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.html index 0ea3c7c290..aa23c6871a 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.html @@ -147,7 +147,7 @@ } @if (maxArgumentsPerCF && argumentsFormArray.length >= maxArgumentsPerCF) { -
+
warning {{ 'calculated-fields.hint.max-args' | translate }}
diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.scss b/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.scss index e946e9b8df..0090390195 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.scss +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.scss @@ -1,5 +1,6 @@ // 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 :host { .arguments-table { min-height: 108px; @@ -32,12 +33,6 @@ font-size: 16px; } - .max-args-warning { - .mat-icon { - color: #FAA405; - } - } - .tb-form-table-row-cell-buttons { --mat-badge-legacy-small-size-container-size: 8px; --mat-badge-small-size-container-overlap-offset: -5px; diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.html index 164d85cc75..f7ebf6cfd6 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.html @@ -10,8 +10,9 @@
{{ 'calculated-fields.arguments' | translate }}
-
- {{ 'calculated-fields.entity-aggregation.argument-hint' | translate }} +
+ info_outline + {{ 'calculated-fields.entity-aggregation.argument-hint' | translate }}
-
- {{ hint }} +
+ info_outline + {{ hint }}
}
diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html index 78b9bca5a1..e5e6c1fd7a 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html @@ -156,7 +156,7 @@
@if (maxRelationLevelPerCfArgument && levelsFormArray().length >= maxRelationLevelPerCfArgument) { -
+
warning {{ 'calculated-fields.max-allowed-levels-error' | translate }}
diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.scss b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.scss index 1993234b7d..8d397ac264 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.scss +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.scss @@ -1,5 +1,6 @@ // 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 @import '../../../../../../../scss/constants'; :host { @@ -31,12 +32,6 @@ } } - .max-args-warning { - .mat-icon { - color: #FAA405; - } - } - .limit-field-row { @media screen and (max-width: 520px) { display: flex; diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-table.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-table.component.html index 9eedfe33ba..df7e6e92ec 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-table.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-table.component.html @@ -146,7 +146,7 @@ } @if (maxArgumentsPerCF && zoneGroupsFormArray.length >= maxArgumentsPerCF) { -
+
warning {{ 'calculated-fields.hint.max-geofencing-zone' | translate }}
diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/metrics/calculated-field-metrics-table.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/metrics/calculated-field-metrics-table.component.html index c0beaec543..ca59af4c7c 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/metrics/calculated-field-metrics-table.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/metrics/calculated-field-metrics-table.component.html @@ -134,7 +134,7 @@ } @if (maxArgumentsPerCF && metricsFormArray.length >= maxArgumentsPerCF) { -
+
warning {{ 'calculated-fields.metrics.max-metrics' | translate }}
diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.html index 362a8da097..78b8a44074 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.html @@ -15,8 +15,9 @@
} @case (ReprocessingState.CONFIG) { -
- {{ 'calculated-fields.hint.reprocessing' | translate }} +
+ info_outline + {{ 'calculated-fields.hint.reprocessing' | translate }}
debug-settings.label
@if (maxMessagesCount) {
-
- {{ 'debug-settings.hint.main-limited' | translate: { entity: (entityLabel | translate | lowercase), msg: maxMessagesCount, time: (maxTimeFrameDuration | milliSecondsToTimeString: true : true) } }} +
+ info_outline + {{ 'debug-settings.hint.main-limited' | translate: { entity: (entityLabel | translate | lowercase), msg: maxMessagesCount, time: (maxTimeFrameDuration | milliSecondsToTimeString: true : true) } }}
} diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html index bd5f7a6775..905db77aca 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html @@ -1,7 +1,8 @@
@@ -77,7 +78,10 @@ }

@if (planSummary.missing > 0) { -

{{ 'iot-hub.install-plan-missing-warning' | translate:{ count: planSummary.missing } }}

+
+ warning + {{ 'iot-hub.install-plan-missing-warning' | translate:{ count: planSummary.missing } }} +
}
    @for (entry of installPlan?.entries; track entry.itemId) { diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss index b9fabe0fd0..f8f6a045be 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss @@ -1,5 +1,6 @@ // 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 @import "../../../../../scss/constants"; tb-entity-select { @@ -44,17 +45,6 @@ tb-entity-select { padding-bottom: 24px; } -.tb-iot-hub-install-warning { - color: #b26a00; - background: #fff8e1; - border-left: 3px solid #f5b324; - padding: 8px 12px; - font-size: 13px; - line-height: 18px; - border-radius: 4px; - margin: 0; -} - .tb-iot-hub-plan-list { list-style: none; padding: 0; diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.scss b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.scss index 27344c659b..8c5ec3e5d5 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.scss +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.scss @@ -1,5 +1,6 @@ // 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 $text-color: rgba(0,0,0,0.76); $link-color: #2a7dec; $copy-button-color: #2a7dec; @@ -371,41 +372,6 @@ $gallery-border-hover-color: #2a7dec; } } - .tb-callout { - display: flex; - align-items: flex-start; - gap: 10px; - padding: 12px 16px; - border-radius: 4px; - border: 1px solid; - margin: 12px 0; - font-size: 14px; - line-height: 20px; - - .tb-callout-icon { - font-size: 20px; - flex-shrink: 0; - } - - &.tb-callout-note { - background: #e3f2fd; - border-color: #90caf9; - color: #1565c0; - } - - &.tb-callout-warn { - background: #fff8e1; - border-color: #ffe082; - color: #f57f17; - } - - &.tb-callout-error { - background: #fce4ec; - border-color: #ef9a9a; - color: #c62828; - } - } - .tb-gallery-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.ts index f70adf196a..4bdfabf879 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.ts @@ -222,8 +222,9 @@ export class TbIotHubMarkdownComponent implements OnInit, OnChanges { if (calloutMatch) { const type = calloutMatch[1]; const text = calloutMatch[2]; - const icons: Record = { note: 'info_outline', warn: 'warning_amber', error: 'error_outline' }; - return `
    ${icons[type]}${text}
    `; + const icons: Record = { note: 'info_outline', warn: 'warning', error: 'error_outline' }; + const modifiers: Record = { note: '', warn: ' tb-form-hint-warning', error: ' tb-form-hint-error' }; + return `
    ${text}
    `; } // Special variables diff --git a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html index 15f5b47343..641aa53838 100644 --- a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html +++ b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html @@ -46,9 +46,9 @@
    @if (!isTransportWasRunWithBootstrap) { -
    - warning - LwM2M transport was run without bootstrap server +
    + warning + device-profile.lwm2m.transport-run-without-bootstrap-server
    } diff --git a/ui-ngx/src/app/modules/home/components/rule-node/action/device-profile-config.component.html b/ui-ngx/src/app/modules/home/components/rule-node/action/device-profile-config.component.html index 72bebe8663..287e362610 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/action/device-profile-config.component.html +++ b/ui-ngx/src/app/modules/home/components/rule-node/action/device-profile-config.component.html @@ -1,11 +1,15 @@
    -
    rule-node-config.device-profile-node-hint
    +
    + info_outline + rule-node-config.device-profile-node-hint +
    diff --git a/ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html b/ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html index 6f7c9768ab..841ecca07b 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html +++ b/ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html @@ -1,7 +1,8 @@
    @@ -28,7 +29,10 @@ }
    -
    rule-node-config.coordinate-field-hint
    +
    + info_outline + rule-node-config.coordinate-field-hint +
    @@ -154,9 +158,11 @@ }
-
{{ geoActionConfigForm.get('reportPresenceStatusOnEachMessage').value === false ? - ('rule-node-config.presence-monitoring-strategy-on-first-message-hint' | translate) : - ('rule-node-config.presence-monitoring-strategy-on-each-message-hint' | translate) }} +
+ info_outline + {{ geoActionConfigForm.get('reportPresenceStatusOnEachMessage').value === false ? + ('rule-node-config.presence-monitoring-strategy-on-first-message-hint' | translate) : + ('rule-node-config.presence-monitoring-strategy-on-each-message-hint' | translate) }}
@if (geoActionConfigForm.get('reportPresenceStatusOnEachMessage').value === false) { diff --git a/ui-ngx/src/app/modules/home/components/rule-node/common/credentials-config.component.html b/ui-ngx/src/app/modules/home/components/rule-node/common/credentials-config.component.html index f8c355bfbf..002dcba031 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/common/credentials-config.component.html +++ b/ui-ngx/src/app/modules/home/components/rule-node/common/credentials-config.component.html @@ -52,7 +52,10 @@ } @case("cert.PEM") { -
{{ 'rule-node-config.credentials-pem-hint' | translate }}
+
+ info_outline + {{ 'rule-node-config.credentials-pem-hint' | translate }} +
-
-
- @if (popupHelpLink) { -
-
- } -
+@if (hintText) { +
+ info_outline +
+ @if (popupHelpLink) { +
+
+ } +
+} diff --git a/ui-ngx/src/app/modules/home/components/rule-node/common/kv-map-config-old.component.html b/ui-ngx/src/app/modules/home/components/rule-node/common/kv-map-config-old.component.html index 85120828d5..273e8e328f 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/common/kv-map-config-old.component.html +++ b/ui-ngx/src/app/modules/home/components/rule-node/common/kv-map-config-old.component.html @@ -1,12 +1,16 @@
@if (description) { -
+
+ info_outline + +
} @if (keyValsFormArray().controls.length || !emptyText) {
diff --git a/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.html b/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.html index ae70e36b62..c0ae088831 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.html +++ b/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.html @@ -94,9 +94,9 @@
-
- error_outline -
+
+ {{ getTelemetryFromDatabaseConfigForm.get('interval').valid ? 'info_outline' : 'error_outline' }} + @if (getTelemetryFromDatabaseConfigForm.get('interval').valid) { {{ 'rule-node-config.fetch-timeseries-from-to' | translate: { @@ -108,7 +108,7 @@ } @else { {{ "rule-node-config.fetch-timeseries-from-to-invalid" | translate }} } -
+
} @else { @@ -152,7 +152,8 @@
- {{ deduplicationStrategiesHintTranslations.get(getTelemetryFromDatabaseConfigForm.get('fetchMode').value) | translate }} + info_outline + {{ deduplicationStrategiesHintTranslations.get(getTelemetryFromDatabaseConfigForm.get('fetchMode').value) | translate }}
@if (getTelemetryFromDatabaseConfigForm.get('fetchMode').value === fetchMode.ALL) { diff --git a/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.scss b/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.scss index 41f1d98916..0999a2d1d3 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.scss +++ b/ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.scss @@ -1,43 +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 :host { .see-example { display: inline-block; } - .description-block { - display: flex; - align-items: center; - border-radius: 6px; - border: 1px solid #EAEAEA; - - .description-icon { - font-size: 24px; - height: 24px; - min-height: 24px; - width: 24px; - min-width: 24px; - line-height: 24px; - color: #D9D9D9; - margin: 4px; - } - - .description-text { - font-size: 12px; - line-height: 16px; - letter-spacing: 0.25px; - margin: 6px; - } - - &.error { - color: var(--mat-theme-error, #f44336); - - .description-icon { - color: var(--mat-theme-error, #f44336); - } - } - } .item-center { align-items: center; diff --git a/ui-ngx/src/app/modules/home/components/rule-node/external/rest-api-call-config.component.html b/ui-ngx/src/app/modules/home/components/rule-node/external/rest-api-call-config.component.html index ff0c88665c..16accc7980 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/external/rest-api-call-config.component.html +++ b/ui-ngx/src/app/modules/home/components/rule-node/external/rest-api-call-config.component.html @@ -51,7 +51,10 @@ {{ 'rule-node-config.headers' | translate }} -
+
+ info_outline + +
@if(!restApiCallConfigForm.get('ignoreRequestBody').value) { -
+
+ info_outline + +
rule-node-config.request-body-template