jquery-ui-rails 5.0.5 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.travis.yml +1 -1
- data/History.md +16 -0
- data/README.md +67 -50
- data/Rakefile +51 -27
- data/VERSIONS.md +2 -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 +41 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +48 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
- data/app/assets/javascripts/jquery-ui/effect.js +620 -284
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +73 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +113 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +68 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +72 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +114 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +50 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +92 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +60 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +46 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +67 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +60 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +77 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +194 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +79 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +43 -0
- data/app/assets/javascripts/jquery-ui/escape-selector.js +23 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +86 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
- data/app/assets/javascripts/jquery-ui/form.js +22 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +49 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +49 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +50 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +45 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +44 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +61 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +37 -0
- data/app/assets/javascripts/jquery-ui/ie.js +17 -0
- data/app/assets/javascripts/jquery-ui/jquery-1-7.js +91 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +47 -0
- data/app/assets/javascripts/jquery-ui/labels.js +65 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +46 -0
- data/app/assets/javascripts/jquery-ui/position.js +92 -109
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
- data/app/assets/javascripts/jquery-ui/safe-blur.js +23 -0
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +38 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +51 -0
- data/app/assets/javascripts/jquery-ui/version.js +17 -0
- data/app/assets/javascripts/jquery-ui/widget.js +328 -151
- data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +187 -162
- data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +148 -92
- data/app/assets/javascripts/jquery-ui/widgets/button.js +391 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
- data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +229 -158
- data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +416 -293
- data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +167 -83
- data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +164 -134
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
- data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +60 -41
- data/app/assets/javascripts/jquery-ui/{resizable.js → widgets/resizable.js} +413 -362
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +314 -0
- data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +253 -176
- data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +193 -157
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
- data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +175 -112
- data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +237 -195
- data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +136 -87
- data/app/assets/javascripts/jquery-ui.js +52 -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 +11 -7
- 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 +1 -2
- 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 +1 -2
- 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 +113 -87
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +150 -144
- 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/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1319
@@ -1,49 +1,52 @@
|
|
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.12.1
|
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 ) {
|
17
22
|
if ( typeof define === "function" && define.amd ) {
|
18
23
|
|
19
24
|
// AMD. Register as an anonymous module.
|
20
|
-
define([
|
25
|
+
define( [
|
21
26
|
"jquery",
|
22
|
-
"./
|
23
|
-
"./widget",
|
27
|
+
"./draggable",
|
24
28
|
"./mouse",
|
25
|
-
"
|
29
|
+
"../version",
|
30
|
+
"../widget"
|
26
31
|
], factory );
|
27
32
|
} else {
|
28
33
|
|
29
34
|
// Browser globals
|
30
35
|
factory( jQuery );
|
31
36
|
}
|
32
|
-
}(function( $ ) {
|
37
|
+
}( function( $ ) {
|
33
38
|
|
34
39
|
$.widget( "ui.droppable", {
|
35
|
-
version: "1.
|
40
|
+
version: "1.12.1",
|
36
41
|
widgetEventPrefix: "drop",
|
37
42
|
options: {
|
38
43
|
accept: "*",
|
39
|
-
activeClass: false,
|
40
44
|
addClasses: true,
|
41
45
|
greedy: false,
|
42
|
-
hoverClass: false,
|
43
46
|
scope: "default",
|
44
47
|
tolerance: "intersect",
|
45
48
|
|
46
|
-
//
|
49
|
+
// Callbacks
|
47
50
|
activate: null,
|
48
51
|
deactivate: null,
|
49
52
|
drop: null,
|
@@ -65,9 +68,11 @@ $.widget( "ui.droppable", {
|
|
65
68
|
|
66
69
|
this.proportions = function( /* valueToWrite */ ) {
|
67
70
|
if ( arguments.length ) {
|
71
|
+
|
68
72
|
// Store the droppable's proportions
|
69
73
|
proportions = arguments[ 0 ];
|
70
74
|
} else {
|
75
|
+
|
71
76
|
// Retrieve or derive the droppable's proportions
|
72
77
|
return proportions ?
|
73
78
|
proportions :
|
@@ -80,11 +85,12 @@ $.widget( "ui.droppable", {
|
|
80
85
|
|
81
86
|
this._addToManager( o.scope );
|
82
87
|
|
83
|
-
o.addClasses && this.
|
88
|
+
o.addClasses && this._addClass( "ui-droppable" );
|
84
89
|
|
85
90
|
},
|
86
91
|
|
87
92
|
_addToManager: function( scope ) {
|
93
|
+
|
88
94
|
// Add the reference and positions to the manager
|
89
95
|
$.ui.ddmanager.droppables[ scope ] = $.ui.ddmanager.droppables[ scope ] || [];
|
90
96
|
$.ui.ddmanager.droppables[ scope ].push( this );
|
@@ -103,8 +109,6 @@ $.widget( "ui.droppable", {
|
|
103
109
|
var drop = $.ui.ddmanager.droppables[ this.options.scope ];
|
104
110
|
|
105
111
|
this._splice( drop );
|
106
|
-
|
107
|
-
this.element.removeClass( "ui-droppable ui-droppable-disabled" );
|
108
112
|
},
|
109
113
|
|
110
114
|
_setOption: function( key, value ) {
|
@@ -125,20 +129,18 @@ $.widget( "ui.droppable", {
|
|
125
129
|
|
126
130
|
_activate: function( event ) {
|
127
131
|
var draggable = $.ui.ddmanager.current;
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
if ( draggable ){
|
132
|
+
|
133
|
+
this._addActiveClass();
|
134
|
+
if ( draggable ) {
|
132
135
|
this._trigger( "activate", event, this.ui( draggable ) );
|
133
136
|
}
|
134
137
|
},
|
135
138
|
|
136
139
|
_deactivate: function( event ) {
|
137
140
|
var draggable = $.ui.ddmanager.current;
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
if ( draggable ){
|
141
|
+
|
142
|
+
this._removeActiveClass();
|
143
|
+
if ( draggable ) {
|
142
144
|
this._trigger( "deactivate", event, this.ui( draggable ) );
|
143
145
|
}
|
144
146
|
},
|
@@ -148,14 +150,14 @@ $.widget( "ui.droppable", {
|
|
148
150
|
var draggable = $.ui.ddmanager.current;
|
149
151
|
|
150
152
|
// Bail if draggable and droppable are same element
|
151
|
-
if ( !draggable || ( draggable.currentItem ||
|
153
|
+
if ( !draggable || ( draggable.currentItem ||
|
154
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
152
155
|
return;
|
153
156
|
}
|
154
157
|
|
155
|
-
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
156
|
-
|
157
|
-
|
158
|
-
}
|
158
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
159
|
+
draggable.element ) ) ) {
|
160
|
+
this._addHoverClass();
|
159
161
|
this._trigger( "over", event, this.ui( draggable ) );
|
160
162
|
}
|
161
163
|
|
@@ -166,14 +168,14 @@ $.widget( "ui.droppable", {
|
|
166
168
|
var draggable = $.ui.ddmanager.current;
|
167
169
|
|
168
170
|
// Bail if draggable and droppable are same element
|
169
|
-
if ( !draggable || ( draggable.currentItem ||
|
171
|
+
if ( !draggable || ( draggable.currentItem ||
|
172
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
170
173
|
return;
|
171
174
|
}
|
172
175
|
|
173
|
-
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
174
|
-
|
175
|
-
|
176
|
-
}
|
176
|
+
if ( this.accept.call( this.element[ 0 ], ( draggable.currentItem ||
|
177
|
+
draggable.element ) ) ) {
|
178
|
+
this._removeHoverClass();
|
177
179
|
this._trigger( "out", event, this.ui( draggable ) );
|
178
180
|
}
|
179
181
|
|
@@ -185,31 +187,41 @@ $.widget( "ui.droppable", {
|
|
185
187
|
childrenIntersection = false;
|
186
188
|
|
187
189
|
// Bail if draggable and droppable are same element
|
188
|
-
if ( !draggable || ( draggable.currentItem ||
|
190
|
+
if ( !draggable || ( draggable.currentItem ||
|
191
|
+
draggable.element )[ 0 ] === this.element[ 0 ] ) {
|
189
192
|
return false;
|
190
193
|
}
|
191
194
|
|
192
|
-
this.element
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
195
|
+
this.element
|
196
|
+
.find( ":data(ui-droppable)" )
|
197
|
+
.not( ".ui-draggable-dragging" )
|
198
|
+
.each( function() {
|
199
|
+
var inst = $( this ).droppable( "instance" );
|
200
|
+
if (
|
201
|
+
inst.options.greedy &&
|
202
|
+
!inst.options.disabled &&
|
203
|
+
inst.options.scope === draggable.options.scope &&
|
204
|
+
inst.accept.call(
|
205
|
+
inst.element[ 0 ], ( draggable.currentItem || draggable.element )
|
206
|
+
) &&
|
207
|
+
intersect(
|
208
|
+
draggable,
|
209
|
+
$.extend( inst, { offset: inst.element.offset() } ),
|
210
|
+
inst.options.tolerance, event
|
211
|
+
)
|
212
|
+
) {
|
213
|
+
childrenIntersection = true;
|
214
|
+
return false; }
|
215
|
+
} );
|
202
216
|
if ( childrenIntersection ) {
|
203
217
|
return false;
|
204
218
|
}
|
205
219
|
|
206
|
-
if ( this.accept.call( this.element[ 0 ],
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
this.element.removeClass( this.options.hoverClass );
|
212
|
-
}
|
220
|
+
if ( this.accept.call( this.element[ 0 ],
|
221
|
+
( draggable.currentItem || draggable.element ) ) ) {
|
222
|
+
this._removeActiveClass();
|
223
|
+
this._removeHoverClass();
|
224
|
+
|
213
225
|
this._trigger( "drop", event, this.ui( draggable ) );
|
214
226
|
return this.element;
|
215
227
|
}
|
@@ -225,11 +237,28 @@ $.widget( "ui.droppable", {
|
|
225
237
|
position: c.position,
|
226
238
|
offset: c.positionAbs
|
227
239
|
};
|
228
|
-
}
|
240
|
+
},
|
241
|
+
|
242
|
+
// Extension points just to make backcompat sane and avoid duplicating logic
|
243
|
+
// TODO: Remove in 1.13 along with call to it below
|
244
|
+
_addHoverClass: function() {
|
245
|
+
this._addClass( "ui-droppable-hover" );
|
246
|
+
},
|
229
247
|
|
230
|
-
|
248
|
+
_removeHoverClass: function() {
|
249
|
+
this._removeClass( "ui-droppable-hover" );
|
250
|
+
},
|
231
251
|
|
232
|
-
|
252
|
+
_addActiveClass: function() {
|
253
|
+
this._addClass( "ui-droppable-active" );
|
254
|
+
},
|
255
|
+
|
256
|
+
_removeActiveClass: function() {
|
257
|
+
this._removeClass( "ui-droppable-active" );
|
258
|
+
}
|
259
|
+
} );
|
260
|
+
|
261
|
+
var intersect = $.ui.intersect = ( function() {
|
233
262
|
function isOverAxis( x, reference, size ) {
|
234
263
|
return ( x >= reference ) && ( x < ( reference + size ) );
|
235
264
|
}
|
@@ -240,8 +269,10 @@ $.ui.intersect = (function() {
|
|
240
269
|
return false;
|
241
270
|
}
|
242
271
|
|
243
|
-
var x1 = ( draggable.positionAbs ||
|
244
|
-
|
272
|
+
var x1 = ( draggable.positionAbs ||
|
273
|
+
draggable.position.absolute ).left + draggable.margins.left,
|
274
|
+
y1 = ( draggable.positionAbs ||
|
275
|
+
draggable.position.absolute ).top + draggable.margins.top,
|
245
276
|
x2 = x1 + draggable.helperProportions.width,
|
246
277
|
y2 = y1 + draggable.helperProportions.height,
|
247
278
|
l = droppable.offset.left,
|
@@ -258,7 +289,8 @@ $.ui.intersect = (function() {
|
|
258
289
|
t < y1 + ( draggable.helperProportions.height / 2 ) && // Bottom Half
|
259
290
|
y2 - ( draggable.helperProportions.height / 2 ) < b ); // Top Half
|
260
291
|
case "pointer":
|
261
|
-
return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
|
292
|
+
return isOverAxis( event.pageY, t, droppable.proportions().height ) &&
|
293
|
+
isOverAxis( event.pageX, l, droppable.proportions().width );
|
262
294
|
case "touch":
|
263
295
|
return (
|
264
296
|
( y1 >= t && y1 <= b ) || // Top edge touching
|
@@ -273,7 +305,7 @@ $.ui.intersect = (function() {
|
|
273
305
|
return false;
|
274
306
|
}
|
275
307
|
};
|
276
|
-
})();
|
308
|
+
} )();
|
277
309
|
|
278
310
|
/*
|
279
311
|
This manager tracks offsets of draggables and droppables
|
@@ -291,7 +323,8 @@ $.ui.ddmanager = {
|
|
291
323
|
droppablesLoop: for ( i = 0; i < m.length; i++ ) {
|
292
324
|
|
293
325
|
// No disabled and non-accepted
|
294
|
-
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
|
326
|
+
if ( m[ i ].options.disabled || ( t && !m[ i ].accept.call( m[ i ].element[ 0 ],
|
327
|
+
( t.currentItem || t.element ) ) ) ) {
|
295
328
|
continue;
|
296
329
|
}
|
297
330
|
|
@@ -314,7 +347,10 @@ $.ui.ddmanager = {
|
|
314
347
|
}
|
315
348
|
|
316
349
|
m[ i ].offset = m[ i ].element.offset();
|
317
|
-
m[ i ].proportions({
|
350
|
+
m[ i ].proportions( {
|
351
|
+
width: m[ i ].element[ 0 ].offsetWidth,
|
352
|
+
height: m[ i ].element[ 0 ].offsetHeight
|
353
|
+
} );
|
318
354
|
|
319
355
|
}
|
320
356
|
|
@@ -322,37 +358,43 @@ $.ui.ddmanager = {
|
|
322
358
|
drop: function( draggable, event ) {
|
323
359
|
|
324
360
|
var dropped = false;
|
361
|
+
|
325
362
|
// Create a copy of the droppables in case the list changes during the drop (#9116)
|
326
363
|
$.each( ( $.ui.ddmanager.droppables[ draggable.options.scope ] || [] ).slice(), function() {
|
327
364
|
|
328
365
|
if ( !this.options ) {
|
329
366
|
return;
|
330
367
|
}
|
331
|
-
if ( !this.options.disabled && this.visible &&
|
368
|
+
if ( !this.options.disabled && this.visible &&
|
369
|
+
intersect( draggable, this, this.options.tolerance, event ) ) {
|
332
370
|
dropped = this._drop.call( this, event ) || dropped;
|
333
371
|
}
|
334
372
|
|
335
|
-
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
|
373
|
+
if ( !this.options.disabled && this.visible && this.accept.call( this.element[ 0 ],
|
374
|
+
( draggable.currentItem || draggable.element ) ) ) {
|
336
375
|
this.isout = true;
|
337
376
|
this.isover = false;
|
338
377
|
this._deactivate.call( this, event );
|
339
378
|
}
|
340
379
|
|
341
|
-
});
|
380
|
+
} );
|
342
381
|
return dropped;
|
343
382
|
|
344
383
|
},
|
345
384
|
dragStart: function( draggable, event ) {
|
346
|
-
|
347
|
-
|
385
|
+
|
386
|
+
// Listen for scrolling so that if the dragging causes scrolling the position of the
|
387
|
+
// droppables can be recalculated (see #5003)
|
388
|
+
draggable.element.parentsUntil( "body" ).on( "scroll.droppable", function() {
|
348
389
|
if ( !draggable.options.refreshPositions ) {
|
349
390
|
$.ui.ddmanager.prepareOffsets( draggable, event );
|
350
391
|
}
|
351
|
-
});
|
392
|
+
} );
|
352
393
|
},
|
353
394
|
drag: function( draggable, event ) {
|
354
395
|
|
355
|
-
// If you have a highly dynamic page, you might try this option. It renders positions
|
396
|
+
// If you have a highly dynamic page, you might try this option. It renders positions
|
397
|
+
// every time you move the mouse.
|
356
398
|
if ( draggable.options.refreshPositions ) {
|
357
399
|
$.ui.ddmanager.prepareOffsets( draggable, event );
|
358
400
|
}
|
@@ -365,18 +407,21 @@ $.ui.ddmanager = {
|
|
365
407
|
}
|
366
408
|
|
367
409
|
var parentInstance, scope, parent,
|
368
|
-
intersects =
|
369
|
-
c = !intersects && this.isover ?
|
410
|
+
intersects = intersect( draggable, this, this.options.tolerance, event ),
|
411
|
+
c = !intersects && this.isover ?
|
412
|
+
"isout" :
|
413
|
+
( intersects && !this.isover ? "isover" : null );
|
370
414
|
if ( !c ) {
|
371
415
|
return;
|
372
416
|
}
|
373
417
|
|
374
418
|
if ( this.options.greedy ) {
|
419
|
+
|
375
420
|
// find droppable parents with same scope
|
376
421
|
scope = this.options.scope;
|
377
|
-
parent = this.element.parents( ":data(ui-droppable)" ).filter(function() {
|
422
|
+
parent = this.element.parents( ":data(ui-droppable)" ).filter( function() {
|
378
423
|
return $( this ).droppable( "instance" ).options.scope === scope;
|
379
|
-
});
|
424
|
+
} );
|
380
425
|
|
381
426
|
if ( parent.length ) {
|
382
427
|
parentInstance = $( parent[ 0 ] ).droppable( "instance" );
|
@@ -384,7 +429,7 @@ $.ui.ddmanager = {
|
|
384
429
|
}
|
385
430
|
}
|
386
431
|
|
387
|
-
//
|
432
|
+
// We just moved into a greedy child
|
388
433
|
if ( parentInstance && c === "isover" ) {
|
389
434
|
parentInstance.isover = false;
|
390
435
|
parentInstance.isout = true;
|
@@ -392,27 +437,66 @@ $.ui.ddmanager = {
|
|
392
437
|
}
|
393
438
|
|
394
439
|
this[ c ] = true;
|
395
|
-
this[c === "isout" ? "isover" : "isout"] = false;
|
396
|
-
this[c === "isover" ? "_over" : "_out"].call( this, event );
|
440
|
+
this[ c === "isout" ? "isover" : "isout" ] = false;
|
441
|
+
this[ c === "isover" ? "_over" : "_out" ].call( this, event );
|
397
442
|
|
398
|
-
//
|
443
|
+
// We just moved out of a greedy child
|
399
444
|
if ( parentInstance && c === "isout" ) {
|
400
445
|
parentInstance.isout = false;
|
401
446
|
parentInstance.isover = true;
|
402
447
|
parentInstance._over.call( parentInstance, event );
|
403
448
|
}
|
404
|
-
});
|
449
|
+
} );
|
405
450
|
|
406
451
|
},
|
407
452
|
dragStop: function( draggable, event ) {
|
408
|
-
draggable.element.parentsUntil( "body" ).
|
409
|
-
|
453
|
+
draggable.element.parentsUntil( "body" ).off( "scroll.droppable" );
|
454
|
+
|
455
|
+
// Call prepareOffsets one final time since IE does not fire return scroll events when
|
456
|
+
// overflow was caused by drag (see #5003)
|
410
457
|
if ( !draggable.options.refreshPositions ) {
|
411
458
|
$.ui.ddmanager.prepareOffsets( draggable, event );
|
412
459
|
}
|
413
460
|
}
|
414
461
|
};
|
415
462
|
|
463
|
+
// DEPRECATED
|
464
|
+
// TODO: switch return back to widget declaration at top of file when this is removed
|
465
|
+
if ( $.uiBackCompat !== false ) {
|
466
|
+
|
467
|
+
// Backcompat for activeClass and hoverClass options
|
468
|
+
$.widget( "ui.droppable", $.ui.droppable, {
|
469
|
+
options: {
|
470
|
+
hoverClass: false,
|
471
|
+
activeClass: false
|
472
|
+
},
|
473
|
+
_addActiveClass: function() {
|
474
|
+
this._super();
|
475
|
+
if ( this.options.activeClass ) {
|
476
|
+
this.element.addClass( this.options.activeClass );
|
477
|
+
}
|
478
|
+
},
|
479
|
+
_removeActiveClass: function() {
|
480
|
+
this._super();
|
481
|
+
if ( this.options.activeClass ) {
|
482
|
+
this.element.removeClass( this.options.activeClass );
|
483
|
+
}
|
484
|
+
},
|
485
|
+
_addHoverClass: function() {
|
486
|
+
this._super();
|
487
|
+
if ( this.options.hoverClass ) {
|
488
|
+
this.element.addClass( this.options.hoverClass );
|
489
|
+
}
|
490
|
+
},
|
491
|
+
_removeHoverClass: function() {
|
492
|
+
this._super();
|
493
|
+
if ( this.options.hoverClass ) {
|
494
|
+
this.element.removeClass( this.options.hoverClass );
|
495
|
+
}
|
496
|
+
}
|
497
|
+
} );
|
498
|
+
}
|
499
|
+
|
416
500
|
return $.ui.droppable;
|
417
501
|
|
418
|
-
}));
|
502
|
+
} ) );
|