@refinitiv-ui/elements 7.0.0-next.0 → 7.0.0-next.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.
- package/CHANGELOG.md +115 -0
- package/cli.mjs +21 -0
- package/lib/accordion/index.js +1 -10
- 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 +2 -8
- 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 +9 -32
- package/lib/autosuggest/index.js +112 -187
- package/lib/autosuggest/themes/halo/dark/index.js +1 -1
- package/lib/autosuggest/themes/halo/light/index.js +1 -1
- package/lib/autosuggest/themes/solar/charcoal/index.js +1 -1
- package/lib/autosuggest/themes/solar/pearl/index.js +1 -1
- 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 +1 -1
- 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 +0 -5
- package/lib/calendar/custom-elements.json +2 -2
- package/lib/calendar/custom-elements.md +4 -4
- package/lib/calendar/index.d.ts +9 -2
- package/lib/calendar/index.js +27 -29
- 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 +2 -13
- package/lib/calendar/utils.js +2 -20
- 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 +10 -9
- 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 +2 -1
- package/lib/card/index.js +5 -4
- package/lib/card/themes/halo/dark/index.js +1 -1
- package/lib/card/themes/halo/light/index.js +1 -1
- package/lib/card/themes/solar/charcoal/index.js +1 -1
- package/lib/card/themes/solar/pearl/index.js +1 -1
- package/lib/chart/bare.d.ts +1 -0
- package/lib/chart/bare.js +1 -0
- package/lib/chart/custom-elements.json +10 -5
- package/lib/chart/custom-elements.md +9 -8
- package/lib/chart/elements/chart.d.ts +182 -0
- package/lib/chart/elements/chart.js +509 -0
- package/lib/chart/helpers/index.d.ts +1 -1
- package/lib/chart/helpers/index.js +1 -1
- package/lib/chart/helpers/merge.d.ts +3 -3
- package/lib/chart/helpers/merge.js +1 -1
- package/lib/chart/helpers/types.d.ts +1 -66
- package/lib/chart/index.d.ts +1 -192
- package/lib/chart/index.js +5 -485
- package/lib/chart/plugins/doughnut-center-label.d.ts +22 -3
- package/lib/chart/plugins/doughnut-center-label.js +62 -51
- package/lib/chart/plugins/index.d.ts +1 -0
- package/lib/chart/plugins/index.js +1 -0
- 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 +1 -2
- package/lib/checkbox/themes/halo/dark/index.js +1 -1
- package/lib/checkbox/themes/halo/light/index.js +1 -1
- package/lib/checkbox/themes/solar/charcoal/index.js +1 -1
- package/lib/checkbox/themes/solar/pearl/index.js +1 -1
- 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 +2 -6
- 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 +7 -1
- package/lib/collapse/index.js +27 -30
- package/lib/collapse/themes/halo/dark/index.js +1 -1
- package/lib/collapse/themes/halo/light/index.js +1 -1
- package/lib/collapse/themes/solar/charcoal/index.js +1 -1
- package/lib/collapse/themes/solar/pearl/index.js +1 -1
- 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 +4 -5
- package/lib/color-dialog/index.d.ts +4 -4
- package/lib/color-dialog/index.js +4 -4
- 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 +3 -5
- 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 +15 -30
- 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/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/index.d.ts +2 -2
- package/lib/datetime-field/index.js +7 -12
- package/lib/datetime-field/types.d.ts +3 -3
- package/lib/datetime-field/utils.d.ts +2 -2
- package/lib/datetime-field/utils.js +2 -2
- 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 +9 -13
- 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 +2 -13
- package/lib/dialog/custom-elements.md +4 -5
- package/lib/dialog/index.d.ts +11 -43
- package/lib/dialog/index.js +21 -80
- package/lib/dialog/themes/halo/dark/index.js +1 -1
- package/lib/dialog/themes/halo/light/index.js +1 -1
- package/lib/dialog/themes/solar/charcoal/index.js +1 -1
- package/lib/dialog/themes/solar/pearl/index.js +1 -1
- 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 +5 -4
- 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/custom-elements.json +2 -14
- package/lib/flag/custom-elements.md +3 -6
- package/lib/flag/index.d.ts +21 -9
- package/lib/flag/index.js +43 -24
- 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/color.js +2 -1
- package/lib/heatmap/helpers/text.d.ts +1 -1
- package/lib/heatmap/helpers/text.js +1 -1
- package/lib/heatmap/helpers/types.d.ts +7 -7
- package/lib/heatmap/index.js +156 -140
- package/lib/icon/custom-elements.json +0 -13
- package/lib/icon/custom-elements.md +0 -1
- package/lib/icon/index.d.ts +20 -2
- package/lib/icon/index.js +41 -14
- package/lib/icon/themes/halo/dark/index.js +1 -1
- package/lib/icon/themes/halo/light/index.js +1 -1
- package/lib/icon/themes/solar/charcoal/index.js +1 -1
- package/lib/icon/themes/solar/pearl/index.js +1 -1
- 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 +5 -3
- 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 +2 -1
- package/lib/item/themes/halo/dark/index.js +1 -1
- package/lib/item/themes/halo/light/index.js +1 -1
- package/lib/item/themes/solar/charcoal/index.js +1 -1
- package/lib/item/themes/solar/pearl/index.js +1 -1
- package/lib/label/index.js +9 -34
- package/lib/layout/index.js +0 -13
- package/lib/led-gauge/index.js +7 -7
- 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 +4 -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/list/themes/halo/dark/index.js +2 -2
- package/lib/list/themes/halo/light/index.js +2 -2
- package/lib/list/themes/solar/charcoal/index.js +2 -2
- package/lib/list/themes/solar/pearl/index.js +2 -2
- 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 +8 -21
- 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.d.ts +2 -2
- package/lib/notification/elements/notification.js +2 -2
- 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 +4 -4
- package/lib/number-field/index.js +24 -19
- 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-backdrop.d.ts +1 -8
- package/lib/overlay/elements/overlay-backdrop.js +3 -13
- package/lib/overlay/elements/overlay-viewport.d.ts +1 -8
- package/lib/overlay/elements/overlay-viewport.js +3 -13
- package/lib/overlay/elements/overlay.d.ts +7 -15
- package/lib/overlay/elements/overlay.js +13 -55
- package/lib/overlay/helpers/types.d.ts +13 -13
- package/lib/overlay/managers/close-manager.d.ts +1 -1
- package/lib/overlay/managers/close-manager.js +6 -4
- package/lib/overlay/managers/focus-manager.js +2 -1
- package/lib/overlay/managers/interaction-lock-manager.js +1 -1
- package/lib/overlay/managers/viewport-manager.js +3 -0
- package/lib/overlay/managers/zindex-manager.d.ts +1 -1
- package/lib/overlay/managers/zindex-manager.js +1 -1
- package/lib/overlay/themes/halo/dark/index.js +1 -1
- package/lib/overlay/themes/halo/light/index.js +1 -1
- package/lib/overlay/themes/solar/charcoal/index.js +1 -1
- package/lib/overlay/themes/solar/pearl/index.js +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 +36 -42
- package/lib/overlay-menu/managers/menu-manager.d.ts +0 -1
- package/lib/overlay-menu/managers/menu-manager.js +1 -5
- package/lib/overlay-menu/themes/halo/dark/index.js +1 -1
- package/lib/overlay-menu/themes/halo/light/index.js +1 -1
- package/lib/overlay-menu/themes/solar/charcoal/index.js +1 -1
- package/lib/overlay-menu/themes/solar/pearl/index.js +1 -1
- 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 +3 -7
- 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/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 +2 -3
- 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 -2
- 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/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 +1 -6
- package/lib/radio-button/themes/halo/dark/index.js +1 -1
- package/lib/radio-button/themes/halo/light/index.js +1 -1
- package/lib/radio-button/themes/solar/charcoal/index.js +1 -1
- package/lib/radio-button/themes/solar/pearl/index.js +1 -1
- 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 +1 -5
- 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 +6 -7
- 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 +15 -20
- 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 +2 -3
- package/lib/sidebar-layout/themes/halo/dark/index.js +1 -1
- package/lib/sidebar-layout/themes/halo/light/index.js +1 -1
- package/lib/sidebar-layout/themes/solar/charcoal/index.js +1 -1
- package/lib/sidebar-layout/themes/solar/pearl/index.js +1 -1
- 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 +117 -111
- 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 +1 -1
- 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 +1 -5
- package/lib/tab-bar/themes/halo/dark/index.js +1 -1
- package/lib/tab-bar/themes/halo/light/index.js +1 -1
- 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 +4 -10
- package/lib/text-field/index.js +11 -26
- 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 +19 -20
- 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 -5
- 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/elements/tooltip-element.js +1 -1
- package/lib/tooltip/helpers/types.d.ts +10 -10
- package/lib/tooltip/index.js +5 -4
- package/lib/tooltip/managers/tooltip-manager.js +2 -5
- package/lib/tornado-chart/elements/tornado-item.js +8 -9
- package/lib/tornado-chart/themes/halo/dark/index.js +2 -2
- package/lib/tornado-chart/themes/halo/light/index.js +2 -2
- 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.d.ts +2 -2
- package/lib/tree/elements/tree.js +2 -4
- 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/themes/halo/dark/index.js +2 -2
- package/lib/tree/themes/halo/light/index.js +2 -2
- package/lib/tree/themes/solar/charcoal/index.js +2 -2
- package/lib/tree/themes/solar/pearl/index.js +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 +23 -23
- 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 +32 -30
- package/lib/chart/helpers/legend.d.ts +0 -5
- package/lib/chart/helpers/legend.js +0 -78
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,121 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.8.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.8.1...@refinitiv-ui/elements@6.8.2) (2023-05-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove `z-index` from collapse implementation ([#682](https://github.com/Refinitiv/refinitiv-ui/issues/682)) ([c3b6f76](https://github.com/Refinitiv/refinitiv-ui/commit/c3b6f76b178a0339de8f3bc153e1378398d68831))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [6.8.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.8.0...@refinitiv-ui/elements@6.8.1) (2023-05-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @refinitiv-ui/elements
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [6.8.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.7.3...@refinitiv-ui/elements@6.8.0) (2023-05-08)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* remove font bold ([#665](https://github.com/Refinitiv/refinitiv-ui/issues/665)) ([a8f9015](https://github.com/Refinitiv/refinitiv-ui/commit/a8f9015ac194c8f6125220eea4689f10f43a9e23))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [6.7.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.7.2...@refinitiv-ui/elements@6.7.3) (2023-04-21)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* **calendar:** unexpected `blur` event fired when view changes ([#655](https://github.com/Refinitiv/refinitiv-ui/issues/655)) ([fae9141](https://github.com/Refinitiv/refinitiv-ui/commit/fae9141ed0e0832fc51175bfc3e90dbb35d82497))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [6.7.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.7.1...@refinitiv-ui/elements@6.7.2) (2023-03-23)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* **card:** Card can not expand nested overlay-menu in touch devices ([#623](https://github.com/Refinitiv/refinitiv-ui/issues/623)) ([09a95c6](https://github.com/Refinitiv/refinitiv-ui/commit/09a95c665b1622b7112da12cf8fb138d0738a5b5))
|
|
53
|
+
* **tooltip:** fix missing tooltip in consecutive buttons ([#601](https://github.com/Refinitiv/refinitiv-ui/issues/601)) ([be77306](https://github.com/Refinitiv/refinitiv-ui/commit/be773067b542cafdcdbec92ba660d8464cc7f422))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [6.7.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.7.0...@refinitiv-ui/elements@6.7.1) (2023-03-14)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* **tooltip:** custom renderer demo block ([#621](https://github.com/Refinitiv/refinitiv-ui/issues/621)) ([3156ccd](https://github.com/Refinitiv/refinitiv-ui/commit/3156ccdad5d369955c63830b50e1dcd25265744c))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# [6.7.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.6.2...@refinitiv-ui/elements@6.7.0) (2023-02-27)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Features
|
|
74
|
+
|
|
75
|
+
* **heatmap:** increase heatmap font-size threshold & scaling factor and decrease cell padding ([#589](https://github.com/Refinitiv/refinitiv-ui/issues/589)) ([31f5b57](https://github.com/Refinitiv/refinitiv-ui/commit/31f5b57df0ec2b1f1d25c9c27e0be35f8c7f3812))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## [6.6.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.6.1...@refinitiv-ui/elements@6.6.2) (2023-02-14)
|
|
82
|
+
|
|
83
|
+
### Bug Fixes
|
|
84
|
+
|
|
85
|
+
* **combo-box:** fix value-changed event of free text mode ([#583](https://github.com/Refinitiv/refinitiv-ui/pull/583)) ([bae20f0](https://github.com/Refinitiv/refinitiv-ui/commit/bae20f0854d9f95d8c10985f8b2c5a9619922004))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## [6.6.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.6.0...@refinitiv-ui/elements@6.6.1) (2023-01-27)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Bug Fixes
|
|
95
|
+
|
|
96
|
+
* **list:** error custom renderer requires key ([#575](https://github.com/Refinitiv/refinitiv-ui/issues/575)) ([1a960c9](https://github.com/Refinitiv/refinitiv-ui/commit/1a960c9234fb4a370b60d3901e65b437b1444823))
|
|
97
|
+
* **pagination, tree-select:** remove unused element imports ([#572](https://github.com/Refinitiv/refinitiv-ui/issues/572)) ([0bfc2f5](https://github.com/Refinitiv/refinitiv-ui/commit/0bfc2f5eccd0a6ea50c3927d71d545df20c79d90))
|
|
98
|
+
* **select:** unset cursor of header items ([#571](https://github.com/Refinitiv/refinitiv-ui/issues/571)) ([eff8a75](https://github.com/Refinitiv/refinitiv-ui/commit/eff8a75a68f23348178f05c716db673c97acf2f1))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
# [6.6.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.3...@refinitiv-ui/elements@6.6.0) (2023-01-06)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Bug Fixes
|
|
108
|
+
|
|
109
|
+
* **chart:** change chart property access modifier from private to public ([#565](https://github.com/Refinitiv/refinitiv-ui/issues/565)) ([a25a506](https://github.com/Refinitiv/refinitiv-ui/commit/a25a506e334dead2004ebaca4a815bbf284e9990))
|
|
110
|
+
* **color-dialog:** can not change between default and black color ([#557](https://github.com/Refinitiv/refinitiv-ui/issues/557)) ([27d9f2c](https://github.com/Refinitiv/refinitiv-ui/commit/27d9f2c81336c5cc4ba5bde1b7e5b3918f8c78c8))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Features
|
|
114
|
+
|
|
115
|
+
* remove alias ([#553](https://github.com/Refinitiv/refinitiv-ui/issues/553)) ([32ce300](https://github.com/Refinitiv/refinitiv-ui/commit/32ce300e6ea0f730abd95f305b15cce406dab1c7))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
6
121
|
## [6.5.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.2...@refinitiv-ui/elements@6.5.3) (2022-12-19)
|
|
7
122
|
|
|
8
123
|
|
package/cli.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import yargs from 'yargs/yargs';
|
|
3
|
+
import { hideBin } from 'yargs/helpers';
|
|
4
|
+
import { errorHandler, info } from './scripts/helpers/index.mjs';
|
|
5
|
+
import { commands } from './scripts/cmd/index.mjs';
|
|
6
|
+
|
|
7
|
+
yargs(hideBin(process.argv))
|
|
8
|
+
.usage('Element Framework CLI Commands\n\nUsage: $0 <command> [options]')
|
|
9
|
+
.command(commands)
|
|
10
|
+
.demandCommand(1, 'You need at least one command.')
|
|
11
|
+
.version(false)
|
|
12
|
+
.help('help').alias('help', 'h')
|
|
13
|
+
.fail(function (msg, err, yargs) {
|
|
14
|
+
if (msg) {
|
|
15
|
+
errorHandler(msg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
info('\nSpecify --help for available options.\n');
|
|
19
|
+
process.exit(1);
|
|
20
|
+
})
|
|
21
|
+
.parse();
|
package/lib/accordion/index.js
CHANGED
|
@@ -6,20 +6,11 @@ import { VERSION } from '../version.js';
|
|
|
6
6
|
import { Collapse } from '../collapse/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Finds closest accordion parent of element.
|
|
9
|
-
* Created, because IE11 doesn't support closest() method.
|
|
10
9
|
* @param element - potential child of accordion
|
|
11
10
|
* @returns found accordion parent or null, if not found
|
|
12
11
|
*/
|
|
13
12
|
const getClosestAccordion = (element) => {
|
|
14
|
-
|
|
15
|
-
if (element instanceof Accordion) {
|
|
16
|
-
return element;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
element = element.parentElement;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
13
|
+
return element.closest('ef-accordion');
|
|
23
14
|
};
|
|
24
15
|
/**
|
|
25
16
|
* Checks if specified element is a direct child of current accordion.
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"events": [
|
|
36
36
|
{
|
|
37
37
|
"name": "clear",
|
|
38
|
-
"description": "
|
|
38
|
+
"description": "Fired when the user taps clear button."
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
41
|
"slots": [
|
|
42
42
|
{
|
|
43
43
|
"name": "right",
|
|
44
|
-
"description": "
|
|
44
|
+
"description": "Place custom content on the right of bar."
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
}
|
|
@@ -11,12 +11,12 @@ Used to display at the top of application to provide a status or information.
|
|
|
11
11
|
|
|
12
12
|
## Events
|
|
13
13
|
|
|
14
|
-
| Event | Description
|
|
15
|
-
|
|
16
|
-
| `clear` |
|
|
14
|
+
| Event | Description |
|
|
15
|
+
|---------|----------------------------------------|
|
|
16
|
+
| `clear` | Fired when the user taps clear button. |
|
|
17
17
|
|
|
18
18
|
## Slots
|
|
19
19
|
|
|
20
20
|
| Name | Description |
|
|
21
21
|
|---------|-------------------------------------------|
|
|
22
|
-
| `right` |
|
|
22
|
+
| `right` | Place custom content on the right of bar. |
|
|
@@ -5,9 +5,9 @@ import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
|
|
|
5
5
|
import '../icon/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Used to display at the top of application to provide a status or information.
|
|
8
|
-
* @slot right -
|
|
8
|
+
* @slot right - Place custom content on the right of bar.
|
|
9
9
|
*
|
|
10
|
-
* @fires clear -
|
|
10
|
+
* @fires clear - Fired when the user taps clear button.
|
|
11
11
|
*/
|
|
12
12
|
export declare class AppstateBar extends BasicElement {
|
|
13
13
|
/**
|
|
@@ -8,9 +8,9 @@ import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
|
|
|
8
8
|
import '../icon/index.js';
|
|
9
9
|
/**
|
|
10
10
|
* Used to display at the top of application to provide a status or information.
|
|
11
|
-
* @slot right -
|
|
11
|
+
* @slot right - Place custom content on the right of bar.
|
|
12
12
|
*
|
|
13
|
-
* @fires clear -
|
|
13
|
+
* @fires clear - Fired when the user taps clear button.
|
|
14
14
|
*/
|
|
15
15
|
let AppstateBar = class AppstateBar extends BasicElement {
|
|
16
16
|
constructor() {
|
|
@@ -32,12 +32,6 @@ let AppstateBar = class AppstateBar extends BasicElement {
|
|
|
32
32
|
this.clear = (event) => {
|
|
33
33
|
event.stopPropagation();
|
|
34
34
|
this.style.display = 'none';
|
|
35
|
-
/**
|
|
36
|
-
* Clear Event
|
|
37
|
-
* Fired when clear button is clicked
|
|
38
|
-
*
|
|
39
|
-
* @event clear
|
|
40
|
-
*/
|
|
41
35
|
this.dispatchEvent(new CustomEvent('clear'));
|
|
42
36
|
};
|
|
43
37
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/dark';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#CCCCCC;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#404040;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#CCCCCC;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#404040;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12px;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#CCCCCC;--background-color:#262626}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/light';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#0D0D0D;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#595959;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#0D0D0D;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#595959;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12px;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#0D0D0D;--background-color:#F2F2F2;--border-color:#CCCCCC}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#E2E2E2;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#4A4A52;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#E2E2E2;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#4A4A52;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14px;--heading-text-color:#46A0F0;--heading-background-color:#142E45;--text-color:#C2C2C2;--background-color:#0F2233;--border-color:#000000;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#000000;--heading-background-color:#FF9933}:host([state=info]){--heading-background-color:#b35900;--heading-text-color:#C2C2C2;--heading-background-color:#282E33}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/pearl';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#484848;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#A9AFBA;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#484848;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#A9AFBA;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14px;--heading-text-color:#FFFFFF;--heading-background-color:#2A6090;--text-color:#484848;--background-color:#C1E3FE;--border-color:#FFFFFF;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#FFFFFF;--heading-background-color:#CC7F33}:host([state=info]){--heading-background-color:#EE7600;--heading-text-color:#FFFFFF;--heading-background-color:#666570}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
|
|
@@ -136,35 +136,35 @@
|
|
|
136
136
|
"events": [
|
|
137
137
|
{
|
|
138
138
|
"name": "item-highlight",
|
|
139
|
-
"description": "Fired when an item
|
|
139
|
+
"description": "Fired when the user highlights an item or removes highlight from the item."
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"name": "add-attach-target-events",
|
|
143
|
-
"description": "Fired when attach has been set"
|
|
143
|
+
"description": "Fired when `attach` has been set to bind the control with any custom inputs."
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"name": "remove-attach-target-events",
|
|
147
|
-
"description": "Fired when attach has been removed"
|
|
147
|
+
"description": "Fired when `attach` has been removed to unbind the control with the inputs."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "item-select",
|
|
151
|
-
"description": "Fired when an item
|
|
151
|
+
"description": "Fired when the user selects an item on autosuggest."
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "suggestions-fetch-requested",
|
|
155
|
-
"description": "Fired when
|
|
155
|
+
"description": "Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed."
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"name": "suggestions-clear-requested",
|
|
159
|
-
"description": "Fired when
|
|
159
|
+
"description": "Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []."
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "suggestions-query",
|
|
163
|
-
"description": "Fired when
|
|
163
|
+
"description": "Fired when the user changes value in input control and you might need to update suggestion items accordingly."
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"name": "suggestions-changed",
|
|
167
|
-
"description": "Fired when
|
|
167
|
+
"description": "Fired when suggestion items changed."
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
"slots": [
|
|
@@ -37,14 +37,14 @@ custom rendering, pagination, asynchronous data request, etc.
|
|
|
37
37
|
|
|
38
38
|
| Event | Description |
|
|
39
39
|
|-------------------------------|--------------------------------------------------|
|
|
40
|
-
| `add-attach-target-events` | Fired when attach has been set
|
|
41
|
-
| `item-highlight` | Fired when an item
|
|
42
|
-
| `item-select` | Fired when an item
|
|
43
|
-
| `remove-attach-target-events` | Fired when attach has been removed
|
|
44
|
-
| `suggestions-changed` | Fired when
|
|
45
|
-
| `suggestions-clear-requested` | Fired when
|
|
46
|
-
| `suggestions-fetch-requested` | Fired when
|
|
47
|
-
| `suggestions-query` | Fired when
|
|
40
|
+
| `add-attach-target-events` | Fired when `attach` has been set to bind the control with any custom inputs. |
|
|
41
|
+
| `item-highlight` | Fired when the user highlights an item or removes highlight from the item. |
|
|
42
|
+
| `item-select` | Fired when the user selects an item on autosuggest. |
|
|
43
|
+
| `remove-attach-target-events` | Fired when `attach` has been removed to unbind the control with the inputs. |
|
|
44
|
+
| `suggestions-changed` | Fired when suggestion items changed. |
|
|
45
|
+
| `suggestions-clear-requested` | Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []. |
|
|
46
|
+
| `suggestions-fetch-requested` | Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed. |
|
|
47
|
+
| `suggestions-query` | Fired when the user changes value in input control and you might need to update suggestion items accordingly. |
|
|
48
48
|
|
|
49
49
|
## Slots
|
|
50
50
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { ItemType } from '../../item';
|
|
2
|
-
export
|
|
2
|
+
export type AutosuggestSelectItemEvent = CustomEvent<{
|
|
3
3
|
query: string;
|
|
4
4
|
suggestion: Suggestion;
|
|
5
5
|
}>;
|
|
6
|
-
export
|
|
6
|
+
export type AutosuggestHighlightItem = HTMLElement & {
|
|
7
7
|
highlighted: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type AutosuggestHighlightItemEvent = CustomEvent<{
|
|
10
10
|
target: AutosuggestHighlightItem;
|
|
11
11
|
oldTarget: AutosuggestHighlightItem;
|
|
12
12
|
}>;
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type AutosuggestQueryAction = (event: CustomEvent) => void;
|
|
14
|
+
export type AutosuggestReason = 'value-changed' | 'input-focus' | 'suggestions-revealed' | 'escape-pressed' | 'enter-pressed' | 'more-results';
|
|
15
15
|
export interface Suggestion {
|
|
16
16
|
/**
|
|
17
17
|
* Type of item. Value can be `text`, `header`, `divider`
|
|
@@ -46,21 +46,21 @@ export interface Suggestion {
|
|
|
46
46
|
*/
|
|
47
47
|
id?: string;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export type AutosuggestItem = Suggestion | string | unknown;
|
|
50
50
|
export interface AutosuggestQuery {
|
|
51
51
|
toString(): string;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type AutosuggestTargetElement = HTMLElement & {
|
|
54
54
|
value: string;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
56
|
+
export type AutosuggestMethodType = 'click' | 'enter' | 'clear' | 'reset' | 'navigation';
|
|
57
|
+
export type AutosuggestRenderer = (suggestion: AutosuggestItem, query: AutosuggestQuery | null) => HTMLElement;
|
|
58
|
+
export type AutosuggestHighlightable = (suggestion: AutosuggestItem, target: HTMLElement) => boolean;
|
|
59
59
|
/**
|
|
60
60
|
* @event item-highlight
|
|
61
61
|
* Fired when an item gets highlighted or highlight is removed
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type ItemHighlightEvent = CustomEvent<{
|
|
64
64
|
/**
|
|
65
65
|
* New highlight target
|
|
66
66
|
*/
|
|
@@ -83,18 +83,18 @@ export declare type ItemHighlightEvent = CustomEvent<{
|
|
|
83
83
|
* Fired when attach has been set.
|
|
84
84
|
* Add attach target listeners
|
|
85
85
|
*/
|
|
86
|
-
export
|
|
86
|
+
export type AddAttachTargetEventsEvent = CustomEvent;
|
|
87
87
|
/**
|
|
88
88
|
* @event remove-attach-target-events
|
|
89
89
|
* Fired when attach has been removed.
|
|
90
90
|
* Remove attach target listeners
|
|
91
91
|
*/
|
|
92
|
-
export
|
|
92
|
+
export type RemoveAttachTargetEventsEvent = CustomEvent;
|
|
93
93
|
/**
|
|
94
94
|
* @event item-select
|
|
95
95
|
* Fired when an item gets selected
|
|
96
96
|
*/
|
|
97
|
-
export
|
|
97
|
+
export type ItemSelectEvent = CustomEvent<{
|
|
98
98
|
/**
|
|
99
99
|
* Select method
|
|
100
100
|
*/
|
|
@@ -116,7 +116,7 @@ export declare type ItemSelectEvent = CustomEvent<{
|
|
|
116
116
|
* @event suggestions-fetch-requested
|
|
117
117
|
* Fired when auto suggest requests the data
|
|
118
118
|
*/
|
|
119
|
-
export
|
|
119
|
+
export type SuggestionsFetchRequestedEvent = CustomEvent<{
|
|
120
120
|
/**
|
|
121
121
|
* Input query
|
|
122
122
|
*/
|
|
@@ -131,12 +131,12 @@ export declare type SuggestionsFetchRequestedEvent = CustomEvent<{
|
|
|
131
131
|
* Fired when auto suggest requests to clear the data.
|
|
132
132
|
* If used in reactive application, prevent default and set suggestions to []
|
|
133
133
|
*/
|
|
134
|
-
export
|
|
134
|
+
export type SuggestionsClearRequestedEvent = CustomEvent;
|
|
135
135
|
/**
|
|
136
136
|
* @event suggestions-query
|
|
137
137
|
* Fired when input value has changed and the query must be set.
|
|
138
138
|
*/
|
|
139
|
-
export
|
|
139
|
+
export type SuggestionsQueryEvent = CustomEvent<{
|
|
140
140
|
/**
|
|
141
141
|
* The reason to request query
|
|
142
142
|
*/
|
|
@@ -146,7 +146,7 @@ export declare type SuggestionsQueryEvent = CustomEvent<{
|
|
|
146
146
|
* @event suggestions-changed
|
|
147
147
|
* Fired when suggestions changed
|
|
148
148
|
*/
|
|
149
|
-
export
|
|
149
|
+
export type SuggestionsChangedEvent = CustomEvent<{
|
|
150
150
|
/**
|
|
151
151
|
* Suggestion Items
|
|
152
152
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { CSSResultGroup,
|
|
2
|
+
import { CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
3
|
import { TranslateDirective } from '@refinitiv-ui/translate';
|
|
4
4
|
import type { AutosuggestTargetElement, AutosuggestHighlightable, AutosuggestMethodType, AutosuggestQuery, AutosuggestRenderer, AutosuggestReason, AutosuggestItem, AutosuggestSelectItemEvent, AutosuggestHighlightItemEvent } from './helpers/types';
|
|
5
5
|
import { escapeRegExp, itemHighlightable, queryWordSelect } from './helpers/utils.js';
|
|
@@ -19,14 +19,14 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
|
|
|
19
19
|
* Autosuggest supports various use cases such as
|
|
20
20
|
* custom rendering, pagination, asynchronous data request, etc.
|
|
21
21
|
*
|
|
22
|
-
* @fires item-highlight Fired when an item
|
|
23
|
-
* @fires add-attach-target-events Fired when attach has been set
|
|
24
|
-
* @fires remove-attach-target-events Fired when attach has been removed
|
|
25
|
-
* @fires item-select Fired when an item
|
|
26
|
-
* @fires suggestions-fetch-requested Fired when
|
|
27
|
-
* @fires suggestions-clear-requested Fired when
|
|
28
|
-
* @fires suggestions-query Fired when
|
|
29
|
-
* @fires suggestions-changed Fired when
|
|
22
|
+
* @fires item-highlight - Fired when the user highlights an item or removes highlight from the item.
|
|
23
|
+
* @fires add-attach-target-events - Fired when `attach` has been set to bind the control with any custom inputs.
|
|
24
|
+
* @fires remove-attach-target-events - Fired when `attach` has been removed to unbind the control with the inputs.
|
|
25
|
+
* @fires item-select - Fired when the user selects an item on autosuggest.
|
|
26
|
+
* @fires suggestions-fetch-requested - Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed.
|
|
27
|
+
* @fires suggestions-clear-requested - Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [].
|
|
28
|
+
* @fires suggestions-query - Fired when the user changes value in input control and you might need to update suggestion items accordingly.
|
|
29
|
+
* @fires suggestions-changed - Fired when suggestion items changed.
|
|
30
30
|
*
|
|
31
31
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
32
32
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
|
@@ -144,7 +144,6 @@ export declare class Autosuggest extends Overlay {
|
|
|
144
144
|
private lastActiveElement;
|
|
145
145
|
private suspendedKey;
|
|
146
146
|
private preservedQueryValue;
|
|
147
|
-
private focusSuspended;
|
|
148
147
|
private jobRunner;
|
|
149
148
|
private attachChangeRunner;
|
|
150
149
|
private moreResultsRunner;
|
|
@@ -178,13 +177,6 @@ export declare class Autosuggest extends Overlay {
|
|
|
178
177
|
* @returns {void}
|
|
179
178
|
*/
|
|
180
179
|
onInputKeyDown(event: KeyboardEvent): void;
|
|
181
|
-
/**
|
|
182
|
-
* @ignore
|
|
183
|
-
* Called when the element's dimensions have changed
|
|
184
|
-
* @param size dimension details
|
|
185
|
-
* @returns {void}
|
|
186
|
-
*/
|
|
187
|
-
resizedCallback(size: ElementSize): void;
|
|
188
180
|
/**
|
|
189
181
|
* Called once after the component is first rendered
|
|
190
182
|
* @param changedProperties map of changed properties with old values
|
|
@@ -203,9 +195,6 @@ export declare class Autosuggest extends Overlay {
|
|
|
203
195
|
* @returns {void}
|
|
204
196
|
*/
|
|
205
197
|
protected updated(changedProperties: PropertyValues): void;
|
|
206
|
-
/**
|
|
207
|
-
* inheritance callbacks
|
|
208
|
-
*/
|
|
209
198
|
/**
|
|
210
199
|
* Run when the slot has changed.
|
|
211
200
|
* @param event Slot change query
|
|
@@ -511,18 +500,6 @@ export declare class Autosuggest extends Overlay {
|
|
|
511
500
|
* @return Render template
|
|
512
501
|
*/
|
|
513
502
|
protected render(): TemplateResult;
|
|
514
|
-
/**
|
|
515
|
-
* IE11 only: Restrict maximum height of content element
|
|
516
|
-
* @param [maxHeight] Maximum height of content element
|
|
517
|
-
* @returns {void}
|
|
518
|
-
*/
|
|
519
|
-
private restrictContentMaxHeight;
|
|
520
|
-
/**
|
|
521
|
-
* IE11 only: Calculate the maxHeight of content element
|
|
522
|
-
* @param size Size of the dialog
|
|
523
|
-
* @returns {void}
|
|
524
|
-
*/
|
|
525
|
-
private calculateContentMaxHeight;
|
|
526
503
|
}
|
|
527
504
|
declare global {
|
|
528
505
|
interface HTMLElementTagNameMap {
|