jquery-datatables 1.10.18 → 1.10.20

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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +1 -0
  3. data/README.md +28 -1
  4. data/app/assets/javascripts/datatables/dataTables.uikit.js +2 -2
  5. data/app/assets/javascripts/datatables/extensions/AutoFill/dataTables.autoFill.js +42 -29
  6. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap.js +1 -1
  7. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.bootstrap4.js +8 -2
  8. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.colVis.js +6 -3
  9. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.foundation.js +5 -4
  10. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.html5.js +58 -6
  11. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.print.js +16 -5
  12. data/app/assets/javascripts/datatables/extensions/Buttons/buttons.semanticui.js +1 -1
  13. data/app/assets/javascripts/datatables/extensions/Buttons/dataTables.buttons.js +267 -152
  14. data/app/assets/javascripts/datatables/extensions/ColReorder/colReorder.foundation.js +1 -1
  15. data/app/assets/javascripts/datatables/extensions/ColReorder/dataTables.colReorder.js +121 -52
  16. data/app/assets/javascripts/datatables/extensions/FixedColumns/dataTables.fixedColumns.js +32 -5
  17. data/app/assets/javascripts/datatables/extensions/FixedHeader/dataTables.fixedHeader.js +3 -3
  18. data/app/assets/javascripts/datatables/extensions/KeyTable/dataTables.keyTable.js +166 -63
  19. data/app/assets/javascripts/datatables/extensions/KeyTable/keyTable.foundation.js +1 -1
  20. data/app/assets/javascripts/datatables/extensions/Responsive/dataTables.responsive.js +3 -3
  21. data/app/assets/javascripts/datatables/extensions/RowGroup/dataTables.rowGroup.js +105 -53
  22. data/app/assets/javascripts/datatables/extensions/RowGroup/rowGroup.foundation.js +1 -1
  23. data/app/assets/javascripts/datatables/extensions/RowReorder/dataTables.rowReorder.js +10 -9
  24. data/app/assets/javascripts/datatables/extensions/RowReorder/rowReorder.foundation.js +1 -1
  25. data/app/assets/javascripts/datatables/extensions/Scroller/dataTables.scroller.js +519 -636
  26. data/app/assets/javascripts/datatables/extensions/Scroller/scroller.foundation.js +1 -1
  27. data/app/assets/javascripts/datatables/extensions/Select/dataTables.select.js +49 -18
  28. data/app/assets/javascripts/datatables/extensions/Select/select.foundation.js +1 -1
  29. data/app/assets/javascripts/datatables/jquery.dataTables.js +99 -61
  30. data/app/assets/javascripts/datatables/plugins/api/average.js +7 -6
  31. data/app/assets/javascripts/datatables/plugins/api/sum.js +7 -6
  32. data/app/assets/javascripts/datatables/plugins/pagination/ellipses.js +160 -0
  33. data/app/assets/javascripts/datatables/plugins/pagination/extjs.js +137 -0
  34. data/app/assets/javascripts/datatables/plugins/pagination/four_button.js +110 -0
  35. data/app/assets/javascripts/datatables/plugins/pagination/full_numbers_no_ellipses.js +59 -0
  36. data/app/assets/javascripts/datatables/plugins/pagination/input.js +22 -19
  37. data/app/assets/javascripts/datatables/plugins/pagination/scrolling.js +130 -0
  38. data/app/assets/javascripts/datatables/plugins/pagination/select.js +97 -0
  39. data/app/assets/javascripts/datatables/plugins/pagination/simple_incremental_bootstrap.js +154 -0
  40. data/app/assets/javascripts/datatables/plugins/pagination/simple_numbers_no_ellipses.js +59 -0
  41. data/app/assets/javascripts/datatables/plugins/search/dataTables.alphabetSearch.js +440 -399
  42. data/app/assets/javascripts/datatables/plugins/sorting/enum.js +51 -0
  43. data/app/assets/javascripts/datatables/plugins/type-detection/date-dd-MMM-yyyy.js +63 -0
  44. data/app/assets/javascripts/datatables/plugins/type-detection/date-de.js +125 -0
  45. data/app/assets/javascripts/datatables/plugins/type-detection/date-eu.js +64 -0
  46. data/app/assets/javascripts/datatables/plugins/type-detection/date-euro.js +48 -0
  47. data/app/assets/javascripts/datatables/plugins/type-detection/date-uk.js +35 -12
  48. data/app/assets/javascripts/datatables/plugins/type-detection/datetime-moment.js +74 -0
  49. data/app/assets/javascripts/datatables/plugins/type-detection/datetime-us.js +86 -0
  50. data/app/assets/javascripts/datatables/plugins/type-detection/file-size.js +37 -13
  51. data/app/assets/javascripts/datatables/plugins/type-detection/ip-address.js +113 -11
  52. data/app/assets/javascripts/datatables/plugins/type-detection/numString.js +63 -0
  53. data/app/assets/javascripts/datatables/plugins/type-detection/percent.js +34 -0
  54. data/app/assets/javascripts/datatables/plugins/type-detection/time-elapsed-dhms.js +42 -0
  55. data/app/assets/javascripts/datatables/plugins/type-detection/time.js +56 -0
  56. data/app/assets/javascripts/datatables/plugins/type-detection/title-numeric.js +40 -0
  57. data/app/assets/javascripts/datatables/plugins/type-detection/title-string.js +36 -0
  58. data/app/assets/stylesheets/datatables/dataTables.foundation.scss +5 -5
  59. data/app/assets/stylesheets/datatables/dataTables.material.scss +1 -1
  60. data/app/assets/stylesheets/datatables/extensions/AutoFill/autoFill.dataTables.scss +10 -3
  61. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap.scss +12 -3
  62. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.bootstrap4.scss +13 -6
  63. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.dataTables.scss +2 -0
  64. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.foundation.scss +5 -1
  65. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.jqueryui.scss +1 -0
  66. data/app/assets/stylesheets/datatables/extensions/Buttons/buttons.semanticui.scss +2 -1
  67. data/app/assets/stylesheets/datatables/extensions/Buttons/common.scss +10 -0
  68. data/app/assets/stylesheets/datatables/extensions/Buttons/mixins.scss +42 -30
  69. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.bootstrap.scss +11 -7
  70. data/app/assets/stylesheets/datatables/extensions/FixedColumns/fixedColumns.foundation.scss +1 -0
  71. data/app/assets/stylesheets/datatables/extensions/KeyTable/keyTable.dataTables.scss +13 -5
  72. data/app/assets/stylesheets/datatables/extensions/RowGroup/rowGroup.dataTables.scss +20 -2
  73. data/app/assets/stylesheets/datatables/extensions/Scroller/scroller.dataTables.scss +15 -2
  74. data/app/assets/stylesheets/datatables/jquery.dataTables.scss +5 -5
  75. data/jquery-datatables.gemspec +0 -3
  76. data/lib/generators/jquery/datatables/templates/stylesheets/foundation.scss.tt +0 -18
  77. data/lib/generators/jquery/datatables/templates/stylesheets/regular.scss.tt +0 -18
  78. data/lib/generators/jquery/datatables/templates/views/index.html.haml +6 -6
  79. data/lib/generators/jquery/datatables/templates/views/index.html.slim +2 -2
  80. data/lib/generators/jquery/datatables/templates/views/index.json.jbuilder +2 -2
  81. data/lib/jquery-datatables/engine.rb +0 -2
  82. data/lib/jquery-datatables/version.rb +1 -1
  83. data/lib/jquery-datatables.rb +3 -8
  84. metadata +31 -40
  85. data/app/assets/javascripts/datatables/dataTables.bootstrap2.js +0 -162
  86. data/app/assets/stylesheets/datatables/dataTables.bootstrap2.scss +0 -178
  87. /data/app/assets/javascripts/datatables/extensions/ColReorder/{colReorder.semanicui.js → colReorder.semanticui.js} +0 -0
  88. /data/app/assets/javascripts/datatables/extensions/FixedColumns/{fixedColumns.semanicui.js → fixedColumns.semanticui.js} +0 -0
  89. /data/app/assets/javascripts/datatables/extensions/FixedHeader/{fixedHeader.semanicui.js → fixedHeader.semanticui.js} +0 -0
  90. /data/app/assets/javascripts/datatables/extensions/KeyTable/{keyTable.semanicui.js → keyTable.semanticui.js} +0 -0
  91. /data/app/assets/javascripts/datatables/extensions/RowGroup/{rowGroup.semanicui.js → rowGroup.semanticui.js} +0 -0
  92. /data/app/assets/javascripts/datatables/extensions/RowReorder/{rowReorder.semanicui.js → rowReorder.semanticui.js} +0 -0
