ui_alchemy-rails 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,14 @@
1
1
  @import "ui_alchemy/alchemy/alchemy";
2
2
 
3
+ $font_path: 'alchemy/' !default;
3
4
 
4
5
  @font-face {
5
6
  font-family: 'Liberation Sans';
6
7
  src: local('Liberation Sans'), local('LiberationSans'), local('Liberation-Sans'),
7
- url('alchemy/LiberationSans-Regular-webfont.eot?#iefix') format('eot'),
8
- url('alchemy/LiberationSans-Regular-webfont.woff') format('woff'),
9
- url('alchemy/LiberationSans-Regular-webfont.ttf') format('truetype'),
10
- url('alchemy/LiberationSans-Regular-webfont.svg#webfontLfr8h6FA') format('svg');
8
+ url($font_path + 'LiberationSans-Regular-webfont.eot?#iefix') format('eot'),
9
+ url($font_path + 'LiberationSans-Regular-webfont.woff') format('woff'),
10
+ url($font_path + 'LiberationSans-Regular-webfont.ttf') format('truetype'),
11
+ url($font_path + 'LiberationSans-Regular-webfont.svg#webfontLfr8h6FA') format('svg');
11
12
  font-weight: normal;
12
13
  font-style: normal;
13
14
 
@@ -16,9 +17,9 @@
16
17
  @font-face {
17
18
  font-family: 'Liberation Sans';
18
19
  src: local('Liberation Sans Italic'), local('LiberationSansItalic'), local('Liberation-Sans-Italic'),
19
- url('alchemy/LiberationSans-Italic-webfont.woff') format('woff'),
20
- url('alchemy/LiberationSans-Italic-webfont.ttf') format('truetype'),
21
- url('alchemy/LiberationSans-Italic-webfont.svg#webfont8TmwkzPJ') format('svg');
20
+ url($font_path + 'LiberationSans-Italic-webfont.woff') format('woff'),
21
+ url($font_path + 'LiberationSans-Italic-webfont.ttf') format('truetype'),
22
+ url($font_path + 'LiberationSans-Italic-webfont.svg#webfont8TmwkzPJ') format('svg');
22
23
  font-weight: normal;
23
24
  font-style: italic;
24
25
  }
@@ -26,9 +27,9 @@
26
27
  @font-face {
27
28
  font-family: 'Liberation Sans';
28
29
  src: local('Liberation Sans Bold'), local('LiberationSansBold'), local('Liberation-Sans-Bold'),
29
- url('alchemy/LiberationSans-Bold-webfont.woff') format('woff'),
30
- url('alchemy/LiberationSans-Bold-webfont.ttf') format('truetype'),
31
- url('alchemy/LiberationSans-Bold-webfont.svg#webfontHyWb8e07') format('svg');
30
+ url($font_path + 'LiberationSans-Bold-webfont.woff') format('woff'),
31
+ url($font_path + 'LiberationSans-Bold-webfont.ttf') format('truetype'),
32
+ url($font_path + 'LiberationSans-Bold-webfont.svg#webfontHyWb8e07') format('svg');
32
33
  font-weight: bold;
33
34
  font-style: normal;
34
35
  }
@@ -36,9 +37,9 @@
36
37
  @font-face {
37
38
  font-family: 'Liberation Sans';
38
39
  src: local('Liberation Sans Bold Italic'), local('LiberationSansBoldItalic'), local('Liberation-Sans-Bold-Italic'),
39
- url('alchemy/LiberationSans-BoldItalic-webfont.woff') format('woff'),
40
- url('alchemy/LiberationSans-BoldItalic-webfont.ttf') format('truetype'),
41
- url('alchemy/LiberationSans-BoldItalic-webfont.svg#webfont8uGO27Bu') format('svg');
40
+ url($font_path + 'LiberationSans-BoldItalic-webfont.woff') format('woff'),
41
+ url($font_path + 'LiberationSans-BoldItalic-webfont.ttf') format('truetype'),
42
+ url($font_path + 'LiberationSans-BoldItalic-webfont.svg#webfont8uGO27Bu') format('svg');
42
43
  font-weight: bold;
43
44
  font-style: italic;
44
45
  }
@@ -1,12 +1,14 @@
1
1
  @import "ui_alchemy/alchemy/alchemy";
2
2
 
3
+ $font_path: 'alchemy/' !default;
4
+
3
5
  @font-face {
4
6
  font-family: 'Overpass';
5
7
  src: local("Overpass"),
6
- url('alchemy/overpass_regular-web.eot?#iefix') format('eot'),
7
- url('alchemy/overpass_regular-web.woff') format('woff'),
8
- url('alchemy/overpass_regular-web.ttf') format('truetype'),
9
- url('alchemy/overpass_regular-web.svg#webfontLTZe4IYH') format('svg');
8
+ url($font_path + 'overpass_regular-web.eot?#iefix') format('eot'),
9
+ url($font_path + 'overpass_regular-web.woff') format('woff'),
10
+ url($font_path + 'overpass_regular-web.ttf') format('truetype'),
11
+ url($font_path + 'overpass_regular-web.svg#webfontLTZe4IYH') format('svg');
10
12
  font-weight: normal;
11
13
  font-style: normal;
12
14
  }
@@ -14,10 +16,10 @@
14
16
  @font-face {
15
17
  font-family: 'Overpass';
16
18
  src: local("Overpass Bold"), local("OverpassBold"),
17
- url('alchemy/overpass_bold-web.eot?#iefix') format('eot'),
18
- url('alchemy/overpass_bold-web.woff') format('woff'),
19
- url('alchemy/overpass_bold-web.ttf') format('truetype'),
20
- url('alchemy/overpass_bold-web.svg#webfontzAU82Ltw') format('svg');
19
+ url($font_path + 'overpass_bold-web.eot?#iefix') format('eot'),
20
+ url($font_path + 'overpass_bold-web.woff') format('woff'),
21
+ url($font_path + 'overpass_bold-web.ttf') format('truetype'),
22
+ url($font_path + 'overpass_bold-web.svg#webfontzAU82Ltw') format('svg');
21
23
  font-weight: bold;
22
24
  font-style: normal;
23
25
  }
@@ -1,5 +1,5 @@
1
1
  module UIAlchemy
2
2
  module Rails
3
- VERSION = "1.0.10"
3
+ VERSION = "1.0.11"
4
4
  end
5
5
  end
@@ -48,6 +48,8 @@
48
48
  * @param String options[select] true or false, when true text is highlighted ??
49
49
  * @param String options[placeholder] Placeholder text or html to insert when element is empty. **
50
50
  * @param String options[onblur] 'cancel', 'submit', 'ignore' or function ??
51
+ *
52
+ * @param Integer options[maxlength] maxlength value for textarea
51
53
  *
52
54
  * @param Function options[onsubmit] function(settings, original) { ... } called before submit
53
55
  * @param Function options[onreset] function(settings, original) { ... } called before reset
@@ -473,6 +475,9 @@
473
475
  /* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */
474
476
  //input[0].setAttribute('autocomplete','off');
475
477
  input.attr('autocomplete','off');
478
+ if (settings.maxlength) {
479
+ input.attr('maxlength', settings.maxlength);
480
+ }
476
481
  $(this).append(input);
477
482
  return(input);
478
483
  }
