@visactor/vtable 1.7.8-alpha.4 → 1.7.8-alpha.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 (57) hide show
  1. package/cjs/core/BaseTable.d.ts +7 -0
  2. package/cjs/core/BaseTable.js +26 -9
  3. package/cjs/core/BaseTable.js.map +1 -1
  4. package/cjs/dataset/DataStatistics.js +1 -2
  5. package/cjs/dataset/dataset.js +4 -3
  6. package/cjs/dataset/dataset.js.map +1 -1
  7. package/cjs/index.d.ts +1 -1
  8. package/cjs/index.js +1 -1
  9. package/cjs/index.js.map +1 -1
  10. package/cjs/layout/layout-helper.js +2 -1
  11. package/cjs/layout/row-height-map.js +1 -1
  12. package/cjs/layout/simple-header-layout.js +1 -1
  13. package/cjs/layout/tree-helper.js +2 -2
  14. package/cjs/plugins/custom-cell-style.js +1 -2
  15. package/cjs/plugins/icons.js +1 -1
  16. package/cjs/plugins/list-tree-stick-cell.js +1 -1
  17. package/cjs/plugins/themes.js +1 -1
  18. package/cjs/scenegraph/layout/frozen-react.d.ts +5 -0
  19. package/cjs/scenegraph/layout/frozen-react.js +86 -0
  20. package/cjs/scenegraph/layout/frozen-react.js.map +1 -0
  21. package/cjs/scenegraph/layout/frozen.js +3 -2
  22. package/cjs/scenegraph/layout/frozen.js.map +1 -1
  23. package/cjs/scenegraph/scenegraph.js +2 -15
  24. package/cjs/scenegraph/scenegraph.js.map +1 -1
  25. package/cjs/ts-types/base-table.d.ts +14 -0
  26. package/cjs/ts-types/base-table.js.map +1 -1
  27. package/cjs/vrender.js.map +1 -1
  28. package/dist/vtable.js +196 -34
  29. package/dist/vtable.min.js +2 -2
  30. package/es/core/BaseTable.d.ts +7 -0
  31. package/es/core/BaseTable.js +27 -9
  32. package/es/core/BaseTable.js.map +1 -1
  33. package/es/dataset/DataStatistics.js +1 -2
  34. package/es/dataset/dataset.js +5 -4
  35. package/es/dataset/dataset.js.map +1 -1
  36. package/es/index.d.ts +1 -1
  37. package/es/index.js +1 -1
  38. package/es/index.js.map +1 -1
  39. package/es/layout/layout-helper.js +2 -1
  40. package/es/layout/row-height-map.js +1 -1
  41. package/es/layout/simple-header-layout.js +1 -1
  42. package/es/layout/tree-helper.js +1 -1
  43. package/es/plugins/custom-cell-style.js +1 -2
  44. package/es/plugins/icons.js +1 -1
  45. package/es/plugins/list-tree-stick-cell.js +1 -1
  46. package/es/plugins/themes.js +1 -1
  47. package/es/scenegraph/layout/frozen-react.d.ts +5 -0
  48. package/es/scenegraph/layout/frozen-react.js +77 -0
  49. package/es/scenegraph/layout/frozen-react.js.map +1 -0
  50. package/es/scenegraph/layout/frozen.js +3 -1
  51. package/es/scenegraph/layout/frozen.js.map +1 -1
  52. package/es/scenegraph/scenegraph.js +3 -14
  53. package/es/scenegraph/scenegraph.js.map +1 -1
  54. package/es/ts-types/base-table.d.ts +14 -0
  55. package/es/ts-types/base-table.js.map +1 -1
  56. package/es/vrender.js.map +1 -1
  57. package/package.json +4 -4
@@ -77,5 +77,4 @@ function dateFormat(baseField, formatString, utcOutput, mthNames, dayNames) {
77
77
  Object.defineProperty(exports, "__esModule", {
78
78
  value: !0
79
79
  }), exports.dateFormat = exports.numberFormat = void 0, exports.numberFormat = numberFormat,
80
- exports.dateFormat = dateFormat;
81
- //# sourceMappingURL=DataStatistics.js.map
80
+ exports.dateFormat = dateFormat;
@@ -647,7 +647,7 @@ class Dataset {
647
647
  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]);
648
648
  }
649
649
  changeTreeNodeValue(rowKey = [], colKey = [], indicator, newValue) {
650
- var _a, _b, _c;
650
+ var _a;
651
651
  const indicatorIndex = this.indicatorKeys.indexOf(indicator);
652
652
  let flatRowKey, flatColKey;
653
653
  flatRowKey = "string" == typeof rowKey ? rowKey : rowKey.join(this.stringJoinChar),
@@ -655,8 +655,8 @@ class Dataset {
655
655
  (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] = [],
656
656
  this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue) : (this.changedTree[flatRowKey] = {},
657
657
  this.changedTree[flatRowKey][flatColKey] = [], this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue);
658
- const cellAggregator = null === (_c = null === (_b = this.tree[flatRowKey]) || void 0 === _b ? void 0 : _b[flatColKey]) || void 0 === _c ? void 0 : _c[indicatorIndex];
659
- 1 === (null == cellAggregator ? void 0 : cellAggregator.records.length) && (cellAggregator.records[0][this.indicatorKeys[indicatorIndex]] = newValue);
658
+ const cellAggregator = this.tree[flatRowKey][flatColKey][indicatorIndex];
659
+ 1 === cellAggregator.records.length && (cellAggregator.records[0][this.indicatorKeys[indicatorIndex]] = newValue);
660
660
  }
661
661
  changeRecordFieldValue(fieldName, oldValue, value) {
662
662
  let isIndicatorName = !1;
@@ -691,4 +691,5 @@ function arraySortByAnotherArray(array, sortArray) {
691
691
  }));
692
692
  }
693
693
 
694
+ //# sourceMappingURL=dataset.js.map
694
695
  exports.Dataset = Dataset;