@visactor/vtable-calendar 1.17.4-alpha.5 → 1.17.4
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 +12 -19
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +5 -5
package/dist/vtable-calendar.js
CHANGED
|
@@ -29234,10 +29234,6 @@
|
|
|
29234
29234
|
get selectionFillMode() {
|
|
29235
29235
|
var _a;
|
|
29236
29236
|
return null !== (_a = null == selectionStyle ? void 0 : selectionStyle.selectionFillMode) && void 0 !== _a ? _a : "overlay";
|
|
29237
|
-
},
|
|
29238
|
-
get dynamicUpdateSelectionSize() {
|
|
29239
|
-
var _a;
|
|
29240
|
-
return null !== (_a = null == selectionStyle ? void 0 : selectionStyle.dynamicUpdateSelectionSize) && void 0 !== _a && _a;
|
|
29241
29237
|
}
|
|
29242
29238
|
};
|
|
29243
29239
|
}
|
|
@@ -32243,15 +32239,16 @@
|
|
|
32243
32239
|
}
|
|
32244
32240
|
function getCellCornerRadius(col, row, table) {
|
|
32245
32241
|
const tableCornerRadius = table.theme.frameStyle.cornerRadius;
|
|
32246
|
-
if (table.theme.cellInnerBorder) {
|
|
32247
|
-
if (
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32242
|
+
if (table.theme.cellInnerBorder) if (Array.isArray(tableCornerRadius)) {
|
|
32243
|
+
if (0 === col && 0 === row) return [tableCornerRadius[0], 0, 0, 0];
|
|
32244
|
+
if (col === table.colCount - 1 && 0 === row) return [0, tableCornerRadius[1], 0, 0];
|
|
32245
|
+
if (0 === col && row === table.rowCount - 1) return [0, 0, 0, tableCornerRadius[3]];
|
|
32246
|
+
if (col === table.colCount - 1 && row === table.rowCount - 1) return [0, 0, tableCornerRadius[2], 0];
|
|
32247
|
+
} else if (tableCornerRadius) {
|
|
32248
|
+
if (0 === col && 0 === row) return [tableCornerRadius, 0, 0, 0];
|
|
32249
|
+
if (col === table.colCount - 1 && 0 === row) return [0, tableCornerRadius, 0, 0];
|
|
32250
|
+
if (0 === col && row === table.rowCount - 1) return [0, 0, 0, tableCornerRadius];
|
|
32251
|
+
if (col === table.colCount - 1 && row === table.rowCount - 1) return [0, 0, tableCornerRadius, 0];
|
|
32255
32252
|
}
|
|
32256
32253
|
return 0;
|
|
32257
32254
|
}
|
|
@@ -39225,10 +39222,7 @@
|
|
|
39225
39222
|
if (!isNearBottomColHeader && table.bottomFrozenRowCount && endRow < table.rowCount - table.bottomFrozenRowCount) {
|
|
39226
39223
|
table.getRowsHeight(0, endRow) - table.scrollTop > table.tableNoFrameHeight - table.getBottomFrozenRowsHeight() && (isNearBottomColHeader = !0);
|
|
39227
39224
|
}
|
|
39228
|
-
|
|
39229
|
-
dynamicUpdateSelectionSize: dynamicUpdateSelectionSize
|
|
39230
|
-
} = table.theme.selectionStyle;
|
|
39231
|
-
if (isNearRowHeader && (selectComp.rect.attribute.stroke[3] || dynamicUpdateSelectionSize) || isNearRightRowHeader && (selectComp.rect.attribute.stroke[1] || dynamicUpdateSelectionSize) || isNearColHeader && (selectComp.rect.attribute.stroke[0] || dynamicUpdateSelectionSize) || isNearBottomColHeader && (selectComp.rect.attribute.stroke[2] || dynamicUpdateSelectionSize)) {
|
|
39225
|
+
if (isNearRowHeader && selectComp.rect.attribute.stroke[3] || isNearRightRowHeader && selectComp.rect.attribute.stroke[1] || isNearColHeader && selectComp.rect.attribute.stroke[0] || isNearBottomColHeader && selectComp.rect.attribute.stroke[2]) {
|
|
39232
39226
|
if (isNearRowHeader && selectComp.rect.attribute.stroke[3] && scene.tableGroup.insertAfter(selectComp.rect, "columnHeader" === selectComp.role ? scene.cornerHeaderGroup : "bottomFrozen" === selectComp.role ? scene.leftBottomCornerGroup : scene.rowHeaderGroup), isNearBottomColHeader && selectComp.rect.attribute.stroke[2] && scene.tableGroup.insertAfter(selectComp.rect, "rowHeader" === selectComp.role ? scene.leftBottomCornerGroup : "rightFrozen" === selectComp.role ? scene.rightBottomCornerGroup : scene.bottomFrozenGroup), isNearColHeader && selectComp.rect.attribute.stroke[0] && scene.tableGroup.insertAfter(selectComp.rect, "rowHeader" === selectComp.role ? scene.cornerHeaderGroup : "rightFrozen" === selectComp.role ? scene.rightTopCornerGroup : scene.colHeaderGroup), isNearRightRowHeader && selectComp.rect.attribute.stroke[1] && scene.tableGroup.insertAfter(selectComp.rect, "columnHeader" === selectComp.role ? scene.rightTopCornerGroup : "bottomFrozen" === selectComp.role ? scene.rightBottomCornerGroup : scene.rightFrozenGroup), selectComp.rect.attribute.x < table.getFrozenColsWidth() && table.scrollLeft > 0 && ("body" === selectComp.role || "columnHeader" === selectComp.role || "bottomFrozen" === selectComp.role)) {
|
|
39233
39227
|
const width = selectComp.rect.attribute.width - (table.getFrozenColsWidth() - selectComp.rect.attribute.x);
|
|
39234
39228
|
selectComp.rect.setAttributes({
|
|
@@ -47682,7 +47676,7 @@
|
|
|
47682
47676
|
constructor(container) {
|
|
47683
47677
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
47684
47678
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
47685
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.17.4
|
|
47679
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.17.4", 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");
|
|
47686
47680
|
!1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
|
|
47687
47681
|
const {
|
|
47688
47682
|
frozenColCount = 0,
|
|
@@ -48067,7 +48061,6 @@
|
|
|
48067
48061
|
shadowWidths = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [0]);
|
|
48068
48062
|
(null === (_r = this.theme.frameStyle) || void 0 === _r ? void 0 : _r.innerBorder) ? (this.tableX = 0, this.tableY = 0, this.tableNoFrameWidth = width - (null !== (_s = shadowWidths[1]) && void 0 !== _s ? _s : 0), this.tableNoFrameHeight = height - (null !== (_t = shadowWidths[2]) && void 0 !== _t ? _t : 0)) : (this.tableX = (null !== (_u = lineWidths[3]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[3]) && void 0 !== _v ? _v : 0), this.tableY = (null !== (_w = lineWidths[0]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[0]) && void 0 !== _x ? _x : 0), this.tableNoFrameWidth = width - ((null !== (_y = lineWidths[1]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[1]) && void 0 !== _z ? _z : 0)) - ((null !== (_0 = lineWidths[3]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[3]) && void 0 !== _1 ? _1 : 0)), this.tableNoFrameHeight = height - ((null !== (_2 = lineWidths[0]) && void 0 !== _2 ? _2 : 0) + (null !== (_3 = shadowWidths[0]) && void 0 !== _3 ? _3 : 0)) - ((null !== (_4 = lineWidths[2]) && void 0 !== _4 ? _4 : 0) + (null !== (_5 = shadowWidths[2]) && void 0 !== _5 ? _5 : 0)));
|
|
48069
48063
|
}
|
|
48070
|
-
this._clearColRangeWidthsMap(), this._clearRowRangeHeightsMap();
|
|
48071
48064
|
}
|
|
48072
48065
|
updateViewBox(newViewBox) {
|
|
48073
48066
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|