Skip to content

Commit e9c097e

Browse files
author
Valentin Hervieu
committed
2.3.0 release
1 parent b646617 commit e9c097e

9 files changed

+35
-23
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.3.0 (2015-12-22)
2+
## Features
3+
- Add keyboard support (activated by default with `keyboardSupport` set to true) (#191).
4+
- Add a `draggableRangeOnly` options (#203).
5+
16
# 2.2.0 (2015-12-17)
27
## Features
38
- Add a `getSelectionBarColor` option to dynamically change the selection bar color (#197).

Gruntfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ module.exports = function(grunt) {
9696
},
9797
js: {
9898
src: ['dist/rzslider.js'],
99-
dest: 'dist/rzslider.js',
99+
dest: 'dist/rzslider.js'
100100
},
101101
css: {
102102
src: ['dist/rzslider.css'],
103-
dest: 'dist/rzslider.css',
104-
},
103+
dest: 'dist/rzslider.css'
104+
}
105105
},
106106

107107
ngAnnotate: {
108108
options: {
109-
singleQuotes: true,
109+
singleQuotes: true
110110
},
111111
rzslider: {
112112
files: [{
@@ -159,6 +159,6 @@ module.exports = function(grunt) {
159159
grunt.registerTask('default', ['css', 'js']);
160160
grunt.registerTask('test', ['karma']);
161161

162-
grunt.registerTask('css', ['recess']);
163-
grunt.registerTask('js', ['ngtemplates', 'replace','concat', 'ngAnnotate', 'uglify']);
162+
grunt.registerTask('css', ['recess','concat:css']);
163+
grunt.registerTask('js', ['ngtemplates', 'replace','concat:js', 'ngAnnotate', 'uglify']);
164164
};

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,22 @@ The default options are:
154154
ceil: null, //defaults to rz-slider-model
155155
step: 1,
156156
precision: 0,
157-
translate: null,
158157
id: null,
158+
translate: null,
159159
stepsArray: null,
160160
draggableRange: false,
161+
draggableRangeOnly: false,
161162
showSelectionBar: false,
162163
hideLimitLabels: false,
163164
readOnly: false,
164165
disabled: false,
165166
interval: 350,
166167
showTicks: false,
167168
showTicksValues: false,
169+
ticksValuesTooltip: null,
168170
vertical: false,
171+
selectionBarColor: null,
172+
keyboardSupport: true,
169173
scale: 1,
170174
onStart: null,
171175
onChange: null,
@@ -239,6 +243,14 @@ $scope.slider = {
239243
**vertical** - _Boolean (defaults to false)_: Set to true to display the slider vertically. The slider will take the full height of its parent.
240244
_Changing this value at runtime is not currently supported._
241245

246+
**keyboardSupport** - _Boolean (defaults to true)_: Handles are focusable (on click or with tab) and can be modified using the following keyboard controls:
247+
- Left/bottom arrows: -1
248+
- Right/top arrows: +1
249+
- Page-down: -10%
250+
- Page-up: +10%
251+
- Home: minimum value
252+
- End: maximum value
253+
242254
## Change default options
243255
If you want the change the default options for all the sliders displayed in your application, you can set them using the `RzSliderOptions.options()` method:
244256
```js

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "2.2.0",
4-
"homepage": "https://github.com/rzajac/angularjs-slider",
3+
"version": "2.3.0",
4+
"homepage": "https://github.com/angular-slider/angularjs-slider",
55
"authors": [
66
"Rafal Zajac <[email protected]>",
77
"Valentin Hervieu <[email protected]>",

dist/rzslider.css

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
/**
2-
* Angular JS slider directive
3-
*
4-
* (c) Rafal Zajac <[email protected]>
5-
* http://github.com/rzajac/angularjs-slider
6-
*
7-
* Licensed under the MIT license
8-
*/
9-
1+
/*! angularjs-slider - v2.3.0 -
2+
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
3+
https://github.com/angular-slider/angularjs-slider -
4+
2015-12-22 */
105
rzslider {
116
position: relative;
127
display: inline-block;

dist/rzslider.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*! angularjs-slider - v2.2.0 -
1+
/*! angularjs-slider - v2.3.0 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2015-12-21 */
4+
2015-12-22 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {

dist/rzslider.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "AngularJS slider directive with no external dependencies. Mobile friendly!.",
55
"main": "dist/rzslider.js",
66
"repository": {

0 commit comments

Comments
 (0)