-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(di): update dependency injection and default configs
- Loading branch information
1 parent
1d403b2
commit 7c05d0c
Showing
34 changed files
with
1,394 additions
and
1,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import { Animation } from '../../animations/animation'; | ||
import { Transition } from '../../transitions/transition'; | ||
|
||
|
||
export class ActionSheetSlideIn extends Transition { | ||
init() { | ||
let ele = this.enteringView.pageRef().nativeElement; | ||
let backdrop = new Animation(ele.querySelector('ion-backdrop')); | ||
let wrapper = new Animation(ele.querySelector('.action-sheet-wrapper')); | ||
|
||
backdrop.fromTo('opacity', 0.01, 0.4); | ||
wrapper.fromTo('translateY', '100%', '0%'); | ||
|
||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper); | ||
} | ||
} | ||
|
||
|
||
export class ActionSheetSlideOut extends Transition { | ||
init() { | ||
let ele = this.leavingView.pageRef().nativeElement; | ||
let backdrop = new Animation(ele.querySelector('ion-backdrop')); | ||
let wrapper = new Animation(ele.querySelector('.action-sheet-wrapper')); | ||
|
||
backdrop.fromTo('opacity', 0.4, 0); | ||
wrapper.fromTo('translateY', '0%', '100%'); | ||
|
||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(300).add(backdrop).add(wrapper); | ||
} | ||
} | ||
|
||
|
||
export class ActionSheetMdSlideIn extends Transition { | ||
init() { | ||
let ele = this.enteringView.pageRef().nativeElement; | ||
let backdrop = new Animation(ele.querySelector('ion-backdrop')); | ||
let wrapper = new Animation(ele.querySelector('.action-sheet-wrapper')); | ||
|
||
backdrop.fromTo('opacity', 0.01, 0.26); | ||
wrapper.fromTo('translateY', '100%', '0%'); | ||
|
||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper); | ||
} | ||
} | ||
|
||
|
||
export class ActionSheetMdSlideOut extends Transition { | ||
init() { | ||
let ele = this.leavingView.pageRef().nativeElement; | ||
let backdrop = new Animation(ele.querySelector('ion-backdrop')); | ||
let wrapper = new Animation(ele.querySelector('.action-sheet-wrapper')); | ||
|
||
backdrop.fromTo('opacity', 0.26, 0); | ||
wrapper.fromTo('translateY', '0%', '100%'); | ||
|
||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(450).add(backdrop).add(wrapper); | ||
} | ||
} | ||
|
||
|
||
export class ActionSheetWpSlideIn extends Transition { | ||
init() { | ||
let ele = this.enteringView.pageRef().nativeElement; | ||
let backdrop = new Animation(ele.querySelector('ion-backdrop')); | ||
let wrapper = new Animation(ele.querySelector('.action-sheet-wrapper')); | ||
|
||
backdrop.fromTo('opacity', 0.01, 0.16); | ||
wrapper.fromTo('translateY', '100%', '0%'); | ||
|
||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper); | ||
} | ||
} | ||
|
||
|
||
export class ActionSheetWpSlideOut extends Transition { | ||
init() { | ||
let ele = this.leavingView.pageRef().nativeElement; | ||
let backdrop = new Animation(ele.querySelector('ion-backdrop')); | ||
let wrapper = new Animation(ele.querySelector('.action-sheet-wrapper')); | ||
|
||
backdrop.fromTo('opacity', 0.1, 0); | ||
wrapper.fromTo('translateY', '0%', '100%'); | ||
|
||
this.easing('cubic-bezier(.36,.66,.04,1)').duration(450).add(backdrop).add(wrapper); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7c05d0c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice new feature ;)