@visactor/vtable-calendar 1.16.0-alpha.1 → 1.16.1

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.
@@ -26396,7 +26396,9 @@
26396
26396
  reset() {
26397
26397
  this.records = [], this.fieldValue = void 0;
26398
26398
  }
26399
- recalculate() {}
26399
+ recalculate() {
26400
+ this.fieldValue = void 0, this._formatedValue = void 0;
26401
+ }
26400
26402
  }
26401
26403
  class SumAggregator extends Aggregator {
26402
26404
  constructor(config) {
@@ -28829,6 +28831,10 @@
28829
28831
  get labelVisible() {
28830
28832
  var _a;
28831
28833
  return null === (_a = columnResize.labelVisible) || void 0 === _a || _a;
28834
+ },
28835
+ get visibleOnHover() {
28836
+ var _a;
28837
+ return null !== (_a = columnResize.visibleOnHover) && void 0 !== _a && _a;
28832
28838
  }
28833
28839
  };
28834
28840
  }
@@ -33220,6 +33226,7 @@
33220
33226
  lineClamp: lineClamp,
33221
33227
  wordBreak: "break-word",
33222
33228
  heightLimit: !1 === (null === (_a = table.options.customConfig) || void 0 === _a ? void 0 : _a.limitContentHeight) || autoRowHeight && !(null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.multilinesForXTable) ? -1 : cellHeight - Math.floor(padding[0] + padding[2]),
33229
+ pickable: !1,
33223
33230
  dx: ("left" === textAlign ? hierarchyOffset : 0) + _contentOffset,
33224
33231
  whiteSpace: !1 === (null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.limitContentHeight) || 1 !== text.length || autoWrapText ? "normal" : "no-wrap",
33225
33232
  keepCenterInLine: !0
@@ -33676,8 +33683,16 @@
33676
33683
  if ("text" === type || "link" === type || customResult) {
33677
33684
  if ("link" === type) {
33678
33685
  const cellValue = value,
33686
+ cellOriginValue = table.getCellOriginValue(col, row),
33679
33687
  headerStyle = table._getCellStyle(col, row);
33680
- "link" === type && ("templateLink" in define && define.templateLink || !("linkDetect" in define) || !define.linkDetect || regUrl.test(cellValue)) && (cellTheme ? (cellTheme.text.fill = getProp("linkColor", headerStyle, col, row, table), cellTheme.group.cursor = "pointer") : cellTheme = {
33688
+ "link" === type && ("templateLink" in define && define.templateLink || !("linkDetect" in define) || !getOrApply(define.linkDetect, {
33689
+ col: col,
33690
+ row: row,
33691
+ table: table,
33692
+ value: cellValue,
33693
+ dataValue: cellOriginValue,
33694
+ cellHeaderPaths: void 0
33695
+ }) || regUrl.test(cellValue)) && (cellTheme ? (cellTheme.text.fill = getProp("linkColor", headerStyle, col, row, table), cellTheme.group.cursor = "pointer") : cellTheme = {
33681
33696
  text: {
33682
33697
  fill: getProp("linkColor", headerStyle, col, row, table)
33683
33698
  },
@@ -33686,15 +33701,10 @@
33686
33701
  }
33687
33702
  });
33688
33703
  }
33689
- let customElementsGroup,
33690
- renderDefault = !0;
33691
- if (customResult) customElementsGroup = customResult.elementsGroup, renderDefault = customResult.renderDefault;else {
33692
- let customRender, customLayout;
33693
- if ("body" !== table.getCellLocation(col, row) ? (customRender = null == define ? void 0 : define.headerCustomRender, customLayout = null == define ? void 0 : define.headerCustomLayout) : (customRender = (null == define ? void 0 : define.customRender) || table.customRender, customLayout = null == define ? void 0 : define.customLayout), customLayout || customRender) {
33694
- const customResult = dealWithCustom(customLayout, customRender, col, row, cellWidth, cellHeight, !1, table.isAutoRowHeight(row), padding, range, table);
33695
- customElementsGroup = customResult.elementsGroup, renderDefault = customResult.renderDefault;
33696
- }
33697
- }
33704
+ const {
33705
+ customElementsGroup: customElementsGroup,
33706
+ renderDefault: renderDefault
33707
+ } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult);
33698
33708
  cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync);
