Permalink
Browse files

Gallery Build Tag: gallery-2011.11.10-16-24

  • Loading branch information...
1 parent ef20257 commit 5cc7ad725788a90ee979efecf02a14be50ac1c11 YUI Builder committed Nov 10, 2011
Showing with 1,626 additions and 60 deletions.
  1. +1 −0 build/gallery-carousel-circular/gallery-carousel-circular-min.css
  2. +48 −0 build/gallery-carousel-circular/gallery-carousel-circular.css
  3. +29 −16 build/gallery-form/gallery-form-debug.js
  4. +4 −4 build/gallery-form/gallery-form-min.js
  5. +29 −16 build/gallery-form/gallery-form.js
  6. +1 −0 build/gallery-pulldown-refresh/gallery-pulldown-refresh-min.css
  7. +56 −0 build/gallery-pulldown-refresh/gallery-pulldown-refresh.css
  8. +8 −3 build/gallery-slidecheckbox/gallery-slidecheckbox-debug.js
  9. +1 −1 build/gallery-slidecheckbox/gallery-slidecheckbox-min.js
  10. +7 −3 build/gallery-slidecheckbox/gallery-slidecheckbox.js
  11. +193 −0 build/gallery-slider-window/assets/gallery-slider-window-core.css
  12. 0 build/gallery-slider-window/assets/skins/sam/gallery-slider-window-skin.css
  13. +1 −0 build/gallery-slider-window/assets/skins/sam/gallery-slider-window.css
  14. BIN build/gallery-slider-window/assets/sw_footer_bg.gif
  15. BIN build/gallery-slider-window/assets/sw_handle_bg.gif
  16. BIN build/gallery-slider-window/assets/sw_header_bg.gif
  17. BIN build/gallery-slider-window/assets/sw_sprite.gif
  18. BIN build/gallery-slider-window/assets/sw_t-handle_bg.gif
  19. +633 −0 build/gallery-slider-window/gallery-slider-window-debug.js
  20. +2 −0 build/gallery-slider-window/gallery-slider-window-min.js
  21. +602 −0 build/gallery-slider-window/gallery-slider-window.js
  22. +5 −8 build/gallery-yui-dualslider/gallery-yui-dualslider-debug.js
  23. +1 −1 build/gallery-yui-dualslider/gallery-yui-dualslider-min.js
  24. +5 −8 build/gallery-yui-dualslider/gallery-yui-dualslider.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,48 @@
