Browse Source

Unified style for info/warning notes (#16469)

* Unified style for info/warning notes

* Fixed license headers

* Unified notes: address review comments

* Fixed PR comments
pull/16640/head
Maksym Tsymbarov 3 weeks ago
committed by GitHub
parent
commit
0e7e729175
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 24
      ui-ngx/src/app/modules/home/components/agent/_agent-shared.scss
  2. 4
      ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.html
  3. 5
      ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.scss
  4. 22
      ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.html
  5. 30
      ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.scss
  6. 45
      ui-ngx/src/app/modules/home/components/agent/wizard/_agent-wizard.scss
  7. 13
      ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-install-flow.component.html
  8. 8
      ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-update-flow.component.html
  9. 4
      ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-upgrade-flow.component.html
  10. 5
      ui-ngx/src/app/modules/home/components/ai-model/check-connectivity-dialog.component.scss
  11. 4
      ui-ngx/src/app/modules/home/components/ai/ai-approval-card.component.scss
  12. 8
      ui-ngx/src/app/modules/home/components/ai/ai-credits.component.scss
  13. 3
      ui-ngx/src/app/modules/home/components/alarm-rules/alarm-rule-details-dialog.component.html
  14. 3
      ui-ngx/src/app/modules/home/components/alarm-rules/cf-alarm-rule-condition-dialog.component.html
  15. 2
      ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.scss
  16. 10
      ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.html
  17. 6
      ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.scss
  18. 8
      ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.html
  19. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.html
  20. 9
      ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.scss
  21. 10
      ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.html
  22. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html
  23. 9
      ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.scss
  24. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-table.component.html
  25. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/metrics/calculated-field-metrics-table.component.html
  26. 5
      ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.html
  27. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.scss
  28. 8
      ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-panel.component.html
  29. 8
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html
  30. 14
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.scss
  31. 38
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.scss
  32. 5
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-markdown.component.ts
  33. 6
      ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html
  34. 8
      ui-ngx/src/app/modules/home/components/rule-node/action/device-profile-config.component.html
  35. 16
      ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html
  36. 5
      ui-ngx/src/app/modules/home/components/rule-node/common/credentials-config.component.html
  37. 33
      ui-ngx/src/app/modules/home/components/rule-node/common/example-hint.component.html
  38. 8
      ui-ngx/src/app/modules/home/components/rule-node/common/kv-map-config-old.component.html
  39. 11
      ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.html
  40. 35
      ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.scss
  41. 10
      ui-ngx/src/app/modules/home/components/rule-node/external/rest-api-call-config.component.html
  42. 8
      ui-ngx/src/app/modules/home/components/rule-node/filter/gps-geo-filter-config.component.html
  43. 5
      ui-ngx/src/app/modules/home/components/vc/auto-commit-settings.component.html
  44. 4
      ui-ngx/src/app/modules/home/components/widget/config/basic/cards/mobile-app-qr-code-basic-config.component.html
  45. 14
      ui-ngx/src/app/modules/home/components/widget/lib/cards/api-usage-widget.component.scss
  46. 11
      ui-ngx/src/app/modules/home/components/widget/lib/home-page/cluster-info-table.component.scss
  47. 2
      ui-ngx/src/app/modules/home/components/widget/lib/home-page/license-usage-info.component.scss
  48. 9
      ui-ngx/src/app/modules/home/components/widget/lib/home-page/usage-info-widget.component.scss
  49. 2
      ui-ngx/src/app/modules/home/components/widget/lib/maps/map.scss
  50. 4
      ui-ngx/src/app/modules/home/components/widget/lib/settings/cards/mobile-app-qr-code-widget-settings.component.html
  51. 44
      ui-ngx/src/app/modules/home/components/widget/lib/settings/common/key/data-key-config.component.html
  52. 5
      ui-ngx/src/app/modules/home/components/wizard/integration-wizard-dialog.component.html
  53. 12
      ui-ngx/src/app/modules/home/components/wizard/integration-wizard-dialog.component.scss
  54. 8
      ui-ngx/src/app/modules/home/pages/admin/general-settings.component.html
  55. 7
      ui-ngx/src/app/modules/home/pages/admin/general-settings.component.scss
  56. 8
      ui-ngx/src/app/modules/home/pages/admin/license-management.component.html
  57. 25
      ui-ngx/src/app/modules/home/pages/admin/license-management.component.scss
  58. 8
      ui-ngx/src/app/modules/home/pages/agent/agent-application.component.html
  59. 17
      ui-ngx/src/app/modules/home/pages/agent/agent-application.component.scss
  60. 5
      ui-ngx/src/app/modules/home/pages/agent/agent-install-instructions-dialog.component.scss
  61. 18
      ui-ngx/src/app/modules/home/pages/agent/agent-profile-created-dialog.component.html
  62. 45
      ui-ngx/src/app/modules/home/pages/agent/agent-profile-created-dialog.component.scss
  63. 2
      ui-ngx/src/app/modules/home/pages/agent/agent-profile-merged-profiles.component.html
  64. 21
      ui-ngx/src/app/modules/home/pages/agent/agent-profile-merged-profiles.component.scss
  65. 12
      ui-ngx/src/app/modules/home/pages/agent/agent-profile.component.html
  66. 86
      ui-ngx/src/app/modules/home/pages/agent/agent-profile.component.scss
  67. 8
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-app-event-progress-dialog.component.html
  68. 19
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-app-event-progress-dialog.component.scss
  69. 7
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-app-profile-upgrade-dialog.component.html
  70. 151
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-bulk-action-dialog.component.html
  71. 126
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-bulk-action-dialog.component.scss
  72. 14
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-preset-dialog.component.html
  73. 45
      ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-preset-dialog.component.scss
  74. 8
      ui-ngx/src/app/modules/home/pages/agent/wizard/agent-app-profile-wizard.component.html
  75. 4
      ui-ngx/src/app/modules/home/pages/agent/wizard/agent-app-profile-wizard.component.scss
  76. 22
      ui-ngx/src/app/modules/home/pages/agent/wizard/agent-profile-wizard.component.html
  77. 45
      ui-ngx/src/app/modules/home/pages/agent/wizard/agent-profile-wizard.component.scss
  78. 4
      ui-ngx/src/app/modules/home/pages/ai-solution-creator/solution-info/issues-popover.component.scss
  79. 8
      ui-ngx/src/app/modules/home/pages/ai-solution-creator/solution-info/solution-info-dialog.component.scss
  80. 6
      ui-ngx/src/app/modules/home/pages/custom-translation/translation-map-table.component.scss
  81. 5
      ui-ngx/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.html
  82. 5
      ui-ngx/src/app/modules/home/pages/dashboard/public-dashboard-link.dialog.component.html
  83. 14
      ui-ngx/src/app/modules/home/pages/device/device-check-connectivity-dialog.component.scss
  84. 4
      ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.html
  85. 21
      ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss
  86. 5
      ui-ngx/src/app/modules/home/pages/integration/integration.component.html
  87. 10
      ui-ngx/src/app/modules/home/pages/integration/integration.component.scss
  88. 4
      ui-ngx/src/app/modules/home/pages/mobile/qr-code-widget/mobile-qr-code-widget-settings.component.html
  89. 14
      ui-ngx/src/app/modules/home/pages/mobile/qr-code-widget/mobile-qr-code-widget-settings.component.scss
  90. 11
      ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss
  91. 20
      ui-ngx/src/app/modules/home/pages/notification/template/configuration/notification-template-configuration.component.html
  92. 8
      ui-ngx/src/app/modules/home/pages/notification/template/configuration/notification-template-configuration.component.scss
  93. 6
      ui-ngx/src/app/modules/home/pages/task-manager/task-info-panel.component.scss
  94. 8
      ui-ngx/src/app/shared/components/time/aggregation/aggregation-options-config-panel.component.html
  95. 6
      ui-ngx/src/app/shared/components/time/interval-options-config-panel.component.html
  96. 1
      ui-ngx/src/assets/locale/locale.constant-en_US.json
  97. 21
      ui-ngx/src/form.scss
  98. 7
      ui-ngx/src/styles.scss
  99. 1
      ui-ngx/src/theme/theme-constants.scss

24
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;

4
ui-ngx/src/app/modules/home/components/agent/agent-install-instructions.component.html

@ -29,8 +29,8 @@
<pre>{{ dockerCommand }}</pre>
</div>
<div class="tb-info-box">
<mat-icon>info</mat-icon>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>agent.install-instructions-replace-hint</span>
</div>

5
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;
}

22
ui-ngx/src/app/modules/home/components/agent/dialog/agent-auto-provision-dialog.component.html

@ -20,11 +20,11 @@
<mat-step [completed]="canProceed()"
[label]="stepSelectKey | translate">
<div class="tb-info-box info">
<mat-icon>auto_awesome</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<div>
<p class="info-title">{{ infoTitleKey | translate }}</p>
<p>{{ infoBodyKey | translate }}</p>
<div class="font-medium">{{ infoTitleKey | translate }}</div>
<div>{{ infoBodyKey | translate }}</div>
</div>
</div>
@ -135,19 +135,15 @@
</button>
<pre>{{ dockerCommand }}</pre>
</div>
<div class="tb-info-box info">
<mat-icon>info</mat-icon>
<div>
<p>{{ infoBodyKey | translate }}</p>
</div>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span>{{ infoBodyKey | translate }}</span>
</div>
</section>
} @else {
<div class="tb-info-box invalid">
<div class="tb-form-hint tb-primary-fill tb-form-hint-error mb-4">
<mat-icon>error_outline</mat-icon>
<div>
<p translate>edge.auto-provision-no-script</p>
</div>
<span translate>edge.auto-provision-no-script</span>
</div>
}

30
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;

45
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;
}
}

13
ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-install-flow.component.html

