@progress/kendo-angular-intl 4.0.0-next.202204060817 → 4.0.1-dev.202206071423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-intl.umd.js +1 -1
- package/date.pipe.d.ts +41 -0
- package/error-solutions.d.ts +10 -0
- package/esm2015/date.pipe.js +62 -0
- package/esm2015/error-solutions.js +19 -0
- package/esm2015/intl-members.js +95 -0
- package/esm2015/intl.module.js +30 -0
- package/esm2015/intl.service.js +249 -0
- package/esm2015/kendo-angular-intl.js +8 -0
- package/esm2015/locale-data.interface.js +5 -0
- package/esm2015/main.js +10 -0
- package/esm2015/number.pipe.js +55 -0
- package/esm2015/package-metadata.js +15 -0
- package/fesm2015/kendo-angular-intl.js +502 -0
- package/intl-members.d.ts +71 -0
- package/intl.module.d.ts +16 -0
- package/intl.service.d.ts +298 -0
- package/kendo-angular-intl.d.ts +9 -0
- package/locale-data.interface.d.ts +392 -0
- package/main.d.ts +10 -0
- package/number.pipe.d.ts +41 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +14 -17
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EventEmitter } from '@angular/core';
|
|
6
|
+
import { DateFieldNameOptions, DateFormatOptions, DateFormatNameOptions, NumberFormatOptions, DateFormatPart, DayRange } from '@progress/kendo-intl';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare function cldrServiceFactory(localeId: string): CldrIntlService;
|
|
12
|
+
/**
|
|
13
|
+
* An abstract base class that implements
|
|
14
|
+
* the Internationalization service methods
|
|
15
|
+
* for the current locale.
|
|
16
|
+
*/
|
|
17
|
+
export declare abstract class IntlService {
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
readonly changes: EventEmitter<any>;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
constructor();
|
|
26
|
+
/**
|
|
27
|
+
* Notifies that the service was changed.
|
|
28
|
+
*/
|
|
29
|
+
notify(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Formats a string with placeholders such as
|
|
32
|
+
* `Total amount {0:c}`.
|
|
33
|
+
*
|
|
34
|
+
* @param format - The format string.
|
|
35
|
+
* @param values - One or more values to output in the format string placeholders.
|
|
36
|
+
* @return - The formatted string.
|
|
37
|
+
*/
|
|
38
|
+
abstract format(format: string, ...values: any[]): string;
|
|
39
|
+
/**
|
|
40
|
+
* Converts an object into a string based on the specified format.
|
|
41
|
+
*
|
|
42
|
+
* @param value - The value to format.
|
|
43
|
+
* @param format - The format to use.
|
|
44
|
+
* @param localeId - The locale ID to use in place of the default. Optional.
|
|
45
|
+
* @return - The formatted object.
|
|
46
|
+
*/
|
|
47
|
+
abstract toString(value: any, format: string | any, localeId?: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* Converts a `Date` object into a string based on the specified format
|
|
50
|
+
* ([see example]({% slug parsingandformatting_intl %}#toc-date-formatting)).
|
|
51
|
+
* If no format is provided, the default short date format is used.
|
|
52
|
+
*
|
|
53
|
+
* @param value - The date to format.
|
|
54
|
+
* @param format - The format string or options.
|
|
55
|
+
* @param localeId - The locale ID to use in place of the default. Optional.
|
|
56
|
+
* @return - The formatted date.
|
|
57
|
+
*/
|
|
58
|
+
abstract formatDate(value: Date, format?: String | DateFormatOptions, localeId?: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Converts a string into a `Date` object based on the specified format.
|
|
61
|
+
*
|
|
62
|
+
* @param value - The string to convert.
|
|
63
|
+
* @param format - The format strings or options.
|
|
64
|
+
* @param localeId - The locale ID to use in place of the default. Optional.
|
|
65
|
+
* @return - The parsed date.
|
|
66
|
+
*/
|
|
67
|
+
abstract parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string): Date;
|
|
68
|
+
/**
|
|
69
|
+
* Converts a string into a `Number`.
|
|
70
|
+
*
|
|
71
|
+
* @param value - The string to convert.
|
|
72
|
+
* @param format - The format string or options.
|
|
73
|
+
* @param localeId - The locale ID to use in place of the default. Optional.
|
|
74
|
+
* @return - The parsed number.
|
|
75
|
+
*/
|
|
76
|
+
abstract parseNumber(value: string, format?: string | NumberFormatOptions, localeId?: string): number;
|
|
77
|
+
/**
|
|
78
|
+
* Converts a `Number` into a string based on the specified format.
|
|
79
|
+
*
|
|
80
|
+
* @param value - The number to format.
|
|
81
|
+
* @param format - The format string or options.
|
|
82
|
+
* @param localeId - The locale ID to use in place of the default. Optional.
|
|
83
|
+
* @return - The formatted number.
|
|
84
|
+
*/
|
|
85
|
+
abstract formatNumber(value: number, format: string | NumberFormatOptions, localeId?: string): string;
|
|
86
|
+
/**
|
|
87
|
+
* Returns the day names from the current locale based on the option.
|
|
88
|
+
*
|
|
89
|
+
* @param options - Detailed configuration for the desired date format.
|
|
90
|
+
* @param localeId - The locale ID to use in place of the default. Optional.
|
|
91
|
+
* @return - The day names from the current locale based on the option.
|
|
92
|
+
*/
|
|
93
|
+
abstract dateFormatNames(options: DateFormatNameOptions, localeId?: string): any;
|
|
94
|
+
/**
|
|
95
|
+
* Returns a localized date field name based on specific dateFieldName options.
|
|
96
|
+
*
|
|
97
|
+
* @param options - Detailed configuration for the desired date field name.
|
|
98
|
+
* @param localeId The optional locale id. If not specified, the `"en"` locale id is used.
|
|
99
|
+
* @returns The localized date field name from the current locale based on the option.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* dateFieldName({ type: 'day' }); //returns 'day';
|
|
104
|
+
* dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
|
|
105
|
+
* dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
|
|
106
|
+
* dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
abstract dateFieldName(options: DateFieldNameOptions, localeId?: string): string;
|
|
110
|
+
/**
|
|
111
|
+
* Splits the date format into objects containing information about each part of the pattern.
|
|
112
|
+
*
|
|
113
|
+
* @param format The format string or options.
|
|
114
|
+
* @param localeId The optional locale id. If not specified, the `"en"` locale id is used.
|
|
115
|
+
* @returns The date format parts.
|
|
116
|
+
*/
|
|
117
|
+
abstract splitDateFormat(format: string | DateFormatOptions, localeId?: string): DateFormatPart[];
|
|
118
|
+
/**
|
|
119
|
+
* Returns the number symbols from the current locale based on the option.
|
|
120
|
+
*
|
|
121
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
122
|
+
* @return - The number symbols from the current locale.
|
|
123
|
+
*/
|
|
124
|
+
abstract numberSymbols(localeId?: string): any;
|
|
125
|
+
/**
|
|
126
|
+
* Returns the first day index starting from Sunday.
|
|
127
|
+
*
|
|
128
|
+
* @param localeId - The locale ID. Defaults to the current locale ID.
|
|
129
|
+
* @return - The index of the first day of the week (0 == Sunday).
|
|
130
|
+
*/
|
|
131
|
+
abstract firstDay(localeId?: string): number;
|
|
132
|
+
/**
|
|
133
|
+
* Returns the start and end index of the locale weekend starting from Sunday.
|
|
134
|
+
*
|
|
135
|
+
* @param localeId - The locale ID. Defaults to the current locale ID.
|
|
136
|
+
* @return - The the start and end index of the locale weekend (0 == Sunday).
|
|
137
|
+
*/
|
|
138
|
+
abstract weekendRange(localeId?: string): DayRange;
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntlService, never>;
|
|
140
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IntlService>;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* The Internationalization service implemented by using
|
|
144
|
+
* the CLDR Database via the `@progress/kendo-intl` package.
|
|
145
|
+
*/
|
|
146
|
+
export declare class CldrIntlService extends IntlService {
|
|
147
|
+
private locale;
|
|
148
|
+
/**
|
|
149
|
+
* Gets or sets the current locale ID.
|
|
150
|
+
*/
|
|
151
|
+
get localeId(): string;
|
|
152
|
+
set localeId(value: string);
|
|
153
|
+
/**
|
|
154
|
+
* Creates a new instance of the service with the ID of the specified locale.
|
|
155
|
+
*
|
|
156
|
+
* Note that the parts of the locale ID can be separated by either `_` (underscore)
|
|
157
|
+
* or `-` (dash).
|
|
158
|
+
*
|
|
159
|
+
* @param localeId - The default locale ID.
|
|
160
|
+
*/
|
|
161
|
+
constructor(localeId: string);
|
|
162
|
+
/**
|
|
163
|
+
* Formats a string with placeholders such as
|
|
164
|
+
* `Total amount {0:c}`.
|
|
165
|
+
*
|
|
166
|
+
* @param format - The format string.
|
|
167
|
+
* @param values - One or more values to output in the format string placeholders.
|
|
168
|
+
* @return - The formatted string.
|
|
169
|
+
*/
|
|
170
|
+
format(format: string, ...values: any[]): string;
|
|
171
|
+
/**
|
|
172
|
+
* Converts an object into a string based on the specified format.
|
|
173
|
+
*
|
|
174
|
+
* @param value - The value to format.
|
|
175
|
+
* @param format - The format to use.
|
|
176
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
177
|
+
* @return The formatted object.
|
|
178
|
+
*/
|
|
179
|
+
toString(value: any, format: string | any, localeId?: string): string;
|
|
180
|
+
/**
|
|
181
|
+
* Converts a `Date` object into a string based on the specified format.
|
|
182
|
+
* If no format is provided, the default short date format is used.
|
|
183
|
+
*
|
|
184
|
+
* @param value - The date to format.
|
|
185
|
+
* @param format - The format string or options.
|
|
186
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
187
|
+
* @return The formatted date.
|
|
188
|
+
*/
|
|
189
|
+
formatDate(value: Date, format?: String | DateFormatOptions, localeId?: string): string;
|
|
190
|
+
/**
|
|
191
|
+
* Converts a string into a `Date` object based on the specified format.
|
|
192
|
+
*
|
|
193
|
+
* @param value - The string to convert.
|
|
194
|
+
* @param format - The format strings or options.
|
|
195
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
196
|
+
* @return The parsed date.
|
|
197
|
+
*/
|
|
198
|
+
parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string): Date;
|
|
199
|
+
/**
|
|
200
|
+
* Converts a string into a `Number`.
|
|
201
|
+
*
|
|
202
|
+
* @param value - The string to convert.
|
|
203
|
+
* @param format - The format string or options.
|
|
204
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
205
|
+
* @return The parsed number.
|
|
206
|
+
*/
|
|
207
|
+
parseNumber(value: string, format?: string | NumberFormatOptions, localeId?: string): number;
|
|
208
|
+
/**
|
|
209
|
+
* Converts a `Number` into a string based on the specified format.
|
|
210
|
+
*
|
|
211
|
+
* @param value - The number to format.
|
|
212
|
+
* @param format - The format string or options.
|
|
213
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
214
|
+
* @return The formatted number.
|
|
215
|
+
*/
|
|
216
|
+
formatNumber(value: number, format: string | NumberFormatOptions, localeId?: string): string;
|
|
217
|
+
/**
|
|
218
|
+
* Returns the date names from the current locale based on the option.
|
|
219
|
+
*
|
|
220
|
+
* The available `type` values are:
|
|
221
|
+
* - `era`
|
|
222
|
+
* - `year`
|
|
223
|
+
* - `quarter`
|
|
224
|
+
* - `month`
|
|
225
|
+
* - `week`
|
|
226
|
+
* - `day`
|
|
227
|
+
* - `dayperiod`
|
|
228
|
+
* - `hour`
|
|
229
|
+
* - `minute`
|
|
230
|
+
* - `second`
|
|
231
|
+
* - `zone`
|
|
232
|
+
*
|
|
233
|
+
* The available `nameType` values are:
|
|
234
|
+
* - `wide`
|
|
235
|
+
* - `narrow`
|
|
236
|
+
* - `short`
|
|
237
|
+
*
|
|
238
|
+
* @param options - Detailed configuration for the desired date field name.
|
|
239
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
240
|
+
* @return - The day names from the current locale based on the option.
|
|
241
|
+
* @returns The localized date field name from the current locale based on the option.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* ```
|
|
245
|
+
* dateFieldName({ type: 'day' }); //returns 'day';
|
|
246
|
+
* dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
|
|
247
|
+
* dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
|
|
248
|
+
* dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
251
|
+
dateFieldName(options: DateFieldNameOptions, localeId?: string): string;
|
|
252
|
+
/**
|
|
253
|
+
* Returns a localized date field name based on specific dateFieldName options.
|
|
254
|
+
*
|
|
255
|
+
* The available type values are:
|
|
256
|
+
* - `day`
|
|
257
|
+
* - `dayperiod`
|
|
258
|
+
* - `months`
|
|
259
|
+
* - `quarters`
|
|
260
|
+
* - `eras`
|
|
261
|
+
*
|
|
262
|
+
* @param options - Detailed configuration for the desired date format.
|
|
263
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
264
|
+
* @return - The day names from the current locale based on the option.
|
|
265
|
+
*/
|
|
266
|
+
dateFormatNames(options: DateFormatNameOptions, localeId?: string): any;
|
|
267
|
+
/**
|
|
268
|
+
* Splits the date format into objects containing information about each part of the pattern.
|
|
269
|
+
*
|
|
270
|
+
* @param format The format string or options.
|
|
271
|
+
* @param localeId The optional locale id. If not specified, the `"en"` locale id is used.
|
|
272
|
+
* @returns The date format parts.
|
|
273
|
+
*/
|
|
274
|
+
splitDateFormat(format: string | DateFormatOptions, localeId?: string): DateFormatPart[];
|
|
275
|
+
/**
|
|
276
|
+
* Returns the number symbols from the current locale based on the option.
|
|
277
|
+
*
|
|
278
|
+
* @param localeId - The locale ID to use in place of the default one. Optional.
|
|
279
|
+
* @return - The number symbols from the current locale.
|
|
280
|
+
*/
|
|
281
|
+
numberSymbols(localeId?: string): any;
|
|
282
|
+
/**
|
|
283
|
+
* Returns the first day index starting from Sunday.
|
|
284
|
+
*
|
|
285
|
+
* @param localeId - The locale ID. Defaults to the current locale ID.
|
|
286
|
+
* @return - The index of the first day of the week (0 == Sunday).
|
|
287
|
+
*/
|
|
288
|
+
firstDay(localeId?: string): number;
|
|
289
|
+
/**
|
|
290
|
+
* Returns the start and end index of the locale weekend starting from Sunday.
|
|
291
|
+
*
|
|
292
|
+
* @param localeId - The locale ID. Defaults to the current locale ID.
|
|
293
|
+
* @return - The the start and end index of the locale weekend (0 == Sunday).
|
|
294
|
+
*/
|
|
295
|
+
weekendRange(localeId?: string): DayRange;
|
|
296
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CldrIntlService, never>;
|
|
297
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CldrIntlService>;
|
|
298
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
/// <amd-module name="@progress/kendo-angular-intl" />
|
|
9
|
+
export * from './main';
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Describes the number symbols of the locale.
|
|
7
|
+
*/
|
|
8
|
+
export interface LocaleNumberSymbols {
|
|
9
|
+
/**
|
|
10
|
+
* The decimal separator.
|
|
11
|
+
*/
|
|
12
|
+
decimal?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The group separator.
|
|
15
|
+
*/
|
|
16
|
+
group?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The percent sign.
|
|
19
|
+
*/
|
|
20
|
+
percentSign?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Describes a currency of a locale.
|
|
24
|
+
*/
|
|
25
|
+
export interface LocaleCurrency {
|
|
26
|
+
/**
|
|
27
|
+
* The display name of the currency.
|
|
28
|
+
*/
|
|
29
|
+
displayName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The currency symbol.
|
|
32
|
+
*/
|
|
33
|
+
symbol?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The narrow currency symbol.
|
|
36
|
+
*/
|
|
37
|
+
"symbol-alt-narrow"?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Describes the currencies of the locale.
|
|
41
|
+
*/
|
|
42
|
+
export interface LocaleCurrencies {
|
|
43
|
+
/**
|
|
44
|
+
* The currency data with the currency code as a key (field name).
|
|
45
|
+
*/
|
|
46
|
+
[propName: string]: LocaleCurrency;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Describes the number data of the locale.
|
|
50
|
+
*/
|
|
51
|
+
export interface LocaleNumbers {
|
|
52
|
+
/**
|
|
53
|
+
* The number symbols of the locale.
|
|
54
|
+
*/
|
|
55
|
+
symbols?: LocaleNumberSymbols;
|
|
56
|
+
/**
|
|
57
|
+
* The currencies of the locale.
|
|
58
|
+
*/
|
|
59
|
+
currencies?: LocaleCurrencies;
|
|
60
|
+
/**
|
|
61
|
+
* The default currency of the locale.
|
|
62
|
+
*/
|
|
63
|
+
localeCurrency: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Describes the calendar data of the locale.
|
|
67
|
+
*/
|
|
68
|
+
export interface LocaleCalendarPatterns {
|
|
69
|
+
/**
|
|
70
|
+
* The short-date pattern.
|
|
71
|
+
*/
|
|
72
|
+
d?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The long-date pattern.
|
|
75
|
+
*/
|
|
76
|
+
D?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The abbreviated month and day pattern.
|
|
79
|
+
*/
|
|
80
|
+
m?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The wide month and day pattern.
|
|
83
|
+
*/
|
|
84
|
+
M?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The abbreviated month and year pattern.
|
|
87
|
+
*/
|
|
88
|
+
y?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The wide month and year pattern.
|
|
91
|
+
*/
|
|
92
|
+
Y?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The full date and time pattern.
|
|
95
|
+
*/
|
|
96
|
+
F?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The short general date and time pattern.
|
|
99
|
+
*/
|
|
100
|
+
g?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The long general date and time pattern.
|
|
103
|
+
*/
|
|
104
|
+
G?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The short time pattern.
|
|
107
|
+
*/
|
|
108
|
+
t?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The long time pattern.
|
|
111
|
+
*/
|
|
112
|
+
T?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The universal sortable local date and time pattern.
|
|
115
|
+
*/
|
|
116
|
+
s?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The universal sortable UTC date and time pattern.
|
|
119
|
+
*/
|
|
120
|
+
u?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Describes the date and time formats of the locale.
|
|
124
|
+
*/
|
|
125
|
+
export interface LocaleDateTimeFormats {
|
|
126
|
+
/**
|
|
127
|
+
* The full date-time format.
|
|
128
|
+
*/
|
|
129
|
+
full?: string;
|
|
130
|
+
/**
|
|
131
|
+
* The long date-time format.
|
|
132
|
+
*/
|
|
133
|
+
long?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The medium date-time format.
|
|
136
|
+
*/
|
|
137
|
+
medium?: string;
|
|
138
|
+
/**
|
|
139
|
+
* The short date-time format.
|
|
140
|
+
*/
|
|
141
|
+
short?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The skeleton formats of the locale.
|
|
144
|
+
*/
|
|
145
|
+
availableFormats?: any;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Describes the time formats of the locale.
|
|
149
|
+
*/
|
|
150
|
+
export interface LocaleTimeFormats {
|
|
151
|
+
/**
|
|
152
|
+
* The full time format.
|
|
153
|
+
*/
|
|
154
|
+
full?: string;
|
|
155
|
+
/**
|
|
156
|
+
* The long time format.
|
|
157
|
+
*/
|
|
158
|
+
long?: string;
|
|
159
|
+
/**
|
|
160
|
+
* The medium time format.
|
|
161
|
+
*/
|
|
162
|
+
medium?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The short time format.
|
|
165
|
+
*/
|
|
166
|
+
short?: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Describes the date formats of the locale.
|
|
170
|
+
*/
|
|
171
|
+
export interface LocaleDateFormats {
|
|
172
|
+
/**
|
|
173
|
+
* The full date format.
|
|
174
|
+
*/
|
|
175
|
+
full?: string;
|
|
176
|
+
/**
|
|
177
|
+
* The long date format.
|
|
178
|
+
*/
|
|
179
|
+
long?: string;
|
|
180
|
+
/**
|
|
181
|
+
* The medium date format.
|
|
182
|
+
*/
|
|
183
|
+
medium?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The short date format.
|
|
186
|
+
*/
|
|
187
|
+
short?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Describes the name types of the locale date formats.
|
|
191
|
+
*/
|
|
192
|
+
export interface LocaleDateFormatNames {
|
|
193
|
+
/**
|
|
194
|
+
* An array with the abbreviated names.
|
|
195
|
+
*/
|
|
196
|
+
abbreviated?: string[];
|
|
197
|
+
/**
|
|
198
|
+
* An array with the narrow names.
|
|
199
|
+
*/
|
|
200
|
+
narrow?: string[];
|
|
201
|
+
/**
|
|
202
|
+
* An array with the short names.
|
|
203
|
+
*/
|
|
204
|
+
short?: string[];
|
|
205
|
+
/**
|
|
206
|
+
* An array with the wide names.
|
|
207
|
+
*/
|
|
208
|
+
wide?: string[];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Describes the date-format names of the locale.
|
|
212
|
+
*/
|
|
213
|
+
export interface LocaleDateFormatNameTypes {
|
|
214
|
+
/**
|
|
215
|
+
* The default format names.
|
|
216
|
+
*/
|
|
217
|
+
format?: LocaleDateFormatNames;
|
|
218
|
+
/**
|
|
219
|
+
* The standalone format names.
|
|
220
|
+
*/
|
|
221
|
+
'stand-alone'?: LocaleDateFormatNames;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Describes the day-period names of the locale.
|
|
225
|
+
*/
|
|
226
|
+
export interface LocaleDayPeriodNames {
|
|
227
|
+
/**
|
|
228
|
+
* The Ante meridiem name.
|
|
229
|
+
*/
|
|
230
|
+
am?: string;
|
|
231
|
+
/**
|
|
232
|
+
* The Post meridiem name.
|
|
233
|
+
*/
|
|
234
|
+
pm?: string;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Describes the data for the day-period names of the locale.
|
|
238
|
+
*/
|
|
239
|
+
export interface LocaleDayPeriodNameTypes {
|
|
240
|
+
/**
|
|
241
|
+
* The default format names.
|
|
242
|
+
*/
|
|
243
|
+
format?: LocaleDayPeriodNames;
|
|
244
|
+
/**
|
|
245
|
+
* The standalone format names.
|
|
246
|
+
*/
|
|
247
|
+
'stand-alone'?: LocaleDayPeriodNames;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Describes the date-field names of the locale.
|
|
251
|
+
*/
|
|
252
|
+
export interface LocaleDateFieldNames {
|
|
253
|
+
/**
|
|
254
|
+
* The wide field name.
|
|
255
|
+
*/
|
|
256
|
+
wide?: string;
|
|
257
|
+
/**
|
|
258
|
+
* The short field name.
|
|
259
|
+
*/
|
|
260
|
+
short?: string;
|
|
261
|
+
/**
|
|
262
|
+
* The narrow field name.
|
|
263
|
+
*/
|
|
264
|
+
narrow?: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Describes the data for the date-field names of the locale.
|
|
268
|
+
*/
|
|
269
|
+
export interface LocaleDateFieldNameTypes {
|
|
270
|
+
/**
|
|
271
|
+
* The field names for an era.
|
|
272
|
+
*/
|
|
273
|
+
era?: LocaleDateFieldNames;
|
|
274
|
+
/**
|
|
275
|
+
* The field names for a year.
|
|
276
|
+
*/
|
|
277
|
+
year?: LocaleDateFieldNames;
|
|
278
|
+
/**
|
|
279
|
+
* The field names for a quarter.
|
|
280
|
+
*/
|
|
281
|
+
quarter?: LocaleDateFieldNames;
|
|
282
|
+
/**
|
|
283
|
+
* The field names for a month.
|
|
284
|
+
*/
|
|
285
|
+
month?: LocaleDateFieldNames;
|
|
286
|
+
/**
|
|
287
|
+
* The field names for a week.
|
|
288
|
+
*/
|
|
289
|
+
week?: LocaleDateFieldNames;
|
|
290
|
+
/**
|
|
291
|
+
* The field names for a day.
|
|
292
|
+
*/
|
|
293
|
+
day?: LocaleDateFieldNames;
|
|
294
|
+
/**
|
|
295
|
+
* The field names for a weekday.
|
|
296
|
+
*/
|
|
297
|
+
weekday?: LocaleDateFieldNames;
|
|
298
|
+
/**
|
|
299
|
+
* The field names for a day period.
|
|
300
|
+
*/
|
|
301
|
+
dayperiod?: LocaleDateFieldNames;
|
|
302
|
+
/**
|
|
303
|
+
* The field names for an hour.
|
|
304
|
+
*/
|
|
305
|
+
hour?: LocaleDateFieldNames;
|
|
306
|
+
/**
|
|
307
|
+
* The field names for a minute.
|
|
308
|
+
*/
|
|
309
|
+
minute?: LocaleDateFieldNames;
|
|
310
|
+
/**
|
|
311
|
+
* The field names for a second.
|
|
312
|
+
*/
|
|
313
|
+
second?: LocaleDateFieldNames;
|
|
314
|
+
/**
|
|
315
|
+
* The field names for a zone.
|
|
316
|
+
*/
|
|
317
|
+
zone?: LocaleDateFieldNames;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Describes the calendar data of the locale.
|
|
321
|
+
*/
|
|
322
|
+
export interface LocaleCalendar {
|
|
323
|
+
/**
|
|
324
|
+
* The GMT format of the locale.
|
|
325
|
+
*/
|
|
326
|
+
gmtFormat?: string;
|
|
327
|
+
/**
|
|
328
|
+
* The zero (offset) GMT format of the locale.
|
|
329
|
+
*/
|
|
330
|
+
gmtZeroFormat?: string;
|
|
331
|
+
/**
|
|
332
|
+
* The predefined patterns of the locale.
|
|
333
|
+
*/
|
|
334
|
+
patterns?: LocaleCalendarPatterns;
|
|
335
|
+
/**
|
|
336
|
+
* The date and time formats of the locale.
|
|
337
|
+
*/
|
|
338
|
+
dateTimeFormats?: LocaleDateTimeFormats;
|
|
339
|
+
/**
|
|
340
|
+
* The time formats of the locale.
|
|
341
|
+
*/
|
|
342
|
+
timeFormats?: LocaleTimeFormats;
|
|
343
|
+
/**
|
|
344
|
+
* The date formats of the locale.
|
|
345
|
+
*/
|
|
346
|
+
dateFormats?: LocaleDateFormats;
|
|
347
|
+
/**
|
|
348
|
+
* The data for the day names of the locale.
|
|
349
|
+
*/
|
|
350
|
+
days?: LocaleDateFormatNameTypes;
|
|
351
|
+
/**
|
|
352
|
+
* The data for the day-period names of the locale.
|
|
353
|
+
*/
|
|
354
|
+
dayPeriods?: LocaleDayPeriodNameTypes;
|
|
355
|
+
/**
|
|
356
|
+
* The data for the month names of the locale.
|
|
357
|
+
*/
|
|
358
|
+
months?: LocaleDateFormatNameTypes;
|
|
359
|
+
/**
|
|
360
|
+
* The data for the quarter names of the locale.
|
|
361
|
+
*/
|
|
362
|
+
quarters?: LocaleDateFormatNameTypes;
|
|
363
|
+
/**
|
|
364
|
+
* The data for the era names of the locale.
|
|
365
|
+
*/
|
|
366
|
+
eras?: LocaleDateFormatNameTypes;
|
|
367
|
+
/**
|
|
368
|
+
* The date-field names of the locale.
|
|
369
|
+
*/
|
|
370
|
+
dateFields: LocaleDateFieldNameTypes;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Describes the data of the locale.
|
|
374
|
+
*/
|
|
375
|
+
export interface Locale {
|
|
376
|
+
/**
|
|
377
|
+
* The name of the locale.
|
|
378
|
+
*/
|
|
379
|
+
name?: string;
|
|
380
|
+
/**
|
|
381
|
+
* The territory of the locale.
|
|
382
|
+
*/
|
|
383
|
+
territory?: string;
|
|
384
|
+
/**
|
|
385
|
+
* The numbers data of the locale.
|
|
386
|
+
*/
|
|
387
|
+
numbers?: LocaleNumbers;
|
|
388
|
+
/**
|
|
389
|
+
* The calendar data of the locale.
|
|
390
|
+
*/
|
|
391
|
+
calendar?: LocaleCalendar;
|
|
392
|
+
}
|
package/main.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export * from './intl.service';
|
|
6
|
+
export * from './date.pipe';
|
|
7
|
+
export * from './number.pipe';
|
|
8
|
+
export * from './intl.module';
|
|
9
|
+
export * from './intl-members';
|
|
10
|
+
export * from './locale-data.interface';
|