@syncfusion/ej2-gantt 19.4.40 → 19.4.41
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/README.md +1 -1
- 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 +22 -20
- package/dist/es6/ej2-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-gantt.es5.js +22 -20
- 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 +11 -11
- package/src/gantt/actions/dialog-edit.js +1 -1
- package/src/gantt/actions/taskbar-edit.js +1 -0
- package/src/gantt/base/gantt.js +2 -4
- package/src/gantt/renderer/chart-rows.js +2 -0
- package/src/gantt/renderer/timeline.d.ts +1 -0
- package/src/gantt/renderer/timeline.js +16 -15
- package/styles/bootstrap5-dark.css +0 -1
- package/styles/bootstrap5.css +0 -1
- package/styles/gantt/bootstrap5-dark.css +0 -1
- package/styles/gantt/bootstrap5.css +0 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
3
|
+
* version : 19.4.41
|
|
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@19.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-gantt@19.4.40",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-n0OWrN70jN14qD8VVJ5+m4C0QyN8mwF3kaM84Buq3rrw8BydgVTIl+SOJcZlG8LJcCOA+ZPw6lrURZ0I+c5xTg==",
|
|
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-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-19.4.40.tgz",
|
|
27
|
+
"_shasum": "34f02fea46bd04853093f007a0c11a5e26967978",
|
|
28
28
|
"_spec": "@syncfusion/ej2-gantt@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@syncfusion/ej2-buttons": "~19.4.38",
|
|
40
40
|
"@syncfusion/ej2-calendars": "~19.4.38",
|
|
41
41
|
"@syncfusion/ej2-data": "~19.4.38",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~19.4.
|
|
43
|
-
"@syncfusion/ej2-grids": "~19.4.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~19.4.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.41",
|
|
43
|
+
"@syncfusion/ej2-grids": "~19.4.41",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~19.4.41",
|
|
45
45
|
"@syncfusion/ej2-layouts": "~19.4.38",
|
|
46
46
|
"@syncfusion/ej2-lists": "~19.4.38",
|
|
47
|
-
"@syncfusion/ej2-navigations": "~19.4.
|
|
48
|
-
"@syncfusion/ej2-popups": "~19.4.
|
|
47
|
+
"@syncfusion/ej2-navigations": "~19.4.41",
|
|
48
|
+
"@syncfusion/ej2-popups": "~19.4.41",
|
|
49
49
|
"@syncfusion/ej2-richtexteditor": "~19.4.40",
|
|
50
|
-
"@syncfusion/ej2-treegrid": "~19.4.
|
|
50
|
+
"@syncfusion/ej2-treegrid": "~19.4.41"
|
|
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": "19.4.
|
|
78
|
+
"version": "19.4.41",
|
|
79
79
|
"sideEffects": false
|
|
80
80
|
}
|
|
@@ -262,7 +262,7 @@ var DialogEdit = /** @class */ (function () {
|
|
|
262
262
|
tempData.ganttProperties.durationUnit = this.parent.durationUnit.toLocaleLowerCase();
|
|
263
263
|
}
|
|
264
264
|
else if (columns[i].field === taskSettings.name) {
|
|
265
|
-
tempData[field] = '
|
|
265
|
+
tempData[field] = this.localeObj.getConstant('addDialogTitle') + ' ' + id;
|
|
266
266
|
tempData.ganttProperties.taskName = tempData[field];
|
|
267
267
|
}
|
|
268
268
|
else if (columns[i].field === taskSettings.progress) {
|
package/src/gantt/base/gantt.js
CHANGED
|
@@ -966,10 +966,8 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
966
966
|
this.treeGrid.grid.searchSettings = getActualProperties(this.searchSettings);
|
|
967
967
|
this.treeGrid.grid.dataBind();
|
|
968
968
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
this.treeGrid.dataBind();
|
|
972
|
-
}
|
|
969
|
+
this.treeGrid.searchSettings = getActualProperties(this.searchSettings);
|
|
970
|
+
this.treeGrid.dataBind();
|
|
973
971
|
if (this.toolbarModule) {
|
|
974
972
|
this.toolbarModule.updateSearchTextBox();
|
|
975
973
|
}
|
|
@@ -1204,6 +1204,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
|
+
this.parent.renderTemplates();
|
|
1207
1208
|
this.triggerQueryTaskbarInfo();
|
|
1208
1209
|
this.parent.modifiedRecords = [];
|
|
1209
1210
|
if (collapsedResourceRecord.length) {
|
|
@@ -1568,6 +1569,7 @@ var ChartRows = /** @class */ (function (_super) {
|
|
|
1568
1569
|
else {
|
|
1569
1570
|
tr.replaceChild(this.getGanttChartRow(index, data).childNodes[0], tr.childNodes[0]);
|
|
1570
1571
|
}
|
|
1572
|
+
this.parent.renderTemplates();
|
|
1571
1573
|
if (this.parent.viewType === 'ResourceView' && data.hasChildRecords && this.parent.showOverAllocation) {
|
|
1572
1574
|
if (isValidateRange) {
|
|
1573
1575
|
this.parent.ganttChartModule.renderRangeContainer(this.parent.currentViewData);
|
|
@@ -817,9 +817,6 @@ var Timeline = /** @class */ (function () {
|
|
|
817
817
|
parentTr = this.getHeaterTemplateString(new Date(startDate.toString()), mode, tier, false, count, timelineCell);
|
|
818
818
|
scheduleDateCollection.push(new Date(startDate.toString()));
|
|
819
819
|
increment = this.getIncrement(startDate, count, mode);
|
|
820
|
-
if (this.parent.isInDst(startDate)) {
|
|
821
|
-
increment = increment + (1000 * 60 * 60);
|
|
822
|
-
}
|
|
823
820
|
newTime = startDate.getTime() + increment;
|
|
824
821
|
startDate.setTime(newTime);
|
|
825
822
|
if (startDate >= endDate) {
|
|
@@ -883,24 +880,17 @@ var Timeline = /** @class */ (function () {
|
|
|
883
880
|
dayIntervel - 1 : dayIntervel : dayIntervel;
|
|
884
881
|
lastDay.setDate(lastDay.getDate() + (dayIntervel + (7 * count)));
|
|
885
882
|
increment = lastDay.getTime() - firstDay.getTime();
|
|
886
|
-
if ((this.parent.isInDst(lastDay) && !this.parent.isInDst(firstDay)) ||
|
|
887
|
-
(!this.parent.isInDst(lastDay) && this.parent.isInDst(firstDay))) {
|
|
888
|
-
increment = increment - (1000 * 60 * 60);
|
|
889
|
-
}
|
|
890
883
|
break;
|
|
891
884
|
}
|
|
892
885
|
case 'Day':
|
|
893
886
|
lastDay.setHours(24, 0, 0, 0);
|
|
894
887
|
increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * 60 * 24 * (count - 1));
|
|
895
|
-
if ((this.parent.isInDst(lastDay) && !this.parent.isInDst(firstDay)) ||
|
|
896
|
-
(!this.parent.isInDst(lastDay) && this.parent.isInDst(firstDay))) {
|
|
897
|
-
increment -= (1000 * 60 * 60);
|
|
898
|
-
}
|
|
899
888
|
break;
|
|
900
889
|
case 'Hour':
|
|
901
890
|
lastDay.setMinutes(60);
|
|
902
891
|
lastDay.setSeconds(0);
|
|
903
892
|
increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * 60 * (count - 1));
|
|
893
|
+
increment = this.checkDate(firstDay, lastDay, increment, count);
|
|
904
894
|
break;
|
|
905
895
|
case 'Minutes':
|
|
906
896
|
lastDay.setSeconds(60);
|
|
@@ -909,6 +899,21 @@ var Timeline = /** @class */ (function () {
|
|
|
909
899
|
}
|
|
910
900
|
return increment;
|
|
911
901
|
};
|
|
902
|
+
Timeline.prototype.checkDate = function (firstDay, lastDay, increment, count) {
|
|
903
|
+
var date = new Date(firstDay.getTime());
|
|
904
|
+
date.setTime(date.getTime() + increment);
|
|
905
|
+
if (((date.getTime() - lastDay.getTime()) / (1000 * 60 * 60)) != count && (firstDay.getTimezoneOffset() !== date.getTimezoneOffset())) {
|
|
906
|
+
var diffCount = count - (date.getTime() - lastDay.getTime()) / (1000 * 60 * 60);
|
|
907
|
+
if (!this.parent.isInDst(date)) {
|
|
908
|
+
increment += (1000 * 60 * 60 * diffCount);
|
|
909
|
+
}
|
|
910
|
+
else if (this.parent.isInDst(date)) {
|
|
911
|
+
increment -= (1000 * 60 * 60 * diffCount);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
return increment;
|
|
915
|
+
};
|
|
916
|
+
;
|
|
912
917
|
/**
|
|
913
918
|
* Method to find header cell was weekend or not
|
|
914
919
|
*
|
|
@@ -991,10 +996,6 @@ var Timeline = /** @class */ (function () {
|
|
|
991
996
|
*/
|
|
992
997
|
Timeline.prototype.calculateWidthBetweenTwoDate = function (mode, scheduleWeeks, endDate) {
|
|
993
998
|
var timeDifference = (endDate.getTime() - scheduleWeeks.getTime());
|
|
994
|
-
if ((this.parent.isInDst(scheduleWeeks) && !this.parent.isInDst(endDate)) ||
|
|
995
|
-
(!this.parent.isInDst(scheduleWeeks) && this.parent.isInDst(endDate))) {
|
|
996
|
-
timeDifference = timeDifference - (1000 * 60 * 60);
|
|
997
|
-
}
|
|
998
999
|
var balanceDay = (timeDifference / (1000 * 60 * 60 * 24));
|
|
999
1000
|
return balanceDay * this.parent.perDayWidth;
|
|
1000
1001
|
};
|
package/styles/bootstrap5.css
CHANGED