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
@@ -0,0 +1,241 @@
|
|
1
|
+
//= require jquery-ui/ie
|
2
|
+
//= require jquery-ui/version
|
3
|
+
//= require jquery-ui/widget
|
4
|
+
|
5
|
+
/*!
|
6
|
+
* jQuery UI Mouse 1.13.0
|
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
|
+
|
14
|
+
//>>label: Mouse
|
15
|
+
//>>group: Widgets
|
16
|
+
//>>description: Abstracts mouse-based interactions to assist in creating certain widgets.
|
17
|
+
//>>docs: http://api.jqueryui.com/mouse/
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
"use strict";
|
21
|
+
|
22
|
+
if ( typeof define === "function" && define.amd ) {
|
23
|
+
|
24
|
+
// AMD. Register as an anonymous module.
|
25
|
+
define( [
|
26
|
+
"jquery",
|
27
|
+
"../ie",
|
28
|
+
"../version",
|
29
|
+
"../widget"
|
30
|
+
], factory );
|
31
|
+
} else {
|
32
|
+
|
33
|
+
// Browser globals
|
34
|
+
factory( jQuery );
|
35
|
+
}
|
36
|
+
} )( function( $ ) {
|
37
|
+
"use strict";
|
38
|
+
|
39
|
+
var mouseHandled = false;
|
40
|
+
$( document ).on( "mouseup", function() {
|
41
|
+
mouseHandled = false;
|
42
|
+
} );
|
43
|
+
|
44
|
+
return $.widget( "ui.mouse", {
|
45
|
+
version: "1.13.0",
|
46
|
+
options: {
|
47
|
+
cancel: "input, textarea, button, select, option",
|
48
|
+
distance: 1,
|
49
|
+
delay: 0
|
50
|
+
},
|
51
|
+
_mouseInit: function() {
|
52
|
+
var that = this;
|
53
|
+
|
54
|
+
this.element
|
55
|
+
.on( "mousedown." + this.widgetName, function( event ) {
|
56
|
+
return that._mouseDown( event );
|
57
|
+
} )
|
58
|
+
.on( "click." + this.widgetName, function( event ) {
|
59
|
+
if ( true === $.data( event.target, that.widgetName + ".preventClickEvent" ) ) {
|
60
|
+
$.removeData( event.target, that.widgetName + ".preventClickEvent" );
|
61
|
+
event.stopImmediatePropagation();
|
62
|
+
return false;
|
63
|
+
}
|
64
|
+
} );
|
65
|
+
|
66
|
+
this.started = false;
|
67
|
+
},
|
68
|
+
|
69
|
+
// TODO: make sure destroying one instance of mouse doesn't mess with
|
70
|
+
// other instances of mouse
|
71
|
+
_mouseDestroy: function() {
|
72
|
+
this.element.off( "." + this.widgetName );
|
73
|
+
if ( this._mouseMoveDelegate ) {
|
74
|
+
this.document
|
75
|
+
.off( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
76
|
+
.off( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
77
|
+
}
|
78
|
+
},
|
79
|
+
|
80
|
+
_mouseDown: function( event ) {
|
81
|
+
|
82
|
+
// don't let more than one widget handle mouseStart
|
83
|
+
if ( mouseHandled ) {
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
|
87
|
+
this._mouseMoved = false;
|
88
|
+
|
89
|
+
// We may have missed mouseup (out of window)
|
90
|
+
if ( this._mouseStarted ) {
|
91
|
+
this._mouseUp( event );
|
92
|
+
}
|
93
|
+
|
94
|
+
this._mouseDownEvent = event;
|
95
|
+
|
96
|
+
var that = this,
|
97
|
+
btnIsLeft = ( event.which === 1 ),
|
98
|
+
|
99
|
+
// event.target.nodeName works around a bug in IE 8 with
|
100
|
+
// disabled inputs (#7620)
|
101
|
+
elIsCancel = ( typeof this.options.cancel === "string" && event.target.nodeName ?
|
102
|
+
$( event.target ).closest( this.options.cancel ).length : false );
|
103
|
+
if ( !btnIsLeft || elIsCancel || !this._mouseCapture( event ) ) {
|
104
|
+
return true;
|
105
|
+
}
|
106
|
+
|
107
|
+
this.mouseDelayMet = !this.options.delay;
|
108
|
+
if ( !this.mouseDelayMet ) {
|
109
|
+
this._mouseDelayTimer = setTimeout( function() {
|
110
|
+
that.mouseDelayMet = true;
|
111
|
+
}, this.options.delay );
|
112
|
+
}
|
113
|
+
|
114
|
+
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
115
|
+
this._mouseStarted = ( this._mouseStart( event ) !== false );
|
116
|
+
if ( !this._mouseStarted ) {
|
117
|
+
event.preventDefault();
|
118
|
+
return true;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
// Click event may never have fired (Gecko & Opera)
|
123
|
+
if ( true === $.data( event.target, this.widgetName + ".preventClickEvent" ) ) {
|
124
|
+
$.removeData( event.target, this.widgetName + ".preventClickEvent" );
|
125
|
+
}
|
126
|
+
|
127
|
+
// These delegates are required to keep context
|
128
|
+
this._mouseMoveDelegate = function( event ) {
|
129
|
+
return that._mouseMove( event );
|
130
|
+
};
|
131
|
+
this._mouseUpDelegate = function( event ) {
|
132
|
+
return that._mouseUp( event );
|
133
|
+
};
|
134
|
+
|
135
|
+
this.document
|
136
|
+
.on( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
137
|
+
.on( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
138
|
+
|
139
|
+
event.preventDefault();
|
140
|
+
|
141
|
+
mouseHandled = true;
|
142
|
+
return true;
|
143
|
+
},
|
144
|
+
|
145
|
+
_mouseMove: function( event ) {
|
146
|
+
|
147
|
+
// Only check for mouseups outside the document if you've moved inside the document
|
148
|
+
// at least once. This prevents the firing of mouseup in the case of IE<9, which will
|
149
|
+
// fire a mousemove event if content is placed under the cursor. See #7778
|
150
|
+
// Support: IE <9
|
151
|
+
if ( this._mouseMoved ) {
|
152
|
+
|
153
|
+
// IE mouseup check - mouseup happened when mouse was out of window
|
154
|
+
if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) &&
|
155
|
+
!event.button ) {
|
156
|
+
return this._mouseUp( event );
|
157
|
+
|
158
|
+
// Iframe mouseup check - mouseup occurred in another document
|
159
|
+
} else if ( !event.which ) {
|
160
|
+
|
161
|
+
// Support: Safari <=8 - 9
|
162
|
+
// Safari sets which to 0 if you press any of the following keys
|
163
|
+
// during a drag (#14461)
|
164
|
+
if ( event.originalEvent.altKey || event.originalEvent.ctrlKey ||
|
165
|
+
event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
|
166
|
+
this.ignoreMissingWhich = true;
|
167
|
+
} else if ( !this.ignoreMissingWhich ) {
|
168
|
+
return this._mouseUp( event );
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
if ( event.which || event.button ) {
|
174
|
+
this._mouseMoved = true;
|
175
|
+
}
|
176
|
+
|
177
|
+
if ( this._mouseStarted ) {
|
178
|
+
this._mouseDrag( event );
|
179
|
+
return event.preventDefault();
|
180
|
+
}
|
181
|
+
|
182
|
+
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
183
|
+
this._mouseStarted =
|
184
|
+
( this._mouseStart( this._mouseDownEvent, event ) !== false );
|
185
|
+
if ( this._mouseStarted ) {
|
186
|
+
this._mouseDrag( event );
|
187
|
+
} else {
|
188
|
+
this._mouseUp( event );
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
return !this._mouseStarted;
|
193
|
+
},
|
194
|
+
|
195
|
+
_mouseUp: function( event ) {
|
196
|
+
this.document
|
197
|
+
.off( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
198
|
+
.off( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
199
|
+
|
200
|
+
if ( this._mouseStarted ) {
|
201
|
+
this._mouseStarted = false;
|
202
|
+
|
203
|
+
if ( event.target === this._mouseDownEvent.target ) {
|
204
|
+
$.data( event.target, this.widgetName + ".preventClickEvent", true );
|
205
|
+
}
|
206
|
+
|
207
|
+
this._mouseStop( event );
|
208
|
+
}
|
209
|
+
|
210
|
+
if ( this._mouseDelayTimer ) {
|
211
|
+
clearTimeout( this._mouseDelayTimer );
|
212
|
+
delete this._mouseDelayTimer;
|
213
|
+
}
|
214
|
+
|
215
|
+
this.ignoreMissingWhich = false;
|
216
|
+
mouseHandled = false;
|
217
|
+
event.preventDefault();
|
218
|
+
},
|
219
|
+
|
220
|
+
_mouseDistanceMet: function( event ) {
|
221
|
+
return ( Math.max(
|
222
|
+
Math.abs( this._mouseDownEvent.pageX - event.pageX ),
|
223
|
+
Math.abs( this._mouseDownEvent.pageY - event.pageY )
|
224
|
+
) >= this.options.distance
|
225
|
+
);
|
226
|
+
},
|
227
|
+
|
228
|
+
_mouseDelayMet: function( /* event */ ) {
|
229
|
+
return this.mouseDelayMet;
|
230
|
+
},
|
231
|
+
|
232
|
+
// These are placeholder methods, to be overriden by extending plugin
|
233
|
+
_mouseStart: function( /* event */ ) {},
|
234
|
+
_mouseDrag: function( /* event */ ) {},
|
235
|
+
_mouseStop: function( /* event */ ) {},
|
236
|
+
_mouseCapture: function( /* event */ ) {
|
237
|
+
return true;
|
238
|
+
}
|
239
|
+
} );
|
240
|
+
|
241
|
+
} );
|
@@ -1,35 +1,53 @@
|
|
1
|
-
//= require jquery-ui/
|
1
|
+
//= require jquery-ui/version
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Progressbar 1.
|
5
|
+
* jQuery UI Progressbar 1.13.0
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright jQuery Foundation and other contributors
|
9
9
|
* Released under the MIT license.
|
10
10
|
* http://jquery.org/license
|
11
|
-
*
|
12
|
-
* http://api.jqueryui.com/progressbar/
|
13
11
|
*/
|
14
|
-
|
12
|
+
|
13
|
+
//>>label: Progressbar
|
14
|
+
//>>group: Widgets
|
15
|
+
/* eslint-disable max-len */
|
16
|
+
//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
|
17
|
+
/* eslint-enable max-len */
|
18
|
+
//>>docs: http://api.jqueryui.com/progressbar/
|
19
|
+
//>>demos: http://jqueryui.com/progressbar/
|
20
|
+
//>>css.structure: ../../themes/base/core.css
|
21
|
+
//>>css.structure: ../../themes/base/progressbar.css
|
22
|
+
//>>css.theme: ../../themes/base/theme.css
|
23
|
+
|
24
|
+
( function( factory ) {
|
25
|
+
"use strict";
|
26
|
+
|
15
27
|
if ( typeof define === "function" && define.amd ) {
|
16
28
|
|
17
29
|
// AMD. Register as an anonymous module.
|
18
|
-
define([
|
30
|
+
define( [
|
19
31
|
"jquery",
|
20
|
-
"
|
21
|
-
"
|
32
|
+
"../version",
|
33
|
+
"../widget"
|
22
34
|
], factory );
|
23
35
|
} else {
|
24
36
|
|
25
37
|
// Browser globals
|
26
38
|
factory( jQuery );
|
27
39
|
}
|
28
|
-
}(function( $ ) {
|
40
|
+
} )( function( $ ) {
|
41
|
+
"use strict";
|
29
42
|
|
30
43
|
return $.widget( "ui.progressbar", {
|
31
|
-
version: "1.
|
44
|
+
version: "1.13.0",
|
32
45
|
options: {
|
46
|
+
classes: {
|
47
|
+
"ui-progressbar": "ui-corner-all",
|
48
|
+
"ui-progressbar-value": "ui-corner-left",
|
49
|
+
"ui-progressbar-complete": "ui-corner-right"
|
50
|
+
},
|
33
51
|
max: 100,
|
34
52
|
value: 0,
|
35
53
|
|
@@ -40,31 +58,26 @@ return $.widget( "ui.progressbar", {
|
|
40
58
|
min: 0,
|
41
59
|
|
42
60
|
_create: function() {
|
61
|
+
|
43
62
|
// Constrain initial value
|
44
63
|
this.oldValue = this.options.value = this._constrainedValue();
|
45
64
|
|
46
|
-
this.element
|
47
|
-
.addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
|
48
|
-
.attr({
|
49
|
-
// Only set static values, aria-valuenow and aria-valuemax are
|
50
|
-
// set inside _refreshValue()
|
51
|
-
role: "progressbar",
|
52
|
-
"aria-valuemin": this.min
|
53
|
-
});
|
65
|
+
this.element.attr( {
|
54
66
|
|
55
|
-
|
56
|
-
|
67
|
+
// Only set static values; aria-valuenow and aria-valuemax are
|
68
|
+
// set inside _refreshValue()
|
69
|
+
role: "progressbar",
|
70
|
+
"aria-valuemin": this.min
|
71
|
+
} );
|
72
|
+
this._addClass( "ui-progressbar", "ui-widget ui-widget-content" );
|
57
73
|
|
74
|
+
this.valueDiv = $( "<div>" ).appendTo( this.element );
|
75
|
+
this._addClass( this.valueDiv, "ui-progressbar-value", "ui-widget-header" );
|
58
76
|
this._refreshValue();
|
59
77
|
},
|
60
78
|
|
61
79
|
_destroy: function() {
|
62
|
-
this.element
|
63
|
-
.removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
|
64
|
-
.removeAttr( "role" )
|
65
|
-
.removeAttr( "aria-valuemin" )
|
66
|
-
.removeAttr( "aria-valuemax" )
|
67
|
-
.removeAttr( "aria-valuenow" );
|
80
|
+
this.element.removeAttr( "role aria-valuemin aria-valuemax aria-valuenow" );
|
68
81
|
|
69
82
|
this.valueDiv.remove();
|
70
83
|
},
|
@@ -85,7 +98,7 @@ return $.widget( "ui.progressbar", {
|
|
85
98
|
|
86
99
|
this.indeterminate = newValue === false;
|
87
100
|
|
88
|
-
//
|
101
|
+
// Sanitize value
|
89
102
|
if ( typeof newValue !== "number" ) {
|
90
103
|
newValue = 0;
|
91
104
|
}
|
@@ -95,6 +108,7 @@ return $.widget( "ui.progressbar", {
|
|
95
108
|
},
|
96
109
|
|
97
110
|
_setOptions: function( options ) {
|
111
|
+
|
98
112
|
// Ensure "value" option is set after other values (like max)
|
99
113
|
var value = options.value;
|
100
114
|
delete options.value;
|
@@ -107,19 +121,24 @@ return $.widget( "ui.progressbar", {
|
|
107
121
|
|
108
122
|
_setOption: function( key, value ) {
|
109
123
|
if ( key === "max" ) {
|
124
|
+
|
110
125
|
// Don't allow a max less than min
|
111
126
|
value = Math.max( this.min, value );
|
112
127
|
}
|
113
|
-
if ( key === "disabled" ) {
|
114
|
-
this.element
|
115
|
-
.toggleClass( "ui-state-disabled", !!value )
|
116
|
-
.attr( "aria-disabled", value );
|
117
|
-
}
|
118
128
|
this._super( key, value );
|
119
129
|
},
|
120
130
|
|
131
|
+
_setOptionDisabled: function( value ) {
|
132
|
+
this._super( value );
|
133
|
+
|
134
|
+
this.element.attr( "aria-disabled", value );
|
135
|
+
this._toggleClass( null, "ui-state-disabled", !!value );
|
136
|
+
},
|
137
|
+
|
121
138
|
_percentage: function() {
|
122
|
-
return this.indeterminate ?
|
139
|
+
return this.indeterminate ?
|
140
|
+
100 :
|
141
|
+
100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
|
123
142
|
},
|
124
143
|
|
125
144
|
_refreshValue: function() {
|
@@ -128,21 +147,24 @@ return $.widget( "ui.progressbar", {
|
|
128
147
|
|
129
148
|
this.valueDiv
|
130
149
|
.toggle( this.indeterminate || value > this.min )
|
131
|
-
.
|
132
|
-
.width( percentage.toFixed(0) + "%" );
|
150
|
+
.width( percentage.toFixed( 0 ) + "%" );
|
133
151
|
|
134
|
-
this
|
152
|
+
this
|
153
|
+
._toggleClass( this.valueDiv, "ui-progressbar-complete", null,
|
154
|
+
value === this.options.max )
|
155
|
+
._toggleClass( "ui-progressbar-indeterminate", null, this.indeterminate );
|
135
156
|
|
136
157
|
if ( this.indeterminate ) {
|
137
158
|
this.element.removeAttr( "aria-valuenow" );
|
138
159
|
if ( !this.overlayDiv ) {
|
139
|
-
this.overlayDiv = $( "<div
|
160
|
+
this.overlayDiv = $( "<div>" ).appendTo( this.valueDiv );
|
161
|
+
this._addClass( this.overlayDiv, "ui-progressbar-overlay" );
|
140
162
|
}
|
141
163
|
} else {
|
142
|
-
this.element.attr({
|
164
|
+
this.element.attr( {
|
143
165
|
"aria-valuemax": this.options.max,
|
144
166
|
"aria-valuenow": value
|
145
|
-
});
|
167
|
+
} );
|
146
168
|
if ( this.overlayDiv ) {
|
147
169
|
this.overlayDiv.remove();
|
148
170
|
this.overlayDiv = null;
|
@@ -157,6 +179,6 @@ return $.widget( "ui.progressbar", {
|
|
157
179
|
this._trigger( "complete" );
|
158
180
|
}
|
159
181
|
}
|
160
|
-
});
|
182
|
+
} );
|
161
183
|
|
162
|
-
})
|
184
|
+
} );
|