@sixbell-telco/sdk 3.1.1 → 3.2.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 (143) hide show
  1. package/CHANGELOG.md +77 -1
  2. package/README.md +74 -56
  3. package/_index.css +290 -122
  4. package/components/accordion/README.md +20 -0
  5. package/components/audio-player/README.md +18 -0
  6. package/components/avatar/README.md +17 -0
  7. package/components/badge/README.md +17 -0
  8. package/components/badge/src/badge.component.d.ts +3 -3
  9. package/components/button/README.md +18 -0
  10. package/components/button/src/button.component.d.ts +2 -2
  11. package/components/card/README.md +36 -0
  12. package/components/countdown/README.md +18 -0
  13. package/components/data-table/README.md +31 -0
  14. package/components/dialog/README.md +24 -0
  15. package/components/dialog/src/dialog.component.d.ts +4 -1
  16. package/components/divider/README.md +17 -0
  17. package/components/dropdown/README.md +25 -0
  18. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +3 -2
  19. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +4 -0
  20. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +2 -0
  21. package/components/dropdown-menu/README.md +24 -0
  22. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -0
  23. package/components/dual-list/README.md +17 -0
  24. package/components/file-upload/README.md +17 -0
  25. package/components/file-upload/file-uploader/file-uploader.component.d.ts +1 -1
  26. package/components/forms/checkbox/README.md +17 -0
  27. package/components/forms/checkbox/src/checkbox.component.d.ts +2 -2
  28. package/components/forms/combobox/README.md +26 -0
  29. package/components/forms/combobox/src/combobox.component.d.ts +16 -4
  30. package/components/forms/date-picker/README.md +27 -0
  31. package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
  32. package/components/forms/form-error/README.md +21 -0
  33. package/components/forms/form-group/src/form-group.component.d.ts +27 -38
  34. package/components/forms/input/README.md +18 -0
  35. package/components/forms/input/src/input.component.d.ts +2 -2
  36. package/components/forms/radio/README.md +14 -0
  37. package/components/forms/radio/src/radio.component.d.ts +2 -2
  38. package/components/forms/range/README.md +13 -0
  39. package/components/forms/range/src/range.component.d.ts +2 -2
  40. package/components/forms/select/README.md +18 -0
  41. package/components/forms/select/src/select.component.d.ts +15 -4
  42. package/components/forms/switch/README.md +13 -0
  43. package/components/forms/switch/src/switch.component.d.ts +2 -2
  44. package/components/forms/textarea/README.md +17 -0
  45. package/components/forms/textarea/src/textarea.component.d.ts +2 -2
  46. package/components/forms/toggle/README.md +13 -0
  47. package/components/forms/toggle/src/toggle.component.d.ts +5 -36
  48. package/components/icon/README.md +18 -0
  49. package/components/link/README.md +17 -0
  50. package/components/link/src/link.component.d.ts +2 -2
  51. package/components/notification/README.md +13 -0
  52. package/components/notification/src/notification.component.d.ts +3 -3
  53. package/components/overlay/README.md +33 -0
  54. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +3 -0
  55. package/components/overlay/src/overlay.component.d.ts +34 -0
  56. package/components/paginator/README.md +17 -0
  57. package/components/product-card/README.md +13 -0
  58. package/components/progress/README.md +17 -0
  59. package/components/progress/src/progress.component.d.ts +3 -3
  60. package/components/sonner/README.md +23 -0
  61. package/components/sonner/src/sonner.component.d.ts +2 -2
  62. package/components/tab/README.md +17 -0
  63. package/components/table/README.md +20 -0
  64. package/components/table/table-action/table-action.component.d.ts +26 -3
  65. package/components/text/README.md +14 -0
  66. package/components/tooltip/README.md +29 -0
  67. package/components/tooltip/src/tooltip.component.d.ts +64 -4
  68. package/components/wizard/README.md +25 -0
  69. package/components/wizard/services/wizard.service.d.ts +1 -0
  70. package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
  71. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -0
  72. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +6 -6
  74. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -2
  78. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-button.mjs +3 -3
  80. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +6 -3
  84. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +8 -2
  86. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +22 -13
  90. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +5 -5
  92. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +4 -3
  94. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +92 -23
  96. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +29 -7
  98. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +27 -38
  100. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +5 -4
  102. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -3
  104. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +4 -3
  106. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +53 -21
  108. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +4 -3
  110. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +6 -4
  112. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +99 -153
  114. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-link.mjs +2 -1
  116. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +23 -2
  118. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +312 -23
  120. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +29 -19
  122. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -2
  124. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
  126. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-table.mjs +34 -8
  128. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +364 -8
  130. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +61 -41
  132. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +284 -145
  134. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  135. package/package.json +5 -5
  136. package/utils/runtime-config/README.md +1 -1
  137. package/utils/theme/README.md +34 -19
  138. package/utils/theme/public-api.d.ts +2 -2
  139. package/utils/theme/src/constants.d.ts +6 -6
  140. package/utils/theme/src/models/theme.d.ts +14 -6
  141. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +1 -1
  142. package/utils/theme/src/theme-dom/theme-dom.service.d.ts +6 -1
  143. package/utils/theme/src/utils/utils.d.ts +9 -3
@@ -13,7 +13,7 @@ import { DOCUMENT } from '@angular/common';
13
13
  * Default base theme - always available unless explicitly excluded
14
14
  * This is the foundational theme that comes with the SDK