@@ -490,6 +495,9 @@
490
495
  } else if (settings.width != "none") {
491
496
  textarea.width(settings.width);
492
497
  }
498
+ if (settings.maxlength) {
499
+ textarea.attr('maxlength', settings.maxlength);
500
+ }
493
501
  $(this).append(textarea);
494
502
  return(textarea);
495
503
  }
@@ -1,111 +1,65 @@
1
1
  angular.module("alch-templates").run(["$templateCache", function($templateCache) {
2
+
2
3
  $templateCache.put("component/templates/dropdown.html",
3
- "<ul class=\"dropdown\" " +
4
- " ng-class=\"{ 'dropdown-right' : isRight(dropdown.direction), 'dropdown-active' : dropdown.show }\">" +
5
- " <li ng-repeat=\"item in dropdown\"" +
6
- " ng-mouseenter=\"set_hover(item, true)\"" +
7
- " ng-mouseleave=\"set_hover(item, false)\">" +
8
- " " +
9
- " <a class=\"dropdown-menu-item-link\" href=\"{{ item.url }}\">" +
10
- " {{ item.display }}" +
11
- " <i class=\"right_arrow_icon-grey flyout-indicator\" ng-show=\"item.type=='flyout'\"></i>" +
12
- " </a>" +
13
- " <ul alch-flyout=\"item.items\" ng-show=\"flyout.show\" ng-class=\"{ 'dropdown-active' : dropdown.show }\"></ul>" +
14
- " </li>" +
15
- "</ul>" +
16
- "");
17
- }]);
4
+ "<ul class=\"dropdown\"\n" +
5
+ " ng-class=\"{ 'dropdown-right' : isRight(dropdown.direction), 'dropdown-active' : dropdown.show }\">\n" +
6
+ " <li class=\"dropdown-item\"\n" +
7
+ " ng-repeat=\"item in dropdown\"\n" +
8
+ " ng-mouseenter=\"setHover(item, true)\"\n" +
9
+ " ng-mouseleave=\"setHover(item, false)\">\n" +
10
+ "\n" +
11
+ " <a class=\"dropdown-item-link\"\n" +
12
+ " href=\"{{ item.url }}\"\n" +
13
+ " ng-class=\"{'menu-anchor' : item.type, 'dropdown-item-link-active' : item.active }\">\n" +
14
+ " <span class=\"fl\">{{ item.display }}</span>\n" +
15
+ " <i class=\"icon-caret-right flyout-indicator\" ng-show=\"item.type=='flyout'\"></i>\n" +
16
+ " </a>\n" +
17
+ " <ul alch-flyout=\"item.items\"\n" +
18
+ " ng-show=\"flyout.show\"\n" +
19
+ " ng-class=\"{ 'dropdown-active' : dropdown.show }\">\n" +
20
+ " </ul>\n" +
21
+ " </li>\n" +
22
+ "</ul>\n"
23
+ );
18
24
 
