@syncfusion/ej2-gantt 22.1.39 → 22.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 +24 -5
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +25 -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 +20 -20
- package/src/gantt/actions/context-menu.js +1 -1
- package/src/gantt/actions/edit.js +1 -0
- package/src/gantt/actions/filter.d.ts +1 -1
- package/src/gantt/actions/filter.js +1 -1
- package/src/gantt/actions/keyboard.js +0 -1
- package/src/gantt/actions/selection.js +4 -0
- package/src/gantt/base/gantt-chart.js +4 -0
- package/src/gantt/base/gantt.d.ts +1 -0
- package/src/gantt/base/gantt.js +3 -0
- package/src/gantt/base/tree-grid.d.ts +1 -0
- package/src/gantt/base/tree-grid.js +10 -1
- package/src/gantt/renderer/chart-rows.js +1 -1
- package/styles/bootstrap-dark.css +0 -1
- package/styles/bootstrap.css +0 -1
- package/styles/bootstrap4.css +0 -1
- package/styles/bootstrap5-dark.css +0 -1
- package/styles/bootstrap5.css +0 -1
- package/styles/fabric-dark.css +0 -1
- package/styles/fabric.css +0 -1
- package/styles/fluent-dark.css +0 -1
- package/styles/fluent.css +0 -1
- package/styles/gantt/_theme.scss +0 -1
- package/styles/gantt/bootstrap-dark.css +0 -1
- package/styles/gantt/bootstrap.css +0 -1
- package/styles/gantt/bootstrap4.css +0 -1
- package/styles/gantt/bootstrap5-dark.css +0 -1
- package/styles/gantt/bootstrap5.css +0 -1
- package/styles/gantt/fabric-dark.css +0 -1
- package/styles/gantt/fabric.css +0 -1
- package/styles/gantt/fluent-dark.css +0 -1
- package/styles/gantt/fluent.css +0 -1
- package/styles/gantt/highcontrast-light.css +0 -1
- package/styles/gantt/highcontrast.css +0 -1
- package/styles/gantt/material-dark.css +0 -1
- package/styles/gantt/material.css +0 -1
- package/styles/gantt/material3-dark.css +0 -1
- package/styles/gantt/material3.css +0 -1
- package/styles/gantt/tailwind-dark.css +0 -1
- package/styles/gantt/tailwind.css +0 -1
- package/styles/highcontrast-light.css +0 -1
- package/styles/highcontrast.css +0 -1
- package/styles/material-dark.css +0 -1
- package/styles/material.css +0 -1
- package/styles/material3-dark.css +0 -1
- package/styles/material3.css +0 -1
- package/styles/tailwind-dark.css +0 -1
- package/styles/tailwind.css +0 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.
|
|
3
|
+
* version : 22.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@22.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@22.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-BaZToryAhXozcJBwqEyD9K9htNmV3PTYvCDPk8h1v/Je1zOdHHgWDK7J4fjBZpHPvXhDV5oVqMFRSEzanRuGaw==",
|
|
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.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-22.1.39.tgz",
|
|
27
|
+
"_shasum": "5c1001858679a9709c098c4d2f36870ac74bbe52",
|
|
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.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~22.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~22.
|
|
41
|
-
"@syncfusion/ej2-data": "~22.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~22.
|
|
43
|
-
"@syncfusion/ej2-grids": "~22.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~22.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~22.
|
|
46
|
-
"@syncfusion/ej2-lists": "~22.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~22.
|
|
48
|
-
"@syncfusion/ej2-notifications": "~22.
|
|
49
|
-
"@syncfusion/ej2-popups": "~22.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~22.
|
|
51
|
-
"@syncfusion/ej2-svg-base": "~22.
|
|
52
|
-
"@syncfusion/ej2-treegrid": "~22.
|
|
38
|
+
"@syncfusion/ej2-base": "~22.2.5",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~22.2.5",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~22.2.5",
|
|
41
|
+
"@syncfusion/ej2-data": "~22.2.5",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~22.2.5",
|
|
43
|
+
"@syncfusion/ej2-grids": "~22.2.5",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~22.2.5",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~22.2.5",
|
|
46
|
+
"@syncfusion/ej2-lists": "~22.2.5",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~22.2.5",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~22.2.5",
|
|
49
|
+
"@syncfusion/ej2-popups": "~22.2.5",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~22.2.5",
|
|
51
|
+
"@syncfusion/ej2-svg-base": "~22.2.5",
|
|
52
|
+
"@syncfusion/ej2-treegrid": "~22.2.5"
|
|
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.
|
|
77
|
+
"version": "22.2.5",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -102,7 +102,7 @@ var ContextMenu = /** @class */ (function () {
|
|
|
102
102
|
switch (this.item) {
|
|
103
103
|
case 'TaskInformation':
|
|
104
104
|
if (!isNullOrUndefined(this.rowData)) {
|
|
105
|
-
if (
|
|
105
|
+
if (typeof this.rowData.ganttProperties.taskId == "string") {
|
|
106
106
|
this.parent.openEditDialog(this.rowData.ganttProperties.rowUniqueID);
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
@@ -43,7 +43,7 @@ export declare class Filter {
|
|
|
43
43
|
private updateFilterMenuPosition;
|
|
44
44
|
private removeEventListener;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* This method is used to destroy the filter module. When called, it performs any necessary cleanup operations related to the filter module.
|
|
47
47
|
*
|
|
48
48
|
* @returns {void} .
|
|
49
49
|
*/
|
|
@@ -358,7 +358,7 @@ var Filter = /** @class */ (function () {
|
|
|
358
358
|
this.parent.off('columnMenuOpen', this.columnMenuOpen);
|
|
359
359
|
};
|
|
360
360
|
/**
|
|
361
|
-
*
|
|
361
|
+
* This method is used to destroy the filter module. When called, it performs any necessary cleanup operations related to the filter module.
|
|
362
362
|
*
|
|
363
363
|
* @returns {void} .
|
|
364
364
|
*/
|
|
@@ -114,7 +114,6 @@ var FocusModule = /** @class */ (function () {
|
|
|
114
114
|
if (ganttObj.editModule.dialogModule.dialogObj && getValue('dialogOpen', ganttObj.editModule.dialogModule.dialogObj)) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
|
-
ganttObj.editModule.cellEditModule.isCellEdit = false;
|
|
118
117
|
ganttObj.treeGrid.grid.saveCell();
|
|
119
118
|
var focussedElement = ganttObj.element.querySelector('.e-treegrid');
|
|
120
119
|
focussedElement.focus();
|
|
@@ -202,6 +202,10 @@ var Selection = /** @class */ (function () {
|
|
|
202
202
|
Selection.prototype.selectRow = function (index, isToggle, isPreventFocus) {
|
|
203
203
|
var ganttRow = [].slice.call(this.parent.ganttChartModule.chartBodyContent.querySelector('tbody').children);
|
|
204
204
|
// eslint-disable-next-line
|
|
205
|
+
if (this.parent.enableVirtualization && this.parent.treeGridModule.addedRecord) {
|
|
206
|
+
index = this.parent.flatData.indexOf(this.parent.currentViewData[index]);
|
|
207
|
+
this.parent.treeGridModule.addedRecord = false;
|
|
208
|
+
}
|
|
205
209
|
var selectedRow = ganttRow.filter(function (e) { return parseInt(e.getAttribute('aria-rowindex'), 0) === index; })[0];
|
|
206
210
|
var condition;
|
|
207
211
|
if (index === -1 || isNullOrUndefined(selectedRow) || this.parent.selectionSettings.mode === 'Cell') {
|
|
@@ -402,6 +402,10 @@ var GanttChart = /** @class */ (function () {
|
|
|
402
402
|
if (!isNullOrUndefined(this.parent.editModule) && !isNullOrUndefined(this.parent.editModule.taskbarEditModule)) {
|
|
403
403
|
this.parent.editModule.taskbarEditModule.removeFalseLine(false);
|
|
404
404
|
}
|
|
405
|
+
var resizeCheck = this.parent.element.querySelector(".e-taskbar-resize-div");
|
|
406
|
+
if (!isNullOrUndefined(resizeCheck)) {
|
|
407
|
+
resizeCheck.remove();
|
|
408
|
+
}
|
|
405
409
|
if (this.parent.allowRowDragAndDrop) {
|
|
406
410
|
var ganttDragElemet = this.parent.element.querySelector('.e-ganttdrag');
|
|
407
411
|
if (ganttDragElemet) {
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -2617,6 +2617,9 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
else {
|
|
2619
2619
|
this.editModule.addRecord(data, rowPosition, rowIndex);
|
|
2620
|
+
if (rowPosition === 'Above' || rowPosition === 'Below' || rowPosition === 'Child') {
|
|
2621
|
+
this.currentSelection = data;
|
|
2622
|
+
}
|
|
2620
2623
|
}
|
|
2621
2624
|
}
|
|
2622
2625
|
};
|
|
@@ -381,6 +381,7 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
GanttTreeGrid.prototype.treeActionComplete = function (args) {
|
|
384
|
+
var _this = this;
|
|
384
385
|
var updatedArgs = extend({}, args);
|
|
385
386
|
if (getValue('requestType', args) === 'sorting') {
|
|
386
387
|
this.parent.notify('updateModel', {});
|
|
@@ -403,6 +404,7 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
406
|
this.parent.editModule.cellEditModule.initiateCellEdit(args, this.currentEditRow);
|
|
407
|
+
this.parent.editModule.cellEditModule.isCellEdit = false;
|
|
406
408
|
this.currentEditRow = {};
|
|
407
409
|
}
|
|
408
410
|
}
|
|
@@ -428,7 +430,14 @@ var GanttTreeGrid = /** @class */ (function () {
|
|
|
428
430
|
}
|
|
429
431
|
}
|
|
430
432
|
else {
|
|
431
|
-
|
|
433
|
+
var indexvalue = 0;
|
|
434
|
+
this.parent.currentViewData.map(function (data, index) {
|
|
435
|
+
if (!isNullOrUndefined(_this.parent.currentSelection) && ((data.ganttProperties.taskId === _this.parent.currentSelection[_this.parent.taskFields.id])) || (!isNullOrUndefined(_this.parent.currentSelection)) && (data.ganttProperties.taskId === _this.parent.currentSelection.taskId)) {
|
|
436
|
+
indexvalue = index;
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
this.addedRecord = true;
|
|
440
|
+
this.parent.selectRow((isNullOrUndefined(indexvalue) ? 0 : indexvalue));
|
|
432
441
|
}
|
|
433
442
|
this.parent.addDeleteRecord = false;
|
|
434
443
|
}
|
|
@@ -669,7 +669,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
669
669
|
var baselineMilestoneHeight = this.parent.renderBaseline ? 5 : 2;
|
|
670
670
|
var template = '<div class="' + cls.baselineMilestoneContainer + '" style="width:' + ((this.parent.renderBaseline ? this.taskBarHeight - 5 : this.taskBarHeight - 10) + 2) + 'px;height:' +
|
|
671
671
|
((this.parent.renderBaseline ? this.taskBarHeight - 5 : this.taskBarHeight - 10) + 2) + 'px;position:absolute;transform:rotate(45deg);' + (this.parent.enableRtl ? 'right:' : 'left:') + (this.parent.enableRtl ? (data.ganttProperties.left -
|
|
672
|
-
(this.milestoneHeight / 2) + 3) : (data.ganttProperties.
|
|
672
|
+
(this.milestoneHeight / 2) + 3) : (data.ganttProperties.baselineLeft - (this.milestoneHeight / 2) + 2)) + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + 'margin-top:' + ((-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) + 3) + 'px"> </div>';
|
|
673
673
|
return this.createDivElement(template);
|
|
674
674
|
};
|
|
675
675
|
/**
|
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/_theme.scss
CHANGED
|
@@ -709,7 +709,6 @@
|
|
|
709
709
|
.e-gantt .e-gantt-chart .e-gantt-child-critical-progressbar-inner-div {
|
|
710
710
|
background-color: $gantt-critical-child-progress-bar;
|
|
711
711
|
border: $gantt-child-progress-bar-border;
|
|
712
|
-
position: absolute;
|
|
713
712
|
border-radius: $gantt-child-progress-bar-border-radius;
|
|
714
713
|
}
|
|
715
714
|
|
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