15
15
  */
16
- const DEFAULT_BASE_THEME = 'sixbell_telco';
16
+ const DEFAULT_BASE_THEME = 'enghouse_networks';
17
17
  /**
18
18
  * List of default themes available out of the box
19
19
  */
@@ -40,7 +40,7 @@ const THEME_STORAGE_NAMESPACE = 'theme:';
40
40
  const THEME_ATTRIBUTE_NAME = 'data-theme';
41
41
  /**
42
42
  * Separator used when combining theme name and scheme into a theme identifier
43
- * @example "sixbell_telco__light" (theme__scheme format)
43
+ * @example "enghouse_networks__light" (theme__scheme format)
44
44
  */
45
45
  const THEME_SCHEME_SEPARATOR = '__';
46
46
  /**
@@ -49,9 +49,9 @@ const THEME_SCHEME_SEPARATOR = '__';
49
49
  const DEFAULT_SCHEME = 'system';
50
50
  /**
51
51
  * Schema version for runtime theme configuration payloads.
52
- * Bump this when the JSON structure changes in a breaking way.
52
+ * v3 uses `{ min, max }` (or a CSS range string) for variable faces and keeps numeric weights for static fonts.
53
53
  */
54
- const THEME_SCHEMA_VERSION = '2';
54
+ const THEME_SCHEMA_VERSION = '3';
55
55
  /**
56
56
  * All valid scheme values
57
57
  */
@@ -68,14 +68,20 @@ const FALLBACK_RUNTIME_THEME_CONFIG = {
68
68
  },
69
69
  fonts: [
70
70
  {
71
- family: 'Poppins',
71
+ family: 'Nunito Sans',
72
72
  faces: [
73
- { weight: 400, style: 'normal', src: '/assets/fonts/Poppins-Regular.ttf' },
74
- { weight: 500, style: 'normal', src: '/assets/fonts/Poppins-Medium.ttf' },
75
- { weight: 600, style: 'normal', src: '/assets/fonts/Poppins-SemiBold.ttf' },
76
- { weight: 700, style: 'normal', src: '/assets/fonts/Poppins-Bold.ttf' },
77
- { weight: 800, style: 'normal', src: '/assets/fonts/Poppins-ExtraBold.ttf' },
78
- { weight: 900, style: 'normal', src: '/assets/fonts/Poppins-Black.ttf' },
73
+ {
74
+ weight: { min: 200, max: 1000 },
75
+ style: 'normal',
76
+ format: 'woff2',
77
+ src: '/assets/themes/assets/fonts/nunito-sans/NunitoSans-Variable.woff2',
78
+ },
79
+ {
80
+ weight: { min: 200, max: 1000 },
81
+ style: 'italic',
82
+ format: 'woff2',
83
+ src: '/assets/themes/assets/fonts/nunito-sans/NunitoSans-Italic-Variable.woff2',
84
+ },
79
85
  ],
80
86
  },
81
87
  ],
