h2ocube_rails_assets 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/README.md +1 -1
  2. data/h2ocube_rails_assets.gemspec +2 -2
  3. data/lib/h2ocube_rails_assets.rb +1 -4
  4. data/vendor/assets/images/jquery.ui/animated-overlay.gif +0 -0
  5. data/vendor/assets/images/jquery.ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  6. data/vendor/assets/images/jquery.ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  7. data/vendor/assets/images/jquery.ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  8. data/vendor/assets/images/jquery.ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  9. data/vendor/assets/images/jquery.ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  10. data/vendor/assets/images/jquery.ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  11. data/vendor/assets/images/jquery.ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  12. data/vendor/assets/images/jquery.ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  13. data/vendor/assets/images/jquery.ui/ui-icons_222222_256x240.png +0 -0
  14. data/vendor/assets/images/jquery.ui/ui-icons_2e83ff_256x240.png +0 -0
  15. data/vendor/assets/images/jquery.ui/ui-icons_454545_256x240.png +0 -0
  16. data/vendor/assets/images/jquery.ui/ui-icons_888888_256x240.png +0 -0
  17. data/vendor/assets/images/jquery.ui/ui-icons_cd0a0a_256x240.png +0 -0
  18. data/vendor/assets/javascripts/_bootstrap.js +189 -80
  19. data/vendor/assets/javascripts/_jquery.fancybox.js +1983 -0
  20. data/vendor/assets/javascripts/_jquery.fileupload.js +1164 -0
  21. data/vendor/assets/javascripts/_jquery.js +1 -1
  22. data/vendor/assets/javascripts/{jquery.ui/jquery-ui.custom.js → _jquery.ui.js} +3717 -3693
  23. data/vendor/assets/javascripts/_jquery.validate.js +1207 -0
  24. data/vendor/assets/javascripts/_sammy.js +2120 -0
  25. data/vendor/assets/javascripts/jquery/1.9.js +229 -187
  26. data/vendor/assets/javascripts/jquery.cookie.js +29 -11
  27. data/vendor/assets/javascripts/jquery.fancybox.js +2 -1985
  28. data/vendor/assets/javascripts/jquery.fileupload.js +4 -1114
  29. data/vendor/assets/javascripts/jquery.iframe-transport.js +20 -7
  30. data/vendor/assets/javascripts/jquery.ui/jquery.ui.accordion.js +131 -290
  31. data/vendor/assets/javascripts/jquery.ui/jquery.ui.autocomplete.js +43 -37
  32. data/vendor/assets/javascripts/jquery.ui/jquery.ui.button.js +9 -8
  33. data/vendor/assets/javascripts/jquery.ui/jquery.ui.core.js +19 -51
  34. data/vendor/assets/javascripts/jquery.ui/jquery.ui.datepicker.js +1082 -878
  35. data/vendor/assets/javascripts/jquery.ui/jquery.ui.dialog.js +483 -542
  36. data/vendor/assets/javascripts/jquery.ui/jquery.ui.draggable.js +319 -212
  37. data/vendor/assets/javascripts/jquery.ui/jquery.ui.droppable.js +177 -100
  38. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-blind.js +2 -2
  39. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-bounce.js +2 -2
  40. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-clip.js +2 -2
  41. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-drop.js +2 -2
  42. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-explode.js +2 -2
  43. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-fade.js +2 -2
  44. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-fold.js +2 -2
  45. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js +2 -2
  46. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-pulsate.js +2 -2
  47. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-scale.js +2 -2
  48. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-shake.js +2 -2
  49. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-slide.js +2 -2
  50. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-transfer.js +3 -3
  51. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect.js +93 -101
  52. data/vendor/assets/javascripts/jquery.ui/jquery.ui.menu.js +21 -10
  53. data/vendor/assets/javascripts/jquery.ui/jquery.ui.mouse.js +25 -25
  54. data/vendor/assets/javascripts/jquery.ui/jquery.ui.position.js +42 -62
  55. data/vendor/assets/javascripts/jquery.ui/jquery.ui.progressbar.js +73 -33
  56. data/vendor/assets/javascripts/jquery.ui/jquery.ui.resizable.js +461 -294
  57. data/vendor/assets/javascripts/jquery.ui/jquery.ui.selectable.js +67 -51
  58. data/vendor/assets/javascripts/jquery.ui/jquery.ui.slider.js +179 -151
  59. data/vendor/assets/javascripts/jquery.ui/jquery.ui.sortable.js +411 -257
  60. data/vendor/assets/javascripts/jquery.ui/jquery.ui.spinner.js +19 -5
  61. data/vendor/assets/javascripts/jquery.ui/jquery.ui.tabs.js +47 -567
  62. data/vendor/assets/javascripts/jquery.ui/jquery.ui.tooltip.js +14 -10
  63. data/vendor/assets/javascripts/jquery.ui/jquery.ui.widget.js +33 -40
  64. data/vendor/assets/javascripts/jquery.ui.js +1 -1
  65. data/vendor/assets/javascripts/jquery.validate.js +1 -1258
  66. data/vendor/assets/javascripts/sammy.js +1 -2107
  67. data/vendor/assets/javascripts/underscore.js +101 -75
  68. data/vendor/assets/stylesheets/bootstrap.responsive.css +24 -7
  69. data/vendor/assets/stylesheets/bootstrap.scss +238 -119
  70. data/vendor/assets/stylesheets/jquery.fancybox.scss +6 -6
  71. data/vendor/assets/stylesheets/jquery.ui.scss +918 -217
  72. data/vendor/assets/stylesheets/normalize.css +396 -0
  73. metadata +16 -20
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * jQuery UI Autocomplete 1.9.2
2
+ * jQuery UI Autocomplete 1.10.1
3
3
  * http://jqueryui.com
