@syncfusion/ej2-gantt 20.2.44 → 20.2.49

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 : 20.2.44
3
+ * version : 20.2.49
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.2.43",
3
+ "_id": "@syncfusion/ej2-gantt@20.2.46",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-VDzQ7VV68IMZBz7NCb1rHFjC15ida3IqeFVfF+z3SIXddalUkhZSeNITlKsY+s+3ZOIWiKG7ch9XDY/mQkugTQ==",
5
+ "_integrity": "sha512-aGXXWkPX90LO9UIWv7jrXAgVHVBHVSx82HYWYWu+4OXSh5KxmCAmhmwc40Dvem3YA1eDpChCOWdl5QaMhWo9nA==",
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-20.2.43.tgz",
27
- "_shasum": "0ee7a7133101b7e2886d1f4064f27cccdefa4eac",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.2.46.tgz",
27
+ "_shasum": "2634a07edea76e02c4da292cec2922216ca23d37",
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": "~20.2.43",
39
- "@syncfusion/ej2-buttons": "~20.2.43",
40
- "@syncfusion/ej2-calendars": "~20.2.43",
41
- "@syncfusion/ej2-data": "~20.2.43",
42
- "@syncfusion/ej2-dropdowns": "~20.2.44",
43
- "@syncfusion/ej2-grids": "~20.2.44",
44
- "@syncfusion/ej2-inputs": "~20.2.44",
45
- "@syncfusion/ej2-layouts": "~20.2.43",
46
- "@syncfusion/ej2-lists": "~20.2.43",
47
- "@syncfusion/ej2-navigations": "~20.2.44",
48
- "@syncfusion/ej2-popups": "~20.2.43",
49
- "@syncfusion/ej2-richtexteditor": "~20.2.44",
50
- "@syncfusion/ej2-treegrid": "~20.2.44"
38
+ "@syncfusion/ej2-base": "~20.2.48",
39
+ "@syncfusion/ej2-buttons": "~20.2.46",
40
+ "@syncfusion/ej2-calendars": "~20.2.46",
41
+ "@syncfusion/ej2-data": "~20.2.45",
42
+ "@syncfusion/ej2-dropdowns": "~20.2.48",
43
+ "@syncfusion/ej2-grids": "~20.2.49",
44
+ "@syncfusion/ej2-inputs": "~20.2.48",
45
+ "@syncfusion/ej2-layouts": "~20.2.46",
46
+ "@syncfusion/ej2-lists": "~20.2.46",
47
+ "@syncfusion/ej2-navigations": "~20.2.49",
48
+ "@syncfusion/ej2-popups": "~20.2.49",
49
+ "@syncfusion/ej2-richtexteditor": "~20.2.49",
50
+ "@syncfusion/ej2-treegrid": "~20.2.49"
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": "20.2.44",
78
+ "version": "20.2.49",
79
79
  "sideEffects": false
80
80
  }
