From 11bce74e02cbf4088fb1de6a4b0f13f396321b72 Mon Sep 17 00:00:00 2001 From: James Seppi Date: Wed, 21 Jan 2015 09:27:52 -0600 Subject: [PATCH] update dist, bump version --- bower.json | 2 +- dist/angular-dropdowns.css | 6 ++---- dist/angular-dropdowns.js | 8 ++++---- dist/angular-dropdowns.min.js | 2 +- package.json | 2 +- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/bower.json b/bower.json index 29cf8d3..5902630 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-dropdowns", - "version": "0.4.1", + "version": "0.5.0", "homepage": "https://github.com/jseppi/angular-dropdowns", "authors": [ "James Seppi (http://github.com/jseppi)", diff --git a/dist/angular-dropdowns.css b/dist/angular-dropdowns.css index 9476f87..d922465 100644 --- a/dist/angular-dropdowns.css +++ b/dist/angular-dropdowns.css @@ -51,7 +51,6 @@ border: 1px solid rgba(0,0,0,0.17); box-shadow: 0 0 5px rgba(0,0,0,0.1); font-weight: normal; - transition: all 0.2s ease-in; list-style: none; /* Hiding */ @@ -77,7 +76,7 @@ color: #8aa8bd; border-bottom: 1px solid #e6e8ea; box-shadow: inset 0 1px 0 rgba(255,255,255,1); - transition: all 0.3s ease-out; + cursor: pointer; } .wrap-dd-select .dropdown li i { @@ -152,7 +151,6 @@ border: 1px solid rgba(0,0,0,0.17); box-shadow: 0 0 5px rgba(0,0,0,0.1); font-weight: normal; - transition: all 0.2s ease-in; list-style: none; /* Hiding */ @@ -178,7 +176,7 @@ color: #8aa8bd; border-bottom: 1px solid #e6e8ea; box-shadow: inset 0 1px 0 rgba(255,255,255,1); - transition: all 0.3s ease-out; + cursor: pointer; } .wrap-dd-menu .dropdown li i { diff --git a/dist/angular-dropdowns.js b/dist/angular-dropdowns.js index 7d726db..69eee1e 100644 --- a/dist/angular-dropdowns.js +++ b/dist/angular-dropdowns.js @@ -21,7 +21,7 @@ dd.run(['$templateCache', function ($templateCache) { ].join('')); $templateCache.put('ngDropdowns/templates/dropdownSelectItem.html', [ - '
  • ', + '
  • ', '', '', - '{{dropdownSelectItem.text}}', + '{{dropdownSelectItem[dropdownItemLabel]}}', '', '
  • ' ].join('')); @@ -45,7 +45,7 @@ dd.run(['$templateCache', function ($templateCache) { ].join('')); $templateCache.put('ngDropdowns/templates/dropdownMenuItem.html', [ - '
  • ', + '
  • ', '', '', - '{{dropdownMenuItem.text}}', + '{{dropdownMenuItem[dropdownItemLabel]}}', '', '
  • ' ].join('')); diff --git a/dist/angular-dropdowns.min.js b/dist/angular-dropdowns.min.js index 335b69c..ae0d823 100644 --- a/dist/angular-dropdowns.min.js +++ b/dist/angular-dropdowns.min.js @@ -1,4 +1,4 @@ /** * @license MIT http://jseppi.mit-license.org/license.html */ -!function(e,o){"use strict";var n=o.module("ngDropdowns",[]);n.run(["$templateCache",function(e){e.put("ngDropdowns/templates/dropdownSelect.html",['
    ','{{dropdownModel[labelField]}}','","
    "].join("")),e.put("ngDropdowns/templates/dropdownSelectItem.html",["
  • ",'',"{{dropdownSelectItem[dropdownItemLabel]}}","",'',"{{dropdownSelectItem.text}}","","
  • "].join("")),e.put("ngDropdowns/templates/dropdownMenu.html",['"].join("")),e.put("ngDropdowns/templates/dropdownMenuItem.html",["
  • ",'',"{{dropdownMenuItem[dropdownItemLabel]}}","",'',"{{dropdownMenuItem.text}}","","
  • "].join(""))}]),n.directive("dropdownSelect",["DropdownService",function(e){return{restrict:"A",replace:!0,scope:{dropdownSelect:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(n,t,d){n.labelField=d.dropdownItemLabel||"text",e.register(t),this.select=function(e){e!==n.dropdownModel&&o.copy(e,n.dropdownModel),n.dropdownOnchange({selected:e})},t.bind("click",function(o){o.stopPropagation(),e.toggleActive(t)}),n.$on("$destroy",function(){e.unregister(t)})}],templateUrl:"ngDropdowns/templates/dropdownSelect.html"}}]),n.directive("dropdownSelectItem",[function(){return{require:"^dropdownSelect",replace:!0,scope:{dropdownItemLabel:"=",dropdownSelectItem:"="},link:function(e,o,n,t){e.selectItem=function(){e.dropdownSelectItem.href||t.select(e.dropdownSelectItem)}},templateUrl:"ngDropdowns/templates/dropdownSelectItem.html"}}]),n.directive("dropdownMenu",["$parse","$compile","DropdownService","$templateCache",function(e,n,t,d){return{restrict:"A",replace:!1,scope:{dropdownMenu:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(e,r,l){e.labelField=l.dropdownItemLabel||"text";var i=o.element(d.get("ngDropdowns/templates/dropdownMenu.html"));i.data("$dropdownMenuController",this);var p=n(i)(e),c=o.element('
    ');r.replaceWith(c),c.append(r),c.append(p),t.register(p),this.select=function(n){n!==e.dropdownModel&&o.copy(n,e.dropdownModel),e.dropdownOnchange({selected:n})},r.bind("click",function(e){e.stopPropagation(),t.toggleActive(p)}),e.$on("$destroy",function(){t.unregister(p)})}]}}]),n.directive("dropdownMenuItem",[function(){return{require:"^dropdownMenu",replace:!0,scope:{dropdownMenuItem:"=",dropdownItemLabel:"="},link:function(e,o,n,t){e.selectItem=function(){e.dropdownMenuItem.href||t.select(e.dropdownMenuItem)}},templateUrl:"ngDropdowns/templates/dropdownMenuItem.html"}}]),n.factory("DropdownService",["$document",function(e){var n=e.find("body"),t={},d=[];return n.bind("click",function(){o.forEach(d,function(e){e.removeClass("active")})}),t.register=function(e){d.push(e)},t.unregister=function(e){var o;o=d.indexOf(e),o>-1&&d.splice(o,1)},t.toggleActive=function(e){o.forEach(d,function(o){o!==e&&o.removeClass("active")}),e.toggleClass("active")},t}])}(window,window.angular); \ No newline at end of file +!function(e,o){"use strict";var n=o.module("ngDropdowns",[]);n.run(["$templateCache",function(e){e.put("ngDropdowns/templates/dropdownSelect.html",['
    ','{{dropdownModel[labelField]}}','","
    "].join("")),e.put("ngDropdowns/templates/dropdownSelectItem.html",["
  • ",'',"{{dropdownSelectItem[dropdownItemLabel]}}","",'',"{{dropdownSelectItem[dropdownItemLabel]}}","","
  • "].join("")),e.put("ngDropdowns/templates/dropdownMenu.html",['"].join("")),e.put("ngDropdowns/templates/dropdownMenuItem.html",["
  • ",'',"{{dropdownMenuItem[dropdownItemLabel]}}","",'',"{{dropdownMenuItem[dropdownItemLabel]}}","","
  • "].join(""))}]),n.directive("dropdownSelect",["DropdownService",function(e){return{restrict:"A",replace:!0,scope:{dropdownSelect:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(n,d,t){n.labelField=t.dropdownItemLabel||"text",e.register(d),this.select=function(e){e!==n.dropdownModel&&o.copy(e,n.dropdownModel),n.dropdownOnchange({selected:e})},d.bind("click",function(o){o.stopPropagation(),e.toggleActive(d)}),n.$on("$destroy",function(){e.unregister(d)})}],templateUrl:"ngDropdowns/templates/dropdownSelect.html"}}]),n.directive("dropdownSelectItem",[function(){return{require:"^dropdownSelect",replace:!0,scope:{dropdownItemLabel:"=",dropdownSelectItem:"="},link:function(e,o,n,d){e.selectItem=function(){e.dropdownSelectItem.href||d.select(e.dropdownSelectItem)}},templateUrl:"ngDropdowns/templates/dropdownSelectItem.html"}}]),n.directive("dropdownMenu",["$parse","$compile","DropdownService","$templateCache",function(e,n,d,t){return{restrict:"A",replace:!1,scope:{dropdownMenu:"=",dropdownModel:"=",dropdownOnchange:"&"},controller:["$scope","$element","$attrs",function(e,r,l){e.labelField=l.dropdownItemLabel||"text";var i=o.element(t.get("ngDropdowns/templates/dropdownMenu.html"));i.data("$dropdownMenuController",this);var p=n(i)(e),c=o.element('
    ');r.replaceWith(c),c.append(r),c.append(p),d.register(p),this.select=function(n){n!==e.dropdownModel&&o.copy(n,e.dropdownModel),e.dropdownOnchange({selected:n})},r.bind("click",function(e){e.stopPropagation(),d.toggleActive(p)}),e.$on("$destroy",function(){d.unregister(p)})}]}}]),n.directive("dropdownMenuItem",[function(){return{require:"^dropdownMenu",replace:!0,scope:{dropdownMenuItem:"=",dropdownItemLabel:"="},link:function(e,o,n,d){e.selectItem=function(){e.dropdownMenuItem.href||d.select(e.dropdownMenuItem)}},templateUrl:"ngDropdowns/templates/dropdownMenuItem.html"}}]),n.factory("DropdownService",["$document",function(e){var n=e.find("body"),d={},t=[];return n.bind("click",function(){o.forEach(t,function(e){e.removeClass("active")})}),d.register=function(e){t.push(e)},d.unregister=function(e){var o;o=t.indexOf(e),o>-1&&t.splice(o,1)},d.toggleActive=function(e){o.forEach(t,function(o){o!==e&&o.removeClass("active")}),e.toggleClass("active")},d}])}(window,window.angular); \ No newline at end of file diff --git a/package.json b/package.json index c7290bd..b179076 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-dropdowns", - "version": "0.3.1", + "version": "0.5.0", "author": { "name": "James Seppi", "email": "james.seppi@gmail.com",