jquery-tablesorter 1.17.2 → 1.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/jquery-tablesorter/version.rb +1 -1
  4. data/vendor/assets/javascripts/jquery-tablesorter/addons/pager/jquery.tablesorter.pager.js +76 -71
  5. data/vendor/assets/javascripts/jquery-tablesorter/extras/jquery.dragtable.mod.js +1 -1
  6. data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js +2647 -2576
  7. data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.js +174 -119
  8. data/vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.widgets.js +2487 -2471
  9. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-extract.js +15 -15
  10. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-iso8601.js +1 -1
  11. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-month.js +4 -4
  12. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-range.js +1 -1
  13. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-two-digit-year.js +12 -12
  14. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date-weekday.js +4 -4
  15. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-date.js +1 -1
  16. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-duration.js +1 -1
  17. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-feet-inch-fraction.js +6 -6
  18. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-file-type.js +22 -22
  19. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-globalize.js +1 -1
  20. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-ignore-articles.js +15 -15
  21. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js +3 -3
  22. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-input-select.js +10 -3
  23. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-metric.js +2 -2
  24. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-named-numbers.js +3 -3
  25. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-network.js +1 -1
  26. data/vendor/assets/javascripts/jquery-tablesorter/parsers/parser-roman.js +4 -4
  27. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-alignChar.js +122 -121
  28. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-build-table.js +13 -13
  29. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-chart.js +2 -2
  30. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-columnSelector.js +324 -324
  31. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-columns.js +60 -60
  32. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-editable.js +219 -219
  33. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter-formatter-html5.js +360 -361
  34. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter-formatter-jui.js +666 -666
  35. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter-formatter-select2.js +124 -124
  36. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter-type-insideRange.js +1 -1
  37. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-filter.js +1448 -1433
  38. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-formatter.js +1 -1
  39. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-grouping.js +213 -213
  40. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-headerTitles.js +3 -3
  41. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-math.js +271 -216
  42. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-output.js +339 -320
  43. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-pager.js +1057 -1045
  44. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-print.js +109 -109
  45. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-reflow.js +114 -115
  46. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-resizable.js +360 -359
  47. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-saveSort.js +59 -59
  48. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-scroller.js +818 -806
  49. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-sort2Hash.js +128 -0
  50. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-sortTbodies.js +195 -195
  51. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-staticRow.js +90 -90
  52. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-stickyHeaders.js +257 -257
  53. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-storage.js +76 -76
  54. data/vendor/assets/javascripts/jquery-tablesorter/widgets/widget-uitheme.js +170 -170
  55. metadata +3 -3
  56. data/vendor/assets/javascripts/jquery-tablesorter/extras/jquery.quicksearch.js +0 -195
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-tablesorter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.2
4
+ version: 1.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-01 00:00:00.000000000 Z
12
+ date: 2015-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -81,7 +81,6 @@ files:
81
81
  - vendor/assets/javascripts/jquery-tablesorter/addons/pager/jquery.tablesorter.pager.js
82
82
  - vendor/assets/javascripts/jquery-tablesorter/extras/jquery.dragtable.mod.js
83
83
  - vendor/assets/javascripts/jquery-tablesorter/extras/jquery.metadata.js
84
- - vendor/assets/javascripts/jquery-tablesorter/extras/jquery.quicksearch.js
85
84
  - vendor/assets/javascripts/jquery-tablesorter/extras/semver-mod.js
86
85
  - vendor/assets/javascripts/jquery-tablesorter/extras/semver.js
87
86
  - vendor/assets/javascripts/jquery-tablesorter/jquery.tablesorter.combined.js
@@ -129,6 +128,7 @@ files:
129
128
  - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-resizable.js
130
129
  - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-saveSort.js
131
130
  - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-scroller.js
131
+ - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-sort2Hash.js
132
132
  - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-sortTbodies.js
133
133
  - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-staticRow.js
134
134
  - vendor/assets/javascripts/jquery-tablesorter/widgets/widget-stickyHeaders.js
