@refinitiv-ui/elements 6.5.3 → 6.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/lib/accordion/index.js +1 -3
  3. package/lib/appstate-bar/custom-elements.json +2 -2
  4. package/lib/appstate-bar/custom-elements.md +4 -4
  5. package/lib/appstate-bar/index.d.ts +2 -2
  6. package/lib/appstate-bar/index.js +3 -11
  7. package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
  8. package/lib/appstate-bar/themes/halo/light/index.js +1 -1
  9. package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
  10. package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
  11. package/lib/autosuggest/custom-elements.json +8 -8
  12. package/lib/autosuggest/custom-elements.md +8 -8
  13. package/lib/autosuggest/helpers/types.d.ts +18 -18
  14. package/lib/autosuggest/index.d.ts +8 -8
  15. package/lib/autosuggest/index.js +79 -81
  16. package/lib/button/custom-elements.json +1 -1
  17. package/lib/button/custom-elements.md +1 -1
  18. package/lib/button/index.d.ts +1 -1
  19. package/lib/button/index.js +2 -4
  20. package/lib/button/themes/halo/dark/index.js +2 -1
  21. package/lib/button/themes/halo/light/index.js +2 -1
  22. package/lib/button/themes/solar/charcoal/index.js +2 -1
  23. package/lib/button/themes/solar/pearl/index.js +2 -1
  24. package/lib/button-bar/index.js +1 -3
  25. package/lib/calendar/custom-elements.json +2 -2
  26. package/lib/calendar/custom-elements.md +4 -4
  27. package/lib/calendar/index.d.ts +2 -2
  28. package/lib/calendar/index.js +3 -5
  29. package/lib/calendar/themes/halo/dark/index.js +1 -1
  30. package/lib/calendar/themes/halo/light/index.js +1 -1
  31. package/lib/calendar/themes/solar/charcoal/index.js +1 -1
  32. package/lib/calendar/themes/solar/pearl/index.js +1 -1
  33. package/lib/calendar/types.d.ts +5 -5
  34. package/lib/calendar/utils.d.ts +1 -1
  35. package/lib/canvas/custom-elements.json +1 -1
  36. package/lib/canvas/custom-elements.md +1 -1
  37. package/lib/canvas/index.d.ts +1 -1
  38. package/lib/canvas/index.js +9 -11
  39. package/lib/card/custom-elements.json +1 -1
  40. package/lib/card/custom-elements.md +3 -3
  41. package/lib/card/helpers/types.d.ts +1 -1
  42. package/lib/card/index.d.ts +1 -1
  43. package/lib/card/index.js +2 -4
  44. package/lib/chart/custom-elements.json +4 -0
  45. package/lib/chart/custom-elements.md +1 -0
  46. package/lib/chart/helpers/merge.d.ts +2 -2
  47. package/lib/chart/helpers/types.d.ts +4 -4
  48. package/lib/chart/index.d.ts +1 -1
  49. package/lib/chart/index.js +1 -3
  50. package/lib/chart/themes/halo/dark/index.js +1 -1
  51. package/lib/chart/themes/halo/light/index.js +1 -1
  52. package/lib/chart/themes/solar/charcoal/index.js +1 -1
  53. package/lib/chart/themes/solar/pearl/index.js +1 -1
  54. package/lib/checkbox/custom-elements.json +1 -1
  55. package/lib/checkbox/custom-elements.md +3 -3
  56. package/lib/checkbox/index.d.ts +1 -1
  57. package/lib/checkbox/index.js +2 -4
  58. package/lib/clock/custom-elements.json +2 -2
  59. package/lib/clock/custom-elements.md +2 -2
  60. package/lib/clock/index.d.ts +2 -2
  61. package/lib/clock/index.js +3 -5
  62. package/lib/clock/utils/TickManager.d.ts +1 -1
  63. package/lib/collapse/custom-elements.json +1 -1
  64. package/lib/collapse/custom-elements.md +3 -3
  65. package/lib/collapse/index.d.ts +1 -1
  66. package/lib/collapse/index.js +2 -4
  67. package/lib/color-dialog/custom-elements.json +2 -2
  68. package/lib/color-dialog/custom-elements.md +4 -4
  69. package/lib/color-dialog/helpers/value-model.js +3 -1
  70. package/lib/color-dialog/index.d.ts +2 -2
  71. package/lib/color-dialog/index.js +3 -5
  72. package/lib/color-picker/custom-elements.json +1 -1
  73. package/lib/color-picker/custom-elements.md +3 -3
  74. package/lib/color-picker/index.d.ts +1 -1
  75. package/lib/color-picker/index.js +2 -4
  76. package/lib/combo-box/custom-elements.json +3 -6
  77. package/lib/combo-box/custom-elements.md +5 -6
  78. package/lib/combo-box/helpers/types.d.ts +2 -2
  79. package/lib/combo-box/index.d.ts +3 -12
  80. package/lib/combo-box/index.js +7 -20
  81. package/lib/combo-box/themes/halo/dark/index.js +2 -1
  82. package/lib/combo-box/themes/halo/light/index.js +2 -1
  83. package/lib/combo-box/themes/solar/charcoal/index.js +2 -1
  84. package/lib/combo-box/themes/solar/pearl/index.js +2 -1
  85. package/lib/counter/index.js +1 -3
  86. package/lib/counter/themes/halo/dark/index.js +2 -1
  87. package/lib/counter/themes/halo/light/index.js +2 -1
  88. package/lib/counter/themes/solar/charcoal/index.js +2 -1
  89. package/lib/counter/themes/solar/pearl/index.js +2 -1
  90. package/lib/datetime-field/types.d.ts +3 -3
  91. package/lib/datetime-picker/custom-elements.json +4 -4
  92. package/lib/datetime-picker/custom-elements.md +4 -4
  93. package/lib/datetime-picker/index.d.ts +4 -4
  94. package/lib/datetime-picker/index.js +5 -7
  95. package/lib/datetime-picker/themes/halo/dark/index.js +2 -1
  96. package/lib/datetime-picker/themes/halo/light/index.js +2 -1
  97. package/lib/datetime-picker/themes/solar/charcoal/index.js +2 -1
  98. package/lib/datetime-picker/themes/solar/pearl/index.js +2 -1
  99. package/lib/datetime-picker/types.d.ts +1 -1
  100. package/lib/dialog/custom-elements.json +1 -1
  101. package/lib/dialog/custom-elements.md +1 -1
  102. package/lib/dialog/index.d.ts +1 -1
  103. package/lib/dialog/index.js +2 -4
  104. package/lib/email-field/custom-elements.json +3 -3
  105. package/lib/email-field/custom-elements.md +5 -5
  106. package/lib/email-field/index.d.ts +3 -3
  107. package/lib/email-field/index.js +4 -6
  108. package/lib/email-field/themes/halo/dark/index.js +2 -1
  109. package/lib/email-field/themes/halo/light/index.js +2 -1
  110. package/lib/email-field/themes/solar/charcoal/index.js +2 -1
  111. package/lib/email-field/themes/solar/pearl/index.js +2 -1
  112. package/lib/events.d.ts +13 -13
  113. package/lib/flag/index.js +1 -3
  114. package/lib/header/index.js +1 -3
  115. package/lib/header/themes/halo/dark/index.js +1 -1
  116. package/lib/header/themes/halo/light/index.js +1 -1
  117. package/lib/header/themes/solar/charcoal/index.js +1 -1
  118. package/lib/header/themes/solar/pearl/index.js +1 -1
  119. package/lib/heatmap/helpers/types.d.ts +7 -7
  120. package/lib/heatmap/index.js +118 -120
  121. package/lib/icon/index.js +1 -3
  122. package/lib/interactive-chart/custom-elements.json +1 -1
  123. package/lib/interactive-chart/custom-elements.md +3 -3
  124. package/lib/interactive-chart/helpers/merge.d.ts +2 -2
  125. package/lib/interactive-chart/helpers/types.d.ts +7 -7
  126. package/lib/interactive-chart/index.d.ts +1 -1
  127. package/lib/interactive-chart/index.js +2 -4
  128. package/lib/item/custom-elements.json +4 -4
  129. package/lib/item/custom-elements.md +2 -2
  130. package/lib/item/helpers/types.d.ts +2 -2
  131. package/lib/item/index.d.ts +2 -1
  132. package/lib/item/index.js +3 -4
  133. package/lib/label/index.js +1 -3
  134. package/lib/layout/index.js +1 -3
  135. package/lib/led-gauge/index.js +8 -10
  136. package/lib/list/custom-elements.json +1 -1
  137. package/lib/list/custom-elements.md +3 -3
  138. package/lib/list/elements/list.d.ts +1 -1
  139. package/lib/list/elements/list.js +5 -8
  140. package/lib/list/helpers/renderer.d.ts +0 -4
  141. package/lib/list/helpers/renderer.js +5 -5
  142. package/lib/list/helpers/types.d.ts +1 -1
  143. package/lib/loader/index.js +1 -3
  144. package/lib/multi-input/custom-elements.json +5 -5
  145. package/lib/multi-input/custom-elements.md +5 -5
  146. package/lib/multi-input/helpers/types.d.ts +3 -3
  147. package/lib/multi-input/index.d.ts +5 -17
  148. package/lib/multi-input/index.js +6 -20
  149. package/lib/multi-input/themes/halo/dark/index.js +1 -1
  150. package/lib/multi-input/themes/halo/light/index.js +1 -1
  151. package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
  152. package/lib/multi-input/themes/solar/pearl/index.js +1 -1
  153. package/lib/notification/custom-elements.json +2 -2
  154. package/lib/notification/custom-elements.md +4 -4
  155. package/lib/notification/elements/notification-tray.js +1 -3
  156. package/lib/notification/elements/notification.d.ts +2 -2
  157. package/lib/notification/elements/notification.js +3 -5
  158. package/lib/notification/helpers/types.d.ts +2 -2
  159. package/lib/number-field/custom-elements.json +2 -2
  160. package/lib/number-field/custom-elements.md +4 -4
  161. package/lib/number-field/index.d.ts +3 -3
  162. package/lib/number-field/index.js +3 -5
  163. package/lib/number-field/themes/halo/dark/index.js +2 -1
  164. package/lib/number-field/themes/halo/light/index.js +2 -1
  165. package/lib/number-field/themes/solar/charcoal/index.js +2 -1
  166. package/lib/number-field/themes/solar/pearl/index.js +2 -1
  167. package/lib/overlay/custom-elements.json +6 -9
  168. package/lib/overlay/custom-elements.md +7 -8
  169. package/lib/overlay/elements/overlay.d.ts +7 -7
  170. package/lib/overlay/elements/overlay.js +10 -19
  171. package/lib/overlay/helpers/types.d.ts +13 -13
  172. package/lib/overlay/managers/close-manager.d.ts +1 -1
  173. package/lib/overlay/managers/zindex-manager.d.ts +1 -1
  174. package/lib/overlay-menu/custom-elements.json +2 -2
  175. package/lib/overlay-menu/custom-elements.md +2 -2
  176. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  177. package/lib/overlay-menu/index.d.ts +2 -2
  178. package/lib/overlay-menu/index.js +30 -32
  179. package/lib/pagination/custom-elements.json +1 -1
  180. package/lib/pagination/custom-elements.md +3 -3
  181. package/lib/pagination/index.d.ts +1 -2
  182. package/lib/pagination/index.js +2 -5
  183. package/lib/pagination/themes/halo/dark/index.js +1 -1
  184. package/lib/pagination/themes/halo/light/index.js +1 -1
  185. package/lib/pagination/themes/solar/charcoal/index.js +1 -1
  186. package/lib/pagination/themes/solar/pearl/index.js +1 -1
  187. package/lib/panel/index.js +1 -3
  188. package/lib/password-field/custom-elements.json +2 -6
  189. package/lib/password-field/custom-elements.md +4 -5
  190. package/lib/password-field/index.d.ts +2 -3
  191. package/lib/password-field/index.js +3 -6
  192. package/lib/password-field/themes/halo/dark/index.js +2 -1
  193. package/lib/password-field/themes/halo/light/index.js +2 -1
  194. package/lib/password-field/themes/solar/charcoal/index.js +2 -1
  195. package/lib/password-field/themes/solar/pearl/index.js +2 -1
  196. package/lib/pill/custom-elements.json +1 -1
  197. package/lib/pill/custom-elements.md +3 -3
  198. package/lib/pill/index.d.ts +1 -1
  199. package/lib/pill/index.js +2 -4
  200. package/lib/pill/themes/halo/dark/index.js +2 -1
  201. package/lib/pill/themes/halo/light/index.js +2 -1
  202. package/lib/pill/themes/solar/charcoal/index.js +2 -1
  203. package/lib/pill/themes/solar/pearl/index.js +2 -1
  204. package/lib/progress-bar/index.js +1 -3
  205. package/lib/radio-button/custom-elements.json +1 -1
  206. package/lib/radio-button/custom-elements.md +3 -3
  207. package/lib/radio-button/index.d.ts +1 -1
  208. package/lib/radio-button/index.js +2 -4
  209. package/lib/rating/custom-elements.json +1 -1
  210. package/lib/rating/custom-elements.md +3 -3
  211. package/lib/rating/index.d.ts +1 -1
  212. package/lib/rating/index.js +2 -4
  213. package/lib/search-field/custom-elements.json +3 -3
  214. package/lib/search-field/custom-elements.md +5 -5
  215. package/lib/search-field/index.d.ts +3 -3
  216. package/lib/search-field/index.js +4 -6
  217. package/lib/search-field/themes/halo/dark/index.js +2 -1
  218. package/lib/search-field/themes/halo/light/index.js +2 -1
  219. package/lib/search-field/themes/solar/charcoal/index.js +2 -1
  220. package/lib/search-field/themes/solar/pearl/index.js +2 -1
  221. package/lib/select/custom-elements.json +2 -2
  222. package/lib/select/custom-elements.md +4 -4
  223. package/lib/select/helpers/types.d.ts +2 -2
  224. package/lib/select/index.d.ts +2 -2
  225. package/lib/select/index.js +4 -5
  226. package/lib/select/themes/halo/dark/index.js +2 -1
  227. package/lib/select/themes/halo/light/index.js +2 -1
  228. package/lib/select/themes/solar/charcoal/index.js +2 -1
  229. package/lib/select/themes/solar/pearl/index.js +2 -1
  230. package/lib/sidebar-layout/index.js +1 -3
  231. package/lib/slider/custom-elements.json +3 -3
  232. package/lib/slider/custom-elements.md +5 -5
  233. package/lib/slider/index.d.ts +3 -3
  234. package/lib/slider/index.js +100 -102
  235. package/lib/sparkline/index.js +1 -3
  236. package/lib/swing-gauge/index.js +1 -3
  237. package/lib/swing-gauge/types.d.ts +1 -1
  238. package/lib/tab/custom-elements.json +1 -1
  239. package/lib/tab/custom-elements.md +3 -3
  240. package/lib/tab/index.d.ts +1 -1
  241. package/lib/tab/index.js +2 -4
  242. package/lib/tab/themes/halo/dark/index.js +1 -1
  243. package/lib/tab/themes/halo/light/index.js +1 -1
  244. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  245. package/lib/tab/themes/solar/pearl/index.js +1 -1
  246. package/lib/tab-bar/custom-elements.json +1 -1
  247. package/lib/tab-bar/custom-elements.md +3 -3
  248. package/lib/tab-bar/index.d.ts +1 -1
  249. package/lib/tab-bar/index.js +2 -4
  250. package/lib/text-field/custom-elements.json +3 -3
  251. package/lib/text-field/custom-elements.md +5 -5
  252. package/lib/text-field/index.d.ts +3 -3
  253. package/lib/text-field/index.js +4 -6
  254. package/lib/text-field/themes/halo/dark/index.js +2 -1
  255. package/lib/text-field/themes/halo/light/index.js +2 -1
  256. package/lib/text-field/themes/solar/charcoal/index.js +2 -1
  257. package/lib/text-field/themes/solar/pearl/index.js +2 -1
  258. package/lib/time-picker/custom-elements.json +1 -1
  259. package/lib/time-picker/custom-elements.md +3 -3
  260. package/lib/time-picker/index.d.ts +1 -1
  261. package/lib/time-picker/index.js +2 -4
  262. package/lib/time-picker/themes/halo/dark/index.js +2 -1
  263. package/lib/time-picker/themes/halo/light/index.js +2 -1
  264. package/lib/time-picker/themes/solar/charcoal/index.js +2 -1
  265. package/lib/time-picker/themes/solar/pearl/index.js +2 -1
  266. package/lib/toggle/custom-elements.json +1 -1
  267. package/lib/toggle/custom-elements.md +3 -3
  268. package/lib/toggle/index.d.ts +1 -1
  269. package/lib/toggle/index.js +2 -4
  270. package/lib/toggle/themes/halo/dark/index.js +1 -1
  271. package/lib/toggle/themes/halo/light/index.js +1 -1
  272. package/lib/toggle/themes/solar/charcoal/index.js +1 -1
  273. package/lib/toggle/themes/solar/pearl/index.js +1 -1
  274. package/lib/tooltip/helpers/types.d.ts +10 -10
  275. package/lib/tooltip/index.js +1 -3
  276. package/lib/tornado-chart/elements/tornado-chart.js +1 -3
  277. package/lib/tornado-chart/themes/halo/dark/index.js +1 -1
  278. package/lib/tornado-chart/themes/halo/light/index.js +1 -1
  279. package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
  280. package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
  281. package/lib/tree/custom-elements.json +2 -2
  282. package/lib/tree/custom-elements.md +2 -2
  283. package/lib/tree/elements/tree-item.js +1 -3
  284. package/lib/tree/elements/tree.d.ts +2 -2
  285. package/lib/tree/elements/tree.js +2 -2
  286. package/lib/tree/helpers/renderer.d.ts +0 -4
  287. package/lib/tree/helpers/renderer.js +5 -5
  288. package/lib/tree/helpers/types.d.ts +2 -2
  289. package/lib/tree-select/custom-elements.json +7 -7
  290. package/lib/tree-select/custom-elements.md +7 -7
  291. package/lib/tree-select/helpers/types.d.ts +2 -2
  292. package/lib/tree-select/index.d.ts +5 -6
  293. package/lib/tree-select/index.js +15 -18
  294. package/lib/tree-select/themes/halo/dark/index.js +2 -1
  295. package/lib/tree-select/themes/halo/light/index.js +2 -1
  296. package/lib/tree-select/themes/solar/charcoal/index.js +2 -1
  297. package/lib/tree-select/themes/solar/pearl/index.js +2 -1
  298. package/lib/version.js +1 -1
  299. package/package.json +9 -9
@@ -32,7 +32,7 @@ const Placeholder = {
32
32
  };
33
33
  /**
34
34
  * Control the time input
35
- * @event value-changed - Dispatched when value changes
35
+ * @event value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
36
36
  *
37
37
  * @attr {boolean} readonly - Set readonly state
38
38
  * @prop {boolean} [readonly=false] - Set readonly state
@@ -891,8 +891,6 @@ __decorate([
891
891
  state()
892
892
  ], TimePicker.prototype, "announceValues", void 0);
893
893
  TimePicker = TimePicker_1 = __decorate([
894
- customElement('ef-time-picker', {
895
- alias: 'coral-time-picker'
896
- })
894
+ customElement('ef-time-picker')
897
895
  ], TimePicker);
898
896
  export { TimePicker };
@@ -1,4 +1,5 @@
1
1
  import '@refinitiv-ui/elements/number-field/themes/halo/dark';
2
2
  import '@refinitiv-ui/elements/icon/themes/halo/dark';
3
+ import '@refinitiv-ui/elements/tooltip/themes/halo/dark';
3
4
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:12rem;font-weight:400;height:24px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#ccc;border-radius:0;background-color:#0d0d0d;text-overflow:ellipsis;border:1px solid #404040;width:auto;min-width:-moz-max-content;min-width:max-content;padding:0}:host([disabled]){color:rgba(204,204,204,.5);border:1px solid rgba(64,64,64,.5)}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#334bff}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:24px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;font-size:50%;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;line-height:1.2;outline:0;cursor:pointer;touch-action:manipulation}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-left:8px solid transparent;position:absolute;left:calc(50% - 8px);bottom:0;border-bottom:4px solid transparent;display:none}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host [part=divider]{width:2px}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:12px;font-weight:400;height:24px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#ccc;border-radius:0;background-color:#0d0d0d;text-overflow:ellipsis;border:1px solid #404040;width:auto;min-width:-moz-max-content;min-width:max-content;padding:0}:host([disabled]){color:rgba(204,204,204,.5);border:1px solid rgba(64,64,64,.5)}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#334bff}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:24px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;font-size:50%;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;line-height:1.2;outline:0;cursor:pointer;touch-action:manipulation}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-left:8px solid transparent;position:absolute;left:calc(50% - 8px);bottom:0;border-bottom:4px solid transparent;display:none}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host [part=divider]{width:2px}' }}));
@@ -1,4 +1,5 @@
1
1
  import '@refinitiv-ui/elements/number-field/themes/halo/light';
2
2
  import '@refinitiv-ui/elements/icon/themes/halo/light';
3
+ import '@refinitiv-ui/elements/tooltip/themes/halo/light';
3
4
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:12rem;font-weight:400;height:24px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#404040;border-radius:0;background-color:#fff;text-overflow:ellipsis;border:1px solid #595959;width:auto;min-width:-moz-max-content;min-width:max-content;padding:0}:host([disabled]){color:rgba(64,64,64,.5);border:1px solid rgba(89,89,89,.5)}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#334bff}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:24px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;font-size:50%;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;line-height:1.2;outline:0;cursor:pointer;touch-action:manipulation}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-left:8px solid transparent;position:absolute;left:calc(50% - 8px);bottom:0;border-bottom:4px solid transparent;display:none}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host [part=divider]{width:2px}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:12px;font-weight:400;height:24px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#404040;border-radius:0;background-color:#fff;text-overflow:ellipsis;border:1px solid #595959;width:auto;min-width:-moz-max-content;min-width:max-content;padding:0}:host([disabled]){color:rgba(64,64,64,.5);border:1px solid rgba(89,89,89,.5)}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#334bff}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:24px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;font-size:50%;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;line-height:1.2;outline:0;cursor:pointer;touch-action:manipulation}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-left:8px solid transparent;position:absolute;left:calc(50% - 8px);bottom:0;border-bottom:4px solid transparent;display:none}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host [part=divider]{width:2px}' }}));
@@ -1,4 +1,5 @@
1
1
  import '@refinitiv-ui/elements/number-field/themes/solar/charcoal';
2
2
  import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
3
+ import '@refinitiv-ui/elements/tooltip/themes/solar/charcoal';
3
4
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13rem;font-weight:400;height:23px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#c2c2c2;border-radius:0;text-overflow:ellipsis;width:auto;min-width:-moz-max-content;min-width:max-content;background-color:#000;border:1px solid #4a4a52;padding:0}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#f93;border-style:dotted}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:25px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;outline:0;cursor:pointer;touch-action:manipulation;font-size:70%;line-height:1}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-bottom:4px solid #f93;border-left:8px solid transparent;position:absolute;content:\'\';border:none;left:calc(50% - 7px);bottom:-1px;width:14px;height:1px;background:#f93}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host([disabled]){border:1px solid rgba(74,74,82,.6);color:rgba(194,194,194,.6)}:host([readonly]){border:1px solid rgba(74,74,82,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #77777d}:host([warning]){background-color:#000;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(194,194,194,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#000;border:1px solid #f5475b}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(245,71,91,.6);color:rgba(194,194,194,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(245,71,91,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #f87584}:host([highlight]){background-color:#1b252f;border:1px solid #4a4a52}:host([highlight][disabled]){border:1px solid rgba(74,74,82,.6);color:rgba(194,194,194,.6);background-color:rgba(27,37,47,.6)}:host([highlight][readonly]){border:1px solid rgba(74,74,82,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #77777d}:host([indirect]){color:#0fd;background-color:#000;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,255,221,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;height:23px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#c2c2c2;border-radius:0;text-overflow:ellipsis;width:auto;min-width:-moz-max-content;min-width:max-content;background-color:#000;border:1px solid #4a4a52;padding:0}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#f93;border-style:dotted}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:25px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;outline:0;cursor:pointer;touch-action:manipulation;font-size:70%;line-height:1}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-bottom:4px solid #f93;border-left:8px solid transparent;position:absolute;content:\'\';border:none;left:calc(50% - 7px);bottom:-1px;width:14px;height:1px;background:#f93}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host([disabled]){border:1px solid rgba(74,74,82,.6);color:rgba(194,194,194,.6)}:host([readonly]){border:1px solid rgba(74,74,82,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #77777d}:host([warning]){background-color:#000;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(194,194,194,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#000;border:1px solid #f5475b}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(245,71,91,.6);color:rgba(194,194,194,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(245,71,91,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #f87584}:host([highlight]){background-color:#1b252f;border:1px solid #4a4a52}:host([highlight][disabled]){border:1px solid rgba(74,74,82,.6);color:rgba(194,194,194,.6);background-color:rgba(27,37,47,.6)}:host([highlight][readonly]){border:1px solid rgba(74,74,82,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #77777d}:host([indirect]){color:#0fd;background-color:#000;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,255,221,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}' }}));
@@ -1,4 +1,5 @@
1
1
  import '@refinitiv-ui/elements/number-field/themes/solar/pearl';
2
2
  import '@refinitiv-ui/elements/icon/themes/solar/pearl';
3
+ import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
3
4
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13rem;font-weight:400;height:23px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#484848;border-radius:0;text-overflow:ellipsis;width:auto;min-width:-moz-max-content;min-width:max-content;background-color:#fff;border:1px solid #a9afba;padding:0}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#ffb266;border-style:dotted}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:25px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;outline:0;cursor:pointer;touch-action:manipulation;font-size:70%;line-height:1}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-bottom:4px solid #ffb266;border-left:8px solid transparent;position:absolute;content:\'\';border:none;left:calc(50% - 7px);bottom:-1px;width:14px;height:1px;background:#ffb266}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host([disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6)}:host([readonly]){border:1px solid rgba(169,175,186,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([warning]){background-color:#fff;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(72,72,72,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#fff;border:1px solid #d94255}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(217,66,85,.6);color:rgba(72,72,72,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(217,66,85,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #e37180}:host([highlight]){background-color:#b0ffff;border:1px solid #a9afba}:host([highlight][disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6);background-color:rgba(176,255,255,.6)}:host([highlight][readonly]){border:1px solid rgba(169,175,186,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([indirect]){color:#009494;background-color:#effefe;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,148,148,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-time-picker', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;height:23px;max-width:100%;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#484848;border-radius:0;text-overflow:ellipsis;width:auto;min-width:-moz-max-content;min-width:max-content;background-color:#fff;border:1px solid #a9afba;padding:0}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#ffb266;border-style:dotted}:host [part=input]{margin:0;text-align:center;padding:0;color:inherit;width:25px}:host [part=divider]::before{content:\':\'}:host [part=toggle]{width:20px;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;outline:0;cursor:pointer;touch-action:manipulation;font-size:70%;line-height:1}:host [part=input],:host [part=toggle]{height:100%;position:relative}:host [part=input]:focus::after,:host [part=input][focused]::after,:host [part=toggle]:focus::after,:host [part=toggle][focused]::after{content:\'\';border-right:8px solid transparent;border-bottom:4px solid #ffb266;border-left:8px solid transparent;position:absolute;content:\'\';border:none;left:calc(50% - 7px);bottom:-1px;width:14px;height:1px;background:#ffb266}:host [part=toggle-item]{opacity:.5}:host [part=toggle-item][active]{opacity:1}:host([disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6)}:host([readonly]){border:1px solid rgba(169,175,186,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([warning]){background-color:#fff;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(72,72,72,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#fff;border:1px solid #d94255}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(217,66,85,.6);color:rgba(72,72,72,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(217,66,85,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #e37180}:host([highlight]){background-color:#b0ffff;border:1px solid #a9afba}:host([highlight][disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6);background-color:rgba(176,255,255,.6)}:host([highlight][readonly]){border:1px solid rgba(169,175,186,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([indirect]){color:#009494;background-color:#effefe;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,148,148,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}' }}));
@@ -76,7 +76,7 @@
76
76
  "events": [
77
77
  {
78
78
  "name": "checked-changed",
79
- "description": "Fired when the `checked` property changes."
79
+ "description": "Fired when user interacts with the control to check or uncheck. The event is not triggered if `checked` property is changed programmatically."
80
80
  }
81
81
  ]
82
82
  }
@@ -14,6 +14,6 @@ Form control that can toggle between 2 states
14
14
 
15
15
  ## Events
16
16
 
17
- | Event | Description |
18
- |-------------------|--------------------------------------------|
19
- | `checked-changed` | Fired when the `checked` property changes. |
17
+ | Event | Description |
18
+ |-------------------|--------------------------------------------------|
19
+ | `checked-changed` | Fired when user interacts with the control to check or uncheck. The event is not triggered if `checked` property is changed programmatically. |
@@ -9,7 +9,7 @@ import { ControlElement, TemplateResult, CSSResultGroup, PropertyValues } from '
9
9
  * @attr {boolean} disabled - Set disabled state
10
10
  * @prop {boolean} [disabled=false] - Set disabled state
11
11
  *
12
- * @fires checked-changed - Fired when the `checked` property changes.
12
+ * @fires checked-changed - Fired when user interacts with the control to check or uncheck. The event is not triggered if `checked` property is changed programmatically.
13
13
  */
