@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,15 +1,15 @@
1
1
  var InteractiveChart_1;
2
2
  import { __decorate } from "tslib";
3
- import { ResponsiveElement, html, css } from '@refinitiv-ui/core';
3
+ import { createChart as chart } from 'lightweight-charts';
4
+ import { ResponsiveElement, css, html } from '@refinitiv-ui/core';
4
5
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
6
  import { property } from '@refinitiv-ui/core/decorators/property.js';
6
7
  import { query } from '@refinitiv-ui/core/decorators/query.js';
7
- import { VERSION } from '../version.js';
8
8
  import { color as parseColor } from '@refinitiv-ui/utils/color.js';
9
- import { createChart as chart } from 'lightweight-charts';
10
9
  import '../tooltip/index.js';
11
- import { LegendStyle } from './helpers/types.js';
10
+ import { VERSION } from '../version.js';
12
11
  import { merge } from './helpers/merge.js';
12
+ import { LegendStyle } from './helpers/types.js';
13
13
  const NOT_AVAILABLE_DATA = 'N/A';
14
14
  const NO_DATA_POINT = '--';
15
15
  /**
@@ -24,7 +24,7 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
24
24
  /**
25
25
  * Chart configurations for init chart
26
26
  * @type {InteractiveChartConfig}
27
- */
27
+ */
28
28
  this.config = null;
29
29
  /**
30
30
  * Hide legend
@@ -185,9 +185,9 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
185
185
  }
186
186
  }
187
187
  /**
188
- * Legend value observer
189
- * @returns {void}
190
- */
188
+ * Legend value observer
189
+ * @returns {void}
190
+ */
191
191
  onLegendChange() {
192
192
  if (!this.disabledLegend) {
193
193
  this.createLegend();
@@ -214,9 +214,9 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
214
214
  }
215
215
  }
216
216
  /**
217
- * Jump last value observer
218
- * @returns {void}
219
- */
217
+ * Jump last value observer
218
+ * @returns {void}
219
+ */
220
220
  onJumpButtonChange() {
221
221
  if (!this.disabledJumpButton) {
222
222
  this.createJumpButton(this.width, this.height);
@@ -410,9 +410,9 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
410
410
  return color || {};
411
411
  }
412
412
  /**
413
- * Create data configuration from theme
414
- * @returns {void}
415
- */
413
+ * Create data configuration from theme
414
+ * @returns {void}
415
+ */
416
416
  createSeriesOptions() {
417
417
  if (this.theme) {
418
418
  let colorIndex = 0;
@@ -464,12 +464,12 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
464
464
  wickDownColor: this.theme.chartDownColor
465
465
  };
466
466
  // Update color index
467
- if (!seriesOptions.upColor
468
- || !seriesOptions.downColor
469
- || !seriesOptions.borderUpColor
470
- || !seriesOptions.borderDownColor
471
- || !seriesOptions.wickUpColor
472
- || !seriesOptions.wickDownColor) {
467
+ if (!seriesOptions.upColor ||
468
+ !seriesOptions.downColor ||
469
+ !seriesOptions.borderUpColor ||
470
+ !seriesOptions.borderDownColor ||
471
+ !seriesOptions.wickUpColor ||
472
+ !seriesOptions.wickDownColor) {
473
473
  colorIndex++;
474
474
  }
475
475
  }
@@ -484,7 +484,8 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
484
484
  }
485
485
  // Update config seriesOptions not have seriesOptions
486
486
  if (!this.internalConfig.series[index].seriesOptions) {
487
- this.internalConfig.series[index].seriesOptions = seriesThemeOptions;
487
+ this.internalConfig.series[index].seriesOptions =
488
+ seriesThemeOptions;
488
489
  }
489
490
  else {
490
491
  merge(seriesOptions, seriesThemeOptions);
@@ -493,10 +494,10 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
493
494
  }
494
495
  }
