@coreui/angular-pro 4.4.7 → 4.4.8

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.
@@ -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
  }