2019-09-18 06:02:21 +00:00
|
|
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
2019-11-15 01:13:18 +00:00
|
|
|
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
|
|
|
|
2019-10-04 07:14:14 +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';
|
2019-10-04 07:14:14 +00:00
|
|
|
import { MatTreeModule } from '@angular/material/tree';
|
2019-09-24 00:03:36 +00:00
|
|
|
|
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';
|
2019-12-17 06:13:25 +00:00
|
|
|
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-09-24 00:03:36 +00:00
|
|
|
|
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({
|
2019-10-04 07:14:14 +00:00
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
ReactiveFormsModule,
|
2019-11-07 08:33:03 +00:00
|
|
|
|
2019-11-15 01:13:18 +00:00
|
|
|
FlexLayoutModule,
|
2019-11-07 08:33:03 +00:00
|
|
|
ScrollingModule,
|
|
|
|
|
2019-11-18 09:35:27 +00:00
|
|
|
MatRippleModule,
|
2019-10-04 07:14:14 +00:00
|
|
|
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,
|
|
|
|
|
2019-12-17 06:13:25 +00:00
|
|
|
PerfectScrollbarModule,
|
2020-02-04 02:27:48 +00:00
|
|
|
VirtualScrollerModule,
|
2019-12-17 06:13:25 +00:00
|
|
|
|
|
|
|
UCapUiModule
|
2019-10-04 07:14:14 +00:00
|
|
|
],
|
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]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|