@syncfusion/ej2-gantt 19.4.41 → 19.4.42

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.41
3
+ * version : 19.4.42
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.40",
3
+ "_id": "@syncfusion/ej2-gantt@19.4.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-n0OWrN70jN14qD8VVJ5+m4C0QyN8mwF3kaM84Buq3rrw8BydgVTIl+SOJcZlG8LJcCOA+ZPw6lrURZ0I+c5xTg==",
5
+ "_integrity": "sha512-3KG1MspUbkHxeZJld50zA7/dLZW73hmvbOghZ4/Ti62Z5c5hTuK4txNgNz0968loU+UCjAU4cyMU391bjUEqpA==",
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.40.tgz",
27
- "_shasum": "34f02fea46bd04853093f007a0c11a5e26967978",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.41.tgz",
27
+ "_shasum": "95e837b715bb937d5f45dbf8ab343a1172ac2f78",
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.4.38",
39
- "@syncfusion/ej2-buttons": "~19.4.38",
40
- "@syncfusion/ej2-calendars": "~19.4.38",
41
- "@syncfusion/ej2-data": "~19.4.38",
42
- "@syncfusion/ej2-dropdowns": "~19.4.41",
43
- "@syncfusion/ej2-grids": "~19.4.41",
44
- "@syncfusion/ej2-inputs": "~19.4.41",
38
+ "@syncfusion/ej2-base": "~19.4.42",
39
+ "@syncfusion/ej2-buttons": "~19.4.42",
40
+ "@syncfusion/ej2-calendars": "~19.4.42",
41
+ "@syncfusion/ej2-data": "~19.4.42",
42
+ "@syncfusion/ej2-dropdowns": "~19.4.42",
43
+ "@syncfusion/ej2-grids": "~19.4.42",
44
+ "@syncfusion/ej2-inputs": "~19.4.42",
45
45
  "@syncfusion/ej2-layouts": "~19.4.38",
46
46
  "@syncfusion/ej2-lists": "~19.4.38",
47
47
  "@syncfusion/ej2-navigations": "~19.4.41",
48
48
  "@syncfusion/ej2-popups": "~19.4.41",
49
49
  "@syncfusion/ej2-richtexteditor": "~19.4.40",
50
- "@syncfusion/ej2-treegrid": "~19.4.41"
50
+ "@syncfusion/ej2-treegrid": "~19.4.42"
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.41",
78
+ "version": "19.4.42",
79
79
  "sideEffects": false
80
80
  }
@@ -25,6 +25,10 @@ var FocusModule = /** @class */ (function () {
25
25
  FocusModule.prototype.onKeyPress = function (e) {
26
26
  var ganttObj = this.parent;
27
27
  var expandedRecords = ganttObj.getExpandedRecords(ganttObj.currentViewData);
28
+ if (isNullOrUndefined(this.parent.focusModule.getActiveElement()) && (e.action === 'expandAll' || e.action === 'collapseAll')) {
29
+ var focussedElement = this.parent.element.querySelector('.e-treegrid');
30
+ focussedElement.focus();
31
+ }
28
32
  var targetElement = this.parent.focusModule.getActiveElement();
29
33
  if (e.action === 'home' || e.action === 'end' || e.action === 'downArrow' || e.action === 'upArrow' || e.action === 'delete' ||
30
34
  e.action === 'rightArrow' || e.action === 'leftArrow' || e.action === 'focusTask' || e.action === 'focusSearch' ||
@@ -281,7 +281,14 @@ var DateProcessor = /** @class */ (function () {
281
281
  tDuration = this.parent.editModule.taskbarEditModule.sumOfDuration(ganttProperties.segments);
282
282
  }
283
283
  else {
284
- tDuration = this.getDuration(ganttProperties.startDate, ganttProperties.endDate, ganttProperties.durationUnit, ganttProperties.isAutoSchedule, ganttProperties.isMilestone);
284
+ // eslint-disable-next-line
285
+ if (!isNullOrUndefined(ganttProperties.startDate) && !isNullOrUndefined(ganttProperties.endDate) &&
286
+ (ganttProperties.startDate).getTime() === (ganttProperties.endDate).getTime() && !isNullOrUndefined(ganttData.taskData[this.parent.taskFields.milestone])) {
287
+ tDuration = 1;
288
+ }
289
+ else {
290
+ tDuration = this.getDuration(ganttProperties.startDate, ganttProperties.endDate, ganttProperties.durationUnit, ganttProperties.isAutoSchedule, ganttProperties.isMilestone);
291
+ }
285
292
  }
286
293
  this.parent.setRecordValue('duration', tDuration, ganttProperties, true);
287
294
  var col = this.parent.columnByField[this.parent.columnMapping.duration];
@@ -775,8 +775,6 @@ var GanttChart = /** @class */ (function () {
775
775
  this.parent.treeGrid.collapseAll();
776
776
  }
777
777
  this.isExpandAll = false;
778
- var focussedElement = this.parent.element.querySelector('.e-treegrid');
779
- focussedElement.focus();
780
778
  };
781
779
  /**
782
780
  * Public method to expand particular level of rows.
@@ -1133,7 +1133,12 @@ var TaskProcessor = /** @class */ (function (_super) {
1133
1133
  eDate.setHours(0, 0, 0, 0);
1134
1134
  }
1135
1135
  }
1136
- return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
1136
+ if ((sDate).getTime() === (eDate).getTime()) {
1137
+ return (this.parent.perDayWidth);
1138
+ }
1139
+ else {
1140
+ return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
1141
+ }
1137
1142
  };
1138
1143
  /**
1139
1144
  * Get task left value