exceladdincbms-v2 5.13.0 → 20.0.3

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 (45) hide show
  1. package/fesm2022/exceladdincbms-20.mjs +638 -0
  2. package/fesm2022/exceladdincbms-20.mjs.map +1 -0
  3. package/index.d.ts +196 -5
  4. package/package.json +5 -7
  5. package/public_api.d.ts +2 -6
  6. package/src/lib/auth.service.ts +46 -0
  7. package/src/lib/base-app.service.ts +36 -0
  8. package/src/lib/bulk-tool.component.ts +20 -0
  9. package/src/lib/bulk-tool.module.ts +32 -0
  10. package/src/lib/constant.enum.ts +6 -0
  11. package/src/lib/environmentsModel.info.ts +14 -0
  12. package/src/lib/http-interceptor.ts +22 -0
  13. package/src/lib/login/login.component.css +103 -0
  14. package/src/lib/login/login.component.html +59 -0
  15. package/src/lib/login/login.component.ts +105 -0
  16. package/src/lib/materils/materils.module.ts +96 -0
  17. package/src/lib/menu/menu.component.css +388 -0
  18. package/src/lib/menu/menu.component.html +46 -0
  19. package/src/lib/menu/menu.component.ts +191 -0
  20. package/src/public_api.ts +14 -0
  21. package/src/styles.css +44 -0
  22. package/esm2022/exceladdincbms-v1.mjs +0 -5
  23. package/esm2022/lib/auth.service.mjs +0 -61
  24. package/esm2022/lib/base-app.service.mjs +0 -41
  25. package/esm2022/lib/bulk-tool.component.mjs +0 -22
  26. package/esm2022/lib/bulk-tool.module.mjs +0 -52
  27. package/esm2022/lib/constant.enum.mjs +0 -6
  28. package/esm2022/lib/environmentsModel.info.mjs +0 -2
  29. package/esm2022/lib/http-interceptor.mjs +0 -25
  30. package/esm2022/lib/login/login.component.mjs +0 -158
  31. package/esm2022/lib/materils/materils.module.mjs +0 -178
  32. package/esm2022/lib/menu/menu.component.mjs +0 -293
  33. package/esm2022/public_api.mjs +0 -10
  34. package/fesm2022/exceladdincbms-v1.mjs +0 -806
  35. package/fesm2022/exceladdincbms-v1.mjs.map +0 -1
  36. package/lib/auth.service.d.ts +0 -20
  37. package/lib/base-app.service.d.ts +0 -16
  38. package/lib/bulk-tool.component.d.ts +0 -8
  39. package/lib/bulk-tool.module.d.ts +0 -17
  40. package/lib/constant.enum.d.ts +0 -5
  41. package/lib/environmentsModel.info.d.ts +0 -5
  42. package/lib/http-interceptor.d.ts +0 -8
  43. package/lib/login/login.component.d.ts +0 -32
  44. package/lib/materils/materils.module.d.ts +0 -46
  45. package/lib/menu/menu.component.d.ts +0 -51
