effective_datatables 4.17.4 → 4.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,35 +1,85 @@
1
1
  // Override dataTables.bootstrap4.css defaults
2
2
  table.dataTable { border-collapse: collapse !important; }
3
3
 
4
- // Override default padding
5
- table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting,
4
+ // Override default hover effect
5
+ table.dataTable.table-striped > tbody > tr.odd > *,
6
+ table.dataTable.table-striped > tbody > tr.odd.selected > *,
7
+ table.dataTable.table-hover > tbody > tr:hover > *,
8
+ table.dataTable.table-hover > tbody > tr.selected:hover > * {
9
+ box-shadow: unset;
10
+ }
11
+
12
+ // Override default sorting
13
+ table.dataTable thead > tr > th.sorting:before,
14
+ table.dataTable thead > tr > th.sorting_asc:before,
15
+ table.dataTable thead > tr > th.sorting_desc:before,
16
+ table.dataTable thead > tr > th.sorting_asc_disabled:before,
17
+ table.dataTable thead > tr > th.sorting_desc_disabled:before,
18
+ table.dataTable thead > tr > td.sorting:before,
19
+ table.dataTable thead > tr > td.sorting_asc:before,
20
+ table.dataTable thead > tr > td.sorting_desc:before,
21
+ table.dataTable thead > tr > td.sorting_asc_disabled:before,
22
+ table.dataTable thead > tr > td.sorting_desc_disabled:before {
23
+ content: '';
24
+ }
25
+
26
+ table.dataTable thead > tr > th.sorting:after,
27
+ table.dataTable thead > tr > th.sorting_asc:after,
28
+ table.dataTable thead > tr > th.sorting_desc:after,
29
+ table.dataTable thead > tr > th.sorting_asc_disabled:after,
30
+ table.dataTable thead > tr > th.sorting_desc_disabled:after,
31
+ table.dataTable thead > tr > td.sorting:after,
32
+ table.dataTable thead > tr > td.sorting_asc:after,
33
+ table.dataTable thead > tr > td.sorting_desc:after,
34
+ table.dataTable thead > tr > td.sorting_asc_disabled:after,
35
+ table.dataTable thead > tr > td.sorting_desc_disabled:after {
36
+ content: '';
37
+ }
38
+
39
+ table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting_asc_disabled, table.dataTable thead > tr > th.sorting_desc_disabled,
40
+ table.dataTable thead > tr > td.sorting,
6
41
  table.dataTable thead > tr > td.sorting_asc,
7
42
  table.dataTable thead > tr > td.sorting_desc,
8
- table.dataTable thead > tr > td.sorting { padding: 0.5em 0.5em 0.5em 0.5em; }
9
-
10
- // Override default sort icons
11
- table.dataTable thead .sorting:before,
12
- table.dataTable thead .sorting_asc:before,
13
- table.dataTable thead .sorting_desc:before,
14
- table.dataTable thead .sorting_asc_disabled:before,
15
- table.dataTable thead .sorting_desc_disabled:before,
16
- table.dataTable thead .sorting:after,
17
- table.dataTable thead .sorting_asc:after,
18
- table.dataTable thead .sorting_desc:after,
19
- table.dataTable thead .sorting_asc_disabled:after,
20
- table.dataTable thead .sorting_desc_disabled:after { content: ''; }
43
+ table.dataTable thead > tr > td.sorting_asc_disabled,
44
+ table.dataTable thead > tr > td.sorting_desc_disabled {
45
+ padding: 0.5em 0.5em 0.5em 0.5em;
46
+ }
21
47
 
