@syncfusion/ej2-schedule
Advanced tools
Comparing version 16.3.29 to 16.3.30
@@ -5,2 +5,4 @@ # Changelog | ||
## 16.3.29 (2018-10-31) | ||
### Schedule | ||
@@ -7,0 +9,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 16.3.29 | ||
* version : 16.3.30 | ||
* Copyright Syncfusion Inc. 2001 - 2018. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"name": "@syncfusion/ej2-schedule", | ||
"version": "16.3.29", | ||
"version": "16.3.30", | ||
"author": "Syncfusion Inc.", | ||
@@ -10,11 +10,11 @@ "license": "SEE LICENSE IN license", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~16.3.29", | ||
"@syncfusion/ej2-data": "~16.3.29", | ||
"@syncfusion/ej2-popups": "~16.3.29", | ||
"@syncfusion/ej2-calendars": "~16.3.29", | ||
"@syncfusion/ej2-navigations": "~16.3.29", | ||
"@syncfusion/ej2-dropdowns": "~16.3.29", | ||
"@syncfusion/ej2-buttons": "~16.3.29", | ||
"@syncfusion/ej2-inputs": "~16.3.29", | ||
"@syncfusion/ej2-lists": "~16.3.29" | ||
"@syncfusion/ej2-base": "~16.3.30", | ||
"@syncfusion/ej2-data": "~16.3.30", | ||
"@syncfusion/ej2-popups": "~16.3.30", | ||
"@syncfusion/ej2-calendars": "~16.3.30", | ||
"@syncfusion/ej2-navigations": "~16.3.30", | ||
"@syncfusion/ej2-dropdowns": "~16.3.30", | ||
"@syncfusion/ej2-buttons": "~16.3.30", | ||
"@syncfusion/ej2-inputs": "~16.3.30", | ||
"@syncfusion/ej2-lists": "~16.3.30" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
@@ -177,3 +177,2 @@ import { BaseEventArgs } from '@syncfusion/ej2-base'; | ||
type: string; | ||
text?: string; | ||
resourceLevelIndex?: number; | ||
@@ -188,2 +187,3 @@ resource?: ResourcesModel; | ||
cssClass?: string; | ||
template?: NodeList | Element[]; | ||
} | ||
@@ -190,0 +190,0 @@ /** @hidden */ |
@@ -166,3 +166,3 @@ import { isNullOrUndefined, addClass, createElement, append, EventHandler, extend, remove } from '@syncfusion/ej2-base'; | ||
groupOrder: resData[res].groupOrder, resourceData: resData[res].resourceData, | ||
date: agendaDate, text: '' | ||
date: agendaDate | ||
}; | ||
@@ -179,3 +179,3 @@ if (!lastLevelInfo[tempIndex]) { | ||
|| this.parent.currentView === 'MonthAgenda') { | ||
lastLevelInfo[lastLevelInfo.length - 1][1].text = 'lastRow'; | ||
lastLevelInfo[lastLevelInfo.length - 1][1].cssClass = cls.AGENDA_DAY_BORDER_CLASS; | ||
var tempObj = { | ||
@@ -261,4 +261,4 @@ rowSpan: data.length, type: 'resourceColumn', resource: resColl[resColl.length - 1], | ||
var className = [cls.AGENDA_CELLS_CLASS, cls.AGENDA_DATE_CLASS]; | ||
if (data.text === 'lastRow') { | ||
className.push(cls.AGENDA_DAY_BORDER_CLASS); | ||
if (data.cssClass) { | ||
className.push(data.cssClass); | ||
} | ||
@@ -265,0 +265,0 @@ addClass([ntd], className); |
@@ -201,3 +201,3 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
append([].slice.call(templateElement), appointmentDetails); | ||
append(templateElement, appointmentDetails); | ||
this.appendEventIcons(record, appointmentDetails); | ||
@@ -204,0 +204,0 @@ this.renderResizeHandler(appointmentWrapper, record.data); |
import { Schedule } from '../base/schedule'; | ||
/** | ||
* Tooltip on appointments in Schedule | ||
* Tooltip for Schedule | ||
*/ | ||
@@ -5,0 +5,0 @@ export declare class EventTooltip { |
@@ -6,3 +6,3 @@ import { isNullOrUndefined, append, createElement } from '@syncfusion/ej2-base'; | ||
/** | ||
* Tooltip on appointments in Schedule | ||
* Tooltip for Schedule | ||
*/ | ||
@@ -39,3 +39,2 @@ var EventTooltip = /** @class */ (function () { | ||
} | ||
var content = ''; | ||
if (args.target.classList.contains(cls.RESOURCE_CELLS_CLASS) && this.parent.activeViewOptions.group.resources.length > 0) { | ||
@@ -56,6 +55,5 @@ var resCollection = void 0; | ||
}; | ||
var ele = createElement('div'); | ||
append([].slice.call(this.parent.getHeaderTooltipTemplate()(data)), ele); | ||
content = ele.innerHTML; | ||
this.tooltipObj.content = content; | ||
var contentContainer = createElement('div'); | ||
append(this.parent.getHeaderTooltipTemplate()(data), contentContainer); | ||
this.tooltipObj.content = contentContainer; | ||
return; | ||
@@ -65,5 +63,5 @@ } | ||
if (!isNullOrUndefined(this.parent.eventSettings.tooltipTemplate)) { | ||
var ele = createElement('div'); | ||
append([].slice.call(this.parent.getEventTooltipTemplate()(record)), ele); | ||
content = ele.innerHTML; | ||
var contentContainer = createElement('div'); | ||
append(this.parent.getEventTooltipTemplate()(record), contentContainer); | ||
this.tooltipObj.content = contentContainer; | ||
} | ||
@@ -95,3 +93,3 @@ else { | ||
(startTime + ' - ' + endTime); | ||
content = '<div><div class="e-subject">' + tooltipSubject + '</div>' + | ||
this.tooltipObj.content = '<div><div class="e-subject">' + tooltipSubject + '</div>' + | ||
'<div class="e-location">' + tooltipLocation + '</div>' + | ||
@@ -101,3 +99,2 @@ '<div class="e-details">' + tooltipDetails + '</div>' + | ||
} | ||
this.tooltipObj.content = content; | ||
}; | ||
@@ -104,0 +101,0 @@ EventTooltip.prototype.close = function () { |
@@ -1,2 +0,2 @@ | ||
import { createElement, compile, append } from '@syncfusion/ej2-base'; | ||
import { compile } from '@syncfusion/ej2-base'; | ||
import { MS_PER_DAY, getWeekNumber } from '../base/util'; | ||
@@ -59,4 +59,2 @@ /** | ||
var dates = data[keys[i]]; | ||
var content = void 0; | ||
var ele = createElement('div'); | ||
var htmlCol = void 0; | ||
@@ -70,6 +68,4 @@ if (!tempFn) { | ||
} | ||
append([].slice.call(htmlCol), ele); | ||
content = ele.innerHTML; | ||
tdDatas.push({ | ||
date: dates[0], type: type, className: [cls], colSpan: dates.length * colspan, text: content | ||
date: dates[0], type: type, className: [cls], colSpan: dates.length * colspan, template: htmlCol | ||
}); | ||
@@ -76,0 +72,0 @@ } |
@@ -395,3 +395,6 @@ var __extends = (this && this.__extends) || (function () { | ||
var weekNo = util.getWeekNumber(this.renderDates.slice(-1)[0]); | ||
data_1.text = '<span title="' + this.parent.localeObj.getConstant('week') + ' ' + weekNo + '">' + weekNo + '</span>'; | ||
data_1.template = [createElement('span', { | ||
innerHTML: '' + weekNo, | ||
attrs: { title: this.parent.localeObj.getConstant('week') + ' ' + weekNo } | ||
})]; | ||
} | ||
@@ -398,0 +401,0 @@ ntr_1.appendChild(this.createTd(data_1)); |
@@ -106,4 +106,4 @@ import { createElement, append, prepend, isNullOrUndefined, getValue, getDefaultDateObject, cldrData, addClass } from '@syncfusion/ej2-base'; | ||
ViewBase.prototype.addAttributes = function (td, element) { | ||
if (td.text) { | ||
element.innerHTML = td.text; | ||
if (td.template) { | ||
append(td.template, element); | ||
} | ||
@@ -346,3 +346,2 @@ if (td.colSpan) { | ||
if (this.parent.activeViewOptions.resourceHeaderTemplate) { | ||
var cntEle = void 0; | ||
var data = { | ||
@@ -352,6 +351,3 @@ resource: tdData.resource, | ||
}; | ||
cntEle = this.parent.getResourceHeaderTemplate()(data); | ||
if (cntEle && cntEle.length) { | ||
append([].slice.call(cntEle), tdElement); | ||
} | ||
append(this.parent.getResourceHeaderTemplate()(data), tdElement); | ||
} | ||
@@ -358,0 +354,0 @@ else { |
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
9480869
82539