import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatNativeDateModule, MAT_DATE_LOCALE } from '@angular/material/core';
import { MatDatepickerModule } from '@angular/material/datepicker';
import { MatDialogModule } from '@angular/material/dialog';
import { MatExpansionModule } from '@angular/material/expansion';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatSelectModule } from '@angular/material/select';
import { RouterModule } from '@angular/router';
import { AutocompleteLibModule } from 'angular-ng-autocomplete';
import { ProjectsComponent } from './projects.component';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { FieldRendererModule } from '../dynamic-form/field-renderer/field-renderer.module';


@NgModule({
  imports: [
    CommonModule,
    MatProgressBarModule,
    RouterModule,
    MatDialogModule,
    AutocompleteLibModule,
    MatExpansionModule,
    MatFormFieldModule,
    MatInputModule,
    FormsModule,
    ReactiveFormsModule,
    MatDatepickerModule,
    MatIconModule,
    MatProgressSpinnerModule,
    MatNativeDateModule,
    MatSelectModule,
    MatAutocompleteModule,
    FieldRendererModule, // ✨ Module field-renderer ajouté
  ],
  declarations: [ProjectsComponent],
  providers: [{ provide: MAT_DATE_LOCALE, useValue: 'fr-FR' }],
  exports: [ProjectsComponent],
})
export class ProjectsComponentModule {}
