@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.
- package/cjs/core/BaseTable.d.ts +7 -0
- package/cjs/core/BaseTable.js +26 -9
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/DataStatistics.js +1 -2
- package/cjs/dataset/dataset.js +4 -3
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/layout-helper.js +2 -1
- package/cjs/layout/row-height-map.js +1 -1
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/tree-helper.js +2 -2
- package/cjs/plugins/custom-cell-style.js +1 -2
- package/cjs/plugins/icons.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/plugins/themes.js +1 -1
- package/cjs/scenegraph/layout/frozen-react.d.ts +5 -0
- package/cjs/scenegraph/layout/frozen-react.js +86 -0
- package/cjs/scenegraph/layout/frozen-react.js.map +1 -0
- package/cjs/scenegraph/layout/frozen.js +3 -2
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +2 -15
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +14 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +196 -34
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.d.ts +7 -0
- package/es/core/BaseTable.js +27 -9
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/DataStatistics.js +1 -2
- package/es/dataset/dataset.js +5 -4
- package/es/dataset/dataset.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/layout-helper.js +2 -1
- package/es/layout/row-height-map.js +1 -1
- package/es/layout/simple-header-layout.js +1 -1
- package/es/layout/tree-helper.js +1 -1
- package/es/plugins/custom-cell-style.js +1 -2
- package/es/plugins/icons.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/plugins/themes.js +1 -1
- package/es/scenegraph/layout/frozen-react.d.ts +5 -0
- package/es/scenegraph/layout/frozen-react.js +77 -0
- package/es/scenegraph/layout/frozen-react.js.map +1 -0
- package/es/scenegraph/layout/frozen.js +3 -1
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/scenegraph.js +3 -14
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/ts-types/base-table.d.ts +14 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/vrender.js.map +1 -1
- 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;
|
package/cjs/dataset/dataset.js
CHANGED
|
@@ -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
|
|
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 =
|
|
659
|
-
1 ===
|
|
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;
|