all files / component/mouse-dragdrop/ index.ts

100% Statements 16/16
100% Branches 0/0
100% Functions 3/3
100% Lines 14/14
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                                                               
/*
 *  @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 { ModuleWithProviders, NgModule } from '@angular/core';
import { MatIconModule } from '@angular/material';
import { DejaMouseDragDropCursorComponent } from './mouse-dragdrop-cursor.component';
import { DejaMouseDragDropService } from './mouse-dragdrop.service';
import { DejaMouseDraggableDirective } from './mouse-draggable.directive';
import { DejaMouseDroppableDirective } from './mouse-droppable.directive';
 
@NgModule({
    declarations: [
        DejaMouseDraggableDirective,
        DejaMouseDroppableDirective,
        DejaMouseDragDropCursorComponent
    ],
    imports: [
        MatIconModule,
    ],
    exports: [
        DejaMouseDraggableDirective,
        DejaMouseDroppableDirective,
        DejaMouseDragDropCursorComponent
    ],
    providers: [],
})
export class DejaMouseDragDropModule {
    public static forRoot(): ModuleWithProviders {
        return {
            ngModule: DejaMouseDragDropModule,
            providers: [DejaMouseDragDropService],
        };
    }
}
 
export * from './mouse-dragdrop.service';
export * from './mouse-draggable.directive';
export * from './mouse-droppable.directive';
export * from './mouse-dragdrop-cursor.component';