@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.40
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.38",
3
+ "_id": "@syncfusion/ej2-gantt@19.4.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-I4mKtas9zkKCjTiN5d4oVMdJMWsRrGuf7CaKPBU26Amdl+EIu0CVXKma+XQ/pBnWN3AatdP8vuaoDKkV51zkOw==",
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.38.tgz",
27
- "_shasum": "3370b7a2ca464a19f79d45e1e20d853f97694af6",
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.40",
43
- "@syncfusion/ej2-grids": "~19.4.40",
44
- "@syncfusion/ej2-inputs": "~19.4.38",
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.40",
48
- "@syncfusion/ej2-popups": "~19.4.38",
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.40"
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.40",
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] = 'New Task ' + id;
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) {
@@ -1482,6 +1482,7 @@ var TaskbarEdit = /** @class */ (function (_super) {
1482
1482
  this.isMouseDragged = false;
1483
1483
  }
1484
1484
  else {
1485
+ this.parent.isOnEdit = false;
1485
1486
  this.cancelTaskbarEditActionInMouseLeave();
1486
1487
  }
1487
1488
  }
@@ -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
- else {
970
- this.treeGrid.searchSettings = getActualProperties(this.searchSettings);
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);
@@ -222,6 +222,7 @@ export declare class Timeline {
222
222
  * @private
223
223
  */
224
224
  getIncrement(startDate: Date, count: number, mode: string): number;
225
+ private checkDate;
225
226
  /**
226
227
  * Method to find header cell was weekend or not
227
228
  *
@@ -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
  };
@@ -62,7 +62,6 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
- color: inherit;
66
65
  }
67
66
 
68
67
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,7 +62,6 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
- color: inherit;
66
65
  }
67
66
 
68
67
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,7 +62,6 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
- color: inherit;
66
65
  }
67
66
 
68
67
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,7 +62,6 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
- color: inherit;
66
65
  }
67
66
 
68
67
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],