import { DigiNgButtonModule } from '@af/digi-ng/_button/button';
import { DigiNgDialogModule } from '@af/digi-ng/_dialog/dialog';
import { DigiNgFormCheckboxModule } from '@af/digi-ng/_form/form-checkbox';
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 { DigiNgFormSelectModule } from '@af/digi-ng/_form/form-select';
import { DigiNgPopoverModule } from '@af/digi-ng/_popover/popover';
import { DigiNgLoaderSpinnerModule } from '@af/digi-ng/_loader/loader-spinner';
import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { HideTextModule } from '@msfa-shared/components/hide-text/hide-text.module';
import { LayoutModule } from '@msfa-shared/components/layout/layout.module';
import { RolesDialogModule } from '@msfa-shared/components/roles-dialog/roles-dialog.module';
import { TreeNodesSelectorModule } from '@msfa-shared/components/tree-nodes-selector/tree-nodes-selector.module';
import { LocalDatePipeModule } from '@msfa-shared/pipes/local-date/local-date.module';
import { EmployeeDeleteModule } from '../../components/employee-delete/employee-delete.module';
import { EditEmployeeFormComponent } from './edit-employee-form/edit-employee-form.component';
import { EmployeeFormComponent } from './employee-form.component';
import { DigiNgSkeletonBaseModule } from '@af/digi-ng/_skeleton/skeleton-base';
import { ErrorListModule } from '@msfa-shared/components/error-list/error-list.module';

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  declarations: [EmployeeFormComponent, EditEmployeeFormComponent],
  imports: [
    CommonModule,
    RouterModule.forChild([{ path: '', component: EmployeeFormComponent }]),
    ReactiveFormsModule,
    LocalDatePipeModule,
    DigiNgFormInputModule,
    DigiNgFormRadiobuttonGroupModule,
    DigiNgFormDatepickerModule,
    DigiNgFormSelectModule,
    DigiNgPopoverModule,
    DigiNgFormCheckboxModule,
    DigiNgButtonModule,
    DigiNgLoaderSpinnerModule,
    DigiNgSkeletonBaseModule,
    LayoutModule,
    EmployeeDeleteModule,
    DigiNgDialogModule,
    HideTextModule,
    TreeNodesSelectorModule,
    ErrorListModule,
    RolesDialogModule,
  ],
})
export class EmployeeFormModule {}
