jquery-ui-rails 5.0.5 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.travis.yml +1 -1
- data/History.md +16 -0
- data/README.md +67 -50
- data/Rakefile +51 -27
- data/VERSIONS.md +2 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/core.js +15 -304
- data/app/assets/javascripts/jquery-ui/data.js +41 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
- data/app/assets/javascripts/jquery-ui/effect.js +620 -284
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
- data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
- data/app/assets/javascripts/jquery-ui/form.js +22 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
- data/app/assets/javascripts/jquery-ui/ie.js +17 -0
- data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
- data/app/assets/javascripts/jquery-ui/labels.js +65 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
- data/app/assets/javascripts/jquery-ui/position.js +92 -109
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
- data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
- data/app/assets/javascripts/jquery-ui/version.js +17 -0
- data/app/assets/javascripts/jquery-ui/widget.js +328 -151
- data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +187 -162
- data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +148 -92
- data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
- data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +229 -158
- data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +416 -293
- data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +167 -83
- data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +164 -134
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
- data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +60 -41
- data/app/assets/javascripts/jquery-ui/{resizable.js → widgets/resizable.js} +413 -362
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
- data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +253 -176
- data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +193 -157
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
- data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +175 -112
- data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +237 -195
- data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +136 -87
- data/app/assets/javascripts/jquery-ui.js +52 -33
- data/app/assets/stylesheets/jquery-ui/accordion.css +1 -15
- data/app/assets/stylesheets/jquery-ui/all.css +1 -1
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -3
- data/app/assets/stylesheets/jquery-ui/base.css +3 -1
- data/app/assets/stylesheets/jquery-ui/button.css +35 -68
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
- data/app/assets/stylesheets/jquery-ui/core.css +11 -7
- data/app/assets/stylesheets/jquery-ui/datepicker.css +11 -2
- data/app/assets/stylesheets/jquery-ui/dialog.css +38 -11
- data/app/assets/stylesheets/jquery-ui/draggable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/menu.css +7 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +1 -2
- data/app/assets/stylesheets/jquery-ui/resizable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +11 -22
- data/app/assets/stylesheets/jquery-ui/slider.css +1 -2
- data/app/assets/stylesheets/jquery-ui/sortable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/spinner.css +7 -22
- data/app/assets/stylesheets/jquery-ui/tabs.css +1 -2
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +113 -87
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +150 -144
- data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/button.js +0 -414
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +0 -73
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +0 -39
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +0 -40
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker.js +0 -2086
- data/app/assets/javascripts/jquery-ui/effect-blind.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-bounce.js +0 -125
- data/app/assets/javascripts/jquery-ui/effect-clip.js +0 -79
- data/app/assets/javascripts/jquery-ui/effect-drop.js +0 -77
- data/app/assets/javascripts/jquery-ui/effect-explode.js +0 -109
- data/app/assets/javascripts/jquery-ui/effect-fade.js +0 -42
- data/app/assets/javascripts/jquery-ui/effect-fold.js +0 -88
- data/app/assets/javascripts/jquery-ui/effect-highlight.js +0 -62
- data/app/assets/javascripts/jquery-ui/effect-puff.js +0 -63
- data/app/assets/javascripts/jquery-ui/effect-pulsate.js +0 -75
- data/app/assets/javascripts/jquery-ui/effect-scale.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-shake.js +0 -86
- data/app/assets/javascripts/jquery-ui/effect-size.js +0 -235
- data/app/assets/javascripts/jquery-ui/effect-slide.js +0 -76
- data/app/assets/javascripts/jquery-ui/effect-transfer.js +0 -59
- data/app/assets/javascripts/jquery-ui/mouse.js +0 -202
- data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1319
@@ -1,40 +1,58 @@
|
|
1
|
-
//= require jquery-ui/
|
1
|
+
//= require jquery-ui/widgets/mouse
|
2
|
+
//= require jquery-ui/keycode
|
3
|
+
//= require jquery-ui/version
|
2
4
|
//= require jquery-ui/widget
|
3
|
-
//= require jquery-ui/mouse
|
4
5
|
|
5
6
|
/*!
|
6
|
-
* jQuery UI Slider 1.
|
7
|
+
* jQuery UI Slider 1.12.1
|
7
8
|
* http://jqueryui.com
|
8
9
|
*
|
9
10
|
* Copyright jQuery Foundation and other contributors
|
10
11
|
* Released under the MIT license.
|
11
12
|
* http://jquery.org/license
|
12
|
-
*
|
13
|
-
* http://api.jqueryui.com/slider/
|
14
13
|
*/
|
15
|
-
|
14
|
+
|
15
|
+
//>>label: Slider
|
16
|
+
//>>group: Widgets
|
17
|
+
//>>description: Displays a flexible slider with ranges and accessibility via keyboard.
|
18
|
+
//>>docs: http://api.jqueryui.com/slider/
|
19
|
+
//>>demos: http://jqueryui.com/slider/
|
20
|
+
//>>css.structure: ../../themes/base/core.css
|
21
|
+
//>>css.structure: ../../themes/base/slider.css
|
22
|
+
//>>css.theme: ../../themes/base/theme.css
|
23
|
+
|
24
|
+
( function( factory ) {
|
16
25
|
if ( typeof define === "function" && define.amd ) {
|
17
26
|
|
18
27
|
// AMD. Register as an anonymous module.
|
19
|
-
define([
|
28
|
+
define( [
|
20
29
|
"jquery",
|
21
|
-
"./core",
|
22
30
|
"./mouse",
|
23
|
-
"
|
31
|
+
"../keycode",
|
32
|
+
"../version",
|
33
|
+
"../widget"
|
24
34
|
], factory );
|
25
35
|
} else {
|
26
36
|
|
27
37
|
// Browser globals
|
28
38
|
factory( jQuery );
|
29
39
|
}
|
30
|
-
}(function( $ ) {
|
40
|
+
}( function( $ ) {
|
31
41
|
|
32
42
|
return $.widget( "ui.slider", $.ui.mouse, {
|
33
|
-
version: "1.
|
43
|
+
version: "1.12.1",
|
34
44
|
widgetEventPrefix: "slide",
|
35
45
|
|
36
46
|
options: {
|
37
47
|
animate: false,
|
48
|
+
classes: {
|
49
|
+
"ui-slider": "ui-corner-all",
|
50
|
+
"ui-slider-handle": "ui-corner-all",
|
51
|
+
|
52
|
+
// Note: ui-widget-header isn't the most fittingly semantic framework class for this
|
53
|
+
// element, but worked best visually with a variety of themes
|
54
|
+
"ui-slider-range": "ui-corner-all ui-widget-header"
|
55
|
+
},
|
38
56
|
distance: 0,
|
39
57
|
max: 100,
|
40
58
|
min: 0,
|
@@ -44,14 +62,14 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
44
62
|
value: 0,
|
45
63
|
values: null,
|
46
64
|
|
47
|
-
//
|
65
|
+
// Callbacks
|
48
66
|
change: null,
|
49
67
|
slide: null,
|
50
68
|
start: null,
|
51
69
|
stop: null
|
52
70
|
},
|
53
71
|
|
54
|
-
//
|
72
|
+
// Number of pages in a slider
|
55
73
|
// (how many times can you page up/down to go through the whole range)
|
56
74
|
numPages: 5,
|
57
75
|
|
@@ -64,15 +82,10 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
64
82
|
this._mouseInit();
|
65
83
|
this._calculateNewMax();
|
66
84
|
|
67
|
-
this.
|
68
|
-
|
69
|
-
" ui-slider-" + this.orientation +
|
70
|
-
" ui-widget" +
|
71
|
-
" ui-widget-content" +
|
72
|
-
" ui-corner-all");
|
85
|
+
this._addClass( "ui-slider ui-slider-" + this.orientation,
|
86
|
+
"ui-widget ui-widget-content" );
|
73
87
|
|
74
88
|
this._refresh();
|
75
|
-
this._setOption( "disabled", this.options.disabled );
|
76
89
|
|
77
90
|
this._animateOff = false;
|
78
91
|
},
|
@@ -87,8 +100,8 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
87
100
|
_createHandles: function() {
|
88
101
|
var i, handleCount,
|
89
102
|
options = this.options,
|
90
|
-
existingHandles = this.element.find( ".ui-slider-handle" )
|
91
|
-
handle = "<span
|
103
|
+
existingHandles = this.element.find( ".ui-slider-handle" ),
|
104
|
+
handle = "<span tabindex='0'></span>",
|
92
105
|
handles = [];
|
93
106
|
|
94
107
|
handleCount = ( options.values && options.values.length ) || 1;
|
@@ -104,47 +117,48 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
104
117
|
|
105
118
|
this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
|
106
119
|
|
120
|
+
this._addClass( this.handles, "ui-slider-handle", "ui-state-default" );
|
121
|
+
|
107
122
|
this.handle = this.handles.eq( 0 );
|
108
123
|
|
109
|
-
this.handles.each(function( i ) {
|
110
|
-
$( this )
|
111
|
-
|
124
|
+
this.handles.each( function( i ) {
|
125
|
+
$( this )
|
126
|
+
.data( "ui-slider-handle-index", i )
|
127
|
+
.attr( "tabIndex", 0 );
|
128
|
+
} );
|
112
129
|
},
|
113
130
|
|
114
131
|
_createRange: function() {
|
115
|
-
var options = this.options
|
116
|
-
classes = "";
|
132
|
+
var options = this.options;
|
117
133
|
|
118
134
|
if ( options.range ) {
|
119
135
|
if ( options.range === true ) {
|
120
136
|
if ( !options.values ) {
|
121
137
|
options.values = [ this._valueMin(), this._valueMin() ];
|
122
138
|
} else if ( options.values.length && options.values.length !== 2 ) {
|
123
|
-
options.values = [ options.values[0], options.values[0] ];
|
139
|
+
options.values = [ options.values[ 0 ], options.values[ 0 ] ];
|
124
140
|
} else if ( $.isArray( options.values ) ) {
|
125
|
-
options.values = options.values.slice(0);
|
141
|
+
options.values = options.values.slice( 0 );
|
126
142
|
}
|
127
143
|
}
|
128
144
|
|
129
145
|
if ( !this.range || !this.range.length ) {
|
130
|
-
this.range = $( "<div
|
146
|
+
this.range = $( "<div>" )
|
131
147
|
.appendTo( this.element );
|
132
148
|
|
133
|
-
|
134
|
-
// note: this isn't the most fittingly semantic framework class for this element,
|
135
|
-
// but worked best visually with a variety of themes
|
136
|
-
" ui-widget-header ui-corner-all";
|
149
|
+
this._addClass( this.range, "ui-slider-range" );
|
137
150
|
} else {
|
138
|
-
this.
|
139
|
-
// Handle range switching from true to min/max
|
140
|
-
.css({
|
141
|
-
"left": "",
|
142
|
-
"bottom": ""
|
143
|
-
});
|
144
|
-
}
|
151
|
+
this._removeClass( this.range, "ui-slider-range-min ui-slider-range-max" );
|
145
152
|
|
146
|
-
|
147
|
-
|
153
|
+
// Handle range switching from true to min/max
|
154
|
+
this.range.css( {
|
155
|
+
"left": "",
|
156
|
+
"bottom": ""
|
157
|
+
} );
|
158
|
+
}
|
159
|
+
if ( options.range === "min" || options.range === "max" ) {
|
160
|
+
this._addClass( this.range, "ui-slider-range-" + options.range );
|
161
|
+
}
|
148
162
|
} else {
|
149
163
|
if ( this.range ) {
|
150
164
|
this.range.remove();
|
@@ -166,14 +180,6 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
166
180
|
this.range.remove();
|
167
181
|
}
|
168
182
|
|
169
|
-
this.element
|
170
|
-
.removeClass( "ui-slider" +
|
171
|
-
" ui-slider-horizontal" +
|
172
|
-
" ui-slider-vertical" +
|
173
|
-
" ui-widget" +
|
174
|
-
" ui-widget-content" +
|
175
|
-
" ui-corner-all" );
|
176
|
-
|
177
183
|
this._mouseDestroy();
|
178
184
|
},
|
179
185
|
|
@@ -195,16 +201,16 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
195
201
|
position = { x: event.pageX, y: event.pageY };
|
196
202
|
normValue = this._normValueFromMouse( position );
|
197
203
|
distance = this._valueMax() - this._valueMin() + 1;
|
198
|
-
this.handles.each(function( i ) {
|
199
|
-
var thisDistance = Math.abs( normValue - that.values(i) );
|
200
|
-
if (( distance > thisDistance ) ||
|
204
|
+
this.handles.each( function( i ) {
|
205
|
+
var thisDistance = Math.abs( normValue - that.values( i ) );
|
206
|
+
if ( ( distance > thisDistance ) ||
|
201
207
|
( distance === thisDistance &&
|
202
|
-
(i === that._lastChangedValue || that.values(i) === o.min ))) {
|
208
|
+
( i === that._lastChangedValue || that.values( i ) === o.min ) ) ) {
|
203
209
|
distance = thisDistance;
|
204
210
|
closestHandle = $( this );
|
205
211
|
index = i;
|
206
212
|
}
|
207
|
-
});
|
213
|
+
} );
|
208
214
|
|
209
215
|
allowed = this._start( event, index );
|
210
216
|
if ( allowed === false ) {
|
@@ -214,9 +220,8 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
214
220
|
|
215
221
|
this._handleIndex = index;
|
216
222
|
|
217
|
-
closestHandle
|
218
|
-
|
219
|
-
.focus();
|
223
|
+
this._addClass( closestHandle, null, "ui-state-active" );
|
224
|
+
closestHandle.trigger( "focus" );
|
220
225
|
|
221
226
|
offset = closestHandle.offset();
|
222
227
|
mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
|
@@ -224,9 +229,9 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
224
229
|
left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
|
225
230
|
top: event.pageY - offset.top -
|
226
231
|
( closestHandle.height() / 2 ) -
|
227
|
-
( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
|
228
|
-
( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
|
229
|
-
( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
|
232
|
+
( parseInt( closestHandle.css( "borderTopWidth" ), 10 ) || 0 ) -
|
233
|
+
( parseInt( closestHandle.css( "borderBottomWidth" ), 10 ) || 0 ) +
|
234
|
+
( parseInt( closestHandle.css( "marginTop" ), 10 ) || 0 )
|
230
235
|
};
|
231
236
|
|
232
237
|
if ( !this.handles.hasClass( "ui-state-hover" ) ) {
|
@@ -250,7 +255,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
250
255
|
},
|
251
256
|
|
252
257
|
_mouseStop: function( event ) {
|
253
|
-
this.
|
258
|
+
this._removeClass( this.handles, null, "ui-state-active" );
|
254
259
|
this._mouseSliding = false;
|
255
260
|
|
256
261
|
this._stop( event, this._handleIndex );
|
@@ -276,10 +281,12 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
276
281
|
|
277
282
|
if ( this.orientation === "horizontal" ) {
|
278
283
|
pixelTotal = this.elementSize.width;
|
279
|
-
pixelMouse = position.x - this.elementOffset.left -
|
284
|
+
pixelMouse = position.x - this.elementOffset.left -
|
285
|
+
( this._clickOffset ? this._clickOffset.left : 0 );
|
280
286
|
} else {
|
281
287
|
pixelTotal = this.elementSize.height;
|
282
|
-
pixelMouse = position.y - this.elementOffset.top -
|
288
|
+
pixelMouse = position.y - this.elementOffset.top -
|
289
|
+
( this._clickOffset ? this._clickOffset.top : 0 );
|
283
290
|
}
|
284
291
|
|
285
292
|
percentMouse = ( pixelMouse / pixelTotal );
|
@@ -299,88 +306,73 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
299
306
|
return this._trimAlignValue( valueMouse );
|
300
307
|
},
|
301
308
|
|
302
|
-
|
309
|
+
_uiHash: function( index, value, values ) {
|
303
310
|
var uiHash = {
|
304
311
|
handle: this.handles[ index ],
|
305
|
-
|
312
|
+
handleIndex: index,
|
313
|
+
value: value !== undefined ? value : this.value()
|
306
314
|
};
|
307
|
-
|
308
|
-
|
309
|
-
uiHash.
|
315
|
+
|
316
|
+
if ( this._hasMultipleValues() ) {
|
317
|
+
uiHash.value = value !== undefined ? value : this.values( index );
|
318
|
+
uiHash.values = values || this.values();
|
310
319
|
}
|
311
|
-
|
320
|
+
|
321
|
+
return uiHash;
|
322
|
+
},
|
323
|
+
|
324
|
+
_hasMultipleValues: function() {
|
325
|
+
return this.options.values && this.options.values.length;
|
326
|
+
},
|
327
|
+
|
328
|
+
_start: function( event, index ) {
|
329
|
+
return this._trigger( "start", event, this._uiHash( index ) );
|
312
330
|
},
|
313
331
|
|
314
332
|
_slide: function( event, index, newVal ) {
|
315
|
-
var otherVal,
|
316
|
-
|
317
|
-
|
333
|
+
var allowed, otherVal,
|
334
|
+
currentValue = this.value(),
|
335
|
+
newValues = this.values();
|
318
336
|
|
319
|
-
if ( this.
|
337
|
+
if ( this._hasMultipleValues() ) {
|
320
338
|
otherVal = this.values( index ? 0 : 1 );
|
339
|
+
currentValue = this.values( index );
|
321
340
|
|
322
|
-
if (
|
323
|
-
|
324
|
-
) {
|
325
|
-
newVal = otherVal;
|
341
|
+
if ( this.options.values.length === 2 && this.options.range === true ) {
|
342
|
+
newVal = index === 0 ? Math.min( otherVal, newVal ) : Math.max( otherVal, newVal );
|
326
343
|
}
|
327
344
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
345
|
+
newValues[ index ] = newVal;
|
346
|
+
}
|
347
|
+
|
348
|
+
if ( newVal === currentValue ) {
|
349
|
+
return;
|
350
|
+
}
|
351
|
+
|
352
|
+
allowed = this._trigger( "slide", event, this._uiHash( index, newVal, newValues ) );
|
353
|
+
|
354
|
+
// A slide can be canceled by returning false from the slide callback
|
355
|
+
if ( allowed === false ) {
|
356
|
+
return;
|
357
|
+
}
|
358
|
+
|
359
|
+
if ( this._hasMultipleValues() ) {
|
360
|
+
this.values( index, newVal );
|
342
361
|
} else {
|
343
|
-
|
344
|
-
// A slide can be canceled by returning false from the slide callback
|
345
|
-
allowed = this._trigger( "slide", event, {
|
346
|
-
handle: this.handles[ index ],
|
347
|
-
value: newVal
|
348
|
-
} );
|
349
|
-
if ( allowed !== false ) {
|
350
|
-
this.value( newVal );
|
351
|
-
}
|
352
|
-
}
|
362
|
+
this.value( newVal );
|
353
363
|
}
|
354
364
|
},
|
355
365
|
|
356
366
|
_stop: function( event, index ) {
|
357
|
-
|
358
|
-
handle: this.handles[ index ],
|
359
|
-
value: this.value()
|
360
|
-
};
|
361
|
-
if ( this.options.values && this.options.values.length ) {
|
362
|
-
uiHash.value = this.values( index );
|
363
|
-
uiHash.values = this.values();
|
364
|
-
}
|
365
|
-
|
366
|
-
this._trigger( "stop", event, uiHash );
|
367
|
+
this._trigger( "stop", event, this._uiHash( index ) );
|
367
368
|
},
|
368
369
|
|
369
370
|
_change: function( event, index ) {
|
370
371
|
if ( !this._keySliding && !this._mouseSliding ) {
|
371
|
-
var uiHash = {
|
372
|
-
handle: this.handles[ index ],
|
373
|
-
value: this.value()
|
374
|
-
};
|
375
|
-
if ( this.options.values && this.options.values.length ) {
|
376
|
-
uiHash.value = this.values( index );
|
377
|
-
uiHash.values = this.values();
|
378
|
-
}
|
379
372
|
|
380
373
|
//store the last changed value index for reference when handles overlap
|
381
374
|
this._lastChangedValue = index;
|
382
|
-
|
383
|
-
this._trigger( "change", event, uiHash );
|
375
|
+
this._trigger( "change", event, this._uiHash( index ) );
|
384
376
|
}
|
385
377
|
},
|
386
378
|
|
@@ -417,7 +409,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
417
409
|
}
|
418
410
|
this._refreshValue();
|
419
411
|
} else {
|
420
|
-
if ( this.
|
412
|
+
if ( this._hasMultipleValues() ) {
|
421
413
|
return this._values( index );
|
422
414
|
} else {
|
423
415
|
return this.value();
|
@@ -446,19 +438,17 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
446
438
|
valsLength = this.options.values.length;
|
447
439
|
}
|
448
440
|
|
449
|
-
if ( key === "disabled" ) {
|
450
|
-
this.element.toggleClass( "ui-state-disabled", !!value );
|
451
|
-
}
|
452
|
-
|
453
441
|
this._super( key, value );
|
454
442
|
|
455
443
|
switch ( key ) {
|
456
444
|
case "orientation":
|
457
445
|
this._detectOrientation();
|
458
|
-
this.
|
459
|
-
.
|
460
|
-
.addClass( "ui-slider-" + this.orientation );
|
446
|
+
this._removeClass( "ui-slider-horizontal ui-slider-vertical" )
|
447
|
+
._addClass( "ui-slider-" + this.orientation );
|
461
448
|
this._refreshValue();
|
449
|
+
if ( this.options.range ) {
|
450
|
+
this._refreshRange( value );
|
451
|
+
}
|
462
452
|
|
463
453
|
// Reset positioning from previous orientation
|
464
454
|
this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
|
@@ -472,7 +462,9 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
472
462
|
case "values":
|
473
463
|
this._animateOff = true;
|
474
464
|
this._refreshValue();
|
475
|
-
|
465
|
+
|
466
|
+
// Start from the last handle to prevent unreachable handles (#9046)
|
467
|
+
for ( i = valsLength - 1; i >= 0; i-- ) {
|
476
468
|
this._change( null, i );
|
477
469
|
}
|
478
470
|
this._animateOff = false;
|
@@ -493,6 +485,12 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
493
485
|
}
|
494
486
|
},
|
495
487
|
|
488
|
+
_setOptionDisabled: function( value ) {
|
489
|
+
this._super( value );
|
490
|
+
|
491
|
+
this._toggleClass( null, "ui-state-disabled", !!value );
|
492
|
+
},
|
493
|
+
|
496
494
|
//internal value getter
|
497
495
|
// _value() returns value trimmed by min and max, aligned by step
|
498
496
|
_value: function() {
|
@@ -515,11 +513,12 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
515
513
|
val = this._trimAlignValue( val );
|
516
514
|
|
517
515
|
return val;
|
518
|
-
} else if ( this.
|
516
|
+
} else if ( this._hasMultipleValues() ) {
|
517
|
+
|
519
518
|
// .slice() creates a copy of the array
|
520
519
|
// this copy gets trimmed by min and max and then returned
|
521
520
|
vals = this.options.values.slice();
|
522
|
-
for ( i = 0; i < vals.length; i += 1) {
|
521
|
+
for ( i = 0; i < vals.length; i += 1 ) {
|
523
522
|
vals[ i ] = this._trimAlignValue( vals[ i ] );
|
524
523
|
}
|
525
524
|
|
@@ -529,7 +528,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
529
528
|
}
|
530
529
|
},
|
531
530
|
|
532
|
-
//
|
531
|
+
// Returns the step-aligned value that val is closest to, between (inclusive) min and max
|
533
532
|
_trimAlignValue: function( val ) {
|
534
533
|
if ( val <= this._valueMin() ) {
|
535
534
|
return this._valueMin();
|
@@ -538,24 +537,29 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
538
537
|
return this._valueMax();
|
539
538
|
}
|
540
539
|
var step = ( this.options.step > 0 ) ? this.options.step : 1,
|
541
|
-
valModStep = (val - this._valueMin()) % step,
|
540
|
+
valModStep = ( val - this._valueMin() ) % step,
|
542
541
|
alignValue = val - valModStep;
|
543
542
|
|
544
|
-
if ( Math.abs(valModStep) * 2 >= step ) {
|
543
|
+
if ( Math.abs( valModStep ) * 2 >= step ) {
|
545
544
|
alignValue += ( valModStep > 0 ) ? step : ( -step );
|
546
545
|
}
|
547
546
|
|
548
547
|
// Since JavaScript has problems with large floats, round
|
549
548
|
// the final value to 5 digits after the decimal point (see #4124)
|
550
|
-
return parseFloat( alignValue.toFixed(5) );
|
549
|
+
return parseFloat( alignValue.toFixed( 5 ) );
|
551
550
|
},
|
552
551
|
|
553
552
|
_calculateNewMax: function() {
|
554
553
|
var max = this.options.max,
|
555
554
|
min = this._valueMin(),
|
556
555
|
step = this.options.step,
|
557
|
-
aboveMin = Math.
|
556
|
+
aboveMin = Math.round( ( max - min ) / step ) * step;
|
558
557
|
max = aboveMin + min;
|
558
|
+
if ( max > this.options.max ) {
|
559
|
+
|
560
|
+
//If max is not divisible by step, rounding off may increase its value
|
561
|
+
max -= step;
|
562
|
+
}
|
559
563
|
this.max = parseFloat( max.toFixed( this._precision() ) );
|
560
564
|
},
|
561
565
|
|
@@ -581,6 +585,15 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
581
585
|
return this.max;
|
582
586
|
},
|
583
587
|
|
588
|
+
_refreshRange: function( orientation ) {
|
589
|
+
if ( orientation === "vertical" ) {
|
590
|
+
this.range.css( { "width": "", "left": "" } );
|
591
|
+
}
|
592
|
+
if ( orientation === "horizontal" ) {
|
593
|
+
this.range.css( { "height": "", "bottom": "" } );
|
594
|
+
}
|
595
|
+
},
|
596
|
+
|
584
597
|
_refreshValue: function() {
|
585
598
|
var lastValPercent, valPercent, value, valueMin, valueMax,
|
586
599
|
oRange = this.options.range,
|
@@ -589,30 +602,45 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
589
602
|
animate = ( !this._animateOff ) ? o.animate : false,
|
590
603
|
_set = {};
|
591
604
|
|
592
|
-
if ( this.
|
593
|
-
this.handles.each(function( i ) {
|
594
|
-
valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() -
|
605
|
+
if ( this._hasMultipleValues() ) {
|
606
|
+
this.handles.each( function( i ) {
|
607
|
+
valPercent = ( that.values( i ) - that._valueMin() ) / ( that._valueMax() -
|
608
|
+
that._valueMin() ) * 100;
|
595
609
|
_set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
|
596
610
|
$( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
|
597
611
|
if ( that.options.range === true ) {
|
598
612
|
if ( that.orientation === "horizontal" ) {
|
599
613
|
if ( i === 0 ) {
|
600
|
-
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
614
|
+
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
615
|
+
left: valPercent + "%"
|
616
|
+
}, o.animate );
|
601
617
|
}
|
602
618
|
if ( i === 1 ) {
|
603
|
-
that.range[ animate ? "animate" : "css" ]( {
|
619
|
+
that.range[ animate ? "animate" : "css" ]( {
|
620
|
+
width: ( valPercent - lastValPercent ) + "%"
|
621
|
+
}, {
|
622
|
+
queue: false,
|
623
|
+
duration: o.animate
|
624
|
+
} );
|
604
625
|
}
|
605
626
|
} else {
|
606
627
|
if ( i === 0 ) {
|
607
|
-
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
628
|
+
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
629
|
+
bottom: ( valPercent ) + "%"
|
630
|
+
}, o.animate );
|
608
631
|
}
|
609
632
|
if ( i === 1 ) {
|
610
|
-
that.range[ animate ? "animate" : "css" ]( {
|
633
|
+
that.range[ animate ? "animate" : "css" ]( {
|
634
|
+
height: ( valPercent - lastValPercent ) + "%"
|
635
|
+
}, {
|
636
|
+
queue: false,
|
637
|
+
duration: o.animate
|
638
|
+
} );
|
611
639
|
}
|
612
640
|
}
|
613
641
|
}
|
614
642
|
lastValPercent = valPercent;
|
615
|
-
});
|
643
|
+
} );
|
616
644
|
} else {
|
617
645
|
value = this.value();
|
618
646
|
valueMin = this._valueMin();
|
@@ -624,16 +652,24 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
624
652
|
this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
|
625
653
|
|
626
654
|
if ( oRange === "min" && this.orientation === "horizontal" ) {
|
627
|
-
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
655
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
656
|
+
width: valPercent + "%"
|
657
|
+
}, o.animate );
|
628
658
|
}
|
629
659
|
if ( oRange === "max" && this.orientation === "horizontal" ) {
|
630
|
-
this.range[ animate ? "animate" : "css" ]( {
|
660
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
661
|
+
width: ( 100 - valPercent ) + "%"
|
662
|
+
}, o.animate );
|
631
663
|
}
|
632
664
|
if ( oRange === "min" && this.orientation === "vertical" ) {
|
633
|
-
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
665
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
666
|
+
height: valPercent + "%"
|
667
|
+
}, o.animate );
|
634
668
|
}
|
635
669
|
if ( oRange === "max" && this.orientation === "vertical" ) {
|
636
|
-
this.range[ animate ? "animate" : "css" ]( {
|
670
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
671
|
+
height: ( 100 - valPercent ) + "%"
|
672
|
+
}, o.animate );
|
637
673
|
}
|
638
674
|
}
|
639
675
|
},
|
@@ -655,7 +691,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
655
691
|
event.preventDefault();
|
656
692
|
if ( !this._keySliding ) {
|
657
693
|
this._keySliding = true;
|
658
|
-
$( event.target )
|
694
|
+
this._addClass( $( event.target ), null, "ui-state-active" );
|
659
695
|
allowed = this._start( event, index );
|
660
696
|
if ( allowed === false ) {
|
661
697
|
return;
|
@@ -665,7 +701,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
665
701
|
}
|
666
702
|
|
667
703
|
step = this.options.step;
|
668
|
-
if ( this.
|
704
|
+
if ( this._hasMultipleValues() ) {
|
669
705
|
curVal = newVal = this.values( index );
|
670
706
|
} else {
|
671
707
|
curVal = newVal = this.value();
|
@@ -685,7 +721,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
685
721
|
break;
|
686
722
|
case $.ui.keyCode.PAGE_DOWN:
|
687
723
|
newVal = this._trimAlignValue(
|
688
|
-
curVal - ( (this._valueMax() - this._valueMin()) / this.numPages ) );
|
724
|
+
curVal - ( ( this._valueMax() - this._valueMin() ) / this.numPages ) );
|
689
725
|
break;
|
690
726
|
case $.ui.keyCode.UP:
|
691
727
|
case $.ui.keyCode.RIGHT:
|
@@ -712,10 +748,10 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
712
748
|
this._keySliding = false;
|
713
749
|
this._stop( event, index );
|
714
750
|
this._change( event, index );
|
715
|
-
$( event.target )
|
751
|
+
this._removeClass( $( event.target ), null, "ui-state-active" );
|
716
752
|
}
|
717
753
|
}
|
718
754
|
}
|
719
|
-
});
|
755
|
+
} );
|
720
756
|
|
721
|
-
}));
|
757
|
+
} ) );
|