trusty-cms 4.3.4 → 4.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +8 -6
  3. data/config/database.yml +2 -2
  4. data/coverage/index.html +1 -1
  5. data/lib/trusty_cms/deprecation.rb +13 -0
  6. data/lib/trusty_cms.rb +1 -1
  7. data/node_modules/path-parse/index.js +17 -35
  8. data/node_modules/path-parse/package.json +1 -1
  9. data/node_modules/postcss/CHANGELOG.md +27 -0
  10. data/node_modules/postcss/README.md +21 -0
  11. data/node_modules/postcss/lib/at-rule.js +2 -4
  12. data/node_modules/postcss/lib/comment.js +2 -4
  13. data/node_modules/postcss/lib/container.js +27 -122
  14. data/node_modules/postcss/lib/css-syntax-error.js +5 -7
  15. data/node_modules/postcss/lib/declaration.js +2 -4
  16. data/node_modules/postcss/lib/input.js +3 -5
  17. data/node_modules/postcss/lib/lazy-result.js +10 -17
  18. data/node_modules/postcss/lib/map-generator.js +10 -17
  19. data/node_modules/postcss/lib/node.js +2 -4
  20. data/node_modules/postcss/lib/parser.js +2 -4
  21. data/node_modules/postcss/lib/postcss.d.ts +25 -19
  22. data/node_modules/postcss/lib/previous-map.js +17 -6
  23. data/node_modules/postcss/lib/processor.js +16 -15
  24. data/node_modules/postcss/lib/result.js +2 -4
  25. data/node_modules/postcss/lib/root.js +10 -17
  26. data/node_modules/postcss/lib/rule.js +2 -4
  27. data/node_modules/postcss/lib/stringifier.js +2 -4
  28. data/node_modules/postcss/lib/warning.js +2 -4
  29. data/node_modules/postcss/package.json +16 -12
  30. data/spec/dummy/log/test.log +542 -443
  31. data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  32. data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
  33. data/trusty-cms-5.0.0.gem +0 -0
  34. metadata +4 -306
  35. data/node_modules/path-parse/test.js +0 -77
  36. data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
  37. data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
  38. data/node_modules/postcss/docs/api/index.html +0 -22716
  39. data/spec/dummy/log/development.log +0 -158
  40. data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
  41. data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
  42. data/spec/dummy/node_modules/jquery/README.md +0 -62
  43. data/spec/dummy/node_modules/jquery/bower.json +0 -14
  44. data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
  45. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
  46. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
  47. data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
  48. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
  49. data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
  50. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  51. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
  52. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  53. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  54. data/spec/dummy/node_modules/jquery/package.json +0 -117
  55. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
  56. data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
  57. data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
  58. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
  59. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  60. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
  61. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
  62. data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
  63. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
  64. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
  65. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
  66. data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
  67. data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
  68. data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
  69. data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
  70. data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
  71. data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
  72. data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
  73. data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
  74. data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
  75. data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
  76. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
  77. data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
  78. data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
  79. data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
  80. data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
  81. data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
  82. data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
  83. data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
  84. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
  85. data/spec/dummy/node_modules/jquery/src/core.js +0 -400
  86. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
  87. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
  88. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
  89. data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
  90. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  91. data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
  92. data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
  93. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
  94. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
  95. data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  96. data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
  97. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
  98. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
  99. data/spec/dummy/node_modules/jquery/src/css.js +0 -494
  100. data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
  101. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
  102. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
  103. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
  104. data/spec/dummy/node_modules/jquery/src/data.js +0 -180
  105. data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
  106. data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
  107. data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
  108. data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
  109. data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
  110. data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
  111. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
  112. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
  113. data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
  114. data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
  115. data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
  116. data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
  117. data/spec/dummy/node_modules/jquery/src/event.js +0 -892
  118. data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
  119. data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
  120. data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
  121. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
  122. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
  123. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
  124. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
  125. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
  126. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
  127. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
  128. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  129. data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
  130. data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
  131. data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
  132. data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
  133. data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
  134. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
  135. data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
  136. data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
  137. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
  138. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
  139. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
  140. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
  141. data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
  142. data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
  143. data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
  144. data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
  145. data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
  146. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
  147. data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
  148. data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
  149. data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
  150. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
  151. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
  152. data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
  153. data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
  154. data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
  155. data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
  156. data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
  157. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
  158. data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
  159. data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
  160. data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
  161. data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
  162. data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
  163. data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
  164. data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
  165. data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
  166. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
  167. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
  168. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
  169. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
  170. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
  171. data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
  172. data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
  173. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
  174. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
  175. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
  176. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
  177. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
  178. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
  179. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
  180. data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
  181. data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
  182. data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
  183. data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
  184. data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
  185. data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
  186. data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
  187. data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
  188. data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,236 +0,0 @@
