@syncfusion/ej2-gantt 22.2.8 → 22.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 +14 -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 +19 -11
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +19 -11
- 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 +16 -16
- package/src/gantt/actions/context-menu.js +1 -1
- package/src/gantt/actions/dependency.js +1 -1
- package/src/gantt/base/gantt.js +3 -3
- package/src/gantt/base/task-processor.js +5 -4
- package/src/gantt/renderer/chart-rows.js +1 -1
- package/src/gantt/renderer/timeline.js +8 -1
- package/styles/bootstrap-dark.css +1 -1
- package/styles/bootstrap.css +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/gantt/_layout.scss +1 -1
- package/styles/gantt/bootstrap-dark.css +1 -1
- package/styles/gantt/bootstrap.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap5-dark.css +1 -1
- package/styles/gantt/bootstrap5.css +1 -1
- package/styles/gantt/fabric-dark.css +1 -1
- package/styles/gantt/fabric.css +1 -1
- package/styles/gantt/fluent-dark.css +1 -1
- package/styles/gantt/fluent.css +1 -1
- package/styles/gantt/highcontrast-light.css +1 -1
- package/styles/gantt/highcontrast.css +1 -1
- package/styles/gantt/material-dark.css +1 -1
- package/styles/gantt/material.css +1 -1
- package/styles/gantt/material3-dark.css +1 -1
- package/styles/gantt/material3.css +1 -1
- package/styles/gantt/tailwind-dark.css +1 -1
- package/styles/gantt/tailwind.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +1 -1
- package/styles/tailwind.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
3
|
+
* version : 22.2.9
|
|
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@22.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@22.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-UTHsxz5sv2/7KScjT2IhII+IVw91jejNdGwxmktM3GbTDYh89N27rpHiw6G0P6qReyrWJpteJlMQVmtt2T7iZQ==",
|
|
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-22.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-22.2.8.tgz",
|
|
27
|
+
"_shasum": "4bdb30759d7aef5c6f457046cc7fc9bbe41b42c0",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~22.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~22.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~22.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~22.2.9",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~22.2.9",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~22.2.9",
|
|
41
41
|
"@syncfusion/ej2-data": "~22.2.5",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~22.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~22.2.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~22.2.
|
|
46
|
-
"@syncfusion/ej2-lists": "~22.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~22.2.9",
|
|
43
|
+
"@syncfusion/ej2-grids": "~22.2.9",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~22.2.9",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~22.2.9",
|
|
46
|
+
"@syncfusion/ej2-lists": "~22.2.9",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~22.2.8",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~22.2.5",
|
|
49
|
-
"@syncfusion/ej2-popups": "~22.2.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~22.2.
|
|
49
|
+
"@syncfusion/ej2-popups": "~22.2.9",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~22.2.9",
|
|
51
51
|
"@syncfusion/ej2-svg-base": "~22.2.8",
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~22.2.
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~22.2.9"
|
|
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": "22.2.
|
|
77
|
+
"version": "22.2.9",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -311,7 +311,7 @@ var ContextMenu = /** @class */ (function () {
|
|
|
311
311
|
this.parent.ganttChartModule.targetElement;
|
|
312
312
|
// Closed edited cell before opening context menu
|
|
313
313
|
// eslint-disable-next-line
|
|
314
|
-
if (!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) {
|
|
314
|
+
if ((!isNullOrUndefined(this.parent.editModule) && this.parent.editModule.cellEditModule && this.parent.editModule.cellEditModule.isCellEdit && target.parentElement.classList.contains('e-row')) || target.parentElement.classList.contains('e-treecolumn-container')) {
|
|
315
315
|
this.parent.treeGrid.closeEdit();
|
|
316
316
|
}
|
|
317
317
|
if (!isNullOrUndefined(args.element) && args.element.id === this.parent.element.id + '_contextmenu') {
|
|
@@ -330,7 +330,7 @@ var Dependency = /** @class */ (function () {
|
|
|
330
330
|
ganttRecord = predecessorsCollection[count];
|
|
331
331
|
if ((!ganttRecord.hasChildRecords && !this.parent.allowParentDependency) || this.parent.allowParentDependency) {
|
|
332
332
|
this.updatePredecessorHelper(ganttRecord, predecessorsCollection);
|
|
333
|
-
if (!ganttRecord.ganttProperties.isAutoSchedule) {
|
|
333
|
+
if (!ganttRecord.ganttProperties.isAutoSchedule && this.parent.editSettings.allowEditing) {
|
|
334
334
|
this.parent.connectorLineEditModule['calculateOffset'](ganttRecord);
|
|
335
335
|
}
|
|
336
336
|
}
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -221,14 +221,14 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
221
221
|
};
|
|
222
222
|
this.focusModule = new FocusModule(this);
|
|
223
223
|
if (this.zoomingLevels.length === 0) {
|
|
224
|
-
this.zoomingLevels
|
|
224
|
+
this.setProperties({ zoomingLevels: this.getZoomingLevels() }, true);
|
|
225
225
|
}
|
|
226
226
|
this.resourceFieldsMapping();
|
|
227
227
|
if (isNullOrUndefined(this.resourceFields.unit)) { //set resourceUnit as unit if not mapping
|
|
228
|
-
this.resourceFields
|
|
228
|
+
this.setProperties({ resourceFields: { unit: 'unit' } }, true);
|
|
229
229
|
}
|
|
230
230
|
if (!isNullOrUndefined(this.taskFields.work)) {
|
|
231
|
-
this.taskType
|
|
231
|
+
this.setProperties({ taskType: 'FixedWork' }, true);
|
|
232
232
|
}
|
|
233
233
|
this.taskIds = [];
|
|
234
234
|
};
|
|
@@ -132,7 +132,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
if (!this.parent.taskFields.child) {
|
|
135
|
-
this.parent.taskFields
|
|
135
|
+
this.parent.setProperties({ taskFields: { child: 'Children' } }, true);
|
|
136
136
|
}
|
|
137
137
|
this.constructDataSource(data);
|
|
138
138
|
hierarchicalData = this.hierarchyData;
|
|
@@ -580,6 +580,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
580
580
|
segment.endDate = !taskSettings.duration && taskSettings.endDate
|
|
581
581
|
&& segment.endDate > data.ganttProperties.endDate ? data.ganttProperties.endDate : segment.endDate;
|
|
582
582
|
segment.offsetDuration = 1;
|
|
583
|
+
segment.duration = this.getDuration(segment.startDate, segment.endDate, data.ganttProperties.durationUnit, data.ganttProperties.isAutoSchedule, data.ganttProperties.isMilestone);
|
|
583
584
|
}
|
|
584
585
|
}
|
|
585
586
|
else {
|
|
@@ -1188,17 +1189,17 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1188
1189
|
var isValid = false;
|
|
1189
1190
|
var modifiedsDate = new Date(startDate.getTime());
|
|
1190
1191
|
var hour = 0;
|
|
1191
|
-
if (ganttData && ganttData.durationUnit == 'hour') {
|
|
1192
|
+
if (!isNullOrUndefined(ganttData) && ganttData.durationUnit == 'hour') {
|
|
1192
1193
|
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 60 * 1000);
|
|
1193
1194
|
}
|
|
1194
|
-
if (ganttData && ganttData.durationUnit == 'minute') {
|
|
1195
|
+
if (!isNullOrUndefined(ganttData) && (ganttData.durationUnit == 'minute') || !isNullOrUndefined(ganttData) && ganttData.durationUnit == "day" && ganttData.duration < 1) {
|
|
1195
1196
|
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 1000);
|
|
1196
1197
|
}
|
|
1197
1198
|
for (var i = 0; i < this.parent.dayWorkingTime.length; i++) {
|
|
1198
1199
|
hour = hour + this.parent.dayWorkingTime[i].to - this.parent.dayWorkingTime[i].from;
|
|
1199
1200
|
}
|
|
1200
1201
|
var dateDiff = modifiedsDate.getTime() - sDate.getTime();
|
|
1201
|
-
if (ganttData && ganttData.durationUnit == 'minute' && ganttData.duration < (hour * 60)) {
|
|
1202
|
+
if (!isNullOrUndefined(ganttData) && (ganttData.durationUnit == 'minute' && ganttData.duration < (hour * 60)) || !isNullOrUndefined(ganttData) && ganttData.durationUnit == "day" && ganttData.duration < 1) {
|
|
1202
1203
|
if (tierMode === 'Day') {
|
|
1203
1204
|
if ((Math.floor((dateDiff / (1000 * 60 * 60)) % 24) >= hour || dateDiff === 0)) {
|
|
1204
1205
|
isValid = true;
|
|
@@ -1187,7 +1187,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1187
1187
|
width = endLeft - left;
|
|
1188
1188
|
}
|
|
1189
1189
|
else {
|
|
1190
|
-
left = ganttProp.left < ganttProp.autoLeft ? ganttProp.
|
|
1190
|
+
left = ganttProp.left < ganttProp.autoLeft ? ganttProp.autoLeft : ganttProp.left;
|
|
1191
1191
|
width = ganttProp.autoWidth;
|
|
1192
1192
|
}
|
|
1193
1193
|
return left + width;
|
|
@@ -648,6 +648,13 @@ var Timeline = /** @class */ (function () {
|
|
|
648
648
|
tier = 'bottomTier';
|
|
649
649
|
tr = null;
|
|
650
650
|
}
|
|
651
|
+
if (this.parent.height === "Auto" || this.parent.timelineModule.isSingleTier) {
|
|
652
|
+
var timelineContainer = this.parent.element.getElementsByClassName('e-timeline-header-container')[0]['offsetHeight'];
|
|
653
|
+
this.parent.element.getElementsByClassName('e-chart-scroll-container e-content')[0]['style'].height = 'calc(100% - ' + timelineContainer + 'px)';
|
|
654
|
+
if (!isNullOrUndefined(this.parent.element.getElementsByClassName('e-gridcontent')[0])) {
|
|
655
|
+
this.parent.treeGrid.element.getElementsByClassName('e-gridcontent')[0]['style'].height = 'calc(100% - ' + timelineContainer + 'px)';
|
|
656
|
+
}
|
|
657
|
+
}
|
|
651
658
|
};
|
|
652
659
|
/**
|
|
653
660
|
* To validate timeline tier count.
|
|
@@ -1145,7 +1152,7 @@ var Timeline = /** @class */ (function () {
|
|
|
1145
1152
|
// PDf export collection
|
|
1146
1153
|
timelineCell.value = value;
|
|
1147
1154
|
timelineCell.isWeekend = isWeekendCell;
|
|
1148
|
-
timelineCell.width =
|
|
1155
|
+
timelineCell.width = thWidth;
|
|
1149
1156
|
return parentTr;
|
|
1150
1157
|
};
|
|
1151
1158
|
/**
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/gantt/fabric.css
CHANGED
package/styles/gantt/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
package/styles/tailwind.css
CHANGED