| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | /** |
| 19 | * @file Users module. |
| 20 | */ |
| 21 | import { CommonModule } from '@angular/common'; |
| 22 | import { HttpClientModule } from '@angular/common/http'; |
| 23 | import { NgModule } from '@angular/core'; |
| 24 | import { FlexLayoutModule } from '@angular/flex-layout'; |
| 25 | import { FormsModule } from '@angular/forms'; |
| 26 | import { ReactiveFormsModule } from '@angular/forms'; |
| 27 | import { RouterModule, Routes } from '@angular/router'; |
| 28 | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; |
| 29 | import { NgSelectModule } from '@ng-select/ng-select'; |
| 30 | import { TranslateModule } from '@ngx-translate/core'; |
| SANDHYA.JS | a981655 | 2022-04-12 09:07:08 +0530 | [diff] [blame^] | 31 | import { ChangePasswordModule } from 'ChangePasswordModule'; |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 32 | import { DataService } from 'DataService'; |
| 33 | import { LoaderModule } from 'LoaderModule'; |
| 34 | import { Ng2SmartTableModule } from 'ng2-smart-table'; |
| 35 | import { PagePerRowModule } from 'PagePerRowModule'; |
| 36 | import { PageReloadModule } from 'PageReloadModule'; |
| 37 | import { ProjectRoleComponent } from 'ProjectRoleComponent'; |
| 38 | import { UserDetailsComponent } from 'UserDetailsComponent'; |
| 39 | import { UsersComponent } from 'UsersComponent'; |
| 40 | |
| 41 | /** const values for dashboard Routes */ |
| 42 | const routes: Routes = [ |
| 43 | { |
| 44 | path: '', |
| 45 | component: UsersComponent, |
| 46 | children: [ |
| 47 | { |
| 48 | path: 'details', |
| 49 | data: { |
| 50 | breadcrumb: [{ title: 'PAGE.DASHBOARD.DASHBOARD', url: '/' }, { title: 'PAGE.DASHBOARD.USERS', url: null }] |
| 51 | }, |
| 52 | component: UserDetailsComponent |
| 53 | } |
| 54 | ] |
| 55 | } |
| 56 | ]; |
| 57 | |
| 58 | /** |
| 59 | * Creating @NgModule component for Modules |
| 60 | */ |
| 61 | @NgModule({ |
| 62 | imports: [ReactiveFormsModule, FormsModule, CommonModule, HttpClientModule, Ng2SmartTableModule, TranslateModule, |
| SANDHYA.JS | a981655 | 2022-04-12 09:07:08 +0530 | [diff] [blame^] | 63 | FlexLayoutModule, NgSelectModule, NgbModule, RouterModule.forChild(routes), PagePerRowModule, LoaderModule, |
| 64 | PageReloadModule, ChangePasswordModule], |
| 65 | declarations: [UsersComponent, UserDetailsComponent, ProjectRoleComponent], |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 66 | providers: [DataService], |
| SANDHYA.JS | a981655 | 2022-04-12 09:07:08 +0530 | [diff] [blame^] | 67 | entryComponents: [ProjectRoleComponent] |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 68 | }) |
| 69 | /** Exporting a class @exports UsersModule */ |
| 70 | export class UsersModule { |
| 71 | /** |
| 72 | * Lifecyle Hooks the trigger before component is instantiate |
| 73 | */ |
| 74 | public ngOnInit(): void { |
| 75 | // Empty Block |
| 76 | } |
| 77 | } |