Commit 70b66382 by Torkel Ödegaard

tech(): updated angularjs

parent 14326b62
......@@ -14,10 +14,10 @@
],
"dependencies": {
"jquery": "~2.1.4",
"angular": "~1.5.1",
"angular-route": "~1.5.1",
"angular-mocks": "~1.5.1",
"angular-sanitize": "~1.5.1",
"angular": "~1.5.3",
"angular-route": "~1.5.3",
"angular-mocks": "~1.5.3",
"angular-sanitize": "~1.5.3",
"angular-bindonce": "~0.3.3"
}
}
......@@ -7,7 +7,7 @@ import coreModule from 'app/core/core_module';
var template = `
<label for="check-{{$id}}" class="gf-form-label {{ctrl.labelClass}} pointer">{{ctrl.label}}</label>
<div class="gf-form-switch {{ctrl.switchClass}}">
<div class="gf-form-switch {{ctrl.switchClass}}" ng-if="ctrl.show">
<input id="check-{{$id}}" type="checkbox" ng-model="ctrl.checked" ng-change="ctrl.internalOnChange()">
<label for="check-{{$id}}" data-on="Yes" data-off="No"></label>
</div>
......@@ -16,9 +16,12 @@ var template = `
export class SwitchCtrl {
onChange: any;
checked: any;
show: any;
constructor() {
console.log('property: ' + this.checked, this);
constructor($element) {
// hack to workaround animation
// happening on first show
this.show = true;
}
internalOnChange() {
......
......@@ -65,7 +65,7 @@ $switch-height: 1.5rem;
font-family: 'FontAwesome';
content: "\f096"; // square-o
color: $text-color-faint;
//transition: transform 0.4s;
transition: transform 0.4s;
backface-visibility: hidden;
text-shadow: $text-shadow-faint;
}
......@@ -76,7 +76,7 @@ $switch-height: 1.5rem;
text-shadow: $text-shadow-strong;
font-family: 'FontAwesome';
//transition: transform 0.4s;
transition: transform 0.4s;
transform: rotateY(180deg);
backface-visibility: hidden;
}
......
{
"name": "angular-mocks",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular-mocks.js",
"ignore": [],
"dependencies": {
"angular": "1.5.1-build.4601+sha.c966876"
"angular": "1.5.3"
},
"homepage": "https://github.com/angular/bower-angular-mocks",
"_release": "1.5.1-build.4601+sha.c966876",
"_release": "1.5.3",
"_resolution": {
"type": "version",
"tag": "v1.5.1-build.4601+sha.c966876",
"commit": "ff7c5c2ac686293829786d26d844391e45c37c11"
"tag": "v1.5.3",
"commit": "319557fe710cecc11e12c772cc1abb8098d29ccb"
},
"_source": "git://github.com/angular/bower-angular-mocks.git",
"_target": "~1.5.1",
"_target": "~1.5.3",
"_originalSource": "angular-mocks"
}
\ No newline at end of file
{
"name": "angular-mocks",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular-mocks.js",
"ignore": [],
"dependencies": {
"angular": "1.5.1-build.4601+sha.c966876"
"angular": "1.5.3"
}
}
{
"name": "angular-mocks",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"description": "AngularJS mocks for testing",
"main": "angular-mocks.js",
"scripts": {
......
{
"name": "angular-route",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular-route.js",
"ignore": [],
"dependencies": {
"angular": "1.5.1-build.4601+sha.c966876"
"angular": "1.5.3"
},
"homepage": "https://github.com/angular/bower-angular-route",
"_release": "1.5.1-build.4601+sha.c966876",
"_release": "1.5.3",
"_resolution": {
"type": "version",
"tag": "v1.5.1-build.4601+sha.c966876",
"commit": "967fdabf084ac9f37c6b984d8893ebfebde5fc02"
"tag": "v1.5.3",
"commit": "750e4833612071d30993c8e4a547a6982eba3b84"
},
"_source": "git://github.com/angular/bower-angular-route.git",
"_target": "~1.5.1",
"_target": "~1.5.3",
"_originalSource": "angular-route"
}
\ No newline at end of file
/**
* @license AngularJS v1.5.1-build.4601+sha.c966876
* @license AngularJS v1.5.3
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
......@@ -22,7 +22,11 @@
*/
/* global -ngRouteModule */
var ngRouteModule = angular.module('ngRoute', ['ng']).
provider('$route', $RouteProvider),
provider('$route', $RouteProvider).
// Ensure `$route` will be instantiated in time to capture the initial
// `$locationChangeSuccess` event. This is necessary in case `ngView` is
// included in an asynchronously loaded template.
run(['$route', angular.noop]),
$routeMinErr = angular.$$minErr('ngRoute');
/**
......@@ -218,9 +222,9 @@ function $RouteProvider() {
path = path
.replace(/([().])/g, '\\$1')
.replace(/(\/)?:(\w+)([\?\*])?/g, function(_, slash, key, option) {
var optional = option === '?' ? option : null;
var star = option === '*' ? option : null;
.replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g, function(_, slash, key, option) {
var optional = (option === '?' || option === '*?') ? '?' : null;
var star = (option === '*' || option === '*?') ? '*' : null;
keys.push({ name: key, optional: !!optional });
slash = slash || '';
return ''
......
/*
AngularJS v1.5.1-build.4601+sha.c966876
AngularJS v1.5.3
(c) 2010-2016 Google, Inc. http://angularjs.org
License: MIT
*/
(function(r,d,C){'use strict';function x(s,h,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,c,b,f,y){function k(){n&&(g.cancel(n),n=null);l&&(l.$destroy(),l=null);m&&(n=g.leave(m),n.then(function(){n=null}),m=null)}function z(){var b=s.current&&s.current.locals;if(d.isDefined(b&&b.$template)){var b=a.$new(),f=s.current;m=y(b,function(b){g.enter(b,null,m||c).then(function(){!d.isDefined(u)||u&&!a.$eval(u)||h()});k()});l=f.scope=b;l.$emit("$viewContentLoaded");
l.$eval(v)}else k()}var l,m,n,u=b.autoscroll,v=b.onload||"";a.$on("$routeChangeSuccess",z);z()}}}function A(d,h,g){return{restrict:"ECA",priority:-400,link:function(a,c){var b=g.current,f=b.locals;c.html(f.$template);var y=d(c.contents());if(b.controller){f.$scope=a;var k=h(b.controller,f);b.controllerAs&&(a[b.controllerAs]=k);c.data("$ngControllerController",k);c.children().data("$ngControllerController",k)}a[b.resolveAs||"$resolve"]=f;y(a)}}}r=d.module("ngRoute",["ng"]).provider("$route",function(){function s(a,
c){return d.extend(Object.create(a),c)}function h(a,d){var b=d.caseInsensitiveMatch,f={originalPath:a,regexp:a},g=f.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,d,b,c){a="?"===c?c:null;c="*"===c?c:null;g.push({name:b,optional:!!a});d=d||"";return""+(a?"":d)+"(?:"+(a?d:"")+(c&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");f.regexp=new RegExp("^"+a+"$",b?"i":"");return f}var g={};this.when=function(a,c){var b=d.copy(c);d.isUndefined(b.reloadOnSearch)&&
(b.reloadOnSearch=!0);d.isUndefined(b.caseInsensitiveMatch)&&(b.caseInsensitiveMatch=this.caseInsensitiveMatch);g[a]=d.extend(b,a&&h(a,b));if(a){var f="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";g[f]=d.extend({redirectTo:a},h(f,b))}return this};this.caseInsensitiveMatch=!1;this.otherwise=function(a){"string"===typeof a&&(a={redirectTo:a});this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(a,c,b,f,h,k,r){function l(b){var e=
t.current;(x=(p=n())&&e&&p.$$route===e.$$route&&d.equals(p.pathParams,e.pathParams)&&!p.reloadOnSearch&&!v)||!e&&!p||a.$broadcast("$routeChangeStart",p,e).defaultPrevented&&b&&b.preventDefault()}function m(){var w=t.current,e=p;if(x)w.params=e.params,d.copy(w.params,b),a.$broadcast("$routeUpdate",w);else if(e||w)v=!1,(t.current=e)&&e.redirectTo&&(d.isString(e.redirectTo)?c.path(u(e.redirectTo,e.params)).search(e.params).replace():c.url(e.redirectTo(e.pathParams,c.path(),c.search())).replace()),f.when(e).then(function(){if(e){var a=
d.extend({},e.resolve),b,c;d.forEach(a,function(b,e){a[e]=d.isString(b)?h.get(b):h.invoke(b,null,null,e)});d.isDefined(b=e.template)?d.isFunction(b)&&(b=b(e.params)):d.isDefined(c=e.templateUrl)&&(d.isFunction(c)&&(c=c(e.params)),d.isDefined(c)&&(e.loadedTemplateUrl=r.valueOf(c),b=k(c)));d.isDefined(b)&&(a.$template=b);return f.all(a)}}).then(function(c){e==t.current&&(e&&(e.locals=c,d.copy(e.params,b)),a.$broadcast("$routeChangeSuccess",e,w))},function(b){e==t.current&&a.$broadcast("$routeChangeError",
e,w,b)})}function n(){var a,b;d.forEach(g,function(f,g){var q;if(q=!b){var h=c.path();q=f.keys;var l={};if(f.regexp)if(h=f.regexp.exec(h)){for(var k=1,n=h.length;k<n;++k){var m=q[k-1],p=h[k];m&&p&&(l[m.name]=p)}q=l}else q=null;else q=null;q=a=q}q&&(b=s(f,{params:d.extend({},c.search(),a),pathParams:a}),b.$$route=f)});return b||g[null]&&s(g[null],{params:{},pathParams:{}})}function u(a,b){var c=[];d.forEach((a||"").split(":"),function(a,d){if(0===d)c.push(a);else{var f=a.match(/(\w+)(?:[?*])?(.*)/),
g=f[1];c.push(b[g]);c.push(f[2]||"");delete b[g]}});return c.join("")}var v=!1,p,x,t={routes:g,reload:function(){v=!0;var b={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;v=!1}};a.$evalAsync(function(){l(b);b.defaultPrevented||m()})},updateParams:function(a){if(this.current&&this.current.$$route)a=d.extend({},this.current.params,a),c.path(u(this.current.$$route.originalPath,a)),c.search(a);else throw B("norout");}};a.$on("$locationChangeStart",l);a.$on("$locationChangeSuccess",
m);return t}]});var B=d.$$minErr("ngRoute");r.provider("$routeParams",function(){this.$get=function(){return{}}});r.directive("ngView",x);r.directive("ngView",A);x.$inject=["$route","$anchorScroll","$animate"];A.$inject=["$compile","$controller","$route"]})(window,window.angular);
c){return d.extend(Object.create(a),c)}function h(a,d){var b=d.caseInsensitiveMatch,f={originalPath:a,regexp:a},g=f.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(a,d,b,c){a="?"===c||"*?"===c?"?":null;c="*"===c||"*?"===c?"*":null;g.push({name:b,optional:!!a});d=d||"";return""+(a?"":d)+"(?:"+(a?d:"")+(c&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");f.regexp=new RegExp("^"+a+"$",b?"i":"");return f}var g={};this.when=function(a,c){var b=
d.copy(c);d.isUndefined(b.reloadOnSearch)&&(b.reloadOnSearch=!0);d.isUndefined(b.caseInsensitiveMatch)&&(b.caseInsensitiveMatch=this.caseInsensitiveMatch);g[a]=d.extend(b,a&&h(a,b));if(a){var f="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";g[f]=d.extend({redirectTo:a},h(f,b))}return this};this.caseInsensitiveMatch=!1;this.otherwise=function(a){"string"===typeof a&&(a={redirectTo:a});this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest",
"$sce",function(a,c,b,f,h,k,r){function l(b){var e=t.current;(x=(p=n())&&e&&p.$$route===e.$$route&&d.equals(p.pathParams,e.pathParams)&&!p.reloadOnSearch&&!v)||!e&&!p||a.$broadcast("$routeChangeStart",p,e).defaultPrevented&&b&&b.preventDefault()}function m(){var w=t.current,e=p;if(x)w.params=e.params,d.copy(w.params,b),a.$broadcast("$routeUpdate",w);else if(e||w)v=!1,(t.current=e)&&e.redirectTo&&(d.isString(e.redirectTo)?c.path(u(e.redirectTo,e.params)).search(e.params).replace():c.url(e.redirectTo(e.pathParams,
c.path(),c.search())).replace()),f.when(e).then(function(){if(e){var a=d.extend({},e.resolve),b,c;d.forEach(a,function(b,e){a[e]=d.isString(b)?h.get(b):h.invoke(b,null,null,e)});d.isDefined(b=e.template)?d.isFunction(b)&&(b=b(e.params)):d.isDefined(c=e.templateUrl)&&(d.isFunction(c)&&(c=c(e.params)),d.isDefined(c)&&(e.loadedTemplateUrl=r.valueOf(c),b=k(c)));d.isDefined(b)&&(a.$template=b);return f.all(a)}}).then(function(c){e==t.current&&(e&&(e.locals=c,d.copy(e.params,b)),a.$broadcast("$routeChangeSuccess",
e,w))},function(b){e==t.current&&a.$broadcast("$routeChangeError",e,w,b)})}function n(){var a,b;d.forEach(g,function(f,g){var q;if(q=!b){var h=c.path();q=f.keys;var l={};if(f.regexp)if(h=f.regexp.exec(h)){for(var k=1,n=h.length;k<n;++k){var m=q[k-1],p=h[k];m&&p&&(l[m.name]=p)}q=l}else q=null;else q=null;q=a=q}q&&(b=s(f,{params:d.extend({},c.search(),a),pathParams:a}),b.$$route=f)});return b||g[null]&&s(g[null],{params:{},pathParams:{}})}function u(a,b){var c=[];d.forEach((a||"").split(":"),function(a,
d){if(0===d)c.push(a);else{var f=a.match(/(\w+)(?:[?*])?(.*)/),g=f[1];c.push(b[g]);c.push(f[2]||"");delete b[g]}});return c.join("")}var v=!1,p,x,t={routes:g,reload:function(){v=!0;var b={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;v=!1}};a.$evalAsync(function(){l(b);b.defaultPrevented||m()})},updateParams:function(a){if(this.current&&this.current.$$route)a=d.extend({},this.current.params,a),c.path(u(this.current.$$route.originalPath,a)),c.search(a);else throw B("norout");
}};a.$on("$locationChangeStart",l);a.$on("$locationChangeSuccess",m);return t}]}).run(["$route",d.noop]);var B=d.$$minErr("ngRoute");r.provider("$routeParams",function(){this.$get=function(){return{}}});r.directive("ngView",x);r.directive("ngView",A);x.$inject=["$route","$anchorScroll","$animate"];A.$inject=["$compile","$controller","$route"]})(window,window.angular);
//# sourceMappingURL=angular-route.min.js.map
{
"name": "angular-route",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular-route.js",
"ignore": [],
"dependencies": {
"angular": "1.5.1-build.4601+sha.c966876"
"angular": "1.5.3"
}
}
{
"name": "angular-route",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"description": "AngularJS router module",
"main": "index.js",
"scripts": {
......
{
"name": "angular-sanitize",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular-sanitize.js",
"ignore": [],
"dependencies": {
"angular": "1.5.1-build.4601+sha.c966876"
"angular": "1.5.3"
},
"homepage": "https://github.com/angular/bower-angular-sanitize",
"_release": "1.5.1-build.4601+sha.c966876",
"_release": "1.5.3",
"_resolution": {
"type": "version",
"tag": "v1.5.1-build.4601+sha.c966876",
"commit": "03a315074d87fad7b1efc1566a7804a881e60f2a"
"tag": "v1.5.3",
"commit": "d62a5eecedc71828f6f935fbde6c07217a95988a"
},
"_source": "git://github.com/angular/bower-angular-sanitize.git",
"_target": "~1.5.1",
"_target": "~1.5.3",
"_originalSource": "angular-sanitize"
}
\ No newline at end of file
/**
* @license AngularJS v1.5.1-build.4601+sha.c966876
* @license AngularJS v1.5.3
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
......
/*
AngularJS v1.5.1-build.4601+sha.c966876
AngularJS v1.5.3
(c) 2010-2016 Google, Inc. http://angularjs.org
License: MIT
*/
......
{
"name": "angular-sanitize",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular-sanitize.js",
"ignore": [],
"dependencies": {
"angular": "1.5.1-build.4601+sha.c966876"
"angular": "1.5.3"
}
}
{
"name": "angular-sanitize",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"description": "AngularJS module for sanitizing HTML",
"main": "index.js",
"scripts": {
......
{
"name": "angular",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular.js",
"ignore": [],
"dependencies": {},
"homepage": "https://github.com/angular/bower-angular",
"_release": "1.5.1-build.4601+sha.c966876",
"_release": "1.5.3",
"_resolution": {
"type": "version",
"tag": "v1.5.1-build.4601+sha.c966876",
"commit": "90b6eb3e58a192be90411d76f62a66a51019c877"
"tag": "v1.5.3",
"commit": "5a07c5107b4d24f41744a02b07717d55bad88e70"
},
"_source": "git://github.com/angular/bower-angular.git",
"_target": "~1.5.1",
"_target": "1.5.3",
"_originalSource": "angular"
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "angular",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"license": "MIT",
"main": "./angular.js",
"ignore": [],
......
{
"name": "angular",
"version": "1.5.1-build.4601+sha.c966876",
"version": "1.5.3",
"description": "HTML enhanced for web apps",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment