@sixbell-telco/sdk 1.3.0 → 1.5.0
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 +81 -0
- package/README.md +437 -472
- package/_index.css +109 -11
- package/assets/styles/toast.css +8 -0
- package/components/forms/date-picker/constants/date-picker.constants.d.ts +13 -0
- package/components/forms/date-picker/index.d.ts +5 -0
- package/components/forms/date-picker/public-api.d.ts +3 -0
- package/components/forms/date-picker/src/date-picker.component.d.ts +323 -0
- package/components/forms/date-picker/types/date-picker.types.d.ts +39 -0
- package/components/{forms/datepicker → sonner}/index.d.ts +1 -1
- package/components/sonner/public-api.d.ts +2 -0
- package/components/sonner/src/sonner.component.d.ts +39 -0
- package/components/sonner/toaster/index.d.ts +5 -0
- package/components/sonner/toaster/public-api.d.ts +1 -0
- package/components/sonner/toaster/src/toaster.component.d.ts +89 -0
- package/components/toast/public-api.d.ts +9 -0
- package/components/toast/services/toast.service.d.ts +3 -0
- package/components/toast/toast-message/toast-message.component.d.ts +3 -0
- package/components/toast/toasts-container/toasts-container.component.d.ts +3 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +885 -0
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +132 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +179 -0
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +14 -0
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs +90 -2
- package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-logger.mjs +578 -0
- package/fesm2022/sixbell-telco-sdk-utils-logger.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-resource-loader.mjs +1222 -0
- package/fesm2022/sixbell-telco-sdk-utils-resource-loader.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +1434 -180
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +734 -182
- package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
- package/package.json +68 -51
- package/utils/date/src/date-utils.d.ts +44 -0
- package/utils/logger/README.md +539 -0
- package/utils/logger/index.d.ts +5 -0
- package/utils/logger/public-api.d.ts +3 -0
- package/utils/logger/src/constants.d.ts +15 -0
- package/utils/logger/src/logger.service.d.ts +123 -0
- package/utils/logger/src/models/logger.d.ts +25 -0
- package/utils/logger/src/providers/logger.provider.d.ts +3 -0
- package/utils/resource-loader/README.md +460 -0
- package/utils/resource-loader/index.d.ts +5 -0
- package/utils/resource-loader/public-api.d.ts +1 -0
- package/utils/resource-loader/src/cache/index.d.ts +2 -0
- package/utils/resource-loader/src/cache/layers/factory.d.ts +38 -0
- package/utils/resource-loader/src/cache/layers/index.d.ts +3 -0
- package/utils/resource-loader/src/cache/layers/indexed-db-cache.d.ts +118 -0
- package/utils/resource-loader/src/cache/layers/local-storage-cache.d.ts +86 -0
- package/utils/resource-loader/src/cache/layers/memory-cache.d.ts +76 -0
- package/utils/resource-loader/src/cache/types.d.ts +107 -0
- package/utils/resource-loader/src/config/index.d.ts +1 -0
- package/utils/resource-loader/src/config/load-config.d.ts +32 -0
- package/utils/resource-loader/src/constants.d.ts +38 -0
- package/utils/resource-loader/src/http/index.d.ts +1 -0
- package/utils/resource-loader/src/http/retryable-client.d.ts +43 -0
- package/utils/resource-loader/src/index.d.ts +1 -0
- package/utils/resource-loader/src/resource-loader.d.ts +67 -0
- package/utils/resource-loader/src/types.d.ts +152 -0
- package/utils/resource-loader/src/utils/cache-validator.d.ts +72 -0
- package/utils/resource-loader/src/utils/helpers.d.ts +15 -0
- package/utils/resource-loader/src/utils/index.d.ts +2 -0
- package/utils/theme/README.md +1054 -109
- package/utils/theme/public-api.d.ts +9 -1
- package/utils/theme/src/constants.d.ts +74 -0
- package/utils/theme/src/models/theme.d.ts +288 -0
- package/utils/theme/src/providers/constants.d.ts +7 -0
- package/utils/theme/src/providers/theme.provider.d.ts +13 -0
- package/utils/theme/src/providers/theme.provider.types.d.ts +29 -0
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +214 -0
- package/utils/theme/src/theme-assets/theme-assets.types.d.ts +10 -0
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +87 -0
- package/utils/theme/src/theme-scheme/theme-scheme.service.d.ts +44 -0
- package/utils/theme/src/theme-storage/theme-storage.service.d.ts +47 -0
- package/utils/theme/src/theme.service.d.ts +40 -186
- package/utils/theme/src/utils/utils.d.ts +86 -0
- package/utils/translation/README.md +1414 -176
- package/utils/translation/public-api.d.ts +6 -0
- package/utils/translation/src/constants.d.ts +52 -0
- package/utils/translation/src/models/translation.d.ts +59 -0
- package/utils/translation/src/providers/constants.d.ts +11 -0
- package/utils/translation/src/providers/translation.provider.d.ts +73 -0
- package/utils/translation/src/providers/translation.provider.types.d.ts +26 -0
- package/utils/translation/src/translation-dom/translation-dom.service.d.ts +26 -0
- package/utils/translation/src/translation-storage/translation-storage.service.d.ts +34 -0
- package/utils/translation/src/translation.service.d.ts +19 -166
- package/components/forms/datepicker/constants/datepicker.constants.d.ts +0 -5
- package/components/forms/datepicker/public-api.d.ts +0 -3
- package/components/forms/datepicker/src/datepicker.component.d.ts +0 -165
- package/components/forms/datepicker/types/datepicker.types.d.ts +0 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -487
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,87 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.5.0] - 2025-11-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Documentation Updates**: Enhance README with Logger Service documentation and runtime configuration examples for themes and translations (`8f70196`, `62715ed`)
|
|
15
|
+
- **Theme i18n Structure**: Add new theme localization files for better organization and remove redundant theme/language sections from existing JSON files (`e26f2fa`)
|
|
16
|
+
- **Data Table i18n**: Add 'perPage' entry to dataTable translations in English, Spanish, and Portuguese (`fc2f7fb`, `daa220b`, `f29ccb9`, `5d9a1f9`, `b68ec31`)
|
|
17
|
+
- **Logger Service**: Add comprehensive logging utility with theme-aware styling, IndexedDB persistence, and configuration options (`ee55092`, `9011968`, `3e9b8d6`, `51c6459`, `8b6362a`, `40803ab`, `12f0865`)
|
|
18
|
+
- **Resource Loader**: Add intelligent resource loading with multi-layer caching (IndexedDB, localStorage, memory), retry logic, and fallback support (`e78622d`, `174959f`, `9a17a6c`, `7569482`)
|
|
19
|
+
- **Runtime Theme Provider**: Enhance with runtime configuration loading, auto-derivation of available themes, and improved asset management (`dfb9b65`, `38e964b`, `a4b9266`, `dc591ee`, `d6b68dc`, `20e76b7`)
|
|
20
|
+
- **Runtime Translation Provider**: Enhance with improved runtime initialization, IndexedDB support, and language preference persistence (`014df6f`, `51c6459`, `29eb934`)
|
|
21
|
+
- **Theme Constants**: Add constants for theme loader defaults, asset types, and improved configuration handling (`a2d693d`, `250b5fb`)
|
|
22
|
+
- **Translation Constants**: Add constants for IndexedDB integration and enforce immutability across configuration (`51c6459`, `014df6f`)
|
|
23
|
+
- **App Configuration**: Enhance showcase app config with new runtime providers and logger setup (`46a9751`, `8aeedbd`)
|
|
24
|
+
- **i18n Structure**: Restructure translation files with theme localization support and multi-path loading (`221a3da`, `c3b6412`)
|
|
25
|
+
- **Themes Configuration**: Add themes.json for comprehensive font and theme configuration with multi-variant support (`60edde2`)
|
|
26
|
+
- **Theme Assets**: Add themed logo assets for 'sixbell_telco' theme in themes.json (`a58b4ae`)
|
|
27
|
+
- **Testing Infrastructure**: Add comprehensive Angular 19 testing patterns with Jest and ng-mocks (`7cd3f6a`)
|
|
28
|
+
- **Git Configuration**: Update .gitignore with OS-generated files section and additional entries (`af3d26a`)
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **Dockerfile**: Update nginx version to 1.29.2-alpine3.22-slim for improved security and compatibility (`3cb2f66`)
|
|
33
|
+
- **Docker Security**: Update nginx base image to version 1.29.3 for improved security and compatibility (`d44cfc6`)
|
|
34
|
+
- **Theme Service**: Integrate LoggerService for enhanced logging in theme configuration methods (`3d11375`, `40803ab`, `12f0865`)
|
|
35
|
+
- **Translation Service**: Enhance logging and replace console methods with logger service (`f7648d1`, `9582538`, `bfe2eee`)
|
|
36
|
+
- **Resource Loader**: Integrate LoggerService for improved error handling and debugging (`9a17a6c`, `7569482`)
|
|
37
|
+
- **Translation Provider**: Replace console.error with logger.error for improved error logging (`f7648d1`)
|
|
38
|
+
- **Sonner Toast**: Enable rich colors for Sonner toaster component for better visual feedback (`f1b67ab`)
|
|
39
|
+
- **App Configuration**: Update translation provider to use runtime configuration with fresh loading (`46a9751`, `c3b6412`)
|
|
40
|
+
- **Language Change**: Prevent page reload on language change for better UX (`b28c3b3`, `1707d4e`)
|
|
41
|
+
- **Cache Handling**: Update freshOnNavigation logic with improved defaults (`4511cf6`, `773e1f6`, `2f496a5`, `cbcfb21`)
|
|
42
|
+
- **Imports Path**: Update imports from runtime-loader to resource-loader for consistency (`f3551ca`, `66378c5`)
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- **Theme Export**: Specify theme.provider export in public API and remove redundant index file (`12f0865`)
|
|
47
|
+
- **Translation Formatting**: Correct formatting by adding line breaks for better readability (`8520b1d`)
|
|
48
|
+
- **App Config**: Update translation provider to runtime configuration for proper initialization (`46a9751`)
|
|
49
|
+
- **Theme Restoration**: Restore freshOnNavigation default behavior for hot-reloading on navigation (`1e35dce`)
|
|
50
|
+
- **Translation Testing**: Update tests to use TRANSLATION_CONFIG_TOKEN and enhance runtime translation options (`b968b6a`)
|
|
51
|
+
- **Config Token**: Correct export path for resource-loader module (`ff6398e`)
|
|
52
|
+
- **Theme Constants**: Correct formatting and improve documentation (`91a79f9`, `6c3c33d`)
|
|
53
|
+
|
|
54
|
+
### Deprecated
|
|
55
|
+
|
|
56
|
+
- **Toast Components**: Marked legacy toast components and services as deprecated, recommending migration to ngx-sonner (`2c566e5`)
|
|
57
|
+
|
|
58
|
+
## [1.4.0] - 2025-09-23
|
|
59
|
+
|
|
60
|
+
### Added
|
|
61
|
+
|
|
62
|
+
- **Sonner Toast System**: Integrated ngx-sonner for modern toast notifications, including toaster component, custom toast component, and showcase examples (`6cfa165`, `4183642`, `0a6a564`)
|
|
63
|
+
- **Storybook Stories**: Added comprehensive Storybook stories for Sonner toaster with interactive toast examples (default, success, error, warning, info, loading, promise, action, long text) (`f89d35e`)
|
|
64
|
+
- **Dependencies**: Added ngx-sonner as a dependency for enhanced toast functionality (`6cfa165`)
|
|
65
|
+
- **Date Picker – New Component**: Implement a new date picker component with single and range selection modes as the foundation for time picker enhancements (`5dcd454`)
|
|
66
|
+
- **Date Picker – Time Picker**: Add time selection for single and range modes with optional seconds and 12h/24h display formats, including quick range options (`c35fdd2`, `b8186b8`, `f9a9eed`)
|
|
67
|
+
- **Date Picker – Quick Actions/i18n**: Add quick action labels for last hour and range selections, and time selection labels for English, Spanish, and Portuguese (`37609dc`, `15dc5da`, `2234a19`)
|
|
68
|
+
- **Date Picker – Events**: Expose range selection change handling outputs for better integration (`ba55f10`)
|
|
69
|
+
- **Date Picker – Typed API**: Introduce constants and types for modes, calendars, time formats, and date styles; use typed signals for date range and time handling; consolidate and document time string types (`4cfdd66`, `d7626c6`, `7832408`, `f6038a4`)
|
|
70
|
+
|
|
71
|
+
### Changed
|
|
72
|
+
|
|
73
|
+
- **Shadow Variables**: Updated shadow variables for better consistency and clarified legacy toast system in CSS (`e2761cd`)
|
|
74
|
+
- **Toast CSS**: Updated toast.css to clarify deprecation and migration path to ngx-sonner (`cf6889b`)
|
|
75
|
+
- **Date Picker – Range Logic**: Improve range selection logic to avoid overriding developer/user-defined times; set default start/end times only when times are empty for different-day ranges (`77901e1`, `ced219d`)
|
|
76
|
+
- **Date Picker – Time Handling**: Initialize time picker signals with empty values for flexibility and improve time input handling UX (`8d02b36`, `3eee460`)
|
|
77
|
+
- **Date Picker – i18n/Locale**: Remove hardcoded language from components and demonstrate automatic language→calendar locale mapping; refresh on language change in showcase to apply translations (`8963f2b`, `6674c08`)
|
|
78
|
+
- **Date Picker – Codebase**: Refactor component/code structure for readability and to rely on typed constants; enhance documentation with remarks and examples (`32f6b37`, `d7626c6`, `2fefde6`)
|
|
79
|
+
- **Tooling/Config**: Update package.json to fix dependency versioning and change showcase port (`d5bf5c3`)
|
|
80
|
+
- **Styling**: Customize time input indicator style; update primary light color and add scrollbar auto-hide (`2c8d9db`, `09df058`)
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
|
|
84
|
+
- **Self-Closing Tag**: Corrected self-closing tag for st-sonner-toaster in app.component.html (`f87fa2f`)
|
|
85
|
+
- **Date Picker – Default Times**: Ensure default full-day times are applied correctly when finalizing same-day selections, while preserving developer-defined times on different-day ranges (`ced219d`, `77901e1`)
|
|
86
|
+
|
|
87
|
+
### Deprecated
|
|
88
|
+
|
|
89
|
+
- **Toast Components**: Marked legacy toast components and services as deprecated, recommending migration to ngx-sonner (`2c566e5`)
|
|
90
|
+
|
|
10
91
|
## [1.3.0] - 2025-09-02
|
|
11
92
|
|
|
12
93
|
### Added
|