@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.
- package/esm2020/lib/calendar/calendar/calendar.component.mjs +2 -2
- package/esm2020/lib/calendar/calendar-month/calendar-day.directive.mjs +2 -2
- package/esm2020/lib/calendar/calendar-navigation/calendar-navigation.component.mjs +2 -2
- package/esm2020/lib/date-picker/date-picker.component.mjs +2 -2
- package/esm2020/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown/dropdown.component.mjs +2 -2
- package/esm2020/lib/dropdown/dropdown-menu/dropdown-menu.directive.mjs +2 -2
- package/esm2020/lib/modal/modal/modal.component.mjs +2 -2
- package/esm2020/lib/offcanvas/offcanvas/offcanvas.component.mjs +2 -2
- package/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +2 -2
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav-link.component.mjs +2 -2
- package/esm2020/lib/sidebar/sidebar-nav/sidebar-nav.component.mjs +2 -2
- package/esm2020/lib/toast/toaster/toaster.component.mjs +2 -2
- package/fesm2015/coreui-angular-pro.mjs +26 -14
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +14 -14
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1457,6 +1457,7 @@ class CalendarNavigationComponent {
|
|
|
1457
1457
|
this.calendarStateSubscribe(false);
|
|
1458
1458
|
}
|
|
1459
1459
|
calendarStateSubscribe(subscribe = true) {
|
|
1460
|
+
var _a;
|
|
1460
1461
|
if (subscribe) {
|
|
1461
1462
|
this.calendarStateSubscription =
|
|
1462
1463
|
this.calendarService.calendarState$.subscribe(state => {
|
|
@@ -1470,7 +1471,7 @@ class CalendarNavigationComponent {
|
|
|
1470
1471
|
});
|
|
1471
1472
|
return;
|
|
1472
1473
|
}
|
|
1473
|
-
this.calendarStateSubscription.unsubscribe();
|
|
1474
|
+
(_a = this.calendarStateSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1474
1475
|
}
|
|
1475
1476
|
setView(view) {
|
|
1476
1477
|
this.view = view;
|
|
@@ -1900,6 +1901,7 @@ class CalendarDayDirective {
|
|
|
1900
1901
|
this.calendarStateSubscribe(false);
|
|
1901
1902
|
}
|
|
1902
1903
|
calendarStateSubscribe(subscribe = true) {
|
|
1904
|
+
var _a;
|
|
1903
1905
|
if (subscribe) {
|
|
1904
1906
|
this.calendarStateSubscription =
|
|
1905
1907
|
this.calendarService.calendarState$.subscribe(state => {
|
|
@@ -1915,7 +1917,7 @@ class CalendarDayDirective {
|
|
|
1915
1917
|
});
|
|
1916
1918
|
return;
|
|
1917
1919
|
}
|
|
1918
|
-
this.calendarStateSubscription.unsubscribe();
|
|
1920
|
+
(_a = this.calendarStateSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1919
1921
|
}
|
|
1920
1922
|
}
|
|
1921
1923
|
CalendarDayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CalendarDayDirective, deps: [{ token: CalendarService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2573,6 +2575,7 @@ class CalendarComponent {
|
|
|
2573
2575
|
this.calendarService.update({ locale: this.locale, view: this.view, range: this.range });
|
|
2574
2576
|
}
|
|
2575
2577
|
calendarStateSubscribe(subscribe = true) {
|
|
2578
|
+
var _a;
|
|
2576
2579
|
if (subscribe) {
|
|
2577
2580
|
this.calendarStateSubscription =
|
|
2578
2581
|
this.calendarService.calendarState$.subscribe(state => {
|
|
@@ -2600,7 +2603,7 @@ class CalendarComponent {
|
|
|
2600
2603
|
});
|
|
2601
2604
|
return;
|
|
2602
2605
|
}
|
|
2603
|
-
this.calendarStateSubscription.unsubscribe();
|
|
2606
|
+
(_a = this.calendarStateSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
2604
2607
|
}
|
|
2605
2608
|
setCalendarPage(years, months = 0, setMonth) {
|
|
2606
2609
|
const year = this.calendarDate.getFullYear();
|
|
@@ -3941,6 +3944,7 @@ class DropdownMenuDirective {
|
|
|
3941
3944
|
this.dropdownStateSubscribe(false);
|
|
3942
3945
|
}
|
|
3943
3946
|
dropdownStateSubscribe(subscribe = true) {
|
|
3947
|
+
var _a;
|
|
3944
3948
|
if (subscribe) {
|
|
3945
3949
|
this.dropdownStateSubscription =
|
|
3946
3950
|
this.dropdownService.dropdownState$.subscribe((state) => {
|
|
@@ -3951,7 +3955,7 @@ class DropdownMenuDirective {
|
|
|
3951
3955
|
});
|
|
3952
3956
|
}
|
|
3953
3957
|
else {
|
|
3954
|
-
this.dropdownStateSubscription.unsubscribe();
|
|
3958
|
+
(_a = this.dropdownStateSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
3955
3959
|
}
|
|
3956
3960
|
}
|
|
3957
3961
|
}
|
|
@@ -4185,6 +4189,7 @@ class DropdownComponent {
|
|
|
4185
4189
|
this.clickedTarget = $event.target;
|
|
4186
4190
|
}
|
|
4187
4191
|
dropdownStateSubscribe(subscribe = true) {
|
|
4192
|
+
var _a;
|
|
4188
4193
|
if (subscribe) {
|
|
4189
4194
|
this.dropdownStateSubscription =
|
|
4190
4195
|
this.dropdownService.dropdownState$.pipe(filter((state) => {
|
|
@@ -4198,7 +4203,7 @@ class DropdownComponent {
|
|
|
4198
4203
|
});
|
|
4199
4204
|
}
|
|
4200
4205
|
else {
|
|
4201
|
-
this.dropdownStateSubscription.unsubscribe();
|
|
4206
|
+
(_a = this.dropdownStateSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
4202
4207
|
}
|
|
4203
4208
|
}
|
|
4204
4209
|
toggleDropdown() {
|
|
@@ -6841,7 +6846,7 @@ class DateRangePickerComponent {
|
|
|
6841
6846
|
return;
|
|
6842
6847
|
}
|
|
6843
6848
|
this.dateChangeSubscriptions.forEach(subscription => {
|
|
6844
|
-
subscription.unsubscribe();
|
|
6849
|
+
subscription === null || subscription === void 0 ? void 0 : subscription.unsubscribe();
|
|
6845
6850
|
});
|
|
6846
6851
|
}
|
|
6847
6852
|
onBlur() {
|
|
@@ -6908,7 +6913,8 @@ class DateRangePickerComponent {
|
|
|
6908
6913
|
this.subscribeDateChange();
|
|
6909
6914
|
}
|
|
6910
6915
|
ngOnDestroy() {
|
|
6911
|
-
|
|
6916
|
+
var _a;
|
|
6917
|
+
(_a = this.layoutChanges) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
6912
6918
|
this.subscribeDateChange(false);
|
|
6913
6919
|
}
|
|
6914
6920
|
ngAfterViewInit() {
|
|
@@ -7228,7 +7234,7 @@ class DatePickerComponent extends DateRangePickerComponent {
|
|
|
7228
7234
|
return;
|
|
7229
7235
|
}
|
|
7230
7236
|
this.dateChangeSubscriptions.forEach(subscription => {
|
|
7231
|
-
subscription.unsubscribe();
|
|
7237
|
+
subscription === null || subscription === void 0 ? void 0 : subscription.unsubscribe();
|
|
7232
7238
|
});
|
|
7233
7239
|
}
|
|
7234
7240
|
}
|
|
@@ -10826,6 +10832,7 @@ class ModalComponent {
|
|
|
10826
10832
|
this.stateToggleSubscribe(false);
|
|
10827
10833
|
}
|
|
10828
10834
|
stateToggleSubscribe(subscribe = true) {
|
|
10835
|
+
var _a;
|
|
10829
10836
|
if (subscribe) {
|
|
10830
10837
|
this.stateToggleSubscription = this.modalService.modalState$.subscribe((action) => {
|
|
10831
10838
|
if (this === action.modal || this.id === action.id) {
|
|
@@ -10841,7 +10848,7 @@ class ModalComponent {
|
|
|
10841
10848
|
});
|
|
10842
10849
|
}
|
|
10843
10850
|
else {
|
|
10844
|
-
this.stateToggleSubscription.unsubscribe();
|
|
10851
|
+
(_a = this.stateToggleSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
10845
10852
|
}
|
|
10846
10853
|
}
|
|
10847
10854
|
setBackdrop(setBackdrop) {
|
|
@@ -11211,6 +11218,7 @@ class OffcanvasComponent {
|
|
|
11211
11218
|
}
|
|
11212
11219
|
}
|
|
11213
11220
|
stateToggleSubscribe(subscribe = true) {
|
|
11221
|
+
var _a;
|
|
11214
11222
|
if (subscribe) {
|
|
11215
11223
|
__classPrivateFieldSet(this, _OffcanvasComponent_stateToggleSubscription, this.offcanvasService.offcanvasState$.subscribe((action) => {
|
|
11216
11224
|
if (this === action.offcanvas || this.id === action.id) {
|
|
@@ -11222,7 +11230,7 @@ class OffcanvasComponent {
|
|
|
11222
11230
|
}), "f");
|
|
11223
11231
|
}
|
|
11224
11232
|
else {
|
|
11225
|
-
__classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f").unsubscribe();
|
|
11233
|
+
(_a = __classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f")) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
11226
11234
|
}
|
|
11227
11235
|
}
|
|
11228
11236
|
backdropClickSubscribe(subscribe = true) {
|
|
@@ -12536,6 +12544,7 @@ class SidebarComponent {
|
|
|
12536
12544
|
}
|
|
12537
12545
|
}
|
|
12538
12546
|
layoutChangeSubscribe(subscribe = true) {
|
|
12547
|
+
var _a;
|
|
12539
12548
|
const onMobile = `(max-width: ${this.getMobileBreakpoint})`;
|
|
12540
12549
|
if (subscribe) {
|
|
12541
12550
|
const layoutChanges = this.breakpointObserver.observe([onMobile]);
|
|
@@ -12554,7 +12563,7 @@ class SidebarComponent {
|
|
|
12554
12563
|
}), "f");
|
|
12555
12564
|
}
|
|
12556
12565
|
else {
|
|
12557
|
-
__classPrivateFieldGet(this, _SidebarComponent_layoutChangeSubscription, "f").unsubscribe();
|
|
12566
|
+
(_a = __classPrivateFieldGet(this, _SidebarComponent_layoutChangeSubscription, "f")) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12558
12567
|
}
|
|
12559
12568
|
}
|
|
12560
12569
|
}
|
|
@@ -12921,7 +12930,8 @@ class SidebarNavLinkComponent {
|
|
|
12921
12930
|
});
|
|
12922
12931
|
}
|
|
12923
12932
|
ngOnDestroy() {
|
|
12924
|
-
|
|
12933
|
+
var _a;
|
|
12934
|
+
(_a = this.navSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
12925
12935
|
}
|
|
12926
12936
|
getLinkType() {
|
|
12927
12937
|
return this.isDisabled() ? 'disabled' : this.isExternalLink() ? 'external' : 'link';
|
|
@@ -13162,7 +13172,8 @@ class SidebarNavGroupComponent {
|
|
|
13162
13172
|
}
|
|
13163
13173
|
}
|
|
13164
13174
|
ngOnDestroy() {
|
|
13165
|
-
|
|
13175
|
+
var _a;
|
|
13176
|
+
(_a = this.navSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
13166
13177
|
}
|
|
13167
13178
|
onAnimationStart($event) {
|
|
13168
13179
|
this.display = { display: 'block' };
|
|
@@ -15714,6 +15725,7 @@ class ToasterComponent {
|
|
|
15714
15725
|
});
|
|
15715
15726
|
}
|
|
15716
15727
|
stateToasterSubscribe(subscribe = true) {
|
|
15728
|
+
var _a;
|
|
15717
15729
|
if (subscribe) {
|
|
15718
15730
|
this.stateToasterSubscription = this.toasterService.toasterState$.subscribe((state) => {
|
|
15719
15731
|
var _a;
|
|
@@ -15725,7 +15737,7 @@ class ToasterComponent {
|
|
|
15725
15737
|
});
|
|
15726
15738
|
}
|
|
15727
15739
|
else {
|
|
15728
|
-
this.stateToasterSubscription.unsubscribe();
|
|
15740
|
+
(_a = this.stateToasterSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
15729
15741
|
}
|
|
15730
15742
|
}
|
|
15731
15743
|
}
|