@syncfusion/ej2-schedule
Advanced tools
Comparing version 26.1.35 to 26.1.38
/*! | ||
* filename: index.d.ts | ||
* version : 26.1.35 | ||
* version : 26.1.38 | ||
* Copyright Syncfusion Inc. 2001 - 2023. 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@22.9.0", | ||
"_id": "@syncfusion/ej2-schedule@26.1.35", | ||
"_inBundle": false, | ||
"_integrity": "sha512-cbmdRc8J/qV77jIuDMYvpqRZxfgaaT8ATKKb8JFgIE2W/9wR2bhVqd9nWjMfnqTB2n8C+s07mz1p590gCbi5eQ==", | ||
"_integrity": "sha512-Fx4Kngq33Dx3e7MaYbkyysaB99zrNmlxsiUS5l5I/i6dz5oBVgsB7j0ttdv7s75jatZSpQRUax7qSuwOy60Exg==", | ||
"_location": "/@syncfusion/ej2-schedule", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-schedule/-/ej2-schedule-22.9.0.tgz", | ||
"_shasum": "dc4b9da9933cae83dd17089bda3a219960824ba3", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.1.35.tgz", | ||
"_shasum": "e7f8fe076094a6a3f108ff2219696d7dcf9f27cf", | ||
"_spec": "@syncfusion/ej2-schedule@*", | ||
@@ -39,12 +39,12 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~26.1.35", | ||
"@syncfusion/ej2-base": "~26.1.37", | ||
"@syncfusion/ej2-buttons": "~26.1.35", | ||
"@syncfusion/ej2-calendars": "~26.1.35", | ||
"@syncfusion/ej2-calendars": "~26.1.38", | ||
"@syncfusion/ej2-data": "~26.1.35", | ||
"@syncfusion/ej2-dropdowns": "~26.1.35", | ||
"@syncfusion/ej2-dropdowns": "~26.1.38", | ||
"@syncfusion/ej2-excel-export": "~26.1.35", | ||
"@syncfusion/ej2-inputs": "~26.1.35", | ||
"@syncfusion/ej2-inputs": "~26.1.38", | ||
"@syncfusion/ej2-lists": "~26.1.35", | ||
"@syncfusion/ej2-navigations": "~26.1.35", | ||
"@syncfusion/ej2-popups": "~26.1.35", | ||
"@syncfusion/ej2-navigations": "~26.1.38", | ||
"@syncfusion/ej2-popups": "~26.1.38", | ||
"@types/requirejs": "^2.1.37" | ||
@@ -79,4 +79,4 @@ }, | ||
"typings": "index.d.ts", | ||
"version": "26.1.35", | ||
"version": "26.1.38", | ||
"sideEffects": false | ||
} |
@@ -62,3 +62,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
if (_this.parent.isPrinting) { | ||
_this.parent.notify(events.print, {}); | ||
setTimeout(function () { | ||
_this.parent.notify(events.print, {}); | ||
}, 100); | ||
} | ||
@@ -65,0 +67,0 @@ }); |
@@ -119,2 +119,7 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.scrollArgs = { element: viewElement, width: viewElement.scrollWidth, height: viewElement.scrollHeight }; | ||
// 883565 - To fix the resizing not working issue at the last column of the timeline view | ||
if (['Month', 'TimelineYear'].indexOf(_this.parent.currentView) < 0) { | ||
var scrollWidth = Math.round(_this.scrollArgs.width / _this.actionObj.cellWidth) * _this.actionObj.cellWidth; | ||
_this.scrollArgs.width = _this.scrollArgs.width < scrollWidth ? scrollWidth : _this.scrollArgs.width; | ||
} | ||
EventHandler.add(document, Browser.touchMoveEvent, _this.resizing, _this); | ||
@@ -121,0 +126,0 @@ EventHandler.add(document, Browser.touchEndEvent, _this.resizeStop, _this); |
@@ -71,3 +71,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var templateId = scheduleId + viewName + 'eventTemplate'; | ||
templateEle = _this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], _this.parent, 'eventTemplate', templateId, false); | ||
templateEle = _this.parent.getAppointmentTemplate()(listData[parseInt(li.toString(), 10)], _this.parent, 'eventTemplate', templateId, false, undefined, undefined, _this.parent.root); | ||
if (!isNullOrUndefined(listData[parseInt(li.toString(), 10)][fieldMapping.recurrenceRule])) { | ||
@@ -376,3 +376,3 @@ var iconClass = (listData[parseInt(li.toString(), 10)][fieldMapping.id] === | ||
var templateId = scheduleId + viewName + 'dateHeaderTemplate'; | ||
var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, 'dateHeaderTemplate', templateId, false)); | ||
var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, 'dateHeaderTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(dateTemplate, dateHeader); | ||
@@ -379,0 +379,0 @@ } |
@@ -409,3 +409,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var eventTemplate = this.isResourceEventTemplate ? this.parent.getEventTemplateName(resIndex) : 'eventTemplate'; | ||
templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, eventTemplate, templateId, false); | ||
templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, eventTemplate, templateId, false, undefined, undefined, this.parent.root); | ||
} | ||
@@ -539,2 +539,3 @@ else { | ||
indicator.setAttribute('data-count', count.toString()); | ||
indicator.setAttribute('aria-label', count + ' ' + this.parent.localeObj.getConstant('moreEvents')); | ||
indicator.innerHTML = this.getMoreIndicatorText(count); | ||
@@ -541,0 +542,0 @@ } |
@@ -465,4 +465,9 @@ var __extends = (this && this.__extends) || (function () { | ||
TimelineEvent.prototype.getSameDayEventsWidth = function (startDate, endDate) { | ||
var intervalMins = this.interval; | ||
if (this.slotsPerDay === 1) { | ||
var hoursRange = util.getStartEndHours(util.resetTime(new Date(startDate.getTime())), this.startHour, this.endHour); | ||
intervalMins = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE; | ||
} | ||
return ((util.getUniversalTime(endDate) - util.getUniversalTime(startDate)) / | ||
util.MS_PER_MINUTE * (this.cellWidth * this.slotCount) / this.interval); | ||
util.MS_PER_MINUTE * (this.cellWidth * this.slotCount) / intervalMins); | ||
}; | ||
@@ -469,0 +474,0 @@ TimelineEvent.prototype.getSpannedEventsWidth = function (startDate, endDate, diffInDays) { |
@@ -363,3 +363,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var templateName = this.isResourceEventTemplate ? this.parent.getEventTemplateName(resIndex) : 'eventTemplate'; | ||
templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false); | ||
templateElement = this.parent.getAppointmentTemplate()(record, this.parent, templateName, templateId, false, undefined, undefined, this.parent.root); | ||
} | ||
@@ -579,3 +579,3 @@ else { | ||
var appHeight = this.getHeight(eStart, eEnd); | ||
if (eStart.getTime() > schedule.startHour.getTime()) { | ||
if (eStart.getTime() >= schedule.startHour.getTime()) { | ||
topValue = this.getTopValue(eStart, dayIndex, resource); | ||
@@ -847,3 +847,3 @@ } | ||
target.setAttribute('title', this.parent.localeObj.getConstant('collapseAllDaySection')); | ||
target.setAttribute('aria-label', 'Collapse section'); | ||
target.setAttribute('aria-label', this.parent.localeObj.getConstant('collapseAllDaySection')); | ||
rowHeight = ((this.allDayLevel + 1) * this.getEventHeight()) + 4; | ||
@@ -853,3 +853,3 @@ } | ||
target.setAttribute('title', this.parent.localeObj.getConstant('expandAllDaySection')); | ||
target.setAttribute('aria-label', 'Expand section'); | ||
target.setAttribute('aria-label', this.parent.localeObj.getConstant('expandAllDaySection')); | ||
rowHeight = (3 * this.getEventHeight()) + 4; | ||
@@ -856,0 +856,0 @@ this.parent.element.querySelector('.' + cls.DATE_HEADER_WRAP_CLASS).scrollTop = 0; |
@@ -482,3 +482,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var templateId = this.parent.element.id + '_' + this.parent.activeViewOptions.eventTemplateName + 'eventTemplate'; | ||
templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, 'eventTemplate', templateId, false); | ||
templateElement = this.parent.getAppointmentTemplate()(eventObj, this.parent, 'eventTemplate', templateId, false, undefined, undefined, this.parent.root); | ||
} | ||
@@ -485,0 +485,0 @@ else { |
@@ -81,2 +81,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
this.printInstance.isPrinting = true; | ||
this.printInstance.root = this.parent.root ? this.parent.root : this.parent; | ||
this.printInstance.appendTo(element); | ||
@@ -115,3 +116,3 @@ this.printInstance.on(events.print, this.contentReady, this); | ||
!isNullOrUndefined(printOptions.eventSettings.template) ? printOptions.eventSettings.template : eventSettings.template; | ||
eventSettings.template = typeof (eventTemplate) === 'function' ? null : eventTemplate; | ||
eventSettings.template = !this.parent.isAngular && typeof (eventTemplate) === 'function' ? null : eventTemplate; | ||
printModel.eventSettings = eventSettings; | ||
@@ -127,9 +128,11 @@ break; | ||
timeScale = isNullOrUndefined(printOptions.timeScale) ? this.parent.timeScale : printOptions.timeScale; | ||
timeScale.majorSlotTemplate = typeof (timeScale.majorSlotTemplate) === 'function' ? null : timeScale.majorSlotTemplate; | ||
timeScale.minorSlotTemplate = typeof (timeScale.minorSlotTemplate) === 'function' ? null : timeScale.minorSlotTemplate; | ||
printOptions.timeScale = timeScale; | ||
if (!this.parent.isAngular) { | ||
timeScale.majorSlotTemplate = typeof (timeScale.majorSlotTemplate) === 'function' ? null : timeScale.majorSlotTemplate; | ||
timeScale.minorSlotTemplate = typeof (timeScale.minorSlotTemplate) === 'function' ? null : timeScale.minorSlotTemplate; | ||
} | ||
printModel.timeScale = timeScale; | ||
break; | ||
case 'views': | ||
views = isNullOrUndefined(printOptions.views) ? this.parent.views : printOptions.views; | ||
if (views && views.length > 0 && typeof (views[0]) === 'object') { | ||
if (!this.parent.isAngular && views && views.length > 0 && typeof (views[0]) === 'object') { | ||
var _loop_1 = function (view) { | ||
@@ -152,4 +155,4 @@ scheduleTemplates.forEach(function (x) { | ||
printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ? | ||
(typeof (this.parent["" + key]) === 'function' ? null : this.parent["" + key]) : | ||
(typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]); | ||
(!this.parent.isAngular && typeof (this.parent["" + key]) === 'function' ? null : this.parent["" + key]) : | ||
(!this.parent.isAngular && typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]); | ||
break; | ||
@@ -156,0 +159,0 @@ } |
@@ -181,3 +181,3 @@ var __assign = (this && this.__assign) || function () { | ||
var templateId = this.parent.element.id + '_' + viewName + 'dateRangeTemplate'; | ||
var dateTemplate = [].slice.call(this.parent.getDateRangeTemplate()(args, this.parent, 'dateRangeTemplate', templateId, false)); | ||
var dateTemplate = [].slice.call(this.parent.getDateRangeTemplate()(args, this.parent, 'dateRangeTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(dateTemplate, textEle); | ||
@@ -184,0 +184,0 @@ } |
@@ -350,3 +350,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var templateId = elementId + viewName + 'dateHeaderTemplate'; | ||
var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(cellArgs, this.parent, 'dateHeaderTemplate', templateId, false)); | ||
var dateTemplate = [].slice.call(this.parent.getDateHeaderTemplate()(cellArgs, this.parent, 'dateHeaderTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
if (dateTemplate && dateTemplate.length) { | ||
@@ -527,3 +527,3 @@ append(dateTemplate, tdEle); | ||
var templateId = scheduleId + viewName + 'cellTemplate'; | ||
var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false)); | ||
var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(cellTemplate, ntd); | ||
@@ -545,3 +545,3 @@ } | ||
var templateId = scheduleId + viewName + 'cellHeaderTemplate'; | ||
var cellHeaderTemplate = [].slice.call(this.parent.getCellHeaderTemplate()(args, this.parent, 'cellHeaderTemplate', templateId, false)); | ||
var cellHeaderTemplate = [].slice.call(this.parent.getCellHeaderTemplate()(args, this.parent, 'cellHeaderTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(cellHeaderTemplate, dateHeader); | ||
@@ -676,3 +676,4 @@ } | ||
Month.prototype.getLabelText = function (view) { | ||
return this.parent.localeObj.getConstant(view) + ' of ' + util.capitalizeFirstWord(this.parent.globalize.formatDate(this.parent.selectedDate, { format: 'MMMM y', calendar: this.parent.getCalendarMode() }), 'single'); | ||
var viewStr = view.charAt(0).toLowerCase() + view.substring(1); | ||
return this.formatViewLabel(viewStr, this.getStartDate(), this.getEndDate()); | ||
}; | ||
@@ -679,0 +680,0 @@ Month.prototype.createWeekNumberElement = function (text) { |
@@ -150,5 +150,11 @@ import { isNullOrUndefined, addClass, removeClass } from '@syncfusion/ej2-base'; | ||
Render.prototype.updateLabelText = function (view) { | ||
var content = this.parent.activeView.getLabelText(view); | ||
this.parent.element.setAttribute('role', 'application'); | ||
this.parent.element.setAttribute('aria-label', content); | ||
this.parent.element.removeAttribute('aria-labelledby'); | ||
this.parent.element.removeAttribute('aria-label'); | ||
if (view === 'Year') { | ||
this.parent.element.setAttribute('aria-label', this.parent.activeView.getLabelText(view)); | ||
} | ||
else { | ||
this.parent.element.setAttribute('aria-labelledby', this.parent.element.id + '_table'); | ||
} | ||
}; | ||
@@ -155,0 +161,0 @@ return Render; |
@@ -416,6 +416,6 @@ var __extends = (this && this.__extends) || (function () { | ||
args.day = this.parent.getDayNames('wide')[column % 7]; | ||
return [].slice.call(this.parent.getDayHeaderTemplate()(args, this.parent, 'dayHeaderTemplate', dayId, false)); | ||
return [].slice.call(this.parent.getDayHeaderTemplate()(args, this.parent, 'dayHeaderTemplate', dayId, false, undefined, undefined, this.parent.root)); | ||
} | ||
else { | ||
return [].slice.call(this.parent.getMonthHeaderTemplate()(args, this.parent, 'monthHeaderTemplate', monthId, false)); | ||
return [].slice.call(this.parent.getMonthHeaderTemplate()(args, this.parent, 'monthHeaderTemplate', monthId, false, undefined, undefined, this.parent.root)); | ||
} | ||
@@ -434,3 +434,3 @@ }; | ||
var templateId = scheduleId + viewName + 'cellTemplate'; | ||
var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args, this.parent, 'cellTemplate', templateId, false)); | ||
var cellTemplate = [].slice.call(this.parent.getCellTemplate()(args, this.parent, 'cellTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(cellTemplate, td); | ||
@@ -437,0 +437,0 @@ }; |
@@ -59,2 +59,3 @@ import { Schedule } from '../base/schedule'; | ||
getEndDateFromStartDate(start: Date): Date; | ||
private getStartEndHours; | ||
getTimeSlotRows(handler?: CallbackFunction): TimeSlotData[]; | ||
@@ -61,0 +62,0 @@ getAdjustedDate(startTime: Date): Date; |
@@ -390,3 +390,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var viewName = this.parent.activeViewOptions.dateHeaderTemplateName; | ||
cntEle = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false)); | ||
cntEle = [].slice.call(this.parent.getDateHeaderTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false, undefined, undefined, this.parent.root)); | ||
} | ||
@@ -405,3 +405,3 @@ else { | ||
var args = { date: date, type: type }; | ||
cntEle = [].slice.call(this.parent.getMajorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false)); | ||
cntEle = [].slice.call(this.parent.getMajorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false, undefined, undefined, this.parent.root)); | ||
} | ||
@@ -417,3 +417,3 @@ else { | ||
var args = { date: date, type: type }; | ||
cntEle = [].slice.call(this.parent.getMinorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false)); | ||
cntEle = [].slice.call(this.parent.getMinorSlotTemplate()(args, this.parent, templateName, templateId + templateName, false, undefined, undefined, this.parent.root)); | ||
} | ||
@@ -429,3 +429,3 @@ else { | ||
var args = { date: date, type: type, groupIndex: groupIndex }; | ||
cntEle = [].slice.call(this.parent.getCellTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false)); | ||
cntEle = [].slice.call(this.parent.getCellTemplate()(args, this.parent, templateName, templateId + viewName + templateName, false, undefined, undefined, this.parent.root)); | ||
} | ||
@@ -549,3 +549,4 @@ break; | ||
'tabindex': '0', 'role': 'list', | ||
title: this.parent.localeObj.getConstant('expandAllDaySection'), 'aria-disabled': 'false', 'aria-label': 'Expand section' | ||
title: this.parent.localeObj.getConstant('expandAllDaySection'), 'aria-disabled': 'false', | ||
'aria-label': this.parent.localeObj.getConstant('expandAllDaySection') | ||
}, | ||
@@ -707,3 +708,3 @@ className: cls.ALLDAY_APPOINTMENT_SECTION_CLASS + ' ' + cls.APPOINTMENT_ROW_EXPAND_CLASS + ' ' + | ||
} | ||
util.setTime(cellDate, util.getDateInMs(r.date)); | ||
cellDate = new Date(cellDate.setHours(r.date.getHours(), r.date.getMinutes(), r.date.getSeconds(), r.date.getMilliseconds())); | ||
var type = 'workCells'; | ||
@@ -725,3 +726,3 @@ if (tdData.className.indexOf(cls.RESOURCE_PARENT_CLASS) !== -1) { | ||
var templateId = scheduleId + viewName + 'cellTemplate'; | ||
var tooltipTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false)); | ||
var tooltipTemplate = [].slice.call(this.parent.getCellTemplate()(args_1, this.parent, 'cellTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(tooltipTemplate, ntd); | ||
@@ -782,6 +783,17 @@ } | ||
}; | ||
VerticalView.prototype.getStartEndHours = function (startEndTime) { | ||
if (!isNullOrUndefined(startEndTime) && startEndTime !== '') { | ||
var startEndDate = new Date(2000, 0, 0, 0); | ||
var timeString = startEndTime.split(':'); | ||
if (timeString.length === 2) { | ||
startEndDate.setHours(parseInt(timeString[0], 10), parseInt(timeString[1], 10), 0); | ||
} | ||
return startEndDate; | ||
} | ||
return new Date(2000, 0, 0, 0); | ||
}; | ||
VerticalView.prototype.getTimeSlotRows = function (handler) { | ||
var rows = []; | ||
var startHour = this.getStartHour(); | ||
var endHour = this.getEndHour(); | ||
var startHour = this.getStartEndHours(this.parent.activeViewOptions.startHour); | ||
var endHour = this.getStartEndHours(this.parent.activeViewOptions.endHour); | ||
var msMajorInterval = this.parent.activeViewOptions.timeScale.interval * util.MS_PER_MINUTE; | ||
@@ -788,0 +800,0 @@ var msInterval = msMajorInterval / this.parent.activeViewOptions.timeScale.slotCount; |
@@ -58,2 +58,3 @@ import { Schedule } from '../base/schedule'; | ||
getNextPreviousDate(type: string): Date; | ||
formatViewLabel(view: string, startDate: Date, endDate: Date): string; | ||
getLabelText(view: string): string; | ||
@@ -60,0 +61,0 @@ getDateRangeText(): string; |
@@ -104,2 +104,5 @@ import { createElement, append, prepend, isNullOrUndefined, getValue, getDefaultDateObject, cldrData, addClass, setStyleAttribute, formatUnit, EventHandler, remove } from '@syncfusion/ej2-base'; | ||
table.setAttribute('role', 'grid'); | ||
if (this.parent.currentView !== 'Year') { | ||
table.setAttribute('id', this.parent.element.id + '_table'); | ||
} | ||
table.setAttribute('aria-label', this.getLabelText(this.parent.currentView)); | ||
@@ -352,5 +355,25 @@ }; | ||
}; | ||
ViewBase.prototype.formatViewLabel = function (view, startDate, endDate) { | ||
var formatOptions = { type: 'date', skeleton: 'full', calendar: this.parent.getCalendarMode() }; | ||
return this.parent.localeObj.getConstant(view) + ' ' + this.parent.localeObj.getConstant('start') + ' ' + this.parent.globalize.formatDate(startDate, formatOptions) + ' ' | ||
+ this.parent.localeObj.getConstant('endAt') + ' ' + this.parent.globalize.formatDate(endDate, formatOptions); | ||
}; | ||
ViewBase.prototype.getLabelText = function (view) { | ||
var viewStr = view.charAt(0).toLowerCase() + view.substring(1); | ||
return this.parent.localeObj.getConstant(viewStr) + ' of ' + util.capitalizeFirstWord(this.parent.globalize.formatDate(this.parent.selectedDate, { skeleton: 'long', calendar: this.parent.getCalendarMode() }), 'single'); | ||
if (view === 'Year' || view === 'TimelineYear') { | ||
return this.formatViewLabel(viewStr, this.parent.activeView.getStartDate(), this.parent.activeView.getEndDate()); | ||
} | ||
else { | ||
if (this.renderDates.length > 0) { | ||
if (this.parent.currentView === 'Day' || this.parent.currentView === 'TimelineDay') { | ||
return this.parent.localeObj.getConstant(viewStr) + ' of ' + util.capitalizeFirstWord(this.parent.globalize.formatDate(this.parent.selectedDate, { type: 'date', skeleton: 'full', calendar: this.parent.getCalendarMode() }), 'single'); | ||
} | ||
else { | ||
return this.formatViewLabel(viewStr, this.renderDates[0], this.renderDates[this.renderDates.length - 1]); | ||
} | ||
} | ||
else { | ||
return ''; | ||
} | ||
} | ||
}; | ||
@@ -446,3 +469,3 @@ ViewBase.prototype.getDateRangeText = function () { | ||
var templateId = scheduleId + viewName + 'resourceHeaderTemplate'; | ||
var quickTemplate = [].slice.call(this.parent.getResourceHeaderTemplate()(data, this.parent, 'resourceHeaderTemplate', templateId, false)); | ||
var quickTemplate = [].slice.call(this.parent.getResourceHeaderTemplate()(data, this.parent, 'resourceHeaderTemplate', templateId, false, undefined, undefined, this.parent.root)); | ||
append(quickTemplate, tdElement); | ||
@@ -449,0 +472,0 @@ } |
@@ -283,3 +283,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var templateId = this.parent.element.id + '_' + vName + tName; | ||
var template = [].slice.call(fn(args, this.parent, tName, templateId, false)); | ||
var template = [].slice.call(fn(args, this.parent, tName, templateId, false, undefined, undefined, this.parent.root)); | ||
append(template, ele); | ||
@@ -286,0 +286,0 @@ }; |
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 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
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
23408159
274773