@refinitiv-ui/elements 6.9.0-next.0 → 7.0.0-next.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 (224) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/cli.mjs +21 -0
  3. package/lib/accordion/index.js +1 -10
  4. package/lib/appstate-bar/index.d.ts +1 -7
  5. package/lib/appstate-bar/index.js +0 -12
  6. package/lib/autosuggest/index.d.ts +1 -24
  7. package/lib/autosuggest/index.js +34 -109
  8. package/lib/autosuggest/themes/halo/dark/index.js +1 -1
  9. package/lib/autosuggest/themes/halo/light/index.js +1 -1
  10. package/lib/autosuggest/themes/solar/charcoal/index.js +1 -1
  11. package/lib/autosuggest/themes/solar/pearl/index.js +1 -1
  12. package/lib/button/themes/halo/dark/index.js +1 -1
  13. package/lib/button/themes/halo/light/index.js +1 -1
  14. package/lib/button/themes/solar/charcoal/index.js +1 -1
  15. package/lib/button/themes/solar/pearl/index.js +1 -1
  16. package/lib/button-bar/index.js +0 -5
  17. package/lib/calendar/index.js +9 -19
  18. package/lib/calendar/themes/halo/dark/index.js +1 -1
  19. package/lib/calendar/themes/halo/light/index.js +1 -1
  20. package/lib/calendar/themes/solar/charcoal/index.js +1 -1
  21. package/lib/calendar/themes/solar/pearl/index.js +1 -1
  22. package/lib/calendar/utils.d.ts +1 -12
  23. package/lib/calendar/utils.js +2 -20
  24. package/lib/canvas/index.js +2 -1
  25. package/lib/card/themes/halo/dark/index.js +1 -1
  26. package/lib/card/themes/halo/light/index.js +1 -1
  27. package/lib/card/themes/solar/charcoal/index.js +1 -1
  28. package/lib/card/themes/solar/pearl/index.js +1 -1
  29. package/lib/chart/bare.d.ts +1 -0
  30. package/lib/chart/bare.js +1 -0
  31. package/lib/chart/custom-elements.json +7 -6
  32. package/lib/chart/custom-elements.md +9 -9
  33. package/lib/chart/elements/chart.d.ts +182 -0
  34. package/lib/chart/elements/chart.js +509 -0
  35. package/lib/chart/helpers/index.d.ts +1 -1
  36. package/lib/chart/helpers/index.js +1 -1
  37. package/lib/chart/helpers/merge.d.ts +1 -1
  38. package/lib/chart/helpers/merge.js +1 -1
  39. package/lib/chart/helpers/types.d.ts +0 -65
  40. package/lib/chart/index.d.ts +1 -192
  41. package/lib/chart/index.js +5 -485
  42. package/lib/chart/plugins/doughnut-center-label.d.ts +22 -3
  43. package/lib/chart/plugins/doughnut-center-label.js +62 -51
  44. package/lib/chart/plugins/index.d.ts +1 -0
  45. package/lib/chart/plugins/index.js +1 -0
  46. package/lib/checkbox/index.js +0 -1
  47. package/lib/checkbox/themes/halo/dark/index.js +1 -1
  48. package/lib/checkbox/themes/halo/light/index.js +1 -1
  49. package/lib/checkbox/themes/solar/charcoal/index.js +1 -1
  50. package/lib/checkbox/themes/solar/pearl/index.js +1 -1
  51. package/lib/clock/index.js +0 -4
  52. package/lib/clock/themes/halo/dark/index.js +1 -1
  53. package/lib/clock/themes/halo/light/index.js +1 -1
  54. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  55. package/lib/clock/themes/solar/pearl/index.js +1 -1
  56. package/lib/color-dialog/index.d.ts +2 -2
  57. package/lib/color-dialog/index.js +2 -2
  58. package/lib/color-picker/index.js +0 -1
  59. package/lib/combo-box/index.js +4 -4
  60. package/lib/combo-box/themes/halo/dark/index.js +1 -1
  61. package/lib/combo-box/themes/halo/light/index.js +1 -1
  62. package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
  63. package/lib/combo-box/themes/solar/pearl/index.js +1 -1
  64. package/lib/datetime-field/index.js +0 -5
  65. package/lib/datetime-picker/index.js +2 -5
  66. package/lib/dialog/custom-elements.json +1 -12
  67. package/lib/dialog/custom-elements.md +3 -4
  68. package/lib/dialog/index.d.ts +10 -42
  69. package/lib/dialog/index.js +20 -79
  70. package/lib/dialog/themes/halo/dark/index.js +1 -1
  71. package/lib/dialog/themes/halo/light/index.js +1 -1
  72. package/lib/dialog/themes/solar/charcoal/index.js +1 -1
  73. package/lib/dialog/themes/solar/pearl/index.js +1 -1
  74. package/lib/email-field/index.js +2 -1
  75. package/lib/email-field/themes/halo/dark/index.js +1 -1
  76. package/lib/email-field/themes/halo/light/index.js +1 -1
  77. package/lib/email-field/themes/solar/charcoal/index.js +1 -1
  78. package/lib/email-field/themes/solar/pearl/index.js +1 -1
  79. package/lib/flag/custom-elements.json +2 -14
  80. package/lib/flag/custom-elements.md +3 -6
  81. package/lib/flag/index.d.ts +21 -9
  82. package/lib/flag/index.js +43 -24
  83. package/lib/heatmap/helpers/color.js +2 -1
  84. package/lib/heatmap/index.js +33 -18
  85. package/lib/icon/custom-elements.json +0 -13
  86. package/lib/icon/custom-elements.md +0 -1
  87. package/lib/icon/index.d.ts +18 -11
  88. package/lib/icon/index.js +41 -29
  89. package/lib/icon/themes/halo/dark/index.js +1 -1
  90. package/lib/icon/themes/halo/light/index.js +1 -1
  91. package/lib/icon/themes/solar/charcoal/index.js +1 -1
  92. package/lib/icon/themes/solar/pearl/index.js +1 -1
  93. package/lib/interactive-chart/index.js +4 -2
  94. package/lib/item/themes/halo/dark/index.js +1 -1
  95. package/lib/item/themes/halo/light/index.js +1 -1
  96. package/lib/item/themes/solar/charcoal/index.js +1 -1
  97. package/lib/item/themes/solar/pearl/index.js +1 -1
  98. package/lib/label/index.js +9 -34
  99. package/lib/layout/index.js +0 -13
  100. package/lib/list/elements/list.js +0 -3
  101. package/lib/list/themes/halo/dark/index.js +2 -2
  102. package/lib/list/themes/halo/light/index.js +2 -2
  103. package/lib/list/themes/solar/charcoal/index.js +2 -2
  104. package/lib/list/themes/solar/pearl/index.js +2 -2
  105. package/lib/multi-input/themes/halo/dark/index.js +1 -1
  106. package/lib/multi-input/themes/halo/light/index.js +1 -1
  107. package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
  108. package/lib/multi-input/themes/solar/pearl/index.js +1 -1
  109. package/lib/notification/elements/notification.d.ts +0 -1
  110. package/lib/notification/elements/notification.js +0 -7
  111. package/lib/notification/themes/halo/dark/index.js +1 -1
  112. package/lib/notification/themes/halo/light/index.js +1 -1
  113. package/lib/notification/themes/solar/charcoal/index.js +1 -1
  114. package/lib/notification/themes/solar/pearl/index.js +1 -1
  115. package/lib/number-field/index.js +17 -12
  116. package/lib/number-field/themes/halo/dark/index.js +1 -1
  117. package/lib/number-field/themes/halo/light/index.js +1 -1
  118. package/lib/number-field/themes/solar/charcoal/index.js +1 -1
  119. package/lib/number-field/themes/solar/pearl/index.js +1 -1
  120. package/lib/overlay/elements/overlay-backdrop.d.ts +1 -8
  121. package/lib/overlay/elements/overlay-backdrop.js +3 -13
  122. package/lib/overlay/elements/overlay-viewport.d.ts +1 -8
  123. package/lib/overlay/elements/overlay-viewport.js +3 -13
  124. package/lib/overlay/elements/overlay.d.ts +0 -8
  125. package/lib/overlay/elements/overlay.js +4 -39
  126. package/lib/overlay/managers/close-manager.js +6 -4
  127. package/lib/overlay/managers/focus-manager.js +2 -1
  128. package/lib/overlay/managers/interaction-lock-manager.js +1 -1
  129. package/lib/overlay/managers/viewport-manager.js +3 -0
  130. package/lib/overlay/managers/zindex-manager.js +1 -1
  131. package/lib/overlay/themes/halo/dark/index.js +1 -1
  132. package/lib/overlay/themes/halo/light/index.js +1 -1
  133. package/lib/overlay/themes/solar/charcoal/index.js +1 -1
  134. package/lib/overlay/themes/solar/pearl/index.js +1 -1
  135. package/lib/overlay-menu/index.js +0 -5
  136. package/lib/overlay-menu/managers/menu-manager.d.ts +0 -1
  137. package/lib/overlay-menu/managers/menu-manager.js +1 -5
  138. package/lib/overlay-menu/themes/halo/dark/index.js +1 -1
  139. package/lib/overlay-menu/themes/halo/light/index.js +1 -1
  140. package/lib/overlay-menu/themes/solar/charcoal/index.js +1 -1
  141. package/lib/overlay-menu/themes/solar/pearl/index.js +1 -1
  142. package/lib/pagination/index.js +0 -2
  143. package/lib/pagination/themes/halo/dark/index.js +1 -1
  144. package/lib/pagination/themes/halo/light/index.js +1 -1
  145. package/lib/pagination/themes/solar/charcoal/index.js +1 -1
  146. package/lib/pagination/themes/solar/pearl/index.js +1 -1
  147. package/lib/password-field/themes/halo/dark/index.js +1 -1
  148. package/lib/password-field/themes/halo/light/index.js +1 -1
  149. package/lib/password-field/themes/solar/charcoal/index.js +1 -1
  150. package/lib/password-field/themes/solar/pearl/index.js +1 -1
  151. package/lib/pill/index.js +1 -1
  152. package/lib/pill/themes/solar/charcoal/index.js +1 -1
  153. package/lib/pill/themes/solar/pearl/index.js +1 -1
  154. package/lib/radio-button/index.js +0 -5
  155. package/lib/radio-button/themes/halo/dark/index.js +1 -1
  156. package/lib/radio-button/themes/halo/light/index.js +1 -1
  157. package/lib/radio-button/themes/solar/charcoal/index.js +1 -1
  158. package/lib/radio-button/themes/solar/pearl/index.js +1 -1
  159. package/lib/rating/index.js +0 -4
  160. package/lib/search-field/themes/halo/dark/index.js +1 -1
  161. package/lib/search-field/themes/halo/light/index.js +1 -1
  162. package/lib/search-field/themes/solar/charcoal/index.js +1 -1
  163. package/lib/search-field/themes/solar/pearl/index.js +1 -1
  164. package/lib/select/index.js +12 -18
  165. package/lib/select/themes/halo/dark/index.js +1 -1
  166. package/lib/select/themes/halo/light/index.js +1 -1
  167. package/lib/select/themes/solar/charcoal/index.js +1 -1
  168. package/lib/select/themes/solar/pearl/index.js +1 -1
  169. package/lib/sidebar-layout/themes/halo/dark/index.js +1 -1
  170. package/lib/sidebar-layout/themes/halo/light/index.js +1 -1
  171. package/lib/sidebar-layout/themes/solar/charcoal/index.js +1 -1
  172. package/lib/sidebar-layout/themes/solar/pearl/index.js +1 -1
  173. package/lib/slider/index.js +16 -9
  174. package/lib/slider/themes/halo/dark/index.js +1 -1
  175. package/lib/slider/themes/halo/light/index.js +1 -1
  176. package/lib/slider/themes/solar/charcoal/index.js +1 -1
  177. package/lib/slider/themes/solar/pearl/index.js +1 -1
  178. package/lib/tab/themes/halo/dark/index.js +1 -1
  179. package/lib/tab/themes/halo/light/index.js +1 -1
  180. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  181. package/lib/tab/themes/solar/pearl/index.js +1 -1
  182. package/lib/tab-bar/index.js +0 -4
  183. package/lib/tab-bar/themes/halo/dark/index.js +1 -1
  184. package/lib/tab-bar/themes/halo/light/index.js +1 -1
  185. package/lib/text-field/index.d.ts +1 -7
  186. package/lib/text-field/index.js +4 -18
  187. package/lib/text-field/themes/halo/dark/index.js +1 -1
  188. package/lib/text-field/themes/halo/light/index.js +1 -1
  189. package/lib/text-field/themes/solar/charcoal/index.js +1 -1
  190. package/lib/text-field/themes/solar/pearl/index.js +1 -1
  191. package/lib/time-picker/index.js +13 -13
  192. package/lib/toggle/index.js +1 -1
  193. package/lib/toggle/themes/halo/dark/index.js +1 -1
  194. package/lib/toggle/themes/halo/light/index.js +1 -1
  195. package/lib/toggle/themes/solar/charcoal/index.js +1 -1
  196. package/lib/toggle/themes/solar/pearl/index.js +1 -1
  197. package/lib/tooltip/elements/title-tooltip.js +1 -2
  198. package/lib/tooltip/elements/tooltip-element.js +1 -1
  199. package/lib/tooltip/index.js +5 -4
  200. package/lib/tooltip/managers/tooltip-manager.js +2 -5
  201. package/lib/tornado-chart/elements/tornado-chart.d.ts +4 -0
  202. package/lib/tornado-chart/elements/tornado-chart.js +9 -2
  203. package/lib/tree/elements/tree.js +0 -2
  204. package/lib/tree/themes/halo/dark/index.js +2 -2
  205. package/lib/tree/themes/halo/light/index.js +2 -2
  206. package/lib/tree/themes/solar/charcoal/index.js +2 -2
  207. package/lib/tree/themes/solar/pearl/index.js +2 -2
  208. package/lib/tree-select/index.js +8 -6
  209. package/lib/tree-select/themes/halo/dark/index.js +1 -1
  210. package/lib/tree-select/themes/halo/light/index.js +1 -1
  211. package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
  212. package/lib/tree-select/themes/solar/pearl/index.js +1 -1
  213. package/lib/version.js +1 -1
  214. package/package.json +32 -32
  215. package/lib/chart/helpers/legend.d.ts +0 -5
  216. package/lib/chart/helpers/legend.js +0 -78
  217. package/lib/config/custom-elements.json +0 -23
  218. package/lib/config/custom-elements.md +0 -8
  219. package/lib/config/elements/config.d.ts +0 -37
  220. package/lib/config/elements/config.js +0 -44
  221. package/lib/config/helpers/context.d.ts +0 -12
  222. package/lib/config/helpers/context.js +0 -2
  223. package/lib/config/index.d.ts +0 -2
  224. package/lib/config/index.js +0 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.8.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.8.1...@refinitiv-ui/elements@6.8.2) (2023-05-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * remove `z-index` from collapse implementation ([#682](https://github.com/Refinitiv/refinitiv-ui/issues/682)) ([c3b6f76](https://github.com/Refinitiv/refinitiv-ui/commit/c3b6f76b178a0339de8f3bc153e1378398d68831))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [6.8.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.8.0...@refinitiv-ui/elements@6.8.1) (2023-05-12)
7
18
 
8
19
  **Note:** Version bump only for package @refinitiv-ui/elements
package/cli.mjs ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ import yargs from 'yargs/yargs';
3
+ import { hideBin } from 'yargs/helpers';
4
+ import { errorHandler, info } from './scripts/helpers/index.mjs';
5
+ import { commands } from './scripts/cmd/index.mjs';
6
+
7
+ yargs(hideBin(process.argv))
8
+ .usage('Element Framework CLI Commands\n\nUsage: $0 <command> [options]')
9
+ .command(commands)
10
+ .demandCommand(1, 'You need at least one command.')
11
+ .version(false)
12
+ .help('help').alias('help', 'h')
13
+ .fail(function (msg, err, yargs) {
14
+ if (msg) {
15
+ errorHandler(msg);
16
+ }
17
+
18
+ info('\nSpecify --help for available options.\n');
19
+ process.exit(1);
20
+ })
21
+ .parse();
@@ -6,20 +6,11 @@ import { VERSION } from '../version.js';
6
6
  import { Collapse } from '../collapse/index.js';
7
7
  /**
8
8
  * Finds closest accordion parent of element.
9
- * Created, because IE11 doesn't support closest() method.
10
9
  * @param element - potential child of accordion
11
10
  * @returns found accordion parent or null, if not found
12
11
  */
13
12
  const getClosestAccordion = (element) => {
14
- while (element) {
15
- if (element instanceof Accordion) {
16
- return element;
17
- }
18
- else {
19
- element = element.parentElement;
20
- }
21
- }
22
- return null;
13
+ return element.closest('ef-accordion');
23
14
  };
24
15
  /**
25
16
  * Checks if specified element is a direct child of current accordion.
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { BasicElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
2
+ import { BasicElement, TemplateResult, CSSResultGroup } from '@refinitiv-ui/core';
3
3
  import { Translate } from '@refinitiv-ui/translate';
4
4
  import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
5
5
  import '../icon/index.js';
@@ -35,12 +35,6 @@ export declare class AppstateBar extends BasicElement {
35
35
  * Used for translations
36
36
  */
37
37
  protected t: Translate;
38
- /**
39
- * Invoked whenever the element is updated
40
- * @param {PropertyValues} changedProperties Map of changed properties with old values
41
- * @returns {void}
42
- */
43
- protected updated(changedProperties: PropertyValues): void;
44
38
  /**
45
39
  * Hide the element when clear button is clicked
46
40
  * @param {Event} event - event params
@@ -56,18 +56,6 @@ let AppstateBar = class AppstateBar extends BasicElement {
56
56
  }
57
57
  `;
58
58
  }
59
- /**
60
- * Invoked whenever the element is updated
61
- * @param {PropertyValues} changedProperties Map of changed properties with old values
62
- * @returns {void}
63
- */
64
- updated(changedProperties) {
65
- super.updated(changedProperties);
66
- // Call this.updateStyles() to update css variables
67
- if (changedProperties.has('state')) {
68
- this.updateStyles();
69
- }
70
- }
71
59
  /**
72
60
  * A `TemplateResult` that will be used
73
61
  * to render the updated internal template.
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { CSSResultGroup, ElementSize, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
2
+ import { CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
3
  import { TranslateDirective } from '@refinitiv-ui/translate';
4
4
  import type { AutosuggestTargetElement, AutosuggestHighlightable, AutosuggestMethodType, AutosuggestQuery, AutosuggestRenderer, AutosuggestReason, AutosuggestItem, AutosuggestSelectItemEvent, AutosuggestHighlightItemEvent } from './helpers/types';
5
5
  import { escapeRegExp, itemHighlightable, queryWordSelect } from './helpers/utils.js';
@@ -144,7 +144,6 @@ export declare class Autosuggest extends Overlay {
144
144
  private lastActiveElement;
145
145
  private suspendedKey;
146
146
  private preservedQueryValue;
147
- private focusSuspended;
148
147
  private jobRunner;
149
148
  private attachChangeRunner;
150
149
  private moreResultsRunner;
@@ -178,13 +177,6 @@ export declare class Autosuggest extends Overlay {
178
177
  * @returns {void}
179
178
  */
180
179
  onInputKeyDown(event: KeyboardEvent): void;
181
- /**
182
- * @ignore
183
- * Called when the element's dimensions have changed
184
- * @param size dimension details
185
- * @returns {void}
186
- */
187
- resizedCallback(size: ElementSize): void;
188
180
  /**
189
181
  * Called once after the component is first rendered
190
182
  * @param changedProperties map of changed properties with old values
@@ -203,9 +195,6 @@ export declare class Autosuggest extends Overlay {
203
195
  * @returns {void}
204
196
  */
205
197
  protected updated(changedProperties: PropertyValues): void;
206
- /**
207
- * inheritance callbacks
208
- */
209
198
  /**
210
199
  * Run when the slot has changed.
211
200
  * @param event Slot change query
@@ -511,18 +500,6 @@ export declare class Autosuggest extends Overlay {
511
500
  * @return Render template
512
501
  */
513
502
  protected render(): TemplateResult;
514
- /**
515
- * IE11 only: Restrict maximum height of content element
516
- * @param [maxHeight] Maximum height of content element
517
- * @returns {void}
518
- */
519
- private restrictContentMaxHeight;
520
- /**
521
- * IE11 only: Calculate the maxHeight of content element
522
- * @param size Size of the dialog
523
- * @returns {void}
524
- */
525
- private calculateContentMaxHeight;
526
503
  }
527
504
  declare global {
528
505
  interface HTMLElementTagNameMap {
@@ -8,7 +8,7 @@ import { ref, createRef } from '@refinitiv-ui/core/directives/ref.js';
8
8
  import { unsafeHTML } from '@refinitiv-ui/core/directives/unsafe-html.js';
9
9
  import { VERSION } from '../version.js';
10
10
  import { AnimationTaskRunner, TimeoutTaskRunner } from '@refinitiv-ui/utils/async.js';
11
- import { isIE, isMobile } from '@refinitiv-ui/utils/browser.js';
11
+ import { isMobile } from '@refinitiv-ui/utils/browser.js';
12
12
  import { translate, TranslatePropertyKey } from '@refinitiv-ui/translate';
13
13
  import { escapeRegExp, itemHighlightable, queryWordSelect } from './helpers/utils.js';
14
14
  import { renderer } from './helpers/renderer.js';
@@ -181,7 +181,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
181
181
  this.lastActiveElement = null;
182
182
  this.suspendedKey = false;
183
183
  this.preservedQueryValue = null;
184
- this.focusSuspended = false;
185
184
  this.jobRunner = new TimeoutTaskRunner(this.debounceRate);
186
185
  this.attachChangeRunner = new AnimationTaskRunner();
187
186
  this.moreResultsRunner = new AnimationTaskRunner();
@@ -281,7 +280,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
281
280
  */
282
281
  onInputValueChange(event) {
283
282
  if (!this.suspended) { // avoid circular
284
- /* istanbul ignore next */
283
+ /* c8 ignore next */
285
284
  if (isMobile) {
286
285
  this.lastActiveElement = event.target;
287
286
  }
@@ -308,11 +307,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
308
307
  */
309
308
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
310
309
  onInputFocus(event) {
311
- /* istanbul ignore next */
312
- if (this.focusSuspended) {
313
- // see _onItemMousedown, it is an IE fix for scrollbar
314
- return;
315
- }
316
310
  this.requestOnFocus && this.requestSuggestions('input-focus');
317
311
  }
318
312
  /**
@@ -326,18 +320,14 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
326
320
  }
327
321
  switch (event.key) {
328
322
  case 'ArrowUp':
329
- case 'Up':
330
323
  this.onUpKey();
331
324
  break;
332
325
  case 'ArrowDown':
333
- case 'Down':
334
326
  this.onDownKey();
335
327
  break;
336
328
  case 'Escape':
337
- case 'Esc':
338
329
  this.onEscKey();
339
330
  break;
340
- case 'Return':
341
331
  case 'Enter':
342
332
  this.onEnterKey(event);
343
333
  break;
@@ -346,16 +336,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
346
336
  }
347
337
  event.preventDefault();
348
338
  }
349
- /**
350
- * @ignore
351
- * Called when the element's dimensions have changed
352
- * @param size dimension details
353
- * @returns {void}
354
- */
355
- resizedCallback(size) {
356
- super.resizedCallback(size);
357
- this.calculateContentMaxHeight(size);
358
- }
359
339
  /**
360
340
  * Called once after the component is first rendered
361
341
  * @param changedProperties map of changed properties with old values
@@ -371,9 +351,8 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
371
351
  * @returns shouldUpdate
372
352
  */
373
353
  shouldUpdate(changedProperties) {
374
- let result = super.shouldUpdate(changedProperties);
375
- result = result || this.shouldAutosuggestUpdate(changedProperties);
376
- return result;
354
+ const shouldUpdate = super.shouldUpdate(changedProperties);
355
+ return shouldUpdate || this.shouldAutosuggestUpdate(changedProperties);
377
356
  }
378
357
  /**
379
358
  * Called after the element’s DOM has been updated
@@ -387,9 +366,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
387
366
  }
388
367
  this.changedCallbacks(changedProperties);
389
368
  }
390
- /**
391
- * inheritance callbacks
392
- */
393
369
  /**
394
370
  * Run when the slot has changed.
395
371
  * @param event Slot change query
@@ -398,18 +374,18 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
398
374
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
399
375
  onSlotChange(event) {
400
376
  const contentSlot = this.contentSlotRef.value;
401
- const nodes = (contentSlot && contentSlot.assignedNodes()) || [];
377
+ const nodes = contentSlot?.assignedNodes() ?? [];
402
378
  this.setOpened(this.attachTargetFocused && this.hasContent);
403
379
  // make a brave assumption that suggestions are populated as well
404
380
  const suggestions = this.suggestions;
405
381
  this.highlightItem(); // hide highlight
406
382
  this.suggestionMap.clear();
407
- nodes.forEach((node, idx) => {
408
- /* istanbul ignore next */
383
+ nodes.forEach((node, index) => {
384
+ /* c8 ignore next */
409
385
  if (node.nodeType !== Node.ELEMENT_NODE) {
410
386
  return;
411
387
  }
412
- const suggestion = suggestions[idx];
388
+ const suggestion = suggestions[index];
413
389
  if (this.highlightable(suggestion, node)) {
414
390
  this.suggestionMap.set(node, suggestion);
415
391
  }
@@ -431,9 +407,9 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
431
407
  */
432
408
  itemSelectAction(event) {
433
409
  const { detail: { query, suggestion } } = event;
434
- /* istanbul ignore next */
410
+ /* c8 ignore next */
435
411
  if (this.attachTarget) {
436
- this.attachTarget.value = suggestion && suggestion?.label || query;
412
+ this.attachTarget.value = suggestion && suggestion.label || query;
437
413
  }
438
414
  }
439
415
  /**
@@ -481,7 +457,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
481
457
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
482
458
  attachEventsAddAction(event) {
483
459
  const attachTarget = this.attachTarget;
484
- /* istanbul ignore next */
460
+ /* c8 ignore next */
485
461
  if (!attachTarget) {
486
462
  return;
487
463
  }
@@ -559,12 +535,13 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
559
535
  }
560
536
  const query = this.xmlSerializer.serializeToString(document.createTextNode(this.query ? this.query.toString() : ''));
561
537
  return html `
562
- <span part="more-results-text">${this.moreSearchText
563
- ? unsafeHTML(this.moreSearchText.replace(/{0\}/g, `<mark>${query}</mark>`))
538
+ <span part="more-results-text">
539
+ ${this.moreSearchText ? unsafeHTML(this.moreSearchText.replace(/{0\}/g, `<mark>${query}</mark>`))
564
540
  : this.t('MORE_RESULTS', {
565
541
  query,
566
542
  mark: (chunks) => `<mark>${chunks}</mark>`
567
- })}</span>
543
+ })}
544
+ </span>
568
545
  <span part="more-results-keys" slot="right"><kbd>SHIFT</kbd> + <kbd>ENTER</kbd></span>
569
546
  `;
570
547
  }
@@ -614,7 +591,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
614
591
  */
615
592
  onClosed() {
616
593
  super.onClosed();
617
- this.restrictContentMaxHeight();
618
594
  document.removeEventListener('tapstart', this.onOutsideClick);
619
595
  }
620
596
  /**
@@ -627,7 +603,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
627
603
  this.requestSuggestions('enter-pressed');
628
604
  return;
629
605
  }
630
- /* istanbul ignore next */
606
+ /* c8 ignore next */
631
607
  if (this.loading) {
632
608
  return;
633
609
  }
@@ -651,7 +627,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
651
627
  this.requestSuggestions('suggestions-revealed');
652
628
  return;
653
629
  }
654
- /* istanbul ignore next */
630
+ /* c8 ignore next */
655
631
  if (this.loading) {
656
632
  return;
657
633
  }
@@ -666,7 +642,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
666
642
  this.requestSuggestions('suggestions-revealed');
667
643
  return;
668
644
  }
669
- /* istanbul ignore next */
645
+ /* c8 ignore next */
670
646
  if (this.loading) {
671
647
  return;
672
648
  }
@@ -751,9 +727,9 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
751
727
  */
752
728
  get renderedSuggestions() {
753
729
  const keys = [];
754
- this.suggestionMap.forEach((value, key) => {
730
+ for (const [key] of this.suggestionMap) {
755
731
  keys.push(key);
756
- });
732
+ }
757
733
  if (this.moreResults && this.moreResultsItem) {
758
734
  keys.push(this.moreResultsItem);
759
735
  }
@@ -763,7 +739,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
763
739
  * Fired when mouse leave event happens. Remove highlight from the item
764
740
  * @returns {void}
765
741
  */
766
- /* istanbul ignore next */
742
+ /* c8 ignore next */
767
743
  onItemMouseLeave() {
768
744
  this.highlightItem(); // remove highlight
769
745
  }
@@ -897,8 +873,8 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
897
873
  */
898
874
  suggestionsChange() {
899
875
  const contentSlot = this.contentSlotRef.value;
900
- contentSlot && contentSlot.assignedNodes().forEach((node) => {
901
- node.parentNode && node.parentNode.removeChild(node);
876
+ contentSlot?.assignedNodes().forEach((node) => {
877
+ node.parentNode?.removeChild(node);
902
878
  });
903
879
  this.appendChild(this.suggestions.reduce((fragment, suggestion) => this.generateSuggestionsFragment(fragment, suggestion), document.createDocumentFragment()));
904
880
  }
@@ -1026,7 +1002,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1026
1002
  }
1027
1003
  // Space characters (e.g. space, tab, EOL) don't count as having content
1028
1004
  const contentSlot = this.contentSlotRef.value;
1029
- const nodes = contentSlot && contentSlot.assignedNodes() || [];
1005
+ const nodes = contentSlot?.assignedNodes() ?? [];
1030
1006
  return nodes.some(({ nodeType, textContent }) => nodeType === Node.ELEMENT_NODE || (textContent && textContent.search(/\S/) >= 0)); // If node is element always return true
1031
1007
  }
1032
1008
  /**
@@ -1060,14 +1036,14 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1060
1036
  const path = event.composedPath();
1061
1037
  for (let i = 0; i <= path.length; i += 1) {
1062
1038
  const node = path[i];
1063
- /* istanbul ignore next */
1039
+ /* c8 ignore next */
1064
1040
  if (node.nodeType !== Node.ELEMENT_NODE) {
1065
1041
  continue;
1066
1042
  }
1067
1043
  if (this.canSelect(node)) {
1068
1044
  return node;
1069
1045
  }
1070
- /* istanbul ignore next */
1046
+ /* c8 ignore next */
1071
1047
  if (node === this) {
1072
1048
  return event.target;
1073
1049
  }
@@ -1128,8 +1104,8 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1128
1104
  }
1129
1105
  }
1130
1106
  generateSuggestionsFragment(fragment, suggestion) {
1131
- const el = this.renderer(suggestion, this.preservedQueryValue);
1132
- fragment.appendChild(el);
1107
+ const element = this.renderer(suggestion, this.preservedQueryValue);
1108
+ fragment.appendChild(element);
1133
1109
  return fragment;
1134
1110
  }
1135
1111
  /**
@@ -1142,7 +1118,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1142
1118
  const rect = this.positionTarget.getBoundingClientRect();
1143
1119
  this.style.minWidth = `${rect.width}px`;
1144
1120
  }
1145
- this.restrictContentMaxHeight();
1146
1121
  }
1147
1122
  /**
1148
1123
  * Fired when mouse down event happens. Select the item
@@ -1150,16 +1125,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1150
1125
  * @returns {void}
1151
1126
  */
1152
1127
  onItemMousedown(event) {
1153
- // do not loose focus from input when click happens on the popup
1154
- // note, in IE when scrolling the focus is lost regardless, so
1155
- // do hacking here and with on blur
1156
- /* istanbul ignore next */
1157
- requestAnimationFrame(() => {
1158
- // Ignore any focus query events!
1159
- this.focusSuspended = true;
1160
- this.attachTarget && this.attachTarget.focus();
1161
- this.focusSuspended = false;
1162
- });
1163
1128
  event.stopPropagation();
1164
1129
  event.preventDefault();
1165
1130
  }
@@ -1185,10 +1150,12 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1185
1150
  return null;
1186
1151
  }
1187
1152
  return html `
1188
- <ef-item tabIndex="-1"
1189
- role="option"
1190
- id="moreResults"
1191
- part="more-results">${this.moreResultsTextTemplate}</ef-item>
1153
+ <ef-item
1154
+ tabIndex="-1"
1155
+ role="option"
1156
+ id="moreResults"
1157
+ part="more-results">${this.moreResultsTextTemplate}
1158
+ </ef-item>
1192
1159
  `;
1193
1160
  }
1194
1161
  /**
@@ -1218,48 +1185,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
1218
1185
  ${this.loaderTemplate}
1219
1186
  `;
1220
1187
  }
1221
- /**
1222
- * IE11 only: Restrict maximum height of content element
1223
- * @param [maxHeight] Maximum height of content element
1224
- * @returns {void}
1225
- */
1226
- /* istanbul ignore next */
1227
- restrictContentMaxHeight(maxHeight) {
1228
- const contentElement = this.contentElementRef.value;
1229
- if (!isIE || !contentElement) {
1230
- return;
1231
- }
1232
- if (maxHeight) {
1233
- contentElement.style.setProperty('max-height', `${maxHeight}px`);
1234
- }
1235
- else {
1236
- contentElement.style.removeProperty('max-height');
1237
- }
1238
- }
1239
- /**
1240
- * IE11 only: Calculate the maxHeight of content element
1241
- * @param size Size of the dialog
1242
- * @returns {void}
1243
- */
1244
- /* istanbul ignore next */
1245
- calculateContentMaxHeight(size) {
1246
- if (!isIE) {
1247
- return;
1248
- }
1249
- const headerElement = this.headerElementRef.value;
1250
- const footerElement = this.footerElementRef.value;
1251
- const contentElement = this.contentElementRef.value;
1252
- const headerRect = headerElement?.getBoundingClientRect();
1253
- const footerRect = footerElement?.getBoundingClientRect();
1254
- const contentRect = contentElement?.getBoundingClientRect();
1255
- const dialogHeight = size.height;
1256
- const headerHeight = headerRect ? headerRect.height : 0;
1257
- const footerHeight = footerRect ? footerRect.height : 0;
1258
- const contentHeight = contentRect ? contentRect.height : 0;
1259
- if (headerHeight + footerHeight + contentHeight > dialogHeight) {
1260
- this.restrictContentMaxHeight(dialogHeight - footerHeight - headerHeight);
1261
- }
1262
- }
1263
1188
  };
