jquery-ui-rails 4.2.1 → 8.0.0
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 +7 -0
- data/.travis.yml +1 -1
- data/History.md +45 -2
- data/README.md +100 -83
- data/Rakefile +82 -49
- data/VERSIONS.md +10 -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/data.js +39 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -0
- data/app/assets/javascripts/jquery-ui/effect.js +954 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +79 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +81 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +58 -0
- data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
- data/app/assets/javascripts/jquery-ui/labels.js +70 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
- data/app/assets/javascripts/{jquery.ui.position.js → jquery-ui/position.js} +123 -111
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +691 -0
- data/app/assets/javascripts/jquery-ui/version.js +20 -0
- data/app/assets/javascripts/jquery-ui/widget.js +761 -0
- data/app/assets/javascripts/{jquery.ui.accordion.js → jquery-ui/widgets/accordion.js} +263 -209
- data/app/assets/javascripts/{jquery.ui.autocomplete.js → jquery-ui/widgets/autocomplete.js} +177 -142
- data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +294 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2240 -0
- data/app/assets/javascripts/jquery-ui/widgets/dialog.js +957 -0
- data/app/assets/javascripts/jquery-ui/widgets/draggable.js +1264 -0
- data/app/assets/javascripts/jquery-ui/widgets/droppable.js +508 -0
- data/app/assets/javascripts/{jquery.ui.menu.js → jquery-ui/widgets/menu.js} +276 -189
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +226 -0
- data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +184 -0
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1281 -0
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
- data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +675 -0
- data/app/assets/javascripts/{jquery.ui.slider.js → jquery-ui/widgets/slider.js} +256 -176
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1614 -0
- data/app/assets/javascripts/{jquery.ui.spinner.js → jquery-ui/widgets/spinner.js} +200 -137
- data/app/assets/javascripts/{jquery.ui.tabs.js → jquery-ui/widgets/tabs.js} +322 -277
- data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +528 -0
- data/app/assets/javascripts/jquery-ui.js +52 -0
- data/app/assets/stylesheets/jquery-ui/accordion.css +26 -0
- data/app/assets/stylesheets/jquery-ui/all.css +14 -0
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +19 -0
- data/app/assets/stylesheets/jquery-ui/base.css +32 -0
- data/app/assets/stylesheets/jquery-ui/button.css +80 -0
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +65 -0
- data/app/assets/stylesheets/{jquery.ui.core.css.erb → jquery-ui/core.css} +15 -12
- data/app/assets/stylesheets/{jquery.ui.datepicker.css.erb → jquery-ui/datepicker.css} +17 -8
- data/app/assets/stylesheets/{jquery.ui.dialog.css.erb → jquery-ui/dialog.css} +43 -15
- data/app/assets/stylesheets/jquery-ui/draggable.css +14 -0
- data/app/assets/stylesheets/jquery-ui/menu.css +65 -0
- data/app/assets/stylesheets/jquery-ui/progressbar.css +30 -0
- data/app/assets/stylesheets/{jquery.ui.resizable.css.erb → jquery-ui/resizable.css} +6 -6
- data/app/assets/stylesheets/jquery-ui/selectable.css +19 -0
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +53 -0
- data/app/assets/stylesheets/{jquery.ui.slider.css.erb → jquery-ui/slider.css} +8 -14
- data/app/assets/stylesheets/jquery-ui/sortable.css +14 -0
- data/app/assets/stylesheets/{jquery.ui.spinner.css.erb → jquery-ui/spinner.css} +12 -27
- data/app/assets/stylesheets/{jquery.ui.tabs.css.erb → jquery-ui/tabs.css} +6 -7
- data/app/assets/stylesheets/{jquery.ui.theme.css.erb → jquery-ui/theme.css.erb} +121 -102
- data/app/assets/stylesheets/jquery-ui/tooltip.css +22 -0
- data/app/assets/stylesheets/jquery-ui.css +1 -0
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +178 -169
- data/app/assets/images/jquery-ui/animated-overlay.gif +0 -0
- 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.all.js +0 -34
- data/app/assets/javascripts/jquery.ui.button.js +0 -398
- data/app/assets/javascripts/jquery.ui.core.js +0 -320
- data/app/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
- data/app/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
- data/app/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
- data/app/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
- data/app/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
- data/app/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
- data/app/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
- data/app/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
- data/app/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
- data/app/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
- data/app/assets/javascripts/jquery.ui.datepicker.js +0 -2040
- data/app/assets/javascripts/jquery.ui.dialog.js +0 -830
- data/app/assets/javascripts/jquery.ui.draggable.js +0 -962
- data/app/assets/javascripts/jquery.ui.droppable.js +0 -394
- data/app/assets/javascripts/jquery.ui.effect-blind.js +0 -84
- data/app/assets/javascripts/jquery.ui.effect-bounce.js +0 -115
- data/app/assets/javascripts/jquery.ui.effect-clip.js +0 -69
- data/app/assets/javascripts/jquery.ui.effect-drop.js +0 -67
- data/app/assets/javascripts/jquery.ui.effect-explode.js +0 -99
- data/app/assets/javascripts/jquery.ui.effect-fade.js +0 -32
- data/app/assets/javascripts/jquery.ui.effect-fold.js +0 -78
- data/app/assets/javascripts/jquery.ui.effect-highlight.js +0 -52
- data/app/assets/javascripts/jquery.ui.effect-pulsate.js +0 -65
- data/app/assets/javascripts/jquery.ui.effect-scale.js +0 -320
- data/app/assets/javascripts/jquery.ui.effect-shake.js +0 -76
- data/app/assets/javascripts/jquery.ui.effect-slide.js +0 -66
- data/app/assets/javascripts/jquery.ui.effect-transfer.js +0 -49
- data/app/assets/javascripts/jquery.ui.effect.all.js +0 -14
- data/app/assets/javascripts/jquery.ui.effect.js +0 -1289
- data/app/assets/javascripts/jquery.ui.mouse.js +0 -172
- data/app/assets/javascripts/jquery.ui.progressbar.js +0 -148
- data/app/assets/javascripts/jquery.ui.resizable.js +0 -982
- data/app/assets/javascripts/jquery.ui.selectable.js +0 -281
- data/app/assets/javascripts/jquery.ui.sortable.js +0 -1293
- data/app/assets/javascripts/jquery.ui.tooltip.js +0 -406
- data/app/assets/javascripts/jquery.ui.widget.js +0 -521
- data/app/assets/stylesheets/jquery.ui.accordion.css.erb +0 -42
- data/app/assets/stylesheets/jquery.ui.all.css.erb +0 -14
- data/app/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
- data/app/assets/stylesheets/jquery.ui.base.css.erb +0 -27
- data/app/assets/stylesheets/jquery.ui.button.css.erb +0 -118
- data/app/assets/stylesheets/jquery.ui.menu.css.erb +0 -83
- data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -37
- data/app/assets/stylesheets/jquery.ui.selectable.css.erb +0 -17
- data/app/assets/stylesheets/jquery.ui.tooltip.css.erb +0 -25
@@ -1,34 +1,61 @@
|
|
1
|
-
//= require jquery
|
2
|
-
//= require jquery
|
3
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/widgets/mouse
|
2
|
+
//= require jquery-ui/keycode
|
3
|
+
//= require jquery-ui/version
|
4
|
+
//= require jquery-ui/widget
|
4
5
|
|
5
6
|
/*!
|
6
|
-
* jQuery UI Slider 1.
|
7
|
-
*
|
7
|
+
* jQuery UI Slider 1.14.1
|
8
|
+
* https://jqueryui.com
|
8
9
|
*
|
9
|
-
* Copyright
|
10
|
+
* Copyright OpenJS Foundation and other contributors
|
10
11
|
* Released under the MIT license.
|
11
|
-
*
|
12
|
-
*
|
13
|
-
* http://api.jqueryui.com/slider/
|
14
|
-
*
|
15
|
-
* Depends:
|
16
|
-
* jquery.ui.core.js
|
17
|
-
* jquery.ui.mouse.js
|
18
|
-
* jquery.ui.widget.js
|
12
|
+
* https://jquery.org/license
|
19
13
|
*/
|
20
|
-
(function( $, undefined ) {
|
21
14
|
|
22
|
-
|
23
|
-
|
24
|
-
|
15
|
+
//>>label: Slider
|
16
|
+
//>>group: Widgets
|
17
|
+
//>>description: Displays a flexible slider with ranges and accessibility via keyboard.
|
18
|
+
//>>docs: https://api.jqueryui.com/slider/
|
19
|
+
//>>demos: https://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 ) {
|
25
|
+
"use strict";
|
26
|
+
|
27
|
+
if ( typeof define === "function" && define.amd ) {
|
28
|
+
|
29
|
+
// AMD. Register as an anonymous module.
|
30
|
+
define( [
|
31
|
+
"jquery",
|
32
|
+
"./mouse",
|
33
|
+
"../keycode",
|
34
|
+
"../version",
|
35
|
+
"../widget"
|
36
|
+
], factory );
|
37
|
+
} else {
|
38
|
+
|
39
|
+
// Browser globals
|
40
|
+
factory( jQuery );
|
41
|
+
}
|
42
|
+
} )( function( $ ) {
|
43
|
+
"use strict";
|
25
44
|
|
26
|
-
$.widget( "ui.slider", $.ui.mouse, {
|
27
|
-
version: "1.
|
45
|
+
return $.widget( "ui.slider", $.ui.mouse, {
|
46
|
+
version: "1.14.1",
|
28
47
|
widgetEventPrefix: "slide",
|
29
48
|
|
30
49
|
options: {
|
31
50
|
animate: false,
|
51
|
+
classes: {
|
52
|
+
"ui-slider": "ui-corner-all",
|
53
|
+
"ui-slider-handle": "ui-corner-all",
|
54
|
+
|
55
|
+
// Note: ui-widget-header isn't the most fittingly semantic framework class for this
|
56
|
+
// element, but worked best visually with a variety of themes
|
57
|
+
"ui-slider-range": "ui-corner-all ui-widget-header"
|
58
|
+
},
|
32
59
|
distance: 0,
|
33
60
|
max: 100,
|
34
61
|
min: 0,
|
@@ -38,13 +65,17 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
38
65
|
value: 0,
|
39
66
|
values: null,
|
40
67
|
|
41
|
-
//
|
68
|
+
// Callbacks
|
42
69
|
change: null,
|
43
70
|
slide: null,
|
44
71
|
start: null,
|
45
72
|
stop: null
|
46
73
|
},
|
47
74
|
|
75
|
+
// Number of pages in a slider
|
76
|
+
// (how many times can you page up/down to go through the whole range)
|
77
|
+
numPages: 5,
|
78
|
+
|
48
79
|
_create: function() {
|
49
80
|
this._keySliding = false;
|
50
81
|
this._mouseSliding = false;
|
@@ -52,16 +83,12 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
52
83
|
this._handleIndex = null;
|
53
84
|
this._detectOrientation();
|
54
85
|
this._mouseInit();
|
86
|
+
this._calculateNewMax();
|
55
87
|
|
56
|
-
this.
|
57
|
-
|
58
|
-
" ui-slider-" + this.orientation +
|
59
|
-
" ui-widget" +
|
60
|
-
" ui-widget-content" +
|
61
|
-
" ui-corner-all");
|
88
|
+
this._addClass( "ui-slider ui-slider-" + this.orientation,
|
89
|
+
"ui-widget ui-widget-content" );
|
62
90
|
|
63
91
|
this._refresh();
|
64
|
-
this._setOption( "disabled", this.options.disabled );
|
65
92
|
|
66
93
|
this._animateOff = false;
|
67
94
|
},
|
@@ -76,8 +103,8 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
76
103
|
_createHandles: function() {
|
77
104
|
var i, handleCount,
|
78
105
|
options = this.options,
|
79
|
-
existingHandles = this.element.find( ".ui-slider-handle" )
|
80
|
-
handle = "<
|
106
|
+
existingHandles = this.element.find( ".ui-slider-handle" ),
|
107
|
+
handle = "<span tabindex='0'></span>",
|
81
108
|
handles = [];
|
82
109
|
|
83
110
|
handleCount = ( options.values && options.values.length ) || 1;
|
@@ -93,47 +120,48 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
93
120
|
|
94
121
|
this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );
|
95
122
|
|
123
|
+
this._addClass( this.handles, "ui-slider-handle", "ui-state-default" );
|
124
|
+
|
96
125
|
this.handle = this.handles.eq( 0 );
|
97
126
|
|
98
|
-
this.handles.each(function( i ) {
|
99
|
-
$( this )
|
100
|
-
|
127
|
+
this.handles.each( function( i ) {
|
128
|
+
$( this )
|
129
|
+
.data( "ui-slider-handle-index", i )
|
130
|
+
.attr( "tabIndex", 0 );
|
131
|
+
} );
|
101
132
|
},
|
102
133
|
|
103
134
|
_createRange: function() {
|
104
|
-
var options = this.options
|
105
|
-
classes = "";
|
135
|
+
var options = this.options;
|
106
136
|
|
107
137
|
if ( options.range ) {
|
108
138
|
if ( options.range === true ) {
|
109
139
|
if ( !options.values ) {
|
110
140
|
options.values = [ this._valueMin(), this._valueMin() ];
|
111
141
|
} else if ( options.values.length && options.values.length !== 2 ) {
|
112
|
-
options.values = [ options.values[0], options.values[0] ];
|
113
|
-
} else if (
|
114
|
-
options.values = options.values.slice(0);
|
142
|
+
options.values = [ options.values[ 0 ], options.values[ 0 ] ];
|
143
|
+
} else if ( Array.isArray( options.values ) ) {
|
144
|
+
options.values = options.values.slice( 0 );
|
115
145
|
}
|
116
146
|
}
|
117
147
|
|
118
148
|
if ( !this.range || !this.range.length ) {
|
119
|
-
this.range = $( "<div
|
149
|
+
this.range = $( "<div>" )
|
120
150
|
.appendTo( this.element );
|
121
151
|
|
122
|
-
|
123
|
-
// note: this isn't the most fittingly semantic framework class for this element,
|
124
|
-
// but worked best visually with a variety of themes
|
125
|
-
" ui-widget-header ui-corner-all";
|
152
|
+
this._addClass( this.range, "ui-slider-range" );
|
126
153
|
} else {
|
127
|
-
this.
|
128
|
-
// Handle range switching from true to min/max
|
129
|
-
.css({
|
130
|
-
"left": "",
|
131
|
-
"bottom": ""
|
132
|
-
});
|
133
|
-
}
|
154
|
+
this._removeClass( this.range, "ui-slider-range-min ui-slider-range-max" );
|
134
155
|
|
135
|
-
|
136
|
-
|
156
|
+
// Handle range switching from true to min/max
|
157
|
+
this.range.css( {
|
158
|
+
"left": "",
|
159
|
+
"bottom": ""
|
160
|
+
} );
|
161
|
+
}
|
162
|
+
if ( options.range === "min" || options.range === "max" ) {
|
163
|
+
this._addClass( this.range, "ui-slider-range-" + options.range );
|
164
|
+
}
|
137
165
|
} else {
|
138
166
|
if ( this.range ) {
|
139
167
|
this.range.remove();
|
@@ -143,11 +171,10 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
143
171
|
},
|
144
172
|
|
145
173
|
_setupEvents: function() {
|
146
|
-
|
147
|
-
this.
|
148
|
-
this.
|
149
|
-
this.
|
150
|
-
this._focusable( elements );
|
174
|
+
this._off( this.handles );
|
175
|
+
this._on( this.handles, this._handleEvents );
|
176
|
+
this._hoverable( this.handles );
|
177
|
+
this._focusable( this.handles );
|
151
178
|
},
|
152
179
|
|
153
180
|
_destroy: function() {
|
@@ -156,14 +183,6 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
156
183
|
this.range.remove();
|
157
184
|
}
|
158
185
|
|
159
|
-
this.element
|
160
|
-
.removeClass( "ui-slider" +
|
161
|
-
" ui-slider-horizontal" +
|
162
|
-
" ui-slider-vertical" +
|
163
|
-
" ui-widget" +
|
164
|
-
" ui-widget-content" +
|
165
|
-
" ui-corner-all" );
|
166
|
-
|
167
186
|
this._mouseDestroy();
|
168
187
|
},
|
169
188
|
|
@@ -185,16 +204,16 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
185
204
|
position = { x: event.pageX, y: event.pageY };
|
186
205
|
normValue = this._normValueFromMouse( position );
|
187
206
|
distance = this._valueMax() - this._valueMin() + 1;
|
188
|
-
this.handles.each(function( i ) {
|
189
|
-
var thisDistance = Math.abs( normValue - that.values(i) );
|
190
|
-
if (( distance > thisDistance ) ||
|
207
|
+
this.handles.each( function( i ) {
|
208
|
+
var thisDistance = Math.abs( normValue - that.values( i ) );
|
209
|
+
if ( ( distance > thisDistance ) ||
|
191
210
|
( distance === thisDistance &&
|
192
|
-
(i === that._lastChangedValue || that.values(i) === o.min ))) {
|
211
|
+
( i === that._lastChangedValue || that.values( i ) === o.min ) ) ) {
|
193
212
|
distance = thisDistance;
|
194
213
|
closestHandle = $( this );
|
195
214
|
index = i;
|
196
215
|
}
|
197
|
-
});
|
216
|
+
} );
|
198
217
|
|
199
218
|
allowed = this._start( event, index );
|
200
219
|
if ( allowed === false ) {
|
@@ -204,9 +223,8 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
204
223
|
|
205
224
|
this._handleIndex = index;
|
206
225
|
|
207
|
-
closestHandle
|
208
|
-
|
209
|
-
.focus();
|
226
|
+
this._addClass( closestHandle, null, "ui-state-active" );
|
227
|
+
closestHandle.trigger( "focus" );
|
210
228
|
|
211
229
|
offset = closestHandle.offset();
|
212
230
|
mouseOverHandle = !$( event.target ).parents().addBack().is( ".ui-slider-handle" );
|
@@ -214,9 +232,9 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
214
232
|
left: event.pageX - offset.left - ( closestHandle.width() / 2 ),
|
215
233
|
top: event.pageY - offset.top -
|
216
234
|
( closestHandle.height() / 2 ) -
|
217
|
-
( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -
|
218
|
-
( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) +
|
219
|
-
( parseInt( closestHandle.css("marginTop"), 10 ) || 0)
|
235
|
+
( parseInt( closestHandle.css( "borderTopWidth" ), 10 ) || 0 ) -
|
236
|
+
( parseInt( closestHandle.css( "borderBottomWidth" ), 10 ) || 0 ) +
|
237
|
+
( parseInt( closestHandle.css( "marginTop" ), 10 ) || 0 )
|
220
238
|
};
|
221
239
|
|
222
240
|
if ( !this.handles.hasClass( "ui-state-hover" ) ) {
|
@@ -240,7 +258,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
240
258
|
},
|
241
259
|
|
242
260
|
_mouseStop: function( event ) {
|
243
|
-
this.
|
261
|
+
this._removeClass( this.handles, null, "ui-state-active" );
|
244
262
|
this._mouseSliding = false;
|
245
263
|
|
246
264
|
this._stop( event, this._handleIndex );
|
@@ -266,10 +284,12 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
266
284
|
|
267
285
|
if ( this.orientation === "horizontal" ) {
|
268
286
|
pixelTotal = this.elementSize.width;
|
269
|
-
pixelMouse = position.x - this.elementOffset.left -
|
287
|
+
pixelMouse = position.x - this.elementOffset.left -
|
288
|
+
( this._clickOffset ? this._clickOffset.left : 0 );
|
270
289
|
} else {
|
271
290
|
pixelTotal = this.elementSize.height;
|
272
|
-
pixelMouse = position.y - this.elementOffset.top -
|
291
|
+
pixelMouse = position.y - this.elementOffset.top -
|
292
|
+
( this._clickOffset ? this._clickOffset.top : 0 );
|
273
293
|
}
|
274
294
|
|
275
295
|
percentMouse = ( pixelMouse / pixelTotal );
|
@@ -289,88 +309,73 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
289
309
|
return this._trimAlignValue( valueMouse );
|
290
310
|
},
|
291
311
|
|
292
|
-
|
312
|
+
_uiHash: function( index, value, values ) {
|
293
313
|
var uiHash = {
|
294
314
|
handle: this.handles[ index ],
|
295
|
-
|
315
|
+
handleIndex: index,
|
316
|
+
value: value !== undefined ? value : this.value()
|
296
317
|
};
|
297
|
-
|
298
|
-
|
299
|
-
uiHash.
|
318
|
+
|
319
|
+
if ( this._hasMultipleValues() ) {
|
320
|
+
uiHash.value = value !== undefined ? value : this.values( index );
|
321
|
+
uiHash.values = values || this.values();
|
300
322
|
}
|
301
|
-
|
323
|
+
|
324
|
+
return uiHash;
|
325
|
+
},
|
326
|
+
|
327
|
+
_hasMultipleValues: function() {
|
328
|
+
return this.options.values && this.options.values.length;
|
329
|
+
},
|
330
|
+
|
331
|
+
_start: function( event, index ) {
|
332
|
+
return this._trigger( "start", event, this._uiHash( index ) );
|
302
333
|
},
|
303
334
|
|
304
335
|
_slide: function( event, index, newVal ) {
|
305
|
-
var otherVal,
|
306
|
-
|
307
|
-
|
336
|
+
var allowed, otherVal,
|
337
|
+
currentValue = this.value(),
|
338
|
+
newValues = this.values();
|
308
339
|
|
309
|
-
if ( this.
|
340
|
+
if ( this._hasMultipleValues() ) {
|
310
341
|
otherVal = this.values( index ? 0 : 1 );
|
342
|
+
currentValue = this.values( index );
|
311
343
|
|
312
|
-
if (
|
313
|
-
|
314
|
-
) {
|
315
|
-
newVal = otherVal;
|
344
|
+
if ( this.options.values.length === 2 && this.options.range === true ) {
|
345
|
+
newVal = index === 0 ? Math.min( otherVal, newVal ) : Math.max( otherVal, newVal );
|
316
346
|
}
|
317
347
|
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
348
|
+
newValues[ index ] = newVal;
|
349
|
+
}
|
350
|
+
|
351
|
+
if ( newVal === currentValue ) {
|
352
|
+
return;
|
353
|
+
}
|
354
|
+
|
355
|
+
allowed = this._trigger( "slide", event, this._uiHash( index, newVal, newValues ) );
|
356
|
+
|
357
|
+
// A slide can be canceled by returning false from the slide callback
|
358
|
+
if ( allowed === false ) {
|
359
|
+
return;
|
360
|
+
}
|
361
|
+
|
362
|
+
if ( this._hasMultipleValues() ) {
|
363
|
+
this.values( index, newVal );
|
332
364
|
} else {
|
333
|
-
|
334
|
-
// A slide can be canceled by returning false from the slide callback
|
335
|
-
allowed = this._trigger( "slide", event, {
|
336
|
-
handle: this.handles[ index ],
|
337
|
-
value: newVal
|
338
|
-
} );
|
339
|
-
if ( allowed !== false ) {
|
340
|
-
this.value( newVal );
|
341
|
-
}
|
342
|
-
}
|
365
|
+
this.value( newVal );
|
343
366
|
}
|
344
367
|
},
|
345
368
|
|
346
369
|
_stop: function( event, index ) {
|
347
|
-
|
348
|
-
handle: this.handles[ index ],
|
349
|
-
value: this.value()
|
350
|
-
};
|
351
|
-
if ( this.options.values && this.options.values.length ) {
|
352
|
-
uiHash.value = this.values( index );
|
353
|
-
uiHash.values = this.values();
|
354
|
-
}
|
355
|
-
|
356
|
-
this._trigger( "stop", event, uiHash );
|
370
|
+
this._trigger( "stop", event, this._uiHash( index ) );
|
357
371
|
},
|
358
372
|
|
359
373
|
_change: function( event, index ) {
|
360
374
|
if ( !this._keySliding && !this._mouseSliding ) {
|
361
|
-
var uiHash = {
|
362
|
-
handle: this.handles[ index ],
|
363
|
-
value: this.value()
|
364
|
-
};
|
365
|
-
if ( this.options.values && this.options.values.length ) {
|
366
|
-
uiHash.value = this.values( index );
|
367
|
-
uiHash.values = this.values();
|
368
|
-
}
|
369
375
|
|
370
376
|
//store the last changed value index for reference when handles overlap
|
371
377
|
this._lastChangedValue = index;
|
372
|
-
|
373
|
-
this._trigger( "change", event, uiHash );
|
378
|
+
this._trigger( "change", event, this._uiHash( index ) );
|
374
379
|
}
|
375
380
|
},
|
376
381
|
|
@@ -398,7 +403,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
398
403
|
}
|
399
404
|
|
400
405
|
if ( arguments.length ) {
|
401
|
-
if (
|
406
|
+
if ( Array.isArray( arguments[ 0 ] ) ) {
|
402
407
|
vals = this.options.values;
|
403
408
|
newValues = arguments[ 0 ];
|
404
409
|
for ( i = 0; i < vals.length; i += 1 ) {
|
@@ -407,7 +412,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
407
412
|
}
|
408
413
|
this._refreshValue();
|
409
414
|
} else {
|
410
|
-
if ( this.
|
415
|
+
if ( this._hasMultipleValues() ) {
|
411
416
|
return this._values( index );
|
412
417
|
} else {
|
413
418
|
return this.value();
|
@@ -427,24 +432,29 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
427
432
|
this.options.value = this._values( 0 );
|
428
433
|
this.options.values = null;
|
429
434
|
} else if ( value === "max" ) {
|
430
|
-
this.options.value = this._values( this.options.values.length-1 );
|
435
|
+
this.options.value = this._values( this.options.values.length - 1 );
|
431
436
|
this.options.values = null;
|
432
437
|
}
|
433
438
|
}
|
434
439
|
|
435
|
-
if (
|
440
|
+
if ( Array.isArray( this.options.values ) ) {
|
436
441
|
valsLength = this.options.values.length;
|
437
442
|
}
|
438
443
|
|
439
|
-
|
444
|
+
this._super( key, value );
|
440
445
|
|
441
446
|
switch ( key ) {
|
442
447
|
case "orientation":
|
443
448
|
this._detectOrientation();
|
444
|
-
this.
|
445
|
-
.
|
446
|
-
.addClass( "ui-slider-" + this.orientation );
|
449
|
+
this._removeClass( "ui-slider-horizontal ui-slider-vertical" )
|
450
|
+
._addClass( "ui-slider-" + this.orientation );
|
447
451
|
this._refreshValue();
|
452
|
+
if ( this.options.range ) {
|
453
|
+
this._refreshRange( value );
|
454
|
+
}
|
455
|
+
|
456
|
+
// Reset positioning from previous orientation
|
457
|
+
this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
|
448
458
|
break;
|
449
459
|
case "value":
|
450
460
|
this._animateOff = true;
|
@@ -455,14 +465,18 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
455
465
|
case "values":
|
456
466
|
this._animateOff = true;
|
457
467
|
this._refreshValue();
|
458
|
-
|
468
|
+
|
469
|
+
// Start from the last handle to prevent unreachable handles (#9046)
|
470
|
+
for ( i = valsLength - 1; i >= 0; i-- ) {
|
459
471
|
this._change( null, i );
|
460
472
|
}
|
461
473
|
this._animateOff = false;
|
462
474
|
break;
|
475
|
+
case "step":
|
463
476
|
case "min":
|
464
477
|
case "max":
|
465
478
|
this._animateOff = true;
|
479
|
+
this._calculateNewMax();
|
466
480
|
this._refreshValue();
|
467
481
|
this._animateOff = false;
|
468
482
|
break;
|
@@ -474,6 +488,12 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
474
488
|
}
|
475
489
|
},
|
476
490
|
|
491
|
+
_setOptionDisabled: function( value ) {
|
492
|
+
this._super( value );
|
493
|
+
|
494
|
+
this._toggleClass( null, "ui-state-disabled", !!value );
|
495
|
+
},
|
496
|
+
|
477
497
|
//internal value getter
|
478
498
|
// _value() returns value trimmed by min and max, aligned by step
|
479
499
|
_value: function() {
|
@@ -496,11 +516,12 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
496
516
|
val = this._trimAlignValue( val );
|
497
517
|
|
498
518
|
return val;
|
499
|
-
} else if ( this.
|
519
|
+
} else if ( this._hasMultipleValues() ) {
|
520
|
+
|
500
521
|
// .slice() creates a copy of the array
|
501
522
|
// this copy gets trimmed by min and max and then returned
|
502
523
|
vals = this.options.values.slice();
|
503
|
-
for ( i = 0; i < vals.length; i+= 1) {
|
524
|
+
for ( i = 0; i < vals.length; i += 1 ) {
|
504
525
|
vals[ i ] = this._trimAlignValue( vals[ i ] );
|
505
526
|
}
|
506
527
|
|
@@ -510,7 +531,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
510
531
|
}
|
511
532
|
},
|
512
533
|
|
513
|
-
//
|
534
|
+
// Returns the step-aligned value that val is closest to, between (inclusive) min and max
|
514
535
|
_trimAlignValue: function( val ) {
|
515
536
|
if ( val <= this._valueMin() ) {
|
516
537
|
return this._valueMin();
|
@@ -519,16 +540,44 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
519
540
|
return this._valueMax();
|
520
541
|
}
|
521
542
|
var step = ( this.options.step > 0 ) ? this.options.step : 1,
|
522
|
-
valModStep = (val - this._valueMin()) % step,
|
543
|
+
valModStep = ( val - this._valueMin() ) % step,
|
523
544
|
alignValue = val - valModStep;
|
524
545
|
|
525
|
-
if ( Math.abs(valModStep) * 2 >= step ) {
|
546
|
+
if ( Math.abs( valModStep ) * 2 >= step ) {
|
526
547
|
alignValue += ( valModStep > 0 ) ? step : ( -step );
|
527
548
|
}
|
528
549
|
|
529
550
|
// Since JavaScript has problems with large floats, round
|
530
551
|
// the final value to 5 digits after the decimal point (see #4124)
|
531
|
-
return parseFloat( alignValue.toFixed(5) );
|
552
|
+
return parseFloat( alignValue.toFixed( 5 ) );
|
553
|
+
},
|
554
|
+
|
555
|
+
_calculateNewMax: function() {
|
556
|
+
var max = this.options.max,
|
557
|
+
min = this._valueMin(),
|
558
|
+
step = this.options.step,
|
559
|
+
aboveMin = Math.round( ( max - min ) / step ) * step;
|
560
|
+
max = aboveMin + min;
|
561
|
+
if ( max > this.options.max ) {
|
562
|
+
|
563
|
+
//If max is not divisible by step, rounding off may increase its value
|
564
|
+
max -= step;
|
565
|
+
}
|
566
|
+
this.max = parseFloat( max.toFixed( this._precision() ) );
|
567
|
+
},
|
568
|
+
|
569
|
+
_precision: function() {
|
570
|
+
var precision = this._precisionOf( this.options.step );
|
571
|
+
if ( this.options.min !== null ) {
|
572
|
+
precision = Math.max( precision, this._precisionOf( this.options.min ) );
|
573
|
+
}
|
574
|
+
return precision;
|
575
|
+
},
|
576
|
+
|
577
|
+
_precisionOf: function( num ) {
|
578
|
+
var str = num.toString(),
|
579
|
+
decimal = str.indexOf( "." );
|
580
|
+
return decimal === -1 ? 0 : str.length - decimal - 1;
|
532
581
|
},
|
533
582
|
|
534
583
|
_valueMin: function() {
|
@@ -536,7 +585,16 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
536
585
|
},
|
537
586
|
|
538
587
|
_valueMax: function() {
|
539
|
-
return this.
|
588
|
+
return this.max;
|
589
|
+
},
|
590
|
+
|
591
|
+
_refreshRange: function( orientation ) {
|
592
|
+
if ( orientation === "vertical" ) {
|
593
|
+
this.range.css( { "width": "", "left": "" } );
|
594
|
+
}
|
595
|
+
if ( orientation === "horizontal" ) {
|
596
|
+
this.range.css( { "height": "", "bottom": "" } );
|
597
|
+
}
|
540
598
|
},
|
541
599
|
|
542
600
|
_refreshValue: function() {
|
@@ -547,30 +605,45 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
547
605
|
animate = ( !this._animateOff ) ? o.animate : false,
|
548
606
|
_set = {};
|
549
607
|
|
550
|
-
if ( this.
|
551
|
-
this.handles.each(function( i ) {
|
552
|
-
valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() -
|
608
|
+
if ( this._hasMultipleValues() ) {
|
609
|
+
this.handles.each( function( i ) {
|
610
|
+
valPercent = ( that.values( i ) - that._valueMin() ) / ( that._valueMax() -
|
611
|
+
that._valueMin() ) * 100;
|
553
612
|
_set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";
|
554
613
|
$( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
|
555
614
|
if ( that.options.range === true ) {
|
556
615
|
if ( that.orientation === "horizontal" ) {
|
557
616
|
if ( i === 0 ) {
|
558
|
-
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
617
|
+
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
618
|
+
left: valPercent + "%"
|
619
|
+
}, o.animate );
|
559
620
|
}
|
560
621
|
if ( i === 1 ) {
|
561
|
-
that.range[ animate ? "animate" : "css" ]( {
|
622
|
+
that.range[ animate ? "animate" : "css" ]( {
|
623
|
+
width: ( valPercent - lastValPercent ) + "%"
|
624
|
+
}, {
|
625
|
+
queue: false,
|
626
|
+
duration: o.animate
|
627
|
+
} );
|
562
628
|
}
|
563
629
|
} else {
|
564
630
|
if ( i === 0 ) {
|
565
|
-
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
631
|
+
that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
632
|
+
bottom: ( valPercent ) + "%"
|
633
|
+
}, o.animate );
|
566
634
|
}
|
567
635
|
if ( i === 1 ) {
|
568
|
-
that.range[ animate ? "animate" : "css" ]( {
|
636
|
+
that.range[ animate ? "animate" : "css" ]( {
|
637
|
+
height: ( valPercent - lastValPercent ) + "%"
|
638
|
+
}, {
|
639
|
+
queue: false,
|
640
|
+
duration: o.animate
|
641
|
+
} );
|
569
642
|
}
|
570
643
|
}
|
571
644
|
}
|
572
645
|
lastValPercent = valPercent;
|
573
|
-
});
|
646
|
+
} );
|
574
647
|
} else {
|
575
648
|
value = this.value();
|
576
649
|
valueMin = this._valueMin();
|
@@ -582,16 +655,24 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
582
655
|
this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );
|
583
656
|
|
584
657
|
if ( oRange === "min" && this.orientation === "horizontal" ) {
|
585
|
-
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
658
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
659
|
+
width: valPercent + "%"
|
660
|
+
}, o.animate );
|
586
661
|
}
|
587
662
|
if ( oRange === "max" && this.orientation === "horizontal" ) {
|
588
|
-
this.range[ animate ? "animate" : "css" ]( {
|
663
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
664
|
+
width: ( 100 - valPercent ) + "%"
|
665
|
+
}, o.animate );
|
589
666
|
}
|
590
667
|
if ( oRange === "min" && this.orientation === "vertical" ) {
|
591
|
-
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
668
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
669
|
+
height: valPercent + "%"
|
670
|
+
}, o.animate );
|
592
671
|
}
|
593
672
|
if ( oRange === "max" && this.orientation === "vertical" ) {
|
594
|
-
this.range[ animate ? "animate" : "css" ]( {
|
673
|
+
this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( {
|
674
|
+
height: ( 100 - valPercent ) + "%"
|
675
|
+
}, o.animate );
|
595
676
|
}
|
596
677
|
}
|
597
678
|
},
|
@@ -613,7 +694,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
613
694
|
event.preventDefault();
|
614
695
|
if ( !this._keySliding ) {
|
615
696
|
this._keySliding = true;
|
616
|
-
$( event.target )
|
697
|
+
this._addClass( $( event.target ), null, "ui-state-active" );
|
617
698
|
allowed = this._start( event, index );
|
618
699
|
if ( allowed === false ) {
|
619
700
|
return;
|
@@ -623,7 +704,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
623
704
|
}
|
624
705
|
|
625
706
|
step = this.options.step;
|
626
|
-
if ( this.
|
707
|
+
if ( this._hasMultipleValues() ) {
|
627
708
|
curVal = newVal = this.values( index );
|
628
709
|
} else {
|
629
710
|
curVal = newVal = this.value();
|
@@ -637,10 +718,13 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
637
718
|
newVal = this._valueMax();
|
638
719
|
break;
|
639
720
|
case $.ui.keyCode.PAGE_UP:
|
640
|
-
newVal = this._trimAlignValue(
|
721
|
+
newVal = this._trimAlignValue(
|
722
|
+
curVal + ( ( this._valueMax() - this._valueMin() ) / this.numPages )
|
723
|
+
);
|
641
724
|
break;
|
642
725
|
case $.ui.keyCode.PAGE_DOWN:
|
643
|
-
newVal = this._trimAlignValue(
|
726
|
+
newVal = this._trimAlignValue(
|
727
|
+
curVal - ( ( this._valueMax() - this._valueMin() ) / this.numPages ) );
|
644
728
|
break;
|
645
729
|
case $.ui.keyCode.UP:
|
646
730
|
case $.ui.keyCode.RIGHT:
|
@@ -660,9 +744,6 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
660
744
|
|
661
745
|
this._slide( event, index, newVal );
|
662
746
|
},
|
663
|
-
click: function( event ) {
|
664
|
-
event.preventDefault();
|
665
|
-
},
|
666
747
|
keyup: function( event ) {
|
667
748
|
var index = $( event.target ).data( "ui-slider-handle-index" );
|
668
749
|
|
@@ -670,11 +751,10 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
670
751
|
this._keySliding = false;
|
671
752
|
this._stop( event, index );
|
672
753
|
this._change( event, index );
|
673
|
-
$( event.target )
|
754
|
+
this._removeClass( $( event.target ), null, "ui-state-active" );
|
674
755
|
}
|
675
756
|
}
|
676
757
|
}
|
758
|
+
} );
|
677
759
|
|
678
|
-
});
|
679
|
-
|
680
|
-
}(jQuery));
|
760
|
+
} );
|