blob: d3e76b40f72f8ad085d9edf564818dfc7da48961 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
********************************************************************************/
import { SafetyQueryDialogComponent } from '@shared/components/dialogs/safety-query-dialog/safety-query-dialog.component';
import { BoolCellRendererComponent } from '@shared/components/cell-renderer/bool-cell-renderer/bool-cell-renderer.component';
import { IconCellRendererComponent } from '@shared/components/cell-renderer/icon-cell-renderer/icon-cell-renderer.component';
import { PaginationComponent } from '@app/shared/components/pagination/pagination.component';
import { LoadingSpinnerComponent } from '@shared/components/loading-spinner/loading-spinner.component';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { CommonModule, DatePipe } from '@angular/common';
import { PipesModule } from '@shared/pipes';
import { TranslateModule } from '@ngx-translate/core';
import { SpinnerComponent } from '@shared/components/spinner/spinner.component';
import { HeaderComponent } from '@shared/components/header/header.component';
import { PageNotFoundComponent } from '@app/shared/components/page-not-found/pageNotFound.component';
import { LoadingPlaceholderComponent } from '@shared/components/loading-placeholder/loading-placeholder.component';
import { VersionInfo } from '@shared/components/version-info/version-info.component';
import { ExpandableComponent } from '@shared/components/expandable/expandable.component';
import { AgGridModule } from 'ag-grid-angular';
import { NgrxFormsModule } from 'ngrx-forms';
import { DirectivesModule } from '@shared/directives/index';
import { NgbDatepickerModule, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
import { NgbDateCustomParserFormatter } from '@shared/pipes/ngb-date-custom-parser-formatter';
import { DateCellRendererComponent } from '@shared/components/cell-renderer/date-cell-renderer/date-cell-renderer.component';
export const COMPONENTS = [
SpinnerComponent,
HeaderComponent,
PageNotFoundComponent,
LoadingPlaceholderComponent,
VersionInfo,
LoadingSpinnerComponent,
PaginationComponent,
IconCellRendererComponent,
SafetyQueryDialogComponent,
ExpandableComponent,
SafetyQueryDialogComponent,
BoolCellRendererComponent,
DateCellRendererComponent,
];
@NgModule({
imports: [
CommonModule,
TranslateModule,
DirectivesModule,
ReactiveFormsModule,
RouterModule,
NgrxFormsModule,
FormsModule,
NgbDatepickerModule,
AgGridModule.withComponents([]),
PipesModule,
],
declarations: COMPONENTS,
exports: COMPONENTS,
entryComponents: [PaginationComponent, IconCellRendererComponent, SafetyQueryDialogComponent, BoolCellRendererComponent, DateCellRendererComponent],
providers: [DatePipe, { provide: NgbDateParserFormatter, useClass: NgbDateCustomParserFormatter }],
})
export class ComponentsModule {}