blob: 8b5f31618e547f43655ead1c8cfad5a6540d4094 [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
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 */
21import { CommonModule } from '@angular/common';
22import { HttpClientModule } from '@angular/common/http';
23import { NgModule } from '@angular/core';
24import { FlexLayoutModule } from '@angular/flex-layout';
25import { FormsModule } from '@angular/forms';
26import { ReactiveFormsModule } from '@angular/forms';
27import { RouterModule, Routes } from '@angular/router';
28import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
29import { NgSelectModule } from '@ng-select/ng-select';
30import { TranslateModule } from '@ngx-translate/core';
SANDHYA.JSa9816552022-04-12 09:07:08 +053031import { ChangePasswordModule } from 'ChangePasswordModule';
kumaran.m3b4814a2020-05-01 19:48:54 +053032import { DataService } from 'DataService';
33import { LoaderModule } from 'LoaderModule';
34import { Ng2SmartTableModule } from 'ng2-smart-table';
35import { PagePerRowModule } from 'PagePerRowModule';
36import { PageReloadModule } from 'PageReloadModule';
37import { ProjectRoleComponent } from 'ProjectRoleComponent';
38import { UserDetailsComponent } from 'UserDetailsComponent';
39import { UsersComponent } from 'UsersComponent';
40
41/** const values for dashboard Routes */
42const 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.JSa9816552022-04-12 09:07:08 +053063 FlexLayoutModule, NgSelectModule, NgbModule, RouterModule.forChild(routes), PagePerRowModule, LoaderModule,
64 PageReloadModule, ChangePasswordModule],
65 declarations: [UsersComponent, UserDetailsComponent, ProjectRoleComponent],
kumaran.m3b4814a2020-05-01 19:48:54 +053066 providers: [DataService],
SANDHYA.JSa9816552022-04-12 09:07:08 +053067 entryComponents: [ProjectRoleComponent]
kumaran.m3b4814a2020-05-01 19:48:54 +053068})
69/** Exporting a class @exports UsersModule */
70export class UsersModule {
71 /**
72 * Lifecyle Hooks the trigger before component is instantiate
73 */
74 public ngOnInit(): void {
75 // Empty Block
76 }
77}