4
4
  *
5
- * Copyright 2012 jQuery Foundation and other contributors
5
+ * Copyright 2013 jQuery Foundation and other contributors
6
6
  * Released under the MIT license.
7
7
  * http://jquery.org/license
8
8
  *
@@ -20,10 +20,10 @@
20
20
  var requestIndex = 0;
21
21
 
22
22
  $.widget( "ui.autocomplete", {
23
- version: "1.9.2",
23
+ version: "1.10.1",
24
24
  defaultElement: "<input>",
25
25
  options: {
26
- appendTo: "body",
26
+ appendTo: null,
27
27
  autoFocus: false,
28
28
  delay: 300,
29
29
  minLength: 1,
@@ -54,10 +54,21 @@ $.widget( "ui.autocomplete", {
54
54
  // so we use the suppressKeyPressRepeat flag to avoid handling keypress
55
55
  // events when we know the keydown event was used to modify the
56
56
  // search term. #7799
57
- var suppressKeyPress, suppressKeyPressRepeat, suppressInput;
58
-
59
- this.isMultiLine = this._isMultiLine();
60
- this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ];
57
+ var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
58
+ nodeName = this.element[0].nodeName.toLowerCase(),
59
+ isTextarea = nodeName === "textarea",
60
+ isInput = nodeName === "input";
61
+
62
+ this.isMultiLine =
63
+ // Textareas are always multi-line
64
+ isTextarea ? true :
65
+ // Inputs are always single-line, even if inside a contentEditable element
66
+ // IE also treats inputs as contentEditable
67
+ isInput ? false :
68
+ // All other element types are determined by whether or not they're contentEditable
69
+ this.element.prop( "isContentEditable" );
70
+
71
+ this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
61
72
  this.isNewMenu = true;
62
73
 
63
74
  this.element
@@ -66,6 +77,7 @@ $.widget( "ui.autocomplete", {
66
77
 
67
78
  this._on( this.element, {
68
79
  keydown: function( event ) {
80
+ /*jshint maxcomplexity:15*/
69
81
  if ( this.element.prop( "readOnly" ) ) {
70
82
  suppressKeyPress = true;
71
83
  suppressInput = true;
@@ -180,17 +192,16 @@ $.widget( "ui.autocomplete", {
180
192
 
181
193
  this._initSource();
182
194
  this.menu = $( "<ul>" )
183
- .addClass( "ui-autocomplete" )
184
- .appendTo( this.document.find( this.options.appendTo || "body" )[ 0 ] )
195
+ .addClass( "ui-autocomplete ui-front" )
196
+ .appendTo( this._appendTo() )
185
197
  .menu({
186
198
  // custom key handling for now
187
199
  input: $(),
188
200
  // disable ARIA support, the live region takes care of that
189
201
  role: null
190
202
  })
191
- .zIndex( this.element.zIndex() + 1 )
192
203
  .hide()
193
- .data( "menu" );
204
+ .data( "ui-menu" );
194
205
 
195
206
  this._on( this.menu.element, {
196
207
  mousedown: function( event ) {
@@ -237,9 +248,7 @@ $.widget( "ui.autocomplete", {
237
248
  }
238
249
  }
239
250
 
240
- // back compat for _renderItem using item.autocomplete, via #7810
241
- // TODO remove the fallback, see #8156
242
- var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
251
+ var item = ui.item.data( "ui-autocomplete-item" );
243
252
  if ( false !== this._trigger( "focus", event, { item: item } ) ) {
244
253
  // use value to match what will end up in the input, if it was a key event
245
254
  if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
@@ -255,9 +264,7 @@ $.widget( "ui.autocomplete", {
255
264
  }
256
265
  },
257
266
  menuselect: function( event, ui ) {
258
- // back compat for _renderItem using item.autocomplete, via #7810
259
- // TODO remove the fallback, see #8156
260
- var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" ),
267
+ var item = ui.item.data( "ui-autocomplete-item" ),
261
268
  previous = this.previous;
262
269
 
263
270
  // only trigger when focus was lost (click on menu)
@@ -292,10 +299,6 @@ $.widget( "ui.autocomplete", {
292
299
  .addClass( "ui-helper-hidden-accessible" )
293
300
  .insertAfter( this.element );
294
301
 
295
- if ( $.fn.bgiframe ) {
296
- this.menu.element.bgiframe();
297
- }
298
-
299
302
  // turning off autocomplete prevents the browser from remembering the
300
303
  // value when navigating through history, so we re-enable autocomplete
301
304
  // if the page is unloaded before the widget is destroyed. #7790
@@ -321,25 +324,31 @@ $.widget( "ui.autocomplete", {
321
324
  this._initSource();
322
325
  }
323
326
  if ( key === "appendTo" ) {
324
- this.menu.element.appendTo( this.document.find( value || "body" )[0] );
327
+ this.menu.element.appendTo( this._appendTo() );
325
328
  }
326
329
  if ( key === "disabled" && value && this.xhr ) {
327
330
  this.xhr.abort();
328
331
  }
329
332
  },
330
333
 
331
- _isMultiLine: function() {
332
- // Textareas are always multi-line
333
- if ( this.element.is( "textarea" ) ) {
334
- return true;
334
+ _appendTo: function() {
335
+ var element = this.options.appendTo;
336
+
337
+ if ( element ) {
338
+ element = element.jquery || element.nodeType ?
339
+ $( element ) :
340
+ this.document.find( element ).eq( 0 );
335
341
  }
336
- // Inputs are always single-line, even if inside a contentEditable element
337
- // IE also treats inputs as contentEditable
338
- if ( this.element.is( "input" ) ) {
339
- return false;
342
+
343
+ if ( !element ) {
344
+ element = this.element.closest( ".ui-front" );
340
345
  }
341
- // All other element types are determined by whether or not they're contentEditable
342
- return this.element.prop( "isContentEditable" );
346
+
347
+ if ( !element.length ) {
348
+ element = this.document[0].body;
349
+ }
350
+
351
+ return element;
343
352
  },
344
353
 
345
354
  _initSource: function() {
@@ -479,9 +488,7 @@ $.widget( "ui.autocomplete", {
479
488
  },
480
489
 
481
490
  _suggest: function( items ) {
482
- var ul = this.menu.element
483
- .empty()
484
- .zIndex( this.element.zIndex() + 1 );
491
+ var ul = this.menu.element.empty();
485
492
  this._renderMenu( ul, items );
486
493
  this.menu.refresh();
487
494
 
@@ -598,5 +605,4 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
598
605
  }
599
606
  });
600
607
 
601
-
602
608
  }( jQuery ));
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * jQuery UI Button 1.9.2
2
+ * jQuery UI Button 1.10.1
3
3
  * http://jqueryui.com
4
4
  *
5
- * Copyright 2012 jQuery Foundation and other contributors
5
+ * Copyright 2013 jQuery Foundation and other contributors
6
6
  * Released under the MIT license.
7
7
  * http://jquery.org/license
8
8
  *
@@ -29,6 +29,7 @@ var lastActive, startXPos, startYPos, clickDragged,
29
29
  form = radio.form,
30
30
  radios = $( [] );
31
31
  if ( name ) {
32
+ name = name.replace( /'/g, "\\'" );
32
33
  if ( form ) {
33
34
  radios = $( form ).find( "[name='" + name + "']" );
34
35
  } else {
@@ -42,7 +43,7 @@ var lastActive, startXPos, startYPos, clickDragged,
42
43
  };
43
44
 
44
45
  $.widget( "ui.button", {
45
- version: "1.9.2",
46
+ version: "1.10.1",
46
47
  defaultElement: "<button>",
47
48
  options: {
48
49
  disabled: null,
@@ -146,8 +147,6 @@ $.widget( "ui.button", {
146
147
  if ( options.disabled || clickDragged ) {
147
148
  return false;
148
149
  }
149
- $( this ).toggleClass( "ui-state-active" );
150
- that.buttonElement.attr( "aria-pressed", that.element[0].checked );
151
150
  });
152
151
  } else if ( this.type === "radio" ) {
153
152
  this.buttonElement.bind( "click" + this.eventNamespace, function() {
@@ -192,7 +191,9 @@ $.widget( "ui.button", {
192
191
  $( this ).addClass( "ui-state-active" );
193
192
  }
194
193
  })
195
- .bind( "keyup" + this.eventNamespace, function() {
194
+ // see #8559, we bind to blur here in case the button element loses
195
+ // focus between keydown and keyup, it would be left in an "active" state
196
+ .bind( "keyup" + this.eventNamespace + " blur" + this.eventNamespace, function() {
196
197
  $( this ).removeClass( "ui-state-active" );
197
198
  });
198
199
 
@@ -359,9 +360,9 @@ $.widget( "ui.button", {
359
360
  });
360
361
 
361
362
  $.widget( "ui.buttonset", {
362
- version: "1.9.2",
363
+ version: "1.10.1",
363
364
  options: {
364
- items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"
365
+ items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
365
366
  },
366
367
 
367
368
  _create: function() {
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * jQuery UI Core 1.9.2
2
+ * jQuery UI Core 1.10.1
3
3
  * http://jqueryui.com
4
4
  *
5
- * Copyright 2012 jQuery Foundation and other contributors
5
+ * Copyright 2013 jQuery Foundation and other contributors
6
6
  * Released under the MIT license.
7
7
  * http://jquery.org/license
8
8
  *
@@ -22,7 +22,7 @@ if ( $.ui.version ) {
22
22
  }
23
23
 
24
24
  $.extend( $.ui, {
25
- version: "1.9.2",
25
+ version: "1.10.1",
26
26
 
27
27
  keyCode: {
28
28
  BACKSPACE: 8,
@@ -69,17 +69,17 @@ $.fn.extend({
69
69
 
70
70
  scrollParent: function() {
71
71
  var scrollParent;
72
- if (($.ui.ie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {
72
+ if (($.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
73
73
  scrollParent = this.parents().filter(function() {
74
- return (/(relative|absolute|fixed)/).test($.css(this,'position')) && (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));
74
+ return (/(relative|absolute|fixed)/).test($.css(this,"position")) && (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
75
75
  }).eq(0);
76
76
  } else {
77
77
  scrollParent = this.parents().filter(function() {
78
- return (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));
78
+ return (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
79
79
  }).eq(0);
80
80
  }
81
81
 
82
- return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;
82
+ return (/fixed/).test(this.css("position")) || !scrollParent.length ? $(document) : scrollParent;
83
83
  },
84
84
 
85
85
  zIndex: function( zIndex ) {
@@ -152,7 +152,7 @@ function focusable( element, isTabIndexNotNaN ) {
152
152
 
153
153
  function visible( element ) {
154
154
  return $.expr.filters.visible( element ) &&
155
- !$( element ).parents().andSelf().filter(function() {
155
+ !$( element ).parents().addBack().filter(function() {
156
156
  return $.css( this, "visibility" ) === "hidden";
157
157
  }).length;
158
158
  }
@@ -180,31 +180,6 @@ $.extend( $.expr[ ":" ], {
180
180
  }
181
181
  });
182
182
 
183
- // support
184
- $(function() {
185
- var body = document.body,
186
- div = body.appendChild( div = document.createElement( "div" ) );
187
-
188
- // access offsetHeight before setting the style to prevent a layout bug
189
- // in IE 9 which causes the element to continue to take up space even
190
- // after it is removed from the DOM (#8026)
191
- div.offsetHeight;
192
-
193
- $.extend( div.style, {
194
- minHeight: "100px",
195
- height: "auto",
196
- padding: 0,
197
- borderWidth: 0
198
- });
199
-
200
- $.support.minHeight = div.offsetHeight === 100;
201
- $.support.selectstart = "onselectstart" in div;
202
-
203
- // set display to none to avoid a layout bug in IE
204
- // http://dev.jquery.com/ticket/4014
205
- body.removeChild( div ).style.display = "none";
206
- });
207
-
208
183
  // support: jQuery <1.8
209
184
  if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
210
185
  $.each( [ "Width", "Height" ], function( i, name ) {
@@ -252,6 +227,15 @@ if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
252
227
  });
253
228
  }
254
229
 
230
+ // support: jQuery <1.8
231
+ if ( !$.fn.addBack ) {
232
+ $.fn.addBack = function( selector ) {
233
+ return this.add( selector == null ?
234
+ this.prevObject : this.prevObject.filter( selector )
235
+ );
236
+ };
237
+ }
238
+
255
239
  // support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
256
240
  if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
257
241
  $.fn.removeData = (function( removeData ) {
@@ -270,13 +254,9 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
270
254
 
271
255
 
272
256
  // deprecated
257
+ $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
273
258
 
274
- (function() {
275
- var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || [];
276
- $.ui.ie = uaMatch.length ? true : false;
277
- $.ui.ie6 = parseFloat( uaMatch[ 1 ], 10 ) === 6;
278
- })();
279
-
259
+ $.support.selectstart = "onselectstart" in document.createElement( "div" );
280
260
  $.fn.extend({
281
261
  disableSelection: function() {
282
262
  return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
@@ -316,8 +296,6 @@ $.extend( $.ui, {
316
296
  }
317
297
  },
318
298
 
319
- contains: $.contains,
320
-
321
299
  // only used by resizable
322
300
  hasScroll: function( el, a ) {
323
301
 
@@ -340,16 +318,6 @@ $.extend( $.ui, {
340
318
  has = ( el[ scroll ] > 0 );
341
319
  el[ scroll ] = 0;
342
320
  return has;
343
- },
344
-
345
- // these are odd functions, fix the API or move into individual plugins
346
- isOverAxis: function( x, reference, size ) {
347
- //Determines when x coordinate is over "b" element axis
348
- return ( x > reference ) && ( x < ( reference + size ) );
349
- },
350
- isOver: function( y, x, top, left, height, width ) {
351
- //Determines when x, y coordinates is over "b" element
352
- return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width );
353
321
  }
354
322
  });
355
323