@visactor/vtable-calendar 1.19.1-alpha.1 → 1.19.2

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.
@@ -9290,9 +9290,9 @@
9290
9290
  setWidthHeightWithoutTransform(aabbBounds) {
9291
9291
  this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1;
9292
9292
  }
9293
- setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context) {
9293
+ setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context, ignorePriority) {
9294
9294
  this.setAttributes(params, forceUpdateTag, context), this.animates && this.animates.forEach(animate => {
9295
- Object.keys(params).forEach(key => {
9295
+ (animate.priority !== 1 / 0 || ignorePriority) && Object.keys(params).forEach(key => {
9296
9296
  animate.preventAttr(key);
9297
9297
  });
9298
9298
  });
@@ -9463,7 +9463,7 @@
9463
9463
  });
9464
9464
  } else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
9465
9465
  type: AttributeUpdateType.STATE
9466
- });
9466
+ }), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
9467
9467
  this._emitCustomEvent("afterStateUpdate", {
9468
9468
  type: AttributeUpdateType.STATE
9469
9469
  });
@@ -23598,7 +23598,7 @@
23598
23598
  return this._animateCount;
23599
23599
  }
23600
23600
  constructor() {
23601
- super(), this.head = null, this.tail = null, this.animateMap = new Map(), this._animateCount = 0, this._playSpeed = 1, this._totalDuration = 0, this._startTime = 0, this._currentTime = 0, this.id = Generator.GenAutoIncrementId(), this.paused = !1;
23601
+ super(), this.head = null, this.tail = null, this.animateMap = new Map(), this._animateCount = 0, this._playSpeed = 1, this._totalDuration = 0, this._startTime = 0, this._currentTime = 0, this._animationEndFlag = !0, this.id = Generator.GenAutoIncrementId(), this.paused = !1;
23602
23602
  }
23603
23603
  isRunning() {
23604
23604
  return !this.paused && this._animateCount > 0;
@@ -23627,10 +23627,11 @@
23627
23627
  }
23628
23628
  tick(delta) {
23629
23629
  if (this.paused) return;
23630
+ this._animationEndFlag && (this._animationEndFlag = !1, this.emit("animationStart"));
23630
23631
  const scaledDelta = delta * this._playSpeed;
23631
23632
  this._currentTime += scaledDelta, this.forEachAccessAnimate((animate, i) => {
23632
23633
  animate.status === AnimateStatus.END ? this.removeAnimate(animate, !0) : animate.status !== AnimateStatus.RUNNING && animate.status !== AnimateStatus.INITIAL || animate.advance(scaledDelta);
23633
- }), 0 === this._animateCount && this.emit("animationEnd");
23634
+ }), 0 === this._animateCount && (this._animationEndFlag = !0, this.emit("animationEnd"));
23634
23635
  }
23635
23636
  clear() {
23636
23637
  this.forEachAccessAnimate(animate => {
@@ -23694,7 +23695,9 @@
23694
23695
  return this._timeline;
23695
23696
  }
23696
23697
  bind(target) {
23697
- return this.target = target, this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.target.animationAttribute || (this.target.animationAttribute = {}), this;
23698
+ return this.target = target, this.target.animates || (this.target.animates = new Map()), this.target.animates.set(this.id, this), this.onRemove(() => {
23699
+ this.stop(), this.target.animates.delete(this.id);
23700
+ }), this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.target.animationAttribute || (this.target.animationAttribute = {}), this;
23698
23701
  }
23699
23702
  to(props, duration = 300, easing = "linear") {
23700
23703
  const step = new Step(AnimateStepType.to, props, duration, easing);
@@ -23908,8 +23911,8 @@
23908
23911
  }
23909
23912
  init() {
23910
23913
  this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", () => {
23911
- this.initHandler();
23912
- }), application.global.env && this.initHandler();
23914
+ this.initHandler(!1);
23915
+ }), application.global.env && this.initHandler(!1);
23913
23916
  }
23914
23917
  addTimeline(timeline) {
23915
23918
  this.timelines.push(timeline);
@@ -23920,10 +23923,11 @@
23920
23923
  getTimelines() {
23921
23924
  return this.timelines;
23922
23925
  }
23923
- initHandler() {
23924
- this.setupTickHandler();
23926
+ initHandler(force = !1) {
23927
+ this.setupTickHandler(force);
23925
23928
  }
23926
- setupTickHandler() {
23929
+ setupTickHandler(force = !1) {
23930
+ if (!force && this.tickerHandler) return !0;
23927
23931
  const handler = new RAFTickHandler();
23928
23932
  return this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0;
23929
23933
  }
@@ -23974,7 +23978,7 @@
23974
23978
  return this.status = STATUS$1.RUNNING, this.tickerHandler.tick(0, this.handleTick), !0;
23975
23979
  }
23976
23980
  stop() {
23977
- this.status = STATUS$1.INITIAL, this.setupTickHandler(), this.lastFrameTime = -1;
23981
+ this.status = STATUS$1.INITIAL, this.setupTickHandler(!0), this.lastFrameTime = -1;
23978
23982
  }
23979
23983
  trySyncTickStatus() {
23980
23984
  this.status === STATUS$1.INITIAL && this.timelines.some(timeline => timeline.isRunning()) ? this.start() : this.status === STATUS$1.RUNNING && this.timelines.every(timeline => !timeline.isRunning()) && this.stop();
@@ -23984,7 +23988,8 @@
23984
23988
  this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
23985
23989
  }
23986
23990
  checkSkip(delta) {
23987
- if ("performance" === this.stage.params.optimize.tickRenderMode) return !1;
23991
+ var _a, _b, _c;
23992
+ if ("performance" === (null === (_c = null === (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.params) || void 0 === _b ? void 0 : _b.optimize) || void 0 === _c ? void 0 : _c.tickRenderMode)) return !1;
23988
23993
  return delta < this.interval + 2 * (Math.random() - .5) * this._jitter;
23989
23994
  }
23990
23995
  }
@@ -24138,10 +24143,11 @@
24138
24143
  _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
24139
24144
  var _a, _b, _c, _d;
24140
24145
  if (custom && customType) {
24141
- const customParams = this.resolveValue(customParameters, graphic, {
24146
+ const customParams = Object.assign({
24142
24147
  width: graphic.stage.width,
24143
- height: graphic.stage.height
24144
- }),
24148
+ height: graphic.stage.height,
24149
+ group: this._target.parent
24150
+ }, this.resolveValue(customParameters, graphic)),
24145
24151
  objOptions = isFunction$7(options) ? options.call(null, null !== (_b = customParams && (null === (_a = customParams.data) || void 0 === _a ? void 0 : _a[0])) && void 0 !== _b ? _b : null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, customParams) : options;
24146
24152
  customParams.options = objOptions, customParams.controlOptions = controlOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
24147
24153
  } else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
@@ -24252,7 +24258,7 @@
24252
24258
 
24253
24259
  class ACustomAnimate extends Step {
24254
24260
  constructor(customFrom, customTo, duration, easing, params) {
24255
- super("customAnimate", customTo, duration, easing), this.type = "customAnimate", this.customFrom = customFrom, this.params = params;
24261
+ super("customAnimate", customTo, duration, easing), this.type = "customAnimate", this.customFrom = customFrom, this.params = params, this.from = customFrom, this.to = customTo;
24256
24262
  }
24257
24263
  update(end, ratio, out) {
24258
24264
  if (this.onStart(), !this.props || !this.propKeys) return;
@@ -28888,7 +28894,7 @@
28888
28894
  class Aggregator {
28889
28895
  constructor(config) {
28890
28896
  var _a;
28891
- this.isAggregator = !0, this.isRecord = !0, this.records = [], this.key = config.key, this.field = config.field, this.formatFun = config.formatFun, this.isRecord = null !== (_a = config.isRecord) && void 0 !== _a ? _a : this.isRecord;
28897
+ this.isAggregator = !0, this.isRecord = !0, this.records = [], this.children = [], this.key = config.key, this.field = config.field, this.formatFun = config.formatFun, this.isRecord = null !== (_a = config.isRecord) && void 0 !== _a ? _a : this.isRecord;
28892
28898
  }
28893
28899
  clearCacheValue() {
28894
28900
  this._formatedValue = void 0;
@@ -28897,7 +28903,7 @@
28897
28903
  return this._formatedValue || (this.formatFun ? this._formatedValue = this.formatFun(this.value(), col, row, table) : this._formatedValue = this.value()), this._formatedValue;
28898
28904
  }
28899
28905
  reset() {
28900
- this.records = [], this.clearCacheValue();
28906
+ this.records = [], this.changedValue = void 0, this.children = [], this.clearCacheValue();
28901
28907
  }
28902
28908
  }
28903
28909
  class RecordAggregator extends Aggregator {
@@ -28905,19 +28911,20 @@
28905
28911
  super(...arguments), this.type = AggregationType.RECORD, this.isRecord = !0;
28906
28912
  }
28907
28913
  push(record) {
28908
- record && this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), this.clearCacheValue();
28914
+ record && this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator && this.children && this.children.push(record), this.clearCacheValue();
28909
28915
  }
28910
28916
  deleteRecord(record) {
28911
- record && this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.clearCacheValue();
28917
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && this.children && (this.children = this.children.filter(item => item !== record))), this.clearCacheValue();
28912
28918
  }
28913
28919
  updateRecord(oldRecord, newRecord) {
28914
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.clearCacheValue());
28920
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && newRecord.isAggregator && this.children && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)), this.clearCacheValue());
28915
28921
  }
28916
28922
  value() {
28917
- return this.records;
28923
+ var _a;
28924
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : this.records;
28918
28925
  }
28919
28926
  reset() {
28920
- this.records = [];
28927
+ this.children = [], this.changedValue = void 0, this.records = [];
28921
28928
  }
28922
28929
  recalculate() {}
28923
28930
  }
@@ -28926,19 +28933,20 @@
28926
28933
  super(...arguments), this.type = AggregationType.NONE, this.isRecord = !0;
28927
28934
  }
28928
28935
  push(record) {
28929
- record && (this.isRecord && (this.records = [record]), this.field && (this.fieldValue = record[this.field])), this.clearCacheValue();
28936
+ record && (this.isRecord && (this.records = [record]), record.isAggregator && this.children && (this.children = [record]), this.field && (this.fieldValue = record[this.field])), this.clearCacheValue();
28930
28937
  }
28931
28938
  deleteRecord(record) {
28932
- record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.field && this.records.length && (this.fieldValue = this.records[this.records.length - 1][this.field])), this.clearCacheValue();
28939
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && this.children && (this.children = this.children.filter(item => item !== record)), this.field && this.records.length && (this.fieldValue = this.records[this.records.length - 1][this.field])), this.clearCacheValue();
28933
28940
  }
28934
28941
  updateRecord(oldRecord, newRecord) {
28935
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.field && this.records.length && (this.fieldValue = this.records[this.records.length - 1][this.field]), this.clearCacheValue());
28942
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && newRecord.isAggregator && this.children && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)), this.field && this.records.length && (this.fieldValue = this.records[this.records.length - 1][this.field]), this.clearCacheValue());
28936
28943
  }
28937
28944
  value() {
28938
- return this.fieldValue;
28945
+ var _a;
28946
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : this.fieldValue;
28939
28947
  }
28940
28948
  reset() {
28941
- this.records = [], this.fieldValue = void 0;
28949
+ this.children = [], this.changedValue = void 0, this.records = [], this.fieldValue = void 0;
28942
28950
  }
28943
28951
  recalculate() {}
28944
28952
  }
@@ -28947,20 +28955,20 @@
28947
28955
  super(config), this.type = AggregationType.CUSTOM, this.isRecord = !0, this.values = [], this.aggregationFun = config.aggregationFun;
28948
28956
  }
28949
28957
  push(record) {
28950
- record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), this.field && this.values.push(record[this.field])), this.clearCacheValue();
28958
+ record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator && this.children && this.children.push(record), this.field && this.values.push(record[this.field])), this.clearCacheValue();
28951
28959
  }
28952
28960
  updateRecord(oldRecord, newRecord) {
28953
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.field && this.records.length && (this.values = this.records.map(item => item[this.field])), this.clearCacheValue());
28961
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && newRecord.isAggregator && this.children && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)), this.field && this.records.length && (this.values = this.records.map(item => item[this.field])), this.clearCacheValue());
28954
28962
  }
28955
28963
  deleteRecord(record) {
28956
- record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.field && this.records.length && (this.values = this.records.map(item => item[this.field]))), this.clearCacheValue();
28964
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && this.children && (this.children = this.children.filter(item => item !== record)), this.field && this.records.length && (this.values = this.records.map(item => item[this.field]))), this.clearCacheValue();
28957
28965
  }
28958
28966
  value() {
28959
- var _a;
28960
- return this.fieldValue || (this.fieldValue = null === (_a = this.aggregationFun) || void 0 === _a ? void 0 : _a.call(this, this.values, this.records, this.field)), this.fieldValue;
28967
+ var _a, _b;
28968
+ return this.fieldValue || (this.fieldValue = null === (_a = this.aggregationFun) || void 0 === _a ? void 0 : _a.call(this, this.values, this.records, this.field)), null !== (_b = this.changedValue) && void 0 !== _b ? _b : this.fieldValue;
28961
28969
  }
28962
28970
  reset() {
28963
- this.records = [], this.fieldValue = void 0;
28971
+ this.records = [], this.children = [], this.changedValue = void 0, this.fieldValue = void 0;
28964
28972
  }
28965
28973
  recalculate() {
28966
28974
  this.fieldValue = void 0, this._formatedValue = void 0;
@@ -28972,7 +28980,8 @@
28972
28980
  super(config), this.type = AggregationType.SUM, this.sum = 0, this.positiveSum = 0, this.nagetiveSum = 0, this.needSplitPositiveAndNegativeForSum = !1, this.needSplitPositiveAndNegativeForSum = null !== (_a = config.needSplitPositiveAndNegative) && void 0 !== _a && _a;
28973
28981
  }
