@syncfusion/ej2-gantt 19.4.54 → 19.4.55
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 +10 -0
- 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 +26 -9
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +26 -9
- 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 +13 -13
- package/src/gantt/actions/selection.js +3 -1
- package/src/gantt/renderer/chart-rows.js +23 -8
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.55
|
|
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@19.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@19.4.54",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-MLuEBMN++SYGBbYyb4j7PpGp/92/ztO0MBIxUC18Fhzf7uYTEXHd5aHY2reGHsAENQa+MjUaHO44cm68Fz6cvA==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.54.tgz",
|
|
27
|
+
"_shasum": "3e6e2c9c949ce93b3398f386e09656607022e4d5",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@syncfusion/ej2-base": "~19.4.52",
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~19.4.
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.55",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~19.4.55",
|
|
41
41
|
"@syncfusion/ej2-data": "~19.4.54",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.4.
|
|
43
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.55",
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.4.55",
|
|
44
44
|
"@syncfusion/ej2-inputs": "~19.4.52",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~19.4.52",
|
|
46
|
-
"@syncfusion/ej2-lists": "~19.4.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
46
|
+
"@syncfusion/ej2-lists": "~19.4.55",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~19.4.55",
|
|
48
48
|
"@syncfusion/ej2-popups": "~19.4.53",
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~19.4.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~19.4.
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~19.4.55",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~19.4.55"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 Gantt Component",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
76
76
|
},
|
|
77
77
|
"typings": "index.d.ts",
|
|
78
|
-
"version": "19.4.
|
|
78
|
+
"version": "19.4.55",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -133,7 +133,9 @@ var Selection = /** @class */ (function () {
|
|
|
133
133
|
}
|
|
134
134
|
this.addRemoveClass(index);
|
|
135
135
|
this.selectedRowIndexes = extend([], this.getSelectedRowIndexes(), [], true);
|
|
136
|
-
this.
|
|
136
|
+
if (this.selectedRowIndexes.length == 0) {
|
|
137
|
+
this.parent.setProperties({ selectedRowIndex: -1 }, true);
|
|
138
|
+
}
|
|
137
139
|
if (!isNullOrUndefined(this.parent.toolbarModule)) {
|
|
138
140
|
this.parent.toolbarModule.refreshToolbarItems();
|
|
139
141
|
}
|
|
@@ -140,7 +140,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
140
140
|
var childTaskbarNode = null;
|
|
141
141
|
var data = this.templateData;
|
|
142
142
|
if (this.childTaskbarTemplateFunction) {
|
|
143
|
-
childTaskbarNode = this.childTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'TaskbarTemplate', this.getTemplateID('TaskbarTemplate'), false, undefined, rootElement[0]);
|
|
143
|
+
childTaskbarNode = this.childTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'TaskbarTemplate', this.getTemplateID('TaskbarTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
|
|
144
144
|
}
|
|
145
145
|
else {
|
|
146
146
|
var labelString = '';
|
|
@@ -579,7 +579,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
579
579
|
var milestoneNode = null;
|
|
580
580
|
var data = this.templateData;
|
|
581
581
|
if (this.milestoneTemplateFunction) {
|
|
582
|
-
milestoneNode = this.milestoneTemplateFunction(extend({ index: i }, data), this.parent, 'MilestoneTemplate', this.getTemplateID('MilestoneTemplate'), false, undefined, rootElement[0]);
|
|
582
|
+
milestoneNode = this.milestoneTemplateFunction(extend({ index: i }, data), this.parent, 'MilestoneTemplate', this.getTemplateID('MilestoneTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
|
|
583
583
|
}
|
|
584
584
|
else {
|
|
585
585
|
var template = '<div class="' + cls.traceMilestone + '" style="position:absolute;">' +
|
|
@@ -650,7 +650,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
650
650
|
leftLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('left'));
|
|
651
651
|
var leftLabelTemplateNode = null;
|
|
652
652
|
if (this.leftTaskLabelTemplateFunction) {
|
|
653
|
-
leftLabelTemplateNode = this.leftTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'LeftLabelTemplate', this.getTemplateID('LeftLabelTemplate'), false, undefined, leftLabelNode[0]);
|
|
653
|
+
leftLabelTemplateNode = this.leftTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'LeftLabelTemplate', this.getTemplateID('LeftLabelTemplate'), false, undefined, leftLabelNode[0], this.parent.treeGrid['root']);
|
|
654
654
|
}
|
|
655
655
|
else {
|
|
656
656
|
var field = this.parent.labelSettings.leftLabel;
|
|
@@ -661,6 +661,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
if (leftLabelTemplateNode && leftLabelTemplateNode.length > 0) {
|
|
664
|
+
if (leftLabelTemplateNode[0]['data'] === 'null') {
|
|
665
|
+
leftLabelTemplateNode[0]['data'] = '';
|
|
666
|
+
}
|
|
664
667
|
leftLabelNode[0].appendChild([].slice.call(leftLabelTemplateNode)[0]);
|
|
665
668
|
}
|
|
666
669
|
return leftLabelNode;
|
|
@@ -690,7 +693,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
690
693
|
rightLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('right'));
|
|
691
694
|
var rightLabelTemplateNode = null;
|
|
692
695
|
if (this.rightTaskLabelTemplateFunction) {
|
|
693
|
-
rightLabelTemplateNode = this.rightTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'RightLabelTemplate', this.getTemplateID('RightLabelTemplate'), false, undefined, rightLabelNode[0]);
|
|
696
|
+
rightLabelTemplateNode = this.rightTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'RightLabelTemplate', this.getTemplateID('RightLabelTemplate'), false, undefined, rightLabelNode[0], this.parent.treeGrid['root']);
|
|
694
697
|
}
|
|
695
698
|
else {
|
|
696
699
|
var field = this.parent.labelSettings.rightLabel;
|
|
@@ -701,6 +704,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
701
704
|
}
|
|
702
705
|
}
|
|
703
706
|
if (rightLabelTemplateNode && rightLabelTemplateNode.length > 0) {
|
|
707
|
+
if (rightLabelTemplateNode[0]['data'] === 'null') {
|
|
708
|
+
rightLabelTemplateNode[0]['data'] = '';
|
|
709
|
+
}
|
|
704
710
|
rightLabelNode[0].appendChild([].slice.call(rightLabelTemplateNode)[0]);
|
|
705
711
|
}
|
|
706
712
|
return rightLabelNode;
|
|
@@ -755,7 +761,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
755
761
|
var parentTaskbarNode = null;
|
|
756
762
|
var data = this.templateData;
|
|
757
763
|
if (this.parentTaskbarTemplateFunction) {
|
|
758
|
-
parentTaskbarNode = this.parentTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'ParentTaskbarTemplate', this.getTemplateID('ParentTaskbarTemplate'), false, undefined, rootElement[0]);
|
|
764
|
+
parentTaskbarNode = this.parentTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'ParentTaskbarTemplate', this.getTemplateID('ParentTaskbarTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
|
|
759
765
|
}
|
|
760
766
|
else {
|
|
761
767
|
var labelString = '';
|
|
@@ -869,10 +875,19 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
869
875
|
};
|
|
870
876
|
ChartRows.prototype.isTemplate = function (template) {
|
|
871
877
|
var result = false;
|
|
878
|
+
for (var i = 0; i < this.parent.ganttColumns.length; i++) {
|
|
879
|
+
if (template === this.parent.ganttColumns[i].field) {
|
|
880
|
+
result = true;
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
872
884
|
if (typeof template !== 'string' || template.indexOf('#') === 0 || template.indexOf('<') > -1
|
|
873
|
-
|| template.indexOf('$') > -1) {
|
|
885
|
+
|| template.indexOf('$') > -1 || !result) {
|
|
874
886
|
result = true;
|
|
875
887
|
}
|
|
888
|
+
else {
|
|
889
|
+
result = false;
|
|
890
|
+
}
|
|
876
891
|
return result;
|
|
877
892
|
};
|
|
878
893
|
/**
|
|
@@ -887,7 +902,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
887
902
|
ChartRows.prototype.leftLabelContainer = function () {
|
|
888
903
|
var template = '<div class="' + ((this.leftTaskLabelTemplateFunction) ? cls.leftLabelTempContainer :
|
|
889
904
|
cls.leftLabelContainer) + ' ' + '" tabindex="-1" style="height:' +
|
|
890
|
-
(this.parent.rowHeight -
|
|
905
|
+
(this.parent.rowHeight - 2) + 'px;width:' + this.taskNameWidth(this.templateData) + '"></div>';
|
|
891
906
|
return this.createDivElement(template);
|
|
892
907
|
};
|
|
893
908
|
ChartRows.prototype.taskbarContainer = function () {
|
|
@@ -910,7 +925,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
910
925
|
ChartRows.prototype.rightLabelContainer = function () {
|
|
911
926
|
var template = '<div class="' + ((this.rightTaskLabelTemplateFunction) ? cls.rightLabelTempContainer :
|
|
912
927
|
cls.rightLabelContainer) + '" ' + ' tabindex="-1" style="left:' + this.getRightLabelLeft(this.templateData) + 'px;height:'
|
|
913
|
-
+ (this.parent.rowHeight -
|
|
928
|
+
+ (this.parent.rowHeight - 2) + 'px;"></div>';
|
|
914
929
|
return this.createDivElement(template);
|
|
915
930
|
};
|
|
916
931
|
ChartRows.prototype.childTaskbarLeftResizer = function () {
|