2018-05-25 13:49:00 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {CommonModule} from '@angular/common';
|
2019-06-12 11:55:10 +00:00
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
|
|
import { MatCardModule } from '@angular/material/card';
|
|
|
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
|
|
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
|
|
|
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
|
|
import { MatInputModule } from '@angular/material/input';
|
|
|
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
|
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
|
|
import { MatSortModule } from '@angular/material/sort';
|
|
|
|
import { MatTableModule } from '@angular/material/table';
|
2018-05-25 13:49:00 +00:00
|
|
|
import {SharedModule} from '../shared/shared.module';
|
|
|
|
import {CdkTableModule} from '@angular/cdk/table';
|
|
|
|
import {CashFlowRoutingModule} from './cash-flow-routing.module';
|
|
|
|
import {CashFlowComponent} from './cash-flow.component';
|
|
|
|
import {MomentDateAdapter} from '@angular/material-moment-adapter';
|
2018-11-26 03:16:03 +00:00
|
|
|
import {FlexLayoutModule} from '@angular/flex-layout';
|
2018-05-25 13:49:00 +00:00
|
|
|
import {ReactiveFormsModule} from '@angular/forms';
|
|
|
|
|
|
|
|
export const MY_FORMATS = {
|
|
|
|
parse: {
|
|
|
|
dateInput: 'DD-MMM-YYYY',
|
|
|
|
},
|
|
|
|
display: {
|
|
|
|
dateInput: 'DD-MMM-YYYY',
|
|
|
|
monthYearLabel: 'MMM YYYY',
|
|
|
|
dateA11yLabel: 'DD-MMM-YYYY',
|
|
|
|
monthYearA11yLabel: 'MMM YYYY',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
CdkTableModule,
|
|
|
|
FlexLayoutModule,
|
|
|
|
MatButtonModule,
|
|
|
|
MatCardModule,
|
|
|
|
MatCheckboxModule,
|
|
|
|
MatDatepickerModule,
|
|
|
|
MatIconModule,
|
|
|
|
MatInputModule,
|
|
|
|
MatNativeDateModule,
|
|
|
|
MatPaginatorModule,
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
MatSortModule,
|
|
|
|
MatTableModule,
|
|
|
|
ReactiveFormsModule,
|
|
|
|
SharedModule,
|
|
|
|
CashFlowRoutingModule
|
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
CashFlowComponent
|
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
|
|
|
|
{provide: MAT_DATE_FORMATS, useValue: MY_FORMATS},
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class CashFlowModule {
|
|
|
|
}
|