@refinitiv-ui/elements 6.9.0-next.0 → 6.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/CHANGELOG.md +218 -380
  2. package/LICENSE +1 -1
  3. package/README.md +12 -10
  4. package/lib/accordion/index.d.ts +1 -1
  5. package/lib/accordion/index.js +4 -7
  6. package/lib/accordion/themes/halo/dark/index.js +0 -1
  7. package/lib/accordion/themes/halo/light/index.js +0 -1
  8. package/lib/accordion/themes/solar/charcoal/index.js +0 -1
  9. package/lib/accordion/themes/solar/pearl/index.js +0 -1
  10. package/lib/appstate-bar/index.d.ts +2 -2
  11. package/lib/appstate-bar/index.js +10 -4
  12. package/lib/appstate-bar/themes/halo/dark/index.js +0 -1
  13. package/lib/appstate-bar/themes/halo/light/index.js +0 -1
  14. package/lib/appstate-bar/themes/solar/charcoal/index.js +0 -1
  15. package/lib/appstate-bar/themes/solar/pearl/index.js +0 -1
  16. package/lib/autosuggest/index.d.ts +7 -7
  17. package/lib/autosuggest/index.js +89 -84
  18. package/lib/autosuggest/themes/halo/dark/index.js +0 -1
  19. package/lib/autosuggest/themes/halo/light/index.js +0 -1
  20. package/lib/autosuggest/themes/solar/charcoal/index.js +1 -2
  21. package/lib/autosuggest/themes/solar/pearl/index.js +1 -2
  22. package/lib/button/index.js +7 -10
  23. package/lib/button/themes/halo/dark/index.js +0 -1
  24. package/lib/button/themes/halo/light/index.js +0 -1
  25. package/lib/button/themes/solar/charcoal/index.js +0 -1
  26. package/lib/button/themes/solar/pearl/index.js +0 -1
  27. package/lib/button-bar/index.d.ts +1 -1
  28. package/lib/button-bar/index.js +12 -12
  29. package/lib/button-bar/themes/halo/dark/index.js +0 -1
  30. package/lib/button-bar/themes/halo/light/index.js +0 -1
  31. package/lib/button-bar/themes/solar/charcoal/index.js +0 -1
  32. package/lib/button-bar/themes/solar/pearl/index.js +0 -1
  33. package/lib/calendar/index.d.ts +39 -39
  34. package/lib/calendar/index.js +165 -132
  35. package/lib/calendar/themes/halo/dark/index.js +0 -1
  36. package/lib/calendar/themes/halo/light/index.js +0 -1
  37. package/lib/calendar/themes/solar/charcoal/index.js +0 -1
  38. package/lib/calendar/themes/solar/pearl/index.js +0 -1
  39. package/lib/calendar/utils.js +2 -2
  40. package/lib/canvas/index.d.ts +1 -1
  41. package/lib/canvas/index.js +2 -4
  42. package/lib/canvas/themes/halo/dark/index.js +0 -1
  43. package/lib/canvas/themes/halo/light/index.js +0 -1
  44. package/lib/canvas/themes/solar/charcoal/index.js +0 -1
  45. package/lib/canvas/themes/solar/pearl/index.js +0 -1
  46. package/lib/card/helpers/types.d.ts +2 -2
  47. package/lib/card/index.d.ts +5 -5
  48. package/lib/card/index.js +34 -28
  49. package/lib/card/themes/halo/dark/index.js +0 -1
  50. package/lib/card/themes/halo/light/index.js +0 -1
  51. package/lib/card/themes/solar/charcoal/index.js +0 -1
  52. package/lib/card/themes/solar/pearl/index.js +0 -1
  53. package/lib/chart/helpers/legend.js +10 -8
  54. package/lib/chart/index.d.ts +3 -3
  55. package/lib/chart/index.js +17 -17
  56. package/lib/chart/plugins/doughnut-center-label.js +7 -6
  57. package/lib/chart/themes/halo/dark/index.js +0 -1
  58. package/lib/chart/themes/halo/light/index.js +0 -1
  59. package/lib/chart/themes/solar/charcoal/index.js +0 -1
  60. package/lib/chart/themes/solar/pearl/index.js +0 -1
  61. package/lib/checkbox/index.d.ts +1 -1
  62. package/lib/checkbox/index.js +12 -13
  63. package/lib/checkbox/themes/halo/dark/index.js +0 -1
  64. package/lib/checkbox/themes/halo/light/index.js +0 -1
  65. package/lib/checkbox/themes/solar/charcoal/index.js +0 -1
  66. package/lib/checkbox/themes/solar/pearl/index.js +0 -1
  67. package/lib/clock/index.d.ts +55 -55
  68. package/lib/clock/index.js +84 -95
  69. package/lib/clock/themes/halo/dark/index.js +1 -2
  70. package/lib/clock/themes/halo/light/index.js +1 -2
  71. package/lib/clock/themes/solar/charcoal/index.js +1 -2
  72. package/lib/clock/themes/solar/pearl/index.js +1 -2
  73. package/lib/collapse/index.d.ts +1 -1
  74. package/lib/collapse/index.js +28 -19
  75. package/lib/collapse/themes/halo/dark/index.js +1 -2
  76. package/lib/collapse/themes/halo/light/index.js +1 -2
  77. package/lib/collapse/themes/solar/charcoal/index.js +0 -1
  78. package/lib/collapse/themes/solar/pearl/index.js +0 -1
  79. package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
  80. package/lib/color-dialog/elements/color-palettes.js +5 -6
  81. package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
  82. package/lib/color-dialog/elements/grayscale-palettes.js +9 -9
  83. package/lib/color-dialog/elements/palettes.js +5 -4
  84. package/lib/color-dialog/helpers/value-model.js +7 -9
  85. package/lib/color-dialog/index.d.ts +6 -6
  86. package/lib/color-dialog/index.js +53 -37
  87. package/lib/color-dialog/themes/halo/dark/index.js +0 -1
  88. package/lib/color-dialog/themes/halo/light/index.js +0 -1
  89. package/lib/color-dialog/themes/solar/charcoal/index.js +0 -1
  90. package/lib/color-dialog/themes/solar/pearl/index.js +0 -1
  91. package/lib/color-picker/index.d.ts +2 -2
  92. package/lib/color-picker/index.js +40 -34
  93. package/lib/color-picker/themes/halo/dark/index.js +0 -1
  94. package/lib/color-picker/themes/halo/light/index.js +0 -1
  95. package/lib/color-picker/themes/solar/charcoal/index.js +0 -1
  96. package/lib/color-picker/themes/solar/pearl/index.js +0 -1
  97. package/lib/combo-box/helpers/filter.d.ts +2 -2
  98. package/lib/combo-box/helpers/types.d.ts +1 -1
  99. package/lib/combo-box/index.d.ts +9 -9
  100. package/lib/combo-box/index.js +61 -55
  101. package/lib/combo-box/themes/halo/dark/index.js +0 -1
  102. package/lib/combo-box/themes/halo/light/index.js +0 -1
  103. package/lib/combo-box/themes/solar/charcoal/index.js +0 -1
  104. package/lib/combo-box/themes/solar/pearl/index.js +0 -1
  105. package/lib/configuration/custom-elements.json +15 -0
  106. package/lib/configuration/custom-elements.md +7 -0
  107. package/lib/{config/elements/config.d.ts → configuration/elements/configuration.d.ts} +14 -7
  108. package/lib/{config/elements/config.js → configuration/elements/configuration.js} +17 -15
  109. package/lib/configuration/helpers/context.d.ts +5 -0
  110. package/lib/configuration/helpers/context.js +3 -0
  111. package/lib/{config/helpers/context.d.ts → configuration/helpers/types.d.ts} +0 -3
  112. package/lib/configuration/helpers/types.js +1 -0
  113. package/lib/configuration/index.d.ts +3 -0
  114. package/lib/{config → configuration}/index.js +1 -1
  115. package/lib/counter/index.d.ts +4 -4
  116. package/lib/counter/index.js +9 -7
  117. package/lib/counter/themes/halo/dark/index.js +0 -1
  118. package/lib/counter/themes/halo/light/index.js +0 -1
  119. package/lib/counter/themes/solar/charcoal/index.js +0 -1
  120. package/lib/counter/themes/solar/pearl/index.js +0 -1
  121. package/lib/datetime-field/index.d.ts +4 -5
  122. package/lib/datetime-field/index.js +32 -23
  123. package/lib/datetime-field/themes/halo/dark/index.js +0 -1
  124. package/lib/datetime-field/themes/halo/light/index.js +0 -1
  125. package/lib/datetime-field/themes/solar/charcoal/index.js +0 -1
  126. package/lib/datetime-field/themes/solar/pearl/index.js +0 -1
  127. package/lib/datetime-field/utils.js +11 -1
  128. package/lib/datetime-picker/index.d.ts +75 -75
  129. package/lib/datetime-picker/index.js +154 -135
  130. package/lib/datetime-picker/locales.js +5 -5
  131. package/lib/datetime-picker/themes/halo/dark/index.js +0 -1
  132. package/lib/datetime-picker/themes/halo/light/index.js +0 -1
  133. package/lib/datetime-picker/themes/solar/charcoal/index.js +0 -1
  134. package/lib/datetime-picker/themes/solar/pearl/index.js +0 -1
  135. package/lib/datetime-picker/utils.js +9 -9
  136. package/lib/dialog/custom-elements.json +0 -11
  137. package/lib/dialog/custom-elements.md +3 -4
  138. package/lib/dialog/draggable-element.js +1 -2
  139. package/lib/dialog/index.d.ts +7 -7
  140. package/lib/dialog/index.js +48 -38
  141. package/lib/dialog/themes/halo/dark/index.js +0 -1
  142. package/lib/dialog/themes/halo/light/index.js +0 -1
  143. package/lib/dialog/themes/solar/charcoal/index.js +0 -1
  144. package/lib/dialog/themes/solar/pearl/index.js +0 -1
  145. package/lib/email-field/index.d.ts +1 -1
  146. package/lib/email-field/index.js +6 -6
  147. package/lib/email-field/themes/halo/dark/index.js +0 -1
  148. package/lib/email-field/themes/halo/light/index.js +0 -1
  149. package/lib/email-field/themes/solar/charcoal/index.js +0 -1
  150. package/lib/email-field/themes/solar/pearl/index.js +0 -1
  151. package/lib/events.d.ts +1 -1
  152. package/lib/flag/custom-elements.json +0 -12
  153. package/lib/flag/custom-elements.md +0 -3
  154. package/lib/flag/index.d.ts +12 -8
  155. package/lib/flag/index.js +20 -12
  156. package/lib/flag/themes/halo/dark/index.js +0 -1
  157. package/lib/flag/themes/halo/light/index.js +0 -1
  158. package/lib/flag/themes/solar/charcoal/index.js +0 -1
  159. package/lib/flag/themes/solar/pearl/index.js +0 -1
  160. package/lib/flag/utils/FlagLoader.js +1 -1
  161. package/lib/header/index.d.ts +1 -1
  162. package/lib/header/index.js +2 -2
  163. package/lib/header/themes/halo/dark/index.js +1 -2
  164. package/lib/header/themes/halo/light/index.js +1 -2
  165. package/lib/header/themes/solar/charcoal/index.js +1 -2
  166. package/lib/header/themes/solar/pearl/index.js +1 -2
  167. package/lib/heatmap/helpers/color.d.ts +1 -1
  168. package/lib/heatmap/helpers/color.js +11 -5
  169. package/lib/heatmap/helpers/track.js +3 -3
  170. package/lib/heatmap/helpers/types.d.ts +10 -10
  171. package/lib/heatmap/index.d.ts +9 -9
  172. package/lib/heatmap/index.js +104 -65
  173. package/lib/heatmap/themes/halo/dark/index.js +0 -1
  174. package/lib/heatmap/themes/halo/light/index.js +0 -1
  175. package/lib/heatmap/themes/solar/charcoal/index.js +0 -1
  176. package/lib/heatmap/themes/solar/pearl/index.js +0 -1
  177. package/lib/icon/custom-elements.json +0 -13
  178. package/lib/icon/custom-elements.md +0 -1
  179. package/lib/icon/index.d.ts +16 -6
  180. package/lib/icon/index.js +22 -11
  181. package/lib/icon/themes/halo/dark/index.js +0 -1
  182. package/lib/icon/themes/halo/light/index.js +0 -1
  183. package/lib/icon/themes/solar/charcoal/index.js +0 -1
  184. package/lib/icon/themes/solar/pearl/index.js +0 -1
  185. package/lib/icon/utils/IconLoader.d.ts +1 -0
  186. package/lib/icon/utils/IconLoader.js +9 -1
  187. package/lib/interactive-chart/custom-elements.json +5 -0
  188. package/lib/interactive-chart/custom-elements.md +1 -0
  189. package/lib/interactive-chart/helpers/types.d.ts +3 -3
  190. package/lib/interactive-chart/index.d.ts +40 -36
  191. package/lib/interactive-chart/index.js +78 -59
  192. package/lib/interactive-chart/themes/halo/dark/index.js +0 -1
  193. package/lib/interactive-chart/themes/halo/light/index.js +0 -1
  194. package/lib/interactive-chart/themes/solar/charcoal/index.js +0 -1
  195. package/lib/interactive-chart/themes/solar/pearl/index.js +0 -1
  196. package/lib/item/helpers/types.d.ts +1 -1
  197. package/lib/item/index.d.ts +3 -3
  198. package/lib/item/index.js +24 -20
  199. package/lib/item/themes/halo/dark/index.js +0 -1
  200. package/lib/item/themes/halo/light/index.js +0 -1
  201. package/lib/item/themes/solar/charcoal/index.js +0 -1
  202. package/lib/item/themes/solar/pearl/index.js +0 -1
  203. package/lib/jsx.d.ts +6 -4
  204. package/lib/label/index.d.ts +1 -1
  205. package/lib/label/index.js +11 -8
  206. package/lib/label/themes/halo/dark/index.js +0 -1
  207. package/lib/label/themes/halo/light/index.js +0 -1
  208. package/lib/label/themes/solar/charcoal/index.js +0 -1
  209. package/lib/label/themes/solar/pearl/index.js +0 -1
  210. package/lib/layout/index.d.ts +7 -7
  211. package/lib/layout/index.js +7 -7
  212. package/lib/layout/themes/halo/dark/index.js +0 -1
  213. package/lib/layout/themes/halo/light/index.js +0 -1
  214. package/lib/layout/themes/solar/charcoal/index.js +0 -1
  215. package/lib/layout/themes/solar/pearl/index.js +0 -1
  216. package/lib/led-gauge/index.d.ts +1 -1
  217. package/lib/led-gauge/index.js +10 -10
  218. package/lib/led-gauge/themes/halo/dark/index.js +0 -1
  219. package/lib/led-gauge/themes/halo/light/index.js +0 -1
  220. package/lib/led-gauge/themes/solar/charcoal/index.js +0 -1
  221. package/lib/led-gauge/themes/solar/pearl/index.js +0 -1
  222. package/lib/list/elements/list.d.ts +3 -3
  223. package/lib/list/elements/list.js +10 -12
  224. package/lib/list/helpers/renderer.js +2 -2
  225. package/lib/list/helpers/types.d.ts +1 -1
  226. package/lib/list/index.d.ts +1 -1
  227. package/lib/list/renderer.d.ts +7 -7
  228. package/lib/list/themes/halo/dark/index.js +0 -2
  229. package/lib/list/themes/halo/light/index.js +0 -2
  230. package/lib/list/themes/solar/charcoal/index.js +0 -2
  231. package/lib/list/themes/solar/pearl/index.js +0 -2
  232. package/lib/loader/index.js +7 -8
  233. package/lib/loader/themes/halo/dark/index.js +0 -1
  234. package/lib/loader/themes/halo/light/index.js +0 -1
  235. package/lib/loader/themes/solar/charcoal/index.js +0 -1
  236. package/lib/loader/themes/solar/pearl/index.js +0 -1
  237. package/lib/multi-input/index.d.ts +6 -6
  238. package/lib/multi-input/index.js +39 -45
  239. package/lib/multi-input/themes/halo/dark/index.js +0 -1
  240. package/lib/multi-input/themes/halo/light/index.js +0 -1
  241. package/lib/multi-input/themes/solar/charcoal/index.js +0 -1
  242. package/lib/multi-input/themes/solar/pearl/index.js +0 -1
  243. package/lib/notification/elements/notification-tray.d.ts +2 -2
  244. package/lib/notification/elements/notification-tray.js +3 -3
  245. package/lib/notification/elements/notification.d.ts +2 -2
  246. package/lib/notification/elements/notification.js +17 -14
  247. package/lib/notification/helpers/status.js +1 -1
  248. package/lib/notification/themes/halo/dark/index.js +1 -3
  249. package/lib/notification/themes/halo/light/index.js +1 -3
  250. package/lib/notification/themes/solar/charcoal/index.js +1 -3
  251. package/lib/notification/themes/solar/pearl/index.js +1 -3
  252. package/lib/number-field/index.d.ts +12 -6
  253. package/lib/number-field/index.js +64 -48
  254. package/lib/number-field/themes/halo/dark/index.js +0 -1
  255. package/lib/number-field/themes/halo/light/index.js +0 -1
  256. package/lib/number-field/themes/solar/charcoal/index.js +0 -1
  257. package/lib/number-field/themes/solar/pearl/index.js +0 -1
  258. package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
  259. package/lib/overlay/elements/overlay.d.ts +2 -2
  260. package/lib/overlay/elements/overlay.js +154 -98
  261. package/lib/overlay/helpers/types.d.ts +1 -1
  262. package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
  263. package/lib/overlay/managers/backdrop-manager.js +2 -2
  264. package/lib/overlay/managers/close-manager.js +2 -1
  265. package/lib/overlay/managers/focus-manager.js +23 -13
  266. package/lib/overlay/managers/interaction-lock-manager.d.ts +4 -4
  267. package/lib/overlay/managers/interaction-lock-manager.js +33 -25
  268. package/lib/overlay/managers/viewport-manager.d.ts +2 -2
  269. package/lib/overlay/managers/viewport-manager.js +3 -2
  270. package/lib/overlay/managers/zindex-manager.js +4 -2
  271. package/lib/overlay/themes/halo/dark/index.js +0 -2
  272. package/lib/overlay/themes/halo/light/index.js +0 -2
  273. package/lib/overlay/themes/solar/charcoal/index.js +0 -2
  274. package/lib/overlay/themes/solar/pearl/index.js +0 -2
  275. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  276. package/lib/overlay-menu/index.d.ts +1 -1
  277. package/lib/overlay-menu/index.js +44 -33
  278. package/lib/overlay-menu/managers/menu-manager.d.ts +10 -10
  279. package/lib/overlay-menu/managers/menu-manager.js +15 -13
  280. package/lib/overlay-menu/themes/halo/dark/index.js +0 -1
  281. package/lib/overlay-menu/themes/halo/light/index.js +0 -1
  282. package/lib/overlay-menu/themes/solar/charcoal/index.js +0 -1
  283. package/lib/overlay-menu/themes/solar/pearl/index.js +0 -1
  284. package/lib/pagination/index.d.ts +4 -4
  285. package/lib/pagination/index.js +39 -14
  286. package/lib/pagination/themes/halo/dark/index.js +0 -1
  287. package/lib/pagination/themes/halo/light/index.js +0 -1
  288. package/lib/pagination/themes/solar/charcoal/index.js +0 -1
  289. package/lib/pagination/themes/solar/pearl/index.js +0 -1
  290. package/lib/panel/index.js +1 -1
  291. package/lib/panel/themes/halo/dark/index.js +0 -1
  292. package/lib/panel/themes/halo/light/index.js +0 -1
  293. package/lib/panel/themes/solar/charcoal/index.js +0 -1
  294. package/lib/panel/themes/solar/pearl/index.js +0 -1
  295. package/lib/password-field/index.d.ts +2 -2
  296. package/lib/password-field/index.js +7 -4
  297. package/lib/password-field/themes/halo/dark/index.js +1 -2
  298. package/lib/password-field/themes/halo/light/index.js +1 -2
  299. package/lib/password-field/themes/solar/charcoal/index.js +1 -2
  300. package/lib/password-field/themes/solar/pearl/index.js +1 -2
  301. package/lib/pill/index.d.ts +1 -1
  302. package/lib/pill/index.js +22 -19
  303. package/lib/pill/themes/halo/dark/index.js +0 -1
  304. package/lib/pill/themes/halo/light/index.js +0 -1
  305. package/lib/pill/themes/solar/charcoal/index.js +0 -1
  306. package/lib/pill/themes/solar/pearl/index.js +0 -1
  307. package/lib/progress-bar/index.d.ts +1 -1
  308. package/lib/progress-bar/index.js +38 -37
  309. package/lib/progress-bar/themes/halo/dark/index.js +0 -1
  310. package/lib/progress-bar/themes/halo/light/index.js +0 -1
  311. package/lib/progress-bar/themes/solar/charcoal/index.js +0 -1
  312. package/lib/progress-bar/themes/solar/pearl/index.js +0 -1
  313. package/lib/radio-button/index.d.ts +2 -2
  314. package/lib/radio-button/index.js +17 -12
  315. package/lib/radio-button/radio-button-registry.js +8 -5
  316. package/lib/radio-button/themes/halo/dark/index.js +0 -1
  317. package/lib/radio-button/themes/halo/light/index.js +0 -1
  318. package/lib/radio-button/themes/solar/charcoal/index.js +0 -1
  319. package/lib/radio-button/themes/solar/pearl/index.js +0 -1
  320. package/lib/rating/index.d.ts +1 -1
  321. package/lib/rating/index.js +2 -5
  322. package/lib/rating/themes/halo/dark/index.js +0 -1
  323. package/lib/rating/themes/halo/light/index.js +0 -1
  324. package/lib/rating/themes/solar/charcoal/index.js +0 -1
  325. package/lib/rating/themes/solar/pearl/index.js +0 -1
  326. package/lib/rating/utils.d.ts +6 -6
  327. package/lib/rating/utils.js +6 -6
  328. package/lib/search-field/index.d.ts +2 -2
  329. package/lib/search-field/index.js +4 -4
  330. package/lib/search-field/themes/halo/dark/index.js +0 -1
  331. package/lib/search-field/themes/halo/light/index.js +0 -1
  332. package/lib/search-field/themes/solar/charcoal/index.js +0 -1
  333. package/lib/search-field/themes/solar/pearl/index.js +0 -1
  334. package/lib/select/index.d.ts +34 -34
  335. package/lib/select/index.js +70 -83
  336. package/lib/select/themes/halo/dark/index.js +0 -1
  337. package/lib/select/themes/halo/light/index.js +0 -1
  338. package/lib/select/themes/solar/charcoal/index.js +0 -1
  339. package/lib/select/themes/solar/pearl/index.js +0 -1
  340. package/lib/sidebar-layout/index.d.ts +2 -2
  341. package/lib/sidebar-layout/index.js +7 -9
  342. package/lib/sidebar-layout/themes/halo/dark/index.js +0 -1
  343. package/lib/sidebar-layout/themes/halo/light/index.js +0 -1
  344. package/lib/sidebar-layout/themes/solar/charcoal/index.js +0 -1
  345. package/lib/sidebar-layout/themes/solar/pearl/index.js +0 -1
  346. package/lib/slider/index.d.ts +2 -2
  347. package/lib/slider/index.js +72 -49
  348. package/lib/slider/themes/halo/dark/index.js +0 -1
  349. package/lib/slider/themes/halo/light/index.js +0 -1
  350. package/lib/slider/themes/solar/charcoal/index.js +0 -1
  351. package/lib/slider/themes/solar/pearl/index.js +0 -1
  352. package/lib/slider/utils.d.ts +10 -10
  353. package/lib/slider/utils.js +10 -10
  354. package/lib/sparkline/index.d.ts +1 -1
  355. package/lib/sparkline/index.js +7 -8
  356. package/lib/sparkline/themes/halo/dark/index.js +0 -1
  357. package/lib/sparkline/themes/halo/light/index.js +0 -1
  358. package/lib/sparkline/themes/solar/charcoal/index.js +0 -1
  359. package/lib/sparkline/themes/solar/pearl/index.js +0 -1
  360. package/lib/swing-gauge/helpers.js +2 -2
  361. package/lib/swing-gauge/index.d.ts +19 -19
  362. package/lib/swing-gauge/index.js +91 -81
  363. package/lib/swing-gauge/themes/halo/dark/index.js +0 -1
  364. package/lib/swing-gauge/themes/halo/light/index.js +0 -1
  365. package/lib/swing-gauge/themes/solar/charcoal/index.js +0 -1
  366. package/lib/swing-gauge/themes/solar/pearl/index.js +0 -1
  367. package/lib/tab/index.d.ts +1 -1
  368. package/lib/tab/index.js +16 -27
  369. package/lib/tab/themes/halo/dark/index.js +1 -2
  370. package/lib/tab/themes/halo/light/index.js +1 -2
  371. package/lib/tab/themes/solar/charcoal/index.js +1 -2
  372. package/lib/tab/themes/solar/pearl/index.js +1 -2
  373. package/lib/tab-bar/helpers/animate.js +1 -1
  374. package/lib/tab-bar/index.d.ts +1 -1
  375. package/lib/tab-bar/index.js +34 -18
  376. package/lib/tab-bar/themes/halo/dark/index.js +1 -2
  377. package/lib/tab-bar/themes/halo/light/index.js +1 -2
  378. package/lib/tab-bar/themes/solar/charcoal/index.js +0 -1
  379. package/lib/tab-bar/themes/solar/pearl/index.js +0 -1
  380. package/lib/text-field/index.d.ts +1 -1
  381. package/lib/text-field/index.js +36 -33
  382. package/lib/text-field/themes/halo/dark/index.js +0 -1
  383. package/lib/text-field/themes/halo/light/index.js +0 -1
  384. package/lib/text-field/themes/solar/charcoal/index.js +0 -1
  385. package/lib/text-field/themes/solar/pearl/index.js +0 -1
  386. package/lib/time-picker/index.d.ts +6 -6
  387. package/lib/time-picker/index.js +104 -90
  388. package/lib/time-picker/themes/halo/dark/index.js +0 -1
  389. package/lib/time-picker/themes/halo/light/index.js +0 -1
  390. package/lib/time-picker/themes/solar/charcoal/index.js +0 -1
  391. package/lib/time-picker/themes/solar/pearl/index.js +0 -1
  392. package/lib/toggle/index.d.ts +1 -1
  393. package/lib/toggle/index.js +4 -3
  394. package/lib/toggle/themes/halo/dark/index.js +1 -2
  395. package/lib/toggle/themes/halo/light/index.js +1 -2
  396. package/lib/toggle/themes/solar/charcoal/index.js +1 -2
  397. package/lib/toggle/themes/solar/pearl/index.js +1 -2
  398. package/lib/tooltip/elements/title-tooltip.js +2 -2
  399. package/lib/tooltip/helpers/renderer.d.ts +1 -1
  400. package/lib/tooltip/helpers/renderer.js +3 -3
  401. package/lib/tooltip/index.d.ts +27 -27
  402. package/lib/tooltip/index.js +42 -38
  403. package/lib/tooltip/managers/tooltip-manager.d.ts +1 -1
  404. package/lib/tooltip/themes/halo/dark/index.js +0 -1
  405. package/lib/tooltip/themes/halo/light/index.js +0 -1
  406. package/lib/tooltip/themes/solar/charcoal/index.js +0 -1
  407. package/lib/tooltip/themes/solar/pearl/index.js +0 -1
  408. package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
  409. package/lib/tornado-chart/elements/tornado-chart.js +1 -1
  410. package/lib/tornado-chart/elements/tornado-item.d.ts +2 -2
  411. package/lib/tornado-chart/elements/tornado-item.js +12 -10
  412. package/lib/tornado-chart/themes/halo/dark/index.js +0 -2
  413. package/lib/tornado-chart/themes/halo/light/index.js +0 -2
  414. package/lib/tornado-chart/themes/solar/charcoal/index.js +0 -2
  415. package/lib/tornado-chart/themes/solar/pearl/index.js +0 -2
  416. package/lib/tree/elements/tree-item.d.ts +3 -3
  417. package/lib/tree/elements/tree-item.js +21 -19
  418. package/lib/tree/elements/tree.d.ts +1 -1
  419. package/lib/tree/elements/tree.js +12 -11
  420. package/lib/tree/helpers/renderer.js +4 -3
  421. package/lib/tree/index.d.ts +1 -1
  422. package/lib/tree/managers/tree-manager.d.ts +1 -1
  423. package/lib/tree/managers/tree-manager.js +17 -18
  424. package/lib/tree/themes/halo/dark/index.js +0 -2
  425. package/lib/tree/themes/halo/light/index.js +0 -2
  426. package/lib/tree/themes/solar/charcoal/index.js +1 -3
  427. package/lib/tree/themes/solar/pearl/index.js +1 -3
  428. package/lib/tree-select/index.d.ts +9 -9
  429. package/lib/tree-select/index.js +91 -82
  430. package/lib/tree-select/themes/halo/dark/index.js +1 -2
  431. package/lib/tree-select/themes/halo/light/index.js +1 -2
  432. package/lib/tree-select/themes/solar/charcoal/index.js +1 -2
  433. package/lib/tree-select/themes/solar/pearl/index.js +1 -2
  434. package/lib/version.js +1 -1
  435. package/package.json +19 -18
  436. package/tsconfig.tsbuildinfo +1 -0
  437. package/lib/config/custom-elements.json +0 -23
  438. package/lib/config/custom-elements.md +0 -8
  439. package/lib/config/helpers/context.js +0 -2
  440. package/lib/config/index.d.ts +0 -2
