jquery-ui-rails 4.0.0 → 5.0.4
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.
- data/.travis.yml +0 -1
- data/Gemfile +1 -1
- data/History.md +62 -0
- data/README.md +86 -74
- data/Rakefile +69 -37
- data/VERSIONS.md +36 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/{vendor/assets/javascripts/jquery.ui.accordion.js → app/assets/javascripts/jquery-ui/accordion.js} +90 -74
- data/{vendor/assets/javascripts/jquery.ui.autocomplete.js → app/assets/javascripts/jquery-ui/autocomplete.js} +105 -91
- data/{vendor/assets/javascripts/jquery.ui.button.js → app/assets/javascripts/jquery-ui/button.js} +60 -68
- data/{vendor/assets/javascripts/jquery.ui.core.js → app/assets/javascripts/jquery-ui/core.js} +112 -132
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
- data/{vendor/assets/javascripts/jquery.ui.datepicker.js → app/assets/javascripts/jquery-ui/datepicker.js} +120 -80
- data/{vendor/assets/javascripts/jquery.ui.dialog.js → app/assets/javascripts/jquery-ui/dialog.js} +298 -190
- data/app/assets/javascripts/jquery-ui/draggable.js +1132 -0
- data/app/assets/javascripts/jquery-ui/droppable.js +418 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-blind.js → app/assets/javascripts/jquery-ui/effect-blind.js} +21 -13
- data/{vendor/assets/javascripts/jquery.ui.effect-bounce.js → app/assets/javascripts/jquery-ui/effect-bounce.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-clip.js → app/assets/javascripts/jquery-ui/effect-clip.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-drop.js → app/assets/javascripts/jquery-ui/effect-drop.js} +20 -10
- data/{vendor/assets/javascripts/jquery.ui.effect-explode.js → app/assets/javascripts/jquery-ui/effect-explode.js} +21 -11
- data/app/assets/javascripts/jquery-ui/effect-fade.js +42 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-fold.js → app/assets/javascripts/jquery-ui/effect-fold.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-highlight.js → app/assets/javascripts/jquery-ui/effect-highlight.js} +19 -9
- data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-pulsate.js → app/assets/javascripts/jquery-ui/effect-pulsate.js} +19 -9
- data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-shake.js → app/assets/javascripts/jquery-ui/effect-shake.js} +20 -10
- data/{vendor/assets/javascripts/jquery.ui.effect-scale.js → app/assets/javascripts/jquery-ui/effect-size.js} +20 -105
- data/{vendor/assets/javascripts/jquery.ui.effect-slide.js → app/assets/javascripts/jquery-ui/effect-slide.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-transfer.js → app/assets/javascripts/jquery-ui/effect-transfer.js} +23 -13
- data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
- data/{vendor/assets/javascripts/jquery.ui.effect.js → app/assets/javascripts/jquery-ui/effect.js} +125 -92
- data/{vendor/assets/javascripts/jquery.ui.menu.js → app/assets/javascripts/jquery-ui/menu.js} +127 -102
- data/{vendor/assets/javascripts/jquery.ui.mouse.js → app/assets/javascripts/jquery-ui/mouse.js} +57 -27
- data/{vendor/assets/javascripts/jquery.ui.position.js → app/assets/javascripts/jquery-ui/position.js} +47 -27
- data/{vendor/assets/javascripts/jquery.ui.progressbar.js → app/assets/javascripts/jquery-ui/progressbar.js} +27 -13
- data/{vendor/assets/javascripts/jquery.ui.resizable.js → app/assets/javascripts/jquery-ui/resizable.js} +454 -243
- data/{vendor/assets/javascripts/jquery.ui.selectable.js → app/assets/javascripts/jquery-ui/selectable.js} +26 -16
- data/app/assets/javascripts/jquery-ui/selectmenu.js +620 -0
- data/{vendor/assets/javascripts/jquery.ui.slider.js → app/assets/javascripts/jquery-ui/slider.js} +159 -91
- data/{vendor/assets/javascripts/jquery.ui.sortable.js → app/assets/javascripts/jquery-ui/sortable.js} +168 -114
- data/{vendor/assets/javascripts/jquery.ui.spinner.js → app/assets/javascripts/jquery-ui/spinner.js} +54 -32
- data/{vendor/assets/javascripts/jquery.ui.tabs.js → app/assets/javascripts/jquery-ui/tabs.js} +108 -73
- data/{vendor/assets/javascripts/jquery.ui.tooltip.js → app/assets/javascripts/jquery-ui/tooltip.js} +134 -75
- data/{vendor/assets/javascripts/jquery.ui.widget.js → app/assets/javascripts/jquery-ui/widget.js} +81 -44
- data/app/assets/javascripts/jquery-ui.js +37 -0
- data/{vendor/assets/stylesheets/jquery.ui.accordion.css.erb → app/assets/stylesheets/jquery-ui/accordion.css} +7 -9
- data/app/assets/stylesheets/jquery-ui/all.css +14 -0
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +21 -0
- data/app/assets/stylesheets/jquery-ui/base.css +30 -0
- data/{vendor/assets/stylesheets/jquery.ui.button.css.erb → app/assets/stylesheets/jquery-ui/button.css} +5 -5
- data/{vendor/assets/stylesheets/jquery.ui.core.css.erb → app/assets/stylesheets/jquery-ui/core.css} +8 -4
- data/{vendor/assets/stylesheets/jquery.ui.datepicker.css.erb → app/assets/stylesheets/jquery-ui/datepicker.css} +6 -9
- data/{vendor/assets/stylesheets/jquery.ui.dialog.css.erb → app/assets/stylesheets/jquery-ui/dialog.css} +10 -8
- data/app/assets/stylesheets/jquery-ui/draggable.css +16 -0
- data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
- data/app/assets/stylesheets/jquery-ui/progressbar.css +32 -0
- data/{vendor/assets/stylesheets/jquery.ui.resizable.css.erb → app/assets/stylesheets/jquery-ui/resizable.css} +6 -6
- data/app/assets/stylesheets/jquery-ui/selectable.css +21 -0
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +64 -0
- data/{vendor/assets/stylesheets/jquery.ui.slider.css.erb → app/assets/stylesheets/jquery-ui/slider.css} +8 -6
- data/app/assets/stylesheets/jquery-ui/sortable.css +16 -0
- data/{vendor/assets/stylesheets/jquery.ui.spinner.css.erb → app/assets/stylesheets/jquery-ui/spinner.css} +8 -8
- data/{vendor/assets/stylesheets/jquery.ui.tabs.css.erb → app/assets/stylesheets/jquery-ui/tabs.css} +11 -12
- data/{vendor/assets/stylesheets/jquery.ui.theme.css.erb → app/assets/stylesheets/jquery-ui/theme.css.erb} +29 -11
- data/{vendor/assets/stylesheets/jquery.ui.tooltip.css.erb → app/assets/stylesheets/jquery-ui/tooltip.css} +6 -4
- data/app/assets/stylesheets/jquery-ui.css +1 -0
- data/lib/jquery/ui/rails/version.rb +2 -1
- metadata +155 -161
- data/vendor/assets/javascripts/jquery.ui.all.js +0 -34
- data/vendor/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
- data/vendor/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
- data/vendor/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
- data/vendor/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
- data/vendor/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
- data/vendor/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.draggable.js +0 -950
- data/vendor/assets/javascripts/jquery.ui.droppable.js +0 -376
- data/vendor/assets/javascripts/jquery.ui.effect-fade.js +0 -32
- data/vendor/assets/javascripts/jquery.ui.effect.all.js +0 -14
- data/vendor/assets/stylesheets/jquery.ui.all.css.erb +0 -14
- data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
- data/vendor/assets/stylesheets/jquery.ui.base.css.erb +0 -27
- data/vendor/assets/stylesheets/jquery.ui.menu.css.erb +0 -81
- data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -32
- data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +0 -19
@@ -1,33 +1,34 @@
|
|
1
|
-
//= require jquery
|
2
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/core
|
2
|
+
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Accordion 1.
|
5
|
+
* jQuery UI Accordion 1.11.3
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
|
-
* Copyright
|
8
|
+
* Copyright jQuery Foundation and other contributors
|
9
9
|
* Released under the MIT license.
|
10
10
|
* http://jquery.org/license
|
11
11
|
*
|
12
12
|
* http://api.jqueryui.com/accordion/
|
13
|
-
*
|
14
|
-
* Depends:
|
15
|
-
* jquery.ui.core.js
|
16
|
-
* jquery.ui.widget.js
|
17
13
|
*/
|
18
|
-
(function(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
14
|
+
(function( factory ) {
|
15
|
+
if ( typeof define === "function" && define.amd ) {
|
16
|
+
|
17
|
+
// AMD. Register as an anonymous module.
|
18
|
+
define([
|
19
|
+
"jquery",
|
20
|
+
"./core",
|
21
|
+
"./widget"
|
22
|
+
], factory );
|
23
|
+
} else {
|
24
|
+
|
25
|
+
// Browser globals
|
26
|
+
factory( jQuery );
|
27
|
+
}
|
28
|
+
}(function( $ ) {
|
28
29
|
|
29
|
-
$.widget( "ui.accordion", {
|
30
|
-
version: "1.
|
30
|
+
return $.widget( "ui.accordion", {
|
31
|
+
version: "1.11.3",
|
31
32
|
options: {
|
32
33
|
active: 0,
|
33
34
|
animate: {},
|
@@ -45,6 +46,22 @@ $.widget( "ui.accordion", {
|
|
45
46
|
beforeActivate: null
|
46
47
|
},
|
47
48
|
|
49
|
+
hideProps: {
|
50
|
+
borderTopWidth: "hide",
|
51
|
+
borderBottomWidth: "hide",
|
52
|
+
paddingTop: "hide",
|
53
|
+
paddingBottom: "hide",
|
54
|
+
height: "hide"
|
55
|
+
},
|
56
|
+
|
57
|
+
showProps: {
|
58
|
+
borderTopWidth: "show",
|
59
|
+
borderBottomWidth: "show",
|
60
|
+
paddingTop: "show",
|
61
|
+
paddingBottom: "show",
|
62
|
+
height: "show"
|
63
|
+
},
|
64
|
+
|
48
65
|
_create: function() {
|
49
66
|
var options = this.options;
|
50
67
|
this.prevShow = this.prevHide = $();
|
@@ -68,7 +85,7 @@ $.widget( "ui.accordion", {
|
|
68
85
|
_getCreateEventData: function() {
|
69
86
|
return {
|
70
87
|
header: this.active,
|
71
|
-
|
88
|
+
panel: !this.active.length ? $() : this.active.next()
|
72
89
|
};
|
73
90
|
},
|
74
91
|
|
@@ -102,31 +119,27 @@ $.widget( "ui.accordion", {
|
|
102
119
|
|
103
120
|
// clean up headers
|
104
121
|
this.headers
|
105
|
-
.removeClass( "ui-accordion-header ui-accordion-header-active ui-
|
122
|
+
.removeClass( "ui-accordion-header ui-accordion-header-active ui-state-default " +
|
123
|
+
"ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
|
106
124
|
.removeAttr( "role" )
|
125
|
+
.removeAttr( "aria-expanded" )
|
107
126
|
.removeAttr( "aria-selected" )
|
108
127
|
.removeAttr( "aria-controls" )
|
109
128
|
.removeAttr( "tabIndex" )
|
110
|
-
.
|
111
|
-
|
112
|
-
this.removeAttribute( "id" );
|
113
|
-
}
|
114
|
-
});
|
129
|
+
.removeUniqueId();
|
130
|
+
|
115
131
|
this._destroyIcons();
|
116
132
|
|
117
133
|
// clean up content panels
|
118
134
|
contents = this.headers.next()
|
135
|
+
.removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom " +
|
136
|
+
"ui-accordion-content ui-accordion-content-active ui-state-disabled" )
|
119
137
|
.css( "display", "" )
|
120
138
|
.removeAttr( "role" )
|
121
|
-
.removeAttr( "aria-expanded" )
|
122
139
|
.removeAttr( "aria-hidden" )
|
123
140
|
.removeAttr( "aria-labelledby" )
|
124
|
-
.
|
125
|
-
|
126
|
-
if ( /^ui-accordion/.test( this.id ) ) {
|
127
|
-
this.removeAttribute( "id" );
|
128
|
-
}
|
129
|
-
});
|
141
|
+
.removeUniqueId();
|
142
|
+
|
130
143
|
if ( this.options.heightStyle !== "content" ) {
|
131
144
|
contents.css( "height", "" );
|
132
145
|
}
|
@@ -163,13 +176,15 @@ $.widget( "ui.accordion", {
|
|
163
176
|
// #5332 - opacity doesn't cascade to positioned elements in IE
|
164
177
|
// so we need to add the disabled class to the headers and panels
|
165
178
|
if ( key === "disabled" ) {
|
179
|
+
this.element
|
180
|
+
.toggleClass( "ui-state-disabled", !!value )
|
181
|
+
.attr( "aria-disabled", value );
|
166
182
|
this.headers.add( this.headers.next() )
|
167
183
|
.toggleClass( "ui-state-disabled", !!value );
|
168
184
|
}
|
169
185
|
},
|
170
186
|
|
171
187
|
_keydown: function( event ) {
|
172
|
-
/*jshint maxcomplexity:15*/
|
173
188
|
if ( event.altKey || event.ctrlKey ) {
|
174
189
|
return;
|
175
190
|
}
|
@@ -208,7 +223,7 @@ $.widget( "ui.accordion", {
|
|
208
223
|
}
|
209
224
|
},
|
210
225
|
|
211
|
-
_panelKeyDown
|
226
|
+
_panelKeyDown: function( event ) {
|
212
227
|
if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
|
213
228
|
$( event.currentTarget ).prev().focus();
|
214
229
|
}
|
@@ -223,7 +238,7 @@ $.widget( "ui.accordion", {
|
|
223
238
|
options.active = false;
|
224
239
|
this.active = $();
|
225
240
|
// active false only when collapsible is true
|
226
|
-
} if ( options.active === false ) {
|
241
|
+
} else if ( options.active === false ) {
|
227
242
|
this._activate( 0 );
|
228
243
|
// was active, but active panel is gone
|
229
244
|
} else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
|
@@ -247,45 +262,44 @@ $.widget( "ui.accordion", {
|
|
247
262
|
},
|
248
263
|
|
249
264
|
_processPanels: function() {
|
265
|
+
var prevHeaders = this.headers,
|
266
|
+
prevPanels = this.panels;
|
267
|
+
|
250
268
|
this.headers = this.element.find( this.options.header )
|
251
|
-
.addClass( "ui-accordion-header ui-
|
269
|
+
.addClass( "ui-accordion-header ui-state-default ui-corner-all" );
|
252
270
|
|
253
|
-
this.headers.next()
|
271
|
+
this.panels = this.headers.next()
|
254
272
|
.addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" )
|
255
|
-
.filter(":not(.ui-accordion-content-active)")
|
273
|
+
.filter( ":not(.ui-accordion-content-active)" )
|
256
274
|
.hide();
|
275
|
+
|
276
|
+
// Avoid memory leaks (#10056)
|
277
|
+
if ( prevPanels ) {
|
278
|
+
this._off( prevHeaders.not( this.headers ) );
|
279
|
+
this._off( prevPanels.not( this.panels ) );
|
280
|
+
}
|
257
281
|
},
|
258
282
|
|
259
283
|
_refresh: function() {
|
260
284
|
var maxHeight,
|
261
285
|
options = this.options,
|
262
286
|
heightStyle = options.heightStyle,
|
263
|
-
parent = this.element.parent()
|
264
|
-
accordionId = this.accordionId = "ui-accordion-" +
|
265
|
-
(this.element.attr( "id" ) || ++uid);
|
287
|
+
parent = this.element.parent();
|
266
288
|
|
267
289
|
this.active = this._findActive( options.active )
|
268
|
-
.addClass( "ui-accordion-header-active ui-state-active" )
|
269
|
-
.
|
290
|
+
.addClass( "ui-accordion-header-active ui-state-active ui-corner-top" )
|
291
|
+
.removeClass( "ui-corner-all" );
|
270
292
|
this.active.next()
|
271
293
|
.addClass( "ui-accordion-content-active" )
|
272
294
|
.show();
|
273
295
|
|
274
296
|
this.headers
|
275
297
|
.attr( "role", "tab" )
|
276
|
-
.each(function(
|
298
|
+
.each(function() {
|
277
299
|
var header = $( this ),
|
278
|
-
headerId = header.attr( "id" ),
|
300
|
+
headerId = header.uniqueId().attr( "id" ),
|
279
301
|
panel = header.next(),
|
280
|
-
panelId = panel.attr( "id" );
|
281
|
-
if ( !headerId ) {
|
282
|
-
headerId = accordionId + "-header-" + i;
|
283
|
-
header.attr( "id", headerId );
|
284
|
-
}
|
285
|
-
if ( !panelId ) {
|
286
|
-
panelId = accordionId + "-panel-" + i;
|
287
|
-
panel.attr( "id", panelId );
|
288
|
-
}
|
302
|
+
panelId = panel.uniqueId().attr( "id" );
|
289
303
|
header.attr( "aria-controls", panelId );
|
290
304
|
panel.attr( "aria-labelledby", headerId );
|
291
305
|
})
|
@@ -296,11 +310,11 @@ $.widget( "ui.accordion", {
|
|
296
310
|
.not( this.active )
|
297
311
|
.attr({
|
298
312
|
"aria-selected": "false",
|
313
|
+
"aria-expanded": "false",
|
299
314
|
tabIndex: -1
|
300
315
|
})
|
301
316
|
.next()
|
302
317
|
.attr({
|
303
|
-
"aria-expanded": "false",
|
304
318
|
"aria-hidden": "true"
|
305
319
|
})
|
306
320
|
.hide();
|
@@ -311,11 +325,11 @@ $.widget( "ui.accordion", {
|
|
311
325
|
} else {
|
312
326
|
this.active.attr({
|
313
327
|
"aria-selected": "true",
|
328
|
+
"aria-expanded": "true",
|
314
329
|
tabIndex: 0
|
315
330
|
})
|
316
331
|
.next()
|
317
332
|
.attr({
|
318
|
-
"aria-expanded": "true",
|
319
333
|
"aria-hidden": "false"
|
320
334
|
});
|
321
335
|
}
|
@@ -383,7 +397,7 @@ $.widget( "ui.accordion", {
|
|
383
397
|
keydown: "_keydown"
|
384
398
|
};
|
385
399
|
if ( event ) {
|
386
|
-
$.each( event.split(" "), function( index, eventName ) {
|
400
|
+
$.each( event.split( " " ), function( index, eventName ) {
|
387
401
|
events[ eventName ] = "_eventHandler";
|
388
402
|
});
|
389
403
|
}
|
@@ -470,30 +484,33 @@ $.widget( "ui.accordion", {
|
|
470
484
|
}
|
471
485
|
|
472
486
|
toHide.attr({
|
473
|
-
"aria-expanded": "false",
|
474
487
|
"aria-hidden": "true"
|
475
488
|
});
|
476
|
-
toHide.prev().attr(
|
489
|
+
toHide.prev().attr({
|
490
|
+
"aria-selected": "false",
|
491
|
+
"aria-expanded": "false"
|
492
|
+
});
|
477
493
|
// if we're switching panels, remove the old header from the tab order
|
478
494
|
// if we're opening from collapsed state, remove the previous header from the tab order
|
479
495
|
// if we're collapsing, then keep the collapsing header in the tab order
|
480
496
|
if ( toShow.length && toHide.length ) {
|
481
|
-
toHide.prev().attr(
|
497
|
+
toHide.prev().attr({
|
498
|
+
"tabIndex": -1,
|
499
|
+
"aria-expanded": "false"
|
500
|
+
});
|
482
501
|
} else if ( toShow.length ) {
|
483
502
|
this.headers.filter(function() {
|
484
|
-
return $( this ).attr( "tabIndex" ) === 0;
|
503
|
+
return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
|
485
504
|
})
|
486
505
|
.attr( "tabIndex", -1 );
|
487
506
|
}
|
488
507
|
|
489
508
|
toShow
|
490
|
-
.attr(
|
491
|
-
"aria-expanded": "true",
|
492
|
-
"aria-hidden": "false"
|
493
|
-
})
|
509
|
+
.attr( "aria-hidden", "false" )
|
494
510
|
.prev()
|
495
511
|
.attr({
|
496
512
|
"aria-selected": "true",
|
513
|
+
"aria-expanded": "true",
|
497
514
|
tabIndex: 0
|
498
515
|
});
|
499
516
|
},
|
@@ -521,14 +538,14 @@ $.widget( "ui.accordion", {
|
|
521
538
|
duration = duration || options.duration || animate.duration;
|
522
539
|
|
523
540
|
if ( !toHide.length ) {
|
524
|
-
return toShow.animate( showProps, duration, easing, complete );
|
541
|
+
return toShow.animate( this.showProps, duration, easing, complete );
|
525
542
|
}
|
526
543
|
if ( !toShow.length ) {
|
527
|
-
return toHide.animate( hideProps, duration, easing, complete );
|
544
|
+
return toHide.animate( this.hideProps, duration, easing, complete );
|
528
545
|
}
|
529
546
|
|
530
547
|
total = toShow.show().outerHeight();
|
531
|
-
toHide.animate( hideProps, {
|
548
|
+
toHide.animate( this.hideProps, {
|
532
549
|
duration: duration,
|
533
550
|
easing: easing,
|
534
551
|
step: function( now, fx ) {
|
@@ -537,7 +554,7 @@ $.widget( "ui.accordion", {
|
|
537
554
|
});
|
538
555
|
toShow
|
539
556
|
.hide()
|
540
|
-
.animate( showProps, {
|
557
|
+
.animate( this.showProps, {
|
541
558
|
duration: duration,
|
542
559
|
easing: easing,
|
543
560
|
complete: complete,
|
@@ -564,11 +581,10 @@ $.widget( "ui.accordion", {
|
|
564
581
|
|
565
582
|
// Work around for rendering bug in IE (#5421)
|
566
583
|
if ( toHide.length ) {
|
567
|
-
toHide.parent()[0].className = toHide.parent()[0].className;
|
584
|
+
toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
|
568
585
|
}
|
569
|
-
|
570
586
|
this._trigger( "activate", null, data );
|
571
587
|
}
|
572
588
|
});
|
573
589
|
|
574
|
-
})
|
590
|
+
}));
|