jquery-ui-rails 5.0.4 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,49 +1,55 @@
|
|
1
|
-
//= require jquery-ui/
|
1
|
+
//= require jquery-ui/widgets/draggable
|
2
|
+
//= require jquery-ui/widgets/mouse
|
3
|
+
//= require jquery-ui/version
|
2
4
|
//= require jquery-ui/widget
|
3
|
-
//= require jquery-ui/mouse
|
4
|
-
//= require jquery-ui/draggable
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Droppable 1.
|
7
|
+
* jQuery UI Droppable 1.13.0
|
8
8
|
* http://jqueryui.com
|
9
9
|
*
|
10
10
|
* Copyright jQuery Foundation and other contributors
|
11
11
|
* Released under the MIT license.
|
12
12
|
* http://jquery.org/license
|
13
|
-
*
|
14
|
-
* http://api.jqueryui.com/droppable/
|
15
13
|
*/
|
16
|
-
|
14
|
+
|
15
|
+
//>>label: Droppable
|
16
|
+
//>>group: Interactions
|
17
|
+
//>>description: Enables drop targets for draggable elements.
|
18
|
+
//>>docs: http://api.jqueryui.com/droppable/
|
19
|
+
//>>demos: http://jqueryui.com/droppable/
|
20
|
+
|
21
|
+
( function( factory ) {
|
22
|
+
"use strict";
|
23
|
+
|
17
24
|
if ( typeof define === "function" && define.amd ) {
|
18
25
|
|
19
26
|
// AMD. Register as an anonymous module.
|
20
|
-
define([
|
27
|
+
define( [
|
21
28
|
"jquery",
|
22
|
-
"./
|
23
|
-
"./widget",
|
29
|
+
"./draggable",
|
24
30
|
"./mouse",
|
25
|
-
"
|
31
|
+
"../version",
|
32
|
+
"../widget"
|
26
33
|
], factory );
|
27
34
|
} else {
|
28
35
|
|
29
36
|
// Browser globals
|
30
37
|
factory( jQuery );
|
31
38
|
}
|
32
|
-
}(function( $ ) {
|
39
|
+
} )( function( $ ) {
|
40
|
+
"use strict";
|
33
41
|
|
34
42
|
$.widget( "ui.droppable", {
|
35
|
-
version: "1.
|
43
|
+
version: "1.13.0",
|
36
44
|
widgetEventPrefix: "drop",
|
37
45
|
options: {
|
38
46
|
accept: "*",
|
39
|
-
activeClass: false,
|
40
47
|
addClasses: true,
|
41
48
|
greedy: false,
|
42
|
-
hoverClass: false,
|
43
49
|
scope: "default",
|
44
50
|
tolerance: "intersect",
|
45
51
|
|
46
|
-
//
|
52
|
+
// Callbacks
|
47
53
|
activate: null,
|
48
54
|
deactivate: null,
|
49
55
|
drop: null,
|
@@ -59,15 +65,17 @@ $.widget( "ui.droppable", {
|
|
59
65
|
this.isover = false;
|
60
66
|
this.isout = true;
|
61
67
|
|
62
|
-
this.accept =
|
68
|
+
this.accept = typeof accept === "function" ? accept : function( d ) {
|
63
69
|
return d.is( accept );
|
64
70
|
};
|
65
71
|
|
66
72
|
this.proportions = function( /* valueToWrite */ ) {
|
67
73
|
if ( arguments.length ) {
|
74
|
+
|
68
75
|
// Store the droppable's proportions
|
69
76
|
proportions = arguments[ 0 ];
|
70
77
|
} else {
|
78
|
+
|
71
79
|
// Retrieve or derive the droppable's proportions
|
72
80
|
return proportions ?
|
73
81
|
proportions :
|
@@ -80,11 +88,14 @@ $.widget( "ui.droppable", {
|
|
80
88
|
|
81
89
|
this._addToManager( o.scope );
|
82
90
|
|
83
|
-
o.addClasses
|
91
|
+
if ( o.addClasses ) {
|
92
|
+
this._addClass( "ui-droppable" );
|
93
|
+
}
|
84
94
|
|
85
95
|
},
|
86
96
|
|
87
97
|
_addToManager: function( scope ) {
|
98
|
+
|
88
99
|
// Add the reference and positions to the manager
|
89
100
|
$.ui.ddmanager.droppables[ scope ] = $.ui.ddmanager.droppables[ scope ] || [];
|
90
101
|
$.ui.ddmanager.droppables[ scope ].push( this );
|
@@ -103,14 +114,12 @@ $.widget( "ui.droppable", {
|
|
103
114
|
var drop = $.ui.ddmanager.droppables[ this.options.scope ];
|
104
115
|
|
105
116
|
this._splice( drop );
|
106
|
-
|
107
|
-
this.element.removeClass( "ui-droppable ui-droppable-disabled" );
|
108
117
|
},
|
109
118
|
|
110
119
|
_setOption: function( key, value ) {
|
111
120
|
|
112
121
|
if ( key === "accept" ) {
|
113
|
-
this.accept =
|
122
|
+
this.accept = typeof value === "function" ? value : function( d ) {
|
114
123
|
return d.is( value );
|
115
124
|
};
|
116
125
|
} else if ( key === "scope" ) {
|
@@ -125,20 +134,18 @@ $.widget( "ui.droppable", {
|
|
125
134
|
|
126
135
|
_activate: function( event ) {
|
127
136
|
var draggable = $.ui.ddmanager.current;
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
if ( draggable ){
|
137
|
+
|
138
|
+
this._addActiveClass();
|
139
|
+
if ( draggable ) {
|
132
140
|
this._trigger( "activate", event, this.ui( draggable ) );
|
133
141
|
}
|
134
142
|
},
|
135
143
|
|
136
144
|
_deactivate: function( event ) {
|
137
145
|
var draggable = $.ui.ddmanager.current;
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
if ( draggable ){
|
146
|
+
|
147
|
+
this._removeActiveClass();
|
148
|
+
if ( draggable ) {
|
142
149
|
this._trigger( "deactivate", event, this.ui( draggable ) );
|
143
150
|
}
|
144
151
|
},
|
@@ -148,14 +155,14 @@ $.widget( "ui.droppable", {
|
|
148
155
|
var draggable = $.ui.ddmanager.current;
|
149
156
|
|
150
157
|
// Bail if draggable and droppable are same element
|
151
|
-
if ( !draggable || ( draggable.currentItem ||
|
158
|
+
if ( !draggable || ( draggable.currentItem ||
|
159
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
152
160
|
return;
|
153
161
|
}
|
154
162
|
|
155
|
-
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
156
|
-
|
157
|
-
|
158
|
-
}
|
163
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
164
|
+
draggable.element ) ) ) {
|
165
|
+
this._addHoverClass();
|
159
166
|
this._trigger( "over", event, this.ui( draggable ) );
|
160
167
|
}
|
161
168
|
|
@@ -166,14 +173,14 @@ $.widget( "ui.droppable", {
|
|
166
173
|
var draggable = $.ui.ddmanager.current;
|
167
174
|
|
168
175
|
// Bail if draggable and droppable are same element
|
169
|
-
if ( !draggable || ( draggable.currentItem ||
|
176
|
+
if ( !draggable || ( draggable.currentItem ||
|
177
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
170
178
|
return;
|
171
179
|
}
|
172
180
|
|
173
|
-
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
174
|
-
|
175
|
-
|
176
|
-
}
|
181
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
182
|
+
draggable.element ) ) ) {
|
183
|
+
this._removeHoverClass();
|
177
184
|
this._trigger( "out", event, this.ui( draggable ) );
|
178
185
|
}
|
179
186
|
|
@@ -185,31 +192,42 @@ $.widget( "ui.droppable", {
|
|
185
192
|
childrenIntersection = false;
|
186
193
|
|
187
194
|
// Bail if draggable and droppable are same element
|
188
|
-
if ( !draggable || ( draggable.currentItem ||
|
195
|
+
if ( !draggable || ( draggable.currentItem ||
|
196
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
189
197
|
return false;
|
190
198
|
}
|
191
199
|
|
192
|
-
this.element
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
200
|
+
this.element
|
201
|
+
.find( ":data(ui-droppable)" )
|
202
|
+
.not( ".ui-draggable-dragging" )
|
203
|
+
.each( function() {
|
204
|
+
var inst = $( this ).droppable( "instance" );
|
205
|
+
if (
|
206
|
+
inst.options.greedy &&
|
207
|
+
!inst.options.disabled &&
|
208
|
+
inst.options.scope === draggable.options.scope &&
|
209
|
+
inst.accept.call(
|
210
|
+
inst.element[ 0 ], ( draggable.currentItem || draggable.element )
|
211
|
+
) &&
|
212
|
+
$.ui.intersect(
|
213
|
+
draggable,
|
214
|
+
$.extend( inst, { offset: inst.element.offset() } ),
|
215
|
+
inst.options.tolerance, event
|
216
|
+
)
|
217
|
+
) {
|
218
|
+
childrenIntersection = true;
|
219
|
+
return false;
|
220
|
+
}
|
221
|
+
} );
|
202
222
|
if ( childrenIntersection ) {
|
203
223
|
return false;
|
204
224
|
}
|
205
225
|
|
206
|
-
if ( this.accept.call( this.element[ 0 ],
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
this.element.removeClass( this.options.hoverClass );
|
212
|
-
}
|
226
|
+
if ( this.accept.call( this.element[ 0 ],
|
227
|
+
( draggable.currentItem || draggable.element ) ) ) {
|
228
|
+
this._removeActiveClass();
|
229
|
+
this._removeHoverClass();
|
230
|
+
|
213
231
|
this._trigger( "drop", event, this.ui( draggable ) );
|
214
232
|
return this.element;
|
215
233
|
}
|
@@ -225,11 +243,28 @@ $.widget( "ui.droppable", {
|
|
225
243
|
position: c.position,
|
226
244
|
offset: c.positionAbs
|
227
245
|
};
|
228
|
-
}
|
246
|
+
},
|
247
|
+
|
248
|
+
// Extension points just to make backcompat sane and avoid duplicating logic
|
249
|
+
// TODO: Remove in 1.14 along with call to it below
|
250
|
+
_addHoverClass: function() {
|
251
|
+
this._addClass( "ui-droppable-hover" );
|
252
|
+
},
|
229
253
|
|
230
|
-
|
254
|
+
_removeHoverClass: function() {
|
255
|
+
this._removeClass( "ui-droppable-hover" );
|
256
|
+
},
|
257
|
+
|
258
|
+
_addActiveClass: function() {
|
259
|
+
this._addClass( "ui-droppable-active" );
|
260
|
+
},
|
231
261
|
|
232
|
-
|
262
|
+
_removeActiveClass: function() {
|
263
|
+
this._removeClass( "ui-droppable-active" );
|
264
|
+
}
|
265
|
+
} );
|
266
|
+
|
267
|
+
$.ui.intersect = ( function() {
|
233
268
|
function isOverAxis( x, reference, size ) {
|
234
269
|
return ( x >= reference ) && ( x < ( reference + size ) );
|
235
270
|
}
|
@@ -240,8 +275,10 @@ $.ui.intersect = (function() {
|
|
240
275
|
return false;
|
241
276
|
}
|
242
277
|
|
243
|
-
var x1 = ( draggable.positionAbs ||
|
244
|
-
|
278
|
+
var x1 = ( draggable.positionAbs ||
|
279
|
+
draggable.position.absolute ).left + draggable.margins.left,
|
280
|
+
y1 = ( draggable.positionAbs ||
|
281
|
+
draggable.position.absolute ).top + draggable.margins.top,
|
245
282
|
x2 = x1 + draggable.helperProportions.width,
|
246
283
|
y2 = y1 + draggable.helperProportions.height,
|
247
284
|
l = droppable.offset.left,
|
@@ -258,7 +295,8 @@ $.ui.intersect = (function() {
|
|
258
295
|
t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
|
259
296
|
y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
|
260
297
|
case "pointer":
|
261
|
-
return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
|
298
|
+
return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
|
299
|
+
isOverAxis( event.pageX, l, droppable.proportions().width );
|
262
300
|
case "touch":
|
263
301
|
return (
|
264
302
|
( y1 >= t && y1 <= b ) || // Top edge touching
|
@@ -273,7 +311,7 @@ $.ui.intersect = (function() {
|
|
273
311
|
return false;
|
274
312
|
}
|
275
313
|
};
|
276
|
-
})();
|
314
|
+
} )();
|
277
315
|
|
278
316
|
/*
|
279
317
|
This manager tracks offsets of draggables and droppables
|
@@ -291,7 +329,8 @@ $.ui.ddmanager = {
|
|
291
329
|
droppablesLoop: for ( i = 0; i < m.length; i++ ) {
|
292
330
|
|
293
331
|
// No disabled and non-accepted
|
294
|
-
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
|
332
|
+
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
|
333
|
+
( t.currentItem || t.element ) ) ) ) {
|
295
334
|
continue;
|
296
335
|
}
|
297
336
|
|
@@ -314,7 +353,10 @@ $.ui.ddmanager = {
|
|
314
353
|
}
|
315
354
|
|
316
355
|
m[ i ].offset = m[ i ].element.offset();
|
317
|
-
m[ i ].proportions({
|
356
|
+
m[ i ].proportions( {
|
357
|
+
width: m[ i ].element[ 0 ].offsetWidth,
|
358
|
+
height: m[ i ].element[ 0 ].offsetHeight
|
359
|
+
} );
|
318
360
|
|
319
361
|
}
|
320
362
|
|
@@ -322,37 +364,43 @@ $.ui.ddmanager = {
|
|
322
364
|
drop: function( draggable, event ) {
|
323
365
|
|
324
366
|
var dropped = false;
|
367
|
+
|
325
368
|
// Create a copy of the droppables in case the list changes during the drop (#9116)
|
326
369
|
$.each( ( $.ui.ddmanager.droppables[ draggable.options.scope ] || [] ).slice(), function() {
|
327
370
|
|
328
371
|
if ( !this.options ) {
|
329
372
|
return;
|
330
373
|
}
|
331
|
-
if ( !this.options.disabled && this.visible &&
|
374
|
+
if ( !this.options.disabled && this.visible &&
|
375
|
+
$.ui.intersect( draggable, this, this.options.tolerance, event ) ) {
|
332
376
|
dropped = this._drop.call( this, event ) || dropped;
|
333
377
|
}
|
334
378
|
|
335
|
-
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
|
379
|
+
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
|
380
|
+
( draggable.currentItem || draggable.element ) ) ) {
|
336
381
|
this.isout = true;
|
337
382
|
this.isover = false;
|
338
383
|
this._deactivate.call( this, event );
|
339
384
|
}
|
340
385
|
|
341
|
-
});
|
386
|
+
} );
|
342
387
|
return dropped;
|
343
388
|
|
344
389
|
},
|
345
390
|
dragStart: function( draggable, event ) {
|
346
|
-
|
347
|
-
|
391
|
+
|
392
|
+
// Listen for scrolling so that if the dragging causes scrolling the position of the
|
393
|
+
// droppables can be recalculated (see #5003)
|
394
|
+
draggable.element.parentsUntil( "body" ).on( "scroll.droppable", function() {
|
348
395
|
if ( !draggable.options.refreshPositions ) {
|
349
396
|
$.ui.ddmanager.prepareOffsets( draggable, event );
|
350
397
|
}
|
351
|
-
});
|
398
|
+
} );
|
352
399
|
},
|
353
400
|
drag: function( draggable, event ) {
|
354
401
|
|
355
|
-
// If you have a highly dynamic page, you might try this option. It renders positions
|
402
|
+
// If you have a highly dynamic page, you might try this option. It renders positions
|
403
|
+
// every time you move the mouse.
|
356
404
|
if ( draggable.options.refreshPositions ) {
|
357
405
|
$.ui.ddmanager.prepareOffsets( draggable, event );
|
358
406
|
}
|
@@ -366,17 +414,20 @@ $.ui.ddmanager = {
|
|
366
414
|
|
367
415
|
var parentInstance, scope, parent,
|
368
416
|
intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ),
|
369
|
-
c = !intersects && this.isover ?
|
417
|
+
c = !intersects && this.isover ?
|
418
|
+
"isout" :
|
419
|
+
( intersects && !this.isover ? "isover" : null );
|
370
420
|
if ( !c ) {
|
371
421
|
return;
|
372
422
|
}
|
373
423
|
|
374
424
|
if ( this.options.greedy ) {
|
425
|
+
|
375
426
|
// find droppable parents with same scope
|
376
427
|
scope = this.options.scope;
|
377
|
-
parent = this.element.parents( ":data(ui-droppable)" ).filter(function() {
|
428
|
+
parent = this.element.parents( ":data(ui-droppable)" ).filter( function() {
|
378
429
|
return $( this ).droppable( "instance" ).options.scope === scope;
|
379
|
-
});
|
430
|
+
} );
|
380
431
|
|
381
432
|
if ( parent.length ) {
|
382
433
|
parentInstance = $( parent[ 0 ] ).droppable( "instance" );
|
@@ -384,7 +435,7 @@ $.ui.ddmanager = {
|
|
384
435
|
}
|
385
436
|
}
|
386
437
|
|
387
|
-
//
|
438
|
+
// We just moved into a greedy child
|
388
439
|
if ( parentInstance && c === "isover" ) {
|
389
440
|
parentInstance.isover = false;
|
390
441
|
parentInstance.isout = true;
|
@@ -392,27 +443,66 @@ $.ui.ddmanager = {
|
|
392
443
|
}
|
393
444
|
|
394
445
|
this[ c ] = true;
|
395
|
-
this[c === "isout" ? "isover" : "isout"] = false;
|
396
|
-
this[c === "isover" ? "_over" : "_out"].call( this, event );
|
446
|
+
this[ c === "isout" ? "isover" : "isout" ] = false;
|
447
|
+
this[ c === "isover" ? "_over" : "_out" ].call( this, event );
|
397
448
|
|
398
|
-
//
|
449
|
+
// We just moved out of a greedy child
|
399
450
|
if ( parentInstance && c === "isout" ) {
|
400
451
|
parentInstance.isout = false;
|
401
452
|
parentInstance.isover = true;
|
402
453
|
parentInstance._over.call( parentInstance, event );
|
403
454
|
}
|
404
|
-
});
|
455
|
+
} );
|
405
456
|
|
406
457
|
},
|
407
458
|
dragStop: function( draggable, event ) {
|
408
|
-
draggable.element.parentsUntil( "body" ).
|
409
|
-
|
459
|
+
draggable.element.parentsUntil( "body" ).off( "scroll.droppable" );
|
460
|
+
|
461
|
+
// Call prepareOffsets one final time since IE does not fire return scroll events when
|
462
|
+
// overflow was caused by drag (see #5003)
|
410
463
|
if ( !draggable.options.refreshPositions ) {
|
411
464
|
$.ui.ddmanager.prepareOffsets( draggable, event );
|
412
465
|
}
|
413
466
|
}
|
414
467
|
};
|
415
468
|
|
469
|
+
// DEPRECATED
|
470
|
+
// TODO: switch return back to widget declaration at top of file when this is removed
|
471
|
+
if ( $.uiBackCompat !== false ) {
|
472
|
+
|
473
|
+
// Backcompat for activeClass and hoverClass options
|
474
|
+
$.widget( "ui.droppable", $.ui.droppable, {
|
475
|
+
options: {
|
476
|
+
hoverClass: false,
|
477
|
+
activeClass: false
|
478
|
+
},
|
479
|
+
_addActiveClass: function() {
|
480
|
+
this._super();
|
481
|
+
if ( this.options.activeClass ) {
|
482
|
+
this.element.addClass( this.options.activeClass );
|
483
|
+
}
|
484
|
+
},
|
485
|
+
_removeActiveClass: function() {
|
486
|
+
this._super();
|
487
|
+
if ( this.options.activeClass ) {
|
488
|
+
this.element.removeClass( this.options.activeClass );
|
489
|
+
}
|
490
|
+
},
|
491
|
+
_addHoverClass: function() {
|
492
|
+
this._super();
|
493
|
+
if ( this.options.hoverClass ) {
|
494
|
+
this.element.addClass( this.options.hoverClass );
|
495
|
+
}
|
496
|
+
},
|
497
|
+
_removeHoverClass: function() {
|
498
|
+
this._super();
|
499
|
+
if ( this.options.hoverClass ) {
|
500
|
+
this.element.removeClass( this.options.hoverClass );
|
501
|
+
}
|
502
|
+
}
|
503
|
+
} );
|
504
|
+
}
|
505
|
+
|
416
506
|
return $.ui.droppable;
|
417
507
|
|
418
|
-
})
|
508
|
+
} );
|