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 Position 1.9.2
2
+ * jQuery UI Position 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
  *
@@ -18,21 +18,52 @@ var cachedScrollbarWidth,
18
18
  round = Math.round,
19
19
  rhorizontal = /left|center|right/,
20
20
  rvertical = /top|center|bottom/,
21
- roffset = /[\+\-]\d+%?/,
21
+ roffset = /[\+\-]\d+(\.[\d]+)?%?/,
22
22
  rposition = /^\w+/,
23
23
  rpercent = /%$/,
24
24
  _position = $.fn.position;
25
25
 
26
26
  function getOffsets( offsets, width, height ) {
27
27
  return [
28
- parseInt( offsets[ 0 ], 10 ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
29
- parseInt( offsets[ 1 ], 10 ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
28
+ parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
29
+ parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
30
30
  ];
31
31
  }
32
+
32
33
  function parseCss( element, property ) {
33
34
  return parseInt( $.css( element, property ), 10 ) || 0;
34
35
  }
35
36
 
37
+ function getDimensions( elem ) {
38
+ var raw = elem[0];
39
+ if ( raw.nodeType === 9 ) {
40
+ return {
41
+ width: elem.width(),
42
+ height: elem.height(),
43
+ offset: { top: 0, left: 0 }
44
+ };
45
+ }
46
+ if ( $.isWindow( raw ) ) {
47
+ return {
48
+ width: elem.width(),
49
+ height: elem.height(),
50
+ offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
51
+ };
52
+ }
53
+ if ( raw.preventDefault ) {
54
+ return {
55
+ width: 0,
56
+ height: 0,
57
+ offset: { top: raw.pageY, left: raw.pageX }
58
+ };
59
+ }
60
+ return {
61
+ width: elem.outerWidth(),
62
+ height: elem.outerHeight(),
63
+ offset: elem.offset()
64
+ };
65
+ }
66
+
36
67
  $.position = {
37
68
  scrollbarWidth: function() {
38
69
  if ( cachedScrollbarWidth !== undefined ) {
@@ -91,32 +122,21 @@ $.fn.position = function( options ) {
91
122
  // make a copy, we don't want to modify arguments
92
123
  options = $.extend( {}, options );
93
124
 
94
- var atOffset, targetWidth, targetHeight, targetOffset, basePosition,
125
+ var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
95
126
  target = $( options.of ),
96
127
  within = $.position.getWithinInfo( options.within ),
97
128
  scrollInfo = $.position.getScrollInfo( within ),
98
- targetElem = target[0],
99
129
  collision = ( options.collision || "flip" ).split( " " ),
100
130
  offsets = {};
101
131
 
102
- if ( targetElem.nodeType === 9 ) {
103
- targetWidth = target.width();
104
- targetHeight = target.height();
105
- targetOffset = { top: 0, left: 0 };
106
- } else if ( $.isWindow( targetElem ) ) {
107
- targetWidth = target.width();
108
- targetHeight = target.height();
109
- targetOffset = { top: target.scrollTop(), left: target.scrollLeft() };
110
- } else if ( targetElem.preventDefault ) {
132
+ dimensions = getDimensions( target );
133
+ if ( target[0].preventDefault ) {
111
134
  // force left top to allow flipping
112
135
  options.at = "left top";
113
- targetWidth = targetHeight = 0;
114
- targetOffset = { top: targetElem.pageY, left: targetElem.pageX };
115
- } else {
116
- targetWidth = target.outerWidth();
117
- targetHeight = target.outerHeight();
118
- targetOffset = target.offset();
119
136
  }
137
+ targetWidth = dimensions.width;
138
+ targetHeight = dimensions.height;
139
+ targetOffset = dimensions.offset;
120
140
  // clone to reuse original targetOffset later
121
141
  basePosition = $.extend( {}, targetOffset );
122
142
 
@@ -230,10 +250,6 @@ $.fn.position = function( options ) {
230
250
  }
231
251
  });
232
252
 
233
- if ( $.fn.bgiframe ) {
234
- elem.bgiframe();
235
- }
236
-
237
253
  if ( options.using ) {
238
254
  // adds feedback as second argument to using callback, if present
239
255
  using = function( props ) {
@@ -478,40 +494,4 @@ $.ui.position = {
478
494
  testElementParent.removeChild( testElement );
479
495
  })();
480
496
 
481
- // DEPRECATED
482
- if ( $.uiBackCompat !== false ) {
483
- // offset option
484
- (function( $ ) {
485
- var _position = $.fn.position;
486
- $.fn.position = function( options ) {
487
- if ( !options || !options.offset ) {
488
- return _position.call( this, options );
489
- }
490
- var offset = options.offset.split( " " ),
491
- at = options.at.split( " " );
492
- if ( offset.length === 1 ) {
493
- offset[ 1 ] = offset[ 0 ];
494
- }
495
- if ( /^\d/.test( offset[ 0 ] ) ) {
496
- offset[ 0 ] = "+" + offset[ 0 ];
497
- }
498
- if ( /^\d/.test( offset[ 1 ] ) ) {
499
- offset[ 1 ] = "+" + offset[ 1 ];
500
- }
501
- if ( at.length === 1 ) {
502
- if ( /left|center|right/.test( at[ 0 ] ) ) {
503
- at[ 1 ] = "center";
504
- } else {
505
- at[ 1 ] = at[ 0 ];
506
- at[ 0 ] = "center";
507
- }
508
- }
509
- return _position.call( this, $.extend( options, {
510
- at: at[ 0 ] + offset[ 0 ] + " " + at[ 1 ] + offset[ 1 ],
511
- offset: undefined
512
- } ) );
513
- };
514
- }( jQuery ) );
515
- }
516
-
517
497
  }( jQuery ) );
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * jQuery UI Progressbar 1.9.2
2
+ * jQuery UI Progressbar 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
  *
@@ -15,28 +15,33 @@
15
15
  (function( $, undefined ) {
16
16
 
17
17
  $.widget( "ui.progressbar", {
18
- version: "1.9.2",
18
+ version: "1.10.1",
19
19
  options: {
20
+ max: 100,
20
21
  value: 0,
21
- max: 100
22
+
23
+ change: null,
24
+ complete: null
22
25
  },
23
26
 
24
27
  min: 0,
25
28
 
26
29
  _create: function() {
30
+ // Constrain initial value
31
+ this.oldValue = this.options.value = this._constrainedValue();
32
+
27
33
  this.element
28
34
  .addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
29
35
  .attr({
36
+ // Only set static values, aria-valuenow and aria-valuemax are
37
+ // set inside _refreshValue()
30
38
  role: "progressbar",
31
- "aria-valuemin": this.min,
32
- "aria-valuemax": this.options.max,
33
- "aria-valuenow": this._value()
39
+ "aria-valuemin": this.min
34
40
  });
35
41
 
36
42
  this.valueDiv = $( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>" )
37
43
  .appendTo( this.element );
38
44
 
39
- this.oldValue = this._value();
40
45
  this._refreshValue();
41
46
  },
42
47
 
@@ -53,52 +58,87 @@ $.widget( "ui.progressbar", {
53
58
 
54
59
  value: function( newValue ) {
55
60
  if ( newValue === undefined ) {
56
- return this._value();
61
+ return this.options.value;
57
62
  }
58
63
 
59
- this._setOption( "value", newValue );
60
- return this;
64
+ this.options.value = this._constrainedValue( newValue );
65
+ this._refreshValue();
61
66
  },
62
67
 
63
- _setOption: function( key, value ) {
64
- if ( key === "value" ) {
65
- this.options.value = value;
66
- this._refreshValue();
67
- if ( this._value() === this.options.max ) {
68
- this._trigger( "complete" );
69
- }
68
+ _constrainedValue: function( newValue ) {
69
+ if ( newValue === undefined ) {
70
+ newValue = this.options.value;
70
71
  }
71
72
 
72
- this._super( key, value );
73
+ this.indeterminate = newValue === false;
74
+
75
+ // sanitize value
76
+ if ( typeof newValue !== "number" ) {
77
+ newValue = 0;
78
+ }
79
+
80
+ return this.indeterminate ? false :
81
+ Math.min( this.options.max, Math.max( this.min, newValue ) );
73
82
  },
74
83
 
75
- _value: function() {
76
- var val = this.options.value;
77
- // normalize invalid value
78
- if ( typeof val !== "number" ) {
79
- val = 0;
84
+ _setOptions: function( options ) {
85
+ // Ensure "value" option is set after other values (like max)
86
+ var value = options.value;
87
+ delete options.value;
88
+
89
+ this._super( options );
90
+
91
+ this.options.value = this._constrainedValue( value );
92
+ this._refreshValue();
93
+ },
94
+
95
+ _setOption: function( key, value ) {
96
+ if ( key === "max" ) {
97
+ // Don't allow a max less than min
98
+ value = Math.max( this.min, value );
80
99
  }
81
- return Math.min( this.options.max, Math.max( this.min, val ) );
100
+
101
+ this._super( key, value );
82
102
  },
83
103
 
84
104
  _percentage: function() {
85
- return 100 * this._value() / this.options.max;
105
+ return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
86
106
  },
87
107
 
88
108
  _refreshValue: function() {
89
- var value = this.value(),
109
+ var value = this.options.value,
90
110
  percentage = this._percentage();
91
111
 
112
+ this.valueDiv
113
+ .toggle( this.indeterminate || value > this.min )
114
+ .toggleClass( "ui-corner-right", value === this.options.max )
115
+ .width( percentage.toFixed(0) + "%" );
116
+
117
+ this.element.toggleClass( "ui-progressbar-indeterminate", this.indeterminate );
118
+
119
+ if ( this.indeterminate ) {
120
+ this.element.removeAttr( "aria-valuenow" );
121
+ if ( !this.overlayDiv ) {
122
+ this.overlayDiv = $( "<div class='ui-progressbar-overlay'></div>" ).appendTo( this.valueDiv );
123
+ }
124
+ } else {
125
+ this.element.attr({
126
+ "aria-valuemax": this.options.max,
127
+ "aria-valuenow": value
128
+ });
129
+ if ( this.overlayDiv ) {
130
+ this.overlayDiv.remove();
131
+ this.overlayDiv = null;
132
+ }
133
+ }
134
+
92
135
  if ( this.oldValue !== value ) {
93
136
  this.oldValue = value;
94
137
  this._trigger( "change" );
95
138
  }
96
-
97
- this.valueDiv
98
- .toggle( value > this.min )
99
- .toggleClass( "ui-corner-right", value === this.options.max )
100
- .width( percentage.toFixed(0) + "%" );
101
- this.element.attr( "aria-valuenow", value );
139
+ if ( value === this.options.max ) {
140
+ this._trigger( "complete" );
141
+ }
102
142
  }
103
143
  });
104
144