exceladdincbms-v2 20.0.4 → 20.0.5

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 (46) hide show
  1. package/esm2022/bulk-tool-20.mjs +5 -0
  2. package/esm2022/lib/auth.service.mjs +50 -0
  3. package/esm2022/lib/bulk-tool.component.mjs +22 -0
  4. package/esm2022/lib/bulk-tool.module.mjs +50 -0
  5. package/esm2022/lib/bulk-tool.service.mjs +14 -0
  6. package/esm2022/lib/constant.enum.mjs +6 -0
  7. package/esm2022/lib/environmentsModel.info.mjs +2 -0
  8. package/esm2022/lib/http-interceptor.mjs +25 -0
  9. package/esm2022/lib/login/login.component.mjs +84 -0
  10. package/esm2022/lib/materils/materils.module.mjs +172 -0
  11. package/esm2022/lib/menu/menu.component.mjs +47 -0
  12. package/esm2022/public_api.mjs +10 -0
  13. package/fesm2022/bulk-tool-20.mjs +448 -0
  14. package/fesm2022/bulk-tool-20.mjs.map +1 -0
  15. package/index.d.ts +31 -83
  16. package/lib/auth.service.d.ts +16 -0
  17. package/lib/bulk-tool.component.d.ts +8 -0
  18. package/lib/bulk-tool.module.d.ts +17 -0
  19. package/lib/bulk-tool.service.d.ts +6 -0
  20. package/lib/constant.enum.d.ts +5 -0
  21. package/lib/environmentsModel.info.d.ts +3 -0
  22. package/lib/http-interceptor.d.ts +8 -0
  23. package/lib/login/login.component.d.ts +27 -0
  24. package/lib/materils/materils.module.d.ts +45 -0
  25. package/lib/menu/menu.component.d.ts +28 -0
  26. package/package.json +5 -5
  27. package/public_api.d.ts +6 -2
  28. package/Pictures - Shortcut.lnk +0 -0
  29. package/fesm2022/exceladdincbms-20.mjs +0 -638
  30. package/fesm2022/exceladdincbms-20.mjs.map +0 -1
  31. package/src/lib/auth.service.ts +0 -46
  32. package/src/lib/base-app.service.ts +0 -36
  33. package/src/lib/bulk-tool.component.ts +0 -20
  34. package/src/lib/bulk-tool.module.ts +0 -32
  35. package/src/lib/constant.enum.ts +0 -6
  36. package/src/lib/environmentsModel.info.ts +0 -14
  37. package/src/lib/http-interceptor.ts +0 -22
  38. package/src/lib/login/login.component.css +0 -103
  39. package/src/lib/login/login.component.html +0 -59
  40. package/src/lib/login/login.component.ts +0 -105
  41. package/src/lib/materils/materils.module.ts +0 -96
  42. package/src/lib/menu/menu.component.css +0 -388
  43. package/src/lib/menu/menu.component.html +0 -46
  44. package/src/lib/menu/menu.component.ts +0 -191
  45. package/src/public_api.ts +0 -14
  46. package/src/styles.css +0 -44
