datatables.net-select-dt 3.1.3 → 4.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.
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--dtsl-tick_margin-top: -8px;
|
|
3
|
+
--dtsl-tick_line-height: 6px;
|
|
4
|
+
--dtsl-tick_border: 1px solid;
|
|
5
|
+
--dtsl-tick_border-checked: 1px solid;
|
|
6
|
+
--dtsl-tick_content-checked: '\2713';
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
table.dataTable > tbody > tr > .selected {
|
|
2
|
-
background-color:
|
|
3
|
-
color: rgb(var(--
|
|
10
|
+
background-color: rgb(var(--dt_background-selected));
|
|
11
|
+
color: rgb(var(--dt_color-selected));
|
|
12
|
+
}
|
|
13
|
+
table.dataTable > tbody > tr > .selected a {
|
|
14
|
+
color: rgb(var(--dt_link_color-selected));
|
|
4
15
|
}
|
|
5
16
|
|
|
6
17
|
div.dt-container span.select-info,
|
|
@@ -33,7 +44,7 @@ table.dataTable input.dt-select-checkbox {
|
|
|
33
44
|
display: inline-block;
|
|
34
45
|
width: 12px;
|
|
35
46
|
height: 12px;
|
|
36
|
-
border:
|
|
47
|
+
border: var(--dtsl-tick_border);
|
|
37
48
|
border-radius: 3px;
|
|
38
49
|
vertical-align: middle;
|
|
39
50
|
margin-top: 1px;
|
|
@@ -43,8 +54,8 @@ table.dataTable input.dt-select-checkbox {
|
|
|
43
54
|
}
|
|
44
55
|
table.dataTable input.dt-select-checkbox:checked:after {
|
|
45
56
|
display: block;
|
|
46
|
-
content:
|
|
47
|
-
margin-top: -
|
|
57
|
+
content: var(--dtsl-tick_content-checked);
|
|
58
|
+
margin-top: var(--dtsl-tick_margin-top);
|
|
48
59
|
}
|
|
49
60
|
table.dataTable input.dt-select-checkbox:indeterminate:after {
|
|
50
61
|
display: block;
|
|
@@ -58,7 +69,7 @@ table.dataTable input.dt-select-checkbox:indeterminate:after {
|
|
|
58
69
|
border-radius: 2px;
|
|
59
70
|
}
|
|
60
71
|
table.dataTable > tbody > tr.selected input.dt-select-checkbox:checked {
|
|
61
|
-
border:
|
|
72
|
+
border: var(--dtsl-tick_border-checked);
|
|
62
73
|
}
|
|
63
74
|
table.dataTable > tbody > tr > td.select-checkbox,
|
|
64
75
|
table.dataTable > tbody > tr > th.select-checkbox {
|
|
@@ -76,15 +87,15 @@ table.dataTable > tbody > tr > th.select-checkbox:before {
|
|
|
76
87
|
content: " ";
|
|
77
88
|
margin-top: -6px;
|
|
78
89
|
margin-left: -6px;
|
|
79
|
-
border:
|
|
90
|
+
border: var(--dtsl-tick_border);
|
|
80
91
|
border-radius: 3px;
|
|
81
92
|
}
|
|
82
93
|
table.dataTable > tbody > tr.selected > td.select-checkbox:before,
|
|
83
94
|
table.dataTable > tbody > tr.selected > th.select-checkbox:before {
|
|
84
|
-
border:
|
|
95
|
+
border: var(--dtsl-tick_border-checked);
|
|
85
96
|
content: "✓";
|
|
86
97
|
font-size: 20px;
|
|
87
|
-
line-height:
|
|
98
|
+
line-height: var(--dtsl-tick_line-height);
|
|
88
99
|
text-align: center;
|
|
89
100
|
}
|
|
90
101
|
table.dataTable.compact > tbody > tr > td.select-checkbox:before,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
table.dataTable>tbody>tr>.selected{background-color:
|
|
1
|
+
:root{--dtsl-tick_margin-top: -8px;--dtsl-tick_line-height: 6px;--dtsl-tick_border: 1px solid;--dtsl-tick_border-checked: 1px solid;--dtsl-tick_content-checked: '\2713'}table.dataTable>tbody>tr>.selected{background-color:rgb(var(--dt_background-selected));color:rgb(var(--dt_color-selected))}table.dataTable>tbody>tr>.selected a{color:rgb(var(--dt_link_color-selected))}div.dt-container span.select-info,div.dt-container span.select-item{margin-left:.5em}@media screen and (max-width: 640px){div.dt-container span.select-info,div.dt-container span.select-item{margin-left:0;display:block}}table.dataTable>tbody>tr>.dt-select{text-align:center;vertical-align:middle}table.dataTable>thead>tr>.dt-select{text-align:center;vertical-align:middle}table.dataTable>thead>tr>.dt-select input.dt-select-checkbox{margin-left:auto;margin-right:auto}table.dataTable input.dt-select-checkbox{appearance:none;position:relative;display:inline-block;width:12px;height:12px;border:var(--dtsl-tick_border);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:var(--dtsl-tick_content-checked);margin-top:var(--dtsl-tick_margin-top)}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:var(--dtsl-tick_border-checked)}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:var(--dtsl-tick_border);border-radius:3px}table.dataTable>tbody>tr.selected>td.select-checkbox:before,table.dataTable>tbody>tr.selected>th.select-checkbox:before{border:var(--dtsl-tick_border-checked);content:"✓";font-size:20px;line-height:var(--dtsl-tick_line-height);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}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}
|
package/js/select.dataTables.js
CHANGED
|
@@ -1,55 +1,49 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
1
|
+
/*! Select default styling 4.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
(function(
|
|
6
|
-
if (
|
|
5
|
+
(function(factory){
|
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
|
7
7
|
// AMD
|
|
8
|
-
define(
|
|
9
|
-
return factory(
|
|
10
|
-
}
|
|
8
|
+
define(['datatables.net-dt', 'datatables.net-select'], function (dt) {
|
|
9
|
+
return factory(window, document, dt);
|
|
10
|
+
});
|
|
11
11
|
}
|
|
12
|
-
else if (
|
|
12
|
+
else if (typeof exports === 'object') {
|
|
13
13
|
// CommonJS
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
require('datatables.net-dt')(root, $);
|
|
14
|
+
var cjsRequires = function (root) {
|
|
15
|
+
if (! root.DataTable) {
|
|
16
|
+
require('datatables.net-dt')(root);
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
if (
|
|
21
|
-
require('datatables.net-select')(root
|
|
19
|
+
if (! window.DataTable.select) {
|
|
20
|
+
require('datatables.net-select')(root);
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
if (typeof window === 'undefined') {
|
|
26
|
-
module.exports = function (root
|
|
27
|
-
if (
|
|
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
|
-
|
|
34
|
-
|
|
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(
|
|
43
|
-
module.exports = factory(
|
|
37
|
+
cjsRequires(window);
|
|
38
|
+
module.exports = factory(window, window.document, window.DataTable);
|
|
44
39
|
}
|
|
45
40
|
}
|
|
46
41
|
else {
|
|
47
42
|
// Browser
|
|
48
|
-
factory(
|
|
43
|
+
factory(window, document, window.DataTable);
|
|
49
44
|
}
|
|
50
|
-
}(function(
|
|
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
|
-
/*!
|
|
2
|
-
*
|
|
1
|
+
/*! Select default styling 4.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
(
|
|
4
|
+
(t=>{var n;"function"==typeof define&&define.amd?define(["datatables.net-dt","datatables.net-select"],function(e){return t(window,document,e)}):"object"==typeof exports?(n=function(e){e.DataTable||require("datatables.net-dt")(e),window.DataTable.select||require("datatables.net-select")(e)},"undefined"==typeof window?module.exports=function(e){return e=e||window,n(e),t(0,e.document,e.DataTable)}:(n(window),module.exports=t(window,window.document,window.DataTable))):t(window,document,window.DataTable)})(function(e,t,n){return n});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
1
|
+
/*! Select default styling 4.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import DataTable from"datatables.net-dt";import select from"datatables.net-select";export default DataTable;
|
package/js/select.dataTables.mjs
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
*
|
|
1
|
+
/*! Select default styling 4.0.0 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-dt';
|
|
7
6
|
import select from 'datatables.net-select';
|
|
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/select.dataTables.mjs",
|
|
6
6
|
"style": "css/select.dataTables.css",
|
|
7
7
|
"types": "./types/select.dataTables.d.ts",
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "4.0.0",
|
|
9
9
|
"files": [
|
|
10
10
|
"css/**/*.css",
|
|
11
11
|
"js/**/*.js",
|
|
@@ -16,26 +16,14 @@
|
|
|
16
16
|
"select",
|
|
17
17
|
"selection",
|
|
18
18
|
"Datatables",
|
|
19
|
-
"jQuery",
|
|
20
19
|
"table",
|
|
21
20
|
"filter",
|
|
22
21
|
"sort"
|
|
23
22
|
],
|
|
24
23
|
"dependencies": {
|
|
25
|
-
"datatables.net-select": "
|
|
26
|
-
"datatables.net-dt": "^
|
|
27
|
-
"jquery": ">=1.7"
|
|
24
|
+
"datatables.net-select": "4.0.0",
|
|
25
|
+
"datatables.net-dt": "^3"
|
|
28
26
|
},
|
|
29
|
-
"moduleType": [
|
|
30
|
-
"globals",
|
|
31
|
-
"amd",
|
|
32
|
-
"node"
|
|
33
|
-
],
|
|
34
|
-
"ignore": [
|
|
35
|
-
"composer.json",
|
|
36
|
-
"datatables.json",
|
|
37
|
-
"package.json"
|
|
38
|
-
],
|
|
39
27
|
"author": {
|
|
40
28
|
"name": "SpryMedia Ltd",
|
|
41
29
|
"url": "http://datatables.net"
|
|
@@ -45,6 +33,6 @@
|
|
|
45
33
|
"license": "MIT",
|
|
46
34
|
"repository": {
|
|
47
35
|
"type": "git",
|
|
48
|
-
"url": "https://github.com/DataTables/
|
|
36
|
+
"url": "git+https://github.com/DataTables/Select.git"
|
|
49
37
|
}
|
|
50
38
|
}
|