@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/fesm2022/progress-kendo-angular-intl.mjs +18 -18
- package/index.d.ts +863 -7
- package/package-metadata.mjs +2 -2
- package/package.json +8 -8
- package/date.pipe.d.ts +0 -41
- package/directives.d.ts +0 -18
- package/error-solutions.d.ts +0 -10
- package/intl-members.d.ts +0 -82
- package/intl.module.d.ts +0 -16
- package/intl.service.d.ts +0 -305
- package/locale-data.interface.d.ts +0 -392
- package/number.pipe.d.ts +0 -41
- package/package-metadata.d.ts +0 -9
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "
|
|
10
|
+
"publishDate": 1783688465,
|
|
11
|
+
"version": "25.0.0-develop.2",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-intl",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0-develop.2",
|
|
4
4
|
"description": "Kendo UI Internationalization for Angular components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1783688465,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"./locales/**/*"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@angular/animations": "
|
|
34
|
-
"@angular/common": "
|
|
35
|
-
"@angular/core": "
|
|
36
|
-
"@angular/platform-browser": "
|
|
37
|
-
"@progress/kendo-angular-common": "
|
|
33
|
+
"@angular/animations": "20 - 22",
|
|
34
|
+
"@angular/common": "20 - 22",
|
|
35
|
+
"@angular/core": "20 - 22",
|
|
36
|
+
"@angular/platform-browser": "20 - 22",
|
|
37
|
+
"@progress/kendo-angular-common": "25.0.0-develop.2",
|
|
38
38
|
"@progress/kendo-licensing": "^1.11.0",
|
|
39
39
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"tslib": "^2.3.1",
|
|
43
|
-
"@progress/kendo-angular-schematics": "
|
|
43
|
+
"@progress/kendo-angular-schematics": "25.0.0-develop.2",
|
|
44
44
|
"@progress/kendo-intl": "3.2.1"
|
|
45
45
|
},
|
|
46
46
|
"schematics": "./schematics/collection.json",
|
package/date.pipe.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PipeTransform } from '@angular/core';
|
|
6
|
-
import { IntlService } from './intl.service';
|
|
7
|
-
import { DateFormatOptions } from '@progress/kendo-intl';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Formats a date value to a string based on the requested format.
|
|
11
|
-
* This pipe uses the [IntlService](https://www.telerik.com/kendo-angular-ui/components/globalization/internationalization/api/intlservice).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <ul>
|
|
16
|
-
* <li>{{date | kendoDate }}</li>
|
|
17
|
-
* <li>{{milliseconds | kendoDate: 'M/dd/yyy' }}</li>
|
|
18
|
-
* <li>{{stringDate | kendoDate: 'G' }}</li>
|
|
19
|
-
* </ul>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class DatePipe implements PipeTransform {
|
|
23
|
-
private intlService;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
constructor(intlService: IntlService);
|
|
28
|
-
/**
|
|
29
|
-
* Converts a `Date` object into a string based on the specified format.
|
|
30
|
-
* If no format is provided, the default short date format is used.
|
|
31
|
-
*
|
|
32
|
-
* @param value - The date to format.
|
|
33
|
-
* @param format - The format string or options (optional).
|
|
34
|
-
* @param localeId - The ID of the locale which will be used instead of the default one (optional).
|
|
35
|
-
* @returns The formatted date as a string.
|
|
36
|
-
*/
|
|
37
|
-
transform(value: any, format?: string | DateFormatOptions, localeId?: string): any;
|
|
38
|
-
private normalize;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
40
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "kendoDate", true>;
|
|
41
|
-
}
|
package/directives.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { DatePipe } from "./date.pipe";
|
|
6
|
-
import { NumberPipe } from "./number.pipe";
|
|
7
|
-
/**
|
|
8
|
-
* Utility array that contains all `kendoNumber` related components and directives.
|
|
9
|
-
*/
|
|
10
|
-
export declare const KENDO_NUMBER: readonly [typeof NumberPipe];
|
|
11
|
-
/**
|
|
12
|
-
* Utility array that contains all `kendoDate` related components and directives.
|
|
13
|
-
*/
|
|
14
|
-
export declare const KENDO_DATE: readonly [typeof DatePipe];
|
|
15
|
-
/**
|
|
16
|
-
* Utility array that contains all `@progress/kendo-angular-intl` related components and directives.
|
|
17
|
-
*/
|
|
18
|
-
export declare const KENDO_INTL: readonly [typeof NumberPipe, typeof DatePipe];
|
package/error-solutions.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const errorSolutions: {
|
|
9
|
-
[x: string]: string;
|
|
10
|
-
};
|
package/intl-members.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Locale } from './locale-data.interface';
|
|
6
|
-
export { DateFieldNameOptions, DateFormatNameOptions, DateFormatOptions, NumberFormatOptions, DateFormatPart } from '@progress/kendo-intl';
|
|
7
|
-
/**
|
|
8
|
-
* Wraps Kendo Intl methods to provide enhanced error handling and documentation for the Kendo Angular Intl package.
|
|
9
|
-
*
|
|
10
|
-
* Includes utility functions for formatting, parsing, and retrieving locale data, as well as error message enhancements.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* import { formatDate, parseNumber, localeData } from '@progress/kendo-angular-intl';
|
|
15
|
-
* const formatted = formatDate(new Date(), { date: 'short' });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export declare const dateFormatNames: Function;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
export declare const dateFieldName: Function;
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export declare const firstDay: Function;
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export declare const format: Function;
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export declare const formatDate: Function;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
export declare const formatNumber: Function;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
export declare const load: Function;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
export declare const numberSymbols: Function;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
export declare const parseDate: Function;
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
export declare const parseNumber: Function;
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
export declare const splitDateFormat: Function;
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
*/
|
|
65
|
-
export declare const toString: Function;
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
export declare const weekendRange: Function;
|
|
70
|
-
/**
|
|
71
|
-
* Sets a pre-built locale.
|
|
72
|
-
*
|
|
73
|
-
* @param data - The pre-built locale data.
|
|
74
|
-
*/
|
|
75
|
-
export declare const setData: (data: any) => void;
|
|
76
|
-
/**
|
|
77
|
-
* Retrieves the locale data for the specified locale.
|
|
78
|
-
*
|
|
79
|
-
* @param locale - The locale ID.
|
|
80
|
-
* @returns The locale data.
|
|
81
|
-
*/
|
|
82
|
-
export declare const localeData: (locale: string) => Locale;
|
package/intl.module.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./number.pipe";
|
|
7
|
-
import * as i2 from "./date.pipe";
|
|
8
|
-
/**
|
|
9
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
10
|
-
* definition for the Intl services.
|
|
11
|
-
*/
|
|
12
|
-
export declare class IntlModule {
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IntlModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IntlModule, never, [typeof i1.NumberPipe, typeof i2.DatePipe], [typeof i1.NumberPipe, typeof i2.DatePipe]>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IntlModule>;
|
|
16
|
-
}
|
package/intl.service.d.ts
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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
|
-
* Represents the abstract base class for the Kendo UI for Angular Internationalization service.
|
|
14
|
-
* Provides methods for formatting and parsing dates, numbers, and strings according to the current locale.
|
|
15
|
-
*
|
|
16
|
-
* Extend this class to implement custom internationalization logic or use the default CLDR-based implementation.
|
|
17
|
-
*/
|
|
18
|
-
export declare abstract class IntlService {
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
readonly changes: EventEmitter<any>;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
constructor();
|
|
27
|
-
/**
|
|
28
|
-
* Specifies that the service was changed.
|
|
29
|
-
*/
|
|
30
|
-
notify(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Formats a string with placeholders such as
|
|
33
|
-
* `Total amount {0:c}`.
|
|
34
|
-
*
|
|
35
|
-
* @param format - The format string.
|
|
36
|
-
* @param values - One or more values to output in the format string placeholders.
|
|
37
|
-
* @returns The formatted string.
|
|
38
|
-
*/
|
|
39
|
-
abstract format(format: string, ...values: any[]): string;
|
|
40
|
-
/**
|
|
41
|
-
* Converts an object into a string based on the specified format.
|
|
42
|
-
*
|
|
43
|
-
* @param value - The value to format.
|
|
44
|
-
* @param format - The format to use.
|
|
45
|
-
* @param localeId - The locale ID to use in place of the default (optional).
|
|
46
|
-
* @returns The formatted object as a string.
|
|
47
|
-
*/
|
|
48
|
-
abstract toString(value: any, format: string | any, localeId?: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* Converts a `Date` object into a string based on the specified format
|
|
51
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/globalization/internationalization/parsing-and-formatting#date-formatting)).
|
|
52
|
-
* If no format is provided, the default short date format is used.
|
|
53
|
-
*
|
|
54
|
-
* @param value - The date to format.
|
|
55
|
-
* @param format - The format string or options (optional).
|
|
56
|
-
* @param localeId - The locale ID to use in place of the default (optional).
|
|
57
|
-
* @returns The formatted date as a string.
|
|
58
|
-
*/
|
|
59
|
-
abstract formatDate(value: Date, format?: string | DateFormatOptions, localeId?: string): string;
|
|
60
|
-
/**
|
|
61
|
-
* Converts a string into a `Date` object based on the specified format.
|
|
62
|
-
*
|
|
63
|
-
* @param value - The string to convert.
|
|
64
|
-
* @param format - The format strings or options (optional).
|
|
65
|
-
* @param localeId - The locale ID to use in place of the default (optional).
|
|
66
|
-
* @returns The parsed date.
|
|
67
|
-
*/
|
|
68
|
-
abstract parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string): Date;
|
|
69
|
-
/**
|
|
70
|
-
* Converts a string into a `Number`.
|
|
71
|
-
*
|
|
72
|
-
* @param value - The string to convert.
|
|
73
|
-
* @param format - The format string or options (optional).
|
|
74
|
-
* @param localeId - The locale ID to use in place of the default (optional).
|
|
75
|
-
* @returns The parsed number.
|
|
76
|
-
*/
|
|
77
|
-
abstract parseNumber(value: string, format?: string | NumberFormatOptions, localeId?: string): number;
|
|
78
|
-
/**
|
|
79
|
-
* Converts a `Number` into a string based on the specified format.
|
|
80
|
-
*
|
|
81
|
-
* @param value - The number to format.
|
|
82
|
-
* @param format - The format string or options.
|
|
83
|
-
* @param localeId - The locale ID to use in place of the default (optional).
|
|
84
|
-
* @returns The formatted number as a string.
|
|
85
|
-
*/
|
|
86
|
-
abstract formatNumber(value: number, format: string | NumberFormatOptions, localeId?: string): string;
|
|
87
|
-
/**
|
|
88
|
-
* Returns the day names from the current locale based on the option.
|
|
89
|
-
*
|
|
90
|
-
* @param options - Detailed configuration for the desired date format.
|
|
91
|
-
* @param localeId - The locale ID to use in place of the default (optional).
|
|
92
|
-
* @returns The day names from the current locale based on the option.
|
|
93
|
-
*/
|
|
94
|
-
abstract dateFormatNames(options: DateFormatNameOptions, localeId?: string): any;
|
|
95
|
-
/**
|
|
96
|
-
* Returns a localized date field name based on specific `dateFieldName` options.
|
|
97
|
-
*
|
|
98
|
-
* @param options - Detailed configuration for the desired date field name.
|
|
99
|
-
* @param localeId - The locale ID to use (optional). If not specified, the `"en"` locale ID is used.
|
|
100
|
-
* @returns The localized date field name from the current locale based on the option.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* ```ts
|
|
104
|
-
* dateFieldName({ type: 'day' }); //returns 'day';
|
|
105
|
-
* dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
|
|
106
|
-
* dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
|
|
107
|
-
* dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
abstract dateFieldName(options: DateFieldNameOptions, localeId?: string): string;
|
|
111
|
-
/**
|
|
112
|
-
* Splits the date format into objects containing information about each part of the pattern.
|
|
113
|
-
*
|
|
114
|
-
* @param format - The format string or options.
|
|
115
|
-
* @param localeId - The locale ID to use (optional). If not specified, the `"en"` locale ID is used.
|
|
116
|
-
* @returns The date format parts.
|
|
117
|
-
*/
|
|
118
|
-
abstract splitDateFormat(format: string | DateFormatOptions, localeId?: string): DateFormatPart[];
|
|
119
|
-
/**
|
|
120
|
-
* Returns the number symbols from the current locale based on the option.
|
|
121
|
-
*
|
|
122
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
123
|
-
* @returns The number symbols from the current locale.
|
|
124
|
-
*/
|
|
125
|
-
abstract numberSymbols(localeId?: string): any;
|
|
126
|
-
/**
|
|
127
|
-
* Returns the first day index starting from Sunday.
|
|
128
|
-
*
|
|
129
|
-
* @param localeId - The locale ID (optional). Defaults to the current locale ID.
|
|
130
|
-
* @returns The index of the first day of the week (0 == Sunday).
|
|
131
|
-
*/
|
|
132
|
-
abstract firstDay(localeId?: string): number;
|
|
133
|
-
/**
|
|
134
|
-
* Returns the start and end index of the locale weekend starting from Sunday.
|
|
135
|
-
*
|
|
136
|
-
* @param localeId - The locale ID (optional). Defaults to the current locale ID.
|
|
137
|
-
* @returns The start and end index of the locale weekend (0 == Sunday).
|
|
138
|
-
*/
|
|
139
|
-
abstract weekendRange(localeId?: string): DayRange;
|
|
140
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IntlService, never>;
|
|
141
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IntlService>;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Represents the Internationalization service implemented using the CLDR Database via the `@progress/kendo-intl` package.
|
|
145
|
-
* Provides locale-aware formatting and parsing for dates, numbers, and strings.
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```ts
|
|
149
|
-
* import { CldrIntlService } from '@progress/kendo-angular-intl';
|
|
150
|
-
* const intl = new CldrIntlService('en-US');
|
|
151
|
-
* intl.formatDate(new Date(), { date: 'short' });
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
154
|
-
export declare class CldrIntlService extends IntlService {
|
|
155
|
-
private locale;
|
|
156
|
-
/**
|
|
157
|
-
* Specifies or gets the current locale ID.
|
|
158
|
-
*/
|
|
159
|
-
get localeId(): string;
|
|
160
|
-
set localeId(value: string);
|
|
161
|
-
/**
|
|
162
|
-
* Creates a new instance of the service with the ID of the specified locale.
|
|
163
|
-
*
|
|
164
|
-
* Note that the parts of the locale ID can be separated by either `_` (underscore)
|
|
165
|
-
* or `-` (dash).
|
|
166
|
-
*
|
|
167
|
-
* @param localeId - The default locale ID.
|
|
168
|
-
*/
|
|
169
|
-
constructor(localeId: string);
|
|
170
|
-
/**
|
|
171
|
-
* Formats a string with placeholders such as
|
|
172
|
-
* `Total amount {0:c}`.
|
|
173
|
-
*
|
|
174
|
-
* @param format - The format string.
|
|
175
|
-
* @param values - One or more values to output in the format string placeholders.
|
|
176
|
-
* @returns The formatted string.
|
|
177
|
-
*/
|
|
178
|
-
format(format: string, ...values: any[]): string;
|
|
179
|
-
/**
|
|
180
|
-
* Converts an object into a string based on the specified format.
|
|
181
|
-
*
|
|
182
|
-
* @param value - The value to format.
|
|
183
|
-
* @param format - The format to use.
|
|
184
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
185
|
-
* @returns The formatted object as a string.
|
|
186
|
-
*/
|
|
187
|
-
toString(value: any, format: string | any, localeId?: string): string;
|
|
188
|
-
/**
|
|
189
|
-
* Converts a `Date` object into a string based on the specified format.
|
|
190
|
-
* If no format is provided, the default short date format is used.
|
|
191
|
-
*
|
|
192
|
-
* @param value - The date to format.
|
|
193
|
-
* @param format - The format string or options (optional).
|
|
194
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
195
|
-
* @returns The formatted date as a string.
|
|
196
|
-
*/
|
|
197
|
-
formatDate(value: Date, format?: string | DateFormatOptions, localeId?: string): string;
|
|
198
|
-
/**
|
|
199
|
-
* Converts a string into a `Date` object based on the specified format.
|
|
200
|
-
*
|
|
201
|
-
* @param value - The string to convert.
|
|
202
|
-
* @param format - The format strings or options (optional).
|
|
203
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
204
|
-
* @returns The parsed date.
|
|
205
|
-
*/
|
|
206
|
-
parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[], localeId?: string): Date;
|
|
207
|
-
/**
|
|
208
|
-
* Converts a string into a `Number`.
|
|
209
|
-
*
|
|
210
|
-
* @param value - The string to convert.
|
|
211
|
-
* @param format - The format string or options (optional).
|
|
212
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
213
|
-
* @returns The parsed number.
|
|
214
|
-
*/
|
|
215
|
-
parseNumber(value: string, format?: string | NumberFormatOptions, localeId?: string): number;
|
|
216
|
-
/**
|
|
217
|
-
* Converts a `Number` into a string based on the specified format.
|
|
218
|
-
*
|
|
219
|
-
* @param value - The number to format.
|
|
220
|
-
* @param format - The format string or options.
|
|
221
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
222
|
-
* @returns The formatted number as a string.
|
|
223
|
-
*/
|
|
224
|
-
formatNumber(value: number, format: string | NumberFormatOptions, localeId?: string): string;
|
|
225
|
-
/**
|
|
226
|
-
* Returns the date names from the current locale based on the option.
|
|
227
|
-
*
|
|
228
|
-
* The available `type` values are:
|
|
229
|
-
* - `era`
|
|
230
|
-
* - `year`
|
|
231
|
-
* - `quarter`
|
|
232
|
-
* - `month`
|
|
233
|
-
* - `week`
|
|
234
|
-
* - `day`
|
|
235
|
-
* - `dayperiod`
|
|
236
|
-
* - `hour`
|
|
237
|
-
* - `minute`
|
|
238
|
-
* - `second`
|
|
239
|
-
* - `zone`
|
|
240
|
-
*
|
|
241
|
-
* The available `nameType` values are:
|
|
242
|
-
* - `wide`
|
|
243
|
-
* - `narrow`
|
|
244
|
-
* - `short`
|
|
245
|
-
*
|
|
246
|
-
* @param options - Detailed configuration for the desired date field name.
|
|
247
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
248
|
-
* @returns The day names from the current locale based on the option.
|
|
249
|
-
*
|
|
250
|
-
* @example
|
|
251
|
-
* ```ts
|
|
252
|
-
* dateFieldName({ type: 'day' }); //returns 'day';
|
|
253
|
-
* dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
|
|
254
|
-
* dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
|
|
255
|
-
* dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
|
|
256
|
-
* ```
|
|
257
|
-
*/
|
|
258
|
-
dateFieldName(options: DateFieldNameOptions, localeId?: string): string;
|
|
259
|
-
/**
|
|
260
|
-
* Returns a localized date field name based on specific `dateFieldName` options.
|
|
261
|
-
*
|
|
262
|
-
* The available type values are:
|
|
263
|
-
* - `day`
|
|
264
|
-
* - `dayperiod`
|
|
265
|
-
* - `months`
|
|
266
|
-
* - `quarters`
|
|
267
|
-
* - `eras`
|
|
268
|
-
*
|
|
269
|
-
* @param options - Detailed configuration for the desired date format.
|
|
270
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
271
|
-
* @returns The day names from the current locale based on the option.
|
|
272
|
-
*/
|
|
273
|
-
dateFormatNames(options: DateFormatNameOptions, localeId?: string): any;
|
|
274
|
-
/**
|
|
275
|
-
* Splits the date format into objects containing information about each part of the pattern.
|
|
276
|
-
*
|
|
277
|
-
* @param format - The format string or options.
|
|
278
|
-
* @param localeId - The locale ID to use (optional). If not specified, the `"en"` locale ID is used.
|
|
279
|
-
* @returns The date format parts.
|
|
280
|
-
*/
|
|
281
|
-
splitDateFormat(format: string | DateFormatOptions, localeId?: string): DateFormatPart[];
|
|
282
|
-
/**
|
|
283
|
-
* Returns the number symbols from the current locale based on the option.
|
|
284
|
-
*
|
|
285
|
-
* @param localeId - The locale ID to use in place of the default one (optional).
|
|
286
|
-
* @returns The number symbols from the current locale.
|
|
287
|
-
*/
|
|
288
|
-
numberSymbols(localeId?: string): any;
|
|
289
|
-
/**
|
|
290
|
-
* Returns the first day index starting from Sunday.
|
|
291
|
-
*
|
|
292
|
-
* @param localeId - The locale ID (optional). Defaults to the current locale ID.
|
|
293
|
-
* @returns The index of the first day of the week (0 == Sunday).
|
|
294
|
-
*/
|
|
295
|
-
firstDay(localeId?: string): number;
|
|
296
|
-
/**
|
|
297
|
-
* Returns the start and end index of the locale weekend starting from Sunday.
|
|
298
|
-
*
|
|
299
|
-
* @param localeId - The locale ID (optional). Defaults to the current locale ID.
|
|
300
|
-
* @returns The start and end index of the locale weekend (0 == Sunday).
|
|
301
|
-
*/
|
|
302
|
-
weekendRange(localeId?: string): DayRange;
|
|
303
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CldrIntlService, never>;
|
|
304
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CldrIntlService>;
|
|
305
|
-
}
|