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.5.3 to 0.6.0

dist/es/calendar/models/cell-context.interface.metadata.json

100

dist/es/calendar/calendar.component.js

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

/* tslint:disable:no-forward-ref max-line-length */
import { Component, ChangeDetectionStrategy, ContentChild, EventEmitter, ElementRef, isDevMode, forwardRef, HostBinding, HostListener, Input, Output, Renderer, ViewChild } from '@angular/core';

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

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

@@ -327,51 +328,52 @@ this.element = element;

};
CalendarComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
CALENDAR_VALUE_ACCESSOR,
CALENDAR_RANGE_VALIDATORS,
LocalizationService,
{
provide: L10N_PREFIX,
useValue: 'kendo.calendar'
}
],
selector: 'kendo-calendar',
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"TODAY\"\n >\n </ng-container>\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n (valueChange)=\"handleNavigation($event)\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [value]=\"value\"\n (change)=\"handleDateChange($event)\"\n >\n </kendo-calendar-monthview>\n "
},] },
];
/** @nocollapse */
CalendarComponent.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: NavigationService, },
{ type: Renderer, },
{ type: ScrollSyncService, },
]; };
CalendarComponent.propDecorators = {
'focusedDate': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'rangeValidation': [{ type: Input },],
'value': [{ type: Input },],
'disabled': [{ type: Input },],
'tabIndex': [{ type: Input },],
'navigation': [{ type: Input },],
'valueChange': [{ type: Output },],
'cellTemplate': [{ type: ContentChild, args: [CellTemplateDirective,] },],
'navigationView': [{ type: ViewChild, args: [NavigationComponent,] },],
'monthView': [{ type: ViewChild, args: [MonthViewComponent,] },],
'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",] },],
};
return CalendarComponent;
}());
export { CalendarComponent };
CalendarComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
CALENDAR_VALUE_ACCESSOR,
CALENDAR_RANGE_VALIDATORS,
LocalizationService,
{
provide: L10N_PREFIX,
useValue: 'kendo.calendar'
}
],
selector: 'kendo-calendar',
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"TODAY\"\n >\n </ng-container>\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n (valueChange)=\"handleNavigation($event)\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [value]=\"value\"\n (change)=\"handleDateChange($event)\"\n >\n </kendo-calendar-monthview>\n "
},] },
];
/** @nocollapse */
CalendarComponent.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: NavigationService, },
{ type: Renderer, },
{ type: ScrollSyncService, },
]; };
CalendarComponent.propDecorators = {
'focusedDate': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'rangeValidation': [{ type: Input },],
'value': [{ type: Input },],
'disabled': [{ type: Input },],
'tabIndex': [{ type: Input },],
'navigation': [{ type: Input },],
'valueChange': [{ type: Output },],
'cellTemplate': [{ type: ContentChild, args: [CellTemplateDirective,] },],
'navigationView': [{ type: ViewChild, args: [NavigationComponent,] },],
'monthView': [{ type: ViewChild, args: [MonthViewComponent,] },],
'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",] },],
};

@@ -68,16 +68,17 @@ import { NgModule } from '@angular/core';

*/
export var CalendarModule = (function () {
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;
}());
export { CalendarModule };
CalendarModule.decorators = [
{ type: NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [CommonModule, IntlModule],
providers: CALENDAR_PROVIDERS
},] },
];
/** @nocollapse */
CalendarModule.ctorParameters = function () { return []; };

@@ -10,3 +10,3 @@ import { Component, ChangeDetectionStrategy, EventEmitter, HostBinding, Input, Output } from '@angular/core';

*/
export var HeaderComponent = (function () {
var HeaderComponent = (function () {
function HeaderComponent(service, localization) {

@@ -37,22 +37,23 @@ this.service = service;

};
HeaderComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-header',
template: "\n <span class=\"k-title\">\n {{title}}\n </span>\n <span class=\"k-today\" [class.k-state-disabled]=\"!isInRange\" (click)=\"handleTodayClick()\">\n {{todayMessage}}\n </span>\n "
},] },
];
/** @nocollapse */
HeaderComponent.ctorParameters = function () { return [
{ type: MonthViewService, },
{ type: LocalizationService, },
]; };
HeaderComponent.propDecorators = {
'currentDate': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'today': [{ type: Output },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-header",] },],
};
return HeaderComponent;
}());
export { HeaderComponent };
HeaderComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-header',
template: "\n <span class=\"k-title\">\n {{title}}\n </span>\n <span class=\"k-today\" [class.k-state-disabled]=\"!isInRange\" (click)=\"handleTodayClick()\">\n {{todayMessage}}\n </span>\n "
},] },
];
/** @nocollapse */
HeaderComponent.ctorParameters = function () { return [
{ type: MonthViewService, },
{ type: LocalizationService, },
]; };
HeaderComponent.propDecorators = {
'currentDate': [{ type: Input },],
'min': [{ type: Input },],
'max': [{ type: Input },],
'today': [{ type: Output },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-header",] },],
};

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

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Component, forwardRef } from '@angular/core';

@@ -12,7 +17,8 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

*/
export var CalendarCustomMessagesComponent = (function (_super) {
var CalendarCustomMessagesComponent = (function (_super) {
__extends(CalendarCustomMessagesComponent, _super);
function CalendarCustomMessagesComponent(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}

@@ -26,19 +32,20 @@ Object.defineProperty(CalendarCustomMessagesComponent.prototype, "override", {

});
CalendarCustomMessagesComponent.decorators = [
{ type: Component, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return CalendarCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-calendar-messages',
template: ""
},] },
];
/** @nocollapse */
CalendarCustomMessagesComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
return CalendarCustomMessagesComponent;
}(Messages));
export { CalendarCustomMessagesComponent };
CalendarCustomMessagesComponent.decorators = [
{ type: Component, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return CalendarCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-calendar-messages',
template: ""
},] },
];
/** @nocollapse */
CalendarCustomMessagesComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };

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

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Directive, forwardRef } from '@angular/core';

@@ -12,24 +17,26 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

*/
export var LocalizedMessagesDirective = (function (_super) {
var LocalizedMessagesDirective = (function (_super) {
__extends(LocalizedMessagesDirective, _super);
function LocalizedMessagesDirective(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}
LocalizedMessagesDirective.decorators = [
{ type: Directive, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoCalendarLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
return LocalizedMessagesDirective;
}(Messages));
export { LocalizedMessagesDirective };
LocalizedMessagesDirective.decorators = [
{ type: Directive, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoCalendarLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };

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

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Input } from '@angular/core';

@@ -11,11 +16,12 @@ import { ComponentMessages } from '@progress/kendo-angular-l10n';

*/
export var Messages = (function (_super) {
var Messages = (function (_super) {
__extends(Messages, _super);
function Messages() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}
Messages.propDecorators = {
'today': [{ type: Input },],
};
return Messages;
}(ComponentMessages));
export { Messages };
Messages.propDecorators = {
'today': [{ type: Input },],
};

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

/* tslint:disable:component-selector-name component-selector-type */
import { Component, ChangeDetectionStrategy, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';

@@ -11,3 +12,3 @@ import { VirtualizationComponent } from './virtualization.component';

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

@@ -88,27 +89,28 @@ this.service = service;

};
MonthViewComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-monthview',
template: "\n <kendo-calendar-header\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n (today)=\"handleDateChange($event)\"\n >\n </kendo-calendar-header>\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 <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"viewHeight\"\n [topOffset]=\"viewOffset\"\n [bottomOffset]=\"bottomOffset\"\n [scrollOffsetHeight]=\"viewOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n (activeIndexChange)=\"setActiveDate($event)\"\n >\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 </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
MonthViewComponent.ctorParameters = function () { return [
{ type: MonthViewService, },
{ type: DOMService, },
]; };
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 },],
'virtualization': [{ type: ViewChild, args: [VirtualizationComponent,] },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-monthview",] },],
};
return MonthViewComponent;
}());
export { MonthViewComponent };
MonthViewComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-monthview',
template: "\n <kendo-calendar-header\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n (today)=\"handleDateChange($event)\"\n >\n </kendo-calendar-header>\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 <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"viewHeight\"\n [topOffset]=\"viewOffset\"\n [bottomOffset]=\"bottomOffset\"\n [scrollOffsetHeight]=\"viewOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n (activeIndexChange)=\"setActiveDate($event)\"\n >\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 </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
MonthViewComponent.ctorParameters = function () { return [
{ type: MonthViewService, },
{ type: DOMService, },
]; };
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 },],
'virtualization': [{ type: ViewChild, args: [VirtualizationComponent,] },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-monthview",] },],
};

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

/* tslint:disable:component-selector-name component-selector */
import { Component, ChangeDetectionStrategy, EventEmitter, Input, Output } from '@angular/core';

@@ -9,3 +10,3 @@ import { MonthViewService } from './services/month-view.service';

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

@@ -56,28 +57,29 @@ this.service = service;

};
MonthComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
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;
}());
export { MonthComponent };
MonthComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
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 <ng-template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </ng-template>\n <ng-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 <ng-template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></ng-template>\n </span>\n </td>\n </ng-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 },],
};

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

[{"__symbolic":"module","version":3,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 <ng-template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </ng-template>\n <ng-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 <ng-template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></ng-template>\n </span>\n </td>\n </ng-template>\n </tr>\n "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 <ng-template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </ng-template>\n <ng-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 <ng-template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></ng-template>\n </span>\n </td>\n </ng-template>\n </tr>\n "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}}]

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

/* tslint:disable:component-selector-name component-selector-type */
import { Component, ChangeDetectionStrategy, EventEmitter, HostBinding, Input, Output, ViewChild } from '@angular/core';

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