@@ -259,7 +259,7 @@ var RowDD = /** @class */ (function () {
259
259
  var currentData = this_1.parent.currentViewData.filter(function (e) {
260
260
  return e[uniqueTaskID_1] === ganttData_1[i_1][uniqueTaskID_1];
261
261
  })[0];
262
- if (currentData.index > droppedRecord.index) {
262
+ if (currentData && currentData.index > droppedRecord.index) {
263
263
  endIndex = currentData.index;
264
264
  return "break";
265
265
  }
@@ -276,7 +276,7 @@ var RowDD = /** @class */ (function () {
276
276
  var currentData = this_1.parent.currentViewData.filter(function (e) {
277
277
  return e[uniqueTaskID_1] === ganttData_1[i_2][uniqueTaskID_1];
278
278
  })[0];
279
- if (currentData.index > draggedRecord.index) {
279
+ if (currentData && currentData.index > draggedRecord.index) {
280
280
  endIndex = currentData.index;
281
281
  return "break";
282
282
  }
@@ -451,6 +451,9 @@ var DateProcessor = /** @class */ (function () {
451
451
  */
452
452
  DateProcessor.prototype.getProjectStartDate = function (ganttProp, isLoad) {
453
453
  if (!isNullOrUndefined(this.parent.cloneProjectStartDate)) {
454
+ if (typeof this.parent.cloneProjectStartDate === 'string') {
455
+ this.parent.cloneProjectStartDate = this.getDateFromFormat(this.parent.cloneProjectStartDate);
456
+ }
454
457
  var cloneStartDate = this.checkStartDate(this.parent.cloneProjectStartDate);
455
458
  this.parent.cloneProjectStartDate = cloneStartDate;
456
459
  return new Date(cloneStartDate.getTime());
@@ -718,7 +718,7 @@ var GanttChart = /** @class */ (function () {
718
718
  * @private
719
719
  */
720
720
  GanttChart.prototype.expandedGanttRow = function (args) {
721
- if ((isNullOrUndefined(args['gridRow']) || isNullOrUndefined(args['chartRow'])) && this.parent.enableVirtualization) {
721
+ if ((isNullOrUndefined(args['gridRow']) && this.parent.enableVirtualization) || isNullOrUndefined(args['chartRow'])) {
722
722
  return;
723
723
  }
724
724
  var record = getValue('data', args);
@@ -61,7 +61,9 @@ var Splitter = /** @class */ (function () {
61
61
  _this.splitterObject.paneSettings[1].size = null;
62
62
  _this.splitterObject.paneSettings[1].size = _this.getSpliterPositionInPercentage(_this.splitterPreviousPositionChart);
63
63
  }
64
- _this.parent.timelineModule.updateTimelineAfterZooming(_this.parent.timelineModule.timelineEndDate, true);
64
+ if (isNullOrUndefined(_this.parent.projectEndDate)) {
65
+ _this.parent.timelineModule.updateTimelineAfterZooming(_this.parent.timelineModule.timelineEndDate, true);
66
+ }
65
67
  callBackPromise.resolve(splitterResizedArgs);
66
68
  });
67
69
  return callBackPromise;
@@ -376,7 +376,10 @@ var TaskProcessor = /** @class */ (function (_super) {
376
376
  this.setTime(this.parent.defaultEndTime, baselineEndDate);
377
377
  }
378
378
  if ((ganttProperties.baselineStartDate && baselineEndDate &&
379
- (ganttProperties.baselineStartDate.getTime() > baselineEndDate.getTime())) || ganttProperties.isMilestone) {
379
+ (ganttProperties.baselineStartDate.getTime() > baselineEndDate.getTime())) ||
380
+ ((!isNullOrUndefined(ganttProperties.baselineStartDate) && !isNullOrUndefined(ganttProperties.startDate) && (ganttProperties.baselineStartDate.getTime() === ganttProperties.startDate.getTime()))
381
+ && (!isNullOrUndefined(baselineEndDate) && !isNullOrUndefined(ganttProperties.endDate) && (baselineEndDate.toLocaleDateString() === ganttProperties.endDate.toLocaleDateString())) &&
382
+ ganttProperties.isMilestone)) {
380
383
  baselineEndDate = ganttProperties.baselineStartDate;
381
384
  }
382
385
  this.parent.setRecordValue('baselineEndDate', this.checkBaselineEndDate(baselineEndDate, ganttProperties), ganttProperties, true);
@@ -1331,7 +1331,10 @@ var ChartRows = /** @class */ (function (_super) {
1331
1331
  }
1332
1332
  if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
1333
1333
  this.templateData.ganttProperties.baselineEndDate) {
1334
- taskBaselineTemplateNode = this.getTaskBaselineNode();
1334
+ taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
1335
+ && (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
1336
+ this.templateData.ganttProperties.isMilestone)
1337
+ ? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
1335
1338
  }
1336
1339
  }
1337
1340
  else if (this.templateData.ganttProperties.isMilestone) {
@@ -1341,7 +1344,10 @@ var ChartRows = /** @class */ (function (_super) {
1341
1344
  }
1342
1345
  if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
1343
1346
  this.templateData.ganttProperties.baselineEndDate) {
1344
- taskBaselineTemplateNode = this.getMilestoneBaselineNode();
1347
+ taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
1348
+ && (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
1349
+ this.templateData.ganttProperties.isMilestone)
1350
+ ? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
1345
1351
  }
1346
1352
  }
1347
1353
  else {
@@ -1386,7 +1392,10 @@ var ChartRows = /** @class */ (function (_super) {
1386
1392
  }
1387
1393
  if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
1388
1394
  this.templateData.ganttProperties.baselineEndDate) {
1389
- taskBaselineTemplateNode = this.getTaskBaselineNode();
1395
+ taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
1396
+ && (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
1397
+ this.templateData.ganttProperties.isMilestone)
1398
+ ? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
1390
1399
  }
1391
1400
  }
1392
1401
  if (!this.templateData.hasChildRecords) {
@@ -921,7 +921,7 @@ var Timeline = /** @class */ (function () {
921
921
  endDate.setHours(24, 0, 0, 0);
922
922
  }
923
923
  }
924
- if (this.isZooming || this.parent.isLoad) {
924
+ if ((this.isZooming || this.parent.isLoad) && isNullOrUndefined(this.parent.projectEndDate)) {
925
925
  this.updateTimelineAfterZooming(endDate, false);
926
926
  }
927
927
  return endDate;