nouislider-rails 8.2.1 → 15.8.1
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.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/README.md +54 -3
- data/lib/nouislider/rails/version.rb +1 -1
- data/nouislider-rails.gemspec +9 -2
- data/vendor/assets/javascripts/nouislider.js +2343 -1863
- data/vendor/assets/stylesheets/nouislider/nouislider.css +174 -163
- data/vendor/assets/stylesheets/nouislider/nouislider.pips.css +95 -97
- data/vendor/assets/stylesheets/nouislider/nouislider.tooltips.css +35 -0
- data/vendor/assets/stylesheets/nouislider.css +310 -3
- metadata +10 -22
- data/Gemfile.lock +0 -70
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b56147ee65c9ecb5633ed1e7f5683f985e2353d9272c81c62c3ccd4a274e931d
|
|
4
|
+
data.tar.gz: 40ff112cb71438ec72db513f10f0bf88795b55a408dac57a737cae3668a7b744
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 837cc7280693d488214c3a73787edf80e0d5b679607b418e6796a99a8695780d891aab0fdf870d7238ad086fc0f01728506a2155ab306832d021123fccf5aa96
|
|
7
|
+
data.tar.gz: 8118a33ab664d05c8b56fedc37b0446479a4ccf31cfb17e81e432f6f10d5a674b0c4e4306d308c914e93644dd7db894349232c2d1b70a60f1cd21be05f152b46
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Nouislider::Rails
|
|
2
2
|
|
|
3
|
-
Currently tracking 8.
|
|
3
|
+
Currently tracking 15.8.1 of noUiSlider: https://refreshless.com/nouislider/. All credit and thanks to @leongersen for the awesome library.
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
@@ -9,15 +9,66 @@ Add this line to your application's Gemfile:
|
|
|
9
9
|
|
|
10
10
|
gem 'nouislider-rails'
|
|
11
11
|
|
|
12
|
+
### Sprockets
|
|
13
|
+
|
|
12
14
|
Add the following directive to your application.js:
|
|
13
15
|
|
|
14
16
|
//= require nouislider
|
|
15
17
|
|
|
16
|
-
Add the following directive to your application.
|
|
18
|
+
Add the following directive to your application.css:
|
|
17
19
|
|
|
18
20
|
*= require nouislider
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
That pulls in the core styles plus the pips and tooltips styles. To cherry-pick
|
|
23
|
+
instead, require only the parts you need:
|
|
24
|
+
|
|
25
|
+
*= require nouislider/nouislider
|
|
26
|
+
*= require nouislider/nouislider.pips
|
|
27
|
+
*= require nouislider/nouislider.tooltips
|
|
28
|
+
|
|
29
|
+
### Propshaft
|
|
30
|
+
|
|
31
|
+
Propshaft has no `require` directives, so reference the assets from your layout
|
|
32
|
+
instead:
|
|
33
|
+
|
|
34
|
+
```erb
|
|
35
|
+
<%= stylesheet_link_tag "nouislider" %>
|
|
36
|
+
<%= javascript_include_tag "nouislider" %>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The individual stylesheets work the same way, e.g.
|
|
40
|
+
`stylesheet_link_tag "nouislider/nouislider.pips"`.
|
|
41
|
+
|
|
42
|
+
### Creating a slider
|
|
43
|
+
|
|
44
|
+
Once the assets are loaded:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
var slider = document.getElementById('slider');
|
|
48
|
+
|
|
49
|
+
noUiSlider.create(slider, {
|
|
50
|
+
start: [20, 80],
|
|
51
|
+
connect: true,
|
|
52
|
+
range: {
|
|
53
|
+
min: 0,
|
|
54
|
+
max: 100
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
https://refreshless.com/nouislider/ has the full documentation, including
|
|
60
|
+
examples and every available option.
|
|
61
|
+
|
|
62
|
+
## Upgrading from 9.x
|
|
63
|
+
|
|
64
|
+
This release jumps from noUiSlider 9.0.0 to 15.8.1, spanning several upstream
|
|
65
|
+
major versions. If you have written CSS against noUiSlider's markup, note that
|
|
66
|
+
the connect elements moved: they are now rendered inside a `.noUi-connects`
|
|
67
|
+
wrapper, one `.noUi-connect` per connecting segment, and `.noUi-origin` no
|
|
68
|
+
longer carries the connect styling.
|
|
69
|
+
|
|
70
|
+
See the upstream release notes for the full list of changes:
|
|
71
|
+
https://github.com/leongersen/noUiSlider/releases
|
|
21
72
|
|
|
22
73
|
## Contributing
|
|
23
74
|
|
data/nouislider-rails.gemspec
CHANGED
|
@@ -9,14 +9,21 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Charles Lee"]
|
|
10
10
|
spec.email = ["chug2k@gmail.com"]
|
|
11
11
|
spec.summary = "nouislider.js for the Rails asset pipeline."
|
|
12
|
-
spec.description = "Currently tracking #{Nouislider::Rails::VERSION} of noUiSlider: https://github.com/leongersen/noUiSlider
|
|
12
|
+
spec.description = "Currently tracking #{Nouislider::Rails::VERSION} of noUiSlider: https://github.com/leongersen/noUiSlider. All credit and thanks to @leongersen for the awesome library."
|
|
13
13
|
spec.homepage = "https://github.com/chug2k/nouislider-rails"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
|
+
spec.required_ruby_version = ">= 2.5"
|
|
17
|
+
|
|
18
|
+
spec.metadata = {
|
|
19
|
+
"source_code_uri" => spec.homepage,
|
|
20
|
+
"changelog_uri" => "#{spec.homepage}/releases",
|
|
21
|
+
"bug_tracker_uri" => "#{spec.homepage}/issues"
|
|
22
|
+
}
|
|
23
|
+
|
|
16
24
|
spec.files = `git ls-files -z`.split("\x0")
|
|
17
25
|
spec.require_paths = ["lib"]
|
|
18
26
|
|
|
19
27
|
spec.add_dependency "railties", ">= 3.1"
|
|
20
|
-
spec.add_development_dependency "bundler", "~> 1.5"
|
|
21
28
|
spec.add_development_dependency "rake"
|
|
22
29
|
end
|