!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@swimlane/ngx-datatable",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],t):t(((e=e||self).swimlane=e.swimlane||{},e.swimlane["ngx-datatable"]={}),e.ng.core,e.ng.common,e.rxjs,e.rxjs.operators)}(this,function(e,t,n,r,o){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t=this.minWidth,i=!this.maxWidth||r<=this.maxWidth;o&&i&&(this.element.style.width=r+"px")},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},e.decorators=[{type:t.Directive,args:[{selector:"[resizeable]",host:{"[class.resizeable]":"resizeEnabled"}}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},e.propDecorators={resizeEnabled:[{type:t.Input}],minWidth:[{type:t.Input}],maxWidth:[{type:t.Input}],resize:[{type:t.Output}],onMousedown:[{type:t.HostListener,args:["mousedown",["$event"]]}]},e}();var m=function(){function e(e,n){this.document=n,this.reorder=new t.EventEmitter,this.targetChanged=new t.EventEmitter,this.differ=e.find({}).create()}return e.prototype.ngAfterContentInit=function(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))},e.prototype.ngOnDestroy=function(){this.draggables.forEach(function(e){e.dragStart.unsubscribe(),e.dragging.unsubscribe(),e.dragEnd.unsubscribe()})},e.prototype.updateSubscriptions=function(){var e=this,t=this.differ.diff(this.createMapDiffs());if(t){var n=function(e){var t=e.previousValue;t&&(t.dragStart.unsubscribe(),t.dragging.unsubscribe(),t.dragEnd.unsubscribe())};t.forEachAddedItem(function(t){var r=t.currentValue,o=t.previousValue;n({previousValue:o}),r&&(r.dragStart.subscribe(e.onDragStart.bind(e)),r.dragging.subscribe(e.onDragging.bind(e)),r.dragEnd.subscribe(e.onDragEnd.bind(e)))}),t.forEachRemovedItem(n)}},e.prototype.onDragStart=function(){var e,t;this.positions={};var n=0;try{for(var r=s(this.draggables.toArray()),o=r.next();!o.done;o=r.next()){var i=o.value,a=i.element,l=parseInt(a.offsetLeft.toString(),0);this.positions[i.dragModel.prop]={left:l,right:l+parseInt(a.offsetWidth.toString(),0),index:n++,element:a}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.onDragging=function(e){e.element;var t=e.model,n=e.event,r=this.positions[t.prop],o=this.isTarget(t,n);o?this.lastDraggingIndex!==o.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:o.i,initialIndex:r.index}),this.lastDraggingIndex=o.i):this.lastDraggingIndex!==r.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:r.index}),this.lastDraggingIndex=r.index)},e.prototype.onDragEnd=function(e){var t=e.element,n=e.model,r=e.event,o=this.positions[n.prop],i=this.isTarget(n,r);i&&this.reorder.emit({prevIndex:o.index,newIndex:i.i,model:n}),this.lastDraggingIndex=void 0,t.style.left="auto"},e.prototype.isTarget=function(e,t){var n=0,r=t.x||t.clientX,o=t.y||t.clientY,i=this.document.elementsFromPoint(r,o),a=function(t){var r=s.positions[t];if(e.prop!==t&&i.find(function(e){return e===r.element}))return{value:{pos:r,i:n}};n++},s=this;for(var l in this.positions){var u=a(l);if("object"==typeof u)return u.value}},e.prototype.createMapDiffs=function(){return this.draggables.toArray().reduce(function(e,t){return e[t.dragModel.$$id]=t,e},{})},e.decorators=[{type:t.Directive,args:[{selector:"[orderable]"}]}],e.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:void 0,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]},e.propDecorators={reorder:[{type:t.Output}],targetChanged:[{type:t.Output}],draggables:[{type:t.ContentChildren,args:[f,{descendants:!0}]}]},e}();var b=function(){function e(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new t.EventEmitter,this.longPressing=new t.EventEmitter,this.longPressEnd=new t.EventEmitter,this.mouseX=0,this.mouseY=0}return Object.defineProperty(e.prototype,"press",{get:function(){return this.pressing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLongPress",{get:function(){return this.isLongPressing},enumerable:!0,configurable:!0}),e.prototype.onMouseDown=function(e){var t=this;if(1===e.which&&this.pressEnabled&&!e.target.classList.contains("resize-handle")){this.mouseX=e.clientX,this.mouseY=e.clientY,this.pressing=!0,this.isLongPressing=!1;var n=r.fromEvent(document,"mouseup");this.subscription=n.subscribe(function(e){return t.onMouseup()}),this.timeout=setTimeout(function(){t.isLongPressing=!0,t.longPressStart.emit({event:e,model:t.pressModel}),t.subscription.add(r.fromEvent(document,"mousemove").pipe(o.takeUntil(n)).subscribe(function(e){return t.onMouseMove(e)})),t.loop(e)},this.duration),this.loop(e)}},e.prototype.onMouseMove=function(e){if(this.pressing&&!this.isLongPressing){var t=Math.abs(e.clientX-this.mouseX)>10,n=Math.abs(e.clientY-this.mouseY)>10;(t||n)&&this.endPress()}},e.prototype.loop=function(e){var t=this;this.isLongPressing&&(this.timeout=setTimeout(function(){t.longPressing.emit({event:e,model:t.pressModel}),t.loop(e)},50))},e.prototype.endPress=function(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})},e.prototype.onMouseup=function(){this.endPress()},e.prototype.ngOnDestroy=function(){this._destroySubscription()},e.prototype._destroySubscription=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)},e.decorators=[{type:t.Directive,args:[{selector:"[long-press]"}]}],e.propDecorators={pressEnabled:[{type:t.Input}],pressModel:[{type:t.Input}],duration:[{type:t.Input}],longPressStart:[{type:t.Output}],longPressing:[{type:t.Output}],longPressEnd:[{type:t.Output}],press:[{type:t.HostBinding,args:["class.press"]}],isLongPress:[{type:t.HostBinding,args:["class.longpress"]}],onMouseDown:[{type:t.HostListener,args:["mousedown",["$event"]]}]},e}();var w=function(){function e(e,n,r){this.ngZone=e,this.renderer=r,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new t.EventEmitter,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=n.nativeElement}return e.prototype.ngOnInit=function(){if(this.scrollbarV||this.scrollbarH){var e=this.renderer;this.parentElement=e.parentNode(e.parentNode(this.element)),this._scrollEventListener=this.onScrolled.bind(this),this.parentElement.addEventListener("scroll",this._scrollEventListener)}},e.prototype.ngOnDestroy=function(){this._scrollEventListener&&(this.parentElement.removeEventListener("scroll",this._scrollEventListener),this._scrollEventListener=null)},e.prototype.setOffset=function(e){this.parentElement&&(this.parentElement.scrollTop=e)},e.prototype.onScrolled=function(e){var t=this,n=e.currentTarget;requestAnimationFrame(function(){t.scrollYPos=n.scrollTop,t.scrollXPos=n.scrollLeft,t.updateOffset()})},e.prototype.updateOffset=function(){var e;this.scrollYPosthis.prevScrollYPos&&(e="up"),this.scroll.emit({direction:e,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos},e.decorators=[{type:t.Component,args:[{selector:"datatable-scroller",template:"\n \n ",host:{class:"datatable-scroll"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef},{type:t.Renderer2}]},e.propDecorators={scrollbarV:[{type:t.Input}],scrollbarH:[{type:t.Input}],scrollHeight:[{type:t.HostBinding,args:["style.height.px"]},{type:t.Input}],scrollWidth:[{type:t.HostBinding,args:["style.width.px"]},{type:t.Input}],scroll:[{type:t.Output}]},e}();var v=function(){function e(e){this.template=e}return e.decorators=[{type:t.Directive,args:[{selector:"[ngx-datatable-group-header-template]"}]}],e.ctorParameters=function(){return[{type:t.TemplateRef}]},e}();var x=function(){function e(){this.rowHeight=0,this.toggle=new t.EventEmitter}return Object.defineProperty(e.prototype,"template",{get:function(){return this._templateInput||this._templateQuery},enumerable:!0,configurable:!0}),e.prototype.toggleExpandGroup=function(e){this.toggle.emit({type:"group",value:e})},e.prototype.expandAllGroups=function(){this.toggle.emit({type:"all",value:!0})},e.prototype.collapseAllGroups=function(){this.toggle.emit({type:"all",value:!1})},e.decorators=[{type:t.Directive,args:[{selector:"ngx-datatable-group-header"}]}],e.propDecorators={rowHeight:[{type:t.Input}],_templateInput:[{type:t.Input,args:["template"]}],_templateQuery:[{type:t.ContentChild,args:[v,{read:t.TemplateRef,static:!0}]}],toggle:[{type:t.Output}]},e}();function C(){return""}function I(e){return null==e?C:"number"==typeof e?P:-1!==e.indexOf(".")?S:R}function P(e,t){if(null==e)return"";if(!e||null==t)return e;var n=e[t];return null==n?"":n}function R(e,t){if(null==e)return"";if(!e||!t)return e;var n=e[t];return null==n?"":n}function S(e,t){if(null==e)return"";if(!e||!t)return e;var n=e[t];if(void 0!==n)return n;n=e;var r=t.split(".");if(r.length)for(var o=0;o-1&&(l=c),i.parent=r[l],i.row.level=i.parent.row.level+1,i.parent.children.push(i)}var p=[];return r[0].flatten(function(){p=u(p,[this.row])},!0),p}return e}var E=function(){function e(e){void 0===e&&(e=null),e||(e={level:-1,treeStatus:"expanded"}),this.row=e,this.parent=null,this.children=[]}return e.prototype.flatten=function(e,t){if("expanded"===this.row.treeStatus)for(var n=0,r=this.children.length;n=0;)t+=this.treeArray[e],e=(e&e+1)-1;return t},e.prototype.queryBetween=function(e,t){return this.query(t)-this.query(e-1)},e.prototype.calcRowIndex=function(e){if(!this.treeArray.length)return 0;for(var t=-1,n=this.treeArray.length,r=Math.pow(2,n.toString(2).length-1);0!==r;r>>=1){var o=t+r;o=this.treeArray[o]&&(e-=this.treeArray[o],t=o)}return t+1},e}();var J,ee,te,ne,re={},oe="undefined"!=typeof document?document.createElement("div").style:void 0,ie=(J="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,ee=void 0!==J?Array.prototype.slice.call(J).join("").match(/-(moz|webkit|ms)-/):null,te=null!==ee?ee[1]:void 0,(ne=void 0!==te?"WebKit|Moz|MS|O".match(new RegExp("("+te+")","i"))[1]:void 0)?{dom:ne,lowercase:te,css:"-"+te+"-",js:te[0].toUpperCase()+te.substr(1)}:void 0);function ae(e){var t=D(e);return re[t]||(void 0!==ie&&void 0!==oe[ie.css+e]?re[t]=ie.css+e:void 0!==oe[e]&&(re[t]=e)),re[t]}var se="undefined"!=typeof window?ae("transform"):void 0,le="undefined"!=typeof window?ae("backfaceVisibility"):void 0,ue="undefined"!=typeof window?!!ae("transform"):void 0,ce="undefined"!=typeof window?!!ae("perspective"):void 0,pe="undefined"!=typeof window?window.navigator.userAgent:"Chrome",he=/Safari\//.test(pe)&&!/Chrome\//.test(pe);function de(e,t,n){void 0!==se&&ue?!he&&ce?(e[se]="translate3d("+t+"px, "+n+"px, 0)",e[le]="hidden"):e[D(se)]="translate("+t+"px, "+n+"px)":(e.top=n+"px",e.left=t+"px")}var ge=function(){function e(e){var n=this;this.cd=e,this.selected=[],this.scroll=new t.EventEmitter,this.page=new t.EventEmitter,this.activate=new t.EventEmitter,this.select=new t.EventEmitter,this.detailToggle=new t.EventEmitter,this.rowContextmenu=new t.EventEmitter(!1),this.treeAction=new t.EventEmitter,this.rowHeightsCache=new Z,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new Map,this.rowExpansions=[],this.getDetailRowHeight=function(e,t){if(!n.rowDetail)return 0;var r=n.rowDetail.rowHeight;return"function"==typeof r?r(e,t):r},this.rowTrackingFn=function(e,t){var r=n.getRowIndex(t);return n.trackByProp?t[n.trackByProp]:r}}return Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(e){this._pageSize=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e;var t=Y(e);this.columnGroupWidths=U(t,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=e,(!this.scrollbarV||this.scrollbarV&&!this.virtualization)&&this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rowCount},set:function(e){this._rowCount=e,this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bodyWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bodyHeight",{get:function(){return this._bodyHeight},set:function(e){this.scrollbarV?this._bodyHeight=e+"px":this._bodyHeight="auto",this.recalcLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectEnabled",{get:function(){return!!this.selectionType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){if(this.scrollbarV&&this.virtualization&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(function(t){var n=t.type,r=t.value;"row"===n&&e.toggleRowExpansion(r),"all"===n&&e.toggleAllRows(r),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(function(t){var n=t.type,r=t.value;"group"===n&&e.toggleRowExpansion(r),"all"===n&&e.toggleAllRows(r),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()}))},e.prototype.ngOnDestroy=function(){(this.rowDetail||this.groupHeader)&&this.listener.unsubscribe()},e.prototype.updateOffsetY=function(e){if(this.scroller){if(this.scrollbarV&&this.virtualization&&e){var t=this.pageSize*e;e=this.rowHeightsCache.query(t-1)}else this.scrollbarV&&!this.virtualization&&(e=0);this.scroller.setOffset(e||0)}},e.prototype.onBodyScroll=function(e){var t=e.scrollYPos,n=e.scrollXPos;this.offsetY===t&&this.offsetX===n||this.scroll.emit({offsetY:t,offsetX:n}),this.offsetY=t,this.offsetX=n,this.updateIndexes(),this.updatePage(e.direction),this.updateRows()},e.prototype.updatePage=function(e){var t=this.indexes.first/this.pageSize;"up"===e?t=Math.ceil(t):"down"===e&&(t=Math.floor(t)),void 0===e||isNaN(t)||this.page.emit({offset:t})},e.prototype.updateRows=function(){var e=this.indexes,t=e.first,n=e.last,r=t,o=0,i=[];if(this.rowIndexes.clear(),this.groupedRows){for(1===this.groupedRows.length&&this.groupedRows[0].value.length;r-1;if(this.scrollbarV&&this.virtualization){var o=this.getDetailRowHeight(e)*(r?-1:1),i=this.getRowIndex(e);this.rowHeightsCache.update(i,o)}r?this.rowExpansions.splice(n,1):this.rowExpansions.push(e),this.detailToggle.emit({rows:[e],currentIndex:t})},e.prototype.toggleAllRows=function(e){var t,n;this.rowExpansions=[];var r=this.getAdjustedViewPortIndex();if(e)try{for(var o=s(this.rows),i=o.next();!i.done;i=o.next()){var a=i.value;this.rowExpansions.push(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:r})},e.prototype.recalcLayout=function(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()},e.prototype.columnTrackingFn=function(e,t){return t.$$id},e.prototype.stylesByGroup=function(e){var t=this.columnGroupWidths,n=this.offsetX,r={width:t[e]+"px"};if("left"===e)de(r,n,0);else if("right"===e){var o=parseInt(this.innerWidth+"",0);de(r,-1*(t.total-o-n),0)}return r},e.prototype.getRowExpanded=function(e){var t,n;if(0===this.rowExpansions.length&&this.groupExpansionDefault)try{for(var r=s(this.groupedRows),o=r.next();!o.done;o=r.next()){var i=o.value;this.rowExpansions.push(i)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this.getRowExpandedIdx(e,this.rowExpansions)>-1},e.prototype.getRowExpandedIdx=function(e,t){var n=this;if(!t||!t.length)return-1;var r=this.rowIdentity(e);return t.findIndex(function(e){return n.rowIdentity(e)===r})},e.prototype.getRowIndex=function(e){return this.rowIndexes.get(e)||0},e.prototype.onTreeAction=function(e){this.treeAction.emit({row:e})},e.decorators=[{type:t.Component,args:[{selector:"datatable-body",template:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n ',changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"datatable-body"}}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={scrollbarV:[{type:t.Input}],scrollbarH:[{type:t.Input}],loadingIndicator:[{type:t.Input}],externalPaging:[{type:t.Input}],rowHeight:[{type:t.Input}],offsetX:[{type:t.Input}],emptyMessage:[{type:t.Input}],selectionType:[{type:t.Input}],selected:[{type:t.Input}],rowIdentity:[{type:t.Input}],rowDetail:[{type:t.Input}],groupHeader:[{type:t.Input}],selectCheck:[{type:t.Input}],displayCheck:[{type:t.Input}],trackByProp:[{type:t.Input}],rowClass:[{type:t.Input}],groupedRows:[{type:t.Input}],groupExpansionDefault:[{type:t.Input}],innerWidth:[{type:t.Input}],groupRowsBy:[{type:t.Input}],virtualization:[{type:t.Input}],summaryRow:[{type:t.Input}],summaryPosition:[{type:t.Input}],summaryHeight:[{type:t.Input}],pageSize:[{type:t.Input}],rows:[{type:t.Input}],columns:[{type:t.Input}],offset:[{type:t.Input}],rowCount:[{type:t.Input}],bodyWidth:[{type:t.HostBinding,args:["style.width"]}],bodyHeight:[{type:t.Input},{type:t.HostBinding,args:["style.height"]}],scroll:[{type:t.Output}],page:[{type:t.Output}],activate:[{type:t.Output}],select:[{type:t.Output}],detailToggle:[{type:t.Output}],rowContextmenu:[{type:t.Output}],treeAction:[{type:t.Output}],scroller:[{type:t.ViewChild,args:[w,{static:!1}]}]},e}();var fe=function(){function e(e){this.cd=e,this.sort=new t.EventEmitter,this.reorder=new t.EventEmitter,this.resize=new t.EventEmitter,this.select=new t.EventEmitter,this.columnContextmenu=new t.EventEmitter(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}},this.destroyed=!1}return Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(e){var t=this;this._innerWidth=e,setTimeout(function(){if(t._columns){var e=Y(t._columns);t._columnGroupWidths=U(e,t._columns),t.setStylesByGroup()}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerHeight",{get:function(){return this._headerHeight},set:function(e){this._headerHeight="auto"!==e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){var t=this;this._columns=e;var n=Y(e);this._columnsByPin=Q(e),setTimeout(function(){t._columnGroupWidths=U(n,e),t.setStylesByGroup()})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.setStylesByGroup()},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.destroyed=!0},e.prototype.onLongPressStart=function(e){var t=e.event;e.model.dragging=!0,this.dragEventTarget=t},e.prototype.onLongPressEnd=function(e){var t=this,n=e.event,r=e.model;this.dragEventTarget=n,setTimeout(function(){var e=t._columns.find(function(e){return e.$$id===r.$$id});e&&(e.dragging=!1)},5)},Object.defineProperty(e.prototype,"headerWidth",{get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"},enumerable:!0,configurable:!0}),e.prototype.trackByGroups=function(e,t){return t.type},e.prototype.columnTrackingFn=function(e,t){return t.$$id},e.prototype.onColumnResized=function(e,t){e<=t.minWidth?e=t.minWidth:e>=t.maxWidth&&(e=t.maxWidth),this.resize.emit({column:t,prevValue:t.width,newValue:e})},e.prototype.onColumnReordered=function(e){var t=e.prevIndex,n=e.newIndex,r=e.model,o=this.getColumn(n);o.isTarget=!1,o.targetMarkerContext=void 0,this.reorder.emit({column:r,prevValue:t,newValue:n})},e.prototype.onTargetChanged=function(e){var t=e.prevIndex,n=e.newIndex,r=e.initialIndex;if(t||0===t){var o=this.getColumn(t);o.isTarget=!1,o.targetMarkerContext=void 0}if(n||0===n){var i=this.getColumn(n);i.isTarget=!0,r!==n&&(i.targetMarkerContext={class:"targetMarker ".concat(r>n?"dragFromRight":"dragFromLeft")})}},e.prototype.getColumn=function(e){var t=this._columnsByPin[0].columns.length;if(e\n \n \n \n \n \n ',host:{class:"datatable-header"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={sortAscendingIcon:[{type:t.Input}],sortDescendingIcon:[{type:t.Input}],scrollbarH:[{type:t.Input}],dealsWithGroup:[{type:t.Input}],targetMarkerTemplate:[{type:t.Input}],innerWidth:[{type:t.Input}],sorts:[{type:t.Input}],sortType:[{type:t.Input}],allRowsSelected:[{type:t.Input}],selectionType:[{type:t.Input}],reorderable:[{type:t.Input}],headerHeight:[{type:t.HostBinding,args:["style.height"]},{type:t.Input}],columns:[{type:t.Input}],offsetX:[{type:t.Input}],sort:[{type:t.Output}],reorder:[{type:t.Output}],resize:[{type:t.Output}],select:[{type:t.Output}],columnContextmenu:[{type:t.Output}],headerWidth:[{type:t.HostBinding,args:["style.width"]}]},e}();function ye(e,t,n){var r,o,i;n=n||{};var a=null,s=0;function l(){s=!1===n.leading?0:+new Date,a=null,i=e.apply(r,o)}return function(){var u=+new Date;s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,o=arguments,c<=0?(clearTimeout(a),a=null,s=u,i=e.apply(r,o)):a||!1===n.trailing||(a=setTimeout(l,c)),i}}function me(e,t){return function(n,r,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:o.enumerable,value:ye(o.value,e,t)}),this[r]}}}}function be(e){var t,n,r=0;try{for(var o=s(e),i=o.next();!i.done;i=o.next()){r+=i.value.flexGrow||0}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function we(e,t){var n=K(e),r=be(e),o=Y(e);n!==t&&function(e,t,n){var r,o,i,a;for(var l in e)try{for(var u=(r=void 0,s(e[l])),c=u.next();!c.done;c=u.next()){(y=c.value).canAutoResize?y.width=0:(t-=y.width,n-=y.flexGrow?y.flexGrow:0)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}var p={},h=t;do{var d=h/n;for(var l in h=0,e)try{for(var g=(i=void 0,s(e[l])),f=g.next();!f.done;f=g.next()){var y;if((y=f.value).canAutoResize&&!p[y.prop]){var m=y.width+y.flexGrow*d;void 0!==y.minWidth&&m=t;try{for(var b=(l=void 0,s(c)),w=b.next();!w.done;w=b.next()){var v=w.value;if(g&&r)v.width=v.$$oldWidth||v.width||o;else{var x=(v.width||o)+d;v.minWidth&&xv.maxWidth?(v.width=v.maxWidth,m.push(v)):v.width=x}v.width=Math.max(0,v.width)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(u=b.return)&&u.call(b)}finally{if(l)throw l.error}}y=t-(f=Ce(e)),xe(c,m)}while(y>1&&0!==c.length)}function xe(e,t){var n,r;try{for(var o=s(t),i=o.next();!i.done;i=o.next()){var a=i.value,l=e.indexOf(a);e.splice(l,1)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Ce(e,t){var n,r;void 0===t&&(t=300);var o=0;try{for(var i=s(e),a=i.next();!a.done;a=i.next()){o+=a.value.width||t}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var Ie={asc:"asc",desc:"desc"};function Pe(e,t){return e===A.single?t===Ie.asc?Ie.desc:Ie.asc:t?t===Ie.asc?Ie.desc:void Ie.desc:Ie.asc}function Re(e,t){if(null==e&&(e=0),null==t&&(t=0),e instanceof Date&&t instanceof Date){if(et)return 1}else if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(e=String(e),t=String(t),e.toLowerCase()t.toLowerCase())return 1}else{if(parseFloat(e)parseFloat(t))return 1}return 0}function Se(e,t,n){if(!e)return[];if(!n||!n.length||!t)return u(e);var r=new Map;e.forEach(function(e,t){return r.set(e,t)});var o=u(e),i=t.reduce(function(e,t){return t.comparator&&"function"==typeof t.comparator&&(e[t.prop]=t.comparator),e},{}),a=n.map(function(e){var t=e.prop;return{prop:t,dir:e.dir,valueGetter:I(t),compareFn:i[t]||Re}});return o.sort(function(e,t){var n,o;try{for(var i=s(a),l=i.next();!l.done;l=i.next()){var u=l.value,c=u.prop,p=u.valueGetter,h=p(e,c),d=p(t,c),g=u.dir!==Ie.desc?u.compareFn(h,d,e,t,u.dir):-u.compareFn(h,d,e,t,u.dir);if(0!==g)return g}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return r.has(e)&&r.has(t)?r.get(e)r){for(var s=o[r],l=r;ln;l--)o[l]=o[l-1];o[n]=s}this._internalColumns=o,this.reorder.emit({column:t,newValue:n,prevValue:r})},e.prototype.onColumnSort=function(e){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=e.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=H(this._internalRows,T(this.treeFromRelation),T(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(e)},e.prototype.onHeaderSelect=function(e){var t,n;if(this.selectAllRowsOnPage){var r=this.bodyComponent.indexes.first,o=this.bodyComponent.indexes.last,i=this.selected.length===o-r;this.selected=[],i||(t=this.selected).push.apply(t,u(this._internalRows.slice(r,o)))}else{i=this.selected.length===this.rows.length;this.selected=[],i||(n=this.selected).push.apply(n,u(this.rows))}this.select.emit({selected:this.selected})},e.prototype.onBodySelect=function(e){this.select.emit(e)},e.prototype.onTreeAction=function(e){var t=this,n=e.row,r=this._rows.findIndex(function(n){return n[t.treeToRelation]===e.row[t.treeToRelation]});this.treeAction.emit({row:n,rowIndex:r})},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach(function(e){return e.unsubscribe()})},e.prototype.listenForColumnInputChanges=function(){var e=this;this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(function(){e.columnTemplates&&e.columnTemplates.notifyOnChanges()}))},e.prototype.sortInternalRows=function(){this._internalRows=Se(this._internalRows,this._internalColumns,this.sorts)},e.decorators=[{type:t.Component,args:[{selector:"ngx-datatable",template:'
\n \n \n \n \n \n \n
\n',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,host:{class:"ngx-datatable"},styles:[".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;-webkit-transform:translate3d(0,0,0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:0}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:0}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:0}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}"]}]}],e.ctorParameters=function(){return[{type:c,decorators:[{type:t.SkipSelf}]},{type:p,decorators:[{type:t.SkipSelf}]},{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:t.KeyValueDiffers},{type:h},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:["configuration"]}]}]},e.propDecorators={targetMarkerTemplate:[{type:t.Input}],rows:[{type:t.Input}],groupRowsBy:[{type:t.Input}],groupedRows:[{type:t.Input}],columns:[{type:t.Input}],selected:[{type:t.Input}],scrollbarV:[{type:t.Input}],scrollbarH:[{type:t.Input}],rowHeight:[{type:t.Input}],columnMode:[{type:t.Input}],headerHeight:[{type:t.Input}],footerHeight:[{type:t.Input}],externalPaging:[{type:t.Input}],externalSorting:[{type:t.Input}],limit:[{type:t.Input}],count:[{type:t.Input}],offset:[{type:t.Input}],loadingIndicator:[{type:t.Input}],selectionType:[{type:t.Input}],reorderable:[{type:t.Input}],swapColumns:[{type:t.Input}],sortType:[{type:t.Input}],sorts:[{type:t.Input}],cssClasses:[{type:t.Input}],messages:[{type:t.Input}],rowClass:[{type:t.Input}],selectCheck:[{type:t.Input}],displayCheck:[{type:t.Input}],groupExpansionDefault:[{type:t.Input}],trackByProp:[{type:t.Input}],selectAllRowsOnPage:[{type:t.Input}],virtualization:[{type:t.Input}],treeFromRelation:[{type:t.Input}],treeToRelation:[{type:t.Input}],summaryRow:[{type:t.Input}],summaryHeight:[{type:t.Input}],summaryPosition:[{type:t.Input}],scroll:[{type:t.Output}],activate:[{type:t.Output}],select:[{type:t.Output}],sort:[{type:t.Output}],page:[{type:t.Output}],reorder:[{type:t.Output}],resize:[{type:t.Output}],tableContextmenu:[{type:t.Output}],treeAction:[{type:t.Output}],isFixedHeader:[{type:t.HostBinding,args:["class.fixed-header"]}],isFixedRow:[{type:t.HostBinding,args:["class.fixed-row"]}],isVertScroll:[{type:t.HostBinding,args:["class.scroll-vertical"]}],isVirtualized:[{type:t.HostBinding,args:["class.virtualized"]}],isHorScroll:[{type:t.HostBinding,args:["class.scroll-horz"]}],isSelectable:[{type:t.HostBinding,args:["class.selectable"]}],isCheckboxSelection:[{type:t.HostBinding,args:["class.checkbox-selection"]}],isCellSelection:[{type:t.HostBinding,args:["class.cell-selection"]}],isSingleSelection:[{type:t.HostBinding,args:["class.single-selection"]}],isMultiSelection:[{type:t.HostBinding,args:["class.multi-selection"]}],isMultiClickSelection:[{type:t.HostBinding,args:["class.multi-click-selection"]}],columnTemplates:[{type:t.ContentChildren,args:[L]}],rowDetail:[{type:t.ContentChild,args:[X,{static:!1}]}],groupHeader:[{type:t.ContentChild,args:[x,{static:!1}]}],footer:[{type:t.ContentChild,args:[N,{static:!1}]}],bodyComponent:[{type:t.ViewChild,args:[ge,{static:!1}]}],headerComponent:[{type:t.ViewChild,args:[fe,{static:!1}]}],rowIdentity:[{type:t.Input}],onWindowResize:[{type:t.HostListener,args:["window:resize"]}]},function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([me(5),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],e.prototype,"onWindowResize",null),e}();var He=function(){function e(e){this.cd=e,this.sort=new t.EventEmitter,this.select=new t.EventEmitter,this.columnContextmenu=new t.EventEmitter(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}return Object.defineProperty(e.prototype,"allRowsSelected",{get:function(){return this._allRowsSelected},set:function(e){this._allRowsSelected=e,this.cellContext.allRowsSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorts",{get:function(){return this._sorts},set:function(e){this._sorts=e,this.sortDir=this.calcSortDir(e),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCssClasses",{get:function(){var e,t,n="datatable-header-cell";if(this.column.sortable&&(n+=" sortable"),this.column.resizeable&&(n+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)n+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){var r=this.column.headerClass({column:this.column});if("string"==typeof r)n+=r;else if("object"==typeof r){var o=Object.keys(r);try{for(var i=s(o),a=i.next();!a.done;a=i.next()){var l=a.value;!0===r[l]&&(n+=" "+l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}}var u=this.sortDir;return u&&(n+=" sort-active sort-"+u),n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return void 0===this.column.headerTemplate?this.column.name:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.column.minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this.column.maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.column.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCheckboxable",{get:function(){return this.column.checkboxable&&this.column.headerCheckboxable&&this.selectionType===M.checkbox},enumerable:!0,configurable:!0}),e.prototype.onContextmenu=function(e){this.columnContextmenu.emit({event:e,column:this.column})},e.prototype.calcSortDir=function(e){var t=this;if(e&&this.column){var n=e.find(function(e){return e.prop===t.column.prop});if(n)return n.dir}},e.prototype.onSort=function(){if(this.column.sortable){var e=Pe(this.sortType,this.sortDir);this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:e})}},e.prototype.calcSortClass=function(e){return e===Ie.asc?"sort-btn sort-asc "+this.sortAscendingIcon:e===Ie.desc?"sort-btn sort-desc "+this.sortDescendingIcon:"sort-btn"},e.decorators=[{type:t.Component,args:[{selector:"datatable-header-cell",template:'\n
\n \n \n \n \n \n \n \n \n \n
\n ',host:{class:"datatable-header-cell"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e.propDecorators={sortType:[{type:t.Input}],sortAscendingIcon:[{type:t.Input}],sortDescendingIcon:[{type:t.Input}],isTarget:[{type:t.Input}],targetMarkerTemplate:[{type:t.Input}],targetMarkerContext:[{type:t.Input}],allRowsSelected:[{type:t.Input}],selectionType:[{type:t.Input}],column:[{type:t.Input}],headerHeight:[{type:t.HostBinding,args:["style.height.px"]},{type:t.Input}],sorts:[{type:t.Input}],sort:[{type:t.Output}],select:[{type:t.Output}],columnContextmenu:[{type:t.Output}],columnCssClasses:[{type:t.HostBinding,args:["class"]}],name:[{type:t.HostBinding,args:["attr.title"]}],minWidth:[{type:t.HostBinding,args:["style.minWidth.px"]}],maxWidth:[{type:t.HostBinding,args:["style.maxWidth.px"]}],width:[{type:t.HostBinding,args:["style.width.px"]}],onContextmenu:[{type:t.HostListener,args:["contextmenu",["$event"]]}]},e}();var Ee=function(){function e(){this.selectedCount=0,this.page=new t.EventEmitter}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.rowCount/this.pageSize>1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"curPage",{get:function(){return this.offset+1},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Component,args:[{selector:"datatable-footer",template:'\n \n \n \n
\n {{ selectedCount?.toLocaleString() }} {{ selectedMessage }} / \n {{ rowCount?.toLocaleString() }} {{ totalMessage }}\n
\n \n \n \n ',host:{class:"datatable-footer"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.propDecorators={footerHeight:[{type:t.Input}],rowCount:[{type:t.Input}],pageSize:[{type:t.Input}],offset:[{type:t.Input}],pagerLeftArrowIcon:[{type:t.Input}],pagerRightArrowIcon:[{type:t.Input}],pagerPreviousIcon:[{type:t.Input}],pagerNextIcon:[{type:t.Input}],totalMessage:[{type:t.Input}],footerTemplate:[{type:t.Input}],selectedCount:[{type:t.Input}],selectedMessage:[{type:t.Input}],page:[{type:t.Output}]},e}();var De=function(){function e(){this.change=new t.EventEmitter,this._count=0,this._page=1,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this._page},set:function(e){this._page=e,this.pages=this.calcPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalPages",{get:function(){var e=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(e||0,1)},enumerable:!0,configurable:!0}),e.prototype.canPrevious=function(){return this.page>1},e.prototype.canNext=function(){return this.page0&&e<=this.totalPages&&e!==this.page&&(this.page=e,this.change.emit({page:e}))},e.prototype.calcPages=function(e){var t=[],n=1,r=this.totalPages,o=5this.totalPages&&(n=Math.max(this.totalPages-5+1,1),r=this.totalPages));for(var i=n;i<=r;i++)t.push({number:i,text:i});return t},e.decorators=[{type:t.Component,args:[{selector:"datatable-pager",template:'\n \n ',host:{class:"datatable-pager"},changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.propDecorators={pagerLeftArrowIcon:[{type:t.Input}],pagerRightArrowIcon:[{type:t.Input}],pagerPreviousIcon:[{type:t.Input}],pagerNextIcon:[{type:t.Input}],size:[{type:t.Input}],count:[{type:t.Input}],page:[{type:t.Input}],change:[{type:t.Output}]},e}();var _e=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"datatable-progress",template:'\n
\n
\n
\n
\n
\n ',changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e}(),ke={up:38,down:40,return:13,escape:27,left:37,right:39};ke[ke.up]="up",ke[ke.down]="down",ke[ke.return]="return",ke[ke.escape]="escape",ke[ke.left]="left",ke[ke.right]="right";var Oe=function(){function e(e,n,r,o){this.differs=e,this.scrollbarHelper=n,this.cd=r,this.treeStatus="collapsed",this.activate=new t.EventEmitter,this.treeAction=new t.EventEmitter,this._groupStyles={left:{},center:{},right:{}},this._element=o.nativeElement,this._rowDiffer=e.find({}).create()}return Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e,this.recalculateColumns(e),this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){return this._innerWidth},set:function(e){if(this._columns){var t=Y(this._columns);this._columnGroupWidths=U(t,this._columns)}this._innerWidth=e,this.recalculateColumns(),this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.buildStylesByGroup()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){var e,t,n="datatable-body-row";if(this.isSelected&&(n+=" active"),this.rowIndex%2!=0&&(n+=" datatable-row-odd"),this.rowIndex%2==0&&(n+=" datatable-row-even"),this.rowClass){var r=this.rowClass(this.row);if("string"==typeof r)n+=" "+r;else if("object"==typeof r){var o=Object.keys(r);try{for(var i=s(o),a=i.next();!a.done;a=i.next()){var l=a.value;!0===r[l]&&(n+=" "+l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}}return n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnsTotalWidths",{get:function(){return this._columnGroupWidths.total},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()},e.prototype.trackByGroups=function(e,t){return t.type},e.prototype.columnTrackingFn=function(e,t){return t.$$id},e.prototype.buildStylesByGroup=function(){this._groupStyles.left=this.calcStylesByGroup("left"),this._groupStyles.center=this.calcStylesByGroup("center"),this._groupStyles.right=this.calcStylesByGroup("right"),this.cd.markForCheck()},e.prototype.calcStylesByGroup=function(e){var t=this._columnGroupWidths,n=this.offsetX,r={width:t[e]+"px"};if("left"===e)de(r,n,0);else if("right"===e){var o=parseInt(this.innerWidth+"",0);de(r,-1*(t.total-o-n+this.scrollbarHelper.width),0)}return r},e.prototype.onActivate=function(e,t){e.cellIndex=t,e.rowElement=this._element,this.activate.emit(e)},e.prototype.onKeyDown=function(e){var t=e.keyCode,n=e.target===this._element;(t===ke.return||t===ke.down||t===ke.up||t===ke.left||t===ke.right)&&n&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,rowElement:this._element}))},e.prototype.onMouseenter=function(e){this.activate.emit({type:"mouseenter",event:e,row:this.row,rowElement:this._element})},e.prototype.recalculateColumns=function(e){void 0===e&&(e=this.columns),this._columns=e;var t=Y(this._columns);this._columnsByPin=Q(this._columns),this._columnGroupWidths=U(t,this._columns)},e.prototype.onTreeAction=function(){this.treeAction.emit()},e.decorators=[{type:t.Component,args:[{selector:"datatable-body-row",changeDetection:t.ChangeDetectionStrategy.OnPush,template:'\n \n \n \n \n '}]}],e.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:c,decorators:[{type:t.SkipSelf}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},e.propDecorators={columns:[{type:t.Input}],innerWidth:[{type:t.Input}],expanded:[{type:t.Input}],rowClass:[{type:t.Input}],row:[{type:t.Input}],group:[{type:t.Input}],isSelected:[{type:t.Input}],rowIndex:[{type:t.Input}],displayCheck:[{type:t.Input}],treeStatus:[{type:t.Input}],offsetX:[{type:t.Input}],cssClass:[{type:t.HostBinding,args:["class"]}],rowHeight:[{type:t.HostBinding,args:["style.height.px"]},{type:t.Input}],columnsTotalWidths:[{type:t.HostBinding,args:["style.width.px"]}],activate:[{type:t.Output}],treeAction:[{type:t.Output}],onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}],onMouseenter:[{type:t.HostListener,args:["mouseenter",["$event"]]}]},e}();var ze=function(){function e(e,n){this.cd=e,this.differs=n,this.rowContextmenu=new t.EventEmitter(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=n.find({}).create()}return Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.rowContext.rowIndex=e,this.groupContext.rowIndex=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){this._expanded=e,this.groupContext.expanded=e,this.rowContext.expanded=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())},e.prototype.onContextmenu=function(e){this.rowContextmenu.emit({event:e,row:this.row})},e.prototype.getGroupHeaderStyle=function(){var e={};return e.transform="translate3d("+this.offsetX+"px, 0px, 0px)",e["backface-visibility"]="hidden",e.width=this.innerWidth,e},e.decorators=[{type:t.Component,args:[{selector:"datatable-row-wrapper",changeDetection:t.ChangeDetectionStrategy.OnPush,template:'\n
\n \n \n
\n \n \n \n \n \n \n ',host:{class:"datatable-row-wrapper"}}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.KeyValueDiffers}]},e.propDecorators={innerWidth:[{type:t.Input}],rowDetail:[{type:t.Input}],groupHeader:[{type:t.Input}],offsetX:[{type:t.Input}],detailRowHeight:[{type:t.Input}],row:[{type:t.Input}],groupedRows:[{type:t.Input}],rowContextmenu:[{type:t.Output}],rowIndex:[{type:t.Input}],expanded:[{type:t.Input}],onContextmenu:[{type:t.HostListener,args:["contextmenu",["$event"]]}]},e}();var je=function(){function e(e,n){this.cd=n,this.activate=new t.EventEmitter,this.treeAction=new t.EventEmitter,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex,treeStatus:this.treeStatus,onTreeAction:this.onTreeAction.bind(this)},this._element=e.nativeElement}return Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){this._group=e,this.cellContext.group=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(e){this._rowHeight=e,this.cellContext.rowHeight=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.cellContext.isSelected=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},set:function(e){this._expanded=e,this.cellContext.expanded=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.cellContext.rowIndex=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this._row},set:function(e){this._row=e,this.cellContext.row=e,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorts",{get:function(){return this._sorts},set:function(e){this._sorts=e,this.calcSortDir=this.calcSortDir(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeStatus",{get:function(){return this._treeStatus},set:function(e){this._treeStatus="collapsed"!==e&&"expanded"!==e&&"loading"!==e&&"disabled"!==e?"collapsed":e,this.cellContext.treeStatus=this._treeStatus,this.checkValueUpdates(),this.cd.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columnCssClasses",{get:function(){var e,t,n="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)n+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){var r=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof r)n+=r;else if("object"==typeof r){var o=Object.keys(r);try{for(var i=s(o),a=i.next();!a.done;a=i.next()){var l=a.value;!0===r[l]&&(n+=" "+l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}}return this.sortDir||(n+=" sort-active"),this.isFocused&&(n+=" active"),this.sortDir===Ie.asc&&(n+=" sort-asc"),this.sortDir===Ie.desc&&(n+=" sort-desc"),n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.column.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.column.minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this.column.maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e=this.rowHeight;return isNaN(e)?e:e+"px"},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this.checkValueUpdates()},e.prototype.ngOnDestroy=function(){this.cellTemplate&&this.cellTemplate.clear()},e.prototype.checkValueUpdates=function(){var e="";if(this.row&&this.column){var t=this.column.$$valueGetter(this.row,this.column.prop),n=this.column.pipe;n?e=n.transform(t):void 0!==e&&(e=t)}else e="";this.value!==e&&(this.value=e,this.cellContext.value=e,this.sanitizedValue=null!=e?this.stripHtml(e):e,this.cd.markForCheck())},e.prototype.onFocus=function(){this.isFocused=!0},e.prototype.onBlur=function(){this.isFocused=!1},e.prototype.onClick=function(e){this.activate.emit({type:"click",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})},e.prototype.onDblClick=function(e){this.activate.emit({type:"dblclick",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})},e.prototype.onKeyDown=function(e){var t=e.keyCode,n=e.target===this._element;(t===ke.return||t===ke.down||t===ke.up||t===ke.left||t===ke.right)&&n&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))},e.prototype.onCheckboxChange=function(e){this.activate.emit({type:"checkbox",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element,treeStatus:"collapsed"})},e.prototype.calcSortDir=function(e){var t=this;if(e){var n=e.find(function(e){return e.prop===t.column.prop});return n?n.dir:void 0}},e.prototype.stripHtml=function(e){return e.replace?e.replace(/<\/?[^>]+(>|$)/g,""):e},e.prototype.onTreeAction=function(){this.treeAction.emit(this.row)},e.prototype.calcLeftMargin=function(e,t){var n=null!=e.treeLevelIndent?e.treeLevelIndent:50;return e.isTreeColumn?t.level*n:0},e.decorators=[{type:t.Component,args:[{selector:"datatable-body-cell",changeDetection:t.ChangeDetectionStrategy.OnPush,template:'\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n
\n '}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},e.propDecorators={displayCheck:[{type:t.Input}],group:[{type:t.Input}],rowHeight:[{type:t.Input}],isSelected:[{type:t.Input}],expanded:[{type:t.Input}],rowIndex:[{type:t.Input}],column:[{type:t.Input}],row:[{type:t.Input}],sorts:[{type:t.Input}],treeStatus:[{type:t.Input}],activate:[{type:t.Output}],treeAction:[{type:t.Output}],cellTemplate:[{type:t.ViewChild,args:["cellTemplate",{read:t.ViewContainerRef,static:!0}]}],columnCssClasses:[{type:t.HostBinding,args:["class"]}],width:[{type:t.HostBinding,args:["style.width.px"]}],minWidth:[{type:t.HostBinding,args:["style.minWidth.px"]}],maxWidth:[{type:t.HostBinding,args:["style.maxWidth.px"]}],height:[{type:t.HostBinding,args:["style.height"]}],onFocus:[{type:t.HostListener,args:["focus"]}],onBlur:[{type:t.HostListener,args:["blur"]}],onClick:[{type:t.HostListener,args:["click",["$event"]]}],onDblClick:[{type:t.HostListener,args:["dblclick",["$event"]]}],onKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]},e}();function Be(e,t,n){var r=n(t,e);return r>-1?e.splice(r,1):e.push(t),e}function Me(e,t,n,r,o){for(var i=n=n)||!i&&(a>=r&&a<=n))&&a>=l.start&&a<=l.end&&e.push(s)}return e}var Ae=function(){function e(){this.activate=new t.EventEmitter,this.select=new t.EventEmitter}return e.prototype.selectRow=function(e,t,n){var r;if(this.selectEnabled){var o=this.selectionType===M.checkbox,i=this.selectionType===M.multi,a=this.selectionType===M.multiClick,s=[];s=i||o||a?e.shiftKey?Me([],this.rows,t,this.prevIndex,this.getRowSelectedIdx.bind(this)):e.ctrlKey||e.metaKey||a||o?Be(u(this.selected),n,this.getRowSelectedIdx.bind(this)):Be([],n,this.getRowSelectedIdx.bind(this)):Be([],n,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(s=s.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),(r=this.selected).push.apply(r,u(s)),this.prevIndex=t,this.select.emit({selected:s})}},e.prototype.onActivate=function(e,t){var n=e.type,r=e.event,o=e.row,i=this.selectionType===M.checkbox;!i&&("click"===n||"dblclick"===n)||i&&"checkbox"===n?this.selectRow(r,t,o):"keydown"===n&&(r.keyCode===ke.return?this.selectRow(r,t,o):this.onKeyboardFocus(e)),this.activate.emit(e)},e.prototype.onKeyboardFocus=function(e){var t=e.event.keyCode;if(t===ke.up||t===ke.down||t===ke.right||t===ke.left){var n=this.selectionType===M.cell;e.cellElement&&n?n&&this.focusCell(e.cellElement,e.rowElement,t,e.cellIndex):this.focusRow(e.rowElement,t)}},e.prototype.focusRow=function(e,t){var n=this.getPrevNextRow(e,t);n&&n.focus()},e.prototype.getPrevNextRow=function(e,t){var n=e.parentElement;if(n){var r=void 0;if(t===ke.up?r=n.previousElementSibling:t===ke.down&&(r=n.nextElementSibling),r&&r.children.length)return r.children[0]}},e.prototype.focusCell=function(e,t,n,r){var o;if(n===ke.left)o=e.previousElementSibling;else if(n===ke.right)o=e.nextElementSibling;else if(n===ke.up||n===ke.down){var i=this.getPrevNextRow(t,n);if(i){var a=i.getElementsByClassName("datatable-body-cell");a.length&&(o=a[r])}}o&&o.focus()},e.prototype.getRowSelected=function(e){return this.getRowSelectedIdx(e,this.selected)>-1},e.prototype.getRowSelectedIdx=function(e,t){var n=this;if(!t||!t.length)return-1;var r=this.rowIdentity(e);return t.findIndex(function(e){return n.rowIdentity(e)===r})},e.decorators=[{type:t.Component,args:[{selector:"datatable-selection",template:"\n \n ",changeDetection:t.ChangeDetectionStrategy.OnPush}]}],e.propDecorators={rows:[{type:t.Input}],selected:[{type:t.Input}],selectEnabled:[{type:t.Input}],selectionType:[{type:t.Input}],rowIdentity:[{type:t.Input}],selectCheck:[{type:t.Input}],activate:[{type:t.Output}],select:[{type:t.Output}]},e}();function We(e){var t=e.filter(function(e){return!!e});return t.length?t.some(function(e){return"number"!=typeof e})?null:t.reduce(function(e,t){return e+t}):null}function Fe(e){return null}var Ve=function(){function e(){this.summaryRow={}}return e.prototype.ngOnChanges=function(){this.columns&&this.rows&&(this.updateInternalColumns(),this.updateValues())},e.prototype.updateInternalColumns=function(){this._internalColumns=this.columns.map(function(e){return i({},e,{cellTemplate:e.summaryTemplate})})},e.prototype.updateValues=function(){var e=this;this.summaryRow={},this.columns.filter(function(e){return!e.summaryTemplate}).forEach(function(t){var n=e.rows.map(function(e){return e[t.prop]}),r=e.getSummaryFunction(t);e.summaryRow[t.prop]=t.pipe?t.pipe.transform(r(n)):r(n)})},e.prototype.getSummaryFunction=function(e){return void 0===e.summaryFunc?We:null===e.summaryFunc?Fe:e.summaryFunc},e.decorators=[{type:t.Component,args:[{selector:"datatable-summary-row",template:'\n \n \n ',host:{class:"datatable-summary-row"}}]}],e.propDecorators={rows:[{type:t.Input}],columns:[{type:t.Input}],rowHeight:[{type:t.Input}],offsetX:[{type:t.Input}],innerWidth:[{type:t.Input}]},e}();var $e=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:"configuration",useValue:t}]}},e.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],providers:[c,p,h],declarations:[d,g,f,y,m,b,w,Te,L,fe,He,ge,Ee,De,_e,Oe,ze,X,x,G,je,Ae,F,V,$,N,v,Ve],exports:[Te,X,x,G,L,F,V,$,d,N,De,v]}]}],e}();function Le(e,t){for(var n,r,o,i=[],a=[];(n=document.elementFromPoint(e,t))&&-1===i.indexOf(n)&&null!=n;)i.push(n),a.push({value:n.style.getPropertyValue("pointer-events"),priority:n.style.getPropertyPriority("pointer-events")}),n.style.setProperty("pointer-events","none","important");for(r=a.length;o=a[--r];)i[r].style.setProperty("pointer-events",o.value?o.value:"",o.priority);return i}"undefined"==typeof document||document.elementsFromPoint||(document.elementsFromPoint=Le),e.ClickType={single:"single",double:"double"},e.ColumnChangesService=h,e.ColumnMode=B,e.ContextmenuType=W,e.DataTableBodyCellComponent=je,e.DataTableBodyComponent=ge,e.DataTableBodyRowComponent=Oe,e.DataTableColumnCellDirective=V,e.DataTableColumnCellTreeToggle=$,e.DataTableColumnDirective=L,e.DataTableColumnHeaderDirective=F,e.DataTableFooterComponent=Ee,e.DataTableFooterTemplateDirective=d,e.DataTableHeaderCellComponent=He,e.DataTableHeaderComponent=fe,e.DataTablePagerComponent=De,e.DataTableRowWrapperComponent=ze,e.DataTableSelectionComponent=Ae,e.DataTableSummaryRowComponent=Ve,e.DatatableComponent=Te,e.DatatableFooterDirective=N,e.DatatableGroupHeaderDirective=x,e.DatatableGroupHeaderTemplateDirective=v,e.DatatableRowDetailDirective=X,e.DatatableRowDetailTemplateDirective=G,e.DimensionsHelper=p,e.DraggableDirective=f,e.Keys=ke,e.LongPressDirective=b,e.NgxDatatableModule=$e,e.OrderableDirective=m,e.ProgressBarComponent=_e,e.ResizeableDirective=y,e.RowHeightCache=Z,e.ScrollbarHelper=c,e.ScrollerComponent=w,e.SelectionType=M,e.SortDirection=Ie,e.SortType=A,e.VisibilityDirective=g,e.adjustColumnWidths=we,e.camelCase=D,e.columnGroupWidths=U,e.columnTotalWidth=q,e.columnsByPin=Y,e.columnsByPinArr=Q,e.columnsTotalWidth=K,e.deCamelCase=_,e.deepValueGetter=S,e.elementsFromPoint=Le,e.emptyStringGetter=C,e.forceFillColumnWidths=ve,e.getTotalFlexGrow=be,e.getVendorPrefixedName=ae,e.getterForProp=I,e.groupRowsByParents=H,e.id=k,e.isNullOrUndefined=z,e.nextSortDir=Pe,e.numericIndexGetter=P,e.optionalGetterForProp=T,e.orderByComparator=Re,e.selectRows=Be,e.selectRowsBetween=Me,e.setColumnDefaults=O,e.shallowValueGetter=R,e.sortRows=Se,e.throttle=ye,e.throttleable=me,e.translateTemplates=j,e.translateXY=de,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=swimlane-ngx-datatable.umd.min.js.map