@syncfusion/ej2-gantt 21.1.35 → 21.1.37

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.
@@ -15767,12 +15767,17 @@ let Gantt = class Gantt extends Component {
15767
15767
  const id = ganttData.rowUniqueID;
15768
15768
  const task = this.getRecordByID(id);
15769
15769
  let isValid = false;
15770
- if (isNullOrUndefined(value) || (!isNullOrUndefined(value) && !isNullOrUndefined(ganttData[`${field}`]) && (value instanceof Date ? value.getTime() !==
15771
- ganttData[`${field}`].getTime() : ganttData[`${field}`] !== value))) {
15770
+ if (isNullOrUndefined(value) || (!isNullOrUndefined(value) && !isNullOrUndefined(record[`${field}`]) && (value instanceof Date ? value.getTime() !==
15771
+ record[`${field}`].getTime() : record[`${field}`] !== value))) {
15772
15772
  isValid = true;
15773
15773
  }
15774
15774
  if (task && ((this.editedRecords.indexOf(task) === -1 && isValid) || this.editedRecords.length === 0)) {
15775
- this.editedRecords.push(task);
15775
+ if (this.editModule['draggedRecord'] && this.editModule['draggedRecord'].ganttProperties.taskId === ganttData.taskId) {
15776
+ this.editedRecords.splice(0, 0, task);
15777
+ }
15778
+ else {
15779
+ this.editedRecords.push(task);
15780
+ }
15776
15781
  if (this.enableImmutableMode) {
15777
15782
  this.modifiedRecords.push(task);
15778
15783
  }
@@ -34447,6 +34452,7 @@ class PdfGanttTaskbarCollection {
34447
34452
  }
34448
34453
  else {
34449
34454
  taskGraphics.drawRectangle(taskbarPen, taskBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(renderWidth), pixelToPoint(taskbar.height));
34455
+ taskbar.width = taskbar.width - renderWidth;
34450
34456
  if (this.isScheduledTask) {
34451
34457
  let progressBoundsWidth = 0;
34452
34458
  if (this.progressWidth <= renderWidth) {
@@ -35389,7 +35395,7 @@ class PdfGantt extends PdfTreeGrid {
35389
35395
  && this.parent.cloneProjectStartDate.getSeconds() === 0) {
35390
35396
  this.parent.cloneProjectStartDate.setHours(8);
35391
35397
  }
35392
- const timelineStartDate = this.parent.dataOperation.getDateFromFormat(this.parent.cloneProjectStartDate);
35398
+ const timelineStartDate = this.parent.dataOperation.getDateFromFormat(this.parent.timelineModule.timelineStartDate);
35393
35399
  const count = isNullOrUndefined(timelineSettings.customTimelineSettings.bottomTier.count) ?
35394
35400
  timelineSettings.customTimelineSettings.topTier.count : timelineSettings.customTimelineSettings.bottomTier.count;
35395
35401
  const scheduleType = timelineSettings.customTimelineSettings.bottomTier.unit === 'None' ?