interval-braining-ui-asset-pack 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asset_pack/engine.rb +5 -2
- data/lib/asset_pack/version.rb +1 -1
- data/vendor/assets/bower_components/angular/angular.js +23377 -0
- data/vendor/assets/bower_components/angular-animate/angular-animate.js +1729 -0
- data/vendor/assets/bower_components/angular-growl-notifications/dist/growl-notifications.js +241 -0
- data/vendor/assets/bower_components/angular-input-match/dist/angular-input-match.js +39 -0
- data/vendor/assets/bower_components/angular-messages/angular-messages.js +400 -0
- data/vendor/assets/bower_components/angular-mocks/angular-mocks.js +2228 -0
- data/vendor/assets/bower_components/angular-resource/angular-resource.js +660 -0
- data/vendor/assets/bower_components/angular-sanitize/angular-sanitize.js +640 -0
- data/vendor/assets/bower_components/angular-ui-router/release/angular-ui-router.js +3223 -0
- data/vendor/assets/bower_components/angular-ui-router-breadcrumbs/dist/angular-ui-router-breadcrumbs.js +82 -0
- data/vendor/assets/bower_components/angular-ui-router-helpers/dist/angular-ui-router-helpers.js +52 -0
- data/vendor/assets/bower_components/angular-ui-router-hooks-before-state/dist/angular-ui-router-hooks-before-state.js +56 -0
- data/vendor/assets/bower_components/angular-validate-in-set/dist/angular-validate-in-set.js +77 -0
- data/vendor/assets/bower_components/animate.css/animate.css +3125 -0
- data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.css +5785 -0
- data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/bower_components/bootstrap/dist/js/bootstrap.js +1951 -0
- data/vendor/assets/bower_components/cardigan/dist/cardigan.css +37 -0
- data/vendor/assets/bower_components/cardigan/dist/cardigan.js +239 -0
- data/vendor/assets/bower_components/font-awesome-bower/css/font-awesome.css +1338 -0
- data/vendor/assets/bower_components/font-awesome-bower/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/bower_components/font-awesome-bower/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/bower_components/font-awesome-bower/fonts/fontawesome-webfont.svg +414 -0
- data/vendor/assets/bower_components/font-awesome-bower/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/bower_components/font-awesome-bower/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/bower_components/jquery/dist/jquery.js +9190 -0
- data/vendor/assets/bower_components/webfont-OpenSans-Light/dist/OpenSans-Light.css +10 -0
- data/vendor/assets/bower_components/webfont-OpenSans-Light/dist/OpenSans-Light.eot +0 -0
- data/vendor/assets/bower_components/webfont-OpenSans-Light/dist/OpenSans-Light.svg +1831 -0
- data/vendor/assets/bower_components/webfont-OpenSans-Light/dist/OpenSans-Light.ttf +0 -0
- data/vendor/assets/bower_components/webfont-OpenSans-Light/dist/OpenSans-Light.woff +0 -0
- metadata +36 -2
@@ -0,0 +1,82 @@
|
|
1
|
+
/**
|
2
|
+
* angular-ui-router state derived breadcrumbs
|
3
|
+
* @version v0.0.1-dev-2014-04-20
|
4
|
+
* @link https://github.com/interval-braining/angular-ui-router-breadcrumbs
|
5
|
+
* @license MIT License, http://www.opensource.org/licenses/MIT
|
6
|
+
*/
|
7
|
+
|
8
|
+
(function (window, angular, undefined) {
|
9
|
+
"use strict";
|
10
|
+
// Source: src/ui_router_breadcrumbs.js
|
11
|
+
/* exported breadcrumbs */
|
12
|
+
var breadcrumbs = angular.module('ui.router.breadcrumbs', ['ng', 'ui.router']);
|
13
|
+
|
14
|
+
// Source: src/directives/breadcrumbs.js
|
15
|
+
breadcrumbs.directive('breadcrumbs', [
|
16
|
+
'$compile',
|
17
|
+
'$rootScope',
|
18
|
+
'breadcrumbs',
|
19
|
+
function($compile, $rootScope, breadcrumbs) {
|
20
|
+
return {
|
21
|
+
link: {
|
22
|
+
pre: function link(scope, element, attrs) {
|
23
|
+
/* jshint unused: false */ /* for element, attrs */
|
24
|
+
scope.breadcrumbs = breadcrumbs;
|
25
|
+
}
|
26
|
+
},
|
27
|
+
restrict: 'AC'
|
28
|
+
};
|
29
|
+
}
|
30
|
+
]);
|
31
|
+
|
32
|
+
// Source: src/services/breadcrumbs.js
|
33
|
+
breadcrumbs.provider('breadcrumbs', function BreadcrumbsProvider() {
|
34
|
+
var compile;
|
35
|
+
|
36
|
+
function defaultCompiler(currentState) {
|
37
|
+
if(!currentState.breadcrumb) { return null; }
|
38
|
+
|
39
|
+
if(typeof currentState.breadcrumb === 'string') {
|
40
|
+
return {
|
41
|
+
text: currentState.breadcrumb,
|
42
|
+
stateName: currentState.name
|
43
|
+
};
|
44
|
+
} else {
|
45
|
+
return currentState.breadcrumb;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
compile = defaultCompiler;
|
50
|
+
|
51
|
+
function refresh($state, breadcrumbs) {
|
52
|
+
var currentState = $state.$current,
|
53
|
+
breadcrumb;
|
54
|
+
|
55
|
+
breadcrumbs.length = 0;
|
56
|
+
|
57
|
+
while(currentState.parent) {
|
58
|
+
breadcrumb = compile(currentState.self);
|
59
|
+
if(breadcrumb) { breadcrumbs.unshift(breadcrumb); }
|
60
|
+
currentState = currentState.parent;
|
61
|
+
}
|
62
|
+
return breadcrumbs;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Public Interface
|
66
|
+
|
67
|
+
this.compileWith = function(customCompiler) {
|
68
|
+
return compile = customCompiler || defaultCompiler;
|
69
|
+
};
|
70
|
+
|
71
|
+
this.$get = [
|
72
|
+
'$rootScope',
|
73
|
+
'$state',
|
74
|
+
function($rootScope, $state) {
|
75
|
+
var breadcrumbs = [];
|
76
|
+
refresh($state, breadcrumbs);
|
77
|
+
$rootScope.$on('$stateChangeSuccess', function() { refresh($state, breadcrumbs); });
|
78
|
+
return breadcrumbs;
|
79
|
+
}
|
80
|
+
];
|
81
|
+
});
|
82
|
+
})(window, window.angular);
|
data/vendor/assets/bower_components/angular-ui-router-helpers/dist/angular-ui-router-helpers.js
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
/**
|
2
|
+
* Helpful providers for angular-ui-router
|
3
|
+
* @version v0.0.1-dev-2014-04-20
|
4
|
+
* @link https://github.com/interval-braining/angular-ui-router-helpers
|
5
|
+
* @license MIT License, http://www.opensource.org/licenses/MIT
|
6
|
+
*/
|
7
|
+
|
8
|
+
(function (window, angular, undefined) {
|
9
|
+
"use strict";
|
10
|
+
// Source: src/ui_router_helpers.js
|
11
|
+
/* exported uiRouterHelpers */
|
12
|
+
var uiRouterHelpers = angular.module('ui.router.helpers', ['ng', 'ui.router']);
|
13
|
+
|
14
|
+
// Source: src/services/state_attr.js
|
15
|
+
uiRouterHelpers.factory('stateAttr', [
|
16
|
+
'$rootScope',
|
17
|
+
'$state',
|
18
|
+
function($rootScope, $state) {
|
19
|
+
var ProtoStateAttr = {
|
20
|
+
resetValue: function(event, toState, toParams, fromState, fromParams) {
|
21
|
+
/* jshint unused: false */ /* for full function signature */
|
22
|
+
this._value = null;
|
23
|
+
},
|
24
|
+
set: function(newValue) {
|
25
|
+
this._value = newValue;
|
26
|
+
},
|
27
|
+
value: function() {
|
28
|
+
return this._value || $state.current.data && $state.current.data[this.attrName];
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
32
|
+
function StateAttr(attrName) {
|
33
|
+
this.attrName = attrName;
|
34
|
+
this._value = null;
|
35
|
+
}
|
36
|
+
|
37
|
+
StateAttr.prototype = ProtoStateAttr;
|
38
|
+
|
39
|
+
return {
|
40
|
+
new: function(attrName, options) {
|
41
|
+
var attr = new StateAttr(attrName);
|
42
|
+
if(!options) { return attr; }
|
43
|
+
|
44
|
+
if(options.resetValueOnStateChange === true) {
|
45
|
+
$rootScope.$on('$stateChangeSuccess', function() { attr.resetValue(); });
|
46
|
+
}
|
47
|
+
return attr;
|
48
|
+
}
|
49
|
+
};
|
50
|
+
}
|
51
|
+
]);
|
52
|
+
})(window, window.angular);
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* angular-ui-router hook to execute logic before loading a state, possibly changing destination state
|
3
|
+
* @version v0.0.1-dev-2014-04-20
|
4
|
+
* @link https://github.com/interval-braining/angular-ui-router-hooks-before-state
|
5
|
+
* @license MIT License, http://www.opensource.org/licenses/MIT
|
6
|
+
*/
|
7
|
+
|
8
|
+
(function (window, angular, undefined) {
|
9
|
+
"use strict";
|
10
|
+
// Source: src/ui_router_hooks_before_state.js
|
11
|
+
var hookBeforeState = angular.module('ui.router.hooks.beforeState', ['ui.router']);
|
12
|
+
|
13
|
+
function isInjectable(obj) {
|
14
|
+
return angular.isFunction(obj) ||
|
15
|
+
angular.isArray(obj) && angular.isString(obj[0]);
|
16
|
+
}
|
17
|
+
|
18
|
+
function processFilter($injector, $state, event, to, filter) {
|
19
|
+
var result = $injector.invoke(filter);
|
20
|
+
|
21
|
+
if (result) {
|
22
|
+
if(result.to) {
|
23
|
+
// Discontinue chain if redirection occurs
|
24
|
+
event.preventDefault();
|
25
|
+
|
26
|
+
$state.go(result.to, result.params, result.options);
|
27
|
+
|
28
|
+
return false;
|
29
|
+
} else if(result.params) {
|
30
|
+
angular.extend($state.params, result.params);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return result;
|
34
|
+
}
|
35
|
+
|
36
|
+
hookBeforeState.run([
|
37
|
+
'$rootScope',
|
38
|
+
'$state',
|
39
|
+
'$injector',
|
40
|
+
function($rootScope, $state, $injector) {
|
41
|
+
$rootScope.$on('$stateChangeStart', function(event, to) {
|
42
|
+
var filters, result;
|
43
|
+
if (!(filters = to.data.beforeState)) { return; }
|
44
|
+
|
45
|
+
if(isInjectable(filters)) {
|
46
|
+
processFilter($injector, $state, event, to, filters);
|
47
|
+
} else {
|
48
|
+
for(var i = 0; i < filters.length; i++) {
|
49
|
+
result = processFilter($injector, $state, event, to, filters[i]);
|
50
|
+
if(result === false) { return; }
|
51
|
+
}
|
52
|
+
}
|
53
|
+
});
|
54
|
+
}
|
55
|
+
]);
|
56
|
+
})(window, window.angular);
|
@@ -0,0 +1,77 @@
|
|
1
|
+
/**
|
2
|
+
* Angular directive providing set inclusion/exclusion validators for ngModel validation.
|
3
|
+
* @version v0.1.0
|
4
|
+
* @link https://github.com/interval-braining/angular-validate-in-set
|
5
|
+
* @license MIT License, http://www.opensource.org/licenses/MIT
|
6
|
+
*/
|
7
|
+
|
8
|
+
(function (window, undefined) {
|
9
|
+
"use strict";
|
10
|
+
// Source: src/angular-validate-in-set.js
|
11
|
+
(function() {
|
12
|
+
var directiveValidateInSet = angular.module('directives.ngModel.validateInSet', []);
|
13
|
+
|
14
|
+
function inclusionDirective(directiveName, watchTrigger, watchFn) {
|
15
|
+
var directive, matches;
|
16
|
+
|
17
|
+
function extractMatches(matchList) {
|
18
|
+
if(!matchList) {
|
19
|
+
matches = [];
|
20
|
+
return;
|
21
|
+
}
|
22
|
+
if(!angular.isArray(matchList)) {
|
23
|
+
throw('Compilation failure, attribute value of in-set directive must compile to an Array');
|
24
|
+
}
|
25
|
+
matches = matchList;
|
26
|
+
}
|
27
|
+
|
28
|
+
function link(scope, elem, attrs, ctrl) {
|
29
|
+
function evaluateMatches(evalString) {
|
30
|
+
extractMatches(scope.$eval(evalString));
|
31
|
+
}
|
32
|
+
evaluateMatches(attrs[directiveName]);
|
33
|
+
|
34
|
+
attrs.$observe(directiveName, evaluateMatches);
|
35
|
+
|
36
|
+
scope.$watch(
|
37
|
+
function() {
|
38
|
+
return watchTrigger.call({matches: matches, ctrl: ctrl});
|
39
|
+
},
|
40
|
+
function(currentValue, previousValue) {
|
41
|
+
watchFn.call({
|
42
|
+
matches: matches,
|
43
|
+
ctrl: ctrl
|
44
|
+
}, currentValue, previousValue);
|
45
|
+
}
|
46
|
+
);
|
47
|
+
}
|
48
|
+
|
49
|
+
directive = {
|
50
|
+
link: link,
|
51
|
+
require: 'ngModel',
|
52
|
+
restrict: 'A',
|
53
|
+
scope: false
|
54
|
+
};
|
55
|
+
|
56
|
+
return function() { return directive; };
|
57
|
+
}
|
58
|
+
|
59
|
+
directiveValidateInSet.directive('inSet', [
|
60
|
+
inclusionDirective('inSet', function() {
|
61
|
+
return this.matches.length === 0 || this.matches.indexOf(this.ctrl.$modelValue) !== -1;
|
62
|
+
},
|
63
|
+
function(isIncluded) {
|
64
|
+
this.ctrl.$setValidity('inclusion', isIncluded);
|
65
|
+
})
|
66
|
+
]);
|
67
|
+
|
68
|
+
directiveValidateInSet.directive('notInSet', [
|
69
|
+
inclusionDirective('notInSet', function() {
|
70
|
+
return this.matches.indexOf(this.ctrl.$modelValue) === -1;
|
71
|
+
},
|
72
|
+
function(isNotIncluded) {
|
73
|
+
this.ctrl.$setValidity('exclusion', isNotIncluded);
|
74
|
+
})
|
75
|
+
]);
|
76
|
+
})();
|
77
|
+
})(window);
|