@progress/kendo-angular-intl 17.0.0-develop.9 → 17.0.1-develop.1

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.
@@ -21,6 +21,7 @@ const isNumeric = (value) => !isNaN(value - parseFloat(value));
21
21
  * ```
22
22
  */
23
23
  export class DatePipe {
24
+ intlService;
24
25
  /**
25
26
  * @hidden
26
27
  */
@@ -52,10 +53,10 @@ export class DatePipe {
52
53
  }
53
54
  return value;
54
55
  }
56
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePipe, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
57
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DatePipe, isStandalone: true, name: "kendoDate" });
55
58
  }
56
- DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
57
- DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, isStandalone: true, name: "kendoDate" });
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePipe, decorators: [{
59
60
  type: Pipe,
60
61
  args: [{
61
62
  name: 'kendoDate',
@@ -13,11 +13,11 @@ import * as i2 from "./date.pipe";
13
13
  * definition for the Intl services.
14
14
  */
15
15
  export class IntlModule {
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IntlModule, imports: [i1.NumberPipe, i2.DatePipe], exports: [i1.NumberPipe, i2.DatePipe] });
18
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlModule });
16
19
  }
17
- IntlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
18
- IntlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, imports: [i1.NumberPipe, i2.DatePipe], exports: [i1.NumberPipe, i2.DatePipe] });
19
- IntlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlModule, decorators: [{
21
21
  type: NgModule,
22
22
  args: [{
23
23
  imports: [...KENDO_INTL],
@@ -20,14 +20,14 @@ export function cldrServiceFactory(localeId) {
20
20
  * for the current locale.
21
21
  */
22
22
  export class IntlService {
23
+ /**
24
+ * @hidden
25
+ */
26
+ changes = new EventEmitter();
23
27
  /**
24
28
  * @hidden
25
29
  */
26
30
  constructor() {
27
- /**
28
- * @hidden
29
- */
30
- this.changes = new EventEmitter();
31
31
  validatePackage(packageMetadata);
32
32
  }
33
33
  /**
@@ -36,10 +36,10 @@ export class IntlService {
36
36
  notify() {
37
37
  this.changes.emit();
38
38
  }
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
40
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlService, providedIn: 'root', useFactory: cldrServiceFactory, deps: [{ token: LOCALE_ID }] });
39
41
  }
40
- IntlService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
41
- IntlService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, providedIn: 'root', useFactory: cldrServiceFactory, deps: [{ token: LOCALE_ID }] });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlService, decorators: [{
43
43
  type: Injectable,
44
44
  args: [{
45
45
  providedIn: 'root',
@@ -52,18 +52,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
52
52
  * the CLDR Database via the `@progress/kendo-intl` package.
53
53
  */
54
54
  export class CldrIntlService extends IntlService {
55
- /**
56
- * Creates a new instance of the service with the ID of the specified locale.
57
- *
58
- * Note that the parts of the locale ID can be separated by either `_` (underscore)
59
- * or `-` (dash).
60
- *
61
- * @param localeId - The default locale ID.
62
- */
63
- constructor(localeId) {
64
- super();
65
- this.localeId = localeId;
66
- }
55
+ locale;
67
56
  /**
68
57
  * Gets or sets the current locale ID.
69
58
  */
@@ -80,6 +69,18 @@ export class CldrIntlService extends IntlService {
80
69
  this.notify();
81
70
  }
82
71
  }
72
+ /**
73
+ * Creates a new instance of the service with the ID of the specified locale.
74
+ *
75
+ * Note that the parts of the locale ID can be separated by either `_` (underscore)
76
+ * or `-` (dash).
77
+ *
78
+ * @param localeId - The default locale ID.
79
+ */
80
+ constructor(localeId) {
81
+ super();
82
+ this.localeId = localeId;
83
+ }
83
84
  /**
84
85
  * Formats a string with placeholders such as
85
86
  * `Total amount {0:c}`.
@@ -238,10 +239,10 @@ export class CldrIntlService extends IntlService {
238
239
  weekendRange(localeId) {
239
240
  return weekendRange(localeId || this.localeId);
240
241
  }
242
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CldrIntlService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
243
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CldrIntlService });
241
244
  }
242
- CldrIntlService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
243
- CldrIntlService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService });
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService, decorators: [{
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CldrIntlService, decorators: [{
245
246
  type: Injectable
246
247
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
247
248
  type: Inject,
@@ -20,6 +20,7 @@ import * as i1 from "./intl.service";
20
20
  * ```
