datatables.net-columncontrol-jqui 1.2.0 → 2.0.0-beta.1

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.
@@ -1,55 +1,49 @@
1
- /*! jQuery UI styling wrapper for ColumnControl
2
- * © SpryMedia Ltd - datatables.net/license
1
+ /*! ColumnControl jQuery UI styling 2.0.0-beta.1 for DataTables
2
+ * Copyright (c) SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
5
- (function( factory ){
6
- if ( typeof define === 'function' && define.amd ) {
5
+ (function(factory){
6
+ if (typeof define === 'function' && define.amd) {
7
7
  // AMD
8
- define( ['jquery', 'datatables.net-jqui', 'datatables.net-columncontrol'], function ( $ ) {
9
- return factory( $, window, document );
10
- } );
8
+ define(['datatables.net-jqui', 'datatables.net-columncontrol'], function (dt) {
9
+ return factory(window, document, dt);
10
+ });
11
11
  }
12
- else if ( typeof exports === 'object' ) {
12
+ else if (typeof exports === 'object') {
13
13
  // CommonJS
14
- var jq = require('jquery');
15
- var cjsRequires = function (root, $) {
16
- if ( ! $.fn.dataTable ) {
17
- require('datatables.net-jqui')(root, $);
14
+ var cjsRequires = function (root) {
15
+ if (! root.DataTable) {
16
+ require('datatables.net-jqui')(root);
18
17
  }
19
18
 
20
- if ( ! $.fn.dataTable.ColumnControl ) {
21
- require('datatables.net-columncontrol')(root, $);
19
+ if (! window.DataTable.ColumnControl) {
20
+ require('datatables.net-columncontrol')(root);
22
21
  }
23
22
  };
24
23
 
25
24
  if (typeof window === 'undefined') {
26
- module.exports = function (root, $) {
27
- if ( ! root ) {
25
+ module.exports = function (root) {
26
+ if (! root) {
28
27
  // CommonJS environments without a window global must pass a
29
28
  // root. This will give an error otherwise
30
29
  root = window;
31
30
  }
32
31
 
33
- if ( ! $ ) {
34
- $ = jq( root );
35
- }
36
-
37
- cjsRequires( root, $ );
38
- return factory( $, root, root.document );
32
+ cjsRequires(root);
33
+ return factory(root, root.document, root.DataTable);
39
34
  };
40
35
  }
41
36
  else {
42
- cjsRequires( window, jq );
43
- module.exports = factory( jq, window, window.document );
37
+ cjsRequires(window);
38
+ module.exports = factory(window, window.document, window.DataTable);
44
39
  }
45
40
  }
46
41
  else {
47
42
  // Browser
48
- factory( jQuery, window, document );
43
+ factory(window, document, window.DataTable);
49
44
  }
50
- }(function( $, window, document ) {
45
+ }(function(window, document, DataTable) {
51
46
  'use strict';
52
- var DataTable = $.fn.dataTable;
53
47
 
54
48
 
55
49
 
@@ -1,4 +1,4 @@
1
- /*! jQuery UI styling wrapper for ColumnControl
2
- * © SpryMedia Ltd - datatables.net/license
1
+ /*! ColumnControl jQuery UI styling 2.0.0-beta.1 for DataTables
2
+ * Copyright (c) SpryMedia Ltd - datatables.net/license
3
3
  */
4
- (t=>{var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net-jqui","datatables.net-columncontrol"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net-jqui")(e,n),n.fn.dataTable.ColumnControl||require("datatables.net-columncontrol")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)})(function(e,n,t){return e.fn.dataTable});
4
+ (e=>{var t;"function"==typeof define&&define.amd?define(["datatables.net-jqui","datatables.net-columncontrol"],function(n){return e(window,document,n)}):"object"==typeof exports?(t=function(n){n.DataTable||require("datatables.net-jqui")(n),window.DataTable.ColumnControl||require("datatables.net-columncontrol")(n)},"undefined"==typeof window?module.exports=function(n){return n=n||window,t(n),e(0,n.document,n.DataTable)}:(t(window),module.exports=e(window,window.document,window.DataTable))):e(window,document,window.DataTable)})(function(n,e,t){return t});
@@ -1,4 +1,4 @@
1
- /*! jQuery UI styling wrapper for ColumnControl
2
- * © SpryMedia Ltd - datatables.net/license
1
+ /*! ColumnControl jQuery UI styling 2.0.0-beta.1 for DataTables
2
+ * Copyright (c) SpryMedia Ltd - datatables.net/license
3
3
  */
4
- import jQuery from"jquery";import DataTable from"datatables.net-jqui";import ColumnControl from"datatables.net-columncontrol";let $=jQuery;export default DataTable;
4
+ import DataTable from"datatables.net-jqui";import ColumnControl from"datatables.net-columncontrol";export default DataTable;
@@ -1,14 +1,11 @@
1
- /*! jQuery UI styling wrapper for ColumnControl
2
- * © SpryMedia Ltd - datatables.net/license
1
+ /*! ColumnControl jQuery UI styling 2.0.0-beta.1 for DataTables
2
+ * Copyright (c) SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
5
- import jQuery from 'jquery';
6
5
  import DataTable from 'datatables.net-jqui';
7
6
  import ColumnControl from 'datatables.net-columncontrol';
8
7
 
9
- // Allow reassignment of the $ variable
10
- let $ = jQuery;
11
-
12
8
 
13
9
 
14
10
  export default DataTable;
11
+
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "module": "js/columnControl.jqueryui.mjs",
6
6
  "style": "css/columnControl.jqueryui.css",
7
7
  "types": "./types/columnControl.jqueryui.d.ts",
8
- "version": "1.2.0",
8
+ "version": "2.0.0-beta.1",
9
9
  "files": [
10
10
  "css/**/*.css",
11
11
  "js/**/*.js",
@@ -26,19 +26,9 @@
26
26
  "sort"
27
27
  ],
28
28
  "dependencies": {
29
- "datatables.net-columncontrol": "1.2.0",
29
+ "datatables.net-columncontrol": "2.0.0-beta.1",
30
30
  "datatables.net-jqui": "^2.3.2"
31
31
  },
32
- "moduleType": [
33
- "globals",
34
- "amd",
35
- "node"
36
- ],
37
- "ignore": [
38
- "composer.json",
39
- "datatables.json",
40
- "package.json"
41
- ],
42
32
  "author": {
43
33
  "name": "SpryMedia Ltd",
44
34
  "url": "http://datatables.net"
@@ -48,6 +38,6 @@
48
38
  "license": "MIT",
49
39
  "repository": {
50
40
  "type": "git",
51
- "url": "https://github.com/DataTables/Dist-DataTables-ColumnControl-jQueryUI.git"
41
+ "url": "git+https://github.com/DataTables/ColumnControl.git"
52
42
  }
53
43
  }