@visactor/vtable 1.3.2-alpha.2 → 1.3.3-alpha.0

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 (211) hide show
  1. package/cjs/ListTable.js +7 -6
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/PivotChart.d.ts +0 -1
  4. package/cjs/PivotChart.js +0 -4
  5. package/cjs/PivotChart.js.map +1 -1
  6. package/cjs/components/axis/axis.js +2 -3
  7. package/cjs/components/axis/axis.js.map +1 -1
  8. package/cjs/components/empty-tip/empty-tip.js +2 -2
  9. package/cjs/components/empty-tip/empty-tip.js.map +1 -1
  10. package/cjs/components/legend/discrete-legend/discrete-legend.js +1 -2
  11. package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -1
  12. package/cjs/components/react/react-custom-layout.d.ts +21 -0
  13. package/cjs/components/react/react-custom-layout.js +48 -0
  14. package/cjs/components/react/react-custom-layout.js.map +1 -0
  15. package/cjs/components/tooltip/TooltipHandler.js +1 -3
  16. package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
  17. package/cjs/components/tooltip/logic/BubbleTooltipElement.js +7 -3
  18. package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
  19. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
  20. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
  21. package/cjs/core/BaseTable.d.ts +7 -4
  22. package/cjs/core/BaseTable.js +229 -80
  23. package/cjs/core/BaseTable.js.map +1 -1
  24. package/cjs/core/FouseInput.d.ts +0 -1
  25. package/cjs/core/FouseInput.js +2 -5
  26. package/cjs/core/FouseInput.js.map +1 -1
  27. package/cjs/core/style.js +1 -1
  28. package/cjs/core/style.js.map +1 -1
  29. package/cjs/dataset/dataset.d.ts +2 -0
  30. package/cjs/dataset/dataset.js +8 -7
  31. package/cjs/dataset/dataset.js.map +1 -1
  32. package/cjs/event/event.js +1 -2
  33. package/cjs/event/event.js.map +1 -1
  34. package/cjs/event/listener/container-dom.js +1 -1
  35. package/cjs/event/listener/container-dom.js.map +1 -1
  36. package/cjs/event/listener/table-group.js +5 -3
  37. package/cjs/event/listener/table-group.js.map +1 -1
  38. package/cjs/event/media-click.js +2 -1
  39. package/cjs/event/sparkline-event.js +1 -2
  40. package/cjs/event/util.js +2 -2
  41. package/cjs/event/util.js.map +1 -1
  42. package/cjs/index.d.ts +3 -1
  43. package/cjs/index.js +13 -4
  44. package/cjs/index.js.map +1 -1
  45. package/cjs/layout/layout-helper.js.map +1 -1
  46. package/cjs/layout/pivot-header-layout.js +57 -37
  47. package/cjs/layout/pivot-header-layout.js.map +1 -1
  48. package/cjs/scenegraph/component/custom.js +6 -4
  49. package/cjs/scenegraph/component/custom.js.map +1 -1
  50. package/cjs/scenegraph/debug-tool/debug-tool.js +1 -4
  51. package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -1
  52. package/cjs/scenegraph/graphic/chart.d.ts +0 -1
  53. package/cjs/scenegraph/graphic/chart.js +20 -34
  54. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  55. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +8 -20
  56. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  57. package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +1 -2
  58. package/cjs/scenegraph/graphic/contributions/chart-render.js +24 -40
  59. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  60. package/cjs/scenegraph/group-creater/cell-helper.js +4 -0
  61. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  62. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +1 -2
  63. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  64. package/cjs/scenegraph/layout/compute-col-width.js +1 -1
  65. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  66. package/cjs/scenegraph/layout/compute-row-height.js +1 -1
  67. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  68. package/cjs/scenegraph/layout/update-width.js +3 -0
  69. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  70. package/cjs/scenegraph/refresh-node/update-chart.d.ts +0 -1
  71. package/cjs/scenegraph/refresh-node/update-chart.js +2 -9
  72. package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
  73. package/cjs/scenegraph/scenegraph.d.ts +1 -0
  74. package/cjs/scenegraph/scenegraph.js +15 -12
  75. package/cjs/scenegraph/scenegraph.js.map +1 -1
  76. package/cjs/themes/ARCO.js +1 -1
  77. package/cjs/themes/BRIGHT.js +1 -1
  78. package/cjs/themes/DARK.js +1 -1
  79. package/cjs/themes/DEFAULT.js +1 -1
  80. package/cjs/themes/SIMPLIFY.js +1 -1
  81. package/cjs/themes/theme.js +6 -0
  82. package/cjs/themes/theme.js.map +1 -1
  83. package/cjs/tools/LimitPromiseQueue.js +1 -1
  84. package/cjs/tools/NumberMap.js +1 -1
  85. package/cjs/tools/Rect.js +1 -1
  86. package/cjs/tools/calc.js +1 -1
  87. package/cjs/tools/debounce.js +1 -1
  88. package/cjs/tools/diff-cell.js +2 -2
  89. package/cjs/ts-types/base-table.d.ts +12 -15
  90. package/cjs/ts-types/base-table.js.map +1 -1
  91. package/cjs/ts-types/customLayout.d.ts +1 -1
  92. package/cjs/ts-types/customLayout.js.map +1 -1
  93. package/cjs/ts-types/icon.d.ts +2 -0
  94. package/cjs/ts-types/icon.js.map +1 -1
  95. package/cjs/ts-types/theme.d.ts +2 -0
  96. package/cjs/ts-types/theme.js.map +1 -1
  97. package/cjs/ts-types/tooltip.d.ts +2 -0
  98. package/cjs/ts-types/tooltip.js.map +1 -1
  99. package/cjs/vrender.d.ts +4 -0
  100. package/cjs/vrender.js +39 -11
  101. package/cjs/vrender.js.map +1 -1
  102. package/dist/vtable.js +25304 -9898
  103. package/dist/vtable.min.js +2 -2
  104. package/es/ListTable.js +3 -3
  105. package/es/ListTable.js.map +1 -1
  106. package/es/PivotChart.d.ts +0 -1
  107. package/es/PivotChart.js +2 -5
  108. package/es/PivotChart.js.map +1 -1
  109. package/es/components/axis/axis.js +1 -3
  110. package/es/components/axis/axis.js.map +1 -1
  111. package/es/components/empty-tip/empty-tip.js +2 -2
  112. package/es/components/empty-tip/empty-tip.js.map +1 -1
  113. package/es/components/legend/discrete-legend/discrete-legend.js +1 -2
  114. package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -1
  115. package/es/components/react/react-custom-layout.d.ts +21 -0
  116. package/es/components/react/react-custom-layout.js +38 -0
  117. package/es/components/react/react-custom-layout.js.map +1 -0
  118. package/es/components/tooltip/TooltipHandler.js +1 -3
  119. package/es/components/tooltip/TooltipHandler.js.map +1 -1
  120. package/es/components/tooltip/logic/BubbleTooltipElement.js +7 -3
  121. package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
  122. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
  123. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -1
  124. package/es/core/BaseTable.d.ts +7 -4
  125. package/es/core/BaseTable.js +232 -82
  126. package/es/core/BaseTable.js.map +1 -1
  127. package/es/core/FouseInput.d.ts +0 -1
  128. package/es/core/FouseInput.js +2 -5
  129. package/es/core/FouseInput.js.map +1 -1
  130. package/es/core/style.js +1 -1
  131. package/es/core/style.js.map +1 -1
  132. package/es/dataset/dataset.d.ts +2 -0
  133. package/es/dataset/dataset.js +8 -7
  134. package/es/dataset/dataset.js.map +1 -1
  135. package/es/event/event.js +1 -2
  136. package/es/event/event.js.map +1 -1
  137. package/es/event/listener/container-dom.js +1 -1
  138. package/es/event/listener/container-dom.js.map +1 -1
  139. package/es/event/listener/table-group.js +5 -3
  140. package/es/event/listener/table-group.js.map +1 -1
  141. package/es/event/media-click.js +2 -1
  142. package/es/event/sparkline-event.js +1 -2
  143. package/es/event/util.js +2 -2
  144. package/es/event/util.js.map +1 -1
  145. package/es/index.d.ts +3 -1
  146. package/es/index.js +5 -1
  147. package/es/index.js.map +1 -1
  148. package/es/layout/layout-helper.js.map +1 -1
  149. package/es/layout/pivot-header-layout.js +56 -36
  150. package/es/layout/pivot-header-layout.js.map +1 -1
  151. package/es/scenegraph/component/custom.js +7 -3
  152. package/es/scenegraph/component/custom.js.map +1 -1
  153. package/es/scenegraph/debug-tool/debug-tool.js +1 -4
  154. package/es/scenegraph/debug-tool/debug-tool.js.map +1 -1
  155. package/es/scenegraph/graphic/chart.d.ts +0 -1
  156. package/es/scenegraph/graphic/chart.js +21 -33
  157. package/es/scenegraph/graphic/chart.js.map +1 -1
  158. package/es/scenegraph/graphic/contributions/chart-render-helper.js +8 -20
  159. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  160. package/es/scenegraph/graphic/contributions/chart-render.d.ts +1 -2
  161. package/es/scenegraph/graphic/contributions/chart-render.js +25 -41
  162. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
  163. package/es/scenegraph/group-creater/cell-helper.js +4 -0
  164. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  165. package/es/scenegraph/group-creater/cell-type/chart-cell.js +1 -2
  166. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -1
  167. package/es/scenegraph/layout/compute-col-width.js +2 -2
  168. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  169. package/es/scenegraph/layout/compute-row-height.js +2 -2
  170. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  171. package/es/scenegraph/layout/update-width.js +3 -0
  172. package/es/scenegraph/layout/update-width.js.map +1 -1
  173. package/es/scenegraph/refresh-node/update-chart.d.ts +0 -1
  174. package/es/scenegraph/refresh-node/update-chart.js +0 -6
  175. package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
  176. package/es/scenegraph/scenegraph.d.ts +1 -0
  177. package/es/scenegraph/scenegraph.js +15 -12
  178. package/es/scenegraph/scenegraph.js.map +1 -1
  179. package/es/themes/ARCO.js +1 -1
  180. package/es/themes/BRIGHT.js +1 -1
  181. package/es/themes/DARK.js +1 -1
  182. package/es/themes/DEFAULT.js +1 -1
  183. package/es/themes/SIMPLIFY.js +1 -1
  184. package/es/themes/theme.js +6 -0
  185. package/es/themes/theme.js.map +1 -1
  186. package/es/tools/LimitPromiseQueue.js +1 -1
  187. package/es/tools/NumberMap.js +1 -1
  188. package/es/tools/Rect.js +1 -1
  189. package/es/tools/calc.js +1 -1
  190. package/es/tools/debounce.js +1 -1
  191. package/es/tools/diff-cell.js +1 -1
  192. package/es/ts-types/base-table.d.ts +12 -15
  193. package/es/ts-types/base-table.js.map +1 -1
  194. package/es/ts-types/customLayout.d.ts +1 -1
  195. package/es/ts-types/customLayout.js.map +1 -1
  196. package/es/ts-types/icon.d.ts +2 -0
  197. package/es/ts-types/icon.js.map +1 -1
  198. package/es/ts-types/theme.d.ts +2 -0
  199. package/es/ts-types/theme.js.map +1 -1
  200. package/es/ts-types/tooltip.d.ts +2 -0
  201. package/es/ts-types/tooltip.js.map +1 -1
  202. package/es/vrender.d.ts +4 -0
  203. package/es/vrender.js +9 -3
  204. package/es/vrender.js.map +1 -1
  205. package/package.json +6 -5
  206. package/cjs/core/utils/get-cell-position.d.ts +0 -42
  207. package/cjs/core/utils/get-cell-position.js +0 -206
  208. package/cjs/core/utils/get-cell-position.js.map +0 -1
  209. package/es/core/utils/get-cell-position.d.ts +0 -42
  210. package/es/core/utils/get-cell-position.js +0 -194
  211. package/es/core/utils/get-cell-position.js.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import type { BaseTable } from '../core';
