@syncfusion/ej2-gantt 21.2.9 → 21.2.10
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 +17 -4
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +17 -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 +11 -11
- package/src/gantt/actions/edit.js +1 -0
- package/src/gantt/base/date-processor.js +9 -1
- package/src/gantt/base/task-processor.js +7 -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.10
|
|
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.9",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-eYEVlazMp41/EH/pIG4tAEC3I5c+p+OS6M1RBkLrtP/QzA1dFEfKGsWb3aQo1+6uz+STW+7V+KHaw11oBDBWmw==",
|
|
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.9.tgz",
|
|
27
|
+
"_shasum": "ad5e6b81969e9f038a739374cc73cf82832682ac",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~21.2.9",
|
|
39
|
-
"@syncfusion/ej2-buttons": "~21.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~21.2.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.2.10",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.10",
|
|
41
41
|
"@syncfusion/ej2-data": "~21.2.9",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~21.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~21.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.10",
|
|
43
|
+
"@syncfusion/ej2-grids": "~21.2.10",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~21.2.9",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~21.2.9",
|
|
46
46
|
"@syncfusion/ej2-lists": "~21.2.9",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~21.2.9",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~21.2.3",
|
|
49
|
-
"@syncfusion/ej2-popups": "~21.2.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~21.2.
|
|
49
|
+
"@syncfusion/ej2-popups": "~21.2.10",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~21.2.10",
|
|
51
51
|
"@syncfusion/ej2-treegrid": "~21.2.9"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
@@ -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.10",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -2744,6 +2744,7 @@ var Edit = /** @class */ (function () {
|
|
|
2744
2744
|
this.parent.treeGrid.parentData = [];
|
|
2745
2745
|
this.parent.addDeleteRecord = true;
|
|
2746
2746
|
this.parent.selectedRowIndex = 0;
|
|
2747
|
+
this.parent.treeGrid['isAddedFromGantt'] = true;
|
|
2747
2748
|
this.parent.treeGrid.refresh();
|
|
2748
2749
|
if (this.parent.enableImmutableMode) {
|
|
2749
2750
|
this.parent.modifiedRecords = args.modifiedRecords;
|
|
@@ -1362,7 +1362,15 @@ var DateProcessor = /** @class */ (function () {
|
|
|
1362
1362
|
var segment = segments[i];
|
|
1363
1363
|
var sDate = segment.startDate;
|
|
1364
1364
|
var eDate = segment.endDate;
|
|
1365
|
-
|
|
1365
|
+
if (this.parent.timelineModule.bottomTier === "Hour") {
|
|
1366
|
+
duration += Math.ceil(this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60));
|
|
1367
|
+
}
|
|
1368
|
+
else if (this.parent.timelineModule.bottomTier === "Minutes") {
|
|
1369
|
+
duration += Math.ceil(this.getTimeDifference(sDate, eDate) / (1000 * 60));
|
|
1370
|
+
}
|
|
1371
|
+
else {
|
|
1372
|
+
duration += Math.ceil(this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24));
|
|
1373
|
+
}
|
|
1366
1374
|
}
|
|
1367
1375
|
return duration;
|
|
1368
1376
|
};
|
|
@@ -1419,7 +1419,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1419
1419
|
var data_1 = [];
|
|
1420
1420
|
var _loop_4 = function (k) {
|
|
1421
1421
|
resourceData.filter(function (resourceInfo) {
|
|
1422
|
-
if (resourceInfo[resourceSettings.id] === preTaskResources[k][resourceSettings.id]) {
|
|
1422
|
+
if (resourceInfo[resourceSettings.id] === preTaskResources[k][resourceSettings.id] && data_1.indexOf(preTaskResources[k]) === -1) {
|
|
1423
1423
|
data_1.push(preTaskResources[k]);
|
|
1424
1424
|
}
|
|
1425
1425
|
});
|
|
@@ -1704,7 +1704,9 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1704
1704
|
if (resourceUnit !== 100) {
|
|
1705
1705
|
resName += '[' + resourceUnit + '%' + ']';
|
|
1706
1706
|
}
|
|
1707
|
-
|
|
1707
|
+
if (!isNullOrUndefined(resName)) {
|
|
1708
|
+
resourceName.push(resName);
|
|
1709
|
+
}
|
|
1708
1710
|
if (data.taskData) {
|
|
1709
1711
|
var mapping = taskMapping.resourceInfo;
|
|
1710
1712
|
// eslint-disable-next-line
|
|
@@ -2206,7 +2208,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2206
2208
|
if (!isNullOrUndefined(ganttRecord.segments) && ganttRecord.segments.length > 0) {
|
|
2207
2209
|
var segments = ganttRecord.segments;
|
|
2208
2210
|
var fixedWidth = true;
|
|
2209
|
-
var totalTaskWidth = this.splitTasksDuration(segments) * this.parent.perDayWidth;
|
|
2211
|
+
var totalTaskWidth = this.splitTasksDuration(segments) * ((this.parent.timelineModule.bottomTier === "Hour" || this.parent.timelineModule.bottomTier === "Minutes") ? this.parent.timelineSettings.timelineUnitSize : this.parent.perDayWidth);
|
|
2210
2212
|
var totalProgressWidth = this.parent.dataOperation.getProgressWidth(totalTaskWidth, ganttRecord.progress);
|
|
2211
2213
|
for (var i = 0; i < segments.length; i++) {
|
|
2212
2214
|
var segment = segments[i];
|
|
@@ -2254,6 +2256,8 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2254
2256
|
var ganttRecord = data.ganttProperties;
|
|
2255
2257
|
this.parent.setRecordValue('autoWidth', this.calculateWidth(data, true), ganttRecord, true);
|
|
2256
2258
|
this.parent.setRecordValue('autoLeft', this.calculateLeft(ganttRecord, true), ganttRecord, true);
|
|
2259
|
+
this.parent.setRecordValue('progressWidth', this.parent.dataOperation.getProgressWidth((ganttRecord.isAutoSchedule ||
|
|
2260
|
+
!data.hasChildRecords ? ganttRecord.width : ganttRecord.autoWidth), ganttRecord.progress), ganttRecord, true);
|
|
2257
2261
|
};
|
|
2258
2262
|
/**
|
|
2259
2263
|
* To calculate parent progress value
|