jquery-ui-rails 5.0.5 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +12 -0
- data/README.md +47 -30
- data/Rakefile +48 -27
- data/VERSIONS.md +1 -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.js +52 -33
- data/app/assets/javascripts/jquery-ui/core.js +37 -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/stylesheets/jquery-ui/accordion.css +1 -15
- data/app/assets/stylesheets/jquery-ui/all.css +1 -1
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -3
- data/app/assets/stylesheets/jquery-ui/base.css +3 -1
- data/app/assets/stylesheets/jquery-ui/button.css +35 -68
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
- data/app/assets/stylesheets/jquery-ui/core.css +11 -7
- data/app/assets/stylesheets/jquery-ui/datepicker.css +11 -2
- data/app/assets/stylesheets/jquery-ui/dialog.css +38 -11
- data/app/assets/stylesheets/jquery-ui/draggable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/menu.css +7 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +1 -2
- data/app/assets/stylesheets/jquery-ui/resizable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +11 -22
- data/app/assets/stylesheets/jquery-ui/slider.css +1 -2
- data/app/assets/stylesheets/jquery-ui/sortable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/spinner.css +7 -22
- data/app/assets/stylesheets/jquery-ui/tabs.css +1 -2
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +113 -87
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +150 -144
- data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/button.js +0 -414
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +0 -73
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +0 -39
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +0 -40
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker.js +0 -2086
- data/app/assets/javascripts/jquery-ui/effect-blind.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-bounce.js +0 -125
- data/app/assets/javascripts/jquery-ui/effect-clip.js +0 -79
- data/app/assets/javascripts/jquery-ui/effect-drop.js +0 -77
- data/app/assets/javascripts/jquery-ui/effect-explode.js +0 -109
- data/app/assets/javascripts/jquery-ui/effect-fade.js +0 -42
- data/app/assets/javascripts/jquery-ui/effect-fold.js +0 -88
- data/app/assets/javascripts/jquery-ui/effect-highlight.js +0 -62
- data/app/assets/javascripts/jquery-ui/effect-puff.js +0 -63
- data/app/assets/javascripts/jquery-ui/effect-pulsate.js +0 -75
- data/app/assets/javascripts/jquery-ui/effect-scale.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-shake.js +0 -86
- data/app/assets/javascripts/jquery-ui/effect-size.js +0 -235
- data/app/assets/javascripts/jquery-ui/effect-slide.js +0 -76
- data/app/assets/javascripts/jquery-ui/effect-transfer.js +0 -59
- data/app/assets/javascripts/jquery-ui/mouse.js +0 -202
- data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1319
@@ -1,45 +1,63 @@
|
|
1
|
-
//= require jquery-ui/
|
2
|
-
//= require jquery-ui/widget
|
1
|
+
//= require jquery-ui/keycode
|
3
2
|
//= require jquery-ui/position
|
3
|
+
//= require jquery-ui/unique-id
|
4
|
+
//= require jquery-ui/version
|
5
|
+
//= require jquery-ui/widget
|
4
6
|
|
5
7
|
/*!
|
6
|
-
* jQuery UI Tooltip 1.
|
8
|
+
* jQuery UI Tooltip 1.12.1
|
7
9
|
* http://jqueryui.com
|
8
10
|
*
|
9
11
|
* Copyright jQuery Foundation and other contributors
|
10
12
|
* Released under the MIT license.
|
11
13
|
* http://jquery.org/license
|
12
|
-
*
|
13
|
-
* http://api.jqueryui.com/tooltip/
|
14
14
|
*/
|
15
|
-
|
15
|
+
|
16
|
+
//>>label: Tooltip
|
17
|
+
//>>group: Widgets
|
18
|
+
//>>description: Shows additional information for any element on hover or focus.
|
19
|
+
//>>docs: http://api.jqueryui.com/tooltip/
|
20
|
+
//>>demos: http://jqueryui.com/tooltip/
|
21
|
+
//>>css.structure: ../../themes/base/core.css
|
22
|
+
//>>css.structure: ../../themes/base/tooltip.css
|
23
|
+
//>>css.theme: ../../themes/base/theme.css
|
24
|
+
|
25
|
+
( function( factory ) {
|
16
26
|
if ( typeof define === "function" && define.amd ) {
|
17
27
|
|
18
28
|
// AMD. Register as an anonymous module.
|
19
|
-
define([
|
29
|
+
define( [
|
20
30
|
"jquery",
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"
|
31
|
+
"../keycode",
|
32
|
+
"../position",
|
33
|
+
"../unique-id",
|
34
|
+
"../version",
|
35
|
+
"../widget"
|
24
36
|
], factory );
|
25
37
|
} else {
|
26
38
|
|
27
39
|
// Browser globals
|
28
40
|
factory( jQuery );
|
29
41
|
}
|
30
|
-
}(function( $ ) {
|
42
|
+
}( function( $ ) {
|
31
43
|
|
32
|
-
|
33
|
-
version: "1.
|
44
|
+
$.widget( "ui.tooltip", {
|
45
|
+
version: "1.12.1",
|
34
46
|
options: {
|
47
|
+
classes: {
|
48
|
+
"ui-tooltip": "ui-corner-all ui-widget-shadow"
|
49
|
+
},
|
35
50
|
content: function() {
|
51
|
+
|
36
52
|
// support: IE<9, Opera in jQuery <1.7
|
37
53
|
// .text() can't accept undefined, so coerce to a string
|
38
54
|
var title = $( this ).attr( "title" ) || "";
|
55
|
+
|
39
56
|
// Escape title, since we're going from an attribute to raw HTML
|
40
57
|
return $( "<a>" ).text( title ).html();
|
41
58
|
},
|
42
59
|
hide: true,
|
60
|
+
|
43
61
|
// Disabled elements have inconsistent behavior across browsers (#8661)
|
44
62
|
items: "[title]:not([disabled])",
|
45
63
|
position: {
|
@@ -48,16 +66,15 @@ return $.widget( "ui.tooltip", {
|
|
48
66
|
collision: "flipfit flip"
|
49
67
|
},
|
50
68
|
show: true,
|
51
|
-
tooltipClass: null,
|
52
69
|
track: false,
|
53
70
|
|
54
|
-
//
|
71
|
+
// Callbacks
|
55
72
|
close: null,
|
56
73
|
open: null
|
57
74
|
},
|
58
75
|
|
59
76
|
_addDescribedBy: function( elem, id ) {
|
60
|
-
var describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ );
|
77
|
+
var describedby = ( elem.attr( "aria-describedby" ) || "" ).split( /\s+/ );
|
61
78
|
describedby.push( id );
|
62
79
|
elem
|
63
80
|
.data( "ui-tooltip-id", id )
|
@@ -66,7 +83,7 @@ return $.widget( "ui.tooltip", {
|
|
66
83
|
|
67
84
|
_removeDescribedBy: function( elem ) {
|
68
85
|
var id = elem.data( "ui-tooltip-id" ),
|
69
|
-
describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ),
|
86
|
+
describedby = ( elem.attr( "aria-describedby" ) || "" ).split( /\s+/ ),
|
70
87
|
index = $.inArray( id, describedby );
|
71
88
|
|
72
89
|
if ( index !== -1 ) {
|
@@ -83,10 +100,10 @@ return $.widget( "ui.tooltip", {
|
|
83
100
|
},
|
84
101
|
|
85
102
|
_create: function() {
|
86
|
-
this._on({
|
103
|
+
this._on( {
|
87
104
|
mouseover: "open",
|
88
105
|
focusin: "open"
|
89
|
-
});
|
106
|
+
} );
|
90
107
|
|
91
108
|
// IDs of generated tooltips, needed for destroy
|
92
109
|
this.tooltips = {};
|
@@ -94,74 +111,75 @@ return $.widget( "ui.tooltip", {
|
|
94
111
|
// IDs of parent tooltips where we removed the title attribute
|
95
112
|
this.parents = {};
|
96
113
|
|
97
|
-
if ( this.options.disabled ) {
|
98
|
-
this._disable();
|
99
|
-
}
|
100
|
-
|
101
114
|
// Append the aria-live region so tooltips announce correctly
|
102
115
|
this.liveRegion = $( "<div>" )
|
103
|
-
.attr({
|
116
|
+
.attr( {
|
104
117
|
role: "log",
|
105
118
|
"aria-live": "assertive",
|
106
119
|
"aria-relevant": "additions"
|
107
|
-
})
|
108
|
-
.addClass( "ui-helper-hidden-accessible" )
|
120
|
+
} )
|
109
121
|
.appendTo( this.document[ 0 ].body );
|
122
|
+
this._addClass( this.liveRegion, null, "ui-helper-hidden-accessible" );
|
123
|
+
|
124
|
+
this.disabledTitles = $( [] );
|
110
125
|
},
|
111
126
|
|
112
127
|
_setOption: function( key, value ) {
|
113
128
|
var that = this;
|
114
129
|
|
115
|
-
if ( key === "disabled" ) {
|
116
|
-
this[ value ? "_disable" : "_enable" ]();
|
117
|
-
this.options[ key ] = value;
|
118
|
-
// disable element style changes
|
119
|
-
return;
|
120
|
-
}
|
121
|
-
|
122
130
|
this._super( key, value );
|
123
131
|
|
124
132
|
if ( key === "content" ) {
|
125
133
|
$.each( this.tooltips, function( id, tooltipData ) {
|
126
134
|
that._updateContent( tooltipData.element );
|
127
|
-
});
|
135
|
+
} );
|
128
136
|
}
|
129
137
|
},
|
130
138
|
|
139
|
+
_setOptionDisabled: function( value ) {
|
140
|
+
this[ value ? "_disable" : "_enable" ]();
|
141
|
+
},
|
142
|
+
|
131
143
|
_disable: function() {
|
132
144
|
var that = this;
|
133
145
|
|
134
|
-
//
|
146
|
+
// Close open tooltips
|
135
147
|
$.each( this.tooltips, function( id, tooltipData ) {
|
136
148
|
var event = $.Event( "blur" );
|
137
149
|
event.target = event.currentTarget = tooltipData.element[ 0 ];
|
138
150
|
that.close( event, true );
|
139
|
-
});
|
140
|
-
|
141
|
-
//
|
142
|
-
this.
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
151
|
+
} );
|
152
|
+
|
153
|
+
// Remove title attributes to prevent native tooltips
|
154
|
+
this.disabledTitles = this.disabledTitles.add(
|
155
|
+
this.element.find( this.options.items ).addBack()
|
156
|
+
.filter( function() {
|
157
|
+
var element = $( this );
|
158
|
+
if ( element.is( "[title]" ) ) {
|
159
|
+
return element
|
160
|
+
.data( "ui-tooltip-title", element.attr( "title" ) )
|
161
|
+
.removeAttr( "title" );
|
162
|
+
}
|
163
|
+
} )
|
164
|
+
);
|
150
165
|
},
|
151
166
|
|
152
167
|
_enable: function() {
|
168
|
+
|
153
169
|
// restore title attributes
|
154
|
-
this.
|
170
|
+
this.disabledTitles.each( function() {
|
155
171
|
var element = $( this );
|
156
172
|
if ( element.data( "ui-tooltip-title" ) ) {
|
157
173
|
element.attr( "title", element.data( "ui-tooltip-title" ) );
|
158
174
|
}
|
159
|
-
});
|
175
|
+
} );
|
176
|
+
this.disabledTitles = $( [] );
|
160
177
|
},
|
161
178
|
|
162
179
|
open: function( event ) {
|
163
180
|
var that = this,
|
164
181
|
target = $( event ? event.target : this.element )
|
182
|
+
|
165
183
|
// we need closest here due to mouseover bubbling,
|
166
184
|
// but always pointing at the same event target
|
167
185
|
.closest( this.options.items );
|
@@ -177,9 +195,9 @@ return $.widget( "ui.tooltip", {
|
|
177
195
|
|
178
196
|
target.data( "ui-tooltip-open", true );
|
179
197
|
|
180
|
-
//
|
198
|
+
// Kill parent tooltips, custom or native, for hover
|
181
199
|
if ( event && event.type === "mouseover" ) {
|
182
|
-
target.parents().each(function() {
|
200
|
+
target.parents().each( function() {
|
183
201
|
var parent = $( this ),
|
184
202
|
blurEvent;
|
185
203
|
if ( parent.data( "ui-tooltip-open" ) ) {
|
@@ -195,7 +213,7 @@ return $.widget( "ui.tooltip", {
|
|
195
213
|
};
|
196
214
|
parent.attr( "title", "" );
|
197
215
|
}
|
198
|
-
});
|
216
|
+
} );
|
199
217
|
}
|
200
218
|
|
201
219
|
this._registerCloseHandlers( event, target );
|
@@ -208,22 +226,23 @@ return $.widget( "ui.tooltip", {
|
|
208
226
|
that = this,
|
209
227
|
eventType = event ? event.type : null;
|
210
228
|
|
211
|
-
if ( typeof contentOption === "string"
|
229
|
+
if ( typeof contentOption === "string" || contentOption.nodeType ||
|
230
|
+
contentOption.jquery ) {
|
212
231
|
return this._open( event, target, contentOption );
|
213
232
|
}
|
214
233
|
|
215
|
-
content = contentOption.call( target[0], function( response ) {
|
234
|
+
content = contentOption.call( target[ 0 ], function( response ) {
|
216
235
|
|
217
236
|
// IE may instantly serve a cached response for ajax requests
|
218
237
|
// delay this call to _open so the other call to _open runs first
|
219
|
-
that._delay(function() {
|
238
|
+
that._delay( function() {
|
220
239
|
|
221
240
|
// Ignore async response if tooltip was closed already
|
222
241
|
if ( !target.data( "ui-tooltip-open" ) ) {
|
223
242
|
return;
|
224
243
|
}
|
225
244
|
|
226
|
-
//
|
245
|
+
// JQuery creates a special event for focusin when it doesn't
|
227
246
|
// exist natively. To improve performance, the native event
|
228
247
|
// object is reused and the type is changed. Therefore, we can't
|
229
248
|
// rely on the type being correct after the event finished
|
@@ -232,8 +251,8 @@ return $.widget( "ui.tooltip", {
|
|
232
251
|
event.type = eventType;
|
233
252
|
}
|
234
253
|
this._open( event, target, response );
|
235
|
-
});
|
236
|
-
});
|
254
|
+
} );
|
255
|
+
} );
|
237
256
|
if ( content ) {
|
238
257
|
this._open( event, target, content );
|
239
258
|
}
|
@@ -255,7 +274,7 @@ return $.widget( "ui.tooltip", {
|
|
255
274
|
return;
|
256
275
|
}
|
257
276
|
|
258
|
-
//
|
277
|
+
// If we have a title, clear it to prevent the native tooltip
|
259
278
|
// we have to check first to avoid defining a title if none exists
|
260
279
|
// (we don't want to cause an element to start matching [title])
|
261
280
|
//
|
@@ -279,13 +298,10 @@ return $.widget( "ui.tooltip", {
|
|
279
298
|
// JAWS announces deletions even when aria-relevant="additions"
|
280
299
|
// Voiceover will sometimes re-read the entire log region's contents from the beginning
|
281
300
|
this.liveRegion.children().hide();
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
a11yContent = content;
|
287
|
-
}
|
288
|
-
$( "<div>" ).html( a11yContent ).appendTo( this.liveRegion );
|
301
|
+
a11yContent = $( "<div>" ).html( tooltip.find( ".ui-tooltip-content" ).html() );
|
302
|
+
a11yContent.removeAttr( "name" ).find( "[name]" ).removeAttr( "name" );
|
303
|
+
a11yContent.removeAttr( "id" ).find( "[id]" ).removeAttr( "id" );
|
304
|
+
a11yContent.appendTo( this.liveRegion );
|
289
305
|
|
290
306
|
function position( event ) {
|
291
307
|
positionOption.of = event;
|
@@ -297,11 +313,12 @@ return $.widget( "ui.tooltip", {
|
|
297
313
|
if ( this.options.track && event && /^mouse/.test( event.type ) ) {
|
298
314
|
this._on( this.document, {
|
299
315
|
mousemove: position
|
300
|
-
});
|
316
|
+
} );
|
317
|
+
|
301
318
|
// trigger once to override element-relative positioning
|
302
319
|
position( event );
|
303
320
|
} else {
|
304
|
-
tooltip.position( $.extend({
|
321
|
+
tooltip.position( $.extend( {
|
305
322
|
of: target
|
306
323
|
}, this.options.position ) );
|
307
324
|
}
|
@@ -309,11 +326,13 @@ return $.widget( "ui.tooltip", {
|
|
309
326
|
tooltip.hide();
|
310
327
|
|
311
328
|
this._show( tooltip, this.options.show );
|
329
|
+
|
312
330
|
// Handle tracking tooltips that are shown with a delay (#8644). As soon
|
313
331
|
// as the tooltip is visible, position the tooltip using the most recent
|
314
332
|
// event.
|
315
|
-
|
316
|
-
|
333
|
+
// Adds the check to add the timers only when both delay and track options are set (#14682)
|
334
|
+
if ( this.options.track && this.options.show && this.options.show.delay ) {
|
335
|
+
delayedShow = this.delayedShow = setInterval( function() {
|
317
336
|
if ( tooltip.is( ":visible" ) ) {
|
318
337
|
position( positionOption.of );
|
319
338
|
clearInterval( delayedShow );
|
@@ -328,8 +347,8 @@ return $.widget( "ui.tooltip", {
|
|
328
347
|
var events = {
|
329
348
|
keyup: function( event ) {
|
330
349
|
if ( event.keyCode === $.ui.keyCode.ESCAPE ) {
|
331
|
-
var fakeEvent = $.Event(event);
|
332
|
-
fakeEvent.currentTarget = target[0];
|
350
|
+
var fakeEvent = $.Event( event );
|
351
|
+
fakeEvent.currentTarget = target[ 0 ];
|
333
352
|
this.close( fakeEvent, true );
|
334
353
|
}
|
335
354
|
}
|
@@ -371,7 +390,7 @@ return $.widget( "ui.tooltip", {
|
|
371
390
|
|
372
391
|
tooltip = tooltipData.tooltip;
|
373
392
|
|
374
|
-
//
|
393
|
+
// Disabling closes the tooltip, so we need to track when we're closing
|
375
394
|
// to avoid an infinite loop in case the tooltip becomes disabled on close
|
376
395
|
if ( tooltipData.closing ) {
|
377
396
|
return;
|
@@ -380,7 +399,7 @@ return $.widget( "ui.tooltip", {
|
|
380
399
|
// Clear the interval for delayed tracking tooltips
|
381
400
|
clearInterval( this.delayedShow );
|
382
401
|
|
383
|
-
//
|
402
|
+
// Only set title if we had one before (see comment in _open())
|
384
403
|
// If the title attribute has changed since open(), don't restore
|
385
404
|
if ( target.data( "ui-tooltip-title" ) && !target.attr( "title" ) ) {
|
386
405
|
target.attr( "title", target.data( "ui-tooltip-title" ) );
|
@@ -392,7 +411,7 @@ return $.widget( "ui.tooltip", {
|
|
392
411
|
tooltip.stop( true );
|
393
412
|
this._hide( tooltip, this.options.hide, function() {
|
394
413
|
that._removeTooltip( $( this ) );
|
395
|
-
});
|
414
|
+
} );
|
396
415
|
|
397
416
|
target.removeData( "ui-tooltip-open" );
|
398
417
|
this._off( target, "mouseleave focusout keyup" );
|
@@ -407,7 +426,7 @@ return $.widget( "ui.tooltip", {
|
|
407
426
|
$.each( this.parents, function( id, parent ) {
|
408
427
|
$( parent.element ).attr( "title", parent.title );
|
409
428
|
delete that.parents[ id ];
|
410
|
-
});
|
429
|
+
} );
|
411
430
|
}
|
412
431
|
|
413
432
|
tooltipData.closing = true;
|
@@ -418,17 +437,14 @@ return $.widget( "ui.tooltip", {
|
|
418
437
|
},
|
419
438
|
|
420
439
|
_tooltip: function( element ) {
|
421
|
-
var tooltip = $( "<div>" )
|
422
|
-
|
423
|
-
.addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " +
|
424
|
-
( this.options.tooltipClass || "" ) ),
|
440
|
+
var tooltip = $( "<div>" ).attr( "role", "tooltip" ),
|
441
|
+
content = $( "<div>" ).appendTo( tooltip ),
|
425
442
|
id = tooltip.uniqueId().attr( "id" );
|
426
443
|
|
427
|
-
|
428
|
-
|
429
|
-
.appendTo( tooltip );
|
444
|
+
this._addClass( content, "ui-tooltip-content" );
|
445
|
+
this._addClass( tooltip, "ui-tooltip", "ui-widget ui-widget-content" );
|
430
446
|
|
431
|
-
tooltip.appendTo( this.
|
447
|
+
tooltip.appendTo( this._appendTo( element ) );
|
432
448
|
|
433
449
|
return this.tooltips[ id ] = {
|
434
450
|
element: element,
|
@@ -446,11 +462,22 @@ return $.widget( "ui.tooltip", {
|
|
446
462
|
delete this.tooltips[ tooltip.attr( "id" ) ];
|
447
463
|
},
|
448
464
|
|
465
|
+
_appendTo: function( target ) {
|
466
|
+
var element = target.closest( ".ui-front, dialog" );
|
467
|
+
|
468
|
+
if ( !element.length ) {
|
469
|
+
element = this.document[ 0 ].body;
|
470
|
+
}
|
471
|
+
|
472
|
+
return element;
|
473
|
+
},
|
474
|
+
|
449
475
|
_destroy: function() {
|
450
476
|
var that = this;
|
451
477
|
|
452
|
-
//
|
478
|
+
// Close open tooltips
|
453
479
|
$.each( this.tooltips, function( id, tooltipData ) {
|
480
|
+
|
454
481
|
// Delegate to close method to handle common cleanup
|
455
482
|
var event = $.Event( "blur" ),
|
456
483
|
element = tooltipData.element;
|
@@ -463,15 +490,37 @@ return $.widget( "ui.tooltip", {
|
|
463
490
|
|
464
491
|
// Restore the title
|
465
492
|
if ( element.data( "ui-tooltip-title" ) ) {
|
493
|
+
|
466
494
|
// If the title attribute has changed since open(), don't restore
|
467
495
|
if ( !element.attr( "title" ) ) {
|
468
496
|
element.attr( "title", element.data( "ui-tooltip-title" ) );
|
469
497
|
}
|
470
498
|
element.removeData( "ui-tooltip-title" );
|
471
499
|
}
|
472
|
-
});
|
500
|
+
} );
|
473
501
|
this.liveRegion.remove();
|
474
502
|
}
|
475
|
-
});
|
503
|
+
} );
|
504
|
+
|
505
|
+
// DEPRECATED
|
506
|
+
// TODO: Switch return back to widget declaration at top of file when this is removed
|
507
|
+
if ( $.uiBackCompat !== false ) {
|
508
|
+
|
509
|
+
// Backcompat for tooltipClass option
|
510
|
+
$.widget( "ui.tooltip", $.ui.tooltip, {
|
511
|
+
options: {
|
512
|
+
tooltipClass: null
|
513
|
+
},
|
514
|
+
_tooltip: function() {
|
515
|
+
var tooltipData = this._superApply( arguments );
|
516
|
+
if ( this.options.tooltipClass ) {
|
517
|
+
tooltipData.tooltip.addClass( this.options.tooltipClass );
|
518
|
+
}
|
519
|
+
return tooltipData;
|
520
|
+
}
|
521
|
+
} );
|
522
|
+
}
|
523
|
+
|
524
|
+
return $.ui.tooltip;
|
476
525
|
|
477
|
-
}));
|
526
|
+
} ) );
|