UNPKG

@ctodev/cclibrary-typings

Version:

Library typings for use with CLARC INFINITY

30 lines (29 loc) 1.03 kB
import { PipeTransform } from '@angular/core'; import { TccInputTypePipe } from '../tcc-input-type/tcc-input-type.pipe'; import { TccClarcDate } from '../../../odata/models/shared.model'; import { LocaleService } from '../../../core/services/tcc-locale/tcc-locale.service'; export declare enum TccClarcDateFormat { auto_short = 0, date_short = 1, iso = 2, auto_long = 3, date_long = 4, time_medium = 5, time_short = 6, time_long = 7 } export declare class TccClarcDatePipe implements PipeTransform { private inputtype; private localeService; constructor(inputtype: TccInputTypePipe, localeService: LocaleService); /** * * @param value date value (in utc) * @param format * @returns date value as displayable string in browser time zone (except if iso -> then utc timezone) */ transform(value: any, format?: TccClarcDateFormat): string; valueToDateObj(val: any): any; transformClarcDate(val: TccClarcDate): Date; transformAll(val: any): string; }