@syncfusion/ej2-gantt 21.2.5 → 21.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 +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 +10 -5
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +10 -5
- 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/edit.js +2 -3
- package/src/gantt/actions/keyboard.js +4 -1
- package/src/gantt/base/gantt.js +3 -0
- package/src/gantt/base/task-processor.js +1 -1
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.6
|
|
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.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Yj+8L8AXoLeax0gB6GzVFM6gKA9Q+GiMDUU5zgJXXjqk6+q9Hv8UIkoW88CMaUFPVBvraFYCAYIpgMI+HVpExA==",
|
|
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.5.tgz",
|
|
27
|
+
"_shasum": "f89352a1c3fbb06b4753edafbb713f74a01ac912",
|
|
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.
|
|
41
|
-
"@syncfusion/ej2-data": "~21.2.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~21.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~21.2.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~21.2.
|
|
46
|
-
"@syncfusion/ej2-lists": "~21.2.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.2.6",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~21.2.6",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.2.6",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.2.6",
|
|
43
|
+
"@syncfusion/ej2-grids": "~21.2.6",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~21.2.6",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~21.2.6",
|
|
46
|
+
"@syncfusion/ej2-lists": "~21.2.6",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~21.2.6",
|
|
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.6",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~21.2.6"
|
|
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.6",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -671,9 +671,8 @@ var Edit = /** @class */ (function () {
|
|
|
671
671
|
(isNullOrUndefined(taskData.startDate) && !isNullOrUndefined(prevStart)) ||
|
|
672
672
|
(isNullOrUndefined(taskData.endDate) && !isNullOrUndefined(prevEnd)) ||
|
|
673
673
|
(prevStart && prevStart.getTime() !== taskData.startDate.getTime())
|
|
674
|
-
|
|
675
|
-
|| (!isNullOrUndefined(prevDuration) && prevDuration !== taskData.duration
|
|
676
|
-
|| (!isNullOrUndefined(prevDuration) && prevDuration === taskData.duration &&
|
|
674
|
+
&& (prevEnd && prevEnd.getTime() !== taskData.endDate.getTime())
|
|
675
|
+
|| (!isNullOrUndefined(prevDuration) && prevDuration !== taskData.duration &&
|
|
677
676
|
prevDurationUnit !== taskData.durationUnit)) {
|
|
678
677
|
isMoved = true;
|
|
679
678
|
}
|
|
@@ -139,7 +139,10 @@ var FocusModule = /** @class */ (function () {
|
|
|
139
139
|
break;
|
|
140
140
|
case 'addRow':
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
142
|
+
if (ganttObj.editModule && ganttObj.editModule.cellEditModule && ganttObj.editModule.cellEditModule.isCellEdit) {
|
|
143
|
+
e.stopPropagation();
|
|
144
|
+
}
|
|
145
|
+
else if (isNullOrUndefined(document.getElementById(this.parent.element.id + '_dialog'))) {
|
|
143
146
|
e.preventDefault();
|
|
144
147
|
ganttObj.addRecord(undefined, this.parent.editSettings.newRowPosition);
|
|
145
148
|
var focussedElement = ganttObj.element;
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -401,6 +401,9 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
401
401
|
var ganttHeader = this.chartPane.childNodes[0].childNodes[0];
|
|
402
402
|
this.scrollLeftValue = this.chartPane.childNodes[0].childNodes[0]['scrollLeft'];
|
|
403
403
|
var ganttContent = this.chartPane.childNodes[0].childNodes[1];
|
|
404
|
+
if (this.treeGrid.element) {
|
|
405
|
+
this.ganttChartModule['setVirtualHeight']();
|
|
406
|
+
}
|
|
404
407
|
if (!this.contentMaskTable) {
|
|
405
408
|
if (ganttContent) {
|
|
406
409
|
var content = ganttContent;
|
|
@@ -172,7 +172,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
172
172
|
TaskProcessor.prototype.constructResourceViewDataSource = function (resources, data, unassignedTasks) {
|
|
173
173
|
var _loop_1 = function (i) {
|
|
174
174
|
var tempData = data[i];
|
|
175
|
-
var child = this_1.parent.taskFields.child != null ? this_1.parent.taskFields.child : 'Children';
|
|
175
|
+
var child = this_1.parent.taskFields.child != null ? this_1.parent.taskFields.child : this_1.parent.taskFields.child = 'Children';
|
|
176
176
|
var resourceData = tempData && tempData[this_1.parent.taskFields.resourceInfo];
|
|
177
177
|
var resourceIdMapping = this_1.parent.resourceFields.id;
|
|
178
178
|
if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
|