@syncfusion/ej2-gantt 20.4.43 → 20.4.48
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.
- package/CHANGELOG.md +10 -0
- package/dist/ej2-gantt.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js +2 -2
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +12 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +12 -4
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +2 -2
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +19 -19
- package/src/gantt/actions/dependency.js +9 -1
- package/src/gantt/actions/edit.js +1 -1
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/renderer/timeline.js +1 -1
|
@@ -402,7 +402,7 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
|
|
|
402
402
|
if (hour > this.parent.defaultEndTime) {
|
|
403
403
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
404
404
|
}
|
|
405
|
-
else if (hour
|
|
405
|
+
else if (hour < this.parent.defaultStartTime && !isNullOrUndefined(ganttProp) && !ganttProp.isMilestone) {
|
|
406
406
|
cloneDate.setDate(cloneDate.getDate() - 1);
|
|
407
407
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
408
408
|
}
|
|
@@ -6181,7 +6181,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6181
6181
|
break;
|
|
6182
6182
|
case 'Month':
|
|
6183
6183
|
difference = Math.round((timeDifference / (1000 * 3600 * 24)) / 28);
|
|
6184
|
-
tierCount = tierCount <= difference ? tierCount : difference > 0 ? difference : 1;
|
|
6184
|
+
tierCount = tierCount <= difference ? tierCount : difference > 0 ? (difference + 1) : 1;
|
|
6185
6185
|
if (this.topTier !== 'None' && tier === 'bottomTier') {
|
|
6186
6186
|
tierCount = this.validateBottomTierCount(mode, tierCount);
|
|
6187
6187
|
}
|
|
@@ -11348,6 +11348,14 @@ var Dependency = /** @__PURE__ @class */ (function () {
|
|
|
11348
11348
|
}
|
|
11349
11349
|
}
|
|
11350
11350
|
if (record && record.ganttProperties.taskId !== this.isValidatedParentTaskID && ganttProp) {
|
|
11351
|
+
var validUpdate = false;
|
|
11352
|
+
var predecessorNames = ganttProp.ganttProperties.predecessorsName ?
|
|
11353
|
+
ganttProp.ganttProperties.predecessorsName.split(',').length : ganttProp.ganttProperties.predecessorsName;
|
|
11354
|
+
var predecessorLength = ganttProp.ganttProperties.predecessor ?
|
|
11355
|
+
ganttProp.ganttProperties.predecessor.length : ganttProp.ganttProperties.predecessor;
|
|
11356
|
+
if ((predecessorLength && predecessorNames !== predecessorLength)) {
|
|
11357
|
+
validUpdate = true;
|
|
11358
|
+
}
|
|
11351
11359
|
if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
|
|
11352
11360
|
if (!ganttProp.hasChildRecords && record.hasChildRecords) {
|
|
11353
11361
|
this.parent.editModule['updateChildItems'](record);
|
|
@@ -11355,7 +11363,7 @@ var Dependency = /** @__PURE__ @class */ (function () {
|
|
|
11355
11363
|
}
|
|
11356
11364
|
}
|
|
11357
11365
|
else if ((record.hasChildRecords && taskBarModule.taskBarEditAction == 'ChildDrag') ||
|
|
11358
|
-
(
|
|
11366
|
+
(validUpdate && taskBarModule.taskBarEditAction == 'ParentDrag')) {
|
|
11359
11367
|
this.parent.editModule['updateChildItems'](record);
|
|
11360
11368
|
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
11361
11369
|
}
|
|
@@ -23906,7 +23914,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23906
23914
|
}
|
|
23907
23915
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23908
23916
|
/** validating predecessor for current edited records */
|
|
23909
|
-
if (ganttRecord.ganttProperties.
|
|
23917
|
+
if (ganttRecord.ganttProperties.predecessorsName) {
|
|
23910
23918
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
23911
23919
|
if (this.taskbarMoved) {
|
|
23912
23920
|
this.parent.editedTaskBarItem = ganttRecord;
|