@visactor/vtable-calendar 1.26.3 → 1.26.4-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.
@@ -38981,6 +38981,20 @@
38981
38981
  var _a, _b, _c;
38982
38982
  return null !== (_c = null === (_b = null === (_a = this.dataConfig) || void 0 === _a ? void 0 : _a.groupByRules) || void 0 === _b ? void 0 : _b.length) && void 0 !== _c ? _c : 0;
38983
38983
  }
38984
+ refreshRecords(records = [], dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel) {
38985
+ var _a;
38986
+ this.clearCache(), this.beforeChangedRecordsMap.clear(), this.groupAggregator = null, this.addRecordRule = (null == dataConfig ? void 0 : dataConfig.addRecordRule) || "Object", this.dataConfig = dataConfig, this.columns = columns, this._isGrouped = isArray$5(null == dataConfig ? void 0 : dataConfig.groupByRules), this.rowHierarchyType = rowHierarchyType, this.dataSourceObj = {
38987
+ get: index => records[index],
38988
+ length: records.length,
38989
+ records: records
38990
+ }, this._source = this.processRecords(records), this.sourceLength = (null === (_a = this.source) || void 0 === _a ? void 0 : _a.length) || 0, this.sortedIndexMap.clear(), this._currentPagerIndexedData = [], this.userPagination = pagination, this.pagination = pagination || {
38991
+ totalCount: this.sourceLength,
38992
+ perPageCount: this.sourceLength,
38993
+ currentPage: 0
38994
+ }, this.hierarchyExpandLevel = hierarchyExpandLevel >= 1 ? hierarchyExpandLevel : 0, this.currentIndexedData = Array.from({
38995
+ length: this.sourceLength
38996
+ }, (_, i) => i), this.userPagination || (this.pagination.perPageCount = this.sourceLength, this.pagination.totalCount = this.sourceLength), "tree" === rowHierarchyType && this.initTreeHierarchyState(), this.updatePagerData();
38997
+ }
38984
38998
  updateGroup() {
38985
38999
  var _a, _b, _c;
38986
39000
  this.clearCache();
@@ -39539,14 +39553,17 @@
39539
39553
  table.dataSource.hierarchyExpandLevel && table.refreshRowColCount(), table.render();
39540
39554
  })];
39541
39555
  }
39542
- function _setRecords(table, records = []) {
39556
+ function getListTableRowHierarchyType(table) {
39557
+ var _a, _b;
39543
39558
  const tableWithPlugins = table;
39559
+ let rowHierarchyType = table.internalProps.layoutMap.rowHierarchyType;
39560
+ return isArray$5(null === (_a = table.internalProps.dataConfig) || void 0 === _a ? void 0 : _a.groupByRules) && (rowHierarchyType = "tree"), (null === (_b = tableWithPlugins.pluginManager) || void 0 === _b ? void 0 : _b.getPluginByName("Master Detail Plugin")) && (rowHierarchyType = "grid"), rowHierarchyType;
39561
+ }
39562
+ function _setRecords(table, records = []) {
39544
39563
  _dealWithUpdateDataSource(table, () => {
39545
- var _a;
39546
39564
  table.internalProps.records = records;
39547
- let rowHierarchyType = table.internalProps.layoutMap.rowHierarchyType;
39548
- isArray$5(null === (_a = table.internalProps.dataConfig) || void 0 === _a ? void 0 : _a.groupByRules) && (rowHierarchyType = "tree"), tableWithPlugins.pluginManager.getPluginByName("Master Detail Plugin") && (rowHierarchyType = "grid");
39549
- const newDataSource = table.internalProps.dataSource = CachedDataSource.ofArray(records, table.internalProps.dataConfig, table.pagination, table.internalProps.columns, rowHierarchyType, getHierarchyExpandLevel(table));
39565
+ const rowHierarchyType = getListTableRowHierarchyType(table),
39566
+ newDataSource = table.internalProps.dataSource = CachedDataSource.ofArray(records, table.internalProps.dataConfig, table.pagination, table.internalProps.columns, rowHierarchyType, getHierarchyExpandLevel(table));
39550
39567
  table.addReleaseObj(newDataSource);
39551
39568
  });
39552
39569
  }
@@ -40336,7 +40353,7 @@
40336
40353
  col: null !== (_b = null == range ? void 0 : range.start.col) && void 0 !== _b ? _b : col,
40337
40354
  row: null !== (_c = null == range ? void 0 : range.start.row) && void 0 !== _c ? _c : row,
40338
40355
  dataValue: table.getCellOriginValue(col, row),
40339
- value: table.getCellValue(col, row),
40356
+ value: table.getCellValue(col, row) || "",
40340
40357
  rect: {
40341
40358
  left: 0,
40342
40359
  top: 0,
@@ -40358,7 +40375,7 @@
40358
40375
  col: col,
40359
40376
  row: row,
40360
40377
  dataValue: table.getCellOriginValue(col, row),
40361
- value: table.getCellValue(col, row),
40378
+ value: table.getCellValue(col, row) || "",
40362
40379
  rect: {
40363
40380
  left: 0,
40364
40381
  top: 0,
@@ -40922,7 +40939,7 @@
40922
40939
 
40923
40940
  function createCellContent(cellGroup, icons, textStr, padding, autoColWidth, autoRowHeight, autoWrapText, lineClamp, cellWidth, cellHeight, textAlign, textBaseline, table, cellTheme, range) {
40924
40941
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40925
- let contentWidth,
40942
+ let contentWidth = 0,
40926
40943
  leftIconWidth = 0,
40927
40944
  rightIconWidth = 0,
40928
40945
  absoluteRightIconWidth = 0;
@@ -41002,8 +41019,8 @@
41002
41019
  }), contentRightIcons.forEach(icon => {
41003
41020
  const iconMark = dealWithIcon(icon, void 0, cellGroup.col, cellGroup.row, range, table, dealWithIconComputeVar);
41004
41021
  iconMark.role = "icon-content-right", iconMark.name = icon.name, cellContent.addRightOccupyingIcon(iconMark);
41005
- }), cellContent.addContent(textMark), cellGroup.appendChild(cellContent), cellContent.layout(), contentWidth = cellContent.AABBBounds.width(), cellContent.AABBBounds.height();
41006
- } else cellGroup.firstChild ? cellGroup.insertBefore(textMark, cellGroup.firstChild) : cellGroup.appendChild(textMark), contentWidth = textMark.AABBBounds.width(), textMark.AABBBounds.height();
41022
+ }), cellContent.addContent(textMark), cellGroup.appendChild(cellContent), cellContent.layout(), autoColWidth && (contentWidth = cellContent.AABBBounds.width());
41023
+ } else cellGroup.firstChild ? cellGroup.insertBefore(textMark, cellGroup.firstChild) : cellGroup.appendChild(textMark), autoColWidth && (contentWidth = textMark.AABBBounds.width());
41007
41024
  } else if (isValid$1(textStr)) {
41008
41025
  const {
41009
41026
  text: text,
@@ -41027,7 +41044,7 @@
41027
41044
  keepCenterInLine: !0
41028
41045
  },
41029
41046
  wrapText = new Text(cellTheme.text ? Object.assign({}, cellTheme.text, attribute) : attribute);
41030
- wrapText.name = "text", wrapText.textBaseline = textBaseline, cellGroup.appendChild(wrapText), contentWidth = wrapText.AABBBounds.width(), wrapText.AABBBounds.height();
41047
+ wrapText.name = "text", wrapText.textBaseline = textBaseline, cellGroup.appendChild(wrapText), autoColWidth && (contentWidth = wrapText.AABBBounds.width());
41031
41048
  }
