bastion 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- /* ng-infinite-scroll - v1.2.0 - 2014-12-02 */
1
+ /* ng-infinite-scroll - v1.2.0 - 2015-02-14 */
2
2
  var mod;
3
3
 
4
4
  mod = angular.module('infinite-scroll', []);
@@ -13,10 +13,11 @@ mod.directive('infiniteScroll', [
13
13
  infiniteScrollContainer: '=',
14
14
  infiniteScrollDistance: '=',
15
15
  infiniteScrollDisabled: '=',
16
- infiniteScrollUseDocumentBottom: '='
16
+ infiniteScrollUseDocumentBottom: '=',
17
+ infiniteScrollListenForEvent: '@'
17
18
  },
18
19
  link: function(scope, elem, attrs) {
19
- var changeContainer, checkWhenEnabled, container, handleInfiniteScrollContainer, handleInfiniteScrollDisabled, handleInfiniteScrollDistance, handleInfiniteScrollUseDocumentBottom, handler, height, immediateCheck, offsetTop, pageYOffset, scrollDistance, scrollEnabled, throttle, useDocumentBottom, windowElement;
20
+ var changeContainer, checkWhenEnabled, container, handleInfiniteScrollContainer, handleInfiniteScrollDisabled, handleInfiniteScrollDistance, handleInfiniteScrollUseDocumentBottom, handler, height, immediateCheck, offsetTop, pageYOffset, scrollDistance, scrollEnabled, throttle, unregisterEventListener, useDocumentBottom, windowElement;
20
21
  windowElement = angular.element($window);
21
22
  scrollDistance = null;
22
23
  scrollEnabled = null;
@@ -24,6 +25,7 @@ mod.directive('infiniteScroll', [
24
25
  container = null;
25
26
  immediateCheck = true;
26
27
  useDocumentBottom = false;
28
+ unregisterEventListener = null;
27
29
  height = function(elem) {
28
30
  elem = elem[0] || elem;
29
31
  if (isNaN(elem.offsetHeight)) {
@@ -110,7 +112,11 @@ mod.directive('infiniteScroll', [
110
112
  handler = throttle(handler, THROTTLE_MILLISECONDS);
111
113
  }
112
114
  scope.$on('$destroy', function() {
113
- return container.unbind('scroll', handler);
115
+ container.unbind('scroll', handler);
116
+ if (unregisterEventListener != null) {
117
+ unregisterEventListener();
118
+ return unregisterEventListener = null;
119
+ }
114
120
  });
115
121
  handleInfiniteScrollDistance = function(v) {
116
122
  return scrollDistance = parseFloat(v) || 0;
@@ -141,6 +147,9 @@ mod.directive('infiniteScroll', [
141
147
  }
142
148
  };
143
149
  changeContainer(windowElement);
150
+ if (scope.infiniteScrollListenForEvent) {
151
+ unregisterEventListener = $rootScope.$on(scope.infiniteScrollListenForEvent, handler);
152
+ }
144
153
  handleInfiniteScrollContainer = function(newContainer) {
145
154
  if ((newContainer == null) || newContainer.length === 0) {
146
155
  return;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bastion
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D Helms
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-16 00:00:00.000000000 Z
12
+ date: 2015-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: angular-rails-templates
@@ -29,28 +29,28 @@ dependencies:
29
29
  name: uglifier
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: less-rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
48
  version: 2.5.0
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: 2.5.0
56
56
  description: Bastion provides a UI library of AngularJS based components designed
@@ -62,7 +62,7 @@ executables: []
62
62
  extensions: []
63
63
  extra_rdoc_files: []
64
64
  files:
65
- - ".jshintrc"
65
+ - .jshintrc
66
66
  - Gruntfile.js
67
67
  - LICENSE
68
68
  - README.md
@@ -131,9 +131,18 @@ files:
131
131
  - app/assets/javascripts/bastion/i18n/bastion.pot
132
132
  - app/assets/javascripts/bastion/i18n/i18n.module.js
133
133
  - app/assets/javascripts/bastion/i18n/locale/README
134
+ - app/assets/javascripts/bastion/i18n/locale/de.po
135
+ - app/assets/javascripts/bastion/i18n/locale/es.po
136
+ - app/assets/javascripts/bastion/i18n/locale/fr.po
137
+ - app/assets/javascripts/bastion/i18n/locale/it.po
138
+ - app/assets/javascripts/bastion/i18n/locale/ja.po
139
+ - app/assets/javascripts/bastion/i18n/locale/ko.po
140
+ - app/assets/javascripts/bastion/i18n/locale/pt_BR.po
141
+ - app/assets/javascripts/bastion/i18n/locale/ru.po
142
+ - app/assets/javascripts/bastion/i18n/locale/zh_CN.po
143
+ - app/assets/javascripts/bastion/i18n/locale/zh_TW.po
134
144
  - app/assets/javascripts/bastion/i18n/translate.service.js
135
145
  - app/assets/javascripts/bastion/i18n/translations.js
136
- - app/assets/javascripts/bastion/i18n/zanata.xml
137
146
  - app/assets/javascripts/bastion/layouts/details-nutupane.html
138
147
  - app/assets/javascripts/bastion/layouts/nutupane.html
139
148
  - app/assets/javascripts/bastion/layouts/select-all-results.html
@@ -1136,50 +1145,50 @@ require_paths:
1136
1145
  - lib
1137
1146
  required_ruby_version: !ruby/object:Gem::Requirement
1138
1147
  requirements:
1139
- - - ">="
1148
+ - - ! '>='
1140
1149
  - !ruby/object:Gem::Version
1141
1150
  version: '0'
1142
1151
  required_rubygems_version: !ruby/object:Gem::Requirement
1143
1152
  requirements:
1144
- - - ">="
1153
+ - - ! '>='
1145
1154
  - !ruby/object:Gem::Version
1146
1155
  version: '0'
1147
1156
  requirements: []
1148
1157
  rubyforge_project:
1149
- rubygems_version: 2.2.1
1158
+ rubygems_version: 2.4.7
1150
1159
  signing_key:
1151
1160
  specification_version: 4
1152
1161
  summary: UI library of AngularJS based components for Foreman
1153
1162
  test_files:
1154
- - test/test-mocks.module.js
1155
- - test/menu/menu-expander.service.test.js
1163
+ - test/bastion/bastion-resource.factory.test.js
1164
+ - test/bastion/test-constants.js
1165
+ - test/features/bst-feature-flag.directive.test.js
1166
+ - test/features/feature-flag.service.test.js
1167
+ - test/auth/authorization.service.test.js
1168
+ - test/i18n/translate.service.test.js
1169
+ - test/components/bst-nutupane-table.directive.test.js
1170
+ - test/components/bst-dropdown.directive.test.js
1171
+ - test/components/bst-form-buttons.directive.test.js
1172
+ - test/components/typeahead-empty.directive.test.js
1173
+ - test/components/bst-alerts.directive.test.js
1174
+ - test/components/nutupane.factory.test.js
1156
1175
  - test/components/page-title.directive.test.js
1157
1176
  - test/components/bst-table.directive.test.js
1158
1177
  - test/components/bst-container-scroll.directive.test.js
1159
- - test/components/bst-modal.directive.test.js
1160
- - test/components/bst-alert.directive.test.js
1161
- - test/components/nutupane.factory.test.js
1162
- - test/components/bst-flyout.directive.test.js
1163
- - test/components/bst-dropdown.directive.test.js
1164
- - test/components/bst-alerts.directive.test.js
1165
- - test/components/bst-form-group.directive.test.js
1166
- - test/components/bst-nutupane-table.directive.test.js
1167
- - test/components/formatters/key-value-to-string.filter.test.js
1168
- - test/components/formatters/boolean-to-yes-no.filter.test.js
1169
- - test/components/formatters/array-to-string.filter.test.js
1170
1178
  - test/components/formatters/capitalize.filter.test.js
1179
+ - test/components/formatters/array-to-string.filter.test.js
1180
+ - test/components/formatters/boolean-to-yes-no.filter.test.js
1171
1181
  - test/components/formatters/unlimited-filter.filter.test.js
1182
+ - test/components/formatters/key-value-to-string.filter.test.js
1172
1183
  - test/components/bst-menu.directive.test.js
1173
1184
  - test/components/bst-edit.directive.test.js
1174
- - test/components/path-selector.directive.test.js
1175
- - test/components/typeahead-empty.directive.test.js
1176
- - test/components/bst-form-buttons.directive.test.js
1185
+ - test/components/bst-modal.directive.test.js
1186
+ - test/components/bst-form-group.directive.test.js
1187
+ - test/components/bst-flyout.directive.test.js
1177
1188
  - test/components/page-title.service.test.js
1178
- - test/bastion/test-constants.js
1179
- - test/bastion/bastion-resource.factory.test.js
1180
- - test/i18n/translate.service.test.js
1181
- - test/auth/authorization.service.test.js
1182
- - test/features/bst-feature-flag.directive.test.js
1183
- - test/features/feature-flag.service.test.js
1184
- - test/utils/form-utils.service.test.js
1189
+ - test/components/bst-alert.directive.test.js
1190
+ - test/components/path-selector.directive.test.js
1185
1191
  - test/utils/as.filter.test.js
1192
+ - test/utils/form-utils.service.test.js
1193
+ - test/test-mocks.module.js
1194
+ - test/menu/menu-expander.service.test.js
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <config xmlns="http://zanata.org/namespace/config/">
3
- <url>https://translate.zanata.org/zanata/</url>
4
- <project>satellite6-katello-bastion</project>
5
- <project-version>6.0</project-version>
6
- <project-type>gettext</project-type>
7
- <locales>
8
- <locale>fr</locale>
9
- <locale>it</locale>
10
- <locale>ja</locale>
11
- <locale>ko</locale>
12
- <locale>gu</locale>
13
- <locale>hi</locale>
14
- <locale>mr</locale>
15
- <locale>or</locale>
16
- <locale>ru</locale>
17
- <locale>te</locale>
18
- <locale>pa</locale>
19
- <locale>kn</locale>
20
- <locale map-from="de">de-DE</locale>
21
- <locale map-from="es">es-ES</locale>
22
- <locale map-from="pt_BR">pt-BR</locale>
23
- <locale map-from="bn">bn-IN</locale>
24
- <locale map-from="ta">ta-IN</locale>
25
- <locale map-from="zh_CN">zh-Hans-CN</locale>
26
- <locale map-from="zh_TW">zh-Hant-TW</locale>
27
- </locales>
28
- </config>