@visactor/vtable-gantt 1.7.8-alpha.5 → 1.7.8

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.
@@ -30208,7 +30208,13 @@
30208
30208
  super(...arguments), this.type = AggregationType.RECORD, this.isRecord = !0;
30209
30209
  }
30210
30210
  push(record) {
30211
- record && this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record));
30211
+ record && this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), this.clearCacheValue();
30212
+ }
30213
+ deleteRecord(record) {
30214
+ record && this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.clearCacheValue();
30215
+ }
30216
+ updateRecord(oldRecord, newRecord) {
30217
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.clearCacheValue());
30212
30218
  }
30213
30219
  value() {
30214
30220
  return this.records;
@@ -30223,7 +30229,13 @@
30223
30229
  super(...arguments), this.type = AggregationType.NONE, this.isRecord = !0;
30224
30230
  }
30225
30231
  push(record) {
30226
- record && (this.isRecord && (this.records = [record]), this.field && (this.fieldValue = record[this.field]));
30232
+ record && (this.isRecord && (this.records = [record]), this.field && (this.fieldValue = record[this.field])), this.clearCacheValue();
30233
+ }
30234
+ deleteRecord(record) {
30235
+ 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();
30236
+ }
30237
+ updateRecord(oldRecord, newRecord) {
30238
+ 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());
30227
30239
  }
30228
30240
  value() {
30229
30241
  return this.fieldValue;
@@ -30238,7 +30250,13 @@
30238
30250
  super(config), this.type = AggregationType.CUSTOM, this.isRecord = !0, this.values = [], this.aggregationFun = config.aggregationFun;
30239
30251
  }
30240
30252
  push(record) {
30241
- record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), this.field && this.values.push(record[this.field]));
30253
+ record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), this.field && this.values.push(record[this.field])), this.clearCacheValue();
30254
+ }
30255
+ updateRecord(oldRecord, newRecord) {
30256
+ 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());
30257
+ }
30258
+ deleteRecord(record) {
30259
+ 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();
30242
30260
  }
30243
30261
  value() {
30244
30262
  var _a;
@@ -30262,6 +30280,31 @@
30262
30280
  const value = parseFloat(record[this.field]);
30263
30281
  this.sum += value, this.needSplitPositiveAndNegativeForSum && (value > 0 ? this.positiveSum += value : value < 0 && (this.nagetiveSum += value));
30264
30282
  }
30283
+ this.clearCacheValue();
30284
+ }
30285
+ deleteRecord(record) {
30286
+ if (record) if (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), "Aggregator" === record.className) {
30287
+ const value = record.value();
30288
+ this.sum -= null != value ? value : 0, this.needSplitPositiveAndNegativeForSum && (value > 0 ? this.positiveSum -= value : value < 0 && (this.nagetiveSum -= value));
30289
+ } else if (this.field && !isNaN(parseFloat(record[this.field]))) {
30290
+ const value = parseFloat(record[this.field]);
30291
+ this.sum -= value, this.needSplitPositiveAndNegativeForSum && (value > 0 ? this.positiveSum -= value : value < 0 && (this.nagetiveSum -= value));
30292
+ }
30293
+ this.clearCacheValue();
30294
+ }
30295
+ updateRecord(oldRecord, newRecord) {
30296
+ if (oldRecord && newRecord) {
30297
+ if (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), "Aggregator" === oldRecord.className) {
30298
+ const oldValue = oldRecord.value(),
30299
+ newValue = newRecord.value();
30300
+ 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));
30301
+ } else if (this.field && !isNaN(parseFloat(oldRecord[this.field]))) {
30302
+ const oldValue = parseFloat(oldRecord[this.field]),
30303
+ newValue = parseFloat(newRecord[this.field]);
30304
+ 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));
30305
+ }
30306
+ this.clearCacheValue();
30307
+ }
30265
30308
  }
30266
30309
  value() {
30267
30310
  var _a;
@@ -30294,7 +30337,13 @@
30294
30337
  super(...arguments), this.type = AggregationType.COUNT, this.count = 0;
30295
30338
  }
30296
30339
  push(record) {
30297
- record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className ? this.count += record.value() : this.count++);
30340
+ record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className ? this.count += record.value() : this.count++), this.clearCacheValue();
30341
+ }
30342
+ deleteRecord(record) {
30343
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), "Aggregator" === record.className ? this.count -= record.value() : this.count--), this.clearCacheValue();
30344
+ }
30345
+ updateRecord(oldRecord, newRecord) {
30346
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), "Aggregator" === oldRecord.className && (this.count += newRecord.value() - oldRecord.value()));
30298
30347
  }
30299
30348
  value() {
30300
30349
  return this.count;
@@ -30314,7 +30363,13 @@
30314
30363
  super(...arguments), this.type = AggregationType.AVG, this.sum = 0, this.count = 0;
30315
30364
  }
30316
30365
  push(record) {
30317
- record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className && 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++));
30366
+ record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className && 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();
30367
+ }
30368
+ deleteRecord(record) {
30369
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), "Aggregator" === record.className && 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();
30370
+ }
30371
+ updateRecord(oldRecord, newRecord) {
30372
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), "Aggregator" === oldRecord.className && 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());
30318
30373
  }
30319
30374
  value() {
30320
30375
  var _a;
@@ -30335,7 +30390,13 @@
30335
30390
  super(...arguments), this.type = AggregationType.MAX, this.max = Number.MIN_SAFE_INTEGER;
30336
30391
  }
30337
30392
  push(record) {
30338
- record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className ? 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));
30393
+ record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className ? 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();
30394
+ }
30395
+ deleteRecord(record) {
30396
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.recalculate());
30397
+ }
30398
+ updateRecord(oldRecord, newRecord) {
30399
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.recalculate());
30339
30400
  }
30340
30401
  value() {
30341
30402
  var _a;
@@ -30356,7 +30417,13 @@
30356
30417
  super(...arguments), this.type = AggregationType.MIN, this.min = Number.MAX_SAFE_INTEGER;
30357
30418
  }
30358
30419
  push(record) {
30359
- record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className ? 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));
30420
+ record && (this.isRecord && this.records && ("Aggregator" === record.className ? this.records.push(...record.records) : this.records.push(record)), "Aggregator" === record.className ? 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.clearCacheValue();
30421
+ }
30422
+ deleteRecord(record) {
30423
+ record && (this.isRecord && this.records && (this.records = this.records.filter(item => item !== record)), this.recalculate());
30424
+ }
30425
+ updateRecord(oldRecord, newRecord) {
30426
+ oldRecord && newRecord && (this.isRecord && this.records && (this.records = this.records.map(item => item === oldRecord ? newRecord : item)), this.recalculate());
30360
30427
  }