@@ -0,0 +1,59 @@
1
+
2
+ <div class="container">
3
+ <div class="loginForm">
4
+ <div class="example-sidenav-content">
5
+ <div class="loginWidget">
6
+ <form [formGroup]="loginForm" >
7
+ <h2>Login</h2>
8
+ <div>&nbsp;</div>
9
+ <div class="form-group">
10
+ <!-- <label for="username">Username</label> -->
11
+ <!-- <input type="text" formControlName="username" class="form-control"
12
+ [ngClass]="{ 'is-invalid': submitted && formsData.username.errors }" /> -->
13
+ <mat-form-field class="example-full-width" color="primary">
14
+ <mat-label>Enter Username</mat-label>
15
+ <input class="toolbar-search bxForm" formControlName="username" type="text" matInput >
16
+ <!-- <mat-icon matSuffix style="font-size: 1.2em"></mat-icon> -->
17
+ </mat-form-field>
18
+ <!-- <div *ngIf="submitted && formsData.username.errors" class="invalid-feedback">
19
+ <div *ngIf="formsData.username.errors.required">Username is required</div>
20
+ </div> -->
21
+ </div>
22
+ <div class="form-group">
23
+ <!-- <label for="password">Password</label> -->
24
+ <!-- <input type="password" formControlName="password" class="form-control"
25
+ [ngClass]="{ 'is-invalid': submitted && formsData.password.errors }" /> -->
26
+ <mat-form-field class="example-full-width" color="primary">
27
+ <mat-label>Enter Password</mat-label>
28
+ <input class="toolbar-search" formControlName="password" type="password" matInput >
29
+ <mat-icon matSuffix style="font-size:12px"></mat-icon>
30
+ </mat-form-field>
31
+ <!-- <div *ngIf="submitted && formsData.password.errors" class="invalid-feedback">
32
+ <div *ngIf="formsData.password.errors.required">Password is required</div>
33
+ </div> -->
34
+ </div>
35
+ <div class="form-group">
36
+ <!-- <button [disabled]="submitClick" class="btn btn-primary">Login</button> -->
37
+ <button style="background-color: #0888CA; color: #fff;line-height: 21px; padding: 4px 10px !important;" mat-button class="!loginForm.valid btn btn-primary" (click)="onLogin()">Login</button>
38
+ </div>
39
+ <div *ngIf ="!isvalidUser" class="alert alert-danger">{{error}}</div>
40
+ </form>
41
+ </div>
42
+
43
+ <section class="loade" *ngIf="isLoading">
44
+ <mat-spinner color="black" [diameter]=60 ></mat-spinner>
45
+ <span>
46
+ Logging...
47
+ </span>
48
+ </section>
49
+
50
+
51
+ <!-- <button type="button" mat-button (click)="drawer.toggle()">
52
+ Toggle sidenav
53
+ </button> -->
54
+ </div>
55
+ </div>
56
+ </div>
57
+
58
+
59
+
@@ -0,0 +1,105 @@
1
+
2
+ import { Component, OnInit, Input } from '@angular/core';
3
+ import { Location } from "@angular/common";
4
+ import { Router, ActivatedRoute, RouterModule } from '@angular/router';
5
+ import { FormBuilder, FormGroup, Validators, AbstractControl } from '@angular/forms';
6
+ import { first } from 'rxjs/operators';
7
+ import { Constant } from '../constant.enum';
8
+ import { AuthService } from '../auth.service';
9
+ import {BaseAppService} from '../base-app.service'
10
+ //import { url } from 'inspector';
11
+ export interface Login
12
+ {
13
+ [key: string]: AbstractControl
14
+ }
15
+
16
+ @Component({
17
+ selector: 'lib-login',
18
+ templateUrl: 'login.component.html',
19
+ styleUrls: ['./login.component.css'],
20
+ standalone: false
21
+ })
22
+
23
+ export class LoginComponent implements OnInit {
24
+ public isLoading: boolean = false;
25
+ @Input() routeUrl: string;
26
+ loginForm: FormGroup;
27
+ submitted = false;
28
+ returnUrl: string;
29
+ error = '';
30
+ userInfo:any;
31
+ constructor(
32
+ private formBuilder: FormBuilder,
33
+ private route: ActivatedRoute,
34
+ private router: Router,
35
+ private location: Location,
36
+ private authenticationService: AuthService,
37
+ private baseAppService:BaseAppService) {
38
+ let userObject=localStorage.getItem("UserInfo")
39
+ this.userInfo=JSON.parse(userObject);
40
+ this.baseAppService.setUserInfo(this.userInfo);
41
+ }
42
+ public isvalidUser:boolean = true;
43
+ ngOnInit() {
44
+ this.loginForm = this.formBuilder.group({
45
+ username: ['', Validators.required],
46
+ password: ['', Validators.required]
47
+ });
48
+ this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || this.routeUrl;
49
+ //Checking User already logged in or not
50
+ let isNavigate=localStorage.getItem("IsNavigate");
51
+ if (this.location.path() !== '' && this.location.path().indexOf('UserId') !== -1) {
52
+ let userId=this.location.path().split('?')[1].split('UserId=')[1]
53
+ if(userId==this.userInfo.userInfoId){
54
+ this.router.navigate([this.returnUrl]);
55
+ return;
56
+ }
57
+ }
58
+ else if(JSON.parse(isNavigate)==true){
59
+ if(this.userInfo){
60
+ console.log("Login After naviagtion-",this.returnUrl);
61
+ localStorage.removeItem("IsNavigate");
62
+ this.router.navigate([this.returnUrl]);
63
+ return;
64
+ }
65
+ }
66
+ }
67
+ get formsData():Login { return this.loginForm.controls; }
68
+
69
+ onLogin() {
70
+ this.submitted = true;
71
+ this.isLoading = true;
72
+ // stop here if form is invalid
73
+ if (this.loginForm.invalid) {
74
+ this.isLoading = false;
75
+ return;
76
+ }
77
+ //this.submitClick = true;
78
+ this.authenticationService.login(this.formsData.username.value, this.formsData.password.value)
79
+ .pipe(first())
80
+ .subscribe(
81
+ data => {
82
+ console.log(data.status);
83
+ if(data.status==="InValid")
84
+ {
85
+ this.isLoading = false;
86
+ this.isvalidUser=false;
87
+ this.error = Constant.INVALID;
88
+ this.router.navigate(["/login"]);
89
+ }
90
+ else
91
+ {
92
+ console.log("Login Success-",this.returnUrl);
93
+ this.isLoading = false;
94
+ this.router.navigate([this.returnUrl]);
95
+
96
+ }
97
+ },
98
+ error => {
99
+ this.isLoading = false;
100
+ this.error = Constant.INVALID;
101
+ this.router.navigate(["/login"]);
102
+ //this.submitClick = true;
103
+ });
104
+ }
105
+ }
@@ -0,0 +1,96 @@
1
+
2
+ import { NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { DragDropModule } from '@angular/cdk/drag-drop';
5
+ import { ScrollingModule } from '@angular/cdk/scrolling';
6
+ import { CdkTableModule } from '@angular/cdk/table';
7
+ import { CdkTreeModule } from '@angular/cdk/tree';
8
+ import { A11yModule } from '@angular/cdk/a11y';
9
+ import { OverlayModule } from '@angular/cdk/overlay';
10
+
11
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
12
+ import { MatBadgeModule } from '@angular/material/badge';
13
+ import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
14
+ import { MatButtonModule } from '@angular/material/button';
15
+ import { MatButtonToggleModule } from '@angular/material/button-toggle';
16
+ import { MatCardModule } from '@angular/material/card';
17
+ import { MatCheckboxModule } from '@angular/material/checkbox';
18
+ import { MatChipsModule } from '@angular/material/chips';
19
+ import { MatDatepickerModule } from '@angular/material/datepicker';
20
+ import { MatDialogModule } from '@angular/material/dialog';
21
+ import { MatDividerModule } from '@angular/material/divider';
22
+ import { MatExpansionModule } from '@angular/material/expansion';
23
+ import { MatGridListModule } from '@angular/material/grid-list';
24
+ import { MatIconModule } from '@angular/material/icon';
25
+ import { MatInputModule } from '@angular/material/input';
26
+ import { MatListModule } from '@angular/material/list';
27
+ import { MatMenuModule } from '@angular/material/menu';
28
+ import { MatNativeDateModule } from '@angular/material/core';
29
+ import { MatPaginatorModule } from '@angular/material/paginator';
30
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
31
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
32
+ import { MatRadioModule } from '@angular/material/radio';
33
+ import { MatRippleModule } from '@angular/material/core';
34
+ import { MatSelectModule } from '@angular/material/select';
35
+ import { MatSidenavModule } from '@angular/material/sidenav';
36
+ import { MatSliderModule } from '@angular/material/slider';
37
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
38
+ import { MatSnackBarModule } from '@angular/material/snack-bar';
39
+ import { MatSortModule } from '@angular/material/sort';
40
+ import { MatStepperModule } from '@angular/material/stepper';
41
+ import { MatTableModule } from '@angular/material/table';
42
+ import { MatTabsModule } from '@angular/material/tabs';
43
+ import { MatToolbarModule } from '@angular/material/toolbar';
44
+ import { MatTooltipModule } from '@angular/material/tooltip';
45
+ import { MatTreeModule } from '@angular/material/tree';
46
+
47
+
48
+
49
+ @NgModule({
50
+ exports: [
51
+ A11yModule,
52
+ CdkTableModule,
53
+ CdkTreeModule,
54
+ DragDropModule,
55
+ MatAutocompleteModule,
56
+ MatBadgeModule,
57
+ MatBottomSheetModule,
58
+ MatButtonModule,
59
+ MatButtonToggleModule,
60
+ MatCardModule,
61
+ MatCheckboxModule,
62
+ MatChipsModule,
63
+ MatStepperModule,
64
+ MatDatepickerModule,
65
+ MatDialogModule,
66
+ MatDividerModule,
67
+ MatExpansionModule,
68
+ MatGridListModule,
69
+ MatIconModule,
70
+ MatInputModule,
71
+ MatListModule,
72
+ MatMenuModule,
73
+ MatNativeDateModule,
74
+ MatPaginatorModule,
75
+ MatProgressBarModule,
76
+ MatProgressSpinnerModule,
77
+ MatRadioModule,
78
+ MatRippleModule,
79
+ MatSelectModule,
80
+ MatSidenavModule,
81
+ MatSliderModule,
82
+ MatSlideToggleModule,
83
+ MatSnackBarModule,
84
+ MatSortModule,
85
+ MatTableModule,
86
+ MatTabsModule,
87
+ MatToolbarModule,
88
+ MatTooltipModule,
89
+ MatTreeModule,
90
+ ScrollingModule,
91
+ OverlayModule
92
+ ]
93
+ })
94
+
95
+
96
+ export class MaterilsModule { }
@@ -0,0 +1,388 @@
1
+ /* body{
2
+ font: normal normal 12px Arial, sans-serif !important;
3
+ }
4
+
5
+
6
+
7
+ .sidenav-container {
8
+ height: 100%;
9
+ }
10
+
11
+ .sidenav {
12
+ width: 200px;
13
+ }
14
+
15
+ .sidenav .mat-toolbar {
16
+ background: inherit;
17
+ font: normal normal 12px Arial, sans-serif !important;
18
+ }
19
+
20
+ .mat-toolbar.mat-primary {
21
+ position: -webkit-sticky;
22
+ position: sticky;
23
+ height: 40px;
24
+ font-size: 17px;
25
+ top: 10px;
26
+ z-index: 1;
27
+ font-weight: 5px;
28
+ }
29
+
30
+
31
+
32
+ .example-container {
33
+ display: flex;
34
+ flex-direction: column;
35
+ position: absolute;
36
+ top: 0;
37
+ bottom: 0;
38
+ left: 0;
39
+ right: 0;
40
+ height: auto;
41
+ min-height: 350px;
42
+ border:#999 solid 1px;
43
+ }
44
+
45
+ .example-is-mobile .example-toolbar {
46
+ position: fixed;
47
+ z-index: 2;
48
+ }
49
+ .mat-list-base
50
+ {
51
+ padding-top:0px!important;
52
+
53
+ }
54
+
55
+ .mat-drawer {
56
+ z-index: 4;
57
+ display: block;
58
+ position: absolute;
59
+ top: 40px;
60
+ bottom: 0;
61
+ z-index: 3;
62
+ outline: 0;
63
+ box-sizing: border-box;
64
+ transform: translate3d(-100%,0,0);
65
+ height: 50%;
66
+ background-color: rgba(235, 235, 255, 1);
67
+ }
68
+
69
+ .mat-drawer-backdrop.mat-drawer-shown
70
+ {
71
+ background-color: rgba(255, 255, 255, 1) !important;
72
+ }
73
+
74
+ a.mat-list-item {
75
+ padding: 0px 10px;
76
+ background: rgba(235, 235, 255, 1) !important;
77
+ width: 100%;
78
+ display: block;
79
+ color: rgba(0, 0, 0, 0.87) !important;
80
+ }
81
+ .mat-drawer-inner-container {
82
+ width: 100%;
83
+ height: 100%;
84
+ overflow: inherit;
85
+ -webkit-overflow-scrolling: touch;
86
+ /* height: 300px !important; */
87
+ /* }
88
+ .subMenu{
89
+ margin: 0px;
90
+ width: 100%;
91
+ padding: 0px 15px;
92
+ background: rgba(235, 235, 255, 1) !important;
93
+ list-style: none;
94
+ }
95
+ .mat-list-base .mat-list-item .mat-list-option .mat-list-item-content{
96
+ margin: 0px;
97
+ height:30px!important;
98
+ }
99
+ .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base .mat-list-option .mat-list-item-content
100
+ {
101
+ padding: 0px,0px,0px,0px!important;
102
+ font: normal normal 15px Arial, sans-serif !important;
103
+ }
104
+ .example-container {
105
+ display: flex;
106
+ flex-direction: column;
107
+ position: fixed;
108
+ top: 0;
109
+ bottom: 0;
110
+ left: 0;
111
+ right: 0;
112
+ height: auto;
113
+ min-height: auto;
114
+ } */
115
+ /* --------------------------------Mobile View Responsive ---------------- */
116
+ /* @media only screen
117
+ and (min-device-width: 320px)
118
+ and (max-device-width: 720px)
119
+ and (-webkit-min-device-pixel-ratio: 2) {
120
+ div#toolbarTitle h1{
121
+ font-size: 19px;
122
+ font-weight: bold;
123
+ color: #ffffff;
124
+ text-transform: uppercase;
125
+ }
126
+ app-adddealticket.ng-star-inserted {
127
+ position: absolute;
128
+ top: 59px;
129
+ display: block;
130
+ padding: 0px;
131
+ margin: 0px;
132
+ }
133
+ app-adddealticket.ng-star-inserted h1{
134
+ font-size: 19px;
135
+ font-weight: bold;
136
+ color: #ffffff;
137
+ text-transform: uppercase;
138
+ }
139
+ .example-container {
140
+ display: flex;
141
+ flex-direction: column;
142
+ position: fixed;
143
+ top: 0;
144
+ bottom: 0;
145
+ left: 0;
146
+ right: 0;
147
+ height: auto;
148
+ min-height: auto;
149
+ }
150
+ .mat-toolbar.mat-primary {
151
+ position: -webkit-sticky;
152
+ position: sticky;
153
+ height: 56px;
154
+ font-size: 18px;
155
+ top: 0px;
156
+ z-index: 1;
157
+ font-weight: bold;
158
+ background: #054182;
159
+ }
160
+ .mat-drawer{
161
+ z-index: 4;
162
+ display: block;
163
+ position: absolute;
164
+ top: 40px;
165
+ bottom: 0;
166
+ z-index: 3;
167
+ outline: 0;
168
+ box-sizing: border-box;
169
+ -webkit-transform: translate3d(-100%,0,0);
170
+ background-color: rgba(235, 235, 255, 1);
171
+ transform: translate3d(-100%,0,0);
172
+ height: 50%;
173
+ /* min-height: 550px;
174
+ max-height: 550px; */
175
+
176
+ /* }
177
+ .mat-drawer-inner-container {
178
+ width: 100%;
179
+ overflow: auto;
180
+ -webkit-overflow-scrolling: touch;
181
+ /* min-height: 550px; */
182
+ /* background: #2f4050;
183
+ }
184
+ .mat-list-option:not(.mat-list-item-disabled):hover, .mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover {
185
+ background: #0c79df;
186
+ }
187
+ .mat-list-base .mat-list-item, .mat-list-base .mat-list-option {
188
+ display: block;
189
+ /* height: 35px; */
190
+ /* -webkit-tap-highlight-color: transparent; */
191
+
192
+
193
+ /* .mat-menu-panel.myMenu {
194
+ min-width: 35px;
195
+ max-width: 280px;
196
+ overflow: auto;
197
+ -webkit-overflow-scrolling: touch;
198
+ max-height: calc(100vh - 48px);
199
+ border-radius: 2px;
200
+ outline: 0;
201
+ background: transparent;
202
+ padding-left: 10px !important;
203
+ } */
204
+
205
+
206
+ /* .navbar-nav li:hover > ul.dropdown-menu {
207
+ display: block;
208
+ }
209
+ .dropdown-submenu {
210
+ position:relative;
211
+ }
212
+ .dropdown-submenu>.dropdown-menu {
213
+ top:0;
214
+ left:100%;
215
+ margin-top:-6px;
216
+ }
217
+
218
+
219
+ .dropdown-menu > li > a:hover:after {
220
+ text-decoration: underline;
221
+ transform: rotate(-90deg);
222
+ }
223
+
224
+ @media (min-width: 220px) and (max-width: 775px) {
225
+ .hide-web{display:none !important}
226
+ }
227
+
228
+ @media (min-width: 220px) and (max-width: 775px){
229
+ .view-mobile{display:block !important}
230
+ } */
231
+
232
+
233
+ /* new Styles for Menu */
234
+ .item{
235
+ cursor: not-allowed !important;
236
+ }
237
+ nav {
238
+ display: block;
239
+ text-align: left;
240
+
241
+
242
+ }
243
+ nav ul {
244
+ margin: 0;
245
+ padding:0;
246
+ list-style: none;
247
+ }
248
+ .nav a {
249
+ display:block;
250
+ cursor: pointer;
251
+ color:#000;
252
+ text-decoration: none;
253
+ padding: .8em 1.8em;
254
+ text-transform:none;
255
+ font-size: 80%;letter-spacing: 1px;
256
+ position: relative;
257
+ font-family: Roboto,"Helvetica Neue", sans-serif !important;
258
+ }
259
+ .nav{
260
+ vertical-align: top;
261
+ display: inline-block;
262
+ border-radius:6px;
263
+ }
264
+ .nav li{position: relative;}
265
+ .item::before{
266
+ content: "";
267
+ position: absolute;
268
+ height: 0;
269
+ width: 0;
270
+ top: 50%;
271
+ right: 5px;
272
+ border: 5px solid transparent;
273
+ border-left-color: #000;
274
+ }
275
+ .nav > li {
276
+ float:left;
277
+ /* border-bottom: 4px #aaa solid; */
278
+ margin-right: 1px;
279
+ }
280
+ .nav > li > a {
281
+ margin-bottom:1px;
282
+ color: #fff;
283
+ cursor: pointer;
284
+ }
285
+ .nav > li:hover , .nav > li:hover >a{
286
+ /* border-bottom-color:whitex; */
287
+ }
288
+ .nav li:hover > a { background:rgba(0,0,0,0.04); }
289
+ .nav > li:first-child { border-radius: 4px 0 0 4px;}
290
+ .nav > li:first-child>a{border-radius: 4px 0 0 0;}
291
+ .nav > li:last-child {
292
+ border-radius: 0 0 4px 0;
293
+ margin-right: 0;
294
+ }
295
+ .nav > li:last-child >a{border-radius: 0 4px 0 0; }
296
+ .nav li li a { margin-top:1px}
297
+
298
+
299
+
300
+ .nav li a:first-child:nth-last-child(2):before {
301
+ content:"";
302
+ position: absolute;
303
+ height:0;
304
+ width: 0;
305
+ /* border: 5px solid transparent; */
306
+ top: 50% ;
307
+ right:5px;
308
+ }
309
+
310
+
311
+
312
+
313
+
314
+ /* submenu positioning*/
315
+ .nav ul {
316
+ position: absolute;
317
+ white-space: nowrap;
318
+ /* border-bottom: 5px solid #fff; */
319
+ background-color: #fff;
320
+ z-index:11111;
321
+ left: -99999em;
322
+ }
323
+ .nav > li:hover > ul {
324
+ left: auto;
325
+ padding-top: 5px ;
326
+ min-width: 100%;
327
+ box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
328
+ }
329
+ .nav > li li ul { border-left:1px solid #fff;}
330
+
331
+
332
+ .nav > li li:hover > ul {
333
+ /* margin-left: 1px */
334
+ left: 100%;
335
+ top: -1px;
336
+ z-index: 1;
337
+ box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
338
+ }
339
+ /* arrow hover styling */
340
+ .nav > li > a:first-child:nth-last-child(2):before {
341
+ border-top-color: #aaa;
342
+ }
343
+ .nav > li:hover > a:first-child:nth-last-child(2):before {
344
+ border: 5px solid transparent;
345
+ /* border-bottom-color:white; */
346
+ margin-top:-5px
347
+ }
348
+ .nav li li > a:first-child:nth-last-child(2):before {
349
+ border-left-color: #aaa;
350
+ margin-top: -5px;
351
+ }
352
+ .nav li li:hover > a:first-child:nth-last-child(2):before {
353
+ border: 5px solid transparent;
354
+ border-right-color:#2f2c2c;
355
+ right: 10px;
356
+ }
357
+ .nav-header{
358
+ background: #779cf1;
359
+ width: 100%;
360
+ }
361
+ .nav-header > .nav > .nav-item{
362
+ color: #fff;
363
+ }
364
+ .nav-header > .nav > .nav-item a{
365
+ color: #fff;
366
+ }
367
+ .loade {
368
+ background: rgba(255, 255, 255, 0.5);
369
+ width: 100%;
370
+ height: 100%;
371
+ overflow: hidden;
372
+ position: absolute;
373
+ z-index: 1;
374
+ opacity: 50;
375
+ top:0px;
376
+ vertical-align: middle;
377
+ padding:40% 40%;
378
+ }
379
+ .permission{
380
+ padding: 10px;
381
+ color: red;
382
+ }
383
+ .navigateMsg{
384
+ text-align: center;
385
+ margin-top: 60px;
386
+ }
387
+
388
+
@@ -0,0 +1,46 @@
1
+
2
+ <div class="example-container">
3
+
4
+ <nav class="nav-header">
5
+ <ul class="nav">
6
+ <li class="nav-time">
7
+ <a>
8
+ <i class="fa fa-bars" style="font-size:24px"></i>
9
+ </a>
10
+ <ul>
11
+ <div *ngFor="let parent of MenuData">
12
+ <li *ngIf="parent.children && parent.children.length > 0">
13
+ <a class="item"> {{parent.displaytext}}</a>
14
+ <ul>
15
+ <li *ngFor="let child of parent.children">
16
+ <a (click)="listItemClick(child)">{{child.displaytext}}</a>
17
+ </li>
18
+ </ul>
19
+ </li>
20
+ <li *ngIf="!parent.children || parent.children.length === 0">
21
+ <a (click)="listItemClick(parent)">{{parent.displaytext}}</a>
22
+ </li>
23
+ </div>
24
+ <li>
25
+ <a (click)="onLogOut()">Logout</a>
26
+ </li>
27
+ </ul>
28
+ </li>
29
+ <li class="nav-item">
30
+ <h5 style="padding-top:12px;"> {{tooltext}}</h5>
31
+ </li>
32
+ </ul>
33
+ </nav>
34
+ <div *ngIf="IsPermissionExists==false">User Does't have permission to access any of Excel applications</div>
35
+ <router-outlet></router-outlet>
36
+ </div>
37
+ <div class="navigateMsg" *ngIf="navigateMsg">
38
+ {{navigateMsg}}
39
+ </div>
40
+ <section class="loade" *ngIf="isLoading">
41
+ <mat-spinner color="black" [diameter]=60 ></mat-spinner>
42
+ <span>
43
+ Loading...
44
+ </span>
45
+ </section>
46
+