@ -55,9 +55,8 @@
}
@if (selectAgent && !embedded && !checkingManaged && !managedApp) {
<div class="tb-agent-deploy-note"
>
<mat-icon>auto_awesome</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span translate>agent.deploy-via-agent-desc</span>
</div>
}
@ -236,8 +235,8 @@
</mat-form-field>
}
@if (relatedEntityId) {
<div class="tb-app-compose-hint">
<mat-icon class="tb-app-compose-hint-icon">info_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-compose-creds-overridden-hint</span>
</div>
}
@ -300,8 +299,8 @@
</div>
}
</div>
<div class="info-box">
<mat-icon>info</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-install-confirm-info</span>
</div>
<div class="step-footer">

8
ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-update-flow.component.html

@ -95,8 +95,8 @@
}
</div>
@if (relatedEntityId) {
<div class="tb-app-compose-hint">
<mat-icon class="tb-app-compose-hint-icon">info_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-compose-creds-overridden-hint</span>
</div>
}
@ -167,8 +167,8 @@
}
</div>
<div class="info-box">
<mat-icon>info</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-install-confirm-info</span>
</div>

4
ui-ngx/src/app/modules/home/components/agent/wizard/agent-app-upgrade-flow.component.html

@ -167,8 +167,8 @@
</div>
}
</div>
<div class="info-box">
<mat-icon>info</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-upgrade-rollback-info</span>
</div>
<div class="step-footer">

5
ui-ngx/src/app/modules/home/components/ai-model/check-connectivity-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
:host {
width: 560px;
height: 100%;
@ -38,7 +39,7 @@
}
.error {
color: #D12730;
color: var(--tb-crit);
}
::ng-deep {

4
ui-ngx/src/app/modules/home/components/ai/ai-approval-card.component.scss

@ -21,8 +21,8 @@
}
&.error {
color: #D12730;
background-color: rgba(209, 39, 48, 0.08);
color: var(--tb-crit);
background-color: color-mix(in srgb, var(--tb-crit) 8%, transparent);
}
.approval-title {

8
ui-ngx/src/app/modules/home/components/ai/ai-credits.component.scss

@ -7,13 +7,13 @@
--_donut-track: rgba(0, 0, 0, 0.12);
&.WARNING {
--_donut-color: #FAA405;
--_donut-track: rgba(250, 164, 5, 0.2);
--_donut-color: var(--tb-warning);
--_donut-track: color-mix(in srgb, var(--tb-warning) 20%, transparent);
}
&.DISABLED {
--_donut-color: #D12730;
--_donut-track: rgba(209, 39, 48, 0.2);
--_donut-color: var(--tb-crit);
--_donut-track: color-mix(in srgb, var(--tb-crit) 20%, transparent);
}
}

3
ui-ngx/src/app/modules/home/components/alarm-rules/alarm-rule-details-dialog.component.html

@ -18,7 +18,8 @@
<textarea matInput [formControl]="alarmDetailsControl" rows="5"
placeholder="{{ 'alarm-rule.alarm-rule-additional-info-placeholder' | translate }}"></textarea>
</mat-form-field>
<div class="tb-form-hint tb-primary-fill flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span [innerHTML]="'alarm-rule.alarm-rule-additional-info-hint' | translate | safe: 'html'"></span>
</div>
</div>

3
ui-ngx/src/app/modules/home/components/alarm-rules/cf-alarm-rule-condition-dialog.component.html

@ -124,7 +124,8 @@
</tb-toggle-select>
</div>
@if (isNoData) {
<div class="tb-form-hint tb-primary-fill max-args-warning flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'alarm-rule.condition-type-hint' | translate }}</span>
</div>
}

2
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 {

10
ui-ngx/src/app/modules/home/components/api-key/api-key-generated-dialog.component.html

@ -86,10 +86,12 @@
<ng-template #executeCommand>
<div class="tb-form-panel stroked">
<div class="tb-form-panel-title" translate>device.connectivity.execute-following-command</div>
<div class="tb-form-hint tb-primary-fill insecure-url-warning flex gap-2" [class.hidden]="secureUrl">
<mat-icon class="tb-mat-24">warning</mat-icon>
<span>{{ 'api-key.generated-api-key-insecure-url' | translate }}</span>
</div>
@if (!secureUrl) {
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span>{{ 'api-key.generated-api-key-insecure-url' | translate }}</span>
</div>
}
<tb-markdown usePlainMarkdown containerClass="tb-command-code" [data]='createMarkDownCommand(apiKeyCommand)'></tb-markdown>
</div>
</ng-template>

6
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;
}

8
ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-argument-panel.component.html

@ -1,15 +1,17 @@
<!--
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
-->
<div class="tb-config-panel" [formGroup]="argumentFormGroup">
<div class="tb-config-panel-title tb-form-panel-title">{{ 'calculated-fields.argument-settings' | translate }}</div>
<div class="tb-config-panel-content tb-form-panel no-border no-padding">
@if (hint) {
<div class="tb-form-hint tb-primary-fill hint-container">
{{ hint | translate }}
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ hint | translate }}</span>
</div>
}
<div class="tb-form-panel no-border no-padding">

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/calculated-field-arguments/calculated-field-arguments-table.component.html

@ -147,7 +147,7 @@
</button>
}
@if (maxArgumentsPerCF && argumentsFormArray.length >= maxArgumentsPerCF) {
<div class="tb-form-hint tb-primary-fill max-args-warning flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span>{{ 'calculated-fields.hint.max-args' | translate }}</span>
</div>

9
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;

10
ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.html

@ -10,8 +10,9 @@
<div class="tb-form-panel-title" tb-hint-tooltip-icon="{{ 'calculated-fields.entity-aggregation.argument-title-hint' | translate }}">
{{ 'calculated-fields.arguments' | translate }}
</div>
<div class="tb-form-hint tb-primary-fill hint-container">
{{ 'calculated-fields.entity-aggregation.argument-hint' | translate }}
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'calculated-fields.entity-aggregation.argument-hint' | translate }}</span>
</div>
<tb-entity-aggregation-arguments-table formControlName="arguments"
[entityId]="entityId"
@ -90,8 +91,9 @@
requiredText="{{ 'calculated-fields.entity-aggregation.offset-value-required' | translate }}"
formControlName="offsetSec">
</tb-time-unit-input>
<div class="tb-form-hint tb-primary-fill hint-container">
{{ hint }}
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ hint }}</span>
</div>
}
</div>

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html

@ -156,7 +156,7 @@
</div>
<div>
@if (maxRelationLevelPerCfArgument && levelsFormArray().length >= maxRelationLevelPerCfArgument) {
<div class="tb-form-hint tb-primary-fill max-args-warning flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span>{{ 'calculated-fields.max-allowed-levels-error' | translate }}</span>
</div>

9
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;

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-table.component.html

@ -146,7 +146,7 @@
</button>
}
@if (maxArgumentsPerCF && zoneGroupsFormArray.length >= maxArgumentsPerCF) {
<div class="tb-form-hint tb-primary-fill max-args-warning flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span>{{ 'calculated-fields.hint.max-geofencing-zone' | translate }}</span>
</div>

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/metrics/calculated-field-metrics-table.component.html

@ -134,7 +134,7 @@
</button>
}
@if (maxArgumentsPerCF && metricsFormArray.length >= maxArgumentsPerCF) {
<div class="tb-form-hint tb-primary-fill max-args-warning flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span>{{ 'calculated-fields.metrics.max-metrics' | translate }}</span>
</div>

5
ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.html

@ -15,8 +15,9 @@
</div>
}
@case (ReprocessingState.CONFIG) {
<div class="tb-form-hint tb-form-panel-hint tb-primary-fill">
{{ 'calculated-fields.hint.reprocessing' | translate }}
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'calculated-fields.hint.reprocessing' | translate }}</span>
</div>
<tb-timewindow [(ngModel)]="timeWindow"
[panelMode]="false"

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/reprocessing/calculated-field-reprocessing-panel.component.scss

@ -52,7 +52,7 @@
}
.warn {
color: #FAA405;
color: var(--tb-warning);
}
}
}

8
ui-ngx/src/app/modules/home/components/entity/debug/entity-debug-settings-panel.component.html

@ -1,15 +1,17 @@
<!--
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
-->
<div class="flex w-96 flex-col gap-3 p-2">
<div class="tb-form-panel-title" translate>debug-settings.label</div>
@if (maxMessagesCount) {
<div class="hint-container">
<div class="tb-form-hint tb-primary-fill tb-flex center">
{{ 'debug-settings.hint.main-limited' | translate: { entity: (entityLabel | translate | lowercase), msg: maxMessagesCount, time: (maxTimeFrameDuration | milliSecondsToTimeString: true : true) } }}
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'debug-settings.hint.main-limited' | translate: { entity: (entityLabel | translate | lowercase), msg: maxMessagesCount, time: (maxTimeFrameDuration | milliSecondsToTimeString: true : true) } }}</span>
</div>
</div>
}

8
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-install-dialog.component.html

@ -1,7 +1,8 @@
<!--
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
-->
<div class="flex flex-col gap-5 p-6">
@ -77,7 +78,10 @@
}
</p>
@if (planSummary.missing > 0) {
<p class="tb-iot-hub-install-warning">{{ 'iot-hub.install-plan-missing-warning' | translate:{ count: planSummary.missing } }}</p>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span>{{ 'iot-hub.install-plan-missing-warning' | translate:{ count: planSummary.missing } }}</span>
</div>
}
<ul class="tb-iot-hub-plan-list">
@for (entry of installPlan?.entries; track entry.itemId) {

14
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;

38
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));

5
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<string, string> = { note: 'info_outline', warn: 'warning_amber', error: 'error_outline' };
return `<div class="tb-callout tb-callout-${type}"><i class="material-icons tb-callout-icon">${icons[type]}</i><span class="tb-callout-text">${text}</span></div>`;
const icons: Record<string, string> = { note: 'info_outline', warn: 'warning', error: 'error_outline' };
const modifiers: Record<string, string> = { note: '', warn: ' tb-form-hint-warning', error: ' tb-form-hint-error' };
return `<div class="tb-form-hint tb-primary-fill${modifiers[type]} my-3"><i class="mat-icon material-icons notranslate" aria-hidden="true">${icons[type]}</i><span>${text}</span></div>`;
}
// Special variables

