@visactor/vtable-calendar 1.17.1-alpha.9 → 1.17.2-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.
@@ -2735,6 +2735,8 @@
2735
2735
  return color.getLuminance2();
2736
2736
  case "lum3":
2737
2737
  return color.getLuminance3();
2738
+ case "wcag":
2739
+ return color.getLuminanceWCAG();
2738
2740
  }
2739
2741
  }
2740
2742
  static parseColorString(value) {
@@ -2836,6 +2838,14 @@
2836
2838
  getLuminance3() {
2837
2839
  return (.299 * this.color.r + .587 * this.color.g + .114 * this.color.b) / 255;
2838
2840
  }
2841
+ getLuminanceWCAG() {
2842
+ const RsRGB = this.color.r / 255,
2843
+ GsRGB = this.color.g / 255,
2844
+ BsRGB = this.color.b / 255;
2845
+ let R, G, B;
2846
+ R = RsRGB <= .03928 ? RsRGB / 12.92 : Math.pow((RsRGB + .055) / 1.055, 2.4), G = GsRGB <= .03928 ? GsRGB / 12.92 : Math.pow((GsRGB + .055) / 1.055, 2.4), B = BsRGB <= .03928 ? BsRGB / 12.92 : Math.pow((BsRGB + .055) / 1.055, 2.4);
2847
+ return .2126 * R + .7152 * G + .0722 * B;
2848
+ }
2839
2849
  clone() {
2840
2850
  return new Color(this.color.toString());
2841
2851
  }
@@ -4876,6 +4886,9 @@
4876
4886
  }
