@visactor/vtable-calendar 1.17.4-alpha.1 → 1.17.4-alpha.3

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.
@@ -29234,6 +29234,10 @@
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;
29237
29241
  }
29238
29242
  };
29239
29243
  }
@@ -32239,16 +32243,15 @@
32239
32243
  }
32240
32244
  function getCellCornerRadius(col, row, table) {
32241
32245
  const tableCornerRadius = table.theme.frameStyle.cornerRadius;
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];
32246
+ if (table.theme.cellInnerBorder) {
32247
+ if (Array.isArray(tableCornerRadius)) {
32248
+ const radius = [0, 0, 0, 0];
32249
+ return 0 === col && 0 === row && (radius[0] = tableCornerRadius[0]), col === table.colCount - 1 && 0 === row && (radius[1] = tableCornerRadius[1]), 0 === col && row === table.rowCount - 1 && (radius[3] = tableCornerRadius[3]), col === table.colCount - 1 && row === table.rowCount - 1 && (radius[2] = tableCornerRadius[2]), radius;
32250
+ }
32251
+ if (tableCornerRadius) {
32252
+ const radius = [0, 0, 0, 0];
32253
+ return 0 === col && 0 === row && (radius[0] = tableCornerRadius), col === table.colCount - 1 && 0 === row && (radius[1] = tableCornerRadius), 0 === col && row === table.rowCount - 1 && (radius[3] = tableCornerRadius), col === table.colCount - 1 && row === table.rowCount - 1 && (radius[2] = tableCornerRadius), radius;
32254
+ }
32252
32255
  }
32253
32256
  return 0;
32254
32257
  }
@@ -39222,7 +39225,10 @@
39222
39225
  if (!isNearBottomColHeader && table.bottomFrozenRowCount && endRow < table.rowCount - table.bottomFrozenRowCount) {
39223
39226
  table.getRowsHeight(0, endRow) - table.scrollTop > table.tableNoFrameHeight - table.getBottomFrozenRowsHeight() && (isNearBottomColHeader = !0);
39224
39227
  }
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]) {
39228
+ const {
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)) {
39226
39232
  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)) {
39227
39233
  const width = selectComp.rect.attribute.width - (table.getFrozenColsWidth() - selectComp.rect.attribute.x);
39228
39234
  selectComp.rect.setAttributes({
@@ -41525,7 +41531,6 @@
41525
41531
  }
41526
41532
 
41527
41533
  function updateHoverPosition(state, col, row) {
41528
- var _a;
41529
41534
  const {
41530
41535
  table: table
41531
41536
  } = state,
@@ -41547,7 +41552,7 @@
41547
41552
  scenegraph.hideHoverIcon(prevHoverCellCol, prevHoverCellRow), scenegraph.showHoverIcon(col, row), cellPosContainHeader.col = col, cellPosContainHeader.row = row;
41548
41553
  }
41549
41554
  if ((disableHeader && table.isHeader(col, row) || highlightScope === HighlightScope.none) && (col = -1, row = -1), prevHoverCellCol === col && prevHoverCellRow === row) return;
41550
- (null === (_a = state.table.options.customConfig) || void 0 === _a ? void 0 : _a.disableBuildInChartActive) || (scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow), scenegraph.activateChart(col, row));
41555
+ scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow), scenegraph.activateChart(col, row);
41551
41556
  let updateScenegraph = !1;
41552
41557
  const {
41553
41558
  ranges: ranges,
@@ -47607,7 +47612,7 @@
47607
47612
  constructor(container) {
47608
47613
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
47609
47614
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
47610
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-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");
47615
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.4-alpha.3", 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");
47611
47616
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
47612
47617
  const {
47613
47618
  frozenColCount = 0,