Skip to content

Commit

Permalink
Gallery Build Tag: gallery-2010.09.08-19-45
Browse files Browse the repository at this point in the history
  • Loading branch information
YUI Builder committed Sep 8, 2010
1 parent e5cebce commit 125cd37
Show file tree
Hide file tree
Showing 57 changed files with 24,615 additions and 3,668 deletions.
4 changes: 2 additions & 2 deletions build/gallery-bidi-textinput/gallery-bidi-textinput-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function BidiTextInputPlugin() {
BidiTextInputPlugin.superclass.constructor.apply(this, arguments);
}

BidiTextInputPlugin.NS = "bidi";
BidiTextInputPlugin.NS = "bidiTextInput";
BidiTextInputPlugin.NAME = "bidiTextInput";

Y.extend(BidiTextInputPlugin, Y.Plugin.Base, {
Expand All @@ -29,4 +29,4 @@ Y.namespace('Plugin');
Y.Plugin.BidiTextInput = BidiTextInputPlugin;


}, 'gallery-2010.08.18-17-12' ,{requires:['plugin','event-valuechange','gallery-intl-bidi','gallery-node-setdir']});
}, 'gallery-2010.09.08-19-45' ,{requires:['plugin','event-valuechange','gallery-intl-bidi','gallery-node-setdir']});
2 changes: 1 addition & 1 deletion build/gallery-bidi-textinput/gallery-bidi-textinput-min.js

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

4 changes: 2 additions & 2 deletions build/gallery-bidi-textinput/gallery-bidi-textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function BidiTextInputPlugin() {
BidiTextInputPlugin.superclass.constructor.apply(this, arguments);
}

BidiTextInputPlugin.NS = "bidi";
BidiTextInputPlugin.NS = "bidiTextInput";
BidiTextInputPlugin.NAME = "bidiTextInput";

Y.extend(BidiTextInputPlugin, Y.Plugin.Base, {
Expand All @@ -29,4 +29,4 @@ Y.namespace('Plugin');
Y.Plugin.BidiTextInput = BidiTextInputPlugin;


}, 'gallery-2010.08.18-17-12' ,{requires:['plugin','event-valuechange','gallery-intl-bidi','gallery-node-setdir']});
}, 'gallery-2010.09.08-19-45' ,{requires:['plugin','event-valuechange','gallery-intl-bidi','gallery-node-setdir']});
102 changes: 64 additions & 38 deletions build/gallery-button-group/gallery-button-group-debug.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,69 @@
YUI.add('gallery-button-group', function(Y) {

var YL = Y.Lang;

Y.ButtonGroup = Y.Base.create('button-group', Y.Widget, [Y.WidgetParent,Y.WidgetChild], {

labelNode : null,

initializer : function(config) {
this.labelNode = Y.Node.create('<span class="' + this.getClassName('label') + '"/>');
},

renderUI : function() {
this.get('boundingBox').prepend(this.labelNode);
},

syncUI : function() {
this.labelNode.set('text',this.get('label'));
}


}, {
ATTRS : {
label : {
validator : YL.isString,
setter : function(val) {
this.labelNode.set('text', val);
return val;
}
},

defaultChildType : {
value : Y.Button
},

alwaysSelected : {
value : false
}
var YL = Y.Lang;

Y.ButtonGroup = Y.Base.create('button-group', Y.Widget, [Y.WidgetParent,Y.WidgetChild], {

labelNode : null,

initializer : function(config) {
Y.log('Y.ButtonGroup::initializer');

this.labelNode = Y.Node.create('<span class="' + this.getClassName('label') + '"/>');
},

renderUI : function() {
Y.log('Y.ButtonGroup::renderUI');

this.get('boundingBox').prepend(this.labelNode);
},

bindUI : function() {
Y.log('Y.ButtonGroup::bindUI');

this.on('button:press', function(e) {
if(this.get('alwaysSelected')) {
var selection = this.get('selection'),
button = e.target;

if(selection === button || ( // selection is the button OR
selection instanceof Y.ArrayList && // selection is an array AND
selection.size() === 1 && // there is only one item AND
selection.item(0) === button) // that one itme is the button
) {
e.preventDefault();
}
});

}
},this);
},

syncUI : function() {
Y.log('Y.ButtonGroup::syncUI');

this.labelNode.set('text',this.get('label'));
}

}, {
ATTRS : {

label : {
validator : YL.isString,
setter : function(val) {
this.labelNode.set('text', val);
return val;
}
},

defaultChildType : {
value : Y.Button
},

alwaysSelected : {
value : false
}
}
});


}, 'gallery-2010.06.30-19-54' ,{requires:['widget-parent','widget-child']});
}, 'gallery-2010.09.08-19-45' ,{requires:['widget-parent','widget-child']});
2 changes: 1 addition & 1 deletion build/gallery-button-group/gallery-button-group-min.js

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