33699
33709
  const axisConfig = table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row);
33700
33710
  if (axisConfig) {
@@ -33712,9 +33722,13 @@
33712
33722
  const chartInstance = table.internalProps.layoutMap.getChartInstance(col, row);
33713
33723
  cellGroup = Factory.getFunction("createChartCellGroup")(null, columnGroup, 0, y, col, row, cellWidth, cellHeight, padding, value, define.chartModule, table.internalProps.layoutMap.getChartSpec(col, row), chartInstance, null !== (_b = table.internalProps.layoutMap.getChartDataId(col, row)) && void 0 !== _b ? _b : "data", table, cellTheme, table.internalProps.layoutMap.isShareChartSpec(col, row), isAsync, table.internalProps.layoutMap.isNoChartDataRenderNothing(col, row));
33714
33724
  } else if ("progressbar" === type) {
33715
- const style = table._getCellStyle(col, row),
33725
+ const {
33726
+ customElementsGroup: customElementsGroup,
33727
+ renderDefault: renderDefault
33728
+ } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult),
33729
+ style = table._getCellStyle(col, row),
33716
33730
  dataValue = table.getCellOriginValue(col, row);
33717
- cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, null, !0, cellTheme, range, isAsync);
33731
+ cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, customElementsGroup, renderDefault, cellTheme, range, isAsync);
33718
33732
  const progressBarGroup = Factory.getFunction("createProgressBarCell")(define, style, colWidth, value, dataValue, col, row, padding, table, range);
33719
33733
  cellGroup.firstChild ? cellGroup.insertBefore(progressBarGroup, cellGroup.firstChild) : cellGroup.appendChild(progressBarGroup);
33720
33734
  } else if ("sparkline" === type) {
@@ -33726,6 +33740,21 @@
33726
33740
  }
33727
33741
  return cellGroup.onBeforeAttributeUpdate = onBeforeAttributeUpdateForInvertHighlight, cellGroup;
33728
33742
  }
33743
+ function _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult) {
33744
+ let customElementsGroup,
33745
+ renderDefault = !0;
33746
+ if (customResult) customElementsGroup = customResult.elementsGroup, renderDefault = customResult.renderDefault;else {
33747
+ let customRender, customLayout;
33748
+ if ("body" !== table.getCellLocation(col, row) ? (customRender = null == define ? void 0 : define.headerCustomRender, customLayout = null == define ? void 0 : define.headerCustomLayout) : (customRender = (null == define ? void 0 : define.customRender) || table.customRender, customLayout = null == define ? void 0 : define.customLayout), customLayout || customRender) {
33749
+ const customResult = dealWithCustom(customLayout, customRender, col, row, cellWidth, cellHeight, !1, table.isAutoRowHeight(row), padding, range, table);
33750
+ customElementsGroup = customResult.elementsGroup, renderDefault = customResult.renderDefault;
33751
+ }
33752
+ }
33753
+ return {
33754
+ customElementsGroup: customElementsGroup,
33755
+ renderDefault: renderDefault
33756
+ };
33757
+ }
33729
33758
  function updateCell$1(col, row, table, addNew, isShadow, forceFastUpdate) {
33730
33759
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
33731
33760
  const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, !0),