6
ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-device-profile-transport-configuration.component.html

@ -46,9 +46,9 @@
<mat-tab label="{{ 'device-profile.lwm2m.bootstrap-tab' | translate }}">
<section [formGroup]="lwm2mDeviceProfileFormGroup">
@if (!isTransportWasRunWithBootstrap) {
<div style="padding:16px 0 0 8px;" class="flex flex-row items-end justify-start">
<mat-icon color="warn" class="material-icons" style="margin-right:8px;">warning</mat-icon>
<span style="font-weight:500">LwM2M transport was run without bootstrap server</span>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning mx-2 mt-4">
<mat-icon>warning</mat-icon>
<span translate>device-profile.lwm2m.transport-run-without-bootstrap-server</span>
</div>
}
<mat-checkbox formControlName="bootstrapServerUpdateEnable" style="margin-left:8px;margin-top:20px">

8
ui-ngx/src/app/modules/home/components/rule-node/action/device-profile-config.component.html

@ -1,11 +1,15 @@
<!--
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
-->
<section [formGroup]="deviceProfile" class="tb-form-panel stroked">
<div class="tb-form-hint tb-primary-fill" translate>rule-node-config.device-profile-node-hint</div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>rule-node-config.device-profile-node-hint</span>
</div>
<div tb-hint-tooltip-icon="{{'rule-node-config.persist-alarm-rules-hint' | translate }}"
class="tb-form-row no-border no-padding slide-toggle">
<mat-slide-toggle class="mat-slide" formControlName="persistAlarmRulesState">

16
ui-ngx/src/app/modules/home/components/rule-node/action/gps-geo-action-config.component.html

@ -1,7 +1,8 @@
<!--
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
-->
<section [formGroup]="geoActionConfigForm" class="tb-form-panel no-border no-padding">
@ -28,7 +29,10 @@
}
</mat-form-field>
</div>
<div class="tb-form-hint tb-primary-fill" translate>rule-node-config.coordinate-field-hint</div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>rule-node-config.coordinate-field-hint</span>
</div>
</section>
</section>
<section class="tb-form-panel stroked" [class.no-padding-bottom]="!defaultPaddingEnable">
@ -154,9 +158,11 @@
}
</tb-toggle-select>
</div>
<div class="tb-form-hint tb-primary-fill"> {{ 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) }}
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 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) }}</span>
</div>
<section class="flex flex-col">
@if (geoActionConfigForm.get('reportPresenceStatusOnEachMessage').value === false) {

5
ui-ngx/src/app/modules/home/components/rule-node/common/credentials-config.component.html

@ -52,7 +52,10 @@
</tb-secret-key-input>
}
@case("cert.PEM") {
<div class="tb-form-hint tb-primary-fill mb-4">{{ 'rule-node-config.credentials-pem-hint' | translate }}</div>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span>{{ 'rule-node-config.credentials-pem-hint' | translate }}</span>
</div>
<tb-secret-file-input formControlName="caCert"
inputId="caCertSelect"
label="{{'rule-node-config.ca-cert' | translate}}"

33
ui-ngx/src/app/modules/home/components/rule-node/common/example-hint.component.html

@ -1,20 +1,23 @@
<!--
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
-->
<div [hidden]="!hintText" class="tb-form-hint tb-primary-fill flex justify-between gap-5">
<div [innerHTML]=" hintText | translate | safe: 'html'"
[style.text-align]="textAlign"
class="w-full"></div>
@if (popupHelpLink) {
<div class="flex shrink-0" tb-help-popup="{{ popupHelpLink }}"
hintMode
tb-help-popup-placement="right"
trigger-style="letter-spacing:0.25px; font-size:12px"
[tb-help-popup-style]="{maxWidth: '820px'}"
trigger-text="{{ 'rule-node-config.key-val.see-examples' | translate }}">
</div>
}
</div>
@if (hintText) {
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<div [innerHTML]=" hintText | translate | safe: 'html'"
[style.text-align]="textAlign"></div>
@if (popupHelpLink) {
<div class="flex shrink-0" tb-help-popup="{{ popupHelpLink }}"
hintMode
tb-help-popup-placement="right"
trigger-style="letter-spacing:0.25px; font-size:12px"
[tb-help-popup-style]="{maxWidth: '820px'}"
trigger-text="{{ 'rule-node-config.key-val.see-examples' | translate }}">
</div>
}
</div>
}

8
ui-ngx/src/app/modules/home/components/rule-node/common/kv-map-config-old.component.html

@ -1,12 +1,16 @@
<!--
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
-->
<section class="tb-kv-map-config flex flex-col" [formGroup]="kvListFormGroup">
@if (description) {
<div class="tb-form-hint tb-primary-fill mb-4" [innerHTML]="description | translate | safe: 'html'"></div>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span [innerHTML]="description | translate | safe: 'html'"></span>
</div>
}
@if (keyValsFormArray().controls.length || !emptyText) {
<div class="header flex flex-1 flex-row gap-2" >

11
ui-ngx/src/app/modules/home/components/rule-node/enrichment/get-telemetry-from-database-config.component.html

@ -94,9 +94,9 @@
</mat-select>
</mat-form-field>
</div>
<div class="description-block tb-primary-fill" [class.error]="getTelemetryFromDatabaseConfigForm.get('interval').invalid">
<mat-icon class="description-icon">error_outline</mat-icon>
<div class="description-text">
<div class="tb-form-hint tb-primary-fill" [class.tb-form-hint-error]="getTelemetryFromDatabaseConfigForm.get('interval').invalid">
<mat-icon>{{ getTelemetryFromDatabaseConfigForm.get('interval').valid ? 'info_outline' : 'error_outline' }}</mat-icon>
<span>
@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 }}
}
</div>
</span>
</div>
</div>
} @else {
@ -152,7 +152,8 @@
</tb-toggle-select>
</div>
<div class="tb-form-hint tb-primary-fill hint-container">
{{ deduplicationStrategiesHintTranslations.get(getTelemetryFromDatabaseConfigForm.get('fetchMode').value) | translate }}
<mat-icon>info_outline</mat-icon>
<span>{{ deduplicationStrategiesHintTranslations.get(getTelemetryFromDatabaseConfigForm.get('fetchMode').value) | translate }}</span>
</div>
</div>
@if (getTelemetryFromDatabaseConfigForm.get('fetchMode').value === fetchMode.ALL) {

35
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;

10
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 }}
</mat-expansion-panel-header>
<ng-template matExpansionPanelContent>
<div class="tb-form-hint tb-primary-fill mb-4" [innerHTML]="'rule-node-config.headers-hint' | translate | safe: 'html'"></div>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span [innerHTML]="'rule-node-config.headers-hint' | translate | safe: 'html'"></span>
</div>
<tb-kv-map-config
required="false"
formControlName="headers"
@ -131,7 +134,10 @@
{{ 'rule-node-config.ignore-request-body' | translate }}
</mat-slide-toggle>
@if(!restApiCallConfigForm.get('ignoreRequestBody').value) {
<div class="tb-form-hint tb-primary-fill mb-4" [innerHTML]="'rule-node-config.request-body-template-hint' | translate | safe: 'html'"></div>
<div class="tb-form-hint tb-primary-fill mb-4">
<mat-icon>info_outline</mat-icon>
<span [innerHTML]="'rule-node-config.request-body-template-hint' | translate | safe: 'html'"></span>
</div>
<mat-form-field class="mat-block" subscriptSizing="dynamic" appearance="outline" floatLabel="always">
<mat-label translate>rule-node-config.request-body-template</mat-label>
<textarea matInput

8
ui-ngx/src/app/modules/home/components/rule-node/filter/gps-geo-filter-config.component.html

@ -1,7 +1,8 @@
<!--
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
-->
<section [formGroup]="geoFilterConfigForm" class="tb-form-panel no-border no-padding">
@ -28,7 +29,10 @@
}
</mat-form-field>
</div>
<div class="tb-form-hint tb-primary-fill" translate>rule-node-config.coordinate-field-hint</div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>rule-node-config.coordinate-field-hint</span>
</div>
</section>
</section>
<section class="tb-form-panel stroked" [class.no-padding-bottom]="!defaultPaddingEnable">

5
ui-ngx/src/app/modules/home/components/vc/auto-commit-settings.component.html

@ -129,7 +129,10 @@
</div>
</fieldset>
@if (isReadOnly | async) {
<div class="tb-hint" translate>version-control.auto-commit-settings-read-only-hint</div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>version-control.auto-commit-settings-read-only-hint</span>
</div>
}
<div class="flex flex-row items-center justify-end gap-4 xs:flex-col xs:items-stretch xs:justify-end">
<button mat-raised-button color="warn" type="button" [class.!hidden]="!settings || !allowDelete || !entityTypesFormGroupArray().length"

4
ui-ngx/src/app/modules/home/components/widget/config/basic/cards/mobile-app-qr-code-basic-config.component.html

