@syncfusion/ej2-schedule 30.1.37 → 30.1.39

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 : 30.1.37
3
+ * version : 30.1.39
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,21 +1,21 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-schedule",
3
- "version": "30.1.37",
3
+ "version": "30.1.39",
4
4
  "author": "Syncfusion Inc.",
5
5
  "license": "SEE LICENSE IN license",
6
6
  "main": "./dist/ej2-schedule.umd.min.js",
7
7
  "module": "./index.js",
8
8
  "es2015": "./dist/es6/ej2-schedule.es5.js",
9
9
  "dependencies": {
10
- "@syncfusion/ej2-base": "~30.1.37",
10
+ "@syncfusion/ej2-base": "~30.1.38",
11
11
  "@syncfusion/ej2-buttons": "~30.1.37",
12
12
  "@syncfusion/ej2-calendars": "~30.1.37",
13
- "@syncfusion/ej2-data": "~30.1.37",
14
- "@syncfusion/ej2-dropdowns": "~30.1.37",
13
+ "@syncfusion/ej2-data": "~30.1.38",
14
+ "@syncfusion/ej2-dropdowns": "~30.1.39",
15
15
  "@syncfusion/ej2-excel-export": "~30.1.37",
16
- "@syncfusion/ej2-inputs": "~30.1.37",
16
+ "@syncfusion/ej2-inputs": "~30.1.38",
17
17
  "@syncfusion/ej2-lists": "~30.1.37",
18
- "@syncfusion/ej2-navigations": "~30.1.37",
18
+ "@syncfusion/ej2-navigations": "~30.1.39",
19
19
  "@syncfusion/ej2-popups": "~30.1.37"
20
20
  },
21
21
  "devDependencies": {},
@@ -168,7 +168,8 @@ var VirtualScroll = /** @class */ (function () {
168
168
  if ((conWrap.scrollTop) - this.translateY < 0) {
169
169
  resCollection = this.upScroll(conWrap, firstTDIndex);
170
170
  }
171
- else if (conWrap.scrollTop - this.translateY > scrollHeight) {
171
+ else if ((conWrap.scrollTop + conWrap.clientHeight >= conWrap.scrollHeight - this.itemSize) ||
172
+ (conWrap.scrollTop > (this.translateY + scrollHeight))) {
172
173
  resCollection = this.downScroll(conWrap, firstTDIndex);
173
174
  }
174
175
  if (!isNullOrUndefined(resCollection) && resCollection.length > 0) {
@@ -578,7 +578,7 @@ var VerticalEvent = /** @class */ (function (_super) {
578
578
  var currentDate = util.resetTime(new Date(this.dateRender[parseInt(resource.toString(), 10)][parseInt(dayIndex.toString(), 10)].getTime()));
579
579
  var schedule = util.getStartEndHours(currentDate, this.startHour, this.endHour);
580
580
  var isValidEvent = this.isValidEvent(eventObj, eStart, eEnd, schedule);
581
- if ((eStart.getTime() < this.parent.minDate.getTime()) || (eEnd.getTime() > this.parent.maxDate.getTime())) {
581
+ if ((eStart.getTime() < this.parent.minDate.getTime()) || (eEnd.getTime() > (util.addDays(this.parent.maxDate, 1)).getTime())) {
582
582
  return;
583
583
  }
584
584
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
@@ -354,6 +354,7 @@ var Agenda = /** @class */ (function (_super) {
354
354
  return (type === 'next') ? { start: date, end: util.addDays(endDate, 1) } : { start: endDate, end: util.addDays(date, 1) };
355
355
  };
356
356
  Agenda.prototype.appointmentFiltering = function (startDate, endDate) {
357
+ var _this = this;
357
358
  var dateStart;
358
359
  var dateEnd;
359
360
  if (!isNullOrUndefined(startDate) && isNullOrUndefined(endDate)) {
@@ -369,6 +370,15 @@ var Agenda = /** @class */ (function (_super) {
369
370
  this.refreshEvent(startDate);
370
371
  filterData = this.parent.eventBase.filterEvents(dateStart, dateEnd);
371
372
  }
373
+ if (!isNullOrUndefined(this.parent.minDate) || !isNullOrUndefined(this.parent.maxDate)) {
374
+ var fieldMapping_1 = this.parent.eventFields;
375
+ filterData = filterData.filter(function (event) {
376
+ var eStart = event[fieldMapping_1.startTime];
377
+ var eEnd = event[fieldMapping_1.endTime];
378
+ return !(eStart.getTime() < _this.parent.minDate.getTime() ||
379
+ eEnd.getTime() > (util.addDays(_this.parent.maxDate, 1)).getTime());
380
+ });
381
+ }
372
382
  return filterData;
373
383
  };
374
384
  Agenda.prototype.getStartDateFromEndDate = function (endDate) {