@syncfusion/ej2-schedule
Advanced tools
Comparing version 21.1.38 to 21.1.39
/*! | ||
* filename: index.d.ts | ||
* version : 21.1.38 | ||
* version : 21.1.39 | ||
* 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.37", | ||
"_id": "@syncfusion/ej2-schedule@21.1.38", | ||
"_inBundle": false, | ||
"_integrity": "sha512-NLCQtiu5Olzfi6SxLt7AYA1KmVoEH8iCMIfnH3R+AGKx2M3jAc8kj254/r6ZjCOG+Hv5HJzRlzXcpsjcF6STUA==", | ||
"_integrity": "sha512-jPAJzAQE5jigxLxQ332/yTx/gSPQ+ULU57cvZt74shmRjK75My/O+tBI2RDHhf2gZWqA60Skm+1BP9C6Auiaug==", | ||
"_location": "/@syncfusion/ej2-schedule", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.1.37.tgz", | ||
"_shasum": "ca770b8410b16994dc458ebd2dce869f52476c1d", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.1.38.tgz", | ||
"_shasum": "749859087a3dbcf2959367298d72399caef697fc", | ||
"_spec": "@syncfusion/ej2-schedule@*", | ||
@@ -39,11 +39,11 @@ "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~21.1.38", | ||
"@syncfusion/ej2-base": "~21.1.39", | ||
"@syncfusion/ej2-buttons": "~21.1.37", | ||
"@syncfusion/ej2-calendars": "~21.1.38", | ||
"@syncfusion/ej2-data": "~21.1.38", | ||
"@syncfusion/ej2-dropdowns": "~21.1.38", | ||
"@syncfusion/ej2-dropdowns": "~21.1.39", | ||
"@syncfusion/ej2-excel-export": "~21.1.37", | ||
"@syncfusion/ej2-inputs": "~21.1.38", | ||
"@syncfusion/ej2-lists": "~21.1.37", | ||
"@syncfusion/ej2-navigations": "~21.1.38", | ||
"@syncfusion/ej2-inputs": "~21.1.39", | ||
"@syncfusion/ej2-lists": "~21.1.39", | ||
"@syncfusion/ej2-navigations": "~21.1.39", | ||
"@syncfusion/ej2-popups": "~21.1.37" | ||
@@ -78,4 +78,4 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "21.1.38", | ||
"version": "21.1.39", | ||
"sideEffects": false | ||
} |
@@ -171,8 +171,8 @@ var __extends = (this && this.__extends) || (function () { | ||
if (startTime <= endTime && isValidEvent) { | ||
var appWidth_1 = this.getEventWidth(startTime, endTime, event[this.fields.isAllDay], diffInDays); | ||
appWidth_1 = this.renderType === 'day' ? appWidth_1 - 2 : appWidth_1; | ||
var appWidth = this.getEventWidth(startTime, endTime, event[this.fields.isAllDay], diffInDays); | ||
appWidth = this.renderType === 'day' ? appWidth - 2 : appWidth; | ||
var appLeft = 0; | ||
var appRight = 0; | ||
var position = this.getPosition(startTime, endTime, event[this.fields.isAllDay], this.day); | ||
appWidth_1 = (appWidth_1 <= 0) ? this.cellWidth : appWidth_1; // appWidth 0 when start and end time as same | ||
appWidth = (appWidth <= 0) ? this.cellWidth : appWidth; // appWidth 0 when start and end time as same | ||
this.renderedEvents.push(extend({}, event, null, true)); | ||
@@ -198,3 +198,3 @@ if (isNullOrUndefined(this.cellTops[parseInt(resIndex.toString(), 10)])) { | ||
setStyleAttribute(appointmentElement, { | ||
'width': appWidth_1 + 'px', 'left': appLeft + 'px', 'right': appRight + 'px', 'top': appTop + 'px' | ||
'width': appWidth + 'px', 'left': appLeft + 'px', 'right': appRight + 'px', 'top': appTop + 'px' | ||
}); | ||
@@ -207,9 +207,2 @@ this.wireAppointmentEvents(appointmentElement, event); | ||
} | ||
if (this.parent.activeViewOptions.option !== 'TimelineMonth' && this.parent.activeViewOptions.timeScale.enable | ||
&& appWidth_1 < this.cellWidth) { | ||
var resizeHandlers = [].slice.call(appointmentElement.querySelectorAll('.' + cls.EVENT_RESIZE_CLASS)); | ||
resizeHandlers.forEach(function (resizeHandler) { | ||
resizeHandler.style.width = Math.ceil(appWidth_1 / resizeHandler.getBoundingClientRect().width) + 'px'; | ||
}); | ||
} | ||
} | ||
@@ -216,0 +209,0 @@ else { |
@@ -560,3 +560,3 @@ var __extends = (this && this.__extends) || (function () { | ||
if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) { | ||
var appHeight_1 = this.getHeight(eStart, eEnd); | ||
var appHeight = this.getHeight(eStart, eEnd); | ||
if (eStart.getTime() > schedule.startHour.getTime()) { | ||
@@ -598,6 +598,6 @@ topValue = this.getTopValue(eStart, dayIndex, resource); | ||
'width': (this.parent.eventSettings.enableMaxHeight ? '100%' : tempData.appWidth), | ||
'height': appHeight_1 + 'px', 'top': topValue + 'px' | ||
'height': appHeight + 'px', 'top': topValue + 'px' | ||
}); | ||
var iconHeight = appointmentElement.querySelectorAll('.' + cls.EVENT_INDICATOR_CLASS).length * 15; | ||
var maxHeight = appHeight_1 - 40 - iconHeight; | ||
var maxHeight = appHeight - 40 - iconHeight; | ||
var subjectElement = appointmentElement.querySelector('.' + cls.SUBJECT_CLASS); | ||
@@ -614,8 +614,2 @@ if (!this.parent.isAdaptive && subjectElement) { | ||
this.wireAppointmentEvents(appointmentElement, eventObj); | ||
if (appHeight_1 < this.cellHeight) { | ||
var resizeHandlers = [].slice.call(appointmentElement.querySelectorAll('.' + cls.EVENT_RESIZE_CLASS)); | ||
resizeHandlers.forEach(function (resizeHandler) { | ||
resizeHandler.style.height = Math.ceil(appHeight_1 / resizeHandler.offsetHeight) + 'px'; | ||
}); | ||
} | ||
} | ||
@@ -622,0 +616,0 @@ }; |
@@ -95,2 +95,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
'dateHeaderTemplate', 'dateRangeTemplate', 'eventTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate']; | ||
var scheduleEvents = ['actionBegin', 'actionComplete', 'actionFailure', 'created', 'dataBinding', 'dataBound', | ||
'destroyed', 'eventRendered', 'moreEventsClick', 'navigating', 'popupOpen', 'popupClose', 'renderCell']; | ||
var eventSettings; | ||
@@ -103,8 +105,11 @@ var group; | ||
switch (key) { | ||
case 'eventSettings': | ||
case 'eventSettings': { | ||
eventSettings = Object.assign({}, this.parent.eventSettings.properties); | ||
eventSettings.dataSource = this.parent.eventsData; | ||
eventSettings.template = typeof (eventSettings.template) === 'function' ? null : eventSettings.template; | ||
var eventTemplate = !isNullOrUndefined(printOptions.eventSettings) && | ||
!isNullOrUndefined(printOptions.eventSettings.template) ? printOptions.eventSettings.template : eventSettings.template; | ||
eventSettings.template = typeof (eventTemplate) === 'function' ? null : eventTemplate; | ||
printModel.eventSettings = eventSettings; | ||
break; | ||
} | ||
case 'group': | ||
@@ -145,2 +150,6 @@ group = isNullOrUndefined(printOptions.group) ? this.parent.group : printOptions.group; | ||
} | ||
if (scheduleEvents.indexOf(key) > -1) { | ||
printModel["" + key] = printOptions["" + key]; | ||
break; | ||
} | ||
printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ? | ||
@@ -147,0 +156,0 @@ this.parent["" + key] : printOptions["" + key]; |
@@ -177,3 +177,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var currentDateIndex = renderDates.slice(0, count).map(function (date) { return date.getDay(); }); | ||
if (isCurrentMonth && currentDateIndex.indexOf(this.parent.getCurrentTime().getDay()) === col) { | ||
if (isCurrentMonth && currentDateIndex.indexOf(this.parent.currentTimezoneDate.getDay()) === col) { | ||
classList.push(cls.CURRENT_DAY_CLASS); | ||
@@ -550,3 +550,3 @@ } | ||
var announcementText = this.parent.globalize.formatDate(data.date, { skeleton: skeleton, calendar: this.parent.getCalendarMode() }); | ||
dateHeader.setAttribute('aria-label', announcementText); | ||
ntd.setAttribute('aria-label', announcementText); | ||
} | ||
@@ -553,0 +553,0 @@ }; |
@@ -108,2 +108,3 @@ import { isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base'; | ||
this.updateHeader(); | ||
this.parent.currentTimezoneDate = this.parent.getCurrentTime(); | ||
this.parent.activeView.renderLayout(cls.CURRENT_PANEL_CLASS); | ||
@@ -110,0 +111,0 @@ this.parent.renderTemplates(); |
@@ -239,4 +239,7 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
var announcementText = this.parent.globalize.formatDate(date, { | ||
skeleton: 'full', calendar: this.parent.getCalendarMode() | ||
}); | ||
var td = createElement('td', { | ||
className: cls.WORK_CELLS_CLASS, attrs: { 'aria-selected': 'false' } | ||
className: cls.WORK_CELLS_CLASS, attrs: { 'aria-selected': 'false', 'aria-label': announcementText } | ||
}); | ||
@@ -249,7 +252,2 @@ contentTr.appendChild(td); | ||
}); | ||
var skeleton = 'full'; | ||
var announcementText = this.parent.globalize.formatDate(date, { | ||
skeleton: skeleton, calendar: this.parent.getCalendarMode() | ||
}); | ||
dateHeader.setAttribute('aria-label', announcementText); | ||
if (isDateAvail) { | ||
@@ -256,0 +254,0 @@ var tds = [td]; |
@@ -242,3 +242,4 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
if (this.parent.showTimeIndicator && this.isWorkHourRange(this.parent.getCurrentTime())) { | ||
var currentDate = this.parent.getCurrentTime(); | ||
if (this.parent.showTimeIndicator && this.isWorkHourRange(currentDate)) { | ||
var currentDateIndex = this.getCurrentTimeIndicatorIndex(); | ||
@@ -251,3 +252,2 @@ if (currentDateIndex.length > 0) { | ||
if (isNullOrUndefined(this.currentTimeIndicatorTimer)) { | ||
var currentDate = this.parent.getCurrentTime(); | ||
var interval = util.MS_PER_MINUTE - ((currentDate.getSeconds() * 1000) + currentDate.getMilliseconds()); | ||
@@ -279,2 +279,3 @@ if (interval <= (util.MS_PER_MINUTE - 1000)) { | ||
var count = 0; | ||
var currentDate = util.resetTime(this.parent.getCurrentTime()); | ||
if (this.parent.virtualScrollModule && this.parent.activeViewOptions.allowVirtualScrolling && | ||
@@ -284,3 +285,3 @@ this.parent.activeViewOptions.group.byDate) { | ||
var resource = _a[_i]; | ||
if (util.resetTime(resource.date).getTime() === util.resetTime(this.parent.getCurrentTime()).getTime()) { | ||
if (util.resetTime(resource.date).getTime() === currentDate.getTime()) { | ||
currentDateIndex.push(count); | ||
@@ -294,3 +295,3 @@ } | ||
var resource = _c[_b]; | ||
var index = this.parent.getIndexOfDate(resource.renderDates, util.resetTime(this.parent.getCurrentTime())); | ||
var index = this.parent.getIndexOfDate(resource.renderDates, currentDate); | ||
if (index >= 0) { | ||
@@ -297,0 +298,0 @@ var resIndex = this.parent.activeViewOptions.group.byDate ? |
@@ -220,3 +220,3 @@ import { createElement, append, prepend, isNullOrUndefined, getValue, getDefaultDateObject, cldrData, addClass, setStyleAttribute, formatUnit, EventHandler, remove } from '@syncfusion/ej2-base'; | ||
ViewBase.prototype.isCurrentDate = function (date) { | ||
return date.setHours(0, 0, 0, 0) === this.parent.getCurrentTime().setHours(0, 0, 0, 0); | ||
return date.setHours(0, 0, 0, 0) === new Date(this.parent.currentTimezoneDate).setHours(0, 0, 0, 0); | ||
}; | ||
@@ -223,0 +223,0 @@ ViewBase.prototype.isCurrentMonth = function (date) { |
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
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
20868044
232353