@syncfusion/ej2-gantt 24.1.41 → 24.1.43

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 : 24.1.41
3
+ * version : 24.1.43
4
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
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@23.4.3",
3
+ "_id": "@syncfusion/ej2-gantt@24.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-PQn3mPggjTWP+7Nd2Vwbpo0byamkSI9sXERH7wToeRAJSyhQDeD+iOTlYz4opFoDPYynPE5u3UoTpzWPOaujZA==",
5
+ "_integrity": "sha512-CRkRWQPez+tYXmsKu2qW3rNLMZ5g+Qu11ywUG9sD4MvrhSd48R8HAt0LoIY1eXVlMRcnJwS8BpFiyyWUlqseVg==",
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-release/@syncfusion/ej2-gantt/-/ej2-gantt-23.4.3.tgz",
27
- "_shasum": "2d9c70eaf24627e671f63de1ef064501cb7d9a6f",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-24.1.41.tgz",
27
+ "_shasum": "6e3d9f14fae2d4fb8f9ed808b7779fcbd13bf668",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
30
30
  "author": {
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~24.1.41",
38
+ "@syncfusion/ej2-base": "~24.1.42",
39
39
  "@syncfusion/ej2-buttons": "~24.1.41",
40
- "@syncfusion/ej2-calendars": "~24.1.41",
40
+ "@syncfusion/ej2-calendars": "~24.1.43",
41
41
  "@syncfusion/ej2-data": "~24.1.41",
42
- "@syncfusion/ej2-dropdowns": "~24.1.41",
43
- "@syncfusion/ej2-grids": "~24.1.41",
42
+ "@syncfusion/ej2-dropdowns": "~24.1.43",
43
+ "@syncfusion/ej2-grids": "~24.1.43",
44
44
  "@syncfusion/ej2-inputs": "~24.1.41",
45
45
  "@syncfusion/ej2-layouts": "~24.1.41",
46
46
  "@syncfusion/ej2-lists": "~24.1.41",
47
47
  "@syncfusion/ej2-navigations": "~24.1.41",
48
48
  "@syncfusion/ej2-notifications": "~24.1.41",
49
49
  "@syncfusion/ej2-popups": "~24.1.41",
50
- "@syncfusion/ej2-richtexteditor": "~24.1.41",
50
+ "@syncfusion/ej2-richtexteditor": "~24.1.43",
51
51
  "@syncfusion/ej2-svg-base": "~24.1.41",
52
52
  "@syncfusion/ej2-treegrid": "~24.1.41"
53
53
  },
@@ -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": "24.1.41",
77
+ "version": "24.1.43",
78
78
  "sideEffects": false
79
79
  }
@@ -754,8 +754,8 @@ var DialogEdit = /** @class */ (function () {
754
754
  else {
755
755
  _this.parent.showSpinner();
756
756
  }
757
- _this.renderTabItems();
758
757
  if (!arg.cancel) {
758
+ _this.renderTabItems();
759
759
  tabModel.selected = _this.tabSelectedEvent.bind(_this);
760
760
  tabModel.height = _this.parent.isAdaptive ? '100%' : 'auto';
761
761
  tabModel.overflowMode = 'Scrollable';
@@ -792,6 +792,15 @@ var DialogEdit = /** @class */ (function () {
792
792
  }
793
793
  });
794
794
  }
795
+ else {
796
+ arg.cancel = false;
797
+ if (!isNullOrUndefined(_this.parent.loadingIndicator) && _this.parent.loadingIndicator.indicatorType === "Shimmer") {
798
+ _this.parent.hideMaskRow();
799
+ }
800
+ else {
801
+ _this.parent.hideSpinner();
802
+ }
803
+ }
795
804
  });
796
805
  };
