@syncfusion/ej2-schedule 30.1.38 → 30.1.41
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.
- package/dist/ej2-schedule.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +10 -1
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +11 -1
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/schedule/event-renderer/vertical-view.js +1 -1
- package/src/schedule/renderer/agenda.js +10 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 30.1.
|
|
3
|
+
* version : 30.1.41
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-schedule",
|
|
3
|
-
"version": "30.1.
|
|
3
|
+
"version": "30.1.41",
|
|
4
4
|
"author": "Syncfusion Inc.",
|
|
5
5
|
"license": "SEE LICENSE IN license",
|
|
6
6
|
"main": "./dist/ej2-schedule.umd.min.js",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
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.
|
|
14
|
-
"@syncfusion/ej2-dropdowns": "~30.1.
|
|
13
|
+
"@syncfusion/ej2-data": "~30.1.40",
|
|
14
|
+
"@syncfusion/ej2-dropdowns": "~30.1.41",
|
|
15
15
|
"@syncfusion/ej2-excel-export": "~30.1.37",
|
|
16
|
-
"@syncfusion/ej2-inputs": "~30.1.
|
|
17
|
-
"@syncfusion/ej2-lists": "~30.1.
|
|
18
|
-
"@syncfusion/ej2-navigations": "~30.1.
|
|
19
|
-
"@syncfusion/ej2-popups": "~30.1.
|
|
16
|
+
"@syncfusion/ej2-inputs": "~30.1.40",
|
|
17
|
+
"@syncfusion/ej2-lists": "~30.1.41",
|
|
18
|
+
"@syncfusion/ej2-navigations": "~30.1.41",
|
|
19
|
+
"@syncfusion/ej2-popups": "~30.1.40"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {},
|
|
22
22
|
"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.",
|
|
@@ -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) {
|