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,25 +1,48 @@
|
|
1
|
-
//= require jquery
|
2
|
-
//= require jquery
|
3
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/widgets/button
|
2
|
+
//= require jquery-ui/version
|
3
|
+
//= require jquery-ui/keycode
|
4
|
+
//= require jquery-ui/widget
|
4
5
|
|
5
6
|
/*!
|
6
|
-
* jQuery UI Spinner 1.
|
7
|
-
*
|
7
|
+
* jQuery UI Spinner 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/spinner/
|
14
|
-
*
|
15
|
-
* Depends:
|
16
|
-
* jquery.ui.core.js
|
17
|
-
* jquery.ui.widget.js
|
18
|
-
* jquery.ui.button.js
|
12
|
+
* https://jquery.org/license
|
19
13
|
*/
|
20
|
-
(function( $ ) {
|
21
14
|
|
22
|
-
|
15
|
+
//>>label: Spinner
|
16
|
+
//>>group: Widgets
|
17
|
+
//>>description: Displays buttons to easily input numbers via the keyboard or mouse.
|
18
|
+
//>>docs: https://api.jqueryui.com/spinner/
|
19
|
+
//>>demos: https://jqueryui.com/spinner/
|
20
|
+
//>>css.structure: ../../themes/base/core.css
|
21
|
+
//>>css.structure: ../../themes/base/spinner.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
|
+
"./button",
|
33
|
+
"../version",
|
34
|
+
"../keycode",
|
35
|
+
"../widget"
|
36
|
+
], factory );
|
37
|
+
} else {
|
38
|
+
|
39
|
+
// Browser globals
|
40
|
+
factory( jQuery );
|
41
|
+
}
|
42
|
+
} )( function( $ ) {
|
43
|
+
"use strict";
|
44
|
+
|
45
|
+
function spinnerModifier( fn ) {
|
23
46
|
return function() {
|
24
47
|
var previous = this.element.val();
|
25
48
|
fn.apply( this, arguments );
|
@@ -31,10 +54,15 @@ function modifier( fn ) {
|
|
31
54
|
}
|
32
55
|
|
33
56
|
$.widget( "ui.spinner", {
|
34
|
-
version: "1.
|
57
|
+
version: "1.14.1",
|
35
58
|
defaultElement: "<input>",
|
36
59
|
widgetEventPrefix: "spin",
|
37
60
|
options: {
|
61
|
+
classes: {
|
62
|
+
"ui-spinner": "ui-corner-all",
|
63
|
+
"ui-spinner-down": "ui-corner-br",
|
64
|
+
"ui-spinner-up": "ui-corner-tr"
|
65
|
+
},
|
38
66
|
culture: null,
|
39
67
|
icons: {
|
40
68
|
down: "ui-icon-triangle-1-s",
|
@@ -54,6 +82,7 @@ $.widget( "ui.spinner", {
|
|
54
82
|
},
|
55
83
|
|
56
84
|
_create: function() {
|
85
|
+
|
57
86
|
// handle string values that need to be parsed
|
58
87
|
this._setOption( "max", this.options.max );
|
59
88
|
this._setOption( "min", this.options.min );
|
@@ -62,6 +91,7 @@ $.widget( "ui.spinner", {
|
|
62
91
|
// Only format if there is a value, prevents the field from being marked
|
63
92
|
// as invalid in Firefox, see #9573.
|
64
93
|
if ( this.value() !== "" ) {
|
94
|
+
|
65
95
|
// Format the value, but don't constrain.
|
66
96
|
this._value( this.element.val(), true );
|
67
97
|
}
|
@@ -70,26 +100,26 @@ $.widget( "ui.spinner", {
|
|
70
100
|
this._on( this._events );
|
71
101
|
this._refresh();
|
72
102
|
|
73
|
-
//
|
103
|
+
// Turning off autocomplete prevents the browser from remembering the
|
74
104
|
// value when navigating through history, so we re-enable autocomplete
|
75
105
|
// if the page is unloaded before the widget is destroyed. #7790
|
76
106
|
this._on( this.window, {
|
77
107
|
beforeunload: function() {
|
78
108
|
this.element.removeAttr( "autocomplete" );
|
79
109
|
}
|
80
|
-
});
|
110
|
+
} );
|
81
111
|
},
|
82
112
|
|
83
113
|
_getCreateOptions: function() {
|
84
|
-
var options =
|
85
|
-
|
114
|
+
var options = this._super();
|
115
|
+
var element = this.element;
|
86
116
|
|
87
117
|
$.each( [ "min", "max", "step" ], function( i, option ) {
|
88
118
|
var value = element.attr( option );
|
89
|
-
if ( value
|
119
|
+
if ( value != null && value.length ) {
|
90
120
|
options[ option ] = value;
|
91
121
|
}
|
92
|
-
});
|
122
|
+
} );
|
93
123
|
|
94
124
|
return options;
|
95
125
|
},
|
@@ -105,11 +135,6 @@ $.widget( "ui.spinner", {
|
|
105
135
|
this.previous = this.element.val();
|
106
136
|
},
|
107
137
|
blur: function( event ) {
|
108
|
-
if ( this.cancelBlur ) {
|
109
|
-
delete this.cancelBlur;
|
110
|
-
return;
|
111
|
-
}
|
112
|
-
|
113
138
|
this._stop();
|
114
139
|
this._refresh();
|
115
140
|
if ( this.previous !== this.element.val() ) {
|
@@ -117,16 +142,20 @@ $.widget( "ui.spinner", {
|
|
117
142
|
}
|
118
143
|
},
|
119
144
|
mousewheel: function( event, delta ) {
|
120
|
-
|
145
|
+
var activeElement = this.document[ 0 ].activeElement;
|
146
|
+
var isActive = this.element[ 0 ] === activeElement;
|
147
|
+
|
148
|
+
if ( !isActive || !delta ) {
|
121
149
|
return;
|
122
150
|
}
|
151
|
+
|
123
152
|
if ( !this.spinning && !this._start( event ) ) {
|
124
153
|
return false;
|
125
154
|
}
|
126
155
|
|
127
|
-
this._spin( (delta > 0 ? 1 : -1) * this.options.step, event );
|
156
|
+
this._spin( ( delta > 0 ? 1 : -1 ) * this.options.step, event );
|
128
157
|
clearTimeout( this.mousewheelTimer );
|
129
|
-
this.mousewheelTimer = this._delay(function() {
|
158
|
+
this.mousewheelTimer = this._delay( function() {
|
130
159
|
if ( this.spinning ) {
|
131
160
|
this._stop( event );
|
132
161
|
}
|
@@ -141,44 +170,30 @@ $.widget( "ui.spinner", {
|
|
141
170
|
// If the input is focused then this.previous is properly set from
|
142
171
|
// when the input first received focus. If the input is not focused
|
143
172
|
// then we need to set this.previous based on the value before spinning.
|
144
|
-
previous = this.element[0] === this.document[0].activeElement ?
|
173
|
+
previous = this.element[ 0 ] === this.document[ 0 ].activeElement ?
|
145
174
|
this.previous : this.element.val();
|
146
175
|
function checkFocus() {
|
147
|
-
var isActive = this.element[0] === this.document[0].activeElement;
|
176
|
+
var isActive = this.element[ 0 ] === this.document[ 0 ].activeElement;
|
148
177
|
if ( !isActive ) {
|
149
|
-
this.element.focus
|
178
|
+
this.element.trigger( "focus" );
|
150
179
|
this.previous = previous;
|
151
|
-
// support: IE
|
152
|
-
// IE sets focus asynchronously, so we need to check if focus
|
153
|
-
// moved off of the input because the user clicked on the button.
|
154
|
-
this._delay(function() {
|
155
|
-
this.previous = previous;
|
156
|
-
});
|
157
180
|
}
|
158
181
|
}
|
159
182
|
|
160
|
-
//
|
183
|
+
// Ensure focus is on (or stays on) the text field
|
161
184
|
event.preventDefault();
|
162
185
|
checkFocus.call( this );
|
163
186
|
|
164
|
-
// support: IE
|
165
|
-
// IE doesn't prevent moving focus even with event.preventDefault()
|
166
|
-
// so we set a flag to know when we should ignore the blur event
|
167
|
-
// and check (again) if focus moved off of the input.
|
168
|
-
this.cancelBlur = true;
|
169
|
-
this._delay(function() {
|
170
|
-
delete this.cancelBlur;
|
171
|
-
checkFocus.call( this );
|
172
|
-
});
|
173
|
-
|
174
187
|
if ( this._start( event ) === false ) {
|
175
188
|
return;
|
176
189
|
}
|
177
190
|
|
178
|
-
this._repeat( null, $( event.currentTarget )
|
191
|
+
this._repeat( null, $( event.currentTarget )
|
192
|
+
.hasClass( "ui-spinner-up" ) ? 1 : -1, event );
|
179
193
|
},
|
180
194
|
"mouseup .ui-spinner-button": "_stop",
|
181
195
|
"mouseenter .ui-spinner-button": function( event ) {
|
196
|
+
|
182
197
|
// button will add ui-state-active if mouse was down while mouseleave and kept down
|
183
198
|
if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) {
|
184
199
|
return;
|
@@ -187,41 +202,66 @@ $.widget( "ui.spinner", {
|
|
187
202
|
if ( this._start( event ) === false ) {
|
188
203
|
return false;
|
189
204
|
}
|
190
|
-
this._repeat( null, $( event.currentTarget )
|
205
|
+
this._repeat( null, $( event.currentTarget )
|
206
|
+
.hasClass( "ui-spinner-up" ) ? 1 : -1, event );
|
191
207
|
},
|
208
|
+
|
192
209
|
// TODO: do we really want to consider this a stop?
|
193
210
|
// shouldn't we just stop the repeater and wait until mouseup before
|
194
211
|
// we trigger the stop event?
|
195
212
|
"mouseleave .ui-spinner-button": "_stop"
|
196
213
|
},
|
197
214
|
|
198
|
-
|
199
|
-
|
200
|
-
|
215
|
+
// Support mobile enhanced option and make backcompat more sane
|
216
|
+
_enhance: function() {
|
217
|
+
this.uiSpinner = this.element
|
201
218
|
.attr( "autocomplete", "off" )
|
202
|
-
.wrap(
|
219
|
+
.wrap( "<span>" )
|
203
220
|
.parent()
|
204
|
-
|
205
|
-
|
221
|
+
|
222
|
+
// Add buttons
|
223
|
+
.append(
|
224
|
+
"<a></a><a></a>"
|
225
|
+
);
|
226
|
+
},
|
227
|
+
|
228
|
+
_draw: function() {
|
229
|
+
this._enhance();
|
230
|
+
|
231
|
+
this._addClass( this.uiSpinner, "ui-spinner", "ui-widget ui-widget-content" );
|
232
|
+
this._addClass( "ui-spinner-input" );
|
206
233
|
|
207
234
|
this.element.attr( "role", "spinbutton" );
|
208
235
|
|
209
|
-
//
|
210
|
-
this.buttons = uiSpinner.
|
236
|
+
// Button bindings
|
237
|
+
this.buttons = this.uiSpinner.children( "a" )
|
211
238
|
.attr( "tabIndex", -1 )
|
212
|
-
.
|
213
|
-
.
|
239
|
+
.attr( "aria-hidden", true )
|
240
|
+
.button( {
|
241
|
+
classes: {
|
242
|
+
"ui-button": ""
|
243
|
+
}
|
244
|
+
} );
|
245
|
+
|
246
|
+
// TODO: Right now button does not support classes this is already updated in button PR
|
247
|
+
this._removeClass( this.buttons, "ui-corner-all" );
|
248
|
+
|
249
|
+
this._addClass( this.buttons.first(), "ui-spinner-button ui-spinner-up" );
|
250
|
+
this._addClass( this.buttons.last(), "ui-spinner-button ui-spinner-down" );
|
251
|
+
this.buttons.first().button( {
|
252
|
+
"icon": this.options.icons.up,
|
253
|
+
"showLabel": false
|
254
|
+
} );
|
255
|
+
this.buttons.last().button( {
|
256
|
+
"icon": this.options.icons.down,
|
257
|
+
"showLabel": false
|
258
|
+
} );
|
214
259
|
|
215
260
|
// IE 6 doesn't understand height: 50% for the buttons
|
216
261
|
// unless the wrapper has an explicit height
|
217
|
-
if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&
|
218
|
-
uiSpinner.height() > 0 ) {
|
219
|
-
uiSpinner.height( uiSpinner.height() );
|
220
|
-
}
|
221
|
-
|
222
|
-
// disable spinner if element was already disabled
|
223
|
-
if ( this.options.disabled ) {
|
224
|
-
this.disable();
|
262
|
+
if ( this.buttons.height() > Math.ceil( this.uiSpinner.height() * 0.5 ) &&
|
263
|
+
this.uiSpinner.height() > 0 ) {
|
264
|
+
this.uiSpinner.height( this.uiSpinner.height() );
|
225
265
|
}
|
226
266
|
},
|
227
267
|
|
@@ -247,20 +287,6 @@ $.widget( "ui.spinner", {
|
|
247
287
|
return false;
|
248
288
|
},
|
249
289
|
|
250
|
-
_uiSpinnerHtml: function() {
|
251
|
-
return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";
|
252
|
-
},
|
253
|
-
|
254
|
-
_buttonHtml: function() {
|
255
|
-
return "" +
|
256
|
-
"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>" +
|
257
|
-
"<span class='ui-icon " + this.options.icons.up + "'>▲</span>" +
|
258
|
-
"</a>" +
|
259
|
-
"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>" +
|
260
|
-
"<span class='ui-icon " + this.options.icons.down + "'>▼</span>" +
|
261
|
-
"</a>";
|
262
|
-
},
|
263
|
-
|
264
290
|
_start: function( event ) {
|
265
291
|
if ( !this.spinning && this._trigger( "start", event ) === false ) {
|
266
292
|
return false;
|
@@ -277,7 +303,7 @@ $.widget( "ui.spinner", {
|
|
277
303
|
i = i || 500;
|
278
304
|
|
279
305
|
clearTimeout( this.timer );
|
280
|
-
this.timer = this._delay(function() {
|
306
|
+
this.timer = this._delay( function() {
|
281
307
|
this._repeat( 40, steps, event );
|
282
308
|
}, i );
|
283
309
|
|
@@ -293,7 +319,7 @@ $.widget( "ui.spinner", {
|
|
293
319
|
|
294
320
|
value = this._adjustValue( value + step * this._increment( this.counter ) );
|
295
321
|
|
296
|
-
if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false) {
|
322
|
+
if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false ) {
|
297
323
|
this._value( value );
|
298
324
|
this.counter++;
|
299
325
|
}
|
@@ -303,9 +329,9 @@ $.widget( "ui.spinner", {
|
|
303
329
|
var incremental = this.options.incremental;
|
304
330
|
|
305
331
|
if ( incremental ) {
|
306
|
-
return
|
332
|
+
return typeof incremental === "function" ?
|
307
333
|
incremental( i ) :
|
308
|
-
Math.floor( i*i*i/50000 - i*i/500 + 17*i/200 + 1 );
|
334
|
+
Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 );
|
309
335
|
}
|
310
336
|
|
311
337
|
return 1;
|
@@ -329,20 +355,22 @@ $.widget( "ui.spinner", {
|
|
329
355
|
var base, aboveMin,
|
330
356
|
options = this.options;
|
331
357
|
|
332
|
-
//
|
358
|
+
// Make sure we're at a valid step
|
333
359
|
// - find out where we are relative to the base (min or 0)
|
334
360
|
base = options.min !== null ? options.min : 0;
|
335
361
|
aboveMin = value - base;
|
362
|
+
|
336
363
|
// - round to the nearest step
|
337
|
-
aboveMin = Math.round(aboveMin / options.step) * options.step;
|
364
|
+
aboveMin = Math.round( aboveMin / options.step ) * options.step;
|
365
|
+
|
338
366
|
// - rounding is based on 0, so adjust back to our base
|
339
367
|
value = base + aboveMin;
|
340
368
|
|
341
|
-
//
|
369
|
+
// Fix precision from bad JS floating point math
|
342
370
|
value = parseFloat( value.toFixed( this._precision() ) );
|
343
371
|
|
344
|
-
//
|
345
|
-
if ( options.max !== null && value > options.max) {
|
372
|
+
// Clamp the value
|
373
|
+
if ( options.max !== null && value > options.max ) {
|
346
374
|
return options.max;
|
347
375
|
}
|
348
376
|
if ( options.min !== null && value < options.min ) {
|
@@ -365,8 +393,10 @@ $.widget( "ui.spinner", {
|
|
365
393
|
},
|
366
394
|
|
367
395
|
_setOption: function( key, value ) {
|
396
|
+
var prevValue, first, last;
|
397
|
+
|
368
398
|
if ( key === "culture" || key === "numberFormat" ) {
|
369
|
-
|
399
|
+
prevValue = this._parse( this.element.val() );
|
370
400
|
this.options[ key ] = value;
|
371
401
|
this.element.val( this._format( prevValue ) );
|
372
402
|
return;
|
@@ -378,31 +408,28 @@ $.widget( "ui.spinner", {
|
|
378
408
|
}
|
379
409
|
}
|
380
410
|
if ( key === "icons" ) {
|
381
|
-
this.buttons.first().find( ".ui-icon" )
|
382
|
-
|
383
|
-
|
384
|
-
this.buttons.last().find( ".ui-icon" )
|
385
|
-
|
386
|
-
|
411
|
+
first = this.buttons.first().find( ".ui-icon" );
|
412
|
+
this._removeClass( first, null, this.options.icons.up );
|
413
|
+
this._addClass( first, null, value.up );
|
414
|
+
last = this.buttons.last().find( ".ui-icon" );
|
415
|
+
this._removeClass( last, null, this.options.icons.down );
|
416
|
+
this._addClass( last, null, value.down );
|
387
417
|
}
|
388
418
|
|
389
419
|
this._super( key, value );
|
420
|
+
},
|
390
421
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
this.buttons.button( "enable" );
|
398
|
-
}
|
399
|
-
}
|
422
|
+
_setOptionDisabled: function( value ) {
|
423
|
+
this._super( value );
|
424
|
+
|
425
|
+
this._toggleClass( this.uiSpinner, null, "ui-state-disabled", !!value );
|
426
|
+
this.element.prop( "disabled", !!value );
|
427
|
+
this.buttons.button( value ? "disable" : "enable" );
|
400
428
|
},
|
401
429
|
|
402
|
-
_setOptions:
|
430
|
+
_setOptions: spinnerModifier( function( options ) {
|
403
431
|
this._super( options );
|
404
|
-
|
405
|
-
}),
|
432
|
+
} ),
|
406
433
|
|
407
434
|
_parse: function( val ) {
|
408
435
|
if ( typeof val === "string" && val !== "" ) {
|
@@ -422,15 +449,28 @@ $.widget( "ui.spinner", {
|
|
422
449
|
},
|
423
450
|
|
424
451
|
_refresh: function() {
|
425
|
-
this.element.attr({
|
452
|
+
this.element.attr( {
|
426
453
|
"aria-valuemin": this.options.min,
|
427
454
|
"aria-valuemax": this.options.max,
|
455
|
+
|
428
456
|
// TODO: what should we do with values that can't be parsed?
|
429
457
|
"aria-valuenow": this._parse( this.element.val() )
|
430
|
-
});
|
458
|
+
} );
|
459
|
+
},
|
460
|
+
|
461
|
+
isValid: function() {
|
462
|
+
var value = this.value();
|
463
|
+
|
464
|
+
// Null is invalid
|
465
|
+
if ( value === null ) {
|
466
|
+
return false;
|
467
|
+
}
|
468
|
+
|
469
|
+
// If value gets adjusted, it's invalid
|
470
|
+
return value === this._adjustValue( value );
|
431
471
|
},
|
432
472
|
|
433
|
-
//
|
473
|
+
// Update the value without triggering change
|
434
474
|
_value: function( value, allowAny ) {
|
435
475
|
var parsed;
|
436
476
|
if ( value !== "" ) {
|
@@ -448,54 +488,77 @@ $.widget( "ui.spinner", {
|
|
448
488
|
|
449
489
|
_destroy: function() {
|
450
490
|
this.element
|
451
|
-
.removeClass( "ui-spinner-input" )
|
452
491
|
.prop( "disabled", false )
|
453
|
-
.removeAttr( "autocomplete" )
|
454
|
-
|
455
|
-
.removeAttr( "aria-valuemin" )
|
456
|
-
.removeAttr( "aria-valuemax" )
|
457
|
-
.removeAttr( "aria-valuenow" );
|
492
|
+
.removeAttr( "autocomplete role aria-valuemin aria-valuemax aria-valuenow" );
|
493
|
+
|
458
494
|
this.uiSpinner.replaceWith( this.element );
|
459
495
|
},
|
460
496
|
|
461
|
-
stepUp:
|
497
|
+
stepUp: spinnerModifier( function( steps ) {
|
462
498
|
this._stepUp( steps );
|
463
|
-
}),
|
499
|
+
} ),
|
464
500
|
_stepUp: function( steps ) {
|
465
501
|
if ( this._start() ) {
|
466
|
-
this._spin( (steps || 1) * this.options.step );
|
502
|
+
this._spin( ( steps || 1 ) * this.options.step );
|
467
503
|
this._stop();
|
468
504
|
}
|
469
505
|
},
|
470
506
|
|
471
|
-
stepDown:
|
507
|
+
stepDown: spinnerModifier( function( steps ) {
|
472
508
|
this._stepDown( steps );
|
473
|
-
}),
|
509
|
+
} ),
|
474
510
|
_stepDown: function( steps ) {
|
475
511
|
if ( this._start() ) {
|
476
|
-
this._spin( (steps || 1) * -this.options.step );
|
512
|
+
this._spin( ( steps || 1 ) * -this.options.step );
|
477
513
|
this._stop();
|
478
514
|
}
|
479
515
|
},
|
480
516
|
|
481
|
-
pageUp:
|
482
|
-
this._stepUp( (pages || 1) * this.options.page );
|
483
|
-
}),
|
517
|
+
pageUp: spinnerModifier( function( pages ) {
|
518
|
+
this._stepUp( ( pages || 1 ) * this.options.page );
|
519
|
+
} ),
|
484
520
|
|
485
|
-
pageDown:
|
486
|
-
this._stepDown( (pages || 1) * this.options.page );
|
487
|
-
}),
|
521
|
+
pageDown: spinnerModifier( function( pages ) {
|
522
|
+
this._stepDown( ( pages || 1 ) * this.options.page );
|
523
|
+
} ),
|
488
524
|
|
489
525
|
value: function( newVal ) {
|
490
526
|
if ( !arguments.length ) {
|
491
527
|
return this._parse( this.element.val() );
|
492
528
|
}
|
493
|
-
|
529
|
+
spinnerModifier( this._value ).call( this, newVal );
|
494
530
|
},
|
495
531
|
|
496
532
|
widget: function() {
|
497
533
|
return this.uiSpinner;
|
498
534
|
}
|
499
|
-
});
|
535
|
+
} );
|
536
|
+
|
537
|
+
// DEPRECATED
|
538
|
+
// TODO: switch return back to widget declaration at top of file when this is removed
|
539
|
+
if ( $.uiBackCompat === true ) {
|
540
|
+
|
541
|
+
// Backcompat for spinner html extension points
|
542
|
+
$.widget( "ui.spinner", $.ui.spinner, {
|
543
|
+
_enhance: function() {
|
544
|
+
this.uiSpinner = this.element
|
545
|
+
.attr( "autocomplete", "off" )
|
546
|
+
.wrap( this._uiSpinnerHtml() )
|
547
|
+
.parent()
|
548
|
+
|
549
|
+
// Add buttons
|
550
|
+
.append( this._buttonHtml() );
|
551
|
+
},
|
552
|
+
_uiSpinnerHtml: function() {
|
553
|
+
return "<span>";
|
554
|
+
},
|
555
|
+
|
556
|
+
_buttonHtml: function() {
|
557
|
+
return "<a></a><a></a>";
|
558
|
+
}
|
559
|
+
} );
|
560
|
+
}
|
561
|
+
|
562
|
+
return $.ui.spinner;
|
500
563
|
|
501
|
-
}
|
564
|
+
} );
|