Permalink
Browse files

Gallery Build Tag: gallery-2012.08.01-13-16

  • Loading branch information...
YUI Builder
YUI Builder committed Aug 1, 2012
1 parent 4ae03bc commit 0f3cb54e241e4fe07cbbb1ba48dd307d783c9704
Showing with 2,392 additions and 159 deletions.
  1. +155 −0 build/gallery-autocomplete-list-group/gallery-autocomplete-list-group-debug.js
  2. +1 −0 build/gallery-autocomplete-list-group/gallery-autocomplete-list-group-min.js
  3. +155 −0 build/gallery-autocomplete-list-group/gallery-autocomplete-list-group.js
  4. +21 −21 build/gallery-bulkedit/gallery-bulkedit-debug.js
  5. +5 −5 build/gallery-bulkedit/gallery-bulkedit-min.js
  6. +21 −21 build/gallery-bulkedit/gallery-bulkedit.js
  7. +1 −1 build/gallery-imagecropper/assets/skins/sam/gallery-imagecropper.css
  8. +56 −53 build/gallery-imagecropper/gallery-imagecropper-debug.js
  9. +2 −2 build/gallery-imagecropper/gallery-imagecropper-min.js
  10. +56 −53 build/gallery-imagecropper/gallery-imagecropper.js
  11. +68 −0 build/gallery-imagesloaded/gallery-imagesloaded-debug.js
  12. +1 −0 build/gallery-imagesloaded/gallery-imagesloaded-min.js
  13. +68 −0 build/gallery-imagesloaded/gallery-imagesloaded.js
  14. +513 −0 build/gallery-masonry/gallery-masonry-debug.js
  15. +1 −0 build/gallery-masonry/gallery-masonry-min.js
  16. +513 −0 build/gallery-masonry/gallery-masonry.js
  17. +1 −1 build/gallery-multivalue-input/gallery-multivalue-input-debug.js
  18. +1 −1 build/gallery-multivalue-input/gallery-multivalue-input-min.js
  19. +1 −1 build/gallery-multivalue-input/gallery-multivalue-input.js
  20. +287 −0 build/gallery-nmpjaxplus/gallery-nmpjaxplus-debug.js
  21. +1 −0 build/gallery-nmpjaxplus/gallery-nmpjaxplus-min.js
  22. +282 −0 build/gallery-nmpjaxplus/gallery-nmpjaxplus.js
  23. +91 −0 build/gallery-time-format/gallery-time-format-debug.js
  24. +1 −0 build/gallery-time-format/gallery-time-format-min.js
  25. +90 −0 build/gallery-time-format/gallery-time-format.js
@@ -0,0 +1,155 @@
+YUI.add('gallery-autocomplete-list-group', function(Y) {
+
+var ACTIVE_ITEM = 'activeItem',
+ GROUP_ITEMS = 'groupItems';
+
+
+function acListGroup() {}
+
+Y.mix(acListGroup.prototype, {
+
+ GROUP_TEMPLATE: '<ul/>',
+ DIVIDER_TEMPLATE: '<div/>',
+
+ initializer: function() {
+
+ // If this instance is to be grouped
+ if (this.get('group') === true) {
+ this._add = this._groupAdd;
+ this._activateNextItem = this._activateNextGroupItem;
+ this._activatePrevItem = this._activatePrevGroupItem;
+ }
+
+ },
+
+ /*
+ * Creates the list of items to be added to the dom
+ */
+ _groupAdd: function (items) {
+ var itemNodes = {},
+ groups = this.get('groupOrder');
+
+ Y.Array.each(groups, function(group) {
+ itemNodes[group] = [];
+ });
+
+ var groupItems = [];
+
+ Y.Array.each(Y.Lang.isArray(items) ? items : [items], function (item) {
+ var groupItem = this._createItemNode(item).setData('result', item);
+ groupItems.push(groupItem);
+ itemNodes[item.raw.source].push(groupItem);
+ }, this);
+
+ this.set(GROUP_ITEMS, groupItems);
+
+ Y.Array.each(groups, function(group) {
+ itemNodes[group] = Y.all(itemNodes[group]);
+ var groupNode = Y.Node.create(this.GROUP_TEMPLATE);
+ groupNode.insert(itemNodes[group]);
+ this._listNode.append(groupNode);
+ this._listNode.append(Y.Node.create(this.DIVIDER_TEMPLATE));
+ }, this);
+ },
+
+ _activateNextGroupItem: function () {
+ var item = this.get(ACTIVE_ITEM),
+ groupItems = this.get(GROUP_ITEMS),
+ nextItem;
+
+ if (item) {
+ Y.Array.some(groupItems, function(groupItem, index) {
+ if (item === groupItem) {
+ nextItem = groupItems[index + 1];
+ return true;
+ }
+ });
+ } else {
+ nextItem = this._getFirstItemNode();
+ }
+
+ this.set(ACTIVE_ITEM, nextItem);
+
+ return this;
+ },
+
+ _activatePrevGroupItem: function () {
+ var item = this.get(ACTIVE_ITEM),
+ groupItems = this.get(GROUP_ITEMS);
+
+ Y.Array.some(groupItems, function(groupItem, index) {
+ if (item === groupItem) {
+ var index = index-1;
+ if (index < 0) {
+ index = groupItems.length-1;
+ }
+ prevItem = groupItems[index];
+ return true;
+ }
+ });
+
+ this.set(ACTIVE_ITEM, prevItem || null);
+
+ return this;
+ },
+
+});
+
+acListGroup.ATTRS = {
+
+ /*
+ * Array of the Y.Node result items
+ *
+ * @attribute groupItems
+ * @default []
+ * @type array
+ */
+ groupItems: {
+ value: []
+ },
+
+ /*
+ * Toggle to display results in groups
+ *
+ * @attribute group
+ * @default false
+ * @type bool
+ */
+ group: {
+ value: false
+ },
+
+ /*
+ * The string to filter the results by
+ *
+ * @attribute groupFilter
+ * @default ""
+ * @type string
+ */
+ groupFilter: {
+ value: ''
+ },
+
+ /*
+ * The order in which you want the groups
+ * displayed in the result list.
+ *
+ * example:
+ * ['code', 'description']
+ *
+ * @attribute groupOrder
+ * @default []
+ * @type array
+ */
+ groupOrder: {
+ value: []
+ },
+
+}
+
+Y.AutoComplete.ListGroup = acListGroup;
+
+Y.Base.mix(Y.AutoComplete, [acListGroup]);
+
+
+}, 'gallery-2012.08.01-13-16' ,{requires:['autocomplete-list'], skinnable:false});

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

