@@ -66,18 +66,34 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
66
66
super ( ref , cdr ) ;
67
67
}
68
68
69
- /** The virtualized part of the header row containing the unpinned header groups. */
69
+ /**
70
+ * @hidden
71
+ * @internal
72
+ * The virtualized part of the header row containing the unpinned header groups. */
70
73
@ViewChildren ( 'headerVirtualContainer' , { read : IgxGridForOfDirective } )
71
74
public headerContainers : QueryList < IgxGridForOfDirective < IgxGridHeaderGroupComponent > > ;
72
75
73
76
public get headerForOf ( ) {
74
77
return this . headerContainers . last ;
75
78
}
76
79
80
+ /**
81
+ * @hidden
82
+ * @internal
83
+ */
77
84
@ViewChildren ( 'notifyChip' )
78
85
public notificationChips : QueryList < IgxChipComponent > ;
79
86
87
+ /**
88
+ * @hidden
89
+ * @internal
90
+ */
80
91
public columnDimensionsByLevel : any [ ] = [ ] ;
92
+
93
+ /**
94
+ * @hidden
95
+ * @internal
96
+ */
81
97
public get totalDepth ( ) {
82
98
const columnDimensions = this . grid . columnDimensions ;
83
99
if ( columnDimensions . length === 0 ) {
@@ -90,27 +106,46 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
90
106
return totalDepth ;
91
107
}
92
108
109
+ /**
110
+ * @hidden
111
+ * @internal
112
+ */
93
113
public get maxContainerHeight ( ) {
94
114
return this . totalDepth > 1 ? this . totalDepth * this . grid . renderedRowHeight : undefined ;
95
115
}
96
116
117
+ /**
118
+ * @hidden
119
+ * @internal
120
+ */
97
121
public calcHeight ( col : ColumnType , index : number ) {
98
122
return ! col . columnGroup && col . level < this . totalDepth && col . level === index ? ( this . totalDepth - col . level ) * this . grid . rowHeight : this . grid . rowHeight ;
99
123
}
100
124
125
+ /**
126
+ * @hidden
127
+ * @internal
128
+ */
101
129
public isDuplicateOfExistingParent ( col : ColumnType , lvl : number ) {
102
130
const parentCollection = lvl > 0 ? this . columnDimensionsByLevel [ lvl - 1 ] : [ ] ;
103
131
const duplicate = parentCollection . indexOf ( col ) !== - 1 ;
104
132
105
133
return duplicate ;
106
134
}
107
-
135
+
136
+ /**
137
+ * @hidden
138
+ * @internal
139
+ */
108
140
public isMultiRow ( col : ColumnType , lvl : number ) {
109
141
const isLeaf = ! col . columnGroup ;
110
- return isLeaf && lvl !== this . totalDepth - 1 ;
142
+ return isLeaf && lvl !== this . totalDepth - 1 ;
111
143
}
112
144
113
-
145
+ /**
146
+ * @hidden
147
+ * @internal
148
+ */
114
149
public populateColumnDimensionsByLevel ( ) {
115
150
const res = [ ] ;
116
151
const columnDimensions = this . grid . columnDimensions ;
@@ -143,12 +178,20 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
143
178
} ) ;
144
179
}
145
180
181
+ /**
182
+ * @hidden
183
+ * @internal
184
+ */
146
185
public ngOnChanges ( changes : SimpleChanges ) {
147
186
if ( changes . unpinnedColumnCollection && this . unpinnedColumnCollection . length > 0 ) {
148
187
this . populateColumnDimensionsByLevel ( ) ;
149
188
}
150
189
}
151
190
191
+ /**
192
+ * @hidden
193
+ * @internal
194
+ */
152
195
public onDimDragStart ( event , area ) {
153
196
this . cdr . detectChanges ( ) ;
154
197
for ( let chip of this . notificationChips ) {
@@ -225,7 +268,7 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
225
268
this . grid . setupColumns ( ) ;
226
269
this . grid . filteringService . clearFilter ( col . memberName ) ;
227
270
this . grid . pipeTrigger ++ ;
228
- this . grid . dimensionsChange . emit ( { dimensions : this . grid . pivotConfiguration . columns , dimensionCollectionType : PivotDimensionType . Row } ) ;
271
+ this . grid . dimensionsChange . emit ( { dimensions : this . grid . pivotConfiguration . columns , dimensionCollectionType : PivotDimensionType . Row } ) ;
229
272
this . grid . reflow ( ) ;
230
273
}
231
274
0 commit comments