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,398 +0,0 @@
|
|
1
|
-
//= require jquery.ui.core
|
2
|
-
//= require jquery.ui.widget
|
3
|
-
|
4
|
-
/*!
|
5
|
-
* jQuery UI Button 1.10.4
|
6
|
-
* http://jqueryui.com
|
7
|
-
*
|
8
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
9
|
-
* Released under the MIT license.
|
10
|
-
* http://jquery.org/license
|
11
|
-
*
|
12
|
-
* http://api.jqueryui.com/button/
|
13
|
-
*
|
14
|
-
* Depends:
|
15
|
-
* jquery.ui.core.js
|
16
|
-
* jquery.ui.widget.js
|
17
|
-
*/
|
18
|
-
(function( $, undefined ) {
|
19
|
-
|
20
|
-
var lastActive,
|
21
|
-
baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
|
22
|
-
typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
|
23
|
-
formResetHandler = function() {
|
24
|
-
var form = $( this );
|
25
|
-
setTimeout(function() {
|
26
|
-
form.find( ":ui-button" ).button( "refresh" );
|
27
|
-
}, 1 );
|
28
|
-
},
|
29
|
-
radioGroup = function( radio ) {
|
30
|
-
var name = radio.name,
|
31
|
-
form = radio.form,
|
32
|
-
radios = $( [] );
|
33
|
-
if ( name ) {
|
34
|
-
name = name.replace( /'/g, "\\'" );
|
35
|
-
if ( form ) {
|
36
|
-
radios = $( form ).find( "[name='" + name + "']" );
|
37
|
-
} else {
|
38
|
-
radios = $( "[name='" + name + "']", radio.ownerDocument )
|
39
|
-
.filter(function() {
|
40
|
-
return !this.form;
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
return radios;
|
45
|
-
};
|
46
|
-
|
47
|
-
$.widget( "ui.button", {
|
48
|
-
version: "1.10.4",
|
49
|
-
defaultElement: "<button>",
|
50
|
-
options: {
|
51
|
-
disabled: null,
|
52
|
-
text: true,
|
53
|
-
label: null,
|
54
|
-
icons: {
|
55
|
-
primary: null,
|
56
|
-
secondary: null
|
57
|
-
}
|
58
|
-
},
|
59
|
-
_create: function() {
|
60
|
-
this.element.closest( "form" )
|
61
|
-
.unbind( "reset" + this.eventNamespace )
|
62
|
-
.bind( "reset" + this.eventNamespace, formResetHandler );
|
63
|
-
|
64
|
-
if ( typeof this.options.disabled !== "boolean" ) {
|
65
|
-
this.options.disabled = !!this.element.prop( "disabled" );
|
66
|
-
} else {
|
67
|
-
this.element.prop( "disabled", this.options.disabled );
|
68
|
-
}
|
69
|
-
|
70
|
-
this._determineButtonType();
|
71
|
-
this.hasTitle = !!this.buttonElement.attr( "title" );
|
72
|
-
|
73
|
-
var that = this,
|
74
|
-
options = this.options,
|
75
|
-
toggleButton = this.type === "checkbox" || this.type === "radio",
|
76
|
-
activeClass = !toggleButton ? "ui-state-active" : "";
|
77
|
-
|
78
|
-
if ( options.label === null ) {
|
79
|
-
options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html());
|
80
|
-
}
|
81
|
-
|
82
|
-
this._hoverable( this.buttonElement );
|
83
|
-
|
84
|
-
this.buttonElement
|
85
|
-
.addClass( baseClasses )
|
86
|
-
.attr( "role", "button" )
|
87
|
-
.bind( "mouseenter" + this.eventNamespace, function() {
|
88
|
-
if ( options.disabled ) {
|
89
|
-
return;
|
90
|
-
}
|
91
|
-
if ( this === lastActive ) {
|
92
|
-
$( this ).addClass( "ui-state-active" );
|
93
|
-
}
|
94
|
-
})
|
95
|
-
.bind( "mouseleave" + this.eventNamespace, function() {
|
96
|
-
if ( options.disabled ) {
|
97
|
-
return;
|
98
|
-
}
|
99
|
-
$( this ).removeClass( activeClass );
|
100
|
-
})
|
101
|
-
.bind( "click" + this.eventNamespace, function( event ) {
|
102
|
-
if ( options.disabled ) {
|
103
|
-
event.preventDefault();
|
104
|
-
event.stopImmediatePropagation();
|
105
|
-
}
|
106
|
-
});
|
107
|
-
|
108
|
-
// Can't use _focusable() because the element that receives focus
|
109
|
-
// and the element that gets the ui-state-focus class are different
|
110
|
-
this._on({
|
111
|
-
focus: function() {
|
112
|
-
this.buttonElement.addClass( "ui-state-focus" );
|
113
|
-
},
|
114
|
-
blur: function() {
|
115
|
-
this.buttonElement.removeClass( "ui-state-focus" );
|
116
|
-
}
|
117
|
-
});
|
118
|
-
|
119
|
-
if ( toggleButton ) {
|
120
|
-
this.element.bind( "change" + this.eventNamespace, function() {
|
121
|
-
that.refresh();
|
122
|
-
});
|
123
|
-
}
|
124
|
-
|
125
|
-
if ( this.type === "checkbox" ) {
|
126
|
-
this.buttonElement.bind( "click" + this.eventNamespace, function() {
|
127
|
-
if ( options.disabled ) {
|
128
|
-
return false;
|
129
|
-
}
|
130
|
-
});
|
131
|
-
} else if ( this.type === "radio" ) {
|
132
|
-
this.buttonElement.bind( "click" + this.eventNamespace, function() {
|
133
|
-
if ( options.disabled ) {
|
134
|
-
return false;
|
135
|
-
}
|
136
|
-
$( this ).addClass( "ui-state-active" );
|
137
|
-
that.buttonElement.attr( "aria-pressed", "true" );
|
138
|
-
|
139
|
-
var radio = that.element[ 0 ];
|
140
|
-
radioGroup( radio )
|
141
|
-
.not( radio )
|
142
|
-
.map(function() {
|
143
|
-
return $( this ).button( "widget" )[ 0 ];
|
144
|
-
})
|
145
|
-
.removeClass( "ui-state-active" )
|
146
|
-
.attr( "aria-pressed", "false" );
|
147
|
-
});
|
148
|
-
} else {
|
149
|
-
this.buttonElement
|
150
|
-
.bind( "mousedown" + this.eventNamespace, function() {
|
151
|
-
if ( options.disabled ) {
|
152
|
-
return false;
|
153
|
-
}
|
154
|
-
$( this ).addClass( "ui-state-active" );
|
155
|
-
lastActive = this;
|
156
|
-
that.document.one( "mouseup", function() {
|
157
|
-
lastActive = null;
|
158
|
-
});
|
159
|
-
})
|
160
|
-
.bind( "mouseup" + this.eventNamespace, function() {
|
161
|
-
if ( options.disabled ) {
|
162
|
-
return false;
|
163
|
-
}
|
164
|
-
$( this ).removeClass( "ui-state-active" );
|
165
|
-
})
|
166
|
-
.bind( "keydown" + this.eventNamespace, function(event) {
|
167
|
-
if ( options.disabled ) {
|
168
|
-
return false;
|
169
|
-
}
|
170
|
-
if ( event.keyCode === $.ui.keyCode.SPACE || event.keyCode === $.ui.keyCode.ENTER ) {
|
171
|
-
$( this ).addClass( "ui-state-active" );
|
172
|
-
}
|
173
|
-
})
|
174
|
-
// see #8559, we bind to blur here in case the button element loses
|
175
|
-
// focus between keydown and keyup, it would be left in an "active" state
|
176
|
-
.bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() {
|
177
|
-
$( this ).removeClass( "ui-state-active" );
|
178
|
-
});
|
179
|
-
|
180
|
-
if ( this.buttonElement.is("a") ) {
|
181
|
-
this.buttonElement.keyup(function(event) {
|
182
|
-
if ( event.keyCode === $.ui.keyCode.SPACE ) {
|
183
|
-
// TODO pass through original event correctly (just as 2nd argument doesn't work)
|
184
|
-
$( this ).click();
|
185
|
-
}
|
186
|
-
});
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
// TODO: pull out $.Widget's handling for the disabled option into
|
191
|
-
// $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
|
192
|
-
// be overridden by individual plugins
|
193
|
-
this._setOption( "disabled", options.disabled );
|
194
|
-
this._resetButton();
|
195
|
-
},
|
196
|
-
|
197
|
-
_determineButtonType: function() {
|
198
|
-
var ancestor, labelSelector, checked;
|
199
|
-
|
200
|
-
if ( this.element.is("[type=checkbox]") ) {
|
201
|
-
this.type = "checkbox";
|
202
|
-
} else if ( this.element.is("[type=radio]") ) {
|
203
|
-
this.type = "radio";
|
204
|
-
} else if ( this.element.is("input") ) {
|
205
|
-
this.type = "input";
|
206
|
-
} else {
|
207
|
-
this.type = "button";
|
208
|
-
}
|
209
|
-
|
210
|
-
if ( this.type === "checkbox" || this.type === "radio" ) {
|
211
|
-
// we don't search against the document in case the element
|
212
|
-
// is disconnected from the DOM
|
213
|
-
ancestor = this.element.parents().last();
|
214
|
-
labelSelector = "label[for='" + this.element.attr("id") + "']";
|
215
|
-
this.buttonElement = ancestor.find( labelSelector );
|
216
|
-
if ( !this.buttonElement.length ) {
|
217
|
-
ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();
|
218
|
-
this.buttonElement = ancestor.filter( labelSelector );
|
219
|
-
if ( !this.buttonElement.length ) {
|
220
|
-
this.buttonElement = ancestor.find( labelSelector );
|
221
|
-
}
|
222
|
-
}
|
223
|
-
this.element.addClass( "ui-helper-hidden-accessible" );
|
224
|
-
|
225
|
-
checked = this.element.is( ":checked" );
|
226
|
-
if ( checked ) {
|
227
|
-
this.buttonElement.addClass( "ui-state-active" );
|
228
|
-
}
|
229
|
-
this.buttonElement.prop( "aria-pressed", checked );
|
230
|
-
} else {
|
231
|
-
this.buttonElement = this.element;
|
232
|
-
}
|
233
|
-
},
|
234
|
-
|
235
|
-
widget: function() {
|
236
|
-
return this.buttonElement;
|
237
|
-
},
|
238
|
-
|
239
|
-
_destroy: function() {
|
240
|
-
this.element
|
241
|
-
.removeClass( "ui-helper-hidden-accessible" );
|
242
|
-
this.buttonElement
|
243
|
-
.removeClass( baseClasses + " ui-state-active " + typeClasses )
|
244
|
-
.removeAttr( "role" )
|
245
|
-
.removeAttr( "aria-pressed" )
|
246
|
-
.html( this.buttonElement.find(".ui-button-text").html() );
|
247
|
-
|
248
|
-
if ( !this.hasTitle ) {
|
249
|
-
this.buttonElement.removeAttr( "title" );
|
250
|
-
}
|
251
|
-
},
|
252
|
-
|
253
|
-
_setOption: function( key, value ) {
|
254
|
-
this._super( key, value );
|
255
|
-
if ( key === "disabled" ) {
|
256
|
-
this.element.prop( "disabled", !!value );
|
257
|
-
if ( value ) {
|
258
|
-
this.buttonElement.removeClass( "ui-state-focus" );
|
259
|
-
}
|
260
|
-
return;
|
261
|
-
}
|
262
|
-
this._resetButton();
|
263
|
-
},
|
264
|
-
|
265
|
-
refresh: function() {
|
266
|
-
//See #8237 & #8828
|
267
|
-
var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );
|
268
|
-
|
269
|
-
if ( isDisabled !== this.options.disabled ) {
|
270
|
-
this._setOption( "disabled", isDisabled );
|
271
|
-
}
|
272
|
-
if ( this.type === "radio" ) {
|
273
|
-
radioGroup( this.element[0] ).each(function() {
|
274
|
-
if ( $( this ).is( ":checked" ) ) {
|
275
|
-
$( this ).button( "widget" )
|
276
|
-
.addClass( "ui-state-active" )
|
277
|
-
.attr( "aria-pressed", "true" );
|
278
|
-
} else {
|
279
|
-
$( this ).button( "widget" )
|
280
|
-
.removeClass( "ui-state-active" )
|
281
|
-
.attr( "aria-pressed", "false" );
|
282
|
-
}
|
283
|
-
});
|
284
|
-
} else if ( this.type === "checkbox" ) {
|
285
|
-
if ( this.element.is( ":checked" ) ) {
|
286
|
-
this.buttonElement
|
287
|
-
.addClass( "ui-state-active" )
|
288
|
-
.attr( "aria-pressed", "true" );
|
289
|
-
} else {
|
290
|
-
this.buttonElement
|
291
|
-
.removeClass( "ui-state-active" )
|
292
|
-
.attr( "aria-pressed", "false" );
|
293
|
-
}
|
294
|
-
}
|
295
|
-
},
|
296
|
-
|
297
|
-
_resetButton: function() {
|
298
|
-
if ( this.type === "input" ) {
|
299
|
-
if ( this.options.label ) {
|
300
|
-
this.element.val( this.options.label );
|
301
|
-
}
|
302
|
-
return;
|
303
|
-
}
|
304
|
-
var buttonElement = this.buttonElement.removeClass( typeClasses ),
|
305
|
-
buttonText = $( "<span></span>", this.document[0] )
|
306
|
-
.addClass( "ui-button-text" )
|
307
|
-
.html( this.options.label )
|
308
|
-
.appendTo( buttonElement.empty() )
|
309
|
-
.text(),
|
310
|
-
icons = this.options.icons,
|
311
|
-
multipleIcons = icons.primary && icons.secondary,
|
312
|
-
buttonClasses = [];
|
313
|
-
|
314
|
-
if ( icons.primary || icons.secondary ) {
|
315
|
-
if ( this.options.text ) {
|
316
|
-
buttonClasses.push( "ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );
|
317
|
-
}
|
318
|
-
|
319
|
-
if ( icons.primary ) {
|
320
|
-
buttonElement.prepend( "<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>" );
|
321
|
-
}
|
322
|
-
|
323
|
-
if ( icons.secondary ) {
|
324
|
-
buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" );
|
325
|
-
}
|
326
|
-
|
327
|
-
if ( !this.options.text ) {
|
328
|
-
buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );
|
329
|
-
|
330
|
-
if ( !this.hasTitle ) {
|
331
|
-
buttonElement.attr( "title", $.trim( buttonText ) );
|
332
|
-
}
|
333
|
-
}
|
334
|
-
} else {
|
335
|
-
buttonClasses.push( "ui-button-text-only" );
|
336
|
-
}
|
337
|
-
buttonElement.addClass( buttonClasses.join( " " ) );
|
338
|
-
}
|
339
|
-
});
|
340
|
-
|
341
|
-
$.widget( "ui.buttonset", {
|
342
|
-
version: "1.10.4",
|
343
|
-
options: {
|
344
|
-
items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
|
345
|
-
},
|
346
|
-
|
347
|
-
_create: function() {
|
348
|
-
this.element.addClass( "ui-buttonset" );
|
349
|
-
},
|
350
|
-
|
351
|
-
_init: function() {
|
352
|
-
this.refresh();
|
353
|
-
},
|
354
|
-
|
355
|
-
_setOption: function( key, value ) {
|
356
|
-
if ( key === "disabled" ) {
|
357
|
-
this.buttons.button( "option", key, value );
|
358
|
-
}
|
359
|
-
|
360
|
-
this._super( key, value );
|
361
|
-
},
|
362
|
-
|
363
|
-
refresh: function() {
|
364
|
-
var rtl = this.element.css( "direction" ) === "rtl";
|
365
|
-
|
366
|
-
this.buttons = this.element.find( this.options.items )
|
367
|
-
.filter( ":ui-button" )
|
368
|
-
.button( "refresh" )
|
369
|
-
.end()
|
370
|
-
.not( ":ui-button" )
|
371
|
-
.button()
|
372
|
-
.end()
|
373
|
-
.map(function() {
|
374
|
-
return $( this ).button( "widget" )[ 0 ];
|
375
|
-
})
|
376
|
-
.removeClass( "ui-corner-all ui-corner-left ui-corner-right" )
|
377
|
-
.filter( ":first" )
|
378
|
-
.addClass( rtl ? "ui-corner-right" : "ui-corner-left" )
|
379
|
-
.end()
|
380
|
-
.filter( ":last" )
|
381
|
-
.addClass( rtl ? "ui-corner-left" : "ui-corner-right" )
|
382
|
-
.end()
|
383
|
-
.end();
|
384
|
-
},
|
385
|
-
|
386
|
-
_destroy: function() {
|
387
|
-
this.element.removeClass( "ui-buttonset" );
|
388
|
-
this.buttons
|
389
|
-
.map(function() {
|
390
|
-
return $( this ).button( "widget" )[ 0 ];
|
391
|
-
})
|
392
|
-
.removeClass( "ui-corner-left ui-corner-right" )
|
393
|
-
.end()
|
394
|
-
.button( "destroy" );
|
395
|
-
}
|
396
|
-
});
|
397
|
-
|
398
|
-
}( jQuery ) );
|
@@ -1,320 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery UI Core 1.10.4
|
3
|
-
* http://jqueryui.com
|
4
|
-
*
|
5
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
6
|
-
* Released under the MIT license.
|
7
|
-
* http://jquery.org/license
|
8
|
-
*
|
9
|
-
* http://api.jqueryui.com/category/ui-core/
|
10
|
-
*/
|
11
|
-
(function( $, undefined ) {
|
12
|
-
|
13
|
-
var uuid = 0,
|
14
|
-
runiqueId = /^ui-id-\d+$/;
|
15
|
-
|
16
|
-
// $.ui might exist from components with no dependencies, e.g., $.ui.position
|
17
|
-
$.ui = $.ui || {};
|
18
|
-
|
19
|
-
$.extend( $.ui, {
|
20
|
-
version: "1.10.4",
|
21
|
-
|
22
|
-
keyCode: {
|
23
|
-
BACKSPACE: 8,
|
24
|
-
COMMA: 188,
|
25
|
-
DELETE: 46,
|
26
|
-
DOWN: 40,
|
27
|
-
END: 35,
|
28
|
-
ENTER: 13,
|
29
|
-
ESCAPE: 27,
|
30
|
-
HOME: 36,
|
31
|
-
LEFT: 37,
|
32
|
-
NUMPAD_ADD: 107,
|
33
|
-
NUMPAD_DECIMAL: 110,
|
34
|
-
NUMPAD_DIVIDE: 111,
|
35
|
-
NUMPAD_ENTER: 108,
|
36
|
-
NUMPAD_MULTIPLY: 106,
|
37
|
-
NUMPAD_SUBTRACT: 109,
|
38
|
-
PAGE_DOWN: 34,
|
39
|
-
PAGE_UP: 33,
|
40
|
-
PERIOD: 190,
|
41
|
-
RIGHT: 39,
|
42
|
-
SPACE: 32,
|
43
|
-
TAB: 9,
|
44
|
-
UP: 38
|
45
|
-
}
|
46
|
-
});
|
47
|
-
|
48
|
-
// plugins
|
49
|
-
$.fn.extend({
|
50
|
-
focus: (function( orig ) {
|
51
|
-
return function( delay, fn ) {
|
52
|
-
return typeof delay === "number" ?
|
53
|
-
this.each(function() {
|
54
|
-
var elem = this;
|
55
|
-
setTimeout(function() {
|
56
|
-
$( elem ).focus();
|
57
|
-
if ( fn ) {
|
58
|
-
fn.call( elem );
|
59
|
-
}
|
60
|
-
}, delay );
|
61
|
-
}) :
|
62
|
-
orig.apply( this, arguments );
|
63
|
-
};
|
64
|
-
})( $.fn.focus ),
|
65
|
-
|
66
|
-
scrollParent: function() {
|
67
|
-
var scrollParent;
|
68
|
-
if (($.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
|
69
|
-
scrollParent = this.parents().filter(function() {
|
70
|
-
return (/(relative|absolute|fixed)/).test($.css(this,"position")) && (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
|
71
|
-
}).eq(0);
|
72
|
-
} else {
|
73
|
-
scrollParent = this.parents().filter(function() {
|
74
|
-
return (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
|
75
|
-
}).eq(0);
|
76
|
-
}
|
77
|
-
|
78
|
-
return (/fixed/).test(this.css("position")) || !scrollParent.length ? $(document) : scrollParent;
|
79
|
-
},
|
80
|
-
|
81
|
-
zIndex: function( zIndex ) {
|
82
|
-
if ( zIndex !== undefined ) {
|
83
|
-
return this.css( "zIndex", zIndex );
|
84
|
-
}
|
85
|
-
|
86
|
-
if ( this.length ) {
|
87
|
-
var elem = $( this[ 0 ] ), position, value;
|
88
|
-
while ( elem.length && elem[ 0 ] !== document ) {
|
89
|
-
// Ignore z-index if position is set to a value where z-index is ignored by the browser
|
90
|
-
// This makes behavior of this function consistent across browsers
|
91
|
-
// WebKit always returns auto if the element is positioned
|
92
|
-
position = elem.css( "position" );
|
93
|
-
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
|
94
|
-
// IE returns 0 when zIndex is not specified
|
95
|
-
// other browsers return a string
|
96
|
-
// we ignore the case of nested elements with an explicit value of 0
|
97
|
-
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
|
98
|
-
value = parseInt( elem.css( "zIndex" ), 10 );
|
99
|
-
if ( !isNaN( value ) && value !== 0 ) {
|
100
|
-
return value;
|
101
|
-
}
|
102
|
-
}
|
103
|
-
elem = elem.parent();
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
return 0;
|
108
|
-
},
|
109
|
-
|
110
|
-
uniqueId: function() {
|
111
|
-
return this.each(function() {
|
112
|
-
if ( !this.id ) {
|
113
|
-
this.id = "ui-id-" + (++uuid);
|
114
|
-
}
|
115
|
-
});
|
116
|
-
},
|
117
|
-
|
118
|
-
removeUniqueId: function() {
|
119
|
-
return this.each(function() {
|
120
|
-
if ( runiqueId.test( this.id ) ) {
|
121
|
-
$( this ).removeAttr( "id" );
|
122
|
-
}
|
123
|
-
});
|
124
|
-
}
|
125
|
-
});
|
126
|
-
|
127
|
-
// selectors
|
128
|
-
function focusable( element, isTabIndexNotNaN ) {
|
129
|
-
var map, mapName, img,
|
130
|
-
nodeName = element.nodeName.toLowerCase();
|
131
|
-
if ( "area" === nodeName ) {
|
132
|
-
map = element.parentNode;
|
133
|
-
mapName = map.name;
|
134
|
-
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
|
135
|
-
return false;
|
136
|
-
}
|
137
|
-
img = $( "img[usemap=#" + mapName + "]" )[0];
|
138
|
-
return !!img && visible( img );
|
139
|
-
}
|
140
|
-
return ( /input|select|textarea|button|object/.test( nodeName ) ?
|
141
|
-
!element.disabled :
|
142
|
-
"a" === nodeName ?
|
143
|
-
element.href || isTabIndexNotNaN :
|
144
|
-
isTabIndexNotNaN) &&
|
145
|
-
// the element and all of its ancestors must be visible
|
146
|
-
visible( element );
|
147
|
-
}
|
148
|
-
|
149
|
-
function visible( element ) {
|
150
|
-
return $.expr.filters.visible( element ) &&
|
151
|
-
!$( element ).parents().addBack().filter(function() {
|
152
|
-
return $.css( this, "visibility" ) === "hidden";
|
153
|
-
}).length;
|
154
|
-
}
|
155
|
-
|
156
|
-
$.extend( $.expr[ ":" ], {
|
157
|
-
data: $.expr.createPseudo ?
|
158
|
-
$.expr.createPseudo(function( dataName ) {
|
159
|
-
return function( elem ) {
|
160
|
-
return !!$.data( elem, dataName );
|
161
|
-
};
|
162
|
-
}) :
|
163
|
-
// support: jQuery <1.8
|
164
|
-
function( elem, i, match ) {
|
165
|
-
return !!$.data( elem, match[ 3 ] );
|
166
|
-
},
|
167
|
-
|
168
|
-
focusable: function( element ) {
|
169
|
-
return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
|
170
|
-
},
|
171
|
-
|
172
|
-
tabbable: function( element ) {
|
173
|
-
var tabIndex = $.attr( element, "tabindex" ),
|
174
|
-
isTabIndexNaN = isNaN( tabIndex );
|
175
|
-
return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
|
176
|
-
}
|
177
|
-
});
|
178
|
-
|
179
|
-
// support: jQuery <1.8
|
180
|
-
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
181
|
-
$.each( [ "Width", "Height" ], function( i, name ) {
|
182
|
-
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
183
|
-
type = name.toLowerCase(),
|
184
|
-
orig = {
|
185
|
-
innerWidth: $.fn.innerWidth,
|
186
|
-
innerHeight: $.fn.innerHeight,
|
187
|
-
outerWidth: $.fn.outerWidth,
|
188
|
-
outerHeight: $.fn.outerHeight
|
189
|
-
};
|
190
|
-
|
191
|
-
function reduce( elem, size, border, margin ) {
|
192
|
-
$.each( side, function() {
|
193
|
-
size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
|
194
|
-
if ( border ) {
|
195
|
-
size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
|
196
|
-
}
|
197
|
-
if ( margin ) {
|
198
|
-
size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
|
199
|
-
}
|
200
|
-
});
|
201
|
-
return size;
|
202
|
-
}
|
203
|
-
|
204
|
-
$.fn[ "inner" + name ] = function( size ) {
|
205
|
-
if ( size === undefined ) {
|
206
|
-
return orig[ "inner" + name ].call( this );
|
207
|
-
}
|
208
|
-
|
209
|
-
return this.each(function() {
|
210
|
-
$( this ).css( type, reduce( this, size ) + "px" );
|
211
|
-
});
|
212
|
-
};
|
213
|
-
|
214
|
-
$.fn[ "outer" + name] = function( size, margin ) {
|
215
|
-
if ( typeof size !== "number" ) {
|
216
|
-
return orig[ "outer" + name ].call( this, size );
|
217
|
-
}
|
218
|
-
|
219
|
-
return this.each(function() {
|
220
|
-
$( this).css( type, reduce( this, size, true, margin ) + "px" );
|
221
|
-
});
|
222
|
-
};
|
223
|
-
});
|
224
|
-
}
|
225
|
-
|
226
|
-
// support: jQuery <1.8
|
227
|
-
if ( !$.fn.addBack ) {
|
228
|
-
$.fn.addBack = function( selector ) {
|
229
|
-
return this.add( selector == null ?
|
230
|
-
this.prevObject : this.prevObject.filter( selector )
|
231
|
-
);
|
232
|
-
};
|
233
|
-
}
|
234
|
-
|
235
|
-
// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
|
236
|
-
if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
|
237
|
-
$.fn.removeData = (function( removeData ) {
|
238
|
-
return function( key ) {
|
239
|
-
if ( arguments.length ) {
|
240
|
-
return removeData.call( this, $.camelCase( key ) );
|
241
|
-
} else {
|
242
|
-
return removeData.call( this );
|
243
|
-
}
|
244
|
-
};
|
245
|
-
})( $.fn.removeData );
|
246
|
-
}
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
// deprecated
|
253
|
-
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
254
|
-
|
255
|
-
$.support.selectstart = "onselectstart" in document.createElement( "div" );
|
256
|
-
$.fn.extend({
|
257
|
-
disableSelection: function() {
|
258
|
-
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
259
|
-
".ui-disableSelection", function( event ) {
|
260
|
-
event.preventDefault();
|
261
|
-
});
|
262
|
-
},
|
263
|
-
|
264
|
-
enableSelection: function() {
|
265
|
-
return this.unbind( ".ui-disableSelection" );
|
266
|
-
}
|
267
|
-
});
|
268
|
-
|
269
|
-
$.extend( $.ui, {
|
270
|
-
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
271
|
-
plugin: {
|
272
|
-
add: function( module, option, set ) {
|
273
|
-
var i,
|
274
|
-
proto = $.ui[ module ].prototype;
|
275
|
-
for ( i in set ) {
|
276
|
-
proto.plugins[ i ] = proto.plugins[ i ] || [];
|
277
|
-
proto.plugins[ i ].push( [ option, set[ i ] ] );
|
278
|
-
}
|
279
|
-
},
|
280
|
-
call: function( instance, name, args ) {
|
281
|
-
var i,
|
282
|
-
set = instance.plugins[ name ];
|
283
|
-
if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {
|
284
|
-
return;
|
285
|
-
}
|
286
|
-
|
287
|
-
for ( i = 0; i < set.length; i++ ) {
|
288
|
-
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
289
|
-
set[ i ][ 1 ].apply( instance.element, args );
|
290
|
-
}
|
291
|
-
}
|
292
|
-
}
|
293
|
-
},
|
294
|
-
|
295
|
-
// only used by resizable
|
296
|
-
hasScroll: function( el, a ) {
|
297
|
-
|
298
|
-
//If overflow is hidden, the element might have extra content, but the user wants to hide it
|
299
|
-
if ( $( el ).css( "overflow" ) === "hidden") {
|
300
|
-
return false;
|
301
|
-
}
|
302
|
-
|
303
|
-
var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
|
304
|
-
has = false;
|
305
|
-
|
306
|
-
if ( el[ scroll ] > 0 ) {
|
307
|
-
return true;
|
308
|
-
}
|
309
|
-
|
310
|
-
// TODO: determine which cases actually cause this to happen
|
311
|
-
// if the element doesn't have the scroll set, see if it's possible to
|
312
|
-
// set the scroll
|
313
|
-
el[ scroll ] = 1;
|
314
|
-
has = ( el[ scroll ] > 0 );
|
315
|
-
el[ scroll ] = 0;
|
316
|
-
return has;
|
317
|
-
}
|
318
|
-
});
|
319
|
-
|
320
|
-
})( jQuery );
|