@syncfusion/ej2-gantt 21.2.3 → 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 +25 -1
- 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 +37 -10
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +37 -10
- 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 -16
- package/src/gantt/actions/dependency.js +3 -0
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/edit.js +4 -1
- package/src/gantt/actions/taskbar-edit.js +3 -0
- package/src/gantt/base/gantt-chart.js +4 -1
- package/src/gantt/base/gantt.js +1 -1
- package/src/gantt/base/splitter.js +3 -0
- package/src/gantt/renderer/chart-rows.js +12 -2
- package/src/gantt/renderer/nonworking-day.js +1 -1
- package/src/gantt/renderer/timeline.js +5 -3
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.
|
|
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": {
|
|
@@ -18,10 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
-
"/@syncfusion/ej2"
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-gantt",
|
|
23
|
+
"/@syncfusion/ej2-react-gantt",
|
|
24
|
+
"/@syncfusion/ej2-vue-gantt"
|
|
22
25
|
],
|
|
23
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.
|
|
24
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-21.2.4.tgz",
|
|
27
|
+
"_shasum": "1edf51e09e915c385fc7866d281d8396584ccac4",
|
|
25
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
26
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
27
30
|
"author": {
|
|
@@ -33,19 +36,19 @@
|
|
|
33
36
|
"bundleDependencies": false,
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
36
|
-
"@syncfusion/ej2-buttons": "~21.2.
|
|
37
|
-
"@syncfusion/ej2-calendars": "~21.2.
|
|
38
|
-
"@syncfusion/ej2-data": "~21.2.
|
|
39
|
-
"@syncfusion/ej2-dropdowns": "~21.2.
|
|
40
|
-
"@syncfusion/ej2-grids": "~21.2.
|
|
41
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.2.5",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.5",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.2.4",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.5",
|
|
43
|
+
"@syncfusion/ej2-grids": "~21.2.5",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~21.2.4",
|
|
42
45
|
"@syncfusion/ej2-layouts": "~21.2.3",
|
|
43
46
|
"@syncfusion/ej2-lists": "~21.2.3",
|
|
44
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~21.2.5",
|
|
45
48
|
"@syncfusion/ej2-notifications": "~21.2.3",
|
|
46
|
-
"@syncfusion/ej2-popups": "~21.2.
|
|
47
|
-
"@syncfusion/ej2-richtexteditor": "~21.2.
|
|
48
|
-
"@syncfusion/ej2-treegrid": "~21.2.
|
|
49
|
+
"@syncfusion/ej2-popups": "~21.2.4",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~21.2.5",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~21.2.5"
|
|
49
52
|
},
|
|
50
53
|
"deprecated": false,
|
|
51
54
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -70,6 +73,6 @@
|
|
|
70
73
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
71
74
|
},
|
|
72
75
|
"typings": "index.d.ts",
|
|
73
|
-
"version": "21.2.
|
|
76
|
+
"version": "21.2.5",
|
|
74
77
|
"sideEffects": false
|
|
75
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);
|
|
@@ -2356,7 +2356,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2356
2356
|
var ganttObj = this.parent;
|
|
2357
2357
|
var rte = notesElement.ej2_instances[0];
|
|
2358
2358
|
if (this.isEdit) {
|
|
2359
|
-
if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode) {
|
|
2359
|
+
if (ganttObj.columnByField[ganttObj.taskFields.notes].disableHtmlEncode === false) {
|
|
2360
2360
|
this.parent.setRecordValue('notes', rte.getHtml(), this.rowData.ganttProperties, true);
|
|
2361
2361
|
}
|
|
2362
2362
|
else {
|
|
@@ -445,7 +445,7 @@ var Edit = /** @class */ (function () {
|
|
|
445
445
|
}
|
|
446
446
|
else if ([tasks.progress, tasks.notes, tasks.durationUnit, tasks.expandState,
|
|
447
447
|
tasks.milestone, tasks.name, tasks.baselineStartDate,
|
|
448
|
-
tasks.baselineEndDate, tasks.id, tasks.segments].indexOf(key) !== -1) {
|
|
448
|
+
tasks.baselineEndDate, tasks.id, tasks.segments, tasks.cssClass].indexOf(key) !== -1) {
|
|
449
449
|
var column = ganttObj.columnByField[key];
|
|
450
450
|
/* eslint-disable-next-line */
|
|
451
451
|
var value = data[key];
|
|
@@ -459,6 +459,9 @@ var Edit = /** @class */ (function () {
|
|
|
459
459
|
else if (key === tasks.name) {
|
|
460
460
|
ganttPropKey = 'taskName';
|
|
461
461
|
}
|
|
462
|
+
else if (key === tasks.cssClass) {
|
|
463
|
+
ganttPropKey = 'cssClass';
|
|
464
|
+
}
|
|
462
465
|
else if ((key === tasks.segments) && (!isNullOrUndefined(ganttData.ganttProperties.segments))) {
|
|
463
466
|
ganttPropKey = 'segments';
|
|
464
467
|
/* eslint-disable-next-line */
|
|
@@ -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
|
/**
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -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) {
|
|
@@ -229,7 +229,12 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
229
229
|
data.ganttProperties.segments.length === 0))) {
|
|
230
230
|
if (template !== '' && !isNullOrUndefined(progressDiv) && progressDiv.length > 0) {
|
|
231
231
|
var templateElement = this.createDivElement(template)[0];
|
|
232
|
-
|
|
232
|
+
if (this.parent.disableHtmlEncode) {
|
|
233
|
+
templateElement.innerText = labelString;
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
templateElement.innerHTML = labelString;
|
|
237
|
+
}
|
|
233
238
|
var childLabel = this.parent.labelSettings.taskLabel;
|
|
234
239
|
if (childLabel && childLabel['elementRef'])
|
|
235
240
|
templateElement.appendChild(tempDiv);
|
|
@@ -895,7 +900,12 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
895
900
|
this.taskBarHeight + 'px;"></span>';
|
|
896
901
|
}
|
|
897
902
|
var labelElement = this.createDivElement(labelDiv)[0];
|
|
898
|
-
|
|
903
|
+
if (this.parent.disableHtmlEncode) {
|
|
904
|
+
labelElement.innerText = labelString;
|
|
905
|
+
}
|
|
906
|
+
else {
|
|
907
|
+
labelElement.innerHTML = labelString;
|
|
908
|
+
}
|
|
899
909
|
var parentLabel = this.parent.labelSettings.taskLabel;
|
|
900
910
|
if (parentLabel && parentLabel['elementRef'])
|
|
901
911
|
labelElement.appendChild(div);
|
|
@@ -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.
|
|
@@ -225,7 +227,7 @@ var Timeline = /** @class */ (function () {
|
|
|
225
227
|
var secondValue;
|
|
226
228
|
var zoomingCollections = this.parent.zoomingLevels.slice();
|
|
227
229
|
var sortedCollectons = zoomingCollections.sort(function (a, b) {
|
|
228
|
-
return (a.perDayWidth < b.perDayWidth) ? 1 : -1;
|
|
230
|
+
return (!a.perDayWidth && !b.perDayWidth ? 0 : (a.perDayWidth < b.perDayWidth) ? 1 : -1);
|
|
229
231
|
});
|
|
230
232
|
if (perDayWidth === 0) { // return when the Gantt chart is not in viewable state.
|
|
231
233
|
return;
|
|
@@ -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++) {
|