@refinitiv-ui/elements 7.0.0 → 7.0.2

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 (215) hide show
  1. package/CHANGELOG.md +195 -449
  2. package/LICENSE +2 -2
  3. package/README.md +12 -10
  4. package/cli.mjs +5 -3
  5. package/lib/accordion/index.d.ts +1 -1
  6. package/lib/accordion/index.js +4 -7
  7. package/lib/appstate-bar/index.d.ts +2 -2
  8. package/lib/appstate-bar/index.js +10 -4
  9. package/lib/autosuggest/index.d.ts +7 -7
  10. package/lib/autosuggest/index.js +80 -80
  11. package/lib/autosuggest/themes/solar/charcoal/index.js +1 -1
  12. package/lib/autosuggest/themes/solar/pearl/index.js +1 -1
  13. package/lib/button/index.js +7 -10
  14. package/lib/button-bar/index.d.ts +1 -1
  15. package/lib/button-bar/index.js +12 -12
  16. package/lib/calendar/index.d.ts +39 -39
  17. package/lib/calendar/index.js +156 -123
  18. package/lib/calendar/utils.js +1 -1
  19. package/lib/canvas/index.d.ts +1 -1
  20. package/lib/canvas/index.js +2 -4
  21. package/lib/card/helpers/types.d.ts +2 -2
  22. package/lib/card/index.d.ts +5 -5
  23. package/lib/card/index.js +34 -28
  24. package/lib/chart/elements/chart.d.ts +4 -4
  25. package/lib/chart/elements/chart.js +39 -33
  26. package/lib/chart/plugins/doughnut-center-label.d.ts +3 -3
  27. package/lib/chart/plugins/doughnut-center-label.js +13 -9
  28. package/lib/checkbox/index.d.ts +1 -1
  29. package/lib/checkbox/index.js +12 -13
  30. package/lib/clock/index.d.ts +55 -55
  31. package/lib/clock/index.js +84 -95
  32. package/lib/clock/themes/halo/dark/index.js +1 -1
  33. package/lib/clock/themes/halo/light/index.js +1 -1
  34. package/lib/clock/themes/solar/charcoal/index.js +1 -1
  35. package/lib/clock/themes/solar/pearl/index.js +1 -1
  36. package/lib/collapse/index.d.ts +1 -1
  37. package/lib/collapse/index.js +27 -18
  38. package/lib/collapse/themes/halo/dark/index.js +1 -1
  39. package/lib/collapse/themes/halo/light/index.js +1 -1
  40. package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
  41. package/lib/color-dialog/elements/color-palettes.js +5 -6
  42. package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
  43. package/lib/color-dialog/elements/grayscale-palettes.js +9 -9
  44. package/lib/color-dialog/elements/palettes.js +5 -4
  45. package/lib/color-dialog/helpers/value-model.js +7 -9
  46. package/lib/color-dialog/index.d.ts +6 -6
  47. package/lib/color-dialog/index.js +53 -37
  48. package/lib/color-picker/index.d.ts +2 -2
  49. package/lib/color-picker/index.js +40 -34
  50. package/lib/combo-box/helpers/filter.d.ts +2 -2
  51. package/lib/combo-box/helpers/types.d.ts +1 -1
  52. package/lib/combo-box/index.d.ts +9 -9
  53. package/lib/combo-box/index.js +61 -55
  54. package/lib/configuration/elements/configuration.js +2 -2
  55. package/lib/counter/index.d.ts +4 -4
  56. package/lib/counter/index.js +9 -7
  57. package/lib/datetime-field/index.d.ts +4 -5
  58. package/lib/datetime-field/index.js +32 -23
  59. package/lib/datetime-field/utils.js +11 -1
  60. package/lib/datetime-picker/index.d.ts +75 -75
  61. package/lib/datetime-picker/index.js +150 -131
  62. package/lib/datetime-picker/locales.js +5 -5
  63. package/lib/datetime-picker/utils.js +9 -9
  64. package/lib/dialog/draggable-element.js +1 -2
  65. package/lib/dialog/index.d.ts +5 -5
  66. package/lib/dialog/index.js +51 -47
  67. package/lib/email-field/index.d.ts +1 -1
  68. package/lib/email-field/index.js +6 -6
  69. package/lib/events.d.ts +1 -1
  70. package/lib/flag/index.d.ts +1 -1
  71. package/lib/flag/index.js +6 -5
  72. package/lib/flag/utils/FlagLoader.js +1 -1
  73. package/lib/header/index.d.ts +1 -1
  74. package/lib/header/index.js +2 -2
  75. package/lib/header/themes/halo/dark/index.js +1 -1
  76. package/lib/header/themes/halo/light/index.js +1 -1
  77. package/lib/header/themes/solar/charcoal/index.js +1 -1
  78. package/lib/header/themes/solar/pearl/index.js +1 -1
  79. package/lib/heatmap/helpers/color.d.ts +1 -1
  80. package/lib/heatmap/helpers/color.js +11 -5
  81. package/lib/heatmap/helpers/track.js +3 -3
  82. package/lib/heatmap/index.d.ts +9 -9
  83. package/lib/heatmap/index.js +51 -42
  84. package/lib/icon/index.d.ts +2 -2
  85. package/lib/icon/index.js +8 -10
  86. package/lib/interactive-chart/helpers/types.d.ts +3 -3
  87. package/lib/interactive-chart/index.d.ts +29 -29
  88. package/lib/interactive-chart/index.js +69 -55
  89. package/lib/item/helpers/types.d.ts +1 -1
  90. package/lib/item/index.d.ts +3 -3
  91. package/lib/item/index.js +24 -20
  92. package/lib/jsx.d.ts +6 -4
  93. package/lib/label/index.d.ts +1 -1
  94. package/lib/label/index.js +10 -7
  95. package/lib/layout/index.d.ts +7 -7
  96. package/lib/layout/index.js +7 -7
  97. package/lib/led-gauge/index.d.ts +1 -1
  98. package/lib/led-gauge/index.js +10 -10
  99. package/lib/list/elements/list.d.ts +3 -3
  100. package/lib/list/elements/list.js +10 -12
  101. package/lib/list/helpers/renderer.js +2 -2
  102. package/lib/list/helpers/types.d.ts +1 -1
  103. package/lib/list/index.d.ts +1 -1
  104. package/lib/list/renderer.d.ts +7 -7
  105. package/lib/loader/index.js +7 -8
  106. package/lib/multi-input/index.d.ts +6 -6
  107. package/lib/multi-input/index.js +39 -45
  108. package/lib/notification/elements/notification-tray.d.ts +2 -2
  109. package/lib/notification/elements/notification-tray.js +3 -3
  110. package/lib/notification/elements/notification.d.ts +2 -2
  111. package/lib/notification/elements/notification.js +14 -13
  112. package/lib/notification/helpers/status.js +1 -1
  113. package/lib/notification/themes/halo/dark/index.js +1 -1
  114. package/lib/notification/themes/halo/light/index.js +1 -1
  115. package/lib/notification/themes/solar/charcoal/index.js +1 -1
  116. package/lib/notification/themes/solar/pearl/index.js +1 -1
  117. package/lib/number-field/index.d.ts +5 -6
  118. package/lib/number-field/index.js +37 -47
  119. package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
  120. package/lib/overlay/elements/overlay.d.ts +2 -2
  121. package/lib/overlay/elements/overlay.js +152 -96
  122. package/lib/overlay/helpers/types.d.ts +1 -1
  123. package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
  124. package/lib/overlay/managers/backdrop-manager.js +2 -2
  125. package/lib/overlay/managers/close-manager.js +2 -1
  126. package/lib/overlay/managers/focus-manager.js +23 -13
  127. package/lib/overlay/managers/interaction-lock-manager.d.ts +4 -4
  128. package/lib/overlay/managers/interaction-lock-manager.js +33 -25
  129. package/lib/overlay/managers/viewport-manager.d.ts +2 -2
  130. package/lib/overlay/managers/viewport-manager.js +3 -2
  131. package/lib/overlay/managers/zindex-manager.js +4 -2
  132. package/lib/overlay-menu/helpers/types.d.ts +2 -2
  133. package/lib/overlay-menu/index.d.ts +1 -1
  134. package/lib/overlay-menu/index.js +44 -33
  135. package/lib/overlay-menu/managers/menu-manager.d.ts +10 -10
  136. package/lib/overlay-menu/managers/menu-manager.js +14 -13
  137. package/lib/pagination/index.d.ts +4 -4
  138. package/lib/pagination/index.js +39 -14
  139. package/lib/panel/index.js +1 -1
  140. package/lib/password-field/index.d.ts +2 -2
  141. package/lib/password-field/index.js +3 -3
  142. package/lib/pill/index.d.ts +1 -1
  143. package/lib/pill/index.js +22 -19
  144. package/lib/progress-bar/index.d.ts +1 -1
  145. package/lib/progress-bar/index.js +38 -37
  146. package/lib/radio-button/index.d.ts +2 -2
  147. package/lib/radio-button/index.js +17 -12
  148. package/lib/radio-button/radio-button-registry.js +8 -5
  149. package/lib/rating/index.d.ts +1 -1
  150. package/lib/rating/index.js +2 -5
  151. package/lib/rating/utils.d.ts +6 -6
  152. package/lib/rating/utils.js +6 -6
  153. package/lib/search-field/index.d.ts +2 -2
  154. package/lib/search-field/index.js +4 -4
  155. package/lib/select/index.d.ts +34 -34
  156. package/lib/select/index.js +68 -81
  157. package/lib/sidebar-layout/index.d.ts +2 -2
  158. package/lib/sidebar-layout/index.js +7 -9
  159. package/lib/slider/index.d.ts +2 -2
  160. package/lib/slider/index.js +57 -45
  161. package/lib/slider/utils.d.ts +10 -10
  162. package/lib/slider/utils.js +10 -10
  163. package/lib/sparkline/index.d.ts +1 -1
  164. package/lib/sparkline/index.js +7 -8
  165. package/lib/swing-gauge/helpers.js +2 -2
  166. package/lib/swing-gauge/index.d.ts +19 -19
  167. package/lib/swing-gauge/index.js +91 -81
  168. package/lib/tab/index.d.ts +1 -1
  169. package/lib/tab/index.js +16 -27
  170. package/lib/tab/themes/halo/dark/index.js +1 -1
  171. package/lib/tab/themes/halo/light/index.js +1 -1
  172. package/lib/tab/themes/solar/charcoal/index.js +1 -1
  173. package/lib/tab/themes/solar/pearl/index.js +1 -1
  174. package/lib/tab-bar/helpers/animate.js +1 -1
  175. package/lib/tab-bar/index.d.ts +1 -1
  176. package/lib/tab-bar/index.js +34 -18
  177. package/lib/tab-bar/themes/halo/dark/index.js +1 -1
  178. package/lib/tab-bar/themes/halo/light/index.js +1 -1
  179. package/lib/text-field/index.d.ts +1 -1
  180. package/lib/text-field/index.js +34 -31
  181. package/lib/time-picker/index.d.ts +6 -6
  182. package/lib/time-picker/index.js +103 -89
  183. package/lib/toggle/index.d.ts +1 -1
  184. package/lib/toggle/index.js +4 -3
  185. package/lib/toggle/themes/halo/dark/index.js +1 -1
  186. package/lib/toggle/themes/halo/light/index.js +1 -1
  187. package/lib/toggle/themes/solar/charcoal/index.js +1 -1
  188. package/lib/toggle/themes/solar/pearl/index.js +1 -1
  189. package/lib/tooltip/elements/title-tooltip.js +2 -2
  190. package/lib/tooltip/index.d.ts +27 -27
  191. package/lib/tooltip/index.js +42 -38
  192. package/lib/tooltip/managers/tooltip-manager.d.ts +1 -1
  193. package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
  194. package/lib/tornado-chart/elements/tornado-chart.js +2 -2
  195. package/lib/tornado-chart/elements/tornado-item.d.ts +2 -2
  196. package/lib/tornado-chart/elements/tornado-item.js +12 -10
  197. package/lib/tree/elements/tree-item.d.ts +3 -3
  198. package/lib/tree/elements/tree-item.js +21 -19
  199. package/lib/tree/elements/tree.d.ts +1 -1
  200. package/lib/tree/elements/tree.js +12 -11
  201. package/lib/tree/helpers/renderer.js +4 -3
  202. package/lib/tree/index.d.ts +1 -1
  203. package/lib/tree/managers/tree-manager.d.ts +1 -1
  204. package/lib/tree/managers/tree-manager.js +17 -18
  205. package/lib/tree/themes/solar/charcoal/index.js +1 -1
  206. package/lib/tree/themes/solar/pearl/index.js +1 -1
  207. package/lib/tree-select/index.d.ts +9 -9
  208. package/lib/tree-select/index.js +91 -82
  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 +17 -17
  215. package/tsconfig.tsbuildinfo +1 -1
