@syncfusion/ej2-schedule 28.1.39 → 28.2.4

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.
@@ -1524,6 +1524,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
1524
1524
  min: this.parent.minDate,
1525
1525
  max: this.parent.maxDate,
1526
1526
  firstDayOfWeek: this.parent.activeViewOptions.firstDayOfWeek,
1527
+ weekNumber: this.parent.activeViewOptions.showWeekNumber,
1527
1528
  enableRtl: this.parent.enableRtl,
1528
1529
  locale: this.parent.locale,
1529
1530
  depth: calendarView,
@@ -9359,8 +9360,8 @@ var TimelineEvent = /** @__PURE__ @class */ (function (_super) {
9359
9360
  return slotTd;
9360
9361
  }
9361
9362
  else {
9362
- var daySlot = Math.round((((getUniversalTime(schedule.endHour) - getUniversalTime(schedule.startHour)) /
9363
- MS_PER_MINUTE) / this.getIntervalInMinutes(startTime)) * this.slotCount);
9363
+ var daySlot = Math.round(((getUniversalTime(schedule.endHour) - getUniversalTime(schedule.startHour)) /
9364
+ this.interval / MS_PER_MINUTE) * this.slotCount);
9364
9365
  return (daySlot * day) + slotTd;
9365
9366
  }
9366
9367
  };
@@ -11127,7 +11128,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
11127
11128
  QuickPopups.prototype.documentClick = function (e) {
11128
11129
  var target = e.event.target;
11129
11130
  var classNames = '.' + POPUP_WRAPPER_CLASS + ',.' + HEADER_CELLS_CLASS + ',.' + ALLDAY_CELLS_CLASS +
11130
- ',.' + WORK_CELLS_CLASS + ',.' + APPOINTMENT_CLASS + ',.e-popup';
11131
+ ',.' + WORK_CELLS_CLASS + ',.' + APPOINTMENT_CLASS;
11131
11132
  var popupWrap = this.parent.element.querySelector('.' + POPUP_WRAPPER_CLASS);
11132
11133
  if ((popupWrap && popupWrap.childElementCount > 0 && !closest(target, classNames)) || !closest(target, classNames)) {
11133
11134
  this.quickPopupHide();
@@ -11142,7 +11143,8 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
11142
11143
  }
11143
11144
  if (!closest(target, '.' + MORE_POPUP_WRAPPER_CLASS) && (target.classList &&
11144
11145
  !target.classList.contains(MORE_INDICATOR_CLASS))
11145
- && (!closest(target, '.' + POPUP_OPEN)) && !closest(target, '.' + WORK_CELLS_CLASS)) {
11146
+ && (!closest(target, '.' + MORE_POPUP_WRAPPER_CLASS + '.' + POPUP_OPEN))
11147
+ && !closest(target, '.' + WORK_CELLS_CLASS)) {
11146
11148
  this.morePopup.hide();
11147
11149
  }
11148
11150
  };
