@progress/kendo-angular-dropdowns
Version:
Dropdowns Package for Angular 2
2 lines • 142 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-l10n"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/auditTime"),require("rxjs/add/observable/merge"),require("@angular/common"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/catch"),require("rxjs/add/operator/do"),require("rxjs/add/operator/merge"),require("rxjs/add/operator/map"),require("rxjs/add/operator/let"),require("rxjs/add/operator/partition"),require("rxjs/add/operator/throttleTime"),require("rxjs/add/operator/distinctUntilChanged"),require("rxjs/Subject"),require("rxjs/Subscription"),require("rxjs/add/observable/interval"),require("rxjs/add/operator/take"),require("rxjs/add/operator/takeUntil"),require("rxjs/add/operator/concatMap"),require("rxjs/add/operator/skipWhile")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@angular/forms","@progress/kendo-angular-l10n","rxjs/Observable","rxjs/add/observable/fromEvent","rxjs/add/operator/auditTime","rxjs/add/observable/merge","@angular/common","rxjs/add/operator/filter","rxjs/add/operator/catch","rxjs/add/operator/do","rxjs/add/operator/merge","rxjs/add/operator/map","rxjs/add/operator/let","rxjs/add/operator/partition","rxjs/add/operator/throttleTime","rxjs/add/operator/distinctUntilChanged","rxjs/Subject","rxjs/Subscription","rxjs/add/observable/interval","rxjs/add/operator/take","rxjs/add/operator/takeUntil","rxjs/add/operator/concatMap","rxjs/add/operator/skipWhile"],t):"object"==typeof exports?exports.KendoAngularDropdowns=t(require("tslib"),require("@angular/core"),require("@angular/forms"),require("@progress/kendo-angular-l10n"),require("rxjs/Observable"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/auditTime"),require("rxjs/add/observable/merge"),require("@angular/common"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/catch"),require("rxjs/add/operator/do"),require("rxjs/add/operator/merge"),require("rxjs/add/operator/map"),require("rxjs/add/operator/let"),require("rxjs/add/operator/partition"),require("rxjs/add/operator/throttleTime"),require("rxjs/add/operator/distinctUntilChanged"),require("rxjs/Subject"),require("rxjs/Subscription"),require("rxjs/add/observable/interval"),require("rxjs/add/operator/take"),require("rxjs/add/operator/takeUntil"),require("rxjs/add/operator/concatMap"),require("rxjs/add/operator/skipWhile")):e.KendoAngularDropdowns=t(e.tslib,e["@angular/core"],e["@angular/forms"],e["@progress/kendo-angular-l10n"],e["rxjs/Observable"],e["rxjs/add/observable/fromEvent"],e["rxjs/add/operator/auditTime"],e["rxjs/add/observable/merge"],e["@angular/common"],e["rxjs/add/operator/filter"],e["rxjs/add/operator/catch"],e["rxjs/add/operator/do"],e["rxjs/add/operator/merge"],e["rxjs/add/operator/map"],e["rxjs/add/operator/let"],e["rxjs/add/operator/partition"],e["rxjs/add/operator/throttleTime"],e["rxjs/add/operator/distinctUntilChanged"],e["rxjs/Subject"],e["rxjs/Subscription"],e["rxjs/add/observable/interval"],e["rxjs/add/operator/take"],e["rxjs/add/operator/takeUntil"],e["rxjs/add/operator/concatMap"],e["rxjs/add/operator/skipWhile"])}(this,function(e,t,i,n,o,r,a,s,p,l,u,d,c,h,m,f,v,g,_,y,b,C,S,x,w){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1);t.AutoCompleteComponent=n.AutoCompleteComponent;var o=i(33);t.ComboBoxComponent=o.ComboBoxComponent;var r=i(45);t.DropDownListComponent=r.DropDownListComponent;var a=i(52);t.MultiSelectComponent=a.MultiSelectComponent;var s=i(55);t.TagListComponent=s.TagListComponent;var p=i(9);t.ItemTemplateDirective=p.ItemTemplateDirective;var l=i(10);t.HeaderTemplateDirective=l.HeaderTemplateDirective;var u=i(11);t.FooterTemplateDirective=u.FooterTemplateDirective;var d=i(51);t.ValueTemplateDirective=d.ValueTemplateDirective;var c=i(56);t.TemplateContextDirective=c.TemplateContextDirective;var h=i(57);t.SelectableDirective=h.SelectableDirective;var m=i(58);t.DropDownsModule=m.DropDownsModule;var f=i(69);t.MultiSelectModule=f.MultiSelectModule;var v=i(60);t.SharedModule=v.SharedModule;var g=i(59);t.AutoCompleteModule=g.AutoCompleteModule;var _=i(67);t.ComboBoxModule=_.ComboBoxModule;var y=i(68);t.DropDownListModule=y.DropDownListModule;var b=i(66);t.SharedDirectivesModule=b.SharedDirectivesModule;var C=i(61);t.ListComponent=C.ListComponent;var S=i(18);t.PopupComponent=S.PopupComponent;var x=i(63);t.ResizeSensorComponent=x.ResizeSensorComponent;var w=i(17);t.PreventableEvent=w.PreventableEvent},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=i(4),a=i(5),s=i(9),p=i(10),l=i(11),u=i(12),d=i(13),c=i(15),h=i(7),m=i(14),f=i(16),v=i(6),g=i(17),_=i(8),y=i(18);t.AUTOCOMPLETE_VALUE_ACCESSOR={multi:!0,provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return b})};var b=function(){function e(e,t,i,n,r,a){this.popupService=t,this.selectionService=i,this.navigationService=n,this.cdr=r,this.placeholder="",this.clearButton=!0,this.disabled=!1,this.tabIndex=0,this.filterable=!1,this.valueChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.listBoxId=h.guid(),this.optionPrefix=h.guid(),this.onChangeCallback=function(e){},this.onTouchedCallback=function(e){},this.popupMouseDownHandler=function(e){return e.preventDefault()},this._popupSettings={height:200,animate:!0},this._open=!1,this._value="",this._isFocused=!1,this.direction=e?"rtl":"ltr",this.wrapper=a.nativeElement,this.data=[],this.subscribeEvents(),this.selectionService.resetSelection([-1])}return Object.defineProperty(e.prototype,"width",{get:function(){var e=0;h.isDocumentAvailable()&&(e=this.wrapper.offsetWidth);var t=this.popupSettings.width||e,i=isNaN(e)?e:e+"px",n=isNaN(t)?t:t+"px";return{min:i,max:n}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.popupSettings.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listContainerClasses",{get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestion",{get:function(){if(!this.value||!this.suggestedText)return void(this.suggestedText=void 0);var e=this.suggestedText.toLowerCase().startsWith(this.value.toLowerCase()),t=this.suggest&&!this.backspacePressed;return t&&e?this.suggestedText:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupOpen",{get:function(){return this._open},set:function(e){if(!this.disabled&&this.popupOpen!==e){var t=new g.PreventableEvent;e&&!this.popupOpen&&this.open.emit(t),!e&&this.popupOpen&&this.close.emit(t),t.isDefaultPrevented()||this._toggle(e)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{get:function(){return this.optionPrefix+"-"+this.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.verifySettings(e),this._value=e,this.cdr.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({height:200,animate:!0},e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this._isFocused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetHeight",{get:function(){return this.popupSettings.height+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._toggle(!1),this.unsubscribeEvents()},e.prototype.ngOnChanges=function(e){var t=this.suggest&&this.data&&this.data.length&&this.value;t&&(this.suggestedText=h.getter(this.data[0],this.valueField))},e.prototype.toggle=function(e){var t=this;Promise.resolve(null).then(function(){t._toggle(void 0===e?!t._open:e),t.cdr.markForCheck()})},Object.defineProperty(e.prototype,"isOpen",{get:function(){return this.popupOpen},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this._previousValue=void 0,this.value=void 0},e.prototype.clearValue=function(e){e.stopImmediatePropagation(),this.filterable&&this.filterChange.emit(""),void 0!==this._previousValue&&(this._previousValue=this.value),this.change(void 0),this.selectionService.resetSelection([])},e.prototype.writeValue=function(e){this._previousValue=this.value,this.value=e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.popupOpened=function(){this.popupWidth=this.width.max,this.popupMinWidth=this.width.min},e.prototype.focus=function(){this.disabled||this.searchbar.focus()},e.prototype.blur=function(){this.disabled||this.searchbar.blur()},e.prototype.onResize=function(){if(this._open){var e=this.popupRef.popupElement,t=this.width,i=t.min,n=t.max;e.style.minWidth=i,e.style.width=n}},e.prototype.verifySettings=function(e){if(o.isDevMode()&&h.isPresent(e)&&"string"!=typeof e)throw new Error("Expected value of type string. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/#toc-value")},e.prototype.search=function(e){var t=this,i=this.data.findIndex(function(i){var n=h.getter(i,t.valueField);return n=void 0===n?"":n.toString().toLowerCase(),n.startsWith(e.toLowerCase())});this.selectionService.focus(i),this.suggest&&(this.suggestedText=h.getter(this.data[i],this.valueField))},e.prototype.navigate=function(e){this.popupOpen&&((e<0||e>this.data.length)&&(e=0),this.selectionService.focus(e))},e.prototype.handleNavigate=function(e){var t=isNaN(this.selectionService.focused)?0:this.selectionService.focused,i=h.isPresent(t),n=0;if(!this.disabled){i||(e.keyCode===v.Keys.down?n=-1:e.keyCode===v.Keys.up&&(n=1));var o=this.navigationService.process({current:t+n,max:this.data.length-1,min:0,originalEvent:e});o!==m.NavigationAction.Undefined&&o!==m.NavigationAction.Backspace&&o!==m.NavigationAction.Delete&&o!==m.NavigationAction.Home&&o!==m.NavigationAction.End&&o!==m.NavigationAction.Left&&o!==m.NavigationAction.Right&&(o===m.NavigationAction.Enter&&this.popupOpen||o!==m.NavigationAction.Enter)&&e.preventDefault()}},e.prototype.handleEnter=function(e){var t,i=this.selectionService.focused;if(this.popupOpen&&e.originalEvent.preventDefault(),i>=0)t=h.getter(this.data[i],this.valueField);else{var n=this.suggest&&this.suggestedText&&this.data.length&&h.getter(this.data[0],this.valueField,!0).toLowerCase()===this.searchbar.value.toLowerCase();t=this.popupOpen&&n?this.suggestedText:this.searchbar.value}this.change(t)},e.prototype.searchBarChange=function(e){var t=this.value?this.value.length:0;this.backspacePressed=e.length<t,this.value=e,this.popupOpen=e.length>0,this.filterable?(this.selectionService.focused=-1,this.filterChange.emit(e)):this.search(e)},e.prototype.handleFocus=function(){this._previousValue=this.value,this.isFocused=!0,this.onFocus.emit()},e.prototype.handleBlur=function(){if(void 0===this.value)return this.popupOpen=!1,this.isFocused=!1,this.onBlur.emit(),void this.onTouchedCallback();var e,t,i=this.selectionService.focused,n=this.value;i!==-1?(e=this.data[i],t=h.getter(e,this.valueField)||""):t=this.searchbar.value,t===this.searchbar.value?n=t:t&&t.toLowerCase()===this.searchbar.value.toLowerCase()&&(this.selectionService.resetSelection([]),n=this.searchbar.value),this.change(n),this.popupOpen=!1,this.isFocused=!1,this.onBlur.emit(),this.onTouchedCallback()},e.prototype.change=function(e){return this.popupOpen=!1,e===this._previousValue?void(this.value=e):(this.value=e,this._previousValue=this.value,this.onChangeCallback(this.value),void this.valueChange.emit(this.value))},e.prototype.subscribeEvents=function(){var e=this;h.isDocumentAvailable()&&(this.changeSubscribtion=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscribtion=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscribtion=c.Observable.merge(this.navigationService.up,this.navigationService.down).subscribe(function(t){return e.navigate(t.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return e.popupOpen=!1}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleBlur.bind(this)))},e.prototype.unsubscribeEvents=function(){h.isDocumentAvailable()&&(this.changeSubscribtion.unsubscribe(),this.navigationSubscribtion.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe())},e.prototype.handleItemChange=function(e){var t=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),h.isPresent(t)){var i=h.getter(this.data[t],this.valueField);this.change(i)}},e.prototype.handleItemFocus=function(e){var t=this.selectionService.focused,i=Boolean(this.suggest&&this.data&&this.data.length&&t>=0);i&&(this.suggestedText=h.getter(this.data[t],this.valueField))},e.prototype._toggle=function(e){var t=this;if(this._open=e,this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null),this._open){this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute"});var i=this.popupRef.popupElement,n=this.width,o=n.min,r=n.max;i.addEventListener("mousedown",this.popupMouseDownHandler),i.style.minWidth=o,i.style.width=r,i.setAttribute("dir",this.direction),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return t.popupOpen=!1})}},e}();n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],b.prototype,"data",null),n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],b.prototype,"value",null),n.__decorate([o.Input(),n.__metadata("design:type",String)],b.prototype,"valueField",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],b.prototype,"placeholder",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[Object])],b.prototype,"popupSettings",null),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],b.prototype,"loading",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],b.prototype,"clearButton",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],b.prototype,"suggest",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],b.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],b.prototype,"tabIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],b.prototype,"filterable",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],b.prototype,"valueChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],b.prototype,"filterChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],b.prototype,"open",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],b.prototype,"close",void 0),n.__decorate([o.Output("focus"),n.__metadata("design:type",o.EventEmitter)],b.prototype,"onFocus",void 0),n.__decorate([o.Output("blur"),n.__metadata("design:type",o.EventEmitter)],b.prototype,"onBlur",void 0),n.__decorate([o.ContentChild(s.ItemTemplateDirective),n.__metadata("design:type",s.ItemTemplateDirective)],b.prototype,"template",void 0),n.__decorate([o.ContentChild(p.HeaderTemplateDirective),n.__metadata("design:type",p.HeaderTemplateDirective)],b.prototype,"headerTemplate",void 0),n.__decorate([o.ContentChild(l.FooterTemplateDirective),n.__metadata("design:type",l.FooterTemplateDirective)],b.prototype,"footerTemplate",void 0),n.__decorate([o.ContentChild(f.NoDataTemplateDirective),n.__metadata("design:type",f.NoDataTemplateDirective)],b.prototype,"noDataTemplate",void 0),n.__decorate([o.ViewChild("container",{read:o.ViewContainerRef}),n.__metadata("design:type",o.ViewContainerRef)],b.prototype,"container",void 0),n.__decorate([o.ViewChild("popupTemplate"),n.__metadata("design:type",o.TemplateRef)],b.prototype,"popupTemplate",void 0),n.__decorate([o.ViewChild(a.SearchBarComponent),n.__metadata("design:type",a.SearchBarComponent)],b.prototype,"searchbar",void 0),n.__decorate([o.HostBinding("class.k-widget"),o.HostBinding("class.k-autocomplete"),o.HostBinding("class.k-header"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],b.prototype,"widgetClasses",null),n.__decorate([o.HostBinding("class.k-state-focused"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],b.prototype,"isFocused",null),n.__decorate([o.HostBinding("class.k-state-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],b.prototype,"isDisabled",null),n.__decorate([o.HostBinding("style.max-height"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],b.prototype,"widgetHeight",null),n.__decorate([o.HostBinding("attr.dir"),n.__metadata("design:type",Object),n.__metadata("design:paramtypes",[])],b.prototype,"dir",null),b=n.__decorate([o.Component({exportAs:"kendoAutoComplete",providers:[t.AUTOCOMPLETE_VALUE_ACCESSOR,u.SelectionService,d.NavigationService],selector:"kendo-autocomplete",template:'\n <kendo-searchbar #searchbar\n [role]="\'textbox\'"\n [id]="listBoxId"\n [activeDescendant]="activeDescendant"\n [userInput]="value"\n [suggestedText]="suggestion"\n [disabled]="disabled"\n [tabIndex]="tabIndex"\n [popupOpen]="popupOpen"\n [placeholder]="placeholder"\n (onNavigate)="handleNavigate($event)"\n (valueChange)="searchBarChange($event)"\n (onBlur)="handleBlur()"\n (onFocus)="handleFocus()"\n ></kendo-searchbar>\n <span *ngIf="!loading && (clearButton && value?.length)" class="k-icon k-clear-value k-i-close" title="clear" role="button" tabindex="-1" (click)="clearValue($event)" (mousedown)="$event.preventDefault()">\n</span>\n <span *ngIf="loading" class="k-icon k-i-loading"></span>\n <ng-template #popupTemplate>\n <!--header template-->\n <ng-template *ngIf="headerTemplate"\n [templateContext]="{\n templateRef: headerTemplate.templateRef\n }">\n </ng-template>\n <!--list-->\n <kendo-list\n [id]="listBoxId"\n [optionPrefix]="optionPrefix"\n [data]="data"\n [textField]="valueField"\n [valueField]="valueField"\n [template]="template"\n [height]="height"\n [show]="popupOpen"\n >\n </kendo-list>\n <!--no-data template-->\n <div class="k-nodata" *ngIf="data.length === 0">\n <ng-template [ngIf]="noDataTemplate"\n [templateContext]="{\n templateRef: noDataTemplate?.templateRef\n }">\n </ng-template>\n <ng-template [ngIf]="!noDataTemplate">\n <div>NO DATA FOUND.</div>\n </ng-template>\n </div>\n <!--footer template-->\n <ng-template *ngIf="footerTemplate"\n [templateContext]="{\n templateRef: footerTemplate.templateRef\n }">\n </ng-template>\n </ng-template>\n <ng-template [ngIf]="popupOpen">\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n </ng-template>\n <ng-container #container></ng-container>\n '}),n.__param(0,o.Optional()),n.__param(0,o.Inject(_.RTL)),n.__metadata("design:paramtypes",[Boolean,y.PopupService,u.SelectionService,d.NavigationService,o.ChangeDetectorRef,o.ElementRef])],b),t.AutoCompleteComponent=b},function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=i(6),a=i(7),s=i(8),p=function(){function e(e,t){this.valueChange=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onClick=new o.EventEmitter,this.onNavigate=new o.EventEmitter,this._userInput="",this._composing=!1,this.direction=e?"rtl":"ltr",this.renderer=t}return Object.defineProperty(e.prototype,"userInput",{get:function(){return this._userInput},set:function(e){this._userInput=e||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchBarClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.input.nativeElement.value},enumerable:!0,configurable:!0}),e.prototype.compositionStart=function(){this._composing=!0},e.prototype.compositionUpdate=function(){this._composing=!0},e.prototype.compositionEnd=function(){this._composing=!1,this.valueChange.emit(this.value)},e.prototype.ngOnChanges=function(e){if(this.input&&(e.userInput||e.suggestedText)){var t=e.userInput&&e.userInput.previousValue?e.userInput.previousValue:"",i=this.input.nativeElement.selectionStart,n=t.length+1===i;this.writeInputValue(this.suggestedText?a.combineStr(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):n?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(i,i)}},e.prototype.writeInputValue=function(e){a.isDocumentAvailable()&&this.renderer.setProperty(this.input.nativeElement,"value",e)},e.prototype.setInputSelection=function(e,t){if(a.isDocumentAvailable()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,t)}catch(e){}},e.prototype.handleInput=function(e){var t=e.target.value;t===this.userInput||this._composing||this.valueChange.emit(t)},e.prototype.handleFocus=function(e){this.onFocus.emit(e)},e.prototype.handleBlur=function(e){this.onBlur.emit(e)},e.prototype.handleKeydown=function(e){var t=e.keyCode,i=[r.Keys.up,r.Keys.down,r.Keys.left,r.Keys.right,r.Keys.enter,r.Keys.esc,r.Keys.delete,r.Keys.backspace,r.Keys.home,r.Keys.end];i.indexOf(t)>-1&&this.onNavigate.emit(e)},e.prototype.focus=function(){a.isDocumentAvailable()&&this.input.nativeElement.focus()},e.prototype.blur=function(){a.isDocumentAvailable()&&this.input.nativeElement.blur()},e.prototype.resizeInput=function(e){var t=this.input.nativeElement;this.renderer.setAttribute(t,"size",e.toString())},e}();n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"activeDescendant",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"id",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"disabled",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Number)],p.prototype,"tabIndex",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Boolean)],p.prototype,"popupOpen",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"placeholder",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"role",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],p.prototype,"userInput",null),n.__decorate([o.Input(),n.__metadata("design:type",String)],p.prototype,"suggestedText",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"valueChange",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onBlur",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onFocus",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onClick",void 0),n.__decorate([o.Output(),n.__metadata("design:type",o.EventEmitter)],p.prototype,"onNavigate",void 0),n.__decorate([o.ViewChild("input"),n.__metadata("design:type",o.ElementRef)],p.prototype,"input",void 0),n.__decorate([o.HostBinding("class.k-searchbar"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],p.prototype,"searchBarClass",null),n.__decorate([o.HostListener("compositionstart"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"compositionStart",null),n.__decorate([o.HostListener("compositionupdate"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"compositionUpdate",null),n.__decorate([o.HostListener("compositionend"),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"compositionEnd",null),p=n.__decorate([o.Component({selector:"kendo-searchbar",template:'\n <input #input\n autocomplete="off"\n [disabled]="disabled"\n [placeholder]="placeholder"\n [class]="\'k-input\'"\n (input)="handleInput($event)"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)"\n (keydown)="handleKeydown($event)"\n [attr.tabIndex]="tabIndex"\n [attr.dir]="direction"\n [attr.role]="role"\n [attr.aria-disabled]="disabled"\n [attr.aria-haspopup]="true"\n [attr.aria-expanded]="popupOpen"\n [attr.aria-owns]="id"\n [attr.aria-activedescendant]="activeDescendant"\n />\n '}),n.__param(0,o.Optional()),n.__param(0,o.Inject(s.RTL)),n.__metadata("design:paramtypes",[Boolean,o.Renderer2])],p),t.SearchBarComponent=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.backspace=8]="backspace",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.alt=18]="alt",e[e["pause/break"]=19]="pause/break",e[e["caps lock"]=20]="caps lock",e[e.esc=27]="esc",e[e.space=32]="space",e[e["page up"]=33]="page up",e[e["page down"]=34]="page down",e[e.end=35]="end",e[e.home=36]="home",e[e.left=37]="left",e[e.up=38]="up",e[e.right=39]="right",e[e.down=40]="down",e[e.insert=45]="insert",e[e.delete=46]="delete",e[e.command=91]="command",e[e["left command"]=91]="left command",e[e["right command"]=93]="right command",e[e["numpad *"]=106]="numpad *",e[e["numpad +"]=107]="numpad +",e[e["numpad -"]=109]="numpad -",e[e["numpad ."]=110]="numpad .",e[e["numpad /"]=111]="numpad /",e[e["num lock"]=144]="num lock",e[e["scroll lock"]=145]="scroll lock",e[e["my computer"]=182]="my computer",e[e["my calculator"]=183]="my calculator",e[e[";"]=186]=";",e[e["="]=187]="=",e[e[","]=188]=",",e[e["-"]=189]="-",e[e["."]=190]=".",e[e["/"]=191]="/",e[e["`"]=192]="`",e[e["["]=219]="[",e[e["\\"]=220]="\\",e[e["]"]=221]="]",e[e["'"]=222]="'"}(i=t.Keys||(t.Keys={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!==e&&void 0!==e},t.isNumber=function(e){return!isNaN(e)},t.isChanged=function(e,t){return t[e]&&!t[e].isFirstChange()&&t[e].previousValue!==t[e].currentValue},t.guid=function(){var e,t,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i},t.combineStr=function(e,t){return e.concat(t.substr(t.toLowerCase().indexOf(e.toLowerCase())+e.length))},t.isDocumentAvailable=function(){return"undefined"!=typeof document},t.isArray=function(e){return Array.isArray(e)},t.isObject=function(e){return"object"==typeof e},t.resolveValuesInArray=function(e,t,i){return void 0===t&&(t=[]),t.filter(function(t){return e.some(function(e){return e===t[i]})})},t.validateComplexValues=function(e,i){return t.isArray(e)&&e.filter(function(e){return t.isObject(e)&&e[i]})},t.resolveAllValues=function(e,i,n){var o=t.validateComplexValues(e,n)||[],r=t.resolveValuesInArray(e,i,n)||[];return r.concat(o)},t.isObjectArray=function(e){return t.isArray(e)&&e.some(function(e){return t.isObject(e)})},t.selectedIndices=function(e,i,n){var o=i.map(function(e){return t.isPresent(e[n])?e[n]:e});return e.reduce(function(e,i){var r=t.isPresent(i[n])?i[n]:i,a=o.indexOf(r);return a!==-1&&e.push(a),e},[])},t.getter=function(e,i,n){if(void 0===n&&(n=!1),t.isPresent(e))return n?i&&t.isPresent(e[i])?e[i]:e:i?e[i]:e},t.resolveValue=function(e){var i;return t.isPresent(e.value)?(i=e.data.find(function(i){return t.getter(i,e.valueField)===e.value}),{dataItem:i,focused:e.data.indexOf(i),selected:e.data.indexOf(i)}):e.index?(i=e.data[e.index],{dataItem:e.data[e.index],focused:e.index,selected:e.index}):{dataItem:e.defaultItem,focused:-1,selected:-1}},t.sameCharsOnly=function(e,t){for(var i=0;i<e.length;i++)if(e.charAt(i)!==t)return!1;return!0},t.shuffleData=function(e,t,i){var n=e;return i&&(n=[i].concat(n)),n.slice(t).concat(n.slice(0,t))},t.matchText=function(e,i,n){if(!t.isPresent(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(i)}},function(e,t){e.exports=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=function(){function e(e){this.templateRef=e}return e}();r=n.__decorate([o.Directive({selector:"[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]"}),n.__metadata("design:paramtypes",[o.TemplateRef])],r),t.ItemTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=function(){function e(e){this.templateRef=e}return e}();r=n.__decorate([o.Directive({selector:"[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate]"}),n.__metadata("design:paramtypes",[o.TemplateRef])],r),t.HeaderTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=function(){function e(e){this.templateRef=e}return e}();r=n.__decorate([o.Directive({selector:"[kendoDropDownListFooterTemplate],[kendoComboBoxFooterTemplate],[kendoAutoCompleteFooterTemplate],[kendoMultiSelectFooterTemplate]"}),n.__metadata("design:paramtypes",[o.TemplateRef])],r),t.FooterTemplateDirective=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=i(7),a=function(){function e(){this.onSelect=new o.EventEmitter,this.onChange=new o.EventEmitter,
this.onFocus=new o.EventEmitter,this.selectedIndices=[]}return e.prototype.isSelected=function(e){return r.isPresent(this.selectedIndices.find(function(t){return t===e}))},e.prototype.isFocused=function(e){return e===this.focused},e.prototype.focus=function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))},e.prototype.select=function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:this.selectedIndices.slice()}))},e.prototype.add=function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))},e.prototype.unselect=function(e){if(this.isSelected(e)){var t=this.selectedIndices.indexOf(e);this.selectedIndices.splice(t,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}},e.prototype.change=function(e){this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice()})},e.prototype.resetSelection=function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]},Object.defineProperty(e.prototype,"selected",{get:function(){return this.selectedIndices.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))},enumerable:!0,configurable:!0}),e}();a=n.__decorate([o.Injectable()],a),t.SelectionService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=i(7),a=i(6),s=i(14),p=0,l=function(){function e(e,t){this.index=e,this.originalEvent=t}return e}();t.NavigationEvent=l;var u=function(){function e(){this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.enter=new o.EventEmitter,this.tab=new o.EventEmitter,this.esc=new o.EventEmitter,this.up=new o.EventEmitter,this.right=new o.EventEmitter,this.down=new o.EventEmitter,this.left=new o.EventEmitter,this.delete=new o.EventEmitter,this.backspace=new o.EventEmitter,this.home=new o.EventEmitter,this.end=new o.EventEmitter}return e.prototype.process=function(e){var t,i=e.originalEvent.keyCode,n=e.originalEvent.altKey,o=s.NavigationAction.Undefined;n&&i===a.Keys.down?o=s.NavigationAction.Open:n&&i===a.Keys.up?o=s.NavigationAction.Close:i===a.Keys.enter?o=s.NavigationAction.Enter:i===a.Keys.esc?o=s.NavigationAction.Esc:i===a.Keys.tab?o=s.NavigationAction.Tab:i===a.Keys.up?(t=this.next({current:e.current,start:e.max,end:e.min,step:-1}),o=s.NavigationAction.Up):i===a.Keys.left?(t=this.next({current:e.current,start:e.max,end:e.min,step:-1}),o=s.NavigationAction.Left):i===a.Keys.down?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=s.NavigationAction.Down):i===a.Keys.right?(t=this.next({current:e.current,start:e.min,end:e.max,step:1}),o=s.NavigationAction.Right):i===a.Keys.home?(t=p,o=s.NavigationAction.Home):i===a.Keys.end?(t=e.max,o=s.NavigationAction.End):i===a.Keys.delete?o=s.NavigationAction.Delete:i===a.Keys.backspace&&(o=s.NavigationAction.Backspace);var r=new l(t,e.originalEvent);return o!==s.NavigationAction.Undefined&&this[s.NavigationAction[o].toLowerCase()].emit(r),o},e.prototype.next=function(e){return r.isPresent(e.current)?e.current!==e.end?e.current+e.step:e.end:e.start},e}();u=n.__decorate([o.Injectable()],u),t.NavigationService=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.Undefined=0]="Undefined",e[e.Open=1]="Open",e[e.Close=2]="Close",e[e.Enter=3]="Enter",e[e.Tab=4]="Tab",e[e.Esc=5]="Esc",e[e.Delete=6]="Delete",e[e.Backspace=7]="Backspace",e[e.Home=8]="Home",e[e.End=9]="End",e[e.Up=10]="Up",e[e.Down=11]="Down",e[e.Left=12]="Left",e[e.Right=13]="Right"}(i=t.NavigationAction||(t.NavigationAction={}))},function(e,t){e.exports=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),o=i(3),r=function(){function e(e){this.templateRef=e}return e}();r=n.__decorate([o.Directive({selector:"[kendoDropDownListNoDataTemplate],[kendoComboBoxNoDataTemplate],[kendoAutoCompleteNoDataTemplate],[kendoMultiSelectNoDataTemplate]"}),n.__metadata("design:paramtypes",[o.TemplateRef])],r),t.NoDataTemplateDirective=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(19);t.PopupService=n.PopupService,t.POPUP_CONTAINER=n.POPUP_CONTAINER;var o=i(20);t.PopupComponent=o.PopupComponent;var r=i(31);t.PopupModule=r.PopupModule},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(20);t.POPUP_CONTAINER=new n.InjectionToken("Popup Container");var r=function(){function e(e,t,i,n){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=i,this.container=n}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),i=t.component,n=t.nodes,o=this.appendPopup(n,e.appendTo),r=o.instance;return this.projectComponentInputs(o,e),i&&i.changeDetectorRef.detectChanges(),{close:function(){i?i.destroy():(o.instance.content=null,o.changeDetectorRef.detectChanges()),o.destroy()},content:i,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:this.getComponentRootNode(o),popupOpen:r.open}},e.prototype.appendPopup=function(e,t){var i=this.applicationRef,n=this.createComponent(o.PopupComponent,e,t);return t||(i.attachView(n.hostView),this.rootViewContainerNode.appendChild(this.getComponentRootNode(n))),n},e.prototype.getComponentRootNode=function(e){return e.hostView.rootNodes[0]},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,i){var n=this.getComponentFactory(e);return i?i.createComponent(n,void 0,this.injector,t):n.create(this.injector,t)},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter(function(e){return"content"!==e||t.content instanceof n.TemplateRef}).map(function(i){e.instance[i]=t[i]}),e},e.prototype.contentFrom=function(e){if(!e||e instanceof n.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e),i=t?[t.location.nativeElement]:[];return{component:t,nodes:[i]}},e}();r.decorators=[{type:n.Injectable}],r.ctorParameters=function(){return[{type:n.ApplicationRef},{type:n.ComponentFactoryResolver},{type:n.Injector},{type:n.ElementRef,decorators:[{type:n.Inject,args:[t.POPUP_CONTAINER]},{type:n.Optional}]}]},t.PopupService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(21),r=i(22),a=i(25),s=i(26),p=i(29),l=i(24),u={left:-1e4,top:0},d="k-animation-container",c="k-animation-container-fixed",h=function(){function e(e,t,i,o,r,a,s,p){this.container=e,this._alignService=t,this._domService=i,this._cdr=o,this._positionService=r,this._resizeService=a,this._scrollableService=s,this._renderer=p,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.positionMode="fixed",this.offset=u,this.anchorViewportLeave=new n.EventEmitter,this.close=new n.EventEmitter,this.open=new n.EventEmitter,this.direction="down",this.currentOffset=u,this.resolvedPromised=Promise.resolve(null),this._renderer.addClass(e.nativeElement,d),this.updateFixedClass()}return Object.defineProperty(e.prototype,"offsetLeft",{get:function(){return this.currentOffset.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetTop",{get:function(){return this.currentOffset.top},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getZIndex",{get:function(){return this.anchor?this.hostZIndex:null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this.reposition.bind(this);this._resizeService.subscribe(e),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.hostZIndex=this._domService.zIndex(this.anchor,this.container),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewChecked=function(){var e=this;if(l.isDocumentAvailable()){var t=this.position(),i=t.flipped,n=t.offset,o=this.getDirection(i);(this.direction!==o||l.isDifferentOffset(this.currentOffset,n))&&this.resolvedPromised.then(function(){e.currentOffset=n,e.direction=o,e._cdr.markForCheck()})}},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe()},e.prototype.triggerOpen=function(e){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},e.prototype.reposition=function(){if(l.isDocumentAvailable()){var e=this.position(),t=e.flipped,i=e.offset;this.direction=this.getDirection(t),this.currentOffset=i}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,positionMode:this.positionMode})},e.prototype.getDirection=function(e){return this.animate?e?"up":"down":"none"},e.prototype.onScroll=function(e){e?this.reposition():this.anchorViewportLeave.emit()},e.prototype.updateFixedClass=function(){var e=this.container.nativeElement,t="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[t](e,c)},e}();h.decorators=[{type:n.Component,args:[{animations:[n.trigger("toggle",[n.transition("void => down, up => down",[n.style({transform:"translateY(-100%)"}),n.animate("0.1s ease-in",n.style({transform:"translateY(0)"}))]),n.transition("down => void",[n.style({transform:"translateY(0)"}),n.animate("0.1s ease-in",n.style({transform:"translateY(-100%)"}))]),n.transition("void => up, down => up",[n.style({transform:"translateY(100%)"}),n.animate("0.1s ease-in",n.style({transform:"translateY(0)"}))]),n.transition("up => void",[n.style({transform:"translateY(0)"}),n.animate("0.1s ease-in",n.style({transform:"translateY(100%)"}))])])],exportAs:"kendo-popup",providers:[o.AlignService,r.DOMService,a.PositionService,s.ResizeService,p.ScrollableService],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" [@toggle]="direction" (@toggle.done)="triggerOpen($event)">\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n </div>\n '}]}],h.ctorParameters=function(){return[{type:n.ElementRef},{type:o.AlignService},{type:r.DOMService},{type:n.ChangeDetectorRef},{type:a.PositionService},{type:s.ResizeService},{type:p.ScrollableService},{type:n.Renderer2}]},h.propDecorators={animate:[{type:n.Input}],anchor:[{type:n.Input}],anchorAlign:[{type:n.Input}],collision:[{type:n.Input}],popupAlign:[{type:n.Input}],popupClass:[{type:n.Input}],positionMode:[{type:n.Input}],offset:[{type:n.Input}],anchorViewportLeave:[{type:n.Output}],close:[{type:n.Output}],open:[{type:n.Output}],offsetLeft:[{type:n.HostBinding,args:["style.left.px"]}],offsetTop:[{type:n.HostBinding,args:["style.top.px"]}],getZIndex:[{type:n.HostBinding,args:["style.z-index"]}]},t.PopupComponent=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(22),r=i(24),a=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,i=e.element,n=e.anchorAlign,o=e.elementAlign,r=e.offset,a=e.positionMode,s="fixed"===a||!this._dom.hasOffsetParent(i),p=s?this.absoluteRect(t,i,r):this.relativeRect(t,i,r);return this._dom.align({anchorAlign:n,anchorRect:p,elementAlign:o,elementRect:this._dom.offset(i)})},e.prototype.absoluteRect=function(e,t,i){return this._dom.removeScroll(this._dom.addScroll(r.removeStackingOffset(r.eitherRect(this._dom.offset(e),i),this._dom.stackingElementOffset(t)),this._dom.stackingElementScroll(t)),this.elementScrollPosition(e,t))},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,i){return r.eitherRect(this._dom.position(e,t),i)},e}();a.decorators=[{type:n.Injectable}],a.ctorParameters=function(){return[{type:o.DOMService}]},t.AlignService=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3),o=i(23),r=i(24),a=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return o.align(e)},e.prototype.boundingOffset=function(e){return o.boundingOffset(this.nativeElement(e))},e.prototype.getWindow=function(){return r.isWindowAvailable()?window:null},e.prototype.isBodyOffset=function(e){return o.isBodyOffset(this.nativeElement(e))},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?o.offset(this.nativeElement(e)):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=this.nativeElement(e),i=t.style,n=i.left,r=i.top;t.style.left="0px",t.style.top="0px";var a=o.offset(t);return t.style.left=n,t.style.top=r,a},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t){if(!e||!t)return null;var i=this.nativeElement(e),n=o.siblingContainer(i,this.nativeElement(t));return o.positionWithScroll(i,n)},e.prototype.relativeOffset=function(e,t){return o.applyLocationOffset(this.offset(e),t,this.isBodyOffset(e))},e.prototype.addScroll=function(e,t){return o.addScroll(e,t)},e.prototype.removeScroll=function(e,t){return o.removeScroll(e,t)},e.prototype.restrictToView=function(e){return o.restrictToView(e)},e.prototype.scrollPosition=function(e){return o.scrollPosition(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return r.scrollableParents(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?o.offset(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!r.HAS_RELATIVE_STACKING_CONTEXT)return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return o.getWindowViewPort(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return r.zIndex(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return r.isDocumentAvailable()&&r.isWindowAvailable()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}();a.decorators=[{type:n.Injectable}],a.ctorParameters=function(){return[]},t.DOMService=a},function(e,t){"use strict";function i(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function n(e,t,i){var n=e.top,o=e.left;return i&&(o=0,n=0),{top:n+t.top,left:o+t.left,height:e.height,width:e.width}}function o(e){var t=d(e),i=g(e);return{x:i.pageXOffset||t.scrollLeft||0,y:i.pageYOffset||t.scrollTop||0}}function r(e){var t=c(e);return t?_(t):{x:0,y:0}}function a(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}function s(e){var t=g(e);return{height:t.innerHeight,width:t.innerWidth}}Object.defineProperty(t,"__esModule",{value:!0});var p={bottom:"bottom",center:"center",middle:"middle",left:"left",right:"right",top:"top"},l=function(e){var t=e.anchorRect,i=e.anchorAlign,n=e.elementRect,o=e.elementAlign,r=i.horizontal,a=i.vertical,s=o.horizontal,l=o.vertical,u=t.top,d=t.left;return a===p.bottom&&(u+=t.height),a!==p.center&&a!==p.middle||(u+=Math.round(t.height/2)),l===p.bottom&&(u-=n.height),l!==p.center&&l!==p.middle||(u-=Math.round(n.height/2)),r===p.right&&(d+=t.width),r!==p.center&&r!==p.middle||(d+=Math.round(t.width/2)),s===p.right&&(d-=n.width),s!==p.center&&s!==p.middle||(d-=Math.round(n.width/2)),{top:u,left:d}},u=function(e){if(!e.getBoundingClientRect)return{bottom:e.innerHeight,left:0,right:e.innerWidth,top:0};var t=e.getBoundingClientRect(),i=t.bottom,n=t.left,o=t.right,r=t.top;return{bottom:i,left:n,right:o,top:r}},d=function(e){return e.ownerDocument.documentElement},c=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||d(e)},h=function(e){return c(e)===e.ownerDocument.body},m=function(e){var t=e.style,i=t.display,n=t.