a zip code crypto-currency system good for red ONLY

popover-impl.js 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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", "../../util/util", "./popover-component", "./popover-transitions", "../../navigation/view-controller"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var util_1 = require("../../util/util");
  23. var popover_component_1 = require("./popover-component");
  24. var popover_transitions_1 = require("./popover-transitions");
  25. var view_controller_1 = require("../../navigation/view-controller");
  26. /**
  27. * @hidden
  28. */
  29. var PopoverImpl = (function (_super) {
  30. __extends(PopoverImpl, _super);
  31. function PopoverImpl(app, component, data, opts, config) {
  32. if (data === void 0) { data = {}; }
  33. if (opts === void 0) { opts = {}; }
  34. var _this = this;
  35. opts.showBackdrop = util_1.isPresent(opts.showBackdrop) ? !!opts.showBackdrop : true;
  36. opts.enableBackdropDismiss = util_1.isPresent(opts.enableBackdropDismiss) ? !!opts.enableBackdropDismiss : true;
  37. data.component = component;
  38. data.opts = opts;
  39. _this = _super.call(this, popover_component_1.PopoverCmp, data, null) || this;
  40. _this._app = app;
  41. _this.isOverlay = true;
  42. config.setTransition('popover-pop-in', popover_transitions_1.PopoverPopIn);
  43. config.setTransition('popover-pop-out', popover_transitions_1.PopoverPopOut);
  44. config.setTransition('popover-md-pop-in', popover_transitions_1.PopoverMdPopIn);
  45. config.setTransition('popover-md-pop-out', popover_transitions_1.PopoverMdPopOut);
  46. return _this;
  47. }
  48. /**
  49. * @hidden
  50. */
  51. PopoverImpl.prototype.getTransitionName = function (direction) {
  52. var key = (direction === 'back' ? 'popoverLeave' : 'popoverEnter');
  53. return this._nav && this._nav.config.get(key);
  54. };
  55. /**
  56. * Present the popover instance.
  57. *
  58. * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
  59. * @returns {Promise} Returns a promise which is resolved when the transition has completed.
  60. */
  61. PopoverImpl.prototype.present = function (navOptions) {
  62. if (navOptions === void 0) { navOptions = {}; }
  63. return this._app.present(this, navOptions);
  64. };
  65. return PopoverImpl;
  66. }(view_controller_1.ViewController));
  67. exports.PopoverImpl = PopoverImpl;
  68. });
  69. //# sourceMappingURL=popover-impl.js.map