@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.88 kB
JavaScript
module.exports=function(r){function e(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return r[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=r,e.c=t,e.p="",e(0)}({0:function(r,e,t){t(1538),r.exports=t(1538)},3:function(r,e){r.exports=function(){throw Error("define cannot be used indirect")}},19:function(r,e){r.exports=require("../kendo.core")},1538:function(r,e,t){var n,o,i;!function(s,define){o=[t(19)],n=s,i="function"==typeof n?n.apply(e,o):n,!(void 0!==i&&(r.exports=i))}(function(){!function(r){if(!(r.support.browser.msie&&r.support.browser.version<9)){var e=r.Class.extend({init:function(r,e){this._grid=r,this._lists=e},indices:function(r,t,n,o){var i=e.ascendingComparer;return n===!1&&(i=e.descendingComparer),t.sortedIndices(this._grid.cellRefIndex(r.topLeft),this._grid.cellRefIndex(r.bottomRight),i,o)},sortBy:function(r,e,t,n,o){var i,s,u,c,a=this.indices(r.toColumn(e),t,n,o);for(i=r.topLeft.col;i<=r.bottomRight.col;i++)for(s=this._grid.index(r.topLeft.row,i),u=this._grid.index(r.bottomRight.row,i),c=0;c<this._lists.length;c++)s<this._lists[c].lastRangeStart()&&this._lists[c].sort(s,u,a);return a}});e.ascendingComparer=function(e,t){var n,o;if(null===e&&null===t)return 0;if(null===e)return 1;if(null===t)return-1;if(n=typeof e,o=typeof t,"number"===n)return"number"===o?e-t:-1;if("string"===n)switch(o){case"number":return 1;case"string":return e.localeCompare(t);default:return-1}if("boolean"===n)switch(o){case"number":return 1;case"string":return 1;case"boolean":return e-t;default:return-1}if(e instanceof r.spreadsheet.calc.runtime.CalcError)return t instanceof r.spreadsheet.calc.runtime.CalcError?0:1;throw Error("Cannot compare "+e+" and "+t)},e.descendingComparer=function(r,t){return null===r&&null===t?0:null===r?1:null===t?-1:e.ascendingComparer(t,r)},r.spreadsheet.Sorter=e}}(kendo)},t(3))}});