@ -19,10 +19,10 @@
<div class="tb-form-panel">
<div class="tb-form-panel-title" translate>widget-config.appearance</div>
<div class="tb-form-hint tb-primary-fill">
{{ 'widgets.mobile-app-qr-code.configuration-hint' | translate }}
<mat-icon>info_outline</mat-icon>
<span>{{ 'widgets.mobile-app-qr-code.configuration-hint' | translate }}</span>
@if (displayConfigurationHint) {
<button mat-icon-button color="primary" class="tb-mat-24"
style="position: absolute;top: 9px"
(click)="navigateToMobileAppSettings($event)">
<mat-icon class="material-icons tb-mat-16">open_in_new</mat-icon>
</button>

14
ui-ngx/src/app/modules/home/components/widget/lib/cards/api-usage-widget.component.scss

@ -4,8 +4,6 @@
@import "../../../../../../../scss/constants";
$enabled-color: #198038;
$disabled-color: #D12730;
$warning-color: #FAA405;
$main-color: var(--tb-primary-500);
@ -46,20 +44,20 @@ $main-color: var(--tb-primary-500);
}
&.disabled {
.api-item-statistic-status {
color: $disabled-color;
color: var(--tb-crit);
}
.mat-mdc-progress-bar {
--mat-progress-bar-track-color: #{rgba($disabled-color, 0.06)};
--mat-progress-bar-active-indicator-color: #{$disabled-color};
--mat-progress-bar-track-color: color-mix(in srgb, var(--tb-crit) 6%, transparent);
--mat-progress-bar-active-indicator-color: var(--tb-crit);
}
}
&.warning {
.api-item-statistic-status {
color: $warning-color;
color: var(--tb-warning);
}
.mat-mdc-progress-bar {
--mat-progress-bar-track-color: #{rgba($warning-color, 0.06)};
--mat-progress-bar-active-indicator-color: #{$warning-color};
--mat-progress-bar-track-color: color-mix(in srgb, var(--tb-warning) 6%, transparent);
--mat-progress-bar-active-indicator-color: var(--tb-warning);
}
}

11
ui-ngx/src/app/modules/home/components/widget/lib/home-page/cluster-info-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 {
span.no-data-found {
font-weight: 400;
@ -24,17 +25,17 @@
}
}
&.tb-status-warn {
color: #FAA405;
color: var(--tb-warning);
&:before {
content: "warning";
color: #FAA405;
color: var(--tb-warning);
}
}
&.tb-status-critical {
color: #D12730;
color: var(--tb-crit);
&:before {
content: "warning";
color: #D12730;
color: var(--tb-crit);
}
}
}

2
ui-ngx/src/app/modules/home/components/widget/lib/home-page/license-usage-info.component.scss

@ -145,7 +145,7 @@
}
}
&.critical {
color: #D12730;
color: var(--tb-crit);
.tb-feature-status {
line-height: 24px;
font-size: 24px;

9
ui-ngx/src/app/modules/home/components/widget/lib/home-page/usage-info-widget.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 {
@ -39,8 +40,8 @@
}
.mat-mdc-progress-bar {
&.critical {
--mat-progress-bar-track-color: rgba(209, 39, 48, 0.06);
--mat-progress-bar-active-indicator-color: #D12730;
--mat-progress-bar-track-color: color-mix(in srgb, var(--tb-crit) 6%, transparent);
--mat-progress-bar-active-indicator-color: var(--tb-crit);
}
}
.mdc-linear-progress {
@ -75,7 +76,7 @@
line-height: 16px;
}
&.critical {
color: #D12730;
color: var(--tb-crit);
}
}

2
ui-ngx/src/app/modules/home/components/widget/lib/maps/map.scss

@ -170,7 +170,7 @@ div.tb-widget .tb-widget-content.tb-no-interaction {
mask-image: url('data:image/svg+xml,<svg height="18px" viewBox="0 -960 960 960" width="18px" xmlns="http://www.w3.org/2000/svg"><path d="M600-96v-86L317-336H144v-216h152l112-132v-180h216v216H472L360-516v121l240 131v-48h216v216H600ZM480-720h72v-72h-72v72ZM216-408h72v-72h-72v72Zm456 240h72v-72h-72v72ZM516-755ZM252-444Zm455 240Z"/></svg>');
}
&.tb-close {
background: #D12730;
background: var(--tb-crit);
mask-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M14.25 4.8075L13.1925 3.75L9 7.9425L4.8075 3.75L3.75 4.8075L7.9425 9L3.75 13.1925L4.8075 14.25L9 10.0575L13.1925 14.25L14.25 13.1925L10.0575 9L14.25 4.8075Z"/></svg>');
}
}

4
ui-ngx/src/app/modules/home/components/widget/lib/settings/cards/mobile-app-qr-code-widget-settings.component.html

@ -18,10 +18,10 @@
<div class="tb-form-panel" formGroupName="qrCodeConfig">
<div class="tb-form-panel-title" translate>widget-config.card-style</div>
<div class="tb-form-hint tb-primary-fill">
{{ 'widgets.mobile-app-qr-code.configuration-hint' | translate }}
<mat-icon>info_outline</mat-icon>
<span>{{ 'widgets.mobile-app-qr-code.configuration-hint' | translate }}</span>
@if (displayConfigurationHint) {
<button mat-icon-button color="primary" class="tb-mat-24"
style="position: absolute;top: 9px"
(click)="navigateToMobileAppSettings($event)">
<mat-icon class="material-icons tb-mat-16">open_in_new</mat-icon>
</button>

44
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/key/data-key-config.component.html

@ -102,24 +102,27 @@
</mat-form-field>
</div>
<div class="tb-form-hint tb-primary-fill">
{{ dataKeyFormGroup.get('aggregationType').value ? (dataKeyAggregationTypeHintTranslations.get(aggregationTypes[dataKeyFormGroup.get('aggregationType').value]) | translate) : '' }}
@if (dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE) {
<section>
{{ 'datakey.aggregation-type-hint-common' | translate }}
</section>
}
@if (reportMode && dataKeyFormGroup.get('aggregationType').value && dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE) {
<div class="tb-form-row space-between">
<div>{{ 'timewindow.timewindow' | translate }}</div>
<tb-timewindow asButton="true"
strokedButton
noMargin
isEdit="true"
timezone="true"
historyOnly
formControlName="timewindow"></tb-timewindow>
</div>
}
<mat-icon>info_outline</mat-icon>
<div>
{{ dataKeyFormGroup.get('aggregationType').value ? (dataKeyAggregationTypeHintTranslations.get(aggregationTypes[dataKeyFormGroup.get('aggregationType').value]) | translate) : '' }}
@if (dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE) {
<section>
{{ 'datakey.aggregation-type-hint-common' | translate }}
</section>
}
@if (reportMode && dataKeyFormGroup.get('aggregationType').value && dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE) {
<div class="tb-form-row space-between">
<div>{{ 'timewindow.timewindow' | translate }}</div>
<tb-timewindow asButton="true"
strokedButton
noMargin
isEdit="true"
timezone="true"
historyOnly
formControlName="timewindow"></tb-timewindow>
</div>
}
</div>
</div>
</div>
}
@ -135,7 +138,10 @@
<mat-slide-toggle class="mat-slide" formControlName="comparisonEnabled" (click)="$event.stopPropagation()">
{{ 'datakey.enable-delta-calculation' | translate }}
</mat-slide-toggle>
<mat-hint class="tb-form-hint tb-primary-fill">{{ 'datakey.enable-delta-calculation-hint' | translate }}</mat-hint>
<mat-hint class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'datakey.enable-delta-calculation-hint' | translate }}</span>
</mat-hint>
</mat-panel-title>
</mat-expansion-panel-header>
<ng-template matExpansionPanelContent>

5
ui-ngx/src/app/modules/home/components/wizard/integration-wizard-dialog.component.html

@ -152,7 +152,10 @@
<ng-template matStepLabel>{{ "integration.connection" | translate }}</ng-template>
<form [formGroup]="integrationConfigurationForm" tb-toast toastTarget="integrationRoot">
@if (isEdgeTemplate) {
<div translate class="tb-hint tb-hint-edge">integration.edge-placeholder-hint</div>
<div class="tb-form-hint tb-primary-fill mb-2">
<mat-icon>info_outline</mat-icon>
<span translate>integration.edge-placeholder-hint</span>
</div>
}
<tb-integration-configuration
formControlName="configuration"

12
ui-ngx/src/app/modules/home/components/wizard/integration-wizard-dialog.component.scss

@ -74,17 +74,7 @@
}
.error {
color: #D12730;
}
.tb-hint-edge {
border-radius: 6px;
background-color: rgba(48, 86, 128, 0.04);
line-height: 16px;
letter-spacing: 0.25px;
margin-bottom: 8px;
padding: 8px 12px;
color: rgba(0, 0, 0, 0.54);
color: var(--tb-crit);
}
.tb-form-panel.tb-converter-panel {

8
ui-ngx/src/app/modules/home/pages/admin/general-settings.component.html

@ -1,7 +1,8 @@
<!--
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
-->
<mat-card appearance="outlined" class="settings-card">
@ -71,7 +72,10 @@
<tb-toggle-option value="mqtt">{{ 'admin.device-connectivity.mqtt-s' | translate }}</tb-toggle-option>
<tb-toggle-option value="coap">{{ 'admin.device-connectivity.coap-s' | translate }}</tb-toggle-option>
</tb-toggle-select>
<div class="tb-form-hint tb-primary-fill">{{ 'admin.device-connectivity.hint' | translate }}</div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'admin.device-connectivity.hint' | translate }}</span>
</div>
</div>
<form [formGroup]="deviceConnectivitySettingsForm" (ngSubmit)="saveDeviceConnectivitySettings()"
class="tb-form-panel no-border no-padding">

7
ui-ngx/src/app/modules/home/pages/admin/general-settings.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 {
@ -8,10 +9,6 @@
max-width: 670px;
width: 100%;
margin: 0 auto;
.tb-form-hint {
text-align: center;
}
}
@media #{$mat-xs} {

8
ui-ngx/src/app/modules/home/pages/admin/license-management.component.html

