import { Directive , ElementRef } from '@angular/core' ; import { CanDisable , mixinDisabled } from '@sbb-esta/angular/core' ; const _SbbTabLabelWrapperMixinBase = mixinDisabled ( class { } ) ; docs-private @ Directive ( { selector : '[sbbTabLabelWrapper]' , inputs : [ 'disabled' ] , host : { '[class.sbb-tab-disabled]' : 'disabled' , '[attr.aria-disabled]' : '!!disabled' , } , } ) export class SbbTabLabelWrapper extends _SbbTabLabelWrapperMixinBase 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 ; } }