a zip code crypto-currency system good for red ONLY

popover-impl.js 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. import { isPresent } from '../../util/util';
  12. import { PopoverCmp } from './popover-component';
  13. import { PopoverMdPopIn, PopoverMdPopOut, PopoverPopIn, PopoverPopOut } from './popover-transitions';
  14. import { ViewController } from '../../navigation/view-controller';
  15. /**
  16. * @hidden
  17. */
  18. var PopoverImpl = (function (_super) {
  19. __extends(PopoverImpl, _super);
  20. function PopoverImpl(app, component, data, opts, config) {
  21. if (data === void 0) { data = {}; }
  22. if (opts === void 0) { opts = {}; }
  23. var _this = this;
  24. opts.showBackdrop = isPresent(opts.showBackdrop) ? !!opts.showBackdrop : true;
  25. opts.enableBackdropDismiss = isPresent(opts.enableBackdropDismiss) ? !!opts.enableBackdropDismiss : true;
  26. data.component = component;
  27. data.opts = opts;
  28. _this = _super.call(this, PopoverCmp, data, null) || this;
  29. _this._app = app;
  30. _this.isOverlay = true;
  31. config.setTransition('popover-pop-in', PopoverPopIn);
  32. config.setTransition('popover-pop-out', PopoverPopOut);
  33. config.setTransition('popover-md-pop-in', PopoverMdPopIn);
  34. config.setTransition('popover-md-pop-out', PopoverMdPopOut);
  35. return _this;
  36. }
  37. /**
  38. * @hidden
  39. */
  40. PopoverImpl.prototype.getTransitionName = function (direction) {
  41. var key = (direction === 'back' ? 'popoverLeave' : 'popoverEnter');
  42. return this._nav && this._nav.config.get(key);
  43. };
  44. /**
  45. * Present the popover instance.
  46. *
  47. * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
  48. * @returns {Promise} Returns a promise which is resolved when the transition has completed.
  49. */
  50. PopoverImpl.prototype.present = function (navOptions) {
  51. if (navOptions === void 0) { navOptions = {}; }
  52. return this._app.present(this, navOptions);
  53. };
  54. return PopoverImpl;
  55. }(ViewController));
  56. export { PopoverImpl };
  57. //# sourceMappingURL=popover-impl.js.map