@@ -3,15 +3,15 @@ import { css, html } from '@refinitiv-ui/core';
3
3
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
4
  import { property } from '@refinitiv-ui/core/decorators/property.js';
5
5
  import { query } from '@refinitiv-ui/core/decorators/query.js';
6
- import { VERSION } from '../version.js';
7
- import { translate, TranslatePropertyKey } from '@refinitiv-ui/translate';
8
- import { deregister as draggableDeregister, register as draggableRegister } from './draggable-element.js';
9
- import { Overlay } from '../overlay/index.js';
6
+ import '@refinitiv-ui/phrasebook/locale/en/dialog.js';
7
+ import { TranslatePropertyKey, translate } from '@refinitiv-ui/translate';
8
+ import '../button/index.js';
9
+ import '../header/index.js';
10
10
  import '../icon/index.js';
11
+ import { Overlay } from '../overlay/index.js';
11
12
  import '../panel/index.js';
12
- import '../header/index.js';
13
- import '../button/index.js';
14
- import '@refinitiv-ui/phrasebook/locale/en/dialog.js';
13
+ import { VERSION } from '../version.js';
14
+ import { deregister as draggableDeregister, register as draggableRegister } from './draggable-element.js';
15
15
  /**
16
16
  * Popup window, designed to contain and show any HTML content.
17
17
  * It provides modal and dragging functionality,
@@ -94,34 +94,34 @@ let Dialog = class Dialog extends Overlay {
94
94
  return [
95
95
  super.styles,
96
96
  css `
97
- :host {
98
- width: 400px;
99
- display: flex;
100
- flex-flow: column nowrap;
101
- flex-grow: 1;
102
- flex-shrink: 1;
103
- flex-basis: auto;
104
- }
105
- [part=content] {
106
- flex: 1 1 auto;
107
- overflow-x: hidden;
108
- overflow-y: auto;
109
- -webkit-overflow-scrolling: touch;
110
- }
111
- [part=default-buttons] {
112
- display: flex;
113
- justify-content: flex-end;
114
- align-items: center;
115
- }
116
- [part=header],
117
- [part=footer] {
118
- flex: none;
119
- }
120
- [part=close] {
121
- flex: none;
122
- cursor: pointer;
123
- }
124
- `
97
+ :host {
98
+ width: 400px;
99
+ display: flex;
100
+ flex-flow: column nowrap;
101
+ flex-grow: 1;
102
+ flex-shrink: 1;
103
+ flex-basis: auto;
104
+ }
105
+ [part='content'] {
106
+ flex: 1 1 auto;
107
+ overflow-x: hidden;
108
+ overflow-y: auto;
109
+ -webkit-overflow-scrolling: touch;
110
+ }
111
+ [part='default-buttons'] {
112
+ display: flex;
113
+ justify-content: flex-end;
114
+ align-items: center;
115
+ }
116
+ [part='header'],
117
+ [part='footer'] {
118
+ flex: none;
119
+ }
120
+ [part='close'] {
121
+ flex: none;
122
+ cursor: pointer;
123
+ }
124
+ `
125
125
  ];
126
126
  }
127
127
  /**
@@ -142,8 +142,12 @@ let Dialog = class Dialog extends Overlay {
142
142
  */
