@sixbell-telco/sdk 2.1.0 → 3.0.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.
Files changed (146) hide show
  1. package/CHANGELOG.md +70 -1
  2. package/README.md +323 -84
  3. package/_index.css +0 -3
  4. package/components/card/card-actions/card-actions.component.d.ts +4 -4
  5. package/components/card/card-body/card-body.component.d.ts +5 -0
  6. package/components/card/card-context.d.ts +8 -0
  7. package/components/card/card-footer/card-footer.component.d.ts +7 -0
  8. package/components/card/card-header/card-header.component.d.ts +5 -0
  9. package/components/card/card-header-aside/card-header-aside.component.d.ts +5 -0
  10. package/components/card/card-section/card-section.component.d.ts +5 -0
  11. package/components/card/card-section-body/card-section-body.component.d.ts +5 -0
  12. package/components/card/card-section-footer/card-section-footer.component.d.ts +5 -0
  13. package/components/card/card-section-group/card-section-group.component.d.ts +16 -0
  14. package/components/card/card-section-header/card-section-header.component.d.ts +5 -0
  15. package/components/card/card-section-header-aside/card-section-header-aside.component.d.ts +5 -0
  16. package/components/card/card-subtitle/card-subtitle.component.d.ts +34 -0
  17. package/components/card/card-title/card-title.component.d.ts +23 -14
  18. package/components/card/public-api.d.ts +12 -1
  19. package/components/card/src/card.component.d.ts +5 -1
  20. package/components/data-table/actions/actions.component.d.ts +67 -0
  21. package/components/data-table/actions/actions.types.d.ts +38 -0
  22. package/components/data-table/public-api.d.ts +2 -0
  23. package/components/data-table/sortable-header/sortable-header.component.d.ts +2 -0
  24. package/components/data-table/src/data-table.component.d.ts +14 -5
  25. package/{directives/typography → components/divider}/index.d.ts +1 -1
  26. package/components/divider/public-api.d.ts +1 -0
  27. package/components/divider/src/divider.component.d.ts +13 -0
  28. package/components/forms/date-picker/src/date-picker.component.d.ts +3 -0
  29. package/components/forms/form-error/src/form-error.component.d.ts +8 -1
  30. package/components/forms/input/src/input.component.d.ts +1 -12
  31. package/components/forms/textarea/src/textarea.component.d.ts +1 -6
  32. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +10 -1
  33. package/components/paginator/src/paginator.component.d.ts +7 -1
  34. package/components/table/public-api.d.ts +1 -0
  35. package/components/table/src/table.component.d.ts +37 -4
  36. package/components/table/table-action/table-action.component.d.ts +2 -6
  37. package/components/table/table-actions/table-actions.component.d.ts +52 -6
  38. package/components/table/table-actions/table-actions.types.d.ts +28 -0
  39. package/components/{toast → text}/index.d.ts +1 -1
  40. package/components/text/public-api.d.ts +2 -0
  41. package/components/text/src/text.component.d.ts +38 -0
  42. package/directives/only-numbers/public-api.d.ts +0 -5
  43. package/directives/only-numbers/src/only-numbers.directive.d.ts +1 -13
  44. package/directives/text/index.d.ts +5 -0
  45. package/directives/text/public-api.d.ts +1 -0
  46. package/directives/text/src/text.directive.d.ts +87 -0
  47. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +3 -3
  48. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +9 -9
  50. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  51. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +10 -11
  52. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -3
  54. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-button.mjs +2 -2
  56. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  57. package/fesm2022/sixbell-telco-sdk-components-card.mjs +414 -47
  58. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +202 -51
  60. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +5 -5
  62. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-divider.mjs +44 -0
  64. package/fesm2022/sixbell-telco-sdk-components-divider.mjs.map +1 -0
  65. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -4
  66. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +6 -6
  68. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +2 -2
  70. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  72. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +21 -5
  74. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +12 -5
  76. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -15
  78. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +2 -2
  80. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
  82. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  84. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
  86. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +5 -11
  88. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +4 -4
  90. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +2 -2
  92. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-link.mjs +3 -3
  94. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +46 -18
  96. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -3
  98. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-table.mjs +439 -47
  100. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-text.mjs +308 -0
  102. package/fesm2022/sixbell-telco-sdk-components-text.mjs.map +1 -0
  103. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +12 -12
  104. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +5 -22
  106. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +160 -0
  108. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -0
  109. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs +490 -0
  110. package/fesm2022/sixbell-telco-sdk-utils-formatting.mjs.map +1 -0
  111. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +49 -1
  112. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  113. package/package.json +86 -78
  114. package/utils/formatting/README.md +100 -0
  115. package/utils/formatting/index.d.ts +5 -0
  116. package/utils/formatting/public-api.d.ts +9 -0
  117. package/utils/formatting/src/constants/constants.d.ts +18 -0
  118. package/utils/formatting/src/models/formatting.d.ts +33 -0
  119. package/utils/formatting/src/pipes/currency/st-currency.pipe.d.ts +9 -0
  120. package/utils/formatting/src/pipes/date/st-date.pipe.d.ts +9 -0
  121. package/utils/formatting/src/pipes/decimal/st-decimal.pipe.d.ts +9 -0
  122. package/utils/formatting/src/pipes/percent/st-percent.pipe.d.ts +9 -0
  123. package/utils/formatting/src/service/formatting.service.d.ts +13 -0
  124. package/utils/formatting/src/utils/date-format/date-format.d.ts +9 -0
  125. package/utils/formatting/src/utils/number-format/number-format.d.ts +12 -0
  126. package/utils/logger/README.md +8 -19
  127. package/utils/runtime-config/README.md +1 -1
  128. package/utils/theme/README.md +21 -2
  129. package/utils/translation/README.md +40 -10
  130. package/utils/translation/public-api.d.ts +1 -1
  131. package/utils/translation/src/constants.d.ts +9 -2
  132. package/utils/translation/src/models/translation.d.ts +11 -0
  133. package/utils/translation/src/providers/translation.provider.d.ts +1 -1
  134. package/utils/translation/src/translation.service.d.ts +6 -1
  135. package/assets/styles/toast.css +0 -63
  136. package/components/card/card-content/card-content.component.d.ts +0 -30
  137. package/components/toast/public-api.d.ts +0 -12
  138. package/components/toast/services/toast.service.d.ts +0 -35
  139. package/components/toast/toast-message/toast-message.component.d.ts +0 -70
  140. package/components/toast/toasts-container/toasts-container.component.d.ts +0 -21
  141. package/directives/typography/public-api.d.ts +0 -1
  142. package/directives/typography/src/typography.directive.d.ts +0 -68
  143. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +0 -250
  144. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +0 -1
  145. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +0 -126
  146. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixbell-telco/sdk",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "A collection of reusable components designed for use in Sixbell Telco Angular projects",
