@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.
- package/CHANGELOG.md +20 -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 +22 -9
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +28 -8
- 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/dialog-edit.js +2 -0
- package/src/gantt/actions/edit.js +2 -2
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/base/task-processor.js +4 -2
- package/src/gantt/index.d.ts +1 -0
- package/src/gantt/index.js +1 -0
- package/src/gantt/renderer/timeline.js +1 -1
|
@@ -401,7 +401,7 @@ class DateProcessor {
|
|
|
401
401
|
if (hour > this.parent.defaultEndTime) {
|
|
402
402
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
403
403
|
}
|
|
404
|
-
else if (hour
|
|
404
|
+
else if (hour < this.parent.defaultStartTime && !isNullOrUndefined(ganttProp) && !ganttProp.isMilestone) {
|
|
405
405
|
cloneDate.setDate(cloneDate.getDate() - 1);
|
|
406
406
|
this.setTime(this.parent.defaultEndTime, cloneDate);
|
|
407
407
|
}
|
|
@@ -3723,8 +3723,10 @@ class TaskProcessor extends DateProcessor {
|
|
|
3723
3723
|
progressValues = this.getParentProgress(childData);
|
|
3724
3724
|
totalProgress += getValue('totalProgress', progressValues);
|
|
3725
3725
|
if (childData[this.parent.taskFields.duration] < 1) {
|
|
3726
|
-
|
|
3727
|
-
|
|
3726
|
+
if (typeof (getValue('totalDuration', progressValues)) != 'object') {
|
|
3727
|
+
totalDuration += getValue('totalDuration', progressValues);
|
|
3728
|
+
totalDuration = Number(totalDuration.toFixed(4));
|
|
3729
|
+
}
|
|
3728
3730
|
}
|
|
3729
3731
|
else {
|
|
3730
3732
|
totalDuration += getValue('totalDuration', progressValues);
|
|
@@ -6116,7 +6118,7 @@ class Timeline {
|
|
|
6116
6118
|
break;
|
|
6117
6119
|
case 'Month':
|
|
6118
6120
|
difference = Math.round((timeDifference / (1000 * 3600 * 24)) / 28);
|
|
6119
|
-
tierCount = tierCount <= difference ? tierCount : difference > 0 ? difference : 1;
|
|
6121
|
+
tierCount = tierCount <= difference ? tierCount : difference > 0 ? (difference + 1) : 1;
|
|
6120
6122
|
if (this.topTier !== 'None' && tier === 'bottomTier') {
|
|
6121
6123
|
tierCount = this.validateBottomTierCount(mode, tierCount);
|
|
6122
6124
|
}
|
|
@@ -10938,6 +10940,14 @@ class Dependency {
|
|
|
10938
10940
|
}
|
|
10939
10941
|
}
|
|
10940
10942
|
if (record && record.ganttProperties.taskId !== this.isValidatedParentTaskID && ganttProp) {
|
|
10943
|
+
let validUpdate = false;
|
|
10944
|
+
let predecessorNames = ganttProp.ganttProperties.predecessorsName ?
|
|
10945
|
+
ganttProp.ganttProperties.predecessorsName.split(',').length : ganttProp.ganttProperties.predecessorsName;
|
|
10946
|
+
let predecessorLength = ganttProp.ganttProperties.predecessor ?
|
|
10947
|
+
ganttProp.ganttProperties.predecessor.length : ganttProp.ganttProperties.predecessor;
|
|
10948
|
+
if ((predecessorLength && predecessorNames !== predecessorLength)) {
|
|
10949
|
+
validUpdate = true;
|
|
10950
|
+
}
|
|
10941
10951
|
if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
|
|
10942
10952
|
if (!ganttProp.hasChildRecords && record.hasChildRecords) {
|
|
10943
10953
|
this.parent.editModule['updateChildItems'](record);
|
|
@@ -10945,7 +10955,7 @@ class Dependency {
|
|
|
10945
10955
|
}
|
|
10946
10956
|
}
|
|
10947
10957
|
else if ((record.hasChildRecords && taskBarModule.taskBarEditAction == 'ChildDrag') ||
|
|
10948
|
-
(
|
|
10958
|
+
(validUpdate && taskBarModule.taskBarEditAction == 'ParentDrag')) {
|
|
10949
10959
|
this.parent.editModule['updateChildItems'](record);
|
|
10950
10960
|
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
10951
10961
|
}
|
|
@@ -20413,6 +20423,8 @@ class DialogEdit {
|
|
|
20413
20423
|
if (taskSettings.duration === columnName) {
|
|
20414
20424
|
if (!isNullOrUndefined(value) && value !== '') {
|
|
20415
20425
|
ganttObj.dataOperation.updateDurationValue(value, ganttProp);
|
|
20426
|
+
this.parent.setRecordValue(taskSettings.duration, value, currentData);
|
|
20427
|
+
this.parent.setRecordValue('taskData.' + taskSettings.duration, ganttProp.duration, currentData);
|
|
20416
20428
|
}
|
|
20417
20429
|
else {
|
|
20418
20430
|
if (ganttObj.allowUnscheduledTasks) {
|
|
@@ -23384,7 +23396,7 @@ class Edit$2 {
|
|
|
23384
23396
|
}
|
|
23385
23397
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23386
23398
|
/** validating predecessor for current edited records */
|
|
23387
|
-
if (ganttRecord.ganttProperties.
|
|
23399
|
+
if (ganttRecord.ganttProperties.predecessorsName) {
|
|
23388
23400
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
23389
23401
|
if (this.taskbarMoved) {
|
|
23390
23402
|
this.parent.editedTaskBarItem = ganttRecord;
|
|
@@ -23393,7 +23405,7 @@ class Edit$2 {
|
|
|
23393
23405
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23394
23406
|
}
|
|
23395
23407
|
if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
|
|
23396
|
-
(args.action === "DrawConnectorLine"
|
|
23408
|
+
(args.action === "DrawConnectorLine")) {
|
|
23397
23409
|
this.updateChildItems(ganttRecord);
|
|
23398
23410
|
}
|
|
23399
23411
|
this.updateParentItemOnEditing();
|
|
@@ -31264,7 +31276,8 @@ class PdfPaddings {
|
|
|
31264
31276
|
/**
|
|
31265
31277
|
* Base class for the `treegrid style`,
|
|
31266
31278
|
*/
|
|
31267
|
-
|
|
31279
|
+
class PdfTreeGridStyleBase {
|
|
31280
|
+
}
|
|
31268
31281
|
/**
|
|
31269
31282
|
* `PdfTreeGridStyle` class provides customization of the appearance for the 'PdfGrid'.
|
|
31270
31283
|
*
|
|
@@ -34890,5 +34903,5 @@ class VirtualScroll$1 {
|
|
|
34890
34903
|
* Gantt index file
|
|
34891
34904
|
*/
|
|
34892
34905
|
|
|
34893
|
-
export { Gantt, PdfHorizontalOverflowType, parentsUntil$1 as parentsUntil, isScheduledTask, isCountRequired, getSwapKey, isRemoteData, getTaskData, updateDates, formatString, getIndex, pixelToPoint, pointToPixel, getUid$1 as getUid, load, rowDataBound, queryCellInfo, toolbarClick, keyPressed, Edit$2 as Edit, Reorder$1 as Reorder, Resize$1 as Resize, Filter$1 as Filter, Sort$1 as Sort, Dependency, Selection$1 as Selection, Toolbar$3 as Toolbar, DayMarkers, CriticalPath, ContextMenu$2 as ContextMenu, ExcelExport$1 as ExcelExport, ColumnMenu$1 as ColumnMenu, RowDD$1 as RowDD, PdfExport, VirtualScroll$1 as VirtualScroll, Column, DayWorkingTime, AddDialogFieldSettings, EditDialogFieldSettings, EditSettings, EventMarker, FilterSettings, SearchSettings, Holiday, LabelSettings, SelectionSettings, SplitterSettings, TaskFields, TimelineTierSettings, TimelineSettings, TooltipSettings, SortDescriptor, SortSettings, ResourceFields, LoadingIndicator };
|
|
34906
|
+
export { Gantt, PdfHorizontalOverflowType, parentsUntil$1 as parentsUntil, isScheduledTask, isCountRequired, getSwapKey, isRemoteData, getTaskData, updateDates, formatString, getIndex, pixelToPoint, pointToPixel, getUid$1 as getUid, load, rowDataBound, queryCellInfo, toolbarClick, keyPressed, Edit$2 as Edit, Reorder$1 as Reorder, Resize$1 as Resize, Filter$1 as Filter, Sort$1 as Sort, Dependency, Selection$1 as Selection, Toolbar$3 as Toolbar, DayMarkers, CriticalPath, ContextMenu$2 as ContextMenu, ExcelExport$1 as ExcelExport, ColumnMenu$1 as ColumnMenu, RowDD$1 as RowDD, PdfExport, VirtualScroll$1 as VirtualScroll, Column, DayWorkingTime, AddDialogFieldSettings, EditDialogFieldSettings, EditSettings, EventMarker, FilterSettings, SearchSettings, Holiday, LabelSettings, SelectionSettings, SplitterSettings, TaskFields, TimelineTierSettings, TimelineSettings, TooltipSettings, SortDescriptor, SortSettings, ResourceFields, LoadingIndicator, TemporaryDictionary, PdfBorders, PdfPaddings, PdfTreeGridStyleBase, PdfTreeGridStyle, PdfGanttTheme, PdfTreeGridLayouter, PdfTreeGridLayoutResult, PdfTreeGridLayoutFormat, PdfTreeGridCell, PdfTreeGridCellCollection, PdfTreeGridRow, PdfTreeGridRowCollection, PdfTreeGridHeaderCollection, PdfTreeGridColumn, PdfTreeGridColumnCollection };
|
|
34894
34907
|
//# sourceMappingURL=ej2-gantt.es2015.js.map
|