@syncfusion/ej2-gantt 20.4.43 → 20.4.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.4.43
3
+ * version : 20.4.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.4.42",
3
+ "_id": "@syncfusion/ej2-gantt@20.4.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-AODUl9YjnnHP0PxHbQe98L2pZeoirFT8tdIDQTSua7nbxDprG0CKVlwXlgc87w51SqhRTDgzZxjYPYeEhPF0CA==",
5
+ "_integrity": "sha512-rnjgY2upWShDlY1g0oKjWptfQekBILXmySKAGiE8Oq0H40jaapxjF79SZQYYkrWbAaymi8mDLCeBZRUflj7Esg==",
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-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.42.tgz",
27
- "_shasum": "c2a8669049e984a32c2f02da7377c369811e92fe",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.4.48.tgz",
27
+ "_shasum": "b3eca9c7f1d969c339fbf495dc1863495564854b",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -35,20 +35,20 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~20.4.42",
39
- "@syncfusion/ej2-buttons": "~20.4.42",
40
- "@syncfusion/ej2-calendars": "~20.4.42",
41
- "@syncfusion/ej2-data": "~20.4.42",
42
- "@syncfusion/ej2-dropdowns": "~20.4.43",
43
- "@syncfusion/ej2-grids": "~20.4.43",
44
- "@syncfusion/ej2-inputs": "~20.4.42",
45
- "@syncfusion/ej2-layouts": "~20.4.42",
46
- "@syncfusion/ej2-lists": "~20.4.42",
47
- "@syncfusion/ej2-navigations": "~20.4.43",
48
- "@syncfusion/ej2-notifications": "~20.4.42",
49
- "@syncfusion/ej2-popups": "~20.4.43",
50
- "@syncfusion/ej2-richtexteditor": "~20.4.43",
51
- "@syncfusion/ej2-treegrid": "~20.4.42"
38
+ "@syncfusion/ej2-base": "~20.4.48",
39
+ "@syncfusion/ej2-buttons": "~20.4.49",
40
+ "@syncfusion/ej2-calendars": "~20.4.48",
41
+ "@syncfusion/ej2-data": "~20.4.48",
42
+ "@syncfusion/ej2-dropdowns": "~20.4.49",
43
+ "@syncfusion/ej2-grids": "~20.4.49",
44
+ "@syncfusion/ej2-inputs": "~20.4.48",
45
+ "@syncfusion/ej2-layouts": "~20.4.48",
46
+ "@syncfusion/ej2-lists": "~20.4.48",
47
+ "@syncfusion/ej2-navigations": "~20.4.49",
48
+ "@syncfusion/ej2-notifications": "~20.4.48",
49
+ "@syncfusion/ej2-popups": "~20.4.49",
50
+ "@syncfusion/ej2-richtexteditor": "~20.4.49",
51
+ "@syncfusion/ej2-treegrid": "~20.4.49"
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": "20.4.43",
76
+ "version": "20.4.49",
77
77
  "sideEffects": false
78
78
  }
@@ -746,6 +746,14 @@ var Dependency = /** @class */ (function () {
746
746
  }
747
747
  }
