bastion 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +5 -6
- data/Rakefile +1 -1
- data/app/assets/javascripts/bastion/bastion-bootstrap.js +0 -4
- data/app/assets/javascripts/bastion/bastion.js +3 -9
- data/app/assets/javascripts/bastion/bastion.module.js +1 -1
- data/app/assets/javascripts/bastion/{incubator/alch-alert.directive.js → components/bst-alert.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-container-scroll.directive.js → components/bst-container-scroll.directive.js} +3 -3
- data/app/assets/javascripts/bastion/{incubator/alch-dropdown.directive.js → components/bst-dropdown.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-edit.directive.js → components/bst-edit.directive.js} +34 -34
- data/app/assets/javascripts/bastion/{incubator/alch-flyout.directive.js → components/bst-flyout.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-form-buttons.directive.js → components/bst-form-buttons.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-form-group.directive.js → components/bst-form-group.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-infinite-scroll.directive.js → components/bst-infinite-scroll.directive.js} +5 -5
- data/app/assets/javascripts/bastion/{incubator/alch-menu.directive.js → components/bst-menu.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-modal.directive.js → components/bst-modal.directive.js} +5 -5
- data/app/assets/javascripts/bastion/components/bst-on-enter.directive.js +41 -0
- data/app/assets/javascripts/bastion/{incubator/alch-save-control.directive.js → components/bst-save-control.directive.js} +4 -4
- data/app/assets/javascripts/bastion/{incubator/alch-table.directive.js → components/bst-table.directive.js} +31 -31
- data/app/assets/javascripts/bastion/components/components.module.js +27 -0
- data/app/assets/javascripts/bastion/{widgets → components}/current-tasks.directive.js +3 -3
- data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/array-to-string.filter.js +2 -2
- data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/boolean-to-yes-no.filter.js +2 -2
- data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/capitalize.filter.js +2 -2
- data/app/assets/javascripts/bastion/{incubator/format/alch-format.module.js → components/formatters/components-formatters.module.js} +2 -2
- data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/key-value-to-string.filter.js +2 -2
- data/app/assets/javascripts/bastion/{incubator/format → components/formatters}/unlimitedFilter.filter.js +3 -3
- data/app/assets/javascripts/bastion/{widgets → components}/nutupane-table.directive.js +1 -1
- data/app/assets/javascripts/bastion/{widgets → components}/nutupane.factory.js +2 -2
- data/app/assets/javascripts/bastion/{widgets → components}/page-title.directive.js +2 -2
- data/app/assets/javascripts/bastion/{widgets → components}/page-title.service.js +2 -2
- data/app/assets/javascripts/bastion/{widgets → components}/path-selector.directive.js +3 -3
- data/app/assets/javascripts/bastion/{incubator/views/alch-alert.html → components/views/bst-alert.html} +0 -0
- data/app/assets/javascripts/bastion/{incubator/views/alch-dropdown.html → components/views/bst-dropdown.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-add-item.html → components/views/bst-edit-add-item.html} +0 -0
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-add-remove-cancel.html → components/views/bst-edit-add-remove-cancel.html} +0 -0
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-checkbox.html → components/views/bst-edit-checkbox.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-custom.html → components/views/bst-edit-custom.html} +2 -2
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-multiselect.html → components/views/bst-edit-multiselect.html} +2 -2
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-save-cancel.html → components/views/bst-edit-save-cancel.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-select.html → components/views/bst-edit-select.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-text.html → components/views/bst-edit-text.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit-textarea.html → components/views/bst-edit-textarea.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-edit.html → components/views/bst-edit.html} +3 -3
- data/app/assets/javascripts/bastion/{incubator/views/alch-flyout.html → components/views/bst-flyout.html} +0 -0
- data/app/assets/javascripts/bastion/{incubator/views/alch-form-buttons.html → components/views/bst-form-buttons.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-form-group.html → components/views/bst-form-group.html} +0 -0
- data/app/assets/javascripts/bastion/{incubator/views/alch-menu.html → components/views/bst-menu.html} +1 -1
- data/app/assets/javascripts/bastion/{incubator/views/alch-modal-remove.html → components/views/bst-modal.html} +0 -0
- data/app/assets/javascripts/bastion/{incubator/views/alch-save-control.html → components/views/bst-save-control.html} +0 -0
- data/app/assets/javascripts/bastion/{widgets → components}/views/current-tasks.html +0 -0
- data/app/assets/javascripts/bastion/{widgets → components}/views/path-selector.html +0 -0
- data/app/assets/javascripts/bastion/i18n/katello.pot +18 -18
- data/app/assets/javascripts/bastion/layouts/details-nutupane.html +4 -4
- data/app/assets/javascripts/bastion/layouts/nutupane.html +4 -4
- data/app/assets/javascripts/bastion/menu/menu.module.js +1 -3
- data/app/views/bastion/layouts/application.html.erb +5 -1
- data/bower.json +0 -5
- data/grunt/karma.js +4 -5
- data/lib/bastion/version.rb +1 -1
- data/test/{incubator/alch-alert.directive.test.js → components/bst-alert.directive.test.js} +3 -3
- data/test/{incubator/alch-container-scroll.directive.test.js → components/bst-container-scroll.directive.test.js} +3 -3
- data/test/{incubator/alch-dropdown.directive.test.js → components/bst-dropdown.directive.test.js} +5 -5
- data/test/{incubator/alch-edit.directive.test.js → components/bst-edit.directive.test.js} +29 -29
- data/test/{incubator/alch-flyout.directive.test.js → components/bst-flyout.directive.test.js} +3 -3
- data/test/{incubator/alch-form-buttons.directive.test.js → components/bst-form-buttons.directive.test.js} +5 -5
- data/test/{incubator/alch-form-group.directive.test.js → components/bst-form-group.directive.test.js} +4 -4
- data/test/{incubator/alch-infinite-scroll.directive.test.js → components/bst-infinite-scroll.directive.test.js} +3 -3
- data/test/{incubator/alch-menu.directive.test.js → components/bst-menu.directive.test.js} +6 -6
- data/test/{incubator/alch-modal.directive.test.js → components/bst-modal.directive.test.js} +3 -3
- data/test/{incubator/nutupane-table.directive.test.js → components/bst-nutupane-table.directive.test.js} +1 -1
- data/test/{incubator/alch-table.directive.test.js → components/bst-table.directive.test.js} +21 -21
- data/test/{incubator/format → components/formatters}/array-to-string.filter.test.js +1 -1
- data/test/{incubator/format → components/formatters}/boolean-to-yes-no.filter.test.js +1 -1
- data/test/{incubator/format → components/formatters}/capitalize.filter.test.js +1 -1
- data/test/{incubator/format → components/formatters}/key-value-to-string.filter.test.js +1 -1
- data/test/{incubator/format → components/formatters}/unlimited-filter.filter.test.js +1 -1
- data/test/{incubator → components}/nutupane.factory.test.js +1 -1
- data/test/{widgets → components}/page-title.directive.test.js +1 -1
- data/test/{widgets → components}/page-title.service.test.js +1 -1
- data/test/{widgets → components}/path-selector.directive.test.js +2 -2
- metadata +105 -113
- data/app/assets/javascripts/bastion/incubator/stylesheets/alch-edit.scss +0 -34
- data/app/assets/javascripts/bastion/incubator/stylesheets/header.scss +0 -207
- data/app/assets/javascripts/bastion/widgets/widgets.module.js +0 -24
- data/vendor/assets/javascripts/bastion/alchemy/alchemy.js +0 -20
- data/vendor/assets/stylesheets/bastion/alchemy/_colors.scss +0 -99
- data/vendor/assets/stylesheets/bastion/alchemy/_media_object.scss +0 -22
- data/vendor/assets/stylesheets/bastion/alchemy/_mixins.scss +0 -24
- data/vendor/assets/stylesheets/bastion/alchemy/_normalize.scss +0 -396
- data/vendor/assets/stylesheets/bastion/alchemy/_vars.scss +0 -31
- data/vendor/assets/stylesheets/bastion/alchemy/alchemy.scss +0 -8
@@ -1,6 +1,10 @@
|
|
1
1
|
<% content_for(:stylesheets) do %>
|
2
2
|
<%= stylesheet_link_tag "bastion/bastion" %>
|
3
|
-
|
3
|
+
<% Bastion.plugins.each do |name, plugin| %>
|
4
|
+
<% if plugin[:stylesheet] %>
|
5
|
+
<%= stylesheet_link_tag(plugin[:stylesheet]) %>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
4
8
|
<% end %>
|
5
9
|
|
6
10
|
<% content_for(:content) do %>
|
data/bower.json
CHANGED
@@ -14,7 +14,6 @@
|
|
14
14
|
"angular-gettext": "=1.0.0",
|
15
15
|
"angular-ui-router": "=0.2.10",
|
16
16
|
"angular-blocks": "~>0.1.8",
|
17
|
-
"alchemy": ">=0.0.1",
|
18
17
|
"underscore": "=1.5.2",
|
19
18
|
"ngUpload": "~0.5.5",
|
20
19
|
"bootstrap": "~3.0.1",
|
@@ -71,10 +70,6 @@
|
|
71
70
|
"angular-uuid4": {
|
72
71
|
"javascripts/bastion": "angular-uuid4.js"
|
73
72
|
},
|
74
|
-
"alchemy": {
|
75
|
-
"javascripts/bastion": "alchemy.js",
|
76
|
-
"stylesheets/bastion": "*.scss"
|
77
|
-
},
|
78
73
|
"underscore": {
|
79
74
|
"javascripts/bastion": "underscore.js"
|
80
75
|
},
|
data/grunt/karma.js
CHANGED
@@ -24,7 +24,6 @@ module.exports = {
|
|
24
24
|
basePath + 'vendor/assets/javascripts/bastion/angular-animate/angular-animate.js',
|
25
25
|
basePath + 'vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap.js',
|
26
26
|
basePath + 'vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap-tpls.js',
|
27
|
-
basePath + 'vendor/assets/javascripts/bastion/alchemy/alchemy.js',
|
28
27
|
basePath + 'vendor/assets/javascripts/bastion/underscore/underscore.js',
|
29
28
|
basePath + 'vendor/assets/javascripts/bastion/angular-ui-router/angular-ui-router.js',
|
30
29
|
basePath + 'vendor/assets/javascripts/bastion/angular-gettext/angular-gettext.js',
|
@@ -36,16 +35,16 @@ module.exports = {
|
|
36
35
|
basePath + 'app/assets/javascripts/bastion/bastion-resource.factory.js',
|
37
36
|
basePath + 'app/assets/javascripts/bastion/i18n/i18n.module.js',
|
38
37
|
basePath + 'app/assets/javascripts/bastion/i18n/*.js',
|
39
|
-
basePath + 'app/assets/javascripts/bastion/widgets/widgets.module.js',
|
40
|
-
basePath + 'app/assets/javascripts/bastion/widgets/*.js',
|
41
38
|
basePath + 'app/assets/javascripts/bastion/auth/auth.module.js',
|
42
39
|
basePath + 'app/assets/javascripts/bastion/auth/*.js',
|
43
40
|
basePath + 'app/assets/javascripts/bastion/utils/utils.module.js',
|
44
41
|
basePath + 'app/assets/javascripts/bastion/utils/*.js',
|
45
42
|
basePath + 'app/assets/javascripts/bastion/menu/menu.module.js',
|
46
43
|
basePath + 'app/assets/javascripts/bastion/menu/*.js',
|
47
|
-
basePath + 'app/assets/javascripts/bastion/
|
48
|
-
basePath + 'app/assets/javascripts/bastion/
|
44
|
+
basePath + 'app/assets/javascripts/bastion/components/components.module.js',
|
45
|
+
basePath + 'app/assets/javascripts/bastion/components/*.js',
|
46
|
+
basePath + 'app/assets/javascripts/bastion/components/formatters/components-formatters.module.js',
|
47
|
+
basePath + 'app/assets/javascripts/bastion/components/formatters/*.js',
|
49
48
|
|
50
49
|
basePath + 'test/bastion/test-constants.js',
|
51
50
|
basePath + 'app/assets/javascripts/bastion/**/*.html',
|
data/lib/bastion/version.rb
CHANGED
@@ -11,13 +11,13 @@
|
|
11
11
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
12
|
*/
|
13
13
|
|
14
|
-
describe('Directive:
|
14
|
+
describe('Directive: bstAlert', function() {
|
15
15
|
var scope,
|
16
16
|
compile,
|
17
17
|
element,
|
18
18
|
elementScope;
|
19
19
|
|
20
|
-
beforeEach(module('
|
20
|
+
beforeEach(module('Bastion.components', 'components/views/bst-alert.html'));
|
21
21
|
|
22
22
|
beforeEach(inject(function(_$compile_, _$rootScope_) {
|
23
23
|
compile = _$compile_;
|
@@ -25,7 +25,7 @@ describe('Directive: alchAlert', function() {
|
|
25
25
|
}));
|
26
26
|
|
27
27
|
beforeEach(function() {
|
28
|
-
element = angular.element('<div
|
28
|
+
element = angular.element('<div bst-alert ' +
|
29
29
|
'success-messages="successMessages" ' +
|
30
30
|
'info-messages="infoMessages" ' +
|
31
31
|
'warning-messages="warningMessages" ' +
|
@@ -12,13 +12,13 @@
|
|
12
12
|
*/
|
13
13
|
|
14
14
|
|
15
|
-
describe('Directive:
|
15
|
+
describe('Directive: bstContainerScroll', function() {
|
16
16
|
var scope,
|
17
17
|
compile,
|
18
18
|
window,
|
19
19
|
tableElement;
|
20
20
|
|
21
|
-
beforeEach(module('
|
21
|
+
beforeEach(module('Bastion.components'));
|
22
22
|
|
23
23
|
beforeEach(inject(function(_$compile_, _$rootScope_, _$window_) {
|
24
24
|
compile = _$compile_;
|
@@ -28,7 +28,7 @@ describe('Directive: alchContainerScroll', function() {
|
|
28
28
|
|
29
29
|
beforeEach(function() {
|
30
30
|
tableElement = angular.element(
|
31
|
-
'<div
|
31
|
+
'<div bst-container-scroll control-width="table">' +
|
32
32
|
'<table>' +
|
33
33
|
'<thead>' +
|
34
34
|
'<tr><th>Column 1</th></tr>' +
|
data/test/{incubator/alch-dropdown.directive.test.js → components/bst-dropdown.directive.test.js}
RENAMED
@@ -11,7 +11,7 @@
|
|
11
11
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
12
|
*/
|
13
13
|
|
14
|
-
describe('Directive:
|
14
|
+
describe('Directive: bstDropdown', function() {
|
15
15
|
var scope,
|
16
16
|
compile,
|
17
17
|
testItems,
|
@@ -19,9 +19,9 @@ describe('Directive: alchDropdown', function() {
|
|
19
19
|
elementScope;
|
20
20
|
|
21
21
|
beforeEach(module(
|
22
|
-
'
|
23
|
-
'
|
24
|
-
'
|
22
|
+
'Bastion.components',
|
23
|
+
'components/views/bst-dropdown.html',
|
24
|
+
'components/views/bst-flyout.html'
|
25
25
|
));
|
26
26
|
|
27
27
|
beforeEach(inject(function(_$compile_, _$rootScope_) {
|
@@ -40,7 +40,7 @@ describe('Directive: alchDropdown', function() {
|
|
40
40
|
];
|
41
41
|
scope.items = testItems;
|
42
42
|
|
43
|
-
element = angular.element('<ul
|
43
|
+
element = angular.element('<ul bst-dropdown="items"></ul>');
|
44
44
|
compile(element)(scope);
|
45
45
|
scope.$digest();
|
46
46
|
|
@@ -12,22 +12,22 @@
|
|
12
12
|
*/
|
13
13
|
|
14
14
|
|
15
|
-
describe('Directive:
|
15
|
+
describe('Directive: bstEdit', function() {
|
16
16
|
var scope,
|
17
17
|
compile,
|
18
18
|
testItem;
|
19
19
|
|
20
|
-
beforeEach(module('
|
21
|
-
'
|
22
|
-
'
|
23
|
-
'
|
24
|
-
'
|
25
|
-
'
|
26
|
-
'
|
27
|
-
'
|
28
|
-
'
|
29
|
-
'
|
30
|
-
'
|
20
|
+
beforeEach(module('Bastion.components',
|
21
|
+
'Bastion.components.formatters',
|
22
|
+
'components/views/bst-edit.html',
|
23
|
+
'components/views/bst-edit-text.html',
|
24
|
+
'components/views/bst-edit-textarea.html',
|
25
|
+
'components/views/bst-edit-select.html',
|
26
|
+
'components/views/bst-edit-add-item.html',
|
27
|
+
'components/views/bst-edit-checkbox.html',
|
28
|
+
'components/views/bst-edit-add-remove-cancel.html',
|
29
|
+
'components/views/bst-edit-multiselect.html',
|
30
|
+
'components/views/bst-edit-save-cancel.html'));
|
31
31
|
|
32
32
|
beforeEach(module(function($provide) {
|
33
33
|
testItem = {
|
@@ -56,22 +56,22 @@ describe('Directive: alchEdit', function() {
|
|
56
56
|
scope = _$rootScope_;
|
57
57
|
}));
|
58
58
|
|
59
|
-
describe('
|
59
|
+
describe('bstEdit controller', function() {
|
60
60
|
var element,
|
61
61
|
editController;
|
62
62
|
|
63
63
|
beforeEach(inject(function($controller) {
|
64
|
-
editController = $controller('
|
64
|
+
editController = $controller('BstEditController', {$scope: scope});
|
65
65
|
}));
|
66
66
|
|
67
67
|
});
|
68
68
|
|
69
|
-
describe('
|
69
|
+
describe('bstEdit directive', function() {
|
70
70
|
var editableElement;
|
71
71
|
|
72
72
|
beforeEach(function() {
|
73
73
|
editableElement = angular.element(
|
74
|
-
'<span
|
74
|
+
'<span bst-edit-text="item.name" on-save="item.save()" on-delete="item.delete()" ' +
|
75
75
|
'on-cancel="item.revert()"></span>');
|
76
76
|
|
77
77
|
scope.item = testItem;
|
@@ -143,12 +143,12 @@ describe('Directive: alchEdit', function() {
|
|
143
143
|
});
|
144
144
|
});
|
145
145
|
|
146
|
-
describe('
|
146
|
+
describe('bstEditText directive', function() {
|
147
147
|
var editableElement;
|
148
148
|
|
149
149
|
beforeEach(function() {
|
150
150
|
editableElement = angular.element(
|
151
|
-
'<span
|
151
|
+
'<span bst-edit-text="item.name"></span>');
|
152
152
|
|
153
153
|
scope.item = testItem;
|
154
154
|
|
@@ -166,12 +166,12 @@ describe('Directive: alchEdit', function() {
|
|
166
166
|
|
167
167
|
});
|
168
168
|
|
169
|
-
describe('
|
169
|
+
describe('bstEditCheckbox directive', function() {
|
170
170
|
var editableElement;
|
171
171
|
|
172
172
|
beforeEach(function() {
|
173
173
|
editableElement = angular.element(
|
174
|
-
'<span
|
174
|
+
'<span bst-edit-checkbox="item.name"></span>');
|
175
175
|
|
176
176
|
scope.item = testItem;
|
177
177
|
|
@@ -189,12 +189,12 @@ describe('Directive: alchEdit', function() {
|
|
189
189
|
|
190
190
|
});
|
191
191
|
|
192
|
-
describe('
|
192
|
+
describe('bstEditTextarea directive', function() {
|
193
193
|
var editableElement;
|
194
194
|
|
195
195
|
beforeEach(function() {
|
196
196
|
editableElement = angular.element(
|
197
|
-
'<span
|
197
|
+
'<span bst-edit-textarea="item.name"></span>');
|
198
198
|
|
199
199
|
scope.item = testItem;
|
200
200
|
scope.tacoOptions = ['baja shrimp', 'barbacoa', 'carnitas', 'spicy tinga chicken'];
|
@@ -213,14 +213,14 @@ describe('Directive: alchEdit', function() {
|
|
213
213
|
|
214
214
|
});
|
215
215
|
|
216
|
-
describe('
|
216
|
+
describe('bstEditSelect directive', function() {
|
217
217
|
var editableElement;
|
218
218
|
|
219
219
|
beforeEach(function() {
|
220
220
|
scope.tacoOptions = [{id: 1, name: 'Carnitas'}, {id: 2, name: 'Tilapia'}];
|
221
221
|
|
222
222
|
editableElement = angular.element(
|
223
|
-
'<span
|
223
|
+
'<span bst-edit-select="item.taco" options="tacoOptions" ></span>'
|
224
224
|
);
|
225
225
|
|
226
226
|
scope.item = testItem;
|
@@ -245,14 +245,14 @@ describe('Directive: alchEdit', function() {
|
|
245
245
|
|
246
246
|
});
|
247
247
|
|
248
|
-
describe('
|
248
|
+
describe('bstEditMultiselect directive', function() {
|
249
249
|
var editableElement,
|
250
250
|
directiveScope,
|
251
251
|
multiSelectController;
|
252
252
|
|
253
253
|
beforeEach(function() {
|
254
254
|
editableElement = angular.element(
|
255
|
-
'<span
|
255
|
+
'<span bst-edit-multiselect="tacos" options="tacoOptions"></span>');
|
256
256
|
|
257
257
|
scope.tacos = [{id: 2, name: 'barbacoa'}, {id: 3, name: 'carnitas'}];
|
258
258
|
scope.tacoOptions = [{id: 1, name: 'baja shrimp'}, {id: 2, name: 'barbacoa'},
|
@@ -264,7 +264,7 @@ describe('Directive: alchEdit', function() {
|
|
264
264
|
});
|
265
265
|
|
266
266
|
beforeEach(inject(function($controller) {
|
267
|
-
multiSelectController = $controller('
|
267
|
+
multiSelectController = $controller('BstEditMultiselectController', {$scope: directiveScope});
|
268
268
|
}));
|
269
269
|
|
270
270
|
it("should display a multi select on editable click", function() {
|
@@ -294,12 +294,12 @@ describe('Directive: alchEdit', function() {
|
|
294
294
|
|
295
295
|
});
|
296
296
|
|
297
|
-
describe('
|
297
|
+
describe('bstEditAddItem directive', function() {
|
298
298
|
var editableElement;
|
299
299
|
|
300
300
|
beforeEach(function() {
|
301
301
|
editableElement = angular.element(
|
302
|
-
'<span
|
302
|
+
'<span bst-edit-add-item="item.name" on-add="item.add()"></span>');
|
303
303
|
|
304
304
|
scope.item = testItem;
|
305
305
|
|
data/test/{incubator/alch-flyout.directive.test.js → components/bst-flyout.directive.test.js}
RENAMED
@@ -11,14 +11,14 @@
|
|
11
11
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
12
|
*/
|
13
13
|
|
14
|
-
describe('Directive:
|
14
|
+
describe('Directive: bstFlyout', function() {
|
15
15
|
var scope,
|
16
16
|
compile,
|
17
17
|
testItems,
|
18
18
|
element,
|
19
19
|
elementScope;
|
20
20
|
|
21
|
-
beforeEach(module('
|
21
|
+
beforeEach(module('Bastion.components', 'components/views/bst-flyout.html'));
|
22
22
|
|
23
23
|
beforeEach(inject(function(_$compile_, _$rootScope_) {
|
24
24
|
compile = _$compile_;
|
@@ -32,7 +32,7 @@ describe('Directive: alchFlyout', function() {
|
|
32
32
|
];
|
33
33
|
scope.items = testItems;
|
34
34
|
|
35
|
-
element = angular.element('<ul
|
35
|
+
element = angular.element('<ul bst-flyout="items"></ul>');
|
36
36
|
compile(element)(scope);
|
37
37
|
scope.$digest();
|
38
38
|
|
@@ -12,13 +12,13 @@
|
|
12
12
|
*/
|
13
13
|
|
14
14
|
|
15
|
-
describe('Directive:
|
15
|
+
describe('Directive: bstFormButtons', function() {
|
16
16
|
var $scope, $compile, element;
|
17
17
|
|
18
18
|
beforeEach(module(
|
19
|
-
'
|
20
|
-
'
|
21
|
-
'
|
19
|
+
'Bastion.components',
|
20
|
+
'components/views/bst-save-control.html',
|
21
|
+
'components/views/bst-form-buttons.html'
|
22
22
|
));
|
23
23
|
|
24
24
|
beforeEach(inject(function(_$compile_, _$rootScope_) {
|
@@ -29,7 +29,7 @@ describe('Directive: alchFormButtons', function() {
|
|
29
29
|
beforeEach(function() {
|
30
30
|
element = '<form name="testForm">' +
|
31
31
|
'<input name="name" ng-model="fake.name" required>' +
|
32
|
-
'<div
|
32
|
+
'<div bst-form-buttons ' +
|
33
33
|
'on-cancel="transitionTo(\'product.index\')" ' +
|
34
34
|
'on-save="save(product)" ' +
|
35
35
|
'working="working"> ' +
|
@@ -12,12 +12,12 @@
|
|
12
12
|
*/
|
13
13
|
|
14
14
|
|
15
|
-
describe('Directive:
|
15
|
+
describe('Directive: bstFormGroup', function() {
|
16
16
|
var $scope, $compile, element;
|
17
17
|
|
18
18
|
beforeEach(module(
|
19
|
-
'
|
20
|
-
'
|
19
|
+
'Bastion.components',
|
20
|
+
'components/views/bst-form-group.html'
|
21
21
|
));
|
22
22
|
|
23
23
|
beforeEach(inject(function(_$compile_, _$rootScope_) {
|
@@ -27,7 +27,7 @@ describe('Directive: alchFormGroup', function() {
|
|
27
27
|
|
28
28
|
beforeEach(function() {
|
29
29
|
element = '<form name="testForm">' +
|
30
|
-
'<div
|
30
|
+
'<div bst-form-group label="Name" required>' +
|
31
31
|
'<input id="name" ' +
|
32
32
|
'name="name" ' +
|
33
33
|
'ng-model="fake.name" ' +
|
@@ -10,10 +10,10 @@
|
|
10
10
|
* have received a copy of GPLv2 along with this software; if not, see
|
11
11
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
12
|
*/
|
13
|
-
describe('Directive:
|
13
|
+
describe('Directive: bstInfiniteScroll', function () {
|
14
14
|
var $scope, $compile, $q, element;
|
15
15
|
|
16
|
-
beforeEach(module('
|
16
|
+
beforeEach(module('Bastion.components'));
|
17
17
|
|
18
18
|
beforeEach(inject(function ($rootScope, _$compile_, _$q_){
|
19
19
|
$scope = $rootScope;
|
@@ -29,7 +29,7 @@ describe('Directive: alchInfiniteScroll', function () {
|
|
29
29
|
}
|
30
30
|
};
|
31
31
|
$scope.data = [];
|
32
|
-
element = angular.element('<div data="data"
|
32
|
+
element = angular.element('<div data="data" bst-infinite-scroll="scrollHandler.doIt()" style=" height: 100px; position: absolute; overflow-y: auto;"></div>');
|
33
33
|
$('body').append(element);
|
34
34
|
}));
|
35
35
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
12
|
*/
|
13
13
|
|
14
|
-
describe('Directive:
|
14
|
+
describe('Directive: bstMenu', function() {
|
15
15
|
var scope,
|
16
16
|
compile,
|
17
17
|
window,
|
@@ -20,10 +20,10 @@ describe('Directive: alchMenu', function() {
|
|
20
20
|
elementScope;
|
21
21
|
|
22
22
|
beforeEach(module(
|
23
|
-
'
|
24
|
-
'
|
25
|
-
'
|
26
|
-
'
|
23
|
+
'Bastion.components',
|
24
|
+
'components/views/bst-menu.html',
|
25
|
+
'components/views/bst-dropdown.html',
|
26
|
+
'components/views/bst-flyout.html'
|
27
27
|
));
|
28
28
|
|
29
29
|
beforeEach(inject(function(_$compile_, _$rootScope_, $window) {
|
@@ -43,7 +43,7 @@ describe('Directive: alchMenu', function() {
|
|
43
43
|
]};
|
44
44
|
scope.items = testMenu;
|
45
45
|
|
46
|
-
element = angular.element('<nav
|
46
|
+
element = angular.element('<nav bst-menu="items"></nav>');
|
47
47
|
compile(element)(scope);
|
48
48
|
scope.$digest();
|
49
49
|
|