14
14
  export declare class Toggle extends ControlElement {
15
15
  /**
@@ -22,7 +22,7 @@ const emptyStringToNull = function (value) {
22
22
  * @attr {boolean} disabled - Set disabled state
23
23
  * @prop {boolean} [disabled=false] - Set disabled state
24
24
  *
25
- * @fires checked-changed - Fired when the `checked` property changes.
25
+ * @fires checked-changed - Fired when user interacts with the control to check or uncheck. The event is not triggered if `checked` property is changed programmatically.
26
26
  */
27
27
  let Toggle = class Toggle extends ControlElement {
28
28
  constructor() {
@@ -136,8 +136,6 @@ __decorate([
136
136
  property({ type: Boolean, reflect: true })
137
137
  ], Toggle.prototype, "checked", void 0);
138
138
  Toggle = __decorate([
139
- customElement('ef-toggle', {
140
- alias: 'coral-toggle'
141
- })
139
+ customElement('ef-toggle')
142
140
  ], Toggle);
143
141
  export { Toggle };
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:12rem;background-color:#0d0d0d;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.5);transition:box-shadow .1s,border-color .1s;width:44px;height:24px;font-weight:400;color:#ccc;line-height:18px;text-transform:uppercase}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #4d4d4d;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;box-sizing:border-box;border-radius:inherit;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#ccc}:host([checked-label]),:host([label]){min-width:52px;width:54px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{left:auto;border-color:#334bff;background-color:#334bff;right:1px}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #334bff}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#334bff}:host(:hover:not([readonly])){color:#fff}:host(:hover:not([readonly])) [part=toggle]{border-color:#1429bd}:host(:hover:not([readonly])) [part=toggle]::after{background-color:#1429bd;border-color:#1429bd}}:host([checked]){color:#fff}:host([disabled]) [part=toggle]::after{opacity:.2}:host [part=toggle]::after,:host([checked]) [part=toggle]::after{border:1px solid #0d0d0d}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:12px;background-color:#0d0d0d;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.5);transition:box-shadow .1s,border-color .1s;width:44px;height:24px;font-weight:400;color:#ccc;line-height:18px;text-transform:uppercase}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #4d4d4d;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;box-sizing:border-box;border-radius:inherit;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#ccc}:host([checked-label]),:host([label]){min-width:52px;width:54px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{left:auto;border-color:#334bff;background-color:#334bff;right:1px}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #334bff}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#334bff}:host(:hover:not([readonly])){color:#fff}:host(:hover:not([readonly])) [part=toggle]{border-color:#1429bd}:host(:hover:not([readonly])) [part=toggle]::after{background-color:#1429bd;border-color:#1429bd}}:host([checked]){color:#fff}:host([disabled]) [part=toggle]::after{opacity:.2}:host [part=toggle]::after,:host([checked]) [part=toggle]::after{border:1px solid #0d0d0d}' }}));
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:12rem;background-color:#fff;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.25);transition:box-shadow .1s,border-color .1s;width:44px;height:24px;font-weight:600;color:#0d0d0d;line-height:18px;text-transform:uppercase}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;box-sizing:border-box;border-radius:inherit;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#0d0d0d}:host([checked-label]),:host([label]){min-width:52px;width:54px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{left:auto;border-color:#334bff;background-color:#334bff;right:1px}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #334bff}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#334bff}:host(:hover:not([readonly])){color:#0d0d0d}:host(:hover:not([readonly])) [part=toggle]{border-color:#1429bd}:host(:hover:not([readonly])) [part=toggle]::after{background-color:#1429bd;border-color:#1429bd}}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:12px;background-color:#fff;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.25);transition:box-shadow .1s,border-color .1s;width:44px;height:24px;font-weight:600;color:#0d0d0d;line-height:18px;text-transform:uppercase}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;box-sizing:border-box;border-radius:inherit;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#0d0d0d}:host([checked-label]),:host([label]){min-width:52px;width:54px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{left:auto;border-color:#334bff;background-color:#334bff;right:1px}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #334bff}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#334bff}:host(:hover:not([readonly])){color:#0d0d0d}:host(:hover:not([readonly])) [part=toggle]{border-color:#1429bd}:host(:hover:not([readonly])) [part=toggle]::after{background-color:#1429bd;border-color:#1429bd}}' }}));
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:13rem;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.6);transition:box-shadow .2s,border-color .2s;width:44px;height:24px;color:#e2e2e2;background-color:#000;line-height:18px}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #4a4a52;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#555d6c;box-sizing:border-box;border-radius:inherit}:host([checked-label]),:host([label]){width:67.6px;min-width:52px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{right:1px;left:auto;border-color:#f93;background-color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #f93}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#f93}}:host [part=toggle] ::after{top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-image:linear-gradient(rgba(255,255,255,.1) 10%,rgba(255,255,255,0) 100%)}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}:host([checked]) [part=toggle] ::after{right:1px}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-style:dotted}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:13px;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.6);transition:box-shadow .2s,border-color .2s;width:44px;height:24px;color:#e2e2e2;background-color:#000;line-height:18px}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #4a4a52;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#555d6c;box-sizing:border-box;border-radius:inherit}:host([checked-label]),:host([label]){width:67.6px;min-width:52px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{right:1px;left:auto;border-color:#f93;background-color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #f93}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#f93}}:host [part=toggle] ::after{top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-image:linear-gradient(rgba(255,255,255,.1) 10%,rgba(255,255,255,0) 100%)}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}:host([checked]) [part=toggle] ::after{right:1px}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-style:dotted}' }}));
@@ -1,2 +1,2 @@
1
1
 
2
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:13rem;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.3);transition:box-shadow .2s,border-color .2s;width:44px;height:24px;color:#484848;background-color:#fff;line-height:18px}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #a9afba;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#d4d7dd;box-sizing:border-box;border-radius:inherit}:host([checked-label]),:host([label]){width:67.6px;min-width:52px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{right:1px;left:auto;border-color:#f93;background-color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #ffb266}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#ffb266}}:host [part=toggle] ::after{top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-image:linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,.1) 100%)}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}:host([checked]) [part=toggle] ::after{right:1px}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-style:dotted}' }}));
2
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-toggle', styles: ':host{touch-action:manipulation;font-size:13px;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;outline:0;border-radius:0;box-shadow:inset 0 0 0 rgba(0,0,0,.3);transition:box-shadow .2s,border-color .2s;width:44px;height:24px;color:#484848;background-color:#fff;line-height:18px}:host [part=toggle]{cursor:pointer;display:block;position:relative;width:100%;height:100%;box-sizing:border-box;border:1px solid #a9afba;border-radius:inherit;text-overflow:inherit;overflow:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host [part=toggle]::after{content:\'\';position:absolute;top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-color:#d4d7dd;box-sizing:border-box;border-radius:inherit}:host([checked-label]),:host([label]){width:67.6px;min-width:52px;min-width:44px}:host([readonly]) [part=toggle]{cursor:default}:host([disabled]) [part=toggle]{opacity:.5}:host([checked]) [part=toggle]::after{right:1px;left:auto;border-color:#f93;background-color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover:not([readonly])),:host([focused=visible]){box-shadow:0 0 0 #ffb266}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-color:#ffb266}}:host [part=toggle] ::after{top:1px;left:1px;width:calc(50% - 1px);height:calc(100% - (1px * 2));background-image:linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,.1) 100%)}:host([checked-label][checked]) [part=toggle],:host([label][checked]) [part=toggle]{padding-right:24px;padding-left:3px}:host([checked-label]) [part=toggle],:host([label]) [part=toggle]{padding:3px 3px 3px 24px}:host([checked-label]) [part=toggle]::after,:host([label]) [part=toggle]::after{width:20px}:host([checked]) [part=toggle] ::after{right:1px}:host(:hover:not([readonly])) [part=toggle],:host([focused=visible]) [part=toggle]{border-style:dotted}' }}));
@@ -1,16 +1,16 @@
1
1
  import type { OverlayPosition } from '../../overlay';
2
- export declare type TooltipCondition = (target: HTMLElement, paths: EventTarget[]) => boolean;
3
- export declare type TooltipRenderer = (target: HTMLElement) => undefined | null | string | HTMLElement | DocumentFragment;
4
- export declare type TooltipPosition = 'auto' | 'above' | 'right' | 'below' | 'left';
5
- export declare type TooltipPositionMap = {
2
+ export type TooltipCondition = (target: HTMLElement, paths: EventTarget[]) => boolean;
3
+ export type TooltipRenderer = (target: HTMLElement) => undefined | null | string | HTMLElement | DocumentFragment;
4
+ export type TooltipPosition = 'auto' | 'above' | 'right' | 'below' | 'left';
5
+ export type TooltipPositionMap = {
6
6
  [K in TooltipPosition]: OverlayPosition[];
7
7
  };
8
- declare type MouseMoveCallback = (event: MouseEvent, paths: EventTarget[]) => void;
9
- declare type MouseCallback = (event: MouseEvent) => void;
10
- declare type WheelCallback = (event: WheelEvent) => void;
11
- declare type FocusCallback = (event: FocusEvent) => void;
12
- declare type KeyboardCallback = (event: KeyboardEvent) => void;
13
- export declare type DocumentCallbacks = {
8
+ type MouseMoveCallback = (event: MouseEvent, paths: EventTarget[]) => void;
9
+ type MouseCallback = (event: MouseEvent) => void;
10
+ type WheelCallback = (event: WheelEvent) => void;
11
+ type FocusCallback = (event: FocusEvent) => void;
12
+ type KeyboardCallback = (event: KeyboardEvent) => void;
13
+ export type DocumentCallbacks = {
14
14
  mousemove: MouseMoveCallback;
15
15
  mousemoveThrottled: MouseMoveCallback;
16
16
  click: MouseCallback;
@@ -468,9 +468,7 @@ __decorate([
468
468
  query('#contentSlot')
469
469
  ], Tooltip.prototype, "contentSlot", void 0);
470
470
  Tooltip = Tooltip_1 = __decorate([
471
- customElement('ef-tooltip', {
472
- alias: 'coral-tooltip'
473
- })
471
+ customElement('ef-tooltip')
474
472
  ], Tooltip);
475
473
  export * from './elements/tooltip-element.js';
476
474
  export { registerOverflowTooltip, deregisterOverflowTooltip, Tooltip };
@@ -115,8 +115,6 @@ __decorate([
115
115
  property({ type: String })
116
116
  ], TornadoChart.prototype, "secondary", void 0);
117
117
  TornadoChart = __decorate([
118
- customElement('ef-tornado-chart', {
119
- alias: 'sapphire-parity-chart'
120
- })
118
+ customElement('ef-tornado-chart')
121
119
  ], TornadoChart);
122
120
  export { TornadoChart };
@@ -1,6 +1,6 @@
1
1
  import '@refinitiv-ui/elements/layout/themes/halo/dark';
2
2
  import '@refinitiv-ui/elements/progress-bar/themes/halo/dark';
3
3
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#6678FF;--secondary-color:#6678FF;--responsive-width:450;--primary-color:#6678FF;--secondary-color:#FFFFFF;font-size:12rem}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
4
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#6678FF;--secondary-color:#6678FF;--responsive-width:450;font-size:12px;--primary-color:#6678FF;--secondary-color:#FFFFFF}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
5
5
 
6
6
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-item', styles: ':host{margin:0;padding:0 5px;--primary-color:var(\'--primary-color\', #6678FF);--secondary-color:var(\'--secondary-color\', #6678FF)}:host(:hover),:host([highlighted]){background-color:rgba(204,204,204,.05)}:host [part=label]{text-align:left;margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host [part=primary-bar],:host [part=secondary-bar]{width:100%;height:20px}:host [part=primary-bar]{color:var(--primary-color);margin-left:50px}:host [part=secondary-bar]{color:var(--secondary-color);margin-right:50px}:host [part=seperator]{height:30px;border-left:2px solid #404040}:host([highlighted]) [part=label],:host([highlighted]) [part=primary-bar],:host([highlighted]) [part=secondary-bar]{font-weight:700}:host([vertical]){border-left:2px solid #404040;padding-bottom:5px}:host([vertical]) [part=label]{margin:3px}:host([vertical]) [part=seperator]{display:none}:host([vertical]) [part=container]{align-items:inherit}:host([vertical]) [part=primary-bar]{margin:0 50px 0 0}:host([vertical]) [part=secondary-bar]{margin:3px 50px 0 0}' }}));
@@ -1,6 +1,6 @@
1
1
  import '@refinitiv-ui/elements/layout/themes/halo/light';
2
2
  import '@refinitiv-ui/elements/progress-bar/themes/halo/light';
3
3
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#334BFF;--secondary-color:#6678FF;--responsive-width:450;--primary-color:#334BFF;--secondary-color:#000000;font-size:12rem}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
4
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#334BFF;--secondary-color:#6678FF;--responsive-width:450;font-size:12px;--primary-color:#334BFF;--secondary-color:#000000}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
5
5
 
6
6
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-item', styles: ':host{margin:0;padding:0 5px;--primary-color:var(\'--primary-color\', #334BFF);--secondary-color:var(\'--secondary-color\', #6678FF)}:host(:hover),:host([highlighted]){background-color:rgba(13,13,13,.05)}:host [part=label]{text-align:left;margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host [part=primary-bar],:host [part=secondary-bar]{width:100%;height:20px}:host [part=primary-bar]{color:var(--primary-color);margin-left:50px}:host [part=secondary-bar]{color:var(--secondary-color);margin-right:50px}:host [part=seperator]{height:30px;border-left:2px solid #d9d9d9}:host([highlighted]) [part=label],:host([highlighted]) [part=primary-bar],:host([highlighted]) [part=secondary-bar]{font-weight:700}:host([vertical]){border-left:2px solid #d9d9d9;padding-bottom:5px}:host([vertical]) [part=label]{margin:3px}:host([vertical]) [part=seperator]{display:none}:host([vertical]) [part=container]{align-items:inherit}:host([vertical]) [part=primary-bar]{margin:0 50px 0 0}:host([vertical]) [part=secondary-bar]{margin:3px 50px 0 0}' }}));
@@ -1,6 +1,6 @@
1
1
  import '@refinitiv-ui/elements/layout/themes/solar/charcoal';
2
2
  import '@refinitiv-ui/elements/progress-bar/themes/solar/charcoal';
3
3
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#FF9933;--secondary-color:#b35900;--responsive-width:450;--secondary-color:#BEC3CC;font-size:14rem}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
4
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#FF9933;--secondary-color:#b35900;--responsive-width:450;font-size:14px;--secondary-color:#BEC3CC}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
5
5
 
6
6
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-item', styles: ':host{margin:0;padding:0 5px;--primary-color:var(\'--primary-color\', #FF9933);--secondary-color:var(\'--secondary-color\', #b35900);--secondary-color:var(\'--secondary-color\', #BEC3CC)}:host(:hover),:host([highlighted]){background-color:rgba(194,194,194,.05)}:host [part=label]{text-align:left;margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host [part=primary-bar],:host [part=secondary-bar]{width:100%;height:20px}:host [part=primary-bar]{color:var(--primary-color);margin-left:50px}:host [part=secondary-bar]{color:var(--secondary-color);margin-right:50px}:host [part=seperator]{height:30px;border-left:2px solid #0a0a0a}:host([highlighted]) [part=label],:host([highlighted]) [part=primary-bar],:host([highlighted]) [part=secondary-bar]{font-weight:700}:host([vertical]){border-left:2px solid #0a0a0a;padding-bottom:5px}:host([vertical]) [part=label]{margin:3px}:host([vertical]) [part=seperator]{display:none}:host([vertical]) [part=container]{align-items:inherit}:host([vertical]) [part=primary-bar]{margin:0 50px 0 0}:host([vertical]) [part=secondary-bar]{margin:3px 50px 0 0}' }}));
@@ -1,6 +1,6 @@
1
1
  import '@refinitiv-ui/elements/layout/themes/solar/pearl';
