@coreui/angular-pro 4.4.7 → 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' };
@@ -14861,6 +14861,7 @@ class TabPaneComponent {
14861
14861
  this.changeDetectorRef = changeDetectorRef;
14862
14862
  this.tabService = tabService;
14863
14863
  this._active = false;
14864
+ this.subscribeTabService();
14864
14865
  }
14865
14866
  set active(value) {
14866
14867
  const newValue = coerceBooleanProperty(value);
@@ -14880,9 +14881,6 @@ class TabPaneComponent {
14880
14881
  active: this.active
14881
14882
  };
14882
14883
  }
14883
- ngOnInit() {
14884
- this.subscribeTabService();
14885
- }
14886
14884
  ngOnDestroy() {
14887
14885
  this.subscribeTabService(false);
14888
14886
  }
@@ -14895,15 +14893,17 @@ class TabPaneComponent {
14895
14893
  });
14896
14894
  }
14897
14895
  else {
14898
- this.tabServiceSubscription.unsubscribe();
14896
+ this.tabServiceSubscription?.unsubscribe();
14899
14897
  }
14900
14898
  }
14901
14899
  }
14902
14900
  TabPaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: TabPaneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TabService }], target: i0.ɵɵFactoryTarget.Component });
14903
- TabPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: TabPaneComponent, isStandalone: true, selector: "c-tab-pane", host: { properties: { "class": "this.hostClasses" } }, exportAs: ["cTabPane"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{display:block}\n"] });
14901
+ TabPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: TabPaneComponent, isStandalone: true, selector: "c-tab-pane", host: { properties: { "class": "this.hostClasses" } }, exportAs: ["cTabPane"], ngImport: i0, template: `
14902
+ <ng-content></ng-content>`, isInline: true, styles: [":host{display:block}\n"] });
14904
14903
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: TabPaneComponent, decorators: [{
14905
14904
  type: Component,
14906
- args: [{ selector: 'c-tab-pane', template: `<ng-content></ng-content>`, exportAs: 'cTabPane', standalone: true, styles: [":host{display:block}\n"] }]
14905
+ args: [{ selector: 'c-tab-pane', template: `
14906
+ <ng-content></ng-content>`, exportAs: 'cTabPane', standalone: true, styles: [":host{display:block}\n"] }]
14907
14907
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: TabService }]; }, propDecorators: { hostClasses: [{
14908
14908
  type: HostBinding,
14909
14909
  args: ['class']
@@ -14969,7 +14969,7 @@ class TabContentComponent {
14969
14969
  });
14970
14970
  }
14971
14971
  else {
14972
- this.tabServiceSubscription.unsubscribe();
14972
+ this.tabServiceSubscription?.unsubscribe();
14973
14973
  }
14974
14974
  }
14975
14975
  refreshTabPaneActive(idx) {
@@ -15007,6 +15007,7 @@ class TabContentRefDirective {
15007
15007
  * @type number
15008
15008
  */
15009
15009
  this.tabPaneIdx = -1;
15010
+ this.subscribeTabService();
15010
15011
  }
15011
15012
  /**
15012
15013
  * Set active state of tab content
@@ -15068,9 +15069,6 @@ class TabContentRefDirective {
15068
15069
  }
15069
15070
  });
15070
15071
  }
15071
- ngOnInit() {
15072
- this.subscribeTabService();
15073
- }
15074
15072
  ngOnDestroy() {
15075
15073
  this.subscribeTabService(false);
15076
15074
  }
@@ -15083,7 +15081,7 @@ class TabContentRefDirective {
15083
15081
  });
15084
15082
  }
15085
15083
  else {
15086
- this.tabServiceSubscription.unsubscribe();
15084
+ this.tabServiceSubscription?.unsubscribe();
15087
15085
  }
15088
15086
  }
15089
15087
  }
@@ -15589,7 +15587,7 @@ class ToasterComponent {
15589
15587
  });
15590
15588
  }
15591
15589
  else {
15592
- this.stateToasterSubscription.unsubscribe();
15590
+ this.stateToasterSubscription?.unsubscribe();
15593
15591
  }
15594
15592
  }
15595
15593
  }