@reforgium/presentia 1.3.0 → 1.4.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,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0",
2
+ "version": "1.4.1",
3
3
  "name": "@reforgium/presentia",
4
4
  "description": "reforgium State modules",
5
5
  "author": "rtommievich",
@@ -8,9 +8,20 @@
8
8
  "repository": {
9
9
  "type": "git"
10
10
  },
11
+ "bugs": {
12
+ "email": "rtommievich@gmail.com"
13
+ },
11
14
  "publishConfig": {
12
15
  "access": "public"
13
16
  },
17
+ "sideEffects": false,
18
+ "engines": {
19
+ "node": ">=18.0.0",
20
+ "npm": ">=9.0.0"
21
+ },
22
+ "bin": {
23
+ "presentia-gen-lang-keys": "./bin/presentia-gen-lang-keys.mjs"
24
+ },
14
25
  "keywords": [
15
26
  "reforgium",
16
27
  "state",
@@ -19,13 +30,22 @@
19
30
  "angular"
20
31
  ],
21
32
  "types": "../../dist/@reforgium/presentia/index.d.ts",
33
+ "files": [
34
+ "fesm2022/*.mjs",
35
+ "types/*.d.ts",
36
+ "bin/*.mjs",
37
+ "package.json",
38
+ "README.md",
39
+ "CHANGELOG.md",
40
+ "LICENSE*"
41
+ ],
22
42
  "dependencies": {
23
43
  "tslib": "^2.8.1"
24
44
  },
25
45
  "peerDependencies": {
26
46
  "@angular/common": ">=18.0.0",
27
47
  "@angular/core": ">=18.0.0",
28
- "@reforgium/internal": ">=1.1.0",
48
+ "@reforgium/internal": ">=1.2.0",
29
49
  "rxjs": ">=7.0.0"
30
50
  },
31
51
  "module": "fesm2022/reforgium-presentia.mjs",
@@ -38,6 +58,5 @@
38
58
  "types": "./types/reforgium-presentia.d.ts",
39
59
  "default": "./fesm2022/reforgium-presentia.mjs"
40
60
  }
41
- },
42
- "sideEffects": false
61
+ }
43
62
  }
@@ -1,7 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Signal, PipeTransform, Injector, EnvironmentProviders } from '@angular/core';
2
+ import { InjectionToken, Signal, PipeTransform, EnvironmentProviders } from '@angular/core';
3
3
  import * as _reforgium_internal from '@reforgium/internal';
4
4
  import { Devices, Langs, Themes } from '@reforgium/internal';
5
+ import { HttpHeaders, HttpParams, HttpContext } from '@angular/common/http';
5
6
 
6
7
  /** Breakpoints for different device types */
7
8
  type DeviceBreakpoints = Record<Devices, string>;