98 changes: 60 additions & 38 deletions build/gallery-button-group/gallery-button-group.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,65 @@
YUI.add('gallery-button-group', function(Y) {

var YL = Y.Lang;

Y.ButtonGroup = Y.Base.create('button-group', Y.Widget, [Y.WidgetParent,Y.WidgetChild], {

labelNode : null,

initializer : function(config) {
this.labelNode = Y.Node.create('<span class="' + this.getClassName('label') + '"/>');
},

renderUI : function() {
this.get('boundingBox').prepend(this.labelNode);
},

syncUI : function() {
this.labelNode.set('text',this.get('label'));
}


}, {
ATTRS : {
label : {
validator : YL.isString,
setter : function(val) {
this.labelNode.set('text', val);
return val;
}
},

defaultChildType : {
value : Y.Button
},

alwaysSelected : {
value : false
}
var YL = Y.Lang;

Y.ButtonGroup = Y.Base.create('button-group', Y.Widget, [Y.WidgetParent,Y.WidgetChild], {

labelNode : null,

initializer : function(config) {

this.labelNode = Y.Node.create('<span class="' + this.getClassName('label') + '"/>');
},

renderUI : function() {

this.get('boundingBox').prepend(this.labelNode);
},

bindUI : function() {

this.on('button:press', function(e) {
if(this.get('alwaysSelected')) {
var selection = this.get('selection'),
button = e.target;

if(selection === button || ( // selection is the button OR
selection instanceof Y.ArrayList && // selection is an array AND
selection.size() === 1 && // there is only one item AND
selection.item(0) === button) // that one itme is the button
) {
e.preventDefault();
}
});

}
},this);
},

syncUI : function() {

this.labelNode.set('text',this.get('label'));
}

}, {
ATTRS : {

label : {
validator : YL.isString,
setter : function(val) {
this.labelNode.set('text', val);
return val;
}
},

defaultChildType : {
value : Y.Button
},

alwaysSelected : {
value : false
}
}
});


}, 'gallery-2010.06.30-19-54' ,{requires:['widget-parent','widget-child']});
}, 'gallery-2010.09.08-19-45' ,{requires:['widget-parent','widget-child']});
97 changes: 38 additions & 59 deletions build/gallery-button-toggle/gallery-button-toggle-debug.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,40 @@
YUI.add('gallery-button-toggle', function(Y) {

var YL = Y.Lang,
DESELECTED_CALLBACK = 'deselectedCallback';


Y.ButtonToggle = Y.Base.create('button', Y.Button, [], {

initializer : function(config) {
this.after('selectedChange',this._selectedChanged, this);
},

_bindClick : function() {

this.get('boundingBox').after('click',function(e){
var parent = null;
if(!this.isRoot()) {
var parent = this.get('parent'),
selection = parent.get('selection');
if(
parent instanceof Y.ButtonGroup && // we are in a button group
parent.get('alwaysSelected') && // there should always be at least one
this.get('selected') === 1 && // this is selected
(
selection === this ||
(
selection instanceof Y.ArrayList &&
selection.size() === 1 &&
selection.item(0) === this
)
) // this is the only selected
) {
return;
}
}
this.set('selected', (this.get('selected') === 0) ? 1 : 0);
},this);
},

_selectedChanged : function(e) {
if(e.newVal) {
if(this.get('callback')) {
(Y.bind(this.get('callback'),this))();
}
}else{
if(this.get(DESELECTED_CALLBACK)) {
(Y.bind(this.get(DESELECTED_CALLBACK),this))();
}
}
}

}, {
ATTRS : {
deselectedCallback : {
validator : YL.isFunction
}
}
});


}, 'gallery-2010.06.30-19-54' ,{requires:['gallery-button']});
var YL = Y.Lang,
DESELECTED_CALLBACK = 'deselectedCallback';

Y.ButtonToggle = Y.Base.create('button', Y.Button, [], {

initializer : function(config) {
this.after('selectedChange',this._afterSelectedChanged, this);
},

_defPressFn : function(e) {
this.set('selected', (this.get('selected') === 0) ? 1 : 0);
},

_afterSelectedChanged : function(e) {
if(e.newVal) {
this._executeCallback();
}else{
this._executeDeselectCallback();
}
},

_executeDeselectCallback : function(e) {
Y.log('Y.ButtonToggle::_executeDeselectCallback');
if(this.get(DESELECTED_CALLBACK)) {
(this.get(DESELECTED_CALLBACK))();
}
}

}, {
ATTRS : {
deselectedCallback : {
validator : YL.isFunction
}
}
});


}, 'gallery-2010.09.08-19-45' ,{requires:['gallery-button']});
2 changes: 1 addition & 1 deletion build/gallery-button-toggle/gallery-button-toggle-min.js

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

Loading

0 comments on commit 125cd37

Please sign in to comment.