143
143
  shouldUpdate(changedProperties) {
144
144
  const shouldUpdate = super.shouldUpdate(changedProperties);
145
- return shouldUpdate
146
- || ((changedProperties.has('draggable') || changedProperties.has('header') || changedProperties.has('noInteractionLock') || changedProperties.has(TranslatePropertyKey)) && this.opened);
145
+ return (shouldUpdate ||
146
+ ((changedProperties.has('draggable') ||
147
+ changedProperties.has('header') ||
148
+ changedProperties.has('noInteractionLock') ||
149
+ changedProperties.has(TranslatePropertyKey)) &&
150
+ this.opened));
147
151
  }
148
152
  /**
149
153
  * Compute property values that depend on other properties
@@ -275,7 +279,13 @@ let Dialog = class Dialog extends Overlay {
275
279
  get headerTemplate() {
276
280
  return html `
277
281
  ${this.header === null ? this.t('HEADER') : this.header}
278
- <ef-icon aria-hidden="true" part="close" icon="cross" slot="right" @tap="${this.defaultCancel}"></ef-icon>
282
+ <ef-icon
283
+ aria-hidden="true"
284
+ part="close"
285
+ icon="cross"
286
+ slot="right"
287
+ @tap="${this.defaultCancel}"
288
+ ></ef-icon>
279
289
  `;
280
290
  }
281
291
  /**
@@ -285,15 +295,9 @@ let Dialog = class Dialog extends Overlay {
285
295
  */
286
296
  render() {
287
297
  return html `
288
- <ef-header drag-handle part="header">
289
- ${this.headerTemplate}
290
- </ef-header>
291
- <ef-panel part="content" spacing transparent>
292
- ${this.contentTemplate}
293
- </ef-panel>
294
- <div part="footer">
295
- ${this.footerTemplate}
296
- </div>
298
+ <ef-header drag-handle part="header"> ${this.headerTemplate} </ef-header>
299
+ <ef-panel part="content" spacing transparent> ${this.contentTemplate} </ef-panel>
300
+ <div part="footer">${this.footerTemplate}</div>
297
301
  `;
298
302
  }
299
303
  };
@@ -1,8 +1,8 @@
1
1
  import { JSXInterface } from '../jsx';
2
2
  import { PropertyValues } from '@refinitiv-ui/core';
3
+ import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
3
4
  import '../icon/index.js';
4
5
  import { TextField } from '../text-field/index.js';
5
- import { TemplateMap } from '@refinitiv-ui/core/directives/template-map.js';
6
6
  /**
7
7
  * A form control element for email.
8
8
  *
@@ -63,9 +63,9 @@ let EmailField = class EmailField extends TextField {
63
63
  get decorateInputMap() {
64
64
  return {
65
65
  ...super.decorateInputMap,
66
- 'type': 'email',
67
- 'inputmode': 'email',
68
- 'multiple': this.multiple
66
+ type: 'email',
67
+ inputmode: 'email',
68
+ multiple: this.multiple
69
69
  };
70
70
  }
71
71
  /**
@@ -76,9 +76,9 @@ let EmailField = class EmailField extends TextField {
76
76
  /* c8 ignore start */
77
77
  shouldValidateInput(changedProperties) {
78
78
  // TODO: This validation should be refactored
79
- return changedProperties.has('value')
80
- || changedProperties.has('multiple')
81
- || super.shouldValidateInput(changedProperties);
79
+ return (changedProperties.has('value') ||
80
+ changedProperties.has('multiple') ||
81
+ super.shouldValidateInput(changedProperties));
82
82
  }
83
83
  };
