@visactor/vtable-calendar 1.19.3 → 1.19.4-alpha.0
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/dist/vtable-calendar.js
CHANGED
|
@@ -45224,13 +45224,20 @@
|
|
|
45224
45224
|
const pos = _getUpdateRowIndex(addRows[0] - 1, addRows[addRows.length - 1] + 1, scene);
|
|
45225
45225
|
rowUpdatePos = isValid$3(rowUpdatePos) ? isValid$3(pos) ? Math.min(rowUpdatePos, pos) : rowUpdatePos : pos;
|
|
45226
45226
|
}
|
|
45227
|
+
const batchMergePos = new Set();
|
|
45227
45228
|
for (let col = 0; col < table.colCount; col++) updateRows.forEach(row => {
|
|
45228
45229
|
if (row < table.frozenRowCount) {
|
|
45229
45230
|
const mergeInfo = getCellMergeInfo(scene.table, col, row);
|
|
45230
|
-
if (mergeInfo) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) for (let row = mergeInfo.start.row; row <= mergeInfo.end.row; row++)
|
|
45231
|
+
if (mergeInfo) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) for (let row = mergeInfo.start.row; row <= mergeInfo.end.row; row++) {
|
|
45232
|
+
const key = `${col}-${row}`;
|
|
45233
|
+
batchMergePos.has(key) || (updateCell$1(col, row, scene.table, !1), batchMergePos.add(key));
|
|
45234
|
+
} else updateCell$1(col, row, scene.table, !1);
|
|
45231
45235
|
} else if (row > table.rowCount - 1 || row < scene.table.rowCount - scene.table.bottomFrozenRowCount && (row < scene.proxy.rowStart || row > scene.proxy.rowEnd)) removeCellGroup(row, scene);else {
|
|
45232
45236
|
const mergeInfo = getCellMergeInfo(scene.table, col, row);
|
|
45233
|
-
if (mergeInfo) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) for (let row = mergeInfo.start.row; row <= mergeInfo.end.row; row++)
|
|
45237
|
+
if (mergeInfo) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) for (let row = mergeInfo.start.row; row <= mergeInfo.end.row; row++) {
|
|
45238
|
+
const key = `${col}-${row}`;
|
|
45239
|
+
batchMergePos.has(key) || (updateCell$1(col, row, scene.table, !1), batchMergePos.add(key));
|
|
45240
|
+
} else updateCell$1(col, row, scene.table, !1);
|
|
45234
45241
|
}
|
|
45235
45242
|
});
|
|
45236
45243
|
if (updateRows.length) {
|
|
@@ -46207,15 +46214,20 @@
|
|
|
46207
46214
|
});
|
|
46208
46215
|
const colWidthsMap = table.colWidthsMap;
|
|
46209
46216
|
let updateAfter;
|
|
46210
|
-
|
|
46217
|
+
removeCols.forEach(col => {
|
|
46211
46218
|
colWidthsMap.delAndReorder(col);
|
|
46212
46219
|
}), removeCols.length && resetColNumber(scene), scene.table._clearColRangeWidthsMap(), addCols.forEach(col => {
|
|
46213
46220
|
const needUpdateAfter = addCol(col, scene);
|
|
46214
46221
|
resetColNumber(scene), updateAfter = null != updateAfter ? updateAfter : needUpdateAfter, colWidthsMap.addAndReorder(col);
|
|
46215
|
-
}), resetColNumberAndX(scene)
|
|
46222
|
+
}), resetColNumberAndX(scene);
|
|
46223
|
+
const batchMergePos = new Set();
|
|
46224
|
+
if (updateCols.forEach(col => {
|
|
46216
46225
|
for (let row = 0; row < table.rowCount; row++) {
|
|
46217
46226
|
const mergeInfo = getCellMergeInfo(scene.table, col, row);
|
|
46218
|
-
if (mergeInfo) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++)
|
|
46227
|
+
if (mergeInfo) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) for (let col = mergeInfo.start.col; col <= mergeInfo.end.col; col++) {
|
|
46228
|
+
const key = `${col}-${row}`;
|
|
46229
|
+
batchMergePos.has(key) || (updateCell$1(col, row, scene.table, !1), batchMergePos.add(key));
|
|
46230
|
+
} else updateCell$1(col, row, scene.table, !1);
|
|
46219
46231
|
}
|
|
46220
46232
|
}), isNumber$4(updateAfter)) {
|
|
46221
46233
|
for (let col = updateAfter; col < Math.max(table.colCount, null !== (_a = table.internalProps._oldColCount) && void 0 !== _a ? _a : table.colCount); col++) for (let row = 0; row < Math.max(table.rowCount, null !== (_b = table.internalProps._oldRowCount) && void 0 !== _b ? _b : table.rowCount); row++) {
|
|
@@ -53619,7 +53631,7 @@
|
|
|
53619
53631
|
}
|
|
53620
53632
|
constructor(container, options = {}) {
|
|
53621
53633
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
53622
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.19.
|
|
53634
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.19.4-alpha.0", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
53623
53635
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
53624
53636
|
options: options,
|
|
53625
53637
|
container: container
|