28974
28982
  push(record) {
28975
- if (record) if (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator) {
28983
+ if (record) if (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator && this.children) {
28984
+ this.children.push(record);
28976
28985
  const value = record.value();
28977
28986
  this.sum += null != value ? value : 0, this.needSplitPositiveAndNegativeForSum && (value > 0 ? this.positiveSum += value : value < 0 && (this.nagetiveSum += value));
28978
28987
  } else if (this.field && !isNaN(parseFloat(record[this.field]))) {
@@ -28982,7 +28991,8 @@
28982
28991
  this.clearCacheValue();
28983
28992
  }
28984
28993
  deleteRecord(record) {
28985
- if (record) if (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator) {
28994
+ if (record) if (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && this.children) {
28995
+ this.children = this.children.filter(item => item !== record);
28986
28996
  const value = record.value();
28987
28997
  this.sum -= null != value ? value : 0, this.needSplitPositiveAndNegativeForSum && (value > 0 ? this.positiveSum -= value : value < 0 && (this.nagetiveSum -= value));
28988
28998
  } else if (this.field && !isNaN(parseFloat(record[this.field]))) {
@@ -28993,10 +29003,11 @@
28993
29003
  }
28994
29004
  updateRecord(oldRecord, newRecord) {
28995
29005
  if (oldRecord && newRecord) {
28996
- if (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator) {
28997
- const oldValue = oldRecord.value(),
28998
- newValue = newRecord.value();
28999
- this.sum += newValue - oldValue, this.needSplitPositiveAndNegativeForSum && (oldValue > 0 ? this.positiveSum -= oldValue : oldValue < 0 && (this.nagetiveSum -= oldValue), newValue > 0 ? this.positiveSum += newValue : newValue < 0 && (this.nagetiveSum += newValue));
29006
+ if (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && this.children) {
29007
+ const oldValue = oldRecord.value();
29008
+ this.children = this.children.filter(item => item !== oldRecord);
29009
+ const newValue = newRecord.value();
29010
+ this.children.push(newRecord), this.sum += newValue - oldValue, this.needSplitPositiveAndNegativeForSum && (oldValue > 0 ? this.positiveSum -= oldValue : oldValue < 0 && (this.nagetiveSum -= oldValue), newValue > 0 ? this.positiveSum += newValue : newValue < 0 && (this.nagetiveSum += newValue));
29000
29011
  } else if (this.field && !isNaN(parseFloat(oldRecord[this.field]))) {
29001
29012
  const oldValue = parseFloat(oldRecord[this.field]),
29002
29013
  newValue = parseFloat(newRecord[this.field]);
@@ -29006,8 +29017,8 @@
29006
29017
  }
29007
29018
  }
29008
29019
  value() {
29009
- var _a;
29010
- return (null === (_a = this.records) || void 0 === _a ? void 0 : _a.length) >= 1 ? this.sum : void 0;
29020
+ var _a, _b;
29021
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : (null === (_b = this.records) || void 0 === _b ? void 0 : _b.length) >= 1 ? this.sum : void 0;
29011
29022
  }
29012
29023
  positiveValue() {
29013
29024
  return this.positiveSum;
@@ -29019,7 +29030,13 @@
29019
29030
  super.reset(), this.records = [], this.sum = 0;
29020
29031
  }
29021
29032
  recalculate() {
29022
- if (this.sum = 0, this._formatedValue = void 0, this.records) for (let i = 0; i < this.records.length; i++) {
29033
+ if (this.sum = 0, this._formatedValue = void 0, this.children && this.children.length > 0) for (let i = 0; i < this.children.length; i++) {
29034
+ const child = this.children[i];
29035
+ if (child.isAggregator) {
29036
+ const value = child.value();
29037
+ this.sum += null != value ? value : 0, this.needSplitPositiveAndNegativeForSum && (value > 0 ? this.positiveSum += value : value < 0 && (this.nagetiveSum += value));
29038
+ }
29039
+ } else if (this.records) for (let i = 0; i < this.records.length; i++) {
29023
29040
  const record = this.records[i];
29024
29041
  if (record.isAggregator) {
29025
29042
  const value = record.value();
@@ -29036,22 +29053,29 @@
29036
29053
  super(...arguments), this.type = AggregationType.COUNT, this.count = 0;
29037
29054
  }
29038
29055
  push(record) {
29039
- record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator ? this.count += record.value() : this.count++), this.clearCacheValue();
29056
+ record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator ? (this.children && this.children.push(record), this.count += record.value()) : this.count++), this.clearCacheValue();
29040
29057
  }
29041
29058
  deleteRecord(record) {
29042
- record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator ? this.count -= record.value() : this.count--), this.clearCacheValue();
29059
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator ? (this.children && (this.children = this.children.filter(item => item !== record)), this.count -= record.value()) : this.count--), this.clearCacheValue();
29043
29060
  }
29044
29061
  updateRecord(oldRecord, newRecord) {
29045
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && (this.count += newRecord.value() - oldRecord.value()));
29062
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && (this.count += newRecord.value() - oldRecord.value()), oldRecord.isAggregator && newRecord.isAggregator && this.children && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)));
29046
29063
  }
29047
29064
  value() {
29048
- return this.count;
29065
+ var _a;
29066
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : this.count;
29049
29067
  }
29050
29068
  reset() {
29051
- this.records = [], this.count = 0;
29069
+ this.changedValue = void 0, this.children = [], this.records = [], this.count = 0;
29052
29070
  }
29053
29071
  recalculate() {
29054
- if (this.count = 0, this._formatedValue = void 0, this.records) for (let i = 0; i < this.records.length; i++) {
29072
+ if (this.count = 0, this._formatedValue = void 0, this.children && this.children.length > 0) for (let i = 0; i < this.children.length; i++) {
29073
+ const child = this.children[i];
29074
+ if (child.isAggregator) {
29075
+ const value = child.value();
29076
+ this.count += null != value ? value : 0;
29077
+ } else this.count++;
29078
+ } else if (this.records) for (let i = 0; i < this.records.length; i++) {
29055
29079
  const record = this.records[i];
29056
29080
  record.isAggregator ? this.count += record.value() : this.count++;
29057
29081
  }
@@ -29062,23 +29086,29 @@
29062
29086
  super(...arguments), this.type = AggregationType.AVG, this.sum = 0, this.count = 0;
29063
29087
  }
29064
29088
  push(record) {
29065
- record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator && record.type === AggregationType.AVG ? (this.sum += record.sum, this.count += record.count) : this.field && !isNaN(parseFloat(record[this.field])) && (this.sum += parseFloat(record[this.field]), this.count++)), this.clearCacheValue();
29089
+ record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator && record.type === AggregationType.AVG ? (this.children && this.children.push(record), this.sum += record.sum, this.count += record.count) : this.field && !isNaN(parseFloat(record[this.field])) && (this.sum += parseFloat(record[this.field]), this.count++)), this.clearCacheValue();
29066
29090
  }
29067
29091
  deleteRecord(record) {
29068
- record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && record.type === AggregationType.AVG ? (this.sum -= record.sum, this.count -= record.count) : this.field && !isNaN(parseFloat(record[this.field])) && (this.sum -= parseFloat(record[this.field]), this.count--)), this.clearCacheValue();
29092
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && record.type === AggregationType.AVG ? (this.children && (this.children = this.children.filter(item => item !== record)), this.sum -= record.sum, this.count -= record.count) : this.field && !isNaN(parseFloat(record[this.field])) && (this.sum -= parseFloat(record[this.field]), this.count--)), this.clearCacheValue();
29069
29093
  }
29070
29094
  updateRecord(oldRecord, newRecord) {
29071
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && oldRecord.type === AggregationType.AVG ? (this.sum += newRecord.sum - oldRecord.sum, this.count += newRecord.count - oldRecord.count) : this.field && !isNaN(parseFloat(oldRecord[this.field])) && (this.sum += parseFloat(newRecord[this.field]) - parseFloat(oldRecord[this.field])), this.clearCacheValue());
29095
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && oldRecord.type === AggregationType.AVG ? (this.children && newRecord.isAggregator && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)), this.sum += newRecord.sum - oldRecord.sum, this.count += newRecord.count - oldRecord.count) : this.field && !isNaN(parseFloat(oldRecord[this.field])) && (this.sum += parseFloat(newRecord[this.field]) - parseFloat(oldRecord[this.field])), this.clearCacheValue());
29072
29096
  }
29073
29097
  value() {
29074
- var _a;
29075
- return (null === (_a = this.records) || void 0 === _a ? void 0 : _a.length) >= 1 ? this.sum / this.count : void 0;
29098
+ var _a, _b;
29099
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : (null === (_b = this.records) || void 0 === _b ? void 0 : _b.length) >= 1 ? this.sum / this.count : void 0;
29076
29100
  }
29077
29101
  reset() {
29078
- this.records = [], this.sum = 0, this.count = 0;
29102
+ this.changedValue = void 0, this.children = [], this.records = [], this.sum = 0, this.count = 0;
29079
29103
  }
29080
29104
  recalculate() {
29081
- if (this.sum = 0, this.count = 0, this._formatedValue = void 0, this.records) for (let i = 0; i < this.records.length; i++) {
29105
+ if (this.sum = 0, this.count = 0, this._formatedValue = void 0, this.children && this.children.length > 0) for (let i = 0; i < this.children.length; i++) {
29106
+ const child = this.children[i];
29107
+ if (child.isAggregator && child.type === AggregationType.AVG) {
29108
+ const childValue = child.value();
29109
+ this.sum += childValue * child.count, this.count += child.count;
29110
+ }
29111
+ } else if (this.records) for (let i = 0; i < this.records.length; i++) {
29082
29112
  const record = this.records[i];
29083
29113
  record.isAggregator && record.type === AggregationType.AVG ? (this.sum += record.sum, this.count += record.count) : this.field && !isNaN(parseFloat(record[this.field])) && (this.sum += parseFloat(record[this.field]), this.count++);
29084
29114
  }
@@ -29089,23 +29119,29 @@
29089
29119
  super(...arguments), this.type = AggregationType.MAX, this.max = Number.MIN_SAFE_INTEGER;
29090
29120
  }
29091
29121
  push(record) {
29092
- record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator ? this.max = record.max > this.max ? record.max : this.max : "number" == typeof record ? this.max = record > this.max ? record : this.max : this.field && "number" == typeof record[this.field] ? this.max = record[this.field] > this.max ? record[this.field] : this.max : this.field && !isNaN(record[this.field]) && (this.max = parseFloat(record[this.field]) > this.max ? parseFloat(record[this.field]) : this.max)), this.clearCacheValue();
29122
+ record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator ? (this.children && this.children.push(record), this.max = record.max > this.max ? record.max : this.max) : "number" == typeof record ? this.max = record > this.max ? record : this.max : this.field && "number" == typeof record[this.field] ? this.max = record[this.field] > this.max ? record[this.field] : this.max : this.field && !isNaN(record[this.field]) && (this.max = parseFloat(record[this.field]) > this.max ? parseFloat(record[this.field]) : this.max)), this.clearCacheValue();
29093
29123
  }
29094
29124
  deleteRecord(record) {
29095
- record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.recalculate());
29125
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && this.children && (this.children = this.children.filter(item => item !== record)), this.recalculate());
29096
29126
  }
29097
29127
  updateRecord(oldRecord, newRecord) {
29098
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.recalculate());
29128
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && newRecord.isAggregator && this.children && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)), this.recalculate());
29099
29129
  }
29100
29130
  value() {
29101
- var _a;
29102
- return (null === (_a = this.records) || void 0 === _a ? void 0 : _a.length) >= 1 ? this.max : void 0;
29131
+ var _a, _b;
29132
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : (null === (_b = this.records) || void 0 === _b ? void 0 : _b.length) >= 1 ? this.max : void 0;
29103
29133
  }
29104
29134
  reset() {
29105
- this.records = [], this.max = Number.MIN_SAFE_INTEGER;
29135
+ this.records = [], this.changedValue = void 0, this.children = [], this.max = Number.MIN_SAFE_INTEGER;
29106
29136
  }
29107
29137
  recalculate() {
29108
- if (this.max = Number.MIN_SAFE_INTEGER, this._formatedValue = void 0, this.records) for (let i = 0; i < this.records.length; i++) {
29138
+ if (this.max = Number.MIN_SAFE_INTEGER, this._formatedValue = void 0, this.children && this.children.length > 0) for (let i = 0; i < this.children.length; i++) {
29139
+ const child = this.children[i];
29140
+ if (child.isAggregator) {
29141
+ const childValue = child.value();
29142
+ this.max = Math.max(this.max, childValue);
29143
+ }
29144
+ } else if (this.records) for (let i = 0; i < this.records.length; i++) {
29109
29145
  const record = this.records[i];
29110
29146
  record.isAggregator ? this.max = record.max > this.max ? record.max : this.max : "number" == typeof record ? this.max = record > this.max ? record : this.max : this.field && "number" == typeof record[this.field] ? this.max = record[this.field] > this.max ? record[this.field] : this.max : this.field && !isNaN(record[this.field]) && (this.max = parseFloat(record[this.field]) > this.max ? parseFloat(record[this.field]) : this.max);
29111
29147
  }
@@ -29116,23 +29152,29 @@
29116
29152
  super(...arguments), this.type = AggregationType.MIN, this.min = Number.MAX_SAFE_INTEGER;
29117
29153
  }
29118
29154
  push(record) {
29119
- record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator ? this.min = record.min < this.min ? record.min : this.min : "number" == typeof record ? this.min = record < this.min ? record : this.min : this.field && "number" == typeof record[this.field] ? this.min = record[this.field] < this.min ? record[this.field] : this.min : this.field && !isNaN(record[this.field]) && (this.min = parseFloat(record[this.field]) < this.min ? parseFloat(record[this.field]) : this.min)), this.clearCacheValue();
29155
+ record && (this.isRecord && this.records && (record.isAggregator ? this.records.push(...record.records) : this.records.push(record)), record.isAggregator ? (this.children && this.children.push(record), this.min = record.min < this.min ? record.min : this.min) : "number" == typeof record ? this.min = record < this.min ? record : this.min : this.field && "number" == typeof record[this.field] ? this.min = record[this.field] < this.min ? record[this.field] : this.min : this.field && !isNaN(record[this.field]) && (this.min = parseFloat(record[this.field]) < this.min ? parseFloat(record[this.field]) : this.min)), this.clearCacheValue();
29120
29156
  }
29121
29157
  deleteRecord(record) {
29122
- record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.recalculate());
29158
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), record.isAggregator && this.children && (this.children = this.children.filter(item => item !== record)), this.recalculate());
29123
29159
  }
29124
29160
  updateRecord(oldRecord, newRecord) {
29125
- oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.recalculate());
29161
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), oldRecord.isAggregator && newRecord.isAggregator && this.children && (this.children = this.children.map(item => item === oldRecord ? newRecord : item)), this.recalculate());
29126
29162
  }
29127
29163
  value() {
29128
- var _a;
29129
- return (null === (_a = this.records) || void 0 === _a ? void 0 : _a.length) >= 1 ? this.min : void 0;
29164
+ var _a, _b;
29165
+ return null !== (_a = this.changedValue) && void 0 !== _a ? _a : (null === (_b = this.records) || void 0 === _b ? void 0 : _b.length) >= 1 ? this.min : void 0;
29130
29166
  }
29131
29167
  reset() {
29132
- this.records = [], this.min = Number.MAX_SAFE_INTEGER;
29168
+ this.records = [], this.changedValue = void 0, this.children = [], this.min = Number.MAX_SAFE_INTEGER;
29133
29169
  }
29134
29170
  recalculate() {
29135
- if (this.min = Number.MAX_SAFE_INTEGER, this._formatedValue = void 0, this.records) for (let i = 0; i < this.records.length; i++) {
29171
+ if (this.min = Number.MAX_SAFE_INTEGER, this._formatedValue = void 0, this.children && this.children.length > 0) for (let i = 0; i < this.children.length; i++) {
29172
+ const child = this.children[i];
29173
+ if (child.isAggregator) {
29174
+ const childValue = child.value();
29175
+ this.min = Math.min(this.min, childValue);
29176
+ }
29177
+ } else if (this.records) for (let i = 0; i < this.records.length; i++) {
29136
29178
  const record = this.records[i];
29137
29179
  record.isAggregator ? this.min = record.min < this.min ? record.min : this.min : "number" == typeof record ? this.min = record < this.min ? record : this.min : this.field && "number" == typeof record[this.field] ? this.min = record[this.field] < this.min ? record[this.field] : this.min : this.field && !isNaN(record[this.field]) && (this.min = parseFloat(record[this.field]) < this.min ? parseFloat(record[this.field]) : this.min);
29138
29180
  }
@@ -29797,6 +29839,16 @@
29797
29839
  return mode;
29798
29840
  }
29799
29841
  Env.dpr = 0;
29842
+ function clearPageSelection() {
29843
+ try {
29844
+ const selection = window.getSelection();
29845
+ if (selection) {
29846
+ if ("function" == typeof selection.removeAllRanges) return void selection.removeAllRanges();
29847
+ if ("function" == typeof selection.empty) return void selection.empty();
29848
+ if ("function" == typeof selection.collapse) return void selection.collapse(document.body, 0);
29849
+ }
29850
+ } catch (error) {}
29851
+ }
29800
29852
 
29801
29853
  function importStyle$2() {
29802
29854
  if ("node" === Env.mode) return;
@@ -32022,15 +32074,16 @@
32022
32074
  }, (_, i) => i), "tree" === rowHierarchyType && this.initTreeHierarchyState(), this.rowHierarchyType = rowHierarchyType, this.updatePagerData();
