next-ucap-messenger/projects/ucap-webmessenger-ui-organization/src/lib/ucap-ui-organization.module.ts

57 lines
1.5 KiB
TypeScript
Raw Normal View History

2019-09-18 06:02:21 +00:00
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FlexLayoutModule } from '@angular/flex-layout';
2019-11-07 08:33:03 +00:00
import { ScrollingModule } from '@angular/cdk/scrolling';
2019-11-18 09:35:27 +00:00
import { MatRippleModule } from '@angular/material';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
2019-10-07 07:29:38 +00:00
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatTreeModule } from '@angular/material/tree';
2019-11-19 02:30:43 +00:00
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
import { UCapUiModule } from '@ucap-webmessenger/ui';
2019-10-07 07:29:38 +00:00
import { TenantSearchComponent } from './components/tenant-search.component';
2019-10-04 04:45:02 +00:00
import { TreeComponent } from './components/tree.component';
2019-10-07 07:29:38 +00:00
const COMPONENTS = [TenantSearchComponent, TreeComponent];
2019-09-18 06:02:21 +00:00
const SERVICES = [];
@NgModule({
imports: [
CommonModule,
ReactiveFormsModule,
2019-11-07 08:33:03 +00:00
FlexLayoutModule,
2019-11-07 08:33:03 +00:00
ScrollingModule,
2019-11-18 09:35:27 +00:00
MatRippleModule,
MatButtonModule,
MatIconModule,
2019-10-07 07:29:38 +00:00
MatInputModule,
MatSelectModule,
2019-11-19 02:30:43 +00:00
MatTreeModule,
PerfectScrollbarModule,
UCapUiModule
],
2019-09-18 06:02:21 +00:00
exports: [...COMPONENTS],
declarations: [...COMPONENTS]
})
export class UCapUiOrganizationModule {
public static forRoot(): ModuleWithProviders<UCapUiOrganizationModule> {
return {
ngModule: UCapUiOrganizationModule,
providers: [...SERVICES]
};
}
}