@syncfusion/ej2-gantt 20.3.47 → 20.3.48

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.
@@ -4788,6 +4788,9 @@ class GanttChart {
4788
4788
  * @private
4789
4789
  */
4790
4790
  collapsedGanttRow(args) {
4791
+ if ((isNullOrUndefined(args['gridRow']) && this.parent.enableVirtualization) || isNullOrUndefined(args['chartRow'])) {
4792
+ return;
4793
+ }
4791
4794
  const record = getValue('data', args);
4792
4795
  if (this.isExpandCollapseFromChart) {
4793
4796
  this.expandCollapseChartRows('collapse', getValue('chartRow', args), record, null);
@@ -6290,7 +6293,7 @@ class Timeline {
6290
6293
  endDate.setHours(24, 0, 0, 0);
6291
6294
  }
6292
6295
  }
6293
- if ((this.isZooming || this.parent.isLoad) && isNullOrUndefined(this.parent.projectEndDate)) {
6296
+ if ((this.isZooming || this.parent.isLoad || this.parent.isFromOnPropertyChange) && isNullOrUndefined(this.parent.projectEndDate)) {
6294
6297
  this.updateTimelineAfterZooming(endDate, false);
6295
6298
  }
6296
6299
  return endDate;
@@ -11979,6 +11982,7 @@ class Tooltip$1 {
11979
11982
  args.cancel = true;
11980
11983
  }
11981
11984
  });
11985
+ this.toolTipObj.content = argsData.content;
11982
11986
  if (!this.parent.isAdaptive && args.event.type === 'mouseover') {
11983
11987
  this.currentTarget = args.target;
11984
11988
  EventHandler.add(this.currentTarget, 'mousemove', this.mouseMoveHandler.bind(this));
@@ -14926,7 +14930,9 @@ let Gantt = class Gantt extends Component {
14926
14930
  if (isNullOrUndefined(index)) {
14927
14931
  record = this.getRecordByID(id.toString());
14928
14932
  chartRow$$1 = this.getRowByID(id);
14929
- rowIndex = getValue('rowIndex', chartRow$$1);
14933
+ if (!isNullOrUndefined(chartRow$$1)) {
14934
+ rowIndex = getValue('rowIndex', chartRow$$1);
14935
+ }
14930
14936
  }
14931
14937
  else if (!isNullOrUndefined(index)) {
14932
14938
  chartRow$$1 = this.getRowByIndex(index);
@@ -20602,10 +20608,17 @@ class DialogEdit {
20602
20608
  // eslint-disable-next-line
20603
20609
  updateSegmentsData(segmentForm, data) {
20604
20610
  const gridObj = segmentForm.ej2_instances[0];
20611
+ const isEdit = gridObj.isEdit;
20612
+ let dataSource;
20605
20613
  if (gridObj.isEdit) {
20606
20614
  gridObj.endEdit();
20607
20615
  }
20608
- const dataSource = gridObj.currentViewData;
20616
+ if (isEdit) {
20617
+ dataSource = gridObj.dataSource;
20618
+ }
20619
+ else {
20620
+ dataSource = gridObj.currentViewData;
20621
+ }
20609
20622
  this.updateSegmentTaskData(dataSource);
20610
20623
  }
20611
20624
  updateGeneralTab(generalForm, isCustom) {
@@ -20699,10 +20712,6 @@ class DialogEdit {
20699
20712
  const ids = [];
20700
20713
  for (let i = 0; i < dataSource.length; i++) {
20701
20714
  const preData = dataSource[i];
20702
- const newId = preData.name.split('-')[0];
20703
- if (preData.id !== newId) {
20704
- preData.id = newId;
20705
- }
20706
20715
  if (ids.indexOf(preData.id) === -1) {
20707
20716
  let name = preData.id + preData.type;
20708
20717
  if (preData.offset && preData.offset.indexOf('-') !== -1) {
@@ -24263,7 +24272,9 @@ class Edit$2 {
24263
24272
  dataSource.push(addedRecord[i].taskData);
24264
24273
  }
24265
24274
  else {
24266
- this.addDataInRealDataSource(dataSource, addedRecord[i].taskData, rowPosition);
24275
+ if (isNullOrUndefined(addedRecord[i].parentItem)) {
24276
+ this.addDataInRealDataSource(dataSource, addedRecord[i].taskData, rowPosition);
24277
+ }
24267
24278
  }
24268
24279
  }
24269
24280
  this.isBreakLoop = false;