@@ -34117,12 +34146,20 @@
34117
34146
  class FastTextMeasureContribution extends DefaultTextMeasureContribution {
34118
34147
  _fastMeasure(text, options) {
34119
34148
  const {
34120
- fontSize: fontSize,
34121
- fontFamily = "Arial,sans-serif",
34122
- fontWeight = "normal",
34123
- fontStyle = "normal"
34124
- } = options;
34125
- return getFastTextMeasure(fontSize, fontWeight, fontFamily, fontStyle).measure(text, textMeasureMode);
34149
+ fontSize: fontSize,
34150
+ fontFamily = "Arial,sans-serif",
34151
+ fontWeight = "normal",
34152
+ fontStyle = "normal"
34153
+ } = options,
34154
+ textMeasure = getFastTextMeasure(fontSize, fontWeight, fontFamily, fontStyle).measure(text, textMeasureMode);
34155
+ if (!isValid$3(textMeasure.fontBoundingBoxAscent) && !isValid$3(textMeasure.fontBoundingBoxDescent)) {
34156
+ const {
34157
+ ascent: ascent,
34158
+ descent: descent
34159
+ } = this.measureTextBoundADscentEstimate(options);
34160
+ textMeasure.fontBoundingBoxAscent = ascent, textMeasure.fontBoundingBoxDescent = descent;
34161
+ }
34162
+ return textMeasure;
34126
34163
  }
34127
34164
  measureTextWidth(text, options) {
34128
34165
  return this._fastMeasure(text, options).width;
@@ -36038,6 +36075,10 @@
36038
36075
  borderBottom = group.border.attribute.strokeArrayWidth ? group.border.attribute.strokeArrayWidth[2] : null !== (_c = group.border.attribute.lineWidth) && void 0 !== _c ? _c : 0,
36039
36076
  borderLeft = group.border.attribute.strokeArrayWidth ? group.border.attribute.strokeArrayWidth[3] : null !== (_d = group.border.attribute.lineWidth) && void 0 !== _d ? _d : 0;
36040
36077
  group.border.setAttributes({
36078
+ borderLeft: borderLeft,
36079
+ borderTop: borderTop,
36080
+ borderRight: borderRight,
36081
+ borderBottom: borderBottom,
36041
36082
  width: group.attribute.width - borderLeft / 2 - borderRight / 2,
36042
36083
  height: group.attribute.height - borderTop / 2 - borderBottom / 2
36043
36084
  }), "group" === group.border.type && group.border.firstChild.setAttributes({
@@ -37876,9 +37917,12 @@
37876
37917
  });
37877
37918
  }
37878
37919
  function updateColumnContainerWidth(containerGroup) {
37879
- var _a;
37920
+ var _a, _b;
37880
37921
  const lastColGroup = getLastChild(containerGroup);
37881
- lastColGroup && (containerGroup.setAttribute("width", lastColGroup.attribute.x + lastColGroup.attribute.width), null === (_a = containerGroup.border) || void 0 === _a || _a.setAttribute("width", lastColGroup.attribute.x + lastColGroup.attribute.width));
37922
+ if (lastColGroup && (containerGroup.setAttribute("width", lastColGroup.attribute.x + lastColGroup.attribute.width), containerGroup.border)) {
37923
+ const border = containerGroup.border;
37924
+ border.setAttribute("width", lastColGroup.attribute.x + lastColGroup.attribute.width - (null !== (_a = border.attribute.borderLeft) && void 0 !== _a ? _a : 0) / 2 - (null !== (_b = border.attribute.borderRight) && void 0 !== _b ? _b : 0) / 2);
37925
+ }
37882
37926
  }
37883
37927
 
37884
37928
  function updateAutoRow(colStart, colEnd, rowStart, rowEnd, table) {
@@ -38051,7 +38095,17 @@
38051
38095
  const cellGroup = proxy.highPerformanceGetCell(col, row);
38052
38096
  proxy.updateCellGroupContent(cellGroup);
38053
38097
  }
