@syncfusion/ej2-gantt 24.2.8 → 24.2.9
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 +13 -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 +16 -13
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +16 -13
- 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 +12 -12
- package/src/gantt/actions/edit.js +5 -4
- package/src/gantt/base/task-processor.js +1 -1
- package/src/gantt/export/pdf-taskbar.js +1 -1
- package/src/gantt/export/pdf-timeline.js +0 -6
- package/src/gantt/renderer/timeline.js +9 -1
|
@@ -3989,7 +3989,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
3989
3989
|
var deleteUpdate = false;
|
|
3990
3990
|
var ganttProp = parentData.ganttProperties;
|
|
3991
3991
|
if (this.parent.autoCalculateDateScheduling || this.parent.viewType === "ResourceView") {
|
|
3992
|
-
if (parentData.childRecords.length > 0) {
|
|
3992
|
+
if (parentData.childRecords && parentData.childRecords.length > 0) {
|
|
3993
3993
|
var previousStartDate = ganttProp.isAutoSchedule ? ganttProp.startDate : ganttProp.autoStartDate;
|
|
3994
3994
|
var previousEndDate = ganttProp.isAutoSchedule ? ganttProp.endDate :
|
|
3995
3995
|
ganttProp.autoEndDate;
|
|
@@ -6407,7 +6407,15 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6407
6407
|
var currentZoomingLevel = this.checkCurrentZoomingLevel();
|
|
6408
6408
|
this.isZoomIn = isZoomIn;
|
|
6409
6409
|
this.isZooming = true;
|
|
6410
|
-
var currentLevel
|
|
6410
|
+
var currentLevel;
|
|
6411
|
+
var level = isZoomIn ? currentZoomingLevel + 1 : currentZoomingLevel - 1;
|
|
6412
|
+
var foundLevel = this.parent.zoomingLevels.find(function (tempLevel) { return tempLevel.level === level; });
|
|
6413
|
+
if (foundLevel) {
|
|
6414
|
+
currentLevel = level;
|
|
6415
|
+
}
|
|
6416
|
+
else {
|
|
6417
|
+
currentLevel = currentZoomingLevel;
|
|
6418
|
+
}
|
|
6411
6419
|
if (this.parent.toolbarModule) {
|
|
6412
6420
|
if (isZoomIn) {
|
|
6413
6421
|
if (currentLevel === this.parent.zoomingLevels[this.parent.zoomingLevels.length - 1].level) {
|
|
@@ -28805,7 +28813,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
28805
28813
|
var fromRecord = this.parent.getRecordByID(predecessorCollection[count].from);
|
|
28806
28814
|
var toRecord = this.parent.getRecordByID(predecessorCollection[count].to);
|
|
28807
28815
|
validPredecessor = this.parent.connectorLineEditModule.validateParentPredecessor(fromRecord, toRecord);
|
|
28808
|
-
if (!validPredecessor) {
|
|
28816
|
+
if (!validPredecessor || !this.parent.allowParentDependency) {
|
|
28809
28817
|
if (predecessorCollection[count].to === parentRecordTaskData.rowUniqueID.toString()) {
|
|
28810
28818
|
childRecord = this.parent.getRecordByID(predecessorCollection[count].from);
|
|
28811
28819
|
predecessorIndex = getIndex(predecessorCollection[count], 'from', childRecord.ganttProperties.predecessor, 'to');
|
|
@@ -28831,7 +28839,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
28831
28839
|
}
|
|
28832
28840
|
}
|
|
28833
28841
|
}
|
|
28834
|
-
if (!validPredecessor) {
|
|
28842
|
+
if (!validPredecessor || !this.parent.allowParentDependency) {
|
|
28835
28843
|
this.parent.setRecordValue('predecessor', updatedPredecessor, parentRecord.ganttProperties, true);
|
|
28836
28844
|
this.parent.setRecordValue('predecessorsName', '', parentRecord.ganttProperties, true);
|
|
28837
28845
|
}
|
|
@@ -29073,14 +29081,15 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
|
|
|
29073
29081
|
}
|
|
29074
29082
|
var _loop_3 = function (i) {
|
|
29075
29083
|
var originalData = this_3.parent.modifiedRecords[i];
|
|
29076
|
-
var treeIndex = this_3.parent.allowRowDragAndDrop ? 1 : 0;
|
|
29084
|
+
var treeIndex = this_3.parent.rowDragAndDropModule && this_3.parent.allowRowDragAndDrop ? 1 : 0;
|
|
29077
29085
|
var uniqueTaskID = this_3.parent.taskFields.id;
|
|
29078
29086
|
var originalIndex = this_3.parent.currentViewData.findIndex(function (data) {
|
|
29079
29087
|
return (data[uniqueTaskID] === originalData[uniqueTaskID]);
|
|
29080
29088
|
});
|
|
29081
29089
|
if (this_3.parent.treeGrid.getRows()[originalIndex]) {
|
|
29090
|
+
var row = this_3.parent.treeGrid.grid.getRowObjectFromUID(this_3.parent.treeGrid.grid.getDataRows()[originalIndex].getAttribute('data-uid'));
|
|
29082
29091
|
this_3.parent.treeGrid.renderModule.cellRender({
|
|
29083
|
-
data:
|
|
29092
|
+
data: row.data, cell: this_3.parent.treeGrid.getRows()[originalIndex].cells[this_3.parent.treeColumnIndex + treeIndex],
|
|
29084
29093
|
column: this_3.parent.treeGrid.grid.getColumns()[this_3.parent.treeColumnIndex],
|
|
29085
29094
|
requestType: 'rowDragAndDrop'
|
|
29086
29095
|
});
|
|
@@ -38565,7 +38574,7 @@ var PdfGanttTaskbarCollection = /** @__PURE__ @class */ (function () {
|
|
|
38565
38574
|
progressFormat.alignment = PdfTextAlignment.Right;
|
|
38566
38575
|
var isLabelString = false;
|
|
38567
38576
|
var updatedWidth;
|
|
38568
|
-
if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-
|
|
38577
|
+
if (!isNullOrUndefined(this.taskLabel) && (/^[a-zA-Z0-9]/.test(this.taskLabel))) {
|
|
38569
38578
|
isLabelString = true;
|
|
38570
38579
|
progressFormat.alignment = PdfTextAlignment.Left;
|
|
38571
38580
|
}
|
|
@@ -39729,12 +39738,6 @@ var PdfTimeline = /** @__PURE__ @class */ (function () {
|
|
|
39729
39738
|
}
|
|
39730
39739
|
//Secondary header Event Arguments
|
|
39731
39740
|
/* eslint-disable-next-line */
|
|
39732
|
-
if (!this.parent.pdfExportModule.gantt.taskbar.isAutoFit() && this.parent.timelineModule.bottomTier !== "Day") {
|
|
39733
|
-
var unit = this.parent.perDayWidth;
|
|
39734
|
-
if (width < unit || (width > unit)) {
|
|
39735
|
-
width = unit;
|
|
39736
|
-
}
|
|
39737
|
-
}
|
|
39738
39741
|
this.triggerQueryTimelinecell(page, this.bottomTierPoint.x, this.bottomTierPoint.y, this.bottomTierHeight, width, secondHeader.value, false, secondHeader.startDate);
|
|
39739
39742
|
this.bottomTierPoint.x = (this.parent.pdfExportModule.gantt.taskbar.isAutoFit()) ? this.bottomTierPoint.x + width : this.bottomTierPoint.x + pixelToPoint(width);
|
|
39740
39743
|
remainWidth -= width;
|