@visactor/vtable-calendar 1.13.2 → 1.13.3-alpha.1
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
|
@@ -34088,12 +34088,16 @@
|
|
|
34088
34088
|
}
|
|
34089
34089
|
function computeRowHeight(row, startCol, endCol, table) {
|
|
34090
34090
|
var _a;
|
|
34091
|
-
if (!("autoHeight" === table.heightMode || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
34091
|
+
if (!("autoHeight" === table.heightMode || table.options.customComputeRowHeight || "adaptive" === table.heightMode && !1 !== table.options.autoHeightInAdaptiveMode) && "auto" !== table.getDefaultRowHeight(row)) return table.getDefaultRowHeight(row);
|
|
34092
34092
|
let maxHeight;
|
|
34093
|
-
if (table.options.customComputeRowHeight)
|
|
34094
|
-
|
|
34095
|
-
|
|
34096
|
-
|
|
34093
|
+
if (table.options.customComputeRowHeight) {
|
|
34094
|
+
const customRowHeight = table.options.customComputeRowHeight({
|
|
34095
|
+
row: row,
|
|
34096
|
+
table: table
|
|
34097
|
+
});
|
|
34098
|
+
if ("number" == typeof customRowHeight) return customRowHeight;
|
|
34099
|
+
if ("auto" !== customRowHeight) return table.getDefaultRowHeight(row);
|
|
34100
|
+
}
|
|
34097
34101
|
if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount) if (table.internalProps.layoutMap.indicatorsAsCol) {
|
|
34098
34102
|
const optimunHeight = table.internalProps.layoutMap.getOptimunHeightForChart(row);
|
|
34099
34103
|
if (optimunHeight > 0) return optimunHeight;
|
|
@@ -38304,12 +38308,12 @@
|
|
|
38304
38308
|
}
|
|
38305
38309
|
updateCellGroups(count) {
|
|
38306
38310
|
const distRow = Math.min(this.bodyBottomRow, this.rowUpdatePos + count);
|
|
38307
|
-
"autoHeight" === this.table.heightMode && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
|
|
38311
|
+
("autoHeight" === this.table.heightMode || this.table.options.customComputeRowHeight) && computeRowsHeight(this.table, this.rowUpdatePos, distRow, !1), updateRowContent(this.rowUpdatePos, distRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection, !0)), this.rowUpdatePos = distRow + 1;
|
|
38308
38312
|
}
|
|
38309
38313
|
updateBottomFrozenCellGroups() {
|
|
38310
38314
|
const startRow = this.table.rowCount - this.table.bottomFrozenRowCount,
|
|
38311
38315
|
endRow = this.table.rowCount - 1;
|
|
38312
|
-
"autoHeight" === this.table.heightMode && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
|
|
38316
|
+
("autoHeight" === this.table.heightMode || this.table.options.customComputeRowHeight) && computeRowsHeight(this.table, startRow, endRow, !1), updateRowContent(startRow, endRow, this), "autoHeight" === this.table.heightMode && (updateAutoRow(this.bodyLeftCol, this.bodyRightCol, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(0, this.table.frozenColCount - 1, startRow, endRow, this.table, this.rowUpdateDirection), updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, startRow, endRow, this.table, this.rowUpdateDirection));
|
|
38313
38317
|
}
|
|
38314
38318
|
updateRightFrozenCellGroups() {
|
|
38315
38319
|
const startCol = this.table.colCount - this.table.rightFrozenColCount,
|
|
@@ -46372,7 +46376,7 @@
|
|
|
46372
46376
|
constructor(container) {
|
|
46373
46377
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46374
46378
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46375
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.13.
|
|
46379
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.13.3-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
46376
46380
|
const {
|
|
46377
46381
|
frozenColCount = 0,
|
|
46378
46382
|
frozenRowCount: frozenRowCount,
|