@visactor/vtable 1.17.6-alpha.0 → 1.17.6-alpha.2
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 +1 -19
- package/cjs/ListTable.js.map +1 -1
- package/cjs/body-helper/body-helper.js +2 -1
- package/cjs/body-helper/style.js +1 -2
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/listener/table-group.js +1 -1
- package/cjs/event/listener/table-group.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/simple-header-layout.d.ts +1 -3
- package/cjs/layout/simple-header-layout.js +5 -11
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +4 -2
- package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +2 -2
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/ts-types/events.d.ts +0 -1
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +0 -2
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +18 -40
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.js +1 -19
- package/es/ListTable.js.map +1 -1
- package/es/body-helper/body-helper.js +2 -1
- package/es/body-helper/style.js +1 -2
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/listener/table-group.js +1 -1
- package/es/event/listener/table-group.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/simple-header-layout.d.ts +1 -3
- package/es/layout/simple-header-layout.js +4 -12
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +2 -2
- package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +4 -3
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/ts-types/events.d.ts +0 -1
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +0 -2
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/dist/vtable.js
CHANGED
|
@@ -43928,10 +43928,14 @@
|
|
|
43928
43928
|
computeRowsHeight(table, 0, table.options.canvasHeight === 'auto' ? table.rowCount - 1 : distRowForCompute ?? distRow);
|
|
43929
43929
|
}
|
|
43930
43930
|
if (distCol < table.colCount - table.rightFrozenColCount) {
|
|
43931
|
-
|
|
43931
|
+
if (table.colCount - table.rightFrozenColCount <= table.colCount - 1) {
|
|
43932
|
+
computeColsWidth(table, table.colCount - table.rightFrozenColCount, table.colCount - 1);
|
|
43933
|
+
}
|
|
43932
43934
|
}
|
|
43933
43935
|
if (distRow < table.rowCount - table.bottomFrozenRowCount) {
|
|
43934
|
-
|
|
43936
|
+
if (table.rowCount - table.bottomFrozenRowCount <= table.rowCount - 1) {
|
|
43937
|
+
computeRowsHeight(table, table.rowCount - table.bottomFrozenRowCount, table.rowCount - 1);
|
|
43938
|
+
}
|
|
43935
43939
|
}
|
|
43936
43940
|
table.scenegraph.colHeaderGroup.setAttribute('x', table.getFrozenColsWidth());
|
|
43937
43941
|
table.scenegraph.rowHeaderGroup.setAttribute('y', table.getFrozenRowsHeight());
|
|
@@ -45260,7 +45264,9 @@
|
|
|
45260
45264
|
}
|
|
45261
45265
|
createColGroup(onceCount) {
|
|
45262
45266
|
const endCol = Math.min(this.totalCol, this.currentCol + onceCount);
|
|
45263
|
-
|
|
45267
|
+
if (this.table.widthMode !== 'adaptive') {
|
|
45268
|
+
computeColsWidth(this.table, this.currentCol + 1, endCol);
|
|
45269
|
+
}
|
|
45264
45270
|
this.colEnd = endCol;
|
|
45265
45271
|
for (let row = 0; row < this.table.rowCount; row++) {
|
|
45266
45272
|
const cellGroup = this.highPerformanceGetCell(this.currentCol, row);
|
|
@@ -45410,7 +45416,9 @@
|
|
|
45410
45416
|
}
|
|
45411
45417
|
updateColGroups(count) {
|
|
45412
45418
|
const distCol = Math.min(this.bodyRightCol, this.colUpdatePos + count);
|
|
45413
|
-
|
|
45419
|
+
if (this.table.widthMode === 'autoWidth') {
|
|
45420
|
+
computeColsWidth(this.table, this.colUpdatePos, distCol);
|
|
45421
|
+
}
|
|
45414
45422
|
updateColContent(this.colUpdatePos, distCol, this);
|
|
45415
45423
|
this.colUpdatePos = distCol + 1;
|
|
45416
45424
|
}
|
|
@@ -54008,7 +54016,8 @@
|
|
|
54008
54016
|
}
|
|
54009
54017
|
const hitIcon = e.target.role?.startsWith('icon') ? e.target : undefined;
|
|
54010
54018
|
eventManager.downIcon = hitIcon;
|
|
54011
|
-
if (
|
|
54019
|
+
if (e.pointerType !== 'touch' &&
|
|
54020
|
+
!hitIcon &&
|
|
54012
54021
|
!eventManager.checkCellFillhandle(eventArgsSet) &&
|
|
54013
54022
|
!stateManager.columnResize.resizing &&
|
|
54014
54023
|
eventManager.checkColumnResize(eventArgsSet, true)) {
|
|
@@ -60588,7 +60597,7 @@
|
|
|
60588
60597
|
return TABLE_EVENT_TYPE;
|
|
60589
60598
|
}
|
|
60590
60599
|
options;
|
|
60591
|
-
version = "1.17.6-alpha.
|
|
60600
|
+
version = "1.17.6-alpha.2";
|
|
60592
60601
|
pagination;
|
|
60593
60602
|
id = `VTable${Date.now()}`;
|
|
60594
60603
|
headerStyleCache;
|
|
@@ -65429,8 +65438,6 @@
|
|
|
65429
65438
|
_hasAggregationOnTopCount = 0;
|
|
65430
65439
|
_hasAggregationOnBottomCount = 0;
|
|
65431
65440
|
rowHierarchyType;
|
|
65432
|
-
columnHierarchyType;
|
|
65433
|
-
columnExpandLevel;
|
|
65434
65441
|
_cellRangeMap;
|
|
65435
65442
|
constructor(table, columns, showHeader, hierarchyIndent) {
|
|
65436
65443
|
this._cellRangeMap = new Map();
|
|
@@ -65441,9 +65448,7 @@
|
|
|
65441
65448
|
this._headerCellIds = [];
|
|
65442
65449
|
this.hierarchyIndent = hierarchyIndent ?? 20;
|
|
65443
65450
|
this.hierarchyTextStartAlignment = table.options.hierarchyTextStartAlignment;
|
|
65444
|
-
this.
|
|
65445
|
-
this.columnExpandLevel = table.options.headerExpandLevel ?? 1;
|
|
65446
|
-
this.columnTree = new DimensionTree(columns, { seqId: 0 }, this.columnHierarchyType ?? null, this.columnHierarchyType === 'grid-tree' ? this.columnExpandLevel : undefined);
|
|
65451
|
+
this.columnTree = new DimensionTree(columns, { seqId: 0 }, null);
|
|
65447
65452
|
this._headerObjectsIncludeHided = this._addHeaders(0, columns, []);
|
|
65448
65453
|
this._headerObjects = this._headerObjectsIncludeHided.filter(col => {
|
|
65449
65454
|
return col.define.hide !== true;
|
|
@@ -66239,7 +66244,6 @@
|
|
|
66239
66244
|
headerType: hd.headerType ?? 'text',
|
|
66240
66245
|
dropDownMenu: hd.dropDownMenu,
|
|
66241
66246
|
define: hd,
|
|
66242
|
-
hierarchyState: hd.hierarchyState,
|
|
66243
66247
|
columnWidthComputeMode: hd.columnWidthComputeMode
|
|
66244
66248
|
};
|
|
66245
66249
|
results[id] = cell;
|
|
@@ -66252,8 +66256,7 @@
|
|
|
66252
66256
|
else if (this._headerCellIds[row - 1]) {
|
|
66253
66257
|
rowCells[col] = this._headerCellIds[row - 1][col];
|
|
66254
66258
|
}
|
|
66255
|
-
|
|
66256
|
-
if (!!hd.columns && !!expand) {
|
|
66259
|
+
if (hd.columns) {
|
|
66257
66260
|
const isAllHided = hd.columns.every((c) => c.hide);
|
|
66258
66261
|
!isAllHided &&
|
|
66259
66262
|
this._addHeaders(row + 1, hd.columns, [...roots, id], hd.hideColumnsSubHeader || hideColumnsSubHeader).forEach(c => results.push(c));
|
|
@@ -68131,9 +68134,6 @@
|
|
|
68131
68134
|
return null;
|
|
68132
68135
|
}
|
|
68133
68136
|
getHierarchyState(col, row) {
|
|
68134
|
-
if (this.isHeader(col, row)) {
|
|
68135
|
-
return this._getHeaderLayoutMap(col, row)?.hierarchyState;
|
|
68136
|
-
}
|
|
68137
68137
|
if (!this.options.groupBy || (isArray$7(this.options.groupBy) && this.options.groupBy.length === 0)) {
|
|
68138
68138
|
const define = this.getBodyColumnDefine(col, row);
|
|
68139
68139
|
if (!define.tree) {
|
|
@@ -68146,28 +68146,6 @@
|
|
|
68146
68146
|
toggleHierarchyState(col, row, recalculateColWidths = true) {
|
|
68147
68147
|
this.stateManager.updateHoverIcon(col, row, undefined, undefined);
|
|
68148
68148
|
const hierarchyState = this.getHierarchyState(col, row);
|
|
68149
|
-
if (this.isHeader(col, row)) {
|
|
68150
|
-
const headerTreeNode = this.internalProps.layoutMap.getHeader(col, row);
|
|
68151
|
-
const { hierarchyState: rawHierarchyState, define: columnDefine } = headerTreeNode;
|
|
68152
|
-
if (![HierarchyState.collapse, HierarchyState.expand].includes(rawHierarchyState) || !columnDefine) {
|
|
68153
|
-
return;
|
|
68154
|
-
}
|
|
68155
|
-
const children = columnDefine.columns;
|
|
68156
|
-
if (!!Array.isArray(children) && children.length > 0) {
|
|
68157
|
-
const hierarchyState = rawHierarchyState === HierarchyState.expand ? HierarchyState.collapse : HierarchyState.expand;
|
|
68158
|
-
headerTreeNode.hierarchyState = hierarchyState;
|
|
68159
|
-
headerTreeNode.define.hierarchyState = hierarchyState;
|
|
68160
|
-
this.updateColumns(this.internalProps.columns);
|
|
68161
|
-
}
|
|
68162
|
-
this.fireListeners(TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, {
|
|
68163
|
-
col,
|
|
68164
|
-
row,
|
|
68165
|
-
hierarchyState,
|
|
68166
|
-
originData: headerTreeNode,
|
|
68167
|
-
cellLocation: this.getCellLocation(col, row)
|
|
68168
|
-
});
|
|
68169
|
-
return;
|
|
68170
|
-
}
|
|
68171
68149
|
if (hierarchyState === HierarchyState.expand) {
|
|
68172
68150
|
this._refreshHierarchyState(col, row, recalculateColWidths);
|
|
68173
68151
|
this.fireListeners(TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, {
|
|
@@ -83440,7 +83418,7 @@
|
|
|
83440
83418
|
}
|
|
83441
83419
|
|
|
83442
83420
|
registerForVrender();
|
|
83443
|
-
const version = "1.17.6-alpha.
|
|
83421
|
+
const version = "1.17.6-alpha.2";
|
|
83444
83422
|
function getIcons() {
|
|
83445
83423
|
return get$2();
|
|
83446
83424
|
}
|