Skip to content

Commit

Permalink
c0ce909a29e2dfe354b85597177b72b069b6354c Dev: Moving on version
Browse files Browse the repository at this point in the history
Sync to source repo @c0ce909a29e2dfe354b85597177b72b069b6354c
  • Loading branch information
AllanJard committed Mar 3, 2023
1 parent d3bb12d commit 2e3df62
Show file tree
Hide file tree
Showing 14 changed files with 104 additions and 76 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
],
"src-repo": "http://github.com/DataTables/Buttons",
"last-tag": "2.3.5",
"last-sync": "0b1fd42649697aed4f72490eb3c702ded00d79dd"
"last-sync": "c0ce909a29e2dfe354b85597177b72b069b6354c"
}
38 changes: 23 additions & 15 deletions js/buttons.colVis.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,37 @@
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

if ( ! $ ) {
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
require('jquery') :
require('jquery')( root );
}

var jq = require('jquery');
var cjsRequires = function (root, $) {
if ( ! $.fn.dataTable ) {
require('datatables.net')(root, $);
}

if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}

return factory( $, root, root.document );
};

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;
}

if ( ! $ ) {
$ = jq( root );
}

cjsRequires( root, $ );
return factory( $, root, root.document );
};
}
else {
cjsRequires( window, jq );
module.exports = factory( jq, window, window.document );
}
}
else {
// Browser
Expand Down
2 changes: 1 addition & 1 deletion js/buttons.colVis.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion js/buttons.colVis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import DataTable from 'datatables.net';
import Buttons from 'datatables.net-buttons';



$.extend( DataTable.ext.buttons, {
// A collection of column visibility buttons
colvis: function ( dt, conf ) {
Expand Down
38 changes: 23 additions & 15 deletions js/buttons.html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,37 @@
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $, jszip, pdfmake) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

if ( ! $ ) {
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
require('jquery') :
require('jquery')( root );
}

var jq = require('jquery');
var cjsRequires = function (root, $) {
if ( ! $.fn.dataTable ) {
require('datatables.net')(root, $);
}

if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}

return factory( $, root, root.document, jszip, pdfmake );
};

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

if ( ! $ ) {
$ = jq( root );
}

cjsRequires( root, $ );
return factory( $, root, root.document, jszip, pdfmake );
};
}
else {
cjsRequires( window, jq );
module.exports = factory( jq, window, window.document );
}
}
else {
// Browser
Expand Down
2 changes: 1 addition & 1 deletion js/buttons.html5.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/buttons.html5.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import DataTable from 'datatables.net';
import Buttons from 'datatables.net-buttons';



// Allow the constructor to pass in JSZip and PDFMake from external requires.
// Otherwise, use globally defined variables, if they are available.
var useJszip;
Expand Down
38 changes: 23 additions & 15 deletions js/buttons.print.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,37 @@
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

if ( ! $ ) {
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
require('jquery') :
require('jquery')( root );
}

var jq = require('jquery');
var cjsRequires = function (root, $) {
if ( ! $.fn.dataTable ) {
require('datatables.net')(root, $);
}

if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}

return factory( $, root, root.document );
};

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;
}

if ( ! $ ) {
$ = jq( root );
}

cjsRequires( root, $ );
return factory( $, root, root.document );
};
}
else {
cjsRequires( window, jq );
module.exports = factory( jq, window, window.document );
}
}
else {
// Browser
Expand Down
2 changes: 1 addition & 1 deletion js/buttons.print.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion js/buttons.print.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import DataTable from 'datatables.net';
import Buttons from 'datatables.net-buttons';



var _link = document.createElement( 'a' );

/**
Expand Down
42 changes: 25 additions & 17 deletions js/dataTables.buttons.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Buttons for DataTables 2.3.5
/*! Buttons for DataTables 2.3.6-dev
* ©2016-2023 SpryMedia Ltd - datatables.net/license
*/

Expand All @@ -11,25 +11,33 @@
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
// CommonJS environments without a window global must pass a
// root. This will give an error otherwise
root = window;
}

if ( ! $ ) {
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
require('jquery') :
require('jquery')( root );
}

var jq = require('jquery');
var cjsRequires = function (root, $) {
if ( ! $.fn.dataTable ) {
require('datatables.net')(root, $);
}

return factory( $, root, root.document );
};

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;
}

if ( ! $ ) {
$ = jq( root );
}

cjsRequires( root, $ );
return factory( $, root, root.document );
};
}
else {
cjsRequires( window, jq );
module.exports = factory( jq, window, window.document );
}
}
else {
// Browser
Expand Down Expand Up @@ -1851,7 +1859,7 @@ Buttons.defaults = {
* @type {string}
* @static
*/
Buttons.version = '2.3.5';
Buttons.version = '2.3.6-dev';


$.extend( _dtButtons, {
Expand Down
4 changes: 2 additions & 2 deletions js/dataTables.buttons.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/dataTables.buttons.min.mjs

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions js/dataTables.buttons.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/*! Buttons for DataTables 2.3.5
/*! Buttons for DataTables 2.3.6-dev
* ©2016-2023 SpryMedia Ltd - datatables.net/license
*/

import $ from 'jquery';
import DataTable from 'datatables.net';



// Used for namespacing events added to the document by each instance, so they
// can be removed on destroy
var _instCounter = 0;
Expand Down Expand Up @@ -1817,7 +1816,7 @@ Buttons.defaults = {
* @type {string}
* @static
*/
Buttons.version = '2.3.5';
Buttons.version = '2.3.6-dev';


$.extend( _dtButtons, {
Expand Down

0 comments on commit 2e3df62

Please sign in to comment.