@syncfusion/ej2-gantt 20.2.36 → 20.2.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 +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 +38 -16
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +38 -16
- 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 +18 -18
- package/src/gantt/base/date-processor.js +1 -1
- package/src/gantt/base/gantt-chart.js +3 -0
- package/src/gantt/renderer/timeline.d.ts +1 -0
- package/src/gantt/renderer/timeline.js +34 -15
- package/styles/fluent-dark.css +8 -8
- package/styles/gantt/fluent-dark.css +8 -8
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.38
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@20.2.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-7nClwwDPnrsSRqXw3okXeWajAGJUG7LDDgYZHbaTLopCL9EasuMZ+aFbFCqM2Ly9GXjONYH0Wo4J2kQ7VPrVBw==",
|
|
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-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.2.36.tgz",
|
|
27
|
+
"_shasum": "9df96357502324bbdb4eeef866fe6f62a28c6eef",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~20.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~20.2.
|
|
41
|
-
"@syncfusion/ej2-data": "~20.2.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~20.2.
|
|
43
|
-
"@syncfusion/ej2-grids": "~20.2.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~20.2.
|
|
45
|
-
"@syncfusion/ej2-layouts": "~20.2.
|
|
46
|
-
"@syncfusion/ej2-lists": "~20.2.
|
|
47
|
-
"@syncfusion/ej2-navigations": "~20.2.
|
|
48
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
49
|
-
"@syncfusion/ej2-richtexteditor": "~20.2.
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~20.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~20.2.38",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~20.2.38",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~20.2.38",
|
|
41
|
+
"@syncfusion/ej2-data": "~20.2.38",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~20.2.38",
|
|
43
|
+
"@syncfusion/ej2-grids": "~20.2.38",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~20.2.38",
|
|
45
|
+
"@syncfusion/ej2-layouts": "~20.2.38",
|
|
46
|
+
"@syncfusion/ej2-lists": "~20.2.38",
|
|
47
|
+
"@syncfusion/ej2-navigations": "~20.2.38",
|
|
48
|
+
"@syncfusion/ej2-popups": "~20.2.38",
|
|
49
|
+
"@syncfusion/ej2-richtexteditor": "~20.2.38",
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~20.2.38"
|
|
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": "20.2.
|
|
78
|
+
"version": "20.2.38",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -37,7 +37,7 @@ var DateProcessor = /** @class */ (function () {
|
|
|
37
37
|
this.setTime(this.parent.defaultStartTime, cloneStartDate);
|
|
38
38
|
}
|
|
39
39
|
else if (hour < this.parent.defaultStartTime && validateAsMilestone) {
|
|
40
|
-
this.setTime(this.parent.
|
|
40
|
+
this.setTime(this.parent.defaultStartTime, cloneStartDate);
|
|
41
41
|
}
|
|
42
42
|
else if ((hour === this.parent.defaultEndTime && (!ganttProp || !validateAsMilestone)) || hour > this.parent.defaultEndTime) {
|
|
43
43
|
cloneStartDate.setDate(cloneStartDate.getDate() + 1);
|
|
@@ -718,6 +718,9 @@ var GanttChart = /** @class */ (function () {
|
|
|
718
718
|
* @private
|
|
719
719
|
*/
|
|
720
720
|
GanttChart.prototype.expandedGanttRow = function (args) {
|
|
721
|
+
if (isNullOrUndefined(args['gridRow'])) {
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
721
724
|
var record = getValue('data', args);
|
|
722
725
|
if (this.isExpandCollapseFromChart) {
|
|
723
726
|
this.expandCollapseChartRows('expand', getValue('chartRow', args), record, null);
|
|
@@ -229,8 +229,8 @@ var Timeline = /** @class */ (function () {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
var newTimeline = extend({}, {}, zoomingLevel, true);
|
|
232
|
-
this.roundOffDateToZoom(this.parent.cloneProjectStartDate, true, perDayWidth, newTimeline.bottomTier.unit);
|
|
233
|
-
this.roundOffDateToZoom(this.parent.cloneProjectEndDate, false, perDayWidth, newTimeline.bottomTier.unit);
|
|
232
|
+
this.roundOffDateToZoom(this.parent.cloneProjectStartDate, true, perDayWidth, newTimeline.bottomTier.unit, zoomingLevel);
|
|
233
|
+
this.roundOffDateToZoom(this.parent.cloneProjectEndDate, false, perDayWidth, newTimeline.bottomTier.unit, zoomingLevel);
|
|
234
234
|
var numberOfCells = this.calculateNumberOfTimelineCells(newTimeline);
|
|
235
235
|
var scrollHeight = this.parent.ganttChartModule.scrollElement.offsetHeight - 17; //17 is horizontal scrollbar width
|
|
236
236
|
var contentHeight = this.parent.ganttChartModule.chartBodyContent.offsetHeight;
|
|
@@ -246,24 +246,40 @@ var Timeline = /** @class */ (function () {
|
|
|
246
246
|
this.parent.trigger('actionBegin', args);
|
|
247
247
|
this.changeTimelineSettings(newTimeline);
|
|
248
248
|
};
|
|
249
|
-
Timeline.prototype.
|
|
250
|
-
var
|
|
251
|
-
|
|
249
|
+
Timeline.prototype.bottomTierCellWidthCalc = function (mode, zoomLevel, date) {
|
|
250
|
+
var convertedMilliSeconds;
|
|
251
|
+
switch (mode) {
|
|
252
|
+
case 'Minutes':
|
|
253
|
+
convertedMilliSeconds = zoomLevel.bottomTier.count * (60 * 1000);
|
|
254
|
+
break;
|
|
255
|
+
case 'Hour':
|
|
256
|
+
convertedMilliSeconds = zoomLevel.bottomTier.count * (60 * 60 * 1000);
|
|
257
|
+
break;
|
|
258
|
+
case 'Week':
|
|
259
|
+
convertedMilliSeconds = zoomLevel.bottomTier.count * (7 * 24 * 60 * 60 * 1000);
|
|
260
|
+
break;
|
|
261
|
+
case 'Day':
|
|
262
|
+
convertedMilliSeconds = zoomLevel.bottomTier.count * (24 * 60 * 60 * 1000);
|
|
263
|
+
break;
|
|
264
|
+
case 'Month':
|
|
265
|
+
var daysInMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
|
|
266
|
+
convertedMilliSeconds = zoomLevel.bottomTier.count * (60 * 60 * 24 * daysInMonth * 1000);
|
|
267
|
+
break;
|
|
268
|
+
case 'Year':
|
|
269
|
+
var daysInYear = (date.getFullYear() % 400 === 0 || (date.getFullYear() % 100 !== 0 && date.getFullYear() % 4 === 0)) ? 366 : 365;
|
|
270
|
+
convertedMilliSeconds = zoomLevel.bottomTier.count * (60 * 60 * 24 * daysInYear * 1000);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
return convertedMilliSeconds;
|
|
274
|
+
};
|
|
275
|
+
Timeline.prototype.roundOffDateToZoom = function (date, isStartDate, perDayWidth, tierMode, zoomingLevel) {
|
|
276
|
+
var roundOffTime = this.bottomTierCellWidthCalc(tierMode, zoomingLevel, date);
|
|
252
277
|
if (isStartDate) {
|
|
253
278
|
date.setTime(date.getTime() - roundOffTime);
|
|
254
279
|
}
|
|
255
280
|
else {
|
|
256
281
|
date.setTime(date.getTime() + roundOffTime);
|
|
257
282
|
}
|
|
258
|
-
if (tierMode === 'Hour') {
|
|
259
|
-
date.setMinutes(isStartDate ? -120 : 120);
|
|
260
|
-
}
|
|
261
|
-
else if (tierMode === 'Minutes') {
|
|
262
|
-
date.setSeconds(isStartDate ? -120 : 120);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
date.setHours(isStartDate ? -48 : 48, 0, 0, 0);
|
|
266
|
-
}
|
|
267
283
|
};
|
|
268
284
|
Timeline.prototype.calculateNumberOfTimelineCells = function (newTimeline) {
|
|
269
285
|
var numberOfDays = Math.abs((this.parent.cloneProjectEndDate.getTime() -
|
|
@@ -1393,7 +1409,10 @@ var Timeline = /** @class */ (function () {
|
|
|
1393
1409
|
if (type === 'prevTimeSpan' && isFrom === 'publicMethod') {
|
|
1394
1410
|
this.parent.ganttChartModule.updateScrollLeft(0);
|
|
1395
1411
|
}
|
|
1396
|
-
else if (
|
|
1412
|
+
else if (type === 'nextTimeSpan' && isFrom === 'publicMethod') {
|
|
1413
|
+
this.parent.ganttChartModule.updateScrollLeft(this.parent.timelineModule.totalTimelineWidth);
|
|
1414
|
+
}
|
|
1415
|
+
else if (type === 'nextTimeSpan' && isFrom === 'TaskbarEditing') {
|
|
1397
1416
|
var currentScrollLeft = document.getElementsByClassName('e-chart-scroll-container e-content')[0].scrollLeft;
|
|
1398
1417
|
this.parent.element.querySelector('.e-timeline-header-container').scrollLeft = currentScrollLeft;
|
|
1399
1418
|
}
|
package/styles/fluent-dark.css
CHANGED
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
.e-bigger .e-predecessor-tooltip .e-btn-group:not(.e-rtl):not(.e-vertical) .e-btn:first-of-type {
|
|
459
459
|
background-color: #000;
|
|
460
460
|
border-color: #000;
|
|
461
|
-
color: #
|
|
461
|
+
color: #1b1a19;
|
|
462
462
|
font-size: 12px;
|
|
463
463
|
line-height: 18px;
|
|
464
464
|
padding: 0 8px 0 0;
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
.e-bigger .e-predecessor-tooltip .e-btn-group:not(.e-rtl):not(.e-vertical) .e-btn:last-of-type {
|
|
467
467
|
background-color: #000;
|
|
468
468
|
border-color: #000;
|
|
469
|
-
color: #
|
|
469
|
+
color: #1b1a19;
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
line-height: 18px;
|
|
472
472
|
padding: 0 0 0 8px;
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
border-radius: 4px;
|
|
1447
1447
|
}
|
|
1448
1448
|
.e-gantt .e-gantt-chart .e-collapse-parent .e-gantt-child-taskbar-inner-div {
|
|
1449
|
-
border: 1px solid #
|
|
1449
|
+
border: 1px solid #1b1a19;
|
|
1450
1450
|
border-bottom: 0;
|
|
1451
1451
|
border-top: 0;
|
|
1452
1452
|
}
|
|
@@ -1622,11 +1622,11 @@
|
|
|
1622
1622
|
border-top-left-radius: 2px;
|
|
1623
1623
|
}
|
|
1624
1624
|
.e-gantt .e-gantt-chart .e-task-label {
|
|
1625
|
-
color: #
|
|
1625
|
+
color: #1b1a19;
|
|
1626
1626
|
font-size: 12px;
|
|
1627
1627
|
}
|
|
1628
1628
|
.e-gantt .e-gantt-chart .e-icon {
|
|
1629
|
-
color: #
|
|
1629
|
+
color: #1b1a19;
|
|
1630
1630
|
}
|
|
1631
1631
|
.e-gantt .e-gantt-chart .e-milestone-top {
|
|
1632
1632
|
border-bottom-color: #3b3a39;
|
|
@@ -1674,13 +1674,13 @@
|
|
|
1674
1674
|
border-bottom-color: #292827;
|
|
1675
1675
|
}
|
|
1676
1676
|
.e-gantt .e-gantt-chart .e-downtail::after {
|
|
1677
|
-
border-top-color: #
|
|
1677
|
+
border-top-color: #1b1a19;
|
|
1678
1678
|
}
|
|
1679
1679
|
.e-gantt .e-gantt-chart .e-downtail::before {
|
|
1680
1680
|
border-top-color: #292827;
|
|
1681
1681
|
}
|
|
1682
1682
|
.e-gantt .e-gantt-chart .e-ganttpopup .e-content {
|
|
1683
|
-
background-color: #
|
|
1683
|
+
background-color: #1b1a19;
|
|
1684
1684
|
border-color: #292827;
|
|
1685
1685
|
}
|
|
1686
1686
|
.e-gantt .e-gantt-chart .e-spanclicked,
|
|
@@ -1819,7 +1819,7 @@
|
|
|
1819
1819
|
.e-gantt.e-device .e-left-resize-gripper,
|
|
1820
1820
|
.e-gantt.e-device .e-right-resize-gripper {
|
|
1821
1821
|
border-color: #323130;
|
|
1822
|
-
color: #
|
|
1822
|
+
color: #1b1a19;
|
|
1823
1823
|
}
|
|
1824
1824
|
.e-gantt.e-device .e-backarrowspan {
|
|
1825
1825
|
color: #000;
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
.e-bigger .e-predecessor-tooltip .e-btn-group:not(.e-rtl):not(.e-vertical) .e-btn:first-of-type {
|
|
459
459
|
background-color: #000;
|
|
460
460
|
border-color: #000;
|
|
461
|
-
color: #
|
|
461
|
+
color: #1b1a19;
|
|
462
462
|
font-size: 12px;
|
|
463
463
|
line-height: 18px;
|
|
464
464
|
padding: 0 8px 0 0;
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
.e-bigger .e-predecessor-tooltip .e-btn-group:not(.e-rtl):not(.e-vertical) .e-btn:last-of-type {
|
|
467
467
|
background-color: #000;
|
|
468
468
|
border-color: #000;
|
|
469
|
-
color: #
|
|
469
|
+
color: #1b1a19;
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
line-height: 18px;
|
|
472
472
|
padding: 0 0 0 8px;
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
border-radius: 4px;
|
|
1447
1447
|
}
|
|
1448
1448
|
.e-gantt .e-gantt-chart .e-collapse-parent .e-gantt-child-taskbar-inner-div {
|
|
1449
|
-
border: 1px solid #
|
|
1449
|
+
border: 1px solid #1b1a19;
|
|
1450
1450
|
border-bottom: 0;
|
|
1451
1451
|
border-top: 0;
|
|
1452
1452
|
}
|
|
@@ -1622,11 +1622,11 @@
|
|
|
1622
1622
|
border-top-left-radius: 2px;
|
|
1623
1623
|
}
|
|
1624
1624
|
.e-gantt .e-gantt-chart .e-task-label {
|
|
1625
|
-
color: #
|
|
1625
|
+
color: #1b1a19;
|
|
1626
1626
|
font-size: 12px;
|
|
1627
1627
|
}
|
|
1628
1628
|
.e-gantt .e-gantt-chart .e-icon {
|
|
1629
|
-
color: #
|
|
1629
|
+
color: #1b1a19;
|
|
1630
1630
|
}
|
|
1631
1631
|
.e-gantt .e-gantt-chart .e-milestone-top {
|
|
1632
1632
|
border-bottom-color: #3b3a39;
|
|
@@ -1674,13 +1674,13 @@
|
|
|
1674
1674
|
border-bottom-color: #292827;
|
|
1675
1675
|
}
|
|
1676
1676
|
.e-gantt .e-gantt-chart .e-downtail::after {
|
|
1677
|
-
border-top-color: #
|
|
1677
|
+
border-top-color: #1b1a19;
|
|
1678
1678
|
}
|
|
1679
1679
|
.e-gantt .e-gantt-chart .e-downtail::before {
|
|
1680
1680
|
border-top-color: #292827;
|
|
1681
1681
|
}
|
|
1682
1682
|
.e-gantt .e-gantt-chart .e-ganttpopup .e-content {
|
|
1683
|
-
background-color: #
|
|
1683
|
+
background-color: #1b1a19;
|
|
1684
1684
|
border-color: #292827;
|
|
1685
1685
|
}
|
|
1686
1686
|
.e-gantt .e-gantt-chart .e-spanclicked,
|
|
@@ -1819,7 +1819,7 @@
|
|
|
1819
1819
|
.e-gantt.e-device .e-left-resize-gripper,
|
|
1820
1820
|
.e-gantt.e-device .e-right-resize-gripper {
|
|
1821
1821
|
border-color: #323130;
|
|
1822
|
-
color: #
|
|
1822
|
+
color: #1b1a19;
|
|
1823
1823
|
}
|
|
1824
1824
|
.e-gantt.e-device .e-backarrowspan {
|
|
1825
1825
|
color: #000;
|