797
806
  DialogEdit.prototype.changeFormObj = function (actionCompleteArgs, isCustomTab) {
@@ -1255,7 +1255,7 @@ var TaskProcessor = /** @class */ (function (_super) {
1255
1255
  }
1256
1256
  else {
1257
1257
  if (isValid) {
1258
- return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
1258
+ return ((this.getTimeDifference(sDate, eDate, true) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth);
1259
1259
  }
1260
1260
  else {
1261
1261
  return ((this.getTimeDifference(sDate, eDate) / (1000 * 60 * 60 * hour)) * this.parent.perDayWidth);
@@ -335,8 +335,10 @@ var Timeline = /** @class */ (function () {
335
335
  }
336
336
  };
337
337
  Timeline.prototype.calculateNumberOfTimelineCells = function (newTimeline) {
338
- var numberOfDays = Math.abs((this.parent.cloneProjectEndDate.getTime() -
339
- this.parent.cloneProjectStartDate.getTime()) / (24 * 60 * 60 * 1000));
338
+ var sDate = new Date(this.parent.cloneProjectStartDate.getTime());
339
+ var eDate = new Date(this.parent.cloneProjectEndDate.getTime());
340
+ this.parent.dateValidationModule['updateDateWithTimeZone'](sDate, eDate);
341
+ var numberOfDays = Math.abs((eDate.getTime() - sDate.getTime()) / (24 * 60 * 60 * 1000));
340
342
  var count = newTimeline.bottomTier.count;
341
343
  var unit = newTimeline.bottomTier.unit;
342
344
  if (unit === 'Day') {
@@ -1178,24 +1180,35 @@ var Timeline = /** @class */ (function () {
1178
1180
  case 'Day':
1179
1181
  lastDay.setHours(24, 0, 0, 0);
1180
1182
  increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * 60 * 24 * (count - 1));
1183
+ increment = this.checkDate(firstDay, lastDay, increment, count, mode);
1181
1184
  break;
1182
1185
  case 'Hour':
1183
1186
  lastDay.setMinutes(60);
1184
1187
  lastDay.setSeconds(0);
1185
1188
  increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * 60 * (count - 1));
1186
- increment = this.checkDate(firstDay, lastDay, increment, count);
1189
+ increment = this.checkDate(firstDay, lastDay, increment, count, mode);
1187
1190
  break;
1188
1191
  case 'Minutes':
1189
1192
  lastDay.setSeconds(60);
1190
1193
  increment = (lastDay.getTime() - firstDay.getTime()) + (1000 * 60 * (count - 1));
1194
+ increment = this.checkDate(firstDay, lastDay, increment, count, mode);
1191
1195
  break;
1192
1196
  }
1193
1197
  return increment;
1194
1198
  };
1195
- Timeline.prototype.checkDate = function (firstDay, lastDay, increment, count) {
1199
+ Timeline.prototype.checkDate = function (firstDay, lastDay, increment, count, mode) {
1196
1200
  var date = new Date(firstDay.getTime());
1197
1201
  date.setTime(date.getTime() + increment);
1198
- if (count !== 1 && ((date.getTime() - lastDay.getTime()) / (1000 * 60 * 60)) != count && (firstDay.getTimezoneOffset() !== date.getTimezoneOffset())) {
1202
+ if (mode === "Day" && count !== 1 && ((date.getTime() - lastDay.getTime()) / (1000 * 60 * 60 * 24)) != count && (firstDay.getTimezoneOffset() !== date.getTimezoneOffset())) {
1203
+ var diffCount = count - (date.getTime() - lastDay.getTime()) / (1000 * 60 * 60 * 24);
1204
+ if (!this.parent.isInDst(date)) {
1205
+ increment += (1000 * 60 * 60 * diffCount);
1206
+ }
1207
+ else if (this.parent.isInDst(date) && count !== 2) {
1208
+ increment -= (1000 * 60 * 60 * diffCount);
1209
+ }
1210
+ }
1211
+ else if (mode === "Hour" && count !== 1 && ((date.getTime() - lastDay.getTime()) / (1000 * 60 * 60)) != count && (firstDay.getTimezoneOffset() !== date.getTimezoneOffset())) {
1199
1212
  var diffCount = count - (date.getTime() - lastDay.getTime()) / (1000 * 60 * 60);
1200
1213
  if (!this.parent.isInDst(date)) {
1201
1214
  increment += (1000 * 60 * 60 * diffCount);
@@ -1204,6 +1217,15 @@ var Timeline = /** @class */ (function () {
1204
1217
  increment -= (1000 * 60 * 60 * diffCount);
1205
1218
  }
1206
1219
  }
1220
+ else if (mode === "Minutes" && count !== 1 && ((date.getTime() - lastDay.getTime()) / (1000 * 60)) != count && (firstDay.getTimezoneOffset() !== date.getTimezoneOffset())) {
1221
+ var diffCount = count - (date.getTime() - lastDay.getTime()) / (1000 * 60);
1222
+ if (!this.parent.isInDst(date)) {
1223
+ increment += (1000 * 60 * 60 * diffCount);
1224
+ }
1225
+ else if (this.parent.isInDst(date) && count !== 2) {
1226
+ increment -= (1000 * 60 * 60 * diffCount);
1227
+ }
1228
+ }
1207
1229
  return increment;
1208
1230
  };
1209
1231
  /**
@@ -1271,6 +1293,18 @@ var Timeline = /** @class */ (function () {
1271
1293
  this.parent.globalize.formatDate(scheduleWeeks, { format: this.parent.getDateFormat() }) :
1272
1294
  this.customFormat(scheduleWeeks, format, tier, mode, formatter);
1273
1295
  thWidth = (this.getIncrement(scheduleWeeks, count, mode) / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth;
1296
+ var newDate = new Date(scheduleWeeks.getTime() + this.getIncrement(scheduleWeeks, count, mode));
1297
+ if ((!this.parent.isInDst(newDate) && this.parent.isInDst(scheduleWeeks)) ||
1298
+ (this.parent.isInDst(newDate) && !this.parent.isInDst(scheduleWeeks))) {
1299
+ var temp = void 0;
1300
+ if ((!this.parent.isInDst(newDate) && this.parent.isInDst(scheduleWeeks))) {
1301
+ temp = this.getIncrement(scheduleWeeks, count, mode) - (1000 * 60 * 60);
1302
+ }
1303
+ else {
1304
+ temp = this.getIncrement(scheduleWeeks, count, mode) + (1000 * 60 * 60);
1305
+ }
1306
+ thWidth = (temp / (1000 * 60 * 60 * 24)) * this.parent.perDayWidth;
1307
+ }
1274
1308
  var cellWidth = thWidth;
1275
1309
  thWidth = isLast || isFirstCell ? isLast ? this.calculateWidthBetweenTwoDate(mode, scheduleWeeks, this.timelineRoundOffEndDate) : this.calculateWidthBetweenTwoDate(mode, scheduleWeeks, this.calculateQuarterEndDate(scheduleWeeks, count))
1276
1310
  : thWidth;
@@ -1312,7 +1346,10 @@ var Timeline = /** @class */ (function () {
1312
1346
  * @private
1313
1347
  */
1314
1348
  Timeline.prototype.calculateWidthBetweenTwoDate = function (mode, scheduleWeeks, endDate) {
1315
- var timeDifference = (endDate.getTime() - scheduleWeeks.getTime());
1349
+ var sDate = new Date(scheduleWeeks.getTime());
1350
+ var eDate = new Date(endDate.getTime());
1351
+ this.parent.dateValidationModule['updateDateWithTimeZone'](sDate, eDate);
1352
+ var timeDifference = (eDate.getTime() - sDate.getTime());
1316
1353
  var balanceDay = (timeDifference / (1000 * 60 * 60 * 24));
1317
1354
  return balanceDay * this.parent.perDayWidth;
1318
1355
  };