datatables.net 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/dataTables.js +34 -17
- package/js/dataTables.min.js +2 -2
- package/js/dataTables.min.mjs +2 -2
- package/js/dataTables.mjs +33 -16
- package/package.json +1 -1
package/js/dataTables.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! DataTables 2.0.
|
|
1
|
+
/*! DataTables 2.0.8
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @summary DataTables
|
|
7
7
|
* @description Paginate, search and order HTML tables
|
|
8
|
-
* @version 2.0.
|
|
8
|
+
* @version 2.0.8
|
|
9
9
|
* @author SpryMedia Ltd
|
|
10
10
|
* @contact www.datatables.net
|
|
11
11
|
* @copyright SpryMedia Ltd.
|
|
@@ -4830,7 +4830,7 @@
|
|
|
4830
4830
|
|
|
4831
4831
|
// Different positioning depending on if scrolling is enabled or not
|
|
4832
4832
|
if (scrolling) {
|
|
4833
|
-
n.prependTo( 'div.dt-scroll', settings.nTableWrapper );
|
|
4833
|
+
n.prependTo( $('div.dt-scroll', settings.nTableWrapper) );
|
|
4834
4834
|
}
|
|
4835
4835
|
else {
|
|
4836
4836
|
n.insertBefore( table );
|
|
@@ -5079,7 +5079,7 @@
|
|
|
5079
5079
|
// of the indexes out.
|
|
5080
5080
|
if (settings.aiDisplay.length) {
|
|
5081
5081
|
// Get the column sizes from the first row in the table
|
|
5082
|
-
var colSizes = table.children('tbody
|
|
5082
|
+
var colSizes = table.children('tbody').eq(0).children('tr').eq(0).children('th, td').map(function (vis) {
|
|
5083
5083
|
return {
|
|
5084
5084
|
idx: _fnVisibleToColumnIndex(settings, vis),
|
|
5085
5085
|
width: $(this).outerWidth()
|
|
@@ -7560,6 +7560,16 @@
|
|
|
7560
7560
|
order = opts.order, // applied, current, index (original - compatibility with 1.9)
|
|
7561
7561
|
page = opts.page; // all, current
|
|
7562
7562
|
|
|
7563
|
+
if ( _fnDataSource( settings ) == 'ssp' ) {
|
|
7564
|
+
// In server-side processing mode, most options are irrelevant since
|
|
7565
|
+
// rows not shown don't exist and the index order is the applied order
|
|
7566
|
+
// Removed is a special case - for consistency just return an empty
|
|
7567
|
+
// array
|
|
7568
|
+
return search === 'removed' ?
|
|
7569
|
+
[] :
|
|
7570
|
+
_range( 0, displayMaster.length );
|
|
7571
|
+
}
|
|
7572
|
+
|
|
7563
7573
|
if ( page == 'current' ) {
|
|
7564
7574
|
// Current page implies that order=current and filter=applied, since it is
|
|
7565
7575
|
// fairly senseless otherwise, regardless of what order and search actually
|
|
@@ -8231,7 +8241,7 @@
|
|
|
8231
8241
|
_api_register( _child_obj+'.isShown()', function () {
|
|
8232
8242
|
var ctx = this.context;
|
|
8233
8243
|
|
|
8234
|
-
if ( ctx.length && this.length ) {
|
|
8244
|
+
if ( ctx.length && this.length && ctx[0].aoData[ this[0] ] ) {
|
|
8235
8245
|
// _detailsShown as false or undefined will fall through to return false
|
|
8236
8246
|
return ctx[0].aoData[ this[0] ]._detailsShow || false;
|
|
8237
8247
|
}
|
|
@@ -8254,7 +8264,7 @@
|
|
|
8254
8264
|
// can be an array of these items, comma separated list, or an array of comma
|
|
8255
8265
|
// separated lists
|
|
8256
8266
|
|
|
8257
|
-
var __re_column_selector = /^([^:]+)
|
|
8267
|
+
var __re_column_selector = /^([^:]+)?:(name|title|visIdx|visible)$/;
|
|
8258
8268
|
|
|
8259
8269
|
|
|
8260
8270
|
// r1 and r2 are redundant - but it means that the parameters match for the
|
|
@@ -8326,17 +8336,24 @@
|
|
|
8326
8336
|
switch( match[2] ) {
|
|
8327
8337
|
case 'visIdx':
|
|
8328
8338
|
case 'visible':
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8339
|
+
if (match[1]) {
|
|
8340
|
+
var idx = parseInt( match[1], 10 );
|
|
8341
|
+
// Visible index given, convert to column index
|
|
8342
|
+
if ( idx < 0 ) {
|
|
8343
|
+
// Counting from the right
|
|
8344
|
+
var visColumns = columns.map( function (col,i) {
|
|
8345
|
+
return col.bVisible ? i : null;
|
|
8346
|
+
} );
|
|
8347
|
+
return [ visColumns[ visColumns.length + idx ] ];
|
|
8348
|
+
}
|
|
8349
|
+
// Counting from the left
|
|
8350
|
+
return [ _fnVisibleToColumnIndex( settings, idx ) ];
|
|
8337
8351
|
}
|
|
8338
|
-
|
|
8339
|
-
|
|
8352
|
+
|
|
8353
|
+
// `:visible` on its own
|
|
8354
|
+
return columns.map( function (col, i) {
|
|
8355
|
+
return col.bVisible ? i : null;
|
|
8356
|
+
} );
|
|
8340
8357
|
|
|
8341
8358
|
case 'name':
|
|
8342
8359
|
// match by name. `names` is column index complete and in order
|
|
@@ -9611,7 +9628,7 @@
|
|
|
9611
9628
|
* @type string
|
|
9612
9629
|
* @default Version number
|
|
9613
9630
|
*/
|
|
9614
|
-
DataTable.version = "2.0.
|
|
9631
|
+
DataTable.version = "2.0.8";
|
|
9615
9632
|
|
|
9616
9633
|
/**
|
|
9617
9634
|
* Private data store, containing all of the settings objects that are
|