2
2
  import '@refinitiv-ui/elements/progress-bar/themes/solar/pearl';
3
3
 
4
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#EE7600;--secondary-color:#EE7600;--responsive-width:450;--secondary-color:#BEC3CC;font-size:14rem}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
4
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-chart', styles: ':host{--primary-color:#EE7600;--secondary-color:#EE7600;--responsive-width:450;font-size:14px;--secondary-color:#BEC3CC}:host [part=legend]{display:flex;justify-content:flex-end;margin-bottom:25px}:host [part=legend-item]{display:inline-flex;overflow:hidden;align-items:center;margin-right:10px}:host [part=legend][vertical]{justify-content:flex-start;flex-wrap:wrap}:host [part=primary-symbol],:host [part=secondary-symbol]{flex:none;width:15px;height:15px;border-radius:1px;margin-right:5px}:host [part=primary-symbol]{background-color:var(--primary-color)}:host [part=secondary-symbol]{background-color:var(--secondary-color)}:host [part=primary-label],:host [part=secondary-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}' }}));
5
5
 
6
6
  dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tornado-item', styles: ':host{margin:0;padding:0 5px;--primary-color:var(\'--primary-color\', #EE7600);--secondary-color:var(\'--secondary-color\', #EE7600);--secondary-color:var(\'--secondary-color\', #BEC3CC)}:host(:hover),:host([highlighted]){background-color:rgba(72,72,72,.05)}:host [part=label]{text-align:left;margin:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host [part=primary-bar],:host [part=secondary-bar]{width:100%;height:20px}:host [part=primary-bar]{color:var(--primary-color);margin-left:50px}:host [part=secondary-bar]{color:var(--secondary-color);margin-right:50px}:host [part=seperator]{height:30px;border-left:2px solid #d5d8db}:host([highlighted]) [part=label],:host([highlighted]) [part=primary-bar],:host([highlighted]) [part=secondary-bar]{font-weight:700}:host([vertical]){border-left:2px solid #d5d8db;padding-bottom:5px}:host([vertical]) [part=label]{margin:3px}:host([vertical]) [part=seperator]{display:none}:host([vertical]) [part=container]{align-items:inherit}:host([vertical]) [part=primary-bar]{margin:0 50px 0 0}:host([vertical]) [part=secondary-bar]{margin:3px 50px 0 0}' }}));
