@visactor/vtable 1.17.3-alpha.7 → 1.17.3-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/PivotTable.js CHANGED
@@ -156,7 +156,7 @@ export class PivotTable extends BaseTable {
156
156
  let columnDimensionTree, rowDimensionTree;
157
157
  options.columnTree && (columnDimensionTree = new DimensionTree(null !== (_p = this.internalProps.columnTree) && void 0 !== _p ? _p : [], this.layoutNodeId, this.options.columnHierarchyType, "grid" !== this.options.columnHierarchyType ? null !== (_q = this.options.columnExpandLevel) && void 0 !== _q ? _q : 1 : void 0)),
158
158
  options.rowTree && (rowDimensionTree = new DimensionTree(null !== (_r = this.internalProps.rowTree) && void 0 !== _r ? _r : [], this.layoutNodeId, this.options.rowHierarchyType, "grid" !== this.options.rowHierarchyType ? null !== (_s = this.options.rowExpandLevel) && void 0 !== _s ? _s : 1 : void 0)),
159
- internalProps.layoutMap = new PivotHeaderLayoutMap(this, null, columnDimensionTree, rowDimensionTree),
159
+ internalProps.layoutMap.clearHeaderPathCache(), internalProps.layoutMap = new PivotHeaderLayoutMap(this, null, columnDimensionTree, rowDimensionTree),
160
160
  !1 === this.internalProps.recordsIsTwoDimensionalArray && (this.flatDataToObjects = new FlatDataToObjects({
161
161
  rows: internalProps.layoutMap.fullRowDimensionKeys,
162
162
  columns: internalProps.layoutMap.colDimensionKeys,
@@ -197,7 +197,7 @@ export class PivotTable extends BaseTable {
197
197
  }));
198
198
  }
199
199
  updatePagination(pagination) {
200
- pagination ? (this.pagination || (this.pagination = {
200
+ this.internalProps.layoutMap.clearHeaderPathCache(), pagination ? (this.pagination || (this.pagination = {
201
201
  currentPage: 0,
202
202
  perPageCount: 0
203
203
  }), "number" == typeof pagination.currentPage && pagination.currentPage >= 0 && (this.pagination.currentPage = pagination.currentPage),
@@ -640,6 +640,7 @@ export class PivotTable extends BaseTable {
640
640
  return null;
641
641
  }
642
642
  toggleHierarchyState(col, row, recalculateColWidths = !0) {
643
+ this.internalProps.layoutMap.clearHeaderPathCache();
643
644
  const hierarchyState = this.getHierarchyState(col, row);
644
645
  if (hierarchyState === HierarchyState.expand) this._refreshHierarchyState(col, row, recalculateColWidths),
645
646
  this.fireListeners(PIVOT_TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, {
@@ -961,7 +962,8 @@ export class PivotTable extends BaseTable {
961
962
  this.scenegraph.setLoadingHierarchyState(col, row);
962
963
  }
963
964
  release() {
964
- this.editorManager.release(), super.release();
965
+ this.internalProps.layoutMap.clearHeaderPathCache(), this.editorManager.release(),
966
+ super.release();
965
967
  }
966
968
  }
967
969
  //# sourceMappingURL=PivotTable.js.map