@visactor/vtable 1.11.2-alpha.2 → 1.11.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/components/menu/dom/logic/MenuContainer.js +13 -7
- package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/cjs/components/menu/dom/logic/MenuElement.js +27 -17
- package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/cjs/components/tooltip/TooltipHandler.d.ts +1 -1
- package/cjs/components/tooltip/TooltipHandler.js +3 -3
- package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
- package/cjs/core/BaseTable.js +5 -3
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/media-click.js +6 -3
- package/cjs/event/media-click.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.js +14 -8
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/plugins/custom-cell-style.d.ts +2 -2
- package/cjs/plugins/custom-cell-style.js +13 -9
- package/cjs/plugins/custom-cell-style.js.map +1 -1
- package/cjs/scenegraph/layout/update-height.js +6 -6
- package/cjs/scenegraph/layout/update-height.js.map +1 -1
- package/cjs/scenegraph/layout/update-width.js +4 -2
- package/cjs/scenegraph/layout/update-width.js.map +1 -1
- package/cjs/state/checkbox/checkbox.js +25 -6
- package/cjs/state/checkbox/checkbox.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +5 -1
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/list-table/define/Composite-define.d.ts +2 -1
- package/cjs/ts-types/list-table/define/Composite-define.js.map +1 -1
- package/cjs/ts-types/list-table/define/link-define.d.ts +3 -2
- package/cjs/ts-types/list-table/define/link-define.js.map +1 -1
- package/cjs/ts-types/list-table/layout-map/api.d.ts +2 -2
- package/cjs/ts-types/list-table/layout-map/api.js.map +1 -1
- package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +2 -1
- package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +2 -1
- package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +3 -2
- package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +119 -49
- package/dist/vtable.min.js +2 -2
- package/es/components/menu/dom/logic/MenuContainer.js +13 -7
- package/es/components/menu/dom/logic/MenuContainer.js.map +1 -1
- package/es/components/menu/dom/logic/MenuElement.js +27 -17
- package/es/components/menu/dom/logic/MenuElement.js.map +1 -1
- package/es/components/tooltip/TooltipHandler.d.ts +1 -1
- package/es/components/tooltip/TooltipHandler.js +2 -4
- package/es/components/tooltip/TooltipHandler.js.map +1 -1
- package/es/core/BaseTable.js +6 -4
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/media-click.js +7 -2
- package/es/event/media-click.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.js +15 -9
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/plugins/custom-cell-style.d.ts +2 -2
- package/es/plugins/custom-cell-style.js +13 -9
- package/es/plugins/custom-cell-style.js.map +1 -1
- package/es/scenegraph/layout/update-height.js +4 -4
- package/es/scenegraph/layout/update-height.js.map +1 -1
- package/es/scenegraph/layout/update-width.js +2 -2
- package/es/scenegraph/layout/update-width.js.map +1 -1
- package/es/state/checkbox/checkbox.js +25 -6
- package/es/state/checkbox/checkbox.js.map +1 -1
- package/es/ts-types/base-table.d.ts +5 -1
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/list-table/define/Composite-define.d.ts +2 -1
- package/es/ts-types/list-table/define/Composite-define.js.map +1 -1
- package/es/ts-types/list-table/define/link-define.d.ts +3 -2
- package/es/ts-types/list-table/define/link-define.js.map +1 -1
- package/es/ts-types/list-table/layout-map/api.d.ts +2 -2
- package/es/ts-types/list-table/layout-map/api.js.map +1 -1
- package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +2 -1
- package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +2 -1
- package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -1
- package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +3 -2
- package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
package/dist/vtable.js
CHANGED
|
@@ -37638,7 +37638,8 @@
|
|
|
37638
37638
|
});
|
|
37639
37639
|
if (renderDefault) {
|
|
37640
37640
|
const style = table._getCellStyle(colStart, rowStart);
|
|
37641
|
-
|
|
37641
|
+
const padding = getQuadProps(getProp('padding', style, col, row, table));
|
|
37642
|
+
updateCellContentHeight(singleCellGroup, distHeight, detaY, autoRowHeight, padding, style.textAlign, style.textBaseline, table);
|
|
37642
37643
|
}
|
|
37643
37644
|
const rangeHeight = table.getRowHeight(row);
|
|
37644
37645
|
const rangeWidth = table.getColWidth(col);
|
|
@@ -37661,7 +37662,8 @@
|
|
|
37661
37662
|
}
|
|
37662
37663
|
else {
|
|
37663
37664
|
const style = table._getCellStyle(cellGroup.col, cellGroup.row);
|
|
37664
|
-
|
|
37665
|
+
const padding = getQuadProps(getProp('padding', style, cellGroup.col, cellGroup.row, table));
|
|
37666
|
+
updateCellContentHeight(cellGroup, distHeight, detaY, autoRowHeight, padding, style.textAlign, style.textBaseline, table);
|
|
37665
37667
|
}
|
|
37666
37668
|
}
|
|
37667
37669
|
|
|
@@ -38006,7 +38008,7 @@
|
|
|
38006
38008
|
let changed = false;
|
|
38007
38009
|
if (renderDefault) {
|
|
38008
38010
|
const style = table._getCellStyle(colStart, rowStart);
|
|
38009
|
-
const padding = getQuadProps(style
|
|
38011
|
+
const padding = getQuadProps(getProp('padding', style, col, row, table));
|
|
38010
38012
|
const textAlign = style.textAlign;
|
|
38011
38013
|
const textBaseline = style.textBaseline;
|
|
38012
38014
|
changed = updateCellContentWidth(singleCellGroup, distWidth, cellHeight, detaX, autoRowHeight, padding, textAlign, textBaseline, table.scenegraph);
|
|
@@ -38041,7 +38043,7 @@
|
|
|
38041
38043
|
return isHeightChange;
|
|
38042
38044
|
}
|
|
38043
38045
|
const style = table._getCellStyle(cellGroup.col, cellGroup.row);
|
|
38044
|
-
const padding = getQuadProps(style.
|
|
38046
|
+
const padding = getQuadProps(getProp('padding', style, cellGroup.col, cellGroup.row, table));
|
|
38045
38047
|
const textAlign = style.textAlign;
|
|
38046
38048
|
const textBaseline = style.textBaseline;
|
|
38047
38049
|
return updateCellContentWidth(cellGroup, distWidth, table.getRowHeight(cellGroup.row), detaX, autoRowHeight, padding, textAlign, textBaseline, table.scenegraph);
|
|
@@ -49402,6 +49404,18 @@
|
|
|
49402
49404
|
}
|
|
49403
49405
|
}
|
|
49404
49406
|
});
|
|
49407
|
+
if (state.table.leftRowSeriesNumberCount === 1) {
|
|
49408
|
+
state.headerCheckedState._vtable_rowSeries_number = false;
|
|
49409
|
+
state._checkboxCellTypeFields.push('_vtable_rowSeries_number');
|
|
49410
|
+
isNeedInitHeaderCheckedStateFromRecord = true;
|
|
49411
|
+
}
|
|
49412
|
+
else if (state.table.leftRowSeriesNumberCount > 1) {
|
|
49413
|
+
for (let i = 0; i < state.table.leftRowSeriesNumberCount; i++) {
|
|
49414
|
+
state.headerCheckedState[`_vtable_rowSeries_number_${i}`] = false;
|
|
49415
|
+
state._checkboxCellTypeFields.push(`_vtable_rowSeries_number_${i}`);
|
|
49416
|
+
}
|
|
49417
|
+
isNeedInitHeaderCheckedStateFromRecord = true;
|
|
49418
|
+
}
|
|
49405
49419
|
if (isNeedInitHeaderCheckedStateFromRecord) {
|
|
49406
49420
|
records.forEach((record, index) => {
|
|
49407
49421
|
state._checkboxCellTypeFields.forEach(field => {
|
|
@@ -49493,30 +49507,49 @@
|
|
|
49493
49507
|
}
|
|
49494
49508
|
}
|
|
49495
49509
|
function setCellCheckboxState(col, row, checked, table) {
|
|
49496
|
-
const
|
|
49497
|
-
const
|
|
49498
|
-
if (!
|
|
49510
|
+
const cellGroup = table.scenegraph.getCell(col, row);
|
|
49511
|
+
const checkbox = cellGroup?.getChildByName('checkbox');
|
|
49512
|
+
if (!checkbox) {
|
|
49513
|
+
const field = table.getHeaderField(col, row);
|
|
49514
|
+
if (table.isHeader(col, row)) {
|
|
49515
|
+
table.stateManager.setHeaderCheckedState(field, checked);
|
|
49516
|
+
const cellType = table.getCellType(col, row);
|
|
49517
|
+
if (cellType === 'checkbox') {
|
|
49518
|
+
table.scenegraph.updateCheckboxCellState(col, row, checked);
|
|
49519
|
+
}
|
|
49520
|
+
}
|
|
49521
|
+
else {
|
|
49522
|
+
table.stateManager.setCheckedState(col, row, field, checked);
|
|
49523
|
+
const cellType = table.getCellType(col, row);
|
|
49524
|
+
if (cellType === 'checkbox') {
|
|
49525
|
+
const oldHeaderCheckedState = table.stateManager.headerCheckedState[field];
|
|
49526
|
+
const newHeaderCheckedState = table.stateManager.updateHeaderCheckedState(field, col, row);
|
|
49527
|
+
if (oldHeaderCheckedState !== newHeaderCheckedState) {
|
|
49528
|
+
table.scenegraph.updateHeaderCheckboxCellState(col, row, newHeaderCheckedState);
|
|
49529
|
+
}
|
|
49530
|
+
}
|
|
49531
|
+
}
|
|
49499
49532
|
return;
|
|
49500
49533
|
}
|
|
49501
|
-
const { checked: oldChecked, indeterminate } =
|
|
49534
|
+
const { checked: oldChecked, indeterminate } = checkbox.attribute;
|
|
49502
49535
|
if (indeterminate) {
|
|
49503
49536
|
if (checked) {
|
|
49504
|
-
|
|
49537
|
+
checkbox._handlePointerUp();
|
|
49505
49538
|
}
|
|
49506
49539
|
else {
|
|
49507
|
-
|
|
49508
|
-
|
|
49540
|
+
checkbox._handlePointerUp();
|
|
49541
|
+
checkbox._handlePointerUp();
|
|
49509
49542
|
}
|
|
49510
49543
|
}
|
|
49511
49544
|
else if (oldChecked) {
|
|
49512
49545
|
if (checked) ;
|
|
49513
49546
|
else {
|
|
49514
|
-
|
|
49547
|
+
checkbox._handlePointerUp();
|
|
49515
49548
|
}
|
|
49516
49549
|
}
|
|
49517
49550
|
else {
|
|
49518
49551
|
if (checked) {
|
|
49519
|
-
|
|
49552
|
+
checkbox._handlePointerUp();
|
|
49520
49553
|
}
|
|
49521
49554
|
}
|
|
49522
49555
|
}
|
|
@@ -50803,10 +50836,15 @@
|
|
|
50803
50836
|
__value: cellValue,
|
|
50804
50837
|
__dataValue: cellOriginValue
|
|
50805
50838
|
}, rowData);
|
|
50806
|
-
|
|
50807
|
-
|
|
50808
|
-
|
|
50809
|
-
|
|
50839
|
+
if (isFunction$1(templateLink)) {
|
|
50840
|
+
url = templateLink(data, col, row, table);
|
|
50841
|
+
}
|
|
50842
|
+
else {
|
|
50843
|
+
const re = /\{\s*(\S+?)\s*\}/g;
|
|
50844
|
+
url = templateLink.replace(re, (matchs, key) => {
|
|
50845
|
+
return data[key];
|
|
50846
|
+
});
|
|
50847
|
+
}
|
|
50810
50848
|
}
|
|
50811
50849
|
else if (!linkDetect) {
|
|
50812
50850
|
url = cellValue;
|
|
@@ -53807,6 +53845,10 @@
|
|
|
53807
53845
|
e.stopPropagation();
|
|
53808
53846
|
e.preventDefault();
|
|
53809
53847
|
});
|
|
53848
|
+
this._rootElement?.addEventListener('contextmenu', e => {
|
|
53849
|
+
e.stopPropagation();
|
|
53850
|
+
e.preventDefault();
|
|
53851
|
+
});
|
|
53810
53852
|
this._rootElement?.addEventListener('touchend', e => {
|
|
53811
53853
|
e.stopPropagation();
|
|
53812
53854
|
e.preventDefault();
|
|
@@ -54067,7 +54109,7 @@
|
|
|
54067
54109
|
}
|
|
54068
54110
|
_canBindToCell(table, col, row) {
|
|
54069
54111
|
const rect = table.getCellRangeRelativeRect({ col, row });
|
|
54070
|
-
const element = table.getElement();
|
|
54112
|
+
const element = table.internalProps.menu.parentElement ?? table.getElement();
|
|
54071
54113
|
const { top, bottom, left, right } = rect;
|
|
54072
54114
|
if (table.isFrozenCell(col, row)) {
|
|
54073
54115
|
return true;
|
|
@@ -54089,8 +54131,8 @@
|
|
|
54089
54131
|
}
|
|
54090
54132
|
_bindToCell(table, col, row, position, referencePosition) {
|
|
54091
54133
|
const rootElement = this._rootElement;
|
|
54092
|
-
const element = table.getElement();
|
|
54093
|
-
const { width: containerWidth, height: containerHeight } =
|
|
54134
|
+
const element = table.internalProps.menu.parentElement ?? table.getElement();
|
|
54135
|
+
const { width: containerWidth, height: containerHeight, left: containerLeft, top: containerTop } = element.getBoundingClientRect();
|
|
54094
54136
|
if (rootElement) {
|
|
54095
54137
|
if (rootElement.parentElement !== element) {
|
|
54096
54138
|
element.appendChild(rootElement);
|
|
@@ -54119,14 +54161,21 @@
|
|
|
54119
54161
|
if (rootElementTop < 0) {
|
|
54120
54162
|
rootElementTop = rootElementTop / 2;
|
|
54121
54163
|
}
|
|
54122
|
-
|
|
54164
|
+
let deltaTop = 0;
|
|
54165
|
+
let deltaLeft = 0;
|
|
54166
|
+
if (table.getElement() !== element) {
|
|
54167
|
+
const { left, top } = table.getElement().getBoundingClientRect();
|
|
54168
|
+
deltaTop = top - containerTop;
|
|
54169
|
+
deltaLeft = left - containerLeft;
|
|
54170
|
+
}
|
|
54171
|
+
rootElement.style.top = `${rootElementTop + deltaTop}px`;
|
|
54123
54172
|
if (rootElementLeft < 0) {
|
|
54124
54173
|
rootElementLeft = 0;
|
|
54125
54174
|
}
|
|
54126
54175
|
else if (rootElementLeft * scaleX + rootElementWidth > containerWidth) {
|
|
54127
54176
|
rootElementLeft = (containerWidth - rootElementWidth) / scaleX;
|
|
54128
54177
|
}
|
|
54129
|
-
rootElement.style.left = `${rootElementLeft}px`;
|
|
54178
|
+
rootElement.style.left = `${rootElementLeft + deltaLeft}px`;
|
|
54130
54179
|
return true;
|
|
54131
54180
|
}
|
|
54132
54181
|
return false;
|
|
@@ -54134,8 +54183,8 @@
|
|
|
54134
54183
|
_bindSecondElement(table, col, row, x, y) {
|
|
54135
54184
|
const secondElement = this._secondElement;
|
|
54136
54185
|
const rootElement = this._rootElement;
|
|
54137
|
-
const element = table.getElement();
|
|
54138
|
-
const { width: containerWidth, left: containerLeft, top: containerTop } =
|
|
54186
|
+
const element = table.internalProps.menu.parentElement ?? table.getElement();
|
|
54187
|
+
const { width: containerWidth, left: containerLeft, top: containerTop } = element.getBoundingClientRect();
|
|
54139
54188
|
const { x: rootLeft, y: rootTop, width: rootWidth } = rootElement.getBoundingClientRect();
|
|
54140
54189
|
if (secondElement) {
|
|
54141
54190
|
if (secondElement.parentElement !== element) {
|
|
@@ -55363,15 +55412,21 @@
|
|
|
55363
55412
|
this.customCellStyleArrangement = customCellStyleArrangement;
|
|
55364
55413
|
}
|
|
55365
55414
|
getCustomCellStyle(col, row) {
|
|
55366
|
-
const
|
|
55367
|
-
if (
|
|
55368
|
-
const
|
|
55369
|
-
|
|
55415
|
+
const customStyleIds = this.getCustomCellStyleIds(col, row);
|
|
55416
|
+
if (customStyleIds.length) {
|
|
55417
|
+
const styles = [];
|
|
55418
|
+
customStyleIds.forEach(customStyleId => {
|
|
55419
|
+
const styleOption = this.getCustomCellStyleOption(customStyleId);
|
|
55420
|
+
if (styleOption?.style) {
|
|
55421
|
+
styles.push(styleOption.style);
|
|
55422
|
+
}
|
|
55423
|
+
});
|
|
55424
|
+
return merge({}, ...styles);
|
|
55370
55425
|
}
|
|
55371
55426
|
return undefined;
|
|
55372
55427
|
}
|
|
55373
|
-
|
|
55374
|
-
|
|
55428
|
+
getCustomCellStyleIds(col, row) {
|
|
55429
|
+
const customStyleIds = [];
|
|
55375
55430
|
const range = this.table.getCellRange(col, row);
|
|
55376
55431
|
for (let c = range.start.col; c <= range.end.col; c++) {
|
|
55377
55432
|
for (let r = range.start.row; r <= range.end.row; r++) {
|
|
@@ -55381,16 +55436,16 @@
|
|
|
55381
55436
|
style.cellPosition.range.end.col >= c &&
|
|
55382
55437
|
style.cellPosition.range.start.row <= r &&
|
|
55383
55438
|
style.cellPosition.range.end.row >= r) {
|
|
55384
|
-
|
|
55439
|
+
customStyleIds.push(style.customStyleId);
|
|
55385
55440
|
}
|
|
55386
55441
|
}
|
|
55387
55442
|
else if (style.cellPosition.col === c && style.cellPosition.row === r) {
|
|
55388
|
-
|
|
55443
|
+
customStyleIds.push(style.customStyleId);
|
|
55389
55444
|
}
|
|
55390
55445
|
});
|
|
55391
55446
|
}
|
|
55392
55447
|
}
|
|
55393
|
-
return
|
|
55448
|
+
return customStyleIds;
|
|
55394
55449
|
}
|
|
55395
55450
|
getCustomCellStyleOption(customStyleId) {
|
|
55396
55451
|
return this.customCellStyle.find(style => style.id === customStyleId);
|
|
@@ -57506,7 +57561,7 @@
|
|
|
57506
57561
|
return TABLE_EVENT_TYPE;
|
|
57507
57562
|
}
|
|
57508
57563
|
options;
|
|
57509
|
-
version = "1.11.2
|
|
57564
|
+
version = "1.11.2";
|
|
57510
57565
|
pagination;
|
|
57511
57566
|
id = `VTable${Date.now()}`;
|
|
57512
57567
|
headerStyleCache;
|
|
@@ -57683,7 +57738,8 @@
|
|
|
57683
57738
|
parentElement: this.getElement(),
|
|
57684
57739
|
renderMode: 'html',
|
|
57685
57740
|
isShowOverflowTextTooltip: false,
|
|
57686
|
-
confine: true
|
|
57741
|
+
confine: true,
|
|
57742
|
+
position: Placement.bottom
|
|
57687
57743
|
}, options.tooltip);
|
|
57688
57744
|
if (internalProps.tooltip.renderMode === 'html') {
|
|
57689
57745
|
const TooltipHandler = Factory.getComponent('tooltipHandler');
|
|
@@ -58903,7 +58959,8 @@
|
|
|
58903
58959
|
parentElement: this.getElement(),
|
|
58904
58960
|
renderMode: 'html',
|
|
58905
58961
|
isShowOverflowTextTooltip: false,
|
|
58906
|
-
confine: true
|
|
58962
|
+
confine: true,
|
|
58963
|
+
position: Placement.bottom
|
|
58907
58964
|
}, options.tooltip);
|
|
58908
58965
|
if (internalProps.tooltip.renderMode === 'html' && !internalProps.tooltipHandler) {
|
|
58909
58966
|
const TooltipHandler = Factory.getComponent('tooltipHandler');
|
|
@@ -61436,17 +61493,17 @@
|
|
|
61436
61493
|
handleRowSeriesNumber(rowSeriesNumber) {
|
|
61437
61494
|
if (rowSeriesNumber) {
|
|
61438
61495
|
if (Array.isArray(rowSeriesNumber)) {
|
|
61439
|
-
this.rowSeriesNumberColumn = rowSeriesNumber.map(seriesNumber => {
|
|
61496
|
+
this.rowSeriesNumberColumn = rowSeriesNumber.map((seriesNumber, index) => {
|
|
61440
61497
|
return {
|
|
61441
61498
|
id: this.seqId++,
|
|
61442
61499
|
title: seriesNumber.title,
|
|
61443
|
-
define: seriesNumber,
|
|
61500
|
+
define: merge({ field: '_vtable_rowSeries_number_' + index }, seriesNumber),
|
|
61444
61501
|
cellType: seriesNumber.cellType ?? 'text',
|
|
61445
61502
|
headerType: rowSeriesNumber.cellType ?? 'text',
|
|
61446
61503
|
style: seriesNumber.style,
|
|
61447
61504
|
width: seriesNumber.width,
|
|
61448
61505
|
format: seriesNumber.format,
|
|
61449
|
-
field: seriesNumber.field,
|
|
61506
|
+
field: seriesNumber.field ?? '_vtable_rowSeries_number_' + index,
|
|
61450
61507
|
icon: seriesNumber.icon,
|
|
61451
61508
|
headerIcon: seriesNumber.headerIcon,
|
|
61452
61509
|
isChildNode: false
|
|
@@ -61458,13 +61515,13 @@
|
|
|
61458
61515
|
{
|
|
61459
61516
|
id: this.seqId++,
|
|
61460
61517
|
title: rowSeriesNumber.title,
|
|
61461
|
-
define: rowSeriesNumber,
|
|
61518
|
+
define: merge({ field: '_vtable_rowSeries_number' }, rowSeriesNumber),
|
|
61462
61519
|
cellType: rowSeriesNumber.cellType ?? 'text',
|
|
61463
61520
|
headerType: rowSeriesNumber.cellType ?? 'text',
|
|
61464
61521
|
style: rowSeriesNumber.style,
|
|
61465
61522
|
width: rowSeriesNumber.width,
|
|
61466
61523
|
format: rowSeriesNumber.format,
|
|
61467
|
-
field: '',
|
|
61524
|
+
field: '_vtable_rowSeries_number',
|
|
61468
61525
|
icon: rowSeriesNumber.icon,
|
|
61469
61526
|
headerIcon: rowSeriesNumber.headerIcon,
|
|
61470
61527
|
isChildNode: false
|
|
@@ -62106,6 +62163,12 @@
|
|
|
62106
62163
|
return this._headerObjectMap[id];
|
|
62107
62164
|
}
|
|
62108
62165
|
getHeaderField(col, row) {
|
|
62166
|
+
if (this.isSeriesNumberInHeader(col, row)) {
|
|
62167
|
+
return this.getSeriesNumberHeader(col, row)?.field;
|
|
62168
|
+
}
|
|
62169
|
+
else if (this.isSeriesNumberInBody(col, row)) {
|
|
62170
|
+
return this.getSeriesNumberBody(col, row)?.field;
|
|
62171
|
+
}
|
|
62109
62172
|
const id = this.getCellId(col, row);
|
|
62110
62173
|
return (this._headerObjectMap[id]?.field ||
|
|
62111
62174
|
(this.transpose
|
|
@@ -66063,7 +66126,7 @@
|
|
|
66063
66126
|
}
|
|
66064
66127
|
_canBindToCell(table, col, row) {
|
|
66065
66128
|
const rect = table.getCellRangeRelativeRect({ col, row });
|
|
66066
|
-
const element = table.getElement();
|
|
66129
|
+
const element = table.internalProps.menu.parentElement ?? table.getElement();
|
|
66067
66130
|
const { top, bottom, left, right } = rect;
|
|
66068
66131
|
if (table.isFrozenCell(col, row)) {
|
|
66069
66132
|
return true;
|
|
@@ -66085,8 +66148,8 @@
|
|
|
66085
66148
|
}
|
|
66086
66149
|
_bindCell(table, col, row, position, referencePosition) {
|
|
66087
66150
|
const rootElement = this._rootElement;
|
|
66088
|
-
const element = table.getElement();
|
|
66089
|
-
const { width: containerWidth, height: containerHeight } =
|
|
66151
|
+
const element = table.internalProps.menu.parentElement ?? table.getElement();
|
|
66152
|
+
const { width: containerWidth, height: containerHeight, left: containerLeft, top: containerTop } = element.getBoundingClientRect();
|
|
66090
66153
|
if (rootElement) {
|
|
66091
66154
|
if (rootElement.parentElement !== element) {
|
|
66092
66155
|
element.appendChild(rootElement);
|
|
@@ -66113,14 +66176,21 @@
|
|
|
66113
66176
|
if (rootElementTop < 0) {
|
|
66114
66177
|
rootElementTop = rootElementTop / 2;
|
|
66115
66178
|
}
|
|
66116
|
-
|
|
66179
|
+
let deltaTop = 0;
|
|
66180
|
+
let deltaLeft = 0;
|
|
66181
|
+
if (table.getElement() !== element) {
|
|
66182
|
+
const { left, top } = table.getElement().getBoundingClientRect();
|
|
66183
|
+
deltaTop = top - containerTop;
|
|
66184
|
+
deltaLeft = left - containerLeft;
|
|
66185
|
+
}
|
|
66186
|
+
rootElement.style.top = `${rootElementTop + deltaTop}px`;
|
|
66117
66187
|
if (rootElementLeft < 0) {
|
|
66118
66188
|
rootElementLeft = 0;
|
|
66119
66189
|
}
|
|
66120
66190
|
else if (rootElementLeft + rootElementWidth > containerWidth) {
|
|
66121
66191
|
rootElementLeft = containerWidth - rootElementWidth;
|
|
66122
66192
|
}
|
|
66123
|
-
rootElement.style.left = `${rootElementLeft}px`;
|
|
66193
|
+
rootElement.style.left = `${rootElementLeft + deltaLeft}px`;
|
|
66124
66194
|
return true;
|
|
66125
66195
|
}
|
|
66126
66196
|
return false;
|
|
@@ -67035,7 +67105,7 @@
|
|
|
67035
67105
|
tooltipOption = {
|
|
67036
67106
|
content: headerDescription,
|
|
67037
67107
|
referencePosition: {
|
|
67038
|
-
placement:
|
|
67108
|
+
placement: table.internalProps.tooltip.position,
|
|
67039
67109
|
rect
|
|
67040
67110
|
},
|
|
67041
67111
|
disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
|
|
@@ -67054,7 +67124,7 @@
|
|
|
67054
67124
|
${overflowText}`
|
|
67055
67125
|
: overflowText,
|
|
67056
67126
|
referencePosition: {
|
|
67057
|
-
placement:
|
|
67127
|
+
placement: table.internalProps.tooltip.position,
|
|
67058
67128
|
rect
|
|
67059
67129
|
},
|
|
67060
67130
|
disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
|
|
@@ -77166,7 +77236,7 @@
|
|
|
77166
77236
|
}
|
|
77167
77237
|
|
|
77168
77238
|
registerForVrender();
|
|
77169
|
-
const version = "1.11.2
|
|
77239
|
+
const version = "1.11.2";
|
|
77170
77240
|
function getIcons() {
|
|
77171
77241
|
return get$2();
|
|
77172
77242
|
}
|