@refinitiv-ui/elements 5.12.0-alpha.2 → 5.12.0-dev.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 (335) hide show
  1. package/README.md +4 -4
  2. package/lib/accordion/index.js +2 -2
  3. package/lib/appstate-bar/index.js +2 -2
  4. package/lib/autosuggest/index.js +6 -6
  5. package/lib/button/index.d.ts +10 -4
  6. package/lib/button/index.js +26 -8
  7. package/lib/button-bar/index.d.ts +49 -0
  8. package/lib/button-bar/index.js +151 -11
  9. package/lib/calendar/constants.js +1 -1
  10. package/lib/calendar/index.d.ts +1 -1
  11. package/lib/calendar/index.js +11 -11
  12. package/lib/calendar/types.d.ts +1 -1
  13. package/lib/calendar/utils.js +1 -1
  14. package/lib/canvas/index.js +2 -2
  15. package/lib/card/index.js +5 -5
  16. package/lib/chart/index.js +4 -4
  17. package/lib/checkbox/index.js +3 -3
  18. package/lib/clock/index.js +6 -6
  19. package/lib/clock/utils/TickManager.js +2 -2
  20. package/lib/collapse/index.js +3 -3
  21. package/lib/color-dialog/elements/color-palettes.js +1 -1
  22. package/lib/color-dialog/elements/grayscale-palettes.js +2 -2
  23. package/lib/color-dialog/elements/palettes.js +3 -3
  24. package/lib/color-dialog/helpers/value-model.js +1 -1
  25. package/lib/color-dialog/index.d.ts +1 -1
  26. package/lib/color-dialog/index.js +6 -6
  27. package/lib/combo-box/helpers/filter.d.ts +1 -1
  28. package/lib/combo-box/helpers/types.d.ts +1 -1
  29. package/lib/combo-box/index.d.ts +4 -4
  30. package/lib/combo-box/index.js +9 -9
  31. package/lib/counter/index.js +2 -2
  32. package/lib/datetime-picker/index.js +5 -5
  33. package/lib/datetime-picker/utils.js +1 -1
  34. package/lib/dialog/index.d.ts +1 -1
  35. package/lib/dialog/index.js +5 -5
  36. package/lib/email-field/index.d.ts +1 -1
  37. package/lib/email-field/index.js +2 -2
  38. package/lib/flag/index.js +3 -3
  39. package/lib/flag/utils/FlagLoader.d.ts +1 -1
  40. package/lib/flag/utils/FlagLoader.js +1 -1
  41. package/lib/header/index.js +2 -2
  42. package/lib/heatmap/helpers/color.d.ts +1 -1
  43. package/lib/heatmap/helpers/color.js +1 -1
  44. package/lib/heatmap/index.js +5 -5
  45. package/lib/icon/index.js +3 -3
  46. package/lib/icon/utils/IconLoader.d.ts +1 -1
  47. package/lib/icon/utils/IconLoader.js +1 -1
  48. package/lib/interactive-chart/helpers/types.d.ts +1 -1
  49. package/lib/interactive-chart/index.js +4 -4
  50. package/lib/item/helpers/types.d.ts +1 -1
  51. package/lib/item/index.js +3 -3
  52. package/lib/label/index.js +4 -4
  53. package/lib/layout/index.js +2 -2
  54. package/lib/led-gauge/index.js +2 -2
  55. package/lib/list/helpers/types.d.ts +1 -1
  56. package/lib/list/index.d.ts +1 -1
  57. package/lib/list/index.js +3 -3
  58. package/lib/list/renderer.d.ts +1 -1
  59. package/lib/loader/index.js +1 -1
  60. package/lib/multi-input/helpers/types.d.ts +1 -1
  61. package/lib/multi-input/index.js +6 -6
  62. package/lib/notification/elements/notification-tray.js +3 -3
  63. package/lib/notification/elements/notification.js +2 -2
  64. package/lib/number-field/index.d.ts +1 -1
  65. package/lib/number-field/index.js +4 -3
  66. package/lib/overlay/elements/overlay-backdrop.js +2 -2
  67. package/lib/overlay/elements/overlay-viewport.js +1 -1
  68. package/lib/overlay/elements/overlay.js +4 -4
  69. package/lib/overlay/managers/focus-manager.js +1 -1
  70. package/lib/overlay/managers/interaction-lock-manager.js +1 -1
  71. package/lib/overlay/managers/viewport-manager.js +1 -1
  72. package/lib/overlay/managers/zindex-manager.js +1 -1
  73. package/lib/overlay-menu/helpers/types.d.ts +1 -1
  74. package/lib/overlay-menu/index.js +6 -6
  75. package/lib/overlay-menu/managers/menu-manager.js +1 -1
  76. package/lib/pagination/index.d.ts +1 -1
  77. package/lib/pagination/index.js +5 -5
  78. package/lib/panel/index.js +2 -2
  79. package/lib/password-field/index.d.ts +2 -2
  80. package/lib/password-field/index.js +3 -3
  81. package/lib/pill/index.js +3 -3
  82. package/lib/progress-bar/index.js +3 -3
  83. package/lib/radio-button/index.js +3 -3
  84. package/lib/rating/index.js +4 -4
  85. package/lib/search-field/index.d.ts +2 -2
  86. package/lib/search-field/index.js +3 -3
  87. package/lib/select/index.js +6 -6
  88. package/lib/sidebar-layout/index.js +4 -4
  89. package/lib/slider/index.js +4 -4
  90. package/lib/sparkline/index.js +4 -4
  91. package/lib/swing-gauge/index.js +5 -5
  92. package/lib/tab/index.js +2 -2
  93. package/lib/tab-bar/index.js +3 -3
  94. package/lib/text-field/index.d.ts +1 -1
  95. package/lib/text-field/index.js +4 -4
  96. package/lib/time-picker/index.d.ts +1 -1
  97. package/lib/time-picker/index.js +9 -9
  98. package/lib/toggle/index.js +2 -2
  99. package/lib/tooltip/index.js +4 -4
  100. package/lib/tooltip/managers/tooltip-manager.js +2 -2
  101. package/lib/tornado-chart/elements/tornado-chart.js +2 -2
  102. package/lib/tornado-chart/elements/tornado-item.js +3 -3
  103. package/lib/tree/elements/tree-item.js +2 -2
  104. package/lib/tree/elements/tree.d.ts +1 -1
  105. package/lib/tree/elements/tree.js +2 -2
  106. package/lib/tree/helpers/types.d.ts +1 -1
  107. package/lib/tree/managers/tree-manager.d.ts +1 -1
  108. package/lib/tree-select/index.d.ts +3 -3
  109. package/lib/tree-select/index.js +9 -9
  110. package/lib/version.js +1 -1
  111. package/package.json +300 -23
  112. package/lib/accordion/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  113. package/lib/accordion/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  114. package/lib/accordion/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  115. package/lib/accordion/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  116. package/lib/appstate-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  117. package/lib/appstate-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  118. package/lib/appstate-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  119. package/lib/appstate-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  120. package/lib/autosuggest/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  121. package/lib/autosuggest/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  122. package/lib/autosuggest/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  123. package/lib/autosuggest/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  124. package/lib/button/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  125. package/lib/button/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  126. package/lib/button/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  127. package/lib/button/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  128. package/lib/button-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  129. package/lib/button-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  130. package/lib/button-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  131. package/lib/button-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  132. package/lib/calendar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  133. package/lib/calendar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  134. package/lib/calendar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  135. package/lib/calendar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  136. package/lib/canvas/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  137. package/lib/canvas/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  138. package/lib/canvas/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  139. package/lib/canvas/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  140. package/lib/card/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  141. package/lib/card/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  142. package/lib/card/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  143. package/lib/card/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  144. package/lib/chart/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  145. package/lib/chart/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  146. package/lib/chart/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  147. package/lib/chart/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  148. package/lib/checkbox/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  149. package/lib/checkbox/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  150. package/lib/checkbox/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  151. package/lib/checkbox/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  152. package/lib/clock/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  153. package/lib/clock/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  154. package/lib/clock/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  155. package/lib/clock/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  156. package/lib/collapse/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  157. package/lib/collapse/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  158. package/lib/collapse/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  159. package/lib/collapse/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  160. package/lib/color-dialog/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  161. package/lib/color-dialog/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  162. package/lib/color-dialog/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  163. package/lib/color-dialog/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  164. package/lib/combo-box/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  165. package/lib/combo-box/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  166. package/lib/combo-box/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  167. package/lib/combo-box/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  168. package/lib/counter/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  169. package/lib/counter/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  170. package/lib/counter/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  171. package/lib/counter/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  172. package/lib/datetime-picker/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  173. package/lib/datetime-picker/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  174. package/lib/datetime-picker/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  175. package/lib/datetime-picker/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  176. package/lib/dialog/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  177. package/lib/dialog/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  178. package/lib/dialog/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  179. package/lib/dialog/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  180. package/lib/email-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  181. package/lib/email-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  182. package/lib/email-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  183. package/lib/email-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  184. package/lib/flag/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  185. package/lib/flag/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  186. package/lib/flag/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  187. package/lib/flag/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  188. package/lib/header/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  189. package/lib/header/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  190. package/lib/header/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  191. package/lib/header/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  192. package/lib/heatmap/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  193. package/lib/heatmap/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  194. package/lib/heatmap/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  195. package/lib/heatmap/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  196. package/lib/icon/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  197. package/lib/icon/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  198. package/lib/icon/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  199. package/lib/icon/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  200. package/lib/interactive-chart/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  201. package/lib/interactive-chart/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  202. package/lib/interactive-chart/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  203. package/lib/interactive-chart/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  204. package/lib/item/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  205. package/lib/item/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  206. package/lib/item/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  207. package/lib/item/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  208. package/lib/label/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  209. package/lib/label/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  210. package/lib/label/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  211. package/lib/label/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  212. package/lib/layout/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  213. package/lib/layout/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  214. package/lib/layout/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  215. package/lib/layout/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  216. package/lib/led-gauge/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  217. package/lib/led-gauge/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  218. package/lib/led-gauge/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  219. package/lib/led-gauge/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  220. package/lib/list/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  221. package/lib/list/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  222. package/lib/list/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  223. package/lib/list/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  224. package/lib/loader/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  225. package/lib/loader/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  226. package/lib/loader/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  227. package/lib/loader/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  228. package/lib/multi-input/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  229. package/lib/multi-input/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  230. package/lib/multi-input/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  231. package/lib/multi-input/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  232. package/lib/notification/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  233. package/lib/notification/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  234. package/lib/notification/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  235. package/lib/notification/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  236. package/lib/number-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  237. package/lib/number-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  238. package/lib/number-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  239. package/lib/number-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  240. package/lib/overlay/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  241. package/lib/overlay/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  242. package/lib/overlay/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  243. package/lib/overlay/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  244. package/lib/overlay-menu/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  245. package/lib/overlay-menu/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  246. package/lib/overlay-menu/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  247. package/lib/overlay-menu/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  248. package/lib/pagination/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -6
  249. package/lib/pagination/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -6
  250. package/lib/pagination/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -6
  251. package/lib/pagination/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -6
  252. package/lib/panel/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  253. package/lib/panel/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  254. package/lib/panel/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  255. package/lib/panel/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  256. package/lib/password-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  257. package/lib/password-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  258. package/lib/password-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  259. package/lib/password-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  260. package/lib/pill/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  261. package/lib/pill/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  262. package/lib/pill/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  263. package/lib/pill/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  264. package/lib/progress-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  265. package/lib/progress-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  266. package/lib/progress-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  267. package/lib/progress-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  268. package/lib/radio-button/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  269. package/lib/radio-button/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  270. package/lib/radio-button/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  271. package/lib/radio-button/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  272. package/lib/rating/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  273. package/lib/rating/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  274. package/lib/rating/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  275. package/lib/rating/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  276. package/lib/search-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  277. package/lib/search-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  278. package/lib/search-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  279. package/lib/search-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  280. package/lib/select/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  281. package/lib/select/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  282. package/lib/select/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -5
  283. package/lib/select/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -5
  284. package/lib/sidebar-layout/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  285. package/lib/sidebar-layout/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  286. package/lib/sidebar-layout/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  287. package/lib/sidebar-layout/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  288. package/lib/slider/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  289. package/lib/slider/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  290. package/lib/slider/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  291. package/lib/slider/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  292. package/lib/sparkline/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  293. package/lib/sparkline/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  294. package/lib/sparkline/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  295. package/lib/sparkline/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  296. package/lib/swing-gauge/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  297. package/lib/swing-gauge/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  298. package/lib/swing-gauge/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  299. package/lib/swing-gauge/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  300. package/lib/tab/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  301. package/lib/tab/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  302. package/lib/tab/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  303. package/lib/tab/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  304. package/lib/tab-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  305. package/lib/tab-bar/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  306. package/lib/tab-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  307. package/lib/tab-bar/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  308. package/lib/text-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  309. package/lib/text-field/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  310. package/lib/text-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  311. package/lib/text-field/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  312. package/lib/time-picker/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  313. package/lib/time-picker/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  314. package/lib/time-picker/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -4
  315. package/lib/time-picker/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -4
  316. package/lib/toggle/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  317. package/lib/toggle/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  318. package/lib/toggle/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -2
  319. package/lib/toggle/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -2
  320. package/lib/tooltip/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  321. package/lib/tooltip/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  322. package/lib/tooltip/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -3
  323. package/lib/tooltip/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -3
  324. package/lib/tornado-chart/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -6
  325. package/lib/tornado-chart/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -6
  326. package/lib/tornado-chart/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -6
  327. package/lib/tornado-chart/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -6
  328. package/lib/tree/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  329. package/lib/tree/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  330. package/lib/tree/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -7
  331. package/lib/tree/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -7
  332. package/lib/tree-select/themes/halo/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -11
  333. package/lib/tree-select/themes/halo/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -11
  334. package/lib/tree-select/themes/solar/node_modules/@refinitiv-ui/elemental-theme/dark/index.js +0 -11
  335. package/lib/tree-select/themes/solar/node_modules/@refinitiv-ui/elemental-theme/light/index.js +0 -11
