UNPKG

@ctodev/cclibrary-typings

Version:

Library typings for use with CLARC INFINITY

267 lines (266 loc) 7.58 kB
import { TccKeyValuePair } from '../../../odata/models/shared.model'; import { DateAdapter } from '@angular/material/core'; export declare class LocaleService { private readonly locales; currentLocale: string; get currentLocale2(): string; possibleLocales: TccKeyValuePair[]; readonly DATE_FORMATS_DE: { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; readonly DATE_FORMATS_US: { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; readonly DATE_FORMATS_UK: { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; readonly DATE_FORMATS_CA: { parse: { dateInput: string; timeInput: string[]; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; readonly DATE_FORMATS_NL: { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; dateFormats: { "en-US": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "en-GB": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "de-DE": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "fr-FR": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "fr-CA": { parse: { dateInput: string; timeInput: string[]; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "es-ES": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "es-MX": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "pt-BR": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "it-IT": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "nl-NL": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "sv-SE": { parse: { dateInput: string; timeInput: string[]; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; "pl-PL": { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; }; currentDateFormat: { parse: { dateInput: string; timeInput: string; }; display: { dateInput: string; monthYearLabel: string; dateA11yLabel: string; monthYearA11yLabel: string; timeInput: string; timeOptionLabel: string; }; }; get currentDateFormat2(): any; constructor(); setLocale(dateAdapter?: DateAdapter<any>, locale?: string): void; private getLanguageTag; }