@ -14,13 +14,13 @@
@if (max >= 0) {
@if (itemType === UsageItemType.DEVICES) {
@if (itemLimitCritical(count, max)) {
<div class="item-panel item-panel-crit">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></svg>
<div class="tb-form-hint tb-primary-fill tb-form-hint-error item-panel mb-3 mt-0.5">
<mat-icon>error_outline</mat-icon>
<span>{{ 'subscription.device-limit-critical' | translate }}</span>
</div>
} @else if (itemLimitWarn(count, max)) {
<div class="item-panel item-panel-warn">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></svg>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning item-panel mb-3 mt-0.5">
<mat-icon>warning</mat-icon>
<span [innerHTML]="('subscription.device-limit-warn' | translate: {percent: (count / max) | percent}) | safe: 'html'"></span>
</div>
}

25
ui-ngx/src/app/modules/home/pages/admin/license-management.component.scss

@ -208,37 +208,12 @@
margin-top: 28px;
}
.item-panel {
margin: 2px 0 12px;
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 14px;
border: 1px solid var(--tb-line);
border-radius: 8px;
font-size: 14px;
line-height: 1.5;
color: var(--tb-ink);
b {
font-weight: 500;
}
span {
text-wrap: balance;
}
&.item-panel-warn, &.item-panel-crit {
border-color: transparent;
}
&.item-panel-warn {
background: var(--tb-caution-tint);
svg {
color: var(--tb-caution);
}
}
&.item-panel-crit {
background: var(--tb-crit-tint);
svg {
color: var(--tb-crit);
}
}
}
.item-row {
display: flex;

8
ui-ngx/src/app/modules/home/pages/agent/agent-application.component.html

@ -200,8 +200,8 @@
}
@if (isEdit && isProfileManaged) {
<div class="tb-app-compose-hint">
<mat-icon class="tb-app-compose-hint-icon">info_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-2">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-arguments-profile-managed-hint</span>
</div>
}
@ -211,8 +211,8 @@
</tb-agent-app-arguments>
@if (isEdit && relatedEntity) {
<div class="tb-app-compose-hint">
<mat-icon class="tb-app-compose-hint-icon">info_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-2">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-compose-creds-overridden-hint</span>
</div>
}

17
ui-ngx/src/app/modules/home/pages/agent/agent-application.component.scss

@ -29,23 +29,6 @@
.mat-mdc-form-field:has(.tb-app-upgrade-hint) {
margin-bottom: 12px;
}
.tb-app-compose-hint {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
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: #c79100;
}
}
.tb-mat-label {
display: block;
margin-bottom: 8px;

5
ui-ngx/src/app/modules/home/pages/agent/agent-install-instructions-dialog.component.scss

@ -96,11 +96,6 @@
}
}
.tb-info-box {
@include agent-info-box;
@include agent-info-box-tone;
}
.tb-agent-install-dialog-footer {
padding: 8px 16px;

18
ui-ngx/src/app/modules/home/pages/agent/agent-profile-created-dialog.component.html

@ -34,11 +34,11 @@
<pre>{{ dockerCommand }}</pre>
</div>
<div class="tb-info-box info">
<mat-icon>info</mat-icon>
<div class="tb-form-hint tb-primary-fill mt-3">
<mat-icon>info_outline</mat-icon>
<div>
<p translate>agent.agent-profile-created-hint</p>
<ol>
<div translate>agent.agent-profile-created-hint</div>
<ol class="mb-0 mt-1.5 pl-5">
<li translate>agent.agent-profile-created-step-1</li>
<li translate>agent.agent-profile-created-step-2</li>
@if (autoInstallEnabled) {
@ -48,15 +48,15 @@
</div>
</div>
<div class="tb-info-box muted">
<mat-icon>help_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mt-3">
<mat-icon>info_outline</mat-icon>
<div>
<p class="muted-title">
<div class="font-medium">
{{ 'agent.provisioning-strategy-label' | translate: {
strategy: agentProvisionTypeTranslationMap.get(agentProfile?.provisionType) | translate
} }}
</p>
<p>{{ agentProvisionTypeDescriptionMap.get(agentProfile?.provisionType) | translate }}</p>
</div>
<div>{{ agentProvisionTypeDescriptionMap.get(agentProfile?.provisionType) | translate }}</div>
</div>
</div>
</section>

45
ui-ngx/src/app/modules/home/pages/agent/agent-profile-created-dialog.component.scss

@ -90,51 +90,6 @@
}
}
.tb-info-box {
@include agent-info-box;
margin-top: 12px;
p {
margin: 0 0 8px;
font-size: inherit;
line-height: inherit;
&:last-child {
margin-bottom: 0;
}
}
ol {
margin: 0;
padding-left: 20px;
font-size: inherit;
line-height: 1.7;
}
li {
font-size: inherit;
line-height: inherit;
}
&.info {
background: $agent-info-surface;
color: $agent-color-info;
}
&.muted {
background: #f5f5f5;
color: rgba(0, 0, 0, 0.6);
mat-icon {
color: $agent-text-hint;
}
.muted-title {
font-weight: 500;
color: $agent-text-primary;
}
}
}
.tb-agent-profile-created-footer {
padding: 8px 16px;

2
ui-ngx/src/app/modules/home/pages/agent/agent-profile-merged-profiles.component.html

@ -42,7 +42,7 @@
</mat-toolbar>
@if (autoInstallEnabled) {
<div class="tb-merged-auto-install-note">
<div class="tb-form-hint tb-primary-fill mx-4 mt-2.5">
<mat-icon>info_outline</mat-icon>
<span>{{ autoInstallNoteKey | translate }}</span>
</div>

21
ui-ngx/src/app/modules/home/pages/agent/agent-profile-merged-profiles.component.scss

@ -33,27 +33,6 @@
}
}
.tb-merged-auto-install-note {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px 12px;
margin: 10px 16px 0;
border-radius: 4px;
background: color-mix(in srgb, var(--tb-primary-500) 6%, transparent);
color: rgba(0, 0, 0, 0.72);
font-size: 12px;
line-height: 1.45;
mat-icon {
flex-shrink: 0;
font-size: 18px;
width: 18px;
height: 18px;
color: var(--tb-primary-500);
}
}
.tb-merged-table-wrapper {
flex: 1;
overflow: auto;

12
ui-ngx/src/app/modules/home/pages/agent/agent-profile.component.html

@ -62,15 +62,15 @@
</mat-select>
</mat-form-field>
</fieldset>
<div class="tb-agent-profile-strategy-hint">
<mat-icon class="hint-icon">help_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-3">
<mat-icon>info_outline</mat-icon>
<div>
<div class="hint-title">
<div class="font-medium">
{{ 'agent.provisioning-strategy-label' | translate: {
strategy: agentProvisionTypeTranslationMap.get(entityForm.get('provisionType').value) | translate
} }}
</div>
<div class="hint-body">
<div>
{{ agentProvisionTypeDescriptionMap.get(entityForm.get('provisionType').value) | translate }}
</div>
</div>
@ -89,11 +89,11 @@
</button>
<pre>{{ dockerCommand }}</pre>
</div>
<div class="tb-hint-note info">
<div class="tb-form-hint tb-primary-fill mb-2">
<mat-icon>info_outline</mat-icon>
<div>
<div>{{ 'agent.agent-profile-created-hint' | translate }}</div>
<ol>
<ol class="mb-0 mt-1.5 pl-5">
<li>{{ 'agent.agent-profile-created-step-1' | translate }}</li>
<li>{{ 'agent.agent-profile-created-step-2' | translate }}</li>
@if (autoInstallEnabled) {

86
ui-ngx/src/app/modules/home/pages/agent/agent-profile.component.scss

@ -3,45 +3,6 @@
@use '../../components/agent/agent-shared' as *;
:host {
.tb-agent-profile-strategy-hint {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 16px;
margin: 4px 0 12px;
background: rgba(0, 0, 0, 0.04);
border-radius: 4px;
color: rgba(0, 0, 0, 0.6);
font-size: 13px;
line-height: 1.5;
.hint-icon {
flex-shrink: 0;
font-size: 20px;
width: 20px;
height: 20px;
color: $agent-text-hint;
}
div, p, span {
font-size: inherit;
line-height: inherit;
}
.hint-title {
font-weight: 500;
color: $agent-text-primary;
margin-bottom: 2px;
font-size: inherit;
line-height: inherit;
}
.hint-body {
font-size: inherit;
line-height: inherit;
}
}
.tb-section-title {
font-size: 14px;
font-weight: 500;
@ -49,53 +10,6 @@
margin: 16px 0 8px;
}
.tb-hint-note {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.04);
color: rgba(0, 0, 0, 0.72);
font-size: 13px;
line-height: 1.5;
margin: 0 0 8px;
mat-icon {
flex-shrink: 0;
font-size: 20px;
width: 20px;
height: 20px;
color: $agent-text-secondary;
}
div, p, span {
font-size: inherit;
line-height: inherit;
}
ol {
margin: 6px 0 0;
padding-left: 20px;
font-size: inherit;
line-height: 1.6;
}
li {
font-size: inherit;
line-height: inherit;
}
&.info {
background: color-mix(in srgb, var(--tb-primary-500) 6%, transparent);
color: rgba(0, 0, 0, 0.72);
mat-icon {
color: var(--tb-primary-500);
}
}
}
.tb-command-block {
@include agent-command-block;
padding: 12px 16px;

8
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-app-event-progress-dialog.component.html

@ -58,11 +58,11 @@
}
<!-- Error banner -->
@if (hasError) {
<div class="tb-progress-error-banner">
<div class="tb-form-hint tb-primary-fill tb-form-hint-error mb-5">
<mat-icon>error_outline</mat-icon>
<div class="error-body">
<div class="error-label" translate>agent.app-event-error-title</div>
<div class="error-text">{{ event.errorMessage }}</div>
<div>
<div class="font-medium" translate>agent.app-event-error-title</div>
<div class="whitespace-pre-wrap break-words">{{ event.errorMessage }}</div>
</div>
</div>
}

19
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-app-event-progress-dialog.component.scss

@ -94,25 +94,6 @@
}
}
.tb-progress-error-banner {
display: flex; align-items: flex-start; gap: 12px;
padding: 12px 16px; margin-bottom: 20px;
background: $agent-error-surface-light; border: 1px solid #ffcdd2; border-radius: 4px;
mat-icon {
color: $agent-color-error; flex-shrink: 0;
font-size: 20px; width: 20px; height: 20px;
}
.error-body { flex: 1; min-width: 0; }
.error-label {
font-size: 11px; font-weight: 500; color: $agent-text-secondary;
text-transform: uppercase; letter-spacing: 0.5px;
}
.error-text {
font-size: 13px; color: $agent-color-error; font-weight: 500;
word-break: break-word; white-space: pre-wrap;
}
}
.tb-step-progress {
list-style: none; padding: 0; margin: 0;
}

