@visactor/vtable 1.11.3-alpha.0 → 1.11.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 +15 -12
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +6 -6
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +13 -11
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +4 -3
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/event.js +3 -3
- package/cjs/event/event.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/plugins/custom-cell-style.js +2 -2
- package/cjs/plugins/custom-cell-style.js.map +1 -1
- package/cjs/scenegraph/refresh-node/update-chart.js +46 -22
- package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +1 -1
- package/cjs/scenegraph/scenegraph.js +6 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/state/checkbox/checkbox.js +2 -2
- package/cjs/state/checkbox/checkbox.js.map +1 -1
- package/cjs/state/select/is-cell-select-highlight.js +4 -4
- package/cjs/state/select/is-cell-select-highlight.js.map +1 -1
- package/cjs/state/select/update-position.js +5 -5
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/state.js +1 -1
- package/cjs/state/state.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/list-table/define/basic-define.d.ts +1 -1
- package/cjs/ts-types/list-table/define/basic-define.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +1 -1
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +139 -73
- package/dist/vtable.min.js +1 -1
- package/es/ListTable.js +15 -12
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +6 -6
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +13 -11
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +3 -2
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/event.js +3 -3
- package/es/event/event.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/plugins/custom-cell-style.js +2 -2
- package/es/plugins/custom-cell-style.js.map +1 -1
- package/es/scenegraph/refresh-node/update-chart.js +46 -22
- package/es/scenegraph/refresh-node/update-chart.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +1 -1
- package/es/scenegraph/scenegraph.js +6 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/state/checkbox/checkbox.js +2 -2
- package/es/state/checkbox/checkbox.js.map +1 -1
- package/es/state/select/is-cell-select-highlight.js +4 -4
- package/es/state/select/is-cell-select-highlight.js.map +1 -1
- package/es/state/select/update-position.js +5 -5
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/state.js +1 -1
- package/es/state/state.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/list-table/define/basic-define.d.ts +1 -1
- package/es/ts-types/list-table/define/basic-define.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +1 -1
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/dist/vtable.js
CHANGED
|
@@ -40389,7 +40389,8 @@
|
|
|
40389
40389
|
}
|
|
40390
40390
|
else {
|
|
40391
40391
|
const define = table.getBodyColumnDefine(col, row);
|
|
40392
|
-
|
|
40392
|
+
const disableSelect = define?.disableSelect;
|
|
40393
|
+
cellDisable = typeof disableSelect === 'function' ? disableSelect(col, row, table) : disableSelect;
|
|
40393
40394
|
}
|
|
40394
40395
|
if (cellDisable) {
|
|
40395
40396
|
selectMode = undefined;
|
|
@@ -40414,7 +40415,9 @@
|
|
|
40414
40415
|
function isCellDisableSelect(table, col, row) {
|
|
40415
40416
|
const columnDefine = table.getBodyColumnDefine(col, row);
|
|
40416
40417
|
const isHeader = table.isHeader(col, row);
|
|
40417
|
-
|
|
40418
|
+
const disableSelect = columnDefine?.disableSelect;
|
|
40419
|
+
const cellDisable = typeof disableSelect === 'function' ? disableSelect(col, row, table) : disableSelect;
|
|
40420
|
+
if (cellDisable && !isHeader) {
|
|
40418
40421
|
return true;
|
|
40419
40422
|
}
|
|
40420
40423
|
if (isHeader && columnDefine?.disableHeaderSelect) {
|
|
@@ -45499,18 +45502,42 @@
|
|
|
45499
45502
|
const columnResizeType = col === -1 ? 'all' : table.internalProps.columnResizeType;
|
|
45500
45503
|
if (columnResizeType === 'column') {
|
|
45501
45504
|
const columnGroup = scenegraph.getColGroup(col);
|
|
45505
|
+
const columnHeaderGroup = scenegraph.getColGroup(col, true);
|
|
45506
|
+
const columnBottomGroup = scenegraph.getColGroupInBottom(col, true);
|
|
45502
45507
|
columnGroup?.forEachChildren((cellNode) => {
|
|
45503
45508
|
const width = table.getColWidth(cellNode.col);
|
|
45504
45509
|
const height = table.getRowHeight(cellNode.row);
|
|
45505
45510
|
updateChartGraphicSize(cellNode, width, height);
|
|
45506
45511
|
});
|
|
45512
|
+
columnHeaderGroup?.forEachChildren((cellNode) => {
|
|
45513
|
+
const width = table.getColWidth(cellNode.col);
|
|
45514
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45515
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45516
|
+
});
|
|
45517
|
+
columnBottomGroup?.forEachChildren((cellNode) => {
|
|
45518
|
+
const width = table.getColWidth(cellNode.col);
|
|
45519
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45520
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45521
|
+
});
|
|
45507
45522
|
if (table.widthMode === 'adaptive' && col < table.colCount - 1) {
|
|
45508
45523
|
const columnGroup = scenegraph.getColGroup(col + 1);
|
|
45524
|
+
const columnHeaderGroup = scenegraph.getColGroup(col + 1, true);
|
|
45525
|
+
const columnBottomGroup = scenegraph.getColGroupInBottom(col + 1, true);
|
|
45509
45526
|
columnGroup?.forEachChildren((cellNode) => {
|
|
45510
45527
|
const width = table.getColWidth(cellNode.col);
|
|
45511
45528
|
const height = table.getRowHeight(cellNode.row);
|
|
45512
45529
|
updateChartGraphicSize(cellNode, width, height);
|
|
45513
45530
|
});
|
|
45531
|
+
columnHeaderGroup?.forEachChildren((cellNode) => {
|
|
45532
|
+
const width = table.getColWidth(cellNode.col);
|
|
45533
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45534
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45535
|
+
});
|
|
45536
|
+
columnBottomGroup?.forEachChildren((cellNode) => {
|
|
45537
|
+
const width = table.getColWidth(cellNode.col);
|
|
45538
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45539
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45540
|
+
});
|
|
45514
45541
|
}
|
|
45515
45542
|
}
|
|
45516
45543
|
else {
|
|
@@ -45539,6 +45566,8 @@
|
|
|
45539
45566
|
}
|
|
45540
45567
|
for (let c = startCol; c <= endCol; c++) {
|
|
45541
45568
|
const columnGroup = scenegraph.getColGroup(c);
|
|
45569
|
+
const columnHeaderGroup = scenegraph.getColGroup(c, true);
|
|
45570
|
+
const columnBottomGroup = scenegraph.getColGroupInBottom(c, true);
|
|
45542
45571
|
if (columnGroup) {
|
|
45543
45572
|
if (columnResizeType === 'indicator') {
|
|
45544
45573
|
const indicatorKey = layout.getIndicatorKey(c, table.columnHeaderLevelCount);
|
|
@@ -45560,6 +45589,16 @@
|
|
|
45560
45589
|
const height = table.getRowHeight(cellNode.row);
|
|
45561
45590
|
updateChartGraphicSize(cellNode, width, height);
|
|
45562
45591
|
});
|
|
45592
|
+
columnHeaderGroup?.forEachChildren((cellNode) => {
|
|
45593
|
+
const width = table.getColWidth(cellNode.col);
|
|
45594
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45595
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45596
|
+
});
|
|
45597
|
+
columnBottomGroup?.forEachChildren((cellNode) => {
|
|
45598
|
+
const width = table.getColWidth(cellNode.col);
|
|
45599
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45600
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45601
|
+
});
|
|
45563
45602
|
}
|
|
45564
45603
|
}
|
|
45565
45604
|
}
|
|
@@ -45592,49 +45631,58 @@
|
|
|
45592
45631
|
startRow = node.startInTotal + table.frozenRowCount;
|
|
45593
45632
|
endRow = node.startInTotal + table.frozenRowCount + node.size - 1;
|
|
45594
45633
|
}
|
|
45595
|
-
|
|
45596
|
-
|
|
45597
|
-
|
|
45598
|
-
|
|
45599
|
-
|
|
45600
|
-
|
|
45601
|
-
|
|
45602
|
-
|
|
45603
|
-
|
|
45604
|
-
if (
|
|
45605
|
-
const cellNode = scenegraph.highPerformanceGetCell(col, row
|
|
45634
|
+
const colsRange = [{ startCol: scenegraph.proxy.colStart, endCol: scenegraph.proxy.colEnd }];
|
|
45635
|
+
if (table.frozenColCount) {
|
|
45636
|
+
colsRange.push({ startCol: 0, endCol: table.frozenColCount - 1 });
|
|
45637
|
+
}
|
|
45638
|
+
if (table.rightFrozenColCount) {
|
|
45639
|
+
colsRange.push({ startCol: table.colCount - table.rightFrozenColCount, endCol: table.colCount - 1 });
|
|
45640
|
+
}
|
|
45641
|
+
colsRange.forEach(({ startCol, endCol }) => {
|
|
45642
|
+
for (let col = startCol; col <= endCol; col++) {
|
|
45643
|
+
if (rowResizeType === 'row') {
|
|
45644
|
+
const cellNode = scenegraph.highPerformanceGetCell(col, row);
|
|
45645
|
+
if (cellNode.role !== 'cell') {
|
|
45646
|
+
continue;
|
|
45647
|
+
}
|
|
45606
45648
|
const width = table.getColWidth(cellNode.col);
|
|
45607
45649
|
const height = table.getRowHeight(cellNode.row);
|
|
45608
45650
|
updateChartGraphicSize(cellNode, width, height);
|
|
45651
|
+
if (table.heightMode === 'adaptive' && row < table.rowCount - 1) {
|
|
45652
|
+
const cellNode = scenegraph.highPerformanceGetCell(col, row + 1);
|
|
45653
|
+
const width = table.getColWidth(cellNode.col);
|
|
45654
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45655
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45656
|
+
}
|
|
45609
45657
|
}
|
|
45610
|
-
|
|
45611
|
-
|
|
45612
|
-
|
|
45613
|
-
|
|
45614
|
-
|
|
45615
|
-
if (!layout.indicatorsAsCol && indicatorKey !== resizeIndicatorKey) {
|
|
45616
|
-
continue;
|
|
45617
|
-
}
|
|
45618
|
-
else if (layout.indicatorsAsCol) {
|
|
45619
|
-
const headerPaths = layout.getCellHeaderPaths(state.table.rowHeaderLevelCount - 1, r);
|
|
45620
|
-
const headerPath = headerPaths?.rowHeaderPaths[headerPaths.rowHeaderPaths.length - 1];
|
|
45621
|
-
if (!headerPath ||
|
|
45622
|
-
resizeDimensionKey !== headerPath.dimensionKey ||
|
|
45623
|
-
resizeDimensionValue !== headerPath.value) {
|
|
45658
|
+
else {
|
|
45659
|
+
for (let r = startRow; r <= endRow; r++) {
|
|
45660
|
+
if (rowResizeType === 'indicator') {
|
|
45661
|
+
const indicatorKey = layout.getIndicatorKey(state.table.rowHeaderLevelCount, r);
|
|
45662
|
+
if (!layout.indicatorsAsCol && indicatorKey !== resizeIndicatorKey) {
|
|
45624
45663
|
continue;
|
|
45625
45664
|
}
|
|
45665
|
+
else if (layout.indicatorsAsCol) {
|
|
45666
|
+
const headerPaths = layout.getCellHeaderPaths(state.table.rowHeaderLevelCount - 1, r);
|
|
45667
|
+
const headerPath = headerPaths?.rowHeaderPaths[headerPaths.rowHeaderPaths.length - 1];
|
|
45668
|
+
if (!headerPath ||
|
|
45669
|
+
resizeDimensionKey !== headerPath.dimensionKey ||
|
|
45670
|
+
resizeDimensionValue !== headerPath.value) {
|
|
45671
|
+
continue;
|
|
45672
|
+
}
|
|
45673
|
+
}
|
|
45626
45674
|
}
|
|
45675
|
+
const cellNode = scenegraph.highPerformanceGetCell(col, r);
|
|
45676
|
+
if (cellNode.role !== 'cell') {
|
|
45677
|
+
continue;
|
|
45678
|
+
}
|
|
45679
|
+
const width = table.getColWidth(cellNode.col);
|
|
45680
|
+
const height = table.getRowHeight(cellNode.row);
|
|
45681
|
+
updateChartGraphicSize(cellNode, width, height);
|
|
45627
45682
|
}
|
|
45628
|
-
const cellNode = scenegraph.highPerformanceGetCell(col, r);
|
|
45629
|
-
if (cellNode.role !== 'cell') {
|
|
45630
|
-
continue;
|
|
45631
|
-
}
|
|
45632
|
-
const width = table.getColWidth(cellNode.col);
|
|
45633
|
-
const height = table.getRowHeight(cellNode.row);
|
|
45634
|
-
updateChartGraphicSize(cellNode, width, height);
|
|
45635
45683
|
}
|
|
45636
45684
|
}
|
|
45637
|
-
}
|
|
45685
|
+
});
|
|
45638
45686
|
}
|
|
45639
45687
|
function clearChartCacheImage(scenegraph) {
|
|
45640
45688
|
for (let c = scenegraph.proxy.colStart; c <= scenegraph.proxy.colEnd; c++) {
|
|
@@ -46817,7 +46865,13 @@
|
|
|
46817
46865
|
}
|
|
46818
46866
|
return element || undefined;
|
|
46819
46867
|
}
|
|
46820
|
-
getColGroupInBottom(col) {
|
|
46868
|
+
getColGroupInBottom(col, isCornerOrColHeader = false) {
|
|
46869
|
+
if (isCornerOrColHeader) {
|
|
46870
|
+
const element = this.getColGroupInLeftBottomCorner(col) ?? this.getColGroupInRightBottomCorner(col);
|
|
46871
|
+
if (element) {
|
|
46872
|
+
return element;
|
|
46873
|
+
}
|
|
46874
|
+
}
|
|
46821
46875
|
if (this.table.bottomFrozenRowCount > 0) {
|
|
46822
46876
|
return this.bottomFrozenGroup.getColGroup(col);
|
|
46823
46877
|
}
|
|
@@ -48200,7 +48254,10 @@
|
|
|
48200
48254
|
const { table, interactionState } = state;
|
|
48201
48255
|
const { scenegraph } = table;
|
|
48202
48256
|
const { highlightScope, disableHeader, cellPos } = state.select;
|
|
48203
|
-
|
|
48257
|
+
const disableSelect = table.options?.select?.disableSelect;
|
|
48258
|
+
const cellDisable = typeof disableSelect === 'function' ? disableSelect(col, row, table) : disableSelect;
|
|
48259
|
+
if (((disableHeader && table.isHeader(col, row)) || highlightScope === 'none' || cellDisable) &&
|
|
48260
|
+
forceSelect === false) {
|
|
48204
48261
|
if (col !== -1 && row !== -1 && makeSelectCellVisible) {
|
|
48205
48262
|
table._makeVisibleCell(col, row);
|
|
48206
48263
|
}
|
|
@@ -49441,7 +49498,7 @@
|
|
|
49441
49498
|
isNeedInitHeaderCheckedStateFromRecord = true;
|
|
49442
49499
|
}
|
|
49443
49500
|
if (isNeedInitHeaderCheckedStateFromRecord) {
|
|
49444
|
-
records
|
|
49501
|
+
records?.forEach((record, index) => {
|
|
49445
49502
|
state._checkboxCellTypeFields.forEach(field => {
|
|
49446
49503
|
const value = record[field];
|
|
49447
49504
|
let isChecked;
|
|
@@ -49983,7 +50040,10 @@
|
|
|
49983
50040
|
highlightMode: 'cell',
|
|
49984
50041
|
highlightInRange: false
|
|
49985
50042
|
}, this.table.options.select);
|
|
49986
|
-
if (
|
|
50043
|
+
if (disableSelect === true) {
|
|
50044
|
+
this.select.highlightScope = HighlightScope.none;
|
|
50045
|
+
}
|
|
50046
|
+
else {
|
|
49987
50047
|
if (highlightMode === 'cross') {
|
|
49988
50048
|
this.select.highlightScope = HighlightScope.cross;
|
|
49989
50049
|
}
|
|
@@ -49997,9 +50057,6 @@
|
|
|
49997
50057
|
this.select.highlightScope = HighlightScope.single;
|
|
49998
50058
|
}
|
|
49999
50059
|
}
|
|
50000
|
-
else {
|
|
50001
|
-
this.select.highlightScope = HighlightScope.none;
|
|
50002
|
-
}
|
|
50003
50060
|
this.select.singleStyle = !disableSelect;
|
|
50004
50061
|
this.select.disableHeader = disableHeaderSelect;
|
|
50005
50062
|
this.select.headerSelectMode = headerSelectMode;
|
|
@@ -53175,6 +53232,8 @@
|
|
|
53175
53232
|
return false;
|
|
53176
53233
|
}
|
|
53177
53234
|
const define = this.table.getBodyColumnDefine(eventArgs.col, eventArgs.row);
|
|
53235
|
+
const disableSelect = define?.disableSelect;
|
|
53236
|
+
const cellDisable = typeof disableSelect === 'function' ? disableSelect(eventArgs.col, eventArgs.row, this.table) : disableSelect;
|
|
53178
53237
|
if (this.table.isHeader(eventArgs.col, eventArgs.row) &&
|
|
53179
53238
|
(define?.disableHeaderSelect || this.table.stateManager.select?.disableHeader)) {
|
|
53180
53239
|
if (!isSelectMoving) {
|
|
@@ -53182,7 +53241,7 @@
|
|
|
53182
53241
|
}
|
|
53183
53242
|
return false;
|
|
53184
53243
|
}
|
|
53185
|
-
else if (!this.table.isHeader(eventArgs.col, eventArgs.row) &&
|
|
53244
|
+
else if (!this.table.isHeader(eventArgs.col, eventArgs.row) && cellDisable) {
|
|
53186
53245
|
if (!isSelectMoving) {
|
|
53187
53246
|
const isHasSelected = !!this.table.stateManager.select.ranges?.length;
|
|
53188
53247
|
this.table.stateManager.updateSelectPos(-1, -1);
|
|
@@ -53197,7 +53256,7 @@
|
|
|
53197
53256
|
this.table.stateManager.updateSelectPos(-1, -1);
|
|
53198
53257
|
return false;
|
|
53199
53258
|
}
|
|
53200
|
-
this.table.stateManager.updateSelectPos(eventArgs.col, eventArgs.row, eventArgs.event.shiftKey, eventArgs.event.ctrlKey || eventArgs.event.metaKey, false, this.table.options.select?.makeSelectCellVisible ?? true);
|
|
53259
|
+
this.table.stateManager.updateSelectPos(eventArgs.col, eventArgs.row, eventArgs.event.shiftKey, eventArgs.event.ctrlKey || eventArgs.event.metaKey, false, isSelectMoving ? false : this.table.options.select?.makeSelectCellVisible ?? true);
|
|
53201
53260
|
return true;
|
|
53202
53261
|
}
|
|
53203
53262
|
return false;
|
|
@@ -55492,8 +55551,8 @@
|
|
|
55492
55551
|
const cellPos = cellStyle.cellPosition;
|
|
55493
55552
|
if (cellStyle.customStyleId === customStyleId) {
|
|
55494
55553
|
if (cellPos.range) {
|
|
55495
|
-
for (let col = cellPos.range.start.col; col <= cellPos.range.end.col; col++) {
|
|
55496
|
-
for (let row = cellPos.range.start.row; row <= cellPos.range.end.row; row++) {
|
|
55554
|
+
for (let col = Math.max(0, cellPos.range.start.col); col <= Math.min(this.table.colCount - 1, cellPos.range.end.col); col++) {
|
|
55555
|
+
for (let row = Math.max(0, cellPos.range.start.row); row <= Math.min(this.table.rowCount - 1, cellPos.range.end.row); row++) {
|
|
55497
55556
|
this.table.scenegraph.updateCellContent(col, row);
|
|
55498
55557
|
}
|
|
55499
55558
|
}
|
|
@@ -55538,8 +55597,8 @@
|
|
|
55538
55597
|
this.customCellStyleArrangement.splice(index, 1);
|
|
55539
55598
|
}
|
|
55540
55599
|
if (cellPos.range) {
|
|
55541
|
-
for (let col = cellPos.range.start.col; col <= cellPos.range.end.col; col++) {
|
|
55542
|
-
for (let row = cellPos.range.start.row; row <= cellPos.range.end.row; row++) {
|
|
55600
|
+
for (let col = Math.max(0, cellPos.range.start.col); col <= Math.min(this.table.colCount - 1, cellPos.range.end.col); col++) {
|
|
55601
|
+
for (let row = Math.max(0, cellPos.range.start.row); row <= Math.min(this.table.rowCount - 1, cellPos.range.end.row); row++) {
|
|
55543
55602
|
const range = this.table.getCellRange(col, row);
|
|
55544
55603
|
for (let c = range.start.col; c <= range.end.col; c++) {
|
|
55545
55604
|
for (let r = range.start.row; r <= range.end.row; r++) {
|
|
@@ -57585,7 +57644,7 @@
|
|
|
57585
57644
|
return TABLE_EVENT_TYPE;
|
|
57586
57645
|
}
|
|
57587
57646
|
options;
|
|
57588
|
-
version = "1.11.3
|
|
57647
|
+
version = "1.11.3";
|
|
57589
57648
|
pagination;
|
|
57590
57649
|
id = `VTable${Date.now()}`;
|
|
57591
57650
|
headerStyleCache;
|
|
@@ -59487,6 +59546,8 @@
|
|
|
59487
59546
|
return true;
|
|
59488
59547
|
}
|
|
59489
59548
|
_canDragHeaderPosition(col, row) {
|
|
59549
|
+
const disableSelect = this.options.select?.disableSelect;
|
|
59550
|
+
const cellDisable = typeof disableSelect === 'function' ? disableSelect(col, row, this) : disableSelect;
|
|
59490
59551
|
if (this.isHeader(col, row) &&
|
|
59491
59552
|
(this.stateManager.isSelected(col, row) ||
|
|
59492
59553
|
(this.options.select?.headerSelectMode === 'body' &&
|
|
@@ -59494,7 +59555,7 @@
|
|
|
59494
59555
|
this.getCellRange(this.stateManager.select.cellPos.col, this.stateManager.select.cellPos.row)
|
|
59495
59556
|
])) ||
|
|
59496
59557
|
this.options.select?.disableHeaderSelect ||
|
|
59497
|
-
|
|
59558
|
+
cellDisable)) {
|
|
59498
59559
|
if (this.internalProps.frozenColDragHeaderMode === 'disabled' && this.isFrozenColumn(col)) {
|
|
59499
59560
|
return false;
|
|
59500
59561
|
}
|
|
@@ -63529,12 +63590,12 @@
|
|
|
63529
63590
|
}
|
|
63530
63591
|
if (this.options.emptyTip) {
|
|
63531
63592
|
if (this.internalProps.emptyTip) {
|
|
63532
|
-
this.internalProps.emptyTip
|
|
63593
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
63533
63594
|
}
|
|
63534
63595
|
else {
|
|
63535
63596
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
63536
63597
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
63537
|
-
this.internalProps.emptyTip
|
|
63598
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
63538
63599
|
}
|
|
63539
63600
|
}
|
|
63540
63601
|
if (options.enableTreeStickCell) {
|
|
@@ -63807,12 +63868,12 @@
|
|
|
63807
63868
|
}
|
|
63808
63869
|
if (this.options.emptyTip) {
|
|
63809
63870
|
if (this.internalProps.emptyTip) {
|
|
63810
|
-
this.internalProps.emptyTip
|
|
63871
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
63811
63872
|
}
|
|
63812
63873
|
else {
|
|
63813
63874
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
63814
63875
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
63815
|
-
this.internalProps.emptyTip
|
|
63876
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
63816
63877
|
}
|
|
63817
63878
|
}
|
|
63818
63879
|
return new Promise(resolve => {
|
|
@@ -64276,12 +64337,12 @@
|
|
|
64276
64337
|
}
|
|
64277
64338
|
if (this.options.emptyTip) {
|
|
64278
64339
|
if (this.internalProps.emptyTip) {
|
|
64279
|
-
this.internalProps.emptyTip
|
|
64340
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
64280
64341
|
}
|
|
64281
64342
|
else {
|
|
64282
64343
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
64283
64344
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
64284
|
-
this.internalProps.emptyTip
|
|
64345
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
64285
64346
|
}
|
|
64286
64347
|
}
|
|
64287
64348
|
this.render();
|
|
@@ -64359,15 +64420,15 @@
|
|
|
64359
64420
|
}
|
|
64360
64421
|
addRecord(record, recordIndex) {
|
|
64361
64422
|
listTableAddRecord(record, recordIndex, this);
|
|
64362
|
-
this.internalProps.emptyTip
|
|
64423
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
64363
64424
|
}
|
|
64364
64425
|
addRecords(records, recordIndex) {
|
|
64365
64426
|
listTableAddRecords(records, recordIndex, this);
|
|
64366
|
-
this.internalProps.emptyTip
|
|
64427
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
64367
64428
|
}
|
|
64368
64429
|
deleteRecords(recordIndexs) {
|
|
64369
64430
|
listTableDeleteRecords(recordIndexs, this);
|
|
64370
|
-
this.internalProps.emptyTip
|
|
64431
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
64371
64432
|
}
|
|
64372
64433
|
updateRecords(records, recordIndexs) {
|
|
64373
64434
|
listTableUpdateRecords(records, recordIndexs, this);
|
|
@@ -74007,12 +74068,12 @@
|
|
|
74007
74068
|
}
|
|
74008
74069
|
if (this.options.emptyTip) {
|
|
74009
74070
|
if (this.internalProps.emptyTip) {
|
|
74010
|
-
this.internalProps.emptyTip
|
|
74071
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
74011
74072
|
}
|
|
74012
74073
|
else {
|
|
74013
74074
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
74014
74075
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
74015
|
-
this.internalProps.emptyTip
|
|
74076
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
74016
74077
|
}
|
|
74017
74078
|
}
|
|
74018
74079
|
setTimeout(() => {
|
|
@@ -74150,12 +74211,12 @@
|
|
|
74150
74211
|
}
|
|
74151
74212
|
if (this.options.emptyTip) {
|
|
74152
74213
|
if (this.internalProps.emptyTip) {
|
|
74153
|
-
this.internalProps.emptyTip
|
|
74214
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
74154
74215
|
}
|
|
74155
74216
|
else {
|
|
74156
74217
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
74157
74218
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
74158
|
-
this.internalProps.emptyTip
|
|
74219
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
74159
74220
|
}
|
|
74160
74221
|
}
|
|
74161
74222
|
return new Promise(resolve => {
|
|
@@ -74694,9 +74755,14 @@
|
|
|
74694
74755
|
const dimensions = item.dimensions;
|
|
74695
74756
|
const width = item.width;
|
|
74696
74757
|
const cell = this.getCellAddressByHeaderPaths(dimensions);
|
|
74697
|
-
if (cell
|
|
74698
|
-
this.
|
|
74699
|
-
|
|
74758
|
+
if (cell.col >= this.rowHeaderLevelCount) {
|
|
74759
|
+
const cellPath = this.getCellHeaderPaths(cell.col, this.columnHeaderLevelCount - 1);
|
|
74760
|
+
if (cellPath.colHeaderPaths.length === dimensions.length) {
|
|
74761
|
+
if (cell && !this.internalProps._widthResizedColMap.has(cell.col)) {
|
|
74762
|
+
this._setColWidth(cell.col, width);
|
|
74763
|
+
this.internalProps._widthResizedColMap.add(cell.col);
|
|
74764
|
+
}
|
|
74765
|
+
}
|
|
74700
74766
|
}
|
|
74701
74767
|
}
|
|
74702
74768
|
}
|
|
@@ -75008,12 +75074,12 @@
|
|
|
75008
75074
|
this.eventManager.updateEventBinder();
|
|
75009
75075
|
if (this.options.emptyTip) {
|
|
75010
75076
|
if (this.internalProps.emptyTip) {
|
|
75011
|
-
this.internalProps.emptyTip
|
|
75077
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
75012
75078
|
}
|
|
75013
75079
|
else {
|
|
75014
75080
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
75015
75081
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
75016
|
-
this.internalProps.emptyTip
|
|
75082
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
75017
75083
|
}
|
|
75018
75084
|
}
|
|
75019
75085
|
}
|
|
@@ -75526,12 +75592,12 @@
|
|
|
75526
75592
|
}
|
|
75527
75593
|
if (this.options.emptyTip) {
|
|
75528
75594
|
if (this.internalProps.emptyTip) {
|
|
75529
|
-
this.internalProps.emptyTip
|
|
75595
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
75530
75596
|
}
|
|
75531
75597
|
else {
|
|
75532
75598
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
75533
75599
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
75534
|
-
this.internalProps.emptyTip
|
|
75600
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
75535
75601
|
}
|
|
75536
75602
|
}
|
|
75537
75603
|
setTimeout(() => {
|
|
@@ -75691,12 +75757,12 @@
|
|
|
75691
75757
|
}
|
|
75692
75758
|
if (this.options.emptyTip) {
|
|
75693
75759
|
if (this.internalProps.emptyTip) {
|
|
75694
|
-
this.internalProps.emptyTip
|
|
75760
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
75695
75761
|
}
|
|
75696
75762
|
else {
|
|
75697
75763
|
const EmptyTip = Factory.getComponent('emptyTip');
|
|
75698
75764
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
75699
|
-
this.internalProps.emptyTip
|
|
75765
|
+
this.internalProps.emptyTip?.resetVisible();
|
|
75700
75766
|
}
|
|
75701
75767
|
}
|
|
75702
75768
|
return new Promise(resolve => {
|
|
@@ -77267,7 +77333,7 @@
|
|
|
77267
77333
|
}
|
|
77268
77334
|
|
|
77269
77335
|
registerForVrender();
|
|
77270
|
-
const version = "1.11.3
|
|
77336
|
+
const version = "1.11.3";
|
|
77271
77337
|
function getIcons() {
|
|
77272
77338
|
return get$2();
|
|
77273
77339
|
}
|