30361
30428
  value() {
30362
30429
  var _a;
@@ -30420,9 +30487,9 @@
30420
30487
  static get EVENT_TYPE() {
30421
30488
  return EVENT_TYPE$1;
30422
30489
  }
30423
- constructor(dataSourceObj, dataConfig, pagination, columnObjs, rowHierarchyType, hierarchyExpandLevel) {
30490
+ constructor(dataSourceObj, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel) {
30424
30491
  var _a;
30425
- super(), this.currentIndexedData = [], this.hierarchyExpandLevel = 0, this.hasHierarchyStateExpand = !1, this.beforeChangedRecordsMap = [], this.registedAggregators = {}, this.fieldAggregators = [], this.layoutColumnObjects = [], this.registerAggregators(), this.dataSourceObj = dataSourceObj, this.dataConfig = dataConfig, this._get = null == dataSourceObj ? void 0 : dataSourceObj.get, this.layoutColumnObjects = columnObjs, this._source = (null == dataSourceObj ? void 0 : dataSourceObj.records) ? this.processRecords(null == dataSourceObj ? void 0 : dataSourceObj.records) : dataSourceObj, this._sourceLength = (null === (_a = this._source) || void 0 === _a ? void 0 : _a.length) || 0, this.sortedIndexMap = new Map(), this._currentPagerIndexedData = [], this.userPagination = pagination, this.pagination = pagination || {
30492
+ super(), this.currentIndexedData = [], this.hierarchyExpandLevel = 0, this.hasHierarchyStateExpand = !1, this.beforeChangedRecordsMap = [], this.registedAggregators = {}, this.fieldAggregators = [], this.registerAggregators(), this.dataSourceObj = dataSourceObj, this.dataConfig = dataConfig, this._get = null == dataSourceObj ? void 0 : dataSourceObj.get, this.columns = columns, this._source = (null == dataSourceObj ? void 0 : dataSourceObj.records) ? this.processRecords(null == dataSourceObj ? void 0 : dataSourceObj.records) : dataSourceObj, this._sourceLength = (null === (_a = this._source) || void 0 === _a ? void 0 : _a.length) || 0, this.sortedIndexMap = new Map(), this._currentPagerIndexedData = [], this.userPagination = pagination, this.pagination = pagination || {
30426
30493
  totalCount: this._sourceLength,
30427
30494
  perPageCount: this._sourceLength,
30428
30495
  currentPage: 0
@@ -30454,9 +30521,9 @@
30454
30521
  this.registerAggregator(AggregationType.RECORD, RecordAggregator), this.registerAggregator(AggregationType.SUM, SumAggregator), this.registerAggregator(AggregationType.COUNT, CountAggregator), this.registerAggregator(AggregationType.MAX, MaxAggregator), this.registerAggregator(AggregationType.MIN, MinAggregator), this.registerAggregator(AggregationType.AVG, AvgAggregator), this.registerAggregator(AggregationType.NONE, NoneAggregator), this.registerAggregator(AggregationType.CUSTOM, CustomAggregator);
30455
30522
  }
30456
30523
  _generateFieldAggragations() {
30457
- const columnObjs = this.layoutColumnObjects;
30524
+ const columnObjs = this.columns;
30458
30525
  for (let i = 0; i < (null == columnObjs ? void 0 : columnObjs.length); i++) {
30459
- columnObjs[i].aggregator = null;
30526
+ delete columnObjs[i].vtable_aggregator;
30460
30527
  const field = columnObjs[i].field,
30461
30528
  aggragation = columnObjs[i].aggregation;
30462
30529
  if (aggragation) if (Array.isArray(aggragation)) for (let j = 0; j < aggragation.length; j++) {
@@ -30467,7 +30534,7 @@
30467
30534
  isRecord: !0,
30468
30535
  aggregationFun: item.aggregationFun
30469
30536
  });
30470
- this.fieldAggregators.push(aggregator), columnObjs[i].aggregator || (columnObjs[i].aggregator = []), columnObjs[i].aggregator.push(aggregator);
30537
+ this.fieldAggregators.push(aggregator), columnObjs[i].vtable_aggregator || (columnObjs[i].vtable_aggregator = []), columnObjs[i].vtable_aggregator.push(aggregator);
30471
30538
  } else {
30472
30539
  const aggregator = new this.registedAggregators[aggragation.aggregationType]({
30473
30540
  dimension: field,
@@ -30475,7 +30542,7 @@
30475
30542
  isRecord: !0,
30476
30543
  aggregationFun: aggragation.aggregationFun
30477
30544
  });
30478
- this.fieldAggregators.push(aggregator), columnObjs[i].aggregator = aggregator;
30545
+ this.fieldAggregators.push(aggregator), columnObjs[i].vtable_aggregator = aggregator;
30479
30546
  }
30480
30547
  }
30481
30548
  }
@@ -30514,7 +30581,7 @@
30514
30581
  (currentLevel <= hierarchyExpandLevel || nodeData.hierarchyState === HierarchyState.expand) && (childTotalLength += 1);
30515
30582
  const childNodeData = nodeData.filteredChildren ? nodeData.filteredChildren[j] : nodeData.children[j],
30516
30583
  childIndexKey = Array.isArray(indexKey) ? indexKey.concat(j) : [indexKey, j];
30517
- (currentLevel <= hierarchyExpandLevel || nodeData.hierarchyState === HierarchyState.expand) && this.currentIndexedData.splice(this.currentIndexedData.indexOf(indexKey) + childTotalLength, 0, childIndexKey), (childNodeData.filteredChildren ? childNodeData.filteredChildren.length > 0 : (null === (_c = childNodeData.children) || void 0 === _c ? void 0 : _c.length) > 0) && (currentLevel < hierarchyExpandLevel || childNodeData.hierarchyState === HierarchyState.expand ? (!childNodeData.hierarchyState && (childNodeData.hierarchyState = HierarchyState.expand), this.hasHierarchyStateExpand = !0) : !childNodeData.hierarchyState && (childNodeData.hierarchyState = HierarchyState.collapse)), childNodeData.hierarchyState === HierarchyState.expand && (childTotalLength += this.initChildrenNodeHierarchy(childIndexKey, hierarchyExpandLevel, currentLevel + 1, childNodeData));
30584
+ (currentLevel <= hierarchyExpandLevel || nodeData.hierarchyState === HierarchyState.expand) && this.currentIndexedData.splice(this.currentIndexedData.indexOf(indexKey) + childTotalLength, 0, childIndexKey), (childNodeData.filteredChildren ? childNodeData.filteredChildren.length > 0 : (null === (_c = childNodeData.children) || void 0 === _c ? void 0 : _c.length) > 0) && (currentLevel < hierarchyExpandLevel || childNodeData.hierarchyState === HierarchyState.expand ? (!childNodeData.hierarchyState && (childNodeData.hierarchyState = HierarchyState.expand), this.hasHierarchyStateExpand = !0) : !childNodeData.hierarchyState && (childNodeData.hierarchyState = HierarchyState.collapse)), childNodeData.hierarchyState === HierarchyState.expand && (childTotalLength += this.initChildrenNodeHierarchy(childIndexKey, hierarchyExpandLevel, currentLevel + 1, childNodeData)), !0 === childNodeData.children && !childNodeData.hierarchyState && (childNodeData.hierarchyState = HierarchyState.collapse);
30518
30585
  }
30519
30586
  return childTotalLength;
30520
30587
  }
