@progress/kendo-angular-l10n 19.1.1 → 19.1.2-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.
- package/esm2022/message.service.mjs +12 -3
- package/esm2022/rtl.mjs +9 -1
- package/fesm2022/progress-kendo-angular-l10n.mjs +21 -4
- package/message.service.d.ts +12 -3
- package/package.json +3 -3
- package/rtl.d.ts +9 -1
|
@@ -6,9 +6,18 @@ import { Injectable } from '@angular/core';
|
|
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents a base class for a service that returns localized messages.
|
|
10
10
|
*
|
|
11
11
|
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* export class CustomMessageService extends MessageService {
|
|
16
|
+
* public get(key: string): string {
|
|
17
|
+
* return this.messages[key];
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
12
21
|
*/
|
|
13
22
|
export class MessageService {
|
|
14
23
|
/**
|
|
@@ -22,9 +31,9 @@ export class MessageService {
|
|
|
22
31
|
*/
|
|
23
32
|
changes = new BehaviorSubject({ rtl: undefined });
|
|
24
33
|
/**
|
|
25
|
-
* Notifies the components that the messages
|
|
34
|
+
* Notifies the components that the messages changed.
|
|
26
35
|
*
|
|
27
|
-
* @param rtl - (Optional)
|
|
36
|
+
* @param rtl - (Optional) The new value for the [text direction token]({% slug api_l10n_rtl %}).
|
|
28
37
|
*/
|
|
29
38
|
notify(rtl) {
|
|
30
39
|
this.changes.next({ rtl });
|
package/esm2022/rtl.mjs
CHANGED
|
@@ -4,11 +4,19 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { InjectionToken } from '@angular/core';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents a token that specifies the text direction of Kendo UI for Angular components.
|
|
8
8
|
*
|
|
9
9
|
* {% embed_file rtl/app.module.ts preview %}
|
|
10
10
|
* {% embed_file rtl/app.component.ts %}
|
|
11
11
|
* {% embed_file shared/main.ts hidden %}
|
|
12
12
|
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { RTL } from '@progress/kendo-angular-l10n';
|
|
16
|
+
*
|
|
17
|
+
* providers: [
|
|
18
|
+
* { provide: RTL, useValue: true }
|
|
19
|
+
* ]
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
export const RTL = new InjectionToken("Kendo UI Right-to-Left token");
|
|
@@ -8,9 +8,18 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
8
8
|
import { skip, map, tap } from 'rxjs/operators';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents a base class for a service that returns localized messages.
|
|
12
12
|
*
|
|
13
13
|
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* export class CustomMessageService extends MessageService {
|
|
18
|
+
* public get(key: string): string {
|
|
19
|
+
* return this.messages[key];
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
14
23
|
*/
|
|
15
24
|
class MessageService {
|
|
16
25
|
/**
|
|
@@ -24,9 +33,9 @@ class MessageService {
|
|
|
24
33
|
*/
|
|
25
34
|
changes = new BehaviorSubject({ rtl: undefined });
|
|
26
35
|
/**
|
|
27
|
-
* Notifies the components that the messages
|
|
36
|
+
* Notifies the components that the messages changed.
|
|
28
37
|
*
|
|
29
|
-
* @param rtl - (Optional)
|
|
38
|
+
* @param rtl - (Optional) The new value for the [text direction token]({% slug api_l10n_rtl %}).
|
|
30
39
|
*/
|
|
31
40
|
notify(rtl) {
|
|
32
41
|
this.changes.next({ rtl });
|
|
@@ -87,12 +96,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
87
96
|
}] });
|
|
88
97
|
|
|
89
98
|
/**
|
|
90
|
-
*
|
|
99
|
+
* Represents a token that specifies the text direction of Kendo UI for Angular components.
|
|
91
100
|
*
|
|
92
101
|
* {% embed_file rtl/app.module.ts preview %}
|
|
93
102
|
* {% embed_file rtl/app.component.ts %}
|
|
94
103
|
* {% embed_file shared/main.ts hidden %}
|
|
95
104
|
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* import { RTL } from '@progress/kendo-angular-l10n';
|
|
108
|
+
*
|
|
109
|
+
* providers: [
|
|
110
|
+
* { provide: RTL, useValue: true }
|
|
111
|
+
* ]
|
|
112
|
+
* ```
|
|
96
113
|
*/
|
|
97
114
|
const RTL = new InjectionToken("Kendo UI Right-to-Left token");
|
|
98
115
|
|
package/message.service.d.ts
CHANGED
|
@@ -5,9 +5,18 @@
|
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Represents a base class for a service that returns localized messages.
|
|
9
9
|
*
|
|
10
10
|
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-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
|
+
* ```
|
|
11
20
|
*/
|
|
12
21
|
export declare class MessageService {
|
|
13
22
|
/**
|
|
@@ -21,9 +30,9 @@ export declare class MessageService {
|
|
|
21
30
|
rtl: boolean;
|
|
22
31
|
}>;
|
|
23
32
|
/**
|
|
24
|
-
* Notifies the components that the messages
|
|
33
|
+
* Notifies the components that the messages changed.
|
|
25
34
|
*
|
|
26
|
-
* @param rtl - (Optional)
|
|
35
|
+
* @param rtl - (Optional) The new value for the [text direction token]({% slug api_l10n_rtl %}).
|
|
27
36
|
*/
|
|
28
37
|
notify(rtl?: boolean): void;
|
|
29
38
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-l10n",
|
|
3
|
-
"version": "19.1.1",
|
|
3
|
+
"version": "19.1.2-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",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@angular/common": "16 - 20",
|
|
23
23
|
"@angular/core": "16 - 20",
|
|
24
24
|
"@angular/platform-browser": "16 - 20",
|
|
25
|
-
"@progress/kendo-angular-common": "19.1.1",
|
|
25
|
+
"@progress/kendo-angular-common": "19.1.2-develop.1",
|
|
26
26
|
"@progress/kendo-licensing": "^1.5.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": "19.1.1"
|
|
31
|
+
"@progress/kendo-angular-schematics": "19.1.2-develop.1"
|
|
32
32
|
},
|
|
33
33
|
"schematics": "./schematics/collection.json",
|
|
34
34
|
"module": "fesm2022/progress-kendo-angular-l10n.mjs",
|
package/rtl.d.ts
CHANGED
|
@@ -4,11 +4,19 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { InjectionToken } from '@angular/core';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Represents a token that specifies the text direction of Kendo UI for Angular components.
|
|
8
8
|
*
|
|
9
9
|
* {% embed_file rtl/app.module.ts preview %}
|
|
10
10
|
* {% embed_file rtl/app.component.ts %}
|
|
11
11
|
* {% embed_file shared/main.ts hidden %}
|
|
12
12
|
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { RTL } from '@progress/kendo-angular-l10n';
|
|
16
|
+
*
|
|
17
|
+
* providers: [
|
|
18
|
+
* { provide: RTL, useValue: true }
|
|
19
|
+
* ]
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
export declare const RTL: InjectionToken<string>;
|