@refinitiv-ui/elements 6.5.3 → 6.6.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 (295) hide show
  1. package/CHANGELOG.md +17 -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 +1 -1
  21. package/lib/button/themes/halo/light/index.js +1 -1
  22. package/lib/button/themes/solar/charcoal/index.js +1 -1
  23. package/lib/button/themes/solar/pearl/index.js +1 -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 +1 -1
  82. package/lib/combo-box/themes/halo/light/index.js +1 -1
  83. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  84. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  85. package/lib/counter/index.js +1 -3
  86. package/lib/counter/themes/halo/dark/index.js +1 -1
  87. package/lib/counter/themes/halo/light/index.js +1 -1
  88. package/lib/counter/themes/solar/charcoal/index.js +1 -1
  89. package/lib/counter/themes/solar/pearl/index.js +1 -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 +1 -1
  96. package/lib/datetime-picker/themes/halo/light/index.js +1 -1
  97. package/lib/datetime-picker/themes/solar/charcoal/index.js +1 -1
  98. package/lib/datetime-picker/themes/solar/pearl/index.js +1 -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 +1 -1
  109. package/lib/email-field/themes/halo/light/index.js +1 -1
  110. package/lib/email-field/themes/solar/charcoal/index.js +1 -1
  111. package/lib/email-field/themes/solar/pearl/index.js +1 -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 +2 -4
  140. package/lib/list/helpers/types.d.ts +1 -1
  141. package/lib/loader/index.js +1 -3
  142. package/lib/multi-input/custom-elements.json +5 -5
  143. package/lib/multi-input/custom-elements.md +5 -5
  144. package/lib/multi-input/helpers/types.d.ts +3 -3
  145. package/lib/multi-input/index.d.ts +5 -17
  146. package/lib/multi-input/index.js +6 -20
  147. package/lib/multi-input/themes/halo/dark/index.js +1 -1
  148. package/lib/multi-input/themes/halo/light/index.js +1 -1
  149. package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
  150. package/lib/multi-input/themes/solar/pearl/index.js +1 -1
  151. package/lib/notification/custom-elements.json +2 -2
  152. package/lib/notification/custom-elements.md +4 -4
  153. package/lib/notification/elements/notification-tray.js +1 -3
  154. package/lib/notification/elements/notification.d.ts +2 -2
  155. package/lib/notification/elements/notification.js +3 -5
  156. package/lib/notification/helpers/types.d.ts +2 -2
  157. package/lib/number-field/custom-elements.json +2 -2
  158. package/lib/number-field/custom-elements.md +4 -4
  159. package/lib/number-field/index.d.ts +3 -3
  160. package/lib/number-field/index.js +3 -5
  161. package/lib/number-field/themes/halo/dark/index.js +1 -1
  162. package/lib/number-field/themes/halo/light/index.js +1 -1
  163. package/lib/number-field/themes/solar/charcoal/index.js +1 -1
  164. package/lib/number-field/themes/solar/pearl/index.js +1 -1
  165. package/lib/overlay/custom-elements.json +6 -9
  166. package/lib/overlay/custom-elements.md +7 -8
  167. package/lib/overlay/elements/overlay.d.ts +7 -7
  168. package/lib/overlay/elements/overlay.js +10 -19
  169. package/lib/overlay/helpers/types.d.ts +13 -13
  170. package/lib/overlay/managers/close-manager.d.ts +1 -1
  171. package/lib/overlay/managers/zindex-manager.d.ts +1 -1
  172. package/lib/overlay-menu/custom-elements.json +2 -2
  173. package/lib/overlay-menu/custom-elements.md +2 -2
  174. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  175. package/lib/overlay-menu/index.d.ts +2 -2
  176. package/lib/overlay-menu/index.js +30 -32
  177. package/lib/pagination/custom-elements.json +1 -1
  178. package/lib/pagination/custom-elements.md +3 -3
  179. package/lib/pagination/index.d.ts +1 -1
  180. package/lib/pagination/index.js +2 -4
  181. package/lib/pagination/themes/halo/dark/index.js +1 -1
  182. package/lib/pagination/themes/halo/light/index.js +1 -1
  183. package/lib/pagination/themes/solar/charcoal/index.js +1 -1
  184. package/lib/pagination/themes/solar/pearl/index.js +1 -1
  185. package/lib/panel/index.js +1 -3
  186. package/lib/password-field/custom-elements.json +2 -6
  187. package/lib/password-field/custom-elements.md +4 -5
  188. package/lib/password-field/index.d.ts +2 -3
  189. package/lib/password-field/index.js +3 -6
  190. package/lib/password-field/themes/halo/dark/index.js +1 -1
  191. package/lib/password-field/themes/halo/light/index.js +1 -1
  192. package/lib/password-field/themes/solar/charcoal/index.js +1 -1
  193. package/lib/password-field/themes/solar/pearl/index.js +1 -1
  194. package/lib/pill/custom-elements.json +1 -1
  195. package/lib/pill/custom-elements.md +3 -3
  196. package/lib/pill/index.d.ts +1 -1
  197. package/lib/pill/index.js +2 -4
  198. package/lib/pill/themes/halo/dark/index.js +1 -1
  199. package/lib/pill/themes/halo/light/index.js +1 -1
  200. package/lib/pill/themes/solar/charcoal/index.js +1 -1
  201. package/lib/pill/themes/solar/pearl/index.js +1 -1
  202. package/lib/progress-bar/index.js +1 -3
  203. package/lib/radio-button/custom-elements.json +1 -1
  204. package/lib/radio-button/custom-elements.md +3 -3
  205. package/lib/radio-button/index.d.ts +1 -1
  206. package/lib/radio-button/index.js +2 -4
  207. package/lib/rating/custom-elements.json +1 -1
  208. package/lib/rating/custom-elements.md +3 -3
  209. package/lib/rating/index.d.ts +1 -1
  210. package/lib/rating/index.js +2 -4
  211. package/lib/search-field/custom-elements.json +3 -3
  212. package/lib/search-field/custom-elements.md +5 -5
  213. package/lib/search-field/index.d.ts +3 -3
  214. package/lib/search-field/index.js +4 -6
  215. package/lib/search-field/themes/halo/dark/index.js +1 -1
  216. package/lib/search-field/themes/halo/light/index.js +1 -1
  217. package/lib/search-field/themes/solar/charcoal/index.js +1 -1
  218. package/lib/search-field/themes/solar/pearl/index.js +1 -1
  219. package/lib/select/custom-elements.json +2 -2
  220. package/lib/select/custom-elements.md +4 -4
  221. package/lib/select/helpers/types.d.ts +2 -2
  222. package/lib/select/index.d.ts +2 -2
  223. package/lib/select/index.js +3 -5
  224. package/lib/select/themes/halo/dark/index.js +1 -1
  225. package/lib/select/themes/halo/light/index.js +1 -1
  226. package/lib/select/themes/solar/charcoal/index.js +1 -1
  227. package/lib/select/themes/solar/pearl/index.js +1 -1
  228. package/lib/sidebar-layout/index.js +1 -3
  229. package/lib/slider/custom-elements.json +3 -3
  230. package/lib/slider/custom-elements.md +5 -5
  231. package/lib/slider/index.d.ts +3 -3
  232. package/lib/slider/index.js +100 -102
  233. package/lib/sparkline/index.js +1 -3
  234. package/lib/swing-gauge/index.js +1 -3
  235. package/lib/swing-gauge/types.d.ts +1 -1
  236. package/lib/tab/custom-elements.json +1 -1
  237. package/lib/tab/custom-elements.md +3 -3
  238. package/lib/tab/index.d.ts +1 -1
  239. package/lib/tab/index.js +2 -4
  240. package/lib/tab/themes/halo/dark/index.js +1 -1
  241. package/lib/tab/themes/halo/light/index.js +1 -1
  242. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  243. package/lib/tab/themes/solar/pearl/index.js +1 -1
  244. package/lib/tab-bar/custom-elements.json +1 -1
  245. package/lib/tab-bar/custom-elements.md +3 -3
  246. package/lib/tab-bar/index.d.ts +1 -1
  247. package/lib/tab-bar/index.js +2 -4
  248. package/lib/text-field/custom-elements.json +3 -3
  249. package/lib/text-field/custom-elements.md +5 -5
  250. package/lib/text-field/index.d.ts +3 -3
  251. package/lib/text-field/index.js +4 -6
  252. package/lib/text-field/themes/halo/dark/index.js +1 -1
  253. package/lib/text-field/themes/halo/light/index.js +1 -1
  254. package/lib/text-field/themes/solar/charcoal/index.js +1 -1
  255. package/lib/text-field/themes/solar/pearl/index.js +1 -1
  256. package/lib/time-picker/custom-elements.json +1 -1
  257. package/lib/time-picker/custom-elements.md +3 -3
  258. package/lib/time-picker/index.d.ts +1 -1
  259. package/lib/time-picker/index.js +2 -4
  260. package/lib/time-picker/themes/halo/dark/index.js +1 -1
  261. package/lib/time-picker/themes/halo/light/index.js +1 -1
  262. package/lib/time-picker/themes/solar/charcoal/index.js +1 -1
  263. package/lib/time-picker/themes/solar/pearl/index.js +1 -1
  264. package/lib/toggle/custom-elements.json +1 -1
  265. package/lib/toggle/custom-elements.md +3 -3
  266. package/lib/toggle/index.d.ts +1 -1
  267. package/lib/toggle/index.js +2 -4
  268. package/lib/toggle/themes/halo/dark/index.js +1 -1
  269. package/lib/toggle/themes/halo/light/index.js +1 -1
  270. package/lib/toggle/themes/solar/charcoal/index.js +1 -1
  271. package/lib/toggle/themes/solar/pearl/index.js +1 -1
  272. package/lib/tooltip/helpers/types.d.ts +10 -10
  273. package/lib/tooltip/index.js +1 -3
  274. package/lib/tornado-chart/elements/tornado-chart.js +1 -3
  275. package/lib/tornado-chart/themes/halo/dark/index.js +1 -1
  276. package/lib/tornado-chart/themes/halo/light/index.js +1 -1
  277. package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
  278. package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
  279. package/lib/tree/custom-elements.json +2 -2
  280. package/lib/tree/custom-elements.md +2 -2
  281. package/lib/tree/elements/tree-item.js +1 -3
  282. package/lib/tree/elements/tree.d.ts +2 -2
  283. package/lib/tree/elements/tree.js +2 -2
  284. package/lib/tree/helpers/types.d.ts +2 -2
  285. package/lib/tree-select/custom-elements.json +7 -7
  286. package/lib/tree-select/custom-elements.md +7 -7
  287. package/lib/tree-select/helpers/types.d.ts +2 -2
  288. package/lib/tree-select/index.d.ts +5 -5
  289. package/lib/tree-select/index.js +15 -17
  290. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  291. package/lib/tree-select/themes/halo/light/index.js +1 -1
  292. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  293. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  294. package/lib/version.js +1 -1
  295. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.6.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.3...@refinitiv-ui/elements@6.6.0) (2023-01-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **chart:** change chart property access modifier from private to public ([#565](https://github.com/Refinitiv/refinitiv-ui/issues/565)) ([a25a506](https://github.com/Refinitiv/refinitiv-ui/commit/a25a506e334dead2004ebaca4a815bbf284e9990))
12
+ * **color-dialog:** can not change between default and black color ([#557](https://github.com/Refinitiv/refinitiv-ui/issues/557)) ([27d9f2c](https://github.com/Refinitiv/refinitiv-ui/commit/27d9f2c81336c5cc4ba5bde1b7e5b3918f8c78c8))
13
+
14
+
15
+ ### Features
16
+
17
+ * remove alias ([#553](https://github.com/Refinitiv/refinitiv-ui/issues/553)) ([32ce300](https://github.com/Refinitiv/refinitiv-ui/commit/32ce300e6ea0f730abd95f305b15cce406dab1c7))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [6.5.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.2...@refinitiv-ui/elements@6.5.3) (2022-12-19)
7
24
 
8
25
 
@@ -129,8 +129,6 @@ __decorate([
129
129
  property({ type: Boolean, reflect: true })
130
130
  ], Accordion.prototype, "spacing", void 0);
131
131
  Accordion = __decorate([
132
- customElement('ef-accordion', {
133
- alias: 'coral-accordion'
134
- })
132
+ customElement('ef-accordion')
135
133
  ], Accordion);
136
134
  export { Accordion };
@@ -35,13 +35,13 @@
35
35
  "events": [
36
36
  {
37
37
  "name": "clear",
38
- "description": "fired when clear button is clicked"
38
+ "description": "Fired when the user taps clear button."
39
39
  }
40
40
  ],
41
41
  "slots": [
42
42
  {
43
43
  "name": "right",
44
- "description": "place custom content on the right of bar."
44
+ "description": "Place custom content on the right of bar."
45
45
  }
46
46
  ]
47
47
  }
@@ -11,12 +11,12 @@ Used to display at the top of application to provide a status or information.
11
11
 
12
12
  ## Events
13
13
 
14
- | Event | Description |
15
- |---------|------------------------------------|
16
- | `clear` | fired when clear button is clicked |
14
+ | Event | Description |
15
+ |---------|----------------------------------------|
16
+ | `clear` | Fired when the user taps clear button. |
17
17
 
18
18
  ## Slots
19
19
 
20
20
  | Name | Description |
21
21
  |---------|-------------------------------------------|
22
- | `right` | place custom content on the right of bar. |
22
+ | `right` | Place custom content on the right of bar. |
@@ -5,9 +5,9 @@ import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
5
5
  import '../icon/index.js';
6
6
  /**
7
7
  * Used to display at the top of application to provide a status or information.
8
- * @slot right - place custom content on the right of bar.
8
+ * @slot right - Place custom content on the right of bar.
9
9
  *
10
- * @fires clear - fired when clear button is clicked
10
+ * @fires clear - Fired when the user taps clear button.
11
11
  */
12
12
  export declare class AppstateBar extends BasicElement {
13
13
  /**
@@ -8,9 +8,9 @@ import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
8
8
  import '../icon/index.js';
9
9
  /**
10
10
  * Used to display at the top of application to provide a status or information.
11
- * @slot right - place custom content on the right of bar.
11
+ * @slot right - Place custom content on the right of bar.
12
12
  *
13
- * @fires clear - fired when clear button is clicked
13
+ * @fires clear - Fired when the user taps clear button.
14
14
  */
15
15
  let AppstateBar = class AppstateBar extends BasicElement {
16
16
  constructor() {
@@ -32,12 +32,6 @@ let AppstateBar = class AppstateBar extends BasicElement {
32
32
  this.clear = (event) => {
33
33
  event.stopPropagation();
34
34
  this.style.display = 'none';
35
- /**
36
- * Clear Event
37
- * Fired when clear button is clicked
38
- *
39
- * @event clear
40
- */
41
35
  this.dispatchEvent(new CustomEvent('clear'));
42
36
  };
43
37
  }
@@ -98,8 +92,6 @@ __decorate([
98
92
  translate()
99
93
  ], AppstateBar.prototype, "t", void 0);
100
94
  AppstateBar = __decorate([
101
- customElement('ef-appstate-bar', {
102
- alias: 'amber-appstate-bar'
103
- })
95
+ customElement('ef-appstate-bar')
104
96
  ], AppstateBar);
105
97
  export { AppstateBar };
@@ -1,3 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/halo/dark';
2
2
 
3
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#CCCCCC;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#404040;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12rem;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#CCCCCC;--background-color:#262626}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#CCCCCC;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#404040;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12px;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#CCCCCC;--background-color:#262626}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
@@ -1,3 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/halo/light';
2
2
 
3
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#0D0D0D;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#595959;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12rem;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#0D0D0D;--background-color:#F2F2F2;--border-color:#CCCCCC}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#0D0D0D;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#595959;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12px;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#0D0D0D;--background-color:#F2F2F2;--border-color:#CCCCCC}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
@@ -1,3 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
2
2
 
3
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#E2E2E2;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#4A4A52;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14rem;--heading-text-color:#46A0F0;--heading-background-color:#142E45;--text-color:#C2C2C2;--background-color:#0F2233;--border-color:#000000;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#000000;--heading-background-color:#FF9933}:host([state=info]){--heading-background-color:#b35900;--heading-text-color:#C2C2C2;--heading-background-color:#282E33}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#E2E2E2;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#4A4A52;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14px;--heading-text-color:#46A0F0;--heading-background-color:#142E45;--text-color:#C2C2C2;--background-color:#0F2233;--border-color:#000000;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#000000;--heading-background-color:#FF9933}:host([state=info]){--heading-background-color:#b35900;--heading-text-color:#C2C2C2;--heading-background-color:#282E33}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
@@ -1,3 +1,3 @@
1
1
  import '@refinitiv-ui/elements/icon/themes/solar/pearl';
2
2
 
3
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#484848;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#A9AFBA;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14rem;--heading-text-color:#FFFFFF;--heading-background-color:#2A6090;--text-color:#484848;--background-color:#C1E3FE;--border-color:#FFFFFF;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#FFFFFF;--heading-background-color:#CC7F33}:host([state=info]){--heading-background-color:#EE7600;--heading-text-color:#FFFFFF;--heading-background-color:#666570}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
3
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#484848;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#A9AFBA;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14px;--heading-text-color:#FFFFFF;--heading-background-color:#2A6090;--text-color:#484848;--background-color:#C1E3FE;--border-color:#FFFFFF;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#FFFFFF;--heading-background-color:#CC7F33}:host([state=info]){--heading-background-color:#EE7600;--heading-text-color:#FFFFFF;--heading-background-color:#666570}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
@@ -136,35 +136,35 @@
136
136
  "events": [
137
137
  {
138
138
  "name": "item-highlight",
139
- "description": "Fired when an item gets highlighted or highlight is removed"
139
+ "description": "Fired when the user highlights an item or removes highlight from the item."
140
140
  },
141
141
  {
142
142
  "name": "add-attach-target-events",
143
- "description": "Fired when attach has been set"
143
+ "description": "Fired when `attach` has been set to bind the control with any custom inputs."
144
144
  },
145
145
  {
146
146
  "name": "remove-attach-target-events",
147
- "description": "Fired when attach has been removed"
147
+ "description": "Fired when `attach` has been removed to unbind the control with the inputs."
148
148
  },
149
149
  {
150
150
  "name": "item-select",
151
- "description": "Fired when an item gets selected"
151
+ "description": "Fired when the user selects an item on autosuggest."
152
152
  },
153
153
  {
154
154
  "name": "suggestions-fetch-requested",
155
- "description": "Fired when auto suggest requests the data"
155
+ "description": "Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed."
156
156
  },
157
157
  {
158
158
  "name": "suggestions-clear-requested",
159
- "description": "Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []"
159
+ "description": "Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []."
160
160
  },
161
161
  {
162
162
  "name": "suggestions-query",
163
- "description": "Fired when input value has changed and the query must be set"
163
+ "description": "Fired when the user changes value in input control and you might need to update suggestion items accordingly."
164
164
  },
165
165
  {
166
166
  "name": "suggestions-changed",
167
- "description": "Fired when suggestions changed"
167
+ "description": "Fired when suggestion items changed."
168
168
  }
169
169
  ],
170
170
  "slots": [
@@ -37,14 +37,14 @@ custom rendering, pagination, asynchronous data request, etc.
37
37
 
38
38
  | Event | Description |
39
39
  |-------------------------------|--------------------------------------------------|
40
- | `add-attach-target-events` | Fired when attach has been set |
41
- | `item-highlight` | Fired when an item gets highlighted or highlight is removed |
42
- | `item-select` | Fired when an item gets selected |
43
- | `remove-attach-target-events` | Fired when attach has been removed |
44
- | `suggestions-changed` | Fired when suggestions changed |
45
- | `suggestions-clear-requested` | Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [] |
46
- | `suggestions-fetch-requested` | Fired when auto suggest requests the data |
47
- | `suggestions-query` | Fired when input value has changed and the query must be set |
40
+ | `add-attach-target-events` | Fired when `attach` has been set to bind the control with any custom inputs. |
41
+ | `item-highlight` | Fired when the user highlights an item or removes highlight from the item. |
42
+ | `item-select` | Fired when the user selects an item on autosuggest. |
43
+ | `remove-attach-target-events` | Fired when `attach` has been removed to unbind the control with the inputs. |
44
+ | `suggestions-changed` | Fired when suggestion items changed. |
45
+ | `suggestions-clear-requested` | Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []. |
46
+ | `suggestions-fetch-requested` | Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed. |
47
+ | `suggestions-query` | Fired when the user changes value in input control and you might need to update suggestion items accordingly. |
48
48
 
49
49
  ## Slots
50
50
 
@@ -1,17 +1,17 @@
1
1
  import type { ItemType } from '../../item';
2
- export declare type AutosuggestSelectItemEvent = CustomEvent<{
2
+ export type AutosuggestSelectItemEvent = CustomEvent<{
3
3
  query: string;
4
4
  suggestion: Suggestion;
5
5
  }>;
6
- export declare type AutosuggestHighlightItem = HTMLElement & {
6
+ export type AutosuggestHighlightItem = HTMLElement & {
7
7
  highlighted: boolean;
8
8
  };
9
- export declare type AutosuggestHighlightItemEvent = CustomEvent<{
9
+ export type AutosuggestHighlightItemEvent = CustomEvent<{
10
10
  target: AutosuggestHighlightItem;
11
11
  oldTarget: AutosuggestHighlightItem;
12
12
  }>;
13
- export declare type AutosuggestQueryAction = (event: CustomEvent) => void;
14
- export declare type AutosuggestReason = 'value-changed' | 'input-focus' | 'suggestions-revealed' | 'escape-pressed' | 'enter-pressed' | 'more-results';
13
+ export type AutosuggestQueryAction = (event: CustomEvent) => void;
14
+ export type AutosuggestReason = 'value-changed' | 'input-focus' | 'suggestions-revealed' | 'escape-pressed' | 'enter-pressed' | 'more-results';
15
15
  export interface Suggestion {
16
16
  /**
17
17
  * Type of item. Value can be `text`, `header`, `divider`
@@ -46,21 +46,21 @@ export interface Suggestion {
46
46
  */
47
47
  id?: string;
48
48
  }
49
- export declare type AutosuggestItem = Suggestion | string | unknown;
49
+ export type AutosuggestItem = Suggestion | string | unknown;
50
50
  export interface AutosuggestQuery {
51
51
  toString(): string;
52
52
  }
53
- export declare type AutosuggestTargetElement = HTMLElement & {
53
+ export type AutosuggestTargetElement = HTMLElement & {
54
54
  value: string;
55
55
  };
56
- export declare type AutosuggestMethodType = 'click' | 'enter' | 'clear' | 'reset' | 'navigation';
57
- export declare type AutosuggestRenderer = (suggestion: AutosuggestItem, query: AutosuggestQuery | null) => HTMLElement;
58
- export declare type AutosuggestHighlightable = (suggestion: AutosuggestItem, target: HTMLElement) => boolean;
56
+ export type AutosuggestMethodType = 'click' | 'enter' | 'clear' | 'reset' | 'navigation';
57
+ export type AutosuggestRenderer = (suggestion: AutosuggestItem, query: AutosuggestQuery | null) => HTMLElement;
58
+ export type AutosuggestHighlightable = (suggestion: AutosuggestItem, target: HTMLElement) => boolean;
59
59
  /**
60
60
  * @event item-highlight
61
61
  * Fired when an item gets highlighted or highlight is removed
62
62
  */
63
- export declare type ItemHighlightEvent = CustomEvent<{
63
+ export type ItemHighlightEvent = CustomEvent<{
64
64
  /**
65
65
  * New highlight target
66
66
  */
@@ -83,18 +83,18 @@ export declare type ItemHighlightEvent = CustomEvent<{
83
83
  * Fired when attach has been set.
84
84
  * Add attach target listeners
85
85
  */
86
- export declare type AddAttachTargetEventsEvent = CustomEvent;
86
+ export type AddAttachTargetEventsEvent = CustomEvent;
87
87
  /**
88
88
  * @event remove-attach-target-events
89
89
  * Fired when attach has been removed.
90
90
  * Remove attach target listeners
91
91
  */
92
- export declare type RemoveAttachTargetEventsEvent = CustomEvent;
92
+ export type RemoveAttachTargetEventsEvent = CustomEvent;
93
93
  /**
94
94
  * @event item-select
95
95
  * Fired when an item gets selected
96
96
  */
97
- export declare type ItemSelectEvent = CustomEvent<{
97
+ export type ItemSelectEvent = CustomEvent<{
98
98
  /**
99
99
  * Select method
100
100
  */
@@ -116,7 +116,7 @@ export declare type ItemSelectEvent = CustomEvent<{
116
116
  * @event suggestions-fetch-requested
117
117
  * Fired when auto suggest requests the data
118
118
  */
119
- export declare type SuggestionsFetchRequestedEvent = CustomEvent<{
119
+ export type SuggestionsFetchRequestedEvent = CustomEvent<{
120
120
  /**
121
121
  * Input query
122
122
  */
@@ -131,12 +131,12 @@ export declare type SuggestionsFetchRequestedEvent = CustomEvent<{
131
131
  * Fired when auto suggest requests to clear the data.
132
132
  * If used in reactive application, prevent default and set suggestions to []
133
133
  */
134
- export declare type SuggestionsClearRequestedEvent = CustomEvent;
134
+ export type SuggestionsClearRequestedEvent = CustomEvent;
135
135
  /**
136
136
  * @event suggestions-query
137
137
  * Fired when input value has changed and the query must be set.
138
138
  */
139
- export declare type SuggestionsQueryEvent = CustomEvent<{
139
+ export type SuggestionsQueryEvent = CustomEvent<{
140
140
  /**
141
141
  * The reason to request query
142
142
  */
@@ -146,7 +146,7 @@ export declare type SuggestionsQueryEvent = CustomEvent<{
146
146
  * @event suggestions-changed
147
147
  * Fired when suggestions changed
148
148
  */
149
- export declare type SuggestionsChangedEvent = CustomEvent<{
149
+ export type SuggestionsChangedEvent = CustomEvent<{
150
150
  /**
151
151
  * Suggestion Items
152
152
  */
@@ -19,14 +19,14 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
19
19
  * Autosuggest supports various use cases such as
20
20
  * custom rendering, pagination, asynchronous data request, etc.
21
21
  *
22
- * @fires item-highlight Fired when an item gets highlighted or highlight is removed
23
- * @fires add-attach-target-events Fired when attach has been set
24
- * @fires remove-attach-target-events Fired when attach has been removed
25
- * @fires item-select Fired when an item gets selected
26
- * @fires suggestions-fetch-requested Fired when auto suggest requests the data
27
- * @fires suggestions-clear-requested Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []
28
- * @fires suggestions-query Fired when input value has changed and the query must be set
29
- * @fires suggestions-changed Fired when suggestions changed
22
+ * @fires item-highlight - Fired when the user highlights an item or removes highlight from the item.
23
+ * @fires add-attach-target-events - Fired when `attach` has been set to bind the control with any custom inputs.
24
+ * @fires remove-attach-target-events - Fired when `attach` has been removed to unbind the control with the inputs.
25
+ * @fires item-select - Fired when the user selects an item on autosuggest.
26
+ * @fires suggestions-fetch-requested - Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed.
27
+ * @fires suggestions-clear-requested - Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [].
28
+ * @fires suggestions-query - Fired when the user changes value in input control and you might need to update suggestion items accordingly.
29
+ * @fires suggestions-changed - Fired when suggestion items changed.
30
30
  *
31
31
  * @attr {boolean} opened - Set to open auto suggest popup
32
32
  * @prop {boolean} [opened=false] - Auto suggest popup's open state
@@ -26,14 +26,14 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
26
26
  * Autosuggest supports various use cases such as
27
27
  * custom rendering, pagination, asynchronous data request, etc.
28
28
  *
29
- * @fires item-highlight Fired when an item gets highlighted or highlight is removed
30
- * @fires add-attach-target-events Fired when attach has been set
31
- * @fires remove-attach-target-events Fired when attach has been removed
32
- * @fires item-select Fired when an item gets selected
33
- * @fires suggestions-fetch-requested Fired when auto suggest requests the data
34
- * @fires suggestions-clear-requested Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []
35
- * @fires suggestions-query Fired when input value has changed and the query must be set
36
- * @fires suggestions-changed Fired when suggestions changed
29
+ * @fires item-highlight - Fired when the user highlights an item or removes highlight from the item.
30
+ * @fires add-attach-target-events - Fired when `attach` has been set to bind the control with any custom inputs.
31
+ * @fires remove-attach-target-events - Fired when `attach` has been removed to unbind the control with the inputs.
32
+ * @fires item-select - Fired when the user selects an item on autosuggest.
33
+ * @fires suggestions-fetch-requested - Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed.
34
+ * @fires suggestions-clear-requested - Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [].
35
+ * @fires suggestions-query - Fired when the user changes value in input control and you might need to update suggestion items accordingly.
36
+ * @fires suggestions-changed - Fired when suggestion items changed.
37
37
  *
38
38
  * @attr {boolean} opened - Set to open auto suggest popup
39
39
  * @prop {boolean} [opened=false] - Auto suggest popup's open state
@@ -42,6 +42,76 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
42
42
  * @slot footer - Slot to add custom contents at the bottom of autosuggest popup
43
43
  */
44
44
  let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
45
+ /**
46
+ * Element version number
47
+ * @returns version number
48
+ */
49
+ static get version() {
50
+ return VERSION;
51
+ }
52
+ /**
53
+ * A `CSSResultGroup` that will be used
54
+ * to style the host, slotted children
55
+ * and the internal template of the element.
56
+ * @return CSS template
57
+ */
58
+ static get styles() {
59
+ return [
60
+ super.styles,
61
+ css `
62
+ :host {
63
+ overflow: hidden;
64
+ display: flex;
65
+ flex-direction: column;
66
+ }
67
+ [part=content] {
68
+ flex: 1 1 auto;
69
+ overflow-x: hidden;
70
+ overflow-y: auto;
71
+ -webkit-overflow-scrolling: touch;
72
+ }
73
+ [part=header], [part=footer] {
74
+ flex: none;
75
+ }
76
+ `
77
+ ];
78
+ }
79
+ /**
80
+ * A basic regexp matching pattern to replace text based on string input.
81
+ * @param text Value to test against
82
+ * @param query The query
83
+ * @param [pattern=<mark>$1</mark>] Provide a pattern to replace string
84
+ * @returns innerHTML The text that can be used as innerHTML
85
+ */
86
+ static QueryWordSelect(text, query = '', pattern = '<mark>$1</mark>') {
87
+ return queryWordSelect(text, query, pattern);
88
+ }
89
+ /**
90
+ * Build item element from data object
91
+ * @param suggestion Suggestion data
92
+ * @param query A query data (usually string, but could be any entity )
93
+ * @returns item
94
+ */
95
+ static ItemRenderer(suggestion, query) {
96
+ return renderer(suggestion, query);
97
+ }
98
+ /**
99
+ * Replace forbidden characters in regular expressions
100
+ * @param string A string to process
101
+ * @returns clean string
102
+ */
103
+ static EscapeRegExp(string = '') {
104
+ return escapeRegExp(string);
105
+ }
106
+ /**
107
+ * Check whether item can be highlighted
108
+ * @param suggestion Suggestion object
109
+ * @param target item element
110
+ * @returns highlightable
111
+ */
112
+ static ItemHighlightable(suggestion, target) {
113
+ return itemHighlightable(suggestion, target);
114
+ }
45
115
  /**
46
116
  * creates auto-suggest
47
117
  */
@@ -200,76 +270,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
200
270
  */
201
271
  this.onOutsideClick = this.onOutsideClick.bind(this);
202
272
  }
203
- /**
204
- * Element version number
205
- * @returns version number
206
- */
207
- static get version() {
208
- return VERSION;
209
- }
210
- /**
211
- * A `CSSResultGroup` that will be used
212
- * to style the host, slotted children
213
- * and the internal template of the element.
214
- * @return CSS template
215
- */
216
- static get styles() {
217
- return [
218
- super.styles,
219
- css `
220
- :host {
221
- overflow: hidden;
222
- display: flex;
223
- flex-direction: column;
224
- }
225
- [part=content] {
226
- flex: 1 1 auto;
227
- overflow-x: hidden;
228
- overflow-y: auto;
229
- -webkit-overflow-scrolling: touch;
230
- }
231
- [part=header], [part=footer] {
232
- flex: none;
233
- }
234
- `
235
- ];
236
- }
237
- /**
238
- * A basic regexp matching pattern to replace text based on string input.
239
- * @param text Value to test against
240
- * @param query The query
241
- * @param [pattern=<mark>$1</mark>] Provide a pattern to replace string
242
- * @returns innerHTML The text that can be used as innerHTML
243
- */
244
- static QueryWordSelect(text, query = '', pattern = '<mark>$1</mark>') {
245
- return queryWordSelect(text, query, pattern);
246
- }
247
- /**
248
- * Build item element from data object
249
- * @param suggestion Suggestion data
250
- * @param query A query data (usually string, but could be any entity )
251
- * @returns item
252
- */
253
- static ItemRenderer(suggestion, query) {
254
- return renderer(suggestion, query);
255
- }
256
- /**
257
- * Replace forbidden characters in regular expressions
258
- * @param string A string to process
259
- * @returns clean string
260
- */
261
- static EscapeRegExp(string = '') {
262
- return escapeRegExp(string);
263
- }
264
- /**
265
- * Check whether item can be highlighted
266
- * @param suggestion Suggestion object
267
- * @param target item element
268
- * @returns highlightable
269
- */
270
- static ItemHighlightable(suggestion, target) {
271
- return itemHighlightable(suggestion, target);
272
- }
273
273
  disconnectedCallback() {
274
274
  this.dispatchAttachEventsRemoveAction();
275
275
  super.disconnectedCallback();
@@ -1302,8 +1302,6 @@ __decorate([
1302
1302
  query('#moreResults')
1303
1303
  ], Autosuggest.prototype, "moreResultsItem", void 0);
1304
1304
  Autosuggest = Autosuggest_1 = __decorate([
1305
- customElement('ef-autosuggest', {
1306
- alias: 'emerald-autosuggest'
1307
- })
1305
+ customElement('ef-autosuggest')
1308
1306
  ], Autosuggest);
1309
1307
  export { Autosuggest };
@@ -111,7 +111,7 @@
111
111
  "events": [
112
112
  {
113
113
  "name": "active-changed",
114
- "description": "Dispatched on changing `active` property state by taping on button when property `toggles` is true."
114
+ "description": "Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically."
115
115
  }
116
116
  ]
117
117
  }
@@ -20,4 +20,4 @@ and more with support for different states and styles.
20
20
 
21
21
  | Event | Description |
22
22
  |------------------|--------------------------------------------------|
23
- | `active-changed` | Dispatched on changing `active` property state by taping on button when property `toggles` is true. |
23
+ | `active-changed` | Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically. |
@@ -6,7 +6,7 @@ import '../icon/index.js';
6
6
  * and more with support for different states and styles.
7
7
  * @attr {boolean} disabled - Set state to disabled
8
8
  * @prop {boolean} [disabled=false] - Set state to disabled
9
- * @fires active-changed - Dispatched on changing `active` property state by taping on button when property `toggles` is true.
9
+ * @fires active-changed - Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically.
10
10
  */
11
11
  export declare class Button extends ControlElement {
12
12
  /**
@@ -12,7 +12,7 @@ import '../icon/index.js';
12
12
  * and more with support for different states and styles.
13
13
  * @attr {boolean} disabled - Set state to disabled
14
14
  * @prop {boolean} [disabled=false] - Set state to disabled
15
- * @fires active-changed - Dispatched on changing `active` property state by taping on button when property `toggles` is true.
15
+ * @fires active-changed - Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically.
16
16
  */
17
17
  let Button = class Button extends ControlElement {
18
18
  constructor() {
@@ -200,8 +200,6 @@ __decorate([
200
200
  query('[part="label"]')
201
201
  ], Button.prototype, "labelElement", void 0);
202
202
  Button = __decorate([
203
- customElement('ef-button', {
204
- alias: 'coral-button'
205
- })
203
+ customElement('ef-button')
206
204
  ], Button);
207
205
  export { Button };