import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';

import { BaseViewModule } from "../base-view/base-view.module";
import { ContractDraftsRoutingModule } from './contract-drafts-routing.module';
import { DraftsCardComponent, DraftsListComponent, DraftsNewComponent, DraftsNewFormComponent } from "./drafts.component";
import { FormlyModule } from "@ngx-formly/core";
import { FormlyBootstrapModule } from "@ngx-formly/bootstrap";
import { ForeignkeyTypeComponent } from "@common/crud/types/foreignkey.type";
import { CrudService, ImageUploaderCrudService } from "@common/crud/crud.service";

import { NgbAccordionModule, NgbCollapseModule } from "@ng-bootstrap/ng-bootstrap";
import { allIcons, NgxBootstrapIconsModule } from "ngx-bootstrap-icons";
import { ClipboardModule } from "@angular/cdk/clipboard";


@NgModule({
  imports: [
    CommonModule,
    BaseViewModule,
    ContractDraftsRoutingModule,
    NgbAccordionModule,
    NgbCollapseModule,
    NgxBootstrapIconsModule.pick(allIcons),
    FormlyModule.forRoot({
      types: [
        { name: 'foreign-key', component: ForeignkeyTypeComponent }
      ]
    }),
    FormlyBootstrapModule,
    ClipboardModule,
  ],
  declarations: [
    DraftsListComponent,
    DraftsNewComponent,
    DraftsCardComponent,
    DraftsNewFormComponent
  ],
  providers: [CrudService, ImageUploaderCrudService]
})
export class ContractDraftsModule {
}
