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

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 +5 -0
  2. package/cjs/PivotTable.js +13 -0
  3. package/cjs/PivotTable.js.map +1 -1
  4. package/cjs/core/BaseTable.js +15 -14
  5. package/cjs/core/BaseTable.js.map +1 -1
  6. package/cjs/dataset/dataset.js +6 -4
  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 +1 -2
  12. package/cjs/layout/pivot-header-layout.js +6 -4
  13. package/cjs/layout/pivot-header-layout.js.map +1 -1
  14. package/cjs/layout/pivot-layout.js +0 -2
  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 +2 -1
  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 +1 -2
  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 +13 -2
  32. package/cjs/scenegraph/select/create-select-border.js.map +1 -1
  33. package/cjs/state/state.js +79 -47
  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 +3 -1
  38. package/cjs/ts-types/common.js.map +1 -1
  39. package/cjs/ts-types/events.d.ts +3 -1
  40. package/cjs/ts-types/events.js.map +1 -1
  41. package/cjs/ts-types/table-engine.d.ts +1 -0
  42. package/cjs/ts-types/table-engine.js.map +1 -1
  43. package/cjs/vrender.js.map +1 -1
  44. package/dist/vtable.js +195 -67
  45. package/dist/vtable.min.js +1 -1
  46. package/es/PivotTable.d.ts +5 -0
  47. package/es/PivotTable.js +13 -0
  48. package/es/PivotTable.js.map +1 -1
  49. package/es/core/BaseTable.js +15 -14
  50. package/es/core/BaseTable.js.map +1 -1
  51. package/es/dataset/dataset.js +6 -4
  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 +1 -2
  57. package/es/layout/pivot-header-layout.js +6 -4
  58. package/es/layout/pivot-header-layout.js.map +1 -1
  59. package/es/layout/pivot-layout.js +0 -2
  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 +2 -1
  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 +1 -2
  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 +13 -2
  77. package/es/scenegraph/select/create-select-border.js.map +1 -1
  78. package/es/state/state.js +79 -47
  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 +3 -1
  83. package/es/ts-types/common.js.map +1 -1
  84. package/es/ts-types/events.d.ts +3 -1
  85. package/es/ts-types/events.js.map +1 -1
  86. package/es/ts-types/table-engine.d.ts +1 -0
  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,7 +664,8 @@ class Dataset {
664
664
  } : {
665
665
  indicatorKey: indicator.indicatorKey,
666
666
  value: indicator.title
667
- })) : []
667
+ })) : [],
668
+ role: "sub-total"
668
669
  };
669
670
  curChild.push(totalChild), curChild = null !== (_d = totalChild.children) && void 0 !== _d ? _d : [];
670
671
  }
@@ -692,7 +693,8 @@ class Dataset {
692
693
  } : {
693
694
  indicatorKey: indicator.indicatorKey,
694
695
  value: indicator.title
695
- }))) && void 0 !== _a ? _a : []
696
+ }))) && void 0 !== _a ? _a : [],
697
+ role: "grand-total"
696
698
  };
697
699
  showGrandTotalsOnTop ? result.unshift(node) : result.push(node);
698
700
  }
@@ -758,7 +760,7 @@ class Dataset {
758
760
  getFieldMatchColDimensionPaths(record) {
759
761
  var _a, _b;
760
762
  const fieldMatchDimensionPaths = [];
761
- for (let i = 0; null !== (_b = i < (null === (_a = this.customColTreeDimensionPaths) || void 0 === _a ? void 0 : _a.length)) && void 0 !== _b && _b; i++) {
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++) {
762
764
  const dimensionPath = this.customColTreeDimensionPaths[i];
763
765
  let isMatch = !0;
764
766
  for (let j = 0; j < dimensionPath.length; j++) {
@@ -775,7 +777,7 @@ class Dataset {
775
777
  getFieldMatchRowDimensionPaths(record) {
776
778
  var _a, _b;
777
779
  const fieldMatchDimensionPaths = [];
778
- for (let i = 0; null !== (_b = i < (null === (_a = this.customRowTreeDimensionPaths) || void 0 === _a ? void 0 : _a.length)) && void 0 !== _b && _b; i++) {
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++) {
779
781
  const dimensionPath = this.customRowTreeDimensionPaths[i];
780
782
  let isMatch = !0;
781
783
  for (let j = 0; j < dimensionPath.length; j++) {