govuk_publishing_components 28.9.2 → 29.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/config/govuk_publishing_components_manifest.js +15 -3
  4. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +2 -5
  5. data/app/assets/javascripts/govuk_publishing_components/modules.js +15 -18
  6. data/app/assets/javascripts/govuk_publishing_components/{rum-loader.js.erb → rum-loader.js} +13 -10
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -0
  8. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +7 -1
  9. data/app/views/govuk_publishing_components/components/docs/big_number.yml +3 -3
  10. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +3 -3
  11. data/app/views/govuk_publishing_components/components/docs/button.yml +2 -2
  12. data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +5 -5
  13. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
  14. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
  15. data/app/views/govuk_publishing_components/components/docs/contextual_guidance.yml +1 -1
  16. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
  17. data/app/views/govuk_publishing_components/components/docs/date_input.yml +1 -1
  18. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
  19. data/app/views/govuk_publishing_components/components/docs/devolved_nations.yml +1 -1
  20. data/app/views/govuk_publishing_components/components/docs/document_list.yml +2 -2
  21. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
  22. data/app/views/govuk_publishing_components/components/docs/error_summary.yml +2 -2
  23. data/app/views/govuk_publishing_components/components/docs/feedback.yml +1 -1
  24. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +4 -4
  25. data/app/views/govuk_publishing_components/components/docs/heading.yml +4 -4
  26. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  27. data/app/views/govuk_publishing_components/components/docs/input.yml +3 -3
  28. data/app/views/govuk_publishing_components/components/docs/inset_text.yml +1 -1
  29. data/app/views/govuk_publishing_components/components/docs/label.yml +1 -1
  30. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +2 -2
  31. data/app/views/govuk_publishing_components/components/docs/lead_paragraph.yml +1 -1
  32. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
  33. data/app/views/govuk_publishing_components/components/docs/notice.yml +2 -2
  34. data/app/views/govuk_publishing_components/components/docs/print_link.yml +1 -1
  35. data/app/views/govuk_publishing_components/components/docs/search.yml +4 -4
  36. data/app/views/govuk_publishing_components/components/docs/select.yml +5 -5
  37. data/app/views/govuk_publishing_components/components/docs/show_password.yml +3 -3
  38. data/app/views/govuk_publishing_components/components/docs/signup_link.yml +1 -1
  39. data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +2 -2
  40. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +1 -1
  41. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +3 -3
  42. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -3
  43. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
  44. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
  45. data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -1
  46. data/app/views/govuk_publishing_components/components/docs/title.yml +1 -1
  47. data/config/initializers/assets.rb +15 -45
  48. data/lib/govuk_publishing_components/version.rb +1 -1
  49. metadata +10 -117
  50. data/node_modules/jquery/AUTHORS.txt +0 -266
  51. data/node_modules/jquery/LICENSE.txt +0 -36
  52. data/node_modules/jquery/README.md +0 -65
  53. data/node_modules/jquery/bower.json +0 -14
  54. data/node_modules/jquery/dist/jquery.js +0 -11008
  55. data/node_modules/jquery/dist/jquery.min.js +0 -5
  56. data/node_modules/jquery/dist/jquery.min.map +0 -1
  57. data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  58. data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2143
  59. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  60. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  61. data/node_modules/jquery/package.json +0 -85
  62. data/node_modules/jquery/src/ajax/jsonp.js +0 -100
  63. data/node_modules/jquery/src/ajax/load.js +0 -83
  64. data/node_modules/jquery/src/ajax/parseJSON.js +0 -53
  65. data/node_modules/jquery/src/ajax/parseXML.js +0 -31
  66. data/node_modules/jquery/src/ajax/script.js +0 -95
  67. data/node_modules/jquery/src/ajax/var/location.js +0 -3
  68. data/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  69. data/node_modules/jquery/src/ajax/var/rquery.js +0 -3
  70. data/node_modules/jquery/src/ajax/xhr.js +0 -229
  71. data/node_modules/jquery/src/ajax.js +0 -842
  72. data/node_modules/jquery/src/attributes/attr.js +0 -281
  73. data/node_modules/jquery/src/attributes/classes.js +0 -174
  74. data/node_modules/jquery/src/attributes/prop.js +0 -156
  75. data/node_modules/jquery/src/attributes/support.js +0 -70
  76. data/node_modules/jquery/src/attributes/val.js +0 -191
  77. data/node_modules/jquery/src/attributes.js +0 -11
  78. data/node_modules/jquery/src/callbacks.js +0 -232
  79. data/node_modules/jquery/src/core/access.js +0 -65
  80. data/node_modules/jquery/src/core/init.js +0 -140
  81. data/node_modules/jquery/src/core/parseHTML.js +0 -41
  82. data/node_modules/jquery/src/core/ready.js +0 -163
  83. data/node_modules/jquery/src/core/var/rsingleTag.js +0 -5
  84. data/node_modules/jquery/src/core.js +0 -529
  85. data/node_modules/jquery/src/css/addGetHookIf.js +0 -24
  86. data/node_modules/jquery/src/css/adjustCSS.js +0 -65
  87. data/node_modules/jquery/src/css/curCSS.js +0 -137
  88. data/node_modules/jquery/src/css/defaultDisplay.js +0 -72
  89. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -42
  90. data/node_modules/jquery/src/css/showHide.js +0 -45
  91. data/node_modules/jquery/src/css/support.js +0 -184
  92. data/node_modules/jquery/src/css/var/cssExpand.js +0 -3
  93. data/node_modules/jquery/src/css/var/isHidden.js +0 -16
  94. data/node_modules/jquery/src/css/var/rmargin.js +0 -3
  95. data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -5
  96. data/node_modules/jquery/src/css/var/swap.js +0 -24
  97. data/node_modules/jquery/src/css.js +0 -563
  98. data/node_modules/jquery/src/data/support.js +0 -23
  99. data/node_modules/jquery/src/data/var/acceptData.js +0 -20
  100. data/node_modules/jquery/src/data.js +0 -342
  101. data/node_modules/jquery/src/deferred.js +0 -159
  102. data/node_modules/jquery/src/deprecated.js +0 -34
  103. data/node_modules/jquery/src/dimensions.js +0 -56
  104. data/node_modules/jquery/src/effects/Tween.js +0 -121
  105. data/node_modules/jquery/src/effects/animatedSelector.js +0 -13
  106. data/node_modules/jquery/src/effects/support.js +0 -58
  107. data/node_modules/jquery/src/effects.js +0 -640
  108. data/node_modules/jquery/src/event/ajax.js +0 -20
  109. data/node_modules/jquery/src/event/alias.js +0 -25
  110. data/node_modules/jquery/src/event/support.js +0 -28
  111. data/node_modules/jquery/src/event.js +0 -1134
  112. data/node_modules/jquery/src/exports/amd.js +0 -24
  113. data/node_modules/jquery/src/exports/global.js +0 -26
  114. data/node_modules/jquery/src/intro.js +0 -44
  115. data/node_modules/jquery/src/jquery.js +0 -37
  116. data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -21
  117. data/node_modules/jquery/src/manipulation/buildFragment.js +0 -157
  118. data/node_modules/jquery/src/manipulation/createSafeFragment.js +0 -20
  119. data/node_modules/jquery/src/manipulation/getAll.js +0 -33
  120. data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -19
  121. data/node_modules/jquery/src/manipulation/support.js +0 -72
  122. data/node_modules/jquery/src/manipulation/var/nodeNames.js +0 -5
  123. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -3
  124. data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +0 -3
  125. data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -3
  126. data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -3
  127. data/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  128. data/node_modules/jquery/src/manipulation.js +0 -585
  129. data/node_modules/jquery/src/offset.js +0 -219
  130. data/node_modules/jquery/src/outro.js +0 -2
  131. data/node_modules/jquery/src/queue/delay.js +0 -22
  132. data/node_modules/jquery/src/queue.js +0 -144
  133. data/node_modules/jquery/src/selector-sizzle.js +0 -14
  134. data/node_modules/jquery/src/selector.js +0 -1
  135. data/node_modules/jquery/src/serialize.js +0 -125
  136. data/node_modules/jquery/src/support.js +0 -63
  137. data/node_modules/jquery/src/traversing/findFilter.js +0 -100
  138. data/node_modules/jquery/src/traversing/var/dir.js +0 -20
  139. data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -6
  140. data/node_modules/jquery/src/traversing/var/siblings.js +0 -15
  141. data/node_modules/jquery/src/traversing.js +0 -179
  142. data/node_modules/jquery/src/var/class2type.js +0 -5
  143. data/node_modules/jquery/src/var/concat.js +0 -5
  144. data/node_modules/jquery/src/var/deletedIds.js +0 -3
  145. data/node_modules/jquery/src/var/document.js +0 -3
  146. data/node_modules/jquery/src/var/documentElement.js +0 -5
  147. data/node_modules/jquery/src/var/hasOwn.js +0 -5
  148. data/node_modules/jquery/src/var/indexOf.js +0 -5
  149. data/node_modules/jquery/src/var/pnum.js +0 -3
  150. data/node_modules/jquery/src/var/push.js +0 -5
  151. data/node_modules/jquery/src/var/rcssNum.js +0 -7
  152. data/node_modules/jquery/src/var/rnotwhite.js +0 -3
  153. data/node_modules/jquery/src/var/slice.js +0 -5
  154. data/node_modules/jquery/src/var/support.js +0 -5
  155. data/node_modules/jquery/src/var/toString.js +0 -5
  156. data/node_modules/jquery/src/wrap.js +0 -77
