import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AllocationAddComponent } from './allocation-add/allocation-add.component';
import { RouterModule, Routes } from '@angular/router';
import { AllocationSearchComponent } from './allocation-search/allocation-search.component';
import { MatMenuModule } from '@angular/material/menu';
import { NgSelectModule } from '@ng-select/ng-select';

import { ButtonModule } from 'primeng/button';
import { InputTextModule } from 'primeng/inputtext';
import { PaginatorModule } from 'primeng/paginator';
import { TableModule } from 'primeng/table';
import { ToolbarModule } from 'primeng/toolbar';
import { CalendarModule } from 'primeng/calendar';
import { AllocationEditComponent } from './allocation-edit/allocation-edit.component';

const routes: Routes = [
  {
    path: 'Add',
    component: AllocationAddComponent,
  },
  {
    path: 'Search',
    component: AllocationSearchComponent,
  },
  {
    path: 'Edit',
    component: AllocationEditComponent,
  },
]

@NgModule({
  declarations: [
    AllocationAddComponent,
    AllocationSearchComponent,
    AllocationEditComponent
  ],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    TableModule,
    ToolbarModule,
    MatMenuModule,
    PaginatorModule,
    CalendarModule,
    NgSelectModule,
    InputTextModule,
    ButtonModule,
  ]
})
export class AllocationModule { }
