license import { MDCFoundation } from '@material/base/foundation' ; import { MDCTabIndicatorAdapter } from './adapter' ; import { cssClasses , strings } from './constants' ; export abstract class MDCTabIndicatorFoundation extends MDCFoundation < MDCTabIndicatorAdapter > { static override get cssClasses ( ) { return cssClasses ; } static override get strings ( ) { return strings ; } static override get defaultAdapter ( ) : MDCTabIndicatorAdapter { return { addClass : ( ) => undefined , removeClass : ( ) => undefined , computeContentClientRect : ( ) => ( { top : 0 , right : 0 , bottom : 0 , left : 0 , width : 0 , height : 0 } as any ) , setContentStyleProperty : ( ) => undefined , } ; } constructor ( adapter ? ) { super ( { ... MDCTabIndicatorFoundation . defaultAdapter , ... adapter } ) ; } computeContentClientRect ( ) { return this . adapter . computeContentClientRect ( ) ; } abstract activate ( previousIndicatorClientRect ? ) ; abstract deactivate ( ) ; } export default MDCTabIndicatorFoundation ;