@progress/kendo-angular-l10n 25.0.0-develop.2 → 25.0.0-develop.4

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.
@@ -3,7 +3,7 @@
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';
6
- import { Injectable, Directive, InjectionToken, Inject, Optional } from '@angular/core';
6
+ import { Injectable, Directive, InjectionToken, signal, Inject, Optional } from '@angular/core';
7
7
  import { BehaviorSubject } from 'rxjs';
8
8
  import { skip, map, tap } from 'rxjs/operators';
9
9
 
@@ -129,7 +129,7 @@ class LocalizationService {
129
129
  _rtl;
130
130
  changes;
131
131
  subscription;
132
- dictionary = {};
132
+ dictionary = signal({}, ...(ngDevMode ? [{ debugName: "dictionary" }] : []));
133
133
  constructor(prefix, messageService, _rtl) {
134
134
  this.prefix = prefix;
135
135
  this.messageService = messageService;
@@ -139,7 +139,7 @@ class LocalizationService {
139
139
  this.subscription = messageService.changes
140
140
  .pipe(map(({ rtl }) => rtl !== undefined ? rtl : this._rtl), tap(rtl => this._rtl = rtl))
141
141
  .subscribe(rtl => {
142
- this.dictionary = {};
142
+ this.dictionary.set({});
143
143
  this.changes.next({ rtl });
144
144
  });
145
145
  }
@@ -154,18 +154,18 @@ class LocalizationService {
154
154
  }
155
155
  get(shortKey) {
156
156
  const key = this.key(shortKey);
157
- return this.dictionary[key];
157
+ return this.dictionary()[key];
158
158
  }
159
159
  register(shortKey, value, override = false) {
160
160
  const key = this.key(shortKey);
161
161
  let message = value;
162
162
  if (!override) {
163
- if (Object.hasOwnProperty.call(this.dictionary, key)) {
163
+ if (Object.hasOwnProperty.call(this.dictionary(), key)) {
164
164
  return;
165
165
  }
166
166
  message = this.defaultValue(key, value);
167
167
  }
168
- this.dictionary[key] = message;
168
+ this.dictionary.update(dict => ({ ...dict, [key]: message }));
169
169
  }
170
170
  notifyChanges() {
171
171
  this.changes.next({ rtl: this.rtl });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-l10n",
3
- "version": "25.0.0-develop.2",
3
+ "version": "25.0.0-develop.4",
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": "20 - 22",
23
23
  "@angular/core": "20 - 22",
24
24
  "@angular/platform-browser": "20 - 22",
25
- "@progress/kendo-angular-common": "25.0.0-develop.2",
25
+ "@progress/kendo-angular-common": "25.0.0-develop.4",
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": "25.0.0-develop.2"
31
+ "@progress/kendo-angular-schematics": "25.0.0-develop.4"
32
32
  },
33
33
  "schematics": "./schematics/collection.json",
34
34
  "module": "fesm2022/progress-kendo-angular-l10n.mjs",