@visactor/vtable 0.15.2 → 0.15.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.
Files changed (113) hide show
  1. package/cjs/ListTable.d.ts +3 -2
  2. package/cjs/ListTable.js +21 -14
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotChart.d.ts +4 -3
  5. package/cjs/PivotChart.js +19 -20
  6. package/cjs/PivotChart.js.map +1 -1
  7. package/cjs/PivotTable.d.ts +9 -3
  8. package/cjs/PivotTable.js +117 -17
  9. package/cjs/PivotTable.js.map +1 -1
  10. package/cjs/body-helper/body-helper.js.map +1 -1
  11. package/cjs/core/BaseTable.d.ts +4 -3
  12. package/cjs/core/BaseTable.js +1 -1
  13. package/cjs/core/BaseTable.js.map +1 -1
  14. package/cjs/core/tableHelper.js +1 -1
  15. package/cjs/core/tableHelper.js.map +1 -1
  16. package/cjs/data/DataSource.d.ts +1 -1
  17. package/cjs/data/DataSource.js +8 -12
  18. package/cjs/data/DataSource.js.map +1 -1
  19. package/cjs/dataset/dataset-pivot-table.js +2 -1
  20. package/cjs/dataset/dataset-pivot-table.js.map +1 -1
  21. package/cjs/dataset/dataset.d.ts +3 -1
  22. package/cjs/dataset/dataset.js +35 -11
  23. package/cjs/dataset/dataset.js.map +1 -1
  24. package/cjs/dataset/flatDataToObject.d.ts +3 -1
  25. package/cjs/dataset/flatDataToObject.js +27 -5
  26. package/cjs/dataset/flatDataToObject.js.map +1 -1
  27. package/cjs/dataset/statistics-helper.d.ts +1 -0
  28. package/cjs/dataset/statistics-helper.js +3 -0
  29. package/cjs/dataset/statistics-helper.js.map +1 -1
  30. package/cjs/event/EventHandler.js +4 -0
  31. package/cjs/event/EventHandler.js.map +1 -1
  32. package/cjs/index.d.ts +1 -1
  33. package/cjs/index.js +1 -1
  34. package/cjs/index.js.map +1 -1
  35. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +9 -7
  36. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  37. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  38. package/cjs/scenegraph/group-creater/init-scenegraph.js +1 -4
  39. package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -1
  40. package/cjs/scenegraph/layout/frozen.js +2 -2
  41. package/cjs/scenegraph/layout/frozen.js.map +1 -1
  42. package/cjs/scenegraph/scenegraph.d.ts +0 -1
  43. package/cjs/scenegraph/scenegraph.js +4 -8
  44. package/cjs/scenegraph/scenegraph.js.map +1 -1
  45. package/cjs/themes/ARCO.js +2 -1
  46. package/cjs/themes/BRIGHT.js +1 -2
  47. package/cjs/tools/util.d.ts +1 -1
  48. package/cjs/tools/util.js +12 -11
  49. package/cjs/tools/util.js.map +1 -1
  50. package/cjs/ts-types/base-table.d.ts +4 -3
  51. package/cjs/ts-types/base-table.js.map +1 -1
  52. package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +6 -1
  53. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
  54. package/cjs/ts-types/table-engine.d.ts +4 -1
  55. package/cjs/ts-types/table-engine.js.map +1 -1
  56. package/dist/vtable.js +481 -283
  57. package/dist/vtable.min.js +2 -2
  58. package/es/ListTable.d.ts +3 -2
  59. package/es/ListTable.js +21 -14
  60. package/es/ListTable.js.map +1 -1
  61. package/es/PivotChart.d.ts +4 -3
  62. package/es/PivotChart.js +19 -22
  63. package/es/PivotChart.js.map +1 -1
  64. package/es/PivotTable.d.ts +9 -3
  65. package/es/PivotTable.js +103 -20
  66. package/es/PivotTable.js.map +1 -1
  67. package/es/body-helper/body-helper.js.map +1 -1
  68. package/es/core/BaseTable.d.ts +4 -3
  69. package/es/core/BaseTable.js +1 -1
  70. package/es/core/BaseTable.js.map +1 -1
  71. package/es/core/tableHelper.js +1 -1
  72. package/es/core/tableHelper.js.map +1 -1
  73. package/es/data/DataSource.d.ts +1 -1
  74. package/es/data/DataSource.js +8 -12
  75. package/es/data/DataSource.js.map +1 -1
  76. package/es/dataset/dataset-pivot-table.js +2 -1
  77. package/es/dataset/dataset-pivot-table.js.map +1 -1
  78. package/es/dataset/dataset.d.ts +3 -1
  79. package/es/dataset/dataset.js +36 -10
  80. package/es/dataset/dataset.js.map +1 -1
  81. package/es/dataset/flatDataToObject.d.ts +3 -1
  82. package/es/dataset/flatDataToObject.js +27 -5
  83. package/es/dataset/flatDataToObject.js.map +1 -1
  84. package/es/dataset/statistics-helper.d.ts +1 -0
  85. package/es/dataset/statistics-helper.js +3 -0
  86. package/es/dataset/statistics-helper.js.map +1 -1
  87. package/es/event/EventHandler.js +4 -0
  88. package/es/event/EventHandler.js.map +1 -1
  89. package/es/index.d.ts +1 -1
  90. package/es/index.js +1 -1
  91. package/es/index.js.map +1 -1
  92. package/es/scenegraph/graphic/contributions/chart-render-helper.js +9 -7
  93. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  94. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -1
  95. package/es/scenegraph/group-creater/init-scenegraph.js +0 -5
  96. package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -1
  97. package/es/scenegraph/layout/frozen.js +2 -2
  98. package/es/scenegraph/layout/frozen.js.map +1 -1
  99. package/es/scenegraph/scenegraph.d.ts +0 -1
  100. package/es/scenegraph/scenegraph.js +5 -7
  101. package/es/scenegraph/scenegraph.js.map +1 -1
  102. package/es/themes/ARCO.js +2 -1
  103. package/es/themes/BRIGHT.js +1 -2
  104. package/es/tools/util.d.ts +1 -1
  105. package/es/tools/util.js +6 -4
  106. package/es/tools/util.js.map +1 -1
  107. package/es/ts-types/base-table.d.ts +4 -3
  108. package/es/ts-types/base-table.js.map +1 -1
  109. package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +6 -1
  110. package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -1
  111. package/es/ts-types/table-engine.d.ts +4 -1
  112. package/es/ts-types/table-engine.js.map +1 -1
  113. package/package.json +5 -5
package/dist/vtable.js CHANGED
@@ -434,8 +434,8 @@
434
434
  const isNil$4 = value => null == value;
435
435
  var isNil$5 = isNil$4;
436
436
 
437
- const isValid$5 = value => null != value;
438
- var isValid$6 = isValid$5;
437
+ const isValid$4 = value => null != value;
438
+ var isValid$5 = isValid$4;
439
439
 
440
440
  const isObject$3 = value => {
441
441
  const type = typeof value;
@@ -455,8 +455,8 @@
455
455
  };
456
456
  var isPlainObject$3 = isPlainObject$2;
457
457
 
458
- const isUndefined$1 = value => void 0 === value;
459
- var isUndefined$2 = isUndefined$1;
458
+ const isUndefined = value => void 0 === value;
459
+ var isUndefined$1 = isUndefined;
460
460
 
