@syncfusion/ej2-gantt 24.2.4 → 24.2.5
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 +11 -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 +59 -14
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +60 -14
- 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 +13 -13
- package/src/gantt/actions/connector-line-edit.d.ts +1 -0
- package/src/gantt/actions/connector-line-edit.js +24 -0
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/base/gantt-chart.js +33 -13
- package/src/gantt/renderer/timeline.js +2 -0
|
@@ -5738,21 +5738,39 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
5738
5738
|
var mouseUp = Browser.touchEndEvent;
|
|
5739
5739
|
var mouseMove = Browser.touchMoveEvent;
|
|
5740
5740
|
var cancel = isIE11Pointer ? 'pointerleave' : 'mouseleave';
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5741
|
+
if (!isNullOrUndefined(this.parent.chartRowsModule.ganttChartTableBody)) {
|
|
5742
|
+
EventHandler.remove(this.parent.chartRowsModule.ganttChartTableBody, mouseDown, this.ganttChartMouseDown);
|
|
5743
|
+
}
|
|
5744
|
+
if (!isNullOrUndefined(this.parent.chartPane)) {
|
|
5745
|
+
EventHandler.remove(this.parent.chartPane, cancel, this.ganttChartLeave);
|
|
5746
|
+
EventHandler.remove(this.parent.chartPane, mouseMove, this.ganttChartMove);
|
|
5747
|
+
}
|
|
5744
5748
|
if (this.parent.isAdaptive) {
|
|
5745
|
-
|
|
5746
|
-
|
|
5749
|
+
if (!isNullOrUndefined(this.parent.chartPane)) {
|
|
5750
|
+
EventHandler.remove(this.parent.chartPane, click, this.ganttChartMouseClick);
|
|
5751
|
+
EventHandler.remove(this.parent.chartPane, mouseUp, this.ganttChartMouseUp);
|
|
5752
|
+
}
|
|
5747
5753
|
}
|
|
5748
5754
|
if (!this.parent.isAdaptive) {
|
|
5749
|
-
|
|
5750
|
-
|
|
5755
|
+
if (!isNullOrUndefined(this.parent.element)) {
|
|
5756
|
+
EventHandler.remove(this.parent.element, mouseUp, this.documentMouseUp);
|
|
5757
|
+
}
|
|
5758
|
+
if (!isNullOrUndefined(document)) {
|
|
5759
|
+
EventHandler.remove(document, mouseUp, this.mouseUp);
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
if (!isNullOrUndefined(this.parent.element)) {
|
|
5763
|
+
EventHandler.remove(this.parent.element, 'mousemove', this.mouseMoveHandler);
|
|
5764
|
+
}
|
|
5765
|
+
if (!isNullOrUndefined(document)) {
|
|
5766
|
+
EventHandler.remove(document, 'mouseup', this.contextClick);
|
|
5767
|
+
if (!isNullOrUndefined(document.body)) {
|
|
5768
|
+
EventHandler.remove(document.body, 'contextmenu', this.contextClick);
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
if (!isNullOrUndefined(this.parent.chartRowsModule.ganttChartTableBody)) {
|
|
5772
|
+
EventHandler.remove(this.parent.chartRowsModule.ganttChartTableBody, 'dblclick', this.doubleClickHandler);
|
|
5751
5773
|
}
|
|
5752
|
-
EventHandler.remove(this.parent.element, 'mousemove', this.mouseMoveHandler);
|
|
5753
|
-
EventHandler.remove(document.body, 'contextmenu', this.contextClick);
|
|
5754
|
-
EventHandler.remove(document, 'mouseup', this.contextClick);
|
|
5755
|
-
EventHandler.remove(this.parent.chartRowsModule.ganttChartTableBody, 'dblclick', this.doubleClickHandler);
|
|
5756
5774
|
};
|
|
5757
5775
|
/**
|
|
5758
5776
|
* To get record by taskbar element.
|
|
@@ -6241,8 +6259,10 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
6241
6259
|
GanttChart.prototype.destroy = function () {
|
|
6242
6260
|
this.removeEventListener();
|
|
6243
6261
|
this.unWireEvents();
|
|
6244
|
-
this.scrollObject
|
|
6245
|
-
|
|
6262
|
+
if (!isNullOrUndefined(this.scrollObject)) {
|
|
6263
|
+
this.scrollObject.destroy();
|
|
6264
|
+
this.scrollObject = null;
|
|
6265
|
+
}
|
|
6246
6266
|
};
|
|
6247
6267
|
return GanttChart;
|
|
6248
6268
|
}());
|
|
@@ -6342,6 +6362,8 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6342
6362
|
*/
|
|
6343
6363
|
Timeline.prototype.updateChartByNewTimeline = function () {
|
|
6344
6364
|
this.parent.chartRowsModule.refreshChartByTimeline();
|
|
6365
|
+
var currentScrollLeft = this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0].scrollLeft;
|
|
6366
|
+
this.parent.element.getElementsByClassName('e-timeline-header-container')[0].scrollLeft = currentScrollLeft;
|
|
6345
6367
|
this.parent.notify('refreshDayMarkers', {});
|
|
6346
6368
|
};
|
|
6347
6369
|
/**
|
|
@@ -24533,7 +24555,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
|
|
|
24533
24555
|
var _this = this;
|
|
24534
24556
|
var ganttId = this.parent.element.id;
|
|
24535
24557
|
var ganttData = this.editedRecord;
|
|
24536
|
-
var divElement = this.
|
|
24558
|
+
var divElement = this.createDivElement('e-edit-form-column');
|
|
24537
24559
|
var inputElement;
|
|
24538
24560
|
var editArgs = { column: column, data: ganttData };
|
|
24539
24561
|
if (!isNullOrUndefined(column.edit) && isNullOrUndefined(column.edit.params)) {
|
|
@@ -25689,10 +25711,34 @@ var ConnectorLineEdit = /** @__PURE__ @class */ (function () {
|
|
|
25689
25711
|
this.parent.editModule.updateEditedTask(args.editEventArgs);
|
|
25690
25712
|
}
|
|
25691
25713
|
else if (args.validateMode.preserveLinkWithEditing) {
|
|
25714
|
+
var connectedTaskId_1;
|
|
25692
25715
|
if (this.parent.UpdateOffsetOnTaskbarEdit) {
|
|
25693
25716
|
this.calculateOffset(ganttRecord);
|
|
25717
|
+
var taskId_1 = ganttRecord.ganttProperties.taskId;
|
|
25718
|
+
ganttRecord.ganttProperties.predecessor.forEach(function (predecessor) {
|
|
25719
|
+
if (taskId_1 == predecessor.from) {
|
|
25720
|
+
connectedTaskId_1 = predecessor.to;
|
|
25721
|
+
return;
|
|
25722
|
+
}
|
|
25723
|
+
});
|
|
25694
25724
|
}
|
|
25695
25725
|
this.parent.editModule.updateEditedTask(args.editEventArgs);
|
|
25726
|
+
this.processPredecessors(connectedTaskId_1);
|
|
25727
|
+
}
|
|
25728
|
+
};
|
|
25729
|
+
ConnectorLineEdit.prototype.processPredecessors = function (parentId) {
|
|
25730
|
+
var _this = this;
|
|
25731
|
+
if (parentId) {
|
|
25732
|
+
var record_1 = this.parent.getRecordByID(parentId);
|
|
25733
|
+
this.calculateOffset(record_1);
|
|
25734
|
+
if (record_1 && record_1.ganttProperties && record_1.ganttProperties.predecessor) {
|
|
25735
|
+
var predecessors = record_1.ganttProperties.predecessor;
|
|
25736
|
+
predecessors.forEach(function (predecessor) {
|
|
25737
|
+
if (record_1.ganttProperties.taskId == predecessor.from) {
|
|
25738
|
+
_this.processPredecessors(predecessor.to);
|
|
25739
|
+
}
|
|
25740
|
+
});
|
|
25741
|
+
}
|
|
25696
25742
|
}
|
|
25697
25743
|
};
|
|
25698
25744
|
ConnectorLineEdit.prototype.checkChildRecords = function (ganttRecord) {
|