@syncfusion/ej2-schedule 31.2.2 → 31.2.3

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 : 31.2.2
3
+ * version : 31.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-schedule",
3
- "version": "31.2.2",
3
+ "version": "31.2.3",
4
4
  "author": "Syncfusion Inc.",
5
5
  "license": "SEE LICENSE IN license",
6
6
  "main": "./dist/ej2-schedule.umd.min.js",
@@ -8,14 +8,14 @@
8
8
  "es2015": "./dist/es6/ej2-schedule.es5.js",
9
9
  "dependencies": {
10
10
  "@syncfusion/ej2-base": "~31.2.2",
11
- "@syncfusion/ej2-buttons": "~31.2.2",
12
- "@syncfusion/ej2-calendars": "~31.2.2",
13
- "@syncfusion/ej2-data": "~31.2.2",
14
- "@syncfusion/ej2-dropdowns": "~31.2.2",
11
+ "@syncfusion/ej2-buttons": "~31.2.3",
12
+ "@syncfusion/ej2-calendars": "~31.2.3",
13
+ "@syncfusion/ej2-data": "~31.2.3",
14
+ "@syncfusion/ej2-dropdowns": "~31.2.3",
15
15
  "@syncfusion/ej2-excel-export": "~31.2.2",
16
16
  "@syncfusion/ej2-inputs": "~31.2.2",
17
17
  "@syncfusion/ej2-lists": "~31.2.2",
18
- "@syncfusion/ej2-navigations": "~31.2.2",
18
+ "@syncfusion/ej2-navigations": "~31.2.3",
19
19
  "@syncfusion/ej2-popups": "~31.2.2"
20
20
  },
21
21
  "devDependencies": {},
@@ -699,29 +699,30 @@ var VerticalEvent = /** @class */ (function (_super) {
699
699
  }
700
700
  var queue_1 = [];
701
701
  this.overlapList.forEach(function (obj) {
702
- queue_1.push(obj);
703
702
  var filterList = [];
704
703
  var processedIds = new Set();
705
- var _loop_2 = function () {
704
+ queue_1.push(obj);
705
+ processedIds.add(obj[fieldMapping.id]);
706
+ filterList.push(obj);
707
+ while (queue_1.length > 0) {
706
708
  var currentObj = queue_1.shift();
707
- var overlaps = appointmentList_1.filter(function (data) {
708
- return data[fieldMapping.endTime] > currentObj[fieldMapping.startTime] &&
709
- data[fieldMapping.startTime] <= currentObj[fieldMapping.endTime] &&
710
- !processedIds.has(data[fieldMapping.id]);
711
- });
712
- overlaps.forEach(function (overlap) {
713
- filterList.push(overlap);
714
- processedIds.add(overlap[fieldMapping.id]);
715
- queue_1.push(overlap);
716
- });
717
- if (processedIds.size < appointmentList_1.length - 1) {
718
- return "break";
709
+ var currentObjEndTime = currentObj[fieldMapping.endTime].getTime();
710
+ var currentObjStartTime = currentObj[fieldMapping.startTime].getTime();
711
+ for (var _i = 0, appointmentList_2 = appointmentList_1; _i < appointmentList_2.length; _i++) {
712
+ var data = appointmentList_2[_i];
713
+ var dataStartTime = data[fieldMapping.startTime].getTime();
714
+ var dataEndTime = data[fieldMapping.endTime].getTime();
715
+ if (dataStartTime >= currentObjEndTime) {
716
+ break;
717
+ }
718
+ if (!processedIds.has(data[fieldMapping.id])) {
719
+ if (dataEndTime > currentObjStartTime && dataStartTime < currentObjEndTime) {
720
+ filterList.push(data);
721
+ processedIds.add(data[fieldMapping.id]);
722
+ queue_1.push(data);
723
+ }
724
+ }
719
725
  }
720
- };
721
- while (queue_1.length > 0) {
722
- var state_1 = _loop_2();
723
- if (state_1 === "break")
724
- break;
725
726
  }
726
727
  if (_this.parent.activeViewOptions.group.resources.length > 0) {
727
728
  filterList = _this.filterEventsByResource(_this.resources[parseInt(resource.toString(), 10)], filterList);