@syncfusion/ej2-schedule 28.2.4 → 28.2.6

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.6
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.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-vRaCJipyu0WOz8zNsBt0o5l6C5FlaVCFl6yhFGLNn+ipaJ3rYe9ayv5S/I0A2Qb4PLpuNEk8tYkpduppPwX4Mg==",
5
+ "_integrity": "sha512-+rZaSnvg9nwZja+Oq7M7UDSOW7m07NIIC+GuomhsxYqKJUQnCAnkcIO7rYA1efgEzoSq3aJWF0eLV87XbNZ86g==",
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.5.tgz",
27
+ "_shasum": "d95dc763820088bf4cdbfcf8443acc230ba94549",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~28.2.3",
39
- "@syncfusion/ej2-buttons": "~28.2.3",
38
+ "@syncfusion/ej2-base": "~28.2.5",
39
+ "@syncfusion/ej2-buttons": "~28.2.6",
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.6",
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",
47
- "@syncfusion/ej2-popups": "~28.2.3"
46
+ "@syncfusion/ej2-navigations": "~28.2.6",
47
+ "@syncfusion/ej2-popups": "~28.2.6"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
@@ -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.6",
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
  };
@@ -110,6 +110,7 @@ var MonthAgenda = /** @class */ (function (_super) {
110
110
  this.onEventRender(filterData, event.startTime);
111
111
  this.parent.notify(events.eventsLoaded, {});
112
112
  this.monthAgendaDate = new Date('' + event.startTime);
113
+ this.parent.setProperties({ selectedDate: this.monthAgendaDate }, true);
113
114
  };
114
115
  MonthAgenda.prototype.onEventRender = function (events, date) {
115
116
  this.agendaBase = this.getAgendaBase();
@@ -155,9 +155,16 @@ var TimelineViews = /** @class */ (function (_super) {
155
155
  var diffInDates = 0;
156
156
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
157
157
  var hoursRange = util.getStartEndHours(util.resetTime(new Date(date.getTime())), startHour, endHour);
158
- var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
159
- this.parent.activeViewOptions.timeScale.interval :
160
- (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
158
+ var totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
159
+ var timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
160
+ var interval = 0;
161
+ if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
162
+ interval = timescaleInterval;
163
+ }
164
+ else {
165
+ interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
166
+ (timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
167
+ }
161
168
  if (!isNullOrUndefined(currentDateIndex)) {
162
169
  if (currentDateIndex[0] !== 0) {
163
170
  var index = this.parent.activeView.colLevels.findIndex(function (level) { return level[0].type === 'dateHeader'; });
@@ -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 () {
@@ -4177,7 +4177,7 @@
4177
4177
  width: 100%;
4178
4178
  }
4179
4179
  .e-recurrenceeditor .e-recurrence-table .e-week-position {
4180
- min-width: 94px;
4180
+ min-width: 100px;
4181
4181
  position: relative;
4182
4182
  right: 20px;
4183
4183
  }
@@ -4293,7 +4293,7 @@
4293
4293
  .e-recurrenceeditor .e-input-wrapper-side.e-non-week > .e-month-expander-label {
4294
4294
  font-size: 12px;
4295
4295
  font-weight: 600;
4296
- margin-bottom: 6px;
4296
+ margin-bottom: 3px;
4297
4297
  padding-right: 16px;
4298
4298
  }
4299
4299
  .e-recurrenceeditor .e-input-wrapper-side .e-days .e-form-left {
@@ -4414,7 +4414,7 @@
4414
4414
  }
4415
4415
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-non-week > .e-month-expander-label,
4416
4416
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-end-on .e-end-on-label {
4417
- margin-bottom: 6px;
4417
+ margin-bottom: 3px;
4418
4418
  }
4419
4419
  .e-recurrenceeditor .e-editor > div {
4420
4420
  margin-top: 20px;
@@ -4854,7 +4854,7 @@
4854
4854
  width: 100%;
4855
4855
  }
4856
4856
  .e-recurrenceeditor .e-recurrence-table .e-week-position {
4857
- min-width: 94px;
4857
+ min-width: 100px;
4858
4858
  position: relative;
4859
4859
  right: 20px;
4860
4860
  }
@@ -4970,7 +4970,7 @@
4970
4970
  .e-recurrenceeditor .e-input-wrapper-side.e-non-week > .e-month-expander-label {
4971
4971
  font-size: 12px;
4972
4972
  font-weight: 600;
4973
- margin-bottom: 6px;
4973
+ margin-bottom: 3px;
4974
4974
  padding-right: 16px;
4975
4975
  }
4976
4976
  .e-recurrenceeditor .e-input-wrapper-side .e-days .e-form-left {
@@ -5091,7 +5091,7 @@
5091
5091
  }
5092
5092
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-non-week > .e-month-expander-label,
5093
5093
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-end-on .e-end-on-label {
5094
- margin-bottom: 6px;
5094
+ margin-bottom: 3px;
5095
5095
  }
5096
5096
  .e-recurrenceeditor .e-editor > div {
5097
5097
  margin-top: 20px;
@@ -1,5 +1,5 @@
1
1
  $recurrence-label-bottom: 7px !default;
2
- $recurrence-month-label-bottom: 6px !default;
2
+ $recurrence-month-label-bottom: 3px !default;
3
3
  $recurrence-month-label-bottom-bgr: 0 !default;
4
4
  $recurrence-week-label-bottom: 10px !default;
5
5
  $recurrence-label-font-weight: $font-weight-medium !default;
@@ -10,5 +10,5 @@ $recurrence-week-position-bgr-min-width: 130px !default;
10
10
  $recurrence-day-position-bgr-min-width: 190px !default;
11
11
  $recurrence-day-position-bgr-padding-left: 54px !default;
12
12
  $recurrence-end-bgr-padding-right: 5px !default;
13
- $recurrence-week-position-min-width: 94px !default;
13
+ $recurrence-week-position-min-width: 100px !default;
14
14
  $recurrence-end-on-date-margin-top: 24px !default;
@@ -105,7 +105,7 @@
105
105
  width: 100%;
106
106
  }
107
107
  .e-recurrenceeditor .e-recurrence-table .e-week-position {
108
- min-width: 94px;
108
+ min-width: 100px;
109
109
  position: relative;
110
110
  right: 20px;
111
111
  }
@@ -221,7 +221,7 @@
221
221
  .e-recurrenceeditor .e-input-wrapper-side.e-non-week > .e-month-expander-label {
222
222
  font-size: 12px;
223
223
  font-weight: 600;
224
- margin-bottom: 6px;
224
+ margin-bottom: 3px;
225
225
  padding-right: 16px;
226
226
  }
227
227
  .e-recurrenceeditor .e-input-wrapper-side .e-days .e-form-left {
@@ -342,7 +342,7 @@
342
342
  }
343
343
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-non-week > .e-month-expander-label,
344
344
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-end-on .e-end-on-label {
345
- margin-bottom: 6px;
345
+ margin-bottom: 3px;
346
346
  }
347
347
  .e-recurrenceeditor .e-editor > div {
348
348
  margin-top: 20px;