jquery-ui-rails 6.0.0 → 7.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.
Files changed (171) hide show
  1. checksums.yaml +5 -5
  2. data/.gitmodules +1 -1
  3. data/History.md +11 -2
  4. data/README.md +22 -22
  5. data/Rakefile +11 -3
  6. data/VERSIONS.md +2 -0
  7. data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
  8. data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
  13. data/app/assets/javascripts/jquery-ui/core.js +1 -23
  14. data/app/assets/javascripts/jquery-ui/data.js +8 -4
  15. data/app/assets/javascripts/jquery-ui/disable-selection.js +6 -3
  16. data/app/assets/javascripts/jquery-ui/effect.js +55 -717
  17. data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +6 -3
  18. data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +6 -3
  19. data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +6 -3
  20. data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +6 -3
  21. data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +8 -5
  22. data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +6 -3
  23. data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +6 -3
  24. data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +6 -3
  25. data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +6 -3
  26. data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +6 -3
  27. data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +6 -3
  28. data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +6 -3
  29. data/app/assets/javascripts/jquery-ui/effects/effect-size.js +8 -3
  30. data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +6 -3
  31. data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +6 -3
  32. data/app/assets/javascripts/jquery-ui/focusable.js +8 -5
  33. data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +7 -4
  34. data/app/assets/javascripts/jquery-ui/form.js +6 -3
  35. data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +8 -5
  36. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +6 -3
  37. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +5 -2
  38. data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +12 -9
  39. data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +12 -9
  40. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +12 -9
  41. data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +12 -9
  42. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +12 -9
  43. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +10 -7
  44. data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +8 -5
  45. data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +13 -10
  46. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
  47. data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +12 -9
  48. data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +12 -9
  49. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +8 -5
  50. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +8 -5
  51. data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +8 -5
  52. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +12 -9
  53. data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +12 -9
  54. data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +8 -5
  55. data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +12 -9
  56. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +6 -3
  57. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +12 -9
  58. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +11 -8
  59. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +5 -2
  60. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +5 -2
  61. data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +6 -3
  62. data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +12 -9
  63. data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +12 -9
  64. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +7 -4
  65. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +12 -9
  66. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +9 -6
  67. data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +12 -9
  68. data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +12 -9
  69. data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +11 -8
  70. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +12 -9
  71. data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +12 -9
  72. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +12 -9
  73. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +9 -6
  74. data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +12 -9
  75. data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +9 -6
  76. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +12 -9
  77. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +10 -7
  78. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +8 -5
  79. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +11 -8
  80. data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +11 -8
  81. data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +12 -9
  82. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +8 -5
  83. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +12 -9
  84. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +9 -6
  85. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +5 -2
  86. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +5 -2
  87. data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +9 -6
  88. data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +9 -6
  89. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +12 -9
  90. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +11 -8
  91. data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +12 -9
  92. data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +8 -5
  93. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +8 -5
  94. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +12 -9
  95. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +12 -9
  96. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +12 -9
  97. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +12 -9
  98. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +12 -9
  99. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +12 -9
  100. data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +12 -9
  101. data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +10 -7
  102. data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +12 -9
  103. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +12 -9
  104. data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +12 -9
  105. data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +12 -9
  106. data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +5 -2
  107. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +12 -9
  108. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +12 -9
  109. data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +15 -12
  110. data/app/assets/javascripts/jquery-ui/ie.js +5 -2
  111. data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
  112. data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
  113. data/app/assets/javascripts/jquery-ui/keycode.js +7 -3
  114. data/app/assets/javascripts/jquery-ui/labels.js +12 -6
  115. data/app/assets/javascripts/jquery-ui/plugin.js +5 -2
  116. data/app/assets/javascripts/jquery-ui/position.js +24 -11
  117. data/app/assets/javascripts/jquery-ui/safe-active-element.js +6 -2
  118. data/app/assets/javascripts/jquery-ui/safe-blur.js +6 -2
  119. data/app/assets/javascripts/jquery-ui/scroll-parent.js +6 -3
  120. data/app/assets/javascripts/jquery-ui/tabbable.js +7 -4
  121. data/app/assets/javascripts/jquery-ui/unique-id.js +6 -3
  122. data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
  123. data/app/assets/javascripts/jquery-ui/version.js +6 -3
  124. data/app/assets/javascripts/jquery-ui/widget.js +43 -24
  125. data/app/assets/javascripts/jquery-ui/widgets/accordion.js +17 -8
  126. data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +23 -32
  127. data/app/assets/javascripts/jquery-ui/widgets/button.js +82 -19
  128. data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +9 -11
  129. data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +10 -6
  130. data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +176 -56
  131. data/app/assets/javascripts/jquery-ui/widgets/dialog.js +45 -31
  132. data/app/assets/javascripts/jquery-ui/widgets/draggable.js +22 -13
  133. data/app/assets/javascripts/jquery-ui/widgets/droppable.js +19 -13
  134. data/app/assets/javascripts/jquery-ui/widgets/menu.js +83 -43
  135. data/app/assets/javascripts/jquery-ui/widgets/mouse.js +18 -7
  136. data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +9 -6
  137. data/app/assets/javascripts/jquery-ui/widgets/resizable.js +36 -18
  138. data/app/assets/javascripts/jquery-ui/widgets/selectable.js +13 -6
  139. data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +15 -10
  140. data/app/assets/javascripts/jquery-ui/widgets/slider.js +10 -7
  141. data/app/assets/javascripts/jquery-ui/widgets/sortable.js +221 -159
  142. data/app/assets/javascripts/jquery-ui/widgets/spinner.js +20 -13
  143. data/app/assets/javascripts/jquery-ui/widgets/tabs.js +13 -13
  144. data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +15 -11
  145. data/app/assets/javascripts/jquery-ui.js +3 -2
  146. data/app/assets/stylesheets/jquery-ui/accordion.css +1 -1
  147. data/app/assets/stylesheets/jquery-ui/all.css +1 -1
  148. data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -1
  149. data/app/assets/stylesheets/jquery-ui/base.css +1 -1
  150. data/app/assets/stylesheets/jquery-ui/button.css +1 -1
  151. data/app/assets/stylesheets/jquery-ui/checkboxradio.css +1 -1
  152. data/app/assets/stylesheets/jquery-ui/controlgroup.css +1 -1
  153. data/app/assets/stylesheets/jquery-ui/core.css +2 -2
  154. data/app/assets/stylesheets/jquery-ui/datepicker.css +1 -1
  155. data/app/assets/stylesheets/jquery-ui/dialog.css +1 -1
  156. data/app/assets/stylesheets/jquery-ui/draggable.css +1 -1
  157. data/app/assets/stylesheets/jquery-ui/menu.css +1 -1
  158. data/app/assets/stylesheets/jquery-ui/progressbar.css +2 -2
  159. data/app/assets/stylesheets/jquery-ui/resizable.css +1 -1
  160. data/app/assets/stylesheets/jquery-ui/selectable.css +1 -1
  161. data/app/assets/stylesheets/jquery-ui/selectmenu.css +1 -1
  162. data/app/assets/stylesheets/jquery-ui/slider.css +2 -2
  163. data/app/assets/stylesheets/jquery-ui/sortable.css +1 -1
  164. data/app/assets/stylesheets/jquery-ui/spinner.css +1 -1
  165. data/app/assets/stylesheets/jquery-ui/tabs.css +1 -1
  166. data/app/assets/stylesheets/jquery-ui/theme.css.erb +9 -6
  167. data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -1
  168. data/lib/jquery/ui/rails/version.rb +2 -2
  169. metadata +8 -7
  170. data/app/assets/javascripts/jquery-ui/escape-selector.js +0 -23
  171. data/app/assets/javascripts/jquery-ui/jquery-1-7.js +0 -91
