@refinitiv-ui/elements 7.0.0-next.0 → 7.0.0-next.2

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 (385) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/cli.mjs +21 -0
  3. package/lib/accordion/index.js +1 -10
  4. package/lib/appstate-bar/custom-elements.json +2 -2
  5. package/lib/appstate-bar/custom-elements.md +4 -4
  6. package/lib/appstate-bar/index.d.ts +2 -2
  7. package/lib/appstate-bar/index.js +2 -8
  8. package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
  9. package/lib/appstate-bar/themes/halo/light/index.js +1 -1
  10. package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
  11. package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
  12. package/lib/autosuggest/custom-elements.json +8 -8
  13. package/lib/autosuggest/custom-elements.md +8 -8
  14. package/lib/autosuggest/helpers/types.d.ts +18 -18
  15. package/lib/autosuggest/index.d.ts +9 -32
  16. package/lib/autosuggest/index.js +112 -187
  17. package/lib/autosuggest/themes/halo/dark/index.js +1 -1
  18. package/lib/autosuggest/themes/halo/light/index.js +1 -1
  19. package/lib/autosuggest/themes/solar/charcoal/index.js +1 -1
  20. package/lib/autosuggest/themes/solar/pearl/index.js +1 -1
  21. package/lib/button/custom-elements.json +1 -1
  22. package/lib/button/custom-elements.md +1 -1
  23. package/lib/button/index.d.ts +1 -1
  24. package/lib/button/index.js +1 -1
  25. package/lib/button/themes/halo/dark/index.js +2 -1
  26. package/lib/button/themes/halo/light/index.js +2 -1
  27. package/lib/button/themes/solar/charcoal/index.js +2 -1
  28. package/lib/button/themes/solar/pearl/index.js +2 -1
  29. package/lib/button-bar/index.js +0 -5
  30. package/lib/calendar/custom-elements.json +2 -2
  31. package/lib/calendar/custom-elements.md +4 -4
  32. package/lib/calendar/index.d.ts +9 -2
  33. package/lib/calendar/index.js +27 -29
  34. package/lib/calendar/themes/halo/dark/index.js +1 -1
  35. package/lib/calendar/themes/halo/light/index.js +1 -1
  36. package/lib/calendar/themes/solar/charcoal/index.js +1 -1
  37. package/lib/calendar/themes/solar/pearl/index.js +1 -1
  38. package/lib/calendar/types.d.ts +5 -5
  39. package/lib/calendar/utils.d.ts +2 -13
  40. package/lib/calendar/utils.js +2 -20
  41. package/lib/canvas/custom-elements.json +1 -1
  42. package/lib/canvas/custom-elements.md +1 -1
  43. package/lib/canvas/index.d.ts +1 -1
  44. package/lib/canvas/index.js +10 -9
  45. package/lib/card/custom-elements.json +1 -1
  46. package/lib/card/custom-elements.md +3 -3
  47. package/lib/card/helpers/types.d.ts +1 -1
  48. package/lib/card/index.d.ts +2 -1
  49. package/lib/card/index.js +5 -4
  50. package/lib/card/themes/halo/dark/index.js +1 -1
  51. package/lib/card/themes/halo/light/index.js +1 -1
  52. package/lib/card/themes/solar/charcoal/index.js +1 -1
  53. package/lib/card/themes/solar/pearl/index.js +1 -1
  54. package/lib/chart/bare.d.ts +1 -0
  55. package/lib/chart/bare.js +1 -0
  56. package/lib/chart/custom-elements.json +10 -5
  57. package/lib/chart/custom-elements.md +9 -8
  58. package/lib/chart/elements/chart.d.ts +182 -0
  59. package/lib/chart/elements/chart.js +509 -0
  60. package/lib/chart/helpers/index.d.ts +1 -1
  61. package/lib/chart/helpers/index.js +1 -1
  62. package/lib/chart/helpers/merge.d.ts +3 -3
  63. package/lib/chart/helpers/merge.js +1 -1
  64. package/lib/chart/helpers/types.d.ts +1 -66
  65. package/lib/chart/index.d.ts +1 -192
  66. package/lib/chart/index.js +5 -485
  67. package/lib/chart/plugins/doughnut-center-label.d.ts +22 -3
  68. package/lib/chart/plugins/doughnut-center-label.js +62 -51
  69. package/lib/chart/plugins/index.d.ts +1 -0
  70. package/lib/chart/plugins/index.js +1 -0
  71. package/lib/chart/themes/halo/dark/index.js +1 -1
  72. package/lib/chart/themes/halo/light/index.js +1 -1
  73. package/lib/chart/themes/solar/charcoal/index.js +1 -1
  74. package/lib/chart/themes/solar/pearl/index.js +1 -1
  75. package/lib/checkbox/custom-elements.json +1 -1
  76. package/lib/checkbox/custom-elements.md +3 -3
  77. package/lib/checkbox/index.d.ts +1 -1
  78. package/lib/checkbox/index.js +1 -2
  79. package/lib/checkbox/themes/halo/dark/index.js +1 -1
  80. package/lib/checkbox/themes/halo/light/index.js +1 -1
  81. package/lib/checkbox/themes/solar/charcoal/index.js +1 -1
  82. package/lib/checkbox/themes/solar/pearl/index.js +1 -1
  83. package/lib/clock/custom-elements.json +2 -2
  84. package/lib/clock/custom-elements.md +2 -2
  85. package/lib/clock/index.d.ts +2 -2
  86. package/lib/clock/index.js +2 -6
  87. package/lib/clock/utils/TickManager.d.ts +1 -1
  88. package/lib/collapse/custom-elements.json +1 -1
  89. package/lib/collapse/custom-elements.md +3 -3
  90. package/lib/collapse/index.d.ts +7 -1
  91. package/lib/collapse/index.js +27 -30
  92. package/lib/collapse/themes/halo/dark/index.js +1 -1
  93. package/lib/collapse/themes/halo/light/index.js +1 -1
  94. package/lib/collapse/themes/solar/charcoal/index.js +1 -1
  95. package/lib/collapse/themes/solar/pearl/index.js +1 -1
  96. package/lib/color-dialog/custom-elements.json +2 -2
  97. package/lib/color-dialog/custom-elements.md +4 -4
  98. package/lib/color-dialog/helpers/value-model.js +4 -5
  99. package/lib/color-dialog/index.d.ts +4 -4
  100. package/lib/color-dialog/index.js +4 -4
  101. package/lib/color-picker/custom-elements.json +1 -1
  102. package/lib/color-picker/custom-elements.md +3 -3
  103. package/lib/color-picker/index.d.ts +1 -1
  104. package/lib/color-picker/index.js +3 -5
  105. package/lib/combo-box/custom-elements.json +3 -6
  106. package/lib/combo-box/custom-elements.md +5 -6
  107. package/lib/combo-box/helpers/types.d.ts +2 -2
  108. package/lib/combo-box/index.d.ts +3 -12
  109. package/lib/combo-box/index.js +15 -30
  110. package/lib/combo-box/themes/halo/dark/index.js +2 -1
  111. package/lib/combo-box/themes/halo/light/index.js +2 -1
  112. package/lib/combo-box/themes/solar/charcoal/index.js +2 -1
  113. package/lib/combo-box/themes/solar/pearl/index.js +2 -1
  114. package/lib/counter/themes/halo/dark/index.js +2 -1
  115. package/lib/counter/themes/halo/light/index.js +2 -1
  116. package/lib/counter/themes/solar/charcoal/index.js +2 -1
  117. package/lib/counter/themes/solar/pearl/index.js +2 -1
  118. package/lib/datetime-field/index.d.ts +2 -2
  119. package/lib/datetime-field/index.js +7 -12
  120. package/lib/datetime-field/types.d.ts +3 -3
  121. package/lib/datetime-field/utils.d.ts +2 -2
  122. package/lib/datetime-field/utils.js +2 -2
  123. package/lib/datetime-picker/custom-elements.json +4 -4
  124. package/lib/datetime-picker/custom-elements.md +4 -4
  125. package/lib/datetime-picker/index.d.ts +4 -4
  126. package/lib/datetime-picker/index.js +9 -13
  127. package/lib/datetime-picker/themes/halo/dark/index.js +2 -1
  128. package/lib/datetime-picker/themes/halo/light/index.js +2 -1
  129. package/lib/datetime-picker/themes/solar/charcoal/index.js +2 -1
  130. package/lib/datetime-picker/themes/solar/pearl/index.js +2 -1
  131. package/lib/datetime-picker/types.d.ts +1 -1
  132. package/lib/dialog/custom-elements.json +2 -13
  133. package/lib/dialog/custom-elements.md +4 -5
  134. package/lib/dialog/index.d.ts +11 -43
  135. package/lib/dialog/index.js +21 -80
  136. package/lib/dialog/themes/halo/dark/index.js +1 -1
  137. package/lib/dialog/themes/halo/light/index.js +1 -1
  138. package/lib/dialog/themes/solar/charcoal/index.js +1 -1
  139. package/lib/dialog/themes/solar/pearl/index.js +1 -1
  140. package/lib/email-field/custom-elements.json +3 -3
  141. package/lib/email-field/custom-elements.md +5 -5
  142. package/lib/email-field/index.d.ts +3 -3
  143. package/lib/email-field/index.js +5 -4
  144. package/lib/email-field/themes/halo/dark/index.js +2 -1
  145. package/lib/email-field/themes/halo/light/index.js +2 -1
  146. package/lib/email-field/themes/solar/charcoal/index.js +2 -1
  147. package/lib/email-field/themes/solar/pearl/index.js +2 -1
  148. package/lib/events.d.ts +13 -13
  149. package/lib/flag/custom-elements.json +2 -14
  150. package/lib/flag/custom-elements.md +3 -6
  151. package/lib/flag/index.d.ts +21 -9
  152. package/lib/flag/index.js +43 -24
  153. package/lib/header/themes/halo/dark/index.js +1 -1
  154. package/lib/header/themes/halo/light/index.js +1 -1
  155. package/lib/header/themes/solar/charcoal/index.js +1 -1
  156. package/lib/header/themes/solar/pearl/index.js +1 -1
  157. package/lib/heatmap/helpers/color.js +2 -1
  158. package/lib/heatmap/helpers/text.d.ts +1 -1
  159. package/lib/heatmap/helpers/text.js +1 -1
  160. package/lib/heatmap/helpers/types.d.ts +7 -7
  161. package/lib/heatmap/index.js +156 -140
  162. package/lib/icon/custom-elements.json +0 -13
  163. package/lib/icon/custom-elements.md +0 -1
  164. package/lib/icon/index.d.ts +20 -2
  165. package/lib/icon/index.js +41 -14
  166. package/lib/icon/themes/halo/dark/index.js +1 -1
  167. package/lib/icon/themes/halo/light/index.js +1 -1
  168. package/lib/icon/themes/solar/charcoal/index.js +1 -1
  169. package/lib/icon/themes/solar/pearl/index.js +1 -1
  170. package/lib/interactive-chart/custom-elements.json +1 -1
  171. package/lib/interactive-chart/custom-elements.md +3 -3
  172. package/lib/interactive-chart/helpers/merge.d.ts +2 -2
  173. package/lib/interactive-chart/helpers/types.d.ts +7 -7
  174. package/lib/interactive-chart/index.d.ts +1 -1
  175. package/lib/interactive-chart/index.js +5 -3
  176. package/lib/item/custom-elements.json +4 -4
  177. package/lib/item/custom-elements.md +2 -2
  178. package/lib/item/helpers/types.d.ts +2 -2
  179. package/lib/item/index.d.ts +2 -1
  180. package/lib/item/index.js +2 -1
  181. package/lib/item/themes/halo/dark/index.js +1 -1
  182. package/lib/item/themes/halo/light/index.js +1 -1
  183. package/lib/item/themes/solar/charcoal/index.js +1 -1
  184. package/lib/item/themes/solar/pearl/index.js +1 -1
  185. package/lib/label/index.js +9 -34
  186. package/lib/layout/index.js +0 -13
  187. package/lib/led-gauge/index.js +7 -7
  188. package/lib/list/custom-elements.json +1 -1
  189. package/lib/list/custom-elements.md +3 -3
  190. package/lib/list/elements/list.d.ts +1 -1
  191. package/lib/list/elements/list.js +4 -8
  192. package/lib/list/helpers/renderer.d.ts +0 -4
  193. package/lib/list/helpers/renderer.js +5 -5
  194. package/lib/list/helpers/types.d.ts +1 -1
  195. package/lib/list/themes/halo/dark/index.js +2 -2
  196. package/lib/list/themes/halo/light/index.js +2 -2
  197. package/lib/list/themes/solar/charcoal/index.js +2 -2
  198. package/lib/list/themes/solar/pearl/index.js +2 -2
  199. package/lib/multi-input/custom-elements.json +5 -5
  200. package/lib/multi-input/custom-elements.md +5 -5
  201. package/lib/multi-input/helpers/types.d.ts +3 -3
  202. package/lib/multi-input/index.d.ts +5 -17
  203. package/lib/multi-input/index.js +8 -21
  204. package/lib/multi-input/themes/halo/dark/index.js +1 -1
  205. package/lib/multi-input/themes/halo/light/index.js +1 -1
  206. package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
  207. package/lib/multi-input/themes/solar/pearl/index.js +1 -1
  208. package/lib/notification/custom-elements.json +2 -2
  209. package/lib/notification/custom-elements.md +4 -4
  210. package/lib/notification/elements/notification.d.ts +2 -2
  211. package/lib/notification/elements/notification.js +2 -2
  212. package/lib/notification/helpers/types.d.ts +2 -2
  213. package/lib/number-field/custom-elements.json +2 -2
  214. package/lib/number-field/custom-elements.md +4 -4
  215. package/lib/number-field/index.d.ts +4 -4
  216. package/lib/number-field/index.js +24 -19
  217. package/lib/number-field/themes/halo/dark/index.js +2 -1
  218. package/lib/number-field/themes/halo/light/index.js +2 -1
  219. package/lib/number-field/themes/solar/charcoal/index.js +2 -1
  220. package/lib/number-field/themes/solar/pearl/index.js +2 -1
  221. package/lib/overlay/custom-elements.json +6 -9
  222. package/lib/overlay/custom-elements.md +7 -8
  223. package/lib/overlay/elements/overlay-backdrop.d.ts +1 -8
  224. package/lib/overlay/elements/overlay-backdrop.js +3 -13
  225. package/lib/overlay/elements/overlay-viewport.d.ts +1 -8
  226. package/lib/overlay/elements/overlay-viewport.js +3 -13
  227. package/lib/overlay/elements/overlay.d.ts +7 -15
  228. package/lib/overlay/elements/overlay.js +13 -55
  229. package/lib/overlay/helpers/types.d.ts +13 -13
  230. package/lib/overlay/managers/close-manager.d.ts +1 -1
  231. package/lib/overlay/managers/close-manager.js +6 -4
  232. package/lib/overlay/managers/focus-manager.js +2 -1
  233. package/lib/overlay/managers/interaction-lock-manager.js +1 -1
  234. package/lib/overlay/managers/viewport-manager.js +3 -0
  235. package/lib/overlay/managers/zindex-manager.d.ts +1 -1
  236. package/lib/overlay/managers/zindex-manager.js +1 -1
  237. package/lib/overlay/themes/halo/dark/index.js +1 -1
  238. package/lib/overlay/themes/halo/light/index.js +1 -1
  239. package/lib/overlay/themes/solar/charcoal/index.js +1 -1
  240. package/lib/overlay/themes/solar/pearl/index.js +1 -1
  241. package/lib/overlay-menu/custom-elements.json +2 -2
  242. package/lib/overlay-menu/custom-elements.md +2 -2
  243. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  244. package/lib/overlay-menu/index.d.ts +2 -2
  245. package/lib/overlay-menu/index.js +36 -42
  246. package/lib/overlay-menu/managers/menu-manager.d.ts +0 -1
  247. package/lib/overlay-menu/managers/menu-manager.js +1 -5
  248. package/lib/overlay-menu/themes/halo/dark/index.js +1 -1
  249. package/lib/overlay-menu/themes/halo/light/index.js +1 -1
  250. package/lib/overlay-menu/themes/solar/charcoal/index.js +1 -1
  251. package/lib/overlay-menu/themes/solar/pearl/index.js +1 -1
  252. package/lib/pagination/custom-elements.json +1 -1
  253. package/lib/pagination/custom-elements.md +3 -3
  254. package/lib/pagination/index.d.ts +1 -2
  255. package/lib/pagination/index.js +3 -7
  256. package/lib/pagination/themes/halo/dark/index.js +1 -1
  257. package/lib/pagination/themes/halo/light/index.js +1 -1
  258. package/lib/pagination/themes/solar/charcoal/index.js +1 -1
  259. package/lib/pagination/themes/solar/pearl/index.js +1 -1
  260. package/lib/password-field/custom-elements.json +2 -6
  261. package/lib/password-field/custom-elements.md +4 -5
  262. package/lib/password-field/index.d.ts +2 -3
  263. package/lib/password-field/index.js +2 -3
  264. package/lib/password-field/themes/halo/dark/index.js +2 -1
  265. package/lib/password-field/themes/halo/light/index.js +2 -1
  266. package/lib/password-field/themes/solar/charcoal/index.js +2 -1
  267. package/lib/password-field/themes/solar/pearl/index.js +2 -1
  268. package/lib/pill/custom-elements.json +1 -1
  269. package/lib/pill/custom-elements.md +3 -3
  270. package/lib/pill/index.d.ts +1 -1
  271. package/lib/pill/index.js +2 -2
  272. package/lib/pill/themes/halo/dark/index.js +2 -1
  273. package/lib/pill/themes/halo/light/index.js +2 -1
  274. package/lib/pill/themes/solar/charcoal/index.js +2 -1
  275. package/lib/pill/themes/solar/pearl/index.js +2 -1
  276. package/lib/radio-button/custom-elements.json +1 -1
  277. package/lib/radio-button/custom-elements.md +3 -3
  278. package/lib/radio-button/index.d.ts +1 -1
  279. package/lib/radio-button/index.js +1 -6
  280. package/lib/radio-button/themes/halo/dark/index.js +1 -1
  281. package/lib/radio-button/themes/halo/light/index.js +1 -1
  282. package/lib/radio-button/themes/solar/charcoal/index.js +1 -1
  283. package/lib/radio-button/themes/solar/pearl/index.js +1 -1
  284. package/lib/rating/custom-elements.json +1 -1
  285. package/lib/rating/custom-elements.md +3 -3
  286. package/lib/rating/index.d.ts +1 -1
  287. package/lib/rating/index.js +1 -5
  288. package/lib/search-field/custom-elements.json +3 -3
  289. package/lib/search-field/custom-elements.md +5 -5
  290. package/lib/search-field/index.d.ts +3 -3
  291. package/lib/search-field/index.js +6 -7
  292. package/lib/search-field/themes/halo/dark/index.js +2 -1
  293. package/lib/search-field/themes/halo/light/index.js +2 -1
  294. package/lib/search-field/themes/solar/charcoal/index.js +2 -1
  295. package/lib/search-field/themes/solar/pearl/index.js +2 -1
  296. package/lib/select/custom-elements.json +2 -2
  297. package/lib/select/custom-elements.md +4 -4
  298. package/lib/select/helpers/types.d.ts +2 -2
  299. package/lib/select/index.d.ts +2 -2
  300. package/lib/select/index.js +15 -20
  301. package/lib/select/themes/halo/dark/index.js +2 -1
  302. package/lib/select/themes/halo/light/index.js +2 -1
  303. package/lib/select/themes/solar/charcoal/index.js +2 -1
  304. package/lib/select/themes/solar/pearl/index.js +2 -1
  305. package/lib/sidebar-layout/index.js +2 -3
  306. package/lib/sidebar-layout/themes/halo/dark/index.js +1 -1
  307. package/lib/sidebar-layout/themes/halo/light/index.js +1 -1
  308. package/lib/sidebar-layout/themes/solar/charcoal/index.js +1 -1
  309. package/lib/sidebar-layout/themes/solar/pearl/index.js +1 -1
  310. package/lib/slider/custom-elements.json +3 -3
  311. package/lib/slider/custom-elements.md +5 -5
  312. package/lib/slider/index.d.ts +3 -3
  313. package/lib/slider/index.js +117 -111
  314. package/lib/swing-gauge/types.d.ts +1 -1
  315. package/lib/tab/custom-elements.json +1 -1
  316. package/lib/tab/custom-elements.md +3 -3
  317. package/lib/tab/index.d.ts +1 -1
  318. package/lib/tab/index.js +1 -1
  319. package/lib/tab/themes/halo/dark/index.js +1 -1
  320. package/lib/tab/themes/halo/light/index.js +1 -1
  321. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  322. package/lib/tab/themes/solar/pearl/index.js +1 -1
  323. package/lib/tab-bar/custom-elements.json +1 -1
  324. package/lib/tab-bar/custom-elements.md +3 -3
  325. package/lib/tab-bar/index.d.ts +1 -1
  326. package/lib/tab-bar/index.js +1 -5
  327. package/lib/tab-bar/themes/halo/dark/index.js +1 -1
  328. package/lib/tab-bar/themes/halo/light/index.js +1 -1
  329. package/lib/text-field/custom-elements.json +3 -3
  330. package/lib/text-field/custom-elements.md +5 -5
  331. package/lib/text-field/index.d.ts +4 -10
  332. package/lib/text-field/index.js +11 -26
  333. package/lib/text-field/themes/halo/dark/index.js +2 -1
  334. package/lib/text-field/themes/halo/light/index.js +2 -1
  335. package/lib/text-field/themes/solar/charcoal/index.js +2 -1
  336. package/lib/text-field/themes/solar/pearl/index.js +2 -1
  337. package/lib/time-picker/custom-elements.json +1 -1
  338. package/lib/time-picker/custom-elements.md +3 -3
  339. package/lib/time-picker/index.d.ts +1 -1
  340. package/lib/time-picker/index.js +19 -20
  341. package/lib/time-picker/themes/halo/dark/index.js +2 -1
  342. package/lib/time-picker/themes/halo/light/index.js +2 -1
  343. package/lib/time-picker/themes/solar/charcoal/index.js +2 -1
  344. package/lib/time-picker/themes/solar/pearl/index.js +2 -1
  345. package/lib/toggle/custom-elements.json +1 -1
  346. package/lib/toggle/custom-elements.md +3 -3
  347. package/lib/toggle/index.d.ts +1 -1
  348. package/lib/toggle/index.js +2 -5
  349. package/lib/toggle/themes/halo/dark/index.js +1 -1
  350. package/lib/toggle/themes/halo/light/index.js +1 -1
  351. package/lib/toggle/themes/solar/charcoal/index.js +1 -1
  352. package/lib/toggle/themes/solar/pearl/index.js +1 -1
  353. package/lib/tooltip/elements/tooltip-element.js +1 -1
  354. package/lib/tooltip/helpers/types.d.ts +10 -10
  355. package/lib/tooltip/index.js +5 -4
  356. package/lib/tooltip/managers/tooltip-manager.js +2 -5
  357. package/lib/tornado-chart/elements/tornado-item.js +8 -9
  358. package/lib/tornado-chart/themes/halo/dark/index.js +2 -2
  359. package/lib/tornado-chart/themes/halo/light/index.js +2 -2
  360. package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
  361. package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
  362. package/lib/tree/custom-elements.json +2 -2
  363. package/lib/tree/custom-elements.md +2 -2
  364. package/lib/tree/elements/tree.d.ts +2 -2
  365. package/lib/tree/elements/tree.js +2 -4
  366. package/lib/tree/helpers/renderer.d.ts +0 -4
  367. package/lib/tree/helpers/renderer.js +5 -5
  368. package/lib/tree/helpers/types.d.ts +2 -2
  369. package/lib/tree/themes/halo/dark/index.js +2 -2
  370. package/lib/tree/themes/halo/light/index.js +2 -2
  371. package/lib/tree/themes/solar/charcoal/index.js +2 -2
  372. package/lib/tree/themes/solar/pearl/index.js +2 -2
  373. package/lib/tree-select/custom-elements.json +7 -7
  374. package/lib/tree-select/custom-elements.md +7 -7
  375. package/lib/tree-select/helpers/types.d.ts +2 -2
  376. package/lib/tree-select/index.d.ts +5 -6
  377. package/lib/tree-select/index.js +23 -23
  378. package/lib/tree-select/themes/halo/dark/index.js +2 -1
  379. package/lib/tree-select/themes/halo/light/index.js +2 -1
  380. package/lib/tree-select/themes/solar/charcoal/index.js +2 -1
  381. package/lib/tree-select/themes/solar/pearl/index.js +2 -1
  382. package/lib/version.js +1 -1
  383. package/package.json +32 -30
  384. package/lib/chart/helpers/legend.d.ts +0 -5
  385. package/lib/chart/helpers/legend.js +0 -78