41032
41049
  const width = autoColWidth ? leftIconWidth + contentWidth + rightIconWidth : cellWidth - (padding[1] + padding[3]),
41033
41050
  height = cellHeight - (padding[0] + padding[2]);
@@ -41485,7 +41502,7 @@
41485
41502
  }
41486
41503
  }
41487
41504
 
41488
- function createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult) {
41505
+ function createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult, headerStyle) {
41489
41506
  var _a, _b;
41490
41507
  let cellGroup,
41491
41508
  isAsync = !1;
@@ -41520,7 +41537,7 @@
41520
41537
  customElementsGroup: customElementsGroup,
41521
41538
  renderDefault: renderDefault
41522
41539
  } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult);
41523
- cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync);
41540
+ cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync, headerStyle);
41524
41541
  const axisConfig = table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row);
41525
41542
  if (axisConfig) {
41526
41543
  const axis = new (Factory.getComponent("axis"))(axisConfig, cellGroup.attribute.width, cellGroup.attribute.height, null !== (_a = axisConfig.__vtableBodyChartCellPadding) && void 0 !== _a ? _a : padding, table);
@@ -41543,20 +41560,20 @@
41543
41560
  } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult),
41544
41561
  style = table._getCellStyle(col, row),
41545
41562
  dataValue = table.getCellOriginValue(col, row);
41546
- cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync);
41563
+ cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync, headerStyle);
41547
41564
  const progressBarGroup = Factory.getFunction("createProgressBarCell")(define, style, colWidth, value, dataValue, col, row, padding, table, range);
41548
41565
  cellGroup.firstChild ? cellGroup.insertBefore(progressBarGroup, cellGroup.firstChild) : cellGroup.appendChild(progressBarGroup);
41549
41566
  } else if ("sparkline" === type) {
41550
41567
  cellGroup = Factory.getFunction("createSparkLineCellGroup")(null, columnGroup, 0, y, col, row, cellWidth, cellHeight, padding, table, cellTheme, isAsync);
41551
41568
  } else if ("checkbox" === type) {
41552
41569
  if ("isAggregation" in table.internalProps.layoutMap && table.internalProps.layoutMap.isAggregation(col, row)) {
41553
- cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, void 0, !0, cellTheme, range, isAsync);
41570
+ cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, void 0, !0, cellTheme, range, isAsync, headerStyle);
41554
41571
  } else {
41555
41572
  cellGroup = Factory.getFunction("createCheckboxCellGroup")(null, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, table, cellTheme, define, range, isAsync, !1);
41556
41573
  }
41557
41574
  } else if ("radio" === type) {
41558
41575
  if ("isAggregation" in table.internalProps.layoutMap && table.internalProps.layoutMap.isAggregation(col, row)) {
41559
- cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, void 0, !0, cellTheme, range, isAsync);
41576
+ cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, void 0, !0, cellTheme, range, isAsync, headerStyle);
41560
41577
  } else {
41561
41578
  cellGroup = Factory.getFunction("createRadioCellGroup")(null, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, table, cellTheme, define, range);
41562
41579
  }
@@ -42347,7 +42364,7 @@
42347
42364
  col: null !== (_b = null == cellRange ? void 0 : cellRange.start.col) && void 0 !== _b ? _b : col,
42348
42365
  row: null !== (_c = null == cellRange ? void 0 : cellRange.start.row) && void 0 !== _c ? _c : row,
42349
42366
  dataValue: table.getCellOriginValue(col, row),