@@ -30658,7 +30725,9 @@
30658
30725
  addRecord(record, index) {
30659
30726
  var _a;
30660
30727
  if (Array.isArray(this.records)) {
30661
- if (this.records.splice(index, 0, record), this.adjustBeforeChangedRecordsMap(index, 1), this.currentIndexedData.push(this.currentIndexedData.length), this._sourceLength += 1, "tree" === this.rowHierarchyType && this.initTreeHierarchyState(), this.userPagination) {
30728
+ this.records.splice(index, 0, record), this.adjustBeforeChangedRecordsMap(index, 1), this.currentIndexedData.push(this.currentIndexedData.length), this._sourceLength += 1;
30729
+ for (let i = 0; i < this.fieldAggregators.length; i++) this.fieldAggregators[i].push(record);
30730
+ if ("tree" === this.rowHierarchyType && this.initTreeHierarchyState(), this.userPagination) {
30662
30731
  this.pagination.totalCount = this._sourceLength;
30663
30732
  const {
30664
30733
  perPageCount: perPageCount,
@@ -30676,6 +30745,7 @@
30676
30745
  this.records.splice(index, 0, ...recordArr), this.adjustBeforeChangedRecordsMap(index, recordArr.length);
30677
30746
  for (let i = 0; i < recordArr.length; i++) this.currentIndexedData.push(this.currentIndexedData.length);
30678
30747
  this._sourceLength += recordArr.length;
30748
+ for (let i = 0; i < this.fieldAggregators.length; i++) for (let j = 0; j < recordArr.length; j++) this.fieldAggregators[i].push(recordArr[j]);
30679
30749
  }
30680
30750
  if (this.userPagination) {
30681
30751
  this.pagination.totalCount = this._sourceLength;
@@ -30714,7 +30784,11 @@
30714
30784
  recordIndexsMaxToMin = recordIndexs.sort((a, b) => b - a);
30715
30785
  for (let index = 0; index < recordIndexsMaxToMin.length; index++) {
30716
30786
  const recordIndex = recordIndexsMaxToMin[index];
30717
- recordIndex >= this._sourceLength || recordIndex < 0 || (delete this.beforeChangedRecordsMap[recordIndex], realDeletedRecordIndexs.push(recordIndex), this.records.splice(recordIndex, 1), this.currentIndexedData.pop(), this._sourceLength -= 1);
30787
+ if (recordIndex >= this._sourceLength || recordIndex < 0) continue;
30788
+ delete this.beforeChangedRecordsMap[recordIndex], realDeletedRecordIndexs.push(recordIndex);
30789
+ const deletedRecord = this.records[recordIndex];
30790
+ for (let i = 0; i < this.fieldAggregators.length; i++) this.fieldAggregators[i].deleteRecord(deletedRecord);
30791
+ this.records.splice(recordIndex, 1), this.currentIndexedData.pop(), this._sourceLength -= 1;
30718
30792
  }
30719
30793
  return this.userPagination || (this.pagination.perPageCount = this._sourceLength, this.pagination.totalCount = this._sourceLength), this.updatePagerData(), (null === (_a = this.dataSourceObj) || void 0 === _a ? void 0 : _a.deleted) && this.dataSourceObj.deleted(realDeletedRecordIndexs), realDeletedRecordIndexs;
30720
30794
  }
@@ -30736,7 +30810,11 @@
30736
30810
  const realDeletedRecordIndexs = [];
30737
30811
  for (let index = 0; index < recordIndexs.length; index++) {
30738
30812
  const recordIndex = recordIndexs[index];
30739
- recordIndex >= this._sourceLength || recordIndex < 0 || (delete this.beforeChangedRecordsMap[recordIndex], realDeletedRecordIndexs.push(recordIndex), this.records[recordIndex] = records[index]);
30813
+ if (!(recordIndex >= this._sourceLength || recordIndex < 0)) {
30814
+ delete this.beforeChangedRecordsMap[recordIndex], realDeletedRecordIndexs.push(recordIndex);
30815
+ for (let i = 0; i < this.fieldAggregators.length; i++) this.fieldAggregators[i].updateRecord(this.records[recordIndex], records[index]);
30816
+ this.records[recordIndex] = records[index];
30817
+ }
30740
30818
  }
30741
30819
  return this.userPagination && this.updatePagerData(), realDeletedRecordIndexs;
30742
30820
  }
@@ -30752,9 +30830,8 @@
30752
30830
  }
30753
30831
  sort(states) {
30754
30832
  states = (Array.isArray(states) ? states : [states]).filter(state => {
30755
- var _a;
30756
- let column = this.layoutColumnObjects.find(obj => obj.field == state.field);
30757
- return !1 !== (null === (_a = null == column ? void 0 : column.define) || void 0 === _a ? void 0 : _a.sort) && "normal" !== state.order;
30833
+ const column = this.columns.find(obj => obj.field === state.field);
30834
+ return !1 !== (null == column ? void 0 : column.sort) && "normal" !== state.order;
30758
30835
  }), this.lastSortStates = states;
30759
30836
  let filedMapArray = states.map(state => this.sortedIndexMap.get(null == state ? void 0 : state.field) || {
30760
30837
  asc: [],
@@ -31007,15 +31084,15 @@
31007
31084
  static get EVENT_TYPE() {
31008
31085
  return DataSource$1.EVENT_TYPE;
31009
31086
  }
31010
- static ofArray(array, dataConfig, pagination, columnObjs, rowHierarchyType, hierarchyExpandLevel) {
31087
+ static ofArray(array, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel) {
31011
31088
  return new CachedDataSource({
31012
31089
  get: index => array[index],
31013
31090
  length: array.length,
31014
31091
  records: array
31015
- }, dataConfig, pagination, columnObjs, rowHierarchyType, hierarchyExpandLevel);
31092
+ }, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel);
31016
31093
  }
31017
- constructor(opt, dataConfig, pagination, columnObjs, rowHierarchyType, hierarchyExpandLevel) {
31018
- isArray$1(null == dataConfig ? void 0 : dataConfig.groupByRules) && (rowHierarchyType = "tree"), super(opt, dataConfig, pagination, columnObjs, rowHierarchyType, hierarchyExpandLevel), this._recordCache = [], this._fieldCache = {};
31094
+ constructor(opt, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel) {
31095
+ isArray$1(null == dataConfig ? void 0 : dataConfig.groupByRules) && (rowHierarchyType = "tree"), super(opt, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel), this._recordCache = [], this._fieldCache = {};
31019
31096
  }
31020
31097
  getOriginalRecord(index) {
31021
31098
  return this._recordCache && this._recordCache[index] ? this._recordCache[index] : super.getOriginalRecord(index);
@@ -31536,7 +31613,7 @@
31536
31613
  let records = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
31537
31614
  _dealWithUpdateDataSource(table, () => {
31538
31615
  table.internalProps.records = records;
31539
- const newDataSource = table.internalProps.dataSource = CachedDataSource.ofArray(records, table.internalProps.dataConfig, table.pagination, table.internalProps.layoutMap.columnObjects, table.internalProps.layoutMap.rowHierarchyType, getHierarchyExpandLevel(table));
31616
+ const newDataSource = table.internalProps.dataSource = CachedDataSource.ofArray(records, table.internalProps.dataConfig, table.pagination, table.internalProps.columns, table.internalProps.layoutMap.rowHierarchyType, getHierarchyExpandLevel(table));
31540
31617
  table.addReleaseObj(newDataSource);
31541
31618
  });
31542
31619
  }
@@ -31697,6 +31774,27 @@
31697
31774
  }
31698
31775
  return 0;
31699
31776
  }
31777
+ function generateAggregationForColumn(table) {
31778
+ for (let col = 0; col < table.internalProps.columns.length; col++) {
31779
+ const colDef = table.internalProps.columns[col];
31780
+ if (colDef.aggregation) ;else if (table.options.aggregation) {
31781
+ let aggregation;
31782
+ if (aggregation = "function" == typeof table.options.aggregation ? table.options.aggregation({
31783
+ col: col,
31784
+ field: colDef.field
31785
+ }) : table.options.aggregation, aggregation) if (Array.isArray(aggregation)) {
31786
+ const aggregations = [];
31787
+ aggregation.forEach(item => {
31788
+ aggregations.push(Object.assign({
31789
+ showOnTop: !1
31790
+ }, item));
31791
+ }), colDef.aggregation = aggregations;
31792
+ } else colDef.aggregation = Object.assign({
31793
+ showOnTop: !1
31794
+ }, aggregation);
31795
+ }
31796
+ }
31797
+ }
31700
31798
 
31701
31799
  let Icon$1 = class Icon extends Image$2 {
31702
31800
  constructor(params) {
@@ -32212,7 +32310,7 @@
32212
32310
  get sort_downward() {
32213
32311
  return {
32214
32312
  type: "svg",
32215
- 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="#282F38" fill-opacity="0.35"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="#416EFF"/> </svg>',
32313
+ 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="#416EFF"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="#282F38" fill-opacity="0.35"/></svg> ',
32216
32314
  width: 16,
32217
32315
  height: 16,
32218
32316
  funcType: IconFuncTypeEnum.sort,
@@ -32230,7 +32328,7 @@
32230
32328
  get sort_upward() {
32231
32329
  return {
32232
32330
  type: "svg",
32233
- 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="#416EFF"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="#282F38" fill-opacity="0.35"/></svg> ',
32331
+ 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="#282F38" fill-opacity="0.35"/><path d="M11.3335 7L4.66683 7L8.00016 2.83333L11.3335 7Z" fill="#416EFF"/> </svg>',
32234
32332
  width: 16,
32235
32333
  height: 16,
32236
32334
  funcType: IconFuncTypeEnum.sort,
@@ -33657,7 +33755,7 @@
33657
33755
  fontSize: DefaultTextStyle.fontSize
33658
33756
  },
33659
33757
  getTextBounds: useNaiveCanvas ? void 0 : getTextBounds,
33660
- specialCharSet: `{}()//&-/: .,@%'"~…=${TextMeasure.ALPHABET_CHAR_SET}${TextMeasure.ALPHABET_CHAR_SET.toUpperCase()}0123456789${customAlphabetCharSet}`
33758
+ specialCharSet: `{}()//&-/: .,@%'"~…=——${TextMeasure.ALPHABET_CHAR_SET}${TextMeasure.ALPHABET_CHAR_SET.toUpperCase()}0123456789${customAlphabetCharSet}`
33661
33759
  }, null != option ? option : {}), textSpec));
33662
33760
  var textSpec, option, useNaiveCanvas;
33663
33761
  return fastTextMeasureCache.set(key, fastTextMeasure), fastTextMeasure;
@@ -36150,7 +36248,14 @@
36150
36248
  const table = group.stage.table;
36151
36249
  if (!table) return;
36152
36250
  const bottomRight = "bottom-right" === (null == table ? void 0 : table.theme.cellBorderClipDirection);
36153
- bottomRight ? (x = Math.floor(x) - .5, y = Math.floor(y) - .5) : (x = Math.floor(x) + .5, y = Math.floor(y) + .5), (null === (_a = table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) && (width = Math.round(width), height = Math.round(height));
36251
+ if (bottomRight) {
36252
+ if (x = Math.floor(x) - .5, y = Math.floor(y) - .5, "cell" === group.role) {
36253
+ const col = group.col,
36254
+ row = group.row;
36255
+ 0 === col && (x += 1), 0 === row && (y += 1);
36256
+ }
36257
+ } else x = Math.floor(x) + .5, y = Math.floor(y) + .5;
36258
+ (null === (_a = table.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) && (width = Math.round(width), height = Math.round(height));
36154
36259
  const {
36155
36260
  width: widthFroDraw,
36156
36261
  height: heightFroDraw
@@ -36265,7 +36370,11 @@
36265
36370
  const bottomRight = "bottom-right" === table.theme.cellBorderClipDirection,
36266
36371
  deltaWidth = 0,
36267
36372
  deltaHeight = 0;
36268
- bottomRight ? (x = Math.floor(x) - .5, y = Math.floor(y) - .5) : (x = Math.floor(x) + .5, y = Math.floor(y) + .5);
36373
+ if (bottomRight) {
36374
+ if (x = Math.floor(x) - .5, y = Math.floor(y) - .5, "cell" === group.role) {
36375
+ 0 === group.col && (x += 1), 0 === group.row && (y += 1);
36376
+ }
36377
+ } else x = Math.floor(x) + .5, y = Math.floor(y) + .5;
36269
36378
  const {
36270
36379
  width: widthFroDraw,
36271
36380
  height: heightFroDraw
@@ -36319,7 +36428,11 @@
36319
36428
  const bottomRight = "bottom-right" === (null == table ? void 0 : table.theme.cellBorderClipDirection),
36320
36429
  deltaWidth = 0,
36321
36430
  deltaHeight = 0;
36322
- bottomRight ? (x = Math.floor(x) - .5, y = Math.floor(y) - .5) : (x = Math.floor(x) + .5, y = Math.floor(y) + .5);
36431
+ if (bottomRight) {
36432
+ if (x = Math.floor(x) - .5, y = Math.floor(y) - .5, "cell" === group.role) {
36433
+ 0 === group.col && (x += 1), 0 === group.row && (y += 1);
36434
+ }
36435
+ } else x = Math.floor(x) + .5, y = Math.floor(y) + .5;
36323
36436
  const {
36324
36437
  width: widthFroDraw,
36325
36438
  height: heightFroDraw
@@ -36396,12 +36509,16 @@
36396
36509
  }
36397
36510
  function getCellSizeForDraw(group, width, height, bottomRight) {
36398
36511
  const table = group.stage.table;
36512
+ if (!table) return {
36513
+ width: width,
36514
+ height: height
36515
+ };
36399
36516
  if ("cell" === group.role) {
36400
36517
  let col = group.col,
36401
36518
  row = group.row;
36402
36519
  const mergeInfo = getCellMergeInfo(table, col, row);
36403
- mergeInfo && (col = mergeInfo.end.col, row = mergeInfo.end.row), (table && col === table.colCount - 1 && !bottomRight || table && col === table.frozenColCount - 1 && table.scrollLeft && !bottomRight) && (width -= 1), (table && row === table.rowCount - 1 && !bottomRight || table && row === table.frozenRowCount - 1 && table.scrollTop && !bottomRight) && (height -= 1);
36404
- } else "corner-frozen" === group.role && (table && table.scrollLeft && !bottomRight && (width -= 1), table && table.scrollTop && !bottomRight && (height -= 1));
36520
+ 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;
36521
+ } else "corner-frozen" === group.role && (table.scrollLeft && !bottomRight && (width -= 1), table.scrollTop && !bottomRight && (height -= 1));
36405
36522
  return {
36406
36523
  width: width,
36407
36524
  height: height
@@ -38763,7 +38880,7 @@
38763
38880
  scene.bodyGroup.setAttribute("x", scene.rowHeaderGroup.attribute.width), scene.colHeaderGroup.setAttribute("x", scene.cornerHeaderGroup.attribute.width), scene.updateContainer(), scene.updateBorderSizeAndPosition(), scene.isPivot || scene.table.transpose ? scene.table.options.frozenColCount ? scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1) : scene.table.options.frozenColCount && scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount) : (scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1), scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount)), scene.hasFrozen = !0, scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : 0;
38764
38881
  }
38765
38882
  function resetFrozen(scene) {
38766
- var _a, _b;
38883
+ var _a, _b, _c, _d;
38767
38884
  if (scene.frozenColCount > scene.table.frozenColCount) {
38768
38885
  scene.bodyGroup.setAttribute("height", scene.rowHeaderGroup.attribute.height), scene.bodyGroup.setAttribute("y", scene.rowHeaderGroup.attribute.y), scene.colHeaderGroup.setAttribute("height", scene.cornerHeaderGroup.attribute.height);
38769
38886
  for (let i = 0; i < scene.frozenColCount - scene.table.frozenColCount; i++) moveColumnFromRowHeaderToBody(scene), moveColumnFromCornerHeaderToColHeader(scene), moveColumnFromLeftBottomCornerToBottom(scene);
@@ -38773,7 +38890,7 @@
38773
38890
  }
38774
38891
  updateReactComponentContainer(scene), scene.deleteAllSelectBorder(), scene.table.stateManager.select.ranges.forEach(range => {
38775
38892
  scene.updateCellSelectBorder(range);
38776
- }), scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : 0, scene.proxy.colStart = scene.table.frozenColCount, scene.bodyGroup.setAttribute("x", scene.rowHeaderGroup.attribute.width), scene.colHeaderGroup.setAttribute("x", scene.cornerHeaderGroup.attribute.width), scene.updateContainer(), scene.updateBorderSizeAndPosition(), scene.isPivot || scene.table.transpose ? scene.table.options.frozenColCount ? scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1) : scene.table.options.rightFrozenColCount && scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount) : (scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1), scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount)), scene.hasFrozen = !0;
38893
+ }), scene.frozenColCount = scene.table.frozenColCount, scene.frozenRowCount = null !== (_b = null === (_a = scene.colHeaderGroup.firstChild) || void 0 === _a ? void 0 : _a.childrenCount) && void 0 !== _b ? _b : 0, scene.proxy.colStart = null !== (_d = null === (_c = scene.bodyGroup.firstChild) || void 0 === _c ? void 0 : _c.col) && void 0 !== _d ? _d : scene.table.frozenColCount, scene.bodyGroup.setAttribute("x", scene.rowHeaderGroup.attribute.width), scene.colHeaderGroup.setAttribute("x", scene.cornerHeaderGroup.attribute.width), scene.updateContainer(), scene.updateBorderSizeAndPosition(), scene.isPivot || scene.table.transpose ? scene.table.options.frozenColCount ? scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1) : scene.table.options.rightFrozenColCount && scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount) : (scene.component.setFrozenColumnShadow(scene.table.frozenColCount - 1), scene.component.setRightFrozenColumnShadow(scene.table.colCount - scene.table.rightFrozenColCount)), scene.hasFrozen = !0;
38777
38894
  }
