@syncfusion/ej2-gantt 23.1.36 → 23.1.38
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 +17 -0
- package/dist/ej2-gantt.min.js +3 -3
- package/dist/ej2-gantt.umd.min.js +3 -3
- package/dist/ej2-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-gantt.es2015.js +130 -41
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +130 -41
- package/dist/es6/ej2-gantt.es5.js.map +1 -1
- package/dist/global/ej2-gantt.min.js +3 -3
- package/dist/global/ej2-gantt.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +11 -11
- package/src/gantt/actions/connector-line-edit.js +48 -6
- package/src/gantt/actions/critical-path.js +0 -2
- package/src/gantt/actions/dependency.js +49 -6
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/edit.js +3 -0
- package/src/gantt/actions/taskbar-edit.js +7 -2
- package/src/gantt/base/gantt-chart.js +6 -0
- package/src/gantt/base/gantt.js +5 -5
- package/src/gantt/base/splitter.js +1 -0
- package/src/gantt/renderer/chart-rows.js +8 -17
- package/src/gantt/renderer/connector-line.js +3 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.1.
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 -
|
|
3
|
+
* version : 23.1.38
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2023. 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
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-gantt@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-gantt@
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@23.1.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-DaqtJNvLhh2v2HifwcrFvSwefaOTuNX8n/XbdImEEiQKiUe47Evc6TY5Ff72S6UPKgXDBG1xOC5voL16bmnFHg==",
|
|
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-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-23.1.36.tgz",
|
|
27
|
+
"_shasum": "13d8042a95ff4d2241be46c4d53bb29609be61eb",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~23.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~23.1.38",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~23.1.36",
|
|
40
|
-
"@syncfusion/ej2-calendars": "~23.1.
|
|
40
|
+
"@syncfusion/ej2-calendars": "~23.1.38",
|
|
41
41
|
"@syncfusion/ej2-data": "~23.1.36",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~23.1.
|
|
43
|
-
"@syncfusion/ej2-grids": "~23.1.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~23.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~23.1.38",
|
|
43
|
+
"@syncfusion/ej2-grids": "~23.1.38",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~23.1.38",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~23.1.36",
|
|
46
46
|
"@syncfusion/ej2-lists": "~23.1.36",
|
|
47
47
|
"@syncfusion/ej2-navigations": "~23.1.36",
|
|
48
48
|
"@syncfusion/ej2-notifications": "~23.1.36",
|
|
49
|
-
"@syncfusion/ej2-popups": "~23.1.
|
|
49
|
+
"@syncfusion/ej2-popups": "~23.1.38",
|
|
50
50
|
"@syncfusion/ej2-richtexteditor": "~23.1.36",
|
|
51
51
|
"@syncfusion/ej2-svg-base": "~23.1.36",
|
|
52
52
|
"@syncfusion/ej2-treegrid": "~23.1.36"
|
|
@@ -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": "23.1.
|
|
77
|
+
"version": "23.1.38",
|
|
78
78
|
"sideEffects": false
|
|
79
79
|
}
|
|
@@ -178,16 +178,58 @@ var ConnectorLineEdit = /** @class */ (function () {
|
|
|
178
178
|
ConnectorLineEdit.prototype.idFromPredecessor = function (pre) {
|
|
179
179
|
var preArray = pre.split(',');
|
|
180
180
|
var preIdArray = [];
|
|
181
|
-
var values;
|
|
181
|
+
var values = [];
|
|
182
182
|
var offsetValue;
|
|
183
183
|
var match = [];
|
|
184
184
|
for (var j = 0; j < preArray.length; j++) {
|
|
185
185
|
var strArray = [];
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
var isGUId = false;
|
|
187
|
+
var regex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
188
|
+
var elSplit = preArray[j].split('-');
|
|
189
|
+
var id = void 0;
|
|
190
|
+
if (elSplit.length === 6) {
|
|
191
|
+
elSplit[4] = elSplit[4] + '-' + elSplit[5];
|
|
192
|
+
elSplit.pop();
|
|
193
|
+
}
|
|
194
|
+
if (elSplit.length === 5 && elSplit[4].length > 12) {
|
|
195
|
+
id = preArray[j].substring(0, 36);
|
|
196
|
+
if (regex.test(id)) {
|
|
197
|
+
isGUId = true;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (isGUId) {
|
|
201
|
+
var split = void 0;
|
|
202
|
+
split = elSplit[4].split('+');
|
|
203
|
+
var spliceLength = void 0;
|
|
204
|
+
if (split.length === 1) {
|
|
205
|
+
values[0] = preArray[j];
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
spliceLength = split[1].length;
|
|
209
|
+
values[0] = preArray[j].slice(0, -(spliceLength + 1));
|
|
210
|
+
values[1] = split[1];
|
|
211
|
+
}
|
|
212
|
+
offsetValue = '+';
|
|
213
|
+
if (elSplit[4].indexOf('-') >= 0) {
|
|
214
|
+
split = elSplit[4].split('-');
|
|
215
|
+
if (split.length === 1) {
|
|
216
|
+
values[0] = preArray[j];
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
spliceLength = split[1].length;
|
|
220
|
+
values[0] = preArray[j].slice(0, -(spliceLength + 1));
|
|
221
|
+
values[1] = split[1];
|
|
222
|
+
}
|
|
223
|
+
offsetValue = '-';
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
values = preArray[j].split('+');
|
|
228
|
+
offsetValue = '+';
|
|
229
|
+
if (preArray[j].indexOf('-') >= 0) {
|
|
230
|
+
values = preArray[j].split('-');
|
|
231
|
+
offsetValue = '-';
|
|
232
|
+
}
|
|
191
233
|
}
|
|
192
234
|
if (!isNullOrUndefined(values[0])) {
|
|
193
235
|
var ids = this.parent.viewType === 'ResourceView' ? this.parent.getTaskIds() : this.parent.ids;
|
|
@@ -814,8 +814,6 @@ var CriticalPath = /** @class */ (function () {
|
|
|
814
814
|
}
|
|
815
815
|
if (element.getElementsByClassName('e-gantt-child-taskbar-inner-div').length > 0) {
|
|
816
816
|
addClass(element.querySelectorAll('.e-gantt-child-taskbar-inner-div'), cls.criticalChildTaskBarInnerDiv);
|
|
817
|
-
var innerDivs = document.querySelector('.e-gantt-child-taskbar-inner-div');
|
|
818
|
-
innerDivs.style.outlineColor = "";
|
|
819
817
|
}
|
|
820
818
|
if (element.getElementsByClassName('e-gantt-child-progressbar-inner-div').length > 0) {
|
|
821
819
|
addClass(element.querySelectorAll('.e-gantt-child-progressbar-inner-div'), taskClass);
|
|
@@ -124,15 +124,58 @@ var Dependency = /** @class */ (function () {
|
|
|
124
124
|
var collection = [];
|
|
125
125
|
var match;
|
|
126
126
|
var isrelationship;
|
|
127
|
-
var values;
|
|
127
|
+
var values = [];
|
|
128
128
|
var offsetValue;
|
|
129
129
|
var predecessorText;
|
|
130
130
|
predecessor.split(',').forEach(function (el) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
131
|
+
var isGUId = false;
|
|
132
|
+
var regex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
133
|
+
var elSplit = el.split('-');
|
|
134
|
+
var id;
|
|
135
|
+
if (elSplit.length === 6) {
|
|
136
|
+
elSplit[4] = elSplit[4] + '-' + elSplit[5];
|
|
137
|
+
elSplit.pop();
|
|
138
|
+
}
|
|
139
|
+
if (elSplit.length === 5 && elSplit[4].length > 12) {
|
|
140
|
+
id = el.substring(0, 36);
|
|
141
|
+
if (regex.test(id)) {
|
|
142
|
+
isGUId = true;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (isGUId) {
|
|
146
|
+
var split = void 0;
|
|
147
|
+
split = elSplit[4].split('+');
|
|
148
|
+
var spliceLength = void 0;
|
|
149
|
+
;
|
|
150
|
+
if (split.length === 1) {
|
|
151
|
+
values[0] = el;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
spliceLength = split[1].length;
|
|
155
|
+
values[0] = el.slice(0, -(spliceLength + 1));
|
|
156
|
+
values[1] = split[1];
|
|
157
|
+
}
|
|
158
|
+
offsetValue = '+';
|
|
159
|
+
if (elSplit[4].indexOf('-') >= 0) {
|
|
160
|
+
split = elSplit[4].split('-');
|
|
161
|
+
if (split.length === 1) {
|
|
162
|
+
values[0] = el;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
spliceLength = split[1].length;
|
|
166
|
+
values[0] = el.slice(0, -(spliceLength + 1));
|
|
167
|
+
values[1] = split[1];
|
|
168
|
+
}
|
|
169
|
+
offsetValue = '-';
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
values = el.split('+');
|
|
174
|
+
offsetValue = '+';
|
|
175
|
+
if (el.indexOf('-') >= 0) {
|
|
176
|
+
values = el.split('-');
|
|
177
|
+
offsetValue = '-';
|
|
178
|
+
}
|
|
136
179
|
}
|
|
137
180
|
match = [];
|
|
138
181
|
var ids = _this.parent.viewType === 'ResourceView' ? _this.parent.getTaskIds() : _this.parent.ids;
|
|
@@ -2235,7 +2235,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
2235
2235
|
tasksData[fieldName] = column.edit.read(inputElement, controlObj.value);
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
else if (
|
|
2238
|
+
else if (column.editType === 'booleanedit') {
|
|
2239
2239
|
if (inputElement instanceof HTMLInputElement && inputElement.checked === true) {
|
|
2240
2240
|
tasksData[fieldName] = true;
|
|
2241
2241
|
}
|
|
@@ -2987,6 +2987,9 @@ var Edit = /** @class */ (function () {
|
|
|
2987
2987
|
_this.parent.flatData[_this.parent.getTaskIds().indexOf('T' + args.data[tasks.id])] : _this.parent.getRecordByID(args.data[tasks.id]);
|
|
2988
2988
|
if (!isNullOrUndefined(ganttData)) {
|
|
2989
2989
|
_this.validateUpdateValues(args.newTaskData, ganttData, true);
|
|
2990
|
+
_this.parent.dateValidationModule.calculateEndDate(ganttData);
|
|
2991
|
+
_this.parent.dataOperation.updateWidthLeft(ganttData);
|
|
2992
|
+
_this.parent.dataOperation.updateParentItems(ganttData);
|
|
2990
2993
|
}
|
|
2991
2994
|
if (!isNullOrUndefined(args.data["" + tempTaskID])) {
|
|
2992
2995
|
if (args.data[tempTaskID] != args.data['ganttProperties']['taskId']) {
|
|
@@ -234,7 +234,12 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
234
234
|
};
|
|
235
235
|
// eslint-disable-next-line
|
|
236
236
|
TaskbarEdit.prototype.mouseLeaveHandler = function (e) {
|
|
237
|
-
this.
|
|
237
|
+
if (this.taskBarEditAction === "ChildDrag" || this.taskBarEditAction === "ParentDrag" || this.taskBarEditAction === "ProgressResizing" || this.taskBarEditAction === "LeftResizing" || this.taskBarEditAction === "RightResizing") {
|
|
238
|
+
this.dragMouseLeave = false;
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
this.dragMouseLeave = true;
|
|
242
|
+
}
|
|
238
243
|
};
|
|
239
244
|
/**
|
|
240
245
|
* To update taskbar edited elements on mouse down action.
|
|
@@ -1498,7 +1503,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
|
|
|
1498
1503
|
var milliSecondsPerPixel = (24 * 60 * 60 * 1000) / this.parent.perDayWidth;
|
|
1499
1504
|
pStartDate.setTime(pStartDate.getTime() + (left * milliSecondsPerPixel));
|
|
1500
1505
|
/* To render the milestone in proper date while editing */
|
|
1501
|
-
if (isMilestone && !isNullOrUndefined(property.
|
|
1506
|
+
if (isMilestone && !isNullOrUndefined(property.predecessorsName) && property.predecessorsName !== '') {
|
|
1502
1507
|
pStartDate.setDate(pStartDate.getDate() - 1);
|
|
1503
1508
|
this.parent.dateValidationModule.setTime(this.parent.defaultEndTime, pStartDate);
|
|
1504
1509
|
pStartDate = this.parent.dateValidationModule.checkStartDate(pStartDate, property, true);
|
|
@@ -970,6 +970,12 @@ var GanttChart = /** @class */ (function () {
|
|
|
970
970
|
else {
|
|
971
971
|
this.isCollapseAll = true;
|
|
972
972
|
this.parent.treeGrid.collapseAll();
|
|
973
|
+
if (this.isCollapseAll && !this.parent.allowTaskbarOverlap && this.parent.viewType === 'ResourceView') {
|
|
974
|
+
var treeGridContentHeight = this.parent.enableRtl ? this.parent['element'].getElementsByClassName('e-content')[2].children[0]['offsetHeight'] :
|
|
975
|
+
this.parent['element'].getElementsByClassName('e-content')[0].children[0]['offsetHeight'];
|
|
976
|
+
this.parent.contentHeight = treeGridContentHeight;
|
|
977
|
+
document.getElementsByClassName('e-chart-rows-container')[0]['style'].height = this.parent.contentHeight + 'px';
|
|
978
|
+
}
|
|
973
979
|
}
|
|
974
980
|
this.isExpandAll = false;
|
|
975
981
|
this.isCollapseAll = false;
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -794,8 +794,6 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
794
794
|
removeClass(ganttChartElement.querySelectorAll('.e-critical-milestone'), cls.criticalMilestone);
|
|
795
795
|
removeClass(this.element.querySelectorAll('.e-connector-line'), cls.criticalConnectorLineSVG);
|
|
796
796
|
removeClass(this.element.querySelectorAll('.e-connector-line-arrow'), cls.criticalConnectorArrowSVG);
|
|
797
|
-
var innerDivs = document.querySelector('.e-gantt-child-taskbar-inner-div');
|
|
798
|
-
innerDivs.style.outlineColor = "";
|
|
799
797
|
};
|
|
800
798
|
Gantt.prototype.wireEvents = function () {
|
|
801
799
|
if (this.allowKeyboard) {
|
|
@@ -841,10 +839,12 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
841
839
|
var pane2 = this.splitterModule.splitterObject.element.querySelectorAll('.e-pane')[1];
|
|
842
840
|
this.splitterModule.splitterPreviousPositionGrid = pane1.scrollWidth + 1 + 'px';
|
|
843
841
|
this.splitterModule.splitterPreviousPositionChart = pane2.scrollWidth + 1 + 'px';
|
|
844
|
-
this.splitterModule.splitterObject.paneSettings[
|
|
845
|
-
|
|
842
|
+
this.splitterModule.splitterObject.paneSettings[1].size = (this.ganttWidth - parseInt(this.splitterModule.splitterPreviousPositionGrid) - 4) + 'px';
|
|
843
|
+
var proxy_1 = this;
|
|
846
844
|
if (this.timelineModule.isZoomToFit) {
|
|
847
|
-
|
|
845
|
+
setTimeout(function () {
|
|
846
|
+
proxy_1.timelineModule.processZoomToFit();
|
|
847
|
+
}, 0);
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
};
|
|
@@ -71,6 +71,7 @@ var Splitter = /** @class */ (function () {
|
|
|
71
71
|
var leftPane = args.pane[0];
|
|
72
72
|
_this.splitterPreviousPositionGrid = leftPane.scrollWidth + 1 + 'px';
|
|
73
73
|
_this.splitterObject.paneSettings[0].size = _this.getSpliterPositionInPercentage(_this.splitterPreviousPositionGrid);
|
|
74
|
+
_this.splitterObject.paneSettings[1].size = (_this.parent.ganttWidth - parseInt(_this.splitterPreviousPositionGrid) - 4) + 'px';
|
|
74
75
|
var callBackPromise = new Deferred();
|
|
75
76
|
_this.parent.trigger('splitterResized', args, function (splitterResizedArgs) {
|
|
76
77
|
if (splitterResizedArgs.cancel === true) {
|
|
@@ -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 : this.taskBarHeight - 10)) + 'px;height:' +
|
|
671
671
|
((this.parent.renderBaseline ? this.taskBarHeight : this.taskBarHeight - 10)) + '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) + 1)) + 'px;' + (this.baselineColor ? 'background-color: ' + this.baselineColor + ';' : '') + 'margin-top:' + ((-Math.floor(this.parent.rowHeight - this.milestoneMarginTop) + baselineMilestoneHeight) + 2) + 'px"> </div>';
|
|
673
673
|
return this.createDivElement(template);
|
|
674
674
|
};
|
|
675
675
|
/**
|
|
@@ -1644,7 +1644,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1644
1644
|
getComputedStyle(taskbarElement.querySelector(classCollections[0])).backgroundColor;
|
|
1645
1645
|
args.taskbarBorderColor = isNullOrUndefined(childTask) ? null : taskbarElement.classList.contains(cls.traceChildTaskBar) ?
|
|
1646
1646
|
getComputedStyle(taskbarElement).backgroundColor :
|
|
1647
|
-
getComputedStyle(taskbarElement.querySelector(classCollections[0])).
|
|
1647
|
+
getComputedStyle(taskbarElement.querySelector(classCollections[0])).outlineColor;
|
|
1648
1648
|
args.progressBarBgColor = isNullOrUndefined(progressTask) ? null :
|
|
1649
1649
|
taskbarElement.classList.contains(cls.traceChildProgressBar) ?
|
|
1650
1650
|
getComputedStyle(taskbarElement).backgroundColor :
|
|
@@ -1693,7 +1693,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1693
1693
|
*/
|
|
1694
1694
|
ChartRows.prototype.updateQueryTaskbarInfoArgs = function (args, rowElement, taskBarElement) {
|
|
1695
1695
|
var trElement = args.rowElement;
|
|
1696
|
-
var taskbarElement = args.taskbarElement;
|
|
1696
|
+
var taskbarElement = this.parent.enableVirtualization ? args.rowElement : args.taskbarElement;
|
|
1697
1697
|
var classCollections = this.getClassName(args);
|
|
1698
1698
|
var segmentRowElement;
|
|
1699
1699
|
if (args.data.ganttProperties.segments && args.data.ganttProperties.segments.length > 0) {
|
|
@@ -1714,18 +1714,6 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
1716
|
else if (taskbarElement) {
|
|
1717
|
-
if (taskbarElement && this.parent.enableVirtualization && !args.data.expanded) {
|
|
1718
|
-
var childElement = trElement.querySelector('.' + cls.collapseParent);
|
|
1719
|
-
if (childElement) {
|
|
1720
|
-
for (var i = 0; i < childElement.childNodes.length; i++) {
|
|
1721
|
-
var taskbar = childElement.childNodes[i];
|
|
1722
|
-
var mainTaskbar = taskbar.querySelector('.' + cls.traceChildTaskBar);
|
|
1723
|
-
if (mainTaskbar) {
|
|
1724
|
-
mainTaskbar.style.backgroundColor = args.taskbarBgColor;
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
1717
|
if (taskbarElement.querySelector(classCollections[0]) &&
|
|
1730
1718
|
getComputedStyle(taskbarElement.querySelector(classCollections[0])).backgroundColor !== args.taskbarBgColor) {
|
|
1731
1719
|
taskbarElement.querySelector(classCollections[0]).style.backgroundColor = args.taskbarBgColor;
|
|
@@ -1951,8 +1939,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1951
1939
|
if (!this.parent.ganttChartModule.isExpandAll && !this.parent.ganttChartModule.isCollapseAll) {
|
|
1952
1940
|
this.parent.treeGrid.grid.setRowData(dataId, data);
|
|
1953
1941
|
}
|
|
1954
|
-
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && !data.expanded && this.parent.enableMultiTaskbar && !this.parent.allowTaskbarOverlap
|
|
1955
|
-
!this.parent.ganttChartModule.isCollapseAll && !this.parent.ganttChartModule.isExpandAll) {
|
|
1942
|
+
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && !data.expanded && this.parent.enableMultiTaskbar && !this.parent.allowTaskbarOverlap) {
|
|
1956
1943
|
this.updateDragDropRecords(selectedItem, tr);
|
|
1957
1944
|
}
|
|
1958
1945
|
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && this.parent.showOverAllocation && !this.parent.allowTaskbarOverlap) {
|
|
@@ -1975,6 +1962,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1975
1962
|
addClass([cloneElement], 'collpse-parent-border');
|
|
1976
1963
|
var id = tRow.querySelector('.' + cls.taskBarMainContainer).getAttribute('rowUniqueId');
|
|
1977
1964
|
var ganttData = this.parent.getRecordByID(id);
|
|
1965
|
+
var mainTaskbar = (cloneElement.querySelector('.e-gantt-child-taskbar'));
|
|
1966
|
+
if (this.parent.queryTaskbarInfo) {
|
|
1967
|
+
this.triggerQueryTaskbarInfoByIndex(mainTaskbar, ganttData);
|
|
1968
|
+
}
|
|
1978
1969
|
var zIndex = "";
|
|
1979
1970
|
if (ganttData && !isNullOrUndefined(ganttData.ganttProperties.eOverlapIndex)) {
|
|
1980
1971
|
zIndex = (ganttData.ganttProperties.eOverlapIndex).toString();
|
|
@@ -10,6 +10,7 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
10
10
|
this.transform = '';
|
|
11
11
|
this.connectorLinePath = '';
|
|
12
12
|
this.arrowPath = '';
|
|
13
|
+
this.taskLineValue = 0;
|
|
13
14
|
this.expandedRecords = [];
|
|
14
15
|
this.parent = ganttObj;
|
|
15
16
|
this.dependencyViewContainer =
|
|
@@ -849,10 +850,10 @@ var ConnectorLine = /** @class */ (function () {
|
|
|
849
850
|
* @private
|
|
850
851
|
*/
|
|
851
852
|
ConnectorLine.prototype.getConnectorLineTooltipInnerTd = function (fromTaskName, fromPredecessorText, toTaskName, toPredecessorText) {
|
|
852
|
-
var innerTd = '<tr id="fromPredecessor"><td style="padding: 4px;">' + this.parent.localeObj.getConstant('from') + '</td><td> ';
|
|
853
|
+
var innerTd = '<tr id="fromPredecessor"><td style="padding: 4px;width: 30px;">' + this.parent.localeObj.getConstant('from') + '</td><td> ';
|
|
853
854
|
innerTd = innerTd + fromTaskName + ' </td><td style="padding: 2px;"> ' + this.parent.localeObj.getConstant(fromPredecessorText) + ' </td> </tr>';
|
|
854
855
|
innerTd = innerTd + '<tr id="toPredecessor"><td style="padding: 4px;">' + this.parent.localeObj.getConstant('to') + '</td><td> ' + toTaskName;
|
|
855
|
-
innerTd = innerTd + ' </td><td style="padding: 2px;"> ' + this.parent.localeObj.getConstant(toPredecessorText) + ' </td></tr></tbody><table>';
|
|
856
|
+
innerTd = innerTd + ' </td><td style="padding: 2px;width: 30px;"> ' + this.parent.localeObj.getConstant(toPredecessorText) + ' </td></tr></tbody><table>';
|
|
856
857
|
return innerTd;
|
|
857
858
|
};
|
|
858
859
|
/**
|