From 70a38aecdaeb7b730674b66d90727d5101acb571 Mon Sep 17 00:00:00 2001 From: Diogo Bastos <50139916+DiogoABastos@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:43:44 +0000 Subject: [PATCH] AAE-28454 Improve datatable actions display (#10445) * AAE-28454 Improve datatable actions display * AAE-28454 Improve datatable style --- .../datatable/datatable.component.html | 170 +++++++++--------- .../datatable/datatable.component.scss | 6 + .../datatable/datatable.component.spec.ts | 91 ++++++++++ .../datatable/datatable.component.ts | 4 + .../process-list-cloud.component.html | 1 + .../process-list-cloud.component.ts | 4 + 6 files changed, 194 insertions(+), 82 deletions(-) diff --git a/lib/core/src/lib/datatable/components/datatable/datatable.component.html b/lib/core/src/lib/datatable/components/datatable/datatable.component.html index 29bfe10f403..19b3bf5d209 100644 --- a/lib/core/src/lib/datatable/components/datatable/datatable.component.html +++ b/lib/core/src/lib/datatable/components/datatable/datatable.component.html @@ -31,101 +31,106 @@ {{ 'ADF-DATATABLE.ACCESSIBILITY.SELECT_ALL' | translate }} +
+ class="adf-datatable-cell--{{col.type || 'text'}} {{col.cssClass}} adf-datatable-cell-header adf-datatable-cell-data" + *ngIf="col.title || !showProvidedActions" + [attr.data-automation-id]="'auto_id_' + col.key" + [ngClass]="{ + 'adf-sortable': col.sortable, + 'adf-datatable__cursor--pointer': !isResizing, + 'adf-datatable__header--sorted-asc': isColumnSorted(col, 'asc'), + 'adf-datatable__header--sorted-desc': isColumnSorted(col, 'desc')}" + [ngStyle]="(col.width) && !lastColumn && {'flex': getFlexValue(col)}" + [attr.aria-label]="col.title | translate" + (click)="onColumnHeaderClick(col, $event)" + (keyup.enter)="onColumnHeaderClick(col, $event)" + role="columnheader" + [attr.tabindex]="isHeaderVisible() ? 0 : null" + [attr.aria-sort]="col.sortable ? (getAriaSort(col) | translate) : null" + cdkDrag + cdkDragLockAxis="x" + (cdkDragStarted)="isDraggingHeaderColumn = true" + (cdkDragDropped)="onDropHeaderColumn($event)" + [cdkDragDisabled]="!col.draggable" + (mouseenter)="hoveredHeaderColumnIndex = columnIndex" + (mouseleave)="hoveredHeaderColumnIndex = -1" + adf-drop-zone dropTarget="header" [dropColumn]="col"> -
- - {{col.title | translate}} +
+ + {{col.title | translate}} - - {{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }} - + + {{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }} + - - + + -
- -
+
+ +
- - + + - + - - - -
-
-
-
-
+ + + +
+
+
+
+
+