1264
1189
  Autosuggest.defaultDebounceRate = 100;
1265
1190
  __decorate([
@@ -2,4 +2,4 @@ import '@refinitiv-ui/elements/item/themes/halo/dark';
2
2
  import '@refinitiv-ui/elements/overlay/themes/halo/dark';
3
3
  import '@refinitiv-ui/elements/loader/themes/halo/dark';
4
4
 
5
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-autosuggest', styles: 'mark{color:#fff;background-color:#334bff}:host{min-height:0;max-height:350px;border:1px solid #404040;background-color:#0d0d0d}:host([loading]){min-height:50px;min-width:150px}:host [part=content]{overflow:auto;touch-action:manipulation;scrollbar-face-color:#595959;scrollbar-shadow-color:#595959;scrollbar-highlight-color:#595959;scrollbar-arrow-color:#595959;scrollbar-track-color:#1a1a1a;scrollbar-3dlight-color:#1a1a1a;scrollbar-darkshadow-color:#1a1a1a;scrollbar-color:#595959 #1a1a1a;scrollbar-width:thin}:host [part=more-results]{border-top:1px solid #404040}:host [part=more-results] mark{background-color:inherit;font-weight:500}:host [part=more-results-text]{font-size:.76em;font-size:inherit}:host [part=more-results-keys],:host [part=more-results] mark{color:#fff}:host [part=loader]{top:0;bottom:0;left:0;right:0;position:absolute}:host [part=backdrop]{background-color:#000;opacity:.6;width:100%;height:100%}::-webkit-scrollbar-corner{background:0 0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#595959;border-radius:0;border:1px solid transparent}::-webkit-scrollbar-thumb:hover{background:#1429bd}::-webkit-scrollbar-thumb:active{background:#0f1e8a}::-webkit-scrollbar-track{background:#1a1a1a}::-webkit-scrollbar-thumb:horizontal{background-size:auto 6px;background-repeat:repeat-x;background-image:linear-gradient(to bottom,#595959,#595959);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:hover{background-image:linear-gradient(to bottom,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:active{background-image:linear-gradient(to bottom,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical{background-size:6px auto;background-repeat:repeat-y;background-image:linear-gradient(to right,#595959,#595959);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:hover{background-image:linear-gradient(to right,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:active{background-image:linear-gradient(to right,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-track:horizontal{border-top:1px solid #0d0d0d;border-bottom:1px solid #0d0d0d}::-webkit-scrollbar-track:vertical{border-left:1px solid #0d0d0d;border-right:1px solid #0d0d0d}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #1a1a1a;height:16px;width:16px;display:none;border:1px solid #0d0d0d}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:hover{background-color:#1429bd;border:1px solid #1429bd}::-webkit-scrollbar-button:active{background-color:#0f1e8a;border:1px solid #0d0d0d}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{border-bottom-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#1429bd}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#0d0d0d}::-webkit-scrollbar-button:vertical:end:increment{border-top-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#1429bd}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#0d0d0d}::-webkit-scrollbar-button:horizontal:start:decrement{border-right-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#1429bd}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#0d0d0d}::-webkit-scrollbar-button:horizontal:end:increment{border-left-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#1429bd}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#0d0d0d}kbd{font-family:inherit;justify-content:center;align-items:center;vertical-align:middle;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.3);min-width:1.33em;display:inline-block;color:#fff;background-color:#404040;box-shadow:0 0 0 2px #404040;font-weight:600;font-family:inherit;font-size:.83333333em;border-radius:1em;padding:0 .5em;height:1.2em;margin-top:-.1em}:host{border-color:#334bff;margin:2px 0}:host [part=content] ::slotted(ef-item:not([part=more-results])){background-color:#262626}:host [part=content] ::slotted(ef-item:not([type=header]):not([part=more-results])){color:#ccc}:host [part=content] ::slotted(ef-item:not([part=more-results]):not(:first-child)){box-shadow:0 -1px 0 #404040}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]){background-color:#333}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus:not([selected])),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]:not([selected])){color:#fff}:host [part=more-results]{border-top-color:#404040;color:#ccc;background-color:#1a1a1a}:host [part=more-results]:focus,:host [part=more-results][highlighted]{background-color:#333;color:#ccc}:host [part=more-results-keys] kbd{margin-left:4px;margin-right:4px}:host [part=more-results-keys] kbd:first-of-type{margin-left:0}:host [part=more-results-keys] kbd:last-of-type{margin-right:0}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-autosuggest', styles: 'mark{color:#fff;background-color:#334bff}:host{min-height:0;max-height:350px;border:1px solid #404040;background-color:#0d0d0d}:host([loading]){min-height:50px;min-width:150px}:host [part=content]{overflow:auto;touch-action:manipulation;scrollbar-color:#595959 #1a1a1a;scrollbar-width:thin}:host [part=more-results]{border-top:1px solid #404040}:host [part=more-results] mark{background-color:inherit;font-weight:500}:host [part=more-results-text]{font-size:.76em;font-size:inherit}:host [part=more-results-keys],:host [part=more-results] mark{color:#fff}:host [part=loader]{top:0;bottom:0;left:0;right:0;position:absolute}:host [part=backdrop]{background-color:#000;opacity:.6;width:100%;height:100%}::-webkit-scrollbar-corner{background:0 0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#595959;border-radius:0;border:1px solid transparent}::-webkit-scrollbar-thumb:hover{background:#1429bd}::-webkit-scrollbar-thumb:active{background:#0f1e8a}::-webkit-scrollbar-track{background:#1a1a1a}::-webkit-scrollbar-thumb:horizontal{background-size:auto 6px;background-repeat:repeat-x;background-image:linear-gradient(to bottom,#595959,#595959);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:hover{background-image:linear-gradient(to bottom,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:active{background-image:linear-gradient(to bottom,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical{background-size:6px auto;background-repeat:repeat-y;background-image:linear-gradient(to right,#595959,#595959);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:hover{background-image:linear-gradient(to right,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:active{background-image:linear-gradient(to right,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-track:horizontal{border-top:1px solid #0d0d0d;border-bottom:1px solid #0d0d0d}::-webkit-scrollbar-track:vertical{border-left:1px solid #0d0d0d;border-right:1px solid #0d0d0d}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #1a1a1a;height:16px;width:16px;display:none;border:1px solid #0d0d0d}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:hover{background-color:#1429bd;border:1px solid #1429bd}::-webkit-scrollbar-button:active{background-color:#0f1e8a;border:1px solid #0d0d0d}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{border-bottom-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#1429bd}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#0d0d0d}::-webkit-scrollbar-button:vertical:end:increment{border-top-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#1429bd}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#0d0d0d}::-webkit-scrollbar-button:horizontal:start:decrement{border-right-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#1429bd}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#0d0d0d}::-webkit-scrollbar-button:horizontal:end:increment{border-left-color:#0d0d0d;background-image:linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc),linear-gradient(#ccc,#ccc);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#1429bd}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#0d0d0d}kbd{font-family:inherit;justify-content:center;align-items:center;vertical-align:middle;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.3);min-width:1.33em;display:inline-block;color:#fff;background-color:#404040;box-shadow:0 0 0 2px #404040;font-weight:600;font-family:inherit;font-size:.83333333em;border-radius:1em;padding:0 .5em;height:1.2em;margin-top:-.1em}:host{border-color:#334bff;margin:2px 0}:host [part=content] ::slotted(ef-item:not([part=more-results])){background-color:#262626}:host [part=content] ::slotted(ef-item:not([type=header]):not([part=more-results])){color:#ccc}:host [part=content] ::slotted(ef-item:not([part=more-results]):not(:first-child)){box-shadow:0 -1px 0 #404040}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]){background-color:#333}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus:not([selected])),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]:not([selected])){color:#fff}:host [part=more-results]{border-top-color:#404040;color:#ccc;background-color:#1a1a1a}:host [part=more-results]:focus,:host [part=more-results][highlighted]{background-color:#333;color:#ccc}:host [part=more-results-keys] kbd{margin-left:4px;margin-right:4px}:host [part=more-results-keys] kbd:first-of-type{margin-left:0}:host [part=more-results-keys] kbd:last-of-type{margin-right:0}' }}));
@@ -2,4 +2,4 @@ import '@refinitiv-ui/elements/item/themes/halo/light';
2
2
  import '@refinitiv-ui/elements/overlay/themes/halo/light';
3
3
  import '@refinitiv-ui/elements/loader/themes/halo/light';
4
4
 
5
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-autosuggest', styles: 'mark{color:#fff;background-color:#334bff}:host{min-height:0;max-height:350px;border:1px solid #595959;background-color:#fff}:host([loading]){min-height:50px;min-width:150px}:host [part=content]{overflow:auto;touch-action:manipulation;scrollbar-face-color:#999;scrollbar-shadow-color:#999;scrollbar-highlight-color:#999;scrollbar-arrow-color:#999;scrollbar-track-color:#f2f2f2;scrollbar-3dlight-color:#f2f2f2;scrollbar-darkshadow-color:#f2f2f2;scrollbar-color:#999 #f2f2f2;scrollbar-width:thin}:host [part=more-results]{border-top:1px solid #595959}:host [part=more-results] mark{background-color:inherit;font-weight:500}:host [part=more-results-text]{font-size:.76em;font-size:inherit}:host [part=more-results-keys],:host [part=more-results] mark{color:#0d0d0d}:host [part=loader]{top:0;bottom:0;left:0;right:0;position:absolute}:host [part=backdrop]{background-color:#000;opacity:.6;width:100%;height:100%}::-webkit-scrollbar-corner{background:0 0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#999;border-radius:0;border:1px solid transparent}::-webkit-scrollbar-thumb:hover{background:#1429bd}::-webkit-scrollbar-thumb:active{background:#0f1e8a}::-webkit-scrollbar-track{background:#f2f2f2}::-webkit-scrollbar-thumb:horizontal{background-size:auto 6px;background-repeat:repeat-x;background-image:linear-gradient(to bottom,#999,#999);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:hover{background-image:linear-gradient(to bottom,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:active{background-image:linear-gradient(to bottom,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical{background-size:6px auto;background-repeat:repeat-y;background-image:linear-gradient(to right,#999,#999);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:hover{background-image:linear-gradient(to right,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:active{background-image:linear-gradient(to right,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-track:horizontal{border-top:1px solid #fff;border-bottom:1px solid #fff}::-webkit-scrollbar-track:vertical{border-left:1px solid #fff;border-right:1px solid #fff}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #f2f2f2;height:16px;width:16px;display:none;border:1px solid #fff}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:hover{background-color:#1429bd;border:1px solid #1429bd}::-webkit-scrollbar-button:active{background-color:#0f1e8a;border:1px solid #fff}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{border-bottom-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#1429bd}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#fff}::-webkit-scrollbar-button:vertical:end:increment{border-top-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#1429bd}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#fff}::-webkit-scrollbar-button:horizontal:start:decrement{border-right-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#1429bd}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#fff}::-webkit-scrollbar-button:horizontal:end:increment{border-left-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#1429bd}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#fff}kbd{font-family:inherit;justify-content:center;align-items:center;vertical-align:middle;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.3);min-width:1.33em;display:inline-block;color:#0d0d0d;background-color:#d9d9d9;box-shadow:0 0 0 2px #d9d9d9;font-weight:600;font-family:inherit;font-size:.83333333em;border-radius:1em;padding:0 .5em;height:1.2em;margin-top:-.1em}:host{border-color:#334bff;margin:2px 0}:host [part=content] ::slotted(ef-item:not([part=more-results])){background-color:#f2f2f2}:host [part=content] ::slotted(ef-item:not([type=header]):not([part=more-results])){color:#404040}:host [part=content] ::slotted(ef-item:not([part=more-results]):not(:first-child)){box-shadow:0 -1px 0 #d9d9d9}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]){background-color:#e6e6e6}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus:not([selected])),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]:not([selected])){color:#0d0d0d}:host [part=more-results]{border-top-color:#d9d9d9;color:#737373;background-color:#fafafa}:host [part=more-results]:focus,:host [part=more-results][highlighted]{background-color:#e6e6e6;color:#737373}:host [part=more-results-keys] kbd{margin-left:4px;margin-right:4px}:host [part=more-results-keys] kbd:first-of-type{margin-left:0}:host [part=more-results-keys] kbd:last-of-type{margin-right:0}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-autosuggest', styles: 'mark{color:#fff;background-color:#334bff}:host{min-height:0;max-height:350px;border:1px solid #595959;background-color:#fff}:host([loading]){min-height:50px;min-width:150px}:host [part=content]{overflow:auto;touch-action:manipulation;scrollbar-color:#999 #f2f2f2;scrollbar-width:thin}:host [part=more-results]{border-top:1px solid #595959}:host [part=more-results] mark{background-color:inherit;font-weight:500}:host [part=more-results-text]{font-size:.76em;font-size:inherit}:host [part=more-results-keys],:host [part=more-results] mark{color:#0d0d0d}:host [part=loader]{top:0;bottom:0;left:0;right:0;position:absolute}:host [part=backdrop]{background-color:#000;opacity:.6;width:100%;height:100%}::-webkit-scrollbar-corner{background:0 0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#999;border-radius:0;border:1px solid transparent}::-webkit-scrollbar-thumb:hover{background:#1429bd}::-webkit-scrollbar-thumb:active{background:#0f1e8a}::-webkit-scrollbar-track{background:#f2f2f2}::-webkit-scrollbar-thumb:horizontal{background-size:auto 6px;background-repeat:repeat-x;background-image:linear-gradient(to bottom,#999,#999);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:hover{background-image:linear-gradient(to bottom,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:horizontal:active{background-image:linear-gradient(to bottom,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical{background-size:6px auto;background-repeat:repeat-y;background-image:linear-gradient(to right,#999,#999);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:hover{background-image:linear-gradient(to right,#1429bd,#1429bd);background-color:transparent;background-position:center}::-webkit-scrollbar-thumb:vertical:active{background-image:linear-gradient(to right,#0f1e8a,#0f1e8a);background-color:transparent;background-position:center}::-webkit-scrollbar-track:horizontal{border-top:1px solid #fff;border-bottom:1px solid #fff}::-webkit-scrollbar-track:vertical{border-left:1px solid #fff;border-right:1px solid #fff}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #f2f2f2;height:16px;width:16px;display:none;border:1px solid #fff}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:hover{background-color:#1429bd;border:1px solid #1429bd}::-webkit-scrollbar-button:active{background-color:#0f1e8a;border:1px solid #fff}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{border-bottom-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#1429bd}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 8px,9.55px 7px,8.55px 6px,7.55px 5px,6.55px 4px,5.55px 5px,4.55px 6px,3.55px 7px,2.55px 8px;border-bottom-color:#fff}::-webkit-scrollbar-button:vertical:end:increment{border-top-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#1429bd}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:10.55px 4px,9.55px 5px,8.55px 6px,7.55px 7px,6.55px 8px,5.55px 7px,4.55px 6px,3.55px 5px,2.55px 4px;border-top-color:#fff}::-webkit-scrollbar-button:horizontal:start:decrement{border-right-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#1429bd}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:7.5px 10.55px,6.5px 9.55px,5.5px 8.55px,4.5px 7.55px,3.5px 6.55px,4.5px 5.55px,5.5px 4.55px,6.5px 3.55px,7.5px 2.55px;border-right-color:#fff}::-webkit-scrollbar-button:horizontal:end:increment{border-left-color:#fff;background-image:linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959),linear-gradient(#595959,#595959);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#1429bd}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-position:5px 10.55px,6px 9.55px,7px 8.55px,8px 7.55px,9px 6.55px,8px 5.55px,7px 4.55px,6px 3.55px,5px 2.55px;border-left-color:#fff}kbd{font-family:inherit;justify-content:center;align-items:center;vertical-align:middle;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.3);min-width:1.33em;display:inline-block;color:#0d0d0d;background-color:#d9d9d9;box-shadow:0 0 0 2px #d9d9d9;font-weight:600;font-family:inherit;font-size:.83333333em;border-radius:1em;padding:0 .5em;height:1.2em;margin-top:-.1em}:host{border-color:#334bff;margin:2px 0}:host [part=content] ::slotted(ef-item:not([part=more-results])){background-color:#f2f2f2}:host [part=content] ::slotted(ef-item:not([type=header]):not([part=more-results])){color:#404040}:host [part=content] ::slotted(ef-item:not([part=more-results]):not(:first-child)){box-shadow:0 -1px 0 #d9d9d9}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]){background-color:#e6e6e6}:host [part=content] ::slotted(ef-item:not([part=more-results]):focus:not([selected])),:host [part=content] ::slotted(ef-item:not([part=more-results])[highlighted]:not([selected])){color:#0d0d0d}:host [part=more-results]{border-top-color:#d9d9d9;color:#737373;background-color:#fafafa}:host [part=more-results]:focus,:host [part=more-results][highlighted]{background-color:#e6e6e6;color:#737373}:host [part=more-results-keys] kbd{margin-left:4px;margin-right:4px}:host [part=more-results-keys] kbd:first-of-type{margin-left:0}:host [part=more-results-keys] kbd:last-of-type{margin-right:0}' }}));
@@ -2,4 +2,4 @@ import '@refinitiv-ui/elements/item/themes/solar/charcoal';
2
2
  import '@refinitiv-ui/elements/overlay/themes/solar/charcoal';
3
3
  import '@refinitiv-ui/elements/loader/themes/solar/charcoal';
4
4
 
5
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-autosuggest', styles: 'kbd{display:inline-flex;border-radius:2px;font-family:inherit;justify-content:center;align-items:center;vertical-align:middle;box-sizing:border-box;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);color:#151516;min-width:1.33em;height:1.33em;padding:0 .3em;font-size:.76em}mark{color:#ee7600;background-color:transparent}:host{min-height:0;max-height:350px;border:1px solid #4a4a52;margin-top:1px;background-color:#151516}:host([loading]){min-height:50px;min-width:150px;min-height:32px}:host [part=content]{overflow:auto;touch-action:manipulation;scrollbar-face-color:#666570;scrollbar-shadow-color:#666570;scrollbar-highlight-color:#666570;scrollbar-arrow-color:#666570;scrollbar-track-color:#2e2e33;scrollbar-3dlight-color:#2e2e33;scrollbar-darkshadow-color:#2e2e33;scrollbar-color:#666570 #2e2e33;background-color:#3c3c42}:host [part=more-results] mark{background-color:inherit;color:#ee7600;font-weight:400}:host [part=more-results-text]{font-size:.76em}:host [part=more-results-keys],:host [part=more-results] mark{color:#ee7600}:host [part=loader]{top:0;bottom:0;left:0;right:0;position:absolute}:host [part=backdrop]{background-color:#000;opacity:.6;width:100%;height:100%}::-webkit-scrollbar{width:13px;height:13px}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #2e2e33;height:12px;width:12px;display:block}::-webkit-scrollbar-thumb{background:#666570;border-radius:7px;border:2px solid #2e2e33}::-webkit-scrollbar-thumb:hover{background:#e2e2e2}::-webkit-scrollbar-thumb:active{background:#f93}::-webkit-scrollbar-track{background:#2e2e33}::-webkit-scrollbar-corner{background:#2e2e33}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 2.5px,5px 3.5px,4px 4.5px,3px 5.5px,2px 6.5px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 2.5px,5px 3.5px,4px 4.5px,3px 5.5px,2px 6.5px}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 2.5px,5px 3.5px,4px 4.5px,3px 5.5px,2px 6.5px}::-webkit-scrollbar-button:vertical:end:increment{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:10px 3.5px,9px 4.5px,8px 5.5px,7px 6.5px,6px 7.5px,5px 6.5px,4px 5.5px,3px 4.5px,2px 3.5px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:10px 3.5px,9px 4.5px,8px 5.5px,7px 6.5px,6px 7.5px,5px 6.5px,4px 5.5px,3px 4.5px,2px 3.5px}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:10px 3.5px,9px 4.5px,8px 5.5px,7px 6.5px,6px 7.5px,5px 6.5px,4px 5.5px,3px 4.5px,2px 3.5px}::-webkit-scrollbar-button:horizontal:start:decrement{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,2.5px 6px,3.5px 5px,4.5px 4px,5.5px 3px,6.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,2.5px 6px,3.5px 5px,4.5px 4px,5.5px 3px,6.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,2.5px 6px,3.5px 5px,4.5px 4px,5.5px 3px,6.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:3.5px 10px,4.5px 9px,5.5px 8px,6.5px 7px,7.5px 6px,6.5px 5px,5.5px 4px,4.5px 3px,3.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:3.5px 10px,4.5px 9px,5.5px 8px,6.5px 7px,7.5px 6px,6.5px 5px,5.5px 4px,4.5px 3px,3.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:3.5px 10px,4.5px 9px,5.5px 8px,6.5px 7px,7.5px 6px,6.5px 5px,5.5px 4px,4.5px 3px,3.5px 2px}:host [part=more-results]{border-top:1px solid #4a4a52;height:32px;font-size:13px}:host [part=more-results],:host [part=more-results]:focus,:host [part=more-results]:hover,:host [part=more-results][highlighted],:host [part=more-results][selected]{color:#46a0f0}:host [part=more-results-keys],:host [part=more-results-keys] kbd{font-size:inherit;color:#46a0f0}:host [part=more-results-keys] kbd{font-size:inherit;background-color:transparent;box-shadow:none;border-radius:0;padding:0;line-height:13px;display:inline}:host [part=more-results-text]{font-size:inherit}:host [part=more-results] mark:after,:host [part=more-results] mark:before{color:#46a0f0;content:"\\""}' }}));
5
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-autosuggest', styles: 'kbd{display:inline-flex;border-radius:2px;font-family:inherit;justify-content:center;align-items:center;vertical-align:middle;box-sizing:border-box;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);color:#151516;min-width:1.33em;height:1.33em;padding:0 .3em;font-size:.76em}mark{color:#ee7600;background-color:transparent}:host{min-height:0;max-height:350px;border:1px solid #4a4a52;margin-top:1px;background-color:#151516}:host([loading]){min-height:50px;min-width:150px;min-height:32px}:host [part=content]{overflow:auto;touch-action:manipulation;scrollbar-color:#666570 #2e2e33;background-color:#3c3c42}:host [part=more-results] mark{background-color:inherit;color:#ee7600;font-weight:400}:host [part=more-results-text]{font-size:.76em}:host [part=more-results-keys],:host [part=more-results] mark{color:#ee7600}:host [part=loader]{top:0;bottom:0;left:0;right:0;position:absolute}:host [part=backdrop]{background-color:#000;opacity:.6;width:100%;height:100%}::-webkit-scrollbar{width:13px;height:13px}::-webkit-scrollbar-button{background:0 0/1px 2px no-repeat #2e2e33;height:12px;width:12px;display:block}::-webkit-scrollbar-thumb{background:#666570;border-radius:7px;border:2px solid #2e2e33}::-webkit-scrollbar-thumb:hover{background:#e2e2e2}::-webkit-scrollbar-thumb:active{background:#f93}::-webkit-scrollbar-track{background:#2e2e33}::-webkit-scrollbar-corner{background:#2e2e33}::-webkit-scrollbar-button:end:decrement,::-webkit-scrollbar-button:start:increment{display:none}::-webkit-scrollbar-button:horizontal{background-size:2px 1px}::-webkit-scrollbar-button:vertical:start:decrement{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 2.5px,5px 3.5px,4px 4.5px,3px 5.5px,2px 6.5px}::-webkit-scrollbar-button:vertical:start:decrement:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 2.5px,5px 3.5px,4px 4.5px,3px 5.5px,2px 6.5px}::-webkit-scrollbar-button:vertical:start:decrement:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:10px 6.5px,9px 5.5px,8px 4.5px,7px 3.5px,6px 2.5px,5px 3.5px,4px 4.5px,3px 5.5px,2px 6.5px}::-webkit-scrollbar-button:vertical:end:increment{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:10px 3.5px,9px 4.5px,8px 5.5px,7px 6.5px,6px 7.5px,5px 6.5px,4px 5.5px,3px 4.5px,2px 3.5px}::-webkit-scrollbar-button:vertical:end:increment:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:10px 3.5px,9px 4.5px,8px 5.5px,7px 6.5px,6px 7.5px,5px 6.5px,4px 5.5px,3px 4.5px,2px 3.5px}::-webkit-scrollbar-button:vertical:end:increment:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:10px 3.5px,9px 4.5px,8px 5.5px,7px 6.5px,6px 7.5px,5px 6.5px,4px 5.5px,3px 4.5px,2px 3.5px}::-webkit-scrollbar-button:horizontal:start:decrement{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,2.5px 6px,3.5px 5px,4.5px 4px,5.5px 3px,6.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,2.5px 6px,3.5px 5px,4.5px 4px,5.5px 3px,6.5px 2px}::-webkit-scrollbar-button:horizontal:start:decrement:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:6.5px 10px,5.5px 9px,4.5px 8px,3.5px 7px,2.5px 6px,3.5px 5px,4.5px 4px,5.5px 3px,6.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment{background-image:linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570),linear-gradient(#666570,#666570);background-position:3.5px 10px,4.5px 9px,5.5px 8px,6.5px 7px,7.5px 6px,6.5px 5px,5.5px 4px,4.5px 3px,3.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:hover{background-image:linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2),linear-gradient(#e2e2e2,#e2e2e2);background-position:3.5px 10px,4.5px 9px,5.5px 8px,6.5px 7px,7.5px 6px,6.5px 5px,5.5px 4px,4.5px 3px,3.5px 2px}::-webkit-scrollbar-button:horizontal:end:increment:active{background-image:linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93),linear-gradient(#f93,#f93);background-position:3.5px 10px,4.5px 9px,5.5px 8px,6.5px 7px,7.5px 6px,6.5px 5px,5.5px 4px,4.5px 3px,3.5px 2px}:host [part=more-results]{border-top:1px solid #4a4a52;height:32px;font-size:13px}:host [part=more-results],:host [part=more-results]:focus,:host [part=more-results]:hover,:host [part=more-results][highlighted],:host [part=more-results][selected]{color:#46a0f0}:host [part=more-results-keys],:host [part=more-results-keys] kbd{font-size:inherit;color:#46a0f0}:host [part=more-results-keys] kbd{font-size:inherit;background-color:transparent;box-shadow:none;border-radius:0;padding:0;line-height:13px;display:inline}:host [part=more-results-text]{font-size:inherit}:host [part=more-results] mark:after,:host [part=more-results] mark:before{color:#46a0f0;content:"\\""}' }}));