38778
38895
  function moveColumnFromBodyToRowHeader(scene) {
38779
38896
  const column = scene.bodyGroup.firstChild instanceof Group$1 ? scene.bodyGroup.firstChild : null;
@@ -42254,6 +42371,7 @@
42254
42371
  }
42255
42372
  }), table.scenegraph.tableGroup.addEventListener("pointertap", e => {
42256
42373
  var _a, _b, _c, _d, _e;
42374
+ if (table.stateManager.columnResize.resizing) return;
42257
42375
  const eventArgsSet = getCellEventArgsSet(e);
42258
42376
  if (!eventManager.touchMove && 0 === e.button && eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.CLICK_CELL)) {
42259
42377
  const {
@@ -44055,7 +44173,7 @@
44055
44173
  if (showSort) {
44056
44174
  let order = this._table.getPivotSortState(col, row);
44057
44175
  order && (order = order.toUpperCase());
44058
- const sortIcon = "ASC" === order ? this.downIcon : "DESC" === order ? this.upIcon : this.normalIcon;
44176
+ const sortIcon = "ASC" === order ? this.upIcon : "DESC" === order ? this.downIcon : this.normalIcon;
44059
44177
  sortIcon && icons.push(sortIcon);
44060
44178
  } else if (sort) {
44061
44179
  const sortIcon = this.getSortIconForPivotTable(this._table.getPivotSortState(col, row), this._table, col, row);
@@ -44129,14 +44247,14 @@
44129
44247
  return this._table.options.frozenColCount - 1 > col ? frozen = this.frozenIcon : this._table.options.frozenColCount - 1 === col && (frozen = this.frozenCurrentIcon), frozen;
44130
44248
  }
44131
44249
  getSortIcon(order, _table, col, row) {
44132
- const icon = "asc" === order ? this.downIcon : "desc" === order ? this.upIcon : this.normalIcon,
44250
+ const icon = "asc" === order ? this.upIcon : "desc" === order ? this.downIcon : this.normalIcon,
44133
44251
  headerC = _table.getHeaderDefine(col, row);
44134
44252
  return !headerC || !1 === headerC.showSort || !isValid$1(headerC.showSort) && !headerC.sort || headerC.columns && headerC.columns.length > 0 ? null : icon;
44135
44253
  }
44136
44254
  getSortIconForPivotTable(order, _table, col, row) {
44137
44255
  const headerC = _table.getHeaderDefine(col, row);
44138
44256
  if (!headerC || !1 === headerC.showSort || !isValid$1(headerC.showSort) && !headerC.sort || headerC.columns && headerC.columns.length > 0) return null;
44139
- return "ASC" === (null == order ? void 0 : order.toUpperCase()) ? this.downIcon : "DESC" === (null == order ? void 0 : order.toUpperCase()) ? this.upIcon : this.normalIcon;
44257
+ return "ASC" === (null == order ? void 0 : order.toUpperCase()) ? this.upIcon : "DESC" === (null == order ? void 0 : order.toUpperCase()) ? this.downIcon : this.normalIcon;
44140
44258
  }
44141
44259
  getDropDownStateIcons(_table, col, row) {
44142
44260
  var _a, _b, _c;
@@ -44665,7 +44783,7 @@
44665
44783
  let count = 0;
44666
44784
  for (let i = 0; i < columnObjects.length; i++) {
44667
44785
  const column = columnObjects[i];
44668
- (null == column ? void 0 : column.aggregation) && (Array.isArray(null == column ? void 0 : column.aggregation) ? count = Math.max(count, column.aggregation.filter(item => !0 === item.showOnTop).length) : !0 === column.aggregation.showOnTop && (count = Math.max(count, 1)));
44786
+ (null == column ? void 0 : column.aggregation) && (Array.isArray(null == column ? void 0 : column.aggregation) ? count = Math.max(count, column.aggregation.filter(item => item.showOnTop).length) : column.aggregation.showOnTop && (count = Math.max(count, 1)));
44669
44787
  }
44670
44788
  return count;
44671
44789
  }
@@ -44674,7 +44792,7 @@
44674
44792
  let count = 0;
44675
44793
  for (let i = 0; i < columnObjects.length; i++) {
44676
44794
  const column = columnObjects[i];
44677
- (null == column ? void 0 : column.aggregation) && (Array.isArray(null == column ? void 0 : column.aggregation) ? count = Math.max(count, column.aggregation.filter(item => !1 === item.showOnTop).length) : !1 === column.aggregation.showOnTop && (count = Math.max(count, 1)));
44795
+ (null == column ? void 0 : column.aggregation) && (Array.isArray(null == column ? void 0 : column.aggregation) ? count = Math.max(count, column.aggregation.filter(item => !item.showOnTop).length) : column.aggregation.showOnTop || (count = Math.max(count, 1)));
44678
44796
  }
44679
44797
  return count;
44680
44798
  }
@@ -45550,7 +45668,7 @@
45550
45668
  constructor(container) {
45551
45669
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45552
45670
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
45553
- if (super(), this.showFrozenIcon = !0, this.version = "1.7.8-alpha.5", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
45671
+ if (super(), this.showFrozenIcon = !0, this.version = "1.7.8", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
45554
45672
  const {
45555
45673
  frozenColCount = 0,
45556
45674
  frozenRowCount: frozenRowCount,
@@ -48131,26 +48249,26 @@
48131
48249
  return this._hasAggregationOnBottomCount;
48132
48250
  }
48133
48251
  getAggregatorsByCell(col, row) {
48134
- return this.getBody(col, row).aggregator;
48252
+ return this.getColumnDefine(col, row).vtable_aggregator;
48135
48253
  }
48136
48254
  getAggregatorsByCellRange(startCol, startRow, endCol, endRow) {
48137
48255
  let aggregators = [];
48138
48256
  if (!this.transpose) {
48139
48257
  for (let i = startCol; i <= endCol; i++) {
48140
- const column = this.getBody(i, startRow);
48141
- column.aggregator && (aggregators = aggregators.concat(Array.isArray(column.aggregator) ? column.aggregator : [column.aggregator]));
48258
+ const column = this.getColumnDefine(i, startRow);
48259
+ column.vtable_aggregator && (aggregators = aggregators.concat(Array.isArray(column.vtable_aggregator) ? column.vtable_aggregator : [column.vtable_aggregator]));
48142
48260
  }
48143
48261
  return aggregators;
48144
48262
  }
48145
48263
  for (let i = startRow; i <= endRow; i++) {
48146
- const column = this.getBody(startCol, i);
48147
- column.aggregator && (aggregators = aggregators.concat(Array.isArray(column.aggregator) ? column.aggregator : [column.aggregator]));
48264
+ const column = this.getColumnDefine(startCol, i);
48265
+ column.vtable_aggregator && (aggregators = aggregators.concat(Array.isArray(column.vtable_aggregator) ? column.vtable_aggregator : [column.vtable_aggregator]));
48148
48266
  }
48149
48267
  return [];
48150
48268
  }
48151
48269
  getAggregatorOnTop(col, row) {
48152
- const column = this.getBody(col, row),
48153
- aggregators = column.aggregator,
48270
+ const column = this.getColumnDefine(col, row),
48271
+ aggregators = column.vtable_aggregator,
48154
48272
  aggregation = column.aggregation;
48155
48273
  if (Array.isArray(aggregation)) {
48156
48274
  const topAggregators = aggregation.reduce((indexs, agg, index) => (agg.showOnTop && indexs.push(index), indexs), []).map(index => aggregators[index]);
@@ -48159,21 +48277,21 @@
48159
48277
  return this.transpose && col - this.rowHeaderLevelCount == 0 ? (null == aggregation ? void 0 : aggregation.showOnTop) ? aggregators : null : this.transpose || row - this.columnHeaderLevelCount != 0 ? null : (null == aggregation ? void 0 : aggregation.showOnTop) ? aggregators : null;
48160
48278
  }
48161
48279
  getAggregatorOnBottom(col, row) {
48162
- const column = this.getBody(col, row),
48163
- aggregators = column.aggregator,
48280
+ const column = this.getColumnDefine(col, row),
48281
+ aggregators = column.vtable_aggregator,
48164
48282
  aggregation = column.aggregation;
48165
48283
  if (Array.isArray(aggregation)) {
48166
- const bottomAggregators = aggregation.reduce((indexs, agg, index) => (!1 === agg.showOnTop && indexs.push(index), indexs), []).map(index => aggregators[index]);
48284
+ const bottomAggregators = aggregation.reduce((indexs, agg, index) => (agg.showOnTop || indexs.push(index), indexs), []).map(index => aggregators[index]);
48167
48285
  return this.transpose ? bottomAggregators[col - (this.colCount - this.hasAggregationOnBottomCount)] : bottomAggregators[row - (this.rowCount - this.hasAggregationOnBottomCount)];
48168
48286
  }
48169
- return this.transpose && col - (this.colCount - this.hasAggregationOnBottomCount) == 0 ? !1 === (null == aggregation ? void 0 : aggregation.showOnTop) ? aggregators : null : this.transpose || row - (this.rowCount - this.hasAggregationOnBottomCount) != 0 ? null : !1 === (null == aggregation ? void 0 : aggregation.showOnTop) ? aggregators : null;
48287
+ return this.transpose && col - (this.colCount - this.hasAggregationOnBottomCount) == 0 ? (null == aggregation ? void 0 : aggregation.showOnTop) ? null : aggregators : this.transpose || row - (this.rowCount - this.hasAggregationOnBottomCount) != 0 || (null == aggregation ? void 0 : aggregation.showOnTop) ? null : aggregators;
48170
48288
  }
48171
48289
  getAggregatorCellAddress(startCol, startRow, endCol, endRow) {
48172
48290
  const cellAddrs = [],
48173
48291
  topCount = this.hasAggregationOnTopCount,
48174
48292
  bottomCount = this.hasAggregationOnBottomCount;
48175
48293
  if (this.transpose) for (let row = startRow; row <= endRow; row++) {
48176
- if (this.getBody(startCol, row).aggregator) {
48294
+ if (this.getColumnDefine(startCol, row).vtable_aggregator) {
48177
48295
  for (let i = 0; i < topCount; i++) cellAddrs.push({
48178
48296
  col: this.headerLevelCount + i,
48179
48297
  row: row
@@ -48184,7 +48302,7 @@
48184
48302
  });
48185
48303
  }
48186
48304
  } else for (let col = startCol; col <= endCol; col++) {
48187
- if (this.getBody(col, startRow).aggregator) {
48305
+ if (this.getColumnDefine(col, startRow).vtable_aggregator) {
48188
48306
  for (let i = 0; i < topCount; i++) cellAddrs.push({
48189
48307
  col: col,
48190
48308
  row: this.headerLevelCount + i
@@ -48525,7 +48643,7 @@
48525
48643
  define: hd,
48526
48644
  columnWidthComputeMode: hd.columnWidthComputeMode,
48527
48645
  disableColumnResize: null == hd ? void 0 : hd.disableColumnResize,
48528
- aggregation: this._getAggregationForColumn(hd, col),
48646
+ aggregation: hd.aggregation,
48529
48647
  isChildNode: row >= 1
48530
48648
  };
48531
48649
  if (this._columnsIncludeHided.push(colDef), !0 !== hd.hide) {
@@ -48535,15 +48653,6 @@
48535
48653
  }
48536
48654
  }), results;
48537
48655
  }
48538
- _getAggregationForColumn(colDef, col) {
48539
- let aggregation;
48540
- return colDef.aggregation ? aggregation = colDef.aggregation : this._table.options.aggregation && (aggregation = "function" == typeof this._table.options.aggregation ? this._table.options.aggregation({
48541
- col: col,
48542
- field: colDef.field
48543
- }) : this._table.options.aggregation), aggregation ? Array.isArray(aggregation) ? aggregation.map(item => (isValid$1(item.showOnTop) || (item.showOnTop = !1), item)) : Object.assign({
48544
- showOnTop: !1
48545
- }, aggregation) : null;
48546
- }
48547
48656
  _newRow(row) {
48548
48657
  let hideColumnsSubHeader = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
48549
48658
  if (this._headerCellIds[row]) {
@@ -48588,7 +48697,7 @@
48588
48697
  targetIndex = this.getRecordShowIndexByCell(0, target.row);
48589
48698
  return this._table.dataSource.isCanExchangeOrder(sourceIndex, targetIndex);
48590
48699
  }
48591
- if (this.transpose && this.isSeriesNumberInBody(target.col, target.row) && this.isSeriesNumberInBody(source.col, source.row) && (this._getColumnDefine(source.col + this.leftRowSeriesNumberColumnCount, source.row).isChildNode && this._getColumnDefine(target.col + this.leftRowSeriesNumberColumnCount, target.row).isChildNode ? (source.col = source.col + this.leftRowSeriesNumberColumnCount + this.rowHeaderLevelCount - 1, target.col = target.col + this.leftRowSeriesNumberColumnCount + this.rowHeaderLevelCount - 1) : (source.col = source.col + this.leftRowSeriesNumberColumnCount, target.col = target.col + this.leftRowSeriesNumberColumnCount)), source.col < 0 || source.row < 0 || target.col < 0 || target.row < 0) return !1;
48700
+ if (this.transpose && this.isSeriesNumberInBody(target.col, target.row) && this.isSeriesNumberInBody(source.col, source.row) && (this.getBody(source.col + this.leftRowSeriesNumberColumnCount, source.row).isChildNode && this.getBody(target.col + this.leftRowSeriesNumberColumnCount, target.row).isChildNode ? (source.col = source.col + this.leftRowSeriesNumberColumnCount + this.rowHeaderLevelCount - 1, target.col = target.col + this.leftRowSeriesNumberColumnCount + this.rowHeaderLevelCount - 1) : (source.col = source.col + this.leftRowSeriesNumberColumnCount, target.col = target.col + this.leftRowSeriesNumberColumnCount)), source.col < 0 || source.row < 0 || target.col < 0 || target.row < 0) return !1;
48592
48701
  if ("disabled" === this._table.internalProps.frozenColDragHeaderMode && this._table.isFrozenColumn(target.col)) return !1;
48593
48702
  const sourceCellRange = this.getCellRange(source.col, source.row);
48594
48703
  if (this.isColumnHeader(source.col, source.row)) {
@@ -48727,8 +48836,8 @@
48727
48836
  columnDefine: cur
48728
48837
  }), pre), []);
48729
48838
  }
48730
- _getColumnDefine(col, row) {
48731
- if (col >= 0) return col < this.leftRowSeriesNumberColumnCount ? this.leftRowSeriesNumberColumn[col] : this.transpose ? this._columns[row] : this._columns[col - this.leftRowSeriesNumberColumnCount];
48839
+ getColumnDefine(col, row) {
48840
+ if (col >= 0) return col < this.leftRowSeriesNumberColumnCount ? this.leftRowSeriesNumberColumn[col].define : this.transpose ? this._columns[row].define : this._columns[col - this.leftRowSeriesNumberColumnCount].define;
48732
48841
  }
48733
48842
  }
48734
48843
 
@@ -48763,6 +48872,7 @@
48763
48872
  }
48764
48873
  startEditCell(col, row, value) {
48765
48874
  var _a, _b, _c, _d, _e;
48875
+ if (this.editingEditor) return;
48766
48876
  const editor = this.table.getEditor(col, row);
48767
48877
  if (editor) {
48768
48878
  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;
@@ -49022,6 +49132,23 @@
49022
49132
  col: 0,
49023
49133
  row: row
49024
49134
  });
49135
+ const updateRows = [],
49136
+ topAggregationCount = table.internalProps.layoutMap.hasAggregationOnTopCount,
49137
+ bottomAggregationCount = table.internalProps.layoutMap.hasAggregationOnBottomCount;
49138
+ for (let row = headerCount; row < headerCount + topAggregationCount; row++) table.transpose ? updateRows.push({
49139
+ col: row,
49140
+ row: 0
49141
+ }) : updateRows.push({
49142
+ col: 0,
49143
+ row: row
49144
+ });
49145
+ for (let row = (table.transpose ? table.colCount : table.rowCount) - bottomAggregationCount; row < (table.transpose ? table.colCount : table.rowCount); row++) table.transpose ? updateRows.push({
49146
+ col: row,
49147
+ row: 0
49148
+ }) : updateRows.push({
49149
+ col: 0,
49150
+ row: row
49151
+ });
49025
49152
  table.transpose ? table.scenegraph.updateCol([], addRows, []) : table.scenegraph.updateRow([], addRows, []);
49026
49153
  }
49027
49154
  }
@@ -49074,7 +49201,24 @@
49074
49201
  col: 0,
49075
49202
  row: row
49076
49203
  });
49077
- table.transpose ? table.scenegraph.updateCol([], addRows, []) : table.scenegraph.updateRow([], addRows, []);
49204
+ const topAggregationCount = table.internalProps.layoutMap.hasAggregationOnTopCount,
49205
+ bottomAggregationCount = table.internalProps.layoutMap.hasAggregationOnBottomCount,
49206
+ updateRows = [];
49207
+ for (let row = headerCount; row < headerCount + topAggregationCount; row++) table.transpose ? updateRows.push({
49208
+ col: row,
49209
+ row: 0
49210
+ }) : updateRows.push({
49211
+ col: 0,
49212
+ row: row
49213
+ });
49214
+ for (let row = (table.transpose ? table.colCount : table.rowCount) - bottomAggregationCount; row < (table.transpose ? table.colCount : table.rowCount); row++) table.transpose ? updateRows.push({
49215
+ col: row,
49216
+ row: 0
49217
+ }) : updateRows.push({
49218
+ col: 0,
49219
+ row: row
49220
+ });
49221
+ table.transpose ? table.scenegraph.updateCol([], addRows, updateRows) : table.scenegraph.updateRow([], addRows, updateRows);
49078
49222
  }