Oops, something went wrong.
@@ -0,0 +1,155 @@
+YUI.add('gallery-autocomplete-list-group', function(Y) {
+
+var ACTIVE_ITEM = 'activeItem',
+ GROUP_ITEMS = 'groupItems';
+
+
+function acListGroup() {}
+
+Y.mix(acListGroup.prototype, {
+
+ GROUP_TEMPLATE: '<ul/>',
+ DIVIDER_TEMPLATE: '<div/>',
+
+ initializer: function() {
+
+ // If this instance is to be grouped
+ if (this.get('group') === true) {
+ this._add = this._groupAdd;
+ this._activateNextItem = this._activateNextGroupItem;
+ this._activatePrevItem = this._activatePrevGroupItem;
+ }
+
+ },
+
+ /*
+ * Creates the list of items to be added to the dom
+ */
+ _groupAdd: function (items) {
+ var itemNodes = {},
+ groups = this.get('groupOrder');
+
+ Y.Array.each(groups, function(group) {
+ itemNodes[group] = [];
+ });
+
+ var groupItems = [];
+
+ Y.Array.each(Y.Lang.isArray(items) ? items : [items], function (item) {
+ var groupItem = this._createItemNode(item).setData('result', item);
+ groupItems.push(groupItem);
+ itemNodes[item.raw.source].push(groupItem);
+ }, this);
+
+ this.set(GROUP_ITEMS, groupItems);
+
+ Y.Array.each(groups, function(group) {
+ itemNodes[group] = Y.all(itemNodes[group]);
+ var groupNode = Y.Node.create(this.GROUP_TEMPLATE);
+ groupNode.insert(itemNodes[group]);
+ this._listNode.append(groupNode);
+ this._listNode.append(Y.Node.create(this.DIVIDER_TEMPLATE));
+ }, this);
+ },
+
+ _activateNextGroupItem: function () {
+ var item = this.get(ACTIVE_ITEM),
+ groupItems = this.get(GROUP_ITEMS),
+ nextItem;
+
+ if (item) {
+ Y.Array.some(groupItems, function(groupItem, index) {
+ if (item === groupItem) {
+ nextItem = groupItems[index + 1];
+ return true;
+ }
+ });
+ } else {
+ nextItem = this._getFirstItemNode();
+ }
+
+ this.set(ACTIVE_ITEM, nextItem);
+
+ return this;
+ },
+
+ _activatePrevGroupItem: function () {
+ var item = this.get(ACTIVE_ITEM),
+ groupItems = this.get(GROUP_ITEMS);
+
+ Y.Array.some(groupItems, function(groupItem, index) {
+ if (item === groupItem) {
+ var index = index-1;
+ if (index < 0) {
+ index = groupItems.length-1;
+ }
+ prevItem = groupItems[index];
+ return true;
+ }
+ });
+
+ this.set(ACTIVE_ITEM, prevItem || null);
+
+ return this;
+ },
+
+});
+
+acListGroup.ATTRS = {
+
+ /*
+ * Array of the Y.Node result items
+ *
+ * @attribute groupItems
+ * @default []
+ * @type array
+ */
+ groupItems: {
+ value: []
+ },
+
+ /*
+ * Toggle to display results in groups
+ *
+ * @attribute group
+ * @default false
+ * @type bool
+ */
+ group: {
+ value: false
+ },
+
+ /*
+ * The string to filter the results by
+ *
+ * @attribute groupFilter
+ * @default ""
+ * @type string
+ */
+ groupFilter: {
+ value: ''
+ },
+
+ /*
+ * The order in which you want the groups
+ * displayed in the result list.
+ *
+ * example:
+ * ['code', 'description']
+ *
+ * @attribute groupOrder
+ * @default []
+ * @type array
+ */
+ groupOrder: {
+ value: []
+ },
+
+}
+
+Y.AutoComplete.ListGroup = acListGroup;
+
+Y.Base.mix(Y.AutoComplete, [acListGroup]);
+
+
+}, 'gallery-2012.08.01-13-16' ,{requires:['autocomplete-list'], skinnable:false});
Oops, something went wrong.

0 comments on commit 0f3cb54

Please sign in to comment.