*/
export var NavigationComponent = (function () {
var NavigationComponent = (function () {
function NavigationComponent(dom, intlService) {

@@ -78,23 +79,24 @@ this.min = new Date(MIN_DATE);

};
NavigationComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-navigation',
template: "\n <span class=\"k-calendar-navigation-highlight\"></span>\n <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"itemHeight\"\n [topOffset]=\"topOffset\"\n [bottomOffset]=\"bottomOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n >\n <ul [ngStyle]=\"style\" class=\"k-reset\">\n <li *ngFor=\"let date of dates;trackBy: trackByDates\" (click)=\"handleDateChange(date)\">\n <span *ngIf=\"!date.getMonth()\" class=\"k-calendar-navigation-marker\">{{date.getFullYear()}}</span>\n <span *ngIf=\"date.getMonth()\">{{monthNames[date.getMonth()]}}</span>\n </li>\n </ul>\n </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
NavigationComponent.ctorParameters = function () { return [
{ type: DOMService, },
{ type: IntlService, },
]; };
NavigationComponent.propDecorators = {
'min': [{ type: Input },],
'max': [{ type: Input },],
'focusedDate': [{ type: Input },],
'valueChange': [{ type: Output },],
'virtualization': [{ type: ViewChild, args: [VirtualizationComponent,] },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-navigation",] },],
};
return NavigationComponent;
}());
export { NavigationComponent };
NavigationComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-navigation',
template: "\n <span class=\"k-calendar-navigation-highlight\"></span>\n <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"itemHeight\"\n [topOffset]=\"topOffset\"\n [bottomOffset]=\"bottomOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n >\n <ul [ngStyle]=\"style\" class=\"k-reset\">\n <li *ngFor=\"let date of dates;trackBy: trackByDates\" (click)=\"handleDateChange(date)\">\n <span *ngIf=\"!date.getMonth()\" class=\"k-calendar-navigation-marker\">{{date.getFullYear()}}</span>\n <span *ngIf=\"date.getMonth()\">{{monthNames[date.getMonth()]}}</span>\n </li>\n </ul>\n </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
NavigationComponent.ctorParameters = function () { return [
{ type: DOMService, },
{ type: IntlService, },
]; };
NavigationComponent.propDecorators = {
'min': [{ type: Input },],
'max': [{ type: Input },],
'focusedDate': [{ type: Input },],
'valueChange': [{ type: Output },],
'virtualization': [{ type: ViewChild, args: [VirtualizationComponent,] },],
'getComponentClass': [{ type: HostBinding, args: ["class.k-calendar-navigation",] },],
};

@@ -74,3 +74,3 @@ import { Injectable } from '@angular/core';

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

@@ -103,8 +103,9 @@ }

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

@@ -13,3 +13,3 @@ import { Injectable } from '@angular/core';

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

@@ -80,10 +80,11 @@ this._intlService = _intlService;

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

@@ -26,8 +26,7 @@ import { Injectable } from '@angular/core';

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

@@ -46,9 +45,10 @@ }

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

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

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

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

}());
export { RowHeightService };

@@ -13,3 +13,3 @@ import { Injectable, NgZone } from '@angular/core';

*/
export var ScrollSyncService = (function () {
var ScrollSyncService = (function () {
function ScrollSyncService(dom, zone) {

@@ -81,11 +81,12 @@ this.dom = dom;

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

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

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

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

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

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

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

@@ -100,1 +102,2 @@ this.scrollObservable = scrollObservable;

}());
export { ScrollerService };

@@ -5,3 +5,3 @@ import { TemplateRef } from '@angular/core';

*
* To define the cell template, nest a `<template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
* To define the cell template, nest a `<ng-template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
*

@@ -18,5 +18,5 @@ * The template context is set to the current component. To get a reference to the current date, use the `let-date` directive.

* <kendo-calendar>
* <template kendoCalendarCellTemplate let-date>
* <ng-template kendoCalendarCellTemplate let-date>
* <span class="custom">{{date.getDate()}}</span>
* </template>
* </ng-template>
* </kendo-calendar>

@@ -23,0 +23,0 @@ * `

@@ -5,3 +5,3 @@ import { Directive, TemplateRef } from '@angular/core';

*
* To define the cell template, nest a `<template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
* To define the cell template, nest a `<ng-template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
*

@@ -18,5 +18,5 @@ * The template context is set to the current component. To get a reference to the current date, use the `let-date` directive.

* <kendo-calendar>
* <template kendoCalendarCellTemplate let-date>
* <ng-template kendoCalendarCellTemplate let-date>
* <span class="custom">{{date.getDate()}}</span>
* </template>
* </ng-template>
* </kendo-calendar>

@@ -30,16 +30,17 @@ * `

*/
export var CellTemplateDirective = (function () {
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;
}());
export { CellTemplateDirective };
CellTemplateDirective.decorators = [
{ type: Directive, args: [{
selector: '[kendoCalendarCellTemplate]'
},] },
];
/** @nocollapse */
CellTemplateDirective.ctorParameters = function () { return [
{ type: TemplateRef, },
]; };

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

/* tslint:disable:component-selector-name component-selector-type */
import { Component, ChangeDetectionStrategy, EventEmitter, ElementRef, HostBinding, Input, Inject, Output, OpaqueToken, Renderer, NgZone } from '@angular/core';

@@ -41,14 +42,11 @@ import { DOMService } from './services/dom.service';

_a[ScrollDirection.Up] = function (step) { return function (value) { return value - step; }; },
_a
);
_a);
var scrollNormalizers = (_b = {},
_b[ScrollDirection.Down] = function (end) { return function (value) { return Math.min(value, end); }; },
_b[ScrollDirection.Up] = function (end) { return function (value) { return Math.max(value, end); }; },
_b
);
_b);
var scrollValidators = (_c = {},
_c[ScrollDirection.Down] = function (end) { return function (start) { return start < end; }; },
_c[ScrollDirection.Up] = function (end) { return function (start) { return start > end; }; },
_c
);
_c);
var differenceToScroll = function (scrollTop, staticOffset, maxScrollDifference) {

@@ -60,3 +58,3 @@ return Math.min(Math.abs(staticOffset - scrollTop), maxScrollDifference);

*/
export var VirtualizationComponent = (function () {
var VirtualizationComponent = (function () {
function VirtualizationComponent(scrollerFactory, container, dom, renderer, zone) {

@@ -207,37 +205,38 @@ this.container = container;

};
VirtualizationComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [{
provide: SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-virtualization',
template: "\n <ng-content></ng-content>\n <div\n class=\"k-scrollable-placeholder\"\n [style.height.px]=\"totalHeight\"\n ></div>\n "
},] },
];
/** @nocollapse */
VirtualizationComponent.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [SCROLLER_FACTORY_TOKEN,] },] },
{ type: ElementRef, },
{ type: DOMService, },
{ type: Renderer, },
{ type: NgZone, },
]; };
VirtualizationComponent.propDecorators = {
'itemHeight': [{ type: Input },],
'topOffset': [{ type: Input },],
'bottomOffset': [{ type: Input },],
'scrollOffsetHeight': [{ type: Input },],
'scrollDuration': [{ type: Input },],
'skip': [{ type: Input },],
'take': [{ type: Input },],
'total': [{ type: Input },],
'activeIndexChange': [{ type: Output },],
'pageChange': [{ type: Output },],
'scrollChange': [{ type: Output },],
'wrapperClasses': [{ type: HostBinding, args: ['class.k-content',] }, { type: HostBinding, args: ['class.k-scrollable',] },],
};
return VirtualizationComponent;
}());
export { VirtualizationComponent };
VirtualizationComponent.decorators = [
{ type: Component, args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [{
provide: SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-virtualization',
template: "\n <ng-content></ng-content>\n <div\n class=\"k-scrollable-placeholder\"\n [style.height.px]=\"totalHeight\"\n ></div>\n "
},] },
];
/** @nocollapse */
VirtualizationComponent.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [SCROLLER_FACTORY_TOKEN,] },] },
{ type: ElementRef, },
{ type: DOMService, },
{ type: Renderer, },
{ type: NgZone, },
]; };
VirtualizationComponent.propDecorators = {
'itemHeight': [{ type: Input },],
'topOffset': [{ type: Input },],
'bottomOffset': [{ type: Input },],
'scrollOffsetHeight': [{ type: Input },],
'scrollDuration': [{ type: Input },],
'skip': [{ type: Input },],
'take': [{ type: Input },],
'total': [{ type: Input },],
'activeIndexChange': [{ type: Output },],
'pageChange': [{ type: Output },],
'scrollChange': [{ type: Output },],
'wrapperClasses': [{ type: HostBinding, args: ['class.k-content',] }, { type: HostBinding, args: ['class.k-scrollable',] },],
};
var _a, _b, _c;

@@ -16,3 +16,3 @@ import { Component, Input, Output, ViewChild, EventEmitter, HostBinding, HostListener, isDevMode, Renderer, forwardRef } from '@angular/core';

