@visactor/vtable-calendar 1.17.4 → 1.17.5-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
|
@@ -41156,9 +41156,9 @@
|
|
|
41156
41156
|
this.table.scenegraph.proxy.setY(-y, isEnd);
|
|
41157
41157
|
}
|
|
41158
41158
|
setBodyAndRowHeaderY(y) {
|
|
41159
|
-
var _a, _b;
|
|
41160
|
-
const firstBodyCell = null === (_a = this.bodyGroup.firstChild) || void 0 === _a ? void 0 : _a.firstChild,
|
|
41161
|
-
lastBodyCell = null === (
|
|
41159
|
+
var _a, _b, _c, _d, _e, _f;
|
|
41160
|
+
const firstBodyCell = null !== (_b = null === (_a = this.bodyGroup.firstChild) || void 0 === _a ? void 0 : _a.firstChild) && void 0 !== _b ? _b : null === (_c = this.rowHeaderGroup.firstChild) || void 0 === _c ? void 0 : _c.firstChild,
|
|
41161
|
+
lastBodyCell = null !== (_e = null === (_d = this.bodyGroup.firstChild) || void 0 === _d ? void 0 : _d.lastChild) && void 0 !== _e ? _e : null === (_f = this.rowHeaderGroup.firstChild) || void 0 === _f ? void 0 : _f.lastChild;
|
|
41162
41162
|
0 === y && firstBodyCell && firstBodyCell.row === this.table.frozenRowCount && firstBodyCell.attribute.y + y < 0 ? y = -firstBodyCell.attribute.y : lastBodyCell && this.table.tableNoFrameHeight < this.table.getAllRowsHeight() && lastBodyCell.row === this.table.rowCount - this.table.bottomFrozenRowCount - 1 && lastBodyCell.attribute.y + lastBodyCell.attribute.height + y < this.table.tableNoFrameHeight - this.table.getFrozenRowsHeight() - this.table.getBottomFrozenRowsHeight() && (y = this.table.tableNoFrameHeight - this.table.getFrozenRowsHeight() - this.table.getBottomFrozenRowsHeight() - lastBodyCell.attribute.y - lastBodyCell.attribute.height), this.colHeaderGroup.attribute.height + y !== this.bodyGroup.attribute.y && (this.bodyGroup.setAttribute("y", this.colHeaderGroup.attribute.height + y), this.rowHeaderGroup.setAttribute("y", this.cornerHeaderGroup.attribute.height + y), this.table.rightFrozenColCount > 0 && this.rightFrozenGroup.setAttribute("y", this.rightTopCornerGroup.attribute.height + y), this.updateNextFrame());
|
|
41163
41163
|
}
|
|
41164
41164
|
setBodyAndColHeaderX(x) {
|
|
@@ -46472,7 +46472,7 @@
|
|
|
46472
46472
|
return "grid" === this.hierarchyType || null === this.hierarchyType ? (null == children ? void 0 : children.length) >= 1 ? children.forEach(n => {
|
|
46473
46473
|
var _a, _b, _c;
|
|
46474
46474
|
n.level = (null !== (_a = node.level) && void 0 !== _a ? _a : 0) + 1, "grid" === this.hierarchyType && (n.afterSpanLevel = (null !== (_b = node.afterSpanLevel) && void 0 !== _b ? _b : 0) + (null !== (_c = node.levelSpan) && void 0 !== _c ? _c : 1)), this.totalLevel = Math.max(this.totalLevel, n.level + 1), size += this.setTreeNode(n, size, node);
|
|
46475
|
-
}) : size = 1 : node.hierarchyState === HierarchyState.expand && (null == children ? void 0 : children.length) >= 1 ? children.forEach(n => {
|
|
46475
|
+
}) : size = -1 === node.level ? 0 : 1 : node.hierarchyState === HierarchyState.expand && (null == children ? void 0 : children.length) >= 1 ? children.forEach(n => {
|
|
46476
46476
|
var _a;
|
|
46477
46477
|
n.level = (null !== (_a = node.level) && void 0 !== _a ? _a : 0) + 1, this.totalLevel = Math.max(this.totalLevel, n.level + 1), this.expandedMaxLevel = Math.max(this.expandedMaxLevel, n.level + 1), size += this.setTreeNode(n, size, node);
|
|
46478
46478
|
}) : node.hierarchyState === HierarchyState.collapse && (null == children ? void 0 : children.length) >= 1 ? children.forEach(n => {
|
|
@@ -46484,7 +46484,7 @@
|
|
|
46484
46484
|
})) : (null == children ? void 0 : children.length) >= 1 || !0 === children ? ((null === (_d = children[0]) || void 0 === _d ? void 0 : _d.indicatorKey) && "grid-tree" === this.hierarchyType || (node.hierarchyState = HierarchyState.collapse), (null == children ? void 0 : children.length) >= 1 && children.forEach(n => {
|
|
46485
46485
|
var _a;
|
|
46486
46486
|
n.level = (null !== (_a = node.level) && void 0 !== _a ? _a : 0) + 1, this.totalLevel = Math.max(this.totalLevel, n.level + 1), this.setTreeNode(n, size, node);
|
|
46487
|
-
})) : (node.hierarchyState = HierarchyState.none, size = 1), node.size = size, size;
|
|
46487
|
+
})) : (node.hierarchyState = HierarchyState.none, size = -1 === node.level ? 0 : 1), node.size = size, size;
|
|
46488
46488
|
}
|
|
46489
46489
|
getTreePath(index) {
|
|
46490
46490
|
let maxDeep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 30;
|
|
@@ -47676,7 +47676,7 @@
|
|
|
47676
47676
|
constructor(container) {
|
|
47677
47677
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47678
47678
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
47679
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.
|
|
47679
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.5-alpha.0", 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");
|
|
47680
47680
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
47681
47681
|
const {
|
|
47682
47682
|
frozenColCount = 0,
|