/*
    *
    * Wijmo Library 5.20181.462
    * 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 o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();define(["require","exports","wijmo/wijmo.grid.sheet","@angular/core","@angular/core","@angular/core","@angular/common","@angular/forms","wijmo/wijmo.angular2.directiveBase"],function(e,t,o,n,r,i,a,d,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wjFlexSheetMeta={selector:"wj-flex-sheet",template:"<div><ng-content></ng-content></div>",inputs:["asyncBindings","wjModelProperty","isDisabled","newRowAtTop","allowAddNew","allowDelete","allowDragging","allowMerging","allowResizing","allowSorting","quickAutoSize","autoScroll","autoSizeMode","autoGenerateColumns","childItemsPath","groupHeaderFormat","headersVisibility","showSelectedHeaders","showMarquee","itemFormatter","isReadOnly","imeEnabled","mergeManager","selectionMode","showGroups","showSort","showDropDown","showAlternatingRows","showErrors","validateEdits","treeIndent","itemsSource","autoClipboard","frozenRows","frozenColumns","cloneFrozenCells","deferResizing","sortRowIndex","stickyHeaders","preserveSelectedState","preserveOutlineState","keyActionTab","keyActionEnter","rowHeaderPath","virtualizationThreshold","isTabHolderVisible","selectedSheetIndex"],outputs:["initialized","gotFocusNg: gotFocus","lostFocusNg: lostFocus","beginningEditNg: beginningEdit","cellEditEndedNg: cellEditEnded","cellEditEndingNg: cellEditEnding","prepareCellForEditNg: prepareCellForEdit","formatItemNg: formatItem","resizingColumnNg: resizingColumn","resizedColumnNg: resizedColumn","autoSizingColumnNg: autoSizingColumn","autoSizedColumnNg: autoSizedColumn","draggingColumnNg: draggingColumn","draggingColumnOverNg: draggingColumnOver","draggedColumnNg: draggedColumn","sortingColumnNg: sortingColumn","sortedColumnNg: sortedColumn","resizingRowNg: resizingRow","resizedRowNg: resizedRow","autoSizingRowNg: autoSizingRow","autoSizedRowNg: autoSizedRow","draggingRowNg: draggingRow","draggingRowOverNg: draggingRowOver","draggedRowNg: draggedRow","deletingRowNg: deletingRow","deletedRowNg: deletedRow","loadingRowsNg: loadingRows","loadedRowsNg: loadedRows","rowEditStartingNg: rowEditStarting","rowEditStartedNg: rowEditStarted","rowEditEndingNg: rowEditEnding","rowEditEndedNg: rowEditEnded","rowAddedNg: rowAdded","groupCollapsedChangedNg: groupCollapsedChanged","groupCollapsedChangingNg: groupCollapsedChanging","itemsSourceChangedNg: itemsSourceChanged","selectionChangingNg: selectionChanging","selectionChangedNg: selectionChanged","scrollPositionChangedNg: scrollPositionChanged","updatingViewNg: updatingView","updatedViewNg: updatedView","updatingLayoutNg: updatingLayout","updatedLayoutNg: updatedLayout","pastingNg: pasting","pastedNg: pasted","pastingCellNg: pastingCell","pastedCellNg: pastedCell","copyingNg: copying","copiedNg: copied","selectedSheetChangedNg: selectedSheetChanged","selectedSheetIndexChangePC: selectedSheetIndexChange","draggingRowColumnNg: draggingRowColumn","droppingRowColumnNg: droppingRowColumn","loadedNg: loaded","unknownFunctionNg: unknownFunction","sheetClearedNg: sheetCleared"],providers:[{provide:d.NG_VALUE_ACCESSOR,useFactory:s.WjValueAccessorFactory,multi:!0,deps:["WjComponent"]}]};var g=function(e){function o(t,o,n){var r=e.call(this,s.WjDirectiveBehavior.getHostElement(t,o))||this;r.isInitialized=!1;r._wjBehaviour=s.WjDirectiveBehavior.attach(r,t,o,n);return r.created(),r}return __extends(o,e),o.prototype.created=function(){},o.prototype.ngOnInit=function(){this._wjBehaviour.ngOnInit()},o.prototype.ngAfterViewInit=function(){this._wjBehaviour.ngAfterViewInit()},o.prototype.ngOnDestroy=function(){this._wjBehaviour.ngOnDestroy()},o.prototype.addEventListener=function(t,o,n,r){var i=this;void 0===r&&(r=!1);var a=s.WjDirectiveBehavior,d=a.ngZone;d&&a.outsideZoneEvents[o]?d.runOutsideAngular(function(){e.prototype.addEventListener.call(i,t,o,n,r)}):e.prototype.addEventListener.call(this,t,o,n,r)},o.meta={outputs:t.wjFlexSheetMeta.outputs,changeEvents:{selectedSheetChanged:["selectedSheetIndex"]}},o.decorators=[{type:n.Component,args:[{selector:t.wjFlexSheetMeta.selector,template:t.wjFlexSheetMeta.template,inputs:t.wjFlexSheetMeta.inputs,outputs:t.wjFlexSheetMeta.outputs,providers:[{provide:"WjComponent",useExisting:r.forwardRef(function(){return o})}].concat(t.wjFlexSheetMeta.providers)}]}],o.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}]}]},o}(o.FlexSheet);t.WjFlexSheet=g,t.wjSheetMeta={selector:"wj-sheet",template:"",inputs:["wjProperty","name","itemsSource","visible","rowCount","columnCount"],outputs:["initialized","nameChangedNg: nameChanged"],providers:[]};var u=function(e){function o(t,o,n){var r=e.call(this,n)||this;r.isInitialized=!1;r._wjBehaviour=s.WjDirectiveBehavior.attach(r,t,o,n);return r._flexSheet=n,r.created(),r}return __extends(o,e),o.prototype.created=function(){},o.prototype.ngOnInit=function(){return this._wjBehaviour.ngOnInit(),this.itemsSource?this._flexSheet.addBoundSheet(this.name,this.itemsSource):this._flexSheet.addUnboundSheet(this.name,null!=this.boundRowCount?+this.boundRowCount:null,null!=this.boundColumnCount?+this.boundColumnCount:null)},o.prototype.ngAfterViewInit=function(){this._wjBehaviour.ngAfterViewInit()},o.prototype.ngOnDestroy=function(){this._wjBehaviour.ngOnDestroy()},o.prototype.ngOnChanges=function(e){var t;(t=e.rowCount)&&t.isFirstChange&&(this.boundRowCount=t.currentValue),(t=e.columnCount)&&t.isFirstChange&&(this.boundColumnCount=t.currentValue)},o.meta={outputs:t.wjSheetMeta.outputs},o.decorators=[{type:n.Component,args:[{selector:t.wjSheetMeta.selector,template:t.wjSheetMeta.template,inputs:t.wjSheetMeta.inputs,outputs:t.wjSheetMeta.outputs,providers:[{provide:"WjComponent",useExisting:r.forwardRef(function(){return o})}].concat(t.wjSheetMeta.providers)}]}],o.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}]}]},o}(o.Sheet);t.WjSheet=u;var l=[g,u],c=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[s.WjDirectiveBaseModule,a.CommonModule],declarations:l.slice(),exports:l.slice()}]}],e.ctorParameters=function(){return[]},e}();t.WjGridSheetModule=c});