Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-calendars

Package Overview
Dependencies
Maintainers
2
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-calendars - npm Package Compare versions

Comparing version 1.0.11 to 1.0.14

dist/ej2-calendars.umd.js

2

calendar.d.ts
/**
* calendar
*/
export * from './src/calendar';
export * from './src/calendar/index';

@@ -1,2 +0,2 @@

define(["require", "exports", "./src/calendar"], function (require, exports, calendar_1) {
define(["require", "exports", "./src/calendar/index"], function (require, exports, index_1) {
"use strict";

@@ -7,3 +7,3 @@ function __export(m) {

Object.defineProperty(exports, "__esModule", { value: true });
__export(calendar_1);
__export(index_1);
});
/*!
* filename: ej2-calendars.umd.min.js
* version : 1.0.10
* version : 1.0.14
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.

@@ -11,2 +11,2 @@ * Use of this code is subject to the terms of our license.

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@syncfusion/ej2-base"));else if("function"==typeof define&&define.amd)define(["@syncfusion/ej2-base"],t);else{var r=t("object"==typeof exports?require("@syncfusion/ej2-base"):e["@syncfusion/ej2-base"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){var n,i;n=[r,t,r(1)],void 0!==(i=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r)}.apply(t,n))&&(e.exports=i)},function(e,t,r){var n,i;n=[r,t,r(2)],void 0!==(i=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r)}.apply(t,n))&&(e.exports=i)},function(e,t,r){var n,i,a=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=this&&this.__decorate||function(e,t,r,n){var i,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s};n=[r,t,r(3),r(3),r(3),r(4),r(8)],void 0!==(i=function(e,t,r,n,i,o,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h="e-disabled",c="e-overlay",u="e-other-month",d="e-selected",p="e-focused-date",v=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.effect="",n.keyConfigs={controlUp:"ctrl+38",controlDown:"ctrl+40",moveDown:"downarrow",moveUp:"uparrow",moveLeft:"leftarrow",moveRight:"rightarrow",select:"enter",home:"home",end:"end",pageUp:"pageup",pageDown:"pagedown",shiftPageUp:"shift+pageup",shiftPageDown:"shift+pagedown",controlHome:"ctrl+home",controlEnd:"ctrl+end"},n}return a(t,e),t.prototype.render=function(){this.globalize=new r.Internationalization(this.locale),this.element.classList.add("e-calendar"),this.enableRtl&&this.element.classList.add("e-rtl"),o.attributes(this.element,{"data-role":"calendar"}),this.processDate(),this.header(),this.content(),this.wireEvents()},t.prototype.processDate=function(){this.validateDate(),this.minMaxUpdate()},t.prototype.validateDate=function(){this.setProperties({value:new Date(""+this.value)},!0),this.currentDate=this.currentDate?this.currentDate:this.resetTime(new Date),!l.isNullOrUndefined(this.value)&&this.min<=this.max&&this.value>=this.min&&this.value<=this.max&&(this.currentDate=this.resetTime(new Date(""+this.value))),isNaN(+this.value)&&this.setProperties({value:null},!0),this.min<=this.max||(this.setProperties({min:this.min},!0),this.setProperties({max:new Date(2099,11,31)},!0))},t.prototype.minMaxUpdate=function(){this.min=l.isNullOrUndefined(this.min)||!+this.min?this.min=new Date(1900,0,1):this.min,this.max=l.isNullOrUndefined(this.max)||!+this.max?this.max=new Date(2099,11,31):this.max,!l.isNullOrUndefined(this.value)&&this.value<=this.min&&this.min<=this.max?(this.setProperties({value:this.resetTime(this.min)},!0),this.changedArgs={value:this.value}):!l.isNullOrUndefined(this.value)&&this.value>=this.max&&this.min<=this.max&&(this.setProperties({value:this.resetTime(this.max)},!0),this.changedArgs={value:this.value}),this.min<=this.max&&this.value&&this.value<=this.max&&this.value>=this.min?this.currentDate=new Date(""+this.value):this.min<=this.max&&!this.value&&this.currentDate>this.max?this.currentDate=new Date(""+this.max):this.currentDate<this.min&&(this.currentDate=new Date(""+this.min))},t.prototype.header=function(){var e={"aria-disabled":"false",role:"button","aria-label":"previous month"},t={"aria-disabled":"false",role:"button","aria-label":"next month"},r={"aria-atomic":"true","aria-live":"assertive","aria-label":"title",role:"button"};this.headerEle=o.createElement("div",{className:"e-header"});var n=o.createElement("div",{className:"e-icon-container"});this.prevIcon=o.createElement("a",{className:"e-prev"}),this.prevIcon.classList.add("e-ripple-style"),o.attributes(this.prevIcon,e),this.nextIcon=o.createElement("a",{className:"e-next"}),this.nextIcon.classList.add("e-ripple-style"),o.attributes(this.nextIcon,t),this.hdrTitleEle=o.createElement("a",{className:"e-day e-title",attrs:{}}),o.attributes(this.hdrTitleEle,r),this.headerEle.appendChild(this.hdrTitleEle),this.prevIcon.appendChild(o.createElement("span",{className:"e-icon-prev e-icons"})),this.nextIcon.appendChild(o.createElement("span",{className:"e-icon-next e-icons"})),n.appendChild(this.prevIcon),n.appendChild(this.nextIcon),this.headerEle.appendChild(n),this.element.appendChild(this.headerEle)},t.prototype.content=function(){this.previousDate=this.value,this.contentEle=o.createElement("div",{className:"e-content"}),this.table=o.createElement("table",{attrs:{tabIndex:"0",role:"grid","aria-activedescendant":""}}),this.element.appendChild(this.contentEle),this.contentEle.appendChild(this.table),this.contentHdr(),this.contentBody()},t.prototype.getCultureValues=function(){var e,t=[];e="en"===this.locale||"en-US"===this.locale?l.getValue("days.stand-alone.short",i.getDefaultDateObject()):this.getCultureObjects(i.cldrData,""+this.locale);for(var r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];t.push(l.getValue(a,e))}return t},t.prototype.contentHdr=function(){this.element.querySelectorAll(".e-content .e-week-header")[0]&&o.remove(this.element.querySelectorAll(".e-content .e-week-header")[0]);var e,t="";(this.firstDayOfWeek>6||this.firstDayOfWeek<0)&&this.setProperties({firstDayOfWeek:0},!0),this.theadEle=o.createElement("thead",{className:"e-week-header"}),this.weekNumber&&(t+='<th class="e-week-number"></th>'),e=this.shiftArray(this.getCultureValues().length>0&&this.getCultureValues(),this.firstDayOfWeek);for(var r=0;r<=6;r++)t+='<th class="">'+e[r]+"</th>";t="<tr>"+t+"</tr>",this.theadEle.innerHTML=t,this.table.appendChild(this.theadEle)},t.prototype.contentBody=function(){switch(this.element.querySelectorAll(".e-content tbody")[0]&&o.remove(this.element.querySelectorAll(".e-content tbody")[0]),this.start){case"year":this.renderYears();break;case"decade":this.renderDecades();break;default:this.renderMonths()}},t.prototype.wireEvents=function(){r.EventHandler.add(this.hdrTitleEle,"click",this.navTitle,this),this.keyboardModule=new n.KeyboardEvents(this.element,{eventName:"keydown",keyAction:this.keyActionHandle.bind(this),keyConfigs:this.keyConfigs})},t.prototype.keyActionHandle=function(e){var t=this.getViewNumber(this.currentView()),r=this.tbodyEle.querySelector("tr td.e-focused-date"),n=this.tbodyEle.querySelector("tr td.e-selected"),i=this.getViewNumber(this.depth),a=t===i&&this.getViewNumber(this.start)>=i;switch(this.effect="",e.action){case"moveLeft":this.KeyboardNavigate(-1,t),e.preventDefault();break;case"moveRight":this.KeyboardNavigate(1,t),e.preventDefault();break;case"moveUp":0===t?this.KeyboardNavigate(-7,t):this.KeyboardNavigate(-4,t),e.preventDefault();break;case"moveDown":0===t?this.KeyboardNavigate(7,t):this.KeyboardNavigate(4,t),e.preventDefault();break;case"select":if(!l.isNullOrUndefined(r)||!l.isNullOrUndefined(n))if(a){var s=new Date(parseInt(""+(r||n).id,0));this.selectDate(e,this.resetTime(s),r||n)}else this.contentClick(null,--t,r||n);break;case"controlUp":this.title(),e.preventDefault();break;case"controlDown":l.isNullOrUndefined(r)&&(l.isNullOrUndefined(n)||a)||this.contentClick(null,--t,r||n),e.preventDefault();break;case"home":this.currentDate=this.firstDay(this.currentDate),o.remove(this.tbodyEle),this.renderMonths(),e.preventDefault();break;case"end":this.currentDate=this.lastDay(this.currentDate),o.remove(this.tbodyEle),this.renderMonths(),e.preventDefault();break;case"pageUp":this.addMonths(this.currentDate,-1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"pageDown":this.addMonths(this.currentDate,1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"shiftPageUp":this.addYears(this.currentDate,-1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"shiftPageDown":this.addYears(this.currentDate,1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"controlHome":this.navigateTo("month",new Date(this.currentDate.getFullYear(),0,1)),e.preventDefault();break;case"controlEnd":this.navigateTo("month",new Date(this.currentDate.getFullYear(),11,31)),e.preventDefault()}},t.prototype.KeyboardNavigate=function(e,t){var r=new Date(""+this.currentDate);switch(t){case 2:this.addYears(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderDecades()):this.currentDate=r;break;case 1:this.addMonths(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderYears()):this.currentDate=r;break;case 0:this.addDay(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderMonths()):this.currentDate=r}},t.prototype.preRender=function(){var e=this;this.changeHandler=function(t){e.triggerChange()},this.navigateHandler=function(t){e.triggerNavigate()}},t.prototype.renderMonths=function(){var e=[],t=this.resetTime(new Date(""+this.currentDate)),n=this.weekNumber?8:7,i=t.getMonth();this.titleUpdate(this.currentDate,"days");var a=t;for(t=new Date(a.getFullYear(),a.getMonth(),0,a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds());t.getDay()!==this.firstDayOfWeek;)this.setTime(t,-864e5);for(var s=0;s<42;++s){var l=o.createElement("td"),v=o.createElement("span");s%7==0&&this.weekNumber&&(v.textContent=""+this.getWeek(t),l.appendChild(v),o.addClass([l],"e-week-number"),e.push(l));var f=this.globalize.parseDate(this.globalize.formatDate(t,{skeleton:"full"}),{skeleton:"full"}),m=this.dayCell(t),g=this.globalize.formatDate(t,{type:"date",skeleton:"full"}),y=o.createElement("span");y.textContent=t.getDate().toString();var D=this.min>t||this.max<t;D?(o.addClass([m],h),o.addClass([m],c)):y.setAttribute("title",""+g),i!==t.getMonth()&&o.addClass([m],u),0!==t.getDay()&&6!==t.getDay()||o.addClass([m],"e-weekend"),this.renderDaycellArg={date:t,isDisabled:!1,element:y,isOutOfRange:D};var b=this.renderDaycellArg;this.renderDayCellEvent(b),b.isDisabled&&this.value&&+this.resetTime(this.value)==+b.date&&this.setProperties({value:null},!0),this.renderDaycellArg.isDisabled&&!m.classList.contains(d)&&(o.addClass([m],h),o.addClass([m],c));var w=m.classList.contains(u),E=m.classList.contains(h);E||r.EventHandler.add(m,"click",this.clickHandler,this),b.isDisabled&&+this.value==+b.date&&this.setProperties({value:null},!0),w||E||!this.getDateVal(t)?this.currentDate.getDate()!==t.getDate()||w||E?(this.currentDate>=this.max&&parseInt(m.id,0)===+this.max&&!w&&!E&&o.addClass([m],p),this.currentDate<=this.min&&parseInt(m.id,0)===+this.min&&!w&&!E&&o.addClass([m],p)):o.addClass([m],p):o.addClass([m],d),this.resetTime(f).valueOf()===this.resetTime(new Date).valueOf()&&o.addClass([m],"e-today"),m.appendChild(this.renderDaycellArg.element),e.push(m),this.addDay(t,1)}this.contentHdr(),this.renderTemplate(e,n,"e-month")},t.prototype.renderYears=function(){this.removeTheadEle();var e=[],t=l.isNullOrUndefined(this.value),n=new Date(""+this.currentDate),i=n.getMonth(),a=n.getFullYear(),s=n,c=s.getFullYear(),u=new Date(""+this.min).getFullYear(),v=new Date(""+this.min).getMonth(),f=new Date(""+this.max).getFullYear(),m=new Date(""+this.max).getMonth();s.setMonth(0),this.titleUpdate(this.currentDate,"months");this.min>s||this.max;s.setDate(1);for(var g=0;g<12;++g){var y=this.dayCell(s),D=o.createElement("span"),b=this.value&&this.value.getMonth()===s.getMonth(),w=this.value&&this.value.getFullYear()===a&&b;D.textContent=this.globalize.formatDate(s,{type:"date",skeleton:"MMM"}),this.min&&(c<u||g<v&&c===u)||this.max&&(c>f||g>m&&c>=f)?o.addClass([y],h):!t&&w?o.addClass([y],d):s.getMonth()===i&&this.currentDate.getMonth()===i&&o.addClass([y],p),s.setDate(1),s.setMonth(s.getMonth()+1),y.classList.contains(h)||r.EventHandler.add(y,"click",this.clickHandler,this),y.appendChild(D),e.push(y)}this.renderTemplate(e,4,"e-year")},t.prototype.renderDecades=function(){this.removeTheadEle();var e=[],t=new Date(""+this.currentDate);t.setMonth(0),t.setDate(1);var n=t.getFullYear();this.hdrTitleEle.textContent=n-n%10+" - "+(n-n%10+9);for(var i=new Date(n-n%10-1,0,1),a=i.getFullYear(),s=0;s<12;++s){var c=a+s;t.setFullYear(c);var u=this.dayCell(t);o.attributes(u,{role:"gridcell"});var v=o.createElement("span");v.textContent=c.toString(),c<new Date(""+this.min).getFullYear()||c>new Date(""+this.max).getFullYear()?o.addClass([u],h):l.isNullOrUndefined(this.value)||t.getFullYear()!==this.value.getFullYear()?t.getFullYear()!==this.currentDate.getFullYear()||u.classList.contains(h)||o.addClass([u],p):o.addClass([u],d),u.classList.contains(h)||r.EventHandler.add(u,"click",this.clickHandler,this),u.appendChild(v),e.push(u)}this.renderTemplate(e,4,"e-decade")},t.prototype.dayCell=function(e){var t=this.globalize.parseDate(this.globalize.formatDate(e,{skeleton:"full"}),{skeleton:"full"}),r=this.resetTime(t).valueOf();return o.createElement("td",{attrs:{id:""+l.getUniqueID(""+r),"aria-selected":"false",role:"gridcell"}})},t.prototype.firstDay=function(e){return new Date(e.getFullYear(),e.getMonth())},t.prototype.lastDay=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),r=Math.abs(t.getTimezoneOffset()-this.firstDay(e).getTimezoneOffset());return r&&t.setHours(this.firstDay(e).getHours()+r/60),t},t.prototype.removeTheadEle=function(){this.element.querySelectorAll(".e-content table thead")[0]&&o.remove(this.theadEle)},t.prototype.renderTemplate=function(e,t,r){var n,i=this.getViewNumber(this.currentView());this.tbodyEle=o.createElement("tbody"),this.table.appendChild(this.tbodyEle),o.removeClass([this.contentEle,this.headerEle],["e-month","e-decade","e-year"]),o.addClass([this.contentEle,this.headerEle],[r]);for(var a=t,s=0,l=0;l<e.length/t;++l){for(n=o.createElement("tr",{attrs:{role:"row"}}),s=0+s;s<a;s++)!e[s].classList.contains("e-week-number")&&e[s].children[0]&&o.addClass([e[s].children[0]],["e-day","e-ripple-style"]),n.appendChild(e[s]),!this.weekNumber&&6===s&&e[6].classList.contains(u)&&o.addClass([n],"e-month-hide"),this.weekNumber?41===s&&e[41].classList.contains(u)&&o.addClass([n],"e-month-hide"):35===s&&e[35].classList.contains(u)&&o.addClass([n],"e-month-hide");a+=t,s+=0,this.tbodyEle.appendChild(n)}this.table.querySelector("tbody").className=this.effect,this.iconHandler(),this.changedArgs={value:this.value},(i!==this.getViewNumber(this.currentView())||0===i&&i!==this.getViewNumber(this.currentView()))&&this.navigateHandler(),this.ariaActivedescendent(),this.changeHandler()},t.prototype.clickHandler=function(e){var t=e.currentTarget;e.preventDefault();var r=this.getViewNumber(this.currentView());t.classList.contains(u)?(this.value=this.getIdValue(e,null),this.contentClick(e,0,null)):r===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?this.contentClick(e,1,null):2===r?this.contentClick(e,1,null):t.classList.contains(u)||0!==r?this.contentClick(e,0,t):this.selectDate(e,this.getIdValue(e,null),null)},t.prototype.contentClick=function(e,t,r){var n=this.getViewNumber(this.currentView()),i=this.getIdValue(e,r);switch(t){case 0:n===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?(o.remove(this.tbodyEle),this.currentDate=i,this.effect="e-zoomin",this.renderMonths()):(this.currentDate.setMonth(i.getMonth()),i.getMonth()>0&&this.currentDate.getMonth()!==i.getMonth()&&this.currentDate.setDate(0),this.currentDate.setFullYear(i.getFullYear()),this.effect="e-zoomin",o.remove(this.tbodyEle),this.renderMonths());break;case 1:n===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?this.selectDate(e,i,null):(this.currentDate.setFullYear(i.getFullYear()),this.effect="e-zoomin",o.remove(this.tbodyEle),this.renderYears())}},t.prototype.switchView=function(e){switch(e){case 0:o.remove(this.tbodyEle),this.renderMonths();break;case 1:o.remove(this.tbodyEle),this.renderYears();break;case 2:o.remove(this.tbodyEle),this.renderDecades()}},t.prototype.getModuleName=function(){return"calendar"},t.prototype.getPersistData=function(){var e=["value"];return this.addOnPersist(e)},t.prototype.onPropertyChanged=function(e,t){this.effect="";for(var n=0,i=Object.keys(e);n<i.length;n++){switch(i[n]){case"value":isNaN(+this.value)&&this.setProperties({value:t.value},!0),this.validateDate(),this.minMaxUpdate(),this.setvalue();break;case"enableRtl":e.enableRtl?this.element.classList.add("e-rtl"):this.element.classList.remove("e-rtl");break;case"weekNumber":case"firstDayOfWeek":this.contentHdr(),this.contentBody();break;case"min":case"max":this.setProperties({start:this.currentView()},!0),o.remove(this.tbodyEle),this.minMaxUpdate(),this.contentBody();break;case"locale":this.globalize=new r.Internationalization(this.locale),this.contentHdr(),this.contentBody()}}},t.prototype.setvalue=function(){this.tbodyEle.remove(),this.setProperties({start:this.currentView()},!0),this.contentBody()},t.prototype.titleUpdate=function(e,t){var n=new r.Internationalization(this.locale);switch(t){case"days":this.hdrTitleEle.textContent=n.formatDate(e,{type:"date",skeleton:"yMMMM"});break;case"months":this.hdrTitleEle.textContent=n.formatDate(e,{type:"date",skeleton:"y"})}},t.prototype.ariaActivedescendent=function(){var e=this.tbodyEle.querySelector("tr td.e-focused-date"),t=this.tbodyEle.querySelector("tr td.e-selected"),r=this.globalize.formatDate(this.currentDate,{type:"date",skeleton:"full"});(t||e)&&((e||t).setAttribute("aria-selected","true"),(e||t).setAttribute("aria-label","The current focused date is "+r),o.attributes(this.table,{"aria-activedescendant":""+(e||t).getAttribute("id")}))},t.prototype.iconHandler=function(){switch(new Date(""+this.currentDate).setDate(1),this.currentView()){case"month":this.prevIconHandler(this.compareMonth(new Date(""+this.currentDate),this.min)<1),this.nextIconHandler(this.compareMonth(new Date(""+this.currentDate),this.max)>-1);break;case"year":this.prevIconHandler(this.compareYear(new Date(""+this.currentDate),this.min)<1),this.nextIconHandler(this.compareYear(new Date(""+this.currentDate),this.max)>-1);break;case"decade":this.prevIconHandler(this.compareDecade(new Date(""+this.currentDate),this.min)<1),this.nextIconHandler(this.compareDecade(new Date(""+this.currentDate),this.max)>-1)}},t.prototype.destroy=function(){this.element.classList.remove("e-calendar"),r.EventHandler.remove(this.hdrTitleEle,"click",this.navTitle),this.prevIconHandler(!0),this.nextIconHandler(!0),this.keyboardModule.destroy(),this.element.innerHTML="",e.prototype.destroy.call(this)},t.prototype.title=function(){var e=this.getViewNumber(this.currentView());this.effect="e-zoomin",this.switchView(++e)},t.prototype.getViewNumber=function(e){return"month"===e?0:"year"===e?1:2},t.prototype.navTitle=function(){this.title()},t.prototype.previous=function(){this.effect="";var e=this.getViewNumber(this.currentView());switch(this.currentView()){case"month":this.addMonths(this.currentDate,-1),this.switchView(e);break;case"year":this.addYears(this.currentDate,-1),this.switchView(e);break;case"decade":this.addYears(this.currentDate,-10),this.switchView(e)}},t.prototype.navPrev=function(){this.previous(),this.triggerNavigate()},t.prototype.next=function(){this.effect="";var e=this.getViewNumber(this.currentView());switch(this.currentView()){case"month":this.addMonths(this.currentDate,1),this.switchView(e);break;case"year":this.addYears(this.currentDate,1),this.switchView(e);break;case"decade":this.addYears(this.currentDate,10),this.switchView(e)}},t.prototype.navNext=function(){this.next(),this.triggerNavigate()},t.prototype.navigateTo=function(e,t){this.minMaxUpdate(),+t>=+this.min&&+t<=+this.max&&(this.currentDate=t),+t<=+this.min&&(this.currentDate=new Date(""+this.min)),+t>=+this.max&&(this.currentDate=new Date(""+this.max)),this.switchView(this.getViewNumber(e))},t.prototype.currentView=function(){return this.contentEle.classList.contains("e-year")?"year":this.contentEle.classList.contains("e-decade")?"decade":"month"},t.prototype.getDateVal=function(e){return!l.isNullOrUndefined(this.value)&&e.getDate()===this.value.getDate()&&e.getMonth()===this.value.getMonth()&&e.getFullYear()===this.value.getFullYear()},t.prototype.getCultureObjects=function(e,t){return l.getValue("main."+this.locale+".dates.calendars.gregorian.days.format.short",e)},t.prototype.getWeek=function(e){var t=new Date(""+e).valueOf(),r=new Date(e.getFullYear(),0,1).valueOf(),n=t-r;return Math.ceil((n/864e5+new Date(r).getDay()+1)/7)},t.prototype.setTime=function(e,t){var r=e.getTimezoneOffset(),n=new Date(e.getTime()+t),i=n.getTimezoneOffset()-r;e.setTime(n.getTime()+864e5*i)},t.prototype.addMonths=function(e,t){var r=e.getDate();e.setDate(1),e.setMonth(e.getMonth()+t),e.setDate(Math.min(r,this.getMaxDays(e)))},t.prototype.addYears=function(e,t){var r=e.getDate();e.setDate(1),e.setFullYear(e.getFullYear()+t),e.setDate(Math.min(r,this.getMaxDays(e)))},t.prototype.getIdValue=function(e,t){var r;r=e?e.currentTarget:t;var n=this.globalize.formatDate(new Date(parseInt(""+r.getAttribute("id"),0)),{skeleton:"full"});return this.resetTime(this.globalize.parseDate(n,{skeleton:"full",type:"date"}))},t.prototype.selectDate=function(e,t,r){var n=r||e.currentTarget;"decade"===this.currentView()?this.setDateDecade(this.currentDate,t.getFullYear()):"year"===this.currentView()?this.setDateYear(this.currentDate,t):(this.setProperties({value:new Date(""+t)},!0),this.currentDate=new Date(""+t)),l.isNullOrUndefined(this.tbodyEle.querySelector("."+d))||o.removeClass([this.tbodyEle.querySelector("."+d)],d),l.isNullOrUndefined(this.tbodyEle.querySelector("."+p))||o.removeClass([this.tbodyEle.querySelector("."+p)],p),o.addClass([n],d),this.changedArgs={value:this.value},this.changeHandler(),this.ariaActivedescendent()},t.prototype.prevIconHandler=function(e){e?(r.EventHandler.remove(this.prevIcon,"click",this.navPrev),o.addClass([this.prevIcon],""+h),o.addClass([this.prevIcon],""+c),this.prevIcon.setAttribute("aria-disabled","true")):(r.EventHandler.remove(this.prevIcon,"click",this.navPrev),r.EventHandler.add(this.prevIcon,"click",this.navPrev,this),o.removeClass([this.prevIcon],""+h),o.removeClass([this.prevIcon],""+c),this.prevIcon.setAttribute("aria-disabled","false"))},t.prototype.renderDayCellEvent=function(e){l.extend(this.renderDaycellArg,{name:"renderDayCell"}),this.trigger("renderDayCell",e)},t.prototype.navigatedEvent=function(){l.extend(this.navigatedArgs,{name:"navigated"}),this.trigger("navigated",this.navigatedArgs)},t.prototype.triggerNavigate=function(){this.navigatedArgs={view:this.currentView(),date:this.currentDate},this.navigatedEvent()},t.prototype.changeEvent=function(){this.trigger("change",this.changedArgs)},t.prototype.triggerChange=function(){l.extend(this.changedArgs,{name:"change"}),l.isNullOrUndefined(this.value)||this.setProperties({value:this.resetTime(this.value)},!0),+this.value!==Number.NaN&&+this.value!=+this.previousDate&&this.changeEvent(),this.previousDate=this.value},t.prototype.nextIconHandler=function(e){e?(r.EventHandler.remove(this.nextIcon,"click",this.navNext),o.addClass([this.nextIcon],h),o.addClass([this.nextIcon],c),this.nextIcon.setAttribute("aria-disabled","true")):(r.EventHandler.remove(this.nextIcon,"click",this.navNext),r.EventHandler.add(this.nextIcon,"click",this.navNext,this),o.removeClass([this.nextIcon],h),o.removeClass([this.nextIcon],c),this.nextIcon.setAttribute("aria-disabled","false"))},t.prototype.compare=function(e,t,r){var n,i,a=t.getFullYear();return n=a,i=0,r&&(a-=a%r,n=a-a%r+r-1),e.getFullYear()>n?i=1:e.getFullYear()<a&&(i=-1),i},t.prototype.isMinMaxRange=function(e){return+e>=+this.min&&+e<=+this.max},t.prototype.compareYear=function(e,t){return this.compare(e,t,0)},t.prototype.compareDecade=function(e,t){return this.compare(e,t,10)},t.prototype.shiftArray=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.prototype.resetTime=function(e){return e.setHours(0,0,0,0),e},t.prototype.addDay=function(e,t){e.setDate(e.getDate()+t)},t.prototype.getMaxDays=function(e){var t,r,n=new Date(""+e);for(t=28,r=n.getMonth();n.getMonth()===r;)++t,n.setDate(t);return t-1},t.prototype.setDateDecade=function(e,t){e.setFullYear(t),this.setProperties({value:new Date(""+e)},!0)},t.prototype.setDateYear=function(e,t){e.setFullYear(t.getFullYear(),t.getMonth(),e.getDate()),t.getMonth()!==e.getMonth()&&e.setDate(0),this.setProperties({value:new Date(""+e)},!0),this.currentDate=new Date(""+this.value)},t.prototype.compareMonth=function(e,t){return e.getFullYear()>t.getFullYear()?1:e.getFullYear()<t.getFullYear()?-1:e.getMonth()===t.getMonth()?0:e.getMonth()>t.getMonth()?1:-1},t}(r.Component);s([r.Property(null)],v.prototype,"value",void 0),s([r.Property(new Date(1900,0,1))],v.prototype,"min",void 0),s([r.Property(new Date(2099,11,31))],v.prototype,"max",void 0),s([r.Property(0)],v.prototype,"firstDayOfWeek",void 0),s([r.Property("month")],v.prototype,"start",void 0),s([r.Property("month")],v.prototype,"depth",void 0),s([r.Property(!1)],v.prototype,"weekNumber",void 0),s([r.Event()],v.prototype,"created",void 0),s([r.Event()],v.prototype,"destroyed",void 0),s([r.Event()],v.prototype,"change",void 0),s([r.Event()],v.prototype,"navigated",void 0),s([r.Event()],v.prototype,"renderDayCell",void 0),v=s([n.NotifyPropertyChanges],v),t.Calendar=v,t.calendarBuilder=r.CreateBuilder(v)}.apply(t,n))&&(e.exports=i)},function(t,r){t.exports=e},function(e,t,r){var n,i;n=[r,t,r(5)],void 0!==(i=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r)}.apply(t,n))&&(e.exports=i)},function(e,t,r){var n,i;n=[r,t,r(6),r(7)],void 0!==(i=function(e,t,r,n){"use strict";function i(e,t){var r=document.createElement(e);return void 0===t?r:(r.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(r.className=t.className),void 0!==t.id&&(r.id=t.id),void 0!==t.styles&&r.setAttribute("style",t.styles),void 0!==t.attrs&&p(r,t.attrs),r)}function a(e,t){for(var r=o(t),n=0,i=e;n<i.length;n++)for(var a=i[n],s=0,l=r;s<l.length;s++){var h=l[s];a.classList.contains(h)||a.classList.add(h)}return e}function s(e,t){for(var r=o(t),n=0,i=e;n<i.length;n++){var a=i[n];if(""!==a.className)for(var s=0,l=r;s<l.length;s++){var h=l[s];a.classList.remove(h)}}return e}function o(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function l(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function h(e,t){for(var r=document.createDocumentFragment(),n=0,i=e;n<i.length;n++){var a=i[n];r.appendChild(a)}return t.insertBefore(r,t.firstElementChild),e}function c(e,t){for(var r=document.createDocumentFragment(),n=0,i=e;n<i.length;n++){var a=i[n];r.appendChild(a)}return t.appendChild(r),e}function u(e){return e.parentNode.removeChild(e)}function d(e){var t=e.parentNode;r.EventHandler.clearEvents(e),t.removeChild(e)}function p(e,t){for(var r=Object.keys(t),n=e,i=0,a=r;i<a.length;i++){var s=a[i];n.setAttribute(s,t[s])}return n}function v(e,t){return void 0===t&&(t=document),t.querySelector(e)}function f(e,t){return void 0===t&&(t=document),t.querySelectorAll(e)}function m(e,t){var r=e;if("function"==typeof r.closest)return r.closest(t);for(;r&&1===r.nodeType;){if(w(r,t))return r;r=r.parentNode}return null}function g(e){for(var t=[],r=Array.prototype.slice.call(e.parentNode.childNodes),n=0,i=r;n<i.length;n++){var a=i[n];a.nodeType===Node.ELEMENT_NODE&&e!==a&&t.push(a)}return t}function y(e,t,r){var i=e.getAttribute(t);return n.isNullOrUndefined(i)&&(e.setAttribute(t,r.toString()),i=r),i}function D(e,t){void 0!==t&&Object.keys(t).forEach(function(r){e.style[r]=t[r]})}function b(e,t,r){a([e],t),s([e],r)}function w(e,t){var r=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return r?r.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createElement=i,t.addClass=a,t.removeClass=s,t.isVisible=l,t.prepend=h,t.append=c,t.detach=u,t.remove=d,t.attributes=p,t.select=v,t.selectAll=f,t.closest=m,t.siblings=g,t.getAttributeOrDefault=y,t.setStyleAttribute=D,t.classList=b,t.matches=w}.apply(t,n))&&(e.exports=i)},function(e,t,r){var n,i;n=[r,t,r(7)],void 0!==(i=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.addOrGetEventData=function(e){return"__eventList"in e?e.__eventList.events:(e.__eventList={},e.__eventList.events=[])},e.add=function(t,n,i,a,s){var o,l=e.addOrGetEventData(t);o=s?r.debounce(i,s):i,a&&(o=o.bind(a));for(var h=n.split(" "),c=0;c<h.length;c++)l.push({name:h[c],listener:i,debounce:o}),t.addEventListener(h[c],o)},e.remove=function(t,r,n){for(var i=e.addOrGetEventData(t),a=r.split(" "),s=0;s<a.length;s++)!function(e){var r,s=-1;i&&0!==i.length&&i.some(function(t,i){return t.name===a[e]&&t.listener.toString()===n.toString()&&(s=i,r=t.debounce,!0)}),-1!==s&&i.splice(s,1),t.removeEventListener(a[e],r)}(s)},e.clearEvents=function(t){var n,i;n=e.addOrGetEventData(t),i=r.extend([],i,n);for(var a=0;a<i.length;a++)t.removeEventListener(i[a].name,i[a].debounce),n.shift()},e.trigger=function(t,r,n){for(var i=e.addOrGetEventData(t),a=0,s=i;a<s.length;a++){var o=s[a];o.name===r&&o.debounce.call(this,n)}},e}();t.EventHandler=n}.apply(t,n))&&(e.exports=i)},function(e,t,r){var n,i;n=[r,t],void 0!==(i=function(e,t){"use strict";function r(e,t){var r=t;return r.unshift(void 0),new(Function.prototype.bind.apply(e,r))}function n(e){var t,r=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(r);var n="ej2"+x(r),i=function(r){r.source===window&&"string"==typeof r.data&&r.data.length<=32&&r.data===n&&(e(),t())};return window.addEventListener("message",i,!1),window.postMessage(n,"*"),t=function(){window.removeEventListener("message",i)}}function i(e,t){for(var r=t,n=e.split("."),i=0;i<n.length&&!d(r);i++)r=r[n[i]];return r}function a(e,t,r){var n,i,a=e.split("."),s=r||{},o=s,l=a.length;for(n=0;n<l;n++)i=a[n],n+1===l?o[i]=void 0===t?{}:t:u(o[i])&&(o[i]={}),o=o[i];return s}function s(e,t){delete e[t]}function o(e){var t={};return!u(e)&&e.constructor===t.constructor}function l(e,t){return e[t]}function h(e,t){if(!u(t))for(var r=e,n=t,i=Object.keys(t),a=0,s=i;a<s.length;a++){var o=s[a];r[o]=n[o]}}function c(e,t,r,n){var i=e||{},a=arguments.length;n&&(a-=1);for(var s=arguments,l=1;l<a;l++)!function(e){if(!s[e])return"continue";var t=s[e];Object.keys(t).forEach(function(e){var r,a=i[e],s=t[e];n&&o(s)?(r=o(a)?a:{},i[e]=c({},r,s,!0)):i[e]=s})}(l);return i}function u(e){return void 0===e||null===e}function d(e){return void 0===e}function p(e){return e+"_"+C++}function v(e,t){var r,n=this;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=i[0],o=function(){return r=null,e.call(n,s)};clearTimeout(r),r=setTimeout(o,t)}}function f(e){for(var t=[],r=Object.keys(e),n=0,i=r;n<i.length;n++){var a=i[n];t.push(encodeURIComponent(a)+"="+encodeURIComponent(""+e[a]))}return t.join("&")}function m(e){var t=Object.prototype.toString;return"[object Array]"===t.call(e)&&"[object Object]"===t.call(e[0])}function g(e,t){var r=e;return r===t||!(r===document||!r)&&g(r.parentNode,t)}function y(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function D(e,t){var r=document.createElement("div"),n=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),i="";u(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),r.appendChild(e.cloneNode(!0));for(var a=0,s=n.length;a<s;a++)i+=n[a].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+i+"</head><body>"+r.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),t.document.close(),t.focus();var o=setInterval(function(){t.ready&&(t.print(),t.close(),clearInterval(o))},500);return t}function b(e){var t=e+"";return"auto"===t||-1!==t.indexOf("%")||-1!==t.indexOf("px")?t:t+"px"}function w(e,t){var r="string"==typeof e?document.querySelector(e):e;if(r[k])for(var n=0,i=r[k];n<i.length;n++){var a=i[n];if(a instanceof t)return a}return null}function E(e,t){var r="string"==typeof e?document.querySelector(e):e;r[k]?r[k].push(t):r[k]=[t]}function x(e){for(var t="",r=0;r<5;r++)t+=(r?",":"")+e[r];return t}Object.defineProperty(t,"__esModule",{value:!0});var k="ej2_instances",C=0;t.createInstance=r,t.setImmediate=n,t.getValue=i,t.setValue=a,t.deleteObject=s,t.isObject=o,t.getEnumValue=l,t.merge=h,t.extend=c,t.isNullOrUndefined=u,t.isUndefined=d,t.getUniqueID=p,t.debounce=v,t.queryParams=f,t.isObjectArray=m,t.compareElementParent=g,t.throwError=y,t.print=D,t.formatUnit=b,t.getInstance=w,t.addInstance=E}.apply(t,n))&&(e.exports=i)},function(e,t,r){var n,i;n=[r,t,r(7)],void 0!==(i=function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r)}.apply(t,n))&&(e.exports=i)}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@syncfusion/ej2-base"));else if("function"==typeof define&&define.amd)define(["@syncfusion/ej2-base"],t);else{var i=t("object"==typeof exports?require("@syncfusion/ej2-base"):e["@syncfusion/ej2-base"]);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,function(e){return function(e){function t(a){if(i[a])return i[a].exports;var s=i[a]={exports:{},id:a,loaded:!1};return e[a].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){var a,s;a=[i,t,i(1)],void 0!==(s=function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i)}.apply(t,a))&&(e.exports=s)},function(e,t,i){var a,s;a=[i,t,i(2)],void 0!==(s=function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i)}.apply(t,a))&&(e.exports=s)},function(e,t,i){var a,s,r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};return function(t,i){function a(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(a.prototype=i.prototype,new a)}}(),n=this&&this.__decorate||function(e,t,i,a){var s,r=arguments.length,n=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};a=[i,t,i(3),i(3),i(3),i(3),i(3)],void 0!==(s=function(e,t,i,a,s,o,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l="e-disabled",c="e-overlay",d="e-other-month",u="e-selected",p="e-focused-date",v=function(e){function t(t,i){var a=e.call(this,t,i)||this;return a.effect="",a.keyConfigs={controlUp:"ctrl+38",controlDown:"ctrl+40",moveDown:"downarrow",moveUp:"uparrow",moveLeft:"leftarrow",moveRight:"rightarrow",select:"enter",home:"home",end:"end",pageUp:"pageup",pageDown:"pagedown",shiftPageUp:"shift+pageup",shiftPageDown:"shift+pagedown",controlHome:"ctrl+home",controlEnd:"ctrl+end"},a}return r(t,e),t.prototype.render=function(){this.globalize=new i.Internationalization(this.locale),this.element.classList.add("e-calendar"),this.enableRtl&&this.element.classList.add("e-rtl"),o.attributes(this.element,{"data-role":"calendar"}),this.processDate(),this.header(),this.content(),this.wireEvents()},t.prototype.processDate=function(){this.validateDate(),this.minMaxUpdate()},t.prototype.validateDate=function(){this.setProperties({value:new Date(""+this.value)},!0),this.currentDate=this.currentDate?this.currentDate:this.resetTime(new Date),!h.isNullOrUndefined(this.value)&&this.min<=this.max&&this.value>=this.min&&this.value<=this.max&&(this.currentDate=this.resetTime(new Date(""+this.value))),isNaN(+this.value)&&this.setProperties({value:null},!0),this.min<=this.max||(this.setProperties({min:this.min},!0),this.setProperties({max:new Date(2099,11,31)},!0))},t.prototype.minMaxUpdate=function(){this.min=h.isNullOrUndefined(this.min)||!+this.min?this.min=new Date(1900,0,1):this.min,this.max=h.isNullOrUndefined(this.max)||!+this.max?this.max=new Date(2099,11,31):this.max,!h.isNullOrUndefined(this.value)&&this.value<=this.min&&this.min<=this.max?(this.setProperties({value:this.resetTime(this.min)},!0),this.changedArgs={value:this.value}):!h.isNullOrUndefined(this.value)&&this.value>=this.max&&this.min<=this.max&&(this.setProperties({value:this.resetTime(this.max)},!0),this.changedArgs={value:this.value}),this.min<=this.max&&this.value&&this.value<=this.max&&this.value>=this.min?this.currentDate=new Date(""+this.value):this.min<=this.max&&!this.value&&this.currentDate>this.max?this.currentDate=new Date(""+this.max):this.currentDate<this.min&&(this.currentDate=new Date(""+this.min))},t.prototype.header=function(){var e={"aria-disabled":"false",role:"button","aria-label":"previous month"},t={"aria-disabled":"false",role:"button","aria-label":"next month"},i={"aria-atomic":"true","aria-live":"assertive","aria-label":"title",role:"button"};this.headerEle=o.createElement("div",{className:"e-header"});var a=o.createElement("div",{className:"e-icon-container"});this.prevIcon=o.createElement("a",{className:"e-prev"}),this.prevIcon.classList.add("e-ripple-style"),o.attributes(this.prevIcon,e),this.nextIcon=o.createElement("a",{className:"e-next"}),this.nextIcon.classList.add("e-ripple-style"),o.attributes(this.nextIcon,t),this.hdrTitleEle=o.createElement("a",{className:"e-day e-title",attrs:{}}),o.attributes(this.hdrTitleEle,i),this.headerEle.appendChild(this.hdrTitleEle),this.prevIcon.appendChild(o.createElement("span",{className:"e-icon-prev e-icons"})),this.nextIcon.appendChild(o.createElement("span",{className:"e-icon-next e-icons"})),a.appendChild(this.prevIcon),a.appendChild(this.nextIcon),this.headerEle.appendChild(a),this.element.appendChild(this.headerEle)},t.prototype.content=function(){this.previousDate=this.value,this.contentEle=o.createElement("div",{className:"e-content"}),this.table=o.createElement("table",{attrs:{tabIndex:"0",role:"grid","aria-activedescendant":""}}),this.element.appendChild(this.contentEle),this.contentEle.appendChild(this.table),this.contentHdr(),this.contentBody()},t.prototype.getCultureValues=function(){var e,t=[];e="en"===this.locale||"en-US"===this.locale?h.getValue("days.stand-alone.short",s.getDefaultDateObject()):this.getCultureObjects(s.cldrData,""+this.locale);for(var i=0,a=Object.keys(e);i<a.length;i++){var r=a[i];t.push(h.getValue(r,e))}return t},t.prototype.contentHdr=function(){this.element.querySelectorAll(".e-content .e-week-header")[0]&&o.remove(this.element.querySelectorAll(".e-content .e-week-header")[0]);var e,t="";(this.firstDayOfWeek>6||this.firstDayOfWeek<0)&&this.setProperties({firstDayOfWeek:0},!0),this.theadEle=o.createElement("thead",{className:"e-week-header"}),this.weekNumber&&(t+='<th class="e-week-number"></th>'),e=this.shiftArray(this.getCultureValues().length>0&&this.getCultureValues(),this.firstDayOfWeek);for(var i=0;i<=6;i++)t+='<th class="">'+e[i]+"</th>";t="<tr>"+t+"</tr>",this.theadEle.innerHTML=t,this.table.appendChild(this.theadEle)},t.prototype.contentBody=function(){switch(this.element.querySelectorAll(".e-content tbody")[0]&&o.remove(this.element.querySelectorAll(".e-content tbody")[0]),this.start){case"year":this.renderYears();break;case"decade":this.renderDecades();break;default:this.renderMonths()}},t.prototype.wireEvents=function(){i.EventHandler.add(this.hdrTitleEle,"click",this.navTitle,this),this.keyboardModule=new a.KeyboardEvents(this.element,{eventName:"keydown",keyAction:this.keyActionHandle.bind(this),keyConfigs:this.keyConfigs})},t.prototype.keyActionHandle=function(e){var t=this.getViewNumber(this.currentView()),i=this.tbodyEle.querySelector("tr td.e-focused-date"),a=this.tbodyEle.querySelector("tr td.e-selected"),s=this.getViewNumber(this.depth),r=t===s&&this.getViewNumber(this.start)>=s;switch(this.effect="",e.action){case"moveLeft":this.KeyboardNavigate(-1,t),e.preventDefault();break;case"moveRight":this.KeyboardNavigate(1,t),e.preventDefault();break;case"moveUp":0===t?this.KeyboardNavigate(-7,t):this.KeyboardNavigate(-4,t),e.preventDefault();break;case"moveDown":0===t?this.KeyboardNavigate(7,t):this.KeyboardNavigate(4,t),e.preventDefault();break;case"select":if(!h.isNullOrUndefined(i)||!h.isNullOrUndefined(a))if(r){var n=new Date(parseInt(""+(i||a).id,0));this.selectDate(e,this.resetTime(n),i||a)}else this.contentClick(null,--t,i||a);break;case"controlUp":this.title(),e.preventDefault();break;case"controlDown":h.isNullOrUndefined(i)&&(h.isNullOrUndefined(a)||r)||this.contentClick(null,--t,i||a),e.preventDefault();break;case"home":this.currentDate=this.firstDay(this.currentDate),o.remove(this.tbodyEle),this.renderMonths(),e.preventDefault();break;case"end":this.currentDate=this.lastDay(this.currentDate),o.remove(this.tbodyEle),this.renderMonths(),e.preventDefault();break;case"pageUp":this.addMonths(this.currentDate,-1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"pageDown":this.addMonths(this.currentDate,1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"shiftPageUp":this.addYears(this.currentDate,-1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"shiftPageDown":this.addYears(this.currentDate,1),this.navigateTo("month",this.currentDate),e.preventDefault();break;case"controlHome":this.navigateTo("month",new Date(this.currentDate.getFullYear(),0,1)),e.preventDefault();break;case"controlEnd":this.navigateTo("month",new Date(this.currentDate.getFullYear(),11,31)),e.preventDefault()}},t.prototype.KeyboardNavigate=function(e,t){var i=new Date(""+this.currentDate);switch(t){case 2:this.addYears(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderDecades()):this.currentDate=i;break;case 1:this.addMonths(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderYears()):this.currentDate=i;break;case 0:this.addDay(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderMonths()):this.currentDate=i}},t.prototype.preRender=function(){var e=this;this.changeHandler=function(t){e.triggerChange()},this.navigateHandler=function(t){e.triggerNavigate()}},t.prototype.renderMonths=function(){var e=[],t=this.resetTime(new Date(""+this.currentDate)),a=this.weekNumber?8:7,s=t.getMonth();this.titleUpdate(this.currentDate,"days");var r=t;for(t=new Date(r.getFullYear(),r.getMonth(),0,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());t.getDay()!==this.firstDayOfWeek;)this.setTime(t,-864e5);for(var n=0;n<42;++n){var h=o.createElement("td"),v=o.createElement("span");n%7==0&&this.weekNumber&&(v.textContent=""+this.getWeek(t),h.appendChild(v),o.addClass([h],"e-week-number"),e.push(h));var m=this.globalize.parseDate(this.globalize.formatDate(t,{skeleton:"full"}),{skeleton:"full"}),g=this.dayCell(t),f=this.globalize.formatDate(t,{type:"date",skeleton:"full"}),y=o.createElement("span");y.textContent=t.getDate().toString();var D=this.min>t||this.max<t;D?(o.addClass([g],l),o.addClass([g],c)):y.setAttribute("title",""+f),s!==t.getMonth()&&o.addClass([g],d),0!==t.getDay()&&6!==t.getDay()||o.addClass([g],"e-weekend"),this.renderDaycellArg={date:t,isDisabled:!1,element:y,isOutOfRange:D};var b=this.renderDaycellArg;this.renderDayCellEvent(b),b.isDisabled&&this.value&&+this.resetTime(this.value)==+b.date&&this.setProperties({value:null},!0),this.renderDaycellArg.isDisabled&&!g.classList.contains(u)&&(o.addClass([g],l),o.addClass([g],c));var w=g.classList.contains(d),x=g.classList.contains(l);x||i.EventHandler.add(g,"click",this.clickHandler,this),b.isDisabled&&+this.value==+b.date&&this.setProperties({value:null},!0),w||x||!this.getDateVal(t)?this.currentDate.getDate()!==t.getDate()||w||x?(this.currentDate>=this.max&&parseInt(g.id,0)===+this.max&&!w&&!x&&o.addClass([g],p),this.currentDate<=this.min&&parseInt(g.id,0)===+this.min&&!w&&!x&&o.addClass([g],p)):o.addClass([g],p):o.addClass([g],u),this.resetTime(m).valueOf()===this.resetTime(new Date).valueOf()&&o.addClass([g],"e-today"),g.appendChild(this.renderDaycellArg.element),e.push(g),this.addDay(t,1)}this.contentHdr(),this.renderTemplate(e,a,"e-month")},t.prototype.renderYears=function(){this.removeTheadEle();var e=[],t=h.isNullOrUndefined(this.value),a=new Date(""+this.currentDate),s=a.getMonth(),r=a.getFullYear(),n=a,c=n.getFullYear(),d=new Date(""+this.min).getFullYear(),v=new Date(""+this.min).getMonth(),m=new Date(""+this.max).getFullYear(),g=new Date(""+this.max).getMonth();n.setMonth(0),this.titleUpdate(this.currentDate,"months");this.min>n||this.max;n.setDate(1);for(var f=0;f<12;++f){var y=this.dayCell(n),D=o.createElement("span"),b=this.value&&this.value.getMonth()===n.getMonth(),w=this.value&&this.value.getFullYear()===r&&b;D.textContent=this.globalize.formatDate(n,{type:"date",skeleton:"MMM"}),this.min&&(c<d||f<v&&c===d)||this.max&&(c>m||f>g&&c>=m)?o.addClass([y],l):!t&&w?o.addClass([y],u):n.getMonth()===s&&this.currentDate.getMonth()===s&&o.addClass([y],p),n.setDate(1),n.setMonth(n.getMonth()+1),y.classList.contains(l)||i.EventHandler.add(y,"click",this.clickHandler,this),y.appendChild(D),e.push(y)}this.renderTemplate(e,4,"e-year")},t.prototype.renderDecades=function(){this.removeTheadEle();var e=[],t=new Date(""+this.currentDate);t.setMonth(0),t.setDate(1);var a=t.getFullYear();this.hdrTitleEle.textContent=a-a%10+" - "+(a-a%10+9);for(var s=new Date(a-a%10-1,0,1),r=s.getFullYear(),n=0;n<12;++n){var c=r+n;t.setFullYear(c);var d=this.dayCell(t);o.attributes(d,{role:"gridcell"});var v=o.createElement("span");v.textContent=c.toString(),c<new Date(""+this.min).getFullYear()||c>new Date(""+this.max).getFullYear()?o.addClass([d],l):h.isNullOrUndefined(this.value)||t.getFullYear()!==this.value.getFullYear()?t.getFullYear()!==this.currentDate.getFullYear()||d.classList.contains(l)||o.addClass([d],p):o.addClass([d],u),d.classList.contains(l)||i.EventHandler.add(d,"click",this.clickHandler,this),d.appendChild(v),e.push(d)}this.renderTemplate(e,4,"e-decade")},t.prototype.dayCell=function(e){var t=this.globalize.parseDate(this.globalize.formatDate(e,{skeleton:"full"}),{skeleton:"full"}),i=this.resetTime(t).valueOf();return o.createElement("td",{attrs:{id:""+h.getUniqueID(""+i),"aria-selected":"false",role:"gridcell"}})},t.prototype.firstDay=function(e){return new Date(e.getFullYear(),e.getMonth())},t.prototype.lastDay=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),i=Math.abs(t.getTimezoneOffset()-this.firstDay(e).getTimezoneOffset());return i&&t.setHours(this.firstDay(e).getHours()+i/60),t},t.prototype.removeTheadEle=function(){this.element.querySelectorAll(".e-content table thead")[0]&&o.remove(this.theadEle)},t.prototype.renderTemplate=function(e,t,i){var a,s=this.getViewNumber(this.currentView());this.tbodyEle=o.createElement("tbody"),this.table.appendChild(this.tbodyEle),o.removeClass([this.contentEle,this.headerEle],["e-month","e-decade","e-year"]),o.addClass([this.contentEle,this.headerEle],[i]);for(var r=t,n=0,h=0;h<e.length/t;++h){for(a=o.createElement("tr",{attrs:{role:"row"}}),n=0+n;n<r;n++)!e[n].classList.contains("e-week-number")&&e[n].children[0]&&o.addClass([e[n].children[0]],["e-day","e-ripple-style"]),a.appendChild(e[n]),!this.weekNumber&&6===n&&e[6].classList.contains(d)&&o.addClass([a],"e-month-hide"),this.weekNumber?41===n&&e[41].classList.contains(d)&&o.addClass([a],"e-month-hide"):35===n&&e[35].classList.contains(d)&&o.addClass([a],"e-month-hide");r+=t,n+=0,this.tbodyEle.appendChild(a)}this.table.querySelector("tbody").className=this.effect,this.iconHandler(),this.changedArgs={value:this.value},(s!==this.getViewNumber(this.currentView())||0===s&&s!==this.getViewNumber(this.currentView()))&&this.navigateHandler(),this.ariaActivedescendent(),this.changeHandler()},t.prototype.clickHandler=function(e){var t=e.currentTarget;e.preventDefault();var i=this.getViewNumber(this.currentView());t.classList.contains(d)?(this.value=this.getIdValue(e,null),this.contentClick(e,0,null)):i===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?this.contentClick(e,1,null):2===i?this.contentClick(e,1,null):t.classList.contains(d)||0!==i?this.contentClick(e,0,t):this.selectDate(e,this.getIdValue(e,null),null)},t.prototype.contentClick=function(e,t,i){var a=this.getViewNumber(this.currentView()),s=this.getIdValue(e,i);switch(t){case 0:a===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?(o.remove(this.tbodyEle),this.currentDate=s,this.effect="e-zoomin",this.renderMonths()):(this.currentDate.setMonth(s.getMonth()),s.getMonth()>0&&this.currentDate.getMonth()!==s.getMonth()&&this.currentDate.setDate(0),this.currentDate.setFullYear(s.getFullYear()),this.effect="e-zoomin",o.remove(this.tbodyEle),this.renderMonths());break;case 1:a===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?this.selectDate(e,s,null):(this.currentDate.setFullYear(s.getFullYear()),this.effect="e-zoomin",o.remove(this.tbodyEle),this.renderYears())}},t.prototype.switchView=function(e){switch(e){case 0:o.remove(this.tbodyEle),this.renderMonths();break;case 1:o.remove(this.tbodyEle),this.renderYears();break;case 2:o.remove(this.tbodyEle),this.renderDecades()}},t.prototype.getModuleName=function(){return"calendar"},t.prototype.getPersistData=function(){var e=["value"];return this.addOnPersist(e)},t.prototype.onPropertyChanged=function(e,t){this.effect="";for(var a=0,s=Object.keys(e);a<s.length;a++){switch(s[a]){case"value":isNaN(+this.value)&&this.setProperties({value:t.value},!0),this.validateDate(),this.minMaxUpdate(),this.setvalue();break;case"enableRtl":e.enableRtl?this.element.classList.add("e-rtl"):this.element.classList.remove("e-rtl");break;case"weekNumber":case"firstDayOfWeek":this.contentHdr(),this.contentBody();break;case"min":case"max":this.setProperties({start:this.currentView()},!0),o.remove(this.tbodyEle),this.minMaxUpdate(),this.contentBody();break;case"locale":this.globalize=new i.Internationalization(this.locale),this.contentHdr(),this.contentBody()}}},t.prototype.setvalue=function(){this.tbodyEle.remove(),this.setProperties({start:this.currentView()},!0),this.contentBody()},t.prototype.titleUpdate=function(e,t){var a=new i.Internationalization(this.locale);switch(t){case"days":this.hdrTitleEle.textContent=a.formatDate(e,{type:"date",skeleton:"yMMMM"});break;case"months":this.hdrTitleEle.textContent=a.formatDate(e,{type:"date",skeleton:"y"})}},t.prototype.ariaActivedescendent=function(){var e=this.tbodyEle.querySelector("tr td.e-focused-date"),t=this.tbodyEle.querySelector("tr td.e-selected"),i=this.globalize.formatDate(this.currentDate,{type:"date",skeleton:"full"});(t||e)&&((e||t).setAttribute("aria-selected","true"),(e||t).setAttribute("aria-label","The current focused date is "+i),o.attributes(this.table,{"aria-activedescendant":""+(e||t).getAttribute("id")}))},t.prototype.iconHandler=function(){switch(new Date(""+this.currentDate).setDate(1),this.currentView()){case"month":this.prevIconHandler(this.compareMonth(new Date(""+this.currentDate),this.min)<1),this.nextIconHandler(this.compareMonth(new Date(""+this.currentDate),this.max)>-1);break;case"year":this.prevIconHandler(this.compareYear(new Date(""+this.currentDate),this.min)<1),this.nextIconHandler(this.compareYear(new Date(""+this.currentDate),this.max)>-1);break;case"decade":this.prevIconHandler(this.compareDecade(new Date(""+this.currentDate),this.min)<1),this.nextIconHandler(this.compareDecade(new Date(""+this.currentDate),this.max)>-1)}},t.prototype.destroy=function(){this.element.classList.remove("e-calendar"),i.EventHandler.remove(this.hdrTitleEle,"click",this.navTitle),this.prevIconHandler(!0),this.nextIconHandler(!0),this.keyboardModule.destroy(),this.element.innerHTML="",e.prototype.destroy.call(this)},t.prototype.title=function(){var e=this.getViewNumber(this.currentView());this.effect="e-zoomin",this.switchView(++e)},t.prototype.getViewNumber=function(e){return"month"===e?0:"year"===e?1:2},t.prototype.navTitle=function(){this.title()},t.prototype.previous=function(){this.effect="";var e=this.getViewNumber(this.currentView());switch(this.currentView()){case"month":this.addMonths(this.currentDate,-1),this.switchView(e);break;case"year":this.addYears(this.currentDate,-1),this.switchView(e);break;case"decade":this.addYears(this.currentDate,-10),this.switchView(e)}},t.prototype.navPrev=function(){this.previous(),this.triggerNavigate()},t.prototype.next=function(){this.effect="";var e=this.getViewNumber(this.currentView());switch(this.currentView()){case"month":this.addMonths(this.currentDate,1),this.switchView(e);break;case"year":this.addYears(this.currentDate,1),this.switchView(e);break;case"decade":this.addYears(this.currentDate,10),this.switchView(e)}},t.prototype.navNext=function(){this.next(),this.triggerNavigate()},t.prototype.navigateTo=function(e,t){this.minMaxUpdate(),+t>=+this.min&&+t<=+this.max&&(this.currentDate=t),+t<=+this.min&&(this.currentDate=new Date(""+this.min)),+t>=+this.max&&(this.currentDate=new Date(""+this.max)),this.switchView(this.getViewNumber(e))},t.prototype.currentView=function(){return this.contentEle.classList.contains("e-year")?"year":this.contentEle.classList.contains("e-decade")?"decade":"month"},t.prototype.getDateVal=function(e){return!h.isNullOrUndefined(this.value)&&e.getDate()===this.value.getDate()&&e.getMonth()===this.value.getMonth()&&e.getFullYear()===this.value.getFullYear()},t.prototype.getCultureObjects=function(e,t){return h.getValue("main."+this.locale+".dates.calendars.gregorian.days.format.short",e)},t.prototype.getWeek=function(e){var t=new Date(""+e).valueOf(),i=new Date(e.getFullYear(),0,1).valueOf(),a=t-i;return Math.ceil((a/864e5+new Date(i).getDay()+1)/7)},t.prototype.setTime=function(e,t){var i=e.getTimezoneOffset(),a=new Date(e.getTime()+t),s=a.getTimezoneOffset()-i;e.setTime(a.getTime()+864e5*s)},t.prototype.addMonths=function(e,t){var i=e.getDate();e.setDate(1),e.setMonth(e.getMonth()+t),e.setDate(Math.min(i,this.getMaxDays(e)))},t.prototype.addYears=function(e,t){var i=e.getDate();e.setDate(1),e.setFullYear(e.getFullYear()+t),e.setDate(Math.min(i,this.getMaxDays(e)))},t.prototype.getIdValue=function(e,t){var i;i=e?e.currentTarget:t;var a=this.globalize.formatDate(new Date(parseInt(""+i.getAttribute("id"),0)),{skeleton:"full"});return this.resetTime(this.globalize.parseDate(a,{skeleton:"full",type:"date"}))},t.prototype.selectDate=function(e,t,i){var a=i||e.currentTarget;"decade"===this.currentView()?this.setDateDecade(this.currentDate,t.getFullYear()):"year"===this.currentView()?this.setDateYear(this.currentDate,t):(this.setProperties({value:new Date(""+t)},!0),this.currentDate=new Date(""+t)),h.isNullOrUndefined(this.tbodyEle.querySelector("."+u))||o.removeClass([this.tbodyEle.querySelector("."+u)],u),h.isNullOrUndefined(this.tbodyEle.querySelector("."+p))||o.removeClass([this.tbodyEle.querySelector("."+p)],p),o.addClass([a],u),this.changedArgs={value:this.value},this.changeHandler(),this.ariaActivedescendent()},t.prototype.prevIconHandler=function(e){e?(i.EventHandler.remove(this.prevIcon,"click",this.navPrev),o.addClass([this.prevIcon],""+l),o.addClass([this.prevIcon],""+c),this.prevIcon.setAttribute("aria-disabled","true")):(i.EventHandler.remove(this.prevIcon,"click",this.navPrev),i.EventHandler.add(this.prevIcon,"click",this.navPrev,this),o.removeClass([this.prevIcon],""+l),o.removeClass([this.prevIcon],""+c),this.prevIcon.setAttribute("aria-disabled","false"))},t.prototype.renderDayCellEvent=function(e){h.extend(this.renderDaycellArg,{name:"renderDayCell"}),this.trigger("renderDayCell",e)},t.prototype.navigatedEvent=function(){h.extend(this.navigatedArgs,{name:"navigated"}),this.trigger("navigated",this.navigatedArgs)},t.prototype.triggerNavigate=function(){this.navigatedArgs={view:this.currentView(),date:this.currentDate},this.navigatedEvent()},t.prototype.changeEvent=function(){this.trigger("change",this.changedArgs)},t.prototype.triggerChange=function(){h.extend(this.changedArgs,{name:"change"}),h.isNullOrUndefined(this.value)||this.setProperties({value:this.resetTime(this.value)},!0),+this.value!==Number.NaN&&+this.value!=+this.previousDate&&this.changeEvent(),this.previousDate=this.value},t.prototype.nextIconHandler=function(e){e?(i.EventHandler.remove(this.nextIcon,"click",this.navNext),o.addClass([this.nextIcon],l),o.addClass([this.nextIcon],c),this.nextIcon.setAttribute("aria-disabled","true")):(i.EventHandler.remove(this.nextIcon,"click",this.navNext),i.EventHandler.add(this.nextIcon,"click",this.navNext,this),o.removeClass([this.nextIcon],l),o.removeClass([this.nextIcon],c),this.nextIcon.setAttribute("aria-disabled","false"))},t.prototype.compare=function(e,t,i){var a,s,r=t.getFullYear();return a=r,s=0,i&&(r-=r%i,a=r-r%i+i-1),e.getFullYear()>a?s=1:e.getFullYear()<r&&(s=-1),s},t.prototype.isMinMaxRange=function(e){return+e>=+this.min&&+e<=+this.max},t.prototype.compareYear=function(e,t){return this.compare(e,t,0)},t.prototype.compareDecade=function(e,t){return this.compare(e,t,10)},t.prototype.shiftArray=function(e,t){return e.slice(t).concat(e.slice(0,t))},t.prototype.resetTime=function(e){return e.setHours(0,0,0,0),e},t.prototype.addDay=function(e,t){e.setDate(e.getDate()+t)},t.prototype.getMaxDays=function(e){var t,i,a=new Date(""+e);for(t=28,i=a.getMonth();a.getMonth()===i;)++t,a.setDate(t);return t-1},t.prototype.setDateDecade=function(e,t){e.setFullYear(t),this.setProperties({value:new Date(""+e)},!0)},t.prototype.setDateYear=function(e,t){e.setFullYear(t.getFullYear(),t.getMonth(),e.getDate()),t.getMonth()!==e.getMonth()&&e.setDate(0),this.setProperties({value:new Date(""+e)},!0),this.currentDate=new Date(""+this.value)},t.prototype.compareMonth=function(e,t){return e.getFullYear()>t.getFullYear()?1:e.getFullYear()<t.getFullYear()?-1:e.getMonth()===t.getMonth()?0:e.getMonth()>t.getMonth()?1:-1},t}(i.Component);n([i.Property(null)],v.prototype,"value",void 0),n([i.Property(new Date(1900,0,1))],v.prototype,"min",void 0),n([i.Property(new Date(2099,11,31))],v.prototype,"max",void 0),n([i.Property(0)],v.prototype,"firstDayOfWeek",void 0),n([i.Property("month")],v.prototype,"start",void 0),n([i.Property("month")],v.prototype,"depth",void 0),n([i.Property(!1)],v.prototype,"weekNumber",void 0),n([i.Event()],v.prototype,"created",void 0),n([i.Event()],v.prototype,"destroyed",void 0),n([i.Event()],v.prototype,"change",void 0),n([i.Event()],v.prototype,"navigated",void 0),n([i.Event()],v.prototype,"renderDayCell",void 0),v=n([a.NotifyPropertyChanges],v),t.Calendar=v,t.calendarBuilder=i.CreateBuilder(v)}.apply(t,a))&&(e.exports=s)},function(t,i){t.exports=e}])});

@@ -20,4 +20,4 @@ var __extends = (this && this.__extends) || (function () {

import { cldrData, getDefaultDateObject } from '@syncfusion/ej2-base';
import { createElement, removeClass, remove, addClass, attributes } from '@syncfusion/ej2-base/dom';
import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base/util';
import { createElement, removeClass, remove, addClass, attributes } from '@syncfusion/ej2-base';
import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base';
var ROOT = 'e-calendar';

@@ -24,0 +24,0 @@ var HEADER = 'e-header';

@@ -1,1 +0,1 @@

export * from './calendar';
export * from './calendar/index';
{
"name": "@syncfusion/ej2-calendars",
"version": "1.0.11",
"description": "Syncfusion TypeScript Calendar",
"version": "1.0.14",
"description": "Essential JS 2 Calendar Components",
"author": "Syncfusion Inc.",

@@ -9,3 +9,3 @@ "license": "SEE LICENSE IN license",

"dependencies": {
"@syncfusion/ej2-base": "^1.0.11",
"@syncfusion/ej2-base": "^1.0.14",
"intl": "^1.2.5"

@@ -12,0 +12,0 @@ },

@@ -1,2 +0,2 @@

import { Component, EventHandler, Property, Event, CreateBuilder, Internationalization, EmitType } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { cldrData, BaseEventArgs, getDefaultDateObject } from '@syncfusion/ej2-base';import { createElement, removeClass, remove, addClass, attributes } from '@syncfusion/ej2-base/dom';import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base/util';import { CalendarHelper } from './calendar-builder';
import { Component, EventHandler, Property, Event, CreateBuilder, Internationalization, EmitType } from '@syncfusion/ej2-base';import { NotifyPropertyChanges, INotifyPropertyChanged, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { cldrData, BaseEventArgs, getDefaultDateObject } from '@syncfusion/ej2-base';import { createElement, removeClass, remove, addClass, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base';import { CalendarHelper } from './calendar-builder';
import {CalendarView,ChangedEventArgs,NavigatedEventArgs,RenderDayCellEventArgs} from "./calendar";

@@ -11,37 +11,77 @@ import {ComponentModel} from '@syncfusion/ej2-base';

/**
* Gets or sets the selected date of the calendar. * @default null */ value?: Date;
* Gets or sets the selected date of the calendar.
* @default null
*/
value?: Date;
/**
* Gets or sets the minimum date that can be allowed to select in the calendar. * @default new Date(1900, 00, 01) */ min?: Date;
* Gets or sets the minimum date that can be allowed to select in the calendar.
* @default new Date(1900, 00, 01)
*/
min?: Date;
/**
* Gets or sets the maximum date that can be allowed to select in the calendar * @default new Date(2099, 11, 31) */ max?: Date;
* Gets or sets the maximum date that can be allowed to select in the calendar
* @default new Date(2099, 11, 31)
*/
max?: Date;
/**
* Gets or sets the calendar's first day of week, by default the first day of the week will * be based on the current culture. * @default '0' */ firstDayOfWeek?: number;
* Gets or sets the calendar's first day of week, by default the first day of the week will
* be based on the current culture.
* @default '0'
*/
firstDayOfWeek?: number;
/**
* Specifies the initial view of the calendar, when it is opened. * With help of this property, initial view can be changed to year or decade view. * @default 'month' */ start?: CalendarView;
* Specifies the initial view of the calendar, when it is opened.
* With help of this property, initial view can be changed to year or decade view.
* @default 'month'
*/
start?: CalendarView;
/**
* Sets the maximum level of view(month, year, decade)in the calendar. * depth view should be smaller than the start view, so that it will restricts the view navigation. * @default 'month' */ depth?: CalendarView;
* Sets the maximum level of view(month, year, decade)in the calendar.
* depth view should be smaller than the start view, so that it will restricts the view navigation.
* @default 'month'
*/
depth?: CalendarView;
/**
* Determines whether the week number of the calendar to be displayed. * It will display the week number in every week row. * @default false */ weekNumber?: boolean;
* Determines whether the week number of the calendar to be displayed.
* It will display the week number in every week row.
* @default false
*/
weekNumber?: boolean;
/**
     * Triggers when calendar is created.     * @event      */ created?: EmitType<Object>;
     * Triggers when calendar is created.
     * @event
     */
created?: EmitType<Object>;
/**
     * Triggers when calendar is destroyed.     * @event      */ destroyed?: EmitType<Object>;
     * Triggers when calendar is destroyed.
     * @event
     */
destroyed?: EmitType<Object>;
/**
* Triggers when the calendar value has been changed. * @event */ change?: EmitType<ChangedEventArgs>;
* Triggers when the calendar value has been changed.
* @event
*/
change?: EmitType<ChangedEventArgs>;
/**
* Triggers when the calendar has been navigated to another level or within the same level of view. * @event */ navigated?: EmitType<NavigatedEventArgs>;
* Triggers when the calendar has been navigated to another level or within the same level of view.
* @event
*/
navigated?: EmitType<NavigatedEventArgs>;
/**
* Triggers on rendering of each day cell of the calendar. * @event */ renderDayCell?: EmitType<RenderDayCellEventArgs>;
* Triggers on rendering of each day cell of the calendar.
* @event
*/
renderDayCell?: EmitType<RenderDayCellEventArgs>;
}

@@ -17,3 +17,3 @@ var __extends = (this && this.__extends) || (function () {

};
define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base/dom", "@syncfusion/ej2-base/util"], function (require, exports, ej2_base_1, ej2_base_2, ej2_base_3, dom_1, util_1) {
define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base", "@syncfusion/ej2-base"], function (require, exports, ej2_base_1, ej2_base_2, ej2_base_3, ej2_base_4, ej2_base_5) {
"use strict";

@@ -78,3 +78,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
dom_1.attributes(this.element, {
ej2_base_4.attributes(this.element, {
'data-role': 'calendar'

@@ -94,3 +94,3 @@ });

this.currentDate = this.currentDate ? this.currentDate : this.resetTime(new Date());
if (!util_1.isNullOrUndefined(this.value) && this.min <= this.max && this.value >= this.min && this.value <= this.max) {
if (!ej2_base_5.isNullOrUndefined(this.value) && this.min <= this.max && this.value >= this.min && this.value <= this.max) {
this.currentDate = this.resetTime(new Date('' + this.value));

@@ -107,5 +107,5 @@ }

Calendar.prototype.minMaxUpdate = function () {
this.min = util_1.isNullOrUndefined(this.min) || !(+this.min) ? this.min = new Date(1900, 0, 1) : this.min;
this.max = util_1.isNullOrUndefined(this.max) || !(+this.max) ? this.max = new Date(2099, 11, 31) : this.max;
if (!util_1.isNullOrUndefined(this.value) && this.value <= this.min && this.min <= this.max) {
this.min = ej2_base_5.isNullOrUndefined(this.min) || !(+this.min) ? this.min = new Date(1900, 0, 1) : this.min;
this.max = ej2_base_5.isNullOrUndefined(this.max) || !(+this.max) ? this.max = new Date(2099, 11, 31) : this.max;
if (!ej2_base_5.isNullOrUndefined(this.value) && this.value <= this.min && this.min <= this.max) {
this.setProperties({ value: this.resetTime(this.min) }, true);

@@ -115,3 +115,3 @@ this.changedArgs = { value: this.value };

else {
if (!util_1.isNullOrUndefined(this.value) && this.value >= this.max && this.min <= this.max) {
if (!ej2_base_5.isNullOrUndefined(this.value) && this.value >= this.max && this.min <= this.max) {
this.setProperties({ value: this.resetTime(this.max) }, true);

@@ -149,15 +149,15 @@ this.changedArgs = { value: this.value };

};
this.headerEle = dom_1.createElement('div', { className: HEADER });
var iconContainer = dom_1.createElement('div', { className: ICONCONTAINER });
this.prevIcon = dom_1.createElement('a', { className: '' + PREVICON });
this.headerEle = ej2_base_4.createElement('div', { className: HEADER });
var iconContainer = ej2_base_4.createElement('div', { className: ICONCONTAINER });
this.prevIcon = ej2_base_4.createElement('a', { className: '' + PREVICON });
this.prevIcon.classList.add(RIPPLESTYLE);
dom_1.attributes(this.prevIcon, ariaPrevAttrs);
this.nextIcon = dom_1.createElement('a', { className: '' + NEXTICON });
ej2_base_4.attributes(this.prevIcon, ariaPrevAttrs);
this.nextIcon = ej2_base_4.createElement('a', { className: '' + NEXTICON });
this.nextIcon.classList.add(RIPPLESTYLE);
dom_1.attributes(this.nextIcon, ariaNextAttrs);
this.hdrTitleEle = dom_1.createElement('a', { className: '' + LINK + ' ' + TITLE, attrs: {} });
dom_1.attributes(this.hdrTitleEle, ariaTitleAttrs);
ej2_base_4.attributes(this.nextIcon, ariaNextAttrs);
this.hdrTitleEle = ej2_base_4.createElement('a', { className: '' + LINK + ' ' + TITLE, attrs: {} });
ej2_base_4.attributes(this.hdrTitleEle, ariaTitleAttrs);
this.headerEle.appendChild(this.hdrTitleEle);
this.prevIcon.appendChild(dom_1.createElement('span', { className: '' + PREVSPAN + ' ' + ICON }));
this.nextIcon.appendChild(dom_1.createElement('span', { className: '' + NEXTSPAN + ' ' + ICON }));
this.prevIcon.appendChild(ej2_base_4.createElement('span', { className: '' + PREVSPAN + ' ' + ICON }));
this.nextIcon.appendChild(ej2_base_4.createElement('span', { className: '' + NEXTSPAN + ' ' + ICON }));
iconContainer.appendChild(this.prevIcon);

@@ -170,4 +170,4 @@ iconContainer.appendChild(this.nextIcon);

this.previousDate = this.value;
this.contentEle = dom_1.createElement('div', { className: CONTENT });
this.table = dom_1.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '' } });
this.contentEle = ej2_base_4.createElement('div', { className: CONTENT });
this.table = ej2_base_4.createElement('table', { attrs: { tabIndex: '0', 'role': 'grid', 'aria-activedescendant': '' } });
this.element.appendChild(this.contentEle);

@@ -182,3 +182,3 @@ this.contentEle.appendChild(this.table);

if (this.locale === 'en' || this.locale === 'en-US') {
cldrObj = (util_1.getValue('days.stand-alone.short', ej2_base_3.getDefaultDateObject()));
cldrObj = (ej2_base_5.getValue('days.stand-alone.short', ej2_base_3.getDefaultDateObject()));
}

@@ -190,3 +190,3 @@ else {

var obj = _a[_i];
culShortNames.push(util_1.getValue(obj, cldrObj));
culShortNames.push(ej2_base_5.getValue(obj, cldrObj));
}

@@ -197,3 +197,3 @@ return culShortNames;

if (this.element.querySelectorAll('.e-content .e-week-header')[0]) {
dom_1.remove(this.element.querySelectorAll('.e-content .e-week-header')[0]);
ej2_base_4.remove(this.element.querySelectorAll('.e-content .e-week-header')[0]);
}

@@ -206,3 +206,3 @@ var daysCount = 6;

}
this.theadEle = dom_1.createElement('thead', { className: WEEKHEADER });
this.theadEle = ej2_base_4.createElement('thead', { className: WEEKHEADER });
if (this.weekNumber) {

@@ -221,3 +221,3 @@ html += '<th class="e-week-number"></th>';

if (this.element.querySelectorAll('.e-content tbody')[0]) {
dom_1.remove(this.element.querySelectorAll('.e-content tbody')[0]);
ej2_base_4.remove(this.element.querySelectorAll('.e-content tbody')[0]);
}

@@ -278,3 +278,3 @@ switch (this.start) {

case 'select':
if (!util_1.isNullOrUndefined(focusedDate) || !util_1.isNullOrUndefined(selectedDate)) {
if (!ej2_base_5.isNullOrUndefined(focusedDate) || !ej2_base_5.isNullOrUndefined(selectedDate)) {
if (levelRestrict) {

@@ -294,3 +294,3 @@ var d = new Date(parseInt('' + (focusedDate || selectedDate).id, 0));

case 'controlDown':
if (!util_1.isNullOrUndefined(focusedDate) || !util_1.isNullOrUndefined(selectedDate) && !levelRestrict) {
if (!ej2_base_5.isNullOrUndefined(focusedDate) || !ej2_base_5.isNullOrUndefined(selectedDate) && !levelRestrict) {
this.contentClick(null, --view, (focusedDate || selectedDate));

@@ -302,3 +302,3 @@ }

this.currentDate = this.firstDay(this.currentDate);
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderMonths();

@@ -309,3 +309,3 @@ e.preventDefault();

this.currentDate = this.lastDay(this.currentDate);
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderMonths();

@@ -350,3 +350,3 @@ e.preventDefault();

if (this.isMinMaxRange(this.currentDate)) {
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderDecades();

@@ -361,3 +361,3 @@ }

if (this.isMinMaxRange(this.currentDate)) {
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderYears();

@@ -372,3 +372,3 @@ }

if (this.isMinMaxRange(this.currentDate)) {
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderMonths();

@@ -405,8 +405,8 @@ }

for (var day = 0; day < cellsCount; ++day) {
var weekEle = dom_1.createElement('td');
var weekAnchor = dom_1.createElement('span');
var weekEle = ej2_base_4.createElement('td');
var weekAnchor = ej2_base_4.createElement('span');
if (day % 7 === 0 && this.weekNumber) {
weekAnchor.textContent = '' + this.getWeek(localDate);
weekEle.appendChild(weekAnchor);
dom_1.addClass([weekEle], '' + WEEKNUMBER);
ej2_base_4.addClass([weekEle], '' + WEEKNUMBER);
tdEles.push(weekEle);

@@ -417,8 +417,8 @@ }

var title = this.globalize.formatDate(localDate, { type: 'date', skeleton: 'full' });
var dayLink = dom_1.createElement('span');
var dayLink = ej2_base_4.createElement('span');
dayLink.textContent = localDate.getDate().toString();
var disabled = (this.min > localDate) || (this.max < localDate);
if (disabled) {
dom_1.addClass([tdEle], DISABLED);
dom_1.addClass([tdEle], OVERLAY);
ej2_base_4.addClass([tdEle], DISABLED);
ej2_base_4.addClass([tdEle], OVERLAY);
}

@@ -429,6 +429,6 @@ else {

if (currentMonth !== localDate.getMonth()) {
dom_1.addClass([tdEle], OTHERMONTH);
ej2_base_4.addClass([tdEle], OTHERMONTH);
}
if (localDate.getDay() === 0 || localDate.getDay() === 6) {
dom_1.addClass([tdEle], WEEKEND);
ej2_base_4.addClass([tdEle], WEEKEND);
}

@@ -449,4 +449,4 @@ this.renderDaycellArg = {

if (this.renderDaycellArg.isDisabled && !tdEle.classList.contains(SELECTED)) {
dom_1.addClass([tdEle], DISABLED);
dom_1.addClass([tdEle], OVERLAY);
ej2_base_4.addClass([tdEle], DISABLED);
ej2_base_4.addClass([tdEle], OVERLAY);
}

@@ -462,14 +462,14 @@ var otherMnthBool = tdEle.classList.contains(OTHERMONTH);

if (!otherMnthBool && !disabledCls && this.getDateVal(localDate)) {
dom_1.addClass([tdEle], SELECTED);
ej2_base_4.addClass([tdEle], SELECTED);
}
else {
if (this.currentDate.getDate() === localDate.getDate() && !otherMnthBool && !disabledCls) {
dom_1.addClass([tdEle], FOCUSEDDATE);
ej2_base_4.addClass([tdEle], FOCUSEDDATE);
}
else {
if (this.currentDate >= this.max && parseInt(tdEle.id, 0) === +this.max && !otherMnthBool && !disabledCls) {
dom_1.addClass([tdEle], FOCUSEDDATE);
ej2_base_4.addClass([tdEle], FOCUSEDDATE);
}
if (this.currentDate <= this.min && parseInt(tdEle.id, 0) === +this.min && !otherMnthBool && !disabledCls) {
dom_1.addClass([tdEle], FOCUSEDDATE);
ej2_base_4.addClass([tdEle], FOCUSEDDATE);
}

@@ -479,3 +479,3 @@ }

if (this.resetTime(date).valueOf() === this.resetTime(new Date()).valueOf()) {
dom_1.addClass([tdEle], 'e-today');
ej2_base_4.addClass([tdEle], 'e-today');
}

@@ -494,3 +494,3 @@ tdEle.appendChild(this.renderDaycellArg.element);

var tdEles = [];
var valueUtil = util_1.isNullOrUndefined(this.value);
var valueUtil = ej2_base_5.isNullOrUndefined(this.value);
var curDate = new Date('' + this.currentDate);

@@ -511,3 +511,3 @@ var mon = curDate.getMonth();

var tdEle = this.dayCell(localDate);
var dayLink = dom_1.createElement('span');
var dayLink = ej2_base_4.createElement('span');
var localMonth = (this.value && (this.value).getMonth() === localDate.getMonth());

@@ -517,10 +517,10 @@ var select = (this.value && (this.value).getFullYear() === yr && localMonth);

if ((this.min && (curYrs < minYr || (month < minMonth && curYrs === minYr))) || (this.max && (curYrs > maxYr || (month > maxMonth && curYrs >= maxYr)))) {
dom_1.addClass([tdEle], DISABLED);
ej2_base_4.addClass([tdEle], DISABLED);
}
else if (!valueUtil && select) {
dom_1.addClass([tdEle], SELECTED);
ej2_base_4.addClass([tdEle], SELECTED);
}
else {
if (localDate.getMonth() === mon && this.currentDate.getMonth() === mon) {
dom_1.addClass([tdEle], FOCUSEDDATE);
ej2_base_4.addClass([tdEle], FOCUSEDDATE);
}

@@ -554,14 +554,14 @@ }

var tdEle = this.dayCell(localDate);
dom_1.attributes(tdEle, { 'role': 'gridcell' });
var dayLink = dom_1.createElement('span');
ej2_base_4.attributes(tdEle, { 'role': 'gridcell' });
var dayLink = ej2_base_4.createElement('span');
dayLink.textContent = year.toString();
if (year < new Date('' + this.min).getFullYear() || year > new Date('' + this.max).getFullYear()) {
dom_1.addClass([tdEle], DISABLED);
ej2_base_4.addClass([tdEle], DISABLED);
}
else if (!util_1.isNullOrUndefined(this.value) && localDate.getFullYear() === (this.value).getFullYear()) {
dom_1.addClass([tdEle], SELECTED);
else if (!ej2_base_5.isNullOrUndefined(this.value) && localDate.getFullYear() === (this.value).getFullYear()) {
ej2_base_4.addClass([tdEle], SELECTED);
}
else {
if (localDate.getFullYear() === this.currentDate.getFullYear() && !tdEle.classList.contains(DISABLED)) {
dom_1.addClass([tdEle], FOCUSEDDATE);
ej2_base_4.addClass([tdEle], FOCUSEDDATE);
}

@@ -580,3 +580,3 @@ }

var value = this.resetTime(date).valueOf();
return dom_1.createElement('td', { attrs: { 'id': '' + util_1.getUniqueID('' + value), 'aria-selected': 'false', 'role': 'gridcell' } });
return ej2_base_4.createElement('td', { attrs: { 'id': '' + ej2_base_5.getUniqueID('' + value), 'aria-selected': 'false', 'role': 'gridcell' } });
};

@@ -597,3 +597,3 @@ Calendar.prototype.firstDay = function (date) {

if (this.element.querySelectorAll('.e-content table thead')[0]) {
dom_1.remove(this.theadEle);
ej2_base_4.remove(this.theadEle);
}

@@ -604,6 +604,6 @@ };

var trEle;
this.tbodyEle = dom_1.createElement('tbody');
this.tbodyEle = ej2_base_4.createElement('tbody');
this.table.appendChild(this.tbodyEle);
dom_1.removeClass([this.contentEle, this.headerEle], [MONTH, DECADE, YEAR]);
dom_1.addClass([this.contentEle, this.headerEle], [classNm]);
ej2_base_4.removeClass([this.contentEle, this.headerEle], [MONTH, DECADE, YEAR]);
ej2_base_4.addClass([this.contentEle, this.headerEle], [classNm]);
var weekNumCell = 41;

@@ -615,14 +615,14 @@ var numberCell = 35;

for (var dayCell = 0; dayCell < elements.length / numCells; ++dayCell) {
trEle = dom_1.createElement('tr', { attrs: { 'role': 'row' } });
trEle = ej2_base_4.createElement('tr', { attrs: { 'role': 'row' } });
for (rowIterator = 0 + rowIterator; rowIterator < row; rowIterator++) {
if (!elements[rowIterator].classList.contains('e-week-number') && elements[rowIterator].children[0]) {
dom_1.addClass([elements[rowIterator].children[0]], [LINK, RIPPLESTYLE]);
ej2_base_4.addClass([elements[rowIterator].children[0]], [LINK, RIPPLESTYLE]);
}
trEle.appendChild(elements[rowIterator]);
if (!this.weekNumber && rowIterator === otherMonthCell && elements[otherMonthCell].classList.contains(OTHERMONTH)) {
dom_1.addClass([trEle], OTHERMONTHROW);
ej2_base_4.addClass([trEle], OTHERMONTHROW);
}
if (this.weekNumber) {
if (rowIterator === weekNumCell && elements[weekNumCell].classList.contains(OTHERMONTH)) {
dom_1.addClass([trEle], OTHERMONTHROW);
ej2_base_4.addClass([trEle], OTHERMONTHROW);
}

@@ -632,3 +632,3 @@ }

if (rowIterator === numberCell && elements[numberCell].classList.contains(OTHERMONTH)) {
dom_1.addClass([trEle], OTHERMONTHROW);
ej2_base_4.addClass([trEle], OTHERMONTHROW);
}

@@ -677,3 +677,3 @@ }

if (currentView === this.getViewNumber(this.depth) && this.getViewNumber(this.start) >= this.getViewNumber(this.depth)) {
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.currentDate = d;

@@ -690,3 +690,3 @@ this.effect = ZOOMIN;

this.effect = ZOOMIN;
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderMonths();

@@ -702,3 +702,3 @@ }

this.effect = ZOOMIN;
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderYears();

@@ -711,11 +711,11 @@ }

case 0:
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderMonths();
break;
case 1:
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderYears();
break;
case 2:
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.renderDecades();

@@ -760,3 +760,3 @@ }

this.setProperties({ start: this.currentView() }, true);
dom_1.remove(this.tbodyEle);
ej2_base_4.remove(this.tbodyEle);
this.minMaxUpdate();

@@ -795,3 +795,3 @@ this.contentBody();

(focusedEle || selectedEle).setAttribute('aria-label', 'The current focused date is ' + '' + title);
dom_1.attributes(this.table, {
ej2_base_4.attributes(this.table, {
'aria-activedescendant': '' + (focusedEle || selectedEle).getAttribute('id')

@@ -914,7 +914,7 @@ });

Calendar.prototype.getDateVal = function (date) {
return (!util_1.isNullOrUndefined(this.value) && date.getDate() === (this.value).getDate()
return (!ej2_base_5.isNullOrUndefined(this.value) && date.getDate() === (this.value).getDate()
&& date.getMonth() === (this.value).getMonth() && date.getFullYear() === (this.value).getFullYear());
};
Calendar.prototype.getCultureObjects = function (ld, c) {
return util_1.getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.days.format.short', ld);
return ej2_base_5.getValue('main.' + '' + this.locale + '.dates.calendars.gregorian.days.format.short', ld);
};

@@ -969,9 +969,9 @@ ;

}
if (!util_1.isNullOrUndefined(this.tbodyEle.querySelector('.' + SELECTED))) {
dom_1.removeClass([this.tbodyEle.querySelector('.' + SELECTED)], SELECTED);
if (!ej2_base_5.isNullOrUndefined(this.tbodyEle.querySelector('.' + SELECTED))) {
ej2_base_4.removeClass([this.tbodyEle.querySelector('.' + SELECTED)], SELECTED);
}
if (!util_1.isNullOrUndefined(this.tbodyEle.querySelector('.' + FOCUSEDDATE))) {
dom_1.removeClass([this.tbodyEle.querySelector('.' + FOCUSEDDATE)], FOCUSEDDATE);
if (!ej2_base_5.isNullOrUndefined(this.tbodyEle.querySelector('.' + FOCUSEDDATE))) {
ej2_base_4.removeClass([this.tbodyEle.querySelector('.' + FOCUSEDDATE)], FOCUSEDDATE);
}
dom_1.addClass([ele], SELECTED);
ej2_base_4.addClass([ele], SELECTED);
this.changedArgs = { value: this.value };

@@ -984,4 +984,4 @@ this.changeHandler();

ej2_base_1.EventHandler.remove(this.prevIcon, 'click', this.navPrev);
dom_1.addClass([this.prevIcon], '' + DISABLED);
dom_1.addClass([this.prevIcon], '' + OVERLAY);
ej2_base_4.addClass([this.prevIcon], '' + DISABLED);
ej2_base_4.addClass([this.prevIcon], '' + OVERLAY);
this.prevIcon.setAttribute('aria-disabled', 'true');

@@ -992,4 +992,4 @@ }

ej2_base_1.EventHandler.add(this.prevIcon, 'click', this.navPrev, this);
dom_1.removeClass([this.prevIcon], '' + DISABLED);
dom_1.removeClass([this.prevIcon], '' + OVERLAY);
ej2_base_4.removeClass([this.prevIcon], '' + DISABLED);
ej2_base_4.removeClass([this.prevIcon], '' + OVERLAY);
this.prevIcon.setAttribute('aria-disabled', 'false');

@@ -999,7 +999,7 @@ }

Calendar.prototype.renderDayCellEvent = function (args) {
util_1.extend(this.renderDaycellArg, { name: 'renderDayCell' });
ej2_base_5.extend(this.renderDaycellArg, { name: 'renderDayCell' });
this.trigger('renderDayCell', args);
};
Calendar.prototype.navigatedEvent = function () {
util_1.extend(this.navigatedArgs, { name: 'navigated' });
ej2_base_5.extend(this.navigatedArgs, { name: 'navigated' });
this.trigger('navigated', this.navigatedArgs);

@@ -1015,4 +1015,4 @@ };

Calendar.prototype.triggerChange = function () {
util_1.extend(this.changedArgs, { name: 'change' });
if (!util_1.isNullOrUndefined(this.value)) {
ej2_base_5.extend(this.changedArgs, { name: 'change' });
if (!ej2_base_5.isNullOrUndefined(this.value)) {
this.setProperties({ value: this.resetTime(this.value) }, true);

@@ -1028,4 +1028,4 @@ }

ej2_base_1.EventHandler.remove(this.nextIcon, 'click', this.navNext);
dom_1.addClass([this.nextIcon], DISABLED);
dom_1.addClass([this.nextIcon], OVERLAY);
ej2_base_4.addClass([this.nextIcon], DISABLED);
ej2_base_4.addClass([this.nextIcon], OVERLAY);
this.nextIcon.setAttribute('aria-disabled', 'true');

@@ -1036,4 +1036,4 @@ }

ej2_base_1.EventHandler.add(this.nextIcon, 'click', this.navNext, this);
dom_1.removeClass([this.nextIcon], DISABLED);
dom_1.removeClass([this.nextIcon], OVERLAY);
ej2_base_4.removeClass([this.nextIcon], DISABLED);
ej2_base_4.removeClass([this.nextIcon], OVERLAY);
this.nextIcon.setAttribute('aria-disabled', 'false');

@@ -1040,0 +1040,0 @@ }

/**
* Calendar all modules
*/
export * from './calendar';
export * from './calendar/index';

@@ -1,2 +0,2 @@

define(["require", "exports", "./calendar"], function (require, exports, calendar_1) {
define(["require", "exports", "./calendar/index"], function (require, exports, index_1) {
"use strict";

@@ -7,3 +7,3 @@ function __export(m) {

Object.defineProperty(exports, "__esModule", { value: true });
__export(calendar_1);
__export(index_1);
});

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc