datatables.net-select-dt 1.7.0 → 2.0.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.
@@ -2,13 +2,52 @@ table.dataTable > tbody > tr > .selected {
2
2
  background-color: rgba(13, 110, 253, 0.9);
3
3
  color: white;
4
4
  }
5
+ table.dataTable > tbody > tr > .dt-select {
6
+ text-align: center;
7
+ vertical-align: middle;
8
+ }
9
+ table.dataTable > thead > tr > .dt-select {
10
+ text-align: center;
11
+ }
12
+ table.dataTable input.dt-select-checkbox {
13
+ appearance: none;
14
+ position: relative;
15
+ display: inline-block;
16
+ width: 12px;
17
+ height: 12px;
18
+ border: 1px solid;
19
+ border-radius: 3px;
20
+ vertical-align: middle;
21
+ margin-top: 1px;
22
+ color: inherit;
23
+ font-size: 20px;
24
+ line-height: 1em;
25
+ }
26
+ table.dataTable input.dt-select-checkbox:checked:after {
27
+ display: block;
28
+ content: "✓";
29
+ margin-top: -8px;
30
+ }
31
+ table.dataTable input.dt-select-checkbox:indeterminate:after {
32
+ display: block;
33
+ position: absolute;
34
+ content: " ";
35
+ top: 3px;
36
+ left: 3px;
37
+ height: 4px;
38
+ width: 4px;
39
+ background-color: black;
40
+ border-radius: 2px;
41
+ }
42
+ table.dataTable > tbody > tr.selected input.dt-select-checkbox:checked {
43
+ border: 1px solid;
44
+ }
5
45
  table.dataTable > tbody > tr > td.select-checkbox,
6
46
  table.dataTable > tbody > tr > th.select-checkbox {
7
47
  position: relative;
8
48
  }
9
- table.dataTable > tbody > tr > td.select-checkbox:before, table.dataTable > tbody > tr > td.select-checkbox:after,
10
- table.dataTable > tbody > tr > th.select-checkbox:before,
11
- table.dataTable > tbody > tr > th.select-checkbox:after {
49
+ table.dataTable > tbody > tr > td.select-checkbox:before,
50
+ table.dataTable > tbody > tr > th.select-checkbox:before {
12
51
  display: block;
13
52
  position: absolute;
14
53
  top: 50%;
@@ -16,25 +55,18 @@ table.dataTable > tbody > tr > th.select-checkbox:after {
16
55
  width: 12px;
17
56
  height: 12px;
18
57
  box-sizing: border-box;
19
- }
20
- table.dataTable > tbody > tr > td.select-checkbox:before,
21
- table.dataTable > tbody > tr > th.select-checkbox:before {
22
58
  content: " ";
23
59
  margin-top: -6px;
24
60
  margin-left: -6px;
25
- border: 1px solid black;
61
+ border: 1px solid;
26
62
  border-radius: 3px;
27
63
  }
28
64
  table.dataTable > tbody > tr.selected > td.select-checkbox:before,
29
65
  table.dataTable > tbody > tr.selected > th.select-checkbox:before {
30
- border: 1px solid white;
31
- }
32
- table.dataTable > tbody > tr.selected > td.select-checkbox:after,
33
- table.dataTable > tbody > tr.selected > th.select-checkbox:after {
66
+ border: 1px solid;
34
67
  content: "✓";
35
68
  font-size: 20px;
36
- margin-top: -12px;
37
- margin-left: -6px;
69
+ line-height: 6px;
38
70
  text-align: center;
39
71
  }
40
72
  table.dataTable.compact > tbody > tr > td.select-checkbox:before,
@@ -46,21 +78,19 @@ table.dataTable.compact > tbody > tr.selected > th.select-checkbox:after {
46
78
  margin-top: -16px;
47
79
  }
48
80
 
49
- div.dataTables_wrapper span.select-info,
50
- div.dataTables_wrapper span.select-item {
81
+ div.dt-container span.select-info,
82
+ div.dt-container span.select-item {
51
83
  margin-left: 0.5em;
52
84
  }
53
85
 
54
- html.dark table.dataTable > tbody > tr > td.select-checkbox:before,
55
- html.dark table.dataTable > tbody > tr > th.select-checkbox:before,
56
- html[data-bs-theme=dark] table.dataTable > tbody > tr > td.select-checkbox:before,
57
- html[data-bs-theme=dark] table.dataTable > tbody > tr > th.select-checkbox:before {
58
- border: 1px solid rgba(255, 255, 255, 0.6);
86
+ html.dark table.dataTable input.dt-select-checkbox:indeterminate:after,
87
+ html[data-bs-theme=dark] table.dataTable input.dt-select-checkbox:indeterminate:after {
88
+ background-color: white;
59
89
  }
60
90
 
61
91
  @media screen and (max-width: 640px) {
62
- div.dataTables_wrapper span.select-info,
63
- div.dataTables_wrapper span.select-item {
92
+ div.dt-container span.select-info,
93
+ div.dt-container span.select-item {
64
94
  margin-left: 0;
65
95
  display: block;
66
96
  }
@@ -1 +1 @@
1
- table.dataTable>tbody>tr>.selected{background-color:rgba(13, 110, 253, 0.9);color:white}table.dataTable>tbody>tr>td.select-checkbox,table.dataTable>tbody>tr>th.select-checkbox{position:relative}table.dataTable>tbody>tr>td.select-checkbox:before,table.dataTable>tbody>tr>td.select-checkbox:after,table.dataTable>tbody>tr>th.select-checkbox:before,table.dataTable>tbody>tr>th.select-checkbox:after{display:block;position:absolute;top:50%;left:50%;width:12px;height:12px;box-sizing:border-box}table.dataTable>tbody>tr>td.select-checkbox:before,table.dataTable>tbody>tr>th.select-checkbox:before{content:" ";margin-top:-6px;margin-left:-6px;border:1px solid black;border-radius:3px}table.dataTable>tbody>tr.selected>td.select-checkbox:before,table.dataTable>tbody>tr.selected>th.select-checkbox:before{border:1px solid white}table.dataTable>tbody>tr.selected>td.select-checkbox:after,table.dataTable>tbody>tr.selected>th.select-checkbox:after{content:"✓";font-size:20px;margin-top:-12px;margin-left:-6px;text-align:center}table.dataTable.compact>tbody>tr>td.select-checkbox:before,table.dataTable.compact>tbody>tr>th.select-checkbox:before{margin-top:-12px}table.dataTable.compact>tbody>tr.selected>td.select-checkbox:after,table.dataTable.compact>tbody>tr.selected>th.select-checkbox:after{margin-top:-16px}div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:.5em}html.dark table.dataTable>tbody>tr>td.select-checkbox:before,html.dark table.dataTable>tbody>tr>th.select-checkbox:before,html[data-bs-theme=dark] table.dataTable>tbody>tr>td.select-checkbox:before,html[data-bs-theme=dark] table.dataTable>tbody>tr>th.select-checkbox:before{border:1px solid rgba(255, 255, 255, 0.6)}@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>tr>.dt-select{text-align:center;vertical-align:middle}table.dataTable>thead>tr>.dt-select{text-align:center}table.dataTable input.dt-select-checkbox{appearance:none;position:relative;display:inline-block;width:12px;height:12px;border:1px solid;border-radius:3px;vertical-align:middle;margin-top:1px;color:inherit;font-size:20px;line-height:1em}table.dataTable input.dt-select-checkbox:checked:after{display:block;content:"✓";margin-top:-8px}table.dataTable input.dt-select-checkbox:indeterminate:after{display:block;position:absolute;content:" ";top:3px;left:3px;height:4px;width:4px;background-color:black;border-radius:2px}table.dataTable>tbody>tr.selected input.dt-select-checkbox:checked{border:1px solid}table.dataTable>tbody>tr>td.select-checkbox,table.dataTable>tbody>tr>th.select-checkbox{position:relative}table.dataTable>tbody>tr>td.select-checkbox:before,table.dataTable>tbody>tr>th.select-checkbox:before{display:block;position:absolute;top:50%;left:50%;width:12px;height:12px;box-sizing:border-box;content:" ";margin-top:-6px;margin-left:-6px;border:1px solid;border-radius:3px}table.dataTable>tbody>tr.selected>td.select-checkbox:before,table.dataTable>tbody>tr.selected>th.select-checkbox:before{border:1px solid;content:"✓";font-size:20px;line-height:6px;text-align:center}table.dataTable.compact>tbody>tr>td.select-checkbox:before,table.dataTable.compact>tbody>tr>th.select-checkbox:before{margin-top:-12px}table.dataTable.compact>tbody>tr.selected>td.select-checkbox:after,table.dataTable.compact>tbody>tr.selected>th.select-checkbox:after{margin-top:-16px}div.dt-container span.select-info,div.dt-container span.select-item{margin-left:.5em}html.dark table.dataTable input.dt-select-checkbox:indeterminate:after,html[data-bs-theme=dark] table.dataTable input.dt-select-checkbox:indeterminate:after{background-color:white}@media screen and (max-width: 640px){div.dt-container span.select-info,div.dt-container span.select-item{margin-left:0;display:block}}
@@ -47,7 +47,7 @@
47
47
  // Browser
48
48
  factory( jQuery, window, document );
49
49
  }
50
- }(function( $, window, document, undefined ) {
50
+ }(function( $, window, document ) {
51
51
  'use strict';
52
52
  var DataTable = $.fn.dataTable;
53
53
 
@@ -1,4 +1,4 @@
1
1
  /*! DataTables styling wrapper for Select
2
2
  * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
- !function(n){var d,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(e){return n(e,window,document)}):"object"==typeof exports?(d=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.select||require("datatables.net-select")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||d(e),o(e,t),n(t,0,e.document)}:(o(window,d),module.exports=n(d,window,window.document))):n(jQuery,window,document)}(function(e,t,n,d){"use strict";return e.fn.dataTable});
4
+ !function(n){var d,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-select"],function(e){return n(e,window,document)}):"object"==typeof exports?(d=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net-dt")(e,t),t.fn.dataTable.select||require("datatables.net-select")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||d(e),o(e,t),n(t,0,e.document)}:(o(window,d),module.exports=n(d,window,window.document))):n(jQuery,window,document)}(function(e,t,n){"use strict";return e.fn.dataTable});
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "module": "js/select.dataTables.mjs",
6
6
  "style": "css/select.dataTables.css",
7
7
  "types": "./types/select.dataTables.d.ts",
8
- "version": "1.7.0",
8
+ "version": "2.0.0",
9
9
  "files": [
10
10
  "css/**/*.css",
11
11
  "js/**/*.js",
@@ -22,8 +22,8 @@
22
22
  "sort"
23
23
  ],
24
24
  "dependencies": {
25
- "datatables.net-select": ">=1.6.2",
26
- "datatables.net-dt": ">=1.13.4",
25
+ "datatables.net-select": "2.0.0",
26
+ "datatables.net-dt": ">=2.0.0",
27
27
  "jquery": ">=1.7"
28
28
  },
29
29
  "moduleType": [