a zip code crypto-currency system good for red ONLY

action-sheet-transitions.js 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. (function (factory) {
  12. if (typeof module === "object" && typeof module.exports === "object") {
  13. var v = factory(require, exports);
  14. if (v !== undefined) module.exports = v;
  15. }
  16. else if (typeof define === "function" && define.amd) {
  17. define(["require", "exports", "../../animations/animation", "../../transitions/transition"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var animation_1 = require("../../animations/animation");
  23. var transition_1 = require("../../transitions/transition");
  24. var ActionSheetSlideIn = (function (_super) {
  25. __extends(ActionSheetSlideIn, _super);
  26. function ActionSheetSlideIn() {
  27. return _super !== null && _super.apply(this, arguments) || this;
  28. }
  29. ActionSheetSlideIn.prototype.init = function () {
  30. var ele = this.enteringView.pageRef().nativeElement;
  31. var backdrop = new animation_1.Animation(this.plt, ele.querySelector('ion-backdrop'));
  32. var wrapper = new animation_1.Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  33. backdrop.fromTo('opacity', 0.01, 0.4);
  34. wrapper.fromTo('translateY', '100%', '0%');
  35. this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
  36. };
  37. return ActionSheetSlideIn;
  38. }(transition_1.Transition));
  39. exports.ActionSheetSlideIn = ActionSheetSlideIn;
  40. var ActionSheetSlideOut = (function (_super) {
  41. __extends(ActionSheetSlideOut, _super);
  42. function ActionSheetSlideOut() {
  43. return _super !== null && _super.apply(this, arguments) || this;
  44. }
  45. ActionSheetSlideOut.prototype.init = function () {
  46. var ele = this.leavingView.pageRef().nativeElement;
  47. var backdrop = new animation_1.Animation(this.plt, ele.querySelector('ion-backdrop'));
  48. var wrapper = new animation_1.Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  49. backdrop.fromTo('opacity', 0.4, 0);
  50. wrapper.fromTo('translateY', '0%', '100%');
  51. this.easing('cubic-bezier(.36,.66,.04,1)').duration(300).add(backdrop).add(wrapper);
  52. };
  53. return ActionSheetSlideOut;
  54. }(transition_1.Transition));
  55. exports.ActionSheetSlideOut = ActionSheetSlideOut;
  56. var ActionSheetMdSlideIn = (function (_super) {
  57. __extends(ActionSheetMdSlideIn, _super);
  58. function ActionSheetMdSlideIn() {
  59. return _super !== null && _super.apply(this, arguments) || this;
  60. }
  61. ActionSheetMdSlideIn.prototype.init = function () {
  62. var ele = this.enteringView.pageRef().nativeElement;
  63. var backdrop = new animation_1.Animation(this.plt, ele.querySelector('ion-backdrop'));
  64. var wrapper = new animation_1.Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  65. backdrop.fromTo('opacity', 0.01, 0.26);
  66. wrapper.fromTo('translateY', '100%', '0%');
  67. this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
  68. };
  69. return ActionSheetMdSlideIn;
  70. }(transition_1.Transition));
  71. exports.ActionSheetMdSlideIn = ActionSheetMdSlideIn;
  72. var ActionSheetMdSlideOut = (function (_super) {
  73. __extends(ActionSheetMdSlideOut, _super);
  74. function ActionSheetMdSlideOut() {
  75. return _super !== null && _super.apply(this, arguments) || this;
  76. }
  77. ActionSheetMdSlideOut.prototype.init = function () {
  78. var ele = this.leavingView.pageRef().nativeElement;
  79. var backdrop = new animation_1.Animation(this.plt, ele.querySelector('ion-backdrop'));
  80. var wrapper = new animation_1.Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  81. backdrop.fromTo('opacity', 0.26, 0);
  82. wrapper.fromTo('translateY', '0%', '100%');
  83. this.easing('cubic-bezier(.36,.66,.04,1)').duration(450).add(backdrop).add(wrapper);
  84. };
  85. return ActionSheetMdSlideOut;
  86. }(transition_1.Transition));
  87. exports.ActionSheetMdSlideOut = ActionSheetMdSlideOut;
  88. var ActionSheetWpSlideIn = (function (_super) {
  89. __extends(ActionSheetWpSlideIn, _super);
  90. function ActionSheetWpSlideIn() {
  91. return _super !== null && _super.apply(this, arguments) || this;
  92. }
  93. ActionSheetWpSlideIn.prototype.init = function () {
  94. var ele = this.enteringView.pageRef().nativeElement;
  95. var backdrop = new animation_1.Animation(this.plt, ele.querySelector('ion-backdrop'));
  96. var wrapper = new animation_1.Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  97. backdrop.fromTo('opacity', 0.01, 0.16);
  98. wrapper.fromTo('translateY', '100%', '0%');
  99. this.easing('cubic-bezier(.36,.66,.04,1)').duration(400).add(backdrop).add(wrapper);
  100. };
  101. return ActionSheetWpSlideIn;
  102. }(transition_1.Transition));
  103. exports.ActionSheetWpSlideIn = ActionSheetWpSlideIn;
  104. var ActionSheetWpSlideOut = (function (_super) {
  105. __extends(ActionSheetWpSlideOut, _super);
  106. function ActionSheetWpSlideOut() {
  107. return _super !== null && _super.apply(this, arguments) || this;
  108. }
  109. ActionSheetWpSlideOut.prototype.init = function () {
  110. var ele = this.leavingView.pageRef().nativeElement;
  111. var backdrop = new animation_1.Animation(this.plt, ele.querySelector('ion-backdrop'));
  112. var wrapper = new animation_1.Animation(this.plt, ele.querySelector('.action-sheet-wrapper'));
  113. backdrop.fromTo('opacity', 0.1, 0);
  114. wrapper.fromTo('translateY', '0%', '100%');
  115. this.easing('cubic-bezier(.36,.66,.04,1)').duration(450).add(backdrop).add(wrapper);
  116. };
  117. return ActionSheetWpSlideOut;
  118. }(transition_1.Transition));
  119. exports.ActionSheetWpSlideOut = ActionSheetWpSlideOut;
  120. });
  121. //# sourceMappingURL=action-sheet-transitions.js.map