Skip to content

Commit

Permalink
ionic update
Browse files Browse the repository at this point in the history
  • Loading branch information
Paldom committed Oct 13, 2014
1 parent d9f01c1 commit 8c8ad00
Show file tree
Hide file tree
Showing 16 changed files with 3,852 additions and 4,945 deletions.
62 changes: 40 additions & 22 deletions www/lib/css/ionic.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.0.0-beta.12
* Ionic, v1.0.0-beta.13
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
Expand Down Expand Up @@ -2287,11 +2287,11 @@ body.grade-b, body.grade-c {
position: absolute;
border-radius: 4px;
background: rgba(0, 0, 0, 0.3);
opacity: 1; }
opacity: 1;
-webkit-transition: opacity 0.3s linear;
-moz-transition: opacity 0.3s linear;
transition: opacity 0.3s linear; }
.scroll-bar-indicator.scroll-bar-fade-out {
-webkit-transition: opacity 0.3s linear;
-moz-transition: opacity 0.3s linear;
transition: opacity 0.3s linear;
opacity: 0; }

.grade-b .scroll-bar-indicator, .grade-c .scroll-bar-indicator {
Expand All @@ -2307,25 +2307,25 @@ body.grade-b, body.grade-c {
transform: translate3d(0, 0, 0) rotate(0); }

100% {
transform: translate3d(0, 0, 0) rotate(-180deg); } }
transform: translate3d(0, 0, 0) rotate(180deg); } }

@-webkit-keyframes refresh-spin {
0% {
-webkit-transform: translate3d(0, 0, 0) rotate(0); }

100% {
-webkit-transform: translate3d(0, 0, 0) rotate(-180deg); } }
-webkit-transform: translate3d(0, 0, 0) rotate(180deg); } }

@keyframes refresh-spin-back {
0% {
transform: translate3d(0, 0, 0) rotate(-180deg); }
transform: translate3d(0, 0, 0) rotate(180deg); }

100% {
transform: translate3d(0, 0, 0) rotate(0); } }

@-webkit-keyframes refresh-spin-back {
0% {
-webkit-transform: translate3d(0, 0, 0) rotate(-180deg); }
-webkit-transform: translate3d(0, 0, 0) rotate(180deg); }

