Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DataTables/Dist-DataTables-ColReorder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.5.5
Choose a base ref
...
head repository: DataTables/Dist-DataTables-ColReorder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.7.0
Choose a head ref

Commits on Jan 21, 2022

  1. 79f21b7454655a65bc4024a21d3c3cad2d79471c Update: Migrating to Fomanti…

    …c-UI, which is a maintained fork of Semantic-UI, which is no longer being developed
    
    Sync to source repo @79f21b7454655a65bc4024a21d3c3cad2d79471c
    AllanJard committed Jan 21, 2022
    Copy the full SHA
    f28de5e View commit details

Commits on Mar 31, 2022

  1. Copy the full SHA
    f30a531 View commit details

Commits on Sep 25, 2022

  1. Sync DistRepos

    AllanJard committed Sep 25, 2022
    Copy the full SHA
    1e8e547 View commit details
  2. Copy the full SHA
    7f5e20f View commit details

Commits on Oct 10, 2022

  1. Copy the full SHA
    737ef25 View commit details

Commits on Oct 28, 2022

  1. Copy the full SHA
    20a81fa View commit details

Commits on Nov 4, 2022

  1. 6311707142236e2c1c5cb6fea9602a763da11d07

    Sync to source repo @6311707142236e2c1c5cb6fea9602a763da11d07
    AllanJard committed Nov 4, 2022
    Copy the full SHA
    6cc186e View commit details
  2. Copy the full SHA
    5d66783 View commit details
  3. 6311707142236e2c1c5cb6fea9602a763da11d07

    Sync to source repo @6311707142236e2c1c5cb6fea9602a763da11d07
    AllanJard committed Nov 4, 2022
    Copy the full SHA
    1d249b1 View commit details

Commits on Nov 7, 2022

  1. dd71d1db639759322a3b00a292055aa0c46ddf99 Release 1.6.0

    Sync to source repo @dd71d1db639759322a3b00a292055aa0c46ddf99
    AllanJard committed Nov 7, 2022
    Copy the full SHA
    06d109a View commit details
  2. Sync tag release - 1.6.0

    AllanJard committed Nov 7, 2022
    Copy the full SHA
    dd1de55 View commit details
  3. b03ec4b81a6e3d607437a6c23649032b63740d17 Release 1.6.1

    Sync to source repo @b03ec4b81a6e3d607437a6c23649032b63740d17
    AllanJard committed Nov 7, 2022
    Copy the full SHA
    cdf44c9 View commit details
  4. Sync tag release - 1.6.1

    AllanJard committed Nov 7, 2022
    Copy the full SHA
    f813df6 View commit details

Commits on Nov 16, 2022

  1. b03ec4b81a6e3d607437a6c23649032b63740d17

    Sync to source repo @03ec4b81a6e3d607437a6c23649032b63740d17
    AllanJard committed Nov 16, 2022
    Copy the full SHA
    6528f9c View commit details

Commits on Jan 5, 2023

  1. d3ad89719ae7d3ca64c71657e81277cfa53889d9

    Sync to source repo @d3ad89719ae7d3ca64c71657e81277cfa53889d9
    AllanJard committed Jan 5, 2023
    Copy the full SHA
    5059172 View commit details

Commits on Mar 6, 2023

  1. 0bb7ca81b312909cc4def2e130b765b96966075b New - example: Showing the u…

    …se of ColReorder with orthogonal data atrributes.
    
    Sync to source repo @0bb7ca81b312909cc4def2e130b765b96966075b
    AllanJard committed Mar 6, 2023
    Copy the full SHA
    bf0054c View commit details

Commits on Mar 10, 2023

  1. 332f125c13fba3fdcf7c6bb517ba065f6d9dea10 1.6.2 release

    Sync to source repo @332f125c13fba3fdcf7c6bb517ba065f6d9dea10
    AllanJard committed Mar 10, 2023
    Copy the full SHA
    8f5dc40 View commit details
  2. Sync tag release - 1.6.2

    AllanJard committed Mar 10, 2023
    Copy the full SHA
    3b825e2 View commit details

Commits on Mar 14, 2023

  1. 26ba13444bc135ffe19cba8782e6e4534783697e Dev: Add sponsor button to repo

    Sync to source repo @26ba13444bc135ffe19cba8782e6e4534783697e
    AllanJard committed Mar 14, 2023
    Copy the full SHA
    e3063ab View commit details