*/
export var DateInputComponent = (function () {
var DateInputComponent = (function () {
function DateInputComponent(intl, renderer, localization) {

@@ -491,43 +491,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 },
{ provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
LocalizationService
],
selector: 'kendo-dateinput',
template: "\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment=\"kendo.dateinput.increment|The label for the **Increment** button in the DateInput\"\n increment=\"Increase value\"\n\n i18n-decrement=\"kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput\"\n decrement=\"Decrease value\"\n >\n </ng-container>\n <span class=\"k-dateinput-wrap\">\n <input\n #dateInput\n class=\"k-input\"\n role=\"spinbutton\"\n [title]=\"title\"\n [tabindex]=\"tabIndex\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-valuemin]=\"ariaValueMin\"\n [attr.aria-valuemax]=\"ariaValueMax\"\n [attr.aria-valuenow]=\"ariaValueNow\"\n [attr.aria-valuetext]=\"ariaValueText\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (mouseup)=\"handleMouseUp()\"\n />\n <span *ngIf=\"spinners\" class=\"k-select\" (mousedown)=\"$event.preventDefault()\">\n <span (click)=\"modifyDateSegmentValue(1)\" class=\"k-link k-link-increase\"\n [title]=\"localization.get('increment')\"\n [attr.aria-label]=\"localization.get('increment')\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"modifyDateSegmentValue(-1)\" class=\"k-link k-link-decrease\"\n [title]=\"localization.get('decrement')\"\n [attr.aria-label]=\"localization.get('decrement')\">\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: Renderer, },
{ type: LocalizationService, },
]; };
DateInputComponent.propDecorators = {
'disabled': [{ type: Input },],
'title': [{ type: Input },],
'tabIndex': [{ type: Input },],
'format': [{ type: Input },],
'max': [{ type: Input },],
'min': [{ type: Input },],
'rangeValidation': [{ type: Input },],
'autoCorrect': [{ type: Input },],
'value': [{ type: Input },],
'spinners': [{ type: Input },],
'valueChange': [{ type: Output },],
'onFocus': [{ type: Output, args: ['focus',] },],
'onBlur': [{ type: Output, args: ['blur',] },],
'dateInput': [{ type: ViewChild, args: ['dateInput',] },],
'wrapperClass': [{ type: HostBinding, args: ['class.k-widget',] }, { type: HostBinding, args: ['class.k-dateinput',] },],
'disabledClass': [{ type: HostBinding, args: ['class.k-state-disabled',] },],
'mousescroll': [{ type: HostListener, args: ['mousewheel', ['$event'],] }, { type: HostListener, args: ['onmousewheel', ['$event'],] }, { type: HostListener, args: ['DOMMouseScroll', ['$event'],] },],
'keydown': [{ type: HostListener, args: ['keydown', ['$event'],] },],
'handleInput': [{ type: HostListener, args: ['input', ['$event'],] },],
};
return DateInputComponent;
}());
export { DateInputComponent };
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 },
{ provide: L10N_PREFIX, useValue: 'kendo.dateinput' },
LocalizationService
],
selector: 'kendo-dateinput',
template: "\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment=\"kendo.dateinput.increment|The label for the **Increment** button in the DateInput\"\n increment=\"Increase value\"\n\n i18n-decrement=\"kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput\"\n decrement=\"Decrease value\"\n >\n </ng-container>\n <span class=\"k-dateinput-wrap\">\n <input\n #dateInput\n class=\"k-input\"\n role=\"spinbutton\"\n [title]=\"title\"\n [tabindex]=\"tabIndex\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-valuemin]=\"ariaValueMin\"\n [attr.aria-valuemax]=\"ariaValueMax\"\n [attr.aria-valuenow]=\"ariaValueNow\"\n [attr.aria-valuetext]=\"ariaValueText\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (mouseup)=\"handleMouseUp()\"\n />\n <span *ngIf=\"spinners\" class=\"k-select\" (mousedown)=\"$event.preventDefault()\">\n <span (click)=\"modifyDateSegmentValue(1)\" class=\"k-link k-link-increase\"\n [title]=\"localization.get('increment')\"\n [attr.aria-label]=\"localization.get('increment')\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"modifyDateSegmentValue(-1)\" class=\"k-link k-link-decrease\"\n [title]=\"localization.get('decrement')\"\n [attr.aria-label]=\"localization.get('decrement')\">\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: Renderer, },
{ type: LocalizationService, },
]; };
DateInputComponent.propDecorators = {
'disabled': [{ type: Input },],
'title': [{ type: Input },],
'tabIndex': [{ type: Input },],
'format': [{ type: Input },],
'max': [{ type: Input },],
'min': [{ type: Input },],
'rangeValidation': [{ type: Input },],
'autoCorrect': [{ type: Input },],
'value': [{ type: Input },],
'spinners': [{ type: Input },],
'valueChange': [{ type: Output },],
'onFocus': [{ type: Output, args: ['focus',] },],
'onBlur': [{ type: Output, args: ['blur',] },],
'dateInput': [{ type: ViewChild, args: ['dateInput',] },],
'wrapperClass': [{ type: HostBinding, args: ['class.k-widget',] }, { type: HostBinding, args: ['class.k-dateinput',] },],
'disabledClass': [{ type: HostBinding, args: ['class.k-state-disabled',] },],
'mousescroll': [{ type: HostListener, args: ['mousewheel', ['$event'],] }, { type: HostListener, args: ['onmousewheel', ['$event'],] }, { type: HostListener, args: ['DOMMouseScroll', ['$event'],] },],
'keydown': [{ type: HostListener, args: ['keydown', ['$event'],] },],
'handleInput': [{ type: HostListener, args: ['input', ['$event'],] },],
};
var KendoDate = (function () {

@@ -534,0 +535,0 @@ function KendoDate(intl, format, value) {

@@ -16,15 +16,16 @@ import { NgModule } from '@angular/core';

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

@@ -6,18 +6,18 @@ /**

(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['delete'] = 46] = 'delete';
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["delete"] = 46] = "delete";
})(Keys || (Keys = {}));

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

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Component, forwardRef } from '@angular/core';

@@ -12,7 +17,8 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

*/
export var DateInputCustomMessagesComponent = (function (_super) {
var DateInputCustomMessagesComponent = (function (_super) {
__extends(DateInputCustomMessagesComponent, _super);
function DateInputCustomMessagesComponent(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}

@@ -26,19 +32,20 @@ Object.defineProperty(DateInputCustomMessagesComponent.prototype, "override", {

});
DateInputCustomMessagesComponent.decorators = [
{ type: Component, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return DateInputCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-dateinput-messages',
template: ""
},] },
];
/** @nocollapse */
DateInputCustomMessagesComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
return DateInputCustomMessagesComponent;
}(Messages));
export { DateInputCustomMessagesComponent };
DateInputCustomMessagesComponent.decorators = [
{ type: Component, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return DateInputCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-dateinput-messages',
template: ""
},] },
];
/** @nocollapse */
DateInputCustomMessagesComponent.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };

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

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Directive, forwardRef } from '@angular/core';

@@ -12,24 +17,26 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';