32023
32075
  }
32024
32076
  initTreeHierarchyState() {
32025
- var _a;
32026
- this.currentIndexedData = Array.from({
32077
+ var _a, _b;
32078
+ this._sourceLength = (null === (_a = this._source) || void 0 === _a ? void 0 : _a.length) || 0, this.currentIndexedData = Array.from({
32027
32079
  length: this._sourceLength
32028
32080
  }, (_, i) => i);
32029
32081
  let nodeLength = this._sourceLength;
32030
32082
  for (let i = 0; i < nodeLength; i++) {
32031
32083
  const indexKey = this.currentIndexedData[i],
32032
- nodeData = this.getOriginalRecord(indexKey),
32033
- children = null !== (_a = nodeData.filteredChildren) && void 0 !== _a ? _a : nodeData.children;
32084
+ nodeData = this.getOriginalRecord(indexKey);
32085
+ if (!nodeData) continue;
32086
+ const children = null !== (_b = nodeData.filteredChildren) && void 0 !== _b ? _b : nodeData.children;
32034
32087
  if ((null == children ? void 0 : children.length) > 0) {
32035
32088
  if (this.hierarchyExpandLevel > 1 ? !nodeData.hierarchyState && (nodeData.hierarchyState = HierarchyState.expand) : !nodeData.hierarchyState && (nodeData.hierarchyState = HierarchyState.collapse), this.hasHierarchyStateExpand = !0, nodeData.hierarchyState === HierarchyState.collapse) continue;
32036
32089
  const childrenLength = this.initChildrenNodeHierarchy(indexKey, this.hierarchyExpandLevel, 2, nodeData);
@@ -32559,9 +32612,11 @@
32559
32612
  targetNextIndexs = Array.isArray(targetNextIndexs) ? [...targetNextIndexs] : [targetNextIndexs], targetNextIndexs.length < targetIndexs.length && targetIndexs.splice(targetIndexs.length - 1, 1);
32560
32613
  }
32561
32614
  if (sourceI = sourceIndexs.splice(sourceIndexs.length - 1, 1)[0], targetI = targetIndexs.splice(targetIndexs.length - 1, 1)[0], sourceIndexs.length >= 1) {
32562
- const parent = this.getOriginalRecord(sourceIndexs),
32563
- sourceIds = parent.filteredChildren ? parent.filteredChildren.splice(sourceI, 1) : parent.children.splice(sourceI, 1);
32564
- sourceIds.unshift(targetI, 0), Array.prototype.splice.apply(null !== (_c = parent.filteredChildren) && void 0 !== _c ? _c : parent.children, sourceIds);
32615
+ const parent = this.getOriginalRecord(sourceIndexs);
32616
+ if (parent) {
32617
+ const sourceIds = parent.filteredChildren ? parent.filteredChildren.splice(sourceI, 1) : parent.children.splice(sourceI, 1);
32618
+ sourceIds.unshift(targetI, 0), Array.prototype.splice.apply(null !== (_c = parent.filteredChildren) && void 0 !== _c ? _c : parent.children, sourceIds);
32619
+ }
32565
32620
  } else {
32566
32621
  const sourceIds = this.records.splice(sourceI, 1);
32567
32622
  sourceIds.unshift(targetI, 0), Array.prototype.splice.apply(this.records, sourceIds);
@@ -32582,6 +32637,7 @@
32582
32637
  if (this.hierarchyExpandLevel) {
32583
32638
  for (let i = 0; i < this._sourceLength; i++) {
32584
32639
  const nodeData = this.getOriginalRecord(i);
32640
+ if (!nodeData) continue;
32585
32641
  (null !== (_a = nodeData.filteredChildren) && void 0 !== _a ? _a : nodeData.children) && !nodeData.hierarchyState && (nodeData.hierarchyState = HierarchyState.collapse);
32586
32642
  }
32587
32643
  this.currentIndexedData = Array.from({
@@ -32590,8 +32646,9 @@
32590
32646
  let nodeLength = this._sourceLength;
32591
32647
  for (let i = 0; i < nodeLength; i++) {
32592
32648
  const indexKey = this.currentIndexedData[i],
32593
- nodeData = this.getOriginalRecord(indexKey),
32594
- children = null !== (_b = nodeData.filteredChildren) && void 0 !== _b ? _b : nodeData.children;
32649
+ nodeData = this.getOriginalRecord(indexKey);
32650
+ if (!nodeData) continue;
32651
+ const children = null !== (_b = nodeData.filteredChildren) && void 0 !== _b ? _b : nodeData.children;
32595
32652
  if ((null == children ? void 0 : children.length) > 0 && nodeData.hierarchyState === HierarchyState.expand) {
32596
32653
  this.hasHierarchyStateExpand = !0;
32597
32654
  const childrenLength = this.restoreChildrenNodeHierarchy(indexKey, nodeData);
@@ -34690,9 +34747,279 @@
34690
34747
  return !1;
34691
34748
  }
34692
34749
 
34750
+ let sort_color, sort_color_opacity, sort_color_2, sort_color_opacity_2, sort_size, sort_size_2, frozen_color, frozen_color_opacity, freeze_color_opacity, frozen_color_2, frozen_color_opacity_2, frozen_size, frozen_size_2, collapse_color, collapse_color_opacity, collapse_size, collapse_size_2, expand_color, expand_color_opacity, expand_size, expand_size_2, dragReorder_color, dragReorder_color_opacity, dragReorder_size;
34751
+ function setIconColor(themeIconsColor) {
34752
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
34753
+ sort_color = null !== (_a = null == themeIconsColor ? void 0 : themeIconsColor.sort_color) && void 0 !== _a ? _a : "#282F38", sort_color_opacity = null !== (_b = null == themeIconsColor ? void 0 : themeIconsColor.sort_color_opacity) && void 0 !== _b ? _b : "0.35", sort_color_2 = null !== (_c = null == themeIconsColor ? void 0 : themeIconsColor.sort_color_2) && void 0 !== _c ? _c : "#416EFF", sort_color_opacity_2 = null !== (_d = null == themeIconsColor ? void 0 : themeIconsColor.sort_color_opacity_2) && void 0 !== _d ? _d : "1", sort_size = null !== (_e = null == themeIconsColor ? void 0 : themeIconsColor.sort_size) && void 0 !== _e ? _e : 16, sort_size_2 = null !== (_f = null == themeIconsColor ? void 0 : themeIconsColor.sort_size_2) && void 0 !== _f ? _f : 22, frozen_color = null !== (_g = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color) && void 0 !== _g ? _g : "#282F38", frozen_color_opacity = null !== (_h = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_opacity) && void 0 !== _h ? _h : "0.35", freeze_color_opacity = null !== (_j = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_opacity) && void 0 !== _j ? _j : "0.2", frozen_color_2 = null !== (_k = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_2) && void 0 !== _k ? _k : "#416EFF", frozen_color_opacity_2 = null !== (_l = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_opacity_2) && void 0 !== _l ? _l : "1", frozen_size = null !== (_m = null == themeIconsColor ? void 0 : themeIconsColor.frozen_size) && void 0 !== _m ? _m : 22, frozen_size_2 = null !== (_o = null == themeIconsColor ? void 0 : themeIconsColor.frozen_size_2) && void 0 !== _o ? _o : 22, collapse_color = null !== (_p = null == themeIconsColor ? void 0 : themeIconsColor.collapse_color) && void 0 !== _p ? _p : "#141414", collapse_color_opacity = null !== (_q = null == themeIconsColor ? void 0 : themeIconsColor.collapse_color_opacity) && void 0 !== _q ? _q : "0.65", collapse_size = null !== (_r = null == themeIconsColor ? void 0 : themeIconsColor.collapse_size) && void 0 !== _r ? _r : 16, collapse_size_2 = null !== (_s = null == themeIconsColor ? void 0 : themeIconsColor.frozen_size_2) && void 0 !== _s ? _s : 22, expand_color = null !== (_t = null == themeIconsColor ? void 0 : themeIconsColor.expand_color) && void 0 !== _t ? _t : "#141414", expand_color_opacity = null !== (_u = null == themeIconsColor ? void 0 : themeIconsColor.expand_color_opacity) && void 0 !== _u ? _u : "0.65", expand_size = null !== (_v = null == themeIconsColor ? void 0 : themeIconsColor.expand_size) && void 0 !== _v ? _v : 16, expand_size_2 = null !== (_w = null == themeIconsColor ? void 0 : themeIconsColor.expand_size_2) && void 0 !== _w ? _w : 22, dragReorder_color = null !== (_x = null == themeIconsColor ? void 0 : themeIconsColor.dragReorder_color) && void 0 !== _x ? _x : "#666666", dragReorder_color_opacity = null !== (_y = null == themeIconsColor ? void 0 : themeIconsColor.dragReorder_color_opacity) && void 0 !== _y ? _y : "1", dragReorder_size = null !== (_z = null == themeIconsColor ? void 0 : themeIconsColor.dragReorder_size) && void 0 !== _z ? _z : 20;
34754
+ }
34755
+ const builtins = {
34756
+ get sort_downward() {
34757
+ return {
34758
+ type: "svg",
34759
+ svg: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.6665 9H11.3332L7.99984 13.1667L4.6665 9Z" fill="${sort_color_2}" fill-opacity="${sort_color_opacity_2}"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/></svg> `,
34760
+ width: sort_size,
34761
+ height: sort_size,
34762
+ funcType: IconFuncTypeEnum.sort,
34763
+ name: "sort_downward",
34764
+ positionType: IconPosition.contentRight,
34765
+ marginLeft: 3,
34766
+ hover: {
34767
+ width: sort_size_2,
34768
+ height: sort_size_2,
34769
+ bgColor: "rgba(101, 117, 168, 0.1)"
34770
+ },
34771
+ cursor: "pointer"
34772
+ };
34773
+ },
34774
+ get sort_upward() {
34775
+ return {
34776
+ type: "svg",
34777
+ svg: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.6665 9H11.3332L7.99984 13.1667L4.6665 9Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="${sort_color_2}" fill-opacity="${sort_color_opacity_2}"/> </svg>`,
34778
+ width: sort_size,
34779
+ height: sort_size,
34780
+ funcType: IconFuncTypeEnum.sort,
34781
+ positionType: IconPosition.contentRight,
34782
+ name: "sort_upward",
34783
+ marginLeft: 3,
34784
+ hover: {
34785
+ width: sort_size_2,
34786
+ height: sort_size_2,
34787
+ bgColor: "rgba(101, 117, 168, 0.1)"
34788
+ },
34789
+ cursor: "pointer"
34790
+ };
34791
+ },
34792
+ get sort_normal() {
34793
+ return {
34794
+ type: "svg",
34795
+ svg: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.6665 9H11.3332L7.99984 13.1667L4.6665 9Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/></svg> `,
34796
+ width: sort_size,
34797
+ height: sort_size,
34798
+ funcType: IconFuncTypeEnum.sort,
34799
+ positionType: IconPosition.contentRight,
34800
+ name: "sort_normal",
34801
+ marginLeft: 3,
34802
+ hover: {
34803
+ width: sort_size_2,
34804
+ height: sort_size_2,
34805
+ bgColor: "rgba(101, 117, 168, 0.1)"
34806
+ },
34807
+ cursor: "pointer"
34808
+ };
34809
+ },
34810
+ get freeze() {
34811
+ return {
34812
+ type: "svg",
34813
+ svg: `<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0)"><path d="M17.1313 8.42047C17.1932 8.48238 17.2423 8.55587 17.2759 8.63676C17.3094 8.71764 17.3266 8.80434 17.3266 8.89189C17.3266 8.97944 17.3094 9.06613 17.2759 9.14702C17.2423 9.2279 17.1932 9.3014 17.1313 9.3633L13.3843 13.1103C13.7007 14.3048 13.5305 15.4443 12.8388 16.2395C12.8104 16.2781 12.7778 16.3136 12.7417 16.3451L12.712 16.3755C12.6501 16.4374 12.5766 16.4865 12.4957 16.52C12.4148 16.5535 12.3281 16.5707 12.2406 16.5707C12.153 16.5707 12.0663 16.5535 11.9854 16.52C11.9046 16.4865 11.8311 16.4374 11.7692 16.3755L9.17633 13.7826L6.05316 16.9058L5.11983 17.0925C5.09291 17.0979 5.06508 17.0965 5.03881 17.0886C5.01254 17.0806 4.98863 17.0663 4.96923 17.0469C4.94982 17.0275 4.9355 17.0036 4.92755 16.9773C4.9196 16.951 4.91827 16.9232 4.92366 16.8963L5.11033 15.963L8.23333 12.8396L5.64066 10.2471C5.57875 10.1852 5.52964 10.1117 5.49614 10.0309C5.46263 9.94997 5.44539 9.86327 5.44539 9.77572C5.44539 9.68817 5.46263 9.60148 5.49614 9.52059C5.52964 9.43971 5.57875 9.36621 5.64066 9.3043C5.65066 9.2943 5.66066 9.2843 5.67099 9.27464C5.70266 9.2383 5.73833 9.20547 5.77766 9.17664C6.57283 8.48564 7.71199 8.31564 8.90599 8.63197L12.6528 4.88497C12.7147 4.82306 12.7882 4.77395 12.8691 4.74045C12.95 4.70694 13.0367 4.6897 13.1242 4.6897C13.2118 4.6897 13.2985 4.70694 13.3794 4.74045C13.4603 4.77395 13.5338 4.82306 13.5957 4.88497L17.1312 8.42047H17.1313ZM15.7172 8.8918L13.1243 6.29914L9.56483 9.8588C9.47574 9.94788 9.36323 10.0099 9.24034 10.0376C9.11746 10.0654 8.98922 10.0578 8.87049 10.0156C8.22783 9.78764 7.63899 9.7553 7.17749 9.89814L12.1182 14.8388C12.261 14.3771 12.2287 13.7885 12.0007 13.146C11.9585 13.0272 11.9509 12.899 11.9787 12.7761C12.0064 12.6532 12.0684 12.5407 12.1575 12.4516L15.7172 8.89164V8.8918Z" fill="${frozen_color}" fill-opacity="${freeze_color_opacity}"/></g><defs><clipPath id="clip0"><rect width="22" height="22" fill="white"/></clipPath></defs></svg>`,
34814
+ width: frozen_size,
34815
+ height: frozen_size,
34816
+ name: "freeze",
34817
+ funcType: IconFuncTypeEnum.frozen,
34818
+ positionType: IconPosition.right,
34819
+ marginRight: 0,
34820
+ hover: {
34821
+ width: frozen_size_2,
34822
+ height: frozen_size_2,
34823
+ bgColor: "rgba(101, 117, 168, 0.1)"
34824
+ },
34825
+ cursor: "pointer"
34826
+ };
34827
+ },
34828
+ get frozen() {
34829
+ return {
34830
+ type: "svg",
34831
+ svg: `<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.49975 3.66663C8.32294 3.66663 8.15337 3.73686 8.02835 3.86189C7.90332 3.98691 7.83309 4.15648 7.83309 4.33329V9.63246C6.76475 10.2533 6.07942 11.1795 6.00625 12.2308C5.99892 12.2786 5.99692 12.3268 6.00009 12.3741L5.99975 12.4166C5.99975 12.5934 6.06999 12.763 6.19501 12.888C6.32004 13.0131 6.48961 13.0833 6.66642 13.0833H10.3333L10.3331 17.5L10.8611 18.292C10.8763 18.3148 10.8969 18.3335 10.9211 18.3464C10.9453 18.3594 10.9723 18.3662 10.9998 18.3662C11.0272 18.3662 11.0542 18.3594 11.0784 18.3464C11.1026 18.3335 11.1232 18.3148 11.1384 18.292L11.6664 17.5L11.6666 13.0833H15.3331C15.5099 13.0833 15.6795 13.0131 15.8045 12.888C15.9295 12.763 15.9998 12.5934 15.9998 12.4166C15.9998 12.4025 15.9998 12.3883 15.9994 12.3741C16.0028 12.3263 16.0008 12.2776 15.9933 12.2295C15.9196 11.1786 15.2343 10.2528 14.1664 9.63229V4.33329C14.1664 4.15648 14.0962 3.98691 13.9712 3.86189C13.8461 3.73686 13.6766 3.66663 13.4998 3.66663H8.49975Z" fill="${frozen_color}" fill-opacity="${frozen_color_opacity}"/></svg>`,
34832
+ width: frozen_size,
34833
+ height: frozen_size,
34834
+ name: "frozen",
34835
+ funcType: IconFuncTypeEnum.frozen,
34836
+ positionType: IconPosition.right,
34837
+ marginRight: 0,
34838
+ hover: {
34839
+ width: frozen_size_2,
34840
+ height: frozen_size_2,
34841
+ bgColor: "rgba(101, 117, 168, 0.1)"
34842
+ },
34843
+ cursor: "pointer"
34844
+ };
34845
+ },
34846
+ get frozenCurrent() {
34847
+ return {
34848
+ type: "svg",
34849
+ svg: `<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.49975 3.66663C8.32294 3.66663 8.15337 3.73686 8.02835 3.86189C7.90332 3.98691 7.83309 4.15648 7.83309 4.33329V9.63246C6.76475 10.2533 6.07942 11.1795 6.00625 12.2308C5.99892 12.2786 5.99692 12.3268 6.00009 12.3741L5.99975 12.4166C5.99975 12.5934 6.06999 12.763 6.19501 12.888C6.32004 13.0131 6.48961 13.0833 6.66642 13.0833H10.3333L10.3331 17.5L10.8611 18.292C10.8763 18.3148 10.8969 18.3335 10.9211 18.3464C10.9453 18.3594 10.9723 18.3662 10.9998 18.3662C11.0272 18.3662 11.0542 18.3594 11.0784 18.3464C11.1026 18.3335 11.1232 18.3148 11.1384 18.292L11.6664 17.5L11.6666 13.0833H15.3331C15.5099 13.0833 15.6795 13.0131 15.8045 12.888C15.9295 12.763 15.9998 12.5934 15.9998 12.4166C15.9998 12.4025 15.9998 12.3883 15.9994 12.3741C16.0028 12.3263 16.0008 12.2776 15.9933 12.2295C15.9196 11.1786 15.2343 10.2528 14.1664 9.63229V4.33329C14.1664 4.15648 14.0962 3.98691 13.9712 3.86189C13.8461 3.73686 13.6766 3.66663 13.4998 3.66663H8.49975Z" fill="${frozen_color_2}" fill-opacity="${frozen_color_opacity_2}"/></svg>`,
34850
+ width: frozen_size,
34851
+ height: frozen_size,
34852
+ funcType: IconFuncTypeEnum.frozen,
34853
+ positionType: IconPosition.right,
34854
+ name: "frozenCurrent",
34855
+ marginRight: 0,
34856
+ hover: {
34857
+ width: frozen_size_2,
34858
+ height: frozen_size_2,
34859
+ bgColor: "rgba(101, 117, 168, 0.1)"
34860
+ },
34861
+ cursor: "pointer"
34862
+ };
34863
+ },
34864
+ get dropdownIcon() {
34865
+ return {
34866
+ type: "svg",
34867
+ svg: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g><rect x="2" y="1" width="20" height="20" rx="10" fill="white"/><rect x="2.5" y="1.5" width="19" height="19" rx="9.5" stroke="#959DA5"/></g><path d="M14.9492 9.39531C15.0086 9.31911 15.0165 9.21887 14.9698 9.1356C14.923 9.05234 14.8294 9 14.7273 9L9.27273 9C9.17057 9 9.07697 9.05234 9.03023 9.1356C8.98348 9.21887 8.99142 9.31911 9.0508 9.39531L11.7781 12.8953C11.8293 12.961 11.9119 13 12 13C12.0881 13 12.1707 12.961 12.2219 12.8953L14.9492 9.39531Z" fill="#4F5965"/></svg>',
34868
+ width: 24,
34869
+ height: 24,
34870
+ funcType: IconFuncTypeEnum.dropDown,
34871
+ positionType: IconPosition.absoluteRight,
34872
+ name: "dropdownIcon",
34873
+ marginRight: 0,
34874
+ hover: {
34875
+ width: 24,
34876
+ height: 24,
34877
+ bgColor: "rgba(101, 117, 168, 0.1)",
34878
+ image: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g><rect x="2" y="1" width="20" height="20" rx="10" fill="#1E54C9"/><rect x="2.5" y="1.5" width="19" height="19" rx="9.5" stroke="#141414" stroke-opacity="0.2"/></g><path d="M14.9492 9.39531C15.0086 9.31911 15.0165 9.21887 14.9698 9.1356C14.923 9.05234 14.8294 9 14.7273 9L9.27273 9C9.17057 9 9.07697 9.05234 9.03023 9.1356C8.98348 9.21887 8.99142 9.31911 9.0508 9.39531L11.7781 12.8953C11.8293 12.961 11.9119 13 12 13C12.0881 13 12.1707 12.961 12.2219 12.8953L14.9492 9.39531Z" fill="white"/></svg>'
34879
+ },
34880
+ cursor: "pointer",
34881
+ visibleTime: "mouseenter_cell"
34882
+ };
34883
+ },
34884
+ get play() {
34885
+ return {
34886
+ type: "svg",
34887
+ svg: '<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01" /><path d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z" fill="none" stroke="#686a6e" stroke-width="4" stroke-linejoin="round" stroke-opacity="0.7" /><path d="M20 24V17.0718L26 20.5359L32 24L26 27.4641L20 30.9282V24Z" fill="none" stroke="#686a6e" stroke-width="4" stroke-linejoin="round" stroke-opacity="0.7" /></svg>',
34888
+ width: 24,
34889
+ height: 24,
34890
+ funcType: IconFuncTypeEnum.play,
34891
+ positionType: IconPosition.right,
34892
+ name: "play",
34893
+ marginRight: 0,
34894
+ hover: {
34895
+ width: 24,
34896
+ height: 24,
34897
+ bgColor: "rgba(101, 117, 168, 0.1)"
34898
+ },
34899
+ cursor: "pointer"
34900
+ };
34901
+ },
34902
+ get damage_pic() {
34903
+ return {
34904
+ type: "svg",
34905
+ svg: '<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 10V38C5 39.1046 5.89543 40 7 40H14H18L15 29L22 27L21 20L29 16L27 13L30 8H7C5.89543 8 5 8.89543 5 10Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M43 38V10C43 8.89543 42.1046 8 41 8H38L34 14L37 19L28 23L29 31L22 33L24 40H41C42.1046 40 43 39.1046 43 38Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 18C15.3284 18 16 17.3284 16 16.5C16 15.6716 15.3284 15 14.5 15C13.6716 15 13 15.6716 13 16.5C13 17.3284 13.6716 18 14.5 18Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>',
34906
+ width: 24,
34907
+ height: 24,
34908
+ funcType: IconFuncTypeEnum.damagePic,
34909
+ positionType: IconPosition.left,
34910
+ name: "damage_pic",
34911
+ marginRight: 0,
34912
+ hover: {
34913
+ width: 24,
34914
+ height: 24,
34915
+ bgColor: "rgba(101, 117, 168, 0.1)"
34916
+ },
34917
+ cursor: "pointer"
34918
+ };
34919
+ },
34920
+ get loading_pic() {
34921
+ return {
34922
+ type: "svg",
34923
+ svg: '<svg viewBox="0 0 400 300" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="50" y="65" width="301" height="170"><path d="M350.3 65H50v169.8h300.3V65Z" fill="#fff"/></mask><g mask="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.3 233.2h32.8v-36.8H58.3v36.8Z" fill="#C7DEFF"/><path d="M91.1 224.5v8.8H58.3M82.4 196.2H58.3" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M305.4 182.5s-2.7 12.6 0 17.4c2.7 4.8 8.3 6.7 12.4 4.4 4.2-2.4 5.3-8.1 2.6-12.9-2.7-4.8-15-8.9-15-8.9ZM336 204.7c4.3 2 9.7-.4 12-5.4 2.3-5-1.5-17.3-1.5-17.3s-11.8 5.1-14.1 10.1c-2.3 5-.7 10.6 3.6 12.6Z" fill="#00E4E5"/><path fill-rule="evenodd" clip-rule="evenodd" d="M326.7 174s-10 11.8-10 18.6c0 6.7 4.5 12.2 10 12.2s10-5.5 10-12.3c0-6.8-10-18.5-10-18.5Z" fill="#00E4E5"/><path d="M332.3 181.5c2.3 3.6 4.4 7.8 4.4 10.9M316.7 192.5c0-3.1 2.1-7.2 4.3-10.8" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M343.1 227.3v-9.7h-34v9.7c0 3.7 3 6.6 6.6 6.6h20.9c3.6 0 6.5-2.9 6.5-6.6Z" fill="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M350.4 220.8V198H302v22.8c0 5.9 4.8 10.7 10.7 10.7h26.9c5.9 0 10.7-4.8 10.8-10.7Z" fill="#C7DEFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M331.7 74.2H117.8L87.4 203h213.8l30.5-128.8Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M337 74.2h-6.2l-30.6 129.2h6.2L337 74.2Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M303.8 203.5h2.4l30.7-129.3h-1.8l-31.3 129.3Z" fill="#C7DEFF"/><path d="m337 74.2-30.6 129.2h-5.9" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M229.9 202.1h-47.6l2 9.6h47.3l-1.7-9.6Z" fill="#C7DEFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M94.7 172.6 87.4 203h213.1l7.8-30.4H94.7Z" fill="#006EFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M94.7 172.6 87.4 203h213.1l7.8-30.4H94.7Z" fill="#006EFF"/><path d="M138.5 74.2h193.2l-23.4 98.6M94.5 172.7l11-46.3M104.8 155.4l-2.3 11.5h6.7M316 112.1l1.1-4.5" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M148.3 138.1h97V119h-97v19.1Z" fill="#00E4E5"/><path d="M303.1 80.6h20.3l-4.6 19.6M228.3 234.3c3.6 0 6.3-3.2 5.7-6.8l-4.1-24.1" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M226.2 229.5h-68.9v1.2c0 2 1.6 3.7 3.7 3.7h60.1c2.8 0 5-2.2 5.1-4.9Z" fill="#C7DEFF"/><path d="M180.699 226.8h-19.9c-2.8 0-4.6 3-3.3 5.5m0 0c.6 1.2 1.9 2 3.3 2h57.8M175.9 203.4l3.6 17.6M241.2 234.3h65.1M104.6 234.3h41.3" stroke="#071F4D"/><path d="M206.2 234.3h14.9c3.1 0 5.5-2.8 5-5.9l-4.3-24.9M160.7 226.8h46M62.2 226.1h-9.5c-1.2 0-2.2-1-2.2-2.2v-18.3c0-1.2 1-2.2 2.2-2.2h9.5" stroke="#071F4D"/><path d="M53.4 171.7H68c2.1 0 3.7 1.7 3.7 3.7v16.1M79.1 192v-21.8c0-2.5 2-4.6 4.6-4.6h2.2c2.5 0 4.5-2 4.5-4.5m0 0c0-2.5-2-4.5-4.5-4.5H56.1c-2.4 0-4.3-1.9-4.3-4.3V148M71.2 165.2h-18M64 181.7v10.1" stroke="#C7DEFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M85.7 120H124c4.3 0 7.7-3.5 7.7-7.7V65.5H94.2c-4.7 0-8.5 4.9-8.5 11V120Z" fill="#C7DEFF"/><path d="M85.7 110.7V73c0-4.1 3.4-7.5 7.5-7.5h38.5M146.2 73.8v-2.5c0-3.2-2-5.8-5.8-5.8-2.8 0-6 1.1-6 5.8v42.4c0 4.7-3.8 8.5-8.5 8.5h-15.6" stroke="#071F4D"/><path d="M119.7 122.3H87c-6.1 0-11.1-5-11.1-11.1m0 0h39M126.1 122.3c-6.1 0-11.1-5-11.1-11.1" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M85.4 122.1h37.2c-6.5-1.8-8-10.5-8-10.5H76.2c.6 8.8 9.2 10.5 9.2 10.5Z" fill="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M95.8 102.9h4.8V83.6h-4.8v19.3ZM106.6 102.9h4.8V77.6h-4.8v25.3ZM117.3 102.9h4.8V89.1h-4.8v13.8Z" fill="#fff"/><path d="M273.2 195.9h16.9M261.2 195.9h5" stroke="#fff"/><path d="M62.4 201.9v2.9M62.4 224.5v2.9" stroke="#071F4D"/><path d="m153.6 138.1 9.7-19.1M168.8 138.1l9.7-19.1M184.1 138.1l9.7-19.1M199.4 138.1l9.7-19.1M214.6 138.1l9.8-19.1M229.9 138.1l9.7-19.1" stroke="#fff"/><path d="M148.3 138.1h121.6V119H148.3v19.1Z" stroke="#071F4D"/></g></svg>',
34924
+ width: 400,
34925
+ height: 300,
34926
+ name: "loading_pic",
34927
+ positionType: IconPosition.left
34928
+ };
34929
+ },
34930
+ get expand() {
34931
+ return {
34932
+ type: "svg",
34933
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">\n <path d="M4.64988 6.81235C4.38797 6.48497 4.62106 6 5.04031 6L10.9597 6C11.3789 6 11.612 6.48497 11.3501 6.81235L8.39043 10.512C8.19027 10.7622 7.80973 10.7622 7.60957 10.512L4.64988 6.81235Z" fill="${expand_color}" fill-opacity="${expand_color_opacity}"/>\n </svg>`,
34934
+ width: expand_size,
34935
+ height: expand_size,
34936
+ funcType: IconFuncTypeEnum.expand,
34937
+ name: "expand",
34938
+ positionType: IconPosition.contentLeft,
34939
+ marginLeft: 0,
34940
+ marginRight: 4,
34941
+ hover: {
34942
+ width: expand_size_2,
34943
+ height: expand_size_2,
34944
+ bgColor: "rgba(101, 117, 168, 0.1)"
34945
+ },
34946
+ cursor: "pointer"
34947
+ };
34948
+ },
34949
+ get collapse() {
34950
+ return {
34951
+ type: "svg",
34952
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">\n <path d="M5.81235 11.3501C5.48497 11.612 5 11.3789 5 10.9597L5 5.04031C5 4.62106 5.48497 4.38797 5.81235 4.64988L9.51196 7.60957C9.76216 7.80973 9.76216 8.19027 9.51196 8.39044L5.81235 11.3501Z" fill="${collapse_color}" fill-opacity="${collapse_color_opacity}"/>\n </svg>`,
34953
+ width: collapse_size,
34954
+ height: collapse_size,
34955
+ funcType: IconFuncTypeEnum.collapse,
34956
+ name: "collapse",
34957
+ positionType: IconPosition.contentLeft,
34958
+ marginLeft: 0,
34959
+ marginRight: 4,
34960
+ hover: {
34961
+ width: collapse_size_2,
34962
+ height: collapse_size_2,
34963
+ bgColor: "rgba(101, 117, 168, 0.1)"
34964
+ },
34965
+ cursor: "pointer"
34966
+ };
34967
+ },
34968
+ get drillDown() {
34969
+ return {
34970
+ name: "drillDown",
34971
+ type: "svg",
34972
+ positionType: IconPosition.absolute,
34973
+ funcType: IconFuncTypeEnum.drillDown,
34974
+ svg: DrillDown,
34975
+ width: 13,
34976
+ height: 13,
34977
+ cursor: "pointer"
34978
+ };
34979
+ },
34980
+ get drillUp() {
34981
+ return {
34982
+ name: "drillUp",
34983
+ type: "svg",
34984
+ positionType: IconPosition.absolute,
34985
+ funcType: IconFuncTypeEnum.drillUp,
34986
+ svg: DrillUp,
34987
+ width: 13,
34988
+ height: 13,
34989
+ cursor: "pointer"
34990
+ };
34991
+ },
34992
+ get dragReorder() {
34993
+ return {
34994
+ type: "svg",
34995
+ svg: `<svg t="1710129136961" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5166" width="200" height="200"><path d="M362.666667 192m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5167"></path><path d="M661.333333 192m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5168"></path><path d="M362.666667 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5169"></path><path d="M661.333333 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5170"></path><path d="M362.666667 832m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5171"></path><path d="M661.333333 832m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5172"></path></svg>`,
34996
+ width: dragReorder_size,
34997
+ height: dragReorder_size,
34998
+ funcType: IconFuncTypeEnum.dragReorder,
34999
+ positionType: IconPosition.left,
35000
+ name: "dragReorder",
35001
+ marginLeft: -10,
35002
+ marginRight: 10,
35003
+ cursor: "grab"
35004
+ };
35005
+ }
35006
+ };
35007
+ const icons = {};
35008
+ function get$2() {
35009
+ return extend(builtins, icons);
35010
+ }
35011
+
34693
35012
  class Icon extends Image$1 {
34694
35013
  constructor(params) {
34695
- super(params), "mouseenter_cell" !== this.attribute.visibleTime && "click_cell" !== this.attribute.visibleTime || (this.attribute.opacity = 0), this.attribute.hoverImage && (this.attribute.originImage = this.attribute.image), this.attribute.isGif && this.attribute.gif && this.loadGif();
35014
+ super(params), this.failCallback = () => {
35015
+ const registeredIcons = get$2(),
35016
+ {
35017
+ svg: svg,
35018
+ src: src
35019
+ } = registeredIcons.damage_pic || {},
35020
+ image = svg || src;
35021
+ image && (super.image = image);
35022
+ }, "mouseenter_cell" !== this.attribute.visibleTime && "click_cell" !== this.attribute.visibleTime || (this.attribute.opacity = 0), this.attribute.hoverImage && (this.attribute.originImage = this.attribute.image), this.attribute.isGif && this.attribute.gif && this.loadGif();
34696
35023
  }
34697
35024
  loadGif() {
34698
35025
  this.playing = !1, ResourceLoader.GetFile(this.attribute.gif + "?role=gif" + `&radom=${Math.random()}`, "arrayBuffer").then(res => {
@@ -35244,268 +35571,6 @@
35244
35571
  }
35245
35572
  }
35246
35573
 
35247
- let sort_color, sort_color_opacity, sort_color_2, sort_color_opacity_2, sort_size, sort_size_2, frozen_color, frozen_color_opacity, freeze_color_opacity, frozen_color_2, frozen_color_opacity_2, frozen_size, frozen_size_2, collapse_color, collapse_color_opacity, collapse_size, collapse_size_2, expand_color, expand_color_opacity, expand_size, expand_size_2, dragReorder_color, dragReorder_color_opacity, dragReorder_size;
35248
- function setIconColor(themeIconsColor) {
35249
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
35250
- sort_color = null !== (_a = null == themeIconsColor ? void 0 : themeIconsColor.sort_color) && void 0 !== _a ? _a : "#282F38", sort_color_opacity = null !== (_b = null == themeIconsColor ? void 0 : themeIconsColor.sort_color_opacity) && void 0 !== _b ? _b : "0.35", sort_color_2 = null !== (_c = null == themeIconsColor ? void 0 : themeIconsColor.sort_color_2) && void 0 !== _c ? _c : "#416EFF", sort_color_opacity_2 = null !== (_d = null == themeIconsColor ? void 0 : themeIconsColor.sort_color_opacity_2) && void 0 !== _d ? _d : "1", sort_size = null !== (_e = null == themeIconsColor ? void 0 : themeIconsColor.sort_size) && void 0 !== _e ? _e : 16, sort_size_2 = null !== (_f = null == themeIconsColor ? void 0 : themeIconsColor.sort_size_2) && void 0 !== _f ? _f : 22, frozen_color = null !== (_g = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color) && void 0 !== _g ? _g : "#282F38", frozen_color_opacity = null !== (_h = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_opacity) && void 0 !== _h ? _h : "0.35", freeze_color_opacity = null !== (_j = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_opacity) && void 0 !== _j ? _j : "0.2", frozen_color_2 = null !== (_k = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_2) && void 0 !== _k ? _k : "#416EFF", frozen_color_opacity_2 = null !== (_l = null == themeIconsColor ? void 0 : themeIconsColor.frozen_color_opacity_2) && void 0 !== _l ? _l : "1", frozen_size = null !== (_m = null == themeIconsColor ? void 0 : themeIconsColor.frozen_size) && void 0 !== _m ? _m : 22, frozen_size_2 = null !== (_o = null == themeIconsColor ? void 0 : themeIconsColor.frozen_size_2) && void 0 !== _o ? _o : 22, collapse_color = null !== (_p = null == themeIconsColor ? void 0 : themeIconsColor.collapse_color) && void 0 !== _p ? _p : "#141414", collapse_color_opacity = null !== (_q = null == themeIconsColor ? void 0 : themeIconsColor.collapse_color_opacity) && void 0 !== _q ? _q : "0.65", collapse_size = null !== (_r = null == themeIconsColor ? void 0 : themeIconsColor.collapse_size) && void 0 !== _r ? _r : 16, collapse_size_2 = null !== (_s = null == themeIconsColor ? void 0 : themeIconsColor.frozen_size_2) && void 0 !== _s ? _s : 22, expand_color = null !== (_t = null == themeIconsColor ? void 0 : themeIconsColor.expand_color) && void 0 !== _t ? _t : "#141414", expand_color_opacity = null !== (_u = null == themeIconsColor ? void 0 : themeIconsColor.expand_color_opacity) && void 0 !== _u ? _u : "0.65", expand_size = null !== (_v = null == themeIconsColor ? void 0 : themeIconsColor.expand_size) && void 0 !== _v ? _v : 16, expand_size_2 = null !== (_w = null == themeIconsColor ? void 0 : themeIconsColor.expand_size_2) && void 0 !== _w ? _w : 22, dragReorder_color = null !== (_x = null == themeIconsColor ? void 0 : themeIconsColor.dragReorder_color) && void 0 !== _x ? _x : "#666666", dragReorder_color_opacity = null !== (_y = null == themeIconsColor ? void 0 : themeIconsColor.dragReorder_color_opacity) && void 0 !== _y ? _y : "1", dragReorder_size = null !== (_z = null == themeIconsColor ? void 0 : themeIconsColor.dragReorder_size) && void 0 !== _z ? _z : 20;
35251
- }
35252
- const builtins = {
35253
- get sort_downward() {
35254
- return {
35255
- type: "svg",
35256
- svg: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M4.6665 9H11.3332L7.99984 13.1667L4.6665 9Z" fill="${sort_color_2}" fill-opacity="${sort_color_opacity_2}"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/></svg> `,
35257
- width: sort_size,
35258
- height: sort_size,
35259
- funcType: IconFuncTypeEnum.sort,
35260
- name: "sort_downward",
35261
- positionType: IconPosition.contentRight,
35262
- marginLeft: 3,
35263
- hover: {
35264
- width: sort_size_2,
35265
- height: sort_size_2,
35266
- bgColor: "rgba(101, 117, 168, 0.1)"
35267
- },
35268
- cursor: "pointer"
35269
- };
35270
- },
35271
- get sort_upward() {
35272
- return {
35273
- type: "svg",
35274
- svg: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.6665 9H11.3332L7.99984 13.1667L4.6665 9Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="${sort_color_2}" fill-opacity="${sort_color_opacity_2}"/> </svg>`,
35275
- width: sort_size,
35276
- height: sort_size,
35277
- funcType: IconFuncTypeEnum.sort,
35278
- positionType: IconPosition.contentRight,
35279
- name: "sort_upward",
35280
- marginLeft: 3,
35281
- hover: {
35282
- width: sort_size_2,
35283
- height: sort_size_2,
35284
- bgColor: "rgba(101, 117, 168, 0.1)"
35285
- },
35286
- cursor: "pointer"
35287
- };
35288
- },
35289
- get sort_normal() {
35290
- return {
35291
- type: "svg",
35292
- svg: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.6665 9H11.3332L7.99984 13.1667L4.6665 9Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="${sort_color}" fill-opacity="${sort_color_opacity}"/></svg> `,
35293
- width: sort_size,
35294
- height: sort_size,
35295
- funcType: IconFuncTypeEnum.sort,
35296
- positionType: IconPosition.contentRight,
35297
- name: "sort_normal",
35298
- marginLeft: 3,
35299
- hover: {
35300
- width: sort_size_2,
35301
- height: sort_size_2,
35302
- bgColor: "rgba(101, 117, 168, 0.1)"
35303
- },
35304
- cursor: "pointer"
35305
- };
35306
- },
35307
- get freeze() {
35308
- return {
35309
- type: "svg",
35310
- svg: `<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0)"><path d="M17.1313 8.42047C17.1932 8.48238 17.2423 8.55587 17.2759 8.63676C17.3094 8.71764 17.3266 8.80434 17.3266 8.89189C17.3266 8.97944 17.3094 9.06613 17.2759 9.14702C17.2423 9.2279 17.1932 9.3014 17.1313 9.3633L13.3843 13.1103C13.7007 14.3048 13.5305 15.4443 12.8388 16.2395C12.8104 16.2781 12.7778 16.3136 12.7417 16.3451L12.712 16.3755C12.6501 16.4374 12.5766 16.4865 12.4957 16.52C12.4148 16.5535 12.3281 16.5707 12.2406 16.5707C12.153 16.5707 12.0663 16.5535 11.9854 16.52C11.9046 16.4865 11.8311 16.4374 11.7692 16.3755L9.17633 13.7826L6.05316 16.9058L5.11983 17.0925C5.09291 17.0979 5.06508 17.0965 5.03881 17.0886C5.01254 17.0806 4.98863 17.0663 4.96923 17.0469C4.94982 17.0275 4.9355 17.0036 4.92755 16.9773C4.9196 16.951 4.91827 16.9232 4.92366 16.8963L5.11033 15.963L8.23333 12.8396L5.64066 10.2471C5.57875 10.1852 5.52964 10.1117 5.49614 10.0309C5.46263 9.94997 5.44539 9.86327 5.44539 9.77572C5.44539 9.68817 5.46263 9.60148 5.49614 9.52059C5.52964 9.43971 5.57875 9.36621 5.64066 9.3043C5.65066 9.2943 5.66066 9.2843 5.67099 9.27464C5.70266 9.2383 5.73833 9.20547 5.77766 9.17664C6.57283 8.48564 7.71199 8.31564 8.90599 8.63197L12.6528 4.88497C12.7147 4.82306 12.7882 4.77395 12.8691 4.74045C12.95 4.70694 13.0367 4.6897 13.1242 4.6897C13.2118 4.6897 13.2985 4.70694 13.3794 4.74045C13.4603 4.77395 13.5338 4.82306 13.5957 4.88497L17.1312 8.42047H17.1313ZM15.7172 8.8918L13.1243 6.29914L9.56483 9.8588C9.47574 9.94788 9.36323 10.0099 9.24034 10.0376C9.11746 10.0654 8.98922 10.0578 8.87049 10.0156C8.22783 9.78764 7.63899 9.7553 7.17749 9.89814L12.1182 14.8388C12.261 14.3771 12.2287 13.7885 12.0007 13.146C11.9585 13.0272 11.9509 12.899 11.9787 12.7761C12.0064 12.6532 12.0684 12.5407 12.1575 12.4516L15.7172 8.89164V8.8918Z" fill="${frozen_color}" fill-opacity="${freeze_color_opacity}"/></g><defs><clipPath id="clip0"><rect width="22" height="22" fill="white"/></clipPath></defs></svg>`,
35311
- width: frozen_size,
35312
- height: frozen_size,
35313
- name: "freeze",
35314
- funcType: IconFuncTypeEnum.frozen,
35315
- positionType: IconPosition.right,
35316
- marginRight: 0,
35317
- hover: {
35318
- width: frozen_size_2,
35319
- height: frozen_size_2,
35320
- bgColor: "rgba(101, 117, 168, 0.1)"
35321
- },
35322
- cursor: "pointer"
35323
- };
35324
- },
35325
- get frozen() {
35326
- return {
35327
- type: "svg",
35328
- svg: `<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.49975 3.66663C8.32294 3.66663 8.15337 3.73686 8.02835 3.86189C7.90332 3.98691 7.83309 4.15648 7.83309 4.33329V9.63246C6.76475 10.2533 6.07942 11.1795 6.00625 12.2308C5.99892 12.2786 5.99692 12.3268 6.00009 12.3741L5.99975 12.4166C5.99975 12.5934 6.06999 12.763 6.19501 12.888C6.32004 13.0131 6.48961 13.0833 6.66642 13.0833H10.3333L10.3331 17.5L10.8611 18.292C10.8763 18.3148 10.8969 18.3335 10.9211 18.3464C10.9453 18.3594 10.9723 18.3662 10.9998 18.3662C11.0272 18.3662 11.0542 18.3594 11.0784 18.3464C11.1026 18.3335 11.1232 18.3148 11.1384 18.292L11.6664 17.5L11.6666 13.0833H15.3331C15.5099 13.0833 15.6795 13.0131 15.8045 12.888C15.9295 12.763 15.9998 12.5934 15.9998 12.4166C15.9998 12.4025 15.9998 12.3883 15.9994 12.3741C16.0028 12.3263 16.0008 12.2776 15.9933 12.2295C15.9196 11.1786 15.2343 10.2528 14.1664 9.63229V4.33329C14.1664 4.15648 14.0962 3.98691 13.9712 3.86189C13.8461 3.73686 13.6766 3.66663 13.4998 3.66663H8.49975Z" fill="${frozen_color}" fill-opacity="${frozen_color_opacity}"/></svg>`,
35329
- width: frozen_size,
35330
- height: frozen_size,
35331
- name: "frozen",
35332
- funcType: IconFuncTypeEnum.frozen,
35333
- positionType: IconPosition.right,
35334
- marginRight: 0,
35335
- hover: {
35336
- width: frozen_size_2,
35337
- height: frozen_size_2,
35338
- bgColor: "rgba(101, 117, 168, 0.1)"
35339
- },
35340
- cursor: "pointer"
35341
- };
35342
- },
35343
- get frozenCurrent() {
35344
- return {
35345
- type: "svg",
35346
- svg: `<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.49975 3.66663C8.32294 3.66663 8.15337 3.73686 8.02835 3.86189C7.90332 3.98691 7.83309 4.15648 7.83309 4.33329V9.63246C6.76475 10.2533 6.07942 11.1795 6.00625 12.2308C5.99892 12.2786 5.99692 12.3268 6.00009 12.3741L5.99975 12.4166C5.99975 12.5934 6.06999 12.763 6.19501 12.888C6.32004 13.0131 6.48961 13.0833 6.66642 13.0833H10.3333L10.3331 17.5L10.8611 18.292C10.8763 18.3148 10.8969 18.3335 10.9211 18.3464C10.9453 18.3594 10.9723 18.3662 10.9998 18.3662C11.0272 18.3662 11.0542 18.3594 11.0784 18.3464C11.1026 18.3335 11.1232 18.3148 11.1384 18.292L11.6664 17.5L11.6666 13.0833H15.3331C15.5099 13.0833 15.6795 13.0131 15.8045 12.888C15.9295 12.763 15.9998 12.5934 15.9998 12.4166C15.9998 12.4025 15.9998 12.3883 15.9994 12.3741C16.0028 12.3263 16.0008 12.2776 15.9933 12.2295C15.9196 11.1786 15.2343 10.2528 14.1664 9.63229V4.33329C14.1664 4.15648 14.0962 3.98691 13.9712 3.86189C13.8461 3.73686 13.6766 3.66663 13.4998 3.66663H8.49975Z" fill="${frozen_color_2}" fill-opacity="${frozen_color_opacity_2}"/></svg>`,
35347
- width: frozen_size,
35348
- height: frozen_size,
35349
- funcType: IconFuncTypeEnum.frozen,
35350
- positionType: IconPosition.right,
35351
- name: "frozenCurrent",
35352
- marginRight: 0,
35353
- hover: {
35354
- width: frozen_size_2,
35355
- height: frozen_size_2,
35356
- bgColor: "rgba(101, 117, 168, 0.1)"
35357
- },
35358
- cursor: "pointer"
35359
- };
35360
- },
35361
- get dropdownIcon() {
35362
- return {
35363
- type: "svg",
35364
- svg: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g><rect x="2" y="1" width="20" height="20" rx="10" fill="white"/><rect x="2.5" y="1.5" width="19" height="19" rx="9.5" stroke="#959DA5"/></g><path d="M14.9492 9.39531C15.0086 9.31911 15.0165 9.21887 14.9698 9.1356C14.923 9.05234 14.8294 9 14.7273 9L9.27273 9C9.17057 9 9.07697 9.05234 9.03023 9.1356C8.98348 9.21887 8.99142 9.31911 9.0508 9.39531L11.7781 12.8953C11.8293 12.961 11.9119 13 12 13C12.0881 13 12.1707 12.961 12.2219 12.8953L14.9492 9.39531Z" fill="#4F5965"/></svg>',
35365
- width: 24,
35366
- height: 24,
35367
- funcType: IconFuncTypeEnum.dropDown,
35368
- positionType: IconPosition.absoluteRight,
35369
- name: "dropdownIcon",
35370
- marginRight: 0,
35371
- hover: {
35372
- width: 24,
35373
- height: 24,
35374
- bgColor: "rgba(101, 117, 168, 0.1)",
35375
- image: '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g><rect x="2" y="1" width="20" height="20" rx="10" fill="#1E54C9"/><rect x="2.5" y="1.5" width="19" height="19" rx="9.5" stroke="#141414" stroke-opacity="0.2"/></g><path d="M14.9492 9.39531C15.0086 9.31911 15.0165 9.21887 14.9698 9.1356C14.923 9.05234 14.8294 9 14.7273 9L9.27273 9C9.17057 9 9.07697 9.05234 9.03023 9.1356C8.98348 9.21887 8.99142 9.31911 9.0508 9.39531L11.7781 12.8953C11.8293 12.961 11.9119 13 12 13C12.0881 13 12.1707 12.961 12.2219 12.8953L14.9492 9.39531Z" fill="white"/></svg>'
35376
- },
35377
- cursor: "pointer",
35378
- visibleTime: "mouseenter_cell"
35379
- };
35380
- },
35381
- get play() {
35382
- return {
35383
- type: "svg",
35384
- svg: '<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01" /><path d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z" fill="none" stroke="#686a6e" stroke-width="4" stroke-linejoin="round" stroke-opacity="0.7" /><path d="M20 24V17.0718L26 20.5359L32 24L26 27.4641L20 30.9282V24Z" fill="none" stroke="#686a6e" stroke-width="4" stroke-linejoin="round" stroke-opacity="0.7" /></svg>',
35385
- width: 24,
35386
- height: 24,
35387
- funcType: IconFuncTypeEnum.play,
35388
- positionType: IconPosition.right,
35389
- name: "play",
35390
- marginRight: 0,
35391
- hover: {
35392
- width: 24,
35393
- height: 24,
35394
- bgColor: "rgba(101, 117, 168, 0.1)"
35395
- },
35396
- cursor: "pointer"
35397
- };
35398
- },
35399
- get damage_pic() {
35400
- return {
35401
- type: "svg",
35402
- svg: '<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 10V38C5 39.1046 5.89543 40 7 40H14H18L15 29L22 27L21 20L29 16L27 13L30 8H7C5.89543 8 5 8.89543 5 10Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M43 38V10C43 8.89543 42.1046 8 41 8H38L34 14L37 19L28 23L29 31L22 33L24 40H41C42.1046 40 43 39.1046 43 38Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 18C15.3284 18 16 17.3284 16 16.5C16 15.6716 15.3284 15 14.5 15C13.6716 15 13 15.6716 13 16.5C13 17.3284 13.6716 18 14.5 18Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>',
35403
- width: 24,
35404
- height: 24,
35405
- funcType: IconFuncTypeEnum.damagePic,
35406
- positionType: IconPosition.left,
35407
- name: "damage_pic",
35408
- marginRight: 0,
35409
- hover: {
35410
- width: 24,
35411
- height: 24,
35412
- bgColor: "rgba(101, 117, 168, 0.1)"
35413
- },
35414
- cursor: "pointer"
35415
- };
35416
- },
35417
- get loading_pic() {
35418
- return {
35419
- type: "svg",
35420
- svg: '<svg viewBox="0 0 400 300" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="50" y="65" width="301" height="170"><path d="M350.3 65H50v169.8h300.3V65Z" fill="#fff"/></mask><g mask="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.3 233.2h32.8v-36.8H58.3v36.8Z" fill="#C7DEFF"/><path d="M91.1 224.5v8.8H58.3M82.4 196.2H58.3" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M305.4 182.5s-2.7 12.6 0 17.4c2.7 4.8 8.3 6.7 12.4 4.4 4.2-2.4 5.3-8.1 2.6-12.9-2.7-4.8-15-8.9-15-8.9ZM336 204.7c4.3 2 9.7-.4 12-5.4 2.3-5-1.5-17.3-1.5-17.3s-11.8 5.1-14.1 10.1c-2.3 5-.7 10.6 3.6 12.6Z" fill="#00E4E5"/><path fill-rule="evenodd" clip-rule="evenodd" d="M326.7 174s-10 11.8-10 18.6c0 6.7 4.5 12.2 10 12.2s10-5.5 10-12.3c0-6.8-10-18.5-10-18.5Z" fill="#00E4E5"/><path d="M332.3 181.5c2.3 3.6 4.4 7.8 4.4 10.9M316.7 192.5c0-3.1 2.1-7.2 4.3-10.8" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M343.1 227.3v-9.7h-34v9.7c0 3.7 3 6.6 6.6 6.6h20.9c3.6 0 6.5-2.9 6.5-6.6Z" fill="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M350.4 220.8V198H302v22.8c0 5.9 4.8 10.7 10.7 10.7h26.9c5.9 0 10.7-4.8 10.8-10.7Z" fill="#C7DEFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M331.7 74.2H117.8L87.4 203h213.8l30.5-128.8Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M337 74.2h-6.2l-30.6 129.2h6.2L337 74.2Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M303.8 203.5h2.4l30.7-129.3h-1.8l-31.3 129.3Z" fill="#C7DEFF"/><path d="m337 74.2-30.6 129.2h-5.9" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M229.9 202.1h-47.6l2 9.6h47.3l-1.7-9.6Z" fill="#C7DEFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M94.7 172.6 87.4 203h213.1l7.8-30.4H94.7Z" fill="#006EFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M94.7 172.6 87.4 203h213.1l7.8-30.4H94.7Z" fill="#006EFF"/><path d="M138.5 74.2h193.2l-23.4 98.6M94.5 172.7l11-46.3M104.8 155.4l-2.3 11.5h6.7M316 112.1l1.1-4.5" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M148.3 138.1h97V119h-97v19.1Z" fill="#00E4E5"/><path d="M303.1 80.6h20.3l-4.6 19.6M228.3 234.3c3.6 0 6.3-3.2 5.7-6.8l-4.1-24.1" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M226.2 229.5h-68.9v1.2c0 2 1.6 3.7 3.7 3.7h60.1c2.8 0 5-2.2 5.1-4.9Z" fill="#C7DEFF"/><path d="M180.699 226.8h-19.9c-2.8 0-4.6 3-3.3 5.5m0 0c.6 1.2 1.9 2 3.3 2h57.8M175.9 203.4l3.6 17.6M241.2 234.3h65.1M104.6 234.3h41.3" stroke="#071F4D"/><path d="M206.2 234.3h14.9c3.1 0 5.5-2.8 5-5.9l-4.3-24.9M160.7 226.8h46M62.2 226.1h-9.5c-1.2 0-2.2-1-2.2-2.2v-18.3c0-1.2 1-2.2 2.2-2.2h9.5" stroke="#071F4D"/><path d="M53.4 171.7H68c2.1 0 3.7 1.7 3.7 3.7v16.1M79.1 192v-21.8c0-2.5 2-4.6 4.6-4.6h2.2c2.5 0 4.5-2 4.5-4.5m0 0c0-2.5-2-4.5-4.5-4.5H56.1c-2.4 0-4.3-1.9-4.3-4.3V148M71.2 165.2h-18M64 181.7v10.1" stroke="#C7DEFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M85.7 120H124c4.3 0 7.7-3.5 7.7-7.7V65.5H94.2c-4.7 0-8.5 4.9-8.5 11V120Z" fill="#C7DEFF"/><path d="M85.7 110.7V73c0-4.1 3.4-7.5 7.5-7.5h38.5M146.2 73.8v-2.5c0-3.2-2-5.8-5.8-5.8-2.8 0-6 1.1-6 5.8v42.4c0 4.7-3.8 8.5-8.5 8.5h-15.6" stroke="#071F4D"/><path d="M119.7 122.3H87c-6.1 0-11.1-5-11.1-11.1m0 0h39M126.1 122.3c-6.1 0-11.1-5-11.1-11.1" stroke="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M85.4 122.1h37.2c-6.5-1.8-8-10.5-8-10.5H76.2c.6 8.8 9.2 10.5 9.2 10.5Z" fill="#071F4D"/><path fill-rule="evenodd" clip-rule="evenodd" d="M95.8 102.9h4.8V83.6h-4.8v19.3ZM106.6 102.9h4.8V77.6h-4.8v25.3ZM117.3 102.9h4.8V89.1h-4.8v13.8Z" fill="#fff"/><path d="M273.2 195.9h16.9M261.2 195.9h5" stroke="#fff"/><path d="M62.4 201.9v2.9M62.4 224.5v2.9" stroke="#071F4D"/><path d="m153.6 138.1 9.7-19.1M168.8 138.1l9.7-19.1M184.1 138.1l9.7-19.1M199.4 138.1l9.7-19.1M214.6 138.1l9.8-19.1M229.9 138.1l9.7-19.1" stroke="#fff"/><path d="M148.3 138.1h121.6V119H148.3v19.1Z" stroke="#071F4D"/></g></svg>',
35421
- width: 400,
35422
- height: 300,
35423
- name: "loading_pic",
35424
- positionType: IconPosition.left
35425
- };
35426
- },
35427
- get expand() {
35428
- return {
35429
- type: "svg",
35430
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">\n <path d="M4.64988 6.81235C4.38797 6.48497 4.62106 6 5.04031 6L10.9597 6C11.3789 6 11.612 6.48497 11.3501 6.81235L8.39043 10.512C8.19027 10.7622 7.80973 10.7622 7.60957 10.512L4.64988 6.81235Z" fill="${expand_color}" fill-opacity="${expand_color_opacity}"/>\n </svg>`,
35431
- width: expand_size,
35432
- height: expand_size,
35433
- funcType: IconFuncTypeEnum.expand,
35434
- name: "expand",
35435
- positionType: IconPosition.contentLeft,
35436
- marginLeft: 0,
35437
- marginRight: 4,
35438
- hover: {
35439
- width: expand_size_2,
35440
- height: expand_size_2,
35441
- bgColor: "rgba(101, 117, 168, 0.1)"
35442
- },
35443
- cursor: "pointer"
35444
- };
35445
- },
35446
- get collapse() {
35447
- return {
35448
- type: "svg",
35449
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">\n <path d="M5.81235 11.3501C5.48497 11.612 5 11.3789 5 10.9597L5 5.04031C5 4.62106 5.48497 4.38797 5.81235 4.64988L9.51196 7.60957C9.76216 7.80973 9.76216 8.19027 9.51196 8.39044L5.81235 11.3501Z" fill="${collapse_color}" fill-opacity="${collapse_color_opacity}"/>\n </svg>`,
35450
- width: collapse_size,
35451
- height: collapse_size,
35452
- funcType: IconFuncTypeEnum.collapse,
35453
- name: "collapse",
35454
- positionType: IconPosition.contentLeft,
35455
- marginLeft: 0,
35456
- marginRight: 4,
35457
- hover: {
35458
- width: collapse_size_2,
35459
- height: collapse_size_2,
35460
- bgColor: "rgba(101, 117, 168, 0.1)"
35461
- },
35462
- cursor: "pointer"
35463
- };
35464
- },
35465
- get drillDown() {
35466
- return {
35467
- name: "drillDown",
35468
- type: "svg",
35469
- positionType: IconPosition.absolute,
35470
- funcType: IconFuncTypeEnum.drillDown,
35471
- svg: DrillDown,
35472
- width: 13,
35473
- height: 13,
35474
- cursor: "pointer"
35475
- };
35476
- },
35477
- get drillUp() {
35478
- return {
35479
- name: "drillUp",
35480
- type: "svg",
35481
- positionType: IconPosition.absolute,
35482
- funcType: IconFuncTypeEnum.drillUp,
35483
- svg: DrillUp,
35484
- width: 13,
35485
- height: 13,
35486
- cursor: "pointer"
35487
- };
35488
- },
35489
- get dragReorder() {
35490
- return {
35491
- type: "svg",
35492
- svg: `<svg t="1710129136961" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5166" width="200" height="200"><path d="M362.666667 192m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5167"></path><path d="M661.333333 192m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5168"></path><path d="M362.666667 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5169"></path><path d="M661.333333 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5170"></path><path d="M362.666667 832m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5171"></path><path d="M661.333333 832m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z" fill="${dragReorder_color}" fill-opacity="${dragReorder_color_opacity}" p-id="5172"></path></svg>`,
35493
- width: dragReorder_size,
35494
- height: dragReorder_size,
35495
- funcType: IconFuncTypeEnum.dragReorder,
35496
- positionType: IconPosition.left,
35497
- name: "dragReorder",
35498
- marginLeft: -10,
35499
- marginRight: 10,
35500
- cursor: "grab"
35501
- };
35502
- }
35503
- };
35504
- const icons = {};
35505
- function get$2() {
35506
- return extend(builtins, icons);
35507
- }
35508
-
35509
35574
  class Group extends Group$1 {
35510
35575
  clear() {
35511
35576
  this.removeAllChild();
@@ -36405,7 +36470,7 @@
36405
36470
  } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult),
36406
36471
  style = table._getCellStyle(col, row),
36407
36472
  dataValue = table.getCellOriginValue(col, row);
36408
- cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, !1, customElementsGroup, renderDefault, cellTheme, range, isAsync);
36473
+ cellGroup = Factory.getFunction("createTextCellGroup")(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync);
36409
36474
  const progressBarGroup = Factory.getFunction("createProgressBarCell")(define, style, colWidth, value, dataValue, col, row, padding, table, range);
36410
36475
  cellGroup.firstChild ? cellGroup.insertBefore(progressBarGroup, cellGroup.firstChild) : cellGroup.appendChild(progressBarGroup);
36411
36476
  } else if ("sparkline" === type) {
@@ -36479,7 +36544,7 @@
36479
36544
  vtableMergeName: vtableMergeName,
36480
36545
  vtableMerge: vtableMerge
36481
36546
  } = null != rawRecord ? rawRecord : {};
36482
- isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.options.groupTitleCustomLayout && (customResult = dealWithCustom(table.options.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.options.groupTitleFieldFormat ? value = table.options.groupTitleFieldFormat(rawRecord, col, row, table) : vtableMergeName && (value = vtableMergeName));
36547
+ isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.options.groupTitleCustomLayout && (customResult = dealWithCustom(table.options.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.options.groupTitleFieldFormat ? value = table.options.groupTitleFieldFormat(rawRecord, col, row, table) : void 0 !== vtableMergeName && (value = vtableMergeName));
36483
36548
  }
36484
36549
  const cellStyle = customStyle || table._getCellStyle(range ? range.start.col : col, range ? range.start.row : row),
36485
36550
  autoWrapText = null !== (_a = cellStyle.autoWrapText) && void 0 !== _a ? _a : table.internalProps.autoWrapText,
@@ -36661,7 +36726,7 @@
36661
36726
  var _a, _b, _c, _d, _e, _f;
36662
36727
  "number" == typeof child._dx ? (child.skipMergeUpdate = !0, child.setAttributes({
36663
36728
  dx: (null !== (_a = child._dx) && void 0 !== _a ? _a : 0) + dx
36664
- }), child.skipMergeUpdate = !1) : (child.skipMergeUpdate = !0, child._dx = null !== (_b = child.attribute.dx) && void 0 !== _b ? _b : 0, child.setAttributes({
36729
+ }), child.skipMergeUpdate = !1) : (child._dx = null !== (_b = child.attribute.dx) && void 0 !== _b ? _b : 0, child.skipMergeUpdate = !0, child.setAttributes({
36665
36730
  dx: (null !== (_c = child.attribute.dx) && void 0 !== _c ? _c : 0) + dx
36666
36731
  }), child.skipMergeUpdate = !1), "number" == typeof child._dy ? (child.skipMergeUpdate = !0, child.setAttributes({
36667
36732
  dy: (null !== (_d = child._dy) && void 0 !== _d ? _d : 0) + dy
@@ -39727,6 +39792,7 @@
39727
39792
  Math.abs(matrix.f) > precision || Math.abs(matrix.g) > precision ? context.rect(x - precision, y - precision, width + 2 * precision, height + 2 * precision) : context.rect(x, y, width, height);
39728
39793
  }
39729
39794
  function getCellSizeForDraw(group, width, height, bottomRight) {
39795
+ var _a, _b;
39730
39796
  const table = group.stage.table;
39731
39797
  if (!table) return {
39732
39798
  width: width,
@@ -39736,7 +39802,7 @@
39736
39802
  let col = group.col,
39737
39803
  row = group.row;
39738
39804
  const mergeInfo = getCellMergeInfo(table, col, row);
39739
- mergeInfo && (col = mergeInfo.end.col, row = mergeInfo.end.row), col !== table.colCount - 1 || bottomRight ? (col === table.frozenColCount - 1 && table.scrollLeft && !bottomRight || 0 === col && bottomRight) && (width -= 1) : width -= 1, row !== table.rowCount - 1 || bottomRight ? (row === table.frozenRowCount - 1 && table.scrollTop && !bottomRight || 0 === row && bottomRight) && (height -= 1) : height -= 1;
39805
+ mergeInfo && (col = mergeInfo.end.col, row = mergeInfo.end.row), bottomRight ? (0 === col && (width -= 1), 0 === row && (height -= 1)) : ((col === table.colCount - 1 || col === table.frozenColCount - 1 && table.scrollLeft || (null === (_a = table.containerFit) || void 0 === _a ? void 0 : _a.width) && table.rightFrozenColCount && col === table.colCount - table.rightFrozenColCount - 1) && (width -= 1), (row === table.rowCount - 1 || row === table.frozenRowCount - 1 && table.scrollTop || (null === (_b = table.containerFit) || void 0 === _b ? void 0 : _b.height) && table.bottomFrozenRowCount && row === table.rowCount - table.bottomFrozenRowCount - 1) && (height -= 1));
39740
39806
  } else "corner-frozen" === group.role && (table.scrollLeft && !bottomRight && (width -= 1), table.scrollTop && !bottomRight && (height -= 1));
39741
39807
  return {
39742
39808
  width: width,
@@ -40276,17 +40342,28 @@
40276
40342
  const adaptiveColumns = [],
40277
40343
  sparklineColumns = [];
40278
40344
  let totalSparklineAbleWidth = 0;
40345
+ const maxWidthColumnMap = new Map(),
40346
+ minWidthColumnMap = new Map();
40279
40347
  for (let col = startCol; col < endColPlus1; col++) {
40280
40348
  const width = update && null !== (_a = newWidths[col]) && void 0 !== _a ? _a : table.getColWidth(col),
40281
40349
  maxWidth = table.getMaxColWidth(col),
40282
40350
  minWidth = table.getMinColWidth(col);
40283
- if (width !== maxWidth && width !== minWidth ? (actualWidth += width, adaptiveColumns.push(col)) : totalDrawWidth -= width, null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.shrinkSparklineFirst) {
40351
+ if (actualWidth += width, adaptiveColumns.push(col), maxWidth === width ? maxWidthColumnMap.set(col, width) : minWidth === width && minWidthColumnMap.set(col, width), null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.shrinkSparklineFirst) {
40284
40352
  "sparkline" === table.getBodyColumnType(col, 0) && (sparklineColumns.push({
40285
40353
  col: col,
40286
40354
  width: width
40287
40355
  }), totalSparklineAbleWidth += width - table.defaultColWidth);
40288
40356
  }
40289
40357
  }
40358
+ if (actualWidth > totalDrawWidth) for (const [col, width] of minWidthColumnMap) {
40359
+ totalDrawWidth -= width, actualWidth -= width;
40360
+ const index = adaptiveColumns.indexOf(col);
40361
+ -1 !== index && adaptiveColumns.splice(index, 1);
40362
+ } else if (actualWidth < totalDrawWidth) for (const [col, width] of maxWidthColumnMap) {
40363
+ totalDrawWidth -= width, actualWidth -= width;
40364
+ const index = adaptiveColumns.indexOf(col);
40365
+ -1 !== index && adaptiveColumns.splice(index, 1);
40366
+ }
40290
40367
  const factor = totalDrawWidth / actualWidth;
40291
40368
  if ((null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.shrinkSparklineFirst) && factor < 1 && actualWidth - totalDrawWidth < totalSparklineAbleWidth) for (let i = 0; i < sparklineColumns.length; i++) {
40292
40369
  const {
@@ -40362,7 +40439,7 @@
40362
40439
  vtableMergeName: vtableMergeName,
40363
40440
  vtableMerge: vtableMerge
40364
40441
  } = null != rawRecord ? rawRecord : {};
40365
- isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.options.groupTitleCustomLayout && (customResult = dealWithCustom(table.options.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.options.groupTitleFieldFormat ? value = table.options.groupTitleFieldFormat(rawRecord, col, row, table) : vtableMergeName && (value = vtableMergeName));
40442
+ isVtableMerge = vtableMerge, vtableMerge && (mayHaveIcon = !0, table.options.groupTitleCustomLayout && (customResult = dealWithCustom(table.options.groupTitleCustomLayout, void 0, range.start.col, range.start.row, table.getColsWidth(range.start.col, range.end.col), table.getRowsHeight(range.start.row, range.end.row), !1, table.isAutoRowHeight(row), [0, 0, 0, 0], range, table)), table.options.groupTitleFieldFormat ? value = table.options.groupTitleFieldFormat(rawRecord, col, row, table) : void 0 !== vtableMergeName && (value = vtableMergeName));
40366
40443
  }
40367
40444
  const type = isVtableMerge || isCustomMerge ? "text" : null !== (_b = table.isHeader(col, row) ? null !== (_a = table._getHeaderLayoutMap(col, row).headerType) && void 0 !== _a ? _a : "text" : table.getBodyColumnType(col, row)) && void 0 !== _b ? _b : "text";
40368
40445
  if (isPromise(value)) {
@@ -46254,7 +46331,7 @@
46254
46331
  var _a, _b, _c, _d, _e;
46255
46332
  if (table.hasListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE) && table.fireListeners(TABLE_EVENT_TYPE.MOUSEDOWN_TABLE, {
46256
46333
  event: e.nativeEvent
46257
- }), table.eventManager.isDown = !0, table.eventManager.LastBodyPointerXY = {
46334
+ }), clearPageSelection(), table.eventManager.isDown = !0, table.eventManager.LastBodyPointerXY = {
46258
46335
  x: e.x,
46259
46336
  y: e.y
46260
46337
  }, table.eventManager.LastPointerXY = {
@@ -48934,14 +49011,21 @@
48934
49011
  return this.dealDiffenence(), this.getCumulativeSum(position);
48935
49012
  }
48936
49013
  getCumulativeSum(position) {
48937
- var _a;
48938
- let sum = 0;
49014
+ var _a, _b;
49015
+ let sum = 0,
49016
+ currentBottomFrozenRowsHeight = 0,
49017
+ isBottomFrozenRowNoCache = !1;
49018
+ const bottomFrozenStartRow = this.table.rowCount > 0 && this.table.bottomFrozenRowCount > 0 ? this.table.rowCount - this.table.bottomFrozenRowCount : -1;
48939
49019
  for (let i = position; i >= 0; i--) {
48940
49020
  if (this.cumulativeSum.has(i)) {
48941
49021
  sum += this.cumulativeSum.get(i);
48942
49022
  break;
48943
49023
  }
48944
- sum += null !== (_a = this.data.get(i)) && void 0 !== _a ? _a : this.table.getRowHeight(i);
49024
+ sum += null !== (_a = this.data.get(i)) && void 0 !== _a ? _a : this.table.getRowHeight(i), i >= bottomFrozenStartRow && -1 !== bottomFrozenStartRow && (currentBottomFrozenRowsHeight = sum, isBottomFrozenRowNoCache = i === bottomFrozenStartRow);
49025
+ }
49026
+ if (isBottomFrozenRowNoCache && (null === (_b = this.table.containerFit) || void 0 === _b ? void 0 : _b.height) && this.table.bottomFrozenRowCount) {
49027
+ const tableHeight = this.table.tableNoFrameHeight || 0;
49028
+ sum < tableHeight && (sum = tableHeight - this.table.getBottomFrozenRowsHeight() + currentBottomFrozenRowsHeight);
48945
49029
  }
48946
49030
  return this.cumulativeSum.set(position, sum), sum;
48947
49031
  }
@@ -50217,7 +50301,7 @@
50217
50301
  }
50218
50302
  class TableAnimationManager {
50219
50303
  constructor(table) {
50220
- this.table = table, this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker(), this.ticker.addTimeline(this.timeline);
50304
+ this.table = table, this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker(this.table.scenegraph.stage), this.ticker.addTimeline(this.timeline);
50221
50305
  this.ticker.setFPS(60), this.tempGraphic = createRect({});
50222
50306
  }
50223
50307
  scrollTo(position, animationOption) {
@@ -50323,7 +50407,7 @@
50323
50407
  }
50324
50408
  constructor(container, options = {}) {
50325
50409
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
50326
- if (super(), this.showFrozenIcon = !0, this.version = "1.19.1-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
50410
+ if (super(), this.showFrozenIcon = !0, this.version = "1.19.2", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
50327
50411
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
50328
50412
  options: options,
50329
50413
  container: container
@@ -50749,12 +50833,12 @@
50749
50833
  if (null != cachedColWidth) return cachedColWidth;
50750
50834
  const cachedLowerColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol - 1}`);
50751
50835
  if (null != cachedLowerColWidth) {
50752
- const addWidth = cachedLowerColWidth + this.getColWidth(endCol);
50753
- return startCol >= 0 && endCol >= 0 && !Number.isNaN(addWidth) && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(addWidth)), Math.round(addWidth);
50836
+ let addWidth = cachedLowerColWidth + this.getColWidth(endCol);
50837
+ return this.rightFrozenColCount > 0 && endCol === this.colCount - this.rightFrozenColCount && (addWidth = this._getRangeSizeForContainerFit(startCol, endCol, addWidth, "col")), startCol >= 0 && endCol >= 0 && !Number.isNaN(addWidth) && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(addWidth)), Math.round(addWidth);
50754
50838
  }
50755
50839
  let w = 0;
50756
50840
  for (let col = startCol; col <= endCol; col++) w += this.getColWidth(col);
50757
- return startCol >= 0 && endCol >= 0 && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(w)), Math.round(w);
50841
+ return w = this._getRangeSizeForContainerFit(startCol, endCol, w, "col"), startCol >= 0 && endCol >= 0 && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(w)), Math.round(w);
50758
50842
  }
50759
50843
  getRowHeight(row) {
50760
50844
  var _a;
@@ -50798,12 +50882,42 @@
50798
50882
  }
50799
50883
  h = this.rowHeightsMap.getSumInRange(startRow, endRow);
50800
50884
  } else {
50885
+ const bottomFrozenStartRow = this.rowCount - this.bottomFrozenRowCount;
50801
50886
  for (let i = startRow; i < Math.min(endRow + 1, this.columnHeaderLevelCount); i++) h += this.getRowHeight(i);
50802
- endRow >= this.columnHeaderLevelCount && (h += this.defaultRowHeight * (Math.min(endRow, this.rowCount - this.bottomFrozenRowCount - 1) - Math.max(this.columnHeaderLevelCount, startRow) + 1));
50803
- for (let i = this.rowCount - this.bottomFrozenRowCount; i < endRow + 1; i++) h += this.getRowHeight(i);
50887
+ endRow >= this.columnHeaderLevelCount && (h += this.defaultRowHeight * (Math.min(endRow, bottomFrozenStartRow - 1) - Math.max(this.columnHeaderLevelCount, startRow) + 1));
50888
+ let currentBottomFrozenRowsHeight = 0;
50889
+ for (let i = bottomFrozenStartRow; i < endRow + 1; i++) currentBottomFrozenRowsHeight += this.getRowHeight(i);
50890
+ h = this._getRangeSizeForContainerFit(startRow, endRow, h + currentBottomFrozenRowsHeight, "row");
50804
50891
  }
50805
50892
  return Math.round(h);
50806
50893
  }
50894
+ _getRangeSizeForContainerFit(start, end, totalSize, type = "col") {
50895
+ var _a;
50896
+ if (!isFinite(start) || !isFinite(end)) return totalSize;
50897
+ const keyMap = "col" === type ? {
50898
+ totalCount: "colCount",
50899
+ frozenCount: "rightFrozenColCount",
50900
+ fitType: "width",
50901
+ tableSize: "tableNoFrameWidth",
50902
+ getSize: "getColWidth"
50903
+ } : {
50904
+ totalCount: "rowCount",
50905
+ frozenCount: "bottomFrozenRowCount",
50906
+ fitType: "height",
50907
+ tableSize: "tableNoFrameHeight",
50908
+ getSize: "getRowHeight"
50909
+ },
50910
+ tableSize = this[keyMap.tableSize];
50911
+ if (totalSize >= tableSize) return totalSize;
50912
+ const frozenStart = this[keyMap.totalCount] - this[keyMap.frozenCount];
50913
+ if (!isFinite(this[keyMap.totalCount]) || this[keyMap.frozenCount] <= 0 || frozenStart < 0) return totalSize;
50914
+ if (start > frozenStart || end < frozenStart || start === end || !(null === (_a = this.containerFit) || void 0 === _a ? void 0 : _a[keyMap.fitType])) return totalSize;
50915
+ const last = this[keyMap.totalCount] - 1;
50916
+ let size = tableSize;
50917
+ if (start > 0) for (let i = 0; i < start; i++) if (size -= this[keyMap.getSize](i), size <= 0) return totalSize;
50918
+ if (end !== last) for (let i = end + 1; i <= last; i++) if (size -= this[keyMap.getSize](i), size <= 0) return totalSize;
50919
+ return size;
50920
+ }
50807
50921
  getColWidthDefined(col) {
50808
50922
  var _a;
50809
50923
  const {
@@ -51296,8 +51410,9 @@
51296
51410
  return 0;
51297
51411
  }
51298
51412
  getDrawRange() {
51299
- const width = Math.min(this.tableNoFrameWidth, this.getAllColsWidth()),
51300
- height = Math.min(this.tableNoFrameHeight, this.getAllRowsHeight());
51413
+ var _a, _b;
51414
+ const width = (null === (_a = this.containerFit) || void 0 === _a ? void 0 : _a.width) ? this.tableNoFrameWidth : Math.min(this.tableNoFrameWidth, this.getAllColsWidth()),
51415
+ height = (null === (_b = this.containerFit) || void 0 === _b ? void 0 : _b.height) ? this.tableNoFrameHeight : Math.min(this.tableNoFrameHeight, this.getAllRowsHeight());
51301
51416
  return new Rect(this.tableX, this.tableY, width, height);
51302
51417
  }
51303
51418
  _getMouseAbstractPoint(evt) {
@@ -53662,7 +53777,7 @@
53662
53777
  class SimpleHeaderLayoutMap {
53663
53778
  constructor(table, columns, showHeader, hierarchyIndent) {
53664
53779
  var _a, _b;
53665
- this.seqId = 0, this.leftRowSeriesNumberColumnCount = 0, this.rightRowSeriesNumberColumnCount = 0, this.bodyRowSpanCount = 1, this._transpose = !1, this._showHeader = !0, this._recordsCount = 0, this._hasAggregation = !1, this._hasAggregationOnTopCount = 0, this._hasAggregationOnBottomCount = 0, this._cellRangeMap = new Map(), this._showHeader = showHeader, this._table = table, this._columns = [], this._columnsIncludeHided = [], this._headerCellIds = [], this.hierarchyIndent = null != hierarchyIndent ? hierarchyIndent : 20, this.hierarchyTextStartAlignment = table.options.hierarchyTextStartAlignment, this.columnHierarchyType = table.options.headerHierarchyType, this.columnExpandLevel = null !== (_a = table.options.headerExpandLevel) && void 0 !== _a ? _a : 1, this.columnTree = new DimensionTree(columns, {
53780
+ this.seqId = 0, this._columnMaxDepth = 0, this.leftRowSeriesNumberColumnCount = 0, this.rightRowSeriesNumberColumnCount = 0, this.bodyRowSpanCount = 1, this._transpose = !1, this._showHeader = !0, this._recordsCount = 0, this._hasAggregation = !1, this._hasAggregationOnTopCount = 0, this._hasAggregationOnBottomCount = 0, this._cellRangeMap = new Map(), this._showHeader = showHeader, this._table = table, this._columns = [], this._columnsIncludeHided = [], this._headerCellIds = [], this._columnMaxDepth = this._calculateMaxDepth(columns), this.hierarchyIndent = null != hierarchyIndent ? hierarchyIndent : 20, this.hierarchyTextStartAlignment = table.options.hierarchyTextStartAlignment, this.columnHierarchyType = table.options.headerHierarchyType, this.columnExpandLevel = null !== (_a = table.options.headerExpandLevel) && void 0 !== _a ? _a : 1, this.columnTree = new DimensionTree(columns, {
53666
53781
  seqId: 0
53667
53782
  }, null !== (_b = this.columnHierarchyType) && void 0 !== _b ? _b : null, "grid-tree" === this.columnHierarchyType ? this.columnExpandLevel : void 0), this._headerObjectsIncludeHided = this._addHeaders(0, columns, []), this._headerObjects = this._headerObjectsIncludeHided.filter(col => !0 !== col.define.hide), this._headerObjectMap = this._headerObjects.reduce((o, e) => (o[e.id] = e, o), {}), this.rowHierarchyType = checkHasTreeDefine(this) ? "tree" : "grid", this._hasAggregation = checkHasAggregation(this), this._hasAggregationOnBottomCount = checkHasAggregationOnBottom(this), this._hasAggregationOnTopCount = checkHasAggregationOnTop(this), this.handleRowSeriesNumber(table.internalProps.rowSeriesNumber);
53668
53783
  }
@@ -54164,7 +54279,16 @@
54164
54279
  getRecordStartRowByRecordIndex(index) {
54165
54280
  return (this.hasAggregationOnTopCount ? this.headerLevelCount + 1 : this.headerLevelCount) + index;
54166
54281
  }
54167
- _addHeaders(row, column, roots, hideColumnsSubHeader) {
54282
+ _calculateMaxDepth(columns, currentDepth = 0) {
54283
+ let maxDepth = currentDepth;
54284
+ return columns.forEach(col => {
54285
+ if (col.columns && col.columns.length > 0) {
54286
+ const childDepth = this._calculateMaxDepth(col.columns, currentDepth + 1);
54287
+ childDepth > maxDepth && (maxDepth = childDepth);
54288
+ }
54289
+ }), maxDepth;
54290
+ }
54291
+ _addHeaders(row, column, roots, hideColumnsSubHeader, lastLevelSpan) {
54168
54292
  const results = [],
54169
54293
  rowCells = this._newRow(row, hideColumnsSubHeader);
54170
54294
  return column.forEach(hd => {
@@ -54184,11 +54308,16 @@
54184
54308
  columnWidthComputeMode: hd.columnWidthComputeMode
54185
54309
  };
54186
54310
  results[id] = cell;
54187
- for (let r = row - 1; r >= 0; r--) this._headerCellIds[r] && (this._headerCellIds[r][col] = roots[r]);
54188
- hideColumnsSubHeader ? this._headerCellIds[row - 1] && (rowCells[col] = this._headerCellIds[row - 1][col]) : rowCells[col] = id;
54311
+ let maxRow = row;
54312
+ if (hd.levelSpan) {
54313
+ maxRow = Math.min(row + hd.levelSpan - 1, this._columnMaxDepth - 1);
54314
+ for (let r = row; r <= maxRow; r++) this._headerCellIds[r] || (this._headerCellIds[r] = []), void 0 === this._headerCellIds[r][col] && (this._headerCellIds[r][col] = id);
54315
+ }
54316
+ if (lastLevelSpan) for (let r = maxRow - 1; r >= 0; r--) this._headerCellIds[r] && void 0 === this._headerCellIds[r][col] && void 0 !== roots[maxRow - lastLevelSpan] && (this._headerCellIds[r][col] = roots[maxRow - lastLevelSpan]);else for (let r = maxRow - 1; r >= 0; r--) this._headerCellIds[r] && void 0 === this._headerCellIds[r][col] && void 0 !== roots[r] && (this._headerCellIds[r][col] = roots[r]);
54317
+ hideColumnsSubHeader ? this._headerCellIds[row - 1] && void 0 !== this._headerCellIds[row - 1][col] && (rowCells[col] = this._headerCellIds[row - 1][col]) : rowCells[col] = id;
54189
54318
  const expand = !hd.hierarchyState || hd.hierarchyState === HierarchyState.expand;
54190
54319
  if (hd.columns && expand) {
54191
- !hd.columns.every(c => c.hide) && this._addHeaders(row + 1, hd.columns, [...roots, id], hd.hideColumnsSubHeader || hideColumnsSubHeader).forEach(c => results.push(c));
54320
+ !hd.columns.every(c => c.hide) && this._addHeaders(maxRow + 1, hd.columns, [...roots, id], hd.hideColumnsSubHeader || hideColumnsSubHeader, hd.levelSpan).forEach(c => results.push(c));
54192
54321
  } else {
54193
54322
  const colDef = {
54194
54323
  id: this.seqId++,
@@ -54457,11 +54586,15 @@
54457
54586
  this.listenersId.push(doubleClickEventId, clickEventId);
54458
54587
  }
54459
54588
  startEditCell(col, row, value) {
54460
- var _a, _b, _c, _d, _e;
54589
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
54461
54590
  if (this.editingEditor) return;
54462
54591
  const editor = this.table.getEditor(col, row);
54463
54592
  if (editor) {
54464
- if (null === (_b = null === (_a = this.table.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isAggregation) || void 0 === _b ? void 0 : _b.call(_a, col, row)) return;
54593
+ if (null === (_b = null === (_a = this.table.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isAggregation) || void 0 === _b ? void 0 : _b.call(_a, col, row)) {
54594
+ const isPivotTable = null === (_d = (_c = this.table).isPivotTable) || void 0 === _d ? void 0 : _d.call(_c),
54595
+ updateAggregationOnEditCell = !!isPivotTable && (null === (_f = null === (_e = this.table.internalProps) || void 0 === _e ? void 0 : _e.dataConfig) || void 0 === _f ? void 0 : _f.updateAggregationOnEditCell);
54596
+ if (!isPivotTable || isPivotTable && updateAggregationOnEditCell) return;
54597
+ }
54465
54598
  const record = this.table.getCellRawRecord(col, row);
54466
54599
  if (null == record ? void 0 : record.vtableMerge) return;
54467
54600
  this.editingEditor || (this.editCell = {
@@ -54478,9 +54611,9 @@
54478
54611
  height: rect.height
54479
54612
  }
54480
54613
  };
54481
- col === this.table.colCount - 1 ? referencePosition.rect.width = rect.width - 1 : referencePosition.rect.width = rect.width + 1, row === this.table.rowCount - 1 ? referencePosition.rect.height = rect.height - 1 : referencePosition.rect.height = rect.height + 1, editor.beginEditing, null === (_c = editor.beginEditing) || void 0 === _c || _c.call(editor, this.table.getElement(), referencePosition, dataValue), editor.bindSuccessCallback, null === (_d = editor.bindSuccessCallback) || void 0 === _d || _d.call(editor, () => {
54614
+ col === this.table.colCount - 1 ? referencePosition.rect.width = rect.width - 1 : referencePosition.rect.width = rect.width + 1, row === this.table.rowCount - 1 ? referencePosition.rect.height = rect.height - 1 : referencePosition.rect.height = rect.height + 1, editor.beginEditing, null === (_g = editor.beginEditing) || void 0 === _g || _g.call(editor, this.table.getElement(), referencePosition, dataValue), editor.bindSuccessCallback, null === (_h = editor.bindSuccessCallback) || void 0 === _h || _h.call(editor, () => {
54482
54615
  this.completeEdit();
54483
- }), null === (_e = editor.onStart) || void 0 === _e || _e.call(editor, {
54616
+ }), null === (_j = editor.onStart) || void 0 === _j || _j.call(editor, {
54484
54617
  value: dataValue,
54485
54618
  endEdit: () => {
54486
54619
  this.completeEdit();
@@ -55095,7 +55228,7 @@
55095
55228
  col: this.stateManager.hover.cellPos.col,
55096
55229
  row: this.stateManager.hover.cellPos.row
55097
55230
  };
55098
- this.internalProps.columns = cloneDeepSpec(columns, ["children"]), generateAggregationForColumn(this), (null == options ? void 0 : options.clearColWidthCache) && this.internalProps._widthResizedColMap.clear(), this.options.columns = columns, this.internalProps.headerHelper.setTableColumnsEditor(), this._hasAutoImageColumn = void 0, this.refreshHeader(), null === (_b = (_a = this.dataSource).updateColumns) || void 0 === _b || _b.call(_a, this.internalProps.columns), this.records && checkHasAggregationOnColumnDefine(columns) && this.dataSource.processRecords(null !== (_d = null === (_c = this.dataSource.dataSourceObj) || void 0 === _c ? void 0 : _c.records) && void 0 !== _d ? _d : this.dataSource.dataSourceObj), this.internalProps.useOneRowHeightFillAll = !1, this.headerStyleCache = new Map(), this.bodyStyleCache = new Map(), this.bodyBottomStyleCache = new Map(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row), this.renderAsync(), this.eventManager.updateEventBinder();
55231
+ this.internalProps.columns = cloneDeepSpec(columns, ["children"]), generateAggregationForColumn(this), (null == options ? void 0 : options.clearColWidthCache) && this.internalProps._widthResizedColMap.clear(), this.options.columns = columns, this.internalProps.headerHelper.setTableColumnsEditor(), this._hasAutoImageColumn = void 0, this.refreshHeader(), null === (_b = (_a = this.dataSource).updateColumns) || void 0 === _b || _b.call(_a, this.internalProps.columns), this.records && checkHasAggregationOnColumnDefine(this.internalProps.columns) && this.dataSource.processRecords(null !== (_d = null === (_c = this.dataSource.dataSourceObj) || void 0 === _c ? void 0 : _c.records) && void 0 !== _d ? _d : this.dataSource.dataSourceObj), this.internalProps.useOneRowHeightFillAll = !1, this.headerStyleCache = new Map(), this.bodyStyleCache = new Map(), this.bodyBottomStyleCache = new Map(), this.scenegraph.createSceneGraph(), this.stateManager.updateHoverPos(oldHoverState.col, oldHoverState.row), this.renderAsync(), this.eventManager.updateEventBinder();
55099
55232
  }
55100
55233
  addColumn(column) {
55101
55234
  const columns = this.options.columns;