@@ -80,11 +80,11 @@
80
80
  "events": [
81
81
  {
82
82
  "name": "value-changed",
83
- "description": "Fired when the users changed selection item."
83
+ "description": "Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically."
84
84
  },
85
85
  {
86
86
  "name": "expanded-changed",
87
- "description": "Fired when an item's expanded state has changed."
87
+ "description": "Fired when the user expands or collapses item. The event is not triggered if `expanded` property is changed programmatically."
88
88
  }
89
89
  ],
90
90
  "methods": [
@@ -28,5 +28,5 @@ to be used for menus and group selections
28
28
 
29
29
  | Event | Description |
30
30
  |--------------------|--------------------------------------------------|
31
- | `expanded-changed` | Fired when an item's expanded state has changed. |
32
- | `value-changed` | Fired when the users changed selection item. |
31
+ | `expanded-changed` | Fired when the user expands or collapses item. The event is not triggered if `expanded` property is changed programmatically. |
32
+ | `value-changed` | Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically. |
@@ -233,8 +233,6 @@ __decorate([
233
233
  property({ reflect: true, type: Boolean })
234
234
  ], TreeItem.prototype, "highlighted", void 0);
235
235
  TreeItem = __decorate([
236
- customElement('ef-tree-item', {
237
- alias: 'coral-tree-item'
238
- })
236
+ customElement('ef-tree-item')
239
237
  ], TreeItem);
240
238
  export { TreeItem };
@@ -10,8 +10,8 @@ import './tree-item.js';
10
10
  * Displays a tree structure
11
11
  * to be used for menus and group selections
12
12
  *
13
- * @fires value-changed - Fired when the users changed selection item.
14
- * @fires expanded-changed - Fired when an item's expanded state has changed.
13
+ * @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
14
+ * @fires expanded-changed - Fired when the user expands or collapses item. The event is not triggered if `expanded` property is changed programmatically.
15
15
  *
16
16
  * @attr {boolean} [stateless=false] - Disable selections
17
17
  * @prop {boolean} [stateless=false] - Disable selections
@@ -12,8 +12,8 @@ const EXPAND_TOGGLE_ATTR = 'expand-toggle';
12
12
  * Displays a tree structure
13
13
  * to be used for menus and group selections
14
14
  *
15
- * @fires value-changed - Fired when the users changed selection item.
16
- * @fires expanded-changed - Fired when an item's expanded state has changed.
15
+ * @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
16
+ * @fires expanded-changed - Fired when the user expands or collapses item. The event is not triggered if `expanded` property is changed programmatically.
17
17
  *
18
18
  * @attr {boolean} [stateless=false] - Disable selections
19
19
  * @prop {boolean} [stateless=false] - Disable selections
@@ -1,8 +1,4 @@
1
1
  import { Renderer } from '../../list/renderer.js';
2
2
  export declare class TreeRenderer extends Renderer {
3
- /**
4
- * Renderer key prefix, used in combination with item value to give unique id to each item
5
- */
6
- key: string;
7
3
  constructor(scope?: unknown);
8
4
  }
@@ -4,6 +4,10 @@ import { Renderer } from '../../list/renderer.js';
4
4
  import { getItemId } from '../../list/helpers/item-id.js';
5
5
  export class TreeRenderer extends Renderer {
6
6
  constructor(scope) {
7
+ /**
8
+ * Renderer key prefix, used in combination with item value to give unique id to each item
9
+ */
10
+ const key = uuid();
7
11
  let manager;
8
12
  let currentMode;
9
13
  let currentComposer;
@@ -18,7 +22,7 @@ export class TreeRenderer extends Renderer {
18
22
  }
19
23
  element.multiple = multiple;
20
24
  element.item = item;
21
- element.id = getItemId(this.key, item.value);
25
+ element.id = getItemId(key, item.value);
22
26
  element.depth = composer.getItemDepth(item);
23
27
  element.parent = composer.getItemChildren(item).length > 0;
24
28
  element.expanded = manager.isItemExpanded(item);
@@ -30,9 +34,5 @@ export class TreeRenderer extends Renderer {
30
34
  element.highlighted = composer.getItemPropertyValue(item, 'highlighted') === true;
31
35
  return element;
32
36
  });
33
- /**
34
- * Renderer key prefix, used in combination with item value to give unique id to each item
35
- */
36
- this.key = uuid();
37
37
  }
38
38
  }
