@visactor/vtable 0.13.2-alpha.3 → 0.13.2-alpha.4
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.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/event/listener/table-group.js +1 -2
- 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/pivot-header-layout.js +1 -0
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/layout/simple-header-layout.js +1 -0
- package/cjs/layout/simple-header-layout.js.map +1 -1
- package/cjs/scenegraph/graphic/group.js +6 -6
- package/cjs/scenegraph/graphic/group.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +6 -42
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +2 -2
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +3 -6
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/update-row.js +16 -22
- package/cjs/scenegraph/layout/update-row.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +1 -1
- package/cjs/scenegraph/scenegraph.js +3 -3
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/dist/vtable.js +47 -118
- package/dist/vtable.min.js +2 -2
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/event/listener/table-group.js +1 -2
- 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/pivot-header-layout.js +1 -0
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/layout/simple-header-layout.js +1 -0
- package/es/layout/simple-header-layout.js.map +1 -1
- package/es/scenegraph/graphic/group.js +6 -6
- package/es/scenegraph/graphic/group.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +4 -43
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +2 -2
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +3 -6
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/update-row.js +15 -23
- package/es/scenegraph/layout/update-row.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +1 -1
- package/es/scenegraph/scenegraph.js +3 -3
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/package.json +4 -4
package/dist/vtable.js
CHANGED
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
const isRegExp = value => isType$5(value, "RegExp");
|
|
493
493
|
var isRegExp$1 = isRegExp;
|
|
494
494
|
|
|
495
|
-
const isBase64 = value => new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(value);
|
|
495
|
+
const isBase64 = value => new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g).test(value);
|
|
496
496
|
var isBase64$1 = isBase64;
|
|
497
497
|
|
|
498
498
|
const getType = value => ({}).toString.call(value).replace(/^\[object /, "").replace(/]$/, "");
|
|
@@ -10630,9 +10630,7 @@
|
|
|
10630
10630
|
let data = ResourceLoader.cache.get(url);
|
|
10631
10631
|
data ? "fail" === data.loadState ? application$1.global.getRequestAnimationFrame()(() => {
|
|
10632
10632
|
mark.imageLoadFail(url);
|
|
10633
|
-
}) : "init" === data.loadState || "loading" === data.loadState ? null === (_a = data.waitingMark) || void 0 === _a || _a.push(mark) : mark &&
|
|
10634
|
-
mark.imageLoadSuccess(url, data.data);
|
|
10635
|
-
}) : (data = {
|
|
10633
|
+
}) : "init" === data.loadState || "loading" === data.loadState ? null === (_a = data.waitingMark) || void 0 === _a || _a.push(mark) : mark && mark.imageLoadSuccess(url, data.data) : (data = {
|
|
10636
10634
|
type: "image",
|
|
10637
10635
|
loadState: "init"
|
|
10638
10636
|
}, ResourceLoader.cache.set(url, data), data.dataPromise = application$1.global.loadImage(url), data.dataPromise ? (data.waitingMark = [mark], data.dataPromise.then(res => {
|
|
@@ -11284,7 +11282,7 @@
|
|
|
11284
11282
|
data: "init",
|
|
11285
11283
|
state: null
|
|
11286
11284
|
};
|
|
11287
|
-
this.resources.set(url, cache), "string" == typeof image ? (cache.state = "loading",
|
|
11285
|
+
this.resources.set(url, cache), "string" == typeof image ? (cache.state = "loading", image.startsWith("<svg") ? (ResourceLoader$1.GetSvg(image, this), this.backgroundImg = this.backgroundImg || background) : (isValidUrl$1(image) || image.includes("/") || isBase64$1(image)) && (ResourceLoader$1.GetImage(image, this), this.backgroundImg = this.backgroundImg || background)) : (cache.state = "success", cache.data = image, this.backgroundImg = this.backgroundImg || background);
|
|
11288
11286
|
}
|
|
11289
11287
|
imageLoadSuccess(url, image, cb) {
|
|
11290
11288
|
if (!this.resources) return;
|
|
@@ -19122,6 +19120,7 @@
|
|
|
19122
19120
|
return this.currentRenderMap.get(type) || this.defaultRenderMap.get(type);
|
|
19123
19121
|
}
|
|
19124
19122
|
clearScreen(renderService, context, drawContext) {
|
|
19123
|
+
var _a;
|
|
19125
19124
|
const {
|
|
19126
19125
|
clear: clear
|
|
19127
19126
|
} = drawContext;
|
|
@@ -19133,7 +19132,12 @@
|
|
|
19133
19132
|
} = drawContext,
|
|
19134
19133
|
x = 0,
|
|
19135
19134
|
y = 0;
|
|
19136
|
-
context.clearRect(x, y, width, height)
|
|
19135
|
+
context.clearRect(x, y, width, height);
|
|
19136
|
+
const stage = null === (_a = renderService.drawParams) || void 0 === _a ? void 0 : _a.stage;
|
|
19137
|
+
if (stage && stage.backgroundImg && stage.resources) {
|
|
19138
|
+
const res = stage.resources.get(clear);
|
|
19139
|
+
res && "success" === res.state && res.data && context.drawImage(res.data, x, y, width, height);
|
|
19140
|
+
} else context.fillStyle = createColor(context, clear, {
|
|
19137
19141
|
AABBBounds: {
|
|
19138
19142
|
x1: x,
|
|
19139
19143
|
y1: y,
|
|
@@ -20697,7 +20701,9 @@
|
|
|
20697
20701
|
return this.viewBox.height();
|
|
20698
20702
|
}
|
|
20699
20703
|
}
|
|
20700
|
-
})), params.autoRender && this.enableAutoRender(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this.ticker = params.ticker || defaultTicker, this.supportInteractiveLayer = !1 !== params.interactiveLayer, this.timeline = new DefaultTimeline$1(), this.ticker.addTimeline(this.timeline), this.timeline.pause(), this.optmize(params.optimize)
|
|
20704
|
+
})), params.autoRender && this.enableAutoRender(), !1 === params.disableDirtyBounds && this.enableDirtyBounds(), params.enableHtmlAttribute && this.enableHtmlAttribute(params.enableHtmlAttribute), params.enableLayout && this.enableLayout(), this.hooks.beforeRender.tap("constructor", this.beforeRender), this.hooks.afterRender.tap("constructor", this.afterRender), this._beforeRender = params.beforeRender, this._afterRender = params.afterRender, this.ticker = params.ticker || defaultTicker, this.supportInteractiveLayer = !1 !== params.interactiveLayer, this.timeline = new DefaultTimeline$1(), this.ticker.addTimeline(this.timeline), this.timeline.pause(), this.optmize(params.optimize), this._background && isString$3(this._background) && this.setAttributes({
|
|
20705
|
+
background: this._background
|
|
20706
|
+
});
|
|
20701
20707
|
}
|
|
20702
20708
|
optmize(params) {
|
|
20703
20709
|
this.optmizeRender(null == params ? void 0 : params.skipRenderWithOutRange);
|
|
@@ -25709,7 +25715,7 @@
|
|
|
25709
25715
|
});
|
|
25710
25716
|
}
|
|
25711
25717
|
setAttribute(key, value, forceUpdateTag) {
|
|
25712
|
-
|
|
25718
|
+
isPlainObject$3(this.attribute[key]) && isPlainObject$3(value) && !isFunction$1(this.attribute[key]) && !isFunction$1(value) ? merge$1(this.attribute[key], value) : this.attribute[key] = value, GROUP_ATTRIBUTES.includes(key) || this.render(), this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate();
|
|
25713
25719
|
}
|
|
25714
25720
|
setAttributes(params, forceUpdateTag) {
|
|
25715
25721
|
const keys = Object.keys(params);
|
|
@@ -27155,7 +27161,7 @@
|
|
|
27155
27161
|
do {
|
|
27156
27162
|
items = reduce(items, sep);
|
|
27157
27163
|
} while (items.length >= 3 && hasOverlap$1(items, sep));
|
|
27158
|
-
items.length < 3 && !last(source).attribute.opacity &&
|
|
27164
|
+
items.length < 3 && !last(source).attribute.opacity && items.length > 1 && last(items).setAttribute("opacity", 0);
|
|
27159
27165
|
}
|
|
27160
27166
|
source.forEach(item => {
|
|
27161
27167
|
item.setAttribute("visible", !!item.attribute.opacity);
|
|
@@ -38116,33 +38122,21 @@
|
|
|
38116
38122
|
return Math.max(height, this.attribute.height ?? 0);
|
|
38117
38123
|
}
|
|
38118
38124
|
setDeltaWidth(deltaX) {
|
|
38119
|
-
if (deltaX === 0) {
|
|
38120
|
-
return;
|
|
38121
|
-
}
|
|
38122
38125
|
this.setAttribute('width', (this.attribute.width ?? 0) + deltaX);
|
|
38123
38126
|
if (this.border) {
|
|
38124
38127
|
this.border.setAttribute('width', this.border.attribute.width + deltaX);
|
|
38125
38128
|
}
|
|
38126
38129
|
}
|
|
38127
38130
|
setDeltaHeight(deltaY) {
|
|
38128
|
-
if (deltaY === 0) {
|
|
38129
|
-
return;
|
|
38130
|
-
}
|
|
38131
38131
|
this.setAttribute('height', (this.attribute.height ?? 0) + deltaY);
|
|
38132
38132
|
if (this.border) {
|
|
38133
38133
|
this.border.setAttribute('height', this.border.attribute.height + deltaY);
|
|
38134
38134
|
}
|
|
38135
38135
|
}
|
|
38136
38136
|
setDeltaX(deltaX) {
|
|
38137
|
-
if (deltaX === 0) {
|
|
38138
|
-
return;
|
|
38139
|
-
}
|
|
38140
38137
|
this.setAttribute('x', this.attribute.x + deltaX);
|
|
38141
38138
|
}
|
|
38142
38139
|
setDeltaY(deltaY) {
|
|
38143
|
-
if (deltaY === 0) {
|
|
38144
|
-
return;
|
|
38145
|
-
}
|
|
38146
38140
|
this.setAttribute('y', this.attribute.y + deltaY);
|
|
38147
38141
|
}
|
|
38148
38142
|
forEachChildrenSkipChild(cb, skipChildName = 'border-rect', reverse = false) {
|
|
@@ -43742,10 +43736,9 @@
|
|
|
43742
43736
|
for (let col = 0; col < table.colCount; col++) {
|
|
43743
43737
|
const newColWidth = newWidths[col] ?? table.getColWidth(col);
|
|
43744
43738
|
if (newColWidth !== oldColWidths[col]) {
|
|
43745
|
-
table.scenegraph.updateColWidth(col, newColWidth - oldColWidths[col]
|
|
43739
|
+
table.scenegraph.updateColWidth(col, newColWidth - oldColWidths[col]);
|
|
43746
43740
|
}
|
|
43747
43741
|
}
|
|
43748
|
-
table.scenegraph.updateContainer();
|
|
43749
43742
|
}
|
|
43750
43743
|
}
|
|
43751
43744
|
function computeColWidth(col, startRow, endRow, table, forceCompute) {
|
|
@@ -44426,43 +44419,6 @@
|
|
|
44426
44419
|
}
|
|
44427
44420
|
function updateCell$1(col, row, table, addNew) {
|
|
44428
44421
|
const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, true);
|
|
44429
|
-
const cellStyle = table._getCellStyle(col, row);
|
|
44430
|
-
const autoWrapText = cellStyle.autoWrapText ?? table.internalProps.autoWrapText;
|
|
44431
|
-
const cellTheme = getStyleTheme(cellStyle, table, col, row, getProp).theme;
|
|
44432
|
-
if (!addNew && canUseFastUpdate(col, row, oldCellGroup, autoWrapText, table)) {
|
|
44433
|
-
const cellWidth = table.getColWidth(col);
|
|
44434
|
-
const cellHeight = table.getRowHeight(row);
|
|
44435
|
-
oldCellGroup.setAttributes({
|
|
44436
|
-
width: cellWidth,
|
|
44437
|
-
height: cellHeight,
|
|
44438
|
-
lineWidth: cellTheme?.group?.lineWidth ?? undefined,
|
|
44439
|
-
fill: cellTheme?.group?.fill ?? undefined,
|
|
44440
|
-
stroke: cellTheme?.group?.stroke ?? undefined,
|
|
44441
|
-
strokeArrayWidth: cellTheme?.group?.strokeArrayWidth ?? undefined,
|
|
44442
|
-
strokeArrayColor: cellTheme?.group?.strokeArrayColor ?? undefined,
|
|
44443
|
-
cursor: cellTheme?.group?.cursor ?? undefined
|
|
44444
|
-
});
|
|
44445
|
-
const textMark = oldCellGroup.getChildByName('text');
|
|
44446
|
-
if (textMark) {
|
|
44447
|
-
const text = table.getCellValue(col, row);
|
|
44448
|
-
const hierarchyOffset = getHierarchyOffset(col, row, table);
|
|
44449
|
-
const lineClamp = cellStyle.lineClamp;
|
|
44450
|
-
const padding = getQuadProps(getProp('padding', cellStyle, col, row, table)) ?? [0, 0, 0, 0];
|
|
44451
|
-
const attribute = {
|
|
44452
|
-
text: text.length === 1 && !autoWrapText ? text[0] : text,
|
|
44453
|
-
maxLineWidth: cellWidth - (padding[1] + padding[3] + hierarchyOffset),
|
|
44454
|
-
textBaseline: 'top',
|
|
44455
|
-
autoWrapText,
|
|
44456
|
-
lineClamp,
|
|
44457
|
-
wordBreak: 'break-word',
|
|
44458
|
-
heightLimit: cellHeight - (padding[0] + padding[2]),
|
|
44459
|
-
pickable: false,
|
|
44460
|
-
dx: hierarchyOffset
|
|
44461
|
-
};
|
|
44462
|
-
textMark.setAttributes(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
|
|
44463
|
-
}
|
|
44464
|
-
return oldCellGroup;
|
|
44465
|
-
}
|
|
44466
44422
|
if (!addNew && oldCellGroup.role === 'empty') {
|
|
44467
44423
|
return undefined;
|
|
44468
44424
|
}
|
|
@@ -44500,6 +44456,8 @@
|
|
|
44500
44456
|
}
|
|
44501
44457
|
else {
|
|
44502
44458
|
const mayHaveIcon = cellLocation !== 'body' ? true : !!define?.icon || !!define?.tree;
|
|
44459
|
+
const headerStyle = table._getCellStyle(col, row);
|
|
44460
|
+
const cellTheme = getStyleTheme(headerStyle, table, col, row, getProp).theme;
|
|
44503
44461
|
const padding = cellTheme._vtable.padding;
|
|
44504
44462
|
const textAlign = cellTheme._vtable.textAlign;
|
|
44505
44463
|
const textBaseline = cellTheme._vtable.textBaseline;
|
|
@@ -44556,22 +44514,6 @@
|
|
|
44556
44514
|
}
|
|
44557
44515
|
return newCellGroup;
|
|
44558
44516
|
}
|
|
44559
|
-
function canUseFastUpdate(col, row, oldCellGroup, autoWrapText, table) {
|
|
44560
|
-
const define = table.getBodyColumnDefine(col, row);
|
|
44561
|
-
const mayHaveIcon = !!define?.icon || !!define?.tree;
|
|
44562
|
-
const cellType = table.getBodyColumnType(col, row);
|
|
44563
|
-
const autoRowHeight = table.heightMode === 'autoHeight';
|
|
44564
|
-
if (!table.isHeader(col, row) &&
|
|
44565
|
-
oldCellGroup.role === 'cell' &&
|
|
44566
|
-
cellType === 'text' &&
|
|
44567
|
-
!autoWrapText &&
|
|
44568
|
-
!autoRowHeight &&
|
|
44569
|
-
!mayHaveIcon &&
|
|
44570
|
-
oldCellGroup.firstChild?.type === 'text') {
|
|
44571
|
-
return true;
|
|
44572
|
-
}
|
|
44573
|
-
return false;
|
|
44574
|
-
}
|
|
44575
44517
|
|
|
44576
44518
|
function createComplexColumn(columnGroup, col, colWidth, rowStart, rowEnd, mergeMap, defaultRowHeight, table, cellLocation, rowLimit) {
|
|
44577
44519
|
let maxWidth = 0;
|
|
@@ -45253,18 +45195,12 @@
|
|
|
45253
45195
|
function updatePartRowPosition(startRow, endRow, direction, proxy) {
|
|
45254
45196
|
for (let col = 0; col < proxy.table.frozenColCount; col++) {
|
|
45255
45197
|
const colGroup = proxy.table.scenegraph.getColGroup(col);
|
|
45256
|
-
if (!colGroup) {
|
|
45257
|
-
continue;
|
|
45258
|
-
}
|
|
45259
45198
|
for (let row = startRow; row <= endRow; row++) {
|
|
45260
45199
|
updateCellGroupPosition(colGroup, direction, proxy);
|
|
45261
45200
|
}
|
|
45262
45201
|
}
|
|
45263
45202
|
for (let col = proxy.table.colCount - proxy.table.rightFrozenColCount; col < proxy.table.colCount; col++) {
|
|
45264
45203
|
const colGroup = proxy.table.scenegraph.getColGroup(col);
|
|
45265
|
-
if (!colGroup) {
|
|
45266
|
-
continue;
|
|
45267
|
-
}
|
|
45268
45204
|
for (let row = startRow; row <= endRow; row++) {
|
|
45269
45205
|
updateCellGroupPosition(colGroup, direction, proxy);
|
|
45270
45206
|
}
|
|
@@ -45412,7 +45348,7 @@
|
|
|
45412
45348
|
isRelease = false;
|
|
45413
45349
|
mode = 'column';
|
|
45414
45350
|
isProgressing;
|
|
45415
|
-
rowLimit =
|
|
45351
|
+
rowLimit = 1000;
|
|
45416
45352
|
currentRow = 0;
|
|
45417
45353
|
totalRow;
|
|
45418
45354
|
yLimitTop;
|
|
@@ -46130,14 +46066,7 @@
|
|
|
46130
46066
|
updateCells.forEach(cell => {
|
|
46131
46067
|
cell && updateCell$1(cell.col, cell.row, scene.table, false);
|
|
46132
46068
|
});
|
|
46133
|
-
|
|
46134
|
-
if (addRows.length) {
|
|
46135
|
-
scene.proxy.rowUpdatePos = scene.proxy.rowStart;
|
|
46136
|
-
scene.proxy.rowUpdateDirection = 'up';
|
|
46137
|
-
scene.proxy.updateCellGroups(scene.proxy.screenRowCount * 2);
|
|
46138
|
-
scene.proxy.progress();
|
|
46139
|
-
}
|
|
46140
|
-
scene.updateContainerHeight(scene.table.frozenRowCount, newTotalHeight - scene.bodyGroup.attribute.height);
|
|
46069
|
+
resetRowNumberAndY(scene);
|
|
46141
46070
|
}
|
|
46142
46071
|
function removeRow(row, scene) {
|
|
46143
46072
|
for (let col = 0; col < scene.table.colCount; col++) {
|
|
@@ -46156,46 +46085,42 @@
|
|
|
46156
46085
|
}
|
|
46157
46086
|
scene.proxy.rowEnd--;
|
|
46158
46087
|
scene.proxy.bodyBottomRow--;
|
|
46159
|
-
scene.proxy.currentRow--;
|
|
46160
46088
|
scene.proxy.totalRow--;
|
|
46161
46089
|
}
|
|
46162
46090
|
function addRow(row, scene) {
|
|
46163
46091
|
for (let col = 0; col < scene.table.colCount; col++) {
|
|
46164
|
-
const cellGroup =
|
|
46165
|
-
x: 0,
|
|
46166
|
-
y: 0,
|
|
46167
|
-
width: scene.table.getColWidth(col),
|
|
46168
|
-
height: scene.table.getRowHeight(row)
|
|
46169
|
-
});
|
|
46170
|
-
cellGroup.role = 'cell';
|
|
46171
|
-
cellGroup.col = col;
|
|
46172
|
-
cellGroup.row = row;
|
|
46173
|
-
cellGroup.needUpdate = true;
|
|
46092
|
+
const cellGroup = updateCell$1(col, row, scene.table, true);
|
|
46174
46093
|
if (!cellGroup) {
|
|
46175
46094
|
continue;
|
|
46176
46095
|
}
|
|
46177
46096
|
const colGroup = scene.getColGroup(col);
|
|
46178
46097
|
if (colGroup.firstChild && row < colGroup.firstChild.row) {
|
|
46179
46098
|
colGroup.insertBefore(cellGroup, colGroup.firstChild);
|
|
46180
|
-
colGroup.firstChild.row = colGroup.firstChild.row + 1;
|
|
46181
46099
|
}
|
|
46182
46100
|
else if (colGroup.lastChild && row > colGroup.lastChild.row) {
|
|
46183
46101
|
colGroup.appendChild(cellGroup);
|
|
46184
46102
|
}
|
|
46185
46103
|
else {
|
|
46186
|
-
|
|
46104
|
+
let cellBefore;
|
|
46105
|
+
colGroup.forEachChildren((cellGroup) => {
|
|
46106
|
+
if (cellGroup.row === row) {
|
|
46107
|
+
cellBefore = cellGroup;
|
|
46108
|
+
return true;
|
|
46109
|
+
}
|
|
46110
|
+
return false;
|
|
46111
|
+
});
|
|
46187
46112
|
if (cellBefore !== cellGroup) {
|
|
46188
46113
|
colGroup.insertBefore(cellGroup, cellBefore);
|
|
46189
|
-
cellBefore && (cellBefore.row = cellBefore.row + 1);
|
|
46190
|
-
if (cellBefore !== colGroup.lastChild) {
|
|
46191
|
-
colGroup.lastChild && (colGroup.lastChild.row = colGroup.lastChild.row + 1);
|
|
46192
|
-
}
|
|
46193
46114
|
}
|
|
46194
46115
|
}
|
|
46116
|
+
let rowIndex = colGroup.firstChild?.row;
|
|
46117
|
+
colGroup.forEachChildren((cellGroup) => {
|
|
46118
|
+
cellGroup.row = rowIndex;
|
|
46119
|
+
rowIndex++;
|
|
46120
|
+
});
|
|
46195
46121
|
}
|
|
46196
46122
|
scene.proxy.rowEnd++;
|
|
46197
46123
|
scene.proxy.bodyBottomRow++;
|
|
46198
|
-
scene.proxy.currentRow++;
|
|
46199
46124
|
scene.proxy.totalRow++;
|
|
46200
46125
|
}
|
|
46201
46126
|
function deduplication(array) {
|
|
@@ -46243,7 +46168,7 @@
|
|
|
46243
46168
|
});
|
|
46244
46169
|
newTotalHeight = y;
|
|
46245
46170
|
}
|
|
46246
|
-
|
|
46171
|
+
scene.updateContainerHeight(scene.table.frozenRowCount, newTotalHeight - scene.bodyGroup.attribute.height);
|
|
46247
46172
|
}
|
|
46248
46173
|
|
|
46249
46174
|
const changedCells = [];
|
|
@@ -47509,12 +47434,10 @@
|
|
|
47509
47434
|
icon.image = icon.attribute.originImage;
|
|
47510
47435
|
}
|
|
47511
47436
|
}
|
|
47512
|
-
updateColWidth(col, detaX
|
|
47437
|
+
updateColWidth(col, detaX) {
|
|
47513
47438
|
updateColWidth(this, col, Math.round(detaX));
|
|
47514
|
-
|
|
47515
|
-
|
|
47516
|
-
this.updateContainer();
|
|
47517
|
-
}
|
|
47439
|
+
this.updateContainerAttrWidthAndX();
|
|
47440
|
+
this.updateContainer();
|
|
47518
47441
|
}
|
|
47519
47442
|
updateChartSize(col) {
|
|
47520
47443
|
updateChartSize(this, col);
|
|
@@ -50290,8 +50213,8 @@
|
|
|
50290
50213
|
endResizeCol(table);
|
|
50291
50214
|
}
|
|
50292
50215
|
else if (stateManeger.isMoveCol()) {
|
|
50293
|
-
table.stateManeger.endMoveCol();
|
|
50294
50216
|
const eventArgsSet = getCellEventArgsSet(e);
|
|
50217
|
+
table.stateManeger.endMoveCol();
|
|
50295
50218
|
if (eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION)) {
|
|
50296
50219
|
table.fireListeners(TABLE_EVENT_TYPE.CHANGE_HEADER_POSITION, {
|
|
50297
50220
|
target: { col: eventArgsSet.eventArgs.col, row: eventArgsSet.eventArgs.row },
|
|
@@ -53955,7 +53878,7 @@
|
|
|
53955
53878
|
return TABLE_EVENT_TYPE;
|
|
53956
53879
|
}
|
|
53957
53880
|
options;
|
|
53958
|
-
version = "0.13.2-alpha.
|
|
53881
|
+
version = "0.13.2-alpha.4";
|
|
53959
53882
|
pagination;
|
|
53960
53883
|
id = `VTable${Date.now()}`;
|
|
53961
53884
|
headerStyleCache;
|
|
@@ -56958,6 +56881,9 @@
|
|
|
56958
56881
|
return undefined;
|
|
56959
56882
|
}
|
|
56960
56883
|
canMoveHeaderPosition(source, target) {
|
|
56884
|
+
if (source.col < 0 || source.row < 0 || target.col < 0 || target.row < 0) {
|
|
56885
|
+
return false;
|
|
56886
|
+
}
|
|
56961
56887
|
const sourceCellRange = this.getCellRange(source.col, source.row);
|
|
56962
56888
|
if (this.isColumnHeader(source.col, source.row)) {
|
|
56963
56889
|
const sourceTopId = this.getParentCellId(source.col, sourceCellRange.start.row);
|
|
@@ -59312,6 +59238,9 @@
|
|
|
59312
59238
|
return undefined;
|
|
59313
59239
|
}
|
|
59314
59240
|
canMoveHeaderPosition(source, target) {
|
|
59241
|
+
if (source.col < 0 || source.row < 0 || target.col < 0 || target.row < 0) {
|
|
59242
|
+
return false;
|
|
59243
|
+
}
|
|
59315
59244
|
const sourceCellRange = this.getCellRange(source.col, source.row);
|
|
59316
59245
|
if (this.isColumnHeader(source.col, source.row)) {
|
|
59317
59246
|
const sourceTopId = this.getParentCellId(source.col, sourceCellRange.start.row);
|
|
@@ -63825,7 +63754,7 @@
|
|
|
63825
63754
|
return new Tag(params ? params.attribute : {});
|
|
63826
63755
|
}
|
|
63827
63756
|
|
|
63828
|
-
const version = "0.13.2-alpha.
|
|
63757
|
+
const version = "0.13.2-alpha.4";
|
|
63829
63758
|
function getIcons() {
|
|
63830
63759
|
return get$1();
|
|
63831
63760
|
}
|