42350
- value: table.getCellValue(col, row),
42367
+ value: table.getCellValue(col, row) || "",
42351
42368
  rect: getCellRect$1(col, row, table),
42352
42369
  table: table,
42353
42370
  originCol: col,
@@ -46528,7 +46545,7 @@
46528
46545
  col: null !== (_b = null == cellRange ? void 0 : cellRange.start.col) && void 0 !== _b ? _b : col,
46529
46546
  row: null !== (_c = null == cellRange ? void 0 : cellRange.start.row) && void 0 !== _c ? _c : row,
46530
46547
  dataValue: table.getCellOriginValue(col, row),
46531
- value: table.getCellValue(col, row),
46548
+ value: table.getCellValue(col, row) || "",
46532
46549
  rect: getCellRect(col, row, table),
46533
46550
  table: table,
46534
46551
  originCol: col,
@@ -46768,6 +46785,7 @@
46768
46785
  isMerge,
46769
46786
  customStyle,
46770
46787
  customResult,
46788
+ rawRecord,
46771
46789
  cellLocation = table.getCellLocation(col, row),
46772
46790
  value = table.getCellValue(col, row),
46773
46791
  cellWidth = colWidth,
@@ -46797,17 +46815,17 @@
46797
46815
  const isAggregation = "isAggregation" in table.internalProps.layoutMap && table.internalProps.layoutMap.isAggregation(col, row),
46798
46816
  isSeriesNumber = table.internalProps.layoutMap.isSeriesNumber(col, row);
46799
46817
  let mayHaveIcon = "body" !== cellLocation || ((null == define ? void 0 : define.dragOrder) || !!(null == define ? void 0 : define.icon) || !!(null == define ? void 0 : define.tree)) && !(isAggregation && isSeriesNumber);
46800
- if (!range && (table.internalProps.enableTreeNodeMerge || "body" !== cellLocation || (null == define ? void 0 : define.mergeCell)) && (range = table.getCellRange(col, row), isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row, isMerge)) {
46818
+ if (!range && (table.internalProps.enableTreeNodeMerge || "body" !== cellLocation || (null == define ? void 0 : define.mergeCell)) && (table.internalProps.enableTreeNodeMerge && "body" === cellLocation && !(null == define ? void 0 : define.mergeCell) ? (rawRecord = table.getCellRawRecord(col, row), (null == rawRecord ? void 0 : rawRecord.vtableMerge) && (range = table.getCellRange(col, row), isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row)) : (range = table.getCellRange(col, row), isMerge = range.start.col !== range.end.col || range.start.row !== range.end.row), isMerge)) {
46801
46819
  const mergeSize = dealMerge(range, mergeMap, table, rowStart > range.start.row);
46802
46820
  cellWidth = mergeSize.cellWidth, cellHeight = mergeSize.cellHeight;
46803
46821
  }
46804
46822
  let isVtableMerge = !1;
46805
46823
  if (table.internalProps.enableTreeNodeMerge && isMerge) {
46806
- const rawRecord = table.getCellRawRecord(range.start.col, range.start.row),
46807
- {
46808
- vtableMergeName: vtableMergeName,
46809
- vtableMerge: vtableMerge
46810
- } = null != rawRecord ? rawRecord : {};
46824
+ rawRecord = null != rawRecord ? rawRecord : table.getCellRawRecord(range.start.col, range.start.row);
46825
+ const {
46826
+ vtableMergeName: vtableMergeName,
46827
+ vtableMerge: vtableMerge
46828
+ } = null != rawRecord ? rawRecord : {};
46811
46829
  isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.internalProps.groupTitleCustomLayout && (customResult = dealWithCustom(table.internalProps.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.internalProps.groupTitleFieldFormat ? value = table.internalProps.groupTitleFieldFormat(rawRecord, col, row, table) : void 0 !== vtableMergeName && (value = vtableMergeName));
46812
46830
  }
46813
46831
  const type = isVtableMerge || isCustomMerge ? "text" : table.getCellType(col, row);
@@ -46837,7 +46855,7 @@
46837
46855
  const cellStyle = customStyle || table._getCellStyle(range ? range.start.col : col, range ? range.start.row : row),
46838
46856
  cellTheme = getStyleTheme(cellStyle, table, range ? range.start.col : col, range ? range.start.row : row, getProp).theme;
46839
46857
  cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table), cellTheme.group.width = colWidth, cellTheme.group.height = Array.isArray(defaultRowHeight) ? defaultRowHeight[row] : defaultRowHeight, cellTheme._vtable.padding && (padding = cellTheme._vtable.padding), cellTheme.text.textAlign && (textAlign = cellTheme.text.textAlign), cellTheme.text.textBaseline && (textBaseline = cellTheme.text.textBaseline), "body" === cellLocation || cellTheme.group.fill || (cellTheme.group.fill = "#fff");
46840
- const cellGroup = createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult);
46858
+ const cellGroup = createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult, cellStyle);
46841
46859
  if (columnGroup.updateColumnRowNumber(row), isMerge) {
46842
46860
  const rangeHeight = table.getRowHeight(row),
46843
46861
  {
@@ -46879,7 +46897,7 @@
46879
46897
  } = createCellArgs,
46880
46898
  cellStyle = customStyle || table._getCellStyle(range ? range.start.col : col, range ? range.start.row : row),
46881
46899
  cellTheme = getStyleTheme(cellStyle, table, range ? range.start.col : col, range ? range.start.row : row, getProp).theme;
46882
- cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table), cellTheme.group.width = colWidth, cellTheme.group.height = Array.isArray(defaultRowHeight) ? defaultRowHeight[row] : defaultRowHeight, cellTheme._vtable.padding && (padding = cellTheme._vtable.padding), cellTheme.text.textAlign && (textAlign = cellTheme.text.textAlign), cellTheme.text.textBaseline && (textBaseline = cellTheme.text.textBaseline), "body" === cellLocation || cellTheme.group.fill || (cellTheme.group.fill = "#fff"), createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult);
46900
+ cellTheme.group.cornerRadius = getCellCornerRadius(col, row, table), cellTheme.group.width = colWidth, cellTheme.group.height = Array.isArray(defaultRowHeight) ? defaultRowHeight[row] : defaultRowHeight, cellTheme._vtable.padding && (padding = cellTheme._vtable.padding), cellTheme.text.textAlign && (textAlign = cellTheme.text.textAlign), cellTheme.text.textBaseline && (textBaseline = cellTheme.text.textBaseline), "body" === cellLocation || cellTheme.group.fill || (cellTheme.group.fill = "#fff"), createCell(type, value, define, table, col, row, colWidth, cellWidth, cellHeight, columnGroup, y, padding, textAlign, textBaseline, mayHaveIcon, cellTheme, range, customResult, cellStyle);
46883
46901
  }