1
- define( [
2
- "./core",
3
- "./core/toType",
4
- "./var/isFunction",
5
- "./var/rnothtmlwhite"
6
- ], function( jQuery, toType, isFunction, rnothtmlwhite ) {
7
-
8
- "use strict";
9
-
10
- // Convert String-formatted options into Object-formatted ones
11
- function createOptions( options ) {
12
- var object = {};
13
- jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
14
- object[ flag ] = true;
15
- } );
16
- return object;
17
- }
18
-
19
- /*
20
- * Create a callback list using the following parameters:
21
- *
22
- * options: an optional list of space-separated options that will change how
23
- * the callback list behaves or a more traditional option object
24
- *
25
- * By default a callback list will act like an event callback list and can be
26
- * "fired" multiple times.
27
- *
28
- * Possible options:
29
- *
30
- * once: will ensure the callback list can only be fired once (like a Deferred)
31
- *
32
- * memory: will keep track of previous values and will call any callback added
33
- * after the list has been fired right away with the latest "memorized"
34
- * values (like a Deferred)
35
- *
36
- * unique: will ensure a callback can only be added once (no duplicate in the list)
37
- *
38
- * stopOnFalse: interrupt callings when a callback returns false
39
- *
40
- */
41
- jQuery.Callbacks = function( options ) {
42
-
43
- // Convert options from String-formatted to Object-formatted if needed
44
- // (we check in cache first)
45
- options = typeof options === "string" ?
46
- createOptions( options ) :
47
- jQuery.extend( {}, options );
48
-
49
- var // Flag to know if list is currently firing
50
- firing,
51
-
52
- // Last fire value for non-forgettable lists
53
- memory,
54
-
55
- // Flag to know if list was already fired
56
- fired,
57
-
58
- // Flag to prevent firing
59
- locked,
60
-
61
- // Actual callback list
62
- list = [],
63
-
64
- // Queue of execution data for repeatable lists
65
- queue = [],
66
-
67
- // Index of currently firing callback (modified by add/remove as needed)
68
- firingIndex = -1,
69
-
70
- // Fire callbacks
71
- fire = function() {
72
-
73
- // Enforce single-firing
74
- locked = locked || options.once;
75
-
76
- // Execute callbacks for all pending executions,
77
- // respecting firingIndex overrides and runtime changes
78
- fired = firing = true;
79
- for ( ; queue.length; firingIndex = -1 ) {
80
- memory = queue.shift();
81
- while ( ++firingIndex < list.length ) {
82
-
83
- // Run callback and check for early termination
84
- if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
85
- options.stopOnFalse ) {
86
-
87
- // Jump to end and forget the data so .add doesn't re-fire
88
- firingIndex = list.length;
89
- memory = false;
90
- }
91
- }
92
- }
93
-
94
- // Forget the data if we're done with it
95
- if ( !options.memory ) {
96
- memory = false;
97
- }
98
-
99
- firing = false;
100
-
101
- // Clean up if we're done firing for good
102
- if ( locked ) {
103
-
104
- // Keep an empty list if we have data for future add calls
105
- if ( memory ) {
106
- list = [];
107
-
108
- // Otherwise, this object is spent
109
- } else {
110
- list = "";
111
- }
112
- }
113
- },
114
-
115
- // Actual Callbacks object
116
- self = {
117
-
118
- // Add a callback or a collection of callbacks to the list
119
- add: function() {
120
- if ( list ) {
121
-
122
- // If we have memory from a past run, we should fire after adding
123
- if ( memory && !firing ) {
124
- firingIndex = list.length - 1;
125
- queue.push( memory );
126
- }
127
-
128
- ( function add( args ) {
129
- jQuery.each( args, function( _, arg ) {
130
- if ( isFunction( arg ) ) {
131
- if ( !options.unique || !self.has( arg ) ) {
132
- list.push( arg );
133
- }
134
- } else if ( arg && arg.length && toType( arg ) !== "string" ) {
135
-
136
- // Inspect recursively
137
- add( arg );
138
- }
139
- } );
140
- } )( arguments );
141
-
142
- if ( memory && !firing ) {
143
- fire();
144
- }
145
- }
146
- return this;
147
- },
148
-
149
- // Remove a callback from the list
150
- remove: function() {
151
- jQuery.each( arguments, function( _, arg ) {
152
- var index;
153
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
154
- list.splice( index, 1 );
155
-
156
- // Handle firing indexes
157
- if ( index <= firingIndex ) {
158
- firingIndex--;
159
- }
160
- }
161
- } );
162
- return this;
163
- },
164
-
165
- // Check if a given callback is in the list.
166
- // If no argument is given, return whether or not list has callbacks attached.
167
- has: function( fn ) {
168
- return fn ?
169
- jQuery.inArray( fn, list ) > -1 :
170
- list.length > 0;
171
- },
172
-
173
- // Remove all callbacks from the list
174
- empty: function() {
175
- if ( list ) {
176
- list = [];
177
- }
178
- return this;
179
- },
180
-
181
- // Disable .fire and .add
182
- // Abort any current/pending executions
183
- // Clear all callbacks and values
184
- disable: function() {
185
- locked = queue = [];
186
- list = memory = "";
187
- return this;
188
- },
189
- disabled: function() {
190
- return !list;
191
- },
192
-
193
- // Disable .fire
194
- // Also disable .add unless we have memory (since it would have no effect)
195
- // Abort any pending executions
196
- lock: function() {
197
- locked = queue = [];
198
- if ( !memory && !firing ) {
199
- list = memory = "";
200
- }
201
- return this;
202
- },
203
- locked: function() {
204
- return !!locked;
205
- },
206
-
207
- // Call all callbacks with the given context and arguments
208
- fireWith: function( context, args ) {
209
- if ( !locked ) {
210
- args = args || [];
211
- args = [ context, args.slice ? args.slice() : args ];
212
- queue.push( args );
213
- if ( !firing ) {
214
- fire();
215
- }
216
- }
217
- return this;
218
- },
219
-
220
- // Call all the callbacks with the given arguments
221
- fire: function() {
222
- self.fireWith( this, arguments );
223
- return this;
224
- },
225
-
226
- // To know if the callbacks have already been called at least once
227
- fired: function() {
228
- return !!fired;
229
- }
230
- };
231
-
232
- return self;
233
- };
234
-
235
- return jQuery;
236
- } );
@@ -1,43 +0,0 @@
1
- define( [
2
- "../var/document"
3
- ], function( document ) {
4
- "use strict";
5
-
6
- var preservedScriptAttributes = {
7
- type: true,
8
- src: true,
9
- nonce: true,
10
- noModule: true
11
- };
12
-
13
- function DOMEval( code, node, doc ) {
14
- doc = doc || document;
15
-
16
- var i, val,
17
- script = doc.createElement( "script" );
18
-
19
- script.text = code;
20
- if ( node ) {
21
- for ( i in preservedScriptAttributes ) {
22
-
23
- // Support: Firefox 64+, Edge 18+
24
- // Some browsers don't support the "nonce" property on scripts.
25
- // On the other hand, just using `getAttribute` is not enough as
26
- // the `nonce` attribute is reset to an empty string whenever it
27
- // becomes browsing-context connected.
28
- // See https://github.com/whatwg/html/issues/2369
29
- // See https://html.spec.whatwg.org/#nonce-attributes
30
- // The `node.getAttribute` check was added for the sake of
31
- // `jQuery.globalEval` so that it can fake a nonce-containing node
32
- // via an object.
33
- val = node[ i ] || node.getAttribute && node.getAttribute( i );
34
- if ( val ) {
35
- script.setAttribute( i, val );
36
- }
37
- }
38
- }
39
- doc.head.appendChild( script ).parentNode.removeChild( script );
40
- }
41
-
42
- return DOMEval;
43
- } );
@@ -1,72 +0,0 @@
1
- define( [
2
- "../core",
3
- "../core/toType",
4
- "../var/isFunction"
5
- ], function( jQuery, toType, isFunction ) {
6
-
7
- "use strict";
8
-
9
- // Multifunctional method to get and set values of a collection
10
- // The value/s can optionally be executed if it's a function
11
- var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
12
- var i = 0,
13
- len = elems.length,
14
- bulk = key == null;
15
-
16
- // Sets many values
17
- if ( toType( key ) === "object" ) {
18
- chainable = true;
19
- for ( i in key ) {
20
- access( elems, fn, i, key[ i ], true, emptyGet, raw );
21
- }
22
-
23
- // Sets one value
24
- } else if ( value !== undefined ) {
25
- chainable = true;
26
-
27
- if ( !isFunction( value ) ) {
28
- raw = true;
29
- }
30
-
31
- if ( bulk ) {
32
-
33
- // Bulk operations run against the entire set
34
- if ( raw ) {
35
- fn.call( elems, value );
36
- fn = null;
37
-
38
- // ...except when executing function values
39
- } else {
40
- bulk = fn;
41
- fn = function( elem, _key, value ) {
42
- return bulk.call( jQuery( elem ), value );
43
- };
44
- }
45
- }
46
-
47
- if ( fn ) {
48
- for ( ; i < len; i++ ) {
49
- fn(
50
- elems[ i ], key, raw ?
51
- value :
52
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
53
- );
54
- }
55
- }
56
- }
57
-
58
- if ( chainable ) {
59
- return elems;
60
- }
61
-
62
- // Gets
63
- if ( bulk ) {
64
- return fn.call( elems );
65
- }
66
-
67
- return len ? fn( elems[ 0 ], key ) : emptyGet;
68
- };
69
-
70
- return access;
71
-
72
- } );
@@ -1,23 +0,0 @@
1
- define( [], function() {
2
-
3
- "use strict";
4
-
5
- // Matches dashed string for camelizing
6
- var rmsPrefix = /^-ms-/,
7
- rdashAlpha = /-([a-z])/g;
8
-
9
- // Used by camelCase as callback to replace()
10
- function fcamelCase( _all, letter ) {
11
- return letter.toUpperCase();
12
- }
13
-
14
- // Convert dashed to camelCase; used by the css and data modules
15
- // Support: IE <=9 - 11, Edge 12 - 15
16
- // Microsoft forgot to hump their vendor prefix (#9572)
17
- function camelCase( string ) {
18
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
19
- }
20
-
21
- return camelCase;
22
-
23
- } );
@@ -1,129 +0,0 @@
1
- // Initialize a jQuery object
2
- define( [
3
- "../core",
4
- "../var/document",
5
- "../var/isFunction",
6
- "./var/rsingleTag",
7
-
8
- "../traversing/findFilter"
9
- ], function( jQuery, document, isFunction, rsingleTag ) {
10
-
11
- "use strict";
12
-
13
- // A central reference to the root jQuery(document)
14
- var rootjQuery,
15
-
16
- // A simple way to check for HTML strings
17
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
18
- // Strict HTML recognition (#11290: must start with <)
19
- // Shortcut simple #id case for speed
20
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
21
-
22
- init = jQuery.fn.init = function( selector, context, root ) {
23
- var match, elem;
24
-
25
- // HANDLE: $(""), $(null), $(undefined), $(false)
26
- if ( !selector ) {
27
- return this;
28
- }
29
-
30
- // Method init() accepts an alternate rootjQuery
31
- // so migrate can support jQuery.sub (gh-2101)
32
- root = root || rootjQuery;
33
-
34
- // Handle HTML strings
35
- if ( typeof selector === "string" ) {
36
- if ( selector[ 0 ] === "<" &&
37
- selector[ selector.length - 1 ] === ">" &&
38
- selector.length >= 3 ) {
39
-
40
- // Assume that strings that start and end with <> are HTML and skip the regex check
41
- match = [ null, selector, null ];
42
-
43
- } else {
44
- match = rquickExpr.exec( selector );
45
- }
46
-
47
- // Match html or make sure no context is specified for #id
48
- if ( match && ( match[ 1 ] || !context ) ) {
49
-
50
- // HANDLE: $(html) -> $(array)
51
- if ( match[ 1 ] ) {
52
- context = context instanceof jQuery ? context[ 0 ] : context;
53
-
54
- // Option to run scripts is true for back-compat
55
- // Intentionally let the error be thrown if parseHTML is not present
56
- jQuery.merge( this, jQuery.parseHTML(
57
- match[ 1 ],
58
- context && context.nodeType ? context.ownerDocument || context : document,
59
- true
60
- ) );
61
-
62
- // HANDLE: $(html, props)
63
- if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
64
- for ( match in context ) {
65
-
66
- // Properties of context are called as methods if possible
67
- if ( isFunction( this[ match ] ) ) {
68
- this[ match ]( context[ match ] );
69
-
70
- // ...and otherwise set as attributes
71
- } else {
72
- this.attr( match, context[ match ] );
73
- }
74
- }
75
- }
76
-
77
- return this;
78
-
79
- // HANDLE: $(#id)
80
- } else {
81
- elem = document.getElementById( match[ 2 ] );
82
-
83
- if ( elem ) {
84
-
85
- // Inject the element directly into the jQuery object
86
- this[ 0 ] = elem;
87
- this.length = 1;
88
- }
89
- return this;
90
- }
91
-
92
- // HANDLE: $(expr, $(...))
93
- } else if ( !context || context.jquery ) {
94
- return ( context || root ).find( selector );
95
-
96
- // HANDLE: $(expr, context)
97
- // (which is just equivalent to: $(context).find(expr)
98
- } else {
99
- return this.constructor( context ).find( selector );
100
- }
101
-
102
- // HANDLE: $(DOMElement)
103
- } else if ( selector.nodeType ) {
104
- this[ 0 ] = selector;
105
- this.length = 1;
106
- return this;
107
-
108
- // HANDLE: $(function)
109
- // Shortcut for document ready
110
- } else if ( isFunction( selector ) ) {
111
- return root.ready !== undefined ?
112
- root.ready( selector ) :
113
-
114
- // Execute immediately if ready is not present
115
- selector( jQuery );
116
- }
117
-
118
- return jQuery.makeArray( selector, this );
119
- };
120
-
121
- // Give the init function the jQuery prototype for later instantiation
122
- init.prototype = jQuery.fn;
123
-
124
- // Initialize central reference
125
- rootjQuery = jQuery( document );
126
-
127
- return init;
128
-
129
- } );
@@ -1,26 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/documentElement",
4
- "../selector" // jQuery.contains
5
- ], function( jQuery, documentElement ) {
6
- "use strict";
7
-
8
- var isAttached = function( elem ) {
9
- return jQuery.contains( elem.ownerDocument, elem );
10
- },
11
- composed = { composed: true };
12
-
13
- // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
14
- // Check attachment across shadow DOM boundaries when possible (gh-3504)
15
- // Support: iOS 10.0-10.2 only
16
- // Early iOS 10 versions support `attachShadow` but not `getRootNode`,
17
- // leading to errors. We need to check for `getRootNode`.
18
- if ( documentElement.getRootNode ) {
19
- isAttached = function( elem ) {
20
- return jQuery.contains( elem.ownerDocument, elem ) ||
21
- elem.getRootNode( composed ) === elem.ownerDocument;
22
- };
23
- }
24
-
25
- return isAttached;
26
- } );
@@ -1,13 +0,0 @@
1
- define( function() {
2
-
3
- "use strict";
4
-
5
- function nodeName( elem, name ) {
6
-
7
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
8
-
9
- };
10
-
11
- return nodeName;
12
-
13
- } );
@@ -1,65 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/document",
4
- "./var/rsingleTag",
5
- "../manipulation/buildFragment",
6
-
7
- // This is the only module that needs core/support
8
- "./support"
9
- ], function( jQuery, document, rsingleTag, buildFragment, support ) {
10
-
11
- "use strict";
12
-
13
- // Argument "data" should be string of html
14
- // context (optional): If specified, the fragment will be created in this context,
15
- // defaults to document
16
- // keepScripts (optional): If true, will include scripts passed in the html string
17
- jQuery.parseHTML = function( data, context, keepScripts ) {
18
- if ( typeof data !== "string" ) {
19
- return [];
20
- }
21
- if ( typeof context === "boolean" ) {
22
- keepScripts = context;
23
- context = false;
24
- }
25
-
26
- var base, parsed, scripts;
27
-
28
- if ( !context ) {
29
-
30
- // Stop scripts or inline event handlers from being executed immediately
31
- // by using document.implementation
32
- if ( support.createHTMLDocument ) {
33
- context = document.implementation.createHTMLDocument( "" );
34
-
35
- // Set the base href for the created document
36
- // so any parsed elements with URLs
37
- // are based on the document's URL (gh-2965)
38
- base = context.createElement( "base" );
39
- base.href = document.location.href;
40
- context.head.appendChild( base );
41
- } else {
42
- context = document;
43
- }
44
- }
45
-
46
- parsed = rsingleTag.exec( data );
47
- scripts = !keepScripts && [];
48
-
49
- // Single tag
50
- if ( parsed ) {
51
- return [ context.createElement( parsed[ 1 ] ) ];
52
- }
53
-
54
- parsed = buildFragment( [ data ], context, scripts );
55
-
56
- if ( scripts && scripts.length ) {
57
- jQuery( scripts ).remove();
58
- }
59
-
60
- return jQuery.merge( [], parsed.childNodes );
61
- };
62
-
63
- return jQuery.parseHTML;
64
-
65
- } );
@@ -1,30 +0,0 @@
1
- define( [
2
- "../core"
3
- ], function( jQuery ) {
4
-
5
- "use strict";
6
-
7
- // Cross-browser xml parsing
8
- jQuery.parseXML = function( data ) {
9
- var xml;
10
- if ( !data || typeof data !== "string" ) {
11
- return null;
12
- }
13
-
14
- // Support: IE 9 - 11 only
15
- // IE throws on parseFromString with invalid input.
16
- try {
17
- xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
18
- } catch ( e ) {
19
- xml = undefined;
20
- }
21
-
22
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
23
- jQuery.error( "Invalid XML: " + data );
24
- }
25
- return xml;
26
- };
27
-
28
- return jQuery.parseXML;
29
-
30
- } );