monkey-front-core 0.0.210 → 0.0.211

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.
@@ -1886,7 +1886,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
1886
1886
  }] } });
1887
1887
 
1888
1888
  class MonkeyEcxPopoverDirective {
1889
- constructor(tpl, vcr, el, zone, _viewContainerRef, _cd, overlay, overlayPositionBuilder, options) {
1889
+ constructor(tpl, vcr, el, zone, _viewContainerRef, _cd, overlay, overlayPositionBuilder, router, options) {
1890
1890
  this.tpl = tpl;
1891
1891
  this.vcr = vcr;
1892
1892
  this.el = el;
@@ -1895,6 +1895,7 @@ class MonkeyEcxPopoverDirective {
1895
1895
  this._cd = _cd;
1896
1896
  this.overlay = overlay;
1897
1897
  this.overlayPositionBuilder = overlayPositionBuilder;
1898
+ this.router = router;
1898
1899
  this.options = options;
1899
1900
  this.minwidth = false;
1900
1901
  this.backdrop = true;
@@ -1902,7 +1903,14 @@ class MonkeyEcxPopoverDirective {
1902
1903
  this.dir = 'ltr';
1903
1904
  this.contextmenu = false;
1904
1905
  this.subs = new Subscription();
1905
- // not to do
1906
+ this.eventsSubs = new Subscription();
1907
+ this.eventsSubs = this.router.events
1908
+ .pipe(filter((event) => {
1909
+ return event instanceof NavigationStart;
1910
+ }))
1911
+ .subscribe(() => {
1912
+ this.popover = false;
1913
+ });
1906
1914
  }
1907
1915
  get popover() {
1908
1916
  return this._popover;
@@ -2034,16 +2042,17 @@ class MonkeyEcxPopoverDirective {
2034
2042
  ngOnDestroy() {
2035
2043
  this.popover = false;
2036
2044
  this.subs.unsubscribe();
2045
+ this.eventsSubs.unsubscribe();
2037
2046
  }
2038
2047
  }
2039
- MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2048
+ MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: i1$3.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2040
2049
  MonkeyEcxPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxPopoverDirective, selector: "[monkeyecxPopover]", inputs: { popover: ["monkeyecxPopover", "popover"], closed: ["monkeyecxPopoverClosed", "closed"], target: ["monkeyecxPopoverTarget", "target"], minwidth: ["monkeyecxPopoverMinwidth", "minwidth"], backdrop: ["monkeyecxPopoverBackdrop", "backdrop"], watch: ["monkeyecxPopoverWatch", "watch"], dir: ["monkeyecxPopoverDir", "dir"], contextmenu: ["monkeyecxPopoverContextmenu", "contextmenu"], height: ["monkeyecxPopoverHeight", "height"] }, ngImport: i0 });
2041
2050
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
2042
2051
  type: Directive,
2043
2052
  args: [{
2044
2053
  selector: '[monkeyecxPopover]'
2045
2054
  }]
2046
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: undefined, decorators: [{
2055
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: i1$3.Router }, { type: undefined, decorators: [{
2047
2056
  type: Inject,
2048
2057
  args: [POPOVER_OPTIONS]
2049
2058
  }, {