Feature 10914: Enforce Password change on First login
[osm/NG-UI.git] / src / app / users / UsersModule.ts
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';
31 import { ChangePasswordModule } from 'ChangePasswordModule';
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,
63         FlexLayoutModule, NgSelectModule, NgbModule, RouterModule.forChild(routes), PagePerRowModule, LoaderModule,
64         PageReloadModule, ChangePasswordModule],
65     declarations: [UsersComponent, UserDetailsComponent, ProjectRoleComponent],
66     providers: [DataService],
67     entryComponents: [ProjectRoleComponent]
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 }