@syncfusion/ej2-gantt 19.4.53 → 19.4.54

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 : 19.4.53
3
+ * version : 19.4.54
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.4.52",
3
+ "_id": "@syncfusion/ej2-gantt@19.4.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-jNC6nbozt7RvFShA8eRsR5ahAH3LziEQ5nDgjp4syJpylbgisOzYbuITVGBrTANxWvQIgnF47/JoJpPlOuXcAA==",
5
+ "_integrity": "sha512-IrQJ1p6f4Z2J0GmYfBIv/CASjkXGH7kuvUo0hUg25Q8FIWWZjy4dvFGG8nI1tMK/VGbczWnNkCRPcMm6gyIyhw==",
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-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.52.tgz",
27
- "_shasum": "6b4be2ceec02c9e7cc2e3a7fcf7705f099b12f04",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.53.tgz",
27
+ "_shasum": "dcec6fd0b50ceff47d2998e6a79c4c4c2d0298f1",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -37,17 +37,17 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~19.4.52",
39
39
  "@syncfusion/ej2-buttons": "~19.4.53",
40
- "@syncfusion/ej2-calendars": "~19.4.52",
41
- "@syncfusion/ej2-data": "~19.4.52",
42
- "@syncfusion/ej2-dropdowns": "~19.4.52",
43
- "@syncfusion/ej2-grids": "~19.4.53",
40
+ "@syncfusion/ej2-calendars": "~19.4.54",
41
+ "@syncfusion/ej2-data": "~19.4.54",
42
+ "@syncfusion/ej2-dropdowns": "~19.4.54",
43
+ "@syncfusion/ej2-grids": "~19.4.54",
44
44
  "@syncfusion/ej2-inputs": "~19.4.52",
45
45
  "@syncfusion/ej2-layouts": "~19.4.52",
46
46
  "@syncfusion/ej2-lists": "~19.4.52",
47
47
  "@syncfusion/ej2-navigations": "~19.4.53",
48
48
  "@syncfusion/ej2-popups": "~19.4.53",
49
- "@syncfusion/ej2-richtexteditor": "~19.4.53",
50
- "@syncfusion/ej2-treegrid": "~19.4.52"
49
+ "@syncfusion/ej2-richtexteditor": "~19.4.54",
50
+ "@syncfusion/ej2-treegrid": "~19.4.54"
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.4.53",
78
+ "version": "19.4.54",
79
79
  "sideEffects": false
80
80
  }
@@ -397,7 +397,8 @@ var CellEdit = /** @class */ (function () {
397
397
  if (!ganttRecord.ganttProperties.isAutoSchedule) {
398
398
  this.parent.setRecordValue('autoWidth', this.parent.dataOperation.calculateWidth(ganttRecord, false), ganttRecord.ganttProperties, true);
399
399
  }
400
- if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0) {
400
+ if (!isNullOrUndefined(args.data.ganttProperties.segments) && args.data.ganttProperties.segments.length > 0 &&
401
+ !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
401
402
  this.parent.editModule.taskbarEditModule.updateSegmentProgress(args.data.ganttProperties);
402
403
  }
403
404
  if (!args.data.hasChildRecords) {
@@ -255,7 +255,13 @@ var RowDD = /** @class */ (function () {
255
255
  }
256
256
  else {
257
257
  startIndex = droppedRecord.index;
258
- endIndex = draggedRecord.index;
258
+ var rootChildRecord = draggedRecord;
259
+ if (rootChildRecord.childRecords.length > 0) {
260
+ do {
261
+ rootChildRecord = rootChildRecord.childRecords[rootChildRecord.childRecords.length - 1];
262
+ } while (rootChildRecord.childRecords.length > 0);
263
+ }
264
+ endIndex = rootChildRecord.index;
259
265
  }
260
266
  var _loop_2 = function (i_1) {
261
267
  if (!isNullOrUndefined(data_1[i_1])) {
@@ -277,7 +277,8 @@ var DateProcessor = /** @class */ (function () {
277
277
  DateProcessor.prototype.calculateDuration = function (ganttData) {
278
278
  var ganttProperties = ganttData.ganttProperties;
279
279
  var tDuration;
280
- if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0) {
280
+ if (!isNullOrUndefined(ganttProperties.segments) && ganttProperties.segments.length > 0 &&
281
+ !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
281
282
  tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
282
283
  }
283
284
  else {