@posiwise/dashboard-module 0.0.86 → 0.0.88

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.
Files changed (89) hide show
  1. package/esm2022/index.mjs +16 -0
  2. package/esm2022/lib/customizer/customizer.component.mjs +17 -0
  3. package/esm2022/lib/dashboard.module.mjs +101 -0
  4. package/esm2022/lib/faq/faq.component.mjs +108 -0
  5. package/esm2022/lib/faq-details/faq-details.component.mjs +38 -0
  6. package/esm2022/lib/footer/footer.component.mjs +22 -0
  7. package/esm2022/lib/home/home.component.mjs +79 -0
  8. package/esm2022/lib/navbar/navbar.component.mjs +162 -0
  9. package/esm2022/lib/notifications-page/current-notifications/current-notifications.component.mjs +58 -0
  10. package/esm2022/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +73 -0
  11. package/esm2022/lib/notifications-page/notifications-page.component.mjs +14 -0
  12. package/esm2022/lib/search/search.component.mjs +48 -0
  13. package/esm2022/lib/sidebar/sidebar-routes.config.mjs +350 -0
  14. package/esm2022/lib/sidebar/sidebar.metadata.mjs +2 -0
  15. package/esm2022/lib/user-feedback/user-feedback.component.mjs +73 -0
  16. package/esm2022/lib/user-notifications/user-notifications.component.mjs +65 -0
  17. package/esm2022/posiwise-dashboard-module.mjs +5 -0
  18. package/fesm2022/posiwise-dashboard-module.mjs +1118 -0
  19. package/fesm2022/posiwise-dashboard-module.mjs.map +1 -0
  20. package/{src/index.ts → index.d.ts} +0 -1
  21. package/lib/customizer/customizer.component.d.ts +7 -0
  22. package/lib/dashboard.module.d.ts +28 -0
  23. package/lib/faq/faq.component.d.ts +37 -0
  24. package/lib/faq-details/faq-details.component.d.ts +16 -0
  25. package/lib/footer/footer.component.d.ts +12 -0
  26. package/lib/home/home.component.d.ts +18 -0
  27. package/lib/navbar/navbar.component.d.ts +35 -0
  28. package/lib/notifications-page/current-notifications/current-notifications.component.d.ts +17 -0
  29. package/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.d.ts +18 -0
  30. package/lib/notifications-page/notifications-page.component.d.ts +5 -0
  31. package/lib/search/search.component.d.ts +24 -0
  32. package/lib/sidebar/sidebar-routes.config.d.ts +64 -0
  33. package/{src/lib/sidebar/sidebar.metadata.ts → lib/sidebar/sidebar.metadata.d.ts} +0 -1
  34. package/lib/user-feedback/user-feedback.component.d.ts +24 -0
  35. package/lib/user-notifications/user-notifications.component.d.ts +20 -0
  36. package/package.json +23 -10
  37. package/.eslintrc.json +0 -21
  38. package/ng-package.json +0 -15
  39. package/project.json +0 -72
  40. package/src/lib/customizer/customizer.component.html +0 -184
  41. package/src/lib/customizer/customizer.component.scss +0 -101
  42. package/src/lib/customizer/customizer.component.ts +0 -13
  43. package/src/lib/dashboard.module.ts +0 -63
  44. package/src/lib/faq/faq.component.html +0 -110
  45. package/src/lib/faq/faq.component.scss +0 -58
  46. package/src/lib/faq/faq.component.spec.ts +0 -143
  47. package/src/lib/faq/faq.component.ts +0 -144
  48. package/src/lib/faq-details/faq-details.component.html +0 -21
  49. package/src/lib/faq-details/faq-details.component.scss +0 -3
  50. package/src/lib/faq-details/faq-details.component.spec.ts +0 -69
  51. package/src/lib/faq-details/faq-details.component.ts +0 -38
  52. package/src/lib/footer/footer.component.html +0 -14
  53. package/src/lib/footer/footer.component.spec.ts +0 -42
  54. package/src/lib/footer/footer.component.ts +0 -24
  55. package/src/lib/home/home.component.html +0 -93
  56. package/src/lib/home/home.component.scss +0 -0
  57. package/src/lib/home/home.component.spec.ts +0 -69
  58. package/src/lib/home/home.component.ts +0 -88
  59. package/src/lib/navbar/navbar.component.html +0 -189
  60. package/src/lib/navbar/navbar.component.scss +0 -92
  61. package/src/lib/navbar/navbar.component.spec.ts +0 -76
  62. package/src/lib/navbar/navbar.component.ts +0 -198
  63. package/src/lib/notifications-page/current-notifications/current-notifications.component.html +0 -61
  64. package/src/lib/notifications-page/current-notifications/current-notifications.component.spec.ts +0 -57
  65. package/src/lib/notifications-page/current-notifications/current-notifications.component.ts +0 -63
  66. package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.html +0 -65
  67. package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.spec.ts +0 -71
  68. package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.ts +0 -79
  69. package/src/lib/notifications-page/notifications-page.component.html +0 -24
  70. package/src/lib/notifications-page/notifications-page.component.scss +0 -28
  71. package/src/lib/notifications-page/notifications-page.component.spec.ts +0 -26
  72. package/src/lib/notifications-page/notifications-page.component.ts +0 -8
  73. package/src/lib/search/search.component.html +0 -215
  74. package/src/lib/search/search.component.scss +0 -98
  75. package/src/lib/search/search.component.spec.ts +0 -64
  76. package/src/lib/search/search.component.ts +0 -50
  77. package/src/lib/sidebar/sidebar-routes.config.ts +0 -355
  78. package/src/lib/user-feedback/user-feedback.component.html +0 -53
  79. package/src/lib/user-feedback/user-feedback.component.scss +0 -18
  80. package/src/lib/user-feedback/user-feedback.component.spec.ts +0 -54
  81. package/src/lib/user-feedback/user-feedback.component.ts +0 -83
  82. package/src/lib/user-notifications/user-notifications.component.html +0 -21
  83. package/src/lib/user-notifications/user-notifications.component.scss +0 -21
  84. package/src/lib/user-notifications/user-notifications.component.spec.ts +0 -47
  85. package/src/lib/user-notifications/user-notifications.component.ts +0 -74
  86. package/tsconfig.json +0 -30
  87. package/tsconfig.lib.json +0 -19
  88. package/tsconfig.lib.prod.json +0 -9
  89. 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
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "compilerOptions": {
4
- "declarationMap": false
5
- },
6
- "angularCompilerOptions": {
7
- "compilationMode": "partial"
8
- }
9
- }
@@ -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
- }