*/
export var LocalizedMessagesDirective = (function (_super) {
var LocalizedMessagesDirective = (function (_super) {
__extends(LocalizedMessagesDirective, _super);
function LocalizedMessagesDirective(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}
LocalizedMessagesDirective.decorators = [
{ type: Directive, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoDateInputLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };
return LocalizedMessagesDirective;
}(Messages));
export { LocalizedMessagesDirective };
LocalizedMessagesDirective.decorators = [
{ type: Directive, args: [{
providers: [
{
provide: Messages,
useExisting: forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoDateInputLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: LocalizationService, },
]; };

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

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Input } from '@angular/core';

@@ -11,12 +16,13 @@ import { ComponentMessages } from '@progress/kendo-angular-l10n';

*/
export var Messages = (function (_super) {
var Messages = (function (_super) {
__extends(Messages, _super);
function Messages() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}
Messages.propDecorators = {
'decrement': [{ type: Input },],
'increment': [{ type: Input },],
};
return Messages;
}(ComponentMessages));
export { Messages };
Messages.propDecorators = {
'decrement': [{ type: Input },],
'increment': [{ type: Input },],
};

@@ -37,17 +37,18 @@ import { NgModule } from '@angular/core';

*/
export var DateInputsModule = (function () {
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;
}());
export { DateInputsModule };
DateInputsModule.decorators = [
{ type: NgModule, args: [{
exports: COMPONENT_MODULES,
imports: COMPONENT_MODULES,
providers: [
{ provide: IntlService, useClass: CldrIntlService }
]
},] },
];
/** @nocollapse */
DateInputsModule.ctorParameters = function () { return []; };
import { CellContext } from './calendar/models/cell-context.interface';
declare const range: (start: number, end: number) => number[];
declare const isInDatesArray: (date: Date, dates?: Date[]) => boolean;
declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
declare const dateInRange: (candidate: Date, min: Date, max: Date) => Date;
declare const guid: () => string;
declare const noop: (_: any) => void;
declare const isDocumentAvailable: () => boolean;
declare const cellContextToString: (ctx: CellContext) => string;
declare const stringifyClassObject: (classes: {
/**
* @hidden
*/
export declare const range: (start: number, end: number) => number[];
/**
* @hidden
*/
export declare const isInDatesArray: (date: Date, dates?: Date[]) => boolean;
/**
* @hidden
*/
export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
/**
* @hidden
*/
export declare const dateInRange: (candidate: Date, min: Date, max: Date) => Date;
/**
* @hidden
*/
export declare const guid: () => string;
/**
* @hidden
*/
export declare const noop: (_: any) => void;
/**
* @hidden
*/
export declare const isDocumentAvailable: () => boolean;
/**
* @hidden
*/
export declare const cellContextToString: (ctx: CellContext) => string;
/**
* @hidden
*/
export declare const stringifyClassObject: (classes: {
[x: string]: boolean;
}) => string;
declare const generateDates: (start: Date, count: number) => Date[];
declare const monthsDistance: (d1: Date, d2: Date) => number;
declare const shiftWeekNames: (names: string[], offset: number) => string[];
export { cellContextToString, dateInRange, generateDates, guid, isDocumentAvailable, isInDatesArray, isInRange, monthsDistance, range, noop, stringifyClassObject, shiftWeekNames };
/**
* @hidden
*/
export declare const generateDates: (start: Date, count: number) => Date[];
/**
* @hidden
*/
export declare const monthsDistance: (d1: Date, d2: Date) => number;
/**
* @hidden
*/
export declare const shiftWeekNames: (names: string[], offset: number) => string[];

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

/* tslint:disable:no-bitwise */
import { addMonths, firstDayOfMonth, lastDayOfMonth } from '@progress/kendo-date-math';
var range = function (start, end) {
/**
* @hidden
*/
export var range = function (start, end) {
var result = [];

@@ -9,8 +13,17 @@ for (var i = start; i < end; i++) {

};
var isInDatesArray = function (date, dates) {
/**
* @hidden
*/
export var isInDatesArray = function (date, dates) {
if (dates === void 0) { dates = []; }
return (!!dates.length && firstDayOfMonth(dates[0]) <= date && date <= lastDayOfMonth(dates[dates.length - 1]));
};
var isInRange = function (candidate, min, max) { return (!candidate || !((min && min > candidate) || (max && max < candidate))); };
var dateInRange = function (candidate, min, max) {
/**
* @hidden
*/
export var isInRange = function (candidate, min, max) { return (!candidate || !((min && min > candidate) || (max && max < candidate))); };
/**
* @hidden
*/
export var dateInRange = function (candidate, min, max) {
if (!candidate) {

@@ -27,4 +40,6 @@ return candidate;

};
/* tslint:disable:no-bitwise */
var guid = function () {
/**
* @hidden
*/
export var guid = function () {
var id = "", random;

@@ -40,15 +55,35 @@ for (var i = 0; i < 32; i++) {

};
// tslint:disable:no-empty
var noop = function (_) { };
var isDocumentAvailable = function () {
/**
* @hidden
*/
export var noop = function (_) { }; // tslint:disable-line:no-empty
/**
* @hidden
*/
// tslint:disable-line:no-empty
export var isDocumentAvailable = function () {
return typeof document !== 'undefined';
};
var cellContextToString = function (ctx) { return (ctx ? "" + ctx.isFocused + ctx.isSelected + ctx.isWeekend + ctx.id : 'null'); };
var stringifyClassObject = function (classes) {
/**
* @hidden
*/
export var cellContextToString = function (ctx) { return (ctx ? "" + ctx.isFocused + ctx.isSelected + ctx.isWeekend + ctx.id : 'null'); };
/**
* @hidden
*/
export var stringifyClassObject = function (classes) {
var pushToAcc = function (acc, cls) { return classes[cls] ? acc.concat(cls) : acc; };
return Object.keys(classes).reduce(pushToAcc, []).join(' ');
};
var generateDates = function (start, count) { return (range(0, count).map(function (i) { return addMonths(start, i); })); };
var monthsDistance = function (d1, d2) { return (((d1.getFullYear() - d2.getFullYear())) * 12 + (d1.getMonth() - d2.getMonth())); };
var shiftWeekNames = function (names, offset) { return (names.slice(offset).concat(names.slice(0, offset))); };
export { cellContextToString, dateInRange, generateDates, guid, isDocumentAvailable, isInDatesArray, isInRange, monthsDistance, range, noop, stringifyClassObject, shiftWeekNames };
/**
* @hidden
*/
export var generateDates = function (start, count) { return (range(0, count).map(function (i) { return addMonths(start, i); })); };
/**
* @hidden
*/
export var monthsDistance = function (d1, d2) { return (((d1.getFullYear() - d2.getFullYear())) * 12 + (d1.getMonth() - d2.getMonth())); };
/**
* @hidden
*/
export var shiftWeekNames = function (names, offset) { return (names.slice(offset).concat(names.slice(0, offset))); };

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

[{"__symbolic":"module","version":3,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":4,"character":14},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":14,"character":23},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":18,"character":18},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":22,"character":20},"guid":{"__symbolic":"error","message":"Function call not supported","line":32,"character":13},"noop":{"__symbolic":"error","message":"Function call not supported","line":48,"character":13},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":50,"character":28},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":54,"character":28},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":58,"character":29},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":64,"character":22},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":68,"character":23},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":72,"character":23}}},{"__symbolic":"module","version":1,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":4,"character":14},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":14,"character":23},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":18,"character":18},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":22,"character":20},"guid":{"__symbolic":"error","message":"Function call not supported","line":32,"character":13},"noop":{"__symbolic":"error","message":"Function call not supported","line":48,"character":13},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":50,"character":28},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":54,"character":28},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":58,"character":29},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":64,"character":22},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":68,"character":23},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":72,"character":23}}}]
[{"__symbolic":"module","version":3,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":7,"character":21},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":20,"character":30},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":27,"character":25},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":34,"character":27},"guid":{"__symbolic":"error","message":"Function call not supported","line":46,"character":20},"noop":{"__symbolic":"error","message":"Function call not supported","line":64,"character":20},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":69,"character":35},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":76,"character":35},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":83,"character":36},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":92,"character":29},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":99,"character":30},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":106,"character":30}}},{"__symbolic":"module","version":1,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":7,"character":21},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":20,"character":30},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":27,"character":25},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":34,"character":27},"guid":{"__symbolic":"error","message":"Function call not supported","line":46,"character":20},"noop":{"__symbolic":"error","message":"Function call not supported","line":64,"character":20},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":69,"character":35},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":76,"character":35},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":83,"character":36},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":92,"character":29},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":99,"character":30},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":106,"character":30}}}]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:no-forward-ref max-line-length */
var core_1 = require('@angular/core');
var forms_1 = require('@angular/forms');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var navigation_component_1 = require('./navigation.component');
var month_view_component_1 = require('./month-view.component');
var navigation_service_1 = require('./services/navigation.service');
var scroll_sync_service_1 = require('./services/scroll-sync.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_angular_l10n_1 = require("@progress/kendo-angular-l10n");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var navigation_component_1 = require("./navigation.component");
var month_view_component_1 = require("./month-view.component");
var navigation_service_1 = require("./services/navigation.service");
var scroll_sync_service_1 = require("./services/scroll-sync.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';

@@ -328,52 +329,52 @@ var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max';

};
CalendarComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
providers: [
exports.CALENDAR_VALUE_ACCESSOR,
exports.CALENDAR_RANGE_VALIDATORS,
kendo_angular_l10n_1.LocalizationService,
{
provide: kendo_angular_l10n_1.L10N_PREFIX,
useValue: 'kendo.calendar'
}
],
selector: 'kendo-calendar',
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"TODAY\"\n >\n </ng-container>\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n (valueChange)=\"handleNavigation($event)\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [value]=\"value\"\n (change)=\"handleDateChange($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, },
{ type: scroll_sync_service_1.ScrollSyncService, },
]; };
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 },],
'navigation': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'cellTemplate': [{ type: core_1.ContentChild, args: [cell_template_directive_1.CellTemplateDirective,] },],
'navigationView': [{ type: core_1.ViewChild, args: [navigation_component_1.NavigationComponent,] },],
'monthView': [{ type: core_1.ViewChild, args: [month_view_component_1.MonthViewComponent,] },],
'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",] },],
};
return CalendarComponent;
}());
CalendarComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
providers: [
exports.CALENDAR_VALUE_ACCESSOR,
exports.CALENDAR_RANGE_VALIDATORS,
kendo_angular_l10n_1.LocalizationService,
{
provide: kendo_angular_l10n_1.L10N_PREFIX,
useValue: 'kendo.calendar'
}
],
selector: 'kendo-calendar',
template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"TODAY\"\n >\n </ng-container>\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n (valueChange)=\"handleNavigation($event)\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-monthview\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"cellTemplate?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [value]=\"value\"\n (change)=\"handleDateChange($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, },
{ type: scroll_sync_service_1.ScrollSyncService, },
]; };
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 },],
'navigation': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'cellTemplate': [{ type: core_1.ContentChild, args: [cell_template_directive_1.CellTemplateDirective,] },],
'navigationView': [{ type: core_1.ViewChild, args: [navigation_component_1.NavigationComponent,] },],
'monthView': [{ type: core_1.ViewChild, args: [month_view_component_1.MonthViewComponent,] },],
'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",] },],
};
exports.CalendarComponent = CalendarComponent;
"use strict";
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 header_component_1 = require('./header.component');
var virtualization_component_1 = require('./virtualization.component');
var navigation_component_1 = require('./navigation.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 dom_service_1 = require('./services/dom.service');
var month_view_service_1 = require('./services/month-view.service');
var navigation_service_1 = require('./services/navigation.service');
var scroll_sync_service_1 = require('./services/scroll-sync.service');
var localized_messages_directive_1 = require('./localization/localized-messages.directive');
var calendar_custom_messages_component_1 = require('./localization/calendar-custom-messages.component');
Object.defineProperty(exports, "__esModule", { value: true });
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 header_component_1 = require("./header.component");
var virtualization_component_1 = require("./virtualization.component");
var navigation_component_1 = require("./navigation.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 dom_service_1 = require("./services/dom.service");
var month_view_service_1 = require("./services/month-view.service");
var navigation_service_1 = require("./services/navigation.service");
var scroll_sync_service_1 = require("./services/scroll-sync.service");
var localized_messages_directive_1 = require("./localization/localized-messages.directive");
var calendar_custom_messages_component_1 = require("./localization/calendar-custom-messages.component");
var COMPONENT_DIRECTIVES = [

@@ -72,14 +73,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.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 []; };
exports.CalendarModule = CalendarModule;
"use strict";
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var month_view_service_1 = require('./services/month-view.service');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var util_1 = require('../util');
var dates_model_1 = require('./models/dates.model');
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
var month_view_service_1 = require("./services/month-view.service");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var util_1 = require("../util");
var dates_model_1 = require("./models/dates.model");
/**

@@ -37,23 +38,23 @@ * @hidden

};
HeaderComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-header',
template: "\n <span class=\"k-title\">\n {{title}}\n </span>\n <span class=\"k-today\" [class.k-state-disabled]=\"!isInRange\" (click)=\"handleTodayClick()\">\n {{todayMessage}}\n </span>\n "
},] },
];
/** @nocollapse */
HeaderComponent.ctorParameters = function () { return [
{ type: month_view_service_1.MonthViewService, },
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
HeaderComponent.propDecorators = {
'currentDate': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'today': [{ type: core_1.Output },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-header",] },],
};
return HeaderComponent;
}());
HeaderComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-header',
template: "\n <span class=\"k-title\">\n {{title}}\n </span>\n <span class=\"k-today\" [class.k-state-disabled]=\"!isInRange\" (click)=\"handleTodayClick()\">\n {{todayMessage}}\n </span>\n "
},] },
];
/** @nocollapse */
HeaderComponent.ctorParameters = function () { return [
{ type: month_view_service_1.MonthViewService, },
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
HeaderComponent.propDecorators = {
'currentDate': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'today': [{ type: core_1.Output },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-header",] },],
};
exports.HeaderComponent = HeaderComponent;
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var messages_1 = require('./messages');
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
var messages_1 = require("./messages");
/**

@@ -16,4 +22,5 @@ * Custom component messages override default component messages.

function CalendarCustomMessagesComponent(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}

@@ -27,20 +34,20 @@ Object.defineProperty(CalendarCustomMessagesComponent.prototype, "override", {

});
CalendarCustomMessagesComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return CalendarCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-calendar-messages',
template: ""
},] },
];
/** @nocollapse */
CalendarCustomMessagesComponent.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
return CalendarCustomMessagesComponent;
}(messages_1.Messages));
CalendarCustomMessagesComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return CalendarCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-calendar-messages',
template: ""
},] },
];
/** @nocollapse */
CalendarCustomMessagesComponent.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
exports.CalendarCustomMessagesComponent = CalendarCustomMessagesComponent;
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var messages_1 = require('./messages');
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
var messages_1 = require("./messages");
/**

@@ -16,22 +22,23 @@ * @hidden

function LocalizedMessagesDirective(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}
LocalizedMessagesDirective.decorators = [
{ type: core_1.Directive, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoCalendarLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
return LocalizedMessagesDirective;
}(messages_1.Messages));
LocalizedMessagesDirective.decorators = [
{ type: core_1.Directive, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoCalendarLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
exports.LocalizedMessagesDirective = LocalizedMessagesDirective;
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
/**

@@ -15,9 +21,9 @@ * @hidden

function Messages() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}
Messages.propDecorators = {
'today': [{ type: core_1.Input },],
};
return Messages;
}(kendo_angular_l10n_1.ComponentMessages));
Messages.propDecorators = {
'today': [{ type: core_1.Input },],
};
exports.Messages = Messages;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -3,0 +4,0 @@ * @hidden

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @hidden
*/
var Action;
(function (Action) {

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

Action[Action["LastInView"] = 7] = "LastInView";
})(exports.Action || (exports.Action = {}));
var Action = exports.Action;
})(Action = exports.Action || (exports.Action = {}));
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:component-selector-name component-selector-type */
var core_1 = require('@angular/core');
var virtualization_component_1 = require('./virtualization.component');
var dates_model_1 = require('./models/dates.model');
var dom_service_1 = require('./services/dom.service');
var month_view_service_1 = require('./services/month-view.service');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var util_1 = require('../util');
var core_1 = require("@angular/core");
var virtualization_component_1 = require("./virtualization.component");
var dates_model_1 = require("./models/dates.model");
var dom_service_1 = require("./services/dom.service");
var month_view_service_1 = require("./services/month-view.service");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var util_1 = require("../util");
/**

@@ -89,28 +90,28 @@ * @hidden

};
MonthViewComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-monthview',
template: "\n <kendo-calendar-header\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n (today)=\"handleDateChange($event)\"\n >\n </kendo-calendar-header>\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 <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"viewHeight\"\n [topOffset]=\"viewOffset\"\n [bottomOffset]=\"bottomOffset\"\n [scrollOffsetHeight]=\"viewOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n (activeIndexChange)=\"setActiveDate($event)\"\n >\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 </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
MonthViewComponent.ctorParameters = function () { return [
{ type: month_view_service_1.MonthViewService, },
{ type: dom_service_1.DOMService, },
]; };
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 },],
'virtualization': [{ type: core_1.ViewChild, args: [virtualization_component_1.VirtualizationComponent,] },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-monthview",] },],
};
return MonthViewComponent;
}());
MonthViewComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-monthview',
template: "\n <kendo-calendar-header\n [currentDate]=\"activeDate\"\n [min]=\"min\"\n [max]=\"max\"\n (today)=\"handleDateChange($event)\"\n >\n </kendo-calendar-header>\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 <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"viewHeight\"\n [topOffset]=\"viewOffset\"\n [bottomOffset]=\"bottomOffset\"\n [scrollOffsetHeight]=\"viewOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n (activeIndexChange)=\"setActiveDate($event)\"\n >\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 </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
MonthViewComponent.ctorParameters = function () { return [
{ type: month_view_service_1.MonthViewService, },
{ type: dom_service_1.DOMService, },
]; };
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 },],
'virtualization': [{ type: core_1.ViewChild, args: [virtualization_component_1.VirtualizationComponent,] },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-monthview",] },],
};
exports.MonthViewComponent = MonthViewComponent;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* 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");
/**

@@ -57,29 +58,29 @@ * @hidden

};
MonthComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
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;
}());
MonthComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
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 <ng-template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </ng-template>\n <ng-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 <ng-template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></ng-template>\n </span>\n </td>\n </ng-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 },],
};
exports.MonthComponent = MonthComponent;

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

[{"__symbolic":"module","version":3,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 <ng-template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </ng-template>\n <ng-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 <ng-template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></ng-template>\n </span>\n </td>\n </ng-template>\n </tr>\n "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"MonthComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"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 <ng-template [ngIf]=\"showWeekNumbers\">\n <td *ngIf=\"!firstDate(row)\">&nbsp;</td>\n <td *ngIf=\"firstDate(row)\">{{service.weekNumber(firstDate(row))}}</td>\n </ng-template>\n <ng-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 <ng-template [ngIf]=\"!templateRef\">{{service.dayValue(cellContext.value)}}</ng-template>\n <ng-template\n [ngIf]=\"templateRef\"\n [ngTemplateOutlet]=\"templateRef\"\n [ngOutletContext]=\"{ $implicit: cellContext.value, cellContext: cellContext }\"\n ></ng-template>\n </span>\n </td>\n </ng-template>\n </tr>\n "}]}],"members":{"isActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"cellUID":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"focusedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"selectedDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewDate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showWeekNumbers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"viewIndex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"templateRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./services/month-view.service","name":"MonthViewService"},{"__symbolic":"reference","module":"@progress/kendo-angular-intl","name":"IntlService"}]}],"ngOnChanges":[{"__symbolic":"method"}],"handleClick":[{"__symbolic":"method"}],"trackRow":[{"__symbolic":"method"}],"trackCell":[{"__symbolic":"method"}],"firstDate":[{"__symbolic":"method"}],"getStyles":[{"__symbolic":"method"}]}}}}]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:component-selector-name component-selector-type */
var core_1 = require('@angular/core');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
var virtualization_component_1 = require('./virtualization.component');
var dates_model_1 = require('./models/dates.model');
var dom_service_1 = require('./services/dom.service');
var kendo_date_math_1 = require('@progress/kendo-date-math');
var util_1 = require('../util');
var core_1 = require("@angular/core");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var virtualization_component_1 = require("./virtualization.component");
var dates_model_1 = require("./models/dates.model");
var dom_service_1 = require("./services/dom.service");
var kendo_date_math_1 = require("@progress/kendo-date-math");
var util_1 = require("../util");
/**

@@ -79,24 +80,24 @@ * @hidden

};
NavigationComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-navigation',
template: "\n <span class=\"k-calendar-navigation-highlight\"></span>\n <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"itemHeight\"\n [topOffset]=\"topOffset\"\n [bottomOffset]=\"bottomOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n >\n <ul [ngStyle]=\"style\" class=\"k-reset\">\n <li *ngFor=\"let date of dates;trackBy: trackByDates\" (click)=\"handleDateChange(date)\">\n <span *ngIf=\"!date.getMonth()\" class=\"k-calendar-navigation-marker\">{{date.getFullYear()}}</span>\n <span *ngIf=\"date.getMonth()\">{{monthNames[date.getMonth()]}}</span>\n </li>\n </ul>\n </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
NavigationComponent.ctorParameters = function () { return [
{ type: dom_service_1.DOMService, },
{ type: kendo_angular_intl_1.IntlService, },
]; };
NavigationComponent.propDecorators = {
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'focusedDate': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'virtualization': [{ type: core_1.ViewChild, args: [virtualization_component_1.VirtualizationComponent,] },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-navigation",] },],
};
return NavigationComponent;
}());
NavigationComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
selector: 'kendo-calendar-navigation',
template: "\n <span class=\"k-calendar-navigation-highlight\"></span>\n <kendo-calendar-virtualization\n [skip]=\"skip\"\n [take]=\"take\"\n [total]=\"total\"\n [itemHeight]=\"itemHeight\"\n [topOffset]=\"topOffset\"\n [bottomOffset]=\"bottomOffset\"\n (pageChange)=\"pageChange($event)\"\n (scrollChange)=\"scrollChange($event)\"\n >\n <ul [ngStyle]=\"style\" class=\"k-reset\">\n <li *ngFor=\"let date of dates;trackBy: trackByDates\" (click)=\"handleDateChange(date)\">\n <span *ngIf=\"!date.getMonth()\" class=\"k-calendar-navigation-marker\">{{date.getFullYear()}}</span>\n <span *ngIf=\"date.getMonth()\">{{monthNames[date.getMonth()]}}</span>\n </li>\n </ul>\n </kendo-calendar-virtualization>\n "
},] },
];
/** @nocollapse */
NavigationComponent.ctorParameters = function () { return [
{ type: dom_service_1.DOMService, },
{ type: kendo_angular_intl_1.IntlService, },
]; };
NavigationComponent.propDecorators = {
'min': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'focusedDate': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'virtualization': [{ type: core_1.ViewChild, args: [virtualization_component_1.VirtualizationComponent,] },],
'getComponentClass': [{ type: core_1.HostBinding, args: ["class.k-calendar-navigation",] },],
};
exports.NavigationComponent = NavigationComponent;
"use strict";
var core_1 = require('@angular/core');
var util_1 = require('../../util');
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var util_1 = require("../../util");
var monthHeader = function () {

@@ -103,9 +104,9 @@ var div = document.createElement('div');

};
DOMService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
DOMService.ctorParameters = function () { return []; };
return DOMService;
}());
DOMService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
DOMService.ctorParameters = function () { return []; };
exports.DOMService = DOMService;
"use strict";
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');
Object.defineProperty(exports, "__esModule", { value: true });
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 = [[]];

