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.8 to 1.0.10

12

dist/ej2-calendars.umd.min.js

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

!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 n=t("object"==typeof exports?require("@syncfusion/ej2-base"):e["@syncfusion/ej2-base"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var i,r;i=[n,t,n(1)],void 0!==(r=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,i))&&(e.exports=r)},function(e,t,n){var i,r;i=[n,t,n(2)],void 0!==(r=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,i))&&(e.exports=r)},function(e,t,n){var i,r,a=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};i=[n,t,n(3),n(3),n(3),n(4),n(8),n(3)],void 0!==(r=function(e,t,n,i,r,o,l,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c="e-disabled",u="e-overlay",d="e-other-month",p="e-selected",v="e-focused-date",f=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.animateOptions={},i.keyConfigs={controlLeft:"ctrl+37",controlRight:"ctrl+39",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"},i}return a(t,e),t.prototype.render=function(){this.globalize=new n.Internationalization(this.locale),this.element.classList.add("e-calendar"),this.enableRtl&&this.element.classList.add("e-rtl"),o.attributes(this.element,{role:"calendar"}),this.aniObj=new h.Animation(this.animateOptions),this.processDate(),this.header(),this.content(),this.wireEvents()},t.prototype.processDate=function(){this.validateDate(),this.minMaxUpdate()},t.prototype.validateDate=function(){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.setProperties({value:this.resetTime(this.value)},!0),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","aria-label":"Previous month",role:"button"},t={"aria-disabled":"false","aria-label":"Next month",role:"button"},n={"aria-atomic":"true","aria-live":"assertive","aria-label":"title",role:"button"};this.headerEle=o.createElement("div",{className:"e-header"});var i=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-link e-title",attrs:{}}),o.attributes(this.hdrTitleEle,n),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"})),i.appendChild(this.prevIcon),i.appendChild(this.nextIcon),this.headerEle.appendChild(i),this.element.appendChild(this.headerEle)},t.prototype.content=function(){this.effect={name:"SlideDown",delay:0,duration:0,timingFunction:"easeIn"},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.abbreviated",r.getDefaultDateObject()):this.getCultureObjects(r.cldrData,""+this.locale);for(var n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];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 n=0;n<=6;n++)t+='<th class="">'+e[n]+"</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(){n.EventHandler.add(this.hdrTitleEle,"click",this.navTitle,this),this.keyboardModule=new i.KeyboardEvents(this.element,{eventName:"keydown",keyAction:this.keyActionHandle.bind(this),keyConfigs:this.keyConfigs})},t.prototype.keyActionHandle=function(e){var t=this.getViewNumber(this.currentView());this.effect={name:"SlideDown",delay:0,duration:0,timingFunction:"easeIn"};var n=this.tbodyEle.querySelector("tr td.e-focused-date"),i=this.tbodyEle.querySelector("tr td.e-selected"),r=this.getViewNumber(this.depth),a=t===r&&this.getViewNumber(this.start)>=r;switch(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(n)||!l.isNullOrUndefined(i))if(a){var s=new Date(parseInt(""+(n||i).id,0));this.selectDate(e,this.resetTime(s),n||i)}else this.contentClick(null,--t,n||i);break;case"controlUp":this.title(),e.preventDefault();break;case"controlDown":l.isNullOrUndefined(n)&&(l.isNullOrUndefined(i)||a)||this.contentClick(null,--t,n||i),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 n=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=n;break;case 1:this.addMonths(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderYears()):this.currentDate=n;break;case 0:this.addDay(this.currentDate,e),this.isMinMaxRange(this.currentDate)?(o.remove(this.tbodyEle),this.renderMonths()):this.currentDate=n}},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)),i=this.weekNumber?8:7,r=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"),h=o.createElement("span");s%7==0&&this.weekNumber&&(h.textContent=""+this.getWeek(t),l.appendChild(h),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),y=this.globalize.formatDate(t,{type:"date",skeleton:"full"}),g=o.createElement("span");g.textContent=t.getDate().toString();var D=this.min>t||this.max<t;D?(o.addClass([m],c),o.addClass([m],u)):g.setAttribute("title",""+y),o.attributes(m,{"aria-label":""+y}),r!==t.getMonth()&&o.addClass([m],d),0!==t.getDay()&&6!==t.getDay()||o.addClass([m],"e-weekend"),this.renderDaycellArg={date:t,isDisabled:!1,element:g,isOutOfRange:D};var b=this.renderDaycellArg;this.renderDayCellEvent(b),this.renderDaycellArg.isDisabled&&!m.classList.contains(p)&&(o.addClass([m],c),o.addClass([m],u));var w=m.classList.contains(d),E=m.classList.contains(c);E||n.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],v),this.currentDate<=this.min&&parseInt(m.id,0)===+this.min&&!w&&!E&&o.addClass([m],v)):o.addClass([m],v):o.addClass([m],p),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)}o.setStyleAttribute(this.theadEle,{display:""}),this.renderTemplate(e,i,"e-month")},t.prototype.renderYears=function(){var e=[];o.setStyleAttribute(this.theadEle,{display:"none"});var t=l.isNullOrUndefined(this.value),i=new Date(this.currentDate),r=i.getMonth(),a=i.getFullYear(),s=i,h=s.getFullYear(),u=new Date(this.min).getFullYear(),d=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 y=0;y<12;++y){var g=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&&(h<u||y<d&&h===u)||this.max&&(h>f||y>m&&h>=f)?o.addClass([g],c):!t&&w?(o.addClass([g],p),this.ariaAttr(g)):s.getMonth()===r&&this.currentDate.getMonth()===r&&o.addClass([g],v),s.setMonth(s.getMonth()+1),g.classList.contains(c)||n.EventHandler.add(g,"click",this.clickHandler,this),g.appendChild(D),e.push(g)}this.renderTemplate(e,4,"e-year")},t.prototype.renderDecades=function(){var e=[];o.setStyleAttribute(this.theadEle,{display:"none"});var t=new Date(this.currentDate);t.setMonth(0),t.setDate(1);var i=t.getFullYear();this.hdrTitleEle.textContent=i-i%10+" - "+(i-i%10+9);for(var r=new Date(i-i%10-1,0,1),a=r.getFullYear(),s=0;s<12;++s){var h=a+s;t.setFullYear(h);var u=this.dayCell(t);o.attributes(u,{role:"gridcell"});var d=o.createElement("span");d.textContent=h.toString(),h<new Date(this.min).getFullYear()||h>new Date(this.max).getFullYear()?o.addClass([u],c):l.isNullOrUndefined(this.value)||t.getFullYear()!==this.value.getFullYear()?t.getFullYear()!==this.currentDate.getFullYear()||u.classList.contains(c)||o.addClass([u],v):(o.addClass([u],p),this.ariaAttr(u)),u.classList.contains(c)||n.EventHandler.add(u,"click",this.clickHandler,this),u.appendChild(d),e.push(u),o.setStyleAttribute(this.theadEle,{attrs:{display:"block"}})}this.renderTemplate(e,4,"e-decade")},t.prototype.dayCell=function(e){var t=this.globalize.parseDate(this.globalize.formatDate(e,{skeleton:"full"}),{skeleton:"full"}),n=this.resetTime(t).valueOf();return o.createElement("td",{attrs:{id:""+l.getUniqueID(""+n),"aria-selected":"false",role:"grid-cell"}})},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),n=Math.abs(t.getTimezoneOffset()-this.firstDay(e).getTimezoneOffset());return n&&t.setHours(this.firstDay(e).getHours()+n/60),t},t.prototype.renderTemplate=function(e,t,n){var i,r=this.getViewNumber(this.currentView());this.tbodyEle=o.createElement("tbody",{attrs:{role:"rowgroup"}}),this.table.appendChild(this.tbodyEle),o.removeClass([this.contentEle],["e-month","e-decade","e-year"]),o.addClass([this.contentEle],n);for(var a=t,s=0,l=0;l<e.length/t;++l){for(i=o.createElement("tr",{attrs:{role:"row"}}),s=0+s;s<a;s++)e[s].children[0]&&o.addClass([e[s].children[0]],["e-link","e-ripple-style"]),i.appendChild(e[s]),!this.weekNumber&&6===s&&e[6].classList.contains(d)&&o.addClass([i],"e-month-hide"),this.weekNumber?41===s&&e[41].classList.contains(d)&&o.addClass([i],"e-month-hide"):35===s&&e[35].classList.contains(d)&&o.addClass([i],"e-month-hide");a+=t,s+=0;this.tbodyEle.appendChild(i),e[l].children[0]&&o.addClass([e[l].children[0]],["e-link","e-ripple-style"])}this.aniObj.animate(this.table.querySelector("tbody"),this.effect),this.iconHandler(),this.changedArgs={value:this.value},(r!==this.getViewNumber(this.currentView())||0===r&&r!==this.getViewNumber(this.currentView()))&&this.navigateHandler(),this.changeHandler(),o.addClass([this.headerEle],"e-"+this.currentView())},t.prototype.clickHandler=function(e){var t=e.currentTarget;e.preventDefault();var n=this.getViewNumber(this.currentView());t.classList.contains(d)?(this.value=this.getIdValue(e,null),this.contentClick(e,0,null)):n===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?this.contentClick(e,1,null):2===n?this.contentClick(e,1,null):t.classList.contains(d)||0!==n?this.contentClick(e,0,t):this.selectDate(e,this.getIdValue(e,null),null)},t.prototype.contentClick=function(e,t,n){var i=this.getViewNumber(this.currentView()),r=this.getIdValue(e,n);switch(t){case 0:i===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?(o.remove(this.tbodyEle),this.renderMonths()):(this.currentDate.setMonth(r.getMonth()),r.getMonth()>0&&this.currentDate.getMonth()!==r.getMonth()&&this.currentDate.setDate(0),this.currentDate.setFullYear(r.getFullYear()),this.effect={name:"ZoomIn",delay:0,duration:400,timingFunction:"easeOut"},o.remove(this.tbodyEle),this.renderMonths());break;case 1:i===this.getViewNumber(this.depth)&&this.getViewNumber(this.start)>=this.getViewNumber(this.depth)?this.selectDate(e,r,null):(this.currentDate.setFullYear(r.getFullYear()),this.effect={name:"ZoomIn",delay:0,duration:400,timingFunction:"easeOut"},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){for(var i=0,r=Object.keys(e);i<r.length;i++){switch(r[i]){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.effect={name:"SlideDown",delay:0,duration:200,timingFunction:"easeIn"},this.minMaxUpdate(),this.contentBody();break;case"locale":this.globalize=new n.Internationalization(this.locale),this.contentHdr(),this.contentBody()}}},t.prototype.setvalue=function(){this.tbodyEle.remove(),this.setProperties({start:this.currentView()},!0),this.effect={name:"SlideDown",delay:0,duration:200,timingFunction:"easeIn"},this.contentBody()},t.prototype.titleUpdate=function(e,t){var i=new n.Internationalization(this.locale);switch(t){case"days":this.hdrTitleEle.textContent=i.formatDate(e,{type:"date",skeleton:"yMMMM"});break;case"months":this.hdrTitleEle.textContent=i.formatDate(e,{type:"date",skeleton:"y"})}},t.prototype.ariaAttr=function(e){e.setAttribute("aria-selected","true"),o.attributes(this.table,{"aria-activedescendant":""+e.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"),n.EventHandler.remove(this.hdrTitleEle,"click",this.navTitle),this.prevIconHandler(!0),this.nextIconHandler(!0),this.keyboardModule.destroy(),e.prototype.destroy.call(this)},t.prototype.title=function(){var e=this.getViewNumber(this.currentView());this.effect={name:"ZoomOut",delay:0,duration:350,timingFunction:"easeOut"},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={name:"SlideUp",delay:0,duration:370,timingFunction:"easeIn"};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={name:"SlideDown",delay:0,duration:370,timingFunction:"easeOut"};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.abbreviated",e)},t.prototype.getWeek=function(e){var t=new Date(e).valueOf(),n=new Date(e.getFullYear(),0,1).valueOf(),i=t-n;return Math.ceil((i/864e5+new Date(n).getDay()+1)/7)},t.prototype.setTime=function(e,t){var n=e.getTimezoneOffset(),i=new Date(e.getTime()+t),r=i.getTimezoneOffset()-n;e.setTime(i.getTime()+864e5*r)},t.prototype.addMonths=function(e,t){var n=e.getDate();e.setDate(1),e.setMonth(e.getMonth()+t),e.setDate(Math.min(n,this.getMaxDays(e)))},t.prototype.addYears=function(e,t){var n=e.getDate();e.setDate(1),e.setFullYear(e.getFullYear()+t),e.setDate(Math.min(n,this.getMaxDays(e)))},t.prototype.getIdValue=function(e,t){var n;n=e?e.currentTarget:t;var i=this.globalize.formatDate(new Date(parseInt(""+n.getAttribute("id"),0)),{skeleton:"full"});return this.resetTime(this.globalize.parseDate(i,{skeleton:"full",type:"date"}))},t.prototype.selectDate=function(e,t,n){var i=n||e.currentTarget;this.setProperties({value:new Date(t)},!0),this.currentDate=new Date(t),l.isNullOrUndefined(this.tbodyEle.querySelector("."+p))||o.removeClass([this.tbodyEle.querySelector("."+p)],p),l.isNullOrUndefined(this.tbodyEle.querySelector("."+v))||o.removeClass([this.tbodyEle.querySelector("."+v)],v),o.addClass([i],p),this.ariaAttr(i),this.setProperties({value:new Date(t)},!0),this.changedArgs={value:this.value},this.changeHandler()},t.prototype.prevIconHandler=function(e){e?(n.EventHandler.remove(this.prevIcon,"click",this.navPrev),o.addClass([this.prevIcon],""+c),o.addClass([this.prevIcon],""+u),this.prevIcon.setAttribute("aria-disabled","true")):(n.EventHandler.remove(this.prevIcon,"click",this.navPrev),n.EventHandler.add(this.prevIcon,"click",this.navPrev,this),o.removeClass([this.prevIcon],""+c),o.removeClass([this.prevIcon],""+u),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"}),+this.value!==Number.NaN&&+this.value!=+this.previousDate&&this.changeEvent(),this.previousDate=this.value},t.prototype.nextIconHandler=function(e){e?(n.EventHandler.remove(this.nextIcon,"click",this.navNext),o.addClass([this.nextIcon],c),o.addClass([this.nextIcon],u),this.nextIcon.setAttribute("aria-disabled","true")):(n.EventHandler.remove(this.nextIcon,"click",this.navNext),n.EventHandler.add(this.nextIcon,"click",this.navNext,this),o.removeClass([this.nextIcon],c),o.removeClass([this.nextIcon],u),this.nextIcon.setAttribute("aria-disabled","false"))},t.prototype.compare=function(e,t,n){var i,r,a=t.getFullYear();return i=a,r=0,n&&(a-=a%n,i=a-a%n+n-1),e.getFullYear()>i?r=1:e.getFullYear()<a&&(r=-1),r},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,n,i=new Date(e);for(t=28,n=i.getMonth();i.getMonth()===n;)++t,i.setDate(t);return t-1},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}(n.Component);s([n.Property(null)],f.prototype,"value",void 0),s([n.Property(new Date(1900,0,1))],f.prototype,"min",void 0),s([n.Property(new Date(2099,11,31))],f.prototype,"max",void 0),s([n.Property(0)],f.prototype,"firstDayOfWeek",void 0),s([n.Property("month")],f.prototype,"start",void 0),s([n.Property("month")],f.prototype,"depth",void 0),s([n.Property(!1)],f.prototype,"weekNumber",void 0),s([n.Event()],f.prototype,"created",void 0),s([n.Event()],f.prototype,"destroyed",void 0),s([n.Event()],f.prototype,"change",void 0),s([n.Event()],f.prototype,"navigated",void 0),s([n.Event()],f.prototype,"renderDayCell",void 0),f=s([i.NotifyPropertyChanges],f),t.Calendar=f,t.calendarBuilder=n.CreateBuilder(f)}.apply(t,i))&&(e.exports=r)},function(t,n){t.exports=e},function(e,t,n){var i,r;i=[n,t,n(5)],void 0!==(r=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,i))&&(e.exports=r)},function(e,t,n){var i,r;i=[n,t,n(6),n(7)],void 0!==(r=function(e,t,n,i){"use strict";function r(e,t){var n=document.createElement(e);return void 0===t?n:(n.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(n.className=t.className),void 0!==t.id&&(n.id=t.id),void 0!==t.styles&&n.setAttribute("style",t.styles),void 0!==t.attrs&&p(n,t.attrs),n)}function a(e,t){for(var n=o(t),i=0,r=e;i<r.length;i++)for(var a=r[i],s=0,l=n;s<l.length;s++){var h=l[s];a.classList.contains(h)||a.classList.add(h)}return e}function s(e,t){for(var n=o(t),i=0,r=e;i<r.length;i++){var a=r[i];if(""!==a.className)for(var s=0,l=n;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 n=document.createDocumentFragment(),i=0,r=e;i<r.length;i++){var a=r[i];n.appendChild(a)}return t.insertBefore(n,t.firstElementChild),e}function c(e,t){for(var n=document.createDocumentFragment(),i=0,r=e;i<r.length;i++){var a=r[i];n.appendChild(a)}return t.appendChild(n),e}function u(e){return e.parentNode.removeChild(e)}function d(e){var t=e.parentNode;n.EventHandler.clearEvents(e),t.removeChild(e)}function p(e,t){for(var n=Object.keys(t),i=e,r=0,a=n;r<a.length;r++){var s=a[r];i.setAttribute(s,t[s])}return i}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 n=e;if("function"==typeof n.closest)return n.closest(t);for(;n&&1===n.nodeType;){if(w(n,t))return n;n=n.parentNode}return null}function y(e){for(var t=[],n=Array.prototype.slice.call(e.parentNode.childNodes),i=0,r=n;i<r.length;i++){var a=r[i];a.nodeType===Node.ELEMENT_NODE&&e!==a&&t.push(a)}return t}function g(e,t,n){var r=e.getAttribute(t);return i.isNullOrUndefined(r)&&(e.setAttribute(t,n.toString()),r=n),r}function D(e,t){void 0!==t&&Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function b(e,t,n){a([e],t),s([e],n)}function w(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return n?n.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createElement=r,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=y,t.getAttributeOrDefault=g,t.setStyleAttribute=D,t.classList=b,t.matches=w}.apply(t,i))&&(e.exports=r)},function(e,t,n){var i,r;i=[n,t,n(7)],void 0!==(r=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.addOrGetEventData=function(e){return"__eventList"in e?e.__eventList.events:(e.__eventList={},e.__eventList.events=[])},e.add=function(t,i,r,a,s){var o,l=e.addOrGetEventData(t);o=s?n.debounce(r,s):r,a&&(o=o.bind(a));for(var h=i.split(" "),c=0;c<h.length;c++)l.push({name:h[c],listener:r,debounce:o}),t.addEventListener(h[c],o)},e.remove=function(t,n,i){for(var r=e.addOrGetEventData(t),a=n.split(" "),s=0;s<a.length;s++)!function(e){var n,s=-1;r&&0!==r.length&&r.some(function(t,r){return t.name===a[e]&&t.listener.toString()===i.toString()&&(s=r,n=t.debounce,!0)}),-1!==s&&r.splice(s,1),t.removeEventListener(a[e],n)}(s)},e.clearEvents=function(t){var i,r;i=e.addOrGetEventData(t),r=n.extend([],r,i);for(var a=0;a<r.length;a++)t.removeEventListener(r[a].name,r[a].debounce),i.shift()},e.trigger=function(t,n,i){for(var r=e.addOrGetEventData(t),a=0,s=r;a<s.length;a++){var o=s[a];o.name===n&&o.debounce.call(this,i)}},e}();t.EventHandler=i}.apply(t,i))&&(e.exports=r)},function(e,t,n){var i,r;i=[n,t],void 0!==(r=function(e,t){"use strict";function n(e,t){var n=t;return n.unshift(void 0),new(Function.prototype.bind.apply(e,n))}function i(e){var t,n=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(n);var i="ej2"+x(n),r=function(n){n.source===window&&"string"==typeof n.data&&n.data.length<=32&&n.data===i&&(e(),t())};return window.addEventListener("message",r,!1),window.postMessage(i,"*"),t=function(){window.removeEventListener("message",r)}}function r(e,t){for(var n=t,i=e.split("."),r=0;r<i.length&&!d(n);r++)n=n[i[r]];return n}function a(e,t,n){var i,r,a=e.split("."),s=n||{},o=s,l=a.length;for(i=0;i<l;i++)r=a[i],i+1===l?o[r]=void 0===t?{}:t:u(o[r])&&(o[r]={}),o=o[r];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 n=e,i=t,r=Object.keys(t),a=0,s=r;a<s.length;a++){var o=s[a];n[o]=i[o]}}function c(e,t,n,i){var r=e||{},a=arguments.length;i&&(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 n,a=r[e],s=t[e];i&&o(s)?(n=o(a)?a:{},r[e]=c({},n,s,!0)):r[e]=s})}(l);return r}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 n,i=this;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=r[0],o=function(){return n=null,e.call(i,s)};clearTimeout(n),n=setTimeout(o,t)}}function f(e){for(var t=[],n=Object.keys(e),i=0,r=n;i<r.length;i++){var a=r[i];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 y(e,t){var n=e;return n===t||!(n===document||!n)&&y(n.parentNode,t)}function g(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function D(e,t){var n=document.createElement("div"),i=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),r="";u(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),n.appendChild(e.cloneNode(!0));for(var a=0,s=i.length;a<s;a++)r+=i[a].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+r+"</head><body>"+n.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 n="string"==typeof e?document.querySelector(e):e;if(n[k])for(var i=0,r=n[k];i<r.length;i++){var a=r[i];if(a instanceof t)return a}return null}function E(e,t){var n="string"==typeof e?document.querySelector(e):e;n[k]?n[k].push(t):n[k]=[t]}function x(e){for(var t="",n=0;n<5;n++)t+=(n?",":"")+e[n];return t}Object.defineProperty(t,"__esModule",{value:!0});var k="ej2_instances",C=0;t.createInstance=n,t.setImmediate=i,t.getValue=r,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=y,t.throwError=g,t.print=D,t.formatUnit=b,t.getInstance=w,t.addInstance=E}.apply(t,i))&&(e.exports=r)},function(e,t,n){var i,r;i=[n,t,n(7)],void 0!==(r=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,i))&&(e.exports=r)}])});
/*!
* filename: ej2-calendars.umd.min.js
* version : 1.0.10
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
!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.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,{role:"calendar"}),this.processDate(),this.header(),this.content(),this.wireEvents()},t.prototype.processDate=function(){this.validateDate(),this.minMaxUpdate()},t.prototype.validateDate=function(){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.setProperties({value:this.resetTime(this.value)},!0),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"},t={"aria-disabled":"false",role:"button"},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-link 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.abbreviated",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){this.effect="";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(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),y=this.globalize.formatDate(t,{type:"date",skeleton:"full"}),g=o.createElement("span");g.textContent=t.getDate().toString();var D=this.min>t||this.max<t;D?(o.addClass([m],h),o.addClass([m],c)):g.setAttribute("title",""+y),o.attributes(m,{"aria-label":""+y}),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:g,isOutOfRange:D};var b=this.renderDaycellArg;this.renderDayCellEvent(b),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)}o.setStyleAttribute(this.theadEle,{display:""}),this.renderTemplate(e,n,"e-month")},t.prototype.renderYears=function(){var e=[];o.setStyleAttribute(this.theadEle,{display:"none"});var 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 y=0;y<12;++y){var g=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||y<v&&c===u)||this.max&&(c>f||y>m&&c>=f)?o.addClass([g],h):!t&&w?(o.addClass([g],d),this.ariaAttr(g)):s.getMonth()===i&&this.currentDate.getMonth()===i&&o.addClass([g],p),s.setMonth(s.getMonth()+1),g.classList.contains(h)||r.EventHandler.add(g,"click",this.clickHandler,this),g.appendChild(D),e.push(g)}this.renderTemplate(e,4,"e-year")},t.prototype.renderDecades=function(){var e=[];o.setStyleAttribute(this.theadEle,{display:"none"});var 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),this.ariaAttr(u)),u.classList.contains(h)||r.EventHandler.add(u,"click",this.clickHandler,this),u.appendChild(v),e.push(u),o.setStyleAttribute(this.theadEle,{attrs:{display:"block"}})}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:"grid-cell"}})},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.renderTemplate=function(e,t,r){var n,i=this.getViewNumber(this.currentView());this.tbodyEle=o.createElement("tbody",{attrs:{role:"rowgroup"}}),this.table.appendChild(this.tbodyEle),o.removeClass([this.contentEle],["e-month","e-decade","e-year"]),o.addClass([this.contentEle],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-link","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.changeHandler(),o.addClass([this.headerEle],"e-"+this.currentView())},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.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){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.ariaAttr=function(e){e.setAttribute("aria-selected","true"),o.attributes(this.table,{"aria-activedescendant":""+e.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(),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.abbreviated",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;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.ariaAttr(n),this.setProperties({value:new Date(t)},!0),this.changedArgs={value:this.value},this.changeHandler()},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.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 y(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 g(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=y,t.getAttributeOrDefault=g,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 y(e,t){var r=e;return r===t||!(r===document||!r)&&y(r.parentNode,t)}function g(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=y,t.throwError=g,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)}])});

71

dist/es6/calendar/calendar.js

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

import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base/util';
import { Animation } from '@syncfusion/ej2-base';
var ROOT = 'e-calendar';

@@ -54,6 +53,3 @@ var HEADER = 'e-header';

var _this = _super.call(this, options, element) || this;
_this.animateOptions = {};
_this.keyConfigs = {
controlLeft: 'ctrl+37',
controlRight: 'ctrl+39',
controlUp: 'ctrl+38',

@@ -86,3 +82,2 @@ controlDown: 'ctrl+40',

});
this.aniObj = new Animation(this.animateOptions);
this.processDate();

@@ -141,3 +136,2 @@ this.header();

'aria-disabled': 'false',
'aria-label': 'Previous month',
'role': 'button'

@@ -147,3 +141,2 @@ };

'aria-disabled': 'false',
'aria-label': 'Next month',
'role': 'button'

@@ -173,8 +166,2 @@ };

Calendar.prototype.content = function () {
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 0,
timingFunction: 'easeIn'
};
this.previousDate = this.value;

@@ -249,9 +236,4 @@ this.contentEle = createElement('div', { className: CONTENT });

Calendar.prototype.keyActionHandle = function (e) {
this.effect = '';
var view = this.getViewNumber(this.currentView());
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 0,
timingFunction: 'easeIn'
};
var focusedDate = this.tbodyEle.querySelector('tr td.e-focused-date');

@@ -601,3 +583,3 @@ var selectedDate = this.tbodyEle.querySelector('tr td.e-selected');

for (rowIterator = 0 + rowIterator; rowIterator < row; rowIterator++) {
if (elements[rowIterator].children[0]) {
if (!elements[rowIterator].classList.contains('e-week-number') && elements[rowIterator].children[0]) {
addClass([elements[rowIterator].children[0]], [LINK, RIPPLESTYLE]);

@@ -622,9 +604,5 @@ }

rowIterator = rowIterator + 0;
var ani = {};
this.tbodyEle.appendChild(trEle);
if (elements[dayCell].children[0]) {
addClass([elements[dayCell].children[0]], [LINK, RIPPLESTYLE]);
}
}
this.aniObj.animate(this.table.querySelector('tbody'), this.effect);
this.table.querySelector('tbody').className = this.effect;
this.iconHandler();

@@ -674,7 +652,3 @@ this.changedArgs = { value: this.value };

this.currentDate.setFullYear(d.getFullYear());
this.effect = {
name: 'ZoomIn',
delay: 0,
duration: 400, timingFunction: 'easeOut'
};
this.effect = 'e-zoomin';
remove(this.tbodyEle);

@@ -690,7 +664,3 @@ this.renderMonths();

this.currentDate.setFullYear(d.getFullYear());
this.effect = {
name: 'ZoomIn',
delay: 0,
duration: 400, timingFunction: 'easeOut'
};
this.effect = 'e-zoomin';
remove(this.tbodyEle);

@@ -752,7 +722,2 @@ this.renderYears();

remove(this.tbodyEle);
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 200, timingFunction: 'easeIn'
};
this.minMaxUpdate();

@@ -772,7 +737,2 @@ this.contentBody();

this.setProperties({ start: this.currentView() }, true);
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 200, timingFunction: 'easeIn'
};
this.contentBody();

@@ -822,7 +782,3 @@ };

var currentView = this.getViewNumber(this.currentView());
this.effect = {
name: 'ZoomOut',
delay: 0,
duration: 350, timingFunction: 'easeOut'
};
this.effect = 'e-zoomin';
this.switchView(++currentView);

@@ -845,7 +801,3 @@ };

Calendar.prototype.previous = function () {
this.effect = {
name: 'SlideUp',
delay: 0,
duration: 370, timingFunction: 'easeIn'
};
this.effect = '';
var currentView = this.getViewNumber(this.currentView());

@@ -872,7 +824,3 @@ switch (this.currentView()) {

Calendar.prototype.next = function () {
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 370, timingFunction: 'easeOut'
};
this.effect = '';
var currentView = this.getViewNumber(this.currentView());

@@ -1013,2 +961,5 @@ switch (this.currentView()) {

extend(this.changedArgs, { name: 'change' });
if (!isNullOrUndefined(this.value)) {
this.setProperties({ value: this.resetTime(this.value) }, true);
}
if (+this.value !== Number.NaN && +this.value !== +this.previousDate) {

@@ -1015,0 +966,0 @@ this.changeEvent();

@@ -5,49 +5,21 @@ {

{
"raw": "@syncfusion/ej2-calendars@^1.0.0",
"raw": "@syncfusion/ej2-calendars@*",
"scope": "@syncfusion",
"escapedName": "@syncfusion%2fej2-calendars",
"name": "@syncfusion/ej2-calendars",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"rawSpec": "*",
"spec": "*",
"type": "range"
},
"D:\\release\\packages\\node_modules\\@syncfusion\\ej2"
],
[
{
"raw": "@syncfusion/ej2-calendars@^1.0.0",
"scope": "@syncfusion",
"escapedName": "@syncfusion%2fej2-calendars",
"name": "@syncfusion/ej2-calendars",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"C:\\Users\\ajithr\\Desktop\\pack\\node_modules\\@syncfusion\\ej2"
],
[
{
"raw": "@syncfusion/ej2-calendars@^1.0.0",
"scope": "@syncfusion",
"escapedName": "@syncfusion%2fej2-calendars",
"name": "@syncfusion/ej2-calendars",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"C:\\Users\\ajithr\\Desktop\\npm\\node_modules\\@syncfusion\\ej2"
"C:\\Users\\ajithr\\Desktop\\ej2-release\\node_modules\\@syncfusion\\ej2"
]
],
"_from": "@syncfusion/ej2-calendars@^1.0.0",
"_id": "@syncfusion/ej2-calendars@1.0.5",
"_from": "@syncfusion/ej2-calendars@*",
"_id": "@syncfusion/ej2-calendars@1.0.10",
"_inCache": true,
"_location": "/@syncfusion/ej2-calendars",
"_nodeVersion": "6.10.2",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/ej2-calendars-1.0.5.tgz_1494508031879_0.34788369620218873"
},
"_nodeVersion": "6.11.0",
"_npmUser": {
"name": "ajithr11",
"email": "ajithr@syncfusion.com"
"name": "ej2",
"email": "pipeline@syncfusion.com"
},

@@ -57,8 +29,8 @@ "_npmVersion": "3.10.10",

"_requested": {
"raw": "@syncfusion/ej2-calendars@^1.0.0",
"raw": "@syncfusion/ej2-calendars@*",
"scope": "@syncfusion",
"escapedName": "@syncfusion%2fej2-calendars",
"name": "@syncfusion/ej2-calendars",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"rawSpec": "*",
"spec": "*",
"type": "range"

@@ -70,7 +42,7 @@ },

],
"_resolved": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-1.0.5.tgz",
"_shasum": "f49360ff7cf829ed43e0eba715975ffa8add488e",
"_resolved": "http://syncdeskn6525:8081/repository/ej2-production/@syncfusion/ej2-calendars/-/ej2-calendars-1.0.10.tgz",
"_shasum": "dda5b82bb9ae67ca16c935f1372d05e308539087",
"_shrinkwrap": null,
"_spec": "@syncfusion/ej2-calendars@^1.0.0",
"_where": "C:\\Users\\ajithr\\Desktop\\npm\\node_modules\\@syncfusion\\ej2",
"_spec": "@syncfusion/ej2-calendars@*",
"_where": "C:\\Users\\ajithr\\Desktop\\ej2-release\\node_modules\\@syncfusion\\ej2",
"author": {

@@ -82,16 +54,7 @@ "name": "Syncfusion Inc."

},
"config": {
"ghooks": {
"pre-commit": "gulp pre-commit",
"pre-push": "gulp pre-push",
"commit-msg": "gulp commit-msg"
}
},
"dependencies": {
"@syncfusion/ej2-base": "^1.0.0",
"@syncfusion/ej2-inputs": "^1.0.0",
"@syncfusion/ej2-popups": "^1.0.0",
"@syncfusion/ej2-base": "^1.0.10",
"intl": "^1.2.5"
},
"description": "Syncfusion TypeScript Calendar",
"description": "Essential JS 2 Calendar",
"devDependencies": {

@@ -104,8 +67,7 @@ "@types/chai": "^3.4.28",

},
"directories": {},
"dist": {
"shasum": "f49360ff7cf829ed43e0eba715975ffa8add488e",
"tarball": "https://registry.npmjs.org/@syncfusion/ej2-calendars/-/ej2-calendars-1.0.5.tgz"
"shasum": "dda5b82bb9ae67ca16c935f1372d05e308539087",
"tarball": "http://syncdeskn6525:8081/repository/ej2-production/@syncfusion/ej2-calendars/-/ej2-calendars-1.0.10.tgz"
},
"gitHead": "870a08670f030a76cf0004d34fc07906911368a5",
"gitHead": "11fe00456eef2cbce7ff5e6eebf54d08f81e6966",
"homepage": "https://github.com/syncfusion/ej2-calendars#readme",

@@ -116,6 +78,11 @@ "keywords": [

"ej2-calendars",
"web-components",
"JavaScript",
"TypeScript",
"calendar",
"date",
"culture",
"month",
"date",
"year"
"year",
"decade"
],

@@ -125,8 +92,4 @@ "license": "SEE LICENSE IN license",

{
"name": "ajithr11",
"email": "ajithr@syncfusion.com"
},
{
"name": "syncfusionorg",
"email": "npmjs@syncfusion.com"
"name": "ej2",
"email": "pipeline@syncfusion.com"
}

@@ -137,3 +100,4 @@ ],

"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"readme": "# Calendar\r\n\r\nCalendar interface for selecting dates with options for disabling dates, restricting selection and showing custom events.It comes with [documentation](http://ej2.syncfusion.com/documentation/calendar) and support, which is available under commercial and community licenses. Please visit www.syncfusion.com to get started. \r\n\r\n## Resources\r\n\r\n[Demo](http://ej2.syncfusion.com/demos/#/calendar/default.html) \r\n[Documentation](http://ej2.syncfusion.com/documentation/calendar)\n\n# 1.0.10\r\n\r\n## Calendar\r\n\r\n### Bug Fixes\r\n\r\nEnhanced the Calendar animation when navigating back and forth from month to year and vice versa",
"readmeFilename": "README.md",
"repository": {

@@ -148,3 +112,3 @@ "type": "git",

},
"version": "1.0.8"
}
"version": "1.0.10"
}
# Calendar
Calendar interface for selecting dates with options for disabling dates, restricting selection and showing custom events.
Calendar interface for selecting dates with options for disabling dates, restricting selection and showing custom events.It comes with [documentation](http://ej2.syncfusion.com/documentation/calendar) and support, which is available under commercial and community licenses. Please visit www.syncfusion.com to get started.
## Resources
[Demos](http://ej2.syncfusion.com/demos/#/calendar/default.html)
[Demo](http://ej2.syncfusion.com/demos/#/calendar/default.html)
[Documentation](http://ej2.syncfusion.com/documentation/calendar)
# 1.0.10
## Calendar
### Bug Fixes
Enhanced the Calendar animation when navigating back and forth from month to year and vice versa

@@ -52,3 +52,3 @@ import{Calendar} from "./calendar";

/**
* Overrides the global culture and localization value for this component.
* Overrides the global culture and localization value for this component. Default Global culture is 'en-US'
*/

