@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.35
3
+ * version : 21.1.37
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@20.7.1",
3
+ "_id": "@syncfusion/ej2-gantt@21.1.35",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-xusD7L/4k3ly/aaw3IEltkg3GrgjmPzgY1xZfWLTVJTHgpP5I0N0bRWjs3hBYdTsw7L+GLfzsp9wIHqodMTV1w==",
5
+ "_integrity": "sha512-cP3lpOL2eAFZ2Q5R5P46k7Xp3VWmuu0bOXLdfi0RWJv9cv3ltd9gXByn3FwqoKVbDnHqTcMsfLqIbkDTkHXWEQ==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-gantt/-/ej2-gantt-20.7.1.tgz",
27
- "_shasum": "dda6ec244c0713cc838f6bbfba0df524713591dd",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.1.35.tgz",
27
+ "_shasum": "a4de85ffeb4e0c788b3a33571de043639daa60bd",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -35,20 +35,20 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~21.1.35",
39
- "@syncfusion/ej2-buttons": "~21.1.35",
40
- "@syncfusion/ej2-calendars": "~21.1.35",
41
- "@syncfusion/ej2-data": "~21.1.35",
42
- "@syncfusion/ej2-dropdowns": "~21.1.35",
43
- "@syncfusion/ej2-grids": "~21.1.35",
44
- "@syncfusion/ej2-inputs": "~21.1.35",
45
- "@syncfusion/ej2-layouts": "~21.1.35",
46
- "@syncfusion/ej2-lists": "~21.1.35",
47
- "@syncfusion/ej2-navigations": "~21.1.35",
48
- "@syncfusion/ej2-notifications": "~21.1.35",
49
- "@syncfusion/ej2-popups": "~21.1.35",
50
- "@syncfusion/ej2-richtexteditor": "~21.1.35",
51
- "@syncfusion/ej2-treegrid": "~21.1.35"
38
+ "@syncfusion/ej2-base": "~21.1.37",
39
+ "@syncfusion/ej2-buttons": "~21.1.37",
40
+ "@syncfusion/ej2-calendars": "~21.1.37",
41
+ "@syncfusion/ej2-data": "~21.1.37",
42
+ "@syncfusion/ej2-dropdowns": "~21.1.37",
43
+ "@syncfusion/ej2-grids": "~21.1.37",
44
+ "@syncfusion/ej2-inputs": "~21.1.37",
45
+ "@syncfusion/ej2-layouts": "~21.1.37",
46
+ "@syncfusion/ej2-lists": "~21.1.37",
47
+ "@syncfusion/ej2-navigations": "~21.1.37",
48
+ "@syncfusion/ej2-notifications": "~21.1.37",
49
+ "@syncfusion/ej2-popups": "~21.1.37",
50
+ "@syncfusion/ej2-richtexteditor": "~21.1.37",
51
+ "@syncfusion/ej2-treegrid": "~21.1.37"
52
52
  },
53
53
  "deprecated": false,
54
54
  "description": "Essential JS 2 Gantt Component",
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "21.1.35",
76
+ "version": "21.1.37",
77
77
  "sideEffects": false
78
78
  }
@@ -2357,12 +2357,17 @@ var Gantt = /** @class */ (function (_super) {
2357
2357
  var id = ganttData.rowUniqueID;
2358
2358
  var task = this.getRecordByID(id);
2359
2359
  var isValid = false;
2360
- if (isNullOrUndefined(value) || (!isNullOrUndefined(value) && !isNullOrUndefined(ganttData["" + field]) && (value instanceof Date ? value.getTime() !==
2361
- ganttData["" + field].getTime() : ganttData["" + field] !== value))) {
2360
+ if (isNullOrUndefined(value) || (!isNullOrUndefined(value) && !isNullOrUndefined(record["" + field]) && (value instanceof Date ? value.getTime() !==
2361
+ record["" + field].getTime() : record["" + field] !== value))) {
2362
2362
  isValid = true;
2363
2363
  }
2364
2364
  if (task && ((this.editedRecords.indexOf(task) === -1 && isValid) || this.editedRecords.length === 0)) {
2365
- this.editedRecords.push(task);
2365
+ if (this.editModule['draggedRecord'] && this.editModule['draggedRecord'].ganttProperties.taskId === ganttData.taskId) {
2366
+ this.editedRecords.splice(0, 0, task);
2367
+ }
2368
+ else {
2369
+ this.editedRecords.push(task);
2370
+ }
2366
2371
  if (this.enableImmutableMode) {
2367
2372
  this.modifiedRecords.push(task);
2368
2373
  }
@@ -120,7 +120,7 @@ var PdfGantt = /** @class */ (function (_super) {
120
120
  && this.parent.cloneProjectStartDate.getSeconds() === 0) {
121
121
  this.parent.cloneProjectStartDate.setHours(8);
122
122
  }
123
- var timelineStartDate = this.parent.dataOperation.getDateFromFormat(this.parent.cloneProjectStartDate);
123
+ var timelineStartDate = this.parent.dataOperation.getDateFromFormat(this.parent.timelineModule.timelineStartDate);
124
124
  var count = isNullOrUndefined(timelineSettings.customTimelineSettings.bottomTier.count) ?
125
125
  timelineSettings.customTimelineSettings.topTier.count : timelineSettings.customTimelineSettings.bottomTier.count;
126
126
  var scheduleType = timelineSettings.customTimelineSettings.bottomTier.unit === 'None' ?
@@ -141,6 +141,7 @@ var PdfGanttTaskbarCollection = /** @class */ (function () {
141
141
  }
142
142
  else {
143
143
  taskGraphics.drawRectangle(taskbarPen, taskBrush, startPoint.x + pixelToPoint(this.left - cumulativeWidth) + 0.5, startPoint.y + adjustHeight, pixelToPoint(renderWidth), pixelToPoint(taskbar.height));
144
+ taskbar.width = taskbar.width - renderWidth;
144
145
  if (this.isScheduledTask) {
145
146
  var progressBoundsWidth = 0;
146
147
  if (this.progressWidth <= renderWidth) {