38054
- return proxy.table.scenegraph.updateNextFrame(), sync;
38098
+ return updateColumnContainerHeight(proxy.table.scenegraph.rowHeaderGroup), updateColumnContainerHeight(proxy.table.scenegraph.rightFrozenGroup), updateColumnContainerHeight(proxy.table.scenegraph.bodyGroup), proxy.table.scenegraph.updateNextFrame(), sync;
38099
+ }
38100
+ function updateColumnContainerHeight(containerGroup) {
38101
+ var _a, _b;
38102
+ const lastColGroup = getLastChild(containerGroup);
38103
+ if (!lastColGroup) return;
38104
+ const lastCellGroup = getLastChild(lastColGroup);
38105
+ if (lastCellGroup && (containerGroup.setAttribute("height", lastCellGroup.attribute.y + lastCellGroup.attribute.height), containerGroup.border)) {
38106
+ const border = containerGroup.border;
38107
+ border.setAttribute("height", lastCellGroup.attribute.y + lastCellGroup.attribute.height - (null !== (_a = border.attribute.borderTop) && void 0 !== _a ? _a : 0) / 2 - (null !== (_b = border.attribute.borderBottom) && void 0 !== _b ? _b : 0) / 2);
38108
+ }
38055
38109
  }
38056
38110
 
38057
38111
  var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
@@ -40882,9 +40936,10 @@
40882
40936
  "image" !== type && "video" !== type || updateImageCellContentWhileResize(cellGroup, col, row, 0, 0, this.table);
40883
40937
  }
40884
40938
  createFrameBorder() {
40939
+ var _a, _b, _c, _d, _e;
40885
40940
  this.updateTableSize();
40886
40941
  const isListTableWithFrozen = !this.isPivot && !this.table.internalProps.transpose;
40887
- createFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle, this.bodyGroup.role, isListTableWithFrozen ? [!0, !0, !0, !1] : void 0), createFrameBorder(this.rowHeaderGroup, this.isPivot || this.table.internalProps.transpose ? this.table.theme.rowHeaderStyle.frameStyle : this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [!0, !1, !0, !0] : void 0), createFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, this.colHeaderGroup.role, isListTableWithFrozen ? [!0, !0, !0, !1] : void 0), createFrameBorder(this.cornerHeaderGroup, this.isPivot ? this.table.theme.cornerHeaderStyle.frameStyle : this.table.theme.headerStyle.frameStyle, this.cornerHeaderGroup.role, isListTableWithFrozen ? [!0, !1, !0, !0] : void 0), createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, void 0);
40942
+ createFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle, this.bodyGroup.role, isListTableWithFrozen ? [!0, !0, !0, !1] : void 0), createFrameBorder(this.rowHeaderGroup, this.isPivot || this.table.internalProps.transpose ? this.table.theme.rowHeaderStyle.frameStyle : this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [!0, !1, !0, !0] : void 0), createFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, this.colHeaderGroup.role, isListTableWithFrozen ? [!0, !0, !0, !1] : void 0), createFrameBorder(this.cornerHeaderGroup, this.isPivot ? this.table.theme.cornerHeaderStyle.frameStyle : this.table.theme.headerStyle.frameStyle, this.cornerHeaderGroup.role, isListTableWithFrozen ? [!0, !1, !0, !0] : void 0), (null === (_a = this.table.theme.cornerLeftBottomCellStyle) || void 0 === _a ? void 0 : _a.frameStyle) && createFrameBorder(this.leftBottomCornerGroup, this.table.theme.cornerLeftBottomCellStyle.frameStyle, this.leftBottomCornerGroup.role, isListTableWithFrozen ? [!0, !1, !0, !0] : void 0), (null === (_b = this.table.theme.bottomFrozenStyle) || void 0 === _b ? void 0 : _b.frameStyle) && createFrameBorder(this.bottomFrozenGroup, this.table.theme.bottomFrozenStyle.frameStyle, this.bottomFrozenGroup.role, isListTableWithFrozen ? [!0, !0, !0, !1] : void 0), (null === (_c = this.table.theme.rightFrozenStyle) || void 0 === _c ? void 0 : _c.frameStyle) && createFrameBorder(this.rightFrozenGroup, this.table.theme.rightFrozenStyle.frameStyle, this.rightFrozenGroup.role, void 0), (null === (_d = this.table.theme.cornerRightTopCellStyle) || void 0 === _d ? void 0 : _d.frameStyle) && createFrameBorder(this.rightTopCornerGroup, this.table.theme.cornerRightTopCellStyle.frameStyle, this.rightTopCornerGroup.role, void 0), (null === (_e = this.table.theme.cornerRightBottomCellStyle) || void 0 === _e ? void 0 : _e.frameStyle) && createFrameBorder(this.rightBottomCornerGroup, this.table.theme.cornerRightBottomCellStyle.frameStyle, this.rightBottomCornerGroup.role, void 0), createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, void 0);
40888
40943
  }
