Permalink
Browse files

Gallery Build Tag: gallery-2011.03.23-22-20

  • Loading branch information...
1 parent 4de6cb5 commit 2fbd11b1270d6bbbb1576854a09d8d51545d7f2b YUI Builder committed Mar 23, 2011
Showing with 1,151 additions and 763 deletions.
  1. +72 −28 build/gallery-accordion/gallery-accordion-debug.js
  2. +4 −4 build/gallery-accordion/gallery-accordion-min.js
  3. +72 −28 build/gallery-accordion/gallery-accordion.js
  4. +336 −224 build/gallery-carousel/gallery-carousel-debug.js
  5. +2 −2 build/gallery-carousel/gallery-carousel-min.js
  6. +332 −220 build/gallery-carousel/gallery-carousel.js
  7. +23 −0 build/gallery-graphics-canvas/gallery-graphics-canvas-debug.js
  8. +2 −2 build/gallery-graphics-canvas/gallery-graphics-canvas-min.js
  9. +23 −0 build/gallery-graphics-canvas/gallery-graphics-canvas.js
  10. +16 −1 build/gallery-graphics-svg/gallery-graphics-svg-debug.js
  11. +3 −3 build/gallery-graphics-svg/gallery-graphics-svg-min.js
  12. +16 −1 build/gallery-graphics-svg/gallery-graphics-svg.js
  13. +22 −2 build/gallery-graphics-vml/gallery-graphics-vml-debug.js
  14. +2 −2 build/gallery-graphics-vml/gallery-graphics-vml-min.js
  15. +22 −2 build/gallery-graphics-vml/gallery-graphics-vml.js
  16. +1 −1 build/gallery-graphics/gallery-graphics-debug.js
  17. +1 −1 build/gallery-graphics/gallery-graphics-min.js
  18. +1 −1 build/gallery-graphics/gallery-graphics.js
  19. +10 −24 build/gallery-instancemanager/gallery-instancemanager-debug.js
  20. +1 −1 build/gallery-instancemanager/gallery-instancemanager-min.js
  21. +10 −24 build/gallery-instancemanager/gallery-instancemanager.js
  22. +88 −94 build/gallery-overlay-transition/gallery-overlay-transition-debug.js
  23. +1 −1 build/gallery-overlay-transition/gallery-overlay-transition-min.js
  24. +88 −94 build/gallery-overlay-transition/gallery-overlay-transition.js
  25. +1 −1 build/gallery-taglist/gallery-taglist-debug.js
  26. +1 −1 build/gallery-taglist/gallery-taglist-min.js
  27. +1 −1 build/gallery-taglist/gallery-taglist.js
  28. BIN build/gallerycss-xarno-skins/assets/growl/background-active.png
  29. BIN build/gallerycss-xarno-skins/assets/growl/background-active.png~upstream_master
  30. BIN build/gallerycss-xarno-skins/assets/growl/background.png
  31. BIN build/gallerycss-xarno-skins/assets/growl/background.png~upstream_master
  32. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite-bw.gif
  33. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite-bw.gif~upstream_master
  34. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite-bw.png
  35. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite-bw.png~upstream_master
  36. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite.gif
  37. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite.gif~upstream_master
  38. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite.png
  39. BIN build/gallerycss-xarno-skins/assets/growl/icon-sprite.png~upstream_master
  40. BIN build/gallerycss-xarno-skins/assets/smooth/background-active.png
  41. BIN build/gallerycss-xarno-skins/assets/smooth/background-active.png~upstream_master
  42. BIN build/gallerycss-xarno-skins/assets/smooth/background.png
  43. BIN build/gallerycss-xarno-skins/assets/smooth/background.png~upstream_master
  44. BIN build/gallerycss-xarno-skins/assets/smooth/caution.png
  45. BIN build/gallerycss-xarno-skins/assets/smooth/caution.png~upstream_master
  46. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite-bw.gif
  47. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite-bw.gif~upstream_master
  48. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite-bw.png
  49. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite-bw.png~upstream_master
  50. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite.gif
  51. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite.gif~upstream_master
  52. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite.png
  53. BIN build/gallerycss-xarno-skins/assets/smooth/icon-sprite.png~upstream_master
  54. BIN build/gallerycss-xarno-skins/assets/smooth/question.png
  55. BIN build/gallerycss-xarno-skins/assets/smooth/question.png~upstream_master
  56. BIN build/gallerycss-xarno-skins/assets/smooth/stop.png
  57. BIN build/gallerycss-xarno-skins/assets/smooth/stop.png~upstream_master
