import { DigiNgDialogModule } from '@af/digi-ng/_dialog/dialog';
import { DigiNgFormDatepickerModule } from '@af/digi-ng/_form/form-datepicker';
import { DigiNgFormInputModule } from '@af/digi-ng/_form/form-input';
import { DigiNgFormSelectModule } from '@af/digi-ng/_form/form-select';
import { DigiNgFormValidationMessageModule } from '@af/digi-ng/_form/form-validation-message';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { BackLinkModule } from '@msfa-shared/components/back-link/back-link.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiLoaderModule } from '@ui/loader/loader.module';
import { UiRadiobuttonGroupModule } from '@ui/radiobutton-group/radiobutton-group.module';
import { UiSkeletonModule } from '@ui/skeleton/skeleton.module';
import { UiTextareaModule } from '@ui/textarea/textarea.module';
import { ReportDescriptionListModule } from '../../../components/report-description-list/report-description-list.module';
import { ReportLayoutModule } from '../../../components/report-layout/report-layout.module';
import { FranvaroReportFormComponent } from './franvaro-report-form.component';
import { FranvaroReportFormService } from './franvaro-report-form.service';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [FranvaroReportFormComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: FranvaroReportFormComponent }]),
    ReactiveFormsModule,
    LayoutModule,
    ReportLayoutModule,
    UiLoaderModule,
    BackLinkModule,
    ReportDescriptionListModule,
    DigiNgFormSelectModule,
    DigiNgFormDatepickerModule,
    UiSkeletonModule,
    DigiNgFormInputModule,
    DigiNgFormValidationMessageModule,
    DigiNgDialogModule,
    UiTextareaModule,
    UiRadiobuttonGroupModule,
  ],
  providers: [FranvaroReportFormService],
  exports: [FranvaroReportFormComponent],
})
export class FranvaroReportFormModule {}
