ui_alchemy-rails 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/alchemy/components/sprites/_sprites.scss +1 -1
- data/lib/ui_alchemy/rails/version.rb +1 -1
- data/vendor/assets/ui_alchemy/alchemy-header/alchemy-header.css +1 -1
- data/vendor/assets/ui_alchemy/alchemy-header/alchemy-header.js +14 -14
- data/vendor/assets/ui_alchemy/alchemy-header/alchemy-header.min.js +1 -0
- data/vendor/assets/ui_alchemy/alchemy-header/component.json +3 -3
- data/vendor/assets/ui_alchemy/alchemy-header/header.scss +1 -1
- data/vendor/assets/ui_alchemy/alchemy-tables/alchemy-tables.js +8 -8
- data/vendor/assets/ui_alchemy/alchemy-tables/alchemy-tables.min.js +1 -0
- data/vendor/assets/ui_alchemy/alchemy-tables/component.json +3 -3
- metadata +5 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
angular.module("alch-templates").run(function($templateCache) {
|
1
|
+
angular.module("alch-templates").run(["$templateCache", function($templateCache) {
|
2
2
|
$templateCache.put("component/templates/dropdown.html",
|
3
3
|
"<ul class=\"dropdown\" " +
|
4
4
|
" ng-class=\"{ 'dropdown-right' : isRight(dropdown.direction), 'dropdown-active' : dropdown.show }\">" +
|
@@ -14,9 +14,9 @@ angular.module("alch-templates").run(function($templateCache) {
|
|
14
14
|
" </li>" +
|
15
15
|
"</ul>" +
|
16
16
|
"");
|
17
|
-
});
|
17
|
+
}]);
|
18
18
|
|
19
|
-
angular.module("alch-templates").run(function($templateCache) {
|
19
|
+
angular.module("alch-templates").run(["$templateCache", function($templateCache) {
|
20
20
|
$templateCache.put("component/templates/flyout.html",
|
21
21
|
"<ul class=\"flyout\">" +
|
22
22
|
" <li ng-repeat=\"item in flyout\"" +
|
@@ -28,9 +28,9 @@ angular.module("alch-templates").run(function($templateCache) {
|
|
28
28
|
" </li>" +
|
29
29
|
"</ul>" +
|
30
30
|
"");
|
31
|
-
});
|
31
|
+
}]);
|
32
32
|
|
33
|
-
angular.module("alch-templates").run(function($templateCache) {
|
33
|
+
angular.module("alch-templates").run(["$templateCache", function($templateCache) {
|
34
34
|
$templateCache.put("component/templates/menu.html",
|
35
35
|
"<nav ng-class=\"menu.location\">" +
|
36
36
|
" <ul class=\"menu-container\">" +
|
@@ -51,11 +51,11 @@ angular.module("alch-templates").run(function($templateCache) {
|
|
51
51
|
" </ul>" +
|
52
52
|
"</nav>" +
|
53
53
|
"");
|
54
|
-
});
|
54
|
+
}]);
|
55
55
|
|
56
56
|
'use strict';
|
57
57
|
|
58
|
-
angular.module('alchemy').directive('alchMenu', function($window){
|
58
|
+
angular.module('alchemy').directive('alchMenu', ['$window', function($window){
|
59
59
|
return {
|
60
60
|
restrict: 'EA',
|
61
61
|
transclude: true,
|
@@ -66,7 +66,7 @@ angular.module('alchemy').directive('alchMenu', function($window){
|
|
66
66
|
},
|
67
67
|
templateUrl: 'component/templates/menu.html',
|
68
68
|
|
69
|
-
controller: function($scope) {
|
69
|
+
controller: ['$scope', function($scope) {
|
70
70
|
$scope.dropdown = {};
|
71
71
|
|
72
72
|
$scope.handle_hover = function(item, mousein){
|
@@ -84,7 +84,7 @@ angular.module('alchemy').directive('alchMenu', function($window){
|
|
84
84
|
}
|
85
85
|
};
|
86
86
|
|
87
|
-
},
|
87
|
+
}],
|
88
88
|
|
89
89
|
link: function(scope, element, attrs){
|
90
90
|
if( attrs.compact !== undefined ){
|
@@ -101,7 +101,7 @@ angular.module('alchemy').directive('alchMenu', function($window){
|
|
101
101
|
}
|
102
102
|
}
|
103
103
|
};
|
104
|
-
});
|
104
|
+
}]);
|
105
105
|
|
106
106
|
angular.module('alchemy').directive('alchDropdown', function(){
|
107
107
|
return {
|
@@ -113,7 +113,7 @@ angular.module('alchemy').directive('alchDropdown', function(){
|
|
113
113
|
},
|
114
114
|
templateUrl: 'component/templates/dropdown.html',
|
115
115
|
|
116
|
-
controller: function($scope){
|
116
|
+
controller: ['$scope', function($scope){
|
117
117
|
$scope.set_hover = function(item, mousein){
|
118
118
|
if( mousein ){
|
119
119
|
item.active = true;
|
@@ -133,7 +133,7 @@ angular.module('alchemy').directive('alchDropdown', function(){
|
|
133
133
|
$scope.isRight = function(direction){
|
134
134
|
return direction === 'right';
|
135
135
|
};
|
136
|
-
}
|
136
|
+
}]
|
137
137
|
};
|
138
138
|
});
|
139
139
|
|
@@ -147,7 +147,7 @@ angular.module('alchemy').directive('alchFlyout', function(){
|
|
147
147
|
},
|
148
148
|
templateUrl: 'component/templates/flyout.html',
|
149
149
|
|
150
|
-
controller: function($scope){
|
150
|
+
controller: ['$scope', function($scope){
|
151
151
|
$scope.set_hover = function(item, mousein){
|
152
152
|
if( mousein ){
|
153
153
|
item.active = true;
|
@@ -155,6 +155,6 @@ angular.module('alchemy').directive('alchFlyout', function(){
|
|
155
155
|
item.active = false;
|
156
156
|
}
|
157
157
|
};
|
158
|
-
}
|
158
|
+
}]
|
159
159
|
};
|
160
160
|
});
|
@@ -0,0 +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-grey" 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){void 0!==n.compact&&angular.element(e).bind("scroll",function(){var t=$("body").height(),n=$(e).scrollTop();n>.03*t?o.parent().addClass("compact"):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,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "alchemy-header",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.5",
|
4
4
|
"main": [
|
5
5
|
"./*.js",
|
6
6
|
"./*.scss",
|
@@ -15,8 +15,8 @@
|
|
15
15
|
"angular-mocks": "~1.0.5",
|
16
16
|
"angular-scenario": "~1.0.5"
|
17
17
|
},
|
18
|
-
"gitHead": "
|
19
|
-
"_id": "alchemy-header@0.0.
|
18
|
+
"gitHead": "3aec5790749a78e32fc9ec4d07e126d4ef62d814",
|
19
|
+
"_id": "alchemy-header@0.0.5",
|
20
20
|
"readme": "ERROR: No README.md file found!",
|
21
21
|
"description": "ERROR: No README.md file found!",
|
22
22
|
"repository": {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
angular.module("alch-templates").run(function($templateCache) {
|
1
|
+
angular.module("alch-templates").run(["$templateCache", function($templateCache) {
|
2
2
|
$templateCache.put("component/templates/table.html",
|
3
3
|
"<thead>" +
|
4
4
|
" <tr>" +
|
@@ -47,9 +47,9 @@ angular.module("alch-templates").run(function($templateCache) {
|
|
47
47
|
" </tr>" +
|
48
48
|
"</tbody>" +
|
49
49
|
"");
|
50
|
-
});
|
50
|
+
}]);
|
51
51
|
|
52
|
-
angular.module("alch-templates").run(function($templateCache) {
|
52
|
+
angular.module("alch-templates").run(["$templateCache", function($templateCache) {
|
53
53
|
$templateCache.put("component/templates/tool_bar.html",
|
54
54
|
"<div ng-model=\"table.data.columns\" class=\"form table-toolbar\">" +
|
55
55
|
" <div class=\"fl\">" +
|
@@ -67,7 +67,7 @@ angular.module("alch-templates").run(function($templateCache) {
|
|
67
67
|
" </div>" +
|
68
68
|
"</div>" +
|
69
69
|
"");
|
70
|
-
});
|
70
|
+
}]);
|
71
71
|
|
72
72
|
'use strict';
|
73
73
|
|
@@ -80,7 +80,7 @@ angular.module('alchemy').directive('alchTable', function(){
|
|
80
80
|
},
|
81
81
|
templateUrl: 'component/templates/table.html',
|
82
82
|
|
83
|
-
controller: function($scope){
|
83
|
+
controller: ['$scope', function($scope){
|
84
84
|
if (!$scope.table.scroll_distance) {
|
85
85
|
$scope.table.scroll_distance = 0;
|
86
86
|
}
|
@@ -125,7 +125,7 @@ angular.module('alchemy').directive('alchTable', function(){
|
|
125
125
|
more = more && $scope.table.all_selected;
|
126
126
|
return more;
|
127
127
|
};
|
128
|
-
}
|
128
|
+
}]
|
129
129
|
};
|
130
130
|
});
|
131
131
|
|
@@ -138,10 +138,10 @@ angular.module('alchemy').directive('alchTableToolbar', function(){
|
|
138
138
|
},
|
139
139
|
templateUrl: 'component/templates/tool_bar.html',
|
140
140
|
|
141
|
-
controller: function($scope){
|
141
|
+
controller: ['$scope', function($scope){
|
142
142
|
$scope.deselect_all = function(){
|
143
143
|
$scope.table.select_all(false);
|
144
144
|
};
|
145
|
-
}
|
145
|
+
}]
|
146
146
|
};
|
147
147
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
angular.module("alch-templates").run(["$templateCache",function(e){e.put("component/templates/table.html",'<thead> <tr> <th class="table-selection-row" colspan="{{ table.data.columns.length +1 }}" ng-show="table.more_results()"> All {{ table.offset }} results shown are currently selected. <a href="">Select all {{ table.total }} results.</a> </th> </tr> <tr> <th ng-show="rowSelect"> <input class="select_all" type="checkbox" name="select_all" ng-model="table.all_selected" ng-change="table.select_all()"> </th> <th ng-click="table.sort(header)" ng-show="header.show" ng-repeat="header in table.data.columns" ng-class="{ \'active-column\' : header.active }"> {{ header.display }} </th> </tr></thead><tbody infinite-scroll="table.next_page()" infinite-scroll-disable="table.loading_more" infinite-scroll-distance="table.scroll_distance"> <tr ng-class="{active : row.selected }" ng-repeat="row in table.data.rows" ng-show="show_row(row)"> <td ng-show="rowSelect"> <input ng-model="row.selected" type="checkbox" name="{{ row.id }}" value="{{ row.id }}" ng-change="adjust_num_selected(row.selected)"> </td> <td ng-show="show_cell(cell)" ng-repeat="cell in row.cells"> {{ cell.display }} </td> </tr></tbody>')}]),angular.module("alch-templates").run(["$templateCache",function(e){e.put("component/templates/tool_bar.html",'<div ng-model="table.data.columns" class="form table-toolbar"> <div class="fl"> <input type="text" class="input" placeholder="Search..." ng-model="table.search_string" on-enter="table.search(table.search_string)" /> Showing {{ table.start }}-{{ table.offset }} of {{ table.total }} {{ table.model }} </div> <div class="fr deselect" ng-show="table.num_selected"> <span ng-model="table.num_selected">{{ table.num_selected }} Selected</span> <a ng-click="deselect_all()" href="">Deselect All</a> </div></div>')}]),angular.module("alchemy").directive("alchTable",function(){return{restrict:"A",scope:{table:"=alchTable",rowSelect:"@"},templateUrl:"component/templates/table.html",controller:["$scope",function(e){e.table.scroll_distance||(e.table.scroll_distance=0),e.show_cell=function(l){var t;return angular.forEach(e.table.data.columns,function(e){e.id===l.column_id&&(t=e.show)}),t},e.show_row=function(e){return e.show},e.adjust_num_selected=function(l){e.table.num_selected+=l?1:-1},e.table.select_all=function(l){var t=e.table;void 0!==l&&(t.all_selected=l),t.num_selected=t.all_selected?t.data.rows.length:0,angular.forEach(t.data.rows,function(e){e.selected=t.all_selected})},e.table.more_results=function(){var l=e.table.total>e.table.offset;return l=l&&e.table.all_selected}}]}}),angular.module("alchemy").directive("alchTableToolbar",function(){return{restrict:"A",transclude:!0,scope:{table:"=alchTableToolbar"},templateUrl:"component/templates/tool_bar.html",controller:["$scope",function(e){e.deselect_all=function(){e.table.select_all(!1)}}]}});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "alchemy-tables",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.16",
|
4
4
|
"main": [
|
5
5
|
"./*.js",
|
6
6
|
"./*.scss",
|
@@ -17,8 +17,8 @@
|
|
17
17
|
"angular-mocks": "~1.0.5",
|
18
18
|
"angular-scenario": "~1.0.5"
|
19
19
|
},
|
20
|
-
"gitHead": "
|
21
|
-
"_id": "alchemy-tables@0.0.
|
20
|
+
"gitHead": "2c9259003f84507e69367bfccfa3e1924e66ab87",
|
21
|
+
"_id": "alchemy-tables@0.0.16",
|
22
22
|
"readme": "ERROR: No README.md file found!",
|
23
23
|
"description": "ERROR: No README.md file found!",
|
24
24
|
"repository": {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ui_alchemy-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- vendor/assets/ui_alchemy/angular/component.json
|
117
117
|
- vendor/assets/ui_alchemy/angular/angular.js
|
118
118
|
- vendor/assets/ui_alchemy/angular/angular.min.js
|
119
|
+
- vendor/assets/ui_alchemy/alchemy-tables/alchemy-tables.min.js
|
119
120
|
- vendor/assets/ui_alchemy/alchemy-tables/component.json
|
120
121
|
- vendor/assets/ui_alchemy/alchemy-tables/alchemy-tables.css
|
121
122
|
- vendor/assets/ui_alchemy/alchemy-tables/tables.scss
|
@@ -146,6 +147,7 @@ files:
|
|
146
147
|
- vendor/assets/ui_alchemy/alchemy-header/component.json
|
147
148
|
- vendor/assets/ui_alchemy/alchemy-header/alchemy-header.js
|
148
149
|
- vendor/assets/ui_alchemy/alchemy-header/header.scss
|
150
|
+
- vendor/assets/ui_alchemy/alchemy-header/alchemy-header.min.js
|
149
151
|
- vendor/assets/ui_alchemy/angular-sanitize/component.json
|
150
152
|
- vendor/assets/ui_alchemy/angular-sanitize/angular-sanitize.min.js
|
151
153
|
- vendor/assets/ui_alchemy/angular-sanitize/README.md
|
@@ -283,3 +285,4 @@ summary: A set of tools and web assets designed to enhance a web applications us
|
|
283
285
|
interactions by providing functionality, layout and styling that is also customizable
|
284
286
|
and flexible depending on the project's needs.
|
285
287
|
test_files: []
|
288
|
+
has_rdoc:
|