@refinitiv-ui/elements 6.9.0-next.0 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +218 -380
- package/LICENSE +1 -1
- package/README.md +12 -10
- package/lib/accordion/index.d.ts +1 -1
- package/lib/accordion/index.js +4 -7
- package/lib/accordion/themes/halo/dark/index.js +0 -1
- package/lib/accordion/themes/halo/light/index.js +0 -1
- package/lib/accordion/themes/solar/charcoal/index.js +0 -1
- package/lib/accordion/themes/solar/pearl/index.js +0 -1
- package/lib/appstate-bar/index.d.ts +2 -2
- package/lib/appstate-bar/index.js +10 -4
- package/lib/appstate-bar/themes/halo/dark/index.js +0 -1
- package/lib/appstate-bar/themes/halo/light/index.js +0 -1
- package/lib/appstate-bar/themes/solar/charcoal/index.js +0 -1
- package/lib/appstate-bar/themes/solar/pearl/index.js +0 -1
- package/lib/autosuggest/index.d.ts +7 -7
- package/lib/autosuggest/index.js +89 -84
- package/lib/autosuggest/themes/halo/dark/index.js +0 -1
- package/lib/autosuggest/themes/halo/light/index.js +0 -1
- package/lib/autosuggest/themes/solar/charcoal/index.js +1 -2
- package/lib/autosuggest/themes/solar/pearl/index.js +1 -2
- package/lib/button/index.js +7 -10
- package/lib/button/themes/halo/dark/index.js +0 -1
- package/lib/button/themes/halo/light/index.js +0 -1
- package/lib/button/themes/solar/charcoal/index.js +0 -1
- package/lib/button/themes/solar/pearl/index.js +0 -1
- package/lib/button-bar/index.d.ts +1 -1
- package/lib/button-bar/index.js +12 -12
- package/lib/button-bar/themes/halo/dark/index.js +0 -1
- package/lib/button-bar/themes/halo/light/index.js +0 -1
- package/lib/button-bar/themes/solar/charcoal/index.js +0 -1
- package/lib/button-bar/themes/solar/pearl/index.js +0 -1
- package/lib/calendar/index.d.ts +39 -39
- package/lib/calendar/index.js +165 -132
- package/lib/calendar/themes/halo/dark/index.js +0 -1
- package/lib/calendar/themes/halo/light/index.js +0 -1
- package/lib/calendar/themes/solar/charcoal/index.js +0 -1
- package/lib/calendar/themes/solar/pearl/index.js +0 -1
- package/lib/calendar/utils.js +2 -2
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +2 -4
- package/lib/canvas/themes/halo/dark/index.js +0 -1
- package/lib/canvas/themes/halo/light/index.js +0 -1
- package/lib/canvas/themes/solar/charcoal/index.js +0 -1
- package/lib/canvas/themes/solar/pearl/index.js +0 -1
- package/lib/card/helpers/types.d.ts +2 -2
- package/lib/card/index.d.ts +5 -5
- package/lib/card/index.js +34 -28
- package/lib/card/themes/halo/dark/index.js +0 -1
- package/lib/card/themes/halo/light/index.js +0 -1
- package/lib/card/themes/solar/charcoal/index.js +0 -1
- package/lib/card/themes/solar/pearl/index.js +0 -1
- package/lib/chart/helpers/legend.js +10 -8
- package/lib/chart/index.d.ts +3 -3
- package/lib/chart/index.js +17 -17
- package/lib/chart/plugins/doughnut-center-label.js +7 -6
- package/lib/chart/themes/halo/dark/index.js +0 -1
- package/lib/chart/themes/halo/light/index.js +0 -1
- package/lib/chart/themes/solar/charcoal/index.js +0 -1
- package/lib/chart/themes/solar/pearl/index.js +0 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +12 -13
- package/lib/checkbox/themes/halo/dark/index.js +0 -1
- package/lib/checkbox/themes/halo/light/index.js +0 -1
- package/lib/checkbox/themes/solar/charcoal/index.js +0 -1
- package/lib/checkbox/themes/solar/pearl/index.js +0 -1
- package/lib/clock/index.d.ts +55 -55
- package/lib/clock/index.js +84 -95
- package/lib/clock/themes/halo/dark/index.js +1 -2
- package/lib/clock/themes/halo/light/index.js +1 -2
- package/lib/clock/themes/solar/charcoal/index.js +1 -2
- package/lib/clock/themes/solar/pearl/index.js +1 -2
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +28 -19
- package/lib/collapse/themes/halo/dark/index.js +1 -2
- package/lib/collapse/themes/halo/light/index.js +1 -2
- package/lib/collapse/themes/solar/charcoal/index.js +0 -1
- package/lib/collapse/themes/solar/pearl/index.js +0 -1
- package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
- package/lib/color-dialog/elements/color-palettes.js +5 -6
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
- package/lib/color-dialog/elements/grayscale-palettes.js +9 -9
- package/lib/color-dialog/elements/palettes.js +5 -4
- package/lib/color-dialog/helpers/value-model.js +7 -9
- package/lib/color-dialog/index.d.ts +6 -6
- package/lib/color-dialog/index.js +53 -37
- package/lib/color-dialog/themes/halo/dark/index.js +0 -1
- package/lib/color-dialog/themes/halo/light/index.js +0 -1
- package/lib/color-dialog/themes/solar/charcoal/index.js +0 -1
- package/lib/color-dialog/themes/solar/pearl/index.js +0 -1
- package/lib/color-picker/index.d.ts +2 -2
- package/lib/color-picker/index.js +40 -34
- package/lib/color-picker/themes/halo/dark/index.js +0 -1
- package/lib/color-picker/themes/halo/light/index.js +0 -1
- package/lib/color-picker/themes/solar/charcoal/index.js +0 -1
- package/lib/color-picker/themes/solar/pearl/index.js +0 -1
- package/lib/combo-box/helpers/filter.d.ts +2 -2
- package/lib/combo-box/helpers/types.d.ts +1 -1
- package/lib/combo-box/index.d.ts +9 -9
- package/lib/combo-box/index.js +61 -55
- package/lib/combo-box/themes/halo/dark/index.js +0 -1
- package/lib/combo-box/themes/halo/light/index.js +0 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +0 -1
- package/lib/combo-box/themes/solar/pearl/index.js +0 -1
- package/lib/configuration/custom-elements.json +15 -0
- package/lib/configuration/custom-elements.md +7 -0
- package/lib/{config/elements/config.d.ts → configuration/elements/configuration.d.ts} +14 -7
- package/lib/{config/elements/config.js → configuration/elements/configuration.js} +17 -15
- package/lib/configuration/helpers/context.d.ts +5 -0
- package/lib/configuration/helpers/context.js +3 -0
- package/lib/{config/helpers/context.d.ts → configuration/helpers/types.d.ts} +0 -3
- package/lib/configuration/helpers/types.js +1 -0
- package/lib/configuration/index.d.ts +3 -0
- package/lib/{config → configuration}/index.js +1 -1
- package/lib/counter/index.d.ts +4 -4
- package/lib/counter/index.js +9 -7
- package/lib/counter/themes/halo/dark/index.js +0 -1
- package/lib/counter/themes/halo/light/index.js +0 -1
- package/lib/counter/themes/solar/charcoal/index.js +0 -1
- package/lib/counter/themes/solar/pearl/index.js +0 -1
- package/lib/datetime-field/index.d.ts +4 -5
- package/lib/datetime-field/index.js +32 -23
- package/lib/datetime-field/themes/halo/dark/index.js +0 -1
- package/lib/datetime-field/themes/halo/light/index.js +0 -1
- package/lib/datetime-field/themes/solar/charcoal/index.js +0 -1
- package/lib/datetime-field/themes/solar/pearl/index.js +0 -1
- package/lib/datetime-field/utils.js +11 -1
- package/lib/datetime-picker/index.d.ts +75 -75
- package/lib/datetime-picker/index.js +154 -135
- package/lib/datetime-picker/locales.js +5 -5
- package/lib/datetime-picker/themes/halo/dark/index.js +0 -1
- package/lib/datetime-picker/themes/halo/light/index.js +0 -1
- package/lib/datetime-picker/themes/solar/charcoal/index.js +0 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +0 -1
- package/lib/datetime-picker/utils.js +9 -9
- package/lib/dialog/custom-elements.json +0 -11
- package/lib/dialog/custom-elements.md +3 -4
- package/lib/dialog/draggable-element.js +1 -2
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +48 -38
- package/lib/dialog/themes/halo/dark/index.js +0 -1
- package/lib/dialog/themes/halo/light/index.js +0 -1
- package/lib/dialog/themes/solar/charcoal/index.js +0 -1
- package/lib/dialog/themes/solar/pearl/index.js +0 -1
- package/lib/email-field/index.d.ts +1 -1
- package/lib/email-field/index.js +6 -6
- package/lib/email-field/themes/halo/dark/index.js +0 -1
- package/lib/email-field/themes/halo/light/index.js +0 -1
- package/lib/email-field/themes/solar/charcoal/index.js +0 -1
- package/lib/email-field/themes/solar/pearl/index.js +0 -1
- package/lib/events.d.ts +1 -1
- package/lib/flag/custom-elements.json +0 -12
- package/lib/flag/custom-elements.md +0 -3
- package/lib/flag/index.d.ts +12 -8
- package/lib/flag/index.js +20 -12
- package/lib/flag/themes/halo/dark/index.js +0 -1
- package/lib/flag/themes/halo/light/index.js +0 -1
- package/lib/flag/themes/solar/charcoal/index.js +0 -1
- package/lib/flag/themes/solar/pearl/index.js +0 -1
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/index.d.ts +1 -1
- package/lib/header/index.js +2 -2
- package/lib/header/themes/halo/dark/index.js +1 -2
- package/lib/header/themes/halo/light/index.js +1 -2
- package/lib/header/themes/solar/charcoal/index.js +1 -2
- package/lib/header/themes/solar/pearl/index.js +1 -2
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +11 -5
- package/lib/heatmap/helpers/track.js +3 -3
- package/lib/heatmap/helpers/types.d.ts +10 -10
- package/lib/heatmap/index.d.ts +9 -9
- package/lib/heatmap/index.js +104 -65
- package/lib/heatmap/themes/halo/dark/index.js +0 -1
- package/lib/heatmap/themes/halo/light/index.js +0 -1
- package/lib/heatmap/themes/solar/charcoal/index.js +0 -1
- package/lib/heatmap/themes/solar/pearl/index.js +0 -1
- package/lib/icon/custom-elements.json +0 -13
- package/lib/icon/custom-elements.md +0 -1
- package/lib/icon/index.d.ts +16 -6
- package/lib/icon/index.js +22 -11
- package/lib/icon/themes/halo/dark/index.js +0 -1
- package/lib/icon/themes/halo/light/index.js +0 -1
- package/lib/icon/themes/solar/charcoal/index.js +0 -1
- package/lib/icon/themes/solar/pearl/index.js +0 -1
- package/lib/icon/utils/IconLoader.d.ts +1 -0
- package/lib/icon/utils/IconLoader.js +9 -1
- package/lib/interactive-chart/custom-elements.json +5 -0
- package/lib/interactive-chart/custom-elements.md +1 -0
- package/lib/interactive-chart/helpers/types.d.ts +3 -3
- package/lib/interactive-chart/index.d.ts +40 -36
- package/lib/interactive-chart/index.js +78 -59
- package/lib/interactive-chart/themes/halo/dark/index.js +0 -1
- package/lib/interactive-chart/themes/halo/light/index.js +0 -1
- package/lib/interactive-chart/themes/solar/charcoal/index.js +0 -1
- package/lib/interactive-chart/themes/solar/pearl/index.js +0 -1
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +3 -3
- package/lib/item/index.js +24 -20
- package/lib/item/themes/halo/dark/index.js +0 -1
- package/lib/item/themes/halo/light/index.js +0 -1
- package/lib/item/themes/solar/charcoal/index.js +0 -1
- package/lib/item/themes/solar/pearl/index.js +0 -1
- package/lib/jsx.d.ts +6 -4
- package/lib/label/index.d.ts +1 -1
- package/lib/label/index.js +11 -8
- package/lib/label/themes/halo/dark/index.js +0 -1
- package/lib/label/themes/halo/light/index.js +0 -1
- package/lib/label/themes/solar/charcoal/index.js +0 -1
- package/lib/label/themes/solar/pearl/index.js +0 -1
- package/lib/layout/index.d.ts +7 -7
- package/lib/layout/index.js +7 -7
- package/lib/layout/themes/halo/dark/index.js +0 -1
- package/lib/layout/themes/halo/light/index.js +0 -1
- package/lib/layout/themes/solar/charcoal/index.js +0 -1
- package/lib/layout/themes/solar/pearl/index.js +0 -1
- package/lib/led-gauge/index.d.ts +1 -1
- package/lib/led-gauge/index.js +10 -10
- package/lib/led-gauge/themes/halo/dark/index.js +0 -1
- package/lib/led-gauge/themes/halo/light/index.js +0 -1
- package/lib/led-gauge/themes/solar/charcoal/index.js +0 -1
- package/lib/led-gauge/themes/solar/pearl/index.js +0 -1
- package/lib/list/elements/list.d.ts +3 -3
- package/lib/list/elements/list.js +10 -12
- package/lib/list/helpers/renderer.js +2 -2
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/renderer.d.ts +7 -7
- package/lib/list/themes/halo/dark/index.js +0 -2
- package/lib/list/themes/halo/light/index.js +0 -2
- package/lib/list/themes/solar/charcoal/index.js +0 -2
- package/lib/list/themes/solar/pearl/index.js +0 -2
- package/lib/loader/index.js +7 -8
- package/lib/loader/themes/halo/dark/index.js +0 -1
- package/lib/loader/themes/halo/light/index.js +0 -1
- package/lib/loader/themes/solar/charcoal/index.js +0 -1
- package/lib/loader/themes/solar/pearl/index.js +0 -1
- package/lib/multi-input/index.d.ts +6 -6
- package/lib/multi-input/index.js +39 -45
- package/lib/multi-input/themes/halo/dark/index.js +0 -1
- package/lib/multi-input/themes/halo/light/index.js +0 -1
- package/lib/multi-input/themes/solar/charcoal/index.js +0 -1
- package/lib/multi-input/themes/solar/pearl/index.js +0 -1
- package/lib/notification/elements/notification-tray.d.ts +2 -2
- package/lib/notification/elements/notification-tray.js +3 -3
- package/lib/notification/elements/notification.d.ts +2 -2
- package/lib/notification/elements/notification.js +17 -14
- package/lib/notification/helpers/status.js +1 -1
- package/lib/notification/themes/halo/dark/index.js +1 -3
- package/lib/notification/themes/halo/light/index.js +1 -3
- package/lib/notification/themes/solar/charcoal/index.js +1 -3
- package/lib/notification/themes/solar/pearl/index.js +1 -3
- package/lib/number-field/index.d.ts +12 -6
- package/lib/number-field/index.js +64 -48
- package/lib/number-field/themes/halo/dark/index.js +0 -1
- package/lib/number-field/themes/halo/light/index.js +0 -1
- package/lib/number-field/themes/solar/charcoal/index.js +0 -1
- package/lib/number-field/themes/solar/pearl/index.js +0 -1
- package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
- package/lib/overlay/elements/overlay.d.ts +2 -2
- package/lib/overlay/elements/overlay.js +154 -98
- package/lib/overlay/helpers/types.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.js +2 -2
- package/lib/overlay/managers/close-manager.js +2 -1
- package/lib/overlay/managers/focus-manager.js +23 -13
- package/lib/overlay/managers/interaction-lock-manager.d.ts +4 -4
- package/lib/overlay/managers/interaction-lock-manager.js +33 -25
- package/lib/overlay/managers/viewport-manager.d.ts +2 -2
- package/lib/overlay/managers/viewport-manager.js +3 -2
- package/lib/overlay/managers/zindex-manager.js +4 -2
- package/lib/overlay/themes/halo/dark/index.js +0 -2
- package/lib/overlay/themes/halo/light/index.js +0 -2
- package/lib/overlay/themes/solar/charcoal/index.js +0 -2
- package/lib/overlay/themes/solar/pearl/index.js +0 -2
- package/lib/overlay-menu/helpers/types.d.ts +2 -2
- package/lib/overlay-menu/index.d.ts +1 -1
- package/lib/overlay-menu/index.js +44 -33
- package/lib/overlay-menu/managers/menu-manager.d.ts +10 -10
- package/lib/overlay-menu/managers/menu-manager.js +15 -13
- package/lib/overlay-menu/themes/halo/dark/index.js +0 -1
- package/lib/overlay-menu/themes/halo/light/index.js +0 -1
- package/lib/overlay-menu/themes/solar/charcoal/index.js +0 -1
- package/lib/overlay-menu/themes/solar/pearl/index.js +0 -1
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +39 -14
- package/lib/pagination/themes/halo/dark/index.js +0 -1
- package/lib/pagination/themes/halo/light/index.js +0 -1
- package/lib/pagination/themes/solar/charcoal/index.js +0 -1
- package/lib/pagination/themes/solar/pearl/index.js +0 -1
- package/lib/panel/index.js +1 -1
- package/lib/panel/themes/halo/dark/index.js +0 -1
- package/lib/panel/themes/halo/light/index.js +0 -1
- package/lib/panel/themes/solar/charcoal/index.js +0 -1
- package/lib/panel/themes/solar/pearl/index.js +0 -1
- package/lib/password-field/index.d.ts +2 -2
- package/lib/password-field/index.js +7 -4
- package/lib/password-field/themes/halo/dark/index.js +1 -2
- package/lib/password-field/themes/halo/light/index.js +1 -2
- package/lib/password-field/themes/solar/charcoal/index.js +1 -2
- package/lib/password-field/themes/solar/pearl/index.js +1 -2
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +22 -19
- package/lib/pill/themes/halo/dark/index.js +0 -1
- package/lib/pill/themes/halo/light/index.js +0 -1
- package/lib/pill/themes/solar/charcoal/index.js +0 -1
- package/lib/pill/themes/solar/pearl/index.js +0 -1
- package/lib/progress-bar/index.d.ts +1 -1
- package/lib/progress-bar/index.js +38 -37
- package/lib/progress-bar/themes/halo/dark/index.js +0 -1
- package/lib/progress-bar/themes/halo/light/index.js +0 -1
- package/lib/progress-bar/themes/solar/charcoal/index.js +0 -1
- package/lib/progress-bar/themes/solar/pearl/index.js +0 -1
- package/lib/radio-button/index.d.ts +2 -2
- package/lib/radio-button/index.js +17 -12
- package/lib/radio-button/radio-button-registry.js +8 -5
- package/lib/radio-button/themes/halo/dark/index.js +0 -1
- package/lib/radio-button/themes/halo/light/index.js +0 -1
- package/lib/radio-button/themes/solar/charcoal/index.js +0 -1
- package/lib/radio-button/themes/solar/pearl/index.js +0 -1
- package/lib/rating/index.d.ts +1 -1
- package/lib/rating/index.js +2 -5
- package/lib/rating/themes/halo/dark/index.js +0 -1
- package/lib/rating/themes/halo/light/index.js +0 -1
- package/lib/rating/themes/solar/charcoal/index.js +0 -1
- package/lib/rating/themes/solar/pearl/index.js +0 -1
- package/lib/rating/utils.d.ts +6 -6
- package/lib/rating/utils.js +6 -6
- package/lib/search-field/index.d.ts +2 -2
- package/lib/search-field/index.js +4 -4
- package/lib/search-field/themes/halo/dark/index.js +0 -1
- package/lib/search-field/themes/halo/light/index.js +0 -1
- package/lib/search-field/themes/solar/charcoal/index.js +0 -1
- package/lib/search-field/themes/solar/pearl/index.js +0 -1
- package/lib/select/index.d.ts +34 -34
- package/lib/select/index.js +70 -83
- package/lib/select/themes/halo/dark/index.js +0 -1
- package/lib/select/themes/halo/light/index.js +0 -1
- package/lib/select/themes/solar/charcoal/index.js +0 -1
- package/lib/select/themes/solar/pearl/index.js +0 -1
- package/lib/sidebar-layout/index.d.ts +2 -2
- package/lib/sidebar-layout/index.js +7 -9
- package/lib/sidebar-layout/themes/halo/dark/index.js +0 -1
- package/lib/sidebar-layout/themes/halo/light/index.js +0 -1
- package/lib/sidebar-layout/themes/solar/charcoal/index.js +0 -1
- package/lib/sidebar-layout/themes/solar/pearl/index.js +0 -1
- package/lib/slider/index.d.ts +2 -2
- package/lib/slider/index.js +72 -49
- package/lib/slider/themes/halo/dark/index.js +0 -1
- package/lib/slider/themes/halo/light/index.js +0 -1
- package/lib/slider/themes/solar/charcoal/index.js +0 -1
- package/lib/slider/themes/solar/pearl/index.js +0 -1
- package/lib/slider/utils.d.ts +10 -10
- package/lib/slider/utils.js +10 -10
- package/lib/sparkline/index.d.ts +1 -1
- package/lib/sparkline/index.js +7 -8
- package/lib/sparkline/themes/halo/dark/index.js +0 -1
- package/lib/sparkline/themes/halo/light/index.js +0 -1
- package/lib/sparkline/themes/solar/charcoal/index.js +0 -1
- package/lib/sparkline/themes/solar/pearl/index.js +0 -1
- package/lib/swing-gauge/helpers.js +2 -2
- package/lib/swing-gauge/index.d.ts +19 -19
- package/lib/swing-gauge/index.js +91 -81
- package/lib/swing-gauge/themes/halo/dark/index.js +0 -1
- package/lib/swing-gauge/themes/halo/light/index.js +0 -1
- package/lib/swing-gauge/themes/solar/charcoal/index.js +0 -1
- package/lib/swing-gauge/themes/solar/pearl/index.js +0 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +16 -27
- package/lib/tab/themes/halo/dark/index.js +1 -2
- package/lib/tab/themes/halo/light/index.js +1 -2
- package/lib/tab/themes/solar/charcoal/index.js +1 -2
- package/lib/tab/themes/solar/pearl/index.js +1 -2
- package/lib/tab-bar/helpers/animate.js +1 -1
- package/lib/tab-bar/index.d.ts +1 -1
- package/lib/tab-bar/index.js +34 -18
- package/lib/tab-bar/themes/halo/dark/index.js +1 -2
- package/lib/tab-bar/themes/halo/light/index.js +1 -2
- package/lib/tab-bar/themes/solar/charcoal/index.js +0 -1
- package/lib/tab-bar/themes/solar/pearl/index.js +0 -1
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/index.js +36 -33
- package/lib/text-field/themes/halo/dark/index.js +0 -1
- package/lib/text-field/themes/halo/light/index.js +0 -1
- package/lib/text-field/themes/solar/charcoal/index.js +0 -1
- package/lib/text-field/themes/solar/pearl/index.js +0 -1
- package/lib/time-picker/index.d.ts +6 -6
- package/lib/time-picker/index.js +104 -90
- package/lib/time-picker/themes/halo/dark/index.js +0 -1
- package/lib/time-picker/themes/halo/light/index.js +0 -1
- package/lib/time-picker/themes/solar/charcoal/index.js +0 -1
- package/lib/time-picker/themes/solar/pearl/index.js +0 -1
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +4 -3
- package/lib/toggle/themes/halo/dark/index.js +1 -2
- package/lib/toggle/themes/halo/light/index.js +1 -2
- package/lib/toggle/themes/solar/charcoal/index.js +1 -2
- package/lib/toggle/themes/solar/pearl/index.js +1 -2
- package/lib/tooltip/elements/title-tooltip.js +2 -2
- package/lib/tooltip/helpers/renderer.d.ts +1 -1
- package/lib/tooltip/helpers/renderer.js +3 -3
- package/lib/tooltip/index.d.ts +27 -27
- package/lib/tooltip/index.js +42 -38
- package/lib/tooltip/managers/tooltip-manager.d.ts +1 -1
- package/lib/tooltip/themes/halo/dark/index.js +0 -1
- package/lib/tooltip/themes/halo/light/index.js +0 -1
- package/lib/tooltip/themes/solar/charcoal/index.js +0 -1
- package/lib/tooltip/themes/solar/pearl/index.js +0 -1
- package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
- package/lib/tornado-chart/elements/tornado-chart.js +1 -1
- package/lib/tornado-chart/elements/tornado-item.d.ts +2 -2
- package/lib/tornado-chart/elements/tornado-item.js +12 -10
- package/lib/tornado-chart/themes/halo/dark/index.js +0 -2
- package/lib/tornado-chart/themes/halo/light/index.js +0 -2
- package/lib/tornado-chart/themes/solar/charcoal/index.js +0 -2
- package/lib/tornado-chart/themes/solar/pearl/index.js +0 -2
- package/lib/tree/elements/tree-item.d.ts +3 -3
- package/lib/tree/elements/tree-item.js +21 -19
- package/lib/tree/elements/tree.d.ts +1 -1
- package/lib/tree/elements/tree.js +12 -11
- package/lib/tree/helpers/renderer.js +4 -3
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/managers/tree-manager.d.ts +1 -1
- package/lib/tree/managers/tree-manager.js +17 -18
- package/lib/tree/themes/halo/dark/index.js +0 -2
- package/lib/tree/themes/halo/light/index.js +0 -2
- package/lib/tree/themes/solar/charcoal/index.js +1 -3
- package/lib/tree/themes/solar/pearl/index.js +1 -3
- package/lib/tree-select/index.d.ts +9 -9
- package/lib/tree-select/index.js +91 -82
- package/lib/tree-select/themes/halo/dark/index.js +1 -2
- package/lib/tree-select/themes/halo/light/index.js +1 -2
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -2
- package/lib/tree-select/themes/solar/pearl/index.js +1 -2
- package/lib/version.js +1 -1
- package/package.json +19 -18
- package/tsconfig.tsbuildinfo +1 -0
- package/lib/config/custom-elements.json +0 -23
- package/lib/config/custom-elements.md +0 -8
- package/lib/config/helpers/context.js +0 -2
- package/lib/config/index.d.ts +0 -2
package/lib/icon/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { BasicElement, CSSResultGroup,
|
|
2
|
+
import { BasicElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import type { Config } from '../configuration/index.js';
|
|
3
4
|
export { preload } from './utils/IconLoader.js';
|
|
4
|
-
import { type Config } from '../config/index.js';
|
|
5
5
|
export declare class Icon extends BasicElement {
|
|
6
6
|
/**
|
|
7
7
|
* Element version number
|
|
@@ -9,7 +9,7 @@ export declare class Icon extends BasicElement {
|
|
|
9
9
|
*/
|
|
10
10
|
static get version(): string;
|
|
11
11
|
/**
|
|
12
|
-
* Icon map from ef-
|
|
12
|
+
* Icon map from ef-configuration
|
|
13
13
|
* @ignore
|
|
14
14
|
*/
|
|
15
15
|
config?: Config;
|
|
@@ -28,14 +28,24 @@ export declare class Icon extends BasicElement {
|
|
|
28
28
|
*/
|
|
29
29
|
get icon(): string | null;
|
|
30
30
|
set icon(value: string | null);
|
|
31
|
+
/**
|
|
32
|
+
* Deprecation notice displays a warning message
|
|
33
|
+
* when deprecated features are used.
|
|
34
|
+
*/
|
|
35
|
+
private deprecationNotice;
|
|
31
36
|
private _src;
|
|
32
37
|
/**
|
|
33
38
|
* Src location of an svg icon.
|
|
34
39
|
* @example https://cdn.io/icons/heart.svg
|
|
35
|
-
* @
|
|
40
|
+
* @ignore
|
|
36
41
|
* @default null
|
|
37
42
|
*/
|
|
38
43
|
get src(): string | null;
|
|
44
|
+
/**
|
|
45
|
+
* @param value - location of an svg icon.
|
|
46
|
+
* @ignore
|
|
47
|
+
* @default null
|
|
48
|
+
*/
|
|
39
49
|
set src(value: string | null);
|
|
40
50
|
private _template;
|
|
41
51
|
/**
|
|
@@ -44,8 +54,8 @@ export declare class Icon extends BasicElement {
|
|
|
44
54
|
private get template();
|
|
45
55
|
private set template(value);
|
|
46
56
|
/**
|
|
47
|
-
* Check if the
|
|
48
|
-
* @returns
|
|
57
|
+
* Check if the icon map configuration has content
|
|
58
|
+
* @returns icon map if exists
|
|
49
59
|
*/
|
|
50
60
|
private get iconMap();
|
|
51
61
|
/**
|
package/lib/icon/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { consume } from '@lit-labs/context';
|
|
3
|
+
import { BasicElement, DeprecationNotice, css, svg } from '@refinitiv-ui/core';
|
|
3
4
|
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
5
|
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
6
|
import { unsafeSVG } from '@refinitiv-ui/core/directives/unsafe-svg.js';
|
|
7
|
+
import { efConfig } from '../configuration/index.js';
|
|
6
8
|
import { VERSION } from '../version.js';
|
|
7
9
|
import { IconLoader } from './utils/IconLoader.js';
|
|
8
10
|
export { preload } from './utils/IconLoader.js';
|
|
9
|
-
import { consume } from '@lit-labs/context';
|
|
10
|
-
import { efConfig } from '../config/index.js';
|
|
11
11
|
const EmptyTemplate = svg ``;
|
|
12
12
|
/**
|
|
13
13
|
* Cache for reusing SVG template results across multiple icons.
|
|
@@ -19,6 +19,11 @@ let Icon = class Icon extends BasicElement {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
this._icon = null;
|
|
22
|
+
/**
|
|
23
|
+
* Deprecation notice displays a warning message
|
|
24
|
+
* when deprecated features are used.
|
|
25
|
+
*/
|
|
26
|
+
this.deprecationNotice = new DeprecationNotice('`src` attribute and property are deprecated. Use `icon` for attribute and property instead.');
|
|
22
27
|
this._src = null;
|
|
23
28
|
this._template = EmptyTemplate;
|
|
24
29
|
}
|
|
@@ -68,12 +73,17 @@ let Icon = class Icon extends BasicElement {
|
|
|
68
73
|
/**
|
|
69
74
|
* Src location of an svg icon.
|
|
70
75
|
* @example https://cdn.io/icons/heart.svg
|
|
71
|
-
* @
|
|
76
|
+
* @ignore
|
|
72
77
|
* @default null
|
|
73
78
|
*/
|
|
74
79
|
get src() {
|
|
75
80
|
return this._src;
|
|
76
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* @param value - location of an svg icon.
|
|
84
|
+
* @ignore
|
|
85
|
+
* @default null
|
|
86
|
+
*/
|
|
77
87
|
set src(value) {
|
|
78
88
|
if (this.src !== value) {
|
|
79
89
|
this._src = value;
|
|
@@ -85,6 +95,9 @@ let Icon = class Icon extends BasicElement {
|
|
|
85
95
|
void this.loadAndRenderIcon(value);
|
|
86
96
|
}
|
|
87
97
|
}
|
|
98
|
+
if (value && !this.icon) {
|
|
99
|
+
this.deprecationNotice.once();
|
|
100
|
+
}
|
|
88
101
|
}
|
|
89
102
|
/**
|
|
90
103
|
* The icon template to render
|
|
@@ -99,11 +112,11 @@ let Icon = class Icon extends BasicElement {
|
|
|
99
112
|
}
|
|
100
113
|
}
|
|
101
114
|
/**
|
|
102
|
-
* Check if the
|
|
103
|
-
* @returns
|
|
115
|
+
* Check if the icon map configuration has content
|
|
116
|
+
* @returns icon map if exists
|
|
104
117
|
*/
|
|
105
118
|
get iconMap() {
|
|
106
|
-
return this.icon && this.config?.icon.map[this.icon] || null;
|
|
119
|
+
return (this.icon && this.config?.icon.map[this.icon]) || null;
|
|
107
120
|
}
|
|
108
121
|
/**
|
|
109
122
|
* Called after the component is first rendered
|
|
@@ -134,8 +147,7 @@ let Icon = class Icon extends BasicElement {
|
|
|
134
147
|
async loadAndRenderIcon(src) {
|
|
135
148
|
const iconTemplateCacheItem = iconTemplateCache.get(src);
|
|
136
149
|
if (!iconTemplateCacheItem) {
|
|
137
|
-
iconTemplateCache.set(src, IconLoader.loadSVG(src)
|
|
138
|
-
.then(body => svg `${unsafeSVG(body)}`));
|
|
150
|
+
iconTemplateCache.set(src, IconLoader.loadSVG(src).then((body) => svg `${unsafeSVG(body)}`));
|
|
139
151
|
return this.loadAndRenderIcon(src); // Load again and await cache result
|
|
140
152
|
}
|
|
141
153
|
this.template = await iconTemplateCacheItem;
|
|
@@ -148,8 +160,7 @@ let Icon = class Icon extends BasicElement {
|
|
|
148
160
|
*/
|
|
149
161
|
setPrefix() {
|
|
150
162
|
if (!IconLoader.isPrefixSet) {
|
|
151
|
-
const CDNPrefix = this.getComputedVariable('--cdn-prefix')
|
|
152
|
-
.replace(/^('|")|('|")$/g, '');
|
|
163
|
+
const CDNPrefix = this.getComputedVariable('--cdn-prefix').replace(/^('|")|('|")$/g, '');
|
|
153
164
|
IconLoader.setCdnPrefix(CDNPrefix);
|
|
154
165
|
}
|
|
155
166
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
1
|
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-halo/resources/icons/\';--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-halo/resources/icons/\';font-size:16px}:host svg{pointer-events:none}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#334bff solid 1px}:host([icon]) circle,:host([icon]) ellipse,:host([icon]) g,:host([icon]) line,:host([icon]) path,:host([icon]) polygon,:host([icon]) polyline,:host([icon]) rect{vector-effect:non-scaling-stroke}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host([icon]) circle,:host([icon]) ellipse,:host([icon]) g,:host([icon]) line,:host([icon]) path,:host([icon]) polygon,:host([icon]) polyline,:host([icon]) rect{vector-effect:none;stroke-width:calc(16px/.01em)}}' }}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
1
|
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-halo/resources/icons/\';--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-halo/resources/icons/\';font-size:16px}:host svg{pointer-events:none}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#334bff solid 1px}:host([icon]) circle,:host([icon]) ellipse,:host([icon]) g,:host([icon]) line,:host([icon]) path,:host([icon]) polygon,:host([icon]) polyline,:host([icon]) rect{vector-effect:non-scaling-stroke}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host([icon]) circle,:host([icon]) ellipse,:host([icon]) g,:host([icon]) line,:host([icon]) path,:host([icon]) polygon,:host([icon]) polyline,:host([icon]) rect{vector-effect:none;stroke-width:calc(16px/.01em)}}' }}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
1
|
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-halo/resources/icons/\';--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-solar/resources/icons/\'}:host svg{pointer-events:none}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#f93 solid 1px}' }}));
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
1
|
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-icon', styles: ':host{--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-halo/resources/icons/\';--cdn-prefix:\'https://cdn.refinitiv.net/public/libs/elf/assets/elf-theme-solar/resources/icons/\'}:host svg{pointer-events:none}:host circle[fill]:not([fill=none]),:host ellipse[fill]:not([fill=none]),:host g[fill]:not([fill=none]),:host line[fill]:not([fill=none]),:host path[fill]:not([fill=none]),:host polygon[fill]:not([fill=none]),:host polyline[fill]:not([fill=none]),:host rect[fill]:not([fill=none]){fill:currentColor}:host circle[stroke]:not([stroke=none]),:host ellipse[stroke]:not([stroke=none]),:host g[stroke]:not([stroke=none]),:host line[stroke]:not([stroke=none]),:host path[stroke]:not([stroke=none]),:host polygon[stroke]:not([stroke=none]),:host polyline[stroke]:not([stroke=none]),:host rect[stroke]:not([stroke=none]){stroke:currentColor}:host([icon=powerpoint]){color:#ff3535}:host([icon=excel]){color:#00a626}:host([icon=pdf]){color:#ff3535}:host([icon=word]){color:#0094c4}:host([icon=twitter]){color:#1da1f2}:host([focused=visible]){outline:#ffb266 solid 1px}' }}));
|
|
@@ -8,6 +8,7 @@ declare class IconLoader extends SVGLoader {
|
|
|
8
8
|
declare const iconLoaderInstance: IconLoader;
|
|
9
9
|
export { iconLoaderInstance as IconLoader };
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated Icon `preload()` is deprecated.
|
|
11
12
|
* Helper function to preload set of icons.
|
|
12
13
|
* It could help to reduce icon loading delay when ef-icon has a known set of icons that it can use.
|
|
13
14
|
* @param attrs - list of arguments, representing icons.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeprecationNotice } from '@refinitiv-ui/core';
|
|
1
2
|
import { SVGLoader } from '@refinitiv-ui/utils/loader.js';
|
|
2
3
|
/**
|
|
3
4
|
* Caches and provides icon SVGs, Loaded either by name from CDN or directly by URL.
|
|
@@ -8,6 +9,12 @@ class IconLoader extends SVGLoader {
|
|
|
8
9
|
const iconLoaderInstance = new IconLoader();
|
|
9
10
|
export { iconLoaderInstance as IconLoader };
|
|
10
11
|
/**
|
|
12
|
+
* Deprecation notice displays a warning message
|
|
13
|
+
* when deprecated features are used.
|
|
14
|
+
*/
|
|
15
|
+
const deprecationNotice = new DeprecationNotice('Icon `preload()` is deprecated.');
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Icon `preload()` is deprecated.
|
|
11
18
|
* Helper function to preload set of icons.
|
|
12
19
|
* It could help to reduce icon loading delay when ef-icon has a known set of icons that it can use.
|
|
13
20
|
* @param attrs - list of arguments, representing icons.
|
|
@@ -15,5 +22,6 @@ export { iconLoaderInstance as IconLoader };
|
|
|
15
22
|
* @returns Array of promises, which will be resolved with SVG bodies.
|
|
16
23
|
*/
|
|
17
24
|
export const preload = (...attrs) => {
|
|
18
|
-
|
|
25
|
+
deprecationNotice.once();
|
|
26
|
+
return attrs.map((icon) => iconLoaderInstance.loadSVG(icon));
|
|
19
27
|
};
|
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
"description": "Set legend style i.e. `horizontal`, `vertical`.",
|
|
57
57
|
"type": "\"vertical\" | \"horizontal\"",
|
|
58
58
|
"default": "\"vertical\""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "chart",
|
|
62
|
+
"description": "lightweight-charts object",
|
|
63
|
+
"type": "IChartApi | null"
|
|
59
64
|
}
|
|
60
65
|
],
|
|
61
66
|
"events": [
|
|
@@ -7,6 +7,7 @@ By lightweight-charts library.
|
|
|
7
7
|
|
|
8
8
|
| Property | Attribute | Type | Default | Description |
|
|
9
9
|
|----------------------|------------------------|------------------------------|------------|-------------------------------------------------|
|
|
10
|
+
| `chart` | | `IChartApi \| null` | null | lightweight-charts object |
|
|
10
11
|
| `config` | `config` | `InteractiveChartConfig` | null | Chart configurations for init chart |
|
|
11
12
|
| `disabledJumpButton` | `disabled-jump-button` | `boolean` | false | Hide jump to latest data button |
|
|
12
13
|
| `disabledLegend` | `disabled-legend` | `boolean` | false | Hide legend |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { HSLColor, RGBColor } from '@refinitiv-ui/utils/color.js';
|
|
2
|
+
import type { AreaSeriesPartialOptions, AreaStyleOptions, BarData, BarSeriesPartialOptions, BarStyleOptions, CandlestickSeriesPartialOptions, CandlestickStyleOptions, ChartOptions, DeepPartial, HistogramData, HistogramSeriesPartialOptions, HistogramStyleOptions, ISeriesApi, LineData, LineSeriesPartialOptions, LineStyleOptions, SeriesPartialOptions, SeriesType } from 'lightweight-charts';
|
|
3
3
|
type SeriesOptions = AreaSeriesPartialOptions | BarSeriesPartialOptions | CandlestickSeriesPartialOptions | HistogramSeriesPartialOptions | LineSeriesPartialOptions;
|
|
4
4
|
type SeriesStyleOptions = LineStyleOptions & AreaStyleOptions & BarStyleOptions & CandlestickStyleOptions & HistogramStyleOptions;
|
|
5
5
|
type SeriesData = LineData[] | BarData[] | HistogramData[];
|
|
@@ -43,4 +43,4 @@ interface InteractiveChartSeries {
|
|
|
43
43
|
data: SeriesData;
|
|
44
44
|
seriesOptions?: SeriesPartialOptions<SeriesOptions>;
|
|
45
45
|
}
|
|
46
|
-
export { InteractiveChartConfig, InteractiveChartSeries, Time, Theme, RowLegend, SeriesList, SeriesDataItem, SeriesStyleOptions, ColorToStringFunction, LegendStyle };
|
|
46
|
+
export { InteractiveChartConfig, InteractiveChartSeries, Time, Theme, RowLegend, SeriesList, SeriesData, SeriesDataItem, SeriesOptions, SeriesStyleOptions, ColorToStringFunction, LegendStyle };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { ResponsiveElement, TemplateResult, CSSResultGroup, PropertyValues, ElementSize } from '@refinitiv-ui/core';
|
|
3
2
|
import { IChartApi, MouseEventParams } from 'lightweight-charts';
|
|
3
|
+
import { CSSResultGroup, ElementSize, PropertyValues, ResponsiveElement, TemplateResult } from '@refinitiv-ui/core';
|
|
4
4
|
import '../tooltip/index.js';
|
|
5
|
-
import type { InteractiveChartConfig, InteractiveChartSeries, RowLegend, SeriesList, SeriesDataItem } from './helpers/types';
|
|
6
5
|
import { LegendStyle } from './helpers/types.js';
|
|
7
|
-
|
|
6
|
+
import type { InteractiveChartConfig, InteractiveChartSeries, RowLegend, SeriesData, SeriesDataItem, SeriesList, SeriesOptions, SeriesStyleOptions, Theme, Time } from './helpers/types.js';
|
|
7
|
+
export type { InteractiveChartConfig, InteractiveChartSeries, Time, Theme, RowLegend, SeriesList, SeriesData, SeriesDataItem, SeriesOptions, SeriesStyleOptions, LegendStyle };
|
|
8
8
|
/**
|
|
9
9
|
* A charting component that allows you to create several use cases of financial chart.
|
|
10
10
|
* By lightweight-charts library.
|
|
@@ -26,7 +26,7 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
26
26
|
/**
|
|
27
27
|
* Chart configurations for init chart
|
|
28
28
|
* @type {InteractiveChartConfig}
|
|
29
|
-
|
|
29
|
+
*/
|
|
30
30
|
config: InteractiveChartConfig | null;
|
|
31
31
|
/**
|
|
32
32
|
* Hide legend
|
|
@@ -37,10 +37,10 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
37
37
|
*/
|
|
38
38
|
disabledJumpButton: boolean;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
* @deprecated `legendstyle` attribute is deprecated, use `legend-style` instead.
|
|
41
|
+
* @ignore
|
|
42
|
+
* Set legend style i.e. `horizontal`, `vertical`. Default is `vertical`.
|
|
43
|
+
**/
|
|
44
44
|
deprecatedLegendStyle: LegendStyle | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Set legend style i.e. `horizontal`, `vertical`.
|
|
@@ -51,19 +51,23 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
51
51
|
set legendStyle(value: LegendStyle);
|
|
52
52
|
get legendStyle(): LegendStyle;
|
|
53
53
|
/**
|
|
54
|
-
* Deprecation
|
|
54
|
+
* Deprecation notice displays a warning message
|
|
55
55
|
* when deprecated features are used.
|
|
56
|
-
|
|
56
|
+
*/
|
|
57
57
|
private deprecationNotice;
|
|
58
58
|
/**
|
|
59
59
|
* @ignore
|
|
60
60
|
* Array of series instances in chart
|
|
61
61
|
*/
|
|
62
62
|
seriesList: SeriesList[];
|
|
63
|
+
/**
|
|
64
|
+
* lightweight-charts object
|
|
65
|
+
* @type {IChartApi | null}
|
|
66
|
+
*/
|
|
67
|
+
chart: IChartApi | null;
|
|
63
68
|
private jumpButtonInitialized;
|
|
64
69
|
private legendInitialized;
|
|
65
70
|
private isCrosshairVisible;
|
|
66
|
-
protected chart: IChartApi | null;
|
|
67
71
|
protected rowLegend: RowLegend;
|
|
68
72
|
private timeScale;
|
|
69
73
|
private width;
|
|
@@ -107,9 +111,9 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
107
111
|
*/
|
|
108
112
|
resizedCallback(size: ElementSize): void;
|
|
109
113
|
/**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
* Legend value observer
|
|
115
|
+
* @returns {void}
|
|
116
|
+
*/
|
|
113
117
|
private onLegendChange;
|
|
114
118
|
/**
|
|
115
119
|
* Legend style observer
|
|
@@ -119,9 +123,9 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
119
123
|
*/
|
|
120
124
|
private onLegendStyleChange;
|
|
121
125
|
/**
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
* Jump last value observer
|
|
127
|
+
* @returns {void}
|
|
128
|
+
*/
|
|
125
129
|
private onJumpButtonChange;
|
|
126
130
|
/**
|
|
127
131
|
* update width and height of chart
|
|
@@ -190,15 +194,15 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
190
194
|
*/
|
|
191
195
|
private convertColorToString;
|
|
192
196
|
/**
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
* Create data configuration from theme
|
|
198
|
+
* @returns {void}
|
|
199
|
+
*/
|
|
196
200
|
private createSeriesOptions;
|
|
197
201
|
/**
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
+
* Apply Theme to chart
|
|
203
|
+
* @param config value config
|
|
204
|
+
* @returns {void}
|
|
205
|
+
*/
|
|
202
206
|
private applyTheme;
|
|
203
207
|
/**
|
|
204
208
|
* Apply text color legend from chart options
|
|
@@ -264,13 +268,13 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
264
268
|
*/
|
|
265
269
|
private createSpanOHLC;
|
|
266
270
|
/**
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
* Create text used by several series types such as bars or candlesticks
|
|
272
|
+
* @param rowLegend Legend element
|
|
273
|
+
* @param rowData Value of series
|
|
274
|
+
* @param priceColor color of series
|
|
275
|
+
* @param index Series index
|
|
276
|
+
* @returns {void}
|
|
277
|
+
*/
|
|
274
278
|
private createTextOHLC;
|
|
275
279
|
/**
|
|
276
280
|
* Create text price used by several series types
|
|
@@ -346,11 +350,11 @@ export declare class InteractiveChart extends ResponsiveElement {
|
|
|
346
350
|
*/
|
|
347
351
|
colors(): string[];
|
|
348
352
|
/**
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
353
|
+
* A `CSSResultGroup` that will be used
|
|
354
|
+
* to style the host, slotted children
|
|
355
|
+
* and the internal template of the element.
|
|
356
|
+
* @return CSS template
|
|
357
|
+
*/
|
|
354
358
|
static get styles(): CSSResultGroup;
|
|
355
359
|
/**
|
|
356
360
|
* A `TemplateResult` that will be used
|