@@ -1,191 +0,0 @@
1
- import { Component, OnInit, ViewChild, Injectable, Injector } from '@angular/core';
2
- import { AuthService } from '../auth.service';
3
- import { Router, ActivatedRoute, RouterModule } from '@angular/router';
4
- import { BaseAppService } from '../base-app.service'
5
-
6
-
7
- export interface Menu {
8
- displaytext: string;
9
- displayorder: number;
10
- menuId: number;
11
- menulevel: number;
12
- parentMenuId: number;
13
- targetAction: string;
14
- targetServer: string;
15
- parentMenuName: string;
16
- children: any[]
17
- }
18
-
19
- @Component({
20
- selector: 'lib-menu',
21
- templateUrl: './menu.component.html',
22
- styleUrls: ['./menu.component.css'],
23
- standalone: false
24
- })
25
- export class MenuComponent implements OnInit {
26
-
27
- public async: any;
28
- public MenuMode: string = "over";
29
- public message = '';
30
- public tooltext: any = "CBMS"
31
- public menuName: string;
32
- public childMenu: string;
33
- public isLoading: boolean = false;
34
- public userInfo: any;
35
- public moduleNameFromExcel: string;
36
- public IsPermissionExists: boolean = true;
37
- public messages: string[] = [];
38
- public MenuData: Menu[]
39
- public RootUrl: string;
40
- public menuFromExcel: any;
41
- public navigateMsg: string;
42
- public result: any;
43
- constructor(private authenticationService: AuthService, private route: ActivatedRoute,
44
- private router: Router, public injector: Injector, private baseAppService: BaseAppService) {
45
- this.RootUrl = this.injector.get("config").rootUrl; //getting from environment file from application accessing BaseApp
46
- this.menuName = this.injector.get("config").moduleName; //getting from environment file from application accessing BaseApp
47
- this.userInfo = this.baseAppService.getUserInfo();
48
- this.childMenu = localStorage.getItem("childMenu")
49
- if (!this.userInfo) { //incase getUserInfo service fails.
50
- let userDetails = localStorage.getItem("UserInfo");
51
- this.userInfo = JSON.parse(userDetails);
52
- }
53
- }
54
- ngOnInit() {
55
- console.log("Url came base from application -", window.location.href);
56
- this.isLoading = true;
57
- this.GetCBMSMenu();
58
-
59
- }
60
- public GetCBMSMenu() {
61
- if (this.userInfo) {
62
- this.authenticationService.GetMenu(this.userInfo.userInfoId).subscribe(data => {
63
- this.MenuData = data;
64
- this.isLoading = false;
65
- if (this.MenuData) {
66
- this.menuFromExcel = this.baseAppService.getmenuNameFromBudget()
67
- console.log("MenuFromExcel", this.menuFromExcel);
68
- if (!this.menuFromExcel) {
69
- let CurrentMenu = data.find(e => e.parentMenuName == this.menuName) //Finding Which application Accessing BaseApp
70
- this.tooltext = CurrentMenu ? CurrentMenu.parentMenuName : "CBMS";
71
- console.log("Isdownload", this.userInfo.isDownload);
72
- if (!this.userInfo.isDownload) {
73
- if (CurrentMenu) {
74
- if (CurrentMenu.children.length == 0) {
75
- this.router.navigate([CurrentMenu.targetAction.split("app")[1]]);
76
- }
77
- else {
78
- if (this.childMenu) {
79
- this.navigateToChildMenu(CurrentMenu)
80
- }
81
- else {
82
- this.router.navigate([CurrentMenu.children[0].targetAction.split("app")[1]]);
83
- return;
84
- }
85
- }
86
- }
87
- else {
88
- console.log("Redirecting to the First application in menu Tab")
89
- this.navigateToAnotherMenu(this.MenuData[0]); // Redirecting to the First application in menu Tab
90
- }
91
- }
92
- }
93
- else {
94
- let menu = this.MenuData.find(e => e.displaytext == this.menuFromExcel)
95
- if (menu) {
96
- if (!this.childMenu) {
97
- console.log("noChildMenu")
98
- this.navigateToAnotherMenu(this.MenuData.find(e => e.displaytext == this.menuFromExcel));
99
- }
100
- else {
101
- console.log("childMenuThere")
102
- this.navigateToChildMenu(this.MenuData.find(e => e.parentMenuName == this.menuName))
103
- }
104
- }
105
- else {
106
- this.navigateToAnotherMenu(this.MenuData[0]);
107
- }
108
- }
109
- }
110
- else {
111
- this.IsPermissionExists = false; //Notifing User that he or she doednot have permission if menuData is empty.
112
- }
113
- this.isLoading = false;
114
- });
115
- }
116
- }
117
-
118
-
119
- navigateToChildMenu(CurrentMenu) {
120
- localStorage.removeItem("childMenu");
121
- let childrenMenu = CurrentMenu.children.filter(e => e.displaytext == this.childMenu)
122
- console.log("childrenMenu", childrenMenu);
123
- if (childrenMenu.length > 0) {
124
- this.router.navigate([childrenMenu[0].targetAction.split("app")[1]]);
125
- return;
126
- }
127
- else {
128
- this.router.navigate([CurrentMenu.targetAction.split("app")[1]]);
129
- }
130
- }
131
-
132
- listItemClick(link) {
133
- this.isLoading = true;
134
- if (link.parentMenuName == this.menuName) {
135
- if (link.parentMenuId == 0) {
136
- if (link.children.length > 0) {
137
- console.log("navigationUrl", link.children[0].targetAction)
138
- this.isLoading = false;
139
- this.router.navigate([link.children[0].targetAction.split("app")[1]]);
140
- }
141
- else {
142
- console.log("navigationUrl", link.targetAction)
143
- this.isLoading = false;
144
- this.router.navigate([link.targetAction.split("app")[1]]);
145
- }
146
- }
147
- else {
148
- localStorage.setItem("childMenu", link.displaytext);
149
- console.log("navigationUrl", link.targetAction)
150
- this.isLoading = false;
151
- this.router.navigate([link.targetAction.split("app")[1]]);
152
- }
153
- }
154
- else {
155
- this.isLoading = false;
156
- this.navigateToAnotherMenu(link)
157
- }
158
- }
159
- navigateToAnotherMenu(link) {
160
- this.navigateMsg = "...Redirecting to " + link.parentMenuName
161
- let navLink = link.targetAction
162
- navLink = link.targetAction.split("app")[0] + "app"
163
- if (link.parentMenuId != 0) {
164
- localStorage.setItem("childMenu", link.displaytext);
165
- }
166
- this.isLoading = false;
167
- localStorage.setItem("IsNavigate", "true");
168
- let navigateUrl = this.navigateUrl(navLink)
169
- console.log("navigating to", link.displaytext)
170
- window.location.assign(navigateUrl);
171
- return;
172
- }
173
- navigateUrl(Url: string) {
174
- let replacements = Url.match(/\{.*?\}/g);
175
- let value = "";
176
- if (replacements) {
177
- replacements.forEach(element => {
178
- if (element == "{userId}") {
179
- value = this.userInfo.userInfoId;
180
- }
181
- Url = Url.replace(element, value);
182
- });
183
- }
184
- return this.RootUrl + Url;
185
- }
186
- onLogOut() {
187
- this.authenticationService.logout();
188
- this.router.navigate(["/login"]);
189
- }
190
-
191
- }
package/src/public_api.ts DELETED
@@ -1,14 +0,0 @@
1
- /*
2
- * Public API Surface of bulk-tool
3
- */
4
-
5
- export * from './lib/auth.service';
6
- export * from './lib/base-app.service';
7
- export * from './lib/bulk-tool.component';
8
- export * from './lib/bulk-tool.module';
9
- export * from './lib/constant.enum';
10
- export * from './lib/environmentsModel.info';
11
- export * from './lib/http-interceptor';
12
- export * from './lib/login/login.component';
13
- export * from './lib/menu/menu.component';
14
- export * from './lib/materils/materils.module';
package/src/styles.css DELETED
@@ -1,44 +0,0 @@
1
- /* You can add global styles to this file, and also import other style files */
2
- .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
3
- padding-right: 0;
4
- background: #fff !important;
5
- }
6
-
7
- input::placeholder {
8
- /* color: #fc0505 !important; */
9
- opacity: 1;
10
- }
11
- .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
12
- padding-right: 0;
13
- /* border-bottom: #ff0606 solid 1.5px; */
14
- }
15
- .mdc-text-field{
16
- padding-left: 0px !important;
17
- }
18
- .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper:hover {
19
- background: #ffffff !important;
20
- /* border-bottom: #fc0505 solid 1px; */
21
- box-shadow: none;
22
- }
23
- .mat-mdc-form-field-focus-overlay {
24
- background: #fff !important;
25
- }
26
- .cbmsuitest {
27
- background-color: #ff9900;
28
- }
29
-
30
- /* --------------19/08/2025--------------------- */
31
-
32
- .mat-mdc-input-element {
33
- font-size: 16px !important;
34
- margin: 0 !important;
35
- padding: 5px 0 8px !important;
36
- line-height: 16px !important;
37
- vertical-align: text-bottom;
38
- }
39
- .mat-mdc-form-field-flex {
40
- height: 45px;
41
- }
42
- .mat-mdc-text-field-wrapper {
43
- background: #fff !important;
44
- }