/**
 * @since Mon Feb 05 2018
 * @author Charles Gouldmann - Klean
 * 
 * Description:
 * Block module is used for groups of content. 
 * The content should be unique-ish, meaning that the module should not be used for 
 * content that is repeating across the site eg. a newsletter signup above the
 */


import { NgModule }                 from '@angular/core'

// ---- Router
import { BlockRouting }             from './rte.block'


// ---- Shared Modules
import { SharedModule }                     from '@k-core/modules/shared/mod.shared'


// ---- Components
import { BlockTextComponent }               from './components/text/cmp.text'
import { BannerImageComponent }             from './components/banner-image/cmp.banner-image'
import { BlockSliderComponent }             from './components/slider/cmp.slider'
import { BlockTeaserComponent }             from './components/teaser/cmp.teaser'
import { BlockImageGridComponent }          from './components/image-grid/cmp.image-grid'
import { BlockImageTextandButtonComponent } from './components/image-text-and-button/cmp.image-text-and-button'
import { BlockMultiImagesComponent }        from './components/multi-images/cmp.multi-images'
import { BlockDefaultComponent }            from './components/default/cmp.default'


// ---- Views
import { BlockView }                from './template/view.block'

// ---- Services
import { BlockService }             from './services/svc.block'



@NgModule({
    imports: [ 
        SharedModule,
    ],
    exports: [
        BlockView,
    ],
    declarations: [
        // Components
        BlockTextComponent,
        BannerImageComponent,
        BlockSliderComponent,
        BlockTeaserComponent,
        BlockImageGridComponent,
        BlockMultiImagesComponent,
        BlockImageTextandButtonComponent,
        BlockDefaultComponent,

        // Views
        BlockView,
    ],
    providers: [
        BlockService,
    ]
})

export class BlockModule {}
