2019-09-18 15:02:21 +09:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
2019-11-15 10:13:18 +09:00
|
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
|
|
2019-11-07 17:33:03 +09:00
|
|
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
|
|
|
2019-11-18 18:35:27 +09:00
|
|
|
import { MatRippleModule } from '@angular/material';
|
|
|
|
|
2019-10-04 16:14:14 +09:00
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
import { MatIconModule } from '@angular/material/icon';
|
2019-10-07 16:29:38 +09:00
|
|
|
import { MatInputModule } from '@angular/material/input';
|
|
|
|
import { MatSelectModule } from '@angular/material/select';
|
2019-10-04 16:14:14 +09:00
|
|
|
import { MatTreeModule } from '@angular/material/tree';
|
2019-09-24 09:03:36 +09:00
|
|
|
|
2019-11-19 11:30:43 +09:00
|
|
|
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
2020-02-04 11:27:48 +09:00
|
|
|
import { VirtualScrollerModule } from 'ngx-virtual-scroller';
|
|
|
|
|
2019-12-24 18:14:16 +09:00
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
2019-12-17 15:13:25 +09:00
|
|
|
import { UCapUiModule } from '@ucap-webmessenger/ui';
|
|
|
|
|
2019-10-07 16:29:38 +09:00
|
|
|
import { TenantSearchComponent } from './components/tenant-search.component';
|
2019-10-04 13:45:02 +09:00
|
|
|
import { TreeComponent } from './components/tree.component';
|
2020-02-04 11:27:48 +09:00
|
|
|
import { OrganizationService } from './services/organization.service';
|
2019-09-24 09:03:36 +09:00
|
|
|
|
2019-10-07 16:29:38 +09:00
|
|
|
const COMPONENTS = [TenantSearchComponent, TreeComponent];
|
2020-02-04 11:27:48 +09:00
|
|
|
const SERVICES = [OrganizationService];
|
|
|
|
const DIRECTIVES = [];
|
2019-09-18 15:02:21 +09:00
|
|
|
|
|
|
|
@NgModule({
|
2019-10-04 16:14:14 +09:00
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
ReactiveFormsModule,
|
2019-11-07 17:33:03 +09:00
|
|
|
|
2019-11-15 10:13:18 +09:00
|
|
|
FlexLayoutModule,
|
2019-11-07 17:33:03 +09:00
|
|
|
ScrollingModule,
|
|
|
|
|
2019-11-18 18:35:27 +09:00
|
|
|
MatRippleModule,
|
2019-10-04 16:14:14 +09:00
|
|
|
MatButtonModule,
|
|
|
|
MatIconModule,
|
2019-10-07 16:29:38 +09:00
|
|
|
MatInputModule,
|
|
|
|
MatSelectModule,
|
2019-11-19 11:30:43 +09:00
|
|
|
MatTreeModule,
|
|
|
|
|
2019-12-24 18:14:16 +09:00
|
|
|
TranslateModule,
|
|
|
|
|
2019-12-17 15:13:25 +09:00
|
|
|
PerfectScrollbarModule,
|
2020-02-04 11:27:48 +09:00
|
|
|
VirtualScrollerModule,
|
2019-12-17 15:13:25 +09:00
|
|
|
|
|
|
|
UCapUiModule
|
2019-10-04 16:14:14 +09:00
|
|
|
],
|
2020-02-04 11:27:48 +09:00
|
|
|
exports: [...COMPONENTS, ...DIRECTIVES],
|
|
|
|
declarations: [...COMPONENTS, ...DIRECTIVES]
|
2019-09-18 15:02:21 +09:00
|
|
|
})
|
|
|
|
export class UCapUiOrganizationModule {
|
|
|
|
public static forRoot(): ModuleWithProviders<UCapUiOrganizationModule> {
|
|
|
|
return {
|
|
|
|
ngModule: UCapUiOrganizationModule,
|
|
|
|
providers: [...SERVICES]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|