21
21
  */
22
22
  export class NumberPipe {
23
+ intlService;
23
24
  /**
24
25
  * @hidden
25
26
  */
@@ -45,10 +46,10 @@ export class NumberPipe {
45
46
  }
46
47
  return value;
47
48
  }
49
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumberPipe, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
50
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NumberPipe, isStandalone: true, name: "kendoNumber" });
48
51
  }
49
- NumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, deps: [{ token: i1.IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
50
- NumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, isStandalone: true, name: "kendoNumber" });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumberPipe, decorators: [{
52
53
  type: Pipe,
53
54
  args: [{
54
55
  name: 'kendoNumber',
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-intl',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1729174280,
13
- version: '17.0.0-develop.9',
12
+ publishDate: 1731429597,
13
+ version: '17.0.1-develop.1',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -14,8 +14,8 @@ const packageMetadata = {
14
14
  name: '@progress/kendo-angular-intl',
15
15
  productName: 'Kendo UI for Angular',
16
16
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
17
- publishDate: 1729174280,
18
- version: '17.0.0-develop.9',
17
+ publishDate: 1731429597,
18
+ version: '17.0.1-develop.1',
19
19
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
20
20
  };
21
21
 
@@ -139,14 +139,14 @@ function cldrServiceFactory(localeId) {
139
139
  * for the current locale.
140
140
  */
141
141
  class IntlService {
142
+ /**
143
+ * @hidden
144
+ */
145
+ changes = new EventEmitter();
142
146
  /**
143
147
  * @hidden
144
148
  */
145
149
  constructor() {
146
- /**
147
- * @hidden
148
- */
149
- this.changes = new EventEmitter();
150
150
  validatePackage(packageMetadata);
151
151
  }
152
152
  /**
@@ -155,10 +155,10 @@ class IntlService {
155
155
  notify() {
156
156
  this.changes.emit();
157
157
  }
158
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
159
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlService, providedIn: 'root', useFactory: cldrServiceFactory, deps: [{ token: LOCALE_ID }] });
158
160
  }
159
- IntlService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
160
- IntlService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, providedIn: 'root', useFactory: cldrServiceFactory, deps: [{ token: LOCALE_ID }] });
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlService, decorators: [{
162
162
  type: Injectable,
163
163
  args: [{
164
164
  providedIn: 'root',
@@ -171,18 +171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
171
171
  * the CLDR Database via the `@progress/kendo-intl` package.
172
172
  */
173
173
  class CldrIntlService extends IntlService {
174
- /**
175
- * Creates a new instance of the service with the ID of the specified locale.
176
- *
177
- * Note that the parts of the locale ID can be separated by either `_` (underscore)
178
- * or `-` (dash).
179
- *
180
- * @param localeId - The default locale ID.
181
- */
182
- constructor(localeId) {
183
- super();
184
- this.localeId = localeId;
185
- }
174
+ locale;
186
175
  /**
187
176
  * Gets or sets the current locale ID.
188
177
  */
@@ -199,6 +188,18 @@ class CldrIntlService extends IntlService {
199
188
  this.notify();
200
189
  }
201
190
  }
191
+ /**
192
+ * Creates a new instance of the service with the ID of the specified locale.
193
+ *
194
+ * Note that the parts of the locale ID can be separated by either `_` (underscore)
195
+ * or `-` (dash).
196
+ *
197
+ * @param localeId - The default locale ID.
198
+ */
199
+ constructor(localeId) {
200
+ super();
201
+ this.localeId = localeId;
202
+ }
202
203
  /**
203
204
  * Formats a string with placeholders such as
204
205
  * `Total amount {0:c}`.
@@ -357,10 +358,10 @@ class CldrIntlService extends IntlService {
357
358
  weekendRange(localeId) {
358
359
  return weekendRange(localeId || this.localeId);
359
360
  }
361
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CldrIntlService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
362
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CldrIntlService });
360
363
  }
361
- CldrIntlService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
362
- CldrIntlService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService });
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService, decorators: [{
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CldrIntlService, decorators: [{
364
365
  type: Injectable
365
366
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
366
367
  type: Inject,
@@ -382,6 +383,7 @@ const isNumeric = (value) => !isNaN(value - parseFloat(value));
382
383
  * ```
383
384
  */
384
385
  class DatePipe {
386
+ intlService;
385
387
  /**
386
388
  * @hidden
387
389
  */
@@ -413,10 +415,10 @@ class DatePipe {
413
415
  }
414
416
  return value;
415
417
  }
418
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePipe, deps: [{ token: IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
419
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DatePipe, isStandalone: true, name: "kendoDate" });
416
420
  }
417
- DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, deps: [{ token: IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
418
- DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, isStandalone: true, name: "kendoDate" });
419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, decorators: [{
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DatePipe, decorators: [{
420
422
  type: Pipe,
421
423
  args: [{
422
424
  name: 'kendoDate',
@@ -438,6 +440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
438
440
  * ```
439
441
  */
440
442
  class NumberPipe {
443
+ intlService;
441
444
  /**
442
445
  * @hidden
443
446
  */
@@ -463,10 +466,10 @@ class NumberPipe {
463
466
  }
464
467
  return value;
465
468
  }
469
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumberPipe, deps: [{ token: IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
470
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NumberPipe, isStandalone: true, name: "kendoNumber" });
466
471
  }
467
- NumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, deps: [{ token: IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
468
- NumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, isStandalone: true, name: "kendoNumber" });
469
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, decorators: [{
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumberPipe, decorators: [{
470
473
  type: Pipe,
471
474
  args: [{
472
475
  name: 'kendoNumber',
@@ -500,11 +503,11 @@ const KENDO_INTL = [
500
503
  * definition for the Intl services.
501
504
  */
502
505
  class IntlModule {
506
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
507
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IntlModule, imports: [NumberPipe, DatePipe], exports: [NumberPipe, DatePipe] });
508
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlModule });
503
509
  }
504
- IntlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
505
- IntlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, imports: [NumberPipe, DatePipe], exports: [NumberPipe, DatePipe] });
506
- IntlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule });
507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, decorators: [{
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IntlModule, decorators: [{
508
511
  type: NgModule,
509
512
  args: [{
510
513
  imports: [...KENDO_INTL],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-intl",
3
- "version": "17.0.0-develop.9",
3
+ "version": "17.0.1-develop.1",
4
4
  "description": "Kendo UI Internationalization for Angular components",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -24,17 +24,17 @@
24
24
  "./locales/**/*"
25
25
  ],
26
26
  "peerDependencies": {
27
- "@angular/animations": "15 - 18",
28
- "@angular/common": "15 - 18",
29
- "@angular/core": "15 - 18",
30
- "@angular/platform-browser": "15 - 18",
31
- "@progress/kendo-angular-common": "17.0.0-develop.9",
27
+ "@angular/animations": "16 - 18",
28
+ "@angular/common": "16 - 18",
29
+ "@angular/core": "16 - 18",
30
+ "@angular/platform-browser": "16 - 18",
31
+ "@progress/kendo-angular-common": "17.0.1-develop.1",
32
32
  "@progress/kendo-licensing": "^1.0.2",
33
33
  "rxjs": "^6.5.3 || ^7.0.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "tslib": "^2.3.1",
37
- "@progress/kendo-angular-schematics": "17.0.0-develop.9",
37
+ "@progress/kendo-angular-schematics": "17.0.1-develop.1",
38
38
  "@progress/kendo-intl": "^3.1.0"
39
39
  },
40
40
  "schematics": "./schematics/collection.json",
@@ -45,17 +45,11 @@
45
45
  },
46
46
  ".": {
47
47
  "types": "./index.d.ts",
48
- "esm2020": "./esm2020/progress-kendo-angular-intl.mjs",
49
- "es2020": "./fesm2020/progress-kendo-angular-intl.mjs",
50
- "es2015": "./fesm2015/progress-kendo-angular-intl.mjs",
51
- "node": "./fesm2015/progress-kendo-angular-intl.mjs",
52
- "default": "./fesm2020/progress-kendo-angular-intl.mjs"
48
+ "esm2022": "./esm2022/progress-kendo-angular-intl.mjs",
49
+ "esm": "./esm2022/progress-kendo-angular-intl.mjs",
50
+ "default": "./fesm2022/progress-kendo-angular-intl.mjs"
53
51
  }
54
52
  },
55
- "module": "fesm2015/progress-kendo-angular-intl.mjs",
56
- "es2020": "fesm2020/progress-kendo-angular-intl.mjs",
57
- "esm2020": "esm2020/progress-kendo-angular-intl.mjs",
58
- "fesm2020": "fesm2020/progress-kendo-angular-intl.mjs",
59
- "fesm2015": "fesm2015/progress-kendo-angular-intl.mjs",
53
+ "module": "fesm2022/progress-kendo-angular-intl.mjs",
60
54
  "typings": "index.d.ts"
61
55
  }
@@ -1,522 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 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 { EventEmitter, LOCALE_ID, Injectable, Inject, Pipe, NgModule } from '@angular/core';
7
- import { validatePackage } from '@progress/kendo-licensing';
8
- import * as intl from '@progress/kendo-intl';
9
-
10
- /**
11
- * @hidden
12
- */
13
- const packageMetadata = {
14
- name: '@progress/kendo-angular-intl',
15
- productName: 'Kendo UI for Angular',
16
- productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
17
- publishDate: 1729174280,
18
- version: '17.0.0-develop.9',
19
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
20
- };
21
-
22
- const DOCS_URL = 'https://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/';
23
- /**
24
- * @hidden
25
- */
26
- const errorSolutions = {
27
- 'NoCurrency': `Solution: ${DOCS_URL}#toc-no-currency`,
28
- 'NoCurrencyDisplay': `Solution: ${DOCS_URL}#toc-no-currency-display`,
29
- 'NoCurrencyRegion': `Solution: ${DOCS_URL}#toc-no-currency-region`,
30
- 'NoDateFieldNames': `Solution: ${DOCS_URL}#toc-no-date-filed-names`,
31
- 'NoFirstDay': `Solution: ${DOCS_URL}#toc-no-first-day`,
32
- 'NoGMTInfo': `Solution: ${DOCS_URL}#toc-no-gmt-info`,
33
- 'NoLocale': `Solution: ${DOCS_URL}#toc-no-locale`,
34
- 'NoValidCurrency': `Solution: ${DOCS_URL}#toc-no-valid-currency`,
35
- 'NoWeekData': `Solution: ${DOCS_URL}#toc-no-week-data`
36
- };
37
-
38
- function formatMessage(error) {
39
- const message = error.message;
40
- const errorSolution = errorSolutions[Object.keys(errorSolutions).filter(key => message.indexOf(key) === 0)[0]];
41
- return errorSolution ? `${message} ${errorSolution}` : message;
42
- }
43
- // eslint-disable-next-line @typescript-eslint/ban-types
44
- function intlMethod(fn) {
45
- return function (...values) {
46
- try {
47
- return fn(...values);
48
- }
49
- catch (error) {
50
- error.message = formatMessage(error);
51
- throw error;
52
- }
53
- };
54
- }
55
- /**
56
- * @hidden
57
- */
58
- const dateFormatNames = intlMethod(intl.dateFormatNames);
59
- /**
60
- * @hidden
61
- */
62
- const dateFieldName = intlMethod(intl.dateFieldName);
63
- /**
64
- * @hidden
65
- */
66
- const firstDay = intlMethod(intl.firstDay);
67
- /**
68
- * @hidden
69
- */
70
- const format = intlMethod(intl.format);
71
- /**
72
- * @hidden
73
- */
74
- const formatDate = intlMethod(intl.formatDate);
75
- /**
76
- * @hidden
77
- */
78
- const formatNumber = intlMethod(intl.formatNumber);
79
- /**
80
- * @hidden
81
- */
82
- const load = intlMethod(intl.load);
83
- /**
84
- * @hidden
85
- */
86
- const numberSymbols = intlMethod(intl.numberSymbols);
87
- /**
88
- * @hidden
89
- */
90
- const parseDate = intlMethod(intl.parseDate);
91
- /**
92
- * @hidden
93
- */
94
- const parseNumber = intlMethod(intl.parseNumber);
95
- /**
96
- * @hidden
97
- */
98
- const splitDateFormat = intlMethod(intl.splitDateFormat);
99
- /**
100
- * @hidden
101
- */
102
- const toString = intlMethod(intl.toString);
103
- /**
104
- * @hidden
105
- */
106
- const weekendRange = intlMethod(intl.weekendRange);
107
- /**
108
- * Sets a pre-built locale.
109
- *
110
- * @params data - The pre-built locale data.
111
- */
112
- const setData = (data) => intl.setData(data);
113
- /**
114
- * Retrieves the locale data for the specified locale.
115
- *
116
- * @params locale - The locale id.
117
- * @returns data - The locale data.
118
- */
119
- const localeData = (locale) => {
120
- try {
121
- return intl.localeInfo(locale);
122
- }
123
- catch (error) {
124
- error.message = formatMessage(error);
125
- throw error;
126
- }
127
- };
128
-
129
- const LOCALE_REGEX = /_/g;
130
- /**
131
- * @hidden
132
- */
133
- function cldrServiceFactory(localeId) {
134
- return new CldrIntlService(localeId);
135
- }
136
- /**
137
- * An abstract base class that implements
138
- * the Internationalization service methods
139
- * for the current locale.
140
- */
141
- class IntlService {
142
- /**
143
- * @hidden
144
- */
145
- constructor() {
146
- /**
147
- * @hidden
148
- */
149
- this.changes = new EventEmitter();
150
- validatePackage(packageMetadata);
151
- }
152
- /**
153
- * Notifies that the service was changed.
154
- */
155
- notify() {
156
- this.changes.emit();
157
- }
158
- }
159
- IntlService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
160
- IntlService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, providedIn: 'root', useFactory: cldrServiceFactory, deps: [{ token: LOCALE_ID }] });
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlService, decorators: [{
162
- type: Injectable,
163
- args: [{
164
- providedIn: 'root',
165
- useFactory: cldrServiceFactory,
166
- deps: [LOCALE_ID]
167
- }]
168
- }], ctorParameters: function () { return []; } });
169
- /**
170
- * The Internationalization service implemented by using
171
- * the CLDR Database via the `@progress/kendo-intl` package.
172
- */
173
- class CldrIntlService extends IntlService {
174
- /**
175
- * Creates a new instance of the service with the ID of the specified locale.
176
- *
177
- * Note that the parts of the locale ID can be separated by either `_` (underscore)
178
- * or `-` (dash).
179
- *
180
- * @param localeId - The default locale ID.
181
- */
182
- constructor(localeId) {
183
- super();
184
- this.localeId = localeId;
185
- }
186
- /**
187
- * Gets or sets the current locale ID.
188
- */
189
- get localeId() {
190
- return this.locale;
191
- }
192
- set localeId(value) {
193
- // Angular locales use underscore, for example, en_US
194
- // while IETF BCP-47 specifies a dash.
195
- // https://tools.ietf.org/html/bcp47
196
- const locale = value.replace(LOCALE_REGEX, '-');
197
- if (locale !== this.locale) {
198
- this.locale = locale;
199
- this.notify();
200
- }
201
- }
202
- /**
203
- * Formats a string with placeholders such as
204
- * `Total amount {0:c}`.
205
- *
206
- * @param format - The format string.
207
- * @param values - One or more values to output in the format string placeholders.
208
- * @return - The formatted string.
209
- */
210
- format(format$1, ...values) {
211
- return format(format$1, values, this.localeId);
212
- }
213
- /**
214
- * Converts an object into a string based on the specified format.
215
- *
216
- * @param value - The value to format.
217
- * @param format - The format to use.
218
- * @param localeId - The locale ID to use in place of the default one. Optional.
219
- * @return The formatted object.
220
- */
221
- toString(value, format, localeId) {
222
- return toString(value, format, localeId || this.localeId);
223
- }
224
- /**
225
- * Converts a `Date` object into a string based on the specified format.
226
- * If no format is provided, the default short date format is used.
227
- *
228
- * @param value - The date to format.
229
- * @param format - The format string or options.
230
- * @param localeId - The locale ID to use in place of the default one. Optional.
231
- * @return The formatted date.
232
- */
233
- formatDate(value, format, localeId) {
234
- return formatDate(value, format, localeId || this.localeId);
235
- }
236
- /**
237
- * Converts a string into a `Date` object based on the specified format.
238
- *
239
- * @param value - The string to convert.
240
- * @param format - The format strings or options.
241
- * @param localeId - The locale ID to use in place of the default one. Optional.
242
- * @return The parsed date.
243
- */
244
- parseDate(value, format, localeId) {
245
- return parseDate(value, format, localeId || this.localeId);
246
- }
247
- /**
248
- * Converts a string into a `Number`.
249
- *
250
- * @param value - The string to convert.
251
- * @param format - The format string or options.
252
- * @param localeId - The locale ID to use in place of the default one. Optional.
253
- * @return The parsed number.
254
- */
255
- parseNumber(value, format, localeId) {
256
- return parseNumber(value, localeId || this.localeId, format);
257
- }
258
- /**
259
- * Converts a `Number` into a string based on the specified format.
260
- *
261
- * @param value - The number to format.
262
- * @param format - The format string or options.
263
- * @param localeId - The locale ID to use in place of the default one. Optional.
264
- * @return The formatted number.
265
- */
266
- formatNumber(value, format, localeId) {
267
- return formatNumber(value, format, localeId || this.localeId);
268
- }
269
- /**
270
- * Returns the date names from the current locale based on the option.
271
- *
272
- * The available `type` values are:
273
- * - `era`
274
- * - `year`
275
- * - `quarter`
276
- * - `month`
277
- * - `week`
278
- * - `day`
279
- * - `dayperiod`
280
- * - `hour`
281
- * - `minute`
282
- * - `second`
283
- * - `zone`
284
- *
285
- * The available `nameType` values are:
286
- * - `wide`
287
- * - `narrow`
288
- * - `short`
289
- *
290
- * @param options - Detailed configuration for the desired date field name.
291
- * @param localeId - The locale ID to use in place of the default one. Optional.
292
- * @return - The day names from the current locale based on the option.
293
- * @returns The localized date field name from the current locale based on the option.
294
- *
295
- * @example
296
- * ```ts
297
- * dateFieldName({ type: 'day' }); //returns 'day';
298
- * dateFieldName({ type: 'day', nameType: 'wide' }); //returns 'day';
299
- * dateFieldName({ type: 'month', nameType: 'short' }); //returns 'mo.';
300
- * dateFieldName({ type: 'month', nameType: 'wide' }); //returns 'month';
301
- * ```
302
- */
303
- dateFieldName(options, localeId) {
304
- return dateFieldName(options, localeId || this.localeId);
305
- }
306
- /**
307
- * Returns a localized date field name based on specific dateFieldName options.
308
- *
309
- * The available type values are:
310
- * - `day`
311
- * - `dayperiod`
312
- * - `months`
313
- * - `quarters`
314
- * - `eras`
315
- *
316
- * @param options - Detailed configuration for the desired date format.
317
- * @param localeId - The locale ID to use in place of the default one. Optional.
318
- * @return - The day names from the current locale based on the option.
319
- */
320
- dateFormatNames(options, localeId) {
321
- return dateFormatNames(localeId || this.localeId, options);
322
- }
323
- /**
324
- * Splits the date format into objects containing information about each part of the pattern.
325
- *
326
- * @param format The format string or options.
327
- * @param localeId The optional locale id. If not specified, the `"en"` locale id is used.
328
- * @returns The date format parts.
329
- */
330
- splitDateFormat(format, localeId) {
331
- return splitDateFormat(format, localeId || this.localeId);
332
- }
333
- /**
334
- * Returns the number symbols from the current locale based on the option.
335
- *
336
- * @param localeId - The locale ID to use in place of the default one. Optional.
337
- * @return - The number symbols from the current locale.
338
- */
339
- numberSymbols(localeId) {
340
- return numberSymbols(localeId || this.localeId);
341
- }
342
- /**
343
- * Returns the first day index starting from Sunday.
344
- *
345
- * @param localeId - The locale ID. Defaults to the current locale ID.
346
- * @return - The index of the first day of the week (0 == Sunday).
347
- */
348
- firstDay(localeId) {
349
- return firstDay(localeId || this.localeId);
350
- }
351
- /**
352
- * Returns the start and end index of the locale weekend starting from Sunday.
353
- *
354
- * @param localeId - The locale ID. Defaults to the current locale ID.
355
- * @return - The start and end index of the locale weekend (0 == Sunday).
356
- */
357
- weekendRange(localeId) {
358
- return weekendRange(localeId || this.localeId);
359
- }
360
- }
361
- CldrIntlService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
362
- CldrIntlService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService });
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CldrIntlService, decorators: [{
364
- type: Injectable
365
- }], ctorParameters: function () {
366
- return [{ type: undefined, decorators: [{
367
- type: Inject,
368
- args: [LOCALE_ID]
369
- }] }];
370
- } });
371
-
372
- const isNumeric = (value) => !isNaN(value - parseFloat(value));
373
- /**
374
- * Formats a date value to a string based on the requested format.
375
- * This pipe uses the [IntlService]({% slug api_intl_intlservice %}).
376
- *
377
- * @example
378
- * ```ng-template-no-run
379
- * <ul>
380
- * <li>{{date | kendoDate }}</li>
381
- * <li>{{milliseconds | kendoDate: 'M/dd/yyy' }}</li>
382
- * <li>{{stringDate | kendoDate: 'G' }}</li>
383
- * </ul>
384
- * ```
385
- */
386
- class DatePipe {
387
- /**
388
- * @hidden
389
- */
390
- constructor(intlService) {
391
- this.intlService = intlService;
392
- }
393
- /**
394
- * Converts a `Date` object into a string based on the specified format.
395
- * If no format is provided, the default short date format is used.
396
- *
397
- * @param value - The date to format.
398
- * @param format - The format string or options.
399
- * @param localeId - (Optional) The ID of the locale which will be used instead of the default one.
400
- * @return - The formatted date.
401
- */
402
- transform(value, format = "", localeId) {
403
- value = this.normalize(value);
404
- if (value) {
405
- return this.intlService.formatDate(value, format, localeId);
406
- }
407
- return value;
408
- }
409
- normalize(value) {
410
- if (value && typeof value === 'string') {
411
- value = this.intlService.parseDate(value);
412
- }
413
- else if (value && isNumeric(value)) {
414
- value = new Date(parseFloat(value));
415
- }
416
- return value;
417
- }
418
- }
419
- DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, deps: [{ token: IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
420
- DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, isStandalone: true, name: "kendoDate" });
421
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatePipe, decorators: [{
422
- type: Pipe,
423
- args: [{
424
- name: 'kendoDate',
425
- standalone: true
426
- }]
427
- }], ctorParameters: function () { return [{ type: IntlService }]; } });
428
-
429
- /**
430
- * Formats a number value to a string based on the requested format.
431
- * This pipe uses the [`IntlService`]({% slug api_intl_intlservice %}).
432
- *
433
- * @example
434
- * ```ng-template-no-run
435
- * <ul>
436
- * <li>{{decimal | kendoNumber:'c' }}</li>
437
- * <li>{{stringNumber | kendoNumber:'p' }}</li>
438
- * <li>{{int | kendoNumber:'##.00' }}</li>
439
- * </ul>
440
- * ```
441
- */
442
- class NumberPipe {
443
- /**
444
- * @hidden
445
- */
446
- constructor(intlService) {
447
- this.intlService = intlService;
448
- }
449
- /**
450
- * Converts a `Number` object into a string based on the specified format.
451
- * If no format is provided, the value is formatted as decimal number using the
452
- * [`"n"`](https://github.com/telerik/kendo-intl/blob/master/docs/num-formatting/index.md#standard) format.
453
- *
454
- * @param value - The numer that will be formatted.
455
- * @param format - The format string or options.
456
- * @param localeId - (Optional) The locale ID that will be used in place of the default one.
457
- * @return - The formatted number.
458
- */
459
- transform(value, format, localeId) {
460
- if (typeof value === 'string') {
461
- value = this.intlService.parseNumber(value);
462
- }
463
- if (value !== null && value !== undefined) {
464
- return this.intlService.formatNumber(value, format, localeId);
465
- }
466
- return value;
467
- }
468
- }
469
- NumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, deps: [{ token: IntlService }], target: i0.ɵɵFactoryTarget.Pipe });
470
- NumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, isStandalone: true, name: "kendoNumber" });
471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumberPipe, decorators: [{
472
- type: Pipe,
473
- args: [{
474
- name: 'kendoNumber',
475
- standalone: true
476
- }]
477
- }], ctorParameters: function () { return [{ type: IntlService }]; } });
478
-
479
- /**
480
- * Utility array that contains all `kendoNumber` related components and directives
481
- */
482
- const KENDO_NUMBER = [
483
- NumberPipe
484
- ];
485
- /**
486
- * Utility array that contains all `kendoDate` related components and directives
487
- */
488
- const KENDO_DATE = [
489
- DatePipe
490
- ];
491
- /**
492
- * Utility array that contains all `@progress/kendo-angular-intl` related components and directives
493
- */
494
- const KENDO_INTL = [
495
- ...KENDO_NUMBER,
496
- ...KENDO_DATE
497
- ];
498
-
499
- //IMPORTANT: NgModule export kept for backwards compatibility
500
- /**
501
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
502
- * definition for the Intl services.
503
- */
504
- class IntlModule {
505
- }
506
- IntlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
507
- IntlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, imports: [NumberPipe, DatePipe], exports: [NumberPipe, DatePipe] });
508
- IntlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule });
509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntlModule, decorators: [{
510
- type: NgModule,
511
- args: [{
512
- imports: [...KENDO_INTL],
513
- exports: [...KENDO_INTL]
514
- }]
515
- }] });
516
-
517
- /**
518
- * Generated bundle index. Do not edit.
519
- */
520
-
521
- 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 };
522
-
File without changes
File without changes
File without changes
File without changes
File without changes