@@ -1,5 +1,5 @@
1
1
  import type { CollectionComposer, DataItem } from '@refinitiv-ui/utils/collection.js';
2
- export declare type TreeData<T extends TreeDataItem = TreeDataItem> = T[] | CollectionComposer<T> | null;
2
+ export type TreeData<T extends TreeDataItem = TreeDataItem> = T[] | CollectionComposer<T> | null;
3
3
  export interface TreeDataItem extends DataItem {
4
4
  /**
5
5
  * Icon to show, when rendering the item.
@@ -22,4 +22,4 @@ export interface TreeDataItem extends DataItem {
22
22
  * @param item Item to filter
23
23
  * @return Does item match filter
24
24
  */
25
- export declare type TreeFilter<T extends TreeDataItem = TreeDataItem> = (item: T) => boolean;
25
+ export type TreeFilter<T extends TreeDataItem = TreeDataItem> = (item: T) => boolean;
@@ -87,23 +87,23 @@
87
87
  "events": [
88
88
  {
89
89
  "name": "confirm",
90
- "description": "Fired when selection is confirmed"
90
+ "description": "Fired when the user closes a popup by confirming the new selection."
91
91
  },
92
92
  {
93
93
  "name": "cancel",
94
- "description": "Fired when selection is cancelled"
94
+ "description": "Fired when the user closes a popup by cancelling the new selection."
95
95
  },
96
96
  {
97
- "name": "query-changed",
98
- "description": "Fired when query in input box changed"
97
+ "name": "value-changed",
98
+ "description": "Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically."
99
99
  },
100
100
  {
101
- "name": "value-changed",
102
- "description": "Fired when value of control changed"
101
+ "name": "query-changed",
102
+ "description": "Fired when the user changes value in the input to change a query word. If `query-debounce-rate` is set, this event will be triggered after debounce completion. The event is not triggered if `query` property is changed programmatically."
103
103
  },
104
104
  {
105
105
  "name": "opened-changed",
106
- "description": "Fires when opened state changes"
106
+ "description": "Fired when the user opens or closes control's popup. The event is not triggered if `opened` property is changed programmatically."
107
107
  }
108
108
  ]
109
109
  }