19
- angular.module("alch-templates").run(["$templateCache", function($templateCache) {
20
25
  $templateCache.put("component/templates/flyout.html",
21
- "<ul class=\"flyout\">" +
22
- " <li ng-repeat=\"item in flyout\"" +
23
- " ng-class=\"{ 'dropdown-highlight' : item.active }\"" +
24
- " ng-mouseenter=\"set_hover(item, true)\"" +
25
- " ng-mouseleave=\"set_hover(item, false)\">" +
26
- " " +
27
- " <a href=\"{{ item.url }}\">{{ item.display }}</a>" +
28
- " </li>" +
29
- "</ul>" +
30
- "");
31
- }]);
26
+ "<ul class=\"flyout\">\n" +
27
+ " <li class=\"flyout-item\"\n" +
28
+ " ng-repeat=\"item in flyout\"\n" +
29
+ " ng-class=\"{ 'dropdown-highlight' : item.active }\"\n" +
30
+ " ng-mouseenter=\"setHover(item, true)\"\n" +
31
+ " ng-mouseleave=\"setHover(item, false)\">\n" +
32
+ " \n" +
33
+ " <a class=\"flyout-item-link\" href=\"{{ item.url }}\">{{ item.display }}</a>\n" +
34
+ " </li>\n" +
35
+ "</ul>\n"
36
+ );
32
37
 
