datatables.net-select-dt 1.3.0 → 1.3.4
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.
- package/License.txt +3 -1
- package/Readme.md +11 -4
- package/css/select.dataTables.css +29 -20
- package/css/select.dataTables.min.css +1 -1
- package/js/select.dataTables.min.js +1 -1
- package/package.json +29 -16
- package/types/select.dataTables.d.ts +0 -0
package/License.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
1
3
|
Copyright SpryMedia Limited and other contributors
|
|
2
4
|
http://datatables.net
|
|
3
5
|
|
|
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
17
19
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
20
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
21
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
THE SOFTWARE.
|
|
22
|
+
THE SOFTWARE.
|
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Select for DataTables
|
|
1
|
+
# Select for DataTables with styling for [DataTables](https://datatables.net/)
|
|
2
2
|
|
|
3
|
-
This package contains
|
|
3
|
+
This package contains a built distribution of the [Select extension](https://datatables.net/extensions/select) for [DataTables](https://datatables.net/) with styling for [DataTables](https://datatables.net/).
|
|
4
4
|
|
|
5
5
|
Select provides table item selection capabilities - rows, columns and cells can be selected individually or collectively. Complex selection operations such as operating system style selection (ctrl/cmd and shift click) for multiple rows can be enabled with a single option for a DataTable.
|
|
6
6
|
|
|
@@ -17,9 +17,15 @@ For inclusion of this library using a standard `<script>` tag, rather than using
|
|
|
17
17
|
npm install datatables.net-select-dt
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
ES3 Syntax
|
|
20
21
|
```
|
|
21
22
|
var $ = require( 'jquery' );
|
|
22
|
-
require( 'datatables.net-select-dt' )( window, $ );
|
|
23
|
+
var dt = require( 'datatables.net-select-dt' )( window, $ );
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
ES6 Syntax
|
|
27
|
+
```
|
|
28
|
+
import 'datatables.net-select-dt'
|
|
23
29
|
```
|
|
24
30
|
|
|
25
31
|
### bower
|
|
@@ -32,7 +38,7 @@ bower install --save datatables.net-select-dt
|
|
|
32
38
|
|
|
33
39
|
## Documentation
|
|
34
40
|
|
|
35
|
-
Full documentation
|
|
41
|
+
Full documentation and examples for Select can be found [on the website](https://datatables.net/extensions/select).
|
|
36
42
|
|
|
37
43
|
|
|
38
44
|
## Bug / Support
|
|
@@ -48,3 +54,4 @@ If you are thinking of contributing code to DataTables, first of all, thank you!
|
|
|
48
54
|
## License
|
|
49
55
|
|
|
50
56
|
This software is released under the [MIT license](//datatables.net/license). You are free to use, modify and distribute this software, but all copyright information must remain.
|
|
57
|
+
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
table.dataTable tbody > tr.selected,
|
|
2
2
|
table.dataTable tbody > tr > .selected {
|
|
3
|
-
background-color: #
|
|
3
|
+
background-color: #B0BED9;
|
|
4
4
|
}
|
|
5
5
|
table.dataTable.stripe tbody > tr.odd.selected,
|
|
6
6
|
table.dataTable.stripe tbody > tr.odd > .selected, table.dataTable.display tbody > tr.odd.selected,
|
|
7
7
|
table.dataTable.display tbody > tr.odd > .selected {
|
|
8
|
-
background-color: #
|
|
8
|
+
background-color: #acbad4;
|
|
9
9
|
}
|
|
10
10
|
table.dataTable.hover tbody > tr.selected:hover,
|
|
11
11
|
table.dataTable.hover tbody > tr > .selected:hover, table.dataTable.display tbody > tr.selected:hover,
|
|
12
12
|
table.dataTable.display tbody > tr > .selected:hover {
|
|
13
|
-
background-color: #
|
|
13
|
+
background-color: #aab7d1;
|
|
14
14
|
}
|
|
15
15
|
table.dataTable.order-column tbody > tr.selected > .sorting_1,
|
|
16
16
|
table.dataTable.order-column tbody > tr.selected > .sorting_2,
|
|
@@ -19,45 +19,45 @@ table.dataTable.order-column tbody > tr > .selected, table.dataTable.display tbo
|
|
|
19
19
|
table.dataTable.display tbody > tr.selected > .sorting_2,
|
|
20
20
|
table.dataTable.display tbody > tr.selected > .sorting_3,
|
|
21
21
|
table.dataTable.display tbody > tr > .selected {
|
|
22
|
-
background-color: #
|
|
22
|
+
background-color: #acbad5;
|
|
23
23
|
}
|
|
24
24
|
table.dataTable.display tbody > tr.odd.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 {
|
|
25
|
-
background-color: #
|
|
25
|
+
background-color: #a6b4cd;
|
|
26
26
|
}
|
|
27
27
|
table.dataTable.display tbody > tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 {
|
|
28
|
-
background-color: #
|
|
28
|
+
background-color: #a8b5cf;
|
|
29
29
|
}
|
|
30
30
|
table.dataTable.display tbody > tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 {
|
|
31
|
-
background-color: #
|
|
31
|
+
background-color: #a9b7d1;
|
|
32
32
|
}
|
|
33
33
|
table.dataTable.display tbody > tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 {
|
|
34
|
-
background-color: #
|
|
34
|
+
background-color: #acbad5;
|
|
35
35
|
}
|
|
36
36
|
table.dataTable.display tbody > tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {
|
|
37
|
-
background-color: #
|
|
37
|
+
background-color: #aebcd6;
|
|
38
38
|
}
|
|
39
39
|
table.dataTable.display tbody > tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 {
|
|
40
40
|
background-color: #afbdd8;
|
|
41
41
|
}
|
|
42
42
|
table.dataTable.display tbody > tr.odd > .selected, table.dataTable.order-column.stripe tbody > tr.odd > .selected {
|
|
43
|
-
background-color: #
|
|
43
|
+
background-color: #a6b4cd;
|
|
44
44
|
}
|
|
45
45
|
table.dataTable.display tbody > tr.even > .selected, table.dataTable.order-column.stripe tbody > tr.even > .selected {
|
|
46
|
-
background-color: #
|
|
46
|
+
background-color: #acbad5;
|
|
47
47
|
}
|
|
48
48
|
table.dataTable.display tbody > tr.selected:hover > .sorting_1, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 {
|
|
49
|
-
background-color: #
|
|
49
|
+
background-color: #a2aec7;
|
|
50
50
|
}
|
|
51
51
|
table.dataTable.display tbody > tr.selected:hover > .sorting_2, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 {
|
|
52
|
-
background-color: #
|
|
52
|
+
background-color: #a3b0c9;
|
|
53
53
|
}
|
|
54
54
|
table.dataTable.display tbody > tr.selected:hover > .sorting_3, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 {
|
|
55
|
-
background-color: #
|
|
55
|
+
background-color: #a5b2cb;
|
|
56
56
|
}
|
|
57
57
|
table.dataTable.display tbody > tr:hover > .selected,
|
|
58
58
|
table.dataTable.display tbody > tr > .selected:hover, table.dataTable.order-column.hover tbody > tr:hover > .selected,
|
|
59
59
|
table.dataTable.order-column.hover tbody > tr > .selected:hover {
|
|
60
|
-
background-color: #
|
|
60
|
+
background-color: #a2aec7;
|
|
61
61
|
}
|
|
62
62
|
table.dataTable tbody td.select-checkbox,
|
|
63
63
|
table.dataTable tbody th.select-checkbox {
|
|
@@ -76,7 +76,7 @@ table.dataTable tbody th.select-checkbox:after {
|
|
|
76
76
|
}
|
|
77
77
|
table.dataTable tbody td.select-checkbox:before,
|
|
78
78
|
table.dataTable tbody th.select-checkbox:before {
|
|
79
|
-
content:
|
|
79
|
+
content: " ";
|
|
80
80
|
margin-top: -6px;
|
|
81
81
|
margin-left: -6px;
|
|
82
82
|
border: 1px solid black;
|
|
@@ -84,12 +84,21 @@ table.dataTable tbody th.select-checkbox:before {
|
|
|
84
84
|
}
|
|
85
85
|
table.dataTable tr.selected td.select-checkbox:after,
|
|
86
86
|
table.dataTable tr.selected th.select-checkbox:after {
|
|
87
|
-
content:
|
|
88
|
-
|
|
89
|
-
margin-
|
|
87
|
+
content: "✓";
|
|
88
|
+
font-size: 20px;
|
|
89
|
+
margin-top: -19px;
|
|
90
|
+
margin-left: -6px;
|
|
90
91
|
text-align: center;
|
|
91
92
|
text-shadow: 1px 1px #B0BED9, -1px -1px #B0BED9, 1px -1px #B0BED9, -1px 1px #B0BED9;
|
|
92
93
|
}
|
|
94
|
+
table.dataTable.compact tbody td.select-checkbox:before,
|
|
95
|
+
table.dataTable.compact tbody th.select-checkbox:before {
|
|
96
|
+
margin-top: -12px;
|
|
97
|
+
}
|
|
98
|
+
table.dataTable.compact tr.selected td.select-checkbox:after,
|
|
99
|
+
table.dataTable.compact tr.selected th.select-checkbox:after {
|
|
100
|
+
margin-top: -16px;
|
|
101
|
+
}
|
|
93
102
|
|
|
94
103
|
div.dataTables_wrapper span.select-info,
|
|
95
104
|
div.dataTables_wrapper span.select-item {
|
|
@@ -98,7 +107,7 @@ div.dataTables_wrapper span.select-item {
|
|
|
98
107
|
|
|
99
108
|
@media screen and (max-width: 640px) {
|
|
100
109
|
div.dataTables_wrapper span.select-info,
|
|
101
|
-
|
|
110
|
+
div.dataTables_wrapper span.select-item {
|
|
102
111
|
margin-left: 0;
|
|
103
112
|
display: block;
|
|
104
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
table.dataTable tbody>tr.selected,table.dataTable tbody>tr>.selected{background-color:#b0bed9}table.dataTable.stripe tbody>tr.odd.selected,table.dataTable.stripe tbody>tr.odd>.selected,table.dataTable.display tbody>tr.odd.selected,table.dataTable.display tbody>tr.odd>.selected{background-color:#
|
|
1
|
+
table.dataTable tbody>tr.selected,table.dataTable tbody>tr>.selected{background-color:#b0bed9}table.dataTable.stripe tbody>tr.odd.selected,table.dataTable.stripe tbody>tr.odd>.selected,table.dataTable.display tbody>tr.odd.selected,table.dataTable.display tbody>tr.odd>.selected{background-color:#acbad4}table.dataTable.hover tbody>tr.selected:hover,table.dataTable.hover tbody>tr>.selected:hover,table.dataTable.display tbody>tr.selected:hover,table.dataTable.display tbody>tr>.selected:hover{background-color:#aab7d1}table.dataTable.order-column tbody>tr.selected>.sorting_1,table.dataTable.order-column tbody>tr.selected>.sorting_2,table.dataTable.order-column tbody>tr.selected>.sorting_3,table.dataTable.order-column tbody>tr>.selected,table.dataTable.display tbody>tr.selected>.sorting_1,table.dataTable.display tbody>tr.selected>.sorting_2,table.dataTable.display tbody>tr.selected>.sorting_3,table.dataTable.display tbody>tr>.selected{background-color:#acbad5}table.dataTable.display tbody>tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody>tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody>tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody>tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody>tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody>tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody>tr.odd>.selected,table.dataTable.order-column.stripe tbody>tr.odd>.selected{background-color:#a6b4cd}table.dataTable.display tbody>tr.even>.selected,table.dataTable.order-column.stripe tbody>tr.even>.selected{background-color:#acbad5}table.dataTable.display tbody>tr.selected:hover>.sorting_1,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody>tr.selected:hover>.sorting_2,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody>tr.selected:hover>.sorting_3,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_3{background-color:#a5b2cb}table.dataTable.display tbody>tr:hover>.selected,table.dataTable.display tbody>tr>.selected:hover,table.dataTable.order-column.hover tbody>tr:hover>.selected,table.dataTable.order-column.hover tbody>tr>.selected:hover{background-color:#a2aec7}table.dataTable tbody td.select-checkbox,table.dataTable tbody th.select-checkbox{position:relative}table.dataTable tbody td.select-checkbox:before,table.dataTable tbody td.select-checkbox:after,table.dataTable tbody th.select-checkbox:before,table.dataTable tbody th.select-checkbox:after{display:block;position:absolute;top:1.2em;left:50%;width:12px;height:12px;box-sizing:border-box}table.dataTable tbody td.select-checkbox:before,table.dataTable tbody th.select-checkbox:before{content:" ";margin-top:-6px;margin-left:-6px;border:1px solid black;border-radius:3px}table.dataTable tr.selected td.select-checkbox:after,table.dataTable tr.selected th.select-checkbox:after{content:"✓";font-size:20px;margin-top:-19px;margin-left:-6px;text-align:center;text-shadow:1px 1px #b0bed9,-1px -1px #b0bed9,1px -1px #b0bed9,-1px 1px #b0bed9}table.dataTable.compact tbody td.select-checkbox:before,table.dataTable.compact tbody th.select-checkbox:before{margin-top:-12px}table.dataTable.compact tr.selected td.select-checkbox:after,table.dataTable.compact tr.selected th.select-checkbox:after{margin-top:-16px}div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:.5em}@media screen and (max-width: 640px){div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:0;display:block}}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
DataTables styling wrapper for Select
|
|
3
3
|
©2018 SpryMedia Ltd - datatables.net/license
|
|
4
4
|
*/
|
|
5
|
-
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);
|
|
5
|
+
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);b&&b.fn.dataTable||(b=require("datatables.net-dt")(a,b).$);b.fn.dataTable.select||require("datatables.net-select")(a,b);return c(b,a,a.document)}:c(jQuery,window,document)})(function(c,a,b,d){return c.fn.dataTable});
|
package/package.json
CHANGED
|
@@ -1,35 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datatables.net-select-dt",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "Select for DataTables with styling for [DataTables](https://datatables.net/)",
|
|
4
|
+
"main": "js/select.dataTables.js",
|
|
5
|
+
"style": "css/select.dataTables.css",
|
|
6
|
+
"types": "./types/select.dataTables.d.ts",
|
|
7
|
+
"version": "1.3.4",
|
|
5
8
|
"files": [
|
|
6
9
|
"css/**/*.css",
|
|
7
|
-
"js/**/*.js"
|
|
10
|
+
"js/**/*.js",
|
|
11
|
+
"types/**/*.d.ts"
|
|
8
12
|
],
|
|
9
|
-
"style": "css/select.dataTables.css",
|
|
10
13
|
"keywords": [
|
|
11
14
|
"select",
|
|
12
15
|
"selection",
|
|
13
|
-
"
|
|
16
|
+
"Datatables",
|
|
14
17
|
"jQuery",
|
|
15
18
|
"table",
|
|
16
|
-
"
|
|
19
|
+
"filter",
|
|
20
|
+
"sort"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"datatables.net-select": ">=1.3.3",
|
|
24
|
+
"datatables.net-dt": ">=1.11.3",
|
|
25
|
+
"jquery": ">=1.7"
|
|
26
|
+
},
|
|
27
|
+
"moduleType": [
|
|
28
|
+
"globals",
|
|
29
|
+
"amd",
|
|
30
|
+
"node"
|
|
31
|
+
],
|
|
32
|
+
"ignore": [
|
|
33
|
+
"composer.json",
|
|
34
|
+
"datatables.json",
|
|
35
|
+
"package.json"
|
|
17
36
|
],
|
|
18
|
-
"homepage": "https://datatables.net",
|
|
19
|
-
"bugs": "https://datatables.net/forums",
|
|
20
|
-
"license": "MIT",
|
|
21
37
|
"author": {
|
|
22
38
|
"name": "SpryMedia Ltd",
|
|
23
39
|
"url": "http://datatables.net"
|
|
24
40
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"datatables.net-select": "1.3.0"
|
|
29
|
-
},
|
|
41
|
+
"homepage": "https://datatables.net",
|
|
42
|
+
"bugs": "https://datatables.net/forums",
|
|
43
|
+
"license": "MIT",
|
|
30
44
|
"repository": {
|
|
31
45
|
"type": "git",
|
|
32
46
|
"url": "https://github.com/DataTables/Dist-DataTables-Select-DataTables.git"
|
|
33
|
-
}
|
|
34
|
-
"main": "js/select.dataTables.js"
|
|
47
|
+
}
|
|
35
48
|
}
|
|
File without changes
|