40889
40944
  getResizeColAt(abstractX, abstractY, cellGroup) {
40890
40945
  const offset = this.table.theme.columnResize.resizeHotSpotSize / 2;
@@ -40944,21 +40999,16 @@
40944
40999
  this.clear ? this.table.internalProps.bottomFrozenRowCount = bottomFrozenRowCount : dealBottomFrozen(bottomFrozenRowCount, this);
40945
41000
  }
40946
41001
  updateBorderSizeAndPosition() {
40947
- this.bodyGroup.border && (this.bodyGroup.appendChild(this.bodyGroup.border), updateFrameBorderSize(this.bodyGroup), this.rowHeaderGroup.attribute.width, updateFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle)), this.colHeaderGroup.border && (this.colHeaderGroup.appendChild(this.colHeaderGroup.border), updateFrameBorderSize(this.colHeaderGroup), this.cornerHeaderGroup.attribute.width, updateFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle)), this.rowHeaderGroup.border && (this.rowHeaderGroup.appendChild(this.rowHeaderGroup.border), updateFrameBorderSize(this.rowHeaderGroup)), this.cornerHeaderGroup.border && (this.cornerHeaderGroup.appendChild(this.cornerHeaderGroup.border), updateFrameBorderSize(this.cornerHeaderGroup)), updateCornerRadius(this.table);
41002
+ this.bodyGroup.border && (this.bodyGroup.appendChild(this.bodyGroup.border), updateFrameBorderSize(this.bodyGroup), this.rowHeaderGroup.attribute.width, updateFrameBorder(this.bodyGroup, this.table.theme.bodyStyle.frameStyle)), this.colHeaderGroup.border && (this.colHeaderGroup.appendChild(this.colHeaderGroup.border), updateFrameBorderSize(this.colHeaderGroup), this.cornerHeaderGroup.attribute.width, updateFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle)), this.rowHeaderGroup.border && (this.rowHeaderGroup.appendChild(this.rowHeaderGroup.border), updateFrameBorderSize(this.rowHeaderGroup)), this.cornerHeaderGroup.border && (this.cornerHeaderGroup.appendChild(this.cornerHeaderGroup.border), updateFrameBorderSize(this.cornerHeaderGroup)), this.leftBottomCornerGroup.border && (this.leftBottomCornerGroup.appendChild(this.leftBottomCornerGroup.border), updateFrameBorderSize(this.leftBottomCornerGroup)), this.bottomFrozenGroup.border && (this.bottomFrozenGroup.appendChild(this.bottomFrozenGroup.border), updateFrameBorderSize(this.bottomFrozenGroup)), this.rightFrozenGroup.border && (this.rightFrozenGroup.appendChild(this.rightFrozenGroup.border), updateFrameBorderSize(this.rightFrozenGroup)), this.rightTopCornerGroup.border && (this.rightTopCornerGroup.appendChild(this.rightTopCornerGroup.border), updateFrameBorderSize(this.rightTopCornerGroup)), this.rightBottomCornerGroup.border && (this.rightBottomCornerGroup.appendChild(this.rightBottomCornerGroup.border), updateFrameBorderSize(this.rightBottomCornerGroup)), updateCornerRadius(this.table);
40948
41003
  }
40949
41004
  sortCell() {
40950
41005
  this.isPivot || (this.table.transpose ? this.proxy.sortCellHorizontal() : this.proxy.sortCellVertical());
40951
41006
  }
