@visactor/vtable 1.7.8-alpha.3 → 1.7.8-alpha.4

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/cjs/PivotTable.js CHANGED
@@ -65,7 +65,7 @@ class PivotTable extends BaseTable_1.BaseTable {
65
65
  } else {
66
66
  const keysResults = (0, layout_helper_1.parseColKeyRowKeyForPivotTable)(this, options), {rowKeys: rowKeys, columnKeys: columnKeys, indicatorKeys: indicatorKeys} = keysResults;
67
67
  let {columnDimensionTree: columnDimensionTree, rowDimensionTree: rowDimensionTree} = keysResults;
68
- this.dataset = new dataset_1.Dataset(this.internalProps.dataConfig, rowKeys, columnKeys, indicatorKeys, this.internalProps.indicators, null === (_l = options.indicatorsAsCol) || void 0 === _l || _l, options.records, options.rowHierarchyType, this.internalProps.columnTree, this.internalProps.rowTree, !1, !!options.extensionRows),
68
+ this.dataset = new dataset_1.Dataset(this.internalProps.dataConfig, rowKeys, columnKeys, indicatorKeys, this.internalProps.indicators, null === (_l = options.indicatorsAsCol) || void 0 === _l || _l, options.records, options.rowHierarchyType, this.internalProps.columnTree, this.internalProps.rowTree),
69
69
  options.columnTree || (!1 !== options.indicatorsAsCol && (this.dataset.colHeaderTree = (0,
70
70
  layout_helper_1.supplementIndicatorNodesForCustomTree)(this.dataset.colHeaderTree, options.indicators)),
71
71
  columnDimensionTree = new tree_helper_1.DimensionTree(null !== (_m = this.dataset.colHeaderTree) && void 0 !== _m ? _m : [], this.layoutNodeId)),
@@ -156,7 +156,7 @@ class PivotTable extends BaseTable_1.BaseTable {
156
156
  } else {
157
157
  const keysResults = (0, layout_helper_1.parseColKeyRowKeyForPivotTable)(this, options), {rowKeys: rowKeys, columnKeys: columnKeys, indicatorKeys: indicatorKeys} = keysResults;
158
158
  let {columnDimensionTree: columnDimensionTree, rowDimensionTree: rowDimensionTree} = keysResults;
159
- this.dataset = new dataset_1.Dataset(internalProps.dataConfig, rowKeys, columnKeys, indicatorKeys, this.internalProps.indicators, null === (_o = options.indicatorsAsCol) || void 0 === _o || _o, records, options.rowHierarchyType, this.internalProps.columnTree, this.internalProps.rowTree, !1, !!options.extensionRows),
159
+ this.dataset = new dataset_1.Dataset(internalProps.dataConfig, rowKeys, columnKeys, indicatorKeys, this.internalProps.indicators, null === (_o = options.indicatorsAsCol) || void 0 === _o || _o, records, options.rowHierarchyType, this.internalProps.columnTree, this.internalProps.rowTree),
160
160
  options.columnTree || (!1 !== options.indicatorsAsCol && (this.dataset.colHeaderTree = (0,
161
161
  layout_helper_1.supplementIndicatorNodesForCustomTree)(this.dataset.colHeaderTree, options.indicators)),
162
162
  columnDimensionTree = new tree_helper_1.DimensionTree(null !== (_p = this.dataset.colHeaderTree) && void 0 !== _p ? _p : [], this.layoutNodeId)),
@@ -886,7 +886,7 @@ class PivotTable extends BaseTable_1.BaseTable {
886
886
  }));
887
887
  } else {
888
888
  this.internalProps.layoutMap.getHeadNode(col, row).children = children, this._refreshHierarchyState(col, row, (() => {
889
- this.dataset._rowTreeHasChanged(), this.dataset.changeDataConfig({
889
+ this.dataset.changeDataConfig({
890
890
  rows: this.internalProps.layoutMap.fullRowDimensionKeys,
891
891
  columns: this.internalProps.layoutMap.colDimensionKeys
892
892
  }), this.dataset.addRecords(records);