@@ -26,6 +26,7 @@ var Lang = Y.Lang,
BEFOREITEMADD = "beforeItemAdd",
ITEMADDED = "itemAdded",
+ ITEMCHOSEN = 'itemChosen',
BEFOREITEMREMOVE = "beforeItemRemove",
ITEMREMOVED = "itemRemoved",
BEFOREITEMERESIZED = "beforeItemResized",
@@ -237,6 +238,8 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
* @param config {Object} Configuration object literal for the Accordion
*/
initializer: function( config ) {
+ this._initEvents();
+
this.after( "render", Y.bind( this._afterRender, this ) );
},
@@ -265,19 +268,45 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
}
},
-
- /**
+ /**
* Binds an event to Accordion's contentBox.
*
* @method _bindItemChosenEvent
* @protected
*/
- _bindItemChosenEvent: function(itemChosenEvent) {
- var contentBox;
+ _bindItemChosenEvent: function(itemChosenEvent) {
+ var contentBox;
- contentBox = this.get( CONTENT_BOX );
- contentBox.delegate( itemChosenEvent, Y.bind( this._onItemChosenEvent, this ), '.yui3-widget-hd' );
- },
+ contentBox = this.get( CONTENT_BOX );
+ contentBox.delegate( itemChosenEvent, Y.bind( this._onItemChosenEvent, this ), '.yui3-widget-hd' );
+ },
+
+ /**
+ * Publishes Accordion's events
+ *
+ * @method _initEvents
+ * @protected
+ */
+ _initEvents: function(){
+ /**
+ * Signals that an item has been chosen by user, i.e. there was interaction with this item.
+ * The developer may prevent the action which follows (expanding, collapsing, closing, etc.) by preventing the default function, bound to this event.
+ *
+ * @event itemChosen
+ * @param event {Event.Facade} An Event Facade object with the following attribute specific properties added:
+ * <dl>
+ * <dt>item</dt>
+ * <dd>An <code>AccordionItem</code> item on which user has clicked or pressed key</dd>
+ * <dt>srcIconAlwaysVisible <code>Boolean</code></dt>
+ * <dd>True if user has clicked on 'set as always visible' icon</dd>
+ * <dt>srcIconClose <code>Boolean</code></dt>
+ * <dd>True if user has clicked on 'close' icon</dd>
+ * </dl>
+ */
+ this.publish( ITEMCHOSEN, {
+ defaultFn: this._onItemChosen
+ });
+ },
/**
* Contains items for collapsing
@@ -457,12 +486,23 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
*
* @method _onItemChosen
* @protected
- * @param item {Y.AccordionItem} The item on which user has clicked or pressed key
- * @param srcIconAlwaysVisible {Boolean} True if the user has clicked on always visible icon
- * @param srcIconClose {Boolean} True if the user has clicked on close icon
+ * @param event {Event.Facade} An Event Facade object with the following attribute specific properties added:
+ * <dl>
+ * <dt>item</dt>
+ * <dd>An <code>AccordionItem</code> item on which user has clicked or pressed key</dd>
+ * <dt>srcIconAlwaysVisible {Boolean}</dt>
+ * <dd>True if user has clicked on 'set as always visible' icon</dd>
+ * <dt>srcIconClose {Boolean}</dt>
+ * <dd>True if user has clicked on 'close' icon</dd>
+ * </dl>
*/
- _onItemChosen: function( item, srcIconAlwaysVisible, srcIconClose ){
- var toBeExcluded, alwaysVisible, expanded, collapseOthersOnExpand;
+ _onItemChosen: function( event ){
+ var toBeExcluded, alwaysVisible, expanded, collapseOthersOnExpand,
+ item, srcIconAlwaysVisible, srcIconClose;
+
+ item = event.item;
+ srcIconAlwaysVisible = event.srcIconAlwaysVisible;
+ srcIconClose = event.srcIconClose;
toBeExcluded = {};
collapseOthersOnExpand = this.get( COLLAPSEOTHERSONEXPAND );
@@ -1354,25 +1394,25 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
/**
* Add listener(s) to <code>itemChosen</code> event in Accordion's content box.
- * If itemChosen is an Array, this function will invoke multiple times _bindItemChosenEvent
+ * If itemChosen is an Array, this function will invoke multiple times _bindItemChosenEvent
*
* @method bindUI
* @protected
*/
bindUI: function(){
- var i, itemChosenEvent, length;
+ var i, itemChosenEvent, length;
- itemChosenEvent = this.get( 'itemChosen' );
+ itemChosenEvent = this.get( ITEMCHOSEN );
- if( Lang.isArray(itemChosenEvent) ){
- length = itemChosenEvent.length;
+ if( Lang.isArray(itemChosenEvent) ){
+ length = itemChosenEvent.length;
- for( i = 0; i < length; i++ ) {
- this._bindItemChosenEvent(itemChosenEvent[i]);
- }
- } else {
- this._bindItemChosenEvent(itemChosenEvent);
- }
+ for( i = 0; i < length; i++ ) {
+ this._bindItemChosenEvent(itemChosenEvent[i]);
+ }
+ } else {
+ this._bindItemChosenEvent(itemChosenEvent);
+ }
},
@@ -1397,7 +1437,11 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
srcIconAlwaysVisible = (iconAlwaysVisible === e.target);
srcIconClose = (iconClose === e.target);
- this._onItemChosen( item, srcIconAlwaysVisible, srcIconClose );
+ this.fire( ITEMCHOSEN, {
+ item: item,
+ srcIconAlwaysVisible: srcIconAlwaysVisible,
+ srcIconClose: srcIconClose
+ });
},
@@ -1669,7 +1713,7 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
/**
* @description The event on which Accordion should listen for user interactions.
* The value can be also 'mousedown', 'mouseup' or ['mouseenter','click'].
- * Mousedown event can be used if drag&drop is not enabled.
+ * Mousedown event can be used if drag&drop is not enabled.
*
* @attribute itemChosen
* @default click
@@ -1678,8 +1722,8 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
itemChosen: {
value: "click",
validator: function( value ) {
- return Lang.isString(value) || Lang.isArray(value);
- }
+ return Lang.isString(value) || Lang.isArray(value);
+ }
},
/**
@@ -2913,4 +2957,4 @@ Y.AccordionItem = Y.Base.create( AccItemName, Y.Widget, [Y.WidgetStdMod], {
-}, 'gallery-2011.02.23-19-01' ,{optional:['dd-constrain', 'dd-proxy', 'dd-drop'], requires:['event', 'anim-easing', 'widget', 'widget-stdmod', 'json-parse']});
+}, 'gallery-2011.03.23-22-20' ,{optional:['dd-constrain', 'dd-proxy', 'dd-drop'], requires:['event', 'anim-easing', 'widget', 'widget-stdmod', 'json-parse']});

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -26,6 +26,7 @@ var Lang = Y.Lang,
BEFOREITEMADD = "beforeItemAdd",
ITEMADDED = "itemAdded",
+ ITEMCHOSEN = 'itemChosen',
BEFOREITEMREMOVE = "beforeItemRemove",
ITEMREMOVED = "itemRemoved",
BEFOREITEMERESIZED = "beforeItemResized",
@@ -237,6 +238,8 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
* @param config {Object} Configuration object literal for the Accordion
*/
initializer: function( config ) {
+ this._initEvents();
+
this.after( "render", Y.bind( this._afterRender, this ) );
},
@@ -265,19 +268,45 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
}
},
-
- /**
+ /**
* Binds an event to Accordion's contentBox.
*
* @method _bindItemChosenEvent
* @protected
*/
- _bindItemChosenEvent: function(itemChosenEvent) {
- var contentBox;
+ _bindItemChosenEvent: function(itemChosenEvent) {
+ var contentBox;
- contentBox = this.get( CONTENT_BOX );
- contentBox.delegate( itemChosenEvent, Y.bind( this._onItemChosenEvent, this ), '.yui3-widget-hd' );
- },
+ contentBox = this.get( CONTENT_BOX );
+ contentBox.delegate( itemChosenEvent, Y.bind( this._onItemChosenEvent, this ), '.yui3-widget-hd' );
+ },
+
+ /**
+ * Publishes Accordion's events
+ *
+ * @method _initEvents
+ * @protected
+ */
+ _initEvents: function(){
+ /**
+ * Signals that an item has been chosen by user, i.e. there was interaction with this item.
+ * The developer may prevent the action which follows (expanding, collapsing, closing, etc.) by preventing the default function, bound to this event.
+ *
+ * @event itemChosen
+ * @param event {Event.Facade} An Event Facade object with the following attribute specific properties added:
+ * <dl>
+ * <dt>item</dt>
+ * <dd>An <code>AccordionItem</code> item on which user has clicked or pressed key</dd>
+ * <dt>srcIconAlwaysVisible <code>Boolean</code></dt>
+ * <dd>True if user has clicked on 'set as always visible' icon</dd>
+ * <dt>srcIconClose <code>Boolean</code></dt>
+ * <dd>True if user has clicked on 'close' icon</dd>
+ * </dl>
+ */
+ this.publish( ITEMCHOSEN, {
+ defaultFn: this._onItemChosen
+ });
+ },
/**
* Contains items for collapsing
@@ -457,12 +486,23 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
*
* @method _onItemChosen
* @protected
- * @param item {Y.AccordionItem} The item on which user has clicked or pressed key
- * @param srcIconAlwaysVisible {Boolean} True if the user has clicked on always visible icon
- * @param srcIconClose {Boolean} True if the user has clicked on close icon
+ * @param event {Event.Facade} An Event Facade object with the following attribute specific properties added:
+ * <dl>
+ * <dt>item</dt>
+ * <dd>An <code>AccordionItem</code> item on which user has clicked or pressed key</dd>
+ * <dt>srcIconAlwaysVisible {Boolean}</dt>
+ * <dd>True if user has clicked on 'set as always visible' icon</dd>
+ * <dt>srcIconClose {Boolean}</dt>
+ * <dd>True if user has clicked on 'close' icon</dd>
+ * </dl>
*/
- _onItemChosen: function( item, srcIconAlwaysVisible, srcIconClose ){
- var toBeExcluded, alwaysVisible, expanded, collapseOthersOnExpand;
+ _onItemChosen: function( event ){
+ var toBeExcluded, alwaysVisible, expanded, collapseOthersOnExpand,
+ item, srcIconAlwaysVisible, srcIconClose;
+
+ item = event.item;
+ srcIconAlwaysVisible = event.srcIconAlwaysVisible;
+ srcIconClose = event.srcIconClose;
toBeExcluded = {};
collapseOthersOnExpand = this.get( COLLAPSEOTHERSONEXPAND );
@@ -1354,25 +1394,25 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
/**
* Add listener(s) to <code>itemChosen</code> event in Accordion's content box.
- * If itemChosen is an Array, this function will invoke multiple times _bindItemChosenEvent
+ * If itemChosen is an Array, this function will invoke multiple times _bindItemChosenEvent
*
* @method bindUI
* @protected
*/
bindUI: function(){
- var i, itemChosenEvent, length;
+ var i, itemChosenEvent, length;
- itemChosenEvent = this.get( 'itemChosen' );
+ itemChosenEvent = this.get( ITEMCHOSEN );
- if( Lang.isArray(itemChosenEvent) ){
- length = itemChosenEvent.length;
+ if( Lang.isArray(itemChosenEvent) ){
+ length = itemChosenEvent.length;
- for( i = 0; i < length; i++ ) {
- this._bindItemChosenEvent(itemChosenEvent[i]);
- }
- } else {
- this._bindItemChosenEvent(itemChosenEvent);
- }
+ for( i = 0; i < length; i++ ) {
+ this._bindItemChosenEvent(itemChosenEvent[i]);
+ }
+ } else {
+ this._bindItemChosenEvent(itemChosenEvent);
+ }
},
@@ -1397,7 +1437,11 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
srcIconAlwaysVisible = (iconAlwaysVisible === e.target);
srcIconClose = (iconClose === e.target);
- this._onItemChosen( item, srcIconAlwaysVisible, srcIconClose );
+ this.fire( ITEMCHOSEN, {
+ item: item,
+ srcIconAlwaysVisible: srcIconAlwaysVisible,
+ srcIconClose: srcIconClose
+ });
},
@@ -1669,7 +1713,7 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
/**
* @description The event on which Accordion should listen for user interactions.
* The value can be also 'mousedown', 'mouseup' or ['mouseenter','click'].
- * Mousedown event can be used if drag&drop is not enabled.
+ * Mousedown event can be used if drag&drop is not enabled.
*
* @attribute itemChosen
* @default click
@@ -1678,8 +1722,8 @@ Y.Accordion = Y.Base.create( AccName, Y.Widget, [], {
itemChosen: {
value: "click",
validator: function( value ) {
- return Lang.isString(value) || Lang.isArray(value);
- }
+ return Lang.isString(value) || Lang.isArray(value);
+ }
},
/**
@@ -2913,4 +2957,4 @@ Y.AccordionItem = Y.Base.create( AccItemName, Y.Widget, [Y.WidgetStdMod], {
-}, 'gallery-2011.02.23-19-01' ,{optional:['dd-constrain', 'dd-proxy', 'dd-drop'], requires:['event', 'anim-easing', 'widget', 'widget-stdmod', 'json-parse']});
+}, 'gallery-2011.03.23-22-20' ,{optional:['dd-constrain', 'dd-proxy', 'dd-drop'], requires:['event', 'anim-easing', 'widget', 'widget-stdmod', 'json-parse']});
Oops, something went wrong.

0 comments on commit 2fbd11b

Please sign in to comment.