@@ -30,6 +30,7 @@ import {
3030 transition ,
3131 trigger ,
3232} from '@angular/animations' ;
33+ import { FocusOrigin } from '@angular/cdk/a11y' ;
3334import {
3435 AfterContentInit ,
3536 ChangeDetectionStrategy ,
@@ -57,6 +58,7 @@ import {
5758 MatCheckbox ,
5859 MatCheckboxChange ,
5960} from '@angular/material/checkbox' ;
61+ import { MatTooltip } from '@angular/material/tooltip' ;
6062import { QueuedAnnouncer } from '@uipath/angular/a11y' ;
6163import { ISuggestValue } from '@uipath/angular/components/ui-suggest' ;
6264
@@ -65,8 +67,8 @@ import { UiGridExpandedRowDirective } from './body/ui-grid-expanded-row.directiv
6567import { UiGridLoadingDirective } from './body/ui-grid-loading.directive' ;
6668import { UiGridNoContentDirective } from './body/ui-grid-no-content.directive' ;
6769import { UiGridRowActionDirective } from './body/ui-grid-row-action.directive' ;
68- import { UiGridRowConfigDirective } from './body/ui-grid-row-config.directive' ;
6970import { UiGridRowCardViewDirective } from './body/ui-grid-row-card-view.directive' ;
71+ import { UiGridRowConfigDirective } from './body/ui-grid-row-config.directive' ;
7072import { UiGridSearchFilterDirective } from './filters/ui-grid-search-filter.directive' ;
7173import { UiGridFooterDirective } from './footer/ui-grid-footer.directive' ;
7274import { UiGridHeaderDirective } from './header/ui-grid-header.directive' ;
@@ -620,6 +622,12 @@ export class UiGridComponent<T extends IGridDataEntry> extends ResizableGrid<T>
620622 */
621623 scrollCompensationWidth = 0 ;
622624
625+ /**
626+ * Whether column header is focused.
627+ *
628+ */
629+ focusedColumnHeader = false ;
630+
623631 /**
624632 * @internal
625633 * @ignore
@@ -1043,6 +1051,18 @@ export class UiGridComponent<T extends IGridDataEntry> extends ResizableGrid<T>
10431051 || ( column . searchableDropdown ?. value != null && ( column . searchableDropdown ?. value as ISuggestValue [ ] ) ?. length !== 0 ) ;
10441052 }
10451053
1054+ triggerColumnHeaderTooltip ( event : FocusOrigin , tooltip : MatTooltip ) {
1055+ if ( event === 'keyboard' ) {
1056+ this . focusedColumnHeader = true ;
1057+ tooltip . show ( ) ;
1058+ }
1059+ }
1060+
1061+ hideColumnHeaderTooltip ( tooltip : MatTooltip ) {
1062+ tooltip . hide ( ) ;
1063+ this . focusedColumnHeader = false ;
1064+ }
1065+
10461066 private _announceGridHeaderActions ( ) {
10471067 this . _queuedAnnouncer . enqueue ( this . intl . gridHeaderActionsNotice ) ;
10481068 }
0 commit comments