461
461
  const isString$3 = function (value) {
462
462
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
@@ -554,7 +554,7 @@
554
554
 
555
555
  function cloneDeep$1(value) {
556
556
  let result;
557
- if (!isValid$6(value) || "object" != typeof value) return value;
557
+ if (!isValid$5(value) || "object" != typeof value) return value;
558
558
  const isArr = isArray$5(value),
559
559
  length = value.length;
560
560
  result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean$4(value) || isNumber$7(value) || isString$4(value) ? value : isDate$3(value) ? new Date(+value) : void 0;
@@ -572,7 +572,7 @@
572
572
  let shallowArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
573
573
  if (source) {
574
574
  if (target === source) return;
575
- if (isValid$6(source) && "object" == typeof source) {
575
+ if (isValid$5(source) && "object" == typeof source) {
576
576
  const iterable = Object(source),
577
577
  props = [];
578
578
  for (const key in iterable) props.push(key);
@@ -582,7 +582,7 @@
582
582
  propIndex = -1;
583
583
  for (; length--;) {
584
584
  const key = props[++propIndex];
585
- isValid$6(iterable[key]) && "object" == typeof iterable[key] ? baseMergeDeep$1(target, source, key, shallowArray) : assignMergeValue$1(target, key, iterable[key]);
585
+ isValid$5(iterable[key]) && "object" == typeof iterable[key] ? baseMergeDeep$1(target, source, key, shallowArray) : assignMergeValue$1(target, key, iterable[key]);
586
586
  }
587
587
  }
588
588
  }
@@ -689,7 +689,7 @@
689
689
  }
690
690
 
691
691
  function array$1(arr) {
692
- return isValid$6(arr) ? isArray$5(arr) ? arr : [arr] : [];
692
+ return isValid$5(arr) ? isArray$5(arr) ? arr : [arr] : [];
693
693
  }
694
694
  function last(val) {
695
695
  if (isArrayLike$3(val)) {
@@ -730,7 +730,7 @@
730
730
  }
731
731
 
732
732
  function range$1(start, stop, step) {
733
- isValid$6(stop) || (stop = start, start = 0), isValid$6(step) || (step = 1);
733
+ isValid$5(stop) || (stop = start, start = 0), isValid$5(step) || (step = 1);
734
734
  let i = -1;
735
735
  const n = 0 | Math.max(0, Math.ceil((stop - start) / step)),
736
736
  range = new Array(n);
@@ -1516,8 +1516,8 @@
1516
1516
  }
1517
1517
  }
1518
1518
  static parseColorString(value) {
1519
- if (isValid$6(DEFAULT_COLORS_OPACITY$1[value])) return rgba$1(DEFAULT_COLORS_OPACITY$1[value]);
1520
- if (isValid$6(DEFAULT_COLORS$1[value])) return rgb$1(DEFAULT_COLORS$1[value]);
1519
+ if (isValid$5(DEFAULT_COLORS_OPACITY$1[value])) return rgba$1(DEFAULT_COLORS_OPACITY$1[value]);
1520
+ if (isValid$5(DEFAULT_COLORS$1[value])) return rgb$1(DEFAULT_COLORS$1[value]);
1521
1521
  const formatValue = `${value}`.trim().toLowerCase(),
1522
1522
  isHex = REG_HEX$1.exec(formatValue);
1523
1523
  if (isHex) {
@@ -1653,7 +1653,7 @@
1653
1653
  };
1654
1654
  let RGB$1 = class RGB {
1655
1655
  constructor(r, g, b, opacity) {
1656
- this.r = isNaN(+r) ? 255 : Math.max(0, Math.min(255, +r)), this.g = isNaN(+g) ? 255 : Math.max(0, Math.min(255, +g)), this.b = isNaN(+b) ? 255 : Math.max(0, Math.min(255, +b)), isValid$6(opacity) ? this.opacity = isNaN(+opacity) ? 1 : Math.max(0, Math.min(1, +opacity)) : this.opacity = 1;
1656
+ this.r = isNaN(+r) ? 255 : Math.max(0, Math.min(255, +r)), this.g = isNaN(+g) ? 255 : Math.max(0, Math.min(255, +g)), this.b = isNaN(+b) ? 255 : Math.max(0, Math.min(255, +b)), isValid$5(opacity) ? this.opacity = isNaN(+opacity) ? 1 : Math.max(0, Math.min(1, +opacity)) : this.opacity = 1;
1657
1657
  }
1658
1658
  formatHex() {
1659
1659
  return `#${hex$1(this.r) + hex$1(this.g) + hex$1(this.b) + (1 === this.opacity ? "" : hex$1(255 * this.opacity))}`;
@@ -1837,13 +1837,13 @@
1837
1837
 
1838
1838
  class TextMeasure {
1839
1839
  constructor(option, textSpec) {
1840
- this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportVRender = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid$6(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid$6(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
1840
+ this._numberCharSize = null, this._fullCharSize = null, this._letterCharSize = null, this._specialCharSizeMap = {}, this._canvas = null, this._context = null, this._contextSaved = !1, this._notSupportCanvas = !1, this._notSupportVRender = !1, this._userSpec = {}, this.specialCharSet = "-/: .,@%'\"~", this._option = option, this._userSpec = null != textSpec ? textSpec : {}, this.textSpec = this._initSpec(), isValid$5(option.specialCharSet) && (this.specialCharSet = option.specialCharSet), this._standardMethod = isValid$5(option.getTextBounds) ? this.fullMeasure.bind(this) : this.measureWithNaiveCanvas.bind(this);
1841
1841
  }
1842
1842
  initContext() {
1843
1843
  if (this._notSupportCanvas) return !1;
1844
- if (isNil$5(this._canvas) && (isValid$6(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil$5(this._canvas) && "undefined" != typeof window && void 0 !== window.document && isValid$6(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil$5(this._context) && isValid$6(this._canvas)) {
1844
+ if (isNil$5(this._canvas) && (isValid$5(this._option.getCanvasForMeasure) && (this._canvas = this._option.getCanvasForMeasure()), isNil$5(this._canvas) && "undefined" != typeof window && void 0 !== window.document && isValid$5(globalThis.document) && (this._canvas = globalThis.document.createElement("canvas"))), isNil$5(this._context) && isValid$5(this._canvas)) {
1845
1845
  const context = this._canvas.getContext("2d");
1846
- isValid$6(context) && (context.save(), context.font = getContextFont$1(this.textSpec), this._contextSaved = !0, this._context = context);
1846
+ isValid$5(context) && (context.save(), context.font = getContextFont$1(this.textSpec), this._contextSaved = !0, this._context = context);
1847
1847
  }
1848
1848
  return !isNil$5(this._context) || (this._notSupportCanvas = !0, !1);
1849
1849
  }
@@ -1999,7 +1999,7 @@
1999
1999
  };
2000
2000
  if (isNil$5(text)) return defaultResult;
2001
2001
  if (isArray$5(text)) {
2002
- const textArr = text.filter(isValid$6).map(s => s.toString());
2002
+ const textArr = text.filter(isValid$5).map(s => s.toString());
2003
2003
  return 0 === textArr.length ? defaultResult : 1 === textArr.length ? processor(textArr[0]) : {
2004
2004
  width: textArr.reduce((maxWidth, cur) => Math.max(maxWidth, processor(cur).width), 0),
2005
2005
  height: textArr.length * ((null !== (_a = lineHeight) && void 0 !== _a ? _a : fontSize) + 1) + 1
@@ -2031,10 +2031,10 @@
2031
2031
  return this._letterCharSize;
2032
2032
  }
2033
2033
  _measureSpecialChar(char) {
2034
- return isValid$6(this._specialCharSizeMap[char]) ? this._specialCharSizeMap[char] : this.specialCharSet.includes(char) ? (this._specialCharSizeMap[char] = this._standardMethod(char), this._specialCharSizeMap[char]) : null;
2034
+ return isValid$5(this._specialCharSizeMap[char]) ? this._specialCharSizeMap[char] : this.specialCharSet.includes(char) ? (this._specialCharSizeMap[char] = this._standardMethod(char), this._specialCharSizeMap[char]) : null;
2035
2035
  }
2036
2036
  release() {
2037
- isValid$6(this._canvas) && (this._canvas = null), isValid$6(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
2037
+ isValid$5(this._canvas) && (this._canvas = null), isValid$5(this._context) && (this._contextSaved && (this._context.restore(), this._contextSaved = !1), this._context = null);
2038
2038
  }
2039
2039
  }
2040
2040
  TextMeasure.ALPHABET_CHAR_SET = "abcdefghijklmnopqrstuvwxyz", TextMeasure.NUMBERS_CHAR_SET = "0123456789", TextMeasure.FULL_SIZE_CHAR = "字";
@@ -2134,7 +2134,7 @@
2134
2134
  if (!list) {
2135
2135
  return [];
2136
2136
  }
2137
- return list.map(listener => listener.call(this, event)).filter(r => isValid$6(r));
2137
+ return list.map(listener => listener.call(this, event)).filter(r => isValid$5(r));
2138
2138
  }
2139
2139
  release() {
2140
2140
  delete this.listenersData;
@@ -2414,7 +2414,7 @@
2414
2414
  if (!columnStyle) {
2415
2415
  columnStyle = {};
2416
2416
  }
2417
- if (globalAutoWrapText && !isValid$6(columnStyle.autoWrapText)) {
2417
+ if (globalAutoWrapText && !isValid$5(columnStyle.autoWrapText)) {
2418
2418
  columnStyle.autoWrapText = true;
2419
2419
  }
2420
2420
  return new StyleClassDef((columnStyle ?? {}), (bodyStyle ?? {}));
@@ -2682,7 +2682,7 @@
2682
2682
  if (!headerStyle) {
2683
2683
  headerStyle = {};
2684
2684
  }
2685
- if (globalAutoWrapText && !isValid$6(headerStyle.autoWrapText)) {
2685
+ if (globalAutoWrapText && !isValid$5(headerStyle.autoWrapText)) {
2686
2686
  headerStyle.autoWrapText = true;
2687
2687
  }
2688
2688
  return new StyleClass(headerStyle ?? {}, (defaultHeaderStyle ?? {}));
@@ -2877,8 +2877,6 @@
2877
2877
  const isString$2 = (v) => isIt$1(v, 'string');
2878
2878
  const isNumber$5 = (v) => isIt$1(v, 'number');
2879
2879
  const isBoolean$2 = (v) => isIt$1(v, 'boolean');
2880
- const isUndefined = (v) => isIt$1(v, 'undefined');
2881
- const isNull = (v) => isIt$1(v, 'null');
2882
2880
  function ingoreNoneValueMerge(target, ...sources) {
2883
2881
  if (!sources.length) {
2884
2882
  return target || {};
@@ -2906,7 +2904,7 @@
2906
2904
  if (typeof value === 'function') {
2907
2905
  value = value();
2908
2906
  }
2909
- return isValid$4(value) ? `${value}` : '';
2907
+ return isValid$5(value) ? `${value}` : '';
2910
2908
  }
2911
2909
  function transpose(matrix) {
2912
2910
  if (matrix?.length <= 0) {
@@ -2968,7 +2966,7 @@
2968
2966
  '(?:\\s*,\\s*' +
2969
2967
  '(0|1|0?\\.\\d+))?' +
2970
2968
  '\\s*\\)$', 'i'));
2971
- const alpha = !!rgb && isValid$4(rgb[4]) ? rgb[4] : null;
2969
+ const alpha = !!rgb && isValid$5(rgb[4]) ? rgb[4] : null;
2972
2970
  const decimal = rgb
2973
2971
  ? [rgb[1], rgb[2], rgb[3]]
2974
2972
  : color
@@ -2986,12 +2984,6 @@
2986
2984
  pad(Math[isDarker ? 'max' : 'min'](parseInt(decimal[2], 10) + difference, isDarker ? 0 : 255).toString(16), 2)
2987
2985
  ].join('');
2988
2986
  }
2989
- function isValid$4(v) {
2990
- if (isUndefined(v) || isNull(v)) {
2991
- return false;
2992
- }
2993
- return true;
2994
- }
2995
2987
  function validToString(v) {
2996
2988
  if (isString$2(v) || isNumber$5(v) || isBoolean$2(v)) {
2997
2989
  return v.toString();
@@ -3031,6 +3023,10 @@
3031
3023
  }
3032
3024
  return result;
3033
3025
  }
3026
+ function isAllDigits(str) {
3027
+ const pattern = /^-?\d+(\.\d+)?$/;
3028
+ return pattern.test(str);
3029
+ }
3034
3030
 
3035
3031
  const isNode = typeof window === 'undefined' || typeof window.window === 'undefined';
3036
3032
  let arrayFind;
@@ -3577,6 +3573,10 @@
3577
3573
  listener.target.removeEventListener(listener.type, listener.listener, ...listener.options);
3578
3574
  }
3579
3575
  }
3576
+ for (const key in this.reseizeListeners) {
3577
+ const resizeObserver = this.reseizeListeners[key];
3578
+ resizeObserver?.disConnect();
3579
+ }
3580
3580
  this.listeners = {};
3581
3581
  }
3582
3582
  release() {
@@ -3688,7 +3688,7 @@
3688
3688
  return this._vals[key];
3689
3689
  }
3690
3690
  has(key) {
3691
- return isValid$6(this._vals[key]);
3691
+ return isValid$5(this._vals[key]);
3692
3692
  }
3693
3693
  contain(value) {
3694
3694
  return Object.values(this._vals).indexOf(value) >= 0;
@@ -9727,10 +9727,10 @@
9727
9727
  const normalizedEvents = [];
9728
9728
  if (this.supportsTouchEvents && event.changedTouches && event.changedTouches.length) for (let i = 0, li = event.changedTouches.length; i < li; i++) {
9729
9729
  const touch = event.changedTouches[i];
9730
- isUndefined$2(touch.button) && (touch.button = 0), isUndefined$2(touch.buttons) && (touch.buttons = 1), isUndefined$2(touch.isPrimary) && (touch.isPrimary = 1 === event.touches.length && "touchstart" === event.type), isUndefined$2(touch.width) && (touch.width = touch.radiusX || 1), isUndefined$2(touch.height) && (touch.height = touch.radiusY || 1), isUndefined$2(touch.tiltX) && (touch.tiltX = 0), isUndefined$2(touch.tiltY) && (touch.tiltY = 0), isUndefined$2(touch.pointerType) && (touch.pointerType = "touch"), isUndefined$2(touch.pointerId) && (touch.pointerId = touch.identifier || 0), isUndefined$2(touch.pressure) && (touch.pressure = touch.force || .5), isUndefined$2(touch.twist) && (touch.twist = 0), isUndefined$2(touch.tangentialPressure) && (touch.tangentialPressure = 0), isUndefined$2(touch.layerX) && (touch.layerX = touch.offsetX = touch.clientX), isUndefined$2(touch.layerY) && (touch.layerY = touch.offsetY = touch.clientY), touch.isNormalized = !0, touch.type = event.type, normalizedEvents.push(touch);
9730
+ isUndefined$1(touch.button) && (touch.button = 0), isUndefined$1(touch.buttons) && (touch.buttons = 1), isUndefined$1(touch.isPrimary) && (touch.isPrimary = 1 === event.touches.length && "touchstart" === event.type), isUndefined$1(touch.width) && (touch.width = touch.radiusX || 1), isUndefined$1(touch.height) && (touch.height = touch.radiusY || 1), isUndefined$1(touch.tiltX) && (touch.tiltX = 0), isUndefined$1(touch.tiltY) && (touch.tiltY = 0), isUndefined$1(touch.pointerType) && (touch.pointerType = "touch"), isUndefined$1(touch.pointerId) && (touch.pointerId = touch.identifier || 0), isUndefined$1(touch.pressure) && (touch.pressure = touch.force || .5), isUndefined$1(touch.twist) && (touch.twist = 0), isUndefined$1(touch.tangentialPressure) && (touch.tangentialPressure = 0), isUndefined$1(touch.layerX) && (touch.layerX = touch.offsetX = touch.clientX), isUndefined$1(touch.layerY) && (touch.layerY = touch.offsetY = touch.clientY), touch.isNormalized = !0, touch.type = event.type, normalizedEvents.push(touch);
9731
9731
  } else if (this.globalObj.supportsMouseEvents && (!(event instanceof MouseEvent) || this.supportsPointerEvents && event instanceof PointerEvent)) normalizedEvents.push(event);else {
9732
9732
  const tempEvent = event;
9733
- isUndefined$2(tempEvent.isPrimary) && (tempEvent.isPrimary = !0), isUndefined$2(tempEvent.width) && (tempEvent.width = 1), isUndefined$2(tempEvent.height) && (tempEvent.height = 1), isUndefined$2(tempEvent.tiltX) && (tempEvent.tiltX = 0), isUndefined$2(tempEvent.tiltY) && (tempEvent.tiltY = 0), isUndefined$2(tempEvent.pointerType) && (tempEvent.pointerType = "mouse"), isUndefined$2(tempEvent.pointerId) && (tempEvent.pointerId = 1), isUndefined$2(tempEvent.pressure) && (tempEvent.pressure = .5), isUndefined$2(tempEvent.twist) && (tempEvent.twist = 0), isUndefined$2(tempEvent.tangentialPressure) && (tempEvent.tangentialPressure = 0), tempEvent.isNormalized = !0, normalizedEvents.push(tempEvent);
9733
+ isUndefined$1(tempEvent.isPrimary) && (tempEvent.isPrimary = !0), isUndefined$1(tempEvent.width) && (tempEvent.width = 1), isUndefined$1(tempEvent.height) && (tempEvent.height = 1), isUndefined$1(tempEvent.tiltX) && (tempEvent.tiltX = 0), isUndefined$1(tempEvent.tiltY) && (tempEvent.tiltY = 0), isUndefined$1(tempEvent.pointerType) && (tempEvent.pointerType = "mouse"), isUndefined$1(tempEvent.pointerId) && (tempEvent.pointerId = 1), isUndefined$1(tempEvent.pressure) && (tempEvent.pressure = .5), isUndefined$1(tempEvent.twist) && (tempEvent.twist = 0), isUndefined$1(tempEvent.tangentialPressure) && (tempEvent.tangentialPressure = 0), tempEvent.isNormalized = !0, normalizedEvents.push(tempEvent);
9734
9734
  }
9735
9735
  return normalizedEvents;
9736
9736
  }
@@ -26575,7 +26575,7 @@
26575
26575
  if (tagWidth += symbolPlaceWidth, textX += symbolPlaceWidth, "rich" === type) {
26576
26576
  const richTextAttrs = Object.assign(Object.assign({
26577
26577
  textConfig: text,
26578
- visible: isValid$6(text) && !1 !== visible
26578
+ visible: isValid$5(text) && !1 !== visible
26579
26579
  }, textStyle), {
26580
26580
  x: textX,
26581
26581
  y: 0,
@@ -26600,7 +26600,7 @@
26600
26600
  } else if ("html" === type) {
26601
26601
  const richTextAttrs = Object.assign(Object.assign({
26602
26602
  textConfig: [],
26603
- visible: isValid$6(text) && !1 !== visible,
26603
+ visible: isValid$5(text) && !1 !== visible,
26604
26604
  html: Object.assign(Object.assign({
26605
26605
  dom: text
26606
26606
  }, DEFAULT_HTML_TEXT_SPEC), textStyle)
@@ -26626,7 +26626,7 @@
26626
26626
  } else {
26627
26627
  const textAttrs = Object.assign(Object.assign({
26628
26628
  text: text,
26629
- visible: isValid$6(text) && !1 !== visible,
26629
+ visible: isValid$5(text) && !1 !== visible,
26630
26630
  lineHeight: null == textStyle ? void 0 : textStyle.fontSize
26631
26631
  }, textStyle), {
26632
26632
  x: textX,
@@ -26644,7 +26644,7 @@
26644
26644
  textAlign: textAlign,
26645
26645
  textBaseline: textBaseline
26646
26646
  } = textStyle;
26647
- (isValid$6(minWidth) || isValid$6(maxWidth)) && (isValid$6(minWidth) && tagWidth < minWidth && (tagWidth = minWidth), isValid$6(maxWidth) && tagWidth > maxWidth && (tagWidth = maxWidth, textShape.setAttribute("maxLineWidth", maxWidth - parsedPadding[1] - parsedPadding[2])));
26647
+ (isValid$5(minWidth) || isValid$5(maxWidth)) && (isValid$5(minWidth) && tagWidth < minWidth && (tagWidth = minWidth), isValid$5(maxWidth) && tagWidth > maxWidth && (tagWidth = maxWidth, textShape.setAttribute("maxLineWidth", maxWidth - parsedPadding[1] - parsedPadding[2])));
26648
26648
  let x = 0,
26649
26649
  y = 0;
26650
26650
  "center" === textAlign ? (x -= tagWidth / 2, symbol && symbol.setAttribute("x", (symbol.attribute.x || 0) - textWidth / 2), group.setAttribute("x", -symbolPlaceWidth / 2)) : "right" === textAlign || "end" === textAlign ? (x -= tagWidth, symbol && symbol.setAttribute("x", (symbol.attribute.x || 0) - textWidth), group.setAttribute("x", -parsedPadding[1] - symbolPlaceWidth)) : "left" !== textAlign && "start" !== textAlign || group.setAttribute("x", parsedPadding[3]), "middle" === textBaseline ? (y -= tagHeight / 2, symbol && symbol.setAttribute("y", 0)) : "bottom" === textBaseline ? (y -= tagHeight, symbol && symbol.setAttribute("y", -textHeight / 2), group.setAttribute("y", -parsedPadding[2])) : "top" === textBaseline && (group.setAttribute("y", parsedPadding[0]), symbol && symbol.setAttribute("y", textHeight / 2));
@@ -26723,7 +26723,7 @@
26723
26723
  zIndex: 1
26724
26724
  }, "group"),
26725
26725
  maxLineWidth = maxWidth - parsedPadding[1] - parsedPadding[3],
26726
- titleVisible = isValid$6(title) && !1 !== visible,
26726
+ titleVisible = isValid$5(title) && !1 !== visible,
26727
26727
  titleAttrs = Object.assign(Object.assign({
26728
26728
  text: isArray$5(title) ? title : [title],
26729
26729
  visible: titleVisible
@@ -26741,7 +26741,7 @@
26741
26741
  titleWidth = titleBounds.width();
26742
26742
  let height = titleHeight + space;
26743
26743
  titleVisible || (height = 0);
26744
- const contentVisible = isValid$6(content) && !1 !== visible,
26744
+ const contentVisible = isValid$5(content) && !1 !== visible,
26745
26745
  contentAttrs = Object.assign(Object.assign({
26746
26746
  text: isArray$5(content) ? content : [content],
26747
26747
  visible: contentVisible
@@ -28187,7 +28187,7 @@
28187
28187
  });
28188
28188
  bgRect.name = AXIS_ELEMENT_NAME.axisLabelBackground, bgRect.id = this._getNodeId("axis-label-background"), labelContainer.insertBefore(bgRect, labelContainer.firstChild);
28189
28189
  }
28190
- if (isValid$6(this.attribute.label.containerAlign)) {
28190
+ if (isValid$5(this.attribute.label.containerAlign)) {
28191
28191
  let start;
28192
28192
  "left" === orient ? start = axisLabelContainerBounds.x2 : "right" === orient ? start = axisLabelContainerBounds.x1 : "top" === orient ? start = axisLabelContainerBounds.y2 : "bottom" === orient && (start = axisLabelContainerBounds.y1), alignAxisLabels(labelShapes, start, axisLabelContainerSize, orient, this.attribute.label.containerAlign);
28193
28193
  }
@@ -28418,7 +28418,7 @@
28418
28418
  };
28419
28419
  shape && shape.visible && (tagAttrs.shape = Object.assign({
28420
28420
  visible: !0
28421
- }, shape.style), isValid$6(shape.space) && (tagAttrs.space = shape.space)), background && background.visible && (tagAttrs.panel = Object.assign({
28421
+ }, shape.style), isValid$5(shape.space) && (tagAttrs.space = shape.space)), background && background.visible && (tagAttrs.panel = Object.assign({
28422
28422
  visible: !0
28423
28423
  }, background.style));
28424
28424
  const titleTag = new Tag$1(tagAttrs);
@@ -28537,7 +28537,7 @@
28537
28537
  width: itemWidth,
28538
28538
  height: itemHeight
28539
28539
  } = item;
28540
- isValid$6(maxItemWidth) ? isValid$6(itemWidth) ? this._itemWidthByUser = Math.min(maxItemWidth, itemWidth) : this._itemWidthByUser = maxItemWidth : isValid$6(itemWidth) && (this._itemWidthByUser = itemWidth), isValid$6(itemHeight) && (this._itemHeightByUser = itemHeight);
28540
+ isValid$5(maxItemWidth) ? isValid$5(itemWidth) ? this._itemWidthByUser = Math.min(maxItemWidth, itemWidth) : this._itemWidthByUser = maxItemWidth : isValid$5(itemWidth) && (this._itemWidthByUser = itemWidth), isValid$5(itemHeight) && (this._itemHeightByUser = itemHeight);
28541
28541
  let doWrap = !1,
28542
28542
  maxWidthInCol = 0,
28543
28543
  startX = 0,
@@ -28549,10 +28549,10 @@
28549
28549
  const itemGroup = this._renderEachItem(item, !!isEmpty(defaultSelected) || (null == defaultSelected ? void 0 : defaultSelected.includes(item.label)), index, legendItems),
28550
28550
  itemWidth = itemGroup.attribute.width,
28551
28551
  itemHeight = itemGroup.attribute.height;
28552
- this._itemHeight = Math.max(this._itemHeight, itemHeight), maxWidthInCol = Math.max(itemWidth, maxWidthInCol), this._itemMaxWidth = Math.max(itemWidth, this._itemMaxWidth), isHorizontal ? (maxPages = maxRow, isValid$6(maxWidth) && (itemWidth >= maxWidth ? (doWrap = !0, index > 0 && (startX = 0, startY += itemHeight + spaceRow, pages += 1)) : maxWidth < startX + itemWidth && (doWrap = !0, startX = 0, startY += itemHeight + spaceRow, pages += 1)), index > 0 && itemGroup.setAttributes({
28552
+ this._itemHeight = Math.max(this._itemHeight, itemHeight), maxWidthInCol = Math.max(itemWidth, maxWidthInCol), this._itemMaxWidth = Math.max(itemWidth, this._itemMaxWidth), isHorizontal ? (maxPages = maxRow, isValid$5(maxWidth) && (itemWidth >= maxWidth ? (doWrap = !0, index > 0 && (startX = 0, startY += itemHeight + spaceRow, pages += 1)) : maxWidth < startX + itemWidth && (doWrap = !0, startX = 0, startY += itemHeight + spaceRow, pages += 1)), index > 0 && itemGroup.setAttributes({
28553
28553
  x: startX,
28554
28554
  y: startY
28555
- }), startX += spaceCol + itemWidth) : (maxPages = maxCol, isValid$6(maxHeight) && maxHeight < startY + itemHeight && (doWrap = !0, startY = 0, startX += maxWidthInCol + spaceCol, maxWidthInCol = 0, pages += 1), index > 0 && itemGroup.setAttributes({
28555
+ }), startX += spaceCol + itemWidth) : (maxPages = maxCol, isValid$5(maxHeight) && maxHeight < startY + itemHeight && (doWrap = !0, startY = 0, startX += maxWidthInCol + spaceCol, maxWidthInCol = 0, pages += 1), index > 0 && itemGroup.setAttributes({
28556
28556
  x: startX,
28557
28557
  y: startY
28558
28558
  }), startY += spaceRow + itemHeight), itemsContainer.add(itemGroup);
@@ -28645,7 +28645,7 @@
28645
28645
  }));
28646
28646
  this._appendDataToShape(labelShape, LEGEND_ELEMENT_NAME.itemLabel, item, itemGroup, null == labelAttr ? void 0 : labelAttr.state), labelShape.addState(isSelected ? LegendStateValue.selected : LegendStateValue.unSelected), innerGroup.add(labelShape);
28647
28647
  const labelSpace = get$5(labelAttr, "space", DEFAULT_LABEL_SPACE);
28648
- if (isValid$6(value)) {
28648
+ if (isValid$5(value)) {
28649
28649
  const valueSpace = get$5(valueAttr, "space", focus ? DEFAULT_VALUE_SPACE : 0),
28650
28650
  valueShape = createText(Object.assign(Object.assign({
28651
28651
  x: 0,
@@ -28673,7 +28673,7 @@
28673
28673
  const innerGroupBounds = innerGroup.AABBBounds,
28674
28674
  innerGroupWidth = innerGroupBounds.width(),
28675
28675
  innerGroupHeight = innerGroupBounds.height(),
28676
- itemGroupWidth = isValid$6(this.attribute.item.width) ? this.attribute.item.width : innerGroupWidth + parsedPadding[1] + parsedPadding[3],
28676
+ itemGroupWidth = isValid$5(this.attribute.item.width) ? this.attribute.item.width : innerGroupWidth + parsedPadding[1] + parsedPadding[3],
28677
28677
  itemGroupHeight = this._itemHeightByUser || innerGroupHeight + parsedPadding[0] + parsedPadding[2];
28678
28678
  return itemGroup.attribute.width = itemGroupWidth, itemGroup.attribute.height = itemGroupHeight, focusShape && focusShape.setAttribute("visible", !1), innerGroup.translateTo(-innerGroupBounds.x1 + parsedPadding[3], -innerGroupBounds.y1 + parsedPadding[0]), itemGroup;
28679
28679
  }
@@ -28995,10 +28995,10 @@
28995
28995
  this._rangeFactorStart = null, this._rangeFactorEnd = null;
28996
28996
  }
28997
28997
  _calculateWholeRange(range) {
28998
- return this._wholeRange ? this._wholeRange : isValid$6(this._rangeFactorStart) && isValid$6(this._rangeFactorEnd) && 2 === range.length ? (this._wholeRange = calculateWholeRangeFromRangeFactor(range, [this._rangeFactorStart, this._rangeFactorEnd]), this._wholeRange) : range;
28998
+ return this._wholeRange ? this._wholeRange : isValid$5(this._rangeFactorStart) && isValid$5(this._rangeFactorEnd) && 2 === range.length ? (this._wholeRange = calculateWholeRangeFromRangeFactor(range, [this._rangeFactorStart, this._rangeFactorEnd]), this._wholeRange) : range;
28999
28999
  }
29000
29000
  rangeFactor(_, slience, clear) {
29001
- return _ ? (2 === _.length && _.every(r => r >= 0 && r <= 1) && (this._wholeRange = null, 0 === _[0] && 1 === _[1] ? (this._rangeFactorStart = null, this._rangeFactorEnd = null) : (this._rangeFactorStart = _[0], this._rangeFactorEnd = _[1])), this) : clear ? (this._wholeRange = null, this._rangeFactorStart = null, this._rangeFactorEnd = null, this) : isValid$6(this._rangeFactorStart) && isValid$6(this._rangeFactorEnd) ? [this._rangeFactorStart, this._rangeFactorEnd] : null;
29001
+ return _ ? (2 === _.length && _.every(r => r >= 0 && r <= 1) && (this._wholeRange = null, 0 === _[0] && 1 === _[1] ? (this._rangeFactorStart = null, this._rangeFactorEnd = null) : (this._rangeFactorStart = _[0], this._rangeFactorEnd = _[1])), this) : clear ? (this._wholeRange = null, this._rangeFactorStart = null, this._rangeFactorEnd = null, this) : isValid$5(this._rangeFactorStart) && isValid$5(this._rangeFactorEnd) ? [this._rangeFactorStart, this._rangeFactorEnd] : null;
29002
29002
  }
29003
29003
  rangeFactorStart(_, slience) {
29004
29004
  var _a;
@@ -29065,7 +29065,7 @@
29065
29065
  }
29066
29066
  calculateVisibleDomain(range) {
29067
29067
  var _a;
29068
- if (isValid$6(this._rangeFactorStart) && isValid$6(this._rangeFactorEnd) && 2 === range.length) {
29068
+ if (isValid$5(this._rangeFactorStart) && isValid$5(this._rangeFactorEnd) && 2 === range.length) {
29069
29069
  return [this.invert(range[0]), this.invert(range[1])];
29070
29070
  }
29071
29071
  return null !== (_a = this._niceDomain) && void 0 !== _a ? _a : this._domain;
@@ -29333,7 +29333,7 @@
29333
29333
  let count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
29334
29334
  let options = arguments.length > 1 ? arguments[1] : undefined;
29335
29335
  var _a;
29336
- if (isValid$6(this._rangeFactorStart) && isValid$6(this._rangeFactorEnd) && (this._rangeFactorStart > 0 || this._rangeFactorEnd < 1) && 2 === this._range.length || !this._niceType) return this.d3Ticks(count, options);
29336
+ if (isValid$5(this._rangeFactorStart) && isValid$5(this._rangeFactorEnd) && (this._rangeFactorStart > 0 || this._rangeFactorEnd < 1) && 2 === this._range.length || !this._niceType) return this.d3Ticks(count, options);
29337
29337
  const curNiceDomain = null !== (_a = this._niceDomain) && void 0 !== _a ? _a : this._domain,
29338
29338
  originalDomain = this._domain,
29339
29339
  start = curNiceDomain[0],
@@ -29507,7 +29507,7 @@
29507
29507
  let currentPos, startHandlerPos, endHandlerPos, railLen;
29508
29508
  this._isHorizontal ? (currentPos = e.viewX - this._rail.globalAABBBounds.x1, startHandlerPos = null == startHandler ? void 0 : startHandler.attribute.x, endHandlerPos = null == endHandler ? void 0 : endHandler.attribute.x, railLen = railWidth) : (currentPos = e.viewY - this._rail.globalAABBBounds.y1, startHandlerPos = null == startHandler ? void 0 : startHandler.attribute.y, endHandlerPos = null == endHandler ? void 0 : endHandler.attribute.y, railLen = railHeight);
29509
29509
  const currentValue = currentPos / railLen * (max - min) + min;
29510
- if (isValid$6(endHandlerPos)) {
29510
+ if (isValid$5(endHandlerPos)) {
29511
29511
  const updateHandler = Math.abs(currentPos - startHandlerPos) > Math.abs(currentPos - endHandlerPos) ? endHandler : startHandler;
29512
29512
  this._updateHandler(updateHandler, currentPos, currentValue);
29513
29513
  } else this._updateHandler(startHandler, currentPos, currentValue);
@@ -29574,7 +29574,7 @@
29574
29574
  text: startText.text,
29575
29575
  lineHeight: null === (_a = startText.style) || void 0 === _a ? void 0 : _a.fontSize
29576
29576
  }, startText.style)), startTextShape.name = SLIDER_ELEMENT_NAME.startText, innerView.add(startTextShape);
29577
- const space = isValid$6(startText.space) ? startText.space : 0;
29577
+ const space = isValid$5(startText.space) ? startText.space : 0;
29578
29578
  startLen += (isHorizontal ? startTextShape.AABBBounds.width() : startTextShape.AABBBounds.height()) + space;
29579
29579
  }
29580
29580
  const mainContainer = createGroup({
@@ -29588,7 +29588,7 @@
29588
29588
  });
29589
29589
  let endTextShape;
29590
29590
  if (railContainer.name = SLIDER_ELEMENT_NAME.railContainer, this._railContainer = railContainer, mainContainer.add(railContainer), this._renderRail(railContainer), startLen += isHorizontal ? railWidth : railHeight, endText && endText.visible) {
29591
- const space = isValid$6(endText.space) ? endText.space : 0;
29591
+ const space = isValid$5(endText.space) ? endText.space : 0;
29592
29592
  endTextShape = createText(Object.assign({
29593
29593
  x: isHorizontal ? startLen + space : railWidth / 2,
29594
29594
  y: isHorizontal ? railHeight / 2 : startLen + space,
@@ -30180,7 +30180,7 @@
30180
30180
  y: parsedPadding[0],
30181
30181
  zIndex: 1
30182
30182
  }, "group");
30183
- if (!1 !== (null === (_a = this.attribute) || void 0 === _a ? void 0 : _a.visible) && !1 !== (null == textStyle ? void 0 : textStyle.visible)) if ("rich" === textType || isValid$6(textStyle.character)) {
30183
+ if (!1 !== (null === (_a = this.attribute) || void 0 === _a ? void 0 : _a.visible) && !1 !== (null == textStyle ? void 0 : textStyle.visible)) if ("rich" === textType || isValid$5(textStyle.character)) {
30184
30184
  const attr = Object.assign({
30185
30185
  x: null !== (_b = textStyle.x) && void 0 !== _b ? _b : 0,
30186
30186
  y: null !== (_c = textStyle.y) && void 0 !== _c ? _c : 0,
@@ -30209,7 +30209,7 @@
30209
30209
  textConfig: []
30210
30210
  }, textStyle);
30211
30211
  this._mainTitle = group.createOrUpdateChild("mainTitle", attr, "richtext");
30212
- } else isValid$6(text) && (this._mainTitle = group.createOrUpdateChild("mainTitle", Object.assign(Object.assign({
30212
+ } else isValid$5(text) && (this._mainTitle = group.createOrUpdateChild("mainTitle", Object.assign(Object.assign({
30213
30213
  text: [text]
30214
30214
  }, textStyle), {
30215
30215
  maxLineWidth: null !== (_u = null == textStyle ? void 0 : textStyle.maxLineWidth) && void 0 !== _u ? _u : width,
@@ -30221,7 +30221,7 @@
30221
30221
  }), "wrapText"));
30222
30222
  const maintextHeight = this._mainTitle ? null === (_w = this._mainTitle) || void 0 === _w ? void 0 : _w.AABBBounds.height() : 0,
30223
30223
  maintextWidth = this._mainTitle ? null === (_x = this._mainTitle) || void 0 === _x ? void 0 : _x.AABBBounds.width() : 0;
30224
- if (!1 !== (null === (_y = this.attribute) || void 0 === _y ? void 0 : _y.visible) && !1 !== (null == subtextStyle ? void 0 : subtextStyle.visible)) if ("rich" === subtextType || isValid$6(subtextStyle.character)) {
30224
+ if (!1 !== (null === (_y = this.attribute) || void 0 === _y ? void 0 : _y.visible) && !1 !== (null == subtextStyle ? void 0 : subtextStyle.visible)) if ("rich" === subtextType || isValid$5(subtextStyle.character)) {
30225
30225
  const attr = Object.assign({
30226
30226
  x: null !== (_z = subtextStyle.x) && void 0 !== _z ? _z : 0,
30227
30227
  y: null !== (_0 = subtextStyle.y) && void 0 !== _0 ? _0 : 0,
@@ -30250,7 +30250,7 @@
30250
30250
  textConfig: []
30251
30251
  }, subtextStyle);
30252
30252
  this._subTitle = group.createOrUpdateChild("subTitle", attr, "richtext");
30253
- } else isValid$6(subtext) && (this._subTitle = group.createOrUpdateChild("subTitle", Object.assign(Object.assign({
30253
+ } else isValid$5(subtext) && (this._subTitle = group.createOrUpdateChild("subTitle", Object.assign(Object.assign({
30254
30254
  text: [subtext]
30255
30255
  }, subtextStyle), {
30256
30256
  maxLineWidth: null !== (_16 = null == subtextStyle ? void 0 : subtextStyle.maxLineWidth) && void 0 !== _16 ? _16 : width,
@@ -30264,22 +30264,22 @@
30264
30264
  subtextWidth = this._subTitle ? null === (_19 = this._subTitle) || void 0 === _19 ? void 0 : _19.AABBBounds.width() : 0;
30265
30265
  let titleWidth = Math.max(maintextWidth, subtextWidth),
30266
30266
  titleHeight = maintextHeight + (null !== (_20 = null == subtextStyle ? void 0 : subtextStyle.height) && void 0 !== _20 ? _20 : subtextHeight);
30267
- if (isValid$6(width) && (titleWidth = width, null === (_21 = this._mainTitle) || void 0 === _21 || _21.setAttribute("maxLineWidth", width), null === (_22 = this._subTitle) || void 0 === _22 || _22.setAttribute("maxLineWidth", width)), isValid$6(height) && (titleHeight = height), isValid$6(minWidth) && titleWidth < minWidth && (titleWidth = minWidth), isValid$6(maxWidth) && (null === (_23 = this._mainTitle) || void 0 === _23 || _23.setAttribute("maxLineWidth", maxWidth), null === (_24 = this._subTitle) || void 0 === _24 || _24.setAttribute("maxLineWidth", maxWidth), null === (_25 = this._mainTitle) || void 0 === _25 || _25.setAttribute("maxWidth", maxWidth), null === (_26 = this._subTitle) || void 0 === _26 || _26.setAttribute("maxWidth", maxWidth), titleWidth > maxWidth && (titleWidth = maxWidth)), isValid$6(minHeight) && titleHeight < minHeight && (titleHeight = minHeight), isValid$6(maxHeight) && (null === (_27 = this._mainTitle) || void 0 === _27 || _27.setAttribute("maxHeight", maxHeight), null === (_28 = this._subTitle) || void 0 === _28 || _28.setAttribute("maxHeight", maxHeight - maintextHeight), titleHeight > maxHeight && (titleHeight = maxHeight)), group.attribute.width = titleWidth, group.attribute.height = titleHeight, group.attribute.boundsPadding = parsedPadding, isValid$6(align) || isValid$6(null == textStyle ? void 0 : textStyle.align)) {
30267
+ if (isValid$5(width) && (titleWidth = width, null === (_21 = this._mainTitle) || void 0 === _21 || _21.setAttribute("maxLineWidth", width), null === (_22 = this._subTitle) || void 0 === _22 || _22.setAttribute("maxLineWidth", width)), isValid$5(height) && (titleHeight = height), isValid$5(minWidth) && titleWidth < minWidth && (titleWidth = minWidth), isValid$5(maxWidth) && (null === (_23 = this._mainTitle) || void 0 === _23 || _23.setAttribute("maxLineWidth", maxWidth), null === (_24 = this._subTitle) || void 0 === _24 || _24.setAttribute("maxLineWidth", maxWidth), null === (_25 = this._mainTitle) || void 0 === _25 || _25.setAttribute("maxWidth", maxWidth), null === (_26 = this._subTitle) || void 0 === _26 || _26.setAttribute("maxWidth", maxWidth), titleWidth > maxWidth && (titleWidth = maxWidth)), isValid$5(minHeight) && titleHeight < minHeight && (titleHeight = minHeight), isValid$5(maxHeight) && (null === (_27 = this._mainTitle) || void 0 === _27 || _27.setAttribute("maxHeight", maxHeight), null === (_28 = this._subTitle) || void 0 === _28 || _28.setAttribute("maxHeight", maxHeight - maintextHeight), titleHeight > maxHeight && (titleHeight = maxHeight)), group.attribute.width = titleWidth, group.attribute.height = titleHeight, group.attribute.boundsPadding = parsedPadding, isValid$5(align) || isValid$5(null == textStyle ? void 0 : textStyle.align)) {
30268
30268
  const mainTitleAlign = (null == textStyle ? void 0 : textStyle.align) ? null == textStyle ? void 0 : textStyle.align : align,
30269
30269
  mainTitleWidth = null !== (_29 = null == textStyle ? void 0 : textStyle.width) && void 0 !== _29 ? _29 : maintextWidth;
30270
30270
  "left" === mainTitleAlign ? (null === (_30 = this._mainTitle) || void 0 === _30 || _30.setAttribute("x", 0), null === (_31 = this._mainTitle) || void 0 === _31 || _31.setAttribute("textAlign", "left")) : "center" === mainTitleAlign ? (null === (_32 = this._mainTitle) || void 0 === _32 || _32.setAttribute("x", mainTitleWidth / 2), null === (_33 = this._mainTitle) || void 0 === _33 || _33.setAttribute("textAlign", "center")) : "right" === mainTitleAlign && (null === (_34 = this._mainTitle) || void 0 === _34 || _34.setAttribute("x", mainTitleWidth), null === (_35 = this._mainTitle) || void 0 === _35 || _35.setAttribute("textAlign", "right"));
30271
30271
  }
30272
- if (isValid$6(verticalAlign) || isValid$6(null == textStyle ? void 0 : textStyle.verticalAlign)) {
30272
+ if (isValid$5(verticalAlign) || isValid$5(null == textStyle ? void 0 : textStyle.verticalAlign)) {
30273
30273
  const mainTitleVerticalAlign = (null == textStyle ? void 0 : textStyle.verticalAlign) ? null == textStyle ? void 0 : textStyle.verticalAlign : verticalAlign,
30274
30274
  mainTitleHeight = (null == textStyle ? void 0 : textStyle.height) ? null == textStyle ? void 0 : textStyle.height : titleHeight;
30275
30275
  "top" === mainTitleVerticalAlign ? (null === (_36 = this._mainTitle) || void 0 === _36 || _36.setAttribute("y", 0), null === (_37 = this._mainTitle) || void 0 === _37 || _37.setAttribute("textBaseline", "top")) : "middle" === mainTitleVerticalAlign ? (null === (_38 = this._mainTitle) || void 0 === _38 || _38.setAttribute("y", mainTitleHeight / 2), null === (_39 = this._mainTitle) || void 0 === _39 || _39.setAttribute("textBaseline", "middle")) : "bottom" === mainTitleVerticalAlign && (null === (_40 = this._mainTitle) || void 0 === _40 || _40.setAttribute("y", mainTitleHeight), null === (_41 = this._mainTitle) || void 0 === _41 || _41.setAttribute("textBaseline", "bottom"));
30276
30276
  }
30277
- if (isValid$6(align) || isValid$6(null == subtextStyle ? void 0 : subtextStyle.align)) {
30277
+ if (isValid$5(align) || isValid$5(null == subtextStyle ? void 0 : subtextStyle.align)) {
30278
30278
  const subTitleAlign = (null == subtextStyle ? void 0 : subtextStyle.align) ? null == subtextStyle ? void 0 : subtextStyle.align : align,
30279
30279
  subTitleWidth = null !== (_42 = null == subtextStyle ? void 0 : subtextStyle.width) && void 0 !== _42 ? _42 : subtextWidth;
30280
30280
  "left" === subTitleAlign ? (null === (_43 = this._subTitle) || void 0 === _43 || _43.setAttribute("x", 0), null === (_44 = this._subTitle) || void 0 === _44 || _44.setAttribute("textAlign", "left")) : "center" === subTitleAlign ? (null === (_45 = this._subTitle) || void 0 === _45 || _45.setAttribute("x", subTitleWidth / 2), null === (_46 = this._subTitle) || void 0 === _46 || _46.setAttribute("textAlign", "center")) : "right" === subTitleAlign && (null === (_47 = this._subTitle) || void 0 === _47 || _47.setAttribute("x", subTitleWidth), null === (_48 = this._subTitle) || void 0 === _48 || _48.setAttribute("textAlign", "right"));
30281
30281
  }
30282
- if (isValid$6(verticalAlign) || isValid$6(null == textStyle ? void 0 : textStyle.verticalAlign)) {
30282
+ if (isValid$5(verticalAlign) || isValid$5(null == textStyle ? void 0 : textStyle.verticalAlign)) {
30283
30283
  const subTitleVerticalAlign = (null == subtextStyle ? void 0 : subtextStyle.verticalAlign) ? null == subtextStyle ? void 0 : subtextStyle.verticalAlign : verticalAlign,
30284
30284
  subTitleYStart = maintextHeight,
30285
30285
  subTitleHeight = null !== (_49 = null == subtextStyle ? void 0 : subtextStyle.height) && void 0 !== _49 ? _49 : 0;
@@ -32603,7 +32603,7 @@
32603
32603
  labelStyle: labelStyle
32604
32604
  } = op;
32605
32605
  let scaleTicks;
32606
- if (isValid$6(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$6(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if ("d3" === op.tickMode) {
32606
+ if (isValid$5(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$5(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if ("d3" === op.tickMode) {
32607
32607
  const count = isFunction$1(tickCount) ? tickCount({
32608
32608
  axisLength: rangeSize,
32609
32609
  labelStyle: labelStyle
@@ -32678,7 +32678,7 @@
32678
32678
  rangeSize = scale.calculateWholeRangeSize();
32679
32679
  if (rangeSize < 2) return op.labelLastVisible ? convertDomainToTickData([domain[domain.length - 1]]) : convertDomainToTickData([domain[0]]);
32680
32680
  let scaleTicks;
32681
- if (isValid$6(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$6(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$6(tickCount)) {
32681
+ if (isValid$5(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$5(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$5(tickCount)) {
32682
32682
  const count = isFunction$1(tickCount) ? tickCount({
32683
32683
  axisLength: rangeSize,
32684
32684
  labelStyle: labelStyle
@@ -32782,7 +32782,7 @@
32782
32782
  radius = null == getRadius ? void 0 : getRadius();
32783
32783
  if (!radius) return convertDomainToTickData(scale.domain());
32784
32784
  let scaleTicks;
32785
- if (isValid$6(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$6(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$6(tickCount)) {
32785
+ if (isValid$5(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$5(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$5(tickCount)) {
32786
32786
  const range = scale.range(),
32787
32787
  rangeSize = Math.abs(range[range.length - 1] - range[0]),
32788
32788
  count = isFunction$1(tickCount) ? tickCount({
@@ -32898,10 +32898,10 @@
32898
32898
  if (isNil$5(this.domain?.min) && isNil$5(this.domain?.max)) {
32899
32899
  this.nice && this._scale.nice();
32900
32900
  }
32901
- else if (isValid$6(this.domain?.min) && isNil$5(this.domain?.max)) {
32901
+ else if (isValid$5(this.domain?.min) && isNil$5(this.domain?.max)) {
32902
32902
  this.nice && this._scale.niceMax();
32903
32903
  }
32904
- else if (isNil$5(this.domain?.min) && isValid$6(this.domain?.max)) {
32904
+ else if (isNil$5(this.domain?.min) && isValid$5(this.domain?.max)) {
32905
32905
  this.nice && this._scale.niceMin();
32906
32906
  }
32907
32907
  }
@@ -32913,10 +32913,10 @@
32913
32913
  if (isNil$5(this.domain?.min) && isNil$5(this.domain?.max)) {
32914
32914
  this.nice && this._scale.nice(tickCount);
32915
32915
  }
32916
- else if (isValid$6(this.domain?.min) && isNil$5(this.domain?.max)) {
32916
+ else if (isValid$5(this.domain?.min) && isNil$5(this.domain?.max)) {
32917
32917
  this.nice && this._scale.niceMax(tickCount);
32918
32918
  }
32919
- else if (isNil$5(this.domain?.min) && isValid$6(this.domain?.max)) {
32919
+ else if (isNil$5(this.domain?.min) && isValid$5(this.domain?.max)) {
32920
32920
  this.nice && this._scale.niceMin(tickCount);
32921
32921
  }
32922
32922
  else {
@@ -32947,10 +32947,10 @@
32947
32947
  }
32948
32948
  const domainMin = domain[0];
32949
32949
  const domainMax = domain[domain.length - 1];
32950
- if (isValid$6(this.expand.min)) {
32950
+ if (isValid$5(this.expand.min)) {
32951
32951
  domain[0] = domainMin - (domainMax - domainMin) * this.expand.min;
32952
32952
  }
32953
- if (isValid$6(this.expand.max)) {
32953
+ if (isValid$5(this.expand.max)) {
32954
32954
  domain[domain.length - 1] = domainMax + (domainMax - domainMin) * this.expand.max;
32955
32955
  }
32956
32956
  }
@@ -32988,10 +32988,10 @@
32988
32988
  if (isNil$5(this.domain?.min) && isNil$5(this.domain?.max)) {
32989
32989
  this._scale.nice(tickCount);
32990
32990
  }
32991
- else if (isValid$6(this.domain?.min) && isNil$5(this.domain?.max)) {
32991
+ else if (isValid$5(this.domain?.min) && isNil$5(this.domain?.max)) {
32992
32992
  this._scale.niceMax(tickCount);
32993
32993
  }
32994
- else if (isNil$5(this.domain?.min) && isValid$6(this.domain?.max)) {
32994
+ else if (isNil$5(this.domain?.min) && isValid$5(this.domain?.max)) {
32995
32995
  this._scale.niceMin(tickCount);
32996
32996
  }
32997
32997
  else {
@@ -33036,8 +33036,8 @@
33036
33036
  return;
33037
33037
  }
33038
33038
  const { min, max } = this.domain;
33039
- isValid$6(min) && (domain[0] = min);
33040
- isValid$6(max) && (domain[1] = max);
33039
+ isValid$5(min) && (domain[0] = min);
33040
+ isValid$5(max) && (domain[1] = max);
33041
33041
  }
33042
33042
  setZero(zero) {
33043
33043
  if (this.zero !== zero) {
@@ -33474,7 +33474,7 @@
33474
33474
  function isFieldAssessor(field) {
33475
33475
  if (obj.isObject(field)) {
33476
33476
  const a = field;
33477
- if (isValid$6(a.get) && isValid$6(a.set)) {
33477
+ if (isValid$5(a.get) && isValid$5(a.set)) {
33478
33478
  return true;
33479
33479
  }
33480
33480
  }
@@ -33529,7 +33529,7 @@
33529
33529
  return index;
33530
33530
  }
33531
33531
  const mapIndex = sortedIndexMap[index];
33532
- return isValid$6(mapIndex) ? mapIndex : index;
33532
+ return isValid$5(mapIndex) ? mapIndex : index;
33533
33533
  }
33534
33534
  class DataSource extends EventTarget$2 {
33535
33535
  _get;
@@ -33547,7 +33547,7 @@
33547
33547
  return EVENT_TYPE;
33548
33548
  }
33549
33549
  treeDataHierarchyState = new Map();
33550
- changeValuesMap = [];
33550
+ beforeChangedRecordsMap = [];
33551
33551
  constructor(obj, pagination, hierarchyExpandLevel) {
33552
33552
  super();
33553
33553
  this._get = obj?.get.bind(obj) || undefined;
@@ -33710,7 +33710,7 @@
33710
33710
  this.lastOrder &&
33711
33711
  this.lastOrder !== 'normal' &&
33712
33712
  this.lastOrderField &&
33713
- sort(index => isValid$6(subNodeSortedIndexArray[index])
33713
+ sort(index => isValid$5(subNodeSortedIndexArray[index])
33714
33714
  ? subNodeSortedIndexArray[index]
33715
33715
  : (subNodeSortedIndexArray[index] = index), (index, rel) => {
33716
33716
  subNodeSortedIndexArray[index] = rel;
@@ -33737,12 +33737,12 @@
33737
33737
  }
33738
33738
  if (index >= 0) {
33739
33739
  const dataIndex = this.getIndexKey(index);
33740
- if (!this.changeValuesMap[dataIndex]) {
33740
+ if (!this.beforeChangedRecordsMap[dataIndex]) {
33741
33741
  const originRecord = this.getOriginalRecord(dataIndex);
33742
- this.changeValuesMap[dataIndex] = cloneDeep$1(originRecord);
33742
+ this.beforeChangedRecordsMap[dataIndex] = cloneDeep$1(originRecord);
33743
33743
  }
33744
33744
  if (typeof field === 'string' || typeof field === 'number') {
33745
- const beforeChangedValue = this.changeValuesMap[dataIndex][field];
33745
+ const beforeChangedValue = this.beforeChangedRecordsMap[dataIndex][field];
33746
33746
  const record = this.getOriginalRecord(dataIndex);
33747
33747
  if (typeof beforeChangedValue === 'number' && isAllDigits(value)) {
33748
33748
  record[field] = parseFloat(value);
@@ -33788,7 +33788,7 @@
33788
33788
  }
33789
33789
  }
33790
33790
  else {
33791
- sort(index => (isValid$6(sortedIndexArray[index]) ? sortedIndexArray[index] : (sortedIndexArray[index] = index)), (index, rel) => {
33791
+ sort(index => (isValid$5(sortedIndexArray[index]) ? sortedIndexArray[index] : (sortedIndexArray[index] = index)), (index, rel) => {
33792
33792
  sortedIndexArray[index] = rel;
33793
33793
  }, this._sourceLength, orderFn, order, index => this.getOriginalField(index, field));
33794
33794
  }
@@ -33875,8 +33875,8 @@
33875
33875
  });
33876
33876
  }
33877
33877
  getRawRecord(dataIndex) {
33878
- if (this.changeValuesMap?.[dataIndex]) {
33879
- return this.changeValuesMap[dataIndex];
33878
+ if (this.beforeChangedRecordsMap?.[dataIndex]) {
33879
+ return this.beforeChangedRecordsMap[dataIndex];
33880
33880
  }
33881
33881
  return getValue(this._get(dataIndex), (val) => {
33882
33882
  this.recordPromiseCallBack(dataIndex, val);
@@ -33920,10 +33920,6 @@
33920
33920
  length: 0
33921
33921
  });
33922
33922
  }
33923
- function isAllDigits(str) {
33924
- const pattern = /^-?\d+(\.\d+)?$/;
33925
- return pattern.test(str);
33926
- }
33927
33923
 
33928
33924
  function _setFieldCache(fCache, index, field, value) {
33929
33925
  const recCache = fCache[index] || (fCache[index] = new Map());
@@ -34468,7 +34464,7 @@
34468
34464
  _dealWithUpdateDataSource(table, () => {
34469
34465
  const data = records;
34470
34466
  table.internalProps.records = records;
34471
- const newDataSource = (table.internalProps.dataSource = CachedDataSource.ofArray(data, table.pagination, table.options.hierarchyExpandLevel ?? (table.hasHierarchyTreeHeader?.() ? 1 : undefined)));
34467
+ const newDataSource = (table.internalProps.dataSource = CachedDataSource.ofArray(data, table.pagination, table.options.hierarchyExpandLevel ?? (table._hasHierarchyTreeHeader?.() ? 1 : undefined)));
34472
34468
  table.addReleaseObj(newDataSource);
34473
34469
  });
34474
34470
  }
@@ -34885,12 +34881,12 @@
34885
34881
  }
34886
34882
  }
34887
34883
  const rect = element;
34888
- if (isValid$6(rect.x)) {
34884
+ if (isValid$5(rect.x)) {
34889
34885
  rect.x = isString$4(rect.x)
34890
34886
  ? transformString(rect.x, width - borderLineWidths[1])
34891
34887
  : Number(rect.x);
34892
34888
  }
34893
- if (isValid$6(rect.y)) {
34889
+ if (isValid$5(rect.y)) {
34894
34890
  rect.y = isString$4(rect.y)
34895
34891
  ? transformString(rect.y, height - borderLineWidths[2])
34896
34892
  : Number(rect.y);
@@ -35492,7 +35488,7 @@
35492
35488
  }
35493
35489
 
35494
35490
  function getProp(name, cellStyle, col, row, _table) {
35495
- const prop = cellStyle && isValid$6(cellStyle[name]) ? cellStyle[name] : null;
35491
+ const prop = cellStyle && isValid$5(cellStyle[name]) ? cellStyle[name] : null;
35496
35492
  if (typeof prop === 'function') {
35497
35493
  const arg = {
35498
35494
  col,
@@ -35507,7 +35503,7 @@
35507
35503
  return prop;
35508
35504
  }
35509
35505
  function getFunctionalProp(name, cellStyle, col, row, _table) {
35510
- const prop = cellStyle && isValid$6(cellStyle[name]) ? cellStyle[name] : null;
35506
+ const prop = cellStyle && isValid$5(cellStyle[name]) ? cellStyle[name] : null;
35511
35507
  if (typeof prop === 'function') {
35512
35508
  const arg = {
35513
35509
  col,
@@ -35526,7 +35522,7 @@
35526
35522
  function createImageCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
35527
35523
  const headerStyle = table._getCellStyle(col, row);
35528
35524
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
35529
- if (isValid$6(functionalPadding)) {
35525
+ if (isValid$5(functionalPadding)) {
35530
35526
  padding = functionalPadding;
35531
35527
  }
35532
35528
  if (cellTheme?.text?.textAlign) {
@@ -36205,13 +36201,13 @@
36205
36201
  for (let j = 0; j < values.length; j++) {
36206
36202
  if (domain[i] == values[j]) {
36207
36203
  const data = dataValue[j];
36208
- if (!isValid$6(data[xField]) || !isValid$6(data[yField])) {
36204
+ if (!isValid$5(data[xField]) || !isValid$5(data[yField])) {
36209
36205
  break;
36210
36206
  }
36211
36207
  items.push({
36212
36208
  x: left + xScale.scale(data[xField]),
36213
36209
  y: bottom - yScale.scale(data[yField]),
36214
- defined: isValid$6(data[yField])
36210
+ defined: isValid$5(data[yField])
36215
36211
  });
36216
36212
  dataItems.push(data);
36217
36213
  valid = true;
@@ -36234,7 +36230,7 @@
36234
36230
  items.push({
36235
36231
  x: left + xScale.scale(xField ? data[xField] : i),
36236
36232
  y: bottom - yScale.scale(yField ? data[yField] : data),
36237
- defined: isValid$6(yField ? data[yField] : data),
36233
+ defined: isValid$5(yField ? data[yField] : data),
36238
36234
  rawData: data
36239
36235
  });
36240
36236
  dataItems.push(data);
@@ -36455,7 +36451,7 @@
36455
36451
  const ClassType = registerCharts[chartModule];
36456
36452
  const headerStyle = table._getCellStyle(col, row);
36457
36453
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
36458
- if (isValid$6(functionalPadding)) {
36454
+ if (isValid$5(functionalPadding)) {
36459
36455
  padding = functionalPadding;
36460
36456
  }
36461
36457
  if (!cellGroup) {
@@ -36708,7 +36704,7 @@
36708
36704
  let absoluteLeftIconWidth = 0;
36709
36705
  let absoluteRightIconWidth = 0;
36710
36706
  if (!Array.isArray(icons) || icons.length === 0) {
36711
- if (isValid$6(textStr)) {
36707
+ if (isValid$5(textStr)) {
36712
36708
  const text = convertInternal(textStr).replace(/\r?\n/g, '\n').replace(/\r/g, '\n').split('\n');
36713
36709
  const hierarchyOffset = getHierarchyOffset(cellGroup.col, cellGroup.row, table);
36714
36710
  const attribute = {
@@ -37164,7 +37160,7 @@
37164
37160
  function createCellGroup(table, value, columnGroup, xOrigin, yOrigin, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme) {
37165
37161
  const headerStyle = table._getCellStyle(col, row);
37166
37162
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
37167
- if (isValid$6(functionalPadding)) {
37163
+ if (isValid$5(functionalPadding)) {
37168
37164
  padding = functionalPadding;
37169
37165
  }
37170
37166
  if (cellTheme?.text?.textAlign) {
@@ -37232,7 +37228,7 @@
37232
37228
  function createVideoCellGroup(columnGroup, xOrigin, yOrigin, col, row, width, height, keepAspectRatio, imageAutoSizing, padding, textAlign, textBaseline, table, cellTheme) {
37233
37229
  const headerStyle = table._getCellStyle(col, row);
37234
37230
  const functionalPadding = getFunctionalProp('padding', headerStyle, col, row, table);
37235
- if (isValid$6(functionalPadding)) {
37231
+ if (isValid$5(functionalPadding)) {
37236
37232
  padding = functionalPadding;
37237
37233
  }
37238
37234
  if (cellTheme?.text?.textAlign) {
@@ -37950,10 +37946,10 @@
37950
37946
  if (axisOption?.expand) {
37951
37947
  const domainMin = min;
37952
37948
  const domainMax = max;
37953
- if (isValid$6(axisOption.expand.min)) {
37949
+ if (isValid$5(axisOption.expand.min)) {
37954
37950
  min = domainMin - (domainMax - domainMin) * axisOption.expand.min;
37955
37951
  }
37956
- if (isValid$6(axisOption.expand.max)) {
37952
+ if (isValid$5(axisOption.expand.max)) {
37957
37953
  max = domainMax + (domainMax - domainMin) * axisOption.expand.max;
37958
37954
  }
37959
37955
  }
@@ -37992,10 +37988,10 @@
37992
37988
  if (isNil$5(axisOption.min) && isNil$5(axisOption.max)) {
37993
37989
  scale.nice(tickCount);
37994
37990
  }
37995
- else if (isValid$6(axisOption.min) && isNil$5(axisOption.max)) {
37991
+ else if (isValid$5(axisOption.min) && isNil$5(axisOption.max)) {
37996
37992
  scale.niceMax(tickCount);
37997
37993
  }
37998
- else if (isNil$5(axisOption.min) && isValid$6(axisOption.max)) {
37994
+ else if (isNil$5(axisOption.min) && isValid$5(axisOption.max)) {
37999
37995
  scale.niceMin(tickCount);
38000
37996
  }
38001
37997
  }
@@ -38473,10 +38469,10 @@
38473
38469
  if (axisOption) {
38474
38470
  const { seriesIndex, seriesId } = axisOption;
38475
38471
  let seriesIndice;
38476
- if (isValid$6(seriesId) && isArray$5(spec.series)) {
38472
+ if (isValid$5(seriesId) && isArray$5(spec.series)) {
38477
38473
  seriesIndice = (isArray$5(seriesId) ? seriesId : [seriesId]).map(id => spec.series.findIndex((s) => s.id === id));
38478
38474
  }
38479
- else if (isValid$6(seriesIndex) && isArray$5(spec.series)) {
38475
+ else if (isValid$5(seriesIndex) && isArray$5(spec.series)) {
38480
38476
  seriesIndice = seriesIndex;
38481
38477
  }
38482
38478
  return {
@@ -40704,7 +40700,7 @@
40704
40700
  let batchRenderChartCount = 5;
40705
40701
  let isHandlingChartQueue = false;
40706
40702
  function setBatchRenderChartCount(count) {
40707
- if (isValid$6(count)) {
40703
+ if (isValid$5(count)) {
40708
40704
  batchRenderChartCount = count;
40709
40705
  }
40710
40706
  }
@@ -40735,6 +40731,8 @@
40735
40731
  y1: viewBox.y1 - chart.getRootNode().table.scrollTop,
40736
40732
  y2: viewBox.y2 - chart.getRootNode().table.scrollTop
40737
40733
  }, false, false);
40734
+ const table = chart.getRootNode().table;
40735
+ table.internalProps.layoutMap?.updateDataStateToActiveChartInstance?.(chartInstance);
40738
40736
  if (typeof dataId === 'string') {
40739
40737
  chartInstance.updateDataSync(dataId, data ?? []);
40740
40738
  }
@@ -40950,10 +40948,10 @@
40950
40948
  function getCellHoverColor(cellGroup, table) {
40951
40949
  let colorKey;
40952
40950
  if (cellGroup.role === 'cell' &&
40953
- isValid$6(cellGroup.mergeStartCol) &&
40954
- isValid$6(cellGroup.mergeStartRow) &&
40955
- isValid$6(cellGroup.mergeEndCol) &&
40956
- isValid$6(cellGroup.mergeEndRow)) {
40951
+ isValid$5(cellGroup.mergeStartCol) &&
40952
+ isValid$5(cellGroup.mergeStartRow) &&
40953
+ isValid$5(cellGroup.mergeEndCol) &&
40954
+ isValid$5(cellGroup.mergeEndRow)) {
40957
40955
  for (let col = cellGroup.mergeStartCol; col <= cellGroup.mergeEndCol; col++) {
40958
40956
  for (let row = cellGroup.mergeStartRow; row <= cellGroup.mergeEndRow; row++) {
40959
40957
  const key = isCellHover(table.stateManager, col, row);
@@ -43926,12 +43924,14 @@
43926
43924
  scene.leftBottomCornerGroup.appendChild(column);
43927
43925
  scene.leftBottomCornerGroup.setAttribute('width', scene.leftBottomCornerGroup.attribute.width + column.attribute.width);
43928
43926
  scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width - column.attribute.width);
43929
- column.forEachChildren((child) => {
43930
- child.setAttributes({
43931
- stroke: false,
43932
- fill: false
43927
+ if (scene.table.isPivotChart()) {
43928
+ column.forEachChildren((child) => {
43929
+ child.setAttributes({
43930
+ stroke: false,
43931
+ fill: false
43932
+ });
43933
43933
  });
43934
- });
43934
+ }
43935
43935
  }
43936
43936
  }
43937
43937
  function moveColumnFromLeftBottomCornerToBottom(scene) {
@@ -43942,15 +43942,17 @@
43942
43942
  insertBefore(scene.bottomFrozenGroup, column, scene.bottomFrozenGroup.firstChild);
43943
43943
  scene.bottomFrozenGroup.setAttribute('width', scene.bottomFrozenGroup.attribute.width + column.attribute.width);
43944
43944
  scene.leftBottomCornerGroup.setAttribute('width', scene.leftBottomCornerGroup.attribute.width - column.attribute.width);
43945
- column.forEachChildren((child) => {
43946
- const cellStyle = scene.table._getCellStyle(child.col, child.row);
43947
- const range = scene.table.getCellRange(child.col, child.row);
43948
- const cellTheme = getStyleTheme(cellStyle, scene.table, range ? range.start.col : child.col, range ? range.start.row : child.row, getProp).theme;
43949
- child.setAttributes({
43950
- fill: cellTheme?.group?.fill ?? undefined,
43951
- stroke: cellTheme?.group?.stroke ?? undefined
43945
+ if (scene.table.isPivotChart()) {
43946
+ column.forEachChildren((child) => {
43947
+ const cellStyle = scene.table._getCellStyle(child.col, child.row);
43948
+ const range = scene.table.getCellRange(child.col, child.row);
43949
+ const cellTheme = getStyleTheme(cellStyle, scene.table, range ? range.start.col : child.col, range ? range.start.row : child.row, getProp).theme;
43950
+ child.setAttributes({
43951
+ fill: cellTheme?.group?.fill ?? undefined,
43952
+ stroke: cellTheme?.group?.stroke ?? undefined
43953
+ });
43952
43954
  });
43953
- });
43955
+ }
43954
43956
  }
43955
43957
  }
43956
43958
  function dealRightFrozen(distRightFrozenCol, scene) {
@@ -44251,33 +44253,6 @@
44251
44253
  });
44252
44254
  }
44253
44255
 
44254
- function createCornerCell(cellGroup, frameTheme) {
44255
- const { bgColor, borderColor, borderLineWidth, borderLineDash } = frameTheme;
44256
- const rectAttributes = {
44257
- x: 0,
44258
- y: 0,
44259
- width: 0,
44260
- height: 0,
44261
- visible: false,
44262
- pickable: true,
44263
- fill: bgColor
44264
- };
44265
- rectAttributes.stroke = getStroke(borderColor, undefined);
44266
- rectAttributes.lineWidth = borderLineWidth;
44267
- borderLineDash && (rectAttributes.lineDash = borderLineDash);
44268
- rectAttributes.lineCap = 'square';
44269
- if (Array.isArray(borderColor)) {
44270
- rectAttributes.strokeArrayColor = getQuadProps(borderColor);
44271
- }
44272
- if (Array.isArray(borderLineWidth)) {
44273
- rectAttributes.strokeArrayWidth = getQuadProps(borderLineWidth);
44274
- rectAttributes.lineWidth = 1;
44275
- }
44276
- cellGroup.setAttributes(rectAttributes);
44277
- cellGroup.role = 'corner-frozen';
44278
- return cellGroup;
44279
- }
44280
-
44281
44256
  function initSceneGraph(scene) {
44282
44257
  const width = scene.table.tableNoFrameWidth;
44283
44258
  const height = scene.table.tableNoFrameHeight;
@@ -44313,11 +44288,6 @@
44313
44288
  const leftBottomCornerGroup = createContainerGroup(0, 0);
44314
44289
  leftBottomCornerGroup.role = 'corner-left-bottom-header';
44315
44290
  scene.leftBottomCornerGroup = leftBottomCornerGroup;
44316
- if (scene.table.isPivotChart()) {
44317
- createCornerCell(rightTopCornerGroup, scene.table.theme.cornerRightTopCellStyle || scene.table.theme.cornerHeaderStyle);
44318
- createCornerCell(leftBottomCornerGroup, scene.table.theme.cornerLeftBottomCellStyle || scene.table.theme.cornerHeaderStyle);
44319
- createCornerCell(rightBottomCornerGroup, scene.table.theme.cornerRightBottomCellStyle || scene.table.theme.cornerHeaderStyle);
44320
- }
44321
44291
  scene.tableGroup.addChild(bodyGroup);
44322
44292
  scene.tableGroup.addChild(rowHeaderGroup);
44323
44293
  scene.tableGroup.addChild(bottomFrozenGroup);
@@ -44607,10 +44577,10 @@
44607
44577
  }
44608
44578
  function resetSortIcon(oldSortCol, oldSortRow, iconConfig, scene) {
44609
44579
  const oldSortCell = scene.getCell(oldSortCol, oldSortRow);
44610
- if (isValid$6(oldSortCell.mergeStartCol) &&
44611
- isValid$6(oldSortCell.mergeStartRow) &&
44612
- isValid$6(oldSortCell.mergeEndCol) &&
44613
- isValid$6(oldSortCell.mergeEndRow)) {
44580
+ if (isValid$5(oldSortCell.mergeStartCol) &&
44581
+ isValid$5(oldSortCell.mergeStartRow) &&
44582
+ isValid$5(oldSortCell.mergeEndCol) &&
44583
+ isValid$5(oldSortCell.mergeEndRow)) {
44614
44584
  for (let col = oldSortCell.mergeStartCol; col <= oldSortCell.mergeEndCol; col++) {
44615
44585
  for (let row = oldSortCell.mergeStartRow; row <= oldSortCell.mergeEndRow; row++) {
44616
44586
  let oldIconMark;
@@ -44705,10 +44675,10 @@
44705
44675
  }
44706
44676
  function updateCellRangeIcon(col, row, filter, dealer, scene) {
44707
44677
  const cellGroup = scene.getCell(col, row);
44708
- if (isValid$6(cellGroup.mergeStartCol) &&
44709
- isValid$6(cellGroup.mergeStartRow) &&
44710
- isValid$6(cellGroup.mergeEndCol) &&
44711
- isValid$6(cellGroup.mergeEndRow)) {
44678
+ if (isValid$5(cellGroup.mergeStartCol) &&
44679
+ isValid$5(cellGroup.mergeStartRow) &&
44680
+ isValid$5(cellGroup.mergeEndCol) &&
44681
+ isValid$5(cellGroup.mergeEndRow)) {
44712
44682
  for (let col = cellGroup.mergeStartCol; col <= cellGroup.mergeEndCol; col++) {
44713
44683
  for (let row = cellGroup.mergeStartRow; row <= cellGroup.mergeEndRow; row++) {
44714
44684
  updateCellGroupIcon(scene.getCell(col, row), filter, dealer);
@@ -44720,6 +44690,33 @@
44720
44690
  }
44721
44691
  }
44722
44692
 
44693
+ function createCornerCell(cellGroup, frameTheme) {
44694
+ const { bgColor, borderColor, borderLineWidth, borderLineDash } = frameTheme;
44695
+ const rectAttributes = {
44696
+ x: 0,
44697
+ y: 0,
44698
+ width: 0,
44699
+ height: 0,
44700
+ visible: false,
44701
+ pickable: true,
44702
+ fill: bgColor
44703
+ };
44704
+ rectAttributes.stroke = getStroke(borderColor, undefined);
44705
+ rectAttributes.lineWidth = borderLineWidth;
44706
+ borderLineDash && (rectAttributes.lineDash = borderLineDash);
44707
+ rectAttributes.lineCap = 'square';
44708
+ if (Array.isArray(borderColor)) {
44709
+ rectAttributes.strokeArrayColor = getQuadProps(borderColor);
44710
+ }
44711
+ if (Array.isArray(borderLineWidth)) {
44712
+ rectAttributes.strokeArrayWidth = getQuadProps(borderLineWidth);
44713
+ rectAttributes.lineWidth = 1;
44714
+ }
44715
+ cellGroup.setAttributes(rectAttributes);
44716
+ cellGroup.role = 'corner-frozen';
44717
+ return cellGroup;
44718
+ }
44719
+
44723
44720
  loadPoptip();
44724
44721
  container.load(splitModule);
44725
44722
  container.load(textMeasureModule);
@@ -44949,6 +44946,11 @@
44949
44946
  this.frozenRowCount = this.table.columnHeaderLevelCount;
44950
44947
  this.proxy = new SceneProxy(this.table);
44951
44948
  createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, undefined, true);
44949
+ if (this.table.isPivotChart()) {
44950
+ createCornerCell(this.rightTopCornerGroup, this.table.theme.cornerRightTopCellStyle || this.table.theme.cornerHeaderStyle || {});
44951
+ createCornerCell(this.leftBottomCornerGroup, this.table.theme.cornerLeftBottomCellStyle || this.table.theme.cornerHeaderStyle || {});
44952
+ createCornerCell(this.rightBottomCornerGroup, this.table.theme.cornerRightBottomCellStyle || this.table.theme.cornerHeaderStyle || {});
44953
+ }
44952
44954
  this.proxy.createGroupForFirstScreen(this.cornerHeaderGroup, this.colHeaderGroup, this.rowHeaderGroup, this.rightFrozenGroup, this.bottomFrozenGroup, this.bodyGroup, 0, 0);
44953
44955
  this.afterScenegraphCreated();
44954
44956
  }
@@ -45780,14 +45782,6 @@
45780
45782
  }
45781
45783
  return 0;
45782
45784
  }
45783
- updateCellValue(col, row, value) {
45784
- const cellGroup = this.getCell(col, row);
45785
- const text = cellGroup.getChildByName('text', true);
45786
- if (text) {
45787
- const textAttributeStr = isArray$5(text.attribute.text) ? [value] : value;
45788
- text.setAttribute('text', textAttributeStr);
45789
- }
45790
- }
45791
45785
  }
45792
45786
 
45793
45787
  function checkCellInSelect(col, row, cellRanges) {
@@ -45813,10 +45807,10 @@
45813
45807
 
45814
45808
  function updateCell(scenegraph, col, row) {
45815
45809
  const cellGroup = scenegraph.getCell(col, row);
45816
- if (isValid$6(cellGroup.mergeStartCol) &&
45817
- isValid$6(cellGroup.mergeStartRow) &&
45818
- isValid$6(cellGroup.mergeEndCol) &&
45819
- isValid$6(cellGroup.mergeEndRow)) {
45810
+ if (isValid$5(cellGroup.mergeStartCol) &&
45811
+ isValid$5(cellGroup.mergeStartRow) &&
45812
+ isValid$5(cellGroup.mergeEndCol) &&
45813
+ isValid$5(cellGroup.mergeEndRow)) {
45820
45814
  for (let col = cellGroup.mergeStartCol; col <= cellGroup.mergeEndCol; col++) {
45821
45815
  for (let row = cellGroup.mergeStartRow; row <= cellGroup.mergeEndRow; row++) {
45822
45816
  const mergeCell = scenegraph.getCell(col, row);
@@ -47180,7 +47174,7 @@
47180
47174
  row = cellAddress.row;
47181
47175
  }
47182
47176
  }
47183
- if (isValid$6(col) && isValid$6(row) && this.table.isCellRangeEqual(colNow, rowNow, col, row)) {
47177
+ if (isValid$5(col) && isValid$5(row) && this.table.isCellRangeEqual(colNow, rowNow, col, row)) {
47184
47178
  const headerC = this.table._getHeaderLayoutMap(col ?? colNow, row ?? rowNow);
47185
47179
  const dropDownMenu = headerC.dropDownMenu || this.table.globalDropDownMenu;
47186
47180
  if (dropDownMenu) {
@@ -47291,13 +47285,13 @@
47291
47285
  }
47292
47286
  syncCheckedState(col, row, field, checked) {
47293
47287
  if (this.table.isHeader(col, row)) {
47294
- if (isValid$6(this.headerCheckedState[field])) {
47288
+ if (isValid$5(this.headerCheckedState[field])) {
47295
47289
  return this.headerCheckedState[field];
47296
47290
  }
47297
47291
  else if (typeof checked === 'function') {
47298
47292
  return undefined;
47299
47293
  }
47300
- else if (isValid$6(checked)) {
47294
+ else if (isValid$5(checked)) {
47301
47295
  this.headerCheckedState[field] = checked;
47302
47296
  }
47303
47297
  else if (this.checkedState?.length > 0) {
@@ -47309,7 +47303,7 @@
47309
47303
  const recordIndex = this.table.getRecordIndexByCell(col, row);
47310
47304
  if (recordIndex >= 0) {
47311
47305
  const dataIndex = this.table.dataSource.getIndexKey(recordIndex);
47312
- if (isValid$6(this.checkedState[dataIndex]?.[field])) {
47306
+ if (isValid$5(this.checkedState[dataIndex]?.[field])) {
47313
47307
  return this.checkedState[dataIndex][field];
47314
47308
  }
47315
47309
  if (this.checkedState[dataIndex]) {
@@ -47713,8 +47707,8 @@
47713
47707
  }
47714
47708
  if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL)) {
47715
47709
  if (cellGoup?.role === 'cell' &&
47716
- isValid$6(cellGoup.col) &&
47717
- isValid$6(cellGoup.row) &&
47710
+ isValid$5(cellGoup.col) &&
47711
+ isValid$5(cellGoup.row) &&
47718
47712
  (cellGoup.col !== table.stateManager.hover.cellPos.col || cellGoup.row !== table.stateManager.hover.cellPos.row)) {
47719
47713
  table.fireListeners(TABLE_EVENT_TYPE.MOUSEENTER_CELL, {
47720
47714
  col: cellGoup.col,
@@ -48355,7 +48349,7 @@
48355
48349
  handler.on(table.getElement(), 'copy', (e) => {
48356
48350
  if (table.keyboardOptions?.copySelected) {
48357
48351
  const data = table.getCopyValue();
48358
- if (isValid$6(data)) {
48352
+ if (isValid$5(data)) {
48359
48353
  e.preventDefault();
48360
48354
  if (browser.IE) {
48361
48355
  window.clipboardData.setData('Text', data);
@@ -49289,7 +49283,7 @@
49289
49283
  row = cellAddress.row;
49290
49284
  }
49291
49285
  }
49292
- if (isValid$6(col) && isValid$6(row) && cellInRange(cellRange, col, row)) {
49286
+ if (isValid$5(col) && isValid$5(row) && cellInRange(cellRange, col, row)) {
49293
49287
  if (menuKeyCurrent === menuKey) {
49294
49288
  return true;
49295
49289
  }
@@ -51176,7 +51170,7 @@
51176
51170
  attrs.pager = pager;
51177
51171
  if (background.visible && !isEmpty(background.style)) {
51178
51172
  merge$1(attrs, background.style);
51179
- if (isValid$6(background.padding)) {
51173
+ if (isValid$5(background.padding)) {
51180
51174
  attrs.padding = background.padding;
51181
51175
  }
51182
51176
  }
@@ -51458,10 +51452,10 @@
51458
51452
  if (!isEmpty(handler.style)) {
51459
51453
  attrs.handlerStyle = transformToGraphic(handler.style);
51460
51454
  }
51461
- if (isValid$6(rail.width)) {
51455
+ if (isValid$5(rail.width)) {
51462
51456
  attrs.railWidth = rail.width;
51463
51457
  }
51464
- if (isValid$6(rail.height)) {
51458
+ if (isValid$5(rail.height)) {
51465
51459
  attrs.railHeight = rail.height;
51466
51460
  }
51467
51461
  if (!isEmpty(rail.style)) {
@@ -51478,7 +51472,7 @@
51478
51472
  }
51479
51473
  if (background.visible && !isEmpty(background.style)) {
51480
51474
  merge$1(attrs, background.style);
51481
- if (isValid$6(background.padding)) {
51475
+ if (isValid$5(background.padding)) {
51482
51476
  attrs.padding = background.padding;
51483
51477
  }
51484
51478
  }
@@ -51689,7 +51683,7 @@
51689
51683
  return TABLE_EVENT_TYPE;
51690
51684
  }
51691
51685
  options;
51692
- version = "0.15.2";
51686
+ version = "0.15.4-alpha.0";
51693
51687
  pagination;
51694
51688
  id = `VTable${Date.now()}`;
51695
51689
  headerStyleCache;
@@ -53551,12 +53545,12 @@
53551
53545
  }
53552
53546
  scrollToCell(cellAddr) {
53553
53547
  const drawRange = this.getDrawRange();
53554
- if (isValid$6(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
53548
+ if (isValid$5(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
53555
53549
  const frozenWidth = this.getFrozenColsWidth();
53556
53550
  const left = this.getColsWidth(0, cellAddr.col - 1);
53557
53551
  this.scrollLeft = Math.min(left - frozenWidth, this.getAllColsWidth() - drawRange.width);
53558
53552
  }
53559
- if (isValid$6(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
53553
+ if (isValid$5(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
53560
53554
  const frozenHeight = this.getFrozenRowsHeight();
53561
53555
  const top = this.getRowsHeight(0, cellAddr.row - 1);
53562
53556
  this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
@@ -54286,7 +54280,7 @@
54286
54280
  return false;
54287
54281
  }
54288
54282
  isFrozenColumn(col, row) {
54289
- if (isValid$6(row)) {
54283
+ if (isValid$5(row)) {
54290
54284
  if (col < this.frozenColCount && row >= this.frozenRowCount && row < this.rowCount - this.bottomFrozenRowCount) {
54291
54285
  return true;
54292
54286
  }
@@ -54299,7 +54293,7 @@
54299
54293
  return false;
54300
54294
  }
54301
54295
  isRightFrozenColumn(col, row) {
54302
- if (isValid$6(row)) {
54296
+ if (isValid$5(row)) {
54303
54297
  if (col >= this.colCount - this.rightFrozenColCount &&
54304
54298
  row >= this.frozenRowCount &&
54305
54299
  row < this.rowCount - this.bottomFrozenRowCount) {
@@ -54314,7 +54308,7 @@
54314
54308
  return false;
54315
54309
  }
54316
54310
  isFrozenRow(col, row) {
54317
- if (isValid$6(row)) {
54311
+ if (isValid$5(row)) {
54318
54312
  if (row < this.frozenRowCount && col >= this.frozenColCount && col < this.colCount - this.rightFrozenColCount) {
54319
54313
  return true;
54320
54314
  }
@@ -54328,7 +54322,7 @@
54328
54322
  return false;
54329
54323
  }
54330
54324
  isBottomFrozenRow(col, row) {
54331
- if (isValid$6(row)) {
54325
+ if (isValid$5(row)) {
54332
54326
  if (row >= this.rowCount - this.bottomFrozenRowCount &&
54333
54327
  col >= this.frozenColCount &&
54334
54328
  col < this.colCount - this.rightFrozenColCount) {
@@ -55555,7 +55549,7 @@
55555
55549
  targetRecordIndex = i;
55556
55550
  }
55557
55551
  }
55558
- if (isValid$6(targetRecordIndex)) {
55552
+ if (isValid$5(targetRecordIndex)) {
55559
55553
  break;
55560
55554
  }
55561
55555
  }
@@ -55571,29 +55565,29 @@
55571
55565
  if (colObj) {
55572
55566
  const layoutRange = layoutMap.getBodyLayoutRangeById(colObj.id);
55573
55567
  let startRow;
55574
- if (isValid$6(index)) {
55568
+ if (isValid$5(index)) {
55575
55569
  startRow = layoutMap.getRecordStartRowByRecordIndex(index);
55576
55570
  }
55577
55571
  if (this.transpose) {
55578
55572
  return {
55579
55573
  start: {
55580
55574
  row: layoutRange.start.row,
55581
- col: isValid$6(startRow) ? startRow + layoutRange.start.col : undefined
55575
+ col: isValid$5(startRow) ? startRow + layoutRange.start.col : undefined
55582
55576
  },
55583
55577
  end: {
55584
55578
  row: layoutRange.end.row,
55585
- col: isValid$6(startRow) ? startRow + layoutRange.end.col : undefined
55579
+ col: isValid$5(startRow) ? startRow + layoutRange.end.col : undefined
55586
55580
  }
55587
55581
  };
55588
55582
  }
55589
55583
  return {
55590
55584
  start: {
55591
55585
  col: layoutRange.start.col,
55592
- row: isValid$6(startRow) ? startRow + layoutRange.start.row : undefined
55586
+ row: isValid$5(startRow) ? startRow + layoutRange.start.row : undefined
55593
55587
  },
55594
55588
  end: {
55595
55589
  col: layoutRange.end.col,
55596
- row: isValid$6(startRow) ? startRow + layoutRange.end.row : undefined
55590
+ row: isValid$5(startRow) ? startRow + layoutRange.end.row : undefined
55597
55591
  }
55598
55592
  };
55599
55593
  }
@@ -55610,6 +55604,7 @@
55610
55604
  toggleHierarchyState(col, row) {
55611
55605
  const hierarchyState = this.getHierarchyState(col, row);
55612
55606
  if (hierarchyState === HierarchyState.expand) {
55607
+ this._refreshHierarchyState(col, row);
55613
55608
  this.fireListeners(TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, {
55614
55609
  col: col,
55615
55610
  row: row,
@@ -55617,13 +55612,19 @@
55617
55612
  });
55618
55613
  }
55619
55614
  else if (hierarchyState === HierarchyState.collapse) {
55615
+ const record = this.getCellOriginRecord(col, row);
55616
+ if (Array.isArray(record.children)) {
55617
+ this._refreshHierarchyState(col, row);
55618
+ }
55620
55619
  this.fireListeners(TABLE_EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, {
55621
55620
  col: col,
55622
55621
  row: row,
55623
55622
  hierarchyState: HierarchyState.expand,
55624
- originData: this.getCellOriginRecord(col, row)
55623
+ originData: record
55625
55624
  });
55626
55625
  }
55626
+ }
55627
+ _refreshHierarchyState(col, row) {
55627
55628
  const index = this.getRecordIndexByCell(col, row);
55628
55629
  const diffDataIndices = this.dataSource.toggleHierarchyState(index);
55629
55630
  const diffPositions = this.internalProps.layoutMap.toggleHierarchyState(diffDataIndices);
@@ -55632,7 +55633,7 @@
55632
55633
  this.scenegraph.updateHierarchyIcon(col, row);
55633
55634
  this.scenegraph.updateRow(diffPositions.removeCellPositions, diffPositions.addCellPositions);
55634
55635
  }
55635
- hasHierarchyTreeHeader() {
55636
+ _hasHierarchyTreeHeader() {
55636
55637
  return (this.options.columns ?? this.options.header)?.some((column, i) => column.tree);
55637
55638
  }
55638
55639
  getMenuInfo(col, row, type) {
@@ -55712,7 +55713,7 @@
55712
55713
  if (this.stateManager.checkedState.length < this.rowCount - this.columnHeaderLevelCount) {
55713
55714
  this.stateManager.initLeftRecordsCheckState(this.records);
55714
55715
  }
55715
- if (isValid$6(field)) {
55716
+ if (isValid$5(field)) {
55716
55717
  return this.stateManager.checkedState.map(state => {
55717
55718
  return state[field];
55718
55719
  });
@@ -55723,7 +55724,7 @@
55723
55724
  const define = this.getBodyColumnDefine(col, row);
55724
55725
  const field = define?.field;
55725
55726
  const cellType = define?.cellType;
55726
- if (isValid$6(field) && cellType === 'checkbox') {
55727
+ if (isValid$5(field) && cellType === 'checkbox') {
55727
55728
  const dataIndex = this.dataSource.getIndexKey(this.getRecordIndexByCell(col, row));
55728
55729
  return this.stateManager.checkedState[dataIndex][field];
55729
55730
  }
@@ -55778,17 +55779,20 @@
55778
55779
  }
55779
55780
  this.render();
55780
55781
  }
55781
- setRecord(record, col, row) {
55782
+ setRecordChildren(records, col, row) {
55783
+ const record = this.getCellOriginRecord(col, row);
55784
+ record.children = records;
55782
55785
  const index = this.getRecordIndexByCell(col, row);
55783
55786
  this.dataSource.setRecord(record, index);
55787
+ this._refreshHierarchyState(col, row);
55784
55788
  }
55785
55789
  startEditCell(col, row) {
55786
- if (isValid$6(col) && isValid$6(row)) {
55790
+ if (isValid$5(col) && isValid$5(row)) {
55787
55791
  this.editorManager.startEditCell(col, row);
55788
55792
  }
55789
55793
  else if (this.stateManager.select?.cellPos) {
55790
55794
  const { col, row } = this.stateManager.select.cellPos;
55791
- if (isValid$6(col) && isValid$6(row)) {
55795
+ if (isValid$5(col) && isValid$5(row)) {
55792
55796
  this.editorManager.startEditCell(col, row);
55793
55797
  }
55794
55798
  }
@@ -55816,10 +55820,9 @@
55816
55820
  }
55817
55821
  changeCellValue(col, row, value) {
55818
55822
  const recordIndex = this.getRecordIndexByCell(col, row);
55819
- const { field, fieldFormat } = this.internalProps.layoutMap.getBody(col, row);
55823
+ const { field } = this.internalProps.layoutMap.getBody(col, row);
55820
55824
  this.dataSource.changeFieldValue(value, recordIndex, field, col, row, this);
55821
- const cell_value = this.getFieldData(fieldFormat || field, col, row);
55822
- this.scenegraph.updateCellValue(col, row, cell_value);
55825
+ this.scenegraph.updateCellContent(col, row);
55823
55826
  if (this.widthMode === 'adaptive' || (this.autoFillWidth && this.getAllColsWidth() <= this.tableNoFrameWidth)) {
55824
55827
  if (this.internalProps._widthResizedColMap.size === 0) {
55825
55828
  this.scenegraph.recalculateColWidths();
@@ -56388,7 +56391,7 @@
56388
56391
  if (indicatorInfo.customRender) {
56389
56392
  hd.customRender = indicatorInfo.customRender;
56390
56393
  }
56391
- if (!isValid$6(this._indicators?.find(indicator => indicator.indicatorKey === indicatorInfo.indicatorKey))) {
56394
+ if (!isValid$5(this._indicators?.find(indicator => indicator.indicatorKey === indicatorInfo.indicatorKey))) {
56392
56395
  this._indicators?.push({
56393
56396
  id: ++sharedVar.seqId,
56394
56397
  indicatorKey: indicatorInfo.indicatorKey,
@@ -56411,7 +56414,7 @@
56411
56414
  }
56412
56415
  }
56413
56416
  else if (hd.indicatorKey) {
56414
- if (!isValid$6(this._indicators?.find(indicator => indicator.indicatorKey === hd.indicatorKey))) {
56417
+ if (!isValid$5(this._indicators?.find(indicator => indicator.indicatorKey === hd.indicatorKey))) {
56415
56418
  this._indicators?.push({
56416
56419
  id: ++sharedVar.seqId,
56417
56420
  indicatorKey: hd.indicatorKey,
@@ -56784,7 +56787,7 @@
56784
56787
  return false;
56785
56788
  }
56786
56789
  isFrozenColumn(col, row) {
56787
- if (isValid$6(row)) {
56790
+ if (isValid$5(row)) {
56788
56791
  if (col < this.frozenColCount && row >= this.frozenRowCount && row < this.rowCount - this.bottomFrozenRowCount) {
56789
56792
  return true;
56790
56793
  }
@@ -56797,7 +56800,7 @@
56797
56800
  return false;
56798
56801
  }
56799
56802
  isRightFrozenColumn(col, row) {
56800
- if (isValid$6(row)) {
56803
+ if (isValid$5(row)) {
56801
56804
  if (col >= this.colCount - this.rightFrozenColCount &&
56802
56805
  row >= this.frozenRowCount &&
56803
56806
  row < this.rowCount - this.bottomFrozenRowCount) {
@@ -56812,7 +56815,7 @@
56812
56815
  return false;
56813
56816
  }
56814
56817
  isFrozenRow(col, row) {
56815
- if (isValid$6(row)) {
56818
+ if (isValid$5(row)) {
56816
56819
  if (row < this.frozenRowCount && col >= this.frozenColCount && col < this.colCount - this.rightFrozenColCount) {
56817
56820
  return true;
56818
56821
  }
@@ -56826,7 +56829,7 @@
56826
56829
  return false;
56827
56830
  }
56828
56831
  isBottomFrozenRow(col, row) {
56829
- if (isValid$6(row)) {
56832
+ if (isValid$5(row)) {
56830
56833
  if (row >= this.rowCount - this.bottomFrozenRowCount &&
56831
56834
  col >= this.frozenColCount &&
56832
56835
  col < this.colCount - this.rightFrozenColCount) {
@@ -57411,8 +57414,8 @@
57411
57414
  let isCol = false;
57412
57415
  for (let j = 0; j < colArr.length; j++) {
57413
57416
  const dimension = colArr[j];
57414
- if (((isValid$6(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57415
- (isValid$6(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57417
+ if (((isValid$5(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57418
+ (isValid$5(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57416
57419
  dimension.value === highlightDimension.value) {
57417
57420
  colArr = dimension.children;
57418
57421
  colDimension = dimension;
@@ -57425,8 +57428,8 @@
57425
57428
  }
57426
57429
  for (let k = 0; k < rowArr.length; k++) {
57427
57430
  const dimension = rowArr[k];
57428
- if (((isValid$6(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57429
- (isValid$6(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57431
+ if (((isValid$5(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57432
+ (isValid$5(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57430
57433
  dimension.value === highlightDimension.value) {
57431
57434
  rowArr = dimension.children;
57432
57435
  rowDimension = dimension;
@@ -57528,7 +57531,7 @@
57528
57531
  }
57529
57532
  return false;
57530
57533
  });
57531
- if (isValid$6(col) && isValid$6(row)) {
57534
+ if (isValid$5(col) && isValid$5(row)) {
57532
57535
  return { col, row: row + this.columnHeaderLevelCount };
57533
57536
  }
57534
57537
  return undefined;
@@ -57684,10 +57687,10 @@
57684
57687
  const colDimension = colHeaderPaths[i];
57685
57688
  for (let j = 0; j < colArr.length; j++) {
57686
57689
  const dimension = colArr[j];
57687
- if ((!isValid$6(colDimension.indicatorKey) &&
57690
+ if ((!isValid$5(colDimension.indicatorKey) &&
57688
57691
  dimension.dimensionKey === colDimension.dimensionKey &&
57689
57692
  dimension.value === colDimension.value) ||
57690
- (isValid$6(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey)) {
57693
+ (isValid$5(colDimension.indicatorKey) && dimension.indicatorKey === colDimension.indicatorKey)) {
57691
57694
  colArr = dimension.children;
57692
57695
  if (needLowestLevel && !colArr) {
57693
57696
  colDimensionFinded = dimension;
@@ -57731,10 +57734,10 @@
57731
57734
  const rowDimension = rowHeaderPaths[i];
57732
57735
  for (let j = 0; j < rowArr.length; j++) {
57733
57736
  const dimension = rowArr[j];
57734
- if (((!isValid$6(rowDimension.indicatorKey) &&
57737
+ if (((!isValid$5(rowDimension.indicatorKey) &&
57735
57738
  dimension.dimensionKey === rowDimension.dimensionKey &&
57736
57739
  dimension.value === rowDimension.value) ||
57737
- (isValid$6(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey)) &&
57740
+ (isValid$5(rowDimension.indicatorKey) && dimension.indicatorKey === rowDimension.indicatorKey)) &&
57738
57741
  dimension.value === rowDimension.value) {
57739
57742
  rowArr = dimension.children;
57740
57743
  if (needLowestLevel && !rowArr) {
@@ -57750,7 +57753,7 @@
57750
57753
  }
57751
57754
  }
57752
57755
  if (!forceBody && needLowestLevel) {
57753
- if ((!rowDimensionFinded && !isValid$6(row)) || !colDimensionFinded) {
57756
+ if ((!rowDimensionFinded && !isValid$5(row)) || !colDimensionFinded) {
57754
57757
  return undefined;
57755
57758
  }
57756
57759
  }
@@ -57771,7 +57774,7 @@
57771
57774
  col += startInTotal ?? 0;
57772
57775
  defaultRow = this.columnHeaderTitle ? level + 1 : level;
57773
57776
  }
57774
- if (isValid$6(col) || isValid$6(row)) {
57777
+ if (isValid$5(col) || isValid$5(row)) {
57775
57778
  return { col: col ?? defaultCol, row: row ?? defaultRow };
57776
57779
  }
57777
57780
  return undefined;
@@ -57858,8 +57861,8 @@
57858
57861
  this.clearCellRangeMap();
57859
57862
  this.pagination = pagination;
57860
57863
  if (this.rowHierarchyType === 'grid' &&
57861
- isValid$6(this.pagination?.perPageCount) &&
57862
- isValid$6(this.pagination?.currentPage)) {
57864
+ isValid$5(this.pagination?.perPageCount) &&
57865
+ isValid$5(this.pagination?.currentPage)) {
57863
57866
  this.pagination.perPageCount =
57864
57867
  Math.ceil(this.pagination.perPageCount / this.indicatorKeys.length) * this.indicatorKeys.length;
57865
57868
  const { perPageCount, currentPage } = this.pagination;
@@ -57898,8 +57901,8 @@
57898
57901
  let isCol = false;
57899
57902
  for (let j = 0; j < colArr.length; j++) {
57900
57903
  const dimension = colArr[j];
57901
- if (((isValid$6(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57902
- (isValid$6(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57904
+ if (((isValid$5(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57905
+ (isValid$5(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57903
57906
  dimension.value === highlightDimension.value) {
57904
57907
  colArr = dimension.children;
57905
57908
  colDimension = dimension;
@@ -57912,8 +57915,8 @@
57912
57915
  }
57913
57916
  for (let k = 0; k < rowArr.length; k++) {
57914
57917
  const dimension = rowArr[k];
57915
- if (((isValid$6(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57916
- (isValid$6(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57918
+ if (((isValid$5(highlightDimension.dimensionKey) && dimension.dimensionKey === highlightDimension.dimensionKey) ||
57919
+ (isValid$5(highlightDimension.indicatorKey) && dimension.indicatorKey === highlightDimension.indicatorKey)) &&
57917
57920
  dimension.value === highlightDimension.value) {
57918
57921
  rowArr = dimension.children;
57919
57922
  rowDimension = dimension;
@@ -58223,6 +58226,7 @@
58223
58226
  dataConfig;
58224
58227
  records;
58225
58228
  tree = {};
58229
+ changedTree = {};
58226
58230
  colFlatKeys = {};
58227
58231
  rowFlatKeys = {};
58228
58232
  stringJoinChar = String.fromCharCode(0);
@@ -58307,7 +58311,7 @@
58307
58311
  }
58308
58312
  });
58309
58313
  }
58310
- getTreeNode(rowKey = [], colKey = [], indicator) {
58314
+ getTreeNode(rowKey = [], colKey = [], indicator, considerChangedValue = true) {
58311
58315
  let flatRowKey;
58312
58316
  let flatColKey;
58313
58317
  if (typeof rowKey === 'string') {
@@ -58338,8 +58342,50 @@
58338
58342
  isHasIndicator && colKey.push(indicator);
58339
58343
  flatColKey = colKey.join(this.stringJoinChar);
58340
58344
  }
58345
+ if (considerChangedValue && isValid$5(this.changedTree[flatRowKey]?.[flatColKey])) {
58346
+ return { value: this.changedTree[flatRowKey][flatColKey], record: this.tree?.[flatRowKey]?.[flatColKey]?.record };
58347
+ }
58341
58348
  return this.tree?.[flatRowKey]?.[flatColKey] ?? undefined;
58342
58349
  }
58350
+ changeTreeNodeValue(rowKey = [], colKey = [], indicator, newValue) {
58351
+ let flatRowKey;
58352
+ let flatColKey;
58353
+ if (typeof rowKey === 'string') {
58354
+ flatRowKey = rowKey;
58355
+ }
58356
+ else {
58357
+ let isHasIndicator = false;
58358
+ rowKey.map((key, i) => {
58359
+ if (key === indicator) {
58360
+ rowKey.splice(i, 1);
58361
+ isHasIndicator = true;
58362
+ }
58363
+ });
58364
+ isHasIndicator && rowKey.push(indicator);
58365
+ flatRowKey = rowKey.join(this.stringJoinChar);
58366
+ }
58367
+ if (typeof colKey === 'string') {
58368
+ flatColKey = colKey;
58369
+ }
58370
+ else {
58371
+ let isHasIndicator = false;
58372
+ colKey.map((key, i) => {
58373
+ if (key === indicator) {
58374
+ colKey.splice(i, 1);
58375
+ isHasIndicator = true;
58376
+ }
58377
+ });
58378
+ isHasIndicator && colKey.push(indicator);
58379
+ flatColKey = colKey.join(this.stringJoinChar);
58380
+ }
58381
+ if (this.changedTree[flatRowKey]) {
58382
+ this.changedTree[flatRowKey][flatColKey] = newValue;
58383
+ }
58384
+ else {
58385
+ this.changedTree[flatRowKey] = {};
58386
+ this.changedTree[flatRowKey][flatColKey] = newValue;
58387
+ }
58388
+ }
58343
58389
  }
58344
58390
 
58345
58391
  class Aggregator {
@@ -58357,6 +58403,9 @@
58357
58403
  this.formatFun = formatFun;
58358
58404
  this.isRecord = isRecord ?? this.isRecord;
58359
58405
  }
58406
+ clearCacheValue() {
58407
+ this._formatedValue = undefined;
58408
+ }
58360
58409
  formatValue(col, row, table) {
58361
58410
  if (!this._formatedValue) {
58362
58411
  if (this.formatFun) {
@@ -58690,6 +58739,7 @@
58690
58739
  dataConfig;
58691
58740
  records;
58692
58741
  tree = {};
58742
+ changedTree = {};
58693
58743
  colFlatKeys = {};
58694
58744
  rowFlatKeys = {};
58695
58745
  colKeys = [];
@@ -59152,9 +59202,8 @@
59152
59202
  return indicatorKey === value.indicatorKey;
59153
59203
  });
59154
59204
  }
59155
- getAggregator(rowKey = [], colKey = [], indicator) {
59205
+ getAggregator(rowKey = [], colKey = [], indicator, considerChangedValue = true) {
59156
59206
  const indicatorIndex = this.indicatorKeys.indexOf(indicator);
59157
- let agg;
59158
59207
  let flatRowKey;
59159
59208
  let flatColKey;
59160
59209
  if (typeof rowKey === 'string') {
@@ -59169,8 +59218,26 @@
59169
59218
  else {
59170
59219
  flatColKey = colKey.join(this.stringJoinChar);
59171
59220
  }
59172
- {
59173
- agg = this.tree[flatRowKey]?.[flatColKey]?.[indicatorIndex];
59221
+ const agg = this.tree[flatRowKey]?.[flatColKey]?.[indicatorIndex];
59222
+ if (considerChangedValue && isValid$5(this.changedTree[flatRowKey]?.[flatColKey]?.[indicatorIndex])) {
59223
+ const changeValue = this.changedTree[flatRowKey][flatColKey][indicatorIndex];
59224
+ if (agg) {
59225
+ return {
59226
+ value: () => {
59227
+ return changeValue;
59228
+ },
59229
+ formatValue: agg.formatValue,
59230
+ formatFun: agg.formatFun,
59231
+ records: agg.records,
59232
+ className: '',
59233
+ push() {
59234
+ },
59235
+ clearCacheValue() {
59236
+ },
59237
+ reset() {
59238
+ }
59239
+ };
59240
+ }
59174
59241
  }
59175
59242
  return agg
59176
59243
  ? agg
@@ -59184,6 +59251,8 @@
59184
59251
  formatValue() {
59185
59252
  return '';
59186
59253
  },
59254
+ clearCacheValue() {
59255
+ },
59187
59256
  reset() {
59188
59257
  }
59189
59258
  };
@@ -59643,6 +59712,35 @@
59643
59712
  }
59644
59713
  return customTree;
59645
59714
  }
59715
+ changeTreeNodeValue(rowKey = [], colKey = [], indicator, newValue) {
59716
+ const indicatorIndex = this.indicatorKeys.indexOf(indicator);
59717
+ let flatRowKey;
59718
+ let flatColKey;
59719
+ if (typeof rowKey === 'string') {
59720
+ flatRowKey = rowKey;
59721
+ }
59722
+ else {
59723
+ flatRowKey = rowKey.join(this.stringJoinChar);
59724
+ }
59725
+ if (typeof colKey === 'string') {
59726
+ flatColKey = colKey;
59727
+ }
59728
+ else {
59729
+ flatColKey = colKey.join(this.stringJoinChar);
59730
+ }
59731
+ if (this.changedTree[flatRowKey]?.[flatColKey]) {
59732
+ this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue;
59733
+ }
59734
+ else if (this.changedTree[flatRowKey]) {
59735
+ this.changedTree[flatRowKey][flatColKey] = [];
59736
+ this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue;
59737
+ }
59738
+ else {
59739
+ this.changedTree[flatRowKey] = {};
59740
+ this.changedTree[flatRowKey][flatColKey] = [];
59741
+ this.changedTree[flatRowKey][flatColKey][indicatorIndex] = newValue;
59742
+ }
59743
+ }
59646
59744
  }
59647
59745
  function arraySortByAnotherArray(array, sortArray) {
59648
59746
  return array.sort((a, b) => {
@@ -59660,6 +59758,7 @@
59660
59758
 
59661
59759
  class PivotTable extends BaseTable {
59662
59760
  pivotSortState;
59761
+ editorManager;
59663
59762
  dataset;
59664
59763
  flatDataToObjects;
59665
59764
  constructor(container, options) {
@@ -59743,6 +59842,9 @@
59743
59842
  if (options.pivotSortState) {
59744
59843
  this.updatePivotSortState(options.pivotSortState);
59745
59844
  }
59845
+ if (Env.mode !== 'node') {
59846
+ this.editorManager = new EditManeger(this);
59847
+ }
59746
59848
  this.refreshHeader();
59747
59849
  this.stateManager.initCheckedState(records);
59748
59850
  this.scenegraph.createSceneGraph();
@@ -59966,23 +60068,6 @@
59966
60068
  const { layoutMap } = this.internalProps;
59967
60069
  return layoutMap.getBodyIndexByCol(col);
59968
60070
  }
59969
- getFieldData(field, col, row) {
59970
- if (field === null || field === undefined) {
59971
- return null;
59972
- }
59973
- const table = this;
59974
- if (table.internalProps.layoutMap.isHeader(col, row)) {
59975
- return null;
59976
- }
59977
- const rowIndex = this.getBodyIndexByRow(row);
59978
- const colIndex = this.getBodyIndexByCol(col);
59979
- const dataValue = table.dataSource?.getField(rowIndex, colIndex, col, row, this);
59980
- if (typeof field !== 'string') {
59981
- const cellHeaderPaths = table.internalProps.layoutMap.getCellHeaderPaths(col, row);
59982
- return getField({ dataValue, ...cellHeaderPaths }, field, col, row, this, emptyFn);
59983
- }
59984
- return dataValue;
59985
- }
59986
60071
  getCellValue(col, row) {
59987
60072
  const customMergeText = this.getCustomMergeValue(col, row);
59988
60073
  if (customMergeText) {
@@ -60061,6 +60146,39 @@
60061
60146
  const dataValue = this.records[rowIndex]?.[colIndex];
60062
60147
  return dataValue;
60063
60148
  }
60149
+ getCellRawValue(col, row) {
60150
+ const table = this;
60151
+ if (table.internalProps.layoutMap.isHeader(col, row)) {
60152
+ const { title } = table.internalProps.layoutMap.getHeader(col, row);
60153
+ return typeof title === 'function' ? title() : title;
60154
+ }
60155
+ if (this.dataset) {
60156
+ const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
60157
+ const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
60158
+ return colPath.indicatorKey ?? colPath.value;
60159
+ });
60160
+ const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
60161
+ return rowPath.indicatorKey ?? rowPath.value;
60162
+ });
60163
+ const aggregator = this.dataset.getAggregator(!this.internalProps.layoutMap.indicatorsAsCol ? rowKeys.slice(0, -1) : rowKeys, this.internalProps.layoutMap.indicatorsAsCol ? colKeys.slice(0, -1) : colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), false);
60164
+ return aggregator.value ? aggregator.value() : undefined;
60165
+ }
60166
+ else if (this.flatDataToObjects) {
60167
+ const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
60168
+ const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
60169
+ return colPath.indicatorKey ?? colPath.value;
60170
+ });
60171
+ const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
60172
+ return rowPath.indicatorKey ?? rowPath.value;
60173
+ });
60174
+ const treeNode = this.flatDataToObjects.getTreeNode(rowKeys, colKeys, this.internalProps.layoutMap.getBody(col, row).indicatorKey, false);
60175
+ return treeNode?.value;
60176
+ }
60177
+ const rowIndex = this.getBodyIndexByRow(row);
60178
+ const colIndex = this.getBodyIndexByCol(col);
60179
+ const dataValue = this.records[rowIndex]?.[colIndex];
60180
+ return dataValue;
60181
+ }
60064
60182
  getCellOriginRecord(col, row) {
60065
60183
  const table = this;
60066
60184
  if (table.internalProps.layoutMap.isHeader(col, row)) {
@@ -60085,7 +60203,7 @@
60085
60203
  const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
60086
60204
  return rowPath.indicatorKey ?? rowPath.value;
60087
60205
  });
60088
- const treeNode = this.flatDataToObjects.getTreeNode(rowKeys, colKeys, this.internalProps.layoutMap.getBody(col, row).indicatorKey);
60206
+ const treeNode = this.flatDataToObjects.getTreeNode(rowKeys, colKeys, this.internalProps.layoutMap.getBody(col, row).indicatorKey, false);
60089
60207
  return treeNode?.record;
60090
60208
  }
60091
60209
  const rowIndex = this.getBodyIndexByRow(row);
@@ -60093,6 +60211,9 @@
60093
60211
  const dataValue = this.records[rowIndex]?.[colIndex];
60094
60212
  return dataValue;
60095
60213
  }
60214
+ getCellRawRecord(col, row) {
60215
+ return this.getCellOriginRecord(col, row);
60216
+ }
60096
60217
  updateSortRules(sortRules) {
60097
60218
  this.internalProps.dataConfig.sortRules = sortRules;
60098
60219
  this.dataset.updateSortRules(sortRules);
@@ -60213,7 +60334,7 @@
60213
60334
  const layoutMap = this.internalProps.layoutMap;
60214
60335
  return layoutMap.getLayoutRowTreeCount();
60215
60336
  }
60216
- hasHierarchyTreeHeader() {
60337
+ _hasHierarchyTreeHeader() {
60217
60338
  return this.internalProps.layoutMap.rowHierarchyType === 'tree';
60218
60339
  }
60219
60340
  getMenuInfo(col, row, type) {
@@ -60260,6 +60381,84 @@
60260
60381
  this.scenegraph.resize();
60261
60382
  }
60262
60383
  }
60384
+ getEditor(col, row) {
60385
+ const define = this.getBodyColumnDefine(col, row);
60386
+ let editorDefine = define?.editor ?? this.options.editor;
60387
+ if (typeof editorDefine === 'function') {
60388
+ const arg = {
60389
+ col,
60390
+ row,
60391
+ dataValue: this.getCellOriginValue(col, row),
60392
+ value: this.getCellValue(col, row) || '',
60393
+ table: this
60394
+ };
60395
+ editorDefine = editorDefine(arg);
60396
+ }
60397
+ if (typeof editorDefine === 'string') {
60398
+ return get(editorDefine);
60399
+ }
60400
+ return editorDefine;
60401
+ }
60402
+ changeCellValue(col, row, value) {
60403
+ let newValue = value;
60404
+ const rawValue = this.getCellRawValue(col, row);
60405
+ if (typeof rawValue === 'number' && isAllDigits(value)) {
60406
+ newValue = parseFloat(value);
60407
+ }
60408
+ if (this.dataset) {
60409
+ const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
60410
+ const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
60411
+ return colPath.indicatorKey ?? colPath.value;
60412
+ });
60413
+ const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
60414
+ return rowPath.indicatorKey ?? rowPath.value;
60415
+ });
60416
+ this.dataset.changeTreeNodeValue(!this.internalProps.layoutMap.indicatorsAsCol ? rowKeys.slice(0, -1) : rowKeys, this.internalProps.layoutMap.indicatorsAsCol ? colKeys.slice(0, -1) : colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), newValue);
60417
+ }
60418
+ else if (this.flatDataToObjects) {
60419
+ const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
60420
+ const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
60421
+ return colPath.indicatorKey ?? colPath.value;
60422
+ });
60423
+ const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
60424
+ return rowPath.indicatorKey ?? rowPath.value;
60425
+ });
60426
+ this.flatDataToObjects.changeTreeNodeValue(rowKeys, colKeys, this.internalProps.layoutMap.getBody(col, row).indicatorKey, newValue);
60427
+ }
60428
+ else {
60429
+ const rowIndex = this.getBodyIndexByRow(row);
60430
+ const colIndex = this.getBodyIndexByCol(col);
60431
+ this.records[rowIndex][colIndex] = newValue;
60432
+ }
60433
+ this.scenegraph.updateCellContent(col, row);
60434
+ if (this.widthMode === 'adaptive' || (this.autoFillWidth && this.getAllColsWidth() <= this.tableNoFrameWidth)) {
60435
+ if (this.internalProps._widthResizedColMap.size === 0) {
60436
+ this.scenegraph.recalculateColWidths();
60437
+ }
60438
+ }
60439
+ else if (!this.internalProps._widthResizedColMap.has(col)) {
60440
+ const oldWidth = this.getColWidth(col);
60441
+ const newWidth = computeColWidth(col, 0, this.rowCount - 1, this, false);
60442
+ if (newWidth !== oldWidth) {
60443
+ this.scenegraph.updateColWidth(col, newWidth - oldWidth);
60444
+ }
60445
+ }
60446
+ if (this.heightMode === 'adaptive' || (this.autoFillHeight && this.getAllRowsHeight() <= this.tableNoFrameHeight)) {
60447
+ this.scenegraph.recalculateRowHeights();
60448
+ }
60449
+ else if (this.heightMode === 'autoHeight') {
60450
+ const oldHeight = this.getRowHeight(row);
60451
+ const newHeight = computeRowHeight(row, 0, this.colCount - 1, this);
60452
+ this.scenegraph.updateRowHeight(row, newHeight - oldHeight);
60453
+ }
60454
+ this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, {
60455
+ col,
60456
+ row,
60457
+ rawValue: this.getCellRawValue(col, row),
60458
+ changedValue: newValue
60459
+ });
60460
+ this.scenegraph.updateNextFrame();
60461
+ }
60263
60462
  }
60264
60463
 
60265
60464
  class PivotChart extends BaseTable {
@@ -60497,23 +60696,6 @@
60497
60696
  const { layoutMap } = this.internalProps;
60498
60697
  return layoutMap.getBodyIndexByCol(col);
60499
60698
  }
60500
- getFieldData(field, col, row) {
60501
- if (field === null || field === undefined) {
60502
- return null;
60503
- }
60504
- const table = this;
60505
- if (table.internalProps.layoutMap.isHeader(col, row)) {
60506
- return null;
60507
- }
60508
- const rowIndex = this.getBodyIndexByRow(row);
60509
- const colIndex = this.getBodyIndexByCol(col);
60510
- const dataValue = table.dataSource?.getField(rowIndex, colIndex, col, row, this);
60511
- if (typeof field !== 'string') {
60512
- const cellHeaderPaths = table.internalProps.layoutMap.getCellHeaderPaths(col, row);
60513
- return getField({ dataValue, ...cellHeaderPaths }, field, col, row, this, emptyFn);
60514
- }
60515
- return dataValue;
60516
- }
60517
60699
  getCellValue(col, row) {
60518
60700
  const customMergeText = this.getCustomMergeValue(col, row);
60519
60701
  if (customMergeText) {
@@ -60534,8 +60716,16 @@
60534
60716
  const aggregator = this.dataset.getAggregator(!this.internalProps.layoutMap.indicatorsAsCol ? rowKeys.slice(0, -1) : rowKeys, this.internalProps.layoutMap.indicatorsAsCol ? colKeys.slice(0, -1) : colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
60535
60717
  return aggregator.value ? aggregator.value() : undefined;
60536
60718
  }
60537
- const { field, fieldFormat } = this.internalProps.layoutMap.getBody(col, row);
60538
- return this.getFieldData(fieldFormat || field, col, row);
60719
+ const { fieldFormat } = this.internalProps.layoutMap.getBody(col, row);
60720
+ const rowIndex = this.getBodyIndexByRow(row);
60721
+ const colIndex = this.getBodyIndexByCol(col);
60722
+ const dataValue = this.records[rowIndex]?.[colIndex];
60723
+ const cellHeaderPaths = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
60724
+ if (typeof fieldFormat === 'function') {
60725
+ const fieldResult = fieldFormat({ dataValue, ...cellHeaderPaths }, col, row, this);
60726
+ return fieldResult;
60727
+ }
60728
+ return dataValue;
60539
60729
  }
60540
60730
  getCellOriginValue(col, row) {
60541
60731
  const table = this;
@@ -60554,8 +60744,13 @@
60554
60744
  const aggregator = this.dataset.getAggregator(!this.internalProps.layoutMap.indicatorsAsCol ? rowKeys.slice(0, -1) : rowKeys, this.internalProps.layoutMap.indicatorsAsCol ? colKeys.slice(0, -1) : colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
60555
60745
  return aggregator.value ? aggregator.value() : undefined;
60556
60746
  }
60557
- const { field } = table.internalProps.layoutMap.getBody(col, row);
60558
- return table.getFieldData(field, col, row);
60747
+ const rowIndex = this.getBodyIndexByRow(row);
60748
+ const colIndex = this.getBodyIndexByCol(col);
60749
+ const dataValue = this.records[rowIndex]?.[colIndex];
60750
+ return dataValue;
60751
+ }
60752
+ getCellRawValue(col, row) {
60753
+ return this.getCellOriginValue(col, row);
60559
60754
  }
60560
60755
  getCellOriginRecord(col, row) {
60561
60756
  const table = this;
@@ -60575,6 +60770,9 @@
60575
60770
  }
60576
60771
  return undefined;
60577
60772
  }
60773
+ getCellRawRecord(col, row) {
60774
+ return this.getCellOriginRecord(col, row);
60775
+ }
60578
60776
  updateSortRules(sortRules) {
60579
60777
  this.internalProps.dataConfig.sortRules = sortRules;
60580
60778
  this.dataset.updateSortRules(sortRules);
@@ -60685,7 +60883,7 @@
60685
60883
  getHierarchyState(col, row) {
60686
60884
  return this._getHeaderLayoutMap(col, row)?.hierarchyState;
60687
60885
  }
60688
- hasHierarchyTreeHeader() {
60886
+ _hasHierarchyTreeHeader() {
60689
60887
  return this.internalProps.layoutMap.rowHierarchyType === 'tree';
60690
60888
  }
60691
60889
  getMenuInfo(col, row, type) {
@@ -61579,7 +61777,7 @@
61579
61777
  return new Tag$1(params ? params.attribute : {});
61580
61778
  }
61581
61779
 
61582
- const version = "0.15.2";
61780
+ const version = "0.15.4-alpha.0";
61583
61781
  function getIcons() {
61584
61782
  return get$2();
61585
61783
  }