@@ -80,11 +81,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.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
MonthViewService.ctorParameters = function () { return [
{ type: kendo_angular_intl_1.IntlService, },
]; };
exports.MonthViewService = MonthViewService;
"use strict";
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');
Object.defineProperty(exports, "__esModule", { value: true });
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 = {

@@ -27,4 +28,3 @@ '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);
/**

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

};
NavigationService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
NavigationService.ctorParameters = function () { return []; };
return NavigationService;
}());
NavigationService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
NavigationService.ctorParameters = function () { return []; };
exports.NavigationService = NavigationService;
var _a;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -3,0 +4,0 @@ * @hidden

"use strict";
var core_1 = require('@angular/core');
require('rxjs/add/observable/merge');
require('rxjs/add/operator/bufferCount');
require('rxjs/add/operator/filter');
require('rxjs/add/operator/map');
var dom_service_1 = require('./dom.service');
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
require("rxjs/add/observable/merge");
require("rxjs/add/operator/bufferCount");
require("rxjs/add/operator/filter");
require("rxjs/add/operator/map");
var dom_service_1 = require("./dom.service");
//const isUserScrolling = (xs: ScrollEvent[]): boolean => xs[0].target === xs[1].target;

@@ -81,12 +82,12 @@ var divideByMagnitude = function (magnitude) { return function (x) { return Math.floor(x / magnitude); }; };

};
ScrollSyncService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
ScrollSyncService.ctorParameters = function () { return [
{ type: dom_service_1.DOMService, },
{ type: core_1.NgZone, },
]; };
return ScrollSyncService;
}());
ScrollSyncService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
ScrollSyncService.ctorParameters = function () { return [
{ type: dom_service_1.DOMService, },
{ type: core_1.NgZone, },
]; };
exports.ScrollSyncService = ScrollSyncService;
"use strict";
var Observable_1 = require('rxjs/Observable');
var ReplaySubject_1 = require('rxjs/ReplaySubject');
Object.defineProperty(exports, "__esModule", { value: true });
var Observable_1 = require("rxjs/Observable");
var ReplaySubject_1 = require("rxjs/ReplaySubject");
var normalize = function (x) { return Math.max(x, 0); };

@@ -5,0 +6,0 @@ /**

@@ -5,3 +5,3 @@ import { TemplateRef } from '@angular/core';

*
* To define the cell template, nest a `<template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
* To define the cell template, nest a `<ng-template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
*

@@ -18,5 +18,5 @@ * The template context is set to the current component. To get a reference to the current date, use the `let-date` directive.

* <kendo-calendar>
* <template kendoCalendarCellTemplate let-date>
* <ng-template kendoCalendarCellTemplate let-date>
* <span class="custom">{{date.getDate()}}</span>
* </template>
* </ng-template>
* </kendo-calendar>

@@ -23,0 +23,0 @@ * `

"use strict";
var core_1 = require('@angular/core');
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
/**
* Used for rendering the cell content of the Calendar.
*
* To define the cell template, nest a `<template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
* To define the cell template, nest a `<ng-template>` tag with the `kendoCalendarCellTemplate` directive inside the component tag.
*

@@ -18,5 +19,5 @@ * The template context is set to the current component. To get a reference to the current date, use the `let-date` directive.

* <kendo-calendar>
* <template kendoCalendarCellTemplate let-date>
* <ng-template kendoCalendarCellTemplate let-date>
* <span class="custom">{{date.getDate()}}</span>
* </template>
* </ng-template>
* </kendo-calendar>

@@ -34,13 +35,13 @@ * `

}
CellTemplateDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: '[kendoCalendarCellTemplate]'
},] },
];
/** @nocollapse */
CellTemplateDirective.ctorParameters = function () { return [
{ type: core_1.TemplateRef, },
]; };
return CellTemplateDirective;
}());
CellTemplateDirective.decorators = [
{ type: core_1.Directive, args: [{
selector: '[kendoCalendarCellTemplate]'
},] },
];
/** @nocollapse */
CellTemplateDirective.ctorParameters = function () { return [
{ type: core_1.TemplateRef, },
]; };
exports.CellTemplateDirective = CellTemplateDirective;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:component-selector-name component-selector-type */
var core_1 = require('@angular/core');
var dom_service_1 = require('./services/dom.service');
var row_height_service_1 = require('./services/row-height.service');
var scroller_service_1 = require('./services/scroller.service');
var util_1 = require('../util');
var Rx_1 = require('rxjs/Rx');
var Observable_1 = require('rxjs/Observable');
var Subject_1 = require('rxjs/Subject');
require('rxjs/add/observable/fromEvent');
require('rxjs/add/observable/interval');
require('rxjs/add/observable/empty');
require('rxjs/add/operator/combineLatest');
require('rxjs/add/operator/filter');
require('rxjs/add/operator/map');
require('rxjs/add/operator/scan');
require('rxjs/add/operator/takeWhile');
var core_1 = require("@angular/core");
var dom_service_1 = require("./services/dom.service");
var row_height_service_1 = require("./services/row-height.service");
var scroller_service_1 = require("./services/scroller.service");
var util_1 = require("../util");
var Rx_1 = require("rxjs/Rx");
var Observable_1 = require("rxjs/Observable");
var Subject_1 = require("rxjs/Subject");
require("rxjs/add/observable/fromEvent");
require("rxjs/add/observable/interval");
require("rxjs/add/observable/empty");
require("rxjs/add/operator/combineLatest");
require("rxjs/add/operator/filter");
require("rxjs/add/operator/map");
require("rxjs/add/operator/scan");
require("rxjs/add/operator/takeWhile");
/**

@@ -34,7 +35,7 @@ * @hidden

*/
var ScrollDirection;
(function (ScrollDirection) {
ScrollDirection[ScrollDirection["Up"] = 0] = "Up";
ScrollDirection[ScrollDirection["Down"] = 1] = "Down";
})(exports.ScrollDirection || (exports.ScrollDirection = {}));
var ScrollDirection = exports.ScrollDirection;
})(ScrollDirection = exports.ScrollDirection || (exports.ScrollDirection = {}));
;

