@refinitiv-ui/elements 7.0.0-next.5 → 7.0.1

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 (416) hide show
  1. package/CHANGELOG.md +202 -420
  2. package/LICENSE +2 -2
  3. package/README.md +13 -11
  4. package/cli.mjs +5 -3
  5. package/lib/accordion/index.d.ts +1 -1
  6. package/lib/accordion/index.js +4 -7
  7. package/lib/accordion/themes/halo/dark/index.js +0 -1
  8. package/lib/accordion/themes/halo/light/index.js +0 -1
  9. package/lib/accordion/themes/solar/charcoal/index.js +0 -1
  10. package/lib/accordion/themes/solar/pearl/index.js +0 -1
  11. package/lib/appstate-bar/index.d.ts +2 -2
  12. package/lib/appstate-bar/index.js +10 -4
  13. package/lib/appstate-bar/themes/halo/dark/index.js +0 -1
  14. package/lib/appstate-bar/themes/halo/light/index.js +0 -1
  15. package/lib/appstate-bar/themes/solar/charcoal/index.js +0 -1
  16. package/lib/appstate-bar/themes/solar/pearl/index.js +0 -1
  17. package/lib/autosuggest/index.d.ts +7 -7
  18. package/lib/autosuggest/index.js +80 -80
  19. package/lib/autosuggest/themes/halo/dark/index.js +0 -1
  20. package/lib/autosuggest/themes/halo/light/index.js +0 -1
  21. package/lib/autosuggest/themes/solar/charcoal/index.js +1 -2
  22. package/lib/autosuggest/themes/solar/pearl/index.js +1 -2
  23. package/lib/button/index.js +7 -10
  24. package/lib/button/themes/halo/dark/index.js +0 -1
  25. package/lib/button/themes/halo/light/index.js +0 -1
  26. package/lib/button/themes/solar/charcoal/index.js +0 -1
  27. package/lib/button/themes/solar/pearl/index.js +0 -1
  28. package/lib/button-bar/index.d.ts +1 -1
  29. package/lib/button-bar/index.js +12 -12
  30. package/lib/button-bar/themes/halo/dark/index.js +0 -1
  31. package/lib/button-bar/themes/halo/light/index.js +0 -1
  32. package/lib/button-bar/themes/solar/charcoal/index.js +0 -1
  33. package/lib/button-bar/themes/solar/pearl/index.js +0 -1
  34. package/lib/calendar/index.d.ts +39 -39
  35. package/lib/calendar/index.js +156 -123
  36. package/lib/calendar/themes/halo/dark/index.js +0 -1
  37. package/lib/calendar/themes/halo/light/index.js +0 -1
  38. package/lib/calendar/themes/solar/charcoal/index.js +0 -1
  39. package/lib/calendar/themes/solar/pearl/index.js +0 -1
  40. package/lib/calendar/utils.js +1 -1
  41. package/lib/canvas/index.d.ts +1 -1
  42. package/lib/canvas/index.js +2 -4
  43. package/lib/canvas/themes/halo/dark/index.js +0 -1
  44. package/lib/canvas/themes/halo/light/index.js +0 -1
  45. package/lib/canvas/themes/solar/charcoal/index.js +0 -1
  46. package/lib/canvas/themes/solar/pearl/index.js +0 -1
  47. package/lib/card/helpers/types.d.ts +2 -2
  48. package/lib/card/index.d.ts +5 -5
  49. package/lib/card/index.js +34 -28
  50. package/lib/card/themes/halo/dark/index.js +0 -1
  51. package/lib/card/themes/halo/light/index.js +0 -1
  52. package/lib/card/themes/solar/charcoal/index.js +0 -1
  53. package/lib/card/themes/solar/pearl/index.js +0 -1
  54. package/lib/chart/elements/chart.d.ts +4 -4
  55. package/lib/chart/elements/chart.js +39 -33
  56. package/lib/chart/plugins/doughnut-center-label.d.ts +3 -3
  57. package/lib/chart/plugins/doughnut-center-label.js +13 -9
  58. package/lib/chart/themes/halo/dark/index.js +0 -1
  59. package/lib/chart/themes/halo/light/index.js +0 -1
  60. package/lib/chart/themes/solar/charcoal/index.js +0 -1
  61. package/lib/chart/themes/solar/pearl/index.js +0 -1
  62. package/lib/checkbox/index.d.ts +1 -1
  63. package/lib/checkbox/index.js +12 -13
  64. package/lib/checkbox/themes/halo/dark/index.js +0 -1
  65. package/lib/checkbox/themes/halo/light/index.js +0 -1
  66. package/lib/checkbox/themes/solar/charcoal/index.js +0 -1
  67. package/lib/checkbox/themes/solar/pearl/index.js +0 -1
  68. package/lib/clock/index.d.ts +55 -55
  69. package/lib/clock/index.js +84 -95
  70. package/lib/clock/themes/halo/dark/index.js +1 -2
  71. package/lib/clock/themes/halo/light/index.js +1 -2
  72. package/lib/clock/themes/solar/charcoal/index.js +1 -2
  73. package/lib/clock/themes/solar/pearl/index.js +1 -2
  74. package/lib/collapse/index.d.ts +1 -1
  75. package/lib/collapse/index.js +27 -18
  76. package/lib/collapse/themes/halo/dark/index.js +1 -2
  77. package/lib/collapse/themes/halo/light/index.js +1 -2
  78. package/lib/collapse/themes/solar/charcoal/index.js +0 -1
  79. package/lib/collapse/themes/solar/pearl/index.js +0 -1
  80. package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
  81. package/lib/color-dialog/elements/color-palettes.js +5 -6
  82. package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
  83. package/lib/color-dialog/elements/grayscale-palettes.js +9 -9
  84. package/lib/color-dialog/elements/palettes.js +5 -4
  85. package/lib/color-dialog/helpers/value-model.js +7 -9
  86. package/lib/color-dialog/index.d.ts +6 -6
  87. package/lib/color-dialog/index.js +53 -37
  88. package/lib/color-dialog/themes/halo/dark/index.js +0 -1
  89. package/lib/color-dialog/themes/halo/light/index.js +0 -1
  90. package/lib/color-dialog/themes/solar/charcoal/index.js +0 -1
  91. package/lib/color-dialog/themes/solar/pearl/index.js +0 -1
  92. package/lib/color-picker/index.d.ts +2 -2
  93. package/lib/color-picker/index.js +40 -34
  94. package/lib/color-picker/themes/halo/dark/index.js +0 -1
  95. package/lib/color-picker/themes/halo/light/index.js +0 -1
  96. package/lib/color-picker/themes/solar/charcoal/index.js +0 -1
  97. package/lib/color-picker/themes/solar/pearl/index.js +0 -1
  98. package/lib/combo-box/helpers/filter.d.ts +2 -2
  99. package/lib/combo-box/helpers/types.d.ts +1 -1
  100. package/lib/combo-box/index.d.ts +9 -9
  101. package/lib/combo-box/index.js +61 -55
  102. package/lib/combo-box/themes/halo/dark/index.js +0 -1
  103. package/lib/combo-box/themes/halo/light/index.js +0 -1
  104. package/lib/combo-box/themes/solar/charcoal/index.js +0 -1
  105. package/lib/combo-box/themes/solar/pearl/index.js +0 -1
  106. package/lib/configuration/elements/configuration.d.ts +1 -1
  107. package/lib/configuration/elements/configuration.js +2 -2
  108. package/lib/counter/index.d.ts +4 -4
  109. package/lib/counter/index.js +9 -7
  110. package/lib/counter/themes/halo/dark/index.js +0 -1
  111. package/lib/counter/themes/halo/light/index.js +0 -1
  112. package/lib/counter/themes/solar/charcoal/index.js +0 -1
  113. package/lib/counter/themes/solar/pearl/index.js +0 -1
  114. package/lib/datetime-field/index.d.ts +4 -5
  115. package/lib/datetime-field/index.js +32 -23
  116. package/lib/datetime-field/themes/halo/dark/index.js +0 -1
  117. package/lib/datetime-field/themes/halo/light/index.js +0 -1
  118. package/lib/datetime-field/themes/solar/charcoal/index.js +0 -1
  119. package/lib/datetime-field/themes/solar/pearl/index.js +0 -1
  120. package/lib/datetime-field/utils.js +11 -1
  121. package/lib/datetime-picker/index.d.ts +75 -75
  122. package/lib/datetime-picker/index.js +150 -131
  123. package/lib/datetime-picker/locales.js +5 -5
  124. package/lib/datetime-picker/themes/halo/dark/index.js +0 -1
  125. package/lib/datetime-picker/themes/halo/light/index.js +0 -1
  126. package/lib/datetime-picker/themes/solar/charcoal/index.js +0 -1
  127. package/lib/datetime-picker/themes/solar/pearl/index.js +0 -1
  128. package/lib/datetime-picker/utils.js +9 -9
  129. package/lib/dialog/draggable-element.js +1 -2
  130. package/lib/dialog/index.d.ts +5 -5
  131. package/lib/dialog/index.js +51 -47
  132. package/lib/dialog/themes/halo/dark/index.js +0 -1
  133. package/lib/dialog/themes/halo/light/index.js +0 -1
  134. package/lib/dialog/themes/solar/charcoal/index.js +0 -1
  135. package/lib/dialog/themes/solar/pearl/index.js +0 -1
  136. package/lib/email-field/index.d.ts +1 -1
  137. package/lib/email-field/index.js +6 -6
  138. package/lib/email-field/themes/halo/dark/index.js +0 -1
  139. package/lib/email-field/themes/halo/light/index.js +0 -1
  140. package/lib/email-field/themes/solar/charcoal/index.js +0 -1
  141. package/lib/email-field/themes/solar/pearl/index.js +0 -1
  142. package/lib/events.d.ts +1 -1
  143. package/lib/flag/index.d.ts +1 -1
  144. package/lib/flag/index.js +7 -7
  145. package/lib/flag/themes/halo/dark/index.js +0 -1
  146. package/lib/flag/themes/halo/light/index.js +0 -1
  147. package/lib/flag/themes/solar/charcoal/index.js +0 -1
  148. package/lib/flag/themes/solar/pearl/index.js +0 -1
  149. package/lib/flag/utils/FlagLoader.js +1 -1
  150. package/lib/header/index.d.ts +1 -1
  151. package/lib/header/index.js +2 -2
  152. package/lib/header/themes/halo/dark/index.js +1 -2
  153. package/lib/header/themes/halo/light/index.js +1 -2
  154. package/lib/header/themes/solar/charcoal/index.js +1 -2
  155. package/lib/header/themes/solar/pearl/index.js +1 -2
  156. package/lib/heatmap/helpers/color.d.ts +1 -1
  157. package/lib/heatmap/helpers/color.js +11 -5
  158. package/lib/heatmap/helpers/track.js +3 -3
  159. package/lib/heatmap/index.d.ts +9 -9
  160. package/lib/heatmap/index.js +51 -42
  161. package/lib/heatmap/themes/halo/dark/index.js +0 -1
  162. package/lib/heatmap/themes/halo/light/index.js +0 -1
  163. package/lib/heatmap/themes/solar/charcoal/index.js +0 -1
  164. package/lib/heatmap/themes/solar/pearl/index.js +0 -1
  165. package/lib/icon/index.d.ts +2 -2
  166. package/lib/icon/index.js +9 -11
  167. package/lib/icon/themes/halo/dark/index.js +0 -1
  168. package/lib/icon/themes/halo/light/index.js +0 -1
  169. package/lib/icon/themes/solar/charcoal/index.js +0 -1
  170. package/lib/icon/themes/solar/pearl/index.js +0 -1
  171. package/lib/interactive-chart/helpers/types.d.ts +3 -3
  172. package/lib/interactive-chart/index.d.ts +29 -29
  173. package/lib/interactive-chart/index.js +69 -55
  174. package/lib/interactive-chart/themes/halo/dark/index.js +0 -1
  175. package/lib/interactive-chart/themes/halo/light/index.js +0 -1
  176. package/lib/interactive-chart/themes/solar/charcoal/index.js +0 -1
  177. package/lib/interactive-chart/themes/solar/pearl/index.js +0 -1
  178. package/lib/item/helpers/types.d.ts +1 -1
  179. package/lib/item/index.d.ts +3 -3
  180. package/lib/item/index.js +24 -20
  181. package/lib/item/themes/halo/dark/index.js +0 -1
  182. package/lib/item/themes/halo/light/index.js +0 -1
  183. package/lib/item/themes/solar/charcoal/index.js +0 -1
  184. package/lib/item/themes/solar/pearl/index.js +0 -1
  185. package/lib/jsx.d.ts +6 -4
  186. package/lib/label/index.d.ts +1 -1
  187. package/lib/label/index.js +10 -7
  188. package/lib/label/themes/halo/dark/index.js +0 -1
  189. package/lib/label/themes/halo/light/index.js +0 -1
  190. package/lib/label/themes/solar/charcoal/index.js +0 -1
  191. package/lib/label/themes/solar/pearl/index.js +0 -1
  192. package/lib/layout/index.d.ts +7 -7
  193. package/lib/layout/index.js +7 -7
  194. package/lib/layout/themes/halo/dark/index.js +0 -1
  195. package/lib/layout/themes/halo/light/index.js +0 -1
  196. package/lib/layout/themes/solar/charcoal/index.js +0 -1
  197. package/lib/layout/themes/solar/pearl/index.js +0 -1
  198. package/lib/led-gauge/index.d.ts +1 -1
  199. package/lib/led-gauge/index.js +10 -10
  200. package/lib/led-gauge/themes/halo/dark/index.js +0 -1
  201. package/lib/led-gauge/themes/halo/light/index.js +0 -1
  202. package/lib/led-gauge/themes/solar/charcoal/index.js +0 -1
  203. package/lib/led-gauge/themes/solar/pearl/index.js +0 -1
  204. package/lib/list/elements/list.d.ts +3 -3
  205. package/lib/list/elements/list.js +10 -12
  206. package/lib/list/helpers/renderer.js +2 -2
  207. package/lib/list/helpers/types.d.ts +1 -1
  208. package/lib/list/index.d.ts +1 -1
  209. package/lib/list/renderer.d.ts +7 -7
  210. package/lib/list/themes/halo/dark/index.js +0 -2
  211. package/lib/list/themes/halo/light/index.js +0 -2
  212. package/lib/list/themes/solar/charcoal/index.js +0 -2
  213. package/lib/list/themes/solar/pearl/index.js +0 -2
  214. package/lib/loader/index.js +7 -8
  215. package/lib/loader/themes/halo/dark/index.js +0 -1
  216. package/lib/loader/themes/halo/light/index.js +0 -1
  217. package/lib/loader/themes/solar/charcoal/index.js +0 -1
  218. package/lib/loader/themes/solar/pearl/index.js +0 -1
  219. package/lib/multi-input/index.d.ts +6 -6
  220. package/lib/multi-input/index.js +39 -45
  221. package/lib/multi-input/themes/halo/dark/index.js +0 -1
  222. package/lib/multi-input/themes/halo/light/index.js +0 -1
  223. package/lib/multi-input/themes/solar/charcoal/index.js +0 -1
  224. package/lib/multi-input/themes/solar/pearl/index.js +0 -1
  225. package/lib/notification/elements/notification-tray.d.ts +2 -2
  226. package/lib/notification/elements/notification-tray.js +3 -3
  227. package/lib/notification/elements/notification.d.ts +2 -2
  228. package/lib/notification/elements/notification.js +19 -13
  229. package/lib/notification/helpers/status.js +1 -1
  230. package/lib/notification/themes/halo/dark/index.js +0 -2
  231. package/lib/notification/themes/halo/light/index.js +0 -2
  232. package/lib/notification/themes/solar/charcoal/index.js +0 -2
  233. package/lib/notification/themes/solar/pearl/index.js +0 -2
  234. package/lib/number-field/index.d.ts +5 -6
  235. package/lib/number-field/index.js +37 -47
  236. package/lib/number-field/themes/halo/dark/index.js +0 -1
  237. package/lib/number-field/themes/halo/light/index.js +0 -1
  238. package/lib/number-field/themes/solar/charcoal/index.js +0 -1
  239. package/lib/number-field/themes/solar/pearl/index.js +0 -1
  240. package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
  241. package/lib/overlay/elements/overlay.d.ts +2 -2
  242. package/lib/overlay/elements/overlay.js +152 -96
  243. package/lib/overlay/helpers/types.d.ts +1 -1
  244. package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
  245. package/lib/overlay/managers/backdrop-manager.js +2 -2
  246. package/lib/overlay/managers/close-manager.js +2 -1
  247. package/lib/overlay/managers/focus-manager.js +23 -13
  248. package/lib/overlay/managers/interaction-lock-manager.d.ts +4 -4
  249. package/lib/overlay/managers/interaction-lock-manager.js +33 -25
  250. package/lib/overlay/managers/viewport-manager.d.ts +2 -2
  251. package/lib/overlay/managers/viewport-manager.js +3 -2
  252. package/lib/overlay/managers/zindex-manager.js +4 -2
  253. package/lib/overlay/themes/halo/dark/index.js +0 -2
  254. package/lib/overlay/themes/halo/light/index.js +0 -2
  255. package/lib/overlay/themes/solar/charcoal/index.js +0 -2
  256. package/lib/overlay/themes/solar/pearl/index.js +0 -2
  257. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  258. package/lib/overlay-menu/index.d.ts +1 -1
  259. package/lib/overlay-menu/index.js +44 -33
  260. package/lib/overlay-menu/managers/menu-manager.d.ts +10 -10
  261. package/lib/overlay-menu/managers/menu-manager.js +14 -13
  262. package/lib/overlay-menu/themes/halo/dark/index.js +0 -1
  263. package/lib/overlay-menu/themes/halo/light/index.js +0 -1
  264. package/lib/overlay-menu/themes/solar/charcoal/index.js +0 -1
  265. package/lib/overlay-menu/themes/solar/pearl/index.js +0 -1
  266. package/lib/pagination/index.d.ts +4 -4
  267. package/lib/pagination/index.js +39 -14
  268. package/lib/pagination/themes/halo/dark/index.js +0 -1
  269. package/lib/pagination/themes/halo/light/index.js +0 -1
  270. package/lib/pagination/themes/solar/charcoal/index.js +0 -1
  271. package/lib/pagination/themes/solar/pearl/index.js +0 -1
  272. package/lib/panel/index.js +1 -1
  273. package/lib/panel/themes/halo/dark/index.js +0 -1
  274. package/lib/panel/themes/halo/light/index.js +0 -1
  275. package/lib/panel/themes/solar/charcoal/index.js +0 -1
  276. package/lib/panel/themes/solar/pearl/index.js +0 -1
  277. package/lib/password-field/index.d.ts +2 -2
  278. package/lib/password-field/index.js +6 -3
  279. package/lib/password-field/themes/halo/dark/index.js +1 -2
  280. package/lib/password-field/themes/halo/light/index.js +1 -2
  281. package/lib/password-field/themes/solar/charcoal/index.js +1 -2
  282. package/lib/password-field/themes/solar/pearl/index.js +1 -2
  283. package/lib/pill/index.d.ts +1 -1
  284. package/lib/pill/index.js +22 -19
  285. package/lib/pill/themes/halo/dark/index.js +0 -1
  286. package/lib/pill/themes/halo/light/index.js +0 -1
  287. package/lib/pill/themes/solar/charcoal/index.js +0 -1
  288. package/lib/pill/themes/solar/pearl/index.js +0 -1
  289. package/lib/progress-bar/index.d.ts +1 -1
  290. package/lib/progress-bar/index.js +38 -37
  291. package/lib/progress-bar/themes/halo/dark/index.js +0 -1
  292. package/lib/progress-bar/themes/halo/light/index.js +0 -1
  293. package/lib/progress-bar/themes/solar/charcoal/index.js +0 -1
  294. package/lib/progress-bar/themes/solar/pearl/index.js +0 -1
  295. package/lib/radio-button/index.d.ts +2 -2
  296. package/lib/radio-button/index.js +17 -12
  297. package/lib/radio-button/radio-button-registry.js +8 -5
  298. package/lib/radio-button/themes/halo/dark/index.js +0 -1
  299. package/lib/radio-button/themes/halo/light/index.js +0 -1
  300. package/lib/radio-button/themes/solar/charcoal/index.js +0 -1
  301. package/lib/radio-button/themes/solar/pearl/index.js +0 -1
  302. package/lib/rating/index.d.ts +1 -1
  303. package/lib/rating/index.js +2 -5
  304. package/lib/rating/themes/halo/dark/index.js +0 -1
  305. package/lib/rating/themes/halo/light/index.js +0 -1
  306. package/lib/rating/themes/solar/charcoal/index.js +0 -1
  307. package/lib/rating/themes/solar/pearl/index.js +0 -1
  308. package/lib/rating/utils.d.ts +6 -6
  309. package/lib/rating/utils.js +6 -6
  310. package/lib/search-field/index.d.ts +2 -2
  311. package/lib/search-field/index.js +4 -4
  312. package/lib/search-field/themes/halo/dark/index.js +0 -1
  313. package/lib/search-field/themes/halo/light/index.js +0 -1
  314. package/lib/search-field/themes/solar/charcoal/index.js +0 -1
  315. package/lib/search-field/themes/solar/pearl/index.js +0 -1
  316. package/lib/select/index.d.ts +34 -34
  317. package/lib/select/index.js +69 -82
  318. package/lib/select/themes/halo/dark/index.js +0 -1
  319. package/lib/select/themes/halo/light/index.js +0 -1
  320. package/lib/select/themes/solar/charcoal/index.js +0 -1
  321. package/lib/select/themes/solar/pearl/index.js +0 -1
  322. package/lib/sidebar-layout/index.d.ts +2 -2
  323. package/lib/sidebar-layout/index.js +7 -9
  324. package/lib/sidebar-layout/themes/halo/dark/index.js +0 -1
  325. package/lib/sidebar-layout/themes/halo/light/index.js +0 -1
  326. package/lib/sidebar-layout/themes/solar/charcoal/index.js +0 -1
  327. package/lib/sidebar-layout/themes/solar/pearl/index.js +0 -1
  328. package/lib/slider/index.d.ts +2 -2
  329. package/lib/slider/index.js +57 -45
  330. package/lib/slider/themes/halo/dark/index.js +0 -1
  331. package/lib/slider/themes/halo/light/index.js +0 -1
  332. package/lib/slider/themes/solar/charcoal/index.js +0 -1
  333. package/lib/slider/themes/solar/pearl/index.js +0 -1
  334. package/lib/slider/utils.d.ts +10 -10
  335. package/lib/slider/utils.js +10 -10
  336. package/lib/sparkline/index.d.ts +1 -1
  337. package/lib/sparkline/index.js +7 -8
  338. package/lib/sparkline/themes/halo/dark/index.js +0 -1
  339. package/lib/sparkline/themes/halo/light/index.js +0 -1
  340. package/lib/sparkline/themes/solar/charcoal/index.js +0 -1
  341. package/lib/sparkline/themes/solar/pearl/index.js +0 -1
  342. package/lib/swing-gauge/helpers.js +2 -2
  343. package/lib/swing-gauge/index.d.ts +19 -19
  344. package/lib/swing-gauge/index.js +91 -81
  345. package/lib/swing-gauge/themes/halo/dark/index.js +0 -1
  346. package/lib/swing-gauge/themes/halo/light/index.js +0 -1
  347. package/lib/swing-gauge/themes/solar/charcoal/index.js +0 -1
  348. package/lib/swing-gauge/themes/solar/pearl/index.js +0 -1
  349. package/lib/tab/index.d.ts +1 -1
  350. package/lib/tab/index.js +16 -27
  351. package/lib/tab/themes/halo/dark/index.js +1 -2
  352. package/lib/tab/themes/halo/light/index.js +1 -2
  353. package/lib/tab/themes/solar/charcoal/index.js +1 -2
  354. package/lib/tab/themes/solar/pearl/index.js +1 -2
  355. package/lib/tab-bar/helpers/animate.js +1 -1
  356. package/lib/tab-bar/index.d.ts +1 -1
  357. package/lib/tab-bar/index.js +34 -18
  358. package/lib/tab-bar/themes/halo/dark/index.js +1 -2
  359. package/lib/tab-bar/themes/halo/light/index.js +1 -2
  360. package/lib/tab-bar/themes/solar/charcoal/index.js +0 -1
  361. package/lib/tab-bar/themes/solar/pearl/index.js +0 -1
  362. package/lib/text-field/index.d.ts +1 -1
  363. package/lib/text-field/index.js +34 -31
  364. package/lib/text-field/themes/halo/dark/index.js +0 -1
  365. package/lib/text-field/themes/halo/light/index.js +0 -1
  366. package/lib/text-field/themes/solar/charcoal/index.js +0 -1
  367. package/lib/text-field/themes/solar/pearl/index.js +0 -1
  368. package/lib/time-picker/index.d.ts +6 -6
  369. package/lib/time-picker/index.js +103 -89
  370. package/lib/time-picker/themes/halo/dark/index.js +0 -1
  371. package/lib/time-picker/themes/halo/light/index.js +0 -1
  372. package/lib/time-picker/themes/solar/charcoal/index.js +0 -1
  373. package/lib/time-picker/themes/solar/pearl/index.js +0 -1
  374. package/lib/toggle/index.d.ts +1 -1
  375. package/lib/toggle/index.js +4 -3
  376. package/lib/toggle/themes/halo/dark/index.js +0 -1
  377. package/lib/toggle/themes/halo/light/index.js +0 -1
  378. package/lib/toggle/themes/solar/charcoal/index.js +0 -1
  379. package/lib/toggle/themes/solar/pearl/index.js +0 -1
  380. package/lib/tooltip/elements/title-tooltip.js +2 -2
  381. package/lib/tooltip/index.d.ts +27 -27
  382. package/lib/tooltip/index.js +42 -38
  383. package/lib/tooltip/managers/tooltip-manager.d.ts +1 -1
  384. package/lib/tooltip/themes/halo/dark/index.js +0 -1
  385. package/lib/tooltip/themes/halo/light/index.js +0 -1
  386. package/lib/tooltip/themes/solar/charcoal/index.js +0 -1
  387. package/lib/tooltip/themes/solar/pearl/index.js +0 -1
  388. package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
  389. package/lib/tornado-chart/elements/tornado-chart.js +2 -2
  390. package/lib/tornado-chart/elements/tornado-item.d.ts +2 -2
  391. package/lib/tornado-chart/elements/tornado-item.js +12 -10
  392. package/lib/tornado-chart/themes/halo/dark/index.js +0 -2
  393. package/lib/tornado-chart/themes/halo/light/index.js +0 -2
  394. package/lib/tornado-chart/themes/solar/charcoal/index.js +0 -2
  395. package/lib/tornado-chart/themes/solar/pearl/index.js +0 -2
  396. package/lib/tree/elements/tree-item.d.ts +3 -3
  397. package/lib/tree/elements/tree-item.js +21 -19
  398. package/lib/tree/elements/tree.d.ts +1 -1
  399. package/lib/tree/elements/tree.js +12 -11
  400. package/lib/tree/helpers/renderer.js +4 -3
  401. package/lib/tree/index.d.ts +1 -1
  402. package/lib/tree/managers/tree-manager.d.ts +1 -1
  403. package/lib/tree/managers/tree-manager.js +17 -18
  404. package/lib/tree/themes/halo/dark/index.js +0 -2
  405. package/lib/tree/themes/halo/light/index.js +0 -2
  406. package/lib/tree/themes/solar/charcoal/index.js +1 -3
  407. package/lib/tree/themes/solar/pearl/index.js +1 -3
  408. package/lib/tree-select/index.d.ts +9 -9
  409. package/lib/tree-select/index.js +91 -82
  410. package/lib/tree-select/themes/halo/dark/index.js +1 -2
  411. package/lib/tree-select/themes/halo/light/index.js +1 -2
  412. package/lib/tree-select/themes/solar/charcoal/index.js +1 -2
  413. package/lib/tree-select/themes/solar/pearl/index.js +1 -2
  414. package/lib/version.js +1 -1
  415. package/package.json +17 -16
  416. package/tsconfig.tsbuildinfo +1 -0
