k-vtable 1.0.3 → 1.0.5

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.
Files changed (231) hide show
  1. package/cjs/ListTable-all.js +5 -5
  2. package/cjs/ListTable-all.js.map +1 -1
  3. package/cjs/ListTable.d.ts +7 -2
  4. package/cjs/ListTable.js +44 -5
  5. package/cjs/ListTable.js.map +1 -1
  6. package/cjs/PivotChart.js +4 -4
  7. package/cjs/PivotChart.js.map +1 -1
  8. package/cjs/PivotTable-all.js +4 -4
  9. package/cjs/PivotTable-all.js.map +1 -1
  10. package/cjs/PivotTable.d.ts +4 -0
  11. package/cjs/PivotTable.js +44 -0
  12. package/cjs/PivotTable.js.map +1 -1
  13. package/cjs/body-helper/style/ButtonStyle.d.ts +1 -1
  14. package/cjs/body-helper/style/ButtonStyle.js +2 -2
  15. package/cjs/body-helper/style/ButtonStyle.js.map +1 -1
  16. package/cjs/body-helper/style/SwitchStyle.d.ts +1 -1
  17. package/cjs/body-helper/style/SwitchStyle.js +2 -2
  18. package/cjs/body-helper/style/SwitchStyle.js.map +1 -1
  19. package/cjs/body-helper/style.js +2 -1
  20. package/cjs/components/index.d.ts +1 -0
  21. package/cjs/components/index.js +8 -2
  22. package/cjs/components/index.js.map +1 -1
  23. package/cjs/components/menu/dom/logic/MenuElement.js +7 -3
  24. package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
  25. package/cjs/core/BaseTable.d.ts +13 -0
  26. package/cjs/core/BaseTable.js +113 -42
  27. package/cjs/core/BaseTable.js.map +1 -1
  28. package/cjs/core/animation.js +1 -1
  29. package/cjs/core/animation.js.map +1 -1
  30. package/cjs/core/record-helper.d.ts +1 -1
  31. package/cjs/core/record-helper.js +99 -65
  32. package/cjs/core/record-helper.js.map +1 -1
  33. package/cjs/data/DataSource.d.ts +3 -0
  34. package/cjs/data/DataSource.js +36 -7
  35. package/cjs/data/DataSource.js.map +1 -1
  36. package/cjs/dataset/dataset.d.ts +1 -0
  37. package/cjs/dataset/dataset.js +66 -2
  38. package/cjs/dataset/dataset.js.map +1 -1
  39. package/cjs/edit/edit-manager.js +8 -5
  40. package/cjs/edit/edit-manager.js.map +1 -1
  41. package/cjs/event/event.js +2 -2
  42. package/cjs/event/event.js.map +1 -1
  43. package/cjs/event/listener/container-dom.js +36 -33
  44. package/cjs/event/listener/container-dom.js.map +1 -1
  45. package/cjs/event/listener/table-group.js +36 -32
  46. package/cjs/event/listener/table-group.js.map +1 -1
  47. package/cjs/event/scroll.js +6 -5
  48. package/cjs/event/scroll.js.map +1 -1
  49. package/cjs/event/self-event-listener/base-table/right-button-click.js +2 -2
  50. package/cjs/event/self-event-listener/base-table/right-button-click.js.map +1 -1
  51. package/cjs/index.d.ts +2 -1
  52. package/cjs/index.js +11 -2
  53. package/cjs/index.js.map +1 -1
  54. package/cjs/layout/index.js +2 -1
  55. package/cjs/layout/layout-helper.js +1 -1
  56. package/cjs/layout/pivot-header-layout.d.ts +7 -0
  57. package/cjs/layout/pivot-header-layout.js +93 -8
  58. package/cjs/layout/pivot-header-layout.js.map +1 -1
  59. package/cjs/layout/pivot-layout.js +2 -0
  60. package/cjs/layout/row-height-map.js +11 -4
  61. package/cjs/layout/row-height-map.js.map +1 -1
  62. package/cjs/layout/simple-header-layout.d.ts +2 -0
  63. package/cjs/layout/simple-header-layout.js +28 -12
  64. package/cjs/layout/simple-header-layout.js.map +1 -1
  65. package/cjs/layout/tree-helper.d.ts +2 -0
  66. package/cjs/layout/tree-helper.js +10 -1
  67. package/cjs/layout/tree-helper.js.map +1 -1
  68. package/cjs/plugins/index.js +1 -1
  69. package/cjs/plugins/interface.js +1 -2
  70. package/cjs/plugins/invert-highlight.js +1 -1
  71. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  72. package/cjs/plugins/plugin-manager.js +1 -1
  73. package/cjs/scenegraph/component/custom.js.map +1 -1
  74. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +4 -2
  75. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  76. package/cjs/scenegraph/graphic/icon.d.ts +1 -0
  77. package/cjs/scenegraph/graphic/icon.js +30 -2
  78. package/cjs/scenegraph/graphic/icon.js.map +1 -1
  79. package/cjs/scenegraph/group-creater/cell-helper.js +5 -5
  80. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  81. package/cjs/scenegraph/group-creater/column-helper.js +1 -1
  82. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  83. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +4 -4
  84. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  85. package/cjs/scenegraph/group-creater/progress/proxy.js +3 -3
  86. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  87. package/cjs/scenegraph/layout/compute-col-width.js +11 -1
  88. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  89. package/cjs/scenegraph/scenegraph.js +23 -18
  90. package/cjs/scenegraph/scenegraph.js.map +1 -1
  91. package/cjs/state/select/update-position.js +5 -2
  92. package/cjs/state/select/update-position.js.map +1 -1
  93. package/cjs/state/state.d.ts +2 -0
  94. package/cjs/state/state.js +18 -6
  95. package/cjs/state/state.js.map +1 -1
  96. package/cjs/tools/env.d.ts +1 -0
  97. package/cjs/tools/env.js +13 -2
  98. package/cjs/tools/env.js.map +1 -1
  99. package/cjs/ts-types/base-table.d.ts +10 -0
  100. package/cjs/ts-types/base-table.js.map +1 -1
  101. package/cjs/ts-types/dataset/aggregation.d.ts +8 -6
  102. package/cjs/ts-types/dataset/aggregation.js +109 -54
  103. package/cjs/ts-types/dataset/aggregation.js.map +1 -1
  104. package/cjs/ts-types/events.d.ts +1 -0
  105. package/cjs/ts-types/events.js.map +1 -1
  106. package/cjs/ts-types/list-table/define/basic-define.d.ts +1 -0
  107. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
  108. package/cjs/ts-types/new-data-set.d.ts +1 -0
  109. package/cjs/ts-types/new-data-set.js.map +1 -1
  110. package/cjs/ts-types/table-engine.d.ts +2 -1
  111. package/cjs/ts-types/table-engine.js.map +1 -1
  112. package/cjs/vrender.d.ts +3 -3
  113. package/cjs/vrender.js +4 -21
  114. package/cjs/vrender.js.map +1 -1
  115. package/dist/vtable.js +8848 -3947
  116. package/dist/vtable.min.js +2 -2
  117. package/es/ListTable-all.js +4 -4
  118. package/es/ListTable-all.js.map +1 -1
  119. package/es/ListTable.d.ts +7 -2
  120. package/es/ListTable.js +42 -2
  121. package/es/ListTable.js.map +1 -1
  122. package/es/PivotChart.js +4 -4
  123. package/es/PivotChart.js.map +1 -1
  124. package/es/PivotTable-all.js +3 -3
  125. package/es/PivotTable-all.js.map +1 -1
  126. package/es/PivotTable.d.ts +4 -0
  127. package/es/PivotTable.js +44 -0
  128. package/es/PivotTable.js.map +1 -1
  129. package/es/body-helper/style/ButtonStyle.d.ts +1 -1
  130. package/es/body-helper/style/ButtonStyle.js +1 -1
  131. package/es/body-helper/style/ButtonStyle.js.map +1 -1
  132. package/es/body-helper/style/SwitchStyle.d.ts +1 -1
  133. package/es/body-helper/style/SwitchStyle.js +1 -1
  134. package/es/body-helper/style/SwitchStyle.js.map +1 -1
  135. package/es/body-helper/style.js +2 -1
  136. package/es/components/index.d.ts +1 -0
  137. package/es/components/index.js +6 -0
  138. package/es/components/index.js.map +1 -1
  139. package/es/components/menu/dom/logic/MenuElement.js +7 -3
  140. package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
  141. package/es/core/BaseTable.d.ts +13 -0
  142. package/es/core/BaseTable.js +113 -42
  143. package/es/core/BaseTable.js.map +1 -1
  144. package/es/core/animation.js +1 -1
  145. package/es/core/animation.js.map +1 -1
  146. package/es/core/record-helper.d.ts +1 -1
  147. package/es/core/record-helper.js +99 -65
  148. package/es/core/record-helper.js.map +1 -1
  149. package/es/data/DataSource.d.ts +3 -0
  150. package/es/data/DataSource.js +36 -7
  151. package/es/data/DataSource.js.map +1 -1
  152. package/es/dataset/dataset.d.ts +1 -0
  153. package/es/dataset/dataset.js +66 -2
  154. package/es/dataset/dataset.js.map +1 -1
  155. package/es/edit/edit-manager.js +8 -5
  156. package/es/edit/edit-manager.js.map +1 -1
  157. package/es/event/event.js +1 -3
  158. package/es/event/event.js.map +1 -1
  159. package/es/event/listener/container-dom.js +35 -32
  160. package/es/event/listener/container-dom.js.map +1 -1
  161. package/es/event/listener/table-group.js +36 -31
  162. package/es/event/listener/table-group.js.map +1 -1
  163. package/es/event/scroll.js +6 -5
  164. package/es/event/scroll.js.map +1 -1
  165. package/es/event/self-event-listener/base-table/right-button-click.js +2 -2
  166. package/es/event/self-event-listener/base-table/right-button-click.js.map +1 -1
  167. package/es/index.d.ts +2 -1
  168. package/es/index.js +3 -1
  169. package/es/index.js.map +1 -1
  170. package/es/layout/index.js +2 -1
  171. package/es/layout/layout-helper.js +1 -1
  172. package/es/layout/pivot-header-layout.d.ts +7 -0
  173. package/es/layout/pivot-header-layout.js +93 -8
  174. package/es/layout/pivot-header-layout.js.map +1 -1
  175. package/es/layout/pivot-layout.js +2 -0
  176. package/es/layout/row-height-map.js +11 -4
  177. package/es/layout/row-height-map.js.map +1 -1
  178. package/es/layout/simple-header-layout.d.ts +2 -0
  179. package/es/layout/simple-header-layout.js +28 -12
  180. package/es/layout/simple-header-layout.js.map +1 -1
  181. package/es/layout/tree-helper.d.ts +2 -0
  182. package/es/layout/tree-helper.js +10 -1
  183. package/es/layout/tree-helper.js.map +1 -1
  184. package/es/plugins/index.js +1 -1
  185. package/es/plugins/interface.js +1 -2
  186. package/es/plugins/invert-highlight.js +1 -1
  187. package/es/plugins/list-tree-stick-cell.js +1 -1
  188. package/es/plugins/plugin-manager.js +1 -1
  189. package/es/scenegraph/component/custom.js.map +1 -1
  190. package/es/scenegraph/graphic/contributions/group-contribution-render.js +4 -2
  191. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  192. package/es/scenegraph/graphic/icon.d.ts +1 -0
  193. package/es/scenegraph/graphic/icon.js +6 -1
  194. package/es/scenegraph/graphic/icon.js.map +1 -1
  195. package/es/scenegraph/group-creater/cell-helper.js +5 -5
  196. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  197. package/es/scenegraph/group-creater/column-helper.js +1 -1
  198. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  199. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +4 -4
  200. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
  201. package/es/scenegraph/group-creater/progress/proxy.js +3 -3
  202. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  203. package/es/scenegraph/layout/compute-col-width.js +11 -1
  204. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  205. package/es/scenegraph/scenegraph.js +23 -18
  206. package/es/scenegraph/scenegraph.js.map +1 -1
  207. package/es/state/select/update-position.js +5 -2
  208. package/es/state/select/update-position.js.map +1 -1
  209. package/es/state/state.d.ts +2 -0
  210. package/es/state/state.js +18 -6
  211. package/es/state/state.js.map +1 -1
  212. package/es/tools/env.d.ts +1 -0
  213. package/es/tools/env.js +11 -0
  214. package/es/tools/env.js.map +1 -1
  215. package/es/ts-types/base-table.d.ts +10 -0
  216. package/es/ts-types/base-table.js.map +1 -1
  217. package/es/ts-types/dataset/aggregation.d.ts +8 -6
  218. package/es/ts-types/dataset/aggregation.js +109 -54
  219. package/es/ts-types/dataset/aggregation.js.map +1 -1
  220. package/es/ts-types/events.d.ts +1 -0
  221. package/es/ts-types/events.js.map +1 -1
  222. package/es/ts-types/list-table/define/basic-define.d.ts +1 -0
  223. package/es/ts-types/list-table/define/basic-define.js.map +1 -1
  224. package/es/ts-types/new-data-set.d.ts +1 -0
  225. package/es/ts-types/new-data-set.js.map +1 -1
  226. package/es/ts-types/table-engine.d.ts +2 -1
  227. package/es/ts-types/table-engine.js.map +1 -1
  228. package/es/vrender.d.ts +3 -3
  229. package/es/vrender.js +2 -4
  230. package/es/vrender.js.map +1 -1
  231. package/package.json +7 -6