33
- angular.module("alch-templates").run(["$templateCache", function($templateCache) {
34
38
  $templateCache.put("component/templates/menu.html",
35
- "<nav ng-class=\"menu.location\">" +
36
- " <ul class=\"menu-container\">" +
37
- " <li class=\"menu-item\"" +
38
- " ng-repeat=\"item in menu.items\"" +
39
- " ng-mouseenter=\"handle_hover(item, true)\"" +
40
- " ng-mouseleave=\"handle_hover(item, false)\">" +
41
- " " +
42
- " <a href=\"{{ item.url }}\" " +
43
- " ng-class=\"{ 'active-item' : item.active }\"" +
44
- " class=\"menu-item-link\">" +
45
- " " +
46
- " {{ item.display }}" +
47
- " <i class=\"down_arrow_icon-white\" ng-show=\"item.type == 'dropdown'\"></i>" +
48
- " </a>" +
49
- " <ul alch-dropdown=\"item.items\"></ul>" +
50
- " </li>" +
51
- " </ul>" +
52
- "</nav>" +
53
- "");
39
+ "<nav ng-class=\"menu.location\">\n" +
40
+ " <ul class=\"menu-container\">\n" +
41
+ "\n" +
42
+ " <li class=\"menu-item\"\n" +
43
+ " ng-repeat=\"item in menu.items\"\n" +
44
+ " ng-mouseenter=\"handleHover(item, true)\"\n" +
45
+ " ng-mouseleave=\"handleHover(item, false)\">\n" +
46
+ "\n" +
47
+ " <a href=\"{{ item.url }}\"\n" +
48
+ " ng-class=\"{ 'active-item' : item.active, 'menu-anchor' : item.type }\"\n" +
49
+ " class=\"menu-item-link\"> \n" +
50
+ " <span ng-bind-html-unsafe=\"item.display\"></span>\n" +
51
+ " <i class=\"icon-caret-down\" ng-show=\"item.type == 'dropdown'\"></i>\n" +
52
+ " </a>\n" +
53
+ " <ul alch-dropdown=\"item.items\"></ul>\n" +
54
+ " </li>\n" +
55
+ " </ul>\n" +
56
+ "</nav>\n"
57
+ );
58
+
54
59
  }]);
55
60
 
56
61
  'use strict';
57
62
 
