@progress/kendo-angular-l10n 4.0.1 → 11.0.0-develop.79

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/NOTICE.txt CHANGED
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
37
37
  Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
38
38
  Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
39
39
  Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
40
- Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
40
+ Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
41
41
  Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
42
42
  Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
43
43
  ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
433
433
  @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
434
434
  @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
435
435
  @types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
436
- subject to the following terms and conditions:
436
+ subject to the following terms and conditions:
437
437
 
438
438
  This project is licensed under the MIT license.
439
439
  Copyrights are respective of each contributor listed at the beginning of each
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
640
640
  2. Special Notices Regarding Commercially Licensed Third-Party Components
641
641
  incorporated into the Product: NONE
642
642
 
643
- 3. Special Notices Regarding Progress Products incorporated into the Product:
643
+ 3. Special Notices Regarding Progress Products incorporated into the Product:
644
644
 
645
645
  (a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
646
646
  from Progress Software Corporation. See NOTICE.txt text file within product for
package/README.md CHANGED
@@ -2,30 +2,31 @@
2
2
  <img width="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg">
3
3
  </a>
4
4
 
5
- ## Native UI and Data Visualization Components for Angular
5
+ ## Kendo UI for Angular L10n Component
6
6
 
7
- This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/) suite.
8
-
9
- Kendo UI for Angular is a commercial UI library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
10
-
11
- ## Free Trial and Commercial License
12
-
13
- Kendo UI for Angular is a commercial UI library. You are welcome to explore its full functionality and get technical support from the team when you [register for a free 30-day trial](https://www.telerik.com/download-login-v2-kendo-angular-ui). To use it commercially, you need to [purchase a license](https://www.telerik.com/purchase/kendo-ui). Feel free to review the [Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui) to get acquainted with the full terms of use.
7
+ > **Important**
8
+ >
9
+ > - This package is part of [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-l10n)&mdash;a commercial library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
10
+ > - You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Angular My License page](https://www.telerik.com/kendo-angular-ui/my-license?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-l10n).
11
+ > - To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-l10n) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-l10n). Doing so indicates that you [accept the Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-l10n).
12
+ > - The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular dev team!
13
+ >
14
+ > [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-l10n) and speed up your development process!
14
15
 
15
16
  ## Resources
16
17
 
