@indice/ng-components 0.2.138-beta → 0.2.141-beta
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/bundles/indice-ng-components.umd.js +96 -51
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/controls/list-view/list-view.component.js +4 -4
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +14 -10
- package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +13 -10
- package/esm2015/lib/ng-components.module.js +3 -2
- package/esm2015/lib/services/notifications.service.js +37 -0
- package/fesm2015/indice-ng-components.js +76 -40
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +4 -2
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +3 -1
- package/lib/ng-components.module.d.ts +1 -0
- package/lib/services/notifications.service.d.ts +14 -0
- package/package.json +1 -1
|
@@ -4,11 +4,13 @@ import { Router } from '@angular/router';
|
|
|
4
4
|
import { IShellConfig, NavLink, NotificationNavLink } from '../../../types';
|
|
5
5
|
import { Observable, Subscription } from 'rxjs';
|
|
6
6
|
import { AuthService } from '@indice/ng-auth';
|
|
7
|
+
import { NotificationsService } from '../../../services/notifications.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ShellHeaderComponent implements OnInit, OnDestroy {
|
|
9
10
|
private authService;
|
|
10
11
|
private router;
|
|
11
12
|
links: any;
|
|
13
|
+
private _notifications;
|
|
12
14
|
sectionLinksPath: string;
|
|
13
15
|
notificationLinksPath: string;
|
|
14
16
|
allNotificationsLinkPath: string;
|
|
@@ -30,8 +32,8 @@ export declare class ShellHeaderComponent implements OnInit, OnDestroy {
|
|
|
30
32
|
protected statusSub$: Subscription | null;
|
|
31
33
|
user: User | null;
|
|
32
34
|
avatarName: string | null;
|
|
33
|
-
notificationsCount: number
|
|
34
|
-
constructor(authService: AuthService, router: Router, links: any);
|
|
35
|
+
notificationsCount: Observable<number>;
|
|
36
|
+
constructor(authService: AuthService, router: Router, links: any, _notifications: NotificationsService);
|
|
35
37
|
ngOnDestroy(): void;
|
|
36
38
|
ngOnInit(): void;
|
|
37
39
|
private setCurrentUser;
|
|
@@ -4,18 +4,20 @@ import { Location } from '@angular/common';
|
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { DynamicComponentHostDirective } from '../../../directives/dynamic-component-host.directive';
|
|
6
6
|
import { ComponentLoaderFactory } from '../../../services/component-loader/component-loader.factory';
|
|
7
|
+
import { NotificationsService } from '../../../services/notifications.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ShellLayoutComponent implements OnInit, OnDestroy, AfterViewInit, AfterViewChecked {
|
|
9
10
|
private router;
|
|
10
11
|
private location;
|
|
11
12
|
private config;
|
|
12
13
|
private componentLoaderFactory;
|
|
14
|
+
private _notificationsService;
|
|
13
15
|
dynamicComponentHosts: QueryList<DynamicComponentHostDirective> | null;
|
|
14
16
|
private routerSub$;
|
|
15
17
|
showRightPaneSM: boolean;
|
|
16
18
|
activeConfig: IShellConfig;
|
|
17
19
|
loaded: boolean;
|
|
18
|
-
constructor(router: Router, location: Location, config: IShellConfig | null, componentLoaderFactory: ComponentLoaderFactory);
|
|
20
|
+
constructor(router: Router, location: Location, config: IShellConfig | null, componentLoaderFactory: ComponentLoaderFactory, _notificationsService: NotificationsService);
|
|
19
21
|
ngAfterViewChecked(): void;
|
|
20
22
|
ngOnInit(): void;
|
|
21
23
|
ngAfterViewInit(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ToasterService } from './services/toaster.service';
|
|
2
|
+
import { NotificationsService } from './services/notifications.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
import * as i1 from "./directives/click-outside.directive";
|
|
4
5
|
import * as i2 from "./directives/dynamic-component-host.directive";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { NotificationNavLink } from "../types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationsService {
|
|
5
|
+
links: any;
|
|
6
|
+
private unreadCountSubject$;
|
|
7
|
+
private _notificationLinks;
|
|
8
|
+
private notificationLinksPath;
|
|
9
|
+
constructor(links: any);
|
|
10
|
+
getMessagesObs(): Observable<NotificationNavLink[]>;
|
|
11
|
+
getUnreadCount(breakCache?: boolean): Observable<number>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
|
|
14
|
+
}
|