@@ -1,7 +1,9 @@
1
+ //= require jquery-ui/jquery-var-for-color
2
+ //= require jquery-ui/vendor/jquery-color/jquery.color
1
3
  //= require jquery-ui/version
2
4
 
3
5
  /*!
4
- * jQuery UI Effects 1.12.1
6
+ * jQuery UI Effects 1.13.0
5
7
  * http://jqueryui.com
6
8
  *
7
9
  * Copyright jQuery Foundation and other contributors
@@ -11,713 +13,40 @@
11
13
 
12
14
  //>>label: Effects Core
13
15
  //>>group: Effects
14
- // jscs:disable maximumLineLength
16
+ /* eslint-disable max-len */
15
17
  //>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
16
- // jscs:enable maximumLineLength
18
+ /* eslint-enable max-len */
17
19
  //>>docs: http://api.jqueryui.com/category/effects-core/
18
20
  //>>demos: http://jqueryui.com/effect/
19
21
 
20
22
  ( function( factory ) {
23
+ "use strict";
24
+
21
25
  if ( typeof define === "function" && define.amd ) {
22
26
 
23
27
  // AMD. Register as an anonymous module.
24
- define( [ "jquery", "./version" ], factory );
28
+ define( [
29
+ "jquery",
30
+ "./jquery-var-for-color",
31
+ "./vendor/jquery-color/jquery.color",
32
+ "./version"
33
+ ], factory );
25
34
  } else {
26
35
 
27
36
  // Browser globals
28
37
  factory( jQuery );
29
38
  }
30
- }( function( $ ) {
39
+ } )( function( $ ) {
40
+ "use strict";
31
41
 
32
42
  var dataSpace = "ui-effects-",
33
43
  dataSpaceStyle = "ui-effects-style",
34
- dataSpaceAnimated = "ui-effects-animated",
35
-
36
- // Create a local jQuery because jQuery Color relies on it and the
37
- // global may not exist with AMD and a custom build (#10199)
38
- jQuery = $;
44
+ dataSpaceAnimated = "ui-effects-animated";
39
45
 
40
46
  $.effects = {
41
47
  effect: {}
42
48
  };
43
49
 
44
- /*!
45
- * jQuery Color Animations v2.1.2
46
- * https://github.com/jquery/jquery-color
47
- *
48
- * Copyright 2014 jQuery Foundation and other contributors
49
- * Released under the MIT license.
50
- * http://jquery.org/license
51
- *
52
- * Date: Wed Jan 16 08:47:09 2013 -0600
53
- */
54
- ( function( jQuery, undefined ) {
55
-
56
- var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
57
- "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
58
-
59
- // Plusequals test for += 100 -= 100
60
- rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
61
-
62
- // A set of RE's that can match strings and generate color tuples.
63
- stringParsers = [ {
64
- re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
65
- parse: function( execResult ) {
66
- return [
67
- execResult[ 1 ],
68
- execResult[ 2 ],
69
- execResult[ 3 ],
70
- execResult[ 4 ]
71
- ];
72
- }
73
- }, {
74
- re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
75
- parse: function( execResult ) {
76
- return [
77
- execResult[ 1 ] * 2.55,
78
- execResult[ 2 ] * 2.55,
79
- execResult[ 3 ] * 2.55,
80
- execResult[ 4 ]
81
- ];
82
- }
83
- }, {
84
-
85
- // This regex ignores A-F because it's compared against an already lowercased string
86
- re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
87
- parse: function( execResult ) {
88
- return [
89
- parseInt( execResult[ 1 ], 16 ),
90
- parseInt( execResult[ 2 ], 16 ),
91
- parseInt( execResult[ 3 ], 16 )
92
- ];
93
- }
94
- }, {
95
-
96
- // This regex ignores A-F because it's compared against an already lowercased string
97
- re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
98
- parse: function( execResult ) {
99
- return [
100
- parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
101
- parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
102
- parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
103
- ];
104
- }
105
- }, {
106
- re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
107
- space: "hsla",
108
- parse: function( execResult ) {
109
- return [
110
- execResult[ 1 ],
111
- execResult[ 2 ] / 100,
112
- execResult[ 3 ] / 100,
113
- execResult[ 4 ]
114
- ];
115
- }
116
- } ],
117
-
118
- // JQuery.Color( )
119
- color = jQuery.Color = function( color, green, blue, alpha ) {
120
- return new jQuery.Color.fn.parse( color, green, blue, alpha );
121
- },
122
- spaces = {
123
- rgba: {
124
- props: {
125
- red: {
126
- idx: 0,
127
- type: "byte"
128
- },
129
- green: {
130
- idx: 1,
131
- type: "byte"
132
- },
133
- blue: {
134
- idx: 2,
135
- type: "byte"
136
- }
137
- }
138
- },
139
-
140
- hsla: {
141
- props: {
142
- hue: {
143
- idx: 0,
144
- type: "degrees"
145
- },
146
- saturation: {
147
- idx: 1,
148
- type: "percent"
149
- },
150
- lightness: {
151
- idx: 2,
152
- type: "percent"
153
- }
154
- }
155
- }
156
- },
157
- propTypes = {
158
- "byte": {
159
- floor: true,
160
- max: 255
161
- },
162
- "percent": {
163
- max: 1
164
- },
165
- "degrees": {
166
- mod: 360,
167
- floor: true
168
- }
169
- },
170
- support = color.support = {},
171
-
172
- // Element for support tests
173
- supportElem = jQuery( "<p>" )[ 0 ],
174
-
175
- // Colors = jQuery.Color.names
176
- colors,
177
-
178
- // Local aliases of functions called often
179
- each = jQuery.each;
180
-
181
- // Determine rgba support immediately
182
- supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
183
- support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
184
-
185
- // Define cache name and alpha properties
186
- // for rgba and hsla spaces
187
- each( spaces, function( spaceName, space ) {
188
- space.cache = "_" + spaceName;
189
- space.props.alpha = {
190
- idx: 3,
191
- type: "percent",
192
- def: 1
193
- };
194
- } );
195
-
196
- function clamp( value, prop, allowEmpty ) {
197
- var type = propTypes[ prop.type ] || {};
198
-
199
- if ( value == null ) {
200
- return ( allowEmpty || !prop.def ) ? null : prop.def;
201
- }
202
-
203
- // ~~ is an short way of doing floor for positive numbers
204
- value = type.floor ? ~~value : parseFloat( value );
205
-
206
- // IE will pass in empty strings as value for alpha,
207
- // which will hit this case
208
- if ( isNaN( value ) ) {
209
- return prop.def;
210
- }
211
-
212
- if ( type.mod ) {
213
-
214
- // We add mod before modding to make sure that negatives values
215
- // get converted properly: -10 -> 350
216
- return ( value + type.mod ) % type.mod;
217
- }
218
-
219
- // For now all property types without mod have min and max
220
- return 0 > value ? 0 : type.max < value ? type.max : value;
221
- }
222
-
223
- function stringParse( string ) {
224
- var inst = color(),
225
- rgba = inst._rgba = [];
226
-
227
- string = string.toLowerCase();
228
-
229
- each( stringParsers, function( i, parser ) {
230
- var parsed,
231
- match = parser.re.exec( string ),
232
- values = match && parser.parse( match ),
233
- spaceName = parser.space || "rgba";
234
-
235
- if ( values ) {
236
- parsed = inst[ spaceName ]( values );
237
-
238
- // If this was an rgba parse the assignment might happen twice
239
- // oh well....
240
- inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
241
- rgba = inst._rgba = parsed._rgba;
242
-
243
- // Exit each( stringParsers ) here because we matched
244
- return false;
245
- }
246
- } );
247
-
248
- // Found a stringParser that handled it
249
- if ( rgba.length ) {
250
-
251
- // If this came from a parsed string, force "transparent" when alpha is 0
252
- // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
253
- if ( rgba.join() === "0,0,0,0" ) {
254
- jQuery.extend( rgba, colors.transparent );
255
- }
256
- return inst;
257
- }
258
-
259
- // Named colors
260
- return colors[ string ];
261
- }
262
-
263
- color.fn = jQuery.extend( color.prototype, {
264
- parse: function( red, green, blue, alpha ) {
265
- if ( red === undefined ) {
266
- this._rgba = [ null, null, null, null ];
267
- return this;
268
- }
269
- if ( red.jquery || red.nodeType ) {
270
- red = jQuery( red ).css( green );
271
- green = undefined;
272
- }
273
-
274
- var inst = this,
275
- type = jQuery.type( red ),
276
- rgba = this._rgba = [];
277
-
278
- // More than 1 argument specified - assume ( red, green, blue, alpha )
279
- if ( green !== undefined ) {
280
- red = [ red, green, blue, alpha ];
281
- type = "array";
282
- }
283
-
284
- if ( type === "string" ) {
285
- return this.parse( stringParse( red ) || colors._default );
286
- }
287
-
288
- if ( type === "array" ) {
289
- each( spaces.rgba.props, function( key, prop ) {
290
- rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
291
- } );
292
- return this;
293
- }
294
-
295
- if ( type === "object" ) {
296
- if ( red instanceof color ) {
297
- each( spaces, function( spaceName, space ) {
298
- if ( red[ space.cache ] ) {
299
- inst[ space.cache ] = red[ space.cache ].slice();
300
- }
301
- } );
302
- } else {
303
- each( spaces, function( spaceName, space ) {
304
- var cache = space.cache;
305
- each( space.props, function( key, prop ) {
306
-
307
- // If the cache doesn't exist, and we know how to convert
308
- if ( !inst[ cache ] && space.to ) {
309
-
310
- // If the value was null, we don't need to copy it
311
- // if the key was alpha, we don't need to copy it either
312
- if ( key === "alpha" || red[ key ] == null ) {
313
- return;
314
- }
315
- inst[ cache ] = space.to( inst._rgba );
316
- }
317
-
318
- // This is the only case where we allow nulls for ALL properties.
319
- // call clamp with alwaysAllowEmpty
320
- inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
321
- } );
322
-
323
- // Everything defined but alpha?
324
- if ( inst[ cache ] &&
325
- jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
326
-
327
- // Use the default of 1
328
- inst[ cache ][ 3 ] = 1;
329
- if ( space.from ) {
330
- inst._rgba = space.from( inst[ cache ] );
331
- }
332
- }
333
- } );
334
- }
335
- return this;
336
- }
337
- },
338
- is: function( compare ) {
339
- var is = color( compare ),
340
- same = true,
341
- inst = this;
342
-
343
- each( spaces, function( _, space ) {
344
- var localCache,
345
- isCache = is[ space.cache ];
346
- if ( isCache ) {
347
- localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
348
- each( space.props, function( _, prop ) {
349
- if ( isCache[ prop.idx ] != null ) {
350
- same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
351
- return same;
352
- }
353
- } );
354
- }
355
- return same;
356
- } );
357
- return same;
358
- },
359
- _space: function() {
360
- var used = [],
361
- inst = this;
362
- each( spaces, function( spaceName, space ) {
363
- if ( inst[ space.cache ] ) {
364
- used.push( spaceName );
365
- }
366
- } );
367
- return used.pop();
368
- },
369
- transition: function( other, distance ) {
370
- var end = color( other ),
371
- spaceName = end._space(),
372
- space = spaces[ spaceName ],
373
- startColor = this.alpha() === 0 ? color( "transparent" ) : this,
374
- start = startColor[ space.cache ] || space.to( startColor._rgba ),
375
- result = start.slice();
376
-
377
- end = end[ space.cache ];
378
- each( space.props, function( key, prop ) {
379
- var index = prop.idx,
380
- startValue = start[ index ],
381
- endValue = end[ index ],
382
- type = propTypes[ prop.type ] || {};
383
-
384
- // If null, don't override start value
385
- if ( endValue === null ) {
386
- return;
387
- }
388
-
389
- // If null - use end
390
- if ( startValue === null ) {
391
- result[ index ] = endValue;
392
- } else {
393
- if ( type.mod ) {
394
- if ( endValue - startValue > type.mod / 2 ) {
395
- startValue += type.mod;
396
- } else if ( startValue - endValue > type.mod / 2 ) {
397
- startValue -= type.mod;
398
- }
399
- }
400
- result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
401
- }
402
- } );
403
- return this[ spaceName ]( result );
404
- },
405
- blend: function( opaque ) {
406
-
407
- // If we are already opaque - return ourself
408
- if ( this._rgba[ 3 ] === 1 ) {
409
- return this;
410
- }
411
-
412
- var rgb = this._rgba.slice(),
413
- a = rgb.pop(),
414
- blend = color( opaque )._rgba;
415
-
416
- return color( jQuery.map( rgb, function( v, i ) {
417
- return ( 1 - a ) * blend[ i ] + a * v;
418
- } ) );
419
- },
420
- toRgbaString: function() {
421
- var prefix = "rgba(",
422
- rgba = jQuery.map( this._rgba, function( v, i ) {
423
- return v == null ? ( i > 2 ? 1 : 0 ) : v;
424
- } );
425
-
426
- if ( rgba[ 3 ] === 1 ) {
427
- rgba.pop();
428
- prefix = "rgb(";
429
- }
430
-
431
- return prefix + rgba.join() + ")";
432
- },
433
- toHslaString: function() {
434
- var prefix = "hsla(",
435
- hsla = jQuery.map( this.hsla(), function( v, i ) {
436
- if ( v == null ) {
437
- v = i > 2 ? 1 : 0;
438
- }
439
-
440
- // Catch 1 and 2
441
- if ( i && i < 3 ) {
442
- v = Math.round( v * 100 ) + "%";
443
- }
444
- return v;
445
- } );
446
-
447
- if ( hsla[ 3 ] === 1 ) {
448
- hsla.pop();
449
- prefix = "hsl(";
450
- }
451
- return prefix + hsla.join() + ")";
452
- },
453
- toHexString: function( includeAlpha ) {
454
- var rgba = this._rgba.slice(),
455
- alpha = rgba.pop();
456
-
457
- if ( includeAlpha ) {
458
- rgba.push( ~~( alpha * 255 ) );
459
- }
460
-
461
- return "#" + jQuery.map( rgba, function( v ) {
462
-
463
- // Default to 0 when nulls exist
464
- v = ( v || 0 ).toString( 16 );
465
- return v.length === 1 ? "0" + v : v;
466
- } ).join( "" );
467
- },
468
- toString: function() {
469
- return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
470
- }
471
- } );
472
- color.fn.parse.prototype = color.fn;
473
-
474
- // Hsla conversions adapted from:
475
- // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
476
-
477
- function hue2rgb( p, q, h ) {
478
- h = ( h + 1 ) % 1;
479
- if ( h * 6 < 1 ) {
480
- return p + ( q - p ) * h * 6;
481
- }
482
- if ( h * 2 < 1 ) {
483
- return q;
484
- }
485
- if ( h * 3 < 2 ) {
486
- return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
487
- }
488
- return p;
489
- }
490
-
491
- spaces.hsla.to = function( rgba ) {
492
- if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
493
- return [ null, null, null, rgba[ 3 ] ];
494
- }
495
- var r = rgba[ 0 ] / 255,
496
- g = rgba[ 1 ] / 255,
497
- b = rgba[ 2 ] / 255,
498
- a = rgba[ 3 ],
499
- max = Math.max( r, g, b ),
500
- min = Math.min( r, g, b ),
501
- diff = max - min,
502
- add = max + min,
503
- l = add * 0.5,
504
- h, s;
505
-
506
- if ( min === max ) {
507
- h = 0;
508
- } else if ( r === max ) {
509
- h = ( 60 * ( g - b ) / diff ) + 360;
510
- } else if ( g === max ) {
511
- h = ( 60 * ( b - r ) / diff ) + 120;
512
- } else {
513
- h = ( 60 * ( r - g ) / diff ) + 240;
514
- }
515
-
516
- // Chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
517
- // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
518
- if ( diff === 0 ) {
519
- s = 0;
520
- } else if ( l <= 0.5 ) {
521
- s = diff / add;
522
- } else {
523
- s = diff / ( 2 - add );
524
- }
525
- return [ Math.round( h ) % 360, s, l, a == null ? 1 : a ];
526
- };
527
-
528
- spaces.hsla.from = function( hsla ) {
529
- if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
530
- return [ null, null, null, hsla[ 3 ] ];
531
- }
532
- var h = hsla[ 0 ] / 360,
533
- s = hsla[ 1 ],
534
- l = hsla[ 2 ],
535
- a = hsla[ 3 ],
536
- q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
537
- p = 2 * l - q;
538
-
539
- return [
540
- Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
541
- Math.round( hue2rgb( p, q, h ) * 255 ),
542
- Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
543
- a
544
- ];
545
- };
546
-
547
- each( spaces, function( spaceName, space ) {
548
- var props = space.props,
549
- cache = space.cache,
550
- to = space.to,
551
- from = space.from;
552
-
553
- // Makes rgba() and hsla()
554
- color.fn[ spaceName ] = function( value ) {
555
-
556
- // Generate a cache for this space if it doesn't exist
557
- if ( to && !this[ cache ] ) {
558
- this[ cache ] = to( this._rgba );
559
- }
560
- if ( value === undefined ) {
561
- return this[ cache ].slice();
562
- }
563
-
564
- var ret,
565
- type = jQuery.type( value ),
566
- arr = ( type === "array" || type === "object" ) ? value : arguments,
567
- local = this[ cache ].slice();
568
-
569
- each( props, function( key, prop ) {
570
- var val = arr[ type === "object" ? key : prop.idx ];
571
- if ( val == null ) {
572
- val = local[ prop.idx ];
573
- }
574
- local[ prop.idx ] = clamp( val, prop );
575
- } );
576
-
577
- if ( from ) {
578
- ret = color( from( local ) );
579
- ret[ cache ] = local;
580
- return ret;
581
- } else {
582
- return color( local );
583
- }
584
- };
585
-
586
- // Makes red() green() blue() alpha() hue() saturation() lightness()
587
- each( props, function( key, prop ) {
588
-
589
- // Alpha is included in more than one space
590
- if ( color.fn[ key ] ) {
591
- return;
592
- }
593
- color.fn[ key ] = function( value ) {
594
- var vtype = jQuery.type( value ),
595
- fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
596
- local = this[ fn ](),
597
- cur = local[ prop.idx ],
598
- match;
599
-
600
- if ( vtype === "undefined" ) {
601
- return cur;
602
- }
603
-
604
- if ( vtype === "function" ) {
605
- value = value.call( this, cur );
606
- vtype = jQuery.type( value );
607
- }
608
- if ( value == null && prop.empty ) {
609
- return this;
610
- }
611
- if ( vtype === "string" ) {
612
- match = rplusequals.exec( value );
613
- if ( match ) {
614
- value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
615
- }
616
- }
617
- local[ prop.idx ] = value;
618
- return this[ fn ]( local );
619
- };
620
- } );
621
- } );
622
-
623
- // Add cssHook and .fx.step function for each named hook.
624
- // accept a space separated string of properties
625
- color.hook = function( hook ) {
626
- var hooks = hook.split( " " );
627
- each( hooks, function( i, hook ) {
628
- jQuery.cssHooks[ hook ] = {
629
- set: function( elem, value ) {
630
- var parsed, curElem,
631
- backgroundColor = "";
632
-
633
- if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||
634
- ( parsed = stringParse( value ) ) ) ) {
635
- value = color( parsed || value );
636
- if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
637
- curElem = hook === "backgroundColor" ? elem.parentNode : elem;
638
- while (
639
- ( backgroundColor === "" || backgroundColor === "transparent" ) &&
640
- curElem && curElem.style
641
- ) {
642
- try {
643
- backgroundColor = jQuery.css( curElem, "backgroundColor" );
644
- curElem = curElem.parentNode;
645
- } catch ( e ) {
646
- }
647
- }
648
-
649
- value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
650
- backgroundColor :
651
- "_default" );
652
- }
653
-
654
- value = value.toRgbaString();
655
- }
656
- try {
657
- elem.style[ hook ] = value;
658
- } catch ( e ) {
659
-
660
- // Wrapped to prevent IE from throwing errors on "invalid" values like
661
- // 'auto' or 'inherit'
662
- }
663
- }
664
- };
665
- jQuery.fx.step[ hook ] = function( fx ) {
666
- if ( !fx.colorInit ) {
667
- fx.start = color( fx.elem, hook );
668
- fx.end = color( fx.end );
669
- fx.colorInit = true;
670
- }
671
- jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
672
- };
673
- } );
674
-
675
- };
676
-
677
- color.hook( stepHooks );
678
-
679
- jQuery.cssHooks.borderColor = {
680
- expand: function( value ) {
681
- var expanded = {};
682
-
683
- each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
684
- expanded[ "border" + part + "Color" ] = value;
685
- } );
686
- return expanded;
687
- }
688
- };
689
-
690
- // Basic color names only.
691
- // Usage of any of the other color names requires adding yourself or including
692
- // jquery.color.svg-names.js.
693
- colors = jQuery.Color.names = {
694
-
695
- // 4.1. Basic color keywords
696
- aqua: "#00ffff",
697
- black: "#000000",
698
- blue: "#0000ff",
699
- fuchsia: "#ff00ff",
700
- gray: "#808080",
701
- green: "#008000",
702
- lime: "#00ff00",
703
- maroon: "#800000",
704
- navy: "#000080",
705
- olive: "#808000",
706
- purple: "#800080",
707
- red: "#ff0000",
708
- silver: "#c0c0c0",
709
- teal: "#008080",
710
- white: "#ffffff",
711
- yellow: "#ffff00",
712
-
713
- // 4.2.3. "transparent" color keyword
714
- transparent: [ null, null, null, 0 ],
715
-
716
- _default: "#ffffff"
717
- };
718
-
719
- } )( jQuery );
720
-
721
50
  /******************************************************************************/
