ember-table
Advanced tools
Comparing version 0.5.1 to 0.6.0
# Ember Table Changelog | ||
### Ember Table 0.6.0 _(July 10, 2015)_ | ||
_Compatible with Ember 1.9_ | ||
* Support for Ember 1.9 | ||
* Precompiled templates (for use outside of ember-cli) are | ||
compiled with Handlebars 2.0, so they will work with | ||
Ember 1.9 apps. | ||
### Ember Table 0.5.1 _(July 7, 2015)_ | ||
_Compatible with Ember 1.4 through 1.8_ | ||
* Fix antiscroll cleanup | ||
@@ -6,0 +17,0 @@ * Fix lazy container `childView` bug |
/*! | ||
* ember-table v0.5.1 | ||
* ember-table v0.6.0 | ||
* Copyright 2012-2015 Addepar Inc. | ||
* See LICENSE.md | ||
*/ | ||
!function(){var a,b,c,d;!function(){function e(a,b,d){for(var e,g,h=a.length,i=new Array(h),j=0,k=h;k>j;j++)e=a[j],"exports"===e?g=i[j]=d:i[j]=c(f(e,b));return{deps:i,exports:g}}function f(a,b){if("."!==a.charAt(0))return a;var c,d=a.split("/"),e=b.split("/");c=1===e.length?e:e.slice(0,-1);for(var f=0,g=d.length;g>f;f++){var h=d[f];if(".."===h)c.pop();else{if("."===h)continue;c.push(h)}}return c.join("/")}var g;g=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var h={},i={},j={},k=!1;a=function(a,b,c){g(b)||(c=b,b=[]),h[a]={deps:b,callback:c}},d=c=b=function(a){if(j[a]!==k&&i.hasOwnProperty(a))return i[a];if(!h[a])throw new Error("Could not find module "+a);var b,c,d=h[a],f=!1;i[a]={};try{b=e(d.deps,a,i[a]),c=d.callback.apply(this,b.deps),f=!0}finally{f||(j[a]=k)}return b.exports?i[a]:i[a]=c},d.entries=d._eak_seen=h,d.clear=function(){d.entries=d._eak_seen=h={},i=j={}}}(),a("ember-table/components/ember-table",["ember","ember-table/mixins/style-bindings","ember-table/mixins/resize-handler","ember-table/controllers/row-array","ember-table/controllers/row","exports"],function(a,b,c,d,e,f){"use strict";var g=a["default"],h=b["default"],i=c["default"],j=d["default"],k=e["default"];f["default"]=g.Component.extend(h,i,{classNames:["ember-table-tables-container"],classNameBindings:["enableContentSelection:ember-table-content-selectable"],styleBindings:["height"],content:[],columns:null,numFixedColumns:0,numFooterRow:0,rowHeight:30,minHeaderHeight:30,footerHeight:30,hasHeader:!0,hasFooter:!0,enableColumnReorder:!0,enableContentSelection:!1,columnMode:"standard",selectionMode:"single",selection:g.computed(function(a,b){var c=this.get("selectionMode");if(arguments.length>1&&b)switch(this.get("persistedSelection").clear(),this.get("rangeSelection").clear(),c){case"single":this.get("persistedSelection").addObject(b);break;case"multiple":this.get("persistedSelection").addObjects(b)}var d=this.get("persistedSelection").copy().addObjects(this.get("rangeSelection"));switch(c){case"none":return null;case"single":return d[0]||null;case"multiple":return d}}).property("persistedSelection.[]","rangeSelection.[]","selectionMode"),isEmberTable:!0,columnsFillTable:!0,_resolvedContent:function(a,b){if(arguments.length>1)return b;var c=this;b=[];var d=this.get("content");return d.then?(d.then(function(a){c.set("_resolvedContent",a),b=a}),b):d}.property("content"),init:function(){if(this._super(),!g.$.ui)throw"Missing dependency: jquery-ui";if(!g.$().mousewheel)throw"Missing dependency: jquery-mousewheel";if(!g.$().antiscroll)throw"Missing dependency: antiscroll.js";this.prepareTableColumns()},height:g.computed.alias("_tablesContainerHeight"),tableRowView:"table-row",tableRowViewClass:g.computed.alias("tableRowView"),onColumnSort:function(a,b){var c=this.get("fixedColumns.length"),d=this.get("columns");d.removeObject(a),d.insertAt(c+b,a),this.prepareTableColumns()},bodyContent:g.computed(function(){return j.create({target:this,parentController:this,container:this.get("container"),itemController:k,content:this.get("_resolvedContent")})}).property("_resolvedContent.[]"),footerContent:g.computed(function(a,b){return b?b:g.A()}).property(),fixedColumns:g.computed(function(){var a=this.get("columns");if(!a)return g.A();var b=this.get("numFixedColumns")||0;return a.slice(0,b)||[]}).property("columns.[]","numFixedColumns"),tableColumns:g.computed(function(){var a=this.get("columns");if(!a)return g.A();var b=this.get("numFixedColumns")||0;return a.slice(b,a.get("length"))||[]}).property("columns.[]","numFixedColumns"),prepareTableColumns:function(){var a=this,b=this.get("columns")||g.A();b.setEach("controller",this),b.forEach(function(c,d){c.set("nextResizableColumn",a.getNextResizableColumn(b,d))})},getNextResizableColumn:function(a,b){for(var c;b<a.length;)if(b+=1,c=a.objectAt(b),null!=c&&c.get("isResizable"))return c;return null},didInsertElement:function(){this._super(),this.set("_tableScrollTop",0),this.elementSizeDidChange(),this.doForceFillColumns()},willDestroyElement:function(){var a,b=this.$(".antiscroll-wrap");b.each(function(b,c){a=g.$(c).data("antiscroll"),a&&(a.destroy(),g.$(c).removeData("antiscroll"))}),this._super()},onResizeEnd:function(){this.tableWidthNowTooSmall()&&this.set("columnsFillTable",!0),g.run(this,this.elementSizeDidChange)},elementSizeDidChange:function(){"inDOM"===(this.get("_state")||this.get("state"))&&(this.set("_width",this.$().parent().width()),this.set("_height",this.$().parent().height()),g.run.next(this,this.updateLayout))},tableWidthNowTooSmall:function(){if("inDOM"!==(this.get("_state")||this.get("state")))return!1;var a=this.get("_width"),b=this.$().parent().width(),c=this._getTotalWidth(this.get("tableColumns"));return a>c&&c>b},updateLayout:function(){"inDOM"===(this.get("_state")||this.get("state"))&&(this.$(".antiscroll-wrap").antiscroll().data("antiscroll").rebuild(),this.get("columnsFillTable")&&this.doForceFillColumns())},doForceFillColumns:function(){for(var a,b,c=this.get("columns"),d=c.filterProperty("canAutoResize"),e=c.filterProperty("canAutoResize",!1),f=this.get("_width")-this._getTotalWidth(e),g=!0,h=[];g;)g=!1,h=[],a=this._getTotalWidth(d),d.forEach(function(c){b=Math.floor(c.get("width")/a*f),b<c.get("minWidth")?(g=!0,c.set("width",c.get("minWidth")),f-=c.get("width")):b>c.get("maxWidth")?(g=!0,c.set("width",c.get("maxWidth")),f-=c.get("width")):(c.set("width",b),h.pushObject(c)),d=h})},onBodyContentLengthDidChange:g.observer(function(){g.run.next(this,function(){g.run.once(this,this.updateLayout)})},"bodyContent.length"),_tableScrollTop:0,_tableScrollLeft:0,_width:null,_height:null,_contentHeaderHeight:null,_hasVerticalScrollbar:g.computed(function(){var a=this.get("_height"),b=this.get("_tableContentHeight")+this.get("_headerHeight")+this.get("_footerHeight");return b>a}).property("_height","_tableContentHeight","_headerHeight","_footerHeight"),_hasHorizontalScrollbar:g.computed(function(){var a=this.get("_tableColumnsWidth"),b=this.get("_width")-this.get("_fixedColumnsWidth");return a>b}).property("_tableColumnsWidth","_width","_fixedColumnsWidth"),_tablesContainerHeight:g.computed(function(){var a=this.get("_height"),b=this.get("_tableContentHeight")+this.get("_headerHeight")+this.get("_footerHeight");return Math.min(b,a)}).property("_height","_tableContentHeight","_headerHeight","_footerHeight"),_fixedColumnsWidth:g.computed(function(){return this._getTotalWidth(this.get("fixedColumns"))}).property("fixedColumns.@each.width"),_tableColumnsWidth:g.computed(function(){var a=this._getTotalWidth(this.get("tableColumns"))+3,b=this.get("_width")-this.get("_fixedColumnsWidth");return Math.max(a,b)}).property("tableColumns.@each.width","_width","_fixedColumnsWidth"),_rowWidth:g.computed(function(){var a=this.get("_tableColumnsWidth"),b=this.get("_tableContainerWidth")-this.get("_fixedColumnsWidth");return Math.max(a,b)}).property("_fixedColumnsWidth","_tableColumnsWidth","_tableContainerWidth"),_headerHeight:g.computed(function(){var a=this.get("minHeaderHeight"),b=this.get("_contentHeaderHeight");return Math.max(b,a)}).property("_contentHeaderHeight","minHeaderHeight"),_footerHeight:g.computed(function(){return this.get("hasFooter")?this.get("footerHeight"):0}).property("footerHeight","hasFooter"),_bodyHeight:g.computed(function(){var a=this.get("_tablesContainerHeight");return this.get("hasHeader")&&(a-=this.get("_headerHeight")),this.get("hasFooter")&&(a-=this.get("footerHeight")),a}).property("_tablesContainerHeight","_hasHorizontalScrollbar","_headerHeight","footerHeight","hasHeader","hasFooter"),_tableBlockWidth:g.computed(function(){return this.get("_width")-this.get("_fixedColumnsWidth")}).property("_width","_fixedColumnsWidth"),_fixedBlockWidthBinding:"_fixedColumnsWidth",_tableContentHeight:g.computed(function(){return this.get("rowHeight")*this.get("bodyContent.length")}).property("rowHeight","bodyContent.length"),_tableContainerWidth:g.computed(function(){return this.get("_width")}).property("_width"),_scrollContainerWidth:g.computed(function(){return this.get("_width")-this.get("_fixedColumnsWidth")}).property("_width","_fixedColumnsWidth"),_numItemsShowing:g.computed(function(){return Math.floor(this.get("_bodyHeight")/this.get("rowHeight"))}).property("_bodyHeight","rowHeight"),_startIndex:g.computed(function(){var a=this.get("bodyContent.length"),b=this.get("_numItemsShowing"),c=this.get("rowHeight"),d=this.get("_tableScrollTop"),e=Math.floor(d/c);return e+b>=a&&(e=a-b),Math.max(e,0)}).property("bodyContent.length","_numItemsShowing","rowHeight","_tableScrollTop"),_getTotalWidth:function(a,b){if(null==b&&(b="width"),!a)return 0;var c=a.getEach(b)||[];return c.reduce(function(a,b){return a+b},0)},lastSelected:null,isSelected:function(a){switch(this.get("selectionMode")){case"none":return!1;case"single":return this.get("selection")===a.get("content");case"multiple":return this.get("selection").contains(a.get("content"))}},setSelected:function(a,b){this.persistSelection();var c=a.get("content");return b?this.get("persistedSelection").addObject(c):this.get("persistedSelection").removeObject(c)},persistedSelection:g.computed(function(){return g.A()}),rangeSelection:g.computed(function(){return g.A()}),click:function(a){var b=this.getRowForEvent(a);if(b&&b.get("content")){var c=b.get("content");switch(this.get("selectionMode")){case"none":break;case"single":this.get("persistedSelection").clear(),this.get("persistedSelection").addObject(c);break;case"multiple":if(a.shiftKey){this.get("rangeSelection").clear();var d=this.rowIndex(this.get("lastSelected"));-1===d&&(d=0);var e=this.rowIndex(this.getRowForEvent(a)),f=Math.min(d,e),g=Math.max(d,e);this.get("rangeSelection").addObjects(this.get("bodyContent").slice(f,g+1).mapBy("content"))}else a.ctrlKey||a.metaKey?this.persistSelection():(this.get("persistedSelection").clear(),this.get("rangeSelection").clear()),this.get("persistedSelection").contains(c)?this.get("persistedSelection").removeObject(c):this.get("persistedSelection").addObject(c),this.set("lastSelected",b)}}},findRow:function(a){return this.get("bodyContent").forEach(function(b){return b.get("content")===a?b:void 0}),null},rowIndex:function(a){return this.get("bodyContent")?this.get("bodyContent").indexOf(a):null},persistSelection:function(){this.get("persistedSelection").addObjects(this.get("rangeSelection")),this.get("rangeSelection").clear()},getRowForEvent:function(a){var b=g.$(a.target).parents(".ember-table-table-row"),c=g.View.views[b.attr("id")];return c?c.get("row"):null},actions:{addColumn:g.K,sortByColumn:g.K}})}),a("ember-table/mixins/style-bindings",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({concatenatedProperties:["styleBindings"],attributeBindings:["style"],unitType:"px",createStyleString:function(a,b){var d;return d=this.get(b),c.isNone(d)?void 0:("number"===c.typeOf(d)&&(d+=this.get("unitType")),c.String.dasherize(""+a)+":"+d+";")},applyStyleBindings:c.on("init",c.observer("styleBindings",function(){var a,b,d,e,f,g=this;return(d=this.get("styleBindings"))?(a={},d.forEach(function(b){var c,d,e;e=b.split(":"),c=e[0],d=e[1],a[d||c]=c}),f=c.keys(a),b=f.map(function(b){return a[b]}),e=c.computed(function(){var b,c;return c=f.map(function(b){return g.createStyleString(b,a[b])}),b=c.join(""),0!==b.length?b.htmlSafe().toString():void 0}),e.property.apply(e,b),c.defineProperty(this,"style",e)):void 0}))})}),a("ember-table/mixins/resize-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({resizeEndDelay:200,resizing:!1,onResizeStart:c.K,onResizeEnd:c.K,onResize:c.K,endResize:c.computed(function(){return function(a){return this.isDestroyed?void 0:(this.set("resizing",!1),"function"==typeof this.onResizeEnd?this.onResizeEnd(a):void 0)}}),handleWindowResize:function(a){return"undefined"==typeof a.target.id||null===a.target.id||a.target.id===this.elementId?(this.get("resizing")||(this.set("resizing",!0),"function"==typeof this.onResizeStart&&this.onResizeStart(a)),"function"==typeof this.onResize&&this.onResize(a),c.run.debounce(this,this.get("endResize"),a,this.get("resizeEndDelay"))):void 0},didInsertElement:function(){return this._super(),this._setupDocumentHandlers()},willDestroyElement:function(){return this._removeDocumentHandlers(),this._super()},_setupDocumentHandlers:function(){return this._resizeHandler?void 0:(this._resizeHandler=c.$.proxy(this.get("handleWindowResize"),this),c.$(window).on("resize."+this.elementId,this._resizeHandler))},_removeDocumentHandlers:function(){return c.$(window).off("resize."+this.elementId,this._resizeHandler),this._resizeHandler=null}})}),a("ember-table/controllers/row-array",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.ArrayController.extend({itemController:null,content:null,lastItem:null,rowContent:c.computed(function(){return[]}).property(),controllerAt:function(a,b){var c=this.get("_subControllers"),d=c[a];return d?d:(d=this.get("itemController").create({target:this,parentController:this.get("parentController")||this,content:b}),c[a]=d,this._isLastItem(a)&&this.set("lastItem",d),d)},_isLastItem:function(a){return this.get("content").length-1===a}})}),a("ember-table/controllers/row",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.ObjectProxy.extend({content:null,isShowing:!0,isHovered:!1,isSelected:c.computed(function(a,b){return arguments.length>1&&this.get("parentController").setSelected(this,b),this.get("parentController").isSelected(this)}).property("parentController.selection.[]")})}),a("ember-table/mixins/mouse-wheel-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({onMouseWheel:c.K,didInsertElement:function(){var a=this;this._super(),this.$().bind("mousewheel",function(b,d,e,f){c.run(a,a.onMouseWheel,b,d,e,f)})},willDestroyElement:function(){var a=this.$();a&&a.unbind("mousewheel"),this._super()}})}),a("ember-table/mixins/register-table-component",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({tableComponent:null,init:function(){return this.get("tableComponent")||this.set("tableComponent",this.nearestWithProperty("isEmberTable")),this._super()}})}),a("ember-table/mixins/scroll-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({onScroll:c.K,scrollElementSelector:"",didInsertElement:function(){var a=this;this._super(),this.$(this.get("scrollElementSelector")).bind("scroll",function(b){c.run(a,a.onScroll,b)})},willDestroyElement:function(){var a=this.$(this.get("scrollElementSelector"));a&&a.unbind("scroll"),this._super()}})}),a("ember-table/mixins/show-horizontal-scroll",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({mouseEnter:function(a){var b=c.$(a.target).parents(".ember-table-tables-container"),d=b.find(".antiscroll-scrollbar-horizontal");d.addClass("antiscroll-scrollbar-shown")},mouseLeave:function(a){var b=c.$(a.target).parents(".ember-table-tables-container"),d=b.find(".antiscroll-scrollbar-horizontal");d.removeClass("antiscroll-scrollbar-shown")}})}),a("ember-table/mixins/touch-move-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({onTouchMove:c.K,didInsertElement:function(){var a=this,b=0,d=0;this._super(),this.$().bind("touchstart",function(a){b=a.originalEvent.targetTouches[0].pageX,d=a.originalEvent.targetTouches[0].pageY}),this.$().bind("touchmove",function(e){var f=e.originalEvent.targetTouches[0].pageX,g=e.originalEvent.targetTouches[0].pageY,h=-(f-b),i=-(g-d);c.run(a,a.onTouchMove,e,h,i),b=f,d=g})},willDestroyElement:function(){this.$().unbind("touchstart"),this.$().unbind("touchmove"),this._super()}})}),a("ember-table/models/column-definition",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Object.extend({headerCellName:void 0,contentPath:void 0,minWidth:25,maxWidth:void 0,savedWidth:150,isResizable:!0,isSortable:!0,textAlign:"text-align-right",canAutoResize:!1,headerCellView:"header-cell",headerCellViewClass:c.computed.alias("headerCellView"),tableCellView:"table-cell",tableCellViewClass:c.computed.alias("tableCellView"),getCellContent:function(a){var b=this.get("contentPath");return c.assert("You must either provide a contentPath or override getCellContent in your column definition",null!=b),c.get(a,b)},setCellContent:c.K,width:c.computed.oneWay("savedWidth"),resize:function(a){this.set("savedWidth",a),this.set("width",a)},nextColumn:null,prevColumn:null,isAtMinWidth:c.computed(function(){return this.get("width")===this.get("minWidth")}).property("width","minWidth"),isAtMaxWidth:c.computed(function(){return this.get("width")===this.get("maxWidth")}).property("width","maxWidth")})}),a("ember-table/templates/body-table-container",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){function g(a,b){var c="";return b.buffer.push("\n "),b.buffer.push(j(d.view.call(a,"lazy-table-block",{hash:{classNames:"ember-table-left-table-block",content:"bodyContent",columns:"fixedColumns",width:"_fixedBlockWidth",numItemsShowing:"_numItemsShowing",scrollTop:"_scrollTop",startIndex:"_startIndex"},hashTypes:{classNames:"STRING",content:"ID",columns:"ID",width:"ID",numItemsShowing:"ID",scrollTop:"ID",startIndex:"ID"},hashContexts:{classNames:a,content:a,columns:a,width:a,numItemsShowing:a,scrollTop:a,startIndex:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n "),c}this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var h,i="",j=this.escapeExpression,k=this;return f.buffer.push('<div class="antiscroll-box">\n <div class="antiscroll-inner">\n <div class="ember-table-table-scrollable-wrapper">\n '),h=d["if"].call(b,"numFixedColumns",{hash:{},hashTypes:{},hashContexts:{},inverse:k.noop,fn:k.program(1,g,f),contexts:[b],types:["ID"],data:f}),(h||0===h)&&f.buffer.push(h),f.buffer.push("\n "),f.buffer.push(j(d.view.call(b,"lazy-table-block",{hash:{classNames:"ember-table-right-table-block",content:"bodyContent",columns:"tableColumns",scrollLeft:"_tableScrollLeft",width:"_tableBlockWidth",numItemsShowing:"_numItemsShowing",scrollTop:"_scrollTop",startIndex:"_startIndex"},hashTypes:{classNames:"STRING",content:"ID",columns:"ID",scrollLeft:"ID",width:"ID",numItemsShowing:"ID",scrollTop:"ID",startIndex:"ID"},hashContexts:{classNames:b,content:b,columns:b,scrollLeft:b,width:b,numItemsShowing:b,scrollTop:b,startIndex:b},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n </div>\n </div>\n</div>\n"),i})}),a("ember-table/templates/components/ember-table",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){function g(a,b){var c="";return b.buffer.push("\n "),b.buffer.push(k(d.view.call(a,"header-table-container",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n"),c}function h(a,b){var c="";return b.buffer.push("\n "),b.buffer.push(k(d.view.call(a,"footer-table-container",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n"),c}this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var i,j="",k=this.escapeExpression,l=this;return i=d["if"].call(b,"hasHeader",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(1,g,f),contexts:[b],types:["ID"],data:f}),(i||0===i)&&f.buffer.push(i),f.buffer.push("\n"),f.buffer.push(k(d.view.call(b,"body-table-container",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n"),i=d["if"].call(b,"hasFooter",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(3,h,f),contexts:[b],types:["ID"],data:f}),(i||0===i)&&f.buffer.push(i),f.buffer.push("\n"),f.buffer.push(k(d.view.call(b,"scroll-container",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n"),f.buffer.push(k(d.view.call(b,"column-sortable-indicator",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n"),j})}),a("ember-table/templates/footer-table-container",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){function g(a,b){var c="";return b.buffer.push("\n "),b.buffer.push(j(d.view.call(a,"table-block",{hash:{classNames:"ember-table-left-table-block",content:"footerContent",columns:"fixedColumns",width:"_fixedBlockWidth",height:"footerHeight"},hashTypes:{classNames:"STRING",content:"ID",columns:"ID",width:"ID",height:"ID"},hashContexts:{classNames:a,content:a,columns:a,width:a,height:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n "),c}this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var h,i="",j=this.escapeExpression,k=this;return f.buffer.push('<div class="ember-table-table-fixed-wrapper">\n '),h=d["if"].call(b,"numFixedColumns",{hash:{},hashTypes:{},hashContexts:{},inverse:k.noop,fn:k.program(1,g,f),contexts:[b],types:["ID"],data:f}),(h||0===h)&&f.buffer.push(h),f.buffer.push("\n "),f.buffer.push(j(d.view.call(b,"table-block",{hash:{classNames:"ember-table-right-table-block",content:"footerContent",columns:"tableColumns",scrollLeft:"_tableScrollLeft",width:"_tableBlockWidth",height:"footerHeight"},hashTypes:{classNames:"STRING",content:"ID",columns:"ID",scrollLeft:"ID",width:"ID",height:"ID"},hashContexts:{classNames:b,content:b,columns:b,scrollLeft:b,width:b,height:b},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n</div>\n"),i})}),a("ember-table/templates/header-cell",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var g,h="",i=this.escapeExpression;return f.buffer.push('<div class="ember-table-content-container" '),f.buffer.push(i(d.action.call(b,"sortByColumn","view.content",{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","ID"],data:f}))),f.buffer.push('>\n <span class="ember-table-content">\n '),g=d._triageMustache.call(b,"view.content.headerCellName",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:f}),(g||0===g)&&f.buffer.push(g),f.buffer.push("\n </span>\n</div>"),h})}),a("ember-table/templates/header-row",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var g="",h=this.escapeExpression;return f.buffer.push(h(d.view.call(b,"multi-item-collection",{hash:{content:"view.content",itemViewClassField:"headerCellViewClass",width:"controller._tableColumnsWidth"},hashTypes:{content:"ID",itemViewClassField:"STRING",width:"ID"},hashContexts:{content:b,itemViewClassField:b,width:b},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n"),g})}),a("ember-table/templates/header-table-container",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){function g(a,b){var c="";return b.buffer.push("\n "),b.buffer.push(j(d.view.call(a,"header-block",{hash:{classNames:"ember-table-left-table-block",columns:"fixedColumns",width:"_fixedBlockWidth",height:"headerHeight"},hashTypes:{classNames:"STRING",columns:"ID",width:"ID",height:"ID"},hashContexts:{classNames:a,columns:a,width:a,height:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n "),c}this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var h,i="",j=this.escapeExpression,k=this;return f.buffer.push('<div class="ember-table-table-fixed-wrapper">\n '),h=d["if"].call(b,"controller.numFixedColumns",{hash:{},hashTypes:{},hashContexts:{},inverse:k.noop,fn:k.program(1,g,f),contexts:[b],types:["ID"],data:f}),(h||0===h)&&f.buffer.push(h),f.buffer.push("\n "),f.buffer.push(j(d.view.call(b,"header-block",{hash:{classNames:"ember-table-right-table-block",columns:"tableColumns",scrollLeft:"_tableScrollLeft",width:"_tableBlockWidth",height:"headerHeight"},hashTypes:{classNames:"STRING",columns:"ID",scrollLeft:"ID",width:"ID",height:"ID"},hashContexts:{classNames:b,columns:b,scrollLeft:b,width:b,height:b},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n</div>\n"),i})}),a("ember-table/templates/scroll-container",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var g="",h=this.escapeExpression;return f.buffer.push('<div class="antiscroll-wrap">\n <div class="antiscroll-inner">\n '),f.buffer.push(h(d.view.call(b,"scroll-panel",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n </div>\n</div>\n"),g})}),a("ember-table/templates/table-cell",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var g,h="";return f.buffer.push('<span class="ember-table-content">\n '),g=d._triageMustache.call(b,"view.cellContent",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:f}),(g||0===g)&&f.buffer.push(g),f.buffer.push("\n</span>"),h})}),a("ember-table/templates/table-row",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Handlebars.template(function(a,b,d,e,f){this.compilerInfo=[4,">= 1.0.0"],d=this.merge(d,c.Handlebars.helpers),f=f||{};var g="",h=this.escapeExpression;return f.buffer.push(h(d.view.call(b,"multi-item-collection",{hash:{row:"view.row",content:"view.columns",itemViewClassField:"tableCellViewClass",width:"controller._tableColumnsWidth"},hashTypes:{row:"ID",content:"ID",itemViewClassField:"STRING",width:"ID"},hashContexts:{row:b,content:b,itemViewClassField:b,width:b},contexts:[b],types:["STRING"],data:f}))),f.buffer.push("\n"),g})}),a("ember-table/views/body-table-container",["ember","ember-table/views/table-container","ember-table/mixins/show-horizontal-scroll","ember-table/mixins/register-table-component","ember-table/mixins/mouse-wheel-handler","ember-table/mixins/touch-move-handler","ember-table/mixins/scroll-handler","exports"],function(a,b,c,d,e,f,g,h){"use strict";var i=a["default"],j=b["default"],k=c["default"],l=d["default"],m=e["default"],n=f["default"],o=g["default"];h["default"]=j.extend(m,n,o,k,l,{templateName:"body-table-container",classNames:["ember-table-table-container","ember-table-body-container","antiscroll-wrap"],height:i.computed.alias("tableComponent._bodyHeight"),width:i.computed.alias("tableComponent._width"),scrollTop:i.computed.alias("tableComponent._tableScrollTop"),scrollLeft:i.computed.alias("tableComponent._tableScrollLeft"),scrollElementSelector:".antiscroll-inner",onScroll:function(a){return this.set("scrollTop",a.target.scrollTop),a.preventDefault()},onMouseWheel:function(a,b,c,d){if(!(Math.abs(c)<=Math.abs(d))){var e=this.$(".ember-table-right-table-block").scrollLeft()+c;this.set("scrollLeft",e),a.preventDefault()}},onTouchMove:function(a,b,c){if(!(Math.abs(b)<=Math.abs(c))){var d=this.$(".ember-table-right-table-block").scrollLeft()+b;this.set("scrollLeft",d),a.preventDefault()}}})}),a("ember-table/views/table-container",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.View.extend(e,{classNames:["ember-table-table-container"],styleBindings:["height","width"]})}),a("ember-table/views/column-sortable-indicator",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{classNames:"ember-table-column-sortable-indicator",classNameBindings:"tableComponent._isShowingSortableIndicator:active",styleBindings:["left","height"],left:e.computed.alias("tableComponent._sortableIndicatorLeft"),height:e.computed.alias("tableComponent._height")})}),a("ember-table/views/footer-table-container",["ember","ember-table/views/table-container","ember-table/mixins/show-horizontal-scroll","ember-table/mixins/register-table-component","ember-table/mixins/mouse-wheel-handler","ember-table/mixins/touch-move-handler","exports"],function(a,b,c,d,e,f,g){"use strict";var h=a["default"],i=b["default"],j=c["default"],k=d["default"],l=e["default"],m=f["default"];g["default"]=i.extend(l,m,j,k,{templateName:"footer-table-container",classNames:["ember-table-table-container","ember-table-fixed-table-container","ember-table-footer-container"],styleBindings:"top",height:h.computed.alias("tableComponent.footerHeight"),width:h.computed.alias("tableComponent._tableContainerWidth"),scrollLeft:h.computed.alias("tableComponent._tableScrollLeft"),top:h.computed(function(){var a=this.get("tableComponent._headerHeight"),b=this.get("tableComponent._tableContentHeight")+a,c=this.get("tableComponent._bodyHeight")+a;return c>b?b:c}).property("tableComponent._bodyHeight","tableComponent._headerHeight","tableComponent._tableContentHeight"),onMouseWheel:function(a,b,c){var d=this.$(".ember-table-right-table-block").scrollLeft()+c;this.set("scrollLeft",d),a.preventDefault()},onTouchMove:function(a,b){var c=this.$(".ember-table-right-table-block").scrollLeft()+b;this.set("scrollLeft",c),a.preventDefault()}})}),a("ember-table/views/header-block",["ember","ember-table/views/table-block","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=e.extend({classNames:["ember-table-header-block"],itemView:"header-row",itemViewClass:d.computed.alias("itemView"),content:d.computed(function(){return[this.get("columns")]}).property("columns"),onColumnsDidChange:d.observer(function(){var a=this;d.run.schedule("afterRender",function(){a.$().scrollLeft(a.get("scrollLeft"))})},"content")})}),a("ember-table/views/table-block",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.CollectionView.extend(f,g,{classNames:["ember-table-table-block"],styleBindings:["width","height"],itemViewClass:e.computed.alias("tableComponent.tableRowViewClass"),columns:null,content:null,scrollLeft:null,onScrollLeftDidChange:e.observer(function(){this.$().scrollLeft(this.get("scrollLeft"))},"scrollLeft"),height:e.computed(function(){return this.get("tableComponent._headerHeight")}).property("tableComponent._headerHeight")})}),a("ember-table/views/header-cell",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{templateName:"header-cell",classNames:["ember-table-cell","ember-table-header-cell"],classNameBindings:["column.isSortable:sortable","column.textAlign"],styleBindings:["width","height"],column:e.computed.alias("content"),width:e.computed.alias("column.width"),minWidth:e.computed.alias("column.minWidth"),maxWidth:e.computed.alias("column.maxWidth"),nextResizableColumn:e.computed.alias("column.nextResizableColumn"),height:e.computed.alias("tableComponent._headerHeight"),effectiveMinWidth:e.computed(function(){if("standard"===this.get("tableComponent.columnMode"))return this.get("minWidth");var a=this.get("nextResizableColumn.maxWidth")-this.get("nextResizableColumn.width");return this.get("minWidth")&&a?Math.min(this.get("minWidth"),this.get("width")-a):this.get("minWidth")?this.get("minWidth"):this.get("width")-a}).property("width","minWidth","tableComponent.columnMode","nextResizableColumn.{width,maxWidth}"), | ||
effectiveMaxWidth:e.computed(function(){if("standard"===this.get("tableComponent.columnMode"))return this.get("maxWidth");var a=this.get("nextResizableColumn.width")-this.get("nextResizableColumn.minWidth");return this.get("maxWidth")&&!e.isNone(a)?Math.min(this.get("maxWidth"),this.get("width")+a):this.get("maxWidth")?this.get("maxWidth"):this.get("width")+a}).property("width","minWidth","tableComponent.columnMode","nextResizableColumn.{width,minWidth}"),resizableOption:e.computed(function(){return{handles:"e",minWidth:Math.max(this.get("effectiveMinWidth")||0,10),maxWidth:this.get("effectiveMaxWidth"),grid:this.get("column.snapGrid"),resize:e.$.proxy(this.onColumnResize,this),stop:e.$.proxy(this.onColumnResize,this)}}).property("effectiveMinWidth","effectiveMaxWidth"),didInsertElement:function(){this.elementSizeDidChange(),this.recomputeResizableHandle()},willDestroyElement:function(){this.$().is(".ui-resizable")&&this.$().resizable("destroy"),this._super()},_isResizable:e.computed(function(){return"standard"===this.get("tableComponent.columnMode")?this.get("column.isResizable"):this.get("column.isResizable")&&this.get("nextResizableColumn")}).property("column.isResizable","tableComponent.columnMode","nextResizableColumn"),onColumnResize:function(a,b){var c=Math.round(b.size.width);if("standard"===this.get("tableComponent.columnMode"))this.get("column").resize(c),this.set("tableComponent.columnsFillTable",!1);else{var d=this.get("width")-c;this.get("column").resize(c),this.get("nextResizableColumn").resize(this.get("nextResizableColumn.width")+d)}this.elementSizeDidChange(),"resizestop"===a.type&&this.get("tableComponent").elementSizeDidChange()},elementSizeDidChange:function(){var a=0;e.$(".ember-table-header-block .ember-table-content").each(function(){var b=e.$(this).outerHeight();b>a&&(a=b)}),this.set("tableComponent._contentHeaderHeight",a)},cellWidthDidChange:e.observer(function(){e.run.schedule("afterRender",this,this.elementSizeDidChange)},"width"),resizableObserver:e.observer(function(){this.recomputeResizableHandle()},"resizableOption","column.isResizable","tableComponent.columnMode","nextResizableColumn"),recomputeResizableHandle:function(){this.get("_isResizable")?this.$().resizable(this.get("resizableOption")):this.$().is(".ui-resizable")&&this.$().resizable("destroy")}})}),a("ember-table/views/header-row",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{templateName:"header-row",classNames:["ember-table-table-row","ember-table-header-row"],styleBindings:["width"],columns:e.computed.alias("content"),width:e.computed.alias("tableComponent._rowWidth"),sortableOption:e.computed(function(){return{axis:"x",containment:"parent",cursor:"move",helper:"clone",items:".ember-table-header-cell.sortable",opacity:.9,placeholder:"ui-state-highlight",scroll:!0,tolerance:"pointer",update:e.$.proxy(this.onColumnSortDone,this),stop:e.$.proxy(this.onColumnSortStop,this),sort:e.$.proxy(this.onColumnSortChange,this)}}),didInsertElement:function(){this._super(),this.get("tableComponent.enableColumnReorder")&&this.$("> div").sortable(this.get("sortableOption"))},willDestroyElement:function(){if(this.get("tableComponent.enableColumnReorder")){var a=this.$("> div");a&&a.sortable("destroy")}this._super()},onColumnSortStop:function(){this.set("tableComponent._isShowingSortableIndicator",!1)},onColumnSortChange:function(){var a=this.$(".ui-state-highlight").offset().left-this.$().closest(".ember-table-tables-container").offset().left;this.set("tableComponent._isShowingSortableIndicator",!0),this.set("tableComponent._sortableIndicatorLeft",a)},onColumnSortDone:function(a,b){var c=b.item.index();this.$("> div").sortable("cancel");var d=e.View.views[b.item.attr("id")],f=d.get("column");this.get("tableComponent").onColumnSort(f,c),this.set("tableComponent._isShowingSortableIndicator",!1)}})}),a("ember-table/views/header-table-container",["ember","ember-table/views/table-container","ember-table/mixins/show-horizontal-scroll","ember-table/mixins/register-table-component","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"];e["default"]=g.extend(h,i,{templateName:"header-table-container",classNames:["ember-table-table-container","ember-table-fixed-table-container","ember-table-header-container"],height:f.computed.alias("tableComponent._headerHeight"),width:f.computed.alias("tableComponent._tableContainerWidth")})}),a("ember-table/views/lazy-container",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.ContainerView.extend(e,{classNames:"lazy-list-container",styleBindings:["height"],content:null,itemViewClass:null,rowHeight:null,scrollTop:null,startIndex:null,init:function(){return this._super(),this.onNumChildViewsDidChange()},height:d.computed(function(){return this.get("content.length")*this.get("rowHeight")}).property("content.length","rowHeight"),numChildViews:d.computed(function(){return this.get("numItemsShowing")+2}).property("numItemsShowing"),onNumChildViewsDidChange:d.observer(function(){var a=this,b=this.get("itemViewClass");"string"==typeof b&&(b=/[A-Z]+/.exec(b)?d.get(d.lookup,b):this.container.lookupFactory("view:"+b));var c=this.get("numChildViews");if(b&&c){var e=this.get("length"),f=c-e;if(0>f){var g=this.slice(c,e);this.removeObjects(g)}else if(f>0)for(var h=0;f>h;++h)this.pushObject(a.createChildView(b));this.viewportDidChange()}},"numChildViews","itemViewClass"),viewportDidChange:d.observer(function(){var a=this.get("childViews"),b=this.get("content")||[],c=b.get("length"),d=Math.min(this.get("length"),c),e=this.get("startIndex");e+d>=c&&(e=c-d),0>e&&(e=0),a.forEach(function(c,f){if(f>=d)return void c.set("content",null);var g=e+f;c=a.objectAt(g%d);var h=b.objectAt(g);c&&h!==c.get("content")&&(c.teardownContent(),c.set("itemIndex",g),c.set("content",h),c.prepareContent())})},"content.length","length","startIndex")})}),a("ember-table/views/lazy-item",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.View.extend(e,{itemIndex:null,prepareContent:d.K,teardownContent:d.K,rowHeightBinding:"parentView.rowHeight",styleBindings:["width","top","display"],top:d.computed(function(){return this.get("itemIndex")*this.get("rowHeight")}).property("itemIndex","rowHeight"),display:d.computed(function(){return this.get("content")?void 0:"none"}).property("content")})}),a("ember-table/views/lazy-table-block",["ember","ember-table/mixins/register-table-component","ember-table/views/lazy-container","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=g.extend(f,{classNames:["ember-table-table-block"],styleBindings:["width"],itemViewClass:e.computed.alias("tableComponent.tableRowViewClass"),rowHeight:e.computed.alias("tableComponent.rowHeight"),columns:null,content:null,scrollLeft:null,scrollTop:null,onScrollLeftDidChange:e.observer(function(){this.$().scrollLeft(this.get("scrollLeft"))},"scrollLeft")})}),a("ember-table/views/multi-item-collection",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.CollectionView.extend(e,{styleBindings:"width",itemViewClassField:null,createChildView:function(a,b){var c=this.get("itemViewClassField"),e=b.content.get(c);return"string"==typeof e&&(e=/[A-Z]+/.exec(e)?d.get(d.lookup,e):this.container.lookupFactory("view:"+e)),this._super(e,b)}})}),a("ember-table/views/scroll-container",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","ember-table/mixins/scroll-handler","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"];e["default"]=f.View.extend(g,i,h,{templateName:"scroll-container",classNames:["ember-table-scroll-container"],styleBindings:["left","width","height"],scrollElementSelector:".antiscroll-inner",width:f.computed.alias("tableComponent._scrollContainerWidth"),height:10,left:f.computed.alias("tableComponent._fixedColumnsWidth"),scrollTop:f.computed.alias("tableComponent._tableScrollTop"),scrollLeft:f.computed.alias("tableComponent._tableScrollLeft"),didInsertElement:function(){this._super(),this.onScrollLeftDidChange()},onScroll:function(a){this.set("scrollLeft",a.target.scrollLeft),a.preventDefault()},onScrollLeftDidChange:f.observer(function(){var a=this.get("scrollElementSelector");this.$(a).scrollLeft(this.get("scrollLeft"))},"scrollLeft","scrollElementSelector")})}),a("ember-table/views/scroll-panel",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{classNames:["ember-table-scroll-panel"],styleBindings:["width","height"],width:e.computed.alias("tableComponent._tableColumnsWidth"),height:e.computed.alias("tableComponent._tableContentHeight")})}),a("ember-table/views/table-cell",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.View.extend(e,{templateName:"table-cell",classNames:["ember-table-cell"],classNameBindings:"column.textAlign",styleBindings:"width",init:function(){this._super(),this.contentPathDidChange(),this.contentDidChange()},row:d.computed.alias("parentView.row"),column:d.computed.alias("content"),width:d.computed.alias("column.width"),contentDidChange:function(){this.notifyPropertyChange("cellContent")},contentPathWillChange:d.beforeObserver(function(){var a=this.get("column.contentPath");a&&this.removeObserver("row."+a,this,this.contentDidChange)},"column.contentPath"),contentPathDidChange:d.beforeObserver(function(){var a=this.get("column.contentPath");a&&this.addObserver("row."+a,this,this.contentDidChange)},"column.contentPath"),cellContent:d.computed(function(a,b){var c=this.get("row"),d=this.get("column");return c&&d?(1===arguments.length?b=d.getCellContent(c):d.setCellContent(c,b),b):void 0}).property("row.isLoaded","column")})}),a("ember-table/views/table-row",["ember","ember-table/mixins/register-table-component","ember-table/views/lazy-item","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=g.extend(f,{templateName:"table-row",classNames:"ember-table-table-row",classNameBindings:["row.isHovered:ember-table-hover","row.isSelected:ember-table-selected","row.rowStyle","isLastRow:ember-table-last-row"],styleBindings:["width","height"],row:e.computed.alias("content"),columns:e.computed.alias("parentView.columns"),width:e.computed.alias("tableComponent._rowWidth"),height:e.computed.alias("tableComponent.rowHeight"),isLastRow:e.computed(function(){return this.get("row")===this.get("tableComponent.bodyContent.lastItem")}).property("tableComponent.bodyContent.lastItem","row"),mouseEnter:function(){var a=this.get("row");a&&a.set("isHovered",!0)},mouseLeave:function(){var a=this.get("row");a&&a.set("isHovered",!1)},teardownContent:function(){var a=this.get("row");a&&a.set("isHovered",!1)}})}),a("ember",["exports"],function(a){a["default"]=window.Ember}),window.Ember.Table=Ember.Namespace.create(),window.Ember.AddeparMixins={},window.Ember.TEMPLATES["body-table-container"]=c("ember-table/templates/body-table-container")["default"],window.Ember.TEMPLATES["components/ember-table"]=c("ember-table/templates/components/ember-table")["default"],window.Ember.TEMPLATES["footer-table-container"]=c("ember-table/templates/footer-table-container")["default"],window.Ember.TEMPLATES["header-cell"]=c("ember-table/templates/header-cell")["default"],window.Ember.TEMPLATES["header-row"]=c("ember-table/templates/header-row")["default"],window.Ember.TEMPLATES["header-table-container"]=c("ember-table/templates/header-table-container")["default"],window.Ember.TEMPLATES["scroll-container"]=c("ember-table/templates/scroll-container")["default"],window.Ember.TEMPLATES["table-cell"]=c("ember-table/templates/table-cell")["default"],window.Ember.TEMPLATES["table-row"]=c("ember-table/templates/table-row")["default"],window.Ember.Table.EmberTableComponent=c("ember-table/components/ember-table")["default"],window.Ember.Table.RowArrayController=c("ember-table/controllers/row-array")["default"],window.Ember.Table.Row=c("ember-table/controllers/row")["default"],window.Ember.MouseWheelHandlerMixin=c("ember-table/mixins/mouse-wheel-handler")["default"],window.Ember.Table.RegisterTableComponentMixin=c("ember-table/mixins/register-table-component")["default"],window.Ember.AddeparMixins.ResizeHandlerMixin=c("ember-table/mixins/resize-handler")["default"],window.Ember.ScrollHandlerMixin=c("ember-table/mixins/scroll-handler")["default"],window.Ember.Table.ShowHorizontalScrollMixin=c("ember-table/mixins/show-horizontal-scroll")["default"],window.Ember.AddeparMixins.StyleBindingsMixin=c("ember-table/mixins/style-bindings")["default"],window.Ember.TouchMoveHandlerMixin=c("ember-table/mixins/touch-move-handler")["default"],window.Ember.Table.ColumnDefinition=c("ember-table/models/column-definition")["default"],window.Ember.Table.BodyTableContainer=c("ember-table/views/body-table-container")["default"],window.Ember.Table.ColumnSortableIndicator=c("ember-table/views/column-sortable-indicator")["default"],window.Ember.Table.FooterTableContainer=c("ember-table/views/footer-table-container")["default"],window.Ember.Table.HeaderBlock=c("ember-table/views/header-block")["default"],window.Ember.Table.HeaderCell=c("ember-table/views/header-cell")["default"],window.Ember.Table.HeaderRow=c("ember-table/views/header-row")["default"],window.Ember.Table.HeaderTableContainer=c("ember-table/views/header-table-container")["default"],window.Ember.LazyContainerView=c("ember-table/views/lazy-container")["default"],window.Ember.LazyItemView=c("ember-table/views/lazy-item")["default"],window.Ember.Table.LazyTableBlock=c("ember-table/views/lazy-table-block")["default"],window.Ember.MultiItemViewCollectionView=c("ember-table/views/multi-item-collection")["default"],window.Ember.Table.ScrollContainer=c("ember-table/views/scroll-container")["default"],window.Ember.Table.ScrollPanel=c("ember-table/views/scroll-panel")["default"],window.Ember.Table.TableBlock=c("ember-table/views/table-block")["default"],window.Ember.Table.TableCell=c("ember-table/views/table-cell")["default"],window.Ember.Table.TableContainer=c("ember-table/views/table-container")["default"],window.Ember.Table.TableRow=c("ember-table/views/table-row")["default"],Ember.onLoad("Ember.Application",function(a){a.initializer({name:"ember-table",initialize:function(a){a.register("component:ember-table",c("ember-table/components/ember-table")["default"]),a.register("view:body-table-container",c("ember-table/views/body-table-container")["default"]),a.register("view:column-sortable-indicator",c("ember-table/views/column-sortable-indicator")["default"]),a.register("view:footer-table-container",c("ember-table/views/footer-table-container")["default"]),a.register("view:header-block",c("ember-table/views/header-block")["default"]),a.register("view:header-cell",c("ember-table/views/header-cell")["default"]),a.register("view:header-row",c("ember-table/views/header-row")["default"]),a.register("view:header-table-container",c("ember-table/views/header-table-container")["default"]),a.register("view:lazy-container",c("ember-table/views/lazy-container")["default"]),a.register("view:lazy-item",c("ember-table/views/lazy-item")["default"]),a.register("view:lazy-table-block",c("ember-table/views/lazy-table-block")["default"]),a.register("view:multi-item-collection",c("ember-table/views/multi-item-collection")["default"]),a.register("view:scroll-container",c("ember-table/views/scroll-container")["default"]),a.register("view:scroll-panel",c("ember-table/views/scroll-panel")["default"]),a.register("view:table-block",c("ember-table/views/table-block")["default"]),a.register("view:table-cell",c("ember-table/views/table-cell")["default"]),a.register("view:table-container",c("ember-table/views/table-container")["default"]),a.register("view:table-row",c("ember-table/views/table-row")["default"])}})}),Ember.Table.EmberTableComponent.reopen({layoutName:"components/ember-table"}),Ember.Handlebars.helper("table-component",Ember.Table.EmberTableComponent)}(); | ||
!function(){var a,b,c,d;!function(){function e(a,b,d){for(var e,g,h=a.length,i=new Array(h),j=0,k=h;k>j;j++)e=a[j],"exports"===e?g=i[j]=d:i[j]=c(f(e,b));return{deps:i,exports:g}}function f(a,b){if("."!==a.charAt(0))return a;var c,d=a.split("/"),e=b.split("/");c=1===e.length?e:e.slice(0,-1);for(var f=0,g=d.length;g>f;f++){var h=d[f];if(".."===h)c.pop();else{if("."===h)continue;c.push(h)}}return c.join("/")}var g;g=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var h={},i={},j={},k=!1;a=function(a,b,c){g(b)||(c=b,b=[]),h[a]={deps:b,callback:c}},d=c=b=function(a){if(j[a]!==k&&i.hasOwnProperty(a))return i[a];if(!h[a])throw new Error("Could not find module "+a);var b,c,d=h[a],f=!1;i[a]={};try{b=e(d.deps,a,i[a]),c=d.callback.apply(this,b.deps),f=!0}finally{f||(j[a]=k)}return b.exports?i[a]:i[a]=c},d.entries=d._eak_seen=h,d.clear=function(){d.entries=d._eak_seen=h={},i=j={}}}(),a("ember-table/components/ember-table",["ember","ember-table/mixins/style-bindings","ember-table/mixins/resize-handler","ember-table/controllers/row-array","ember-table/controllers/row","exports"],function(a,b,c,d,e,f){"use strict";var g=a["default"],h=b["default"],i=c["default"],j=d["default"],k=e["default"];f["default"]=g.Component.extend(h,i,{classNames:["ember-table-tables-container"],classNameBindings:["enableContentSelection:ember-table-content-selectable"],styleBindings:["height"],content:[],columns:null,numFixedColumns:0,numFooterRow:0,rowHeight:30,minHeaderHeight:30,footerHeight:30,hasHeader:!0,hasFooter:!0,enableColumnReorder:!0,enableContentSelection:!1,columnMode:"standard",selectionMode:"single",selection:g.computed(function(a,b){var c=this.get("selectionMode");if(arguments.length>1&&b)switch(this.get("persistedSelection").clear(),this.get("rangeSelection").clear(),c){case"single":this.get("persistedSelection").addObject(b);break;case"multiple":this.get("persistedSelection").addObjects(b)}var d=this.get("persistedSelection").copy().addObjects(this.get("rangeSelection"));switch(c){case"none":return null;case"single":return d[0]||null;case"multiple":return d}}).property("persistedSelection.[]","rangeSelection.[]","selectionMode"),isEmberTable:!0,columnsFillTable:!0,_resolvedContent:function(a,b){if(arguments.length>1)return b;var c=this;b=[];var d=this.get("content");return d.then?(d.then(function(a){c.set("_resolvedContent",a),b=a}),b):d}.property("content"),init:function(){if(this._super(),!g.$.ui)throw"Missing dependency: jquery-ui";if(!g.$().mousewheel)throw"Missing dependency: jquery-mousewheel";if(!g.$().antiscroll)throw"Missing dependency: antiscroll.js";this.prepareTableColumns()},height:g.computed.alias("_tablesContainerHeight"),tableRowView:"table-row",tableRowViewClass:g.computed.alias("tableRowView"),onColumnSort:function(a,b){var c=this.get("fixedColumns.length"),d=this.get("columns");d.removeObject(a),d.insertAt(c+b,a),this.prepareTableColumns()},bodyContent:g.computed(function(){return j.create({target:this,parentController:this,container:this.get("container"),itemController:k,content:this.get("_resolvedContent")})}).property("_resolvedContent.[]"),footerContent:g.computed(function(a,b){return b?b:g.A()}).property(),fixedColumns:g.computed(function(){var a=this.get("columns");if(!a)return g.A();var b=this.get("numFixedColumns")||0;return a.slice(0,b)||[]}).property("columns.[]","numFixedColumns"),tableColumns:g.computed(function(){var a=this.get("columns");if(!a)return g.A();var b=this.get("numFixedColumns")||0;return a.slice(b,a.get("length"))||[]}).property("columns.[]","numFixedColumns"),prepareTableColumns:function(){var a=this,b=this.get("columns")||g.A();b.setEach("controller",this),b.forEach(function(c,d){c.set("nextResizableColumn",a.getNextResizableColumn(b,d))})},getNextResizableColumn:function(a,b){for(var c;b<a.length;)if(b+=1,c=a.objectAt(b),null!=c&&c.get("isResizable"))return c;return null},didInsertElement:function(){this._super(),this.set("_tableScrollTop",0),this.elementSizeDidChange(),this.doForceFillColumns()},willDestroyElement:function(){var a,b=this.$(".antiscroll-wrap");b.each(function(b,c){a=g.$(c).data("antiscroll"),a&&(a.destroy(),g.$(c).removeData("antiscroll"))}),this._super()},onResizeEnd:function(){this.tableWidthNowTooSmall()&&this.set("columnsFillTable",!0),g.run(this,this.elementSizeDidChange)},elementSizeDidChange:function(){"inDOM"===(this.get("_state")||this.get("state"))&&(this.set("_width",this.$().parent().width()),this.set("_height",this.$().parent().height()),g.run.next(this,this.updateLayout))},tableWidthNowTooSmall:function(){if("inDOM"!==(this.get("_state")||this.get("state")))return!1;var a=this.get("_width"),b=this.$().parent().width(),c=this._getTotalWidth(this.get("tableColumns"));return a>c&&c>b},updateLayout:function(){"inDOM"===(this.get("_state")||this.get("state"))&&(this.$(".antiscroll-wrap").antiscroll().data("antiscroll").rebuild(),this.get("columnsFillTable")&&this.doForceFillColumns())},doForceFillColumns:function(){for(var a,b,c=this.get("columns"),d=c.filterProperty("canAutoResize"),e=c.filterProperty("canAutoResize",!1),f=this.get("_width")-this._getTotalWidth(e),g=!0,h=[];g;)g=!1,h=[],a=this._getTotalWidth(d),d.forEach(function(c){b=Math.floor(c.get("width")/a*f),b<c.get("minWidth")?(g=!0,c.set("width",c.get("minWidth")),f-=c.get("width")):b>c.get("maxWidth")?(g=!0,c.set("width",c.get("maxWidth")),f-=c.get("width")):(c.set("width",b),h.pushObject(c)),d=h})},onBodyContentLengthDidChange:g.observer(function(){g.run.next(this,function(){g.run.once(this,this.updateLayout)})},"bodyContent.length"),_tableScrollTop:0,_tableScrollLeft:0,_width:null,_height:null,_contentHeaderHeight:null,_hasVerticalScrollbar:g.computed(function(){var a=this.get("_height"),b=this.get("_tableContentHeight")+this.get("_headerHeight")+this.get("_footerHeight");return b>a}).property("_height","_tableContentHeight","_headerHeight","_footerHeight"),_hasHorizontalScrollbar:g.computed(function(){var a=this.get("_tableColumnsWidth"),b=this.get("_width")-this.get("_fixedColumnsWidth");return a>b}).property("_tableColumnsWidth","_width","_fixedColumnsWidth"),_tablesContainerHeight:g.computed(function(){var a=this.get("_height"),b=this.get("_tableContentHeight")+this.get("_headerHeight")+this.get("_footerHeight");return Math.min(b,a)}).property("_height","_tableContentHeight","_headerHeight","_footerHeight"),_fixedColumnsWidth:g.computed(function(){return this._getTotalWidth(this.get("fixedColumns"))}).property("fixedColumns.@each.width"),_tableColumnsWidth:g.computed(function(){var a=this._getTotalWidth(this.get("tableColumns"))+3,b=this.get("_width")-this.get("_fixedColumnsWidth");return Math.max(a,b)}).property("tableColumns.@each.width","_width","_fixedColumnsWidth"),_rowWidth:g.computed(function(){var a=this.get("_tableColumnsWidth"),b=this.get("_tableContainerWidth")-this.get("_fixedColumnsWidth");return Math.max(a,b)}).property("_fixedColumnsWidth","_tableColumnsWidth","_tableContainerWidth"),_headerHeight:g.computed(function(){var a=this.get("minHeaderHeight"),b=this.get("_contentHeaderHeight");return Math.max(b,a)}).property("_contentHeaderHeight","minHeaderHeight"),_footerHeight:g.computed(function(){return this.get("hasFooter")?this.get("footerHeight"):0}).property("footerHeight","hasFooter"),_bodyHeight:g.computed(function(){var a=this.get("_tablesContainerHeight");return this.get("hasHeader")&&(a-=this.get("_headerHeight")),this.get("hasFooter")&&(a-=this.get("footerHeight")),a}).property("_tablesContainerHeight","_hasHorizontalScrollbar","_headerHeight","footerHeight","hasHeader","hasFooter"),_tableBlockWidth:g.computed(function(){return this.get("_width")-this.get("_fixedColumnsWidth")}).property("_width","_fixedColumnsWidth"),_fixedBlockWidthBinding:"_fixedColumnsWidth",_tableContentHeight:g.computed(function(){return this.get("rowHeight")*this.get("bodyContent.length")}).property("rowHeight","bodyContent.length"),_tableContainerWidth:g.computed(function(){return this.get("_width")}).property("_width"),_scrollContainerWidth:g.computed(function(){return this.get("_width")-this.get("_fixedColumnsWidth")}).property("_width","_fixedColumnsWidth"),_numItemsShowing:g.computed(function(){return Math.floor(this.get("_bodyHeight")/this.get("rowHeight"))}).property("_bodyHeight","rowHeight"),_startIndex:g.computed(function(){var a=this.get("bodyContent.length"),b=this.get("_numItemsShowing"),c=this.get("rowHeight"),d=this.get("_tableScrollTop"),e=Math.floor(d/c);return e+b>=a&&(e=a-b),Math.max(e,0)}).property("bodyContent.length","_numItemsShowing","rowHeight","_tableScrollTop"),_getTotalWidth:function(a,b){if(null==b&&(b="width"),!a)return 0;var c=a.getEach(b)||[];return c.reduce(function(a,b){return a+b},0)},lastSelected:null,isSelected:function(a){switch(this.get("selectionMode")){case"none":return!1;case"single":return this.get("selection")===a.get("content");case"multiple":return this.get("selection").contains(a.get("content"))}},setSelected:function(a,b){this.persistSelection();var c=a.get("content");return b?this.get("persistedSelection").addObject(c):this.get("persistedSelection").removeObject(c)},persistedSelection:g.computed(function(){return g.A()}),rangeSelection:g.computed(function(){return g.A()}),click:function(a){var b=this.getRowForEvent(a);if(b&&b.get("content")){var c=b.get("content");switch(this.get("selectionMode")){case"none":break;case"single":this.get("persistedSelection").clear(),this.get("persistedSelection").addObject(c);break;case"multiple":if(a.shiftKey){this.get("rangeSelection").clear();var d=this.rowIndex(this.get("lastSelected"));-1===d&&(d=0);var e=this.rowIndex(this.getRowForEvent(a)),f=Math.min(d,e),g=Math.max(d,e);this.get("rangeSelection").addObjects(this.get("bodyContent").slice(f,g+1).mapBy("content"))}else a.ctrlKey||a.metaKey?this.persistSelection():(this.get("persistedSelection").clear(),this.get("rangeSelection").clear()),this.get("persistedSelection").contains(c)?this.get("persistedSelection").removeObject(c):this.get("persistedSelection").addObject(c),this.set("lastSelected",b)}}},findRow:function(a){return this.get("bodyContent").forEach(function(b){return b.get("content")===a?b:void 0}),null},rowIndex:function(a){return this.get("bodyContent")?this.get("bodyContent").indexOf(a):null},persistSelection:function(){this.get("persistedSelection").addObjects(this.get("rangeSelection")),this.get("rangeSelection").clear()},getRowForEvent:function(a){var b=g.$(a.target).parents(".ember-table-table-row"),c=g.View.views[b.attr("id")];return c?c.get("row"):null},actions:{addColumn:g.K,sortByColumn:g.K}})}),a("ember-table/mixins/style-bindings",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({concatenatedProperties:["styleBindings"],attributeBindings:["style"],unitType:"px",createStyleString:function(a,b){var d;return d=this.get(b),c.isNone(d)?void 0:("number"===c.typeOf(d)&&(d+=this.get("unitType")),c.String.dasherize(""+a)+":"+d+";")},applyStyleBindings:c.on("init",c.observer("styleBindings",function(){var a,b,d,e,f,g=this;return(d=this.get("styleBindings"))?(a={},d.forEach(function(b){var c,d,e;e=b.split(":"),c=e[0],d=e[1],a[d||c]=c}),f=c.keys(a),b=f.map(function(b){return a[b]}),e=c.computed(function(){var b,c;return c=f.map(function(b){return g.createStyleString(b,a[b])}),b=c.join(""),0!==b.length?b.htmlSafe().toString():void 0}),e.property.apply(e,b),c.defineProperty(this,"style",e)):void 0}))})}),a("ember-table/mixins/resize-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({resizeEndDelay:200,resizing:!1,onResizeStart:c.K,onResizeEnd:c.K,onResize:c.K,endResize:c.computed(function(){return function(a){return this.isDestroyed?void 0:(this.set("resizing",!1),"function"==typeof this.onResizeEnd?this.onResizeEnd(a):void 0)}}),handleWindowResize:function(a){return"undefined"==typeof a.target.id||null===a.target.id||a.target.id===this.elementId?(this.get("resizing")||(this.set("resizing",!0),"function"==typeof this.onResizeStart&&this.onResizeStart(a)),"function"==typeof this.onResize&&this.onResize(a),c.run.debounce(this,this.get("endResize"),a,this.get("resizeEndDelay"))):void 0},didInsertElement:function(){return this._super(),this._setupDocumentHandlers()},willDestroyElement:function(){return this._removeDocumentHandlers(),this._super()},_setupDocumentHandlers:function(){return this._resizeHandler?void 0:(this._resizeHandler=c.$.proxy(this.get("handleWindowResize"),this),c.$(window).on("resize."+this.elementId,this._resizeHandler))},_removeDocumentHandlers:function(){return c.$(window).off("resize."+this.elementId,this._resizeHandler),this._resizeHandler=null}})}),a("ember-table/controllers/row-array",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.ArrayController.extend({itemController:null,content:null,lastItem:null,rowContent:c.computed(function(){return[]}).property(),controllerAt:function(a,b){var c=this.get("_subControllers"),d=c[a];return d?d:(d=this.get("itemController").create({target:this,parentController:this.get("parentController")||this,content:b}),c[a]=d,this._isLastItem(a)&&this.set("lastItem",d),d)},_isLastItem:function(a){return this.get("content").length-1===a}})}),a("ember-table/controllers/row",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.ObjectProxy.extend({content:null,isShowing:!0,isHovered:!1,isSelected:c.computed(function(a,b){return arguments.length>1&&this.get("parentController").setSelected(this,b),this.get("parentController").isSelected(this)}).property("parentController.selection.[]")})}),a("ember-table/mixins/mouse-wheel-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({onMouseWheel:c.K,didInsertElement:function(){var a=this;this._super(),this.$().bind("mousewheel",function(b,d,e,f){c.run(a,a.onMouseWheel,b,d,e,f)})},willDestroyElement:function(){var a=this.$();a&&a.unbind("mousewheel"),this._super()}})}),a("ember-table/mixins/register-table-component",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({tableComponent:null,init:function(){return this.get("tableComponent")||this.set("tableComponent",this.nearestWithProperty("isEmberTable")),this._super()}})}),a("ember-table/mixins/scroll-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({onScroll:c.K,scrollElementSelector:"",didInsertElement:function(){var a=this;this._super(),this.$(this.get("scrollElementSelector")).bind("scroll",function(b){c.run(a,a.onScroll,b)})},willDestroyElement:function(){var a=this.$(this.get("scrollElementSelector"));a&&a.unbind("scroll"),this._super()}})}),a("ember-table/mixins/show-horizontal-scroll",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({mouseEnter:function(a){var b=c.$(a.target).parents(".ember-table-tables-container"),d=b.find(".antiscroll-scrollbar-horizontal");d.addClass("antiscroll-scrollbar-shown")},mouseLeave:function(a){var b=c.$(a.target).parents(".ember-table-tables-container"),d=b.find(".antiscroll-scrollbar-horizontal");d.removeClass("antiscroll-scrollbar-shown")}})}),a("ember-table/mixins/touch-move-handler",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Mixin.create({onTouchMove:c.K,didInsertElement:function(){var a=this,b=0,d=0;this._super(),this.$().bind("touchstart",function(a){b=a.originalEvent.targetTouches[0].pageX,d=a.originalEvent.targetTouches[0].pageY}),this.$().bind("touchmove",function(e){var f=e.originalEvent.targetTouches[0].pageX,g=e.originalEvent.targetTouches[0].pageY,h=-(f-b),i=-(g-d);c.run(a,a.onTouchMove,e,h,i),b=f,d=g})},willDestroyElement:function(){this.$().unbind("touchstart"),this.$().unbind("touchmove"),this._super()}})}),a("ember-table/models/column-definition",["ember","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.Object.extend({headerCellName:void 0,contentPath:void 0,minWidth:25,maxWidth:void 0,savedWidth:150,isResizable:!0,isSortable:!0,textAlign:"text-align-right",canAutoResize:!1,headerCellView:"header-cell",headerCellViewClass:c.computed.alias("headerCellView"),tableCellView:"table-cell",tableCellViewClass:c.computed.alias("tableCellView"),getCellContent:function(a){var b=this.get("contentPath");return c.assert("You must either provide a contentPath or override getCellContent in your column definition",null!=b),c.get(a,b)},setCellContent:c.K,width:c.computed.oneWay("savedWidth"),resize:function(a){this.set("savedWidth",a),this.set("width",a)},nextColumn:null,prevColumn:null,isAtMinWidth:c.computed(function(){return this.get("width")===this.get("minWidth")}).property("width","minWidth"),isAtMaxWidth:c.computed(function(){return this.get("width")===this.get("maxWidth")}).property("width","maxWidth")})}),a("ember-table/templates/body-table-container",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({1:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(" "),d.buffer.push(e(b.view.call(a,"lazy-table-block",{name:"view",hash:{startIndex:"_startIndex",scrollTop:"_scrollTop",numItemsShowing:"_numItemsShowing",width:"_fixedBlockWidth",columns:"fixedColumns",content:"bodyContent",classNames:"ember-table-left-table-block"},hashTypes:{startIndex:"ID",scrollTop:"ID",numItemsShowing:"ID",width:"ID",columns:"ID",content:"ID",classNames:"STRING"},hashContexts:{startIndex:a,scrollTop:a,numItemsShowing:a,width:a,columns:a,content:a,classNames:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.escapeExpression,g="";return d.buffer.push('<div class="antiscroll-box">\n <div class="antiscroll-inner">\n <div class="ember-table-table-scrollable-wrapper">\n'),e=b["if"].call(a,"numFixedColumns",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:this.program(1,d),inverse:this.noop,types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push(" "),d.buffer.push(f(b.view.call(a,"lazy-table-block",{name:"view",hash:{startIndex:"_startIndex",scrollTop:"_scrollTop",numItemsShowing:"_numItemsShowing",width:"_tableBlockWidth",scrollLeft:"_tableScrollLeft",columns:"tableColumns",content:"bodyContent",classNames:"ember-table-right-table-block"},hashTypes:{startIndex:"ID",scrollTop:"ID",numItemsShowing:"ID",width:"ID",scrollLeft:"ID",columns:"ID",content:"ID",classNames:"STRING"},hashContexts:{startIndex:a,scrollTop:a,numItemsShowing:a,width:a,scrollLeft:a,columns:a,content:a,classNames:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n </div>\n </div>\n</div>\n"),g},useData:!0})}),a("ember-table/templates/components/ember-table",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({1:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(" "),d.buffer.push(e(b.view.call(a,"header-table-container",{name:"view",hash:{},hashTypes:{},hashContexts:{},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},3:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(" "),d.buffer.push(e(b.view.call(a,"footer-table-container",{name:"view",hash:{},hashTypes:{},hashContexts:{},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.escapeExpression,g="";return e=b["if"].call(a,"hasHeader",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:this.program(1,d),inverse:this.noop,types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push(f(b.view.call(a,"body-table-container",{name:"view",hash:{},hashTypes:{},hashContexts:{},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),e=b["if"].call(a,"hasFooter",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:this.program(3,d),inverse:this.noop,types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push(f(b.view.call(a,"scroll-container",{name:"view",hash:{},hashTypes:{},hashContexts:{},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),d.buffer.push(f(b.view.call(a,"column-sortable-indicator",{name:"view",hash:{},hashTypes:{},hashContexts:{},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),g},useData:!0})}),a("ember-table/templates/footer-table-container",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({1:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(" "),d.buffer.push(e(b.view.call(a,"table-block",{name:"view",hash:{height:"footerHeight",width:"_fixedBlockWidth",columns:"fixedColumns",content:"footerContent",classNames:"ember-table-left-table-block"},hashTypes:{height:"ID",width:"ID",columns:"ID",content:"ID",classNames:"STRING"},hashContexts:{height:a,width:a,columns:a,content:a,classNames:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.escapeExpression,g="";return d.buffer.push('<div class="ember-table-table-fixed-wrapper">\n'),e=b["if"].call(a,"numFixedColumns",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:this.program(1,d),inverse:this.noop,types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push(" "),d.buffer.push(f(b.view.call(a,"table-block",{name:"view",hash:{height:"footerHeight",width:"_tableBlockWidth",scrollLeft:"_tableScrollLeft",columns:"tableColumns",content:"footerContent",classNames:"ember-table-right-table-block"},hashTypes:{height:"ID",width:"ID",scrollLeft:"ID",columns:"ID",content:"ID",classNames:"STRING"},hashContexts:{height:a,width:a,scrollLeft:a,columns:a,content:a,classNames:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n</div>\n"),g},useData:!0})}),a("ember-table/templates/header-cell",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.escapeExpression,g="";return d.buffer.push('<div class="ember-table-content-container" '),d.buffer.push(f(b.action.call(a,"sortByColumn","view.content",{name:"action",hash:{},hashTypes:{},hashContexts:{},types:["STRING","ID"],contexts:[a,a],data:d}))),d.buffer.push('>\n <span class="ember-table-content">\n '),e=b._triageMustache.call(a,"view.content.headerCellName",{name:"_triageMustache",hash:{},hashTypes:{},hashContexts:{},types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push("\n </span>\n</div>"),g},useData:!0})}),a("ember-table/templates/header-row",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(e(b.view.call(a,"multi-item-collection",{name:"view",hash:{width:"controller._tableColumnsWidth",itemViewClassField:"headerCellViewClass",content:"view.content"},hashTypes:{width:"ID",itemViewClassField:"STRING",content:"ID"},hashContexts:{width:a,itemViewClassField:a,content:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},useData:!0})}),a("ember-table/templates/header-table-container",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({1:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(" "),d.buffer.push(e(b.view.call(a,"header-block",{name:"view",hash:{height:"headerHeight",width:"_fixedBlockWidth",columns:"fixedColumns",classNames:"ember-table-left-table-block"},hashTypes:{height:"ID",width:"ID",columns:"ID",classNames:"STRING"},hashContexts:{height:a,width:a,columns:a,classNames:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=this.escapeExpression,g="";return d.buffer.push('<div class="ember-table-table-fixed-wrapper">\n'),e=b["if"].call(a,"controller.numFixedColumns",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:this.program(1,d),inverse:this.noop,types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push(" "),d.buffer.push(f(b.view.call(a,"header-block",{name:"view",hash:{height:"headerHeight",width:"_tableBlockWidth",scrollLeft:"_tableScrollLeft",columns:"tableColumns",classNames:"ember-table-right-table-block"},hashTypes:{height:"ID",width:"ID",scrollLeft:"ID",columns:"ID",classNames:"STRING"},hashContexts:{height:a,width:a,scrollLeft:a,columns:a,classNames:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n</div>\n"),g},useData:!0})}),a("ember-table/templates/scroll-container",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push('<div class="antiscroll-wrap">\n <div class="antiscroll-inner">\n '),d.buffer.push(e(b.view.call(a,"scroll-panel",{name:"view",hash:{},hashTypes:{},hashContexts:{},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n </div>\n</div>\n"),f},useData:!0})}),a("ember-table/templates/table-cell",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f="";return d.buffer.push('<span class="ember-table-content">\n '),e=b._triageMustache.call(a,"view.cellContent",{name:"_triageMustache",hash:{},hashTypes:{},hashContexts:{},types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),d.buffer.push("\n</span>"),f},useData:!0})}),a("ember-table/templates/table-row",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=this.escapeExpression,f="";return d.buffer.push(e(b.view.call(a,"multi-item-collection",{name:"view",hash:{width:"controller._tableColumnsWidth",itemViewClassField:"tableCellViewClass",content:"view.columns",row:"view.row"},hashTypes:{width:"ID",itemViewClassField:"STRING",content:"ID",row:"ID"},hashContexts:{width:a,itemViewClassField:a,content:a,row:a},types:["STRING"],contexts:[a],data:d}))),d.buffer.push("\n"),f},useData:!0})}),a("ember-table/views/body-table-container",["ember","ember-table/views/table-container","ember-table/mixins/show-horizontal-scroll","ember-table/mixins/register-table-component","ember-table/mixins/mouse-wheel-handler","ember-table/mixins/touch-move-handler","ember-table/mixins/scroll-handler","exports"],function(a,b,c,d,e,f,g,h){"use strict";var i=a["default"],j=b["default"],k=c["default"],l=d["default"],m=e["default"],n=f["default"],o=g["default"];h["default"]=j.extend(m,n,o,k,l,{templateName:"body-table-container",classNames:["ember-table-table-container","ember-table-body-container","antiscroll-wrap"],height:i.computed.alias("tableComponent._bodyHeight"),width:i.computed.alias("tableComponent._width"),scrollTop:i.computed.alias("tableComponent._tableScrollTop"),scrollLeft:i.computed.alias("tableComponent._tableScrollLeft"),scrollElementSelector:".antiscroll-inner",onScroll:function(a){return this.set("scrollTop",a.target.scrollTop),a.preventDefault()},onMouseWheel:function(a,b,c,d){if(!(Math.abs(c)<=Math.abs(d))){var e=this.$(".ember-table-right-table-block").scrollLeft()+c;this.set("scrollLeft",e),a.preventDefault()}},onTouchMove:function(a,b,c){if(!(Math.abs(b)<=Math.abs(c))){var d=this.$(".ember-table-right-table-block").scrollLeft()+b;this.set("scrollLeft",d),a.preventDefault()}}})}),a("ember-table/views/table-container",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.View.extend(e,{classNames:["ember-table-table-container"],styleBindings:["height","width"]})}),a("ember-table/views/column-sortable-indicator",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{classNames:"ember-table-column-sortable-indicator",classNameBindings:"tableComponent._isShowingSortableIndicator:active",styleBindings:["left","height"],left:e.computed.alias("tableComponent._sortableIndicatorLeft"),height:e.computed.alias("tableComponent._height")})}),a("ember-table/views/footer-table-container",["ember","ember-table/views/table-container","ember-table/mixins/show-horizontal-scroll","ember-table/mixins/register-table-component","ember-table/mixins/mouse-wheel-handler","ember-table/mixins/touch-move-handler","exports"],function(a,b,c,d,e,f,g){"use strict";var h=a["default"],i=b["default"],j=c["default"],k=d["default"],l=e["default"],m=f["default"];g["default"]=i.extend(l,m,j,k,{templateName:"footer-table-container",classNames:["ember-table-table-container","ember-table-fixed-table-container","ember-table-footer-container"],styleBindings:"top",height:h.computed.alias("tableComponent.footerHeight"),width:h.computed.alias("tableComponent._tableContainerWidth"),scrollLeft:h.computed.alias("tableComponent._tableScrollLeft"),top:h.computed(function(){var a=this.get("tableComponent._headerHeight"),b=this.get("tableComponent._tableContentHeight")+a,c=this.get("tableComponent._bodyHeight")+a;return c>b?b:c}).property("tableComponent._bodyHeight","tableComponent._headerHeight","tableComponent._tableContentHeight"),onMouseWheel:function(a,b,c){var d=this.$(".ember-table-right-table-block").scrollLeft()+c;this.set("scrollLeft",d),a.preventDefault()},onTouchMove:function(a,b){var c=this.$(".ember-table-right-table-block").scrollLeft()+b;this.set("scrollLeft",c),a.preventDefault()}})}),a("ember-table/views/header-block",["ember","ember-table/views/table-block","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=e.extend({classNames:["ember-table-header-block"],itemView:"header-row",itemViewClass:d.computed.alias("itemView"),content:d.computed(function(){return[this.get("columns")]}).property("columns"),onColumnsDidChange:d.observer(function(){var a=this;d.run.schedule("afterRender",function(){a.$().scrollLeft(a.get("scrollLeft"))})},"content")})}),a("ember-table/views/table-block",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.CollectionView.extend(f,g,{classNames:["ember-table-table-block"],styleBindings:["width","height"],itemViewClass:e.computed.alias("tableComponent.tableRowViewClass"),columns:null,content:null,scrollLeft:null,onScrollLeftDidChange:e.observer(function(){this.$().scrollLeft(this.get("scrollLeft"))},"scrollLeft"),height:e.computed(function(){return this.get("tableComponent._headerHeight")}).property("tableComponent._headerHeight")})}),a("ember-table/views/header-cell",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{templateName:"header-cell",classNames:["ember-table-cell","ember-table-header-cell"],classNameBindings:["column.isSortable:sortable","column.textAlign"],styleBindings:["width","height"],column:e.computed.alias("content"),width:e.computed.alias("column.width"),minWidth:e.computed.alias("column.minWidth"),maxWidth:e.computed.alias("column.maxWidth"),nextResizableColumn:e.computed.alias("column.nextResizableColumn"),height:e.computed.alias("tableComponent._headerHeight"),effectiveMinWidth:e.computed(function(){if("standard"===this.get("tableComponent.columnMode"))return this.get("minWidth");var a=this.get("nextResizableColumn.maxWidth")-this.get("nextResizableColumn.width");return this.get("minWidth")&&a?Math.min(this.get("minWidth"),this.get("width")-a):this.get("minWidth")?this.get("minWidth"):this.get("width")-a}).property("width","minWidth","tableComponent.columnMode","nextResizableColumn.{width,maxWidth}"),effectiveMaxWidth:e.computed(function(){if("standard"===this.get("tableComponent.columnMode"))return this.get("maxWidth"); | ||
var a=this.get("nextResizableColumn.width")-this.get("nextResizableColumn.minWidth");return this.get("maxWidth")&&!e.isNone(a)?Math.min(this.get("maxWidth"),this.get("width")+a):this.get("maxWidth")?this.get("maxWidth"):this.get("width")+a}).property("width","minWidth","tableComponent.columnMode","nextResizableColumn.{width,minWidth}"),resizableOption:e.computed(function(){return{handles:"e",minWidth:Math.max(this.get("effectiveMinWidth")||0,10),maxWidth:this.get("effectiveMaxWidth"),grid:this.get("column.snapGrid"),resize:e.$.proxy(this.onColumnResize,this),stop:e.$.proxy(this.onColumnResize,this)}}).property("effectiveMinWidth","effectiveMaxWidth"),didInsertElement:function(){this.elementSizeDidChange(),this.recomputeResizableHandle()},willDestroyElement:function(){this.$().is(".ui-resizable")&&this.$().resizable("destroy"),this._super()},_isResizable:e.computed(function(){return"standard"===this.get("tableComponent.columnMode")?this.get("column.isResizable"):this.get("column.isResizable")&&this.get("nextResizableColumn")}).property("column.isResizable","tableComponent.columnMode","nextResizableColumn"),onColumnResize:function(a,b){var c=Math.round(b.size.width);if("standard"===this.get("tableComponent.columnMode"))this.get("column").resize(c),this.set("tableComponent.columnsFillTable",!1);else{var d=this.get("width")-c;this.get("column").resize(c),this.get("nextResizableColumn").resize(this.get("nextResizableColumn.width")+d)}this.elementSizeDidChange(),"resizestop"===a.type&&this.get("tableComponent").elementSizeDidChange()},elementSizeDidChange:function(){var a=0;e.$(".ember-table-header-block .ember-table-content").each(function(){var b=e.$(this).outerHeight();b>a&&(a=b)}),this.set("tableComponent._contentHeaderHeight",a)},cellWidthDidChange:e.observer(function(){e.run.schedule("afterRender",this,this.elementSizeDidChange)},"width"),resizableObserver:e.observer(function(){this.recomputeResizableHandle()},"resizableOption","column.isResizable","tableComponent.columnMode","nextResizableColumn"),recomputeResizableHandle:function(){this.get("_isResizable")?this.$().resizable(this.get("resizableOption")):this.$().is(".ui-resizable")&&this.$().resizable("destroy")}})}),a("ember-table/views/header-row",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{templateName:"header-row",classNames:["ember-table-table-row","ember-table-header-row"],styleBindings:["width"],columns:e.computed.alias("content"),width:e.computed.alias("tableComponent._rowWidth"),sortableOption:e.computed(function(){return{axis:"x",containment:"parent",cursor:"move",helper:"clone",items:".ember-table-header-cell.sortable",opacity:.9,placeholder:"ui-state-highlight",scroll:!0,tolerance:"pointer",update:e.$.proxy(this.onColumnSortDone,this),stop:e.$.proxy(this.onColumnSortStop,this),sort:e.$.proxy(this.onColumnSortChange,this)}}),didInsertElement:function(){this._super(),this.get("tableComponent.enableColumnReorder")&&this.$("> div").sortable(this.get("sortableOption"))},willDestroyElement:function(){if(this.get("tableComponent.enableColumnReorder")){var a=this.$("> div");a&&a.sortable("destroy")}this._super()},onColumnSortStop:function(){this.set("tableComponent._isShowingSortableIndicator",!1)},onColumnSortChange:function(){var a=this.$(".ui-state-highlight").offset().left-this.$().closest(".ember-table-tables-container").offset().left;this.set("tableComponent._isShowingSortableIndicator",!0),this.set("tableComponent._sortableIndicatorLeft",a)},onColumnSortDone:function(a,b){var c=b.item.index();this.$("> div").sortable("cancel");var d=e.View.views[b.item.attr("id")],f=d.get("column");this.get("tableComponent").onColumnSort(f,c),this.set("tableComponent._isShowingSortableIndicator",!1)}})}),a("ember-table/views/header-table-container",["ember","ember-table/views/table-container","ember-table/mixins/show-horizontal-scroll","ember-table/mixins/register-table-component","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"];e["default"]=g.extend(h,i,{templateName:"header-table-container",classNames:["ember-table-table-container","ember-table-fixed-table-container","ember-table-header-container"],height:f.computed.alias("tableComponent._headerHeight"),width:f.computed.alias("tableComponent._tableContainerWidth")})}),a("ember-table/views/lazy-container",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.ContainerView.extend(e,{classNames:"lazy-list-container",styleBindings:["height"],content:null,itemViewClass:null,rowHeight:null,scrollTop:null,startIndex:null,init:function(){return this._super(),this.onNumChildViewsDidChange()},height:d.computed(function(){return this.get("content.length")*this.get("rowHeight")}).property("content.length","rowHeight"),numChildViews:d.computed(function(){return this.get("numItemsShowing")+2}).property("numItemsShowing"),onNumChildViewsDidChange:d.observer(function(){var a=this,b=this.get("itemViewClass");"string"==typeof b&&(b=/[A-Z]+/.exec(b)?d.get(d.lookup,b):this.container.lookupFactory("view:"+b));var c=this.get("numChildViews");if(b&&c){var e=this.get("length"),f=c-e;if(0>f){var g=this.slice(c,e);this.removeObjects(g)}else if(f>0)for(var h=0;f>h;++h)this.pushObject(a.createChildView(b));this.viewportDidChange()}},"numChildViews","itemViewClass"),viewportDidChange:d.observer(function(){var a=this.get("childViews"),b=this.get("content")||[],c=b.get("length"),d=Math.min(this.get("length"),c),e=this.get("startIndex");e+d>=c&&(e=c-d),0>e&&(e=0),a.forEach(function(c,f){if(f>=d)return void c.set("content",null);var g=e+f;c=a.objectAt(g%d);var h=b.objectAt(g);c&&h!==c.get("content")&&(c.teardownContent(),c.set("itemIndex",g),c.set("content",h),c.prepareContent())})},"content.length","length","startIndex")})}),a("ember-table/views/lazy-item",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.View.extend(e,{itemIndex:null,prepareContent:d.K,teardownContent:d.K,rowHeightBinding:"parentView.rowHeight",styleBindings:["width","top","display"],top:d.computed(function(){return this.get("itemIndex")*this.get("rowHeight")}).property("itemIndex","rowHeight"),display:d.computed(function(){return this.get("content")?void 0:"none"}).property("content")})}),a("ember-table/views/lazy-table-block",["ember","ember-table/mixins/register-table-component","ember-table/views/lazy-container","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=g.extend(f,{classNames:["ember-table-table-block"],styleBindings:["width"],itemViewClass:e.computed.alias("tableComponent.tableRowViewClass"),rowHeight:e.computed.alias("tableComponent.rowHeight"),columns:null,content:null,scrollLeft:null,scrollTop:null,onScrollLeftDidChange:e.observer(function(){this.$().scrollLeft(this.get("scrollLeft"))},"scrollLeft")})}),a("ember-table/views/multi-item-collection",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.CollectionView.extend(e,{styleBindings:"width",itemViewClassField:null,createChildView:function(a,b){var c=this.get("itemViewClassField"),e=b.content.get(c);return"string"==typeof e&&(e=/[A-Z]+/.exec(e)?d.get(d.lookup,e):this.container.lookupFactory("view:"+e)),this._super(e,b)}})}),a("ember-table/views/scroll-container",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","ember-table/mixins/scroll-handler","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"];e["default"]=f.View.extend(g,i,h,{templateName:"scroll-container",classNames:["ember-table-scroll-container"],styleBindings:["left","width","height"],scrollElementSelector:".antiscroll-inner",width:f.computed.alias("tableComponent._scrollContainerWidth"),height:10,left:f.computed.alias("tableComponent._fixedColumnsWidth"),scrollTop:f.computed.alias("tableComponent._tableScrollTop"),scrollLeft:f.computed.alias("tableComponent._tableScrollLeft"),didInsertElement:function(){this._super(),this.onScrollLeftDidChange()},onScroll:function(a){this.set("scrollLeft",a.target.scrollLeft),a.preventDefault()},onScrollLeftDidChange:f.observer(function(){var a=this.get("scrollElementSelector");this.$(a).scrollLeft(this.get("scrollLeft"))},"scrollLeft","scrollElementSelector")})}),a("ember-table/views/scroll-panel",["ember","ember-table/mixins/style-bindings","ember-table/mixins/register-table-component","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=e.View.extend(f,g,{classNames:["ember-table-scroll-panel"],styleBindings:["width","height"],width:e.computed.alias("tableComponent._tableColumnsWidth"),height:e.computed.alias("tableComponent._tableContentHeight")})}),a("ember-table/views/table-cell",["ember","ember-table/mixins/style-bindings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"];c["default"]=d.View.extend(e,{templateName:"table-cell",classNames:["ember-table-cell"],classNameBindings:"column.textAlign",styleBindings:"width",init:function(){this._super(),this.contentPathDidChange(),this.contentDidChange()},row:d.computed.alias("parentView.row"),column:d.computed.alias("content"),width:d.computed.alias("column.width"),contentDidChange:function(){this.notifyPropertyChange("cellContent")},contentPathWillChange:d.beforeObserver(function(){var a=this.get("column.contentPath");a&&this.removeObserver("row."+a,this,this.contentDidChange)},"column.contentPath"),contentPathDidChange:d.beforeObserver(function(){var a=this.get("column.contentPath");a&&this.addObserver("row."+a,this,this.contentDidChange)},"column.contentPath"),cellContent:d.computed(function(a,b){var c=this.get("row"),d=this.get("column");return c&&d?(1===arguments.length?b=d.getCellContent(c):d.setCellContent(c,b),b):void 0}).property("row.isLoaded","column")})}),a("ember-table/views/table-row",["ember","ember-table/mixins/register-table-component","ember-table/views/lazy-item","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"];d["default"]=g.extend(f,{templateName:"table-row",classNames:"ember-table-table-row",classNameBindings:["row.isHovered:ember-table-hover","row.isSelected:ember-table-selected","row.rowStyle","isLastRow:ember-table-last-row"],styleBindings:["width","height"],row:e.computed.alias("content"),columns:e.computed.alias("parentView.columns"),width:e.computed.alias("tableComponent._rowWidth"),height:e.computed.alias("tableComponent.rowHeight"),isLastRow:e.computed(function(){return this.get("row")===this.get("tableComponent.bodyContent.lastItem")}).property("tableComponent.bodyContent.lastItem","row"),mouseEnter:function(){var a=this.get("row");a&&a.set("isHovered",!0)},mouseLeave:function(){var a=this.get("row");a&&a.set("isHovered",!1)},teardownContent:function(){var a=this.get("row");a&&a.set("isHovered",!1)}})}),a("ember",["exports"],function(a){a["default"]=window.Ember}),window.Ember.Table=Ember.Namespace.create(),window.Ember.AddeparMixins={},window.Ember.TEMPLATES["body-table-container"]=c("ember-table/templates/body-table-container")["default"],window.Ember.TEMPLATES["components/ember-table"]=c("ember-table/templates/components/ember-table")["default"],window.Ember.TEMPLATES["footer-table-container"]=c("ember-table/templates/footer-table-container")["default"],window.Ember.TEMPLATES["header-cell"]=c("ember-table/templates/header-cell")["default"],window.Ember.TEMPLATES["header-row"]=c("ember-table/templates/header-row")["default"],window.Ember.TEMPLATES["header-table-container"]=c("ember-table/templates/header-table-container")["default"],window.Ember.TEMPLATES["scroll-container"]=c("ember-table/templates/scroll-container")["default"],window.Ember.TEMPLATES["table-cell"]=c("ember-table/templates/table-cell")["default"],window.Ember.TEMPLATES["table-row"]=c("ember-table/templates/table-row")["default"],window.Ember.Table.EmberTableComponent=c("ember-table/components/ember-table")["default"],window.Ember.Table.RowArrayController=c("ember-table/controllers/row-array")["default"],window.Ember.Table.Row=c("ember-table/controllers/row")["default"],window.Ember.MouseWheelHandlerMixin=c("ember-table/mixins/mouse-wheel-handler")["default"],window.Ember.Table.RegisterTableComponentMixin=c("ember-table/mixins/register-table-component")["default"],window.Ember.AddeparMixins.ResizeHandlerMixin=c("ember-table/mixins/resize-handler")["default"],window.Ember.ScrollHandlerMixin=c("ember-table/mixins/scroll-handler")["default"],window.Ember.Table.ShowHorizontalScrollMixin=c("ember-table/mixins/show-horizontal-scroll")["default"],window.Ember.AddeparMixins.StyleBindingsMixin=c("ember-table/mixins/style-bindings")["default"],window.Ember.TouchMoveHandlerMixin=c("ember-table/mixins/touch-move-handler")["default"],window.Ember.Table.ColumnDefinition=c("ember-table/models/column-definition")["default"],window.Ember.Table.BodyTableContainer=c("ember-table/views/body-table-container")["default"],window.Ember.Table.ColumnSortableIndicator=c("ember-table/views/column-sortable-indicator")["default"],window.Ember.Table.FooterTableContainer=c("ember-table/views/footer-table-container")["default"],window.Ember.Table.HeaderBlock=c("ember-table/views/header-block")["default"],window.Ember.Table.HeaderCell=c("ember-table/views/header-cell")["default"],window.Ember.Table.HeaderRow=c("ember-table/views/header-row")["default"],window.Ember.Table.HeaderTableContainer=c("ember-table/views/header-table-container")["default"],window.Ember.LazyContainerView=c("ember-table/views/lazy-container")["default"],window.Ember.LazyItemView=c("ember-table/views/lazy-item")["default"],window.Ember.Table.LazyTableBlock=c("ember-table/views/lazy-table-block")["default"],window.Ember.MultiItemViewCollectionView=c("ember-table/views/multi-item-collection")["default"],window.Ember.Table.ScrollContainer=c("ember-table/views/scroll-container")["default"],window.Ember.Table.ScrollPanel=c("ember-table/views/scroll-panel")["default"],window.Ember.Table.TableBlock=c("ember-table/views/table-block")["default"],window.Ember.Table.TableCell=c("ember-table/views/table-cell")["default"],window.Ember.Table.TableContainer=c("ember-table/views/table-container")["default"],window.Ember.Table.TableRow=c("ember-table/views/table-row")["default"],Ember.onLoad("Ember.Application",function(a){a.initializer({name:"ember-table",initialize:function(a){a.register("component:ember-table",c("ember-table/components/ember-table")["default"]),a.register("view:body-table-container",c("ember-table/views/body-table-container")["default"]),a.register("view:column-sortable-indicator",c("ember-table/views/column-sortable-indicator")["default"]),a.register("view:footer-table-container",c("ember-table/views/footer-table-container")["default"]),a.register("view:header-block",c("ember-table/views/header-block")["default"]),a.register("view:header-cell",c("ember-table/views/header-cell")["default"]),a.register("view:header-row",c("ember-table/views/header-row")["default"]),a.register("view:header-table-container",c("ember-table/views/header-table-container")["default"]),a.register("view:lazy-container",c("ember-table/views/lazy-container")["default"]),a.register("view:lazy-item",c("ember-table/views/lazy-item")["default"]),a.register("view:lazy-table-block",c("ember-table/views/lazy-table-block")["default"]),a.register("view:multi-item-collection",c("ember-table/views/multi-item-collection")["default"]),a.register("view:scroll-container",c("ember-table/views/scroll-container")["default"]),a.register("view:scroll-panel",c("ember-table/views/scroll-panel")["default"]),a.register("view:table-block",c("ember-table/views/table-block")["default"]),a.register("view:table-cell",c("ember-table/views/table-cell")["default"]),a.register("view:table-container",c("ember-table/views/table-container")["default"]),a.register("view:table-row",c("ember-table/views/table-row")["default"])}})}),Ember.Table.EmberTableComponent.reopen({layoutName:"components/ember-table"}),Ember.Handlebars.helper("table-component",Ember.Table.EmberTableComponent)}(); |
{ | ||
"name": "ember-table", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "Table built using Ember.js that lazily renders rows.", | ||
@@ -28,3 +28,2 @@ "directories": { | ||
"broccoli-cli": "~1.0.0", | ||
"broccoli-ember-hbs-template-compiler": "^1.6.1", | ||
"broccoli-es3-safe-recast": "^1.0.0", | ||
@@ -45,2 +44,3 @@ "broccoli-es6-concatenator": "^0.1.11", | ||
"ember-cli-font-awesome": "0.0.7", | ||
"ember-cli-htmlbars": "0.6.0", | ||
"ember-cli-ic-ajax": "0.1.1", | ||
@@ -47,0 +47,0 @@ "ember-cli-inject-live-reload": "^1.3.0", |
@@ -18,3 +18,3 @@ # Ember Table | ||
http://emberjs.jsbin.com/lihigu/edit | ||
http://emberjs.jsbin.com/luvelu/edit | ||
@@ -21,0 +21,0 @@ #### Installation with Ember CLI (Recommended) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
275499
4614