@@ -45,14 +46,11 @@ var FRAME_DURATION = 17;

_a[ScrollDirection.Up] = function (step) { return function (value) { return value - step; }; },
_a
);
_a);
var scrollNormalizers = (_b = {},
_b[ScrollDirection.Down] = function (end) { return function (value) { return Math.min(value, end); }; },
_b[ScrollDirection.Up] = function (end) { return function (value) { return Math.max(value, end); }; },
_b
);
_b);
var scrollValidators = (_c = {},
_c[ScrollDirection.Down] = function (end) { return function (start) { return start < end; }; },
_c[ScrollDirection.Up] = function (end) { return function (start) { return start > end; }; },
_c
);
_c);
var differenceToScroll = function (scrollTop, staticOffset, maxScrollDifference) {

@@ -210,38 +208,38 @@ return Math.min(Math.abs(staticOffset - scrollTop), maxScrollDifference);

};
VirtualizationComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
providers: [{
provide: exports.SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-virtualization',
template: "\n <ng-content></ng-content>\n <div\n class=\"k-scrollable-placeholder\"\n [style.height.px]=\"totalHeight\"\n ></div>\n "
},] },
];
/** @nocollapse */
VirtualizationComponent.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core_1.Inject, args: [exports.SCROLLER_FACTORY_TOKEN,] },] },
{ type: core_1.ElementRef, },
{ type: dom_service_1.DOMService, },
{ type: core_1.Renderer, },
{ type: core_1.NgZone, },
]; };
VirtualizationComponent.propDecorators = {
'itemHeight': [{ type: core_1.Input },],
'topOffset': [{ type: core_1.Input },],
'bottomOffset': [{ type: core_1.Input },],
'scrollOffsetHeight': [{ type: core_1.Input },],
'scrollDuration': [{ type: core_1.Input },],
'skip': [{ type: core_1.Input },],
'take': [{ type: core_1.Input },],
'total': [{ type: core_1.Input },],
'activeIndexChange': [{ type: core_1.Output },],
'pageChange': [{ type: core_1.Output },],
'scrollChange': [{ type: core_1.Output },],
'wrapperClasses': [{ type: core_1.HostBinding, args: ['class.k-content',] }, { type: core_1.HostBinding, args: ['class.k-scrollable',] },],
};
return VirtualizationComponent;
}());
VirtualizationComponent.decorators = [
{ type: core_1.Component, args: [{
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
providers: [{
provide: exports.SCROLLER_FACTORY_TOKEN,
useValue: DEFAULT_SCROLLER_FACTORY
}],
selector: 'kendo-calendar-virtualization',
template: "\n <ng-content></ng-content>\n <div\n class=\"k-scrollable-placeholder\"\n [style.height.px]=\"totalHeight\"\n ></div>\n "
},] },
];
/** @nocollapse */
VirtualizationComponent.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core_1.Inject, args: [exports.SCROLLER_FACTORY_TOKEN,] },] },
{ type: core_1.ElementRef, },
{ type: dom_service_1.DOMService, },
{ type: core_1.Renderer, },
{ type: core_1.NgZone, },
]; };
VirtualizationComponent.propDecorators = {
'itemHeight': [{ type: core_1.Input },],
'topOffset': [{ type: core_1.Input },],
'bottomOffset': [{ type: core_1.Input },],
'scrollOffsetHeight': [{ type: core_1.Input },],
'scrollDuration': [{ type: core_1.Input },],
'skip': [{ type: core_1.Input },],
'take': [{ type: core_1.Input },],
'total': [{ type: core_1.Input },],
'activeIndexChange': [{ type: core_1.Output },],
'pageChange': [{ type: core_1.Output },],
'scrollChange': [{ type: core_1.Output },],
'wrapperClasses': [{ type: core_1.HostBinding, args: ['class.k-content',] }, { type: core_1.HostBinding, args: ['class.k-scrollable',] },],
};
exports.VirtualizationComponent = VirtualizationComponent;
var _a, _b, _c;
"use strict";
var core_1 = require('@angular/core');
var min_validator_1 = require('../validators/min.validator');
var max_validator_1 = require('../validators/max.validator');
var keys_enum_1 = require('./keys.enum');
var forms_1 = require('@angular/forms');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
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');
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var min_validator_1 = require("../validators/min.validator");
var max_validator_1 = require("../validators/max.validator");
var keys_enum_1 = require("./keys.enum");
var forms_1 = require("@angular/forms");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
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 MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min';

