diff --git a/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.html b/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.html index ac2bb73d05..40cb2cf406 100644 --- a/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.html +++ b/ui-ngx/src/app/modules/home/components/alarm/alarm-comment.component.html @@ -36,7 +36,7 @@ (click)="changeSortDirection()" [matTooltip]="getSortDirectionTooltipText()" matTooltipPosition="above"> - + {{ getSortDirectionIcon() }} @@ -132,7 +132,7 @@ matTooltip="{{ actionDescriptor.name }}" matTooltipPosition="above" (click)="actionDescriptor.onAction($event, dataSource.selection.selected)"> - {{actionDescriptor.icon}} + {{actionDescriptor.icon}} @@ -181,7 +181,7 @@ tooltipText="{{ column.actionCell.nameFunction ? column.actionCell.nameFunction(entity) : column.actionCell.name }}" tooltipPosition="above" [icon]="column.actionCell.icon" - [mdiIcon]="column.actionCell.mdiIcon" [style]="column.actionCell.style"> + [style]="column.actionCell.style"> @@ -190,9 +190,9 @@ matTooltip="{{ column.actionCell.nameFunction ? column.actionCell.nameFunction(entity) : column.actionCell.name }}" matTooltipPosition="above" (click)="column.actionCell.onAction($event, entity)"> - + {{column.actionCell.icon}} - + @@ -208,8 +208,9 @@ matTooltip="{{ column.actionDescriptor.nameFunction ? column.actionDescriptor.nameFunction(entity) : column.actionDescriptor.name }}" matTooltipPosition="above" (click)="column.actionDescriptor.onAction($event, entity)"> - - {{column.actionDescriptor.icon}} + + {{column.actionDescriptor.icon}} + @@ -228,9 +229,9 @@ matTooltip="{{ actionDescriptor.nameFunction ? actionDescriptor.nameFunction(entity) : actionDescriptor.name }}" matTooltipPosition="above" (click)="actionDescriptor.onAction($event, entity)"> - - {{actionDescriptor.icon}} + + {{actionDescriptor.iconFunction ? actionDescriptor.iconFunction(entity) : actionDescriptor.icon}} +
@@ -244,9 +245,9 @@ [disabled]="isLoading$ | async" [fxShow]="actionDescriptor.isEnabled(entity)" (click)="actionDescriptor.onAction($event, entity)"> - - {{actionDescriptor.icon}} + + {{actionDescriptor.iconFunction ? actionDescriptor.iconFunction(entity) : actionDescriptor.icon}} + {{ actionDescriptor.nameFunction ? actionDescriptor.nameFunction(entity) : actionDescriptor.name }} diff --git a/ui-ngx/src/app/modules/home/components/filter/filter-predicate-value.component.html b/ui-ngx/src/app/modules/home/components/filter/filter-predicate-value.component.html index d1cd61f579..3f7da38fa6 100644 --- a/ui-ngx/src/app/modules/home/components/filter/filter-predicate-value.component.html +++ b/ui-ngx/src/app/modules/home/components/filter/filter-predicate-value.component.html @@ -81,6 +81,6 @@ matTooltip="{{ (dynamicMode ? 'filter.switch-to-default-value' : 'filter.switch-to-dynamic-value') | translate }}" matTooltipPosition="above" (click)="dynamicMode = !dynamicMode"> - + {{ dynamicMode ? 'mdi:numeric' : 'mdi:variable' }}
diff --git a/ui-ngx/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.html b/ui-ngx/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.html index d4d8644aad..6fe2c7a101 100644 --- a/ui-ngx/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.html +++ b/ui-ngx/src/app/modules/home/components/profile/alarm/alarm-duration-predicate-value.component.html @@ -71,6 +71,6 @@ matTooltip="{{ (dynamicMode ? 'filter.switch-to-default-value' : 'filter.switch-to-dynamic-value') | translate }}" matTooltipPosition="above" (click)="dynamicMode = !dynamicMode"> - + {{ dynamicMode ? 'mdi:numeric' : 'mdi:variable' }} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html index 5228fff081..30671fb04b 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/alarm/alarms-table-widget.component.html @@ -148,7 +148,7 @@ diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/entity/entities-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/entity/entities-table-widget.component.html index c18a6bab14..f0a248f341 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/entity/entities-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/entity/entities-table-widget.component.html @@ -63,7 +63,7 @@ matTooltip="{{ actionDescriptor.displayName }}" matTooltipPosition="above" (click)="onActionButtonClick($event, entity, actionDescriptor)"> - {{actionDescriptor.icon}} + {{actionDescriptor.icon}} @@ -78,7 +78,7 @@ diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html index b52e3eaffd..9e87b0f0ff 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html @@ -76,7 +76,7 @@ matTooltip="{{ actionDescriptor.displayName }}" matTooltipPosition="above" (click)="onActionButtonClick($event, row, actionDescriptor)"> - {{actionDescriptor.icon}} + {{actionDescriptor.icon}} @@ -92,7 +92,7 @@ diff --git a/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts b/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts index 614805ede5..78ee9ee7bc 100644 --- a/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts +++ b/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts @@ -57,8 +57,7 @@ export interface CellActionDescriptor> { name: string; nameFunction?: (entity: T) => string; icon?: string; - mdiIcon?: string; - mdiIconFunction?: (entity: T) => string; + iconFunction?: (entity: T) => string; style?: any; isEnabled: (entity: T) => boolean; onAction: ($event: MouseEvent, entity: T) => any; diff --git a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html index 926ad64644..571be3d75d 100644 --- a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html +++ b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.html @@ -304,7 +304,7 @@ [copyText]="mailSettings.get('redirectUri').value" tooltipText="{{ 'admin.oauth2.copy-redirect-uri' | translate }}" tooltipPosition="above" - mdiIcon="mdi:clipboard-arrow-left"> + icon="mdi:clipboard-arrow-left"> diff --git a/ui-ngx/src/app/modules/home/pages/admin/oauth2-settings.component.html b/ui-ngx/src/app/modules/home/pages/admin/oauth2-settings.component.html index 7cc06bc4af..61a3dfc848 100644 --- a/ui-ngx/src/app/modules/home/pages/admin/oauth2-settings.component.html +++ b/ui-ngx/src/app/modules/home/pages/admin/oauth2-settings.component.html @@ -100,7 +100,7 @@ [copyText]="redirectURI(domainInfo)" tooltipText="{{ 'admin.oauth2.copy-redirect-uri' | translate }}" tooltipPosition="above" - mdiIcon="mdi:clipboard-arrow-left"> + icon="mdi:clipboard-arrow-left"> @@ -112,7 +112,7 @@ [copyText]="redirectURIMixed(domainInfo)" tooltipText="{{ 'admin.oauth2.copy-redirect-uri' | translate }}" tooltipPosition="above" - mdiIcon="mdi:clipboard-arrow-left"> + icon="mdi:clipboard-arrow-left"> @@ -171,7 +171,7 @@ [copyText]="mobileInfo.get('appSecret').value" tooltipText="{{ 'admin.oauth2.copy-mobile-app-secret' | translate }}" tooltipPosition="above" - mdiIcon="mdi:clipboard-arrow-left"> + icon="mdi:clipboard-arrow-left"> {{ 'admin.oauth2.invalid-mobile-app-secret' | translate }} diff --git a/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-config.resolver.ts index f547f997bd..94f363e878 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/notification/rule/rule-table-config.resolver.ts @@ -95,9 +95,9 @@ export class RuleTableConfigResolver implements Resolve this.translate.instant(entity.enabled ? 'notification.rule-disable' : 'notification.rule-enable'), - mdiIcon: 'mdi:toggle-switch', + icon: 'mdi:toggle-switch', isEnabled: () => true, - mdiIconFunction: (entity) => entity.enabled ? 'mdi:toggle-switch' : 'mdi:toggle-switch-off-outline', + iconFunction: (entity) => entity.enabled ? 'mdi:toggle-switch' : 'mdi:toggle-switch-off-outline', onAction: ($event, entity) => this.toggleEnableMode($event, entity) }, { diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts index 290774b6e9..cc7a5db2ff 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts @@ -107,7 +107,7 @@ export class SentTableConfigResolver implements Resolve> { return [{ name: this.translate.instant('notification.notify-again'), - mdiIcon: 'mdi:repeat-variant', + icon: 'mdi:repeat-variant', isEnabled: (request) => request.status !== NotificationRequestStatus.SCHEDULED, onAction: ($event, entity) => this.createRequest($event, entity) }]; diff --git a/ui-ngx/src/app/modules/home/pages/security/security.component.html b/ui-ngx/src/app/modules/home/pages/security/security.component.html index 45460e086d..22f46843a3 100644 --- a/ui-ngx/src/app/modules/home/pages/security/security.component.html +++ b/ui-ngx/src/app/modules/home/pages/security/security.component.html @@ -86,23 +86,33 @@

security.password-requirement.password-requirements

security.password-requirement.at-least

- + + {{ changePassword.get('newPassword').hasError('notUpperCase') ? 'mdi:circle-small' : 'mdi:check' }} + {{ 'security.password-requirement.uppercase-letter' | translate : {count: passwordPolicy.minimumUppercaseLetters} }}

- + + {{ changePassword.get('newPassword').hasError('notLowerCase') ? 'mdi:circle-small' : 'mdi:check' }} + {{ 'security.password-requirement.lowercase-letter' | translate : {count: passwordPolicy.minimumLowercaseLetters} }}

- + + {{ changePassword.get('newPassword').hasError('notNumeric') ? 'mdi:circle-small' : 'mdi:check' }} + {{ 'security.password-requirement.digit' | translate : {count: passwordPolicy.minimumDigits} }}

- + + {{ changePassword.get('newPassword').hasError('notSpecial') ? 'mdi:circle-small' : 'mdi:check' }} + {{ 'security.password-requirement.special-character' | translate : {count: passwordPolicy.minimumSpecialCharacters} }}

- + + {{ changePassword.get('newPassword').hasError('minLength') ? 'mdi:circle-small' : 'mdi:check' }} + {{ 'security.password-requirement.character' | translate : {count: passwordPolicy.minimumLength} }}

diff --git a/ui-ngx/src/app/modules/home/pages/user/users-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/user/users-table-config.resolver.ts index ec194efcaa..18f590a251 100644 --- a/ui-ngx/src/app/modules/home/pages/user/users-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/user/users-table-config.resolver.ts @@ -146,7 +146,7 @@ export class UsersTableConfigResolver implements Resolve name: this.authority === Authority.TENANT_ADMIN ? this.translate.instant('user.login-as-tenant-admin') : this.translate.instant('user.login-as-customer-user'), - mdiIcon: 'mdi:login', + icon: 'mdi:login', isEnabled: () => true, onAction: ($event, entity) => this.loginAsUser($event, entity) } diff --git a/ui-ngx/src/app/shared/components/button/copy-button.component.html b/ui-ngx/src/app/shared/components/button/copy-button.component.html index 640d467998..285fd85491 100644 --- a/ui-ngx/src/app/shared/components/button/copy-button.component.html +++ b/ui-ngx/src/app/shared/components/button/copy-button.component.html @@ -23,9 +23,9 @@ [matTooltip]="matTooltipText" [matTooltipPosition]="matTooltipPosition" (click)="copy($event)"> - - {{ icon }} - + + {{ icon || mdiIcon }} + done diff --git a/ui-ngx/src/app/shared/components/button/copy-button.component.ts b/ui-ngx/src/app/shared/components/button/copy-button.component.ts index b22cf575c0..0297faa0d0 100644 --- a/ui-ngx/src/app/shared/components/button/copy-button.component.ts +++ b/ui-ngx/src/app/shared/components/button/copy-button.component.ts @@ -39,6 +39,7 @@ export class CopyButtonComponent { @coerceBoolean() disabled = false; + // @deprecated need to use icon input @Input() mdiIcon: string;