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
@@ -0,0 +1,67 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/effect
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* jQuery UI Effects Pulsate 1.12.1
|
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
|
+
|
13
|
+
//>>label: Pulsate Effect
|
14
|
+
//>>group: Effects
|
15
|
+
//>>description: Pulsates an element n times by changing the opacity to zero and back.
|
16
|
+
//>>docs: http://api.jqueryui.com/pulsate-effect/
|
17
|
+
//>>demos: http://jqueryui.com/effect/
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [
|
24
|
+
"jquery",
|
25
|
+
"../version",
|
26
|
+
"../effect"
|
27
|
+
], factory );
|
28
|
+
} else {
|
29
|
+
|
30
|
+
// Browser globals
|
31
|
+
factory( jQuery );
|
32
|
+
}
|
33
|
+
}( function( $ ) {
|
34
|
+
|
35
|
+
return $.effects.define( "pulsate", "show", function( options, done ) {
|
36
|
+
var element = $( this ),
|
37
|
+
mode = options.mode,
|
38
|
+
show = mode === "show",
|
39
|
+
hide = mode === "hide",
|
40
|
+
showhide = show || hide,
|
41
|
+
|
42
|
+
// Showing or hiding leaves off the "last" animation
|
43
|
+
anims = ( ( options.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
|
44
|
+
duration = options.duration / anims,
|
45
|
+
animateTo = 0,
|
46
|
+
i = 1,
|
47
|
+
queuelen = element.queue().length;
|
48
|
+
|
49
|
+
if ( show || !element.is( ":visible" ) ) {
|
50
|
+
element.css( "opacity", 0 ).show();
|
51
|
+
animateTo = 1;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Anims - 1 opacity "toggles"
|
55
|
+
for ( ; i < anims; i++ ) {
|
56
|
+
element.animate( { opacity: animateTo }, duration, options.easing );
|
57
|
+
animateTo = 1 - animateTo;
|
58
|
+
}
|
59
|
+
|
60
|
+
element.animate( { opacity: animateTo }, duration, options.easing );
|
61
|
+
|
62
|
+
element.queue( done );
|
63
|
+
|
64
|
+
$.effects.unshift( element, queuelen, anims + 1 );
|
65
|
+
} );
|
66
|
+
|
67
|
+
} ) );
|
@@ -0,0 +1,60 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/effect
|
3
|
+
//= require jquery-ui/effects/effect-size
|
4
|
+
|
5
|
+
/*!
|
6
|
+
* jQuery UI Effects Scale 1.12.1
|
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: Scale Effect
|
15
|
+
//>>group: Effects
|
16
|
+
//>>description: Grows or shrinks an element and its content.
|
17
|
+
//>>docs: http://api.jqueryui.com/scale-effect/
|
18
|
+
//>>demos: http://jqueryui.com/effect/
|
19
|
+
|
20
|
+
( function( factory ) {
|
21
|
+
if ( typeof define === "function" && define.amd ) {
|
22
|
+
|
23
|
+
// AMD. Register as an anonymous module.
|
24
|
+
define( [
|
25
|
+
"jquery",
|
26
|
+
"../version",
|
27
|
+
"../effect",
|
28
|
+
"./effect-size"
|
29
|
+
], factory );
|
30
|
+
} else {
|
31
|
+
|
32
|
+
// Browser globals
|
33
|
+
factory( jQuery );
|
34
|
+
}
|
35
|
+
}( function( $ ) {
|
36
|
+
|
37
|
+
return $.effects.define( "scale", function( options, done ) {
|
38
|
+
|
39
|
+
// Create element
|
40
|
+
var el = $( this ),
|
41
|
+
mode = options.mode,
|
42
|
+
percent = parseInt( options.percent, 10 ) ||
|
43
|
+
( parseInt( options.percent, 10 ) === 0 ? 0 : ( mode !== "effect" ? 0 : 100 ) ),
|
44
|
+
|
45
|
+
newOptions = $.extend( true, {
|
46
|
+
from: $.effects.scaledDimensions( el ),
|
47
|
+
to: $.effects.scaledDimensions( el, percent, options.direction || "both" ),
|
48
|
+
origin: options.origin || [ "middle", "center" ]
|
49
|
+
}, options );
|
50
|
+
|
51
|
+
// Fade option to support puff
|
52
|
+
if ( options.fade ) {
|
53
|
+
newOptions.from.opacity = 1;
|
54
|
+
newOptions.to.opacity = 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
$.effects.effect.size.call( this, newOptions, done );
|
58
|
+
} );
|
59
|
+
|
60
|
+
} ) );
|
@@ -0,0 +1,77 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/effect
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* jQuery UI Effects Shake 1.12.1
|
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
|
+
|
13
|
+
//>>label: Shake Effect
|
14
|
+
//>>group: Effects
|
15
|
+
//>>description: Shakes an element horizontally or vertically n times.
|
16
|
+
//>>docs: http://api.jqueryui.com/shake-effect/
|
17
|
+
//>>demos: http://jqueryui.com/effect/
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [
|
24
|
+
"jquery",
|
25
|
+
"../version",
|
26
|
+
"../effect"
|
27
|
+
], factory );
|
28
|
+
} else {
|
29
|
+
|
30
|
+
// Browser globals
|
31
|
+
factory( jQuery );
|
32
|
+
}
|
33
|
+
}( function( $ ) {
|
34
|
+
|
35
|
+
return $.effects.define( "shake", function( options, done ) {
|
36
|
+
|
37
|
+
var i = 1,
|
38
|
+
element = $( this ),
|
39
|
+
direction = options.direction || "left",
|
40
|
+
distance = options.distance || 20,
|
41
|
+
times = options.times || 3,
|
42
|
+
anims = times * 2 + 1,
|
43
|
+
speed = Math.round( options.duration / anims ),
|
44
|
+
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
45
|
+
positiveMotion = ( direction === "up" || direction === "left" ),
|
46
|
+
animation = {},
|
47
|
+
animation1 = {},
|
48
|
+
animation2 = {},
|
49
|
+
|
50
|
+
queuelen = element.queue().length;
|
51
|
+
|
52
|
+
$.effects.createPlaceholder( element );
|
53
|
+
|
54
|
+
// Animation
|
55
|
+
animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
|
56
|
+
animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
|
57
|
+
animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
|
58
|
+
|
59
|
+
// Animate
|
60
|
+
element.animate( animation, speed, options.easing );
|
61
|
+
|
62
|
+
// Shakes
|
63
|
+
for ( ; i < times; i++ ) {
|
64
|
+
element
|
65
|
+
.animate( animation1, speed, options.easing )
|
66
|
+
.animate( animation2, speed, options.easing );
|
67
|
+
}
|
68
|
+
|
69
|
+
element
|
70
|
+
.animate( animation1, speed, options.easing )
|
71
|
+
.animate( animation, speed / 2, options.easing )
|
72
|
+
.queue( done );
|
73
|
+
|
74
|
+
$.effects.unshift( element, queuelen, anims + 1 );
|
75
|
+
} );
|
76
|
+
|
77
|
+
} ) );
|
@@ -0,0 +1,194 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/effect
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* jQuery UI Effects Size 1.12.1
|
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
|
+
|
13
|
+
//>>label: Size Effect
|
14
|
+
//>>group: Effects
|
15
|
+
//>>description: Resize an element to a specified width and height.
|
16
|
+
//>>docs: http://api.jqueryui.com/size-effect/
|
17
|
+
//>>demos: http://jqueryui.com/effect/
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [
|
24
|
+
"jquery",
|
25
|
+
"../version",
|
26
|
+
"../effect"
|
27
|
+
], factory );
|
28
|
+
} else {
|
29
|
+
|
30
|
+
// Browser globals
|
31
|
+
factory( jQuery );
|
32
|
+
}
|
33
|
+
}( function( $ ) {
|
34
|
+
|
35
|
+
return $.effects.define( "size", function( options, done ) {
|
36
|
+
|
37
|
+
// Create element
|
38
|
+
var baseline, factor, temp,
|
39
|
+
element = $( this ),
|
40
|
+
|
41
|
+
// Copy for children
|
42
|
+
cProps = [ "fontSize" ],
|
43
|
+
vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
|
44
|
+
hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
|
45
|
+
|
46
|
+
// Set options
|
47
|
+
mode = options.mode,
|
48
|
+
restore = mode !== "effect",
|
49
|
+
scale = options.scale || "both",
|
50
|
+
origin = options.origin || [ "middle", "center" ],
|
51
|
+
position = element.css( "position" ),
|
52
|
+
pos = element.position(),
|
53
|
+
original = $.effects.scaledDimensions( element ),
|
54
|
+
from = options.from || original,
|
55
|
+
to = options.to || $.effects.scaledDimensions( element, 0 );
|
56
|
+
|
57
|
+
$.effects.createPlaceholder( element );
|
58
|
+
|
59
|
+
if ( mode === "show" ) {
|
60
|
+
temp = from;
|
61
|
+
from = to;
|
62
|
+
to = temp;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Set scaling factor
|
66
|
+
factor = {
|
67
|
+
from: {
|
68
|
+
y: from.height / original.height,
|
69
|
+
x: from.width / original.width
|
70
|
+
},
|
71
|
+
to: {
|
72
|
+
y: to.height / original.height,
|
73
|
+
x: to.width / original.width
|
74
|
+
}
|
75
|
+
};
|
76
|
+
|
77
|
+
// Scale the css box
|
78
|
+
if ( scale === "box" || scale === "both" ) {
|
79
|
+
|
80
|
+
// Vertical props scaling
|
81
|
+
if ( factor.from.y !== factor.to.y ) {
|
82
|
+
from = $.effects.setTransition( element, vProps, factor.from.y, from );
|
83
|
+
to = $.effects.setTransition( element, vProps, factor.to.y, to );
|
84
|
+
}
|
85
|
+
|
86
|
+
// Horizontal props scaling
|
87
|
+
if ( factor.from.x !== factor.to.x ) {
|
88
|
+
from = $.effects.setTransition( element, hProps, factor.from.x, from );
|
89
|
+
to = $.effects.setTransition( element, hProps, factor.to.x, to );
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
// Scale the content
|
94
|
+
if ( scale === "content" || scale === "both" ) {
|
95
|
+
|
96
|
+
// Vertical props scaling
|
97
|
+
if ( factor.from.y !== factor.to.y ) {
|
98
|
+
from = $.effects.setTransition( element, cProps, factor.from.y, from );
|
99
|
+
to = $.effects.setTransition( element, cProps, factor.to.y, to );
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// Adjust the position properties based on the provided origin points
|
104
|
+
if ( origin ) {
|
105
|
+
baseline = $.effects.getBaseline( origin, original );
|
106
|
+
from.top = ( original.outerHeight - from.outerHeight ) * baseline.y + pos.top;
|
107
|
+
from.left = ( original.outerWidth - from.outerWidth ) * baseline.x + pos.left;
|
108
|
+
to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
|
109
|
+
to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
|
110
|
+
}
|
111
|
+
element.css( from );
|
112
|
+
|
113
|
+
// Animate the children if desired
|
114
|
+
if ( scale === "content" || scale === "both" ) {
|
115
|
+
|
116
|
+
vProps = vProps.concat( [ "marginTop", "marginBottom" ] ).concat( cProps );
|
117
|
+
hProps = hProps.concat( [ "marginLeft", "marginRight" ] );
|
118
|
+
|
119
|
+
// Only animate children with width attributes specified
|
120
|
+
// TODO: is this right? should we include anything with css width specified as well
|
121
|
+
element.find( "*[width]" ).each( function() {
|
122
|
+
var child = $( this ),
|
123
|
+
childOriginal = $.effects.scaledDimensions( child ),
|
124
|
+
childFrom = {
|
125
|
+
height: childOriginal.height * factor.from.y,
|
126
|
+
width: childOriginal.width * factor.from.x,
|
127
|
+
outerHeight: childOriginal.outerHeight * factor.from.y,
|
128
|
+
outerWidth: childOriginal.outerWidth * factor.from.x
|
129
|
+
},
|
130
|
+
childTo = {
|
131
|
+
height: childOriginal.height * factor.to.y,
|
132
|
+
width: childOriginal.width * factor.to.x,
|
133
|
+
outerHeight: childOriginal.height * factor.to.y,
|
134
|
+
outerWidth: childOriginal.width * factor.to.x
|
135
|
+
};
|
136
|
+
|
137
|
+
// Vertical props scaling
|
138
|
+
if ( factor.from.y !== factor.to.y ) {
|
139
|
+
childFrom = $.effects.setTransition( child, vProps, factor.from.y, childFrom );
|
140
|
+
childTo = $.effects.setTransition( child, vProps, factor.to.y, childTo );
|
141
|
+
}
|
142
|
+
|
143
|
+
// Horizontal props scaling
|
144
|
+
if ( factor.from.x !== factor.to.x ) {
|
145
|
+
childFrom = $.effects.setTransition( child, hProps, factor.from.x, childFrom );
|
146
|
+
childTo = $.effects.setTransition( child, hProps, factor.to.x, childTo );
|
147
|
+
}
|
148
|
+
|
149
|
+
if ( restore ) {
|
150
|
+
$.effects.saveStyle( child );
|
151
|
+
}
|
152
|
+
|
153
|
+
// Animate children
|
154
|
+
child.css( childFrom );
|
155
|
+
child.animate( childTo, options.duration, options.easing, function() {
|
156
|
+
|
157
|
+
// Restore children
|
158
|
+
if ( restore ) {
|
159
|
+
$.effects.restoreStyle( child );
|
160
|
+
}
|
161
|
+
} );
|
162
|
+
} );
|
163
|
+
}
|
164
|
+
|
165
|
+
// Animate
|
166
|
+
element.animate( to, {
|
167
|
+
queue: false,
|
168
|
+
duration: options.duration,
|
169
|
+
easing: options.easing,
|
170
|
+
complete: function() {
|
171
|
+
|
172
|
+
var offset = element.offset();
|
173
|
+
|
174
|
+
if ( to.opacity === 0 ) {
|
175
|
+
element.css( "opacity", from.opacity );
|
176
|
+
}
|
177
|
+
|
178
|
+
if ( !restore ) {
|
179
|
+
element
|
180
|
+
.css( "position", position === "static" ? "relative" : position )
|
181
|
+
.offset( offset );
|
182
|
+
|
183
|
+
// Need to save style here so that automatic style restoration
|
184
|
+
// doesn't restore to the original styles from before the animation.
|
185
|
+
$.effects.saveStyle( element );
|
186
|
+
}
|
187
|
+
|
188
|
+
done();
|
189
|
+
}
|
190
|
+
} );
|
191
|
+
|
192
|
+
} );
|
193
|
+
|
194
|
+
} ) );
|
@@ -0,0 +1,79 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/effect
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* jQuery UI Effects Slide 1.12.1
|
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
|
+
|
13
|
+
//>>label: Slide Effect
|
14
|
+
//>>group: Effects
|
15
|
+
//>>description: Slides an element in and out of the viewport.
|
16
|
+
//>>docs: http://api.jqueryui.com/slide-effect/
|
17
|
+
//>>demos: http://jqueryui.com/effect/
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [
|
24
|
+
"jquery",
|
25
|
+
"../version",
|
26
|
+
"../effect"
|
27
|
+
], factory );
|
28
|
+
} else {
|
29
|
+
|
30
|
+
// Browser globals
|
31
|
+
factory( jQuery );
|
32
|
+
}
|
33
|
+
}( function( $ ) {
|
34
|
+
|
35
|
+
return $.effects.define( "slide", "show", function( options, done ) {
|
36
|
+
var startClip, startRef,
|
37
|
+
element = $( this ),
|
38
|
+
map = {
|
39
|
+
up: [ "bottom", "top" ],
|
40
|
+
down: [ "top", "bottom" ],
|
41
|
+
left: [ "right", "left" ],
|
42
|
+
right: [ "left", "right" ]
|
43
|
+
},
|
44
|
+
mode = options.mode,
|
45
|
+
direction = options.direction || "left",
|
46
|
+
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
47
|
+
positiveMotion = ( direction === "up" || direction === "left" ),
|
48
|
+
distance = options.distance ||
|
49
|
+
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
|
50
|
+
animation = {};
|
51
|
+
|
52
|
+
$.effects.createPlaceholder( element );
|
53
|
+
|
54
|
+
startClip = element.cssClip();
|
55
|
+
startRef = element.position()[ ref ];
|
56
|
+
|
57
|
+
// Define hide animation
|
58
|
+
animation[ ref ] = ( positiveMotion ? -1 : 1 ) * distance + startRef;
|
59
|
+
animation.clip = element.cssClip();
|
60
|
+
animation.clip[ map[ direction ][ 1 ] ] = animation.clip[ map[ direction ][ 0 ] ];
|
61
|
+
|
62
|
+
// Reverse the animation if we're showing
|
63
|
+
if ( mode === "show" ) {
|
64
|
+
element.cssClip( animation.clip );
|
65
|
+
element.css( ref, animation[ ref ] );
|
66
|
+
animation.clip = startClip;
|
67
|
+
animation[ ref ] = startRef;
|
68
|
+
}
|
69
|
+
|
70
|
+
// Actually animate
|
71
|
+
element.animate( animation, {
|
72
|
+
queue: false,
|
73
|
+
duration: options.duration,
|
74
|
+
easing: options.easing,
|
75
|
+
complete: done
|
76
|
+
} );
|
77
|
+
} );
|
78
|
+
|
79
|
+
} ) );
|
@@ -0,0 +1,43 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/effect
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* jQuery UI Effects Transfer 1.12.1
|
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
|
+
|
13
|
+
//>>label: Transfer Effect
|
14
|
+
//>>group: Effects
|
15
|
+
//>>description: Displays a transfer effect from one element to another.
|
16
|
+
//>>docs: http://api.jqueryui.com/transfer-effect/
|
17
|
+
//>>demos: http://jqueryui.com/effect/
|
18
|
+
|
19
|
+
( function( factory ) {
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [
|
24
|
+
"jquery",
|
25
|
+
"../version",
|
26
|
+
"../effect"
|
27
|
+
], factory );
|
28
|
+
} else {
|
29
|
+
|
30
|
+
// Browser globals
|
31
|
+
factory( jQuery );
|
32
|
+
}
|
33
|
+
}( function( $ ) {
|
34
|
+
|
35
|
+
var effect;
|
36
|
+
if ( $.uiBackCompat !== false ) {
|
37
|
+
effect = $.effects.define( "transfer", function( options, done ) {
|
38
|
+
$( this ).transfer( options, done );
|
39
|
+
} );
|
40
|
+
}
|
41
|
+
return effect;
|
42
|
+
|
43
|
+
} ) );
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
3
|
+
( function( factory ) {
|
4
|
+
if ( typeof define === "function" && define.amd ) {
|
5
|
+
|
6
|
+
// AMD. Register as an anonymous module.
|
7
|
+
define( [ "jquery", "./version" ], factory );
|
8
|
+
} else {
|
9
|
+
|
10
|
+
// Browser globals
|
11
|
+
factory( jQuery );
|
12
|
+
}
|
13
|
+
} ( function( $ ) {
|
14
|
+
|
15
|
+
// Internal use only
|
16
|
+
return $.ui.escapeSelector = ( function() {
|
17
|
+
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
|
18
|
+
return function( selector ) {
|
19
|
+
return selector.replace( selectorEscape, "\\$1" );
|
20
|
+
};
|
21
|
+
} )();
|
22
|
+
|
23
|
+
} ) );
|
@@ -0,0 +1,86 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
3
|
+
/*!
|
4
|
+
* jQuery UI Focusable 1.12.1
|
5
|
+
* http://jqueryui.com
|
6
|
+
*
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
|
+
* Released under the MIT license.
|
9
|
+
* http://jquery.org/license
|
10
|
+
*/
|
11
|
+
|
12
|
+
//>>label: :focusable Selector
|
13
|
+
//>>group: Core
|
14
|
+
//>>description: Selects elements which can be focused.
|
15
|
+
//>>docs: http://api.jqueryui.com/focusable-selector/
|
16
|
+
|
17
|
+
( function( factory ) {
|
18
|
+
if ( typeof define === "function" && define.amd ) {
|
19
|
+
|
20
|
+
// AMD. Register as an anonymous module.
|
21
|
+
define( [ "jquery", "./version" ], factory );
|
22
|
+
} else {
|
23
|
+
|
24
|
+
// Browser globals
|
25
|
+
factory( jQuery );
|
26
|
+
}
|
27
|
+
} ( function( $ ) {
|
28
|
+
|
29
|
+
// Selectors
|
30
|
+
$.ui.focusable = function( element, hasTabindex ) {
|
31
|
+
var map, mapName, img, focusableIfVisible, fieldset,
|
32
|
+
nodeName = element.nodeName.toLowerCase();
|
33
|
+
|
34
|
+
if ( "area" === nodeName ) {
|
35
|
+
map = element.parentNode;
|
36
|
+
mapName = map.name;
|
37
|
+
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
|
38
|
+
return false;
|
39
|
+
}
|
40
|
+
img = $( "img[usemap='#" + mapName + "']" );
|
41
|
+
return img.length > 0 && img.is( ":visible" );
|
42
|
+
}
|
43
|
+
|
44
|
+
if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) {
|
45
|
+
focusableIfVisible = !element.disabled;
|
46
|
+
|
47
|
+
if ( focusableIfVisible ) {
|
48
|
+
|
49
|
+
// Form controls within a disabled fieldset are disabled.
|
50
|
+
// However, controls within the fieldset's legend do not get disabled.
|
51
|
+
// Since controls generally aren't placed inside legends, we skip
|
52
|
+
// this portion of the check.
|
53
|
+
fieldset = $( element ).closest( "fieldset" )[ 0 ];
|
54
|
+
if ( fieldset ) {
|
55
|
+
focusableIfVisible = !fieldset.disabled;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
} else if ( "a" === nodeName ) {
|
59
|
+
focusableIfVisible = element.href || hasTabindex;
|
60
|
+
} else {
|
61
|
+
focusableIfVisible = hasTabindex;
|
62
|
+
}
|
63
|
+
|
64
|
+
return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) );
|
65
|
+
};
|
66
|
+
|
67
|
+
// Support: IE 8 only
|
68
|
+
// IE 8 doesn't resolve inherit to visible/hidden for computed values
|
69
|
+
function visible( element ) {
|
70
|
+
var visibility = element.css( "visibility" );
|
71
|
+
while ( visibility === "inherit" ) {
|
72
|
+
element = element.parent();
|
73
|
+
visibility = element.css( "visibility" );
|
74
|
+
}
|
75
|
+
return visibility !== "hidden";
|
76
|
+
}
|
77
|
+
|
78
|
+
$.extend( $.expr[ ":" ], {
|
79
|
+
focusable: function( element ) {
|
80
|
+
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
|
81
|
+
}
|
82
|
+
} );
|
83
|
+
|
84
|
+
return $.ui.focusable;
|
85
|
+
|
86
|
+
} ) );
|