import { DigiNgDialogModule } from '@af/digi-ng/_dialog/dialog';
import { DigiNgFormDatepickerModule } from '@af/digi-ng/_form/form-datepicker';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
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 { UiInputModule } from '@ui/input/input.module';
import { UiLinkButtonModule } from '@ui/link-button/link-button.module';
import { UiRadiobuttonGroupModule } from '@ui/radiobutton-group/radiobutton-group.module';
import { UiSelectModule } from '@ui/select/select.module';
import { UiSkeletonModule } from '@ui/skeleton/skeleton.module';
import { UiValidationMessageModule } from '@ui/validation-message/validation-message.module';
import { ReportDescriptionListModule } from '../../../components/report-description-list/report-description-list.module';
import { ReportLayoutModule } from '../../../components/report-layout/report-layout.module';
import { SignalFormComponent } from './signal-form.component';
import { SignalFormService } from './signal-form.service';
import { UiLoaderModule } from '@ui/loader/loader.module';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [SignalFormComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: SignalFormComponent }]),
    LayoutModule,
    ReactiveFormsModule,
    ReportLayoutModule,
    ConfirmDialogModule,
    UiBackLinkModule,
    UiRadiobuttonGroupModule,
    DigiNgFormDatepickerModule,
    UiSkeletonModule,
    UiSelectModule,
    UiLoaderModule,
    DigiNgDialogModule,
    ReportDescriptionListModule,
    UiInputModule,
    UiValidationMessageModule,
    UiLinkButtonModule,
  ],
  providers: [SignalFormService],
  exports: [SignalFormComponent],
})
export class SignalFormModule {}
