/*
    *
    * Wijmo Library 5.20181.436
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the GrapeCity Commercial License.
    * sales@wijmo.com
    * wijmo.com/products/wijmo-5/license/
    *
    */
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();define(["require","exports","wijmo/wijmo.nav","@angular/core","@angular/core","@angular/core","@angular/common","@angular/forms","wijmo/wijmo.angular2.directiveBase"],function(e,t,n,o,r,i,a,s,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wjTreeViewMeta={selector:"wj-tree-view",template:"",inputs:["asyncBindings","wjModelProperty","isDisabled","childItemsPath","displayMemberPath","imageMemberPath","isContentHtml","showCheckboxes","autoCollapse","isAnimated","isReadOnly","allowDragging","expandOnClick","lazyLoadFunction","itemsSource","selectedItem","selectedNode","checkedItems"],outputs:["initialized","gotFocusNg: gotFocus","lostFocusNg: lostFocus","itemsSourceChangedNg: itemsSourceChanged","loadingItemsNg: loadingItems","loadedItemsNg: loadedItems","itemClickedNg: itemClicked","selectedItemChangedNg: selectedItemChanged","selectedItemChangePC: selectedItemChange","selectedNodeChangePC: selectedNodeChange","checkedItemsChangedNg: checkedItemsChanged","checkedItemsChangePC: checkedItemsChange","isCollapsedChangingNg: isCollapsedChanging","isCollapsedChangedNg: isCollapsedChanged","isCheckedChangingNg: isCheckedChanging","isCheckedChangedNg: isCheckedChanged","formatItemNg: formatItem","dragStartNg: dragStart","dragOverNg: dragOver","dropNg: drop","dragEndNg: dragEnd","nodeEditStartingNg: nodeEditStarting","nodeEditStartedNg: nodeEditStarted","nodeEditEndingNg: nodeEditEnding","nodeEditEndedNg: nodeEditEnded"],providers:[{provide:s.NG_VALUE_ACCESSOR,useFactory:d.WjValueAccessorFactory,multi:!0,deps:["WjComponent"]}]};var c=function(e){function n(t,n,o){var r=e.call(this,d.WjDirectiveBehavior.getHostElement(t,n))||this;r.isInitialized=!1;r._wjBehaviour=d.WjDirectiveBehavior.attach(r,t,n,o);return r.created(),r}return __extends(n,e),n.prototype.created=function(){},n.prototype.ngOnInit=function(){this._wjBehaviour.ngOnInit()},n.prototype.ngAfterViewInit=function(){this._wjBehaviour.ngAfterViewInit()},n.prototype.ngOnDestroy=function(){this._wjBehaviour.ngOnDestroy()},n.prototype.addEventListener=function(t,n,o,r){var i=this;void 0===r&&(r=!1);var a=d.WjDirectiveBehavior,s=a.ngZone;s&&a.outsideZoneEvents[n]?s.runOutsideAngular(function(){e.prototype.addEventListener.call(i,t,n,o,r)}):e.prototype.addEventListener.call(this,t,n,o,r)},n.meta={outputs:t.wjTreeViewMeta.outputs,changeEvents:{selectedItemChanged:["selectedItem","selectedNode"],checkedItemsChanged:["checkedItems"]}},n.decorators=[{type:o.Component,args:[{selector:t.wjTreeViewMeta.selector,template:t.wjTreeViewMeta.template,inputs:t.wjTreeViewMeta.inputs,outputs:t.wjTreeViewMeta.outputs,providers:[{provide:"WjComponent",useExisting:r.forwardRef(function(){return n})}].concat(t.wjTreeViewMeta.providers)}]}],n.ctorParameters=function(){return[{type:r.ElementRef,decorators:[{type:i.Inject,args:[r.ElementRef]}]},{type:r.Injector,decorators:[{type:i.Inject,args:[r.Injector]}]},{type:void 0,decorators:[{type:i.Inject,args:["WjComponent"]},{type:i.SkipSelf},{type:r.Optional}]}]},n}(n.TreeView);t.WjTreeView=c,t.wjTabPanelMeta={selector:"wj-tab-panel",template:"<div><ng-content></ng-content></div>",inputs:["asyncBindings","wjModelProperty","isDisabled","isAnimated","autoSwitch","selectedIndex","selectedTab"],outputs:["initialized","gotFocusNg: gotFocus","lostFocusNg: lostFocus","selectedIndexChangedNg: selectedIndexChanged","selectedIndexChangePC: selectedIndexChange","selectedTabChangePC: selectedTabChange"],providers:[{provide:s.NG_VALUE_ACCESSOR,useFactory:d.WjValueAccessorFactory,multi:!0,deps:["WjComponent"]}]};var p=function(e){function n(t,n,o){var r=e.call(this,d.WjDirectiveBehavior.getHostElement(t,n))||this;r.isInitialized=!1;r._wjBehaviour=d.WjDirectiveBehavior.attach(r,t,n,o);return r.created(),r}return __extends(n,e),n.prototype.created=function(){},n.prototype.ngOnInit=function(){this.tabs.beginUpdate(),this._wjBehaviour.ngOnInit()},n.prototype.ngAfterViewInit=function(){this.selectedIndex<0&&this.tabs.length&&(this.selectedIndex=0),this._wjBehaviour.ngAfterViewInit()},n.prototype.ngOnDestroy=function(){this._wjBehaviour.ngOnDestroy()},n.prototype.addEventListener=function(t,n,o,r){var i=this;void 0===r&&(r=!1);var a=d.WjDirectiveBehavior,s=a.ngZone;s&&a.outsideZoneEvents[n]?s.runOutsideAngular(function(){e.prototype.addEventListener.call(i,t,n,o,r)}):e.prototype.addEventListener.call(this,t,n,o,r)},n.prototype.ngAfterContentInit=function(){this.tabs.endUpdate()},n.meta={outputs:t.wjTabPanelMeta.outputs,changeEvents:{selectedIndexChanged:["selectedIndex","selectedTab"]}},n.decorators=[{type:o.Component,args:[{selector:t.wjTabPanelMeta.selector,template:t.wjTabPanelMeta.template,inputs:t.wjTabPanelMeta.inputs,outputs:t.wjTabPanelMeta.outputs,providers:[{provide:"WjComponent",useExisting:r.forwardRef(function(){return n})}].concat(t.wjTabPanelMeta.providers)}]}],n.ctorParameters=function(){return[{type:r.ElementRef,decorators:[{type:i.Inject,args:[r.ElementRef]}]},{type:r.Injector,decorators:[{type:i.Inject,args:[r.Injector]}]},{type:void 0,decorators:[{type:i.Inject,args:["WjComponent"]},{type:i.SkipSelf},{type:r.Optional}]}]},n}(n.TabPanel);t.WjTabPanel=p,t.wjTabMeta={selector:"wj-tab",template:"<ng-content></ng-content>",inputs:["wjProperty","isDisabled","isVisible"],outputs:["initialized"],providers:[]};var u=function(e){function n(t,n,o){var r=e.call(this,document.createElement("div"),document.createElement("div"))||this;r.isInitialized=!1,r.wjProperty="tabs";r._wjBehaviour=d.WjDirectiveBehavior.attach(r,t,n,o);return r.created(),r}return __extends(n,e),n.prototype.created=function(){},n.prototype.ngOnInit=function(){this._wjBehaviour.ngOnInit()},n.prototype.ngAfterViewInit=function(){this._wjBehaviour.ngAfterViewInit()},n.prototype.ngOnDestroy=function(){this._wjBehaviour.ngOnDestroy()},n.prototype.ngAfterContentInit=function(){var e=this._wjBehaviour.elementRef.nativeElement;this._setParts(e.children[0],e.children[1])},n.meta={outputs:t.wjTabMeta.outputs},n.decorators=[{type:o.Component,args:[{selector:t.wjTabMeta.selector,template:t.wjTabMeta.template,inputs:t.wjTabMeta.inputs,outputs:t.wjTabMeta.outputs,providers:[{provide:"WjComponent",useExisting:r.forwardRef(function(){return n})}].concat(t.wjTabMeta.providers)}]}],n.ctorParameters=function(){return[{type:r.ElementRef,decorators:[{type:i.Inject,args:[r.ElementRef]}]},{type:r.Injector,decorators:[{type:i.Inject,args:[r.Injector]}]},{type:void 0,decorators:[{type:i.Inject,args:["WjComponent"]},{type:i.SkipSelf},{type:r.Optional}]}]},n}(n.Tab);t.WjTab=u;var l=[c,p,u],g=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{imports:[d.WjDirectiveBaseModule,a.CommonModule],declarations:l.slice(),exports:l.slice()}]}],e.ctorParameters=function(){return[]},e}();t.WjNavModule=g});