@@ -1,8 +1,8 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { ResponsiveElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
2
+ import { CSSResultGroup, PropertyValues, ResponsiveElement, TemplateResult } from '@refinitiv-ui/core';
3
3
  import '../canvas/index.js';
4
4
  import '../tooltip/index.js';
5
- import type { HeatmapXAxis, HeatmapCell, HeatmapConfig, HeatmapYAxis, HeatmapCustomisableProperties, HeatmapTooltipCallback, HeatmapRenderCallback } from './helpers/types';
5
+ import type { HeatmapCell, HeatmapConfig, HeatmapCustomisableProperties, HeatmapRenderCallback, HeatmapTooltipCallback, HeatmapXAxis, HeatmapYAxis } from './helpers/types';
6
6
  export type { HeatmapXAxis, HeatmapCell, HeatmapConfig, HeatmapYAxis, HeatmapCustomisableProperties, HeatmapTooltipCallback, HeatmapRenderCallback };
7
7
  /**
8
8
  * A graphical representation of data where the individual
@@ -239,9 +239,9 @@ export declare class Heatmap extends ResponsiveElement {
239
239
  */
240
240
  private initialiseRowTrack;
241
241
  /**
242
- * Initialize column track
243
- * @returns {void}
244
- */
242
+ * Initialize column track
243
+ * @returns {void}
244
+ */
245
245
  private initialiseColumnTrack;
246
246
  /**
247
247
  * Hit testing on heatmap
@@ -404,10 +404,10 @@ export declare class Heatmap extends ResponsiveElement {
404
404
  */
405
405
  private paintAllCellBackground;
406
406
  /**
407
- * Paints a single cell background colour
408
- * @param {HeatmapCell} cell cell to paint
409
- * @returns {void}
410
- */
407
+ * Paints a single cell background colour
408
+ * @param {HeatmapCell} cell cell to paint
409
+ * @returns {void}
410
+ */
411
411
  private paintCellBackground;
412
412
  /**
413
413
  * Construct and renders x-axis
@@ -1,16 +1,16 @@
1
1
  import { __decorate } from "tslib";
2
- import { ResponsiveElement, html, css } from '@refinitiv-ui/core';
2
+ import { ResponsiveElement, css, html } 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 { query } from '@refinitiv-ui/core/decorators/query.js';
6
- import { VERSION } from '../version.js';
7
6
  import { MicroTaskRunner } from '@refinitiv-ui/utils/async.js';
8
7
  import { color } from '@refinitiv-ui/utils/color.js';
9
8
  import '../canvas/index.js';
10
9
  import '../tooltip/index.js';
10
+ import { VERSION } from '../version.js';
11
+ import { blend, brighten, darken, interpolate, isLight } from './helpers/color.js';
12
+ import { MIN_FONT_SIZE, getMaximumTextWidth, getResponsiveFontSize } from './helpers/text.js';
11
13
  import { Track } from './helpers/track.js';
12
- import { blend, brighten, darken, isLight, interpolate } from './helpers/color.js';
13
- import { getResponsiveFontSize, getMaximumTextWidth, MIN_FONT_SIZE } from './helpers/text.js';
14
14
  const CELL_PADDING = 0.12;
15
15
  const CELL_MAX_TEXT_WIDTH = 1 - CELL_PADDING;
16
16
  const DEFAULT_CANVAS_RATIO = 0.75; // ratio — 4:3
@@ -37,13 +37,13 @@ let Heatmap = class Heatmap extends ResponsiveElement {
37
37
  :host {
38
38
  display: block;
39
39
  }
40
- #container{
40
+ #container {
41
41
  width: 100%;
42
42
  height: 100%;
43
43
  display: flex;
44
44
  }
45
45
  #canvas-container {
46
- min-width:0;
46
+ min-width: 0;
47
47
  display: flex;
48
48
  width: 100%;
49
49
  flex-direction: column;
@@ -52,14 +52,14 @@ let Heatmap = class Heatmap extends ResponsiveElement {
52
52
  #tooltip-overlay {
53
53
  position: absolute;
54
54
  }
55
- [part=canvas] {
55
+ [part='canvas'] {
56
56
  flex-grow: 1;
57
57
  }
58
- [part=x-axis] {
58
+ [part='x-axis'] {
59
59
  display: flex;
60
60
  align-items: center;
61
61
  }
62
- [part=y-axis]{
62
+ [part='y-axis'] {
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  }
@@ -133,7 +133,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
133
133
  */
134
134
  get columnCount() {
135
135
  let result = 0;
136
- this.rows?.forEach(columns => {
136
+ this.rows?.forEach((columns) => {
137
137
  if (columns.length > result) {
138
138
  result = columns.length;
139
139
  }
@@ -268,14 +268,14 @@ let Heatmap = class Heatmap extends ResponsiveElement {
268
268
  this.labelHiddenChanged();
269
269
  }
270
270
  // Re-paints whole canvas when at least one of the following properties changes
271
- if (changedProperties.has('config')
272
- || changedProperties.has('blend')
273
- || changedProperties.has('minPoint')
274
- || changedProperties.has('midPoint')
275
- || changedProperties.has('maxPoint')
276
- || changedProperties.has('saturation')
277
- || changedProperties.has('axisHidden')
278
- || changedProperties.has('labelWidth')) {
271
+ if (changedProperties.has('config') ||
272
+ changedProperties.has('blend') ||
273
+ changedProperties.has('minPoint') ||
274
+ changedProperties.has('midPoint') ||
275
+ changedProperties.has('maxPoint') ||
276
+ changedProperties.has('saturation') ||
277
+ changedProperties.has('axisHidden') ||
278
+ changedProperties.has('labelWidth')) {
279
279
  this.prepareAndPaint();
280
280
  }
281
281
  }
@@ -293,7 +293,8 @@ let Heatmap = class Heatmap extends ResponsiveElement {
293
293
  */
294
294
  /* c8 ignore start */
295
295
  onMouseMove(event) {
296
- if (event.composedPath().includes(this.canvas) || this.tooltipCallback && this.tooltipOverlay === event.target) {
296
+ if (event.composedPath().includes(this.canvas) ||
297
+ (this.tooltipCallback && this.tooltipOverlay === event.target)) {
297
298
  this.hoverCell = this.hitTest(event);
298
299
  }
299
300
  else {
@@ -350,9 +351,9 @@ let Heatmap = class Heatmap extends ResponsiveElement {
350
351
  this.rowTrack.margin = this.cellMargin;
351
352
  }
352
353
  /**
353
- * Initialize column track
354
- * @returns {void}
355
- */
354
+ * Initialize column track
355
+ * @returns {void}
356
+ */
356
357
  initialiseColumnTrack() {
357
358
  this.colTrack.init(this.offsetWidth, this.columnCount);
358
359
  this.colTrack.margin = this.cellMargin;
@@ -644,7 +645,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
644
645
  const label = typeof cell.customLabel === 'string' ? cell.customLabel : cell.label;
645
646
  if (this.canvasContext) {
646
647
  this.canvasContext.fillStyle = cell.customForegroundColor || cell.foregroundColor;
647
- this.canvasContext.fillText(label || '', cell.x + cell.width / 2, (cell.y + 1 + cell.height / 2) + margin);
648
+ this.canvasContext.fillText(label || '', cell.x + cell.width / 2, cell.y + 1 + cell.height / 2 + margin);
648
649
  }
649
650
  }
650
651
  /**
@@ -669,12 +670,15 @@ let Heatmap = class Heatmap extends ResponsiveElement {
669
670
  canvas.textAlign = 'center';
670
671
  canvas.textBaseline = 'middle';
671
672
  canvas.font = `${fontSize}px ${fontFamily}`;
672
- let isWithinMinCellWidth = ((this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth) <= CELL_MAX_TEXT_WIDTH;
673
+ let isWithinMinCellWidth = (this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth <=
674
+ CELL_MAX_TEXT_WIDTH;
673
675
  // Tries to get the largest possible font size that is within `CELL_MAX_TEXT_WIDTH`
674
676
  if (!isWithinMinCellWidth && fontSize !== MIN_FONT_SIZE) {
675
677
  while (!isWithinMinCellWidth) {
676
678
  canvas.font = `${fontSize}px ${fontFamily}`; // Should assigned new font size to canvas before calculated again.
677
- isWithinMinCellWidth = ((this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth) <= CELL_MAX_TEXT_WIDTH;
679
+ isWithinMinCellWidth =
680
+ (this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth <=
681
+ CELL_MAX_TEXT_WIDTH;
678
682
  // Stops when reaches minimum font-size
679
683
  if (fontSize === MIN_FONT_SIZE) {
680
684
  break;
@@ -684,7 +688,9 @@ let Heatmap = class Heatmap extends ResponsiveElement {
684
688
  }
685
689
  }
686
690
  }
687
- const isWithinMinCellHeight = this.hasCellHeader ? (fontSize * 2) < contentHeight : fontSize < contentHeight;
691
+ const isWithinMinCellHeight = this.hasCellHeader
692
+ ? fontSize * 2 < contentHeight
693
+ : fontSize < contentHeight;
688
694
  this.contentWithinCellBoundary = isWithinMinCellWidth && isWithinMinCellHeight;
689
695
  return this.contentWithinCellBoundary;
690
696
  }
@@ -738,10 +744,10 @@ let Heatmap = class Heatmap extends ResponsiveElement {
738
744
  }
739
745
  const saturateRatio = 1 - saturation;
740
746
  if (value > this.midPoint) {
741
- return ((value - this.midPoint) / (this.maxPoint - this.midPoint) * saturateRatio) + saturation;
747
+ return ((value - this.midPoint) / (this.maxPoint - this.midPoint)) * saturateRatio + saturation;
742
748
  }
743
749
  else {
744
- return ((value - this.midPoint) / (this.midPoint - this.minPoint) * saturateRatio) - saturation;
750
+ return ((value - this.midPoint) / (this.midPoint - this.minPoint)) * saturateRatio - saturation;
745
751
  }
746
752
  }
747
753
  /* c8 ignore stop */
@@ -795,7 +801,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
795
801
  const margin = this.labelHidden ? 0 : this.calculateHeaderMargin(cell.height);
796
802
  this.canvasContext.font = 'bold ' + labelFontStyle;
797
803
  this.canvasContext.fillStyle = cell.customForegroundColor || cell.foregroundColor;
798
- this.canvasContext.fillText(cell.header || '', cell.x + cell.width / 2, (cell.y + 1 + cell.height / 2) - margin);
804
+ this.canvasContext.fillText(cell.header || '', cell.x + cell.width / 2, cell.y + 1 + cell.height / 2 - margin);
799
805
  // Reverts font style to paint label correctly
800
806
  this.canvasContext.font = labelFontStyle;
801
807
  }
@@ -836,10 +842,10 @@ let Heatmap = class Heatmap extends ResponsiveElement {
836
842
  }
837
843
  }
838
844
  /**
839
- * Paints a single cell background colour
840
- * @param {HeatmapCell} cell cell to paint
841
- * @returns {void}
842
- */
845
+ * Paints a single cell background colour
846
+ * @param {HeatmapCell} cell cell to paint
847
+ * @returns {void}
848
+ */
843
849
  paintCellBackground(cell) {
844
850
  if (this.canvasContext) {
845
851
  this.canvasContext.fillStyle = cell.customBackgroundColor || cell.backgroundColor;
@@ -960,7 +966,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
960
966
  yAxisElement.removeChild(yAxisElement.lastChild);
961
967
  }
962
968
  }
963
- this.rowTrack.init(this.offsetHeight - (this.crossBox.offsetHeight + (this.cellMargin * 2)), this.rowCount);
969
+ this.rowTrack.init(this.offsetHeight - (this.crossBox.offsetHeight + this.cellMargin * 2), this.rowCount);
964
970
  // Clear yAxis element before re-create yAxis
965
971
  while (yAxisElement.children.length > laneCount) {
966
972
  if (yAxisElement.lastChild) {
@@ -1026,20 +1032,23 @@ let Heatmap = class Heatmap extends ResponsiveElement {
1026
1032
  render() {
1027
1033
  return html `
1028
1034
  <div id="container" @mousemove=${this.onMouseMove} @mouseleave=${this.onMouseLeave}>
1029
- ${this.config?.yAxis && !this.axisHidden ? html `
1030
- <div id="y-axis-container">
1031
- <div part="cross-box"></div>
1032
- <div part="y-axis"></div>
1033
- </div>` : null}
1035
+ ${this.config?.yAxis && !this.axisHidden
1036
+ ? html ` <div id="y-axis-container">
1037
+ <div part="cross-box"></div>
1038
+ <div part="y-axis"></div>
1039
+ </div>`
1040
+ : null}
1034
1041
  <div id="canvas-container">
1035
1042
  ${this.config?.xAxis && !this.axisHidden ? html `<div part="x-axis"></div>` : null}
1036
1043
  <ef-canvas part="canvas" @resize=${this.onCanvasResize}></ef-canvas>
1037
1044
  ${this.tooltipCallback ? html `<div id="tooltip-overlay"></div>` : null}
1038
1045
  </div>
1039
1046
  </div>
1040
- ${this.tooltipCallback ? html `
1041
- <ef-tooltip .condition=${this.tooltipCondition} .renderer=${this.tooltipRenderer}></ef-tooltip>
1042
- ` : null}
1047
+ ${this.tooltipCallback
1048
+ ? html `
1049
+ <ef-tooltip .condition=${this.tooltipCondition} .renderer=${this.tooltipRenderer}></ef-tooltip>
1050
+ `
1051
+ : null}
1043
1052
  `;
1044
1053
  }
1045
1054
  };
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/halo/dark';
2
2
  import '@refinitiv-ui/elements/tooltip/themes/halo/dark';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-heatmap', styles: ':host{--spacing:2;--below-point-color:#F5475B;--mid-point-color:#1A1A1A;--above-point-color:#39C46E;background-color:#1a1a1a;--below-point-color:#F5475B;--mid-point-color:#FFFFFF;--above-point-color:#39C46E}:host .x-axis-item{padding:4px 0}:host .y-axis-item{padding:0 4px}:host .x-axis-item,:host .y-axis-item,:host [part=cross-box]{color:#ccc;background-color:#1a1a1a;font-weight:600}:host [part=canvas]{color:#000}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/halo/light';
2
2
  import '@refinitiv-ui/elements/tooltip/themes/halo/light';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-heatmap', styles: ':host{--spacing:2;--below-point-color:#B63243;--mid-point-color:#FAFAFA;--above-point-color:#246B3E;background-color:#fafafa;--below-point-color:#D94255;--mid-point-color:#FFFFFF;--above-point-color:#309054}:host .x-axis-item{padding:4px 0}:host .y-axis-item{padding:0 4px}:host .x-axis-item,:host .y-axis-item,:host [part=cross-box]{color:#1a1a1a;background-color:#fff;font-weight:600}:host [part=canvas]{color:#fff}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/solar/charcoal';
2
2
  import '@refinitiv-ui/elements/tooltip/themes/solar/charcoal';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-heatmap', styles: ':host{--spacing:2;--below-point-color:#F5475B;--mid-point-color:#1A1A1C;--above-point-color:#39C46E;background-color:#1a1a1c}:host [part=canvas]{color:rgba(255,255,255,.8)}:host .x-axis-item{padding:4px 0}:host .y-axis-item{padding:0 4px}:host .x-axis-item,:host .y-axis-item,:host [part=cross-box]{background-color:#212124;color:#c2c2c2}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/solar/pearl';
2
2
  import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-heatmap', styles: ':host{--spacing:2;--below-point-color:#D94255;--mid-point-color:#FFFFFF;--above-point-color:#309054;background-color:#fff}:host [part=canvas]{color:rgba(0,0,0,.8)}:host .x-axis-item{padding:4px 0}:host .y-axis-item{padding:0 4px}:host .x-axis-item,:host .y-axis-item,:host [part=cross-box]{background-color:#e4e8ed;color:#484848}' }}));
@@ -1,6 +1,6 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { BasicElement, CSSResultGroup, TemplateResult, PropertyValues } from '@refinitiv-ui/core';
3
- import { type Config } from '../configuration/index.js';
2
+ import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
+ import type { Config } from '../configuration/index.js';
4
4
  export declare class Icon extends BasicElement {
5
5
  /**
6
6
  * Element version number
package/lib/icon/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { __decorate } from "tslib";
2
- import { BasicElement, svg, css } from '@refinitiv-ui/core';
2
+ import { consume } from '@lit-labs/context';
3
+ import { BasicElement, css, svg } from '@refinitiv-ui/core';
3
4
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
5
  import { property } from '@refinitiv-ui/core/decorators/property.js';
5
6
  import { unsafeSVG } from '@refinitiv-ui/core/directives/unsafe-svg.js';
6
- import { Deferred, isUrl, isBase64svg } from '@refinitiv-ui/utils/loader.js';
7
+ import { Deferred, isBase64svg, isUrl } from '@refinitiv-ui/utils/loader.js';
8
+ import { efConfig } from '../configuration/index.js';
7
9
  import { VERSION } from '../version.js';
8
10
  import { IconLoader } from './utils/IconLoader.js';
9
- import { consume } from '@lit-labs/context';
10
- import { efConfig } from '../configuration/index.js';
11
11
  import { SpriteLoader } from './utils/SpriteLoader.js';
12
12
  const EmptyTemplate = svg ``;
13
13
  /**
@@ -80,7 +80,7 @@ let Icon = class Icon extends BasicElement {
80
80
  this._template = EmptyTemplate;
81
81
  this.iconReady = new Deferred();
82
82
  // `iconReady` resolves at this stage so that `updateComplete` would be resolvable
83
- // even in the case that both `icon` and `src` attribute are missing.
83
+ // even in the case that `icon` attribute is missing.
84
84
  this.iconReady.resolve();
85
85
  }
86
86
  /**
@@ -88,7 +88,7 @@ let Icon = class Icon extends BasicElement {
88
88
  * @returns icon map if exists
89
89
  */
90
90
  get iconMap() {
91
- return this.icon && this.config?.icon.map[this.icon] || null;
91
+ return (this.icon && this.config?.icon.map[this.icon]) || null;
92
92
  }
93
93
  /**
94
94
  * Called after the component is first rendered
@@ -122,7 +122,7 @@ let Icon = class Icon extends BasicElement {
122
122
  if (!this._icon) {
123
123
  return false;
124
124
  }
125
- if (this.iconMap && (!isBase64svg(this.iconMap) && !isUrl(this.iconMap))) {
125
+ if (this.iconMap && !isBase64svg(this.iconMap) && !isUrl(this.iconMap)) {
126
126
  return false;
127
127
  }
128
128
  return true;
@@ -155,8 +155,7 @@ let Icon = class Icon extends BasicElement {
155
155
  async loadAndRenderIcon(src) {
156
156
  const iconTemplateCacheItem = iconTemplateCache.get(src);
157
157
  if (!iconTemplateCacheItem) {
158
- iconTemplateCache.set(src, IconLoader.loadSVG(src)
159
- .then(body => svg `${unsafeSVG(body)}`));
158
+ iconTemplateCache.set(src, IconLoader.loadSVG(src).then((body) => svg `${unsafeSVG(body)}`));
160
159
  return this.loadAndRenderIcon(src); // Load again and await cache result
161
160
  }
162
161
  this.template = await iconTemplateCacheItem;
@@ -170,8 +169,7 @@ let Icon = class Icon extends BasicElement {
170
169
  async loadAndRenderSpriteIcon(iconName) {
171
170
  const iconTemplateCacheItem = iconTemplateCache.get(iconName);
172
171
  if (!iconTemplateCacheItem) {
173
- iconTemplateCache.set(iconName, SpriteLoader.loadSpriteSVG(iconName)
174
- .then(body => svg `${unsafeSVG(body)}`));
172
+ iconTemplateCache.set(iconName, SpriteLoader.loadSpriteSVG(iconName).then((body) => svg `${unsafeSVG(body)}`));
175
173
  return this.loadAndRenderIcon(iconName); // Load again and await cache result
176
174
  }
177
175
  this.template = await iconTemplateCacheItem;
@@ -1,2 +1 @@
1
-
2
1
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-halo/resources/sprites/icons.svg\';--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-halo/resources/sprites/icons.svg\';font-size:16px}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#334bff solid 1px}:host([icon]) circle,:host([icon]) ellipse,:host([icon]) g,:host([icon]) line,:host([icon]) path,:host([icon]) polygon,:host([icon]) polyline,:host([icon]) rect{vector-effect:non-scaling-stroke}' }}));
@@ -1,2 +1 @@
1
-
2
1
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-halo/resources/sprites/icons.svg\';--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-halo/resources/sprites/icons.svg\';font-size:16px}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#334bff solid 1px}:host([icon]) circle,:host([icon]) ellipse,:host([icon]) g,:host([icon]) line,:host([icon]) path,:host([icon]) polygon,:host([icon]) polyline,:host([icon]) rect{vector-effect:non-scaling-stroke}' }}));
@@ -1,2 +1 @@
1
-
2
1
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-halo/resources/sprites/icons.svg\';--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-solar/resources/sprites/icons.svg\'}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#f93 solid 1px}' }}));
@@ -1,2 +1 @@
1
-
2
1
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-halo/resources/sprites/icons.svg\';--cdn-sprite-prefix:\'https://cdn.refinitiv.com/public/libs/elf/assets/elf-theme-solar/resources/sprites/icons.svg\'}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#ffb266 solid 1px}' }}));
@@ -1,5 +1,5 @@
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
- import type { RGBColor, HSLColor } from '@refinitiv-ui/utils/color.js';
1
+ import type { HSLColor, RGBColor } from '@refinitiv-ui/utils/color.js';
2
+ import type { AreaSeriesPartialOptions, AreaStyleOptions, BarData, BarSeriesPartialOptions, BarStyleOptions, CandlestickSeriesPartialOptions, CandlestickStyleOptions, ChartOptions, DeepPartial, HistogramData, HistogramSeriesPartialOptions, HistogramStyleOptions, ISeriesApi, LineData, LineSeriesPartialOptions, LineStyleOptions, SeriesPartialOptions, SeriesType } from 'lightweight-charts';
3
3
  type SeriesOptions = AreaSeriesPartialOptions | BarSeriesPartialOptions | CandlestickSeriesPartialOptions | HistogramSeriesPartialOptions | LineSeriesPartialOptions;
4
4
  type SeriesStyleOptions = LineStyleOptions & AreaStyleOptions & BarStyleOptions & CandlestickStyleOptions & HistogramStyleOptions;
5
5
  type SeriesData = LineData[] | BarData[] | HistogramData[];
@@ -43,4 +43,4 @@ interface InteractiveChartSeries {
43
43
  data: SeriesData;
44
44
  seriesOptions?: SeriesPartialOptions<SeriesOptions>;
45
45
  }
46
- export { InteractiveChartConfig, InteractiveChartSeries, Time, Theme, RowLegend, SeriesList, SeriesDataItem, SeriesStyleOptions, ColorToStringFunction, LegendStyle };
46
+ export { InteractiveChartConfig, InteractiveChartSeries, Time, Theme, RowLegend, SeriesList, SeriesData, SeriesDataItem, SeriesOptions, SeriesStyleOptions, ColorToStringFunction, LegendStyle };
@@ -1,10 +1,10 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { ResponsiveElement, TemplateResult, CSSResultGroup, PropertyValues, ElementSize } from '@refinitiv-ui/core';
3
2
  import { IChartApi, MouseEventParams } from 'lightweight-charts';
3
+ import { CSSResultGroup, ElementSize, PropertyValues, ResponsiveElement, TemplateResult } from '@refinitiv-ui/core';
4
4
  import '../tooltip/index.js';
5
- import type { InteractiveChartConfig, InteractiveChartSeries, RowLegend, SeriesList, SeriesDataItem } from './helpers/types';
6
5
  import { LegendStyle } from './helpers/types.js';
7
- export type { InteractiveChartConfig, InteractiveChartSeries, LegendStyle };
6
+ import type { InteractiveChartConfig, InteractiveChartSeries, RowLegend, SeriesData, SeriesDataItem, SeriesList, SeriesOptions, SeriesStyleOptions, Theme, Time } from './helpers/types.js';
7
+ export type { InteractiveChartConfig, InteractiveChartSeries, Time, Theme, RowLegend, SeriesList, SeriesData, SeriesDataItem, SeriesOptions, SeriesStyleOptions, LegendStyle };
8
8
  /**
9
9
  * A charting component that allows you to create several use cases of financial chart.
10
10
  * By lightweight-charts library.
@@ -26,7 +26,7 @@ export declare class InteractiveChart extends ResponsiveElement {
26
26
  /**
27
27
  * Chart configurations for init chart
28
28
  * @type {InteractiveChartConfig}
29
- */
29
+ */
30
30
  config: InteractiveChartConfig | null;
31
31
  /**
32
32
  * Hide legend
@@ -96,9 +96,9 @@ export declare class InteractiveChart extends ResponsiveElement {
96
96
  */
97
97
  resizedCallback(size: ElementSize): void;
98
98
  /**
99
- * Legend value observer
100
- * @returns {void}
101
- */
99
+ * Legend value observer
100
+ * @returns {void}
101
+ */
102
102
  private onLegendChange;
103
103
  /**
104
104
  * Legend style observer
@@ -108,9 +108,9 @@ export declare class InteractiveChart extends ResponsiveElement {
108
108
  */
109
109
  private onLegendStyleChange;
110
110
  /**
111
- * Jump last value observer
112
- * @returns {void}
113
- */
111
+ * Jump last value observer
112
+ * @returns {void}
113
+ */
114
114
  private onJumpButtonChange;
115
115
  /**
116
116
  * update width and height of chart
@@ -179,15 +179,15 @@ export declare class InteractiveChart extends ResponsiveElement {
179
179
  */
180
180
  private convertColorToString;
181
181
  /**
182
- * Create data configuration from theme
183
- * @returns {void}
184
- */
182
+ * Create data configuration from theme
183
+ * @returns {void}
184
+ */
185
185
  private createSeriesOptions;
186
186
  /**
187
- * Apply Theme to chart
188
- * @param config value config
189
- * @returns {void}
190
- */
187
+ * Apply Theme to chart
188
+ * @param config value config
189
+ * @returns {void}
190
+ */
191
191
  private applyTheme;
192
192
  /**
193
193
  * Apply text color legend from chart options
@@ -253,13 +253,13 @@ export declare class InteractiveChart extends ResponsiveElement {
253
253
  */
254
254
  private createSpanOHLC;
255
255
  /**
256
- * Create text used by several series types such as bars or candlesticks
257
- * @param rowLegend Legend element
258
- * @param rowData Value of series
259
- * @param priceColor color of series
260
- * @param index Series index
261
- * @returns {void}
262
- */
256
+ * Create text used by several series types such as bars or candlesticks
257
+ * @param rowLegend Legend element
258
+ * @param rowData Value of series
259
+ * @param priceColor color of series
260
+ * @param index Series index
261
+ * @returns {void}
262
+ */
263
263
  private createTextOHLC;
264
264
  /**
265
265
  * Create text price used by several series types
@@ -335,11 +335,11 @@ export declare class InteractiveChart extends ResponsiveElement {
335
335
  */
336
336
  colors(): string[];
337
337
  /**
338
- * A `CSSResultGroup` that will be used
339
- * to style the host, slotted children
340
- * and the internal template of the element.
341
- * @return CSS template
342
- */
338
+ * A `CSSResultGroup` that will be used
339
+ * to style the host, slotted children
340
+ * and the internal template of the element.
341
+ * @return CSS template
342
+ */
343
343
  static get styles(): CSSResultGroup;
344
344
  /**
345
345
  * A `TemplateResult` that will be used