495
496
  /**
496
- * Apply Theme to chart
497
- * @param config value config
498
- * @returns {void}
499
- */
497
+ * Apply Theme to chart
498
+ * @param config value config
499
+ * @returns {void}
500
+ */
500
501
  applyTheme(config) {
501
502
  if (this.chart && this.theme) {
502
503
  const style = getComputedStyle(this);
@@ -628,7 +629,7 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
628
629
  for (let idx = 0; idx < this.internalConfig.series.length; idx++) {
629
630
  const chartType = this.internalConfig.series[idx].type;
630
631
  const dataSet = this.internalConfig.series[idx].data || [];
631
- const symbol = (this.internalConfig.series[idx].symbolName || this.internalConfig.series[idx].symbol) || '';
632
+ const symbol = this.internalConfig.series[idx].symbolName || this.internalConfig.series[idx].symbol || '';
632
633
  const isLegendVisible = this.internalConfig.series[idx].legendVisible !== false;
633
634
  // Create row legend element
634
635
  if (!rowLegend) {
@@ -650,11 +651,11 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
650
651
  }
651
652
  this.legendContainer.appendChild(rowLegendElem);
652
653
  }
653
- /* Update value legend element on subscribeCrosshairMove.
654
- * Don't need to be updated if chart has no data.
655
- */
656
- /* c8 ignore start */
657
654
  else if (rowLegend && dataSet.length) {
655
+ /* Update value legend element on subscribeCrosshairMove.
656
+ * Don't need to be updated if chart has no data.
657
+ */
658
+ /* c8 ignore start */
658
659
  let value;
659
660
  let priceColor = '';
660
661
  // When have price on event moved on the crosshair
@@ -675,7 +676,10 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
675
676
  const latestData = dataSet[dataSet.length - 1];
676
677
  if (latestData) {
677
678
  priceColor = this.getColorInSeries(latestData, chartType, idx);
678
- value = chartType === 'bar' || chartType === 'candlestick' ? latestData : latestData.value;
679
+ value =
680
+ chartType === 'bar' || chartType === 'candlestick'
681
+ ? latestData
682
+ : latestData.value;
679
683
  this.isCrosshairVisible = false;
680
684
  this.hasDataPoint = true;
681
685
  }
@@ -704,7 +708,7 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
704
708
  if (chartType === 'bar' || chartType === 'candlestick') {
705
709
  if (!this.hasDataPoint && rowLegendElem instanceof NodeList) {
706
710
  const spanElem = rowLegendElem[index].querySelectorAll('span.price,span.ohlc');
707
- spanElem.forEach(span => rowLegendElem[index].removeChild(span));
711
+ spanElem.forEach((span) => rowLegendElem[index].removeChild(span));
708
712
  const span = document.createElement('span');
709
713
  span.className = 'price';
710
714
  span.textContent = value;
@@ -732,16 +736,18 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
732
736
  }
733
737
  }
734
738
  /**
735
- * Create text used by several series types such as bars or candlesticks
736
- * @param rowLegend Legend element
737
- * @param rowData Value of series
738
- * @param priceColor color of series
739
- * @param index Series index
740
- * @returns {void}
741
- */
739
+ * Create text used by several series types such as bars or candlesticks
740
+ * @param rowLegend Legend element
741
+ * @param rowData Value of series
742
+ * @param priceColor color of series
743
+ * @param index Series index
744
+ * @returns {void}
745
+ */
742
746
  createTextOHLC(rowLegend, rowData, priceColor, index) {
743
747
  // Uses price formatter if provided
744
- const formatter = this.internalConfig.series[index].hasOwnProperty('legendPriceFormatter') ? this.internalConfig.series[index].legendPriceFormatter : null;
748
+ const formatter = this.internalConfig.series[index].hasOwnProperty('legendPriceFormatter')
749
+ ? this.internalConfig.series[index].legendPriceFormatter
750
+ : null;
745
751
  if (formatter) {
746
752
  rowData = {
747
753
  open: formatter(rowData.open),
@@ -879,7 +885,9 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
879
885
  return this.getLegendPriceColor(this.seriesList[index].options().color);
880
886
  }
881
887
  else if (chartType === 'candlestick') {
882
- const value = seriesData.hasOwnProperty('seriesPrices') ? seriesData?.seriesPrices.get(this.seriesList[index]) : seriesData;
888
+ const value = seriesData.hasOwnProperty('seriesPrices')
889
+ ? seriesData?.seriesPrices.get(this.seriesList[index])
890
+ : seriesData;
883
891
  const barStyle = this.seriesList[index].options();
884
892
  const colorBar = value.close > value.open ? barStyle.borderUpColor : barStyle.borderDownColor;
885
893
  return colorBar;
@@ -891,7 +899,9 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
891
899
  return this.getLegendPriceColor(this.seriesList[index].options().lineColor);
892
900
  }
893
901
  else if (chartType === 'volume') {
894
- const priceValue = seriesData.hasOwnProperty('seriesPrices') ? seriesData.seriesPrices.get(this.seriesList[index]) : seriesData.value;
902
+ const priceValue = seriesData.hasOwnProperty('seriesPrices')
903
+ ? seriesData.seriesPrices.get(this.seriesList[index])
904
+ : seriesData.value;
895
905
  let dataItem = {};
896
906
  this.internalConfig.series[index].data.forEach((dataConfig) => {
897
907
  const data = dataConfig;
@@ -899,10 +909,10 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
899
909
  const timeSeriesData = seriesData.time;
900
910
  // if via time point data string format 'yyyy-mm-dd' or object '{ year: 2019, month: 6, day: 1 }'
901
911
  if (time.hasOwnProperty('day') && time.hasOwnProperty('month') && time.hasOwnProperty('year')) {
902
- if (time.day === timeSeriesData.day
903
- && time.month === timeSeriesData.month
904
- && time.year === timeSeriesData.year
905
- && data.value === priceValue) {
912
+ if (time.day === timeSeriesData.day &&
913
+ time.month === timeSeriesData.month &&
914
+ time.year === timeSeriesData.year &&
915
+ data.value === priceValue) {
906
916
  dataItem = dataConfig;
907
917
  }
908
918
  }
@@ -936,7 +946,7 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
936
946
  const position = this.getPriceScalePosition();
937
947
  const pricePosition = position === 'left' ? 30 : 0;
938
948
  const buttonTop = `${height - 70}px`;
939
- const buttonLeft = `${(width + pricePosition) - 100}px`;
949
+ const buttonLeft = `${width + pricePosition - 100}px`;
940
950
  this.jumpButtonContainer.style.top = buttonTop;
941
951
  this.jumpButtonContainer.style.left = buttonLeft;
942
952
  // Create subscribeVisibleTimeRangeChange
@@ -995,11 +1005,11 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
995
1005
  return colors;
996
1006
  }
997
1007
  /**
998
- * A `CSSResultGroup` that will be used
999
- * to style the host, slotted children
1000
- * and the internal template of the element.
1001
- * @return CSS template
1002
- */
1008
+ * A `CSSResultGroup` that will be used
1009
+ * to style the host, slotted children
1010
+ * and the internal template of the element.
1011
+ * @return CSS template
1012
+ */
1003
1013
  static get styles() {
1004
1014
  return css `
1005
1015
  :host {
@@ -1009,7 +1019,7 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
1009
1019
  z-index: 0;
1010
1020
  }
1011
1021
 
1012
- [part=legend] {
1022
+ [part='legend'] {
1013
1023
  position: absolute;
1014
1024
  z-index: 1000;
1015
1025
  }
@@ -1029,8 +1039,12 @@ let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends Respo
1029
1039
  <div part="jump-button"></div>
1030
1040
  </div>
1031
1041
  <div part="branding-container" title="" tooltip="Powered by Trading View">
1032
- <svg width="33" height="19" viewBox="0 0 611 314" part="branding">
1033
- <path fill-rule="evenodd" clip-rule="evenodd" d="M341 124C375.242 124 403 96.2417 403 62C403 27.7583 375.242 0 341 0C306.758 0 279 27.7583 279 62C279 96.2417 306.758 124 341 124ZM481 314H337L467 4H611L481 314ZM124 4H248V128V314H124V128H0V4H124Z"/>
1042
+ <svg width="33" height="19" viewBox="0 0 611 314" part="branding">
1043
+ <path
1044
+ fill-rule="evenodd"
1045
+ clip-rule="evenodd"
1046
+ d="M341 124C375.242 124 403 96.2417 403 62C403 27.7583 375.242 0 341 0C306.758 0 279 27.7583 279 62C279 96.2417 306.758 124 341 124ZM481 314H337L467 4H611L481 314ZM124 4H248V128V314H124V128H0V4H124Z"
1047
+ />
1034
1048
  </svg>
1035
1049
  </div>
1036
1050
  <div part="chart"></div>
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/halo/dark';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-interactive-chart', styles: ':host{--chart-color-1:#6678FF;--chart-color-2:#FFFFFF;--chart-color-3:#FFC800;--chart-color-4:#9064CD;--chart-color-5:#00D0D4;--chart-color-6:#FF5000;--chart-color-7:#00C389;--chart-color-8:#EA2E6C;--chart-color-9:#999999;--chart-color-10:#3BBAFF;--line-width:2;--fill-opacity:0.4;--text-color:rgba(204, 204, 204, 0.8);--background-color:#1A1A1A;--chart-up-color:#39C46E;--chart-down-color:#F5475B;--cross-hair-color:#CCCCCC;--grid-vert-line-color:rgba(38, 38, 38, 0.5);--grid-horz-line-color:rgba(38, 38, 38, 0.5);--scale-price-border-color:rgba(38, 38, 38, 0.5);--scale-times-border-color:rgba(38, 38, 38, 0.5)}:host [part=legend]{top:15px;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#ccc;border:1px solid #0d0d0d;box-shadow:0 0 0 0 rgba(0,0,0,.5);border-radius:100%;z-index:1000;cursor:pointer;background-color:#1a1a1a}:host [part=jump-button-container]:hover{color:#fff;border-color:#1429bd;box-shadow:0 0 0 0 rgba(0,0,0,.8);background-color:#343434}:host [part=jump-button-container]:active{color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.5);background-color:#1a1a1a}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #ccc;border-right:2px solid #ccc;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(204,204,204,.8)}:host [part=jump-button-container],:host [part=jump-button-container]:hover,:host [part=jump-button]{border-color:grey}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/halo/light';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-interactive-chart', styles: ':host{--chart-color-1:#334BFF;--chart-color-2:#000000;--chart-color-3:#7F6400;--chart-color-4:#71549F;--chart-color-5:#007678;--chart-color-6:#CC4000;--chart-color-7:#007653;--chart-color-8:#D22962;--chart-color-9:#595959;--chart-color-10:#236F99;--line-width:2;--fill-opacity:0.4;--text-color:rgba(13, 13, 13, 0.8);--background-color:#FAFAFA;--chart-up-color:#246B3E;--chart-down-color:#B63243;--cross-hair-color:#404040;--grid-vert-line-color:rgba(242, 242, 242, 0.5);--grid-horz-line-color:rgba(242, 242, 242, 0.5);--scale-price-border-color:rgba(242, 242, 242, 0.5);--scale-times-border-color:rgba(242, 242, 242, 0.5)}:host [part=legend]{top:15px;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#0d0d0d;border:1px solid #ccc;box-shadow:0 0 0 0 rgba(0,0,0,.25);border-radius:100%;z-index:1000;cursor:pointer;background-color:#fafafa}:host [part=jump-button-container]:hover{color:#fff;border-color:#1429bd;box-shadow:0 0 0 0 rgba(0,0,0,.55);background-color:#fff}:host [part=jump-button-container]:active{color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.25);background-color:#fafafa}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #0d0d0d;border-right:2px solid #0d0d0d;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(13,13,13,.8)}:host [part=jump-button-container],:host [part=jump-button-container]:hover,:host [part=jump-button]{border-color:#8d8d8d}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/solar/charcoal';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-interactive-chart', styles: ':host{--chart-color-1:#FF9933;--chart-color-2:#B10CF2;--chart-color-3:#7DE442;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#FFE433;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--line-width:2;--fill-opacity:0.4;--text-color:rgba(194, 194, 194, 0.8);--background-color:#1A1A1C;--chart-up-color:#39C46E;--chart-down-color:#F5475B;--cross-hair-color:#E2E2E2;--grid-vert-line-color:rgba(10, 10, 10, 0.5);--grid-horz-line-color:rgba(10, 10, 10, 0.5);--scale-price-border-color:rgba(10, 10, 10, 0.5);--scale-times-border-color:rgba(10, 10, 10, 0.5);--chart-color-1:#FF9933;--chart-color-2:#B10CF2;--chart-color-3:#7DE442;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#FFE433;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--chart-color-11:#48CBF7;--chart-color-12:#F3478E;--chart-color-13:#508BF7;--chart-color-14:#EFF748;--chart-color-15:#FF4043;--chart-color-16:#A7DB0B;--chart-color-17:#C2C2C2;--chart-color-18:#1578AD;--chart-color-19:#F2B530;--chart-color-20:#297835;--chart-color-21:#7045FF;--chart-color-22:#DD48F7;--chart-color-23:#09A8C0;--chart-color-24:#60E65C;--chart-color-25:#2960A3;--grid-vert-line-color:rgba(194, 194, 194, 0.1);--grid-horz-line-color:rgba(194, 194, 194, 0.1);--scale-price-border-color:rgba(194, 194, 194, 0.1);--scale-times-border-color:rgba(194, 194, 194, 0.1)}:host [part=legend]{top:15px;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#c2c2c2;background-color:#3c3c42;border:1px solid #000;box-shadow:0 0 0 0 rgba(0,0,0,.6);border-radius:100%;z-index:1000;cursor:pointer;background-image:linear-gradient(rgba(255,255,255,.1) 10%,rgba(255,255,255,0) 100%)}:host [part=jump-button-container]:hover{color:#e2e2e2;background-color:#4d4d55;border-color:#000;box-shadow:0 0 0 0 rgba(0,0,0,.9)}:host [part=jump-button-container]:active{background-color:#38383d;color:#c2c2c2;box-shadow:0 0 0 0 rgba(0,0,0,.6);background-image:linear-gradient(rgba(255,255,255,.1) 10%,rgba(255,255,255,0) 100%)}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #c2c2c2;border-right:2px solid #c2c2c2;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(194,194,194,.8)}:host [part=jump-button-container]:hover [part=jump-button]{border-color:#e2e2e2}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-interactive-chart', styles: ':host{--chart-color-1:#EE7600;--chart-color-2:#B10CF2;--chart-color-3:#309054;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#D9B500;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--line-width:2;--fill-opacity:0.4;--text-color:rgba(72, 72, 72, 0.8);--background-color:#FFFFFF;--chart-up-color:#309054;--chart-down-color:#D94255;--cross-hair-color:#ACAFB5;--grid-vert-line-color:rgba(213, 216, 219, 0.5);--grid-horz-line-color:rgba(213, 216, 219, 0.5);--scale-price-border-color:rgba(213, 216, 219, 0.5);--scale-times-border-color:rgba(213, 216, 219, 0.5);--chart-color-1:#EE7600;--chart-color-2:#B10CF2;--chart-color-3:#309054;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#D9B500;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--chart-color-11:#40B6DE;--chart-color-12:#F3478E;--chart-color-13:#508BF7;--chart-color-14:#AAB218;--chart-color-15:#FF4043;--chart-color-16:#80A808;--chart-color-17:#707070;--chart-color-18:#1578AC;--chart-color-19:#D9A22B;--chart-color-20:#297835;--chart-color-21:#7045FF;--chart-color-22:#DD48F7;--chart-color-23:#09A8C0;--chart-color-24:#4BB347;--chart-color-25:#2960A3;--grid-vert-line-color:rgba(72, 72, 72, 0.1);--grid-horz-line-color:rgba(72, 72, 72, 0.1);--scale-price-border-color:rgba(72, 72, 72, 0.1);--scale-times-border-color:rgba(72, 72, 72, 0.1)}:host [part=legend]{top:15px;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#505050;background-color:#fafbfc;border:1px solid #a9afba;box-shadow:0 0 0 0 rgba(0,0,0,.3);border-radius:100%;z-index:1000;cursor:pointer;background-image:linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,.1) 100%)}:host [part=jump-button-container]:hover{color:#1d1d1d;background-color:#fff;border-color:#a9afba;box-shadow:0 0 0 0 rgba(0,0,0,.6)}:host [part=jump-button-container]:active{background-color:#fff;color:#1d1d1d;box-shadow:0 0 0 0 rgba(0,0,0,.3);background-image:none}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #505050;border-right:2px solid #505050;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(72,72,72,.8)}:host [part=jump-button-container]:hover [part=jump-button]{border-color:#1d1d1d}' }}));
@@ -17,7 +17,7 @@ interface CommonLabelItem extends CommonItem {
17
17
  icon?: string;
18
18
  /**
19
19
  * Set the tooltip text
20
- */
20
+ */
21
21
  tooltip?: string;
22
22
  }
23
23
  /**
@@ -1,8 +1,8 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { ControlElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
- import '../icon/index.js';
2
+ import { CSSResultGroup, ControlElement, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
4
3
  import '../checkbox/index.js';
5
- import type { ItemType, ItemText, ItemHeader, ItemDivider, ItemData } from './helpers/types';
4
+ import '../icon/index.js';
5
+ import type { ItemData, ItemDivider, ItemHeader, ItemText, ItemType } from './helpers/types';
6
6
  export type { ItemType, ItemText, ItemHeader, ItemDivider, ItemData };
7
7
  /**
8
8
  * Used as a basic building block to compose complex custom elements,
package/lib/item/index.js CHANGED
@@ -2,14 +2,13 @@ import { __decorate } from "tslib";
2
2
  import { ControlElement, 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
- import { VERSION } from '../version.js';
6
- import '../icon/index.js';
5
+ import { createRef, ref } from '@refinitiv-ui/core/directives/ref.js';
6
+ import { isElementOverflown } from '@refinitiv-ui/utils/element.js';
7
7
  import '../checkbox/index.js';
8
+ import '../icon/index.js';
8
9
  import { registerOverflowTooltip } from '../tooltip/index.js';
9
- import { isElementOverflown } from '@refinitiv-ui/utils/element.js';
10
- import { createRef, ref } from '@refinitiv-ui/core/directives/ref.js';
11
- const isAllWhitespaceTextNode = (node) => node.nodeType === document.TEXT_NODE
12
- && !node.textContent?.trim();
10
+ import { VERSION } from '../version.js';
11
+ const isAllWhitespaceTextNode = (node) => node.nodeType === document.TEXT_NODE && !node.textContent?.trim();
13
12
  /**
14
13
  * Used as a basic building block to compose complex custom elements,
15
14
  * additionally it can be used by applications
@@ -85,7 +84,7 @@ let Item = class Item extends ControlElement {
85
84
  */
86
85
  this.checkSlotChildren = (event) => {
87
86
  const slot = event.target;
88
- this.isSlotEmpty = !slot.assignedNodes().filter(node => !this.isIgnorable(node)).length;
87
+ this.isSlotEmpty = !slot.assignedNodes().filter((node) => !this.isIgnorable(node)).length;
89
88
  this.requestUpdate();
90
89
  };
91
90
  }
@@ -107,18 +106,18 @@ let Item = class Item extends ControlElement {
107
106
  display: flex;
108
107
  align-items: center;
109
108
  }
110
- [part=checkbox] {
109
+ [part='checkbox'] {
111
110
  pointer-events: none;
112
111
  }
113
- [part=left],
114
- [part=right] {
112
+ [part='left'],
113
+ [part='right'] {
115
114
  display: flex;
116
115
  align-items: center;
117
116
  }
118
- [part=center] {
117
+ [part='center'] {
119
118
  flex: 1;
120
119
  }
121
- :host([type=divider]) > * {
120
+ :host([type='divider']) > * {
122
121
  display: none;
123
122
  }
124
123
  `;
@@ -128,8 +127,7 @@ let Item = class Item extends ControlElement {
128
127
  * @returns whether node can be ignored.
129
128
  */
130
129
  isIgnorable(node) {
131
- return node.nodeType === document.COMMENT_NODE
132
- || isAllWhitespaceTextNode(node);
130
+ return node.nodeType === document.COMMENT_NODE || isAllWhitespaceTextNode(node);
133
131
  }
134
132
  /**
135
133
  * Handles aria-selected or aria-checked when toggle between single and multiple selection mode
@@ -216,13 +214,15 @@ let Item = class Item extends ControlElement {
216
214
  * @returns return true if an item is overflown.
217
215
  */
218
216
  isItemOverflown() {
219
- return this.isItemElementOverflown(this.labelRef.value) || this.isItemElementOverflown(this.subLabelRef.value);
217
+ return (this.isItemElementOverflown(this.labelRef.value) || this.isItemElementOverflown(this.subLabelRef.value));
220
218
  }
221
219
  /**
222
220
  * Get icon template if icon attribute is defined
223
221
  */
224
222
  get iconTemplate() {
225
- return this.icon !== null && this.icon !== undefined ? html `<ef-icon part="icon" .icon="${this.icon}"></ef-icon>` : undefined;
223
+ return this.icon !== null && this.icon !== undefined
224
+ ? html `<ef-icon part="icon" .icon="${this.icon}"></ef-icon>`
225
+ : undefined;
226
226
  }
227
227
  /**
228
228
  * Get subLabel template if it is defined and no slot content present
@@ -241,7 +241,10 @@ let Item = class Item extends ControlElement {
241
241
  */
242
242
  get slotContent() {
243
243
  const nodes = this.slotRef.value?.assignedNodes() || [];
244
- return nodes.map(node => node.textContent).join(' ').trim();
244
+ return nodes
245
+ .map((node) => node.textContent)
246
+ .join(' ')
247
+ .trim();
245
248
  }
246
249
  /**
247
250
  * Get template for `for` attribute.
@@ -256,7 +259,9 @@ let Item = class Item extends ControlElement {
256
259
  */
257
260
  get multipleTemplate() {
258
261
  const multiple = this.multiple && (!this.type || this.type === 'text');
259
- return multiple ? html `<ef-checkbox part="checkbox" .checked="${this.selected}" tabindex="-1"></ef-checkbox>` : undefined;
262
+ return multiple
263
+ ? html `<ef-checkbox part="checkbox" .checked="${this.selected}" tabindex="-1"></ef-checkbox>`
264
+ : undefined;
260
265
  }
261
266
  /**
262
267
  * Return true if the item can be highlighted. True if not disabled and type is Text
@@ -274,8 +279,7 @@ let Item = class Item extends ControlElement {
274
279
  render() {
275
280
  return html `
276
281
  <div part="left">
277
- ${this.iconTemplate}
278
- ${this.multipleTemplate}
282
+ ${this.iconTemplate} ${this.multipleTemplate}
279
283
  <slot name="left"></slot>
280
284
  </div>
281
285
  <div part="center" ${ref(this.labelRef)}>
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/halo/dark';
2
2
  import '@refinitiv-ui/elements/checkbox/themes/halo/dark';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-item', styles: ':host{line-height:normal;outline:0;cursor:pointer;padding:0 8px;min-height:24px;box-sizing:border-box;touch-action:manipulation}:host([selected]){color:#fff;font-weight:600}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:#1429bd;color:#fff}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(204,204,204,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#999;background-color:transparent;font-size:83%;font-weight:600;border:none;height:24px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#404040,#404040) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=right] ::slotted(*){margin-left:.5em}:host [part=checkbox]{margin-right:8px}:host [part=sub-label]{font-size:90%}:host([sub-label]){padding:4px 8px}:host([selected]:not([highlighted]):not([focused])){background-color:#333}:host([selected]:not([highlighted]):not([focused]):not([multiple])){background-image:linear-gradient(#334bff,#334bff);background-size:4px 100%;background-position:left top;background-repeat:no-repeat}:host([selected][focused]),:host([selected][highlighted]){color:#fff}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/halo/light';
2
2
  import '@refinitiv-ui/elements/checkbox/themes/halo/light';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-item', styles: ':host{line-height:normal;outline:0;cursor:pointer;padding:0 8px;min-height:24px;box-sizing:border-box;touch-action:manipulation}:host([selected]){color:#0d0d0d;font-weight:600}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:#1429bd;color:#fff}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(64,64,64,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#737373;background-color:transparent;font-size:83%;font-weight:600;border:none;height:24px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#d9d9d9,#d9d9d9) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=right] ::slotted(*){margin-left:.5em}:host [part=checkbox]{margin-right:8px}:host [part=sub-label]{font-size:90%}:host([sub-label]){padding:4px 8px}:host([selected]:not([highlighted]):not([focused])){background-color:#e6e6e6}:host([selected]:not([highlighted]):not([focused]):not([multiple])){background-image:linear-gradient(#334bff,#334bff);background-size:4px 100%;background-position:left top;background-repeat:no-repeat}:host([selected][focused]),:host([selected][highlighted]){color:#fff}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
2
2
  import '@refinitiv-ui/elements/checkbox/themes/solar/charcoal';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-item', styles: ':host{line-height:normal;outline:0;cursor:pointer;padding:0 7px;min-height:22px;box-sizing:border-box;touch-action:manipulation}:host([selected]){color:#f93}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:rgba(255,255,255,.1)}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(194,194,194,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#c2c2c2;background-color:#4a4a52;font-size:100%;font-weight:400;border:1px solid #0a0a0a;height:22px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;border:none;border-top:1px solid #0a0a0a;border-bottom:1px solid transparent;text-transform:none;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#2e2e33,#2e2e33) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=sub-label]{font-size:80%}:host [part=icon],:host [part=left] ::slotted(*){margin-right:.33em}:host [part=right] ::slotted(*){margin-left:.33em}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/pearl';
2
2
  import '@refinitiv-ui/elements/checkbox/themes/solar/pearl';
3
-
4
3
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-item', styles: ':host{line-height:normal;outline:0;cursor:pointer;padding:0 7px;min-height:22px;box-sizing:border-box;touch-action:manipulation}:host([selected]){color:#ee7600}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:rgba(0,0,0,.08)}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#000}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(72,72,72,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#484848;background-color:#f2f3f7;font-size:100%;font-weight:400;border:1px solid #d5d8db;height:22px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;border:none;border-top:1px solid #d5d8db;border-bottom:1px solid transparent;text-transform:none;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#a9afba,#a9afba) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=sub-label]{font-size:80%}:host [part=icon],:host [part=left] ::slotted(*){margin-right:.33em}:host [part=right] ::slotted(*){margin-left:.33em}' }}));
package/lib/jsx.d.ts CHANGED
@@ -48,9 +48,11 @@ export declare namespace JSXInterface {
48
48
  innerHTML?: string;
49
49
  key?: string | number;
50
50
  accessKey?: string;
51
- class?: string | {
52
- [className: string]: boolean;
53
- };
51
+ class?:
52
+ | string
53
+ | {
54
+ [className: string]: boolean;
55
+ };
54
56
  contentEditable?: boolean | string;
55
57
  contenteditable?: boolean | string;
56
58
  contextMenu?: string;
@@ -220,4 +222,4 @@ export declare namespace JSXInterface {
220
222
  onTransitionEnd?: (event: TransitionEvent) => void;
221
223
  onTransitionEndCapture?: (event: TransitionEvent) => void;
222
224
  }
223
- }
225
+ }
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { BasicElement, TemplateResult, CSSResultGroup } from '@refinitiv-ui/core';
2
+ import { BasicElement, CSSResultGroup, TemplateResult } from '@refinitiv-ui/core';
3
3
  /**
4
4
  * Displays a text with alternative truncation
5
5
  */
@@ -1,10 +1,10 @@
1
1
  import { __decorate } from "tslib";
2
- import { BasicElement, html, css } from '@refinitiv-ui/core';
2
+ import { BasicElement, 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 { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
6
- import { VERSION } from '../version.js';
7
6
  import { addTooltipCondition, removeTooltipCondition } from '../tooltip/index.js';
7
+ import { VERSION } from '../version.js';
8
8
  /**
9
9
  * Configuration object
10
10
  * for mutations observers
@@ -144,7 +144,10 @@ let Label = class Label extends BasicElement {
144
144
  recalculate(mutation = false) {
145
145
  const oldValue = this.text;
146
146
  const raw = this.textContent || '';
147
- this.chunks = raw.split(_).map(chunk => chunk.trim()).filter(chunk => chunk);
147
+ this.chunks = raw
148
+ .split(_)
149
+ .map((chunk) => chunk.trim())
150
+ .filter((chunk) => chunk);
148
151
  const newValue = this.text;
149
152
  if (oldValue !== newValue) {
150
153
  this.requestUpdate('text', oldValue);
@@ -178,7 +181,9 @@ let Label = class Label extends BasicElement {
178
181
  }
179
182
  const leftPart = html `<div class="split left">${left.join(_)}</div>`;
180
183
  const centerPart = isSingleWord ? undefined : html `<div class="split center">&nbsp;</div>`;
181
- const rightPart = right.length ? html `<div class="split right"><span dir="ltr">${right.join(_)}</span></div>` : undefined;
184
+ const rightPart = right.length
185
+ ? html `<div class="split right"><span dir="ltr">${right.join(_)}</span></div>`
186
+ : undefined;
182
187
  return html `${leftPart}${centerPart}${rightPart}`;
183
188
  }
184
189
  /**
@@ -190,9 +195,7 @@ let Label = class Label extends BasicElement {
190
195
  '-webkit-line-clamp': `${this.lineClamp}`,
191
196
  wordBreak: this.lineClamp === 1 ? 'break-all' : ''
192
197
  };
193
- return html `
194
- <span class="clamp" style="${styleMap(styles)}">${this.text}</span>
195
- `;
198
+ return html ` <span class="clamp" style="${styleMap(styles)}">${this.text}</span> `;
196
199
  }
197
200
  /**
198
201
  * A `TemplateResult` that will be used
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/halo/dark';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-label', styles: ':host([warning]){color:#ffc800}:host([error]),:host([error][warning]){color:#f5475b}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/halo/light';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-label', styles: ':host([warning]){color:#cca000}:host([error]),:host([error][warning]){color:#d94255}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/solar/charcoal';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-label', styles: ':host([warning]){color:#f93}:host([error]),:host([error][warning]){color:#f5475b}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-label', styles: ':host([warning]){color:#f93}:host([error]),:host([error][warning]){color:#d94255}' }}));
@@ -1,5 +1,5 @@
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
  /**
4
4
  * Layout component for creating responsive applications and components
5
5
  * @fires resize - Fired when the element's size changes.
@@ -11,11 +11,11 @@ export declare class Layout extends ResponsiveElement {
11
11
  */
12
12
  static get version(): string;
13
13
  /**
14
- * A `CSSResultGroup` that will be used
15
- * to style the host, slotted children
16
- * and the internal template of the element.
17
- * @return CSS template
18
- */
14
+ * A `CSSResultGroup` that will be used
15
+ * to style the host, slotted children
16
+ * and the internal template of the element.
17
+ * @return CSS template
18
+ */
19
19
  static get styles(): CSSResultGroup;
20
20
  /**
21
21
  * Displays debug lines.
@@ -88,7 +88,7 @@ export declare class Layout extends ResponsiveElement {
88
88
  * A `TemplateResult` that will be used
89
89
  * to render the updated internal template.
90
90
  * @return Render template
91
- */
91
+ */
92
92
  protected render(): TemplateResult;
93
93
  }
94
94
  declare global {