@progress/kendo-angular-l10n 24.2.2 → 25.0.0-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.
@@ -49,10 +49,10 @@ class MessageService {
49
49
  get(_key) {
50
50
  return undefined;
51
51
  }
52
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
53
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: MessageService });
52
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
53
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MessageService });
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: MessageService, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MessageService, decorators: [{
56
56
  type: Injectable
57
57
  }], ctorParameters: () => [] });
58
58
 
@@ -86,10 +86,10 @@ class ComponentMessages {
86
86
  this.subscription.unsubscribe();
87
87
  }
88
88
  }
89
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
90
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: ComponentMessages, isStandalone: true, usesOnChanges: true, ngImport: i0 });
89
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
90
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: ComponentMessages, isStandalone: true, usesOnChanges: true, ngImport: i0 });
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ComponentMessages, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ComponentMessages, decorators: [{
93
93
  type: Directive,
94
94
  args: [{}]
95
95
  }] });
@@ -180,10 +180,10 @@ class LocalizationService {
180
180
  const alt = this.messageService.get(key);
181
181
  return (alt === undefined) ? value : alt;
182
182
  }
183
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
184
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizationService });
183
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
184
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizationService });
185
185
  }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LocalizationService, decorators: [{
186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizationService, decorators: [{
187
187
  type: Injectable
188
188
  }], ctorParameters: () => [{ type: undefined, decorators: [{
189
189
  type: Inject,
package/index.d.ts CHANGED
@@ -2,7 +2,118 @@
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 './message.service';
6
- export * from './component-messages';
7
- export * from './localization.service';
8
- export * from './rtl';
5
+ import { Subject } from 'rxjs';
6
+ import * as i0 from '@angular/core';
7
+ import { OnDestroy, InjectionToken, OnChanges, OnInit, SimpleChanges } from '@angular/core';
8
+
9
+ /**
10
+ * Represents a base class for a service that returns localized messages.
11
+ *
12
+ * For more information, refer to the section on [using the message service](https://www.telerik.com/kendo-angular-ui/components/globalization/localization/messages#using-the-message-service).
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * export class CustomMessageService extends MessageService {
17
+ * public get(key: string): string {
18
+ * return this.messages[key];
19
+ * }
20
+ * }
21
+ * ```
22
+ */
23
+ declare class MessageService {
24
+ /**
25
+ * @hidden
26
+ */
27
+ constructor();
28
+ /**
29
+ * @hidden
30
+ */
31
+ readonly changes: Subject<{
32
+ rtl: boolean;
33
+ }>;
34
+ /**
35
+ * Notifies the components that the messages changed.
36
+ *
37
+ * @param rtl - (Optional) The new value for the [text direction token](https://www.telerik.com/kendo-angular-ui/components/globalization/localization/api/rtl).
38
+ */
39
+ notify(rtl?: boolean): void;
40
+ /**
41
+ * Returns a localized message for the supplied key.
42
+ *
43
+ * @param _key - The message key. For example, `"kendo.grid.noRecords"`.
44
+ * @return - The localized message for this key or `undefined` if not found.
45
+ */
46
+ get(_key: string): string | undefined;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
48
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
49
+ }
50
+
51
+ /**
52
+ * Localization prefix for the component messages.
53
+ *
54
+ * For internal use.
55
+ * @hidden
56
+ */
57
+ declare const L10N_PREFIX: InjectionToken<string>;
58
+ /**
59
+ * Component localization service.
60
+ *
61
+ * For internal use.
62
+ * @hidden
63
+ */
64
+ declare class LocalizationService implements OnDestroy {
65
+ private prefix;
66
+ private messageService;
67
+ private _rtl;
68
+ readonly changes: Subject<{
69
+ rtl: boolean;
70
+ }>;
71
+ private subscription;
72
+ private dictionary;
73
+ constructor(prefix: string, messageService: MessageService, _rtl: boolean);
74
+ get rtl(): boolean;
75
+ ngOnDestroy(): void;
76
+ get(shortKey: string): string;
77
+ register(shortKey: string, value: string, override?: boolean): void;
78
+ notifyChanges(): void;
79
+ private key;
80
+ private defaultValue;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, [null, { optional: true; }, { optional: true; }]>;
82
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
83
+ }
84
+
85
+ /**
86
+ * Base class that acts as a component messages container.
87
+ *
88
+ * For internal use.
89
+ * @hidden
90
+ */
91
+ declare abstract class ComponentMessages implements OnChanges, OnInit, OnDestroy {
92
+ protected service: LocalizationService;
93
+ private subscription;
94
+ protected get override(): boolean;
95
+ ngOnChanges(changes: SimpleChanges): void;
96
+ ngOnInit(): void;
97
+ protected register(changes: object): void;
98
+ ngOnDestroy(): void;
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentMessages, never>;
100
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentMessages, never, never, {}, {}, never, never, true, never>;
101
+ }
102
+
103
+ /**
104
+ * Represents a token that specifies the text direction of Kendo UI for Angular components.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * import { RTL } from '@progress/kendo-angular-l10n';
109
+ *
110
+ * @Component({
111
+ * selector: "my-app",
112
+ * imports: [...],
113
+ * providers: [{ provide: RTL, useValue: true }],
114
+ * })
115
+ * ```
116
+ */
117
+ declare const RTL: InjectionToken<string>;
118
+
119
+ export { ComponentMessages, L10N_PREFIX, LocalizationService, MessageService, RTL };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-l10n",
3
- "version": "24.2.2",
3
+ "version": "25.0.0-develop.1",
4
4
  "description": "Kendo UI Angular l10n component - an easily customized popup from the most trusted provider of professional Angular components.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -18,17 +18,17 @@
18
18
  "friendlyName": "Localization"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/animations": "19 - 22",
22
- "@angular/common": "19 - 22",
23
- "@angular/core": "19 - 22",
24
- "@angular/platform-browser": "19 - 22",
25
- "@progress/kendo-angular-common": "24.2.2",
21
+ "@angular/animations": "20 - 22",
22
+ "@angular/common": "20 - 22",
23
+ "@angular/core": "20 - 22",
24
+ "@angular/platform-browser": "20 - 22",
25
+ "@progress/kendo-angular-common": "25.0.0-develop.1",
26
26
  "@progress/kendo-licensing": "^1.11.0",
27
27
  "rxjs": "^6.5.3 || ^7.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "tslib": "^2.3.1",
31
- "@progress/kendo-angular-schematics": "24.2.2"
31
+ "@progress/kendo-angular-schematics": "25.0.0-develop.1"
32
32
  },
33
33
  "schematics": "./schematics/collection.json",
34
34
  "module": "fesm2022/progress-kendo-angular-l10n.mjs",
@@ -1,24 +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 { OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
6
- import { LocalizationService } from './localization.service';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * Base class that acts as a component messages container.
10
- *
11
- * For internal use.
12
- * @hidden
13
- */
14
- export declare abstract class ComponentMessages implements OnChanges, OnInit, OnDestroy {
15
- protected service: LocalizationService;
16
- private subscription;
17
- protected get override(): boolean;
18
- ngOnChanges(changes: SimpleChanges): void;
19
- ngOnInit(): void;
20
- protected register(changes: object): void;
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentMessages, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentMessages, never, never, {}, {}, never, never, true, never>;
24
- }
@@ -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 { InjectionToken, OnDestroy } from '@angular/core';
6
- import { MessageService } from './message.service';
7
- import { Subject } from 'rxjs';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Localization prefix for the component messages.
11
- *
12
- * For internal use.
13
- * @hidden
14
- */
15
- export declare const L10N_PREFIX: InjectionToken<string>;
16
- /**
17
- * Component localization service.
18
- *
19
- * For internal use.
20
- * @hidden
21
- */
22
- export declare class LocalizationService implements OnDestroy {
23
- private prefix;
24
- private messageService;
25
- private _rtl;
26
- readonly changes: Subject<{
27
- rtl: boolean;
28
- }>;
29
- private subscription;
30
- private dictionary;
31
- constructor(prefix: string, messageService: MessageService, _rtl: boolean);
32
- get rtl(): boolean;
33
- ngOnDestroy(): void;
34
- get(shortKey: string): string;
35
- register(shortKey: string, value: string, override?: boolean): void;
36
- notifyChanges(): void;
37
- private key;
38
- private defaultValue;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, [null, { optional: true; }, { optional: true; }]>;
40
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
41
- }
@@ -1,47 +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 { Subject } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents a base class for a service that returns localized messages.
9
- *
10
- * For more information, refer to the section on [using the message service](https://www.telerik.com/kendo-angular-ui/components/globalization/localization/messages#using-the-message-service).
11
- *
12
- * @example
13
- * ```ts
14
- * export class CustomMessageService extends MessageService {
15
- * public get(key: string): string {
16
- * return this.messages[key];
17
- * }
18
- * }
19
- * ```
20
- */
21
- export declare class MessageService {
22
- /**
23
- * @hidden
24
- */
25
- constructor();
26
- /**
27
- * @hidden
28
- */
29
- readonly changes: Subject<{
30
- rtl: boolean;
31
- }>;
32
- /**
33
- * Notifies the components that the messages changed.
34
- *
35
- * @param rtl - (Optional) The new value for the [text direction token](https://www.telerik.com/kendo-angular-ui/components/globalization/localization/api/rtl).
36
- */
37
- notify(rtl?: boolean): void;
38
- /**
39
- * Returns a localized message for the supplied key.
40
- *
41
- * @param _key - The message key. For example, `"kendo.grid.noRecords"`.
42
- * @return - The localized message for this key or `undefined` if not found.
43
- */
44
- get(_key: string): string | undefined;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
46
- static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
47
- }
package/rtl.d.ts DELETED
@@ -1,20 +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 { InjectionToken } from '@angular/core';
6
- /**
7
- * Represents a token that specifies the text direction of Kendo UI for Angular components.
8
- *
9
- * @example
10
- * ```ts
11
- * import { RTL } from '@progress/kendo-angular-l10n';
12
- *
13
- * @Component({
14
- * selector: "my-app",
15
- * imports: [...],
16
- * providers: [{ provide: RTL, useValue: true }],
17
- * })
18
- * ```
19
- */
20
- export declare const RTL: InjectionToken<string>;