+
+.yui3-circular-carousel{
+ -webkit-perspective: 500px;
+}
+
+.yui3-circular-carousel-item {
+ position: absolute;
+ height: 200px;
+ width: 200px;
+ border: 1px solid black;
+ -webkit-border-radius: 12px;
+ -webkit-box-sizing: border-box;
+ text-align: center;
+ font-family: Times, serif;
+ font-size: 124pt;
+ color: black;
+ background-color: rgba(148,116,172, 0.6);
+ -webkit-transition: -webkit-transform 2s, opacity 2s;
+ -webkit-backface-visibility: hidden;
+ position: absolute;
+ -webkit-transition: 0.3s ease;
+ -webkit-transform: rotate(0) scale(0.9) translateX(100%);
+ z-index: 0;
+ width: 200px;
+ overflow: visible;
+ opacity: 0;
+}
+
+.yui3-circular-carousel .yui3-circular-carousel-selected{
+ opacity: 1;
+ -webkit-transform: rotate(0) scale(1) translateX(54%);
+ z-index: 99;
+}
+
+.yui3-circular-carousel .yui3-circular-carousel-left,
+.yui3-circular-carousel .yui3-circular-carousel-right {
+ opacity: 0.4;
+ z-index: 88;
+}
+
+.yui3-circular-carousel .yui3-circular-carousel-left {
+ -webkit-transform: rotate(0) scale(0.9) translateX(0%);
+}
+
+.yui3-circular-carousel .yui3-circular-carousel-right {
+ -webkit-transform: rotate(0) scale(0.9) translateX(134%);
+}
+
@@ -547,7 +547,7 @@ Y.FormField = Y.Base.create('form-field', Y.Widget, [Y.WidgetParent, Y.WidgetChi
* @type String
* @description Template used to render the field node
*/
- FIELD_TEMPLATE : '<input></input>',
+ FIELD_TEMPLATE : '<input>',
/**
* @property FormField.FIELD_CLASS
@@ -817,7 +817,7 @@ Y.FormField = Y.Base.create('form-field', Y.Widget, [Y.WidgetParent, Y.WidgetChi
* @description Syncs the fieldNode and this instances attributes
*/
_syncFieldNode: function() {
- var nodeType = this.name.split('-')[0];
+ var nodeType = this.INPUT_TYPE || this.name.split('-')[0];
if (!nodeType) {
return;
}
@@ -1421,7 +1421,7 @@ Y.CheckboxField = Y.Base.create('checkbox-field', Y.FormField, [Y.WidgetChild],
* @constructor
* @description A Radio field node
*/
-Y.RadioField = Y.Base.create('radio-field', Y.FormField, [Y.WidgetChild]);
+Y.RadioField = Y.Base.create('radio-field', Y.CheckboxField, [Y.WidgetChild]);
/**
* @class HiddenField
* @extends FormField
@@ -1561,6 +1561,7 @@ Y.ChoiceField = Y.Base.create('choice-field', Y.FormField, [Y.WidgetParent, Y.Wi
Y.Array.each(choices,
function(c, i, a) {
var cfg = {
+ checked : c.checked,
value: c.value,
id: (this.get('id') + '_choice' + i),
name: this.get('name'),
@@ -1577,19 +1578,23 @@ Y.ChoiceField = Y.Base.create('choice-field', Y.FormField, [Y.WidgetParent, Y.Wi
var choices = this.get('value').split(',');
if (choices && choices.length > 0) {
- Y.Array.each(choices, function(choice) {
- this._fieldNode.each(function(node, index, list) {
- if (Y.Lang.trim(node.get('value')) == Y.Lang.trim(choice)) {
- node.set('checked', true);
- return true;
- }
- }, this);
- }, this);
+ choices = Y.Array.map(choices, function(choice) {
+ return Y.Lang.trim(choice);
+ });
+
+ this._fieldNode.each(function(node, index, list) {
+ var nodeValue = Y.Lang.trim(node.get('value'));
+ if (!!~Y.Array.indexOf(choices, nodeValue)) {
+ node.set('checked', true);
+ } else {
+ node.set('checked', false);
+ }
+ });
}
},
/**
- * @method _afterChoiceChange
+ * @method _afterChoicesChange
* @description When the available choices for the choice field change,
* the old ones are removed and the new ones are rendered.
*/
@@ -1610,19 +1615,27 @@ Y.ChoiceField = Y.Base.create('choice-field', Y.FormField, [Y.WidgetParent, Y.Wi
bindUI: function() {
this._fieldNode.on('change', Y.bind(function(e) {
- var value = '';
+ var value = '',
+ type = this.get('multi') ? 'checkbox' : 'radio';
+
this._fieldNode.each(function(node, index, list) {
- if (node.get('checked') === true) {
+ if (node.get('type') == type && node.get('checked') === true) {
if (value.length > 0) {
value += ',';
}
value += node.get('value');
}
}, this);
- this.set('value', value);
+ this.set('value', value, {fromUI : true});
},
this));
this.after('choicesChange', this._afterChoicesChange);
+
+ this.after('valueChange', function (e) {
+ if (!e.fromUI) {
+ this._syncFieldNode();
+ }
+ });
}
},
@@ -1966,4 +1979,4 @@ Y.ResetButton = Y.Base.create('reset-button', Y.FormField, [Y.WidgetChild], {
});
-}, 'gallery-2011.09.28-20-06' ,{requires:['node', 'widget-base', 'widget-htmlparser', 'io-form', 'widget-parent', 'widget-child', 'base-build', 'substitute', 'io-upload-iframe']});
+}, 'gallery-2011.11.10-16-24' ,{requires:['node', 'widget-base', 'widget-htmlparser', 'io-form', 'widget-parent', 'widget-child', 'base-build', 'substitute', 'io-upload-iframe', 'collection']});

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -547,7 +547,7 @@ Y.FormField = Y.Base.create('form-field', Y.Widget, [Y.WidgetParent, Y.WidgetChi
* @type String
* @description Template used to render the field node
*/
- FIELD_TEMPLATE : '<input></input>',
+ FIELD_TEMPLATE : '<input>',
/**
* @property FormField.FIELD_CLASS
@@ -816,7 +816,7 @@ Y.FormField = Y.Base.create('form-field', Y.Widget, [Y.WidgetParent, Y.WidgetChi
* @description Syncs the fieldNode and this instances attributes
*/
_syncFieldNode: function() {
- var nodeType = this.name.split('-')[0];
+ var nodeType = this.INPUT_TYPE || this.name.split('-')[0];
if (!nodeType) {
return;
}
@@ -1420,7 +1420,7 @@ Y.CheckboxField = Y.Base.create('checkbox-field', Y.FormField, [Y.WidgetChild],
* @constructor
* @description A Radio field node
*/
-Y.RadioField = Y.Base.create('radio-field', Y.FormField, [Y.WidgetChild]);
+Y.RadioField = Y.Base.create('radio-field', Y.CheckboxField, [Y.WidgetChild]);
/**
* @class HiddenField
* @extends FormField
@@ -1557,6 +1557,7 @@ Y.ChoiceField = Y.Base.create('choice-field', Y.FormField, [Y.WidgetParent, Y.Wi
Y.Array.each(choices,
function(c, i, a) {
var cfg = {
+ checked : c.checked,
value: c.value,
id: (this.get('id') + '_choice' + i),
name: this.get('name'),
@@ -1573,19 +1574,23 @@ Y.ChoiceField = Y.Base.create('choice-field', Y.FormField, [Y.WidgetParent, Y.Wi
var choices = this.get('value').split(',');
if (choices && choices.length > 0) {
- Y.Array.each(choices, function(choice) {
- this._fieldNode.each(function(node, index, list) {
- if (Y.Lang.trim(node.get('value')) == Y.Lang.trim(choice)) {
- node.set('checked', true);
- return true;
- }
- }, this);
- }, this);
+ choices = Y.Array.map(choices, function(choice) {
+ return Y.Lang.trim(choice);
+ });
+
+ this._fieldNode.each(function(node, index, list) {
+ var nodeValue = Y.Lang.trim(node.get('value'));
+ if (!!~Y.Array.indexOf(choices, nodeValue)) {
+ node.set('checked', true);
+ } else {
+ node.set('checked', false);
+ }
+ });
}
},
/**
- * @method _afterChoiceChange
+ * @method _afterChoicesChange
* @description When the available choices for the choice field change,
* the old ones are removed and the new ones are rendered.
*/
@@ -1606,19 +1611,27 @@ Y.ChoiceField = Y.Base.create('choice-field', Y.FormField, [Y.WidgetParent, Y.Wi
bindUI: function() {
this._fieldNode.on('change', Y.bind(function(e) {
- var value = '';
+ var value = '',
+ type = this.get('multi') ? 'checkbox' : 'radio';
+
this._fieldNode.each(function(node, index, list) {
- if (node.get('checked') === true) {
+ if (node.get('type') == type && node.get('checked') === true) {
if (value.length > 0) {
value += ',';
}
value += node.get('value');
}
}, this);
- this.set('value', value);
+ this.set('value', value, {fromUI : true});
},
this));
this.after('choicesChange', this._afterChoicesChange);
+
+ this.after('valueChange', function (e) {
+ if (!e.fromUI) {
+ this._syncFieldNode();
+ }
+ });
}
},
@@ -1962,4 +1975,4 @@ Y.ResetButton = Y.Base.create('reset-button', Y.FormField, [Y.WidgetChild], {
});
-}, 'gallery-2011.09.28-20-06' ,{requires:['node', 'widget-base', 'widget-htmlparser', 'io-form', 'widget-parent', 'widget-child', 'base-build', 'substitute', 'io-upload-iframe']});
+}, 'gallery-2011.11.10-16-24' ,{requires:['node', 'widget-base', 'widget-htmlparser', 'io-form', 'widget-parent', 'widget-child', 'base-build', 'substitute', 'io-upload-iframe', 'collection']});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,56 @@
+ .yui3-pulldown-refresh-icon-pulldown,
+ .yui3-pulldown-refresh-icon-release {
+ background: url(http://l.yimg.com/us.yimg.com/i/us/ls/gr/t/1304966707/common_sprite_low_res.png) no-repeat;
+}
+
+ .yui3-pulldown-refresh-icon-pulldown {
+ background-position: 0 -919px;
+}
+
+ .yui3-pulldown-refresh-icon-release {
+ background-position: 0 -840px;
+}
+.yui3-pulldown-refresh-animated {
+ -webkit-transition:all 0.3s ease;
+}
+
+#yui3-pulldown-refresh-icon {
+ float: left;
+ height: 40px;
+ display: inline-block;
+ padding-left: 24px;
+ position: relative;
+ top: -3px;
+}
+
+.yui3-pulldown-refresh-loading-con {
+ float: left;
+ position: relative;
+ display: inline-block;
+ margin-left: 49px;
+ top: 16px;
+}
+.yui3-pulldown-refresh-last-update {
+ float: left;
+ position: relative;
+ display: inline-block;
+ margin-top: 5px;
+ font-size: 12px;
+}
+
+.yui3-pulldown-refresh-loading-stat {
+ position: relative;
+ width: 260px;
+ display:block;
+}
+#yui3-pulldown-refresh-icon .yui3-pulldown-refresh-hidden {
+ display: none;
+}
+#yui3-pulldown-refresh-icon .yui3-pulldown-refresh-loading {
+ background: url(http://l.yimg.com/a/i/us/ls/gr/loading_16x16_1_trans.gif) no-repeat;
+ width: 20px;
+ height: 20px;
+ position: absolute;
+ top: 3px;
+ left: 0px;
+}
@@ -86,7 +86,10 @@ YUI.add('gallery-slidecheckbox', function(Y) {
cb.on('focus',function(){
cb.on('key',this.goLeft,'down:37',this);
cb.on('key',this.goRight,'down:39',this);
- cb.on('key',this.move,'down:32',this);
+ cb.on('key',function(e){
+ e.preventDefault();
+ this.move();
+ },'down:32',this);
},this);
cb.on('blur',function(){
cb.detach('key');
@@ -141,10 +144,11 @@ YUI.add('gallery-slidecheckbox', function(Y) {
return null;
},
_onClick : function(e){
+ e.preventDefault();
this.move();
},
_execute : function(){
- this.get(CBX).focus();
+ this.focus();
if(this.disabled){
return;
}
@@ -163,6 +167,7 @@ YUI.add('gallery-slidecheckbox', function(Y) {
this.anim.set('to',{left:this.to});
this.anim.run();
this.src.set('checked',!this.src.get('checked'));
+ Y.log("New value: " + this.src.get('checked'));
},
_replacePx : function(el){
return parseInt(el.replace('px',''));
@@ -201,4 +206,4 @@ YUI.add('gallery-slidecheckbox', function(Y) {
);
-}, 'gallery-2011.10.27-17-03' ,{skinnable:true, requires:['node-base', 'anim-base', 'anim-easing', 'base-build', 'event-key', 'event-move', 'widget', 'node-style', 'gallery-makenode', 'dd-drag', 'dd-constrain']});
+}, 'gallery-2011.11.10-16-24' ,{skinnable:true, requires:['node-base', 'anim-base', 'anim-easing', 'base-build', 'event-key', 'event-move', 'widget', 'node-style', 'gallery-makenode', 'dd-drag', 'dd-constrain']});
Oops, something went wrong.

0 comments on commit 5cc7ad7

Please sign in to comment.