@@ -401,7 +401,7 @@ export class IgxGridStateDirective {
401
401
pivotConfiguration : {
402
402
getFeatureState ( context : IgxGridStateDirective ) : IGridState {
403
403
const config = ( context . currGrid as IgxPivotGridComponent ) . pivotConfiguration ;
404
- if ( ! config || ! ( context . currGrid instanceof IgxPivotGridComponent ) ) {
404
+ if ( ! config || ! ( context . currGrid instanceof IgxPivotGridComponent ) ) {
405
405
return { pivotConfiguration : undefined } ;
406
406
}
407
407
const configCopy = cloneValue ( config ) ;
@@ -418,14 +418,14 @@ export class IgxGridStateDirective {
418
418
} ,
419
419
restoreFeatureState ( context : IgxGridStateDirective , state : any ) : void {
420
420
const config : IPivotConfiguration = state ;
421
- if ( ! config || ! ( context . currGrid instanceof IgxPivotGridComponent ) ) {
421
+ if ( ! config || ! ( context . currGrid instanceof IgxPivotGridComponent ) ) {
422
422
return ;
423
423
}
424
424
context . restoreValues ( config , context . currGrid as IgxPivotGridComponent ) ;
425
425
context . restoreDimensions ( config , context . currGrid as IgxPivotGridComponent ) ;
426
426
( context . currGrid as IgxPivotGridComponent ) . pivotConfiguration = config ;
427
427
} ,
428
-
428
+
429
429
430
430
}
431
431
} ;
@@ -600,7 +600,7 @@ export class IgxGridStateDirective {
600
600
* This method restores the IgxPivotDateDimension with its default functions and resource strings.
601
601
*/
602
602
private restoreDateDimension ( dim : IgxPivotDateDimension ) {
603
- const dateDim = new IgxPivotDateDimension ( ( dim as any ) . inBaseDimension , ( dim as any ) . inOptions ) ;
603
+ const dateDim = new IgxPivotDateDimension ( ( dim as any ) . _baseDimension , ( dim as any ) . _options ) ;
604
604
// restore functions and resource strings
605
605
dim . resourceStrings = dateDim . resourceStrings ;
606
606
dim . memberFunction = dateDim . memberFunction ;
@@ -617,7 +617,7 @@ export class IgxGridStateDirective {
617
617
* Returns if this is a IgxPivotDateDimension.
618
618
*/
619
619
private isDateDimension ( dim : IPivotDimension ) {
620
- return ( dim as any ) . inBaseDimension ;
620
+ return ( dim as any ) . _baseDimension ;
621
621
}
622
622
623
623
/**
@@ -677,11 +677,11 @@ export class IgxGridStateDirective {
677
677
678
678
let condition = this . generateFilteringCondition ( dataType , expr . condition . name ) ||
679
679
this . currGrid . columns . find ( c => c . field === expr . fieldName ) . filters . condition ( expr . condition . name ) ;
680
-
680
+
681
681
if ( condition ) {
682
682
expr . condition = condition ;
683
683
expressionsTree . filteringOperands . push ( expr ) ;
684
- }
684
+ }
685
685
}
686
686
}
687
687
0 commit comments