all files / component/sidenav/ index.ts

100% Statements 23/23
100% Branches 0/0
100% Functions 3/3
100% Lines 21/21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62                                                                                 
/*
 *  @license
 *  Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.
 *
 *  Use of this source code is governed by an Apache-2.0 license that can be
 *  found in the LICENSE file at https://github.com/DSI-HUG/dejajs-components/blob/master/LICENSE
 */
 
import { CommonModule } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { MatButtonModule, MatIconModule, MatSidenavModule, MatToolbarModule } from '@angular/material';
import { MediaModule } from '../../common/core/media/index';
import { DejaSlimScrollModule } from './../../common/core/slimscroll/index';
import { DejaSidenavContentDirective } from './sidenav-content.directive';
import { DejaSidenavHeaderDirective } from './sidenav-header.directive';
import { DejaSidenavMenuDirective } from './sidenav-menu.directive';
import { DejaSidenavMenuSeparatorDirective } from './sidenav-separator.directive';
import { DejaSidenavComponent } from './sidenav.component';
import { DejaSidenavService } from './sidenav.service';
 
@NgModule({
    declarations: [
        DejaSidenavComponent,
        DejaSidenavMenuDirective,
        DejaSidenavContentDirective,
        DejaSidenavMenuSeparatorDirective,
        DejaSidenavHeaderDirective,
    ],
    exports: [
        DejaSidenavComponent,
        DejaSidenavMenuDirective,
        DejaSidenavContentDirective,
        DejaSidenavMenuSeparatorDirective,
        DejaSidenavHeaderDirective,
    ],
    imports: [
        CommonModule,
        MatSidenavModule,
        MatToolbarModule,
        MatButtonModule,
        MatIconModule,
        MediaModule,
        DejaSlimScrollModule,
    ],
})
export class DejaSidenavModule {
    public static forRoot(): ModuleWithProviders {
        return {
            ngModule: DejaSidenavModule,
            providers: [DejaSidenavService]
        };
    }
}
 
export * from './sidenav.component';
export * from './sidenav-menu.directive';
export * from './sidenav-content.directive';
export * from './sidenav-separator.directive';
export * from './sidenav-header.directive';
export * from './sidenav.service';