@@ -97,6 +98,7 @@ declare class AdaptiveService {
97
98
  isPortrait: i0.Signal<boolean>;
98
99
  private deviceBreakpoints;
99
100
  private devicePriority;
101
+ private destroyRef;
100
102
  private breakpointObserver;
101
103
  private isBrowser;
102
104
  constructor();
@@ -173,7 +175,52 @@ interface LangModel {
173
175
  * `value` - mask value
174
176
  * example: {{`key1`}} will be replaced with `value1`
175
177
  */
176
- type LangParams = Record<string, string>;
178
+ type LangParamValue = string | number | boolean | null | undefined;
179
+ type LangParams = Record<string, LangParamValue>;
180
+ type LangMissingKeyHandler = (key: string, context: {
181
+ lang: Langs;
182
+ }) => string | void;
183
+ type LangRequestContext = {
184
+ ns: string;
185
+ lang: Langs;
186
+ isFromAssets: boolean;
187
+ baseUrl: string;
188
+ };
189
+ type LangResponseContext = {
190
+ ns: string;
191
+ lang: Langs;
192
+ isFromAssets: boolean;
193
+ };
194
+ type LangBatchRequestContext = {
195
+ namespaces: readonly string[];
196
+ lang: Langs;
197
+ isFromAssets: boolean;
198
+ baseUrl: string;
199
+ };
200
+ type LangBatchResponseContext = {
201
+ namespaces: readonly string[];
202
+ lang: Langs;
203
+ isFromAssets: boolean;
204
+ };
205
+ type LangHttpRequestOptions = {
206
+ headers?: HttpHeaders | Record<string, string | string[]>;
207
+ params?: HttpParams | Record<string, string | number | boolean | readonly (string | number | boolean)[]>;
208
+ context?: HttpContext;
209
+ withCredentials?: boolean;
210
+ responseType?: 'json' | 'text' | 'blob' | 'arraybuffer';
211
+ transferCache?: boolean | {
212
+ includeHeaders?: string[];
213
+ };
214
+ };
215
+ type LangRequestBuilder = (context: LangRequestContext) => string;
216
+ type LangResponseAdapter = (response: unknown, context: LangResponseContext) => LangModel | LangDto[];
217
+ type LangRequestOptionsFactory = (context: LangRequestContext) => LangHttpRequestOptions;
218
+ type LangBatchRequestBuilder = (context: LangBatchRequestContext) => string;
219
+ type LangBatchResponseAdapter = (response: unknown, context: LangBatchResponseContext) => Record<string, LangModel | LangDto[]>;
220
+ type LangNamespaceCacheConfig = {
221
+ maxNamespaces?: number;
222
+ ttlMs?: number;
223
+ };
177
224
  /**
178
225
  * Represents configuration settings for localization.
179
226
  *
@@ -187,6 +234,15 @@ type LangParams = Record<string, string>;
187
234
  * - `defaultLang` defines optional default language for localization.
188
235
  * - `defaultValue` - optional default value for locale resource.
189
236
  * - `kgValue` specifies optional localization value with variants `kg` or `ky`.
237
+ * - `supportedLangs` registers additional language codes (besides built-ins `ru`, `kg`, `en`).
238
+ * - `fallbackLang` optional fallback language code.
239
+ * - `preloadNamespaces` optional list of namespaces to preload.
240
+ * - `requestBuilder` optional URL builder hook for custom backends.
241
+ * - `requestOptionsFactory` optional HTTP options hook (headers, params, credentials, responseType, context).
242
+ * - `responseAdapter` optional transformer hook for custom API response formats.
243
+ * - `batchRequestBuilder` optional URL builder hook for batched namespace loading.
244
+ * - `batchResponseAdapter` optional transformer hook for batched API payloads.
245
+ * - `namespaceCache` optional ttl/lru-like cache controls for loaded namespaces.
190
246
  */
191
247
  interface LocaleConfig {
192
248
  url: string;
@@ -194,9 +250,20 @@ interface LocaleConfig {
194
250
  defaultLang?: Langs;
195
251
  defaultValue?: string;
196
252
  kgValue?: 'kg' | 'ky';
253
+ supportedLangs?: readonly string[];
254
+ fallbackLang?: Langs;
255
+ preloadNamespaces?: readonly string[];
256
+ requestBuilder?: LangRequestBuilder;
257
+ requestOptionsFactory?: LangRequestOptionsFactory;
258
+ responseAdapter?: LangResponseAdapter;
259
+ batchRequestBuilder?: LangBatchRequestBuilder;
260
+ batchResponseAdapter?: LangBatchResponseAdapter;
261
+ namespaceCache?: LangNamespaceCacheConfig;
197
262
  }
198
263
  declare const innerLangVal: unique symbol;
199
264
 
265
+ declare const LANG_MISSING_KEY_HANDLER: InjectionToken<LangMissingKeyHandler>;
266
+
200
267
  /**
201
268
  * Injection token for providing locale configuration to the language module.
202
269
  *
@@ -217,6 +284,21 @@ declare const innerLangVal: unique symbol;
217
284
  */
218
285
  declare const LANG_CONFIG: InjectionToken<LocaleConfig>;
219
286
 
287
+ /**
288
+ * Extension point for typed localization keys.
289
+ *
290
+ * Consumers can augment this interface:
291
+ * declare the module '@reforgium/presentia' {
292
+ * interface LangKeyRegistry {
293
+ * keys: 'layout.title' | 'common.save';
294
+ * }
295
+ * }
296
+ */
297
+ interface LangKeyRegistry {
298
+ keys: string;
299
+ }
300
+ type LangKey = LangKeyRegistry['keys'];
301
+
220
302
  /**
221
303
  * LangService provides functionality for managing and tracking language settings
222
304
  * and translations in the application. It is designed to handle localization needs,
@@ -225,16 +307,20 @@ declare const LANG_CONFIG: InjectionToken<LocaleConfig>;
225
307
  */
226
308
  declare class LangService {
227
309
  #private;
310
+ private static readonly BUILTIN_LANGS;
311
+ private static readonly LANG_CODE_RE;
228
312
  private readonly config;
229
313
  private readonly http;
230
314
  private readonly isBrowser;
315
+ private readonly missingKeyHandler;
316
+ private readonly supportedLangSet;
231
317
  /**
232
318
  * Computed property determining the current language setting.
233
319
  *
234
- * - If private method `#lang` returns 'ru', this property will return 'ru'.
235
- * - If `#lang` returns another value, the `config.kgValue` property is checked:
320
+ * - If private method `#lang` returns 'kg', `config.kgValue` is checked:
236
321
  * - If `config.kgValue` is defined, the property will return its value.
237
322
  * - If `config.kgValue` is not defined, the property will return the default value 'kg'.
323
+ * - For other languages (e.g. `ru`, `en`) returns source language as-is.
238
324
  */
239
325
  readonly currentLang: Signal<"ru" | "kg" | "ky">;
240
326
  /**
@@ -242,6 +328,7 @@ declare class LangService {
242
328
  * Expected that property `#lang` has `asReadonly` method that returns immutable representation.
243
329
  */
244
330
  readonly [innerLangVal]: Signal<Langs>;
331
+ constructor();
245
332
  /**
246
333
  * Sets the current language for the application.
247
334
  *
@@ -258,6 +345,7 @@ declare class LangService {
258
345
  * @return {string} Retrieved value after optional parameter application,
259
346
  * or default value if a query is not found.
260
347
  */
348
+ get(query: LangKey, params?: LangParams): string;
261
349
  get(query: string, params?: LangParams): string;
262
350
  /**
263
351
  * Observes changes to a specified translation key and dynamically computes its value.
@@ -268,6 +356,7 @@ declare class LangService {
268
356
  * @return {Signal<string>} Computed value that dynamically updates
269
357
  * with translation matching a provided query and parameters.
270
358
  */
359
+ observe(query: LangKey, params?: LangParams): Signal<string>;
271
360
  observe(query: string, params?: LangParams): Signal<string>;
272
361
  /**
273
362
  * Loads specified namespace, ensuring its caching and availability for use.
@@ -278,13 +367,32 @@ declare class LangService {
278
367
  */
279
368
  loadNamespace(ns: string): Promise<void>;
280
369
  isNamespaceLoaded(ns: string): boolean;
370
+ loadNamespaces(namespaces: readonly string[]): Promise<void>;
371
+ evictNamespace(ns: string): void;
372
+ clearNamespaceCache(): void;
281
373
  private parseModelToRecord;
282
374
  private parseAssetToRecord;
283
375
  private applyParams;
284
376
  private getChainedValue;
285
377
  private getStoredLang;
286
378
  private makeUrl;
379
+ private adaptResponse;
380
+ private adaptNamespacePayload;
381
+ private makeRequestOptions;
382
+ private makeBatchRequestOptions;
383
+ private toRequestContext;
384
+ private toBatchResponseContext;
385
+ private isNamespaceValid;
386
+ private tryExpireNamespace;
387
+ private enforceNamespaceCacheLimit;
388
+ private removeNamespaceFromCache;
389
+ private namespaceFromKey;
390
+ private makeBatchKey;
391
+ private isLangModel;
287
392
  private makeNamespaceKey;
393
+ private resolveMissingValue;
394
+ private normalizeLang;
395
+ private normalizeSupportedLangs;
288
396
  static ɵfac: i0.ɵɵFactoryDeclaration<LangService, never>;
289
397
  static ɵprov: i0.ɵɵInjectableDeclaration<LangService>;
290
398
  }
@@ -298,9 +406,9 @@ declare class LangService {
298
406
  * - `'only-title'` - only the `title` attribute
299
407
  * - `'all'` - all supported attributes and content
300
408
  */
301
- type Types = 'only-content' | 'only-placeholder' | 'only-label' | 'only-title' | 'all';
409
+ type LangDirectiveMode = 'only-content' | 'only-placeholder' | 'only-label' | 'only-title' | 'all';
302
410
  type LangDirectiveConfig = {
303
- mode?: Types;
411
+ mode?: LangDirectiveMode;
304
412
  textKey?: string;
305
413
  attrs?: Record<string, string>;
306
414
  };
@@ -331,6 +439,8 @@ type LangDirectiveConfig = {
331
439
  * @publicApi
332
440
  */
333
441
  declare class LangDirective {
442
+ private static readonly TEXT_NODE_TYPE;
443
+ private readonly warned;
334
444
  /**
335
445
  * Localization mode: defines which parts of the element will be translated.
336
446
  * @default 'all'
@@ -403,13 +513,6 @@ declare class LangDirective {
403
513
  static ɵdir: i0.ɵɵDirectiveDeclaration<LangDirective, "[reLang]", never, { "lang": { "alias": "reLang"; "required": false; "isSignal": true; }; "langForAttr": { "alias": "langForAttr"; "required": false; "isSignal": true; }; "reLangKey": { "alias": "reLangKey"; "required": false; }; "reLangAttrs": { "alias": "reLangAttrs"; "required": false; }; }, {}, never, never, true, never>;
404
514
  }
405
515
 
406
- type LangPipeConfig = {
407
- ttlMs?: number;
408
- maxCacheSize?: number;
409
- placeholder?: string | ((key: string) => string);
410
- };
411
- declare const LANG_PIPE_CONFIG: InjectionToken<LangPipeConfig>;
412
-
413
516
  /**
414
517
  * Custom Angular pipe that transforms a language key and additional parameters into a localized string.
415
518
  *
@@ -425,19 +528,27 @@ declare const LANG_PIPE_CONFIG: InjectionToken<LangPipeConfig>;
425
528
  * @implements {PipeTransform}
426
529
  */
427
530
  declare class LangPipe implements PipeTransform {
428
- private readonly lang;
429
531
  private readonly cache;
532
+ private readonly lang;
533
+ private readonly injector;
430
534
  private readonly config;
431
535
  private readonly ttlMs;
432
536
  private readonly maxCacheSize;
433
- constructor(lang?: LangService, config?: LangPipeConfig | null, injector?: Injector);
434
- transform(query: string, params?: LangParams): string;
537
+ constructor();
538
+ transform(query: string | null | undefined, params?: LangParams | null): string;
435
539
  private makeKey;
436
540
  private evictIfNeeded;
437
- static ɵfac: i0.ɵɵFactoryDeclaration<LangPipe, [null, { optional: true; }, { optional: true; }]>;
541
+ static ɵfac: i0.ɵɵFactoryDeclaration<LangPipe, never>;
438
542
  static ɵpipe: i0.ɵɵPipeDeclaration<LangPipe, "lang", true>;
439
543
  }
440
544
 
545
+ type LangPipeConfig = {
546
+ ttlMs?: number;
547
+ maxCacheSize?: number;
548
+ placeholder?: string | ((key: string) => string);
549
+ };
550
+ declare const LANG_PIPE_CONFIG: InjectionToken<LangPipeConfig>;
551
+
441
552
  /**
442
553
  * Configuration options for theme management.
443
554
  * Defines the default theme and prefix for dark theme variants.
@@ -548,7 +659,7 @@ declare class ThemeService {
548
659
  */
549
660
  theme: i0.Signal<Themes>;
550
661
  /**
551
- * Convenient flag returning `true` if light theme is active.
662
+ * Convenient flag returning `true` if the light theme is active.
552
663
  * Suitable for conditional style application or resource selection.
553
664
  */
554
665
  isLight: i0.Signal<boolean>;
@@ -566,46 +677,13 @@ declare class ThemeService {
566
677
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
567
678
  }
568
679
 
569
- /**
570
- * Configuration object for initializing the Presentia application providers.
571
- *
572
- * @property {LocaleConfig} locale - Locale configuration (required). Defines language and localization settings.
573
- * @property {ThemeConfig} [theme] - Theme configuration (optional).
574
- * Defines the application theme. Defaults to `defaultThemeConfig` if not provided.
575
- * @property {DeviceBreakpoints} [breakpoints] - Device breakpoints configuration (optional).
576
- * Defines responsive breakpoints. Defaults to `defaultBreakpoints` if not provided.
577
- */
578
680
  interface AppConfig {
579
681
  locale: LocaleConfig;
580
682
  theme?: ThemeConfig;
581
683
  breakpoints?: DeviceBreakpoints;
582
684
  langPipe?: LangPipeConfig;
685
+ langMissingKeyHandler?: LangMissingKeyHandler;
583
686
  }
584
- /**
585
- * Provides environment-level providers for Presentia application initialization.
586
- *
587
- * This function configures essential application services:
588
- * - Language and localization settings
589
- * - Theme configuration
590
- * - Adaptive/responsive breakpoints
591
- * - Current device detection
592
- *
593
- * @param {AppConfig} config - Configuration object containing locale, theme, and breakpoints settings.
594
- * @returns {EnvironmentProviders} A collection of Angular providers for the application environment.
595
- *
596
- * @example
597
- * ```typescript
598
- * export const appConfig: ApplicationConfig = {
599
- * providers: [
600
- * provideReInit({
601
- * locale: { defaultLang: 'en', supportedLangs: ['en', 'ru'] },
602
- * theme: { defaultTheme: 'dark' },
603
- * breakpoints: { mobile: 768, tablet: 1024 }
604
- * })
605
- * ]
606
- * };
607
- * ```
608
- */
609
687
  declare function provideReInit(config: AppConfig): EnvironmentProviders;
610
688
 
611
689
  /**
@@ -786,6 +864,6 @@ declare class RouteWatcher {
786
864
  static ɵprov: i0.ɵɵInjectableDeclaration<RouteWatcher>;
787
865
  }
788
866
 
789
- export { AdaptiveService, DEVICE_BREAKPOINTS, IfDeviceDirective, LANG_CONFIG, LANG_PIPE_CONFIG, LangDirective, LangPipe, LangService, RouteWatcher, SeoRouteListener, SeoService, THEME_CONFIG, ThemeService, darkThemePrefix, defaultBreakpoints, defaultThemeConfig, innerLangVal, provideReInit, themes };
790
- export type { AppConfig, DeviceBreakpoints, LangDto, LangModel, LangParams, LangPipeConfig, LocaleConfig, OgType, ThemeConfig, TwitterCardType };
867
+ export { AdaptiveService, DEVICE_BREAKPOINTS, IfDeviceDirective, LANG_CONFIG, LANG_MISSING_KEY_HANDLER, LANG_PIPE_CONFIG, LangDirective, LangPipe, LangService, RouteWatcher, SeoRouteListener, SeoService, THEME_CONFIG, ThemeService, darkThemePrefix, defaultBreakpoints, defaultThemeConfig, innerLangVal, provideReInit, themes };
868
+ export type { AppConfig, DeviceBreakpoints, LangBatchRequestBuilder, LangBatchRequestContext, LangBatchResponseAdapter, LangBatchResponseContext, LangDirectiveConfig, LangDirectiveMode, LangDto, LangHttpRequestOptions, LangKey, LangKeyRegistry, LangMissingKeyHandler, LangModel, LangNamespaceCacheConfig, LangParamValue, LangParams, LangPipeConfig, LangRequestBuilder, LangRequestContext, LangRequestOptionsFactory, LangResponseAdapter, LangResponseContext, LocaleConfig, OgType, ThemeConfig, TwitterCardType };
791
869
  //# sourceMappingURL=reforgium-presentia.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reforgium-presentia.mjs","sources":["../../../../libs/presentia/src/adaptive/adaptive.provider.ts","../../../../libs/presentia/src/adaptive/adaptive.service.ts","../../../../libs/presentia/src/adaptive/device-type.directive.ts","../../../../libs/presentia/src/lang/lang.models.ts","../../../../libs/presentia/src/lang/locale.provider.ts","../../../../libs/presentia/src/lang/lang.service.ts","../../../../libs/presentia/src/lang/lang.directive.ts","../../../../libs/presentia/src/lang/lang.pipe.config.ts","../../../../libs/presentia/src/lang/lang.pipe.ts","../../../../libs/presentia/src/theme/themes.constant.ts","../../../../libs/presentia/src/theme/theme.provider.ts","../../../../libs/presentia/src/theme/theme.service.ts","../../../../libs/presentia/src/providers/init.provider.ts","../../../../libs/presentia/src/seo/seo.service.ts","../../../../libs/presentia/src/seo/seo-route.listener.ts","../../../../libs/presentia/src/routes/route-watcher.service.ts","../../../../libs/presentia/src/reforgium-presentia.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nimport { DeviceBreakpoints } from './adaptive.models';\r\n\r\n/**\r\n * Default breakpoints for device type detection.\r\n *\r\n * Defines media queries for each device category:\r\n * - `mobile` — screens up to 719px wide\r\n * - `tablet` — screens from 720px to 1399px wide\r\n * - `desktop-s` — small desktop screens from 1400px to 1919px wide\r\n * - `desktop` — large desktop screens 1920px and wider\r\n *\r\n * These breakpoints are used by `AdaptiveService` to determine the current device type.\r\n */\r\nexport const defaultBreakpoints = {\r\n 'mobile': '(max-width: 719px)',\r\n 'tablet': '(min-width: 720px) and (max-width: 1399px)',\r\n 'desktop-s': '(min-width: 1400px) and (max-width: 1919px)',\r\n 'desktop': '(min-width: 1920px)',\r\n};\r\n/**\r\n * Injection token for providing custom device breakpoints.\r\n *\r\n * By default, provides `defaultBreakpoints`, but can be overridden\r\n * at any level of the dependency injection tree to customize\r\n * the device detection behavior.\r\n *\r\n * Example of overriding:\r\n * ```typescript\r\n * {\r\n * provide: DEVICE_BREAKPOINTS,\r\n * useValue: {\r\n * mobile: '(max-width: 599px)',\r\n * tablet: '(min-width: 600px) and (max-width: 1199px)',\r\n * 'desktop-s': '(min-width: 1200px) and (max-width: 1799px)',\r\n * desktop: '(min-width: 1800px)'\r\n * }\r\n * }\r\n * ```\r\n *\r\n * Used by `AdaptiveService` to observe media query changes.\r\n */\r\nexport const DEVICE_BREAKPOINTS = new InjectionToken<DeviceBreakpoints>('RE_DEVICE_BREAKPOINTS', {\r\n providedIn: 'root',\r\n factory: () => defaultBreakpoints,\r\n});\r\n","import { BreakpointObserver } from '@angular/cdk/layout';\r\nimport { isPlatformBrowser } from '@angular/common';\r\nimport { afterRenderEffect, computed, inject, Injectable, PLATFORM_ID, signal } from '@angular/core';\r\nimport { debounceTime, fromEvent } from 'rxjs';\r\n\r\nimport { Devices } from '@reforgium/internal';\r\n\r\n// noinspection ES6PreferShortImport\r\nimport { DEVICE_BREAKPOINTS } from './adaptive.provider';\r\n\r\n/**\r\n * The `AdaptiveService` is responsible for determining the device type, window dimensions, and screen orientation.\r\n *\r\n * Used for building adaptive interfaces, changing component behavior and styles\r\n * depending on the current device or screen size.\r\n *\r\n * Main features:\r\n * - Reactive tracking of the current device (`desktop`, `tablet`, `mobile`).\r\n * - Support for computed properties (`isDesktop`, `isPortrait`).\r\n * - Automatic updates when the window is resized and breakpoints are crossed.\r\n *\r\n * Implementation is based on:\r\n * - `BreakpointObserver` from Angular CDK — for observing media queries.\r\n * - `signal` and `computed` — for reactive state without zones.\r\n * - `fromEvent(window, 'resize')` — for updating window dimensions with debouncing.\r\n *\r\n * The service is registered as `providedIn: 'root'` and is available throughout the application.\r\n */\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class AdaptiveService {\r\n /** @internal Signal of the current device type. */\r\n #device = signal<Devices>('desktop');\r\n\r\n /** @internal Signals of the current window width and height. */\r\n #width = signal(0);\r\n #height = signal(0);\r\n\r\n /**\r\n * Current device type (reactive signal).\r\n * Possible values: `'desktop' | 'tablet' | 'mobile'`.\r\n *\r\n * Updates automatically when screen width changes\r\n * or when specified breakpoints are crossed (`DEVICE_BREAKPOINTS`).\r\n */\r\n device = this.#device.asReadonly();\r\n\r\n /**\r\n * Current browser window width in pixels.\r\n * Updates reactively on `resize` event.\r\n */\r\n width = this.#width.asReadonly();\r\n\r\n /**\r\n * Current browser window height in pixels.\r\n * Updates reactively on `resize` event.\r\n */\r\n height = this.#height.asReadonly();\r\n\r\n /**\r\n * Computed signal indicating whether the current device is a desktop.\r\n * Used for conditional rendering or layout configuration.\r\n */\r\n isDesktop = computed(() => this.#device() === 'desktop');\r\n\r\n /**\r\n * Computed signal determining whether the screen is in portrait orientation.\r\n * Returns `true` if window height is greater than width.\r\n */\r\n isPortrait = computed(() => this.#height() > this.#width());\r\n\r\n private deviceBreakpoints = inject(DEVICE_BREAKPOINTS);\r\n private devicePriority: Devices[] = Object.keys(this.deviceBreakpoints) as Devices[];\r\n\r\n private breakpointObserver = inject(BreakpointObserver);\r\n private isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\r\n\r\n constructor() {\r\n if (!this.isBrowser) {\r\n this.#device.set('desktop');\r\n\r\n return;\r\n }\r\n\r\n afterRenderEffect(() => {\r\n this.#width.set(window.innerWidth);\r\n this.#height.set(window.innerHeight);\r\n });\r\n\r\n this.breakpointObserver.observe(Object.values(this.deviceBreakpoints)).subscribe((state) => {\r\n const device = this.devicePriority.find((key) => state.breakpoints[this.deviceBreakpoints[key]]);\r\n\r\n this.#device.set(device ?? 'desktop');\r\n });\r\n fromEvent(window, 'resize')\r\n .pipe(debounceTime(100))\r\n .subscribe(() => {\r\n this.#width.set(window.innerWidth);\r\n this.#height.set(window.innerHeight);\r\n });\r\n }\r\n}\r\n","import { Directive, effect, inject, Input, Signal, signal, TemplateRef, ViewContainerRef } from '@angular/core';\r\n\r\nimport { Devices } from '@reforgium/internal'; // noinspection ES6PreferShortImport\r\n\r\nimport { AdaptiveService } from './adaptive.service';\r\n\r\n/**\r\n * Structural directive `*reIfDevice`.\r\n *\r\n * Shows or hides an element based on the current device type,\r\n * as determined by `AdaptiveService`.\r\n *\r\n * Example:\r\n * ```html\r\n * <div *reIfDevice=\"'desktop'\">Desktop only</div>\r\n * <div *reIfDevice=\"['mobile', 'tablet']\">For mobile and tablets</div>\r\n * <div *reIfDevice=\"'mobile'; inverse: true\"> Hide on mobile</div>\r\n * ```\r\n *\r\n * Parameters:\r\n * - `reIfDevice` - one or more `Devices` values (`'desktop' | 'tablet' | 'mobile'`)\r\n * - `inverse` - inverts the display condition\r\n *\r\n * Works reactively: when the device type changes in `AdaptiveService`,\r\n * the template is automatically added or removed from the DOM.\r\n */\r\n@Directive({\r\n selector: '[reIfDevice]',\r\n standalone: true,\r\n})\r\nexport class IfDeviceDirective {\r\n private readonly deviceInput = signal<Devices | Devices[] | undefined>(undefined);\r\n private readonly inverseInput = signal(false);\r\n\r\n private readonly tpl = inject(TemplateRef);\r\n private readonly vcr = inject(ViewContainerRef);\r\n private readonly adaptive = inject(AdaptiveService);\r\n\r\n private allowedDevices: Devices[] = [];\r\n private hasView = false;\r\n\r\n private readonly currentDevice: Signal<Devices> = this.adaptive.device;\r\n\r\n constructor() {\r\n effect(() => {\r\n const device = this.deviceInput();\r\n\r\n if (device) {\r\n this.allowedDevices = Array.isArray(device) ? device : [device];\r\n }\r\n\r\n this.updateView();\r\n });\r\n }\r\n\r\n @Input('reIfDevice')\r\n set reIfDevice(value: Devices | Devices[] | undefined) {\r\n this.deviceInput.set(value);\r\n }\r\n\r\n @Input()\r\n set inverse(value: boolean | undefined) {\r\n this.inverseInput.set(!!value);\r\n }\r\n\r\n private updateView() {\r\n const isAllowed = this.allowedDevices.includes(this.currentDevice());\r\n const shouldShow = this.inverseInput() ? !isAllowed : isAllowed;\r\n\r\n if (shouldShow && !this.hasView) {\r\n this.vcr.createEmbeddedView(this.tpl);\r\n this.hasView = true;\r\n } else if (!shouldShow && this.hasView) {\r\n this.vcr.clear();\r\n this.hasView = false;\r\n }\r\n }\r\n}\r\n","import { Langs } from '@reforgium/internal';\r\n\r\n/**\r\n * Language data model from localization server\r\n *\r\n * @description\r\n * `Model` for translation data\r\n * `namespace` - git project name\r\n * `code` - masked query: ${page}.${recordKey}\r\n * `value` - translation value\r\n */\r\nexport interface LangDto {\r\n namespace: string;\r\n code: string;\r\n localization: string;\r\n}\r\n\r\n/**\r\n * Data model for translation\r\n *\r\n * @description\r\n * `key` - masked query: ${page}.${recordKey}\r\n * `value` - translation value or nested model\r\n */\r\nexport interface LangModel {\r\n [key: string]: string | LangModel;\r\n}\r\n\r\n/**\r\n * Parameters for text formatting\r\n *\r\n * @description\r\n * `key` - mask key\r\n * `value` - mask value\r\n * example: {{`key1`}} will be replaced with `value1`\r\n */\r\nexport type LangParams = Record<string, string>;\r\n\r\n/**\r\n * Represents configuration settings for localization.\r\n *\r\n * This interface is used to define the locale configuration structure,\r\n * which can include URL, resource origin information, default language,\r\n * and related values for regional or localization settings.\r\n *\r\n * Properties:\r\n * - `url` specifies the localization URL for loading resources.\r\n * - `isFromAssets` indicates whether resources are loaded from application assets.\r\n * - `defaultLang` defines optional default language for localization.\r\n * - `defaultValue` - optional default value for locale resource.\r\n * - `kgValue` specifies optional localization value with variants `kg` or `ky`.\r\n */\r\nexport interface LocaleConfig {\r\n url: string;\r\n isFromAssets: boolean;\r\n defaultLang?: Langs;\r\n defaultValue?: string;\r\n kgValue?: 'kg' | 'ky';\r\n}\r\n\r\nexport const innerLangVal = Symbol('reInnerLangVal');\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nimport { LocaleConfig } from './lang.models';\r\n\r\n/**\r\n * Injection token for providing locale configuration to the language module.\r\n *\r\n * Used to inject `LocaleConfig` into services and components that require\r\n * internationalization settings (e.g., locale, date formats, translations).\r\n *\r\n * Example:\r\n * ```typescript\r\n * providers: [\r\n * { provide: LANG_CONFIG, useValue: { locale: 'ru', ... } }\r\n * ]\r\n * ```\r\n *\r\n * The token can be injected using Angular's DI system:\r\n * ```typescript\r\n * private config = inject(LANG_CONFIG);\r\n * ```\r\n */\r\nexport const LANG_CONFIG = new InjectionToken<LocaleConfig>('RE_LANG_CONFIG');\r\n","import { isPlatformBrowser } from '@angular/common';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { computed, inject, Injectable, PLATFORM_ID, Signal, signal } from '@angular/core';\r\n\r\nimport { Langs } from '@reforgium/internal';\r\n\r\nimport { innerLangVal, LangDto, LangModel, LangParams } from './lang.models';\r\nimport { LANG_CONFIG } from './locale.provider';\r\n\r\n/**\r\n * LangService provides functionality for managing and tracking language settings\r\n * and translations in the application. It is designed to handle localization needs,\r\n * loading language resources, caching translations, and dynamically applying translations\r\n * throughout the application.\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class LangService {\r\n private readonly config = inject(LANG_CONFIG);\r\n private readonly http = inject(HttpClient);\r\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\r\n\r\n readonly #lang = signal<Langs>(this.getStoredLang());\r\n readonly #cache = signal<LangModel>({});\r\n\r\n readonly #loadedNamespaces = new Set<string>();\r\n readonly #pendingLoads = new Map<string, Promise<void>>();\r\n\r\n /**\r\n * Computed property determining the current language setting.\r\n *\r\n * - If private method `#lang` returns 'ru', this property will return 'ru'.\r\n * - If `#lang` returns another value, the `config.kgValue` property is checked:\r\n * - If `config.kgValue` is defined, the property will return its value.\r\n * - If `config.kgValue` is not defined, the property will return the default value 'kg'.\r\n */\r\n readonly currentLang = computed(() => {\r\n const lang = this.#lang();\r\n\r\n return lang === 'ru' ? 'ru' : (this.config?.kgValue ?? 'kg');\r\n });\r\n /**\r\n * Extracts readonly value from private property `#lang` and assigns it to `innerLangVal`.\r\n * Expected that property `#lang` has `asReadonly` method that returns immutable representation.\r\n */\r\n readonly [innerLangVal] = this.#lang.asReadonly();\r\n\r\n /**\r\n * Sets the current language for the application.\r\n *\r\n * @param {Langs | 'ky'} lang - The language to set.\r\n * Accepts predefined type `Langs` or 'ky' to set Kyrgyz language.\r\n * @return {void} Returns no value.\r\n */\r\n setLang(lang: Langs | 'ky'): void {\r\n const langVal = lang === 'ky' ? 'kg' : lang;\r\n\r\n if (langVal !== this.#lang()) {\r\n this.#lang.set(langVal);\r\n\r\n if (this.isBrowser) {\r\n localStorage.setItem('lang', langVal);\r\n }\r\n\r\n const namespaces = Array.from(this.#loadedNamespaces.values()).map((key) => key.split('.')[1]);\r\n\r\n this.#loadedNamespaces.clear();\r\n\r\n namespaces.forEach((ns) => void this.loadNamespace(ns));\r\n }\r\n }\r\n\r\n /**\r\n * Gets value based on a provided query and optionally applies specified parameters.\r\n *\r\n * @param {string} query - Query string used to retrieve desired value.\r\n * @param {LangParams} [params] - Optional parameters to apply to retrieved value.\r\n * @return {string} Retrieved value after optional parameter application,\r\n * or default value if a query is not found.\r\n */\r\n get(query: string, params?: LangParams): string {\r\n const value = this.getChainedValue(query);\r\n\r\n if (params) {\r\n return this.applyParams((value ?? query) as string, params);\r\n }\r\n\r\n return (value as string | undefined) ?? this.config.defaultValue ?? query;\r\n }\r\n\r\n /**\r\n * Observes changes to a specified translation key and dynamically computes its value.\r\n *\r\n * @param {string} query - Translation key to observe, typically in format \"namespace.key\".\r\n * @param {LangParams} [params] - Optional parameters for interpolation or\r\n * dynamic content replacement in translation value.\r\n * @return {Signal<string>} Computed value that dynamically updates\r\n * with translation matching a provided query and parameters.\r\n */\r\n observe(query: string, params?: LangParams): Signal<string> {\r\n const [ns] = query.split('.');\r\n\r\n if (!this.#loadedNamespaces.has(this.makeNamespaceKey(ns))) {\r\n void this.loadNamespace(ns);\r\n }\r\n\r\n return computed(() => this.get(query, params));\r\n }\r\n\r\n /**\r\n * Loads specified namespace, ensuring its caching and availability for use.\r\n *\r\n * @param {string} ns - Namespace name to load.\r\n * @return {Promise<void>} Promise that resolves on a successful namespace load,\r\n * or rejects when error occurs during a process.\r\n */\r\n async loadNamespace(ns: string): Promise<void> {\r\n const key = this.makeNamespaceKey(ns);\r\n\r\n if (this.#loadedNamespaces.has(key)) {\r\n return;\r\n }\r\n\r\n if (this.#pendingLoads.has(key)) {\r\n return this.#pendingLoads.get(key)!;\r\n }\r\n\r\n const promise = new Promise<void>((resolve, reject) => {\r\n this.http.get<LangDto[] | LangModel>(this.makeUrl(ns)).subscribe({\r\n next: (res) => {\r\n const resolved = Array.isArray(res) ? this.parseModelToRecord(res) : this.parseAssetToRecord(ns, res);\r\n\r\n this.#cache.update((existing) => ({ ...existing, ...resolved }));\r\n this.#loadedNamespaces.add(key);\r\n resolve();\r\n },\r\n error: (err) => {\r\n this.#pendingLoads.delete(key);\r\n reject(err);\r\n },\r\n complete: () => this.#pendingLoads.delete(key),\r\n });\r\n });\r\n\r\n this.#pendingLoads.set(key, promise);\r\n\r\n return promise;\r\n }\r\n\r\n isNamespaceLoaded(ns: string): boolean {\r\n return this.#loadedNamespaces.has(this.makeNamespaceKey(ns));\r\n }\r\n\r\n private parseModelToRecord(model: LangDto[]): LangModel {\r\n const records: LangModel = {};\r\n\r\n for (const item of model) {\r\n records[item.code] = item.localization;\r\n }\r\n\r\n return records;\r\n }\r\n\r\n private parseAssetToRecord(page: string, data: LangModel): LangModel {\r\n const records: LangModel = {};\r\n\r\n for (const [k, v] of Object.entries(data)) {\r\n records[`${page}.${k}`] = v;\r\n }\r\n\r\n return records;\r\n }\r\n\r\n private applyParams(text: string, params: LangParams): string {\r\n return text.replace(/\\{\\{(.*?)}}/g, (_, k) => params[k.trim()] ?? '');\r\n }\r\n\r\n private getChainedValue(query = '', source = this.#cache()) {\r\n if (!query || typeof source !== 'object') {\r\n return undefined;\r\n }\r\n\r\n // Prefer the exact (flat) key match first, then attempt deep lookup.\r\n if (query in source) {\r\n return source[query] as string | LangModel | undefined;\r\n }\r\n\r\n const parts = query.split('.');\r\n let acc: LangModel | string | undefined = source;\r\n\r\n for (const key of parts) {\r\n if (typeof acc !== 'object') {\r\n return undefined;\r\n }\r\n\r\n acc = acc[key];\r\n }\r\n\r\n return acc as string | undefined;\r\n }\r\n\r\n private getStoredLang(): Langs {\r\n if (!this.isBrowser) {\r\n return this.config.defaultLang || 'ru';\r\n }\r\n\r\n return (localStorage.getItem('lang') as Langs) || this.config.defaultLang || 'ru';\r\n }\r\n\r\n private makeUrl(ns: string): string {\r\n const suffix = this.config.isFromAssets ? `.${this.#lang()}.json` : `?language=${this.#lang()}`;\r\n\r\n return `${this.config.url}/${ns}${suffix}`;\r\n }\r\n\r\n private makeNamespaceKey(ns: string) {\r\n return `${this.#lang()}.${ns}`;\r\n }\r\n}\r\n","import {\r\n afterNextRender,\r\n Directive,\r\n effect,\r\n ElementRef,\r\n inject,\r\n Injector,\r\n Input,\r\n input,\r\n Renderer2,\r\n runInInjectionContext,\r\n signal,\r\n} from '@angular/core';\r\n\r\nimport { LangService } from './lang.service';\r\n\r\n/**\r\n * Localization modes for the `reLang` directive.\r\n *\r\n * - `'only-content'` - only text content of the element\r\n * - `'only-placeholder'` - only the `placeholder` attribute\r\n * - `'only-label'` - only the `label` attribute\r\n * - `'only-title'` - only the `title` attribute\r\n * - `'all'` - all supported attributes and content\r\n */\r\ntype Types = 'only-content' | 'only-placeholder' | 'only-label' | 'only-title' | 'all';\r\n\r\ntype LangDirectiveConfig = {\r\n mode?: Types;\r\n textKey?: string;\r\n attrs?: Record<string, string>;\r\n};\r\n\r\n/**\r\n * **LangDirective** - directive for automatic localization of attributes and text content.\r\n *\r\n * Replaces localization keys (format `namespace.key`) with translated strings via `LangService`.\r\n * Supports `title`, `label`, `placeholder` attributes and text nodes.\r\n *\r\n * ### Usage\r\n * ```html\r\n * <!-- Localize all attributes and content -->\r\n * <button reLang title=\"common.save\">common.save</button>\r\n *\r\n * <!-- Localize only title -->\r\n * <button [reLang]=\"'only-title'\" title=\"common.cancel\">Cancel</button>\r\n *\r\n * <!-- Localize custom attribute -->\r\n * <input reLang [langForAttr]=\"'aria-label'\" aria-label=\"forms.username\" />\r\n *\r\n * <!-- Explicit key for text content -->\r\n * <div [reLang]=\"'common.hello'\"></div>\r\n *\r\n * <!-- Explicit attribute map -->\r\n * <input [reLangAttrs]=\"{ 'aria-label': 'forms.username' }\" />\r\n * ```\r\n *\r\n * @publicApi\r\n */\r\n@Directive({ selector: '[reLang]', standalone: true })\r\nexport class LangDirective {\r\n /**\r\n * Localization mode: defines which parts of the element will be translated.\r\n * @default 'all'\r\n */\r\n lang = input<Types | '' | string | LangDirectiveConfig>('all', { alias: 'reLang' });\r\n\r\n /**\r\n * Explicit key for text content translation.\r\n */\r\n private readonly reLangKeySig = signal<string | undefined>(undefined);\r\n\r\n /**\r\n * Explicit attribute-to-key map for translation.\r\n */\r\n private readonly reLangAttrsSig = signal<Record<string, string> | undefined>(undefined);\r\n\r\n /**\r\n * Name of an additional attribute to localize (besides standard `title`, `label`, `placeholder`).\r\n */\r\n langForAttr = input<string>();\r\n\r\n private el = inject(ElementRef);\r\n private renderer = inject(Renderer2);\r\n private service = inject(LangService);\r\n private injector = inject(Injector);\r\n\r\n constructor() {\r\n afterNextRender(() => {\r\n runInInjectionContext(this.injector, () =>\r\n effect(() => {\r\n // Re-apply localization when language changes.\r\n this.service.currentLang();\r\n this.setAttributes();\r\n }),\r\n );\r\n });\r\n }\r\n\r\n @Input()\r\n set reLangKey(value: string | undefined) {\r\n this.reLangKeySig.set(value);\r\n }\r\n\r\n @Input()\r\n set reLangAttrs(value: Record<string, string> | undefined) {\r\n this.reLangAttrsSig.set(value);\r\n }\r\n\r\n /**\r\n * Applies localization to the element according to `lang` and `langForAttr` settings.\r\n * Called automatically after the component renders.\r\n */\r\n setAttributes() {\r\n const native = this.el.nativeElement as HTMLElement;\r\n const cfg = this.resolveConfig();\r\n const langFor = cfg.mode || 'all';\r\n const langForAttr = this.langForAttr();\r\n const attrs = cfg.attrs;\r\n\r\n if (['all', 'only-title'].includes(langFor) && native.hasAttribute('title')) {\r\n this.replaceAttrValue('title', attrs?.['title']);\r\n }\r\n\r\n if (['all', 'only-label'].includes(langFor) && native.hasAttribute('label')) {\r\n this.replaceAttrValue('label', attrs?.['label']);\r\n }\r\n\r\n if (['all', 'only-placeholder'].includes(langFor) && native.hasAttribute('placeholder')) {\r\n this.replaceAttrValue('placeholder', attrs?.['placeholder']);\r\n }\r\n\r\n if (cfg.textKey) {\r\n this.replaceTextNodeValue(cfg.textKey);\r\n } else if (['all', 'only-content'].includes(langFor)) {\r\n this.replaceTextNodeValue();\r\n }\r\n\r\n if (langForAttr) {\r\n this.replaceAttrValue(langForAttr!);\r\n }\r\n\r\n if (attrs) {\r\n for (const [attr, key] of Object.entries(attrs)) {\r\n if (attr === 'title' || attr === 'label' || attr === 'placeholder') {\r\n continue;\r\n }\r\n\r\n this.replaceAttrValue(attr, key);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Translates a localization key into its corresponding localized string.\r\n * If the key doesn't look like a valid localization key (format `namespace.key`), outputs a warning.\r\n *\r\n * @param key localization key in format `namespace.path.to.key`\r\n * @returns a Promise resolving to the localized string, or `undefined` if the key is invalid\r\n */\r\n public translate(key: string) {\r\n if (!this.looksLikeKey(key)) {\r\n this.warn('Lang: Translatable text is not a valid localization key', key);\r\n\r\n return;\r\n }\r\n\r\n return this.getLangValue(key);\r\n }\r\n\r\n /**\r\n * Replaces attribute value with a localized string.\r\n * If the value doesn't look like a localization key, outputs a warning.\r\n *\r\n * @param attributeName name of the attribute to replace\r\n * @param keyOverride\r\n */\r\n private replaceAttrValue(attributeName: string, keyOverride?: string) {\r\n const native = this.el.nativeElement as HTMLElement;\r\n const keyAttr = `data-re-lang-${attributeName}`;\r\n const storedKey = native.getAttribute(keyAttr);\r\n const title = (keyOverride ?? storedKey ?? native.getAttribute(attributeName)?.trim() ?? '').trim();\r\n\r\n if (!this.looksLikeKey(title)) {\r\n if (storedKey) {\r\n // Stored key is trusted even if the current attribute is translated.\r\n } else {\r\n this.warn(`Lang: Attribute ${attributeName} is not a lang key`, title);\r\n\r\n return;\r\n }\r\n }\r\n\r\n if (!storedKey || keyOverride) {\r\n native.setAttribute(keyAttr, title);\r\n }\r\n\r\n this.getLangValue(title).then((langed) => this.renderer.setAttribute(native, attributeName, langed));\r\n }\r\n\r\n /**\r\n * Replaces an element's text node with a localized string.\r\n * Works only if the element contains no child elements (text only).\r\n * If the content doesn't look like a localization key, outputs a warning.\r\n */\r\n private replaceTextNodeValue(keyOverride?: string) {\r\n const native = this.el.nativeElement as HTMLElement;\r\n\r\n if (native.children.length > 0 && !keyOverride) {\r\n this.warn('Lang: Element has children, text node replacement is skipped');\r\n\r\n return;\r\n }\r\n\r\n const keyAttr = 'data-re-lang-text';\r\n const storedKey = native.getAttribute(keyAttr);\r\n let textNode = Array.from(native.childNodes).find((n) => n.nodeType === Node.TEXT_NODE) as Text | undefined;\r\n const key = (keyOverride ?? storedKey ?? textNode?.nodeValue?.trim() ?? '').trim();\r\n\r\n if (!this.looksLikeKey(key)) {\r\n if (storedKey) {\r\n // Stored key is trusted even if current text is translated.\r\n } else {\r\n this.warn('Lang: Text node is not a lang key', key);\r\n\r\n return;\r\n }\r\n }\r\n\r\n if (!storedKey || keyOverride) {\r\n native.setAttribute(keyAttr, key);\r\n }\r\n\r\n if (!textNode) {\r\n textNode = document.createTextNode('');\r\n native.appendChild(textNode);\r\n }\r\n\r\n this.getLangValue(key).then((langed) => this.renderer.setValue(textNode, langed));\r\n }\r\n\r\n /**\r\n * Checks if a string looks like a localization key (contains `.` and no spaces).\r\n *\r\n * @param value string to check\r\n * @returns `true` if the string looks like a localization key\r\n */\r\n private looksLikeKey(value: string) {\r\n return !!value && value.includes('.') && !value.includes(' ');\r\n }\r\n\r\n private warn(message: string, value?: unknown) {\r\n if (typeof ngDevMode !== 'undefined') {\r\n // eslint-disable-next-line no-console\r\n console.warn(message, value);\r\n }\r\n }\r\n\r\n private resolveConfig(): LangDirectiveConfig {\r\n const raw = this.lang();\r\n const explicitText = this.reLangKeySig();\r\n const explicitAttrs = this.reLangAttrsSig();\r\n let mode: Types | undefined;\r\n let textKey: string | undefined;\r\n let attrs: Record<string, string> | undefined;\r\n\r\n if (typeof raw === 'string') {\r\n if (this.isMode(raw)) {\r\n mode = raw;\r\n } else if (this.looksLikeKey(raw)) {\r\n textKey = raw;\r\n }\r\n } else if (raw && typeof raw === 'object') {\r\n mode = raw.mode;\r\n textKey = raw.textKey;\r\n attrs = raw.attrs;\r\n }\r\n\r\n return {\r\n mode,\r\n textKey: explicitText ?? textKey,\r\n attrs: explicitAttrs ?? attrs,\r\n };\r\n }\r\n\r\n private isMode(value: string): value is Types {\r\n return (\r\n value === 'only-content' ||\r\n value === 'only-placeholder' ||\r\n value === 'only-label' ||\r\n value === 'only-title' ||\r\n value === 'all'\r\n );\r\n }\r\n\r\n /**\r\n * Asynchronously loads namespace and retrieves localized value by key.\r\n *\r\n * @param key localization key in format `namespace.path.to.key`\r\n * @returns localized string\r\n */\r\n private async getLangValue(key: string) {\r\n const [ns] = key.split('.', 1);\r\n\r\n await this.service.loadNamespace(ns);\r\n\r\n return this.service.get(key);\r\n }\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport type LangPipeConfig = {\r\n ttlMs?: number;\r\n maxCacheSize?: number;\r\n placeholder?: string | ((key: string) => string);\r\n};\r\n\r\nexport const LANG_PIPE_CONFIG = new InjectionToken<LangPipeConfig>('RE_LANG_PIPE_CONFIG');\r\n","import { effect, Inject, inject, Injector, Optional, Pipe, PipeTransform, runInInjectionContext } from '@angular/core';\r\n\r\nimport { LangParams } from './lang.models';\r\nimport { LANG_PIPE_CONFIG, LangPipeConfig } from './lang.pipe.config';\r\nimport { LangService } from './lang.service';\r\n\r\n/**\r\n * Custom Angular pipe that transforms a language key and additional parameters into a localized string.\r\n *\r\n * The pipe is declared as standalone and impure — meaning it can be used without importing a module\r\n * and will be recalculated when the state changes (for example, when the language is switched).\r\n *\r\n * In its operation, the pipe observes and caches language keys to improve performance,\r\n * using LangService to retrieve translated strings based on the current application language.\r\n *\r\n * The transformation involves accepting a key string and optional parameters,\r\n * forming a cache key, and returning the localized value corresponding to that request.\r\n *\r\n * @implements {PipeTransform}\r\n */\r\n@Pipe({ name: 'lang', standalone: true, pure: false })\r\nexport class LangPipe implements PipeTransform {\r\n private readonly cache = new Map<string, { value: () => string; ts: number }>();\r\n private readonly config: LangPipeConfig;\r\n private readonly ttlMs: number;\r\n private readonly maxCacheSize: number;\r\n\r\n constructor(\r\n private readonly lang: LangService = inject(LangService),\r\n @Optional() @Inject(LANG_PIPE_CONFIG) config?: LangPipeConfig | null,\r\n @Optional() @Inject(Injector) injector?: Injector,\r\n ) {\r\n const resolvedInjector = injector ?? inject(Injector);\r\n const resolved = config ?? inject(LANG_PIPE_CONFIG, { optional: true }) ?? {};\r\n\r\n this.config = resolved;\r\n\r\n this.ttlMs = resolved.ttlMs ?? 5 * 60 * 1000;\r\n this.maxCacheSize = resolved.maxCacheSize ?? 500;\r\n\r\n runInInjectionContext(resolvedInjector, () => {\r\n effect(() => {\r\n // Clear cache on language change to avoid stale signals and unbounded growth.\r\n this.lang.currentLang();\r\n this.cache.clear();\r\n });\r\n });\r\n }\r\n\r\n transform(query: string, params?: LangParams): string {\r\n const key = this.makeKey(query, params);\r\n const now = Date.now();\r\n const existing = this.cache.get(key);\r\n\r\n if (existing) {\r\n if (now - existing.ts < this.ttlMs) {\r\n return existing.value();\r\n }\r\n\r\n this.cache.delete(key);\r\n }\r\n\r\n if (!this.cache.has(key)) {\r\n this.cache.set(key, { value: this.lang.observe(query, params), ts: now });\r\n this.evictIfNeeded();\r\n }\r\n\r\n const ns = query.split('.', 1)[0];\r\n\r\n if (ns && !this.lang.isNamespaceLoaded(ns)) {\r\n const placeholder = this.config.placeholder;\r\n\r\n if (typeof placeholder === 'function') {\r\n return placeholder(query);\r\n }\r\n\r\n if (typeof placeholder === 'string') {\r\n return placeholder;\r\n }\r\n }\r\n\r\n return this.cache.get(key)!.value();\r\n }\r\n\r\n private makeKey(query: string, params?: LangParams): string {\r\n if (!params) {\r\n return query;\r\n }\r\n\r\n const entries = Object.keys(params)\r\n .sort()\r\n .map((k) => `${k}:${params[k]}`);\r\n\r\n return `${query}::${entries.join('|')}`;\r\n }\r\n\r\n private evictIfNeeded() {\r\n while (this.cache.size > this.maxCacheSize) {\r\n const firstKey = this.cache.keys().next().value as string | undefined;\r\n\r\n if (!firstKey) {\r\n return;\r\n }\r\n\r\n this.cache.delete(firstKey);\r\n }\r\n }\r\n}\r\n","import { Themes } from '@reforgium/internal';\r\n\r\n/**\r\n * Type-safe mapping of available theme names.\r\n *\r\n * Provides a constant record that maps theme identifiers to their corresponding string values.\r\n * This ensures compile-time safety when referencing theme names throughout the application.\r\n *\r\n * Available themes:\r\n * - `light` - Light theme variant\r\n * - `dark` - Dark theme variant\r\n *\r\n * @example\r\n * ```typescript\r\n * const currentTheme = themes.light; // 'light'\r\n * const isDarkTheme = theme === themes.dark;\r\n * ```\r\n */\r\nexport const themes: Record<Themes, Themes> = {\r\n light: 'light',\r\n dark: 'dark',\r\n} as const;\r\n\r\n/**\r\n * CSS class prefix used for dark theme styling.\r\n *\r\n * This constant defines the prefix applied to HTML elements when the dark theme is active.\r\n * It is typically added to the root element or specific components to enable dark theme styles.\r\n *\r\n * @example\r\n * ```typescript\r\n * document.body.classList.add(darkThemePrefix); // Applies 're-dark' class\r\n * ```\r\n */\r\nexport const darkThemePrefix = 're-dark';\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nimport { ThemeConfig } from './theme.models';\r\n// noinspection ES6PreferShortImport\r\nimport { themes } from './themes.constant';\r\n\r\n/**\r\n * Default theme configuration object.\r\n *\r\n * Defines the initial theme settings for the application.\r\n * By default, sets the light theme as the active theme.\r\n *\r\n * This configuration can be overridden when providing `THEME_CONFIG` token\r\n * at the module or application level.\r\n * ```\r\n */\r\nexport const defaultThemeConfig = {\r\n defaultTheme: themes.light,\r\n};\r\n\r\n/**\r\n * Injection token for theme configuration.\r\n *\r\n * Used to provide custom theme settings via Angular's dependency injection system.\r\n * The token expects a value of type `ThemeConfig`.\r\n *\r\n * Example usage:\r\n * ```typescript\r\n * // In providers array:\r\n * { provide: THEME_CONFIG, useValue: { defaultTheme: themes.dark } }\r\n *\r\n * // In service or component:\r\n * private themeConfig = inject(THEME_CONFIG);\r\n * ```\r\n *\r\n * If not provided, `defaultThemeConfig` will be used as fallback.\r\n */\r\nexport const THEME_CONFIG = new InjectionToken<ThemeConfig>('RE_THEME_CONFIG');\r\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\r\nimport { computed, effect, inject, Injectable, PLATFORM_ID, signal } from '@angular/core';\r\n\r\nimport { Themes } from '@reforgium/internal';\r\n\r\n// noinspection ES6PreferShortImport\r\nimport { THEME_CONFIG } from './theme.provider';\r\n// noinspection ES6PreferShortImport\r\nimport { darkThemePrefix, themes } from './themes.constant';\r\n\r\n/**\r\n * Service for managing application theme.\r\n *\r\n * Allows getting the current theme and switching between light and dark.\r\n * Automatically saves the selected theme to `localStorage` and applies CSS class to `<html>` element.\r\n *\r\n * Example:\r\n * ```ts\r\n * const theme = inject(ThemeService);\r\n * theme.switch('dark');\r\n * console.log(theme.theme()); // 'dark'\r\n * ```\r\n */\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ThemeService {\r\n private readonly config = inject(THEME_CONFIG);\r\n private readonly themeDefault = this.config?.defaultTheme || themes.light;\r\n private readonly darkPrefix = this.config?.darkThemePrefix || darkThemePrefix;\r\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\r\n private readonly document = inject(DOCUMENT);\r\n\r\n #theme = signal<Themes>(this.themeDefault);\r\n\r\n /**\r\n * Current active theme (`light` or `dark`).\r\n *\r\n * Value is reactive — can be used in template or `computed`.\r\n * ```html\r\n * <div [class.dark]=\"themeService.theme() === 'dark'\"></div>\r\n * <div [class]=\"themeService.theme()\"></div>\r\n * ```\r\n */\r\n theme = computed(() => this.#theme());\r\n\r\n /**\r\n * Convenient flag returning `true` if light theme is active.\r\n * Suitable for conditional style application or resource selection.\r\n */\r\n isLight = computed(() => this.#theme() === themes.light);\r\n\r\n constructor() {\r\n effect(() => {\r\n if (!this.isBrowser) {\r\n this.#theme.set(this.themeDefault);\r\n\r\n return;\r\n }\r\n\r\n const theme = (localStorage.getItem('theme') as Themes) || this.themeDefault;\r\n\r\n this.switch(theme);\r\n });\r\n effect(() => {\r\n if (this.isBrowser) {\r\n localStorage.setItem('theme', this.#theme());\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Switches theme.\r\n *\r\n * If a parameter is not provided — performs toggle between `light` and `dark`.\r\n * Also, automatically updates `<html>` class and saves selection to `localStorage`.\r\n *\r\n * @param theme — explicit theme value (`'light'` or `'dark'`).\r\n */\r\n switch(theme?: Themes) {\r\n const newTheme = theme ?? (this.#theme() === themes.light ? themes.dark : themes.light);\r\n\r\n if (this.isBrowser) {\r\n const html = this.document.querySelector('html')!;\r\n\r\n newTheme === themes.dark && html.classList.add(this.darkPrefix);\r\n newTheme === themes.light && html.classList.remove(this.darkPrefix);\r\n }\r\n\r\n this.#theme.set(newTheme);\r\n }\r\n}\r\n","import { EnvironmentProviders, LOCALE_ID, makeEnvironmentProviders } from '@angular/core';\r\n\r\nimport {\r\n CHANGE_LANG,\r\n CHANGE_THEME,\r\n CURRENT_DEVICE,\r\n SELECTED_LANG,\r\n SELECTED_THEME,\r\n TRANSLATION,\r\n} from '@reforgium/internal';\r\n\r\n// noinspection ES6PreferShortImport\r\nimport { AdaptiveService, defaultBreakpoints, DEVICE_BREAKPOINTS, DeviceBreakpoints } from '../adaptive';\r\nimport { innerLangVal, LANG_CONFIG, LANG_PIPE_CONFIG, LangPipeConfig, LangService, LocaleConfig } from '../lang';\r\nimport { defaultThemeConfig, THEME_CONFIG, ThemeConfig, ThemeService } from '../theme';\r\n\r\n/**\r\n * Configuration object for initializing the Presentia application providers.\r\n *\r\n * @property {LocaleConfig} locale - Locale configuration (required). Defines language and localization settings.\r\n * @property {ThemeConfig} [theme] - Theme configuration (optional).\r\n * Defines the application theme. Defaults to `defaultThemeConfig` if not provided.\r\n * @property {DeviceBreakpoints} [breakpoints] - Device breakpoints configuration (optional).\r\n * Defines responsive breakpoints. Defaults to `defaultBreakpoints` if not provided.\r\n */\r\nexport interface AppConfig {\r\n locale: LocaleConfig;\r\n theme?: ThemeConfig;\r\n breakpoints?: DeviceBreakpoints;\r\n langPipe?: LangPipeConfig;\r\n}\r\n\r\n/**\r\n * Provides environment-level providers for Presentia application initialization.\r\n *\r\n * This function configures essential application services:\r\n * - Language and localization settings\r\n * - Theme configuration\r\n * - Adaptive/responsive breakpoints\r\n * - Current device detection\r\n *\r\n * @param {AppConfig} config - Configuration object containing locale, theme, and breakpoints settings.\r\n * @returns {EnvironmentProviders} A collection of Angular providers for the application environment.\r\n *\r\n * @example\r\n * ```typescript\r\n * export const appConfig: ApplicationConfig = {\r\n * providers: [\r\n * provideReInit({\r\n * locale: { defaultLang: 'en', supportedLangs: ['en', 'ru'] },\r\n * theme: { defaultTheme: 'dark' },\r\n * breakpoints: { mobile: 768, tablet: 1024 }\r\n * })\r\n * ]\r\n * };\r\n * ```\r\n */\r\nexport function provideReInit(config: AppConfig): EnvironmentProviders {\r\n return makeEnvironmentProviders([\r\n { provide: TRANSLATION, deps: [LangService], useFactory: (ls: LangService) => ls },\r\n { provide: SELECTED_LANG, deps: [LangService], useFactory: (ls: LangService) => ls[innerLangVal] },\r\n { provide: CHANGE_LANG, deps: [LangService], useFactory: (ls: LangService) => ls.setLang },\r\n { provide: SELECTED_THEME, deps: [ThemeService], useFactory: (ls: ThemeService) => ls.theme },\r\n { provide: CHANGE_THEME, deps: [ThemeService], useFactory: (ls: ThemeService) => ls.switch },\r\n { provide: CURRENT_DEVICE, deps: [AdaptiveService], useFactory: (ls: AdaptiveService) => ls.device },\r\n { provide: DEVICE_BREAKPOINTS, useValue: config.breakpoints || defaultBreakpoints },\r\n { provide: THEME_CONFIG, useValue: config.theme || defaultThemeConfig },\r\n { provide: LANG_CONFIG, useValue: config.locale || { defaultValue: '████████' } },\r\n { provide: LANG_PIPE_CONFIG, useValue: config.langPipe || {} },\r\n { provide: LOCALE_ID, useValue: config.locale.defaultLang ?? 'ru' },\r\n ]);\r\n}\r\n","import { DOCUMENT, isPlatformBrowser } from '@angular/common';\r\nimport { inject, Injectable, PLATFORM_ID } from '@angular/core';\r\nimport { Meta, Title } from '@angular/platform-browser';\r\n\r\nimport { OgType, TwitterCardType } from './seo.models';\r\n\r\n/**\r\n * Service for managing page SEO metadata.\r\n *\r\n * Allows centrally setting title, description, keywords,\r\n * Open Graph and Twitter Card tags, canonical link, and JSON-LD schema.\r\n *\r\n * Example:\r\n * ```ts\r\n * const seo = inject(SeoService);\r\n * seo.setTitle('Home Page');\r\n * seo.setDescription('Site Description');\r\n * seo.setOg({ title: 'Home', type: 'website' });\r\n * ```\r\n */\r\n@Injectable()\r\nexport class SeoService {\r\n private title = inject(Title);\r\n private meta = inject(Meta);\r\n private isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\r\n private document = inject(DOCUMENT);\r\n\r\n /**\r\n * Sets page title (`<title>`).\r\n * @param value title text\r\n */\r\n setTitle(value: string) {\r\n this.title.setTitle(value);\r\n }\r\n\r\n /**\r\n * Sets page description (`<meta name=\"description\">`).\r\n * @param desc brief content description\r\n */\r\n setDescription(desc: string) {\r\n this.upsert({ name: 'description', content: desc });\r\n }\r\n\r\n /**\r\n * Sets page keywords (`<meta name=\"keywords\">`).\r\n * @param keywords array of keywords\r\n */\r\n setKeywords(keywords: string[]) {\r\n this.upsert({ name: 'keywords', content: keywords.join(', ') });\r\n }\r\n\r\n /**\r\n * Sets directives for search engines (`<meta name=\"robots\">`).\r\n * @param value value, e.g. `\"index,follow\"`\r\n */\r\n setRobots(value: string) {\r\n this.upsert({ name: 'robots', content: value }); // e.g. \"index,follow\"\r\n }\r\n\r\n /**\r\n * Sets canonical link (`<link rel=\"canonical\">`).\r\n * @param url absolute URL of canonical page\r\n */\r\n setCanonical(url: string) {\r\n this.upsertLink('canonical', url);\r\n }\r\n\r\n /**\r\n * Sets Open Graph meta tags.\r\n * @param opts object with Open Graph fields (`title`, `description`, `image`, `url`, `type`, etc.)\r\n */\r\n setOg(opts: OgType) {\r\n for (const [k, v] of Object.entries(opts)) {\r\n v && this.upsert({ property: `og:${k}`, content: v });\r\n }\r\n }\r\n\r\n /**\r\n * Sets Twitter Card meta tags.\r\n * @param opts object with Twitter Card fields (`card`, `title`, `description`, `image`, etc.)\r\n */\r\n setTwitter(opts: TwitterCardType) {\r\n for (const [k, v] of Object.entries(opts)) {\r\n v && this.upsert({ name: `twitter:${k}`, content: v });\r\n }\r\n }\r\n\r\n /**\r\n * Embeds JSON-LD schema (structured data) in `<head>`.\r\n * @param schema schema object (will be serialized to JSON)\r\n */\r\n setJsonLd(schema: object) {\r\n if (!this.isBrowser) {\r\n return;\r\n }\r\n\r\n const id = 'app-jsonld';\r\n let el = this.document.getElementById(id) as HTMLScriptElement | null;\r\n\r\n if (!el) {\r\n el = this.document.createElement('script');\r\n el.type = 'application/ld+json';\r\n el.id = id;\r\n this.document.head.appendChild(el);\r\n }\r\n\r\n el.text = JSON.stringify(schema);\r\n }\r\n\r\n private upsert(tag: { name?: string; property?: string; content: string }) {\r\n if (tag.name) {\r\n this.meta.updateTag(tag, `name='${tag.name}'`);\r\n } else if (tag.property) {\r\n this.meta.updateTag(tag, `property='${tag.property}'`);\r\n }\r\n }\r\n\r\n private upsertLink(rel: string, href: string) {\r\n if (!this.isBrowser) {\r\n return;\r\n }\r\n\r\n const head = this.document.head;\r\n let link = head.querySelector<HTMLLinkElement>(`link[rel=\"${rel}\"]`);\r\n\r\n if (!link) {\r\n link = this.document.createElement('link');\r\n link.rel = rel;\r\n head.appendChild(link);\r\n }\r\n\r\n link.href = href;\r\n }\r\n}\r\n","import { DestroyRef, inject, Injectable } from '@angular/core';\r\nimport { ActivatedRoute, NavigationEnd, Router } from '@angular/router';\r\nimport { filter } from 'rxjs/operators';\r\n\r\nimport { SeoService } from './seo.service';\r\n\r\n/**\r\n * Service that listens to Angular route changes and automatically updates SEO metadata\r\n * (title, description, Open Graph, Twitter cards, JSON-LD, canonical URL, robots meta tag)\r\n * based on route data configuration.\r\n *\r\n * @example\r\n * ```typescript\r\n * const routes: Routes = [{\r\n * path: 'about',\r\n * component: AboutComponent,\r\n * data: {\r\n * title: 'About Us',\r\n * description: 'Learn more about our company',\r\n * robots: 'index,follow'\r\n * }\r\n * }];\r\n * ```\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class SeoRouteListener {\r\n private router = inject(Router);\r\n private seo = inject(SeoService);\r\n private ar = inject(ActivatedRoute);\r\n private destroyRef = inject(DestroyRef);\r\n\r\n /**\r\n * Initializes the route listener to monitor navigation events and update SEO metadata.\r\n * Subscribes to router NavigationEnd events and automatically unsubscribes on component destruction.\r\n *\r\n * @param baseUrl - The base URL of the application used for constructing canonical URLs.\r\n * Trailing slashes will be removed automatically.\r\n */\r\n init(baseUrl: string) {\r\n const sub = this.router.events.pipe(filter((e) => e instanceof NavigationEnd)).subscribe(() => {\r\n const route = this.deepest(this.ar);\r\n const data = route.snapshot.data as {\r\n title?: string;\r\n description?: string;\r\n robots?: string;\r\n canonical?: string;\r\n og?: Record<string, string>;\r\n twitter?: Record<string, string>;\r\n jsonld?: object;\r\n };\r\n const url = data.canonical ?? baseUrl.replace(/\\/+$/, '') + this.router.url;\r\n\r\n data.title && this.seo.setTitle(data.title);\r\n data.description && this.seo.setDescription(data.description);\r\n data.twitter && this.seo.setTwitter(data.twitter);\r\n data.jsonld && this.seo.setJsonLd(data.jsonld);\r\n\r\n this.seo.setRobots(data.robots ?? 'index,follow');\r\n this.seo.setCanonical(url);\r\n this.seo.setOg({\r\n title: data.title,\r\n description: data.description,\r\n url: url,\r\n ...data.og,\r\n });\r\n });\r\n\r\n this.destroyRef.onDestroy(() => sub.unsubscribe());\r\n }\r\n\r\n /**\r\n * Recursively finds the deepest (most nested) activated route in the route tree.\r\n * This is used to extract route data from the currently active leaf route.\r\n *\r\n * @param r - The root activated route to start traversing from.\r\n * @returns The deepest child route in the hierarchy.\r\n */\r\n private deepest(r: ActivatedRoute): ActivatedRoute {\r\n let cur = r;\r\n\r\n while (cur.firstChild) {\r\n cur = cur.firstChild;\r\n }\r\n\r\n return cur;\r\n }\r\n}\r\n","import { computed, DestroyRef, inject, Injectable, signal } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { NavigationEnd, Router, UrlSegment } from '@angular/router';\r\nimport { filter, map, startWith } from 'rxjs';\r\n\r\nimport { deepEqual } from '@reforgium/internal';\r\n\r\n/**\r\n * Reactive snapshot of the current route (the deepest active route).\r\n * Updates on every `NavigationEnd` event.\r\n *\r\n * Provides:\r\n * - `params` / `query` — strings (as in Angular Router)\r\n * - `data` — arbitrary data (from route configuration/resolvers)\r\n * - `url` — string assembled from `UrlSegment[]`\r\n * - `fragment` — hash (#section)\r\n * - `selectData(key)` — type-safe selector for `data`\r\n * - `state` — combined computed object (convenient for single subscriber)\r\n */\r\n@Injectable({ providedIn: 'root' })\r\nexport class RouteWatcher {\r\n private readonly router = inject(Router);\r\n private readonly destroyRef = inject(DestroyRef);\r\n\r\n #params = signal<Record<string, string>>({});\r\n #query = signal<Record<string, string>>({});\r\n #data = signal<Record<string, unknown>>({});\r\n #url = signal<string>('');\r\n #fragment = signal<string | null>(null);\r\n\r\n /** Signal for tracking and retrieving URL parameters */\r\n readonly params = this.#params.asReadonly();\r\n\r\n /** Signal for tracking and retrieving query parameters */\r\n readonly query = this.#query.asReadonly();\r\n\r\n /** Signal for tracking and retrieving route data */\r\n readonly data = this.#data.asReadonly();\r\n\r\n /** Signal for tracking and retrieving URL */\r\n readonly url = this.#url.asReadonly();\r\n\r\n /** Signal for tracking and retrieving URL fragment */\r\n readonly fragment = this.#fragment.asReadonly();\r\n\r\n /** Combined computed snapshot (to avoid multiple effects) */\r\n readonly state = computed(() => ({\r\n params: this.#params(),\r\n query: this.#query(),\r\n data: this.#data(),\r\n url: this.#url(),\r\n fragment: this.#fragment(),\r\n }));\r\n\r\n constructor() {\r\n const read = () => {\r\n const snap = this.deepestSnapshot();\r\n const url = joinUrl(snap.url);\r\n\r\n !deepEqual(snap.params, this.#params()) && this.#params.set(snap.params as Record<string, string>);\r\n !deepEqual(snap.queryParams, this.#query()) && this.#query.set(snap.queryParams as Record<string, string>);\r\n !deepEqual(snap.data, this.#data()) && this.#data.set(snap.data as Record<string, unknown>);\r\n this.#url() !== url && this.#url.set(url);\r\n this.#fragment() !== snap.fragment && this.#fragment.set(snap.fragment ?? null);\r\n };\r\n\r\n read();\r\n\r\n this.router.events\r\n .pipe(\r\n startWith(new NavigationEnd(0, this.router.url, this.router.url)),\r\n filter((e) => e instanceof NavigationEnd),\r\n map(() => true),\r\n takeUntilDestroyed(this.destroyRef),\r\n )\r\n .subscribe(() => read());\r\n }\r\n\r\n /** Convenient selector for a data key with type-safe casting */\r\n selectData<T = unknown>(key: string) {\r\n return computed<T | undefined>(() => this.#data()[key] as T | undefined);\r\n }\r\n\r\n private deepestSnapshot() {\r\n // work with snapshot — we need a \"frozen\" point at NavigationEnd moment\r\n let snap = this.router.routerState.snapshot.root;\r\n\r\n while (snap.firstChild) {\r\n snap = snap.firstChild;\r\n }\r\n\r\n return snap;\r\n }\r\n}\r\n\r\n/** Joins `UrlSegment[]` into a path string */\r\nfunction joinUrl(segments: UrlSegment[]): string {\r\n return segments.length ? segments.map((s) => s.path).join('/') : '';\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LangService","filter"],"mappings":";;;;;;;;;;;;AAIA;;;;;;;;;;AAUG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,QAAQ,EAAE,oBAAoB;AAC9B,IAAA,QAAQ,EAAE,4CAA4C;AACtD,IAAA,WAAW,EAAE,6CAA6C;AAC1D,IAAA,SAAS,EAAE,qBAAqB;;AAElC;;;;;;;;;;;;;;;;;;;;;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AAC,WAAW,CAAC,QAAQ,CAAC,IAAI;AAEhD,QAAA,OAAO,IAAI,CAAC,UAAU,EAAE;AACtB,YAAA,IAAI,GAAG,IAAI,CAAC,UAAU;QACxB;AAEA,QAAA,OAAO,IAAI;IACb;uGAxEW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA;;2FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AA4ElC;AACA,SAAS,OAAO,CAAC,QAAsB,EAAA;AACrC,IAAA,OAAO,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;AACrE;;AClGA;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"reforgium-presentia.d.ts","sources":["../../../../libs/presentia/src/adaptive/adaptive.models.ts","../../../../libs/presentia/src/adaptive/adaptive.provider.ts","../../../../libs/presentia/src/adaptive/adaptive.service.ts","../../../../libs/presentia/src/adaptive/device-type.directive.ts","../../../../libs/presentia/src/lang/lang.models.ts","../../../../libs/presentia/src/lang/locale.provider.ts","../../../../libs/presentia/src/lang/lang.service.ts","../../../../libs/presentia/src/lang/lang.directive.ts","../../../../libs/presentia/src/lang/lang.pipe.config.ts","../../../../libs/presentia/src/lang/lang.pipe.ts","../../../../libs/presentia/src/theme/theme.models.ts","../../../../libs/presentia/src/theme/themes.constant.ts","../../../../libs/presentia/src/theme/theme.provider.ts","../../../../libs/presentia/src/theme/theme.service.ts","../../../../libs/presentia/src/providers/init.provider.ts","../../../../libs/presentia/src/seo/seo.models.ts","../../../../libs/presentia/src/seo/seo.service.ts","../../../../libs/presentia/src/seo/seo-route.listener.ts","../../../../libs/presentia/src/routes/route-watcher.service.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;AAEA;AACM;;ACCN;;;;;;;;;;AAUG;AACH;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACH;;ACjCA;;;;;;;;;;;;;;;;;AAiBG;AACH;;AAWE;;;;;;AAMG;AACH;AAEA;;;AAGG;AACH;AAEA;;;AAGG;AACH;AAEA;;;AAGG;AACH;AAEA;;;AAGG;AACH;;;;;;;;AAgCD;;AChGD;;;;;;;;;;;;;;;;;;;AAmBG;AACH;AAKE;AACA;AAEA;AACA;AACA;;;AAKA;;;AAmBA;AAKA;;;AAYD;;AC3ED;;;;;;;;AAQG;;;;;AAKF;AAED;;;;;;AAMG;;AAED;AACD;AAED;;;;;;;AAOG;AACG;AAEN;;;;;;;;;;;;;AAaG;;;;;;AAMD;AACD;AAED;;ACxDA;;;;;;;;;;;;;;;;;AAiBG;AACH;;ACbA;;;;;AAKG;AACH;;AAEE;AACA;AACA;AAQA;;;;;;;AAOG;;AAMH;;;AAGG;AACH;AAEA;;;;;;AAMG;AACH;AAkBA;;;;;;;AAOG;;AAWH;;;;;;;;AAQG;AACH;AAUA;;;;;;AAMG;;AAkCH;AAIA;AAUA;AAUA;AAIA;AAwBA;AAQA;AAMA;;;AAGD;;ACzMD;;;;;;;;AAQG;AACH;AAEA;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBG;AACH;AAEE;;;AAGG;AACH;AAEA;;AAEG;AACH;AAEA;;AAEG;AACH;AAEA;;AAEG;AACH;;;;;;AAmBA;AAKA;AAKA;;;AAGG;;AAyCH;;;;;;AAMG;;AAWH;;;;;;AAMG;AACH;AAuBA;;;;AAIG;AAC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