@visactor/vtable-calendar 1.22.8 → 1.22.9-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
|
@@ -44112,10 +44112,10 @@
|
|
|
44112
44112
|
function getAxisConfigInPivotChart(col, row, layout) {
|
|
44113
44113
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
44114
44114
|
if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
|
|
44115
|
-
if (layout.
|
|
44115
|
+
if (layout.hasTopIndicatorAxis && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
44116
44116
|
const indicatorKey = layout.getIndicatorKey(col, row),
|
|
44117
44117
|
indicatorInfo = layout.getIndicatorInfo(indicatorKey);
|
|
44118
|
-
if (!(null == indicatorInfo ? void 0 : indicatorInfo.
|
|
44118
|
+
if (!(null == indicatorInfo ? void 0 : indicatorInfo.hasTopIndicatorAxis)) return;
|
|
44119
44119
|
const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
|
|
44120
44120
|
if (!axisRange) return;
|
|
44121
44121
|
const chartCellStyle = layout._table._getCellStyle(col, row + 1),
|
|
@@ -44286,7 +44286,7 @@
|
|
|
44286
44286
|
if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
44287
44287
|
const indicatorKey = layout.getIndicatorKey(col, row),
|
|
44288
44288
|
indicatorInfo = layout.getIndicatorInfo(indicatorKey);
|
|
44289
|
-
if (!(null == indicatorInfo ? void 0 : indicatorInfo.
|
|
44289
|
+
if (!(null == indicatorInfo ? void 0 : indicatorInfo.hasRightIndicatorAxis)) return;
|
|
44290
44290
|
const {
|
|
44291
44291
|
axisOption: axisOption,
|
|
44292
44292
|
chartType: chartType
|
|
@@ -44456,7 +44456,7 @@
|
|
|
44456
44456
|
function isTopOrBottomAxis(col, row, layout) {
|
|
44457
44457
|
if (!layout._table.isPivotChart()) return !1;
|
|
44458
44458
|
if (layout.indicatorsAsCol) {
|
|
44459
|
-
if (layout.
|
|
44459
|
+
if (layout.hasTopIndicatorAxis && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return !0;
|
|
44460
44460
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return !0;
|
|
44461
44461
|
} else if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return !0;
|
|
44462
44462
|
return !1;
|
|
@@ -44483,7 +44483,7 @@
|
|
|
44483
44483
|
Direction.vertical = "vertical", Direction.horizontal = "horizontal";
|
|
44484
44484
|
}(Direction || (Direction = {}));
|
|
44485
44485
|
function getRange(position, colForAxisOption, rowForAxisOption, colForIndicatorKey, rowForIndicatorKey, col, row, defaultSeriesIndice, layout) {
|
|
44486
|
-
const indicatorKeys = layout.getIndicatorKeyInChartSpec(colForIndicatorKey, rowForIndicatorKey);
|
|
44486
|
+
const indicatorKeys = layout.getIndicatorKeyInChartSpec(colForIndicatorKey >= 0 ? colForIndicatorKey : col, rowForIndicatorKey >= 0 ? rowForIndicatorKey : row);
|
|
44487
44487
|
let path;
|
|
44488
44488
|
path = "top" === position || "bottom" === position ? layout.getColKeysPath(col, row) : layout.getRowKeysPath(col, row);
|
|
44489
44489
|
const rangeConfig = getChartAxisRange(colForAxisOption, rowForAxisOption, defaultSeriesIndice, position, indicatorKeys, path, layout);
|
|
@@ -45882,7 +45882,7 @@
|
|
|
45882
45882
|
maxWidth = Math.max(axisWidth, maxWidth);
|
|
45883
45883
|
continue;
|
|
45884
45884
|
}
|
|
45885
|
-
} else if (layout.isLeftBottomCorner(col, row) || layout.isRightTopCorner(col, row) || layout.isRightBottomCorner(col, row)) continue;
|
|
45885
|
+
} else if (layout.isLeftBottomCorner(col, row) || layout.isRightTopCorner(col, row) || layout.isRightBottomCorner(col, row) || layout.isAxisCell(col, row)) continue;
|
|
45886
45886
|
}
|
|
45887
45887
|
const customWidth = computeCustomRenderWidth(col, row, table);
|
|
45888
45888
|
if (customWidth && (maxWidth = Math.max(customWidth.width, maxWidth), !customWidth.renderDefault)) continue;
|
|
@@ -53184,7 +53184,7 @@
|
|
|
53184
53184
|
}
|
|
53185
53185
|
function getAxisPosition(col, row, layout) {
|
|
53186
53186
|
if (layout.indicatorsAsCol) {
|
|
53187
|
-
if (layout.
|
|
53187
|
+
if (layout.hasTopIndicatorAxis && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return "top";
|
|
53188
53188
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) return "bottom";
|
|
53189
53189
|
if (col === layout.rowHeaderLevelCount - 1 && row >= layout.rowHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) return "left";
|
|
53190
53190
|
} else {
|
|
@@ -56083,7 +56083,7 @@
|
|
|
56083
56083
|
}
|
|
56084
56084
|
constructor(container, options = {}) {
|
|
56085
56085
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
56086
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.
|
|
56086
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.9-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");
|
|
56087
56087
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56088
56088
|
options: options,
|
|
56089
56089
|
container: container
|