@syncfusion/ej2-schedule 28.2.4 → 28.2.5

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 : 28.2.4
3
+ * version : 28.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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-schedule@*",
3
- "_id": "@syncfusion/ej2-schedule@28.2.3",
3
+ "_id": "@syncfusion/ej2-schedule@28.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-vRaCJipyu0WOz8zNsBt0o5l6C5FlaVCFl6yhFGLNn+ipaJ3rYe9ayv5S/I0A2Qb4PLpuNEk8tYkpduppPwX4Mg==",
5
+ "_integrity": "sha512-ky2q+06Je15WPS2CED/mvPjSaQSlpslhiT5nBjPv557gqxuOIToe/SdJgKv12LCWuHiDoE9Cgouf+5yHf4P3+A==",
6
6
  "_location": "/@syncfusion/ej2-schedule",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-schedule",
24
24
  "/@syncfusion/ej2-vue-schedule"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.2.3.tgz",
27
- "_shasum": "49008b0b547e8011d023d8ec52ba2706cca9c8a0",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.2.4.tgz",
27
+ "_shasum": "b2c505b3dad05390e4b2406feaa1919dd92eb3d5",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~28.2.3",
38
+ "@syncfusion/ej2-base": "~28.2.5",
39
39
  "@syncfusion/ej2-buttons": "~28.2.3",
40
40
  "@syncfusion/ej2-calendars": "~28.2.3",
41
41
  "@syncfusion/ej2-data": "~28.2.3",
42
- "@syncfusion/ej2-dropdowns": "~28.2.4",
42
+ "@syncfusion/ej2-dropdowns": "~28.2.5",
43
43
  "@syncfusion/ej2-excel-export": "~28.2.3",
44
44
  "@syncfusion/ej2-inputs": "~28.2.3",
45
45
  "@syncfusion/ej2-lists": "~28.2.3",
46
- "@syncfusion/ej2-navigations": "~28.2.4",
46
+ "@syncfusion/ej2-navigations": "~28.2.5",
47
47
  "@syncfusion/ej2-popups": "~28.2.3"
48
48
  },
49
49
  "deprecated": false,
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "28.2.4",
76
+ "version": "28.2.5",
77
77
  "sideEffects": false
78
78
  }