7
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-app-profile-upgrade-dialog.component.html

@ -56,9 +56,10 @@
[syncScroll]="diffSyncScroll" (rightChange)="composeYaml = $event"></tb-agent-compose-diff>
<p class="diff-hint" translate>agent.app-upgrade-diff-hint</p>
@if (isComposeYamlInvalid()) {
<p class="diff-hint" style="color:#c62828;" translate>
agent.app-compose-invalid-yaml
</p>
<div class="tb-form-hint tb-primary-fill tb-form-hint-error mt-2">
<mat-icon>error_outline</mat-icon>
<span translate>agent.app-compose-invalid-yaml</span>
</div>
}
<div class="step-footer">
<button mat-button (click)="cancel()" [disabled]="submitting">

151
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-bulk-action-dialog.component.html

@ -14,9 +14,10 @@
<div mat-dialog-content class="tb-bulk-dialog-body">
<p class="tb-bulk-hint">
{{ 'agent.profiles-bulk-hint' | translate: { appProfile: profile?.name, agentProfile: agentProfile?.name } }}
</p>
<div class="tb-form-hint tb-primary-fill mb-3">
<mat-icon>info_outline</mat-icon>
<span>{{ 'agent.profiles-bulk-hint' | translate: { appProfile: profile?.name, agentProfile: agentProfile?.name } }}</span>
</div>
<!-- Action summary -->
<div class="tb-bulk-summary">
@ -123,87 +124,95 @@
}
</div>
@if (skippedCount(SkipReason.VERSION_MISMATCH)) {
<div class="tb-bulk-skipped-block">
<div class="tb-bulk-skipped-header">
<mat-icon>info_outline</mat-icon>
<span translate>agent.bulk-skipped-version-mismatch</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.VERSION_MISMATCH) }}</span>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning mt-2.5">
<mat-icon>warning</mat-icon>
<div>
<div class="tb-bulk-skipped-header">
<span translate>agent.bulk-skipped-version-mismatch</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.VERSION_MISMATCH) }}</span>
</div>
<ul class="tb-bulk-skipped-list">
@for (s of skippedByReasonMap[SkipReason.VERSION_MISMATCH]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.VERSION_MISMATCH)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.VERSION_MISMATCH) } }}
</li>
}
</ul>
</div>
<ul>
@for (s of skippedByReasonMap[SkipReason.VERSION_MISMATCH]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.VERSION_MISMATCH)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.VERSION_MISMATCH) } }}
</li>
}
</ul>
</div>
}
@if (skippedCount(SkipReason.ACTIVE_EVENT)) {
<div class="tb-bulk-skipped-block">
<div class="tb-bulk-skipped-header">
<mat-icon>hourglass_empty</mat-icon>
<span translate>agent.bulk-skipped-active-event</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.ACTIVE_EVENT) }}</span>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning mt-2.5">
<mat-icon>warning</mat-icon>
<div>
<div class="tb-bulk-skipped-header">
<span translate>agent.bulk-skipped-active-event</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.ACTIVE_EVENT) }}</span>
</div>
<ul class="tb-bulk-skipped-list">
@for (s of skippedByReasonMap[SkipReason.ACTIVE_EVENT]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.ACTIVE_EVENT)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.ACTIVE_EVENT) } }}
</li>
}
</ul>
</div>
<ul>
@for (s of skippedByReasonMap[SkipReason.ACTIVE_EVENT]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.ACTIVE_EVENT)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.ACTIVE_EVENT) } }}
</li>
}
</ul>
</div>
}
@if (skippedCount(SkipReason.RATE_LIMIT_EXCEEDED)) {
<div class="tb-bulk-skipped-block">
<div class="tb-bulk-skipped-header">
<mat-icon>speed</mat-icon>
<span translate>agent.bulk-skipped-rate-limit</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.RATE_LIMIT_EXCEEDED) }}</span>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning mt-2.5">
<mat-icon>warning</mat-icon>
<div>
<div class="tb-bulk-skipped-header">
<span translate>agent.bulk-skipped-rate-limit</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.RATE_LIMIT_EXCEEDED) }}</span>
</div>
<ul class="tb-bulk-skipped-list">
@for (s of skippedByReasonMap[SkipReason.RATE_LIMIT_EXCEEDED]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.RATE_LIMIT_EXCEEDED)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.RATE_LIMIT_EXCEEDED) } }}
</li>
}
</ul>
</div>
<ul>
@for (s of skippedByReasonMap[SkipReason.RATE_LIMIT_EXCEEDED]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.RATE_LIMIT_EXCEEDED)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.RATE_LIMIT_EXCEEDED) } }}
</li>
}
</ul>
</div>
}
@if (skippedCount(SkipReason.ERROR)) {
<div class="tb-bulk-skipped-block">
<div class="tb-bulk-skipped-header error">
<mat-icon>error_outline</mat-icon>
<span translate>agent.bulk-skipped-error</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.ERROR) }}</span>
<div class="tb-form-hint tb-primary-fill tb-form-hint-error mt-2.5">
<mat-icon>error_outline</mat-icon>
<div>
<div class="tb-bulk-skipped-header">
<span translate>agent.bulk-skipped-error</span>
<span class="tb-bulk-skipped-count">{{ skippedCount(SkipReason.ERROR) }}</span>
</div>
<ul class="tb-bulk-skipped-list">
@for (s of skippedByReasonMap[SkipReason.ERROR]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.ERROR)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.ERROR) } }}
</li>
}
</ul>
</div>
<ul>
@for (s of skippedByReasonMap[SkipReason.ERROR]; track s.applicationId.id) {
<li>
<ng-container *ngTemplateOutlet="skippedRow; context: { s: s }"></ng-container>
</li>
}
@if (skippedExtraCount(SkipReason.ERROR)) {
<li class="tb-bulk-skipped-more">
{{ 'agent.bulk-skipped-more' | translate: { count: skippedExtraCount(SkipReason.ERROR) } }}
</li>
}
</ul>
</div>
}
<ng-template #skippedRow let-s="s">

126
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-bulk-action-dialog.component.scss

@ -29,16 +29,6 @@
overflow-y: auto;
}
.tb-bulk-hint {
margin: 0 0 12px;
padding: 10px 12px;
border-radius: 4px;
background: color-mix(in srgb, var(--tb-primary-500) 6%, transparent);
color: rgba(0, 0, 0, 0.72);
font-size: 13px;
line-height: 1.5;
}
.tb-bulk-summary {
background: rgba(0, 0, 0, 0.03);
border-radius: 4px;
@ -189,82 +179,60 @@
}
}
.tb-bulk-skipped-block {
margin-top: 10px;
padding: 8px 12px;
background: rgba(239, 108, 0, 0.06);
border-radius: 4px;
.tb-bulk-skipped-header {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 500;
color: $agent-color-warning;
margin-bottom: 4px;
mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
&.error {
color: $agent-color-error;
}
.tb-bulk-skipped-count {
margin-left: auto;
background: $agent-divider-light;
color: rgba(0, 0, 0, 0.67);
padding: 0 8px;
border-radius: 10px;
font-size: 11px;
}
}
.tb-bulk-skipped-header {
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
margin-bottom: 4px;
ul {
margin: 0;
padding-left: 24px;
font-size: 12px;
.tb-bulk-skipped-count {
margin-left: auto;
background: $agent-divider-light;
color: rgba(0, 0, 0, 0.67);
line-height: 1.55;
padding: 0 8px;
border-radius: 10px;
font-size: 11px;
}
}
.tb-bulk-skipped-agent {
font-weight: 500;
color: rgba(0, 0, 0, 0.76);
}
.tb-bulk-skipped-sep {
margin: 0 4px;
color: $agent-text-hint;
}
.tb-bulk-skipped-app {
color: var(--tb-primary-500);
cursor: pointer;
text-decoration: none;
// styles.scss adds a blue border-bottom to every <a> (and a darker
// variant on hover/focus). Override both so we get exactly one underline
// on hover via text-decoration.
.tb-bulk-skipped-list {
margin: 0;
padding-left: 24px;
}
.tb-bulk-skipped-agent {
font-weight: 500;
color: rgba(0, 0, 0, 0.76);
}
.tb-bulk-skipped-sep {
margin: 0 4px;
color: $agent-text-hint;
}
.tb-bulk-skipped-app {
color: var(--tb-primary-500);
cursor: pointer;
text-decoration: none;
// styles.scss adds a blue border-bottom to every <a> (and a darker
// variant on hover/focus). Override both so we get exactly one underline
// on hover via text-decoration.
border-bottom: none;
&:hover,
&:focus {
text-decoration: underline;
border-bottom: none;
&:hover,
&:focus {
text-decoration: underline;
border-bottom: none;
}
}
.tb-bulk-skipped-msg {
margin-left: 4px;
color: $agent-text-secondary;
}
.tb-bulk-skipped-more {
list-style: none;
margin-left: -16px;
font-style: italic;
color: $agent-text-secondary;
}
}
.tb-bulk-skipped-msg {
margin-left: 4px;
color: $agent-text-secondary;
}
.tb-bulk-skipped-more {
list-style: none;
margin-left: -16px;
font-style: italic;
color: $agent-text-secondary;
}
.tb-bulk-no-eligible {
display: flex;

14
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-preset-dialog.component.html

@ -74,10 +74,10 @@
</button>
</div>
@if (templatesState === 'loaded' && missingTypes.length) {
<div class="tb-wizard-hint warn">
<mat-icon class="hint-icon">warning_amber</mat-icon>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning mb-3 last:mb-0">
<mat-icon>warning</mat-icon>
<div>
<div class="hint-body">{{ 'agent.preset-templates-load-failed' | translate: { types: missingTypesLabel } }}</div>
<div>{{ 'agent.preset-templates-load-failed' | translate: { types: missingTypesLabel } }}</div>
<button mat-button color="primary" type="button" (click)="retryTemplates()">
{{ 'action.retry' | translate }}
</button>
@ -85,11 +85,11 @@
</div>
}
@if (selectedTile) {
<div class="tb-wizard-hint">
<mat-icon class="hint-icon">help_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-3 last:mb-0">
<mat-icon>info_outline</mat-icon>
<div>
<div class="hint-title">{{ 'agent.preset-summary-title' | translate: { label: (selectedTile.labelKey | translate) } }}</div>
<div class="hint-body">{{ summaryBody }}</div>
<div class="font-medium">{{ 'agent.preset-summary-title' | translate: { label: (selectedTile.labelKey | translate) } }}</div>
<div>{{ summaryBody }}</div>
</div>
</div>
}

45
ui-ngx/src/app/modules/home/pages/agent/dialog/agent-profile-preset-dialog.component.scss

@ -181,51 +181,6 @@ tb-agent-profile-wizard {
}
}
.tb-wizard-hint {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 16px;
margin: 0 0 12px;
background: rgba(0, 0, 0, 0.04);
border-radius: 4px;
color: rgba(0, 0, 0, 0.6);
font-size: 13px;
line-height: 1.5;
&:last-child {
margin-bottom: 0;
}
.hint-icon {
flex-shrink: 0;
font-size: 20px;
width: 20px;
height: 20px;
color: $agent-text-hint;
}
> div {
min-width: 0;
flex: 1 1 auto;
overflow-wrap: anywhere;
}
.hint-title {
font-weight: 500;
color: $agent-text-primary;
margin-bottom: 2px;
}
&.warn {
background: $agent-warning-surface;
.hint-icon {
color: $agent-color-warning;
}
}
}
.tb-preset-dialog-footer {
display: flex;
align-items: center;

8
ui-ngx/src/app/modules/home/pages/agent/wizard/agent-app-profile-wizard.component.html

@ -108,8 +108,8 @@
}
@if (selectedType === 'EDGE' || selectedType === 'GATEWAY') {
<div class="tb-app-compose-hint">
<mat-icon class="tb-app-compose-hint-icon">info_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-profile-compose-creds-hint</span>
</div>
}
@ -177,8 +177,8 @@
}
</div>
<div class="info-box">
<mat-icon>info</mat-icon>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span translate>agent.app-profile-wizard-confirm-info</span>
</div>
</div>

4
ui-ngx/src/app/modules/home/pages/agent/wizard/agent-app-profile-wizard.component.scss

@ -42,8 +42,4 @@
flex-direction: column;
gap: 16px;
}
.tb-app-compose-hint {
margin-bottom: -16px;
}
}