2
2
  import type { Rect } from '../tools/Rect';
3
3
  export declare class FocusInput extends EventTarget {
4
- private _container;
5
4
  private _table;
6
5
  private _input;
7
6
  constructor(table: BaseTable, parentElement: HTMLElement);
@@ -14,7 +14,7 @@ class FocusInput extends EventTarget {
14
14
  div.classList.add("input-container");
15
15
  const input = this._input = document.createElement("input");
16
16
  div.appendChild(input), input.classList.add("table-focus-control"), input.dataset.vtable = "vtable",
17
- input.readOnly = !0, parentElement.appendChild(div), this._container = div;
17
+ input.readOnly = !0, parentElement.appendChild(div);
18
18
  }
19
19
  focus() {
20
20
  this._input.focus({
@@ -31,10 +31,7 @@ class FocusInput extends EventTarget {
31
31
  get input() {
32
32
  return this._input;
33
33
  }
34
- release() {
35
- var _a;
36
- null === (_a = this._container.parentElement) || void 0 === _a || _a.removeChild(this._container);
37
- }
34
+ release() {}
38
35
  }
39
36
 
40
37
  exports.FocusInput = FocusInput;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/FouseInput.ts"],"names":[],"mappings":";;;AAEA,sCAAmC;AAEnC,MAAa,UAAW,SAAQ,WAAW;IAIzC,YAAY,KAAgB,EAAE,aAA0B;QACtD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,SAAG,CAAC,IAAI,KAAK,MAAM,EAAE;YACvB,OAAO;SACR;QACD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE1C,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;QACxB,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC;QAC9B,GAAG,CAAC,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC;QACjC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9D,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACvB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAC3C,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC;QAChC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;QACtB,aAAa,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;IACxB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,YAAY,CAAC,IAAU,EAAE,KAAa;QACpC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QAEpB,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;QAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;QAChD,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC;QACvC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;QACzC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC;QAChD,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC;IACpD,CAAC;IACD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO;;QAEL,MAAA,IAAI,CAAC,UAAU,CAAC,aAAa,0CAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC;CACF;AA/CD,gCA+CC","file":"FouseInput.js","sourcesContent":["import type { BaseTable } from '../core';\nimport type { Rect } from '../tools/Rect';\nimport { Env } from '../tools/env';\n\nexport class FocusInput extends EventTarget {\n private _container: HTMLDivElement;\n private _table: BaseTable;\n private _input: HTMLInputElement;\n constructor(table: BaseTable, parentElement: HTMLElement) {\n super();\n this._table = table;\n if (Env.mode === 'node') {\n return;\n }\n const div = document.createElement('div'); //再加一层 C360插件逻辑中用的window.getSelection()来判断的滚动\n // div.style.position = 'fixed';//定位不能使用fixed 在父级transform非none的时候 都会有问题\n div.style.opacity = '0';\n div.dataset.vtable = 'vtable'; //这里不能变 C360取元素的依据\n div.style.pointerEvents = 'none';\n div.classList.add('input-container');\n const input = (this._input = document.createElement('input'));\n div.appendChild(input);\n input.classList.add('table-focus-control');\n input.dataset.vtable = 'vtable';\n input.readOnly = true;\n parentElement.appendChild(div);\n this._container = div;\n }\n\n focus(): void {\n this._input.focus({ preventScroll: true });\n }\n setFocusRect(rect: Rect, value: string): void {\n const input = this._input;\n input.value = value;\n // input.focus({ preventScroll: true });\n input.select();\n const top = rect.top - this._table.scrollTop;\n const left = rect.left - this._table.scrollLeft;\n input.style.top = `${top.toFixed()}px`;\n input.style.left = `${left.toFixed()}px`;\n input.style.width = `${rect.width.toFixed()}px`;\n input.style.height = `${rect.height.toFixed()}px`;\n }\n get input(): HTMLInputElement {\n return this._input;\n }\n release(): void {\n // document.removeChild(this._input);\n this._container.parentElement?.removeChild(this._container);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/core/FouseInput.ts"],"names":[],"mappings":";;;AAEA,sCAAmC;AAEnC,MAAa,UAAW,SAAQ,WAAW;IAGzC,YAAY,KAAgB,EAAE,aAA0B;QACtD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,SAAG,CAAC,IAAI,KAAK,MAAM,EAAE;YACvB,OAAO;SACR;QACD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE1C,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;QACxB,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC;QAC9B,GAAG,CAAC,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC;QACjC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACrC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9D,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACvB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAC3C,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC;QAChC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;QACtB,aAAa,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,YAAY,CAAC,IAAU,EAAE,KAAa;QACpC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QAEpB,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;QAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;QAChD,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC;QACvC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;QACzC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC;QAChD,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC;IACpD,CAAC;IACD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,OAAO;IAEP,CAAC;CACF;AA5CD,gCA4CC","file":"FouseInput.js","sourcesContent":["import type { BaseTable } from '../core';\nimport type { Rect } from '../tools/Rect';\nimport { Env } from '../tools/env';\n\nexport class FocusInput extends EventTarget {\n private _table: BaseTable;\n private _input: HTMLInputElement;\n constructor(table: BaseTable, parentElement: HTMLElement) {\n super();\n this._table = table;\n if (Env.mode === 'node') {\n return;\n }\n const div = document.createElement('div'); //再加一层 C360插件逻辑中用的window.getSelection()来判断的滚动\n // div.style.position = 'fixed';//定位不能使用fixed 在父级transform非none的时候 都会有问题\n div.style.opacity = '0';\n div.dataset.vtable = 'vtable'; //这里不能变 C360取元素的依据\n div.style.pointerEvents = 'none';\n div.classList.add('input-container');\n const input = (this._input = document.createElement('input'));\n div.appendChild(input);\n input.classList.add('table-focus-control');\n input.dataset.vtable = 'vtable';\n input.readOnly = true;\n parentElement.appendChild(div);\n }\n\n focus(): void {\n this._input.focus({ preventScroll: true });\n }\n setFocusRect(rect: Rect, value: string): void {\n const input = this._input;\n input.value = value;\n // input.focus({ preventScroll: true });\n input.select();\n const top = rect.top - this._table.scrollTop;\n const left = rect.left - this._table.scrollLeft;\n input.style.top = `${top.toFixed()}px`;\n input.style.left = `${left.toFixed()}px`;\n input.style.width = `${rect.width.toFixed()}px`;\n input.style.height = `${rect.height.toFixed()}px`;\n }\n get input(): HTMLInputElement {\n return this._input;\n }\n release(): void {\n // document.removeChild(this._input);\n }\n}\n"]}
package/cjs/core/style.js CHANGED
@@ -9,7 +9,7 @@ const env_1 = require("../tools/env");
9
9
  function importStyle() {
10
10
  if ("node" === env_1.Env.mode) return;
11
11
  const styleElement = document.createElement("style");
12
- styleElement.id = "vtable-style-styleSheet", styleElement.textContent = "\n.vtable .input-container {\n\tposition: absolute;\n\ttop:0px;\n}\n.vtable .table-scrollable {\n\tposition: absolute;\n\toverflow: scroll;\n}\n.vtable .table-scrollable::-webkit-scrollbar-button{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-track-piece{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-corner {\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-thumb {\n\tborder-radius : 4px;\n\tbackground-color : rgba(100, 100, 100, .5);\n}\n\n.vtable .table-scroll-end-point {\n\topacity: 0;\n\tposition: relative;\n}\n.vtable {\n\t/* 设置overflow: auto 应该是为了滚动条的某个问题 但设置了auto之后 dom的下拉菜单只能显示在vtable节点中 超出会截断;现在去掉auto 暂时滚动条的问题没有发现 */\n\t/* overflow: auto; */\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: left;\n -webkit-font-smoothing:auto;\n}\n.vtable > canvas {\n\tposition: absolute;\n\twidth: 0;\n\theight: 0;\n}\n.vtable .table-focus-control {\n\tposition: relative !important;\n\twidth: 1px;\n\theight: 1px;\n\topacity: 0;\n\tpadding: 0;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tpointer-events: none;\n\tmax-width: 500px;\n\tmax-height: 500px;\n\tfloat: none !important;\n}\n.vtable input.table-focus-control::-ms-clear {\n\tvisibility: hidden;\n}\n.vtable input.table-focus-control.composition {\n\topacity: 1;\n\tmax-width: none;\n\tmax-height: none;\n}\n",
12
+ styleElement.id = "vtable-style-styleSheet", styleElement.textContent = "\n.vtable .input-container {\n\tposition: absolute;\n\ttop:0px;\n}\n.vtable .table-scrollable {\n\tposition: absolute;\n\toverflow: scroll;\n}\n.vtable .table-scrollable::-webkit-scrollbar-button{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-track-piece{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-corner {\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-thumb {\n\tborder-radius : 4px;\n\tbackground-color : rgba(100, 100, 100, .5);\n}\n\n.vtable .table-scroll-end-point {\n\topacity: 0;\n\tposition: relative;\n}\n.vtable {\n\t/* 设置overflow: auto 应该是为了滚动条的某个问题 但设置了auto之后 dom的下拉菜单只能显示在vtable节点中 超出会截断;现在去掉auto 暂时滚动条的问题没有发现 */\n\t/* overflow: auto; */\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: left;\n -webkit-font-smoothing:auto;\n\n overflow: hidden; // for react-vtable dom custom element\n}\n.vtable .table-component-container {\n pointer-events: none;\n overflow: hidden;\n position: absolute;\n top: 0px;\n left: 0px;\n}\n.vtable > canvas {\n\tposition: absolute;\n\twidth: 0;\n\theight: 0;\n}\n.vtable .table-focus-control {\n\tposition: relative !important;\n\twidth: 1px;\n\theight: 1px;\n\topacity: 0;\n\tpadding: 0;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tpointer-events: none;\n\tmax-width: 500px;\n\tmax-height: 500px;\n\tfloat: none !important;\n}\n.vtable input.table-focus-control::-ms-clear {\n\tvisibility: hidden;\n}\n.vtable input.table-focus-control.composition {\n\topacity: 1;\n\tmax-width: none;\n\tmax-height: none;\n}\n",
13
13
  document.head.appendChild(styleElement);
14
14
  }
15
15
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/style.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAEnC,SAAgB,WAAW;IACzB,IAAI,SAAG,CAAC,IAAI,KAAK,MAAM,EAAE;QACvB,OAAO;KACR;IACD,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,GAAG,yBAAyB,CAAC;IAC5C,YAAY,CAAC,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D5B,CAAC;IAEA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;AAC1C,CAAC;AAvED,kCAuEC","file":"style.js","sourcesContent":["import { Env } from '../tools/env';\n\nexport function importStyle() {\n if (Env.mode === 'node') {\n return;\n }\n const styleElement = document.createElement('style');\n styleElement.id = 'vtable-style-styleSheet';\n styleElement.textContent = `\n.vtable .input-container {\n\tposition: absolute;\n\ttop:0px;\n}\n.vtable .table-scrollable {\n\tposition: absolute;\n\toverflow: scroll;\n}\n.vtable .table-scrollable::-webkit-scrollbar-button{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-track-piece{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-corner {\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-thumb {\n\tborder-radius : 4px;\n\tbackground-color : rgba(100, 100, 100, .5);\n}\n\n.vtable .table-scroll-end-point {\n\topacity: 0;\n\tposition: relative;\n}\n.vtable {\n\t/* 设置overflow: auto 应该是为了滚动条的某个问题 但设置了auto之后 dom的下拉菜单只能显示在vtable节点中 超出会截断;现在去掉auto 暂时滚动条的问题没有发现 */\n\t/* overflow: auto; */\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: left;\n -webkit-font-smoothing:auto;\n}\n.vtable > canvas {\n\tposition: absolute;\n\twidth: 0;\n\theight: 0;\n}\n.vtable .table-focus-control {\n\tposition: relative !important;\n\twidth: 1px;\n\theight: 1px;\n\topacity: 0;\n\tpadding: 0;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tpointer-events: none;\n\tmax-width: 500px;\n\tmax-height: 500px;\n\tfloat: none !important;\n}\n.vtable input.table-focus-control::-ms-clear {\n\tvisibility: hidden;\n}\n.vtable input.table-focus-control.composition {\n\topacity: 1;\n\tmax-width: none;\n\tmax-height: none;\n}\n`;\n\n document.head.appendChild(styleElement);\n}\n"]}
1
+ {"version":3,"sources":["../src/core/style.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAEnC,SAAgB,WAAW;IACzB,IAAI,SAAG,CAAC,IAAI,KAAK,MAAM,EAAE;QACvB,OAAO;KACR;IACD,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,GAAG,yBAAyB,CAAC;IAC5C,YAAY,CAAC,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE5B,CAAC;IAEA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;AAC1C,CAAC;AAhFD,kCAgFC","file":"style.js","sourcesContent":["import { Env } from '../tools/env';\n\nexport function importStyle() {\n if (Env.mode === 'node') {\n return;\n }\n const styleElement = document.createElement('style');\n styleElement.id = 'vtable-style-styleSheet';\n styleElement.textContent = `\n.vtable .input-container {\n\tposition: absolute;\n\ttop:0px;\n}\n.vtable .table-scrollable {\n\tposition: absolute;\n\toverflow: scroll;\n}\n.vtable .table-scrollable::-webkit-scrollbar-button{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-track-piece{\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-corner {\n\tbackground-color: transparent;\n}\n.vtable .table-scrollable::-webkit-scrollbar-thumb {\n\tborder-radius : 4px;\n\tbackground-color : rgba(100, 100, 100, .5);\n}\n\n.vtable .table-scroll-end-point {\n\topacity: 0;\n\tposition: relative;\n}\n.vtable {\n\t/* 设置overflow: auto 应该是为了滚动条的某个问题 但设置了auto之后 dom的下拉菜单只能显示在vtable节点中 超出会截断;现在去掉auto 暂时滚动条的问题没有发现 */\n\t/* overflow: auto; */\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: left;\n -webkit-font-smoothing:auto;\n\n overflow: hidden; // for react-vtable dom custom element\n}\n.vtable .table-component-container {\n pointer-events: none;\n overflow: hidden;\n position: absolute;\n top: 0px;\n left: 0px;\n}\n.vtable > canvas {\n\tposition: absolute;\n\twidth: 0;\n\theight: 0;\n}\n.vtable .table-focus-control {\n\tposition: relative !important;\n\twidth: 1px;\n\theight: 1px;\n\topacity: 0;\n\tpadding: 0;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\tpointer-events: none;\n\tmax-width: 500px;\n\tmax-height: 500px;\n\tfloat: none !important;\n}\n.vtable input.table-focus-control::-ms-clear {\n\tvisibility: hidden;\n}\n.vtable input.table-focus-control.composition {\n\topacity: 1;\n\tmax-width: none;\n\tmax-height: none;\n}\n`;\n\n document.head.appendChild(styleElement);\n}\n"]}
@@ -41,7 +41,9 @@ export declare class Dataset {
41
41
  collectedValues: Record<string, Record<string, CollectedValue>>;
42
42
  cacheCollectedValues: Record<string, Record<string, CollectedValue>>;
43
43
  rows: string[];
44
+ rowsHasValue: boolean[];
44
45
  columns: string[];
46
+ columnsHasValue: boolean[];
45
47
  indicatorKeys: string[];
46
48
  customRowTree?: IHeaderTreeDefine[];
47
49
  customColTree?: IHeaderTreeDefine[];
@@ -43,7 +43,8 @@ class Dataset {
43
43
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
44
44
  if (this.records = records, this.collectedValues = {}, this.cacheCollectedValues = {},
45
45
  this.totalRecordsTree = {}, this.tree = {}, this.colFlatKeys = {}, this.rowFlatKeys = {},
46
- this.colKeys = [], this.rowKeys = [], records) {
46
+ this.colKeys = [], this.rowKeys = [], this.rowsHasValue = [], this.columnsHasValue = [],
47
+ records) {
47
48
  this.records = records;
48
49
  "undefined" != typeof window && window.performance.now();
49
50
  this.processRecords(), this.processCollectedValuesWithSumBy(), this.generateCollectedValuesSortRule(),
@@ -53,8 +54,8 @@ class Dataset {
53
54
  "undefined" != typeof window && window.performance.now(), "undefined" != typeof window && window.performance.now();
54
55
  this.sortKeys();
55
56
  "undefined" != typeof window && window.performance.now(), "undefined" != typeof window && window.performance.now();
56
- this.customRowTree ? this.rowHeaderTree = this.customRowTree : "tree" === this.rowHierarchyType ? this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows, this.indicatorsAsCol ? void 0 : this.indicators, (null === (_b = null === (_a = this.totals) || void 0 === _a ? void 0 : _a.row) || void 0 === _b ? void 0 : _b.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel) : this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows, this.indicatorsAsCol ? void 0 : this.indicators, this.rowsIsTotal, (null === (_d = null === (_c = this.totals) || void 0 === _c ? void 0 : _c.row) || void 0 === _d ? void 0 : _d.showGrandTotals) || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel, this.rowSubTotalLabel, null !== (_g = null === (_f = null === (_e = this.totals) || void 0 === _e ? void 0 : _e.row) || void 0 === _f ? void 0 : _f.showGrandTotalsOnTop) && void 0 !== _g && _g, null !== (_k = null === (_j = null === (_h = this.totals) || void 0 === _h ? void 0 : _h.row) || void 0 === _j ? void 0 : _j.showSubTotalsOnTop) && void 0 !== _k && _k),
57
- this.customColTree ? this.colHeaderTree = this.customColTree : this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns, this.indicatorsAsCol ? this.indicators : void 0, this.colsIsTotal, (null === (_m = null === (_l = this.totals) || void 0 === _l ? void 0 : _l.column) || void 0 === _m ? void 0 : _m.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length, this.colGrandTotalLabel, this.colSubTotalLabel, null !== (_q = null === (_p = null === (_o = this.totals) || void 0 === _o ? void 0 : _o.column) || void 0 === _p ? void 0 : _p.showGrandTotalsOnLeft) && void 0 !== _q && _q, null !== (_t = null === (_s = null === (_r = this.totals) || void 0 === _r ? void 0 : _r.column) || void 0 === _s ? void 0 : _s.showSubTotalsOnLeft) && void 0 !== _t && _t);
57
+ this.customRowTree ? this.rowHeaderTree = this.customRowTree : "tree" === this.rowHierarchyType ? this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.filter(((key, index) => this.rowsHasValue[index])), this.indicatorsAsCol ? void 0 : this.indicators, (null === (_b = null === (_a = this.totals) || void 0 === _a ? void 0 : _a.row) || void 0 === _b ? void 0 : _b.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel) : this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter(((key, index) => this.rowsHasValue[index])), this.indicatorsAsCol ? void 0 : this.indicators, this.rowsIsTotal, (null === (_d = null === (_c = this.totals) || void 0 === _c ? void 0 : _c.row) || void 0 === _d ? void 0 : _d.showGrandTotals) || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel, this.rowSubTotalLabel, null !== (_g = null === (_f = null === (_e = this.totals) || void 0 === _e ? void 0 : _e.row) || void 0 === _f ? void 0 : _f.showGrandTotalsOnTop) && void 0 !== _g && _g, null !== (_k = null === (_j = null === (_h = this.totals) || void 0 === _h ? void 0 : _h.row) || void 0 === _j ? void 0 : _j.showSubTotalsOnTop) && void 0 !== _k && _k),
58
+ this.customColTree ? this.colHeaderTree = this.customColTree : this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.filter(((key, index) => this.columnsHasValue[index])), this.indicatorsAsCol ? this.indicators : void 0, this.colsIsTotal, (null === (_m = null === (_l = this.totals) || void 0 === _l ? void 0 : _l.column) || void 0 === _m ? void 0 : _m.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length, this.colGrandTotalLabel, this.colSubTotalLabel, null !== (_q = null === (_p = null === (_o = this.totals) || void 0 === _o ? void 0 : _o.column) || void 0 === _p ? void 0 : _p.showGrandTotalsOnLeft) && void 0 !== _q && _q, null !== (_t = null === (_s = null === (_r = this.totals) || void 0 === _r ? void 0 : _r.column) || void 0 === _s ? void 0 : _s.showSubTotalsOnLeft) && void 0 !== _t && _t);
58
59
  "undefined" != typeof window && window.performance.now();
59
60
  (null === (_u = this.dataConfig) || void 0 === _u ? void 0 : _u.isPivotChart) && this.cacheDeminsionCollectedValues();
60
61
  }
@@ -161,7 +162,7 @@ class Dataset {
161
162
  let isToTalRecord = !1;
162
163
  for (let l = 0, len1 = this.rows.length; l < len1; l++) {
163
164
  const rowAttr = this.rows[l];
164
- if (rowAttr in record) rowKey.push(record[rowAttr]); else if (rowAttr !== global_1.IndicatorDimensionKeyPlaceholder) {
165
+ if (rowAttr in record) this.rowsHasValue[l] = !0, rowKey.push(record[rowAttr]); else if (rowAttr !== global_1.IndicatorDimensionKeyPlaceholder) {
165
166
  if ((null === (_d = null === (_c = null === (_b = this.dataConfig) || void 0 === _b ? void 0 : _b.totals) || void 0 === _c ? void 0 : _c.row) || void 0 === _d ? void 0 : _d.showGrandTotals) && 0 === l && !this.rows.find((rk => rk in record))) {
166
167
  rowKey.push(this.rowGrandTotalLabel), isToTalRecord = !0;
167
168
  break;
@@ -174,7 +175,7 @@ class Dataset {
174
175
  }
175
176
  for (let n = 0, len2 = this.columns.length; n < len2; n++) {
176
177
  const colAttr = this.columns[n];
177
- if (colAttr in record) colKey.push(record[colAttr]); else if (colAttr !== global_1.IndicatorDimensionKeyPlaceholder) {
178
+ if (colAttr in record) this.columnsHasValue[n] = !0, colKey.push(record[colAttr]); else if (colAttr !== global_1.IndicatorDimensionKeyPlaceholder) {
178
179
  if ((null === (_o = null === (_m = null === (_l = this.dataConfig) || void 0 === _l ? void 0 : _l.totals) || void 0 === _m ? void 0 : _m.column) || void 0 === _o ? void 0 : _o.showGrandTotals) && 0 === n && !this.columns.find((ck => ck in record))) {
179
180
  colKey.push(this.colGrandTotalLabel), isToTalRecord = !0;
180
181
  break;
@@ -224,8 +225,8 @@ class Dataset {
224
225
  }
225
226
  updateSortRules(sortRules) {
226
227
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
227
- this.sorted = !1, this.sortRules = sortRules, this.sortKeys(), this.customRowTree || ("tree" === this.rowHierarchyType ? this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows, this.indicatorsAsCol ? void 0 : this.indicators, (null === (_b = null === (_a = this.totals) || void 0 === _a ? void 0 : _a.row) || void 0 === _b ? void 0 : _b.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel) : this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows, this.indicatorsAsCol ? void 0 : this.indicators, this.rowsIsTotal, (null === (_d = null === (_c = this.totals) || void 0 === _c ? void 0 : _c.row) || void 0 === _d ? void 0 : _d.showGrandTotals) || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel, this.rowSubTotalLabel, null !== (_g = null === (_f = null === (_e = this.totals) || void 0 === _e ? void 0 : _e.row) || void 0 === _f ? void 0 : _f.showGrandTotalsOnTop) && void 0 !== _g && _g, null !== (_k = null === (_j = null === (_h = this.totals) || void 0 === _h ? void 0 : _h.row) || void 0 === _j ? void 0 : _j.showSubTotalsOnTop) && void 0 !== _k && _k)),
228
- this.customColTree || (this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns, this.indicatorsAsCol ? this.indicators : void 0, this.colsIsTotal, (null === (_m = null === (_l = this.totals) || void 0 === _l ? void 0 : _l.column) || void 0 === _m ? void 0 : _m.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length, this.colGrandTotalLabel, this.colSubTotalLabel, null !== (_q = null === (_p = null === (_o = this.totals) || void 0 === _o ? void 0 : _o.column) || void 0 === _p ? void 0 : _p.showGrandTotalsOnLeft) && void 0 !== _q && _q, null !== (_t = null === (_s = null === (_r = this.totals) || void 0 === _r ? void 0 : _r.column) || void 0 === _s ? void 0 : _s.showSubTotalsOnLeft) && void 0 !== _t && _t));
228
+ this.sorted = !1, this.sortRules = sortRules, this.sortKeys(), this.customRowTree || ("tree" === this.rowHierarchyType ? this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.filter(((key, index) => this.rowsHasValue[index])), this.indicatorsAsCol ? void 0 : this.indicators, (null === (_b = null === (_a = this.totals) || void 0 === _a ? void 0 : _a.row) || void 0 === _b ? void 0 : _b.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel) : this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter(((key, index) => this.rowsHasValue[index])), this.indicatorsAsCol ? void 0 : this.indicators, this.rowsIsTotal, (null === (_d = null === (_c = this.totals) || void 0 === _c ? void 0 : _c.row) || void 0 === _d ? void 0 : _d.showGrandTotals) || this.indicatorsAsCol && 0 === this.rows.length, this.rowGrandTotalLabel, this.rowSubTotalLabel, null !== (_g = null === (_f = null === (_e = this.totals) || void 0 === _e ? void 0 : _e.row) || void 0 === _f ? void 0 : _f.showGrandTotalsOnTop) && void 0 !== _g && _g, null !== (_k = null === (_j = null === (_h = this.totals) || void 0 === _h ? void 0 : _h.row) || void 0 === _j ? void 0 : _j.showSubTotalsOnTop) && void 0 !== _k && _k)),
229
+ this.customColTree || (this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.filter(((key, index) => this.columnsHasValue[index])), this.indicatorsAsCol ? this.indicators : void 0, this.colsIsTotal, (null === (_m = null === (_l = this.totals) || void 0 === _l ? void 0 : _l.column) || void 0 === _m ? void 0 : _m.showGrandTotals) || !this.indicatorsAsCol && 0 === this.columns.length, this.colGrandTotalLabel, this.colSubTotalLabel, null !== (_q = null === (_p = null === (_o = this.totals) || void 0 === _o ? void 0 : _o.column) || void 0 === _p ? void 0 : _p.showGrandTotalsOnLeft) && void 0 !== _q && _q, null !== (_t = null === (_s = null === (_r = this.totals) || void 0 === _r ? void 0 : _r.column) || void 0 === _s ? void 0 : _s.showSubTotalsOnLeft) && void 0 !== _t && _t));
229
230
  }
230
231
  updateFilterRules(filterRules, isResetTree = !1) {
231
232
  var _a;