@@ -1,3 +1,4 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/pearl';
2
+ import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
2
3
 
3
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-email-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13rem;font-weight:400;height:23px;width:140px;max-width:100%;padding:0 5px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#484848;border-radius:0;text-overflow:ellipsis;background-color:#fff;border:1px solid #a9afba}:host([type=number]){padding-right:0}:host([error]),:host([error][warning]){border:1px solid #d94255}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(72,72,72,.6);border:1px solid rgba(217,66,85,.6)}:host ::-ms-clear{display:none}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#acafb5;min-width:1em}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6)}:host([readonly]){border:1px solid rgba(169,175,186,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([warning]){background-color:#fff;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(72,72,72,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#fff;border:1px solid #d94255}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(217,66,85,.6);color:rgba(72,72,72,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(217,66,85,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #e37180}:host([highlight]){background-color:#b0ffff;border:1px solid #a9afba}:host([highlight][disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6);background-color:rgba(176,255,255,.6)}:host([highlight][readonly]){border:1px solid rgba(169,175,186,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([indirect]){color:#009494;background-color:#effefe;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,148,148,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#ffb266;border-style:dotted}:host([disabled]) [part=input]::-webkit-input-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]::-moz-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]:-ms-input-placeholder{color:rgba(102,101,112,.6)}' }}));
4
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-email-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;height:23px;width:140px;max-width:100%;padding:0 5px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#484848;border-radius:0;text-overflow:ellipsis;background-color:#fff;border:1px solid #a9afba}:host([type=number]){padding-right:0}:host([error]),:host([error][warning]){border:1px solid #d94255}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(72,72,72,.6);border:1px solid rgba(217,66,85,.6)}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#acafb5;min-width:1em}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6)}:host([readonly]){border:1px solid rgba(169,175,186,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([warning]){background-color:#fff;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(72,72,72,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#fff;border:1px solid #d94255}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(217,66,85,.6);color:rgba(72,72,72,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(217,66,85,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #e37180}:host([highlight]){background-color:#b0ffff;border:1px solid #a9afba}:host([highlight][disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6);background-color:rgba(176,255,255,.6)}:host([highlight][readonly]){border:1px solid rgba(169,175,186,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([indirect]){color:#009494;background-color:#effefe;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,148,148,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#ffb266;border-style:dotted}:host([disabled]) [part=input]::-moz-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]::placeholder{color:rgba(102,101,112,.6)}' }}));
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
  */