49079
49223
  }
49080
49224
  }
@@ -49095,9 +49239,18 @@
49095
49239
  } = table.pagination,
49096
49240
  endIndex = perPageCount * (currentPage || 0) + perPageCount;
49097
49241
  if (minRecordIndex < endIndex) if (minRecordIndex < endIndex - perPageCount) table.scenegraph.clearCells(), table.scenegraph.createSceneGraph();else {
49098
- const updateRows = [],
49242
+ const headerCount = table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount,
49243
+ topAggregationCount = table.internalProps.layoutMap.hasAggregationOnTopCount,
49244
+ updateRows = [],
49099
49245
  delRows = [];
49100
- for (let row = minRecordIndex - (endIndex - perPageCount) + (table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount); row < newRowCount; row++) table.transpose ? updateRows.push({
49246
+ for (let row = minRecordIndex - (endIndex - perPageCount) + (table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount) + topAggregationCount; row < newRowCount; row++) table.transpose ? updateRows.push({
49247
+ col: row,
49248
+ row: 0
49249
+ }) : updateRows.push({
49250
+ col: 0,
49251
+ row: row
49252
+ });
49253
+ for (let row = headerCount; row < headerCount + topAggregationCount; row++) table.transpose ? updateRows.push({
49101
49254
  col: row,
49102
49255
  row: 0
49103
49256
  }) : updateRows.push({
@@ -49114,9 +49267,12 @@
49114
49267
  table.transpose ? table.scenegraph.updateCol(delRows, [], updateRows) : table.scenegraph.updateRow(delRows, [], updateRows);
49115
49268
  }
49116
49269
  } else {
49117
- const delRows = [];
49270
+ const delRows = [],
49271
+ headerCount = table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount,
49272
+ topAggregationCount = table.internalProps.layoutMap.hasAggregationOnTopCount,
49273
+ bottomAggregationCount = table.internalProps.layoutMap.hasAggregationOnBottomCount;
49118
49274
  for (let index = 0; index < recordIndexsMinToMax.length; index++) {
49119
- const rowNum = recordIndexsMinToMax[index] + (table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount);
49275
+ const rowNum = recordIndexsMinToMax[index] + headerCount + topAggregationCount;
49120
49276
  table.transpose ? delRows.push({
49121
49277
  col: rowNum,
49122
49278
  row: 0
@@ -49125,7 +49281,22 @@
49125
49281
  row: rowNum
49126
49282
  });
49127
49283
  }
49128
- table.transpose ? table.scenegraph.updateCol(delRows, [], []) : table.scenegraph.updateRow(delRows, [], []);
49284
+ const updateRows = [];
49285
+ for (let row = headerCount; row < headerCount + topAggregationCount; row++) table.transpose ? updateRows.push({
49286
+ col: row,
49287
+ row: 0
49288
+ }) : updateRows.push({
49289
+ col: 0,
49290
+ row: row
49291
+ });
49292
+ for (let row = (table.transpose ? table.colCount : table.rowCount) - bottomAggregationCount; row < (table.transpose ? table.colCount : table.rowCount); row++) table.transpose ? updateRows.push({
49293
+ col: row,
49294
+ row: 0
49295
+ }) : updateRows.push({
49296
+ col: 0,
49297
+ row: row
49298
+ });
49299
+ table.transpose ? table.scenegraph.updateCol(delRows, [], updateRows) : table.scenegraph.updateRow(delRows, [], updateRows);
49129
49300
  }
49130
49301
  }
49131
49302
  }
@@ -49140,12 +49311,14 @@
49140
49311
  perPageCount: perPageCount,
49141
49312
  currentPage: currentPage
49142
49313
  } = table.pagination,
