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