@syncfusion/ej2-gantt 24.2.4 → 24.2.6
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 +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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.6
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@24.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@24.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-LV2u4unQ+4SPXAAD+vRWowCxYnbQBTm3FMvNZx39ND/phnXf/SzFVT5ARWku3pPpwvxj4/9LhCOmMKwViYYNYQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-gantt",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-gantt",
|
|
24
24
|
"/@syncfusion/ej2-vue-gantt"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.2.5.tgz",
|
|
27
|
+
"_shasum": "29042207067b2db658b74a56b58e763baa69f347",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~24.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~24.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~24.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~24.2.5",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~24.2.5",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~24.2.5",
|
|
41
41
|
"@syncfusion/ej2-data": "~24.2.3",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~24.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~24.2.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~24.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~24.2.6",
|
|
43
|
+
"@syncfusion/ej2-grids": "~24.2.5",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~24.2.6",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~24.2.4",
|
|
46
46
|
"@syncfusion/ej2-lists": "~24.2.4",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~24.2.4",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~24.2.4",
|
|
49
|
-
"@syncfusion/ej2-popups": "~24.2.
|
|
49
|
+
"@syncfusion/ej2-popups": "~24.2.5",
|
|
50
50
|
"@syncfusion/ej2-richtexteditor": "~24.2.4",
|
|
51
51
|
"@syncfusion/ej2-svg-base": "~24.2.3",
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~24.2.
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~24.2.5"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -74,6 +74,6 @@
|
|
|
74
74
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
75
75
|
},
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.2.
|
|
77
|
+
"version": "24.2.6",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -658,10 +658,34 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
658
658
|
this.parent.editModule.updateEditedTask(args.editEventArgs);
|
|
659
659
|
}
|
|
660
660
|
else if (args.validateMode.preserveLinkWithEditing) {
|
|
661
|
+
var connectedTaskId_1;
|
|
661
662
|
if (this.parent.UpdateOffsetOnTaskbarEdit) {
|
|
662
663
|
this.calculateOffset(ganttRecord);
|
|
664
|
+
var taskId_1 = ganttRecord.ganttProperties.taskId;
|
|
665
|
+
ganttRecord.ganttProperties.predecessor.forEach(function (predecessor) {
|
|
666
|
+
if (taskId_1 == predecessor.from) {
|
|
667
|
+
connectedTaskId_1 = predecessor.to;
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
});
|
|
663
671
|
}
|
|
664
672
|
this.parent.editModule.updateEditedTask(args.editEventArgs);
|
|
673
|
+
this.processPredecessors(connectedTaskId_1);
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
ConnectorLineEdit.prototype.processPredecessors = function (parentId) {
|
|
677
|
+
var _this = this;
|
|
678
|
+
if (parentId) {
|
|
679
|
+
var record_1 = this.parent.getRecordByID(parentId);
|
|
680
|
+
this.calculateOffset(record_1);
|
|
681
|
+
if (record_1 && record_1.ganttProperties && record_1.ganttProperties.predecessor) {
|
|
682
|
+
var predecessors = record_1.ganttProperties.predecessor;
|
|
683
|
+
predecessors.forEach(function (predecessor) {
|
|
684
|
+
if (record_1.ganttProperties.taskId == predecessor.from) {
|
|
685
|
+
_this.processPredecessors(predecessor.to);
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}
|
|
665
689
|
}
|
|
666
690
|
};
|
|
667
691
|
ConnectorLineEdit.prototype.checkChildRecords = function (ganttRecord) {
|
|
@@ -2299,7 +2299,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2299
2299
|
var _this = this;
|
|
2300
2300
|
var ganttId = this.parent.element.id;
|
|
2301
2301
|
var ganttData = this.editedRecord;
|
|
2302
|
-
var divElement = this.
|
|
2302
|
+
var divElement = this.createDivElement('e-edit-form-column');
|
|
2303
2303
|
var inputElement;
|
|
2304
2304
|
var editArgs = { column: column, data: ganttData };
|
|
2305
2305
|
if (!isNullOrUndefined(column.edit) && isNullOrUndefined(column.edit.params)) {
|
|
@@ -1095,21 +1095,39 @@ var GanttChart = /** @class */ (function () {
|
|
|
1095
1095
|
var mouseUp = Browser.touchEndEvent;
|
|
1096
1096
|
var mouseMove = Browser.touchMoveEvent;
|
|
1097
1097
|
var cancel = isIE11Pointer ? 'pointerleave' : 'mouseleave';
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1098
|
+
if (!isNullOrUndefined(this.parent.chartRowsModule.ganttChartTableBody)) {
|
|
1099
|
+
EventHandler.remove(this.parent.chartRowsModule.ganttChartTableBody, mouseDown, this.ganttChartMouseDown);
|
|
1100
|
+
}
|
|
1101
|
+
if (!isNullOrUndefined(this.parent.chartPane)) {
|
|
1102
|
+
EventHandler.remove(this.parent.chartPane, cancel, this.ganttChartLeave);
|
|
1103
|
+
EventHandler.remove(this.parent.chartPane, mouseMove, this.ganttChartMove);
|
|
1104
|
+
}
|
|
1101
1105
|
if (this.parent.isAdaptive) {
|
|
1102
|
-
|
|
1103
|
-
|
|
1106
|
+
if (!isNullOrUndefined(this.parent.chartPane)) {
|
|
1107
|
+
EventHandler.remove(this.parent.chartPane, click, this.ganttChartMouseClick);
|
|
1108
|
+
EventHandler.remove(this.parent.chartPane, mouseUp, this.ganttChartMouseUp);
|
|
1109
|
+
}
|
|
1104
1110
|
}
|
|
1105
1111
|
if (!this.parent.isAdaptive) {
|
|
1106
|
-
|
|
1107
|
-
|
|
1112
|
+
if (!isNullOrUndefined(this.parent.element)) {
|
|
1113
|
+
EventHandler.remove(this.parent.element, mouseUp, this.documentMouseUp);
|
|
1114
|
+
}
|
|
1115
|
+
if (!isNullOrUndefined(document)) {
|
|
1116
|
+
EventHandler.remove(document, mouseUp, this.mouseUp);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
if (!isNullOrUndefined(this.parent.element)) {
|
|
1120
|
+
EventHandler.remove(this.parent.element, 'mousemove', this.mouseMoveHandler);
|
|
1121
|
+
}
|
|
1122
|
+
if (!isNullOrUndefined(document)) {
|
|
1123
|
+
EventHandler.remove(document, 'mouseup', this.contextClick);
|
|
1124
|
+
if (!isNullOrUndefined(document.body)) {
|
|
1125
|
+
EventHandler.remove(document.body, 'contextmenu', this.contextClick);
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
if (!isNullOrUndefined(this.parent.chartRowsModule.ganttChartTableBody)) {
|
|
1129
|
+
EventHandler.remove(this.parent.chartRowsModule.ganttChartTableBody, 'dblclick', this.doubleClickHandler);
|
|
1108
1130
|
}
|
|
1109
|
-
EventHandler.remove(this.parent.element, 'mousemove', this.mouseMoveHandler);
|
|
1110
|
-
EventHandler.remove(document.body, 'contextmenu', this.contextClick);
|
|
1111
|
-
EventHandler.remove(document, 'mouseup', this.contextClick);
|
|
1112
|
-
EventHandler.remove(this.parent.chartRowsModule.ganttChartTableBody, 'dblclick', this.doubleClickHandler);
|
|
1113
1131
|
};
|
|
1114
1132
|
/**
|
|
1115
1133
|
* To get record by taskbar element.
|
|
@@ -1598,8 +1616,10 @@ var GanttChart = /** @class */ (function () {
|
|
|
1598
1616
|
GanttChart.prototype.destroy = function () {
|
|
1599
1617
|
this.removeEventListener();
|
|
1600
1618
|
this.unWireEvents();
|
|
1601
|
-
this.scrollObject
|
|
1602
|
-
|
|
1619
|
+
if (!isNullOrUndefined(this.scrollObject)) {
|
|
1620
|
+
this.scrollObject.destroy();
|
|
1621
|
+
this.scrollObject = null;
|
|
1622
|
+
}
|
|
1603
1623
|
};
|
|
1604
1624
|
return GanttChart;
|
|
1605
1625
|
}());
|
|
@@ -96,6 +96,8 @@ var Timeline = /** @class */ (function () {
|
|
|
96
96
|
*/
|
|
97
97
|
Timeline.prototype.updateChartByNewTimeline = function () {
|
|
98
98
|
this.parent.chartRowsModule.refreshChartByTimeline();
|
|
99
|
+
var currentScrollLeft = this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0].scrollLeft;
|
|
100
|
+
this.parent.element.getElementsByClassName('e-timeline-header-container')[0].scrollLeft = currentScrollLeft;
|
|
99
101
|
this.parent.notify('refreshDayMarkers', {});
|
|
100
102
|
};
|
|
101
103
|
/**
|