49314
+ headerCount = table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount,
49315
+ topAggregationCount = table.internalProps.layoutMap.hasAggregationOnTopCount,
49143
49316
  endIndex = perPageCount * (currentPage || 0) + perPageCount,
49144
49317
  updateRows = [];
49145
49318
  for (let index = 0; index < recordIndexsMinToMax.length; index++) {
49146
49319
  const recordIndex = recordIndexsMinToMax[index];
49147
49320
  if (recordIndex < endIndex && recordIndex >= endIndex - perPageCount) {
49148
- const rowNum = recordIndex - (endIndex - perPageCount) + (table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount);
49321
+ const rowNum = recordIndex - (endIndex - perPageCount) + (table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount) + topAggregationCount;
49149
49322
  updateRows.push(rowNum);
49150
49323
  }
49151
49324
  }
@@ -49161,12 +49334,22 @@
49161
49334
  row: updateRow
49162
49335
  });
49163
49336
  }
49337
+ for (let row = headerCount; row < headerCount + topAggregationCount; row++) table.transpose ? updateRowCells.push({
49338
+ col: row,
49339
+ row: 0
49340
+ }) : updateRowCells.push({
49341
+ col: 0,
49342
+ row: row
49343
+ });
49164
49344
  table.transpose ? table.scenegraph.updateCol([], [], updateRowCells) : table.scenegraph.updateRow([], [], updateRowCells);
