mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
merge conflict resolved
This commit is contained in:
commit
ec656dc1bb
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
15
.idea/git_toolbox_prj.xml
Normal file
15
.idea/git_toolbox_prj.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GitToolBoxProjectSettings">
|
||||
<option name="commitMessageIssueKeyValidationOverride">
|
||||
<BoolValueOverride>
|
||||
<option name="enabled" value="true" />
|
||||
</BoolValueOverride>
|
||||
</option>
|
||||
<option name="commitMessageValidationEnabledOverride">
|
||||
<BoolValueOverride>
|
||||
<option name="enabled" value="true" />
|
||||
</BoolValueOverride>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/tablesorter.iml" filepath="$PROJECT_DIR$/.idea/tablesorter.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
11
.idea/tablesorter.iml
Normal file
11
.idea/tablesorter.iml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -279,8 +279,7 @@ module.exports = function( grunt ) {
|
||||
options: {
|
||||
output: {
|
||||
comments: /^!/,
|
||||
beautify: false,
|
||||
ie8: true
|
||||
beautify: false
|
||||
},
|
||||
report: 'gzip'
|
||||
},
|
||||
|
1
dist/js/parsers/parser-date-extract.min.js
vendored
1
dist/js/parsers/parser-date-extract.min.js
vendored
@ -1,5 +1,4 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: Extract out date - updated 10/26/2014 (v2.18.0) */
|
||||
!function(e){"use strict";var r=/[A-Z]{3,10}\.?\s+\d{1,2},?\s+(?:\d{4})(?:\s+\d{1,2}:\d{2}(?::\d{2})?(?:\s+[AP]M)?)?/i,a=/(\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4}(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?)/i,n=/(\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4}(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?)/i,i=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,s=/(\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2}(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?)/i,d=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/;
|
||||
/*! extract US Long Date */e.tablesorter.addParser({id:"extractUSLongDate",is:function(){return!1},format:function(e){var t=e&&e.match(r);return t&&(t=new Date(t[0]))instanceof Date&&isFinite(t)?t.getTime():e},type:"numeric"}),
|
||||
|
1
dist/js/parsers/parser-date-range.min.js
vendored
1
dist/js/parsers/parser-date-range.min.js
vendored
@ -1,5 +1,4 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: date ranges -updated 11/22/2015 (v2.24.6) */
|
||||
!function(e){"use strict";var u,f=e.tablesorter,i=/(\d{1,2}[-\s]\d{1,2}[-\s]\d{4}(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?)/gi,d=/(\d{1,2}[-\s]\d{1,2}[-\s]\d{4}(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?)/gi,o=/(\d{1,2})[-\s](\d{1,2})[-\s](\d{4})/,c=/(\d{4}[-\s]\d{1,2}[-\s]\d{1,2}(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?)/gi,g=/(\d{4})[-\s](\d{1,2})[-\s](\d{1,2})/,l=/(\d{1,2}\s+\w+\s+\d{4}(\s+\d{1,2}:\d{2}(:\d{2})?(\s\w+)?)?)/g,p=/(\d{1,2})\s+(\w+)\s+(\d{4})/;
|
||||
/*! date-range MMDDYYYY */e.tablesorter.addParser({id:"date-range-mdy",is:function(){return!1},format:function(e){var t,r,a=[],n=e.replace(/\s+/g," ").replace(/[\/\-.,]/g,"-").match(i),s=n&&n.length;if(s){for(r=0;r<s;r++)t=new Date(n[r]),a.push(t instanceof Date&&isFinite(t)?t.getTime():n[r]);return a.sort().join(" - ")}return e},type:"text"}),
|
||||
|
1
dist/js/parsers/parser-date.min.js
vendored
1
dist/js/parsers/parser-date.min.js
vendored
@ -1,5 +1,4 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: dates - updated 5/24/2017 (v2.28.11) */
|
||||
!function(e){"use strict";
|
||||
/*! Sugar (https://sugarjs.com/docs/#/DateParsing) */e.tablesorter.addParser({id:"sugar",is:function(){return!1},format:function(e){var t=Date.create||Sugar.Date.create,t=t?t(e):e&&new Date(e);return t instanceof Date&&isFinite(t)?t.getTime():e},type:"numeric"}),
|
||||
|
1
dist/js/parsers/parser-duration.min.js
vendored
1
dist/js/parsers/parser-duration.min.js
vendored
@ -1,5 +1,4 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: duration & countdown - updated 2/7/2015 (v2.19.0) */
|
||||
!function(e){"use strict";e.tablesorter.addParser({id:"duration",is:function(){return!1},format:function(e,r){var t,n,r=r.config,s="",i="",o=r.durationLength||4,a=new Array(o+1).join("0"),u=(r.durationLabels||"(?:years|year|y),(?:days|day|d),(?:hours|hour|h),(?:minutes|minute|min|m),(?:seconds|second|sec|s)").split(/\s*,\s*/),d=u.length;if(!r.durationRegex){for(t=0;t<d;t++)s+="(?:(\\d+)\\s*"+u[t]+"\\s*)?";r.durationRegex=new RegExp(s,"i")}for(n=(r.usNumberFormat?e.replace(/,/g,""):e.replace(/(\d)(?:\.|\s*)(\d)/g,"$1$2")).match(r.durationRegex),t=1;t<d+1;t++)i+=(a+(n[t]||0)).slice(-o);return i},type:"text"}),
|
||||
/*! Countdown parser ( hh:mm:ss ) */
|
||||
|
1
dist/js/parsers/parser-file-type.min.js
vendored
1
dist/js/parsers/parser-file-type.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: filetype - updated 11/10/2015 (v2.24.4) */
|
||||
!function(n){"use strict";n.tablesorter.fileTypes={separator:"|",equivalents:{"3D Image":"3dm|3ds|dwg|max|obj",Audio:"aif|aac|ape|flac|la|m4a|mid|midi|mp2|mp3|ogg|ra|raw|rm|wav|wma",Compressed:"7z|bin|cab|cbr|gz|gzip|iso|lha|lz|rar|tar|tgz|zip|zipx|zoo",Database:"csv|dat|db|dbf|json|ldb|mdb|myd|pdb|sql|tsv|wdb|wmdb|xlr|xls|xlsx|xml",Development:"asm|c|class|cls|cpp|cc|cs|cxx|cbp|cs|dba|fla|h|java|lua|pl|py|pyc|pyo|sh|sln|r|rb|vb",Document:"doc|docx|odt|ott|pages|pdf|rtf|tex|wpd|wps|wrd|wri",Executable:"apk|app|com|exe|gadget|lnk|msi",Fonts:"eot|fnt|fon|otf|ttf|woff",Icons:"ani|cur|icns|ico",Images:"bmp|gif|jpg|jpeg|jpe|jp2|pic|png|psd|tga|tif|tiff|wmf|webp",Presentation:"pps|ppt",Published:"chp|epub|lit|pub|ppp|fm|mobi",Script:"as|bat|cgi|cmd|jar|js|lua|scpt|scptd|sh|vbs|vb|wsf",Styles:"css|less|sass",Text:"info|log|md|markdown|nfo|tex|text|txt",Vectors:"awg|ai|eps|cdr|ps|svg",Video:"asf|avi|flv|m4v|mkv|mov|mp4|mpe|mpeg|mpg|ogg|rm|rv|swf|vob|wmv",Web:"asp|aspx|cer|cfm|htm|html|php|url|xhtml"}},n.tablesorter.addParser({id:"filetype",is:function(){return!1},format:function(t,e){var s,a=e.config.widgetOptions,p=a.group_separator||"-",r=t.lastIndexOf("."),i=n.tablesorter.fileTypes.separator,e=n.tablesorter.fileTypes.matching,o=n.tablesorter.fileTypes.equivalents;if(e||(s=[],n.each(o,function(t,e){s.push(e)}),e=n.tablesorter.fileTypes.matching=i+s.join(i)+i),0<=r&&(s=i+t.substring(r+1,t.length)+i,0<=e.indexOf(s)))for(r in o)if(0<=(i+o[r]+i).indexOf(s))return r+("/"!==p.toString().charAt(0)?a.group_separator:"-")+t;return t},type:"text"}),n.tablesorter.addParser({id:"file-extension",is:function(){return!1},format:function(t){var e,s=t.split(".");return s.length?(e=s.pop(),s.unshift(e),s.join(".")):t},type:"text"})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/parsers/parser-huge-numbers.min.js
vendored
1
dist/js/parsers/parser-huge-numbers.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: hugeNumbers - updated 3/1/2016 (v2.25.5) */
|
||||
!function(){"use strict";jQuery.tablesorter.addParser({id:"hugeNumbers",is:function(){return!1},format:function(e){return e.replace(/\B(?=(\d{12})+(?!\d))/g,",")},type:"text"})}();return jQuery;}));
|
||||
|
1
dist/js/parsers/parser-image.min.js
vendored
1
dist/js/parsers/parser-image.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: image - new 7/17/2014 (v2.17.5) */
|
||||
!function(i){"use strict";i.tablesorter.addParser({id:"image",is:function(){return!1},format:function(t,r,e){return i(e).find("img").attr(r.config.imgAttr||"alt")||t},parsed:!0,type:"text"})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/parsers/parser-named-numbers.min.js
vendored
1
dist/js/parsers/parser-named-numbers.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Parser: namedNumbers - updated 10/26/2014 (v2.18.0) */
|
||||
!function(s){"use strict";var a,d,g={negative:["negative","minus"],numbers:{zero:0,one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12,thirteen:13,fourteen:14,fifteen:15,sixteen:16,seventeen:17,eighteen:18,nineteen:19,twenty:20,thirty:30,forty:40,fourty:40,fifty:50,sixty:60,seventy:70,eighty:80,ninety:90},hundred:"hundred",powers:{thousand:1e3,million:1e6,billion:1e9,trillion:1e12,quadrillion:1e15,quintillion:1e18,sextillion:1e21,septillion:1e24,octillion:1e27,nonillion:1e30,decillion:1e33,undecillion:1e36,duodecillion:1e39,tredecillion:1e42,quattuordecillion:1e45,quindecillion:1e48,sexdecillion:1e51,septendecillion:1e54,octodecillion:1e57,novemdecillion:1e60,vigintillion:1e63,unvigintillion:1e66,duovigintillion:1e69,trevigintillion:1e72,quattuorvigintillion:1e75,quinvigintillion:1e78,sexvigintillion:1e81,septenvigintillion:1e84,octovigintillion:1e87,novemvigintillion:1e90,trigintillion:1e93,untrigintillion:1e96,duotrigintillion:1e99,googl:1e100}},v=new RegExp("("+g.negative.join("|")+")");s.tablesorter.addParser({id:"namedNumbers",is:function(){return!1},format:function(e,i){d=a=0;for(var n,t,l,o=(e||"").split(/[\s-]+/),r=o.length,u=0;u<r;u++)n=o[u].toLowerCase(),t=i,l=void 0,l=n.replace(/[,."']/g,""),n=s.tablesorter.formatFloat(n||"",t),t=g.powers.hasOwnProperty(l)?g.powers[l]:null,null!==(n="number"==typeof n?n:g.numbers.hasOwnProperty(l)?g.numbers[l]:null)?d+=n:l===g.hundred?d*=100:null!==t&&(a+=d*t,d=0);return(a=(a+d)*(e.match(v)?-1:1))||g.numbers.hasOwnProperty(e)?a:s.tablesorter.formatFloat(e||"",i)},type:"numeric"})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-alignChar.min.js
vendored
1
dist/js/widgets/widget-alignChar.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Widget: alignChar - updated 2/7/2015 (v2.19.0) */
|
||||
!function(_){"use strict";var r=_.tablesorter;r.alignChar={init:function(a,i,t){i.$headers.filter("["+t.alignChar_charAttrib+"]").each(function(){var n=_(this),n={column:this.column,align:n.attr(t.alignChar_charAttrib),alignIndex:parseInt(n.attr(t.alignChar_indexAttrib)||0,10),adjust:parseFloat(n.attr(t.alignChar_adjustAttrib))||0};n.regex=new RegExp("\\"+n.align,"g"),void 0!==n.align&&(t.alignChar_savedVars[this.column]=n,r.alignChar.setup(a,i,t,n))})},setup:function(n,a,i,t){if(!_.isEmptyObject(a.cache)){for(var r,e,l,h,g,o,s,d,c,u,f,m,p,C=[],w=[],b=0;b<a.$tbodies.length;b++)for(c=(o=a.cache[b]).normalized.length,r=0;r<c;r++){if(0<(d=((s=(p=o.row?o.row[r]:o.normalized[r][a.columns].$row).find("td").eq(t.column).text().replace(/[ ]/g," ")).match(t.regex)||[]).length)&&0<t.alignIndex)for(l=Math.min(t.alignIndex,d),h=g=e=0;e++<l;)g=(h=s.indexOf(t.align,h+1))<0?g:h;else g=s.indexOf(t.align);0<=g?(C.push(s.substring(0,g)||""),w.push(s.substring(g,s.length)||"")):(C.push(!(1<=d&&t.alignIndex>=d)&&s||""),w.push(1<=d&&t.alignIndex>=d&&s||""))}for(u=_.extend([],C).sort(function(n,a){return a.length-n.length})[0],f=_.extend([],w).sort(function(n,a){return a.length-n.length})[0],t.width=t.width||Math.floor(u.length/(u.length+f.length)*100)+t.adjust,u="min-width:"+t.width+"%",f="min-width:"+(100-t.width)+"%",b=0;b<a.$tbodies.length;b++)for(c=(o=a.cache[b]).normalized.length,r=0;r<c;r++)m=_(i.alignChar_wrap).length?_(i.alignChar_wrap).html(t.align)[0].outerHTML:t.align,p=o.row?o.row[r]:o.normalized[r][a.columns].$row,h=w[r].slice(t.align.length),p.find("td").eq(t.column).html('<span class="ts-align-wrap"><span class="ts-align-left" style="'+u+'">'+C[r]+'</span><span class="ts-align-right" style="'+f+'">'+(h.length?m+h:"")+"</span></span>");i.alignChar_initialized=!0}},remove:function(n,a,i){if(!_.isEmptyObject(a.cache))for(var t,r,e,l,h=0;h<a.$tbodies.length;h++)for(r=(e=a.cache[h]).normalized.length,t=0;t<r;t++)(l=(e.row?e.row[t]:e.normalized[t][a.columns].$row).find("td").eq(i)).html(l.text().replace(/\s/g," "))}},r.addWidget({id:"alignChar",priority:100,options:{alignChar_wrap:"",alignChar_charAttrib:"data-align-char",alignChar_indexAttrib:"data-align-index",alignChar_adjustAttrib:"data-align-adjust"},init:function(n,a,i,t){t.alignChar_initialized=!1,t.alignChar_savedVars=[],r.alignChar.init(n,i,t),i.$table.on("pagerEnd refreshAlign",function(){i.$headers.filter("["+t.alignChar_charAttrib+"]").each(function(){r.alignChar.remove(n,i,this.column)}),r.alignChar.init(n,i,t)})},format:function(n,a,i){i.alignChar_initialized||a.$table.triggerHandler("refreshAlign")},remove:function(n,a,i,t){t||(a.$headers.filter("["+i.alignChar_charAttrib+"]").each(function(){r.alignChar.remove(n,a,this.column)}),i.alignChar_initialized=!1)}})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-currentSort.min.js
vendored
1
dist/js/widgets/widget-currentSort.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Widget: currentSort - 7/31/2016 (v2.27.0) */
|
||||
!function(){"use strict";var i=jQuery.tablesorter;i.currentSortLanguage={0:"asc",1:"desc",2:"unsorted"},i.currentSort={init:function(t){t.$table.on("sortEnd.tscurrentSort",function(){i.currentSort.update(this.config)})},update:function(t){if(t){for(var r=t.widgetOptions,n=i.currentSortLanguage,o=n[2],e=Array.apply(null,Array(t.columns)).map(String.prototype.valueOf,o),c=t.sortList,u=c.length,a=0;a<u;a++)e[c[a][0]]=n[c[a][1]];t.currentSort=e,"function"==typeof r.currentSort_callback&&r.currentSort_callback(t,e)}}},i.addWidget({id:"currentSort",options:{currentSort_callback:null},init:function(t,r,n,o){i.currentSort.init(n,o)},remove:function(t,r){r.$table.off("sortEnd.tscurrentSort")}})}();return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-formatter.min.js
vendored
1
dist/js/widgets/widget-formatter.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Widget: formatter - 2/9/2015 (v2.19.1) */
|
||||
!function(d){"use strict";var u=d.tablesorter;u.formatter={init:function(t){var e=t.widgetOptions.formatter_event+" pagerComplete updateComplete ".split(" ").join(".tsformatter ");t.$table.off(e.replace(/\s+/g," ")).on(e,function(){u.formatter.setup(t)}),u.formatter.setup(t)},setup:function(t){if(!d.isEmptyObject(t.cache)){for(var e,o,r,n,i,a,l=t.widgetOptions,c={config:t,wo:l},f=[],s=[],m=0;m<t.columns;m++)s[m]=t.$headerIndexed[m],f[m]=u.getColumnData(t.table,l.formatter_column,m)||!1;for(o=0;o<t.$tbodies.length;o++){for(e=u.processTbody(t.table,t.$tbodies.eq(o),!0),a=(n=t.cache[o]).normalized.length,r=0;r<a;r++)for(c.$row=n.normalized[r][t.columns].$row,c.$cells=c.$row.children("th, td"),m=0;m<t.columns;m++)f[m]&&(c.columnIndex=m,c.$header=s[m],c.$cell=c.$cells.eq(m),i=c.$cell[0],c.text=i.getAttribute(t.textAttribute)||i.textContent||c.$cell.text(),i.innerHTML=f[m](c.text,c));u.processTbody(t.table,e,!1)}}}},u.addWidget({id:"formatter",priority:100,options:{formatter_column:{},formatter_event:"applyFormatter"},init:function(t){u.formatter.init(t.config)}})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-headerTitles.min.js
vendored
1
dist/js/widgets/widget-headerTitles.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Widget: headerTitles - updated 11/10/2015 (v2.24.4) */
|
||||
!function(d){"use strict";var n=d.tablesorter;n.addWidget({id:"headerTitles",options:{headerTitle_useAria:!1,headerTitle_tooltip:"",headerTitle_cur_text:[" sort: A - Z"," sort: Z - A","ly unsorted"],headerTitle_cur_numeric:[" sort: 0 - 9"," sort: 9 - 0","ly unsorted"],headerTitle_nxt_text:[" sort: A - Z"," sort: Z - A","remove sort"],headerTitle_nxt_numeric:[" sort: 0 - 9"," sort: 9 - 0","remove sort"],headerTitle_output_sorted:"current{current}; activate to {next}",headerTitle_output_unsorted:"current{current}; activate to {next} ",headerTitle_output_nosort:"No sort available",headerTitle_type:[],headerTitle_callback:null},init:function(e,t,r,a){r.$table.on("refreshHeaderTitle",function(){t.format(e,r,a)}),Array.isArray(a.headerTitle_tooltip)?r.$headers.each(function(){d(this).addClass(a.headerTitle_tooltip[this.column]||"")}):""!==a.headerTitle_tooltip&&r.$headers.addClass(a.headerTitle_tooltip)},format:function(e,s,i){var l;s.$headers.each(function(){var t=d(this),e=parseInt(t.attr("data-column"),10),r=i.headerTitle_type[e]||s.parsers[e].type||"text",a=t.hasClass(n.css.sortAsc)?0:t.hasClass(n.css.sortDesc)?1:2,o=s.sortVars[e].order[(s.sortVars[e].count+1)%(s.sortReset?3:2)];l=i.headerTitle_useAria?t.attr("aria-label")||i.headerTitle_output_nosort||"":(l=(i.headerTitle_prefix||"")+(t.hasClass("sorter-false")?i.headerTitle_output_nosort:0<=n.isValueInArray(e,s.sortList)?i.headerTitle_output_sorted:i.headerTitle_output_unsorted)).replace(/\{(current|next|name)\}/gi,function(e){return{"{name}":t.text(),"{current}":i["headerTitle_cur_"+r][a]||"","{next}":i["headerTitle_nxt_"+r][o]||""}[e.toLowerCase()]}),t.attr("title","function"==typeof i.headerTitle_callback?i.headerTitle_callback(t,l):l)})},remove:function(e,t,r){t.$headers.attr("title",""),t.$table.off("refreshHeaderTitle"),Array.isArray(r.headerTitle_tooltip)?t.$headers.each(function(){d(this).removeClass(r.headerTitle_tooltip[this.column]||"")}):""!==r.headerTitle_tooltip&&t.$headers.removeClass(r.headerTitle_tooltip)}})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-repeatheaders.min.js
vendored
1
dist/js/widgets/widget-repeatheaders.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! Widget: repeatHeaders - updated 9/23/2016 (v2.27.7) */
|
||||
!function(){"use strict";jQuery.tablesorter.addWidget({id:"repeatHeaders",priority:10,options:{rowsToSkip:4},format:function(e,r,t){var a,o,d,i,s="";if(!t.repeatHeaders){for(s='<tr class="repeated-header '+r.selectorRemove.slice(1)+'">',a=0;a<r.columns;a++)s+="<th>"+r.$headers.eq(a).html().trim()+"</th>";t.repeatHeaders=s+"</tr>"}for(i=t&&t.rowsToSkip||4,r.$table.find("tr.repeated-header").remove(),d=(o=r.$tbodies.find("tr")).length,a=i;a<d;a+=i)o.eq(a).before(t.repeatHeaders)},remove:function(e,r,t){t.repeatHeaders="",r.$table.find("tr.repeated-header").remove()}})}();return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-staticRow.min.js
vendored
1
dist/js/widgets/widget-staticRow.min.js
vendored
@ -1,4 +1,3 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! widget: staticRow - updated 10/31/2015 (v2.24.0) */
|
||||
!function(f){"use strict";function s(t){var e,a,i,s,o;(t=t.config)&&(a=t.widgetOptions,t.$tbodies.each(function(){e=f(this).children(),o=e.length,e.filter(a.staticRow_class).each(function(){e=f(this),s=void 0!==(s=e.data(a.staticRow_index))?(i=parseFloat(s),/%/.test(s)?Math.round(i/100*o):i):e.index(),e.data(a.staticRow_data,s)})}))}var o=f.tablesorter;o.addWidget({id:"staticRow",options:{staticRow_class:".static",staticRow_data:"static-index",staticRow_index:"row-index",staticRow_event:"staticRowsRefresh"},init:function(t,e,a,i){s(t),a.$table.off(("updateComplete.tsstaticrows "+i.staticRow_event).replace(/\s+/g," ")).on("updateComplete.tsstaticrows "+i.staticRow_event,function(){s(t),o.applyWidget(t)})},format:function(t,e,a){var i,s,o,c,n,r,d,l;e.$tbodies.each(function(){for(n=f.tablesorter.processTbody(t,f(this),!0),r=!0,o=0,d=n.children(a.staticRow_class),c=n.children("tr").length-1,l=d.length;r&&o<l;)r=!1,d.each(function(){i=f(this).data(a.staticRow_data),(i=c<=i?c:i<0?0:i)!==f(this).index()&&(r=!0,s=f(this).detach(),c<=i?s.appendTo(n):0===i?s.prependTo(n):s.insertBefore(n.find("tr:eq("+i+")")))}),o++;f.tablesorter.processTbody(t,n,!1)}),e.$table.triggerHandler("staticRowsComplete",t)},remove:function(t,e,a){e.$table.off(("updateComplete.tsstaticrows "+a.staticRow_event).replace(/\s+/g," "))}})}(jQuery);return jQuery;}));
|
||||
|
1
dist/js/widgets/widget-toggle.min.js
vendored
1
dist/js/widgets/widget-toggle.min.js
vendored
@ -1,5 +1,4 @@
|
||||
(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){
|
||||
|
||||
/*! tablesorter enable/disable sort & filter (BETA) - 11/10/2015 (v2.24.4)
|
||||
* Requires tablesorter v2.24.4+ & jQuery 1.7+
|
||||
* by Rob Garrison
|
||||
|
Loading…
Reference in New Issue
Block a user