11import { AfterViewInit , ChangeDetectorRef , Component , ComponentFactoryResolver , ElementRef , Renderer2 , OnDestroy , OnInit , DoCheck , TemplateRef , ViewChild , ViewContainerRef , ViewEncapsulation } from '@angular/core' ;
2- import { AbsoluteScrollStrategy , ConnectedPositioningStrategy , DefaultSortingStrategy , GridColumnDataType , IGX_BUTTON_GROUP_DIRECTIVES , IGX_GRID_DIRECTIVES , IgxColumnComponent , IgxGridComponent , IgxIconModule , IgxOverlayOutletDirective , IgxSelectComponent , IgxSelectModule , IgxSwitchModule , OverlaySettings , SortingDirection } from 'igniteui-angular' ;
3- import { IgcDockManagerLayout , IgcDockManagerPaneType , IgcSplitPane , IgcSplitPaneOrientation } from 'igniteui-dockmanager' ;
2+ import { AbsoluteScrollStrategy , ConnectedPositioningStrategy , DefaultSortingStrategy , GridColumnDataType , IGX_BUTTON_GROUP_DIRECTIVES , IGX_GRID_DIRECTIVES , IgxColumnComponent , IgxGridComponent , IgxIconModule , IgxSelectComponent , IgxSelectModule , IgxSwitchModule , OverlaySettings , SortingDirection } from 'igniteui-angular' ;
3+ import { IgcDockManagerLayout , IgcDockManagerPaneType , IgcSplitPaneOrientation } from 'igniteui-dockmanager' ;
44import { Subject } from 'rxjs' ;
5- import { first , takeUntil } from 'rxjs/operators' ;
5+ import { takeUntil } from 'rxjs/operators' ;
66import { defineCustomElements } from 'igniteui-dockmanager/loader' ;
77
88import { SignalRService } from './signal-r.service' ;
@@ -175,8 +175,7 @@ export class GridDocManagerSampleComponent implements OnInit, OnDestroy, AfterVi
175175 if ( this . isDarkTheme ) {
176176 this . renderer . removeClass ( this . elementRef . nativeElement , 'light-theme' ) ;
177177 this . renderer . addClass ( this . elementRef . nativeElement , 'dark-theme' ) ;
178- }
179- else {
178+ } else {
180179 this . renderer . removeClass ( this . elementRef . nativeElement , 'dark-theme' ) ;
181180 this . renderer . addClass ( this . elementRef . nativeElement , 'light-theme' ) ;
182181 }
@@ -185,9 +184,6 @@ export class GridDocManagerSampleComponent implements OnInit, OnDestroy, AfterVi
185184 public ngAfterViewInit ( ) {
186185 // This 500ms timeout is used as a workaround for StackBlitz ExpressionChangedAfterItHasBeenChecked Error
187186 setTimeout ( ( ) => {
188- const x = ( this . dockManager . nativeElement . getBoundingClientRect ( ) . width / 3 ) ;
189- const y = ( this . dockManager . nativeElement . getBoundingClientRect ( ) . height / 3 ) ;
190-
191187 // this.paneService.initialPanePosition = { x, y };
192188 this . grid2 . selectColumns ( [ 'price' , 'change' , 'changeP' ] ) ;
193189 this . customOverlaySettings . target = this . select . inputGroup . element . nativeElement ;
@@ -237,7 +233,7 @@ export class GridDocManagerSampleComponent implements OnInit, OnDestroy, AfterVi
237233 private changeNegative = ( rowData : any ) : boolean => rowData [ 'changeP' ] < 0 && rowData [ 'changeP' ] > - 1 ;
238234 private changePositive = ( rowData : any ) : boolean => rowData [ 'changeP' ] > 0 && rowData [ 'changeP' ] < 1 ;
239235 private strongPositive = ( rowData : any ) : boolean => rowData [ 'changeP' ] >= 1 ;
240- private strongNegative = ( rowData : any , key : string ) : boolean => rowData [ 'changeP' ] <= - 1 ;
236+ private strongNegative = ( rowData : any , _key : string ) : boolean => rowData [ 'changeP' ] <= - 1 ;
241237
242238 public trends = {
243239 changeNeg : this . changeNegative ,
0 commit comments