@syncfusion/ej2-gantt 19.3.46 → 19.3.55

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/ej2-gantt.umd.min.js +2 -2
  3. package/dist/ej2-gantt.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-gantt.es2015.js +53 -12
  5. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-gantt.es5.js +103 -53
  7. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  8. package/dist/global/ej2-gantt.min.js +2 -2
  9. package/dist/global/ej2-gantt.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +18 -18
  12. package/src/gantt/actions/context-menu.js +5 -0
  13. package/src/gantt/actions/dialog-edit.js +9 -7
  14. package/src/gantt/actions/edit.js +3 -2
  15. package/src/gantt/actions/rowdragdrop.js +74 -41
  16. package/src/gantt/actions/taskbar-edit.js +3 -1
  17. package/src/gantt/base/date-processor.js +4 -1
  18. package/src/gantt/base/gantt.js +3 -0
  19. package/src/gantt/base/task-processor.js +1 -0
  20. package/src/gantt/base/utils.js +1 -1
  21. package/styles/bootstrap-dark.css +96 -100
  22. package/styles/bootstrap.css +96 -100
  23. package/styles/bootstrap4.css +96 -100
  24. package/styles/bootstrap5-dark.css +97 -100
  25. package/styles/bootstrap5.css +97 -100
  26. package/styles/fabric-dark.css +96 -100
  27. package/styles/fabric.css +96 -100
  28. package/styles/gantt/_bootstrap-dark-definition.scss +0 -1
  29. package/styles/gantt/_bootstrap-definition.scss +0 -1
  30. package/styles/gantt/_bootstrap4-definition.scss +0 -1
  31. package/styles/gantt/_bootstrap5-definition.scss +0 -1
  32. package/styles/gantt/_fabric-dark-definition.scss +0 -1
  33. package/styles/gantt/_fabric-definition.scss +0 -1
  34. package/styles/gantt/_highcontrast-definition.scss +0 -1
  35. package/styles/gantt/_highcontrast-light-definition.scss +0 -1
  36. package/styles/gantt/_layout.scss +95 -94
  37. package/styles/gantt/_material-dark-definition.scss +0 -1
  38. package/styles/gantt/_material-definition.scss +0 -1
  39. package/styles/gantt/_tailwind-definition.scss +0 -1
  40. package/styles/gantt/_theme.scss +76 -81
  41. package/styles/gantt/bootstrap-dark.css +96 -100
  42. package/styles/gantt/bootstrap.css +96 -100
  43. package/styles/gantt/bootstrap4.css +96 -100
  44. package/styles/gantt/bootstrap5-dark.css +97 -100
  45. package/styles/gantt/bootstrap5.css +97 -100
  46. package/styles/gantt/fabric-dark.css +96 -100
  47. package/styles/gantt/fabric.css +96 -100
  48. package/styles/gantt/highcontrast-light.css +96 -100
  49. package/styles/gantt/highcontrast.css +96 -100
  50. package/styles/gantt/material-dark.css +96 -100
  51. package/styles/gantt/material.css +96 -100
  52. package/styles/gantt/tailwind-dark.css +96 -100
  53. package/styles/gantt/tailwind.css +96 -100
  54. package/styles/highcontrast-light.css +96 -100
  55. package/styles/highcontrast.css +96 -100
  56. package/styles/material-dark.css +96 -100
  57. package/styles/material.css +96 -100
  58. package/styles/tailwind-dark.css +96 -100
  59. package/styles/tailwind.css +96 -100
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.3.46
3
+ * version : 19.3.55
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@19.3.45",
3
+ "_id": "@syncfusion/ej2-gantt@19.3.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-RZLdEJYylDpfailqWhBOXPgh9R/pvL9s1BhtCTXdwpn/lfRqGQV0UlXqvqYnYRfy6DXyzvhfj0kvFX9nnKT1BA==",
5
+ "_integrity": "sha512-U/p3jxN5jnp69SFmscoROYZ5BzSZniFIGIaJoGYLzGA86OOXgeXaMnMe4ZX31hbDR994LlgTMolzp6uoHYsA9w==",
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": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-gantt/-/ej2-gantt-19.3.45.tgz",
27
- "_shasum": "d3e74c79b2a7f546bd6e8ec0effee6cb28b5db87",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-gantt/-/ej2-gantt-19.3.53.tgz",
27
+ "_shasum": "09ad17fec4db43b1da7931fd236686090ea7b6ea",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~19.3.43",
39
- "@syncfusion/ej2-buttons": "~19.3.44",
40
- "@syncfusion/ej2-calendars": "~19.3.46",
41
- "@syncfusion/ej2-data": "~19.3.46",
42
- "@syncfusion/ej2-dropdowns": "~19.3.46",
43
- "@syncfusion/ej2-grids": "~19.3.46",
44
- "@syncfusion/ej2-inputs": "~19.3.44",
45
- "@syncfusion/ej2-layouts": "~19.3.44",
46
- "@syncfusion/ej2-lists": "~19.3.45",
47
- "@syncfusion/ej2-navigations": "~19.3.46",
48
- "@syncfusion/ej2-popups": "~19.3.43",
49
- "@syncfusion/ej2-richtexteditor": "~19.3.46",
50
- "@syncfusion/ej2-treegrid": "~19.3.46"
38
+ "@syncfusion/ej2-base": "~19.3.54",
39
+ "@syncfusion/ej2-buttons": "~19.3.53",
40
+ "@syncfusion/ej2-calendars": "~19.3.55",
41
+ "@syncfusion/ej2-data": "~19.3.53",
42
+ "@syncfusion/ej2-dropdowns": "~19.3.55",
43
+ "@syncfusion/ej2-grids": "~19.3.55",
44
+ "@syncfusion/ej2-inputs": "~19.3.53",
45
+ "@syncfusion/ej2-layouts": "~19.3.53",
46
+ "@syncfusion/ej2-lists": "~19.3.53",
47
+ "@syncfusion/ej2-navigations": "~19.3.54",
48
+ "@syncfusion/ej2-popups": "~19.3.53",
49
+ "@syncfusion/ej2-richtexteditor": "~19.3.55",
50
+ "@syncfusion/ej2-treegrid": "~19.3.55"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 Gantt Component",
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "19.3.46",
78
+ "version": "19.3.55",
79
79
  "sideEffects": false
