@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
|
@@ -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
|
}
|
|
@@ -3768,8 +3768,10 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3768
3768
|
progressValues = this.getParentProgress(childData);
|
|
3769
3769
|
totalProgress += getValue('totalProgress', progressValues);
|
|
3770
3770
|
if (childData[this.parent.taskFields.duration] < 1) {
|
|
3771
|
-
|
|
3772
|
-
|
|
3771
|
+
if (typeof (getValue('totalDuration', progressValues)) != 'object') {
|
|
3772
|
+
totalDuration += getValue('totalDuration', progressValues);
|
|
3773
|
+
totalDuration = Number(totalDuration.toFixed(4));
|
|
3774
|
+
}
|
|
3773
3775
|
}
|
|
3774
3776
|
else {
|
|
3775
3777
|
totalDuration += getValue('totalDuration', progressValues);
|
|
@@ -6181,7 +6183,7 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6181
6183
|
break;
|
|
6182
6184
|
case 'Month':
|
|
6183
6185
|
difference = Math.round((timeDifference / (1000 * 3600 * 24)) / 28);
|
|
6184
|
-
tierCount = tierCount <= difference ? tierCount : difference > 0 ? difference : 1;
|
|
6186
|
+
tierCount = tierCount <= difference ? tierCount : difference > 0 ? (difference + 1) : 1;
|
|
6185
6187
|
if (this.topTier !== 'None' && tier === 'bottomTier') {
|
|
6186
6188
|
tierCount = this.validateBottomTierCount(mode, tierCount);
|
|
6187
6189
|
}
|
|
@@ -11348,6 +11350,14 @@ var Dependency = /** @__PURE__ @class */ (function () {
|
|
|
11348
11350
|
}
|
|
11349
11351
|
}
|
|
11350
11352
|
if (record && record.ganttProperties.taskId !== this.isValidatedParentTaskID && ganttProp) {
|
|
11353
|
+
var validUpdate = false;
|
|
11354
|
+
var predecessorNames = ganttProp.ganttProperties.predecessorsName ?
|
|
11355
|
+
ganttProp.ganttProperties.predecessorsName.split(',').length : ganttProp.ganttProperties.predecessorsName;
|
|
11356
|
+
var predecessorLength = ganttProp.ganttProperties.predecessor ?
|
|
11357
|
+
ganttProp.ganttProperties.predecessor.length : ganttProp.ganttProperties.predecessor;
|
|
11358
|
+
if ((predecessorLength && predecessorNames !== predecessorLength)) {
|
|
11359
|
+
validUpdate = true;
|
|
11360
|
+
}
|
|
11351
11361
|
if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
|
|
11352
11362
|
if (!ganttProp.hasChildRecords && record.hasChildRecords) {
|
|
11353
11363
|
this.parent.editModule['updateChildItems'](record);
|
|
@@ -11355,7 +11365,7 @@ var Dependency = /** @__PURE__ @class */ (function () {
|
|
|
11355
11365
|
}
|
|
11356
11366
|
}
|
|
11357
11367
|
else if ((record.hasChildRecords && taskBarModule.taskBarEditAction == 'ChildDrag') ||
|
|
11358
|
-
(
|
|
11368
|
+
(validUpdate && taskBarModule.taskBarEditAction == 'ParentDrag')) {
|
|
11359
11369
|
this.parent.editModule['updateChildItems'](record);
|
|
11360
11370
|
this.isValidatedParentTaskID = record.ganttProperties.taskId;
|
|
11361
11371
|
}
|
|
@@ -20890,6 +20900,8 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
20890
20900
|
if (taskSettings.duration === columnName) {
|
|
20891
20901
|
if (!isNullOrUndefined(value) && value !== '') {
|
|
20892
20902
|
ganttObj.dataOperation.updateDurationValue(value, ganttProp);
|
|
20903
|
+
this.parent.setRecordValue(taskSettings.duration, value, currentData);
|
|
20904
|
+
this.parent.setRecordValue('taskData.' + taskSettings.duration, ganttProp.duration, currentData);
|
|
20893
20905
|
}
|
|
20894
20906
|
else {
|
|
20895
20907
|
if (ganttObj.allowUnscheduledTasks) {
|
|
@@ -23906,7 +23918,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23906
23918
|
}
|
|
23907
23919
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23908
23920
|
/** validating predecessor for current edited records */
|
|
23909
|
-
if (ganttRecord.ganttProperties.
|
|
23921
|
+
if (ganttRecord.ganttProperties.predecessorsName) {
|
|
23910
23922
|
this.parent.isMileStoneEdited = ganttRecord.ganttProperties.isMilestone;
|
|
23911
23923
|
if (this.taskbarMoved) {
|
|
23912
23924
|
this.parent.editedTaskBarItem = ganttRecord;
|
|
@@ -23915,7 +23927,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
23915
23927
|
this.parent.predecessorModule.isValidatedParentTaskID = '';
|
|
23916
23928
|
}
|
|
23917
23929
|
if (ganttRecord.hasChildRecords && this.parent.previousRecords[ganttRecord.uniqueID].ganttProperties.startDate &&
|
|
23918
|
-
(args.action === "DrawConnectorLine"
|
|
23930
|
+
(args.action === "DrawConnectorLine")) {
|
|
23919
23931
|
this.updateChildItems(ganttRecord);
|
|
23920
23932
|
}
|
|
23921
23933
|
this.updateParentItemOnEditing();
|
|
@@ -31926,6 +31938,14 @@ var PdfPaddings = /** @__PURE__ @class */ (function () {
|
|
|
31926
31938
|
/**
|
|
31927
31939
|
* PdfGridStyleBase.ts class for EJ2-PDF
|
|
31928
31940
|
*/
|
|
31941
|
+
/**
|
|
31942
|
+
* Base class for the `treegrid style`,
|
|
31943
|
+
*/
|
|
31944
|
+
var PdfTreeGridStyleBase = /** @__PURE__ @class */ (function () {
|
|
31945
|
+
function PdfTreeGridStyleBase() {
|
|
31946
|
+
}
|
|
31947
|
+
return PdfTreeGridStyleBase;
|
|
31948
|
+
}());
|
|
31929
31949
|
/**
|
|
31930
31950
|
* `PdfTreeGridStyle` class provides customization of the appearance for the 'PdfGrid'.
|
|
31931
31951
|
*
|
|
@@ -35774,5 +35794,5 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
35774
35794
|
* Gantt index file
|
|
35775
35795
|
*/
|
|
35776
35796
|
|
|
35777
|
-
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 };
|
|
35797
|
+
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 };
|
|
35778
35798
|
//# sourceMappingURL=ej2-gantt.es5.js.map
|