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,394 +0,0 @@
|
|
1
|
-
//= require jquery.ui.core
|
2
|
-
//= require jquery.ui.widget
|
3
|
-
//= require jquery.ui.mouse
|
4
|
-
//= require jquery.ui.draggable
|
5
|
-
|
6
|
-
/*!
|
7
|
-
* jQuery UI Droppable 1.10.4
|
8
|
-
* http://jqueryui.com
|
9
|
-
*
|
10
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
11
|
-
* Released under the MIT license.
|
12
|
-
* http://jquery.org/license
|
13
|
-
*
|
14
|
-
* http://api.jqueryui.com/droppable/
|
15
|
-
*
|
16
|
-
* Depends:
|
17
|
-
* jquery.ui.core.js
|
18
|
-
* jquery.ui.widget.js
|
19
|
-
* jquery.ui.mouse.js
|
20
|
-
* jquery.ui.draggable.js
|
21
|
-
*/
|
22
|
-
(function( $, undefined ) {
|
23
|
-
|
24
|
-
function isOverAxis( x, reference, size ) {
|
25
|
-
return ( x > reference ) && ( x < ( reference + size ) );
|
26
|
-
}
|
27
|
-
|
28
|
-
$.widget("ui.droppable", {
|
29
|
-
version: "1.10.4",
|
30
|
-
widgetEventPrefix: "drop",
|
31
|
-
options: {
|
32
|
-
accept: "*",
|
33
|
-
activeClass: false,
|
34
|
-
addClasses: true,
|
35
|
-
greedy: false,
|
36
|
-
hoverClass: false,
|
37
|
-
scope: "default",
|
38
|
-
tolerance: "intersect",
|
39
|
-
|
40
|
-
// callbacks
|
41
|
-
activate: null,
|
42
|
-
deactivate: null,
|
43
|
-
drop: null,
|
44
|
-
out: null,
|
45
|
-
over: null
|
46
|
-
},
|
47
|
-
_create: function() {
|
48
|
-
|
49
|
-
var proportions,
|
50
|
-
o = this.options,
|
51
|
-
accept = o.accept;
|
52
|
-
|
53
|
-
this.isover = false;
|
54
|
-
this.isout = true;
|
55
|
-
|
56
|
-
this.accept = $.isFunction(accept) ? accept : function(d) {
|
57
|
-
return d.is(accept);
|
58
|
-
};
|
59
|
-
|
60
|
-
this.proportions = function( /* valueToWrite */ ) {
|
61
|
-
if ( arguments.length ) {
|
62
|
-
// Store the droppable's proportions
|
63
|
-
proportions = arguments[ 0 ];
|
64
|
-
} else {
|
65
|
-
// Retrieve or derive the droppable's proportions
|
66
|
-
return proportions ?
|
67
|
-
proportions :
|
68
|
-
proportions = {
|
69
|
-
width: this.element[ 0 ].offsetWidth,
|
70
|
-
height: this.element[ 0 ].offsetHeight
|
71
|
-
};
|
72
|
-
}
|
73
|
-
};
|
74
|
-
|
75
|
-
// Add the reference and positions to the manager
|
76
|
-
$.ui.ddmanager.droppables[o.scope] = $.ui.ddmanager.droppables[o.scope] || [];
|
77
|
-
$.ui.ddmanager.droppables[o.scope].push(this);
|
78
|
-
|
79
|
-
(o.addClasses && this.element.addClass("ui-droppable"));
|
80
|
-
|
81
|
-
},
|
82
|
-
|
83
|
-
_destroy: function() {
|
84
|
-
var i = 0,
|
85
|
-
drop = $.ui.ddmanager.droppables[this.options.scope];
|
86
|
-
|
87
|
-
for ( ; i < drop.length; i++ ) {
|
88
|
-
if ( drop[i] === this ) {
|
89
|
-
drop.splice(i, 1);
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
this.element.removeClass("ui-droppable ui-droppable-disabled");
|
94
|
-
},
|
95
|
-
|
96
|
-
_setOption: function(key, value) {
|
97
|
-
|
98
|
-
if(key === "accept") {
|
99
|
-
this.accept = $.isFunction(value) ? value : function(d) {
|
100
|
-
return d.is(value);
|
101
|
-
};
|
102
|
-
}
|
103
|
-
$.Widget.prototype._setOption.apply(this, arguments);
|
104
|
-
},
|
105
|
-
|
106
|
-
_activate: function(event) {
|
107
|
-
var draggable = $.ui.ddmanager.current;
|
108
|
-
if(this.options.activeClass) {
|
109
|
-
this.element.addClass(this.options.activeClass);
|
110
|
-
}
|
111
|
-
if(draggable){
|
112
|
-
this._trigger("activate", event, this.ui(draggable));
|
113
|
-
}
|
114
|
-
},
|
115
|
-
|
116
|
-
_deactivate: function(event) {
|
117
|
-
var draggable = $.ui.ddmanager.current;
|
118
|
-
if(this.options.activeClass) {
|
119
|
-
this.element.removeClass(this.options.activeClass);
|
120
|
-
}
|
121
|
-
if(draggable){
|
122
|
-
this._trigger("deactivate", event, this.ui(draggable));
|
123
|
-
}
|
124
|
-
},
|
125
|
-
|
126
|
-
_over: function(event) {
|
127
|
-
|
128
|
-
var draggable = $.ui.ddmanager.current;
|
129
|
-
|
130
|
-
// Bail if draggable and droppable are same element
|
131
|
-
if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {
|
132
|
-
return;
|
133
|
-
}
|
134
|
-
|
135
|
-
if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
|
136
|
-
if(this.options.hoverClass) {
|
137
|
-
this.element.addClass(this.options.hoverClass);
|
138
|
-
}
|
139
|
-
this._trigger("over", event, this.ui(draggable));
|
140
|
-
}
|
141
|
-
|
142
|
-
},
|
143
|
-
|
144
|
-
_out: function(event) {
|
145
|
-
|
146
|
-
var draggable = $.ui.ddmanager.current;
|
147
|
-
|
148
|
-
// Bail if draggable and droppable are same element
|
149
|
-
if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {
|
150
|
-
return;
|
151
|
-
}
|
152
|
-
|
153
|
-
if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
|
154
|
-
if(this.options.hoverClass) {
|
155
|
-
this.element.removeClass(this.options.hoverClass);
|
156
|
-
}
|
157
|
-
this._trigger("out", event, this.ui(draggable));
|
158
|
-
}
|
159
|
-
|
160
|
-
},
|
161
|
-
|
162
|
-
_drop: function(event,custom) {
|
163
|
-
|
164
|
-
var draggable = custom || $.ui.ddmanager.current,
|
165
|
-
childrenIntersection = false;
|
166
|
-
|
167
|
-
// Bail if draggable and droppable are same element
|
168
|
-
if (!draggable || (draggable.currentItem || draggable.element)[0] === this.element[0]) {
|
169
|
-
return false;
|
170
|
-
}
|
171
|
-
|
172
|
-
this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function() {
|
173
|
-
var inst = $.data(this, "ui-droppable");
|
174
|
-
if(
|
175
|
-
inst.options.greedy &&
|
176
|
-
!inst.options.disabled &&
|
177
|
-
inst.options.scope === draggable.options.scope &&
|
178
|
-
inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element)) &&
|
179
|
-
$.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)
|
180
|
-
) { childrenIntersection = true; return false; }
|
181
|
-
});
|
182
|
-
if(childrenIntersection) {
|
183
|
-
return false;
|
184
|
-
}
|
185
|
-
|
186
|
-
if(this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
|
187
|
-
if(this.options.activeClass) {
|
188
|
-
this.element.removeClass(this.options.activeClass);
|
189
|
-
}
|
190
|
-
if(this.options.hoverClass) {
|
191
|
-
this.element.removeClass(this.options.hoverClass);
|
192
|
-
}
|
193
|
-
this._trigger("drop", event, this.ui(draggable));
|
194
|
-
return this.element;
|
195
|
-
}
|
196
|
-
|
197
|
-
return false;
|
198
|
-
|
199
|
-
},
|
200
|
-
|
201
|
-
ui: function(c) {
|
202
|
-
return {
|
203
|
-
draggable: (c.currentItem || c.element),
|
204
|
-
helper: c.helper,
|
205
|
-
position: c.position,
|
206
|
-
offset: c.positionAbs
|
207
|
-
};
|
208
|
-
}
|
209
|
-
|
210
|
-
});
|
211
|
-
|
212
|
-
$.ui.intersect = function(draggable, droppable, toleranceMode) {
|
213
|
-
|
214
|
-
if (!droppable.offset) {
|
215
|
-
return false;
|
216
|
-
}
|
217
|
-
|
218
|
-
var draggableLeft, draggableTop,
|
219
|
-
x1 = (draggable.positionAbs || draggable.position.absolute).left,
|
220
|
-
y1 = (draggable.positionAbs || draggable.position.absolute).top,
|
221
|
-
x2 = x1 + draggable.helperProportions.width,
|
222
|
-
y2 = y1 + draggable.helperProportions.height,
|
223
|
-
l = droppable.offset.left,
|
224
|
-
t = droppable.offset.top,
|
225
|
-
r = l + droppable.proportions().width,
|
226
|
-
b = t + droppable.proportions().height;
|
227
|
-
|
228
|
-
switch (toleranceMode) {
|
229
|
-
case "fit":
|
230
|
-
return (l <= x1 && x2 <= r && t <= y1 && y2 <= b);
|
231
|
-
case "intersect":
|
232
|
-
return (l < x1 + (draggable.helperProportions.width / 2) && // Right Half
|
233
|
-
x2 - (draggable.helperProportions.width / 2) < r && // Left Half
|
234
|
-
t < y1 + (draggable.helperProportions.height / 2) && // Bottom Half
|
235
|
-
y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
|
236
|
-
case "pointer":
|
237
|
-
draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left);
|
238
|
-
draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top);
|
239
|
-
return isOverAxis( draggableTop, t, droppable.proportions().height ) && isOverAxis( draggableLeft, l, droppable.proportions().width );
|
240
|
-
case "touch":
|
241
|
-
return (
|
242
|
-
(y1 >= t && y1 <= b) || // Top edge touching
|
243
|
-
(y2 >= t && y2 <= b) || // Bottom edge touching
|
244
|
-
(y1 < t && y2 > b) // Surrounded vertically
|
245
|
-
) && (
|
246
|
-
(x1 >= l && x1 <= r) || // Left edge touching
|
247
|
-
(x2 >= l && x2 <= r) || // Right edge touching
|
248
|
-
(x1 < l && x2 > r) // Surrounded horizontally
|
249
|
-
);
|
250
|
-
default:
|
251
|
-
return false;
|
252
|
-
}
|
253
|
-
|
254
|
-
};
|
255
|
-
|
256
|
-
/*
|
257
|
-
This manager tracks offsets of draggables and droppables
|
258
|
-
*/
|
259
|
-
$.ui.ddmanager = {
|
260
|
-
current: null,
|
261
|
-
droppables: { "default": [] },
|
262
|
-
prepareOffsets: function(t, event) {
|
263
|
-
|
264
|
-
var i, j,
|
265
|
-
m = $.ui.ddmanager.droppables[t.options.scope] || [],
|
266
|
-
type = event ? event.type : null, // workaround for #2317
|
267
|
-
list = (t.currentItem || t.element).find(":data(ui-droppable)").addBack();
|
268
|
-
|
269
|
-
droppablesLoop: for (i = 0; i < m.length; i++) {
|
270
|
-
|
271
|
-
//No disabled and non-accepted
|
272
|
-
if(m[i].options.disabled || (t && !m[i].accept.call(m[i].element[0],(t.currentItem || t.element)))) {
|
273
|
-
continue;
|
274
|
-
}
|
275
|
-
|
276
|
-
// Filter out elements in the current dragged item
|
277
|
-
for (j=0; j < list.length; j++) {
|
278
|
-
if(list[j] === m[i].element[0]) {
|
279
|
-
m[i].proportions().height = 0;
|
280
|
-
continue droppablesLoop;
|
281
|
-
}
|
282
|
-
}
|
283
|
-
|
284
|
-
m[i].visible = m[i].element.css("display") !== "none";
|
285
|
-
if(!m[i].visible) {
|
286
|
-
continue;
|
287
|
-
}
|
288
|
-
|
289
|
-
//Activate the droppable if used directly from draggables
|
290
|
-
if(type === "mousedown") {
|
291
|
-
m[i]._activate.call(m[i], event);
|
292
|
-
}
|
293
|
-
|
294
|
-
m[ i ].offset = m[ i ].element.offset();
|
295
|
-
m[ i ].proportions({ width: m[ i ].element[ 0 ].offsetWidth, height: m[ i ].element[ 0 ].offsetHeight });
|
296
|
-
|
297
|
-
}
|
298
|
-
|
299
|
-
},
|
300
|
-
drop: function(draggable, event) {
|
301
|
-
|
302
|
-
var dropped = false;
|
303
|
-
// Create a copy of the droppables in case the list changes during the drop (#9116)
|
304
|
-
$.each(($.ui.ddmanager.droppables[draggable.options.scope] || []).slice(), function() {
|
305
|
-
|
306
|
-
if(!this.options) {
|
307
|
-
return;
|
308
|
-
}
|
309
|
-
if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) {
|
310
|
-
dropped = this._drop.call(this, event) || dropped;
|
311
|
-
}
|
312
|
-
|
313
|
-
if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
|
314
|
-
this.isout = true;
|
315
|
-
this.isover = false;
|
316
|
-
this._deactivate.call(this, event);
|
317
|
-
}
|
318
|
-
|
319
|
-
});
|
320
|
-
return dropped;
|
321
|
-
|
322
|
-
},
|
323
|
-
dragStart: function( draggable, event ) {
|
324
|
-
//Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)
|
325
|
-
draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {
|
326
|
-
if( !draggable.options.refreshPositions ) {
|
327
|
-
$.ui.ddmanager.prepareOffsets( draggable, event );
|
328
|
-
}
|
329
|
-
});
|
330
|
-
},
|
331
|
-
drag: function(draggable, event) {
|
332
|
-
|
333
|
-
//If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
|
334
|
-
if(draggable.options.refreshPositions) {
|
335
|
-
$.ui.ddmanager.prepareOffsets(draggable, event);
|
336
|
-
}
|
337
|
-
|
338
|
-
//Run through all droppables and check their positions based on specific tolerance options
|
339
|
-
$.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {
|
340
|
-
|
341
|
-
if(this.options.disabled || this.greedyChild || !this.visible) {
|
342
|
-
return;
|
343
|
-
}
|
344
|
-
|
345
|
-
var parentInstance, scope, parent,
|
346
|
-
intersects = $.ui.intersect(draggable, this, this.options.tolerance),
|
347
|
-
c = !intersects && this.isover ? "isout" : (intersects && !this.isover ? "isover" : null);
|
348
|
-
if(!c) {
|
349
|
-
return;
|
350
|
-
}
|
351
|
-
|
352
|
-
if (this.options.greedy) {
|
353
|
-
// find droppable parents with same scope
|
354
|
-
scope = this.options.scope;
|
355
|
-
parent = this.element.parents(":data(ui-droppable)").filter(function () {
|
356
|
-
return $.data(this, "ui-droppable").options.scope === scope;
|
357
|
-
});
|
358
|
-
|
359
|
-
if (parent.length) {
|
360
|
-
parentInstance = $.data(parent[0], "ui-droppable");
|
361
|
-
parentInstance.greedyChild = (c === "isover");
|
362
|
-
}
|
363
|
-
}
|
364
|
-
|
365
|
-
// we just moved into a greedy child
|
366
|
-
if (parentInstance && c === "isover") {
|
367
|
-
parentInstance.isover = false;
|
368
|
-
parentInstance.isout = true;
|
369
|
-
parentInstance._out.call(parentInstance, event);
|
370
|
-
}
|
371
|
-
|
372
|
-
this[c] = true;
|
373
|
-
this[c === "isout" ? "isover" : "isout"] = false;
|
374
|
-
this[c === "isover" ? "_over" : "_out"].call(this, event);
|
375
|
-
|
376
|
-
// we just moved out of a greedy child
|
377
|
-
if (parentInstance && c === "isout") {
|
378
|
-
parentInstance.isout = false;
|
379
|
-
parentInstance.isover = true;
|
380
|
-
parentInstance._over.call(parentInstance, event);
|
381
|
-
}
|
382
|
-
});
|
383
|
-
|
384
|
-
},
|
385
|
-
dragStop: function( draggable, event ) {
|
386
|
-
draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );
|
387
|
-
//Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)
|
388
|
-
if( !draggable.options.refreshPositions ) {
|
389
|
-
$.ui.ddmanager.prepareOffsets( draggable, event );
|
390
|
-
}
|
391
|
-
}
|
392
|
-
};
|
393
|
-
|
394
|
-
})(jQuery);
|
@@ -1,84 +0,0 @@
|
|
1
|
-
//= require jquery.ui.effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Blind 1.10.4
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/blind-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
|
-
*/
|
16
|
-
(function( $, undefined ) {
|
17
|
-
|
18
|
-
var rvertical = /up|down|vertical/,
|
19
|
-
rpositivemotion = /up|left|vertical|horizontal/;
|
20
|
-
|
21
|
-
$.effects.effect.blind = function( o, done ) {
|
22
|
-
// Create element
|
23
|
-
var el = $( this ),
|
24
|
-
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
25
|
-
mode = $.effects.setMode( el, o.mode || "hide" ),
|
26
|
-
direction = o.direction || "up",
|
27
|
-
vertical = rvertical.test( direction ),
|
28
|
-
ref = vertical ? "height" : "width",
|
29
|
-
ref2 = vertical ? "top" : "left",
|
30
|
-
motion = rpositivemotion.test( direction ),
|
31
|
-
animation = {},
|
32
|
-
show = mode === "show",
|
33
|
-
wrapper, distance, margin;
|
34
|
-
|
35
|
-
// if already wrapped, the wrapper's properties are my property. #6245
|
36
|
-
if ( el.parent().is( ".ui-effects-wrapper" ) ) {
|
37
|
-
$.effects.save( el.parent(), props );
|
38
|
-
} else {
|
39
|
-
$.effects.save( el, props );
|
40
|
-
}
|
41
|
-
el.show();
|
42
|
-
wrapper = $.effects.createWrapper( el ).css({
|
43
|
-
overflow: "hidden"
|
44
|
-
});
|
45
|
-
|
46
|
-
distance = wrapper[ ref ]();
|
47
|
-
margin = parseFloat( wrapper.css( ref2 ) ) || 0;
|
48
|
-
|
49
|
-
animation[ ref ] = show ? distance : 0;
|
50
|
-
if ( !motion ) {
|
51
|
-
el
|
52
|
-
.css( vertical ? "bottom" : "right", 0 )
|
53
|
-
.css( vertical ? "top" : "left", "auto" )
|
54
|
-
.css({ position: "absolute" });
|
55
|
-
|
56
|
-
animation[ ref2 ] = show ? margin : distance + margin;
|
57
|
-
}
|
58
|
-
|
59
|
-
// start at 0 if we are showing
|
60
|
-
if ( show ) {
|
61
|
-
wrapper.css( ref, 0 );
|
62
|
-
if ( ! motion ) {
|
63
|
-
wrapper.css( ref2, margin + distance );
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
// Animate
|
68
|
-
wrapper.animate( animation, {
|
69
|
-
duration: o.duration,
|
70
|
-
easing: o.easing,
|
71
|
-
queue: false,
|
72
|
-
complete: function() {
|
73
|
-
if ( mode === "hide" ) {
|
74
|
-
el.hide();
|
75
|
-
}
|
76
|
-
$.effects.restore( el, props );
|
77
|
-
$.effects.removeWrapper( el );
|
78
|
-
done();
|
79
|
-
}
|
80
|
-
});
|
81
|
-
|
82
|
-
};
|
83
|
-
|
84
|
-
})(jQuery);
|
@@ -1,115 +0,0 @@
|
|
1
|
-
//= require jquery.ui.effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Bounce 1.10.4
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/bounce-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
|
-
*/
|
16
|
-
(function( $, undefined ) {
|
17
|
-
|
18
|
-
$.effects.effect.bounce = function( o, done ) {
|
19
|
-
var el = $( this ),
|
20
|
-
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
21
|
-
|
22
|
-
// defaults:
|
23
|
-
mode = $.effects.setMode( el, o.mode || "effect" ),
|
24
|
-
hide = mode === "hide",
|
25
|
-
show = mode === "show",
|
26
|
-
direction = o.direction || "up",
|
27
|
-
distance = o.distance,
|
28
|
-
times = o.times || 5,
|
29
|
-
|
30
|
-
// number of internal animations
|
31
|
-
anims = times * 2 + ( show || hide ? 1 : 0 ),
|
32
|
-
speed = o.duration / anims,
|
33
|
-
easing = o.easing,
|
34
|
-
|
35
|
-
// utility:
|
36
|
-
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
37
|
-
motion = ( direction === "up" || direction === "left" ),
|
38
|
-
i,
|
39
|
-
upAnim,
|
40
|
-
downAnim,
|
41
|
-
|
42
|
-
// we will need to re-assemble the queue to stack our animations in place
|
43
|
-
queue = el.queue(),
|
44
|
-
queuelen = queue.length;
|
45
|
-
|
46
|
-
// Avoid touching opacity to prevent clearType and PNG issues in IE
|
47
|
-
if ( show || hide ) {
|
48
|
-
props.push( "opacity" );
|
49
|
-
}
|
50
|
-
|
51
|
-
$.effects.save( el, props );
|
52
|
-
el.show();
|
53
|
-
$.effects.createWrapper( el ); // Create Wrapper
|
54
|
-
|
55
|
-
// default distance for the BIGGEST bounce is the outer Distance / 3
|
56
|
-
if ( !distance ) {
|
57
|
-
distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
|
58
|
-
}
|
59
|
-
|
60
|
-
if ( show ) {
|
61
|
-
downAnim = { opacity: 1 };
|
62
|
-
downAnim[ ref ] = 0;
|
63
|
-
|
64
|
-
// if we are showing, force opacity 0 and set the initial position
|
65
|
-
// then do the "first" animation
|
66
|
-
el.css( "opacity", 0 )
|
67
|
-
.css( ref, motion ? -distance * 2 : distance * 2 )
|
68
|
-
.animate( downAnim, speed, easing );
|
69
|
-
}
|
70
|
-
|
71
|
-
// start at the smallest distance if we are hiding
|
72
|
-
if ( hide ) {
|
73
|
-
distance = distance / Math.pow( 2, times - 1 );
|
74
|
-
}
|
75
|
-
|
76
|
-
downAnim = {};
|
77
|
-
downAnim[ ref ] = 0;
|
78
|
-
// Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
|
79
|
-
for ( i = 0; i < times; i++ ) {
|
80
|
-
upAnim = {};
|
81
|
-
upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
|
82
|
-
|
83
|
-
el.animate( upAnim, speed, easing )
|
84
|
-
.animate( downAnim, speed, easing );
|
85
|
-
|
86
|
-
distance = hide ? distance * 2 : distance / 2;
|
87
|
-
}
|
88
|
-
|
89
|
-
// Last Bounce when Hiding
|
90
|
-
if ( hide ) {
|
91
|
-
upAnim = { opacity: 0 };
|
92
|
-
upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
|
93
|
-
|
94
|
-
el.animate( upAnim, speed, easing );
|
95
|
-
}
|
96
|
-
|
97
|
-
el.queue(function() {
|
98
|
-
if ( hide ) {
|
99
|
-
el.hide();
|
100
|
-
}
|
101
|
-
$.effects.restore( el, props );
|
102
|
-
$.effects.removeWrapper( el );
|
103
|
-
done();
|
104
|
-
});
|
105
|
-
|
106
|
-
// inject all the animations we just queued to be first in line (after "inprogress")
|
107
|
-
if ( queuelen > 1) {
|
108
|
-
queue.splice.apply( queue,
|
109
|
-
[ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
|
110
|
-
}
|
111
|
-
el.dequeue();
|
112
|
-
|
113
|
-
};
|
114
|
-
|
115
|
-
})(jQuery);
|
@@ -1,69 +0,0 @@
|
|
1
|
-
//= require jquery.ui.effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Clip 1.10.4
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/clip-effect/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.effect.js
|
15
|
-
*/
|
16
|
-
(function( $, undefined ) {
|
17
|
-
|
18
|
-
$.effects.effect.clip = function( o, done ) {
|
19
|
-
// Create element
|
20
|
-
var el = $( this ),
|
21
|
-
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
22
|
-
mode = $.effects.setMode( el, o.mode || "hide" ),
|
23
|
-
show = mode === "show",
|
24
|
-
direction = o.direction || "vertical",
|
25
|
-
vert = direction === "vertical",
|
26
|
-
size = vert ? "height" : "width",
|
27
|
-
position = vert ? "top" : "left",
|
28
|
-
animation = {},
|
29
|
-
wrapper, animate, distance;
|
30
|
-
|
31
|
-
// Save & Show
|
32
|
-
$.effects.save( el, props );
|
33
|
-
el.show();
|
34
|
-
|
35
|
-
// Create Wrapper
|
36
|
-
wrapper = $.effects.createWrapper( el ).css({
|
37
|
-
overflow: "hidden"
|
38
|
-
});
|
39
|
-
animate = ( el[0].tagName === "IMG" ) ? wrapper : el;
|
40
|
-
distance = animate[ size ]();
|
41
|
-
|
42
|
-
// Shift
|
43
|
-
if ( show ) {
|
44
|
-
animate.css( size, 0 );
|
45
|
-
animate.css( position, distance / 2 );
|
46
|
-
}
|
47
|
-
|
48
|
-
// Create Animation Object:
|
49
|
-
animation[ size ] = show ? distance : 0;
|
50
|
-
animation[ position ] = show ? 0 : distance / 2;
|
51
|
-
|
52
|
-
// Animate
|
53
|
-
animate.animate( animation, {
|
54
|
-
queue: false,
|
55
|
-
duration: o.duration,
|
56
|
-
easing: o.easing,
|
57
|
-
complete: function() {
|
58
|
-
if ( !show ) {
|
59
|
-
el.hide();
|
60
|
-
}
|
61
|
-
$.effects.restore( el, props );
|
62
|
-
$.effects.removeWrapper( el );
|
63
|
-
done();
|
64
|
-
}
|
65
|
-
});
|
66
|
-
|
67
|
-
};
|
68
|
-
|
69
|
-
})(jQuery);
|