@sixbell-telco/sdk 1.5.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 +223 -710
- package/README.md +307 -282
- package/_index.css +29 -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/dropdown-chevron/dropdown-chevron.component.d.ts +6 -1
- package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +1 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +6 -1
- package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +7 -1
- package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +7 -1
- package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +30 -0
- package/components/dropdown/public-api.d.ts +0 -1
- package/components/dropdown/src/dropdown.component.d.ts +31 -7
- 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/combobox/src/combobox.component.d.ts +24 -0
- package/components/forms/input/src/input.component.d.ts +11 -1
- package/components/forms/select/src/select.component.d.ts +24 -0
- 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-dropdown.mjs +472 -341
- package/fesm2022/sixbell-telco-sdk-components-dropdown.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-combobox.mjs +58 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.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 +54 -4
- 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 +73 -72
- 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/components/dropdown/src/services/dropdown.service.d.ts +0 -22
- 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,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definitions and interfaces for ResourceLoader
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Indicates where the resource data originated.
|
|
6
|
-
* - `network`: Freshly fetched from the URL
|
|
7
|
-
* - `cache`: Retrieved from one of the cache layers (IndexedDB, localStorage, or memory)
|
|
8
|
-
* - `fallback`: Used the provided fallback data (no cache, network error)
|
|
9
|
-
*/
|
|
10
|
-
export type ResourceSource = 'network' | 'cache' | 'fallback';
|
|
11
|
-
/**
|
|
12
|
-
* Describes the freshness status of cached data.
|
|
13
|
-
* - `fresh`: Cache entry is within the TTL window
|
|
14
|
-
* - `stale`: Cache entry is older than the TTL (but still served if `staleWhileRevalidate` is enabled)
|
|
15
|
-
* - `miss`: No cache entry existed (new load or fallback used)
|
|
16
|
-
*/
|
|
17
|
-
export type ResourceCacheStatus = 'fresh' | 'stale' | 'miss';
|
|
18
|
-
/**
|
|
19
|
-
* Names of the supported cache storage layers.
|
|
20
|
-
* - `indexedDB`: Persistent, large capacity; survives page reload and browser session
|
|
21
|
-
* - `localStorage`: Persistent, limited capacity (~5-10MB); survives page reload and browser session
|
|
22
|
-
* - `memory`: In-memory only; cleared on page reload
|
|
23
|
-
*/
|
|
24
|
-
export type CacheLayerName = 'indexedDB' | 'localStorage' | 'memory';
|
|
25
|
-
/**
|
|
26
|
-
* Result returned by the loader after a successful load operation.
|
|
27
|
-
*
|
|
28
|
-
* @template T The data type being loaded
|
|
29
|
-
*
|
|
30
|
-
* @property data - The loaded resource data
|
|
31
|
-
* @property source - Where the data came from (network, cache, or fallback)
|
|
32
|
-
* @property cacheStatus - Whether the cache entry is fresh, stale, or missed
|
|
33
|
-
* @property revalidate - Optional promise that resolves when background revalidation completes
|
|
34
|
-
* (only present if `revalidateOnFresh` or `staleWhileRevalidate` is enabled)
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* const result = await loader.load<ThemeConfig>('config.json', options);
|
|
39
|
-
* console.log(result.data); // Theme configuration
|
|
40
|
-
* console.log(result.source); // 'cache' or 'network'
|
|
41
|
-
* if (result.revalidate) {
|
|
42
|
-
* await result.revalidate; // Wait for background refresh to complete
|
|
43
|
-
* }
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export interface ResourceLoadResult<T> {
|
|
47
|
-
data: T;
|
|
48
|
-
source: ResourceSource;
|
|
49
|
-
cacheStatus: ResourceCacheStatus;
|
|
50
|
-
revalidate?: Promise<void>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Default configuration options for the ResourceLoader.
|
|
54
|
-
* These values are applied globally to all load operations unless overridden per-request.
|
|
55
|
-
*
|
|
56
|
-
* @property cacheName - Namespace for cache entries (default: `'resilient-resource'`)
|
|
57
|
-
* @property indexedDBName - IndexedDB database name for this loader instance (default: `'resilient-resources'`)
|
|
58
|
-
* @property defaultCacheKey - Default cache key if not provided in load options
|
|
59
|
-
* @property storageOrder - Ordered list of cache layers to use (default: `['indexedDB', 'localStorage', 'memory']`)
|
|
60
|
-
* @property cacheTTL - Time-to-live for cache entries in milliseconds (default: 24 hours)
|
|
61
|
-
* @property staleWhileRevalidate - Return stale cache while fetching a fresh copy in background (default: `true`)
|
|
62
|
-
* @property useStaleOnError - Return stale cache if fetch fails (default: `true`)
|
|
63
|
-
* @property revalidateOnFresh - Even for fresh cache, fetch in background (default: `false`)
|
|
64
|
-
* @property retries - Number of retry attempts on network failure (default: 2, total attempts = retries + 1)
|
|
65
|
-
* @property retryDelayMs - Base delay between retries in milliseconds (default: 250)
|
|
66
|
-
* @property timeoutMs - Request timeout in milliseconds (default: 8000)
|
|
67
|
-
* @property parser - Custom parser function for any file type (default: JSON.parse). Receives Response object,
|
|
68
|
-
* supports JSON, XML, plain text, binary, or custom formats.
|
|
69
|
-
* Example: `(response) => response.json()` for JSON, `(response) => response.text()` for text
|
|
70
|
-
* @property seedCacheWithFallback - Populate caches with fallback data on first failure (default: `true`)
|
|
71
|
-
* @property logErrors - Log warnings and errors to console (default: `true`)
|
|
72
|
-
* @property freshOnNavigation - Skip cache on each load() call for hot-reload pattern. Always tries network first,
|
|
73
|
-
* falls back to cache if network fails, then to fallbackData if all else fails.
|
|
74
|
-
* Recommended default for most use cases (prevents stale data problems).
|
|
75
|
-
* (default: `true`)
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```typescript
|
|
79
|
-
* const defaults: ResourceLoaderDefaults = {
|
|
80
|
-
* cacheName: 'my-app-cache',
|
|
81
|
-
* cacheTTL: 1000 * 60 * 5, // 5 minutes
|
|
82
|
-
* staleWhileRevalidate: true,
|
|
83
|
-
* retries: 3,
|
|
84
|
-
* };
|
|
85
|
-
* const loader = new ResourceLoader(defaults);
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
export interface ResourceLoaderDefaults {
|
|
89
|
-
cacheName?: string;
|
|
90
|
-
indexedDBName?: string;
|
|
91
|
-
defaultCacheKey?: string;
|
|
92
|
-
storageOrder?: CacheLayerName[];
|
|
93
|
-
cacheTTL?: number;
|
|
94
|
-
staleWhileRevalidate?: boolean;
|
|
95
|
-
useStaleOnError?: boolean;
|
|
96
|
-
revalidateOnFresh?: boolean;
|
|
97
|
-
retries?: number;
|
|
98
|
-
retryDelayMs?: number;
|
|
99
|
-
timeoutMs?: number;
|
|
100
|
-
parser?: (response: Response) => Promise<unknown>;
|
|
101
|
-
seedCacheWithFallback?: boolean;
|
|
102
|
-
logErrors?: boolean;
|
|
103
|
-
freshOnNavigation?: boolean;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Per-request load options, extending global defaults.
|
|
107
|
-
* Any option set here overrides the loader's default configuration for this specific load.
|
|
108
|
-
*
|
|
109
|
-
* @template T The expected data type
|
|
110
|
-
*
|
|
111
|
-
* @property cacheKey - Unique identifier for this resource (default: the URL itself)
|
|
112
|
-
* @property fallbackData - Data to return if all other methods fail (no cache, network error)
|
|
113
|
-
* @property parser - Custom parser supporting any file type (JSON, XML, text, binary, etc).
|
|
114
|
-
* Receives Response object. Examples:
|
|
115
|
-
* - JSON: `(response) => response.json()`
|
|
116
|
-
* - Text: `(response) => response.text()`
|
|
117
|
-
* - Custom: `(response) => customParse(response.arrayBuffer())`
|
|
118
|
-
* @property freshOnNavigation - Skip cache on each call (default: inherits from loader defaults which is now true).
|
|
119
|
-
* Set to false to enable aggressive caching for this specific resource.
|
|
120
|
-
* @property seedCacheWithFallback - Populate caches with fallback data if load fails
|
|
121
|
-
* @property logErrors - Log errors for this request
|
|
122
|
-
* @property ... - Inherits all other defaults from ResourceLoaderDefaults
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* ```typescript
|
|
126
|
-
* // JSON loading with cache override
|
|
127
|
-
* const options: ResourceLoaderRequestOptions<ThemeConfig> = {
|
|
128
|
-
* cacheKey: 'themes/config',
|
|
129
|
-
* cacheTTL: 1000 * 60 * 2, // Override: 2 minutes instead of default 24h
|
|
130
|
-
* fallbackData: { themes: [], availableThemes: [] },
|
|
131
|
-
* parser: async (response) => (await response.json()) as ThemeConfig,
|
|
132
|
-
* };
|
|
133
|
-
* const result = await loader.load<ThemeConfig>('assets/themes/config.json', options);
|
|
134
|
-
*
|
|
135
|
-
* // XML loading with custom parser
|
|
136
|
-
* const xmlOptions: ResourceLoaderRequestOptions<XMLDocument> = {
|
|
137
|
-
* parser: async (response) => new DOMParser().parseFromString(
|
|
138
|
-
* await response.text(),
|
|
139
|
-
* 'application/xml'
|
|
140
|
-
* ),
|
|
141
|
-
* };
|
|
142
|
-
* const xmlResult = await loader.load<XMLDocument>('assets/data.xml', xmlOptions);
|
|
143
|
-
* ```
|
|
144
|
-
*/
|
|
145
|
-
export interface ResourceLoaderRequestOptions<T> extends ResourceLoaderDefaults {
|
|
146
|
-
cacheKey?: string;
|
|
147
|
-
fallbackData?: T;
|
|
148
|
-
parser?: (response: Response) => Promise<T>;
|
|
149
|
-
freshOnNavigation?: boolean;
|
|
150
|
-
seedCacheWithFallback?: boolean;
|
|
151
|
-
logErrors?: boolean;
|
|
152
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { CacheEntry } from '../cache/types';
|
|
2
|
-
/**
|
|
3
|
-
* Pure utility class for cache validation logic.
|
|
4
|
-
* Determines whether a cache entry is fresh, stale, or expired.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* const entry = { value: data, timestamp: Date.now() - 1000, ttl: 10000 };
|
|
9
|
-
* if (CacheValidator.isFresh(entry)) {
|
|
10
|
-
* console.log('Cache is fresh');
|
|
11
|
-
* }
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare class CacheValidator {
|
|
15
|
-
/**
|
|
16
|
-
* Check if a cache entry is within its TTL (fresh).
|
|
17
|
-
*
|
|
18
|
-
* @param entry - The cache entry to validate
|
|
19
|
-
* @returns true if the entry is fresh, false if expired
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* if (CacheValidator.isFresh(cacheEntry)) {
|
|
24
|
-
* return cacheEntry.value;
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
static isFresh(entry: CacheEntry<unknown>): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Determine if a cache entry should be considered stale (older than TTL but within revalidate window).
|
|
31
|
-
*
|
|
32
|
-
* @param entry - The cache entry to validate
|
|
33
|
-
* @returns true if the entry is stale, false otherwise
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```typescript
|
|
37
|
-
* if (CacheValidator.isStale(cacheEntry)) {
|
|
38
|
-
* console.log('Cache is stale; revalidating...');
|
|
39
|
-
* }
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
static isStale(entry: CacheEntry<unknown>): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Check if a cache entry is expired based on age (age > ttl).
|
|
45
|
-
* Expired entries should be removed during cleanup.
|
|
46
|
-
*
|
|
47
|
-
* @param entry - The cache entry to validate
|
|
48
|
-
* @returns true if the entry is expired, false otherwise
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* if (CacheValidator.isExpired(cacheEntry)) {
|
|
53
|
-
* await cacheLayer.remove(key);
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
static isExpired(entry: CacheEntry<unknown>): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Get the remaining TTL for a cache entry in milliseconds.
|
|
60
|
-
* Negative values indicate the entry is already expired.
|
|
61
|
-
*
|
|
62
|
-
* @param entry - The cache entry to check
|
|
63
|
-
* @returns Milliseconds remaining until expiry (negative if expired)
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```typescript
|
|
67
|
-
* const remaining = CacheValidator.getTimeRemaining(entry);
|
|
68
|
-
* console.log(`Cache expires in ${remaining}ms`);
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
static getTimeRemaining(entry: CacheEntry<unknown>): number;
|
|
72
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deep clones a value to ensure cached objects are isolated from the original.
|
|
3
|
-
* Handles JSON-serializable types (objects, arrays, primitives).
|
|
4
|
-
*
|
|
5
|
-
* @param value - The value to clone
|
|
6
|
-
* @returns A deep copy of the value
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* const config = { theme: 'dark', nested: { option: true } };
|
|
11
|
-
* const cached = cloneValue(config);
|
|
12
|
-
* cached.nested.option = false; // Original config is unchanged
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function cloneValue<T>(value: T): T;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResourceLoaderRequestOptions } from '@sixbell-telco/sdk/utils/resource-loader';
|
|
2
|
-
import { RuntimeThemeConfig } from '../theme.service';
|
|
3
|
-
/**
|
|
4
|
-
* Theme-specific IndexedDB database name for resource caching
|
|
5
|
-
*/
|
|
6
|
-
export declare const THEME_INDEXED_DB_NAME: "sixbell-theme";
|
|
7
|
-
export declare const RUNTIME_THEME_LOADER_DEFAULTS: ResourceLoaderRequestOptions<RuntimeThemeConfig>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ResourceLoaderRequestOptions } from '@sixbell-telco/sdk/utils/resource-loader';
|
|
2
|
-
import { TranslationConfig } from '../models/translation';
|
|
3
|
-
/**
|
|
4
|
-
* Default resource loader options for runtime translation config files
|
|
5
|
-
* Matches theme's resilient loading pattern
|
|
6
|
-
*/
|
|
7
|
-
export declare const RUNTIME_TRANSLATION_LOADER_DEFAULTS: ResourceLoaderRequestOptions<TranslationConfig>;
|
|
8
|
-
/**
|
|
9
|
-
* Fallback translation config when file loading fails
|
|
10
|
-
*/
|
|
11
|
-
export declare const FALLBACK_RUNTIME_TRANSLATION_CONFIG: TranslationConfig;
|