datatables.net-select-dt 1.3.2 → 1.4.0

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 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 distribution files required to style [Select extension](https://datatables.net/extensions/select) for [DataTables](https://datatables.net/) .
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 of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
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,64 +1,6 @@
1
- @charset "UTF-8";
2
- table.dataTable tbody > tr.selected,
3
- table.dataTable tbody > tr > .selected {
4
- background-color: #B0BED9;
5
- }
6
- table.dataTable.stripe tbody > tr.odd.selected,
7
- table.dataTable.stripe tbody > tr.odd > .selected, table.dataTable.display tbody > tr.odd.selected,
8
- table.dataTable.display tbody > tr.odd > .selected {
9
- background-color: #acbad4;
10
- }
11
- table.dataTable.hover tbody > tr.selected:hover,
12
- table.dataTable.hover tbody > tr > .selected:hover, table.dataTable.display tbody > tr.selected:hover,
13
- table.dataTable.display tbody > tr > .selected:hover {
14
- background-color: #aab7d1;
15
- }
16
- table.dataTable.order-column tbody > tr.selected > .sorting_1,
17
- table.dataTable.order-column tbody > tr.selected > .sorting_2,
18
- table.dataTable.order-column tbody > tr.selected > .sorting_3,
19
- table.dataTable.order-column tbody > tr > .selected, table.dataTable.display tbody > tr.selected > .sorting_1,
20
- table.dataTable.display tbody > tr.selected > .sorting_2,
21
- table.dataTable.display tbody > tr.selected > .sorting_3,
22
- table.dataTable.display tbody > tr > .selected {
23
- background-color: #acbad5;
24
- }
25
- table.dataTable.display tbody > tr.odd.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 {
26
- background-color: #a6b4cd;
27
- }
28
- table.dataTable.display tbody > tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 {
29
- background-color: #a8b5cf;
30
- }
31
- table.dataTable.display tbody > tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 {
32
- background-color: #a9b7d1;
33
- }
34
- table.dataTable.display tbody > tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 {
35
- background-color: #acbad5;
36
- }
37
- table.dataTable.display tbody > tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {
38
- background-color: #aebcd6;
39
- }
40
- table.dataTable.display tbody > tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 {
41
- background-color: #afbdd8;
42
- }
43
- table.dataTable.display tbody > tr.odd > .selected, table.dataTable.order-column.stripe tbody > tr.odd > .selected {
44
- background-color: #a6b4cd;
45
- }
46
- table.dataTable.display tbody > tr.even > .selected, table.dataTable.order-column.stripe tbody > tr.even > .selected {
47
- background-color: #acbad5;
48
- }
49
- table.dataTable.display tbody > tr.selected:hover > .sorting_1, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 {
50
- background-color: #a2aec7;
51
- }
52
- table.dataTable.display tbody > tr.selected:hover > .sorting_2, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 {
53
- background-color: #a3b0c9;
54
- }
55
- table.dataTable.display tbody > tr.selected:hover > .sorting_3, table.dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 {
56
- background-color: #a5b2cb;
57
- }
58
- table.dataTable.display tbody > tr:hover > .selected,
59
- table.dataTable.display tbody > tr > .selected:hover, table.dataTable.order-column.hover tbody > tr:hover > .selected,
60
- table.dataTable.order-column.hover tbody > tr > .selected:hover {
61
- background-color: #a2aec7;
1
+ table.dataTable > tbody > tr > .selected {
2
+ background-color: rgba(13, 110, 253, 0.9);
3
+ color: white;
62
4
  }
63
5
  table.dataTable tbody td.select-checkbox,
64
6
  table.dataTable tbody th.select-checkbox {
@@ -83,6 +25,10 @@ table.dataTable tbody th.select-checkbox:before {
83
25
  border: 1px solid black;
84
26
  border-radius: 3px;
85
27
  }
28
+ table.dataTable tr.selected td.select-checkbox:before,
29
+ table.dataTable tr.selected th.select-checkbox:before {
30
+ border: 1px solid white;
31
+ }
86
32
  table.dataTable tr.selected td.select-checkbox:after,
87
33
  table.dataTable tr.selected th.select-checkbox:after {
88
34
  content: "✓";
@@ -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:#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}}
1
+ table.dataTable>tbody>tr>.selected{background-color:rgba(13, 110, 253, 0.9);color:white}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:before,table.dataTable tr.selected th.select-checkbox:before{border:1px solid white}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);if(!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){return c.fn.dataTable});
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
- "version": "1.3.2",
4
- "description": "Select for DataTables ",
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.4.0",
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
- "DataTables",
16
+ "Datatables",
14
17
  "jQuery",
15
18
  "table",
16
- "DataTables"
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
- "dependencies": {
26
- "jquery": ">=1.7",
27
- "datatables.net-dt": "^1.10.15",
28
- "datatables.net-select": "1.3.2"
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