@refinitiv-ui/elements 6.5.2 → 6.6.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 (297) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/lib/accordion/index.js +1 -3
  3. package/lib/appstate-bar/custom-elements.json +2 -2
  4. package/lib/appstate-bar/custom-elements.md +4 -4
  5. package/lib/appstate-bar/index.d.ts +2 -2
  6. package/lib/appstate-bar/index.js +3 -11
  7. package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
  8. package/lib/appstate-bar/themes/halo/light/index.js +1 -1
  9. package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
  10. package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
  11. package/lib/autosuggest/custom-elements.json +8 -8
  12. package/lib/autosuggest/custom-elements.md +8 -8
  13. package/lib/autosuggest/helpers/types.d.ts +18 -18
  14. package/lib/autosuggest/index.d.ts +8 -8
  15. package/lib/autosuggest/index.js +79 -81
  16. package/lib/button/custom-elements.json +1 -1
  17. package/lib/button/custom-elements.md +1 -1
  18. package/lib/button/index.d.ts +1 -1
  19. package/lib/button/index.js +2 -4
  20. package/lib/button/themes/halo/dark/index.js +1 -1
  21. package/lib/button/themes/halo/light/index.js +1 -1
  22. package/lib/button/themes/solar/charcoal/index.js +1 -1
  23. package/lib/button/themes/solar/pearl/index.js +1 -1
  24. package/lib/button-bar/index.js +1 -3
  25. package/lib/calendar/custom-elements.json +2 -2
  26. package/lib/calendar/custom-elements.md +4 -4
  27. package/lib/calendar/index.d.ts +2 -2
  28. package/lib/calendar/index.js +3 -5
  29. package/lib/calendar/themes/halo/dark/index.js +1 -1
  30. package/lib/calendar/themes/halo/light/index.js +1 -1
  31. package/lib/calendar/themes/solar/charcoal/index.js +1 -1
  32. package/lib/calendar/themes/solar/pearl/index.js +1 -1
  33. package/lib/calendar/types.d.ts +5 -5
  34. package/lib/calendar/utils.d.ts +1 -1
  35. package/lib/canvas/custom-elements.json +1 -1
  36. package/lib/canvas/custom-elements.md +1 -1
  37. package/lib/canvas/index.d.ts +1 -1
  38. package/lib/canvas/index.js +9 -11
  39. package/lib/card/custom-elements.json +1 -1
  40. package/lib/card/custom-elements.md +3 -3
  41. package/lib/card/helpers/types.d.ts +1 -1
  42. package/lib/card/index.d.ts +1 -1
  43. package/lib/card/index.js +2 -4
  44. package/lib/chart/custom-elements.json +4 -0
  45. package/lib/chart/custom-elements.md +1 -0
  46. package/lib/chart/helpers/merge.d.ts +2 -2
  47. package/lib/chart/helpers/types.d.ts +4 -4
  48. package/lib/chart/index.d.ts +1 -1
  49. package/lib/chart/index.js +1 -3
  50. package/lib/chart/themes/halo/dark/index.js +1 -1
  51. package/lib/chart/themes/halo/light/index.js +1 -1
  52. package/lib/chart/themes/solar/charcoal/index.js +1 -1
  53. package/lib/chart/themes/solar/pearl/index.js +1 -1
  54. package/lib/checkbox/custom-elements.json +1 -1
  55. package/lib/checkbox/custom-elements.md +3 -3
  56. package/lib/checkbox/index.d.ts +1 -1
  57. package/lib/checkbox/index.js +2 -4
  58. package/lib/clock/custom-elements.json +2 -2
  59. package/lib/clock/custom-elements.md +2 -2
  60. package/lib/clock/index.d.ts +2 -2
  61. package/lib/clock/index.js +3 -5
  62. package/lib/clock/utils/TickManager.d.ts +1 -1
  63. package/lib/collapse/custom-elements.json +1 -1
  64. package/lib/collapse/custom-elements.md +3 -3
  65. package/lib/collapse/index.d.ts +1 -1
  66. package/lib/collapse/index.js +2 -4
  67. package/lib/color-dialog/custom-elements.json +2 -2
  68. package/lib/color-dialog/custom-elements.md +4 -4
  69. package/lib/color-dialog/helpers/value-model.js +3 -1
  70. package/lib/color-dialog/index.d.ts +2 -2
  71. package/lib/color-dialog/index.js +3 -5
  72. package/lib/color-picker/custom-elements.json +1 -1
  73. package/lib/color-picker/custom-elements.md +3 -3
  74. package/lib/color-picker/index.d.ts +1 -1
  75. package/lib/color-picker/index.js +2 -4
  76. package/lib/combo-box/custom-elements.json +3 -6
  77. package/lib/combo-box/custom-elements.md +5 -6
  78. package/lib/combo-box/helpers/types.d.ts +2 -2
  79. package/lib/combo-box/index.d.ts +3 -12
  80. package/lib/combo-box/index.js +7 -20
  81. package/lib/combo-box/themes/halo/dark/index.js +1 -1
  82. package/lib/combo-box/themes/halo/light/index.js +1 -1
  83. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  84. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  85. package/lib/counter/index.js +1 -3
  86. package/lib/counter/themes/halo/dark/index.js +1 -1
  87. package/lib/counter/themes/halo/light/index.js +1 -1
  88. package/lib/counter/themes/solar/charcoal/index.js +1 -1
  89. package/lib/counter/themes/solar/pearl/index.js +1 -1
  90. package/lib/datetime-field/types.d.ts +3 -3
  91. package/lib/datetime-picker/custom-elements.json +4 -4
  92. package/lib/datetime-picker/custom-elements.md +4 -4
  93. package/lib/datetime-picker/index.d.ts +4 -4
  94. package/lib/datetime-picker/index.js +5 -7
  95. package/lib/datetime-picker/themes/halo/dark/index.js +1 -1
  96. package/lib/datetime-picker/themes/halo/light/index.js +1 -1
  97. package/lib/datetime-picker/themes/solar/charcoal/index.js +1 -1
  98. package/lib/datetime-picker/themes/solar/pearl/index.js +1 -1
  99. package/lib/datetime-picker/types.d.ts +1 -1
  100. package/lib/dialog/custom-elements.json +1 -1
  101. package/lib/dialog/custom-elements.md +1 -1
  102. package/lib/dialog/index.d.ts +1 -1
  103. package/lib/dialog/index.js +2 -4
  104. package/lib/email-field/custom-elements.json +3 -3
  105. package/lib/email-field/custom-elements.md +5 -5
  106. package/lib/email-field/index.d.ts +3 -3
  107. package/lib/email-field/index.js +4 -6
  108. package/lib/email-field/themes/halo/dark/index.js +1 -1
  109. package/lib/email-field/themes/halo/light/index.js +1 -1
  110. package/lib/email-field/themes/solar/charcoal/index.js +1 -1
  111. package/lib/email-field/themes/solar/pearl/index.js +1 -1
  112. package/lib/events.d.ts +13 -13
  113. package/lib/flag/index.js +1 -3
  114. package/lib/header/index.js +1 -3
  115. package/lib/header/themes/halo/dark/index.js +1 -1
  116. package/lib/header/themes/halo/light/index.js +1 -1
  117. package/lib/header/themes/solar/charcoal/index.js +1 -1
  118. package/lib/header/themes/solar/pearl/index.js +1 -1
  119. package/lib/heatmap/helpers/types.d.ts +7 -7
  120. package/lib/heatmap/index.js +118 -120
  121. package/lib/icon/index.js +1 -3
  122. package/lib/interactive-chart/custom-elements.json +1 -1
  123. package/lib/interactive-chart/custom-elements.md +3 -3
  124. package/lib/interactive-chart/helpers/merge.d.ts +2 -2
  125. package/lib/interactive-chart/helpers/types.d.ts +7 -7
  126. package/lib/interactive-chart/index.d.ts +1 -1
  127. package/lib/interactive-chart/index.js +2 -4
  128. package/lib/item/custom-elements.json +4 -4
  129. package/lib/item/custom-elements.md +2 -2
  130. package/lib/item/helpers/types.d.ts +2 -2
  131. package/lib/item/index.d.ts +2 -1
  132. package/lib/item/index.js +3 -4
  133. package/lib/label/index.js +1 -3
  134. package/lib/layout/index.js +1 -3
  135. package/lib/led-gauge/index.js +8 -10
  136. package/lib/list/custom-elements.json +1 -1
  137. package/lib/list/custom-elements.md +3 -3
  138. package/lib/list/elements/list.d.ts +1 -1
  139. package/lib/list/elements/list.js +2 -4
  140. package/lib/list/helpers/types.d.ts +1 -1
  141. package/lib/loader/index.js +1 -3
  142. package/lib/multi-input/custom-elements.json +5 -5
  143. package/lib/multi-input/custom-elements.md +5 -5
  144. package/lib/multi-input/helpers/types.d.ts +3 -3
  145. package/lib/multi-input/index.d.ts +5 -17
  146. package/lib/multi-input/index.js +6 -20
  147. package/lib/multi-input/themes/halo/dark/index.js +1 -1
  148. package/lib/multi-input/themes/halo/light/index.js +1 -1
  149. package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
  150. package/lib/multi-input/themes/solar/pearl/index.js +1 -1
  151. package/lib/notification/custom-elements.json +2 -2
  152. package/lib/notification/custom-elements.md +4 -4
  153. package/lib/notification/elements/notification-tray.js +1 -3
  154. package/lib/notification/elements/notification.d.ts +2 -2
  155. package/lib/notification/elements/notification.js +3 -5
  156. package/lib/notification/helpers/types.d.ts +2 -2
  157. package/lib/number-field/custom-elements.json +2 -2
  158. package/lib/number-field/custom-elements.md +4 -4
  159. package/lib/number-field/index.d.ts +3 -3
  160. package/lib/number-field/index.js +4 -6
  161. package/lib/number-field/themes/halo/dark/index.js +1 -1
  162. package/lib/number-field/themes/halo/light/index.js +1 -1
  163. package/lib/number-field/themes/solar/charcoal/index.js +1 -1
  164. package/lib/number-field/themes/solar/pearl/index.js +1 -1
  165. package/lib/overlay/custom-elements.json +6 -9
  166. package/lib/overlay/custom-elements.md +7 -8
  167. package/lib/overlay/elements/overlay.d.ts +7 -7
  168. package/lib/overlay/elements/overlay.js +10 -19
  169. package/lib/overlay/helpers/types.d.ts +13 -13
  170. package/lib/overlay/managers/close-manager.d.ts +1 -1
  171. package/lib/overlay/managers/zindex-manager.d.ts +1 -1
  172. package/lib/overlay-menu/custom-elements.json +2 -2
  173. package/lib/overlay-menu/custom-elements.md +2 -2
  174. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  175. package/lib/overlay-menu/index.d.ts +2 -2
  176. package/lib/overlay-menu/index.js +30 -32
  177. package/lib/pagination/custom-elements.json +1 -1
  178. package/lib/pagination/custom-elements.md +3 -3
  179. package/lib/pagination/index.d.ts +1 -1
  180. package/lib/pagination/index.js +2 -4
  181. package/lib/pagination/themes/halo/dark/index.js +1 -1
  182. package/lib/pagination/themes/halo/light/index.js +1 -1
  183. package/lib/pagination/themes/solar/charcoal/index.js +1 -1
  184. package/lib/pagination/themes/solar/pearl/index.js +1 -1
  185. package/lib/panel/index.js +1 -3
  186. package/lib/password-field/custom-elements.json +2 -6
  187. package/lib/password-field/custom-elements.md +4 -5
  188. package/lib/password-field/index.d.ts +2 -3
  189. package/lib/password-field/index.js +3 -6
  190. package/lib/password-field/themes/halo/dark/index.js +1 -1
  191. package/lib/password-field/themes/halo/light/index.js +1 -1
  192. package/lib/password-field/themes/solar/charcoal/index.js +1 -1
  193. package/lib/password-field/themes/solar/pearl/index.js +1 -1
  194. package/lib/pill/custom-elements.json +1 -1
  195. package/lib/pill/custom-elements.md +3 -3
  196. package/lib/pill/index.d.ts +1 -1
  197. package/lib/pill/index.js +2 -4
  198. package/lib/pill/themes/halo/dark/index.js +1 -1
  199. package/lib/pill/themes/halo/light/index.js +1 -1
  200. package/lib/pill/themes/solar/charcoal/index.js +1 -1
  201. package/lib/pill/themes/solar/pearl/index.js +1 -1
  202. package/lib/progress-bar/index.js +1 -3
  203. package/lib/radio-button/custom-elements.json +1 -1
  204. package/lib/radio-button/custom-elements.md +3 -3
  205. package/lib/radio-button/index.d.ts +1 -1
  206. package/lib/radio-button/index.js +2 -4
  207. package/lib/rating/custom-elements.json +1 -1
  208. package/lib/rating/custom-elements.md +3 -3
  209. package/lib/rating/index.d.ts +1 -1
  210. package/lib/rating/index.js +2 -4
  211. package/lib/search-field/custom-elements.json +3 -3
  212. package/lib/search-field/custom-elements.md +5 -5
  213. package/lib/search-field/index.d.ts +3 -3
  214. package/lib/search-field/index.js +4 -6
  215. package/lib/search-field/themes/halo/dark/index.js +1 -1
  216. package/lib/search-field/themes/halo/light/index.js +1 -1
  217. package/lib/search-field/themes/solar/charcoal/index.js +1 -1
  218. package/lib/search-field/themes/solar/pearl/index.js +1 -1
  219. package/lib/select/custom-elements.json +2 -2
  220. package/lib/select/custom-elements.md +4 -4
  221. package/lib/select/helpers/types.d.ts +2 -2
  222. package/lib/select/index.d.ts +2 -2
  223. package/lib/select/index.js +3 -5
  224. package/lib/select/themes/halo/dark/index.js +1 -1
  225. package/lib/select/themes/halo/light/index.js +1 -1
  226. package/lib/select/themes/solar/charcoal/index.js +1 -1
  227. package/lib/select/themes/solar/pearl/index.js +1 -1
  228. package/lib/sidebar-layout/index.js +1 -3
  229. package/lib/slider/custom-elements.json +3 -3
  230. package/lib/slider/custom-elements.md +5 -5
  231. package/lib/slider/index.d.ts +3 -3
  232. package/lib/slider/index.js +100 -102
  233. package/lib/sparkline/index.js +1 -3
  234. package/lib/swing-gauge/index.js +1 -3
  235. package/lib/swing-gauge/types.d.ts +1 -1
  236. package/lib/tab/custom-elements.json +1 -1
  237. package/lib/tab/custom-elements.md +3 -3
  238. package/lib/tab/index.d.ts +1 -1
  239. package/lib/tab/index.js +2 -4
  240. package/lib/tab/themes/halo/dark/index.js +1 -1
  241. package/lib/tab/themes/halo/light/index.js +1 -1
  242. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  243. package/lib/tab/themes/solar/pearl/index.js +1 -1
  244. package/lib/tab-bar/custom-elements.json +1 -1
  245. package/lib/tab-bar/custom-elements.md +3 -3
  246. package/lib/tab-bar/index.d.ts +1 -1
  247. package/lib/tab-bar/index.js +2 -4
  248. package/lib/text-field/custom-elements.json +3 -3
  249. package/lib/text-field/custom-elements.md +5 -5
  250. package/lib/text-field/index.d.ts +3 -3
  251. package/lib/text-field/index.js +4 -6
  252. package/lib/text-field/themes/halo/dark/index.js +1 -1
  253. package/lib/text-field/themes/halo/light/index.js +1 -1
  254. package/lib/text-field/themes/solar/charcoal/index.js +1 -1
  255. package/lib/text-field/themes/solar/pearl/index.js +1 -1
  256. package/lib/time-picker/custom-elements.json +1 -1
  257. package/lib/time-picker/custom-elements.md +3 -3
  258. package/lib/time-picker/index.d.ts +1 -1
  259. package/lib/time-picker/index.js +2 -4
  260. package/lib/time-picker/themes/halo/dark/index.js +1 -1
  261. package/lib/time-picker/themes/halo/light/index.js +1 -1
  262. package/lib/time-picker/themes/solar/charcoal/index.js +1 -1
  263. package/lib/time-picker/themes/solar/pearl/index.js +1 -1
  264. package/lib/toggle/custom-elements.json +1 -1
  265. package/lib/toggle/custom-elements.md +3 -3
  266. package/lib/toggle/index.d.ts +1 -1
  267. package/lib/toggle/index.js +2 -4
  268. package/lib/toggle/themes/halo/dark/index.js +1 -1
  269. package/lib/toggle/themes/halo/light/index.js +1 -1
  270. package/lib/toggle/themes/solar/charcoal/index.js +1 -1
  271. package/lib/toggle/themes/solar/pearl/index.js +1 -1
  272. package/lib/tooltip/helpers/types.d.ts +10 -10
  273. package/lib/tooltip/index.js +1 -3
  274. package/lib/tornado-chart/elements/tornado-chart.js +1 -3
  275. package/lib/tornado-chart/themes/halo/dark/index.js +1 -1
  276. package/lib/tornado-chart/themes/halo/light/index.js +1 -1
  277. package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
  278. package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
  279. package/lib/tree/custom-elements.json +2 -2
  280. package/lib/tree/custom-elements.md +2 -2
  281. package/lib/tree/elements/tree-item.js +1 -3
  282. package/lib/tree/elements/tree.d.ts +2 -2
  283. package/lib/tree/elements/tree.js +2 -2
  284. package/lib/tree/helpers/types.d.ts +2 -2
  285. package/lib/tree/index.d.ts +1 -0
  286. package/lib/tree/index.js +1 -0
  287. package/lib/tree-select/custom-elements.json +7 -7
  288. package/lib/tree-select/custom-elements.md +7 -7
  289. package/lib/tree-select/helpers/types.d.ts +2 -2
  290. package/lib/tree-select/index.d.ts +5 -5
  291. package/lib/tree-select/index.js +15 -17
  292. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  293. package/lib/tree-select/themes/halo/light/index.js +1 -1
  294. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  295. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  296. package/lib/version.js +1 -1
  297. package/package.json +13 -9
