@syncfusion/ej2-gantt 21.2.4 → 21.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 +12 -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 +18 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +18 -4
- 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/dependency.js +3 -0
- package/src/gantt/actions/taskbar-edit.js +3 -0
- package/src/gantt/base/gantt-chart.js +4 -1
- package/src/gantt/base/splitter.js +3 -0
- package/src/gantt/renderer/nonworking-day.js +1 -1
- package/src/gantt/renderer/timeline.js +4 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@21.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@21.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-4u8ou1sBx4KVoonAC5YQBQASDIEPgS0KLhRTdgQa269F6onJn0Jnza/9Du7NThQQ2P1nm1gcDN70jK+NFSzX2A==",
|
|
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.4.tgz",
|
|
27
|
+
"_shasum": "1edf51e09e915c385fc7866d281d8396584ccac4",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
39
|
-
"@syncfusion/ej2-buttons": "~21.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~21.2.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.2.5",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.5",
|
|
41
41
|
"@syncfusion/ej2-data": "~21.2.4",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~21.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~21.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.5",
|
|
43
|
+
"@syncfusion/ej2-grids": "~21.2.5",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~21.2.4",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~21.2.3",
|
|
46
46
|
"@syncfusion/ej2-lists": "~21.2.3",
|
|
47
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~21.2.5",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~21.2.3",
|
|
49
49
|
"@syncfusion/ej2-popups": "~21.2.4",
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~21.2.
|
|
51
|
-
"@syncfusion/ej2-treegrid": "~21.2.
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~21.2.5",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~21.2.5"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "21.2.
|
|
76
|
+
"version": "21.2.5",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -770,6 +770,9 @@ var Dependency = /** @class */ (function () {
|
|
|
770
770
|
if ((predecessorLength && predecessorNames !== predecessorLength)) {
|
|
771
771
|
validUpdate = true;
|
|
772
772
|
}
|
|
773
|
+
else if (record.hasChildRecords && record.ganttProperties.predecessor.length > 0 && ganttProp.hasChildRecords && !ganttProp.ganttProperties.predecessor) {
|
|
774
|
+
validUpdate = true;
|
|
775
|
+
}
|
|
773
776
|
if ((taskBarModule.taskBarEditAction !== 'ParentDrag' && taskBarModule.taskBarEditAction !== 'ChildDrag')) {
|
|
774
777
|
if (!ganttProp.hasChildRecords && record.hasChildRecords) {
|
|
775
778
|
this.parent.editModule['updateChildItems'](record);
|
|
@@ -1653,6 +1653,9 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
1653
1653
|
if ((this.taskBarEditAction === 'ConnectorPointLeftDrag' ||
|
|
1654
1654
|
this.taskBarEditAction === 'ConnectorPointRightDrag') && this.drawPredecessor) {
|
|
1655
1655
|
this.parent.connectorLineEditModule.updatePredecessor(this.connectorSecondRecord, this.finalPredecessor);
|
|
1656
|
+
if (this.parent.UpdateOffsetOnTaskbarEdit) {
|
|
1657
|
+
this.parent.connectorLineEditModule['calculateOffset'](this.connectorSecondRecord);
|
|
1658
|
+
}
|
|
1656
1659
|
}
|
|
1657
1660
|
else {
|
|
1658
1661
|
if (x1 !== x2 || (Math.abs(y1 - resMouseY) >= (this.parent.rowHeight - this.parent.taskbarHeight) / 2)) {
|
|
@@ -274,7 +274,10 @@ var GanttChart = /** @class */ (function () {
|
|
|
274
274
|
GanttChart.prototype.setVirtualHeight = function () {
|
|
275
275
|
if (this.parent.virtualScrollModule && this.parent.enableVirtualization) {
|
|
276
276
|
var wrapper = getValue('virtualTrack', this.parent.ganttChartModule.virtualRender);
|
|
277
|
-
wrapper.style.height = this.parent.
|
|
277
|
+
wrapper.style.height = this.parent.treeGrid.element.getElementsByClassName('e-virtualtable')[0].style.height;
|
|
278
|
+
var wrapper1 = getValue('wrapper', this.parent.ganttChartModule.virtualRender);
|
|
279
|
+
var treegridVirtualHeight = this.parent.treeGrid.element.getElementsByClassName('e-virtualtable')[0].style.transform;
|
|
280
|
+
wrapper1.style.transform = treegridVirtualHeight;
|
|
278
281
|
}
|
|
279
282
|
};
|
|
280
283
|
/**
|
|
@@ -63,6 +63,9 @@ var Splitter = /** @class */ (function () {
|
|
|
63
63
|
_this.parent.trigger('splitterResizing', args);
|
|
64
64
|
},
|
|
65
65
|
resizeStop: function (args) {
|
|
66
|
+
var leftPane = args.pane[0];
|
|
67
|
+
_this.splitterPreviousPositionGrid = leftPane.scrollWidth + 1 + 'px';
|
|
68
|
+
_this.splitterObject.paneSettings[0].size = _this.getSpliterPositionInPercentage(_this.splitterPreviousPositionGrid);
|
|
66
69
|
var callBackPromise = new Deferred();
|
|
67
70
|
_this.parent.trigger('splitterResized', args, function (splitterResizedArgs) {
|
|
68
71
|
if (splitterResizedArgs.cancel === true) {
|
|
@@ -168,7 +168,7 @@ var NonWorkingDay = /** @class */ (function () {
|
|
|
168
168
|
};
|
|
169
169
|
NonWorkingDay.prototype.updateHolidayLabelHeight = function () {
|
|
170
170
|
var height = this.parent.getContentHeight();
|
|
171
|
-
var gantttable =
|
|
171
|
+
var gantttable = this.parent.element;
|
|
172
172
|
// eslint-disable-next-line
|
|
173
173
|
var toolbarHeight = 0;
|
|
174
174
|
if (!isNullOrUndefined(this.parent.toolbarModule) && !isNullOrUndefined(this.parent.toolbarModule.element)) {
|
|
@@ -112,6 +112,7 @@ var Timeline = /** @class */ (function () {
|
|
|
112
112
|
if (isZoomIn) {
|
|
113
113
|
if (currentLevel === this.parent.zoomingLevels[this.parent.zoomingLevels.length - 1].level) {
|
|
114
114
|
this.parent.toolbarModule.enableItems([this.parent.controlId + '_zoomin'], false); // disable toolbar items.
|
|
115
|
+
this.parent.toolbarModule.enableItems([this.parent.controlId + '_zoomout'], true);
|
|
115
116
|
}
|
|
116
117
|
else {
|
|
117
118
|
this.parent.toolbarModule.enableItems([this.parent.controlId + '_zoomout'], true); // disable toolbar items.
|
|
@@ -120,6 +121,7 @@ var Timeline = /** @class */ (function () {
|
|
|
120
121
|
else {
|
|
121
122
|
if (currentLevel === this.parent.zoomingLevels[0].level) {
|
|
122
123
|
this.parent.toolbarModule.enableItems([this.parent.controlId + '_zoomout'], false); // disable toolbar items.
|
|
124
|
+
this.parent.toolbarModule.enableItems([this.parent.controlId + '_zoomin'], true);
|
|
123
125
|
}
|
|
124
126
|
else {
|
|
125
127
|
this.parent.toolbarModule.enableItems([this.parent.controlId + '_zoomin'], true); // enable toolbar items.
|
|
@@ -461,10 +463,10 @@ var Timeline = /** @class */ (function () {
|
|
|
461
463
|
}
|
|
462
464
|
var sortedUnitLevels = sameUnitLevels.sort(function (a, b) {
|
|
463
465
|
if (tier === "bottomTier") {
|
|
464
|
-
return (a.bottomTier.count < b.bottomTier.count) ? 1 : -1;
|
|
466
|
+
return (!a.bottomTier.count || !b.bottomTier.count) ? 0 : ((a.bottomTier.count < b.bottomTier.count) ? 1 : -1);
|
|
465
467
|
}
|
|
466
468
|
else {
|
|
467
|
-
return (a.topTier.count < b.topTier.count) ? 1 : -1;
|
|
469
|
+
return (!a.topTier.count || !b.topTier.count) ? 0 : ((a.topTier.count < b.topTier.count) ? 1 : -1);
|
|
468
470
|
}
|
|
469
471
|
});
|
|
470
472
|
for (var i = 0; i < sortedUnitLevels.length; i++) {
|