@@ -15825,7 +15827,7 @@ var Crud = /** @__PURE__ @class */ (function () {
15825
15827
  editParams.changedRecords.push(_this.parent.eventBase.processTimezone(parentEvent, true));
15826
15828
  }
15827
15829
  if (childEvent[fields.id] !== parentEvent[fields.id]) {
15828
- editParams.deletedRecords.push(childEvent);
15830
+ editParams.deletedRecords.push(_this.parent.eventBase.processTimezone(childEvent, true));
15829
15831
  isDeletedRecords = true;
15830
15832
  }
15831
15833
  break;
@@ -15989,7 +15991,7 @@ var Crud = /** @__PURE__ @class */ (function () {
15989
15991
  _this.parent.uiStateValues.isIgnoreOccurrence = false;
15990
15992
  break;
15991
15993
  case 'DeleteSeries':
15992
- editParams.deletedRecords = editParams.deletedRecords.concat(deletedEvents.concat(parentEvent));
15994
+ editParams.deletedRecords = editParams.deletedRecords.concat(deletedEvents.concat(_this.parent.eventBase.processTimezone(parentEvent, true)));
15993
15995
  isDeletedRecords = true;
15994
15996
  break;
15995
15997
  }
@@ -16053,6 +16055,12 @@ var Crud = /** @__PURE__ @class */ (function () {
16053
16055
  isDelete = deleteArgs.deletedRecords[parseInt(a.toString(), 10)][fields_3.id] !== parentEvent_1[fields_3.id];
16054
16056
  }
16055
16057
  if (isDelete) {
16058
+ if (deleteArgs.deletedRecords instanceof Array) {
16059
+ for (var _i = 0, _a = deleteArgs.deletedRecords; _i < _a.length; _i++) {
16060
+ var event_8 = _a[_i];
16061
+ _this.parent.eventBase.processTimezone(event_8, true);
16062
+ }
16063
+ }
16056
16064
  editParams.deletedRecords.push(deleteArgs.deletedRecords[parseInt(a.toString(), 10)]);
16057
16065
  }
16058
16066
  };
@@ -16060,7 +16068,8 @@ var Crud = /** @__PURE__ @class */ (function () {
16060
16068
  _loop_5(a, count);
16061
16069
  }
16062
16070
  var promise = _this.parent.dataModule.dataManager.saveChanges(editParams, fields_3.id, _this.getTable(), _this.getQuery());
16063
- _this.parent.eventBase.selectWorkCellByTime(deleteArgs.deletedRecords);
16071
+ var cloneEvent = extend({}, deleteArgs.deletedRecords[deleteArgs.deletedRecords.length - 1], null, true);
16072
+ _this.parent.eventBase.selectWorkCellByTime([_this.parent.eventBase.processTimezone(cloneEvent)]);
16064
16073
  var crudArgs = {
16065
16074
  requestType: 'eventRemoved', cancel: false, data: deleteArgs.deletedRecords, promise: promise, editParams: editParams
16066
16075
  };
@@ -16181,8 +16190,8 @@ var Crud = /** @__PURE__ @class */ (function () {
16181
16190
  var eventCollection = (eventData instanceof Array) ? eventData : [eventData];
16182
16191
  var value = false;
16183
16192
  for (var _i = 0, eventCollection_1 = eventCollection; _i < eventCollection_1.length; _i++) {
16184
- var event_8 = eventCollection_1[_i];
16185
- value = event_8[this.parent.eventFields.isBlock] || false;
16193
+ var event_9 = eventCollection_1[_i];
16194
+ value = event_9[this.parent.eventFields.isBlock] || false;
16186
16195
  }
16187
16196
  return value;
16188
16197
  };
@@ -26400,9 +26409,11 @@ var Month = /** @__PURE__ @class */ (function (_super) {
26400
26409
  }
26401
26410
  };
26402
26411
  Month.prototype.getMonthStart = function (currentDate) {
26403
- var useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && (this.parent.uiStateValues.isCustomMonth || this.isCustomRange());
26412
+ var useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && !(this.parent.uiStateValues.isSwipeScroll) &&
26413
+ (this.parent.uiStateValues.isCustomMonth || this.isCustomRange());
26404
26414
  var date = useDisplayDate ? this.parent.activeViewOptions.displayDate : !(this.parent.uiStateValues.isCustomMonth ||
26405
- this.isCustomRange()) && this.isCustomMonth() ? currentDate : this.parent.calendarUtil.firstDateOfMonth(currentDate);
26415
+ (!this.parent.uiStateValues.isSwipeScroll && this.isCustomRange())) && this.isCustomMonth() ? currentDate :
26416
+ this.parent.calendarUtil.firstDateOfMonth(currentDate);
26406
26417
  var monthStart = getWeekFirstDate(date, this.parent.activeViewOptions.firstDayOfWeek);
26407
26418
  return new Date(monthStart.getFullYear(), monthStart.getMonth(), monthStart.getDate());
26408
26419
  };