blacklight_range_limit 7.4.0 → 7.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aafe9f1b4d756244ccd5bb1959e5f2199e50b7fbd0d7f7d175ee1c4ab9289dd2
4
- data.tar.gz: 074d426035ad95446508c855bbfde9816c2a827a1cfa997100cb1de33df82413
3
+ metadata.gz: 7193a46aebab2a5537bd404162533d288a54f1817122a2207aaad88265245136
4
+ data.tar.gz: ca8afcd5b456dbb7a769a3169b405f63f37cd0003a41d905749072726a74110d
5
5
  SHA512:
6
- metadata.gz: b86814bfd16aa175d118d81f2c4b81cffb9d2891169939c34b852bca7b5e364f9251c18676e2f6665a2e22d38c94bd07cc8eeda937d14b5ce4f187f286764d68
7
- data.tar.gz: fae0f6d0069a9ed48eda9f2a13f69ade7188c4b30c7c7eb2b83e003841d70e4d6a03df055cee740390b20633ff60c626fcaa65c8e084a592595e4a013b561cca
6
+ metadata.gz: 70f3f8ac356959bd04dadd3f998e5a5551dd3f2cbb4efb0f5e1ebc35783fb0a579739a4ffd4184188ebf2b195906443da54d828fc393ff8f01bbc16382aba5f8
7
+ data.tar.gz: 9794d80970199368df6f9f6ce84544d6d88a392b8de7e59195e6402857d94462a82fe38cd46c88ee7a9b8bf0ae3abc208de4c6c26f0a8c033e6ebe1cfbbc9efb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.4.0
1
+ 7.5.0
@@ -183,7 +183,7 @@ Blacklight.onLoad(function() {
183
183
 
184
184
  x_ticks.push(from);
185
185
 
186
- pointer_lookup.push({'from': from, 'to': to, 'count': count, 'label': $(this).find(".facet_select").text() });
186
+ pointer_lookup.push({'from': from, 'to': to, 'count': count, 'label': $(this).find(".facet_select").html() });
187
187
  });
188
188
  var max_plus_one = BlacklightRangeLimit.parseNum($(container).find("ul li:last-child span.to").text())+1;
189
189
  x_ticks.push( max_plus_one );
@@ -200,7 +200,7 @@ Blacklight.onLoad(function() {
200
200
  //xaxis: { ticks: x_ticks },
201
201
  xaxis: { tickDecimals: 0 }, // force integer ticks
202
202
  series: { lines: { fill: true, steps: true }},
203
- grid: {clickable: true, hoverable: true, autoHighlight: false, margin: { left: -14, right: -12 }},
203
+ grid: {clickable: true, hoverable: true, autoHighlight: false, margin: { left: 0, right: 0 }},
204
204
  selection: {mode: "x"}
205
205
  }));
206
206
  }
