ngx-techlify-core 14.6.2 → 14.6.3-alpha-7
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/core/pusher.service.mjs +41 -0
- package/esm2020/lib/techlify-notifications/ngx-techlify-notifier/ngx-techlify-notifier.component.mjs +40 -35
- package/fesm2015/ngx-techlify-core.mjs +74 -31
- package/fesm2015/ngx-techlify-core.mjs.map +1 -1
- package/fesm2020/ngx-techlify-core.mjs +72 -29
- package/fesm2020/ngx-techlify-core.mjs.map +1 -1
- package/lib/core/pusher.service.d.ts +13 -0
- package/lib/techlify-notifications/ngx-techlify-notifier/ngx-techlify-notifier.component.d.ts +8 -3
- package/package.json +3 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Pusher from 'pusher-js';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CredentialsService } from './credentials.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PusherService {
|
|
6
|
+
private credentialService;
|
|
7
|
+
private pusher;
|
|
8
|
+
constructor(credentialService: CredentialsService);
|
|
9
|
+
initPusher(): void;
|
|
10
|
+
getPusher(): Observable<Pusher>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PusherService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PusherService>;
|
|
13
|
+
}
|
package/lib/techlify-notifications/ngx-techlify-notifier/ngx-techlify-notifier.component.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { HttpService } from '../../core';
|
|
2
|
+
import { CredentialsService, HttpService } from '../../core';
|
|
3
3
|
import { PageEvent } from '../../data-table';
|
|
4
4
|
import { Observable, Subscription } from 'rxjs';
|
|
5
5
|
import { ToastrService } from 'ngx-toastr';
|
|
6
|
+
import { PusherService } from '../../core/pusher.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class NgxTechlifyNotifierComponent implements OnInit {
|
|
8
9
|
private http;
|
|
9
10
|
private toastr;
|
|
11
|
+
private credentialService;
|
|
12
|
+
private pusherService;
|
|
10
13
|
private environment;
|
|
11
14
|
notifications: any[];
|
|
12
15
|
pageEvent: PageEvent;
|
|
@@ -14,12 +17,14 @@ export declare class NgxTechlifyNotifierComponent implements OnInit {
|
|
|
14
17
|
rootScrollContainer: string;
|
|
15
18
|
pollingInterval: number;
|
|
16
19
|
$notificationLoader: Subscription;
|
|
17
|
-
|
|
20
|
+
user: any;
|
|
21
|
+
channel: any;
|
|
22
|
+
constructor(http: HttpService, toastr: ToastrService, credentialService: CredentialsService, pusherService: PusherService, environment: any);
|
|
18
23
|
ngOnInit(): void;
|
|
19
24
|
loadNotifications(initiate?: boolean): void;
|
|
20
|
-
startNotificationPolling(): void;
|
|
21
25
|
get unreadNotificationsCount(): number;
|
|
22
26
|
fetchNotifications(pageEvent: PageEvent): Observable<any>;
|
|
27
|
+
pushNotifications(): void;
|
|
23
28
|
onScroll(): void;
|
|
24
29
|
notificationClick(event: any, notification: any): void;
|
|
25
30
|
ngOnDestroy(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-techlify-core",
|
|
3
|
-
"version": "14.6.
|
|
3
|
+
"version": "14.6.3-alpha-7",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=11",
|
|
6
6
|
"@angular/core": ">=11",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"xlsx": "^0.18.5",
|
|
26
26
|
"ngx-editor": "^14.2.0",
|
|
27
27
|
"moment": "^2.29.4",
|
|
28
|
-
"ngx-toastr": "^15.2.2"
|
|
28
|
+
"ngx-toastr": "^15.2.2",
|
|
29
|
+
"pusher-js": "^8.3.0"
|
|
29
30
|
},
|
|
30
31
|
"module": "fesm2015/ngx-techlify-core.mjs",
|
|
31
32
|
"es2020": "fesm2020/ngx-techlify-core.mjs",
|