46884
46902
  function dealMerge(range, mergeMap, table, forceUpdate) {
46885
46903
  let cellWidth = 0,
@@ -50329,16 +50347,28 @@
50329
50347
  updateContainerChildrenX(this.rightFrozenGroup, rightStartX), updateContainerChildrenX(this.rightTopCornerGroup, rightStartX), updateContainerChildrenX(this.rightBottomCornerGroup, rightStartX), this.updateNextFrame();
50330
50348
  }
50331
50349
  updateContainerAttrHeightAndY() {
50332
- var _a, _b, _c;
50333
- for (let i = 0; i < this.cornerHeaderGroup.children.length; i++) updateContainerChildrenY(this.cornerHeaderGroup.children[i], 0);
50334
- for (let i = 0; i < this.colHeaderGroup.children.length; i++) updateContainerChildrenY(this.colHeaderGroup.children[i], 0);
50335
- for (let i = 0; i < this.rightTopCornerGroup.children.length; i++) updateContainerChildrenY(this.rightTopCornerGroup.children[i], 0);
50336
- for (let i = 0; i < this.rowHeaderGroup.children.length; i++) this.rowHeaderGroup.children[i].firstChild && updateContainerChildrenY(this.rowHeaderGroup.children[i], this.rowHeaderGroup.children[i].firstChild.row > 0 ? this.table.getRowsHeight(null !== (_a = this.table.frozenRowCount) && void 0 !== _a ? _a : 0, this.rowHeaderGroup.children[i].firstChild.row - 1) : 0);
50337
- for (let i = 0; i < this.bodyGroup.children.length; i++) this.bodyGroup.children[i].firstChild && updateContainerChildrenY(this.bodyGroup.children[i], this.bodyGroup.children[i].firstChild.row > 0 ? this.table.getRowsHeight(null !== (_b = this.table.frozenRowCount) && void 0 !== _b ? _b : 0, this.bodyGroup.children[i].firstChild.row - 1) : 0);
50338
- for (let i = 0; i < this.rightFrozenGroup.children.length; i++) this.rightFrozenGroup.children[i].firstChild && updateContainerChildrenY(this.rightFrozenGroup.children[i], this.rightFrozenGroup.children[i].firstChild.row > 0 ? this.table.getRowsHeight(null !== (_c = this.table.frozenRowCount) && void 0 !== _c ? _c : 0, this.rightFrozenGroup.children[i].firstChild.row - 1) : 0);
50339
- for (let i = 0; i < this.leftBottomCornerGroup.children.length; i++) updateContainerChildrenY(this.leftBottomCornerGroup.children[i], 0);
50340
- for (let i = 0; i < this.bottomFrozenGroup.children.length; i++) updateContainerChildrenY(this.bottomFrozenGroup.children[i], 0);
50341
- for (let i = 0; i < this.rightBottomCornerGroup.children.length; i++) updateContainerChildrenY(this.rightBottomCornerGroup.children[i], 0);
50350
+ this.cornerHeaderGroup.forEachChildrenSkipChild(column => {
50351
+ updateContainerChildrenY(column, 0);
50352
+ }), this.colHeaderGroup.forEachChildrenSkipChild(column => {
50353
+ updateContainerChildrenY(column, 0);
50354
+ }), this.rightTopCornerGroup.forEachChildrenSkipChild(column => {
50355
+ updateContainerChildrenY(column, 0);
50356
+ }), this.rowHeaderGroup.forEachChildrenSkipChild(column => {
50357
+ var _a;
50358
+ column.firstChild && updateContainerChildrenY(column, column.firstChild.row > 0 ? this.table.getRowsHeight(null !== (_a = this.table.frozenRowCount) && void 0 !== _a ? _a : 0, column.firstChild.row - 1) : 0);
50359
+ }), this.bodyGroup.forEachChildrenSkipChild(column => {
50360
+ var _a;
50361
+ column.firstChild && updateContainerChildrenY(column, column.firstChild.row > 0 ? this.table.getRowsHeight(null !== (_a = this.table.frozenRowCount) && void 0 !== _a ? _a : 0, column.firstChild.row - 1) : 0);
50362
+ }), this.rightFrozenGroup.forEachChildrenSkipChild(column => {
50363
+ var _a;
50364
+ column.firstChild && updateContainerChildrenY(column, column.firstChild.row > 0 ? this.table.getRowsHeight(null !== (_a = this.table.frozenRowCount) && void 0 !== _a ? _a : 0, column.firstChild.row - 1) : 0);
50365
+ }), this.leftBottomCornerGroup.forEachChildrenSkipChild(column => {
50366
+ updateContainerChildrenY(column, 0);
50367
+ }), this.bottomFrozenGroup.forEachChildrenSkipChild(column => {
50368
+ updateContainerChildrenY(column, 0);
50369
+ }), this.rightBottomCornerGroup.forEachChildrenSkipChild(column => {
50370
+ updateContainerChildrenY(column, 0);
50371
+ });
50342
50372
  }