@@ -1,162 +0,0 @@
1
- /*! DataTables Bootstrap 2 integration
2
- * ©2011-2014 SpryMedia Ltd - datatables.net/license
3
- */
4
-
5
- /**
6
- * DataTables integration for Bootstrap 2. This requires Bootstrap 2 and
7
- * DataTables 1.10 or newer.
8
- *
9
- * This file sets the defaults and adds options to DataTables to style its
10
- * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
11
- * for further information.
12
- */
13
- (function(window, document, $, DataTable, undefined){
14
-
15
- $.extend( true, DataTable.defaults, {
16
- "dom":
17
- "<'row-fluid'<'span6'l><'span6'f>r>" +
18
- "<'row-fluid'<'span12't>>" +
19
- "<'row-fluid'<'span6'i><'span6'p>>",
20
- renderer: 'bootstrap'
21
- } );
22
-
23
-
24
- /* Default class modification */
25
- $.extend( DataTable.ext.classes, {
26
- sWrapper: "dataTables_wrapper form-inline dt-bootstrap"
27
- } );
28
-
29
-
30
- /* Bootstrap paging button renderer */
31
- DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
32
- var api = new DataTable.Api( settings );
33
- var classes = settings.oClasses;
34
- var lang = settings.oLanguage.oPaginate;
35
- var btnDisplay, btnClass;
36
-
37
- var attach = function( container, buttons ) {
38
- var i, ien, node, button;
39
- var clickHandler = function ( e ) {
40
- e.preventDefault();
41
- if ( !$(e.currentTarget).hasClass('disabled') ) {
42
- api.page( e.data.action ).draw( false );
43
- }
44
- };
45
-
46
- for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
47
- button = buttons[i];
48
-
49
- if ( $.isArray( button ) ) {
50
- attach( container, button );
51
- }
52
- else {
53
- btnDisplay = '';
54
- btnClass = '';
55
-
56
- switch ( button ) {
57
- case 'ellipsis':
58
- btnDisplay = '&hellip;';
59
- btnClass = 'disabled';
60
- break;
61
-
62
- case 'first':
63
- btnDisplay = lang.sFirst;
64
- btnClass = button + (page > 0 ?
65
- '' : ' disabled');
66
- break;
67
-
68
- case 'previous':
69
- btnDisplay = lang.sPrevious;
70
- btnClass = button + (page > 0 ?
71
- '' : ' disabled');
72
- break;
73
-
74
- case 'next':
75
- btnDisplay = lang.sNext;
76
- btnClass = button + (page < pages-1 ?
77
- '' : ' disabled');
78
- break;
79
-
80
- case 'last':
81
- btnDisplay = lang.sLast;
82
- btnClass = button + (page < pages-1 ?
83
- '' : ' disabled');
84
- break;
85
-
86
- default:
87
- btnDisplay = button + 1;
88
- btnClass = page === button ?
89
- 'active' : '';
90
- break;
91
- }
92
-
93
- if ( btnDisplay ) {
94
- node = $('<li>', {
95
- 'class': classes.sPageButton+' '+btnClass,
96
- 'aria-controls': settings.sTableId,
97
- 'tabindex': settings.iTabIndex,
98
- 'id': idx === 0 && typeof button === 'string' ?
99
- settings.sTableId +'_'+ button :
100
- null
101
- } )
102
- .append( $('<a>', {
103
- 'href': '#'
104
- } )
105
- .html( btnDisplay )
106
- )
107
- .appendTo( container );
108
-
109
- settings.oApi._fnBindAction(
110
- node, {action: button}, clickHandler
111
- );
112
- }
113
- }
114
- }
115
- };
116
-
117
- attach(
118
- $(host).empty().html('<div class="pagination"><ul/></div>').find('ul'),
119
- buttons
120
- );
121
- };
122
-
123
-
124
- /*
125
- * TableTools Bootstrap compatibility
126
- * Required TableTools 2.1+
127
- */
128
- if ( DataTable.TableTools ) {
129
- // Set the classes that TableTools uses to something suitable for Bootstrap
130
- $.extend( true, DataTable.TableTools.classes, {
131
- "container": "DTTT btn-group",
132
- "buttons": {
133
- "normal": "btn",
134
- "disabled": "disabled"
135
- },
136
- "collection": {
137
- "container": "DTTT_dropdown dropdown-menu",
138
- "buttons": {
139
- "normal": "",
140
- "disabled": "disabled"
141
- }
142
- },
143
- "print": {
144
- "info": "DTTT_print_info modal"
145
- },
146
- "select": {
147
- "row": "active"
148
- }
149
- } );
150
-
151
- // Have the collection use a bootstrap compatible dropdown
152
- $.extend( true, DataTable.TableTools.DEFAULTS.oTags, {
153
- "collection": {
154
- "container": "ul",
155
- "button": "li",
156
- "liner": "a"
157
- }
158
- } );
159
- }
160
-
161
-
162
- })(window, document, jQuery, jQuery.fn.dataTable);
@@ -1,178 +0,0 @@
1
-
2
- div.dataTables_length label {
3
- float: left;
4
- text-align: left;
5
- }
6
-
7
- div.dataTables_length select {
8
- width: 75px;
9
- }
10
-
11
- div.dataTables_filter label {
12
- float: right;
13
- }
14
-
15
- div.dataTables_info {
16
- padding-top: 8px;
17
- }
18
-
19
- div.dataTables_paginate {
20
- float: right;
21
- margin: 0;
22
- }
23
-
24
- table.table {
25
- clear: both;
26
- margin-bottom: 6px !important;
27
- max-width: none !important;
28
- }
29
-
30
- table.table thead .sorting,
31
- table.table thead .sorting_asc,
32
- table.table thead .sorting_desc,
33
- table.table thead .sorting_asc_disabled,
34
- table.table thead .sorting_desc_disabled {
35
- cursor: pointer;
36
- *cursor: hand;
37
- }
38
-
39
- table.table thead .sorting { background-image: image-url("datatables/sort_both.png") no-repeat center right; }
40
- table.table thead .sorting_asc { background-image: image-url("datatables/sort_asc.png") no-repeat center right; }
41
- table.table thead .sorting_desc { background-image: image-url("datatables/sort_desc.png") no-repeat center right; }
42
-
43
- table.table thead .sorting_asc_disabled { background-image: image-url("datatables/sort_asc_disabled.png") no-repeat center right; }
44
- table.table thead .sorting_desc_disabled { background-image: image-url("datatables/sort_desc_disabled.png") no-repeat center right; }
45
-
46
- table.dataTable th:active {
47
- outline: none;
48
- }
49
-
50
- /* Scrolling */
51
- div.dataTables_scrollHead table {
52
- margin-bottom: 0 !important;
53
- border-bottom-left-radius: 0;
54
- border-bottom-right-radius: 0;
55
- }
56
-
57
- div.dataTables_scrollHead table thead tr:last-child th:first-child,
58
- div.dataTables_scrollHead table thead tr:last-child td:first-child {
59
- border-bottom-left-radius: 0 !important;
60
- border-bottom-right-radius: 0 !important;
61
- }
62
-
63
- div.dataTables_scrollBody table {
64
- border-top: none;
65
- margin-bottom: 0 !important;
66
- }
67
-
68
- div.dataTables_scrollBody tbody tr:first-child th,
69
- div.dataTables_scrollBody tbody tr:first-child td {
70
- border-top: none;
71
- }
72
-
73
- div.dataTables_scrollFoot table {
74
- border-top: none;
75
- }
76
-
77
-
78
-
79
-
80
- /*
81
- * TableTools styles
82
- */
83
- .table tbody tr.active td,
84
- .table tbody tr.active th {
85
- background-color: #08C;
86
- color: white;
87
- }
88
-
89
- .table tbody tr.active:hover td,
90
- .table tbody tr.active:hover th {
91
- background-color: #0075b0 !important;
92
- }
93
-
94
- .table-striped tbody tr.active:nth-child(odd) td,
95
- .table-striped tbody tr.active:nth-child(odd) th {
96
- background-color: #017ebc;
97
- }
98
-
99
- table.DTTT_selectable tbody tr {
100
- cursor: pointer;
101
- *cursor: hand;
102
- }
103
-
104
- div.DTTT .btn {
105
- color: #333 !important;
106
- font-size: 12px;
107
- }
108
-
109
- div.DTTT .btn:hover {
110
- text-decoration: none !important;
111
- }
112
-
113
-
114
- ul.DTTT_dropdown.dropdown-menu a {
115
- color: #333 !important; /* needed only when demo_page.css is included */
116
- }
117
-
118
- ul.DTTT_dropdown.dropdown-menu li:hover a {
119
- background-color: #0088cc;
120
- color: white !important;
121
- }
122
-
123
- /* TableTools information display */
124
- div.DTTT_print_info.modal {
125
- height: 150px;
126
- margin-top: -75px;
127
- text-align: center;
128
- }
129
-
130
- div.DTTT_print_info h6 {
131
- font-weight: normal;
132
- font-size: 28px;
133
- line-height: 28px;
134
- margin: 1em;
135
- }
136
-
137
- div.DTTT_print_info p {
138
- font-size: 14px;
139
- line-height: 20px;
140
- }
141
-
142
-
143
-
144
- /*
145
- * FixedColumns styles
146
- */
147
- div.DTFC_LeftHeadWrapper table,
148
- div.DTFC_LeftFootWrapper table,
149
- table.DTFC_Cloned tr.even {
150
- background-color: white;
151
- }
152
-
153
- div.DTFC_LeftHeadWrapper table {
154
- margin-bottom: 0 !important;
155
- border-top-right-radius: 0 !important;
156
- border-bottom-left-radius: 0 !important;
157
- border-bottom-right-radius: 0 !important;
158
- }
159
-
160
- div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
161
- div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
162
- border-bottom-left-radius: 0 !important;
163
- border-bottom-right-radius: 0 !important;
164
- }
165
-
166
- div.DTFC_LeftBodyWrapper table {
167
- border-top: none;
168
- margin-bottom: 0 !important;
169
- }
170
-
171
- div.DTFC_LeftBodyWrapper tbody tr:first-child th,
172
- div.DTFC_LeftBodyWrapper tbody tr:first-child td {
173
- border-top: none;
174
- }
175
-
176
- div.DTFC_LeftFootWrapper table {
177
- border-top: none;
178
- }