/**
 * @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'
import { Include }                  from './inc.block'

// Router

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

// Components
import { BlockTextComponent }                   from '@k-core/modules/block/components/text/cmp.text'
import { BannerImageComponent }                 from '@k-core/modules/block/components/banner-image/cmp.banner-image'
import { BlockSliderComponent }                 from '@k-core/modules/block/components/slider/cmp.slider'
import { BlockTeaserComponent }                 from '@k-core/modules/block/components/teaser/cmp.teaser'
import { BlockImageGridComponent }              from '@k-core/modules/block/components/image-grid/cmp.image-grid'
import { BlockDefaultComponent }                from '@k-core/modules/block/components/default/cmp.default'
import { BlockMultiImagesComponent }            from '@k-core/modules/block/components/multi-images/cmp.multi-images'

// Components sites
import { BlockImageTextandButtonKidComponent }  from './components/image-text-and-button/cmp.image-text-and-button.kid'



// Views
import { BlockView }                from '@k-core/modules/block/template/view.block'

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



@NgModule({
    imports: [ 
        SharedModule,

        ...Include.imports
    ],
    exports: [
        BlockView,

        ...Include.exports
    ],
    declarations: [
        // Components
        BlockTextComponent,
        BannerImageComponent,
        BlockSliderComponent,
        BlockTeaserComponent,
        BlockImageGridComponent,
        BlockImageTextandButtonKidComponent,
        BlockMultiImagesComponent,
        BlockDefaultComponent,
        BlockMultiImagesComponent,


        // Views
        BlockView,

        ...Include.declarations
    ],
    providers: [
        BlockService,
        
        ...Include.providers
    ]
})

export class BlockModule {}
