diff --git a/libs/portal-integration-angular/assets/i18n/de.json b/libs/portal-integration-angular/assets/i18n/de.json index 347f9611..777d55f3 100644 --- a/libs/portal-integration-angular/assets/i18n/de.json +++ b/libs/portal-integration-angular/assets/i18n/de.json @@ -23,7 +23,12 @@ "EMPTY_FILTER_MESSAGE": "Keine Filter gefunden.", "ACTIONS_COLUMN_NAME": "Aktionen", "FILTER_TITLE": "Filter", - "EDITED": "Bearbeitet" + "EDITED": "Bearbeitet", + "ACTIONS": { + "VIEW": "Anzeigen", + "EDIT": "Bearbeiten", + "DELETE": "Löschen" + } }, "OCX_DATA_LIST_GRID": { "EMPTY_RESULT": "Keine Daten gefunden.", diff --git a/libs/portal-integration-angular/assets/i18n/en.json b/libs/portal-integration-angular/assets/i18n/en.json index bd916d9b..9c414bd7 100644 --- a/libs/portal-integration-angular/assets/i18n/en.json +++ b/libs/portal-integration-angular/assets/i18n/en.json @@ -23,7 +23,12 @@ "EMPTY_FILTER_MESSAGE": "No filters found.", "ACTIONS_COLUMN_NAME": "Actions", "FILTER_TITLE": "Filter", - "EDITED": "Edited" + "EDITED": "Edited", + "ACTIONS": { + "VIEW": "View", + "EDIT": "Edit", + "DELETE": "Delete" + } }, "OCX_DATA_LIST_GRID": { "EMPTY_RESULT": "No data found.", diff --git a/libs/portal-integration-angular/src/lib/core/components/data-list-grid/data-list-grid.component.html b/libs/portal-integration-angular/src/lib/core/components/data-list-grid/data-list-grid.component.html index 368fd848..d11064e6 100644 --- a/libs/portal-integration-angular/src/lib/core/components/data-list-grid/data-list-grid.component.html +++ b/libs/portal-integration-angular/src/lib/core/components/data-list-grid/data-list-grid.component.html @@ -80,6 +80,7 @@ pButton class="p-button-rounded p-button-text mb-1 mr-2" title="{{ (viewMenuItemKey || 'OCX_DATA_LIST_GRID.MENU.VIEW') | translate }}" + ariaLabel="{{ (viewMenuItemKey || 'OCX_DATA_LIST_GRID.MENU.VIEW') | translate }}" (click)="onViewRow(item)" *ocxIfPermission="viewPermission" > @@ -92,6 +93,7 @@ icon="pi pi-pencil" pButton title="{{ (editMenuItemKey || 'OCX_DATA_LIST_GRID.MENU.EDIT') | translate }}" + ariaLabel="{{ (editMenuItemKey || 'OCX_DATA_LIST_GRID.MENU.EDIT') | translate }}" (click)="onEditRow(item)" *ocxIfPermission="editPermission" > @@ -104,6 +106,7 @@ class="p-button-rounded p-button-text p-button-danger mb-1 mr-2" pButton title="{{ (deleteMenuItemKey || 'OCX_DATA_LIST_GRID.MENU.DELETE') | translate }}" + ariaLabel="{{ (deleteMenuItemKey || 'OCX_DATA_LIST_GRID.MENU.DELETE') | translate }}" (click)="onDeleteRow(item)" *ocxIfPermission="deletePermission" > @@ -117,6 +120,7 @@ [icon]="action.icon || ''" (click)="action.callback(item)" [title]="action.labelKey ? (action.labelKey | translate) : ''" + [ariaLabel]="action.labelKey ? (action.labelKey | translate) : ''" [disabled]="action.disabled" > diff --git a/libs/portal-integration-angular/src/lib/core/components/data-table/data-table.component.html b/libs/portal-integration-angular/src/lib/core/components/data-table/data-table.component.html index e499c5ab..80e62311 100644 --- a/libs/portal-integration-angular/src/lib/core/components/data-table/data-table.component.html +++ b/libs/portal-integration-angular/src/lib/core/components/data-table/data-table.component.html @@ -85,6 +85,8 @@ *ocxIfPermission="viewPermission" pButton class="p-button-rounded p-button-text" + title="{{ 'OCX_DATA_TABLE.ACTIONS.VIEW' | translate }}" + ariaLabel="{{ 'OCX_DATA_TABLE.ACTIONS.VIEW' | translate }}" icon="pi pi-eye" (click)="onViewRow(rowObject)" > @@ -95,6 +97,8 @@ *ocxIfPermission="editPermission" pButton class="p-button-rounded p-button-text" + title="{{ 'OCX_DATA_TABLE.ACTIONS.EDIT' | translate }}" + ariaLabel="{{ 'OCX_DATA_TABLE.ACTIONS.EDIT' | translate }}" icon="pi pi-pencil" (click)="onEditRow(rowObject)" > @@ -105,6 +109,8 @@ *ocxIfPermission="deletePermission" pButton class="p-button-rounded p-button-text p-button-danger" + title="{{ 'OCX_DATA_TABLE.ACTIONS.DELETE' | translate }}" + ariaLabel="{{ 'OCX_DATA_TABLE.ACTIONS.DELETE' | translate }}" icon="pi pi-trash" (click)="onDeleteRow(rowObject)" > @@ -118,6 +124,7 @@ [icon]="action.icon || ''" (click)="action.callback(rowObject)" [title]="action.labelKey ? (action.labelKey | translate) : ''" + [ariaLabel]="action.labelKey ? (action.labelKey | translate) : ''" [disabled]="action.disabled" > diff --git a/libs/portal-integration-angular/src/lib/core/components/search-header/search-header.component.html b/libs/portal-integration-angular/src/lib/core/components/search-header/search-header.component.html index 52425a77..ca8324c7 100644 --- a/libs/portal-integration-angular/src/lib/core/components/search-header/search-header.component.html +++ b/libs/portal-integration-angular/src/lib/core/components/search-header/search-header.component.html @@ -17,6 +17,8 @@ (onClick)="onResetClicked()" label="{{ 'OCX_SEARCH_HEADER.RESET_BUTTON_TEXT' | translate }}" icon="pi pi-eraser" + ariaLabel="{{ 'OCX_SEARCH_HEADER.RESET_BUTTON_TEXT' | translate }}" + title="{{ 'OCX_SEARCH_HEADER.RESET_BUTTON_TEXT' | translate }}" > @@ -25,6 +27,8 @@ (onClick)="onSearchClicked()" label="{{ 'OCX_SEARCH_HEADER.SEARCH_BUTTON_TEXT' | translate }}" icon="pi pi-search" + ariaLabel="{{ 'OCX_SEARCH_HEADER.SEARCH_BUTTON_TEXT' | translate }}" + title="{{ 'OCX_SEARCH_HEADER.SEARCH_BUTTON_TEXT' | translate }}" >