5
5
  "keywords": [
6
6
  "sixbell",
@@ -50,22 +50,26 @@
50
50
  "types": "./components/button/index.d.ts",
51
51
  "default": "./fesm2022/sixbell-telco-sdk-components-button.mjs"
52
52
  },
53
- "./components/card": {
54
- "types": "./components/card/index.d.ts",
55
- "default": "./fesm2022/sixbell-telco-sdk-components-card.mjs"
56
- },
57
53
  "./components/countdown": {
58
54
  "types": "./components/countdown/index.d.ts",
59
55
  "default": "./fesm2022/sixbell-telco-sdk-components-countdown.mjs"
60
56
  },
61
- "./components/data-table": {
62
- "types": "./components/data-table/index.d.ts",
63
- "default": "./fesm2022/sixbell-telco-sdk-components-data-table.mjs"
57
+ "./components/card": {
58
+ "types": "./components/card/index.d.ts",
59
+ "default": "./fesm2022/sixbell-telco-sdk-components-card.mjs"
60
+ },
61
+ "./components/divider": {
62
+ "types": "./components/divider/index.d.ts",
63
+ "default": "./fesm2022/sixbell-telco-sdk-components-divider.mjs"
64
64
  },
65
65
  "./components/dialog": {
66
66
  "types": "./components/dialog/index.d.ts",
67
67
  "default": "./fesm2022/sixbell-telco-sdk-components-dialog.mjs"
68
68
  },
69
+ "./components/data-table": {
70
+ "types": "./components/data-table/index.d.ts",
71
+ "default": "./fesm2022/sixbell-telco-sdk-components-data-table.mjs"
72
+ },
69
73
  "./components/dropdown": {
70
74
  "types": "./components/dropdown/index.d.ts",
71
75
  "default": "./fesm2022/sixbell-telco-sdk-components-dropdown.mjs"
@@ -74,66 +78,62 @@
74
78
  "types": "./components/dropdown-menu/index.d.ts",
75
79
  "default": "./fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs"
76
80
  },
77
- "./components/dual-list": {
78
- "types": "./components/dual-list/index.d.ts",
79
- "default": "./fesm2022/sixbell-telco-sdk-components-dual-list.mjs"
80
- },
81
81
  "./components/file-upload": {
82
82
  "types": "./components/file-upload/index.d.ts",
83
83
  "default": "./fesm2022/sixbell-telco-sdk-components-file-upload.mjs"
84
84
  },
85
- "./components/icon": {
86
- "types": "./components/icon/index.d.ts",
87
- "default": "./fesm2022/sixbell-telco-sdk-components-icon.mjs"
85
+ "./components/dual-list": {
86
+ "types": "./components/dual-list/index.d.ts",
87
+ "default": "./fesm2022/sixbell-telco-sdk-components-dual-list.mjs"
88
88
  },
89
89
  "./components/link": {
90
90
  "types": "./components/link/index.d.ts",
91
91
  "default": "./fesm2022/sixbell-telco-sdk-components-link.mjs"
92
92
  },
93
+ "./components/icon": {
94
+ "types": "./components/icon/index.d.ts",
95
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon.mjs"
96
+ },
93
97
  "./components/notification": {
94
98
  "types": "./components/notification/index.d.ts",
95
99
  "default": "./fesm2022/sixbell-telco-sdk-components-notification.mjs"
96
100
  },
97
- "./components/overlay": {
98
- "types": "./components/overlay/index.d.ts",
99
- "default": "./fesm2022/sixbell-telco-sdk-components-overlay.mjs"
100
- },
101
101
  "./components/paginator": {
102
102
  "types": "./components/paginator/index.d.ts",
103
103
  "default": "./fesm2022/sixbell-telco-sdk-components-paginator.mjs"
104
104
  },
105
+ "./components/overlay": {
106
+ "types": "./components/overlay/index.d.ts",
107
+ "default": "./fesm2022/sixbell-telco-sdk-components-overlay.mjs"
108
+ },
105
109
  "./components/product-card": {
106
110
  "types": "./components/product-card/index.d.ts",
107
111
  "default": "./fesm2022/sixbell-telco-sdk-components-product-card.mjs"
108
112
  },
109
- "./components/progress": {
110
- "types": "./components/progress/index.d.ts",
111
- "default": "./fesm2022/sixbell-telco-sdk-components-progress.mjs"
112
- },
113
113
  "./components/sonner": {
114
114
  "types": "./components/sonner/index.d.ts",
115
115
  "default": "./fesm2022/sixbell-telco-sdk-components-sonner.mjs"
116
116
  },
117
+ "./components/progress": {
118
+ "types": "./components/progress/index.d.ts",
119
+ "default": "./fesm2022/sixbell-telco-sdk-components-progress.mjs"
120
+ },
117
121
  "./components/tab": {
118
122
  "types": "./components/tab/index.d.ts",
119
123
  "default": "./fesm2022/sixbell-telco-sdk-components-tab.mjs"
120
124
  },
125
+ "./components/text": {
126
+ "types": "./components/text/index.d.ts",
127
+ "default": "./fesm2022/sixbell-telco-sdk-components-text.mjs"
128
+ },
121
129
  "./components/table": {
122
130
  "types": "./components/table/index.d.ts",
123
131
  "default": "./fesm2022/sixbell-telco-sdk-components-table.mjs"
124
132
  },
125
- "./components/toast": {
126
- "types": "./components/toast/index.d.ts",
127
- "default": "./fesm2022/sixbell-telco-sdk-components-toast.mjs"
128
- },
129
133
  "./components/tooltip": {
130
134
  "types": "./components/tooltip/index.d.ts",
131
135
  "default": "./fesm2022/sixbell-telco-sdk-components-tooltip.mjs"
132
136
  },
133
- "./components/wizard": {
134
- "types": "./components/wizard/index.d.ts",
135
- "default": "./fesm2022/sixbell-telco-sdk-components-wizard.mjs"
136
- },
137
137
  "./directives/auto-focus": {
138
138
  "types": "./directives/auto-focus/index.d.ts",
139
139
  "default": "./fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs"
@@ -142,38 +142,46 @@
142
142
  "types": "./directives/click-outside/index.d.ts",
143
143
  "default": "./fesm2022/sixbell-telco-sdk-directives-click-outside.mjs"
144
144
  },
145
+ "./components/wizard": {
146
+ "types": "./components/wizard/index.d.ts",
147
+ "default": "./fesm2022/sixbell-telco-sdk-components-wizard.mjs"
148
+ },
149
+ "./directives/text": {
150
+ "types": "./directives/text/index.d.ts",
151
+ "default": "./fesm2022/sixbell-telco-sdk-directives-text.mjs"
152
+ },
145
153
  "./directives/only-numbers": {
146
154
  "types": "./directives/only-numbers/index.d.ts",
147
155
  "default": "./fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs"
148
156
  },
149
- "./directives/typography": {
150
- "types": "./directives/typography/index.d.ts",
151
- "default": "./fesm2022/sixbell-telco-sdk-directives-typography.mjs"
152
- },
153
- "./utils/cn": {
154
- "types": "./utils/cn/index.d.ts",
155
- "default": "./fesm2022/sixbell-telco-sdk-utils-cn.mjs"
156
- },
157
157
  "./utils/date": {
158
158
  "types": "./utils/date/index.d.ts",
159
159
  "default": "./fesm2022/sixbell-telco-sdk-utils-date.mjs"
160
160
  },
161
+ "./utils/formatting": {
162
+ "types": "./utils/formatting/index.d.ts",
163
+ "default": "./fesm2022/sixbell-telco-sdk-utils-formatting.mjs"
164
+ },
161
165
  "./utils/logger": {
162
166
  "types": "./utils/logger/index.d.ts",
163
167
  "default": "./fesm2022/sixbell-telco-sdk-utils-logger.mjs"
164
168
  },
169
+ "./utils/cn": {
170
+ "types": "./utils/cn/index.d.ts",
171
+ "default": "./fesm2022/sixbell-telco-sdk-utils-cn.mjs"
172
+ },
165
173
  "./utils/runtime-config": {
166
174
  "types": "./utils/runtime-config/index.d.ts",
167
175
  "default": "./fesm2022/sixbell-telco-sdk-utils-runtime-config.mjs"
168
176
  },
169
- "./utils/sync": {
170
- "types": "./utils/sync/index.d.ts",
171
- "default": "./fesm2022/sixbell-telco-sdk-utils-sync.mjs"
172
- },
173
177
  "./utils/theme": {
174
178
  "types": "./utils/theme/index.d.ts",
175
179
  "default": "./fesm2022/sixbell-telco-sdk-utils-theme.mjs"
176
180
  },
181
+ "./utils/sync": {
182
+ "types": "./utils/sync/index.d.ts",
183
+ "default": "./fesm2022/sixbell-telco-sdk-utils-sync.mjs"
184
+ },
177
185
  "./utils/translation": {
178
186
  "types": "./utils/translation/index.d.ts",
179
187
  "default": "./fesm2022/sixbell-telco-sdk-utils-translation.mjs"
@@ -182,13 +190,17 @@
182
190
  "types": "./components/data-table/sub-component-toggle/index.d.ts",
183
191
  "default": "./fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs"
184
192
  },
193
+ "./components/dropdown-menu/context": {
194
+ "types": "./components/dropdown-menu/context/index.d.ts",
195
+ "default": "./fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs"
196
+ },
185
197
  "./components/dropdown-menu/bar": {
186
198
  "types": "./components/dropdown-menu/bar/index.d.ts",
187
199
  "default": "./fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs"
188
200
  },
189
- "./components/dropdown-menu/context": {
190
- "types": "./components/dropdown-menu/context/index.d.ts",
191
- "default": "./fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs"
201
+ "./components/forms/combobox": {
202
+ "types": "./components/forms/combobox/index.d.ts",
203
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs"
192
204
  },
193
205
  "./components/forms/checkbox": {
194
206
  "types": "./components/forms/checkbox/index.d.ts",
@@ -198,29 +210,33 @@
198
210
  "types": "./components/forms/date-picker/index.d.ts",
199
211
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs"
200
212
  },
201
- "./components/forms/combobox": {
202
- "types": "./components/forms/combobox/index.d.ts",
203
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs"
213
+ "./components/forms/form-group": {
214
+ "types": "./components/forms/form-group/index.d.ts",
215
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs"
204
216
  },
205
217
  "./components/forms/form-error": {
206
218
  "types": "./components/forms/form-error/index.d.ts",
207
219
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs"
208
220
  },
209
- "./components/forms/form-group": {
210
- "types": "./components/forms/form-group/index.d.ts",
211
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs"
212
- },
213
221
  "./components/forms/form-item": {
214
222
  "types": "./components/forms/form-item/index.d.ts",
215
223
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs"
216
224
  },
225
+ "./components/forms/radio": {
226
+ "types": "./components/forms/radio/index.d.ts",
227
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-radio.mjs"
228
+ },
217
229
  "./components/forms/input": {
218
230
  "types": "./components/forms/input/index.d.ts",
219
231
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-input.mjs"
220
232
  },
221
- "./components/forms/radio": {
222
- "types": "./components/forms/radio/index.d.ts",
223
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-radio.mjs"
233
+ "./components/forms/range": {
234
+ "types": "./components/forms/range/index.d.ts",
235
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-range.mjs"
236
+ },
237
+ "./components/forms/switch": {
238
+ "types": "./components/forms/switch/index.d.ts",
239
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-switch.mjs"
224
240
  },
225
241
  "./components/forms/select": {
226
242
  "types": "./components/forms/select/index.d.ts",
@@ -230,10 +246,6 @@
230
246
  "types": "./components/forms/textarea/index.d.ts",
231
247
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs"
232
248
  },
233
- "./components/forms/switch": {
234
- "types": "./components/forms/switch/index.d.ts",
235
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-switch.mjs"
236
- },
237
249
  "./components/forms/toggle": {
238
250
  "types": "./components/forms/toggle/index.d.ts",
239
251
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs"
@@ -242,10 +254,6 @@
242
254
  "types": "./components/icon/ionicons/index.d.ts",
243
255
  "default": "./fesm2022/sixbell-telco-sdk-components-icon-ionicons.mjs"
244
256
  },
245
- "./components/forms/range": {
246
- "types": "./components/forms/range/index.d.ts",
247
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-range.mjs"
248
- },
249
257
  "./components/sonner/toaster": {
250
258
  "types": "./components/sonner/toaster/index.d.ts",
251
259
  "default": "./fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs"
@@ -258,14 +266,14 @@
258
266
  "types": "./utils/pipes/extract-extension/index.d.ts",
259
267
  "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs"
260
268
  },
261
- "./utils/pipes/time": {
262
- "types": "./utils/pipes/time/index.d.ts",
263
- "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs"
264
- },
265
269
  "./utils/pipes/to-bytes-extesion": {
266
270
  "types": "./utils/pipes/to-bytes-extesion/index.d.ts",
267
271
  "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs"
268
272
  },
273
+ "./utils/pipes/time": {
274
+ "types": "./utils/pipes/time/index.d.ts",
275
+ "default": "./fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs"
276
+ },
269
277
  "./components/icon/heroicons/mini": {
270
278
  "types": "./components/icon/heroicons/mini/index.d.ts",
271
279
  "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-mini.mjs"
@@ -278,21 +286,21 @@
278
286
  "types": "./components/icon/material/baseline/index.d.ts",
279
287
  "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-baseline.mjs"
280
288
  },
281
- "./components/icon/material/outline": {
282
- "types": "./components/icon/material/outline/index.d.ts",
283
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs"
284
- },
285
- "./components/icon/material/round": {
286
- "types": "./components/icon/material/round/index.d.ts",
287
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs"
289
+ "./components/icon/heroicons/solid": {
290
+ "types": "./components/icon/heroicons/solid/index.d.ts",
291
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs"
288
292
  },
289
293
  "./components/icon/material/sharp": {
290
294
  "types": "./components/icon/material/sharp/index.d.ts",
291
295
  "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-sharp.mjs"
292
296
  },
293
- "./components/icon/heroicons/solid": {
294
- "types": "./components/icon/heroicons/solid/index.d.ts",
295
- "default": "./fesm2022/sixbell-telco-sdk-components-icon-heroicons-solid.mjs"
297
+ "./components/icon/material/round": {
298
+ "types": "./components/icon/material/round/index.d.ts",
299
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-round.mjs"
300
+ },
301
+ "./components/icon/material/outline": {
302
+ "types": "./components/icon/material/outline/index.d.ts",
303
+ "default": "./fesm2022/sixbell-telco-sdk-components-icon-material-outline.mjs"
296
304
  }
297
305
  },
298
306
  "peerDependencies": {
@@ -0,0 +1,100 @@
1
+ # Formatting Utility
2
+
3
+ Reactive locale-aware formatting for Angular 19 applications using the SDK `TranslationService` as the single source of truth for active language.
4
+
5
+ This utility provides:
6
+
7
+ - `FormattingService` for formatting in TypeScript
8
+ - standalone reactive pipes: `stDate`, `stCurrency`, `stDecimal`, `stPercent`
9
+ - locale resolution wired through runtime translation JSON
10
+ - SDK-owned formatting contracts without exposing `dayjs` or Angular native locale pipes
11
+
12
+ ---
13
+
14
+ ## Quick Start
15
+
16
+ ```typescript
17
+ import { provideRuntimeTranslation } from '@sixbell-telco/sdk/utils/translation';
18
+
19
+ bootstrapApplication(AppComponent, {
20
+ providers: [provideRuntimeTranslation('/assets/translation/translation.json')],
21
+ });
22
+ ```
23
+
24
+ ```json
25
+ {
26
+ "meta": {
27
+ "hash": "showcase-translations-v2",
28
+ "schemaVersion": "3"
29
+ },
30
+ "defaultLang": "es",
31
+ "translationPaths": ["/assets/i18n/", "/assets/i18n/sdk/", "/assets/themes/i18n"],
32
+ "locale": {
33
+ "defaultLocale": "en-US",
34
+ "languageToLocale": {
35
+ "en": "en-US",
36
+ "es": "es-CL",
37
+ "pt": "pt-BR"
38
+ }
39
+ }
40
+ }
41
+ ```
42
+
43
+ Template usage:
44
+
45
+ ```html
46
+ {{ createdAt | stDate:'DD/MM/YYYY HH:mm:ss' }} {{ amount | stCurrency:'CLP':'symbol':'1.0-0' }} {{ total | stDecimal:'1.0-2' }} {{ ratio |
47
+ stPercent:'1.0-2' }}
48
+ ```
49
+
50
+ TypeScript usage:
51
+
52
+ ```typescript
53
+ import { Component, computed, inject } from '@angular/core';
54
+ import { FormattingService } from '@sixbell-telco/sdk/utils/formatting';
55
+
56
+ @Component({
57
+ selector: 'app-example',
58
+ template: `{{ formattedAmount() }}`,
59
+ })
60
+ export class ExampleComponent {
61
+ private readonly formatting = inject(FormattingService);
62
+
63
+ amount = 1234.5;
64
+
65
+ formattedAmount = computed(() =>
66
+ this.formatting.formatCurrency(this.amount, 'CLP', {
67
+ display: 'symbol',
68
+ digitsInfo: '1.0-0',
69
+ }),
70
+ );
71
+ }
72
+ ```
73
+
74
+ ---
75
+
76
+ ## `stDate` formats
77
+
78
+ Supports both SDK token patterns and locale presets.
79
+
80
+ Token examples:
81
+
82
+ ```html
83
+ {{ value | stDate:'DD/MM/YYYY' }} {{ value | stDate:'DD/MM/YY HH:mm:ss' }} {{ value | stDate:'MMMM YYYY' }}
84
+ ```
85
+
86
+ Locale preset examples:
87
+
88
+ ```html
89
+ {{ value | stDate:'locale-short' }} {{ value | stDate:'locale-medium' }} {{ value | stDate:'locale-long' }} {{ value | stDate:'locale-full' }}
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Notes
95
+
96
+ - `dayjs` is used internally by the SDK for token-based date formatting.
97
+ - Applications should not import or rely on `dayjs` directly for SDK formatting flows.
98
+ - Angular native pipes (`date`, `currency`, `number`, `percent`) are intentionally outside this API.
99
+ - Formatting follows `TranslationService.currentLocale()`, so changing language in the showcase header updates `stDate`, `stCurrency`, `stDecimal`, and `stPercent` outputs automatically.
100
+ - Showcase reference: `projects/showcase/src/app/features/formatting/formatting.component.ts`
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/utils/formatting" />
5
+ export * from './public-api';
@@ -0,0 +1,9 @@
1
+ export { CURRENCY_CODES, CURRENCY_DIGITS_PRESETS, CURRENCY_DISPLAYS, DATE_COMMON_FORMATS, DATE_FORMAT_OPTIONS, DATE_LOCALE_PRESETS, DECIMAL_DIGITS_PRESETS, DEFAULT_CURRENCY_DIGITS, DEFAULT_DATE_FALLBACK, DEFAULT_DATE_FORMAT, DEFAULT_DECIMAL_DIGITS, DEFAULT_PERCENT_DIGITS, DIGITS_INFO_PRESETS, PERCENT_DIGITS_PRESETS, } from './src/constants/constants';
2
+ export type { CurrencyCode, CurrencyDisplay, CurrencyFormatOptions, DateFormat, DateFormatOptions, DatePreset, DateValue, DecimalFormatOptions, DigitsInfo, DigitsInfoPattern, DigitsInfoPreset, Iso4217CurrencyCode, KnownDateFormat, LiteralUnion, NumberValue, PercentFormatOptions, } from './src/models/formatting';
3
+ export { StCurrencyPipe } from './src/pipes/currency/st-currency.pipe';
4
+ export { StDatePipe } from './src/pipes/date/st-date.pipe';
5
+ export { StDecimalPipe } from './src/pipes/decimal/st-decimal.pipe';
6
+ export { StPercentPipe } from './src/pipes/percent/st-percent.pipe';
7
+ export { FormattingService } from './src/service/formatting.service';
8
+ export { isDatePreset, isLocaleDatePreset } from './src/utils/date-format/date-format';
9
+ export { DIGITS_INFO_PATTERN, isCurrencyDisplay, isDigitsInfo, isIso4217CurrencyCode, parseDigitsInfo, } from './src/utils/number-format/number-format';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Source for ISO 4217 currency codes: SIX Group list-one.xml (published 2026-01-01).
3
+ * Codes are deduplicated and checked in to keep the SDK self-contained at runtime.
4
+ */
5
+ export declare const CURRENCY_CODES: readonly ["AED", "AFN", "ALL", "AMD", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLE", "SOS", "SRD", "SSP", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", "VED", "VES", "VND", "VUV", "WST", "XAD", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XCG", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW", "ZWG"];
6
+ export declare const CURRENCY_DISPLAYS: readonly ["symbol", "code", "name", "narrowSymbol"];
7
+ export declare const DATE_LOCALE_PRESETS: readonly ["locale-short", "locale-medium", "locale-long", "locale-full"];
8
+ export declare const DATE_COMMON_FORMATS: readonly ["YYYY-MM-DD", "DD/MM/YYYY", "DD/MM/YYYY HH:mm:ss", "MMMM D, YYYY", "dddd, D [de] MMMM [de] YYYY"];
9
+ export declare const DATE_FORMAT_OPTIONS: readonly ["YYYY-MM-DD", "DD/MM/YYYY", "DD/MM/YYYY HH:mm:ss", "MMMM D, YYYY", "dddd, D [de] MMMM [de] YYYY", "locale-short", "locale-medium", "locale-long", "locale-full"];
10
+ export declare const CURRENCY_DIGITS_PRESETS: readonly ["1.0-0", "1.2-2", "1.2-4"];
11
+ export declare const DECIMAL_DIGITS_PRESETS: readonly ["1.0-0", "1.2-2", "1.2-4"];
12
+ export declare const PERCENT_DIGITS_PRESETS: readonly ["1.0-0", "1.1-1", "1.2-2"];
13
+ export declare const DIGITS_INFO_PRESETS: readonly ["1.0-0", "1.0-2", "1.1-1", "1.2-2", "1.2-4"];
14
+ export declare const DEFAULT_DATE_FORMAT: "locale-medium";
15
+ export declare const DEFAULT_DATE_FALLBACK: "";
16
+ export declare const DEFAULT_CURRENCY_DIGITS: "1.2-2";
17
+ export declare const DEFAULT_DECIMAL_DIGITS: "1.0-3";
18
+ export declare const DEFAULT_PERCENT_DIGITS: "1.0-2";
@@ -0,0 +1,33 @@
1
+ import { CURRENCY_CODES, CURRENCY_DISPLAYS, DATE_FORMAT_OPTIONS, DATE_LOCALE_PRESETS, DIGITS_INFO_PRESETS } from '../constants/constants';
2
+ export type LiteralUnion<T extends string> = T | (string & {});
3
+ export type DatePreset = (typeof DATE_LOCALE_PRESETS)[number];
4
+ export type KnownDateFormat = (typeof DATE_FORMAT_OPTIONS)[number];
5
+ export type DigitsInfoPreset = (typeof DIGITS_INFO_PRESETS)[number];
6
+ export type DigitsInfoPattern = `${number}.${number}` | `${number}.${number}-${number}`;
7
+ export type DigitsInfo = DigitsInfoPreset | DigitsInfoPattern;
8
+ export type Iso4217CurrencyCode = (typeof CURRENCY_CODES)[number];
9
+ export type CurrencyCode = LiteralUnion<Iso4217CurrencyCode>;
10
+ export type CurrencyDisplay = (typeof CURRENCY_DISPLAYS)[number];
11
+ export type DateFormat = LiteralUnion<KnownDateFormat>;
12
+ export type DateValue = Date | number | string | null | undefined;
13
+ export type NumberValue = number | string | null | undefined;
14
+ export interface DateFormatOptions {
15
+ fallback?: string;
16
+ locale?: string;
17
+ }
18
+ export interface CurrencyFormatOptions {
19
+ display?: CurrencyDisplay;
20
+ digitsInfo?: DigitsInfo;
21
+ fallback?: string;
22
+ locale?: string;
23
+ }
24
+ export interface DecimalFormatOptions {
25
+ digitsInfo?: DigitsInfo;
26
+ fallback?: string;
27
+ locale?: string;
28
+ }
29
+ export interface PercentFormatOptions {
30
+ digitsInfo?: DigitsInfo;
31
+ fallback?: string;
32
+ locale?: string;
33
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { CurrencyCode, CurrencyDisplay, DigitsInfo, NumberValue } from '../../models/formatting';
3
+ import * as i0 from "@angular/core";
4
+ export declare class StCurrencyPipe implements PipeTransform {
5
+ private readonly formattingService;
6
+ transform(value: NumberValue, currencyCode: CurrencyCode, display?: CurrencyDisplay, digitsInfo?: DigitsInfo, fallback?: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<StCurrencyPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<StCurrencyPipe, "stCurrency", true>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DateFormat, DateValue } from '../../models/formatting';
3
+ import * as i0 from "@angular/core";
4
+ export declare class StDatePipe implements PipeTransform {
5
+ private readonly formattingService;
6
+ transform(value: DateValue, format?: DateFormat, fallback?: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<StDatePipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<StDatePipe, "stDate", true>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DigitsInfo, NumberValue } from '../../models/formatting';
3
+ import * as i0 from "@angular/core";
4
+ export declare class StDecimalPipe implements PipeTransform {
5
+ private readonly formattingService;
6
+ transform(value: NumberValue, digitsInfo?: DigitsInfo, fallback?: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<StDecimalPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<StDecimalPipe, "stDecimal", true>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DigitsInfo, NumberValue } from '../../models/formatting';
3
+ import * as i0 from "@angular/core";
4
+ export declare class StPercentPipe implements PipeTransform {
5
+ private readonly formattingService;
6
+ transform(value: NumberValue, digitsInfo?: DigitsInfo, fallback?: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<StPercentPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<StPercentPipe, "stPercent", true>;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { CurrencyCode, CurrencyFormatOptions, DateFormat, DateFormatOptions, DateValue, DecimalFormatOptions, NumberValue, PercentFormatOptions } from '../models/formatting';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormattingService {
4
+ private readonly translationService;
5
+ readonly currentLocale: import("@angular/core").Signal<string>;
6
+ getCurrentLocale(): string;
7
+ formatDate(value: DateValue, format?: DateFormat, options?: DateFormatOptions): string;
8
+ formatCurrency(value: NumberValue, currencyCode: CurrencyCode, options?: CurrencyFormatOptions): string;
9
+ formatDecimal(value: NumberValue, options?: DecimalFormatOptions): string;
10
+ formatPercent(value: NumberValue, options?: PercentFormatOptions): string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormattingService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormattingService>;
13
+ }
@@ -0,0 +1,9 @@
1
+ import dayjs from 'dayjs';
2
+ import { DateFormat, DatePreset, DateValue } from '../../models/formatting';
3
+ export declare function isLocaleDatePreset(value: DateFormat): value is DatePreset;
4
+ export declare function isDatePreset(value: string): value is DatePreset;
5
+ export declare function normalizeDateForIntl(value: DateValue): Date | null;
6
+ export declare function normalizeDateForPattern(value: DateValue): dayjs.Dayjs | null;
7
+ export declare function resolveIntlDateOptions(format: DatePreset): Intl.DateTimeFormatOptions;
8
+ export declare function formatDateWithIntl(value: DateValue, format: DatePreset, locale: string, fallback?: string): string;
9
+ export declare function formatDateWithPattern(value: DateValue, format: string, locale: string, fallback?: string): string;
@@ -0,0 +1,12 @@
1
+ import { CurrencyDisplay } from '../../models/formatting';
2
+ export interface ParsedDigitsInfo {
3
+ minimumIntegerDigits?: number;
4
+ minimumFractionDigits?: number;
5
+ maximumFractionDigits?: number;
6
+ }
7
+ export declare const DIGITS_INFO_PATTERN: RegExp;
8
+ export declare function isDigitsInfo(value: string): boolean;
9
+ export declare function isCurrencyDisplay(value: string): value is CurrencyDisplay;
10
+ export declare function isIso4217CurrencyCode(value: string): boolean;
11
+ export declare function parseDigitsInfo(digitsInfo?: string): ParsedDigitsInfo;
12
+ export declare function toNumericValue(value: number | string | null | undefined): number | null;
@@ -58,31 +58,20 @@ import { AppComponent } from './app.component';
58
58
  bootstrapApplication(AppComponent, {
59
59
  providers: [
60
60
  provideLogger({
61
- enableLogging: true,
62
- logLevel: 'debug',
61
+ enableLogging: isDevMode(),
62
+ logLevel: isDevMode() ? 'debug' : 'warn',
63
63
  showTimestamp: true,
64
- isDarkMode: false,
64
+ showDate: true,
65
+ persistToIndexedDB: true,
66
+ idbRetentionDays: 7,
67
+ idbMaxLogs: 5000,
68
+ silentMode: !isDevMode(),
65
69
  }),
66
70
  ],
67
71
  });
68
72
  ```
69
73
 
70
- Or in NgModule:
71
-
72
- ```typescript
73
- import { NgModule } from '@angular/core';
74
- import { provideLogger } from '@sixbell-telco/sdk/utils/logger';
75
-
76
- @NgModule({
77
- providers: [
78
- provideLogger({
79
- enableLogging: true,
80
- logLevel: 'info',
81
- }),
82
- ],
83
- })
84
- export class AppModule {}
85
- ```
74
+ Showcase reference: `projects/showcase/src/app/app.config.ts`
86
75
 
87
76
  ## Log Levels
88
77
 
@@ -227,7 +227,7 @@ const flags = result.data.flags;
227
227
 
228
228
  - Fetch uses `cache: 'no-store'` to avoid stale responses.
229
229
  - Dexie cache is last-known-good only, not an aggressive cache.
230
- - When meta.hash is missing, a stable hash is computed from JSON.
230
+ - `meta.hash` is required. If it is missing, the loader treats the config as invalid and falls back.
231
231
 
232
232
  ## Related Utilities
233
233