jquery-ui-rails 5.0.4 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitmodules +1 -1
- data/.travis.yml +1 -1
- data/History.md +23 -2
- data/README.md +67 -50
- data/Rakefile +58 -29
- data/VERSIONS.md +4 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/core.js +15 -304
- data/app/assets/javascripts/jquery-ui/data.js +45 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
- data/app/assets/javascripts/jquery-ui/effect.js +565 -891
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +89 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +83 -0
- data/app/assets/javascripts/jquery-ui/form.js +25 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
- data/app/assets/javascripts/jquery-ui/ie.js +20 -0
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
- data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
- data/app/assets/javascripts/jquery-ui/labels.js +71 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
- data/app/assets/javascripts/jquery-ui/position.js +107 -111
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +46 -0
- data/app/assets/javascripts/jquery-ui/safe-blur.js +27 -0
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
- data/app/assets/javascripts/jquery-ui/version.js +20 -0
- data/app/assets/javascripts/jquery-ui/widget.js +359 -163
- data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +200 -163
- data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +153 -106
- data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +289 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2243 -0
- data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +267 -181
- data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +430 -294
- data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +174 -84
- data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +228 -158
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +241 -0
- data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +63 -41
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1225 -0
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
- data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +259 -177
- data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +199 -160
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1623 -0
- data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +184 -114
- data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +258 -211
- data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +165 -100
- data/app/assets/javascripts/jquery-ui.js +53 -33
- data/app/assets/stylesheets/jquery-ui/accordion.css +1 -15
- data/app/assets/stylesheets/jquery-ui/all.css +1 -1
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -3
- data/app/assets/stylesheets/jquery-ui/base.css +3 -1
- data/app/assets/stylesheets/jquery-ui/button.css +35 -68
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
- data/app/assets/stylesheets/jquery-ui/core.css +12 -8
- data/app/assets/stylesheets/jquery-ui/datepicker.css +11 -2
- data/app/assets/stylesheets/jquery-ui/dialog.css +38 -11
- data/app/assets/stylesheets/jquery-ui/draggable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/menu.css +7 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +2 -3
- data/app/assets/stylesheets/jquery-ui/resizable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +11 -22
- data/app/assets/stylesheets/jquery-ui/slider.css +2 -3
- data/app/assets/stylesheets/jquery-ui/sortable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/spinner.css +7 -22
- data/app/assets/stylesheets/jquery-ui/tabs.css +1 -2
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +121 -92
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +153 -146
- data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/button.js +0 -414
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +0 -73
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +0 -39
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +0 -40
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker.js +0 -2086
- data/app/assets/javascripts/jquery-ui/effect-blind.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-bounce.js +0 -125
- data/app/assets/javascripts/jquery-ui/effect-clip.js +0 -79
- data/app/assets/javascripts/jquery-ui/effect-drop.js +0 -77
- data/app/assets/javascripts/jquery-ui/effect-explode.js +0 -109
- data/app/assets/javascripts/jquery-ui/effect-fade.js +0 -42
- data/app/assets/javascripts/jquery-ui/effect-fold.js +0 -88
- data/app/assets/javascripts/jquery-ui/effect-highlight.js +0 -62
- data/app/assets/javascripts/jquery-ui/effect-puff.js +0 -63
- data/app/assets/javascripts/jquery-ui/effect-pulsate.js +0 -75
- data/app/assets/javascripts/jquery-ui/effect-scale.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-shake.js +0 -86
- data/app/assets/javascripts/jquery-ui/effect-size.js +0 -235
- data/app/assets/javascripts/jquery-ui/effect-slide.js +0 -76
- data/app/assets/javascripts/jquery-ui/effect-transfer.js +0 -59
- data/app/assets/javascripts/jquery-ui/mouse.js +0 -202
- data/app/assets/javascripts/jquery-ui/resizable.js +0 -1183
- data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1308
@@ -1,5 +1,7 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
1
3
|
/*!
|
2
|
-
* jQuery UI Position 1.
|
4
|
+
* jQuery UI Position 1.13.0
|
3
5
|
* http://jqueryui.com
|
4
6
|
*
|
5
7
|
* Copyright jQuery Foundation and other contributors
|
@@ -8,25 +10,32 @@
|
|
8
10
|
*
|
9
11
|
* http://api.jqueryui.com/position/
|
10
12
|
*/
|
11
|
-
|
13
|
+
|
14
|
+
//>>label: Position
|
15
|
+
//>>group: Core
|
16
|
+
//>>description: Positions elements relative to other elements.
|
17
|
+
//>>docs: http://api.jqueryui.com/position/
|
18
|
+
//>>demos: http://jqueryui.com/position/
|
19
|
+
|
20
|
+
( function( factory ) {
|
21
|
+
"use strict";
|
22
|
+
|
12
23
|
if ( typeof define === "function" && define.amd ) {
|
13
24
|
|
14
25
|
// AMD. Register as an anonymous module.
|
15
|
-
define( [ "jquery" ], factory );
|
26
|
+
define( [ "jquery", "./version" ], factory );
|
16
27
|
} else {
|
17
28
|
|
18
29
|
// Browser globals
|
19
30
|
factory( jQuery );
|
20
31
|
}
|
21
|
-
}(function( $ ) {
|
22
|
-
|
23
|
-
|
24
|
-
$.ui = $.ui || {};
|
32
|
+
} )( function( $ ) {
|
33
|
+
"use strict";
|
25
34
|
|
26
|
-
|
35
|
+
( function() {
|
36
|
+
var cachedScrollbarWidth,
|
27
37
|
max = Math.max,
|
28
38
|
abs = Math.abs,
|
29
|
-
round = Math.round,
|
30
39
|
rhorizontal = /left|center|right/,
|
31
40
|
rvertical = /top|center|bottom/,
|
32
41
|
roffset = /[\+\-]\d+(\.[\d]+)?%?/,
|
@@ -45,8 +54,12 @@ function parseCss( element, property ) {
|
|
45
54
|
return parseInt( $.css( element, property ), 10 ) || 0;
|
46
55
|
}
|
47
56
|
|
57
|
+
function isWindow( obj ) {
|
58
|
+
return obj != null && obj === obj.window;
|
59
|
+
}
|
60
|
+
|
48
61
|
function getDimensions( elem ) {
|
49
|
-
var raw = elem[0];
|
62
|
+
var raw = elem[ 0 ];
|
50
63
|
if ( raw.nodeType === 9 ) {
|
51
64
|
return {
|
52
65
|
width: elem.width(),
|
@@ -54,7 +67,7 @@ function getDimensions( elem ) {
|
|
54
67
|
offset: { top: 0, left: 0 }
|
55
68
|
};
|
56
69
|
}
|
57
|
-
if (
|
70
|
+
if ( isWindow( raw ) ) {
|
58
71
|
return {
|
59
72
|
width: elem.width(),
|
60
73
|
height: elem.height(),
|
@@ -81,8 +94,10 @@ $.position = {
|
|
81
94
|
return cachedScrollbarWidth;
|
82
95
|
}
|
83
96
|
var w1, w2,
|
84
|
-
div = $( "<div style=
|
85
|
-
|
97
|
+
div = $( "<div style=" +
|
98
|
+
"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>" +
|
99
|
+
"<div style='height:300px;width:auto;'></div></div>" ),
|
100
|
+
innerDiv = div.children()[ 0 ];
|
86
101
|
|
87
102
|
$( "body" ).append( div );
|
88
103
|
w1 = innerDiv.offsetWidth;
|
@@ -91,12 +106,12 @@ $.position = {
|
|
91
106
|
w2 = innerDiv.offsetWidth;
|
92
107
|
|
93
108
|
if ( w1 === w2 ) {
|
94
|
-
w2 = div[0].clientWidth;
|
109
|
+
w2 = div[ 0 ].clientWidth;
|
95
110
|
}
|
96
111
|
|
97
112
|
div.remove();
|
98
113
|
|
99
|
-
return (cachedScrollbarWidth = w1 - w2);
|
114
|
+
return ( cachedScrollbarWidth = w1 - w2 );
|
100
115
|
},
|
101
116
|
getScrollInfo: function( within ) {
|
102
117
|
var overflowX = within.isWindow || within.isDocument ? "" :
|
@@ -104,9 +119,9 @@ $.position = {
|
|
104
119
|
overflowY = within.isWindow || within.isDocument ? "" :
|
105
120
|
within.element.css( "overflow-y" ),
|
106
121
|
hasOverflowX = overflowX === "scroll" ||
|
107
|
-
( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
|
122
|
+
( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ),
|
108
123
|
hasOverflowY = overflowY === "scroll" ||
|
109
|
-
( overflowY === "auto" && within.height < within.element[0].scrollHeight );
|
124
|
+
( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight );
|
110
125
|
return {
|
111
126
|
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
|
112
127
|
height: hasOverflowX ? $.position.scrollbarWidth() : 0
|
@@ -114,20 +129,18 @@ $.position = {
|
|
114
129
|
},
|
115
130
|
getWithinInfo: function( element ) {
|
116
131
|
var withinElement = $( element || window ),
|
117
|
-
|
118
|
-
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9
|
132
|
+
isElemWindow = isWindow( withinElement[ 0 ] ),
|
133
|
+
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
|
134
|
+
hasOffset = !isElemWindow && !isDocument;
|
119
135
|
return {
|
120
136
|
element: withinElement,
|
121
|
-
isWindow:
|
137
|
+
isWindow: isElemWindow,
|
122
138
|
isDocument: isDocument,
|
123
|
-
offset:
|
139
|
+
offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
|
124
140
|
scrollLeft: withinElement.scrollLeft(),
|
125
141
|
scrollTop: withinElement.scrollTop(),
|
126
|
-
|
127
|
-
|
128
|
-
// jQuery 1.6 doesn't support .outerWidth/Height() on documents or windows
|
129
|
-
width: isWindow || isDocument ? withinElement.width() : withinElement.outerWidth(),
|
130
|
-
height: isWindow || isDocument ? withinElement.height() : withinElement.outerHeight()
|
142
|
+
width: withinElement.outerWidth(),
|
143
|
+
height: withinElement.outerHeight()
|
131
144
|
};
|
132
145
|
}
|
133
146
|
};
|
@@ -137,35 +150,42 @@ $.fn.position = function( options ) {
|
|
137
150
|
return _position.apply( this, arguments );
|
138
151
|
}
|
139
152
|
|
140
|
-
//
|
153
|
+
// Make a copy, we don't want to modify arguments
|
141
154
|
options = $.extend( {}, options );
|
142
155
|
|
143
156
|
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
|
144
|
-
|
157
|
+
|
158
|
+
// Make sure string options are treated as CSS selectors
|
159
|
+
target = typeof options.of === "string" ?
|
160
|
+
$( document ).find( options.of ) :
|
161
|
+
$( options.of ),
|
162
|
+
|
145
163
|
within = $.position.getWithinInfo( options.within ),
|
146
164
|
scrollInfo = $.position.getScrollInfo( within ),
|
147
165
|
collision = ( options.collision || "flip" ).split( " " ),
|
148
166
|
offsets = {};
|
149
167
|
|
150
168
|
dimensions = getDimensions( target );
|
151
|
-
if ( target[0].preventDefault ) {
|
152
|
-
|
169
|
+
if ( target[ 0 ].preventDefault ) {
|
170
|
+
|
171
|
+
// Force left top to allow flipping
|
153
172
|
options.at = "left top";
|
154
173
|
}
|
155
174
|
targetWidth = dimensions.width;
|
156
175
|
targetHeight = dimensions.height;
|
157
176
|
targetOffset = dimensions.offset;
|
158
|
-
|
177
|
+
|
178
|
+
// Clone to reuse original targetOffset later
|
159
179
|
basePosition = $.extend( {}, targetOffset );
|
160
180
|
|
161
|
-
//
|
181
|
+
// Force my and at to have valid horizontal and vertical positions
|
162
182
|
// if a value is missing or invalid, it will be converted to center
|
163
183
|
$.each( [ "my", "at" ], function() {
|
164
184
|
var pos = ( options[ this ] || "" ).split( " " ),
|
165
185
|
horizontalOffset,
|
166
186
|
verticalOffset;
|
167
187
|
|
168
|
-
if ( pos.length === 1) {
|
188
|
+
if ( pos.length === 1 ) {
|
169
189
|
pos = rhorizontal.test( pos[ 0 ] ) ?
|
170
190
|
pos.concat( [ "center" ] ) :
|
171
191
|
rvertical.test( pos[ 0 ] ) ?
|
@@ -175,7 +195,7 @@ $.fn.position = function( options ) {
|
|
175
195
|
pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
|
176
196
|
pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
|
177
197
|
|
178
|
-
//
|
198
|
+
// Calculate offsets
|
179
199
|
horizontalOffset = roffset.exec( pos[ 0 ] );
|
180
200
|
verticalOffset = roffset.exec( pos[ 1 ] );
|
181
201
|
offsets[ this ] = [
|
@@ -183,14 +203,14 @@ $.fn.position = function( options ) {
|
|
183
203
|
verticalOffset ? verticalOffset[ 0 ] : 0
|
184
204
|
];
|
185
205
|
|
186
|
-
//
|
206
|
+
// Reduce to just the positions without the offsets
|
187
207
|
options[ this ] = [
|
188
208
|
rposition.exec( pos[ 0 ] )[ 0 ],
|
189
209
|
rposition.exec( pos[ 1 ] )[ 0 ]
|
190
210
|
];
|
191
|
-
});
|
211
|
+
} );
|
192
212
|
|
193
|
-
//
|
213
|
+
// Normalize collision option
|
194
214
|
if ( collision.length === 1 ) {
|
195
215
|
collision[ 1 ] = collision[ 0 ];
|
196
216
|
}
|
@@ -211,15 +231,17 @@ $.fn.position = function( options ) {
|
|
211
231
|
basePosition.left += atOffset[ 0 ];
|
212
232
|
basePosition.top += atOffset[ 1 ];
|
213
233
|
|
214
|
-
return this.each(function() {
|
234
|
+
return this.each( function() {
|
215
235
|
var collisionPosition, using,
|
216
236
|
elem = $( this ),
|
217
237
|
elemWidth = elem.outerWidth(),
|
218
238
|
elemHeight = elem.outerHeight(),
|
219
239
|
marginLeft = parseCss( this, "marginLeft" ),
|
220
240
|
marginTop = parseCss( this, "marginTop" ),
|
221
|
-
collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
|
222
|
-
|
241
|
+
collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
|
242
|
+
scrollInfo.width,
|
243
|
+
collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) +
|
244
|
+
scrollInfo.height,
|
223
245
|
position = $.extend( {}, basePosition ),
|
224
246
|
myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
|
225
247
|
|
@@ -238,12 +260,6 @@ $.fn.position = function( options ) {
|
|
238
260
|
position.left += myOffset[ 0 ];
|
239
261
|
position.top += myOffset[ 1 ];
|
240
262
|
|
241
|
-
// if the browser doesn't support fractions, then round for consistent results
|
242
|
-
if ( !supportsOffsetFractions ) {
|
243
|
-
position.left = round( position.left );
|
244
|
-
position.top = round( position.top );
|
245
|
-
}
|
246
|
-
|
247
263
|
collisionPosition = {
|
248
264
|
marginLeft: marginLeft,
|
249
265
|
marginTop: marginTop
|
@@ -264,12 +280,13 @@ $.fn.position = function( options ) {
|
|
264
280
|
at: options.at,
|
265
281
|
within: within,
|
266
282
|
elem: elem
|
267
|
-
});
|
283
|
+
} );
|
268
284
|
}
|
269
|
-
});
|
285
|
+
} );
|
270
286
|
|
271
287
|
if ( options.using ) {
|
272
|
-
|
288
|
+
|
289
|
+
// Adds feedback as second argument to using callback, if present
|
273
290
|
using = function( props ) {
|
274
291
|
var left = targetOffset.left - position.left,
|
275
292
|
right = left + targetWidth - elemWidth,
|
@@ -309,7 +326,7 @@ $.fn.position = function( options ) {
|
|
309
326
|
}
|
310
327
|
|
311
328
|
elem.offset( $.extend( position, { using: using } ) );
|
312
|
-
});
|
329
|
+
} );
|
313
330
|
};
|
314
331
|
|
315
332
|
$.ui.position = {
|
@@ -323,16 +340,20 @@ $.ui.position = {
|
|
323
340
|
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
|
324
341
|
newOverRight;
|
325
342
|
|
326
|
-
//
|
343
|
+
// Element is wider than within
|
327
344
|
if ( data.collisionWidth > outerWidth ) {
|
328
|
-
|
345
|
+
|
346
|
+
// Element is initially over the left side of within
|
329
347
|
if ( overLeft > 0 && overRight <= 0 ) {
|
330
|
-
newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
|
348
|
+
newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
|
349
|
+
withinOffset;
|
331
350
|
position.left += overLeft - newOverRight;
|
332
|
-
|
351
|
+
|
352
|
+
// Element is initially over right side of within
|
333
353
|
} else if ( overRight > 0 && overLeft <= 0 ) {
|
334
354
|
position.left = withinOffset;
|
335
|
-
|
355
|
+
|
356
|
+
// Element is initially over both left and right sides of within
|
336
357
|
} else {
|
337
358
|
if ( overLeft > overRight ) {
|
338
359
|
position.left = withinOffset + outerWidth - data.collisionWidth;
|
@@ -340,13 +361,16 @@ $.ui.position = {
|
|
340
361
|
position.left = withinOffset;
|
341
362
|
}
|
342
363
|
}
|
343
|
-
|
364
|
+
|
365
|
+
// Too far left -> align with left edge
|
344
366
|
} else if ( overLeft > 0 ) {
|
345
367
|
position.left += overLeft;
|
346
|
-
|
368
|
+
|
369
|
+
// Too far right -> align with right edge
|
347
370
|
} else if ( overRight > 0 ) {
|
348
371
|
position.left -= overRight;
|
349
|
-
|
372
|
+
|
373
|
+
// Adjust based on position and margin
|
350
374
|
} else {
|
351
375
|
position.left = max( position.left - collisionPosLeft, position.left );
|
352
376
|
}
|
@@ -360,16 +384,20 @@ $.ui.position = {
|
|
360
384
|
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
|
361
385
|
newOverBottom;
|
362
386
|
|
363
|
-
//
|
387
|
+
// Element is taller than within
|
364
388
|
if ( data.collisionHeight > outerHeight ) {
|
365
|
-
|
389
|
+
|
390
|
+
// Element is initially over the top of within
|
366
391
|
if ( overTop > 0 && overBottom <= 0 ) {
|
367
|
-
newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
|
392
|
+
newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
|
393
|
+
withinOffset;
|
368
394
|
position.top += overTop - newOverBottom;
|
369
|
-
|
395
|
+
|
396
|
+
// Element is initially over bottom of within
|
370
397
|
} else if ( overBottom > 0 && overTop <= 0 ) {
|
371
398
|
position.top = withinOffset;
|
372
|
-
|
399
|
+
|
400
|
+
// Element is initially over both top and bottom of within
|
373
401
|
} else {
|
374
402
|
if ( overTop > overBottom ) {
|
375
403
|
position.top = withinOffset + outerHeight - data.collisionHeight;
|
@@ -377,13 +405,16 @@ $.ui.position = {
|
|
377
405
|
position.top = withinOffset;
|
378
406
|
}
|
379
407
|
}
|
380
|
-
|
408
|
+
|
409
|
+
// Too far up -> align with top
|
381
410
|
} else if ( overTop > 0 ) {
|
382
411
|
position.top += overTop;
|
383
|
-
|
412
|
+
|
413
|
+
// Too far down -> align with bottom edge
|
384
414
|
} else if ( overBottom > 0 ) {
|
385
415
|
position.top -= overBottom;
|
386
|
-
|
416
|
+
|
417
|
+
// Adjust based on position and margin
|
387
418
|
} else {
|
388
419
|
position.top = max( position.top - collisionPosTop, position.top );
|
389
420
|
}
|
@@ -413,12 +444,14 @@ $.ui.position = {
|
|
413
444
|
newOverLeft;
|
414
445
|
|
415
446
|
if ( overLeft < 0 ) {
|
416
|
-
newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
|
447
|
+
newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
|
448
|
+
outerWidth - withinOffset;
|
417
449
|
if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
|
418
450
|
position.left += myOffset + atOffset + offset;
|
419
451
|
}
|
420
452
|
} else if ( overRight > 0 ) {
|
421
|
-
newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
|
453
|
+
newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
|
454
|
+
atOffset + offset - offsetLeft;
|
422
455
|
if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
|
423
456
|
position.left += myOffset + atOffset + offset;
|
424
457
|
}
|
@@ -447,12 +480,14 @@ $.ui.position = {
|
|
447
480
|
newOverTop,
|
448
481
|
newOverBottom;
|
449
482
|
if ( overTop < 0 ) {
|
450
|
-
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
|
483
|
+
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
|
484
|
+
outerHeight - withinOffset;
|
451
485
|
if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
|
452
486
|
position.top += myOffset + atOffset + offset;
|
453
487
|
}
|
454
488
|
} else if ( overBottom > 0 ) {
|
455
|
-
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
|
489
|
+
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
|
490
|
+
offset - offsetTop;
|
456
491
|
if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
|
457
492
|
position.top += myOffset + atOffset + offset;
|
458
493
|
}
|
@@ -471,47 +506,8 @@ $.ui.position = {
|
|
471
506
|
}
|
472
507
|
};
|
473
508
|
|
474
|
-
|
475
|
-
(function() {
|
476
|
-
var testElement, testElementParent, testElementStyle, offsetLeft, i,
|
477
|
-
body = document.getElementsByTagName( "body" )[ 0 ],
|
478
|
-
div = document.createElement( "div" );
|
479
|
-
|
480
|
-
//Create a "fake body" for testing based on method used in jQuery.support
|
481
|
-
testElement = document.createElement( body ? "div" : "body" );
|
482
|
-
testElementStyle = {
|
483
|
-
visibility: "hidden",
|
484
|
-
width: 0,
|
485
|
-
height: 0,
|
486
|
-
border: 0,
|
487
|
-
margin: 0,
|
488
|
-
background: "none"
|
489
|
-
};
|
490
|
-
if ( body ) {
|
491
|
-
$.extend( testElementStyle, {
|
492
|
-
position: "absolute",
|
493
|
-
left: "-1000px",
|
494
|
-
top: "-1000px"
|
495
|
-
});
|
496
|
-
}
|
497
|
-
for ( i in testElementStyle ) {
|
498
|
-
testElement.style[ i ] = testElementStyle[ i ];
|
499
|
-
}
|
500
|
-
testElement.appendChild( div );
|
501
|
-
testElementParent = body || document.documentElement;
|
502
|
-
testElementParent.insertBefore( testElement, testElementParent.firstChild );
|
503
|
-
|
504
|
-
div.style.cssText = "position: absolute; left: 10.7432222px;";
|
505
|
-
|
506
|
-
offsetLeft = $( div ).offset().left;
|
507
|
-
supportsOffsetFractions = offsetLeft > 10 && offsetLeft < 11;
|
508
|
-
|
509
|
-
testElement.innerHTML = "";
|
510
|
-
testElementParent.removeChild( testElement );
|
511
|
-
})();
|
512
|
-
|
513
|
-
})();
|
509
|
+
} )();
|
514
510
|
|
515
511
|
return $.ui.position;
|
516
512
|
|
517
|
-
})
|
513
|
+
} );
|
@@ -0,0 +1,46 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
3
|
+
( function( factory ) {
|
4
|
+
"use strict";
|
5
|
+
|
6
|
+
if ( typeof define === "function" && define.amd ) {
|
7
|
+
|
8
|
+
// AMD. Register as an anonymous module.
|
9
|
+
define( [ "jquery", "./version" ], factory );
|
10
|
+
} else {
|
11
|
+
|
12
|
+
// Browser globals
|
13
|
+
factory( jQuery );
|
14
|
+
}
|
15
|
+
} )( function( $ ) {
|
16
|
+
"use strict";
|
17
|
+
|
18
|
+
return $.ui.safeActiveElement = function( document ) {
|
19
|
+
var activeElement;
|
20
|
+
|
21
|
+
// Support: IE 9 only
|
22
|
+
// IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
|
23
|
+
try {
|
24
|
+
activeElement = document.activeElement;
|
25
|
+
} catch ( error ) {
|
26
|
+
activeElement = document.body;
|
27
|
+
}
|
28
|
+
|
29
|
+
// Support: IE 9 - 11 only
|
30
|
+
// IE may return null instead of an element
|
31
|
+
// Interestingly, this only seems to occur when NOT in an iframe
|
32
|
+
if ( !activeElement ) {
|
33
|
+
activeElement = document.body;
|
34
|
+
}
|
35
|
+
|
36
|
+
// Support: IE 11 only
|
37
|
+
// IE11 returns a seemingly empty object in some cases when accessing
|
38
|
+
// document.activeElement from an <iframe>
|
39
|
+
if ( !activeElement.nodeName ) {
|
40
|
+
activeElement = document.body;
|
41
|
+
}
|
42
|
+
|
43
|
+
return activeElement;
|
44
|
+
};
|
45
|
+
|
46
|
+
} );
|
@@ -0,0 +1,27 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
3
|
+
( function( factory ) {
|
4
|
+
"use strict";
|
5
|
+
|
6
|
+
if ( typeof define === "function" && define.amd ) {
|
7
|
+
|
8
|
+
// AMD. Register as an anonymous module.
|
9
|
+
define( [ "jquery", "./version" ], factory );
|
10
|
+
} else {
|
11
|
+
|
12
|
+
// Browser globals
|
13
|
+
factory( jQuery );
|
14
|
+
}
|
15
|
+
} )( function( $ ) {
|
16
|
+
"use strict";
|
17
|
+
|
18
|
+
return $.ui.safeBlur = function( element ) {
|
19
|
+
|
20
|
+
// Support: IE9 - 10 only
|
21
|
+
// If the <body> is blurred, IE will switch windows, see #9420
|
22
|
+
if ( element && element.nodeName.toLowerCase() !== "body" ) {
|
23
|
+
$( element ).trigger( "blur" );
|
24
|
+
}
|
25
|
+
};
|
26
|
+
|
27
|
+
} );
|
@@ -0,0 +1,50 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
3
|
+
/*!
|
4
|
+
* jQuery UI Scroll Parent 1.13.0
|
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: scrollParent
|
13
|
+
//>>group: Core
|
14
|
+
//>>description: Get the closest ancestor element that is scrollable.
|
15
|
+
//>>docs: http://api.jqueryui.com/scrollParent/
|
16
|
+
|
17
|
+
( function( factory ) {
|
18
|
+
"use strict";
|
19
|
+
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [ "jquery", "./version" ], factory );
|
24
|
+
} else {
|
25
|
+
|
26
|
+
// Browser globals
|
27
|
+
factory( jQuery );
|
28
|
+
}
|
29
|
+
} )( function( $ ) {
|
30
|
+
"use strict";
|
31
|
+
|
32
|
+
return $.fn.scrollParent = function( includeHidden ) {
|
33
|
+
var position = this.css( "position" ),
|
34
|
+
excludeStaticParent = position === "absolute",
|
35
|
+
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
|
36
|
+
scrollParent = this.parents().filter( function() {
|
37
|
+
var parent = $( this );
|
38
|
+
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
|
39
|
+
return false;
|
40
|
+
}
|
41
|
+
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
|
42
|
+
parent.css( "overflow-x" ) );
|
43
|
+
} ).eq( 0 );
|
44
|
+
|
45
|
+
return position === "fixed" || !scrollParent.length ?
|
46
|
+
$( this[ 0 ].ownerDocument || document ) :
|
47
|
+
scrollParent;
|
48
|
+
};
|
49
|
+
|
50
|
+
} );
|
@@ -0,0 +1,41 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
//= require jquery-ui/focusable
|
3
|
+
|
4
|
+
/*!
|
5
|
+
* jQuery UI Tabbable 1.13.0
|
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: :tabbable Selector
|
14
|
+
//>>group: Core
|
15
|
+
//>>description: Selects elements which can be tabbed to.
|
16
|
+
//>>docs: http://api.jqueryui.com/tabbable-selector/
|
17
|
+
|
18
|
+
( function( factory ) {
|
19
|
+
"use strict";
|
20
|
+
|
21
|
+
if ( typeof define === "function" && define.amd ) {
|
22
|
+
|
23
|
+
// AMD. Register as an anonymous module.
|
24
|
+
define( [ "jquery", "./version", "./focusable" ], factory );
|
25
|
+
} else {
|
26
|
+
|
27
|
+
// Browser globals
|
28
|
+
factory( jQuery );
|
29
|
+
}
|
30
|
+
} )( function( $ ) {
|
31
|
+
"use strict";
|
32
|
+
|
33
|
+
return $.extend( $.expr.pseudos, {
|
34
|
+
tabbable: function( element ) {
|
35
|
+
var tabIndex = $.attr( element, "tabindex" ),
|
36
|
+
hasTabindex = tabIndex != null;
|
37
|
+
return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex );
|
38
|
+
}
|
39
|
+
} );
|
40
|
+
|
41
|
+
} );
|
@@ -0,0 +1,54 @@
|
|
1
|
+
//= require jquery-ui/version
|
2
|
+
|
3
|
+
/*!
|
4
|
+
* jQuery UI Unique ID 1.13.0
|
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: uniqueId
|
13
|
+
//>>group: Core
|
14
|
+
//>>description: Functions to generate and remove uniqueId's
|
15
|
+
//>>docs: http://api.jqueryui.com/uniqueId/
|
16
|
+
|
17
|
+
( function( factory ) {
|
18
|
+
"use strict";
|
19
|
+
|
20
|
+
if ( typeof define === "function" && define.amd ) {
|
21
|
+
|
22
|
+
// AMD. Register as an anonymous module.
|
23
|
+
define( [ "jquery", "./version" ], factory );
|
24
|
+
} else {
|
25
|
+
|
26
|
+
// Browser globals
|
27
|
+
factory( jQuery );
|
28
|
+
}
|
29
|
+
} )( function( $ ) {
|
30
|
+
"use strict";
|
31
|
+
|
32
|
+
return $.fn.extend( {
|
33
|
+
uniqueId: ( function() {
|
34
|
+
var uuid = 0;
|
35
|
+
|
36
|
+
return function() {
|
37
|
+
return this.each( function() {
|
38
|
+
if ( !this.id ) {
|
39
|
+
this.id = "ui-id-" + ( ++uuid );
|
40
|
+
}
|
41
|
+
} );
|
42
|
+
};
|
43
|
+
} )(),
|
44
|
+
|
45
|
+
removeUniqueId: function() {
|
46
|
+
return this.each( function() {
|
47
|
+
if ( /^ui-id-\d+$/.test( this.id ) ) {
|
48
|
+
$( this ).removeAttr( "id" );
|
49
|
+
}
|
50
|
+
} );
|
51
|
+
}
|
52
|
+
} );
|
53
|
+
|
54
|
+
} );
|