@@ -491,43 +492,43 @@ var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max';

};
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 },
{ provide: kendo_angular_l10n_1.L10N_PREFIX, useValue: 'kendo.dateinput' },
kendo_angular_l10n_1.LocalizationService
],
selector: 'kendo-dateinput',
template: "\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment=\"kendo.dateinput.increment|The label for the **Increment** button in the DateInput\"\n increment=\"Increase value\"\n\n i18n-decrement=\"kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput\"\n decrement=\"Decrease value\"\n >\n </ng-container>\n <span class=\"k-dateinput-wrap\">\n <input\n #dateInput\n class=\"k-input\"\n role=\"spinbutton\"\n [title]=\"title\"\n [tabindex]=\"tabIndex\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-valuemin]=\"ariaValueMin\"\n [attr.aria-valuemax]=\"ariaValueMax\"\n [attr.aria-valuenow]=\"ariaValueNow\"\n [attr.aria-valuetext]=\"ariaValueText\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (mouseup)=\"handleMouseUp()\"\n />\n <span *ngIf=\"spinners\" class=\"k-select\" (mousedown)=\"$event.preventDefault()\">\n <span (click)=\"modifyDateSegmentValue(1)\" class=\"k-link k-link-increase\"\n [title]=\"localization.get('increment')\"\n [attr.aria-label]=\"localization.get('increment')\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"modifyDateSegmentValue(-1)\" class=\"k-link k-link-decrease\"\n [title]=\"localization.get('decrement')\"\n [attr.aria-label]=\"localization.get('decrement')\">\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.Renderer, },
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
DateInputComponent.propDecorators = {
'disabled': [{ type: core_1.Input },],
'title': [{ type: core_1.Input },],
'tabIndex': [{ type: core_1.Input },],
'format': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'rangeValidation': [{ type: core_1.Input },],
'autoCorrect': [{ type: core_1.Input },],
'value': [{ type: core_1.Input },],
'spinners': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'onFocus': [{ type: core_1.Output, args: ['focus',] },],
'onBlur': [{ type: core_1.Output, args: ['blur',] },],
'dateInput': [{ type: core_1.ViewChild, args: ['dateInput',] },],
'wrapperClass': [{ type: core_1.HostBinding, args: ['class.k-widget',] }, { type: core_1.HostBinding, args: ['class.k-dateinput',] },],
'disabledClass': [{ type: core_1.HostBinding, args: ['class.k-state-disabled',] },],
'mousescroll': [{ type: core_1.HostListener, args: ['mousewheel', ['$event'],] }, { type: core_1.HostListener, args: ['onmousewheel', ['$event'],] }, { type: core_1.HostListener, args: ['DOMMouseScroll', ['$event'],] },],
'keydown': [{ type: core_1.HostListener, args: ['keydown', ['$event'],] },],
'handleInput': [{ type: core_1.HostListener, args: ['input', ['$event'],] },],
};
return DateInputComponent;
}());
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 },
{ provide: kendo_angular_l10n_1.L10N_PREFIX, useValue: 'kendo.dateinput' },
kendo_angular_l10n_1.LocalizationService
],
selector: 'kendo-dateinput',
template: "\n <ng-container kendoDateInputLocalizedMessages\n i18n-increment=\"kendo.dateinput.increment|The label for the **Increment** button in the DateInput\"\n increment=\"Increase value\"\n\n i18n-decrement=\"kendo.dateinput.decrement|The label for the **Decrement** button in the DateInput\"\n decrement=\"Decrease value\"\n >\n </ng-container>\n <span class=\"k-dateinput-wrap\">\n <input\n #dateInput\n class=\"k-input\"\n role=\"spinbutton\"\n [title]=\"title\"\n [tabindex]=\"tabIndex\"\n [attr.disabled]=\"disabled ? 'disabled' : undefined\"\n [attr.aria-valuemin]=\"ariaValueMin\"\n [attr.aria-valuemax]=\"ariaValueMax\"\n [attr.aria-valuenow]=\"ariaValueNow\"\n [attr.aria-valuetext]=\"ariaValueText\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur()\"\n (mouseup)=\"handleMouseUp()\"\n />\n <span *ngIf=\"spinners\" class=\"k-select\" (mousedown)=\"$event.preventDefault()\">\n <span (click)=\"modifyDateSegmentValue(1)\" class=\"k-link k-link-increase\"\n [title]=\"localization.get('increment')\"\n [attr.aria-label]=\"localization.get('increment')\">\n <span class=\"k-icon k-i-arrow-n\"></span>\n </span>\n <span (click)=\"modifyDateSegmentValue(-1)\" class=\"k-link k-link-decrease\"\n [title]=\"localization.get('decrement')\"\n [attr.aria-label]=\"localization.get('decrement')\">\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.Renderer, },
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
DateInputComponent.propDecorators = {
'disabled': [{ type: core_1.Input },],
'title': [{ type: core_1.Input },],
'tabIndex': [{ type: core_1.Input },],
'format': [{ type: core_1.Input },],
'max': [{ type: core_1.Input },],
'min': [{ type: core_1.Input },],
'rangeValidation': [{ type: core_1.Input },],
'autoCorrect': [{ type: core_1.Input },],
'value': [{ type: core_1.Input },],
'spinners': [{ type: core_1.Input },],
'valueChange': [{ type: core_1.Output },],
'onFocus': [{ type: core_1.Output, args: ['focus',] },],
'onBlur': [{ type: core_1.Output, args: ['blur',] },],
'dateInput': [{ type: core_1.ViewChild, args: ['dateInput',] },],
'wrapperClass': [{ type: core_1.HostBinding, args: ['class.k-widget',] }, { type: core_1.HostBinding, args: ['class.k-dateinput',] },],
'disabledClass': [{ type: core_1.HostBinding, args: ['class.k-state-disabled',] },],
'mousescroll': [{ type: core_1.HostListener, args: ['mousewheel', ['$event'],] }, { type: core_1.HostListener, args: ['onmousewheel', ['$event'],] }, { type: core_1.HostListener, args: ['DOMMouseScroll', ['$event'],] },],
'keydown': [{ type: core_1.HostListener, args: ['keydown', ['$event'],] },],
'handleInput': [{ type: core_1.HostListener, args: ['input', ['$event'],] },],
};
exports.DateInputComponent = DateInputComponent;

