novo-elements 6.0.0-next.8 → 6.0.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24355,10 +24355,11 @@
24355
24355
  this.injector = injector;
24356
24356
  this.overlay = overlay;
24357
24357
  }
24358
- NovoAsideService.prototype.open = function (component, params) {
24358
+ NovoAsideService.prototype.open = function (component, params, config) {
24359
24359
  if (params === void 0) { params = {}; }
24360
+ if (config === void 0) { config = {}; }
24360
24361
  // Override default configuration
24361
- var asideConfig = DEFAULT_CONFIG;
24362
+ var asideConfig = this.getOverlayConfig(Object.assign(Object.assign({}, DEFAULT_CONFIG), config));
24362
24363
  // Returns an OverlayRef which is a PortalHost
24363
24364
  var overlayRef = this.createOverlay(asideConfig);
24364
24365
  // Instantiate remote control
@@ -24370,7 +24371,6 @@
24370
24371
  return overlayRef;
24371
24372
  };
24372
24373
  NovoAsideService.prototype.createOverlay = function (config) {
24373
- // const overlayConfig = this.getOverlayConfig(config);
24374
24374
  return this.overlay.create(config);
24375
24375
  };
24376
24376
  NovoAsideService.prototype.attachAsideContainer = function (component, overlayRef, config, asideRef) {
@@ -24385,14 +24385,14 @@
24385
24385
  return new portal.PortalInjector(this.injector, injectionTokens);
24386
24386
  };
24387
24387
  NovoAsideService.prototype.getOverlayConfig = function (config) {
24388
- var positionStrategy = this.overlay.position().global().centerHorizontally().centerVertically();
24389
- var overlayConfig = new i1.OverlayConfig({
24390
- positionStrategy: positionStrategy,
24388
+ // const positionStrategy = this.overlay.position().global().centerHorizontally().centerVertically();
24389
+ var scrollStrategy = config.hasBackdrop ? this.overlay.scrollStrategies.block() : this.overlay.scrollStrategies.noop();
24390
+ return {
24391
+ scrollStrategy: scrollStrategy,
24391
24392
  hasBackdrop: config.hasBackdrop,
24392
24393
  backdropClass: config.backdropClass,
24393
24394
  panelClass: config.panelClass,
24394
- });
24395
- return overlayConfig;
24395
+ };
24396
24396
  };
24397
24397
  return NovoAsideService;
24398
24398
  }());
@@ -28648,7 +28648,8 @@
28648
28648
  this.overlay.openPanel();
28649
28649
  };
28650
28650
  NovoSearchBoxElement.prototype.closePanel = function () {
28651
- this.overlay.closePanel();
28651
+ var _this = this;
28652
+ setTimeout(function () { return _this.overlay.closePanel(); });
28652
28653
  };
28653
28654
  Object.defineProperty(NovoSearchBoxElement.prototype, "panelOpen", {
28654
28655
  get: function () {