New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-angular-dateinputs

Package Overview
Dependencies
Maintainers
1
Versions
1053
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-angular-dateinputs - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

4

dist/cdn/js/kendo-angular-dateinputs.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("rxjs/Observable"),require("rxjs/BehaviorSubject"),require("rxjs/Subject"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/map"),require("rxjs/add/operator/merge"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/do"),require("rxjs/add/operator/distinctUntilChanged"),require("rxjs/add/operator/debounceTime")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/forms","@progress/kendo-angular-intl","@angular/common","rxjs/Observable","rxjs/BehaviorSubject","rxjs/Subject","rxjs/add/observable/fromEvent","rxjs/add/operator/map","rxjs/add/operator/merge","rxjs/add/operator/filter","rxjs/add/operator/do","rxjs/add/operator/distinctUntilChanged","rxjs/add/operator/debounceTime"],e):"object"==typeof exports?exports.KendoAngularDateinputs=e(require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("rxjs/Observable"),require("rxjs/BehaviorSubject"),require("rxjs/Subject"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/map"),require("rxjs/add/operator/merge"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/do"),require("rxjs/add/operator/distinctUntilChanged"),require("rxjs/add/operator/debounceTime")):t.KendoAngularDateinputs=e(t["@angular/core"],t["@angular/forms"],t["@progress/kendo-angular-intl"],t["@angular/common"],t["rxjs/Observable"],t["rxjs/BehaviorSubject"],t["rxjs/Subject"],t["rxjs/add/observable/fromEvent"],t["rxjs/add/operator/map"],t["rxjs/add/operator/merge"],t["rxjs/add/operator/filter"],t["rxjs/add/operator/do"],t["rxjs/add/operator/distinctUntilChanged"],t["rxjs/add/operator/debounceTime"])}(this,function(t,e,n,i,o,r,a,s,u,c,l,d,p,h){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var i=n(1);e.CalendarComponent=i.CalendarComponent;var o=n(30);e.DateInputComponent=o.DateInputComponent;var r=n(33);e.CalendarModule=r.CalendarModule;var a=n(52);e.DateInputModule=a.DateInputModule;var s=n(53);e.DateInputsModule=s.DateInputsModule},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(3),s=n(4),u=n(23),c=n(25),l=n(26),d=n(27),p=n(28),h=n(29),f="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min",g="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max";e.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return y})},e.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:a.NG_VALIDATORS,useExisting:r.forwardRef(function(){return y})};var y=function(){function t(t,e,n){this.element=t,this.navigator=e,this.renderer=n,this.focusedDate=s.getDate(new Date),this.rangeValidation=!1,this.disabled=!1,this.tabIndex=0,this.valueChange=new r.EventEmitter,this.isActive=!1,this.cellUID=h.guid(),this._min=new Date(p.MIN_DATE),this._max=new Date(p.MAX_DATE),this.propagateChange=h.noop,this.propagateTouched=h.noop,this.minValidateFn=h.noop,this.maxValidateFn=h.noop}return Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=t||new Date(p.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=t||new Date(p.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.prevValue=s.cloneDate(t),this._value=s.cloneDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){this.propagateTouched(),this.isActive=!1},t.prototype.handleFocus=function(){this.isActive=!0},t.prototype.handleMousedown=function(t){t.preventDefault()},t.prototype.handleClick=function(){this.isActive||this.focus()},t.prototype.keydown=function(t){var e=h.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(t)),this.min,this.max);s.isEqual(this.focusedDate,e)||(this.focusedDate=e,t.preventDefault())},t.prototype.enter=function(t){this.disabled||(this.triggerChange(this.focusedDate),t.preventDefault())},t.prototype.ngOnChanges=function(t){this.verifySettings();var e=t.value&&!t.focusedDate,n=e?this.value:this.focusedDate;this.focusedDate=h.dateInRange(s.cloneDate(n||this.focusedDate),this.min,this.max),(t.min||t.max)&&(this.minValidateFn=this.rangeValidation?l.minValidator(this.min):h.noop,this.maxValidateFn=this.rangeValidation?d.maxValidator(this.max):h.noop)},t.prototype.focus=function(){this.element&&this.renderer.invokeElementMethod(this.element.nativeElement,"focus")},t.prototype.handleChange=function(t){this.disabled||(this.focusedDate=s.cloneDate(t)||this.focusedDate,this.triggerChange(t))},t.prototype.writeValue=function(t){this.focusedDate=h.dateInRange(s.cloneDate(t)||this.focusedDate,this.min,this.max),this.value=s.cloneDate(t)},t.prototype.registerOnChange=function(t){this.propagateChange=t},t.prototype.registerOnTouched=function(t){this.propagateTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.validate=function(t){return this.minValidateFn(t)||this.maxValidateFn(t)},t.prototype.triggerChange=function(t){s.isEqual(t,this.prevValue)||(this.value=t,this.valueChange.emit(s.cloneDate(t)),this.propagateChange(s.cloneDate(t)))},t.prototype.verifySettings=function(){if(r.isDevMode()&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+f+" and "+g+".")},t}();i([r.Input(),o("design:type",Date)],y.prototype,"focusedDate",void 0),i([r.Input(),o("design:type",Date),o("design:paramtypes",[Date])],y.prototype,"min",null),i([r.Input(),o("design:type",Date),o("design:paramtypes",[Date])],y.prototype,"max",null),i([r.Input(),o("design:type",Boolean)],y.prototype,"rangeValidation",void 0),i([r.Input(),o("design:type",Date),o("design:paramtypes",[Date])],y.prototype,"value",null),i([r.Input(),o("design:type",Boolean)],y.prototype,"disabled",void 0),i([r.Input(),o("design:type",Number)],y.prototype,"tabIndex",void 0),i([r.Output(),o("design:type",r.EventEmitter)],y.prototype,"valueChange",void 0),i([r.ContentChild(c.CellTemplateDirective),o("design:type",c.CellTemplateDirective)],y.prototype,"cellTemplate",void 0),i([r.HostBinding("attr.role"),o("design:type",String),o("design:paramtypes",[])],y.prototype,"widgetRole",null),i([r.HostBinding("class.k-widget"),r.HostBinding("class.k-calendar"),r.HostBinding("class.k-calendar-infinite"),o("design:type",Boolean),o("design:paramtypes",[])],y.prototype,"widgetClasses",null),i([r.HostBinding("attr.tabindex"),o("design:type",Number),o("design:paramtypes",[])],y.prototype,"calendarTabIndex",null),i([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-state-disabled"),o("design:type",Boolean),o("design:paramtypes",[])],y.prototype,"ariaDisabled",null),i([r.HostBinding("attr.aria-activedescendant"),o("design:type",String),o("design:paramtypes",[])],y.prototype,"ariaActivedescendant",null),i([r.HostListener("blur"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],y.prototype,"handleBlur",null),i([r.HostListener("focus"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],y.prototype,"handleFocus",null),i([r.HostListener("mousedown",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],y.prototype,"handleMousedown",null),i([r.HostListener("click"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],y.prototype,"handleClick",null),i([r.HostListener("keydown",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],y.prototype,"keydown",null),i([r.HostListener("keydown.enter",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],y.prototype,"enter",null),y=i([r.Component({providers:[e.CALENDAR_VALUE_ACCESSOR,e.CALENDAR_RANGE_VALIDATORS],selector:"kendo-calendar",template:'\n <kendo-calendar-monthview\n [isActive]="isActive"\n [cellTemplateRef]="cellTemplate?.templateRef"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [value]="value"\n (change)="handleChange($event)"\n >\n </kendo-calendar-monthview>\n '}),o("design:paramtypes",[r.ElementRef,u.NavigationService,r.Renderer])],y),e.CalendarComponent=y},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}i(n(5)),i(n(7)),i(n(9)),i(n(6)),i(n(10)),i(n(11)),i(n(13)),i(n(12)),i(n(14)),i(n(15)),i(n(16)),i(n(17)),i(n(18)),i(n(19)),i(n(20)),i(n(8)),i(n(21)),i(n(22))},function(t,e,n){"use strict";var i=n(6);e.addDays=function(t,e){var n=new Date(t);return n.setDate(n.getDate()+e),i.adjustDST(n,t.getHours())}},function(t,e){"use strict";e.adjustDST=function(t,e){var n=new Date(t);return 0===e&&23===n.getHours()&&n.setHours(n.getHours()+2),n}},function(t,e,n){"use strict";var i=n(6),o=n(8),r=12,a=function(t,n){return t.getMonth()!==n?o.lastDayOfMonth(e.addMonths(t,-1)):t};e.addMonths=function(t,e){var n=new Date(t),o=(n.getMonth()+e)%r,s=(r+o)%r;return n.setMonth(n.getMonth()+e),a(i.adjustDST(n,t.getHours()),s)}},function(t,e,n){"use strict";var i=n(5);e.lastDayOfMonth=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,1);return i.addDays(e,-1)}},function(t,e,n){"use strict";var i=n(5);e.addWeeks=function(t,e){return i.addDays(t,7*e)}},function(t,e){"use strict";e.cloneDate=function(t){return t?new Date(t):t}},function(t,e,n){"use strict";var i=n(12),o=n(6);e.dayOfWeek=function(t,e,n){void 0===n&&(n=i.Direction.Forward);var r=new Date(t),a=(e-r.getDay()+7*n)%7;return r.setDate(r.getDate()+a),o.adjustDST(r,t.getHours())}},function(t,e){"use strict";!function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"}(e.Direction||(e.Direction={}));e.Direction},function(t,e){"use strict";!function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.Day||(e.Day={}));e.Day},function(t,e,n){"use strict";var i=n(12),o=n(11);e.nextDayOfWeek=function(t,e){return o.dayOfWeek(t,e,i.Direction.Forward)}},function(t,e,n){"use strict";var i=n(12),o=n(11);e.prevDayOfWeek=function(t,e){return o.dayOfWeek(t,e,i.Direction.Backward)}},function(t,e,n){"use strict";var i=n(6);e.getDate=function(t){var e=0;return i.adjustDST(new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,0,0),e)}},function(t,e,n){"use strict";var i=n(13);e.firstDayInWeek=function(t,e){void 0===e&&(e=i.Day.Sunday);for(var n=new Date(t);n.getDay()!==e;)n.setDate(n.getDate()-1);return n}},function(t,e){"use strict";e.firstDayOfMonth=function(t){return new Date(t.getFullYear(),t.getMonth(),1)}},function(t,e){"use strict";e.isEqual=function(t,e){return t&&e&&t.getTime()===e.getTime()}},function(t,e,n){"use strict";var i=n(16),o=n(19);e.isEqualDate=function(t,e){return t&&e&&o.isEqual(i.getDate(t),i.getDate(e))}},function(t,e){"use strict";e.MS_PER_DAY=864e5},function(t,e,n){"use strict";var i=n(13),o=n(5),r=n(15),a=n(21),s=function(t,e){return e!==i.Day.Monday?o.addDays(r.prevDayOfWeek(t,e),4):o.addDays(t,4-(t.getDay()||7))},u=function(t,e){var n=new Date(t.getFullYear(),0,1,-6),i=s(t,e),o=i.getTime()-n.getTime(),r=Math.floor(o/a.MS_PER_DAY);return 1+Math.floor(r/7)};e.weekInYear=function(t,e){void 0===e&&(e=i.Day.Monday);var n=o.addDays(t,-7),r=o.addDays(t,7),a=u(t,e);return 0===a?u(n,e)+1:53===a&&u(r,e)>1?1:a}},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=n(2),r=n(24),a=n(4),s={33:r.Action.PrevView,34:r.Action.NextView,35:r.Action.LastInView,36:r.Action.FirstInView,37:r.Action.Left,38:r.Action.Up,39:r.Action.Right,40:r.Action.Down,"meta+38":r.Action.PrevView,"meta+40":r.Action.NextView},u=(l={},l[r.Action.Left]=function(t){return a.addDays(t,-1)},l[r.Action.Up]=function(t){return a.addWeeks(t,-1)},l[r.Action.Right]=function(t){return a.addDays(t,1)},l[r.Action.Down]=function(t){return a.addWeeks(t,1)},l[r.Action.PrevView]=function(t){return a.addMonths(t,-1)},l[r.Action.NextView]=function(t){return a.addMonths(t,1)},l[r.Action.FirstInView]=function(t){return a.firstDayOfMonth(t)},l[r.Action.LastInView]=function(t){return a.lastDayOfMonth(t)},l),c=function(){function t(){}return t.prototype.action=function(t){var e=""+(t.ctrlKey||t.metaKey?"meta+":"")+t.keyCode;return s[e]},t.prototype.move=function(t,e){var n=u[e];return n?n(t):t},t}();c=i([o.Injectable()],c),e.NavigationService=c;var l},function(t,e){"use strict";var n;!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView"}(n=e.Action||(e.Action={}))},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=function(){function t(t){this.templateRef=t}return t}();a=i([r.Directive({selector:"[kendoCalendarCellTemplate]"}),o("design:paramtypes",[r.TemplateRef])],a),e.CellTemplateDirective=a},function(t,e){"use strict";e.minValidator=function(t){return function(e){var n={minError:{minValue:t,value:e.value}};return e.value<t?n:null}}},function(t,e){"use strict";e.maxValidator=function(t){return function(e){var n={maxError:{maxValue:t,value:e.value}};return e.value>t?n:null}}},function(t,e){"use strict";e.MIN_DATE=new Date(1900,0,1),e.MAX_DATE=new Date(2099,11,31)},function(t,e,n){"use strict";var i=n(4),o=function(t,e){for(var n=[],i=t;i<e;i++)n.push(i);return n};e.range=o;var r=function(t,e){return void 0===e&&(e=[]),!!e.length&&i.firstDayOfMonth(e[0])<=t&&t<=i.lastDayOfMonth(e[e.length-1])};e.isInDatesArray=r;var a=function(t,e,n){return e<=t&&t<=n};e.isInRange=a;var s=function(t,e,n){return t<e?new Date(e):t>n?new Date(n):t};e.dateInRange=s;var u=function(){for(var t,e="",n=0;n<32;n++)t=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(e+="-"),e+=(12===n?4:16===n?3&t|8:t).toString(16);return e};e.guid=u;var c=function(t){};e.noop=c;var l=function(){return"undefined"!=typeof document};e.isDocumentAvailable=l;var d=function(t){return t?""+t.isFocused+t.isSelected+t.isWeekend+t.id:"null"};e.cellContextToString=d;var p=function(t){var e=function(e,n){return t[n]?e.concat(n):e};return Object.keys(t).reduce(e,[]).join(" ")};e.stringifyClassObject=p},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(26),s=n(27),u=n(31),c=n(3),l=n(32),d=p=function(){function t(t,e){this.intl=t,this.disabled=!1,this.title="",this.format="d",this.autoCorrect=!1,this.value=void 0,this.spinners=!1,this.valueChange=new r.EventEmitter,this.focus=new r.EventEmitter,this.blur=new r.EventEmitter,this.currentValue="",this.currentFormat="",this.knownParts="yMdhmsE",this.focused=!1,this.minValidateFn=null,this.maxValidateFn=null,this.dirty=!0,this.ngChange=function(t){},this.ngTouched=function(){},this.wrapper=e.nativeElement}return t.prototype.blurHandler=function(){this.ngTouched()},t.prototype.mousewheel=function(t){this.handleMouseWheel(t)},t.prototype.onmousewheel=function(t){this.handleMouseWheel(t)},t.prototype.mousescroll=function(t){this.handleMouseWheel(t)},Object.defineProperty(t.prototype,"widgetClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaMin",{get:function(){return this.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaMax",{get:function(){return this.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaValue",{get:function(){return this.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),t.prototype.keydown=function(t){if(!this.disabled)switch(t.keyCode){case u.Keys.down:t.preventDefault(),this.changeDatePartValue(-1);break;case u.Keys.up:t.preventDefault(),this.changeDatePartValue(1);break;case u.Keys.right:t.preventDefault(),this.switchDateSegment(1);break;case u.Keys.left:t.preventDefault(),this.switchDateSegment(-1);break;default:this.dirty=!0}},t.prototype.ngOnChanges=function(t){t.max&&(this.maxValidateFn=s.maxValidator(this.max)),t.min&&(this.minValidateFn=a.minValidator(this.min))},t.prototype.validate=function(t){var e=null;return this.minValidateFn&&(e=this.minValidateFn(t)),this.maxValidateFn&&!e&&(e=this.maxValidateFn(t)),e},t.prototype.ngOnInit=function(){this.value&&this.writeValue(this.value)},t.prototype.writeValue=function(t){this.autoCorrect&&t&&(this.max&&this.max<t&&(t=new Date(this.max)),this.min&&t&&t<this.min&&(t=new Date(this.min))),this.value=t,this.ngChange(t),this.value?(this.currentValue=this.intl.formatDate(this.value,this.format),this.currentFormat=this.intl.dateFormatString(this.value,this.format),this.dateInput.nativeElement.value=this.currentValue):this.currentFormat="",this.valueChange.emit(t)},t.prototype.registerOnChange=function(t){this.ngChange=t},t.prototype.registerOnTouched=function(t){this.ngTouched=t},t.prototype.changeDatePartValue=function(t){var e=this.caret(),n=this.currentFormat[e[0]],i=this.currentFormat[e[0]];e[0]>0&&(i=this.currentFormat[e[0]-1]);var o="";if(this.dirty||!this.value){this.knownParts.indexOf(n)>=0?o=n:this.knownParts.indexOf(i)>=0&&(o=i);var r=this.intl.parseDate(this.dateInput.nativeElement.value,this.format);this.writeValue(r),this.dirty=!1}else this.knownParts.indexOf(n)>=0?(this.modify(n,t),o=n):this.knownParts.indexOf(i)>=0&&(this.modify(i,t),o=i),this.writeValue(this.value);this.correctDateSegment(o)},t.prototype.increaseValue=function(){this.value&&!this.disabled&&(this.modifyDates(1),this.writeValue(this.value))},t.prototype.decreaseValue=function(){this.value&&!this.disabled&&(this.modifyDates(-1),this.writeValue(this.value))},t.prototype.switchDateSegment=function(t){for(var e=this.caret(),n=this.currentFormat[e[0]],i=e[0]+t;i>0&&i<this.currentFormat.length&&!(this.currentFormat[i]!==n&&this.knownParts.indexOf(this.currentFormat[i])>=0);)i+=t;for(var o=i;o>=0&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[i];)o+=t;i>o?this.caret(o+1,i+1):this.caret(i,o)},t.prototype.correctDateSegment=function(t){for(var e=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===t&&(n=i+1,e===-1&&(e=i));e<0&&(e=0),this.caret(e,n)},t.prototype.handleFocus=function(t){this.focused=!0,this.focus.emit(t)},t.prototype.handleBlur=function(t){this.dateInput.nativeElement.value.length||(this.value=void 0),this.focused=!1;var e=this.intl.parseDate(this.dateInput.nativeElement.value,this.format);this.writeValue(e),this.ngTouched(),this.blur.emit(t)},t.prototype.handlePaste=function(){},t.prototype.handleMouseWheel=function(t){!this.disabled&&this.focused&&(t=window.event||t,this.changeDatePartValue((t.wheelDelta||-t.detail)>0?1:-1),t.returnValue=!1,t.preventDefault&&t.preventDefault())},t.prototype.caret=function(t,e){void 0===e&&(e=t);var n=void 0!==t,i=[t],o=this.dateInput.nativeElement;if(!n||!this.disabled){try{void 0!==o.selectionStart&&(n?(o.focus(),o.setSelectionRange(t,e)):i=[o.selectionStart,o.selectionEnd])}catch(t){i=[]}return this.lastCaret=i,i}},t.prototype.modify=function(t,e){switch(t){case"y":this.modifyYears(e);break;case"M":this.modifyMonths(e);break;case"d":this.modifyDates(e);break;case"E":this.modifyDates(e);break;case"h":this.modifyHours(e);break;case"m":this.modifyMinutes(e);break;case"s":this.modifySeconds(e)}},t.prototype.modifyYears=function(t){this.value.setFullYear(this.value.getFullYear()+t)},t.prototype.modifyMonths=function(t){this.value.setMonth(this.value.getMonth()+t)},t.prototype.modifyDates=function(t){this.value.setDate(this.value.getDate()+t)},t.prototype.modifyHours=function(t){this.value.setHours(this.value.getHours()+t)},t.prototype.modifyMinutes=function(t){this.value.setMinutes(this.value.getMinutes()+t)},t.prototype.modifySeconds=function(t){this.value.setSeconds(this.value.getSeconds()+t)},t}();i([r.Input(),o("design:type",Boolean)],d.prototype,"disabled",void 0),i([r.Input(),o("design:type",String)],d.prototype,"title",void 0),i([r.Input(),o("design:type",String)],d.prototype,"format",void 0),i([r.Input(),o("design:type",Date)],d.prototype,"max",void 0),i([r.Input(),o("design:type",Date)],d.prototype,"min",void 0),i([r.Input(),o("design:type",Boolean)],d.prototype,"autoCorrect",void 0),i([r.Input(),o("design:type",Date)],d.prototype,"value",void 0),i([r.Input(),o("design:type",Boolean)],d.prototype,"spinners",void 0),i([r.Output(),o("design:type",r.EventEmitter)],d.prototype,"valueChange",void 0),i([r.Output(),o("design:type",r.EventEmitter)],d.prototype,"focus",void 0),i([r.Output(),o("design:type",r.EventEmitter)],d.prototype,"blur",void 0),i([r.ViewChild("dateInput"),o("design:type",r.ElementRef)],d.prototype,"dateInput",void 0),i([r.HostListener("blur"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],d.prototype,"blurHandler",null),i([r.HostListener("mousewheel",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],d.prototype,"mousewheel",null),i([r.HostListener("onmousewheel",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],d.prototype,"onmousewheel",null),i([r.HostListener("DOMMouseScroll",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],d.prototype,"mousescroll",null),i([r.HostBinding("class.k-widget"),o("design:type",Boolean),o("design:paramtypes",[])],d.prototype,"widgetClass",null),i([r.HostBinding("class.k-dateinput"),o("design:type",Boolean),o("design:paramtypes",[])],d.prototype,"dateInputClass",null),i([r.HostBinding("tabIndex"),o("design:type",Number),o("design:paramtypes",[])],d.prototype,"tabIndex",null),i([r.HostBinding("attr.aria-valuemin"),o("design:type",Date),o("design:paramtypes",[])],d.prototype,"ariaMin",null),i([r.HostBinding("attr.aria-valuemax"),o("design:type",Date),o("design:paramtypes",[])],d.prototype,"ariaMax",null),i([r.HostBinding("attr.aria-valuenow"),o("design:type",Date),o("design:paramtypes",[])],d.prototype,"ariaValue",null),i([r.HostBinding("class.k-state-disabled"),o("design:type",Boolean),o("design:paramtypes",[])],d.prototype,"disabledClass",null),i([r.HostListener("keydown",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],d.prototype,"keydown",null),d=p=i([r.Component({providers:[{provide:c.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return p}),multi:!0},{provide:c.NG_VALIDATORS,useExisting:r.forwardRef(function(){return p}),multi:!0}],selector:"kendo-dateinput",template:'\n <span class="k-dateinput-wrap">\n <input class="k-input"\n [title]="title"\n [attr.disabled]="disabled ? \'disabled\' : undefined"\n [attr.aria-label]="title"\n (paste)="handlePaste()"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)"\n #dateInput />\n <span *ngIf="spinners" class="k-select">\n <span (click)="increaseValue()" class="k-link k-link-increase">\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span (click)="decreaseValue()" class="k-link k-link-decrease">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),o("design:paramtypes",[l.IntlService,r.ElementRef])],d),e.DateInputComponent=d;var p},function(t,e){"use strict";var n;!function(t){t[t.backspace=8]="backspace",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.alt=18]="alt",t[t.space=32]="space",t[t["page up"]=33]="page up",t[t["page down"]=34]="page down",t[t.end=35]="end",t[t.home=36]="home",t[t.left=37]="left",t[t.up=38]="up",t[t.right=39]="right",t[t.down=40]="down"}(n=e.Keys||(e.Keys={}))},function(t,e){t.exports=n},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=n(2),r=n(34),a=n(32),s=n(1),u=n(35),c=n(36),l=n(51),d=n(25),p=n(38),h=n(23),f=n(37),g=[s.CalendarComponent,u.FooterComponent,c.MonthViewComponent,l.MonthComponent,d.CellTemplateDirective],y=[p.MonthViewService,h.NavigationService,f.CalendarDOMService],m=function(){function t(){}return t}();m=i([o.NgModule({declarations:[g],exports:[g],imports:[r.CommonModule,a.IntlModule],providers:y})],m),e.CalendarModule=m},function(t,e){t.exports=i},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=n(2),r=function(){function t(){}return t}();r=i([o.Component({selector:"kendo-calendar-footer",template:'\n <div class="k-footer">\n <a href="#" class="k-link k-nav-today" title="Thursday, November 10, 2016">Thursday, November 10, 2016</a>\n </div>\n '})],r),e.FooterComponent=r},function(t,e,n){"use strict";function i(t){return new p.ScrollerService(t)}var o=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}},s=n(2),u=n(28),c=n(37),l=n(38),d=n(39),p=n(40),h=n(41),f=n(43);n(44),n(45),n(46),n(47),n(48),n(49),n(50);var g=n(4),y=n(29);e.SCROLLER_FACTORY_TOKEN=new s.OpaqueToken("calendar-scroll-service-factory"),e.DEFAULT_SCROLLER_FACTORY=i;var m=function(){function t(t,e,n,i){this.dom=e,this.service=n,this.renderer=i,this.isActive=!0,this.min=new Date(u.MIN_DATE),this.max=new Date(u.MAX_DATE),this.change=new s.EventEmitter,this.dates=[],this.dispatcher=new f.Subject,this.shouldScrollToBottom=!1,this.shouldScrollToFocusedView=!1,this.minViews=1,this.take=7,this.scroller=t(this.dispatcher)}return Object.defineProperty(t.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this.focusedDate;this.title=this.service.title(e),this.skip=this.months(e,this.min);var n=this.months(this.max,this.min)+1,i=this.total&&this.total!==n;if(this.total=n,i&&this.init(),i||!y.isInDatesArray(e,this.dates)){var o=this.months(this.max,this.focusedDate)<this.minViews,r=o?g.addMonths(this.focusedDate,-1):this.focusedDate,a=y.dateInRange(r,this.min,this.max),s=Math.min(this.total-this.months(a,this.min),this.take);this.dates=this.viewDates(g.firstDayOfMonth(a),s),this.shouldScrollToBottom=y.isInRange(this.focusedDate,g.firstDayOfMonth(this.max),this.max)}var u=!!t.focusedDate&&!this.shouldScrollToBottom;this.shouldScrollToFocusedView=u||this.isFocusedDateVisible()},t.prototype.ngOnInit=function(){this.init()},t.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},t.prototype.ngAfterViewInit=function(){this.scrollToFocusedView(),this.containerScrollSubscription=h.Observable.fromEvent(this.container.nativeElement,"scroll").map(function(t){return t.target}).subscribe(this.dispatcher)},t.prototype.ngAfterViewChecked=function(){this.shouldScrollToFocusedView&&this.scrollToFocusedView(),this.shouldScrollToBottom&&this.scrollToBottom()},t.prototype.trackByDates=function(t,e){return e.getFullYear()+"-"+e.getMonth()},t.prototype.init=function(){this.rowHeightService=new d.RowHeightService(this.total,this.dom.viewHeight(),0),this.totalHeight=this.rowHeightService.totalHeight();var t=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total);this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=t.filter(function(t){return t instanceof p.PageAction}).subscribe(this.pageChange.bind(this)).add(t.filter(function(t){return t instanceof p.ScrollAction}).subscribe(this.scroll.bind(this)))},t.prototype.pageChange=function(t){var e=t.skip,n=Math.min(this.total-e,this.take);this.dates=this.viewDates(g.addMonths(this.min,e),n)},t.prototype.scroll=function(t){var e=t.offset;this.style={transform:"translateY("+e+"px)"}},t.prototype.scrollToFocusedView=function(){this.shouldScrollToFocusedView=!1,this.renderer.setElementProperty(this.container.nativeElement,"scrollTop",this.rowHeightService.offset(this.skip));
},t.prototype.scrollToBottom=function(){this.shouldScrollToBottom=!1,this.renderer.setElementProperty(this.container.nativeElement,"scrollTop",this.rowHeightService.totalHeight())},t.prototype.handleDateChange=function(t){this.change.emit(t)},t.prototype.isFocusedDateVisible=function(){if(!this.container||!this.rowHeightService)return!1;var t=this.container.nativeElement.scrollTop,e=this.rowHeightService.offset(this.skip),n=e+this.rowHeightService.height(this.skip);return t>=e&&t<=n},t.prototype.viewDates=function(t,e){return y.range(0,e).map(function(e){return g.addMonths(t,e)})},t.prototype.months=function(t,e){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},t}();o([s.Input(),r("design:type",s.TemplateRef)],m.prototype,"cellTemplateRef",void 0),o([s.Input(),r("design:type",String)],m.prototype,"cellUID",void 0),o([s.Input(),r("design:type",Date)],m.prototype,"focusedDate",void 0),o([s.Input(),r("design:type",Boolean)],m.prototype,"isActive",void 0),o([s.Input(),r("design:type",Date)],m.prototype,"min",void 0),o([s.Input(),r("design:type",Date)],m.prototype,"max",void 0),o([s.Input(),r("design:type",Date)],m.prototype,"value",void 0),o([s.Output(),r("design:type",s.EventEmitter)],m.prototype,"change",void 0),o([s.ViewChild("container"),r("design:type",s.ElementRef)],m.prototype,"container",void 0),o([s.HostBinding("class.k-calendar-monthview"),r("design:type",Boolean),r("design:paramtypes",[])],m.prototype,"getComponentClass",null),m=o([s.Component({providers:[{provide:e.SCROLLER_FACTORY_TOKEN,useValue:i}],selector:"kendo-calendar-monthview",template:'\n <table class="k-calendar-weekdays">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <thead>\n <tr>\n <th *ngFor="let name of service.weekNames()">{{name}}</th>\n </tr>\n </thead>\n </table>\n <div #container class="k-content k-scrollable">\n <table [ngStyle]="style">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <tbody kendoCalendarMonth *ngFor="let date of dates;trackBy: trackByDates"\n role="rowgroup"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [viewDate]="date"\n [focusedDate]="focusedDate"\n [selectedDate]="value"\n [templateRef]="cellTemplateRef"\n (change)="handleDateChange($event)"\n ></tbody>\n </table>\n <div class="k-scrollable-placeholder" [style.height.px]="totalHeight"></div>\n </div>\n '}),a(0,s.Inject(e.SCROLLER_FACTORY_TOKEN)),r("design:paramtypes",[Object,c.CalendarDOMService,l.MonthViewService,s.Renderer])],m),e.MonthViewComponent=m},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=n(2),r=n(29),a=function(){function t(){}return t.prototype.viewHeight=function(){if(!r.isDocumentAvailable())return 0;var t=this.calendarElement(),e=this.monthViewElement(),n=this.monthContentElement(),i=this.tableElement();n.appendChild(i),e.appendChild(n),t.appendChild(e),document.body.appendChild(t);var o=i.children[0].getBoundingClientRect().height;return document.body.removeChild(t),o},t.prototype.calendarElement=function(){var t=document.createElement("div");return t.className="k-widget k-calendar k-calendar-infinite",t.style.left="-10000px",t},t.prototype.monthViewElement=function(){var t=document.createElement("div");return t.className="k-calendar-monthview",t},t.prototype.monthContentElement=function(){var t=document.createElement("div");return t.className="k-content k-scrollable",t},t.prototype.tableElement=function(){var t=document.createElement("table");return t.innerHTML="\n <tbody>\n <tr><th>1</th></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n </tbody>\n ",t},t}();a=i([o.Injectable()],a),e.CalendarDOMService=a},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(4),s=n(32),u=n(29),c=[[]],l=7,d=6,p=6,h=0,f=function(){function t(t){this._intlService=t}return t.prototype.prev=function(t){return a.addMonths(t,-1)},t.prototype.next=function(t){return a.addMonths(t,1)},t.prototype.dayValue=function(t){return t?t.getDate().toString():""},t.prototype.title=function(t){return this.abbrMonthNames()[t.getMonth()]+" "+t.getFullYear()},t.prototype.viewData=function(t){var e=this,n=t.cellUID,i=t.focusedDate,o=t.max,r=t.min,s=t.selectedDate,p=t.viewDate;if(!p)return c;var h=a.firstDayOfMonth(p),f=a.lastDayOfMonth(p),g=-1,y=a.dayOfWeek(h,this._intlService.firstDay(),g),m=u.range(0,l);return u.range(0,d).map(function(t){var u=a.addDays(y,7*t);return m.map(function(t){var c=a.addDays(u,t),l=c<h||c>f,d=c<r||c>o;return l||d?null:{id:""+n+c.getTime(),isFocused:e.isEqual(c,i),isSelected:e.isEqual(c,s),isWeekend:e.isWeekend(c),value:c}})})},t.prototype.weekNumber=function(t){return a.weekInYear(t,this._intlService.firstDay())},t.prototype.isWeekend=function(t){var e=t.getDay();return e===p||e===h},t.prototype.isEqual=function(t,e){return!(!t||!e)&&a.getDate(t).getTime()===a.getDate(e).getTime()},t.prototype.weekNames=function(){return this._intlService.dateFormatNames({nameType:"short",type:"days"})},t.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},t}();f=i([r.Injectable(),o("design:paramtypes",[s.IntlService])],f),e.MonthViewService=f},function(t,e){"use strict";var n=function(t,e,n){return t.slice(0,e+1).concat(t.slice(e+1).map(function(t){return t+n}))},i=function(){function t(t,e,n){void 0===t&&(t=0),this.total=t,this.rowHeight=e,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,o=0;o<t;o++)this.offsets.push(i),i+=e,this.heights.push(e)}return t.prototype.height=function(t){return this.heights[t]},t.prototype.expandDetail=function(t){this.height(t)===this.rowHeight&&this.updateRowHeight(t,this.detailRowHeight)},t.prototype.collapseDetail=function(t){this.height(t)>this.rowHeight&&this.updateRowHeight(t,this.detailRowHeight*-1)},t.prototype.index=function(t){if(!(t<0)){var e=this.offsets.reduce(function(e,n,i){return void 0!==e?e:n===t?i:n>t?i-1:void 0},void 0);return void 0===e?this.total-1:e}},t.prototype.offset=function(t){return this.offsets[t]},t.prototype.totalHeight=function(){return this.heights.reduce(function(t,e){return t+e},0)},t.prototype.updateRowHeight=function(t,e){this.heights[t]+=e,this.offsets=n(this.offsets,t,e)},t}();e.RowHeightService=i},function(t,e,n){"use strict";var i=n(41),o=n(42),r=function(){function t(t){this.offset=t}return t}();e.ScrollAction=r;var a=function(){function t(t){this.skip=t}return t}();e.PageAction=a;var s=function(){function t(t){this.scrollObservable=t,this.firstLoaded=0}return t.prototype.create=function(t,e,n,a){var s=this;this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScrollTop=0;var u=new o.BehaviorSubject(new r(this.rowHeightService.offset(e)));return i.Observable.create(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(t){return u.next(t)}),u},t.prototype.destroy=function(){this.unsubscribe()},t.prototype.onScroll=function(t,e){var n=t.scrollTop,i=t.offsetHeight;if(this.lastScrollTop!==n){var o=this.lastScrollTop>=n;this.lastScrollTop=n;var s=this.rowHeightService.index(n),u=this.rowHeightService.offset(s),c=this.rowHeightService.index(n+i);if(!o&&c>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=s,e.next(new r(u)),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),e.next(new a(this.firstLoaded))),o&&s<=this.firstLoaded){var l=Math.floor(.5*this.take);this.firstLoaded=Math.max(s-l,0),e.next(new r(this.rowHeightService.offset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),e.next(new a(this.firstLoaded))}}},t.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=void 0)},t}();e.ScrollerService=s},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e){t.exports=u},function(t,e){t.exports=c},function(t,e){t.exports=l},function(t,e){t.exports=d},function(t,e){t.exports=p},function(t,e){t.exports=h},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(38),s=n(32),u=n(4),c=n(29),l=function(){function t(t,e){this.service=t,this.intl=e,this.isActive=!0,this.showWeekNumbers=!1,this.change=new r.EventEmitter,this.today=u.getDate(new Date)}return t.prototype.ngOnChanges=function(t){this.viewData=this.service.viewData({cellUID:this.cellUID,focusedDate:this.focusedDate,max:this.max,min:this.min,selectedDate:this.selectedDate,viewDate:this.viewDate}),this.title=this.service.title(this.viewDate)},t.prototype.handleClick=function(t){this.change.emit(t.value)},t.prototype.trackRow=function(t,e){return e.reduce(function(t,e){return t+c.cellContextToString(e)},"")},t.prototype.trackCell=function(t,e){return c.cellContextToString(e)},t.prototype.firstDate=function(t){for(var e=0,n=t[e];!n&&e<t.length;)n=t[++e];return n?n.value:null},t.prototype.getStyles=function(t){return c.stringifyClassObject({"k-state-focused":this.isActive&&t.isFocused,"k-state-selected":t.isSelected,"k-today":u.isEqual(t.value,this.today),"k-weekend":t.isWeekend})},t}();i([r.Input(),o("design:type",Boolean)],l.prototype,"isActive",void 0),i([r.Input(),o("design:type",String)],l.prototype,"cellUID",void 0),i([r.Input(),o("design:type",Date)],l.prototype,"focusedDate",void 0),i([r.Input(),o("design:type",Date)],l.prototype,"selectedDate",void 0),i([r.Input(),o("design:type",Date)],l.prototype,"viewDate",void 0),i([r.Input(),o("design:type",Date)],l.prototype,"min",void 0),i([r.Input(),o("design:type",Date)],l.prototype,"max",void 0),i([r.Input(),o("design:type",Boolean)],l.prototype,"showWeekNumbers",void 0),i([r.Input(),o("design:type",Number)],l.prototype,"viewIndex",void 0),i([r.Input(),o("design:type",r.TemplateRef)],l.prototype,"templateRef",void 0),i([r.Output(),o("design:type",r.EventEmitter)],l.prototype,"change",void 0),l=i([r.Component({selector:"[kendoCalendarMonth]",template:'\n <tr role="row"><th scope="col" [colSpan]="!showWeekNumbers ? 7 : 8">{{title}}</th></tr>\n <tr *ngFor="let row of viewData;trackBy:trackRow" role="row">\n <template [ngIf]="showWeekNumbers">\n <td *ngIf="!firstDate(row)">&nbsp;</td>\n <td *ngIf="firstDate(row)">{{service.weekNumber(firstDate(row))}}</td>\n </template>\n <template ngFor [ngForOf]="row" let-cellContext [ngForTrackBy]="trackCell">\n <td *ngIf="!cellContext">&nbsp;</td>\n <td *ngIf="cellContext"\n role="gridcell"\n [attr.id]="cellContext.id"\n [attr.aria-selected]="cellContext.isSelected"\n [ngClass]="getStyles(cellContext)"\n [title]="intl.formatDate(cellContext.value, \'D\')"\n (click)="handleClick(cellContext)"\n >\n <span class="k-link">\n <template [ngIf]="!templateRef">{{service.dayValue(cellContext.value)}}</template>\n <template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngOutletContext]="{ $implicit: cellContext.value, cellContext: cellContext }"\n ></template>\n </span>\n </td>\n </template>\n </tr>\n '}),o("design:paramtypes",[a.MonthViewService,s.IntlService])],l),e.MonthComponent=l},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=n(2),r=n(30),a=n(34),s=[r.DateInputComponent],u=function(){function t(){}return t}();u=i([o.NgModule({declarations:[s],exports:[s],imports:[a.CommonModule]})],u),e.DateInputModule=u},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=n(2),r=n(33),a=n(52),s=n(32),u=[r.CalendarModule,a.DateInputModule],c=function(){function t(){}return t}();c=i([o.NgModule({exports:u,imports:u,providers:[{provide:s.IntlService,useClass:s.CldrIntlService}]})],c),e.DateInputsModule=c}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("rxjs/Observable"),require("rxjs/BehaviorSubject"),require("rxjs/Subject"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/map"),require("rxjs/add/operator/merge"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/do"),require("rxjs/add/operator/distinctUntilChanged"),require("rxjs/add/operator/debounceTime")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/forms","@progress/kendo-angular-intl","@angular/common","rxjs/Observable","rxjs/BehaviorSubject","rxjs/Subject","rxjs/add/observable/fromEvent","rxjs/add/operator/map","rxjs/add/operator/merge","rxjs/add/operator/filter","rxjs/add/operator/do","rxjs/add/operator/distinctUntilChanged","rxjs/add/operator/debounceTime"],e):"object"==typeof exports?exports.KendoAngularDateinputs=e(require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-intl"),require("@angular/common"),require("rxjs/Observable"),require("rxjs/BehaviorSubject"),require("rxjs/Subject"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/map"),require("rxjs/add/operator/merge"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/do"),require("rxjs/add/operator/distinctUntilChanged"),require("rxjs/add/operator/debounceTime")):t.KendoAngularDateinputs=e(t["@angular/core"],t["@angular/forms"],t["@progress/kendo-angular-intl"],t["@angular/common"],t["rxjs/Observable"],t["rxjs/BehaviorSubject"],t["rxjs/Subject"],t["rxjs/add/observable/fromEvent"],t["rxjs/add/operator/map"],t["rxjs/add/operator/merge"],t["rxjs/add/operator/filter"],t["rxjs/add/operator/do"],t["rxjs/add/operator/distinctUntilChanged"],t["rxjs/add/operator/debounceTime"])}(this,function(t,e,n,i,o,r,a,s,c,u,l,d,p,h){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";var i=n(1);e.CalendarComponent=i.CalendarComponent;var o=n(30);e.DateInputComponent=o.DateInputComponent;var r=n(33);e.CalendarModule=r.CalendarModule;var a=n(52);e.DateInputModule=a.DateInputModule;var s=n(53);e.DateInputsModule=s.DateInputsModule},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(3),s=n(4),c=n(23),u=n(25),l=n(26),d=n(27),p=n(28),h=n(29),f="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min",y="http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max";e.CALENDAR_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return g})},e.CALENDAR_RANGE_VALIDATORS={multi:!0,provide:a.NG_VALIDATORS,useExisting:r.forwardRef(function(){return g})};var g=function(){function t(t,e,n){this.element=t,this.navigator=e,this.renderer=n,this.focusedDate=s.getDate(new Date),this.rangeValidation=!1,this.disabled=!1,this.tabIndex=0,this.valueChange=new r.EventEmitter,this.isActive=!1,this.cellUID=h.guid(),this._min=new Date(p.MIN_DATE),this._max=new Date(p.MAX_DATE),this.propagateChange=h.noop,this.propagateTouched=h.noop,this.minValidateFn=h.noop,this.maxValidateFn=h.noop}return Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=t||new Date(p.MIN_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=t||new Date(p.MAX_DATE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.prevValue=s.cloneDate(t),this._value=s.cloneDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetRole",{get:function(){return"grid"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calendarTabIndex",{get:function(){return this.disabled?void 0:this.tabIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaActivedescendant",{get:function(){return this.cellUID+this.focusedDate.getTime()},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){this.propagateTouched(),this.isActive=!1},t.prototype.handleFocus=function(){this.isActive=!0},t.prototype.handleMousedown=function(t){t.preventDefault()},t.prototype.handleClick=function(){this.isActive||this.focus()},t.prototype.keydown=function(t){var e=h.dateInRange(this.navigator.move(this.focusedDate,this.navigator.action(t)),this.min,this.max);s.isEqual(this.focusedDate,e)||(this.focusedDate=e,t.preventDefault())},t.prototype.enter=function(t){this.disabled||(this.triggerChange(this.focusedDate),t.preventDefault())},t.prototype.ngOnChanges=function(t){this.verifySettings();var e=t.value&&!t.focusedDate,n=e?this.value:this.focusedDate;this.focusedDate=h.dateInRange(s.cloneDate(n||this.focusedDate),this.min,this.max),(t.min||t.max)&&(this.minValidateFn=this.rangeValidation?l.minValidator(this.min):h.noop,this.maxValidateFn=this.rangeValidation?d.maxValidator(this.max):h.noop)},t.prototype.focus=function(){this.element&&this.renderer.invokeElementMethod(this.element.nativeElement,"focus")},t.prototype.handleChange=function(t){this.disabled||(this.focusedDate=s.cloneDate(t)||this.focusedDate,this.triggerChange(t))},t.prototype.writeValue=function(t){this.focusedDate=h.dateInRange(s.cloneDate(t)||this.focusedDate,this.min,this.max),this.value=s.cloneDate(t)},t.prototype.registerOnChange=function(t){this.propagateChange=t},t.prototype.registerOnTouched=function(t){this.propagateTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.validate=function(t){return this.minValidateFn(t)||this.maxValidateFn(t)},t.prototype.triggerChange=function(t){s.isEqual(t,this.prevValue)||(this.value=t,this.valueChange.emit(s.cloneDate(t)),this.propagateChange(s.cloneDate(t)))},t.prototype.verifySettings=function(){if(r.isDevMode()&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+f+" and "+y+".")},i([r.Input(),o("design:type",Date)],t.prototype,"focusedDate",void 0),i([r.Input(),o("design:type",Date),o("design:paramtypes",[Date])],t.prototype,"min",null),i([r.Input(),o("design:type",Date),o("design:paramtypes",[Date])],t.prototype,"max",null),i([r.Input(),o("design:type",Boolean)],t.prototype,"rangeValidation",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"value",null),i([r.Input(),o("design:type",Boolean)],t.prototype,"disabled",void 0),i([r.Input(),o("design:type",Number)],t.prototype,"tabIndex",void 0),i([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"valueChange",void 0),i([r.ContentChild(u.CellTemplateDirective),o("design:type",u.CellTemplateDirective)],t.prototype,"cellTemplate",void 0),i([r.HostBinding("attr.role"),o("design:type",String)],t.prototype,"widgetRole",null),i([r.HostBinding("class.k-widget"),r.HostBinding("class.k-calendar"),r.HostBinding("class.k-calendar-infinite"),o("design:type",Boolean)],t.prototype,"widgetClasses",null),i([r.HostBinding("attr.tabindex"),o("design:type",Number)],t.prototype,"calendarTabIndex",null),i([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-state-disabled"),o("design:type",Boolean)],t.prototype,"ariaDisabled",null),i([r.HostBinding("attr.aria-activedescendant"),o("design:type",String)],t.prototype,"ariaActivedescendant",null),i([r.HostListener("blur"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"handleBlur",null),i([r.HostListener("focus"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"handleFocus",null),i([r.HostListener("mousedown",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"handleMousedown",null),i([r.HostListener("click"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"handleClick",null),i([r.HostListener("keydown",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"keydown",null),i([r.HostListener("keydown.enter",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"enter",null),t=i([r.Component({providers:[e.CALENDAR_VALUE_ACCESSOR,e.CALENDAR_RANGE_VALIDATORS],selector:"kendo-calendar",template:'\n <kendo-calendar-monthview\n [isActive]="isActive"\n [cellTemplateRef]="cellTemplate?.templateRef"\n [cellUID]="cellUID"\n [focusedDate]="focusedDate"\n [min]="min"\n [max]="max"\n [value]="value"\n (change)="handleChange($event)"\n >\n </kendo-calendar-monthview>\n '}),o("design:paramtypes",[r.ElementRef,c.NavigationService,r.Renderer])],t)}();e.CalendarComponent=g},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}i(n(5)),i(n(7)),i(n(9)),i(n(6)),i(n(10)),i(n(11)),i(n(13)),i(n(12)),i(n(14)),i(n(15)),i(n(16)),i(n(17)),i(n(18)),i(n(19)),i(n(20)),i(n(8)),i(n(21)),i(n(22))},function(t,e,n){"use strict";var i=n(6);e.addDays=function(t,e){var n=new Date(t);return n.setDate(n.getDate()+e),i.adjustDST(n,t.getHours())}},function(t,e){"use strict";e.adjustDST=function(t,e){var n=new Date(t);return 0===e&&23===n.getHours()&&n.setHours(n.getHours()+2),n}},function(t,e,n){"use strict";var i=n(6),o=n(8),r=12,a=function(t,n){return t.getMonth()!==n?o.lastDayOfMonth(e.addMonths(t,-1)):t};e.addMonths=function(t,e){var n=new Date(t),o=(n.getMonth()+e)%r,s=(r+o)%r;return n.setMonth(n.getMonth()+e),a(i.adjustDST(n,t.getHours()),s)}},function(t,e,n){"use strict";var i=n(5);e.lastDayOfMonth=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,1);return i.addDays(e,-1)}},function(t,e,n){"use strict";var i=n(5);e.addWeeks=function(t,e){return i.addDays(t,7*e)}},function(t,e){"use strict";e.cloneDate=function(t){return t?new Date(t):t}},function(t,e,n){"use strict";var i=n(12),o=n(6);e.dayOfWeek=function(t,e,n){void 0===n&&(n=i.Direction.Forward);var r=new Date(t),a=(e-r.getDay()+7*n)%7;return r.setDate(r.getDate()+a),o.adjustDST(r,t.getHours())}},function(t,e){"use strict";!function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"}(e.Direction||(e.Direction={}));e.Direction},function(t,e){"use strict";!function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.Day||(e.Day={}));e.Day},function(t,e,n){"use strict";var i=n(12),o=n(11);e.nextDayOfWeek=function(t,e){return o.dayOfWeek(t,e,i.Direction.Forward)}},function(t,e,n){"use strict";var i=n(12),o=n(11);e.prevDayOfWeek=function(t,e){return o.dayOfWeek(t,e,i.Direction.Backward)}},function(t,e,n){"use strict";var i=n(6);e.getDate=function(t){var e=0;return i.adjustDST(new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,0,0),e)}},function(t,e,n){"use strict";var i=n(13);e.firstDayInWeek=function(t,e){void 0===e&&(e=i.Day.Sunday);for(var n=new Date(t);n.getDay()!==e;)n.setDate(n.getDate()-1);return n}},function(t,e){"use strict";e.firstDayOfMonth=function(t){return new Date(t.getFullYear(),t.getMonth(),1)}},function(t,e){"use strict";e.isEqual=function(t,e){return t&&e&&t.getTime()===e.getTime()}},function(t,e,n){"use strict";var i=n(16),o=n(19);e.isEqualDate=function(t,e){return t&&e&&o.isEqual(i.getDate(t),i.getDate(e))}},function(t,e){"use strict";e.MS_PER_DAY=864e5},function(t,e,n){"use strict";var i=n(13),o=n(5),r=n(15),a=n(21),s=function(t,e){return e!==i.Day.Monday?o.addDays(r.prevDayOfWeek(t,e),4):o.addDays(t,4-(t.getDay()||7))},c=function(t,e){var n=new Date(t.getFullYear(),0,1,-6),i=s(t,e),o=i.getTime()-n.getTime(),r=Math.floor(o/a.MS_PER_DAY);return 1+Math.floor(r/7)};e.weekInYear=function(t,e){void 0===e&&(e=i.Day.Monday);var n=o.addDays(t,-7),r=o.addDays(t,7),a=c(t,e);return 0===a?c(n,e)+1:53===a&&c(r,e)>1?1:a}},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(24),s=n(4),c={33:a.Action.PrevView,34:a.Action.NextView,35:a.Action.LastInView,36:a.Action.FirstInView,37:a.Action.Left,38:a.Action.Up,39:a.Action.Right,40:a.Action.Down,"meta+38":a.Action.PrevView,"meta+40":a.Action.NextView},u=(d={},d[a.Action.Left]=function(t){return s.addDays(t,-1)},d[a.Action.Up]=function(t){return s.addWeeks(t,-1)},d[a.Action.Right]=function(t){return s.addDays(t,1)},d[a.Action.Down]=function(t){return s.addWeeks(t,1)},d[a.Action.PrevView]=function(t){return s.addMonths(t,-1)},d[a.Action.NextView]=function(t){return s.addMonths(t,1)},d[a.Action.FirstInView]=function(t){return s.firstDayOfMonth(t)},d[a.Action.LastInView]=function(t){return s.lastDayOfMonth(t)},d),l=function(){function t(){}return t.prototype.action=function(t){var e=""+(t.ctrlKey||t.metaKey?"meta+":"")+t.keyCode;return c[e]},t.prototype.move=function(t,e){var n=u[e];return n?n(t):t},t=i([r.Injectable(),o("design:paramtypes",[])],t)}();e.NavigationService=l;var d},function(t,e){"use strict";!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Up=2]="Up",t[t.Down=3]="Down",t[t.PrevView=4]="PrevView",t[t.NextView=5]="NextView",t[t.FirstInView=6]="FirstInView",t[t.LastInView=7]="LastInView"}(e.Action||(e.Action={}));e.Action},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=function(){function t(t){this.templateRef=t}return t=i([r.Directive({selector:"[kendoCalendarCellTemplate]"}),o("design:paramtypes",[r.TemplateRef])],t)}();e.CellTemplateDirective=a},function(t,e){"use strict";e.minValidator=function(t){return function(e){var n={minError:{minValue:t,value:e.value}};return e.value<t?n:null}}},function(t,e){"use strict";e.maxValidator=function(t){return function(e){var n={maxError:{maxValue:t,value:e.value}};return e.value>t?n:null}}},function(t,e){"use strict";e.MIN_DATE=new Date(1900,0,1),e.MAX_DATE=new Date(2099,11,31)},function(t,e,n){"use strict";var i=n(4),o=function(t,e){for(var n=[],i=t;i<e;i++)n.push(i);return n};e.range=o;var r=function(t,e){return void 0===e&&(e=[]),!!e.length&&i.firstDayOfMonth(e[0])<=t&&t<=i.lastDayOfMonth(e[e.length-1])};e.isInDatesArray=r;var a=function(t,e,n){return e<=t&&t<=n};e.isInRange=a;var s=function(t,e,n){return t<e?new Date(e):t>n?new Date(n):t};e.dateInRange=s;var c=function(){for(var t,e="",n=0;n<32;n++)t=16*Math.random()|0,8!==n&&12!==n&&16!==n&&20!==n||(e+="-"),e+=(12===n?4:16===n?3&t|8:t).toString(16);return e};e.guid=c;var u=function(t){};e.noop=u;var l=function(){return"undefined"!=typeof document};e.isDocumentAvailable=l;var d=function(t){return t?""+t.isFocused+t.isSelected+t.isWeekend+t.id:"null"};e.cellContextToString=d;var p=function(t){var e=function(e,n){return t[n]?e.concat(n):e};return Object.keys(t).reduce(e,[]).join(" ")};e.stringifyClassObject=p},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(26),s=n(27),c=n(31),u=n(3),l=n(32),d=function(){function t(t,e){this.intl=t,this.disabled=!1,this.title="",this.format="d",this.autoCorrect=!1,this.value=void 0,this.spinners=!1,this.valueChange=new r.EventEmitter,this.focus=new r.EventEmitter,this.blur=new r.EventEmitter,this.currentValue="",this.currentFormat="",this.knownParts="yMdhmsE",this.focused=!1,this.minValidateFn=null,this.maxValidateFn=null,this.dirty=!0,this.ngChange=function(t){},this.ngTouched=function(){},this.wrapper=e.nativeElement}return t.prototype.blurHandler=function(){this.ngTouched()},t.prototype.mousewheel=function(t){this.handleMouseWheel(t)},t.prototype.onmousewheel=function(t){this.handleMouseWheel(t)},t.prototype.mousescroll=function(t){this.handleMouseWheel(t)},Object.defineProperty(t.prototype,"widgetClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateInputClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaMin",{get:function(){return this.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaMax",{get:function(){return this.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaValue",{get:function(){return this.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),t.prototype.keydown=function(t){if(!this.disabled)switch(t.keyCode){case c.Keys.down:t.preventDefault(),this.changeDatePartValue(-1);break;case c.Keys.up:t.preventDefault(),this.changeDatePartValue(1);break;case c.Keys.right:t.preventDefault(),this.switchDateSegment(1);break;case c.Keys.left:t.preventDefault(),this.switchDateSegment(-1);break;default:this.dirty=!0}},t.prototype.ngOnChanges=function(t){t.max&&(this.maxValidateFn=s.maxValidator(this.max)),t.min&&(this.minValidateFn=a.minValidator(this.min))},t.prototype.validate=function(t){var e=null;return this.minValidateFn&&(e=this.minValidateFn(t)),this.maxValidateFn&&!e&&(e=this.maxValidateFn(t)),e},t.prototype.ngOnInit=function(){this.value&&this.writeValue(this.value)},t.prototype.writeValue=function(t){this.autoCorrect&&t&&(this.max&&this.max<t&&(t=new Date(this.max)),this.min&&t&&t<this.min&&(t=new Date(this.min))),this.value=t,this.ngChange(t),this.value?(this.currentValue=this.intl.formatDate(this.value,this.format),this.currentFormat=this.intl.dateFormatString(this.value,this.format),this.dateInput.nativeElement.value=this.currentValue):this.currentFormat="",this.valueChange.emit(t)},t.prototype.registerOnChange=function(t){this.ngChange=t},t.prototype.registerOnTouched=function(t){this.ngTouched=t},t.prototype.changeDatePartValue=function(t){var e=this.caret(),n=this.currentFormat[e[0]],i=this.currentFormat[e[0]];e[0]>0&&(i=this.currentFormat[e[0]-1]);var o="";if(this.dirty||!this.value){this.knownParts.indexOf(n)>=0?o=n:this.knownParts.indexOf(i)>=0&&(o=i);var r=this.intl.parseDate(this.dateInput.nativeElement.value,this.format);this.writeValue(r),this.dirty=!1}else this.knownParts.indexOf(n)>=0?(this.modify(n,t),o=n):this.knownParts.indexOf(i)>=0&&(this.modify(i,t),o=i),this.writeValue(this.value);this.correctDateSegment(o)},t.prototype.increaseValue=function(){this.value&&!this.disabled&&(this.modifyDates(1),this.writeValue(this.value))},t.prototype.decreaseValue=function(){this.value&&!this.disabled&&(this.modifyDates(-1),this.writeValue(this.value))},t.prototype.switchDateSegment=function(t){for(var e=this.caret(),n=this.currentFormat[e[0]],i=e[0]+t;i>0&&i<this.currentFormat.length&&!(this.currentFormat[i]!==n&&this.knownParts.indexOf(this.currentFormat[i])>=0);)i+=t;for(var o=i;o>=0&&o<this.currentFormat.length&&this.currentFormat[o]===this.currentFormat[i];)o+=t;i>o?this.caret(o+1,i+1):this.caret(i,o)},t.prototype.correctDateSegment=function(t){for(var e=-1,n=0,i=0;i<this.currentFormat.length;i++)this.currentFormat[i]===t&&(n=i+1,e===-1&&(e=i));e<0&&(e=0),this.caret(e,n)},t.prototype.handleFocus=function(t){this.focused=!0,this.focus.emit(t)},t.prototype.handleBlur=function(t){this.dateInput.nativeElement.value.length||(this.value=void 0),this.focused=!1;var e=this.intl.parseDate(this.dateInput.nativeElement.value,this.format);this.writeValue(e),this.ngTouched(),this.blur.emit(t)},t.prototype.handlePaste=function(){},t.prototype.handleMouseWheel=function(t){!this.disabled&&this.focused&&(t=window.event||t,this.changeDatePartValue((t.wheelDelta||-t.detail)>0?1:-1),t.returnValue=!1,t.preventDefault&&t.preventDefault())},t.prototype.caret=function(t,e){void 0===e&&(e=t);var n=void 0!==t,i=[t],o=this.dateInput.nativeElement;if(!n||!this.disabled){try{void 0!==o.selectionStart&&(n?(o.focus(),o.setSelectionRange(t,e)):i=[o.selectionStart,o.selectionEnd])}catch(t){i=[]}return this.lastCaret=i,i}},t.prototype.modify=function(t,e){switch(t){case"y":this.modifyYears(e);break;case"M":this.modifyMonths(e);break;case"d":this.modifyDates(e);break;case"E":this.modifyDates(e);break;case"h":this.modifyHours(e);break;case"m":this.modifyMinutes(e);break;case"s":this.modifySeconds(e)}},t.prototype.modifyYears=function(t){this.value.setFullYear(this.value.getFullYear()+t)},t.prototype.modifyMonths=function(t){this.value.setMonth(this.value.getMonth()+t)},t.prototype.modifyDates=function(t){this.value.setDate(this.value.getDate()+t)},t.prototype.modifyHours=function(t){this.value.setHours(this.value.getHours()+t)},t.prototype.modifyMinutes=function(t){this.value.setMinutes(this.value.getMinutes()+t)},t.prototype.modifySeconds=function(t){this.value.setSeconds(this.value.getSeconds()+t)},i([r.Input(),o("design:type",Boolean)],t.prototype,"disabled",void 0),i([r.Input(),o("design:type",String)],t.prototype,"title",void 0),i([r.Input(),o("design:type",String)],t.prototype,"format",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"max",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"min",void 0),i([r.Input(),o("design:type",Boolean)],t.prototype,"autoCorrect",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"value",void 0),i([r.Input(),o("design:type",Boolean)],t.prototype,"spinners",void 0),i([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"valueChange",void 0),i([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"focus",void 0),i([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"blur",void 0),i([r.ViewChild("dateInput"),o("design:type",r.ElementRef)],t.prototype,"dateInput",void 0),i([r.HostListener("blur"),o("design:type",Function),o("design:paramtypes",[]),o("design:returntype",void 0)],t.prototype,"blurHandler",null),i([r.HostListener("mousewheel",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"mousewheel",null),i([r.HostListener("onmousewheel",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"onmousewheel",null),i([r.HostListener("DOMMouseScroll",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"mousescroll",null),i([r.HostBinding("class.k-widget"),o("design:type",Boolean)],t.prototype,"widgetClass",null),i([r.HostBinding("class.k-dateinput"),o("design:type",Boolean)],t.prototype,"dateInputClass",null),i([r.HostBinding("tabIndex"),o("design:type",Number)],t.prototype,"tabIndex",null),i([r.HostBinding("attr.aria-valuemin"),o("design:type",Date)],t.prototype,"ariaMin",null),i([r.HostBinding("attr.aria-valuemax"),o("design:type",Date)],t.prototype,"ariaMax",null),i([r.HostBinding("attr.aria-valuenow"),o("design:type",Date)],t.prototype,"ariaValue",null),i([r.HostBinding("class.k-state-disabled"),o("design:type",Boolean)],t.prototype,"disabledClass",null),i([r.HostListener("keydown",["$event"]),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],t.prototype,"keydown",null),t=i([r.Component({providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return t}),multi:!0},{provide:u.NG_VALIDATORS,useExisting:r.forwardRef(function(){return t}),multi:!0}],selector:"kendo-dateinput",template:'\n <span class="k-dateinput-wrap">\n <input class="k-input"\n [title]="title"\n [attr.disabled]="disabled ? \'disabled\' : undefined"\n [attr.aria-label]="title"\n (paste)="handlePaste()"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)"\n #dateInput />\n <span *ngIf="spinners" class="k-select">\n <span (click)="increaseValue()" class="k-link k-link-increase">\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span (click)="decreaseValue()" class="k-link k-link-decrease">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),o("design:paramtypes",[l.IntlService,r.ElementRef])],t)}();e.DateInputComponent=d},function(t,e){"use strict";!function(t){t[t.backspace=8]="backspace",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.alt=18]="alt",t[t.space=32]="space",t[t["page up"]=33]="page up",t[t["page down"]=34]="page down",t[t.end=35]="end",t[t.home=36]="home",t[t.left=37]="left",t[t.up=38]="up",t[t.right=39]="right",t[t.down=40]="down"}(e.Keys||(e.Keys={}));e.Keys},function(t,e){t.exports=n},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(34),s=n(32),c=n(1),u=n(35),l=n(36),d=n(51),p=n(25),h=n(38),f=n(23),y=n(37),g=[c.CalendarComponent,u.FooterComponent,l.MonthViewComponent,d.MonthComponent,p.CellTemplateDirective],m=[h.MonthViewService,f.NavigationService,y.CalendarDOMService],v=function(){function t(){}return t=i([r.NgModule({declarations:[g],exports:[g],imports:[a.CommonModule,s.IntlModule],providers:m}),o("design:paramtypes",[])],t)}();e.CalendarModule=v},function(t,e){t.exports=i},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=function(){function t(){}return t=i([r.Component({selector:"kendo-calendar-footer",template:'\n <div class="k-footer">\n <a href="#" class="k-link k-nav-today" title="Thursday, November 10, 2016">Thursday, November 10, 2016</a>\n </div>\n '}),o("design:paramtypes",[])],t)}();e.FooterComponent=a},function(t,e,n){"use strict";function i(t){return new p.ScrollerService(t)}var o=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}},s=n(2),c=n(28),u=n(37),l=n(38),d=n(39),p=n(40),h=n(41),f=n(43);n(44),n(45),n(46),n(47),n(48),n(49),n(50);var y=n(4),g=n(29);e.SCROLLER_FACTORY_TOKEN=new s.OpaqueToken("calendar-scroll-service-factory"),e.DEFAULT_SCROLLER_FACTORY=i;var m=function(){function t(t,e,n,i){this.dom=e,this.service=n,this.renderer=i,this.isActive=!0,this.min=new Date(c.MIN_DATE),this.max=new Date(c.MAX_DATE),this.change=new s.EventEmitter,this.dates=[],this.dispatcher=new f.Subject,this.shouldScrollToBottom=!1,this.shouldScrollToFocusedView=!1,this.minViews=1,this.take=7,this.scroller=t(this.dispatcher)}return Object.defineProperty(t.prototype,"getComponentClass",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this.focusedDate;this.title=this.service.title(e),this.skip=this.months(e,this.min);var n=this.months(this.max,this.min)+1,i=this.total&&this.total!==n;if(this.total=n,i&&this.init(),i||!g.isInDatesArray(e,this.dates)){var o=this.months(this.max,this.focusedDate)<this.minViews,r=o?y.addMonths(this.focusedDate,-1):this.focusedDate,a=g.dateInRange(r,this.min,this.max),s=Math.min(this.total-this.months(a,this.min),this.take);this.dates=this.viewDates(y.firstDayOfMonth(a),s),this.shouldScrollToBottom=g.isInRange(this.focusedDate,y.firstDayOfMonth(this.max),this.max)}var c=!!t.focusedDate&&!this.shouldScrollToBottom;this.shouldScrollToFocusedView=c||this.isFocusedDateVisible()},t.prototype.ngOnInit=function(){this.init()},t.prototype.ngOnDestroy=function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()},t.prototype.ngAfterViewInit=function(){this.scrollToFocusedView(),this.containerScrollSubscription=h.Observable.fromEvent(this.container.nativeElement,"scroll").map(function(t){return t.target}).subscribe(this.dispatcher)},t.prototype.ngAfterViewChecked=function(){this.shouldScrollToFocusedView&&this.scrollToFocusedView(),this.shouldScrollToBottom&&this.scrollToBottom()},t.prototype.trackByDates=function(t,e){return e.getFullYear()+"-"+e.getMonth()},t.prototype.init=function(){this.rowHeightService=new d.RowHeightService(this.total,this.dom.viewHeight(),0),this.totalHeight=this.rowHeightService.totalHeight();var t=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total);this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=t.filter(function(t){return t instanceof p.PageAction}).subscribe(this.pageChange.bind(this)).add(t.filter(function(t){return t instanceof p.ScrollAction}).subscribe(this.scroll.bind(this)))},t.prototype.pageChange=function(t){var e=t.skip,n=Math.min(this.total-e,this.take);this.dates=this.viewDates(y.addMonths(this.min,e),n)},t.prototype.scroll=function(t){var e=t.offset;this.style={transform:"translateY("+e+"px)"}},t.prototype.scrollToFocusedView=function(){this.shouldScrollToFocusedView=!1,
this.renderer.setElementProperty(this.container.nativeElement,"scrollTop",this.rowHeightService.offset(this.skip))},t.prototype.scrollToBottom=function(){this.shouldScrollToBottom=!1,this.renderer.setElementProperty(this.container.nativeElement,"scrollTop",this.rowHeightService.totalHeight())},t.prototype.handleDateChange=function(t){this.change.emit(t)},t.prototype.isFocusedDateVisible=function(){if(!this.container||!this.rowHeightService)return!1;var t=this.container.nativeElement.scrollTop,e=this.rowHeightService.offset(this.skip),n=e+this.rowHeightService.height(this.skip);return t>=e&&t<=n},t.prototype.viewDates=function(t,e){return g.range(0,e).map(function(e){return y.addMonths(t,e)})},t.prototype.months=function(t,e){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},o([s.Input(),r("design:type",s.TemplateRef)],t.prototype,"cellTemplateRef",void 0),o([s.Input(),r("design:type",String)],t.prototype,"cellUID",void 0),o([s.Input(),r("design:type",Date)],t.prototype,"focusedDate",void 0),o([s.Input(),r("design:type",Boolean)],t.prototype,"isActive",void 0),o([s.Input(),r("design:type",Date)],t.prototype,"min",void 0),o([s.Input(),r("design:type",Date)],t.prototype,"max",void 0),o([s.Input(),r("design:type",Date)],t.prototype,"value",void 0),o([s.Output(),r("design:type",s.EventEmitter)],t.prototype,"change",void 0),o([s.ViewChild("container"),r("design:type",s.ElementRef)],t.prototype,"container",void 0),o([s.HostBinding("class.k-calendar-monthview"),r("design:type",Boolean)],t.prototype,"getComponentClass",null),t=o([s.Component({providers:[{provide:e.SCROLLER_FACTORY_TOKEN,useValue:i}],selector:"kendo-calendar-monthview",template:'\n <table class="k-calendar-weekdays">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <thead>\n <tr>\n <th *ngFor="let name of service.weekNames()">{{name}}</th>\n </tr>\n </thead>\n </table>\n <div #container class="k-content k-scrollable">\n <table [ngStyle]="style">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <tbody kendoCalendarMonth *ngFor="let date of dates;trackBy: trackByDates"\n role="rowgroup"\n [isActive]="isActive"\n [min]="min"\n [max]="max"\n [cellUID]="cellUID"\n [viewDate]="date"\n [focusedDate]="focusedDate"\n [selectedDate]="value"\n [templateRef]="cellTemplateRef"\n (change)="handleDateChange($event)"\n ></tbody>\n </table>\n <div class="k-scrollable-placeholder" [style.height.px]="totalHeight"></div>\n </div>\n '}),a(0,s.Inject(e.SCROLLER_FACTORY_TOKEN)),r("design:paramtypes",[Object,u.CalendarDOMService,l.MonthViewService,s.Renderer])],t)}();e.MonthViewComponent=m},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(29),s=function(){function t(){}return t.prototype.viewHeight=function(){if(!a.isDocumentAvailable())return 0;var t=this.calendarElement(),e=this.monthViewElement(),n=this.monthContentElement(),i=this.tableElement();n.appendChild(i),e.appendChild(n),t.appendChild(e),document.body.appendChild(t);var o=i.children[0].getBoundingClientRect().height;return document.body.removeChild(t),o},t.prototype.calendarElement=function(){var t=document.createElement("div");return t.className="k-widget k-calendar k-calendar-infinite",t.style.left="-10000px",t},t.prototype.monthViewElement=function(){var t=document.createElement("div");return t.className="k-calendar-monthview",t},t.prototype.monthContentElement=function(){var t=document.createElement("div");return t.className="k-content k-scrollable",t},t.prototype.tableElement=function(){var t=document.createElement("table");return t.innerHTML="\n <tbody>\n <tr><th>1</th></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n <tr><td>1</td></tr>\n </tbody>\n ",t},t=i([r.Injectable(),o("design:paramtypes",[])],t)}();e.CalendarDOMService=s},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(4),s=n(32),c=n(29),u=[[]],l=7,d=6,p=6,h=0,f=function(){function t(t){this._intlService=t}return t.prototype.prev=function(t){return a.addMonths(t,-1)},t.prototype.next=function(t){return a.addMonths(t,1)},t.prototype.dayValue=function(t){return t?t.getDate().toString():""},t.prototype.title=function(t){return this.abbrMonthNames()[t.getMonth()]+" "+t.getFullYear()},t.prototype.viewData=function(t){var e=this,n=t.cellUID,i=t.focusedDate,o=t.max,r=t.min,s=t.selectedDate,p=t.viewDate;if(!p)return u;var h=a.firstDayOfMonth(p),f=a.lastDayOfMonth(p),y=-1,g=a.dayOfWeek(h,this._intlService.firstDay(),y),m=c.range(0,l);return c.range(0,d).map(function(t){var c=a.addDays(g,7*t);return m.map(function(t){var u=a.addDays(c,t),l=u<h||u>f,d=u<r||u>o;return l||d?null:{id:""+n+u.getTime(),isFocused:e.isEqual(u,i),isSelected:e.isEqual(u,s),isWeekend:e.isWeekend(u),value:u}})})},t.prototype.weekNumber=function(t){return a.weekInYear(t,this._intlService.firstDay())},t.prototype.isWeekend=function(t){var e=t.getDay();return e===p||e===h},t.prototype.isEqual=function(t,e){return!(!t||!e)&&a.getDate(t).getTime()===a.getDate(e).getTime()},t.prototype.weekNames=function(){return this._intlService.dateFormatNames({nameType:"short",type:"days"})},t.prototype.abbrMonthNames=function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})},t=i([r.Injectable(),o("design:paramtypes",[s.IntlService])],t)}();e.MonthViewService=f},function(t,e){"use strict";var n=function(t,e,n){return t.slice(0,e+1).concat(t.slice(e+1).map(function(t){return t+n}))},i=function(){function t(t,e,n){void 0===t&&(t=0),this.total=t,this.rowHeight=e,this.detailRowHeight=n,this.offsets=[],this.heights=[];for(var i=0,o=0;o<t;o++)this.offsets.push(i),i+=e,this.heights.push(e)}return t.prototype.height=function(t){return this.heights[t]},t.prototype.expandDetail=function(t){this.height(t)===this.rowHeight&&this.updateRowHeight(t,this.detailRowHeight)},t.prototype.collapseDetail=function(t){this.height(t)>this.rowHeight&&this.updateRowHeight(t,this.detailRowHeight*-1)},t.prototype.index=function(t){if(!(t<0)){var e=this.offsets.reduce(function(e,n,i){return void 0!==e?e:n===t?i:n>t?i-1:void 0},void 0);return void 0===e?this.total-1:e}},t.prototype.offset=function(t){return this.offsets[t]},t.prototype.totalHeight=function(){return this.heights.reduce(function(t,e){return t+e},0)},t.prototype.updateRowHeight=function(t,e){this.heights[t]+=e,this.offsets=n(this.offsets,t,e)},t}();e.RowHeightService=i},function(t,e,n){"use strict";var i=n(41),o=n(42),r=function(){function t(t){this.offset=t}return t}();e.ScrollAction=r;var a=function(){function t(t){this.skip=t}return t}();e.PageAction=a;var s=function(){function t(t){this.scrollObservable=t,this.firstLoaded=0}return t.prototype.create=function(t,e,n,a){var s=this;this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScrollTop=0;var c=new o.BehaviorSubject(new r(this.rowHeightService.offset(e)));return i.Observable.create(function(t){s.unsubscribe(),s.scrollSubscription=s.scrollObservable.subscribe(function(e){return s.onScroll(e,t)})}).subscribe(function(t){return c.next(t)}),c},t.prototype.destroy=function(){this.unsubscribe()},t.prototype.onScroll=function(t,e){var n=t.scrollTop,i=t.offsetHeight;if(this.lastScrollTop!==n){var o=this.lastScrollTop>=n;this.lastScrollTop=n;var s=this.rowHeightService.index(n),c=this.rowHeightService.offset(s),u=this.rowHeightService.index(n+i);if(!o&&u>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=s,e.next(new r(c)),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),e.next(new a(this.firstLoaded))),o&&s<=this.firstLoaded){var l=Math.floor(.5*this.take);this.firstLoaded=Math.max(s-l,0),e.next(new r(this.rowHeightService.offset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),e.next(new a(this.firstLoaded))}}},t.prototype.unsubscribe=function(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=void 0)},t}();e.ScrollerService=s},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e){t.exports=c},function(t,e){t.exports=u},function(t,e){t.exports=l},function(t,e){t.exports=d},function(t,e){t.exports=p},function(t,e){t.exports=h},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(38),s=n(32),c=n(4),u=n(29),l=function(){function t(t,e){this.service=t,this.intl=e,this.isActive=!0,this.showWeekNumbers=!1,this.change=new r.EventEmitter,this.today=c.getDate(new Date)}return t.prototype.ngOnChanges=function(t){this.viewData=this.service.viewData({cellUID:this.cellUID,focusedDate:this.focusedDate,max:this.max,min:this.min,selectedDate:this.selectedDate,viewDate:this.viewDate}),this.title=this.service.title(this.viewDate)},t.prototype.handleClick=function(t){this.change.emit(t.value)},t.prototype.trackRow=function(t,e){return e.reduce(function(t,e){return t+u.cellContextToString(e)},"")},t.prototype.trackCell=function(t,e){return u.cellContextToString(e)},t.prototype.firstDate=function(t){for(var e=0,n=t[e];!n&&e<t.length;)n=t[++e];return n?n.value:null},t.prototype.getStyles=function(t){return u.stringifyClassObject({"k-state-focused":this.isActive&&t.isFocused,"k-state-selected":t.isSelected,"k-today":c.isEqual(t.value,this.today),"k-weekend":t.isWeekend})},i([r.Input(),o("design:type",Boolean)],t.prototype,"isActive",void 0),i([r.Input(),o("design:type",String)],t.prototype,"cellUID",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"focusedDate",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"selectedDate",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"viewDate",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"min",void 0),i([r.Input(),o("design:type",Date)],t.prototype,"max",void 0),i([r.Input(),o("design:type",Boolean)],t.prototype,"showWeekNumbers",void 0),i([r.Input(),o("design:type",Number)],t.prototype,"viewIndex",void 0),i([r.Input(),o("design:type",r.TemplateRef)],t.prototype,"templateRef",void 0),i([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"change",void 0),t=i([r.Component({selector:"[kendoCalendarMonth]",template:'\n <tr role="row"><th scope="col" [colSpan]="!showWeekNumbers ? 7 : 8">{{title}}</th></tr>\n <tr *ngFor="let row of viewData;trackBy:trackRow" role="row">\n <template [ngIf]="showWeekNumbers">\n <td *ngIf="!firstDate(row)">&nbsp;</td>\n <td *ngIf="firstDate(row)">{{service.weekNumber(firstDate(row))}}</td>\n </template>\n <template ngFor [ngForOf]="row" let-cellContext [ngForTrackBy]="trackCell">\n <td *ngIf="!cellContext">&nbsp;</td>\n <td *ngIf="cellContext"\n role="gridcell"\n [attr.id]="cellContext.id"\n [attr.aria-selected]="cellContext.isSelected"\n [ngClass]="getStyles(cellContext)"\n [title]="intl.formatDate(cellContext.value, \'D\')"\n (click)="handleClick(cellContext)"\n >\n <span class="k-link">\n <template [ngIf]="!templateRef">{{service.dayValue(cellContext.value)}}</template>\n <template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngOutletContext]="{ $implicit: cellContext.value, cellContext: cellContext }"\n ></template>\n </span>\n </td>\n </template>\n </tr>\n '}),o("design:paramtypes",[a.MonthViewService,s.IntlService])],t)}();e.MonthComponent=l},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(30),s=n(34),c=[a.DateInputComponent],u=function(){function t(){}return t=i([r.NgModule({declarations:[c],exports:[c],imports:[s.CommonModule]}),o("design:paramtypes",[])],t)}();e.DateInputModule=u},function(t,e,n){"use strict";var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=n(2),a=n(33),s=n(52),c=n(32),u=[a.CalendarModule,s.DateInputModule],l=function(){function t(){}return t=i([r.NgModule({exports:u,imports:u,providers:[{provide:c.IntlService,useClass:c.CldrIntlService}]}),o("design:paramtypes",[])],t)}();e.DateInputsModule=l}])});

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/* tslint:disable:no-forward-ref max-line-length */
import { Component, ContentChild, EventEmitter, ElementRef, isDevMode, forwardRef, HostBinding, HostListener, Input, Output, Renderer } from '@angular/core';

