@syncfusion/ej2-gantt 22.1.34 → 22.1.37
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 +26 -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 +94 -40
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +94 -40
- 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 +15 -15
- package/src/gantt/actions/selection.js +2 -1
- package/src/gantt/actions/taskbar-edit.js +1 -0
- package/src/gantt/actions/toolbar.d.ts +1 -0
- package/src/gantt/actions/toolbar.js +9 -0
- package/src/gantt/base/date-processor.js +1 -0
- package/src/gantt/base/gantt-chart.js +5 -5
- package/src/gantt/base/gantt.d.ts +1 -0
- package/src/gantt/base/gantt.js +7 -5
- package/src/gantt/base/splitter.js +2 -1
- package/src/gantt/base/task-processor.js +41 -20
- package/src/gantt/base/tree-grid.js +9 -2
- package/src/gantt/renderer/chart-rows.js +4 -4
- package/src/gantt/renderer/timeline.js +4 -1
- package/src/gantt/renderer/tooltip.js +11 -3
- package/styles/gantt/material3-dark.css +20 -11
- package/styles/gantt/material3.css +20 -11
- package/styles/material3-dark.css +20 -11
- package/styles/material3.css +20 -11
|
@@ -1535,6 +1535,7 @@ var DateProcessor = /** @__PURE__ @class */ (function () {
|
|
|
1535
1535
|
setValue('minStartDate', minStartDate, editArgs);
|
|
1536
1536
|
setValue('maxEndDate', maxEndDate, editArgs);
|
|
1537
1537
|
}
|
|
1538
|
+
this.parent['isProjectDateUpdated'] = true;
|
|
1538
1539
|
};
|
|
1539
1540
|
/**
|
|
1540
1541
|
*
|
|
@@ -2108,7 +2109,7 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2108
2109
|
endDate = this.getEndDate(startDate, duration, data.ganttProperties.durationUnit, data.ganttProperties, false);
|
|
2109
2110
|
}
|
|
2110
2111
|
else if (!taskSettings.duration && taskSettings.endDate) {
|
|
2111
|
-
endDate = (!isNullOrUndefined(data.ganttProperties.endDate)) && endDate.getTime()
|
|
2112
|
+
endDate = (!isNullOrUndefined(data.ganttProperties.endDate)) && endDate.getTime() <
|
|
2112
2113
|
data.ganttProperties.endDate.getTime() && i !== segments.length - 1 ? endDate : data.ganttProperties.endDate;
|
|
2113
2114
|
duration = this.getDuration(startDate, endDate, data.ganttProperties.durationUnit, data.ganttProperties.isAutoSchedule, data.ganttProperties.isMilestone);
|
|
2114
2115
|
if (ganttSegments.length > 0 && endDate.getTime() < startDate.getTime()
|
|
@@ -2752,38 +2753,59 @@ var TaskProcessor = /** @__PURE__ @class */ (function (_super) {
|
|
|
2752
2753
|
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 60 * 1000);
|
|
2753
2754
|
}
|
|
2754
2755
|
if (ganttData && ganttData.durationUnit == 'minute') {
|
|
2755
|
-
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 *
|
|
2756
|
+
modifiedsDate = new Date(modifiedsDate.getTime() + ganttData.duration * 60 * 1000);
|
|
2756
2757
|
}
|
|
2757
2758
|
for (var i = 0; i < this.parent.dayWorkingTime.length; i++) {
|
|
2758
2759
|
hour = hour + this.parent.dayWorkingTime[i].to - this.parent.dayWorkingTime[i].from;
|
|
2759
2760
|
}
|
|
2760
2761
|
var dateDiff = modifiedsDate.getTime() - sDate.getTime();
|
|
2761
|
-
if (
|
|
2762
|
-
if (
|
|
2763
|
-
|
|
2762
|
+
if (ganttData && ganttData.durationUnit == 'minute' && ganttData.duration < (hour * 60)) {
|
|
2763
|
+
if (tierMode === 'Day') {
|
|
2764
|
+
if ((Math.floor((dateDiff / (1000 * 60 * 60)) % 24) >= hour || dateDiff === 0)) {
|
|
2765
|
+
isValid = true;
|
|
2766
|
+
}
|
|
2767
|
+
if (this.getSecondsInDecimal(sDate) === this.parent.defaultStartTime && isValid) {
|
|
2768
|
+
sDate.setHours(0, 0, 0, 0);
|
|
2769
|
+
}
|
|
2770
|
+
if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime) {
|
|
2771
|
+
eDate.setHours(24);
|
|
2772
|
+
}
|
|
2773
|
+
if (this.getSecondsInDecimal(eDate) === this.parent.defaultStartTime) {
|
|
2774
|
+
eDate.setHours(0, 0, 0, 0);
|
|
2775
|
+
}
|
|
2764
2776
|
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2777
|
+
else {
|
|
2778
|
+
isValid = true;
|
|
2767
2779
|
}
|
|
2768
|
-
if (
|
|
2769
|
-
|
|
2780
|
+
if ((sDate).getTime() === (eDate).getTime()) {
|
|
2781
|
+
return (this.parent.perDayWidth);
|
|
2770
2782
|
}
|
|
2771
|
-
|
|
2772
|
-
|
|
2783
|
+
else {
|
|
2784
|
+
if (isValid) {
|
|
2785
|
+
return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
|
|
2786
|
+
}
|
|
2787
|
+
else {
|
|
2788
|
+
return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * hour)) * this.parent.perDayWidth);
|
|
2789
|
+
}
|
|
2773
2790
|
}
|
|
2774
2791
|
}
|
|
2775
2792
|
else {
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2793
|
+
if (tierMode === 'Day') {
|
|
2794
|
+
if (this.getSecondsInDecimal(sDate) === this.parent.defaultStartTime) {
|
|
2795
|
+
sDate.setHours(0, 0, 0, 0);
|
|
2796
|
+
}
|
|
2797
|
+
if (this.getSecondsInDecimal(eDate) === this.parent.defaultEndTime) {
|
|
2798
|
+
eDate.setHours(24);
|
|
2799
|
+
}
|
|
2800
|
+
if (this.getSecondsInDecimal(eDate) === this.parent.defaultStartTime) {
|
|
2801
|
+
eDate.setHours(0, 0, 0, 0);
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
if ((sDate).getTime() === (eDate).getTime()) {
|
|
2805
|
+
return (this.parent.perDayWidth);
|
|
2784
2806
|
}
|
|
2785
2807
|
else {
|
|
2786
|
-
return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 *
|
|
2808
|
+
return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
|
|
2787
2809
|
}
|
|
2788
2810
|
}
|
|
2789
2811
|
};
|
|
@@ -4514,9 +4536,9 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
4514
4536
|
}
|
|
4515
4537
|
}
|
|
4516
4538
|
}
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
this.parent.criticalPathModule.criticalConnectorLine(
|
|
4539
|
+
var criticalModule = this.parent.criticalPathModule;
|
|
4540
|
+
if (this.parent.enableCriticalPath && criticalModule && criticalModule.criticalPathCollection) {
|
|
4541
|
+
this.parent.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, this.parent.enableCriticalPath, criticalModule.predecessorCollectionTaskIds);
|
|
4520
4542
|
}
|
|
4521
4543
|
if (this.parent.viewType === 'ResourceView' && this.parent.showOverAllocation) {
|
|
4522
4544
|
this.renderOverAllocationContainer();
|
|
@@ -5111,8 +5133,8 @@ var GanttChart = /** @__PURE__ @class */ (function () {
|
|
|
5111
5133
|
this.parent.updatedConnectorLineCollection = [];
|
|
5112
5134
|
this.parent.predecessorModule.createConnectorLinesCollection();
|
|
5113
5135
|
this.parent.connectorLineModule.renderConnectorLines(this.parent.updatedConnectorLineCollection);
|
|
5114
|
-
|
|
5115
|
-
|
|
5136
|
+
var criticalModule = this.parent.criticalPathModule;
|
|
5137
|
+
if (this.parent.enableCriticalPath && criticalModule && criticalModule.criticalPathCollection) {
|
|
5116
5138
|
criticalModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
|
|
5117
5139
|
}
|
|
5118
5140
|
};
|
|
@@ -5953,6 +5975,9 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
5953
5975
|
*/
|
|
5954
5976
|
Timeline.prototype.processZooming = function (isZoomIn) {
|
|
5955
5977
|
this.isZoomToFit = false;
|
|
5978
|
+
if (!this.parent['isProjectDateUpdated']) {
|
|
5979
|
+
this.parent.dateValidationModule.calculateProjectDates();
|
|
5980
|
+
}
|
|
5956
5981
|
if (!isNullOrUndefined(this.parent.zoomingProjectStartDate)) {
|
|
5957
5982
|
this.parent.cloneProjectStartDate = this.parent.cloneProjectStartDate.getTime() < this.parent.zoomingProjectStartDate.getTime()
|
|
5958
5983
|
? this.parent.cloneProjectStartDate : this.parent.zoomingProjectStartDate;
|
|
@@ -6071,10 +6096,10 @@ var Timeline = /** @__PURE__ @class */ (function () {
|
|
|
6071
6096
|
this.parent.zoomingProjectStartDate = this.parent.cloneProjectStartDate;
|
|
6072
6097
|
this.parent.zoomingProjectEndDate = this.parent.cloneProjectEndDate;
|
|
6073
6098
|
}
|
|
6074
|
-
this.parent.dataOperation.calculateProjectDates();
|
|
6075
6099
|
if (this.parent.zoomingProjectStartDate > this.parent.cloneProjectStartDate) {
|
|
6076
6100
|
this.parent.cloneProjectStartDate = new Date(this.parent.allowUnscheduledTasks ? this.parent.zoomingProjectStartDate : this.parent.cloneProjectStartDate);
|
|
6077
6101
|
}
|
|
6102
|
+
this.parent.dataOperation.calculateProjectDates();
|
|
6078
6103
|
var timeDifference = (this.parent.cloneProjectEndDate.getTime() - this.parent.cloneProjectStartDate.getTime());
|
|
6079
6104
|
var totalDays = (timeDifference / (1000 * 3600 * 24));
|
|
6080
6105
|
var chartWidth = this.parent.ganttChartModule.chartElement.offsetWidth;
|
|
@@ -7523,6 +7548,9 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
|
|
|
7523
7548
|
var root = 'root';
|
|
7524
7549
|
this.parent.treeGrid[root] = this.parent[root] ? this.parent[root] : this.parent;
|
|
7525
7550
|
this.parent.treeGrid.appendTo(this.treeGridElement);
|
|
7551
|
+
if (this.parent.treeGrid.grid && this.parent.toolbarModule && this.parent.isReact) {
|
|
7552
|
+
this.parent.treeGrid.grid.portals = this.parent.portals;
|
|
7553
|
+
}
|
|
7526
7554
|
this.wireEvents();
|
|
7527
7555
|
};
|
|
7528
7556
|
GanttTreeGrid.prototype.composeProperties = function () {
|
|
@@ -7964,7 +7992,9 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
|
|
|
7964
7992
|
this.parent.getDateFormat().toLowerCase().indexOf('hh') !== -1 ? 'datetimepickeredit' : 'datepickeredit';
|
|
7965
7993
|
column.format = column.format ? column.format : { type: 'date', format: this.parent.getDateFormat() };
|
|
7966
7994
|
column.width = column.width ? column.width : 150;
|
|
7967
|
-
column.edit
|
|
7995
|
+
if (!column.edit || (column.edit && !column.edit.create)) {
|
|
7996
|
+
column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
|
|
7997
|
+
}
|
|
7968
7998
|
}
|
|
7969
7999
|
else if (taskSettings.endDate === column.field) {
|
|
7970
8000
|
if (this.parent.isLocaleChanged && previousColumn) {
|
|
@@ -7977,7 +8007,9 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
|
|
|
7977
8007
|
column.editType = column.editType ? column.editType :
|
|
7978
8008
|
this.parent.getDateFormat().toLowerCase().indexOf('hh') !== -1 ? 'datetimepickeredit' : 'datepickeredit';
|
|
7979
8009
|
column.width = column.width ? column.width : 150;
|
|
7980
|
-
column.edit
|
|
8010
|
+
if (!column.edit || (column.edit && !column.edit.create)) {
|
|
8011
|
+
column.edit = { params: { renderDayCell: this.parent.renderWorkingDayCell.bind(this.parent) } };
|
|
8012
|
+
}
|
|
7981
8013
|
}
|
|
7982
8014
|
else if (taskSettings.duration === column.field) {
|
|
7983
8015
|
column.width = column.width ? column.width : 150;
|
|
@@ -9932,7 +9964,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
9932
9964
|
if (this.taskLabelTemplateFunction) {
|
|
9933
9965
|
var parentTaskLabelNode = this.taskLabelTemplateFunction(extend({ index: i }, data), this.parent, 'TaskLabelTemplate', this.getTemplateID('TaskLabelTemplate'), false, undefined, progressBarInnerDiv[0]);
|
|
9934
9966
|
if (parentTaskLabelNode && parentTaskLabelNode.length > 0) {
|
|
9935
|
-
|
|
9967
|
+
append(parentTaskLabelNode, div);
|
|
9936
9968
|
labelString = div.innerHTML;
|
|
9937
9969
|
}
|
|
9938
9970
|
}
|
|
@@ -10521,7 +10553,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
10521
10553
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
10522
10554
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
10523
10555
|
taskBaselineTemplateNode = ((this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.baselineEndDate.getTime()) || ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
10524
|
-
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.
|
|
10556
|
+
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.getTime() === this.templateData.ganttProperties.endDate.getTime())) &&
|
|
10525
10557
|
this.templateData.ganttProperties.isMilestone))
|
|
10526
10558
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
10527
10559
|
}
|
|
@@ -10534,7 +10566,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
10534
10566
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
10535
10567
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
10536
10568
|
taskBaselineTemplateNode = ((this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.baselineEndDate.getTime()) || ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
10537
|
-
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.
|
|
10569
|
+
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.getTime() === this.templateData.ganttProperties.endDate.getTime())) &&
|
|
10538
10570
|
this.templateData.ganttProperties.isMilestone))
|
|
10539
10571
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
10540
10572
|
}
|
|
@@ -10582,7 +10614,7 @@ var ChartRows = /** @__PURE__ @class */ (function (_super) {
|
|
|
10582
10614
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
10583
10615
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
10584
10616
|
taskBaselineTemplateNode = ((this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.baselineEndDate.getTime()) || ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
10585
|
-
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.
|
|
10617
|
+
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.getTime() === this.templateData.ganttProperties.endDate.getTime())) &&
|
|
10586
10618
|
this.templateData.ganttProperties.isMilestone))
|
|
10587
10619
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
10588
10620
|
}
|
|
@@ -12965,6 +12997,7 @@ var Splitter$1 = /** @__PURE__ @class */ (function () {
|
|
|
12965
12997
|
this.parent.splitterElement = createElement('div', { className: splitter });
|
|
12966
12998
|
this.parent.treeGridPane = createElement('div', { className: treeGridPane });
|
|
12967
12999
|
this.parent.chartPane = createElement('div', { className: ganttChartPane });
|
|
13000
|
+
addClass([this.parent.chartPane], 'e-droppable');
|
|
12968
13001
|
if (this.parent.enableRtl) {
|
|
12969
13002
|
this.parent.splitterElement.appendChild(this.parent.chartPane);
|
|
12970
13003
|
this.parent.splitterElement.appendChild(this.parent.treeGridPane);
|
|
@@ -13216,7 +13249,11 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
|
|
|
13216
13249
|
if (parent.tooltipSettings.taskbar) {
|
|
13217
13250
|
taskbarTemplateNode = parent.tooltipModule.templateCompiler(parent.tooltipSettings.taskbar, parent, data, 'TooltipTaskbarTemplate');
|
|
13218
13251
|
}
|
|
13219
|
-
|
|
13252
|
+
var tooltipTemplate = document.createElement('div');
|
|
13253
|
+
if (taskbarTemplateNode) {
|
|
13254
|
+
append(taskbarTemplateNode, tooltipTemplate);
|
|
13255
|
+
}
|
|
13256
|
+
argsData.content = this.toolTipObj.content = taskbarTemplateNode ? tooltipTemplate :
|
|
13220
13257
|
parent.tooltipModule.getTooltipContent((data.ganttProperties.isMilestone ? 'milestone' : 'taskbar'), data, parent, args);
|
|
13221
13258
|
}
|
|
13222
13259
|
else if (args.target.classList.contains('e-baseline-bar') ||
|
|
@@ -13225,7 +13262,11 @@ var Tooltip$1 = /** @__PURE__ @class */ (function () {
|
|
|
13225
13262
|
if ((parent.tooltipSettings.baseline)) {
|
|
13226
13263
|
baseLineTemplateNode = parent.tooltipModule.templateCompiler(parent.tooltipSettings.baseline, parent, data, 'TooltipBaselineTemplate');
|
|
13227
13264
|
}
|
|
13228
|
-
|
|
13265
|
+
var baselineTemplate = document.createElement('div');
|
|
13266
|
+
if (baseLineTemplateNode) {
|
|
13267
|
+
append(baseLineTemplateNode, baselineTemplate);
|
|
13268
|
+
}
|
|
13269
|
+
argsData.content = this.toolTipObj.content = baseLineTemplateNode ? baselineTemplate :
|
|
13229
13270
|
parent.tooltipModule.getTooltipContent((data.ganttProperties.isMilestone ? 'milestone' : 'baseline'), data, parent, args);
|
|
13230
13271
|
}
|
|
13231
13272
|
else if (args.target.classList.contains('e-event-markers')) {
|
|
@@ -14771,8 +14812,8 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
14771
14812
|
this.updateRowHeightInConnectorLine(this.updatedConnectorLineCollection);
|
|
14772
14813
|
this.connectorLineModule.renderConnectorLines(this.updatedConnectorLineCollection);
|
|
14773
14814
|
}
|
|
14774
|
-
|
|
14775
|
-
|
|
14815
|
+
var criticalModule = this.criticalPathModule;
|
|
14816
|
+
if (this.enableCriticalPath && criticalModule && criticalModule.criticalPathCollection) {
|
|
14776
14817
|
this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
|
|
14777
14818
|
}
|
|
14778
14819
|
}
|
|
@@ -15211,8 +15252,8 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15211
15252
|
document.getElementsByClassName('e-timeline-header-table-container')[i].children[0].children[0].children[j].children[0].setAttribute('tabindex', '-1');
|
|
15212
15253
|
}
|
|
15213
15254
|
}
|
|
15214
|
-
|
|
15215
|
-
|
|
15255
|
+
var criticalModule = this.criticalPathModule;
|
|
15256
|
+
if (this.enableCriticalPath && criticalModule && criticalModule.criticalPathCollection) {
|
|
15216
15257
|
this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
|
|
15217
15258
|
}
|
|
15218
15259
|
this.initialChartRowElements = this.ganttChartModule.getChartRows();
|
|
@@ -15315,7 +15356,9 @@ var Gantt = /** @__PURE__ @class */ (function (_super) {
|
|
|
15315
15356
|
if (this.enableCriticalPath && this.criticalPathModule) {
|
|
15316
15357
|
this.criticalPathModule.showCriticalPath(this.enableCriticalPath);
|
|
15317
15358
|
var criticalModule = this.criticalPathModule;
|
|
15318
|
-
|
|
15359
|
+
if (criticalModule.criticalPathCollection) {
|
|
15360
|
+
this.criticalPathModule.criticalConnectorLine(criticalModule.criticalPathCollection, criticalModule.detailPredecessorCollection, true, criticalModule.predecessorCollectionTaskIds);
|
|
15361
|
+
}
|
|
15319
15362
|
}
|
|
15320
15363
|
else {
|
|
15321
15364
|
this.removeCriticalPathStyles();
|
|
@@ -20290,6 +20333,7 @@ var TaskbarEdit = /** @__PURE__ @class */ (function (_super) {
|
|
|
20290
20333
|
}
|
|
20291
20334
|
}
|
|
20292
20335
|
}
|
|
20336
|
+
this.parent['isProjectDateUpdated'] = false;
|
|
20293
20337
|
};
|
|
20294
20338
|
/**
|
|
20295
20339
|
* To cancel the taskbar edt action.
|
|
@@ -28929,6 +28973,7 @@ var Selection$1 = /** @__PURE__ @class */ (function () {
|
|
|
28929
28973
|
*/
|
|
28930
28974
|
Selection$$1.prototype.mouseUpHandler = function (e) {
|
|
28931
28975
|
var isTaskbarEdited = false;
|
|
28976
|
+
var elements = document.querySelectorAll('.e-drag-item');
|
|
28932
28977
|
var targetElement = null;
|
|
28933
28978
|
if (e.target.closest('.e-rowcell')) {
|
|
28934
28979
|
targetElement = e.target;
|
|
@@ -28946,7 +28991,7 @@ var Selection$1 = /** @__PURE__ @class */ (function () {
|
|
|
28946
28991
|
isTaskbarEdited = true;
|
|
28947
28992
|
}
|
|
28948
28993
|
}
|
|
28949
|
-
if (!isTaskbarEdited && this.parent.element.contains(e.target)) {
|
|
28994
|
+
if (!isTaskbarEdited && this.parent.element.contains(e.target) && !(elements.length === 1)) {
|
|
28950
28995
|
var parent_1 = parentsUntil(e.target, 'e-chart-row');
|
|
28951
28996
|
var isSelected = e.target.classList.contains('e-rowcell') ||
|
|
28952
28997
|
e.target.classList.contains('e-row') ||
|
|
@@ -29098,6 +29143,12 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
|
|
|
29098
29143
|
this.createToolbar();
|
|
29099
29144
|
}
|
|
29100
29145
|
};
|
|
29146
|
+
Toolbar$$1.prototype.addReactToolbarPortals = function (args) {
|
|
29147
|
+
if (this.parent.isReact && args) {
|
|
29148
|
+
this.parent.portals = this.parent.portals.concat(args);
|
|
29149
|
+
this.parent.renderTemplates();
|
|
29150
|
+
}
|
|
29151
|
+
};
|
|
29101
29152
|
Toolbar$$1.prototype.createToolbar = function () {
|
|
29102
29153
|
var items = this.getItems();
|
|
29103
29154
|
this.toolbar = new Toolbar$1({
|
|
@@ -29107,6 +29158,8 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
|
|
|
29107
29158
|
height: this.parent.isAdaptive ? 48 : 'auto'
|
|
29108
29159
|
});
|
|
29109
29160
|
this.toolbar.isStringTemplate = true;
|
|
29161
|
+
this.toolbar.isReact = this.parent.isReact;
|
|
29162
|
+
this.toolbar.on('render-react-toolbar-template', this.addReactToolbarPortals, this);
|
|
29110
29163
|
this.toolbar.appendTo(this.element);
|
|
29111
29164
|
var cancelItem = this.element.querySelector('#' + this.parent.element.id + '_cancel');
|
|
29112
29165
|
var updateItem = this.element.querySelector('#' + this.parent.element.id + '_update');
|
|
@@ -29523,6 +29576,7 @@ var Toolbar$3 = /** @__PURE__ @class */ (function () {
|
|
|
29523
29576
|
if (this.parent.isDestroyed) {
|
|
29524
29577
|
return;
|
|
29525
29578
|
}
|
|
29579
|
+
this.toolbar.off('render-react-toolbar-template', this.addReactToolbarPortals);
|
|
29526
29580
|
this.toolbar.destroy();
|
|
29527
29581
|
if (this.parent.filterModule) {
|
|
29528
29582
|
this.unWireEvent();
|