popover.js 1.2KB

1234567891011121314151617181920212223242526272829303132
  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 { OverlayProxy } from '../../navigation/overlay-proxy';
  12. import { PopoverImpl } from './popover-impl';
  13. /**
  14. * @hidden
  15. */
  16. var Popover = (function (_super) {
  17. __extends(Popover, _super);
  18. function Popover(app, component, data, opts, config, deepLinker) {
  19. if (opts === void 0) { opts = {}; }
  20. var _this = _super.call(this, app, component, config, deepLinker) || this;
  21. _this.data = data;
  22. _this.opts = opts;
  23. _this.isOverlay = true;
  24. return _this;
  25. }
  26. Popover.prototype.getImplementation = function () {
  27. return new PopoverImpl(this._app, this._component, this.data, this.opts, this._config);
  28. };
  29. return Popover;
  30. }(OverlayProxy));
  31. export { Popover };
  32. //# sourceMappingURL=popover.js.map