50343
50373
  updateContainer(updateConfig = {
50344
50374
  async: !1,
@@ -53285,73 +53315,70 @@
53285
53315
  });
53286
53316
  }), table.scenegraph.tableGroup.addEventListener("pointerup", e => {
53287
53317
  var _a, _b, _c, _d, _e, _f, _g, _h;
53288
- if (0 !== e.button) return;
53289
- const endedResizeCol = stateManager.isResizeCol(),
53290
- endedResizeRow = stateManager.isResizeRow(),
53291
- endedMoveCol = stateManager.isMoveCol(),
53292
- shouldSkipClickCell = endedResizeCol || endedResizeRow;
53293
- if ("grabing" === stateManager.interactionState) {
53294
- if (stateManager.updateInteractionState(InteractionState.default), endedResizeCol) endResizeCol(table);else if (endedResizeRow) endResizeRow(table);else if (endedMoveCol) {
53295
- const endMoveColSuccess = table.stateManager.endMoveCol();
53296
- fireMoveColEventListeners(table, endMoveColSuccess, e.nativeEvent);
53297
- } else if (stateManager.isSelecting()) {
53298
- table.stateManager.endSelectCells(), table.stateManager.isFillHandle() && table.stateManager.endFillSelect();
53318
+ if (0 === e.button) {
53319
+ if ("grabing" === stateManager.interactionState) {
53320
+ if (stateManager.updateInteractionState(InteractionState.default), stateManager.isResizeCol()) endResizeCol(table);else if (stateManager.isResizeRow()) endResizeRow(table);else if (stateManager.isMoveCol()) {
53321
+ const endMoveColSuccess = table.stateManager.endMoveCol();
53322
+ fireMoveColEventListeners(table, endMoveColSuccess, e.nativeEvent);
53323
+ } else if (stateManager.isSelecting()) {
53324
+ table.stateManager.endSelectCells(), table.stateManager.isFillHandle() && table.stateManager.endFillSelect();
53325
+ const eventArgsSet = getEventArgsSet(e);
53326
+ if (table.eventManager.isDraging && eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.DRAG_SELECT_END)) {
53327
+ const cellsEvent = {
53328
+ event: e.nativeEvent,
53329
+ cells: [],
53330
+ col: eventArgsSet.eventArgs.target.col,
53331
+ row: eventArgsSet.eventArgs.target.row,
53332
+ scaleRatio: table.canvas.getBoundingClientRect().width / table.canvas.offsetWidth,
53333
+ target: null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target,
53334
+ mergeCellInfo: null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.mergeInfo
53335
+ };
53336
+ cellsEvent.cells = table.getSelectedCellInfos(), table.fireListeners(TABLE_EVENT_TYPE.DRAG_SELECT_END, cellsEvent);
53337
+ }
53338
+ }
53339
+ } else stateManager.interactionState === InteractionState.scrolling && stateManager.updateInteractionState(InteractionState.default);
53340
+ if (!table.eventManager.isDraging) {
53299
53341
  const eventArgsSet = getEventArgsSet(e);
53300
- if (table.eventManager.isDraging && eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.DRAG_SELECT_END)) {
53301
- const cellsEvent = {
53342
+ if (!eventManager.isTouchMove && 0 === e.button && eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.CLICK_CELL)) {
53343
+ const {
53344
+ col: col,
53345
+ row: row
53346
+ } = eventArgsSet.eventArgs,
53347
+ cellInfo = table.getCellInfo(col, row);
53348
+ let icon, position;
53349
+ if (null === (_c = eventArgsSet.eventArgs) || void 0 === _c ? void 0 : _c.target) {
53350
+ const iconInfo = getIconAndPositionFromTarget(null === (_d = eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target);
53351
+ iconInfo && (icon = iconInfo.icon, position = iconInfo.position);
53352
+ }
53353
+ const cellsEvent = Object.assign(Object.assign({}, cellInfo), {
53302
53354
  event: e.nativeEvent,
53355
+ federatedEvent: e,
53303
53356
  cells: [],
53304
- col: eventArgsSet.eventArgs.target.col,
53305
- row: eventArgsSet.eventArgs.target.row,
53306
- scaleRatio: table.canvas.getBoundingClientRect().width / table.canvas.offsetWidth,
53307
- target: null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target,
53308
- mergeCellInfo: null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.mergeInfo
53309
- };
53310
- cellsEvent.cells = table.getSelectedCellInfos(), table.fireListeners(TABLE_EVENT_TYPE.DRAG_SELECT_END, cellsEvent);
53357
+ targetIcon: icon ? {
53358
+ name: icon.name,
53359
+ position: position,
53360
+ funcType: icon.attribute.funcType
53361
+ } : void 0,
53362
+ target: null === (_e = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _e ? void 0 : _e.target,
53363
+ mergeCellInfo: null === (_f = eventArgsSet.eventArgs) || void 0 === _f ? void 0 : _f.mergeInfo
53364
+ });
53365
+ table.fireListeners(TABLE_EVENT_TYPE.CLICK_CELL, cellsEvent);
53311
53366
  }
53312
53367
  }
53313
- } else stateManager.interactionState === InteractionState.scrolling && stateManager.updateInteractionState(InteractionState.default);
53314
- if (!table.eventManager.isDraging && !shouldSkipClickCell) {
53315
- const eventArgsSet = getEventArgsSet(e);
53316
- if (!eventManager.isTouchMove && 0 === e.button && eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.CLICK_CELL)) {
53317
- const {
53318
- col: col,
53319
- row: row
53320
- } = eventArgsSet.eventArgs,
53321
- cellInfo = table.getCellInfo(col, row);
53322
- let icon, position;
53323
- if (null === (_c = eventArgsSet.eventArgs) || void 0 === _c ? void 0 : _c.target) {
53324
- const iconInfo = getIconAndPositionFromTarget(null === (_d = eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target);
53325
- iconInfo && (icon = iconInfo.icon, position = iconInfo.position);
53326
- }
53327
- const cellsEvent = Object.assign(Object.assign({}, cellInfo), {
53368
+ if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEUP_CELL)) {
53369
+ const eventArgsSet = getEventArgsSet(e);
53370
+ eventArgsSet.eventArgs && table.fireListeners(TABLE_EVENT_TYPE.MOUSEUP_CELL, {
53371
+ col: eventArgsSet.eventArgs.col,
53372
+ row: eventArgsSet.eventArgs.row,
53328
53373
  event: e.nativeEvent,
53329
- federatedEvent: e,
53330
- cells: [],
53331
- targetIcon: icon ? {
53332
- name: icon.name,
53333
- position: position,
53334
- funcType: icon.attribute.funcType
53335
- } : void 0,
53336
- target: null === (_e = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _e ? void 0 : _e.target,
53337
- mergeCellInfo: null === (_f = eventArgsSet.eventArgs) || void 0 === _f ? void 0 : _f.mergeInfo
53374
+ target: null === (_g = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _g ? void 0 : _g.target,
53375
+ mergeCellInfo: null === (_h = eventArgsSet.eventArgs) || void 0 === _h ? void 0 : _h.mergeInfo
53338
53376
  });
53339
- table.fireListeners(TABLE_EVENT_TYPE.CLICK_CELL, cellsEvent);
53340
53377
  }
53378
+ setTimeout(() => {
53379
+ eventManager.isDown = !1, eventManager.isTouchdown = !1, eventManager.isTouchMove = !1, eventManager.isDraging = !1, eventManager.touchMovePoints = [];
53380
+ }, 0);
53341
53381
  }
53342
- if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEUP_CELL)) {
53343
- const eventArgsSet = getEventArgsSet(e);
53344
- eventArgsSet.eventArgs && table.fireListeners(TABLE_EVENT_TYPE.MOUSEUP_CELL, {
53345
- col: eventArgsSet.eventArgs.col,
53346
- row: eventArgsSet.eventArgs.row,
53347
- event: e.nativeEvent,
53348
- target: null === (_g = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _g ? void 0 : _g.target,
53349
- mergeCellInfo: null === (_h = eventArgsSet.eventArgs) || void 0 === _h ? void 0 : _h.mergeInfo
53350
- });
53351
- }
53352
- setTimeout(() => {
53353
- eventManager.isDown = !1, eventManager.isTouchdown = !1, eventManager.isTouchMove = !1, eventManager.isDraging = !1, eventManager.touchMovePoints = [];
53354
- }, 0);
53355
53382
  }), table.scenegraph.tableGroup.addEventListener("rightdown", e => {
53356
53383
  var _a, _b, _c, _d, _e, _f, _g, _h;
53357
53384
  const eventArgsSet = getEventArgsSet(e);
@@ -57169,7 +57196,7 @@
57169
57196
  }
57170
57197
  constructor(container, options = {}) {
57171
57198
  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;
57172
- if (super(), this.showFrozenIcon = !0, this._scrollToRowCorrectTimer = null, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.26.3", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "undefined" != typeof window) {
57199
+ if (super(), this.showFrozenIcon = !0, this._scrollToRowCorrectTimer = null, this._tableBorderWidth_left = 0, this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0, this.version = "1.26.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "undefined" != typeof window) {
57173
57200
  const g = window;
57174
57201
  g[this.id] = this;
57175
57202
  const registry = g.__vtable__ || (g.__vtable__ = {
@@ -58228,7 +58255,7 @@
58228
58255
  const internalProps = this.internalProps;
58229
58256
  if ("node" === Env.mode || options.canvas || updateRootElementPadding(internalProps.element, this.padding), this.columnWidthComputeMode = null !== (_d = options.columnWidthComputeMode) && void 0 !== _d ? _d : "normal", internalProps.frozenColCount = frozenColCount, internalProps.unfreezeAllOnExceedsMaxWidth = null == unfreezeAllOnExceedsMaxWidth || unfreezeAllOnExceedsMaxWidth, internalProps.defaultRowHeight = defaultRowHeight, internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight, internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth, internalProps.keyboardOptions = keyboardOptions, internalProps.eventOptions = eventOptions, internalProps.rowSeriesNumber = rowSeriesNumber, internalProps.enableCheckboxCascade = null === (_e = null != enableCheckboxCascade ? enableCheckboxCascade : null == rowSeriesNumber ? void 0 : rowSeriesNumber.enableTreeCheckbox) || void 0 === _e || _e, internalProps.enableHeaderCheckboxCascade = enableCheckboxCascade || null == enableHeaderCheckboxCascade || enableHeaderCheckboxCascade, internalProps.columnResizeMode = null !== (_f = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _f ? _f : columnResizeMode, internalProps.canResizeColumn = null == resize ? void 0 : resize.canResizeColumn, internalProps.rowResizeMode = null !== (_g = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _g ? _g : rowResizeMode, internalProps.dragHeaderMode = null !== (_j = null !== (_h = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _h ? _h : dragHeaderMode) && void 0 !== _j ? _j : "none", internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount), internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto", internalProps.cellTextOverflows = {}, internalProps.groupBy = null !== (_k = null == groupConfig ? void 0 : groupConfig.groupBy) && void 0 !== _k ? _k : groupBy, internalProps.groupTitleCheckbox = null == groupConfig ? void 0 : groupConfig.titleCheckbox, internalProps.groupTitleFieldFormat = null !== (_l = null == groupConfig ? void 0 : groupConfig.titleFieldFormat) && void 0 !== _l ? _l : groupTitleFieldFormat, internalProps.groupTitleCustomLayout = null !== (_m = null == groupConfig ? void 0 : groupConfig.titleCustomLayout) && void 0 !== _m ? _m : groupTitleCustomLayout, internalProps.enableTreeStickCell = null !== (_o = null == groupConfig ? void 0 : groupConfig.enableTreeStickCell) && void 0 !== _o ? _o : enableTreeStickCell, (null == updateConfig ? void 0 : updateConfig.clearColWidthCache) && (internalProps._widthResizedColMap.clear(), this.colWidthsMap = new NumberMap(), this.colContentWidthsMap = new NumberMap(), this.colWidthsLimit = {}), (null == updateConfig ? void 0 : updateConfig.clearRowHeightCache) && (internalProps._heightResizedRowMap.clear(), internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map(), internalProps._colRangeWidthsMap = new Map()), internalProps.stick.changedCells.clear(), internalProps.theme = themes.of(null !== (_p = options.theme) && void 0 !== _p ? _p : themes.DEFAULT), internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle), this.scenegraph.updateStageBackground(), internalProps.autoWrapText = options.autoWrapText, internalProps.enableLineBreak = options.enableLineBreak, internalProps.allowFrozenColCount = null !== (_q = options.allowFrozenColCount) && void 0 !== _q ? _q : 0, internalProps.limitMaxAutoWidth = null !== (_r = options.limitMaxAutoWidth) && void 0 !== _r ? _r : 450, internalProps.limitMinWidth = null != limitMinWidth ? "number" == typeof limitMinWidth ? limitMinWidth : limitMinWidth ? 10 : 0 : 10, internalProps.limitMinHeight = null != limitMinHeight ? "number" == typeof limitMinHeight ? limitMinHeight : limitMinHeight ? 10 : 0 : 10, null === (_s = internalProps.legends) || void 0 === _s || _s.forEach(legend => {
58230
58257
  null == legend || legend.release();
58231
- }), null === (_t = internalProps.title) || void 0 === _t || _t.release(), internalProps.title = null, null === (_u = internalProps.emptyTip) || void 0 === _u || _u.release(), internalProps.emptyTip = null, internalProps.layoutMap.release(), clearChartRenderQueue(), this.scenegraph.clearCells(), this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(), this.eventManager.updateEventBinder(), options.legends) {
58258
+ }), null === (_t = internalProps.title) || void 0 === _t || _t.release(), internalProps.title = null, null === (_u = internalProps.emptyTip) || void 0 === _u || _u.release(), internalProps.emptyTip = null, internalProps.layoutMap.release(), clearChartRenderQueue(), (null == updateConfig ? void 0 : updateConfig.skipClearCells) || this.scenegraph.clearCells(), this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(), this.eventManager.updateEventBinder(), options.legends) {
58232
58259
  internalProps.legends = [];
58233
58260
  const createLegend = Factory.getFunction("createLegend");
58234
58261
  if (Array.isArray(options.legends)) {
@@ -62254,14 +62281,19 @@
62254
62281
  clearRowHeightCache: !0
62255
62282
  }) {
62256
62283
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
62257
- const internalProps = this.internalProps;
62258
- if (this.pluginManager.removeOrAddPlugins(options.plugins), super.updateOption(options, updateConfig), internalProps.frozenColDragHeaderMode = null !== (_b = null === (_a = options.dragOrder) || void 0 === _a ? void 0 : _a.frozenColDragHeaderMode) && void 0 !== _b ? _b : options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.dataConfig = this.internalProps.groupBy ? getGroupByDataConfig(this.internalProps.groupBy, options.addRecordRule) : {
62284
+ const internalProps = this.internalProps,
62285
+ prevSortState = internalProps.sortState,
62286
+ hasActiveSortState = (Array.isArray(options.sortState) ? options.sortState : options.sortState ? [options.sortState] : []).some(item => (null == item ? void 0 : item.field) && (null == item ? void 0 : item.order) && "normal" !== item.order),
62287
+ shouldSkipInitialClearCells = Boolean(options.records) || !!options.dataSource && this.dataSource !== options.dataSource;
62288
+ if (this.pluginManager.removeOrAddPlugins(options.plugins), super.updateOption(options, Object.assign(Object.assign({}, updateConfig), {
62289
+ skipClearCells: shouldSkipInitialClearCells
62290
+ })), internalProps.frozenColDragHeaderMode = null !== (_b = null === (_a = options.dragOrder) || void 0 === _a ? void 0 : _a.frozenColDragHeaderMode) && void 0 !== _b ? _b : options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.dataConfig = this.internalProps.groupBy ? getGroupByDataConfig(this.internalProps.groupBy, options.addRecordRule) : {
62259
62291
  addRecordRule: options.addRecordRule
62260
62292
  }, this.showHeader = null === (_c = options.showHeader) || void 0 === _c || _c, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_e = null !== (_d = options.enableTreeNodeMerge) && void 0 !== _d ? _d : isValid$1(this.internalProps.groupBy)) && void 0 !== _e && _e, this.internalProps.headerHelper.setTableColumnsEditor(), this.transpose = null !== (_f = options.transpose) && void 0 !== _f && _f, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.internalProps.columnWidthConfig = options.columnWidthConfig, this.internalProps.rowHeightConfig = options.rowHeightConfig, internalProps.releaseList) for (let i = internalProps.releaseList.length - 1; i >= 0; i--) {
62261
62293
  const releaseObj = internalProps.releaseList[i];
62262
62294
  releaseObj instanceof DataSource ? releaseObj.updateColumns(this.internalProps.columns) : (null === (_g = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _g || _g.call(releaseObj), internalProps.releaseList.splice(i, 1));
62263
62295
  }
62264
- if (options.dataSource && this.dataSource !== options.dataSource ? this.dataSource = options.dataSource : options.records ? this.setRecords(options.records, {
62296
+ if (options.dataSource && this.dataSource !== options.dataSource ? this.dataSource = options.dataSource : options.records && options.records === internalProps.records && options.sortState === prevSortState && !hasActiveSortState && this.dataSource instanceof CachedDataSource ? this._refreshCurrentRecordsForOptionUpdate(options.records) : options.records ? this.setRecords(options.records, {
62265
62297
  sortState: options.sortState
62266
62298
  }) : (this.refreshRowColCount(), this._resetFrozenColCount(), this.scenegraph.createSceneGraph(), this.render()), options.title) {
62267
62299
  const Title = Factory.getComponent("title");
@@ -62277,6 +62309,22 @@
62277
62309
  setTimeout(resolve, 0);
62278
62310
  });
62279
62311
  }
62312
+ _refreshCurrentRecordsForOptionUpdate(records) {
62313
+ var _a;
62314
+ const dataSource = this.dataSource;
62315
+ this.stateManager.endResizeIfResizing(), clearChartRenderQueue();
62316
+ const oldHoverState = {
62317
+ col: this.stateManager.hover.cellPos.col,
62318
+ row: this.stateManager.hover.cellPos.row
62319
+ };
62320
+ this.scenegraph.clearCells(), this.internalProps.records = records, dataSource.refreshRecords(records, this.internalProps.dataConfig, this.pagination, this.internalProps.columns, getListTableRowHierarchyType(this), getHierarchyExpandLevel(this)), this.refreshRowColCount(), this.stateManager.initCheckedState(records), this.clearCellStyleCache(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row), this._updateSize();
62321
+ (null !== (_a = this.options.componentLayoutOrder) && void 0 !== _a ? _a : ["legend", "title"]).forEach(component => {
62322
+ var _a, _b;
62323
+ "legend" === component ? null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach(legend => {
62324
+ null == legend || legend.resize();
62325
+ }) : "title" === component && (null === (_b = this.internalProps.title) || void 0 === _b || _b.resize());
62326
+ }), this.scenegraph.resize(), this.render();
62327
+ }
62280
62328
  updatePagination(pagination) {
62281
62329
  this.pagination && ("number" == typeof pagination.currentPage && pagination.currentPage >= 0 && (this.pagination.currentPage = pagination.currentPage), pagination.perPageCount && (this.pagination.perPageCount = pagination.perPageCount || this.pagination.perPageCount), this.internalProps.layoutMap.clearCellRangeMap(), this.internalProps.useOneRowHeightFillAll = !1, this.scenegraph.clearCells(), this.dataSource.updatePagination(this.pagination), this.refreshRowColCount(), this.stateManager.initCheckedState(this.records), this.scenegraph.createSceneGraph(), this.renderAsync());
62282
62330
  }
@@ -66182,10 +66230,10 @@
66182
66230
  }
66183
66231
  }
66184
66232
 
66185
- function createCellGroup(table, value, columnGroup, xOrigin, yOrigin, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync) {
66233
+ function createCellGroup(table, value, columnGroup, xOrigin, yOrigin, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync, headerStyle) {
66186
66234
  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, _0, _1, _2, _3, _4, _5, _6, _7, _8;
66187
- const headerStyle = table._getCellStyle(col, row),
66188
- functionalPadding = getFunctionalProp("padding", headerStyle, col, row, table);
66235
+ headerStyle = headerStyle || table._getCellStyle(col, row);
66236
+ const functionalPadding = getFunctionalProp("padding", headerStyle, col, row, table);
66189
66237
  isValid$1(functionalPadding) && (padding = functionalPadding), (null === (_a = null == cellTheme ? void 0 : cellTheme.text) || void 0 === _a ? void 0 : _a.textAlign) && (textAlign = null === (_b = null == cellTheme ? void 0 : cellTheme.text) || void 0 === _b ? void 0 : _b.textAlign), (null === (_c = null == cellTheme ? void 0 : cellTheme.text) || void 0 === _c ? void 0 : _c.textBaseline) && (textBaseline = null === (_d = null == cellTheme ? void 0 : cellTheme.text) || void 0 === _d ? void 0 : _d.textBaseline);
66190
66238
  const autoRowHeight = table.isAutoRowHeight(row),
66191
66239
  autoColWidth = "auto" === colWidth,