@@ -17,10 +17,10 @@ Dropdown control that allows selection from the tree list
17
17
 
18
18
  ## Events
19
19
 
20
- | Event | Description |
21
- |------------------|---------------------------------------|
22
- | `cancel` | Fired when selection is cancelled |
23
- | `confirm` | Fired when selection is confirmed |
24
- | `opened-changed` | Fires when opened state changes |
25
- | `query-changed` | Fired when query in input box changed |
26
- | `value-changed` | Fired when value of control changed |
20
+ | Event | Description |
21
+ |------------------|--------------------------------------------------|
22
+ | `cancel` | Fired when the user closes a popup by cancelling the new selection. |
23
+ | `confirm` | Fired when the user closes a popup by confirming the new selection. |
24
+ | `opened-changed` | Fired when the user opens or closes control's popup. The event is not triggered if `opened` property is changed programmatically. |
25
+ | `query-changed` | Fired when the user changes value in the input to change a query word. If `query-debounce-rate` is set, this event will be triggered after debounce completion. The event is not triggered if `query` property is changed programmatically. |
26
+ | `value-changed` | Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically. |
@@ -1,4 +1,4 @@
1
1
  import type { ComboBoxData } from '../../combo-box';
2
2
  import type { TreeDataItem } from '../../tree';
