@syncfusion/ej2-schedule
Advanced tools
Comparing version 21.2.4 to 21.2.5
/*! | ||
* filename: index.d.ts | ||
* version : 21.2.4 | ||
* version : 21.2.5 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-schedule@*", | ||
"_id": "@syncfusion/ej2-schedule@21.2.3", | ||
"_id": "@syncfusion/ej2-schedule@21.2.4", | ||
"_inBundle": false, | ||
"_integrity": "sha512-iBQZrY80nX2tK6NN+/2FzLObcxL0QT+lykvtOE/FXSmTSvAaotT1s0xrP9moLkrA1oLJVTzavM327S43XI2oEA==", | ||
"_integrity": "sha512-Cla0X2FzqLyZKXiuKq+zyVF1qZ8MX1VHc8jIYvkdtNbDHzwrS4e2YSpelZ5xoyWR2svYhZoOSZNL1Wu5f7bM2A==", | ||
"_location": "/@syncfusion/ej2-schedule", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.2.3.tgz", | ||
"_shasum": "c6a62a12ee170e5e23a379e118d441e53850832c", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.2.4.tgz", | ||
"_shasum": "e7dcded313247a3cf0ffa986dd88c88b2c931d36", | ||
"_spec": "@syncfusion/ej2-schedule@*", | ||
@@ -40,10 +40,10 @@ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included", | ||
"@syncfusion/ej2-base": "~21.2.3", | ||
"@syncfusion/ej2-buttons": "~21.2.3", | ||
"@syncfusion/ej2-calendars": "~21.2.4", | ||
"@syncfusion/ej2-buttons": "~21.2.5", | ||
"@syncfusion/ej2-calendars": "~21.2.5", | ||
"@syncfusion/ej2-data": "~21.2.4", | ||
"@syncfusion/ej2-dropdowns": "~21.2.4", | ||
"@syncfusion/ej2-dropdowns": "~21.2.5", | ||
"@syncfusion/ej2-excel-export": "~21.2.4", | ||
"@syncfusion/ej2-inputs": "~21.2.4", | ||
"@syncfusion/ej2-lists": "~21.2.3", | ||
"@syncfusion/ej2-navigations": "~21.2.4", | ||
"@syncfusion/ej2-navigations": "~21.2.5", | ||
"@syncfusion/ej2-popups": "~21.2.4" | ||
@@ -78,4 +78,4 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "21.2.4", | ||
"version": "21.2.5", | ||
"sideEffects": false | ||
} |
@@ -115,3 +115,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
verticalEvent.allDayLevel = allDayLevel; | ||
verticalEvent.renderAllDayEvents(saveObj, index, resIndex, daysCount, this.parent.allowInline); | ||
var appHeight = util.getElementHeightFromClass(this.parent.element.querySelector('.' + cls.ALLDAY_APPOINTMENT_WRAPPER_CLASS), cls.APPOINTMENT_CLASS); | ||
var cellTop = verticalEvent.allDayElement.length > 0 ? verticalEvent.allDayElement[0].offsetTop : 0; | ||
verticalEvent.renderAllDayEvents(saveObj, index, resIndex, daysCount, this.parent.allowInline, cellTop, appHeight); | ||
} | ||
@@ -118,0 +120,0 @@ else { |
@@ -43,3 +43,3 @@ import { EventFieldsMapping, TdData } from '../base/interface'; | ||
private isWorkDayAvailable; | ||
renderAllDayEvents(eventObj: Record<string, any>, dayIndex: number, resource: number, dayCount: number, inline?: boolean): void; | ||
renderAllDayEvents(eventObj: Record<string, any>, dayIndex: number, resource: number, dayCount: number, inline: boolean, cellTop: number, eventHeight: number): void; | ||
renderNormalEvents(eventObj: Record<string, any>, dayIndex: number, resource: number, dayCount: number, inline?: boolean): void; | ||
@@ -46,0 +46,0 @@ private getEventWidth; |
@@ -99,2 +99,3 @@ var __extends = (this && this.__extends) || (function () { | ||
this.renderEvents('allDayEvents'); | ||
this.animation.animate(this.allDayElement[0]); | ||
} | ||
@@ -202,2 +203,4 @@ this.parent.notify(events.contentReady, {}); | ||
var isRender; | ||
var appHeight = eventType === 'allDayEvents' ? util.getElementHeightFromClass(this.element.querySelector('.' + cls.ALLDAY_APPOINTMENT_WRAPPER_CLASS), cls.APPOINTMENT_CLASS) : 0; | ||
var allDayRowTop = eventType === 'allDayEvents' && this.allDayElement.length > 0 ? this.allDayElement[0].offsetTop : 0; | ||
var _loop_1 = function (resource) { | ||
@@ -229,3 +232,3 @@ isRender = true; | ||
if (eventType === 'allDayEvents') { | ||
this_1.renderAllDayEvents(event_2, day, resource, dateCount); | ||
this_1.renderAllDayEvents(event_2, day, resource, dateCount, false, allDayRowTop, appHeight); | ||
} | ||
@@ -466,3 +469,4 @@ else { | ||
}; | ||
VerticalEvent.prototype.renderAllDayEvents = function (eventObj, dayIndex, resource, dayCount, inline) { | ||
// eslint-disable-next-line max-len | ||
VerticalEvent.prototype.renderAllDayEvents = function (eventObj, dayIndex, resource, dayCount, inline, cellTop, eventHeight) { | ||
var _this = this; | ||
@@ -476,4 +480,2 @@ var currentDates = this.getRenderedDates(this.dateRender[parseInt(resource.toString(), 10)]) || | ||
var record = this.splitEvent(eventObj, currentDates)[0]; | ||
var allDayRowCell = this.element.querySelector('.' + cls.ALLDAY_CELLS_CLASS + ':first-child'); | ||
var cellTop = allDayRowCell.offsetTop; | ||
var eStart = new Date(record[this.parent.eventFields.startTime].getTime()); | ||
@@ -531,4 +533,3 @@ var eEnd = new Date(record[this.parent.eventFields.endTime].getTime()); | ||
eventWrapper_1.appendChild(appointmentElement_1); | ||
var appHeight = appointmentElement_1.offsetHeight; | ||
topValue += (allDayIndex_1 === 0 ? cellTop : (cellTop + (allDayIndex_1 * appHeight))) + 1; | ||
topValue += (allDayIndex_1 === 0 ? cellTop : (cellTop + (allDayIndex_1 * eventHeight))) + 1; | ||
setStyleAttribute(appointmentElement_1, { 'width': appWidth + '%', 'top': formatUnit(topValue) }); | ||
@@ -541,5 +542,5 @@ if (allDayIndex_1 > 1) { | ||
} | ||
allDayRowCell.setAttribute('data-count', _this.allDayLevel.toString()); | ||
_this.allDayElement[0].setAttribute('data-count', _this.allDayLevel.toString()); | ||
var allDayRowHeight = ((!_this.parent.uiStateValues.expand && _this.allDayLevel > 2) ? | ||
(3 * appHeight) : ((_this.allDayLevel + 1) * appHeight)) + 4; | ||
(3 * eventHeight) : ((_this.allDayLevel + 1) * eventHeight)) + 4; | ||
_this.setAllDayRowHeight(allDayRowHeight); | ||
@@ -774,3 +775,2 @@ _this.addOrRemoveClass(); | ||
else { | ||
dateHeader.scrollTop = 0; | ||
for (var _i = 0, _a = this.allDayElement; _i < _a.length; _i++) { | ||
@@ -782,3 +782,2 @@ var element = _a[_i]; | ||
} | ||
this.animation.animate(this.allDayElement[0]); | ||
}; | ||
@@ -843,4 +842,6 @@ VerticalEvent.prototype.addOrRemoveClass = function () { | ||
rowHeight = (3 * this.getEventHeight()) + 4; | ||
this.parent.element.querySelector('.' + cls.DATE_HEADER_WRAP_CLASS).scrollTop = 0; | ||
} | ||
this.setAllDayRowHeight(rowHeight); | ||
this.animation.animate(this.allDayElement[0]); | ||
this.addOrRemoveClass(); | ||
@@ -847,0 +848,0 @@ this.animation.animate(target); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20903856
232522