bootstrap-slider-rails 9.4.0 → 9.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
  SHA1:
3
- metadata.gz: cb9856dd017d7ab481ca0bc33d020dfb0cdfebb5
4
- data.tar.gz: 7e5b725d15e3abbccbebfa35e5f54311e6657f17
3
+ metadata.gz: b924018b8f533164a6579e4a7acce8c5fe3788a3
4
+ data.tar.gz: abb58ee624b2b432893bc6edabbeda2593e8b75b
5
5
  SHA512:
6
- metadata.gz: 8a6d98e7ebf34b05664476be6bf7732c04e5429e9fe5166c1643359db2ad44a1eba2c59b352e6add0d5b0a4ad434d380aae0bdee273a7e4d10a0a12e1481a6a3
7
- data.tar.gz: 16b2ce102263247682400cf7b359218dafee60ea56a320b9cf01fcf7d34707beee0236cb1fcc8f88ca71fef056cea01bd4ee8a42af5a08a9decef2ac1b0f887a
6
+ metadata.gz: acac61c7cbc5f1fb33ed8e22f138814034beeb5905439faa359278721d128bdc3b6d7ca4da9d37fefbae1d8b851c8da058c4dd79e572ea5b75e29a652fab67bf
7
+ data.tar.gz: 2efa91c83ef3a27648a891cf6ea13d78c118e7fbe8b7a17b8f6caec9edefb33f0d4487cfcce1781ce73d5ae24f9b66712d278748f13470c283865e18ad87ce8f
@@ -1,5 +1,5 @@
1
1
  module BootstrapSlider
2
2
  module Rails
3
- VERSION = '9.4.0'
3
+ VERSION = '9.5.0'
4
4
  end
5
5
  end
@@ -1,9 +1,9 @@
1
1
  /*! =======================================================
2
- VERSION 9.4.0
2
+ VERSION 9.5.0
3
3
  ========================================================= */
4
4
  "use strict";
5
5
 
6
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
6
+ function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
7
7
 
8
8
  /*! =========================================================
9
9
  * bootstrap-slider.js
@@ -18,17 +18,30 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
18
18
  *
19
19
  * =========================================================
20
20
  *
21
- * Licensed under the Apache License, Version 2.0 (the "License");
22
- * you may not use this file except in compliance with the License.
23
- * You may obtain a copy of the License at
21
+ * bootstrap-slider is released under the MIT License
22
+ * Copyright (c) 2016 Kyle Kemp, Rohit Kalkur, and contributors
23
+ *
24
+ * Permission is hereby granted, free of charge, to any person
25
+ * obtaining a copy of this software and associated documentation
26
+ * files (the "Software"), to deal in the Software without
27
+ * restriction, including without limitation the rights to use,
28
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
29
+ * copies of the Software, and to permit persons to whom the
30
+ * Software is furnished to do so, subject to the following
31
+ * conditions:
32
+ *
33
+ * The above copyright notice and this permission notice shall be
34
+ * included in all copies or substantial portions of the Software.
35
+ *
36
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43
+ * OTHER DEALINGS IN THE SOFTWARE.
24
44
  *
25
- * http://www.apache.org/licenses/LICENSE-2.0
26
- *
27
- * Unless required by applicable law or agreed to in writing, software
28
- * distributed under the License is distributed on an "AS IS" BASIS,
29
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30
- * See the License for the specific language governing permissions and
31
- * limitations under the License.
32
45
  * ========================================================= */
33
46
 
34
47
  /**
@@ -310,7 +323,7 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
310
323
  /*************************************************
311
324
  CONSTRUCTOR
312
325
  **************************************************/
