import { NgModule } from '@angular/core';
import { TopMenuComponent } from './top-menu/top-menu.component';
import { SafeHtmlPipe } from './pipes/SafeHtmlPipe';
import { AuthBarComponent } from './auth-bar/auth-bar.component';
import { ClickOutsideModule } from 'ng-click-outside';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { BreadcrumbComponent } from './breadcrumb/breadcrumb.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ProductTableComponent } from './product-table/product-table.component';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { SliderComponent } from './slider/slider.component';
import { SwiperModule, SwiperConfigInterface, SWIPER_CONFIG } from 'ngx-swiper-wrapper';
import { ActionPanelComponent } from './action-panel/action-panel.component';
import { TruncateTextPipe } from './pipes/truncate-text.pipe';
import { LoginDropdownComponent } from './login-dropdown/login-dropdown.component';
import { TopMenuSearchComponent } from './top-menu-search/top-menu-search.component';
import { SiteSearchSharedModule } from '../sitesearch/shared/shared.module';
const DEFAULT_SWIPER_CONFIG: SwiperConfigInterface = {
observer: true,
direction: 'horizontal',
threshold: 50,
spaceBetween: 5,
slidesPerView: 1,
centeredSlides: true
};
@NgModule({
imports: [
ClickOutsideModule,
NgbModule,
FormsModule,
ReactiveFormsModule,
CommonModule,
RouterModule,
SwiperModule,
SiteSearchSharedModule
],
declarations: [
TopMenuComponent,
SafeHtmlPipe,
TruncateTextPipe,
AuthBarComponent,
BreadcrumbComponent,
ProductTableComponent,
SliderComponent,
ActionPanelComponent,
LoginDropdownComponent,
TopMenuSearchComponent
],
exports: [
TopMenuComponent,
SafeHtmlPipe,
TruncateTextPipe,
AuthBarComponent,
NgbModule,
BreadcrumbComponent,
ProductTableComponent,
SliderComponent,
ActionPanelComponent
],
providers: [
{
provide: SWIPER_CONFIG,
useValue: DEFAULT_SWIPER_CONFIG
}
]
})
export class SharedModule { }