@@ -25,6 +25,7 @@ import { IColumnVisibilityChangingEventArgs, IPinColumnCancellableEventArgs, IPi
2525import { IgxGridCell } from '../grid-public-cell' ;
2626import { NG_VALIDATORS , Validator } from '@angular/forms' ;
2727import { ColumnPinningPosition , ColumnType , DefaultSortingStrategy , ExpressionsTreeUtil , FilteringExpressionsTree , GridColumnDataType , IColumnEditorOptions , IColumnPipeArgs , IgxBooleanFilteringOperand , IgxDateFilteringOperand , IgxDateTimeFilteringOperand , IgxFilteringOperand , IgxNumberFilteringOperand , IgxStringFilteringOperand , IgxSummaryResult , IgxTimeFilteringOperand , isConstructor , ISortingStrategy , MRLColumnSizeInfo , MRLResizeColumnInfo , PlatformUtil , ɵSize } from 'igniteui-angular/core' ;
28+ import type { IgxColumnLayoutComponent } from './column-layout.component' ;
2829
2930const DEFAULT_DATE_FORMAT = 'mediumDate' ;
3031const DEFAULT_TIME_FORMAT = 'mediumTime' ;
@@ -1525,8 +1526,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
15251526 * ```typescript
15261527 * let visibleColumnIndex = this.column.visibleIndex;
15271528 * ```
1528- *
1529- * @memberof IgxColumnComponent
15301529 */
15311530 public get visibleIndex ( ) : number {
15321531 if ( ! isNaN ( this . _vIndex ) ) {
@@ -1543,7 +1542,8 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
15431542 col = this . allChildren . filter ( c => ! c . columnGroup && ! c . hidden ) [ 0 ] as any ;
15441543 }
15451544 if ( this . columnLayoutChild ) {
1546- return this . parent . childrenVisibleIndexes . find ( x => x . column === this ) . index ;
1545+ // TODO: Refactor/redo/remove this
1546+ return ( this . parent as IgxColumnLayoutComponent ) . childrenVisibleIndexes . find ( x => x . column === this ) . index ;
15471547 }
15481548
15491549 if ( ! this . pinned ) {
@@ -1668,7 +1668,8 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
16681668 this . _visibleWhenCollapsed = value ;
16691669 this . visibleWhenCollapsedChange . emit ( this . _visibleWhenCollapsed ) ;
16701670 if ( this . parent ) {
1671- this . parent ?. setExpandCollapseState ?.( ) ;
1671+ // TODO: Refactor/redo/remove this
1672+ ( this . parent as IgxColumnLayoutComponent ) ?. setExpandCollapseState ?.( ) ;
16721673 }
16731674 }
16741675
@@ -2197,7 +2198,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
21972198 return [ { target : this , spanUsed : 1 } ] ;
21982199 }
21992200
2200- const columnSized = this . getInitialChildColumnSizes ( this . parent . children ) ;
2201+ const columnSized = this . getInitialChildColumnSizes ( this . parent . children as QueryList < IgxColumnComponent > ) ;
22012202 const targets : MRLResizeColumnInfo [ ] = [ ] ;
22022203 const colEnd = this . colEnd ? this . colEnd : this . colStart + 1 ;
22032204
0 commit comments