@@ -2766,7 +2766,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
27662766 } ) ;
27672767
27682768 this . hideOverlays ( ) ;
2769- const args : IGridScrollEventArgs = { direction : 'horizontal' , event : event , scrollPosition : this . headerContainer . scrollPosition } ;
2769+ const args : IGridScrollEventArgs = { direction : 'horizontal' , event : event , scrollPosition : this . headerContainer . scrollPosition } ;
27702770 this . onScroll . emit ( args ) ;
27712771 }
27722772
@@ -2956,7 +2956,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
29562956 const destructor = takeUntil < any > ( this . destroy$ ) ;
29572957 fromEvent ( this . nativeElement , 'focusout' ) . pipe ( filter ( ( ) => ! ! this . navigation . activeNode ) , destructor ) . subscribe ( ( event ) => {
29582958 if ( ! this . crudService . cell && ! ! this . navigation . activeNode && ( event . target === this . tbody . nativeElement &&
2959- this . navigation . activeNode . row >= 0 && this . navigation . activeNode . row < this . dataView . length )
2959+ this . navigation . activeNode . row >= 0 && this . navigation . activeNode . row < this . dataView . length )
29602960 || ( event . target === this . theadRow . nativeElement && this . navigation . activeNode . row === - 1 )
29612961 || ( event . target === this . tfoot . nativeElement && this . navigation . activeNode . row === this . dataView . length ) ) {
29622962 this . navigation . activeNode = { } as IActiveNode ;
@@ -3111,7 +3111,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
31113111 */
31123112 public generateRowID ( ) : string | number {
31133113 const primaryColumn = this . columnList . find ( col => col . field === this . primaryKey ) ;
3114- const idType = primaryColumn ? primaryColumn . dataType : this . data . length ? typeof ( this . data [ 0 ] [ this . primaryKey ] ) : 'string' ;
3114+ const idType = primaryColumn ? primaryColumn . dataType : this . data . length ? typeof ( this . data [ 0 ] [ this . primaryKey ] ) : 'string' ;
31153115 return idType === 'string' ? uuidv4 ( ) : FAKE_ROW_ID -- ;
31163116 }
31173117
@@ -3699,7 +3699,10 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
36993699 }
37003700
37013701 public getColumnByVisibleIndex ( index : number ) : IgxColumnComponent {
3702- return this . visibleColumns . find ( ( col ) => ! col . columnGroup && ! col . columnLayout && col . visibleIndex === index ) ;
3702+ return this . visibleColumns . find ( ( col ) =>
3703+ ! col . columnGroup && ! col . columnLayout &&
3704+ col . visibleIndex === index
3705+ ) ;
37033706 }
37043707
37053708 /**
@@ -3991,7 +3994,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
39913994 }
39923995
39933996 if ( ! target . pinned && ! column . pinned ) {
3994- this . _reorderColumns ( column , target , pos , this . _unpinnedColumns ) ;
3997+ this . _reorderColumns ( column , target , pos , this . _unpinnedColumns ) ;
39953998 }
39963999
39974000 this . _moveColumns ( column , target , pos ) ;
@@ -4826,8 +4829,8 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
48264829 protected getTheadRowHeight ( ) : number {
48274830 const height = this . getComputedHeight ( this . theadRow . nativeElement ) ;
48284831 return ( ! this . allowFiltering || ( this . allowFiltering && this . filterMode !== FilterMode . quickFilter ) ) ?
4829- height - this . getFilterCellHeight ( ) :
4830- height ;
4832+ height - this . getFilterCellHeight ( ) :
4833+ height ;
48314834 }
48324835
48334836 /**
@@ -4838,7 +4841,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
48384841 if ( this . showToolbar && this . toolbarHtml != null ) {
48394842 const height = this . getComputedHeight ( this . toolbarHtml . nativeElement ) ;
48404843 toolbarHeight = this . toolbarHtml . nativeElement . firstElementChild ?
4841- height : 0 ;
4844+ height : 0 ;
48424845 }
48434846 return toolbarHeight ;
48444847 }
@@ -4851,7 +4854,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
48514854 if ( this . footer ) {
48524855 const height = this . getComputedHeight ( this . footer . nativeElement ) ;
48534856 pagingHeight = this . footer . nativeElement . firstElementChild ?
4854- height : 0 ;
4857+ height : 0 ;
48554858 }
48564859 return pagingHeight ;
48574860 }
@@ -6011,7 +6014,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
60116014 }
60126015
60136016 if ( this . dataView [ rowIndex ] . detailsData ) {
6014- this . navigation . setActiveNode ( { row : rowIndex } ) ;
6017+ this . navigation . setActiveNode ( { row : rowIndex } ) ;
60156018 this . cdr . detectChanges ( ) ;
60166019 }
60176020
@@ -6557,11 +6560,11 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
65576560 }
65586561 if ( commit ) {
65596562 this . onRowAdded . subscribe ( rowData => {
6560- // A check whether the row is in the current view
6561- const index = this . dataView . findIndex ( data => data [ this . primaryKey ] === rowData [ this . primaryKey ] ) ;
6562- const shouldScroll = this . navigation . shouldPerformVerticalScroll ( index , 0 ) ;
6563- const showIndex = shouldScroll ? index : - 1 ;
6564- this . showSnackbarFor ( showIndex ) ;
6563+ // A check whether the row is in the current view
6564+ const index = this . dataView . findIndex ( data => data [ this . primaryKey ] === rowData [ this . primaryKey ] ) ;
6565+ const shouldScroll = this . navigation . shouldPerformVerticalScroll ( index , 0 ) ;
6566+ const showIndex = shouldScroll ? index : - 1 ;
6567+ this . showSnackbarFor ( showIndex ) ;
65656568 } ) ;
65666569 this . gridAPI . submit_add_value ( ) ;
65676570 this . gridAPI . addRowToData ( row . data ) ;
0 commit comments