Navigation Menu

Skip to content

Commit

Permalink
Gallery Build Tag: gallery-2011.11.10-16-24
Browse files Browse the repository at this point in the history
  • Loading branch information
YUI Builder committed Nov 10, 2011
1 parent ef20257 commit 5cc7ad7
Show file tree
Hide file tree
Showing 24 changed files with 1,626 additions and 60 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions build/gallery-carousel-circular/gallery-carousel-circular.css
@@ -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%);
}

45 changes: 29 additions & 16 deletions build/gallery-form/gallery-form-debug.js
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'),
Expand All @@ -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.
*/
Expand All @@ -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();
}
});
}

},
Expand Down Expand Up @@ -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']});
8 changes: 4 additions & 4 deletions build/gallery-form/gallery-form-min.js

Large diffs are not rendered by default.

45 changes: 29 additions & 16 deletions build/gallery-form/gallery-form.js
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'),
Expand All @@ -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.
*/
Expand All @@ -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();
}
});
}

},
Expand Down Expand Up @@ -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 about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions build/gallery-pulldown-refresh/gallery-pulldown-refresh.css
@@ -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;
}
11 changes: 8 additions & 3 deletions build/gallery-slidecheckbox/gallery-slidecheckbox-debug.js
Expand Up @@ -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');
Expand Down Expand Up @@ -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;
}
Expand All @@ -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',''));
Expand Down Expand Up @@ -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']});

0 comments on commit 5cc7ad7

Please sign in to comment.