Commits on Jun 2, 2023

  1. 1be9c134e5733f639465d2a2b14203c1ddb2a317 New: Dark mode support for D…

    …ataTables and Bootstrap 5 styling
    
    Sync to source repo @1be9c134e5733f639465d2a2b14203c1ddb2a317
    AllanJard committed Jun 2, 2023
    Copy the full SHA
    3cb965a View commit details
  2. 6e3c218c2ec57a8835955d0059850e048d4dc6ef Update: Examples updated to …

    …latest DataTables coding standards
    
    Sync to source repo @6e3c218c2ec57a8835955d0059850e048d4dc6ef
    AllanJard committed Jun 2, 2023
    Copy the full SHA
    c564289 View commit details

Commits on Jun 19, 2023

  1. 01841112ecdbc9432462f53beb94d105d87fc4c4 Dev: Add jQuery to index pag…

    …es for theming menu. DD-2647
    
    Sync to source repo @01841112ecdbc9432462f53beb94d105d87fc4c4
    AllanJard committed Jun 19, 2023
    Copy the full SHA
    7afca89 View commit details
  2. fba12778c3c6a0f7fa921ef56285c6ae8aee91b1 Dev fix: Messed up the examp…

    …le XML
    
    DD-2641
    
    Sync to source repo @fba12778c3c6a0f7fa921ef56285c6ae8aee91b1
    AllanJard committed Jun 19, 2023
    Copy the full SHA
    85e3a66 View commit details

Commits on Jun 30, 2023

  1. 53124dfb3b3e987f91e636c073f64b2d68a434ee Fix: Bootstrap 5 integration…

    … hadn't been updated for ESM
    
    Sync to source repo @53124dfb3b3e987f91e636c073f64b2d68a434ee
    AllanJard committed Jun 30, 2023
    Copy the full SHA
    951acac View commit details
  2. Copy the full SHA
    ba8046b View commit details
  3. 53124dfb3b3e987f91e636c073f64b2d68a434ee

    Sync to source repo @53124dfb3b3e987f91e636c073f64b2d68a434ee
    AllanJard committed Jun 30, 2023
    Copy the full SHA
    2096f87 View commit details

Commits on Jul 3, 2023

  1. 76274487ee1ef27e8323a38fe1b97aab91fb3bab Fix: Correct type inheritanc…

    …e for styling packages
    
    Sync to source repo @76274487ee1ef27e8323a38fe1b97aab91fb3bab
    AllanJard committed Jul 3, 2023
    Copy the full SHA
    4f85554 View commit details

Commits on Jul 4, 2023

  1. aa1425736781596e94141d8da5204c1332138fa1 Release 1.7.0

    Sync to source repo @aa1425736781596e94141d8da5204c1332138fa1
    AllanJard committed Jul 4, 2023
    Copy the full SHA
    1ada611 View commit details
  2. Sync tag release - 1.7.0

    AllanJard committed Jul 4, 2023
    Copy the full SHA
    bf268ba View commit details
Showing with 1,710 additions and 297 deletions.
  1. +2 −2 composer.json
  2. +5 −3 datatables.json
  3. +57 −37 js/dataTables.colReorder.js
  4. +4 −40 js/dataTables.colReorder.min.js
  5. +4 −0 js/dataTables.colReorder.min.mjs
  6. +1,477 −0 js/dataTables.colReorder.mjs
  7. +2 −4 nuget.nuspec
  8. +4 −2 package.json
  9. +0 −106 types.d.ts
  10. +155 −103 types/types.d.ts
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.4",
"version": "1.5.6",
"name": "datatables.net/datatables.net-colreorder",
"description": "ColReorder allows the end user to modify the column order of a table through drop-and-drag of column headers. This is ColReorder for DataTables",
"support": {
@@ -26,6 +26,6 @@
"table"
],
"require": {
"datatables.net/datatables.net": ">=1.11.3"
"datatables.net/datatables.net": ">=1.12.1"
}
}
8 changes: 5 additions & 3 deletions datatables.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"js": [
"js/dataTables.colReorder.js",
"js/dataTables.colReorder.min.js"
"js/dataTables.colReorder.min.js",
"js/dataTables.colReorder.min.mjs",
"js/dataTables.colReorder.mjs"
],
"css": [],
"types": [
"types/types.d.ts"
],
"src-repo": "http://github.com/DataTables/ColReorder",
"last-tag": "1.5.5",
"last-sync": "847358cc4fed69bab0ae2f85baabe0e3b9a47523"
"last-tag": "1.7.0",
"last-sync": "aa1425736781596e94141d8da5204c1332138fa1"
}
94 changes: 57 additions & 37 deletions js/dataTables.colReorder.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
/*! ColReorder 1.5.5
* ©2010-2021 SpryMedia Ltd - datatables.net/license
/*! ColReorder 1.7.0
* © SpryMedia Ltd - datatables.net/license
*/