@@ -3,16 +3,10 @@
3
3
  "tags": [
4
4
  {
5
5
  "name": "ef-flag",
6
- "description": "Provides a collection of flags.",
7
6
  "attributes": [
8
7
  {
9
8
  "name": "flag",
10
- "description": "Name of a known flag to render.",
11
- "type": "string | null"
12
- },
13
- {
14
- "name": "src",
15
- "description": "Src location of an svg flag.",
9
+ "description": "Code of a known flag to render or URL of flag SVG file.",
16
10
  "type": "string | null"
17
11
  }
18
12
  ],
@@ -20,13 +14,7 @@
20
14
  {
21
15
  "name": "flag",
22
16
  "attribute": "flag",
23
- "description": "Name of a known flag to render.",
24
- "type": "string | null"
25
- },
26
- {
27
- "name": "src",
28
- "attribute": "src",
29
- "description": "Src location of an svg flag.",
17
+ "description": "Code of a known flag to render or URL of flag SVG file.",
30
18
  "type": "string | null"
31
19
  }
32
20
  ]
@@ -1,10 +1,7 @@
1
1
  # ef-flag
2
2
 
3
- Provides a collection of flags.
4
-
5
3
  ## Properties
6
4
 
7
- | Property | Attribute | Type | Default | Description |
8
- |----------|-----------|------------------|---------|---------------------------------|
9
- | `flag` | `flag` | `string \| null` | null | Name of a known flag to render. |
10
- | `src` | `src` | `string \| null` | null | Src location of an svg flag. |
5
+ | Property | Attribute | Type | Default | Description |
6
+ |----------|-----------|------------------|---------|--------------------------------------------------|
7
+ | `flag` | `flag` | `string \| null` | null | Code of a known flag to render or URL of flag SVG file. |
@@ -1,13 +1,6 @@
1
1
  import { JSXInterface } from '../jsx';
2
2
  import { BasicElement, CSSResultGroup, TemplateResult, PropertyValues } from '@refinitiv-ui/core';
3
3
  export { preload } from './utils/FlagLoader.js';
4
- /**
5
- * Provides a collection of flags.
6
- *
7
- * @attr {string | null} src - Src location of a svg flag.
8
- * @prop {string | null} src - Src location of a svg flag
9
- *
10
- */
11
4
  export declare class Flag extends BasicElement {
12
5
  /**
13
6
  * Element version number
@@ -23,8 +16,8 @@ export declare class Flag extends BasicElement {
23
16
  static get styles(): CSSResultGroup;
24
17
  private _flag;
25
18
  /**
26
- * Name of a known flag to render.
27
- * @example gb
19
+ * Code of a known flag to render or URL of flag SVG file.
20
+ * @example gb | https://cdn.io/flags/gb.svg
28
21
  * @default null
29
22
  */
30
23
  get flag(): string | null;
@@ -32,10 +25,16 @@ export declare class Flag extends BasicElement {
32
25
  private _src;
33
26
  /**
34
27
  * Src location of an svg flag.
28
+ * @ignore
35
29
  * @example https://cdn.io/flags/gb.svg
30
+ * @deprecated Use `flag` instead
36
31
  * @default null
37
32
  */
38
33
  get src(): string | null;
34
+ /**
35
+ * @ignore
36
+ * @param value Location of an svg
37
+ */
39
38
  set src(value: string | null);
40
39
  private _template;
41
40
  /**
@@ -43,12 +42,25 @@ export declare class Flag extends BasicElement {
43
42
  */
44
43
  private get template();
45
44
  private set template(value);
45
+ /**
46
+ * A deferred promise representing flag ready.
47
+ * It would be resolved when the flag svg has been fetched and parsed, or
48
+ * when the flag svg is unavailable/invalid.
49
+ */
50
+ private flagReady;
51
+ constructor();
46
52
  /**
47
53
  * Called after the component is first rendered
48
54
  * @param changedProperties Properties which have changed
49
55
  * @returns {void}
50
56
  */
51
57
  protected firstUpdated(changedProperties: PropertyValues): void;
58
+ protected getUpdateComplete(): Promise<boolean>;
59
+ /**
60
+ * instantiate a new deferred promise for flag ready if it's not pending already
61
+ * @returns {void}
62
+ */
63
+ private deferFlagReady;
52
64
  /**
53
65
  * Helper method, used to set the flag src.
54
66
  * @returns {void}
package/lib/flag/index.js CHANGED
@@ -3,24 +3,12 @@ import { BasicElement, svg, css } from '@refinitiv-ui/core';
3
3
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
4
  import { property } from '@refinitiv-ui/core/decorators/property.js';
5
5
  import { unsafeHTML } from '@refinitiv-ui/core/directives/unsafe-html.js';
6
+ import { Deferred } from '@refinitiv-ui/utils/loader.js';
6
7
  import { VERSION } from '../version.js';
7
8
  import { FlagLoader } from './utils/FlagLoader.js';
8
9
  export { preload } from './utils/FlagLoader.js';
9
10
  const EmptyTemplate = svg ``;
10
- /**
11
- * Provides a collection of flags.
12
- *
13
- * @attr {string | null} src - Src location of a svg flag.
14
- * @prop {string | null} src - Src location of a svg flag
15
- *
16
- */
17
11
  let Flag = class Flag extends BasicElement {
18
- constructor() {
19
- super(...arguments);
20
- this._flag = null;
21
- this._src = null;
22
- this._template = EmptyTemplate;
23
- }
24
12
  /**
25
13
  * Element version number
26
14
  * @returns version number
@@ -51,8 +39,8 @@ let Flag = class Flag extends BasicElement {
51
39
  `;
52
40
  }
53
41
  /**
54
- * Name of a known flag to render.
55
- * @example gb
42
+ * Code of a known flag to render or URL of flag SVG file.
43
+ * @example gb | https://cdn.io/flags/gb.svg
56
44
  * @default null
57
45
  */
58
46
  get flag() {
@@ -60,25 +48,35 @@ let Flag = class Flag extends BasicElement {
60
48
  }
61
49
  set flag(value) {
62
50
  if (this.flag !== value) {
51
+ this.deferFlagReady();
63
52
  this._flag = value;
64
53
  void this.setFlagSrc();
65
54
  }
66
55
  }
67
56
  /**
68
57
  * Src location of an svg flag.
58
+ * @ignore
69
59
  * @example https://cdn.io/flags/gb.svg
60
+ * @deprecated Use `flag` instead
70
61
  * @default null
71
62
  */
72
63
  get src() {
73
64
  return this._src;
74
65
  }
66
+ /**
67
+ * @ignore
68
+ * @param value Location of an svg
69
+ */
75
70
  set src(value) {
76
71
  if (this.src !== value) {
72
+ this.deferFlagReady();
77
73
  this._src = value;
78
- this.clearFlag();
79
74
  if (value) {
80
75
  void this.loadAndRenderFlag(value);
81
76
  }
77
+ else {
78
+ this.clearFlag();
79
+ }
82
80
  }
83
81
  }
84
82
  /**
@@ -92,6 +90,17 @@ let Flag = class Flag extends BasicElement {
92
90
  this._template = value;
93
91
  this.requestUpdate();
94
92
  }
93
+ this.flagReady.resolve();
94
+ }
95
+ constructor() {
96
+ super();
97
+ this._flag = null;
98
+ this._src = null;
99
+ this._template = EmptyTemplate;
100
+ this.flagReady = new Deferred();
101
+ // `flagReady` resolves at this stage so that `updateComplete` would be resolvable
102
+ // even in the case that both `flag` and `src` attribute are missing.
103
+ this.flagReady.resolve();
95
104
  }
96
105
  /**
97
106
  * Called after the component is first rendered
@@ -100,18 +109,30 @@ let Flag = class Flag extends BasicElement {
100
109
  */
101
110
  firstUpdated(changedProperties) {
102
111
  super.firstUpdated(changedProperties);
103
- /**
104
- * We have to call this here because
105
- * polyfilled browsers only get variables at this point.
106
- */
107
112
  this.setPrefix();
108
113
  }
114
+ async getUpdateComplete() {
115
+ const result = await super.getUpdateComplete();
116
+ await this.flagReady.promise;
117
+ return result;
118
+ }
119
+ /**
120
+ * instantiate a new deferred promise for flag ready if it's not pending already
121
+ * @returns {void}
122
+ */
123
+ deferFlagReady() {
124
+ if (this.flagReady.isPending()) {
125
+ return;
126
+ }
127
+ this.flagReady = new Deferred();
128
+ }
109
129
  /**
110
130
  * Helper method, used to set the flag src.
111
131
  * @returns {void}
112
132
  */
113
133
  async setFlagSrc() {
114
- this.src = this.flag ? await FlagLoader.getSrc(this.flag) : null;
134
+ // keep `src` in-sync with `flag` so that flag svg would be resolved after every `flag` update
135
+ this.src = this.flag ? await FlagLoader.getSrc(this.flag) : this.flag;
115
136
  }
116
137
  /**
117
138
  * Tries to load an flag from the url provided
@@ -121,9 +142,7 @@ let Flag = class Flag extends BasicElement {
121
142
  */
122
143
  async loadAndRenderFlag(src) {
123
144
  const svgBody = await FlagLoader.loadSVG(src);
124
- if (svgBody) {
125
- this.template = svg `${unsafeHTML(svgBody)}`;
126
- }
145
+ this.template = svgBody ? svg `${unsafeHTML(svgBody)}` : EmptyTemplate;
127
146
  }
128
147
  /**
129
148
  * Get and cache CDN prefix
@@ -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,4 +1,4 @@
1
- /* istanbul ignore file */
1
+ /* c8 ignore start */
2
2
  import { color, rgb, hsl } from '@refinitiv-ui/utils/color.js';
3
3
  import { interpolate } from 'd3-interpolate';
4
4
  /**
@@ -64,3 +64,4 @@ const blend = (color1, color2, backgroundColor, amount) => {
64
64
  return color(`rgb(${red}, ${green}, ${blue})`)?.toString() || '';
65
65
  };
66
66
  export { blend, brighten, darken, isLight, interpolate };
67
+ /* c8 ignore stop */
@@ -1,5 +1,5 @@
1
1
  import type { HeatmapCell } from './types';
2
- declare const MIN_FONT_SIZE = 10;
2
+ declare const MIN_FONT_SIZE = 12;
3
3
  declare const MAX_FONT_SIZE = 16;
4
4
  /**
5
5
  * Calculate responsive font size according to the screen width
@@ -1,4 +1,4 @@
1
- const MIN_FONT_SIZE = 10;
1
+ const MIN_FONT_SIZE = 12;
2
2
  const MAX_FONT_SIZE = 16;
3
3
  /**
4
4
  * Calculate responsive font size according to the screen width
@@ -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 };