@@ -704,16 +704,80 @@ class Dataset {
704
704
  for (const key in this.collectValuesBy) "xField" !== this.collectValuesBy[key].type && "yField" !== this.collectValuesBy[key].type || (this.dataConfig.dimensionSortArray ? this.cacheCollectedValues[key] = arraySortByAnotherArray(this.collectedValues[key], this.dataConfig.dimensionSortArray) : this.cacheCollectedValues[key] = this.collectedValues[key]);
705
705
  }
706
706
  changeTreeNodeValue(rowKey = [], colKey = [], indicator, newValue) {
707
- var _a, _b, _c;
707
+ var _a, _b, _c, _d, _e;
708
708
  const indicatorIndex = this.indicatorKeys.indexOf(indicator);
709
709
  let flatRowKey, flatColKey;
710
710
  flatRowKey = "string" == typeof rowKey ? rowKey : rowKey.join(this.stringJoinChar),
711
711
  flatColKey = "string" == typeof colKey ? colKey : colKey.join(this.stringJoinChar),
712
+ "string" == typeof newValue && (isNaN(parseFloat(newValue)) || (newValue = parseFloat(newValue))),
712
713
  (null === (_a = this.changedTree[flatRowKey]) || void 0 === _a ? void 0 : _a[flatColKey]) ? this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue : this.changedTree[flatRowKey] ? (this.changedTree[flatRowKey][flatColKey] = [],
713
714
  this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue) : (this.changedTree[flatRowKey] = {},
714
715
  this.changedTree[flatRowKey][flatColKey] = [], this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue);
715
716
  const cellAggregator = null === (_c = null === (_b = this.tree[flatRowKey]) || void 0 === _b ? void 0 : _b[flatColKey]) || void 0 === _c ? void 0 : _c[indicatorIndex];
716
- 1 === (null == cellAggregator ? void 0 : cellAggregator.records.length) && (cellAggregator.records[0][this.indicatorKeys[indicatorIndex]] = newValue);
717
+ if (1 === (null == cellAggregator ? void 0 : cellAggregator.records.length) && (cellAggregator.records[0][this.indicatorKeys[indicatorIndex]] = newValue),
718
+ null !== (_e = null === (_d = this.dataConfig) || void 0 === _d ? void 0 : _d.updateAggregationOnEditCell) && void 0 !== _e && _e) if (cellAggregator) cellAggregator.changedValue = newValue,
719
+ this.recalculateTotals(rowKey, colKey, indicator); else {
720
+ const newCellAggregator = new aggregation_1.SumAggregator({
721
+ key: indicator,
722
+ field: indicator,
723
+ isRecord: !0
724
+ });
725
+ newCellAggregator.changedValue = newValue, this.recalculateTotals(rowKey, colKey, indicator, newCellAggregator);
726
+ }
727
+ }
728
+ recalculateTotals(rowKey = [], colKey = [], indicator, newCellAggregator) {
729
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
730
+ if (!this.totals || 0 === Object.keys(this.tree).length || !((null === (_a = this.totals.row) || void 0 === _a ? void 0 : _a.showGrandTotals) || (null === (_b = this.totals.row) || void 0 === _b ? void 0 : _b.subTotalsDimensions) && this.totals.row.subTotalsDimensions.length > 0 && !1 !== this.totals.row.showSubTotals) && !((null === (_c = this.totals.column) || void 0 === _c ? void 0 : _c.showGrandTotals) || (null === (_d = this.totals.column) || void 0 === _d ? void 0 : _d.subTotalsDimensions) && this.totals.column.subTotalsDimensions.length > 0 && !1 !== this.totals.column.showSubTotals)) return;
731
+ const flatRowKey = Array.isArray(rowKey) ? rowKey.join(this.stringJoinChar) : rowKey, flatColKey = Array.isArray(colKey) ? colKey.join(this.stringJoinChar) : colKey, indicatorIndex = this.indicatorKeysIncludeCalculatedFieldDependIndicatorKeys.indexOf(indicator), aggregatorsToReset = new Set, subTotalAggregators = new Set, rowKeyParts = flatRowKey.split(this.stringJoinChar), colKeyParts = flatColKey.split(this.stringJoinChar), addAggregatorToResetSet = (agg, rowKey, colKey) => {
732
+ !agg || rowKey === flatRowKey && colKey === flatColKey || (aggregatorsToReset.add(agg),
733
+ rowKey !== flatRowKey && colKey !== flatColKey || subTotalAggregators.add(agg));
734
+ };
735
+ if ((null === (_f = null === (_e = this.totals) || void 0 === _e ? void 0 : _e.row) || void 0 === _f ? void 0 : _f.subTotalsDimensions) && !1 !== this.totals.row.showSubTotals) for (let i = 0; i < this.totals.row.subTotalsDimensions.length; i++) {
736
+ const dimension = this.totals.row.subTotalsDimensions[i], dimensionIndex = this.rows.indexOf(dimension);
737
+ if (dimensionIndex >= 0 && dimensionIndex < rowKeyParts.length) {
738
+ const rowSubTotalKeyParts = rowKeyParts.slice(0, dimensionIndex + 1);
739
+ "tree" !== this.rowHierarchyType && rowSubTotalKeyParts.push(this.rowSubTotalLabel);
740
+ const flatRowSubTotalKey = rowSubTotalKeyParts.join(this.stringJoinChar);
741
+ if ((null === (_h = null === (_g = this.tree[flatRowSubTotalKey]) || void 0 === _g ? void 0 : _g[flatColKey]) || void 0 === _h ? void 0 : _h[indicatorIndex]) && addAggregatorToResetSet(this.tree[flatRowSubTotalKey][flatColKey][indicatorIndex], flatRowSubTotalKey, flatColKey),
742
+ (null === (_k = null === (_j = this.totals) || void 0 === _j ? void 0 : _j.column) || void 0 === _k ? void 0 : _k.subTotalsDimensions) && !1 !== this.totals.column.showSubTotals) for (let j = 0; j < this.totals.column.subTotalsDimensions.length; j++) {
743
+ const colDimension = this.totals.column.subTotalsDimensions[j], colDimensionIndex = this.columns.indexOf(colDimension);
744
+ if (colDimensionIndex >= 0 && colDimensionIndex < colKeyParts.length) {
745
+ const colSubTotalKeyParts = colKeyParts.slice(0, colDimensionIndex + 1);
746
+ colSubTotalKeyParts.push(this.colSubTotalLabel);
747
+ const flatColSubTotalKey = colSubTotalKeyParts.join(this.stringJoinChar);
748
+ (null === (_m = null === (_l = this.tree[flatRowSubTotalKey]) || void 0 === _l ? void 0 : _l[flatColSubTotalKey]) || void 0 === _m ? void 0 : _m[indicatorIndex]) && addAggregatorToResetSet(this.tree[flatRowSubTotalKey][flatColSubTotalKey][indicatorIndex], flatRowSubTotalKey, flatColSubTotalKey);
749
+ }
750
+ }
751
+ (null === (_p = null === (_o = this.totals) || void 0 === _o ? void 0 : _o.column) || void 0 === _p ? void 0 : _p.showGrandTotals) && (null === (_r = null === (_q = this.tree[flatRowSubTotalKey]) || void 0 === _q ? void 0 : _q[this.colGrandTotalLabel]) || void 0 === _r ? void 0 : _r[indicatorIndex]) && addAggregatorToResetSet(this.tree[flatRowSubTotalKey][this.colGrandTotalLabel][indicatorIndex], flatRowSubTotalKey, this.colGrandTotalLabel);
752
+ }
753
+ }
754
+ if (null === (_t = null === (_s = this.totals) || void 0 === _s ? void 0 : _s.row) || void 0 === _t ? void 0 : _t.showGrandTotals) {
755
+ if ((null === (_v = null === (_u = this.tree[this.rowGrandTotalLabel]) || void 0 === _u ? void 0 : _u[flatColKey]) || void 0 === _v ? void 0 : _v[indicatorIndex]) && addAggregatorToResetSet(this.tree[this.rowGrandTotalLabel][flatColKey][indicatorIndex], this.rowGrandTotalLabel, flatColKey),
756
+ (null === (_x = null === (_w = this.totals) || void 0 === _w ? void 0 : _w.column) || void 0 === _x ? void 0 : _x.subTotalsDimensions) && !1 !== this.totals.column.showSubTotals) for (let j = 0; j < this.totals.column.subTotalsDimensions.length; j++) {
757
+ const colDimension = this.totals.column.subTotalsDimensions[j], colDimensionIndex = this.columns.indexOf(colDimension);
758
+ if (colDimensionIndex >= 0 && colDimensionIndex < colKeyParts.length) {
759
+ const colSubTotalKeyParts = colKeyParts.slice(0, colDimensionIndex + 1);
760
+ colSubTotalKeyParts.push(this.colSubTotalLabel);
761
+ const flatColSubTotalKey = colSubTotalKeyParts.join(this.stringJoinChar);
762
+ (null === (_z = null === (_y = this.tree[this.rowGrandTotalLabel]) || void 0 === _y ? void 0 : _y[flatColSubTotalKey]) || void 0 === _z ? void 0 : _z[indicatorIndex]) && addAggregatorToResetSet(this.tree[this.rowGrandTotalLabel][flatColSubTotalKey][indicatorIndex], this.rowGrandTotalLabel, flatColSubTotalKey);
763
+ }
764
+ }
765
+ (null === (_1 = null === (_0 = this.totals) || void 0 === _0 ? void 0 : _0.column) || void 0 === _1 ? void 0 : _1.showGrandTotals) && (null === (_3 = null === (_2 = this.tree[this.rowGrandTotalLabel]) || void 0 === _2 ? void 0 : _2[this.colGrandTotalLabel]) || void 0 === _3 ? void 0 : _3[indicatorIndex]) && addAggregatorToResetSet(this.tree[this.rowGrandTotalLabel][this.colGrandTotalLabel][indicatorIndex], this.rowGrandTotalLabel, this.colGrandTotalLabel);
766
+ }
767
+ if ((null === (_5 = null === (_4 = this.totals) || void 0 === _4 ? void 0 : _4.column) || void 0 === _5 ? void 0 : _5.subTotalsDimensions) && !1 !== this.totals.column.showSubTotals) for (let j = 0; j < this.totals.column.subTotalsDimensions.length; j++) {
768
+ const colDimension = this.totals.column.subTotalsDimensions[j], colDimensionIndex = this.columns.indexOf(colDimension);
769
+ if (colDimensionIndex >= 0 && colDimensionIndex < colKeyParts.length) {
770
+ const colSubTotalKeyParts = colKeyParts.slice(0, colDimensionIndex + 1);
771
+ colSubTotalKeyParts.push(this.colSubTotalLabel);
772
+ const flatColSubTotalKey = colSubTotalKeyParts.join(this.stringJoinChar);
773
+ (null === (_7 = null === (_6 = this.tree[flatRowKey]) || void 0 === _6 ? void 0 : _6[flatColSubTotalKey]) || void 0 === _7 ? void 0 : _7[indicatorIndex]) && addAggregatorToResetSet(this.tree[flatRowKey][flatColSubTotalKey][indicatorIndex], flatRowKey, flatColSubTotalKey);
774
+ }
775
+ }
776
+ (null === (_9 = null === (_8 = this.totals) || void 0 === _8 ? void 0 : _8.column) || void 0 === _9 ? void 0 : _9.showGrandTotals) && (null === (_11 = null === (_10 = this.tree[flatRowKey]) || void 0 === _10 ? void 0 : _10[this.colGrandTotalLabel]) || void 0 === _11 ? void 0 : _11[indicatorIndex]) && addAggregatorToResetSet(this.tree[flatRowKey][this.colGrandTotalLabel][indicatorIndex], flatRowKey, this.colGrandTotalLabel),
777
+ aggregatorsToReset.forEach((agg => {
778
+ newCellAggregator && subTotalAggregators.has(agg) && agg.push(newCellAggregator),
779
+ agg.recalculate();
780
+ }));
717
781
  }
718
782
  changeRecordFieldValue(fieldName, oldValue, value) {
719
783
  let isIndicatorName = !1;