@@ -1,195 +0,0 @@
1
- /* jQuery Quicksearch plugin
2
- by riklomas https://github.com/riklomas/quicksearch
3
- Modified to include childRows (for tablesorter)
4
-
5
- See http://stackoverflow.com/q/20342203/145346 for
6
- more details
7
- */
8
- (function($, window, document, undefined) {
9
- $.fn.quicksearch = function (target, opt) {
10
-
11
- var timeout, cache, rowcache, jq_results, val = '', e = this, options = $.extend({
12
- delay: 100,
13
- selector: null,
14
- stripeRows: null,
15
- loader: null,
16
- noResults: '',
17
- childRow: 'tablesorter-childRow', // include child row with search results
18
- matchedResultsCount: 0,
19
- bind: 'keyup',
20
- onBefore: function () {
21
- return;
22
- },
23
- onAfter: function () {
24
- return;
25
- },
26
- show: function () {
27
- this.style.display = "";
28
- },
29
- hide: function () {
30
- this.style.display = "none";
31
- },
32
- prepareQuery: function (val) {
33
- return val.toLowerCase().split(' ');
34
- },
35
- testQuery: function (query, txt) {
36
- for (var i = 0; i < query.length; i += 1) {
37
- if (txt.indexOf(query[i]) === -1) {
38
- return false;
39
- }
40
- }
41
- return true;
42
- }
43
- }, opt);
44
-
45
- this.go = function () {
46
-
47
- var len, i = 0,
48
- numMatchedRows = 0,
49
- noresults = true,
50
- query = options.prepareQuery(val),
51
- val_empty = (val.replace(' ', '').length === 0);
52
-
53
- for (i = 0, len = rowcache.length; i < len; i++) {
54
- if (val_empty || options.testQuery(query, cache[i], rowcache[i]) ||
55
- ($(rowcache[i]).hasClass(options.childRow) && $(rowcache[i > 1 ? i - 1 : 0]).is(':visible'))) {
56
- options.show.apply(rowcache[i]);
57
- noresults = false;
58
- numMatchedRows++;
59
- } else {
60
- options.hide.apply(rowcache[i]);
61
- }
62
- }
63
-
64
- if (noresults) {
65
- this.results(false);
66
- } else {
67
- this.results(true);
68
- this.stripe();
69
- }
70
-
71
- this.matchedResultsCount = numMatchedRows;
72
- this.loader(false);
73
- options.onAfter();
74
-
75
- return this;
76
- };
77
-
78
- /*
79
- * External API so that users can perform search programatically.
80
- * */
81
- this.search = function (submittedVal) {
82
- val = submittedVal;
83
- e.trigger();
84
- };
85
-
86
- /*
87
- * External API to get the number of matched results as seen in
88
- * https://github.com/ruiz107/quicksearch/commit/f78dc440b42d95ce9caed1d087174dd4359982d6
89
- * */
90
- this.currentMatchedResults = function() {
91
- return this.matchedResultsCount;
92
- };
93
-
94
- this.stripe = function () {
95
-
96
- if (typeof options.stripeRows === "object" && options.stripeRows !== null)
97
- {
98
- var joined = options.stripeRows.join(' ');
99
- var stripeRows_length = options.stripeRows.length;
100
-
101
- jq_results.not(':hidden').each(function (i) {
102
- $(this).removeClass(joined).addClass(options.stripeRows[i % stripeRows_length]);
103
- });
104
- }
105
-
106
- return this;
107
- };
108
-
109
- this.strip_html = function (input) {
110
- var output = input.replace(new RegExp('<[^<]+\>', 'g'), "");
111
- output = $.trim(output.toLowerCase());
112
- return output;
113
- };
114
-
115
- this.results = function (bool) {
116
- if (typeof options.noResults === "string" && options.noResults !== "") {
117
- if (bool) {
118
- $(options.noResults).hide();
119
- } else {
120
- $(options.noResults).show();
121
- }
122
- }
123
- return this;
124
- };
125
-
126
- this.loader = function (bool) {
127
- if (typeof options.loader === "string" && options.loader !== "") {
128
- if (bool) {
129
- $(options.loader).show();
130
- } else {
131
- $(options.loader).hide();
132
- }
133
- }
134
- return this;
135
- };
136
-
137
- this.cache = function () {
138
-
139
- jq_results = $(target);
140
-
141
- if (typeof options.noResults === "string" && options.noResults !== "") {
142
- jq_results = jq_results.not(options.noResults);
143
- }
144
-
145
- var t = (typeof options.selector === "string") ?
146
- jq_results.find(options.selector) : $(target).not(options.noResults);
147
- cache = t.map(function () {
148
- return e.strip_html(this.innerHTML);
149
- });
150
-
151
- rowcache = jq_results.map(function () {
152
- return this;
153
- });
154
-
155
- /*
156
- * Modified fix for sync-ing "val".
157
- * Original fix https://github.com/michaellwest/quicksearch/commit/4ace4008d079298a01f97f885ba8fa956a9703d1
158
- * */
159
- val = val || this.val() || "";
160
-
161
- return this.go();
162
- };
163
-
164
- this.trigger = function () {
165
- this.loader(true);
166
- options.onBefore();
167
-
168
- window.clearTimeout(timeout);
169
- timeout = window.setTimeout(function () {
170
- e.go();
171
- }, options.delay);
172
-
173
- return this;
174
- };
175
-
176
- this.cache();
177
- this.results(true);
178
- this.stripe();
179
- this.loader(false);
180
-
181
- return this.each(function () {
182
-
183
- /*
184
- * Changed from .bind to .on.
185
- * */
186
- $(this).on(options.bind, function () {
187
-
188
- val = $(this).val();
189
- e.trigger();
190
- });
191
- });
192
-
193
- };
194
-
195
- }(jQuery, this, document));