/**
* @summary ColReorder
* @description Provide the ability to reorder columns in a DataTable
* @version 1.5.5
* @file dataTables.colReorder.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
* @copyright Copyright 2010-2021 SpryMedia Ltd.
*
* This source file is free software, available under the following license:
* MIT license - http://datatables.net/license/mit
*
* This source file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
*
* For details please refer to: http://www.datatables.net
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
@@ -29,17 +11,33 @@
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
root = window;
var jq = require('jquery');
var cjsRequires = function (root, $) {
if ( ! $.fn.dataTable ) {
require('datatables.net')(root, $);
}
};

if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
if (typeof window === 'undefined') {
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

return factory( $, root, root.document );
};
if ( ! $ ) {
$ = jq( root );
}

cjsRequires( root, $ );
return factory( $, root, root.document );
};
}
else {
cjsRequires( window, jq );
module.exports = factory( jq, window, window.document );
}
}
else {
// Browser
@@ -50,6 +48,25 @@
var DataTable = $.fn.dataTable;



/**
* @summary ColReorder
* @description Provide the ability to reorder columns in a DataTable
* @version 1.7.0
* @author SpryMedia Ltd
* @contact datatables.net
* @copyright SpryMedia Ltd.
*
* This source file is free software, available under the following license:
* MIT license - http://datatables.net/license/mit
*
* This source file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
*
* For details please refer to: http://www.datatables.net
*/

/**
* Switch the key value pairing of an index array to be value key (i.e. the old value is now the
* key). For example consider [ 2, 0, 1 ] this would be returned as [ 1, 2, 0 ].
@@ -307,10 +324,8 @@ $.fn.dataTableExt.oApi.fnColReorder = function ( oSettings, iFrom, iTo, drop, in
}
}

// For DOM sourced data, the invalidate will reread the cell into
// the data array, but for data sources as an array, they need to
// be flipped
if ( data.src !== 'dom' && Array.isArray( data._aData ) ) {
// Swap around array sourced data (object based is left as is)
if ( Array.isArray( data._aData ) ) {
fnArraySwitch( data._aData, iFrom, iTo );
}
}
@@ -331,7 +346,9 @@ $.fn.dataTableExt.oApi.fnColReorder = function ( oSettings, iFrom, iTo, drop, in

if ( invalidateRows || invalidateRows === undefined )
{
$.fn.dataTable.Api( oSettings ).rows().invalidate();
// Always read from the data object rather than reading back from the DOM
// since it could have been changed by a renderer
$.fn.dataTable.Api( oSettings ).rows().invalidate('data');
}

/*
@@ -514,7 +531,7 @@ $.extend( ColReorder.prototype, {
fnEnable: function ( flag )
{
if ( flag === false ) {
return fnDisable();
return this.fnDisable();
}

this.s.enable = true;
@@ -771,6 +788,9 @@ $.extend( ColReorder.prototype, {

// Destroy clean up
$(table).on( 'destroy.dt.colReorder', function () {
// Restore table to original order from when it was loaded
that.fnReset();

$(table).off( 'destroy.dt.colReorder draw.dt.colReorder' );

$.each( that.s.dt.aoColumns, function (i, column) {
@@ -824,7 +844,7 @@ $.extend( ColReorder.prototype, {
return;
}

$.fn.dataTable.Api( this.s.dt ).rows().invalidate();
$.fn.dataTable.Api( this.s.dt ).rows().invalidate('data');

/* When scrolling we need to recalculate the column sizes to allow for the shift */
if ( this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "" )
@@ -1381,7 +1401,7 @@ ColReorder.defaults = {
* @type String
* @default As code
*/
ColReorder.version = "1.5.5";
ColReorder.version = "1.7.0";



@@ -1494,5 +1514,5 @@ $.fn.dataTable.Api.register( 'colReorder.disable()', function() {
} );


return ColReorder;
return DataTable;
}));
Loading