| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- var __extends = (this && this.__extends) || (function () {
- var extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
- return function (d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- })();
- import { Animation } from '../../animations/animation';
- import { Transition } from '../../transitions/transition';
- var ActionSheetSlideIn = (function (_super) {
- __extends(ActionSheetSlideIn, _super);
- function ActionSheetSlideIn() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ActionSheetSlideIn.prototype.init = function () {
- var ele = this.enteringView.pageRef().nativeElement;
- var backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
- var wrapper = new Animation(this.plt, 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);
- };
- return ActionSheetSlideIn;
- }(Transition));
- export { ActionSheetSlideIn };
- var ActionSheetSlideOut = (function (_super) {
- __extends(ActionSheetSlideOut, _super);
- function ActionSheetSlideOut() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ActionSheetSlideOut.prototype.init = function () {
- var ele = this.leavingView.pageRef().nativeElement;
- var backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
- var wrapper = new Animation(this.plt, 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);
- };
- return ActionSheetSlideOut;
- }(Transition));
- export { ActionSheetSlideOut };
- var ActionSheetMdSlideIn = (function (_super) {
- __extends(ActionSheetMdSlideIn, _super);
- function ActionSheetMdSlideIn() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ActionSheetMdSlideIn.prototype.init = function () {
- var ele = this.enteringView.pageRef().nativeElement;
- var backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
- var wrapper = new Animation(this.plt, 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);
- };
- return ActionSheetMdSlideIn;
- }(Transition));
- export { ActionSheetMdSlideIn };
- var ActionSheetMdSlideOut = (function (_super) {
- __extends(ActionSheetMdSlideOut, _super);
- function ActionSheetMdSlideOut() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ActionSheetMdSlideOut.prototype.init = function () {
- var ele = this.leavingView.pageRef().nativeElement;
- var backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
- var wrapper = new Animation(this.plt, 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);
- };
- return ActionSheetMdSlideOut;
- }(Transition));
- export { ActionSheetMdSlideOut };
- var ActionSheetWpSlideIn = (function (_super) {
- __extends(ActionSheetWpSlideIn, _super);
- function ActionSheetWpSlideIn() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ActionSheetWpSlideIn.prototype.init = function () {
- var ele = this.enteringView.pageRef().nativeElement;
- var backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
- var wrapper = new Animation(this.plt, 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);
- };
- return ActionSheetWpSlideIn;
- }(Transition));
- export { ActionSheetWpSlideIn };
- var ActionSheetWpSlideOut = (function (_super) {
- __extends(ActionSheetWpSlideOut, _super);
- function ActionSheetWpSlideOut() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- ActionSheetWpSlideOut.prototype.init = function () {
- var ele = this.leavingView.pageRef().nativeElement;
- var backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop'));
- var wrapper = new Animation(this.plt, 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);
- };
- return ActionSheetWpSlideOut;
- }(Transition));
- export { ActionSheetWpSlideOut };
- //# sourceMappingURL=action-sheet-transitions.js.map
|