mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
6f2b2a7ee9
16
Gruntfile.js
16
Gruntfile.js
@ -445,14 +445,14 @@ module.exports = function( grunt ) {
|
|||||||
}
|
}
|
||||||
// check internal version number
|
// check internal version number
|
||||||
project = grunt.file.read('js/jquery.tablesorter.js');
|
project = grunt.file.read('js/jquery.tablesorter.js');
|
||||||
if (
|
if (
|
||||||
new RegExp(escapeRegExp('/*! TableSorter (FORK) v' + pkg.version)).test(project) &&
|
new RegExp(escapeRegExp('/*! TableSorter (FORK) v' + pkg.version)).test(project) &&
|
||||||
new RegExp(escapeRegExp("version : '" + pkg.version)).test(project)
|
new RegExp(escapeRegExp("version : '" + pkg.version)).test(project)
|
||||||
) {
|
) {
|
||||||
console.info('versions all match!');
|
console.info('versions all match!');
|
||||||
} else {
|
} else {
|
||||||
grunt.log.writeln('\n**** version mismatch! ****'['red'].bold);
|
grunt.log.writeln('\n**** version mismatch! ****'['red'].bold);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
46
README.md
46
README.md
@ -104,6 +104,47 @@ If you would like to contribute, please...
|
|||||||
|
|
||||||
View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/Changes).
|
View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/Changes).
|
||||||
|
|
||||||
|
#### <a name="v2.28.6">Version 2.28.6</a> (4/2/2017)
|
||||||
|
|
||||||
|
* Core:
|
||||||
|
* Prevent overwritting default `widgetOptions`. Fixes [issue #1356](https://github.com/Mottie/tablesorter/issues/1356).
|
||||||
|
* Fix method of saving default widgetOptions. See [issue #1356](https://github.com/Mottie/tablesorter/issues/1356).
|
||||||
|
* Update column count after reset.
|
||||||
|
* Add fix it (in Abelt) note for [issue #1362](https://github.com/Mottie/tablesorter/issues/1362).
|
||||||
|
* Update widgets after `sortReset`. Fixes [issue #1361](https://github.com/Mottie/tablesorter/issues/1361).
|
||||||
|
* The `applyWidget` callback now occurs after "tablesorter-ready" event
|
||||||
|
* Docs:
|
||||||
|
* Update jQuery to v3.2.0.
|
||||||
|
* Fix "update" labels from previous version.
|
||||||
|
* Add note about Excel & `output_encoding`. See [issue #1353](https://github.com/Mottie/tablesorter/issues/1353).
|
||||||
|
* Clarify parser & sorter class name differences.
|
||||||
|
* Add note about event binding after build widget completes. See [issue #1370](https://github.com/Mottie/tablesorter/issues/1370).
|
||||||
|
* Fixed linting issues.
|
||||||
|
* Add some internal links.
|
||||||
|
* Build:
|
||||||
|
* Stop build widget option warnings.
|
||||||
|
* Filter:
|
||||||
|
* Compare last search array (instead of a combined string). Fixes [issue #1363](https://github.com/Mottie/tablesorter/issues/1363).
|
||||||
|
* Output:
|
||||||
|
* Fixed CSV output when colspan >3. See [PR #1373](https://github.com/Mottie/tablesorter/pull/1373); thanks [@ruchir19](https://github.com/ruchir19)!
|
||||||
|
* Pager:
|
||||||
|
* Fix "all" option to not set when the option doesn't exist. See [PR #1364](https://github.com/Mottie/tablesorter/pull/1364); thanks [@simenflatby](https://github.com/simenflatby)!
|
||||||
|
* Stop using combined filter values. See [issue #1363](https://github.com/Mottie/tablesorter/issues/1363).
|
||||||
|
* Use "all" only when the option exists. Fixes [#1364](https://github.com/Mottie/tablesorter/pull/1364) & [#1366](https://github.com/Mottie/tablesorter/issues/1366).
|
||||||
|
* Sort2Hash:
|
||||||
|
* Stop option warnings. Fixes [issue #1369](https://github.com/Mottie/tablesorter/issues/1369).
|
||||||
|
* Parsers:
|
||||||
|
* Add leading zero parser & [demo](https://mottie.github.io/tablesorter/docs/example-parsers-leading-zeros.html).
|
||||||
|
* Theme:
|
||||||
|
* Add CSS highlight file; copied from [the demo](https://mottie.github.io/tablesorter/docs/example-css-highlighting.html).
|
||||||
|
* Meta:
|
||||||
|
* Add `composer.json` file. Fixes [issue #1355](https://github.com/Mottie/tablesorter/issues/1355).
|
||||||
|
* Readme: Move questions section closer to the top.
|
||||||
|
* Update dependencies.
|
||||||
|
* Fix indentation & remove extra spaces.
|
||||||
|
* Remove cdnjs auto-update config - see [CDNJS #9080](https://github.com/cdnjs/cdnjs/pull/9080).
|
||||||
|
* Update SPDX license.
|
||||||
|
|
||||||
#### <a name="v2.28.5">Version 2.28.5</a> (1/28/2017)
|
#### <a name="v2.28.5">Version 2.28.5</a> (1/28/2017)
|
||||||
|
|
||||||
* Docs: Fix "update" labels.
|
* Docs: Fix "update" labels.
|
||||||
@ -154,8 +195,3 @@ View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/C
|
|||||||
* Duplicated `theme.bootstrap_3.css` from `theme.bootstrap.css` (maintaining this non-versioned file name until Bootstrap v4-stable has been available for about 6 months).
|
* Duplicated `theme.bootstrap_3.css` from `theme.bootstrap.css` (maintaining this non-versioned file name until Bootstrap v4-stable has been available for about 6 months).
|
||||||
* Readme:
|
* Readme:
|
||||||
* Update log for v2.28.3.
|
* Update log for v2.28.3.
|
||||||
|
|
||||||
#### <a name="v2.28.3">Version 2.28.3</a> (12/16/2016)
|
|
||||||
|
|
||||||
* Core: Fix internal version numbering.
|
|
||||||
* Grunt: add version check.
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* tablesorter (FORK) pager plugin
|
* tablesorter (FORK) pager plugin
|
||||||
* updated 1/6/2017 (v2.28.4)
|
* updated 4/2/2017 (v2.28.6)
|
||||||
*/
|
*/
|
||||||
/*jshint browser:true, jquery:true, unused:false */
|
/*jshint browser:true, jquery:true, unused:false */
|
||||||
;(function($) {
|
;(function($) {
|
||||||
@ -393,10 +393,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
hideRowsSetup = function(table, p){
|
hideRowsSetup = function(table, p){
|
||||||
var $el = p.$container.find(p.cssPageSize);
|
p.size = parsePageSize( p, p.$container.find(p.cssPageSize).val(), 'get' );
|
||||||
p.size = parsePageSize( p, $el.val(), 'get' );
|
setPageSize( table, p.size, p );
|
||||||
$el.val( p.size );
|
|
||||||
$.data(table, 'pagerLastSize', p.size);
|
|
||||||
pagerArrows( table, p );
|
pagerArrows( table, p );
|
||||||
if ( !p.removeRows ) {
|
if ( !p.removeRows ) {
|
||||||
hideRows(table, p);
|
hideRows(table, p);
|
||||||
@ -689,7 +687,7 @@
|
|||||||
$.data(table, 'pagerLastPage', p.page);
|
$.data(table, 'pagerLastPage', p.page);
|
||||||
$.data(table, 'pagerLastSize', p.size);
|
$.data(table, 'pagerLastSize', p.size);
|
||||||
p.page = 0;
|
p.page = 0;
|
||||||
p.size = 'all';
|
p.size = p.totalPages;
|
||||||
p.totalPages = 1;
|
p.totalPages = 1;
|
||||||
$(table)
|
$(table)
|
||||||
.addClass('pagerDisabled')
|
.addClass('pagerDisabled')
|
||||||
@ -799,15 +797,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTotalPages = function( table, p ) {
|
getTotalPages = function( table, p ) {
|
||||||
return ts.hasWidget( table, 'filter' ) ? Math.min( p.totalPages, p.filteredPages ) : p.totalPages;
|
return ts.hasWidget( table, 'filter' ) ?
|
||||||
},
|
Math.min( p.totalPages, p.filteredPages ) :
|
||||||
|
p.totalPages;
|
||||||
// set to either set or get value
|
|
||||||
parsePageSize = function( p, size, mode ) {
|
|
||||||
var s = parseInt( size, 10 ) || p.size || p.settings.size || 10;
|
|
||||||
return p.initialized && (/all/i.test( size ) || s === p.totalRows) ?
|
|
||||||
// "get" to get `p.size` or "set" to set `pageSize.val()`
|
|
||||||
'all' : ( mode === 'get' ? s : p.size );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
parsePageNumber = function( table, p ) {
|
parsePageNumber = function( table, p ) {
|
||||||
@ -818,14 +810,26 @@
|
|||||||
return p.page;
|
return p.page;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// set to either set or get value
|
||||||
|
parsePageSize = function( p, size, mode ) {
|
||||||
|
var s = parseInt( size, 10 ) || p.size || p.settings.size || 10;
|
||||||
|
if (p.initialized && (/all/i.test( s + ' ' + size ) || s === p.totalRows)) {
|
||||||
|
// Fixing #1364 & #1366
|
||||||
|
return p.$container.find(p.cssPageSize + ' option[value="all"]').length ?
|
||||||
|
'all' : p.totalRows;
|
||||||
|
}
|
||||||
|
// "get" to get `p.size` or "set" to set `pageSize.val()`
|
||||||
|
return mode === 'get' ? s : p.size;
|
||||||
|
},
|
||||||
|
|
||||||
setPageSize = function(table, size, p) {
|
setPageSize = function(table, size, p) {
|
||||||
|
// "all" size is only returned if an "all" option exists - fixes #1366
|
||||||
p.size = parsePageSize( p, size, 'get' );
|
p.size = parsePageSize( p, size, 'get' );
|
||||||
p.$container.find(p.cssPageSize).val( parsePageSize( p, p.size, 'set' ) );
|
p.$container.find( p.cssPageSize ).val( p.size );
|
||||||
$.data(table, 'pagerLastPage', parsePageNumber( table, p ) );
|
$.data(table, 'pagerLastPage', parsePageNumber( table, p ) );
|
||||||
$.data(table, 'pagerLastSize', p.size);
|
$.data(table, 'pagerLastSize', p.size);
|
||||||
p.totalPages = p.size === 'all' ? 1 : Math.ceil( p.totalRows / p.size );
|
p.totalPages = p.size === 'all' ? 1 : Math.ceil( p.totalRows / p.size );
|
||||||
p.filteredPages = p.size === 'all' ? 1 : Math.ceil( p.filteredRows / p.size );
|
p.filteredPages = p.size === 'all' ? 1 : Math.ceil( p.filteredRows / p.size );
|
||||||
moveToPage(table, p);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
moveToFirstPage = function(table, p) {
|
moveToFirstPage = function(table, p) {
|
||||||
@ -906,8 +910,8 @@
|
|||||||
$el = p.$container.find(p.cssPageSize);
|
$el = p.$container.find(p.cssPageSize);
|
||||||
size = $el.find('option[selected]').val();
|
size = $el.find('option[selected]').val();
|
||||||
p.size = $.data(table, 'pagerLastSize') || parsePageSize( p, size, 'get' );
|
p.size = $.data(table, 'pagerLastSize') || parsePageSize( p, size, 'get' );
|
||||||
$el.val( p.size ); // set page size
|
|
||||||
p.totalPages = p.size === 'all' ? 1 : Math.ceil( getTotalPages( table, p ) / p.size );
|
p.totalPages = p.size === 'all' ? 1 : Math.ceil( getTotalPages( table, p ) / p.size );
|
||||||
|
setPageSize(table, p.size, p); // set page size
|
||||||
// if table id exists, include page display with aria info
|
// if table id exists, include page display with aria info
|
||||||
if ( table.id && !c.$table.attr( 'aria-describedby' ) ) {
|
if ( table.id && !c.$table.attr( 'aria-describedby' ) ) {
|
||||||
$el = p.$container.find( p.cssPageDisplay );
|
$el = p.$container.find( p.cssPageDisplay );
|
||||||
@ -924,6 +928,7 @@
|
|||||||
// tablesorter core update table
|
// tablesorter core update table
|
||||||
ts.update( c );
|
ts.update( c );
|
||||||
setPageSize(table, p.size, p);
|
setPageSize(table, p.size, p);
|
||||||
|
moveToPage(table, p);
|
||||||
hideRowsSetup(table, p);
|
hideRowsSetup(table, p);
|
||||||
if (c.debug) {
|
if (c.debug) {
|
||||||
console.log('Pager: Enabled');
|
console.log('Pager: Enabled');
|
||||||
@ -952,8 +957,7 @@
|
|||||||
t = ts.storage(table, p.storageKey) || {}; // fixes #387
|
t = ts.storage(table, p.storageKey) || {}; // fixes #387
|
||||||
p.page = isNaN(t.page) ? p.page : t.page;
|
p.page = isNaN(t.page) ? p.page : t.page;
|
||||||
p.size = t.size === 'all' ? t.size : ( isNaN( t.size ) ? p.size : t.size ) || p.setSize || 10;
|
p.size = t.size === 'all' ? t.size : ( isNaN( t.size ) ? p.size : t.size ) || p.setSize || 10;
|
||||||
$.data(table, 'pagerLastSize', p.size);
|
setPageSize(table, p.size, p);
|
||||||
pager.find(p.cssPageSize).val(p.size);
|
|
||||||
}
|
}
|
||||||
// skipped rows
|
// skipped rows
|
||||||
p.regexRows = new RegExp('(' + (wo.filter_filteredRow || 'filtered') + '|' + c.selectorRemove.slice(1) + '|' + c.cssChildRow + ')');
|
p.regexRows = new RegExp('(' + (wo.filter_filteredRow || 'filtered') + '|' + c.selectorRemove.slice(1) + '|' + c.cssChildRow + ')');
|
||||||
@ -965,7 +969,10 @@
|
|||||||
.bind('filterInit filterStart '.split(' ').join(namespace + ' '), function(e, filters) {
|
.bind('filterInit filterStart '.split(' ').join(namespace + ' '), function(e, filters) {
|
||||||
p.currentFilters = $.isArray(filters) ? filters : c.$table.data('lastSearch');
|
p.currentFilters = $.isArray(filters) ? filters : c.$table.data('lastSearch');
|
||||||
// don't change page if filters are the same (pager updating, etc)
|
// don't change page if filters are the same (pager updating, etc)
|
||||||
if (e.type === 'filterStart' && p.pageReset !== false && (c.lastCombinedFilter || '') !== (p.currentFilters || []).join('')) {
|
if (
|
||||||
|
e.type === 'filterStart' &&
|
||||||
|
p.pageReset !== false &&
|
||||||
|
(c.lastSearch || []).join(',') !== (p.currentFilters || []).join(',')) {
|
||||||
p.page = p.pageReset; // fixes #456 & #565
|
p.page = p.pageReset; // fixes #456 & #565
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1020,6 +1027,7 @@
|
|||||||
.bind('pageSize refreshComplete '.split(' ').join(namespace + ' '), function(e, size){
|
.bind('pageSize refreshComplete '.split(' ').join(namespace + ' '), function(e, size){
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setPageSize(table, parsePageSize( p, size, 'get' ), p);
|
setPageSize(table, parsePageSize( p, size, 'get' ), p);
|
||||||
|
moveToPage(table, p);
|
||||||
hideRows(table, p);
|
hideRows(table, p);
|
||||||
updatePageDisplay(table, p, false);
|
updatePageDisplay(table, p, false);
|
||||||
})
|
})
|
||||||
@ -1087,8 +1095,8 @@
|
|||||||
if ( !$(this).hasClass(p.cssDisabled) ) {
|
if ( !$(this).hasClass(p.cssDisabled) ) {
|
||||||
var size = $(this).val();
|
var size = $(this).val();
|
||||||
// in case there are more than one pager
|
// in case there are more than one pager
|
||||||
p.$container.find(p.cssGoto).val( size );
|
|
||||||
setPageSize(table, size, p);
|
setPageSize(table, size, p);
|
||||||
|
moveToPage(table, p);
|
||||||
changeHeight(table, p);
|
changeHeight(table, p);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -1122,6 +1130,8 @@
|
|||||||
if (!p.ajax && !p.initialized) {
|
if (!p.ajax && !p.initialized) {
|
||||||
p.initializing = false;
|
p.initializing = false;
|
||||||
p.initialized = true;
|
p.initialized = true;
|
||||||
|
// update page size on init
|
||||||
|
setPageSize(table, p.size, p);
|
||||||
moveToPage(table, p);
|
moveToPage(table, p);
|
||||||
if (c.debug) {
|
if (c.debug) {
|
||||||
console.log('Pager: Triggering pagerInitialized');
|
console.log('Pager: Triggering pagerInitialized');
|
||||||
|
42
composer.json
Normal file
42
composer.json
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"name": "mottie/tablesorter",
|
||||||
|
"description": "tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.",
|
||||||
|
"homepage": "https://mottie.github.io/tablesorter/",
|
||||||
|
"type": "component",
|
||||||
|
"license": "(MIT OR GPL-2.0+)",
|
||||||
|
"require": {
|
||||||
|
"jquery": "^1.2.6"
|
||||||
|
},
|
||||||
|
"authors": [{
|
||||||
|
"name": "Christian Bach",
|
||||||
|
"url": "http://tablesorter.com/"
|
||||||
|
},{
|
||||||
|
"name": "Rob Garrison",
|
||||||
|
"url": "https://github.com/Mottie",
|
||||||
|
"email": "wowmotty@gmail.com"
|
||||||
|
}],
|
||||||
|
"keywords": [
|
||||||
|
"table",
|
||||||
|
"sort",
|
||||||
|
"sorting",
|
||||||
|
"alphanumeric",
|
||||||
|
"natural",
|
||||||
|
"jquery-plugin"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"email": "wowmotty@gmail.com",
|
||||||
|
"issues": "https://github.com/Mottie/tablesorter/issues",
|
||||||
|
"wiki": "https://github.com/Mottie/tablesorter/wiki",
|
||||||
|
"irc": "irc://irc.freenode.org/tablesorter",
|
||||||
|
"source": "https://github.com/Mottie/tablesorter",
|
||||||
|
"docs": "https://mottie.github.io/tablesorter/docs/index.html"
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"component": {
|
||||||
|
"scripts": [
|
||||||
|
"dist/js/jquery.tablesorter.combined.js"
|
||||||
|
],
|
||||||
|
"files": "dist/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
104
css/highlights.css
Normal file
104
css/highlights.css
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
/* CSS Column & Row Hightlights - matches the blue theme
|
||||||
|
* See https://mottie.github.io/tablesorter/docs/example-css-highlighting.html
|
||||||
|
*/
|
||||||
|
table.hover-highlight td:before,
|
||||||
|
table.focus-highlight td:before {
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ODD ZEBRA STRIPE color (needs zebra widget) */
|
||||||
|
.hover-highlight .odd td:before, .hover-highlight .odd th:before,
|
||||||
|
.focus-highlight .odd td:before, .focus-highlight .odd th:before {
|
||||||
|
background: #ebf2fa;
|
||||||
|
}
|
||||||
|
/* EVEN ZEBRA STRIPE color (needs zebra widget) */
|
||||||
|
.hover-highlight .even td:before, .hover-highlight .even th:before,
|
||||||
|
.focus-highlight .even td:before, .focus-highlight .even th:before {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FOCUS ROW highlight color (touch devices) */
|
||||||
|
.focus-highlight td:focus::before, .focus-highlight th:focus::before {
|
||||||
|
background-color: lightblue;
|
||||||
|
}
|
||||||
|
/* FOCUS COLUMN highlight color (touch devices) */
|
||||||
|
.focus-highlight td:focus::after, .focus-highlight th:focus::after {
|
||||||
|
background-color: lightblue;
|
||||||
|
}
|
||||||
|
/* FOCUS CELL highlight color */
|
||||||
|
.focus-highlight th:focus, .focus-highlight td:focus,
|
||||||
|
.focus-highlight .even th:focus, .focus-highlight .even td:focus,
|
||||||
|
.focus-highlight .odd th:focus, .focus-highlight .odd td:focus {
|
||||||
|
background-color: #d9d9d9;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* HOVER ROW highlight colors */
|
||||||
|
table.hover-highlight tbody > tr:hover > td, /* override tablesorter theme row hover */
|
||||||
|
table.hover-highlight tbody > tr.odd:hover > td,
|
||||||
|
table.hover-highlight tbody > tr.even:hover > td {
|
||||||
|
background-color: #ffa;
|
||||||
|
}
|
||||||
|
/* HOVER COLUMN highlight colors */
|
||||||
|
.hover-highlight tbody tr td:hover::after,
|
||||||
|
.hover-highlight tbody tr th:hover::after {
|
||||||
|
background-color: #ffa;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ************************************************* */
|
||||||
|
/* **** No need to modify the definitions below **** */
|
||||||
|
/* ************************************************* */
|
||||||
|
.focus-highlight td:focus::after, .focus-highlight th:focus::after,
|
||||||
|
.hover-highlight td:hover::after, .hover-highlight th:hover::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 999em;
|
||||||
|
left: 0;
|
||||||
|
top: -555em;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
.focus-highlight td:focus::before, .focus-highlight th:focus::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 999em;
|
||||||
|
height: 100%;
|
||||||
|
left: -555em;
|
||||||
|
top: 0;
|
||||||
|
z-index: -2;
|
||||||
|
}
|
||||||
|
/* required styles */
|
||||||
|
.hover-highlight,
|
||||||
|
.focus-highlight {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.hover-highlight td, .hover-highlight th,
|
||||||
|
.focus-highlight td, .focus-highlight th {
|
||||||
|
position: relative;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
/* override the tablesorter theme styling */
|
||||||
|
table.hover-highlight, table.hover-highlight tbody > tr > td,
|
||||||
|
table.focus-highlight, table.focus-highlight tbody > tr > td,
|
||||||
|
/* override zebra styling */
|
||||||
|
table.hover-highlight tbody tr.even > th,
|
||||||
|
table.hover-highlight tbody tr.even > td,
|
||||||
|
table.hover-highlight tbody tr.odd > th,
|
||||||
|
table.hover-highlight tbody tr.odd > td,
|
||||||
|
table.focus-highlight tbody tr.even > th,
|
||||||
|
table.focus-highlight tbody tr.even > td,
|
||||||
|
table.focus-highlight tbody tr.odd > th,
|
||||||
|
table.focus-highlight tbody tr.odd > td {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
/* table background positioned under the highlight */
|
||||||
|
table.hover-highlight td:before,
|
||||||
|
table.focus-highlight td:before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: -3;
|
||||||
|
}
|
2
dist/css/dragtable.mod.min.css
vendored
2
dist/css/dragtable.mod.min.css
vendored
@ -1 +1 @@
|
|||||||
.dragtable-sortable{list-style-type:none;margin:0;padding:0;-moz-user-select:none;z-index:10}.dragtable-sortable li{margin:0;padding:0;float:left;font-size:1em}.dragtable-sortable table{margin-top:0}.dragtable-sortable td,.dragtable-sortable th{border-left:0}.dragtable-sortable li:first-child td,.dragtable-sortable li:first-child th{border-left:1px solid #CCC}.ui-sortable-helper{opacity:.7;filter:alpha(opacity=70)}.ui-sortable-placeholder{-moz-box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;-webkit-box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;border-bottom:1px solid rgba(0,0,0,.2);border-top:1px solid rgba(0,0,0,.2);visibility:visible!important;background:#EFEFEF}.ui-sortable-placeholder *{opacity:0;visibility:hidden}.table-handle,.table-handle-disabled{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyIiBoZWlnaHQ9IjEzIj48cmVjdCBzdHlsZT0iZmlsbDojMzMzO2ZpbGwtb3BhY2l0eTouODsiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHg9IjEiIHk9IjIiLz4JPHJlY3Qgc3R5bGU9ImZpbGw6IzMzMztmaWxsLW9wYWNpdHk6Ljg7IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4PSIxIiB5PSI0Ii8+CTxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iNiIvPjxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iOCIvPjxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iMTAiLz48L3N2Zz4=);background-repeat:repeat-x;height:13px;margin:0 1px;cursor:move}.table-handle-disabled{opacity:0;cursor:not-allowed}.dragtable-sortable table{margin-bottom:0}
|
.dragtable-sortable{list-style-type:none;margin:0;padding:0;-moz-user-select:none;z-index:10}.dragtable-sortable li{margin:0;padding:0;float:left;font-size:1em}.dragtable-sortable table{margin-top:0}.dragtable-sortable td,.dragtable-sortable th{border-left:0}.dragtable-sortable li:first-child td,.dragtable-sortable li:first-child th{border-left:1px solid #ccc}.ui-sortable-helper{opacity:.7}.ui-sortable-placeholder{-moz-box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;-webkit-box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;box-shadow:4px 5px 4px rgba(0,0,0,.2) inset;border-bottom:1px solid rgba(0,0,0,.2);border-top:1px solid rgba(0,0,0,.2);visibility:visible!important;background:#efefef}.ui-sortable-placeholder *{opacity:0;visibility:hidden}.table-handle,.table-handle-disabled{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyIiBoZWlnaHQ9IjEzIj48cmVjdCBzdHlsZT0iZmlsbDojMzMzO2ZpbGwtb3BhY2l0eTouODsiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHg9IjEiIHk9IjIiLz4JPHJlY3Qgc3R5bGU9ImZpbGw6IzMzMztmaWxsLW9wYWNpdHk6Ljg7IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4PSIxIiB5PSI0Ii8+CTxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iNiIvPjxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iOCIvPjxyZWN0IHN0eWxlPSJmaWxsOiMzMzM7ZmlsbC1vcGFjaXR5Oi44OyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgeD0iMSIgeT0iMTAiLz48L3N2Zz4=);background-repeat:repeat-x;height:13px;margin:0 1px;cursor:move}.table-handle-disabled{opacity:0;cursor:not-allowed}.dragtable-sortable table{margin-bottom:0}
|
2
dist/css/filter.formatter.min.css
vendored
2
dist/css/filter.formatter.min.css
vendored
@ -1 +1 @@
|
|||||||
.tablesorter .tablesorter-filter-row td{text-align:center;font-size:.9em;font-weight:400}.tablesorter .ui-slider,.tablesorter input.range{width:90%;margin:2px auto;font-size:.8em}.tablesorter .ui-slider{top:12px}.tablesorter .ui-slider .ui-slider-handle{width:.9em;height:.9em}.tablesorter .ui-datepicker{font-size:.8em}.tablesorter .ui-slider-horizontal{height:.5em}.tablesorter .value-popup:after{content:attr(data-value);position:absolute;bottom:14px;left:-7px;min-width:18px;height:12px;background-color:#444;background-image:-webkit-gradient(linear,left top,left bottom,from(#444),to(#999));background-image:-webkit-linear-gradient(top,#444,#999);background-image:-moz-linear-gradient(top,#444,#999);background-image:-o-linear-gradient(top,#444,#999);background-image:linear-gradient(to bottom,#444,#999);-webkit-border-radius:3px;border-radius:3px;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 0 4px 0 #777;box-shadow:0 0 4px 0 #777;border:1px solid #444;color:#fff;font:1em/1.1em Arial,Sans-Serif;padding:1px;text-align:center}.tablesorter .button,.tablesorter .button label{-webkit-border-radius:25px;-moz-border-radius:25px}.tablesorter .value-popup:before{content:"";position:absolute;width:0;height:0;border-top:8px solid #777;border-left:8px solid transparent;border-right:8px solid transparent;top:-8px;left:50%;margin-left:-8px;margin-top:-1px}.tablesorter .dateFrom,.tablesorter .dateTo{width:80px;margin:2px 5px}.tablesorter .button{width:14px;height:14px;background:#fcfff4;background:-webkit-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:-moz-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:-o-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:-ms-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfff4', endColorstr='#b3bead', GradientType=0 );margin:1px 5px 1px 1px;border-radius:25px;-webkit-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);-moz-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);position:relative;top:3px;display:inline-block}.tablesorter .button label{cursor:pointer;position:absolute;width:10px;height:10px;border-radius:25px;left:2px;top:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,1);box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,1);background:#45484d;background:-webkit-linear-gradient(top,#222 0,#45484d 100%);background:-moz-linear-gradient(top,#222 0,#45484d 100%);background:-o-linear-gradient(top,#222 0,#45484d 100%);background:-ms-linear-gradient(top,#222 0,#45484d 100%);background:linear-gradient(top,#222 0,#45484d 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#222', endColorstr='#45484d', GradientType=0 )}.tablesorter .button label:after{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);opacity:0;content:'';position:absolute;width:8px;height:8px;background:#55f;background:-webkit-linear-gradient(top,#aaf 0,#55f 100%);background:-moz-linear-gradient(top,#aaf 0,#55f 100%);background:-o-linear-gradient(top,#aaf 0,#55f 100%);background:-ms-linear-gradient(top,#aaf 0,#55f 100%);background:linear-gradient(top,#aaf 0,#55f 100%);-webkit-border-radius:25px;-moz-border-radius:25px;border-radius:25px;top:1px;left:1px;-webkit-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);-moz-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5)}.tablesorter .button label:hover::after{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3}.tablesorter .button input[type=checkbox]{visibility:hidden}.tablesorter .button input[type=checkbox]:checked+label:after{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.tablesorter .colorpicker{width:30px;height:18px}.tablesorter .ui-spinner-input{width:100px;height:18px}.tablesorter .currentColor,.tablesorter .ui-spinner,.tablesorter input.number{position:relative}.tablesorter .tablesorter-filter-row.hideme td *{height:1px;min-height:0;border:0;padding:0;margin:0;opacity:0;filter:alpha(opacity=0)}
|
.tablesorter .tablesorter-filter-row td{text-align:center;font-size:.9em;font-weight:400}.tablesorter .ui-slider,.tablesorter input.range{width:90%;margin:2px auto 2px auto;font-size:.8em}.tablesorter .ui-slider{top:12px}.tablesorter .ui-slider .ui-slider-handle{width:.9em;height:.9em}.tablesorter .ui-datepicker{font-size:.8em}.tablesorter .ui-slider-horizontal{height:.5em}.tablesorter .value-popup:after{content:attr(data-value);position:absolute;bottom:14px;left:-7px;min-width:18px;height:12px;background-color:#444;background-image:-webkit-gradient(linear,left top,left bottom,from(#444),to(#999));background-image:-webkit-linear-gradient(top,#444,#999);background-image:-moz-linear-gradient(top,#444,#999);background-image:-o-linear-gradient(top,#444,#999);background-image:linear-gradient(to bottom,#444,#999);-webkit-border-radius:3px;border-radius:3px;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-box-shadow:0 0 4px 0 #777;box-shadow:0 0 4px 0 #777;border:#444 1px solid;color:#fff;font:1em/1.1em Arial,Sans-Serif;padding:1px;text-align:center}.tablesorter .value-popup:before{content:"";position:absolute;width:0;height:0;border-top:8px solid #777;border-left:8px solid transparent;border-right:8px solid transparent;top:-8px;left:50%;margin-left:-8px;margin-top:-1px}.tablesorter .dateFrom,.tablesorter .dateTo{width:80px;margin:2px 5px}.tablesorter .button{width:14px;height:14px;background:#fcfff4;background:-webkit-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:-moz-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:-o-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:-ms-linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);background:linear-gradient(top,#fcfff4 0,#dfe5d7 40%,#b3bead 100%);margin:1px 5px 1px 1px;-webkit-border-radius:25px;-moz-border-radius:25px;border-radius:25px;-webkit-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);-moz-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);position:relative;top:3px;display:inline-block}.tablesorter .button label{cursor:pointer;position:absolute;width:10px;height:10px;-webkit-border-radius:25px;-moz-border-radius:25px;border-radius:25px;left:2px;top:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,1);box-shadow:inset 0 1px 1px rgba(0,0,0,.5),0 1px 0 rgba(255,255,255,1);background:#45484d;background:-webkit-linear-gradient(top,#222 0,#45484d 100%);background:-moz-linear-gradient(top,#222 0,#45484d 100%);background:-o-linear-gradient(top,#222 0,#45484d 100%);background:-ms-linear-gradient(top,#222 0,#45484d 100%);background:linear-gradient(top,#222 0,#45484d 100%)}.tablesorter .button label:after{opacity:0;content:'';position:absolute;width:8px;height:8px;background:#55f;background:-webkit-linear-gradient(top,#aaf 0,#55f 100%);background:-moz-linear-gradient(top,#aaf 0,#55f 100%);background:-o-linear-gradient(top,#aaf 0,#55f 100%);background:-ms-linear-gradient(top,#aaf 0,#55f 100%);background:linear-gradient(top,#aaf 0,#55f 100%);-webkit-border-radius:25px;-moz-border-radius:25px;border-radius:25px;top:1px;left:1px;-webkit-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);-moz-box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5);box-shadow:inset 0 1px 1px #fff,0 1px 3px rgba(0,0,0,.5)}.tablesorter .button label:hover::after{opacity:.3}.tablesorter .button input[type=checkbox]{visibility:hidden}.tablesorter .button input[type=checkbox]:checked+label:after{opacity:1}.tablesorter .colorpicker{width:30px;height:18px}.tablesorter .ui-spinner-input{width:100px;height:18px}.tablesorter .currentColor,.tablesorter .ui-spinner{position:relative}.tablesorter input.number{position:relative}.tablesorter .tablesorter-filter-row.hideme td *{height:1px;min-height:0;border:0;padding:0;margin:0;/* don't use visibility: hidden because it disables tabbing */opacity:0}
|
1
dist/css/highlights.min.css
vendored
Normal file
1
dist/css/highlights.min.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
table.focus-highlight td:before,table.hover-highlight td:before{background:#fff}.focus-highlight .odd td:before,.focus-highlight .odd th:before,.hover-highlight .odd td:before,.hover-highlight .odd th:before{background:#ebf2fa}.focus-highlight .even td:before,.focus-highlight .even th:before,.hover-highlight .even td:before,.hover-highlight .even th:before{background-color:#fff}.focus-highlight td:focus::before,.focus-highlight th:focus::before{background-color:#add8e6}.focus-highlight td:focus::after,.focus-highlight th:focus::after{background-color:#add8e6}.focus-highlight .even td:focus,.focus-highlight .even th:focus,.focus-highlight .odd td:focus,.focus-highlight .odd th:focus,.focus-highlight td:focus,.focus-highlight th:focus{background-color:#d9d9d9;color:#333}table.hover-highlight tbody>tr.even:hover>td,table.hover-highlight tbody>tr.odd:hover>td,table.hover-highlight tbody>tr:hover>td{background-color:#ffa}.hover-highlight tbody tr td:hover::after,.hover-highlight tbody tr th:hover::after{background-color:#ffa}.focus-highlight td:focus::after,.focus-highlight th:focus::after,.hover-highlight td:hover::after,.hover-highlight th:hover::after{content:'';position:absolute;width:100%;height:999em;left:0;top:-555em;z-index:-1}.focus-highlight td:focus::before,.focus-highlight th:focus::before{content:'';position:absolute;width:999em;height:100%;left:-555em;top:0;z-index:-2}.focus-highlight,.hover-highlight{overflow:hidden}.focus-highlight td,.focus-highlight th,.hover-highlight td,.hover-highlight th{position:relative;outline:0}table.focus-highlight,table.focus-highlight tbody tr.even>td,table.focus-highlight tbody tr.even>th,table.focus-highlight tbody tr.odd>td,table.focus-highlight tbody tr.odd>th,table.focus-highlight tbody>tr>td,table.hover-highlight,table.hover-highlight tbody tr.even>td,table.hover-highlight tbody tr.even>th,table.hover-highlight tbody tr.odd>td,table.hover-highlight tbody tr.odd>th,table.hover-highlight tbody>tr>td{background:0 0}table.focus-highlight td:before,table.hover-highlight td:before{content:'';position:absolute;width:100%;height:100%;left:0;top:0;z-index:-3}
|
2
dist/css/jquery.tablesorter.pager.min.css
vendored
2
dist/css/jquery.tablesorter.pager.min.css
vendored
@ -1 +1 @@
|
|||||||
.tablesorter-pager{padding:5px}td.tablesorter-pager{background-color:#e6eeee;margin:0}.tablesorter-pager img{vertical-align:middle;margin-right:2px;cursor:pointer}.tablesorter-pager .pagedisplay{padding:0 5px;width:auto;white-space:nowrap;text-align:center}.tablesorter-pager select{margin:0;padding:0}.tablesorter-pager.disabled{display:none}.tablesorter-pager .disabled{opacity:.5;filter:alpha(opacity=50);cursor:default}
|
.tablesorter-pager{padding:5px}td.tablesorter-pager{background-color:#e6eeee;margin:0}.tablesorter-pager img{vertical-align:middle;margin-right:2px;cursor:pointer}.tablesorter-pager .pagedisplay{padding:0 5px 0 5px;width:auto;white-space:nowrap;text-align:center}.tablesorter-pager select{margin:0;padding:0}.tablesorter-pager.disabled{display:none}.tablesorter-pager .disabled{/* visibility: hidden */opacity:.5;cursor:default}
|
2
dist/css/theme.blackice.min.css
vendored
2
dist/css/theme.blackice.min.css
vendored
@ -1 +1 @@
|
|||||||
.tablesorter-blackice{width:100%;margin-right:auto;margin-left:auto;font:11px/18px Arial,Sans-serif;text-align:left;background-color:#000;border-collapse:collapse;border-spacing:0}.tablesorter-blackice th,.tablesorter-blackice thead td{padding:4px;font:13px/20px Arial,Sans-serif;font-weight:700;color:#e5e5e5;text-align:left;text-shadow:0 1px 0 rgba(0,0,0,.7);background-color:#111;border:1px solid #232323}.tablesorter-blackice .header,.tablesorter-blackice .tablesorter-header{padding:4px 20px 4px 4px;cursor:pointer;background-image:url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);background-position:center right;background-repeat:no-repeat}.tablesorter-blackice .headerSortUp,.tablesorter-blackice .tablesorter-headerAsc,.tablesorter-blackice .tablesorter-headerSortUp{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);color:#fff}.tablesorter-blackice .headerSortDown,.tablesorter-blackice .tablesorter-headerDesc,.tablesorter-blackice .tablesorter-headerSortDown{color:#fff;background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7)}.tablesorter-blackice thead .sorter-false{background-image:none;cursor:default;padding:4px}.tablesorter-blackice tfoot .tablesorter-headerAsc,.tablesorter-blackice tfoot .tablesorter-headerDesc,.tablesorter-blackice tfoot .tablesorter-headerSortDown,.tablesorter-blackice tfoot .tablesorter-headerSortUp{background-image:none}.tablesorter-blackice td{padding:4px;color:#ccc;vertical-align:top;background-color:#333;border:1px solid #232323}.tablesorter-blackice tbody>tr.even:hover>td,.tablesorter-blackice tbody>tr.hover>td,.tablesorter-blackice tbody>tr.odd:hover>td,.tablesorter-blackice tbody>tr:hover>td{background-color:#000}.tablesorter-blackice .tablesorter-processing{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-blackice tr.odd>td{background-color:#333}.tablesorter-blackice tr.even>td{background-color:#393939}.tablesorter-blackice td.primary,.tablesorter-blackice tr.odd td.primary{background-color:#2f3a40}.tablesorter-blackice td.secondary,.tablesorter-blackice tr.even td.primary,.tablesorter-blackice tr.odd td.secondary{background-color:#3f4a50}.tablesorter-blackice td.tertiary,.tablesorter-blackice tr.even td.secondary,.tablesorter-blackice tr.odd td.tertiary{background-color:#4f5a60}.tablesorter-blackice tr.even td.tertiary{background-color:#5a646b}caption{background-color:#fff}.tablesorter-blackice .tablesorter-filter-row{background-color:#222}.tablesorter-blackice .tablesorter-filter-row td{background-color:#222;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-blackice .tablesorter-filter-row .disabled{opacity:.5;filter:alpha(opacity=50);cursor:not-allowed}.tablesorter-blackice .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-blackice .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;opacity:0;filter:alpha(opacity=0)}.tablesorter-blackice input.tablesorter-filter,.tablesorter-blackice select.tablesorter-filter{width:98%;height:auto;margin:0;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
.tablesorter-blackice{width:100%;margin-right:auto;margin-left:auto;font:11px/18px Arial,Sans-serif;text-align:left;background-color:#000;border-collapse:collapse;border-spacing:0}.tablesorter-blackice th,.tablesorter-blackice thead td{padding:4px;font:13px/20px Arial,Sans-serif;font-weight:700;color:#e5e5e5;text-align:left;text-shadow:0 1px 0 rgba(0,0,0,.7);background-color:#111;border:1px solid #232323}.tablesorter-blackice .header,.tablesorter-blackice .tablesorter-header{padding:4px 20px 4px 4px;cursor:pointer;background-image:url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);background-position:center right;background-repeat:no-repeat}.tablesorter-blackice .headerSortUp,.tablesorter-blackice .tablesorter-headerAsc,.tablesorter-blackice .tablesorter-headerSortUp{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);color:#fff}.tablesorter-blackice .headerSortDown,.tablesorter-blackice .tablesorter-headerDesc,.tablesorter-blackice .tablesorter-headerSortDown{color:#fff;background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7)}.tablesorter-blackice thead .sorter-false{background-image:none;cursor:default;padding:4px}.tablesorter-blackice tfoot .tablesorter-headerAsc,.tablesorter-blackice tfoot .tablesorter-headerDesc,.tablesorter-blackice tfoot .tablesorter-headerSortDown,.tablesorter-blackice tfoot .tablesorter-headerSortUp{background-image:none}.tablesorter-blackice td{padding:4px;color:#ccc;vertical-align:top;background-color:#333;border:1px solid #232323}.tablesorter-blackice tbody>tr.even:hover>td,.tablesorter-blackice tbody>tr.hover>td,.tablesorter-blackice tbody>tr.odd:hover>td,.tablesorter-blackice tbody>tr:hover>td{background-color:#000}.tablesorter-blackice .tablesorter-processing{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-blackice tr.odd>td{background-color:#333}.tablesorter-blackice tr.even>td{background-color:#393939}.tablesorter-blackice td.primary,.tablesorter-blackice tr.odd td.primary{background-color:#2f3a40}.tablesorter-blackice tr.even td.primary{background-color:#3f4a50}.tablesorter-blackice td.secondary,.tablesorter-blackice tr.odd td.secondary{background-color:#3f4a50}.tablesorter-blackice tr.even td.secondary{background-color:#4f5a60}.tablesorter-blackice td.tertiary,.tablesorter-blackice tr.odd td.tertiary{background-color:#4f5a60}.tablesorter-blackice tr.even td.tertiary{background-color:#5a646b}caption{background-color:#fff}.tablesorter-blackice .tablesorter-filter-row{background-color:#222}.tablesorter-blackice .tablesorter-filter-row td{background-color:#222;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-blackice .tablesorter-filter-row .disabled{opacity:.5;cursor:not-allowed}.tablesorter-blackice .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-blackice .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;/* don't use visibility: hidden because it disables tabbing */opacity:0}.tablesorter-blackice input.tablesorter-filter,.tablesorter-blackice select.tablesorter-filter{width:98%;height:auto;margin:0;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
2
dist/css/theme.blue.min.css
vendored
2
dist/css/theme.blue.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.bootstrap.min.css
vendored
2
dist/css/theme.bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.bootstrap_2.min.css
vendored
2
dist/css/theme.bootstrap_2.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.bootstrap_3.min.css
vendored
2
dist/css/theme.bootstrap_3.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.bootstrap_4.min.css
vendored
2
dist/css/theme.bootstrap_4.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.dark.min.css
vendored
2
dist/css/theme.dark.min.css
vendored
@ -1 +1 @@
|
|||||||
.tablesorter-dark,.tablesorter-dark tbody>tr.even:hover>td,.tablesorter-dark tbody>tr.hover>td,.tablesorter-dark tbody>tr.odd:hover>td,.tablesorter-dark tbody>tr:hover>td,.tablesorter-dark td{background-color:#000}.tablesorter-dark{width:100%;font:11px/18px Arial,Sans-serif;color:#ccc;text-align:left;border-spacing:0}.tablesorter-dark th,.tablesorter-dark thead td{padding:4px;font:12px/20px Arial,Sans-serif;font-weight:700;color:#fff;background-color:#000;border-collapse:collapse}.tablesorter-dark thead th{border-bottom:#333 2px solid}.tablesorter-dark .header,.tablesorter-dark .tablesorter-header{padding:4px 20px 4px 4px;cursor:pointer;background-image:url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);background-position:center right;background-repeat:no-repeat}.tablesorter-dark thead .headerSortUp,.tablesorter-dark thead .tablesorter-headerAsc,.tablesorter-dark thead .tablesorter-headerSortUp{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);border-bottom:#888 1px solid}.tablesorter-dark thead .headerSortDown,.tablesorter-dark thead .tablesorter-headerDesc,.tablesorter-dark thead .tablesorter-headerSortDown{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);border-bottom:#888 1px solid}.tablesorter-dark thead .sorter-false{background-image:none;cursor:default;padding:4px}.tablesorter-dark tfoot .tablesorter-headerAsc,.tablesorter-dark tfoot .tablesorter-headerDesc,.tablesorter-dark tfoot .tablesorter-headerSortDown,.tablesorter-dark tfoot .tablesorter-headerSortUp{border-top:#888 1px solid;background-image:none}.tablesorter-dark td{padding:4px;border-bottom:#333 1px solid;color:#ccc}.tablesorter-dark .tablesorter-processing{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-dark tr.odd>td{background-color:#202020}.tablesorter-dark tr.even>td{background-color:#101010}.tablesorter-dark td.primary,.tablesorter-dark tr.odd td.primary{background-color:#0a0a0a}.tablesorter-dark tr.even td.primary{background-color:#050505}.tablesorter-dark td.secondary,.tablesorter-dark tr.odd td.secondary{background-color:#0f0f0f}.tablesorter-dark tr.even td.secondary{background-color:#0a0a0a}.tablesorter-dark td.tertiary,.tablesorter-dark tr.odd td.tertiary{background-color:#191919}.tablesorter-dark tr.even td.tertiary{background-color:#0f0f0f}.tablesorter-dark .tablesorter-filter-row,caption{background-color:#202020}.tablesorter-dark .tablesorter-filter-row td{background-color:#202020;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-dark .tablesorter-filter-row .disabled{opacity:.5;filter:alpha(opacity=50);cursor:not-allowed}.tablesorter-dark .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-dark .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;opacity:0;filter:alpha(opacity=0)}.tablesorter-dark input.tablesorter-filter,.tablesorter-dark select.tablesorter-filter{width:98%;height:auto;margin:0;padding:4px;background-color:#111;border:1px solid #222;color:#ddd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
.tablesorter-dark{width:100%;font:11px/18px Arial,Sans-serif;color:#ccc;text-align:left;background-color:#000;border-spacing:0}.tablesorter-dark th,.tablesorter-dark thead td{padding:4px;font:12px/20px Arial,Sans-serif;font-weight:700;color:#fff;background-color:#000;border-collapse:collapse}.tablesorter-dark thead th{border-bottom:#333 2px solid}.tablesorter-dark .header,.tablesorter-dark .tablesorter-header{padding:4px 20px 4px 4px;cursor:pointer;background-image:url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);background-position:center right;background-repeat:no-repeat}.tablesorter-dark thead .headerSortUp,.tablesorter-dark thead .tablesorter-headerAsc,.tablesorter-dark thead .tablesorter-headerSortUp{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);border-bottom:#888 1px solid}.tablesorter-dark thead .headerSortDown,.tablesorter-dark thead .tablesorter-headerDesc,.tablesorter-dark thead .tablesorter-headerSortDown{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);border-bottom:#888 1px solid}.tablesorter-dark thead .sorter-false{background-image:none;cursor:default;padding:4px}.tablesorter-dark tfoot .tablesorter-headerAsc,.tablesorter-dark tfoot .tablesorter-headerDesc,.tablesorter-dark tfoot .tablesorter-headerSortDown,.tablesorter-dark tfoot .tablesorter-headerSortUp{border-top:#888 1px solid;background-image:none}.tablesorter-dark td{padding:4px;background-color:#000;border-bottom:#333 1px solid;color:#ccc}.tablesorter-dark tbody>tr.even:hover>td,.tablesorter-dark tbody>tr.hover>td,.tablesorter-dark tbody>tr.odd:hover>td,.tablesorter-dark tbody>tr:hover>td{background-color:#000}.tablesorter-dark .tablesorter-processing{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-dark tr.odd>td{background-color:#202020}.tablesorter-dark tr.even>td{background-color:#101010}.tablesorter-dark td.primary,.tablesorter-dark tr.odd td.primary{background-color:#0a0a0a}.tablesorter-dark tr.even td.primary{background-color:#050505}.tablesorter-dark td.secondary,.tablesorter-dark tr.odd td.secondary{background-color:#0f0f0f}.tablesorter-dark tr.even td.secondary{background-color:#0a0a0a}.tablesorter-dark td.tertiary,.tablesorter-dark tr.odd td.tertiary{background-color:#191919}.tablesorter-dark tr.even td.tertiary{background-color:#0f0f0f}caption{background-color:#202020}.tablesorter-dark .tablesorter-filter-row{background-color:#202020}.tablesorter-dark .tablesorter-filter-row td{background-color:#202020;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-dark .tablesorter-filter-row .disabled{opacity:.5;cursor:not-allowed}.tablesorter-dark .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-dark .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;/* don't use visibility: hidden because it disables tabbing */opacity:0}.tablesorter-dark input.tablesorter-filter,.tablesorter-dark select.tablesorter-filter{width:98%;height:auto;margin:0;padding:4px;background-color:#111;border:1px solid #222;color:#ddd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
2
dist/css/theme.default.min.css
vendored
2
dist/css/theme.default.min.css
vendored
@ -1 +1 @@
|
|||||||
.tablesorter-default{width:100%;font:12px/18px Arial,Sans-serif;color:#333;background-color:#fff;border-spacing:0;margin:10px 0 15px;text-align:left}.tablesorter-default th,.tablesorter-default thead td{font-weight:700;color:#000;background-color:#fff;border-collapse:collapse;border-bottom:#ccc 2px solid;padding:0}.tablesorter-default tfoot td,.tablesorter-default tfoot th{border:0}.tablesorter-default .header,.tablesorter-default .tablesorter-header{background-image:url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);background-position:center right;background-repeat:no-repeat;cursor:pointer;white-space:normal;padding:4px 20px 4px 4px}.tablesorter-default thead .headerSortUp,.tablesorter-default thead .tablesorter-headerAsc,.tablesorter-default thead .tablesorter-headerSortUp{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);border-bottom:#000 2px solid}.tablesorter-default thead .headerSortDown,.tablesorter-default thead .tablesorter-headerDesc,.tablesorter-default thead .tablesorter-headerSortDown{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);border-bottom:#000 2px solid}.tablesorter-default thead .sorter-false{background-image:none;cursor:default;padding:4px}.tablesorter-default tfoot .tablesorter-headerAsc,.tablesorter-default tfoot .tablesorter-headerDesc,.tablesorter-default tfoot .tablesorter-headerSortDown,.tablesorter-default tfoot .tablesorter-headerSortUp{border-top:#000 2px solid}.tablesorter-default td{background-color:#fff;border-bottom:#ccc 1px solid;padding:4px;vertical-align:top}.tablesorter-default tbody>tr.even:hover>td,.tablesorter-default tbody>tr.hover>td,.tablesorter-default tbody>tr.odd:hover>td,.tablesorter-default tbody>tr:hover>td{background-color:#fff;color:#000}.tablesorter-default .tablesorter-processing{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-default tr.odd>td{background-color:#dfdfdf}.tablesorter-default tr.even>td{background-color:#efefef}.tablesorter-default tr.odd td.primary{background-color:#bfbfbf}.tablesorter-default td.primary,.tablesorter-default tr.even td.primary,.tablesorter-default tr.odd td.secondary{background-color:#d9d9d9}.tablesorter-default td.secondary,.tablesorter-default tr.even td.secondary,.tablesorter-default tr.odd td.tertiary{background-color:#e6e6e6}.tablesorter-default td.tertiary,.tablesorter-default tr.even td.tertiary{background-color:#f2f2f2}caption{background-color:#fff}.tablesorter-default .tablesorter-filter-row{background-color:#eee}.tablesorter-default .tablesorter-filter-row td{background-color:#eee;border-bottom:#ccc 1px solid;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-default .tablesorter-filter-row .disabled{opacity:.5;filter:alpha(opacity=50);cursor:not-allowed}.tablesorter-default .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-default .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;opacity:0;filter:alpha(opacity=0)}.tablesorter-default input.tablesorter-filter,.tablesorter-default select.tablesorter-filter{width:95%;height:auto;margin:4px auto;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
.tablesorter-default{width:100%;font:12px/18px Arial,Sans-serif;color:#333;background-color:#fff;border-spacing:0;margin:10px 0 15px;text-align:left}.tablesorter-default th,.tablesorter-default thead td{font-weight:700;color:#000;background-color:#fff;border-collapse:collapse;border-bottom:#ccc 2px solid;padding:0}.tablesorter-default tfoot td,.tablesorter-default tfoot th{border:0}.tablesorter-default .header,.tablesorter-default .tablesorter-header{background-image:url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);background-position:center right;background-repeat:no-repeat;cursor:pointer;white-space:normal;padding:4px 20px 4px 4px}.tablesorter-default thead .headerSortUp,.tablesorter-default thead .tablesorter-headerAsc,.tablesorter-default thead .tablesorter-headerSortUp{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);border-bottom:#000 2px solid}.tablesorter-default thead .headerSortDown,.tablesorter-default thead .tablesorter-headerDesc,.tablesorter-default thead .tablesorter-headerSortDown{background-image:url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);border-bottom:#000 2px solid}.tablesorter-default thead .sorter-false{background-image:none;cursor:default;padding:4px}.tablesorter-default tfoot .tablesorter-headerAsc,.tablesorter-default tfoot .tablesorter-headerDesc,.tablesorter-default tfoot .tablesorter-headerSortDown,.tablesorter-default tfoot .tablesorter-headerSortUp{border-top:#000 2px solid}.tablesorter-default td{background-color:#fff;border-bottom:#ccc 1px solid;padding:4px;vertical-align:top}.tablesorter-default tbody>tr.even:hover>td,.tablesorter-default tbody>tr.hover>td,.tablesorter-default tbody>tr.odd:hover>td,.tablesorter-default tbody>tr:hover>td{background-color:#fff;color:#000}.tablesorter-default .tablesorter-processing{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-default tr.odd>td{background-color:#dfdfdf}.tablesorter-default tr.even>td{background-color:#efefef}.tablesorter-default tr.odd td.primary{background-color:#bfbfbf}.tablesorter-default td.primary,.tablesorter-default tr.even td.primary{background-color:#d9d9d9}.tablesorter-default tr.odd td.secondary{background-color:#d9d9d9}.tablesorter-default td.secondary,.tablesorter-default tr.even td.secondary{background-color:#e6e6e6}.tablesorter-default tr.odd td.tertiary{background-color:#e6e6e6}.tablesorter-default td.tertiary,.tablesorter-default tr.even td.tertiary{background-color:#f2f2f2}caption{background-color:#fff}.tablesorter-default .tablesorter-filter-row{background-color:#eee}.tablesorter-default .tablesorter-filter-row td{background-color:#eee;border-bottom:#ccc 1px solid;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-default .tablesorter-filter-row .disabled{opacity:.5;cursor:not-allowed}.tablesorter-default .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-default .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;/* don't use visibility: hidden because it disables tabbing */opacity:0}.tablesorter-default input.tablesorter-filter,.tablesorter-default select.tablesorter-filter{width:95%;height:auto;margin:4px auto;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
2
dist/css/theme.dropbox.min.css
vendored
2
dist/css/theme.dropbox.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.green.min.css
vendored
2
dist/css/theme.green.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.grey.min.css
vendored
2
dist/css/theme.grey.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.ice.min.css
vendored
2
dist/css/theme.ice.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.jui.min.css
vendored
2
dist/css/theme.jui.min.css
vendored
@ -1 +1 @@
|
|||||||
.tablesorter .filtered,.tablesorter-jui thead tr .sorter-false .ui-icon{display:none}.tablesorter-jui{width:100%;border-collapse:separate;border-spacing:2px;margin:10px 0 15px;padding:5px;font-size:.8em}.tablesorter-jui tfoot td,.tablesorter-jui tfoot th,.tablesorter-jui thead td,.tablesorter-jui thead th{position:relative;background-repeat:no-repeat;background-position:right center;font-weight:700!important;border-width:1px!important;text-align:left;padding:8px}.tablesorter-jui .header,.tablesorter-jui .tablesorter-header{cursor:pointer;white-space:normal}.tablesorter-jui .tablesorter-header-inner{padding-right:20px}.tablesorter-jui thead tr th .ui-icon{position:absolute;right:3px;top:50%;margin-top:-8px}.tablesorter-jui thead .sorter-false{cursor:default}.tablesorter-jui tfoot td,.tablesorter-jui tfoot th{font-weight:400!important;font-size:.9em;padding:2px}.tablesorter-jui td{padding:4px;vertical-align:top}.tablesorter-jui tbody>tr.hover>td,.tablesorter-jui tbody>tr:hover>td{opacity:.7;filter:alpha(opacity=70)}.tablesorter-jui .tablesorter-processing .tablesorter-header-inner{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-jui tr.ui-state-default{background-image:none;font-weight:400}.tablesorter-jui .tablesorter-processing{background-color:#ddd;background-color:rgba(255,255,255,.8)}.tablesorter-jui caption{border:0}.tablesorter-jui .tablesorter-filter-row{background-color:transparent}.tablesorter-jui .tablesorter-filter-row td{background-color:transparent;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-jui .tablesorter-filter-row .disabled{opacity:.5;filter:alpha(opacity=50);cursor:not-allowed}.tablesorter-jui .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-jui .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;opacity:0;filter:alpha(opacity=0)}.tablesorter-jui input.tablesorter-filter,.tablesorter-jui select.tablesorter-filter{width:98%;height:auto;margin:0;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
.tablesorter-jui{width:100%;border-collapse:separate;border-spacing:2px;margin:10px 0 15px;padding:5px;font-size:.8em}.tablesorter-jui tfoot td,.tablesorter-jui tfoot th,.tablesorter-jui thead td,.tablesorter-jui thead th{position:relative;background-repeat:no-repeat;background-position:right center;font-weight:700!important;border-width:1px!important;text-align:left;padding:8px}.tablesorter-jui .header,.tablesorter-jui .tablesorter-header{cursor:pointer;white-space:normal}.tablesorter-jui .tablesorter-header-inner{padding-right:20px}.tablesorter-jui thead tr th .ui-icon{position:absolute;right:3px;top:50%;margin-top:-8px}.tablesorter-jui thead .sorter-false{cursor:default}.tablesorter-jui thead tr .sorter-false .ui-icon{display:none}.tablesorter-jui tfoot td,.tablesorter-jui tfoot th{font-weight:400!important;font-size:.9em;padding:2px}.tablesorter-jui td{padding:4px;vertical-align:top}.tablesorter-jui tbody>tr.hover>td,.tablesorter-jui tbody>tr:hover>td{opacity:.7}.tablesorter-jui .tablesorter-processing .tablesorter-header-inner{background-position:center center!important;background-repeat:no-repeat!important;background-image:url(data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=)!important}.tablesorter-jui tr.ui-state-default{background-image:none;font-weight:400}.tablesorter-jui .tablesorter-processing{background-color:#ddd;background-color:rgba(255,255,255,.8)}.tablesorter-jui caption{border:0}.tablesorter-jui .tablesorter-filter-row{background-color:transparent}.tablesorter-jui .tablesorter-filter-row td{background-color:transparent;line-height:normal;text-align:center;-webkit-transition:line-height .1s ease;-moz-transition:line-height .1s ease;-o-transition:line-height .1s ease;transition:line-height .1s ease}.tablesorter-jui .tablesorter-filter-row .disabled{opacity:.5;cursor:not-allowed}.tablesorter-jui .tablesorter-filter-row.hideme td{padding:2px;margin:0;line-height:0;cursor:pointer}.tablesorter-jui .tablesorter-filter-row.hideme *{height:1px;min-height:0;border:0;padding:0;margin:0;/* don't use visibility: hidden because it disables tabbing */opacity:0}.tablesorter-jui input.tablesorter-filter,.tablesorter-jui select.tablesorter-filter{width:98%;height:auto;margin:0;padding:4px;background-color:#fff;border:1px solid #bbb;color:#333;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:height .1s ease;-moz-transition:height .1s ease;-o-transition:height .1s ease;transition:height .1s ease}.tablesorter .filtered{display:none}.tablesorter .tablesorter-errorRow td{text-align:center;cursor:pointer;background-color:#e6bf99}
|
2
dist/css/theme.materialize.min.css
vendored
2
dist/css/theme.materialize.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/theme.metro-dark.min.css
vendored
2
dist/css/theme.metro-dark.min.css
vendored
File diff suppressed because one or more lines are too long
4
dist/js/extras/jquery.dragtable.mod.min.js
vendored
4
dist/js/extras/jquery.dragtable.mod.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/extras/jquery.metadata.min.js
vendored
2
dist/js/extras/jquery.metadata.min.js
vendored
@ -1 +1 @@
|
|||||||
!function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/(\{.*\})/,single:"metadata"},setType:function(a,b){this.defaults.type=a,this.defaults.name=b},get:function(elem,opts){var data,m,e,attr,settings=$.extend({},this.defaults,opts);if(settings.single.length||(settings.single="metadata"),data=$.data(elem,settings.single))return data;if(data="{}","class"===settings.type)m=settings.cre.exec(elem.className),m&&(data=m[1]);else if("elem"===settings.type){if(!elem.getElementsByTagName)return;e=elem.getElementsByTagName(settings.name),e.length&&(data=$.trim(e[0].innerHTML))}else void 0!==elem.getAttribute&&(attr=elem.getAttribute(settings.name),attr&&(data=attr));return data.indexOf("{")<0&&(data="{"+data+"}"),data=eval("("+data+")"),$.data(elem,settings.single,data),data}}}),$.fn.metadata=function(a){return $.metadata.get(this[0],a)}}(jQuery);
|
!function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/(\{.*\})/,single:"metadata"},setType:function(a,b){this.defaults.type=a,this.defaults.name=b},get:function(elem,opts){var data,m,e,attr,settings=$.extend({},this.defaults,opts);if(settings.single.length||(settings.single="metadata"),data=$.data(elem,settings.single))return data;if(data="{}","class"===settings.type)(m=settings.cre.exec(elem.className))&&(data=m[1]);else if("elem"===settings.type){if(!elem.getElementsByTagName)return;e=elem.getElementsByTagName(settings.name),e.length&&(data=$.trim(e[0].innerHTML))}else void 0!==elem.getAttribute&&(attr=elem.getAttribute(settings.name))&&(data=attr);return data.indexOf("{")<0&&(data="{"+data+"}"),data=eval("("+data+")"),$.data(elem,settings.single,data),data}}}),$.fn.metadata=function(a){return $.metadata.get(this[0],a)}}(jQuery);
|
File diff suppressed because one or more lines are too long
2
dist/js/extras/semver-mod.min.js
vendored
2
dist/js/extras/semver-mod.min.js
vendored
File diff suppressed because one or more lines are too long
89
dist/js/jquery.tablesorter.combined.js
vendored
89
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
/*! tablesorter (FORK) - updated 04-02-2017 (v2.28.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
}(function(jQuery) {
|
}(function(jQuery) {
|
||||||
|
|
||||||
/*! TableSorter (FORK) v2.28.5 *//*
|
/*! TableSorter (FORK) v2.28.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -34,7 +34,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.28.5',
|
version : '2.28.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -374,7 +374,17 @@
|
|||||||
.bind( 'sortReset' + namespace, function( e, callback ) {
|
.bind( 'sortReset' + namespace, function( e, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// using this.config to ensure functions are getting a non-cached version of the config
|
// using this.config to ensure functions are getting a non-cached version of the config
|
||||||
ts.sortReset( this.config, callback );
|
ts.sortReset( this.config, function( table ) {
|
||||||
|
if (table.isApplyingWidgets) {
|
||||||
|
// multiple triggers in a row... filterReset, then sortReset - see #1361
|
||||||
|
// wait to update widgets
|
||||||
|
setTimeout( function() {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}, 100 );
|
||||||
|
} else {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -443,7 +453,7 @@
|
|||||||
var tmp = $.extend( true, {}, c.originalSettings );
|
var tmp = $.extend( true, {}, c.originalSettings );
|
||||||
// restore original settings; this clears out current settings, but does not clear
|
// restore original settings; this clears out current settings, but does not clear
|
||||||
// values saved to storage.
|
// values saved to storage.
|
||||||
c = $.extend( true, ts.defaults, tmp );
|
c = $.extend( true, {}, ts.defaults, tmp );
|
||||||
c.originalSettings = tmp;
|
c.originalSettings = tmp;
|
||||||
this.hasInitialized = false;
|
this.hasInitialized = false;
|
||||||
// setup the entire table again
|
// setup the entire table again
|
||||||
@ -678,8 +688,9 @@
|
|||||||
for ( indx = 0; indx < max; indx++ ) {
|
for ( indx = 0; indx < max; indx++ ) {
|
||||||
header = c.$headerIndexed[ colIndex ];
|
header = c.$headerIndexed[ colIndex ];
|
||||||
if ( header && header.length ) {
|
if ( header && header.length ) {
|
||||||
// get column indexed table cell
|
// get column indexed table cell; adding true parameter fixes #1362 but
|
||||||
configHeaders = ts.getColumnData( table, c.headers, colIndex );
|
// it would break backwards compatibility...
|
||||||
|
configHeaders = ts.getColumnData( table, c.headers, colIndex ); // , true );
|
||||||
// get column parser/extractor
|
// get column parser/extractor
|
||||||
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
||||||
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
||||||
@ -1780,6 +1791,10 @@
|
|||||||
ts.setHeadersCss( c );
|
ts.setHeadersCss( c );
|
||||||
ts.multisort( c );
|
ts.multisort( c );
|
||||||
ts.appendCache( c );
|
ts.appendCache( c );
|
||||||
|
var indx;
|
||||||
|
for (indx = 0; indx < c.columns; indx++) {
|
||||||
|
c.sortVars[ indx ].count = -1;
|
||||||
|
}
|
||||||
if ( $.isFunction( callback ) ) {
|
if ( $.isFunction( callback ) ) {
|
||||||
callback( c.table );
|
callback( c.table );
|
||||||
}
|
}
|
||||||
@ -1922,14 +1937,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
applyWidgetOptions : function( table ) {
|
applyWidgetOptions : function( table ) {
|
||||||
var indx, widget,
|
var indx, widget, wo,
|
||||||
c = table.config,
|
c = table.config,
|
||||||
len = c.widgets.length;
|
len = c.widgets.length;
|
||||||
if ( len ) {
|
if ( len ) {
|
||||||
for ( indx = 0; indx < len; indx++ ) {
|
for ( indx = 0; indx < len; indx++ ) {
|
||||||
widget = ts.getWidgetById( c.widgets[ indx ] );
|
widget = ts.getWidgetById( c.widgets[ indx ] );
|
||||||
if ( widget && widget.options ) {
|
if ( widget && widget.options ) {
|
||||||
c.widgetOptions = $.extend( true, {}, widget.options, c.widgetOptions );
|
wo = $.extend( {}, widget.options );
|
||||||
|
c.widgetOptions = $.extend( true, wo, c.widgetOptions );
|
||||||
// add widgetOptions to defaults for option validator
|
// add widgetOptions to defaults for option validator
|
||||||
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
||||||
}
|
}
|
||||||
@ -2052,22 +2068,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
||||||
// callback executed on init only
|
|
||||||
if ( !init && typeof callback === 'function' ) {
|
|
||||||
callback( table );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
c.timerReady = setTimeout( function() {
|
c.timerReady = setTimeout( function() {
|
||||||
table.isApplyingWidgets = false;
|
table.isApplyingWidgets = false;
|
||||||
$.data( table, 'lastWidgetApplication', new Date() );
|
$.data( table, 'lastWidgetApplication', new Date() );
|
||||||
c.$table.triggerHandler( 'tablesorter-ready' );
|
c.$table.triggerHandler( 'tablesorter-ready' );
|
||||||
|
// callback executed on init only
|
||||||
|
if ( !init && typeof callback === 'function' ) {
|
||||||
|
callback( table );
|
||||||
|
}
|
||||||
|
if ( c.debug ) {
|
||||||
|
widget = c.widgets.length;
|
||||||
|
console.log( 'Completed ' +
|
||||||
|
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||||
|
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||||
|
}
|
||||||
}, 10 );
|
}, 10 );
|
||||||
if ( c.debug ) {
|
|
||||||
widget = c.widgets.length;
|
|
||||||
console.log( 'Completed ' +
|
|
||||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
|
||||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
removeWidget : function( table, name, refreshing ) {
|
removeWidget : function( table, name, refreshing ) {
|
||||||
@ -3182,7 +3198,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
|
/*! Widget: filter - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -4067,7 +4083,7 @@
|
|||||||
wo = c.widgetOptions,
|
wo = c.widgetOptions,
|
||||||
filterArray = $.isArray( filter ),
|
filterArray = $.isArray( filter ),
|
||||||
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
||||||
combinedFilters = ( filters || [] ).join( '' ); // combined filter values
|
currentFilters = filters || []; // current filter values
|
||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
@ -4081,7 +4097,10 @@
|
|||||||
// add filter array back into inputs
|
// add filter array back into inputs
|
||||||
if ( filterArray ) {
|
if ( filterArray ) {
|
||||||
ts.setFilters( table, filters, false, skipFirst !== true );
|
ts.setFilters( table, filters, false, skipFirst !== true );
|
||||||
if ( !wo.filter_initialized ) { c.lastCombinedFilter = ''; }
|
if ( !wo.filter_initialized ) {
|
||||||
|
c.lastSearch = [];
|
||||||
|
c.lastCombinedFilter = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( wo.filter_hideFilters ) {
|
if ( wo.filter_hideFilters ) {
|
||||||
// show/hide filter row as needed
|
// show/hide filter row as needed
|
||||||
@ -4091,11 +4110,11 @@
|
|||||||
}
|
}
|
||||||
// return if the last search is the same; but filter === false when updating the search
|
// return if the last search is the same; but filter === false when updating the search
|
||||||
// see example-widget-filter.html filter toggle buttons
|
// see example-widget-filter.html filter toggle buttons
|
||||||
if ( c.lastCombinedFilter === combinedFilters && filter !== false ) {
|
if ( c.lastSearch.join(',') === currentFilters.join(',') && filter !== false ) {
|
||||||
return;
|
return;
|
||||||
} else if ( filter === false ) {
|
} else if ( filter === false ) {
|
||||||
// force filter refresh
|
// force filter refresh
|
||||||
c.lastCombinedFilter = null;
|
c.lastCombinedFilter = '';
|
||||||
c.lastSearch = [];
|
c.lastSearch = [];
|
||||||
}
|
}
|
||||||
// define filter inside it is false
|
// define filter inside it is false
|
||||||
@ -4112,11 +4131,11 @@
|
|||||||
if ( c.showProcessing ) {
|
if ( c.showProcessing ) {
|
||||||
// give it time for the processing icon to kick in
|
// give it time for the processing icon to kick in
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}, 30 );
|
}, 30 );
|
||||||
} else {
|
} else {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4438,9 +4457,11 @@
|
|||||||
}
|
}
|
||||||
return showRow;
|
return showRow;
|
||||||
},
|
},
|
||||||
findRows: function( table, filters, combinedFilters ) {
|
findRows: function( table, filters, currentFilters ) {
|
||||||
if ( table.config.lastCombinedFilter === combinedFilters ||
|
if (
|
||||||
!table.config.widgetOptions.filter_initialized ) {
|
table.config.lastSearch.join(',') === ( currentFilters || [] ).join(',') ||
|
||||||
|
!table.config.widgetOptions.filter_initialized
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
||||||
@ -4494,8 +4515,7 @@
|
|||||||
// filtered rows count
|
// filtered rows count
|
||||||
c.filteredRows = 0;
|
c.filteredRows = 0;
|
||||||
c.totalRows = 0;
|
c.totalRows = 0;
|
||||||
// combindedFilters are undefined on init
|
currentFilters = ( storedFilters || [] );
|
||||||
combinedFilters = ( storedFilters || [] ).join( '' );
|
|
||||||
|
|
||||||
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
||||||
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
||||||
@ -4508,7 +4528,7 @@
|
|||||||
return el[ columnIndex ].$row.get();
|
return el[ columnIndex ].$row.get();
|
||||||
}) );
|
}) );
|
||||||
|
|
||||||
if ( combinedFilters === '' || wo.filter_serversideFiltering ) {
|
if ( currentFilters.join('') === '' || wo.filter_serversideFiltering ) {
|
||||||
$rows
|
$rows
|
||||||
.removeClass( wo.filter_filteredRow )
|
.removeClass( wo.filter_filteredRow )
|
||||||
.not( '.' + c.cssChildRow )
|
.not( '.' + c.cssChildRow )
|
||||||
@ -4683,7 +4703,8 @@
|
|||||||
c.totalRows += $rows.length;
|
c.totalRows += $rows.length;
|
||||||
ts.processTbody( table, $tbody, false );
|
ts.processTbody( table, $tbody, false );
|
||||||
}
|
}
|
||||||
c.lastCombinedFilter = combinedFilters; // save last search
|
// lastCombinedFilter is no longer used internally
|
||||||
|
c.lastCombinedFilter = storedFilters.join(''); // save last search
|
||||||
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
||||||
c.lastSearch = storedFilters;
|
c.lastSearch = storedFilters;
|
||||||
c.$table.data( 'lastSearch', storedFilters );
|
c.$table.data( 'lastSearch', storedFilters );
|
||||||
@ -4983,7 +5004,7 @@
|
|||||||
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
||||||
// setFilters called, but last search is exactly the same as the current
|
// setFilters called, but last search is exactly the same as the current
|
||||||
// fixes issue #733 & #903 where calling update causes the input values to reset
|
// fixes issue #733 & #903 where calling update causes the input values to reset
|
||||||
( $.isArray(setFilters) && setFilters.join('') === c.lastCombinedFilter ) ) {
|
( $.isArray(setFilters) && setFilters.join(',') === c.lastSearch.join(',') ) ) {
|
||||||
return $( table ).data( 'lastSearch' );
|
return $( table ).data( 'lastSearch' );
|
||||||
}
|
}
|
||||||
if ( c ) {
|
if ( c ) {
|
||||||
|
8
dist/js/jquery.tablesorter.combined.min.js
vendored
8
dist/js/jquery.tablesorter.combined.min.js
vendored
File diff suppressed because one or more lines are too long
52
dist/js/jquery.tablesorter.js
vendored
52
dist/js/jquery.tablesorter.js
vendored
@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
}(function(jQuery) {
|
}(function(jQuery) {
|
||||||
|
|
||||||
/*! TableSorter (FORK) v2.28.5 *//*
|
/*! TableSorter (FORK) v2.28.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -32,7 +32,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.28.5',
|
version : '2.28.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -372,7 +372,17 @@
|
|||||||
.bind( 'sortReset' + namespace, function( e, callback ) {
|
.bind( 'sortReset' + namespace, function( e, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// using this.config to ensure functions are getting a non-cached version of the config
|
// using this.config to ensure functions are getting a non-cached version of the config
|
||||||
ts.sortReset( this.config, callback );
|
ts.sortReset( this.config, function( table ) {
|
||||||
|
if (table.isApplyingWidgets) {
|
||||||
|
// multiple triggers in a row... filterReset, then sortReset - see #1361
|
||||||
|
// wait to update widgets
|
||||||
|
setTimeout( function() {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}, 100 );
|
||||||
|
} else {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -441,7 +451,7 @@
|
|||||||
var tmp = $.extend( true, {}, c.originalSettings );
|
var tmp = $.extend( true, {}, c.originalSettings );
|
||||||
// restore original settings; this clears out current settings, but does not clear
|
// restore original settings; this clears out current settings, but does not clear
|
||||||
// values saved to storage.
|
// values saved to storage.
|
||||||
c = $.extend( true, ts.defaults, tmp );
|
c = $.extend( true, {}, ts.defaults, tmp );
|
||||||
c.originalSettings = tmp;
|
c.originalSettings = tmp;
|
||||||
this.hasInitialized = false;
|
this.hasInitialized = false;
|
||||||
// setup the entire table again
|
// setup the entire table again
|
||||||
@ -676,8 +686,9 @@
|
|||||||
for ( indx = 0; indx < max; indx++ ) {
|
for ( indx = 0; indx < max; indx++ ) {
|
||||||
header = c.$headerIndexed[ colIndex ];
|
header = c.$headerIndexed[ colIndex ];
|
||||||
if ( header && header.length ) {
|
if ( header && header.length ) {
|
||||||
// get column indexed table cell
|
// get column indexed table cell; adding true parameter fixes #1362 but
|
||||||
configHeaders = ts.getColumnData( table, c.headers, colIndex );
|
// it would break backwards compatibility...
|
||||||
|
configHeaders = ts.getColumnData( table, c.headers, colIndex ); // , true );
|
||||||
// get column parser/extractor
|
// get column parser/extractor
|
||||||
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
||||||
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
||||||
@ -1778,6 +1789,10 @@
|
|||||||
ts.setHeadersCss( c );
|
ts.setHeadersCss( c );
|
||||||
ts.multisort( c );
|
ts.multisort( c );
|
||||||
ts.appendCache( c );
|
ts.appendCache( c );
|
||||||
|
var indx;
|
||||||
|
for (indx = 0; indx < c.columns; indx++) {
|
||||||
|
c.sortVars[ indx ].count = -1;
|
||||||
|
}
|
||||||
if ( $.isFunction( callback ) ) {
|
if ( $.isFunction( callback ) ) {
|
||||||
callback( c.table );
|
callback( c.table );
|
||||||
}
|
}
|
||||||
@ -1920,14 +1935,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
applyWidgetOptions : function( table ) {
|
applyWidgetOptions : function( table ) {
|
||||||
var indx, widget,
|
var indx, widget, wo,
|
||||||
c = table.config,
|
c = table.config,
|
||||||
len = c.widgets.length;
|
len = c.widgets.length;
|
||||||
if ( len ) {
|
if ( len ) {
|
||||||
for ( indx = 0; indx < len; indx++ ) {
|
for ( indx = 0; indx < len; indx++ ) {
|
||||||
widget = ts.getWidgetById( c.widgets[ indx ] );
|
widget = ts.getWidgetById( c.widgets[ indx ] );
|
||||||
if ( widget && widget.options ) {
|
if ( widget && widget.options ) {
|
||||||
c.widgetOptions = $.extend( true, {}, widget.options, c.widgetOptions );
|
wo = $.extend( {}, widget.options );
|
||||||
|
c.widgetOptions = $.extend( true, wo, c.widgetOptions );
|
||||||
// add widgetOptions to defaults for option validator
|
// add widgetOptions to defaults for option validator
|
||||||
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
||||||
}
|
}
|
||||||
@ -2050,22 +2066,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
||||||
// callback executed on init only
|
|
||||||
if ( !init && typeof callback === 'function' ) {
|
|
||||||
callback( table );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
c.timerReady = setTimeout( function() {
|
c.timerReady = setTimeout( function() {
|
||||||
table.isApplyingWidgets = false;
|
table.isApplyingWidgets = false;
|
||||||
$.data( table, 'lastWidgetApplication', new Date() );
|
$.data( table, 'lastWidgetApplication', new Date() );
|
||||||
c.$table.triggerHandler( 'tablesorter-ready' );
|
c.$table.triggerHandler( 'tablesorter-ready' );
|
||||||
|
// callback executed on init only
|
||||||
|
if ( !init && typeof callback === 'function' ) {
|
||||||
|
callback( table );
|
||||||
|
}
|
||||||
|
if ( c.debug ) {
|
||||||
|
widget = c.widgets.length;
|
||||||
|
console.log( 'Completed ' +
|
||||||
|
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||||
|
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||||
|
}
|
||||||
}, 10 );
|
}, 10 );
|
||||||
if ( c.debug ) {
|
|
||||||
widget = c.widgets.length;
|
|
||||||
console.log( 'Completed ' +
|
|
||||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
|
||||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
removeWidget : function( table, name, refreshing ) {
|
removeWidget : function( table, name, refreshing ) {
|
||||||
|
4
dist/js/jquery.tablesorter.min.js
vendored
4
dist/js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
37
dist/js/jquery.tablesorter.widgets.js
vendored
37
dist/js/jquery.tablesorter.widgets.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
/*! tablesorter (FORK) - updated 04-02-2017 (v2.28.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -387,7 +387,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
|
/*! Widget: filter - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -1272,7 +1272,7 @@
|
|||||||
wo = c.widgetOptions,
|
wo = c.widgetOptions,
|
||||||
filterArray = $.isArray( filter ),
|
filterArray = $.isArray( filter ),
|
||||||
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
||||||
combinedFilters = ( filters || [] ).join( '' ); // combined filter values
|
currentFilters = filters || []; // current filter values
|
||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
@ -1286,7 +1286,10 @@
|
|||||||
// add filter array back into inputs
|
// add filter array back into inputs
|
||||||
if ( filterArray ) {
|
if ( filterArray ) {
|
||||||
ts.setFilters( table, filters, false, skipFirst !== true );
|
ts.setFilters( table, filters, false, skipFirst !== true );
|
||||||
if ( !wo.filter_initialized ) { c.lastCombinedFilter = ''; }
|
if ( !wo.filter_initialized ) {
|
||||||
|
c.lastSearch = [];
|
||||||
|
c.lastCombinedFilter = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( wo.filter_hideFilters ) {
|
if ( wo.filter_hideFilters ) {
|
||||||
// show/hide filter row as needed
|
// show/hide filter row as needed
|
||||||
@ -1296,11 +1299,11 @@
|
|||||||
}
|
}
|
||||||
// return if the last search is the same; but filter === false when updating the search
|
// return if the last search is the same; but filter === false when updating the search
|
||||||
// see example-widget-filter.html filter toggle buttons
|
// see example-widget-filter.html filter toggle buttons
|
||||||
if ( c.lastCombinedFilter === combinedFilters && filter !== false ) {
|
if ( c.lastSearch.join(',') === currentFilters.join(',') && filter !== false ) {
|
||||||
return;
|
return;
|
||||||
} else if ( filter === false ) {
|
} else if ( filter === false ) {
|
||||||
// force filter refresh
|
// force filter refresh
|
||||||
c.lastCombinedFilter = null;
|
c.lastCombinedFilter = '';
|
||||||
c.lastSearch = [];
|
c.lastSearch = [];
|
||||||
}
|
}
|
||||||
// define filter inside it is false
|
// define filter inside it is false
|
||||||
@ -1317,11 +1320,11 @@
|
|||||||
if ( c.showProcessing ) {
|
if ( c.showProcessing ) {
|
||||||
// give it time for the processing icon to kick in
|
// give it time for the processing icon to kick in
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}, 30 );
|
}, 30 );
|
||||||
} else {
|
} else {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1643,9 +1646,11 @@
|
|||||||
}
|
}
|
||||||
return showRow;
|
return showRow;
|
||||||
},
|
},
|
||||||
findRows: function( table, filters, combinedFilters ) {
|
findRows: function( table, filters, currentFilters ) {
|
||||||
if ( table.config.lastCombinedFilter === combinedFilters ||
|
if (
|
||||||
!table.config.widgetOptions.filter_initialized ) {
|
table.config.lastSearch.join(',') === ( currentFilters || [] ).join(',') ||
|
||||||
|
!table.config.widgetOptions.filter_initialized
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
||||||
@ -1699,8 +1704,7 @@
|
|||||||
// filtered rows count
|
// filtered rows count
|
||||||
c.filteredRows = 0;
|
c.filteredRows = 0;
|
||||||
c.totalRows = 0;
|
c.totalRows = 0;
|
||||||
// combindedFilters are undefined on init
|
currentFilters = ( storedFilters || [] );
|
||||||
combinedFilters = ( storedFilters || [] ).join( '' );
|
|
||||||
|
|
||||||
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
||||||
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
||||||
@ -1713,7 +1717,7 @@
|
|||||||
return el[ columnIndex ].$row.get();
|
return el[ columnIndex ].$row.get();
|
||||||
}) );
|
}) );
|
||||||
|
|
||||||
if ( combinedFilters === '' || wo.filter_serversideFiltering ) {
|
if ( currentFilters.join('') === '' || wo.filter_serversideFiltering ) {
|
||||||
$rows
|
$rows
|
||||||
.removeClass( wo.filter_filteredRow )
|
.removeClass( wo.filter_filteredRow )
|
||||||
.not( '.' + c.cssChildRow )
|
.not( '.' + c.cssChildRow )
|
||||||
@ -1888,7 +1892,8 @@
|
|||||||
c.totalRows += $rows.length;
|
c.totalRows += $rows.length;
|
||||||
ts.processTbody( table, $tbody, false );
|
ts.processTbody( table, $tbody, false );
|
||||||
}
|
}
|
||||||
c.lastCombinedFilter = combinedFilters; // save last search
|
// lastCombinedFilter is no longer used internally
|
||||||
|
c.lastCombinedFilter = storedFilters.join(''); // save last search
|
||||||
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
||||||
c.lastSearch = storedFilters;
|
c.lastSearch = storedFilters;
|
||||||
c.$table.data( 'lastSearch', storedFilters );
|
c.$table.data( 'lastSearch', storedFilters );
|
||||||
@ -2188,7 +2193,7 @@
|
|||||||
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
||||||
// setFilters called, but last search is exactly the same as the current
|
// setFilters called, but last search is exactly the same as the current
|
||||||
// fixes issue #733 & #903 where calling update causes the input values to reset
|
// fixes issue #733 & #903 where calling update causes the input values to reset
|
||||||
( $.isArray(setFilters) && setFilters.join('') === c.lastCombinedFilter ) ) {
|
( $.isArray(setFilters) && setFilters.join(',') === c.lastSearch.join(',') ) ) {
|
||||||
return $( table ).data( 'lastSearch' );
|
return $( table ).data( 'lastSearch' );
|
||||||
}
|
}
|
||||||
if ( c ) {
|
if ( c ) {
|
||||||
|
6
dist/js/jquery.tablesorter.widgets.min.js
vendored
6
dist/js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
/*! Parser: two digit year - updated 11/26/2016 (v2.28.0) */
|
/*! Parser: two digit year - updated 11/26/2016 (v2.28.0) */
|
||||||
!function(a){"use strict";var b=50,c=a.tablesorter,d=(new Date).getFullYear();c.defaults.dataRange="",c.dates||(c.dates={}),c.dates.regxxxxyy=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{2})/,c.dates.regyyxxxx=/(\d{2})[\/\s](\d{1,2})[\/\s](\d{1,2})/,c.formatDate=function(a,c,e,f){if(a){var g,h,i=a.replace(/\s+/g," ").replace(/[-.,]/g,"/").replace(c,e),j=new Date(i);if(j instanceof Date&&isFinite(j)){for(g=j.getFullYear(),h=f&&f.config.dateRange||b;d-g>h;)g+=100;return j.setFullYear(g)}}return a},a.tablesorter.addParser({id:"ddmmyy",is:function(){return!1},format:function(a,b){return c.formatDate(a,c.dates.regxxxxyy,"$2/$1/19$3",b)},type:"numeric"}),a.tablesorter.addParser({id:"mmddyy",is:function(){return!1},format:function(a,b){return c.formatDate(a,c.dates.regxxxxyy,"$1/$2/19$3",b)},type:"numeric"}),a.tablesorter.addParser({id:"yymmdd",is:function(){return!1},format:function(a,b){return c.formatDate(a,c.dates.regyyxxxx,"$2/$3/19$1",b)},type:"numeric"})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter,c=(new Date).getFullYear();b.defaults.dataRange="",b.dates||(b.dates={}),b.dates.regxxxxyy=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{2})/,b.dates.regyyxxxx=/(\d{2})[\/\s](\d{1,2})[\/\s](\d{1,2})/,b.formatDate=function(a,b,d,e){if(a){var f,g,h=a.replace(/\s+/g," ").replace(/[-.,]/g,"/").replace(b,d),i=new Date(h);if(i instanceof Date&&isFinite(i)){for(f=i.getFullYear(),g=e&&e.config.dateRange||50;c-f>g;)f+=100;return i.setFullYear(f)}}return a},a.tablesorter.addParser({id:"ddmmyy",is:function(){return!1},format:function(a,c){return b.formatDate(a,b.dates.regxxxxyy,"$2/$1/19$3",c)},type:"numeric"}),a.tablesorter.addParser({id:"mmddyy",is:function(){return!1},format:function(a,c){return b.formatDate(a,b.dates.regxxxxyy,"$1/$2/19$3",c)},type:"numeric"}),a.tablesorter.addParser({id:"yymmdd",is:function(){return!1},format:function(a,c){return b.formatDate(a,b.dates.regyyxxxx,"$2/$3/19$1",c)},type:"numeric"})}(jQuery);
|
@ -1,2 +1,2 @@
|
|||||||
/*! Parser: ignoreArticles - updated 9/15/2014 (v2.17.8) */
|
/*! Parser: ignoreArticles - updated 9/15/2014 (v2.17.8) */
|
||||||
!function(a){"use strict";var b=a.tablesorter;b.ignoreArticles={en:"the, a, an",de:"der, die, das, des, dem, den, ein, eine, einer, eines, einem, einen",nl:"de, het, de, een",es:"el, la, lo, los, las, un, una, unos, unas",pt:"o, a, os, as, um, uma, uns, umas",fr:"le, la, l'_, les, un, une, des",it:"il, lo, la, l'_, i, gli, le, un', uno, una, un",hu:"a, az, egy"},b.addParser({id:"ignoreArticles",is:function(){return!1},format:function(c,d,e,f){var g,h,i,j=d.config,k=c||"";return j.headers&&j.headers[f]&&j.headers[f].ignoreArticlesRegex||(j.headers||(j.headers={}),j.headers[f]||(j.headers[f]={}),i=b.getData(j.$headers.eq(f),b.getColumnData(d,j.headers,f),"ignoreArticles"),g=(b.ignoreArticles[i]||"the, a, an")+"",j.headers[f].ignoreArticlesRegex=new RegExp("^("+a.trim(g.split(/\s*\,\s*/).join("\\s|")+"\\s").replace("_\\s","")+")","i"),h=b.getData(j.$headers.eq(f),b.getColumnData(d,j.headers,f),"ignoreArticlesExcept"),j.headers[f].ignoreArticlesRegex2=""!==h?new RegExp("^("+h.replace(/\s/g,"\\s")+")","i"):""),g=j.headers[f].ignoreArticlesRegex,!g.test(k)||(h=j.headers[f].ignoreArticlesRegex2,h&&h.test(k))?k:k.replace(g,"")},type:"text"})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter;b.ignoreArticles={en:"the, a, an",de:"der, die, das, des, dem, den, ein, eine, einer, eines, einem, einen",nl:"de, het, de, een",es:"el, la, lo, los, las, un, una, unos, unas",pt:"o, a, os, as, um, uma, uns, umas",fr:"le, la, l'_, les, un, une, des",it:"il, lo, la, l'_, i, gli, le, un', uno, una, un",hu:"a, az, egy"},b.addParser({id:"ignoreArticles",is:function(){return!1},format:function(c,d,e,f){var g,h,i,j=d.config,k=c||"";return j.headers&&j.headers[f]&&j.headers[f].ignoreArticlesRegex||(j.headers||(j.headers={}),j.headers[f]||(j.headers[f]={}),i=b.getData(j.$headers.eq(f),b.getColumnData(d,j.headers,f),"ignoreArticles"),g=(b.ignoreArticles[i]||"the, a, an")+"",j.headers[f].ignoreArticlesRegex=new RegExp("^("+a.trim(g.split(/\s*\,\s*/).join("\\s|")+"\\s").replace("_\\s","")+")","i"),h=b.getData(j.$headers.eq(f),b.getColumnData(d,j.headers,f),"ignoreArticlesExcept"),j.headers[f].ignoreArticlesRegex2=""!==h?new RegExp("^("+h.replace(/\s/g,"\\s")+")","i"):""),g=j.headers[f].ignoreArticlesRegex,!g.test(k)||(h=j.headers[f].ignoreArticlesRegex2)&&h.test(k)?k:k.replace(g,"")},type:"text"})}(jQuery);
|
2
dist/js/parsers/parser-input-select.min.js
vendored
2
dist/js/parsers/parser-input-select.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Parser: input & select - updated 11/26/2016 (v2.28.0) */
|
/*! Parser: input & select - updated 11/26/2016 (v2.28.0) */
|
||||||
!function(a){"use strict";var b=function(a,b,c){};a.tablesorter.addParser({id:"inputs",is:function(){return!1},format:function(b,c,d){var e=a(d).find("input");return e.length?e.val():b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"inputs-numeric",is:function(){return!1},format:function(b,c,d){var e=a(d).find("input"),f=e.length?e.val():b,g=a.tablesorter.formatFloat((f||"").replace(/[^\w,. \-()]/g,""),c);return b&&"number"==typeof g?g:b?a.trim(b&&c.config.ignoreCase?b.toLocaleLowerCase():b):b},parsed:!0,type:"numeric"}),a.tablesorter.addParser({id:"checkbox",is:function(){return!1},format:function(b,c,d){var e=a(d),f=c.config.widgetOptions,g=f.group_checkbox?f.group_checkbox:["checked","unchecked"],h=e.find('input[type="checkbox"]'),i=h.length?h[0].checked:"";return h.length?g[i?0:1]:b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"select",is:function(){return!1},format:function(b,c,d){var e=a(d).find("select");return e.length?e.val():b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"select-text",is:function(){return!1},format:function(b,c,d){var e=a(d).find("select");return e.length?e.find("option:selected").text()||"":b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"textarea",is:function(){return!1},format:function(b,c,d){var e=a(d).find("textarea");return e.length?e.val():b},parsed:!0,type:"text"}),a.tablesorter.defaults.checkboxClass="",a.tablesorter.defaults.checkboxVisible="",a(function(){if(a.fn.on){var c=function(a,b,c,d){a.toggleClass(b+"-"+c,d),(a[0].className||"").match(b+"-")?a.addClass(b):a.removeClass(b)},d=function(b,c){var d=window.navigator.userAgent,e=b.children("tbody").children(":visible"),f=e.length;b.children("thead").find('input[type="checkbox"]').each(function(){var b=a(this).closest("td, th").attr("data-column"),g=e.filter("."+c+"-"+b).length,h=g===f&&f>0;0===g||h?(this.checked=h,this.indeterminate=!1):(this.checked=!(d.indexOf("Trident/")>-1||d.indexOf("Edge/")>-1),this.indeterminate=!0)})};a("table").on("tablesorter-initialized updateComplete",function(){this.tablesorterBusy=!1;var e=".parser-forms";a(this).children("tbody").off(e).on("mouseleave"+e,function(b){"TBODY"===b.target.nodeName&&a(":focus").blur()}).on("focus"+e,"select, input:not([type=checkbox]), textarea",function(){a(this).data("ts-original-value",this.value)}).on("blur"+e,"input:not([type=checkbox]), textarea",function(){this.value=a(this).data("ts-original-value")}).on("change keyup ".split(" ").join(e+" "),"select, input, textarea",function(e){if(27===e.which&&("INPUT"!==this.nodeName||"checkbox"!==this.type))return void(this.value=a(this).data("ts-original-value"));if("change"===e.type||"keyup"===e.type&&13===e.which&&("INPUT"===e.target.nodeName||"TEXTAREA"===e.target.nodeName&&e.altKey)){var f,g,h=a(e.target),i="checkbox"===e.target.type,j=h.closest("td"),k=j.closest("table"),l=j[0].cellIndex,m=k[0].config||!1,n=k.length&&k[0].tablesorterBusy,o=m&&m.$headerIndexed&&m.$headerIndexed[l]||[],p=i?e.target.checked:h.val();if(a.isEmptyObject(m)||n!==!1)return;if(i&&(g=m.checkboxClass||"checked",c(j.closest("tr"),g,l,p),d(k,g)),o.length&&(o.hasClass("parser-false")||o.hasClass("sorter-false")&&o.hasClass("filter-false"))||"change"===e.type&&m.table.isUpdating)return;(m&&p!==h.data("ts-original-value")||i)&&(h.data("ts-original-value",p),k[0].tablesorterBusy=!0,a.tablesorter.updateCell(m,j,f,function(){b(e,k,h),k[0].tablesorterBusy=!1}))}}),a(this).children("thead").find('input[type="checkbox"]')&&a(this).off(e).on("tablesorter-ready"+e,function(){var b,c=a(this),e=c.length&&c[0].config;a.isEmptyObject(e)||(this.tablesorterBusy=!0,b=e&&e.checkboxClass||"checked",d(c,b),this.tablesorterBusy=!1)}).children("thead").off(e).on("click"+e+" change"+e,'input[type="checkbox"]',function(e){var f,g,h,i,j,k,l=a(this),m=l.closest("table"),n=m.length&&m[0].config,o=this.checked;return!(!m.length||!n||m[0].tablesorterBusy)&&(h=parseInt(l.closest("td, th").attr("data-column"),10),j="checkbox"===n.parsers[h].id,g=m.length&&n.checkboxVisible,m[0].tablesorterBusy=!0,i=m.children("tbody").children("tr"+("undefined"==typeof g||g===!0?":visible":"")).children(":nth-child("+(h+1)+")").find('input[type="checkbox"]').prop("checked",o),k=n.checkboxClass||"checked",i.each(function(){c(a(this).closest("tr"),k,h,o)}),d(m,k),j?a.tablesorter.update(n,f,function(){b(e,m,i),m[0].tablesorterBusy=!1}):(b(e,m,i),m[0].tablesorterBusy=!1),!0)})})}})}(jQuery);
|
!function(a){"use strict";a.tablesorter.addParser({id:"inputs",is:function(){return!1},format:function(b,c,d){var e=a(d).find("input");return e.length?e.val():b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"inputs-numeric",is:function(){return!1},format:function(b,c,d){var e=a(d).find("input"),f=e.length?e.val():b,g=a.tablesorter.formatFloat((f||"").replace(/[^\w,. \-()]/g,""),c);return b&&"number"==typeof g?g:b?a.trim(b&&c.config.ignoreCase?b.toLocaleLowerCase():b):b},parsed:!0,type:"numeric"}),a.tablesorter.addParser({id:"checkbox",is:function(){return!1},format:function(b,c,d){var e=a(d),f=c.config.widgetOptions,g=f.group_checkbox?f.group_checkbox:["checked","unchecked"],h=e.find('input[type="checkbox"]'),i=h.length?h[0].checked:"";return h.length?g[i?0:1]:b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"select",is:function(){return!1},format:function(b,c,d){var e=a(d).find("select");return e.length?e.val():b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"select-text",is:function(){return!1},format:function(b,c,d){var e=a(d).find("select");return e.length?e.find("option:selected").text()||"":b},parsed:!0,type:"text"}),a.tablesorter.addParser({id:"textarea",is:function(){return!1},format:function(b,c,d){var e=a(d).find("textarea");return e.length?e.val():b},parsed:!0,type:"text"}),a.tablesorter.defaults.checkboxClass="",a.tablesorter.defaults.checkboxVisible="",a(function(){if(a.fn.on){var b=function(a,b,c,d){a.toggleClass(b+"-"+c,d),(a[0].className||"").match(b+"-")?a.addClass(b):a.removeClass(b)},c=function(b,c){var d=window.navigator.userAgent,e=b.children("tbody").children(":visible"),f=e.length;b.children("thead").find('input[type="checkbox"]').each(function(){var b=a(this).closest("td, th").attr("data-column"),g=e.filter("."+c+"-"+b).length,h=g===f&&f>0;0===g||h?(this.checked=h,this.indeterminate=!1):(this.checked=!(d.indexOf("Trident/")>-1||d.indexOf("Edge/")>-1),this.indeterminate=!0)})};a("table").on("tablesorter-initialized updateComplete",function(){this.tablesorterBusy=!1;var d=".parser-forms";a(this).children("tbody").off(d).on("mouseleave"+d,function(b){"TBODY"===b.target.nodeName&&a(":focus").blur()}).on("focus"+d,"select, input:not([type=checkbox]), textarea",function(){a(this).data("ts-original-value",this.value)}).on("blur"+d,"input:not([type=checkbox]), textarea",function(){this.value=a(this).data("ts-original-value")}).on("change keyup ".split(" ").join(d+" "),"select, input, textarea",function(d){if(27===d.which&&("INPUT"!==this.nodeName||"checkbox"!==this.type))return void(this.value=a(this).data("ts-original-value"));if("change"===d.type||"keyup"===d.type&&13===d.which&&("INPUT"===d.target.nodeName||"TEXTAREA"===d.target.nodeName&&d.altKey)){var e,f=a(d.target),g="checkbox"===d.target.type,h=f.closest("td"),i=h.closest("table"),j=h[0].cellIndex,k=i[0].config||!1,l=i.length&&i[0].tablesorterBusy,m=k&&k.$headerIndexed&&k.$headerIndexed[j]||[],n=g?d.target.checked:f.val();if(a.isEmptyObject(k)||l!==!1)return;if(g&&(e=k.checkboxClass||"checked",b(h.closest("tr"),e,j,n),c(i,e)),m.length&&(m.hasClass("parser-false")||m.hasClass("sorter-false")&&m.hasClass("filter-false"))||"change"===d.type&&k.table.isUpdating)return;(k&&n!==f.data("ts-original-value")||g)&&(f.data("ts-original-value",n),i[0].tablesorterBusy=!0,a.tablesorter.updateCell(k,h,void 0,function(){i[0].tablesorterBusy=!1}))}}),a(this).children("thead").find('input[type="checkbox"]')&&a(this).off(d).on("tablesorter-ready"+d,function(){var b,d=a(this),e=d.length&&d[0].config;a.isEmptyObject(e)||(this.tablesorterBusy=!0,b=e&&e.checkboxClass||"checked",c(d,b),this.tablesorterBusy=!1)}).children("thead").off(d).on("click.parser-forms change"+d,'input[type="checkbox"]',function(d){var e,f,g,h,i,j=a(this),k=j.closest("table"),l=k.length&&k[0].config,m=this.checked;return!(!k.length||!l||k[0].tablesorterBusy)&&(f=parseInt(j.closest("td, th").attr("data-column"),10),h="checkbox"===l.parsers[f].id,e=k.length&&l.checkboxVisible,k[0].tablesorterBusy=!0,g=k.children("tbody").children("tr"+(void 0===e||e===!0?":visible":"")).children(":nth-child("+(f+1)+")").find('input[type="checkbox"]').prop("checked",m),i=l.checkboxClass||"checked",g.each(function(){b(a(this).closest("tr"),i,f,m)}),c(k,i),h?a.tablesorter.update(l,void 0,function(){k[0].tablesorterBusy=!1}):k[0].tablesorterBusy=!1,!0)})})}})}(jQuery);
|
2
dist/js/parsers/parser-leading-zeros.min.js
vendored
Normal file
2
dist/js/parsers/parser-leading-zeros.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/*! Parser: leading zeros - updated 4/2/2017 (v2.28.6) */
|
||||||
|
!function(a){"use strict";var b=a.tablesorter;b.addParser({id:"leadingZeros",is:function(){return!1},format:function(a,c){var d=(a||"").replace(b.regex.nondigit,""),e=b.formatFloat(d,c),f=e.toString();return isNaN(e)||e!=d||d.length===f.length||(e-=1e-10*(a.length-f.length)),e},type:"number"})}(jQuery);
|
2
dist/js/parsers/parser-metric.min.js
vendored
2
dist/js/parsers/parser-metric.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Parser: metric */
|
/*! Parser: metric */
|
||||||
!function(a){"use strict";var b={"Y|Yotta|yotta":[1e24,Math.pow(1024,8)],"Z|Zetta|zetta":[1e21,Math.pow(1024,7)],"E|Exa|exa":[1e18,Math.pow(1024,6)],"P|Peta|peta":[1e15,Math.pow(1024,5)],"T|Tera|tera":[1e12,Math.pow(1024,4)],"G|Giga|giga":[1e9,Math.pow(1024,3)],"M|Mega|mega":[1e6,Math.pow(1024,2)],"k|Kilo|kilo":[1e3,1024],"h|hecto":[100,100],"da|deka":[10,10],"d|deci":[.1,.1],"c|centi":[.01,.01],"m|milli":[.001,.001],"µ|micro":[1e-6,1e-6],"n|nano":[1e-9,1e-9],"p|pico":[1e-12,1e-12],"f|femto":[1e-15,1e-15],"a|atto":[1e-18,1e-18],"z|zepto":[1e-21,1e-21],"y|yocto":[1e-24,1e-24]},c="(\\d+)(\\s+)?([Zz]etta|[Ee]xa|[Pp]eta|[Tt]era|[Gg]iga|[Mm]ega|kilo|hecto|deka|deci|centi|milli|micro|nano|pico|femto|atto|zepto|yocto)(",d="(\\d+)(\\s+)?(Z|E|P|T|G|M|k|h|da|d|c|m|µ|n|p|f|a|z|y)(",e=/^[b|bit|byte|o|octet]/i;a.tablesorter.addParser({id:"metric",is:function(){return!1},format:function(f,g,h,i){var j,k,l,m,n="m|meter",o=a.tablesorter.formatFloat(f.replace(/[^\w,. \-()]/g,""),g),p=g.config.$headerIndexed[i],q=p.data("metric");if(q||(j=(p.attr("data-metric-name")||n).split("|"),l=p.attr("data-metric-name-full")||"",m=p.attr("data-metric-name-abbr")||"",q=[l||j[1]||j[0].substring(1),m||j[0]],k=e.test(q.join("")),q[2]=new RegExp(c+((""===l?"":l+"|"+m)||(k?q[0].toLowerCase()+"|"+q[0].toUpperCase():q[0])+"|"+(k?q[1].toLowerCase()+"|"+q[1].toUpperCase():q[1]))+")"),q[3]=new RegExp(d+(m||(k?q[1].toLowerCase()+"|"+q[1].toUpperCase():q[1]))+")"),p.data("metric",q)),j=f.match(q[2])||f.match(q[3]))for(n in b)if(j[3].match(n))return k=e.test(j[4])?1:0,o*b[n][k];return o},type:"numeric"})}(jQuery);
|
!function(a){"use strict";var b={"Y|Yotta|yotta":[1e24,Math.pow(1024,8)],"Z|Zetta|zetta":[1e21,Math.pow(1024,7)],"E|Exa|exa":[1e18,Math.pow(1024,6)],"P|Peta|peta":[1e15,Math.pow(1024,5)],"T|Tera|tera":[1e12,Math.pow(1024,4)],"G|Giga|giga":[1e9,Math.pow(1024,3)],"M|Mega|mega":[1e6,Math.pow(1024,2)],"k|Kilo|kilo":[1e3,1024],"h|hecto":[100,100],"da|deka":[10,10],"d|deci":[.1,.1],"c|centi":[.01,.01],"m|milli":[.001,.001],"µ|micro":[1e-6,1e-6],"n|nano":[1e-9,1e-9],"p|pico":[1e-12,1e-12],"f|femto":[1e-15,1e-15],"a|atto":[1e-18,1e-18],"z|zepto":[1e-21,1e-21],"y|yocto":[1e-24,1e-24]},c=/^[b|bit|byte|o|octet]/i;a.tablesorter.addParser({id:"metric",is:function(){return!1},format:function(d,e,f,g){var h,i,j,k,l="m|meter",m=a.tablesorter.formatFloat(d.replace(/[^\w,. \-()]/g,""),e),n=e.config.$headerIndexed[g],o=n.data("metric");if(o||(h=(n.attr("data-metric-name")||l).split("|"),j=n.attr("data-metric-name-full")||"",k=n.attr("data-metric-name-abbr")||"",o=[j||h[1]||h[0].substring(1),k||h[0]],i=c.test(o.join("")),o[2]=new RegExp("(\\d+)(\\s+)?([Zz]etta|[Ee]xa|[Pp]eta|[Tt]era|[Gg]iga|[Mm]ega|kilo|hecto|deka|deci|centi|milli|micro|nano|pico|femto|atto|zepto|yocto)("+((""===j?"":j+"|"+k)||(i?o[0].toLowerCase()+"|"+o[0].toUpperCase():o[0])+"|"+(i?o[1].toLowerCase()+"|"+o[1].toUpperCase():o[1]))+")"),o[3]=new RegExp("(\\d+)(\\s+)?(Z|E|P|T|G|M|k|h|da|d|c|m|µ|n|p|f|a|z|y)("+(k||(i?o[1].toLowerCase()+"|"+o[1].toUpperCase():o[1]))+")"),n.data("metric",o)),h=d.match(o[2])||d.match(o[3]))for(l in b)if(h[3].match(l))return i=c.test(h[4])?1:0,m*b[l][i];return m},type:"numeric"})}(jQuery);
|
2
dist/js/parsers/parser-network.min.js
vendored
2
dist/js/parsers/parser-network.min.js
vendored
@ -1,5 +1,5 @@
|
|||||||
/*! Parser: network - updated 5/17/2015 (v2.22.0) */
|
/*! Parser: network - updated 5/17/2015 (v2.22.0) */
|
||||||
!function(a){"use strict";var b,c,d=a.tablesorter;/*! IPv6 Address parser (WIP) */
|
!function(a){"use strict";var b,c,d=a.tablesorter;/*! IPv6 Address parser (WIP) */
|
||||||
a.extend(d.regex,{},{ipv4Validate:/((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})/,ipv4Extract:/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/,ipv6Validate:/^\s*((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/i}),d.addParser({id:"ipv6Address",is:function(a){return d.regex.ipv6Validate.test(a)},format:function(a,b){var c,e,f,g,h,i=!!b&&("boolean"==typeof b?b:b&&b.config.ipv6HexFormat||!1),j="",k="",l=8;if(a=a.replace(/\s*/g,""),d.regex.ipv4Validate.test(a)){for(g=a.match(d.regex.ipv4Extract),e="",c=1;c<g.length;c++)e+=("00"+parseInt(g[c],10).toString(16)).slice(-2)+(2===c?":":"");a=a.replace(d.regex.ipv4Extract,e)}if(a.indexOf("::")==-1)j=a;else{for(f=a.split("::"),h=0,c=0;c<f.length;c++)h+=f[c].split(":").length;for(j+=f[0]+":",c=0;c<l-h;c++)j+="0000:";j+=f[1]}for(g=j.split(":"),c=0;c<l;c++)g[c]=i?("0000"+g[c]).slice(-4):("00000"+(parseInt(g[c],16)||0)).slice(-5),k+=c!=l-1?g[c]+":":g[c];return i?k:k.replace(/:/g,"")},type:"numeric"}),c=function(a){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(a)},b=function(a,b){var c,e=a?a.split("."):"",f="",g=e.length;for(c=0;c<g;c++)f+=("000"+e[c]).slice(-3);return a?d.formatFloat(f,b):a},/*! Parser: ipv4Address (a.k.a. ipAddress) */
|
a.extend(d.regex,{},{ipv4Validate:/((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})/,ipv4Extract:/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/,ipv6Validate:/^\s*((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/i}),d.addParser({id:"ipv6Address",is:function(a){return d.regex.ipv6Validate.test(a)},format:function(a,b){var c,e,f,g,h,i=!!b&&("boolean"==typeof b?b:b&&b.config.ipv6HexFormat||!1),j="",k="";if(a=a.replace(/\s*/g,""),d.regex.ipv4Validate.test(a)){for(g=a.match(d.regex.ipv4Extract),e="",c=1;c<g.length;c++)e+=("00"+parseInt(g[c],10).toString(16)).slice(-2)+(2===c?":":"");a=a.replace(d.regex.ipv4Extract,e)}if(a.indexOf("::")==-1)j=a;else{for(f=a.split("::"),h=0,c=0;c<f.length;c++)h+=f[c].split(":").length;for(j+=f[0]+":",c=0;c<8-h;c++)j+="0000:";j+=f[1]}for(g=j.split(":"),c=0;c<8;c++)g[c]=i?("0000"+g[c]).slice(-4):("00000"+(parseInt(g[c],16)||0)).slice(-5),k+=7!=c?g[c]+":":g[c];return i?k:k.replace(/:/g,"")},type:"numeric"}),c=function(a){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(a)},b=function(a,b){var c,e=a?a.split("."):"",f="",g=e.length;for(c=0;c<g;c++)f+=("000"+e[c]).slice(-3);return a?d.formatFloat(f,b):a},/*! Parser: ipv4Address (a.k.a. ipAddress) */
|
||||||
d.addParser({id:"ipAddress",is:c,format:b,type:"numeric"}),d.addParser({id:"ipv4Address",is:c,format:b,type:"numeric"}),/*! Parser: MAC address */
|
d.addParser({id:"ipAddress",is:c,format:b,type:"numeric"}),d.addParser({id:"ipv4Address",is:c,format:b,type:"numeric"}),/*! Parser: MAC address */
|
||||||
d.addParser({id:"MAC",is:function(){return!1},format:function(a){var b,c,d="",e=(a||"").replace(/[:.-]/g,"").match(/\w{2}/g);if(e){for(c=e.length,b=0;b<c;b++)d+=("000"+parseInt(e[b],16)).slice(-3);return d}return a},type:"numeric"})}(jQuery);
|
d.addParser({id:"MAC",is:function(){return!1},format:function(a){var b,c,d="",e=(a||"").replace(/[:.-]/g,"").match(/\w{2}/g);if(e){for(c=e.length,b=0;b<c;b++)d+=("000"+parseInt(e[b],16)).slice(-3);return d}return a},type:"numeric"})}(jQuery);
|
2
dist/js/parsers/parser-roman.min.js
vendored
2
dist/js/parsers/parser-roman.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Parser: roman - updated 6/28/MMXIV (v2.17.3) */
|
/*! Parser: roman - updated 6/28/MMXIV (v2.17.3) */
|
||||||
!function(a){"use strict";var b=/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/i,c=/\b([MCDLXVI]+\b)/gi,d={I:1,V:5,X:10,L:50,C:100,D:500,M:1e3};a.tablesorter.addParser({id:"roman",is:function(){return!1},format:function(a){var c,e=a.toUpperCase().split(""),f=0;if(!a||!b.test(a))return a;for(;e.length;)c=d[e.shift()],f+=c*(c<d[e[0]]?-1:1);return f},type:"numeric"}),a.tablesorter.addParser({id:"roman-ignore",is:function(){return!1},format:function(e,f,g,h){var i,j,k=f.config,l=a.isArray(k.roman_ignore)?k.roman_ignore[h]:0,m=(isNaN(l)?a.trim(e.replace(l,"")):a.trim(e.substring(0,e.length-l))).match(c),n=b.test(m),o=0;if(!n)return e;for(j=m[0],m=j.toUpperCase().split("");m.length;)i=d[m.shift()],i&&(o+=i*(i<d[m[0]]?-1:1));return o?e.replace(j,o):e},type:"text"}),a.tablesorter.addParser({id:"roman-extract",is:function(){return!1},format:function(e){var f,g=a.grep(e.split(/\b/),function(a,c){return b.test(a)?a:""}).join("").match(c),h=g?b.test(g):0,i=0;if(!h)return e;for(g=g[0].toUpperCase().split("");g.length;)f=d[g.shift()],f&&(i+=f*(f<d[g[0]]?-1:1));return i?i:e},type:"numeric"})}(jQuery);
|
!function(a){"use strict";var b=/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/i,c={I:1,V:5,X:10,L:50,C:100,D:500,M:1e3};a.tablesorter.addParser({id:"roman",is:function(){return!1},format:function(a){var d,e=a.toUpperCase().split(""),f=0;if(!a||!b.test(a))return a;for(;e.length;)d=c[e.shift()],f+=d*(d<c[e[0]]?-1:1);return f},type:"numeric"}),a.tablesorter.addParser({id:"roman-ignore",is:function(){return!1},format:function(d,e,f,g){var h,i,j=e.config,k=a.isArray(j.roman_ignore)?j.roman_ignore[g]:0,l=(isNaN(k)?a.trim(d.replace(k,"")):a.trim(d.substring(0,d.length-k))).match(/\b([MCDLXVI]+\b)/gi),m=b.test(l),n=0;if(!m)return d;for(i=l[0],l=i.toUpperCase().split("");l.length;)(h=c[l.shift()])&&(n+=h*(h<c[l[0]]?-1:1));return n?d.replace(i,n):d},type:"text"}),a.tablesorter.addParser({id:"roman-extract",is:function(){return!1},format:function(d){var e,f=a.grep(d.split(/\b/),function(a,c){return b.test(a)?a:""}).join("").match(/\b([MCDLXVI]+\b)/gi),g=f?b.test(f):0,h=0;if(!g)return d;for(f=f[0].toUpperCase().split("");f.length;)(e=c[f.shift()])&&(h+=e*(e<c[f[0]]?-1:1));return h||d},type:"numeric"})}(jQuery);
|
2
dist/js/widgets/widget-alignChar.min.js
vendored
2
dist/js/widgets/widget-alignChar.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Widget: alignChar - updated 2/7/2015 (v2.19.0) */
|
/*! Widget: alignChar - updated 2/7/2015 (v2.19.0) */
|
||||||
!function(a){"use strict";var b=a.tablesorter;b.alignChar={init:function(c,d,e){d.$headers.filter("["+e.alignChar_charAttrib+"]").each(function(){var f=a(this),g={column:this.column,align:f.attr(e.alignChar_charAttrib),alignIndex:parseInt(f.attr(e.alignChar_indexAttrib)||0,10),adjust:parseFloat(f.attr(e.alignChar_adjustAttrib))||0};g.regex=new RegExp("\\"+g.align,"g"),"undefined"!=typeof g.align&&(e.alignChar_savedVars[this.column]=g,b.alignChar.setup(c,d,e,g))})},setup:function(b,c,d,e){if(!a.isEmptyObject(c.cache)){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t=[],u=[];for(f=0;f<c.$tbodies.length;f++)for(l=c.cache[f],o=l.normalized.length,g=0;g<o;g++){if(s=l.row?l.row[g]:l.normalized[g][c.columns].$row,m=s.find("td").eq(e.column).text().replace(/[ ]/g," "),n=(m.match(e.regex)||[]).length,n>0&&e.alignIndex>0)for(i=Math.min(e.alignIndex,n),h=0,k=0,j=0;h++<i;)j=m.indexOf(e.align,j+1),k=j<0?k:j;else k=m.indexOf(e.align);k>=0?(t.push(m.substring(0,k)||""),u.push(m.substring(k,m.length)||"")):(t.push(n>=1&&e.alignIndex>=n?"":m||""),u.push(n>=1&&e.alignIndex>=n?m||"":""))}for(p=a.extend([],t).sort(function(a,b){return b.length-a.length})[0],q=a.extend([],u).sort(function(a,b){return b.length-a.length})[0],e.width=e.width||Math.floor(p.length/(p.length+q.length)*100)+e.adjust,p="min-width:"+e.width+"%",q="min-width:"+(100-e.width)+"%",f=0;f<c.$tbodies.length;f++)for(l=c.cache[f],o=l.normalized.length,g=0;g<o;g++)r=a(d.alignChar_wrap).length?a(d.alignChar_wrap).html(e.align)[0].outerHTML:e.align,s=l.row?l.row[g]:l.normalized[g][c.columns].$row,j=u[g].slice(e.align.length),s.find("td").eq(e.column).html('<span class="ts-align-wrap"><span class="ts-align-left" style="'+p+'">'+t[g]+'</span><span class="ts-align-right" style="'+q+'">'+(j.length?r+j:"")+"</span></span>");d.alignChar_initialized=!0}},remove:function(b,c,d){if(!a.isEmptyObject(c.cache)){var e,f,g,h,i,j;for(e=0;e<c.$tbodies.length;e++)for(h=c.cache[e],g=h.normalized.length,f=0;f<g;f++)i=h.row?h.row[f]:h.normalized[f][c.columns].$row,j=i.find("td").eq(d),j.html(j.text().replace(/\s/g," "))}}},b.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(a,c,d,e){e.alignChar_initialized=!1,e.alignChar_savedVars=[],b.alignChar.init(a,d,e),d.$table.on("pagerEnd refreshAlign",function(){d.$headers.filter("["+e.alignChar_charAttrib+"]").each(function(){b.alignChar.remove(a,d,this.column)}),b.alignChar.init(a,d,e)})},format:function(a,b,c){c.alignChar_initialized||b.$table.triggerHandler("refreshAlign")},remove:function(a,c,d,e){e||(c.$headers.filter("["+d.alignChar_charAttrib+"]").each(function(){b.alignChar.remove(a,c,this.column)}),d.alignChar_initialized=!1)}})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter;b.alignChar={init:function(c,d,e){d.$headers.filter("["+e.alignChar_charAttrib+"]").each(function(){var f=a(this),g={column:this.column,align:f.attr(e.alignChar_charAttrib),alignIndex:parseInt(f.attr(e.alignChar_indexAttrib)||0,10),adjust:parseFloat(f.attr(e.alignChar_adjustAttrib))||0};g.regex=new RegExp("\\"+g.align,"g"),void 0!==g.align&&(e.alignChar_savedVars[this.column]=g,b.alignChar.setup(c,d,e,g))})},setup:function(b,c,d,e){if(!a.isEmptyObject(c.cache)){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t=[],u=[];for(f=0;f<c.$tbodies.length;f++)for(l=c.cache[f],o=l.normalized.length,g=0;g<o;g++){if(s=l.row?l.row[g]:l.normalized[g][c.columns].$row,m=s.find("td").eq(e.column).text().replace(/[ ]/g," "),(n=(m.match(e.regex)||[]).length)>0&&e.alignIndex>0)for(i=Math.min(e.alignIndex,n),h=0,k=0,j=0;h++<i;)j=m.indexOf(e.align,j+1),k=j<0?k:j;else k=m.indexOf(e.align);k>=0?(t.push(m.substring(0,k)||""),u.push(m.substring(k,m.length)||"")):(t.push(n>=1&&e.alignIndex>=n?"":m||""),u.push(n>=1&&e.alignIndex>=n?m||"":""))}for(p=a.extend([],t).sort(function(a,b){return b.length-a.length})[0],q=a.extend([],u).sort(function(a,b){return b.length-a.length})[0],e.width=e.width||Math.floor(p.length/(p.length+q.length)*100)+e.adjust,p="min-width:"+e.width+"%",q="min-width:"+(100-e.width)+"%",f=0;f<c.$tbodies.length;f++)for(l=c.cache[f],o=l.normalized.length,g=0;g<o;g++)r=a(d.alignChar_wrap).length?a(d.alignChar_wrap).html(e.align)[0].outerHTML:e.align,s=l.row?l.row[g]:l.normalized[g][c.columns].$row,j=u[g].slice(e.align.length),s.find("td").eq(e.column).html('<span class="ts-align-wrap"><span class="ts-align-left" style="'+p+'">'+t[g]+'</span><span class="ts-align-right" style="'+q+'">'+(j.length?r+j:"")+"</span></span>");d.alignChar_initialized=!0}},remove:function(b,c,d){if(!a.isEmptyObject(c.cache)){var e,f,g,h,i,j;for(e=0;e<c.$tbodies.length;e++)for(h=c.cache[e],g=h.normalized.length,f=0;f<g;f++)i=h.row?h.row[f]:h.normalized[f][c.columns].$row,j=i.find("td").eq(d),j.html(j.text().replace(/\s/g," "))}}},b.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(a,c,d,e){e.alignChar_initialized=!1,e.alignChar_savedVars=[],b.alignChar.init(a,d,e),d.$table.on("pagerEnd refreshAlign",function(){d.$headers.filter("["+e.alignChar_charAttrib+"]").each(function(){b.alignChar.remove(a,d,this.column)}),b.alignChar.init(a,d,e)})},format:function(a,b,c){c.alignChar_initialized||b.$table.triggerHandler("refreshAlign")},remove:function(a,c,d,e){e||(c.$headers.filter("["+d.alignChar_charAttrib+"]").each(function(){b.alignChar.remove(a,c,this.column)}),d.alignChar_initialized=!1)}})}(jQuery);
|
4
dist/js/widgets/widget-build-table.min.js
vendored
4
dist/js/widgets/widget-build-table.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-chart.min.js
vendored
2
dist/js/widgets/widget-chart.min.js
vendored
@ -1 +1 @@
|
|||||||
!function(a){"use strict";var b=a.tablesorter,c=[],d=[],e=[],f=[],g=[],h=[],i=[],j=[],k=b.chart={nonDigit:/[^\d,.\-()]/g,init:function(a,b){a.$table.off(b.chart_event).on(b.chart_event,function(){if(this.hasInitialized){var a=this.config;k.getCols(a,a.widgetOptions),k.getData(a,a.widgetOptions)}})},getCols:function(d,e){var f;for(c=[],h=[],j=[],f=0;f<d.columns;f++)e.chart_useSelector&&b.hasWidget(d.table,"columnSelector")&&!d.selector.auto?(d.selector.states[f]&&a.inArray(f,e.chart_ignoreColumns)<0||f===e.chart_labelCol||f===e.chart_sort[0][0])&&c.push(f):(a.inArray(f,e.chart_ignoreColumns)<0||f===e.chart_labelCol||f===e.chart_sort[0][0])&&c.push(f)},getData:function(b,c){k.getHeaders(b,c),k.getRows(b,c),f=[d],a.each(e,function(a,b){f.push(b)}),b.chart={data:f,categories:g,series:h,category:i,dataset:j}},getHeaders:function(b,e){var f;d=[],h=[],j=[],d.push(b.headerContent[e.chart_labelCol]),a.each(c,function(a,c){return c===e.chart_labelCol||(f=b.headerContent[c],d.push(f),h.push({name:f,data:[]}),void j.push({seriesname:f,data:[]}))})},getRows:function(c,d){var f=c.cache[0].normalized,l=[];e=[],g=[],i=[],a.each(f,function(b,e){var f,g,h=e[c.columns].$row,i=h.children("th,td"),j=[];if(/v/i.test(d.chart_incRows)&&h.is(":visible")||/f/i.test(d.chart_incRows)&&!h.hasClass(d.filter_filteredRow||"filtered")||!/(v|f)/i.test(d.chart_incRows)){for(f=0;f<c.columns;f++)a.inArray(b,d.chart_parsed)>=0?j.push(e[f]):(g=i[f].getAttribute(c.textAttribute)||i[f].textContent||i.eq(f).text(),j.push(a.trim(g)));l.push(j)}}),l.sort(function(a,c){return 1===d.chart_sort[0][1]?b.sortNatural(c[d.chart_sort[0][0]],a[d.chart_sort[0][0]]):b.sortNatural(a[d.chart_sort[0][0]],c[d.chart_sort[0][0]])}),a.each(l,function(f,l){var m,n=0,o=[],p=l[d.chart_labelCol];o.push(""+p),a.each(l,function(e,f){var l;return e===d.chart_labelCol?(g.push(f),i.push({label:f}),!0):(m=!1,d.chart_useSelector&&b.hasWidget(c.table,"columnSelector")&&!c.selector.auto?c.selector.states[e]&&a.inArray(e,d.chart_ignoreColumns)<0&&(m=""+f):a.inArray(e,d.chart_ignoreColumns)<0&&(m=""+f),void(m!==!1&&(/s/i.test(""+d.chart_layout[e])?(o.push(m),h[n].data.push(m),j[n].data.push(m)):(l=b.formatFloat(m.replace(k.nonDigit,""),c.table),l=isNaN(l)?m:l,o.push(l),h[n].data.push(l),j[n].data.push({value:l})),n++)))}),e.push(o)})},remove:function(a,b){a.$table.off(b.chart_event)}};b.addWidget({id:"chart",options:{chart_incRows:"filtered",chart_useSelector:!1,chart_ignoreColumns:[],chart_parsed:[],chart_layout:{0:"string"},chart_labelCol:0,chart_sort:[[0,0]],chart_event:"chartData"},init:function(a,b,c,d){k.init(c,d)},remove:function(a,b,c){k.remove(b,c)}})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter,c=[],d=[],e=[],f=[],g=[],h=[],i=[],j=[],k=b.chart={nonDigit:/[^\d,.\-()]/g,init:function(a,b){a.$table.off(b.chart_event).on(b.chart_event,function(){if(this.hasInitialized){var a=this.config;k.getCols(a,a.widgetOptions),k.getData(a,a.widgetOptions)}})},getCols:function(d,e){var f;for(c=[],h=[],j=[],f=0;f<d.columns;f++)e.chart_useSelector&&b.hasWidget(d.table,"columnSelector")&&!d.selector.auto?(d.selector.states[f]&&a.inArray(f,e.chart_ignoreColumns)<0||f===e.chart_labelCol||f===e.chart_sort[0][0])&&c.push(f):(a.inArray(f,e.chart_ignoreColumns)<0||f===e.chart_labelCol||f===e.chart_sort[0][0])&&c.push(f)},getData:function(b,c){k.getHeaders(b,c),k.getRows(b,c),f=[d],a.each(e,function(a,b){f.push(b)}),b.chart={data:f,categories:g,series:h,category:i,dataset:j}},getHeaders:function(b,e){var f;d=[],h=[],j=[],d.push(b.headerContent[e.chart_labelCol]),a.each(c,function(a,c){if(c===e.chart_labelCol)return!0;f=b.headerContent[c],d.push(f),h.push({name:f,data:[]}),j.push({seriesname:f,data:[]})})},getRows:function(c,d){var f=c.cache[0].normalized,l=[];e=[],g=[],i=[],a.each(f,function(b,e){var f,g,h=e[c.columns].$row,i=h.children("th,td"),j=[];if(/v/i.test(d.chart_incRows)&&h.is(":visible")||/f/i.test(d.chart_incRows)&&!h.hasClass(d.filter_filteredRow||"filtered")||!/(v|f)/i.test(d.chart_incRows)){for(f=0;f<c.columns;f++)a.inArray(b,d.chart_parsed)>=0?j.push(e[f]):(g=i[f].getAttribute(c.textAttribute)||i[f].textContent||i.eq(f).text(),j.push(a.trim(g)));l.push(j)}}),l.sort(function(a,c){return 1===d.chart_sort[0][1]?b.sortNatural(c[d.chart_sort[0][0]],a[d.chart_sort[0][0]]):b.sortNatural(a[d.chart_sort[0][0]],c[d.chart_sort[0][0]])}),a.each(l,function(f,l){var m,n=0,o=[],p=l[d.chart_labelCol];o.push(""+p),a.each(l,function(e,f){var l;if(e===d.chart_labelCol)return g.push(f),i.push({label:f}),!0;m=!1,d.chart_useSelector&&b.hasWidget(c.table,"columnSelector")&&!c.selector.auto?c.selector.states[e]&&a.inArray(e,d.chart_ignoreColumns)<0&&(m=""+f):a.inArray(e,d.chart_ignoreColumns)<0&&(m=""+f),m!==!1&&(/s/i.test(""+d.chart_layout[e])?(o.push(m),h[n].data.push(m),j[n].data.push(m)):(l=b.formatFloat(m.replace(k.nonDigit,""),c.table),l=isNaN(l)?m:l,o.push(l),h[n].data.push(l),j[n].data.push({value:l})),n++)}),e.push(o)})},remove:function(a,b){a.$table.off(b.chart_event)}};b.addWidget({id:"chart",options:{chart_incRows:"filtered",chart_useSelector:!1,chart_ignoreColumns:[],chart_parsed:[],chart_layout:{0:"string"},chart_labelCol:0,chart_sort:[[0,0]],chart_event:"chartData"},init:function(a,b,c,d){k.init(c,d)},remove:function(a,b,c){k.remove(b,c)}})}(jQuery);
|
2
dist/js/widgets/widget-columnSelector.min.js
vendored
2
dist/js/widgets/widget-columnSelector.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
/*! Widget: cssStickyHeaders - updated 2/9/2015 (v2.19.1) */
|
/*! Widget: cssStickyHeaders - updated 2/9/2015 (v2.19.1) */
|
||||||
!function(a,b){"use strict";var c=a.tablesorter;c.addWidget({id:"cssStickyHeaders",priority:10,options:{cssStickyHeaders_offset:0,cssStickyHeaders_addCaption:!1,cssStickyHeaders_attachTo:null,cssStickyHeaders_filteredToTop:!0},init:function(d,e,f,g){var h,i,j,k=f.$table,l=a(g.cssStickyHeaders_attachTo),m="ActiveXObject"in b,n=f.namespace+"cssstickyheader ",o=k.children("thead"),p=k.children("caption"),q=l.length?l:a(b),r=k.parent().closest("table."+c.css.table),s=r.length&&c.hasWidget(r[0],"cssStickyHeaders")?r.children("thead"):[],t=parseInt(k.css("border-top-width"),10)||0,u=g.cssStickyHeaders_addCaption,v=!1,w=!1,x=function(a,b){var c=0===b?"":"translate(0px,"+b+"px)";a.css({transform:c,"-ms-transform":c,"-webkit-transform":c})};p.length&&(h=k.height(),p.hide(),w=k.height()===h,p.show(),i=k.offset().top,x(p,20),v=k.offset().top!==i,x(p,0)),q.unbind("scroll resize ".split(" ").join(n).replace(/\s+/g," ")).bind("scroll resize ".split(" ").join(n),function(){g=f.widgetOptions,v&&(x(p,0),j=k.offset().top);var a=l.length?l.offset().top:q.scrollTop(),b=(p.outerHeight(!0)||0)+(parseInt(k.css("padding-top"),10)||0)+(parseInt(k.css("border-spacing"),10)||0),c=k.height()+(w&&g.cssStickyHeaders_addCaption?b:0)-o.height()-(k.children("tfoot").height()||0)-(g.cssStickyHeaders_addCaption?b:w?0:b),d=s.length?s.height():0,e=s.length?m?r.data("cssStickyHeaderBottom")+d:s.offset().top+d-q.scrollTop():0,h=v?j:k.offset().top,i=w?h-(g.cssStickyHeaders_addCaption?b:0):h,n=a-i+e+t+(g.cssStickyHeaders_offset||0)-(g.cssStickyHeaders_addCaption?w?b:0:b),y=n>0&&n<=c?n:0,z=m?o.children().children():o;m&&f.$table.data("cssStickyHeaderBottom",(s.length?d:0)-(g.cssStickyHeaders_addCaption?b:0)),g.cssStickyHeaders_addCaption&&(z=z.add(p)),u!==g.cssStickyHeaders_addCaption&&(u=g.cssStickyHeaders_addCaption,u||x(p,0)),x(z,y)}),k.unbind(("filterEnd"+n).replace(/\s+/g," ")).bind("filterEnd"+n,function(){g.cssStickyHeaders_filteredToTop&&b.scrollTo(0,k.position().top)})},remove:function(c,d,e,f){if(!f){var g=d.namespace+"cssstickyheader ";a(b).unbind("scroll resize ".split(" ").join(g).replace(/\s+/g," ")),d.$table.unbind("filterEnd scroll resize ".split(" ").join(g).replace(/\s+/g," ")).add(d.$table.children("thead").children().children()).children("thead, caption").css({transform:"","-ms-transform":"","-webkit-transform":""})}}})}(jQuery,window);
|
!function(a,b){"use strict";var c=a.tablesorter;c.addWidget({id:"cssStickyHeaders",priority:10,options:{cssStickyHeaders_offset:0,cssStickyHeaders_addCaption:!1,cssStickyHeaders_attachTo:null,cssStickyHeaders_filteredToTop:!0},init:function(d,e,f,g){var h,i,j,k=f.$table,l=a(g.cssStickyHeaders_attachTo),m="ActiveXObject"in b,n=f.namespace+"cssstickyheader ",o=k.children("thead"),p=k.children("caption"),q=l.length?l:a(b),r=k.parent().closest("table."+c.css.table),s=r.length&&c.hasWidget(r[0],"cssStickyHeaders")?r.children("thead"):[],t=parseInt(k.css("border-top-width"),10)||0,u=g.cssStickyHeaders_addCaption,v=!1,w=!1,x=function(a,b){var c=0===b?"":"translate(0px,"+b+"px)";a.css({transform:c,"-ms-transform":c,"-webkit-transform":c})};p.length&&(h=k.height(),p.hide(),w=k.height()===h,p.show(),i=k.offset().top,x(p,20),v=k.offset().top!==i,x(p,0)),q.unbind("scroll resize ".split(" ").join(n).replace(/\s+/g," ")).bind("scroll resize ".split(" ").join(n),function(){g=f.widgetOptions,v&&(x(p,0),j=k.offset().top);var a=l.length?l.offset().top:q.scrollTop(),b=(p.outerHeight(!0)||0)+(parseInt(k.css("padding-top"),10)||0)+(parseInt(k.css("border-spacing"),10)||0),c=k.height()+(w&&g.cssStickyHeaders_addCaption?b:0)-o.height()-(k.children("tfoot").height()||0)-(g.cssStickyHeaders_addCaption?b:w?0:b),d=s.length?s.height():0,e=s.length?m?r.data("cssStickyHeaderBottom")+d:s.offset().top+d-q.scrollTop():0,h=v?j:k.offset().top,i=w?h-(g.cssStickyHeaders_addCaption?b:0):h,n=a-i+e+t+(g.cssStickyHeaders_offset||0)-(g.cssStickyHeaders_addCaption?w?b:0:b),y=n>0&&n<=c?n:0,z=m?o.children().children():o;m&&f.$table.data("cssStickyHeaderBottom",(s.length?d:0)-(g.cssStickyHeaders_addCaption?b:0)),g.cssStickyHeaders_addCaption&&(z=z.add(p)),u!==g.cssStickyHeaders_addCaption&&((u=g.cssStickyHeaders_addCaption)||x(p,0)),x(z,y)}),k.unbind(("filterEnd"+n).replace(/\s+/g," ")).bind("filterEnd"+n,function(){g.cssStickyHeaders_filteredToTop&&b.scrollTo(0,k.position().top)})},remove:function(c,d,e,f){if(!f){var g=d.namespace+"cssstickyheader ";a(b).unbind("scroll resize ".split(" ").join(g).replace(/\s+/g," ")),d.$table.unbind("filterEnd scroll resize ".split(" ").join(g).replace(/\s+/g," ")).add(d.$table.children("thead").children().children()).children("thead, caption").css({transform:"","-ms-transform":"","-webkit-transform":""})}}})}(jQuery,window);
|
2
dist/js/widgets/widget-editable.min.js
vendored
2
dist/js/widgets/widget-editable.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-filter.min.js
vendored
4
dist/js/widgets/widget-filter.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-grouping.min.js
vendored
2
dist/js/widgets/widget-grouping.min.js
vendored
File diff suppressed because one or more lines are too long
16
dist/js/widgets/widget-lazyload.min.js
vendored
16
dist/js/widgets/widget-lazyload.min.js
vendored
@ -13,4 +13,18 @@
|
|||||||
* Version: 1.9.7
|
* Version: 1.9.7
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,c.attr("src")!==d&&c.attr("src")!==!1||c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("<img />").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document);
|
function(a,b,c,d){var e=a(b);a.fn.lazyload=function(d){function f(){var b=0;h.each(function(){var c=a(this);if(!i.skip_invisible||c.is(":visible"))if(a.abovethetop(this,i)||a.leftofbegin(this,i));else if(a.belowthefold(this,i)||a.rightoffold(this,i)){if(++b>i.failure_limit)return!1}else c.trigger("appear"),b=0})}var g,h=this,i={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="};/*!
|
||||||
|
* Lazy Load - jQuery plugin for lazy loading images
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007-2015 Mika Tuupola
|
||||||
|
*
|
||||||
|
* Licensed under the MIT license:
|
||||||
|
* http://www.opensource.org/licenses/mit-license.php
|
||||||
|
*
|
||||||
|
* Project home:
|
||||||
|
* http://www.appelsiini.net/projects/lazyload
|
||||||
|
*
|
||||||
|
* Version: 1.9.7
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
return d&&(void 0!==d.failurelimit&&(d.failure_limit=d.failurelimit,delete d.failurelimit),void 0!==d.effectspeed&&(d.effect_speed=d.effectspeed,delete d.effectspeed),a.extend(i,d)),g=void 0===i.container||i.container===b?e:a(i.container),0===i.event.indexOf("scroll")&&g.bind(i.event,function(){return f()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,void 0!==c.attr("src")&&c.attr("src")!==!1||c.is("img")&&c.attr("src",i.placeholder),c.one("appear",function(){if(!this.loaded){if(i.appear){var d=h.length;i.appear.call(b,d,i)}a("<img />").bind("load",function(){var d=c.attr("data-"+i.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[i.effect](i.effect_speed),b.loaded=!0;var e=a.grep(h,function(a){return!a.loaded});if(h=a(e),i.load){var f=h.length;i.load.call(b,f,i)}}).attr("src",c.attr("data-"+i.data_attribute))}}),0!==i.event.indexOf("scroll")&&c.bind(i.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){f()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&h.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){f()}),this},a.belowthefold=function(c,d){return(void 0===d.container||d.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(d.container).offset().top+a(d.container).height())<=a(c).offset().top-d.threshold},a.rightoffold=function(c,d){return(void 0===d.container||d.container===b?e.width()+e.scrollLeft():a(d.container).offset().left+a(d.container).width())<=a(c).offset().left-d.threshold},a.abovethetop=function(c,d){return(void 0===d.container||d.container===b?e.scrollTop():a(d.container).offset().top)>=a(c).offset().top+d.threshold+a(c).height()},a.leftofbegin=function(c,d){return(void 0===d.container||d.container===b?e.scrollLeft():a(d.container).offset().left)>=a(c).offset().left+d.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document);
|
2
dist/js/widgets/widget-mark.min.js
vendored
2
dist/js/widgets/widget-mark.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Widget: mark.js - updated 9/23/2016 (v2.27.7) */
|
/*! Widget: mark.js - updated 9/23/2016 (v2.27.7) */
|
||||||
!function(a){"use strict";var b=a.tablesorter;b.mark={init:function(c){if("function"==typeof a.fn.mark){var d,e=c.widgetOptions.mark_tsUpdate;c.$table.on("filterEnd.tsmark pagerComplete.tsmark"+(e?" "+e:""),function(a,d){b.mark.update(c,a.type===e?d:"")}),d="(?:<|=|>|\\||\"|\\'|\\s+(?:&&|-|"+(b.language.and||"and")+"|"+(b.language.or||"or")+"|"+(b.language.to||"to")+")\\s+)",b.mark.regex.filter=new RegExp(d,"gim")}else console.warn('Widget-mark not initialized: missing "jquery.mark.js"')},regex:{mark:/^mark_(.+)$/,pure:/^\/((?:\\\/|[^\/])+)\/([mig]{0,3})?$/},checkRegex:function(a){if(a instanceof RegExp){var b="".match(a);return null===b||b.length<5}return!1},cleanMatches:function(a){for(var b=[],c=a&&a.length||0;c--;)""!==a[c]&&(b[b.length]=a[c]);return b},ignoreColumns:function(b){for(var c=b.widgetOptions,d=b.columns,e=[];d--;)(c.mark_tsIgnore[d]||a(b.$headerIndexed[d]).hasClass("mark-ignore"))&&(e[e.length]=":nth-child("+(d+1)+")");return e.length?":not("+e.join(",")+")":""},update:function(c,d){var e={},f=c.widgetOptions,g=b.mark.regex,h=c.$table.find("tbody tr").unmark().not("."+(c.widgetOptions.filter_filteredRow||"filtered"));d=d||a.tablesorter.getFilters(c.$table),a.each(c.widgetOptions,function(a,b){var c=a.match(g.mark);c&&"undefined"!=typeof c[1]&&(e[c[1]]=b)}),a.each(d,function(d,i){if(i&&!a(c.$headerIndexed[d]).hasClass("mark-ignore")&&!f.mark_tsIgnore[d]){var j=null,k=i,l=!1,m=d===c.columns?b.mark.ignoreColumns(c):":nth-child("+(d+1)+")";if(g.pure.test(i)){k=g.pure.exec(i),".*"===k[1]&&(k[1]="");try{j=new RegExp(k[1],"gim"),k=new RegExp(k[1],k[2])}catch(a){k=null}return void(b.mark.checkRegex(j)&&h.children(m).markRegExp(k,e))}0===i.indexOf("~")?(l=!0,k=i.replace(/~/g,"").split("")):(i.indexOf("?")>-1&&(l=!0,i=i.replace(/\?/g,"\\S{1}")),i.indexOf("*")>-1&&(l=!0,i=i.replace(/\*/g,"\\S*")),k=i.split(g.filter)),l&&k&&k.length?(k=new RegExp(b.mark.cleanMatches(k).join(".*"),"gm"),b.mark.checkRegex(k)&&h.children(m).markRegExp(k,e)):h.children(m).mark(b.mark.cleanMatches(k),e)}})}},b.addWidget({id:"mark",options:{mark_tsUpdate:"markUpdate",mark_tsIgnore:{}},init:function(a,c,d,e){b.mark.init(d,e)},remove:function(a,b){var c=b.widgetOptions.mark_tsUpdate;b.$table.off("filterEnd.tsmark pagerComplete.tsmark"+(c?" "+c:""))}})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter;b.mark={init:function(c){if("function"==typeof a.fn.mark){var d,e=c.widgetOptions.mark_tsUpdate;c.$table.on("filterEnd.tsmark pagerComplete.tsmark"+(e?" "+e:""),function(a,d){b.mark.update(c,a.type===e?d:"")}),d="(?:<|=|>|\\||\"|\\'|\\s+(?:&&|-|"+(b.language.and||"and")+"|"+(b.language.or||"or")+"|"+(b.language.to||"to")+")\\s+)",b.mark.regex.filter=new RegExp(d,"gim")}else console.warn('Widget-mark not initialized: missing "jquery.mark.js"')},regex:{mark:/^mark_(.+)$/,pure:/^\/((?:\\\/|[^\/])+)\/([mig]{0,3})?$/},checkRegex:function(a){if(a instanceof RegExp){var b="".match(a);return null===b||b.length<5}return!1},cleanMatches:function(a){for(var b=[],c=a&&a.length||0;c--;)""!==a[c]&&(b[b.length]=a[c]);return b},ignoreColumns:function(b){for(var c=b.widgetOptions,d=b.columns,e=[];d--;)(c.mark_tsIgnore[d]||a(b.$headerIndexed[d]).hasClass("mark-ignore"))&&(e[e.length]=":nth-child("+(d+1)+")");return e.length?":not("+e.join(",")+")":""},update:function(c,d){var e={},f=c.widgetOptions,g=b.mark.regex,h=c.$table.find("tbody tr").unmark().not("."+(c.widgetOptions.filter_filteredRow||"filtered"));d=d||a.tablesorter.getFilters(c.$table),a.each(c.widgetOptions,function(a,b){var c=a.match(g.mark);c&&void 0!==c[1]&&(e[c[1]]=b)}),a.each(d,function(d,i){if(i&&!a(c.$headerIndexed[d]).hasClass("mark-ignore")&&!f.mark_tsIgnore[d]){var j=null,k=i,l=!1,m=d===c.columns?b.mark.ignoreColumns(c):":nth-child("+(d+1)+")";if(g.pure.test(i)){k=g.pure.exec(i),".*"===k[1]&&(k[1]="");try{j=new RegExp(k[1],"gim"),k=new RegExp(k[1],k[2])}catch(a){k=null}return void(b.mark.checkRegex(j)&&h.children(m).markRegExp(k,e))}0===i.indexOf("~")?(l=!0,k=i.replace(/~/g,"").split("")):(i.indexOf("?")>-1&&(l=!0,i=i.replace(/\?/g,"\\S{1}")),i.indexOf("*")>-1&&(l=!0,i=i.replace(/\*/g,"\\S*")),k=i.split(g.filter)),l&&k&&k.length?(k=new RegExp(b.mark.cleanMatches(k).join(".*"),"gm"),b.mark.checkRegex(k)&&h.children(m).markRegExp(k,e)):h.children(m).mark(b.mark.cleanMatches(k),e)}})}},b.addWidget({id:"mark",options:{mark_tsUpdate:"markUpdate",mark_tsIgnore:{}},init:function(a,c,d,e){b.mark.init(d,e)},remove:function(a,b){var c=b.widgetOptions.mark_tsUpdate;b.$table.off("filterEnd.tsmark pagerComplete.tsmark"+(c?" "+c:""))}})}(jQuery);
|
2
dist/js/widgets/widget-math.min.js
vendored
2
dist/js/widgets/widget-math.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-output.min.js
vendored
4
dist/js/widgets/widget-output.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-pager.min.js
vendored
4
dist/js/widgets/widget-pager.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-resizable.min.js
vendored
2
dist/js/widgets/widget-resizable.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-scroller.min.js
vendored
2
dist/js/widgets/widget-scroller.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-sort2Hash.min.js
vendored
4
dist/js/widgets/widget-sort2Hash.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Widget: sort2Hash (BETA) - updated 11/10/2015 (v2.24.4) */
|
/*! Widget: sort2Hash (BETA) - updated 4/2/2017 (v2.28.6) */
|
||||||
!function(a){"use strict";var b=a.tablesorter||{},c=b.sort2Hash={init:function(d,e){var f,g,h,i,j=d.table,k=d.pager,l=b.hasWidget(j,"saveSort"),m=c.decodeHash(d,e,"sort");(m&&!l||m&&l&&e.sort2Hash_overrideSaveSort)&&c.convertString2Sort(d,e,m),b.hasWidget(d.table,"pager")&&(g=parseInt(c.decodeHash(d,e,"page"),10),h=k.page=g<0?0:g>k.totalPages?k.totalPages-1:g,i=k.size=parseInt(c.decodeHash(d,e,"size"),10)),b.hasWidget(j,"filter")&&(f=c.decodeHash(d,e,"filter"),f&&(f=f.split(e.sort2Hash_separator),d.$table.one("tablesorter-ready",function(){setTimeout(function(){d.$table.one("filterEnd",function(){a(this).triggerHandler("pageAndSize",[h,i])}),a.tablesorter.setFilters(j,f,!0)},100)}))),f||d.$table.one("tablesorter-ready",function(){d.$table.triggerHandler("pageAndSize",[h,i])}),d.$table.on("sortEnd.sort2hash filterEnd.sort2hash pagerComplete.sort2Hash",function(){this.hasInitialized&&c.setHash(this.config,this.config.widgetOptions)})},getTableId:function(b,c){return c.sort2Hash_tableId||b.table.id||"table"+a("table").index(b.$table)},regexEscape:function(a){return a.replace(/([\.\^\$\*\+\-\?\(\)\[\]\{\}\\\|])/g,"\\$1")},convertString2Sort:function(a,b,d){for(var e,f,g,h,i,j,k=d.split(b.sort2Hash_separator),l=0,m=k.length,n=[];l<m;){if(f=k[l++],h=parseInt(f,10),isNaN(h)||h>a.columns)for(e=new RegExp("("+c.regexEscape(f)+")","i"),i=0;i<a.columns;i++)j=a.$headerIndexed[i],e.test(j.attr(b.sort2Hash_headerTextAttr))&&(f=i,i=a.columns);g=k[l++],"undefined"!=typeof f&&"undefined"!=typeof g&&(isNaN(g)&&(g=g.indexOf(b.sort2Hash_directionText[1])>-1?1:0),n.push([f,g]))}n.length&&(a.sortList=n)},convertSort2String:function(b,c){var d,e,f,g,h=[],i=b.sortList||[],j=i.length;for(d=0;d<j;d++)f=i[d][0],e=a.trim(b.$headerIndexed[f].attr(c.sort2Hash_headerTextAttr)),h.push(""!==e?encodeURIComponent(e):f),g=c.sort2Hash_directionText[i[d][1]],h.push(g);return h.join(c.sort2Hash_separator)},convertFilter2String:function(b,c){var d,e,f,g,h=[],i=b.sortList||[],j=i.length;for(d=0;d<j;d++)f=i[d][0],e=a.trim(b.$headerIndexed[f].attr(c.sort2Hash_headerTextAttr)),f="undefined"!=typeof e?encodeURIComponent(e):f,h.push(f),g=c.sort2Hash_directionText[i[d][1]],h.push(g);return h.join(c.sort2Hash_separator)},getParam:function(a,b,d){b||(b=window.location.hash);var e=new RegExp("[\\?&]"+c.regexEscape(a)+"=([^&#]*)"),f=e.exec(b);return d?e:null===f?"":decodeURIComponent(f[1])},removeParam:function(a,b){b||(b=window.location.hash);var d,e=c.getParam(a,b,!0),f=[],g=b.split("&"),h=g.length;for(d=0;d<h;d++)e.test("&"+g[d])||f.push(g[d]);return f.length?f.join("&"):""},encodeHash:function(a,b,d,e,f){var g=!1,h=c.getTableId(a,b);return"function"==typeof b.sort2Hash_encodeHash&&(g=b.sort2Hash_encodeHash(a,h,d,e,f||e)),g===!1&&(g="&"+d+"["+h+"]="+e),g},decodeHash:function(a,b,d){var e=!1,f=c.getTableId(a,b);return"function"==typeof b.sort2Hash_decodeHash&&(e=b.sort2Hash_decodeHash(a,f,d)),e===!1&&(e=c.getParam(d+"["+f+"]")),e||""},cleanHash:function(a,b,d,e){var f=!1,g=c.getTableId(a,b);return"function"==typeof b.sort2Hash_cleanHash&&(f=b.sort2Hash_cleanHash(a,g,d,e)),f===!1&&(f=c.removeParam(d+"["+g+"]",e)),f||""},setHash:function(d,e){var f="",g=window.location.hash,h=b.hasWidget(d.table,"pager"),i=b.hasWidget(d.table,"filter"),j=c.convertSort2String(d,e),k=i&&""!==d.lastSearch.join("")?d.lastSearch:[],l=encodeURIComponent(k.join(d.widgetOptions.sort2Hash_separator)),m={sort:j?c.encodeHash(d,e,"sort",j,d.sortList):"",page:h?c.encodeHash(d,e,"page",d.pager.page+1):"",size:h?c.encodeHash(d,e,"size",d.pager.size):"",filter:l?c.encodeHash(d,e,"filter",l,k):""};a.each(m,function(a,b){g=c.cleanHash(d,e,a,g),f+=b}),window.location.hash=((window.location.hash||"").replace("#","").length?g:e.sort2Hash_hash)+f}};b.addWidget({id:"sort2Hash",priority:60,options:{sort2Hash_hash:"#",sort2Hash_separator:"-",sort2Hash_headerTextAttr:"data-header",sort2Hash_directionText:[0,1],sort2Hash_overrideSaveSort:!1},init:function(a,b,d,e){c.init(d,e)},remove:function(a,b){b.$table.off(".sort2hash")}})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter||{},c=b.sort2Hash={init:function(d,e){var f,g,h,i,j=d.table,k=d.pager,l=b.hasWidget(j,"saveSort"),m=c.decodeHash(d,e,"sort");(m&&!l||m&&l&&e.sort2Hash_overrideSaveSort)&&c.convertString2Sort(d,e,m),b.hasWidget(d.table,"pager")&&(g=parseInt(c.decodeHash(d,e,"page"),10),h=k.page=g<0?0:g>k.totalPages?k.totalPages-1:g,i=k.size=parseInt(c.decodeHash(d,e,"size"),10)),b.hasWidget(j,"filter")&&(f=c.decodeHash(d,e,"filter"))&&(f=f.split(e.sort2Hash_separator),d.$table.one("tablesorter-ready",function(){setTimeout(function(){d.$table.one("filterEnd",function(){a(this).triggerHandler("pageAndSize",[h,i])}),a.tablesorter.setFilters(j,f,!0)},100)})),f||d.$table.one("tablesorter-ready",function(){d.$table.triggerHandler("pageAndSize",[h,i])}),d.$table.on("sortEnd.sort2hash filterEnd.sort2hash pagerComplete.sort2Hash",function(){this.hasInitialized&&c.setHash(this.config,this.config.widgetOptions)})},getTableId:function(b,c){return c.sort2Hash_tableId||b.table.id||"table"+a("table").index(b.$table)},regexEscape:function(a){return a.replace(/([\.\^\$\*\+\-\?\(\)\[\]\{\}\\\|])/g,"\\$1")},convertString2Sort:function(a,b,d){for(var e,f,g,h,i,j,k=d.split(b.sort2Hash_separator),l=0,m=k.length,n=[];l<m;){if(f=k[l++],h=parseInt(f,10),isNaN(h)||h>a.columns)for(e=new RegExp("("+c.regexEscape(f)+")","i"),i=0;i<a.columns;i++)j=a.$headerIndexed[i],e.test(j.attr(b.sort2Hash_headerTextAttr))&&(f=i,i=a.columns);g=k[l++],void 0!==f&&void 0!==g&&(isNaN(g)&&(g=g.indexOf(b.sort2Hash_directionText[1])>-1?1:0),n.push([f,g]))}n.length&&(a.sortList=n)},convertSort2String:function(b,c){var d,e,f,g,h=[],i=b.sortList||[],j=i.length;for(d=0;d<j;d++)f=i[d][0],e=a.trim(b.$headerIndexed[f].attr(c.sort2Hash_headerTextAttr)),h.push(""!==e?encodeURIComponent(e):f),g=c.sort2Hash_directionText[i[d][1]],h.push(g);return h.join(c.sort2Hash_separator)},convertFilter2String:function(b,c){var d,e,f,g,h=[],i=b.sortList||[],j=i.length;for(d=0;d<j;d++)f=i[d][0],e=a.trim(b.$headerIndexed[f].attr(c.sort2Hash_headerTextAttr)),f=void 0!==e?encodeURIComponent(e):f,h.push(f),g=c.sort2Hash_directionText[i[d][1]],h.push(g);return h.join(c.sort2Hash_separator)},getParam:function(a,b,d){b||(b=window.location.hash);var e=new RegExp("[\\?&]"+c.regexEscape(a)+"=([^&#]*)"),f=e.exec(b);return d?e:null===f?"":decodeURIComponent(f[1])},removeParam:function(a,b){b||(b=window.location.hash);var d,e=c.getParam(a,b,!0),f=[],g=b.split("&"),h=g.length;for(d=0;d<h;d++)e.test("&"+g[d])||f.push(g[d]);return f.length?f.join("&"):""},encodeHash:function(a,b,d,e,f){var g=!1,h=c.getTableId(a,b);return"function"==typeof b.sort2Hash_encodeHash&&(g=b.sort2Hash_encodeHash(a,h,d,e,f||e)),g===!1&&(g="&"+d+"["+h+"]="+e),g},decodeHash:function(a,b,d){var e=!1,f=c.getTableId(a,b);return"function"==typeof b.sort2Hash_decodeHash&&(e=b.sort2Hash_decodeHash(a,f,d)),e===!1&&(e=c.getParam(d+"["+f+"]")),e||""},cleanHash:function(a,b,d,e){var f=!1,g=c.getTableId(a,b);return"function"==typeof b.sort2Hash_cleanHash&&(f=b.sort2Hash_cleanHash(a,g,d,e)),f===!1&&(f=c.removeParam(d+"["+g+"]",e)),f||""},setHash:function(d,e){var f="",g=window.location.hash,h=b.hasWidget(d.table,"pager"),i=b.hasWidget(d.table,"filter"),j=c.convertSort2String(d,e),k=i&&""!==d.lastSearch.join("")?d.lastSearch:[],l=encodeURIComponent(k.join(d.widgetOptions.sort2Hash_separator)),m={sort:j?c.encodeHash(d,e,"sort",j,d.sortList):"",page:h?c.encodeHash(d,e,"page",d.pager.page+1):"",size:h?c.encodeHash(d,e,"size",d.pager.size):"",filter:l?c.encodeHash(d,e,"filter",l,k):""};a.each(m,function(a,b){g=c.cleanHash(d,e,a,g),f+=b}),window.location.hash=((window.location.hash||"").replace("#","").length?g:e.sort2Hash_hash)+f}};b.addWidget({id:"sort2Hash",priority:60,options:{sort2Hash_hash:"#",sort2Hash_separator:"-",sort2Hash_headerTextAttr:"data-header",sort2Hash_directionText:[0,1],sort2Hash_overrideSaveSort:!1,sort2Hash_tableId:null,sort2Hash_encodeHash:null,sort2Hash_decodeHash:null,sort2Hash_cleanHash:null},init:function(a,b,d,e){c.init(d,e)},remove:function(a,b){b.$table.off(".sort2hash")}})}(jQuery);
|
2
dist/js/widgets/widget-sortTbodies.min.js
vendored
2
dist/js/widgets/widget-sortTbodies.min.js
vendored
@ -3,4 +3,4 @@
|
|||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
* Contributors: Chris Rogers
|
* Contributors: Chris Rogers
|
||||||
*/
|
*/
|
||||||
!function(a){"use strict";var b=a.tablesorter;b.sortTbodies={init:function(c,d){var e,f,g,h,i,j=c.namespace+"sortTbody",k=c.$table.children("tbody"),l=k.length;for(d.sortTbody_original_serverSideSorting=c.serverSideSorting,d.sortTbody_original_cssInfoBlock=c.cssInfoBlock,c.cssInfoBlock=d.sortTbody_noSort,b.sortTbodies.setTbodies(c,d),e=0;e<l;e++)k.eq(e).attr("data-ts-original-order",e);for(c.$table.unbind("sortBegin updateComplete ".split(" ").join(j+" ")).bind("sortBegin"+j,function(){b.sortTbodies.sorter(c)}).bind("updateComplete"+j,function(){b.sortTbodies.setTbodies(c,d),b.updateCache(c,null,c.$tbodies)}).bind("sortEnd",function(){var b=d.sortTbody_primaryRow;d.sortTbody_lockHead&&b&&c.$table.find(b).each(function(){a(this).parents("tbody").prepend(this)})}),(a.isEmptyObject(c.parsers)||c.$tbodies.length!==k.length)&&(b.sortTbodies.setTbodies(c,d),b.updateCache(c,null,c.$tbodies)),i=k.children("tr"),l=i.length,e=0;e<c.columns;e++){if(h=0,"numeric"===c.parsers[e].type)for(f=0;f<l;f++)g=b.getParsedText(c,i.eq(f).children()[e],e),h=Math.max(Math.abs(g)||0,h);c.$headerIndexed[e].attr("data-ts-col-max-value",h)}},setTbodies:function(a,b){a.$tbodies=a.$table.children("tbody").not("."+b.sortTbody_noSort)},sorter:function(c){var d=c.$table,e=c.widgetOptions;if(e.sortTbody_busy!==!0){e.sortTbody_busy=!0;var f=d.children("tbody").not("."+e.sortTbody_noSort),g=e.sortTbody_primaryRow||"tr:eq(0)",h=c.sortList||[],i=h.length;i&&(c.serverSideSorting=!e.sortTbody_sortRows,f.sort(function(d,e){var f,j,k,l,m,n,o,p,q,r,s,t,u=c.table,v=c.parsers,w=c.textSorter||"",x=a(d),y=a(e),z=x.find(g).children("td, th"),A=y.find(g).children("td, th");for(f=0;f<i;f++){if(o=h[f][0],p=h[f][1],k=0===p,j=b.getElementText(c,z.eq(o),o),q=v[o].format(j,u,z[o],o),j=b.getElementText(c,A.eq(o),o),r=v[o].format(j,u,A[o],o),c.sortStable&&q===r&&1===i)return x.attr("data-ts-original-order")-y.attr("data-ts-original-order");if(l=/n/i.test(v&&v[o]?v[o].type||"":""),l&&c.strings[o]?(m=c.$headerIndexed[o].attr("data-ts-col-max-value")||1.79e308,l="boolean"==typeof b.string[c.strings[o]]?(k?1:-1)*(b.string[c.strings[o]]?-1:1):c.strings[o]?b.string[c.strings[o]]||0:0,n=c.numberSorter?c.numberSorter(q,r,k,m,u):b["sortNumeric"+(k?"Asc":"Desc")](q,r,l,m,o,c)):(s=k?q:r,t=k?r:q,n="function"==typeof w?w(s,t,k,o,u):"object"==typeof w&&w.hasOwnProperty(o)?w[o](s,t,k,o,u):b["sortNatural"+(k?"Asc":"Desc")](q,r,o,c)),n)return n}return x.attr("data-ts-original-order")-y.attr("data-ts-original-order")}),b.sortTbodies.restoreTbodies(c,e,f),e.sortTbody_busy=!1)}},restoreTbodies:function(a,b,c){var d,e,f,g,h,i,j,k=a.$table,l=!0,m=0;if(k.hide(),c.appendTo(k),e=k.children("tbody"),g=e.length,d=e.filter("."+b.sortTbody_noSort).appendTo(k),h=d.length)for(;l&&m<h;){for(l=!1,i=0;i<h;i++)j=parseInt(d.eq(i).attr("data-ts-original-order"),10),j=j>=g?g:j<0?0:j,j!==d.eq(i).index()&&(l=!0,f=d.eq(i).detach(),j>=g?f.appendTo(k):0===j?f.prependTo(k):f.insertBefore(k.children("tbody:eq("+j+")")));m++}k.show()}},b.addWidget({id:"sortTbody",priority:40,options:{sortTbody_lockHead:!1,sortTbody_primaryRow:null,sortTbody_sortRows:!1,sortTbody_noSort:"tablesorter-no-sort-tbody"},init:function(a,c,d,e){b.sortTbodies.init(d,e)},remove:function(a,b,c,d){b.$table.unbind("sortBegin updateComplete ".split(" ").join(b.namespace+"sortTbody ")),b.serverSideSorting=c.sortTbody_original_serverSideSorting,b.cssInfoBlock=c.sortTbody_original_cssInfoBlock}})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter;b.sortTbodies={init:function(c,d){var e,f,g,h,i,j=c.namespace+"sortTbody",k=c.$table.children("tbody"),l=k.length;for(d.sortTbody_original_serverSideSorting=c.serverSideSorting,d.sortTbody_original_cssInfoBlock=c.cssInfoBlock,c.cssInfoBlock=d.sortTbody_noSort,b.sortTbodies.setTbodies(c,d),e=0;e<l;e++)k.eq(e).attr("data-ts-original-order",e);for(c.$table.unbind("sortBegin updateComplete ".split(" ").join(j+" ")).bind("sortBegin"+j,function(){b.sortTbodies.sorter(c)}).bind("updateComplete"+j,function(){b.sortTbodies.setTbodies(c,d),b.updateCache(c,null,c.$tbodies)}).bind("sortEnd",function(){var b=d.sortTbody_primaryRow;d.sortTbody_lockHead&&b&&c.$table.find(b).each(function(){a(this).parents("tbody").prepend(this)})}),(a.isEmptyObject(c.parsers)||c.$tbodies.length!==k.length)&&(b.sortTbodies.setTbodies(c,d),b.updateCache(c,null,c.$tbodies)),i=k.children("tr"),l=i.length,e=0;e<c.columns;e++){if(h=0,"numeric"===c.parsers[e].type)for(f=0;f<l;f++)g=b.getParsedText(c,i.eq(f).children()[e],e),h=Math.max(Math.abs(g)||0,h);c.$headerIndexed[e].attr("data-ts-col-max-value",h)}},setTbodies:function(a,b){a.$tbodies=a.$table.children("tbody").not("."+b.sortTbody_noSort)},sorter:function(c){var d=c.$table,e=c.widgetOptions;if(e.sortTbody_busy!==!0){e.sortTbody_busy=!0;var f=d.children("tbody").not("."+e.sortTbody_noSort),g=e.sortTbody_primaryRow||"tr:eq(0)",h=c.sortList||[],i=h.length;i&&(c.serverSideSorting=!e.sortTbody_sortRows,f.sort(function(d,e){var f,j,k,l,m,n,o,p,q,r,s,t,u=c.table,v=c.parsers,w=c.textSorter||"",x=a(d),y=a(e),z=x.find(g).children("td, th"),A=y.find(g).children("td, th");for(f=0;f<i;f++){if(o=h[f][0],p=h[f][1],k=0===p,j=b.getElementText(c,z.eq(o),o),q=v[o].format(j,u,z[o],o),j=b.getElementText(c,A.eq(o),o),r=v[o].format(j,u,A[o],o),c.sortStable&&q===r&&1===i)return x.attr("data-ts-original-order")-y.attr("data-ts-original-order");if(l=/n/i.test(v&&v[o]?v[o].type||"":""),l&&c.strings[o]?(m=c.$headerIndexed[o].attr("data-ts-col-max-value")||1.79e308,l="boolean"==typeof b.string[c.strings[o]]?(k?1:-1)*(b.string[c.strings[o]]?-1:1):c.strings[o]?b.string[c.strings[o]]||0:0,n=c.numberSorter?c.numberSorter(q,r,k,m,u):b["sortNumeric"+(k?"Asc":"Desc")](q,r,l,m,o,c)):(s=k?q:r,t=k?r:q,n="function"==typeof w?w(s,t,k,o,u):"object"==typeof w&&w.hasOwnProperty(o)?w[o](s,t,k,o,u):b["sortNatural"+(k?"Asc":"Desc")](q,r,o,c)),n)return n}return x.attr("data-ts-original-order")-y.attr("data-ts-original-order")}),b.sortTbodies.restoreTbodies(c,e,f),e.sortTbody_busy=!1)}},restoreTbodies:function(a,b,c){var d,e,f,g,h,i,j,k=a.$table,l=!0,m=0;if(k.hide(),c.appendTo(k),e=k.children("tbody"),g=e.length,d=e.filter("."+b.sortTbody_noSort).appendTo(k),h=d.length)for(;l&&m<h;){for(l=!1,i=0;i<h;i++)j=parseInt(d.eq(i).attr("data-ts-original-order"),10),(j=j>=g?g:j<0?0:j)!==d.eq(i).index()&&(l=!0,f=d.eq(i).detach(),j>=g?f.appendTo(k):0===j?f.prependTo(k):f.insertBefore(k.children("tbody:eq("+j+")")));m++}k.show()}},b.addWidget({id:"sortTbody",priority:40,options:{sortTbody_lockHead:!1,sortTbody_primaryRow:null,sortTbody_sortRows:!1,sortTbody_noSort:"tablesorter-no-sort-tbody"},init:function(a,c,d,e){b.sortTbodies.init(d,e)},remove:function(a,b,c,d){b.$table.unbind("sortBegin updateComplete ".split(" ").join(b.namespace+"sortTbody ")),b.serverSideSorting=c.sortTbody_original_serverSideSorting,b.cssInfoBlock=c.sortTbody_original_cssInfoBlock}})}(jQuery);
|
2
dist/js/widgets/widget-staticRow.min.js
vendored
2
dist/js/widgets/widget-staticRow.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! widget: staticRow - updated 10/31/2015 (v2.24.0) */
|
/*! widget: staticRow - updated 10/31/2015 (v2.24.0) */
|
||||||
!function(a){"use strict";var b=a.tablesorter,c=function(b){var c,d,e,f,g,h=b.config;h&&(d=h.widgetOptions,h.$tbodies.each(function(){c=a(this).children(),g=c.length,c.filter(d.staticRow_class).each(function(){c=a(this),f=c.data(d.staticRow_index),"undefined"!=typeof f?(e=parseFloat(f),f=/%/.test(f)?Math.round(e/100*g):e):f=c.index(),c.data(d.staticRow_data,f)})}))};b.addWidget({id:"staticRow",options:{staticRow_class:".static",staticRow_data:"static-index",staticRow_index:"row-index",staticRow_event:"staticRowsRefresh"},init:function(a,d,e,f){c(a),e.$table.unbind(("updateComplete.tsstaticrows "+f.staticRow_event).replace(/\s+/g," ")).bind("updateComplete.tsstaticrows "+f.staticRow_event,function(){c(a),b.applyWidget(a)})},format:function(b,c,d){var e,f,g,h,i,j,k,l;c.$tbodies.each(function(){for(i=a.tablesorter.processTbody(b,a(this),!0),j=!0,g=0,k=i.children(d.staticRow_class),h=i.children("tr").length-1,l=k.length;j&&g<l;)j=!1,k.each(function(){e=a(this).data(d.staticRow_data),e=e>=h?h:e<0?0:e,e!==a(this).index()&&(j=!0,f=a(this).detach(),e>=h?f.appendTo(i):0===e?f.prependTo(i):f.insertBefore(i.find("tr:eq("+e+")")))}),g++;a.tablesorter.processTbody(b,i,!1)}),c.$table.triggerHandler("staticRowsComplete",b)},remove:function(a,b,c){b.$table.unbind(("updateComplete.tsstaticrows "+c.staticRow_event).replace(/\s+/g," "))}})}(jQuery);
|
!function(a){"use strict";var b=a.tablesorter,c=function(b){var c,d,e,f,g,h=b.config;h&&(d=h.widgetOptions,h.$tbodies.each(function(){c=a(this).children(),g=c.length,c.filter(d.staticRow_class).each(function(){c=a(this),f=c.data(d.staticRow_index),void 0!==f?(e=parseFloat(f),f=/%/.test(f)?Math.round(e/100*g):e):f=c.index(),c.data(d.staticRow_data,f)})}))};b.addWidget({id:"staticRow",options:{staticRow_class:".static",staticRow_data:"static-index",staticRow_index:"row-index",staticRow_event:"staticRowsRefresh"},init:function(a,d,e,f){c(a),e.$table.unbind(("updateComplete.tsstaticrows "+f.staticRow_event).replace(/\s+/g," ")).bind("updateComplete.tsstaticrows "+f.staticRow_event,function(){c(a),b.applyWidget(a)})},format:function(b,c,d){var e,f,g,h,i,j,k,l;c.$tbodies.each(function(){for(i=a.tablesorter.processTbody(b,a(this),!0),j=!0,g=0,k=i.children(d.staticRow_class),h=i.children("tr").length-1,l=k.length;j&&g<l;)j=!1,k.each(function(){e=a(this).data(d.staticRow_data),(e=e>=h?h:e<0?0:e)!==a(this).index()&&(j=!0,f=a(this).detach(),e>=h?f.appendTo(i):0===e?f.prependTo(i):f.insertBefore(i.find("tr:eq("+e+")")))}),g++;a.tablesorter.processTbody(b,i,!1)}),c.$table.triggerHandler("staticRowsComplete",b)},remove:function(a,b,c){b.$table.unbind(("updateComplete.tsstaticrows "+c.staticRow_event).replace(/\s+/g," "))}})}(jQuery);
|
2
dist/js/widgets/widget-storage.min.js
vendored
2
dist/js/widgets/widget-storage.min.js
vendored
@ -1,2 +1,2 @@
|
|||||||
/*! Widget: storage - updated 11/26/2016 (v2.28.0) */
|
/*! Widget: storage - updated 11/26/2016 (v2.28.0) */
|
||||||
!function(a,b,c){"use strict";var d=a.tablesorter||{};d.storage=function(e,f,g,h){e=a(e)[0];var i,j,k,l=!1,m={},n=e.config,o=n&&n.widgetOptions,p=h&&h.useSessionStorage||o&&o.storage_useSessionStorage?"sessionStorage":"localStorage",q=a(e),r=h&&h.id||q.attr(h&&h.group||o&&o.storage_group||"data-table-group")||o&&o.storage_tableId||e.id||a(".tablesorter").index(q),s=h&&h.url||q.attr(h&&h.page||o&&o.storage_page||"data-table-page")||o&&o.storage_fixedUrl||n&&n.fixedUrl||b.location.pathname;if(a.extend(!0,d.defaults,{fixedUrl:"",widgetOptions:{storage_fixedUrl:"",storage_group:"",storage_page:"",storage_tableId:"",storage_useSessionStorage:""}}),p in b)try{b[p].setItem("_tmptest","temp"),l=!0,b[p].removeItem("_tmptest")}catch(a){n&&n.debug&&console.warn(p+" is not supported in this browser")}return a.parseJSON&&(l?m=a.parseJSON(b[p][f]||"null")||{}:(j=c.cookie.split(/[;\s|=]/),i=a.inArray(f,j)+1,m=0!==i?a.parseJSON(j[i]||"null")||{}:{})),"undefined"!=typeof g&&b.JSON&&JSON.hasOwnProperty("stringify")?(m[s]||(m[s]={}),m[s][r]=g,l?b[p][f]=JSON.stringify(m):(k=new Date,k.setTime(k.getTime()+31536e6),c.cookie=f+"="+JSON.stringify(m).replace(/\"/g,'"')+"; expires="+k.toGMTString()+"; path=/"),void 0):m&&m[s]?m[s][r]:""}}(jQuery,window,document);
|
!function(a,b,c){"use strict";var d=a.tablesorter||{};d.storage=function(e,f,g,h){e=a(e)[0];var i,j,k,l=!1,m={},n=e.config,o=n&&n.widgetOptions,p=h&&h.useSessionStorage||o&&o.storage_useSessionStorage?"sessionStorage":"localStorage",q=a(e),r=h&&h.id||q.attr(h&&h.group||o&&o.storage_group||"data-table-group")||o&&o.storage_tableId||e.id||a(".tablesorter").index(q),s=h&&h.url||q.attr(h&&h.page||o&&o.storage_page||"data-table-page")||o&&o.storage_fixedUrl||n&&n.fixedUrl||b.location.pathname;if(a.extend(!0,d.defaults,{fixedUrl:"",widgetOptions:{storage_fixedUrl:"",storage_group:"",storage_page:"",storage_tableId:"",storage_useSessionStorage:""}}),p in b)try{b[p].setItem("_tmptest","temp"),l=!0,b[p].removeItem("_tmptest")}catch(a){n&&n.debug&&console.warn(p+" is not supported in this browser")}if(a.parseJSON&&(l?m=a.parseJSON(b[p][f]||"null")||{}:(j=c.cookie.split(/[;\s|=]/),i=a.inArray(f,j)+1,m=0!==i?a.parseJSON(j[i]||"null")||{}:{})),void 0===g||!b.JSON||!JSON.hasOwnProperty("stringify"))return m&&m[s]?m[s][r]:"";m[s]||(m[s]={}),m[s][r]=g,l?b[p][f]=JSON.stringify(m):(k=new Date,k.setTime(k.getTime()+31536e6),c.cookie=f+"="+JSON.stringify(m).replace(/\"/g,'"')+"; expires="+k.toGMTString()+"; path=/")}}(jQuery,window,document);
|
2
dist/js/widgets/widget-view.min.js
vendored
2
dist/js/widgets/widget-view.min.js
vendored
@ -1 +1 @@
|
|||||||
!function(a){"use strict";var b,c,d,e=a.tablesorter,f=!1,g=e.view={copyCaption:function(b,c){g.removeCaption(b,c),b.$table.find("caption").length>0&&a(c.view_caption).text(b.$table.find("caption").text())},removeCaption:function(b,c){a(c.view_caption).empty()},buildToolBar:function(b,c){g.removeToolBar(b,c),g.copyCaption(b,c);var d=a(c.view_toolbar);a.each(c.view_layouts,function(b,e){var f=c.view_switcher_class;b==c.view_layout&&(f+=" active");var g=a("<a>",{href:"#",class:f,"data-view-type":b,title:e.title});g.append(a("<i>",{class:e.icon})),d.append(g)}),d.find("."+c.view_switcher_class).on("click",function(e){return e.preventDefault(),!a(this).hasClass("active")&&(d.find("."+c.view_switcher_class).removeClass("active"),a(this).addClass("active"),c.view_layout=a(this).attr("data-view-type"),c.view_layouts[c.view_layout].raw===!0?(g.remove(b,c),g.buildToolBar(b,c)):(f===!1&&g.hideTable(b,c),g.buildView(b,c)),void 0)})},removeToolBar:function(b,c){a(c.view_toolbar).empty(),g.removeCaption(b,c)},buildView:function(b,c){g.removeView(b,c);var d=c.view_layouts[c.view_layout],f=a(d.container,{class:c.view_layout});e.getColumnText(b.$table,0,function(b){var c=d.tmpl;a.each(a(b.$row).find("td"),function(b,d){var e={},f="{col"+b+"}";a.each(d.attributes,function(a,b){e[b.nodeName]=b.nodeValue});var g=a(d).html(),h=a("<span />").append(a("<span/>",e).append(g));c=c.replace(new RegExp(f,"g"),h.html()),f="{col"+b+":raw}",c=c.replace(new RegExp(f,"g"),a(d).text())});var e=a(c);a.each(b.$row[0].attributes,function(a,b){"class"==b.nodeName?e.attr(b.nodeName,e.attr(b.nodeName)+" "+b.nodeValue):e.attr(b.nodeName,b.nodeValue)}),f.append(e)}),a(c.view_container).append(f),b.$table.triggerHandler("viewComplete")},removeView:function(b,c){a(c.view_container).empty()},hideTable:function(a,e){b=a.$table.css("position"),c=a.$table.css("bottom"),d=a.$table.css("left"),a.$table.css({position:"absolute",top:"-10000px",left:"-10000px"}),f=!0},init:function(a,b){b.view_layout!==!1&&"undefined"!=typeof b.view_layouts[b.view_layout]&&(f===!1&&g.hideTable(a,b),a.$table.on("tablesorter-ready",function(){g.buildToolBar(a,b),g.buildView(a,b)}))},remove:function(a,e){g.removeToolBar(a,e),g.removeView(a,e),a.$table.css({position:b,top:c,left:d}),f=!1}};e.addWidget({id:"view",options:{view_toolbar:"#ts-view-toolbar",view_container:"#ts-view",view_caption:"#ts-view-caption",view_switcher_class:"ts-view-switcher",view_layout:!1,view_layouts:{}},init:function(a,b,c,d){g.init(c,d)},remove:function(a,b,c){g.remove(b,c)}})}(jQuery);
|
!function(a){"use strict";var b,c,d,e=a.tablesorter,f=!1,g=e.view={copyCaption:function(b,c){g.removeCaption(b,c),b.$table.find("caption").length>0&&a(c.view_caption).text(b.$table.find("caption").text())},removeCaption:function(b,c){a(c.view_caption).empty()},buildToolBar:function(b,c){g.removeToolBar(b,c),g.copyCaption(b,c);var d=a(c.view_toolbar);a.each(c.view_layouts,function(b,e){var f=c.view_switcher_class;b==c.view_layout&&(f+=" active");var g=a("<a>",{href:"#",class:f,"data-view-type":b,title:e.title});g.append(a("<i>",{class:e.icon})),d.append(g)}),d.find("."+c.view_switcher_class).on("click",function(e){if(e.preventDefault(),a(this).hasClass("active"))return!1;d.find("."+c.view_switcher_class).removeClass("active"),a(this).addClass("active"),c.view_layout=a(this).attr("data-view-type"),c.view_layouts[c.view_layout].raw===!0?(g.remove(b,c),g.buildToolBar(b,c)):(f===!1&&g.hideTable(b,c),g.buildView(b,c))})},removeToolBar:function(b,c){a(c.view_toolbar).empty(),g.removeCaption(b,c)},buildView:function(b,c){g.removeView(b,c);var d=c.view_layouts[c.view_layout],f=a(d.container,{class:c.view_layout});e.getColumnText(b.$table,0,function(b){var c=d.tmpl;a.each(a(b.$row).find("td"),function(b,d){var e={},f="{col"+b+"}";a.each(d.attributes,function(a,b){e[b.nodeName]=b.nodeValue});var g=a(d).html(),h=a("<span />").append(a("<span/>",e).append(g));c=c.replace(new RegExp(f,"g"),h.html()),f="{col"+b+":raw}",c=c.replace(new RegExp(f,"g"),a(d).text())});var e=a(c);a.each(b.$row[0].attributes,function(a,b){"class"==b.nodeName?e.attr(b.nodeName,e.attr(b.nodeName)+" "+b.nodeValue):e.attr(b.nodeName,b.nodeValue)}),f.append(e)}),a(c.view_container).append(f),b.$table.triggerHandler("viewComplete")},removeView:function(b,c){a(c.view_container).empty()},hideTable:function(a,e){b=a.$table.css("position"),c=a.$table.css("bottom"),d=a.$table.css("left"),a.$table.css({position:"absolute",top:"-10000px",left:"-10000px"}),f=!0},init:function(a,b){b.view_layout!==!1&&void 0!==b.view_layouts[b.view_layout]&&(f===!1&&g.hideTable(a,b),a.$table.on("tablesorter-ready",function(){g.buildToolBar(a,b),g.buildView(a,b)}))},remove:function(a,e){g.removeToolBar(a,e),g.removeView(a,e),a.$table.css({position:b,top:c,left:d}),f=!1}};e.addWidget({id:"view",options:{view_toolbar:"#ts-view-toolbar",view_container:"#ts-view",view_caption:"#ts-view-caption",view_switcher_class:"ts-view-switcher",view_layout:!1,view_layouts:{}},init:function(a,b,c,d){g.init(c,d)},remove:function(a,b,c){g.remove(b,c)}})}(jQuery);
|
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>jQuery tablesorter 2.0 - Disable or set the column parser using class names</title>
|
<title>jQuery tablesorter 2.0 - Disable sorting or set the column parser using class names</title>
|
||||||
|
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
<script src="js/jquery-latest.min.js"></script>
|
<script src="js/jquery-latest.min.js"></script>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="banner">
|
<div id="banner">
|
||||||
<h1>table<em>sorter</em></h1>
|
<h1>table<em>sorter</em></h1>
|
||||||
<h2>Disable or set the column parser using class names</h2>
|
<h2>Disable sorting or set the column parser using class names</h2>
|
||||||
<h3>Flexible client-side table sorting</h3>
|
<h3>Flexible client-side table sorting</h3>
|
||||||
<a href="index.html">Back to documentation</a>
|
<a href="index.html">Back to documentation</a>
|
||||||
</div>
|
</div>
|
||||||
@ -35,6 +35,12 @@
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>In tablesorter version 2.0.5 and older, only the metadata and headers options methods were available to set the parsers.</li>
|
<li>In tablesorter version 2.0.5 and older, only the metadata and headers options methods were available to set the parsers.</li>
|
||||||
|
<li>There may be some confusion as to the wording of this example page:
|
||||||
|
<ul>
|
||||||
|
<li>Set the sorter to false to prevent sorting.</li>
|
||||||
|
<li>Prevent parsing a column by setting the parser to false - added v2.17.1 - get more details on <a href="example-options-headers-parser.html">this page</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li>In versions 2.0.11+, parsers could be set using class names.</li>
|
<li>In versions 2.0.11+, parsers could be set using class names.</li>
|
||||||
<li>Currently (versions 2.3+), parsers can be set using any of the following methods (they all do the same thing), in order of priority:
|
<li>Currently (versions 2.3+), parsers can be set using any of the following methods (they all do the same thing), in order of priority:
|
||||||
<ul>
|
<ul>
|
||||||
|
121
docs/example-parsers-leading-zeros.html
Normal file
121
docs/example-parsers-leading-zeros.html
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>jQuery tablesorter - Leading Zeros Parser</title>
|
||||||
|
|
||||||
|
<!-- jQuery -->
|
||||||
|
<script src="js/jquery-latest.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Demo stuff -->
|
||||||
|
<link rel="stylesheet" href="css/jq.css">
|
||||||
|
<link href="css/prettify.css" rel="stylesheet">
|
||||||
|
<script src="js/prettify.js"></script>
|
||||||
|
<script src="js/docs.js"></script>
|
||||||
|
<style>
|
||||||
|
th { width: 25%; }
|
||||||
|
</style>
|
||||||
|
<link href="../css/theme.blue.css" rel="stylesheet">
|
||||||
|
<script src="../js/jquery.tablesorter.js"></script>
|
||||||
|
<script src="../js/parsers/parser-leading-zeros.js"></script>
|
||||||
|
|
||||||
|
<script id="js">$(function() {
|
||||||
|
$("table").tablesorter({
|
||||||
|
theme: 'blue',
|
||||||
|
widgets: ["zebra"],
|
||||||
|
textSorter: {
|
||||||
|
// plain text sort applied to third column (zero-based index)
|
||||||
|
2: $.tablesorter.sortText
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="banner">
|
||||||
|
<h1>table<em>sorter</em></h1>
|
||||||
|
<h2>Leading zeros parser</h2>
|
||||||
|
<h3>Flexible client-side table sorting</h3>
|
||||||
|
<a href="index.html">Back to documentation</a>
|
||||||
|
</div>
|
||||||
|
<div id="main">
|
||||||
|
|
||||||
|
<p class="tip">
|
||||||
|
<em>NOTE!</em>
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>Added this parser in <span class="version update">v2.28.6</span>.</li>
|
||||||
|
<li>The problem with leading zeros:
|
||||||
|
<ol>
|
||||||
|
<li>When using the number parser (<code>sorter-digit</code> in the first column), the leading zeros are removed upon parsing, so all equal values are sorted in a <a href="https://en.wikipedia.org/wiki/Sorting_algorithm#Stability">non-stable manner</a>.</li>
|
||||||
|
<li>Switching the parser to text (<code>sorter-text</code> in the second column) will behave the same as the number parser in the first column. This happens because the internal natural sort algorithm processes numeric values similar to the number parser.</li>
|
||||||
|
<li>Prior to this parser, it was recommended to use a plain text sort (setting <a href="index.html#textsorter"><code>textSorter</code></a> for the third column; see <a href="https://github.com/Mottie/tablesorter/issues/409">issue #409</a>). This method is not ideal as a plain sort will sort <code>2</code> after <code>15</code>, and sort all leading zeros at the top of the column.</li>
|
||||||
|
<li>This parser (<code>sorter-leadingZeros</code> in the fourth column) processes leading zeros by subtracting a very small number from the parsed value based on the total length of the string.</li>
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
|
<li>Click on the "Toggle parsed values" button to see the values as saved to the cache.</li>
|
||||||
|
<li>The small number the leading zeros parser subtracts from the cell value has a precision of 10 digits (<code>1e-10</code>). If you are using higher precision values, then copy this parser and increase the precision as needed.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h1>Demo</h1>
|
||||||
|
<button type="button" class="toggleparsedvalue">Toggle parsed values</button>
|
||||||
|
<div id="demo"><table class="tablesorter">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="sorter-digit">Number sort</th>
|
||||||
|
<th class="sorter-text">Natural text sort</th>
|
||||||
|
<!-- override "sorter-digit" which is automatically detected -->
|
||||||
|
<th class="sorter-text">Plain text sort</th>
|
||||||
|
<th class="sorter-leadingZeros">Leading Zeros parser</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr><td>001</td><td>001</td><td>001</td><td>001</td></tr>
|
||||||
|
<tr><td>1</td><td>1</td><td>1</td><td>1</td></tr>
|
||||||
|
<tr><td>2</td><td>2</td><td>2</td><td>2</td></tr>
|
||||||
|
<tr><td>10</td><td>10</td><td>10</td><td>10</td></tr>
|
||||||
|
<tr><td>01</td><td>01</td><td>01</td><td>01</td></tr>
|
||||||
|
<tr><td>1.01</td><td>1.01</td><td>1.01</td><td>1.01</td></tr>
|
||||||
|
<tr><td>000001</td><td>000001</td><td>000001</td><td>000001</td></tr>
|
||||||
|
<tr><td>00001</td><td>00001</td><td>00001</td><td>00001</td></tr>
|
||||||
|
<tr><td>020</td><td>020</td><td>020</td><td>020</td></tr>
|
||||||
|
<tr><td>0001</td><td>0001</td><td>0001</td><td>0001</td></tr>
|
||||||
|
<tr><td>3</td><td>3</td><td>3</td><td>3</td></tr>
|
||||||
|
<tr><td>10</td><td>10</td><td>10</td><td>10</td></tr>
|
||||||
|
<tr><td>12</td><td>12</td><td>12</td><td>12</td></tr>
|
||||||
|
<tr><td>15</td><td>15</td><td>15</td><td>15</td></tr>
|
||||||
|
<tr><td>02</td><td>02</td><td>02</td><td>02</td></tr>
|
||||||
|
<tr><td>5</td><td>5</td><td>5</td><td>5</td></tr>
|
||||||
|
<tr><td>25</td><td>25</td><td>25</td><td>25</td></tr>
|
||||||
|
<tr><td>21</td><td>21</td><td>21</td><td>21</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table></div>
|
||||||
|
|
||||||
|
<h1>Page Header</h1>
|
||||||
|
<div>
|
||||||
|
<pre class="prettyprint lang-html"><link href="css/theme.blue.css" rel="stylesheet">
|
||||||
|
<script src="js/jquery.min.js"></script>
|
||||||
|
<script src="js/jquery.tablesorter.js"></script>
|
||||||
|
<script src="js/parser-leading-zeros.js"></script></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1>Javascript</h1>
|
||||||
|
<div id="javascript">
|
||||||
|
<pre class="prettyprint lang-javascript"></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1>HTML</h1>
|
||||||
|
<div id="html">
|
||||||
|
<pre class="prettyprint lang-html"></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
// add parsed values to columns [0,1]
|
||||||
|
addParsedValues($('table'), [0, 1, 2, 3]);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -41,6 +41,7 @@
|
|||||||
<h3><a href="#">Notes</a></h3>
|
<h3><a href="#">Notes</a></h3>
|
||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>To bind events to the newly created table, see the <strong>Adding event bindings</strong> section below.</li>
|
||||||
<li>Build a table starting with an assortment of data types ( array, text (CSV, HTML) or object (json) ).</li>
|
<li>Build a table starting with an assortment of data types ( array, text (CSV, HTML) or object (json) ).</li>
|
||||||
<li>This widget isn't really a widget because it is run and does it's processing before tablesorter has initialized; but the options for it are contained within the tablesorter <code>widgetOptions</code>.</li>
|
<li>This widget isn't really a widget because it is run and does it's processing before tablesorter has initialized; but the options for it are contained within the tablesorter <code>widgetOptions</code>.</li>
|
||||||
<li>Using the core build options:
|
<li>Using the core build options:
|
||||||
@ -65,6 +66,38 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3><a href="#">Adding event bindings</a></h3>
|
||||||
|
<div>
|
||||||
|
<p>Internally, all triggered events use jQuery's <a href="http://api.jquery.com/triggerHandler/">triggerHandler</a> method to get around the issue of events triggered on a nested table bubbling up to the parent table; e.g. we don't want a "sortEnd" event to trigger on a parent table when a nested table has completed sorting.</p>
|
||||||
|
<strong>A binding added to the wrapper will not execute, and you can not target a table element that has not yet been created.</strong>
|
||||||
|
<p>To add an event listener to a table created by the build widget, you will need to use the <code>initialized</code> callback:</p>
|
||||||
|
HTML (before)
|
||||||
|
<pre class="prettyprint lang-html"><!-- empty wrapper before the table has been built -->
|
||||||
|
<div id="wrapper"></div>
|
||||||
|
</pre>
|
||||||
|
Javascript
|
||||||
|
<pre class="prettyprint lang-js">$(function() {
|
||||||
|
$('#wrapper').tablesorter({
|
||||||
|
theme: 'blue',
|
||||||
|
widgets: ['zebra'],
|
||||||
|
data : dataObject,
|
||||||
|
initialized: function(table) {
|
||||||
|
$(table).on('sortStart', function() {
|
||||||
|
alert('ok');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});</pre>
|
||||||
|
HTML (after)
|
||||||
|
<pre class="prettyprint lang-html"><div id="wrapper">
|
||||||
|
<table class="tablesorter-blue">
|
||||||
|
<!-- ... -->
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
|
<p></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h3><a href="#">Options</a></h3>
|
<h3><a href="#">Options</a></h3>
|
||||||
<div>
|
<div>
|
||||||
<table class="tablesorter-blue">
|
<table class="tablesorter-blue">
|
||||||
|
@ -347,6 +347,7 @@ table.tablesorter tbody tr.even.checked td {
|
|||||||
<li>Set the <code>separator</code> to a comma (<code>,</code>).</li>
|
<li>Set the <code>separator</code> to a comma (<code>,</code>).</li>
|
||||||
<li>Save the file with a <code>csv</code> extension, then load it into Excel.</li>
|
<li>Save the file with a <code>csv</code> extension, then load it into Excel.</li>
|
||||||
<li>Or, save the file with a <code>xls</code> extension; but when loading the file in Excel, you will likely see a message stating that the file is corrupt. Continue loading and you will see the expected data placed into each cell.</li>
|
<li>Or, save the file with a <code>xls</code> extension; but when loading the file in Excel, you will likely see a message stating that the file is corrupt. Continue loading and you will see the expected data placed into each cell.</li>
|
||||||
|
<li><span class="label warning">Note</span> including a BOM in the <a class="intlink" href="#output_encoding"><code>output_encoding</code></a> option is no longer required!</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>To copy the data into Excel
|
<li>To copy the data into Excel
|
||||||
@ -887,6 +888,7 @@ line,value1,value2,value3
|
|||||||
<br>
|
<br>
|
||||||
The method used to download has been completely changed. The downloads still need an encoding setting, but this option is now set to a default of
|
The method used to download has been completely changed. The downloads still need an encoding setting, but this option is now set to a default of
|
||||||
<pre class="prettyprint lang-js">output_encoding : 'data:application/octet-stream;charset=utf8,'</pre>
|
<pre class="prettyprint lang-js">output_encoding : 'data:application/octet-stream;charset=utf8,'</pre>
|
||||||
|
<span class="label warning">Note</span> The trailing comma is important!
|
||||||
<hr>
|
<hr>
|
||||||
The information below is no longer relavant:
|
The information below is no longer relavant:
|
||||||
<div class="fade">
|
<div class="fade">
|
||||||
@ -895,7 +897,7 @@ line,value1,value2,value3
|
|||||||
// NO BOM : 'data:text/csv;charset=utf8,'
|
// NO BOM : 'data:text/csv;charset=utf8,'
|
||||||
// With BOM : 'data:text/csv;charset=utf8,%EF%BB%BF'
|
// With BOM : 'data:text/csv;charset=utf8,%EF%BB%BF'
|
||||||
// WIN 1252 : 'data:text/csv;charset=windows-1252,' // ANSI (subset of ISO-8859-1)
|
// WIN 1252 : 'data:text/csv;charset=windows-1252,' // ANSI (subset of ISO-8859-1)
|
||||||
output_encoding : 'data:text/csv;charset=utf8,'</pre><span class="label label-info">Note</span> The commas are important!
|
output_encoding : 'data:text/csv;charset=utf8,'</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -921,7 +923,8 @@ output_encoding : 'data:text/csv;charset=utf8,'</pre><span class="label label-in
|
|||||||
</table>
|
</table>
|
||||||
<span class="label label-info">Note</span> If you need to change the carriage return and/or the tab replacement strings, modify them as follows (changed in <span class="version">v2.21.2</span>):
|
<span class="label label-info">Note</span> If you need to change the carriage return and/or the tab replacement strings, modify them as follows (changed in <span class="version">v2.21.2</span>):
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<pre class="prettyprint lang-js">$.tablesorter.output.replaceCR = '\x0d\x0a';
|
<pre class="prettyprint lang-js">// these are the default settings
|
||||||
|
$.tablesorter.output.replaceCR = '\x0d\x0a';
|
||||||
$.tablesorter.output.replaceTab = '\x09';</pre>
|
$.tablesorter.output.replaceTab = '\x09';</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
|
@ -357,7 +357,7 @@
|
|||||||
<li>The <a href="example-option-theme-bootstrap-v4.html">Bootstrap v4.x</a> theme (<span class="version">v2.28.4</span>) does not require the uitheme widget!</li>
|
<li>The <a href="example-option-theme-bootstrap-v4.html">Bootstrap v4.x</a> theme (<span class="version">v2.28.4</span>) does not require the uitheme widget!</li>
|
||||||
<li>Set up a <a href="example-option-theme-metro-style.html">Metro style theme</a> (<span class="version">v2.16.4</span>).</li>
|
<li>Set up a <a href="example-option-theme-metro-style.html">Metro style theme</a> (<span class="version">v2.16.4</span>).</li>
|
||||||
<li>Set up a <a href="example-option-theme-materialize.html">Materialize theme</a> (<span class="version">v2.27.0</span>).</li>
|
<li>Set up a <a href="example-option-theme-materialize.html">Materialize theme</a> (<span class="version">v2.27.0</span>).</li>
|
||||||
<li>Use css to <a href="example-css-highlighting.html">highlight rows & columns</a> (<span class="version">v2.20.0</span>).</li>
|
<li>Use css to <a href="example-css-highlighting.html">highlight rows & columns</a> (<span class="version">v2.20.0</span>); css file added (<span class="version">v2.28.6</span>).</li>
|
||||||
<li>See all <a href="themes.html">available themes</a>.</li>
|
<li>See all <a href="themes.html">available themes</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p></p>
|
<p></p>
|
||||||
@ -366,8 +366,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="example-option-digits.html">Dealing with digits!</a></li>
|
<li><a href="example-option-digits.html">Dealing with digits!</a></li>
|
||||||
<li><a href="example-options-headers-digits-strings.html">Dealing with text strings in numerical sorts</a> (<a href="#stringto"><code>stringTo</code></a>; v2.0.10).</li>
|
<li><a href="example-options-headers-digits-strings.html">Dealing with text strings in numerical sorts</a> (<a href="#stringto"><code>stringTo</code></a>; v2.0.10).</li>
|
||||||
<li><a href="example-parsers-class-name.html">Disable or set the column parser using class names</a> (v2.0.11).</li>
|
<li><a href="example-parsers-class-name.html">Disable sorting or set the column parser using class names</a> (v2.0.11).</li>
|
||||||
<li><a href="example-parsers-jquery-data.html">Disable or set the column parser using data</a> (v2.3).</li>
|
<li><a href="example-parsers-jquery-data.html">Disable sorting or set the column parser using data</a> (v2.3).</li>
|
||||||
|
<li><a href="example-options-headers-parser.html">Diable parsing of column content</a> (<span class="version">v2.17.1</span>).</li>
|
||||||
<li><a href="example-extractors-parsers.html">Using extractors with parsers</a> (<span class="version">v2.17.6</span>).</li>
|
<li><a href="example-extractors-parsers.html">Using extractors with parsers</a> (<span class="version">v2.17.6</span>).</li>
|
||||||
<li><a href="example-option-date-format.html">Changing the date format</a> (v2.0.23).</li>
|
<li><a href="example-option-date-format.html">Changing the date format</a> (v2.0.23).</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -456,7 +457,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="example-widget-align-character.html">Align Character Widget</a> (<span class="version">v2.15.8</span>; <span class="version updated">v2.19.0</span>).</li>
|
<li><a href="example-widget-align-character.html">Align Character Widget</a> (<span class="version">v2.15.8</span>; <span class="version updated">v2.19.0</span>).</li>
|
||||||
<li><a href="example-widget-build-table.html">Build table Widget</a> (<span class="version">v2.11</span>; <span class="version updated">v2.21.3</span>).</li>
|
<li><a href="example-widget-build-table.html">Build table Widget</a> (<span class="version">v2.11</span>; <span class="version updated">v2.28.6</span>).</li>
|
||||||
|
|
||||||
<li><span class="label label-info">Beta</span> <a href="example-widget-chart.html">Chart Widget</a> (<span class="version">v2.19.0</span>; <span class="version updated">v2.24.0</span>).</li>
|
<li><span class="label label-info">Beta</span> <a href="example-widget-chart.html">Chart Widget</a> (<span class="version">v2.19.0</span>; <span class="version updated">v2.24.0</span>).</li>
|
||||||
<li><span class="results">†</span> <a href="example-widget-columns.html">Columns highlight widget</a> (v2.0.17).</li>
|
<li><span class="results">†</span> <a href="example-widget-columns.html">Columns highlight widget</a> (v2.0.17).</li>
|
||||||
@ -464,7 +465,7 @@
|
|||||||
<li><a href="example-widget-editable.html">Content editable widget</a> (v2.9; <span class="version updated">v2.25.5</span>).</li>
|
<li><a href="example-widget-editable.html">Content editable widget</a> (v2.9; <span class="version updated">v2.25.5</span>).</li>
|
||||||
<li><a href="example-widget-current-sort.html">Current Sort Widget</a> (<span class="version">v2.27.0</span>).</li>
|
<li><a href="example-widget-current-sort.html">Current Sort Widget</a> (<span class="version">v2.27.0</span>).</li>
|
||||||
<li><span class="label label-info">Beta</span> <a href="example-dragtable.html">Dragtable mod</a> - (jQuery UI widget for column reordering [<a class="external" href="http://stackoverflow.com/a/27770224/145346">ref</a>]; <span class="version">v2.24.0</span>).</li>
|
<li><span class="label label-info">Beta</span> <a href="example-dragtable.html">Dragtable mod</a> - (jQuery UI widget for column reordering [<a class="external" href="http://stackoverflow.com/a/27770224/145346">ref</a>]; <span class="version">v2.24.0</span>).</li>
|
||||||
<li><span class="results">†</span> Filter widget (<span class="version updated">v2.28.0</span>):
|
<li><span class="results">†</span> Filter widget (<span class="version updated">v2.28.6</span>):
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="example-widget-filter.html">basic</a> (v2.0.18; <span class="version updated">v2.26.6</span>).</li>
|
<li><a href="example-widget-filter.html">basic</a> (v2.0.18; <span class="version updated">v2.26.6</span>).</li>
|
||||||
<li><a href="example-widget-filter-any-match.html">external option (match any column)</a> (<span class="version">v2.13.3</span>; <span class="version updated">v2.27.5</span>).</li>
|
<li><a href="example-widget-filter-any-match.html">external option (match any column)</a> (<span class="version">v2.13.3</span>; <span class="version updated">v2.27.5</span>).</li>
|
||||||
@ -491,13 +492,13 @@
|
|||||||
<li><a href="example-widget-mark.html">Mark widget</a> (<span class="version">v2.27.6</span>).</li>
|
<li><a href="example-widget-mark.html">Mark widget</a> (<span class="version">v2.27.6</span>).</li>
|
||||||
<li><a href="example-widget-math.html">Math widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.28.0</span>).</li>
|
<li><a href="example-widget-math.html">Math widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.28.0</span>).</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="example-widget-output.html">Output widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.28.5</span>).
|
<a href="example-widget-output.html">Output widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.28.6</span>).
|
||||||
<br><br>
|
<br><br>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>Pager plugin (<a href="example-pager.html">basic</a> & <a href="example-pager-ajax.html">ajax</a> demos; <span class="version updated">v2.28.4</span>).</li>
|
<li>Pager plugin (<a href="example-pager.html">basic</a> & <a href="example-pager-ajax.html">ajax</a> demos; <span class="version updated">v2.28.6</span>).</li>
|
||||||
<li>
|
<li>
|
||||||
Pager widget (<a href="example-widget-pager.html">basic</a> & <a href="example-widget-pager-ajax.html">ajax</a> demos) (<span class="version">v2.12</span>; <span class="version updated">v2.28.4</span>).<br>
|
Pager widget (<a href="example-widget-pager.html">basic</a> & <a href="example-widget-pager-ajax.html">ajax</a> demos) (<span class="version">v2.12</span>; <span class="version updated">v2.28.6</span>).<br>
|
||||||
<br>
|
<br>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@ -507,7 +508,7 @@
|
|||||||
<li><span class="results">†</span> <a href="example-widget-resizable.html">Resizable columns widget</a> (v2.0.23.1; <span class="version updated">v2.28.5</span>).</li>
|
<li><span class="results">†</span> <a href="example-widget-resizable.html">Resizable columns widget</a> (v2.0.23.1; <span class="version updated">v2.28.5</span>).</li>
|
||||||
<li><span class="results">†</span> <a href="example-widget-savesort.html">Save sort widget</a> (v2.0.27; <span class="version updated">v2.24.0</span>).</li>
|
<li><span class="results">†</span> <a href="example-widget-savesort.html">Save sort widget</a> (v2.0.27; <span class="version updated">v2.24.0</span>).</li>
|
||||||
<li><a href="example-widget-scroller.html">Scroller widget</a> (<span class="version">v2.9</span>; <span class="version updated">v2.28.5</span>).</li>
|
<li><a href="example-widget-scroller.html">Scroller widget</a> (<span class="version">v2.9</span>; <span class="version updated">v2.28.5</span>).</li>
|
||||||
<li><span class="label label-info">Beta</span> <a href="example-widget-sort-to-hash.html">Sort-to-hash widget</a> (<span class="version">v2.22.4</span>; <span class="version updated">v2.24.4</span>).</li>
|
<li><span class="label label-info">Beta</span> <a href="example-widget-sort-to-hash.html">Sort-to-hash widget</a> (<span class="version">v2.22.4</span>; <span class="version updated">v2.28.6</span>).</li>
|
||||||
<li><span class="label label-info">Beta</span> <a href="example-widget-sort-tbodies.html">Sort tbodies widget</a> (<span class="version">v2.22.2</span>; <span class="version updated">v2.28.0</span>).</li>
|
<li><span class="label label-info">Beta</span> <a href="example-widget-sort-tbodies.html">Sort tbodies widget</a> (<span class="version">v2.22.2</span>; <span class="version updated">v2.28.0</span>).</li>
|
||||||
<li><a href="example-widget-static-row.html">Static row widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.24.0</span>).</li>
|
<li><a href="example-widget-static-row.html">Static row widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.24.0</span>).</li>
|
||||||
|
|
||||||
@ -540,6 +541,7 @@
|
|||||||
<li><a href="example-parsers-ignore-articles.html">Ignore leading articles parser</a> (Ignore "A", "An" and "The" in titles) (<span class="version">v2.8</span>).</li>
|
<li><a href="example-parsers-ignore-articles.html">Ignore leading articles parser</a> (Ignore "A", "An" and "The" in titles) (<span class="version">v2.8</span>).</li>
|
||||||
<li><a href="example-widget-grouping.html">Input/select parsers</a> (used by Grouping rows widget) (<span class="version">v2.8</span>; <span class="version updated">v2.25.9</span>).</li>
|
<li><a href="example-widget-grouping.html">Input/select parsers</a> (used by Grouping rows widget) (<span class="version">v2.8</span>; <span class="version updated">v2.25.9</span>).</li>
|
||||||
<li><a href="example-parsers-globalize.html">jQuery Globalize</a> (number & date parsers; <span class="version">v2.22.0</span>; <span class="version updated">v2.25.0</span>).</li>
|
<li><a href="example-parsers-globalize.html">jQuery Globalize</a> (number & date parsers; <span class="version">v2.22.0</span>; <span class="version updated">v2.25.0</span>).</li>
|
||||||
|
<li><a href="example-parsers-leading-zeros.html">Leading zeros parser</a> (<span class="version">v2.28.6</span>).</li>
|
||||||
<li><a href="example-parsers-metric.html">Metric parser</a> (<span class="version">v2.8</span>).</li>
|
<li><a href="example-parsers-metric.html">Metric parser</a> (<span class="version">v2.8</span>).</li>
|
||||||
<li><a href="example-parsers-named-numbers.html">Named Numbers parser</a> (<span class="version">v2.18.0</span>; <span class="version updated">v2.22.0</span>).</li>
|
<li><a href="example-parsers-named-numbers.html">Named Numbers parser</a> (<span class="version">v2.18.0</span>; <span class="version updated">v2.22.0</span>).</li>
|
||||||
<li><a href="example-parsers-ip-address.html">Network (IPv4, IPv6 and MAC address parser</a> (<span class="version">v2.12</span>; <span class="version updated">v2.22.0</span>; <span class="label warning">NOTE</span> "ipAddress" parser moved to this file in v2.18.0).</li>
|
<li><a href="example-parsers-ip-address.html">Network (IPv4, IPv6 and MAC address parser</a> (<span class="version">v2.12</span>; <span class="version updated">v2.22.0</span>; <span class="label warning">NOTE</span> "ipAddress" parser moved to this file in v2.18.0).</li>
|
||||||
@ -1201,6 +1203,7 @@ From the example function above, you'll end up with something similar to this HT
|
|||||||
<td>"> thead th, > thead td"</td>
|
<td>"> thead th, > thead td"</td>
|
||||||
<td>jQuery selectors used to find cells in the header.
|
<td>jQuery selectors used to find cells in the header.
|
||||||
<div class="collapsible">
|
<div class="collapsible">
|
||||||
|
<br>
|
||||||
You can change this, but the table will still need the required thead and tbody before this plugin will work properly.
|
You can change this, but the table will still need the required thead and tbody before this plugin will work properly.
|
||||||
<br>Added <code>></code> to the selector in v2.3 to prevent targeting nested table headers. It was modified again in v2.4 to include <code>td</code> cells within the thead.
|
<br>Added <code>></code> to the selector in v2.3 to prevent targeting nested table headers. It was modified again in v2.4 to include <code>td</code> cells within the thead.
|
||||||
</div>
|
</div>
|
||||||
@ -1236,13 +1239,12 @@ From the example function above, you'll end up with something similar to this HT
|
|||||||
<td>When this option is <code>true</code> any applied sort on the table will be reapplied after an update method (<span class="version">v2.19.0</span>).
|
<td>When this option is <code>true</code> any applied sort on the table will be reapplied after an update method (<span class="version">v2.19.0</span>).
|
||||||
<div class="collapsible">
|
<div class="collapsible">
|
||||||
<br>
|
<br>
|
||||||
Specifically, this option applies to the "updateAll", "update", "addRows" and "updateCell" methods and is checked after the method has completed updating the internal cache.<br>
|
Specifically, this option applies to the <a href="#updateall"><code>updateAll</code></a>, <a href="#update"><code>update</code></a>, <a href="#addrows"><code>addRows</code></a> and <a href="#updatecell"><code>updateCell</code></a> methods and is checked after the method has completed updating the internal cache.<br>
|
||||||
<br>
|
<br>
|
||||||
If <code>false</code>, the widgets will still be refreshed for all but the "updateCell" method - this "updateCell" behavior was added in v2.19.0.<br>
|
If <code>false</code>, the widgets will still be refreshed for all but the <code>updateCell</code> method - this behavior was added in v2.19.0.<br>
|
||||||
<br>
|
<br>
|
||||||
<span class="label label-info">Note</span> when triggering one of the above methods, and passing a defined <code>resort</code> parameter, it will override this setting.<br>
|
<span class="label label-info">Note</span> when triggering one of the above methods, and passing a defined <code>resort</code> parameter, it will override this setting.<br>
|
||||||
<br>
|
<span class="label label-warning">Note</span> if a sort is not reapplied, problems with some widgets may occur, namely with the grouping widget.
|
||||||
<span class="label label-warning">Note</span> if a sort is not reapplied, problems with some widgets may occur namely the grouping widget.
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
8
docs/js/jquery-latest.min.js
vendored
8
docs/js/jquery-latest.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||||
*/
|
*/
|
||||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
/*! tablesorter (FORK) - updated 04-02-2017 (v2.28.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
}(function(jQuery) {
|
}(function(jQuery) {
|
||||||
|
|
||||||
/*! TableSorter (FORK) v2.28.5 *//*
|
/*! TableSorter (FORK) v2.28.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -40,7 +40,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.28.5',
|
version : '2.28.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -380,7 +380,17 @@
|
|||||||
.bind( 'sortReset' + namespace, function( e, callback ) {
|
.bind( 'sortReset' + namespace, function( e, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// using this.config to ensure functions are getting a non-cached version of the config
|
// using this.config to ensure functions are getting a non-cached version of the config
|
||||||
ts.sortReset( this.config, callback );
|
ts.sortReset( this.config, function( table ) {
|
||||||
|
if (table.isApplyingWidgets) {
|
||||||
|
// multiple triggers in a row... filterReset, then sortReset - see #1361
|
||||||
|
// wait to update widgets
|
||||||
|
setTimeout( function() {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}, 100 );
|
||||||
|
} else {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -449,7 +459,7 @@
|
|||||||
var tmp = $.extend( true, {}, c.originalSettings );
|
var tmp = $.extend( true, {}, c.originalSettings );
|
||||||
// restore original settings; this clears out current settings, but does not clear
|
// restore original settings; this clears out current settings, but does not clear
|
||||||
// values saved to storage.
|
// values saved to storage.
|
||||||
c = $.extend( true, ts.defaults, tmp );
|
c = $.extend( true, {}, ts.defaults, tmp );
|
||||||
c.originalSettings = tmp;
|
c.originalSettings = tmp;
|
||||||
this.hasInitialized = false;
|
this.hasInitialized = false;
|
||||||
// setup the entire table again
|
// setup the entire table again
|
||||||
@ -684,8 +694,9 @@
|
|||||||
for ( indx = 0; indx < max; indx++ ) {
|
for ( indx = 0; indx < max; indx++ ) {
|
||||||
header = c.$headerIndexed[ colIndex ];
|
header = c.$headerIndexed[ colIndex ];
|
||||||
if ( header && header.length ) {
|
if ( header && header.length ) {
|
||||||
// get column indexed table cell
|
// get column indexed table cell; adding true parameter fixes #1362 but
|
||||||
configHeaders = ts.getColumnData( table, c.headers, colIndex );
|
// it would break backwards compatibility...
|
||||||
|
configHeaders = ts.getColumnData( table, c.headers, colIndex ); // , true );
|
||||||
// get column parser/extractor
|
// get column parser/extractor
|
||||||
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
||||||
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
||||||
@ -1786,6 +1797,10 @@
|
|||||||
ts.setHeadersCss( c );
|
ts.setHeadersCss( c );
|
||||||
ts.multisort( c );
|
ts.multisort( c );
|
||||||
ts.appendCache( c );
|
ts.appendCache( c );
|
||||||
|
var indx;
|
||||||
|
for (indx = 0; indx < c.columns; indx++) {
|
||||||
|
c.sortVars[ indx ].count = -1;
|
||||||
|
}
|
||||||
if ( $.isFunction( callback ) ) {
|
if ( $.isFunction( callback ) ) {
|
||||||
callback( c.table );
|
callback( c.table );
|
||||||
}
|
}
|
||||||
@ -1928,14 +1943,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
applyWidgetOptions : function( table ) {
|
applyWidgetOptions : function( table ) {
|
||||||
var indx, widget,
|
var indx, widget, wo,
|
||||||
c = table.config,
|
c = table.config,
|
||||||
len = c.widgets.length;
|
len = c.widgets.length;
|
||||||
if ( len ) {
|
if ( len ) {
|
||||||
for ( indx = 0; indx < len; indx++ ) {
|
for ( indx = 0; indx < len; indx++ ) {
|
||||||
widget = ts.getWidgetById( c.widgets[ indx ] );
|
widget = ts.getWidgetById( c.widgets[ indx ] );
|
||||||
if ( widget && widget.options ) {
|
if ( widget && widget.options ) {
|
||||||
c.widgetOptions = $.extend( true, {}, widget.options, c.widgetOptions );
|
wo = $.extend( {}, widget.options );
|
||||||
|
c.widgetOptions = $.extend( true, wo, c.widgetOptions );
|
||||||
// add widgetOptions to defaults for option validator
|
// add widgetOptions to defaults for option validator
|
||||||
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
||||||
}
|
}
|
||||||
@ -2058,22 +2074,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
||||||
// callback executed on init only
|
|
||||||
if ( !init && typeof callback === 'function' ) {
|
|
||||||
callback( table );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
c.timerReady = setTimeout( function() {
|
c.timerReady = setTimeout( function() {
|
||||||
table.isApplyingWidgets = false;
|
table.isApplyingWidgets = false;
|
||||||
$.data( table, 'lastWidgetApplication', new Date() );
|
$.data( table, 'lastWidgetApplication', new Date() );
|
||||||
c.$table.triggerHandler( 'tablesorter-ready' );
|
c.$table.triggerHandler( 'tablesorter-ready' );
|
||||||
|
// callback executed on init only
|
||||||
|
if ( !init && typeof callback === 'function' ) {
|
||||||
|
callback( table );
|
||||||
|
}
|
||||||
|
if ( c.debug ) {
|
||||||
|
widget = c.widgets.length;
|
||||||
|
console.log( 'Completed ' +
|
||||||
|
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||||
|
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||||
|
}
|
||||||
}, 10 );
|
}, 10 );
|
||||||
if ( c.debug ) {
|
|
||||||
widget = c.widgets.length;
|
|
||||||
console.log( 'Completed ' +
|
|
||||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
|
||||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
removeWidget : function( table, name, refreshing ) {
|
removeWidget : function( table, name, refreshing ) {
|
||||||
@ -3188,7 +3204,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
|
/*! Widget: filter - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -4073,7 +4089,7 @@
|
|||||||
wo = c.widgetOptions,
|
wo = c.widgetOptions,
|
||||||
filterArray = $.isArray( filter ),
|
filterArray = $.isArray( filter ),
|
||||||
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
||||||
combinedFilters = ( filters || [] ).join( '' ); // combined filter values
|
currentFilters = filters || []; // current filter values
|
||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
@ -4087,7 +4103,10 @@
|
|||||||
// add filter array back into inputs
|
// add filter array back into inputs
|
||||||
if ( filterArray ) {
|
if ( filterArray ) {
|
||||||
ts.setFilters( table, filters, false, skipFirst !== true );
|
ts.setFilters( table, filters, false, skipFirst !== true );
|
||||||
if ( !wo.filter_initialized ) { c.lastCombinedFilter = ''; }
|
if ( !wo.filter_initialized ) {
|
||||||
|
c.lastSearch = [];
|
||||||
|
c.lastCombinedFilter = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( wo.filter_hideFilters ) {
|
if ( wo.filter_hideFilters ) {
|
||||||
// show/hide filter row as needed
|
// show/hide filter row as needed
|
||||||
@ -4097,11 +4116,11 @@
|
|||||||
}
|
}
|
||||||
// return if the last search is the same; but filter === false when updating the search
|
// return if the last search is the same; but filter === false when updating the search
|
||||||
// see example-widget-filter.html filter toggle buttons
|
// see example-widget-filter.html filter toggle buttons
|
||||||
if ( c.lastCombinedFilter === combinedFilters && filter !== false ) {
|
if ( c.lastSearch.join(',') === currentFilters.join(',') && filter !== false ) {
|
||||||
return;
|
return;
|
||||||
} else if ( filter === false ) {
|
} else if ( filter === false ) {
|
||||||
// force filter refresh
|
// force filter refresh
|
||||||
c.lastCombinedFilter = null;
|
c.lastCombinedFilter = '';
|
||||||
c.lastSearch = [];
|
c.lastSearch = [];
|
||||||
}
|
}
|
||||||
// define filter inside it is false
|
// define filter inside it is false
|
||||||
@ -4118,11 +4137,11 @@
|
|||||||
if ( c.showProcessing ) {
|
if ( c.showProcessing ) {
|
||||||
// give it time for the processing icon to kick in
|
// give it time for the processing icon to kick in
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}, 30 );
|
}, 30 );
|
||||||
} else {
|
} else {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4444,9 +4463,11 @@
|
|||||||
}
|
}
|
||||||
return showRow;
|
return showRow;
|
||||||
},
|
},
|
||||||
findRows: function( table, filters, combinedFilters ) {
|
findRows: function( table, filters, currentFilters ) {
|
||||||
if ( table.config.lastCombinedFilter === combinedFilters ||
|
if (
|
||||||
!table.config.widgetOptions.filter_initialized ) {
|
table.config.lastSearch.join(',') === ( currentFilters || [] ).join(',') ||
|
||||||
|
!table.config.widgetOptions.filter_initialized
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
||||||
@ -4500,8 +4521,7 @@
|
|||||||
// filtered rows count
|
// filtered rows count
|
||||||
c.filteredRows = 0;
|
c.filteredRows = 0;
|
||||||
c.totalRows = 0;
|
c.totalRows = 0;
|
||||||
// combindedFilters are undefined on init
|
currentFilters = ( storedFilters || [] );
|
||||||
combinedFilters = ( storedFilters || [] ).join( '' );
|
|
||||||
|
|
||||||
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
||||||
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
||||||
@ -4514,7 +4534,7 @@
|
|||||||
return el[ columnIndex ].$row.get();
|
return el[ columnIndex ].$row.get();
|
||||||
}) );
|
}) );
|
||||||
|
|
||||||
if ( combinedFilters === '' || wo.filter_serversideFiltering ) {
|
if ( currentFilters.join('') === '' || wo.filter_serversideFiltering ) {
|
||||||
$rows
|
$rows
|
||||||
.removeClass( wo.filter_filteredRow )
|
.removeClass( wo.filter_filteredRow )
|
||||||
.not( '.' + c.cssChildRow )
|
.not( '.' + c.cssChildRow )
|
||||||
@ -4689,7 +4709,8 @@
|
|||||||
c.totalRows += $rows.length;
|
c.totalRows += $rows.length;
|
||||||
ts.processTbody( table, $tbody, false );
|
ts.processTbody( table, $tbody, false );
|
||||||
}
|
}
|
||||||
c.lastCombinedFilter = combinedFilters; // save last search
|
// lastCombinedFilter is no longer used internally
|
||||||
|
c.lastCombinedFilter = storedFilters.join(''); // save last search
|
||||||
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
||||||
c.lastSearch = storedFilters;
|
c.lastSearch = storedFilters;
|
||||||
c.$table.data( 'lastSearch', storedFilters );
|
c.$table.data( 'lastSearch', storedFilters );
|
||||||
@ -4989,7 +5010,7 @@
|
|||||||
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
||||||
// setFilters called, but last search is exactly the same as the current
|
// setFilters called, but last search is exactly the same as the current
|
||||||
// fixes issue #733 & #903 where calling update causes the input values to reset
|
// fixes issue #733 & #903 where calling update causes the input values to reset
|
||||||
( $.isArray(setFilters) && setFilters.join('') === c.lastCombinedFilter ) ) {
|
( $.isArray(setFilters) && setFilters.join(',') === c.lastSearch.join(',') ) ) {
|
||||||
return $( table ).data( 'lastSearch' );
|
return $( table ).data( 'lastSearch' );
|
||||||
}
|
}
|
||||||
if ( c ) {
|
if ( c ) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! TableSorter (FORK) v2.28.5 *//*
|
/*! TableSorter (FORK) v2.28.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -22,7 +22,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.28.5',
|
version : '2.28.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -362,7 +362,17 @@
|
|||||||
.bind( 'sortReset' + namespace, function( e, callback ) {
|
.bind( 'sortReset' + namespace, function( e, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// using this.config to ensure functions are getting a non-cached version of the config
|
// using this.config to ensure functions are getting a non-cached version of the config
|
||||||
ts.sortReset( this.config, callback );
|
ts.sortReset( this.config, function( table ) {
|
||||||
|
if (table.isApplyingWidgets) {
|
||||||
|
// multiple triggers in a row... filterReset, then sortReset - see #1361
|
||||||
|
// wait to update widgets
|
||||||
|
setTimeout( function() {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}, 100 );
|
||||||
|
} else {
|
||||||
|
ts.applyWidget( table, '', callback );
|
||||||
|
}
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
.bind( 'updateAll' + namespace, function( e, resort, callback ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -431,7 +441,7 @@
|
|||||||
var tmp = $.extend( true, {}, c.originalSettings );
|
var tmp = $.extend( true, {}, c.originalSettings );
|
||||||
// restore original settings; this clears out current settings, but does not clear
|
// restore original settings; this clears out current settings, but does not clear
|
||||||
// values saved to storage.
|
// values saved to storage.
|
||||||
c = $.extend( true, ts.defaults, tmp );
|
c = $.extend( true, {}, ts.defaults, tmp );
|
||||||
c.originalSettings = tmp;
|
c.originalSettings = tmp;
|
||||||
this.hasInitialized = false;
|
this.hasInitialized = false;
|
||||||
// setup the entire table again
|
// setup the entire table again
|
||||||
@ -666,8 +676,9 @@
|
|||||||
for ( indx = 0; indx < max; indx++ ) {
|
for ( indx = 0; indx < max; indx++ ) {
|
||||||
header = c.$headerIndexed[ colIndex ];
|
header = c.$headerIndexed[ colIndex ];
|
||||||
if ( header && header.length ) {
|
if ( header && header.length ) {
|
||||||
// get column indexed table cell
|
// get column indexed table cell; adding true parameter fixes #1362 but
|
||||||
configHeaders = ts.getColumnData( table, c.headers, colIndex );
|
// it would break backwards compatibility...
|
||||||
|
configHeaders = ts.getColumnData( table, c.headers, colIndex ); // , true );
|
||||||
// get column parser/extractor
|
// get column parser/extractor
|
||||||
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
extractor = ts.getParserById( ts.getData( header, configHeaders, 'extractor' ) );
|
||||||
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
parser = ts.getParserById( ts.getData( header, configHeaders, 'sorter' ) );
|
||||||
@ -1768,6 +1779,10 @@
|
|||||||
ts.setHeadersCss( c );
|
ts.setHeadersCss( c );
|
||||||
ts.multisort( c );
|
ts.multisort( c );
|
||||||
ts.appendCache( c );
|
ts.appendCache( c );
|
||||||
|
var indx;
|
||||||
|
for (indx = 0; indx < c.columns; indx++) {
|
||||||
|
c.sortVars[ indx ].count = -1;
|
||||||
|
}
|
||||||
if ( $.isFunction( callback ) ) {
|
if ( $.isFunction( callback ) ) {
|
||||||
callback( c.table );
|
callback( c.table );
|
||||||
}
|
}
|
||||||
@ -1910,14 +1925,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
applyWidgetOptions : function( table ) {
|
applyWidgetOptions : function( table ) {
|
||||||
var indx, widget,
|
var indx, widget, wo,
|
||||||
c = table.config,
|
c = table.config,
|
||||||
len = c.widgets.length;
|
len = c.widgets.length;
|
||||||
if ( len ) {
|
if ( len ) {
|
||||||
for ( indx = 0; indx < len; indx++ ) {
|
for ( indx = 0; indx < len; indx++ ) {
|
||||||
widget = ts.getWidgetById( c.widgets[ indx ] );
|
widget = ts.getWidgetById( c.widgets[ indx ] );
|
||||||
if ( widget && widget.options ) {
|
if ( widget && widget.options ) {
|
||||||
c.widgetOptions = $.extend( true, {}, widget.options, c.widgetOptions );
|
wo = $.extend( {}, widget.options );
|
||||||
|
c.widgetOptions = $.extend( true, wo, c.widgetOptions );
|
||||||
// add widgetOptions to defaults for option validator
|
// add widgetOptions to defaults for option validator
|
||||||
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
$.extend( true, ts.defaults.widgetOptions, widget.options );
|
||||||
}
|
}
|
||||||
@ -2040,22 +2056,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
if ( c.debug && console.groupEnd ) { console.groupEnd(); }
|
||||||
// callback executed on init only
|
|
||||||
if ( !init && typeof callback === 'function' ) {
|
|
||||||
callback( table );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
c.timerReady = setTimeout( function() {
|
c.timerReady = setTimeout( function() {
|
||||||
table.isApplyingWidgets = false;
|
table.isApplyingWidgets = false;
|
||||||
$.data( table, 'lastWidgetApplication', new Date() );
|
$.data( table, 'lastWidgetApplication', new Date() );
|
||||||
c.$table.triggerHandler( 'tablesorter-ready' );
|
c.$table.triggerHandler( 'tablesorter-ready' );
|
||||||
|
// callback executed on init only
|
||||||
|
if ( !init && typeof callback === 'function' ) {
|
||||||
|
callback( table );
|
||||||
|
}
|
||||||
|
if ( c.debug ) {
|
||||||
|
widget = c.widgets.length;
|
||||||
|
console.log( 'Completed ' +
|
||||||
|
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
||||||
|
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
||||||
|
}
|
||||||
}, 10 );
|
}, 10 );
|
||||||
if ( c.debug ) {
|
|
||||||
widget = c.widgets.length;
|
|
||||||
console.log( 'Completed ' +
|
|
||||||
( init === true ? 'initializing ' : 'applying ' ) + widget +
|
|
||||||
' widget' + ( widget !== 1 ? 's' : '' ) + ts.benchmark( time ) );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
removeWidget : function( table, name, refreshing ) {
|
removeWidget : function( table, name, refreshing ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||||
*/
|
*/
|
||||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
/*! tablesorter (FORK) - updated 04-02-2017 (v2.28.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -393,7 +393,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
|
/*! Widget: filter - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -1278,7 +1278,7 @@
|
|||||||
wo = c.widgetOptions,
|
wo = c.widgetOptions,
|
||||||
filterArray = $.isArray( filter ),
|
filterArray = $.isArray( filter ),
|
||||||
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
||||||
combinedFilters = ( filters || [] ).join( '' ); // combined filter values
|
currentFilters = filters || []; // current filter values
|
||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
@ -1292,7 +1292,10 @@
|
|||||||
// add filter array back into inputs
|
// add filter array back into inputs
|
||||||
if ( filterArray ) {
|
if ( filterArray ) {
|
||||||
ts.setFilters( table, filters, false, skipFirst !== true );
|
ts.setFilters( table, filters, false, skipFirst !== true );
|
||||||
if ( !wo.filter_initialized ) { c.lastCombinedFilter = ''; }
|
if ( !wo.filter_initialized ) {
|
||||||
|
c.lastSearch = [];
|
||||||
|
c.lastCombinedFilter = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( wo.filter_hideFilters ) {
|
if ( wo.filter_hideFilters ) {
|
||||||
// show/hide filter row as needed
|
// show/hide filter row as needed
|
||||||
@ -1302,11 +1305,11 @@
|
|||||||
}
|
}
|
||||||
// return if the last search is the same; but filter === false when updating the search
|
// return if the last search is the same; but filter === false when updating the search
|
||||||
// see example-widget-filter.html filter toggle buttons
|
// see example-widget-filter.html filter toggle buttons
|
||||||
if ( c.lastCombinedFilter === combinedFilters && filter !== false ) {
|
if ( c.lastSearch.join(',') === currentFilters.join(',') && filter !== false ) {
|
||||||
return;
|
return;
|
||||||
} else if ( filter === false ) {
|
} else if ( filter === false ) {
|
||||||
// force filter refresh
|
// force filter refresh
|
||||||
c.lastCombinedFilter = null;
|
c.lastCombinedFilter = '';
|
||||||
c.lastSearch = [];
|
c.lastSearch = [];
|
||||||
}
|
}
|
||||||
// define filter inside it is false
|
// define filter inside it is false
|
||||||
@ -1323,11 +1326,11 @@
|
|||||||
if ( c.showProcessing ) {
|
if ( c.showProcessing ) {
|
||||||
// give it time for the processing icon to kick in
|
// give it time for the processing icon to kick in
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}, 30 );
|
}, 30 );
|
||||||
} else {
|
} else {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1649,9 +1652,11 @@
|
|||||||
}
|
}
|
||||||
return showRow;
|
return showRow;
|
||||||
},
|
},
|
||||||
findRows: function( table, filters, combinedFilters ) {
|
findRows: function( table, filters, currentFilters ) {
|
||||||
if ( table.config.lastCombinedFilter === combinedFilters ||
|
if (
|
||||||
!table.config.widgetOptions.filter_initialized ) {
|
table.config.lastSearch.join(',') === ( currentFilters || [] ).join(',') ||
|
||||||
|
!table.config.widgetOptions.filter_initialized
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
||||||
@ -1705,8 +1710,7 @@
|
|||||||
// filtered rows count
|
// filtered rows count
|
||||||
c.filteredRows = 0;
|
c.filteredRows = 0;
|
||||||
c.totalRows = 0;
|
c.totalRows = 0;
|
||||||
// combindedFilters are undefined on init
|
currentFilters = ( storedFilters || [] );
|
||||||
combinedFilters = ( storedFilters || [] ).join( '' );
|
|
||||||
|
|
||||||
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
||||||
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
||||||
@ -1719,7 +1723,7 @@
|
|||||||
return el[ columnIndex ].$row.get();
|
return el[ columnIndex ].$row.get();
|
||||||
}) );
|
}) );
|
||||||
|
|
||||||
if ( combinedFilters === '' || wo.filter_serversideFiltering ) {
|
if ( currentFilters.join('') === '' || wo.filter_serversideFiltering ) {
|
||||||
$rows
|
$rows
|
||||||
.removeClass( wo.filter_filteredRow )
|
.removeClass( wo.filter_filteredRow )
|
||||||
.not( '.' + c.cssChildRow )
|
.not( '.' + c.cssChildRow )
|
||||||
@ -1894,7 +1898,8 @@
|
|||||||
c.totalRows += $rows.length;
|
c.totalRows += $rows.length;
|
||||||
ts.processTbody( table, $tbody, false );
|
ts.processTbody( table, $tbody, false );
|
||||||
}
|
}
|
||||||
c.lastCombinedFilter = combinedFilters; // save last search
|
// lastCombinedFilter is no longer used internally
|
||||||
|
c.lastCombinedFilter = storedFilters.join(''); // save last search
|
||||||
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
||||||
c.lastSearch = storedFilters;
|
c.lastSearch = storedFilters;
|
||||||
c.$table.data( 'lastSearch', storedFilters );
|
c.$table.data( 'lastSearch', storedFilters );
|
||||||
@ -2194,7 +2199,7 @@
|
|||||||
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
||||||
// setFilters called, but last search is exactly the same as the current
|
// setFilters called, but last search is exactly the same as the current
|
||||||
// fixes issue #733 & #903 where calling update causes the input values to reset
|
// fixes issue #733 & #903 where calling update causes the input values to reset
|
||||||
( $.isArray(setFilters) && setFilters.join('') === c.lastCombinedFilter ) ) {
|
( $.isArray(setFilters) && setFilters.join(',') === c.lastSearch.join(',') ) ) {
|
||||||
return $( table ).data( 'lastSearch' );
|
return $( table ).data( 'lastSearch' );
|
||||||
}
|
}
|
||||||
if ( c ) {
|
if ( c ) {
|
||||||
|
33
js/parsers/parser-leading-zeros.js
Normal file
33
js/parsers/parser-leading-zeros.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*! Parser: leading zeros - updated 4/2/2017 (v2.28.6) */
|
||||||
|
/* jshint jquery:true, unused:false */
|
||||||
|
;( function( $ ) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var ts = $.tablesorter,
|
||||||
|
// modify this value to increase precision as needed
|
||||||
|
precision = 1e-10;
|
||||||
|
|
||||||
|
ts.addParser({
|
||||||
|
id: 'leadingZeros',
|
||||||
|
is: function() {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
format: function( s, table ) {
|
||||||
|
var val = ( s || '' ).replace( ts.regex.nondigit, '' ),
|
||||||
|
number = ts.formatFloat( val, table ),
|
||||||
|
str = number.toString();
|
||||||
|
if (
|
||||||
|
!isNaN( number ) &&
|
||||||
|
number == val && // jshint ignore:line
|
||||||
|
val.length !== str.length
|
||||||
|
) {
|
||||||
|
// subtract a decimal equivalent of the string length
|
||||||
|
// so "0001" sorts before "01"
|
||||||
|
number -= precision * ( s.length - str.length );
|
||||||
|
}
|
||||||
|
return number;
|
||||||
|
},
|
||||||
|
type: 'number'
|
||||||
|
});
|
||||||
|
|
||||||
|
})( jQuery );
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: Build Table - updated 11/26/2016 (v2.28.0) *//*
|
/*! Widget: Build Table - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* for tableSorter v2.16.0+
|
* for tableSorter v2.16.0+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -12,6 +12,8 @@
|
|||||||
// data.header contains an array of header titles
|
// data.header contains an array of header titles
|
||||||
// data.rows contains an array of rows which contains an array of cells
|
// data.rows contains an array of rows which contains an array of cells
|
||||||
bt = ts.buildTable = function(tar, c){
|
bt = ts.buildTable = function(tar, c){
|
||||||
|
// add build options to defaults to prevent warnings
|
||||||
|
$.extend(true, ts.defaults.widgetOptions, bt.defaults);
|
||||||
// add table if one doesn't exist
|
// add table if one doesn't exist
|
||||||
var $tbl = tar.nodeName === 'TABLE' ? $(tar) : $('<table>').appendTo(tar),
|
var $tbl = tar.nodeName === 'TABLE' ? $(tar) : $('<table>').appendTo(tar),
|
||||||
table = $tbl[0],
|
table = $tbl[0],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: filter - updated 12/8/2016 (v2.28.1) *//*
|
/*! Widget: filter - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -883,7 +883,7 @@
|
|||||||
wo = c.widgetOptions,
|
wo = c.widgetOptions,
|
||||||
filterArray = $.isArray( filter ),
|
filterArray = $.isArray( filter ),
|
||||||
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
filters = ( filterArray ) ? filter : ts.getFilters( table, true ),
|
||||||
combinedFilters = ( filters || [] ).join( '' ); // combined filter values
|
currentFilters = filters || []; // current filter values
|
||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
@ -897,7 +897,10 @@
|
|||||||
// add filter array back into inputs
|
// add filter array back into inputs
|
||||||
if ( filterArray ) {
|
if ( filterArray ) {
|
||||||
ts.setFilters( table, filters, false, skipFirst !== true );
|
ts.setFilters( table, filters, false, skipFirst !== true );
|
||||||
if ( !wo.filter_initialized ) { c.lastCombinedFilter = ''; }
|
if ( !wo.filter_initialized ) {
|
||||||
|
c.lastSearch = [];
|
||||||
|
c.lastCombinedFilter = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( wo.filter_hideFilters ) {
|
if ( wo.filter_hideFilters ) {
|
||||||
// show/hide filter row as needed
|
// show/hide filter row as needed
|
||||||
@ -907,11 +910,11 @@
|
|||||||
}
|
}
|
||||||
// return if the last search is the same; but filter === false when updating the search
|
// return if the last search is the same; but filter === false when updating the search
|
||||||
// see example-widget-filter.html filter toggle buttons
|
// see example-widget-filter.html filter toggle buttons
|
||||||
if ( c.lastCombinedFilter === combinedFilters && filter !== false ) {
|
if ( c.lastSearch.join(',') === currentFilters.join(',') && filter !== false ) {
|
||||||
return;
|
return;
|
||||||
} else if ( filter === false ) {
|
} else if ( filter === false ) {
|
||||||
// force filter refresh
|
// force filter refresh
|
||||||
c.lastCombinedFilter = null;
|
c.lastCombinedFilter = '';
|
||||||
c.lastSearch = [];
|
c.lastSearch = [];
|
||||||
}
|
}
|
||||||
// define filter inside it is false
|
// define filter inside it is false
|
||||||
@ -928,11 +931,11 @@
|
|||||||
if ( c.showProcessing ) {
|
if ( c.showProcessing ) {
|
||||||
// give it time for the processing icon to kick in
|
// give it time for the processing icon to kick in
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}, 30 );
|
}, 30 );
|
||||||
} else {
|
} else {
|
||||||
tsf.findRows( table, filters, combinedFilters );
|
tsf.findRows( table, filters, currentFilters );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1254,9 +1257,11 @@
|
|||||||
}
|
}
|
||||||
return showRow;
|
return showRow;
|
||||||
},
|
},
|
||||||
findRows: function( table, filters, combinedFilters ) {
|
findRows: function( table, filters, currentFilters ) {
|
||||||
if ( table.config.lastCombinedFilter === combinedFilters ||
|
if (
|
||||||
!table.config.widgetOptions.filter_initialized ) {
|
table.config.lastSearch.join(',') === ( currentFilters || [] ).join(',') ||
|
||||||
|
!table.config.widgetOptions.filter_initialized
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
var len, norm_rows, rowData, $rows, $row, rowIndex, tbodyIndex, $tbody, columnIndex,
|
||||||
@ -1310,8 +1315,7 @@
|
|||||||
// filtered rows count
|
// filtered rows count
|
||||||
c.filteredRows = 0;
|
c.filteredRows = 0;
|
||||||
c.totalRows = 0;
|
c.totalRows = 0;
|
||||||
// combindedFilters are undefined on init
|
currentFilters = ( storedFilters || [] );
|
||||||
combinedFilters = ( storedFilters || [] ).join( '' );
|
|
||||||
|
|
||||||
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
for ( tbodyIndex = 0; tbodyIndex < c.$tbodies.length; tbodyIndex++ ) {
|
||||||
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
$tbody = ts.processTbody( table, c.$tbodies.eq( tbodyIndex ), true );
|
||||||
@ -1324,7 +1328,7 @@
|
|||||||
return el[ columnIndex ].$row.get();
|
return el[ columnIndex ].$row.get();
|
||||||
}) );
|
}) );
|
||||||
|
|
||||||
if ( combinedFilters === '' || wo.filter_serversideFiltering ) {
|
if ( currentFilters.join('') === '' || wo.filter_serversideFiltering ) {
|
||||||
$rows
|
$rows
|
||||||
.removeClass( wo.filter_filteredRow )
|
.removeClass( wo.filter_filteredRow )
|
||||||
.not( '.' + c.cssChildRow )
|
.not( '.' + c.cssChildRow )
|
||||||
@ -1499,7 +1503,8 @@
|
|||||||
c.totalRows += $rows.length;
|
c.totalRows += $rows.length;
|
||||||
ts.processTbody( table, $tbody, false );
|
ts.processTbody( table, $tbody, false );
|
||||||
}
|
}
|
||||||
c.lastCombinedFilter = combinedFilters; // save last search
|
// lastCombinedFilter is no longer used internally
|
||||||
|
c.lastCombinedFilter = storedFilters.join(''); // save last search
|
||||||
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
// don't save 'filters' directly since it may have altered ( AnyMatch column searches )
|
||||||
c.lastSearch = storedFilters;
|
c.lastSearch = storedFilters;
|
||||||
c.$table.data( 'lastSearch', storedFilters );
|
c.$table.data( 'lastSearch', storedFilters );
|
||||||
@ -1799,7 +1804,7 @@
|
|||||||
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
if ( ( getRaw !== true && wo && !wo.filter_columnFilters ) ||
|
||||||
// setFilters called, but last search is exactly the same as the current
|
// setFilters called, but last search is exactly the same as the current
|
||||||
// fixes issue #733 & #903 where calling update causes the input values to reset
|
// fixes issue #733 & #903 where calling update causes the input values to reset
|
||||||
( $.isArray(setFilters) && setFilters.join('') === c.lastCombinedFilter ) ) {
|
( $.isArray(setFilters) && setFilters.join(',') === c.lastSearch.join(',') ) ) {
|
||||||
return $( table ).data( 'lastSearch' );
|
return $( table ).data( 'lastSearch' );
|
||||||
}
|
}
|
||||||
if ( c ) {
|
if ( c ) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: output - updated 1/28/2017 (v2.28.5) *//*
|
/*! Widget: output - updated 4/2/2017 (v2.28.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* Modified from:
|
* Modified from:
|
||||||
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)
|
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)
|
||||||
@ -85,7 +85,7 @@
|
|||||||
colspanLen = parseInt( $cell.attr('colspan'), 10) - 1;
|
colspanLen = parseInt( $cell.attr('colspan'), 10) - 1;
|
||||||
// allow data-attribute to be an empty string
|
// allow data-attribute to be an empty string
|
||||||
txt = output.formatData( c, wo, $cell, isHeader );
|
txt = output.formatData( c, wo, $cell, isHeader );
|
||||||
for (col = 1; col <= colspanLen; col++) {
|
for (col = 0; col < colspanLen; col++) {
|
||||||
// if we're processing the header & making JSON, the header names need to be unique
|
// if we're processing the header & making JSON, the header names need to be unique
|
||||||
if ($cell.filter('[rowspan]').length) {
|
if ($cell.filter('[rowspan]').length) {
|
||||||
rowspanLen = parseInt( $cell.attr('rowspan'), 10);
|
rowspanLen = parseInt( $cell.attr('rowspan'), 10);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: Pager - updated 1/6/2017 (v2.28.4) */
|
/*! Widget: Pager - updated 4/2/2017 (v2.28.6) */
|
||||||
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -180,8 +180,7 @@
|
|||||||
t = ts.storage( table, wo.pager_storageKey ) || {}; // fixes #387
|
t = ts.storage( table, wo.pager_storageKey ) || {}; // fixes #387
|
||||||
p.page = ( isNaN( t.page ) ? p.page : t.page ) || p.setPage || 0;
|
p.page = ( isNaN( t.page ) ? p.page : t.page ) || p.setPage || 0;
|
||||||
p.size = t.size === 'all' ? t.size : ( isNaN( t.size ) ? p.size : t.size ) || p.setSize || 10;
|
p.size = t.size === 'all' ? t.size : ( isNaN( t.size ) ? p.size : t.size ) || p.setSize || 10;
|
||||||
$.data( table, 'pagerLastSize', p.size );
|
tsp.setPageSize( c, p.size );
|
||||||
p.$container.find( s.pageSize ).val( p.size );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// skipped rows
|
// skipped rows
|
||||||
@ -219,7 +218,6 @@
|
|||||||
initComplete: function( c ) {
|
initComplete: function( c ) {
|
||||||
var p = c.pager;
|
var p = c.pager;
|
||||||
tsp.bindEvents( c );
|
tsp.bindEvents( c );
|
||||||
tsp.setPageSize( c, 0 ); // page size 0 is ignored
|
|
||||||
if ( !p.ajax ) {
|
if ( !p.ajax ) {
|
||||||
tsp.hideRowsSetup( c );
|
tsp.hideRowsSetup( c );
|
||||||
}
|
}
|
||||||
@ -228,6 +226,7 @@
|
|||||||
p.initialized = true;
|
p.initialized = true;
|
||||||
p.initializing = false;
|
p.initializing = false;
|
||||||
p.isInitializing = false;
|
p.isInitializing = false;
|
||||||
|
tsp.setPageSize( c, p.size ); // page size 0 is ignored
|
||||||
if ( c.debug ) {
|
if ( c.debug ) {
|
||||||
console.log( 'Pager: Triggering pagerInitialized' );
|
console.log( 'Pager: Triggering pagerInitialized' );
|
||||||
}
|
}
|
||||||
@ -252,7 +251,8 @@
|
|||||||
p.currentFilters = $.isArray( filters ) ? filters : c.$table.data( 'lastSearch' );
|
p.currentFilters = $.isArray( filters ) ? filters : c.$table.data( 'lastSearch' );
|
||||||
// don't change page if filters are the same (pager updating, etc)
|
// don't change page if filters are the same (pager updating, etc)
|
||||||
if ( e.type === 'filterStart' && wo.pager_pageReset !== false &&
|
if ( e.type === 'filterStart' && wo.pager_pageReset !== false &&
|
||||||
( c.lastCombinedFilter || '' ) !== ( p.currentFilters || [] ).join( '' ) ) {
|
( c.lastSearch || [] ).join( ',' ) !== ( p.currentFilters || [] ).join( ',' )
|
||||||
|
) {
|
||||||
p.page = wo.pager_pageReset; // fixes #456 & #565
|
p.page = wo.pager_pageReset; // fixes #456 & #565
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -309,6 +309,7 @@
|
|||||||
.on( 'pageSize refreshComplete '.split( ' ' ).join( namespace + ' ' ), function( e, size ) {
|
.on( 'pageSize refreshComplete '.split( ' ' ).join( namespace + ' ' ), function( e, size ) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
tsp.setPageSize( c, tsp.parsePageSize( c, size, 'get' ) );
|
tsp.setPageSize( c, tsp.parsePageSize( c, size, 'get' ) );
|
||||||
|
tsp.moveToPage( c, p, true );
|
||||||
tsp.hideRows( c );
|
tsp.hideRows( c );
|
||||||
tsp.updatePageDisplay( c, false );
|
tsp.updatePageDisplay( c, false );
|
||||||
})
|
})
|
||||||
@ -381,6 +382,7 @@
|
|||||||
// in case there are more than one pager
|
// in case there are more than one pager
|
||||||
p.$container.find( wo.pager_selectors.pageSize ).val( size );
|
p.$container.find( wo.pager_selectors.pageSize ).val( size );
|
||||||
tsp.setPageSize( c, size );
|
tsp.setPageSize( c, size );
|
||||||
|
tsp.moveToPage( c, p, true );
|
||||||
tsp.changeHeight( c );
|
tsp.changeHeight( c );
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -693,8 +695,7 @@
|
|||||||
$el = p.$container.find( c.widgetOptions.pager_selectors.pageSize ),
|
$el = p.$container.find( c.widgetOptions.pager_selectors.pageSize ),
|
||||||
size = $el.val();
|
size = $el.val();
|
||||||
p.size = tsp.parsePageSize( c, size, 'get' );
|
p.size = tsp.parsePageSize( c, size, 'get' );
|
||||||
$el.val( p.size );
|
tsp.setPageSize( c, p.size );
|
||||||
$.data( c.table, 'pagerLastSize', p.size );
|
|
||||||
tsp.pagerArrows( c );
|
tsp.pagerArrows( c );
|
||||||
if ( !c.widgetOptions.pager_removeRows ) {
|
if ( !c.widgetOptions.pager_removeRows ) {
|
||||||
tsp.hideRows( c );
|
tsp.hideRows( c );
|
||||||
@ -1002,7 +1003,7 @@
|
|||||||
$.data( table, 'pagerLastPage', p.page );
|
$.data( table, 'pagerLastPage', p.page );
|
||||||
$.data( table, 'pagerLastSize', p.size );
|
$.data( table, 'pagerLastSize', p.size );
|
||||||
p.page = 0;
|
p.page = 0;
|
||||||
p.size = 'all';
|
p.size = p.totalPages;
|
||||||
p.totalPages = 1;
|
p.totalPages = 1;
|
||||||
c.$table
|
c.$table
|
||||||
.addClass( 'pagerDisabled' )
|
.addClass( 'pagerDisabled' )
|
||||||
@ -1127,16 +1128,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTotalPages: function( c, p ) {
|
getTotalPages: function( c, p ) {
|
||||||
return ts.hasWidget( c.table, 'filter' ) ? Math.min( p.totalPages, p.filteredPages ) : p.totalPages;
|
return ts.hasWidget( c.table, 'filter' ) ?
|
||||||
},
|
Math.min( p.totalPages, p.filteredPages ) :
|
||||||
|
p.totalPages;
|
||||||
// set to either set or get value
|
|
||||||
parsePageSize: function( c, size, mode ) {
|
|
||||||
var p = c.pager,
|
|
||||||
s = parseInt( size, 10 ) || p.size || c.widgetOptions.pager_size || 10;
|
|
||||||
return p.initialized && (/all/i.test( size ) || s === p.totalRows) ?
|
|
||||||
// "get" to set `p.size` or "set" to set `pageSize.val()`
|
|
||||||
'all' : ( mode === 'get' ? s : p.size );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
parsePageNumber: function( c, p ) {
|
parsePageNumber: function( c, p ) {
|
||||||
@ -1147,18 +1141,32 @@
|
|||||||
return p.page;
|
return p.page;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// set to either set or get value
|
||||||
|
parsePageSize: function( c, size, mode ) {
|
||||||
|
var p = c.pager,
|
||||||
|
wo = c.widgetOptions,
|
||||||
|
s = parseInt( size, 10 ) || p.size || wo.pager_size || 10;
|
||||||
|
if (p.initialized && (/all/i.test( s + ' ' + size ) || s === p.totalRows)) {
|
||||||
|
// Fixing #1364 & #1366
|
||||||
|
return p.$container.find( wo.pager_selectors.pageSize + ' option[value="all"]').length ?
|
||||||
|
'all' : p.totalRows;
|
||||||
|
}
|
||||||
|
// "get" to set `p.size` or "set" to set `pageSize.val()`
|
||||||
|
return mode === 'get' ? s : p.size;
|
||||||
|
},
|
||||||
|
|
||||||
setPageSize: function( c, size ) {
|
setPageSize: function( c, size ) {
|
||||||
var p = c.pager,
|
var p = c.pager,
|
||||||
table = c.table;
|
table = c.table;
|
||||||
|
// "all" size is only returned if an "all" option exists - fixes #1366
|
||||||
p.size = tsp.parsePageSize( c, size, 'get' );
|
p.size = tsp.parsePageSize( c, size, 'get' );
|
||||||
p.$container
|
p.$container
|
||||||
.find( c.widgetOptions.pager_selectors.pageSize )
|
.find( c.widgetOptions.pager_selectors.pageSize )
|
||||||
.val( tsp.parsePageSize( c, p.size, 'set' ) );
|
.val( p.size );
|
||||||
$.data( table, 'pagerLastPage', tsp.parsePageNumber( c, p ) );
|
$.data( table, 'pagerLastPage', tsp.parsePageNumber( c, p ) );
|
||||||
$.data( table, 'pagerLastSize', p.size );
|
$.data( table, 'pagerLastSize', p.size );
|
||||||
p.totalPages = p.size === 'all' ? 1 : Math.ceil( p.totalRows / p.size );
|
p.totalPages = p.size === 'all' ? 1 : Math.ceil( p.totalRows / p.size );
|
||||||
p.filteredPages = p.size === 'all' ? 1 : Math.ceil( p.filteredRows / p.size );
|
p.filteredPages = p.size === 'all' ? 1 : Math.ceil( p.filteredRows / p.size );
|
||||||
tsp.moveToPage( c, p, true );
|
|
||||||
},
|
},
|
||||||
|
|
||||||
moveToFirstPage: function( c, p ) {
|
moveToFirstPage: function( c, p ) {
|
||||||
@ -1227,7 +1235,7 @@
|
|||||||
p.page = $.data( table, 'pagerLastPage' ) || p.page || 0;
|
p.page = $.data( table, 'pagerLastPage' ) || p.page || 0;
|
||||||
size = $el.find('option[selected]' ).val();
|
size = $el.find('option[selected]' ).val();
|
||||||
p.size = $.data( table, 'pagerLastSize' ) || tsp.parsePageSize( c, size, 'get' );
|
p.size = $.data( table, 'pagerLastSize' ) || tsp.parsePageSize( c, size, 'get' );
|
||||||
$el.val( p.size ); // set page size
|
tsp.setPageSize( c, p.size ); // set page size
|
||||||
p.totalPages = p.size === 'all' ? 1 : Math.ceil( tsp.getTotalPages( c, p ) / p.size );
|
p.totalPages = p.size === 'all' ? 1 : Math.ceil( tsp.getTotalPages( c, p ) / p.size );
|
||||||
c.$table.removeClass( 'pagerDisabled' );
|
c.$table.removeClass( 'pagerDisabled' );
|
||||||
// if table id exists, include page display with aria info
|
// if table id exists, include page display with aria info
|
||||||
@ -1246,6 +1254,7 @@
|
|||||||
// tablesorter core update table
|
// tablesorter core update table
|
||||||
ts.update( c );
|
ts.update( c );
|
||||||
tsp.setPageSize( c, p.size );
|
tsp.setPageSize( c, p.size );
|
||||||
|
tsp.moveToPage( c, p, true );
|
||||||
tsp.hideRowsSetup( c );
|
tsp.hideRowsSetup( c );
|
||||||
if ( c.debug ) {
|
if ( c.debug ) {
|
||||||
console.log( 'Pager: Enabled' );
|
console.log( 'Pager: Enabled' );
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: sort2Hash (BETA) - updated 11/10/2015 (v2.24.4) */
|
/*! Widget: sort2Hash (BETA) - updated 4/2/2017 (v2.28.6) */
|
||||||
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
/* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -227,15 +227,14 @@
|
|||||||
sort2Hash_separator : '-', // don't '#' or '=' here
|
sort2Hash_separator : '-', // don't '#' or '=' here
|
||||||
sort2Hash_headerTextAttr : 'data-header', // data attribute containing alternate header text
|
sort2Hash_headerTextAttr : 'data-header', // data attribute containing alternate header text
|
||||||
sort2Hash_directionText : [ 0, 1 ], // [ 'asc', 'desc' ],
|
sort2Hash_directionText : [ 0, 1 ], // [ 'asc', 'desc' ],
|
||||||
sort2Hash_overrideSaveSort : false // if true, override saveSort widget if saved sort available
|
sort2Hash_overrideSaveSort : false, // if true, override saveSort widget if saved sort available
|
||||||
|
|
||||||
// Options below commented out for improved compression
|
// this option > table ID > table index on page
|
||||||
// ******************
|
sort2Hash_tableId : null,
|
||||||
// sort2Hash_tableId : null, // this option > table ID > table index on page,
|
|
||||||
// custom hash processing functions
|
// custom hash processing functions
|
||||||
// sort2Hash_encodeHash : null,
|
sort2Hash_encodeHash : null,
|
||||||
// sort2Hash_decodeHash : null,
|
sort2Hash_decodeHash : null,
|
||||||
// sort2Hash_cleanHash : null
|
sort2Hash_cleanHash : null
|
||||||
},
|
},
|
||||||
init: function(table, thisWidget, c, wo) {
|
init: function(table, thisWidget, c, wo) {
|
||||||
s2h.init( c, wo );
|
s2h.init( c, wo );
|
||||||
|
20
package.json
20
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.28.5",
|
"version": "2.28.6",
|
||||||
"description": "tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.",
|
"description": "tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Christian Bach",
|
"name": "Christian Bach",
|
||||||
@ -14,7 +14,7 @@
|
|||||||
"email": "wowmotty@gmail.com"
|
"email": "wowmotty@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "(MIT OR GPL-2.0+)",
|
"license": "(MIT OR GPL-2.0)",
|
||||||
"homepage": "https://mottie.github.io/tablesorter/",
|
"homepage": "https://mottie.github.io/tablesorter/",
|
||||||
"bugs": "https://github.com/Mottie/tablesorter/issues",
|
"bugs": "https://github.com/Mottie/tablesorter/issues",
|
||||||
"docs": "https://mottie.github.io/tablesorter/docs/index.html",
|
"docs": "https://mottie.github.io/tablesorter/docs/index.html",
|
||||||
@ -49,26 +49,16 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"autoupdate": {
|
|
||||||
"source": "git",
|
|
||||||
"target": "git://github.com/Mottie/tablesorter.git",
|
|
||||||
"basePath": "",
|
|
||||||
"files": [
|
|
||||||
"dist/**/*",
|
|
||||||
"css/*",
|
|
||||||
"js/**/*"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "^1.0.1",
|
"grunt": "^1.0.1",
|
||||||
"grunt-cli": "^1.2.0",
|
"grunt-cli": "^1.2.0",
|
||||||
"grunt-contrib-clean": "^1.0.0",
|
"grunt-contrib-clean": "^1.0.0",
|
||||||
"grunt-contrib-concat": "^1.0.1",
|
"grunt-contrib-concat": "^1.0.1",
|
||||||
"grunt-contrib-copy": "^1.0.0",
|
"grunt-contrib-copy": "^1.0.0",
|
||||||
"grunt-contrib-cssmin": "^1.0.2",
|
"grunt-contrib-cssmin": "^2.0.0",
|
||||||
"grunt-contrib-jshint": "^1.1.0",
|
"grunt-contrib-jshint": "^1.1.0",
|
||||||
"grunt-contrib-qunit": "^1.2.0",
|
"grunt-contrib-qunit": "^1.3.0",
|
||||||
"grunt-contrib-uglify": "^2.0.0",
|
"grunt-contrib-uglify": "^2.2.1",
|
||||||
"grunt-contrib-watch": "^1.0.0",
|
"grunt-contrib-watch": "^1.0.0",
|
||||||
"grunt-htmlhint": "^0.9.13",
|
"grunt-htmlhint": "^0.9.13",
|
||||||
"grunt-jscs": "^3.0.1",
|
"grunt-jscs": "^3.0.1",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.28.5",
|
"version": "2.28.6",
|
||||||
"description": "tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.\n\nThis forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.",
|
"description": "tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.\n\nThis forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Christian Bach",
|
"name": "Christian Bach",
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Tablesorter Testing (WIP)</title>
|
<title>Tablesorter Testing (WIP)</title>
|
||||||
<link rel="stylesheet" href="testing/qunit-2.0.1.css">
|
<link rel="stylesheet" href="testing/qunit-2.1.1.css">
|
||||||
<link rel="stylesheet" href="testing/testing.css">
|
<link rel="stylesheet" href="testing/testing.css">
|
||||||
|
|
||||||
<script src="testing/qunit-2.0.1.js"></script>
|
<script src="testing/qunit-2.1.1.js"></script>
|
||||||
<script src="docs/js/jquery-latest.min.js"></script>
|
<script src="docs/js/jquery-latest.min.js"></script>
|
||||||
<script src="js/jquery.tablesorter.js"></script>
|
<script src="js/jquery.tablesorter.js"></script>
|
||||||
<script src="js/widgets/widget-filter.js"></script>
|
<script src="js/widgets/widget-filter.js"></script>
|
||||||
|
@ -1,305 +0,0 @@
|
|||||||
/*!
|
|
||||||
* QUnit 1.23.0
|
|
||||||
* https://qunitjs.com/
|
|
||||||
*
|
|
||||||
* Copyright jQuery Foundation and other contributors
|
|
||||||
* Released under the MIT license
|
|
||||||
* https://jquery.org/license
|
|
||||||
*
|
|
||||||
* Date: 2016-03-25T19:37Z
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Font Family and Sizes */
|
|
||||||
|
|
||||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
|
|
||||||
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
|
||||||
#qunit-tests { font-size: smaller; }
|
|
||||||
|
|
||||||
|
|
||||||
/** Resets */
|
|
||||||
|
|
||||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/** Header */
|
|
||||||
|
|
||||||
#qunit-header {
|
|
||||||
padding: 0.5em 0 0.5em 1em;
|
|
||||||
|
|
||||||
color: #8699A4;
|
|
||||||
background-color: #0D3349;
|
|
||||||
|
|
||||||
font-size: 1.5em;
|
|
||||||
line-height: 1em;
|
|
||||||
font-weight: 400;
|
|
||||||
|
|
||||||
border-radius: 5px 5px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-header a {
|
|
||||||
text-decoration: none;
|
|
||||||
color: #C2CCD1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-header a:hover,
|
|
||||||
#qunit-header a:focus {
|
|
||||||
color: #FFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-testrunner-toolbar label {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0 0.5em 0 0.1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-banner {
|
|
||||||
height: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-testrunner-toolbar {
|
|
||||||
padding: 0.5em 1em 0.5em 1em;
|
|
||||||
color: #5E740B;
|
|
||||||
background-color: #EEE;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-filteredTest {
|
|
||||||
padding: 0.5em 1em 0.5em 1em;
|
|
||||||
background-color: #F4FF77;
|
|
||||||
color: #366097;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-userAgent {
|
|
||||||
padding: 0.5em 1em 0.5em 1em;
|
|
||||||
background-color: #2B81AF;
|
|
||||||
color: #FFF;
|
|
||||||
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-modulefilter-container {
|
|
||||||
float: right;
|
|
||||||
padding: 0.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.qunit-url-config {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0.1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.qunit-filter {
|
|
||||||
display: block;
|
|
||||||
float: right;
|
|
||||||
margin-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Tests: Pass/Fail */
|
|
||||||
|
|
||||||
#qunit-tests {
|
|
||||||
list-style-position: inside;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li {
|
|
||||||
padding: 0.4em 1em 0.4em 1em;
|
|
||||||
border-bottom: 1px solid #FFF;
|
|
||||||
list-style-position: inside;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests > li {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li.running,
|
|
||||||
#qunit-tests li.pass,
|
|
||||||
#qunit-tests li.fail,
|
|
||||||
#qunit-tests li.skipped {
|
|
||||||
display: list-item;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests.hidepass {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests.hidepass li.running,
|
|
||||||
#qunit-tests.hidepass li.pass {
|
|
||||||
visibility: hidden;
|
|
||||||
position: absolute;
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
padding: 0;
|
|
||||||
border: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li strong {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li.skipped strong {
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li a {
|
|
||||||
padding: 0.5em;
|
|
||||||
color: #C2CCD1;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li p a {
|
|
||||||
padding: 0.25em;
|
|
||||||
color: #6B6464;
|
|
||||||
}
|
|
||||||
#qunit-tests li a:hover,
|
|
||||||
#qunit-tests li a:focus {
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests li .runtime {
|
|
||||||
float: right;
|
|
||||||
font-size: smaller;
|
|
||||||
}
|
|
||||||
|
|
||||||
.qunit-assert-list {
|
|
||||||
margin-top: 0.5em;
|
|
||||||
padding: 0.5em;
|
|
||||||
|
|
||||||
background-color: #FFF;
|
|
||||||
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.qunit-source {
|
|
||||||
margin: 0.6em 0 0.3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.qunit-collapsed {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests table {
|
|
||||||
border-collapse: collapse;
|
|
||||||
margin-top: 0.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests th {
|
|
||||||
text-align: right;
|
|
||||||
vertical-align: top;
|
|
||||||
padding: 0 0.5em 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests td {
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests pre {
|
|
||||||
margin: 0;
|
|
||||||
white-space: pre-wrap;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests del {
|
|
||||||
background-color: #E0F2BE;
|
|
||||||
color: #374E0C;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests ins {
|
|
||||||
background-color: #FFCACA;
|
|
||||||
color: #500;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** Test Counts */
|
|
||||||
|
|
||||||
#qunit-tests b.counts { color: #000; }
|
|
||||||
#qunit-tests b.passed { color: #5E740B; }
|
|
||||||
#qunit-tests b.failed { color: #710909; }
|
|
||||||
|
|
||||||
#qunit-tests li li {
|
|
||||||
padding: 5px;
|
|
||||||
background-color: #FFF;
|
|
||||||
border-bottom: none;
|
|
||||||
list-style-position: inside;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*** Passing Styles */
|
|
||||||
|
|
||||||
#qunit-tests li li.pass {
|
|
||||||
color: #3C510C;
|
|
||||||
background-color: #FFF;
|
|
||||||
border-left: 10px solid #C6E746;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
|
||||||
#qunit-tests .pass .test-name { color: #366097; }
|
|
||||||
|
|
||||||
#qunit-tests .pass .test-actual,
|
|
||||||
#qunit-tests .pass .test-expected { color: #999; }
|
|
||||||
|
|
||||||
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
|
||||||
|
|
||||||
/*** Failing Styles */
|
|
||||||
|
|
||||||
#qunit-tests li li.fail {
|
|
||||||
color: #710909;
|
|
||||||
background-color: #FFF;
|
|
||||||
border-left: 10px solid #EE5757;
|
|
||||||
white-space: pre;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests > li:last-child {
|
|
||||||
border-radius: 0 0 5px 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests .fail { color: #000; background-color: #EE5757; }
|
|
||||||
#qunit-tests .fail .test-name,
|
|
||||||
#qunit-tests .fail .module-name { color: #000; }
|
|
||||||
|
|
||||||
#qunit-tests .fail .test-actual { color: #EE5757; }
|
|
||||||
#qunit-tests .fail .test-expected { color: #008000; }
|
|
||||||
|
|
||||||
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
|
||||||
|
|
||||||
/*** Skipped tests */
|
|
||||||
|
|
||||||
#qunit-tests .skipped {
|
|
||||||
background-color: #EBECE9;
|
|
||||||
}
|
|
||||||
|
|
||||||
#qunit-tests .qunit-skipped-label {
|
|
||||||
background-color: #F4FF77;
|
|
||||||
display: inline-block;
|
|
||||||
font-style: normal;
|
|
||||||
color: #366097;
|
|
||||||
line-height: 1.8em;
|
|
||||||
padding: 0 0.5em;
|
|
||||||
margin: -0.4em 0.4em -0.4em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Result */
|
|
||||||
|
|
||||||
#qunit-testresult {
|
|
||||||
padding: 0.5em 1em 0.5em 1em;
|
|
||||||
|
|
||||||
color: #2B81AF;
|
|
||||||
background-color: #D2E0E6;
|
|
||||||
|
|
||||||
border-bottom: 1px solid #FFF;
|
|
||||||
}
|
|
||||||
#qunit-testresult .module-name {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Fixture */
|
|
||||||
|
|
||||||
#qunit-fixture {
|
|
||||||
position: absolute;
|
|
||||||
top: -10000px;
|
|
||||||
left: -10000px;
|
|
||||||
width: 1000px;
|
|
||||||
height: 1000px;
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,12 @@
|
|||||||
/*!
|
/*!
|
||||||
* QUnit 2.0.1
|
* QUnit 2.1.1
|
||||||
* https://qunitjs.com/
|
* https://qunitjs.com/
|
||||||
*
|
*
|
||||||
* Copyright jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* https://jquery.org/license
|
* https://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2016-07-23T19:39Z
|
* Date: 2017-01-06T01:52Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Font Family and Sizes */
|
/** Font Family and Sizes */
|
||||||
@ -226,7 +226,8 @@
|
|||||||
#qunit-tests li.running,
|
#qunit-tests li.running,
|
||||||
#qunit-tests li.pass,
|
#qunit-tests li.pass,
|
||||||
#qunit-tests li.fail,
|
#qunit-tests li.fail,
|
||||||
#qunit-tests li.skipped {
|
#qunit-tests li.skipped,
|
||||||
|
#qunit-tests li.aborted {
|
||||||
display: list-item;
|
display: list-item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -374,6 +375,9 @@
|
|||||||
|
|
||||||
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
||||||
|
|
||||||
|
|
||||||
|
/*** Aborted tests */
|
||||||
|
#qunit-tests .aborted { color: #000; background-color: orange; }
|
||||||
/*** Skipped tests */
|
/*** Skipped tests */
|
||||||
|
|
||||||
#qunit-tests .skipped {
|
#qunit-tests .skipped {
|
||||||
@ -393,16 +397,28 @@
|
|||||||
/** Result */
|
/** Result */
|
||||||
|
|
||||||
#qunit-testresult {
|
#qunit-testresult {
|
||||||
padding: 0.5em 1em 0.5em 1em;
|
|
||||||
|
|
||||||
color: #2B81AF;
|
color: #2B81AF;
|
||||||
background-color: #D2E0E6;
|
background-color: #D2E0E6;
|
||||||
|
|
||||||
border-bottom: 1px solid #FFF;
|
border-bottom: 1px solid #FFF;
|
||||||
}
|
}
|
||||||
|
#qunit-testresult .clearfix {
|
||||||
|
height: 0;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
#qunit-testresult .module-name {
|
#qunit-testresult .module-name {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
#qunit-testresult-display {
|
||||||
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
|
width: 85%;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
#qunit-testresult-controls {
|
||||||
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
|
width: 10%;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
|
||||||
/** Fixture */
|
/** Fixture */
|
||||||
|
|
4366
testing/qunit-2.1.1.js
Normal file
4366
testing/qunit-2.1.1.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -111,7 +111,7 @@ Core plugin tested
|
|||||||
========================
|
========================
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
cssAsc, cssChildRow, cssDesc, cssHeader, cssHeaderRow, cssInfoBlock, dateFormat, emptyTo, headerList,
|
cssAsc, cssChildRow, cssDesc, cssHeader, cssHeaderRow, cssInfoBlock, dateFormat, emptyTo, headerList,
|
||||||
headers, ignoreCase, initialized, parsers, sortList, sortLocaleCompare, sortReset, stringTo, tableClass,
|
headers, ignoreCase, initialized, parsers, sortList, sortLocaleCompare, sortReset, sortRestart, stringTo, tableClass,
|
||||||
usNumberFormat, widgets (just zebra), sortAppend, sortForce, sortMultiSortKey, sortResetKey, numberSorter
|
usNumberFormat, widgets (just zebra), sortAppend, sortForce, sortMultiSortKey, sortResetKey, numberSorter
|
||||||
|
|
||||||
METHODS:
|
METHODS:
|
||||||
@ -125,7 +125,7 @@ Not yet tested
|
|||||||
OPTIONS:
|
OPTIONS:
|
||||||
cancelSelection, cssIcon, cssProcessing, debug, delayInit, headerTemplate, initWidgets, onRenderHeader,
|
cancelSelection, cssIcon, cssProcessing, debug, delayInit, headerTemplate, initWidgets, onRenderHeader,
|
||||||
onRenderTemplate, selectorHeaders, selectorRemove, selectorSort, serverSideSorting, showProcessing,
|
onRenderTemplate, selectorHeaders, selectorRemove, selectorSort, serverSideSorting, showProcessing,
|
||||||
sortInitialOrder, sortRestart, strings,
|
sortInitialOrder, strings,
|
||||||
textExtraction, textSorter, theme, widthFixed, widgets (also need priority testing)
|
textExtraction, textSorter, theme, widthFixed, widgets (also need priority testing)
|
||||||
|
|
||||||
METHODS:
|
METHODS:
|
||||||
@ -698,11 +698,12 @@ jQuery(function($){
|
|||||||
assert.equal( c3.sortList + '', '0,0,1,1,2,0', 'sorton next/opposite/same [0,"n"],[1,"o"],[2,"s"]' );
|
assert.equal( c3.sortList + '', '0,0,1,1,2,0', 'sorton next/opposite/same [0,"n"],[1,"o"],[2,"s"]' );
|
||||||
|
|
||||||
});
|
});
|
||||||
|
/*
|
||||||
QUnit.test( 'sort Restart', function(assert) {
|
QUnit.test( 'sort Restart', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
c1.sortRestart = true;
|
c1.sortRestart = true;
|
||||||
|
QUnit.start();
|
||||||
$.tablesorter.sortReset( c1, function(){
|
$.tablesorter.sortReset( c1, function(){
|
||||||
// 1) click on header one
|
// 1) click on header one
|
||||||
$table1.one('sortEnd', function(){
|
$table1.one('sortEnd', function(){
|
||||||
@ -721,9 +722,8 @@ jQuery(function($){
|
|||||||
});
|
});
|
||||||
c1.$headers.eq(1).click();
|
c1.$headers.eq(1).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
QUnit.test( 'sort Events', function(assert) {
|
QUnit.test( 'sort Events', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user