22
ui-ngx/src/app/modules/home/pages/agent/wizard/agent-profile-wizard.component.html

@ -46,15 +46,15 @@
}
</mat-select>
</mat-form-field>
<div class="tb-wizard-hint">
<mat-icon class="hint-icon">help_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4 mt-1">
<mat-icon>info_outline</mat-icon>
<div>
<div class="hint-title">
<div class="font-medium">
{{ 'agent.provisioning-strategy-label' | translate: {
strategy: agentProvisionTypeTranslationMap.get(step1Form.get('provisionType').value) | translate
} }}
</div>
<div class="hint-body">
<div>
{{ agentProvisionTypeDescriptionMap.get(step1Form.get('provisionType').value) | translate }}
</div>
</div>
@ -64,20 +64,20 @@
<mat-step [label]="'agent.add-profile-step-app-profiles' | translate">
<form [formGroup]="step2Form" autocomplete="off">
<div class="tb-wizard-hint">
<mat-icon class="hint-icon">help_outline</mat-icon>
<div class="tb-form-hint tb-primary-fill mb-4 mt-1">
<mat-icon>info_outline</mat-icon>
<div>
<div class="hint-title">{{ 'agent.add-profile-app-profiles-hint-title' | translate }}</div>
<div class="hint-body">
<div class="font-medium">{{ 'agent.add-profile-app-profiles-hint-title' | translate }}</div>
<div>
{{ 'agent.add-profile-app-profiles-hint' | translate: { profileName: step1Form.get('name').value } }}
</div>
</div>
</div>
@if (assignmentsLoadState === 'failed') {
<div class="tb-wizard-hint">
<mat-icon class="hint-icon">warning_amber</mat-icon>
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning mb-4 mt-1">
<mat-icon>warning</mat-icon>
<div>
<div class="hint-body">{{ 'agent.add-profile-assignments-load-failed' | translate }}</div>
<div>{{ 'agent.add-profile-assignments-load-failed' | translate }}</div>
<button mat-button color="primary" type="button" (click)="loadAssignedAppProfiles()">
{{ 'action.retry' | translate }}
</button>

45
ui-ngx/src/app/modules/home/pages/agent/wizard/agent-profile-wizard.component.scss

@ -61,49 +61,4 @@
}
}
}
.tb-wizard-hint {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 12px 16px;
margin: 4px 0 16px;
background: rgba(0, 0, 0, 0.04);
border-radius: 4px;
color: rgba(0, 0, 0, 0.6);
font-size: 13px;
line-height: 1.5;
.hint-icon {
flex-shrink: 0;
font-size: 20px;
width: 20px;
height: 20px;
color: $agent-text-hint;
}
> div {
min-width: 0;
flex: 1 1 auto;
overflow-wrap: anywhere;
}
div, p, span {
font-size: inherit;
line-height: inherit;
}
.hint-title {
font-weight: 500;
color: $agent-text-primary;
margin-bottom: 2px;
font-size: inherit;
line-height: inherit;
}
.hint-body {
font-size: inherit;
line-height: inherit;
}
}
}

4
ui-ngx/src/app/modules/home/pages/ai-solution-creator/solution-info/issues-popover.component.scss

@ -36,7 +36,7 @@
letter-spacing: 0.04em;
&.section-error {
color: #D12730;
color: var(--tb-crit);
}
&.section-warn {
@ -69,7 +69,7 @@
}
&.error .severity-icon {
color: #D12730;
color: var(--tb-crit);
}
&.warn .severity-icon {

8
ui-ngx/src/app/modules/home/pages/ai-solution-creator/solution-info/solution-info-dialog.component.scss

@ -56,7 +56,7 @@
padding: 4px 12px !important;
&.warn {
background-color: rgba(250, 164, 5, 0.12);
background-color: color-mix(in srgb, var(--tb-warning) 12%, transparent);
color: #c76a00 !important;
::ng-deep .mat-badge-content {
@ -66,11 +66,11 @@
}
&.error {
background-color: rgba(209, 39, 48, 0.08);
color: #D12730 !important;
background-color: color-mix(in srgb, var(--tb-crit) 8%, transparent);
color: var(--tb-crit) !important;
::ng-deep .mat-badge-content {
background-color: #D12730;
background-color: var(--tb-crit);
color: #fff;
}
}

6
ui-ngx/src/app/modules/home/pages/custom-translation/translation-map-table.component.scss

@ -43,7 +43,7 @@
}
&.untranslated {
background: #D12730;
background: var(--tb-crit);
}
&.customized {
@ -109,9 +109,9 @@
}
&.untranslated {
background: rgba(209, 39, 48, 0.04);
background: color-mix(in srgb, var(--tb-crit) 4%, transparent);
&:hover {
background: rgba(209, 39, 48, 0.08);
background: color-mix(in srgb, var(--tb-crit) 8%, transparent);
}
}

5
ui-ngx/src/app/modules/home/pages/dashboard/make-dashboard-public-dialog.component.html

@ -34,7 +34,10 @@
<mat-icon svgIcon="mdi:clipboard-arrow-left"></mat-icon>
</button>
</div>
<div class="tb-notice" innerHTML="{{'dashboard.public-dashboard-notice' | translate}}"></div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span innerHTML="{{'dashboard.public-dashboard-notice' | translate}}"></span>
</div>
<tb-social-share-panel style="padding-top: 15px;"
shareTitle="{{ 'dashboard.socialshare-title' | translate:{dashboardTitle: dashboard.title} }}"
shareText="{{ 'dashboard.socialshare-text' | translate:{dashboardTitle: dashboard.title} }}"

5
ui-ngx/src/app/modules/home/pages/dashboard/public-dashboard-link.dialog.component.html

@ -35,7 +35,10 @@
<mat-icon svgIcon="mdi:clipboard-arrow-left"></mat-icon>
</button>
</div>
<div class="tb-notice" innerHTML="{{'dashboard.public-dashboard-link-notice' | translate}}"></div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span innerHTML="{{'dashboard.public-dashboard-link-notice' | translate}}"></span>
</div>
<tb-social-share-panel style="padding-top: 15px;"
shareTitle="{{ 'dashboard.socialshare-title' | translate:{dashboardTitle: dashboard.title} }}"
shareText="{{ 'dashboard.socialshare-text' | translate:{dashboardTitle: dashboard.title} }}"

14
ui-ngx/src/app/modules/home/pages/device/device-check-connectivity-dialog.component.scss

@ -36,18 +36,8 @@
font-size: 14px;
&.inactive {
color: #d12730;
background-color: rgba(209, 39, 48, 0.08);
}
}
.tb-hint-instruction {
border-radius: 6px;
background-color: rgba(48, 86, 128, 0.04);
padding: 6px 16px;
.content {
vertical-align: middle;
color: var(--tb-crit);
background-color: color-mix(in srgb, var(--tb-crit) 8%, transparent);
}
}

4
ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.html

