import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatMenuModule } from '@angular/material/menu';
import { Routes, RouterModule } from '@angular/router';
import { NgSelectModule } from '@ng-select/ng-select';
import { CalendarModule } from 'angular-calendar';
import { ButtonModule } from 'primeng/button';
import { DialogModule } from 'primeng/dialog';
import { FileUploadModule } from 'primeng/fileupload';
import { InputTextModule } from 'primeng/inputtext';
import { TableModule } from 'primeng/table';
import { ToastModule } from 'primeng/toast';
import { ToolbarModule } from 'primeng/toolbar';
import { ActivityAddOnAddComponent } from './activity-add-on-add/activity-add-on-add.component';
import { ActivityAddOnEditComponent } from './activity-add-on-edit/activity-add-on-edit.component';
import { ActivityAddOnLanguageComponent } from './activity-add-on-language/activity-add-on-language.component';
import { ActivityAddOnSearchComponent } from './activity-add-on-search/activity-add-on-search.component';

const routes: Routes = [
  {
    path: 'Search',
    component: ActivityAddOnSearchComponent,
  },
  {
    path: 'Add',
    component: ActivityAddOnAddComponent,
  },
   {
    path: 'Language/:RuleId',
    component: ActivityAddOnLanguageComponent,
  },
  {
    path: 'Edit/:RuleId',
    component: ActivityAddOnAddComponent,
  },
]

@NgModule({
  declarations: [
     ActivityAddOnSearchComponent,
     ActivityAddOnAddComponent,
     ActivityAddOnLanguageComponent
   ],
  imports: [
       CommonModule,
        ToastModule,
        TableModule,
        DialogModule,
        FileUploadModule,
        ToolbarModule,
        MatMenuModule,
        CalendarModule,
        NgSelectModule,
        InputTextModule,
        ReactiveFormsModule,
        FormsModule,
        MatButtonModule,
        MatCheckboxModule,
        ButtonModule,
        RouterModule.forChild(routes)
  ]
})
export class ActivityAddOnModule { }