84
84
  __decorate([
package/lib/events.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { TapEvent, ResizeEvent, FocusedChangedEvent } from '@refinitiv-ui/core';
1
+ import type { FocusedChangedEvent, ResizeEvent, TapEvent } from '@refinitiv-ui/core';
2
2
  /**
3
3
  * Dispatched when `opened` state changes
4
4
  * Prevent default to stop opening/closing pipeline
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { BasicElement, CSSResultGroup, TemplateResult, PropertyValues } from '@refinitiv-ui/core';
2
+ import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
3
  export { preload } from './utils/FlagLoader.js';
4
4
  export declare class Flag extends BasicElement {
5
5
  /**
package/lib/flag/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { BasicElement, svg, css } from '@refinitiv-ui/core';
2
+ import { BasicElement, css, svg } from '@refinitiv-ui/core';
3
3
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
4
  import { property } from '@refinitiv-ui/core/decorators/property.js';
5
5
  import { unsafeHTML } from '@refinitiv-ui/core/directives/unsafe-html.js';
@@ -47,10 +47,12 @@ let Flag = class Flag extends BasicElement {
47
47
  return this._flag;
48
48
  }
49
49
  set flag(value) {
50
- if (this.flag !== value) {
50
+ const oldValue = this._flag;
51
+ if (oldValue !== value) {
51
52
  this.deferFlagReady();
52
53
  this._flag = value;
53
54
  void this.setFlagSrc();
55
+ this.requestUpdate('flag', oldValue);
54
56
  }
55
57
  }
56
58
  /**
@@ -130,8 +132,7 @@ let Flag = class Flag extends BasicElement {
130
132
  */
131
133
  setPrefix() {
132
134
  if (!FlagLoader.isPrefixSet) {
133
- const CDNPrefix = this.getComputedVariable('--cdn-prefix')
134
- .replace(/^('|")|('|")$/g, '');
135
+ const CDNPrefix = this.getComputedVariable('--cdn-prefix').replace(/^('|")|('|")$/g, '');
135
136
  FlagLoader.setCdnPrefix(CDNPrefix);
136
137
  }
137
138
  }
@@ -152,7 +153,7 @@ let Flag = class Flag extends BasicElement {
152
153
  }
153
154
  };
154
155
  __decorate([
155
- property({ type: String })
156
+ property({ type: String, reflect: true })
156
157
  ], Flag.prototype, "flag", null);
157
158
  Flag = __decorate([
158
159
  customElement('ef-flag')
@@ -15,5 +15,5 @@ export { flagLoaderInstance as FlagLoader };
15
15
  * @returns Array of promises, which will be resolved with SVG bodies.
16
16
  */
17
17
  export const preload = (...attrs) => {
18
- return attrs.map(flag => flagLoaderInstance.loadSVG(flag));
18
+ return attrs.map((flag) => flagLoaderInstance.loadSVG(flag));
19
19
  };
@@ -1,5 +1,5 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { BasicElement, TemplateResult, CSSResultGroup } from '@refinitiv-ui/core';
2
+ import { BasicElement, CSSResultGroup, TemplateResult } from '@refinitiv-ui/core';
3
3
  /**
4
4
  * Use to identify and separate different sections of a page.
5
5
  * Headers helps to organize the page layout content into
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { BasicElement, html, css } from '@refinitiv-ui/core';
2
+ import { BasicElement, css, html } from '@refinitiv-ui/core';
3
3
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
4
  import { property } from '@refinitiv-ui/core/decorators/property.js';
5
5
  import { VERSION } from '../version.js';
@@ -40,7 +40,7 @@ let Header = class Header extends BasicElement {
40
40
  margin-bottom: 0;
41
41
  vertical-align: middle;
42
42
  }
43
- [part="label"] {
43
+ [part='label'] {
44
44
  text-align: inherit;
45
45
  }
46
46
  `;
@@ -1 +1 @@
1
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#ccc;padding:0 0 0 4px;height:28px;font-size:12px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#333;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="1"]){background-color:#404040}:host([level="3"]){background-color:#262626}:host([level="4"]){background-color:#1a1a1a}' }}));
1
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#ccc;padding:0 0 0 4px;height:28px;font-size:12px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#333;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level=\'1\']){background-color:#404040}:host([level=\'3\']){background-color:#262626}:host([level=\'4\']){background-color:#1a1a1a}' }}));
@@ -1 +1 @@
1
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#0d0d0d;padding:0 0 0 4px;height:28px;font-size:12px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#e6e6e6;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="1"]){background-color:#d9d9d9}:host([level="3"]){background-color:#f2f2f2}:host([level="4"]){background-color:#fafafa}' }}));
1
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#0d0d0d;padding:0 0 0 4px;height:28px;font-size:12px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;background-color:#e6e6e6;text-transform:uppercase}:host [part=spacer]{flex:none;width:4px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level=\'1\']){background-color:#d9d9d9}:host([level=\'3\']){background-color:#f2f2f2}:host([level=\'4\']){background-color:#fafafa}' }}));
@@ -1 +1 @@
1
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#c2c2c2;background-color:#2e2e33}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="3"]) [part=label]{text-transform:none}:host([level="1"]){color:#e2e2e2;background-color:#4a4a52;background-image:linear-gradient(rgba(255,255,255,.03) 0,rgba(255,255,255,0) 100%)}:host([level="3"]){color:#8c8c8c;background-color:#212124}' }}));
1
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#c2c2c2;background-color:#2e2e33}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level=\'3\']) [part=label]{text-transform:none}:host([level=\'1\']){color:#e2e2e2;background-color:#4a4a52;background-image:linear-gradient(rgba(255,255,255,.03) 0,rgba(255,255,255,0) 100%)}:host([level=\'3\']){color:#8c8c8c;background-color:#212124}' }}));
@@ -1 +1 @@
1
- dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#505050;background-color:#d0d4db}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level="3"]) [part=label]{text-transform:none}:host([level="1"]){color:#484848;background-color:#bec3cc;background-image:linear-gradient(rgba(255,255,255,.18) 0,rgba(255,255,255,0) 100%)}:host([level="3"]){color:#6e6e78;background-color:#e4e8ed}' }}));
1
+ dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:14px;font-family:inherit;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;overflow:hidden;position:relative;color:#505050;background-color:#d0d4db}:host [part=spacer]{flex:none;width:5px}:host [part=label]{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:10px;font-weight:600;text-transform:uppercase}:host ::slotted(ef-button[transparent]){color:inherit!important}:host([level=\'3\']) [part=label]{text-transform:none}:host([level=\'1\']){color:#484848;background-color:#bec3cc;background-image:linear-gradient(rgba(255,255,255,.18) 0,rgba(255,255,255,0) 100%)}:host([level=\'3\']){color:#6e6e78;background-color:#e4e8ed}' }}));
@@ -1,5 +1,5 @@
1
- import { ColorCommonInstance } from '@refinitiv-ui/utils/color.js';
2
1
  import { interpolate } from 'd3-interpolate';
2
+ import { ColorCommonInstance } from '@refinitiv-ui/utils/color.js';
3
3
  /**
4
4
  * Check if the color is a light color
5
5
  * @param col color to check
@@ -1,6 +1,6 @@
1
1
  /* c8 ignore start */
2
- import { color, rgb, hsl } from '@refinitiv-ui/utils/color.js';
3
2
  import { interpolate } from 'd3-interpolate';
3
+ import { color, hsl, rgb } from '@refinitiv-ui/utils/color.js';
4
4
  /**
5
5
  * Check if the color is a light color
6
6
  * @param col color to check
@@ -8,7 +8,7 @@ import { interpolate } from 'd3-interpolate';
8
8
  */
9
9
  const isLight = (col) => {
10
10
  const { r, g, b } = rgb(col);
11
- return ((r * 299 + g * 587 + b * 114) / 1000) > 128;
11
+ return (r * 299 + g * 587 + b * 114) / 1000 > 128;
12
12
  };
13
13
  /**
14
14
  * Brightens a color
@@ -58,9 +58,15 @@ const blend = (color1, color2, backgroundColor, amount) => {
58
58
  mixBlueComponent = !mixBlueComponent;
59
59
  }
60
60
  const factor = 1 - Math.abs(amount);
61
- const red = mixRedComponent ? Math.round(interpolate(primaryColor.r, secondaryColor.r)(factor)) : primaryColor.r;
62
- const green = mixGreenComponent ? Math.round(interpolate(primaryColor.g, secondaryColor.g)(factor)) : primaryColor.g;
63
- const blue = mixBlueComponent ? Math.round(interpolate(primaryColor.b, secondaryColor.b)(factor)) : primaryColor.b;
61
+ const red = mixRedComponent
62
+ ? Math.round(interpolate(primaryColor.r, secondaryColor.r)(factor))
63
+ : primaryColor.r;
64
+ const green = mixGreenComponent
65
+ ? Math.round(interpolate(primaryColor.g, secondaryColor.g)(factor))
66
+ : primaryColor.g;
67
+ const blue = mixBlueComponent
68
+ ? Math.round(interpolate(primaryColor.b, secondaryColor.b)(factor))
69
+ : primaryColor.b;
64
70
  return color(`rgb(${red}, ${green}, ${blue})`)?.toString() || '';
65
71
  };
66
72
  export { blend, brighten, darken, isLight, interpolate };
@@ -67,10 +67,10 @@ export class Track {
67
67
  this._laneStarts[0] = 0;
68
68
  if (trackSize && laneCount) {
69
69
  let start = 0;
70
- const laneSize = (trackSize / laneCount);
70
+ const laneSize = trackSize / laneCount;
71
71
  for (let i = 0; i < laneCount; ++i) {
72
72
  const end = start + laneSize;
73
- this._laneStarts[i] = (start | 0);
73
+ this._laneStarts[i] = start | 0;
74
74
  this._laneSizes[i] = (end | 0) - (start | 0);
75
75
  start = end;
76
76
  }
@@ -121,7 +121,7 @@ export class Track {
121
121
  */
122
122
  getContentSize(index) {
123
123
  const contentSize = this.getLaneSize(index) - this._margin - this._margin;
124
- return (contentSize > 0) ? contentSize : 0;
124
+ return contentSize > 0 ? contentSize : 0;
125
125
  }
126
126
  /**
127
127
  * Get content start position
@@ -1,8 +1,8 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { ResponsiveElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
2
+ import { CSSResultGroup, PropertyValues, ResponsiveElement, TemplateResult } from '@refinitiv-ui/core';
3
3
  import '../canvas/index.js';
4
4
  import '../tooltip/index.js';
5
- import type { HeatmapXAxis, HeatmapCell, HeatmapConfig, HeatmapYAxis, HeatmapCustomisableProperties, HeatmapTooltipCallback, HeatmapRenderCallback } from './helpers/types';
5
+ import type { HeatmapCell, HeatmapConfig, HeatmapCustomisableProperties, HeatmapRenderCallback, HeatmapTooltipCallback, HeatmapXAxis, HeatmapYAxis } from './helpers/types';
6
6
  export type { HeatmapXAxis, HeatmapCell, HeatmapConfig, HeatmapYAxis, HeatmapCustomisableProperties, HeatmapTooltipCallback, HeatmapRenderCallback };
7
7
  /**
8
8
  * A graphical representation of data where the individual
@@ -239,9 +239,9 @@ export declare class Heatmap extends ResponsiveElement {
239
239
  */
240
240
  private initialiseRowTrack;
241
241
  /**
242
- * Initialize column track
243
- * @returns {void}
244
- */
242
+ * Initialize column track
243
+ * @returns {void}
244
+ */
245
245
  private initialiseColumnTrack;
246
246
  /**
247
247
  * Hit testing on heatmap
@@ -404,10 +404,10 @@ export declare class Heatmap extends ResponsiveElement {
404
404
  */
405
405
  private paintAllCellBackground;
406
406
  /**
407
- * Paints a single cell background colour
408
- * @param {HeatmapCell} cell cell to paint
409
- * @returns {void}
410
- */
407
+ * Paints a single cell background colour
408
+ * @param {HeatmapCell} cell cell to paint
409
+ * @returns {void}
410
+ */
411
411
  private paintCellBackground;
412
412
  /**
413
413
  * Construct and renders x-axis
@@ -1,16 +1,16 @@
1
1
  import { __decorate } from "tslib";
2
- import { ResponsiveElement, html, css } from '@refinitiv-ui/core';
2
+ import { ResponsiveElement, css, html } from '@refinitiv-ui/core';
3
3
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
4
4
  import { property } from '@refinitiv-ui/core/decorators/property.js';
5
5
  import { query } from '@refinitiv-ui/core/decorators/query.js';
6
- import { VERSION } from '../version.js';
7
6
  import { MicroTaskRunner } from '@refinitiv-ui/utils/async.js';
8
7
  import { color } from '@refinitiv-ui/utils/color.js';
9
8
  import '../canvas/index.js';
10
9
  import '../tooltip/index.js';
10
+ import { VERSION } from '../version.js';
11
+ import { blend, brighten, darken, interpolate, isLight } from './helpers/color.js';
12
+ import { MIN_FONT_SIZE, getMaximumTextWidth, getResponsiveFontSize } from './helpers/text.js';
11
13
  import { Track } from './helpers/track.js';
12
- import { blend, brighten, darken, isLight, interpolate } from './helpers/color.js';
13
- import { getResponsiveFontSize, getMaximumTextWidth, MIN_FONT_SIZE } from './helpers/text.js';
14
14
  const CELL_PADDING = 0.12;
15
15
  const CELL_MAX_TEXT_WIDTH = 1 - CELL_PADDING;
16
16
  const DEFAULT_CANVAS_RATIO = 0.75; // ratio — 4:3
@@ -37,13 +37,13 @@ let Heatmap = class Heatmap extends ResponsiveElement {
37
37
  :host {
38
38
  display: block;
39
39
  }
40
- #container{
40
+ #container {
41
41
  width: 100%;
42
42
  height: 100%;
43
43
  display: flex;
44
44
  }
45
45
  #canvas-container {
46
- min-width:0;
46
+ min-width: 0;
47
47
  display: flex;
48
48
  width: 100%;
49
49
  flex-direction: column;
@@ -52,14 +52,14 @@ let Heatmap = class Heatmap extends ResponsiveElement {
52
52
  #tooltip-overlay {
53
53
  position: absolute;
54
54
  }
55
- [part=canvas] {
55
+ [part='canvas'] {
56
56
  flex-grow: 1;
57
57
  }
58
- [part=x-axis] {
58
+ [part='x-axis'] {
59
59
  display: flex;
60
60
  align-items: center;
61
61
  }
62
- [part=y-axis]{
62
+ [part='y-axis'] {
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  }
@@ -133,7 +133,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
133
133
  */
134
134
  get columnCount() {
135
135
  let result = 0;
136
- this.rows?.forEach(columns => {
136
+ this.rows?.forEach((columns) => {
137
137
  if (columns.length > result) {
138
138
  result = columns.length;
139
139
  }
@@ -268,14 +268,14 @@ let Heatmap = class Heatmap extends ResponsiveElement {
268
268
  this.labelHiddenChanged();
269
269
  }
270
270
  // Re-paints whole canvas when at least one of the following properties changes
271
- if (changedProperties.has('config')
272
- || changedProperties.has('blend')
273
- || changedProperties.has('minPoint')
274
- || changedProperties.has('midPoint')
275
- || changedProperties.has('maxPoint')
276
- || changedProperties.has('saturation')
277
- || changedProperties.has('axisHidden')
278
- || changedProperties.has('labelWidth')) {
271
+ if (changedProperties.has('config') ||
272
+ changedProperties.has('blend') ||
273
+ changedProperties.has('minPoint') ||
274
+ changedProperties.has('midPoint') ||
275
+ changedProperties.has('maxPoint') ||
276
+ changedProperties.has('saturation') ||
277
+ changedProperties.has('axisHidden') ||
278
+ changedProperties.has('labelWidth')) {
279
279
  this.prepareAndPaint();
280
280
  }
281
281
  }
@@ -293,7 +293,8 @@ let Heatmap = class Heatmap extends ResponsiveElement {
293
293
  */
294
294
  /* c8 ignore start */
295
295
  onMouseMove(event) {
296
- if (event.composedPath().includes(this.canvas) || this.tooltipCallback && this.tooltipOverlay === event.target) {
296
+ if (event.composedPath().includes(this.canvas) ||
297
+ (this.tooltipCallback && this.tooltipOverlay === event.target)) {
297
298
  this.hoverCell = this.hitTest(event);
298
299
  }
299
300
  else {
@@ -350,9 +351,9 @@ let Heatmap = class Heatmap extends ResponsiveElement {
350
351
  this.rowTrack.margin = this.cellMargin;
351
352
  }
352
353
  /**
353
- * Initialize column track
354
- * @returns {void}
355
- */
354
+ * Initialize column track
355
+ * @returns {void}
356
+ */
356
357
  initialiseColumnTrack() {
357
358
  this.colTrack.init(this.offsetWidth, this.columnCount);
358
359
  this.colTrack.margin = this.cellMargin;
@@ -644,7 +645,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
644
645
  const label = typeof cell.customLabel === 'string' ? cell.customLabel : cell.label;
645
646
  if (this.canvasContext) {
646
647
  this.canvasContext.fillStyle = cell.customForegroundColor || cell.foregroundColor;
647
- this.canvasContext.fillText(label || '', cell.x + cell.width / 2, (cell.y + 1 + cell.height / 2) + margin);
648
+ this.canvasContext.fillText(label || '', cell.x + cell.width / 2, cell.y + 1 + cell.height / 2 + margin);
648
649
  }
649
650
  }
650
651
  /**
@@ -669,12 +670,15 @@ let Heatmap = class Heatmap extends ResponsiveElement {
669
670
  canvas.textAlign = 'center';
670
671
  canvas.textBaseline = 'middle';
671
672
  canvas.font = `${fontSize}px ${fontFamily}`;
672
- let isWithinMinCellWidth = ((this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth) <= CELL_MAX_TEXT_WIDTH;
673
+ let isWithinMinCellWidth = (this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth <=
674
+ CELL_MAX_TEXT_WIDTH;
673
675
  // Tries to get the largest possible font size that is within `CELL_MAX_TEXT_WIDTH`
674
676
  if (!isWithinMinCellWidth && fontSize !== MIN_FONT_SIZE) {
675
677
  while (!isWithinMinCellWidth) {
676
678
  canvas.font = `${fontSize}px ${fontFamily}`; // Should assigned new font size to canvas before calculated again.
677
- isWithinMinCellWidth = ((this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth) <= CELL_MAX_TEXT_WIDTH;
679
+ isWithinMinCellWidth =
680
+ (this.labelWidth || getMaximumTextWidth(canvas, this.cells, this.hasCellHeader)) / contentWidth <=
681
+ CELL_MAX_TEXT_WIDTH;
678
682
  // Stops when reaches minimum font-size
679
683
  if (fontSize === MIN_FONT_SIZE) {
680
684
  break;
@@ -684,7 +688,9 @@ let Heatmap = class Heatmap extends ResponsiveElement {
684
688
  }
685
689
  }
686
690
  }
687
- const isWithinMinCellHeight = this.hasCellHeader ? (fontSize * 2) < contentHeight : fontSize < contentHeight;
691
+ const isWithinMinCellHeight = this.hasCellHeader
692
+ ? fontSize * 2 < contentHeight
693
+ : fontSize < contentHeight;
688
694
  this.contentWithinCellBoundary = isWithinMinCellWidth && isWithinMinCellHeight;
689
695
  return this.contentWithinCellBoundary;
690
696
  }
@@ -738,10 +744,10 @@ let Heatmap = class Heatmap extends ResponsiveElement {
738
744
  }
739
745
  const saturateRatio = 1 - saturation;
740
746
  if (value > this.midPoint) {
741
- return ((value - this.midPoint) / (this.maxPoint - this.midPoint) * saturateRatio) + saturation;
747
+ return ((value - this.midPoint) / (this.maxPoint - this.midPoint)) * saturateRatio + saturation;
742
748
  }
743
749
  else {
744
- return ((value - this.midPoint) / (this.midPoint - this.minPoint) * saturateRatio) - saturation;
750
+ return ((value - this.midPoint) / (this.midPoint - this.minPoint)) * saturateRatio - saturation;
745
751
  }
746
752
  }
747
753
  /* c8 ignore stop */
@@ -795,7 +801,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
795
801
  const margin = this.labelHidden ? 0 : this.calculateHeaderMargin(cell.height);
796
802
  this.canvasContext.font = 'bold ' + labelFontStyle;
797
803
  this.canvasContext.fillStyle = cell.customForegroundColor || cell.foregroundColor;
798
- this.canvasContext.fillText(cell.header || '', cell.x + cell.width / 2, (cell.y + 1 + cell.height / 2) - margin);
804
+ this.canvasContext.fillText(cell.header || '', cell.x + cell.width / 2, cell.y + 1 + cell.height / 2 - margin);
799
805
  // Reverts font style to paint label correctly
800
806
  this.canvasContext.font = labelFontStyle;
801
807
  }
@@ -836,10 +842,10 @@ let Heatmap = class Heatmap extends ResponsiveElement {
836
842
  }
837
843
  }
838
844
  /**
839
- * Paints a single cell background colour
840
- * @param {HeatmapCell} cell cell to paint
841
- * @returns {void}
842
- */
845
+ * Paints a single cell background colour
846
+ * @param {HeatmapCell} cell cell to paint
847
+ * @returns {void}
848
+ */
843
849
  paintCellBackground(cell) {
844
850
  if (this.canvasContext) {
845
851
  this.canvasContext.fillStyle = cell.customBackgroundColor || cell.backgroundColor;
@@ -960,7 +966,7 @@ let Heatmap = class Heatmap extends ResponsiveElement {
960
966
  yAxisElement.removeChild(yAxisElement.lastChild);
961
967
  }
962
968
  }
963
- this.rowTrack.init(this.offsetHeight - (this.crossBox.offsetHeight + (this.cellMargin * 2)), this.rowCount);
969
+ this.rowTrack.init(this.offsetHeight - (this.crossBox.offsetHeight + this.cellMargin * 2), this.rowCount);
964
970
  // Clear yAxis element before re-create yAxis
965
971
  while (yAxisElement.children.length > laneCount) {
966
972
  if (yAxisElement.lastChild) {
@@ -1026,20 +1032,23 @@ let Heatmap = class Heatmap extends ResponsiveElement {
1026
1032
  render() {
1027
1033
  return html `
1028
1034
  <div id="container" @mousemove=${this.onMouseMove} @mouseleave=${this.onMouseLeave}>
1029
- ${this.config?.yAxis && !this.axisHidden ? html `
1030
- <div id="y-axis-container">
1031
- <div part="cross-box"></div>
1032
- <div part="y-axis"></div>
1033
- </div>` : null}
1035
+ ${this.config?.yAxis && !this.axisHidden
1036
+ ? html ` <div id="y-axis-container">
1037
+ <div part="cross-box"></div>
1038
+ <div part="y-axis"></div>
1039
+ </div>`
1040
+ : null}
1034
1041
  <div id="canvas-container">
1035
1042
  ${this.config?.xAxis && !this.axisHidden ? html `<div part="x-axis"></div>` : null}
1036
1043
  <ef-canvas part="canvas" @resize=${this.onCanvasResize}></ef-canvas>
1037
1044
  ${this.tooltipCallback ? html `<div id="tooltip-overlay"></div>` : null}
1038
1045
  </div>
1039
1046
  </div>
1040
- ${this.tooltipCallback ? html `
1041
- <ef-tooltip .condition=${this.tooltipCondition} .renderer=${this.tooltipRenderer}></ef-tooltip>
1042
- ` : null}
1047
+ ${this.tooltipCallback
1048
+ ? html `
1049
+ <ef-tooltip .condition=${this.tooltipCondition} .renderer=${this.tooltipRenderer}></ef-tooltip>
1050
+ `
1051
+ : null}
1043
1052
  `;
1044
1053
  }
1045
1054
  };
@@ -1,6 +1,6 @@
1
1
  import { JSXInterface } from '../jsx';
2
- import { BasicElement, CSSResultGroup, TemplateResult, PropertyValues } from '@refinitiv-ui/core';
3
- import { type Config } from '../configuration/index.js';
2
+ import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
3
+ import type { Config } from '../configuration/index.js';
4
4
  export declare class Icon extends BasicElement {
5
5
  /**
6
6
  * Element version number