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

52 lines
1.4 KiB
TypeScript
Raw Normal View History

2019-11-08 04:35:39 +00:00
import { MatTooltipModule } from '@angular/material/tooltip';
import { MatCardModule } from '@angular/material/card';
2019-09-18 06:02:21 +00:00
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
2019-10-02 05:34:17 +00:00
import { FlexLayoutModule } from '@angular/flex-layout';
2019-10-17 07:57:37 +00:00
import { MatRippleModule, MatCheckboxModule } from '@angular/material';
2019-09-18 06:02:21 +00:00
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
2019-10-17 07:57:37 +00:00
import { UCapUiModule } from '@ucap-webmessenger/ui';
2019-09-18 06:02:21 +00:00
import { ListItemComponent } from './components/list-item.component';
2019-10-02 08:12:51 +00:00
import { UserListItemComponent } from './components/user-list-item.component';
2019-11-08 04:35:39 +00:00
import { ProfileComponent } from './components/profile.component';
import { MyProfileWidgetComponent } from './components/my-profile-widget.component';
const COMPONENTS = [
ListItemComponent,
UserListItemComponent,
ProfileComponent,
MyProfileWidgetComponent
];
2019-09-18 06:02:21 +00:00
const SERVICES = [];
@NgModule({
2019-10-02 08:12:51 +00:00
imports: [
CommonModule,
FlexLayoutModule,
MatButtonModule,
MatIconModule,
MatRippleModule,
2019-10-17 07:57:37 +00:00
MatCheckboxModule,
2019-11-08 04:35:39 +00:00
MatCardModule,
MatTooltipModule,
2019-10-17 07:57:37 +00:00
UCapUiModule
2019-10-02 08:12:51 +00:00
],
2019-09-18 06:02:21 +00:00
exports: [...COMPONENTS],
declarations: [...COMPONENTS]
})
2019-10-07 07:29:38 +00:00
export class UCapUiProfileModule {
public static forRoot(): ModuleWithProviders<UCapUiProfileModule> {
2019-09-18 06:02:21 +00:00
return {
2019-10-07 07:29:38 +00:00
ngModule: UCapUiProfileModule,
2019-09-18 06:02:21 +00:00
providers: [...SERVICES]
};
}
}