3
- export declare type TreeSelectDataItem = TreeDataItem;
4
- export declare type TreeSelectData = ComboBoxData<TreeDataItem>;
3
+ export type TreeSelectDataItem = TreeDataItem;
4
+ export type TreeSelectData = ComboBoxData<TreeDataItem>;
@@ -3,7 +3,6 @@ import { TemplateResult, CSSResultGroup } from '@refinitiv-ui/core';
3
3
  import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
4
4
  import { TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
5
5
  import '../icon/index.js';
6
- import '../text-field/index.js';
7
6
  import '../pill/index.js';
8
7
  import '../button/index.js';
9
8
  import '../checkbox/index.js';
@@ -26,11 +25,11 @@ export type { TreeSelectFilter, TreeSelectDataItem, TreeSelectData };
26
25
  * @attr {string} placeholder - Set placeholder text
27
26
  * @prop {string} [placeholder=""] - Set placeholder text
28
27
  * @prop {TreeSelectData[]} [data=[]] - Data object to be used for creating tree
29
- * @fires confirm - Fired when selection is confirmed
30
- * @fires cancel - Fired when selection is cancelled
31
- * @fires query-changed - Fired when query in input box changed
32
- * @fires value-changed - Fired when value of control changed
33
- * @fires opened-changed - Fires when opened state changes
28
+ * @fires confirm - Fired when the user closes a popup by confirming the new selection.
29
+ * @fires cancel - Fired when the user closes a popup by cancelling the new selection.
30
+ * @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
31
+ * @fires query-changed - Fired when the user changes value in the input to change a query word. If `query-debounce-rate` is set, this event will be triggered after debounce completion. The event is not triggered if `query` property is changed programmatically.
32
+ * @fires opened-changed - Fired when the user opens or closes control's popup. The event is not triggered if `opened` property is changed programmatically.
34
33
  */
35
34
  export declare class TreeSelect extends ComboBox<TreeSelectDataItem> {
36
35
  /**
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { html, css } from '@refinitiv-ui/core';
2
+ import { html, css, triggerResize } 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';
@@ -10,7 +10,6 @@ import { VERSION } from '../version.js';
10
10
  import { CollectionComposer } from '@refinitiv-ui/utils/collection.js';
11
11
  import { TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
12
12
  import '../icon/index.js';
13
- import '../text-field/index.js';
14
13
  import '../pill/index.js';
15
14
  import '../button/index.js';
16
15
  import '../checkbox/index.js';
@@ -31,13 +30,20 @@ const POPUP_POSITION = ['bottom-start', 'top-start'];
31
30
  * @attr {string} placeholder - Set placeholder text
32
31
  * @prop {string} [placeholder=""] - Set placeholder text
33
32
  * @prop {TreeSelectData[]} [data=[]] - Data object to be used for creating tree
34
- * @fires confirm - Fired when selection is confirmed
35
- * @fires cancel - Fired when selection is cancelled
36
- * @fires query-changed - Fired when query in input box changed
37
- * @fires value-changed - Fired when value of control changed
38
- * @fires opened-changed - Fires when opened state changes
33
+ * @fires confirm - Fired when the user closes a popup by confirming the new selection.
34
+ * @fires cancel - Fired when the user closes a popup by cancelling the new selection.
35
+ * @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
36
+ * @fires query-changed - Fired when the user changes value in the input to change a query word. If `query-debounce-rate` is set, this event will be triggered after debounce completion. The event is not triggered if `query` property is changed programmatically.
37
+ * @fires opened-changed - Fired when the user opens or closes control's popup. The event is not triggered if `opened` property is changed programmatically.
39
38
  */
40
39
  let TreeSelect = class TreeSelect extends ComboBox {
40
+ /**
41
+ * Element version number
42
+ * @returns version number
43
+ */
44
+ static get version() {
45
+ return VERSION;
46
+ }
41
47
  constructor() {
42
48
  super();
43
49
  /**
@@ -104,13 +110,6 @@ let TreeSelect = class TreeSelect extends ComboBox {
104
110
  */
105
111
  this.multiple = true;
106
112
  }
107
- /**
108
- * Element version number
109
- * @returns version number
110
- */
111
- static get version() {
112
- return VERSION;
113
- }
114
113
  static get styles() {
115
114
  return css `
116
115
  [part=list] {
@@ -524,7 +523,7 @@ let TreeSelect = class TreeSelect extends ComboBox {
524
523
  this.filterCount = items.length;
525
524
  // unlike CCB, we do not close EMS when there is no matches for filter
526
525
  }
527
- this.forcePopupLayout();
526
+ triggerResize();
528
527
  }
529
528
  /**
530
529
  * Utility method
@@ -895,8 +894,6 @@ __decorate([
895
894
  query('[part=list]')
896
895
  ], TreeSelect.prototype, "popupEl", void 0);
897
896
  TreeSelect = __decorate([
898
- customElement('ef-tree-select', {
899
- alias: 'emerald-multi-select'
900
- })
897
+ customElement('ef-tree-select')
901
898
  ], TreeSelect);
902
899
  export { TreeSelect };