Skip to content

Commit 5f4b477

Browse files
committed
fix(pivot): fix build cus of circular dependencies
1 parent 86b71cd commit 5f4b477

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

projects/igniteui-angular/src/lib/grids/headers/headers.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export { IgxGridHeaderRowComponent } from './grid-header-row.component';
3737
IgxGridHeaderGroupComponent,
3838
IgxGridHeaderRowComponent,
3939
IgxHeaderGroupWidthPipe,
40+
SortingIndexPipe,
4041
IgxHeaderGroupStylePipe
4142
]
4243
})

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-row-dimension-content.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
Component,
44
Input
55
} from '@angular/core';
6-
import { IgxPivotRowComponent } from './pivot-row.component'
76
import { IgxGridHeaderRowComponent } from '../headers/grid-header-row.component';
7+
import { IgxRowDirective } from '../row.directive';
88

99
/**
1010
*
@@ -25,5 +25,5 @@ export class IgxPivotRowDimensionContentComponent extends IgxGridHeaderRowCompon
2525
* @internal
2626
*/
2727
@Input()
28-
public intRow: IgxPivotRowComponent;
28+
public intRow: IgxRowDirective;
2929
}

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-row-dimension-header-group.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { IGX_GRID_BASE, PivotGridType } from '../common/grid.interface';
55
import { IgxFilteringService } from '../filtering/grid-filtering.service';
66
import { IgxGridHeaderGroupComponent } from '../headers/grid-header-group.component';
77
import { IgxColumnResizingService } from '../resizing/resizing.service';
8+
import { IgxRowDirective } from '../row.directive';
89
import { IPivotDimension } from './pivot-grid.interface';
9-
import { IgxPivotRowComponent } from './pivot-row.component';
1010

1111
/**
1212
* @hidden
@@ -32,7 +32,7 @@ export class IgxPivotRowDimensionHeaderGroupComponent extends IgxGridHeaderGroup
3232
* @internal
3333
*/
3434
@Input()
35-
public intRow: IgxPivotRowComponent;
35+
public intRow: IgxRowDirective;
3636

3737
@HostBinding('attr.id')
3838
public get headerID() {
@@ -48,7 +48,8 @@ export class IgxPivotRowDimensionHeaderGroupComponent extends IgxGridHeaderGroup
4848
return;
4949
}
5050
event?.stopPropagation();
51-
const key = this.intRow.getRowDimensionKey(this.column as IgxColumnComponent);
51+
const row = this.grid.rowList.find(r => r.key === this.intRow.key);
52+
const key = row.getRowDimensionKey(this.column as IgxColumnComponent);
5253
if (this.grid.selectionService.isRowSelected(key)) {
5354
this.grid.selectionService.deselectRow(key, event);
5455
} else {

projects/igniteui-angular/src/lib/grids/pivot-grid/public_api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ export * from './pivot-row.component';
88
export * from './pivot-header-row.component';
99
export * from './pivot-row-dimension-content.component';
1010
export * from './pivot-row-dimension-header-group.component';
11+
export * from './pivot-row-dimension-header.component';

0 commit comments

Comments
 (0)