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
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZjkxNWNlNTJiYWJhOTVhZWIzY2YwMDQ5ODA4ZDVlODkwY2QzYmNmNg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8adc1edf9a3b286a1f3e59b9df31b2575dd94f65
|
4
|
+
data.tar.gz: a726b66ae909ddb768477067bc60684d12070057
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MDRhMTRkMjExNTAzM2FlZGM5ODFiYjljYmNhNzliMjcyYzRmZTIyOGNiNDA4
|
11
|
-
YTk5NWI0ZWJmZWI1NzY2MTBhZWI3NzU4ZWJhN2E3MTI4MWUzNDQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZDUyZGUxMTIyNDFhYjExNmMxOGM5YzBjYzk0YTRkMjFlOWVkZTM5YjQ0ODc5
|
14
|
-
M2Y2YjEyM2U3MzFjZGFlNWM3YzdmYjU0YjgxZjcwOTY4NDhhN2MwMDM5Yzhi
|
15
|
-
MWY2YzU5ZGRmYzAwNjBjNTA1Mjg0ODA0NTU5MzYyYWM5YjRkZjI=
|
6
|
+
metadata.gz: 8d1dd51c3ad35b209adc6004cfb61240849cc79dda6e74067f9ef6176701d267bdcb025d8c7341b3500541adeaa080757e15e18e87a676e97f05e0ad37aee332
|
7
|
+
data.tar.gz: 69885c86c17f773252ce015a46c21da559867bba7d2805608f6cdd7963252657f242cd03747f208a651c39fe930a78a972fa83a4f5480444364a8745b0953588
|
data/README.md
CHANGED
@@ -12,6 +12,7 @@ Bastion is designed to provide a set of common functionality and integration poi
|
|
12
12
|
Bastion.register_plugin(
|
13
13
|
:name => 'bastion_katello',
|
14
14
|
:javascript => 'bastion_katello/bastion_katello',
|
15
|
+
:stylesheet => 'bastion_katello/bastion_katello',
|
15
16
|
:pages => %w(
|
16
17
|
content_hosts
|
17
18
|
content_views
|
@@ -74,16 +75,14 @@ The module defines a namespace that contains all functionality related to this e
|
|
74
75
|
angular
|
75
76
|
.module('Bastion.content-hosts', [
|
76
77
|
'ngResource',
|
77
|
-
'alchemy',
|
78
|
-
'alch-templates',
|
79
78
|
'ui.router',
|
80
|
-
'Bastion.
|
79
|
+
'Bastion.components'
|
81
80
|
]);
|
82
81
|
|
83
82
|
})();
|
84
83
|
```
|
85
84
|
|
86
|
-
The module definition creates the 'Bastion.content-hosts' namespace and tells Angular to make available the libraries `ngResource`, `
|
85
|
+
The module definition creates the 'Bastion.content-hosts' namespace and tells Angular to make available the libraries `ngResource`, `ui.router` and `Bastion.components`. These libraries are other similarly defined Angular modules.
|
87
86
|
|
88
87
|
#### Routing
|
89
88
|
|
@@ -221,8 +220,8 @@ Since Bower is based off the use of a git repository to define the package conte
|
|
221
220
|
If needing to extract multiple asset types, one can do:
|
222
221
|
|
223
222
|
```javascript
|
224
|
-
"
|
225
|
-
"javascripts/bastion": "
|
223
|
+
"bootstrap": {
|
224
|
+
"javascripts/bastion": "bootstrap.js",
|
226
225
|
"stylesheets/bastion": "*.scss"
|
227
226
|
}
|
228
227
|
```
|
data/Rakefile
CHANGED
@@ -16,9 +16,6 @@ angular.element(document).ready(function () {
|
|
16
16
|
});
|
17
17
|
|
18
18
|
BASTION_MODULES = [
|
19
|
-
'alchemy',
|
20
|
-
'alchemy.format',
|
21
|
-
'alch-templates',
|
22
19
|
'angular-blocks',
|
23
20
|
'ngAnimate',
|
24
21
|
'ngSanitize',
|
@@ -28,5 +25,4 @@ BASTION_MODULES = [
|
|
28
25
|
'Bastion.auth',
|
29
26
|
'Bastion.menu',
|
30
27
|
'Bastion.i18n',
|
31
|
-
'Bastion.widgets'
|
32
28
|
];
|
@@ -22,17 +22,10 @@
|
|
22
22
|
//= require "bastion/angular-blocks/angular-blocks"
|
23
23
|
//= require_tree "../../../../vendor/assets/javascripts/bastion/angular-bootstrap"
|
24
24
|
//= require "bastion/angular-animate/angular-animate"
|
25
|
-
//= require "bastion/alchemy/alchemy"
|
26
25
|
|
27
26
|
//= require "bastion/bastion.module"
|
28
27
|
//= require "bastion/bastion-resource.factory"
|
29
28
|
|
30
|
-
//= require_tree "./incubator"
|
31
|
-
|
32
|
-
//= require "bastion/incubator/format/alch-format.module.js"
|
33
|
-
//= require "bastion/incubator/format/array-to-string.filter.js"
|
34
|
-
//= require "bastion/incubator/format/key-value-to-string.filter.js"
|
35
|
-
|
36
29
|
//= require "bastion/i18n/i18n.module"
|
37
30
|
//= require "bastion/i18n/translate.service.js"
|
38
31
|
//= require "bastion/i18n/translations"
|
@@ -43,8 +36,9 @@
|
|
43
36
|
//= require "bastion/menu/menu.module"
|
44
37
|
//= require_tree "./menu"
|
45
38
|
|
46
|
-
//= require "bastion/
|
47
|
-
//=
|
39
|
+
//= require "bastion/components/components.module"
|
40
|
+
//= require "bastion/components/formatters/components-formatters.module"
|
41
|
+
//= require_tree "./components"
|
48
42
|
|
49
43
|
//= require "bastion/utils/utils.module"
|
50
44
|
//= require_tree "./utils"
|
@@ -13,21 +13,21 @@
|
|
13
13
|
|
14
14
|
/**
|
15
15
|
* @ngdoc directive
|
16
|
-
* @name
|
16
|
+
* @name Bastion.components.directive:bstAlert
|
17
17
|
*
|
18
18
|
* @description
|
19
19
|
* Simple directive for encapsulating alert displays.
|
20
20
|
*
|
21
21
|
* @example
|
22
22
|
* <pre>
|
23
|
-
* <div
|
23
|
+
* <div bst-alert
|
24
24
|
* successMessages="successMessages"
|
25
25
|
* errorMessages="errorMessages">
|
26
26
|
* </div>
|
27
27
|
*/
|
28
|
-
angular.module('
|
28
|
+
angular.module('Bastion.components').directive('bstAlert', function () {
|
29
29
|
return {
|
30
|
-
templateUrl: '
|
30
|
+
templateUrl: 'components/views/bst-alert.html',
|
31
31
|
scope: {
|
32
32
|
successMessages: '=',
|
33
33
|
infoMessages: '=',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* @ngdoc directive
|
3
|
-
* @name
|
3
|
+
* @name Bastion.components.directive:bstContainerScroll
|
4
4
|
* @restrict A
|
5
5
|
*
|
6
6
|
* @requires $window
|
@@ -12,10 +12,10 @@
|
|
12
12
|
*
|
13
13
|
* @example
|
14
14
|
* <pre>
|
15
|
-
<div
|
15
|
+
<div bst-container-scroll></div>
|
16
16
|
</pre>
|
17
17
|
*/
|
18
|
-
angular.module('
|
18
|
+
angular.module('Bastion.components').directive('bstContainerScroll', ['$window', '$timeout', function ($window, $timeout) {
|
19
19
|
return {
|
20
20
|
restrict: 'A',
|
21
21
|
|
@@ -1,19 +1,19 @@
|
|
1
1
|
/**
|
2
2
|
* @ngdoc directive
|
3
|
-
* @name
|
3
|
+
* @name Bastion.components.directive:bstDropdown
|
4
4
|
* @restrict EA
|
5
5
|
*
|
6
6
|
* @description
|
7
7
|
* Provides a "dropdown" menu.
|
8
8
|
*/
|
9
|
-
angular.module('
|
9
|
+
angular.module('Bastion.components').directive('bstDropdown', function () {
|
10
10
|
return {
|
11
11
|
restrict: 'EA',
|
12
12
|
replace: true,
|
13
13
|
scope: {
|
14
|
-
'dropdown' : '=
|
14
|
+
'dropdown' : '=bstDropdown'
|
15
15
|
},
|
16
|
-
templateUrl: '
|
16
|
+
templateUrl: 'components/views/bst-dropdown.html',
|
17
17
|
|
18
18
|
controller: ['$scope', function ($scope) {
|
19
19
|
$scope.setHover = function (item, mousein) {
|
@@ -13,28 +13,28 @@
|
|
13
13
|
|
14
14
|
/**
|
15
15
|
* @ngdoc directive
|
16
|
-
* @name
|
16
|
+
* @name Bastion.components.directive:bstEdit
|
17
17
|
* @restrict A
|
18
18
|
*
|
19
19
|
* @description
|
20
20
|
* Provides a set of inline editable elements for various form elements. The
|
21
|
-
*
|
21
|
+
* bst-edit directive is the base for all input types to take advantage of
|
22
22
|
* and should never be used directly. The current list of supported types are:
|
23
23
|
*
|
24
|
-
* - input (
|
25
|
-
* - textarea (
|
24
|
+
* - input (bst-edit-text)
|
25
|
+
* - textarea (bst-edit-textarea)
|
26
26
|
*
|
27
27
|
* @example
|
28
28
|
*/
|
29
|
-
angular.module('
|
30
|
-
.directive('
|
29
|
+
angular.module('Bastion.components')
|
30
|
+
.directive('bstEdit', function () {
|
31
31
|
return {
|
32
32
|
replace: true,
|
33
|
-
controller: '
|
34
|
-
templateUrl: '
|
33
|
+
controller: 'BstEditController',
|
34
|
+
templateUrl: 'components/views/bst-edit.html'
|
35
35
|
};
|
36
36
|
})
|
37
|
-
.controller('
|
37
|
+
.controller('BstEditController', ['$scope', '$filter', function ($scope, $filter) {
|
38
38
|
var previousValue;
|
39
39
|
|
40
40
|
$scope.edit = function () {
|
@@ -180,53 +180,53 @@ angular.module('alchemy')
|
|
180
180
|
$scope.workingMode = newValue;
|
181
181
|
});
|
182
182
|
}])
|
183
|
-
.directive('
|
183
|
+
.directive('bstEditText', function () {
|
184
184
|
return {
|
185
185
|
replace: true,
|
186
186
|
scope: {
|
187
|
-
model: '=
|
187
|
+
model: '=bstEditText',
|
188
188
|
readonly: '=',
|
189
189
|
handleSave: '&onSave',
|
190
190
|
handleCancel: '&onCancel',
|
191
191
|
deletable: '@deletable',
|
192
192
|
handleDelete: '&onDelete'
|
193
193
|
},
|
194
|
-
templateUrl: '
|
194
|
+
templateUrl: 'components/views/bst-edit-text.html'
|
195
195
|
};
|
196
196
|
})
|
197
|
-
.directive('
|
197
|
+
.directive('bstEditTextarea', function () {
|
198
198
|
return {
|
199
199
|
replace: true,
|
200
200
|
scope: {
|
201
|
-
model: '=
|
201
|
+
model: '=bstEditTextarea',
|
202
202
|
readonly: '=',
|
203
203
|
handleSave: '&onSave',
|
204
204
|
handleCancel: '&onCancel'
|
205
205
|
},
|
206
|
-
templateUrl: '
|
206
|
+
templateUrl: 'components/views/bst-edit-textarea.html'
|
207
207
|
};
|
208
208
|
})
|
209
|
-
.directive('
|
209
|
+
.directive('bstEditCheckbox', function () {
|
210
210
|
return {
|
211
211
|
replace: true,
|
212
212
|
scope: {
|
213
|
-
model: '=
|
213
|
+
model: '=bstEditCheckbox',
|
214
214
|
readonly: '=',
|
215
215
|
handleSave: '&onSave',
|
216
216
|
handleCancel: '&onCancel',
|
217
217
|
formatter: '@formatter',
|
218
218
|
formatterOptions: '=formatterOptions'
|
219
219
|
},
|
220
|
-
templateUrl: '
|
220
|
+
templateUrl: 'components/views/bst-edit-checkbox.html'
|
221
221
|
};
|
222
222
|
})
|
223
|
-
.directive('
|
223
|
+
.directive('bstEditCustom', function () {
|
224
224
|
return {
|
225
225
|
replace: true,
|
226
226
|
transclude: true,
|
227
|
-
templateUrl: '
|
227
|
+
templateUrl: 'components/views/bst-edit-custom.html',
|
228
228
|
scope: {
|
229
|
-
model: '=
|
229
|
+
model: '=bstEditCustom',
|
230
230
|
readonly: '=',
|
231
231
|
handleSave: '&onSave',
|
232
232
|
handleCancel: '&onCancel',
|
@@ -237,11 +237,11 @@ angular.module('alchemy')
|
|
237
237
|
}
|
238
238
|
};
|
239
239
|
})
|
240
|
-
.directive('
|
240
|
+
.directive('bstEditSelect', function () {
|
241
241
|
return {
|
242
242
|
replace: true,
|
243
243
|
scope: {
|
244
|
-
model: '=
|
244
|
+
model: '=bstEditSelect',
|
245
245
|
displayValueDefault: '=displayValueDefault',
|
246
246
|
formatter: '@formatter',
|
247
247
|
readonly: '=',
|
@@ -253,7 +253,7 @@ angular.module('alchemy')
|
|
253
253
|
handleDelete: '&onDelete',
|
254
254
|
editTrigger: '='
|
255
255
|
},
|
256
|
-
templateUrl: '
|
256
|
+
templateUrl: 'components/views/bst-edit-select.html',
|
257
257
|
compile: function (element, attrs) {
|
258
258
|
var optionsFormat = attrs['optionsFormat'];
|
259
259
|
if (optionsFormat) {
|
@@ -262,12 +262,12 @@ angular.module('alchemy')
|
|
262
262
|
}
|
263
263
|
};
|
264
264
|
})
|
265
|
-
.directive('
|
265
|
+
.directive('bstEditMultiselect', function () {
|
266
266
|
return {
|
267
267
|
replace: true,
|
268
|
-
templateUrl: '
|
268
|
+
templateUrl: 'components/views/bst-edit-multiselect.html',
|
269
269
|
scope: {
|
270
|
-
model: '=
|
270
|
+
model: '=bstEditMultiselect',
|
271
271
|
formatter: '@formatter',
|
272
272
|
formatterOptions: '@formatterOptions',
|
273
273
|
handleOptions: '&options',
|
@@ -279,10 +279,10 @@ angular.module('alchemy')
|
|
279
279
|
forcedWorkingMode: '=',
|
280
280
|
displayValueDefault: '@displayValueDefault'
|
281
281
|
},
|
282
|
-
controller: '
|
282
|
+
controller: 'BstEditMultiselectController'
|
283
283
|
};
|
284
284
|
})
|
285
|
-
.controller('
|
285
|
+
.controller('BstEditMultiselectController', ['$scope', function ($scope) {
|
286
286
|
var unbindWatcher, checkPrevious, getIds;
|
287
287
|
|
288
288
|
getIds = function (models) {
|
@@ -323,17 +323,17 @@ angular.module('alchemy')
|
|
323
323
|
unbindWatcher();
|
324
324
|
});
|
325
325
|
}])
|
326
|
-
.directive('
|
326
|
+
.directive('bstEditAddItem', function () {
|
327
327
|
return {
|
328
|
-
templateUrl: '
|
328
|
+
templateUrl: 'components/views/bst-edit-add-item.html',
|
329
329
|
scope: {
|
330
|
-
model: '=
|
330
|
+
model: '=bstEditAddItem',
|
331
331
|
handleAdd: '&onAdd'
|
332
332
|
},
|
333
|
-
controller: '
|
333
|
+
controller: 'BstEditAddItemController'
|
334
334
|
};
|
335
335
|
})
|
336
|
-
.controller('
|
336
|
+
.controller('BstEditAddItemController', ['$scope', function ($scope) {
|
337
337
|
$scope.add = function (value) {
|
338
338
|
var handleAdd;
|
339
339
|
|
@@ -1,19 +1,19 @@
|
|
1
1
|
/**
|
2
2
|
* @ngdoc directive
|
3
|
-
* @name
|
3
|
+
* @name Bastion.components.directive:bstFlyout
|
4
4
|
* @restrict EA
|
5
5
|
*
|
6
6
|
* @description
|
7
7
|
* Provides a "flyout" sub-menu for menu items with one or more
|
8
8
|
* child menu items.
|
9
9
|
*/
|
10
|
-
angular.module('
|
10
|
+
angular.module('Bastion.components').directive('bstFlyout', function () {
|
11
11
|
return {
|
12
12
|
restrict: 'EA',
|
13
13
|
replace: true,
|
14
14
|
scope: {
|
15
|
-
'flyout' : '=
|
15
|
+
'flyout' : '=bstFlyout'
|
16
16
|
},
|
17
|
-
templateUrl: '
|
17
|
+
templateUrl: 'components/views/bst-flyout.html'
|
18
18
|
};
|
19
19
|
});
|
@@ -13,24 +13,24 @@
|
|
13
13
|
|
14
14
|
/**
|
15
15
|
* @ngdoc directive
|
16
|
-
* @name
|
16
|
+
* @name Bastion.components.directive:bstFormButtons
|
17
17
|
*
|
18
18
|
* @description
|
19
19
|
* Encapsulates the standard structure and styling for create and cancel buttons
|
20
20
|
* when used with a form.
|
21
21
|
*
|
22
22
|
* @example
|
23
|
-
* <div
|
23
|
+
* <div bst-form-buttons
|
24
24
|
on-cancel="transitionTo('product.index')"
|
25
25
|
on-save="save(product)"
|
26
26
|
working="working">
|
27
27
|
</div>
|
28
28
|
*/
|
29
|
-
angular.module('
|
29
|
+
angular.module('Bastion.components').directive('bstFormButtons', function () {
|
30
30
|
return {
|
31
31
|
replace: true,
|
32
32
|
require: '^form',
|
33
|
-
templateUrl: '
|
33
|
+
templateUrl: 'components/views/bst-form-buttons.html',
|
34
34
|
scope: {
|
35
35
|
handleCancel: '&onCancel',
|
36
36
|
handleSave: '&onSave',
|
@@ -13,14 +13,14 @@
|
|
13
13
|
|
14
14
|
/**
|
15
15
|
* @ngdoc directive
|
16
|
-
* @name
|
16
|
+
* @name Bastion.components.directive:bstFormGroup
|
17
17
|
*
|
18
18
|
* @description
|
19
19
|
* Encapsulates the structure and styling for a label + input used within a
|
20
20
|
* Bootstrap3 based form.
|
21
21
|
*
|
22
22
|
* @example
|
23
|
-
* <div
|
23
|
+
* <div bst-form-group label="{{ 'Name' | translate }}" required>
|
24
24
|
<input id="name"
|
25
25
|
name="name"
|
26
26
|
ng-model="product.name"
|
@@ -29,7 +29,7 @@
|
|
29
29
|
required/>
|
30
30
|
</div>
|
31
31
|
*/
|
32
|
-
angular.module('
|
32
|
+
angular.module('Bastion.components').directive('bstFormGroup', function () {
|
33
33
|
function getInput(element) {
|
34
34
|
// table is used for bootstrap3 date/time pickers
|
35
35
|
var input = element.find('table');
|
@@ -52,7 +52,7 @@ angular.module('alchemy').directive('alchFormGroup', function () {
|
|
52
52
|
transclude: true,
|
53
53
|
replace: true,
|
54
54
|
require: '^form',
|
55
|
-
templateUrl: '
|
55
|
+
templateUrl: 'components/views/bst-form-group.html',
|
56
56
|
scope: {
|
57
57
|
'label': '@',
|
58
58
|
'field': '@'
|