@@ -210,7 +210,7 @@ Blacklight.onLoad(function() {
210
210
 
211
211
  find_segment_for = function_for_find_segment(pointer_lookup);
212
212
  var last_segment = null;
213
- $(container).tooltip({'placement': 'bottom', 'trigger': 'manual', 'delay': { show: 0, hide: 100}});
213
+ $(container).tooltip({'html': true, 'placement': 'bottom', 'trigger': 'manual', 'delay': { show: 0, hide: 100}});
214
214
 
215
215
  $(container).bind("plothover", function (event, pos, item) {
216
216
  segment = find_segment_for(pos.x);
@@ -21,8 +21,6 @@ $("body").on("plotDrawn.blacklight.rangeLimit", function(event) {
21
21
  if (plot && slider_el) {
22
22
  slider_el.width(plot.width());
23
23
  slider_el.css("display", "block")
24
- slider_el.css('margin-right', 'auto');
25
- slider_el.css('margin-left', 'auto');
26
24
  }
27
25
  });
28
26
 
@@ -65,7 +63,7 @@ function isInt(n) {
65
63
  var max = boundaries[1];
66
64
 
67
65
  if (isInt(min) && isInt(max)) {
68
- $(thisContext).contents().wrapAll('<div style="display:none" />');
66
+ $(thisContext).contents().wrapAll('<div class="sr-only" />');
69
67
 
70
68
  var range_element = $(thisContext);
71
69
  var form = $(range_element).closest(".range_limit").find("form.range_limit");
@@ -85,14 +83,21 @@ function isInt(n) {
85
83
 
86
84
  // try to make slider width/orientation match chart's
87
85
  var container = range_element.closest(".range_limit");
88
- var plot = container.find(".chart_js").data("plot");
86
+ var plot_el = container.find(".chart_js");
87
+ var plot = plot_el.data("plot");
89
88
  var slider_el = container.find(".slider");
90
89
 
90
+ if (plot_el) {
91
+ plot_el.attr('aria-hidden', 'true');
92
+ }
93
+
94
+ if (slider_el) {
95
+ slider_el.attr('aria-hidden', 'true');
96
+ }
97
+
91
98
  if (plot && slider_el) {
92
99
  slider_el.width(plot.width());
93
100
  slider_el.css("display", "block")
94
- slider_el.css('margin-right', 'auto');
95
- slider_el.css('margin-left', 'auto');
96
101
  } else if (slider_el) {
97
102
  slider_el.css("width", "100%");
98
103
  }
@@ -27,7 +27,8 @@ form.range_limit {
27
27
  }
28
28
 
29
29
  .slider_js .slider-horizontal {
30
- width: 100% !important;
30
+ margin-left: 5px;
31
+ margin-right: 5px;
31
32
  }
32
33
 
33
34
  .chart_js .flot-x-axis {
@@ -43,14 +44,6 @@ form.range_limit {
43
44
  display: none;
44
45
  }
45
46
 
46
- form .range_limit_label {
47
- display: none;
48
- }
49
-
50
- .modal-body .range_limit_label {
51
- display: flex;
52
- }
53
-
54
47
  .modal-body .range_limit {
55
48
  justify-content: center;
56
49
  }
@@ -62,4 +55,6 @@ form .range_limit_label {
62
55
 
63
56
  .range_limit .chart_js {
64
57
  min-height: 80px;
58
+ margin-left: -12px;
59
+ margin-right: -14px;
65
60
  }
@@ -58,7 +58,6 @@
58
58
 
59
59
  <%= form_tag search_action_path, :method => :get, class: [BlacklightRangeLimit.classes[:form], "range_#{field_name} d-flex justify-content-center"].join(' ') do %>
60
60
  <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:page)) %>
61
- <%= content_tag :label, t('blacklight.range_limit.date_range_label'), class: 'range_limit_label sr-only' %>
62
61
  <div class="input-group input-group-sm mb-3 flex-nowrap range-limit-input-group">
63
62
  <%= render_range_input(field_name, :begin, input_label_range_begin, maxlength) %>
64
63
  <%= render_range_input(field_name, :end, input_label_range_end, maxlength) %>
@@ -8,7 +8,6 @@ ar:
8
8
  missing: 'غير معروف'
9
9
  view_distribution: 'عرض التوزيع'
10
10
  view_larger: 'عرض بحجم أكبر »'
11
- date_range_label: 'الفترة التاريخية:'
12
11
  results_range_html: 'تمتد النتائج الحالية من <span class="min">%{min}</span> إلى<span class="max">%{max}</span>'
13
12
  single_html: '<span class="single">%{begin}</span>'
14
13
  range_html: '<span class="from">%{begin}</span> إلى<span class="to">%{end}</span>'
@@ -8,7 +8,6 @@ en:
8
8
  missing: 'Unknown'
9
9
  view_distribution: 'View distribution'
10
10
  view_larger: 'View larger »'
11
- date_range_label: 'Date range:'
12
11
  results_range_html: 'Current results range from <span class="min">%{min}</span> to <span class="max">%{max}</span>'
13
12
  single_html: '<span class="single">%{begin}</span>'
14
13
  range_html: '<span class="from">%{begin}</span> to <span class="to">%{end}</span>'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_range_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.0
4
+ version: 7.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-11 00:00:00.000000000 Z
12
+ date: 2020-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight