UNPKG

ionic-angular

Version:

A powerful framework for building mobile and progressive web apps with JavaScript and Angular 2

116 lines 5.26 kB
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; 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'; export var ActionSheetSlideIn = (function (_super) { __extends(ActionSheetSlideIn, _super); function ActionSheetSlideIn() { _super.apply(this, arguments); } /** * @return {?} */ ActionSheetSlideIn.prototype.init = function () { var /** @type {?} */ ele = this.enteringView.pageRef().nativeElement; var /** @type {?} */ backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop')); var /** @type {?} */ 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 var ActionSheetSlideOut = (function (_super) { __extends(ActionSheetSlideOut, _super); function ActionSheetSlideOut() { _super.apply(this, arguments); } /** * @return {?} */ ActionSheetSlideOut.prototype.init = function () { var /** @type {?} */ ele = this.leavingView.pageRef().nativeElement; var /** @type {?} */ backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop')); var /** @type {?} */ 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 var ActionSheetMdSlideIn = (function (_super) { __extends(ActionSheetMdSlideIn, _super); function ActionSheetMdSlideIn() { _super.apply(this, arguments); } /** * @return {?} */ ActionSheetMdSlideIn.prototype.init = function () { var /** @type {?} */ ele = this.enteringView.pageRef().nativeElement; var /** @type {?} */ backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop')); var /** @type {?} */ 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 var ActionSheetMdSlideOut = (function (_super) { __extends(ActionSheetMdSlideOut, _super); function ActionSheetMdSlideOut() { _super.apply(this, arguments); } /** * @return {?} */ ActionSheetMdSlideOut.prototype.init = function () { var /** @type {?} */ ele = this.leavingView.pageRef().nativeElement; var /** @type {?} */ backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop')); var /** @type {?} */ 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 var ActionSheetWpSlideIn = (function (_super) { __extends(ActionSheetWpSlideIn, _super); function ActionSheetWpSlideIn() { _super.apply(this, arguments); } /** * @return {?} */ ActionSheetWpSlideIn.prototype.init = function () { var /** @type {?} */ ele = this.enteringView.pageRef().nativeElement; var /** @type {?} */ backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop')); var /** @type {?} */ 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 var ActionSheetWpSlideOut = (function (_super) { __extends(ActionSheetWpSlideOut, _super); function ActionSheetWpSlideOut() { _super.apply(this, arguments); } /** * @return {?} */ ActionSheetWpSlideOut.prototype.init = function () { var /** @type {?} */ ele = this.leavingView.pageRef().nativeElement; var /** @type {?} */ backdrop = new Animation(this.plt, ele.querySelector('ion-backdrop')); var /** @type {?} */ 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)); //# sourceMappingURL=action-sheet-transitions.js.map