49165
49345
  }
49166
49346
  } else {
49167
- const updateRows = [];
49347
+ const updateRows = [],
49348
+ headerCount = table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount,
49349
+ topAggregationCount = table.internalProps.layoutMap.hasAggregationOnTopCount,
49350
+ bottomAggregationCount = table.internalProps.layoutMap.hasAggregationOnBottomCount;
49168
49351
  for (let index = 0; index < recordIndexsMinToMax.length; index++) {
49169
- const rowNum = recordIndexsMinToMax[index] + (table.transpose ? table.rowHeaderLevelCount : table.columnHeaderLevelCount);
49352
+ const rowNum = recordIndexsMinToMax[index] + headerCount + topAggregationCount;
49170
49353
  table.transpose ? updateRows.push({
49171
49354
  col: rowNum,
49172
49355
  row: 0
@@ -49175,6 +49358,20 @@
49175
49358
  row: rowNum
49176
49359
  });
49177
49360
  }
49361
+ for (let row = headerCount; row < headerCount + topAggregationCount; row++) table.transpose ? updateRows.push({
49362
+ col: row,
49363
+ row: 0
49364
+ }) : updateRows.push({
49365
+ col: 0,
49366
+ row: row
49367
+ });
49368
+ for (let row = (table.transpose ? table.colCount : table.rowCount) - bottomAggregationCount; row < (table.transpose ? table.colCount : table.rowCount); row++) table.transpose ? updateRows.push({
49369
+ col: row,
49370
+ row: 0
49371
+ }) : updateRows.push({
49372
+ col: 0,
49373
+ row: row
49374
+ });
49178
49375
  table.transpose ? table.scenegraph.updateCol([], [], updateRows) : table.scenegraph.updateRow([], [], updateRows);
49179
49376
  }
