@sixbell-telco/sdk 1.6.0 → 2.0.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/CHANGELOG.md +196 -711
- package/README.md +307 -282
- package/_index.css +3 -3
- package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +1 -1
- package/components/audio-player/services/audio.service.d.ts +14 -14
- package/components/countdown/src/countdown.component.d.ts +1 -1
- package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -3
- package/components/dual-list/src/dual-list.component.d.ts +2 -1
- package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +7 -7
- package/components/file-upload/file-uploader/file-uploader.component.d.ts +7 -7
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/textarea/src/textarea.component.d.ts +10 -10
- package/components/link/src/link.component.d.ts +0 -3
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -3
- package/components/tab/directives/tab-header/tab-header.directive.d.ts +2 -2
- package/components/wizard/services/wizard.service.d.ts +5 -5
- package/directives/auto-focus/public-api.d.ts +1 -1
- package/directives/auto-focus/src/{autofocus.directive.d.ts → auto-focus.directive.d.ts} +5 -7
- package/directives/only-numbers/public-api.d.ts +6 -1
- package/directives/only-numbers/src/only-numbers.directive.d.ts +37 -0
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +7 -5
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +0 -4
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +8 -7
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -4
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +15 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +19 -8
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +2 -7
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +14 -31
- package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +42 -8
- package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs +339 -0
- package/fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +1053 -716
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +345 -257
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +67 -66
- package/utils/runtime-config/README.md +235 -0
- package/utils/{resource-loader → runtime-config}/index.d.ts +1 -1
- package/utils/runtime-config/public-api.d.ts +5 -0
- package/utils/runtime-config/src/http-client.d.ts +11 -0
- package/utils/runtime-config/src/runtime-config-loader.d.ts +23 -0
- package/utils/runtime-config/src/runtime-config-store.d.ts +11 -0
- package/utils/runtime-config/src/runtime-update-adapter.d.ts +15 -0
- package/utils/runtime-config/src/types.d.ts +66 -0
- package/utils/theme/README.md +324 -986
- package/utils/theme/public-api.d.ts +4 -4
- package/utils/theme/src/constants.d.ts +6 -12
- package/utils/theme/src/models/theme.d.ts +46 -173
- package/utils/theme/src/providers/theme.provider.d.ts +0 -10
- package/utils/theme/src/providers/theme.provider.types.d.ts +16 -15
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +16 -12
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +8 -0
- package/utils/theme/src/theme.service.d.ts +24 -27
- package/utils/theme/src/utils/utils.d.ts +2 -10
- package/utils/translation/README.md +170 -1390
- package/utils/translation/public-api.d.ts +3 -3
- package/utils/translation/src/constants.d.ts +7 -9
- package/utils/translation/src/models/translation.d.ts +9 -10
- package/utils/translation/src/providers/translation.provider.d.ts +17 -28
- package/utils/translation/src/providers/translation.provider.types.d.ts +13 -6
- package/utils/translation/src/translation.service.d.ts +37 -9
- package/directives/only-numbers/src/just-numbers.directive.d.ts +0 -9
- package/fesm2022/sixbell-telco-sdk-utils-resource-loader.mjs +0 -1222
- package/fesm2022/sixbell-telco-sdk-utils-resource-loader.mjs.map +0 -1
- package/utils/resource-loader/README.md +0 -460
- package/utils/resource-loader/public-api.d.ts +0 -1
- package/utils/resource-loader/src/cache/index.d.ts +0 -2
- package/utils/resource-loader/src/cache/layers/factory.d.ts +0 -38
- package/utils/resource-loader/src/cache/layers/index.d.ts +0 -3
- package/utils/resource-loader/src/cache/layers/indexed-db-cache.d.ts +0 -118
- package/utils/resource-loader/src/cache/layers/local-storage-cache.d.ts +0 -86
- package/utils/resource-loader/src/cache/layers/memory-cache.d.ts +0 -76
- package/utils/resource-loader/src/cache/types.d.ts +0 -107
- package/utils/resource-loader/src/config/index.d.ts +0 -1
- package/utils/resource-loader/src/config/load-config.d.ts +0 -32
- package/utils/resource-loader/src/constants.d.ts +0 -38
- package/utils/resource-loader/src/http/index.d.ts +0 -1
- package/utils/resource-loader/src/http/retryable-client.d.ts +0 -43
- package/utils/resource-loader/src/index.d.ts +0 -1
- package/utils/resource-loader/src/resource-loader.d.ts +0 -67
- package/utils/resource-loader/src/types.d.ts +0 -152
- package/utils/resource-loader/src/utils/cache-validator.d.ts +0 -72
- package/utils/resource-loader/src/utils/helpers.d.ts +0 -15
- package/utils/resource-loader/src/utils/index.d.ts +0 -2
- package/utils/theme/src/providers/constants.d.ts +0 -7
- package/utils/translation/src/providers/constants.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './src/translation.service';
|
|
2
|
-
export type { LanguageDefinition, TranslationConfig,
|
|
3
|
-
export { DEFAULT_BASE_LANGUAGE, DEFAULT_LANGUAGES_LIST, DEFAULT_LANGUAGE_CODES, LANGUAGE_ATTRIBUTE_NAME,
|
|
4
|
-
export { provideRuntimeTranslation
|
|
2
|
+
export type { LanguageDefinition, TranslationConfig, TranslationStateConfig } from './src/models/translation';
|
|
3
|
+
export { DEFAULT_BASE_LANGUAGE, DEFAULT_LANGUAGES_LIST, DEFAULT_LANGUAGE_CODES, FALLBACK_RUNTIME_TRANSLATION_CONFIG, LANGUAGE_ATTRIBUTE_NAME, TRANSLATION_SCHEMA_VERSION, TRANSLATION_STORAGE_LANGUAGE_KEY, TRANSLATION_STORAGE_NAMESPACE, } from './src/constants';
|
|
4
|
+
export { provideRuntimeTranslation } from './src/providers/translation.provider';
|
|
5
5
|
export type { RuntimeTranslationProviderOptions } from './src/providers/translation.provider.types';
|
|
6
6
|
export { TranslationDomService } from './src/translation-dom/translation-dom.service';
|
|
7
7
|
export { TranslationStorageService } from './src/translation-storage/translation-storage.service';
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* Translation Constants and Injection Tokens
|
|
3
3
|
* Centralized configuration values and DI tokens following Single Responsibility Principle
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { ResourceLoaderRequestOptions } from '@sixbell-telco/sdk/utils/resource-loader';
|
|
7
|
-
import { LanguageDefinition } from './models/translation';
|
|
5
|
+
import { LanguageDefinition, TranslationConfig } from './models/translation';
|
|
8
6
|
/**
|
|
9
7
|
* Default base language - always available unless explicitly excluded
|
|
10
8
|
* This is the foundational language that comes with the SDK
|
|
@@ -38,15 +36,15 @@ export declare const DEFAULT_TRANSLATION_PATHS: readonly ["/assets/i18n/"];
|
|
|
38
36
|
* HTML attribute name for setting the active language on document element
|
|
39
37
|
*/
|
|
40
38
|
export declare const LANGUAGE_ATTRIBUTE_NAME: "lang";
|
|
41
|
-
/**
|
|
42
|
-
* Injection token for translation configuration
|
|
43
|
-
* Used to provide static translation configuration at bootstrap
|
|
44
|
-
*/
|
|
45
|
-
export declare const TRANSLATION_CONFIG_TOKEN: InjectionToken<unknown>;
|
|
46
39
|
/**
|
|
47
40
|
* Translation-specific IndexedDB database name for resource caching
|
|
48
41
|
*/
|
|
49
42
|
export declare const TRANSLATION_INDEXED_DB_NAME: "sixbell-translation";
|
|
43
|
+
/**
|
|
44
|
+
* Schema version for runtime translation configuration payloads.
|
|
45
|
+
* Bump this when the JSON structure changes in a breaking way.
|
|
46
|
+
*/
|
|
47
|
+
export declare const TRANSLATION_SCHEMA_VERSION: "2";
|
|
50
48
|
export declare const DEFAULT_LANGUAGES: readonly LanguageDefinition[];
|
|
51
49
|
export declare const DEFAULT_LANGUAGE_CODE: "en";
|
|
52
|
-
export declare const
|
|
50
|
+
export declare const FALLBACK_RUNTIME_TRANSLATION_CONFIG: TranslationConfig;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Translation Models and Types
|
|
3
3
|
* Core types and interfaces for the translation system
|
|
4
4
|
*/
|
|
5
|
-
import { ResourceLoaderRequestOptions } from '@sixbell-telco/sdk/utils/resource-loader';
|
|
6
5
|
import { DEFAULT_LANGUAGE_CODES } from '../constants';
|
|
7
6
|
/**
|
|
8
7
|
* Language definition interface
|
|
@@ -18,6 +17,15 @@ export interface LanguageDefinition {
|
|
|
18
17
|
* Main translation configuration interface
|
|
19
18
|
*/
|
|
20
19
|
export interface TranslationConfig {
|
|
20
|
+
/**
|
|
21
|
+
* Runtime metadata used for cache and update detection
|
|
22
|
+
*/
|
|
23
|
+
meta: {
|
|
24
|
+
version?: string;
|
|
25
|
+
updatedAt?: string;
|
|
26
|
+
hash: string;
|
|
27
|
+
schemaVersion: string;
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Additional languages to make available beyond the default base languages (en, es, pt)
|
|
23
31
|
* When you add languages here, they become available in defaultLang and excludeLanguages
|
|
@@ -38,15 +46,6 @@ export interface TranslationConfig {
|
|
|
38
46
|
defaultLang?: string;
|
|
39
47
|
/** Translation file paths */
|
|
40
48
|
translationPaths?: string[];
|
|
41
|
-
/** Optional resilient resource loader configuration */
|
|
42
|
-
resourceLoader?: TranslationResourceLoaderConfig;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Resource loader configuration for translation files
|
|
46
|
-
*/
|
|
47
|
-
export interface TranslationResourceLoaderConfig {
|
|
48
|
-
loaderOptions?: ResourceLoaderRequestOptions<Record<string, unknown>>;
|
|
49
|
-
suffix?: string;
|
|
50
49
|
}
|
|
51
50
|
/**
|
|
52
51
|
* Internal state configuration for translation service
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { EnvironmentProviders
|
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { TranslateLoader, TranslationObject } from '@ngx-translate/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { TranslationConfig } from '../models/translation';
|
|
5
4
|
import { RuntimeTranslationProviderOptions } from './translation.provider.types';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
@@ -14,42 +13,32 @@ import * as i0 from "@angular/core";
|
|
|
14
13
|
* Key: DO NOT use providedIn: 'root' - let ngx-translate manage the lifecycle.
|
|
15
14
|
*/
|
|
16
15
|
export declare class RuntimeTranslationCustomLoader implements TranslateLoader {
|
|
17
|
-
private injector;
|
|
18
|
-
|
|
19
|
-
getTranslation(lang: string): Observable<Record<string, unknown>>;
|
|
16
|
+
private readonly injector;
|
|
17
|
+
getTranslation(lang: string): Observable<TranslationObject>;
|
|
20
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeTranslationCustomLoader, never>;
|
|
21
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeTranslationCustomLoader>;
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
24
|
-
*
|
|
22
|
+
* Configuration options for the runtime translation provider (like themes).
|
|
25
23
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* Configuration is baked into the app at build time. For dynamic configuration,
|
|
31
|
-
* use `provideRuntimeTranslation()` to load from a JSON file.
|
|
32
|
-
*
|
|
33
|
-
* @param config - Configuration for languages and paths (optional)
|
|
34
|
-
* @returns Environment providers for bootstrapping
|
|
24
|
+
* @property appId - Optional namespace to avoid cache collisions across MFEs
|
|
25
|
+
* @property sse - Optional SSE config for runtime update checks (disabled by default)
|
|
26
|
+
* @property updateStream - Optional Observable for runtime update checks (disabled by default)
|
|
35
27
|
*
|
|
36
28
|
* @example
|
|
37
29
|
* ```typescript
|
|
38
|
-
* //
|
|
39
|
-
*
|
|
40
|
-
* provideTranslation({
|
|
41
|
-
* defaultLang: 'es',
|
|
42
|
-
* translationPaths: ['/assets/i18n/'],
|
|
43
|
-
* }),
|
|
44
|
-
* ]);
|
|
30
|
+
* // Default mode
|
|
31
|
+
* provideRuntimeTranslation('/assets/config/translation-config.json')
|
|
45
32
|
*
|
|
46
|
-
* //
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
33
|
+
* // SSE updates (optional)
|
|
34
|
+
* provideRuntimeTranslation('/assets/config/translation-config.json', {
|
|
35
|
+
* sse: { url: '/api/updates' }
|
|
36
|
+
* })
|
|
50
37
|
* ```
|
|
51
38
|
*/
|
|
52
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Build runtime translation loader options with defaults
|
|
41
|
+
*/
|
|
53
42
|
/**
|
|
54
43
|
* Provide Translation service with configuration loaded from a JSON file at runtime (like themes).
|
|
55
44
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RuntimeUpdateEvent } from '@sixbell-telco/sdk/utils/runtime-config';
|
|
2
|
+
import type { Observable } from 'rxjs';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for the runtime translation provider.
|
|
5
5
|
*
|
|
6
|
-
* @property
|
|
7
|
-
* @property
|
|
6
|
+
* @property appId - Optional namespace to avoid cache collisions across MFEs
|
|
7
|
+
* @property sse - Optional SSE config for runtime update checks (disabled by default)
|
|
8
|
+
* @property updateStream - Optional Observable for runtime update checks (disabled by default)
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```typescript
|
|
@@ -21,6 +22,12 @@ import { TranslationConfig } from '../models/translation';
|
|
|
21
22
|
* ```
|
|
22
23
|
*/
|
|
23
24
|
export interface RuntimeTranslationProviderOptions {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
appId?: string;
|
|
26
|
+
sse?: {
|
|
27
|
+
url: string;
|
|
28
|
+
withCredentials?: boolean;
|
|
29
|
+
eventType?: string;
|
|
30
|
+
transform?: (event: MessageEvent) => RuntimeUpdateEvent | null;
|
|
31
|
+
};
|
|
32
|
+
updateStream?: Observable<RuntimeUpdateEvent>;
|
|
26
33
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
|
|
1
|
+
import { MissingTranslationHandler, MissingTranslationHandlerParams, TranslateLoader } from '@ngx-translate/core';
|
|
2
|
+
import { RuntimeConfigLoader, RuntimeConfigLoadResult, RuntimeUpdateEvent } from '@sixbell-telco/sdk/utils/runtime-config';
|
|
2
3
|
import { LanguageDefinition, TranslationConfig } from './models/translation';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare function createLanguage(config: LanguageDefinition): LanguageDefinition;
|
|
@@ -7,23 +8,44 @@ export declare class PlaceholderMissingTranslationHandler implements MissingTran
|
|
|
7
8
|
handle(params: MissingTranslationHandlerParams): string;
|
|
8
9
|
}
|
|
9
10
|
export declare class TranslationService {
|
|
10
|
-
private readonly translationConfig?;
|
|
11
11
|
private readonly translate;
|
|
12
12
|
private readonly storageService;
|
|
13
13
|
private readonly domService;
|
|
14
14
|
private readonly logger;
|
|
15
|
+
private readonly destroyRef;
|
|
15
16
|
private initialized;
|
|
16
17
|
private currentTranslationPaths;
|
|
17
|
-
private
|
|
18
|
+
private translationHttpClient;
|
|
18
19
|
private hasAppliedInitialLanguage;
|
|
20
|
+
private isUsingFallbackConfig;
|
|
21
|
+
private prefetchLanguages;
|
|
22
|
+
private isApplyingRuntimeConfig;
|
|
23
|
+
private runtimeHash;
|
|
24
|
+
private runtimeLoader?;
|
|
25
|
+
private runtimeMeta?;
|
|
26
|
+
private pendingUpdatedLanguages;
|
|
27
|
+
private bootstrapValidated;
|
|
28
|
+
private readonly translationTick;
|
|
29
|
+
readonly updateAvailable: import("@angular/core").WritableSignal<boolean>;
|
|
30
|
+
readonly lastRefreshFailed: import("@angular/core").WritableSignal<boolean>;
|
|
19
31
|
private config;
|
|
20
32
|
readonly currentLanguage: import("@angular/core").WritableSignal<string>;
|
|
21
33
|
readonly onLanguageChange$: import("rxjs").Observable<import("@ngx-translate/core").LangChangeEvent>;
|
|
22
34
|
readonly onLanguageChange: import("@angular/core").WritableSignal<number>;
|
|
23
35
|
readonly ready: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
-
|
|
25
|
-
|
|
36
|
+
readonly changes: import("@angular/core").Signal<number>;
|
|
37
|
+
constructor();
|
|
38
|
+
configure(config: TranslationConfig): void;
|
|
39
|
+
private resolveStoredLanguage;
|
|
26
40
|
setRuntimeConfig(config: TranslationConfig): Promise<void>;
|
|
41
|
+
enablePrefetch(enable: boolean): void;
|
|
42
|
+
private loadSelectedLanguage;
|
|
43
|
+
private prefetchRemainingLanguages;
|
|
44
|
+
private loadLanguageResources;
|
|
45
|
+
private queueUpdatedLanguage;
|
|
46
|
+
private reloadLanguages;
|
|
47
|
+
refreshInactiveLanguages(): Promise<void>;
|
|
48
|
+
private validateBootstrapCache;
|
|
27
49
|
private initializeFromStorage;
|
|
28
50
|
private applyLanguage;
|
|
29
51
|
setLanguage(lang: string): void;
|
|
@@ -41,10 +63,16 @@ export declare class TranslationService {
|
|
|
41
63
|
isReady(): import("@angular/core").Signal<boolean>;
|
|
42
64
|
waitForTranslations(timeoutMs?: number): Promise<void>;
|
|
43
65
|
init(): void;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
66
|
+
applyRuntimeConfig(result: RuntimeConfigLoadResult<TranslationConfig>, loader?: RuntimeConfigLoader<TranslationConfig>): Promise<void>;
|
|
67
|
+
setRuntimeLoader(loader: RuntimeConfigLoader<TranslationConfig>, hash?: string): void;
|
|
68
|
+
checkForTranslationUpdates(loader: RuntimeConfigLoader<TranslationConfig>, event?: RuntimeUpdateEvent): Promise<void>;
|
|
69
|
+
refreshTranslation(loader?: RuntimeConfigLoader<TranslationConfig>): Promise<void>;
|
|
70
|
+
withTranslationsReady<T>(fn: () => T): T | undefined;
|
|
71
|
+
private getOrCreateHttpClient;
|
|
72
|
+
private fetchTranslation;
|
|
73
|
+
createTranslateLoader(): TranslateLoader;
|
|
74
|
+
private isTranslationObject;
|
|
47
75
|
private deepMergeTranslations;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService,
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
|
|
49
77
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
|
|
50
78
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class JustNumbersDirective {
|
|
3
|
-
justNumbers: import("@angular/core").InputSignal<boolean>;
|
|
4
|
-
constructor();
|
|
5
|
-
blockPaste(event: ClipboardEvent): boolean;
|
|
6
|
-
onKeyPress(event: KeyboardEvent): boolean;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<JustNumbersDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<JustNumbersDirective, "[stJustNumbers]", never, { "justNumbers": { "alias": "justNumbers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|