722
51
  /****************************** CLASS ANIMATIONS ******************************/
723
52
  /******************************************************************************/
@@ -748,6 +77,12 @@ $.each(
748
77
  }
749
78
  );
750
79
 
80
+ function camelCase( string ) {
81
+ return string.replace( /-([\da-z])/gi, function( all, letter ) {
82
+ return letter.toUpperCase();
83
+ } );
84
+ }
85
+
751
86
  function getElementStyles( elem ) {
752
87
  var key, len,
753
88
  style = elem.ownerDocument.defaultView ?
@@ -760,7 +95,7 @@ function getElementStyles( elem ) {
760
95
  while ( len-- ) {
761
96
  key = style[ len ];
762
97
  if ( typeof style[ key ] === "string" ) {
763
- styles[ $.camelCase( key ) ] = style[ key ];
98
+ styles[ camelCase( key ) ] = style[ key ];
764
99
  }
765
100
  }
766
101
 
@@ -934,12 +269,12 @@ $.fn.extend( {
934
269
 
935
270
  ( function() {
936
271
 
937
- if ( $.expr && $.expr.filters && $.expr.filters.animated ) {
938
- $.expr.filters.animated = ( function( orig ) {
272
+ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) {
273
+ $.expr.pseudos.animated = ( function( orig ) {
939
274
  return function( elem ) {
940
275
  return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
941
276
  };
942
- } )( $.expr.filters.animated );
277
+ } )( $.expr.pseudos.animated );
943
278
  }
944
279
 
945
280
  if ( $.uiBackCompat !== false ) {
@@ -1008,6 +343,7 @@ if ( $.uiBackCompat !== false ) {
1008
343
  // Firefox incorrectly exposes anonymous content
1009
344
  // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
1010
345
  try {
346
+ // eslint-disable-next-line no-unused-expressions
1011
347
  active.id;
1012
348
  } catch ( e ) {
1013
349
  active = document.body;
@@ -1070,7 +406,7 @@ if ( $.uiBackCompat !== false ) {
1070
406
  }
1071
407
 
1072
408
  $.extend( $.effects, {
1073
- version: "1.12.1",
409
+ version: "1.13.0",
1074
410
 
1075
411
  define: function( name, mode, effect ) {
1076
412
  if ( !effect ) {
@@ -1286,7 +622,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
1286
622
  }
1287
623
 
1288
624
  // Catch (effect, callback)
1289
- if ( $.isFunction( options ) ) {
625
+ if ( typeof options === "function" ) {
1290
626
  callback = options;
1291
627
  speed = null;
1292
628
  options = {};
@@ -1300,7 +636,7 @@ function _normalizeArguments( effect, options, speed, callback ) {
1300
636
  }
1301
637
 
1302
638
  // Catch (effect, options, callback)
1303
- if ( $.isFunction( speed ) ) {
639
+ if ( typeof speed === "function" ) {
1304
640
  callback = speed;
1305
641
  speed = null;
1306
642
  }
@@ -1334,7 +670,7 @@ function standardAnimationOption( option ) {
1334
670
  }
1335
671
 
1336
672
  // Complete callback
1337
- if ( $.isFunction( option ) ) {
673
+ if ( typeof option === "function" ) {
1338
674
  return true;
1339
675
  }
1340
676
 
@@ -1361,7 +697,7 @@ $.fn.extend( {
1361
697
  var el = $( this ),
1362
698
  normalizedMode = $.effects.mode( el, mode ) || defaultMode;
1363
699
 
1364
- // Sentinel for duck-punching the :animated psuedo-selector
700
+ // Sentinel for duck-punching the :animated pseudo-selector
1365
701
  el.data( dataSpaceAnimated, true );
1366
702
 
1367
703
  // Save effect mode for later use,
@@ -1369,7 +705,7 @@ $.fn.extend( {
1369
705
  // as the .show() below destroys the initial state
1370
706
  modes.push( normalizedMode );
1371
707
 
1372
- // See $.uiBackCompat inside of run() for removal of defaultMode in 1.13
708
+ // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14
1373
709
  if ( defaultMode && ( normalizedMode === "show" ||
1374
710
  ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
1375
711
  el.show();
@@ -1379,7 +715,7 @@ $.fn.extend( {
1379
715
  $.effects.saveStyle( el );
1380
716
  }
1381
717
 
1382
- if ( $.isFunction( next ) ) {
718
+ if ( typeof next === "function" ) {
1383
719
  next();
1384
720
  }
1385
721
  };
@@ -1414,11 +750,11 @@ $.fn.extend( {
1414
750
  }
1415
751
 
1416
752
  function done() {
1417
- if ( $.isFunction( complete ) ) {
753
+ if ( typeof complete === "function" ) {
1418
754
  complete.call( elem[ 0 ] );
1419
755
  }
1420
756
 
1421
- if ( $.isFunction( next ) ) {
757
+ if ( typeof next === "function" ) {
1422
758
  next();
1423
759
  }
1424
760
  }
@@ -1527,22 +863,24 @@ $.fn.extend( {
1527
863
  width: target.innerWidth()
1528
864
  },
1529
865
  startPosition = element.offset(),
1530
- transfer = $( "<div class='ui-effects-transfer'></div>" )
1531
- .appendTo( "body" )
1532
- .addClass( options.className )
1533
- .css( {
1534
- top: startPosition.top - fixTop,
1535
- left: startPosition.left - fixLeft,
1536
- height: element.innerHeight(),
1537
- width: element.innerWidth(),
1538
- position: targetFixed ? "fixed" : "absolute"
1539
- } )
1540
- .animate( animation, options.duration, options.easing, function() {
1541
- transfer.remove();
1542
- if ( $.isFunction( done ) ) {
1543
- done();
1544
- }
1545
- } );
866
+ transfer = $( "<div class='ui-effects-transfer'></div>" );
867
+
868
+ transfer
869
+ .appendTo( "body" )
870
+ .addClass( options.className )
871
+ .css( {
872
+ top: startPosition.top - fixTop,
873
+ left: startPosition.left - fixLeft,
874
+ height: element.innerHeight(),
875
+ width: element.innerWidth(),
876
+ position: targetFixed ? "fixed" : "absolute"
877
+ } )
878
+ .animate( animation, options.duration, options.easing, function() {
879
+ transfer.remove();
880
+ if ( typeof done === "function" ) {
881
+ done();
882
+ }
883
+ } );
1546
884
  }
1547
885
  } );
1548
886
 
@@ -1634,4 +972,4 @@ $.each( baseEasings, function( name, easeIn ) {
1634
972
 
1635
973
  return $.effects;
1636
974
 
1637
- } ) );
975
+ } );