license import { Directive , ElementRef } from '@angular/core' ; import { CanDisable , CanDisableCtor , mixinDisabled } from '@angular/material/core' ; docs-private export class MatTabLabelWrapperBase { } export const _MatTabLabelWrapperMixinBase = mixinDisabled ( MatTabLabelWrapperBase ) ; docs-private @ Directive ( { selector : '[matTabLabelWrapper]' , inputs : [ 'disabled' ] , host : { '[class.mat-tab-disabled]' : 'disabled' , '[attr.aria-disabled]' : '!!disabled' , } } ) export class MatTabLabelWrapper extends _MatTabLabelWrapperMixinBase implements CanDisable { constructor ( public elementRef ) { super ( ) ; } /** Sets focus on the wrapper element */ focus ( ) { this . elementRef . nativeElement . focus ( ) ; } getOffsetLeft ( ) { return this . elementRef . nativeElement . offsetLeft ; } getOffsetWidth ( ) { return this . elementRef . nativeElement . offsetWidth ; } }