@visactor/vtable 1.22.9-alpha.2 → 1.22.9-alpha.3
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/ListTable.js +7 -4
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotTable.js +10 -7
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +2 -3
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset-pivot-table.js +2 -1
- package/cjs/dataset/dataset.js +8 -2
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/edit/edit-manager.d.ts +3 -2
- package/cjs/edit/edit-manager.js +36 -6
- package/cjs/edit/edit-manager.js.map +1 -1
- package/cjs/event/listener/container-dom.js +15 -7
- package/cjs/event/listener/container-dom.js.map +1 -1
- package/cjs/event/scroll.js +1 -2
- package/cjs/header-helper/header-helper.js +1 -1
- package/cjs/header-helper/style.js +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/pivot-header-layout.js +1 -2
- package/cjs/layout/row-height-map.js +1 -1
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/tree-helper.js +1 -1
- package/cjs/plugins/custom-cell-style.js +2 -1
- package/cjs/plugins/index.js +1 -1
- package/cjs/plugins/interface.js +1 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/plugins/plugin-manager.js +1 -1
- package/cjs/scenegraph/component/menu.d.ts +1 -1
- package/cjs/scenegraph/scenegraph.js +1 -1
- package/cjs/scenegraph/utils/text-measure.d.ts +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/themes/ARCO.js +1 -1
- package/cjs/themes/BRIGHT.js +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +2902 -4543
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +7 -4
- package/es/ListTable.js.map +1 -1
- package/es/PivotTable.js +10 -7
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +2 -3
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset-pivot-table.js +2 -1
- package/es/dataset/dataset.js +8 -2
- package/es/dataset/dataset.js.map +1 -1
- package/es/edit/edit-manager.d.ts +3 -2
- package/es/edit/edit-manager.js +36 -6
- package/es/edit/edit-manager.js.map +1 -1
- package/es/event/listener/container-dom.js +15 -7
- package/es/event/listener/container-dom.js.map +1 -1
- package/es/event/scroll.js +1 -2
- package/es/header-helper/header-helper.js +1 -1
- package/es/header-helper/style.js +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/pivot-header-layout.js +1 -2
- 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 +2 -1
- package/es/plugins/index.js +1 -1
- package/es/plugins/interface.js +1 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/plugins/plugin-manager.js +1 -1
- package/es/scenegraph/component/menu.d.ts +1 -1
- package/es/scenegraph/scenegraph.js +1 -1
- package/es/scenegraph/utils/text-measure.d.ts +1 -1
- package/es/state/state.js +1 -1
- package/es/themes/ARCO.js +1 -1
- package/es/themes/BRIGHT.js +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +11 -11
package/cjs/dataset/dataset.js
CHANGED
|
@@ -363,8 +363,14 @@ class Dataset {
|
|
|
363
363
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
364
364
|
const indicatorIndex = this.indicatorKeys.indexOf(indicator);
|
|
365
365
|
let rowDimensionKey, colDimensionKey, flatRowKey, flatColKey;
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
if ("row" === (null == indicatorPosition ? void 0 : indicatorPosition.position)) rowDimensionKey = rowKey.length >= 2 ? this.rows[rowKey.length - 2] : void 0; else {
|
|
367
|
+
const rowIndex = rowKey.length - 1;
|
|
368
|
+
rowDimensionKey = rowIndex >= 0 && rowIndex < this.rows.length ? this.rows[rowIndex] : void 0;
|
|
369
|
+
}
|
|
370
|
+
if ("col" === (null == indicatorPosition ? void 0 : indicatorPosition.position)) colDimensionKey = colKey.length >= 2 ? this.columns[colKey.length - 2] : void 0; else {
|
|
371
|
+
const colIndex = colKey.length - 1;
|
|
372
|
+
colDimensionKey = colIndex >= 0 && colIndex < this.columns.length ? this.columns[colIndex] : void 0;
|
|
373
|
+
}
|
|
368
374
|
"string" == typeof rowKey ? flatRowKey = rowKey : (indicatorPosition && "row" !== indicatorPosition.position || rowKey.map(((key, i) => {
|
|
369
375
|
key !== indicator || (0, vutils_1.isValid)(null == indicatorPosition ? void 0 : indicatorPosition.index) && i !== indicatorPosition.index || rowKey.splice(i, 1);
|
|
370
376
|
})), rowKey.length < this.rows.length && "grid-tree" === this.rowHierarchyType && (rowKey[0] === this.rowGrandTotalLabel || (null === (_b = null === (_a = this.totals) || void 0 === _a ? void 0 : _a.row) || void 0 === _b ? void 0 : _b.subTotalsDimensions) && (null === (_e = null === (_d = null === (_c = this.totals) || void 0 === _c ? void 0 : _c.row) || void 0 === _d ? void 0 : _d.subTotalsDimensions) || void 0 === _e ? void 0 : _e.length) >= 1 && rowKey[rowKey.length - 1] !== this.rowSubTotalLabel && this.totals.row.subTotalsDimensions.find((dimension => dimension === rowDimensionKey)) && rowKey.push(this.rowSubTotalLabel)),
|