@syncfusion/ej2-gantt 20.4.38 → 20.4.40
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 +14 -0
- package/README.md +64 -52
- 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 +110 -35
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +110 -35
- 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 +21 -24
- package/src/gantt/actions/dependency.js +5 -2
- package/src/gantt/base/gantt.js +9 -3
- package/src/gantt/base/task-processor.js +17 -3
- package/src/gantt/renderer/chart-rows.js +78 -26
- package/src/gantt/renderer/timeline.js +1 -1
- package/styles/bootstrap4.css +1 -1
- package/styles/gantt/bootstrap4.css +1 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.40
|
|
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@20.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@20.4.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-gM3+JGYvnZSVOGkpAFz5ejlVskHwO7+pntVfsAGK2ActwYhfGVni370TiBV5LKVb3T2WqpjXJLZKntsgliTfvw==",
|
|
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-20.4.38.tgz",
|
|
27
|
+
"_shasum": "a3b7546d7d13d249db1ea0e2c4de3b709ee59521",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,37 +35,34 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.4.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.4.
|
|
43
|
-
"@syncfusion/ej2-grids": "~20.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~20.4.
|
|
46
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
48
|
-
"@syncfusion/ej2-notifications": "~20.4.
|
|
49
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
50
|
-
"@syncfusion/ej2-richtexteditor": "~20.4.
|
|
51
|
-
"@syncfusion/ej2-treegrid": "~20.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.4.40",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.4.40",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.4.40",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.4.40",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.4.40",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.4.40",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.4.40",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~20.4.40",
|
|
46
|
+
"@syncfusion/ej2-lists": "~20.4.40",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.4.40",
|
|
48
|
+
"@syncfusion/ej2-notifications": "~20.4.40",
|
|
49
|
+
"@syncfusion/ej2-popups": "~20.4.40",
|
|
50
|
+
"@syncfusion/ej2-richtexteditor": "~20.4.40",
|
|
51
|
+
"@syncfusion/ej2-treegrid": "~20.4.40"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
54
54
|
"description": "Essential JS 2 Gantt Component",
|
|
55
55
|
"devDependencies": {},
|
|
56
56
|
"es2015": "./dist/es6/ej2-gantt.es5.js",
|
|
57
|
-
"homepage": "https://
|
|
57
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
58
58
|
"keywords": [
|
|
59
59
|
"ej2",
|
|
60
60
|
"syncfusion",
|
|
61
|
-
"ej2-gantt",
|
|
62
|
-
"web-components",
|
|
63
61
|
"JavaScript",
|
|
64
62
|
"TypeScript",
|
|
65
63
|
"gantt",
|
|
66
|
-
"ganttChart",
|
|
67
64
|
"gantt-chart",
|
|
68
|
-
"
|
|
65
|
+
"project-management"
|
|
69
66
|
],
|
|
70
67
|
"license": "SEE LICENSE IN license",
|
|
71
68
|
"main": "./dist/ej2-gantt.umd.min.js",
|
|
@@ -76,6 +73,6 @@
|
|
|
76
73
|
"url": "git+https://github.com/syncfusion/ej2-gantt.git"
|
|
77
74
|
},
|
|
78
75
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "20.4.
|
|
76
|
+
"version": "20.4.40",
|
|
80
77
|
"sideEffects": false
|
|
81
78
|
}
|
|
@@ -370,9 +370,9 @@ var Dependency = /** @class */ (function () {
|
|
|
370
370
|
var flatData = this.parent.flatData;
|
|
371
371
|
var totLength = this.parent.flatData.length;
|
|
372
372
|
for (var count = 0; count < totLength; count++) {
|
|
373
|
-
if (flatData[count].ganttProperties.
|
|
373
|
+
if (flatData[count].ganttProperties.predecessorsName) {
|
|
374
374
|
this.validatePredecessorDates(flatData[count]);
|
|
375
|
-
if (flatData[count].hasChildRecords && this.parent.editModule) {
|
|
375
|
+
if (flatData[count].hasChildRecords && this.parent.editModule && !this.parent.allowUnscheduledTasks) {
|
|
376
376
|
this.parent.editModule['updateChildItems'](flatData[count]);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -384,6 +384,9 @@ var Dependency = /** @class */ (function () {
|
|
|
384
384
|
for (var i = parentPredecessorLength - 1; i >= 0; i--) {
|
|
385
385
|
var item = this.parentPredecessors[i];
|
|
386
386
|
this.validatePredecessorDates(item);
|
|
387
|
+
if (item.ganttProperties.startDate) {
|
|
388
|
+
this.parent.editModule['updateChildItems'](item);
|
|
389
|
+
}
|
|
387
390
|
}
|
|
388
391
|
}
|
|
389
392
|
};
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -2316,18 +2316,24 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
2316
2316
|
*/
|
|
2317
2317
|
/* eslint-disable-next-line */
|
|
2318
2318
|
Gantt.prototype.setRecordValue = function (field, value, record, isTaskData) {
|
|
2319
|
+
value = isUndefined(value) ? null : value;
|
|
2319
2320
|
if (this.isOnEdit || this.isOnDelete) {
|
|
2320
2321
|
this.makeCloneData(field, record, isTaskData);
|
|
2321
|
-
var
|
|
2322
|
+
var ganttData = isTaskData ? record : record.ganttProperties;
|
|
2323
|
+
var id = ganttData.rowUniqueID;
|
|
2322
2324
|
var task = this.getRecordByID(id);
|
|
2323
|
-
|
|
2325
|
+
var isValid = false;
|
|
2326
|
+
if (isNullOrUndefined(value) || (!isNullOrUndefined(value) && !isNullOrUndefined(ganttData[field]) && (value instanceof Date ? value.getTime() !==
|
|
2327
|
+
ganttData[field].getTime() : ganttData[field] !== value))) {
|
|
2328
|
+
isValid = true;
|
|
2329
|
+
}
|
|
2330
|
+
if (task && ((this.editedRecords.indexOf(task) === -1 && isValid) || this.editedRecords.length === 0)) {
|
|
2324
2331
|
this.editedRecords.push(task);
|
|
2325
2332
|
if (this.enableImmutableMode) {
|
|
2326
2333
|
this.modifiedRecords.push(task);
|
|
2327
2334
|
}
|
|
2328
2335
|
}
|
|
2329
2336
|
}
|
|
2330
|
-
value = isUndefined(value) ? null : value;
|
|
2331
2337
|
setValue(field, value, record);
|
|
2332
2338
|
};
|
|
2333
2339
|
Gantt.prototype.makeCloneData = function (field, record, isTaskData) {
|
|
@@ -1058,7 +1058,7 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
else if (endDate) {
|
|
1060
1060
|
sDate = new Date(endDate.getTime());
|
|
1061
|
-
milestone = true;
|
|
1061
|
+
milestone = isNullOrUndefined(startDate) && this.parent.allowUnscheduledTasks ? false : true;
|
|
1062
1062
|
}
|
|
1063
1063
|
else {
|
|
1064
1064
|
sDate = this.getValidStartDate(ganttProp);
|
|
@@ -1181,6 +1181,9 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
1181
1181
|
else if (isMilestone && this.getSecondsInDecimal(date) === this.parent.defaultEndTime) {
|
|
1182
1182
|
date.setHours(24);
|
|
1183
1183
|
}
|
|
1184
|
+
else if (this.getSecondsInDecimal(date) === this.parent.defaultEndTime && this.parent.allowUnscheduledTasks) {
|
|
1185
|
+
date.setHours(22);
|
|
1186
|
+
}
|
|
1184
1187
|
}
|
|
1185
1188
|
var timelineStartDate = this.parent.timelineModule.timelineStartDate;
|
|
1186
1189
|
if (timelineStartDate) {
|
|
@@ -2161,7 +2164,12 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2161
2164
|
durationInDay = (childGanttRecord.ganttProperties.duration / (this.parent.secondsPerDay / 60));
|
|
2162
2165
|
break;
|
|
2163
2166
|
default:
|
|
2164
|
-
|
|
2167
|
+
if (childGanttRecord.ganttProperties.duration < 1) {
|
|
2168
|
+
durationInDay = (childGanttRecord.ganttProperties.duration / (this.parent.secondsPerDay / 3600));
|
|
2169
|
+
}
|
|
2170
|
+
else {
|
|
2171
|
+
durationInDay = childGanttRecord.ganttProperties.duration;
|
|
2172
|
+
}
|
|
2165
2173
|
}
|
|
2166
2174
|
if (childGanttRecord.hasChildRecords) {
|
|
2167
2175
|
setValue('totalProgress', childGanttRecord.ganttProperties.totalProgress, progressValues);
|
|
@@ -2238,7 +2246,13 @@ var TaskProcessor = /** @class */ (function (_super) {
|
|
|
2238
2246
|
if (!childData.ganttProperties.isMilestone && isScheduledTask(childData.ganttProperties)) {
|
|
2239
2247
|
progressValues = this.getParentProgress(childData);
|
|
2240
2248
|
totalProgress += getValue('totalProgress', progressValues);
|
|
2241
|
-
|
|
2249
|
+
if (childData[this.parent.taskFields.duration] < 1) {
|
|
2250
|
+
totalDuration += getValue('totalDuration', progressValues);
|
|
2251
|
+
totalDuration = Number(totalDuration.toFixed(4));
|
|
2252
|
+
}
|
|
2253
|
+
else {
|
|
2254
|
+
totalDuration += getValue('totalDuration', progressValues);
|
|
2255
|
+
}
|
|
2242
2256
|
}
|
|
2243
2257
|
else {
|
|
2244
2258
|
milestoneCount++;
|
|
@@ -1284,6 +1284,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
this.parent.ganttChartModule.renderRangeContainer(this.parent.currentViewData);
|
|
1286
1286
|
}
|
|
1287
|
+
this.parent.ganttChartModule.updateLastRowBottomWidth();
|
|
1287
1288
|
};
|
|
1288
1289
|
/**
|
|
1289
1290
|
* To render taskbars.
|
|
@@ -1392,9 +1393,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1392
1393
|
}
|
|
1393
1394
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
1394
1395
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
1395
|
-
taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
1396
|
+
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()))
|
|
1396
1397
|
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
1397
|
-
this.templateData.ganttProperties.isMilestone)
|
|
1398
|
+
this.templateData.ganttProperties.isMilestone))
|
|
1398
1399
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1399
1400
|
}
|
|
1400
1401
|
}
|
|
@@ -1405,9 +1406,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1405
1406
|
}
|
|
1406
1407
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
1407
1408
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
1408
|
-
taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
1409
|
+
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()))
|
|
1409
1410
|
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
1410
|
-
this.templateData.ganttProperties.isMilestone)
|
|
1411
|
+
this.templateData.ganttProperties.isMilestone))
|
|
1411
1412
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1412
1413
|
}
|
|
1413
1414
|
}
|
|
@@ -1453,9 +1454,9 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1453
1454
|
}
|
|
1454
1455
|
if (this.parent.renderBaseline && this.templateData.ganttProperties.baselineStartDate &&
|
|
1455
1456
|
this.templateData.ganttProperties.baselineEndDate) {
|
|
1456
|
-
taskBaselineTemplateNode = ((!isNullOrUndefined(this.templateData.ganttProperties.baselineStartDate) && !isNullOrUndefined(this.templateData.ganttProperties.startDate) && (this.templateData.ganttProperties.baselineStartDate.getTime() === this.templateData.ganttProperties.startDate.getTime()))
|
|
1457
|
+
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()))
|
|
1457
1458
|
&& (!isNullOrUndefined(this.templateData.ganttProperties.baselineEndDate) && !isNullOrUndefined(this.templateData.ganttProperties.endDate) && (this.templateData.ganttProperties.baselineEndDate.toLocaleDateString() === this.templateData.ganttProperties.endDate.toLocaleDateString())) &&
|
|
1458
|
-
this.templateData.ganttProperties.isMilestone)
|
|
1459
|
+
this.templateData.ganttProperties.isMilestone))
|
|
1459
1460
|
? this.getMilestoneBaselineNode() : this.getTaskBaselineNode();
|
|
1460
1461
|
}
|
|
1461
1462
|
}
|
|
@@ -1555,6 +1556,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1555
1556
|
var taskbarElement = !isNullOrUndefined(data.ganttProperties.segments) && data.ganttProperties.segments.length > 0 ? trElement :
|
|
1556
1557
|
trElement.querySelector('.' + cls.taskBarMainContainer);
|
|
1557
1558
|
var rowElement;
|
|
1559
|
+
var segmentRowElement;
|
|
1560
|
+
if (data.ganttProperties.segments && data.ganttProperties.segments.length > 0) {
|
|
1561
|
+
segmentRowElement = trElement.parentElement.parentElement.parentElement;
|
|
1562
|
+
}
|
|
1558
1563
|
var triggerTaskbarElement;
|
|
1559
1564
|
var args = {
|
|
1560
1565
|
data: data,
|
|
@@ -1567,7 +1572,8 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1567
1572
|
args.milestoneColor = taskbarElement.querySelector(classCollections[0]) ?
|
|
1568
1573
|
getComputedStyle(taskbarElement.querySelector(classCollections[0])).borderBottomColor : null;
|
|
1569
1574
|
args.baselineColor = trElement.querySelector(classCollections[1]) ?
|
|
1570
|
-
getComputedStyle(trElement.querySelector(classCollections[1])).borderBottomColor :
|
|
1575
|
+
getComputedStyle(trElement.querySelector(classCollections[1])).borderBottomColor :
|
|
1576
|
+
(trElement.querySelector('.' + cls.baselineBar) ? getComputedStyle(trElement.querySelector('.' + cls.baselineBar)).backgroundColor : null);
|
|
1571
1577
|
}
|
|
1572
1578
|
else {
|
|
1573
1579
|
var childTask = taskbarElement.querySelector(classCollections[0]);
|
|
@@ -1584,17 +1590,33 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1584
1590
|
getComputedStyle(taskbarElement.querySelector(classCollections[1])).backgroundColor;
|
|
1585
1591
|
// args.progressBarBorderColor = taskbarElement.querySelector(progressBarClass) ?
|
|
1586
1592
|
// getComputedStyle(taskbarElement.querySelector(progressBarClass)).borderColor : null;
|
|
1587
|
-
|
|
1588
|
-
|
|
1593
|
+
if (segmentRowElement) {
|
|
1594
|
+
args.baselineColor = segmentRowElement.querySelector('.' + cls.baselineBar) ?
|
|
1595
|
+
getComputedStyle(segmentRowElement.querySelector('.' + cls.baselineBar)).backgroundColor : null;
|
|
1596
|
+
}
|
|
1597
|
+
else {
|
|
1598
|
+
args.baselineColor = trElement.querySelector('.' + cls.baselineBar) ?
|
|
1599
|
+
getComputedStyle(trElement.querySelector('.' + cls.baselineBar)).backgroundColor : null;
|
|
1600
|
+
}
|
|
1589
1601
|
args.taskLabelColor = taskbarElement.querySelector('.' + cls.taskLabel) ?
|
|
1590
1602
|
getComputedStyle(taskbarElement.querySelector('.' + cls.taskLabel)).color : null;
|
|
1591
1603
|
}
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1604
|
+
if (segmentRowElement) {
|
|
1605
|
+
args.rightLabelColor = segmentRowElement.querySelector('.' + cls.rightLabelContainer) &&
|
|
1606
|
+
(segmentRowElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label) ?
|
|
1607
|
+
getComputedStyle((segmentRowElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label)).color : null;
|
|
1608
|
+
args.leftLabelColor = segmentRowElement.querySelector('.' + cls.leftLabelContainer) &&
|
|
1609
|
+
(segmentRowElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label) ?
|
|
1610
|
+
getComputedStyle((segmentRowElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label)).color : null;
|
|
1611
|
+
}
|
|
1612
|
+
else {
|
|
1613
|
+
args.rightLabelColor = trElement.querySelector('.' + cls.rightLabelContainer) &&
|
|
1614
|
+
(trElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label) ?
|
|
1615
|
+
getComputedStyle((trElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label)).color : null;
|
|
1616
|
+
args.leftLabelColor = trElement.querySelector('.' + cls.leftLabelContainer) &&
|
|
1617
|
+
(trElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label) ?
|
|
1618
|
+
getComputedStyle((trElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label)).color : null;
|
|
1619
|
+
}
|
|
1598
1620
|
this.parent.trigger('queryTaskbarInfo', args, function (taskbarArgs) {
|
|
1599
1621
|
_this.updateQueryTaskbarInfoArgs(taskbarArgs, rowElement, triggerTaskbarElement);
|
|
1600
1622
|
});
|
|
@@ -1612,6 +1634,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1612
1634
|
var trElement = args.rowElement;
|
|
1613
1635
|
var taskbarElement = args.taskbarElement;
|
|
1614
1636
|
var classCollections = this.getClassName(args);
|
|
1637
|
+
var segmentRowElement;
|
|
1638
|
+
if (args.data.ganttProperties.segments && args.data.ganttProperties.segments.length > 0) {
|
|
1639
|
+
segmentRowElement = trElement.parentElement.parentElement.parentElement;
|
|
1640
|
+
}
|
|
1615
1641
|
if (args.taskbarType === 'Milestone') {
|
|
1616
1642
|
if (taskbarElement.querySelector(classCollections[0]) &&
|
|
1617
1643
|
getComputedStyle(taskbarElement.querySelector(classCollections[0])).borderBottomColor !== args.milestoneColor) {
|
|
@@ -1623,6 +1649,10 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1623
1649
|
trElement.querySelector(classCollections[1]).style.borderBottomColor = args.baselineColor;
|
|
1624
1650
|
trElement.querySelector('.' + cls.baselineMilestoneBottom).style.borderTopColor = args.baselineColor;
|
|
1625
1651
|
}
|
|
1652
|
+
if (trElement.querySelector('.' + cls.baselineBar) &&
|
|
1653
|
+
getComputedStyle(trElement.querySelector('.' + cls.baselineBar)).borderTopColor !== args.baselineColor) {
|
|
1654
|
+
trElement.querySelector('.' + cls.baselineBar).style.backgroundColor = args.baselineColor;
|
|
1655
|
+
}
|
|
1626
1656
|
}
|
|
1627
1657
|
else {
|
|
1628
1658
|
if (taskbarElement.querySelector(classCollections[0]) &&
|
|
@@ -1657,20 +1687,42 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1657
1687
|
getComputedStyle(taskbarElement.querySelector('.' + cls.taskLabel)).color !== args.taskLabelColor) {
|
|
1658
1688
|
taskbarElement.querySelector('.' + cls.taskLabel).style.color = args.taskLabelColor;
|
|
1659
1689
|
}
|
|
1660
|
-
if (
|
|
1661
|
-
|
|
1662
|
-
|
|
1690
|
+
if (segmentRowElement) {
|
|
1691
|
+
if (segmentRowElement.querySelector('.' + cls.baselineBar) &&
|
|
1692
|
+
getComputedStyle(segmentRowElement.querySelector('.' + cls.baselineBar)).backgroundColor !== args.baselineColor) {
|
|
1693
|
+
segmentRowElement.querySelector('.' + cls.baselineBar).style.backgroundColor = args.baselineColor;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
else {
|
|
1697
|
+
if (trElement.querySelector('.' + cls.baselineBar) &&
|
|
1698
|
+
getComputedStyle(trElement.querySelector('.' + cls.baselineBar)).backgroundColor !== args.baselineColor) {
|
|
1699
|
+
trElement.querySelector('.' + cls.baselineBar).style.backgroundColor = args.baselineColor;
|
|
1700
|
+
}
|
|
1663
1701
|
}
|
|
1664
1702
|
}
|
|
1665
|
-
if (
|
|
1666
|
-
(
|
|
1667
|
-
|
|
1668
|
-
|
|
1703
|
+
if (segmentRowElement) {
|
|
1704
|
+
if (segmentRowElement.querySelector('.' + cls.leftLabelContainer) &&
|
|
1705
|
+
(segmentRowElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label) &&
|
|
1706
|
+
getComputedStyle((segmentRowElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label)).color !== args.leftLabelColor) {
|
|
1707
|
+
(segmentRowElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label).style.color = args.leftLabelColor;
|
|
1708
|
+
}
|
|
1709
|
+
if (segmentRowElement.querySelector('.' + cls.rightLabelContainer) &&
|
|
1710
|
+
(segmentRowElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label) &&
|
|
1711
|
+
getComputedStyle((segmentRowElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label)).color !== args.rightLabelColor) {
|
|
1712
|
+
(segmentRowElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label).style.color = args.rightLabelColor;
|
|
1713
|
+
}
|
|
1669
1714
|
}
|
|
1670
|
-
|
|
1671
|
-
(trElement.querySelector('.' + cls.
|
|
1672
|
-
|
|
1673
|
-
|
|
1715
|
+
else {
|
|
1716
|
+
if (trElement.querySelector('.' + cls.leftLabelContainer) &&
|
|
1717
|
+
(trElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label) &&
|
|
1718
|
+
getComputedStyle((trElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label)).color !== args.leftLabelColor) {
|
|
1719
|
+
(trElement.querySelector('.' + cls.leftLabelContainer)).querySelector('.' + cls.label).style.color = args.leftLabelColor;
|
|
1720
|
+
}
|
|
1721
|
+
if (trElement.querySelector('.' + cls.rightLabelContainer) &&
|
|
1722
|
+
(trElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label) &&
|
|
1723
|
+
getComputedStyle((trElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label)).color !== args.rightLabelColor) {
|
|
1724
|
+
(trElement.querySelector('.' + cls.rightLabelContainer)).querySelector('.' + cls.label).style.color = args.rightLabelColor;
|
|
1725
|
+
}
|
|
1674
1726
|
}
|
|
1675
1727
|
};
|
|
1676
1728
|
ChartRows.prototype.getClassName = function (args) {
|
|
@@ -37,7 +37,7 @@ var Timeline = /** @class */ (function () {
|
|
|
37
37
|
this.totalTimelineWidth = 0;
|
|
38
38
|
this.customTimelineSettings = null;
|
|
39
39
|
this.parent.isTimelineRoundOff = this.isZoomToFit ? false : isNullOrUndefined(this.parent.projectStartDate) ? true : false;
|
|
40
|
-
if (this.parent.enablePersistence) {
|
|
40
|
+
if (this.parent.enablePersistence && this.parent.isLoad) {
|
|
41
41
|
this.parent.timelineSettings = this.parent.currentZoomingLevel;
|
|
42
42
|
}
|
|
43
43
|
};
|
package/styles/bootstrap4.css
CHANGED