@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
|
@@ -7946,7 +7946,7 @@ class ChartRows extends DateProcessor {
|
|
|
7946
7946
|
let childTaskbarNode = null;
|
|
7947
7947
|
const data = this.templateData;
|
|
7948
7948
|
if (this.childTaskbarTemplateFunction) {
|
|
7949
|
-
childTaskbarNode = this.childTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'TaskbarTemplate', this.getTemplateID('TaskbarTemplate'), false, undefined, rootElement[0]);
|
|
7949
|
+
childTaskbarNode = this.childTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'TaskbarTemplate', this.getTemplateID('TaskbarTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
|
|
7950
7950
|
}
|
|
7951
7951
|
else {
|
|
7952
7952
|
let labelString = '';
|
|
@@ -8385,7 +8385,7 @@ class ChartRows extends DateProcessor {
|
|
|
8385
8385
|
let milestoneNode = null;
|
|
8386
8386
|
const data = this.templateData;
|
|
8387
8387
|
if (this.milestoneTemplateFunction) {
|
|
8388
|
-
milestoneNode = this.milestoneTemplateFunction(extend({ index: i }, data), this.parent, 'MilestoneTemplate', this.getTemplateID('MilestoneTemplate'), false, undefined, rootElement[0]);
|
|
8388
|
+
milestoneNode = this.milestoneTemplateFunction(extend({ index: i }, data), this.parent, 'MilestoneTemplate', this.getTemplateID('MilestoneTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
|
|
8389
8389
|
}
|
|
8390
8390
|
else {
|
|
8391
8391
|
const template = '<div class="' + traceMilestone + '" style="position:absolute;">' +
|
|
@@ -8456,7 +8456,7 @@ class ChartRows extends DateProcessor {
|
|
|
8456
8456
|
leftLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('left'));
|
|
8457
8457
|
let leftLabelTemplateNode = null;
|
|
8458
8458
|
if (this.leftTaskLabelTemplateFunction) {
|
|
8459
|
-
leftLabelTemplateNode = this.leftTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'LeftLabelTemplate', this.getTemplateID('LeftLabelTemplate'), false, undefined, leftLabelNode[0]);
|
|
8459
|
+
leftLabelTemplateNode = this.leftTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'LeftLabelTemplate', this.getTemplateID('LeftLabelTemplate'), false, undefined, leftLabelNode[0], this.parent.treeGrid['root']);
|
|
8460
8460
|
}
|
|
8461
8461
|
else {
|
|
8462
8462
|
const field = this.parent.labelSettings.leftLabel;
|
|
@@ -8467,6 +8467,9 @@ class ChartRows extends DateProcessor {
|
|
|
8467
8467
|
}
|
|
8468
8468
|
}
|
|
8469
8469
|
if (leftLabelTemplateNode && leftLabelTemplateNode.length > 0) {
|
|
8470
|
+
if (leftLabelTemplateNode[0]['data'] === 'null') {
|
|
8471
|
+
leftLabelTemplateNode[0]['data'] = '';
|
|
8472
|
+
}
|
|
8470
8473
|
leftLabelNode[0].appendChild([].slice.call(leftLabelTemplateNode)[0]);
|
|
8471
8474
|
}
|
|
8472
8475
|
return leftLabelNode;
|
|
@@ -8496,7 +8499,7 @@ class ChartRows extends DateProcessor {
|
|
|
8496
8499
|
rightLabelNode[0].setAttribute('aria-label', this.generateTaskLabelAriaLabel('right'));
|
|
8497
8500
|
let rightLabelTemplateNode = null;
|
|
8498
8501
|
if (this.rightTaskLabelTemplateFunction) {
|
|
8499
|
-
rightLabelTemplateNode = this.rightTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'RightLabelTemplate', this.getTemplateID('RightLabelTemplate'), false, undefined, rightLabelNode[0]);
|
|
8502
|
+
rightLabelTemplateNode = this.rightTaskLabelTemplateFunction(extend({ index: i }, this.templateData), this.parent, 'RightLabelTemplate', this.getTemplateID('RightLabelTemplate'), false, undefined, rightLabelNode[0], this.parent.treeGrid['root']);
|
|
8500
8503
|
}
|
|
8501
8504
|
else {
|
|
8502
8505
|
const field = this.parent.labelSettings.rightLabel;
|
|
@@ -8507,6 +8510,9 @@ class ChartRows extends DateProcessor {
|
|
|
8507
8510
|
}
|
|
8508
8511
|
}
|
|
8509
8512
|
if (rightLabelTemplateNode && rightLabelTemplateNode.length > 0) {
|
|
8513
|
+
if (rightLabelTemplateNode[0]['data'] === 'null') {
|
|
8514
|
+
rightLabelTemplateNode[0]['data'] = '';
|
|
8515
|
+
}
|
|
8510
8516
|
rightLabelNode[0].appendChild([].slice.call(rightLabelTemplateNode)[0]);
|
|
8511
8517
|
}
|
|
8512
8518
|
return rightLabelNode;
|
|
@@ -8561,7 +8567,7 @@ class ChartRows extends DateProcessor {
|
|
|
8561
8567
|
let parentTaskbarNode = null;
|
|
8562
8568
|
const data = this.templateData;
|
|
8563
8569
|
if (this.parentTaskbarTemplateFunction) {
|
|
8564
|
-
parentTaskbarNode = this.parentTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'ParentTaskbarTemplate', this.getTemplateID('ParentTaskbarTemplate'), false, undefined, rootElement[0]);
|
|
8570
|
+
parentTaskbarNode = this.parentTaskbarTemplateFunction(extend({ index: i }, data), this.parent, 'ParentTaskbarTemplate', this.getTemplateID('ParentTaskbarTemplate'), false, undefined, rootElement[0], this.parent.treeGrid['root']);
|
|
8565
8571
|
}
|
|
8566
8572
|
else {
|
|
8567
8573
|
let labelString = '';
|
|
@@ -8675,10 +8681,19 @@ class ChartRows extends DateProcessor {
|
|
|
8675
8681
|
}
|
|
8676
8682
|
isTemplate(template) {
|
|
8677
8683
|
let result = false;
|
|
8684
|
+
for (let i = 0; i < this.parent.ganttColumns.length; i++) {
|
|
8685
|
+
if (template === this.parent.ganttColumns[i].field) {
|
|
8686
|
+
result = true;
|
|
8687
|
+
break;
|
|
8688
|
+
}
|
|
8689
|
+
}
|
|
8678
8690
|
if (typeof template !== 'string' || template.indexOf('#') === 0 || template.indexOf('<') > -1
|
|
8679
|
-
|| template.indexOf('$') > -1) {
|
|
8691
|
+
|| template.indexOf('$') > -1 || !result) {
|
|
8680
8692
|
result = true;
|
|
8681
8693
|
}
|
|
8694
|
+
else {
|
|
8695
|
+
result = false;
|
|
8696
|
+
}
|
|
8682
8697
|
return result;
|
|
8683
8698
|
}
|
|
8684
8699
|
/**
|
|
@@ -8693,7 +8708,7 @@ class ChartRows extends DateProcessor {
|
|
|
8693
8708
|
leftLabelContainer() {
|
|
8694
8709
|
const template = '<div class="' + ((this.leftTaskLabelTemplateFunction) ? leftLabelTempContainer :
|
|
8695
8710
|
leftLabelContainer) + ' ' + '" tabindex="-1" style="height:' +
|
|
8696
|
-
(this.parent.rowHeight -
|
|
8711
|
+
(this.parent.rowHeight - 2) + 'px;width:' + this.taskNameWidth(this.templateData) + '"></div>';
|
|
8697
8712
|
return this.createDivElement(template);
|
|
8698
8713
|
}
|
|
8699
8714
|
taskbarContainer() {
|
|
@@ -8716,7 +8731,7 @@ class ChartRows extends DateProcessor {
|
|
|
8716
8731
|
rightLabelContainer() {
|
|
8717
8732
|
const template = '<div class="' + ((this.rightTaskLabelTemplateFunction) ? rightLabelTempContainer :
|
|
8718
8733
|
rightLabelContainer) + '" ' + ' tabindex="-1" style="left:' + this.getRightLabelLeft(this.templateData) + 'px;height:'
|
|
8719
|
-
+ (this.parent.rowHeight -
|
|
8734
|
+
+ (this.parent.rowHeight - 2) + 'px;"></div>';
|
|
8720
8735
|
return this.createDivElement(template);
|
|
8721
8736
|
}
|
|
8722
8737
|
childTaskbarLeftResizer() {
|
|
@@ -24874,7 +24889,9 @@ class Selection$1 {
|
|
|
24874
24889
|
}
|
|
24875
24890
|
this.addRemoveClass(index);
|
|
24876
24891
|
this.selectedRowIndexes = extend([], this.getSelectedRowIndexes(), [], true);
|
|
24877
|
-
this.
|
|
24892
|
+
if (this.selectedRowIndexes.length == 0) {
|
|
24893
|
+
this.parent.setProperties({ selectedRowIndex: -1 }, true);
|
|
24894
|
+
}
|
|
24878
24895
|
if (!isNullOrUndefined(this.parent.toolbarModule)) {
|
|
24879
24896
|
this.parent.toolbarModule.refreshToolbarItems();
|
|
24880
24897
|
}
|