100% {
-webkit-transform: translate3d(0, 0, 0) rotate(0); } }
Expand Down Expand Up @@ -2378,16 +2378,28 @@ body.grade-b, body.grade-c {
-webkit-animation-duration: 1.5s;
-moz-animation-duration: 1.5s;
animation-duration: 1.5s; }
.scroll-refresher.active .icon-pulling {
.scroll-refresher.active .icon-pulling:not(.pulling-rotation-disabled) {
-webkit-animation-name: refresh-spin;
-moz-animation-name: refresh-spin;
animation-name: refresh-spin;
-webkit-transform: translate3d(0, 0, 0) rotate(-180deg);
transform: translate3d(0, 0, 0) rotate(-180deg); }
.scroll-refresher.active.refreshing .icon-pulling, .scroll-refresher.active.refreshing .text-pulling {
display: none; }
.scroll-refresher.active.refreshing .icon-refreshing, .scroll-refresher.active.refreshing .text-refreshing {
display: block; }
.scroll-refresher.active.refreshing {
-webkit-transition: transform 0.2s;
-moz-transition: transform 0.2s;
transition: transform 0.2s;
-webkit-transition: -webkit-transform 0.2s;
-moz-transition: -webkit-transform 0.2s;
transition: -webkit-transform 0.2s;
-webkit-transform: scale(1, 1);
transform: scale(1, 1); }
.scroll-refresher.active.refreshing .icon-pulling, .scroll-refresher.active.refreshing .text-pulling {
display: none; }
.scroll-refresher.active.refreshing .icon-refreshing, .scroll-refresher.active.refreshing .text-refreshing {
display: block; }
.scroll-refresher.active.refreshing.refreshing-tail {
-webkit-transform: scale(0, 0);
transform: scale(0, 0); }

ion-infinite-scroll {
height: 60px;
Expand Down Expand Up @@ -3267,6 +3279,11 @@ a.subdued {
border: none;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
padding-top: 2px; }
.tabs-striped .tab-item.tab-item-active, .tabs-striped .tab-item.active, .tabs-striped .tab-item.activated {
margin-top: -2px;
border-style: solid;
border-width: 2px 0 0 0;
border-color: #444; }
.tabs-striped.tabs-light .tabs {
background-color: #444; }
.tabs-striped.tabs-light .tab-item {
Expand Down Expand Up @@ -3848,6 +3865,7 @@ a.subdued {
left: 50%;
z-index: 10;
display: block;
margin-top: 12px;
margin-left: -110px;
height: 280px;
width: 220px;
Expand All @@ -3858,8 +3876,6 @@ a.subdued {
border-top: 0; }
.popover .item:last-child {
border-bottom: 0; }
.popover.popover-top {
margin-top: 12px; }
.popover.popover-bottom {
margin-top: -12px; }

Expand Down Expand Up @@ -3893,6 +3909,7 @@ a.subdued {
.platform-ios .popover-arrow {
position: absolute;
display: block;
top: -17px;
width: 30px;
height: 19px;
overflow: hidden; }
Expand All @@ -3908,22 +3925,20 @@ a.subdued {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg); }
.platform-ios .popover-top .popover-arrow {
top: -17px; }
.platform-ios .popover-bottom .popover-arrow {
top: auto;
bottom: -10px; }
.platform-ios .popover-bottom .popover-arrow:after {
top: -6px; }

.platform-android .popover {
margin-top: -32px;
background-color: #fafafa;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.platform-android .popover .item {
border-color: #fafafa;
background-color: #fafafa;
color: #4d4d4d; }
.platform-android .popover.popover-top {
margin-top: -32px; }
.platform-android .popover.popover-bottom {
margin-top: 32px; }
.platform-android .popover-backdrop, .platform-android .popover-backdrop.active {
Expand Down Expand Up @@ -4017,7 +4032,7 @@ a.subdued {
flex-direction: column; }

.popup-head {
padding: 15px 0px;
padding: 15px 10px;
border-bottom: 1px solid #eee;
text-align: center; }

Expand Down Expand Up @@ -4058,6 +4073,7 @@ a.subdued {
-moz-flex: 1;
-ms-flex: 1;
flex: 1;
display: block;
min-height: 45px;
border-radius: 2px;
line-height: 20px;
Expand Down Expand Up @@ -4104,6 +4120,8 @@ a.subdued {
transition: 0.2s opacity linear;
visibility: hidden;
opacity: 0; }
.loading-container:not(.visible) .icon {
display: none; }
.loading-container.visible {
visibility: visible; }
.loading-container.active {
Expand Down Expand Up @@ -4764,7 +4782,7 @@ a.item-content {
.card {
padding-top: 1px;
padding-bottom: 1px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }

.padding .card, .padding .list-inset {
margin-left: 0;
Expand Down
4 changes: 2 additions & 2 deletions www/lib/css/ionic.min.css

Large diffs are not rendered by default.

100 changes: 78 additions & 22 deletions www/lib/js/angular/angular-animate.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.2.17
* @license AngularJS v1.2.25
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -52,9 +52,9 @@
* }
*
* .slide.ng-enter { } /* starting animations for enter */
* .slide.ng-enter-active { } /* terminal animations for enter */
* .slide.ng-enter.ng-enter-active { } /* terminal animations for enter */
* .slide.ng-leave { } /* starting animations for leave */
* .slide.ng-leave-active { } /* terminal animations for leave */
* .slide.ng-leave.ng-leave-active { } /* terminal animations for leave */
* </style>
*
* <!--
Expand All @@ -64,8 +64,22 @@
* <ANY class="slide" ng-include="..."></ANY>
* ```
*
* Keep in mind that if an animation is running, any child elements cannot be animated until the parent element's
* animation has completed.
* Keep in mind that, by default, if an animation is running, any child elements cannot be animated
* until the parent element's animation has completed. This blocking feature can be overridden by
* placing the `ng-animate-children` attribute on a parent container tag.
*
* ```html
* <div class="slide-animation" ng-if="on" ng-animate-children>
* <div class="fade-animation" ng-if="on">
* <div class="explode-animation" ng-if="on">
* ...
* </div>
* </div>
* </div>
* ```
*
* When the `on` expression value changes and an animation is triggered then each of the elements within
* will all animate without the block being applied to child elements.
*
* <h2>CSS-defined Animations</h2>
* The animate service will automatically apply two CSS classes to the animated element and these two CSS classes
Expand Down Expand Up @@ -255,6 +269,19 @@ angular.module('ngAnimate', ['ng'])
* Please visit the {@link ngAnimate `ngAnimate`} module overview page learn more about how to use animations in your application.
*
*/
.directive('ngAnimateChildren', function() {
var NG_ANIMATE_CHILDREN = '$$ngAnimateChildren';
return function(scope, element, attrs) {
var val = attrs.ngAnimateChildren;
if(angular.isString(val) && val.length === 0) { //empty attribute
element.data(NG_ANIMATE_CHILDREN, true);
} else {
scope.$watch(val, function(value) {
element.data(NG_ANIMATE_CHILDREN, !!value);
});
}
};
})

//this private service is only used within CSS-enabled animations
//IE8 + IE9 do not support rAF natively, but that is fine since they
Expand Down Expand Up @@ -283,6 +310,7 @@ angular.module('ngAnimate', ['ng'])

var ELEMENT_NODE = 1;
var NG_ANIMATE_STATE = '$$ngAnimateState';
var NG_ANIMATE_CHILDREN = '$$ngAnimateChildren';
var NG_ANIMATE_CLASS_NAME = 'ng-animate';
var rootAnimateState = {running: true};

Expand Down Expand Up @@ -332,6 +360,12 @@ angular.module('ngAnimate', ['ng'])
return classNameFilter.test(className);
};

function blockElementAnimations(element) {
var data = element.data(NG_ANIMATE_STATE) || {};
data.running = true;
element.data(NG_ANIMATE_STATE, data);
}

function lookup(name) {
if (name) {
var matches = [],
Expand Down Expand Up @@ -558,7 +592,7 @@ angular.module('ngAnimate', ['ng'])
parentElement = prepareElement(parentElement);
afterElement = prepareElement(afterElement);

this.enabled(false, element);
blockElementAnimations(element);
$delegate.enter(element, parentElement, afterElement);
$rootScope.$$postDigest(function() {
element = stripCommentsFromElement(element);
Expand Down Expand Up @@ -596,7 +630,7 @@ angular.module('ngAnimate', ['ng'])
leave : function(element, doneCallback) {
element = angular.element(element);
cancelChildAnimations(element);
this.enabled(false, element);
blockElementAnimations(element);
$rootScope.$$postDigest(function() {
performAnimation('leave', 'ng-leave', stripCommentsFromElement(element), null, null, function() {
$delegate.leave(element);
Expand Down Expand Up @@ -640,7 +674,7 @@ angular.module('ngAnimate', ['ng'])
afterElement = prepareElement(afterElement);

cancelChildAnimations(element);
this.enabled(false, element);
blockElementAnimations(element);
$delegate.move(element, parentElement, afterElement);
$rootScope.$$postDigest(function() {
element = stripCommentsFromElement(element);
Expand Down Expand Up @@ -750,7 +784,7 @@ angular.module('ngAnimate', ['ng'])
* @kind function
*
* @param {boolean=} value If provided then set the animation on or off.
* @param {DOMElement} element If provided then the element will be used to represent the enable/disable operation
* @param {DOMElement=} element If provided then the element will be used to represent the enable/disable operation
* @return {boolean} Current animation state.
*
* @description
Expand Down Expand Up @@ -814,9 +848,12 @@ angular.module('ngAnimate', ['ng'])

//only allow animations if the currently running animation is not structural
//or if there is no animation running at all
var skipAnimations = runner.isClassBased ?
ngAnimateState.disabled || (lastAnimation && !lastAnimation.isClassBased) :
false;
var skipAnimations;
if (runner.isClassBased) {
skipAnimations = ngAnimateState.running ||
ngAnimateState.disabled ||
(lastAnimation && !lastAnimation.isClassBased);
}

//skip the animation if animations are disabled, a parent is already being animated,
//the element is not currently attached to the document body or then completely close
Expand Down Expand Up @@ -1033,30 +1070,49 @@ angular.module('ngAnimate', ['ng'])
}

function animationsDisabled(element, parentElement) {
if (rootAnimateState.disabled) return true;
if (rootAnimateState.disabled) {
return true;
}

if(isMatchingElement(element, $rootElement)) {
return rootAnimateState.disabled || rootAnimateState.running;
if (isMatchingElement(element, $rootElement)) {
return rootAnimateState.running;
}

var allowChildAnimations, parentRunningAnimation, hasParent;
do {
//the element did not reach the root element which means that it
//is not apart of the DOM. Therefore there is no reason to do
//any animations on it
if(parentElement.length === 0) break;
if (parentElement.length === 0) break;

var isRoot = isMatchingElement(parentElement, $rootElement);
var state = isRoot ? rootAnimateState : parentElement.data(NG_ANIMATE_STATE);
var result = state && (!!state.disabled || state.running || state.totalActive > 0);
if(isRoot || result) {
return result;
var state = isRoot ? rootAnimateState : (parentElement.data(NG_ANIMATE_STATE) || {});
if (state.disabled) {
return true;
}

//no matter what, for an animation to work it must reach the root element
//this implies that the element is attached to the DOM when the animation is run
if (isRoot) {
hasParent = true;
}

if(isRoot) return true;
//once a flag is found that is strictly false then everything before
//it will be discarded and all child animations will be restricted
if (allowChildAnimations !== false) {
var animateChildrenFlag = parentElement.data(NG_ANIMATE_CHILDREN);
if(angular.isDefined(animateChildrenFlag)) {
allowChildAnimations = animateChildrenFlag;
}
}

parentRunningAnimation = parentRunningAnimation ||
state.running ||
(state.last && !state.last.isClassBased);
}
while(parentElement = parentElement.parent());

return true;
return !hasParent || (!allowChildAnimations && parentRunningAnimation);
}
}]);

Expand Down
Loading

0 comments on commit 8c8ad00

Please sign in to comment.