From 81c17da0991256bbfd8fe95ed1f6fb920ab5df63 Mon Sep 17 00:00:00 2001 From: jacekpluta <73617938+jacekpluta@users.noreply.github.com> Date: Wed, 31 Jan 2024 08:41:20 +0100 Subject: [PATCH] [ACS-6565] ADW - Document List View Header - UX Bugs (#9269) --- .../search-filter-container.component.ts | 13 +++++++++- .../datatable/datatable.component.html | 25 +++++++++--------- .../datatable/datatable.component.scss | 26 +++++++++++++++---- .../datatable/datatable.component.ts | 8 ++++-- lib/core/src/lib/i18n/en.json | 3 ++- 5 files changed, 54 insertions(+), 21 deletions(-) diff --git a/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.ts b/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.ts index e86ab10bb8..55adb6cea8 100644 --- a/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.ts +++ b/lib/content-services/src/lib/search/components/search-filter-container/search-filter-container.component.ts @@ -15,7 +15,18 @@ * limitations under the License. */ -import { Component, Input, Output, OnInit, EventEmitter, ViewEncapsulation, ViewChild, Inject, OnDestroy, ElementRef } from '@angular/core'; +import { + Component, + Input, + Output, + OnInit, + EventEmitter, + ViewEncapsulation, + ViewChild, + Inject, + OnDestroy, + ElementRef +} from '@angular/core'; import { ConfigurableFocusTrapFactory, ConfigurableFocusTrap } from '@angular/cdk/a11y'; import { DataColumn, TranslationService } from '@alfresco/adf-core'; import { SearchWidgetContainerComponent } from '../search-widget-container/search-widget-container.component'; 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 0c93039d72..cfc1338b7f 100644 --- a/lib/core/src/lib/datatable/components/datatable/datatable.component.html +++ b/lib/core/src/lib/datatable/components/datatable/datatable.component.html @@ -59,7 +59,7 @@ #resizableElement="adf-resizable" [coverPadding]="10" (resizing)="onResizing($event, columnIndex)" - (resizeStart)="isResizing = true" + (resizeStart)="resizingColumnIndex = columnIndex" (resizeEnd)="onResizingEnd()" [attr.data-automation-id]="'auto_header_content_id_' + col.key" class="adf-datatable-cell-header-content" @@ -68,12 +68,6 @@ !isDraggingHeaderColumn && !isResizing && col.sortable}" > - - {{col.title | translate}} @@ -88,15 +82,22 @@ - - + + + +
@@ -126,13 +127,13 @@ - = 0; + } } export interface DataTableDropEvent { diff --git a/lib/core/src/lib/i18n/en.json b/lib/core/src/lib/i18n/en.json index e92b8558d4..eec43520ae 100644 --- a/lib/core/src/lib/i18n/en.json +++ b/lib/core/src/lib/i18n/en.json @@ -308,7 +308,8 @@ } }, "CONTENT-ACTIONS": { - "TOOLTIP": "Content actions" + "TOOLTIP": "Content actions", + "SELECT_COLUMNS": "Select columns" }, "ACCESSIBILITY": { "ACTIONS": "Actions",