@@ -55,0 +55,0 @@ locale(value:string): BuilderProperties;

@@ -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, setStyleAttribute, attributes } from '@syncfusion/ej2-base/dom'; import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base/util'; import { Animation, AnimationOptions, AnimationModel } from '@syncfusion/ej2-base'; 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, setStyleAttribute, attributes } from '@syncfusion/ej2-base/dom'; import { isNullOrUndefined, getValue, getUniqueID, extend } from '@syncfusion/ej2-base/util'; import { CalendarHelper } from './calendar-builder';
import {CalendarView,ChangedEventArgs,NavigatedEventArgs,RenderDayCellEventArgs} from "./calendar";

@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base';

@@ -30,4 +30,2 @@ import { Component, Internationalization, EmitType } from '@syncfusion/ej2-base';

protected globalize: Internationalization;
private animateOptions;
private aniObj;
private currentDate;

@@ -118,3 +116,3 @@ protected changedArgs: ChangedEventArgs;

* To Initialize the control rendering.
* @return void
* @returns void
* @private

@@ -121,0 +119,0 @@ */

@@ -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", "@syncfusion/ej2-base"], function (require, exports, ej2_base_1, ej2_base_2, ej2_base_3, dom_1, util_1, ej2_base_4) {
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) {
"use strict";

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

var _this = _super.call(this, options, element) || this;
_this.animateOptions = {};
_this.keyConfigs = {
controlLeft: 'ctrl+37',
controlRight: 'ctrl+39',
controlUp: 'ctrl+38',

@@ -83,3 +80,2 @@ controlDown: 'ctrl+40',

});
this.aniObj = new ej2_base_4.Animation(this.animateOptions);
this.processDate();

