@refinitiv-ui/elements 5.0.0-beta.3 → 5.0.0-dev.204
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 +325 -73
- package/README.md +13 -2
- package/lib/accordion/custom-elements.json +0 -13
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/accordion/index.d.ts +13 -10
- package/lib/accordion/index.js +15 -18
- package/lib/appstate-bar/custom-elements.json +1 -1
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/appstate-bar/index.d.ts +15 -6
- package/lib/appstate-bar/index.js +17 -11
- package/lib/autosuggest/custom-elements.json +24 -4
- package/lib/autosuggest/custom-elements.md +54 -0
- package/lib/autosuggest/helpers/types.d.ts +22 -1
- package/lib/autosuggest/helpers/types.js +0 -1
- package/lib/autosuggest/helpers/utils.d.ts +2 -2
- package/lib/autosuggest/helpers/utils.js +1 -3
- package/lib/autosuggest/index.d.ts +21 -9
- package/lib/autosuggest/index.js +45 -31
- package/lib/button/custom-elements.json +3 -3
- package/lib/button/custom-elements.md +23 -0
- package/lib/button/index.d.ts +27 -20
- package/lib/button/index.js +92 -74
- package/lib/button/themes/halo/dark/index.js +1 -1
- package/lib/button/themes/halo/light/index.js +1 -1
- package/lib/button/themes/solar/charcoal/index.js +1 -1
- package/lib/button/themes/solar/pearl/index.js +1 -1
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/button-bar/index.d.ts +60 -4
- package/lib/button-bar/index.js +164 -19
- package/lib/calendar/constants.d.ts +26 -0
- package/lib/calendar/constants.js +28 -0
- package/lib/calendar/custom-elements.json +8 -6
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +119 -21
- package/lib/calendar/index.js +512 -157
- package/lib/calendar/locales.d.ts +1 -31
- package/lib/calendar/locales.js +3 -107
- 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 +12 -13
- package/lib/calendar/types.js +1 -7
- package/lib/calendar/utils.d.ts +31 -1
- package/lib/calendar/utils.js +105 -3
- package/lib/canvas/custom-elements.json +9 -7
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +14 -6
- package/lib/canvas/index.js +17 -12
- package/lib/card/custom-elements.json +21 -9
- package/lib/card/custom-elements.md +24 -0
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/helpers/types.js +0 -1
- package/lib/card/index.d.ts +67 -20
- package/lib/card/index.js +132 -35
- 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/custom-elements.json +3 -3
- package/lib/chart/custom-elements.md +16 -0
- package/lib/chart/helpers/index.d.ts +2 -0
- package/lib/chart/helpers/index.js +2 -0
- package/lib/chart/helpers/legend.d.ts +2 -2
- package/lib/chart/helpers/legend.js +2 -3
- package/lib/chart/helpers/merge.d.ts +15 -0
- package/lib/chart/helpers/merge.js +28 -0
- package/lib/chart/helpers/types.d.ts +40 -12
- package/lib/chart/helpers/types.js +0 -1
- package/lib/chart/index.d.ts +34 -26
- package/lib/chart/index.js +58 -55
- package/lib/chart/plugins/doughnut-center-label.js +4 -5
- package/lib/checkbox/custom-elements.json +4 -4
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +29 -14
- package/lib/checkbox/index.js +65 -34
- package/lib/checkbox/themes/halo/dark/index.js +1 -1
- package/lib/checkbox/themes/halo/light/index.js +1 -1
- package/lib/clock/custom-elements.json +21 -4
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +25 -6
- package/lib/clock/index.js +44 -18
- package/lib/clock/themes/halo/dark/index.js +1 -1
- package/lib/clock/themes/halo/light/index.js +1 -1
- package/lib/clock/themes/solar/charcoal/index.js +1 -1
- package/lib/clock/themes/solar/pearl/index.js +1 -1
- package/lib/clock/utils/TickManager.js +2 -3
- package/lib/clock/utils/timestamps.js +0 -1
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/collapse/index.d.ts +15 -8
- package/lib/collapse/index.js +18 -13
- package/lib/color-dialog/custom-elements.json +29 -16
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/color-dialog/elements/color-palettes.d.ts +13 -6
- package/lib/color-dialog/elements/color-palettes.js +16 -13
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +13 -6
- package/lib/color-dialog/elements/grayscale-palettes.js +17 -13
- package/lib/color-dialog/elements/palettes.d.ts +15 -3
- package/lib/color-dialog/elements/palettes.js +65 -45
- package/lib/color-dialog/helpers/color-helpers.d.ts +7 -53
- package/lib/color-dialog/helpers/color-helpers.js +12 -110
- package/lib/color-dialog/helpers/value-model.d.ts +1 -1
- package/lib/color-dialog/helpers/value-model.js +18 -17
- package/lib/color-dialog/index.d.ts +27 -20
- package/lib/color-dialog/index.js +54 -45
- package/lib/combo-box/custom-elements.json +51 -17
- package/lib/combo-box/custom-elements.md +42 -0
- package/lib/combo-box/helpers/filter.d.ts +4 -4
- package/lib/combo-box/helpers/filter.js +0 -1
- package/lib/combo-box/helpers/keyboard-event.js +0 -1
- package/lib/combo-box/helpers/renderer.d.ts +8 -0
- package/lib/combo-box/helpers/renderer.js +24 -0
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/helpers/types.js +0 -1
- package/lib/combo-box/index.d.ts +63 -32
- package/lib/combo-box/index.js +102 -60
- package/lib/combo-box/themes/halo/dark/index.js +2 -3
- package/lib/combo-box/themes/halo/light/index.js +2 -3
- package/lib/combo-box/themes/solar/charcoal/index.js +2 -3
- package/lib/combo-box/themes/solar/pearl/index.js +2 -3
- package/lib/counter/custom-elements.json +39 -0
- package/lib/counter/custom-elements.md +11 -0
- package/lib/counter/index.d.ts +91 -0
- package/lib/counter/index.js +154 -0
- package/lib/counter/themes/halo/dark/index.js +3 -0
- package/lib/counter/themes/halo/light/index.js +3 -0
- package/lib/counter/themes/solar/charcoal/index.js +3 -0
- package/lib/counter/themes/solar/pearl/index.js +3 -0
- package/lib/counter/utils.d.ts +13 -0
- package/lib/counter/utils.js +52 -0
- package/lib/datetime-picker/custom-elements.json +53 -24
- package/lib/datetime-picker/custom-elements.md +57 -0
- package/lib/datetime-picker/index.d.ts +34 -16
- package/lib/datetime-picker/index.js +56 -38
- package/lib/datetime-picker/locales.d.ts +1 -1
- package/lib/datetime-picker/locales.js +12 -2
- package/lib/datetime-picker/themes/solar/charcoal/index.js +1 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +1 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/datetime-picker/types.js +0 -1
- package/lib/datetime-picker/utils.js +1 -2
- package/lib/dialog/custom-elements.json +34 -12
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/dialog/draggable-element.js +25 -16
- package/lib/dialog/index.d.ts +25 -21
- package/lib/dialog/index.js +36 -32
- package/lib/email-field/custom-elements.json +81 -94
- package/lib/email-field/custom-elements.md +37 -0
- package/lib/email-field/index.d.ts +47 -112
- package/lib/email-field/index.js +48 -241
- package/lib/email-field/themes/halo/dark/index.js +1 -1
- package/lib/email-field/themes/halo/light/index.js +1 -1
- package/lib/email-field/themes/solar/charcoal/index.js +1 -1
- package/lib/email-field/themes/solar/pearl/index.js +1 -1
- package/lib/events.d.ts +121 -0
- package/lib/events.js +1 -0
- package/lib/flag/custom-elements.md +10 -0
- package/lib/flag/index.d.ts +14 -5
- package/lib/flag/index.js +19 -12
- package/lib/flag/utils/FlagLoader.d.ts +1 -1
- package/lib/flag/utils/FlagLoader.js +1 -2
- package/lib/header/custom-elements.md +18 -0
- package/lib/header/index.d.ts +10 -3
- package/lib/header/index.js +12 -8
- package/lib/heatmap/custom-elements.json +13 -0
- package/lib/heatmap/custom-elements.md +26 -0
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +1 -2
- package/lib/heatmap/helpers/text.d.ts +1 -1
- package/lib/heatmap/helpers/text.js +0 -1
- package/lib/heatmap/helpers/track.js +2 -3
- package/lib/heatmap/helpers/types.js +0 -1
- package/lib/heatmap/index.d.ts +32 -13
- package/lib/heatmap/index.js +61 -35
- package/lib/icon/custom-elements.json +6 -4
- package/lib/icon/custom-elements.md +8 -0
- package/lib/icon/index.d.ts +17 -7
- package/lib/icon/index.js +36 -18
- package/lib/icon/utils/IconLoader.d.ts +6 -1
- package/lib/icon/utils/IconLoader.js +24 -18
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -1
- package/lib/interactive-chart/custom-elements.json +5 -11
- package/lib/interactive-chart/custom-elements.md +31 -0
- package/lib/interactive-chart/helpers/merge.d.ts +15 -0
- package/lib/interactive-chart/helpers/merge.js +28 -0
- package/lib/interactive-chart/helpers/types.d.ts +10 -9
- package/lib/interactive-chart/helpers/types.js +6 -2
- package/lib/interactive-chart/index.d.ts +37 -18
- package/lib/interactive-chart/index.js +61 -51
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/helpers/types.js +0 -1
- package/lib/item/index.d.ts +26 -9
- package/lib/item/index.js +43 -16
- package/lib/label/custom-elements.json +7 -16
- package/lib/label/custom-elements.md +11 -0
- package/lib/label/index.d.ts +41 -73
- package/lib/label/index.js +150 -187
- package/lib/layout/custom-elements.md +26 -0
- package/lib/layout/index.d.ts +11 -4
- package/lib/layout/index.js +13 -9
- package/lib/led-gauge/custom-elements.json +4 -4
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/led-gauge/index.d.ts +13 -5
- package/lib/led-gauge/index.js +16 -11
- package/lib/list/custom-elements.json +37 -5
- package/lib/list/custom-elements.md +33 -0
- package/lib/list/extensible-function.js +2 -1
- package/lib/list/helpers/list-renderer.d.ts +2 -2
- package/lib/list/helpers/list-renderer.js +4 -3
- package/lib/list/helpers/types.d.ts +2 -2
- package/lib/list/helpers/types.js +0 -1
- package/lib/list/index.d.ts +47 -12
- package/lib/list/index.js +100 -39
- package/lib/list/renderer.d.ts +2 -2
- package/lib/list/renderer.js +1 -2
- package/lib/loader/custom-elements.md +5 -0
- package/lib/loader/index.d.ts +8 -1
- package/lib/loader/index.js +11 -8
- package/lib/multi-input/custom-elements.json +7 -6
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/multi-input/helpers/types.d.ts +1 -1
- package/lib/multi-input/helpers/types.js +0 -1
- package/lib/multi-input/index.d.ts +19 -8
- package/lib/multi-input/index.js +28 -18
- 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.md +26 -0
- package/lib/notification/elements/notification-tray.d.ts +10 -4
- package/lib/notification/elements/notification-tray.js +15 -11
- package/lib/notification/elements/notification.d.ts +19 -7
- package/lib/notification/elements/notification.js +25 -13
- package/lib/notification/helpers/status.d.ts +1 -1
- package/lib/notification/helpers/status.js +1 -2
- package/lib/notification/helpers/types.d.ts +1 -1
- package/lib/notification/helpers/types.js +0 -1
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +2 -3
- package/lib/number-field/custom-elements.json +99 -54
- package/lib/number-field/custom-elements.md +42 -0
- package/lib/number-field/index.d.ts +104 -52
- package/lib/number-field/index.js +129 -88
- package/lib/number-field/themes/halo/dark/index.js +1 -1
- package/lib/number-field/themes/halo/light/index.js +1 -1
- package/lib/number-field/themes/solar/charcoal/index.js +1 -1
- package/lib/number-field/themes/solar/pearl/index.js +1 -1
- package/lib/overlay/custom-elements.json +26 -13
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay/elements/overlay-backdrop.d.ts +12 -5
- package/lib/overlay/elements/overlay-backdrop.js +13 -9
- package/lib/overlay/elements/overlay-viewport.d.ts +11 -4
- package/lib/overlay/elements/overlay-viewport.js +12 -9
- package/lib/overlay/elements/overlay.d.ts +18 -6
- package/lib/overlay/elements/overlay.js +35 -28
- package/lib/overlay/helpers/functions.js +0 -1
- package/lib/overlay/helpers/types.js +0 -1
- package/lib/overlay/index.d.ts +2 -2
- package/lib/overlay/index.js +1 -2
- package/lib/overlay/managers/backdrop-manager.d.ts +2 -2
- package/lib/overlay/managers/backdrop-manager.js +2 -3
- package/lib/overlay/managers/close-manager.d.ts +1 -1
- package/lib/overlay/managers/close-manager.js +1 -2
- package/lib/overlay/managers/focus-manager.d.ts +1 -1
- package/lib/overlay/managers/focus-manager.js +3 -5
- package/lib/overlay/managers/interaction-lock-manager.js +2 -3
- package/lib/overlay/managers/viewport-manager.d.ts +3 -3
- package/lib/overlay/managers/viewport-manager.js +6 -3
- package/lib/overlay/managers/zindex-manager.d.ts +1 -1
- package/lib/overlay/managers/zindex-manager.js +1 -4
- package/lib/overlay-menu/custom-elements.json +126 -12
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/overlay-menu/helpers/types.d.ts +3 -3
- package/lib/overlay-menu/helpers/types.js +0 -1
- package/lib/overlay-menu/index.d.ts +44 -12
- package/lib/overlay-menu/index.js +66 -35
- package/lib/overlay-menu/managers/menu-manager.d.ts +2 -2
- package/lib/overlay-menu/managers/menu-manager.js +8 -8
- package/lib/pagination/custom-elements.json +16 -33
- package/lib/pagination/custom-elements.md +26 -0
- package/lib/pagination/index.d.ts +156 -81
- package/lib/pagination/index.js +373 -214
- package/lib/pagination/themes/halo/dark/index.js +1 -1
- package/lib/pagination/themes/halo/light/index.js +1 -1
- package/lib/pagination/themes/solar/charcoal/index.js +1 -1
- package/lib/pagination/themes/solar/pearl/index.js +1 -1
- package/lib/panel/custom-elements.md +11 -0
- package/lib/panel/index.d.ts +11 -4
- package/lib/panel/index.js +13 -9
- package/lib/password-field/custom-elements.json +62 -67
- package/lib/password-field/custom-elements.md +39 -0
- package/lib/password-field/index.d.ts +46 -90
- package/lib/password-field/index.js +52 -190
- package/lib/password-field/themes/halo/dark/index.js +1 -1
- package/lib/password-field/themes/halo/light/index.js +1 -1
- package/lib/password-field/themes/solar/charcoal/index.js +1 -1
- package/lib/password-field/themes/solar/pearl/index.js +1 -1
- package/lib/pill/custom-elements.json +9 -7
- package/lib/pill/custom-elements.md +22 -0
- package/lib/pill/index.d.ts +15 -7
- package/lib/pill/index.js +21 -27
- package/lib/pill/themes/halo/dark/index.js +1 -1
- package/lib/pill/themes/halo/light/index.js +1 -1
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/progress-bar/index.d.ts +11 -15
- package/lib/progress-bar/index.js +14 -25
- package/lib/radio-button/custom-elements.json +4 -4
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +33 -9
- package/lib/radio-button/index.js +97 -24
- package/lib/radio-button/radio-button-registry.d.ts +3 -2
- package/lib/radio-button/radio-button-registry.js +57 -5
- package/lib/radio-button/themes/halo/dark/index.js +1 -1
- package/lib/radio-button/themes/halo/light/index.js +1 -1
- package/lib/rating/custom-elements.md +17 -0
- package/lib/rating/index.d.ts +11 -4
- package/lib/rating/index.js +16 -10
- package/lib/search-field/custom-elements.json +70 -74
- package/lib/search-field/custom-elements.md +41 -0
- package/lib/search-field/index.d.ts +47 -97
- package/lib/search-field/index.js +50 -212
- package/lib/search-field/themes/halo/dark/index.js +1 -1
- package/lib/search-field/themes/halo/light/index.js +1 -1
- package/lib/search-field/themes/solar/charcoal/index.js +1 -1
- package/lib/search-field/themes/solar/pearl/index.js +1 -1
- package/lib/select/custom-elements.json +5 -4
- package/lib/select/custom-elements.md +24 -0
- package/lib/select/helpers/types.d.ts +1 -1
- package/lib/select/helpers/types.js +0 -1
- package/lib/select/index.d.ts +26 -11
- package/lib/select/index.js +93 -52
- package/lib/select/themes/halo/dark/index.js +1 -1
- package/lib/select/themes/halo/light/index.js +1 -1
- package/lib/sidebar-layout/custom-elements.json +2 -6
- package/lib/sidebar-layout/custom-elements.md +21 -0
- package/lib/sidebar-layout/index.d.ts +15 -7
- package/lib/sidebar-layout/index.js +16 -10
- package/lib/slider/custom-elements.json +4 -4
- package/lib/slider/custom-elements.md +28 -0
- package/lib/slider/index.d.ts +18 -5
- package/lib/slider/index.js +69 -16
- package/lib/sparkline/custom-elements.json +4 -4
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/sparkline/index.d.ts +14 -5
- package/lib/sparkline/index.js +17 -10
- package/lib/swing-gauge/const.d.ts +22 -0
- package/lib/swing-gauge/const.js +26 -0
- package/lib/swing-gauge/custom-elements.json +51 -22
- package/lib/swing-gauge/custom-elements.md +17 -0
- package/lib/swing-gauge/helpers.d.ts +8 -0
- package/lib/swing-gauge/helpers.js +105 -0
- package/lib/swing-gauge/index.d.ts +220 -72
- package/lib/swing-gauge/index.js +648 -168
- package/lib/swing-gauge/themes/halo/dark/index.js +1 -1
- package/lib/swing-gauge/themes/halo/light/index.js +1 -1
- package/lib/swing-gauge/themes/solar/charcoal/index.js +1 -1
- package/lib/swing-gauge/themes/solar/pearl/index.js +1 -1
- package/lib/swing-gauge/types.d.ts +34 -0
- package/lib/swing-gauge/types.js +1 -0
- package/lib/tab/custom-elements.json +10 -21
- package/lib/tab/custom-elements.md +22 -0
- package/lib/tab/index.d.ts +19 -14
- package/lib/tab/index.js +31 -40
- 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 +0 -6
- package/lib/tab-bar/custom-elements.md +11 -0
- package/lib/tab-bar/helpers/animate.d.ts +1 -1
- package/lib/tab-bar/helpers/animate.js +5 -2
- package/lib/tab-bar/index.d.ts +12 -5
- package/lib/tab-bar/index.js +18 -21
- package/lib/tab-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/tab-bar/themes/solar/pearl/index.js +1 -1
- package/lib/text-field/custom-elements.json +78 -89
- package/lib/text-field/custom-elements.md +35 -0
- package/lib/text-field/index.d.ts +67 -80
- package/lib/text-field/index.js +106 -157
- package/lib/text-field/themes/halo/dark/index.js +1 -1
- package/lib/text-field/themes/halo/light/index.js +1 -1
- package/lib/text-field/themes/solar/charcoal/index.js +1 -1
- package/lib/text-field/themes/solar/pearl/index.js +1 -1
- package/lib/time-picker/custom-elements.json +6 -8
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/time-picker/index.d.ts +105 -65
- package/lib/time-picker/index.js +297 -169
- package/lib/time-picker/themes/solar/charcoal/index.js +1 -1
- package/lib/time-picker/themes/solar/pearl/index.js +1 -1
- package/lib/toggle/custom-elements.json +4 -4
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +22 -5
- package/lib/toggle/index.js +58 -13
- 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/custom-elements.md +14 -0
- package/lib/tooltip/elements/title-tooltip.js +2 -3
- package/lib/tooltip/elements/tooltip-element.d.ts +2 -3
- package/lib/tooltip/elements/tooltip-element.js +0 -2
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.js +1 -2
- package/lib/tooltip/helpers/renderer.d.ts +1 -1
- package/lib/tooltip/helpers/renderer.js +0 -1
- package/lib/tooltip/helpers/types.d.ts +1 -1
- package/lib/tooltip/helpers/types.js +0 -1
- package/lib/tooltip/index.d.ts +18 -11
- package/lib/tooltip/index.js +27 -23
- package/lib/tooltip/managers/tooltip-manager.d.ts +2 -2
- package/lib/tooltip/managers/tooltip-manager.js +17 -11
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tornado-chart/elements/tornado-chart.d.ts +12 -5
- package/lib/tornado-chart/elements/tornado-chart.js +15 -11
- package/lib/tornado-chart/elements/tornado-item.d.ts +13 -6
- package/lib/tornado-chart/elements/tornado-item.js +17 -12
- package/lib/tornado-chart/index.d.ts +2 -2
- package/lib/tornado-chart/index.js +2 -3
- package/lib/tree/custom-elements.json +30 -2
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree-item.d.ts +53 -5
- package/lib/tree/elements/tree-item.js +114 -34
- package/lib/tree/elements/tree.d.ts +65 -20
- package/lib/tree/elements/tree.js +151 -34
- package/lib/tree/helpers/filter.d.ts +8 -0
- package/lib/tree/helpers/filter.js +33 -0
- package/lib/tree/helpers/renderer.d.ts +2 -2
- package/lib/tree/helpers/renderer.js +4 -4
- package/lib/tree/helpers/types.d.ts +13 -1
- package/lib/tree/helpers/types.js +0 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +3 -4
- package/lib/tree/managers/tree-manager.d.ts +22 -10
- package/lib/tree/managers/tree-manager.js +56 -41
- package/lib/tree/themes/halo/dark/index.js +1 -1
- package/lib/tree/themes/halo/light/index.js +1 -1
- package/lib/tree/themes/solar/charcoal/index.js +1 -1
- package/lib/tree/themes/solar/pearl/index.js +1 -1
- package/lib/tree-select/custom-elements.json +14 -5
- package/lib/tree-select/custom-elements.md +26 -0
- package/lib/tree-select/helpers/types.d.ts +2 -2
- package/lib/tree-select/helpers/types.js +0 -1
- package/lib/tree-select/index.d.ts +55 -27
- package/lib/tree-select/index.js +107 -45
- package/lib/tree-select/themes/halo/dark/index.js +3 -2
- package/lib/tree-select/themes/halo/light/index.js +3 -2
- package/lib/tree-select/themes/solar/charcoal/index.js +3 -2
- package/lib/tree-select/themes/solar/pearl/index.js +3 -2
- package/lib/version.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +601 -25
- package/lib/accordion/index.js.map +0 -1
- package/lib/appstate-bar/index.js.map +0 -1
- package/lib/autosuggest/helpers/const.d.ts +0 -2
- package/lib/autosuggest/helpers/const.js +0 -4
- package/lib/autosuggest/helpers/const.js.map +0 -1
- package/lib/autosuggest/helpers/types.js.map +0 -1
- package/lib/autosuggest/helpers/utils.js.map +0 -1
- package/lib/autosuggest/index.js.map +0 -1
- package/lib/button/index.js.map +0 -1
- package/lib/button-bar/index.js.map +0 -1
- package/lib/calendar/index.js.map +0 -1
- package/lib/calendar/locales.js.map +0 -1
- package/lib/calendar/types.js.map +0 -1
- package/lib/calendar/utils.js.map +0 -1
- package/lib/canvas/index.js.map +0 -1
- package/lib/card/helpers/types.js.map +0 -1
- package/lib/card/index.js.map +0 -1
- package/lib/chart/helpers/legend.js.map +0 -1
- package/lib/chart/helpers/types.js.map +0 -1
- package/lib/chart/index.js.map +0 -1
- package/lib/chart/plugins/doughnut-center-label.js.map +0 -1
- package/lib/checkbox/index.js.map +0 -1
- package/lib/clock/index.js.map +0 -1
- package/lib/clock/utils/TickManager.js.map +0 -1
- package/lib/clock/utils/timestamps.js.map +0 -1
- package/lib/collapse/index.js.map +0 -1
- package/lib/color-dialog/elements/color-palettes.js.map +0 -1
- package/lib/color-dialog/elements/grayscale-palettes.js.map +0 -1
- package/lib/color-dialog/elements/palettes.js.map +0 -1
- package/lib/color-dialog/helpers/color-helpers.js.map +0 -1
- package/lib/color-dialog/helpers/value-model.js.map +0 -1
- package/lib/color-dialog/index.js.map +0 -1
- package/lib/combo-box/helpers/filter.js.map +0 -1
- package/lib/combo-box/helpers/keyboard-event.js.map +0 -1
- package/lib/combo-box/helpers/types.js.map +0 -1
- package/lib/combo-box/index.js.map +0 -1
- package/lib/datetime-picker/index.js.map +0 -1
- package/lib/datetime-picker/locales.js.map +0 -1
- package/lib/datetime-picker/types.js.map +0 -1
- package/lib/datetime-picker/utils.js.map +0 -1
- package/lib/dialog/draggable-element.js.map +0 -1
- package/lib/dialog/index.js.map +0 -1
- package/lib/email-field/index.js.map +0 -1
- package/lib/flag/index.js.map +0 -1
- package/lib/flag/utils/FlagLoader.js.map +0 -1
- package/lib/header/index.js.map +0 -1
- package/lib/heatmap/helpers/color.js.map +0 -1
- package/lib/heatmap/helpers/text.js.map +0 -1
- package/lib/heatmap/helpers/track.js.map +0 -1
- package/lib/heatmap/helpers/types.js.map +0 -1
- package/lib/heatmap/index.js.map +0 -1
- package/lib/icon/index.js.map +0 -1
- package/lib/icon/utils/IconLoader.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/interactive-chart/helpers/types.js.map +0 -1
- package/lib/interactive-chart/index.js.map +0 -1
- package/lib/item/helpers/types.js.map +0 -1
- package/lib/item/index.js.map +0 -1
- package/lib/label/helpers/text.d.ts +0 -35
- package/lib/label/helpers/text.js +0 -57
- package/lib/label/helpers/text.js.map +0 -1
- package/lib/label/index.js.map +0 -1
- package/lib/layout/index.js.map +0 -1
- package/lib/led-gauge/index.js.map +0 -1
- package/lib/list/extensible-function.js.map +0 -1
- package/lib/list/helpers/list-renderer.js.map +0 -1
- package/lib/list/helpers/types.js.map +0 -1
- package/lib/list/index.js.map +0 -1
- package/lib/list/renderer.js.map +0 -1
- package/lib/loader/index.js.map +0 -1
- package/lib/multi-input/helpers/types.js.map +0 -1
- package/lib/multi-input/index.js.map +0 -1
- package/lib/notification/elements/notification-tray.js.map +0 -1
- package/lib/notification/elements/notification.js.map +0 -1
- package/lib/notification/helpers/status.js.map +0 -1
- package/lib/notification/helpers/types.js.map +0 -1
- package/lib/notification/index.js.map +0 -1
- package/lib/number-field/index.js.map +0 -1
- package/lib/overlay/elements/overlay-backdrop.js.map +0 -1
- package/lib/overlay/elements/overlay-viewport.js.map +0 -1
- package/lib/overlay/elements/overlay.js.map +0 -1
- package/lib/overlay/helpers/functions.js.map +0 -1
- package/lib/overlay/helpers/types.js.map +0 -1
- package/lib/overlay/index.js.map +0 -1
- package/lib/overlay/managers/backdrop-manager.js.map +0 -1
- package/lib/overlay/managers/close-manager.js.map +0 -1
- package/lib/overlay/managers/focus-manager.js.map +0 -1
- package/lib/overlay/managers/interaction-lock-manager.js.map +0 -1
- package/lib/overlay/managers/viewport-manager.js.map +0 -1
- package/lib/overlay/managers/zindex-manager.js.map +0 -1
- package/lib/overlay-menu/helpers/types.js.map +0 -1
- package/lib/overlay-menu/helpers/uuid.d.ts +0 -7
- package/lib/overlay-menu/helpers/uuid.js +0 -14
- package/lib/overlay-menu/helpers/uuid.js.map +0 -1
- package/lib/overlay-menu/index.js.map +0 -1
- package/lib/overlay-menu/managers/menu-manager.js.map +0 -1
- package/lib/pagination/helpers/types.d.ts +0 -9
- package/lib/pagination/helpers/types.js +0 -2
- package/lib/pagination/helpers/types.js.map +0 -1
- package/lib/pagination/index.js.map +0 -1
- package/lib/panel/index.js.map +0 -1
- package/lib/password-field/index.js.map +0 -1
- package/lib/pill/index.js.map +0 -1
- package/lib/progress-bar/index.js.map +0 -1
- package/lib/radio-button/index.js.map +0 -1
- package/lib/radio-button/radio-button-registry.js.map +0 -1
- package/lib/rating/index.js.map +0 -1
- package/lib/search-field/index.js.map +0 -1
- package/lib/select/helpers/types.js.map +0 -1
- package/lib/select/index.js.map +0 -1
- package/lib/sidebar-layout/index.js.map +0 -1
- package/lib/slider/index.js.map +0 -1
- package/lib/sparkline/index.js.map +0 -1
- package/lib/swing-gauge/helpers/canvas.d.ts +0 -8
- package/lib/swing-gauge/helpers/canvas.js +0 -115
- package/lib/swing-gauge/helpers/canvas.js.map +0 -1
- package/lib/swing-gauge/helpers/types.d.ts +0 -33
- package/lib/swing-gauge/helpers/types.js +0 -2
- package/lib/swing-gauge/helpers/types.js.map +0 -1
- package/lib/swing-gauge/index.js.map +0 -1
- package/lib/tab/index.js.map +0 -1
- package/lib/tab-bar/helpers/animate.js.map +0 -1
- package/lib/tab-bar/index.js.map +0 -1
- package/lib/text-field/index.js.map +0 -1
- package/lib/time-picker/index.js.map +0 -1
- package/lib/toggle/index.js.map +0 -1
- package/lib/tooltip/elements/title-tooltip.js.map +0 -1
- package/lib/tooltip/elements/tooltip-element.js.map +0 -1
- package/lib/tooltip/helpers/overflow-tooltip.js.map +0 -1
- package/lib/tooltip/helpers/renderer.js.map +0 -1
- package/lib/tooltip/helpers/types.js.map +0 -1
- package/lib/tooltip/index.js.map +0 -1
- package/lib/tooltip/managers/tooltip-manager.js.map +0 -1
- package/lib/tornado-chart/elements/tornado-chart.js.map +0 -1
- package/lib/tornado-chart/elements/tornado-item.js.map +0 -1
- package/lib/tornado-chart/index.js.map +0 -1
- package/lib/tree/elements/tree-item.js.map +0 -1
- package/lib/tree/elements/tree.js.map +0 -1
- package/lib/tree/helpers/renderer.js.map +0 -1
- package/lib/tree/helpers/types.js.map +0 -1
- package/lib/tree/index.js.map +0 -1
- package/lib/tree/managers/tree-manager.js.map +0 -1
- package/lib/tree-select/helpers/types.js.map +0 -1
- package/lib/tree-select/index.js.map +0 -1
package/lib/accordion/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import { html, css, customElement, property } from '@refinitiv-ui/core';
|
|
8
|
-
import { Collapse } from '../collapse';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, css } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
+
import { VERSION } from '../version.js';
|
|
6
|
+
import { Collapse } from '../collapse/index.js';
|
|
9
7
|
/**
|
|
10
8
|
* Finds closest accordion parent of element.
|
|
11
9
|
* Created, because IE11 doesn't support closest() method.
|
|
@@ -51,10 +49,6 @@ let Accordion = class Accordion extends Collapse {
|
|
|
51
49
|
* Add spacing to content section in all collapse items
|
|
52
50
|
*/
|
|
53
51
|
this.spacing = false;
|
|
54
|
-
/**
|
|
55
|
-
* Allow the collapse animation to be disabled
|
|
56
|
-
*/
|
|
57
|
-
this.collapseAnimationDisabled = false;
|
|
58
52
|
/**
|
|
59
53
|
* handle bubbled clicks from items
|
|
60
54
|
* @param event the click event object
|
|
@@ -68,10 +62,17 @@ let Accordion = class Accordion extends Collapse {
|
|
|
68
62
|
};
|
|
69
63
|
}
|
|
70
64
|
/**
|
|
71
|
-
*
|
|
65
|
+
* Element version number
|
|
66
|
+
* @returns version number
|
|
67
|
+
*/
|
|
68
|
+
static get version() {
|
|
69
|
+
return VERSION;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A `CSSResultGroup` that will be used
|
|
72
73
|
* to style the host, slotted children
|
|
73
74
|
* and the internal template of the element.
|
|
74
|
-
* @return
|
|
75
|
+
* @return CSS template
|
|
75
76
|
*/
|
|
76
77
|
static get styles() {
|
|
77
78
|
return css `
|
|
@@ -127,13 +128,9 @@ __decorate([
|
|
|
127
128
|
__decorate([
|
|
128
129
|
property({ type: Boolean, reflect: true })
|
|
129
130
|
], Accordion.prototype, "spacing", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
property({ type: Boolean, attribute: 'collapse-animation-disabled' })
|
|
132
|
-
], Accordion.prototype, "collapseAnimationDisabled", void 0);
|
|
133
131
|
Accordion = __decorate([
|
|
134
132
|
customElement('ef-accordion', {
|
|
135
133
|
alias: 'coral-accordion'
|
|
136
134
|
})
|
|
137
135
|
], Accordion);
|
|
138
136
|
export { Accordion };
|
|
139
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ef-appstate-bar
|
|
2
|
+
|
|
3
|
+
Used to display at the top of application to provide a status or information.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-----------|-----------|---------------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `heading` | `heading` | `string` | "" | Text to display in heading section. |
|
|
10
|
+
| `state` | `state` | `"info" \| "highlight" \| null` | null | (optional) Type of state bar. Supported value are `info`, `highlight`. |
|
|
11
|
+
|
|
12
|
+
## Events
|
|
13
|
+
|
|
14
|
+
| Event | Description |
|
|
15
|
+
|---------|------------------------------------|
|
|
16
|
+
| `clear` | fired when clear button is clicked |
|
|
17
|
+
|
|
18
|
+
## Slots
|
|
19
|
+
|
|
20
|
+
| Name | Description |
|
|
21
|
+
|---------|-------------------------------------------|
|
|
22
|
+
| `right` | place custom content on the right of bar. |
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { BasicElement, TemplateResult,
|
|
3
|
-
import '../icon';
|
|
2
|
+
import { BasicElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import '../icon/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Used to display at the top of application to provide a status or information.
|
|
6
6
|
* @slot right - place custom content on the right of bar.
|
|
7
|
+
*
|
|
8
|
+
* @fires clear - fired when clear button is clicked
|
|
7
9
|
*/
|
|
8
10
|
export declare class AppstateBar extends BasicElement {
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
12
|
+
* Element version number
|
|
13
|
+
* @returns version number
|
|
14
|
+
*/
|
|
15
|
+
static get version(): string;
|
|
16
|
+
/**
|
|
17
|
+
* A `CSSResultGroup` that will be used
|
|
11
18
|
* to style the host, slotted children
|
|
12
19
|
* and the internal template of the element.
|
|
13
20
|
*
|
|
14
|
-
* @returns
|
|
21
|
+
* @returns CSS template
|
|
15
22
|
*/
|
|
16
|
-
static get styles():
|
|
23
|
+
static get styles(): CSSResultGroup;
|
|
17
24
|
/**
|
|
18
25
|
* Text to display in heading section.
|
|
19
26
|
*/
|
|
@@ -53,4 +60,6 @@ declare global {
|
|
|
53
60
|
'ef-appstate-bar': Partial<AppstateBar> | JSXInterface.HTMLAttributes<AppstateBar>;
|
|
54
61
|
}
|
|
55
62
|
}
|
|
56
|
-
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { BasicElement, html, css, customElement, property } from '@refinitiv-ui/core';
|
|
8
|
-
import '../icon';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { BasicElement, html, css } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
+
import { VERSION } from '../version.js';
|
|
6
|
+
import '../icon/index.js';
|
|
9
7
|
/**
|
|
10
8
|
* Used to display at the top of application to provide a status or information.
|
|
11
9
|
* @slot right - place custom content on the right of bar.
|
|
10
|
+
*
|
|
11
|
+
* @fires clear - fired when clear button is clicked
|
|
12
12
|
*/
|
|
13
13
|
let AppstateBar = class AppstateBar extends BasicElement {
|
|
14
14
|
constructor() {
|
|
@@ -40,11 +40,18 @@ let AppstateBar = class AppstateBar extends BasicElement {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Element version number
|
|
44
|
+
* @returns version number
|
|
45
|
+
*/
|
|
46
|
+
static get version() {
|
|
47
|
+
return VERSION;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A `CSSResultGroup` that will be used
|
|
44
51
|
* to style the host, slotted children
|
|
45
52
|
* and the internal template of the element.
|
|
46
53
|
*
|
|
47
|
-
* @returns
|
|
54
|
+
* @returns CSS template
|
|
48
55
|
*/
|
|
49
56
|
static get styles() {
|
|
50
57
|
return css `
|
|
@@ -91,4 +98,3 @@ AppstateBar = __decorate([
|
|
|
91
98
|
})
|
|
92
99
|
], AppstateBar);
|
|
93
100
|
export { AppstateBar };
|
|
94
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"name": "more-search-text",
|
|
27
27
|
"description": "Custom text for More Search",
|
|
28
28
|
"type": "string",
|
|
29
|
-
"default": "\"
|
|
29
|
+
"default": "\"More results for {0}\""
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "loading",
|
|
@@ -50,10 +50,20 @@
|
|
|
50
50
|
"name": "opened",
|
|
51
51
|
"description": "Auto suggest popup's open state",
|
|
52
52
|
"type": "boolean",
|
|
53
|
-
"default": "
|
|
53
|
+
"default": "false"
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
"properties": [
|
|
57
|
+
{
|
|
58
|
+
"name": "defaultDebounceRate (readonly)",
|
|
59
|
+
"type": "100",
|
|
60
|
+
"default": "100"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "defaultMoreSearchText (readonly)",
|
|
64
|
+
"type": "\"More results for {0}\"",
|
|
65
|
+
"default": "\"More results for {0}\""
|
|
66
|
+
},
|
|
57
67
|
{
|
|
58
68
|
"name": "attach",
|
|
59
69
|
"attribute": "attach",
|
|
@@ -79,7 +89,7 @@
|
|
|
79
89
|
"attribute": "more-search-text",
|
|
80
90
|
"description": "Custom text for More Search",
|
|
81
91
|
"type": "string",
|
|
82
|
-
"default": "\"
|
|
92
|
+
"default": "\"More results for {0}\""
|
|
83
93
|
},
|
|
84
94
|
{
|
|
85
95
|
"name": "loading",
|
|
@@ -130,7 +140,7 @@
|
|
|
130
140
|
"attribute": "opened",
|
|
131
141
|
"description": "Auto suggest popup's open state",
|
|
132
142
|
"type": "boolean",
|
|
133
|
-
"default": "
|
|
143
|
+
"default": "false"
|
|
134
144
|
}
|
|
135
145
|
],
|
|
136
146
|
"events": [
|
|
@@ -167,6 +177,16 @@
|
|
|
167
177
|
"description": "Fired when suggestions changed"
|
|
168
178
|
}
|
|
169
179
|
],
|
|
180
|
+
"slots": [
|
|
181
|
+
{
|
|
182
|
+
"name": "header",
|
|
183
|
+
"description": "Slot to add custom contents at the top of autosuggest popup"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "footer",
|
|
187
|
+
"description": "Slot to add custom contents at the bottom of autosuggest popup"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
170
190
|
"methods": [
|
|
171
191
|
{
|
|
172
192
|
"name": "onInputValueChange",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# ef-autosuggest
|
|
2
|
+
|
|
3
|
+
Shows suggestions based on users' query.
|
|
4
|
+
It can be used by attaching to text form control
|
|
5
|
+
such as TextField, Multi Input, etc.
|
|
6
|
+
Autosuggest supports various use cases such as
|
|
7
|
+
custom rendering, pagination, asynchronous data request, etc.
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
| Property | Attribute | Type | Default | Description |
|
|
12
|
+
|------------------|--------------------|----------------------------------------------|------------------------|--------------------------------------------------|
|
|
13
|
+
| `attach` | `attach` | `AutosuggestTargetElement \| string \| null` | null | An HTML Element or CSS selector |
|
|
14
|
+
| `debounceRate` | `debounce-rate` | `number` | "100" | Debounce rate in ms of the filter as a number.<br />Used to throttle the filter rate so as not to trigger unneeded filtering |
|
|
15
|
+
| `highlightable` | | `AutosuggestHighlightable` | "itemHighlightable" | A function that is applied to every suggestion during the render process<br />to say whether the item can be highlighted and selected. Only items that return true are considered.<br />By default the function checks for `item` `highlightable` property. |
|
|
16
|
+
| `htmlRenderer` | `html-renderer` | `boolean` | false | If set to true, the render function is not called. Instead the wrapper element<br />should populate and destroy suggestion elements. Rendering items manually<br />may have performance benefits in frameworks that use virtual DOM (such as `Vue`, `React`, `hyperHTML` and others) |
|
|
17
|
+
| `loading` | `loading` | `boolean` | false | If set to true show loading mask |
|
|
18
|
+
| `moreResults` | `more-results` | `boolean` | false | If set to true display 'Has more results' item |
|
|
19
|
+
| `moreSearchText` | `more-search-text` | `string` | "More results for {0}" | Custom text for More Search |
|
|
20
|
+
| `opened` | `opened` | `boolean` | false | Auto suggest popup's open state |
|
|
21
|
+
| `query` | | `AutosuggestQuery \| null` | null | An object that represents a query from attach target |
|
|
22
|
+
| `renderer` | | `AutosuggestRenderer` | "itemRenderer" | A renderer applied to suggestion.<br />By default a render maps data to item attributes |
|
|
23
|
+
| `requestOnFocus` | `request-on-focus` | `boolean` | false | Request suggestions when attach target is focused |
|
|
24
|
+
| `suggestions` | | `AutosuggestItem[]` | [] | A list of suggestion items |
|
|
25
|
+
|
|
26
|
+
## Methods
|
|
27
|
+
|
|
28
|
+
| Method | Type | Description |
|
|
29
|
+
|----------------------|----------------------|--------------------------------------------------|
|
|
30
|
+
| `onInputBlur` | `(event: any): void` | Run when input has lost focus<br /><br />**event**: by default `blur` event is listened |
|
|
31
|
+
| `onInputFocus` | `(event: any): void` | Run when input received focus<br /><br />**event**: by default `focus` event is listened |
|
|
32
|
+
| `onInputKeyDown` | `(event: any): void` | Run when input key down event has happened<br /><br />**event**: by default `keydown` event is listened |
|
|
33
|
+
| `onInputValueChange` | `(event: any): void` | Run when attach target value changes.<br /><br />**event**: by default `value-changed` event is listened |
|
|
34
|
+
| `refit` | `(): void` | Set the width |
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
| Event | Description |
|
|
39
|
+
|-------------------------------|--------------------------------------------------|
|
|
40
|
+
| `add-attach-target-events` | Fired when attach has been set |
|
|
41
|
+
| `item-highlight` | Fired when an item gets highlighted or highlight is removed |
|
|
42
|
+
| `item-select` | Fired when an item gets selected |
|
|
43
|
+
| `remove-attach-target-events` | Fired when attach has been removed |
|
|
44
|
+
| `suggestions-changed` | Fired when suggestions changed |
|
|
45
|
+
| `suggestions-clear-requested` | Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [] |
|
|
46
|
+
| `suggestions-fetch-requested` | Fired when auto suggest requests the data |
|
|
47
|
+
| `suggestions-query` | Fired when input value has changed and the query must be set |
|
|
48
|
+
|
|
49
|
+
## Slots
|
|
50
|
+
|
|
51
|
+
| Name | Description |
|
|
52
|
+
|----------|--------------------------------------------------|
|
|
53
|
+
| `footer` | Slot to add custom contents at the bottom of autosuggest popup |
|
|
54
|
+
| `header` | Slot to add custom contents at the top of autosuggest popup |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ItemType } from '../../item';
|
|
1
|
+
import type { ItemType } from '../../item';
|
|
2
2
|
export declare type AutosuggestSelectItemEvent = CustomEvent<{
|
|
3
3
|
query: string;
|
|
4
4
|
suggestion: Suggestion;
|
|
@@ -13,12 +13,33 @@ export declare type AutosuggestHighlightItemEvent = CustomEvent<{
|
|
|
13
13
|
export declare type AutosuggestQueryAction = (event: CustomEvent) => void;
|
|
14
14
|
export declare type AutosuggestReason = 'value-changed' | 'input-focus' | 'suggestions-revealed' | 'escape-pressed' | 'enter-pressed' | 'more-results';
|
|
15
15
|
export interface Suggestion {
|
|
16
|
+
/**
|
|
17
|
+
* Type of item. Value can be `text`, `header`, `divider`
|
|
18
|
+
*/
|
|
16
19
|
type?: ItemType;
|
|
20
|
+
/**
|
|
21
|
+
* The text for the label indicating the meaning of the item.
|
|
22
|
+
*/
|
|
17
23
|
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The text for the pop-up of item when it's hover.
|
|
26
|
+
*/
|
|
18
27
|
title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Set the icon name from the coral-icon list
|
|
30
|
+
*/
|
|
19
31
|
icon?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the item to be disabled.
|
|
34
|
+
*/
|
|
20
35
|
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the data item.
|
|
38
|
+
*/
|
|
21
39
|
value?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Sort data item into the group.
|
|
42
|
+
*/
|
|
22
43
|
group?: string;
|
|
23
44
|
}
|
|
24
45
|
export declare type AutosuggestItem = Suggestion | string | unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Item } from '../../item';
|
|
2
|
-
import { AutosuggestHighlightable, AutosuggestRenderer } from './types';
|
|
1
|
+
import type { Item } from '../../item';
|
|
2
|
+
import type { AutosuggestHighlightable, AutosuggestRenderer } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Check whether item can be highlighted
|
|
5
5
|
* @param suggestion Suggestion object
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Item } from '../../item';
|
|
2
1
|
/**
|
|
3
2
|
* Check whether item can be highlighted
|
|
4
3
|
* @param suggestion Suggestion object
|
|
@@ -54,7 +53,7 @@ export const updateElementContent = (el, query, label, value) => {
|
|
|
54
53
|
* @returns item
|
|
55
54
|
*/
|
|
56
55
|
export const itemRenderer = (suggestion, query) => {
|
|
57
|
-
const el =
|
|
56
|
+
const el = document.createElement('ef-item');
|
|
58
57
|
if (typeof suggestion === 'object') {
|
|
59
58
|
const { type, label, title, icon, disabled, value } = suggestion;
|
|
60
59
|
el.type = type || null;
|
|
@@ -74,4 +73,3 @@ export const itemRenderer = (suggestion, query) => {
|
|
|
74
73
|
}
|
|
75
74
|
return el;
|
|
76
75
|
};
|
|
77
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
export {
|
|
2
|
+
import { CSSResultGroup, ElementSize, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import type { AutosuggestTargetElement, AutosuggestHighlightable, AutosuggestMethodType, AutosuggestQuery, AutosuggestRenderer, AutosuggestReason, AutosuggestItem, AutosuggestSelectItemEvent, AutosuggestHighlightItemEvent } from './helpers/types';
|
|
4
|
+
import { Overlay } from '../overlay/index.js';
|
|
5
|
+
import '../loader/index.js';
|
|
6
|
+
import '../item/index.js';
|
|
7
|
+
export type { AutosuggestTargetElement, AutosuggestHighlightable, AutosuggestMethodType, AutosuggestQuery, AutosuggestRenderer, AutosuggestReason, AutosuggestItem } from './helpers/types';
|
|
8
|
+
export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateElementContent } from './helpers/utils.js';
|
|
8
9
|
/**
|
|
9
10
|
* Shows suggestions based on users' query.
|
|
10
11
|
* It can be used by attaching to text form control
|
|
@@ -23,15 +24,23 @@ export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateE
|
|
|
23
24
|
*
|
|
24
25
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
25
26
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
|
27
|
+
*
|
|
28
|
+
* @slot header - Slot to add custom contents at the top of autosuggest popup
|
|
29
|
+
* @slot footer - Slot to add custom contents at the bottom of autosuggest popup
|
|
26
30
|
*/
|
|
27
31
|
export declare class Autosuggest extends Overlay {
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
33
|
+
* Element version number
|
|
34
|
+
* @returns version number
|
|
35
|
+
*/
|
|
36
|
+
static get version(): string;
|
|
37
|
+
/**
|
|
38
|
+
* A `CSSResultGroup` that will be used
|
|
30
39
|
* to style the host, slotted children
|
|
31
40
|
* and the internal template of the element.
|
|
32
41
|
* @return CSS template
|
|
33
42
|
*/
|
|
34
|
-
static get styles():
|
|
43
|
+
static get styles(): CSSResultGroup;
|
|
35
44
|
/**
|
|
36
45
|
* A basic regexp matching pattern to replace text based on string input.
|
|
37
46
|
* @param text Value to test against
|
|
@@ -77,6 +86,7 @@ export declare class Autosuggest extends Overlay {
|
|
|
77
86
|
moreResults: boolean;
|
|
78
87
|
/**
|
|
79
88
|
* Custom text for More Search
|
|
89
|
+
* @default More results for {0}
|
|
80
90
|
*/
|
|
81
91
|
moreSearchText: string;
|
|
82
92
|
/**
|
|
@@ -523,4 +533,6 @@ declare global {
|
|
|
523
533
|
'ef-autosuggest': Partial<Autosuggest> | JSXInterface.HTMLAttributes<Autosuggest>;
|
|
524
534
|
}
|
|
525
535
|
}
|
|
526
|
-
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export {};
|
package/lib/autosuggest/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
1
|
var Autosuggest_1;
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import '
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
2
|
+
import { __decorate } from "tslib";
|
|
3
|
+
import { css, html } from '@refinitiv-ui/core';
|
|
4
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
7
|
+
import { unsafeHTML } from '@refinitiv-ui/core/lib/directives/unsafe-html.js';
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
|
+
import { AnimationTaskRunner, TimeoutTaskRunner } from '@refinitiv-ui/utils/lib/async.js';
|
|
10
|
+
import { escapeRegExp, itemHighlightable, itemRenderer, queryWordSelect } from './helpers/utils.js';
|
|
11
|
+
import { isIE, isMobile } from '@refinitiv-ui/utils/lib/browser.js';
|
|
12
|
+
import { Overlay } from '../overlay/index.js';
|
|
13
|
+
import '../loader/index.js';
|
|
14
|
+
import '../item/index.js';
|
|
15
|
+
export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateElementContent } from './helpers/utils.js';
|
|
15
16
|
/**
|
|
16
17
|
* Shows suggestions based on users' query.
|
|
17
18
|
* It can be used by attaching to text form control
|
|
@@ -30,6 +31,9 @@ export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateE
|
|
|
30
31
|
*
|
|
31
32
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
32
33
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
|
34
|
+
*
|
|
35
|
+
* @slot header - Slot to add custom contents at the top of autosuggest popup
|
|
36
|
+
* @slot footer - Slot to add custom contents at the bottom of autosuggest popup
|
|
33
37
|
*/
|
|
34
38
|
let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
35
39
|
/**
|
|
@@ -52,6 +56,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
|
52
56
|
this.moreResults = false;
|
|
53
57
|
/**
|
|
54
58
|
* Custom text for More Search
|
|
59
|
+
* @default More results for {0}
|
|
55
60
|
*/
|
|
56
61
|
this.moreSearchText = Autosuggest_1.defaultMoreSearchText;
|
|
57
62
|
/**
|
|
@@ -259,28 +264,38 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
|
259
264
|
this.attachEventsRemoveAction = this.attachEventsRemoveAction.bind(this);
|
|
260
265
|
}
|
|
261
266
|
/**
|
|
262
|
-
*
|
|
267
|
+
* Element version number
|
|
268
|
+
* @returns version number
|
|
269
|
+
*/
|
|
270
|
+
static get version() {
|
|
271
|
+
return VERSION;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* A `CSSResultGroup` that will be used
|
|
263
275
|
* to style the host, slotted children
|
|
264
276
|
* and the internal template of the element.
|
|
265
277
|
* @return CSS template
|
|
266
278
|
*/
|
|
267
279
|
static get styles() {
|
|
268
|
-
return [
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
return [
|
|
281
|
+
super.styles,
|
|
282
|
+
css `
|
|
283
|
+
:host {
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
display: flex;
|
|
286
|
+
flex-direction: column;
|
|
287
|
+
}
|
|
288
|
+
[part=content] {
|
|
289
|
+
flex: 1 1 auto;
|
|
290
|
+
overflow-x: hidden;
|
|
291
|
+
overflow-y: auto;
|
|
292
|
+
-webkit-overflow-scrolling: touch;
|
|
293
|
+
}
|
|
294
|
+
[part=header], [part=footer] {
|
|
295
|
+
flex: none;
|
|
296
|
+
}
|
|
297
|
+
`
|
|
298
|
+
];
|
|
284
299
|
}
|
|
285
300
|
/**
|
|
286
301
|
* A basic regexp matching pattern to replace text based on string input.
|
|
@@ -1238,4 +1253,3 @@ Autosuggest = Autosuggest_1 = __decorate([
|
|
|
1238
1253
|
})
|
|
1239
1254
|
], Autosuggest);
|
|
1240
1255
|
export { Autosuggest };
|
|
1241
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"name": "disabled",
|
|
50
50
|
"description": "Set state to disabled",
|
|
51
51
|
"type": "boolean",
|
|
52
|
-
"default": "
|
|
52
|
+
"default": "false"
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
55
|
"properties": [
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
"attribute": "disabled",
|
|
106
106
|
"description": "Set state to disabled",
|
|
107
107
|
"type": "boolean",
|
|
108
|
-
"default": "
|
|
108
|
+
"default": "false"
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
111
|
"events": [
|
|
112
112
|
{
|
|
113
113
|
"name": "active-changed",
|
|
114
|
-
"description": "
|
|
114
|
+
"description": "Dispatched on changing `active` property state by taping on button when property `toggles` is true."
|
|
115
115
|
}
|
|
116
116
|
]
|
|
117
117
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ef-button
|
|
2
|
+
|
|
3
|
+
Use button for actions in forms, dialogs,
|
|
4
|
+
and more with support for different states and styles.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|---------------|---------------|-----------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `active` | `active` | `boolean` | false | An active or inactive state, can only be used with toggles property/attribute |
|
|
11
|
+
| `cta` | `cta` | `boolean` | false | Set state to call-to-action |
|
|
12
|
+
| `disabled` | `disabled` | `boolean` | false | Set state to disabled |
|
|
13
|
+
| `hoverIcon` | `hover-icon` | `string \| null` | null | Specify icon to display when hovering. Value can be icon name |
|
|
14
|
+
| `icon` | `icon` | `string \| null` | null | Specify icon to display in button. Value can be icon name |
|
|
15
|
+
| `textpos` | `textpos` | `"before" \| "after"` | "after" | Customises text alignment when specified alongside `icon` property<br />Value can be `before` or `after` |
|
|
16
|
+
| `toggles` | `toggles` | `boolean` | false | Enable or disable ability to be toggled |
|
|
17
|
+
| `transparent` | `transparent` | `boolean` | false | Removes background when specified alongside `icon` property |
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
| Event | Description |
|
|
22
|
+
|------------------|--------------------------------------------------|
|
|
23
|
+
| `active-changed` | Dispatched on changing `active` property state by taping on button when property `toggles` is true. |
|