@@ -52,3 +42,3 @@ import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';

*/
var CalendarComponent = (function () {
export var CalendarComponent = (function () {
function CalendarComponent(element, navigator, renderer) {

@@ -304,115 +294,38 @@ this.element = element;

};
CalendarComponent.decorators = [
{ type: Component, args: [{
providers: [CALENDAR_VALUE_ACCESSOR, CALENDAR_RANGE_VALIDATORS],
selector: 'kendo-calendar',
template: "\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [value]=\"value\"\n (change)=\"handleChange($event)\"\n >\n </kendo-calendar-monthview>\n "
},] },
];
/** @nocollapse */
CalendarComponent.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: NavigationService, },
{ type: Renderer, },
]; };
CalendarComponent.propDecorators = {
'focusedDate': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'rangeValidation': [{ type: Input },],
'value': [{ type: Input },],
'disabled': [{ type: Input },],
'tabIndex': [{ type: Input },],
'valueChange': [{ type: Output },],
'cellTemplate': [{ type: ContentChild, args: [CellTemplateDirective,] },],
'widgetRole': [{ type: HostBinding, args: ['attr.role',] },],
'widgetClasses': [{ type: HostBinding, args: ["class.k-widget",] }, { type: HostBinding, args: ["class.k-calendar",] }, { type: HostBinding, args: ["class.k-calendar-infinite",] },],
'calendarTabIndex': [{ type: HostBinding, args: ['attr.tabindex',] },],
'ariaDisabled': [{ type: HostBinding, args: ['attr.aria-disabled',] }, { type: HostBinding, args: ['class.k-state-disabled',] },],
'ariaActivedescendant': [{ type: HostBinding, args: ['attr.aria-activedescendant',] },],
'handleBlur': [{ type: HostListener, args: ["blur",] },],
'handleFocus': [{ type: HostListener, args: ["focus",] },],
'handleMousedown': [{ type: HostListener, args: ["mousedown", ['$event'],] },],
'handleClick': [{ type: HostListener, args: ["click",] },],
'keydown': [{ type: HostListener, args: ["keydown", ["$event"],] },],
'enter': [{ type: HostListener, args: ["keydown.enter", ["$event"],] },],
};
return CalendarComponent;
}());
__decorate([
Input(),
__metadata("design:type", Date)
], CalendarComponent.prototype, "focusedDate", void 0);
__decorate([
Input(),
__metadata("design:type", Date),
__metadata("design:paramtypes", [Date])
], CalendarComponent.prototype, "min", null);
__decorate([
Input(),
__metadata("design:type", Date),
__metadata("design:paramtypes", [Date])
], CalendarComponent.prototype, "max", null);
__decorate([
Input(),
__metadata("design:type", Boolean)
], CalendarComponent.prototype, "rangeValidation", void 0);
__decorate([
Input(),
__metadata("design:type", Date),
__metadata("design:paramtypes", [Date])
], CalendarComponent.prototype, "value", null);
__decorate([
Input(),
__metadata("design:type", Boolean)
], CalendarComponent.prototype, "disabled", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], CalendarComponent.prototype, "tabIndex", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], CalendarComponent.prototype, "valueChange", void 0);
__decorate([
ContentChild(CellTemplateDirective),
__metadata("design:type", CellTemplateDirective)
], CalendarComponent.prototype, "cellTemplate", void 0);
__decorate([
HostBinding('attr.role'),
__metadata("design:type", String),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "widgetRole", null);
__decorate([
HostBinding("class.k-widget"),
HostBinding("class.k-calendar"),
HostBinding("class.k-calendar-infinite"),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "widgetClasses", null);
__decorate([
HostBinding('attr.tabindex'),
__metadata("design:type", Number),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "calendarTabIndex", null);
__decorate([
HostBinding('attr.aria-disabled'),
HostBinding('class.k-state-disabled'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "ariaDisabled", null);
__decorate([
HostBinding('attr.aria-activedescendant'),
__metadata("design:type", String),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "ariaActivedescendant", null);
__decorate([
HostListener("blur"),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleBlur", null);
__decorate([
HostListener("focus"),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleFocus", null);
__decorate([
HostListener("mousedown", ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleMousedown", null);
__decorate([
HostListener("click"),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleClick", null);
__decorate([
HostListener("keydown", ["$event"]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "keydown", null);
__decorate([
HostListener("keydown.enter", ["$event"]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "enter", null);
CalendarComponent = __decorate([
Component({
providers: [CALENDAR_VALUE_ACCESSOR, CALENDAR_RANGE_VALIDATORS],
selector: 'kendo-calendar',
template: "\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [value]=\"value\"\n (change)=\"handleChange($event)\"\n >\n </kendo-calendar-monthview>\n "
}),
__metadata("design:paramtypes", [ElementRef, NavigationService, Renderer])
], CalendarComponent);
export { CalendarComponent };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';

@@ -64,15 +58,16 @@ import { CommonModule } from '@angular/common';

*/
var CalendarModule = (function () {
export var CalendarModule = (function () {
function CalendarModule() {
}
CalendarModule.decorators = [
{ type: NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [CommonModule, IntlModule],
providers: CALENDAR_PROVIDERS
},] },
];
/** @nocollapse */
CalendarModule.ctorParameters = function () { return []; };
return CalendarModule;
}());
CalendarModule = __decorate([
NgModule({
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [CommonModule, IntlModule],
providers: CALENDAR_PROVIDERS
})
], CalendarModule);
export { CalendarModule };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component } from '@angular/core';

@@ -11,13 +5,14 @@ /**

*/
var FooterComponent = (function () {
export var FooterComponent = (function () {
function FooterComponent() {
}
FooterComponent.decorators = [
{ type: Component, args: [{
selector: 'kendo-calendar-footer',
template: "\n <div class=\"k-footer\">\n <a href=\"#\" class=\"k-link k-nav-today\" title=\"Thursday, November 10, 2016\">Thursday, November 10, 2016</a>\n </div>\n "
},] },
];
/** @nocollapse */
FooterComponent.ctorParameters = function () { return []; };
return FooterComponent;
}());
FooterComponent = __decorate([
Component({
selector: 'kendo-calendar-footer',
template: "\n <div class=\"k-footer\">\n <a href=\"#\" class=\"k-link k-nav-today\" title=\"Thursday, November 10, 2016\">Thursday, November 10, 2016</a>\n </div>\n "
})
], FooterComponent);
export { FooterComponent };
/**
* @hidden
*/
export var MIN_DATE = new Date(1900, 0, 1);
/**
* @hidden
*/ export var MIN_DATE = new Date(1900, 0, 1);
/**
* @hidden
*/
export var MAX_DATE = new Date(2099, 11, 31);
/**
* @hidden
*/
/**
* @hidden
*/ export var Action;
export var Action;
(function (Action) {

@@ -8,0 +6,0 @@ Action[Action["Left"] = 0] = "Left";

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
/* tslint:disable:component-selector-name component-selector-type */
import { Component, EventEmitter, ElementRef, HostBinding, Input, Inject, Output, OpaqueToken, Renderer, TemplateRef, ViewChild } from '@angular/core';
import { Component, EventEmitter, HostBinding, Input, Inject, Output, OpaqueToken, Renderer, ViewChild } from '@angular/core';
import { MIN_DATE, MAX_DATE } from './models/dates.model';

@@ -45,3 +32,3 @@ import { CalendarDOMService } from './services/calendar-dom.service';

*/
var MonthViewComponent = (function () {
export var MonthViewComponent = (function () {
function MonthViewComponent(scrollerFactory, dom, service, renderer) {

@@ -170,59 +157,32 @@ this.dom = dom;

};
MonthViewComponent.decorators = [
{ type: Component, args: [{
providers: [{
provide: SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-monthview',
template: "\n <table class=\"k-calendar-weekdays\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <thead>\n <tr>\n <th *ngFor=\"let name of service.weekNames()\">{{name}}</th>\n </tr>\n </thead>\n </table>\n <div #container class=\"k-content k-scrollable\">\n <table [ngStyle]=\"style\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <tbody kendoCalendarMonth *ngFor=\"let date of dates;trackBy: trackByDates\"\n role=\"rowgroup\"\n [isActive]=\"isActive\"\n [min]=\"min\"\n [max]=\"max\"\n [cellUID]=\"cellUID\"\n [viewDate]=\"date\"\n [focusedDate]=\"focusedDate\"\n [selectedDate]=\"value\"\n [templateRef]=\"cellTemplateRef\"\n (change)=\"handleDateChange($event)\"\n ></tbody>\n </table>\n <div class=\"k-scrollable-placeholder\" [style.height.px]=\"totalHeight\"></div>\n </div>\n "
},] },
];
/** @nocollapse */
MonthViewComponent.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [SCROLLER_FACTORY_TOKEN,] },] },
{ type: CalendarDOMService, },
{ type: MonthViewService, },
{ type: Renderer, },
]; };
MonthViewComponent.propDecorators = {
'cellTemplateRef': [{ type: Input },],
'cellUID': [{ type: Input },],
'focusedDate': [{ type: Input },],
'isActive': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'value': [{ type: Input },],
'change': [{ type: Output },],
'container': [{ type: ViewChild, args: ["container",] },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-monthview",] },],
};
return MonthViewComponent;
}());
__decorate([
Input(),
__metadata("design:type", TemplateRef)
], MonthViewComponent.prototype, "cellTemplateRef", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], MonthViewComponent.prototype, "cellUID", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "focusedDate", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], MonthViewComponent.prototype, "isActive", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "min", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "max", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "value", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], MonthViewComponent.prototype, "change", void 0);
__decorate([
ViewChild("container"),
__metadata("design:type", ElementRef)
], MonthViewComponent.prototype, "container", void 0);
__decorate([
HostBinding("class.k-calendar-monthview"),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], MonthViewComponent.prototype, "getComponentClass", null);
MonthViewComponent = __decorate([
Component({
providers: [{
provide: SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-monthview',
template: "\n <table class=\"k-calendar-weekdays\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <thead>\n <tr>\n <th *ngFor=\"let name of service.weekNames()\">{{name}}</th>\n </tr>\n </thead>\n </table>\n <div #container class=\"k-content k-scrollable\">\n <table [ngStyle]=\"style\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <tbody kendoCalendarMonth *ngFor=\"let date of dates;trackBy: trackByDates\"\n role=\"rowgroup\"\n [isActive]=\"isActive\"\n [min]=\"min\"\n [max]=\"max\"\n [cellUID]=\"cellUID\"\n [viewDate]=\"date\"\n [focusedDate]=\"focusedDate\"\n [selectedDate]=\"value\"\n [templateRef]=\"cellTemplateRef\"\n (change)=\"handleDateChange($event)\"\n ></tbody>\n </table>\n <div class=\"k-scrollable-placeholder\" [style.height.px]=\"totalHeight\"></div>\n </div>\n "
}),
__param(0, Inject(SCROLLER_FACTORY_TOKEN)),
__metadata("design:paramtypes", [Object, CalendarDOMService,
MonthViewService,
Renderer])
], MonthViewComponent);
export { MonthViewComponent };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/* tslint:disable:component-selector-name component-selector */
import { Component, EventEmitter, Input, Output, TemplateRef } from '@angular/core';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { MonthViewService } from './services/month-view.service';

@@ -19,3 +9,3 @@ import { IntlService } from '@progress/kendo-angular-intl';

*/
var MonthComponent = (function () {
export var MonthComponent = (function () {
function MonthComponent(service, intl) {

@@ -66,55 +56,27 @@ this.service = service;

};
MonthComponent.decorators = [
{ type: Component, args: [{
selector: '[kendoCalendarMonth]',
template: "\n <tr role=\"row\"><th scope=\"col\" [colSpan]=\"!showWeekNumbers ? 7 : 8\">{{title}}</th></tr>\n <tr *ngFor=\"let row of viewData;trackBy:trackRow\" role=\"row\">\n <template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </template>\n <template ngFor [ngForOf]=\"row\" let-cellContext [ngForTrackBy]=\"trackCell\">\n <td *ngIf=\"!cellContext\">&nbsp;</td>\n <td *ngIf=\"cellContext\"\n role=\"gridcell\"\n [attr.id]=\"cellContext.id\"\n [attr.aria-selected]=\"cellContext.isSelected\"\n [ngClass]=\"getStyles(cellContext)\"\n [title]=\"intl.formatDate(cellContext.value, 'D')\"\n (click)=\"handleClick(cellContext)\"\n >\n <span class=\"k-link\">\n <template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</template>\n <template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></template>\n </span>\n </td>\n </template>\n </tr>\n "
},] },
];
/** @nocollapse */
MonthComponent.ctorParameters = function () { return [
{ type: MonthViewService, },
{ type: IntlService, },
]; };
MonthComponent.propDecorators = {
'isActive': [{ type: Input },],
'cellUID': [{ type: Input },],
'focusedDate': [{ type: Input },],
'selectedDate': [{ type: Input },],
'viewDate': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'showWeekNumbers': [{ type: Input },],
'viewIndex': [{ type: Input },],
'templateRef': [{ type: Input },],
'change': [{ type: Output },],
};
return MonthComponent;
}());
__decorate([
Input(),
__metadata("design:type", Boolean)
], MonthComponent.prototype, "isActive", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], MonthComponent.prototype, "cellUID", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "focusedDate", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "selectedDate", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "viewDate", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "min", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "max", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], MonthComponent.prototype, "showWeekNumbers", void 0);
__decorate([
Input(),
__metadata("design:type", Number)
], MonthComponent.prototype, "viewIndex", void 0);
__decorate([
Input(),
__metadata("design:type", TemplateRef)
], MonthComponent.prototype, "templateRef", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], MonthComponent.prototype, "change", void 0);
MonthComponent = __decorate([
Component({
selector: '[kendoCalendarMonth]',
template: "\n <tr role=\"row\"><th scope=\"col\" [colSpan]=\"!showWeekNumbers ? 7 : 8\">{{title}}</th></tr>\n <tr *ngFor=\"let row of viewData;trackBy:trackRow\" role=\"row\">\n <template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </template>\n <template ngFor [ngForOf]=\"row\" let-cellContext [ngForTrackBy]=\"trackCell\">\n <td *ngIf=\"!cellContext\">&nbsp;</td>\n <td *ngIf=\"cellContext\"\n role=\"gridcell\"\n [attr.id]=\"cellContext.id\"\n [attr.aria-selected]=\"cellContext.isSelected\"\n [ngClass]=\"getStyles(cellContext)\"\n [title]=\"intl.formatDate(cellContext.value, 'D')\"\n (click)=\"handleClick(cellContext)\"\n >\n <span class=\"k-link\">\n <template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</template>\n <template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></template>\n </span>\n </td>\n </template>\n </tr>\n "
}),
__metadata("design:paramtypes", [MonthViewService, IntlService])
], MonthComponent);
export { MonthComponent };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Injectable } from '@angular/core';

@@ -12,3 +6,3 @@ import { isDocumentAvailable } from '../../util';

*/
var CalendarDOMService = (function () {
export var CalendarDOMService = (function () {
function CalendarDOMService() {

@@ -53,7 +47,8 @@ }

};
CalendarDOMService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
CalendarDOMService.ctorParameters = function () { return []; };
return CalendarDOMService;
}());
CalendarDOMService = __decorate([
Injectable()
], CalendarDOMService);
export { CalendarDOMService };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Injectable } from '@angular/core';

@@ -22,3 +13,3 @@ import { addDays, addMonths, dayOfWeek, getDate, firstDayOfMonth, lastDayOfMonth, weekInYear } from '@progress/kendo-date-math';

*/
var MonthViewService = (function () {
export var MonthViewService = (function () {
function MonthViewService(_intlService) {

@@ -88,8 +79,10 @@ this._intlService = _intlService;

};
MonthViewService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
MonthViewService.ctorParameters = function () { return [
{ type: IntlService, },
]; };
return MonthViewService;
}());
MonthViewService = __decorate([
Injectable(),
__metadata("design:paramtypes", [IntlService])
], MonthViewService);
export { MonthViewService };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Injectable } from '@angular/core';

@@ -32,7 +26,8 @@ import { Action } from '../models/navigation-action.enum';

_a[Action.LastInView] = function (date) { return lastDayOfMonth(date); },
_a);
_a
);
/**
* @hidden
*/
var NavigationService = (function () {
export var NavigationService = (function () {
function NavigationService() {

@@ -51,8 +46,9 @@ }

};
NavigationService.decorators = [
{ type: Injectable },
];
/** @nocollapse */
NavigationService.ctorParameters = function () { return []; };
return NavigationService;
}());
NavigationService = __decorate([
Injectable()
], NavigationService);
export { NavigationService };
var _a;

@@ -8,3 +8,3 @@ /**

*/
var RowHeightService = (function () {
export var RowHeightService = (function () {
function RowHeightService(total, rowHeight, detailRowHeight) {

@@ -67,2 +67,1 @@ if (total === void 0) { total = 0; }

}());
export { RowHeightService };

@@ -6,3 +6,3 @@ import { Observable } from 'rxjs/Observable';

*/
var ScrollAction = (function () {
export var ScrollAction = (function () {
function ScrollAction(offset) {

@@ -13,7 +13,6 @@ this.offset = offset;

}());
export { ScrollAction };
/**
* @hidden
*/
var PageAction = (function () {
export var PageAction = (function () {
function PageAction(skip) {

@@ -24,7 +23,6 @@ this.skip = skip;

}());
export { PageAction };
/**
* @hidden
*/
var ScrollerService = (function () {
export var ScrollerService = (function () {
function ScrollerService(scrollObservable) {

@@ -84,2 +82,1 @@ this.scrollObservable = scrollObservable;

}());
export { ScrollerService };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Directive, TemplateRef } from '@angular/core';

@@ -37,14 +28,16 @@ /**

*/
var CellTemplateDirective = (function () {
export var CellTemplateDirective = (function () {
function CellTemplateDirective(templateRef) {
this.templateRef = templateRef;
}
CellTemplateDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoCalendarCellTemplate]'
},] },
];
/** @nocollapse */
CellTemplateDirective.ctorParameters = function () { return [
{ type: TemplateRef, },
]; };
return CellTemplateDirective;
}());
CellTemplateDirective = __decorate([
Directive({
selector: '[kendoCalendarCellTemplate]'
}),
__metadata("design:paramtypes", [TemplateRef])
], CellTemplateDirective);
export { CellTemplateDirective };

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Component, Input, Output, ViewChild, EventEmitter, ElementRef, HostBinding, HostListener, forwardRef } from '@angular/core';

@@ -20,3 +11,3 @@ import { minValidator } from '../validators/min.validator';

*/
var DateInputComponent = DateInputComponent_1 = (function () {
export var DateInputComponent = (function () {
function DateInputComponent(intl, el) {

@@ -453,129 +444,44 @@ this.intl = intl;

};
DateInputComponent.decorators = [
{ type: Component, args: [{
providers: [
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(function () { return DateInputComponent; }), multi: true },
{ provide: NG_VALIDATORS, useExisting: forwardRef(function () { return DateInputComponent; }), multi: true } /* tslint:disable-line */
],
selector: 'kendo-dateinput',
template: "\n <span class=\"k-dateinput-wrap\">\n <input class=\"k-input\"\n [title]=\"title\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-label]=\"title\"\n (paste)=\"handlePaste()\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\"\n #dateInput />\n <span *ngIf=\"spinners\" class=\"k-select\">\n <span (click)=\"increaseValue()\" class=\"k-link k-link-increase\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"decreaseValue()\" class=\"k-link k-link-decrease\">\n <span class=\"k-icon k-i-arrow-s\"></span>\n </span>\n </span>\n </span>\n "
},] },
];
/** @nocollapse */
DateInputComponent.ctorParameters = function () { return [
{ type: IntlService, },
{ type: ElementRef, },
]; };
DateInputComponent.propDecorators = {
'disabled': [{ type: Input },],
'title': [{ type: Input },],
'format': [{ type: Input },],
'max': [{ type: Input },],
'min': [{ type: Input },],
'autoCorrect': [{ type: Input },],
'value': [{ type: Input },],
'spinners': [{ type: Input },],
'valueChange': [{ type: Output },],
'focus': [{ type: Output },],
'blur': [{ type: Output },],
'dateInput': [{ type: ViewChild, args: ['dateInput',] },],
'blurHandler': [{ type: HostListener, args: ['blur',] },],
'mousewheel': [{ type: HostListener, args: ['mousewheel', ['$event'],] },],
'onmousewheel': [{ type: HostListener, args: ['onmousewheel', ['$event'],] },],
'mousescroll': [{ type: HostListener, args: ['DOMMouseScroll', ['$event'],] },],
'widgetClass': [{ type: HostBinding, args: ['class.k-widget',] },],
'dateInputClass': [{ type: HostBinding, args: ['class.k-dateinput',] },],
'tabIndex': [{ type: HostBinding, args: ['tabIndex',] },],
'ariaMin': [{ type: HostBinding, args: ['attr.aria-valuemin',] },],
'ariaMax': [{ type: HostBinding, args: ['attr.aria-valuemax',] },],
'ariaValue': [{ type: HostBinding, args: ['attr.aria-valuenow',] },],
'disabledClass': [{ type: HostBinding, args: ['class.k-state-disabled',] },],
'keydown': [{ type: HostListener, args: ['keydown', ['$event'],] },],
};
return DateInputComponent;
}());
__decorate([
Input(),
__metadata("design:type", Boolean)
], DateInputComponent.prototype, "disabled", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], DateInputComponent.prototype, "title", void 0);
__decorate([
Input(),
__metadata("design:type", String)
], DateInputComponent.prototype, "format", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], DateInputComponent.prototype, "max", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], DateInputComponent.prototype, "min", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], DateInputComponent.prototype, "autoCorrect", void 0);
__decorate([
Input(),
__metadata("design:type", Date)
], DateInputComponent.prototype, "value", void 0);
__decorate([
Input(),
__metadata("design:type", Boolean)
], DateInputComponent.prototype, "spinners", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], DateInputComponent.prototype, "valueChange", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], DateInputComponent.prototype, "focus", void 0);
__decorate([
Output(),
__metadata("design:type", EventEmitter)
], DateInputComponent.prototype, "blur", void 0);
__decorate([
ViewChild('dateInput'),
__metadata("design:type", ElementRef)
], DateInputComponent.prototype, "dateInput", void 0);
__decorate([
HostListener('blur'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "blurHandler", null);
__decorate([
HostListener('mousewheel', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "mousewheel", null);
__decorate([
HostListener('onmousewheel', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "onmousewheel", null);
__decorate([
HostListener('DOMMouseScroll', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "mousescroll", null);
__decorate([
HostBinding('class.k-widget'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "widgetClass", null);
__decorate([
HostBinding('class.k-dateinput'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "dateInputClass", null);
__decorate([
HostBinding('tabIndex'),
__metadata("design:type", Number),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "tabIndex", null);
__decorate([
HostBinding('attr.aria-valuemin'),
__metadata("design:type", Date),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "ariaMin", null);
__decorate([
HostBinding('attr.aria-valuemax'),
__metadata("design:type", Date),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "ariaMax", null);
__decorate([
HostBinding('attr.aria-valuenow'),
__metadata("design:type", Date),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "ariaValue", null);
__decorate([
HostBinding('class.k-state-disabled'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "disabledClass", null);
__decorate([
HostListener('keydown', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "keydown", null);
DateInputComponent = DateInputComponent_1 = __decorate([
Component({
providers: [
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(function () { return DateInputComponent_1; }), multi: true },
{ provide: NG_VALIDATORS, useExisting: forwardRef(function () { return DateInputComponent_1; }), multi: true } /* tslint:disable-line */
],
selector: 'kendo-dateinput',
template: "\n <span class=\"k-dateinput-wrap\">\n <input class=\"k-input\"\n [title]=\"title\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-label]=\"title\"\n (paste)=\"handlePaste()\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\"\n #dateInput />\n <span *ngIf=\"spinners\" class=\"k-select\">\n <span (click)=\"increaseValue()\" class=\"k-link k-link-increase\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"decreaseValue()\" class=\"k-link k-link-decrease\">\n <span class=\"k-icon k-i-arrow-s\"></span>\n </span>\n </span>\n </span>\n "
}),
__metadata("design:paramtypes", [IntlService, ElementRef])
], DateInputComponent);
export { DateInputComponent };
var DateInputComponent_1;

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';

@@ -16,14 +10,15 @@ import { DateInputComponent } from './dateinput.component';

*/
var DateInputModule = (function () {
export var DateInputModule = (function () {
function DateInputModule() {
}
DateInputModule.decorators = [
{ type: NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [CommonModule]
},] },
];
/** @nocollapse */
DateInputModule.ctorParameters = function () { return []; };
return DateInputModule;
}());
DateInputModule = __decorate([
NgModule({
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [CommonModule]
})
], DateInputModule);
export { DateInputModule };
/**
* @hidden
*/
/**
* @hidden
*/ export var Keys;
export var Keys;
(function (Keys) {
Keys[Keys["backspace"] = 8] = "backspace";
Keys[Keys["tab"] = 9] = "tab";
Keys[Keys["enter"] = 13] = "enter";
Keys[Keys["shift"] = 16] = "shift";
Keys[Keys["ctrl"] = 17] = "ctrl";
Keys[Keys["alt"] = 18] = "alt";
Keys[Keys["space"] = 32] = "space";
Keys[Keys["page up"] = 33] = "page up";
Keys[Keys["page down"] = 34] = "page down";
Keys[Keys["end"] = 35] = "end";
Keys[Keys["home"] = 36] = "home";
Keys[Keys["left"] = 37] = "left";
Keys[Keys["up"] = 38] = "up";
Keys[Keys["right"] = 39] = "right";
Keys[Keys["down"] = 40] = "down";
Keys[Keys['backspace'] = 8] = 'backspace';
Keys[Keys['tab'] = 9] = 'tab';
Keys[Keys['enter'] = 13] = 'enter';
Keys[Keys['shift'] = 16] = 'shift';
Keys[Keys['ctrl'] = 17] = 'ctrl';
Keys[Keys['alt'] = 18] = 'alt';
Keys[Keys['space'] = 32] = 'space';
Keys[Keys['page up'] = 33] = 'page up';
Keys[Keys['page down'] = 34] = 'page down';
Keys[Keys['end'] = 35] = 'end';
Keys[Keys['home'] = 36] = 'home';
Keys[Keys['left'] = 37] = 'left';
Keys[Keys['up'] = 38] = 'up';
Keys[Keys['right'] = 39] = 'right';
Keys[Keys['down'] = 40] = 'down';
})(Keys || (Keys = {}));

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

var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';

@@ -43,16 +37,17 @@ import { CalendarModule } from './calendar/calendar.module';

*/
var DateInputsModule = (function () {
export var DateInputsModule = (function () {
function DateInputsModule() {
}
DateInputsModule.decorators = [
{ type: NgModule, args: [{
exports: COMPONENT_MODULES,
imports: COMPONENT_MODULES,
providers: [
{ provide: IntlService, useClass: CldrIntlService }
]
},] },
];
/** @nocollapse */
DateInputsModule.ctorParameters = function () { return []; };
return DateInputsModule;
}());
DateInputsModule = __decorate([
NgModule({
exports: COMPONENT_MODULES,
imports: COMPONENT_MODULES,
providers: [
{ provide: IntlService, useClass: CldrIntlService }
]
})
], DateInputsModule);
export { DateInputsModule };
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/* tslint:disable:no-forward-ref max-line-length */
var core_1 = require("@angular/core");
var forms_1 = require("@angular/forms");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var navigation_service_1 = require("./services/navigation.service");
var cell_template_directive_1 = require("./templates/cell-template.directive");
var min_validator_1 = require("../validators/min.validator");
var max_validator_1 = require("../validators/max.validator");
var dates_model_1 = require("./models/dates.model");
var util_1 = require("../util");
var core_1 = require('@angular/core');
var forms_1 = require('@angular/forms');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var navigation_service_1 = require('./services/navigation.service');
var cell_template_directive_1 = require('./templates/cell-template.directive');
var min_validator_1 = require('../validators/min.validator');
var max_validator_1 = require('../validators/max.validator');
var dates_model_1 = require('./models/dates.model');
var util_1 = require('../util');
var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';

@@ -304,115 +295,39 @@ var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max';

};
CalendarComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [exports.CALENDAR_VALUE_ACCESSOR, exports.CALENDAR_RANGE_VALIDATORS],
selector: 'kendo-calendar',
template: "\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [value]=\"value\"\n (change)=\"handleChange($event)\"\n >\n </kendo-calendar-monthview>\n "
},] },
];
/** @nocollapse */
CalendarComponent.ctorParameters = function () { return [
{ type: core_1.ElementRef, },
{ type: navigation_service_1.NavigationService, },
{ type: core_1.Renderer, },
]; };
CalendarComponent.propDecorators = {
'focusedDate': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'rangeValidation': [{ type: core_1.Input },],
'value': [{ type: core_1.Input },],
'disabled': [{ type: core_1.Input },],
'tabIndex': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'cellTemplate': [{ type: core_1.ContentChild, args: [cell_template_directive_1.CellTemplateDirective,] },],
'widgetRole': [{ type: core_1.HostBinding, args: ['attr.role',] },],
'widgetClasses': [{ type: core_1.HostBinding, args: ["class.k-widget",] }, { type: core_1.HostBinding, args: ["class.k-calendar",] }, { type: core_1.HostBinding, args: ["class.k-calendar-infinite",] },],
'calendarTabIndex': [{ type: core_1.HostBinding, args: ['attr.tabindex',] },],
'ariaDisabled': [{ type: core_1.HostBinding, args: ['attr.aria-disabled',] }, { type: core_1.HostBinding, args: ['class.k-state-disabled',] },],
'ariaActivedescendant': [{ type: core_1.HostBinding, args: ['attr.aria-activedescendant',] },],
'handleBlur': [{ type: core_1.HostListener, args: ["blur",] },],
'handleFocus': [{ type: core_1.HostListener, args: ["focus",] },],
'handleMousedown': [{ type: core_1.HostListener, args: ["mousedown", ['$event'],] },],
'handleClick': [{ type: core_1.HostListener, args: ["click",] },],
'keydown': [{ type: core_1.HostListener, args: ["keydown", ["$event"],] },],
'enter': [{ type: core_1.HostListener, args: ["keydown.enter", ["$event"],] },],
};
return CalendarComponent;
}());
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], CalendarComponent.prototype, "focusedDate", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date),
__metadata("design:paramtypes", [Date])
], CalendarComponent.prototype, "min", null);
__decorate([
core_1.Input(),
__metadata("design:type", Date),
__metadata("design:paramtypes", [Date])
], CalendarComponent.prototype, "max", null);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], CalendarComponent.prototype, "rangeValidation", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date),
__metadata("design:paramtypes", [Date])
], CalendarComponent.prototype, "value", null);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], CalendarComponent.prototype, "disabled", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], CalendarComponent.prototype, "tabIndex", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], CalendarComponent.prototype, "valueChange", void 0);
__decorate([
core_1.ContentChild(cell_template_directive_1.CellTemplateDirective),
__metadata("design:type", cell_template_directive_1.CellTemplateDirective)
], CalendarComponent.prototype, "cellTemplate", void 0);
__decorate([
core_1.HostBinding('attr.role'),
__metadata("design:type", String),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "widgetRole", null);
__decorate([
core_1.HostBinding("class.k-widget"),
core_1.HostBinding("class.k-calendar"),
core_1.HostBinding("class.k-calendar-infinite"),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "widgetClasses", null);
__decorate([
core_1.HostBinding('attr.tabindex'),
__metadata("design:type", Number),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "calendarTabIndex", null);
__decorate([
core_1.HostBinding('attr.aria-disabled'),
core_1.HostBinding('class.k-state-disabled'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "ariaDisabled", null);
__decorate([
core_1.HostBinding('attr.aria-activedescendant'),
__metadata("design:type", String),
__metadata("design:paramtypes", [])
], CalendarComponent.prototype, "ariaActivedescendant", null);
__decorate([
core_1.HostListener("blur"),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleBlur", null);
__decorate([
core_1.HostListener("focus"),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleFocus", null);
__decorate([
core_1.HostListener("mousedown", ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleMousedown", null);
__decorate([
core_1.HostListener("click"),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "handleClick", null);
__decorate([
core_1.HostListener("keydown", ["$event"]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "keydown", null);
__decorate([
core_1.HostListener("keydown.enter", ["$event"]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], CalendarComponent.prototype, "enter", null);
CalendarComponent = __decorate([
core_1.Component({
providers: [exports.CALENDAR_VALUE_ACCESSOR, exports.CALENDAR_RANGE_VALIDATORS],
selector: 'kendo-calendar',
template: "\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [value]=\"value\"\n (change)=\"handleChange($event)\"\n >\n </kendo-calendar-monthview>\n "
}),
__metadata("design:paramtypes", [core_1.ElementRef, navigation_service_1.NavigationService, core_1.Renderer])
], CalendarComponent);
exports.CalendarComponent = CalendarComponent;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var common_1 = require("@angular/common");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var calendar_component_1 = require("./calendar.component");
var footer_component_1 = require("./footer.component");
var month_view_component_1 = require("./month-view.component");
var month_component_1 = require("./month.component");
var cell_template_directive_1 = require("./templates/cell-template.directive");
var month_view_service_1 = require("./services/month-view.service");
var navigation_service_1 = require("./services/navigation.service");
var calendar_dom_service_1 = require("./services/calendar-dom.service");
var core_1 = require('@angular/core');
var common_1 = require('@angular/common');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
var calendar_component_1 = require('./calendar.component');
var footer_component_1 = require('./footer.component');
var month_view_component_1 = require('./month-view.component');
var month_component_1 = require('./month.component');
var cell_template_directive_1 = require('./templates/cell-template.directive');
var month_view_service_1 = require('./services/month-view.service');
var navigation_service_1 = require('./services/navigation.service');
var calendar_dom_service_1 = require('./services/calendar-dom.service');
var COMPONENT_DIRECTIVES = [

@@ -68,12 +62,14 @@ calendar_component_1.CalendarComponent,

}
CalendarModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [common_1.CommonModule, kendo_angular_intl_1.IntlModule],
providers: CALENDAR_PROVIDERS
},] },
];
/** @nocollapse */
CalendarModule.ctorParameters = function () { return []; };
return CalendarModule;
}());
CalendarModule = __decorate([
core_1.NgModule({
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [common_1.CommonModule, kendo_angular_intl_1.IntlModule],
providers: CALENDAR_PROVIDERS
})
], CalendarModule);
exports.CalendarModule = CalendarModule;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var core_1 = require('@angular/core');
/**

@@ -15,10 +9,12 @@ * @hidden

}
FooterComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'kendo-calendar-footer',
template: "\n <div class=\"k-footer\">\n <a href=\"#\" class=\"k-link k-nav-today\" title=\"Thursday, November 10, 2016\">Thursday, November 10, 2016</a>\n </div>\n "
},] },
];
/** @nocollapse */
FooterComponent.ctorParameters = function () { return []; };
return FooterComponent;
}());
FooterComponent = __decorate([
core_1.Component({
selector: 'kendo-calendar-footer',
template: "\n <div class=\"k-footer\">\n <a href=\"#\" class=\"k-link k-nav-today\" title=\"Thursday, November 10, 2016\">Thursday, November 10, 2016</a>\n </div>\n "
})
], FooterComponent);
exports.FooterComponent = FooterComponent;

@@ -5,3 +5,2 @@ "use strict";

*/
var Action;
(function (Action) {

@@ -16,2 +15,3 @@ Action[Action["Left"] = 0] = "Left";

Action[Action["LastInView"] = 7] = "LastInView";
})(Action = exports.Action || (exports.Action = {}));
})(exports.Action || (exports.Action = {}));
var Action = exports.Action;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
/* tslint:disable:component-selector-name component-selector-type */
var core_1 = require("@angular/core");
var dates_model_1 = require("./models/dates.model");
var calendar_dom_service_1 = require("./services/calendar-dom.service");
var month_view_service_1 = require("./services/month-view.service");
var row_height_service_1 = require("./services/row-height.service");
var scroller_service_1 = require("./services/scroller.service");
var Observable_1 = require("rxjs/Observable");
var Subject_1 = require("rxjs/Subject");
require("rxjs/add/observable/fromEvent");
require("rxjs/add/operator/map");
require("rxjs/add/operator/merge");
require("rxjs/add/operator/filter");
require("rxjs/add/operator/do");
require("rxjs/add/operator/distinctUntilChanged");
require("rxjs/add/operator/debounceTime");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var util_1 = require("../util");
var core_1 = require('@angular/core');
var dates_model_1 = require('./models/dates.model');
var calendar_dom_service_1 = require('./services/calendar-dom.service');
var month_view_service_1 = require('./services/month-view.service');
var row_height_service_1 = require('./services/row-height.service');
var scroller_service_1 = require('./services/scroller.service');
var Observable_1 = require('rxjs/Observable');
var Subject_1 = require('rxjs/Subject');
require('rxjs/add/observable/fromEvent');
require('rxjs/add/operator/map');
require('rxjs/add/operator/merge');
require('rxjs/add/operator/filter');
require('rxjs/add/operator/do');
require('rxjs/add/operator/distinctUntilChanged');
require('rxjs/add/operator/debounceTime');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var util_1 = require('../util');
/**

@@ -171,59 +159,33 @@ * @hidden

};
MonthViewComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [{
provide: exports.SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-monthview',
template: "\n <table class=\"k-calendar-weekdays\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <thead>\n <tr>\n <th *ngFor=\"let name of service.weekNames()\">{{name}}</th>\n </tr>\n </thead>\n </table>\n <div #container class=\"k-content k-scrollable\">\n <table [ngStyle]=\"style\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <tbody kendoCalendarMonth *ngFor=\"let date of dates;trackBy: trackByDates\"\n role=\"rowgroup\"\n [isActive]=\"isActive\"\n [min]=\"min\"\n [max]=\"max\"\n [cellUID]=\"cellUID\"\n [viewDate]=\"date\"\n [focusedDate]=\"focusedDate\"\n [selectedDate]=\"value\"\n [templateRef]=\"cellTemplateRef\"\n (change)=\"handleDateChange($event)\"\n ></tbody>\n </table>\n <div class=\"k-scrollable-placeholder\" [style.height.px]=\"totalHeight\"></div>\n </div>\n "
},] },
];
/** @nocollapse */
MonthViewComponent.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core_1.Inject, args: [exports.SCROLLER_FACTORY_TOKEN,] },] },
{ type: calendar_dom_service_1.CalendarDOMService, },
{ type: month_view_service_1.MonthViewService, },
{ type: core_1.Renderer, },
]; };
MonthViewComponent.propDecorators = {
'cellTemplateRef': [{ type: core_1.Input },],
'cellUID': [{ type: core_1.Input },],
'focusedDate': [{ type: core_1.Input },],
'isActive': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'value': [{ type: core_1.Input },],
'change': [{ type: core_1.Output },],
'container': [{ type: core_1.ViewChild, args: ["container",] },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-monthview",] },],
};
return MonthViewComponent;
}());
__decorate([
core_1.Input(),
__metadata("design:type", core_1.TemplateRef)
], MonthViewComponent.prototype, "cellTemplateRef", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], MonthViewComponent.prototype, "cellUID", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "focusedDate", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], MonthViewComponent.prototype, "isActive", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "min", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "max", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthViewComponent.prototype, "value", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], MonthViewComponent.prototype, "change", void 0);
__decorate([
core_1.ViewChild("container"),
__metadata("design:type", core_1.ElementRef)
], MonthViewComponent.prototype, "container", void 0);
__decorate([
core_1.HostBinding("class.k-calendar-monthview"),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], MonthViewComponent.prototype, "getComponentClass", null);
MonthViewComponent = __decorate([
core_1.Component({
providers: [{
provide: exports.SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-monthview',
template: "\n <table class=\"k-calendar-weekdays\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <thead>\n <tr>\n <th *ngFor=\"let name of service.weekNames()\">{{name}}</th>\n </tr>\n </thead>\n </table>\n <div #container class=\"k-content k-scrollable\">\n <table [ngStyle]=\"style\">\n <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup>\n <tbody kendoCalendarMonth *ngFor=\"let date of dates;trackBy: trackByDates\"\n role=\"rowgroup\"\n [isActive]=\"isActive\"\n [min]=\"min\"\n [max]=\"max\"\n [cellUID]=\"cellUID\"\n [viewDate]=\"date\"\n [focusedDate]=\"focusedDate\"\n [selectedDate]=\"value\"\n [templateRef]=\"cellTemplateRef\"\n (change)=\"handleDateChange($event)\"\n ></tbody>\n </table>\n <div class=\"k-scrollable-placeholder\" [style.height.px]=\"totalHeight\"></div>\n </div>\n "
}),
__param(0, core_1.Inject(exports.SCROLLER_FACTORY_TOKEN)),
__metadata("design:paramtypes", [Object, calendar_dom_service_1.CalendarDOMService,
month_view_service_1.MonthViewService,
core_1.Renderer])
], MonthViewComponent);
exports.MonthViewComponent = MonthViewComponent;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
/* tslint:disable:component-selector-name component-selector */
var core_1 = require("@angular/core");
var month_view_service_1 = require("./services/month-view.service");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var util_1 = require("../util");
var core_1 = require('@angular/core');
var month_view_service_1 = require('./services/month-view.service');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var util_1 = require('../util');
/**

@@ -66,55 +57,28 @@ * @hidden

};
MonthComponent.decorators = [
{ type: core_1.Component, args: [{
selector: '[kendoCalendarMonth]',
template: "\n <tr role=\"row\"><th scope=\"col\" [colSpan]=\"!showWeekNumbers ? 7 : 8\">{{title}}</th></tr>\n <tr *ngFor=\"let row of viewData;trackBy:trackRow\" role=\"row\">\n <template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </template>\n <template ngFor [ngForOf]=\"row\" let-cellContext [ngForTrackBy]=\"trackCell\">\n <td *ngIf=\"!cellContext\">&nbsp;</td>\n <td *ngIf=\"cellContext\"\n role=\"gridcell\"\n [attr.id]=\"cellContext.id\"\n [attr.aria-selected]=\"cellContext.isSelected\"\n [ngClass]=\"getStyles(cellContext)\"\n [title]=\"intl.formatDate(cellContext.value, 'D')\"\n (click)=\"handleClick(cellContext)\"\n >\n <span class=\"k-link\">\n <template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</template>\n <template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></template>\n </span>\n </td>\n </template>\n </tr>\n "
},] },
];
/** @nocollapse */
MonthComponent.ctorParameters = function () { return [
{ type: month_view_service_1.MonthViewService, },
{ type: kendo_angular_intl_1.IntlService, },
]; };
MonthComponent.propDecorators = {
'isActive': [{ type: core_1.Input },],
'cellUID': [{ type: core_1.Input },],
'focusedDate': [{ type: core_1.Input },],
'selectedDate': [{ type: core_1.Input },],
'viewDate': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'showWeekNumbers': [{ type: core_1.Input },],
'viewIndex': [{ type: core_1.Input },],
'templateRef': [{ type: core_1.Input },],
'change': [{ type: core_1.Output },],
};
return MonthComponent;
}());
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], MonthComponent.prototype, "isActive", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], MonthComponent.prototype, "cellUID", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "focusedDate", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "selectedDate", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "viewDate", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "min", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], MonthComponent.prototype, "max", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], MonthComponent.prototype, "showWeekNumbers", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Number)
], MonthComponent.prototype, "viewIndex", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", core_1.TemplateRef)
], MonthComponent.prototype, "templateRef", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], MonthComponent.prototype, "change", void 0);
MonthComponent = __decorate([
core_1.Component({
selector: '[kendoCalendarMonth]',
template: "\n <tr role=\"row\"><th scope=\"col\" [colSpan]=\"!showWeekNumbers ? 7 : 8\">{{title}}</th></tr>\n <tr *ngFor=\"let row of viewData;trackBy:trackRow\" role=\"row\">\n <template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </template>\n <template ngFor [ngForOf]=\"row\" let-cellContext [ngForTrackBy]=\"trackCell\">\n <td *ngIf=\"!cellContext\">&nbsp;</td>\n <td *ngIf=\"cellContext\"\n role=\"gridcell\"\n [attr.id]=\"cellContext.id\"\n [attr.aria-selected]=\"cellContext.isSelected\"\n [ngClass]=\"getStyles(cellContext)\"\n [title]=\"intl.formatDate(cellContext.value, 'D')\"\n (click)=\"handleClick(cellContext)\"\n >\n <span class=\"k-link\">\n <template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</template>\n <template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></template>\n </span>\n </td>\n </template>\n </tr>\n "
}),
__metadata("design:paramtypes", [month_view_service_1.MonthViewService, kendo_angular_intl_1.IntlService])
], MonthComponent);
exports.MonthComponent = MonthComponent;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var util_1 = require("../../util");
var core_1 = require('@angular/core');
var util_1 = require('../../util');
/**

@@ -53,7 +47,9 @@ * @hidden

};
CalendarDOMService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
CalendarDOMService.ctorParameters = function () { return []; };
return CalendarDOMService;
}());
CalendarDOMService = __decorate([
core_1.Injectable()
], CalendarDOMService);
exports.CalendarDOMService = CalendarDOMService;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var util_1 = require("../../util");
var core_1 = require('@angular/core');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
var util_1 = require('../../util');
var EMPTY_DATA = [[]];

@@ -88,8 +79,11 @@ var CELLS_LENGTH = 7;

};
MonthViewService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
MonthViewService.ctorParameters = function () { return [
{ type: kendo_angular_intl_1.IntlService, },
]; };
return MonthViewService;
}());
MonthViewService = __decorate([
core_1.Injectable(),
__metadata("design:paramtypes", [kendo_angular_intl_1.IntlService])
], MonthViewService);
exports.MonthViewService = MonthViewService;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var navigation_action_enum_1 = require("../models/navigation-action.enum");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var core_1 = require('@angular/core');
var navigation_action_enum_1 = require('../models/navigation-action.enum');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var KEY_TO_ACTION = {

@@ -33,3 +27,4 @@ '33': navigation_action_enum_1.Action.PrevView,

_a[navigation_action_enum_1.Action.LastInView] = function (date) { return kendo_date_math_1.lastDayOfMonth(date); },
_a);
_a
);
/**

@@ -52,8 +47,10 @@ * @hidden

};
NavigationService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
NavigationService.ctorParameters = function () { return []; };
return NavigationService;
}());
NavigationService = __decorate([
core_1.Injectable()
], NavigationService);
exports.NavigationService = NavigationService;
var _a;
"use strict";
var Observable_1 = require("rxjs/Observable");
var BehaviorSubject_1 = require("rxjs/BehaviorSubject");
var Observable_1 = require('rxjs/Observable');
var BehaviorSubject_1 = require('rxjs/BehaviorSubject');
/**

@@ -5,0 +5,0 @@ * @hidden

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var core_1 = require('@angular/core');
/**

@@ -42,10 +33,13 @@ * Used for rendering the cell content of the Calendar.

}
CellTemplateDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: '[kendoCalendarCellTemplate]'
},] },
];
/** @nocollapse */
CellTemplateDirective.ctorParameters = function () { return [
{ type: core_1.TemplateRef, },
]; };
return CellTemplateDirective;
}());
CellTemplateDirective = __decorate([
core_1.Directive({
selector: '[kendoCalendarCellTemplate]'
}),
__metadata("design:paramtypes", [core_1.TemplateRef])
], CellTemplateDirective);
exports.CellTemplateDirective = CellTemplateDirective;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var min_validator_1 = require("../validators/min.validator");
var max_validator_1 = require("../validators/max.validator");
var keysenum_1 = require("./keysenum");
var forms_1 = require("@angular/forms");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var core_1 = require('@angular/core');
var min_validator_1 = require('../validators/min.validator');
var max_validator_1 = require('../validators/max.validator');
var keysenum_1 = require('./keysenum');
var forms_1 = require('@angular/forms');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
/**

@@ -21,3 +12,3 @@ * @hidden

*/
var DateInputComponent = DateInputComponent_1 = (function () {
var DateInputComponent = (function () {
function DateInputComponent(intl, el) {

@@ -454,129 +445,45 @@ this.intl = intl;

};
DateInputComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [
{ provide: forms_1.NG_VALUE_ACCESSOR, useExisting: core_1.forwardRef(function () { return DateInputComponent; }), multi: true },
{ provide: forms_1.NG_VALIDATORS, useExisting: core_1.forwardRef(function () { return DateInputComponent; }), multi: true } /* tslint:disable-line */
],
selector: 'kendo-dateinput',
template: "\n <span class=\"k-dateinput-wrap\">\n <input class=\"k-input\"\n [title]=\"title\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-label]=\"title\"\n (paste)=\"handlePaste()\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\"\n #dateInput />\n <span *ngIf=\"spinners\" class=\"k-select\">\n <span (click)=\"increaseValue()\" class=\"k-link k-link-increase\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"decreaseValue()\" class=\"k-link k-link-decrease\">\n <span class=\"k-icon k-i-arrow-s\"></span>\n </span>\n </span>\n </span>\n "
},] },
];
/** @nocollapse */
DateInputComponent.ctorParameters = function () { return [
{ type: kendo_angular_intl_1.IntlService, },
{ type: core_1.ElementRef, },
]; };
DateInputComponent.propDecorators = {
'disabled': [{ type: core_1.Input },],
'title': [{ type: core_1.Input },],
'format': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'autoCorrect': [{ type: core_1.Input },],
'value': [{ type: core_1.Input },],
'spinners': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'focus': [{ type: core_1.Output },],
'blur': [{ type: core_1.Output },],
'dateInput': [{ type: core_1.ViewChild, args: ['dateInput',] },],
'blurHandler': [{ type: core_1.HostListener, args: ['blur',] },],
'mousewheel': [{ type: core_1.HostListener, args: ['mousewheel', ['$event'],] },],
'onmousewheel': [{ type: core_1.HostListener, args: ['onmousewheel', ['$event'],] },],
'mousescroll': [{ type: core_1.HostListener, args: ['DOMMouseScroll', ['$event'],] },],
'widgetClass': [{ type: core_1.HostBinding, args: ['class.k-widget',] },],
'dateInputClass': [{ type: core_1.HostBinding, args: ['class.k-dateinput',] },],
'tabIndex': [{ type: core_1.HostBinding, args: ['tabIndex',] },],
'ariaMin': [{ type: core_1.HostBinding, args: ['attr.aria-valuemin',] },],
'ariaMax': [{ type: core_1.HostBinding, args: ['attr.aria-valuemax',] },],
'ariaValue': [{ type: core_1.HostBinding, args: ['attr.aria-valuenow',] },],
'disabledClass': [{ type: core_1.HostBinding, args: ['class.k-state-disabled',] },],
'keydown': [{ type: core_1.HostListener, args: ['keydown', ['$event'],] },],
};
return DateInputComponent;
}());
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], DateInputComponent.prototype, "disabled", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], DateInputComponent.prototype, "title", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], DateInputComponent.prototype, "format", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], DateInputComponent.prototype, "max", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], DateInputComponent.prototype, "min", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], DateInputComponent.prototype, "autoCorrect", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Date)
], DateInputComponent.prototype, "value", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], DateInputComponent.prototype, "spinners", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], DateInputComponent.prototype, "valueChange", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], DateInputComponent.prototype, "focus", void 0);
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], DateInputComponent.prototype, "blur", void 0);
__decorate([
core_1.ViewChild('dateInput'),
__metadata("design:type", core_1.ElementRef)
], DateInputComponent.prototype, "dateInput", void 0);
__decorate([
core_1.HostListener('blur'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "blurHandler", null);
__decorate([
core_1.HostListener('mousewheel', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "mousewheel", null);
__decorate([
core_1.HostListener('onmousewheel', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "onmousewheel", null);
__decorate([
core_1.HostListener('DOMMouseScroll', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "mousescroll", null);
__decorate([
core_1.HostBinding('class.k-widget'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "widgetClass", null);
__decorate([
core_1.HostBinding('class.k-dateinput'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "dateInputClass", null);
__decorate([
core_1.HostBinding('tabIndex'),
__metadata("design:type", Number),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "tabIndex", null);
__decorate([
core_1.HostBinding('attr.aria-valuemin'),
__metadata("design:type", Date),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "ariaMin", null);
__decorate([
core_1.HostBinding('attr.aria-valuemax'),
__metadata("design:type", Date),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "ariaMax", null);
__decorate([
core_1.HostBinding('attr.aria-valuenow'),
__metadata("design:type", Date),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "ariaValue", null);
__decorate([
core_1.HostBinding('class.k-state-disabled'),
__metadata("design:type", Boolean),
__metadata("design:paramtypes", [])
], DateInputComponent.prototype, "disabledClass", null);
__decorate([
core_1.HostListener('keydown', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], DateInputComponent.prototype, "keydown", null);
DateInputComponent = DateInputComponent_1 = __decorate([
core_1.Component({
providers: [
{ provide: forms_1.NG_VALUE_ACCESSOR, useExisting: core_1.forwardRef(function () { return DateInputComponent_1; }), multi: true },
{ provide: forms_1.NG_VALIDATORS, useExisting: core_1.forwardRef(function () { return DateInputComponent_1; }), multi: true } /* tslint:disable-line */
],
selector: 'kendo-dateinput',
template: "\n <span class=\"k-dateinput-wrap\">\n <input class=\"k-input\"\n [title]=\"title\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-label]=\"title\"\n (paste)=\"handlePaste()\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\"\n #dateInput />\n <span *ngIf=\"spinners\" class=\"k-select\">\n <span (click)=\"increaseValue()\" class=\"k-link k-link-increase\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"decreaseValue()\" class=\"k-link k-link-decrease\">\n <span class=\"k-icon k-i-arrow-s\"></span>\n </span>\n </span>\n </span>\n "
}),
__metadata("design:paramtypes", [kendo_angular_intl_1.IntlService, core_1.ElementRef])
], DateInputComponent);
exports.DateInputComponent = DateInputComponent;
var DateInputComponent_1;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var dateinput_component_1 = require("./dateinput.component");
var common_1 = require("@angular/common");
var core_1 = require('@angular/core');
var dateinput_component_1 = require('./dateinput.component');
var common_1 = require('@angular/common');
var COMPONENT_DIRECTIVES = [dateinput_component_1.DateInputComponent];

@@ -20,11 +14,13 @@ /**

}
DateInputModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [common_1.CommonModule]
},] },
];
/** @nocollapse */
DateInputModule.ctorParameters = function () { return []; };
return DateInputModule;
}());
DateInputModule = __decorate([
core_1.NgModule({
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [common_1.CommonModule]
})
], DateInputModule);
exports.DateInputModule = DateInputModule;

@@ -5,19 +5,19 @@ "use strict";

*/
var Keys;
(function (Keys) {
Keys[Keys["backspace"] = 8] = "backspace";
Keys[Keys["tab"] = 9] = "tab";
Keys[Keys["enter"] = 13] = "enter";
Keys[Keys["shift"] = 16] = "shift";
Keys[Keys["ctrl"] = 17] = "ctrl";
Keys[Keys["alt"] = 18] = "alt";
Keys[Keys["space"] = 32] = "space";
Keys[Keys["page up"] = 33] = "page up";
Keys[Keys["page down"] = 34] = "page down";
Keys[Keys["end"] = 35] = "end";
Keys[Keys["home"] = 36] = "home";
Keys[Keys["left"] = 37] = "left";
Keys[Keys["up"] = 38] = "up";
Keys[Keys["right"] = 39] = "right";
Keys[Keys["down"] = 40] = "down";
})(Keys = exports.Keys || (exports.Keys = {}));
Keys[Keys['backspace'] = 8] = 'backspace';
Keys[Keys['tab'] = 9] = 'tab';
Keys[Keys['enter'] = 13] = 'enter';
Keys[Keys['shift'] = 16] = 'shift';
Keys[Keys['ctrl'] = 17] = 'ctrl';
Keys[Keys['alt'] = 18] = 'alt';
Keys[Keys['space'] = 32] = 'space';
Keys[Keys['page up'] = 33] = 'page up';
Keys[Keys['page down'] = 34] = 'page down';
Keys[Keys['end'] = 35] = 'end';
Keys[Keys['home'] = 36] = 'home';
Keys[Keys['left'] = 37] = 'left';
Keys[Keys['up'] = 38] = 'up';
Keys[Keys['right'] = 39] = 'right';
Keys[Keys['down'] = 40] = 'down';
})(exports.Keys || (exports.Keys = {}));
var Keys = exports.Keys;
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
var calendar_module_1 = require("./calendar/calendar.module");
var dateinput_module_1 = require("./dateinput/dateinput.module");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var core_1 = require('@angular/core');
var calendar_module_1 = require('./calendar/calendar.module');
var dateinput_module_1 = require('./dateinput/dateinput.module');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
var COMPONENT_MODULES = [calendar_module_1.CalendarModule, dateinput_module_1.DateInputModule];

@@ -47,13 +41,15 @@ /**

}
DateInputsModule.decorators = [
{ type: core_1.NgModule, args: [{
exports: COMPONENT_MODULES,
imports: COMPONENT_MODULES,
providers: [
{ provide: kendo_angular_intl_1.IntlService, useClass: kendo_angular_intl_1.CldrIntlService }
]
},] },
];
/** @nocollapse */
DateInputsModule.ctorParameters = function () { return []; };
return DateInputsModule;
}());
DateInputsModule = __decorate([
core_1.NgModule({
exports: COMPONENT_MODULES,
imports: COMPONENT_MODULES,
providers: [
{ provide: kendo_angular_intl_1.IntlService, useClass: kendo_angular_intl_1.CldrIntlService }
]
})
], DateInputsModule);
exports.DateInputsModule = DateInputsModule;
"use strict";
var calendar_component_1 = require("./calendar/calendar.component");
var calendar_component_1 = require('./calendar/calendar.component');
exports.CalendarComponent = calendar_component_1.CalendarComponent;
var dateinput_component_1 = require("./dateinput/dateinput.component");
var dateinput_component_1 = require('./dateinput/dateinput.component');
exports.DateInputComponent = dateinput_component_1.DateInputComponent;
var calendar_module_1 = require("./calendar/calendar.module");
var calendar_module_1 = require('./calendar/calendar.module');
exports.CalendarModule = calendar_module_1.CalendarModule;
var dateinput_module_1 = require("./dateinput/dateinput.module");
var dateinput_module_1 = require('./dateinput/dateinput.module');
exports.DateInputModule = dateinput_module_1.DateInputModule;
var dateinputs_module_1 = require("./dateinputs.module");
var dateinputs_module_1 = require('./dateinputs.module');
exports.DateInputsModule = dateinputs_module_1.DateInputsModule;
"use strict";
var kendo_date_math_1 = require("@progress/kendo-date-math");
var kendo_date_math_1 = require('@progress/kendo-date-math');
var range = function (start, end) {

@@ -4,0 +4,0 @@ var result = [];

@@ -6,3 +6,3 @@ {

"license": "SEE LICENSE IN LICENSE.md",
"version": "0.3.4",
"version": "0.3.5",
"publishConfig": {

@@ -51,4 +51,4 @@ "registry": "https://registry.npm.telerik.com"

"rxjs": "~5.0.0",
"typescript": "^2.1.0",
"zone.js": "0.7.4",
"typescript": "~2.0.0",
"zone.js": "^0.7.2",
"@progress/kendo-angular-tasks": "^8.0.1",

@@ -55,0 +55,0 @@ "@progress/kendo-theme-default": "^2.10.0",

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