313
- Slider = function Slider(element, options) {
326
+ Slider = function (element, options) {
314
327
  createNewSlider.call(this, element, options);
315
328
  return this;
316
329
  };
@@ -1110,9 +1123,15 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
1110
1123
 
1111
1124
  this.handle1.style[this.stylePos] = positionPercentages[0] + '%';
1112
1125
  this.handle1.setAttribute('aria-valuenow', this._state.value[0]);
1126
+ if (isNaN(this.options.formatter(this._state.value[0]))) {
1127
+ this.handle1.setAttribute('aria-valuetext', this.options.formatter(this._state.value[0]));
1128
+ }
1113
1129
 
1114
1130
  this.handle2.style[this.stylePos] = positionPercentages[1] + '%';
1115
1131
  this.handle2.setAttribute('aria-valuenow', this._state.value[1]);
1132
+ if (isNaN(this.options.formatter(this._state.value[1]))) {
1133
+ this.handle2.setAttribute('aria-valuetext', this.options.formatter(this._state.value[1]));
1134
+ }
1116
1135
 
1117
1136
  /* Position highlight range elements */
1118
1137
  if (this.rangeHighlightElements.length > 0 && Array.isArray(this.options.rangeHighlights) && this.options.rangeHighlights.length > 0) {
@@ -1746,20 +1765,20 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
1746
1765
  if (this.options.orientation === 'vertical') {
1747
1766
  var tooltipPos = this.options.tooltip_position || 'right';
1748
1767
  var oppositeSide = tooltipPos === 'left' ? 'right' : 'left';
1749
- tooltips.forEach(function (tooltip) {
1768
+ tooltips.forEach((function (tooltip) {
1750
1769
  this._addClass(tooltip, tooltipPos);
1751
1770
  tooltip.style[oppositeSide] = '100%';
1752
- }.bind(this));
1771
+ }).bind(this));
1753
1772
  } else if (this.options.tooltip_position === 'bottom') {
1754
- tooltips.forEach(function (tooltip) {
1773
+ tooltips.forEach((function (tooltip) {
1755
1774
  this._addClass(tooltip, 'bottom');
1756
1775
  tooltip.style.top = 22 + 'px';
1757
- }.bind(this));
1776
+ }).bind(this));
1758
1777
  } else {
1759
- tooltips.forEach(function (tooltip) {
1778
+ tooltips.forEach((function (tooltip) {
1760
1779
  this._addClass(tooltip, 'top');
1761
1780
  tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px';
1762
- }.bind(this));
1781
+ }).bind(this));
1763
1782
  }
1764
1783
  }
1765
1784
  };
@@ -1769,7 +1788,7 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
1769
1788
  *********************************/
1770
1789
  if ($) {
1771
1790
  (function () {
1772
- var autoRegisterNamespace = void 0;
1791
+ var autoRegisterNamespace = undefined;
1773
1792
 
1774
1793
  if (!$.fn.slider) {
1775
1794
  $.bridget(NAMESPACE_MAIN, Slider);
@@ -1,5 +1,5 @@
1
1
  /*! =======================================================
2
- VERSION 9.4.0
2
+ VERSION 9.5.0
3
3
  ========================================================= */
4
4
  /*! =========================================================
5
5
  * bootstrap-slider.js
@@ -13,18 +13,31 @@
13
13
  * - Github: rovolution
14
14
  *
15
15
  * =========================================================
16
+ *
17
+ * bootstrap-slider is released under the MIT License
18
+ * Copyright (c) 2016 Kyle Kemp, Rohit Kalkur, and contributors
19
+ *
20
+ * Permission is hereby granted, free of charge, to any person
21
+ * obtaining a copy of this software and associated documentation
22
+ * files (the "Software"), to deal in the Software without
23
+ * restriction, including without limitation the rights to use,
24
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ * copies of the Software, and to permit persons to whom the
26
+ * Software is furnished to do so, subject to the following
27
+ * conditions:
28
+ *
29
+ * The above copyright notice and this permission notice shall be
30
+ * included in all copies or substantial portions of the Software.
31
+ *
32
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39
+ * OTHER DEALINGS IN THE SOFTWARE.
16
40
  *
17
- * Licensed under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License.
19
- * You may obtain a copy of the License at
20
- *
21
- * http://www.apache.org/licenses/LICENSE-2.0
22
- *
23
- * Unless required by applicable law or agreed to in writing, software
24
- * distributed under the License is distributed on an "AS IS" BASIS,
25
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
- * See the License for the specific language governing permissions and
27
- * limitations under the License.
28
41
  * ========================================================= */
29
42
  .slider {
30
43
  display: inline-block;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-slider-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.0
4
+ version: 9.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedr Browne