22
- table.dataTable > thead {
48
+ table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) { padding-right: 0.5em; }
49
+ table.dataTable thead > tr > th.sorting_disabled { padding-bottom: 8px; }
50
+
51
+ table.dataTable > thead th {
52
+ background-repeat: no-repeat;
53
+ > span { padding-right: 1rem; }
54
+ }
55
+
56
+ table.dataTable > thead .sorting {
57
+ background-image: asset-data-url('dataTables/sort.svg');
58
+ background-position: right 0.25rem top 0.25rem;
59
+ }
60
+
61
+ table.dataTable > thead .sorting_asc {
62
+ background-image: asset-data-url('dataTables/sort-up.svg');
63
+ background-position: right 0.25rem top 0.25rem;
64
+ }
65
+
66
+ table.dataTable > thead .sorting_desc {
67
+ background-image: asset-data-url('dataTables/sort-down.svg');
68
+ background-position: right 0.25rem top 0.25rem;
69
+ }
70
+
71
+ // The New button
72
+ table.dataTable thead {
23
73
  th.col-actions {
24
74
  text-align: right;
25
-
26
75
  span { display: block; height: 1.25em; }
27
76
  }
28
77
  }
29
78
 
79
+ // Turbolinks destroy fix
30
80
  .dataTables_wrapper {
31
81
  table.dataTable {
32
- tr.effective-datatables-inline-row { visibility: collapse; } // Turbolinks destroy fix
82
+ tr.effective-datatables-inline-row { visibility: collapse; }
33
83
  }
34
84
  }
35
85
 
@@ -53,25 +103,17 @@ table.dataTable > thead {
53
103
  }
54
104
  }
55
105
 
56
- table.dataTable > thead th {
57
- background-repeat: no-repeat;
58
-
59
- > span { padding-right: 1rem; }
106
+ table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
107
+ table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
108
+ color: #0275d8;
60
109
  }
61
-
62
- table.dataTable > thead .sorting {
63
- background-image: asset-data-url('dataTables/sort.svg');
64
- background-position: right 0.25rem top 0.25rem;
110
+ table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control.arrow-right::before,
111
+ table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control.arrow-right::before {
112
+ color: #0275d8;
65
113
  }
66
-
67
- table.dataTable > thead .sorting_asc {
68
- background-image: asset-data-url('dataTables/sort-up.svg');
69
- background-position: right 0.25rem top 0.25rem;
70
- }
71
-
72
- table.dataTable > thead .sorting_desc {
73
- background-image: asset-data-url('dataTables/sort-down.svg');
74
- background-position: right 0.25rem top 0.25rem;
114
+ table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before,
115
+ table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
116
+ color: #0275d8;
75
117
  }
76
118
 
77
119
  // Collapsed Responsive View
@@ -90,6 +132,10 @@ table.dataTable > tbody > tr.child {
90
132
  }
91
133
  }
92
134
 
135
+ table.dataTable.collapsed {
136
+ th.col-bulk_actions:first-child { div { margin-left: 18px; } }
137
+ }
138
+
93
139
  // Buttons
94
140
  .dataTables_buttons {
95
141
  text-align: right;
@@ -124,10 +170,6 @@ table.dataTable > thead {
124
170
  }
125
171
  }
126
172
 
127
- table.dataTable.collapsed {
128
- th.col-bulk_actions:first-child { div { margin-left: 18px; } }
129
- }
130
-
131
173
  // Processing div
132
174
  div.dataTables_wrapper div.dataTables_processing {
133
175
  margin: -26px 25% 0px 25%;
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.17.4'.freeze
2
+ VERSION = '4.18.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.17.4
4
+ version: 4.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-03 00:00:00.000000000 Z
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -94,6 +94,7 @@ files:
94
94
  - app/assets/images/dataTables/sort-down.svg
95
95
  - app/assets/images/dataTables/sort-up.svg
96
96
  - app/assets/images/dataTables/sort.svg
97
+ - app/assets/javascripts/dataTables/UPGRADE.md
97
98
  - app/assets/javascripts/dataTables/buttons/buttons.bootstrap4.js
98
99
  - app/assets/javascripts/dataTables/buttons/buttons.colVis.js
99
100
  - app/assets/javascripts/dataTables/buttons/buttons.html5.js