@@ -1,219 +0,0 @@
1
- define( [
2
- "./core",
3
- "./core/access",
4
- "./var/document",
5
- "./var/documentElement",
6
- "./css/var/rnumnonpx",
7
- "./css/curCSS",
8
- "./css/addGetHookIf",
9
- "./css/support",
10
-
11
- "./core/init",
12
- "./css",
13
- "./selector" // contains
14
- ], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) {
15
-
16
- // BuildExclude
17
- curCSS = curCSS.curCSS;
18
-
19
- /**
20
- * Gets a window from an element
21
- */
22
- function getWindow( elem ) {
23
- return jQuery.isWindow( elem ) ?
24
- elem :
25
- elem.nodeType === 9 ?
26
- elem.defaultView || elem.parentWindow :
27
- false;
28
- }
29
-
30
- jQuery.offset = {
31
- setOffset: function( elem, options, i ) {
32
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
33
- position = jQuery.css( elem, "position" ),
34
- curElem = jQuery( elem ),
35
- props = {};
36
-
37
- // set position first, in-case top/left are set even on static elem
38
- if ( position === "static" ) {
39
- elem.style.position = "relative";
40
- }
41
-
42
- curOffset = curElem.offset();
43
- curCSSTop = jQuery.css( elem, "top" );
44
- curCSSLeft = jQuery.css( elem, "left" );
45
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
46
- jQuery.inArray( "auto", [ curCSSTop, curCSSLeft ] ) > -1;
47
-
48
- // need to be able to calculate position if either top or left
49
- // is auto and position is either absolute or fixed
50
- if ( calculatePosition ) {
51
- curPosition = curElem.position();
52
- curTop = curPosition.top;
53
- curLeft = curPosition.left;
54
- } else {
55
- curTop = parseFloat( curCSSTop ) || 0;
56
- curLeft = parseFloat( curCSSLeft ) || 0;
57
- }
58
-
59
- if ( jQuery.isFunction( options ) ) {
60
-
61
- // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
62
- options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
63
- }
64
-
65
- if ( options.top != null ) {
66
- props.top = ( options.top - curOffset.top ) + curTop;
67
- }
68
- if ( options.left != null ) {
69
- props.left = ( options.left - curOffset.left ) + curLeft;
70
- }
71
-
72
- if ( "using" in options ) {
73
- options.using.call( elem, props );
74
- } else {
75
- curElem.css( props );
76
- }
77
- }
78
- };
79
-
80
- jQuery.fn.extend( {
81
- offset: function( options ) {
82
- if ( arguments.length ) {
83
- return options === undefined ?
84
- this :
85
- this.each( function( i ) {
86
- jQuery.offset.setOffset( this, options, i );
87
- } );
88
- }
89
-
90
- var docElem, win,
91
- box = { top: 0, left: 0 },
92
- elem = this[ 0 ],
93
- doc = elem && elem.ownerDocument;
94
-
95
- if ( !doc ) {
96
- return;
97
- }
98
-
99
- docElem = doc.documentElement;
100
-
101
- // Make sure it's not a disconnected DOM node
102
- if ( !jQuery.contains( docElem, elem ) ) {
103
- return box;
104
- }
105
-
106
- // If we don't have gBCR, just use 0,0 rather than error
107
- // BlackBerry 5, iOS 3 (original iPhone)
108
- if ( typeof elem.getBoundingClientRect !== "undefined" ) {
109
- box = elem.getBoundingClientRect();
110
- }
111
- win = getWindow( doc );
112
- return {
113
- top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
114
- left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
115
- };
116
- },
117
-
118
- position: function() {
119
- if ( !this[ 0 ] ) {
120
- return;
121
- }
122
-
123
- var offsetParent, offset,
124
- parentOffset = { top: 0, left: 0 },
125
- elem = this[ 0 ];
126
-
127
- // Fixed elements are offset from window (parentOffset = {top:0, left: 0},
128
- // because it is its only offset parent
129
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
130
-
131
- // we assume that getBoundingClientRect is available when computed position is fixed
132
- offset = elem.getBoundingClientRect();
133
- } else {
134
-
135
- // Get *real* offsetParent
136
- offsetParent = this.offsetParent();
137
-
138
- // Get correct offsets
139
- offset = this.offset();
140
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
141
- parentOffset = offsetParent.offset();
142
- }
143
-
144
- // Add offsetParent borders
145
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
146
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
147
- }
148
-
149
- // Subtract parent offsets and element margins
150
- // note: when an element has margin: auto the offsetLeft and marginLeft
151
- // are the same in Safari causing offset.left to incorrectly be 0
152
- return {
153
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
154
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
155
- };
156
- },
157
-
158
- offsetParent: function() {
159
- return this.map( function() {
160
- var offsetParent = this.offsetParent;
161
-
162
- while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) &&
163
- jQuery.css( offsetParent, "position" ) === "static" ) ) {
164
- offsetParent = offsetParent.offsetParent;
165
- }
166
- return offsetParent || documentElement;
167
- } );
168
- }
169
- } );
170
-
171
- // Create scrollLeft and scrollTop methods
172
- jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
173
- var top = /Y/.test( prop );
174
-
175
- jQuery.fn[ method ] = function( val ) {
176
- return access( this, function( elem, method, val ) {
177
- var win = getWindow( elem );
178
-
179
- if ( val === undefined ) {
180
- return win ? ( prop in win ) ? win[ prop ] :
181
- win.document.documentElement[ method ] :
182
- elem[ method ];
183
- }
184
-
185
- if ( win ) {
186
- win.scrollTo(
187
- !top ? val : jQuery( win ).scrollLeft(),
188
- top ? val : jQuery( win ).scrollTop()
189
- );
190
-
191
- } else {
192
- elem[ method ] = val;
193
- }
194
- }, method, val, arguments.length, null );
195
- };
196
- } );
197
-
198
- // Support: Safari<7-8+, Chrome<37-44+
199
- // Add the top/left cssHooks using jQuery.fn.position
200
- // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
201
- // getComputedStyle returns percent when specified for top/left/bottom/right
202
- // rather than make the css module depend on the offset module, we just check for it here
203
- jQuery.each( [ "top", "left" ], function( i, prop ) {
204
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
205
- function( elem, computed ) {
206
- if ( computed ) {
207
- computed = curCSS( elem, prop );
208
-
209
- // if curCSS returns percentage, fallback to offset
210
- return rnumnonpx.test( computed ) ?
211
- jQuery( elem ).position()[ prop ] + "px" :
212
- computed;
213
- }
214
- }
215
- );
216
- } );
217
-
218
- return jQuery;
219
- } );
@@ -1,2 +0,0 @@
1
- return jQuery;
2
- }));
@@ -1,22 +0,0 @@
1
- define( [
2
- "../core",
3
- "../queue",
4
- "../effects" // Delay is optional because of this dependency
5
- ], function( jQuery ) {
6
-
7
- // Based off of the plugin by Clint Helfers, with permission.
8
- // http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
9
- jQuery.fn.delay = function( time, type ) {
10
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
11
- type = type || "fx";
12
-
13
- return this.queue( type, function( next, hooks ) {
14
- var timeout = window.setTimeout( next, time );
15
- hooks.stop = function() {
16
- window.clearTimeout( timeout );
17
- };
18
- } );
19
- };
20
-
21
- return jQuery.fn.delay;
22
- } );
@@ -1,144 +0,0 @@
1
- define( [
2
- "./core",
3
- "./deferred",
4
- "./callbacks"
5
- ], function( jQuery ) {
6
-
7
- jQuery.extend( {
8
- queue: function( elem, type, data ) {
9
- var queue;
10
-
11
- if ( elem ) {
12
- type = ( type || "fx" ) + "queue";
13
- queue = jQuery._data( elem, type );
14
-
15
- // Speed up dequeue by getting out quickly if this is just a lookup
16
- if ( data ) {
17
- if ( !queue || jQuery.isArray( data ) ) {
18
- queue = jQuery._data( elem, type, jQuery.makeArray( data ) );
19
- } else {
20
- queue.push( data );
21
- }
22
- }
23
- return queue || [];
24
- }
25
- },
26
-
27
- dequeue: function( elem, type ) {
28
- type = type || "fx";
29
-
30
- var queue = jQuery.queue( elem, type ),
31
- startLength = queue.length,
32
- fn = queue.shift(),
33
- hooks = jQuery._queueHooks( elem, type ),
34
- next = function() {
35
- jQuery.dequeue( elem, type );
36
- };
37
-
38
- // If the fx queue is dequeued, always remove the progress sentinel
39
- if ( fn === "inprogress" ) {
40
- fn = queue.shift();
41
- startLength--;
42
- }
43
-
44
- if ( fn ) {
45
-
46
- // Add a progress sentinel to prevent the fx queue from being
47
- // automatically dequeued
48
- if ( type === "fx" ) {
49
- queue.unshift( "inprogress" );
50
- }
51
-
52
- // clear up the last queue stop function
53
- delete hooks.stop;
54
- fn.call( elem, next, hooks );
55
- }
56
-
57
- if ( !startLength && hooks ) {
58
- hooks.empty.fire();
59
- }
60
- },
61
-
62
- // not intended for public consumption - generates a queueHooks object,
63
- // or returns the current one
64
- _queueHooks: function( elem, type ) {
65
- var key = type + "queueHooks";
66
- return jQuery._data( elem, key ) || jQuery._data( elem, key, {
67
- empty: jQuery.Callbacks( "once memory" ).add( function() {
68
- jQuery._removeData( elem, type + "queue" );
69
- jQuery._removeData( elem, key );
70
- } )
71
- } );
72
- }
73
- } );
74
-
75
- jQuery.fn.extend( {
76
- queue: function( type, data ) {
77
- var setter = 2;
78
-
79
- if ( typeof type !== "string" ) {
80
- data = type;
81
- type = "fx";
82
- setter--;
83
- }
84
-
85
- if ( arguments.length < setter ) {
86
- return jQuery.queue( this[ 0 ], type );
87
- }
88
-
89
- return data === undefined ?
90
- this :
91
- this.each( function() {
92
- var queue = jQuery.queue( this, type, data );
93
-
94
- // ensure a hooks for this queue
95
- jQuery._queueHooks( this, type );
96
-
97
- if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
98
- jQuery.dequeue( this, type );
99
- }
100
- } );
101
- },
102
- dequeue: function( type ) {
103
- return this.each( function() {
104
- jQuery.dequeue( this, type );
105
- } );
106
- },
107
- clearQueue: function( type ) {
108
- return this.queue( type || "fx", [] );
109
- },
110
-
111
- // Get a promise resolved when queues of a certain type
112
- // are emptied (fx is the type by default)
113
- promise: function( type, obj ) {
114
- var tmp,
115
- count = 1,
116
- defer = jQuery.Deferred(),
117
- elements = this,
118
- i = this.length,
119
- resolve = function() {
120
- if ( !( --count ) ) {
121
- defer.resolveWith( elements, [ elements ] );
122
- }
123
- };
124
-
125
- if ( typeof type !== "string" ) {
126
- obj = type;
127
- type = undefined;
128
- }
129
- type = type || "fx";
130
-
131
- while ( i-- ) {
132
- tmp = jQuery._data( elements[ i ], type + "queueHooks" );
133
- if ( tmp && tmp.empty ) {
134
- count++;
135
- tmp.empty.add( resolve );
136
- }
137
- }
138
- resolve();
139
- return defer.promise( obj );
140
- }
141
- } );
142
-
143
- return jQuery;
144
- } );
@@ -1,14 +0,0 @@
1
- define( [
2
- "./core",
3
- "../external/sizzle/dist/sizzle"
4
- ], function( jQuery, Sizzle ) {
5
-
6
- jQuery.find = Sizzle;
7
- jQuery.expr = Sizzle.selectors;
8
- jQuery.expr[ ":" ] = jQuery.expr.pseudos;
9
- jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
10
- jQuery.text = Sizzle.getText;
11
- jQuery.isXMLDoc = Sizzle.isXML;
12
- jQuery.contains = Sizzle.contains;
13
-
14
- } );
@@ -1 +0,0 @@
1
- define( [ "./selector-sizzle" ], function() {} );
@@ -1,125 +0,0 @@
1
- define( [
2
- "./core",
3
- "./manipulation/var/rcheckableType",
4
- "./core/init",
5
- "./traversing", // filter
6
- "./attributes/prop"
7
- ], function( jQuery, rcheckableType ) {
8
-
9
- var r20 = /%20/g,
10
- rbracket = /\[\]$/,
11
- rCRLF = /\r?\n/g,
12
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
13
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
14
-
15
- function buildParams( prefix, obj, traditional, add ) {
16
- var name;
17
-
18
- if ( jQuery.isArray( obj ) ) {
19
-
20
- // Serialize array item.
21
- jQuery.each( obj, function( i, v ) {
22
- if ( traditional || rbracket.test( prefix ) ) {
23
-
24
- // Treat each array item as a scalar.
25
- add( prefix, v );
26
-
27
- } else {
28
-
29
- // Item is non-scalar (array or object), encode its numeric index.
30
- buildParams(
31
- prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
32
- v,
33
- traditional,
34
- add
35
- );
36
- }
37
- } );
38
-
39
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
40
-
41
- // Serialize object item.
42
- for ( name in obj ) {
43
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
44
- }
45
-
46
- } else {
47
-
48
- // Serialize scalar item.
49
- add( prefix, obj );
50
- }
51
- }
52
-
53
- // Serialize an array of form elements or a set of
54
- // key/values into a query string
55
- jQuery.param = function( a, traditional ) {
56
- var prefix,
57
- s = [],
58
- add = function( key, value ) {
59
-
60
- // If value is a function, invoke it and return its value
61
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
62
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
63
- };
64
-
65
- // Set traditional to true for jQuery <= 1.3.2 behavior.
66
- if ( traditional === undefined ) {
67
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
68
- }
69
-
70
- // If an array was passed in, assume that it is an array of form elements.
71
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
72
-
73
- // Serialize the form elements
74
- jQuery.each( a, function() {
75
- add( this.name, this.value );
76
- } );
77
-
78
- } else {
79
-
80
- // If traditional, encode the "old" way (the way 1.3.2 or older
81
- // did it), otherwise encode params recursively.
82
- for ( prefix in a ) {
83
- buildParams( prefix, a[ prefix ], traditional, add );
84
- }
85
- }
86
-
87
- // Return the resulting serialization
88
- return s.join( "&" ).replace( r20, "+" );
89
- };
90
-
91
- jQuery.fn.extend( {
92
- serialize: function() {
93
- return jQuery.param( this.serializeArray() );
94
- },
95
- serializeArray: function() {
96
- return this.map( function() {
97
-
98
- // Can add propHook for "elements" to filter or add form elements
99
- var elements = jQuery.prop( this, "elements" );
100
- return elements ? jQuery.makeArray( elements ) : this;
101
- } )
102
- .filter( function() {
103
- var type = this.type;
104
-
105
- // Use .is(":disabled") so that fieldset[disabled] works
106
- return this.name && !jQuery( this ).is( ":disabled" ) &&
107
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
108
- ( this.checked || !rcheckableType.test( type ) );
109
- } )
110
- .map( function( i, elem ) {
111
- var val = jQuery( this ).val();
112
-
113
- return val == null ?
114
- null :
115
- jQuery.isArray( val ) ?
116
- jQuery.map( val, function( val ) {
117
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
118
- } ) :
119
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
120
- } ).get();
121
- }
122
- } );
123
-
124
- return jQuery;
125
- } );
@@ -1,63 +0,0 @@
1
- define( [
2
- "./core",
3
- "./var/support",
4
- "./var/document",
5
- "./core/init", // Needed for hasOwn support test
6
- // This is listed as a dependency for build order, but it's still optional in builds
7
- "./core/ready"
8
- ], function( jQuery, support, document ) {
9
-
10
- // Support: IE<9
11
- // Iteration over object's inherited properties before its own
12
- var i;
13
- for ( i in jQuery( support ) ) {
14
- break;
15
- }
16
- support.ownFirst = i === "0";
17
-
18
- // Note: most support tests are defined in their respective modules.
19
- // false until the test is run
20
- support.inlineBlockNeedsLayout = false;
21
-
22
- // Execute ASAP in case we need to set body.style.zoom
23
- jQuery( function() {
24
-
25
- // Minified: var a,b,c,d
26
- var val, div, body, container;
27
-
28
- body = document.getElementsByTagName( "body" )[ 0 ];
29
- if ( !body || !body.style ) {
30
-
31
- // Return for frameset docs that don't have a body
32
- return;
33
- }
34
-
35
- // Setup
36
- div = document.createElement( "div" );
37
- container = document.createElement( "div" );
38
- container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
39
- body.appendChild( container ).appendChild( div );
40
-
41
- if ( typeof div.style.zoom !== "undefined" ) {
42
-
43
- // Support: IE<8
44
- // Check if natively block-level elements act like inline-block
45
- // elements when setting their display to 'inline' and giving
46
- // them layout
47
- div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
48
-
49
- support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
50
- if ( val ) {
51
-
52
- // Prevent IE 6 from affecting layout for positioned elements #11048
53
- // Prevent IE from shrinking the body in IE 7 mode #12869
54
- // Support: IE<8
55
- body.style.zoom = 1;
56
- }
57
- }
58
-
59
- body.removeChild( container );
60
- } );
61
-
62
- return support;
63
- } );
@@ -1,100 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/indexOf",
4
- "./var/rneedsContext",
5
- "../selector"
6
- ], function( jQuery, indexOf, rneedsContext ) {
7
-
8
- var risSimple = /^.[^:#\[\.,]*$/;
9
-
10
- // Implement the identical functionality for filter and not
11
- function winnow( elements, qualifier, not ) {
12
- if ( jQuery.isFunction( qualifier ) ) {
13
- return jQuery.grep( elements, function( elem, i ) {
14
- /* jshint -W018 */
15
- return !!qualifier.call( elem, i, elem ) !== not;
16
- } );
17
-
18
- }
19
-
20
- if ( qualifier.nodeType ) {
21
- return jQuery.grep( elements, function( elem ) {
22
- return ( elem === qualifier ) !== not;
23
- } );
24
-
25
- }
26
-
27
- if ( typeof qualifier === "string" ) {
28
- if ( risSimple.test( qualifier ) ) {
29
- return jQuery.filter( qualifier, elements, not );
30
- }
31
-
32
- qualifier = jQuery.filter( qualifier, elements );
33
- }
34
-
35
- return jQuery.grep( elements, function( elem ) {
36
- return ( jQuery.inArray( elem, qualifier ) > -1 ) !== not;
37
- } );
38
- }
39
-
40
- jQuery.filter = function( expr, elems, not ) {
41
- var elem = elems[ 0 ];
42
-
43
- if ( not ) {
44
- expr = ":not(" + expr + ")";
45
- }
46
-
47
- return elems.length === 1 && elem.nodeType === 1 ?
48
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
49
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
50
- return elem.nodeType === 1;
51
- } ) );
52
- };
53
-
54
- jQuery.fn.extend( {
55
- find: function( selector ) {
56
- var i,
57
- ret = [],
58
- self = this,
59
- len = self.length;
60
-
61
- if ( typeof selector !== "string" ) {
62
- return this.pushStack( jQuery( selector ).filter( function() {
63
- for ( i = 0; i < len; i++ ) {
64
- if ( jQuery.contains( self[ i ], this ) ) {
65
- return true;
66
- }
67
- }
68
- } ) );
69
- }
70
-
71
- for ( i = 0; i < len; i++ ) {
72
- jQuery.find( selector, self[ i ], ret );
73
- }
74
-
75
- // Needed because $( selector, context ) becomes $( context ).find( selector )
76
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
77
- ret.selector = this.selector ? this.selector + " " + selector : selector;
78
- return ret;
79
- },
80
- filter: function( selector ) {
81
- return this.pushStack( winnow( this, selector || [], false ) );
82
- },
83
- not: function( selector ) {
84
- return this.pushStack( winnow( this, selector || [], true ) );
85
- },
86
- is: function( selector ) {
87
- return !!winnow(
88
- this,
89
-
90
- // If this is a positional/relative selector, check membership in the returned set
91
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
92
- typeof selector === "string" && rneedsContext.test( selector ) ?
93
- jQuery( selector ) :
94
- selector || [],
95
- false
96
- ).length;
97
- }
98
- } );
99
-
100
- } );