4877
4887
  compatibleMetrics(metrics, options) {
4878
4888
  if (null == metrics.actualBoundingBoxAscent || null == metrics.actualBoundingBoxDescent || null == metrics.fontBoundingBoxAscent || null == metrics.fontBoundingBoxDescent) {
4889
+ metrics = {
4890
+ width: metrics.width
4891
+ };
4879
4892
  const {
4880
4893
  ascent: ascent,
4881
4894
  descent: descent
@@ -4883,6 +4896,13 @@
4883
4896
  metrics.actualBoundingBoxAscent = ascent, metrics.actualBoundingBoxDescent = descent, metrics.fontBoundingBoxAscent = ascent, metrics.fontBoundingBoxDescent = descent;
4884
4897
  }
4885
4898
  if (null == metrics.actualBoundingBoxLeft || null == metrics.actualBoundingBoxRight) {
4899
+ metrics = {
4900
+ width: metrics.width,
4901
+ actualBoundingBoxAscent: metrics.actualBoundingBoxAscent,
4902
+ actualBoundingBoxDescent: metrics.actualBoundingBoxDescent,
4903
+ fontBoundingBoxAscent: metrics.fontBoundingBoxAscent,
4904
+ fontBoundingBoxDescent: metrics.fontBoundingBoxDescent
4905
+ };
4886
4906
  const {
4887
4907
  left: left,
4888
4908
  right: right
@@ -41410,7 +41430,8 @@
41410
41430
  updateReactContainer(this.table);
41411
41431
  }
41412
41432
  setLoadingHierarchyState(col, row) {
41413
- const iconGraphic = this.getCell(col, row).getChildByName("collapse", !0);
41433
+ const cellGroup = this.getCell(col, row),
41434
+ iconGraphic = cellGroup.getChildByName("collapse", !0) || cellGroup.getChildByName("expand", !0);
41414
41435
  if (iconGraphic) {
41415
41436
  const loadingIcon = get$2()[InternalIconName.loadingIconName];
41416
41437
  loadingIcon && dealWithIcon(loadingIcon, iconGraphic, col, row);
@@ -41751,7 +41772,7 @@
41751
41772
  }) : state.select.ranges.push({
41752
41773
  start: {
41753
41774
  col: cellRange.start.col,
41754
- row: row
41775
+ row: cellRange.start.row
41755
41776
  },
41756
41777
  end: {
41757
41778
  col: cellRange.end.col,
@@ -41773,7 +41794,7 @@
41773
41794
  skipBodyMerge: !0
41774
41795
  }) : state.select.ranges.push({
41775
41796
  start: {
41776
- col: col,
41797
+ col: cellRange.start.col,
41777
41798
  row: cellRange.start.row
41778
41799
  },
41779
41800
  end: {
@@ -42313,14 +42334,7 @@
42313
42334
  if (recordIndex >= 0) {
42314
42335
  const dataIndex = state.table.dataSource.getIndexKey(recordIndex).toString();
42315
42336
  if (isValid$3(null === (_b = state.checkedState.get(dataIndex)) || void 0 === _b ? void 0 : _b[field])) return state.checkedState.get(dataIndex)[field];
42316
- if (state.checkedState.has(dataIndex)) state.checkedState.get(dataIndex)[field] = checked;else if (dataIndex.includes(",")) {
42317
- const parentDataIndex = dataIndex.split(",").slice(0, -1).join(",");
42318
- state.checkedState.has(parentDataIndex) && !0 === state.checkedState.get(parentDataIndex)[field] ? state.checkedState.set(dataIndex, {
42319
- [field]: !0
42320
- }) : state.checkedState.set(dataIndex, {
42321
- [field]: checked
42322
- });
42323
- } else state.checkedState.set(dataIndex, {
42337
+ state.checkedState.has(dataIndex) ? state.checkedState.get(dataIndex)[field] = checked : state.checkedState.set(dataIndex, {
42324
42338
  [field]: checked
42325
42339
  });
42326
42340
  }
@@ -42817,7 +42831,7 @@
42817
42831
  if (this.select.selecting) {
42818
42832
  if (this.select.selecting = !1, 0 === this.select.ranges.length) return;
42819
42833
  const currentRange = this.select.ranges[this.select.ranges.length - 1];
42820
- expendCellRange(currentRange, this.table);
42834
+ this.table.isSeriesNumber(this.select.cellPos.col, this.select.cellPos.row) || this.table.isHeader(this.select.cellPos.col, this.select.cellPos.row) || expendCellRange(currentRange, this.table);
42821
42835
  let isSame = !1;
42822
42836
  for (let i = 0; i < this.select.ranges.length - 1; i++) {
42823
42837
  const range = this.select.ranges[i];
@@ -43639,7 +43653,7 @@
43639
43653
  callback: globalPointerdownCallback
43640
43654
  }), vglobal.addEventListener("pointerup", globalPointerupCallback), vglobal.addEventListener("pointerdown", globalPointerdownCallback), table.scenegraph.tableGroup.addEventListener("pointerdown", e => {
43641
43655
  var _a, _b, _c, _d, _e;
43642
- if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE) && table.fireListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE, {
43656
+ table.hasListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE) && table.fireListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE, {
43643
43657
  event: e.nativeEvent
43644
43658
  }), table.eventManager.isDown = !0, table.eventManager.LastBodyPointerXY = {
43645
43659
  x: e.x,
@@ -43647,22 +43661,42 @@
43647
43661
  }, table.eventManager.LastPointerXY = {
43648
43662
  x: e.x,
43649
43663
  y: e.y
43650
- }, 0 !== e.button) return;
43664
+ };
43651
43665
  const eventArgsSet = getCellEventArgsSet(e);
43652
43666
  if (eventManager.downIcon = void 0, stateManager.interactionState !== InteractionState.default) return;
43653
43667
  if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
43654
43668
  const isCompleteEdit = null === (_e = table.editorManager) || void 0 === _e ? void 0 : _e.completeEdit(e.nativeEvent);
43655
43669
  getPromiseValue(isCompleteEdit, isCompleteEdit => {
43656
- var _a, _b, _c, _d, _e, _f, _g;
43670
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
43657
43671
  if (!1 === isCompleteEdit) return;
43658
43672
  const hitIcon = (null === (_c = null === (_b = null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target) || void 0 === _b ? void 0 : _b.role) || void 0 === _c ? void 0 : _c.startsWith("icon")) ? eventArgsSet.eventArgs.target : (null === (_d = e.target.role) || void 0 === _d ? void 0 : _d.startsWith("icon")) ? e.target : void 0;
43659
- if (eventManager.downIcon = hitIcon, hitIcon && !1 !== hitIcon.attribute.interactive) hitIcon.attribute.funcType === IconFuncTypeEnum.dragReorder && (stateManager.startMoveCol(eventArgsSet.eventArgs.col, eventArgsSet.eventArgs.row, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_f = null === (_e = eventArgsSet.eventArgs) || void 0 === _e ? void 0 : _e.event) || void 0 === _f ? void 0 : _f.nativeEvent), stateManager.updateInteractionState(InteractionState.grabing));else if ("touch" === e.pointerType) eventManager.touchEnd = !1, eventManager.touchSetTimeout = setTimeout(() => {
43660
- eventManager.isTouchdown = !1, eventManager.touchMove = !0, (eventManager.touchEnd || !eventManager.checkColumnResize(eventArgsSet, !0) && !eventManager.checkRowResize(eventArgsSet, !0)) && (eventManager.touchEnd || !eventManager.chechColumnMover(eventArgsSet)) ? eventManager.dealTableSelect(eventArgsSet) && !eventManager.touchEnd && stateManager.updateInteractionState(InteractionState.grabing) : stateManager.updateInteractionState(InteractionState.grabing);
43661
- }, 500), eventManager.dealTableHover(eventArgsSet);else {
43662
- if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null), void stateManager.updateInteractionState(InteractionState.grabing);
43663
- if (eventManager.chechColumnMover(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
43664
- if (eventManager.checkCellFillhandle(eventArgsSet, !0) && eventManager.dealFillSelect(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
43665
- eventManager.dealTableSelect(eventArgsSet) && stateManager.updateInteractionState(InteractionState.grabing);
43673
+ if (eventManager.downIcon = hitIcon, hitIcon && !1 !== hitIcon.attribute.interactive) hitIcon.attribute.funcType === IconFuncTypeEnum.dragReorder && (stateManager.startMoveCol(eventArgsSet.eventArgs.col, eventArgsSet.eventArgs.row, eventArgsSet.abstractPos.x, eventArgsSet.abstractPos.y, null === (_k = null === (_j = eventArgsSet.eventArgs) || void 0 === _j ? void 0 : _j.event) || void 0 === _k ? void 0 : _k.nativeEvent), stateManager.updateInteractionState(InteractionState.grabing));else {
43674
+ if (eventManager.cellIsHeaderCheck(eventArgsSet)) return;
43675
+ if ("touch" === e.pointerType) {
43676
+ if (eventManager.touchEnd = !1, eventManager.touchSetTimeout = setTimeout(() => {
43677
+ eventManager.isTouchdown = !1, eventManager.touchMove = !0, (eventManager.touchEnd || !eventManager.checkColumnResize(eventArgsSet, !0) && !eventManager.checkRowResize(eventArgsSet, !0)) && (eventManager.touchEnd || !eventManager.checkColumnMover(eventArgsSet)) ? eventManager.dealTableSelect(eventArgsSet) && !eventManager.touchEnd && stateManager.updateInteractionState(InteractionState.grabing) : stateManager.updateInteractionState(InteractionState.grabing);
43678
+ }, 500), table.hasListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL)) {
43679
+ const cellGoup = e.path.find(node => "cell" === node.role);
43680
+ "cell" !== (null == cellGoup ? void 0 : cellGoup.role) || !isValid$3(cellGoup.col) || !isValid$3(cellGoup.row) || cellGoup.col === table.stateManager.hover.cellPos.col && cellGoup.row === table.stateManager.hover.cellPos.row || cellGoup.col === (null === (_e = table.stateManager.hover.cellPosContainHeader) || void 0 === _e ? void 0 : _e.col) && cellGoup.row === (null === (_f = table.stateManager.hover.cellPosContainHeader) || void 0 === _f ? void 0 : _f.row) || table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
43681
+ col: cellGoup.col,
43682
+ row: cellGoup.row,
43683
+ cellRange: table.getCellRangeRelativeRect({
43684
+ col: cellGoup.col,
43685
+ row: cellGoup.row
43686
+ }),
43687
+ scaleRatio: table.canvas.getBoundingClientRect().width / table.canvas.offsetWidth,
43688
+ event: e.nativeEvent,
43689
+ target: null === (_g = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _g ? void 0 : _g.target,
43690
+ mergeCellInfo: null === (_h = eventArgsSet.eventArgs) || void 0 === _h ? void 0 : _h.mergeInfo
43691
+ });
43692
+ }
43693
+ eventManager.dealTableHover(eventArgsSet);
43694
+ } else {
43695
+ if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null), void stateManager.updateInteractionState(InteractionState.grabing);
43696
+ if (eventManager.checkColumnMover(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
43697
+ if (eventManager.checkCellFillhandle(eventArgsSet, !0) && eventManager.dealFillSelect(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
43698
+ eventManager.dealTableSelect(eventArgsSet) && stateManager.updateInteractionState(InteractionState.grabing);
43699
+ }
43666
43700
  }
43667
43701
  if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEDOWN_CELL)) {
43668
43702
  const eventArgsSet = getCellEventArgsSet(e);
@@ -43670,7 +43704,7 @@
43670
43704
  col: eventArgsSet.eventArgs.col,
43671
43705
  row: eventArgsSet.eventArgs.row,
43672
43706
  event: e.nativeEvent,
43673
- target: null === (_g = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _g ? void 0 : _g.target,
43707
+ target: null === (_l = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _l ? void 0 : _l.target,
43674
43708
  mergeCellInfo: eventArgsSet.eventArgs.mergeInfo
43675
43709
  });
43676
43710
  }
@@ -44544,22 +44578,20 @@
44544
44578
 
44545
44579
  function bindGroupTitleCheckboxChange(table) {
44546
44580
  table.on("checkbox_state_change", args => {
44547
- var _a, _b;
44581
+ var _a;
44582
+ if (!0 !== (null === (_a = table.internalProps.rowSeriesNumber) || void 0 === _a ? void 0 : _a.enableTreeCheckbox)) return;
44548
44583
  const {
44549
- col: col,
44550
- row: row,
44551
- checked: checked,
44552
- field: field
44553
- } = args;
44554
- if ("_vtable_rowSeries_number" !== field || !0 !== (null === (_a = table.internalProps.rowSeriesNumber) || void 0 === _a ? void 0 : _a.enableTreeCheckbox)) return;
44555
- if (table.isHeader(col, row)) return;
44556
- const record = table.getCellOriginRecord(col, row),
44584
+ col: col,
44585
+ row: row,
44586
+ checked: checked
44587
+ } = args,
44588
+ record = table.getCellOriginRecord(col, row),
44557
44589
  indexedData = table.dataSource.currentPagerIndexedData,
44558
44590
  titleShowIndex = table.getRecordShowIndexByCell(col, row);
44559
44591
  let titleIndex = indexedData[titleShowIndex];
44560
- if (isNumber$4(titleIndex) && (titleIndex = [titleIndex]), record.vtableMerge || (null === (_b = record.children) || void 0 === _b ? void 0 : _b.length)) {
44561
- if (checked) getHierarchyState(table, col, row) === HierarchyState.collapse ? updateChildrenCheckboxState(!0, titleIndex, table) : setAllChildrenCheckboxState(!0, titleShowIndex, titleIndex, indexedData, table), updateGroupTitleCheckboxState(titleShowIndex, titleIndex, indexedData, table);else {
44562
- getHierarchyState(table, col, row) === HierarchyState.collapse ? updateChildrenCheckboxState(!1, titleIndex, table) : setAllChildrenCheckboxState(!1, titleShowIndex, titleIndex, indexedData, table), updateGroupTitleCheckboxState(titleShowIndex, titleIndex, indexedData, table);
44592
+ if (isNumber$4(titleIndex) && (titleIndex = [titleIndex]), record.vtableMerge) {
44593
+ if (checked) table.getHierarchyState(col, row) === HierarchyState.collapse ? updateChildrenCheckboxState(!0, titleIndex, table) : setAllChildrenCheckboxState(!0, titleShowIndex, titleIndex, indexedData, table), updateGroupTitleCheckboxState(titleShowIndex, titleIndex, indexedData, table);else {
44594
+ table.getHierarchyState(col, row) === HierarchyState.collapse ? updateChildrenCheckboxState(!1, titleIndex, table) : setAllChildrenCheckboxState(!1, titleShowIndex, titleIndex, indexedData, table), updateGroupTitleCheckboxState(titleShowIndex, titleIndex, indexedData, table);
44563
44595
  const oldHeaderCheckedState = table.stateManager.headerCheckedState._vtable_rowSeries_number,
44564
44596
  newHeaderCheckedState = table.stateManager.updateHeaderCheckedState("_vtable_rowSeries_number", col, row);
44565
44597
  oldHeaderCheckedState !== newHeaderCheckedState && table.scenegraph.updateHeaderCheckboxCellState(col, row, newHeaderCheckedState);
@@ -44595,23 +44627,8 @@
44595
44627
  key = currentIndex.toString(),
44596
44628
  currentIndexLength = isArray$7(currentIndex) ? currentIndex.length : 1;
44597
44629
  let start = !1;
44598
- const result = [],
44599
- keys = Array.from(checkedState.keys()).sort((a, b) => {
44600
- var _a, _b;
44601
- const aArr = a.split(","),
44602
- bArr = b.split(","),
44603
- maxLength = Math.max(aArr.length, bArr.length);
44604
- for (let i = 0; i < maxLength; i++) {
44605
- const a = null !== (_a = Number(aArr[i])) && void 0 !== _a ? _a : 0,
44606
- b = null !== (_b = Number(bArr[i])) && void 0 !== _b ? _b : 0;
44607
- if (a !== b) return a - b;
44608
- }
44609
- return 0;
44610
- }),
44611
- stateArr = keys.map(key => checkedState.get(key));
44612
- if (stateArr.forEach((state, i) => {
44613
- const index = keys[i],
44614
- value = state;
44630
+ const result = [];
44631
+ if (checkedState.forEach((value, index) => {
44615
44632
  if (start) {
44616
44633
  index.split(",").length === currentIndexLength ? start = !1 : result.push(value._vtable_rowSeries_number);
44617
44634
  }
@@ -44621,60 +44638,20 @@
44621
44638
  allUnChecked = result.every(item => !item);
44622
44639
  allChecked ? (table.stateManager.setCheckedState(col, row, "_vtable_rowSeries_number", !0), setCellCheckboxStateByAttribute(col, row, !0, table)) : allUnChecked ? (table.stateManager.setCheckedState(col, row, "_vtable_rowSeries_number", !1), setCellCheckboxStateByAttribute(col, row, !1, table)) : (table.stateManager.setCheckedState(col, row, "_vtable_rowSeries_number", "indeterminate"), setCellCheckboxStateByAttribute(col, row, "indeterminate", table));
44623
44640
  }
44624
- function updateChildrenCheckboxState(parentState, currentIndex, table) {
44641
+ function updateChildrenCheckboxState(state, currentIndex, table) {
44625
44642
  const {
44626
44643
  checkedState: checkedState
44627
44644
  } = table.stateManager,
44628
44645
  key = currentIndex.toString(),
44629
44646
  currentIndexLength = isArray$7(currentIndex) ? currentIndex.length : 1;
44630
44647
  let start = !1;
44631
- const keys = Array.from(checkedState.keys()).sort((a, b) => {
44632
- var _a, _b;
44633
- const aArr = a.split(","),
44634
- bArr = b.split(","),
44635
- maxLength = Math.max(aArr.length, bArr.length);
44636
- for (let i = 0; i < maxLength; i++) {
44637
- const a = null !== (_a = Number(aArr[i])) && void 0 !== _a ? _a : 0,
44638
- b = null !== (_b = Number(bArr[i])) && void 0 !== _b ? _b : 0;
44639
- if (a !== b) return a - b;
44640
- }
44641
- return 0;
44642
- }),
44643
- stateArr = keys.map(key => checkedState.get(key));
44644
- stateArr.forEach((state, i) => {
44645
- const index = keys[i],
44646
- value = state;
44648
+ checkedState.forEach((value, index) => {
44647
44649
  if (start) {
44648
- index.split(",").length === currentIndexLength ? start = !1 : value._vtable_rowSeries_number = parentState;
44650
+ index.split(",").length === currentIndexLength ? start = !1 : value._vtable_rowSeries_number = state;
44649
44651
  }
44650
44652
  index === key && (start = !0);
44651
44653
  });
44652
44654
  }
44653
- function bindHeaderCheckboxChange(table) {
44654
- table.on("checkbox_state_change", args => {
44655
- const {
44656
- col: col,
44657
- row: row,
44658
- checked: checked,
44659
- field: field
44660
- } = args;
44661
- if (table.isHeader(col, row)) {
44662
- table.stateManager.setHeaderCheckedState(field, checked);
44663
- "checkbox" === table.getCellType(col, row) && table.scenegraph.updateCheckboxCellState(col, row, checked);
44664
- } else {
44665
- table.stateManager.setCheckedState(col, row, field, checked);
44666
- if ("checkbox" === table.getCellType(col, row)) {
44667
- const oldHeaderCheckedState = table.stateManager.headerCheckedState[field],
44668
- newHeaderCheckedState = table.stateManager.updateHeaderCheckedState(field, col, row);
44669
- oldHeaderCheckedState !== newHeaderCheckedState && table.scenegraph.updateHeaderCheckboxCellState(col, row, newHeaderCheckedState);
44670
- }
44671
- }
44672
- });
44673
- }
44674
- function getHierarchyState(table, col, row) {
44675
- const index = table.getRecordShowIndexByCell(col, row);
44676
- return table.dataSource.getHierarchyState(index);
44677
- }
44678
44655
 
44679
44656
  function bindButtonClickEvent(table) {
44680
44657
  table.on(TABLE_EVENT_TYPE.CLICK_CELL, e => {
@@ -44752,7 +44729,7 @@
44752
44729
  });
44753
44730
  }
44754
44731
  }
44755
- }), this.table.isPivotTable() && checkHaveDrill(this.table) && bindDrillEvent(this.table), bindSparklineHoverEvent(this.table), bindAxisClickEvent(this.table), bindAxisHoverEvent(this.table), bindGroupTitleCheckboxChange(this.table), bindHeaderCheckboxChange(this.table), bindButtonClickEvent(this.table);
44732
+ }), this.table.isPivotTable() && checkHaveDrill(this.table) && bindDrillEvent(this.table), bindSparklineHoverEvent(this.table), bindAxisClickEvent(this.table), bindAxisHoverEvent(this.table), bindGroupTitleCheckboxChange(this.table), bindButtonClickEvent(this.table);
44756
44733
  }
44757
44734
  dealTableHover(eventArgsSet) {
44758
44735
  if (!eventArgsSet) return void this.table.stateManager.updateHoverPos(-1, -1);
@@ -44829,6 +44806,18 @@
44829
44806
  }
44830
44807
  return !1;
44831
44808
  }
44809
+ cellIsHeaderCheck(eventArgsSet, update) {
44810
+ const {
44811
+ eventArgs: eventArgs
44812
+ } = eventArgsSet,
44813
+ {
44814
+ col: col,
44815
+ row: row,
44816
+ target: target
44817
+ } = eventArgs;
44818
+ if (!this.table.isHeader(col, row)) return !1;
44819
+ return "checkbox" === this.table.getCellType(eventArgs.col, eventArgs.row) && "checkbox" === target.name;
44820
+ }
44832
44821
  checkCellFillhandle(eventArgsSet, update) {
44833
44822
  var _a, _b, _c, _d;
44834
44823
  if (null === (_a = this.table.options.excelOptions) || void 0 === _a ? void 0 : _a.fillHandle) {
@@ -44853,7 +44842,7 @@
44853
44842
  dealRowResize(xInTable, yInTable) {
44854
44843
  this.table.stateManager.updateResizeRow(xInTable, yInTable);
44855
44844
  }
44856
- chechColumnMover(eventArgsSet) {
44845
+ checkColumnMover(eventArgsSet) {
44857
44846
  var _a;
44858
44847
  const {
44859
44848
  eventArgs: eventArgs
@@ -47246,7 +47235,17 @@
47246
47235
  const styles = [];
47247
47236
  return customStyleIds.forEach(customStyleId => {
47248
47237
  const styleOption = this.getCustomCellStyleOption(customStyleId);
47249
- (null == styleOption ? void 0 : styleOption.style) && styles.push(styleOption.style);
47238
+ if (isFunction$5(null == styleOption ? void 0 : styleOption.style)) {
47239
+ const style = styleOption.style({
47240
+ col: col,
47241
+ row: row,
47242
+ table: this.table,
47243
+ value: this.table.getCellValue(col, row),
47244
+ dataValue: this.table.getCellOriginValue(col, row),
47245
+ cellHeaderPaths: this.table.getCellHeaderPaths(col, row)
47246
+ });
47247
+ styles.push(style);
47248
+ } else (null == styleOption ? void 0 : styleOption.style) && styles.push(styleOption.style);
47250
47249
  }), merge$1({}, ...styles);
47251
47250
  }
47252
47251
  }
@@ -47481,8 +47480,8 @@
47481
47480
  }
47482
47481
  constructor(container) {
47483
47482
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
47484
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
47485
- if (super(), this.showFrozenIcon = !0, this.version = "1.17.1-alpha.9", 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");
47483
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
47484
+ if (super(), this.showFrozenIcon = !0, this.version = "1.17.2-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");
47486
47485
  !1 === (null === (_a = options.customConfig) || void 0 === _a ? void 0 : _a.imageAnonymous) && (vglobal.isImageAnonymous = !1);
47487
47486
  const {
47488
47487
  frozenColCount = 0,
@@ -47505,6 +47504,7 @@
47505
47504
  rowResizeMode = "none",
47506
47505
  resize: resize,
47507
47506
  dragHeaderMode: dragHeaderMode,
47507
+ dragOrder: dragOrder,
47508
47508
  showFrozenIcon: showFrozenIcon,
47509
47509
  allowFrozenColCount: allowFrozenColCount,
47510
47510
  padding: padding,
@@ -47531,7 +47531,7 @@
47531
47531
  bottom: 0
47532
47532
  }, padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding, this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top), padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left), padding.right && (this.padding.right = padding.right))), isValid$3(canvasHeight) && isValid$3(canvasWidth) && (this.canvasSizeSeted = !0), this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.canvasWidth = isNumber$4(canvasWidth) ? canvasWidth : void 0, this.canvasHeight = isNumber$4(canvasHeight) ? canvasHeight : void 0, this.columnWidthComputeMode = null !== (_b = options.columnWidthComputeMode) && void 0 !== _b ? _b : "normal";
47533
47533
  const internalProps = this.internalProps = {};
47534
- void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1), this.options.canvas ? ("node" !== Env.mode && (internalProps.element = this.options.canvas.parentElement, internalProps.element.style.position = "relative"), internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== Env.mode && (internalProps.element = createRootElement(this.padding), internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = document.createElement("canvas"), internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"), (null === (_c = options.customConfig) || void 0 === _c ? void 0 : _c.createReactContainer) && createReactContainer(this)), internalProps.handler = new EventHandler(), isNumber$4(this.options.resizeTime) && (internalProps.handler.resizeTime = this.options.resizeTime), internalProps.pixelRatio = pixelRatio, internalProps.frozenColCount = frozenColCount, internalProps.frozenRowCount = frozenRowCount, 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.columnResizeMode = null !== (_d = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _d ? _d : columnResizeMode, internalProps.rowResizeMode = null !== (_e = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _e ? _e : rowResizeMode, internalProps.dragHeaderMode = null != dragHeaderMode ? dragHeaderMode : "none", internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount), internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto", internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map(), internalProps._colRangeWidthsMap = new Map(), internalProps._widthResizedColMap = new Set(), internalProps._heightResizedRowMap = new Set(), this.colWidthsMap = new NumberMap(), this.colContentWidthsMap = new NumberMap(), this.colWidthsLimit = {};
47534
+ void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1), this.options.canvas ? ("node" !== Env.mode && (internalProps.element = this.options.canvas.parentElement, internalProps.element.style.position = "relative"), internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = this.options.canvas, internalProps.context = internalProps.canvas.getContext("2d")) : "node" !== Env.mode && (internalProps.element = createRootElement(this.padding), internalProps.focusControl = new FocusInput(this, internalProps.element), internalProps.canvas = document.createElement("canvas"), internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"), (null === (_c = options.customConfig) || void 0 === _c ? void 0 : _c.createReactContainer) && createReactContainer(this)), internalProps.handler = new EventHandler(), isNumber$4(this.options.resizeTime) && (internalProps.handler.resizeTime = this.options.resizeTime), internalProps.pixelRatio = pixelRatio, internalProps.frozenColCount = frozenColCount, internalProps.frozenRowCount = frozenRowCount, 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.columnResizeMode = null !== (_d = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _d ? _d : columnResizeMode, internalProps.rowResizeMode = null !== (_e = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _e ? _e : rowResizeMode, internalProps.dragHeaderMode = null !== (_g = null !== (_f = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _f ? _f : dragHeaderMode) && void 0 !== _g ? _g : "none", internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount), internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto", internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map(), internalProps._colRangeWidthsMap = new Map(), internalProps._widthResizedColMap = new Set(), internalProps._heightResizedRowMap = new Set(), this.colWidthsMap = new NumberMap(), this.colContentWidthsMap = new NumberMap(), this.colWidthsLimit = {};
47535
47535
  const that = this;
47536
47536
  if (internalProps.calcWidthContext = {
47537
47537
  _: internalProps,
@@ -47539,7 +47539,7 @@
47539
47539
  var _a;
47540
47540
  return "node" === Env.mode ? that.canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
47541
47541
  }
47542
- }, internalProps.cellTextOverflows = {}, internalProps.focusedTable = !1, internalProps.theme = themes.of(null !== (_f = options.theme) && void 0 !== _f ? _f : themes.DEFAULT), internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle), container ? (clearDOM && (container.innerHTML = ""), container.appendChild(internalProps.element), this._updateSize()) : this._updateSize(), internalProps.bodyHelper = new BodyHelper(this), internalProps.headerHelper = new HeaderHelper(this), internalProps.rowSeriesNumberHelper = new RowSeriesNumberHelper(this), internalProps.autoWrapText = options.autoWrapText, internalProps.enableLineBreak = options.enableLineBreak, internalProps.allowFrozenColCount = null !== (_g = options.allowFrozenColCount) && void 0 !== _g ? _g : 0, internalProps.limitMaxAutoWidth = null !== (_h = options.limitMaxAutoWidth) && void 0 !== _h ? _h : 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, this.scenegraph = new Scenegraph(this), this.stateManager = new StateManager(this), this.eventManager = new EventManager(this), this.animationManager = new TableAnimationManager(this), options.legends) {
47542
+ }, internalProps.cellTextOverflows = {}, internalProps.focusedTable = !1, internalProps.theme = themes.of(null !== (_h = options.theme) && void 0 !== _h ? _h : themes.DEFAULT), internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle), container ? (clearDOM && (container.innerHTML = ""), container.appendChild(internalProps.element), this._updateSize()) : this._updateSize(), internalProps.bodyHelper = new BodyHelper(this), internalProps.headerHelper = new HeaderHelper(this), internalProps.rowSeriesNumberHelper = new RowSeriesNumberHelper(this), internalProps.autoWrapText = options.autoWrapText, internalProps.enableLineBreak = options.enableLineBreak, internalProps.allowFrozenColCount = null !== (_j = options.allowFrozenColCount) && void 0 !== _j ? _j : 0, internalProps.limitMaxAutoWidth = null !== (_k = options.limitMaxAutoWidth) && void 0 !== _k ? _k : 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, this.scenegraph = new Scenegraph(this), this.stateManager = new StateManager(this), this.eventManager = new EventManager(this), this.animationManager = new TableAnimationManager(this), options.legends) {
47543
47543
  internalProps.legends = [];
47544
47544
  const createLegend = Factory.getFunction("createLegend");
47545
47545
  if (Array.isArray(options.legends)) {
@@ -47565,7 +47565,7 @@
47565
47565
  }
47566
47566
  if (internalProps.menu = Object.assign({
47567
47567
  renderMode: "html"
47568
- }, options.menu), Array.isArray(null === (_j = options.menu) || void 0 === _j ? void 0 : _j.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_k = options.menu) || void 0 === _k ? void 0 : _k.dropDownMenuHighlight), (Array.isArray(null === (_l = options.menu) || void 0 === _l ? void 0 : _l.defaultHeaderMenuItems) || "function" == typeof (null === (_m = options.menu) || void 0 === _m ? void 0 : _m.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems), "html" === internalProps.menu.renderMode) {
47568
+ }, options.menu), Array.isArray(null === (_l = options.menu) || void 0 === _l ? void 0 : _l.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.dropDownMenuHighlight), (Array.isArray(null === (_o = options.menu) || void 0 === _o ? void 0 : _o.defaultHeaderMenuItems) || "function" == typeof (null === (_p = options.menu) || void 0 === _p ? void 0 : _p.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems), "html" === internalProps.menu.renderMode) {
47569
47569
  const MenuHandler = Factory.getComponent("menuHandler");
47570
47570
  internalProps.menuHandler = new MenuHandler(this);
47571
47571
  }
@@ -47573,7 +47573,7 @@
47573
47573
  changedCells: new Map()
47574
47574
  }, internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell);
47575
47575
  const CustomCellStylePlugin = Factory.getComponent("customCellStylePlugin");
47576
- CustomCellStylePlugin && (this.customCellStylePlugin = new CustomCellStylePlugin(this, null !== (_o = options.customCellStyle) && void 0 !== _o ? _o : [], null !== (_p = options.customCellStyleArrangement) && void 0 !== _p ? _p : [])), this._adjustCanvasSizeByOption();
47576
+ CustomCellStylePlugin && (this.customCellStylePlugin = new CustomCellStylePlugin(this, null !== (_q = options.customCellStyle) && void 0 !== _q ? _q : [], null !== (_r = options.customCellStyleArrangement) && void 0 !== _r ? _r : [])), this._adjustCanvasSizeByOption();
47577
47577
  }
47578
47578
  _adjustCanvasSizeByOption() {
47579
47579
  "auto" !== this.options.canvasHeight && "auto" !== this.options.canvasWidth || setTimeout(() => {
@@ -48310,7 +48310,7 @@
48310
48310
  return super.fireListeners(type, event);
48311
48311
  }
48312
48312
  updateOption(options) {
48313
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
48313
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
48314
48314
  this.options = options, this._hasAutoImageColumn = void 0;
48315
48315
  const {
48316
48316
  frozenColCount = 0,
@@ -48326,6 +48326,7 @@
48326
48326
  rowResizeMode = "none",
48327
48327
  resize: resize,
48328
48328
  dragHeaderMode: dragHeaderMode,
48329
+ dragOrder: dragOrder,
48329
48330
  showFrozenIcon: showFrozenIcon,
48330
48331
  allowFrozenColCount: allowFrozenColCount,
48331
48332
  padding: padding,
@@ -48350,9 +48351,9 @@
48350
48351
  } = options;
48351
48352
  pixelRatio && pixelRatio !== this.internalProps.pixelRatio && (this.internalProps.pixelRatio = pixelRatio), padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding, this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top), padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left), padding.right && (this.padding.right = padding.right))), this.showFrozenIcon = "boolean" != typeof showFrozenIcon || showFrozenIcon, "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1), this.widthMode = null != widthMode ? widthMode : "standard", this.heightMode = null != heightMode ? heightMode : "standard", this._widthAdaptiveMode = null != widthAdaptiveMode ? widthAdaptiveMode : "only-body", this._heightAdaptiveMode = null != heightAdaptiveMode ? heightAdaptiveMode : "only-body", this.autoFillWidth = null != autoFillWidth && autoFillWidth, this.autoFillHeight = null != autoFillHeight && autoFillHeight, this.customRender = customRender, this.canvasWidth = isNumber$4(canvasWidth) ? canvasWidth : void 0, this.canvasHeight = isNumber$4(canvasHeight) ? canvasHeight : void 0;
48352
48353
  const internalProps = this.internalProps;
48353
- if ("node" === Env.mode || options.canvas || updateRootElementPadding(internalProps.element, this.padding), this.columnWidthComputeMode = null !== (_a = options.columnWidthComputeMode) && void 0 !== _a ? _a : "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.columnResizeMode = null !== (_b = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _b ? _b : columnResizeMode, internalProps.rowResizeMode = null !== (_c = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _c ? _c : rowResizeMode, internalProps.dragHeaderMode = null != dragHeaderMode ? dragHeaderMode : "none", internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount), internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto", internalProps.cellTextOverflows = {}, internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map(), internalProps._colRangeWidthsMap = new Map(), internalProps._widthResizedColMap = new Set(), internalProps._heightResizedRowMap = new Set(), this.colWidthsMap = new NumberMap(), this.colContentWidthsMap = new NumberMap(), this.colWidthsLimit = {}, internalProps.stick.changedCells.clear(), internalProps.theme = themes.of(null !== (_d = options.theme) && void 0 !== _d ? _d : 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 !== (_e = options.allowFrozenColCount) && void 0 !== _e ? _e : 0, internalProps.limitMaxAutoWidth = null !== (_f = options.limitMaxAutoWidth) && void 0 !== _f ? _f : 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 === (_g = internalProps.legends) || void 0 === _g || _g.forEach(legend => {
48354
+ if ("node" === Env.mode || options.canvas || updateRootElementPadding(internalProps.element, this.padding), this.columnWidthComputeMode = null !== (_a = options.columnWidthComputeMode) && void 0 !== _a ? _a : "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.columnResizeMode = null !== (_b = null == resize ? void 0 : resize.columnResizeMode) && void 0 !== _b ? _b : columnResizeMode, internalProps.rowResizeMode = null !== (_c = null == resize ? void 0 : resize.rowResizeMode) && void 0 !== _c ? _c : rowResizeMode, internalProps.dragHeaderMode = null !== (_e = null !== (_d = null == dragOrder ? void 0 : dragOrder.dragHeaderMode) && void 0 !== _d ? _d : dragHeaderMode) && void 0 !== _e ? _e : "none", internalProps.renderChartAsync = renderChartAsync, setBatchRenderChartCount(renderChartAsyncBatchCount), internalProps.overscrollBehavior = null != overscrollBehavior ? overscrollBehavior : "auto", internalProps.cellTextOverflows = {}, internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map(), internalProps._colRangeWidthsMap = new Map(), internalProps._widthResizedColMap = new Set(), internalProps._heightResizedRowMap = new Set(), this.colWidthsMap = new NumberMap(), this.colContentWidthsMap = new NumberMap(), this.colWidthsLimit = {}, internalProps.stick.changedCells.clear(), internalProps.theme = themes.of(null !== (_f = options.theme) && void 0 !== _f ? _f : 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 !== (_g = options.allowFrozenColCount) && void 0 !== _g ? _g : 0, internalProps.limitMaxAutoWidth = null !== (_h = options.limitMaxAutoWidth) && void 0 !== _h ? _h : 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 === (_j = internalProps.legends) || void 0 === _j || _j.forEach(legend => {
48354
48355
  null == legend || legend.release();
48355
- }), null === (_h = internalProps.title) || void 0 === _h || _h.release(), internalProps.title = null, null === (_j = internalProps.emptyTip) || void 0 === _j || _j.release(), internalProps.emptyTip = null, internalProps.layoutMap.release(), this.scenegraph.clearCells(), this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(), this.eventManager.updateEventBinder(), options.legends) {
48356
+ }), null === (_k = internalProps.title) || void 0 === _k || _k.release(), internalProps.title = null, null === (_l = internalProps.emptyTip) || void 0 === _l || _l.release(), internalProps.emptyTip = null, internalProps.layoutMap.release(), this.scenegraph.clearCells(), this.scenegraph.updateComponent(), this.stateManager.updateOptionSetState(), this._updateSize(), this.eventManager.updateEventBinder(), options.legends) {
48356
48357
  internalProps.legends = [];
48357
48358
  const createLegend = Factory.getFunction("createLegend");
48358
48359
  if (Array.isArray(options.legends)) {
@@ -48378,11 +48379,11 @@
48378
48379
  }
48379
48380
  if (internalProps.menu = Object.assign({
48380
48381
  renderMode: "html"
48381
- }, options.menu), Array.isArray(null === (_k = options.menu) || void 0 === _k ? void 0 : _k.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_l = options.menu) || void 0 === _l ? void 0 : _l.dropDownMenuHighlight), (Array.isArray(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.defaultHeaderMenuItems) || "function" == typeof (null === (_o = options.menu) || void 0 === _o ? void 0 : _o.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems), "html" === internalProps.menu.renderMode && !internalProps.menuHandler) {
48382
+ }, options.menu), Array.isArray(null === (_m = options.menu) || void 0 === _m ? void 0 : _m.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_o = options.menu) || void 0 === _o ? void 0 : _o.dropDownMenuHighlight), (Array.isArray(null === (_p = options.menu) || void 0 === _p ? void 0 : _p.defaultHeaderMenuItems) || "function" == typeof (null === (_q = options.menu) || void 0 === _q ? void 0 : _q.defaultHeaderMenuItems)) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems), "html" === internalProps.menu.renderMode && !internalProps.menuHandler) {
48382
48383
  const MenuHandler = Factory.getComponent("menuHandler");
48383
48384
  internalProps.menuHandler = new MenuHandler(this);
48384
48385
  }
48385
- this.clearCellStyleCache(), this.clearColWidthCache(), this.clearRowHeightCache(), internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell), null === (_p = this.customCellStylePlugin) || void 0 === _p || _p.updateCustomCell(null !== (_q = options.customCellStyle) && void 0 !== _q ? _q : [], null !== (_r = options.customCellStyleArrangement) && void 0 !== _r ? _r : []), this._adjustCanvasSizeByOption();
48386
+ this.clearCellStyleCache(), this.clearColWidthCache(), this.clearRowHeightCache(), internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell), null === (_r = this.customCellStylePlugin) || void 0 === _r || _r.updateCustomCell(null !== (_s = options.customCellStyle) && void 0 !== _s ? _s : [], null !== (_t = options.customCellStyleArrangement) && void 0 !== _t ? _t : []), this._adjustCanvasSizeByOption();
48386
48387
  }
48387
48388
  renderWithRecreateCells() {
48388
48389
  this.internalProps.stick.changedCells.clear();
@@ -49206,13 +49207,13 @@
49206
49207
  }
49207
49208
  getBodyIndexByTableIndex(col, row) {
49208
49209
  return {
49209
- col: col - this.rowHeaderLevelCount,
49210
+ col: col - this.rowHeaderLevelCount - this.leftRowSeriesNumberCount,
49210
49211
  row: row - this.columnHeaderLevelCount
49211
49212
  };
49212
49213
  }
49213
49214
  getTableIndexByBodyIndex(col, row) {
49214
49215
  return {
49215
- col: col + this.rowHeaderLevelCount,
49216
+ col: col + this.rowHeaderLevelCount + this.leftRowSeriesNumberCount,
49216
49217
  row: row + this.columnHeaderLevelCount
49217
49218
  };
49218
49219
  }
@@ -51391,7 +51392,8 @@
51391
51392
  return !1;
51392
51393
  }
51393
51394
  moveHeaderPosition(source, target) {
51394
- if (this.canMoveHeaderPosition(source, target)) {
51395
+ var _a, _b;
51396
+ if (((null === (_a = this._table.options.dragOrder) || void 0 === _a ? void 0 : _a.validateDragOrderOnEnd(source, target)) || !(null === (_b = this._table.options.dragOrder) || void 0 === _b ? void 0 : _b.validateDragOrderOnEnd)) && this.canMoveHeaderPosition(source, target)) {
51395
51397
  let sourceCellRange = this.getCellRange(source.col, source.row);
51396
51398
  if (this.isColumnHeader(source.col, source.row)) {
51397
51399
  const sourceSize = sourceCellRange.end.col - sourceCellRange.start.col + 1;
@@ -52160,18 +52162,18 @@
52160
52162
 
52161
52163
  class ListTable extends BaseTable {
52162
52164
  constructor(container, options) {
52163
- var _a, _b, _c, _d, _e, _f;
52165
+ var _a, _b, _c, _d, _e, _f, _g, _h;
52164
52166
  "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), super(container, options), this.showHeader = !0;
52165
52167
  const internalProps = this.internalProps;
52166
- if (internalProps.frozenColDragHeaderMode = options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.multipleSort = !!options.multipleSort, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_b = null !== (_a = options.enableTreeNodeMerge) && void 0 !== _a ? _a : isValid$3(options.groupBy)) && void 0 !== _b && _b, this.internalProps.headerHelper.setTableColumnsEditor(), this.showHeader = null === (_c = options.showHeader) || void 0 === _c || _c, this.internalProps.columnWidthConfig = options.columnWidthConfig, this.transpose = null !== (_d = options.transpose) && void 0 !== _d && _d, "node" !== Env.mode && (this.editorManager = new EditManager(this)), this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, options.dataSource ? this.dataSource = options.dataSource : options.records ? this.setRecords(options.records, {
52168
+ if (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.multipleSort = !!options.multipleSort, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_d = null !== (_c = options.enableTreeNodeMerge) && void 0 !== _c ? _c : isValid$3(options.groupBy)) && void 0 !== _d && _d, this.internalProps.headerHelper.setTableColumnsEditor(), this.showHeader = null === (_e = options.showHeader) || void 0 === _e || _e, this.internalProps.columnWidthConfig = options.columnWidthConfig, this.transpose = null !== (_f = options.transpose) && void 0 !== _f && _f, "node" !== Env.mode && (this.editorManager = new EditManager(this)), this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, options.dataSource ? this.dataSource = options.dataSource : options.records ? this.setRecords(options.records, {
52167
52169
  sortState: internalProps.sortState
52168
52170
  }) : this.setRecords([]), options.title) {
52169
52171
  const Title = Factory.getComponent("title");
52170
52172
  internalProps.title = new Title(options.title, this), this.scenegraph.resize();
52171
52173
  }
52172
- if (this.options.emptyTip) if (this.internalProps.emptyTip) null === (_e = this.internalProps.emptyTip) || void 0 === _e || _e.resetVisible();else {
52174
+ if (this.options.emptyTip) if (this.internalProps.emptyTip) null === (_g = this.internalProps.emptyTip) || void 0 === _g || _g.resetVisible();else {
52173
52175
  const EmptyTip = Factory.getComponent("emptyTip");
52174
- this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), null === (_f = this.internalProps.emptyTip) || void 0 === _f || _f.resetVisible();
52176
+ this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), null === (_h = this.internalProps.emptyTip) || void 0 === _h || _h.resetVisible();
52175
52177
  }
52176
52178
  if (options.enableTreeStickCell) {
52177
52179
  const ListTreeStickCellPlugin = Factory.getComponent("listTreeStickCellPlugin");
@@ -52373,9 +52375,9 @@
52373
52375
  return ifCan;
52374
52376
  }
52375
52377
  updateOption(options) {
52376
- var _a, _b, _c, _d, _e, _f;
52378
+ var _a, _b, _c, _d, _e, _f, _g, _h;
52377
52379
  const internalProps = this.internalProps;
52378
- if (super.updateOption(options), internalProps.frozenColDragHeaderMode = options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, this.showHeader = null === (_a = options.showHeader) || void 0 === _a || _a, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_c = null !== (_b = options.enableTreeNodeMerge) && void 0 !== _b ? _b : isValid$3(options.groupBy)) && void 0 !== _c && _c, this.internalProps.headerHelper.setTableColumnsEditor(), this.transpose = null !== (_d = options.transpose) && void 0 !== _d && _d, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.internalProps.columnWidthConfig = options.columnWidthConfig, internalProps.releaseList && (internalProps.releaseList.forEach(releaseObj => {
52380
+ if (super.updateOption(options), 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 = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, 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$3(options.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, internalProps.releaseList && (internalProps.releaseList.forEach(releaseObj => {
52379
52381
  var _a;
52380
52382
  return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
52381
52383
  }), internalProps.releaseList = null), options.dataSource ? this.dataSource = options.dataSource : options.records ? this.setRecords(options.records, {
@@ -52384,9 +52386,9 @@
52384
52386
  const Title = Factory.getComponent("title");
52385
52387
  internalProps.title = new Title(options.title, this), this.scenegraph.resize();
52386
52388
  }
52387
- if (this.options.emptyTip) if (this.internalProps.emptyTip) null === (_e = this.internalProps.emptyTip) || void 0 === _e || _e.resetVisible();else {
52389
+ if (this.options.emptyTip) if (this.internalProps.emptyTip) null === (_g = this.internalProps.emptyTip) || void 0 === _g || _g.resetVisible();else {
52388
52390
  const EmptyTip = Factory.getComponent("emptyTip");
52389
- this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), null === (_f = this.internalProps.emptyTip) || void 0 === _f || _f.resetVisible();
52391
+ this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this), null === (_h = this.internalProps.emptyTip) || void 0 === _h || _h.resetVisible();
52390
52392
  }
52391
52393
  return new Promise(resolve => {
52392
52394
  setTimeout(resolve, 0);
@@ -52575,19 +52577,8 @@
52575
52577
  }
52576
52578
  getCheckboxState(field) {
52577
52579
  if (this.stateManager.checkedState.size < this.rowCount - this.columnHeaderLevelCount && this.stateManager.initLeftRecordsCheckState(this.records), isValid$3(field)) {
52578
- let stateArr = Array.from(this.stateManager.checkedState.keys()).sort((a, b) => {
52579
- var _a, _b;
52580
- const aArr = a.split(","),
52581
- bArr = b.split(","),
52582
- maxLength = Math.max(aArr.length, bArr.length);
52583
- for (let i = 0; i < maxLength; i++) {
52584
- const a = null !== (_a = Number(aArr[i])) && void 0 !== _a ? _a : 0,
52585
- b = null !== (_b = Number(bArr[i])) && void 0 !== _b ? _b : 0;
52586
- if (a !== b) return a - b;
52587
- }
52588
- return 0;
52589
- }).map(key => this.stateManager.checkedState.get(key));
52590
- return this.options.groupBy && (stateArr = getGroupCheckboxState(this)), Array.from(stateArr, state => state && state[field]);
52580
+ let stateArr = Array.from(this.stateManager.checkedState.keys()).sort((a, b) => Number(a) - Number(b)).map(key => this.stateManager.checkedState.get(key));
52581
+ return this.options.groupBy && (stateArr = getGroupCheckboxState(this)), Array.from(stateArr, state => state[field]);
52591
52582
  }
52592
52583
  return new Array(...this.stateManager.checkedState.values());
52593
52584
  }