@coreui/angular-pro 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.
@@ -1465,7 +1465,7 @@ class CalendarNavigationComponent {
1465
1465
  });
1466
1466
  return;
1467
1467
  }
1468
- this.calendarStateSubscription.unsubscribe();
1468
+ this.calendarStateSubscription?.unsubscribe();
1469
1469
  }
1470
1470
  setView(view) {
1471
1471
  this.view = view;
@@ -1910,7 +1910,7 @@ class CalendarDayDirective {
1910
1910
  });
1911
1911
  return;
1912
1912
  }
1913
- this.calendarStateSubscription.unsubscribe();
1913
+ this.calendarStateSubscription?.unsubscribe();
1914
1914
  }
1915
1915
  }
1916
1916
  CalendarDayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CalendarDayDirective, deps: [{ token: CalendarService }], target: i0.ɵɵFactoryTarget.Directive });
@@ -2589,7 +2589,7 @@ class CalendarComponent {
2589
2589
  });
2590
2590
  return;
2591
2591
  }
2592
- this.calendarStateSubscription.unsubscribe();
2592
+ this.calendarStateSubscription?.unsubscribe();
2593
2593
  }
2594
2594
  setCalendarPage(years, months = 0, setMonth) {
2595
2595
  const year = this.calendarDate.getFullYear();
@@ -3926,7 +3926,7 @@ class DropdownMenuDirective {
3926
3926
  });
3927
3927
  }
3928
3928
  else {
3929
- this.dropdownStateSubscription.unsubscribe();
3929
+ this.dropdownStateSubscription?.unsubscribe();
3930
3930
  }
3931
3931
  }
3932
3932
  }
@@ -4170,7 +4170,7 @@ class DropdownComponent {
4170
4170
  });
4171
4171
  }
4172
4172
  else {
4173
- this.dropdownStateSubscription.unsubscribe();
4173
+ this.dropdownStateSubscription?.unsubscribe();
4174
4174
  }
4175
4175
  }
4176
4176
  toggleDropdown() {
@@ -6773,7 +6773,7 @@ class DateRangePickerComponent {
6773
6773
  return;
6774
6774
  }
6775
6775
  this.dateChangeSubscriptions.forEach(subscription => {
6776
- subscription.unsubscribe();
6776
+ subscription?.unsubscribe();
6777
6777
  });
6778
6778
  }
6779
6779
  onBlur() {
@@ -6839,7 +6839,7 @@ class DateRangePickerComponent {
6839
6839
  this.subscribeDateChange();
6840
6840
  }
6841
6841
  ngOnDestroy() {
6842
- this.layoutChanges.unsubscribe();
6842
+ this.layoutChanges?.unsubscribe();
6843
6843
  this.subscribeDateChange(false);
6844
6844
  }
6845
6845
  ngAfterViewInit() {
@@ -7153,7 +7153,7 @@ class DatePickerComponent extends DateRangePickerComponent {
7153
7153
  return;
7154
7154
  }
7155
7155
  this.dateChangeSubscriptions.forEach(subscription => {
7156
- subscription.unsubscribe();
7156
+ subscription?.unsubscribe();
7157
7157
  });
7158
7158
  }
7159
7159
  }
@@ -10735,7 +10735,7 @@ class ModalComponent {
10735
10735
  });
10736
10736
  }
10737
10737
  else {
10738
- this.stateToggleSubscription.unsubscribe();
10738
+ this.stateToggleSubscription?.unsubscribe();
10739
10739
  }
10740
10740
  }
10741
10741
  setBackdrop(setBackdrop) {
@@ -11114,7 +11114,7 @@ class OffcanvasComponent {
11114
11114
  }), "f");
11115
11115
  }
11116
11116
  else {
11117
- __classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f").unsubscribe();
11117
+ __classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f")?.unsubscribe();
11118
11118
  }
11119
11119
  }
11120
11120
  backdropClickSubscribe(subscribe = true) {
@@ -12435,7 +12435,7 @@ class SidebarComponent {
12435
12435
  }), "f");
12436
12436
  }
12437
12437
  else {
12438
- __classPrivateFieldGet(this, _SidebarComponent_layoutChangeSubscription, "f").unsubscribe();
12438
+ __classPrivateFieldGet(this, _SidebarComponent_layoutChangeSubscription, "f")?.unsubscribe();
12439
12439
  }
12440
12440
  }
12441
12441
  }
@@ -12799,7 +12799,7 @@ class SidebarNavLinkComponent {
12799
12799
  });
12800
12800
  }
12801
12801
  ngOnDestroy() {
12802
- this.navSubscription.unsubscribe();
12802
+ this.navSubscription?.unsubscribe();
12803
12803
  }
12804
12804
  getLinkType() {
12805
12805
  return this.isDisabled() ? 'disabled' : this.isExternalLink() ? 'external' : 'link';
@@ -13038,7 +13038,7 @@ class SidebarNavGroupComponent {
13038
13038
  }
13039
13039
  }
13040
13040
  ngOnDestroy() {
13041
- this.navSubscription.unsubscribe();
13041
+ this.navSubscription?.unsubscribe();
13042
13042
  }
13043
13043
  onAnimationStart($event) {
13044
13044
  this.display = { display: 'block' };
@@ -15587,7 +15587,7 @@ class ToasterComponent {
15587
15587
  });
15588
15588
  }
15589
15589
  else {
15590
- this.stateToasterSubscription.unsubscribe();
15590
+ this.stateToasterSubscription?.unsubscribe();
15591
15591
  }
15592
15592
  }
15593
15593
  }