@@ -1,15 +1,15 @@
1
1
  import { __decorate } from "tslib";
2
- import { ResponsiveElement, css, html, WarningNotice } from '@refinitiv-ui/core';
2
+ import { ResponsiveElement, WarningNotice, 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
6
  import { state } from '@refinitiv-ui/core/decorators/state.js';
7
7
  import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
8
- import { VERSION } from '../version.js';
9
8
  import '../canvas/index.js';
10
9
  import '../label/index.js';
11
- import { helpers as canvasHelper } from './helpers.js';
10
+ import { VERSION } from '../version.js';
12
11
  import { DefaultStyle, Segment, TextType } from './const.js';
12
+ import { helpers as canvasHelper } from './helpers.js';
13
13
  /**
14
14
  * Constants from swing-gauge default specs
15
15
  */
@@ -53,12 +53,12 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
53
53
  */
54
54
  this.duration = 1000;
55
55
  /**
56
- * Primary value legend
57
- */
56
+ * Primary value legend
57
+ */
58
58
  this.primaryLegend = '';
59
59
  /**
60
- * Secondary value legend
61
- */
60
+ * Secondary value legend
61
+ */
62
62
  this.secondaryLegend = '';
63
63
  /**
64
64
  * Custom value formatter
@@ -80,28 +80,28 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
80
80
  this.primaryLineRadian = PRIMARY_RADIAN;
81
81
  this.secondaryLineRadian = SECONDARY_RADIAN;
82
82
  /**
83
- * Data requires to draw swing gauge
84
- */
83
+ * Data requires to draw swing gauge
84
+ */
85
85
  this.data = null;
86
86
  /**
87
- * Internal sizes and scales
88
- */
87
+ * Internal sizes and scales
88
+ */
89
89
  this.width = 0;
90
90
  this.height = 0;
91
91
  this.size = 0;
92
92
  this.lineLength = 60;
93
93
  this.scale = 1;
94
94
  /**
95
- * Current fill percentage
96
- */
95
+ * Current fill percentage
96
+ */
97
97
  this.fillPercentage = 0;
98
98
  /**
99
- * Keeps previous percentage calculation to avoid re-rendering the same value
100
- */
99
+ * Keeps previous percentage calculation to avoid re-rendering the same value
100
+ */
101
101
  this.previousFillPercentage = 0;
102
102
  /**
103
- * This for keep line number of label for calculate new radius
104
- */
103
+ * This for keep line number of label for calculate new radius
104
+ */
105
105
  this.labelLineNumber = 1;
106
106
  /**
107
107
  * Style for primary container
@@ -139,46 +139,50 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
139
139
  display: block;
140
140
  height: 200px;
141
141
  }
142
- :host [part=container] {
142
+ :host [part='container'] {
143
143
  display: flex;
144
144
  flex-direction: column;
145
145
  height: 100%;
146
146
  }
147
- :host [part=canvas-container] {
147
+ :host [part='canvas-container'] {
148
148
  position: relative;
149
149
  flex: 1;
150
150
  }
151
- :host [part=canvas] {
151
+ :host [part='canvas'] {
152
152
  height: 100%;
153
153
  }
154
- :host [part=primary-legend], [part=secondary-legend] {
154
+ :host [part='primary-legend'],
155
+ [part='secondary-legend'] {
155
156
  text-align: left;
156
157
  display: flex;
157
158
  }
158
- :host [part=primary-label], [part=primary-value] {
159
+ :host [part='primary-label'],
160
+ [part='primary-value'] {
159
161
  text-align: left;
160
162
  }
161
- :host [part=secondary-label], [part=secondary-value] {
163
+ :host [part='secondary-label'],
164
+ [part='secondary-value'] {
162
165
  text-align: right;
163
166
  }
164
- :host [part=legend-container-outer] {
167
+ :host [part='legend-container-outer'] {
165
168
  width: 60%;
166
169
  margin: 0 auto;
167
170
  text-align: center;
168
171
  }
169
- :host [part=legend-container-inner] {
172
+ :host [part='legend-container-inner'] {
170
173
  max-width: 100%;
171
174
  display: inline-block;
172
175
  }
173
- :host [part=primary-legend-symbol], [part=secondary-legend-symbol] {
176
+ :host [part='primary-legend-symbol'],
177
+ [part='secondary-legend-symbol'] {
174
178
  display: inline-block;
175
179
  flex-shrink: 0;
176
180
  }
177
- :host [part=primary-container] {
181
+ :host [part='primary-container'] {
178
182
  position: absolute;
179
183
  text-align: left;
180
184
  }
181
- :host [part=secondary-container] {
185
+ :host [part='secondary-container'] {
182
186
  position: absolute;
183
187
  text-align: right;
184
188
  }
@@ -215,14 +219,14 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
215
219
  return this._secondaryValue;
216
220
  }
217
221
  /**
218
- * Get primary percentage
219
- */
222
+ * Get primary percentage
223
+ */
220
224
  get primaryPercentage() {
221
225
  return this.getPercentage(this.primaryValue);
222
226
  }
223
227
  /**
224
- * Get secondary percentage
225
- */
228
+ * Get secondary percentage
229
+ */
226
230
  get secondaryPercentage() {
227
231
  return this.getPercentage(this.secondaryValue);
228
232
  }
@@ -273,8 +277,9 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
273
277
  */
274
278
  update(changedProperties) {
275
279
  super.update(changedProperties);
276
- if (changedProperties.has('primaryValue') || changedProperties.has('secondaryValue')
277
- || (this.primaryValue === 0 && this.secondaryValue === 0)) {
280
+ if (changedProperties.has('primaryValue') ||
281
+ changedProperties.has('secondaryValue') ||
282
+ (this.primaryValue === 0 && this.secondaryValue === 0)) {
278
283
  this.canvas.autoloop = true;
279
284
  this.renderCanvas('frame');
280
285
  this.animateCanvas();
@@ -285,9 +290,11 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
285
290
  if (changedProperties.has('valueFormatter')) {
286
291
  this.calculateValueFontSize();
287
292
  }
288
- if (changedProperties.has('primaryValue') || changedProperties.has('secondaryValue')
289
- || changedProperties.has('primaryLabel') || changedProperties.has('secondaryLabel')
290
- || changedProperties.has('valueFormatter')) {
293
+ if (changedProperties.has('primaryValue') ||
294
+ changedProperties.has('secondaryValue') ||
295
+ changedProperties.has('primaryLabel') ||
296
+ changedProperties.has('secondaryLabel') ||
297
+ changedProperties.has('valueFormatter')) {
291
298
  this.updateGaugePositions();
292
299
  }
293
300
  }
@@ -328,7 +335,8 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
328
335
  */
329
336
  easeTo(to, from, time) {
330
337
  const diff = (this.duration - (time - performance.now())) / this.duration;
331
- this.fillPercentage = from + (to - from) * canvasHelper.elasticOut(diff > 1 ? 1 : diff < 0 ? 0 : diff) || 0;
338
+ this.fillPercentage =
339
+ from + (to - from) * canvasHelper.elasticOut(diff > 1 ? 1 : diff < 0 ? 0 : diff) || 0;
332
340
  if (this.fillPercentage !== to) {
333
341
  this.cancelFrame(this.requestedAnimationID);
334
342
  this.requestedAnimationID = this.onFrame(() => this.easeTo(to, from, time));
@@ -408,7 +416,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
408
416
  const reverseScale = 1 - this.scale;
409
417
  // increase the offset by 25%, this for buffer to make label have some space from bottom
410
418
  this.linePointerOffset = (containerHeight / gaugeHeight) * reverseScale * 1.25;
411
- this.primaryLineRadian = PRIMARY_RADIAN + DEFAULT_OFFSET + (OVERFLOW_OFFSET * reverseScale);
419
+ this.primaryLineRadian = PRIMARY_RADIAN + DEFAULT_OFFSET + OVERFLOW_OFFSET * reverseScale;
412
420
  this.secondaryLineRadian = 3 - this.primaryLineRadian;
413
421
  }
414
422
  const primaryPosLine = this.getPositionStyle(Segment.PRIMARY, this.primaryLineRadian, this.linePointerOffset, 0);
@@ -528,7 +536,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
528
536
  const offset = DEFAULT_OFFSET * reverseScale;
529
537
  this.primaryLineRadian = PRIMARY_RADIAN + offset;
530
538
  this.secondaryLineRadian = SECONDARY_RADIAN - offset;
531
- this.linePointerOffset = LINE_POINTER_OFFSET + (0.4 * (1 - this.scale));
539
+ this.linePointerOffset = LINE_POINTER_OFFSET + 0.4 * (1 - this.scale);
532
540
  }
533
541
  this.primaryLineRadian = this.primaryLineRadian > 1.3 ? 1.3 : this.primaryLineRadian;
534
542
  this.secondaryLineRadian = this.primaryLineRadian > 1.7 ? 1.7 : this.secondaryLineRadian;
@@ -558,7 +566,8 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
558
566
  minFontSize = MIN_LABEL_FONT_SIZE;
559
567
  // buffer for word wrap
560
568
  widthScale = 1.1;
561
- longerLabel = this.primaryLabel.length > this.secondaryLabel.length ? this.primaryLabel : this.secondaryLabel;
569
+ longerLabel =
570
+ this.primaryLabel.length > this.secondaryLabel.length ? this.primaryLabel : this.secondaryLabel;
562
571
  fontSize = Math.ceil(this.scale * this.canvas.height * GAUGE_LABEL_FONT_SCALE);
563
572
  }
564
573
  else {
@@ -596,7 +605,10 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
596
605
  if (!this.canvas.ctx) {
597
606
  return;
598
607
  }
599
- this.labelStyle = { maxWidth: `${this.lineLength}px`, fontSize: `${this.calculateFontSize(this.canvas.ctx, TextType.LABEL)}px` };
608
+ this.labelStyle = {
609
+ maxWidth: `${this.lineLength}px`,
610
+ fontSize: `${this.calculateFontSize(this.canvas.ctx, TextType.LABEL)}px`
611
+ };
600
612
  }
601
613
  /**
602
614
  * Update value font size
@@ -606,7 +618,10 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
606
618
  if (!this.canvas.ctx) {
607
619
  return;
608
620
  }
609
- this.valueStyle = { maxWidth: `${this.lineLength}px`, fontSize: `${this.calculateFontSize(this.canvas.ctx, TextType.VALUE)}px` };
621
+ this.valueStyle = {
622
+ maxWidth: `${this.lineLength}px`,
623
+ fontSize: `${this.calculateFontSize(this.canvas.ctx, TextType.VALUE)}px`
624
+ };
610
625
  }
611
626
  /**
612
627
  * Compute percentage of value
@@ -617,7 +632,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
617
632
  if (value === 0) {
618
633
  return 0;
619
634
  }
620
- return 100 * value / (this.primaryValue + this.secondaryValue);
635
+ return (100 * value) / (this.primaryValue + this.secondaryValue);
621
636
  }
622
637
  /**
623
638
  * Handles canvas resize
@@ -636,11 +651,10 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
636
651
  get legendTemplate() {
637
652
  return this.primaryLegend.length > 0 || this.secondaryLegend.length > 0
638
653
  ? html `<div part="legend-container-outer">
639
- <div part="legend-container-inner">
640
- ${this.primaryLegendTemplate}
641
- ${this.secondaryLegendTemplate}
642
- </div>
643
- </div>`
654
+ <div part="legend-container-inner">
655
+ ${this.primaryLegendTemplate} ${this.secondaryLegendTemplate}
656
+ </div>
657
+ </div>`
644
658
  : null;
645
659
  }
646
660
  /**
@@ -650,9 +664,11 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
650
664
  get primaryLegendTemplate() {
651
665
  return this.primaryLegend
652
666
  ? html `<div part="primary-legend">
653
- <span part="primary-legend-symbol"></span>
654
- <ef-label max-line="${MAX_LEGEND_LINE}" line-clamp="${MAX_LEGEND_LINE}">${this.primaryLegend}</ef-label>
655
- </div>`
667
+ <span part="primary-legend-symbol"></span>
668
+ <ef-label max-line="${MAX_LEGEND_LINE}" line-clamp="${MAX_LEGEND_LINE}"
669
+ >${this.primaryLegend}</ef-label
670
+ >
671
+ </div>`
656
672
  : null;
657
673
  }
658
674
  /**
@@ -662,9 +678,11 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
662
678
  get secondaryLegendTemplate() {
663
679
  return this.secondaryLegend
664
680
  ? html `<div part="secondary-legend">
665
- <span part="secondary-legend-symbol"></span>
666
- <ef-label max-line="${MAX_LEGEND_LINE}" line-clamp="${MAX_LEGEND_LINE}">${this.secondaryLegend}</ef-label>
667
- </div>`
681
+ <span part="secondary-legend-symbol"></span>
682
+ <ef-label max-line="${MAX_LEGEND_LINE}" line-clamp="${MAX_LEGEND_LINE}"
683
+ >${this.secondaryLegend}</ef-label
684
+ >
685
+ </div>`
668
686
  : null;
669
687
  }
670
688
  render() {
@@ -674,38 +692,30 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
674
692
  <div part="canvas-container">
675
693
  <ef-canvas part="canvas" @resize=${this.onCanvasResize}></ef-canvas>
676
694
  <div part="primary-container" style=${styleMap(this.primaryContainerStyle)}>
677
- ${this.primaryLabel ? html `
678
- <ef-label
679
- part="primary-label"
680
- max-line="${MAX_LABEL_LINE}"
681
- line-clamp="${MAX_LABEL_LINE}"
682
- style=${styleMap(this.labelStyle)}
683
- >${this.primaryLabel}
684
- </ef-label><br>`
695
+ ${this.primaryLabel
696
+ ? html ` <ef-label
697
+ part="primary-label"
698
+ max-line="${MAX_LABEL_LINE}"
699
+ line-clamp="${MAX_LABEL_LINE}"
700
+ style=${styleMap(this.labelStyle)}
701
+ >${this.primaryLabel} </ef-label
702
+ ><br />`
685
703
  : null}
686
- <ef-label
687
- part="primary-value"
688
- truncate=""
689
- line-clamp="1"
690
- style=${styleMap(this.valueStyle)}
704
+ <ef-label part="primary-value" truncate="" line-clamp="1" style=${styleMap(this.valueStyle)}
691
705
  >${this.valueFormatter(this.primaryPercentage, this.primaryValue)}</ef-label
692
706
  >
693
707
  </div>
694
708
  <div part="secondary-container" style=${styleMap(this.secondaryContainerStyle)}>
695
- ${this.secondaryLabel ? html `
696
- <ef-label
697
- part="secondary-label"
698
- max-line="${MAX_LABEL_LINE}"
699
- line-clamp="${MAX_LABEL_LINE}"
700
- style=${styleMap(this.labelStyle)}
701
- >${this.secondaryLabel}
702
- </ef-label><br>`
709
+ ${this.secondaryLabel
710
+ ? html ` <ef-label
711
+ part="secondary-label"
712
+ max-line="${MAX_LABEL_LINE}"
713
+ line-clamp="${MAX_LABEL_LINE}"
714
+ style=${styleMap(this.labelStyle)}
715
+ >${this.secondaryLabel} </ef-label
716
+ ><br />`
703
717
  : null}
704
- <ef-label
705
- part="secondary-value"
706
- truncate=""
707
- line-clamp="1"
708
- style=${styleMap(this.valueStyle)}
718
+ <ef-label part="secondary-value" truncate="" line-clamp="1" style=${styleMap(this.valueStyle)}
709
719
  >${this.valueFormatter(this.secondaryPercentage, this.secondaryValue)}</ef-label
710
720
  >
711
721
  </div>
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/halo/dark';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-swing-gauge', styles: ':host{--primary-color:#6678FF;--secondary-color:#FFFFFF;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--secondary-color:#0D0D0D;--center-line-color:#FFFFFF;--border-color:#6678FF;--center-line:dotted}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px;border:1px solid var(--border-color,#6678ff);height:10px;width:10px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/halo/light';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-swing-gauge', styles: ':host{--primary-color:#334BFF;--secondary-color:#0D0D0D;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--secondary-color:#0D0D0D;--center-line-color:#FFFFFF;--border-color:#334BFF;--center-line:dotted}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px;height:12px;width:12px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/solar/charcoal';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-swing-gauge', styles: ':host{--primary-color:#FF9933;--secondary-color:#3780BF;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--primary-color:#2EB4C9;--secondary-color:#C93C4B;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{height:12px;width:12px;border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}' }}));
@@ -1,3 +1,2 @@
1
1
  import '@refinitiv-ui/elements/canvas/themes/solar/pearl';
2
-
3
2
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-swing-gauge', styles: ':host{--primary-color:#EE7600;--secondary-color:#3780BF;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--primary-color:#2EB4C9;--secondary-color:#C93C4B;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{height:12px;width:12px;border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}' }}));
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { TemplateResult, CSSResultGroup, ControlElement, PropertyValues } from '@refinitiv-ui/core';
2
+ import { CSSResultGroup, ControlElement, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
3
  import '../icon/index.js';
4
4
  import '../label/index.js';
5
5
  /**
package/lib/tab/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { __decorate } from "tslib";
2
- import { html, css, ControlElement } from '@refinitiv-ui/core';
2
+ import { ControlElement, css, html } from '@refinitiv-ui/core';
3
+ import { triggerResize } 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 { state } from '@refinitiv-ui/core/decorators/state.js';
6
7
  import { isSlotEmpty } from '@refinitiv-ui/utils/is-slot-empty.js';
7
- import { triggerResize } from '@refinitiv-ui/core';
8
- import { VERSION } from '../version.js';
9
8
  import '../icon/index.js';
10
9
  import '../label/index.js';
10
+ import { VERSION } from '../version.js';
11
11
  /**
12
12
  * A building block for individual tab
13
13
  * @attr {boolean} disabled - Set disabled state
@@ -153,11 +153,13 @@ let Tab = class Tab extends ControlElement {
153
153
  * @returns close button template
154
154
  */
155
155
  get CloseTemplate() {
156
- return this.clears || this.clearsOnHover ? html `
157
- <div part="close-container">
158
- <ef-icon part="close" icon="cross" @tap="${this.handleClickClear}"></ef-icon>
159
- </div>
160
- ` : null;
156
+ return this.clears || this.clearsOnHover
157
+ ? html `
158
+ <div part="close-container">
159
+ <ef-icon part="close" icon="cross" @tap="${this.handleClickClear}"></ef-icon>
160
+ </div>
161
+ `
162
+ : null;
161
163
  }
162
164
  /**
163
165
  * Create ef-label template when label is true
@@ -167,13 +169,7 @@ let Tab = class Tab extends ControlElement {
167
169
  if (!this.label || this.isSlotHasContent) {
168
170
  return null;
169
171
  }
170
- return html `
171
- <ef-label
172
- part="label"
173
- .lineClamp=${this.getLineClamp()}>
174
- ${this.label}
175
- </ef-label>
176
- `;
172
+ return html ` <ef-label part="label" .lineClamp=${this.getLineClamp()}> ${this.label} </ef-label> `;
177
173
  }
178
174
  /**
179
175
  * Create ef-label template when subLabel is true
@@ -183,13 +179,7 @@ let Tab = class Tab extends ControlElement {
183
179
  if (!this.subLabel || this.isSlotHasContent) {
184
180
  return null;
185
181
  }
186
- return html `
187
- <ef-label
188
- part="sub-label"
189
- .lineClamp=${this.getLineClamp()}>
190
- ${this.subLabel}
191
- </ef-label>
192
- `;
182
+ return html ` <ef-label part="sub-label" .lineClamp=${this.getLineClamp()}> ${this.subLabel} </ef-label> `;
193
183
  }
194
184
  /**
195
185
  * A `TemplateResult` that will be used
@@ -199,11 +189,10 @@ let Tab = class Tab extends ControlElement {
199
189
  render() {
200
190
  return html `
201
191
  ${this.icon ? html `<ef-icon icon=${this.icon} part="icon"></ef-icon>` : null}
202
- <div part="label-container">
203
- ${this.LabelTemplate}
204
- ${this.SubLabelTemplate}
205
- <slot @slotchange="${this.onSlotChange}"></slot>
206
- </div>
192
+ <div part="label-container">
193
+ ${this.LabelTemplate} ${this.SubLabelTemplate}
194
+ <slot @slotchange="${this.onSlotChange}"></slot>
195
+ </div>
207
196
  ${this.CloseTemplate}
208
197
  `;
209
198
  }
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/halo/dark';
2
2
  import '@refinitiv-ui/elements/label/themes/halo/dark';
3
-
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#404040;color:#ccc;height:36px;padding:9px 12px;outline:0;font-size:12px;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation}:host [part=icon]{min-width:1em;font-size:1.5em}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:46px}:host([sub-label]) [part=icon]{font-size:1.8em}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:46px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#fff}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:120ms;background:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#1429bd}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]:active){background-color:#0f1e8a}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([active][disabled]){color:rgba(255,255,255,.5);background-color:rgba(51,75,255,.5)}:host([disabled]){pointer-events:none;color:rgba(204,204,204,.5);background-color:rgba(64,64,64,.5)}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#1429bd}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#6678ff;background-color:#404040}:host(:hover){color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.8);background-color:#1429bd}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#fff;background-color:#0f1e8a}:host(:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([level="1"]){border-right:1px solid #0d0d0d}:host([level="2"]:not(:last-child)){border-right:none}:host([level="2"]:not(:last-child)) [part=label-container]::after{content:\'\';position:absolute;margin:auto;width:1px;background:#404040;height:70%;right:0;top:0;bottom:0;z-index:1}:host([level="2"]:not(:active):not([active]):not(:hover)){background-color:#262626}:host([level="2"][active]:not(:active):not(:hover)){color:#6678ff;background-color:#0d0d0d}:host([level="2"][active]:focus:not([focused])),:host([level="2"][focused=visible]:not(:active):not(:hover)){color:#6678ff}:host([level="3"]){border-bottom:2px solid transparent;color:#ccc;background-color:#0d0d0d}:host([level="3"][clears-on-hover]) [part=close-container]{background:#0d0d0d;box-shadow:-1em 0 .75em -.5em #0d0d0d}:host([level="3"]:focus:not([focused])),:host([level="3"][focused=visible]){color:#fff;background-color:#262626}:host([level="3"]:active),:host([level="3"]:hover),:host([level="3"][active]){color:#fff;background-color:#0d0d0d;border-color:#334bff}:host([level="3"]:active[clears-on-hover]) [part=close-container],:host([level="3"]:hover[clears-on-hover]) [part=close-container],:host([level="3"][active][clears-on-hover]) [part=close-container]{background:#0d0d0d;box-shadow:-1em 0 .75em -.5em #0d0d0d}:host([level="3"]:active) [part=close],:host([level="3"]:hover) [part=close],:host([level="3"][active]) [part=close]{color:#fff}:host([level="3"]:hover){border-color:#1429bd}:host([level="3"]:active){border-color:#0f1e8a}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#404040;color:#ccc;height:36px;padding:9px 12px;outline:0;font-size:12px;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation}:host [part=icon]{min-width:1em;font-size:1.5em}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:46px}:host([sub-label]) [part=icon]{font-size:1.8em}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp=\'2\']),:host([line-clamp=\'3\']){height:46px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#fff}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:120ms;background:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#1429bd}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]:active){background-color:#0f1e8a}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([active][disabled]){color:rgba(255,255,255,.5);background-color:rgba(51,75,255,.5)}:host([disabled]){pointer-events:none;color:rgba(204,204,204,.5);background-color:rgba(64,64,64,.5)}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#1429bd}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#6678ff;background-color:#404040}:host(:hover){color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.8);background-color:#1429bd}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#fff;background-color:#0f1e8a}:host(:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([level=\'1\']){border-right:1px solid #0d0d0d}:host([level=\'2\']:not(:last-child)){border-right:none}:host([level=\'2\']:not(:last-child)) [part=label-container]::after{content:\'\';position:absolute;margin:auto;width:1px;background:#404040;height:70%;right:0;top:0;bottom:0;z-index:1}:host([level=\'2\']:not(:active):not([active]):not(:hover)){background-color:#262626}:host([level=\'2\'][active]:not(:active):not(:hover)){color:#6678ff;background-color:#0d0d0d}:host([level=\'2\'][active]:focus:not([focused])),:host([level=\'2\'][focused=visible]:not(:active):not(:hover)){color:#6678ff}:host([level=\'3\']){border-bottom:2px solid transparent;color:#ccc;background-color:#0d0d0d}:host([level=\'3\'][clears-on-hover]) [part=close-container]{background:#0d0d0d;box-shadow:-1em 0 .75em -.5em #0d0d0d}:host([level=\'3\']:focus:not([focused])),:host([level=\'3\'][focused=visible]){color:#fff;background-color:#262626}:host([level=\'3\']:active),:host([level=\'3\']:hover),:host([level=\'3\'][active]){color:#fff;background-color:#0d0d0d;border-color:#334bff}:host([level=\'3\']:active[clears-on-hover]) [part=close-container],:host([level=\'3\']:hover[clears-on-hover]) [part=close-container],:host([level=\'3\'][active][clears-on-hover]) [part=close-container]{background:#0d0d0d;box-shadow:-1em 0 .75em -.5em #0d0d0d}:host([level=\'3\']:active) [part=close],:host([level=\'3\']:hover) [part=close],:host([level=\'3\'][active]) [part=close]{color:#fff}:host([level=\'3\']:hover){border-color:#1429bd}:host([level=\'3\']:active){border-color:#0f1e8a}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/halo/light';
2
2
  import '@refinitiv-ui/elements/label/themes/halo/light';
3
-
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#e6e6e6;color:#0d0d0d;height:36px;padding:9px 12px;outline:0;font-size:12px;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation}:host [part=icon]{min-width:1em;font-size:1.5em}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:46px}:host([sub-label]) [part=icon]{font-size:1.8em}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:46px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#fff}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:120ms;background:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#1429bd}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]:active){background-color:#0f1e8a}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([active][disabled]){color:rgba(255,255,255,.5);background-color:rgba(51,75,255,.5)}:host([disabled]){pointer-events:none;color:rgba(13,13,13,.5);background-color:rgba(230,230,230,.5)}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#1429bd}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#6678ff;background-color:#e6e6e6}:host(:hover){color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.55);background-color:#1429bd}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#fff;background-color:#0f1e8a}:host(:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([level="1"]){border-right:1px solid #fff}:host([level="2"]:not(:last-child)){border-right:none}:host([level="2"]:not(:last-child)) [part=label-container]::after{content:\'\';position:absolute;margin:auto;width:1px;background:#d9d9d9;height:70%;right:0;top:0;bottom:0;z-index:1}:host([level="2"]:not(:active):not([active]):not(:hover)){background-color:#f2f2f2}:host([level="2"][active]:not(:active):not(:hover)){color:#334bff;background-color:#fff}:host([level="2"][active]:focus:not([focused])),:host([level="2"][focused=visible]:not(:active):not(:hover)){color:#6678ff}:host([level="3"]){border-bottom:2px solid transparent;color:#404040;background-color:#fff}:host([level="3"][clears-on-hover]) [part=close-container]{background:#fff;box-shadow:-1em 0 .75em -.5em #fff}:host([level="3"]:focus:not([focused])),:host([level="3"][focused=visible]){color:#0d0d0d;background-color:#f2f2f2}:host([level="3"]:active),:host([level="3"]:hover),:host([level="3"][active]){color:#0d0d0d;background-color:#fff;border-color:#334bff}:host([level="3"]:active[clears-on-hover]) [part=close-container],:host([level="3"]:hover[clears-on-hover]) [part=close-container],:host([level="3"][active][clears-on-hover]) [part=close-container]{background:#fff;box-shadow:-1em 0 .75em -.5em #fff}:host([level="3"]:active) [part=close],:host([level="3"]:hover) [part=close],:host([level="3"][active]) [part=close]{color:#0d0d0d}:host([level="3"]:hover){border-color:#1429bd}:host([level="3"]:active){border-color:#0f1e8a}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#e6e6e6;color:#0d0d0d;height:36px;padding:9px 12px;outline:0;font-size:12px;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation}:host [part=icon]{min-width:1em;font-size:1.5em}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:46px}:host([sub-label]) [part=icon]{font-size:1.8em}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp=\'2\']),:host([line-clamp=\'3\']){height:46px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#fff}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:120ms;background:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#1429bd}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]:active){background-color:#0f1e8a}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([active][disabled]){color:rgba(255,255,255,.5);background-color:rgba(51,75,255,.5)}:host([disabled]){pointer-events:none;color:rgba(13,13,13,.5);background-color:rgba(230,230,230,.5)}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#1429bd}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#6678ff;background-color:#e6e6e6}:host(:hover){color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.55);background-color:#1429bd}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#fff;background-color:#0f1e8a}:host(:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([level=\'1\']){border-right:1px solid #fff}:host([level=\'2\']:not(:last-child)){border-right:none}:host([level=\'2\']:not(:last-child)) [part=label-container]::after{content:\'\';position:absolute;margin:auto;width:1px;background:#d9d9d9;height:70%;right:0;top:0;bottom:0;z-index:1}:host([level=\'2\']:not(:active):not([active]):not(:hover)){background-color:#f2f2f2}:host([level=\'2\'][active]:not(:active):not(:hover)){color:#334bff;background-color:#fff}:host([level=\'2\'][active]:focus:not([focused])),:host([level=\'2\'][focused=visible]:not(:active):not(:hover)){color:#6678ff}:host([level=\'3\']){border-bottom:2px solid transparent;color:#404040;background-color:#fff}:host([level=\'3\'][clears-on-hover]) [part=close-container]{background:#fff;box-shadow:-1em 0 .75em -.5em #fff}:host([level=\'3\']:focus:not([focused])),:host([level=\'3\'][focused=visible]){color:#0d0d0d;background-color:#f2f2f2}:host([level=\'3\']:active),:host([level=\'3\']:hover),:host([level=\'3\'][active]){color:#0d0d0d;background-color:#fff;border-color:#334bff}:host([level=\'3\']:active[clears-on-hover]) [part=close-container],:host([level=\'3\']:hover[clears-on-hover]) [part=close-container],:host([level=\'3\'][active][clears-on-hover]) [part=close-container]{background:#fff;box-shadow:-1em 0 .75em -.5em #fff}:host([level=\'3\']:active) [part=close],:host([level=\'3\']:hover) [part=close],:host([level=\'3\'][active]) [part=close]{color:#0d0d0d}:host([level=\'3\']:hover){border-color:#1429bd}:host([level=\'3\']:active){border-color:#0f1e8a}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
2
2
  import '@refinitiv-ui/elements/label/themes/solar/charcoal';
3
-
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#3c3c42;color:#c2c2c2;height:23px;padding:7px 15px;outline:0;font-size:13px;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid #000;border-left:none}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:33px}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:33px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#e2e2e2}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:70ms;background:#4a4a4f;box-shadow:-1em 0 .75em -.5em #4a4a4f}:host([active]){color:#0a0a0a;background-color:#f93}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#ffa041;box-shadow:-1em 0 .75em -.5em #ffa041}:host([active]:active){background-color:#ed8e2f}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#ed8e2f;box-shadow:-1em 0 .75em -.5em #ed8e2f}:host([active][disabled]){background-color:#ffad5c;color:rgba(10,10,10,.7)}:host([disabled]){pointer-events:none;color:#c2c2c2;background-color:#636368}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#ffa041}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#e2e2e2;background-color:#3c3c42}:host(:hover){color:#e2e2e2;box-shadow:0 0 0 0 rgba(0,0,0,.9);background-color:#4a4a4f}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#c2c2c2;background-color:#38383d}:host(:active[clears-on-hover]) [part=close-container]{background-color:#38383d;box-shadow:-1em 0 .75em -.5em #38383d}:host [part=icon]{min-width:1em;font-size:1em}:host([sub-label]) [part=icon]{font-size:1.2em}:host([active]:hover){color:#0a0a0a;background-color:#ffb366}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#3c3c42;color:#c2c2c2;height:23px;padding:7px 15px;outline:0;font-size:13px;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid #000;border-left:none}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:33px}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp=\'2\']),:host([line-clamp=\'3\']){height:33px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#e2e2e2}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:70ms;background:#4a4a4f;box-shadow:-1em 0 .75em -.5em #4a4a4f}:host([active]){color:#0a0a0a;background-color:#f93}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#ffa041;box-shadow:-1em 0 .75em -.5em #ffa041}:host([active]:active){background-color:#ed8e2f}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#ed8e2f;box-shadow:-1em 0 .75em -.5em #ed8e2f}:host([active][disabled]){background-color:#ffad5c;color:rgba(10,10,10,.7)}:host([disabled]){pointer-events:none;color:#c2c2c2;background-color:#636368}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#ffa041}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#e2e2e2;background-color:#3c3c42}:host(:hover){color:#e2e2e2;box-shadow:0 0 0 0 rgba(0,0,0,.9);background-color:#4a4a4f}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#c2c2c2;background-color:#38383d}:host(:active[clears-on-hover]) [part=close-container]{background-color:#38383d;box-shadow:-1em 0 .75em -.5em #38383d}:host [part=icon]{min-width:1em;font-size:1em}:host([sub-label]) [part=icon]{font-size:1.2em}:host([active]:hover){color:#0a0a0a;background-color:#ffb366}' }}));
@@ -1,4 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/pearl';
2
2
  import '@refinitiv-ui/elements/label/themes/solar/pearl';
3
-
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#fafbfc;color:#505050;height:23px;padding:7px 15px;outline:0;font-size:13px;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid #a9afba;border-left:none}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:33px}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:33px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#1d1d1d}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:70ms;background:#fafbfc;box-shadow:-1em 0 .75em -.5em #fafbfc}:host([active]){color:#505050;background-color:#ffb266}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#ffb771;box-shadow:-1em 0 .75em -.5em #ffb771}:host([active]:active){background-color:#eda65f}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#eda65f;box-shadow:-1em 0 .75em -.5em #eda65f}:host([active][disabled]){color:#a8896a;background-color:#ffc185}:host([disabled]){pointer-events:none;color:#505050;background-color:#fbfcfd}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#ffb771}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#1d1d1d;background-color:#fafbfc}:host(:hover){color:#1d1d1d;box-shadow:0 0 0 0 rgba(0,0,0,.6);background-color:#fafbfc}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#505050;background-color:#e8e9ea}:host(:active[clears-on-hover]) [part=close-container]{background-color:#e8e9ea;box-shadow:-1em 0 .75em -.5em #e8e9ea}:host [part=icon]{min-width:1em;font-size:1em}:host([sub-label]) [part=icon]{font-size:1.2em}:host([active]:hover){color:#505050;background-color:#fc9}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#fafbfc;color:#505050;height:23px;padding:7px 15px;outline:0;font-size:13px;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid #a9afba;border-left:none}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:33px}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp=\'2\']),:host([line-clamp=\'3\']){height:33px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#1d1d1d}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:70ms;background:#fafbfc;box-shadow:-1em 0 .75em -.5em #fafbfc}:host([active]){color:#505050;background-color:#ffb266}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#ffb771;box-shadow:-1em 0 .75em -.5em #ffb771}:host([active]:active){background-color:#eda65f}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#eda65f;box-shadow:-1em 0 .75em -.5em #eda65f}:host([active][disabled]){color:#a8896a;background-color:#ffc185}:host([disabled]){pointer-events:none;color:#505050;background-color:#fbfcfd}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#ffb771}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#1d1d1d;background-color:#fafbfc}:host(:hover){color:#1d1d1d;box-shadow:0 0 0 0 rgba(0,0,0,.6);background-color:#fafbfc}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#505050;background-color:#e8e9ea}:host(:active[clears-on-hover]) [part=close-container]{background-color:#e8e9ea;box-shadow:-1em 0 .75em -.5em #e8e9ea}:host [part=icon]{min-width:1em;font-size:1em}:host([sub-label]) [part=icon]{font-size:1.2em}:host([active]:hover){color:#505050;background-color:#fc9}' }}));
@@ -34,7 +34,7 @@ const tweenAnimate = (configs) => {
34
34
  const delta = endPosition - startPosition;
35
35
  const tweenLoop = () => {
36
36
  const currentTime = 'now' in window.performance ? performance.now() : new Date().getTime();
37
- const step = Math.min(1, ((currentTime - startTime) / duration));
37
+ const step = Math.min(1, (currentTime - startTime) / duration);
38
38
  const factor = functionEasings[easing](step); // factor can be a decimal
39
39
  configs.target.scrollLeft = startPosition + delta * factor;
40
40
  if (step < 1 && configs.target.scrollLeft !== endPosition) {
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { TemplateResult, CSSResultGroup, PropertyValues, BasicElement } from '@refinitiv-ui/core';
2
+ import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
3
  import '../button/index.js';
4
4
  import '../layout/index.js';
5
5
  /**