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

60 lines
1.8 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-12-02 09:46:07 +00:00
import { ReactiveFormsModule } from '@angular/forms';
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-11-29 09:24:51 +00:00
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
2019-12-02 09:46:07 +00:00
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
2019-09-18 06:02:21 +00:00
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,
2019-12-02 09:46:07 +00:00
ReactiveFormsModule,
2019-10-02 08:12:51 +00:00
FlexLayoutModule,
MatButtonModule,
2019-12-02 09:46:07 +00:00
MatFormFieldModule,
2019-10-02 08:12:51 +00:00
MatIconModule,
2019-12-02 09:46:07 +00:00
MatInputModule,
2019-10-02 08:12:51 +00:00
MatRippleModule,
2019-10-17 07:57:37 +00:00
MatCheckboxModule,
2019-11-08 04:35:39 +00:00
MatCardModule,
MatTooltipModule,
2019-11-29 09:24:51 +00:00
MatProgressSpinnerModule,
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]
};
}
}