40952
41007
  getCellOverflowText(col, row) {
40953
- var _a, _b;
40954
41008
  const text = this.getCell(col, row).getChildByName("text", !0);
40955
41009
  if (text && "text" === text.type) {
40956
41010
  if (text.attribute.moreThanMaxCharacters) return this.table.getCellValue(col, row);
40957
- const textAttributeStr = isArray$7(text.attribute.text) ? text.attribute.text.join("") : text.attribute.text;
40958
- let cacheStr = "";
40959
- if (isString$4(text.cache.clipedText) ? cacheStr = text.cache.clipedText : null === (_b = null === (_a = text.cache.layoutData) || void 0 === _a ? void 0 : _a.lines) || void 0 === _b || _b.forEach(line => {
40960
- cacheStr += line.str;
40961
- }), cacheStr !== textAttributeStr) return this.table.getCellValue(col, row);
41011
+ if (text.cliped) return this.table.getCellValue(col, row);
40962
41012
  } else if (text && "richtext" === text.type) {
40963
41013
  const richtext = text;
40964
41014
  if (richtext.attribute.ellipsis && richtext._frameCache && richtext.attribute.height < richtext._frameCache.actualHeight) {
@@ -41935,7 +41985,7 @@
41935
41985
  if (state._checkboxCellTypeFields = [], state._headerCheckFuncs = {}, state.table.internalProps.layoutMap.headerObjects.forEach((hd, index) => {
41936
41986
  if ("checkbox" === hd.headerType) {
41937
41987
  const headerChecked = hd.define.checked;
41938
- null == headerChecked || "function" == typeof headerChecked ? (isNeedInitHeaderCheckedStateFromRecord = !0, "function" == typeof headerChecked && (state._headerCheckFuncs[hd.field] = headerChecked)) : state.headerCheckedState[hd.field] = headerChecked, "checkbox" !== hd.define.cellType || hd.fieldFormat || state._checkboxCellTypeFields.push(hd.field);
41988
+ null == headerChecked || "function" == typeof headerChecked ? (isNeedInitHeaderCheckedStateFromRecord = !0, "function" == typeof headerChecked && (state._headerCheckFuncs[hd.field] = headerChecked)) : state.headerCheckedState[hd.field] = headerChecked, "checkbox" !== hd.define.cellType && !isFunction$5(hd.define.cellType) || hd.fieldFormat || state._checkboxCellTypeFields.push(hd.field);
41939
41989
  }
41940
41990
  }), 1 === state.table.leftRowSeriesNumberCount) state.headerCheckedState._vtable_rowSeries_number = !1, state._checkboxCellTypeFields.push("_vtable_rowSeries_number"), isNeedInitHeaderCheckedStateFromRecord = !0;else if (state.table.leftRowSeriesNumberCount > 1) {
41941
41991
  for (let i = 0; i < state.table.leftRowSeriesNumberCount; i++) state.headerCheckedState[`_vtable_rowSeries_number_${i}`] = !1, state._checkboxCellTypeFields.push(`_vtable_rowSeries_number_${i}`);
@@ -42668,13 +42718,13 @@
42668
42718
  hideMenu() {
42669
42719
  this.menu.isShow && (this.table.fireListeners(TABLE_EVENT_TYPE.DROPDOWN_MENU_CLEAR, null), this.table.fireListeners(TABLE_EVENT_TYPE.HIDE_MENU, null), this.menu.isShow = !1, this.table.scenegraph.component.menu.detach(), this.residentHoverIcon && (this.table.scenegraph.setIconNormalStyle(this.residentHoverIcon.icon, this.residentHoverIcon.col, this.residentHoverIcon.row), this.table.scenegraph.resetResidentHoverIcon(this.residentHoverIcon.col, this.residentHoverIcon.row), this.residentHoverIcon = null));
42670
42720
  }
42671
- setDropDownMenuHighlight(cells) {
42672
- this.menu.dropDownMenuHighlight = cells;
42673
- for (let i = 0; i < cells.length; i++) {
42721
+ setDropDownMenuHighlight(dropDownMenuInfo) {
42722
+ this.menu.dropDownMenuHighlight = dropDownMenuInfo;
42723
+ for (let i = 0; i < dropDownMenuInfo.length; i++) {
42674
42724
  const {
42675
42725
  col: col,
42676
42726
  row: row
42677
- } = cells[i],
42727
+ } = dropDownMenuInfo[i],
42678
42728
  range = this.table.getCellRange(col, row);
42679
42729
  if (range) for (let col = range.start.col; col <= range.end.col; col++) for (let row = range.start.row; row <= range.end.row; row++) this.table.scenegraph.updateCellContent(col, row);
42680
42730
  }
@@ -42868,13 +42918,28 @@
42868
42918
  cellValue = table.getCellValue(col, row),
42869
42919
  cellOriginValue = table.getCellOriginValue(col, row);
42870
42920
  if ("link" === cellType) {
42871
- if (!(!1 !== columnDefine.linkJump)) return;
42872
- const templateLink = columnDefine.templateLink,
42873
- linkDetect = !1 !== columnDefine.linkDetect;
42874
- let url;
42875
- if (templateLink) {
42921
+ let linkJump = getOrApply(columnDefine.linkJump, {
42922
+ col: col,
42923
+ row: row,
42924
+ table: table,
42925
+ value: cellValue,
42926
+ dataValue: cellOriginValue,
42927
+ cellHeaderPaths: void 0
42928
+ });
42929
+ if (linkJump = !1 !== linkJump, !linkJump) return;
42930
+ const templateLink = columnDefine.templateLink;
42931
+ let url,
42932
+ linkDetect = getOrApply(columnDefine.linkDetect, {
42933
+ col: col,
42934
+ row: row,
42935
+ table: table,
42936
+ value: cellValue,
42937
+ dataValue: cellOriginValue,
42938
+ cellHeaderPaths: void 0
42939
+ });
42940
+ if (linkDetect = !1 !== linkDetect, templateLink) {
42876
42941
  const rowData = table.getCellOriginRecord(col, row);
42877
- if (rowData.vtableMerge) return;
42942
+ if (rowData && rowData.vtableMerge) return;
42878
42943
  const data = Object.assign({
42879
42944
  __value: cellValue,
42880
42945
  __dataValue: cellOriginValue
@@ -43112,7 +43177,7 @@
43112
43177
  event: e.nativeEvent,
43113
43178
  target: null === (_p = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _p ? void 0 : _p.target,
43114
43179
  mergeCellInfo: null === (_q = eventArgsSet.eventArgs) || void 0 === _q ? void 0 : _q.mergeInfo
43115
- })), eventManager.dealIconHover(eventArgsSet), eventManager.dealTableHover(eventArgsSet), eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.MOUSEMOVE_CELL)) {
43180
+ })), eventManager.dealIconHover(eventArgsSet), eventManager.dealTableHover(eventArgsSet), table.theme.columnResize.visibleOnHover && eventManager.checkColumnResize(eventArgsSet, !0), eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.MOUSEMOVE_CELL)) {
43116
43181
  let icon, position;
43117
43182
  if (null === (_r = eventArgsSet.eventArgs) || void 0 === _r ? void 0 : _r.target) {
43118
43183
  const iconInfo = getIconAndPositionFromTarget(null === (_s = eventArgsSet.eventArgs) || void 0 === _s ? void 0 : _s.target);
@@ -44227,7 +44292,7 @@
44227
44292
  if (e.federatedEvent) {
44228
44293
  const eventArgsSet = getCellEventArgsSet(e.federatedEvent),
44229
44294
  resizeCol = this.table.scenegraph.getResizeColAt(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_a = eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.targetCell);
44230
- if (this.table.eventManager.checkCellFillhandle(eventArgsSet)) this.table.fireListeners(TABLE_EVENT_TYPE.DBLCLICK_FILL_HANDLE, {});else if (this.table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0) {
44295
+ if (this.table.eventManager.checkCellFillhandle(eventArgsSet)) this.table.fireListeners(TABLE_EVENT_TYPE.DBLCLICK_FILL_HANDLE, {});else if (this.table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0 && !this.table.options.disableDblclickAutoResizeColWidth) {
44231
44296
  this.table.scenegraph.updateAutoColWidth(resizeCol.col), this.table.internalProps._widthResizedColMap.add(resizeCol.col), this.table.scenegraph.updateChartSizeForResizeColWidth(resizeCol.col);
44232
44297
  const state = this.table.stateManager;
44233
44298
  state.columnResize.col < state.table.frozenColCount && !state.table.isPivotTable() && !state.table.transpose && state.table.scenegraph.component.setFrozenColumnShadow(state.table.frozenColCount - 1, state.columnResize.isRightFrozen);
@@ -44304,7 +44369,7 @@
44304
44369
  } = eventArgsSet;
44305
44370
  if (this.table.options.enableTreeStickCell && !eventArgs) return !1;
44306
44371
  const resizeCol = this.table.scenegraph.getResizeColAt(eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null == eventArgs ? void 0 : eventArgs.targetCell);
44307
- return !!(this.table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0) && (update && this.table.stateManager.startResizeCol(resizeCol.col, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, resizeCol.rightFrozen), !0);
44372
+ return this.table._canResizeColumn(resizeCol.col, resizeCol.row) && resizeCol.col >= 0 ? (update && this.table.stateManager.startResizeCol(resizeCol.col, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, resizeCol.rightFrozen), !0) : (this.table.stateManager.isResizeCol() && this.table.stateManager.endResizeCol(), !1);
44308
44373
  }
44309
44374
  checkRowResize(eventArgsSet, update) {
44310
44375
  const {
@@ -46924,7 +46989,7 @@
46924
46989
  constructor(container) {
46925
46990
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46926
46991
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
46927
- if (super(), this.showFrozenIcon = !0, this.version = "1.16.0-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");
46992
+ if (super(), this.showFrozenIcon = !0, this.version = "1.16.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");
46928
46993
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
46929
46994
  const {
46930
46995
  frozenColCount = 0,
@@ -50309,7 +50374,7 @@
50309
50374
  if (this.leftRowSeriesNumberColumnCount > 0 && col >= 0 && col < this.leftRowSeriesNumberColumnCount) {
50310
50375
  if (this.transpose) return;
50311
50376
  if (row < this.headerLevelCount) return Object.assign({}, this.leftRowSeriesNumberColumn[col], {
50312
- style: this._table.internalProps.rowSeriesNumber.headerStyle
50377
+ style: Object.assign({}, this._table.transpose ? this._table.internalProps.theme.rowHeaderStyle : this._table.internalProps.theme.headerStyle, this._table.internalProps.rowSeriesNumber.headerStyle)
50313
50378
  });
50314
50379
  }
50315
50380
  if (this.rightRowSeriesNumberColumnCount > 0 && col >= this.colCount - this.rightRowSeriesNumberColumnCount && row < this.headerLevelCount) {
@@ -51912,7 +51977,7 @@
51912
51977
  return null;
51913
51978
  }
51914
51979
  getHierarchyState(col, row) {
51915
- if (!this.options.groupBy) {
51980
+ if (!this.options.groupBy || isArray$7(this.options.groupBy) && 0 === this.options.groupBy.length) {
51916
51981
  if (!this.getBodyColumnDefine(col, row).tree) return HierarchyState.none;
51917
51982
  }
51918
51983
  const index = this.getRecordShowIndexByCell(col, row);
@@ -52003,7 +52068,7 @@
52003
52068
  }
52004
52069
  getCheckboxState(field) {
52005
52070
  if (this.stateManager.checkedState.size < this.rowCount - this.columnHeaderLevelCount && this.stateManager.initLeftRecordsCheckState(this.records), isValid$3(field)) {
52006
- let stateArr = this.stateManager.checkedState.values();
52071
+ let stateArr = Array.from(this.stateManager.checkedState.keys()).sort().map(key => this.stateManager.checkedState.get(key));
52007
52072
  return this.options.groupBy && (stateArr = getGroupCheckboxState(this)), Array.from(stateArr, state => state[field]);
52008
52073
  }
52009
52074
  return new Array(...this.stateManager.checkedState.values());