@coreui/angular 4.4.8 → 4.4.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.
@@ -2554,7 +2554,7 @@ class DropdownMenuDirective {
2554
2554
  });
2555
2555
  }
2556
2556
  else {
2557
- this.dropdownStateSubscription.unsubscribe();
2557
+ this.dropdownStateSubscription?.unsubscribe();
2558
2558
  }
2559
2559
  }
2560
2560
  }
@@ -2798,7 +2798,7 @@ class DropdownComponent {
2798
2798
  });
2799
2799
  }
2800
2800
  else {
2801
- this.dropdownStateSubscription.unsubscribe();
2801
+ this.dropdownStateSubscription?.unsubscribe();
2802
2802
  }
2803
2803
  }
2804
2804
  toggleDropdown() {
@@ -5385,7 +5385,7 @@ class ModalComponent {
5385
5385
  });
5386
5386
  }
5387
5387
  else {
5388
- this.stateToggleSubscription.unsubscribe();
5388
+ this.stateToggleSubscription?.unsubscribe();
5389
5389
  }
5390
5390
  }
5391
5391
  setBackdrop(setBackdrop) {
@@ -5764,7 +5764,7 @@ class OffcanvasComponent {
5764
5764
  }), "f");
5765
5765
  }
5766
5766
  else {
5767
- __classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f").unsubscribe();
5767
+ __classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f")?.unsubscribe();
5768
5768
  }
5769
5769
  }
5770
5770
  backdropClickSubscribe(subscribe = true) {
@@ -7147,7 +7147,7 @@ class SidebarComponent {
7147
7147
  }), "f");
7148
7148
  }
7149
7149
  else {
7150
- __classPrivateFieldGet(this, _SidebarComponent_layoutChangeSubscription, "f").unsubscribe();
7150
+ __classPrivateFieldGet(this, _SidebarComponent_layoutChangeSubscription, "f")?.unsubscribe();
7151
7151
  }
7152
7152
  }
7153
7153
  }
@@ -7511,7 +7511,7 @@ class SidebarNavLinkComponent {
7511
7511
  });
7512
7512
  }
7513
7513
  ngOnDestroy() {
7514
- this.navSubscription.unsubscribe();
7514
+ this.navSubscription?.unsubscribe();
7515
7515
  }
7516
7516
  getLinkType() {
7517
7517
  return this.isDisabled() ? 'disabled' : this.isExternalLink() ? 'external' : 'link';
@@ -7750,7 +7750,7 @@ class SidebarNavGroupComponent {
7750
7750
  }
7751
7751
  }
7752
7752
  ngOnDestroy() {
7753
- this.navSubscription.unsubscribe();
7753
+ this.navSubscription?.unsubscribe();
7754
7754
  }
7755
7755
  onAnimationStart($event) {
7756
7756
  this.display = { display: 'block' };
@@ -8974,7 +8974,7 @@ class ToasterComponent {
8974
8974
  });
8975
8975
  }
8976
8976
  else {
8977
- this.stateToasterSubscription.unsubscribe();
8977
+ this.stateToasterSubscription?.unsubscribe();
8978
8978
  }
8979
8979
  }
8980
8980
  }