package/README.md CHANGED
@@ -29,10 +29,10 @@ Finally, import both elements that you want to use and its themes into your appl
29
29
  import '@refinitiv-ui/halo-theme/dark/imports/native-elements';
30
30
 
31
31
  // import element and its Halo dark theme
32
- import '@refinitiv-ui/elements/button';
33
- import '@refinitiv-ui/elements/panel';
34
- import '@refinitiv-ui/elements/button/themes/halo/dark';
35
- import '@refinitiv-ui/elements/panel/themes/halo/dark';
32
+ import '@refinitiv-ui/elements/lib/button';
33
+ import '@refinitiv-ui/elements/lib/panel';
34
+ import '@refinitiv-ui/elements/lib/button/themes/halo/dark';
35
+ import '@refinitiv-ui/elements/lib/panel/themes/halo/dark';
36
36
  ```
37
37
 
38
38
  Now, you can use the elements in your app.
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
5
  import { VERSION } from '../version.js';
6
6
  import { Collapse } from '../collapse/index.js';
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { BasicElement, html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
5
  import { VERSION } from '../version.js';
6
6
  import '../icon/index.js';
7
7
  /**
@@ -1,14 +1,14 @@
1
1
  var Autosuggest_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { css, html } from '@refinitiv-ui/core';
4
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
- import { query } from '@refinitiv-ui/core/decorators/query.js';
6
- import { property } from '@refinitiv-ui/core/decorators/property.js';
7
- import { unsafeHTML } from '@refinitiv-ui/core/directives/unsafe-html.js';
4
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
5
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
6
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
7
+ import { unsafeHTML } from '@refinitiv-ui/core/lib/directives/unsafe-html.js';
8
8
  import { VERSION } from '../version.js';
9
- import { AnimationTaskRunner, TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
9
+ import { AnimationTaskRunner, TimeoutTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
10
10
  import { escapeRegExp, itemHighlightable, itemRenderer, queryWordSelect } from './helpers/utils.js';
11
- import { isIE, isMobile } from '@refinitiv-ui/utils/browser.js';
11
+ import { isIE, isMobile } from '@refinitiv-ui/utils/lib/browser.js';
12
12
  import { Overlay } from '../overlay/index.js';
13
13
  import '../loader/index.js';
14
14
  import '../item/index.js';
@@ -58,10 +58,16 @@ export declare class Button extends ControlElement {
58
58
  */
59
59
  ariaPressed: string;
60
60
  /**
61
- * Updates the element
62
- * @param changedProperties Properties that has changed
63
- * @returns {void}
64
- */
61
+ * Aria indicating state of toggle button.
62
+ * Used when role is radio.
63
+ * @ignore
64
+ */
65
+ ariaChecked: string;
66
+ /**
67
+ * Updates the element
68
+ * @param changedProperties Properties that has changed
69
+ * @returns {void}
70
+ */
65
71
  protected update(changedProperties: PropertyValues): void;
66
72
  /**
67
73
  * the lifecycle method called when properties changed first time
@@ -1,8 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ControlElement, html } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { query } from '@refinitiv-ui/core/decorators/query.js';
5
- import { property } from '@refinitiv-ui/core/decorators/property.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
5
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
6
6
  import { VERSION } from '../version.js';
7
7
  import { registerOverflowTooltip } from '../tooltip/index.js';
8
8
  import '../icon/index.js';
@@ -65,6 +65,12 @@ let Button = class Button extends ControlElement {
65
65
  * @ignore
66
66
  */
67
67
  this.ariaPressed = '';
68
+ /**
69
+ * Aria indicating state of toggle button.
70
+ * Used when role is radio.
71
+ * @ignore
72
+ */
73
+ this.ariaChecked = '';
68
74
  }
69
75
  /**
70
76
  * Element version number
@@ -74,13 +80,18 @@ let Button = class Button extends ControlElement {
74
80
  return VERSION;
75
81
  }
76
82
  /**
77
- * Updates the element
78
- * @param changedProperties Properties that has changed
79
- * @returns {void}
80
- */
83
+ * Updates the element
84
+ * @param changedProperties Properties that has changed
85
+ * @returns {void}
86
+ */
81
87
  update(changedProperties) {
82
88
  if (changedProperties.has('active') && this.toggles || changedProperties.has('toggles') && this.toggles) {
83
- this.ariaPressed = String(this.active);
89
+ if (this.getAttribute('role') === 'radio') {
90
+ this.ariaChecked = String(this.active);
91
+ }
92
+ else {
93
+ this.ariaPressed = String(this.active);
94
+ }
84
95
  }
85
96
  super.update(changedProperties);
86
97
  }
@@ -215,6 +226,13 @@ __decorate([
215
226
  converter: { toAttribute: emptyStringToNull } // TODO: Remove after typescript update to allow nullable for ARIAMixin
216
227
  })
217
228
  ], Button.prototype, "ariaPressed", void 0);
229
+ __decorate([
230
+ property({ type: String,
231
+ reflect: true,
232
+ attribute: 'aria-checked',
233
+ converter: { toAttribute: emptyStringToNull } // TODO: Remove after typescript update to allow nullable for ARIAMixin
234
+ })
235
+ ], Button.prototype, "ariaChecked", void 0);
218
236
  Button = __decorate([
219
237
  customElement('ef-button', {
220
238
  alias: 'coral-button'
@@ -9,6 +9,11 @@ export declare class ButtonBar extends BasicElement {
9
9
  * @returns version number
10
10
  */
11
11
  static get version(): string;
12
+ /**
13
+ * Element's role attribute for accessibility
14
+ * `role` should be `radiogroup` when it is managed.
15
+ */
16
+ protected defaultRole: 'toolbar' | 'radiogroup';
12
17
  /**
13
18
  * A `CSSResultGroup` that will be used
14
19
  * to style the host, slotted children
@@ -30,6 +35,45 @@ export declare class ButtonBar extends BasicElement {
30
35
  * @returns {void}
31
36
  */
32
37
  protected firstUpdated(changedProperties: PropertyValues): void;
38
+ /**
39
+ * Handles key down event
40
+ * @param event Key down event object
41
+ * @returns {void}
42
+ */
43
+ private onKeyDown;
44
+ /**
45
+ * Navigate to next or previous focusable button
46
+ * @param direction next | down
47
+ * @returns {void}
48
+ */
49
+ private navigateToSibling;
50
+ /**
51
+ * Navigate to the first focusable button
52
+ * @returns {void}
53
+ */
54
+ private first;
55
+ /**
56
+ * Navigate to the last focusable button
57
+ * @returns {void}
58
+ */
59
+ private last;
60
+ /**
61
+ * Sets the tabindex to -1 for all buttons except the currently focused one.
62
+ * @param target the button to be focused
63
+ * @param buttons Array of Buttons that contains target
64
+ * @returns {void}
65
+ */
66
+ private rovingTabIndex;
67
+ /**
68
+ * Set tabIndex to all buttons
69
+ * @returns {void}
70
+ */
71
+ private manageTabIndex;
72
+ /**
73
+ * Check if button bar is nested, a.k.a. has parent button bar
74
+ * @returns `True` if button bar is nested
75
+ */
76
+ private isNested;
33
77
  /**
34
78
  * Handles tap event
35
79
  * @param event the param is the event of click and tap handlers
@@ -47,6 +91,11 @@ export declare class ButtonBar extends BasicElement {
47
91
  * @returns the array of Element of the default slot
48
92
  */
49
93
  private getElementsOfSlot;
94
+ /**
95
+ * Return the array of Buttons which focusable
96
+ * @returns the array of focusable Buttons
97
+ */
98
+ private getFocusableButtons;
50
99
  /**
51
100
  * Filter Button classes by the toggles property
52
101
  * @param buttons the array of Button items is the converted nodes of the default slot
@@ -1,20 +1,30 @@
1
+ var ButtonBar_1;
1
2
  import { __decorate } from "tslib";
2
3
  import { BasicElement, html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { query } from '@refinitiv-ui/core/decorators/query.js';
5
- import { property } from '@refinitiv-ui/core/decorators/property.js';
4
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
5
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
6
6
  import { VERSION } from '../version.js';
7
7
  import { Button } from '../button/index.js';
8
+ import { ref, createRef } from '@refinitiv-ui/core/lib/directives/ref.js';
8
9
  /**
9
10
  * Used to display multiple buttons to create a list of commands bar.
10
11
  */
11
- let ButtonBar = class ButtonBar extends BasicElement {
12
+ let ButtonBar = ButtonBar_1 = class ButtonBar extends BasicElement {
12
13
  constructor() {
13
14
  super(...arguments);
15
+ /**
16
+ * Element's role attribute for accessibility
17
+ * `role` should be `radiogroup` when it is managed.
18
+ */
19
+ this.defaultRole = 'toolbar';
14
20
  /**
15
21
  * Manages user interaction, only allowing one toggle button to be active at any one time.
16
22
  */
17
23
  this.managed = false;
24
+ /**
25
+ * Default slot
26
+ */
27
+ this.defaultSlot = createRef();
18
28
  }
19
29
  /**
20
30
  * Element version number
@@ -84,6 +94,130 @@ let ButtonBar = class ButtonBar extends BasicElement {
84
94
  firstUpdated(changedProperties) {
85
95
  super.firstUpdated(changedProperties);
86
96
  this.addEventListener('tap', this.onTapHandler);
97
+ this.addEventListener('keydown', this.onKeyDown);
98
+ this.manageTabIndex();
99
+ }
100
+ /**
101
+ * Handles key down event
102
+ * @param event Key down event object
103
+ * @returns {void}
104
+ */
105
+ onKeyDown(event) {
106
+ switch (event.key) {
107
+ case 'Tab':
108
+ // To prevent inserting button case, make sure there is only one tabIndex=0 in the buttons
109
+ this.manageTabIndex();
110
+ break;
111
+ case ' ':
112
+ case 'Spacebar':
113
+ case 'Enter':
114
+ this.onTapHandler(event);
115
+ break;
116
+ case 'Right':
117
+ case 'ArrowRight':
118
+ // Prevent calling twice if this component is nested
119
+ !this.isNested() && this.navigateToSibling('next');
120
+ break;
121
+ case 'Down':
122
+ case 'ArrowDown':
123
+ // Managed works as role radiogroup so `Up` and `Down` key can navigate among radios in the group
124
+ this.managed && this.navigateToSibling('next');
125
+ break;
126
+ case 'Left':
127
+ case 'ArrowLeft':
128
+ !this.isNested() && this.navigateToSibling('previous');
129
+ break;
130
+ case 'Up':
131
+ case 'ArrowUp':
132
+ this.managed && this.navigateToSibling('previous');
133
+ break;
134
+ case 'Home':
135
+ !this.isNested() && this.first();
136
+ break;
137
+ case 'End':
138
+ !this.isNested() && this.last();
139
+ break;
140
+ default:
141
+ return;
142
+ }
143
+ }
144
+ /**
145
+ * Navigate to next or previous focusable button
146
+ * @param direction next | down
147
+ * @returns {void}
148
+ */
149
+ navigateToSibling(direction) {
150
+ const buttons = this.getFocusableButtons();
151
+ if (buttons.length <= 0) {
152
+ return;
153
+ }
154
+ const focusedButtonIndex = buttons.findIndex(button => button === document.activeElement);
155
+ const nextButton = direction === 'next'
156
+ ? buttons[focusedButtonIndex + 1] || buttons[0]
157
+ : buttons[focusedButtonIndex - 1] || buttons[buttons.length - 1];
158
+ nextButton.focus();
159
+ this.rovingTabIndex(nextButton, buttons);
160
+ }
161
+ /**
162
+ * Navigate to the first focusable button
163
+ * @returns {void}
164
+ */
165
+ first() {
166
+ const buttons = this.getFocusableButtons();
167
+ if (buttons.length <= 0) {
168
+ return;
169
+ }
170
+ buttons[0].focus();
171
+ this.rovingTabIndex(buttons[0], buttons);
172
+ }
173
+ /**
174
+ * Navigate to the last focusable button
175
+ * @returns {void}
176
+ */
177
+ last() {
178
+ const buttons = this.getFocusableButtons();
179
+ if (buttons.length <= 0) {
180
+ return;
181
+ }
182
+ buttons[buttons.length - 1].focus();
183
+ this.rovingTabIndex(buttons[buttons.length - 1], buttons);
184
+ }
185
+ /**
186
+ * Sets the tabindex to -1 for all buttons except the currently focused one.
187
+ * @param target the button to be focused
188
+ * @param buttons Array of Buttons that contains target
189
+ * @returns {void}
190
+ */
191
+ rovingTabIndex(target, buttons) {
192
+ buttons.forEach((button) => {
193
+ button.tabIndex = -1;
194
+ });
195
+ target.tabIndex = 0;
196
+ }
197
+ /**
198
+ * Set tabIndex to all buttons
199
+ * @returns {void}
200
+ */
201
+ manageTabIndex() {
202
+ if (this.isNested()) {
203
+ return;
204
+ }
205
+ const buttons = this.getFocusableButtons();
206
+ if (buttons && buttons.length > 0) {
207
+ // Set tabindex=0 to previous focused button when new button added If not found set it to first button instead
208
+ let focusedButtonIndex = buttons.findIndex(button => document.activeElement === button);
209
+ if (focusedButtonIndex === -1) {
210
+ focusedButtonIndex = 0;
211
+ }
212
+ this.rovingTabIndex(buttons[focusedButtonIndex], buttons);
213
+ }
214
+ }
215
+ /**
216
+ * Check if button bar is nested, a.k.a. has parent button bar
217
+ * @returns `True` if button bar is nested
218
+ */
219
+ isNested() {
220
+ return this.parentElement instanceof ButtonBar_1;
87
221
  }
88
222
  /**
89
223
  * Handles tap event
@@ -99,6 +233,8 @@ let ButtonBar = class ButtonBar extends BasicElement {
99
233
  event.stopPropagation();
100
234
  this.manageButtons(target);
101
235
  }
236
+ target.focus();
237
+ this.rovingTabIndex(target, this.getFocusableButtons());
102
238
  }
103
239
  /**
104
240
  * Get the target Button item and handle it with other managed Button items
@@ -120,8 +256,15 @@ let ButtonBar = class ButtonBar extends BasicElement {
120
256
  * @returns the array of Element of the default slot
121
257
  */
122
258
  getElementsOfSlot() {
123
- return this.defaultSlot.assignedNodes()
124
- .filter(node => node instanceof Element);
259
+ var _a;
260
+ return (_a = this.defaultSlot.value) === null || _a === void 0 ? void 0 : _a.assignedNodes().filter(node => node instanceof Element);
261
+ }
262
+ /**
263
+ * Return the array of Buttons which focusable
264
+ * @returns the array of focusable Buttons
265
+ */
266
+ getFocusableButtons() {
267
+ return [...this.querySelectorAll('ef-button,coral-button')].filter(button => !button.disabled);
125
268
  }
126
269
  /**
127
270
  * Filter Button classes by the toggles property
@@ -138,16 +281,13 @@ let ButtonBar = class ButtonBar extends BasicElement {
138
281
  * @return {TemplateResult} Render template
139
282
  */
140
283
  render() {
141
- return html `<slot></slot>`;
284
+ return html `<slot ${ref(this.defaultSlot)} ></slot>`;
142
285
  }
143
286
  };
144
287
  __decorate([
145
288
  property({ type: Boolean, reflect: true })
146
289
  ], ButtonBar.prototype, "managed", void 0);
147
- __decorate([
148
- query('slot:not([name])')
149
- ], ButtonBar.prototype, "defaultSlot", void 0);
150
- ButtonBar = __decorate([
290
+ ButtonBar = ButtonBar_1 = __decorate([
151
291
  customElement('ef-button-bar', {
152
292
  alias: 'coral-split-button'
153
293
  })
@@ -1,4 +1,4 @@
1
- import { uuid } from '@refinitiv-ui/utils/uuid.js';
1
+ import { uuid } from '@refinitiv-ui/utils/lib/uuid.js';
2
2
  export var RenderView;
3
3
  (function (RenderView) {
4
4
  RenderView["DAY"] = "day";
@@ -4,7 +4,7 @@ import { TranslateDirective, TranslatePromise } from '@refinitiv-ui/translate';
4
4
  import { CalendarFilter } from './types';
5
5
  import './locales.js';
6
6
  import '../button/index.js';
7
- import '@refinitiv-ui/phrasebook/locale/en/calendar.js';
7
+ import '@refinitiv-ui/phrasebook/lib/locale/en/calendar.js';
8
8
  export { CalendarFilter };
9
9
  /**
10
10
  * Standard calendar element
@@ -1,22 +1,22 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ControlElement, html, css, WarningNotice } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
5
- import { state } from '@refinitiv-ui/core/decorators/state.js';
6
- import { ifDefined } from '@refinitiv-ui/core/directives/if-defined.js';
7
- import { cache } from '@refinitiv-ui/core/directives/cache.js';
8
- import { guard } from '@refinitiv-ui/core/directives/guard.js';
9
- import { ref, createRef } from '@refinitiv-ui/core/directives/ref.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
+ import { state } from '@refinitiv-ui/core/lib/decorators/state.js';
6
+ import { ifDefined } from '@refinitiv-ui/core/lib/directives/if-defined.js';
7
+ import { cache } from '@refinitiv-ui/core/lib/directives/cache.js';
8
+ import { guard } from '@refinitiv-ui/core/lib/directives/guard.js';
9
+ import { ref, createRef } from '@refinitiv-ui/core/lib/directives/ref.js';
10
10
  import { VERSION } from '../version.js';
11
- import { isIE } from '@refinitiv-ui/utils/browser.js';
12
- import { DateFormat, format, utcFormat, utcParse, isValidDate, isWeekend, isAfter, isBefore, addMonths, subMonths, isToday, isThisMonth, isThisYear, isSameDay, isSameMonth, isSameYear, toDateSegment, parse } from '@refinitiv-ui/utils/date.js';
13
- import { left, right, up, down, first, last } from '@refinitiv-ui/utils/navigation.js';
11
+ import { isIE } from '@refinitiv-ui/utils/lib/browser.js';
12
+ import { DateFormat, format, utcFormat, utcParse, isValidDate, isWeekend, isAfter, isBefore, addMonths, subMonths, isToday, isThisMonth, isThisYear, isSameDay, isSameMonth, isSameYear, toDateSegment, parse } from '@refinitiv-ui/utils/lib/date.js';
13
+ import { left, right, up, down, first, last } from '@refinitiv-ui/utils/lib/navigation.js';
14
14
  import { monthInfo, weekdaysNames, monthsNames, formatLocaleDate, ViewFormatTranslateParams } from './utils.js';
15
15
  import { translate, getLocale, TranslatePropertyKey } from '@refinitiv-ui/translate';
16
16
  import { RenderView, CalendarLocaleScope, FIRST_DAY_OF_WEEK, YEARS_PER_YEAR_VIEW, DAY_VIEW, YEAR_VIEW, MONTH_VIEW } from './constants.js';
17
17
  import './locales.js';
18
18
  import '../button/index.js';
19
- import '@refinitiv-ui/phrasebook/locale/en/calendar.js';
19
+ import '@refinitiv-ui/phrasebook/lib/locale/en/calendar.js';
20
20
  /**
21
21
  * Standard calendar element
22
22
  *
@@ -1,4 +1,4 @@
1
- import { CellIndex } from '@refinitiv-ui/utils/navigation.js';
1
+ import { CellIndex } from '@refinitiv-ui/utils/lib/navigation.js';
2
2
  import { RenderView } from './constants.js';
3
3
  export interface CellSelectionModel {
4
4
  selected?: boolean;
@@ -1,4 +1,4 @@
1
- import { toDateSegment, getDaysInMonth, utcParse } from '@refinitiv-ui/utils/date.js';
1
+ import { toDateSegment, getDaysInMonth, utcParse } from '@refinitiv-ui/utils/lib/date.js';
2
2
  import { DEFAULT_LOCALE, resolveLocale } from '@refinitiv-ui/i18n';
3
3
  import { CalendarLocaleScope } from './constants.js';
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ResponsiveElement, html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
5
  import { VERSION } from '../version.js';
6
6
  /**
7
7
  * A Component uses to draw graphics on a web page,
package/lib/card/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { BasicElement, html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
5
- import { query } from '@refinitiv-ui/core/decorators/query.js';
6
- import { state } from '@refinitiv-ui/core/decorators/state.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
6
+ import { state } from '@refinitiv-ui/core/lib/decorators/state.js';
7
7
  import { VERSION } from '../version.js';
8
- import { isSlotEmpty } from '@refinitiv-ui/utils/is-slot-empty.js';
8
+ import { isSlotEmpty } from '@refinitiv-ui/utils/lib/is-slot-empty.js';
9
9
  import '../label/index.js';
10
10
  import '../button/index.js';
11
11
  import '../overlay-menu/index.js';
@@ -1,10 +1,10 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { BasicElement, html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
5
- import { query } from '@refinitiv-ui/core/decorators/query.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
6
6
  import { VERSION } from '../version.js';
7
- import { color as parseColor } from '@refinitiv-ui/utils/color.js';
7
+ import { color as parseColor } from '@refinitiv-ui/utils/lib/color.js';
8
8
  import 'chart.js/dist/Chart.bundle.min.js';
9
9
  import { legendHelper, merge } from './helpers/index.js';
10
10
  import '../header/index.js';
@@ -1,8 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { ControlElement, html, css } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
5
- import { query } from '@refinitiv-ui/core/decorators/query.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
6
6
  import { VERSION } from '../version.js';
7
7
  import { registerOverflowTooltip } from '../tooltip/index.js';
8
8
  import '../icon/index.js';
@@ -1,12 +1,12 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, css, WarningNotice, ResponsiveElement } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
5
- import { query } from '@refinitiv-ui/core/decorators/query.js';
6
- import { state } from '@refinitiv-ui/core/decorators/state.js';
7
- import { ifDefined } from '@refinitiv-ui/core/directives/if-defined.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
6
+ import { state } from '@refinitiv-ui/core/lib/decorators/state.js';
7
+ import { ifDefined } from '@refinitiv-ui/core/lib/directives/if-defined.js';
8
8
  import { VERSION } from '../version.js';
9
- import { MILLISECONDS_IN_SECOND, HOURS_OF_NOON, isValidTime, toTimeSegment, TimeFormat, format, padNumber } from '@refinitiv-ui/utils/date.js';
9
+ import { MILLISECONDS_IN_SECOND, HOURS_OF_NOON, isValidTime, toTimeSegment, TimeFormat, format, padNumber } from '@refinitiv-ui/utils/lib/date.js';
10
10
  import { HOURS_IN_DAY, MINUTES_IN_HOUR, SECONDS_IN_DAY, SECONDS_IN_HOUR, SECONDS_IN_MINUTE } from './utils/timestamps.js';
11
11
  import { register, deRegister } from './utils/TickManager.js';
12
12
  const UP = 'Up';
@@ -1,5 +1,5 @@
1
- import { TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
2
- import { MILLISECONDS_IN_SECOND } from '@refinitiv-ui/utils/date.js';
1
+ import { TimeoutTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
2
+ import { MILLISECONDS_IN_SECOND } from '@refinitiv-ui/utils/lib/date.js';
3
3
  const tickSet = new Set();
4
4
  let timeout = null;
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  var Collapse_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { BasicElement, css, html } from '@refinitiv-ui/core';
4
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
- import { property } from '@refinitiv-ui/core/decorators/property.js';
6
- import { query } from '@refinitiv-ui/core/decorators/query.js';
4
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
5
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
6
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
7
7
  import { VERSION } from '../version.js';
8
8
  import '../header/index.js';
9
9
  import '../panel/index.js';
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, css, svg } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
4
  import { VERSION } from '../../version.js';
5
5
  import { Palettes } from './palettes.js';
6
6
  import { COLOR_ITEMS } from '../helpers/color-helpers.js';
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html, css, svg } from '@refinitiv-ui/core';
3
- import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
- import { property } from '@refinitiv-ui/core/decorators/property.js';
3
+ import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
4
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
5
5
  import { VERSION } from '../../version.js';
6
6
  import { Palettes } from './palettes.js';
7
7
  import { GRAYSCALE_ITEMS, NOCOLOR_POINTS } from '../helpers/color-helpers.js';
@@ -1,9 +1,9 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { BasicElement, svg } from '@refinitiv-ui/core';
3
- import { property } from '@refinitiv-ui/core/decorators/property.js';
4
- import { query } from '@refinitiv-ui/core/decorators/query.js';
3
+ import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
4
+ import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
5
5
  import { VERSION } from '../../version.js';
6
- import { rgb } from '@refinitiv-ui/utils/color.js';
6
+ import { rgb } from '@refinitiv-ui/utils/lib/color.js';
7
7
  import { isHex } from '../helpers/color-helpers.js';
8
8
  /**
9
9
  * Element base class usually used
@@ -1,4 +1,4 @@
1
- import { rgb } from '@refinitiv-ui/utils/color.js';
1
+ import { rgb } from '@refinitiv-ui/utils/lib/color.js';
2
2
  import { isHex } from './color-helpers.js';
3
3
  const rgbNumberToString = (value) => isNaN(value) ? '' : `${value}`; // replace NaN with empty string
4
4
  /**
@@ -7,7 +7,7 @@ import { Dialog } from '../dialog/index.js';
7
7
  import './elements/color-palettes.js';
8
8
  import './elements/grayscale-palettes.js';
9
9
  import { Translate } from '@refinitiv-ui/translate';
10
- import '@refinitiv-ui/phrasebook/locale/en/color-dialog.js';
10
+ import '@refinitiv-ui/phrasebook/lib/locale/en/color-dialog.js';
11
11
  /**
12
12
  * Displays a colour picker dialog,
13
13
  * for selecting a predefined range of colours.