6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
- import { AfterViewInit , ElementRef , NgZone , OnDestroy } from '@angular/core' ;
9
+ import { AfterViewInit , Directive , ElementRef , NgZone , OnDestroy } from '@angular/core' ;
10
10
import { Directionality } from '@angular/cdk/bidi' ;
11
11
import { fromEvent , merge , ReplaySubject } from 'rxjs' ;
12
12
import { filter , map , mapTo , pairwise , startWith , take , takeUntil } from 'rxjs/operators' ;
@@ -26,14 +26,15 @@ let nextId = 0;
26
26
* Base class for ColumnResize directives which attach to mat-table elements to
27
27
* provide common events and services for column resizing.
28
28
*/
29
+ @Directive ( )
29
30
export abstract class ColumnResize implements AfterViewInit , OnDestroy {
30
31
protected readonly destroyed = new ReplaySubject < void > ( ) ;
31
32
32
33
/* Publicly accessible interface for triggering and being notified of resizes. */
33
34
abstract readonly columnResizeNotifier : ColumnResizeNotifier ;
34
35
35
36
abstract readonly directionality : Directionality ;
36
- protected abstract readonly elementRef : ElementRef ;
37
+ protected abstract readonly elementRef : ElementRef < HTMLElement > ;
37
38
protected abstract readonly eventDispatcher : HeaderRowEventDispatcher ;
38
39
protected abstract readonly ngZone : NgZone ;
39
40
protected abstract readonly notifier : ColumnResizeNotifierSource ;
0 commit comments