@coreui/angular 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.
- package/esm2020/lib/tabs/tab-content/tab-content.component.mjs +2 -2
- package/esm2020/lib/tabs/tab-content-ref.directive.mjs +3 -5
- package/esm2020/lib/tabs/tab-pane/tab-pane.component.mjs +7 -7
- package/fesm2015/coreui-angular.mjs +12 -11
- package/fesm2015/coreui-angular.mjs.map +1 -1
- package/fesm2020/coreui-angular.mjs +9 -11
- package/fesm2020/coreui-angular.mjs.map +1 -1
- package/lib/tabs/tab-content-ref.directive.d.ts +2 -3
- package/lib/tabs/tab-pane/tab-pane.component.d.ts +2 -3
- package/package.json +1 -1
|
@@ -8239,6 +8239,7 @@ class TabPaneComponent {
|
|
|
8239
8239
|
this.changeDetectorRef = changeDetectorRef;
|
|
8240
8240
|
this.tabService = tabService;
|
|
8241
8241
|
this._active = false;
|
|
8242
|
+
this.subscribeTabService();
|
|
8242
8243
|
}
|
|
8243
8244
|
set active(value) {
|
|
8244
8245
|
const newValue = coerceBooleanProperty(value);
|
|
@@ -8258,9 +8259,6 @@ class TabPaneComponent {
|
|
|
8258
8259
|
active: this.active
|
|
8259
8260
|
};
|
|
8260
8261
|
}
|
|
8261
|
-
ngOnInit() {
|
|
8262
|
-
this.subscribeTabService();
|
|
8263
|
-
}
|
|
8264
8262
|
ngOnDestroy() {
|
|
8265
8263
|
this.subscribeTabService(false);
|
|
8266
8264
|
}
|
|
@@ -8273,15 +8271,17 @@ class TabPaneComponent {
|
|
|
8273
8271
|
});
|
|
8274
8272
|
}
|
|
8275
8273
|
else {
|
|
8276
|
-
this.tabServiceSubscription
|
|
8274
|
+
this.tabServiceSubscription?.unsubscribe();
|
|
8277
8275
|
}
|
|
8278
8276
|
}
|
|
8279
8277
|
}
|
|
8280
8278
|
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 });
|
|
8281
|
-
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:
|
|
8279
|
+
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: `
|
|
8280
|
+
<ng-content></ng-content>`, isInline: true, styles: [":host{display:block}\n"] });
|
|
8282
8281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: TabPaneComponent, decorators: [{
|
|
8283
8282
|
type: Component,
|
|
8284
|
-
args: [{ selector: 'c-tab-pane', template:
|
|
8283
|
+
args: [{ selector: 'c-tab-pane', template: `
|
|
8284
|
+
<ng-content></ng-content>`, exportAs: 'cTabPane', standalone: true, styles: [":host{display:block}\n"] }]
|
|
8285
8285
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: TabService }]; }, propDecorators: { hostClasses: [{
|
|
8286
8286
|
type: HostBinding,
|
|
8287
8287
|
args: ['class']
|
|
@@ -8347,7 +8347,7 @@ class TabContentComponent {
|
|
|
8347
8347
|
});
|
|
8348
8348
|
}
|
|
8349
8349
|
else {
|
|
8350
|
-
this.tabServiceSubscription
|
|
8350
|
+
this.tabServiceSubscription?.unsubscribe();
|
|
8351
8351
|
}
|
|
8352
8352
|
}
|
|
8353
8353
|
refreshTabPaneActive(idx) {
|
|
@@ -8385,6 +8385,7 @@ class TabContentRefDirective {
|
|
|
8385
8385
|
* @type number
|
|
8386
8386
|
*/
|
|
8387
8387
|
this.tabPaneIdx = -1;
|
|
8388
|
+
this.subscribeTabService();
|
|
8388
8389
|
}
|
|
8389
8390
|
/**
|
|
8390
8391
|
* Set active state of tab content
|
|
@@ -8446,9 +8447,6 @@ class TabContentRefDirective {
|
|
|
8446
8447
|
}
|
|
8447
8448
|
});
|
|
8448
8449
|
}
|
|
8449
|
-
ngOnInit() {
|
|
8450
|
-
this.subscribeTabService();
|
|
8451
|
-
}
|
|
8452
8450
|
ngOnDestroy() {
|
|
8453
8451
|
this.subscribeTabService(false);
|
|
8454
8452
|
}
|
|
@@ -8461,7 +8459,7 @@ class TabContentRefDirective {
|
|
|
8461
8459
|
});
|
|
8462
8460
|
}
|
|
8463
8461
|
else {
|
|
8464
|
-
this.tabServiceSubscription
|
|
8462
|
+
this.tabServiceSubscription?.unsubscribe();
|
|
8465
8463
|
}
|
|
8466
8464
|
}
|
|
8467
8465
|
}
|