@@ -83,64 +89,75 @@ const FALLBACK_RUNTIME_THEME_CONFIG = {
83
89
  light: {
84
90
  variables: {
85
91
  colors: {
86
- '--color-base-100': 'oklch(96.65% 0.0045 258.32)',
92
+ '--color-base-100': 'oklch(97.5% 0.003 255)',
87
93
  '--color-base-200': 'oklch(100% 0 0)',
88
- '--color-base-300': 'oklch(92.88% 0.0126 255.51)',
89
- '--color-base-content': 'oklch(13.49% 0.0024 286.07)',
90
- '--color-primary': 'oklch(65.64% 0.1155 219.3)',
94
+ '--color-base-300': 'oklch(92% 0.006 255)',
95
+ '--color-base-content': 'oklch(24% 0.018 260)',
96
+ '--color-primary': 'oklch(40.5% 0.16 261.4)',
91
97
  '--color-primary-content': 'oklch(100% 0 0)',
92
- '--color-secondary': 'oklch(86.57% 0.0064 255.48)',
93
- '--color-secondary-content': 'oklch(13.49% 0.0024 286.07)',
94
- '--color-accent': 'oklch(70.45% 0.1926 39.23)',
95
- '--color-accent-content': 'oklch(13.49% 0.0024 286.07)',
96
- '--color-neutral': 'oklch(92.08% 0.0063 255.48)',
97
- '--color-neutral-content': 'oklch(13.49% 0.0024 286.07)',
98
- '--color-info': 'oklch(55.86% 0.1907 256)',
99
- '--color-info-content': 'oklch(100% 0 0)',
100
- '--color-success': 'oklch(73.79% 0.2409 140.89)',
101
- '--color-success-content': 'oklch(36.22% 0.1147 140.02)',
102
- '--color-warning': 'oklch(85.44% 0.1839 108.37)',
103
- '--color-warning-content': 'oklch(46.41% 0.0998 109)',
104
- '--color-error': 'oklch(65.92% 0.2275 29.05)',
105
- '--color-error-content': 'oklch(25.91% 0.0904 29.25)',
106
- '--color-base-50': 'color-mix(in oklch, var(--color-base-200), #000 7%)',
107
- '--color-primary-light': 'color-mix(in oklch, var(--color-primary) 75%, #fff)',
108
- '--color-primary-gradient': 'color-mix(in oklch, var(--color-primary) 60%, #121212)',
98
+ '--color-secondary': 'oklch(45% 0.04 255)',
99
+ '--color-secondary-content': 'oklch(100% 0 0)',
100
+ '--color-accent': 'oklch(70% 0.105 226)',
101
+ '--color-accent-content': 'oklch(20% 0.015 260)',
102
+ '--color-neutral': 'oklch(90% 0.008 255)',
103
+ '--color-neutral-content': 'oklch(24% 0.018 260)',
104
+ '--color-info': 'oklch(68% 0.13 235)',
105
+ '--color-info-content': 'oklch(18% 0.01 260)',
106
+ '--color-success': 'oklch(68% 0.16 145)',
107
+ '--color-success-content': 'oklch(18% 0.01 260)',
108
+ '--color-warning': 'oklch(82% 0.15 90)',
109
+ '--color-warning-content': 'oklch(18% 0.01 260)',
110
+ '--color-error': 'oklch(55% 0.2 25)',
111
+ '--color-error-content': 'oklch(100% 0 0)',
112
+ '--color-base-50': 'color-mix(in oklch, var(--color-base-200) 97%, oklch(0% 0 0))',
113
+ '--color-primary-light': 'color-mix(in oklch, var(--color-primary) 78%, oklch(100% 0 0))',
114
+ '--color-primary-gradient': 'color-mix(in oklch, var(--color-primary) 90%, var(--color-base-content))',
109
115
  '--color-primary-gradient-content': 'oklch(100% 0 0)',
110
- '--color-secondary-gradient': 'color-mix(in oklch, var(--color-secondary) 60%, #121212)',
111
- '--color-secondary-gradient-content': 'oklch(13.49% 0.0024 286.07)',
112
- '--color-tertiary-gradient': 'color-mix(in oklch, var(--color-tertiary) 60%, #121212)',
113
- '--color-tertiary-gradient-content': 'oklch(13.49% 0.0024 286.07)',
114
- '--color-accent-gradient': 'color-mix(in oklch, var(--color-accent) 60%, #121212)',
115
- '--color-accent-gradient-content': 'oklch(100% 0 0)',
116
- '--color-tertiary': 'oklch(72.52% 0 0)',
117
- '--color-tertiary-content': 'oklch(13.49% 0.0024 286.07)',
118
- '--color-neutral-secondary': 'oklch(73.97% 0.0115 280.4)',
116
+ '--color-secondary-gradient': 'color-mix(in oklch, var(--color-secondary) 90%, var(--color-base-content))',
117
+ '--color-secondary-gradient-content': 'oklch(100% 0 0)',
118
+ '--color-tertiary-gradient': 'color-mix(in oklch, var(--color-tertiary) 90%, var(--color-base-content))',
119
+ '--color-tertiary-gradient-content': 'oklch(100% 0 0)',
120
+ '--color-accent-gradient': 'color-mix(in oklch, var(--color-accent) 90%, var(--color-base-content))',
121
+ '--color-accent-gradient-content': 'oklch(20% 0.015 260)',
122
+ '--color-tertiary': 'oklch(50% 0.012 255)',
123
+ '--color-tertiary-content': 'oklch(100% 0 0)',
124
+ '--color-neutral-secondary': 'oklch(42% 0.012 260)',
119
125
  '--color-neutral-secondary-content': 'oklch(100% 0 0)',
120
126
  '--color-neutral-tertiary': 'oklch(100% 0 0)',
121
- '--color-neutral-tertiary-content': 'oklch(73.97% 0.0115 280.4)',
122
- '--color-base-placeholder': 'oklch(51.6% 0.0073 255.51)',
123
- '--color-backdrop': 'oklch(0% 0 0/ 0.4)',
124
- '--color-shadow-primary': 'oklch(0.8975 0 0)',
125
- '--color-shadow-backdrop': 'oklch(0% 0 0/ 0.25)',
126
- '--color-metrics-increase': 'oklch(74.59% 0.1812 152.33)',
127
- '--color-metrics-decrease': 'oklch(63.07% 0.194 29.44)',
128
- '--color-metrics-neutral': 'oklch(62.99% 0.0152 202.37)',
129
- '--color-metrics-intensity-highest': 'oklch(65.64% 0.1155 219.3)',
130
- '--color-metrics-intensity-high': 'oklch(68.62% 0.0925 226.08)',
131
- '--color-metrics-intensity-medium': 'oklch(68.62% 0.0925 226.08)',
132
- '--color-metrics-intensity-low': 'oklch(76.18% 0.0656 213.66)',
133
- '--color-metrics-intensity-lowest': 'oklch(78% 0.0473 211.88)',
134
- '--color-scroll-thumb': 'oklch(75% 0 0)',
127
+ '--color-neutral-tertiary-content': 'oklch(42% 0.018 260)',
128
+ '--color-base-placeholder': 'oklch(52% 0.012 255)',
129
+ '--color-disabled': 'oklch(92% 0.006 255)',
130
+ '--color-disabled-content': 'oklch(52% 0.012 255)',
131
+ '--color-backdrop': 'oklch(0% 0 0 / 0.42)',
132
+ '--color-shadow-primary': 'oklch(20% 0.01 260 / 0.12)',
133
+ '--color-shadow-backdrop': 'oklch(0% 0 0 / 0.24)',
134
+ '--color-metrics-increase': 'oklch(68% 0.16 145)',
135
+ '--color-metrics-decrease': 'oklch(55% 0.2 25)',
136
+ '--color-metrics-neutral': 'oklch(42% 0.018 260)',
137
+ '--color-metrics-intensity-highest': 'oklch(35% 0.14 250)',
138
+ '--color-metrics-intensity-high': 'oklch(45% 0.14 250)',
139
+ '--color-metrics-intensity-medium': 'oklch(55% 0.12 245)',
140
+ '--color-metrics-intensity-low': 'oklch(66% 0.1 235)',
141
+ '--color-metrics-intensity-lowest': 'oklch(78% 0.07 225)',
142
+ '--color-scroll-thumb': 'oklch(42% 0.018 260)',
143
+ '--color-counters-input': 'oklch(55% 0.12 245)',
144
+ '--color-counters-done': 'oklch(68% 0.16 145)',
145
+ '--color-counters-busy': 'oklch(82% 0.15 90)',
146
+ '--color-counters-no-answer': 'oklch(55% 0.2 25)',
147
+ '--color-counters-congestion': 'oklch(48% 0.19 25)',
148
+ '--color-counters-inactive': 'oklch(42% 0.018 260)',
149
+ '--color-counters-schedule-control': 'oklch(70% 0.105 226)',
150
+ '--color-counters-others': 'oklch(66% 0.1 235)',
135
151
  },
136
152
  radius: {
137
- '--radius-selector': '0.5rem',
153
+ '--radius-selector': '0.25rem',
138
154
  '--radius-field': '0.25rem',
139
155
  '--radius-box': '0.5rem',
140
156
  },
141
157
  sizes: {
142
158
  '--size-selector': '0.25rem',
143
159
  '--size-field': '0.25rem',
160
+ '--size-scrollbar': '0.5rem',
144
161
  },
145
162
  effects: {
146
163
  '--border': '1px',
@@ -148,73 +165,84 @@ const FALLBACK_RUNTIME_THEME_CONFIG = {
148
165
  '--noise': '0',
149
166
  },
150
167
  others: {
151
- '--font-poppins': 'Poppins, sans-serif',
152
- '--font-heading': 'Poppins, sans-serif',
153
- '--font-body': 'Poppins, sans-serif',
168
+ '--font-nunito-sans': 'Nunito Sans, sans-serif',
169
+ '--font-heading': 'Nunito Sans, sans-serif',
170
+ '--font-body': 'Nunito Sans, sans-serif',
154
171
  },
155
172
  },
156
173
  },
157
174
  dark: {
158
175
  variables: {
159
176
  colors: {
160
- '--color-base-100': 'oklch(18.22% 0 0)',
161
- '--color-base-200': 'oklch(23.5% 0 0)',
162
- '--color-base-300': 'oklch(28.5% 0 0)',
163
- '--color-base-content': 'oklch(100% 0 0)',
164
- '--color-primary': 'oklch(65.64% 0.1155 219.3)',
165
- '--color-primary-content': 'oklch(100% 0 0)',
166
- '--color-secondary': 'oklch(48.72% 0.0161 276.78)',
167
- '--color-secondary-content': 'oklch(100% 0 0)',
168
- '--color-accent': 'oklch(70.45% 0.1926 39.23)',
169
- '--color-accent-content': 'oklch(23.5% 0 0)',
170
- '--color-neutral': 'oklch(49.26% 0 0)',
177
+ '--color-base-100': 'oklch(18.5% 0.01 260)',
178
+ '--color-base-200': 'oklch(23.5% 0.012 260)',
179
+ '--color-base-300': 'oklch(30% 0.015 260)',
180
+ '--color-base-content': 'oklch(94% 0.006 255)',
181
+ '--color-primary': 'oklch(62% 0.17 255)',
182
+ '--color-primary-content': 'oklch(15% 0.01 260)',
183
+ '--color-secondary': 'oklch(68% 0.03 255)',
184
+ '--color-secondary-content': 'oklch(18% 0.01 260)',
185
+ '--color-accent': 'oklch(73% 0.11 226)',
186
+ '--color-accent-content': 'oklch(18% 0.01 260)',
187
+ '--color-neutral': 'oklch(29% 0.012 260)',
171
188
  '--color-neutral-content': 'oklch(100% 0 0)',
172
- '--color-info': 'oklch(55.86% 0.1907 256)',
173
- '--color-info-content': 'oklch(100% 0 0)',
174
- '--color-success': 'oklch(73.79% 0.2409 140.89)',
175
- '--color-success-content': 'oklch(36.22% 0.1147 140.02)',
176
- '--color-warning': 'oklch(85.44% 0.1839 108.37)',
177
- '--color-warning-content': 'oklch(46.41% 0.0998 109)',
178
- '--color-error': 'oklch(65.92% 0.2275 29.05)',
179
- '--color-error-content': 'oklch(25.91% 0.0904 29.25)',
180
- '--color-base-50': 'color-mix(in oklch, var(--color-base-200), #000 7%)',
181
- '--color-primary-light': 'color-mix(in oklch, var(--color-primary) 75%, #000)',
182
- '--color-primary-gradient': 'color-mix(in oklch, var(--color-primary) 60%, #121212)',
189
+ '--color-info': 'oklch(72% 0.12 235)',
190
+ '--color-info-content': 'oklch(15% 0.01 260)',
191
+ '--color-success': 'oklch(74% 0.16 145)',
192
+ '--color-success-content': 'oklch(15% 0.01 260)',
193
+ '--color-warning': 'oklch(82% 0.15 90)',
194
+ '--color-warning-content': 'oklch(15% 0.01 260)',
195
+ '--color-error': 'oklch(68% 0.18 25)',
196
+ '--color-error-content': 'oklch(15% 0.01 260)',
197
+ '--color-base-50': 'color-mix(in oklch, var(--color-base-100) 96%, oklch(100% 0 0))',
198
+ '--color-primary-light': 'color-mix(in oklch, var(--color-primary) 82%, oklch(100% 0 0))',
199
+ '--color-primary-gradient': 'color-mix(in oklch, var(--color-primary) 90%, var(--color-base-content))',
183
200
  '--color-primary-gradient-content': 'oklch(100% 0 0)',
184
- '--color-secondary-gradient': 'color-mix(in oklch, var(--color-secondary) 60%, #121212)',
185
- '--color-secondary-gradient-content': 'oklch(100% 0 0)',
186
- '--color-tertiary-gradient': 'color-mix(in oklch, var(--color-tertiary) 60%, #121212)',
187
- '--color-tertiary-gradient-content': 'oklch(100% 0 0)',
188
- '--color-accent-gradient': 'color-mix(in oklch, var(--color-accent) 60%, #121212)',
189
- '--color-accent-gradient-content': 'oklch(100% 0 0)',
190
- '--color-tertiary': 'oklch(72.52% 0 0)',
191
- '--color-tertiary-content': 'oklch(13.49% 0.0024 286.07)',
192
- '--color-neutral-secondary': 'oklch(73.97% 0.0115 280.4)',
201
+ '--color-secondary-gradient': 'color-mix(in oklch, var(--color-secondary) 90%, var(--color-base-content))',
202
+ '--color-secondary-gradient-content': 'oklch(18% 0.01 260)',
203
+ '--color-tertiary-gradient': 'color-mix(in oklch, var(--color-tertiary) 90%, var(--color-base-content))',
204
+ '--color-tertiary-gradient-content': 'oklch(18% 0.01 260)',
205
+ '--color-accent-gradient': 'color-mix(in oklch, var(--color-accent) 90%, var(--color-base-content))',
206
+ '--color-accent-gradient-content': 'oklch(18% 0.01 260)',
207
+ '--color-tertiary': 'oklch(63% 0.012 255)',
208
+ '--color-tertiary-content': 'oklch(18% 0.01 260)',
209
+ '--color-neutral-secondary': 'oklch(40% 0.012 260)',
193
210
  '--color-neutral-secondary-content': 'oklch(100% 0 0)',
194
- '--color-neutral-tertiary': 'oklch(100% 0 0)',
195
- '--color-neutral-tertiary-content': 'oklch(73.97% 0.0115 280.4)',
196
- '--color-base-placeholder': 'oklch(51.6% 0.0073 255.51)',
197
- '--color-backdrop': 'oklch(0% 0 0/ 0.4)',
198
- '--color-shadow-primary': 'oklch(0 0 0)',
199
- '--color-shadow-backdrop': 'oklch(0% 0 0/ 0.25)',
200
- '--color-metrics-increase': 'oklch(74.59% 0.1812 152.33)',
201
- '--color-metrics-decrease': 'oklch(63.07% 0.194 29.44)',
202
- '--color-metrics-neutral': 'oklch(62.99% 0.0152 202.37)',
203
- '--color-metrics-intensity-highest': 'oklch(65.64% 0.1155 219.3)',
204
- '--color-metrics-intensity-high': 'oklch(68.62% 0.0925 226.08)',
205
- '--color-metrics-intensity-medium': 'oklch(68.62% 0.0925 226.08)',
206
- '--color-metrics-intensity-low': 'oklch(76.18% 0.0656 213.66)',
207
- '--color-metrics-intensity-lowest': 'oklch(78% 0.0473 211.88)',
208
- '--color-scroll-thumb': 'oklch(35% 0 0)',
211
+ '--color-neutral-tertiary': 'oklch(30% 0.015 260)',
212
+ '--color-neutral-tertiary-content': 'oklch(94% 0.006 255)',
213
+ '--color-base-placeholder': 'oklch(68% 0.012 255)',
214
+ '--color-disabled': 'oklch(30% 0.015 260)',
215
+ '--color-disabled-content': 'oklch(68% 0.012 255)',
216
+ '--color-backdrop': 'oklch(0% 0 0 / 0.62)',
217
+ '--color-shadow-primary': 'oklch(0% 0 0 / 0.38)',
218
+ '--color-shadow-backdrop': 'oklch(0% 0 0 / 0.54)',
219
+ '--color-metrics-increase': 'oklch(74% 0.16 145)',
220
+ '--color-metrics-decrease': 'oklch(68% 0.18 25)',
221
+ '--color-metrics-neutral': 'oklch(74% 0.012 255)',
222
+ '--color-metrics-intensity-highest': 'oklch(82% 0.1 225)',
223
+ '--color-metrics-intensity-high': 'oklch(73% 0.12 235)',
224
+ '--color-metrics-intensity-medium': 'oklch(64% 0.12 245)',
225
+ '--color-metrics-intensity-low': 'oklch(54% 0.1 250)',
226
+ '--color-metrics-intensity-lowest': 'oklch(44% 0.07 255)',
227
+ '--color-scroll-thumb': 'oklch(74% 0.012 255)',
228
+ '--color-counters-input': 'oklch(64% 0.12 245)',
229
+ '--color-counters-done': 'oklch(74% 0.16 145)',
230
+ '--color-counters-busy': 'oklch(82% 0.15 90)',
231
+ '--color-counters-no-answer': 'oklch(68% 0.18 25)',
232
+ '--color-counters-congestion': 'oklch(60% 0.18 25)',
233
+ '--color-counters-inactive': 'oklch(74% 0.012 255)',
234
+ '--color-counters-schedule-control': 'oklch(73% 0.11 226)',
235
+ '--color-counters-others': 'oklch(54% 0.1 250)',
209
236
  },
210
237
  radius: {
211
- '--radius-selector': '0.5rem',
238
+ '--radius-selector': '0.25rem',
212
239
  '--radius-field': '0.25rem',
213
240
  '--radius-box': '0.5rem',
214
241
  },
215
242
  sizes: {
216
243
  '--size-selector': '0.25rem',
217
244
  '--size-field': '0.25rem',
245
+ '--size-scrollbar': '0.5rem',
218
246
  },
219
247
  effects: {
220
248
  '--border': '1px',
@@ -222,9 +250,9 @@ const FALLBACK_RUNTIME_THEME_CONFIG = {
222
250
  '--noise': '0',
223
251
  },
224
252
  others: {
225
- '--font-poppins': 'Poppins, sans-serif',
226
- '--font-heading': 'Poppins, sans-serif',
227
- '--font-body': 'Poppins, sans-serif',
253
+ '--font-nunito-sans': 'Nunito Sans, sans-serif',
254
+ '--font-heading': 'Nunito Sans, sans-serif',
255
+ '--font-body': 'Nunito Sans, sans-serif',
228
256
  },
229
257
  },
230
258
  },
@@ -232,8 +260,8 @@ const FALLBACK_RUNTIME_THEME_CONFIG = {
232
260
  assets: [
233
261
  {
234
262
  name: 'logo',
235
- light: '/assets/logos/sixbell-logo-light-mode.svg',
236
- dark: '/assets/logos/sixbell-logo-dark-mode.svg',
263
+ light: '/assets/themes/assets/enghouse_networks/logo/light.svg',
264
+ dark: '/assets/themes/assets/enghouse_networks/logo/dark.svg',
237
265
  },
238
266
  ],
239
267
  };
@@ -250,6 +278,67 @@ const DARK_MODE_MEDIA_QUERY = '(prefers-color-scheme: dark)';
250
278
  * Theme Utility Functions
251
279
  * Pure, side-effect-free utilities for theme logic
252
280
  */
281
+ const THEME_VARIABLE_CATEGORIES = ['colors', 'radius', 'sizes', 'effects', 'others'];
282
+ const FONT_FACE_FORMATS = ['woff2', 'woff', 'truetype', 'opentype'];
283
+ function isRecord(value) {
284
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
285
+ }
286
+ function isStringRecord(value) {
287
+ return isRecord(value) && Object.values(value).every((entry) => typeof entry === 'string');
288
+ }
289
+ function isThemeVariables(value) {
290
+ return isRecord(value) && THEME_VARIABLE_CATEGORIES.every((category) => isStringRecord(value[category]));
291
+ }
292
+ function isFontWeight(value) {
293
+ if (typeof value === 'number') {
294
+ return Number.isFinite(value);
295
+ }
296
+ if (typeof value === 'string') {
297
+ return value.trim().length > 0;
298
+ }
299
+ if (!isRecord(value))
300
+ return false;
301
+ const min = value['min'];
302
+ const max = value['max'];
303
+ return typeof min === 'number' && Number.isFinite(min) && typeof max === 'number' && Number.isFinite(max) && min <= max;
304
+ }
305
+ function isFontFace(value) {
306
+ if (!isRecord(value))
307
+ return false;
308
+ const weight = value['weight'];
309
+ const style = value['style'];
310
+ const src = value['src'];
311
+ const format = value['format'];
312
+ if (!isFontWeight(weight) || (style !== 'normal' && style !== 'italic') || typeof src !== 'string' || src.trim().length === 0) {
313
+ return false;
314
+ }
315
+ return format === undefined || (typeof format === 'string' && FONT_FACE_FORMATS.includes(format));
316
+ }
317
+ function isFontDefinition(value) {
318
+ if (!isRecord(value))
319
+ return false;
320
+ const family = value['family'];
321
+ const faces = value['faces'];
322
+ return typeof family === 'string' && family.trim().length > 0 && Array.isArray(faces) && faces.every(isFontFace);
323
+ }
324
+ function isThemeVariant(value) {
325
+ if (!isRecord(value))
326
+ return false;
327
+ const prefersDark = value['prefersDark'];
328
+ const variables = value['variables'];
329
+ return (prefersDark === undefined || typeof prefersDark === 'boolean') && isRecord(variables) && isThemeVariables(variables);
330
+ }
331
+ function isThemeAsset(value) {
332
+ if (!isRecord(value))
333
+ return false;
334
+ const name = value['name'];
335
+ const light = value['light'];
336
+ const dark = value['dark'];
337
+ if (typeof name !== 'string' || name.trim().length === 0) {
338
+ return false;
339
+ }
340
+ return (light === undefined || typeof light === 'string') && (dark === undefined || typeof dark === 'string');
341
+ }
253
342
  /**
254
343
  * Validates that a given value is a valid theme scheme
255
344
  * @param value - The value to validate
@@ -262,14 +351,51 @@ function isValidScheme(value) {
262
351
  * Builds the final theme identifier by combining theme name and scheme
263
352
  * @param themeName - The name of the theme
264
353
  * @param scheme - The scheme variant (light or dark)
265
- * @returns Combined identifier (e.g., "sixbell_telco__light")
354
+ * @returns Combined identifier (e.g., "enghouse_networks__light")
266
355
  */
267
356
  function buildThemeIdentifier(themeName, scheme) {
268
357
  return `${themeName}__${scheme}`;
269
358
  }
359
+ /**
360
+ * Checks the runtime shape required by the schema-v3 DOM and font loaders.
361
+ * This is intentionally structural so custom themes can use their own tokens and fonts.
362
+ */
363
+ function validateRuntimeThemeConfig(config) {
364
+ if (!isRecord(config)) {
365
+ return false;
366
+ }
367
+ const meta = config['meta'];
368
+ if (!isRecord(meta))
369
+ return false;
370
+ if (typeof meta['name'] !== 'string' ||
371
+ meta['name'].trim().length === 0 ||
372
+ typeof meta['hash'] !== 'string' ||
373
+ meta['hash'].trim().length === 0 ||
374
+ meta['schemaVersion'] !== THEME_SCHEMA_VERSION ||
375
+ (meta['updatedAt'] !== undefined && typeof meta['updatedAt'] !== 'string')) {
376
+ return false;
377
+ }
378
+ const fonts = config['fonts'];
379
+ const themes = config['themes'];
380
+ if (!Array.isArray(fonts) ||
381
+ !fonts.every(isFontDefinition) ||
382
+ !isRecord(themes) ||
383
+ !isThemeVariant(themes['light']) ||
384
+ !isThemeVariant(themes['dark'])) {
385
+ return false;
386
+ }
387
+ const assets = config['assets'];
388
+ return Array.isArray(assets) && assets.every(isThemeAsset);
389
+ }
390
+ function applySchemePreferences(variants) {
391
+ return {
392
+ light: { ...variants.light, prefersDark: false },
393
+ dark: { ...variants.dark, prefersDark: true },
394
+ };
395
+ }
270
396
  /**
271
397
  * Extracts theme name and scheme from a combined identifier
272
- * @param identifier - The combined identifier (e.g., "sixbell_telco__light")
398
+ * @param identifier - The combined identifier (e.g., "enghouse_networks__light")
273
399
  * @returns Object with extracted themeName and scheme
274
400
  */
275
401
  function parseThemeIdentifier(identifier) {
@@ -678,7 +804,7 @@ class ThemeAssetsService {
678
804
  * - No automatic scheme switching (stays on requested scheme)
679
805
  * - Similar to ThemeService's config persistence pattern
680
806
  *
681
- * @param themeName - Name of the theme (e.g., 'sixbell_telco', 'wom')
807
+ * @param themeName - Name of the theme (e.g., 'enghouse_networks', 'wom')
682
808
  * @param assetKey - Asset identifier path (e.g., 'logo', 'banners.hero', 'illustrations.empty')
683
809
  * @param scheme - Color scheme ('light' or 'dark')
684
810
  * @returns Asset URL for the specified scheme, or from last working config, or null if not found
@@ -1015,11 +1141,29 @@ class ThemeDomService {
1015
1141
  /**
1016
1142
  * Sets the active theme on the document body
1017
1143
  * Uses data-theme attribute for CSS theme targeting
1018
- * @param themeIdentifier - Theme identifier (e.g., "sixbell_telco__light")
1144
+ * @param themeIdentifier - Theme identifier (e.g., "enghouse_networks__light")
1019
1145
  */
1020
1146
  setActiveTheme(themeIdentifier) {
1021
1147
  this.renderer.setAttribute(this.document.body, THEME_ATTRIBUTE_NAME, themeIdentifier);
1022
1148
  }
1149
+ /** Nearest `data-theme` value for a trigger or other in-scope origin. */
1150
+ themeOf(source) {
1151
+ return source?.closest(`[${THEME_ATTRIBUTE_NAME}]`)?.getAttribute(THEME_ATTRIBUTE_NAME) ?? null;
1152
+ }
1153
+ /** Copies the nearest theme onto overlay content. Never put `data-theme` on a CDK pane or backdrop. */
1154
+ inheritTheme(source, ...targets) {
1155
+ const themeIdentifier = this.themeOf(source);
1156
+ for (const target of targets) {
1157
+ if (!target)
1158
+ continue;
1159
+ if (themeIdentifier) {
1160
+ this.renderer.setAttribute(target, THEME_ATTRIBUTE_NAME, themeIdentifier);
1161
+ }
1162
+ else {
1163
+ this.renderer.removeAttribute(target, THEME_ATTRIBUTE_NAME);
1164
+ }
1165
+ }
1166
+ }
1023
1167
  /**
1024
1168
  * Builds @font-face CSS rules from font definitions
1025
1169
  * Private helper to construct font-face declarations
@@ -1046,12 +1190,20 @@ class ThemeDomService {
1046
1190
  * @param face - Font face definition
1047
1191
  * @returns @font-face CSS rule
1048
1192
  */
1193
+ cssFontWeight(weight) {
1194
+ if (typeof weight === 'object' && weight !== null && 'min' in weight && 'max' in weight) {
1195
+ return `${weight.min} ${weight.max}`;
1196
+ }
1197
+ return String(weight);
1198
+ }
1049
1199
  buildFontFaceRule(fontFamily, face) {
1200
+ const formatHint = face.format ? ` format('${face.format}')` : '';
1050
1201
  return `@font-face {
1051
1202
  font-family: '${fontFamily}';
1052
- font-weight: ${face.weight};
1203
+ font-weight: ${this.cssFontWeight(face.weight)};
1053
1204
  font-style: ${face.style};
1054
- src: url('${face.src}');
1205
+ font-display: swap;
1206
+ src: url('${face.src}')${formatHint};
1055
1207
  }`;
1056
1208
  }
1057
1209
  /**
@@ -1266,6 +1418,14 @@ class ThemeService {
1266
1418
  });
1267
1419
  return;
1268
1420
  }
1421
+ if (!validateRuntimeThemeConfig(config)) {
1422
+ this.logger.error('Invalid runtime theme config - malformed schema-v3 payload', undefined, {
1423
+ component: 'ThemeService',
1424
+ action: 'configureRuntime',
1425
+ theme: themeName,
1426
+ });
1427
+ return;
1428
+ }
1269
1429
  if (config.fonts && config.fonts.length > 0) {
1270
1430
  this.domService.injectFonts(config.fonts);
1271
1431
  if (options?.blocking) {
@@ -1368,24 +1528,9 @@ class ThemeService {
1368
1528
  });
1369
1529
  this.selectedTheme.set(savedTheme);
1370
1530
  }
1371
- else if (this.isUsingFallbackConfig) {
1372
- // Using fallback config (JSON failed): restore saved theme anyway
1373
- // This preserves user preference when using cached data
1374
- this.logger.debug('Using fallback config - restoring saved theme anyway', {
1375
- component: 'ThemeService',
1376
- action: 'initializeFromStorage',
1377
- savedTheme,
1378
- });
1379
- this.selectedTheme.set(savedTheme);
1380
- // Add saved theme to available list if missing
1381
- if (!this.config.availableThemes.includes(savedTheme)) {
1382
- this.config.availableThemes.push(savedTheme);
1383
- }
1384
- }
1385
1531
  else {
1386
- // Using valid config but theme is missing: reset to defaultTheme
1387
- // This handles the case where theme was removed/renamed in config
1388
- this.logger.debug('Valid config but saved theme missing - using defaultTheme', {
1532
+ // A removed or unavailable persisted theme must never be reintroduced.
1533
+ this.logger.debug('Saved theme missing - using defaultTheme', {
1389
1534
  component: 'ThemeService',
1390
1535
  action: 'initializeFromStorage',
1391
1536
  savedTheme,
@@ -1629,6 +1774,9 @@ function provideRuntimeTheme(configPath, options) {
1629
1774
  if (!result.data.meta?.updatedAt) {
1630
1775
  throw new Error(`Theme meta.updatedAt missing for ${themePath}`);
1631
1776
  }
1777
+ if (!validateRuntimeThemeConfig(result.data)) {
1778
+ throw new Error(`Theme schema-v3 payload malformed for ${themePath}`);
1779
+ }
1632
1780
  return result.data;
1633
1781
  };
1634
1782
  const applyThemeConfig = async (config, blocking) => {
@@ -1638,16 +1786,7 @@ function provideRuntimeTheme(configPath, options) {
1638
1786
  }
1639
1787
  const normalizedConfig = {
1640
1788
  ...config,
1641
- themes: {
1642
- light: {
1643
- ...config.themes.light,
1644
- prefersDark: false,
1645
- },
1646
- dark: {
1647
- ...config.themes.dark,
1648
- prefersDark: true,
1649
- },
1650
- },
1789
+ themes: applySchemePreferences(config.themes),
1651
1790
  };
1652
1791
  await themeService.configureRuntime(normalizedConfig, themeName, { blocking });
1653
1792
  };
@@ -1877,5 +2016,5 @@ function provideRuntimeTheme(configPath, options) {
1877
2016
  * Generated bundle index. Do not edit.
1878
2017
  */
1879
2018
 
1880
- export { DEFAULT_BASE_THEME, DEFAULT_SCHEME, FALLBACK_RUNTIME_THEME_CONFIG, THEME_SCHEMA_VERSION, ThemeAssetsService, ThemeDomService, ThemeSchemeService, ThemeService, ThemeStorageService, VALID_SCHEMES, buildThemeIdentifier, formatSchemeName, formatThemeName, hasLocalStorage, isThemeAvailable, isValidScheme, parseThemeIdentifier, provideRuntimeTheme, resolveDefaultTheme, supportsMediaQuery, validateThemeConfig };
2019
+ export { DEFAULT_BASE_THEME, DEFAULT_SCHEME, FALLBACK_RUNTIME_THEME_CONFIG, THEME_SCHEMA_VERSION, ThemeAssetsService, ThemeDomService, ThemeSchemeService, ThemeService, ThemeStorageService, VALID_SCHEMES, applySchemePreferences, buildThemeIdentifier, formatSchemeName, formatThemeName, hasLocalStorage, isThemeAvailable, isValidScheme, parseThemeIdentifier, provideRuntimeTheme, resolveDefaultTheme, supportsMediaQuery, validateThemeConfig };
1881
2020
  //# sourceMappingURL=sixbell-telco-sdk-utils-theme.mjs.map