@syncfusion/ej2-schedule
Advanced tools
Comparing version 21.2.3 to 21.2.4
/*! | ||
* filename: index.d.ts | ||
* version : 21.2.3 | ||
* version : 21.2.4 | ||
* 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.1.41", | ||
"_id": "@syncfusion/ej2-schedule@21.2.3", | ||
"_inBundle": false, | ||
"_integrity": "sha512-3TzRE+vjuSqMo3rnt+t+iu5n2GtQPJ5H40YcVuZInxT3NkV7CmlY4wyIxw1oTF/bWCqiG9SQc9ShPxy9RkgkPg==", | ||
"_integrity": "sha512-iBQZrY80nX2tK6NN+/2FzLObcxL0QT+lykvtOE/FXSmTSvAaotT1s0xrP9moLkrA1oLJVTzavM327S43XI2oEA==", | ||
"_location": "/@syncfusion/ej2-schedule", | ||
@@ -21,6 +21,9 @@ "_phantomChildren": {}, | ||
"/", | ||
"/@syncfusion/ej2" | ||
"/@syncfusion/ej2", | ||
"/@syncfusion/ej2-angular-schedule", | ||
"/@syncfusion/ej2-react-schedule", | ||
"/@syncfusion/ej2-vue-schedule" | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.1.41.tgz", | ||
"_shasum": "50faf8c7a5144da5b93b743315134014912cc5d4", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.2.3.tgz", | ||
"_shasum": "c6a62a12ee170e5e23a379e118d441e53850832c", | ||
"_spec": "@syncfusion/ej2-schedule@*", | ||
@@ -38,10 +41,10 @@ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included", | ||
"@syncfusion/ej2-buttons": "~21.2.3", | ||
"@syncfusion/ej2-calendars": "~21.2.3", | ||
"@syncfusion/ej2-data": "~21.2.3", | ||
"@syncfusion/ej2-dropdowns": "~21.2.3", | ||
"@syncfusion/ej2-excel-export": "~21.2.3", | ||
"@syncfusion/ej2-inputs": "~21.2.3", | ||
"@syncfusion/ej2-calendars": "~21.2.4", | ||
"@syncfusion/ej2-data": "~21.2.4", | ||
"@syncfusion/ej2-dropdowns": "~21.2.4", | ||
"@syncfusion/ej2-excel-export": "~21.2.4", | ||
"@syncfusion/ej2-inputs": "~21.2.4", | ||
"@syncfusion/ej2-lists": "~21.2.3", | ||
"@syncfusion/ej2-navigations": "~21.2.3", | ||
"@syncfusion/ej2-popups": "~21.2.3" | ||
"@syncfusion/ej2-navigations": "~21.2.4", | ||
"@syncfusion/ej2-popups": "~21.2.4" | ||
}, | ||
@@ -75,4 +78,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "21.2.3", | ||
"version": "21.2.4", | ||
"sideEffects": false | ||
} |
@@ -28,2 +28,3 @@ import { Schedule } from '../base/schedule'; | ||
updateCellHeight(cell: HTMLElement, height: number): void; | ||
private adjustAppointments; | ||
private getFirstChild; | ||
@@ -30,0 +31,0 @@ updateBlockElements(): void; |
@@ -200,7 +200,18 @@ var __extends = (this && this.__extends) || (function () { | ||
this.wireAppointmentEvents(appointmentElement, event); | ||
this.renderEventElement(event, appointmentElement, cellTd); | ||
if (this.parent.rowAutoHeight) { | ||
var conWrap = this.parent.element.querySelector('.' + cls.CONTENT_WRAP_CLASS); | ||
var conWidth = conWrap.getBoundingClientRect().width; | ||
var isWithoutScroll = conWrap.offsetHeight === conWrap.clientHeight && | ||
conWrap.offsetWidth === conWrap.clientWidth; | ||
this.renderEventElement(event, appointmentElement, cellTd); | ||
var firstChild = this.getFirstChild(resIndex); | ||
this.updateCellHeight(firstChild, height); | ||
if (isWithoutScroll && | ||
(conWrap.offsetWidth > conWrap.clientWidth || conWidth !== conWrap.getBoundingClientRect().width)) { | ||
this.adjustAppointments(conWidth); | ||
} | ||
} | ||
else { | ||
this.renderEventElement(event, appointmentElement, cellTd); | ||
} | ||
} | ||
@@ -296,2 +307,18 @@ else { | ||
}; | ||
TimelineEvent.prototype.adjustAppointments = function (conWidth) { | ||
var _this = this; | ||
var tr = this.parent.element.querySelector('.' + cls.CONTENT_TABLE_CLASS + ' tbody tr'); | ||
this.cellWidth = this.workCells[0].getBoundingClientRect().width; | ||
var currentPercentage = (this.cellWidth * tr.children.length) / (conWidth / 100); | ||
var apps = [].slice.call(this.parent.element.querySelectorAll('.' + cls.APPOINTMENT_CLASS)); | ||
apps.forEach(function (app) { | ||
if (_this.parent.enableRtl && app.style.right !== '0px') { | ||
app.style.right = ((parseFloat(app.style.right) / 100) * currentPercentage) + 'px'; | ||
} | ||
else if (app.style.left !== '0px') { | ||
app.style.left = ((parseFloat(app.style.left) / 100) * currentPercentage) + 'px'; | ||
} | ||
app.style.width = ((parseFloat(app.style.width) / 100) * currentPercentage) + 'px'; | ||
}); | ||
}; | ||
TimelineEvent.prototype.getFirstChild = function (index) { | ||
@@ -298,0 +325,0 @@ var query = '.' + cls.CONTENT_TABLE_CLASS + ' tbody td'; |
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
Sorry, the diff of this file is too big to display
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
20896612
232510