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 { DigiNgFormRadiobuttonGroupModule } from '@af/digi-ng/_form/form-radiobutton-group';
import { DigiNgProgressProgressbarModule } from '@af/digi-ng/_progress/progressbar';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { PreventDoubleSubmitModule } from '@msfa-directives/prevent-double-submit.module';
import { ConfirmDialogModule } from '@msfa-shared/components/confirm-dialog/confirm-dialog.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { UiBackLinkModule } from '@ui/back-link/back-link.module';
import { UiLinkButtonModule } from '@ui/link-button/link-button.module';
import { UiLoaderModule } from '@ui/loader/loader.module';
import { UiSelectModule } from '@ui/select/select.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 { AvvikelseReportFormComponent } from './avvikelse-report-form.component';
import { AvvikelseReportFormService } from './avvikelse-report-form.service';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [AvvikelseReportFormComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: AvvikelseReportFormComponent }]),
    LayoutModule,
    ReactiveFormsModule,
    DigiNgFormRadiobuttonGroupModule,
    DigiNgFormDatepickerModule,
    DigiNgProgressProgressbarModule,
    ReportLayoutModule,
    ConfirmDialogModule,
    UiBackLinkModule,
    UiSkeletonModule,
    UiLoaderModule,
    UiSelectModule,
    ReportDescriptionListModule,
    DigiNgFormInputModule,
    DigiNgDialogModule,
    UiTextareaModule,
    UiLinkButtonModule,
    PreventDoubleSubmitModule,
  ],
  providers: [AvvikelseReportFormService],
  exports: [AvvikelseReportFormComponent],
})
export class AvvikelseReportFormModule {}
