@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.
@@ -4833,6 +4833,9 @@ var GanttChart = /** @__PURE__ @class */ (function () {
4833
4833
  * @private
4834
4834
  */
4835
4835
  GanttChart.prototype.collapsedGanttRow = function (args) {
4836
+ if ((isNullOrUndefined(args['gridRow']) && this.parent.enableVirtualization) || isNullOrUndefined(args['chartRow'])) {
4837
+ return;
4838
+ }
4836
4839
  var record = getValue('data', args);
4837
4840
  if (this.isExpandCollapseFromChart) {
4838
4841
  this.expandCollapseChartRows('collapse', getValue('chartRow', args), record, null);
@@ -6356,7 +6359,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
6356
6359
  endDate.setHours(24, 0, 0, 0);
6357
6360
  }
6358
6361
  }
6359
- if ((this.isZooming || this.parent.isLoad) && isNullOrUndefined(this.parent.projectEndDate)) {
6362
+ if ((this.isZooming || this.parent.isLoad || this.parent.isFromOnPropertyChange) && isNullOrUndefined(this.parent.projectEndDate)) {
6360
6363
  this.updateTimelineAfterZooming(endDate, false);
6361
6364
  }
6362
6365
  return endDate;
@@ -12376,6 +12379,7 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
12376
12379
  args.cancel = true;
12377
12380
  }
12378
12381
  });
12382
+ this.toolTipObj.content = argsData.content;
12379
12383
  if (!this.parent.isAdaptive && args.event.type === 'mouseover') {
12380
12384
  this.currentTarget = args.target;
12381
12385
  EventHandler.add(this.currentTarget, 'mousemove', this.mouseMoveHandler.bind(this));
@@ -15343,7 +15347,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
15343
15347
  if (isNullOrUndefined(index)) {
15344
15348
  record = this.getRecordByID(id.toString());
15345
15349
  chartRow$$1 = this.getRowByID(id);
15346
- rowIndex = getValue('rowIndex', chartRow$$1);
15350
+ if (!isNullOrUndefined(chartRow$$1)) {
15351
+ rowIndex = getValue('rowIndex', chartRow$$1);
15352
+ }
15347
15353
  }
15348
15354
  else if (!isNullOrUndefined(index)) {
15349
15355
  chartRow$$1 = this.getRowByIndex(index);
@@ -21077,10 +21083,17 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
21077
21083
  // eslint-disable-next-line
21078
21084
  DialogEdit.prototype.updateSegmentsData = function (segmentForm, data) {
21079
21085
  var gridObj = segmentForm.ej2_instances[0];
21086
+ var isEdit = gridObj.isEdit;
21087
+ var dataSource;
21080
21088
  if (gridObj.isEdit) {
21081
21089
  gridObj.endEdit();
21082
21090
  }
21083
- var dataSource = gridObj.currentViewData;
21091
+ if (isEdit) {
21092
+ dataSource = gridObj.dataSource;
21093
+ }
21094
+ else {
21095
+ dataSource = gridObj.currentViewData;
21096
+ }
21084
21097
  this.updateSegmentTaskData(dataSource);
21085
21098
  };
21086
21099
  DialogEdit.prototype.updateGeneralTab = function (generalForm, isCustom) {
@@ -21174,10 +21187,6 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
21174
21187
  var ids = [];
21175
21188
  for (var i = 0; i < dataSource.length; i++) {
21176
21189
  var preData = dataSource[i];
21177
- var newId = preData.name.split('-')[0];
21178
- if (preData.id !== newId) {
21179
- preData.id = newId;
21180
- }
21181
21190
  if (ids.indexOf(preData.id) === -1) {
21182
21191
  var name_1 = preData.id + preData.type;
21183
21192
  if (preData.offset && preData.offset.indexOf('-') !== -1) {
@@ -24777,7 +24786,9 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
24777
24786
  dataSource.push(addedRecord[i].taskData);
24778
24787
  }
24779
24788
  else {
24780
- this.addDataInRealDataSource(dataSource, addedRecord[i].taskData, rowPosition);
24789
+ if (isNullOrUndefined(addedRecord[i].parentItem)) {
24790
+ this.addDataInRealDataSource(dataSource, addedRecord[i].taskData, rowPosition);
24791
+ }
24781
24792
  }
24782
24793
  }
24783
24794
  this.isBreakLoop = false;