17
- * [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started)
18
- * [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
19
- * [Blogs](http://www.telerik.com/blogs/kendo-ui)
20
- * [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
18
+ - [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started)
19
+ - [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
20
+ - [Blogs](http://www.telerik.com/blogs/kendo-ui)
21
+ - [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
21
22
 
22
23
  ## Questions and Feedback
23
24
 
24
- * [Official Forums](https://www.telerik.com/forums/kendo-angular-ui)
25
- * [GitHub Issues](https://github.com/telerik/kendo-angular/issues)
26
- * [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
27
- * [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
25
+ - [Official Forums](https://www.telerik.com/forums/kendo-angular-ui)
26
+ - [GitHub Issues](https://github.com/telerik/kendo-angular/issues)
27
+ - [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
28
+ - [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
28
29
 
29
- *Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
30
+ _Copyright © 2022 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved._
30
31
 
31
- *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
32
+ _Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries._
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Directive } from '@angular/core';
@@ -24,6 +24,7 @@ export class ComponentMessages {
24
24
  ngOnInit() {
25
25
  this.subscription = this.service.changes.pipe(skip(1)).subscribe(() => this.register(this));
26
26
  }
27
+ // eslint-disable-next-line @typescript-eslint/ban-types
27
28
  register(changes) {
28
29
  const keys = Object.keys(changes);
29
30
  keys.forEach(key => this.service.register(key, this[key], this.override));
@@ -34,9 +35,9 @@ export class ComponentMessages {
34
35
  }
35
36
  }
36
37
  }
37
- ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
38
- ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, decorators: [{
38
+ ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
+ ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ComponentMessages, decorators: [{
40
41
  type: Directive,
41
42
  args: [{}]
42
43
  }] });
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  export * from './message.service';
@@ -1,8 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Inject, Injectable, Optional, InjectionToken } from '@angular/core';
6
+ import { MessageService } from './message.service';
6
7
  import { RTL } from './rtl';
7
8
  import { BehaviorSubject } from 'rxjs';
8
9
  import { map, tap } from 'rxjs/operators';
@@ -53,7 +54,7 @@ export class LocalizationService {
53
54
  const key = this.key(shortKey);
54
55
  let message = value;
55
56
  if (!override) {
56
- if (this.dictionary.hasOwnProperty(key)) {
57
+ if (Object.hasOwnProperty.call(this.dictionary, key)) {
57
58
  return;
58
59
  }
59
60
  message = this.defaultValue(key, value);
@@ -74,9 +75,9 @@ export class LocalizationService {
74
75
  return (alt === undefined) ? value : alt;
75
76
  }
76
77
  }
77
- LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
78
- LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService });
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, decorators: [{
78
+ LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
79
+ LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService });
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService, decorators: [{
80
81
  type: Injectable
81
82
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
82
83
  type: Inject,
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Injectable } from '@angular/core';
@@ -19,6 +19,7 @@ export class MessageService {
19
19
  * @hidden
20
20
  */
21
21
  this.changes = new BehaviorSubject({ rtl: undefined });
22
+ /* noop */
22
23
  }
23
24
  /**
24
25
  * Notifies the components that the messages were changed.
@@ -38,8 +39,8 @@ export class MessageService {
38
39
  return undefined;
39
40
  }
40
41
  }
41
- MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
42
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
42
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
43
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService });
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService, decorators: [{
44
45
  type: Injectable
45
46
  }], ctorParameters: function () { return []; } });
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
6
6
  * Generated bundle index. Do not edit.
7
7
  */
8
- export * from './main';
8
+ export * from './index';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { InjectionToken } from '@angular/core';
@@ -7,11 +7,9 @@ import { InjectionToken } from '@angular/core';
7
7
  * A token that specifies the text direction of Kendo UI for Angular components.
8
8
  *
9
9
  * @example
10
- * {% meta height:230 %}
11
10
  * {% embed_file rtl/app.module.ts preview %}
12
11
  * {% embed_file rtl/app.component.ts %}
13
12
  * {% embed_file shared/main.ts hidden %}
14
- * {% endmeta %}
15
13
  *
16
14
  */
17
15
  export const RTL = new InjectionToken("Kendo UI Right-to-Left token");
@@ -0,0 +1,187 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2022 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 { Injectable, Directive, InjectionToken, Inject, Optional } from '@angular/core';
7
+ import { BehaviorSubject } from 'rxjs';
8
+ import { skip, map, tap } from 'rxjs/operators';
9
+
10
+ /**
11
+ * A base class for a service that returns localized messages.
12
+ *
13
+ * For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
14
+ */
15
+ class MessageService {
16
+ /**
17
+ * @hidden
18
+ */
19
+ constructor() {
20
+ /**
21
+ * @hidden
22
+ */
23
+ this.changes = new BehaviorSubject({ rtl: undefined });
24
+ /* noop */
25
+ }
26
+ /**
27
+ * Notifies the components that the messages were changed.
28
+ *
29
+ * @param rtl - (Optional) A new value for the [text direction token]({% slug api_l10n_rtl %}).
30
+ */
31
+ notify(rtl) {
32
+ this.changes.next({ rtl });
33
+ }
34
+ /**
35
+ * Returns a localized message for the supplied key.
36
+ *
37
+ * @param _key - The message key. For example, `"kendo.grid.noRecords"`.
38
+ * @return - The localized message for this key or `undefined` if not found.
39
+ */
40
+ get(_key) {
41
+ return undefined;
42
+ }
43
+ }
44
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
45
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService, decorators: [{
47
+ type: Injectable
48
+ }], ctorParameters: function () { return []; } });
49
+
50
+ /**
51
+ * Base class that acts as a component messages container.
52
+ *
53
+ * For internal use.
54
+ * @hidden
55
+ */
56
+ class ComponentMessages {
57
+ get override() {
58
+ return false;
59
+ }
60
+ ngOnChanges(changes) {
61
+ this.register(changes);
62
+ if (Object.keys(changes).some(field => !changes[field].isFirstChange())) {
63
+ this.service.notifyChanges();
64
+ }
65
+ }
66
+ ngOnInit() {
67
+ this.subscription = this.service.changes.pipe(skip(1)).subscribe(() => this.register(this));
68
+ }
69
+ // eslint-disable-next-line @typescript-eslint/ban-types
70
+ register(changes) {
71
+ const keys = Object.keys(changes);
72
+ keys.forEach(key => this.service.register(key, this[key], this.override));
73
+ }
74
+ ngOnDestroy() {
75
+ if (this.subscription) {
76
+ this.subscription.unsubscribe();
77
+ }
78
+ }
79
+ }
80
+ ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
81
+ ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ComponentMessages, decorators: [{
83
+ type: Directive,
84
+ args: [{}]
85
+ }] });
86
+
87
+ /**
88
+ * A token that specifies the text direction of Kendo UI for Angular components.
89
+ *
90
+ * @example
91
+ * {% embed_file rtl/app.module.ts preview %}
92
+ * {% embed_file rtl/app.component.ts %}
93
+ * {% embed_file shared/main.ts hidden %}
94
+ *
95
+ */
96
+ const RTL = new InjectionToken("Kendo UI Right-to-Left token");
97
+
98
+ /**
99
+ * Localization prefix for the component messages.
100
+ *
101
+ * For internal use.
102
+ * @hidden
103
+ */
104
+ const L10N_PREFIX = new InjectionToken('Localization key prefix');
105
+ /**
106
+ * Component localization service.
107
+ *
108
+ * For internal use.
109
+ * @hidden
110
+ */
111
+ class LocalizationService {
112
+ constructor(prefix, messageService, _rtl) {
113
+ this.prefix = prefix;
114
+ this.messageService = messageService;
115
+ this._rtl = _rtl;
116
+ this.changes = new BehaviorSubject({ rtl: this._rtl });
117
+ this.dictionary = {};
118
+ if (messageService) {
119
+ this.subscription = messageService.changes
120
+ .pipe(map(({ rtl }) => rtl !== undefined ? rtl : this._rtl), tap(rtl => this._rtl = rtl))
121
+ .subscribe(rtl => {
122
+ this.dictionary = {};
123
+ this.changes.next({ rtl });
124
+ });
125
+ }
126
+ }
127
+ get rtl() {
128
+ return this._rtl;
129
+ }
130
+ ngOnDestroy() {
131
+ if (this.subscription) {
132
+ this.subscription.unsubscribe();
133
+ }
134
+ }
135
+ get(shortKey) {
136
+ const key = this.key(shortKey);
137
+ return this.dictionary[key];
138
+ }
139
+ register(shortKey, value, override = false) {
140
+ const key = this.key(shortKey);
141
+ let message = value;
142
+ if (!override) {
143
+ if (Object.hasOwnProperty.call(this.dictionary, key)) {
144
+ return;
145
+ }
146
+ message = this.defaultValue(key, value);
147
+ }
148
+ this.dictionary[key] = message;
149
+ }
150
+ notifyChanges() {
151
+ this.changes.next({ rtl: this.rtl });
152
+ }
153
+ key(shortKey) {
154
+ return this.prefix + '.' + shortKey;
155
+ }
156
+ defaultValue(key, value) {
157
+ if (!this.messageService) {
158
+ return value;
159
+ }
160
+ const alt = this.messageService.get(key);
161
+ return (alt === undefined) ? value : alt;
162
+ }
163
+ }
164
+ LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
165
+ LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService });
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService, decorators: [{
167
+ type: Injectable
168
+ }], ctorParameters: function () {
169
+ return [{ type: undefined, decorators: [{
170
+ type: Inject,
171
+ args: [L10N_PREFIX]
172
+ }] }, { type: MessageService, decorators: [{
173
+ type: Optional
174
+ }] }, { type: undefined, decorators: [{
175
+ type: Optional
176
+ }, {
177
+ type: Inject,
178
+ args: [RTL]
179
+ }] }];
180
+ } });
181
+
182
+ /**
183
+ * Generated bundle index. Do not edit.
184
+ */
185
+
186
+ export { ComponentMessages, L10N_PREFIX, LocalizationService, MessageService, RTL };
187
+
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import * as i0 from '@angular/core';
@@ -21,6 +21,7 @@ class MessageService {
21
21
  * @hidden
22
22
  */
23
23
  this.changes = new BehaviorSubject({ rtl: undefined });
24
+ /* noop */
24
25
  }
25
26
  /**
26
27
  * Notifies the components that the messages were changed.
@@ -40,9 +41,9 @@ class MessageService {
40
41
  return undefined;
41
42
  }
42
43
  }
43
- MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
44
- MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
44
+ MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
45
+ MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MessageService, decorators: [{
46
47
  type: Injectable
47
48
  }], ctorParameters: function () { return []; } });
48
49
 
@@ -65,6 +66,7 @@ class ComponentMessages {
65
66
  ngOnInit() {
66
67
  this.subscription = this.service.changes.pipe(skip(1)).subscribe(() => this.register(this));
67
68
  }
69
+ // eslint-disable-next-line @typescript-eslint/ban-types
68
70
  register(changes) {
69
71
  const keys = Object.keys(changes);
70
72
  keys.forEach(key => this.service.register(key, this[key], this.override));
@@ -75,9 +77,9 @@ class ComponentMessages {
75
77
  }
76
78
  }
77
79
  }
78
- ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
79
- ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, decorators: [{
80
+ ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
81
+ ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ComponentMessages, decorators: [{
81
83
  type: Directive,
82
84
  args: [{}]
83
85
  }] });
@@ -86,11 +88,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
86
88
  * A token that specifies the text direction of Kendo UI for Angular components.
87
89
  *
88
90
  * @example
89
- * {% meta height:230 %}
90
91
  * {% embed_file rtl/app.module.ts preview %}
91
92
  * {% embed_file rtl/app.component.ts %}
92
93
  * {% embed_file shared/main.ts hidden %}
93
- * {% endmeta %}
94
94
  *
95
95
  */
96
96
  const RTL = new InjectionToken("Kendo UI Right-to-Left token");
@@ -140,7 +140,7 @@ class LocalizationService {
140
140
  const key = this.key(shortKey);
141
141
  let message = value;
142
142
  if (!override) {
143
- if (this.dictionary.hasOwnProperty(key)) {
143
+ if (Object.hasOwnProperty.call(this.dictionary, key)) {
144
144
  return;
145
145
  }
146
146
  message = this.defaultValue(key, value);
@@ -161,9 +161,9 @@ class LocalizationService {
161
161
  return (alt === undefined) ? value : alt;
162
162
  }
163
163
  }
164
- LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
165
- LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService });
166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, decorators: [{
164
+ LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
165
+ LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService });
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizationService, decorators: [{
167
167
  type: Injectable
168
168
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
169
169
  type: Inject,
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  export * from './message.service';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { InjectionToken, OnDestroy } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { Subject } from 'rxjs';
package/package.json CHANGED
@@ -1,76 +1,54 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-l10n",
3
- "version": "4.0.1",
4
- "description": "Localization Services - Kendo UI Angular",
3
+ "version": "11.0.0-develop.79",
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",
7
7
  "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/telerik/kendo-angular-l10n.git"
11
- },
12
8
  "bugs": {
13
9
  "url": "https://github.com/telerik/kendo-angular"
14
10
  },
15
11
  "keywords": [
16
12
  "Angular",
17
- "Kendo UI"
13
+ "Kendo UI",
14
+ "L10n",
15
+ "Progress"
18
16
  ],
19
17
  "@progress": {
20
18
  "friendlyName": "Localization"
21
19
  },
22
- "dependencies": {
23
- "@progress/kendo-schematics": "^3.0.0",
24
- "tslib": "^2.3.1"
25
- },
26
20
  "peerDependencies": {
27
- "@angular/common": "12 - 15",
28
- "@angular/core": "12 - 15",
21
+ "@angular/animations": "13 - 15",
22
+ "@angular/common": "13 - 15",
23
+ "@angular/core": "13 - 15",
24
+ "@angular/platform-browser": "13 - 15",
25
+ "@progress/kendo-angular-common": "11.0.0-develop.79",
26
+ "@progress/kendo-angular-schematics": "11.0.0-develop.79",
27
+ "@progress/kendo-licensing": "^1.0.2",
29
28
  "rxjs": "^6.5.3 || ^7.0.0"
30
29
  },
31
- "config": {
32
- "commitizen": {
33
- "path": "./node_modules/cz-conventional-changelog"
34
- },
35
- "ghooks": {
36
- "commit-msg": "validate-commit-msg"
37
- },
38
- "validate-commit-msg": {
39
- "types": [
40
- "feat",
41
- "fix",
42
- "docs",
43
- "style",
44
- "refactor",
45
- "perf",
46
- "test",
47
- "chore",
48
- "revert"
49
- ],
50
- "warnOnFail": false,
51
- "maxSubjectLength": 100
52
- }
30
+ "dependencies": {
31
+ "tslib": "^2.3.1"
53
32
  },
54
33
  "schematics": "./schematics/collection.json",
55
- "release": {
56
- "debug": false,
57
- "branchTags": {
58
- "develop": "dev"
34
+ "module": "fesm2015/progress-kendo-angular-l10n.mjs",
35
+ "es2020": "fesm2020/progress-kendo-angular-l10n.mjs",
36
+ "esm2020": "esm2020/progress-kendo-angular-l10n.mjs",
37
+ "fesm2020": "fesm2020/progress-kendo-angular-l10n.mjs",
38
+ "fesm2015": "fesm2015/progress-kendo-angular-l10n.mjs",
39
+ "typings": "progress-kendo-angular-l10n.d.ts",
40
+ "exports": {
41
+ "./package.json": {
42
+ "default": "./package.json"
59
43
  },
60
- "fallbackTags": {
61
- "dev": "latest"
62
- },
63
- "analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
64
- "generateNotes": "@progress/semantic-prerelease/generateNotes",
65
- "getLastRelease": "@progress/semantic-prerelease/getLastRelease",
66
- "verifyConditions": "@progress/semantic-prerelease/verifyConditions",
67
- "verifyRelease": "@progress/semantic-prerelease/verifyRelease"
44
+ ".": {
45
+ "types": "./progress-kendo-angular-l10n.d.ts",
46
+ "esm2020": "./esm2020/progress-kendo-angular-l10n.mjs",
47
+ "es2020": "./fesm2020/progress-kendo-angular-l10n.mjs",
48
+ "es2015": "./fesm2015/progress-kendo-angular-l10n.mjs",
49
+ "node": "./fesm2015/progress-kendo-angular-l10n.mjs",
50
+ "default": "./fesm2020/progress-kendo-angular-l10n.mjs"
51
+ }
68
52
  },
69
- "main": "bundles/kendo-angular-l10n.umd.js",
70
- "module": "fesm2015/kendo-angular-l10n.js",
71
- "es2015": "fesm2015/kendo-angular-l10n.js",
72
- "esm2015": "esm2015/kendo-angular-l10n.js",
73
- "fesm2015": "fesm2015/kendo-angular-l10n.js",
74
- "typings": "kendo-angular-l10n.d.ts",
75
53
  "sideEffects": false
76
54
  }
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  /**
6
6
  * Generated bundle index. Do not edit.
7
7
  */
8
8
  /// <amd-module name="@progress/kendo-angular-l10n" />
9
- export * from './main';
9
+ export * from './index';
package/rtl.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
5
  import { InjectionToken } from '@angular/core';
@@ -7,11 +7,9 @@ import { InjectionToken } from '@angular/core';
7
7
  * A token that specifies the text direction of Kendo UI for Angular components.
8
8
  *
9
9
  * @example
10
- * {% meta height:230 %}
11
10
  * {% embed_file rtl/app.module.ts preview %}
12
11
  * {% embed_file rtl/app.component.ts %}
13
12
  * {% embed_file shared/main.ts hidden %}
14
- * {% endmeta %}
15
13
  *
16
14
  */
17
15
  export declare const RTL: InjectionToken<string>;
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
+ "schematics": {
4
+ "ng-add": {
5
+ "description": "Adds Kendo Angular Package to the application.",
6
+ "factory": "./ngAdd",
7
+ "schema": "./ngAdd/schema.json",
8
+ "hidden": true,
9
+ "private": true
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schematics_1 = require("@angular-devkit/schematics");
4
+ function default_1(options) {
5
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'L10nModule', package: 'l10n' });
6
+ return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
7
+ }
8
+ exports.default = default_1;
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "SchematicsKendoAngularL10n",
4
+ "title": "Kendo Angular L10n Options Schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "theme": {
8
+ "enum": ["default", "bootstrap", "material"],
9
+ "default": "default",
10
+ "description": "The theme to apply"
11
+ },
12
+ "export": {
13
+ "type": "boolean",
14
+ "default": false,
15
+ "description": "Specifies if declaring module exports the component."
16
+ },
17
+ "skipInstall": {
18
+ "description": "Skip installing Kendo dependency packages.",
19
+ "type": "boolean",
20
+ "default": false
21
+ }
22
+ },
23
+ "required": []
24
+ }
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("KendoAngularL10N",["exports","@angular/core","rxjs","rxjs/operators"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularL10N={},e.ng.core,e.rxjs,e.rxjs.operators)}(this,function(e,t,o,i){"use strict";function r(r){var n;return r&&r.__esModule?r:(n=Object.create(null),r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),n.default=r,Object.freeze(n))}var n=r(t),s=(a.prototype.notify=function(e){this.changes.next({rtl:e})},a.prototype.get=function(e){},a);function a(){this.changes=new o.BehaviorSubject({rtl:void 0})}s.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,deps:[],target:n.ɵɵFactoryTarget.Injectable}),s.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,decorators:[{type:t.Injectable}],ctorParameters:function(){return[]}});Object.defineProperty(p.prototype,"override",{get:function(){return!1},enumerable:!1,configurable:!0}),p.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},p.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(i.skip(1)).subscribe(function(){return e.register(e)})},p.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};var c=p;function p(){}c.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:c,deps:[],target:n.ɵɵFactoryTarget.Directive}),c.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:c,decorators:[{type:t.Directive,args:[{}]}]});var u=new t.InjectionToken("Kendo UI Right-to-Left token"),g=new t.InjectionToken("Localization key prefix"),f=(Object.defineProperty(y.prototype,"rtl",{get:function(){return this._rtl},enumerable:!1,configurable:!0}),y.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},y.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},y.prototype.register=function(e,t,r){void 0===r&&(r=!1);var e=this.key(e),n=t;if(!r){if(this.dictionary.hasOwnProperty(e))return;n=this.defaultValue(e,t)}this.dictionary[e]=n},y.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},y.prototype.key=function(e){return this.prefix+"."+e},y.prototype.defaultValue=function(e,t){return!this.messageService||void 0===(e=this.messageService.get(e))?t:e},y);function y(e,t,r){var n=this;this.prefix=e,this.messageService=t,this._rtl=r,this.changes=new o.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(i.map(function(e){e=e.rtl;return void 0!==e?e:n._rtl}),i.tap(function(e){return n._rtl=e})).subscribe(function(e){n.dictionary={},n.changes.next({rtl:e})}))}f.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f,deps:[{token:g},{token:s,optional:!0},{token:u,optional:!0}],target:n.ɵɵFactoryTarget.Injectable}),f.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f,decorators:[{type:t.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:t.Inject,args:[g]}]},{type:s,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[u]}]}]}}),e.ComponentMessages=c,e.L10N_PREFIX=g,e.LocalizationService=f,e.MessageService=s,e.RTL=u,Object.defineProperty(e,"__esModule",{value:!0})});