Skip to content

Commit bf1042b

Browse files
committed
Updating package for DataTables 3
1 parent 02c37d1 commit bf1042b

4 files changed

Lines changed: 65 additions & 25 deletions

File tree

js/columnControl.foundation.js

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,52 @@
1-
/*! Foundation styling wrapper for ColumnControl
2-
* © SpryMedia Ltd - datatables.net/license
1+
/*! ColumnControl Foundation styling 2.0.0-beta.1 for DataTables
2+
* Copyright (c) SpryMedia Ltd - datatables.net/license
33
*/
44

5+
(function(factory){
6+
if (typeof define === 'function' && define.amd) {
7+
// AMD
8+
define(['datatables.net-zf', 'datatables.net-columncontrol'], function (dt) {
9+
return factory(window, document, dt);
10+
});
11+
}
12+
else if (typeof exports === 'object') {
13+
// CommonJS
14+
var cjsRequires = function (root) {
15+
if (! root.DataTable) {
16+
require('datatables.net-zf')(root);
17+
}
18+
19+
if (! window.DataTable.ColumnControl) {
20+
require('datatables.net-columncontrol')(root);
21+
}
22+
};
23+
24+
if (typeof window === 'undefined') {
25+
module.exports = function (root) {
26+
if (! root) {
27+
// CommonJS environments without a window global must pass a
28+
// root. This will give an error otherwise
29+
root = window;
30+
}
31+
32+
cjsRequires(root);
33+
return factory(root, root.document, root.DataTable);
34+
};
35+
}
36+
else {
37+
cjsRequires(window);
38+
module.exports = factory(window, window.document, window.DataTable);
39+
}
40+
}
41+
else {
42+
// Browser
43+
factory(window, document, window.DataTable);
44+
}
45+
}(function(window, document, DataTable) {
46+
'use strict';
47+
48+
49+
550
DataTable.ColumnControl.content.dropdown.classes.container = [
651
'dtcc-dropdown',
752
'menu',
@@ -10,3 +55,7 @@ DataTable.ColumnControl.content.dropdown.classes.container = [
1055
'first-sub',
1156
'vertical'
1257
];
58+
59+
60+
return DataTable;
61+
}));

js/columnControl.foundation.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nuget.nuspec

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
4-
<version>1.2.1</version>
4+
<version>2.0.0-beta.1</version>
55
<id>datatables.net-columncontrol-zf</id>
66
<description>This is ColumnControl for DataTables with styling for [Foundation](https://get.foundation/)</description>
7-
<repository type="git" url="https://github.com/DataTables/Dist-DataTables-ColumnControl-Foundation.git"/>
7+
<repository type="git" url="https://github.com/DataTables/ColumnControl"/>
88
<authors>SpryMedia Ltd</authors>
99
<projectUrl>http://datatables.net</projectUrl>
1010
<license type="expression">MIT</license>
11-
<tags>ColumnControl search filter buttons column visibility Foundation Datatables jQuery table</tags>
11+
<tags>ColumnControl search filter buttons column visibility Foundation Datatables table</tags>
1212
<dependencies>
13-
<dependency id="datatables.net-columncontrol" version="1.0.7"/>
14-
<dependency id="datatables.net-zf" version="2.3.2"/>
13+
<dependency id="datatables.net-columncontrol" version="2.0.0-beta.1"/>
14+
<dependency id="datatables.net-zf" version="3.0.0-0"/>
1515
</dependencies>
1616
<contentFiles>
1717
<files include="**/*" buildAction="Content"/>
1818
</contentFiles>
19+
<readme>Readme.md</readme>
1920
</metadata>
2021
<files>
22+
<file src="Readme.md" target=""/>
2123
<file src="js/columnControl.foundation.js" target="content\Scripts"/>
2224
<file src="js/columnControl.foundation.js" target="contentFiles\any\any\wwwroot\js"/>
2325
<file src="js/columnControl.foundation.min.js" target="content\Scripts"/>
@@ -32,4 +34,3 @@
3234
<file src="css/columnControl.foundation.min.css" target="contentFiles\any\any\wwwroot\css"/>
3335
</files>
3436
</package>
35-

package.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"module": "js/columnControl.foundation.mjs",
66
"style": "css/columnControl.foundation.css",
77
"types": "./types/columnControl.foundation.d.ts",
8-
"version": "1.2.1",
8+
"version": "2.0.0-beta.1",
99
"files": [
1010
"css/**/*.css",
1111
"js/**/*.js",
@@ -25,19 +25,9 @@
2525
"sort"
2626
],
2727
"dependencies": {
28-
"datatables.net-columncontrol": "1.2.1",
29-
"datatables.net-zf": "^2.3.2"
28+
"datatables.net-columncontrol": "2.0.0-beta.1",
29+
"datatables.net-zf": "3.0.0-0"
3030
},
31-
"moduleType": [
32-
"globals",
33-
"amd",
34-
"node"
35-
],
36-
"ignore": [
37-
"composer.json",
38-
"datatables.json",
39-
"package.json"
40-
],
4131
"author": {
4232
"name": "SpryMedia Ltd",
4333
"url": "http://datatables.net"
@@ -47,6 +37,6 @@
4737
"license": "MIT",
4838
"repository": {
4939
"type": "git",
50-
"url": "https://github.com/DataTables/Dist-DataTables-ColumnControl-Foundation.git"
40+
"url": "git+https://github.com/DataTables/ColumnControl.git"
5141
}
5242
}

0 commit comments

Comments
 (0)