@flusys/ng-localization 5.4.1 → 6.0.0-beta.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/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@flusys/ng-localization",
3
- "version": "5.4.1",
3
+ "version": "6.0.0-beta.1",
4
4
  "description": "Localization module for multi-language support in FLUSYS Angular apps",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
7
- "@angular/common": ">=21.0.0",
8
- "@angular/core": ">=21.0.0",
9
- "@angular/forms": ">=21.0.0",
10
- "@angular/router": ">=21.0.0",
11
- "@flusys/ng-core": ">=5.4.1",
12
- "@flusys/ng-shared": ">=5.4.1",
13
- "@primeuix/themes": ">=1.0.0",
14
- "primeicons": ">=7.0.0",
15
- "primeng": ">=21.0.0",
7
+ "@angular/common": ">=22.0.0",
8
+ "@angular/core": ">=22.0.0",
9
+ "@angular/forms": ">=22.0.0",
10
+ "@angular/router": ">=22.0.0",
11
+ "@flusys/ng-core": ">=6.0.0-beta.1",
12
+ "@flusys/ng-layout": ">=6.0.0-beta.1",
13
+ "@flusys/ng-shared": ">=6.0.0-beta.1",
14
+ "@flusys/ng-ui": ">=6.0.0-beta.1",
16
15
  "rxjs": "^7.8.0"
17
16
  },
18
17
  "sideEffects": false,
@@ -27,6 +26,7 @@
27
26
  "default": "./fesm2022/flusys-ng-localization.mjs"
28
27
  }
29
28
  },
29
+ "type": "module",
30
30
  "dependencies": {
31
31
  "tslib": "^2.3.0"
32
32
  }
@@ -3,6 +3,7 @@ import { InjectionToken, Provider, EnvironmentProviders, OnInit } from '@angular
3
3
  import { ApiResourceService, ISingleResponse, IListResponse } from '@flusys/ng-shared';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as _flusys_ng_localization from '@flusys/ng-localization';
6
+ import { MenuItem } from '@flusys/ng-ui';
6
7
  import * as _angular_forms_signals from '@angular/forms/signals';
7
8
  import { Routes } from '@angular/router';
8
9
 
@@ -120,7 +121,6 @@ declare class LocalizationStateService {
120
121
  private readonly platformService;
121
122
  private readonly document;
122
123
  private readonly appRef;
123
- private readonly primeNG;
124
124
  private readonly _loadedModules;
125
125
  private readonly _currentLanguage;
126
126
  private readonly _availableLanguages;
@@ -133,10 +133,6 @@ declare class LocalizationStateService {
133
133
  readonly isLoading: _angular_core.Signal<boolean>;
134
134
  readonly currentLanguageCode: _angular_core.Signal<string>;
135
135
  constructor();
136
- private dotToCamel;
137
- private readonly PRIMENG_NUMERIC_KEYS;
138
- private readonly PRIMENG_ARRAY_DEFAULTS;
139
- private syncPrimeNGTranslations;
140
136
  setCurrentLanguage(language: ILanguage): void;
141
137
  setAvailableLanguages(languages: ILanguage[]): void;
142
138
  setTranslations(translations: ITranslationsMap): void;
@@ -210,15 +206,10 @@ declare class LanguageSelectorComponent {
210
206
  private readonly localizationState;
211
207
  private readonly translationLoader;
212
208
  private readonly destroyRef;
213
- private readonly document;
214
- private readonly elementRef;
215
209
  readonly languages: _angular_core.Signal<_flusys_ng_localization.ILanguage[]>;
216
- private readonly _isActive;
217
- readonly isActive: _angular_core.Signal<boolean>;
218
210
  readonly selectedLanguageCode: _angular_core.Signal<string>;
219
211
  readonly selectedLanguage: _angular_core.Signal<_flusys_ng_localization.ILanguage | null>;
220
- constructor();
221
- togglePanel(): void;
212
+ readonly menuItems: _angular_core.Signal<MenuItem[]>;
222
213
  onLanguageSelect(code: string): void;
223
214
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<LanguageSelectorComponent, never>;
224
215
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<LanguageSelectorComponent, "lib-language-selector", never, {}, {}, never, never, true, never>;
@@ -253,7 +244,7 @@ declare class LanguageFormPage {
253
244
  value: string;
254
245
  }[]>;
255
246
  readonly formModel: _angular_core.WritableSignal<ILanguageFormModel>;
256
- readonly formTree: _angular_forms_signals.FieldTree<ILanguageFormModel, string | number>;
247
+ readonly formTree: _angular_forms_signals.FieldTree<ILanguageFormModel, string | number, "writable">;
257
248
  readonly isFormValid: _angular_core.Signal<boolean>;
258
249
  constructor();
259
250
  updateDirection(value: 'ltr' | 'rtl'): void;
@@ -340,7 +331,7 @@ declare class TranslationKeyFormPage implements OnInit {
340
331
  value: string;
341
332
  }[]>;
342
333
  readonly formModel: _angular_core.WritableSignal<ITranslationKeyFormModel>;
343
- readonly formTree: _angular_forms_signals.FieldTree<ITranslationKeyFormModel, string | number>;
334
+ readonly formTree: _angular_forms_signals.FieldTree<ITranslationKeyFormModel, string | number, "writable">;
344
335
  readonly isFormValid: _angular_core.Signal<boolean>;
345
336
  constructor();
346
337
  ngOnInit(): void;