49180
49377
  }
@@ -49185,7 +49382,7 @@
49185
49382
  var _a, _b, _c, _d;
49186
49383
  "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), super(container, options), this.showHeader = !0;
49187
49384
  const internalProps = this.internalProps;
49188
- if (internalProps.frozenColDragHeaderMode = options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.multipleSort = !!options.multipleSort, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], internalProps.enableTreeNodeMerge = null !== (_b = null !== (_a = options.enableTreeNodeMerge) && void 0 !== _a ? _a : isValid$1(options.groupBy)) && void 0 !== _b && _b, this.internalProps.headerHelper.setTableColumnsEditor(), this.showHeader = null === (_c = options.showHeader) || void 0 === _c || _c, this.transpose = null !== (_d = options.transpose) && void 0 !== _d && _d, "node" !== Env.mode && (this.editorManager = new EditManeger(this)), this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, options.dataSource ? _setDataSource(this, options.dataSource) : options.records ? this.setRecords(options.records, {
49385
+ if (internalProps.frozenColDragHeaderMode = options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.multipleSort = !!options.multipleSort, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_b = null !== (_a = options.enableTreeNodeMerge) && void 0 !== _a ? _a : isValid$1(options.groupBy)) && void 0 !== _b && _b, this.internalProps.headerHelper.setTableColumnsEditor(), this.showHeader = null === (_c = options.showHeader) || void 0 === _c || _c, this.transpose = null !== (_d = options.transpose) && void 0 !== _d && _d, "node" !== Env.mode && (this.editorManager = new EditManeger(this)), this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, options.dataSource ? _setDataSource(this, options.dataSource) : options.records ? this.setRecords(options.records, {
49189
49386
  sortState: internalProps.sortState
49190
49387
  }) : this.setRecords([]), options.title) {
49191
49388
  const Title = Factory.getComponent("title");
@@ -49227,7 +49424,7 @@
49227
49424
  col: this.stateManager.hover.cellPos.col,
49228
49425
  row: this.stateManager.hover.cellPos.row
49229
49426
  };
49230
- this.internalProps.columns = cloneDeepSpec(columns, ["children"]), this.options.columns = columns, this.internalProps.headerHelper.setTableColumnsEditor(), this._hasAutoImageColumn = void 0, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.scenegraph.clearCells(), 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();
49427
+ this.internalProps.columns = cloneDeepSpec(columns, ["children"]), generateAggregationForColumn(this), this.options.columns = columns, this.internalProps.headerHelper.setTableColumnsEditor(), this._hasAutoImageColumn = void 0, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.scenegraph.clearCells(), 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();
49231
49428
  }
49232
49429
  get columns() {
49233
49430
  return this.internalProps.layoutMap.columnTree.getCopiedTree();
@@ -49236,7 +49433,7 @@
49236
49433
  return this.internalProps.columns;
49237
49434
  }
49238
49435
  set header(header) {
49239
- this.internalProps.columns = header, this.options.header = header, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.renderAsync();
49436
+ this.internalProps.columns = header, generateAggregationForColumn(this), this.options.header = header, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.renderAsync();
49240
49437
  }
49241
49438
  get transpose() {
49242
49439
  var _a;
@@ -49398,7 +49595,7 @@
49398
49595
  updateOption(options) {
49399
49596
  var _a, _b, _c, _d;
49400
49597
  const internalProps = this.internalProps;
49401
- if (super.updateOption(options), internalProps.frozenColDragHeaderMode = options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, this.showHeader = null === (_a = options.showHeader) || void 0 === _a || _a, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], internalProps.enableTreeNodeMerge = null !== (_c = null !== (_b = options.enableTreeNodeMerge) && void 0 !== _b ? _b : isValid$1(options.groupBy)) && void 0 !== _c && _c, this.internalProps.headerHelper.setTableColumnsEditor(), this.transpose = null !== (_d = options.transpose) && void 0 !== _d && _d, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, internalProps.releaseList && (internalProps.releaseList.forEach(releaseObj => {
49598
+ if (super.updateOption(options), internalProps.frozenColDragHeaderMode = options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.dataConfig = options.groupBy ? getGroupByDataConfig(options.groupBy) : {}, this.showHeader = null === (_a = options.showHeader) || void 0 === _a || _a, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_c = null !== (_b = options.enableTreeNodeMerge) && void 0 !== _b ? _b : isValid$1(options.groupBy)) && void 0 !== _c && _c, this.internalProps.headerHelper.setTableColumnsEditor(), this.transpose = null !== (_d = options.transpose) && void 0 !== _d && _d, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, internalProps.releaseList && (internalProps.releaseList.forEach(releaseObj => {
49402
49599
  var _a;
49403
49600
  return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
49404
49601
  }), internalProps.releaseList = null), options.dataSource ? _setDataSource(this, options.dataSource) : options.records ? this.setRecords(options.records, {
@@ -54841,7 +55038,7 @@
54841
55038
  themes: themes$1
54842
55039
  });
54843
55040
 
54844
- const version = "1.7.8-alpha.5";
55041
+ const version = "1.7.8";
54845
55042
 
54846
55043
  exports.Gantt = Gantt;
54847
55044
  exports.TYPES = index$2;