80
80
  }
@@ -248,6 +248,11 @@ var ContextMenu = /** @class */ (function () {
248
248
  var target = args.event ? args.event.target :
249
249
  !this.parent.focusModule ? this.parent.focusModule.getActiveElement() :
250
250
  this.parent.ganttChartModule.targetElement;
251
+ // Closed edited cell before opening context menu
252
+ // eslint-disable-next-line
253
+ if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
254
+ this.parent.treeGrid.closeEdit();
255
+ }
251
256
  if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
252
257
  this.clickedPosition = getValue('event', args).clientX;
253
258
  }
@@ -53,7 +53,8 @@ var DialogEdit = /** @class */ (function () {
53
53
  datetimepickeredit: DateTimePicker,
54
54
  maskededit: MaskedTextBox,
55
55
  numericedit: NumericTextBox,
56
- stringedit: TextBox
56
+ stringedit: TextBox,
57
+ defaultedit: TextBox
57
58
  };
58
59
  this.processDialogFields();
59
60
  this.wireEvents();
@@ -360,7 +361,7 @@ var DialogEdit = /** @class */ (function () {
360
361
  dialogModel.position = position;
361
362
  //dialogModel.width = '750px';
362
363
  dialogModel.height = this.parent.isAdaptive ? '100%' : 'auto';
363
- dialogModel.target = this.parent.element;
364
+ dialogModel.target = document.body;
364
365
  dialogModel.close = this.dialogClose.bind(this);
365
366
  dialogModel.closeOnEscape = true;
366
367
  dialogModel.open = function (args) {
@@ -648,15 +649,15 @@ var DialogEdit = /** @class */ (function () {
648
649
  this.resourceSelection(id);
649
650
  }
650
651
  else if (id === ganttObj.element.id + 'NotesTabContainer') {
651
- ganttObj.element.querySelector('#' + id).ej2_instances[0].refresh();
652
+ document.getElementById(id).ej2_instances[0].refresh();
652
653
  }
653
654
  else if (id === ganttObj.element.id + 'SegmentsTabContainer') {
654
655
  if (isNullOrUndefined(this.beforeOpenArgs.rowData.ganttProperties.startDate)) {
655
- ganttObj.element.querySelector('#' + id).ej2_instances[0]
656
+ document.getElementById(id).ej2_instances[0]
656
657
  .enableToolbarItems([this.parent.element.id + 'SegmentsTabContainer' + '_add'], false);
657
658
  }
658
659
  else {
659
- ganttObj.element.querySelector('#' + id).ej2_instances[0]
660
+ document.getElementById(id).ej2_instances[0]
660
661
  .enableToolbarItems([this.parent.element.id + 'SegmentsTabContainer' + '_add'], true);
661
662
  }
662
663
  }
@@ -710,6 +711,7 @@ var DialogEdit = /** @class */ (function () {
710
711
  fieldsModel[column.field] = checkboxModel;
711
712
  break;
712
713
  }
714
+ case 'defaultedit':
713
715
  case 'stringedit':
714
716
  {
715
717
  var textBox = common;
@@ -1616,7 +1618,7 @@ var DialogEdit = /** @class */ (function () {
1616
1618
  DialogEdit.prototype.updateResourceCollection = function (args, resourceTreeGridId) {
1617
1619
  if (!isNullOrUndefined(args.data) && Object.keys(args.data).length) {
1618
1620
  var ganttObj = this.parent;
1619
- var treeGridId = ganttObj.element.querySelector('#' + resourceTreeGridId);
1621
+ var treeGridId = document.querySelector('#' + resourceTreeGridId);
1620
1622
  var resourceTreeGrid = treeGridId.ej2_instances[0];
1621
1623
  if (!isNullOrUndefined(resourceTreeGrid) && resourceTreeGrid.getSelectedRecords().length > 0) {
1622
1624
  var tempRecords = resourceTreeGrid.getSelectedRecords();
@@ -1691,7 +1693,7 @@ var DialogEdit = /** @class */ (function () {
1691
1693
  };
1692
1694
  DialogEdit.prototype.resourceSelection = function (id) {
1693
1695
  var _this = this;
1694
- var resourceTreeGrid = this.parent.element.querySelector('#' + id).ej2_instances[0];
1696
+ var resourceTreeGrid = document.querySelector('#' + id).ej2_instances[0];
1695
1697
  var currentViewData = resourceTreeGrid.getCurrentViewRecords();
1696
1698
  var resources = this.ganttResources;
1697
1699
  if (resources && resources.length > 0) {
@@ -1095,6 +1095,7 @@ var Edit = /** @class */ (function () {
1095
1095
  var eventArgs = {};
1096
1096
  eventArgs.requestType = 'beforeSave';
1097
1097
  eventArgs.data = args.data;
1098
+ eventArgs.cancel = false;
1098
1099
  eventArgs.modifiedRecords = this.parent.editedRecords;
1099
1100
  if (!isNullOrUndefined(args.target)) {
1100
1101
  eventArgs.target = args.target;
@@ -1925,13 +1926,13 @@ var Edit = /** @class */ (function () {
1925
1926
  changedRecords: eventArg.modifiedTaskData
1926
1927
  };
1927
1928
  var adaptor = data_1.adaptor;
1929
+ var query_1 = _this.parent.query instanceof Query ? _this.parent.query : new Query();
1928
1930
  if (!(adaptor instanceof WebApiAdaptor && adaptor instanceof ODataAdaptor) || data_1.dataSource.batchUrl) {
1929
- var crud = data_1.saveChanges(updatedData_1, _this.parent.taskFields.id);
1931
+ var crud = data_1.saveChanges(updatedData_1, _this.parent.taskFields.id, null, query_1);
1930
1932
  crud.then(function () { return _this.deleteSuccess(args); })
1931
1933
  .catch(function (e) { return _this.dmFailure(e, args); });
1932
1934
  }
1933
1935
  else {
1934
- var query_1 = _this.parent.query instanceof Query ? _this.parent.query : new Query();
1935
1936
  var deletedRecords = 'deletedRecords';
1936
1937
  var deleteCrud = null;
1937
1938
  for (var i = 0; i < updatedData_1[deletedRecords].length; i++) {
@@ -172,80 +172,113 @@ var RowDD = /** @class */ (function () {
172
172
  }
173
173
  var count = 0;
174
174
  var dragLength = dragRecords.length;
175
- for (var i = 0; i < dragLength; i++) {
176
- this.parent.isOnEdit = true;
175
+ var _loop_1 = function (i) {
176
+ this_1.parent.isOnEdit = true;
177
177
  draggedRecord = dragRecords[i];
178
- this.draggedRecord = draggedRecord;
179
- if (this.dropPosition !== 'Invalid') {
180
- if (this.parent.viewType === 'ResourceView') {
181
- this.checkisSharedTask();
182
- this.previousParent = this.draggedRecord.parentItem.uniqueID;
178
+ this_1.draggedRecord = draggedRecord;
179
+ if (this_1.dropPosition !== 'Invalid') {
180
+ if (this_1.parent.viewType === 'ResourceView') {
181
+ this_1.checkisSharedTask();
182
+ this_1.previousParent = this_1.draggedRecord.parentItem.uniqueID;
183
183
  }
184
- if (this.isSharedTask) {
185
- return;
184
+ if (this_1.isSharedTask) {
185
+ return { value: void 0 };
186
186
  }
187
187
  if (isByMethod) {
188
- this.deleteDragRow();
188
+ this_1.deleteDragRow();
189
189
  }
190
- var recordIndex1 = this.treeGridData.indexOf(droppedRecord);
191
- if (this.dropPosition === 'topSegment') {
192
- this.dropAtTop(recordIndex1);
190
+ var recordIndex1 = this_1.treeGridData.indexOf(droppedRecord);
191
+ if (this_1.dropPosition === 'topSegment') {
192
+ this_1.dropAtTop(recordIndex1);
193
193
  }
194
- if (this.dropPosition === 'bottomSegment') {
195
- if (!this.isSharedTask) {
194
+ if (this_1.dropPosition === 'bottomSegment') {
195
+ if (!this_1.isSharedTask) {
196
196
  if (!droppedRecord.hasChildRecords) {
197
- if (this.parent.taskFields.parentID && this.ganttData.length > 0) {
198
- this.ganttData.splice(recordIndex1 + 1, 0, this.draggedRecord.taskData);
197
+ if (this_1.parent.taskFields.parentID && this_1.ganttData.length > 0) {
198
+ this_1.ganttData.splice(recordIndex1 + 1, 0, this_1.draggedRecord.taskData);
199
199
  }
200
- this.treeGridData.splice(recordIndex1 + 1, 0, this.draggedRecord);
201
- this.parent.ids.splice(recordIndex1 + 1, 0, this.draggedRecord.ganttProperties.rowUniqueID.toString());
202
- if (this.parent.viewType === 'ResourceView') {
203
- var taskId = this.draggedRecord.level === 0 ? 'R' + this.draggedRecord.ganttProperties.taskId : 'T' + this.draggedRecord.ganttProperties.taskId;
204
- this.parent.getTaskIds().splice(recordIndex1 + 1, 0, taskId);
200
+ this_1.treeGridData.splice(recordIndex1 + 1, 0, this_1.draggedRecord);
201
+ this_1.parent.ids.splice(recordIndex1 + 1, 0, this_1.draggedRecord.ganttProperties.rowUniqueID.toString());
202
+ if (this_1.parent.viewType === 'ResourceView') {
203
+ var taskId = this_1.draggedRecord.level === 0 ? 'R' + this_1.draggedRecord.ganttProperties.taskId : 'T' + this_1.draggedRecord.ganttProperties.taskId;
204
+ this_1.parent.getTaskIds().splice(recordIndex1 + 1, 0, taskId);
205
205
  }
206
206
  }
207
207
  else {
208
- count = this.parent.editModule.getChildCount(droppedRecord, 0);
209
- if (this.parent.taskFields.parentID && this.ganttData.length > 0) {
210
- this.ganttData.splice(recordIndex1 + count + 1, 0, this.draggedRecord.taskData);
208
+ count = this_1.parent.editModule.getChildCount(droppedRecord, 0);
209
+ if (this_1.parent.taskFields.parentID && this_1.ganttData.length > 0) {
210
+ this_1.ganttData.splice(recordIndex1 + count + 1, 0, this_1.draggedRecord.taskData);
211
211
  }
212
- this.treeGridData.splice(recordIndex1 + count + 1, 0, this.draggedRecord);
212
+ this_1.treeGridData.splice(recordIndex1 + count + 1, 0, this_1.draggedRecord);
213
213
  /* eslint-disable-next-line */
214
- this.parent.ids.splice(recordIndex1 + count + 1, 0, this.draggedRecord.ganttProperties.rowUniqueID.toString());
215
- if (this.parent.viewType === 'ResourceView') {
216
- var spliceId = this.draggedRecord.level === 0 ? 'R' + this.draggedRecord.ganttProperties.taskId : 'T' + this.draggedRecord.ganttProperties.taskId;
217
- this.parent.getTaskIds().splice(recordIndex1 + count + 1, 0, spliceId);
214
+ this_1.parent.ids.splice(recordIndex1 + count + 1, 0, this_1.draggedRecord.ganttProperties.rowUniqueID.toString());
215
+ if (this_1.parent.viewType === 'ResourceView') {
216
+ var spliceId = this_1.draggedRecord.level === 0 ? 'R' + this_1.draggedRecord.ganttProperties.taskId : 'T' + this_1.draggedRecord.ganttProperties.taskId;
217
+ this_1.parent.getTaskIds().splice(recordIndex1 + count + 1, 0, spliceId);
218
218
  }
219
219
  }
220
- this.parent.setRecordValue('parentItem', this.treeGridData[recordIndex1].parentItem, draggedRecord);
221
- this.parent.setRecordValue('parentUniqueID', this.treeGridData[recordIndex1].parentUniqueID, draggedRecord);
222
- this.parent.setRecordValue('level', this.treeGridData[recordIndex1].level, draggedRecord);
220
+ this_1.parent.setRecordValue('parentItem', this_1.treeGridData[recordIndex1].parentItem, draggedRecord);
221
+ this_1.parent.setRecordValue('parentUniqueID', this_1.treeGridData[recordIndex1].parentUniqueID, draggedRecord);
222
+ this_1.parent.setRecordValue('level', this_1.treeGridData[recordIndex1].level, draggedRecord);
223
223
  if (draggedRecord.hasChildRecords) {
224
224
  var level = 1;
225
- this.updateChildRecordLevel(draggedRecord, level);
226
- this.updateChildRecord(draggedRecord, recordIndex1 + count + 1);
225
+ this_1.updateChildRecordLevel(draggedRecord, level);
226
+ this_1.updateChildRecord(draggedRecord, recordIndex1 + count + 1);
227
227
  }
228
228
  if (droppedRecord.parentItem) {
229
- var rec = this.parent.getParentTask(droppedRecord.parentItem).childRecords;
229
+ var rec = this_1.parent.getParentTask(droppedRecord.parentItem).childRecords;
230
230
  var childRecords = rec;
231
231
  var droppedRecordIndex = childRecords.indexOf(droppedRecord) + 1;
232
232
  childRecords.splice(droppedRecordIndex, 0, draggedRecord);
233
233
  }
234
234
  }
235
235
  }
236
- if (this.dropPosition === 'middleSegment') {
237
- this.dropMiddle(recordIndex1);
236
+ if (this_1.dropPosition === 'middleSegment') {
237
+ this_1.dropMiddle(recordIndex1);
238
238
  if (droppedRecord.childRecords.length > 0) {
239
239
  delete droppedRecord.ganttProperties.segments;
240
- delete droppedRecord.taskData[this.parent.taskFields.segments];
240
+ delete droppedRecord.taskData[this_1.parent.taskFields.segments];
241
241
  }
242
242
  }
243
243
  // eslint-disable-next-line
244
- if (!isNullOrUndefined(draggedRecord.parentItem && this.updateParentRecords.indexOf(draggedRecord.parentItem) !== -1)) {
245
- this.updateParentRecords.push(draggedRecord.parentItem);
244
+ if (!isNullOrUndefined(draggedRecord.parentItem && this_1.updateParentRecords.indexOf(draggedRecord.parentItem) !== -1)) {
245
+ this_1.updateParentRecords.push(draggedRecord.parentItem);
246
+ }
247
+ }
248
+ if (!this_1.parent.enableVirtualization) {
249
+ var data_1 = gObj.flatData;
250
+ var startIndex = void 0;
251
+ var endIndex = void 0;
252
+ if (draggedRecord.index < droppedRecord.index) {
253
+ startIndex = draggedRecord.index;
254
+ endIndex = droppedRecord.index;
255
+ }
256
+ else {
257
+ startIndex = droppedRecord.index;
258
+ endIndex = draggedRecord.index;
259
+ }
260
+ var _loop_2 = function (i_1) {
261
+ if (!isNullOrUndefined(data_1[i_1])) {
262
+ data_1[i_1].index = i_1;
263
+ if (!isNullOrUndefined(data_1[i_1].parentItem)) {
264
+ var updatedParent = data_1.filter(function (e) {
265
+ return e.uniqueID === data_1[i_1].parentUniqueID;
266
+ })[0];
267
+ data_1[i_1].parentItem.index = updatedParent.index;
268
+ }
269
+ }
270
+ };
271
+ for (var i_1 = startIndex; i_1 <= endIndex; i_1++) {
272
+ _loop_2(i_1);
246
273
  }
247
274
  }
248
275
  gObj.rowDragAndDropModule.refreshDataSource();
276
+ };
277
+ var this_1 = this;
278
+ for (var i = 0; i < dragLength; i++) {
279
+ var state_1 = _loop_1(i);
280
+ if (typeof state_1 === "object")
281
+ return state_1.value;
249
282
  }
250
283
  if (this.dropPosition === 'middleSegment') {
251
284
  if (droppedRecord.ganttProperties.predecessor) {
@@ -311,6 +311,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
311
311
  TaskbarEdit.prototype.showHideTaskBarEditingElements = function (element, secondElement, fadeConnectorLine) {
312
312
  secondElement = secondElement ? secondElement : this.editElement;
313
313
  var isShowProgressResizer = this.parent.taskFields.progress ? true : false;
314
+ var isShowConnectorPoints = true;
314
315
  if (this.parent.readOnly) {
315
316
  return;
316
317
  }
@@ -320,6 +321,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
320
321
  if (!isNullOrUndefined(parentRecord)) {
321
322
  if (!parentRecord.expanded) {
322
323
  isShowProgressResizer = false;
324
+ isShowConnectorPoints = false;
323
325
  }
324
326
  }
325
327
  }
@@ -346,7 +348,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
346
348
  if (!isNullOrUndefined(this.parent.taskFields.dependency)
347
349
  && (element.querySelector('.' + cls.connectorPointLeft)
348
350
  || element.parentElement.querySelector('.' + cls.connectorPointLeft))
349
- && isShowProgressResizer) {
351
+ && isShowConnectorPoints) {
350
352
  var connectorElement = !isNullOrUndefined(element.querySelector('.' + cls.connectorPointLeft)) ?
351
353
  element : element.parentElement;
352
354
  addClass([connectorElement.querySelector('.' + cls.connectorPointLeft)], [cls.connectorPointLeftHover]);
@@ -1006,7 +1006,10 @@ var DateProcessor = /** @class */ (function () {
1006
1006
  }
1007
1007
  };
1008
1008
  DateProcessor.prototype.remove = function (date, timezone) {
1009
- return this.reverse(date, timezone, date.getTimezoneOffset());
1009
+ if (!isNullOrUndefined(date)) {
1010
+ date = this.reverse(date, timezone, date.getTimezoneOffset());
1011
+ }
1012
+ return date;
1010
1013
  };
1011
1014
  DateProcessor.prototype.reverse = function (date, fromOffset, toOffset) {
1012
1015
  if (typeof fromOffset === 'string') {
@@ -1108,6 +1108,9 @@ var Gantt = /** @class */ (function (_super) {
1108
1108
  if (this.keyboardModule) {
1109
1109
  this.keyboardModule.destroy();
1110
1110
  }
1111
+ if (this.editModule && this.editModule.dialogModule) {
1112
+ this.editModule.dialogModule.destroy();
1113
+ }
1111
1114
  _super.prototype.destroy.call(this);
1112
1115
  this.chartVerticalLineContainer = null;
1113
1116
  this.element.innerHTML = '';
@@ -867,6 +867,7 @@ var TaskProcessor = /** @class */ (function (_super) {
867
867
  if (!isNullOrUndefined(ganttProperties.duration)) {
868
868
  this.parent.setRecordValue('duration', updatedDuration, ganttProperties, true);
869
869
  }
870
+ this.parent.dataOperation.updateMappingData(ganttData, 'duration');
870
871
  }
871
872
  };
872
873
  /**
@@ -103,7 +103,7 @@ export function getTaskData(records, isNotExtend, eventArgs, parent) {
103
103
  for (var i = 0; i < records.length; i++) {
104
104
  var data = void 0;
105
105
  if (!isNullOrUndefined(parent) && parent.timezone) {
106
- this.updateDates(records[i], parent);
106
+ updateDates(records[i], parent);
107
107
  }
108
108
  // eslint-disable-next-line
109
109
  data = isNotExtend ? (records[i].taskData) : extend({}, records[i].taskData, {}, true);