@@ -405,16 +405,12 @@ var Resize = /** @class */ (function (_super) {
405
405
  }
406
406
  else {
407
407
  var cellWidth = this.actionObj.cellWidth;
408
- cellIndex = isLeft ? Math.floor(offset / this.actionObj.cellWidth) :
408
+ cellIndex = isLeft ? Math.round(offset / this.actionObj.cellWidth) :
409
409
  Math.ceil((offset + (this.parent.getElementWidth(this.actionObj.clone) - cellWidth)) / this.actionObj.cellWidth);
410
410
  if (this.parent.enableRtl) {
411
- var cellOffsetWidth = 0;
412
- if (headerName === 'TimelineMonth' || (!this.parent.activeViewOptions.timeScale.enable &&
413
- !isTimelineMonth)) {
414
- cellOffsetWidth = this.actionObj.cellWidth;
415
- }
416
- var offsetWidth = (Math.floor(offset / this.actionObj.cellWidth) *
417
- this.actionObj.cellWidth) + (isLeft ? 0 : this.parent.getElementWidth(this.actionObj.clone) - cellOffsetWidth);
411
+ var offsetWidth = (Math.round(offset / this.actionObj.cellWidth) *
412
+ this.actionObj.cellWidth) + (isLeft ? 0 : (this.parent.getElementWidth(this.actionObj.clone) -
413
+ this.actionObj.cellWidth));
418
414
  cellIndex = Math.floor(offsetWidth / this.actionObj.cellWidth);
419
415
  }
420
416
  isLastCell = cellIndex === tdCollections.length;
@@ -435,11 +431,11 @@ var Resize = /** @class */ (function (_super) {
435
431
  if (!isLeft) {
436
432
  offset += this.parent.getElementWidth(this.actionObj.clone);
437
433
  }
438
- var spanMinutes = Math.ceil((this.actionObj.slotInterval / this.actionObj.cellWidth) *
434
+ var spanMinutes = Math.floor((this.actionObj.slotInterval / this.actionObj.cellWidth) *
439
435
  (offset - Math.floor(offset / this.actionObj.cellWidth) * this.actionObj.cellWidth));
440
436
  spanMinutes = (isLastCell || (!isLeft && spanMinutes === 0)) ? this.actionObj.slotInterval : spanMinutes;
441
437
  resizeTime = new Date(resizeDate.getTime());
442
- resizeTime.setMinutes(resizeTime.getMinutes() + spanMinutes);
438
+ resizeTime = new Date(resizeDate.getTime() + (spanMinutes * util.MS_PER_MINUTE));
443
439
  this.updateTimePosition(resizeTime);
444
440
  }
445
441
  }
@@ -509,11 +505,12 @@ var Resize = /** @class */ (function (_super) {
509
505
  var slotInterval = (this.actionObj.cellWidth / this.actionObj.slotInterval) * this.actionObj.interval;
510
506
  var pageWidth = isLeft ? (this.actionObj.X - this.actionObj.pageX) : (this.actionObj.pageX - this.actionObj.X);
511
507
  var targetWidth = isTimelineView ?
512
- (this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
508
+ Math.round(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth :
513
509
  this.parent.currentView === 'Month' ? this.parent.getElementWidth(this.actionObj.element) :
514
510
  Math.ceil(this.parent.getElementWidth(this.actionObj.element) / this.actionObj.cellWidth) * this.actionObj.cellWidth;
515
511
  var offsetWidth = targetWidth + (Math.ceil(pageWidth / this.actionObj.cellWidth) * this.actionObj.cellWidth);
516
512
  var left = (this.parent.enableRtl) ? parseInt(this.actionObj.element.style.right, 10) : this.actionObj.clone.offsetLeft;
513
+ left = Math.round(left / slotInterval) * slotInterval;
517
514
  if (isTimeViews) {
518
515
  offsetWidth = targetWidth + (Math.ceil(pageWidth / slotInterval) * slotInterval);
519
516
  if (!isLeft) {
@@ -532,6 +529,7 @@ var Resize = /** @class */ (function (_super) {
532
529
  -(offsetWidth - this.actionObj.cellWidth);
533
530
  rightValue = isTimelineView ? rightValue : isLeft ? 0 : rightValue > 0 ? 0 : rightValue;
534
531
  if (isTimelineView && !isLeft) {
532
+ rightValue = Math.round(rightValue / slotInterval) * slotInterval;
535
533
  rightValue = rightValue - (Math.ceil((this.actionObj.pageX - this.actionObj.X) / slotInterval) * slotInterval);
536
534
  if (rightValue < 0) {
537
535
  rightValue = parseInt(this.actionObj.clone.style.right, 10);
@@ -49,7 +49,7 @@ var MonthAgenda = /** @class */ (function (_super) {
49
49
  return 'abbreviated';
50
50
  };
51
51
  MonthAgenda.prototype.updateSelectedCellClass = function (data) {
52
- if (util.resetTime(data.date).getTime() === util.resetTime(this.monthAgendaDate).getTime()) {
52
+ if (util.resetTime(data.date).getTime() === util.resetTime(new Date('' + this.parent.selectedDate)).getTime()) {
53
53
  data.className.push(cls.SELECTED_CELL_CLASS);
54
54
  }
55
55
  };
@@ -373,9 +373,16 @@ var VerticalView = /** @class */ (function (_super) {
373
373
  var endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour);
374
374
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
375
375
  var hoursRange = util.getStartEndHours(util.resetTime(new Date(date.getTime())), startHour, endHour);
376
- var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
377
- this.parent.activeViewOptions.timeScale.interval :
378
- (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
376
+ var totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
377
+ var timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
378
+ var interval = 0;
379
+ if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
380
+ interval = timescaleInterval;
381
+ }
382
+ else {
383
+ interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
384
+ (timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
385
+ }
379
386
  return (diffInMinutes * this.getWorkCellHeight() * this.parent.activeViewOptions.timeScale.slotCount) / interval;
380
387
  };
381
388
  VerticalView.prototype.getWorkCellHeight = function () {