@refinitiv-ui/elements 6.5.3 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/lib/accordion/index.js +1 -3
- package/lib/appstate-bar/custom-elements.json +2 -2
- package/lib/appstate-bar/custom-elements.md +4 -4
- package/lib/appstate-bar/index.d.ts +2 -2
- package/lib/appstate-bar/index.js +3 -11
- package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
- package/lib/appstate-bar/themes/halo/light/index.js +1 -1
- package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
- package/lib/autosuggest/custom-elements.json +8 -8
- package/lib/autosuggest/custom-elements.md +8 -8
- package/lib/autosuggest/helpers/types.d.ts +18 -18
- package/lib/autosuggest/index.d.ts +8 -8
- package/lib/autosuggest/index.js +79 -81
- package/lib/button/custom-elements.json +1 -1
- package/lib/button/custom-elements.md +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/button/index.js +2 -4
- package/lib/button/themes/halo/dark/index.js +2 -1
- package/lib/button/themes/halo/light/index.js +2 -1
- package/lib/button/themes/solar/charcoal/index.js +2 -1
- package/lib/button/themes/solar/pearl/index.js +2 -1
- package/lib/button-bar/index.js +1 -3
- package/lib/calendar/custom-elements.json +2 -2
- package/lib/calendar/custom-elements.md +4 -4
- package/lib/calendar/index.d.ts +2 -2
- package/lib/calendar/index.js +3 -5
- package/lib/calendar/themes/halo/dark/index.js +1 -1
- package/lib/calendar/themes/halo/light/index.js +1 -1
- package/lib/calendar/themes/solar/charcoal/index.js +1 -1
- package/lib/calendar/themes/solar/pearl/index.js +1 -1
- package/lib/calendar/types.d.ts +5 -5
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/canvas/custom-elements.json +1 -1
- package/lib/canvas/custom-elements.md +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +9 -11
- package/lib/card/custom-elements.json +1 -1
- package/lib/card/custom-elements.md +3 -3
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -4
- package/lib/chart/custom-elements.json +4 -0
- package/lib/chart/custom-elements.md +1 -0
- package/lib/chart/helpers/merge.d.ts +2 -2
- package/lib/chart/helpers/types.d.ts +4 -4
- package/lib/chart/index.d.ts +1 -1
- package/lib/chart/index.js +1 -3
- package/lib/chart/themes/halo/dark/index.js +1 -1
- package/lib/chart/themes/halo/light/index.js +1 -1
- package/lib/chart/themes/solar/charcoal/index.js +1 -1
- package/lib/chart/themes/solar/pearl/index.js +1 -1
- package/lib/checkbox/custom-elements.json +1 -1
- package/lib/checkbox/custom-elements.md +3 -3
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +2 -4
- package/lib/clock/custom-elements.json +2 -2
- package/lib/clock/custom-elements.md +2 -2
- package/lib/clock/index.d.ts +2 -2
- package/lib/clock/index.js +3 -5
- package/lib/clock/utils/TickManager.d.ts +1 -1
- package/lib/collapse/custom-elements.json +1 -1
- package/lib/collapse/custom-elements.md +3 -3
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +2 -4
- package/lib/color-dialog/custom-elements.json +2 -2
- package/lib/color-dialog/custom-elements.md +4 -4
- package/lib/color-dialog/helpers/value-model.js +3 -1
- package/lib/color-dialog/index.d.ts +2 -2
- package/lib/color-dialog/index.js +3 -5
- package/lib/color-picker/custom-elements.json +1 -1
- package/lib/color-picker/custom-elements.md +3 -3
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/index.js +2 -4
- package/lib/combo-box/custom-elements.json +3 -6
- package/lib/combo-box/custom-elements.md +5 -6
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/index.d.ts +3 -12
- package/lib/combo-box/index.js +7 -20
- package/lib/combo-box/themes/halo/dark/index.js +2 -1
- package/lib/combo-box/themes/halo/light/index.js +2 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +2 -1
- package/lib/combo-box/themes/solar/pearl/index.js +2 -1
- package/lib/counter/index.js +1 -3
- package/lib/counter/themes/halo/dark/index.js +2 -1
- package/lib/counter/themes/halo/light/index.js +2 -1
- package/lib/counter/themes/solar/charcoal/index.js +2 -1
- package/lib/counter/themes/solar/pearl/index.js +2 -1
- package/lib/datetime-field/types.d.ts +3 -3
- package/lib/datetime-picker/custom-elements.json +4 -4
- package/lib/datetime-picker/custom-elements.md +4 -4
- package/lib/datetime-picker/index.d.ts +4 -4
- package/lib/datetime-picker/index.js +5 -7
- package/lib/datetime-picker/themes/halo/dark/index.js +2 -1
- package/lib/datetime-picker/themes/halo/light/index.js +2 -1
- package/lib/datetime-picker/themes/solar/charcoal/index.js +2 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +2 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/dialog/custom-elements.json +1 -1
- package/lib/dialog/custom-elements.md +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +2 -4
- package/lib/email-field/custom-elements.json +3 -3
- package/lib/email-field/custom-elements.md +5 -5
- package/lib/email-field/index.d.ts +3 -3
- package/lib/email-field/index.js +4 -6
- package/lib/email-field/themes/halo/dark/index.js +2 -1
- package/lib/email-field/themes/halo/light/index.js +2 -1
- package/lib/email-field/themes/solar/charcoal/index.js +2 -1
- package/lib/email-field/themes/solar/pearl/index.js +2 -1
- package/lib/events.d.ts +13 -13
- package/lib/flag/index.js +1 -3
- package/lib/header/index.js +1 -3
- package/lib/header/themes/halo/dark/index.js +1 -1
- package/lib/header/themes/halo/light/index.js +1 -1
- package/lib/header/themes/solar/charcoal/index.js +1 -1
- package/lib/header/themes/solar/pearl/index.js +1 -1
- package/lib/heatmap/helpers/types.d.ts +7 -7
- package/lib/heatmap/index.js +118 -120
- package/lib/icon/index.js +1 -3
- package/lib/interactive-chart/custom-elements.json +1 -1
- package/lib/interactive-chart/custom-elements.md +3 -3
- package/lib/interactive-chart/helpers/merge.d.ts +2 -2
- package/lib/interactive-chart/helpers/types.d.ts +7 -7
- package/lib/interactive-chart/index.d.ts +1 -1
- package/lib/interactive-chart/index.js +2 -4
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +2 -2
- package/lib/item/helpers/types.d.ts +2 -2
- package/lib/item/index.d.ts +2 -1
- package/lib/item/index.js +3 -4
- package/lib/label/index.js +1 -3
- package/lib/layout/index.js +1 -3
- package/lib/led-gauge/index.js +8 -10
- package/lib/list/custom-elements.json +1 -1
- package/lib/list/custom-elements.md +3 -3
- package/lib/list/elements/list.d.ts +1 -1
- package/lib/list/elements/list.js +5 -8
- package/lib/list/helpers/renderer.d.ts +0 -4
- package/lib/list/helpers/renderer.js +5 -5
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/loader/index.js +1 -3
- package/lib/multi-input/custom-elements.json +5 -5
- package/lib/multi-input/custom-elements.md +5 -5
- package/lib/multi-input/helpers/types.d.ts +3 -3
- package/lib/multi-input/index.d.ts +5 -17
- package/lib/multi-input/index.js +6 -20
- package/lib/multi-input/themes/halo/dark/index.js +1 -1
- package/lib/multi-input/themes/halo/light/index.js +1 -1
- package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
- package/lib/multi-input/themes/solar/pearl/index.js +1 -1
- package/lib/notification/custom-elements.json +2 -2
- package/lib/notification/custom-elements.md +4 -4
- package/lib/notification/elements/notification-tray.js +1 -3
- package/lib/notification/elements/notification.d.ts +2 -2
- package/lib/notification/elements/notification.js +3 -5
- package/lib/notification/helpers/types.d.ts +2 -2
- package/lib/number-field/custom-elements.json +2 -2
- package/lib/number-field/custom-elements.md +4 -4
- package/lib/number-field/index.d.ts +3 -3
- package/lib/number-field/index.js +3 -5
- package/lib/number-field/themes/halo/dark/index.js +2 -1
- package/lib/number-field/themes/halo/light/index.js +2 -1
- package/lib/number-field/themes/solar/charcoal/index.js +2 -1
- package/lib/number-field/themes/solar/pearl/index.js +2 -1
- package/lib/overlay/custom-elements.json +6 -9
- package/lib/overlay/custom-elements.md +7 -8
- package/lib/overlay/elements/overlay.d.ts +7 -7
- package/lib/overlay/elements/overlay.js +10 -19
- package/lib/overlay/helpers/types.d.ts +13 -13
- package/lib/overlay/managers/close-manager.d.ts +1 -1
- package/lib/overlay/managers/zindex-manager.d.ts +1 -1
- package/lib/overlay-menu/custom-elements.json +2 -2
- package/lib/overlay-menu/custom-elements.md +2 -2
- package/lib/overlay-menu/helpers/types.d.ts +2 -2
- package/lib/overlay-menu/index.d.ts +2 -2
- package/lib/overlay-menu/index.js +30 -32
- package/lib/pagination/custom-elements.json +1 -1
- package/lib/pagination/custom-elements.md +3 -3
- package/lib/pagination/index.d.ts +1 -2
- package/lib/pagination/index.js +2 -5
- package/lib/pagination/themes/halo/dark/index.js +1 -1
- package/lib/pagination/themes/halo/light/index.js +1 -1
- package/lib/pagination/themes/solar/charcoal/index.js +1 -1
- package/lib/pagination/themes/solar/pearl/index.js +1 -1
- package/lib/panel/index.js +1 -3
- package/lib/password-field/custom-elements.json +2 -6
- package/lib/password-field/custom-elements.md +4 -5
- package/lib/password-field/index.d.ts +2 -3
- package/lib/password-field/index.js +3 -6
- package/lib/password-field/themes/halo/dark/index.js +2 -1
- package/lib/password-field/themes/halo/light/index.js +2 -1
- package/lib/password-field/themes/solar/charcoal/index.js +2 -1
- package/lib/password-field/themes/solar/pearl/index.js +2 -1
- package/lib/pill/custom-elements.json +1 -1
- package/lib/pill/custom-elements.md +3 -3
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +2 -4
- package/lib/pill/themes/halo/dark/index.js +2 -1
- package/lib/pill/themes/halo/light/index.js +2 -1
- package/lib/pill/themes/solar/charcoal/index.js +2 -1
- package/lib/pill/themes/solar/pearl/index.js +2 -1
- package/lib/progress-bar/index.js +1 -3
- package/lib/radio-button/custom-elements.json +1 -1
- package/lib/radio-button/custom-elements.md +3 -3
- package/lib/radio-button/index.d.ts +1 -1
- package/lib/radio-button/index.js +2 -4
- package/lib/rating/custom-elements.json +1 -1
- package/lib/rating/custom-elements.md +3 -3
- package/lib/rating/index.d.ts +1 -1
- package/lib/rating/index.js +2 -4
- package/lib/search-field/custom-elements.json +3 -3
- package/lib/search-field/custom-elements.md +5 -5
- package/lib/search-field/index.d.ts +3 -3
- package/lib/search-field/index.js +4 -6
- package/lib/search-field/themes/halo/dark/index.js +2 -1
- package/lib/search-field/themes/halo/light/index.js +2 -1
- package/lib/search-field/themes/solar/charcoal/index.js +2 -1
- package/lib/search-field/themes/solar/pearl/index.js +2 -1
- package/lib/select/custom-elements.json +2 -2
- package/lib/select/custom-elements.md +4 -4
- package/lib/select/helpers/types.d.ts +2 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +4 -5
- package/lib/select/themes/halo/dark/index.js +2 -1
- package/lib/select/themes/halo/light/index.js +2 -1
- package/lib/select/themes/solar/charcoal/index.js +2 -1
- package/lib/select/themes/solar/pearl/index.js +2 -1
- package/lib/sidebar-layout/index.js +1 -3
- package/lib/slider/custom-elements.json +3 -3
- package/lib/slider/custom-elements.md +5 -5
- package/lib/slider/index.d.ts +3 -3
- package/lib/slider/index.js +100 -102
- package/lib/sparkline/index.js +1 -3
- package/lib/swing-gauge/index.js +1 -3
- package/lib/swing-gauge/types.d.ts +1 -1
- package/lib/tab/custom-elements.json +1 -1
- package/lib/tab/custom-elements.md +3 -3
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +2 -4
- package/lib/tab/themes/halo/dark/index.js +1 -1
- package/lib/tab/themes/halo/light/index.js +1 -1
- package/lib/tab/themes/solar/charcoal/index.js +1 -1
- package/lib/tab/themes/solar/pearl/index.js +1 -1
- package/lib/tab-bar/custom-elements.json +1 -1
- package/lib/tab-bar/custom-elements.md +3 -3
- package/lib/tab-bar/index.d.ts +1 -1
- package/lib/tab-bar/index.js +2 -4
- package/lib/text-field/custom-elements.json +3 -3
- package/lib/text-field/custom-elements.md +5 -5
- package/lib/text-field/index.d.ts +3 -3
- package/lib/text-field/index.js +4 -6
- package/lib/text-field/themes/halo/dark/index.js +2 -1
- package/lib/text-field/themes/halo/light/index.js +2 -1
- package/lib/text-field/themes/solar/charcoal/index.js +2 -1
- package/lib/text-field/themes/solar/pearl/index.js +2 -1
- package/lib/time-picker/custom-elements.json +1 -1
- package/lib/time-picker/custom-elements.md +3 -3
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +2 -4
- package/lib/time-picker/themes/halo/dark/index.js +2 -1
- package/lib/time-picker/themes/halo/light/index.js +2 -1
- package/lib/time-picker/themes/solar/charcoal/index.js +2 -1
- package/lib/time-picker/themes/solar/pearl/index.js +2 -1
- package/lib/toggle/custom-elements.json +1 -1
- package/lib/toggle/custom-elements.md +3 -3
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +2 -4
- package/lib/toggle/themes/halo/dark/index.js +1 -1
- package/lib/toggle/themes/halo/light/index.js +1 -1
- package/lib/toggle/themes/solar/charcoal/index.js +1 -1
- package/lib/toggle/themes/solar/pearl/index.js +1 -1
- package/lib/tooltip/helpers/types.d.ts +10 -10
- package/lib/tooltip/index.js +1 -3
- package/lib/tornado-chart/elements/tornado-chart.js +1 -3
- package/lib/tornado-chart/themes/halo/dark/index.js +1 -1
- package/lib/tornado-chart/themes/halo/light/index.js +1 -1
- package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
- package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
- package/lib/tree/custom-elements.json +2 -2
- package/lib/tree/custom-elements.md +2 -2
- package/lib/tree/elements/tree-item.js +1 -3
- package/lib/tree/elements/tree.d.ts +2 -2
- package/lib/tree/elements/tree.js +2 -2
- package/lib/tree/helpers/renderer.d.ts +0 -4
- package/lib/tree/helpers/renderer.js +5 -5
- package/lib/tree/helpers/types.d.ts +2 -2
- package/lib/tree-select/custom-elements.json +7 -7
- package/lib/tree-select/custom-elements.md +7 -7
- package/lib/tree-select/helpers/types.d.ts +2 -2
- package/lib/tree-select/index.d.ts +5 -6
- package/lib/tree-select/index.js +15 -18
- package/lib/tree-select/themes/halo/dark/index.js +2 -1
- package/lib/tree-select/themes/halo/light/index.js +2 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +2 -1
- package/lib/tree-select/themes/solar/pearl/index.js +2 -1
- package/lib/version.js +1 -1
- package/package.json +9 -9
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/pearl';
|
|
2
|
+
import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
|
|
2
3
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-email-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-email-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;height:23px;width:140px;max-width:100%;padding:0 5px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#484848;border-radius:0;text-overflow:ellipsis;background-color:#fff;border:1px solid #a9afba}:host([type=number]){padding-right:0}:host([error]),:host([error][warning]){border:1px solid #d94255}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(72,72,72,.6);border:1px solid rgba(217,66,85,.6)}:host ::-ms-clear{display:none}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#acafb5;min-width:1em}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6)}:host([readonly]){border:1px solid rgba(169,175,186,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([warning]){background-color:#fff;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(72,72,72,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#fff;border:1px solid #d94255}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(217,66,85,.6);color:rgba(72,72,72,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(217,66,85,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #e37180}:host([highlight]){background-color:#b0ffff;border:1px solid #a9afba}:host([highlight][disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6);background-color:rgba(176,255,255,.6)}:host([highlight][readonly]){border:1px solid rgba(169,175,186,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([indirect]){color:#009494;background-color:#effefe;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,148,148,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#ffb266;border-style:dotted}:host([disabled]) [part=input]::-webkit-input-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]::-moz-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]:-ms-input-placeholder{color:rgba(102,101,112,.6)}' }}));
|
package/lib/events.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { TapEvent, ResizeEvent, FocusedChangedEvent } from '@refinitiv-ui/c
|
|
|
3
3
|
* Dispatched when `opened` state changes
|
|
4
4
|
* Prevent default to stop opening/closing pipeline
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
type OpenedChangedEvent = CustomEvent<{
|
|
7
7
|
/**
|
|
8
8
|
* `opened` value
|
|
9
9
|
*/
|
|
@@ -12,7 +12,7 @@ declare type OpenedChangedEvent = CustomEvent<{
|
|
|
12
12
|
/**
|
|
13
13
|
* Dispatched when `value` changes
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
type ValueChangedEvent = CustomEvent<{
|
|
16
16
|
/**
|
|
17
17
|
* new `value`
|
|
18
18
|
*/
|
|
@@ -21,7 +21,7 @@ declare type ValueChangedEvent = CustomEvent<{
|
|
|
21
21
|
/**
|
|
22
22
|
* Dispatched when `error` state changes
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
type ErrorChangedEvent = CustomEvent<{
|
|
25
25
|
/**
|
|
26
26
|
* `error` value
|
|
27
27
|
*/
|
|
@@ -30,7 +30,7 @@ declare type ErrorChangedEvent = CustomEvent<{
|
|
|
30
30
|
/**
|
|
31
31
|
* Dispatched when `active` state changes
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
type ActiveChangedEvent = CustomEvent<{
|
|
34
34
|
/**
|
|
35
35
|
* `active` value
|
|
36
36
|
*/
|
|
@@ -39,7 +39,7 @@ declare type ActiveChangedEvent = CustomEvent<{
|
|
|
39
39
|
/**
|
|
40
40
|
* Dispatched when `query` state changes
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
type QueryChangedEvent = CustomEvent<{
|
|
43
43
|
/**
|
|
44
44
|
* `query` value
|
|
45
45
|
*/
|
|
@@ -48,7 +48,7 @@ declare type QueryChangedEvent = CustomEvent<{
|
|
|
48
48
|
/**
|
|
49
49
|
* Dispatched when `view` state changes
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
type ViewChangedEvent = CustomEvent<{
|
|
52
52
|
/**
|
|
53
53
|
* `view` value
|
|
54
54
|
*/
|
|
@@ -57,7 +57,7 @@ declare type ViewChangedEvent = CustomEvent<{
|
|
|
57
57
|
/**
|
|
58
58
|
* Dispatched when `page` state changes
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
type PageChangedEvent = CustomEvent<{
|
|
61
61
|
/**
|
|
62
62
|
* `page` value
|
|
63
63
|
*/
|
|
@@ -66,7 +66,7 @@ declare type PageChangedEvent = CustomEvent<{
|
|
|
66
66
|
/**
|
|
67
67
|
* Dispatched when `from` state changes
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
type FromChangedEvent = CustomEvent<{
|
|
70
70
|
/**
|
|
71
71
|
* `from` value
|
|
72
72
|
*/
|
|
@@ -75,7 +75,7 @@ declare type FromChangedEvent = CustomEvent<{
|
|
|
75
75
|
/**
|
|
76
76
|
* Dispatched when `to` state changes
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
type ToChangedEvent = CustomEvent<{
|
|
79
79
|
/**
|
|
80
80
|
* `to` value
|
|
81
81
|
*/
|
|
@@ -84,7 +84,7 @@ declare type ToChangedEvent = CustomEvent<{
|
|
|
84
84
|
/**
|
|
85
85
|
* Dispatched when `checked` state changes
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
type CheckChangedEvent = CustomEvent<{
|
|
88
88
|
/**
|
|
89
89
|
* `checked` value
|
|
90
90
|
*/
|
|
@@ -93,7 +93,7 @@ declare type CheckChangedEvent = CustomEvent<{
|
|
|
93
93
|
/**
|
|
94
94
|
* Dispatched when `offset` state changes
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
type OffsetChangedEvent = CustomEvent<{
|
|
97
97
|
/**
|
|
98
98
|
* `offset` value
|
|
99
99
|
*/
|
|
@@ -103,7 +103,7 @@ declare type OffsetChangedEvent = CustomEvent<{
|
|
|
103
103
|
* Dispatched when `expanded` state changes
|
|
104
104
|
* Prevent default to stop expand/collapse pipeline
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
type ExpandedChangedEvent = CustomEvent<{
|
|
107
107
|
/**
|
|
108
108
|
* `expanded` value
|
|
109
109
|
*/
|
|
@@ -112,7 +112,7 @@ declare type ExpandedChangedEvent = CustomEvent<{
|
|
|
112
112
|
/**
|
|
113
113
|
* Dispatched when the user clicks on internal `item`
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
type ItemTriggerEvent = CustomEvent<{
|
|
116
116
|
/**
|
|
117
117
|
* `item` value
|
|
118
118
|
*/
|
package/lib/flag/index.js
CHANGED
package/lib/header/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#ccc;padding:0 0 0 4px;height:28px;font-size:
|
|
2
|
+
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,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{color:#0d0d0d;padding:0 0 0 4px;height:28px;font-size:
|
|
2
|
+
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,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:
|
|
2
|
+
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,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-header', styles: ':host{padding:0 0 0 5px;height:27px;font-size:
|
|
2
|
+
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,18 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
type HeatmapConfig = {
|
|
2
2
|
data: Array<HeatmapCell[]>;
|
|
3
3
|
yAxis?: HeatmapYAxis;
|
|
4
4
|
xAxis?: HeatmapXAxis;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type HeatmapXAxis = {
|
|
7
7
|
labels: string[];
|
|
8
8
|
shortLabels: string[];
|
|
9
9
|
position: 'top' | 'bottom';
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type HeatmapYAxis = {
|
|
12
12
|
labels: string[];
|
|
13
13
|
position: 'left' | 'right';
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type HeatmapCell = {
|
|
16
16
|
rowIndex: number;
|
|
17
17
|
colIndex: number;
|
|
18
18
|
x: number;
|
|
@@ -30,11 +30,11 @@ declare type HeatmapCell = {
|
|
|
30
30
|
customBackgroundColor?: string;
|
|
31
31
|
customForegroundColor?: string;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
type HeatmapCustomisableProperties = {
|
|
34
34
|
label?: string;
|
|
35
35
|
backgroundColor?: string;
|
|
36
36
|
foregroundColor?: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
type HeatmapTooltipCallback = (activeCell: HeatmapCell) => HTMLElement | undefined;
|
|
39
|
+
type HeatmapRenderCallback = (cell: HeatmapCell) => HeatmapCustomisableProperties;
|
|
40
40
|
export { HeatmapCell, HeatmapXAxis, HeatmapYAxis, HeatmapConfig, HeatmapTooltipCallback, HeatmapRenderCallback, HeatmapCustomisableProperties };
|
package/lib/heatmap/index.js
CHANGED
|
@@ -18,123 +18,6 @@ const DEFAULT_CANVAS_RATIO = 0.75; // ratio — 4:3
|
|
|
18
18
|
* values contained in a matrix are represented as colors
|
|
19
19
|
*/
|
|
20
20
|
let Heatmap = class Heatmap extends ResponsiveElement {
|
|
21
|
-
constructor() {
|
|
22
|
-
super();
|
|
23
|
-
/**
|
|
24
|
-
* Heatmap configuration options.
|
|
25
|
-
* @type {HeatmapConfig}
|
|
26
|
-
*/
|
|
27
|
-
this.config = null;
|
|
28
|
-
/**
|
|
29
|
-
* Number of maximum label width that cell can paint in pixel.
|
|
30
|
-
* e.g. label-width: 30px; cell label hides when text length reaches 30px.
|
|
31
|
-
*/
|
|
32
|
-
this.labelWidth = 0;
|
|
33
|
-
/**
|
|
34
|
-
* Hide all labels in the cells
|
|
35
|
-
*/
|
|
36
|
-
this.labelHidden = false;
|
|
37
|
-
/**
|
|
38
|
-
* Hide all axes
|
|
39
|
-
*/
|
|
40
|
-
this.axisHidden = false;
|
|
41
|
-
/**
|
|
42
|
-
* Minimum point of the cell coloring
|
|
43
|
-
*/
|
|
44
|
-
this.minPoint = -1;
|
|
45
|
-
/**
|
|
46
|
-
* Middle point of the cell coloring
|
|
47
|
-
*/
|
|
48
|
-
this.midPoint = 0;
|
|
49
|
-
/**
|
|
50
|
-
* Maximum point of the cell coloring
|
|
51
|
-
*/
|
|
52
|
-
this.maxPoint = 1;
|
|
53
|
-
/**
|
|
54
|
-
* Enable cell color blending
|
|
55
|
-
*/
|
|
56
|
-
this.blend = false;
|
|
57
|
-
/**
|
|
58
|
-
* Cell minimum color saturation, value can be from 0 - 1
|
|
59
|
-
*/
|
|
60
|
-
this.saturation = 0.4;
|
|
61
|
-
/**
|
|
62
|
-
* Current active cell
|
|
63
|
-
*/
|
|
64
|
-
this._hoverCell = null;
|
|
65
|
-
/**
|
|
66
|
-
* Internal cells data storage
|
|
67
|
-
*/
|
|
68
|
-
this.cells = [];
|
|
69
|
-
/**
|
|
70
|
-
* Canvas's font color according to theme
|
|
71
|
-
*/
|
|
72
|
-
this.foregroundColor = '';
|
|
73
|
-
/**
|
|
74
|
-
* Canvas's background color according to theme
|
|
75
|
-
*/
|
|
76
|
-
this.backgroundColor = '';
|
|
77
|
-
/**
|
|
78
|
-
* Row cells track for easier calculations
|
|
79
|
-
*/
|
|
80
|
-
this.rowTrack = new Track();
|
|
81
|
-
/**
|
|
82
|
-
* Column cells track for easier calculations
|
|
83
|
-
*/
|
|
84
|
-
this.colTrack = new Track();
|
|
85
|
-
/**
|
|
86
|
-
* A flag to check if calculated responsive height it been set.
|
|
87
|
-
*/
|
|
88
|
-
this.responsiveHeight = false;
|
|
89
|
-
/**
|
|
90
|
-
* A flag to check if the component has a size.
|
|
91
|
-
*/
|
|
92
|
-
this.isSizeCalculated = false;
|
|
93
|
-
/**
|
|
94
|
-
* Use to prevent resizes observer in certain use cases
|
|
95
|
-
*/
|
|
96
|
-
this.updateTimer = 0;
|
|
97
|
-
/**
|
|
98
|
-
* Use to throttle heatmap painting
|
|
99
|
-
*/
|
|
100
|
-
this.renderTask = new MicroTaskRunner();
|
|
101
|
-
/**
|
|
102
|
-
* A flag to check if the cell has header enable.
|
|
103
|
-
*/
|
|
104
|
-
this.hasCellHeader = false;
|
|
105
|
-
/**
|
|
106
|
-
* A flag to check if cell's content is within its boundary
|
|
107
|
-
*/
|
|
108
|
-
this.contentWithinCellBoundary = true;
|
|
109
|
-
/**
|
|
110
|
-
* Margin around each cell
|
|
111
|
-
*/
|
|
112
|
-
this.cellMargin = 1;
|
|
113
|
-
/**
|
|
114
|
-
* Above point color that is customisable using CSS variable
|
|
115
|
-
*/
|
|
116
|
-
this.abovePointColor = '';
|
|
117
|
-
/**
|
|
118
|
-
* Middle point color that is customisable using CSS variable
|
|
119
|
-
*/
|
|
120
|
-
this.midPointColor = '';
|
|
121
|
-
/**
|
|
122
|
-
* Below point color that is customisable using CSS variable
|
|
123
|
-
*/
|
|
124
|
-
this.belowPointColor = '';
|
|
125
|
-
/** @ignore */
|
|
126
|
-
this.onResize = this.onResize.bind(this);
|
|
127
|
-
/** @ignore */
|
|
128
|
-
this.onMouseMove = this.onMouseMove.bind(this);
|
|
129
|
-
/** @ignore */
|
|
130
|
-
this.stopAnimation = this.stopAnimation.bind(this);
|
|
131
|
-
/** @ignore */
|
|
132
|
-
this.tooltipRenderer = this.tooltipRenderer.bind(this);
|
|
133
|
-
/** @ignore */
|
|
134
|
-
this.tooltipCondition = this.tooltipCondition.bind(this);
|
|
135
|
-
/** @ignore */
|
|
136
|
-
this.onMouseLeave = this.onMouseLeave.bind(this);
|
|
137
|
-
}
|
|
138
21
|
/**
|
|
139
22
|
* Element version number
|
|
140
23
|
* @returns version number
|
|
@@ -257,6 +140,123 @@ let Heatmap = class Heatmap extends ResponsiveElement {
|
|
|
257
140
|
});
|
|
258
141
|
return result;
|
|
259
142
|
}
|
|
143
|
+
constructor() {
|
|
144
|
+
super();
|
|
145
|
+
/**
|
|
146
|
+
* Heatmap configuration options.
|
|
147
|
+
* @type {HeatmapConfig}
|
|
148
|
+
*/
|
|
149
|
+
this.config = null;
|
|
150
|
+
/**
|
|
151
|
+
* Number of maximum label width that cell can paint in pixel.
|
|
152
|
+
* e.g. label-width: 30px; cell label hides when text length reaches 30px.
|
|
153
|
+
*/
|
|
154
|
+
this.labelWidth = 0;
|
|
155
|
+
/**
|
|
156
|
+
* Hide all labels in the cells
|
|
157
|
+
*/
|
|
158
|
+
this.labelHidden = false;
|
|
159
|
+
/**
|
|
160
|
+
* Hide all axes
|
|
161
|
+
*/
|
|
162
|
+
this.axisHidden = false;
|
|
163
|
+
/**
|
|
164
|
+
* Minimum point of the cell coloring
|
|
165
|
+
*/
|
|
166
|
+
this.minPoint = -1;
|
|
167
|
+
/**
|
|
168
|
+
* Middle point of the cell coloring
|
|
169
|
+
*/
|
|
170
|
+
this.midPoint = 0;
|
|
171
|
+
/**
|
|
172
|
+
* Maximum point of the cell coloring
|
|
173
|
+
*/
|
|
174
|
+
this.maxPoint = 1;
|
|
175
|
+
/**
|
|
176
|
+
* Enable cell color blending
|
|
177
|
+
*/
|
|
178
|
+
this.blend = false;
|
|
179
|
+
/**
|
|
180
|
+
* Cell minimum color saturation, value can be from 0 - 1
|
|
181
|
+
*/
|
|
182
|
+
this.saturation = 0.4;
|
|
183
|
+
/**
|
|
184
|
+
* Current active cell
|
|
185
|
+
*/
|
|
186
|
+
this._hoverCell = null;
|
|
187
|
+
/**
|
|
188
|
+
* Internal cells data storage
|
|
189
|
+
*/
|
|
190
|
+
this.cells = [];
|
|
191
|
+
/**
|
|
192
|
+
* Canvas's font color according to theme
|
|
193
|
+
*/
|
|
194
|
+
this.foregroundColor = '';
|
|
195
|
+
/**
|
|
196
|
+
* Canvas's background color according to theme
|
|
197
|
+
*/
|
|
198
|
+
this.backgroundColor = '';
|
|
199
|
+
/**
|
|
200
|
+
* Row cells track for easier calculations
|
|
201
|
+
*/
|
|
202
|
+
this.rowTrack = new Track();
|
|
203
|
+
/**
|
|
204
|
+
* Column cells track for easier calculations
|
|
205
|
+
*/
|
|
206
|
+
this.colTrack = new Track();
|
|
207
|
+
/**
|
|
208
|
+
* A flag to check if calculated responsive height it been set.
|
|
209
|
+
*/
|
|
210
|
+
this.responsiveHeight = false;
|
|
211
|
+
/**
|
|
212
|
+
* A flag to check if the component has a size.
|
|
213
|
+
*/
|
|
214
|
+
this.isSizeCalculated = false;
|
|
215
|
+
/**
|
|
216
|
+
* Use to prevent resizes observer in certain use cases
|
|
217
|
+
*/
|
|
218
|
+
this.updateTimer = 0;
|
|
219
|
+
/**
|
|
220
|
+
* Use to throttle heatmap painting
|
|
221
|
+
*/
|
|
222
|
+
this.renderTask = new MicroTaskRunner();
|
|
223
|
+
/**
|
|
224
|
+
* A flag to check if the cell has header enable.
|
|
225
|
+
*/
|
|
226
|
+
this.hasCellHeader = false;
|
|
227
|
+
/**
|
|
228
|
+
* A flag to check if cell's content is within its boundary
|
|
229
|
+
*/
|
|
230
|
+
this.contentWithinCellBoundary = true;
|
|
231
|
+
/**
|
|
232
|
+
* Margin around each cell
|
|
233
|
+
*/
|
|
234
|
+
this.cellMargin = 1;
|
|
235
|
+
/**
|
|
236
|
+
* Above point color that is customisable using CSS variable
|
|
237
|
+
*/
|
|
238
|
+
this.abovePointColor = '';
|
|
239
|
+
/**
|
|
240
|
+
* Middle point color that is customisable using CSS variable
|
|
241
|
+
*/
|
|
242
|
+
this.midPointColor = '';
|
|
243
|
+
/**
|
|
244
|
+
* Below point color that is customisable using CSS variable
|
|
245
|
+
*/
|
|
246
|
+
this.belowPointColor = '';
|
|
247
|
+
/** @ignore */
|
|
248
|
+
this.onResize = this.onResize.bind(this);
|
|
249
|
+
/** @ignore */
|
|
250
|
+
this.onMouseMove = this.onMouseMove.bind(this);
|
|
251
|
+
/** @ignore */
|
|
252
|
+
this.stopAnimation = this.stopAnimation.bind(this);
|
|
253
|
+
/** @ignore */
|
|
254
|
+
this.tooltipRenderer = this.tooltipRenderer.bind(this);
|
|
255
|
+
/** @ignore */
|
|
256
|
+
this.tooltipCondition = this.tooltipCondition.bind(this);
|
|
257
|
+
/** @ignore */
|
|
258
|
+
this.onMouseLeave = this.onMouseLeave.bind(this);
|
|
259
|
+
}
|
|
260
260
|
/**
|
|
261
261
|
* Called when the element’s DOM has been updated and rendered
|
|
262
262
|
* @param changedProperties changed properties
|
|
@@ -1089,8 +1089,6 @@ __decorate([
|
|
|
1089
1089
|
query('#tooltip-overlay')
|
|
1090
1090
|
], Heatmap.prototype, "tooltipOverlay", void 0);
|
|
1091
1091
|
Heatmap = __decorate([
|
|
1092
|
-
customElement('ef-heatmap'
|
|
1093
|
-
alias: 'sapphire-heatmap'
|
|
1094
|
-
})
|
|
1092
|
+
customElement('ef-heatmap')
|
|
1095
1093
|
], Heatmap);
|
|
1096
1094
|
export { Heatmap };
|
package/lib/icon/index.js
CHANGED
|
@@ -20,9 +20,9 @@ By lightweight-charts library.
|
|
|
20
20
|
|
|
21
21
|
## Events
|
|
22
22
|
|
|
23
|
-
| Event | Description
|
|
24
|
-
|
|
25
|
-
| `initialized` |
|
|
23
|
+
| Event | Description |
|
|
24
|
+
|---------------|---------------------------------|
|
|
25
|
+
| `initialized` | Fired when chart is initialized |
|
|
26
26
|
|
|
27
27
|
## Slots
|
|
28
28
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { LineData, BarData, HistogramData, DeepPartial, ChartOptions, SeriesPartialOptions, LineSeriesPartialOptions, AreaSeriesPartialOptions, BarSeriesPartialOptions, CandlestickSeriesPartialOptions, HistogramSeriesPartialOptions, LineStyleOptions, AreaStyleOptions, BarStyleOptions, CandlestickStyleOptions, HistogramStyleOptions, ISeriesApi, SeriesType } from 'lightweight-charts';
|
|
2
2
|
import type { RGBColor, HSLColor } from '@refinitiv-ui/utils/color.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
type SeriesOptions = AreaSeriesPartialOptions | BarSeriesPartialOptions | CandlestickSeriesPartialOptions | HistogramSeriesPartialOptions | LineSeriesPartialOptions;
|
|
4
|
+
type SeriesStyleOptions = LineStyleOptions & AreaStyleOptions & BarStyleOptions & CandlestickStyleOptions & HistogramStyleOptions;
|
|
5
|
+
type SeriesData = LineData[] | BarData[] | HistogramData[];
|
|
6
|
+
type SeriesList = ISeriesApi<SeriesType>;
|
|
7
|
+
type SeriesDataItem = BarData | LineData;
|
|
8
|
+
type RowLegend = NodeListOf<Element> | HTMLElement | null;
|
|
9
|
+
type ColorToStringFunction = (param: string, ...arg: (string | number | undefined)[]) => RGBColor | HSLColor | null;
|
|
10
10
|
declare enum LegendStyle {
|
|
11
11
|
vertical = "vertical",
|
|
12
12
|
horizontal = "horizontal"
|
|
@@ -9,7 +9,7 @@ export type { InteractiveChartConfig, InteractiveChartSeries, LegendStyle };
|
|
|
9
9
|
* A charting component that allows you to create several use cases of financial chart.
|
|
10
10
|
* By lightweight-charts library.
|
|
11
11
|
* @slot legend - Slot to use for implementing custom legend.
|
|
12
|
-
* @fires initialized -
|
|
12
|
+
* @fires initialized - Fired when chart is initialized
|
|
13
13
|
*/
|
|
14
14
|
export declare class InteractiveChart extends ResponsiveElement {
|
|
15
15
|
/**
|
|
@@ -16,7 +16,7 @@ const NO_DATA_POINT = '--';
|
|
|
16
16
|
* A charting component that allows you to create several use cases of financial chart.
|
|
17
17
|
* By lightweight-charts library.
|
|
18
18
|
* @slot legend - Slot to use for implementing custom legend.
|
|
19
|
-
* @fires initialized -
|
|
19
|
+
* @fires initialized - Fired when chart is initialized
|
|
20
20
|
*/
|
|
21
21
|
let InteractiveChart = InteractiveChart_1 = class InteractiveChart extends ResponsiveElement {
|
|
22
22
|
constructor() {
|
|
@@ -1082,8 +1082,6 @@ __decorate([
|
|
|
1082
1082
|
query('[part=branding-container]', true)
|
|
1083
1083
|
], InteractiveChart.prototype, "brandingContainer", void 0);
|
|
1084
1084
|
InteractiveChart = InteractiveChart_1 = __decorate([
|
|
1085
|
-
customElement('ef-interactive-chart'
|
|
1086
|
-
alias: 'sapphire-interactive-chart'
|
|
1087
|
-
})
|
|
1085
|
+
customElement('ef-interactive-chart')
|
|
1088
1086
|
], InteractiveChart);
|
|
1089
1087
|
export { InteractiveChart };
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"attributes": [
|
|
8
8
|
{
|
|
9
9
|
"name": "label",
|
|
10
|
-
"description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content,
|
|
10
|
+
"description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, content always takes priority",
|
|
11
11
|
"type": "string | null"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "sub-label",
|
|
43
|
-
"description": "The`subLabel` property represents the text beneath the label
|
|
43
|
+
"description": "The`subLabel` property represents the text beneath the label.\nBy having both `subLabel` and content, content always takes priority",
|
|
44
44
|
"type": "string | null"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"name": "label",
|
|
67
67
|
"attribute": "label",
|
|
68
|
-
"description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content,
|
|
68
|
+
"description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, content always takes priority",
|
|
69
69
|
"type": "string | null"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
{
|
|
105
105
|
"name": "subLabel",
|
|
106
106
|
"attribute": "sub-label",
|
|
107
|
-
"description": "The`subLabel` property represents the text beneath the label
|
|
107
|
+
"description": "The`subLabel` property represents the text beneath the label.\nBy having both `subLabel` and content, content always takes priority",
|
|
108
108
|
"type": "string | null"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
@@ -13,10 +13,10 @@ to create simple menus or navigation panels.
|
|
|
13
13
|
| `highlightable (readonly)` | | `boolean` | | Return true if the item can be highlighted. True if not disabled and type is Text |
|
|
14
14
|
| `highlighted` | `highlighted` | `boolean` | false | Highlight the item |
|
|
15
15
|
| `icon` | `icon` | `string \| null` | null | Set the icon name from the ef-icon list |
|
|
16
|
-
| `label` | `label` | `string \| null` | null | The text for the label indicating the meaning of the item.<br />By having both `label` and content,
|
|
16
|
+
| `label` | `label` | `string \| null` | null | The text for the label indicating the meaning of the item.<br />By having both `label` and content, content always takes priority |
|
|
17
17
|
| `multiple` | `multiple` | `boolean` | false | Is the item part of a multiple selection |
|
|
18
18
|
| `selected` | `selected` | `boolean` | false | Indicates that the item is selected |
|
|
19
|
-
| `subLabel` | `sub-label` | `string \| null` | null | The`subLabel` property represents the text beneath the label
|
|
19
|
+
| `subLabel` | `sub-label` | `string \| null` | null | The`subLabel` property represents the text beneath the label.<br />By having both `subLabel` and content, content always takes priority |
|
|
20
20
|
| `type` | `type` | `ItemType \| null` | null | If defined value can be `text`, `header` or `divider` |
|
|
21
21
|
| `value` | `value` | `string` | "" | The content of this attribute represents the value of the item. |
|
|
22
22
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataItem } from '@refinitiv-ui/utils/collection.js';
|
|
2
|
-
|
|
2
|
+
type ItemType = 'text' | 'header' | 'divider';
|
|
3
3
|
interface CommonItem extends DataItem {
|
|
4
4
|
/**
|
|
5
5
|
* Type of item. Value can be `text`, `header`, `divider`
|
|
@@ -53,5 +53,5 @@ interface ItemDivider extends CommonItem {
|
|
|
53
53
|
/**
|
|
54
54
|
* Used to construct a collection of items
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
type ItemData = ItemText | ItemHeader | ItemDivider;
|
|
57
57
|
export type { ItemType, ItemText, ItemHeader, ItemDivider, ItemData };
|
package/lib/item/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare class Item extends ControlElement {
|
|
|
32
32
|
static get styles(): CSSResultGroup;
|
|
33
33
|
/**
|
|
34
34
|
* The text for the label indicating the meaning of the item.
|
|
35
|
-
* By having both `label` and content,
|
|
35
|
+
* By having both `label` and content, content always takes priority
|
|
36
36
|
*/
|
|
37
37
|
label: string | null;
|
|
38
38
|
/**
|
|
@@ -58,6 +58,7 @@ export declare class Item extends ControlElement {
|
|
|
58
58
|
highlighted: boolean;
|
|
59
59
|
/**
|
|
60
60
|
* The`subLabel` property represents the text beneath the label.
|
|
61
|
+
* By having both `subLabel` and content, content always takes priority
|
|
61
62
|
*/
|
|
62
63
|
subLabel: string | null;
|
|
63
64
|
/**
|