Socket
Socket
Sign inDemoInstall

datatables.net-colreorder

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatables.net-colreorder - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

10

js/dataTables.colReorder.js

@@ -1,3 +0,3 @@

/*! ColReorder 1.5.3
* ©2010-2020 SpryMedia Ltd - datatables.net/license
/*! ColReorder 1.5.4
* ©2010-2021 SpryMedia Ltd - datatables.net/license
*/

@@ -8,7 +8,7 @@

* @description Provide the ability to reorder columns in a DataTable
* @version 1.5.3
* @version 1.5.4
* @file dataTables.colReorder.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
* @copyright Copyright 2010-2020 SpryMedia Ltd.
* @copyright Copyright 2010-2021 SpryMedia Ltd.
*

@@ -1378,3 +1378,3 @@ * This source file is free software, available under the following license:

*/
ColReorder.version = "1.5.3";
ColReorder.version = "1.5.4";

@@ -1381,0 +1381,0 @@

/*!
ColReorder 1.5.3
©2010-2020 SpryMedia Ltd - datatables.net/license
ColReorder 1.5.4
©2010-2021 SpryMedia Ltd - datatables.net/license
*/

@@ -26,3 +26,3 @@ (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(p){return e(p,window,document)}):"object"===typeof exports?module.exports=function(p,o){p||(p=window);if(!o||!o.fn.dataTable)o=require("datatables.net")(p,o).$;return e(o,p,p.document)}:e(jQuery,window,document)})(function(e,p,o,s){function r(a){for(var b=[],d=0,f=a.length;d<f;d++)b[a[d]]=d;return b}function q(a,b,d){b=a.splice(b,1)[0];a.splice(d,0,b)}function t(a,b,d){for(var f=[],e=0,c=a.childNodes.length;e<

f=d.parentNode,h=f.parentNode,c=e(b).clone();this.dom.drag=e(h.cloneNode(!1)).addClass("DTCR_clonedTable").append(e(f.cloneNode(!1)).append(e(d.cloneNode(!1)).append(c[0]))).css({position:"absolute",top:0,left:0,width:e(b).outerWidth(),height:e(b).outerHeight()}).appendTo("body");this.dom.pointer=e("<div></div>").addClass("DTCR_pointer").css({position:"absolute",top:a?e("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:e(this.s.dt.nTable).offset().top,height:a?e("div.dataTables_scroll",
this.s.dt.nTableWrapper).height():e(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){e.each(this.s.dt.aoColumns,function(a,b){e(b.nTh).attr("data-column-index",a)})},_fnCursorPosition:function(a,b){return-1!==a.type.indexOf("touch")?a.originalEvent.touches[0][b]:a[b]},_fnIsLtr:function(){return"rtl"!==e(this.s.dt.nTable).css("direction")}});i.defaults={aiOrder:null,bEnable:!0,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null};i.version="1.5.3";
this.s.dt.nTableWrapper).height():e(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){e.each(this.s.dt.aoColumns,function(a,b){e(b.nTh).attr("data-column-index",a)})},_fnCursorPosition:function(a,b){return-1!==a.type.indexOf("touch")?a.originalEvent.touches[0][b]:a[b]},_fnIsLtr:function(){return"rtl"!==e(this.s.dt.nTable).css("direction")}});i.defaults={aiOrder:null,bEnable:!0,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null};i.version="1.5.4";
e.fn.dataTable.ColReorder=i;e.fn.DataTable.ColReorder=i;"function"==typeof e.fn.dataTable&&"function"==typeof e.fn.dataTableExt.fnVersionCheck&&e.fn.dataTableExt.fnVersionCheck("1.10.8")?e.fn.dataTableExt.aoFeatures.push({fnInit:function(a){var b=a.oInstance;a._colReorder?b.oApi._fnLog(a,1,"ColReorder attempted to initialise twice. Ignoring second"):(b=a.oInit,new i(a,b.colReorder||b.oColReorder||{}));return null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download");

@@ -29,0 +29,0 @@ e(o).on("preInit.dt.colReorder",function(a,b){if("dt"===a.namespace){var d=b.oInit.colReorder,f=u.defaults.colReorder;if(d||f)f=e.extend({},d,f),!1!==d&&new i(b,f)}});e.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(a){a._colReorder.fnReset()})});e.fn.dataTable.Api.register("colReorder.order()",function(a,b){return a?this.iterator("table",function(d){d._colReorder.fnOrder(a,b)}):this.context.length?this.context[0]._colReorder.fnOrder():null});e.fn.dataTable.Api.register("colReorder.transpose()",

@@ -0,1 +1,3 @@

The MIT License (MIT)
Copyright SpryMedia Limited and other contributors

@@ -20,2 +22,2 @@ http://datatables.net

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
{
"name": "datatables.net-colreorder",
"version": "1.5.3",
"description": "ColReorder for DataTables ",
"description": "ColReorder for DataTables",
"main": "js/dataTables.colReorder.js",
"types": "./types/types.d.ts",
"version": "1.5.4",
"files": [
"js/**/*.js"
],
"main": "js/dataTables.colReorder.js",
"keywords": [
"reorder",
"DataTables",
"ColReorder",
"Reorder",
"Datatables",
"jQuery",
"table",
"DataTables"
"filter",
"sort"
],
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"moduleType": [
"globals",
"amd",
"node"
],
"ignore": [
"composer.json",
"datatables.json",
"package.json"
],
"author": {

@@ -23,6 +37,5 @@ "name": "SpryMedia Ltd",

},
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"repository": {

@@ -29,0 +42,0 @@ "type": "git",

# ColReorder for DataTables
This package contains distribution files for the [ColReorder extension](https://datatables.net/extensions/colreorder) for [DataTables](https://datatables.net/). Only the core software for this library is contained in this package - to be correctly styled, a styling package for ColReorder must also be included. Styling options include DataTable's native styling, [Bootstrap](http://getbootstrap.com) and [Foundation](http://foundation.zurb.com/).
This package contains distribution files for the [ColReorder extension](https://datatables.net/extensions/ColReorder) for [DataTables](https://datatables.net/). Only the core software for this library is contained in this package - to be correctly styled, a styling package for ColReorder must also be included. Styling options include DataTable's native styling, [Bootstrap](http://getbootstrap.com) and [Foundation](http://foundation.zurb.com/).

@@ -20,2 +20,3 @@ ColReorder allows the end user to modify the column order of a table through drop-and-drag of column headers.

ES3 Syntax
```

@@ -26,2 +27,7 @@ var $ = require( 'jquery' );

ES6 Syntax
```
import 'datatables.net-colreorder'
```
### bower

@@ -37,5 +43,4 @@

Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
Full documentation and examples for ColReorder can be found [on the website](https://datatables.net/extensions/colreorder).
## Bug / Support

@@ -42,0 +47,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc