@visactor/vtable-calendar 1.18.8 → 1.18.9
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
|
@@ -39342,10 +39342,12 @@
|
|
|
39342
39342
|
actualWidth = 0;
|
|
39343
39343
|
for (let col = 0; col < table.colCount; col++) {
|
|
39344
39344
|
const colWidth = update && null !== (_f = newWidths[col]) && void 0 !== _f ? _f : table.getColWidth(col);
|
|
39345
|
-
(col < table.rowHeaderLevelCount + table.leftRowSeriesNumberCount || table.isPivotChart() && col >= table.colCount - table.rightFrozenColCount) && (actualHeaderWidth += colWidth), actualWidth += colWidth;
|
|
39345
|
+
"only-body" === table.widthAdaptiveMode && (col < table.rowHeaderLevelCount + table.leftRowSeriesNumberCount || table.isPivotChart() && col >= table.colCount - table.rightFrozenColCount) && (actualHeaderWidth += colWidth), actualWidth += colWidth;
|
|
39346
39346
|
}
|
|
39347
39347
|
if (actualWidth < canvasWidth && actualWidth > actualHeaderWidth) {
|
|
39348
|
-
|
|
39348
|
+
let startCol = 0,
|
|
39349
|
+
endCol = table.colCount;
|
|
39350
|
+
"only-body" === table.widthAdaptiveMode && (startCol = table.rowHeaderLevelCount + table.leftRowSeriesNumberCount, endCol = table.isPivotChart() ? table.colCount - table.rightFrozenColCount : table.colCount), getAdaptiveWidth(canvasWidth - actualHeaderWidth, startCol, endCol, update, newWidths, table);
|
|
39349
39351
|
}
|
|
39350
39352
|
}
|
|
39351
39353
|
if (update) {
|
|
@@ -42939,12 +42941,12 @@
|
|
|
42939
42941
|
actualWidth = 0;
|
|
42940
42942
|
for (let col = 0; col < table.colCount; col++) {
|
|
42941
42943
|
const colWidth = table.getColWidth(col);
|
|
42942
|
-
(col < table.rowHeaderLevelCount || table.isPivotChart() && col >= table.colCount - table.rightFrozenColCount) && (actualHeaderWidth += colWidth), actualWidth += colWidth;
|
|
42944
|
+
"only-body" === table.widthAdaptiveMode && (col < table.rowHeaderLevelCount || table.isPivotChart() && col >= table.colCount - table.rightFrozenColCount) && (actualHeaderWidth += colWidth), actualWidth += colWidth;
|
|
42943
42945
|
}
|
|
42944
42946
|
if (actualWidth < canvasWidth && actualWidth > actualHeaderWidth) {
|
|
42945
|
-
|
|
42946
|
-
endCol = table.
|
|
42947
|
-
getAdaptiveWidth(canvasWidth - actualHeaderWidth, startCol, endCol, !1, [], table, !0);
|
|
42947
|
+
let startCol = 0,
|
|
42948
|
+
endCol = table.colCount;
|
|
42949
|
+
"only-body" === table.widthAdaptiveMode && (startCol = table.rowHeaderLevelCount, endCol = table.isPivotChart() ? table.colCount - table.rightFrozenColCount : table.colCount), getAdaptiveWidth(canvasWidth - actualHeaderWidth, startCol, endCol, !1, [], table, !0);
|
|
42948
42950
|
}
|
|
42949
42951
|
}
|
|
42950
42952
|
let bodyWidth = 0;
|
|
@@ -49672,7 +49674,7 @@
|
|
|
49672
49674
|
constructor(container) {
|
|
49673
49675
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
49674
49676
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
49675
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.18.
|
|
49677
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.18.9", 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");
|
|
49676
49678
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
49677
49679
|
options: options,
|
|
49678
49680
|
container: container
|