@visactor/vtable 1.17.3-alpha.5 → 1.17.3-alpha.6

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 (89) hide show
  1. package/cjs/PivotTable.d.ts +0 -5
  2. package/cjs/PivotTable.js +0 -13
  3. package/cjs/PivotTable.js.map +1 -1
  4. package/cjs/core/BaseTable.js +14 -15
  5. package/cjs/core/BaseTable.js.map +1 -1
  6. package/cjs/dataset/dataset.js +4 -6
  7. package/cjs/dataset/dataset.js.map +1 -1
  8. package/cjs/index.d.ts +1 -1
  9. package/cjs/index.js +1 -1
  10. package/cjs/index.js.map +1 -1
  11. package/cjs/layout/index.js +2 -1
  12. package/cjs/layout/pivot-header-layout.js +4 -6
  13. package/cjs/layout/pivot-header-layout.js.map +1 -1
  14. package/cjs/layout/pivot-layout.js +2 -0
  15. package/cjs/layout/row-height-map.js +1 -1
  16. package/cjs/layout/simple-header-layout.js +1 -1
  17. package/cjs/layout/tree-helper.js +1 -1
  18. package/cjs/plugins/chartModules.js +1 -2
  19. package/cjs/plugins/custom-cell-style.js +1 -1
  20. package/cjs/plugins/icons.js +1 -1
  21. package/cjs/plugins/invert-highlight.js +1 -1
  22. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  23. package/cjs/plugins/themes.js +1 -1
  24. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  25. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +4 -4
  26. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  27. package/cjs/scenegraph/group-creater/progress/proxy.js +2 -1
  28. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  29. package/cjs/scenegraph/layout/frozen.js +5 -5
  30. package/cjs/scenegraph/layout/frozen.js.map +1 -1
  31. package/cjs/scenegraph/select/create-select-border.js +2 -13
  32. package/cjs/scenegraph/select/create-select-border.js.map +1 -1
  33. package/cjs/state/state.js +47 -79
  34. package/cjs/state/state.js.map +1 -1
  35. package/cjs/ts-types/base-table.d.ts +1 -1
  36. package/cjs/ts-types/base-table.js.map +1 -1
  37. package/cjs/ts-types/common.d.ts +1 -3
  38. package/cjs/ts-types/common.js.map +1 -1
  39. package/cjs/ts-types/events.d.ts +1 -3
  40. package/cjs/ts-types/events.js.map +1 -1
  41. package/cjs/ts-types/table-engine.d.ts +0 -1
  42. package/cjs/ts-types/table-engine.js.map +1 -1
  43. package/cjs/vrender.js.map +1 -1
  44. package/dist/vtable.js +67 -195
  45. package/dist/vtable.min.js +1 -1
  46. package/es/PivotTable.d.ts +0 -5
  47. package/es/PivotTable.js +0 -13
  48. package/es/PivotTable.js.map +1 -1
  49. package/es/core/BaseTable.js +14 -15
  50. package/es/core/BaseTable.js.map +1 -1
  51. package/es/dataset/dataset.js +4 -6
  52. package/es/dataset/dataset.js.map +1 -1
  53. package/es/index.d.ts +1 -1
  54. package/es/index.js +1 -1
  55. package/es/index.js.map +1 -1
  56. package/es/layout/index.js +2 -1
  57. package/es/layout/pivot-header-layout.js +4 -6
  58. package/es/layout/pivot-header-layout.js.map +1 -1
  59. package/es/layout/pivot-layout.js +2 -0
  60. package/es/layout/row-height-map.js +1 -1
  61. package/es/layout/simple-header-layout.js +1 -1
  62. package/es/layout/tree-helper.js +1 -1
  63. package/es/plugins/chartModules.js +1 -2
  64. package/es/plugins/custom-cell-style.js +1 -1
  65. package/es/plugins/icons.js +1 -1
  66. package/es/plugins/invert-highlight.js +1 -1
  67. package/es/plugins/list-tree-stick-cell.js +1 -1
  68. package/es/plugins/themes.js +1 -1
  69. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -1
  70. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +4 -4
  71. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -1
  72. package/es/scenegraph/group-creater/progress/proxy.js +2 -1
  73. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  74. package/es/scenegraph/layout/frozen.js +5 -5
  75. package/es/scenegraph/layout/frozen.js.map +1 -1
  76. package/es/scenegraph/select/create-select-border.js +2 -13
  77. package/es/scenegraph/select/create-select-border.js.map +1 -1
  78. package/es/state/state.js +47 -79
  79. package/es/state/state.js.map +1 -1
  80. package/es/ts-types/base-table.d.ts +1 -1
  81. package/es/ts-types/base-table.js.map +1 -1
  82. package/es/ts-types/common.d.ts +1 -3
  83. package/es/ts-types/common.js.map +1 -1
  84. package/es/ts-types/events.d.ts +1 -3
  85. package/es/ts-types/events.js.map +1 -1
  86. package/es/ts-types/table-engine.d.ts +0 -1
  87. package/es/ts-types/table-engine.js.map +1 -1
  88. package/es/vrender.js.map +1 -1
  89. package/package.json +2 -2
@@ -664,8 +664,7 @@ class Dataset {
664
664
  } : {
665
665
  indicatorKey: indicator.indicatorKey,
666
666
  value: indicator.title
667
- })) : [],
668
- role: "sub-total"
667
+ })) : []
669
668
  };
670
669
  curChild.push(totalChild), curChild = null !== (_d = totalChild.children) && void 0 !== _d ? _d : [];
671
670
  }
@@ -693,8 +692,7 @@ class Dataset {
693
692
  } : {
694
693
  indicatorKey: indicator.indicatorKey,
695
694
  value: indicator.title
696
- }))) && void 0 !== _a ? _a : [],
697
- role: "grand-total"
695
+ }))) && void 0 !== _a ? _a : []
698
696
  };
699
697
  showGrandTotalsOnTop ? result.unshift(node) : result.push(node);
700
698
  }
@@ -760,7 +758,7 @@ class Dataset {
760
758
  getFieldMatchColDimensionPaths(record) {
761
759
  var _a, _b;
762
760
  const fieldMatchDimensionPaths = [];
763
- for (let i = 0; i < (null !== (_b = null === (_a = this.customColTreeDimensionPaths) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0); i++) {
761
+ for (let i = 0; null !== (_b = i < (null === (_a = this.customColTreeDimensionPaths) || void 0 === _a ? void 0 : _a.length)) && void 0 !== _b && _b; i++) {
764
762
  const dimensionPath = this.customColTreeDimensionPaths[i];
765
763
  let isMatch = !0;
766
764
  for (let j = 0; j < dimensionPath.length; j++) {
@@ -777,7 +775,7 @@ class Dataset {
777
775
  getFieldMatchRowDimensionPaths(record) {
778
776
  var _a, _b;
779
777
  const fieldMatchDimensionPaths = [];
780
- for (let i = 0; i < (null !== (_b = null === (_a = this.customRowTreeDimensionPaths) || void 0 === _a ? void 0 : _a.length) && void 0 !== _b ? _b : 0); i++) {
778
+ for (let i = 0; null !== (_b = i < (null === (_a = this.customRowTreeDimensionPaths) || void 0 === _a ? void 0 : _a.length)) && void 0 !== _b && _b; i++) {
781
779
  const dimensionPath = this.customRowTreeDimensionPaths[i];
782
780
  let isMatch = !0;
783
781
  for (let j = 0; j < dimensionPath.length; j++) {