argos/dmp-frontend/src/app/core/formatting.module.ts

60 lines
1.6 KiB
TypeScript
Raw Normal View History

2019-01-18 18:03:45 +01:00
import { DatePipe } from '@angular/common';
import { NgModule } from '@angular/core';
2019-02-15 11:27:47 +01:00
import { DateFormatPipe } from './pipes/date-format.pipe';
import { DateTimeFormatPipe } from './pipes/date-time-format.pipe';
2019-01-18 18:03:45 +01:00
import { NgForLimitPipe } from './pipes/ng-for-limit.pipe';
import { SumarizeTextPipe } from './pipes/sumarize-text.pipe';
import { TimezoneInfoDisplayPipe } from './pipes/timezone-info-display.pipe';
2019-01-18 18:03:45 +01:00
import { EnumUtils } from './services/utilities/enum-utils.service';
import { JsonParserPipe } from './pipes/json-parser.pipe';
2020-11-09 16:14:10 +01:00
import { DateTimeCultureFormatPipe } from './pipes/date-time-culture-format.pipe';
import {FieldValuePipe} from "@app/core/pipes/field-value.pipe";
import {ColumnClassPipe} from "@app/core/pipes/column-class.pipe";
import { PipeService } from '@common/formatting/pipe.service';
2019-01-18 18:03:45 +01:00
//
//
// This is shared module that provides all formatting utils. Its imported only once on the AppModule.
//
//
@NgModule({
declarations: [
NgForLimitPipe,
SumarizeTextPipe,
2019-02-15 11:27:47 +01:00
TimezoneInfoDisplayPipe,
DateFormatPipe,
DateTimeFormatPipe,
2020-11-09 16:14:10 +01:00
DateTimeCultureFormatPipe,
JsonParserPipe,
FieldValuePipe,
ColumnClassPipe,
2019-01-18 18:03:45 +01:00
],
exports: [
NgForLimitPipe,
SumarizeTextPipe,
2019-02-15 11:27:47 +01:00
TimezoneInfoDisplayPipe,
DateFormatPipe,
DateTimeFormatPipe,
2020-11-09 16:14:10 +01:00
DateTimeCultureFormatPipe,
JsonParserPipe,
FieldValuePipe,
ColumnClassPipe,
2019-01-18 18:03:45 +01:00
],
providers: [
EnumUtils,
DatePipe,
PipeService,
NgForLimitPipe,
SumarizeTextPipe,
2019-02-15 11:27:47 +01:00
TimezoneInfoDisplayPipe,
DateFormatPipe,
DateTimeFormatPipe,
2020-11-09 16:14:10 +01:00
DateTimeCultureFormatPipe,
JsonParserPipe,
FieldValuePipe,
ColumnClassPipe,
2019-01-18 18:03:45 +01:00
]
})
export class FormattingModule { }