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,202 +0,0 @@
|
|
1
|
-
//= require jquery-ui/core
|
2
|
-
//= require jquery-ui/widget
|
3
|
-
|
4
|
-
/*!
|
5
|
-
* jQuery UI Mouse 1.11.4
|
6
|
-
* http://jqueryui.com
|
7
|
-
*
|
8
|
-
* Copyright jQuery Foundation and other contributors
|
9
|
-
* Released under the MIT license.
|
10
|
-
* http://jquery.org/license
|
11
|
-
*
|
12
|
-
* http://api.jqueryui.com/mouse/
|
13
|
-
*/
|
14
|
-
(function( factory ) {
|
15
|
-
if ( typeof define === "function" && define.amd ) {
|
16
|
-
|
17
|
-
// AMD. Register as an anonymous module.
|
18
|
-
define([
|
19
|
-
"jquery",
|
20
|
-
"./widget"
|
21
|
-
], factory );
|
22
|
-
} else {
|
23
|
-
|
24
|
-
// Browser globals
|
25
|
-
factory( jQuery );
|
26
|
-
}
|
27
|
-
}(function( $ ) {
|
28
|
-
|
29
|
-
var mouseHandled = false;
|
30
|
-
$( document ).mouseup( function() {
|
31
|
-
mouseHandled = false;
|
32
|
-
});
|
33
|
-
|
34
|
-
return $.widget("ui.mouse", {
|
35
|
-
version: "1.11.4",
|
36
|
-
options: {
|
37
|
-
cancel: "input,textarea,button,select,option",
|
38
|
-
distance: 1,
|
39
|
-
delay: 0
|
40
|
-
},
|
41
|
-
_mouseInit: function() {
|
42
|
-
var that = this;
|
43
|
-
|
44
|
-
this.element
|
45
|
-
.bind("mousedown." + this.widgetName, function(event) {
|
46
|
-
return that._mouseDown(event);
|
47
|
-
})
|
48
|
-
.bind("click." + this.widgetName, function(event) {
|
49
|
-
if (true === $.data(event.target, that.widgetName + ".preventClickEvent")) {
|
50
|
-
$.removeData(event.target, that.widgetName + ".preventClickEvent");
|
51
|
-
event.stopImmediatePropagation();
|
52
|
-
return false;
|
53
|
-
}
|
54
|
-
});
|
55
|
-
|
56
|
-
this.started = false;
|
57
|
-
},
|
58
|
-
|
59
|
-
// TODO: make sure destroying one instance of mouse doesn't mess with
|
60
|
-
// other instances of mouse
|
61
|
-
_mouseDestroy: function() {
|
62
|
-
this.element.unbind("." + this.widgetName);
|
63
|
-
if ( this._mouseMoveDelegate ) {
|
64
|
-
this.document
|
65
|
-
.unbind("mousemove." + this.widgetName, this._mouseMoveDelegate)
|
66
|
-
.unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
|
67
|
-
}
|
68
|
-
},
|
69
|
-
|
70
|
-
_mouseDown: function(event) {
|
71
|
-
// don't let more than one widget handle mouseStart
|
72
|
-
if ( mouseHandled ) {
|
73
|
-
return;
|
74
|
-
}
|
75
|
-
|
76
|
-
this._mouseMoved = false;
|
77
|
-
|
78
|
-
// we may have missed mouseup (out of window)
|
79
|
-
(this._mouseStarted && this._mouseUp(event));
|
80
|
-
|
81
|
-
this._mouseDownEvent = event;
|
82
|
-
|
83
|
-
var that = this,
|
84
|
-
btnIsLeft = (event.which === 1),
|
85
|
-
// event.target.nodeName works around a bug in IE 8 with
|
86
|
-
// disabled inputs (#7620)
|
87
|
-
elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
|
88
|
-
if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
|
89
|
-
return true;
|
90
|
-
}
|
91
|
-
|
92
|
-
this.mouseDelayMet = !this.options.delay;
|
93
|
-
if (!this.mouseDelayMet) {
|
94
|
-
this._mouseDelayTimer = setTimeout(function() {
|
95
|
-
that.mouseDelayMet = true;
|
96
|
-
}, this.options.delay);
|
97
|
-
}
|
98
|
-
|
99
|
-
if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
|
100
|
-
this._mouseStarted = (this._mouseStart(event) !== false);
|
101
|
-
if (!this._mouseStarted) {
|
102
|
-
event.preventDefault();
|
103
|
-
return true;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
// Click event may never have fired (Gecko & Opera)
|
108
|
-
if (true === $.data(event.target, this.widgetName + ".preventClickEvent")) {
|
109
|
-
$.removeData(event.target, this.widgetName + ".preventClickEvent");
|
110
|
-
}
|
111
|
-
|
112
|
-
// these delegates are required to keep context
|
113
|
-
this._mouseMoveDelegate = function(event) {
|
114
|
-
return that._mouseMove(event);
|
115
|
-
};
|
116
|
-
this._mouseUpDelegate = function(event) {
|
117
|
-
return that._mouseUp(event);
|
118
|
-
};
|
119
|
-
|
120
|
-
this.document
|
121
|
-
.bind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
122
|
-
.bind( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
123
|
-
|
124
|
-
event.preventDefault();
|
125
|
-
|
126
|
-
mouseHandled = true;
|
127
|
-
return true;
|
128
|
-
},
|
129
|
-
|
130
|
-
_mouseMove: function(event) {
|
131
|
-
// Only check for mouseups outside the document if you've moved inside the document
|
132
|
-
// at least once. This prevents the firing of mouseup in the case of IE<9, which will
|
133
|
-
// fire a mousemove event if content is placed under the cursor. See #7778
|
134
|
-
// Support: IE <9
|
135
|
-
if ( this._mouseMoved ) {
|
136
|
-
// IE mouseup check - mouseup happened when mouse was out of window
|
137
|
-
if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
|
138
|
-
return this._mouseUp(event);
|
139
|
-
|
140
|
-
// Iframe mouseup check - mouseup occurred in another document
|
141
|
-
} else if ( !event.which ) {
|
142
|
-
return this._mouseUp( event );
|
143
|
-
}
|
144
|
-
}
|
145
|
-
|
146
|
-
if ( event.which || event.button ) {
|
147
|
-
this._mouseMoved = true;
|
148
|
-
}
|
149
|
-
|
150
|
-
if (this._mouseStarted) {
|
151
|
-
this._mouseDrag(event);
|
152
|
-
return event.preventDefault();
|
153
|
-
}
|
154
|
-
|
155
|
-
if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
|
156
|
-
this._mouseStarted =
|
157
|
-
(this._mouseStart(this._mouseDownEvent, event) !== false);
|
158
|
-
(this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));
|
159
|
-
}
|
160
|
-
|
161
|
-
return !this._mouseStarted;
|
162
|
-
},
|
163
|
-
|
164
|
-
_mouseUp: function(event) {
|
165
|
-
this.document
|
166
|
-
.unbind( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
167
|
-
.unbind( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
168
|
-
|
169
|
-
if (this._mouseStarted) {
|
170
|
-
this._mouseStarted = false;
|
171
|
-
|
172
|
-
if (event.target === this._mouseDownEvent.target) {
|
173
|
-
$.data(event.target, this.widgetName + ".preventClickEvent", true);
|
174
|
-
}
|
175
|
-
|
176
|
-
this._mouseStop(event);
|
177
|
-
}
|
178
|
-
|
179
|
-
mouseHandled = false;
|
180
|
-
return false;
|
181
|
-
},
|
182
|
-
|
183
|
-
_mouseDistanceMet: function(event) {
|
184
|
-
return (Math.max(
|
185
|
-
Math.abs(this._mouseDownEvent.pageX - event.pageX),
|
186
|
-
Math.abs(this._mouseDownEvent.pageY - event.pageY)
|
187
|
-
) >= this.options.distance
|
188
|
-
);
|
189
|
-
},
|
190
|
-
|
191
|
-
_mouseDelayMet: function(/* event */) {
|
192
|
-
return this.mouseDelayMet;
|
193
|
-
},
|
194
|
-
|
195
|
-
// These are placeholder methods, to be overriden by extending plugin
|
196
|
-
_mouseStart: function(/* event */) {},
|
197
|
-
_mouseDrag: function(/* event */) {},
|
198
|
-
_mouseStop: function(/* event */) {},
|
199
|
-
_mouseCapture: function(/* event */) { return true; }
|
200
|
-
});
|
201
|
-
|
202
|
-
}));
|
@@ -1,291 +0,0 @@
|
|
1
|
-
//= require jquery-ui/core
|
2
|
-
//= require jquery-ui/widget
|
3
|
-
//= require jquery-ui/mouse
|
4
|
-
|
5
|
-
/*!
|
6
|
-
* jQuery UI Selectable 1.11.4
|
7
|
-
* http://jqueryui.com
|
8
|
-
*
|
9
|
-
* Copyright jQuery Foundation and other contributors
|
10
|
-
* Released under the MIT license.
|
11
|
-
* http://jquery.org/license
|
12
|
-
*
|
13
|
-
* http://api.jqueryui.com/selectable/
|
14
|
-
*/
|
15
|
-
(function( factory ) {
|
16
|
-
if ( typeof define === "function" && define.amd ) {
|
17
|
-
|
18
|
-
// AMD. Register as an anonymous module.
|
19
|
-
define([
|
20
|
-
"jquery",
|
21
|
-
"./core",
|
22
|
-
"./mouse",
|
23
|
-
"./widget"
|
24
|
-
], factory );
|
25
|
-
} else {
|
26
|
-
|
27
|
-
// Browser globals
|
28
|
-
factory( jQuery );
|
29
|
-
}
|
30
|
-
}(function( $ ) {
|
31
|
-
|
32
|
-
return $.widget("ui.selectable", $.ui.mouse, {
|
33
|
-
version: "1.11.4",
|
34
|
-
options: {
|
35
|
-
appendTo: "body",
|
36
|
-
autoRefresh: true,
|
37
|
-
distance: 0,
|
38
|
-
filter: "*",
|
39
|
-
tolerance: "touch",
|
40
|
-
|
41
|
-
// callbacks
|
42
|
-
selected: null,
|
43
|
-
selecting: null,
|
44
|
-
start: null,
|
45
|
-
stop: null,
|
46
|
-
unselected: null,
|
47
|
-
unselecting: null
|
48
|
-
},
|
49
|
-
_create: function() {
|
50
|
-
var selectees,
|
51
|
-
that = this;
|
52
|
-
|
53
|
-
this.element.addClass("ui-selectable");
|
54
|
-
|
55
|
-
this.dragged = false;
|
56
|
-
|
57
|
-
// cache selectee children based on filter
|
58
|
-
this.refresh = function() {
|
59
|
-
selectees = $(that.options.filter, that.element[0]);
|
60
|
-
selectees.addClass("ui-selectee");
|
61
|
-
selectees.each(function() {
|
62
|
-
var $this = $(this),
|
63
|
-
pos = $this.offset();
|
64
|
-
$.data(this, "selectable-item", {
|
65
|
-
element: this,
|
66
|
-
$element: $this,
|
67
|
-
left: pos.left,
|
68
|
-
top: pos.top,
|
69
|
-
right: pos.left + $this.outerWidth(),
|
70
|
-
bottom: pos.top + $this.outerHeight(),
|
71
|
-
startselected: false,
|
72
|
-
selected: $this.hasClass("ui-selected"),
|
73
|
-
selecting: $this.hasClass("ui-selecting"),
|
74
|
-
unselecting: $this.hasClass("ui-unselecting")
|
75
|
-
});
|
76
|
-
});
|
77
|
-
};
|
78
|
-
this.refresh();
|
79
|
-
|
80
|
-
this.selectees = selectees.addClass("ui-selectee");
|
81
|
-
|
82
|
-
this._mouseInit();
|
83
|
-
|
84
|
-
this.helper = $("<div class='ui-selectable-helper'></div>");
|
85
|
-
},
|
86
|
-
|
87
|
-
_destroy: function() {
|
88
|
-
this.selectees
|
89
|
-
.removeClass("ui-selectee")
|
90
|
-
.removeData("selectable-item");
|
91
|
-
this.element
|
92
|
-
.removeClass("ui-selectable ui-selectable-disabled");
|
93
|
-
this._mouseDestroy();
|
94
|
-
},
|
95
|
-
|
96
|
-
_mouseStart: function(event) {
|
97
|
-
var that = this,
|
98
|
-
options = this.options;
|
99
|
-
|
100
|
-
this.opos = [ event.pageX, event.pageY ];
|
101
|
-
|
102
|
-
if (this.options.disabled) {
|
103
|
-
return;
|
104
|
-
}
|
105
|
-
|
106
|
-
this.selectees = $(options.filter, this.element[0]);
|
107
|
-
|
108
|
-
this._trigger("start", event);
|
109
|
-
|
110
|
-
$(options.appendTo).append(this.helper);
|
111
|
-
// position helper (lasso)
|
112
|
-
this.helper.css({
|
113
|
-
"left": event.pageX,
|
114
|
-
"top": event.pageY,
|
115
|
-
"width": 0,
|
116
|
-
"height": 0
|
117
|
-
});
|
118
|
-
|
119
|
-
if (options.autoRefresh) {
|
120
|
-
this.refresh();
|
121
|
-
}
|
122
|
-
|
123
|
-
this.selectees.filter(".ui-selected").each(function() {
|
124
|
-
var selectee = $.data(this, "selectable-item");
|
125
|
-
selectee.startselected = true;
|
126
|
-
if (!event.metaKey && !event.ctrlKey) {
|
127
|
-
selectee.$element.removeClass("ui-selected");
|
128
|
-
selectee.selected = false;
|
129
|
-
selectee.$element.addClass("ui-unselecting");
|
130
|
-
selectee.unselecting = true;
|
131
|
-
// selectable UNSELECTING callback
|
132
|
-
that._trigger("unselecting", event, {
|
133
|
-
unselecting: selectee.element
|
134
|
-
});
|
135
|
-
}
|
136
|
-
});
|
137
|
-
|
138
|
-
$(event.target).parents().addBack().each(function() {
|
139
|
-
var doSelect,
|
140
|
-
selectee = $.data(this, "selectable-item");
|
141
|
-
if (selectee) {
|
142
|
-
doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass("ui-selected");
|
143
|
-
selectee.$element
|
144
|
-
.removeClass(doSelect ? "ui-unselecting" : "ui-selected")
|
145
|
-
.addClass(doSelect ? "ui-selecting" : "ui-unselecting");
|
146
|
-
selectee.unselecting = !doSelect;
|
147
|
-
selectee.selecting = doSelect;
|
148
|
-
selectee.selected = doSelect;
|
149
|
-
// selectable (UN)SELECTING callback
|
150
|
-
if (doSelect) {
|
151
|
-
that._trigger("selecting", event, {
|
152
|
-
selecting: selectee.element
|
153
|
-
});
|
154
|
-
} else {
|
155
|
-
that._trigger("unselecting", event, {
|
156
|
-
unselecting: selectee.element
|
157
|
-
});
|
158
|
-
}
|
159
|
-
return false;
|
160
|
-
}
|
161
|
-
});
|
162
|
-
|
163
|
-
},
|
164
|
-
|
165
|
-
_mouseDrag: function(event) {
|
166
|
-
|
167
|
-
this.dragged = true;
|
168
|
-
|
169
|
-
if (this.options.disabled) {
|
170
|
-
return;
|
171
|
-
}
|
172
|
-
|
173
|
-
var tmp,
|
174
|
-
that = this,
|
175
|
-
options = this.options,
|
176
|
-
x1 = this.opos[0],
|
177
|
-
y1 = this.opos[1],
|
178
|
-
x2 = event.pageX,
|
179
|
-
y2 = event.pageY;
|
180
|
-
|
181
|
-
if (x1 > x2) { tmp = x2; x2 = x1; x1 = tmp; }
|
182
|
-
if (y1 > y2) { tmp = y2; y2 = y1; y1 = tmp; }
|
183
|
-
this.helper.css({ left: x1, top: y1, width: x2 - x1, height: y2 - y1 });
|
184
|
-
|
185
|
-
this.selectees.each(function() {
|
186
|
-
var selectee = $.data(this, "selectable-item"),
|
187
|
-
hit = false;
|
188
|
-
|
189
|
-
//prevent helper from being selected if appendTo: selectable
|
190
|
-
if (!selectee || selectee.element === that.element[0]) {
|
191
|
-
return;
|
192
|
-
}
|
193
|
-
|
194
|
-
if (options.tolerance === "touch") {
|
195
|
-
hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
|
196
|
-
} else if (options.tolerance === "fit") {
|
197
|
-
hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
|
198
|
-
}
|
199
|
-
|
200
|
-
if (hit) {
|
201
|
-
// SELECT
|
202
|
-
if (selectee.selected) {
|
203
|
-
selectee.$element.removeClass("ui-selected");
|
204
|
-
selectee.selected = false;
|
205
|
-
}
|
206
|
-
if (selectee.unselecting) {
|
207
|
-
selectee.$element.removeClass("ui-unselecting");
|
208
|
-
selectee.unselecting = false;
|
209
|
-
}
|
210
|
-
if (!selectee.selecting) {
|
211
|
-
selectee.$element.addClass("ui-selecting");
|
212
|
-
selectee.selecting = true;
|
213
|
-
// selectable SELECTING callback
|
214
|
-
that._trigger("selecting", event, {
|
215
|
-
selecting: selectee.element
|
216
|
-
});
|
217
|
-
}
|
218
|
-
} else {
|
219
|
-
// UNSELECT
|
220
|
-
if (selectee.selecting) {
|
221
|
-
if ((event.metaKey || event.ctrlKey) && selectee.startselected) {
|
222
|
-
selectee.$element.removeClass("ui-selecting");
|
223
|
-
selectee.selecting = false;
|
224
|
-
selectee.$element.addClass("ui-selected");
|
225
|
-
selectee.selected = true;
|
226
|
-
} else {
|
227
|
-
selectee.$element.removeClass("ui-selecting");
|
228
|
-
selectee.selecting = false;
|
229
|
-
if (selectee.startselected) {
|
230
|
-
selectee.$element.addClass("ui-unselecting");
|
231
|
-
selectee.unselecting = true;
|
232
|
-
}
|
233
|
-
// selectable UNSELECTING callback
|
234
|
-
that._trigger("unselecting", event, {
|
235
|
-
unselecting: selectee.element
|
236
|
-
});
|
237
|
-
}
|
238
|
-
}
|
239
|
-
if (selectee.selected) {
|
240
|
-
if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {
|
241
|
-
selectee.$element.removeClass("ui-selected");
|
242
|
-
selectee.selected = false;
|
243
|
-
|
244
|
-
selectee.$element.addClass("ui-unselecting");
|
245
|
-
selectee.unselecting = true;
|
246
|
-
// selectable UNSELECTING callback
|
247
|
-
that._trigger("unselecting", event, {
|
248
|
-
unselecting: selectee.element
|
249
|
-
});
|
250
|
-
}
|
251
|
-
}
|
252
|
-
}
|
253
|
-
});
|
254
|
-
|
255
|
-
return false;
|
256
|
-
},
|
257
|
-
|
258
|
-
_mouseStop: function(event) {
|
259
|
-
var that = this;
|
260
|
-
|
261
|
-
this.dragged = false;
|
262
|
-
|
263
|
-
$(".ui-unselecting", this.element[0]).each(function() {
|
264
|
-
var selectee = $.data(this, "selectable-item");
|
265
|
-
selectee.$element.removeClass("ui-unselecting");
|
266
|
-
selectee.unselecting = false;
|
267
|
-
selectee.startselected = false;
|
268
|
-
that._trigger("unselected", event, {
|
269
|
-
unselected: selectee.element
|
270
|
-
});
|
271
|
-
});
|
272
|
-
$(".ui-selecting", this.element[0]).each(function() {
|
273
|
-
var selectee = $.data(this, "selectable-item");
|
274
|
-
selectee.$element.removeClass("ui-selecting").addClass("ui-selected");
|
275
|
-
selectee.selecting = false;
|
276
|
-
selectee.selected = true;
|
277
|
-
selectee.startselected = true;
|
278
|
-
that._trigger("selected", event, {
|
279
|
-
selected: selectee.element
|
280
|
-
});
|
281
|
-
});
|
282
|
-
this._trigger("stop", event);
|
283
|
-
|
284
|
-
this.helper.remove();
|
285
|
-
|
286
|
-
return false;
|
287
|
-
}
|
288
|
-
|
289
|
-
});
|
290
|
-
|
291
|
-
}));
|