58
- angular.module('alchemy').directive('alchMenu', ['$window', function($window){
59
- return {
60
- restrict: 'EA',
61
- transclude: true,
62
- replace: true,
63
- scope: {
64
- 'menu': '=alchMenu',
65
- 'compact' : '@'
66
- },
67
- templateUrl: 'component/templates/menu.html',
68
-
69
- controller: ['$scope', function($scope) {
70
- $scope.dropdown = {};
71
-
72
- $scope.handle_hover = function(item, mousein){
73
- if( item.type === 'dropdown' && mousein ){
74
- item.active = true;
75
- $scope.dropdown = item.items;
76
- $scope.dropdown.show = true;
77
- $scope.dropdown.direction = $scope.menu.location;
78
- } else {
79
- $scope.dropdown.show = false;
80
-
81
- if( item !== $scope.menu.active_item ){
82
- item.active = false;
83
- }
84
- }
85
- };
86
-
87
- }],
88
-
89
- link: function(scope, element, attrs){
90
- var element_original_offset;
91
-
92
- if( attrs.compact !== undefined ){
93
- element_original_offset = $(element).offset().top;
94
-
95
- angular.element($window).bind('scroll', function(){
96
- var window_scroll_top = $($window).scrollTop();
97
-
98
- if( window_scroll_top > element_original_offset + 2 ){
99
- element.parent().addClass('compact');
100
- } else if( window_scroll_top < element_original_offset ) {
101
- element.parent().removeClass('compact');
102
- }
103
- });
104
- }
105
- }
106
- };
107
- }]);
108
-
109
63
  angular.module('alchemy').directive('alchDropdown', function(){
110
64
  return {
111
65
  restrict: 'EA',
@@ -116,30 +70,32 @@ angular.module('alchemy').directive('alchDropdown', function(){
116
70
  },
117
71
  templateUrl: 'component/templates/dropdown.html',
118
72
 
119
- controller: ['$scope', function($scope){
120
- $scope.set_hover = function(item, mousein){
121
- if( mousein ){
73
+ controller: ['$scope', function($scope) {
74
+ $scope.setHover = function(item, mousein) {
75
+ if (mousein) {
122
76
  item.active = true;
123
77
 
124
- if( item.type === 'flyout' ){
78
+ if (item.type === 'flyout') {
125
79
  $scope.flyout = item.items;
126
80
  $scope.flyout.show = true;
127
81
  }
128
82
  } else {
129
- if( $scope.flyout ){
83
+ if ($scope.flyout) {
130
84
  $scope.flyout.show = false;
131
85
  }
132
86
  item.active = false;
133
87
  }
134
88
  };
135
89
 
136
- $scope.isRight = function(direction){
90
+ $scope.isRight = function(direction) {
137
91
  return direction === 'right';
138
92
  };
139
93
  }]
140
94
  };
141
95
  });
142
96
 
97
+ 'use strict';
98
+
143
99
  angular.module('alchemy').directive('alchFlyout', function(){
144
100
  return {
145
101
  restrict: 'EA',
@@ -150,9 +106,9 @@ angular.module('alchemy').directive('alchFlyout', function(){
150
106
  },
151
107
  templateUrl: 'component/templates/flyout.html',
152
108
 
153
- controller: ['$scope', function($scope){
154
- $scope.set_hover = function(item, mousein){
155
- if( mousein ){
109
+ controller: ['$scope', function($scope) {
110
+ $scope.setHover = function(item, mousein) {
111
+ if (mousein) {
156
112
  item.active = true;
157
113
  } else {
158
114
  item.active = false;
@@ -161,3 +117,54 @@ angular.module('alchemy').directive('alchFlyout', function(){
161
117
  }]
162
118
  };
163
119
  });
120
+
121
+ 'use strict';
122
+
123
+ angular.module('alchemy').directive('alchMenu', ['$window', function($window){
124
+ return {
125
+ restrict: 'EA',
126
+ transclude: true,
127
+ replace: true,
128
+ scope: {
129
+ 'menu': '=alchMenu',
130
+ 'compact' : '@'
131
+ },
132
+ templateUrl: 'component/templates/menu.html',
133
+ controller: ['$scope', function($scope) {
134
+ $scope.dropdown = {};
135
+
136
+ $scope.handleHover = function(item, mousein) {
137
+ if (item.type === 'dropdown' && mousein) {
138
+ item.active = true;
139
+ $scope.dropdown = item.items;
140
+ $scope.dropdown.show = true;
141
+ $scope.dropdown.direction = $scope.menu.location;
142
+ } else {
143
+ $scope.dropdown.show = false;
144
+
145
+ if (item !== $scope.menu.activeItem) {
146
+ item.active = false;
147
+ }
148
+ }
149
+ };
150
+
151
+ }],
152
+ link: function(scope, element, attrs) {
153
+ var elementOriginalOffset;
154
+
155
+ if (attrs.compact !== undefined) {
156
+ elementOriginalOffset = $(element).offset().top;
157
+
158
+ angular.element($window).bind('scroll', function() {
159
+ var windowScrollTop = $($window).scrollTop();
160
+
161
+ if (windowScrollTop > elementOriginalOffset + 2) {
162
+ element.parent().addClass('compact');
163
+ } else if (windowScrollTop < elementOriginalOffset) {
164
+ element.parent().removeClass('compact');
165
+ }
166
+ });
167
+ }
168
+ }
169
+ };
170
+ }]);
@@ -1 +1 @@
1
- angular.module("alch-templates").run(["$templateCache",function(e){e.put("component/templates/dropdown.html",'<ul class="dropdown" ng-class="{ \'dropdown-right\' : isRight(dropdown.direction), \'dropdown-active\' : dropdown.show }"> <li ng-repeat="item in dropdown" ng-mouseenter="set_hover(item, true)" ng-mouseleave="set_hover(item, false)"> <a class="dropdown-menu-item-link" href="{{ item.url }}"> {{ item.display }} <i class="right_arrow_icon-grey flyout-indicator" ng-show="item.type==\'flyout\'"></i> </a> <ul alch-flyout="item.items" ng-show="flyout.show" ng-class="{ \'dropdown-active\' : dropdown.show }"></ul> </li></ul>')}]),angular.module("alch-templates").run(["$templateCache",function(e){e.put("component/templates/flyout.html",'<ul class="flyout"> <li ng-repeat="item in flyout" ng-class="{ \'dropdown-highlight\' : item.active }" ng-mouseenter="set_hover(item, true)" ng-mouseleave="set_hover(item, false)"> <a href="{{ item.url }}">{{ item.display }}</a> </li></ul>')}]),angular.module("alch-templates").run(["$templateCache",function(e){e.put("component/templates/menu.html",'<nav ng-class="menu.location"> <ul class="menu-container"> <li class="menu-item" ng-repeat="item in menu.items" ng-mouseenter="handle_hover(item, true)" ng-mouseleave="handle_hover(item, false)"> <a href="{{ item.url }}" ng-class="{ \'active-item\' : item.active }" class="menu-item-link"> {{ item.display }} <i class="down_arrow_icon-white" ng-show="item.type == \'dropdown\'"></i> </a> <ul alch-dropdown="item.items"></ul> </li> </ul></nav>')}]),angular.module("alchemy").directive("alchMenu",["$window",function(e){return{restrict:"EA",transclude:!0,replace:!0,scope:{menu:"=alchMenu",compact:"@"},templateUrl:"component/templates/menu.html",controller:["$scope",function(e){e.dropdown={},e.handle_hover=function(t,o){"dropdown"===t.type&&o?(t.active=!0,e.dropdown=t.items,e.dropdown.show=!0,e.dropdown.direction=e.menu.location):(e.dropdown.show=!1,t!==e.menu.active_item&&(t.active=!1))}}],link:function(t,o,n){var l;void 0!==n.compact&&(l=$(o).offset().top,angular.element(e).bind("scroll",function(){var t=$(e).scrollTop();t>l+2?o.parent().addClass("compact"):l>t&&o.parent().removeClass("compact")}))}}}]),angular.module("alchemy").directive("alchDropdown",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{dropdown:"=alchDropdown"},templateUrl:"component/templates/dropdown.html",controller:["$scope",function(e){e.set_hover=function(t,o){o?(t.active=!0,"flyout"===t.type&&(e.flyout=t.items,e.flyout.show=!0)):(e.flyout&&(e.flyout.show=!1),t.active=!1)},e.isRight=function(e){return"right"===e}}]}}),angular.module("alchemy").directive("alchFlyout",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{flyout:"=alchFlyout"},templateUrl:"component/templates/flyout.html",controller:["$scope",function(e){e.set_hover=function(e,t){e.active=t?!0:!1}}]}});
1
+ angular.module("alch-templates").run(["$templateCache",function(e){e.put("component/templates/dropdown.html",'<ul class="dropdown"\n ng-class="{ \'dropdown-right\' : isRight(dropdown.direction), \'dropdown-active\' : dropdown.show }">\n <li class="dropdown-item"\n ng-repeat="item in dropdown"\n ng-mouseenter="setHover(item, true)"\n ng-mouseleave="setHover(item, false)">\n\n <a class="dropdown-item-link"\n href="{{ item.url }}"\n ng-class="{\'menu-anchor\' : item.type, \'dropdown-item-link-active\' : item.active }">\n <span class="fl">{{ item.display }}</span>\n <i class="icon-caret-right flyout-indicator" ng-show="item.type==\'flyout\'"></i>\n </a>\n <ul alch-flyout="item.items"\n ng-show="flyout.show"\n ng-class="{ \'dropdown-active\' : dropdown.show }">\n </ul>\n </li>\n</ul>\n'),e.put("component/templates/flyout.html",'<ul class="flyout">\n <li class="flyout-item"\n ng-repeat="item in flyout"\n ng-class="{ \'dropdown-highlight\' : item.active }"\n ng-mouseenter="setHover(item, true)"\n ng-mouseleave="setHover(item, false)">\n \n <a class="flyout-item-link" href="{{ item.url }}">{{ item.display }}</a>\n </li>\n</ul>\n'),e.put("component/templates/menu.html",'<nav ng-class="menu.location">\n <ul class="menu-container">\n\n <li class="menu-item"\n ng-repeat="item in menu.items"\n ng-mouseenter="handleHover(item, true)"\n ng-mouseleave="handleHover(item, false)">\n\n <a href="{{ item.url }}"\n ng-class="{ \'active-item\' : item.active, \'menu-anchor\' : item.type }"\n class="menu-item-link"> \n <span ng-bind-html-unsafe="item.display"></span>\n <i class="icon-caret-down" ng-show="item.type == \'dropdown\'"></i>\n </a>\n <ul alch-dropdown="item.items"></ul>\n </li>\n </ul>\n</nav>\n')}]),angular.module("alchemy").directive("alchDropdown",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{dropdown:"=alchDropdown"},templateUrl:"component/templates/dropdown.html",controller:["$scope",function(e){e.setHover=function(n,t){t?(n.active=!0,"flyout"===n.type&&(e.flyout=n.items,e.flyout.show=!0)):(e.flyout&&(e.flyout.show=!1),n.active=!1)},e.isRight=function(e){return"right"===e}}]}}),angular.module("alchemy").directive("alchFlyout",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{flyout:"=alchFlyout"},templateUrl:"component/templates/flyout.html",controller:["$scope",function(e){e.setHover=function(e,n){e.active=n?!0:!1}}]}}),angular.module("alchemy").directive("alchMenu",["$window",function(e){return{restrict:"EA",transclude:!0,replace:!0,scope:{menu:"=alchMenu",compact:"@"},templateUrl:"component/templates/menu.html",controller:["$scope",function(e){e.dropdown={},e.handleHover=function(n,t){"dropdown"===n.type&&t?(n.active=!0,e.dropdown=n.items,e.dropdown.show=!0,e.dropdown.direction=e.menu.location):(e.dropdown.show=!1,n!==e.menu.activeItem&&(n.active=!1))}}],link:function(n,t,o){var l;void 0!==o.compact&&(l=$(t).offset().top,angular.element(e).bind("scroll",function(){var n=$(e).scrollTop();n>l+2?t.parent().addClass("compact"):l>n&&t.parent().removeClass("compact")}))}}}]);
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "alchemy-header",
3
+ "version": "0.0.9",
4
+ "main": [
5
+ "*.scss",
6
+ "*.css",
7
+ ".js"
8
+ ],
9
+ "ignore": [],
10
+ "dependencies": {
11
+ "jquery": "~1.9.1",
12
+ "angular": "~1.0.5",
13
+ "alchemy": ">=0.0.1"
14
+ },
15
+ "devDependencies": {
16
+ "jquery": "~1.9.1",
17
+ "angular-mocks": "~1.0.5",
18
+ "font-awesome": ">=3.2.1"
19
+ },
20
+ "gitHead": "c042be273f0cfad8569aee0f73861407af640773",
21
+ "_id": "alchemy-header@0.0.9",
22
+ "readme": "ERROR: No README.md file found!",
23
+ "description": "ERROR: No README.md file found!",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git://github.com/ui-alchemy/alchemy-header.git"
27
+ }
28
+ }
@@ -1,11 +1,7 @@
1
1
  {
2
2
  "name": "alchemy-header",
3
3
  "version": "0.0.7",
4
- "main": [
5
- "./*.js",
6
- "./*.scss",
7
- "./*.css"
8
- ],
4
+ "main" : ["./*.js", "./*.scss", "./*.css"],
9
5
  "dependencies": {
10
6
  "angular": "~1.0.5",
11
7
  "jquery": "~1.9.1",
@@ -14,13 +10,5 @@
14
10
  "devDependencies": {
15
11
  "angular-mocks": "~1.0.5",
16
12
  "angular-scenario": "~1.0.5"
17
- },
18
- "gitHead": "41b939bdf294df8c84b1f35a643108c295e87e63",
19
- "_id": "alchemy-header@0.0.7",
20
- "readme": "ERROR: No README.md file found!",
21
- "description": "ERROR: No README.md file found!",
22
- "repository": {
23
- "type": "git",
24
- "url": "git://github.com/ui-alchemy/alchemy-header.git"
25
13
  }
26
- }
14
+ }