@progress/kendo-angular-intl 24.2.2 → 25.0.0-develop.2

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/index.d.ts CHANGED
@@ -2,10 +2,866 @@
2
2
  * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
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';
11
- export * from './directives';
5
+ import * as i0 from '@angular/core';
6
+ import { EventEmitter, PipeTransform } from '@angular/core';
7
+ import { DateFormatOptions, NumberFormatOptions, DateFormatNameOptions, DateFieldNameOptions, DateFormatPart, DayRange } from '@progress/kendo-intl';
8
+ export { DateFieldNameOptions, DateFormatNameOptions, DateFormatOptions, DateFormatPart, NumberFormatOptions } from '@progress/kendo-intl';
9
+
10
+ /**
11
+ * @hidden
12
+ */
13
+ declare function cldrServiceFactory(localeId: string): CldrIntlService;
14
+ /**
15
+ * Represents the abstract base class for the Kendo UI for Angular Internationalization service.
16
+ * Provides methods for formatting and parsing dates, numbers, and strings according to the current locale.
17
+ *
18
+ * Extend this class to implement custom internationalization logic or use the default CLDR-based implementation.
19
+ */
20
+ declare abstract class IntlService {
21
+ /**
22
+ * @hidden
23
+ */
24
+ readonly changes: EventEmitter<any>;
25
+ /**
26
+ * @hidden
27
+ */
28
+ constructor();
29
+ /**
30
+ * Specifies that the service was changed.
31
+ */
32
+ notify(): void;
33
+ /**
34
+ * Formats a string with placeholders such as
35
+ * `Total amount {0:c}`.
36
+ *
37
+ * @param format - The format string.
38
+ * @param values - One or more values to output in the format string placeholders.
39
+ * @returns The formatted string.
40
+ */
41
+ abstract format(format: string, ...values: any[]): string;
42
+ /**
43
+ * Converts an object into a string based on the specified format.
44
+ *
45
+ * @param value - The value to format.
46
+ * @param format - The format to use.
47
+ * @param localeId - The locale ID to use in place of the default (optional).
48
+ * @returns The formatted object as a string.
49
+ */
50
+ abstract toString(value: any, format: string | any, localeId?: string): string;
51
+ /**
52
+ * Converts a `Date` object into a string based on the specified format
53
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/globalization/internationalization/parsing-and-formatting#date-formatting)).
54
+ * If no format is provided, the default short date format is used.
55
+ *
56
+ * @param value - The date to format.
57
+ * @param format - The format string or options (optional).
58
+ * @param localeId - The locale ID to use in place of the default (optional).
59
+ * @returns The formatted date as a string.
60
+ */
61
+ abstract formatDate(value: Date, format?: string | DateFormatOptions, localeId?: string): string;
62
+ /**
63
+ * Converts a string into a `Date` object based on the specified format.
64
+ *
65
+ * @param value - The string to convert.
66
+ * @param format - The format strings or options (optional).
67
+ * @param localeId - The locale ID to use in place of the default (optional).
68
+ * @returns The parsed date.
69
+ */
70
+ abstract parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string): Date;
71
+ /**
72
+ * Converts a string into a `Number`.
73
+ *
74
+ * @param value - The string to convert.
75
+ * @param format - The format string or options (optional).
76
+ * @param localeId - The locale ID to use in place of the default (optional).
77
+ * @returns The parsed number.
78
+ */
79
+ abstract parseNumber(value: string, format?: string | NumberFormatOptions, localeId?: string): number;
80
+ /**
81
+ * Converts a `Number` into a string based on the specified format.
82
+ *
83
+ * @param value - The number to format.
84
+ * @param format - The format string or options.
85
+ * @param localeId - The locale ID to use in place of the default (optional).
86
+ * @returns The formatted number as a string.
87
+ */
88
+ abstract formatNumber(value: number, format: string | NumberFormatOptions, localeId?: string): string;
89
+ /**
90
+ * Returns the day names from the current locale based on the option.
91
+ *
92
+ * @param options - Detailed configuration for the desired date format.
93
+ * @param localeId - The locale ID to use in place of the default (optional).
94
+ * @returns The day names from the current locale based on the option.
95
+ */
96
+ abstract dateFormatNames(options: DateFormatNameOptions, localeId?: string): any;
97
+ /**
98
+ * Returns a localized date field name based on specific `dateFieldName` options.
99
+ *
100
+ * @param options - Detailed configuration for the desired date field name.
101
+ * @param localeId - The locale ID to use (optional). If not specified, the `"en"` locale ID is used.
102
+ * @returns The localized date field name from the current locale based on the option.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * dateFieldName({ type: 'day' }); //returns 'day';
107
+ * dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
108
+ * dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
109
+ * dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
110
+ * ```
111
+ */
112
+ abstract dateFieldName(options: DateFieldNameOptions, localeId?: string): string;
113
+ /**
114
+ * Splits the date format into objects containing information about each part of the pattern.
115
+ *
116
+ * @param format - The format string or options.
117
+ * @param localeId - The locale ID to use (optional). If not specified, the `"en"` locale ID is used.
118
+ * @returns The date format parts.
119
+ */
120
+ abstract splitDateFormat(format: string | DateFormatOptions, localeId?: string): DateFormatPart[];
121
+ /**
122
+ * Returns the number symbols from the current locale based on the option.
123
+ *
124
+ * @param localeId - The locale ID to use in place of the default one (optional).
125
+ * @returns The number symbols from the current locale.
126
+ */
127
+ abstract numberSymbols(localeId?: string): any;
128
+ /**
129
+ * Returns the first day index starting from Sunday.
130
+ *
131
+ * @param localeId - The locale ID (optional). Defaults to the current locale ID.
132
+ * @returns The index of the first day of the week (0 == Sunday).
133
+ */
134
+ abstract firstDay(localeId?: string): number;
135
+ /**
136
+ * Returns the start and end index of the locale weekend starting from Sunday.
137
+ *
138
+ * @param localeId - The locale ID (optional). Defaults to the current locale ID.
139
+ * @returns The start and end index of the locale weekend (0 == Sunday).
140
+ */
141
+ abstract weekendRange(localeId?: string): DayRange;
142
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntlService, never>;
143
+ static ɵprov: i0.ɵɵInjectableDeclaration<IntlService>;
144
+ }
145
+ /**
146
+ * Represents the Internationalization service implemented using the CLDR Database via the `@progress/kendo-intl` package.
147
+ * Provides locale-aware formatting and parsing for dates, numbers, and strings.
148
+ *
149
+ * @example
150
+ * ```ts
151
+ * import { CldrIntlService } from '@progress/kendo-angular-intl';
152
+ * const intl = new CldrIntlService('en-US');
153
+ * intl.formatDate(new Date(), { date: 'short' });
154
+ * ```
155
+ */
156
+ declare class CldrIntlService extends IntlService {
157
+ private locale;
158
+ /**
159
+ * Specifies or gets the current locale ID.
160
+ */
161
+ get localeId(): string;
162
+ set localeId(value: string);
163
+ /**
164
+ * Creates a new instance of the service with the ID of the specified locale.
165
+ *
166
+ * Note that the parts of the locale ID can be separated by either `_` (underscore)
167
+ * or `-` (dash).
168
+ *
169
+ * @param localeId - The default locale ID.
170
+ */
171
+ constructor(localeId: string);
172
+ /**
173
+ * Formats a string with placeholders such as
174
+ * `Total amount {0:c}`.
175
+ *
176
+ * @param format - The format string.
177
+ * @param values - One or more values to output in the format string placeholders.
178
+ * @returns The formatted string.
179
+ */
180
+ format(format: string, ...values: any[]): string;
181
+ /**
182
+ * Converts an object into a string based on the specified format.
183
+ *
184
+ * @param value - The value to format.
185
+ * @param format - The format to use.
186
+ * @param localeId - The locale ID to use in place of the default one (optional).
187
+ * @returns The formatted object as a string.
188
+ */
189
+ toString(value: any, format: string | any, localeId?: string): string;
190
+ /**
191
+ * Converts a `Date` object into a string based on the specified format.
192
+ * If no format is provided, the default short date format is used.
193
+ *
194
+ * @param value - The date to format.
195
+ * @param format - The format string or options (optional).
196
+ * @param localeId - The locale ID to use in place of the default one (optional).
197
+ * @returns The formatted date as a string.
198
+ */
199
+ formatDate(value: Date, format?: string | DateFormatOptions, localeId?: string): string;
200
+ /**
201
+ * Converts a string into a `Date` object based on the specified format.
202
+ *
203
+ * @param value - The string to convert.
204
+ * @param format - The format strings or options (optional).
205
+ * @param localeId - The locale ID to use in place of the default one (optional).
206
+ * @returns The parsed date.
207
+ */
208
+ parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string): Date;
209
+ /**
210
+ * Converts a string into a `Number`.
211
+ *
212
+ * @param value - The string to convert.
213
+ * @param format - The format string or options (optional).
214
+ * @param localeId - The locale ID to use in place of the default one (optional).
215
+ * @returns The parsed number.
216
+ */
217
+ parseNumber(value: string, format?: string | NumberFormatOptions, localeId?: string): number;
218
+ /**
219
+ * Converts a `Number` into a string based on the specified format.
220
+ *
221
+ * @param value - The number to format.
222
+ * @param format - The format string or options.
223
+ * @param localeId - The locale ID to use in place of the default one (optional).
224
+ * @returns The formatted number as a string.
225
+ */
226
+ formatNumber(value: number, format: string | NumberFormatOptions, localeId?: string): string;
227
+ /**
228
+ * Returns the date names from the current locale based on the option.
229
+ *
230
+ * The available `type` values are:
231
+ * - `era`
232
+ * - `year`
233
+ * - `quarter`
234
+ * - `month`
235
+ * - `week`
236
+ * - `day`
237
+ * - `dayperiod`
238
+ * - `hour`
239
+ * - `minute`
240
+ * - `second`
241
+ * - `zone`
242
+ *
243
+ * The available `nameType` values are:
244
+ * - `wide`
245
+ * - `narrow`
246
+ * - `short`
247
+ *
248
+ * @param options - Detailed configuration for the desired date field name.
249
+ * @param localeId - The locale ID to use in place of the default one (optional).
250
+ * @returns The day names from the current locale based on the option.
251
+ *
252
+ * @example
253
+ * ```ts
254
+ * dateFieldName({ type: 'day' }); //returns 'day';
255
+ * dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
256
+ * dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
257
+ * dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
258
+ * ```
259
+ */
260
+ dateFieldName(options: DateFieldNameOptions, localeId?: string): string;
261
+ /**
262
+ * Returns a localized date field name based on specific `dateFieldName` options.
263
+ *
264
+ * The available type values are:
265
+ * - `day`
266
+ * - `dayperiod`
267
+ * - `months`
268
+ * - `quarters`
269
+ * - `eras`
270
+ *
271
+ * @param options - Detailed configuration for the desired date format.
272
+ * @param localeId - The locale ID to use in place of the default one (optional).
273
+ * @returns The day names from the current locale based on the option.
274
+ */
275
+ dateFormatNames(options: DateFormatNameOptions, localeId?: string): any;
276
+ /**
277
+ * Splits the date format into objects containing information about each part of the pattern.
278
+ *
279
+ * @param format - The format string or options.
280
+ * @param localeId - The locale ID to use (optional). If not specified, the `"en"` locale ID is used.
281
+ * @returns The date format parts.
282
+ */
283
+ splitDateFormat(format: string | DateFormatOptions, localeId?: string): DateFormatPart[];
284
+ /**
285
+ * Returns the number symbols from the current locale based on the option.
286
+ *
287
+ * @param localeId - The locale ID to use in place of the default one (optional).
288
+ * @returns The number symbols from the current locale.
289
+ */
290
+ numberSymbols(localeId?: string): any;
291
+ /**
292
+ * Returns the first day index starting from Sunday.
293
+ *
294
+ * @param localeId - The locale ID (optional). Defaults to the current locale ID.
295
+ * @returns The index of the first day of the week (0 == Sunday).
296
+ */
297
+ firstDay(localeId?: string): number;
298
+ /**
299
+ * Returns the start and end index of the locale weekend starting from Sunday.
300
+ *
301
+ * @param localeId - The locale ID (optional). Defaults to the current locale ID.
302
+ * @returns The start and end index of the locale weekend (0 == Sunday).
303
+ */
304
+ weekendRange(localeId?: string): DayRange;
305
+ static ɵfac: i0.ɵɵFactoryDeclaration<CldrIntlService, never>;
306
+ static ɵprov: i0.ɵɵInjectableDeclaration<CldrIntlService>;
307
+ }
308
+
309
+ /**
310
+ * Formats a date value to a string based on the requested format.
311
+ * This pipe uses the [IntlService](https://www.telerik.com/kendo-angular-ui/components/globalization/internationalization/api/intlservice).
312
+ *
313
+ * @example
314
+ * ```html
315
+ * <ul>
316
+ * <li>{{date | kendoDate }}</li>
317
+ * <li>{{milliseconds | kendoDate: 'M/dd/yyy' }}</li>
318
+ * <li>{{stringDate | kendoDate: 'G' }}</li>
319
+ * </ul>
320
+ * ```
321
+ */
322
+ declare class DatePipe implements PipeTransform {
323
+ private intlService;
324
+ /**
325
+ * @hidden
326
+ */
327
+ constructor(intlService: IntlService);
328
+ /**
329
+ * Converts a `Date` object into a string based on the specified format.
330
+ * If no format is provided, the default short date format is used.
331
+ *
332
+ * @param value - The date to format.
333
+ * @param format - The format string or options (optional).
334
+ * @param localeId - The ID of the locale which will be used instead of the default one (optional).
335
+ * @returns The formatted date as a string.
336
+ */
337
+ transform(value: any, format?: string | DateFormatOptions, localeId?: string): any;
338
+ private normalize;
339
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
340
+ static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "kendoDate", true>;
341
+ }
342
+
343
+ /**
344
+ * Formats a number value to a string based on the requested format.
345
+ * This pipe uses the [`IntlService`](https://www.telerik.com/kendo-angular-ui/components/globalization/internationalization/api/intlservice).
346
+ *
347
+ * @example
348
+ * ```ng-template-no-run
349
+ * <ul>
350
+ * <li>{{decimal | kendoNumber:'c' }}</li>
351
+ * <li>{{stringNumber | kendoNumber:'p' }}</li>
352
+ * <li>{{int | kendoNumber:'##.00' }}</li>
353
+ * </ul>
354
+ * ```
355
+ */
356
+ declare class NumberPipe implements PipeTransform {
357
+ private intlService;
358
+ /**
359
+ * @hidden
360
+ */
361
+ constructor(intlService: IntlService);
362
+ /**
363
+ * Converts a `Number` object into a string based on the specified format.
364
+ * If no format is provided, the value is formatted as decimal number using the
365
+ * [`"n"`](https://github.com/telerik/kendo-intl/blob/master/docs/num-formatting/index.md#standard) format.
366
+ *
367
+ * @param value - The number that will be formatted.
368
+ * @param format - The format string or options (optional).
369
+ * @param localeId - The locale ID that will be used in place of the default one (optional).
370
+ * @returns The formatted number as a string.
371
+ */
372
+ transform(value: any, format?: string | NumberFormatOptions, localeId?: string): any;
373
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberPipe, never>;
374
+ static ɵpipe: i0.ɵɵPipeDeclaration<NumberPipe, "kendoNumber", true>;
375
+ }
376
+
377
+ /**
378
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
379
+ * definition for the Intl services.
380
+ */
381
+ declare class IntlModule {
382
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntlModule, never>;
383
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IntlModule, never, [typeof NumberPipe, typeof DatePipe], [typeof NumberPipe, typeof DatePipe]>;
384
+ static ɵinj: i0.ɵɵInjectorDeclaration<IntlModule>;
385
+ }
386
+
387
+ /**
388
+ * Describes the number symbols of the locale, such as decimal and group separators.
389
+ */
390
+ interface LocaleNumberSymbols {
391
+ /**
392
+ * The decimal separator.
393
+ */
394
+ decimal?: string;
395
+ /**
396
+ * The group separator.
397
+ */
398
+ group?: string;
399
+ /**
400
+ * The percent sign.
401
+ */
402
+ percentSign?: string;
403
+ }
404
+ /**
405
+ * Describes a currency of a locale, including display name and symbols.
406
+ */
407
+ interface LocaleCurrency {
408
+ /**
409
+ * The display name of the currency.
410
+ */
411
+ displayName?: string;
412
+ /**
413
+ * The currency symbol.
414
+ */
415
+ symbol?: string;
416
+ /**
417
+ * The narrow currency symbol.
418
+ */
419
+ "symbol-alt-narrow"?: string;
420
+ }
421
+ /**
422
+ * Describes the currencies of the locale, indexed by currency code.
423
+ */
424
+ interface LocaleCurrencies {
425
+ /**
426
+ * The currency data with the currency code as a key (field name).
427
+ */
428
+ [propName: string]: LocaleCurrency;
429
+ }
430
+ /**
431
+ * Describes the number data of the locale, including symbols and currencies.
432
+ */
433
+ interface LocaleNumbers {
434
+ /**
435
+ * The number symbols of the locale.
436
+ */
437
+ symbols?: LocaleNumberSymbols;
438
+ /**
439
+ * The currencies of the locale.
440
+ */
441
+ currencies?: LocaleCurrencies;
442
+ /**
443
+ * The default currency of the locale.
444
+ */
445
+ localeCurrency: string;
446
+ }
447
+ /**
448
+ * Describes the calendar patterns of the locale, such as date and time formats.
449
+ */
450
+ interface LocaleCalendarPatterns {
451
+ /**
452
+ * The short-date pattern.
453
+ */
454
+ d?: string;
455
+ /**
456
+ * The long-date pattern.
457
+ */
458
+ D?: string;
459
+ /**
460
+ * The abbreviated month and day pattern.
461
+ */
462
+ m?: string;
463
+ /**
464
+ * The wide month and day pattern.
465
+ */
466
+ M?: string;
467
+ /**
468
+ * The abbreviated month and year pattern.
469
+ */
470
+ y?: string;
471
+ /**
472
+ * The wide month and year pattern.
473
+ */
474
+ Y?: string;
475
+ /**
476
+ * The full date and time pattern.
477
+ */
478
+ F?: string;
479
+ /**
480
+ * The short general date and time pattern.
481
+ */
482
+ g?: string;
483
+ /**
484
+ * The long general date and time pattern.
485
+ */
486
+ G?: string;
487
+ /**
488
+ * The short time pattern.
489
+ */
490
+ t?: string;
491
+ /**
492
+ * The long time pattern.
493
+ */
494
+ T?: string;
495
+ /**
496
+ * The universal sortable local date and time pattern.
497
+ */
498
+ s?: string;
499
+ /**
500
+ * The universal sortable UTC date and time pattern.
501
+ */
502
+ u?: string;
503
+ }
504
+ /**
505
+ * Describes the date and time formats of the locale.
506
+ */
507
+ interface LocaleDateTimeFormats {
508
+ /**
509
+ * The full date-time format.
510
+ */
511
+ full?: string;
512
+ /**
513
+ * The long date-time format.
514
+ */
515
+ long?: string;
516
+ /**
517
+ * The medium date-time format.
518
+ */
519
+ medium?: string;
520
+ /**
521
+ * The short date-time format.
522
+ */
523
+ short?: string;
524
+ /**
525
+ * The skeleton formats of the locale.
526
+ */
527
+ availableFormats?: any;
528
+ }
529
+ /**
530
+ * Describes the time formats of the locale.
531
+ */
532
+ interface LocaleTimeFormats {
533
+ /**
534
+ * The full time format.
535
+ */
536
+ full?: string;
537
+ /**
538
+ * The long time format.
539
+ */
540
+ long?: string;
541
+ /**
542
+ * The medium time format.
543
+ */
544
+ medium?: string;
545
+ /**
546
+ * The short time format.
547
+ */
548
+ short?: string;
549
+ }
550
+ /**
551
+ * Describes the date formats of the locale.
552
+ */
553
+ interface LocaleDateFormats {
554
+ /**
555
+ * The full date format.
556
+ */
557
+ full?: string;
558
+ /**
559
+ * The long date format.
560
+ */
561
+ long?: string;
562
+ /**
563
+ * The medium date format.
564
+ */
565
+ medium?: string;
566
+ /**
567
+ * The short date format.
568
+ */
569
+ short?: string;
570
+ }
571
+ /**
572
+ * Describes the name types of the locale date formats (abbreviated, narrow, short, wide).
573
+ */
574
+ interface LocaleDateFormatNames {
575
+ /**
576
+ * An array with the abbreviated names.
577
+ */
578
+ abbreviated?: string[];
579
+ /**
580
+ * An array with the narrow names.
581
+ */
582
+ narrow?: string[];
583
+ /**
584
+ * An array with the short names.
585
+ */
586
+ short?: string[];
587
+ /**
588
+ * An array with the wide names.
589
+ */
590
+ wide?: string[];
591
+ }
592
+ /**
593
+ * Describes the date-format names of the locale, including format and stand-alone names.
594
+ */
595
+ interface LocaleDateFormatNameTypes {
596
+ /**
597
+ * The default format names.
598
+ */
599
+ format?: LocaleDateFormatNames;
600
+ /**
601
+ * The standalone format names.
602
+ */
603
+ 'stand-alone'?: LocaleDateFormatNames;
604
+ }
605
+ /**
606
+ * Describes the day-period names of the locale (AM/PM).
607
+ */
608
+ interface LocaleDayPeriodNames {
609
+ /**
610
+ * The Ante meridiem name.
611
+ */
612
+ am?: string;
613
+ /**
614
+ * The Post meridiem name.
615
+ */
616
+ pm?: string;
617
+ }
618
+ /**
619
+ * Describes the data for the day-period names of the locale, including format and stand-alone.
620
+ */
621
+ interface LocaleDayPeriodNameTypes {
622
+ /**
623
+ * The default format names.
624
+ */
625
+ format?: LocaleDayPeriodNames;
626
+ /**
627
+ * The standalone format names.
628
+ */
629
+ 'stand-alone'?: LocaleDayPeriodNames;
630
+ }
631
+ /**
632
+ * Describes the date-field names of the locale (wide, short, narrow).
633
+ */
634
+ interface LocaleDateFieldNames {
635
+ /**
636
+ * The wide field name.
637
+ */
638
+ wide?: string;
639
+ /**
640
+ * The short field name.
641
+ */
642
+ short?: string;
643
+ /**
644
+ * The narrow field name.
645
+ */
646
+ narrow?: string;
647
+ }
648
+ /**
649
+ * Describes the data for the date-field names of the locale, for each field type.
650
+ */
651
+ interface LocaleDateFieldNameTypes {
652
+ /**
653
+ * The field names for an era.
654
+ */
655
+ era?: LocaleDateFieldNames;
656
+ /**
657
+ * The field names for a year.
658
+ */
659
+ year?: LocaleDateFieldNames;
660
+ /**
661
+ * The field names for a quarter.
662
+ */
663
+ quarter?: LocaleDateFieldNames;
664
+ /**
665
+ * The field names for a month.
666
+ */
667
+ month?: LocaleDateFieldNames;
668
+ /**
669
+ * The field names for a week.
670
+ */
671
+ week?: LocaleDateFieldNames;
672
+ /**
673
+ * The field names for a day.
674
+ */
675
+ day?: LocaleDateFieldNames;
676
+ /**
677
+ * The field names for a weekday.
678
+ */
679
+ weekday?: LocaleDateFieldNames;
680
+ /**
681
+ * The field names for a day period.
682
+ */
683
+ dayperiod?: LocaleDateFieldNames;
684
+ /**
685
+ * The field names for an hour.
686
+ */
687
+ hour?: LocaleDateFieldNames;
688
+ /**
689
+ * The field names for a minute.
690
+ */
691
+ minute?: LocaleDateFieldNames;
692
+ /**
693
+ * The field names for a second.
694
+ */
695
+ second?: LocaleDateFieldNames;
696
+ /**
697
+ * The field names for a zone.
698
+ */
699
+ zone?: LocaleDateFieldNames;
700
+ }
701
+ /**
702
+ * Describes the calendar data of the locale, including patterns, formats, and field names.
703
+ */
704
+ interface LocaleCalendar {
705
+ /**
706
+ * The GMT format of the locale.
707
+ */
708
+ gmtFormat?: string;
709
+ /**
710
+ * The zero (offset) GMT format of the locale.
711
+ */
712
+ gmtZeroFormat?: string;
713
+ /**
714
+ * The predefined patterns of the locale.
715
+ */
716
+ patterns?: LocaleCalendarPatterns;
717
+ /**
718
+ * The date and time formats of the locale.
719
+ */
720
+ dateTimeFormats?: LocaleDateTimeFormats;
721
+ /**
722
+ * The time formats of the locale.
723
+ */
724
+ timeFormats?: LocaleTimeFormats;
725
+ /**
726
+ * The date formats of the locale.
727
+ */
728
+ dateFormats?: LocaleDateFormats;
729
+ /**
730
+ * The data for the day names of the locale.
731
+ */
732
+ days?: LocaleDateFormatNameTypes;
733
+ /**
734
+ * The data for the day-period names of the locale.
735
+ */
736
+ dayPeriods?: LocaleDayPeriodNameTypes;
737
+ /**
738
+ * The data for the month names of the locale.
739
+ */
740
+ months?: LocaleDateFormatNameTypes;
741
+ /**
742
+ * The data for the quarter names of the locale.
743
+ */
744
+ quarters?: LocaleDateFormatNameTypes;
745
+ /**
746
+ * The data for the era names of the locale.
747
+ */
748
+ eras?: LocaleDateFormatNameTypes;
749
+ /**
750
+ * The date-field names of the locale.
751
+ */
752
+ dateFields: LocaleDateFieldNameTypes;
753
+ }
754
+ /**
755
+ * Describes the data of the locale, including name, territory, numbers, and calendar.
756
+ */
757
+ interface Locale {
758
+ /**
759
+ * The name of the locale.
760
+ */
761
+ name?: string;
762
+ /**
763
+ * The territory of the locale.
764
+ */
765
+ territory?: string;
766
+ /**
767
+ * The numbers data of the locale.
768
+ */
769
+ numbers?: LocaleNumbers;
770
+ /**
771
+ * The calendar data of the locale.
772
+ */
773
+ calendar?: LocaleCalendar;
774
+ }
775
+
776
+ /**
777
+ * Wraps Kendo Intl methods to provide enhanced error handling and documentation for the Kendo Angular Intl package.
778
+ *
779
+ * Includes utility functions for formatting, parsing, and retrieving locale data, as well as error message enhancements.
780
+ *
781
+ * @example
782
+ * ```ts
783
+ * import { formatDate, parseNumber, localeData } from '@progress/kendo-angular-intl';
784
+ * const formatted = formatDate(new Date(), { date: 'short' });
785
+ * ```
786
+ */
787
+ /**
788
+ * @hidden
789
+ */
790
+ declare const dateFormatNames: Function;
791
+ /**
792
+ * @hidden
793
+ */
794
+ declare const dateFieldName: Function;
795
+ /**
796
+ * @hidden
797
+ */
798
+ declare const firstDay: Function;
799
+ /**
800
+ * @hidden
801
+ */
802
+ declare const format: Function;
803
+ /**
804
+ * @hidden
805
+ */
806
+ declare const formatDate: Function;
807
+ /**
808
+ * @hidden
809
+ */
810
+ declare const formatNumber: Function;
811
+ /**
812
+ * @hidden
813
+ */
814
+ declare const load: Function;
815
+ /**
816
+ * @hidden
817
+ */
818
+ declare const numberSymbols: Function;
819
+ /**
820
+ * @hidden
821
+ */
822
+ declare const parseDate: Function;
823
+ /**
824
+ * @hidden
825
+ */
826
+ declare const parseNumber: Function;
827
+ /**
828
+ * @hidden
829
+ */
830
+ declare const splitDateFormat: Function;
831
+ /**
832
+ * @hidden
833
+ */
834
+ declare const toString: Function;
835
+ /**
836
+ * @hidden
837
+ */
838
+ declare const weekendRange: Function;
839
+ /**
840
+ * Sets a pre-built locale.
841
+ *
842
+ * @param data - The pre-built locale data.
843
+ */
844
+ declare const setData: (data: any) => void;
845
+ /**
846
+ * Retrieves the locale data for the specified locale.
847
+ *
848
+ * @param locale - The locale ID.
849
+ * @returns The locale data.
850
+ */
851
+ declare const localeData: (locale: string) => Locale;
852
+
853
+ /**
854
+ * Utility array that contains all `kendoNumber` related components and directives.
855
+ */
856
+ declare const KENDO_NUMBER: readonly [typeof NumberPipe];
857
+ /**
858
+ * Utility array that contains all `kendoDate` related components and directives.
859
+ */
860
+ declare const KENDO_DATE: readonly [typeof DatePipe];
861
+ /**
862
+ * Utility array that contains all `@progress/kendo-angular-intl` related components and directives.
863
+ */
864
+ declare const KENDO_INTL: readonly [typeof NumberPipe, typeof DatePipe];
865
+
866
+ export { CldrIntlService, DatePipe, IntlModule, IntlService, KENDO_DATE, KENDO_INTL, KENDO_NUMBER, NumberPipe, cldrServiceFactory, dateFieldName, dateFormatNames, firstDay, format, formatDate, formatNumber, load, localeData, numberSymbols, parseDate, parseNumber, setData, splitDateFormat, toString, weekendRange };
867
+ export type { Locale, LocaleCalendar, LocaleCalendarPatterns, LocaleCurrencies, LocaleCurrency, LocaleDateFieldNameTypes, LocaleDateFieldNames, LocaleDateFormatNameTypes, LocaleDateFormatNames, LocaleDateFormats, LocaleDateTimeFormats, LocaleDayPeriodNameTypes, LocaleDayPeriodNames, LocaleNumberSymbols, LocaleNumbers, LocaleTimeFormats };