@@ -138,3 +134,2 @@ this.header();

'aria-disabled': 'false',
'aria-label': 'Previous month',
'role': 'button'

@@ -144,3 +139,2 @@ };

'aria-disabled': 'false',
'aria-label': 'Next month',
'role': 'button'

@@ -170,8 +164,2 @@ };

Calendar.prototype.content = function () {
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 0,
timingFunction: 'easeIn'
};
this.previousDate = this.value;

@@ -246,9 +234,4 @@ this.contentEle = dom_1.createElement('div', { className: CONTENT });

Calendar.prototype.keyActionHandle = function (e) {
this.effect = '';
var view = this.getViewNumber(this.currentView());
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 0,
timingFunction: 'easeIn'
};
var focusedDate = this.tbodyEle.querySelector('tr td.e-focused-date');

@@ -598,3 +581,3 @@ var selectedDate = this.tbodyEle.querySelector('tr td.e-selected');

for (rowIterator = 0 + rowIterator; rowIterator < row; rowIterator++) {
if (elements[rowIterator].children[0]) {
if (!elements[rowIterator].classList.contains('e-week-number') && elements[rowIterator].children[0]) {
dom_1.addClass([elements[rowIterator].children[0]], [LINK, RIPPLESTYLE]);

@@ -619,9 +602,5 @@ }

rowIterator = rowIterator + 0;
var ani = {};
this.tbodyEle.appendChild(trEle);
if (elements[dayCell].children[0]) {
dom_1.addClass([elements[dayCell].children[0]], [LINK, RIPPLESTYLE]);
}
}
this.aniObj.animate(this.table.querySelector('tbody'), this.effect);
this.table.querySelector('tbody').className = this.effect;
this.iconHandler();

@@ -671,7 +650,3 @@ this.changedArgs = { value: this.value };

this.currentDate.setFullYear(d.getFullYear());
this.effect = {
name: 'ZoomIn',
delay: 0,
duration: 400, timingFunction: 'easeOut'
};
this.effect = 'e-zoomin';
dom_1.remove(this.tbodyEle);

@@ -687,7 +662,3 @@ this.renderMonths();

this.currentDate.setFullYear(d.getFullYear());
this.effect = {
name: 'ZoomIn',
delay: 0,
duration: 400, timingFunction: 'easeOut'
};
this.effect = 'e-zoomin';
dom_1.remove(this.tbodyEle);

@@ -749,7 +720,2 @@ this.renderYears();

dom_1.remove(this.tbodyEle);
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 200, timingFunction: 'easeIn'
};
this.minMaxUpdate();