@@ -534,0 +535,0 @@ var KendoDate = (function () {

"use strict";
var core_1 = require('@angular/core');
var dateinput_component_1 = require('./dateinput.component');
var common_1 = require('@angular/common');
var kendo_angular_intl_1 = require('@progress/kendo-angular-intl');
var localized_messages_directive_1 = require('./localization/localized-messages.directive');
var dateinput_custom_messages_component_1 = require('./localization/dateinput-custom-messages.component');
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var dateinput_component_1 = require("./dateinput.component");
var common_1 = require("@angular/common");
var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
var localized_messages_directive_1 = require("./localization/localized-messages.directive");
var dateinput_custom_messages_component_1 = require("./localization/dateinput-custom-messages.component");
var COMPONENT_DIRECTIVES = [

@@ -20,13 +21,13 @@ dateinput_component_1.DateInputComponent,

}
DateInputModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [common_1.CommonModule, kendo_angular_intl_1.IntlModule]
},] },
];
/** @nocollapse */
DateInputModule.ctorParameters = function () { return []; };
return DateInputModule;
}());
DateInputModule.decorators = [
{ type: core_1.NgModule, args: [{
declarations: [COMPONENT_DIRECTIVES],
exports: [COMPONENT_DIRECTIVES],
imports: [common_1.CommonModule, kendo_angular_intl_1.IntlModule]
},] },
];
/** @nocollapse */
DateInputModule.ctorParameters = function () { return []; };
exports.DateInputModule = DateInputModule;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @hidden
*/
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['delete'] = 46] = 'delete';
})(exports.Keys || (exports.Keys = {}));
var 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";
Keys[Keys["delete"] = 46] = "delete";
})(Keys = exports.Keys || (exports.Keys = {}));
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var messages_1 = require('./messages');
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
var messages_1 = require("./messages");
/**

@@ -16,4 +22,5 @@ * Custom component messages override default component messages.

function DateInputCustomMessagesComponent(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}

@@ -27,20 +34,20 @@ Object.defineProperty(DateInputCustomMessagesComponent.prototype, "override", {

});
DateInputCustomMessagesComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return DateInputCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-dateinput-messages',
template: ""
},] },
];
/** @nocollapse */
DateInputCustomMessagesComponent.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
return DateInputCustomMessagesComponent;
}(messages_1.Messages));
DateInputCustomMessagesComponent.decorators = [
{ type: core_1.Component, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return DateInputCustomMessagesComponent; }) // tslint:disable-line:no-forward-ref
}
],
selector: 'kendo-dateinput-messages',
template: ""
},] },
];
/** @nocollapse */
DateInputCustomMessagesComponent.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
exports.DateInputCustomMessagesComponent = DateInputCustomMessagesComponent;
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var messages_1 = require('./messages');
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
var messages_1 = require("./messages");
/**

@@ -16,22 +22,23 @@ * @hidden

function LocalizedMessagesDirective(service) {
_super.call(this);
this.service = service;
var _this = _super.call(this) || this;
_this.service = service;
return _this;
}
LocalizedMessagesDirective.decorators = [
{ type: core_1.Directive, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoDateInputLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
return LocalizedMessagesDirective;
}(messages_1.Messages));
LocalizedMessagesDirective.decorators = [
{ type: core_1.Directive, args: [{
providers: [
{
provide: messages_1.Messages,
useExisting: core_1.forwardRef(function () { return LocalizedMessagesDirective; }) // tslint:disable-line:no-forward-ref
}
],
selector: '[kendoDateInputLocalizedMessages]'
},] },
];
/** @nocollapse */
LocalizedMessagesDirective.ctorParameters = function () { return [
{ type: kendo_angular_l10n_1.LocalizationService, },
]; };
exports.LocalizedMessagesDirective = LocalizedMessagesDirective;
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var kendo_angular_l10n_1 = require('@progress/kendo-angular-l10n');
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
/**

@@ -15,10 +21,10 @@ * @hidden

function Messages() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}
Messages.propDecorators = {
'decrement': [{ type: core_1.Input },],
'increment': [{ type: core_1.Input },],
};
return Messages;
}(kendo_angular_l10n_1.ComponentMessages));
Messages.propDecorators = {
'decrement': [{ type: core_1.Input },],
'increment': [{ type: core_1.Input },],
};
exports.Messages = Messages;
"use strict";
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');
Object.defineProperty(exports, "__esModule", { value: true });
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];

@@ -41,15 +42,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.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 []; };
exports.DateInputsModule = DateInputsModule;
"use strict";
var calendar_component_1 = require('./calendar/calendar.component');
Object.defineProperty(exports, "__esModule", { value: true });
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;
var calendar_custom_messages_component_1 = require('./calendar/localization/calendar-custom-messages.component');
var calendar_custom_messages_component_1 = require("./calendar/localization/calendar-custom-messages.component");
exports.CalendarCustomMessagesComponent = calendar_custom_messages_component_1.CalendarCustomMessagesComponent;
var dateinput_custom_messages_component_1 = require('./dateinput/localization/dateinput-custom-messages.component');
var dateinput_custom_messages_component_1 = require("./dateinput/localization/dateinput-custom-messages.component");
exports.DateInputCustomMessagesComponent = dateinput_custom_messages_component_1.DateInputCustomMessagesComponent;
import { CellContext } from './calendar/models/cell-context.interface';
declare const range: (start: number, end: number) => number[];
declare const isInDatesArray: (date: Date, dates?: Date[]) => boolean;
declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
declare const dateInRange: (candidate: Date, min: Date, max: Date) => Date;
declare const guid: () => string;
declare const noop: (_: any) => void;
declare const isDocumentAvailable: () => boolean;
declare const cellContextToString: (ctx: CellContext) => string;
declare const stringifyClassObject: (classes: {
/**
* @hidden
*/
export declare const range: (start: number, end: number) => number[];
/**
* @hidden
*/
export declare const isInDatesArray: (date: Date, dates?: Date[]) => boolean;
/**
* @hidden
*/
export declare const isInRange: (candidate: Date, min: Date, max: Date) => boolean;
/**
* @hidden
*/
export declare const dateInRange: (candidate: Date, min: Date, max: Date) => Date;
/**
* @hidden
*/
export declare const guid: () => string;
/**
* @hidden
*/
export declare const noop: (_: any) => void;
/**
* @hidden
*/
export declare const isDocumentAvailable: () => boolean;
/**
* @hidden
*/
export declare const cellContextToString: (ctx: CellContext) => string;
/**
* @hidden
*/
export declare const stringifyClassObject: (classes: {
[x: string]: boolean;
}) => string;
declare const generateDates: (start: Date, count: number) => Date[];
declare const monthsDistance: (d1: Date, d2: Date) => number;
declare const shiftWeekNames: (names: string[], offset: number) => string[];
export { cellContextToString, dateInRange, generateDates, guid, isDocumentAvailable, isInDatesArray, isInRange, monthsDistance, range, noop, stringifyClassObject, shiftWeekNames };
/**
* @hidden
*/
export declare const generateDates: (start: Date, count: number) => Date[];
/**
* @hidden
*/
export declare const monthsDistance: (d1: Date, d2: Date) => number;
/**
* @hidden
*/
export declare const shiftWeekNames: (names: string[], offset: number) => string[];
"use strict";
var kendo_date_math_1 = require('@progress/kendo-date-math');
var range = function (start, end) {
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:no-bitwise */
var kendo_date_math_1 = require("@progress/kendo-date-math");
/**
* @hidden
*/
exports.range = function (start, end) {
var result = [];

@@ -10,11 +15,17 @@ for (var i = start; i < end; i++) {

};
exports.range = range;
var isInDatesArray = function (date, dates) {
/**
* @hidden
*/
exports.isInDatesArray = function (date, dates) {
if (dates === void 0) { dates = []; }
return (!!dates.length && kendo_date_math_1.firstDayOfMonth(dates[0]) <= date && date <= kendo_date_math_1.lastDayOfMonth(dates[dates.length - 1]));
};
exports.isInDatesArray = isInDatesArray;
var isInRange = function (candidate, min, max) { return (!candidate || !((min && min > candidate) || (max && max < candidate))); };
exports.isInRange = isInRange;
var dateInRange = function (candidate, min, max) {
/**
* @hidden
*/
exports.isInRange = function (candidate, min, max) { return (!candidate || !((min && min > candidate) || (max && max < candidate))); };
/**
* @hidden
*/
exports.dateInRange = function (candidate, min, max) {
if (!candidate) {

@@ -31,5 +42,6 @@ return candidate;

};
exports.dateInRange = dateInRange;
/* tslint:disable:no-bitwise */
var guid = function () {
/**
* @hidden
*/
exports.guid = function () {
var id = "", random;

@@ -45,22 +57,34 @@ for (var i = 0; i < 32; i++) {

};
exports.guid = guid;
// tslint:disable:no-empty
var noop = function (_) { };
exports.noop = noop;
var isDocumentAvailable = function () {
/**
* @hidden
*/
exports.noop = function (_) { }; // tslint:disable-line:no-empty
/**
* @hidden
*/
exports.isDocumentAvailable = function () {
return typeof document !== 'undefined';
};
exports.isDocumentAvailable = isDocumentAvailable;
var cellContextToString = function (ctx) { return (ctx ? "" + ctx.isFocused + ctx.isSelected + ctx.isWeekend + ctx.id : 'null'); };
exports.cellContextToString = cellContextToString;
var stringifyClassObject = function (classes) {
/**
* @hidden
*/
exports.cellContextToString = function (ctx) { return (ctx ? "" + ctx.isFocused + ctx.isSelected + ctx.isWeekend + ctx.id : 'null'); };
/**
* @hidden
*/
exports.stringifyClassObject = function (classes) {
var pushToAcc = function (acc, cls) { return classes[cls] ? acc.concat(cls) : acc; };
return Object.keys(classes).reduce(pushToAcc, []).join(' ');
};
exports.stringifyClassObject = stringifyClassObject;
var generateDates = function (start, count) { return (range(0, count).map(function (i) { return kendo_date_math_1.addMonths(start, i); })); };
exports.generateDates = generateDates;
var monthsDistance = function (d1, d2) { return (((d1.getFullYear() - d2.getFullYear())) * 12 + (d1.getMonth() - d2.getMonth())); };
exports.monthsDistance = monthsDistance;
var shiftWeekNames = function (names, offset) { return (names.slice(offset).concat(names.slice(0, offset))); };
exports.shiftWeekNames = shiftWeekNames;
/**
* @hidden
*/
exports.generateDates = function (start, count) { return (exports.range(0, count).map(function (i) { return kendo_date_math_1.addMonths(start, i); })); };
/**
* @hidden
*/
exports.monthsDistance = function (d1, d2) { return (((d1.getFullYear() - d2.getFullYear())) * 12 + (d1.getMonth() - d2.getMonth())); };
/**
* @hidden
*/
exports.shiftWeekNames = function (names, offset) { return (names.slice(offset).concat(names.slice(0, offset))); };

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

[{"__symbolic":"module","version":3,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":4,"character":14},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":14,"character":23},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":18,"character":18},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":22,"character":20},"guid":{"__symbolic":"error","message":"Function call not supported","line":32,"character":13},"noop":{"__symbolic":"error","message":"Function call not supported","line":48,"character":13},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":50,"character":28},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":54,"character":28},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":58,"character":29},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":64,"character":22},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":68,"character":23},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":72,"character":23}}},{"__symbolic":"module","version":1,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":4,"character":14},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":14,"character":23},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":18,"character":18},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":22,"character":20},"guid":{"__symbolic":"error","message":"Function call not supported","line":32,"character":13},"noop":{"__symbolic":"error","message":"Function call not supported","line":48,"character":13},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":50,"character":28},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":54,"character":28},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":58,"character":29},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":64,"character":22},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":68,"character":23},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":72,"character":23}}}]
[{"__symbolic":"module","version":3,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":7,"character":21},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":20,"character":30},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":27,"character":25},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":34,"character":27},"guid":{"__symbolic":"error","message":"Function call not supported","line":46,"character":20},"noop":{"__symbolic":"error","message":"Function call not supported","line":64,"character":20},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":69,"character":35},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":76,"character":35},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":83,"character":36},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":92,"character":29},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":99,"character":30},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":106,"character":30}}},{"__symbolic":"module","version":1,"metadata":{"range":{"__symbolic":"error","message":"Function call not supported","line":7,"character":21},"isInDatesArray":{"__symbolic":"error","message":"Function call not supported","line":20,"character":30},"isInRange":{"__symbolic":"error","message":"Function call not supported","line":27,"character":25},"dateInRange":{"__symbolic":"error","message":"Function call not supported","line":34,"character":27},"guid":{"__symbolic":"error","message":"Function call not supported","line":46,"character":20},"noop":{"__symbolic":"error","message":"Function call not supported","line":64,"character":20},"isDocumentAvailable":{"__symbolic":"error","message":"Function call not supported","line":69,"character":35},"cellContextToString":{"__symbolic":"error","message":"Function call not supported","line":76,"character":35},"stringifyClassObject":{"__symbolic":"error","message":"Function call not supported","line":83,"character":36},"generateDates":{"__symbolic":"error","message":"Function call not supported","line":92,"character":29},"monthsDistance":{"__symbolic":"error","message":"Function call not supported","line":99,"character":30},"shiftWeekNames":{"__symbolic":"error","message":"Function call not supported","line":106,"character":30}}}]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -3,0 +4,0 @@ * @hidden

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -3,0 +4,0 @@ * @hidden

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

"license": "SEE LICENSE IN LICENSE.md",
"version": "0.5.3",
"version": "0.6.0",
"publishConfig": {

@@ -26,3 +26,3 @@ "registry": "https://registry.npm.telerik.com"

"Kendo UI",
"AngularJS 2"
"Angular"
],

@@ -33,40 +33,40 @@ "dependencies": {

"peerDependencies": {
"@angular/common": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/forms": "^2.4.0",
"rxjs": "^5.0.1",
"@progress/kendo-angular-intl": "^0.11.0",
"@progress/kendo-angular-l10n": "^0.2.0"
"@angular/common": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@progress/kendo-angular-intl": "^0.12.0",
"@progress/kendo-angular-l10n": "^0.3.0",
"rxjs": "^5.0.1"
},
"devDependencies": {
"@angular/common": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/compiler": "^2.4.0",
"@angular/compiler-cli": "^2.4.0",
"@angular/platform-browser": "^2.4.0",
"@angular/platform-browser-dynamic": "^2.4.0",
"@angular/platform-server": "^2.4.0",
"@angular/forms": "^2.4.0",
"@angular/http": "^2.4.0",
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/platform-server": "^4.0.0",
"@krux/condition-jenkins": "1.0.1",
"@progress/kendo-angular-intl": "^0.12.0",
"@progress/kendo-angular-l10n": "^0.3.0",
"@progress/kendo-angular-tasks": "^9.0.3",
"@progress/kendo-theme-default": "^2.10.0",
"@types/core-js": "0.9.35",
"@types/jasmine": "2.2.34",
"@types/zone.js": "0.0.27",
"cldr-data": "^30.0.0",
"codelyzer": "3.0.0-beta.4",
"core-js": "^2.2.2",
"rxjs": "~5.0.0",
"zone.js": "^0.7.2",
"@progress/kendo-angular-tasks": "^8.0.1",
"@progress/kendo-theme-default": "^2.10.0",
"@progress/kendo-angular-intl": "^0.11.0",
"@progress/kendo-angular-l10n": "^0.2.0",
"@telerik/kendo-intl": "^0.14.0",
"cldr-data": "^30.0.0",
"cz-conventional-changelog": "^1.1.5",
"ghooks": "^1.0.3",
"gulp": "^3.9.0",
"rxjs": "^5.0.1",
"semantic-release": "^4.3.5",
"typescript": "~2.0.0",
"tslint": "^4.0.0",
"typescript": "^2.1.5",
"validate-commit-msg": "^1.1.1",
"codelyzer": "2.0.0-beta.2",
"tslint": "~4.0.0"
"zone.js": "^0.8.4"
},

@@ -73,0 +73,0 @@ "config": {

Sorry, the diff of this file is too big to display

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