@posiwise/dashboard-module 0.0.86 → 0.0.87
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/esm2022/index.mjs +16 -0
- package/esm2022/lib/customizer/customizer.component.mjs +17 -0
- package/esm2022/lib/dashboard.module.mjs +101 -0
- package/esm2022/lib/faq/faq.component.mjs +108 -0
- package/esm2022/lib/faq-details/faq-details.component.mjs +38 -0
- package/esm2022/lib/footer/footer.component.mjs +22 -0
- package/esm2022/lib/home/home.component.mjs +79 -0
- package/esm2022/lib/navbar/navbar.component.mjs +162 -0
- package/esm2022/lib/notifications-page/current-notifications/current-notifications.component.mjs +58 -0
- package/esm2022/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +73 -0
- package/esm2022/lib/notifications-page/notifications-page.component.mjs +14 -0
- package/esm2022/lib/search/search.component.mjs +48 -0
- package/esm2022/lib/sidebar/sidebar-routes.config.mjs +350 -0
- package/esm2022/lib/sidebar/sidebar.metadata.mjs +2 -0
- package/esm2022/lib/user-feedback/user-feedback.component.mjs +73 -0
- package/esm2022/lib/user-notifications/user-notifications.component.mjs +65 -0
- package/esm2022/posiwise-dashboard-module.mjs +5 -0
- package/fesm2022/posiwise-dashboard-module.mjs +1118 -0
- package/fesm2022/posiwise-dashboard-module.mjs.map +1 -0
- package/{src/index.ts → index.d.ts} +0 -1
- package/lib/customizer/customizer.component.d.ts +7 -0
- package/lib/dashboard.module.d.ts +28 -0
- package/lib/faq/faq.component.d.ts +37 -0
- package/lib/faq-details/faq-details.component.d.ts +16 -0
- package/lib/footer/footer.component.d.ts +12 -0
- package/lib/home/home.component.d.ts +18 -0
- package/lib/navbar/navbar.component.d.ts +35 -0
- package/lib/notifications-page/current-notifications/current-notifications.component.d.ts +17 -0
- package/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.d.ts +18 -0
- package/lib/notifications-page/notifications-page.component.d.ts +5 -0
- package/lib/search/search.component.d.ts +24 -0
- package/lib/sidebar/sidebar-routes.config.d.ts +64 -0
- package/{src/lib/sidebar/sidebar.metadata.ts → lib/sidebar/sidebar.metadata.d.ts} +0 -1
- package/lib/user-feedback/user-feedback.component.d.ts +24 -0
- package/lib/user-notifications/user-notifications.component.d.ts +20 -0
- package/package.json +23 -10
- package/.eslintrc.json +0 -21
- package/ng-package.json +0 -15
- package/project.json +0 -72
- package/src/lib/customizer/customizer.component.html +0 -184
- package/src/lib/customizer/customizer.component.scss +0 -101
- package/src/lib/customizer/customizer.component.ts +0 -13
- package/src/lib/dashboard.module.ts +0 -63
- package/src/lib/faq/faq.component.html +0 -110
- package/src/lib/faq/faq.component.scss +0 -58
- package/src/lib/faq/faq.component.spec.ts +0 -143
- package/src/lib/faq/faq.component.ts +0 -144
- package/src/lib/faq-details/faq-details.component.html +0 -21
- package/src/lib/faq-details/faq-details.component.scss +0 -3
- package/src/lib/faq-details/faq-details.component.spec.ts +0 -69
- package/src/lib/faq-details/faq-details.component.ts +0 -38
- package/src/lib/footer/footer.component.html +0 -14
- package/src/lib/footer/footer.component.spec.ts +0 -42
- package/src/lib/footer/footer.component.ts +0 -24
- package/src/lib/home/home.component.html +0 -93
- package/src/lib/home/home.component.scss +0 -0
- package/src/lib/home/home.component.spec.ts +0 -69
- package/src/lib/home/home.component.ts +0 -88
- package/src/lib/navbar/navbar.component.html +0 -189
- package/src/lib/navbar/navbar.component.scss +0 -92
- package/src/lib/navbar/navbar.component.spec.ts +0 -76
- package/src/lib/navbar/navbar.component.ts +0 -198
- package/src/lib/notifications-page/current-notifications/current-notifications.component.html +0 -61
- package/src/lib/notifications-page/current-notifications/current-notifications.component.spec.ts +0 -57
- package/src/lib/notifications-page/current-notifications/current-notifications.component.ts +0 -63
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.html +0 -65
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.spec.ts +0 -71
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.ts +0 -79
- package/src/lib/notifications-page/notifications-page.component.html +0 -24
- package/src/lib/notifications-page/notifications-page.component.scss +0 -28
- package/src/lib/notifications-page/notifications-page.component.spec.ts +0 -26
- package/src/lib/notifications-page/notifications-page.component.ts +0 -8
- package/src/lib/search/search.component.html +0 -215
- package/src/lib/search/search.component.scss +0 -98
- package/src/lib/search/search.component.spec.ts +0 -64
- package/src/lib/search/search.component.ts +0 -50
- package/src/lib/sidebar/sidebar-routes.config.ts +0 -355
- package/src/lib/user-feedback/user-feedback.component.html +0 -53
- package/src/lib/user-feedback/user-feedback.component.scss +0 -18
- package/src/lib/user-feedback/user-feedback.component.spec.ts +0 -54
- package/src/lib/user-feedback/user-feedback.component.ts +0 -83
- package/src/lib/user-notifications/user-notifications.component.html +0 -21
- package/src/lib/user-notifications/user-notifications.component.scss +0 -21
- package/src/lib/user-notifications/user-notifications.component.spec.ts +0 -47
- package/src/lib/user-notifications/user-notifications.component.ts +0 -74
- package/tsconfig.json +0 -30
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -11
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Component, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { NavigationEnd, Event as Event_2 } from '@angular/router';
|
|
3
|
-
import { Subject, filter, takeUntil } from 'rxjs';
|
|
4
|
-
|
|
5
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
-
import { CommonService } from '@posiwise/common-services';
|
|
7
|
-
import { PermissionService } from '@posiwise/common-services';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'pw-user-notifications',
|
|
11
|
-
templateUrl: './user-notifications.component.html',
|
|
12
|
-
styleUrls: ['./user-notifications.component.scss']
|
|
13
|
-
})
|
|
14
|
-
export class UserNotificationsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
15
|
-
notifications = [];
|
|
16
|
-
|
|
17
|
-
notifier = new Subject();
|
|
18
|
-
|
|
19
|
-
isHomePage = true;
|
|
20
|
-
|
|
21
|
-
previousUrl: string = null;
|
|
22
|
-
|
|
23
|
-
currentUrl: string = null;
|
|
24
|
-
|
|
25
|
-
constructor(injector: Injector, private commonService: CommonService) {
|
|
26
|
-
super(injector);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
this.getUserNotifications();
|
|
31
|
-
this.isHomePage = this.router.url.includes('home');
|
|
32
|
-
this.router.events
|
|
33
|
-
.pipe(
|
|
34
|
-
takeUntil(
|
|
35
|
-
this.notifier.pipe(
|
|
36
|
-
filter((event): event is Event_2 => event instanceof NavigationEnd)
|
|
37
|
-
)
|
|
38
|
-
)
|
|
39
|
-
)
|
|
40
|
-
.subscribe((event: Event_2) => {
|
|
41
|
-
if (event instanceof NavigationEnd) {
|
|
42
|
-
this.previousUrl = this.currentUrl;
|
|
43
|
-
this.currentUrl = event.url;
|
|
44
|
-
this.isHomePage = this.currentUrl.includes('home');
|
|
45
|
-
if (this.previousUrl !== this.currentUrl) {
|
|
46
|
-
this.getUserNotifications();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
getUserNotifications() {
|
|
53
|
-
this.userService.getUserNotifications().subscribe(notifications => {
|
|
54
|
-
this.notifications = notifications;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
hideNoty(id: number) {
|
|
59
|
-
const subscriptionId = PermissionService.selectedSubscription.id;
|
|
60
|
-
this.commonService
|
|
61
|
-
.userLoginNotification({
|
|
62
|
-
subscription_id: subscriptionId,
|
|
63
|
-
notification_id: id,
|
|
64
|
-
discarded: true
|
|
65
|
-
})
|
|
66
|
-
.subscribe(() => {
|
|
67
|
-
this.getUserNotifications();
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
override ngOnDestroy() {
|
|
72
|
-
this.notifier.next('');
|
|
73
|
-
}
|
|
74
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"useDefineForClassFields": false,
|
|
5
|
-
"forceConsistentCasingInFileNames": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noImplicitOverride": true,
|
|
8
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noFallthroughCasesInSwitch": true,
|
|
11
|
-
"allowSyntheticDefaultImports": true
|
|
12
|
-
},
|
|
13
|
-
"files": [],
|
|
14
|
-
"include": [],
|
|
15
|
-
"references": [
|
|
16
|
-
{
|
|
17
|
-
"path": "./tsconfig.lib.json"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"path": "./tsconfig.spec.json"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"extends": "../../tsconfig.base.json",
|
|
24
|
-
"angularCompilerOptions": {
|
|
25
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
26
|
-
"strictInjectionParameters": true,
|
|
27
|
-
"strictInputAccessModifiers": true,
|
|
28
|
-
"strictTemplates": true
|
|
29
|
-
}
|
|
30
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../dist/out-tsc",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"inlineSources": true,
|
|
8
|
-
"types": ["jquery"]
|
|
9
|
-
},
|
|
10
|
-
"angularCompilerOptions": {
|
|
11
|
-
"strictInputAccessModifiers": true,
|
|
12
|
-
"strictTemplates": false,
|
|
13
|
-
"preserveWhitespaces": false,
|
|
14
|
-
"fullTemplateTypeCheck": false,
|
|
15
|
-
"strictInjectionParameters": true
|
|
16
|
-
},
|
|
17
|
-
"exclude": ["src/**/*.spec.ts", "src/test-setup.ts", "jest.config.ts", "src/**/*.test.ts"],
|
|
18
|
-
"include": ["src/**/*.ts"]
|
|
19
|
-
}
|
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../dist/out-tsc",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"target": "es2016",
|
|
7
|
-
"types": ["jasmine", "node","jquery"]
|
|
8
|
-
},
|
|
9
|
-
"files": ["../test-setup.ts"],
|
|
10
|
-
"include": ["src/**/*.test.ts", "src/**/*.spec.ts", "src/**/*.d.ts"]
|
|
11
|
-
}
|