import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ClarityModule } from '@clr/angular';

import { BaseFieldComponent } from './base-field.component';
import { TextFieldComponent } from './text-field.component';
import { NumberFieldComponent } from './number-field.component';
import { PhoneFieldComponent } from './phone-field.component';
import { ParagraphFieldComponent } from './paragraph-field.component';
import { PasswordFieldComponent } from './password-field.component';
import { TextareaFieldComponent } from './textarea-field.component';
import { DynamicFormComponent } from '../dynamic-form/dynamic-form.component';

@NgModule({
  declarations: [
    BaseFieldComponent,
    TextFieldComponent,
    NumberFieldComponent,
    PhoneFieldComponent,
    ParagraphFieldComponent,
    PasswordFieldComponent,
    TextareaFieldComponent,
    DynamicFormComponent
  ],
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    ClarityModule
  ],
  exports: [
    BaseFieldComponent,
    TextFieldComponent,
    NumberFieldComponent,
    PhoneFieldComponent,
    ParagraphFieldComponent,
    PasswordFieldComponent,
    TextareaFieldComponent,
    DynamicFormComponent
  ],
  providers: []
})
export class FieldTypesModule { }