@ -24,8 +24,8 @@
{{ 'agent.deploy-via-agent' | translate }}
</ng-template>
<ng-template matTabContent>
<div class="tb-agent-tab-desc">
<mat-icon>auto_awesome</mat-icon>
<div class="tb-form-hint tb-primary-fill mt-4 mb-1">
<mat-icon>info_outline</mat-icon>
<span class="flex-1" translate>agent.deploy-via-agent-desc</span>
<div tb-help="agentEdgeInstall"></div>
</div>

21
ui-ngx/src/app/modules/home/pages/edge/edge-instructions-dialog.component.scss

@ -117,27 +117,6 @@
margin-right: 8px;
}
.tb-agent-tab-desc {
display: flex;
align-items: flex-start;
gap: 10px;
margin: 16px 0 4px;
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: rgba(0, 0, 0, 0.76);
> mat-icon {
flex-shrink: 0;
color: var(--tb-primary-500);
font-size: 20px;
width: 20px;
height: 20px;
}
}
.tb-form-panel.tb-tab-body {
padding: 16px 0 0;
}

5
ui-ngx/src/app/modules/home/pages/integration/integration.component.html

@ -32,7 +32,10 @@
<form [formGroup]="entityForm" class="mat-padding" tb-toast toastTarget="integrationRoot">
<fieldset [disabled]="(isLoading$ | async)">
@if (isEdgeTemplate) {
<div translate class="tb-hint tb-hint-edge">integration.edge-placeholder-hint</div>
<div class="tb-form-hint tb-primary-fill mb-2">
<mat-icon>info_outline</mat-icon>
<span translate>integration.edge-placeholder-hint</span>
</div>
}
<div class="flex flex-row xs:flex-col gt-xs:gap-2">
<div class="flex flex-1 flex-row xs:flex-col gt-xs:gap-2">

10
ui-ngx/src/app/modules/home/pages/integration/integration.component.scss

@ -35,16 +35,6 @@
margin-top: 16px;
}
}
.tb-hint-edge {
border-radius: 6px;
background-color: rgba(48, 86, 128, 0.04);
line-height: 16px;
letter-spacing: 0.25px;
margin-bottom: 8px;
padding: 8px 12px;
color: rgba(0, 0, 0, 0.54);
}
}
:host ::ng-deep {

4
ui-ngx/src/app/modules/home/pages/mobile/qr-code-widget/mobile-qr-code-widget-settings.component.html

@ -28,9 +28,9 @@
</mat-slide-toggle>
</div>
@if (!mobileAppSettingsForm.get('useSystemSettings').value && !setBaseURL) {
<div class="tb-form-hint flex items-center gap-2">
<div class="tb-form-hint tb-primary-fill tb-form-hint-warning">
<mat-icon>warning</mat-icon>
<span class="flex-1">
<span>
{{'admin.mobile-app.warning-not-set-white-labeling' | translate }} <a routerLink="/white-labeling/loginWhiteLabel" translate>admin.mobile-app.base-url</a>
</span>
</div>

14
ui-ngx/src/app/modules/home/pages/mobile/qr-code-widget/mobile-qr-code-widget-settings.component.scss

@ -1,17 +1,5 @@
// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors
// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc.
// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1
:host {
.tb-form-hint {
background-color: #00000008;
border-radius: 4px;
padding: 4px 8px;
.mat-icon {
color: #FAA405;
}
}
}
// SPDX-License-Identifier: Apache-2.0
.tb-qrcode-preview {
background-color: rgba(0, 0, 0, 0.04);
box-shadow: none;

11
ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss

@ -56,17 +56,6 @@
padding: 0 0 8px;
}
.tb-hint-available-params {
border-radius: 6px;
background-color: rgba(48, 86, 128, 0.04);
margin-bottom: 8px;
padding: 8px 16px;
.content {
vertical-align: middle;
}
}
.delivery-title {
display: flex;
flex-direction: row;

20
ui-ngx/src/app/modules/home/pages/notification/template/configuration/notification-template-configuration.component.html

@ -1,18 +1,22 @@
<!--
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
-->
<section class="tb-template-header">
<div class="tb-form-panel-title" translate>notification.customize-messages</div>
<div class="tb-form-panel-hint tb-hint-available-params">
<span class="content">{{ 'notification.input-fields-support-templatization' | translate }}</span>
<span tb-help-popup="{{ NotificationTemplateTypeTranslateMap.get(notificationType).helpId }}"
tb-help-popup-placement="bottom"
trigger-style="letter-spacing:0.25px;font-size:12px;"
[tb-help-popup-style]="{maxWidth: '800px'}"
trigger-text="{{ 'notification.see-documentation' | translate }}"></span>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>
<span class="content">{{ 'notification.input-fields-support-templatization' | translate }}</span>
<span tb-help-popup="{{ NotificationTemplateTypeTranslateMap.get(notificationType).helpId }}"
tb-help-popup-placement="bottom"
trigger-style="letter-spacing:0.25px;font-size:12px;"
[tb-help-popup-style]="{maxWidth: '800px'}"
trigger-text="{{ 'notification.see-documentation' | translate }}"></span>
</span>
</div>
</section>
<section [formGroup]="templateConfigurationForm" class="tb-form-panel no-border no-padding">

8
ui-ngx/src/app/modules/home/pages/notification/template/configuration/notification-template-configuration.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 {
.tb-template-header {
position: sticky;
@ -8,10 +9,7 @@
padding-bottom: 12px;
background-color: var(--mat-dialog-container-color, white);
.tb-hint-available-params {
color: rgba(0, 0, 0, 0.54);
letter-spacing: 0.4px;
.tb-form-hint {
.content {
vertical-align: middle;
}

6
ui-ngx/src/app/modules/home/pages/task-manager/task-info-panel.component.scss

@ -40,7 +40,7 @@
line-height: 16px;
text-align: center;
mat-icon {
color: #D12730;
color: var(--tb-crit);
}
}
@ -56,7 +56,7 @@
}
.failed {
color: #D12730
color: var(--tb-crit)
}
&.info {
@ -69,7 +69,7 @@
.task-result-bg {
background: rgba(0, 0, 0, 0.04);
.warn {
color: #FAA405;
color: var(--tb-warning);
}
}

8
ui-ngx/src/app/shared/components/time/aggregation/aggregation-options-config-panel.component.html

@ -1,12 +1,16 @@
<!--
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
-->
<form [formGroup]="aggregationOptionsConfigForm" class="tb-aggregation-options-form tb-form-panel no-border">
<div class="tb-form-panel-title">{{ 'timewindow.edit-aggregation-functions-list' | translate }}</div>
<div class="tb-form-hint tb-primary-fill">{{ 'timewindow.edit-aggregation-functions-list-hint' | translate }}</div>
<div class="tb-form-hint tb-primary-fill">
<mat-icon>info_outline</mat-icon>
<span>{{ 'timewindow.edit-aggregation-functions-list-hint' | translate }}</span>
</div>
<div class="tb-form-table no-gap no-padding">
<div class="tb-form-table-header">
<div class="tb-form-table-header-cell">{{"timewindow.allowed-aggregation-functions" | translate }}</div>

6
ui-ngx/src/app/shared/components/time/interval-options-config-panel.component.html

@ -1,14 +1,16 @@
<!--
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
-->
<form [formGroup]="intervalOptionsConfigForm" class="tb-interval-options-form tb-form-panel no-border"
[style]="aggregation ? {maxWidth: '600px'} : {maxWidth: '350px'}">
<div class="tb-form-panel-title">{{ 'timewindow.edit-intervals-list' | translate }}</div>
<div class="tb-form-hint tb-primary-fill">
{{ 'timewindow.edit-intervals-list-hint' | translate }} {{ aggregation ? ('timewindow.edit-grouping-intervals-list-hint' | translate) : '' }}
<mat-icon>info_outline</mat-icon>
<span>{{ 'timewindow.edit-intervals-list-hint' | translate }} {{ aggregation ? ('timewindow.edit-grouping-intervals-list-hint' | translate) : '' }}</span>
</div>
<div class="tb-form-table">
<div class="tb-form-table-header">

1
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -3355,6 +3355,7 @@
"bootstrap-server": "Bootstrap Server",
"lwm2m-server": "LwM2M Server",
"include-bootstrap-server": "Include Bootstrap Server updates",
"transport-run-without-bootstrap-server": "LwM2M transport was run without bootstrap server",
"bootstrap-update-title": "You already have configured Bootstrap Server. Are you sure you want to exclude the updates?",
"bootstrap-update-text": "Be careful, after the confirmation the Bootstrap Server configuration data will become unrecoverable.",
"server-host": "Host",

21
ui-ngx/src/form.scss

@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc.
// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1
@import './scss/constants';
@import './scss/mixins';
@mixin form-row-column() {
flex-direction: column;
@ -186,6 +187,26 @@
color: rgba(0, 0, 0, 0.6);
white-space: normal;
border-radius: 6px;
&.tb-primary-fill:has(> .mat-icon) {
display: flex;
align-items: flex-start;
gap: 8px;
> .mat-icon {
flex-shrink: 0;
@include tb-mat-icon-size(20);
color: var(--tb-primary-500);
+ * {
flex: 1;
min-width: 0;
}
}
&.tb-form-hint-warning > .mat-icon {
color: var(--tb-caution);
}
&.tb-form-hint-error > .mat-icon {
color: var(--tb-crit);
}
}
}
.tb-form-row {
height: 100%;

7
ui-ngx/src/styles.scss

@ -258,13 +258,6 @@ pre.tb-highlight {
}
}
.tb-notice {
padding: 15px;
font-size: 16px;
background-color: #f7f7f7;
border: 1px solid #ccc;
}
.ace_editor {
font-size: 16px !important;
letter-spacing: normal;

1
ui-ngx/src/theme/theme-constants.scss

@ -16,6 +16,7 @@
--tb-commercial: #00695c;
--tb-noncommercial: #1560b4;
--tb-development: #f36900;
--tb-warning: #FAA405;
--tb-caution: #b26500;
--tb-caution-tint: rgb(255 167 38 / 0.16);
--tb-crit: #D12730;

Loading…
Cancel
Save