package/lib/events.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { TapEvent, ResizeEvent, FocusedChangedEvent } from '@refinitiv-ui/c
3
3
  * Dispatched when `opened` state changes
4
4
  * Prevent default to stop opening/closing pipeline
5
5
  */
6
- declare type OpenedChangedEvent = CustomEvent<{
6
+ type OpenedChangedEvent = CustomEvent<{
7
7
  /**
8
8
  * `opened` value
9
9
  */
@@ -12,7 +12,7 @@ declare type OpenedChangedEvent = CustomEvent<{
12
12
  /**
13
13
  * Dispatched when `value` changes
14
14
  */
15
- declare type ValueChangedEvent = CustomEvent<{
15
+ type ValueChangedEvent = CustomEvent<{
16
16
  /**
17
17
  * new `value`
18
18
  */
@@ -21,7 +21,7 @@ declare type ValueChangedEvent = CustomEvent<{
21
21
  /**
22
22
  * Dispatched when `error` state changes
23
23
  */
24
- declare type ErrorChangedEvent = CustomEvent<{
24
+ type ErrorChangedEvent = CustomEvent<{
25
25
  /**
26
26
  * `error` value
27
27
  */
@@ -30,7 +30,7 @@ declare type ErrorChangedEvent = CustomEvent<{
30
30
  /**
31
31
  * Dispatched when `active` state changes
32
32
  */
33
- declare type ActiveChangedEvent = CustomEvent<{
33
+ type ActiveChangedEvent = CustomEvent<{
34
34
  /**
35
35
  * `active` value
36
36
  */
@@ -39,7 +39,7 @@ declare type ActiveChangedEvent = CustomEvent<{
39
39
  /**
40
40
  * Dispatched when `query` state changes
41
41
  */
42
- declare type QueryChangedEvent = CustomEvent<{
42
+ type QueryChangedEvent = CustomEvent<{
43
43
  /**
44
44
  * `query` value
45
45
  */
@@ -48,7 +48,7 @@ declare type QueryChangedEvent = CustomEvent<{
48
48
  /**
49
49
  * Dispatched when `view` state changes
50
50
  */
51
- declare type ViewChangedEvent = CustomEvent<{
51
+ type ViewChangedEvent = CustomEvent<{
52
52
  /**
53
53
  * `view` value
54
54
  */
@@ -57,7 +57,7 @@ declare type ViewChangedEvent = CustomEvent<{
57
57
  /**
58
58
  * Dispatched when `page` state changes
59
59
  */
60
- declare type PageChangedEvent = CustomEvent<{
60
+ type PageChangedEvent = CustomEvent<{
61
61
  /**
62
62
  * `page` value
63
63
  */
@@ -66,7 +66,7 @@ declare type PageChangedEvent = CustomEvent<{
66
66
  /**
67
67
  * Dispatched when `from` state changes
68
68
  */
69
- declare type FromChangedEvent = CustomEvent<{
69
+ type FromChangedEvent = CustomEvent<{
70
70
  /**
71
71
  * `from` value
72
72
  */
@@ -75,7 +75,7 @@ declare type FromChangedEvent = CustomEvent<{
75
75
  /**
76
76
  * Dispatched when `to` state changes
77
77
  */
78
- declare type ToChangedEvent = CustomEvent<{
78
+ type ToChangedEvent = CustomEvent<{
79
79
  /**
80
80
  * `to` value
81
81
  */
@@ -84,7 +84,7 @@ declare type ToChangedEvent = CustomEvent<{
84
84
  /**
85
85
  * Dispatched when `checked` state changes
86
86
  */
87
- declare type CheckChangedEvent = CustomEvent<{
87
+ type CheckChangedEvent = CustomEvent<{
88
88
  /**
89
89
  * `checked` value
90
90
  */
@@ -93,7 +93,7 @@ declare type CheckChangedEvent = CustomEvent<{
93
93
  /**
94
94
  * Dispatched when `offset` state changes
95
95
  */
96
- declare type OffsetChangedEvent = CustomEvent<{
96
+ type OffsetChangedEvent = CustomEvent<{
97
97
  /**
98
98
  * `offset` value
99
99
  */
@@ -103,7 +103,7 @@ declare type OffsetChangedEvent = CustomEvent<{
103
103
  * Dispatched when `expanded` state changes
104
104
  * Prevent default to stop expand/collapse pipeline
105
105
  */
106
- declare type ExpandedChangedEvent = CustomEvent<{
106
+ type ExpandedChangedEvent = CustomEvent<{
107
107
  /**
108
108
  * `expanded` value
109
109
  */
@@ -112,7 +112,7 @@ declare type ExpandedChangedEvent = CustomEvent<{
112
112
  /**
113
113
  * Dispatched when the user clicks on internal `item`
114
114
  */
115
- declare type ItemTriggerEvent = CustomEvent<{
115
+ type ItemTriggerEvent = CustomEvent<{
116
116
  /**
117
117
  * `item` value
118
118
  */
package/lib/flag/index.js CHANGED
@@ -161,8 +161,6 @@ __decorate([
161
161
  property({ type: String })
162
162
  ], Flag.prototype, "src", null);
163
163
  Flag = __decorate([
164
- customElement('ef-flag', {
165
- alias: 'coral-flag'
166
- })
164
+ customElement('ef-flag')
167
165
  ], Flag);
168
166
  export { Flag };
@@ -66,8 +66,6 @@ __decorate([
66
66
  property({ type: String, reflect: true })
67
67
  ], Header.prototype, "level", void 0);
68
68
  Header = __decorate([
69
- customElement('ef-header', {
70
- alias: 'coral-header'
71
- })
69
+ customElement('ef-header')
72
70
  ], Header);
73
71
  export { Header };
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#ccc;padding:0 0 0 4px;height:28px;font-size:12rem;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#333;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="1"]){background-color:#404040}:host([level="3"]){background-color:#262626}:host([level="4"]){background-color:#1a1a1a}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#ccc;padding:0 0 0 4px;height:28px;font-size:12px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#333;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="1"]){background-color:#404040}:host([level="3"]){background-color:#262626}:host([level="4"]){background-color:#1a1a1a}' }}));
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#0d0d0d;padding:0 0 0 4px;height:28px;font-size:12rem;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#e6e6e6;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="1"]){background-color:#d9d9d9}:host([level="3"]){background-color:#f2f2f2}:host([level="4"]){background-color:#fafafa}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#0d0d0d;padding:0 0 0 4px;height:28px;font-size:12px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#e6e6e6;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="1"]){background-color:#d9d9d9}:host([level="3"]){background-color:#f2f2f2}:host([level="4"]){background-color:#fafafa}' }}));
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14rem;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#c2c2c2;background-color:#2e2e33}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="3"]) [part=label]{text-transform:none}:host([level="1"]){color:#e2e2e2;background-color:#4a4a52;background-image:linear-gradient(rgba(255,255,255,.03) 0,rgba(255,255,255,0) 100%)}:host([level="3"]){color:#8c8c8c;background-color:#212124}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#c2c2c2;background-color:#2e2e33}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="3"]) [part=label]{text-transform:none}:host([level="1"]){color:#e2e2e2;background-color:#4a4a52;background-image:linear-gradient(rgba(255,255,255,.03) 0,rgba(255,255,255,0) 100%)}:host([level="3"]){color:#8c8c8c;background-color:#212124}' }}));
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14rem;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#505050;background-color:#d0d4db}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="3"]) [part=label]{text-transform:none}:host([level="1"]){color:#484848;background-color:#bec3cc;background-image:linear-gradient(rgba(255,255,255,.18) 0,rgba(255,255,255,0) 100%)}:host([level="3"]){color:#6e6e78;background-color:#e4e8ed}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#505050;background-color:#d0d4db}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="3"]) [part=label]{text-transform:none}:host([level="1"]){color:#484848;background-color:#bec3cc;background-image:linear-gradient(rgba(255,255,255,.18) 0,rgba(255,255,255,0) 100%)}:host([level="3"]){color:#6e6e78;background-color:#e4e8ed}' }}));
@@ -1,18 +1,18 @@
1
- declare type HeatmapConfig = {
1
+ type HeatmapConfig = {
2
2
  data: Array<HeatmapCell[]>;
3
3
  yAxis?: HeatmapYAxis;
4
4
  xAxis?: HeatmapXAxis;
5
5
  };
6
- declare type HeatmapXAxis = {
6
+ type HeatmapXAxis = {
7
7
  labels: string[];
8
8
  shortLabels: string[];
9
9
  position: 'top' | 'bottom';
10
10
  };
11
- declare type HeatmapYAxis = {
11
+ type HeatmapYAxis = {
12
12
  labels: string[];
13
13
  position: 'left' | 'right';
14
14
  };
15
- declare type HeatmapCell = {
15
+ type HeatmapCell = {
16
16
  rowIndex: number;
17
17
  colIndex: number;
18
18
  x: number;
@@ -30,11 +30,11 @@ declare type HeatmapCell = {
30
30
  customBackgroundColor?: string;
31
31
  customForegroundColor?: string;
32
32
  };
33
- declare type HeatmapCustomisableProperties = {
33
+ type HeatmapCustomisableProperties = {
34
34
  label?: string;
35
35
  backgroundColor?: string;
36
36
  foregroundColor?: string;
37
37
  };
38
- declare type HeatmapTooltipCallback = (activeCell: HeatmapCell) => HTMLElement | undefined;
39
- declare type HeatmapRenderCallback = (cell: HeatmapCell) => HeatmapCustomisableProperties;
38
+ type HeatmapTooltipCallback = (activeCell: HeatmapCell) => HTMLElement | undefined;
39
+ type HeatmapRenderCallback = (cell: HeatmapCell) => HeatmapCustomisableProperties;
40
40
  export { HeatmapCell, HeatmapXAxis, HeatmapYAxis, HeatmapConfig, HeatmapTooltipCallback, HeatmapRenderCallback, HeatmapCustomisableProperties };
@@ -18,123 +18,6 @@ const DEFAULT_CANVAS_RATIO = 0.75; // ratio — 4:3
18
18
  * values contained in a matrix are represented as colors
19
19
  */
20
20
  let Heatmap = class Heatmap extends ResponsiveElement {
21
- constructor() {
22
- super();
23
- /**
24
- * Heatmap configuration options.
25
- * @type {HeatmapConfig}
26
- */
27
- this.config = null;
28
- /**
29
- * Number of maximum label width that cell can paint in pixel.
30
- * e.g. label-width: 30px; cell label hides when text length reaches 30px.
31
- */
32
- this.labelWidth = 0;
33
- /**
34
- * Hide all labels in the cells
35
- */
36
- this.labelHidden = false;
37
- /**
38
- * Hide all axes
39
- */
40
- this.axisHidden = false;
41
- /**
42
- * Minimum point of the cell coloring
43
- */
44
- this.minPoint = -1;
45
- /**
46
- * Middle point of the cell coloring
47
- */
48
- this.midPoint = 0;
49
- /**
50
- * Maximum point of the cell coloring
51
- */
52
- this.maxPoint = 1;
53
- /**
54
- * Enable cell color blending
55
- */
56
- this.blend = false;
57
- /**
58
- * Cell minimum color saturation, value can be from 0 - 1
59
- */
60
- this.saturation = 0.4;
61
- /**
62
- * Current active cell
63
- */
64
- this._hoverCell = null;
65
- /**
66
- * Internal cells data storage
67
- */
68
- this.cells = [];
69
- /**
70
- * Canvas's font color according to theme
71
- */
72
- this.foregroundColor = '';
73
- /**
74
- * Canvas's background color according to theme
75
- */
76
- this.backgroundColor = '';
77
- /**
78
- * Row cells track for easier calculations
79
- */
80
- this.rowTrack = new Track();
81
- /**
82
- * Column cells track for easier calculations
83
- */
84
- this.colTrack = new Track();
85
- /**
86
- * A flag to check if calculated responsive height it been set.
87
- */
88
- this.responsiveHeight = false;
89
- /**
90
- * A flag to check if the component has a size.
91
- */
92
- this.isSizeCalculated = false;
93
- /**
94
- * Use to prevent resizes observer in certain use cases
95
- */
96
- this.updateTimer = 0;
97
- /**
98
- * Use to throttle heatmap painting
99
- */
100
- this.renderTask = new MicroTaskRunner();
101
- /**
102
- * A flag to check if the cell has header enable.
103
- */
104
- this.hasCellHeader = false;
105
- /**
106
- * A flag to check if cell's content is within its boundary
107
- */
108
- this.contentWithinCellBoundary = true;
109
- /**
110
- * Margin around each cell
111
- */
112
- this.cellMargin = 1;
113
- /**
114
- * Above point color that is customisable using CSS variable
115
- */
116
- this.abovePointColor = '';
117
- /**
118
- * Middle point color that is customisable using CSS variable
119
- */
120
- this.midPointColor = '';
121
- /**
122
- * Below point color that is customisable using CSS variable
123
- */
124
- this.belowPointColor = '';
125
- /** @ignore */
126
- this.onResize = this.onResize.bind(this);
127
- /** @ignore */
128
- this.onMouseMove = this.onMouseMove.bind(this);
129
- /** @ignore */
130
- this.stopAnimation = this.stopAnimation.bind(this);
131
- /** @ignore */
132
- this.tooltipRenderer = this.tooltipRenderer.bind(this);
133
- /** @ignore */
134
- this.tooltipCondition = this.tooltipCondition.bind(this);
135
- /** @ignore */
136
- this.onMouseLeave = this.onMouseLeave.bind(this);
137
- }
138
21
  /**
139
22
  * Element version number
140
23
  * @returns version number
@@ -257,6 +140,123 @@ let Heatmap = class Heatmap extends ResponsiveElement {
257
140
  });
258
141
  return result;
259
142
  }
143
+ constructor() {
144
+ super();
145
+ /**
146
+ * Heatmap configuration options.
147
+ * @type {HeatmapConfig}
148
+ */
149
+ this.config = null;
150
+ /**
151
+ * Number of maximum label width that cell can paint in pixel.
152
+ * e.g. label-width: 30px; cell label hides when text length reaches 30px.
153
+ */
154
+ this.labelWidth = 0;
155
+ /**
156
+ * Hide all labels in the cells
157
+ */
158
+ this.labelHidden = false;
159
+ /**
160
+ * Hide all axes
161
+ */
162
+ this.axisHidden = false;
163
+ /**
164
+ * Minimum point of the cell coloring
165
+ */
166
+ this.minPoint = -1;
167
+ /**
168
+ * Middle point of the cell coloring
169
+ */
170
+ this.midPoint = 0;
171
+ /**
172
+ * Maximum point of the cell coloring
173
+ */
174
+ this.maxPoint = 1;
175
+ /**
176
+ * Enable cell color blending
177
+ */
178
+ this.blend = false;
179
+ /**
180
+ * Cell minimum color saturation, value can be from 0 - 1
181
+ */
182
+ this.saturation = 0.4;
183
+ /**
184
+ * Current active cell
185
+ */
186
+ this._hoverCell = null;
187
+ /**
188
+ * Internal cells data storage
189
+ */
190
+ this.cells = [];
191
+ /**
192
+ * Canvas's font color according to theme
193
+ */
194
+ this.foregroundColor = '';
195
+ /**
196
+ * Canvas's background color according to theme
197
+ */
198
+ this.backgroundColor = '';
199
+ /**
200
+ * Row cells track for easier calculations
201
+ */
202
+ this.rowTrack = new Track();
203
+ /**
204
+ * Column cells track for easier calculations
205
+ */
206
+ this.colTrack = new Track();
207
+ /**
208
+ * A flag to check if calculated responsive height it been set.
209
+ */
210
+ this.responsiveHeight = false;
211
+ /**
212
+ * A flag to check if the component has a size.
213
+ */
214
+ this.isSizeCalculated = false;
215
+ /**
216
+ * Use to prevent resizes observer in certain use cases
217
+ */
218
+ this.updateTimer = 0;
219
+ /**
220
+ * Use to throttle heatmap painting
221
+ */
222
+ this.renderTask = new MicroTaskRunner();
223
+ /**
224
+ * A flag to check if the cell has header enable.
225
+ */
226
+ this.hasCellHeader = false;
227
+ /**
228
+ * A flag to check if cell's content is within its boundary
229
+ */
230
+ this.contentWithinCellBoundary = true;
231
+ /**
232
+ * Margin around each cell
233
+ */
234
+ this.cellMargin = 1;
235
+ /**
236
+ * Above point color that is customisable using CSS variable
237
+ */
238
+ this.abovePointColor = '';
239
+ /**
240
+ * Middle point color that is customisable using CSS variable
241
+ */
242
+ this.midPointColor = '';
243
+ /**
244
+ * Below point color that is customisable using CSS variable
245
+ */
246
+ this.belowPointColor = '';
247
+ /** @ignore */
248
+ this.onResize = this.onResize.bind(this);
249
+ /** @ignore */
250
+ this.onMouseMove = this.onMouseMove.bind(this);
251
+ /** @ignore */
252
+ this.stopAnimation = this.stopAnimation.bind(this);
253
+ /** @ignore */
254
+ this.tooltipRenderer = this.tooltipRenderer.bind(this);
255
+ /** @ignore */
256
+ this.tooltipCondition = this.tooltipCondition.bind(this);
257
+ /** @ignore */
258
+ this.onMouseLeave = this.onMouseLeave.bind(this);
259
+ }
260
260
  /**
261
261
  * Called when the element’s DOM has been updated and rendered
262
262
  * @param changedProperties changed properties
@@ -1089,8 +1089,6 @@ __decorate([
1089
1089
  query('#tooltip-overlay')
1090
1090
  ], Heatmap.prototype, "tooltipOverlay", void 0);
1091
1091
  Heatmap = __decorate([
1092
- customElement('ef-heatmap', {
1093
- alias: 'sapphire-heatmap'
1094
- })
1092
+ customElement('ef-heatmap')
1095
1093
  ], Heatmap);
1096
1094
  export { Heatmap };
package/lib/icon/index.js CHANGED
@@ -164,8 +164,6 @@ __decorate([
164
164
  property({ type: String })
165
165
  ], Icon.prototype, "src", null);
166
166
  Icon = __decorate([
167
- customElement('ef-icon', {
168
- alias: 'coral-icon'
169
- })
167
+ customElement('ef-icon')
170
168
  ], Icon);
171
169
  export { Icon };
@@ -61,7 +61,7 @@
61
61
  "events": [
62
62
  {
63
63
  "name": "initialized",
64
- "description": "Dispatched when chart is initialized"
64
+ "description": "Fired when chart is initialized"
65
65
  }
66
66
  ],
67
67
  "slots": [
@@ -20,9 +20,9 @@ By lightweight-charts library.
20
20
 
21
21
  ## Events
22
22
 
23
- | Event | Description |
24
- |---------------|--------------------------------------|
25
- | `initialized` | Dispatched when chart is initialized |
23
+ | Event | Description |
24
+ |---------------|---------------------------------|
25
+ | `initialized` | Fired when chart is initialized |
26
26
 
27
27
  ## Slots
28
28
 
@@ -1,7 +1,7 @@
1
- declare type UnknownObject = {
1
+ type UnknownObject = {
2
2
  [key: string]: unknown;
3
3
  };
4
- declare type MergeObject = UnknownObject | Array<unknown>;
4
+ type MergeObject = UnknownObject | Array<unknown>;
5
5
  /**
6
6
  * Merge objects recursively
7
7
  *
@@ -1,12 +1,12 @@
1
1
  import type { LineData, BarData, HistogramData, DeepPartial, ChartOptions, SeriesPartialOptions, LineSeriesPartialOptions, AreaSeriesPartialOptions, BarSeriesPartialOptions, CandlestickSeriesPartialOptions, HistogramSeriesPartialOptions, LineStyleOptions, AreaStyleOptions, BarStyleOptions, CandlestickStyleOptions, HistogramStyleOptions, ISeriesApi, SeriesType } from 'lightweight-charts';
2
2
  import type { RGBColor, HSLColor } from '@refinitiv-ui/utils/color.js';
3
- declare type SeriesOptions = AreaSeriesPartialOptions | BarSeriesPartialOptions | CandlestickSeriesPartialOptions | HistogramSeriesPartialOptions | LineSeriesPartialOptions;
4
- declare type SeriesStyleOptions = LineStyleOptions & AreaStyleOptions & BarStyleOptions & CandlestickStyleOptions & HistogramStyleOptions;
5
- declare type SeriesData = LineData[] | BarData[] | HistogramData[];
6
- declare type SeriesList = ISeriesApi<SeriesType>;
7
- declare type SeriesDataItem = BarData | LineData;
8
- declare type RowLegend = NodeListOf<Element> | HTMLElement | null;
9
- declare type ColorToStringFunction = (param: string, ...arg: (string | number | undefined)[]) => RGBColor | HSLColor | null;
3
+ type SeriesOptions = AreaSeriesPartialOptions | BarSeriesPartialOptions | CandlestickSeriesPartialOptions | HistogramSeriesPartialOptions | LineSeriesPartialOptions;
4
+ type SeriesStyleOptions = LineStyleOptions & AreaStyleOptions & BarStyleOptions & CandlestickStyleOptions & HistogramStyleOptions;
5
+ type SeriesData = LineData[] | BarData[] | HistogramData[];
6
+ type SeriesList = ISeriesApi<SeriesType>;
7
+ type SeriesDataItem = BarData | LineData;
8
+ type RowLegend = NodeListOf<Element> | HTMLElement | null;
9
+ type ColorToStringFunction = (param: string, ...arg: (string | number | undefined)[]) => RGBColor | HSLColor | null;
10
10
  declare enum LegendStyle {
11
11
  vertical = "vertical",
12
12
  horizontal = "horizontal"
@@ -9,7 +9,7 @@ export type { InteractiveChartConfig, InteractiveChartSeries, LegendStyle };
9
9
  * A charting component that allows you to create several use cases of financial chart.
10
10
  * By lightweight-charts library.
11
11
  * @slot legend - Slot to use for implementing custom legend.
12
- * @fires initialized - Dispatched when chart is initialized
12
+ * @fires initialized - Fired when chart is initialized
13
13
  */
14
14
  export declare class InteractiveChart extends ResponsiveElement {
15
15
  /**
@@ -16,7 +16,7 @@ const NO_DATA_POINT = '--';
16
16
  * A charting component that allows you to create several use cases of financial chart.
17
17
  * By lightweight-charts library.
18
18
  * @slot legend - Slot to use for implementing custom legend.
19
- * @fires initialized - Dispatched when chart is initialized
19
+ * @fires initialized - Fired when chart is initialized
20
20
  */
21
21
  let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends ResponsiveElement {
22
22
  constructor() {
@@ -1082,8 +1082,6 @@ __decorate([
1082
1082
  query('[part=branding-container]', true)
1083
1083
  ], InteractiveChart.prototype, "brandingContainer", void 0);
1084
1084
  InteractiveChart = InteractiveChart_1 = __decorate([
1085
- customElement('ef-interactive-chart', {
1086
- alias: 'sapphire-interactive-chart'
1087
- })
1085
+ customElement('ef-interactive-chart')
1088
1086
  ], InteractiveChart);
1089
1087
  export { InteractiveChart };
@@ -7,7 +7,7 @@
7
7
  "attributes": [
8
8
  {
9
9
  "name": "label",
10
- "description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, `label` always takes priority",
10
+ "description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, content always takes priority",
11
11
  "type": "string | null"
12
12
  },
13
13
  {
@@ -40,7 +40,7 @@
40
40
  },
41
41
  {
42
42
  "name": "sub-label",
43
- "description": "The`subLabel` property represents the text beneath the label.",
43
+ "description": "The`subLabel` property represents the text beneath the label.\nBy having both `subLabel` and content, content always takes priority",
44
44
  "type": "string | null"
45
45
  },
46
46
  {
@@ -65,7 +65,7 @@
65
65
  {
66
66
  "name": "label",
67
67
  "attribute": "label",
68
- "description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, `label` always takes priority",
68
+ "description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, content always takes priority",
69
69
  "type": "string | null"
70
70
  },
71
71
  {
@@ -104,7 +104,7 @@
104
104
  {
105
105
  "name": "subLabel",
106
106
  "attribute": "sub-label",
107
- "description": "The`subLabel` property represents the text beneath the label.",
107
+ "description": "The`subLabel` property represents the text beneath the label.\nBy having both `subLabel` and content, content always takes priority",
108
108
  "type": "string | null"
109
109
  },
110
110
  {
@@ -13,10 +13,10 @@ to create simple menus or navigation panels.
13
13
  | `highlightable (readonly)` | | `boolean` | | Return true if the item can be highlighted. True if not disabled and type is Text |
14
14
  | `highlighted` | `highlighted` | `boolean` | false | Highlight the item |
15
15
  | `icon` | `icon` | `string \| null` | null | Set the icon name from the ef-icon list |
16
- | `label` | `label` | `string \| null` | null | The text for the label indicating the meaning of the item.<br />By having both `label` and content, `label` always takes priority |
16
+ | `label` | `label` | `string \| null` | null | The text for the label indicating the meaning of the item.<br />By having both `label` and content, content always takes priority |
17
17
  | `multiple` | `multiple` | `boolean` | false | Is the item part of a multiple selection |
18
18
  | `selected` | `selected` | `boolean` | false | Indicates that the item is selected |
19
- | `subLabel` | `sub-label` | `string \| null` | null | The`subLabel` property represents the text beneath the label. |
19
+ | `subLabel` | `sub-label` | `string \| null` | null | The`subLabel` property represents the text beneath the label.<br />By having both `subLabel` and content, content always takes priority |
20
20
  | `type` | `type` | `ItemType \| null` | null | If defined value can be `text`, `header` or `divider` |
21
21
  | `value` | `value` | `string` | "" | The content of this attribute represents the value of the item. |
22
22
 
@@ -1,5 +1,5 @@
1
1
  import type { DataItem } from '@refinitiv-ui/utils/collection.js';
2
- declare type ItemType = 'text' | 'header' | 'divider';
2
+ type ItemType = 'text' | 'header' | 'divider';
3
3
  interface CommonItem extends DataItem {
4
4
  /**
5
5
  * Type of item. Value can be `text`, `header`, `divider`
@@ -53,5 +53,5 @@ interface ItemDivider extends CommonItem {
53
53
  /**
54
54
  * Used to construct a collection of items
55
55
  */
56
- declare type ItemData = ItemText | ItemHeader | ItemDivider;
56
+ type ItemData = ItemText | ItemHeader | ItemDivider;
57
57
  export type { ItemType, ItemText, ItemHeader, ItemDivider, ItemData };
@@ -32,7 +32,7 @@ export declare class Item extends ControlElement {
32
32
  static get styles(): CSSResultGroup;
33
33
  /**
34
34
  * The text for the label indicating the meaning of the item.
35
- * By having both `label` and content, `label` always takes priority
35
+ * By having both `label` and content, content always takes priority
36
36
  */
37
37
  label: string | null;
38
38
  /**
@@ -58,6 +58,7 @@ export declare class Item extends ControlElement {
58
58
  highlighted: boolean;
59
59
  /**
60
60
  * The`subLabel` property represents the text beneath the label.
61
+ * By having both `subLabel` and content, content always takes priority
61
62
  */
62
63
  subLabel: string | null;
63
64
  /**
package/lib/item/index.js CHANGED
@@ -29,7 +29,7 @@ let Item = class Item extends ControlElement {
29
29
  super(...arguments);
30
30
  /**
31
31
  * The text for the label indicating the meaning of the item.
32
- * By having both `label` and content, `label` always takes priority
32
+ * By having both `label` and content, content always takes priority
33
33
  */
34
34
  this.label = null;
35
35
  /**
@@ -55,6 +55,7 @@ let Item = class Item extends ControlElement {
55
55
  this.highlighted = false;
56
56
  /**
57
57
  * The`subLabel` property represents the text beneath the label.
58
+ * By having both `subLabel` and content, content always takes priority
58
59
  */
59
60
  this.subLabel = null;
60
61
  /**
@@ -314,8 +315,6 @@ __decorate([
314
315
  property({ type: String, reflect: true })
315
316
  ], Item.prototype, "for", void 0);
316
317
  Item = __decorate([
317
- customElement('ef-item', {
318
- alias: 'coral-item'
319
- })
318
+ customElement('ef-item')
320
319
  ], Item);
321
320
  export { Item };