748
748
  if (record && record.ganttProperties.taskId !== this.isValidatedParentTaskID && ganttProp) {
749
+ var validUpdate = false;
750
+ var predecessorNames = ganttProp.ganttProperties.predecessorsName ?
751
+ ganttProp.ganttProperties.predecessorsName.split(',').length : ganttProp.ganttProperties.predecessorsName;
752
+ var predecessorLength = ganttProp.ganttProperties.predecessor ?
753
+ ganttProp.ganttProperties.predecessor.length : ganttProp.ganttProperties.predecessor;
754
+ if ((predecessorLength && predecessorNames !== predecessorLength)) {
755
+ validUpdate = true;
756
+ }
749
757
  if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
750
758
  if (!ganttProp.hasChildRecords && record.hasChildRecords) {
751
759
  this.parent.editModule['updateChildItems'](record);
@@ -753,7 +761,7 @@ var Dependency = /** @class */ (function () {
753
761
  }
754
762
  }
755
763
  else if ((record.hasChildRecords && taskBarModule.taskBarEditAction == 'ChildDrag') ||
756
- (!ganttProp.ganttProperties.predecessorsName && taskBarModule.taskBarEditAction == 'ParentDrag')) {
764
+ (validUpdate && taskBarModule.taskBarEditAction == 'ParentDrag')) {
757
765
  this.parent.editModule['updateChildItems'](record);
758
766
  this.isValidatedParentTaskID = record.ganttProperties.taskId;
759
767
  }
@@ -1081,6 +1081,8 @@ var DialogEdit = /** @class */ (function () {
1081
1081
  if (taskSettings.duration === columnName) {
1082
1082
  if (!isNullOrUndefined(value) && value !== '') {
1083
1083
  ganttObj.dataOperation.updateDurationValue(value, ganttProp);
1084
+ this.parent.setRecordValue(taskSettings.duration, value, currentData);
1085
+ this.parent.setRecordValue('taskData.' + taskSettings.duration, ganttProp.duration, currentData);
1084
1086
  }
1085
1087
  else {
1086
1088
  if (ganttObj.allowUnscheduledTasks) {
@@ -808,7 +808,7 @@ var Edit = /** @class */ (function () {
808
808
  }
809
809
  this.parent.predecessorModule.isValidatedParentTaskID = '';
810
810
  /** validating predecessor for current edited records */
811
- if (ganttRecord.ganttProperties.predecessor) {
811
+ if (ganttRecord.ganttProperties.predecessorsName) {
812
812
  this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
813
813
  if (this.taskbarMoved) {
814
814
  this.parent.editedTaskBarItem = ganttRecord;
@@ -817,7 +817,7 @@ var Edit = /** @class */ (function () {
817
817
  this.parent.predecessorModule.isValidatedParentTaskID = '';
818
818
  }
819
819
  if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
820
- (args.action === "DrawConnectorLine" || args.action === "CellEditing" || args.action === "DialogEditing")) {
820
+ (args.action === "DrawConnectorLine")) {
821
821
  this.updateChildItems(ganttRecord);
822
822
  }
823
823
  this.updateParentItemOnEditing();
@@ -199,7 +199,7 @@ var DateProcessor = /** @class */ (function () {
199
199
  if (hour > this.parent.defaultEndTime) {
200
200
  this.setTime(this.parent.defaultEndTime, cloneDate);
201
201
  }
202
- else if (hour <= this.parent.defaultStartTime && !isNullOrUndefined(ganttProp) && !ganttProp.isMilestone) {
202
+ else if (hour < this.parent.defaultStartTime && !isNullOrUndefined(ganttProp) && !ganttProp.isMilestone) {
203
203
  cloneDate.setDate(cloneDate.getDate() - 1);
204
204
  this.setTime(this.parent.defaultEndTime, cloneDate);
205
205
  }
@@ -2247,8 +2247,10 @@ var TaskProcessor = /** @class */ (function (_super) {
2247
2247
  progressValues = this.getParentProgress(childData);
2248
2248
  totalProgress += getValue('totalProgress', progressValues);
2249
2249
  if (childData[this.parent.taskFields.duration] < 1) {
2250
- totalDuration += getValue('totalDuration', progressValues);
2251
- totalDuration = Number(totalDuration.toFixed(4));
2250
+ if (typeof (getValue('totalDuration', progressValues)) != 'object') {
2251
+ totalDuration += getValue('totalDuration', progressValues);
2252
+ totalDuration = Number(totalDuration.toFixed(4));
2253
+ }
2252
2254
  }
2253
2255
  else {
2254
2256
  totalDuration += getValue('totalDuration', progressValues);
@@ -4,3 +4,4 @@
4
4
  export * from './base/common';
5
5
  export * from './actions/actions';
6
6
  export * from './models/models';
7
+ export * from './export/pdf-base/index';
@@ -4,3 +4,4 @@
4
4
  export * from './base/common';
5
5
  export * from './actions/actions';
6
6
  export * from './models/models';
7
+ export * from './export/pdf-base/index';
@@ -631,7 +631,7 @@ var Timeline = /** @class */ (function () {
631
631
  break;
632
632
  case 'Month':
633
633
  difference = Math.round((timeDifference / (1000 * 3600 * 24)) / 28);
634
- tierCount = tierCount <= difference ? tierCount : difference > 0 ? difference : 1;
634
+ tierCount = tierCount <= difference ? tierCount : difference > 0 ? (difference + 1) : 1;
635
635
  if (this.topTier !== 'None' && tier === 'bottomTier') {
636
636
  tierCount = this.validateBottomTierCount(mode, tierCount);
637
637
  }