@@ -769,7 +735,2 @@ this.contentBody();

this.setProperties({ start: this.currentView() }, true);
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 200, timingFunction: 'easeIn'
};
this.contentBody();

@@ -819,7 +780,3 @@ };

var currentView = this.getViewNumber(this.currentView());
this.effect = {
name: 'ZoomOut',
delay: 0,
duration: 350, timingFunction: 'easeOut'
};
this.effect = 'e-zoomin';
this.switchView(++currentView);

@@ -842,7 +799,3 @@ };

Calendar.prototype.previous = function () {
this.effect = {
name: 'SlideUp',
delay: 0,
duration: 370, timingFunction: 'easeIn'
};
this.effect = '';
var currentView = this.getViewNumber(this.currentView());

@@ -869,7 +822,3 @@ switch (this.currentView()) {

Calendar.prototype.next = function () {
this.effect = {
name: 'SlideDown',
delay: 0,
duration: 370, timingFunction: 'easeOut'
};
this.effect = '';
var currentView = this.getViewNumber(this.currentView());

@@ -1010,2 +959,5 @@ switch (this.currentView()) {

util_1.extend(this.changedArgs, { name: 'change' });
if (!util_1.isNullOrUndefined(this.value)) {
this.setProperties({ value: this.resetTime(this.value) }, true);
}
if (+this.value !== Number.NaN && +this.value !== +this.previousDate) {

@@ -1012,0 +964,0 @@ this.changeEvent();

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

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