@@ -10,7 +10,6 @@ import { IForOfState } from '../../directives/for-of/for_of.directive';
1010import { IgxColumnComponent } from '../columns/column.component' ;
1111import { IFilteringOperation } from '../../data-operations/filtering-condition' ;
1212import { GridBaseAPIService } from '../api.service' ;
13- import { IColumnVisibilityChangedEventArgs } from '../grid' ;
1413import { IColumnResizeEventArgs } from '../common/events' ;
1514import { GridType } from '../common/grid.interface' ;
1615import { IgxDatePipeComponent } from '../common/pipes' ;
@@ -20,7 +19,6 @@ import { useAnimation } from '@angular/animations';
2019import { fadeIn , fadeOut } from '../../animations/main' ;
2120import { ExcelStylePositionStrategy } from './excel-style/excel-style-position-strategy' ;
2221import { AbsoluteScrollStrategy } from '../../services/overlay/scroll/absolute-scroll-strategy' ;
23- import { IgxGridExcelStyleFilteringComponent } from './excel-style/grid.excel-style-filtering.component' ;
2422
2523const FILTERING_ICONS_FONT_SET = 'filtering-icons' ;
2624
@@ -69,7 +67,7 @@ export class IgxFilteringService implements OnDestroy {
6967 this . destroy$ . complete ( ) ;
7068 }
7169
72- public toggleFilterDropdown ( element , column ) {
70+ public toggleFilterDropdown ( element , column , classRef ) {
7371 if ( ! this . _componentOverlayId || ( this . column && this . column . field !== column . field ) ) {
7472 this . column = column ;
7573 const filterIcon = this . column . filteringExpressionsTree ? 'igx-excel-filter__icon--filtered' : 'igx-excel-filter__icon' ;
@@ -78,7 +76,7 @@ export class IgxFilteringService implements OnDestroy {
7876 this . _filterMenuOverlaySettings . positionStrategy . settings . target = filterIconTarget ;
7977 this . _filterMenuOverlaySettings . outlet = ( this . grid as any ) . outlet ;
8078 this . _componentOverlayId =
81- this . _overlayService . attach ( IgxGridExcelStyleFilteringComponent , this . _filterMenuOverlaySettings , this . _moduleRef ) ;
79+ this . _overlayService . attach ( classRef , this . _filterMenuOverlaySettings , this . _moduleRef ) ;
8280 this . _overlayService . show ( this . _componentOverlayId , this . _filterMenuOverlaySettings ) ;
8381 }
8482 }
@@ -98,7 +96,7 @@ export class IgxFilteringService implements OnDestroy {
9896 this . _overlayService . onOpening . pipe (
9997 filter ( ( overlay ) => overlay . id === this . _componentOverlayId ) ,
10098 takeUntil ( this . destroy$ ) ) . subscribe ( ( eventArgs ) => {
101- const instance = eventArgs . componentRef . instance as IgxGridExcelStyleFilteringComponent ;
99+ const instance = eventArgs . componentRef . instance as any ;
102100 if ( instance ) {
103101 instance . initialize ( this . column , this . _overlayService , eventArgs . id ) ;
104102 }
0 commit comments