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

64 lines
1.8 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';
2020-02-18 01:54:35 +00:00
import { MatRippleModule } from '@angular/material/core';
2019-11-18 09:35:27 +00:00
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';
2020-02-04 02:27:48 +00:00
import { VirtualScrollerModule } from 'ngx-virtual-scroller';
2019-12-24 09:14:16 +00:00
import { TranslateModule } from '@ngx-translate/core';
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';
2020-02-04 02:27:48 +00:00
import { OrganizationService } from './services/organization.service';
2019-10-07 07:29:38 +00:00
const COMPONENTS = [TenantSearchComponent, TreeComponent];
2020-02-04 02:27:48 +00:00
const SERVICES = [OrganizationService];
const DIRECTIVES = [];
2019-09-18 06:02:21 +00:00
@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,
2019-12-24 09:14:16 +00:00
TranslateModule,
PerfectScrollbarModule,
2020-02-04 02:27:48 +00:00
VirtualScrollerModule,
UCapUiModule
],
2020-02-04 02:27:48 +00:00
exports: [...COMPONENTS, ...DIRECTIVES],
declarations: [...COMPONENTS, ...DIRECTIVES]
2019-09-18 06:02:21 +00:00
})
export class UCapUiOrganizationModule {
public static forRoot(): ModuleWithProviders<UCapUiOrganizationModule> {
return {
ngModule: UCapUiOrganizationModule,
providers: [...SERVICES]
};
}
}