@refinitiv-ui/elements 5.3.3 → 5.3.4
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/lib/accordion/custom-elements.json +49 -0
- package/lib/accordion/index.d.ts +76 -0
- package/lib/accordion/index.js +139 -0
- package/lib/accordion/themes/halo/dark/index.js +3 -0
- package/lib/accordion/themes/halo/light/index.js +3 -0
- package/lib/accordion/themes/solar/charcoal/index.js +3 -0
- package/lib/accordion/themes/solar/pearl/index.js +3 -0
- package/lib/appstate-bar/custom-elements.json +49 -0
- package/lib/appstate-bar/index.d.ts +65 -0
- package/lib/appstate-bar/index.js +103 -0
- package/lib/appstate-bar/themes/halo/dark/index.js +3 -0
- package/lib/appstate-bar/themes/halo/light/index.js +3 -0
- package/lib/appstate-bar/themes/solar/charcoal/index.js +3 -0
- package/lib/appstate-bar/themes/solar/pearl/index.js +3 -0
- package/lib/autosuggest/custom-elements.json +223 -0
- package/lib/autosuggest/helpers/const.d.ts +2 -0
- package/lib/autosuggest/helpers/const.js +3 -0
- package/lib/autosuggest/helpers/types.d.ts +54 -0
- package/lib/autosuggest/helpers/types.js +1 -0
- package/lib/autosuggest/helpers/utils.d.ts +39 -0
- package/lib/autosuggest/helpers/utils.js +76 -0
- package/lib/autosuggest/index.d.ts +533 -0
- package/lib/autosuggest/index.js +1248 -0
- package/lib/autosuggest/themes/halo/dark/index.js +5 -0
- package/lib/autosuggest/themes/halo/light/index.js +5 -0
- package/lib/autosuggest/themes/solar/charcoal/index.js +5 -0
- package/lib/autosuggest/themes/solar/pearl/index.js +5 -0
- package/lib/button/custom-elements.json +119 -0
- package/lib/button/index.d.ts +132 -0
- package/lib/button/index.js +213 -0
- package/lib/button/themes/halo/dark/index.js +3 -0
- package/lib/button/themes/halo/light/index.js +3 -0
- package/lib/button/themes/solar/charcoal/index.js +3 -0
- package/lib/button/themes/solar/pearl/index.js +3 -0
- package/lib/button-bar/custom-elements.json +26 -0
- package/lib/button-bar/index.d.ts +76 -0
- package/lib/button-bar/index.js +157 -0
- package/lib/button-bar/themes/halo/dark/index.js +3 -0
- package/lib/button-bar/themes/halo/light/index.js +3 -0
- package/lib/button-bar/themes/solar/charcoal/index.js +3 -0
- package/lib/button-bar/themes/solar/pearl/index.js +3 -0
- package/lib/calendar/custom-elements.json +199 -0
- package/lib/calendar/index.d.ts +321 -0
- package/lib/calendar/index.js +926 -0
- package/lib/calendar/locales.d.ts +31 -0
- package/lib/calendar/locales.js +144 -0
- package/lib/calendar/themes/halo/dark/index.js +3 -0
- package/lib/calendar/themes/halo/light/index.js +3 -0
- package/lib/calendar/themes/solar/charcoal/index.js +3 -0
- package/lib/calendar/themes/solar/pearl/index.js +3 -0
- package/lib/calendar/types.d.ts +33 -0
- package/lib/calendar/types.js +6 -0
- package/lib/calendar/utils.d.ts +12 -0
- package/lib/calendar/utils.js +17 -0
- package/lib/canvas/custom-elements.json +69 -0
- package/lib/canvas/index.d.ts +100 -0
- package/lib/canvas/index.js +175 -0
- package/lib/canvas/themes/halo/dark/index.js +2 -0
- package/lib/canvas/themes/halo/light/index.js +2 -0
- package/lib/canvas/themes/solar/charcoal/index.js +2 -0
- package/lib/canvas/themes/solar/pearl/index.js +2 -0
- package/lib/card/custom-elements.json +59 -0
- package/lib/card/helpers/types.d.ts +12 -0
- package/lib/card/helpers/types.js +1 -0
- package/lib/card/index.d.ts +140 -0
- package/lib/card/index.js +247 -0
- package/lib/card/themes/halo/dark/index.js +5 -0
- package/lib/card/themes/halo/light/index.js +5 -0
- package/lib/card/themes/solar/charcoal/index.js +5 -0
- package/lib/card/themes/solar/pearl/index.js +5 -0
- package/lib/chart/custom-elements.json +42 -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 +5 -0
- package/lib/chart/helpers/legend.js +78 -0
- package/lib/chart/helpers/merge.d.ts +15 -0
- package/lib/chart/helpers/merge.js +28 -0
- package/lib/chart/helpers/types.d.ts +69 -0
- package/lib/chart/helpers/types.js +1 -0
- package/lib/chart/index.d.ts +187 -0
- package/lib/chart/index.js +493 -0
- package/lib/chart/plugins/doughnut-center-label.d.ts +3 -0
- package/lib/chart/plugins/doughnut-center-label.js +196 -0
- package/lib/chart/themes/halo/dark/index.js +4 -0
- package/lib/chart/themes/halo/light/index.js +4 -0
- package/lib/chart/themes/solar/charcoal/index.js +4 -0
- package/lib/chart/themes/solar/pearl/index.js +4 -0
- package/lib/checkbox/custom-elements.json +71 -0
- package/lib/checkbox/index.d.ts +89 -0
- package/lib/checkbox/index.js +170 -0
- package/lib/checkbox/themes/halo/dark/index.js +4 -0
- package/lib/checkbox/themes/halo/light/index.js +4 -0
- package/lib/checkbox/themes/solar/charcoal/index.js +4 -0
- package/lib/checkbox/themes/solar/pearl/index.js +4 -0
- package/lib/clock/custom-elements.json +108 -0
- package/lib/clock/index.d.ts +309 -0
- package/lib/clock/index.js +564 -0
- package/lib/clock/themes/halo/dark/index.js +2 -0
- package/lib/clock/themes/halo/light/index.js +2 -0
- package/lib/clock/themes/solar/charcoal/index.js +2 -0
- package/lib/clock/themes/solar/pearl/index.js +2 -0
- package/lib/clock/utils/TickManager.d.ts +14 -0
- package/lib/clock/utils/TickManager.js +66 -0
- package/lib/clock/utils/timestamps.d.ts +6 -0
- package/lib/clock/utils/timestamps.js +6 -0
- package/lib/collapse/custom-elements.json +79 -0
- package/lib/collapse/index.d.ts +119 -0
- package/lib/collapse/index.js +199 -0
- package/lib/collapse/themes/halo/dark/index.js +5 -0
- package/lib/collapse/themes/halo/light/index.js +5 -0
- package/lib/collapse/themes/solar/charcoal/index.js +5 -0
- package/lib/collapse/themes/solar/pearl/index.js +5 -0
- package/lib/color-dialog/custom-elements.json +193 -0
- package/lib/color-dialog/elements/color-palettes.d.ts +52 -0
- package/lib/color-dialog/elements/color-palettes.js +105 -0
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +67 -0
- package/lib/color-dialog/elements/grayscale-palettes.js +164 -0
- package/lib/color-dialog/elements/palettes.d.ts +58 -0
- package/lib/color-dialog/elements/palettes.js +119 -0
- package/lib/color-dialog/helpers/color-helpers.d.ts +62 -0
- package/lib/color-dialog/helpers/color-helpers.js +258 -0
- package/lib/color-dialog/helpers/value-model.d.ts +75 -0
- package/lib/color-dialog/helpers/value-model.js +139 -0
- package/lib/color-dialog/index.d.ts +232 -0
- package/lib/color-dialog/index.js +457 -0
- package/lib/color-dialog/themes/halo/dark/index.js +7 -0
- package/lib/color-dialog/themes/halo/light/index.js +7 -0
- package/lib/color-dialog/themes/solar/charcoal/index.js +7 -0
- package/lib/color-dialog/themes/solar/pearl/index.js +7 -0
- package/lib/combo-box/custom-elements.json +207 -0
- package/lib/combo-box/helpers/filter.d.ts +10 -0
- package/lib/combo-box/helpers/filter.js +29 -0
- package/lib/combo-box/helpers/keyboard-event.d.ts +17 -0
- package/lib/combo-box/helpers/keyboard-event.js +19 -0
- package/lib/combo-box/helpers/types.d.ts +11 -0
- package/lib/combo-box/helpers/types.js +1 -0
- package/lib/combo-box/index.d.ts +523 -0
- package/lib/combo-box/index.js +1146 -0
- package/lib/combo-box/themes/halo/dark/index.js +8 -0
- package/lib/combo-box/themes/halo/light/index.js +8 -0
- package/lib/combo-box/themes/solar/charcoal/index.js +8 -0
- package/lib/combo-box/themes/solar/pearl/index.js +8 -0
- package/lib/counter/custom-elements.json +35 -0
- package/lib/counter/index.d.ts +89 -0
- package/lib/counter/index.js +155 -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 +333 -0
- package/lib/datetime-picker/index.d.ts +498 -0
- package/lib/datetime-picker/index.js +1164 -0
- package/lib/datetime-picker/locales.d.ts +8 -0
- package/lib/datetime-picker/locales.js +46 -0
- package/lib/datetime-picker/themes/halo/dark/index.js +7 -0
- package/lib/datetime-picker/themes/halo/light/index.js +7 -0
- package/lib/datetime-picker/themes/solar/charcoal/index.js +7 -0
- package/lib/datetime-picker/themes/solar/pearl/index.js +7 -0
- package/lib/datetime-picker/types.d.ts +3 -0
- package/lib/datetime-picker/types.js +1 -0
- package/lib/datetime-picker/utils.d.ts +55 -0
- package/lib/datetime-picker/utils.js +92 -0
- package/lib/dialog/custom-elements.json +136 -0
- package/lib/dialog/draggable-element.d.ts +14 -0
- package/lib/dialog/draggable-element.js +221 -0
- package/lib/dialog/index.d.ts +199 -0
- package/lib/dialog/index.js +331 -0
- package/lib/dialog/themes/halo/dark/index.js +7 -0
- package/lib/dialog/themes/halo/light/index.js +7 -0
- package/lib/dialog/themes/solar/charcoal/index.js +7 -0
- package/lib/dialog/themes/solar/pearl/index.js +7 -0
- package/lib/email-field/custom-elements.json +199 -0
- package/lib/email-field/index.d.ts +152 -0
- package/lib/email-field/index.js +287 -0
- package/lib/email-field/themes/halo/dark/index.js +3 -0
- package/lib/email-field/themes/halo/light/index.js +3 -0
- package/lib/email-field/themes/solar/charcoal/index.js +3 -0
- package/lib/email-field/themes/solar/pearl/index.js +3 -0
- package/lib/events.d.ts +121 -0
- package/lib/events.js +2 -0
- package/lib/flag/custom-elements.json +35 -0
- package/lib/flag/index.d.ts +94 -0
- package/lib/flag/index.js +168 -0
- package/lib/flag/themes/halo/dark/index.js +2 -0
- package/lib/flag/themes/halo/light/index.js +2 -0
- package/lib/flag/themes/solar/charcoal/index.js +2 -0
- package/lib/flag/themes/solar/pearl/index.js +2 -0
- package/lib/flag/utils/FlagLoader.d.ts +47 -0
- package/lib/flag/utils/FlagLoader.js +86 -0
- package/lib/header/custom-elements.json +36 -0
- package/lib/header/index.d.ts +46 -0
- package/lib/header/index.js +76 -0
- package/lib/header/themes/halo/dark/index.js +2 -0
- package/lib/header/themes/halo/light/index.js +2 -0
- package/lib/header/themes/solar/charcoal/index.js +2 -0
- package/lib/header/themes/solar/pearl/index.js +2 -0
- package/lib/heatmap/custom-elements.json +151 -0
- package/lib/heatmap/helpers/color.d.ts +30 -0
- package/lib/heatmap/helpers/color.js +68 -0
- package/lib/heatmap/helpers/text.d.ts +26 -0
- package/lib/heatmap/helpers/text.js +91 -0
- package/lib/heatmap/helpers/track.d.ts +102 -0
- package/lib/heatmap/helpers/track.js +160 -0
- package/lib/heatmap/helpers/types.d.ts +40 -0
- package/lib/heatmap/helpers/types.js +1 -0
- package/lib/heatmap/index.d.ts +453 -0
- package/lib/heatmap/index.js +1104 -0
- package/lib/heatmap/themes/halo/dark/index.js +4 -0
- package/lib/heatmap/themes/halo/light/index.js +4 -0
- package/lib/heatmap/themes/solar/charcoal/index.js +4 -0
- package/lib/heatmap/themes/solar/pearl/index.js +4 -0
- package/lib/icon/custom-elements.json +34 -0
- package/lib/icon/index.d.ts +87 -0
- package/lib/icon/index.js +161 -0
- package/lib/icon/themes/halo/dark/index.js +2 -0
- package/lib/icon/themes/halo/light/index.js +2 -0
- package/lib/icon/themes/solar/charcoal/index.js +2 -0
- package/lib/icon/themes/solar/pearl/index.js +2 -0
- package/lib/icon/utils/IconLoader.d.ts +47 -0
- package/lib/icon/utils/IconLoader.js +86 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/interactive-chart/custom-elements.json +86 -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 +45 -0
- package/lib/interactive-chart/helpers/types.js +6 -0
- package/lib/interactive-chart/index.d.ts +380 -0
- package/lib/interactive-chart/index.js +1093 -0
- package/lib/interactive-chart/themes/halo/dark/index.js +3 -0
- package/lib/interactive-chart/themes/halo/light/index.js +3 -0
- package/lib/interactive-chart/themes/solar/charcoal/index.js +3 -0
- package/lib/interactive-chart/themes/solar/pearl/index.js +3 -0
- package/lib/item/custom-elements.json +153 -0
- package/lib/item/helpers/types.d.ts +57 -0
- package/lib/item/helpers/types.js +1 -0
- package/lib/item/index.d.ts +149 -0
- package/lib/item/index.js +252 -0
- package/lib/item/themes/halo/dark/index.js +4 -0
- package/lib/item/themes/halo/light/index.js +4 -0
- package/lib/item/themes/solar/charcoal/index.js +4 -0
- package/lib/item/themes/solar/pearl/index.js +4 -0
- package/lib/jsx.d.ts +223 -0
- package/lib/label/custom-elements.json +52 -0
- package/lib/label/index.d.ts +102 -0
- package/lib/label/index.js +252 -0
- package/lib/label/themes/halo/dark/index.js +3 -0
- package/lib/label/themes/halo/light/index.js +3 -0
- package/lib/label/themes/solar/charcoal/index.js +3 -0
- package/lib/label/themes/solar/pearl/index.js +3 -0
- package/lib/layout/custom-elements.json +163 -0
- package/lib/layout/index.d.ts +107 -0
- package/lib/layout/index.js +215 -0
- package/lib/layout/themes/halo/dark/index.js +2 -0
- package/lib/layout/themes/halo/light/index.js +2 -0
- package/lib/layout/themes/solar/charcoal/index.js +2 -0
- package/lib/layout/themes/solar/pearl/index.js +2 -0
- package/lib/led-gauge/custom-elements.json +113 -0
- package/lib/led-gauge/index.d.ts +143 -0
- package/lib/led-gauge/index.js +440 -0
- package/lib/led-gauge/themes/halo/dark/index.js +3 -0
- package/lib/led-gauge/themes/halo/light/index.js +3 -0
- package/lib/led-gauge/themes/solar/charcoal/index.js +3 -0
- package/lib/led-gauge/themes/solar/pearl/index.js +3 -0
- package/lib/list/custom-elements.json +111 -0
- package/lib/list/extensible-function.d.ts +8 -0
- package/lib/list/extensible-function.js +13 -0
- package/lib/list/helpers/list-renderer.d.ts +9 -0
- package/lib/list/helpers/list-renderer.js +35 -0
- package/lib/list/helpers/types.d.ts +3 -0
- package/lib/list/helpers/types.js +1 -0
- package/lib/list/index.d.ts +292 -0
- package/lib/list/index.js +604 -0
- package/lib/list/renderer.d.ts +36 -0
- package/lib/list/renderer.js +9 -0
- package/lib/list/themes/halo/dark/index.js +3 -0
- package/lib/list/themes/halo/light/index.js +3 -0
- package/lib/list/themes/solar/charcoal/index.js +3 -0
- package/lib/list/themes/solar/pearl/index.js +3 -0
- package/lib/loader/custom-elements.json +9 -0
- package/lib/loader/index.d.ts +41 -0
- package/lib/loader/index.js +65 -0
- package/lib/loader/themes/halo/dark/index.js +2 -0
- package/lib/loader/themes/halo/light/index.js +2 -0
- package/lib/loader/themes/solar/charcoal/index.js +2 -0
- package/lib/loader/themes/solar/pearl/index.js +2 -0
- package/lib/multi-input/custom-elements.json +238 -0
- package/lib/multi-input/helpers/types.d.ts +11 -0
- package/lib/multi-input/helpers/types.js +1 -0
- package/lib/multi-input/index.d.ts +297 -0
- package/lib/multi-input/index.js +591 -0
- package/lib/multi-input/themes/halo/dark/index.js +4 -0
- package/lib/multi-input/themes/halo/light/index.js +4 -0
- package/lib/multi-input/themes/solar/charcoal/index.js +4 -0
- package/lib/multi-input/themes/solar/pearl/index.js +4 -0
- package/lib/notification/custom-elements.json +95 -0
- package/lib/notification/elements/notification-tray.d.ts +97 -0
- package/lib/notification/elements/notification-tray.js +170 -0
- package/lib/notification/elements/notification.d.ts +90 -0
- package/lib/notification/elements/notification.js +157 -0
- package/lib/notification/helpers/status.d.ts +30 -0
- package/lib/notification/helpers/status.js +130 -0
- package/lib/notification/helpers/types.d.ts +10 -0
- package/lib/notification/helpers/types.js +1 -0
- package/lib/notification/index.d.ts +2 -0
- package/lib/notification/index.js +2 -0
- package/lib/notification/themes/halo/dark/index.js +5 -0
- package/lib/notification/themes/halo/light/index.js +5 -0
- package/lib/notification/themes/solar/charcoal/index.js +5 -0
- package/lib/notification/themes/solar/pearl/index.js +5 -0
- package/lib/number-field/custom-elements.json +200 -0
- package/lib/number-field/index.d.ts +294 -0
- package/lib/number-field/index.js +708 -0
- package/lib/number-field/themes/halo/dark/index.js +3 -0
- package/lib/number-field/themes/halo/light/index.js +3 -0
- package/lib/number-field/themes/solar/charcoal/index.js +3 -0
- package/lib/number-field/themes/solar/pearl/index.js +3 -0
- package/lib/overlay/custom-elements.json +342 -0
- package/lib/overlay/elements/overlay-backdrop.d.ts +46 -0
- package/lib/overlay/elements/overlay-backdrop.js +67 -0
- package/lib/overlay/elements/overlay-viewport.d.ts +40 -0
- package/lib/overlay/elements/overlay-viewport.js +56 -0
- package/lib/overlay/elements/overlay.d.ts +403 -0
- package/lib/overlay/elements/overlay.js +1427 -0
- package/lib/overlay/helpers/functions.d.ts +13 -0
- package/lib/overlay/helpers/functions.js +16 -0
- package/lib/overlay/helpers/types.d.ts +97 -0
- package/lib/overlay/helpers/types.js +16 -0
- package/lib/overlay/index.d.ts +2 -0
- package/lib/overlay/index.js +1 -0
- package/lib/overlay/managers/backdrop-manager.d.ts +45 -0
- package/lib/overlay/managers/backdrop-manager.js +96 -0
- package/lib/overlay/managers/close-manager.d.ts +54 -0
- package/lib/overlay/managers/close-manager.js +138 -0
- package/lib/overlay/managers/focus-manager.d.ts +71 -0
- package/lib/overlay/managers/focus-manager.js +228 -0
- package/lib/overlay/managers/interaction-lock-manager.d.ts +138 -0
- package/lib/overlay/managers/interaction-lock-manager.js +375 -0
- package/lib/overlay/managers/viewport-manager.d.ts +93 -0
- package/lib/overlay/managers/viewport-manager.js +207 -0
- package/lib/overlay/managers/zindex-manager.d.ts +80 -0
- package/lib/overlay/managers/zindex-manager.js +195 -0
- package/lib/overlay/themes/halo/dark/index.js +4 -0
- package/lib/overlay/themes/halo/light/index.js +4 -0
- package/lib/overlay/themes/solar/charcoal/index.js +4 -0
- package/lib/overlay/themes/solar/pearl/index.js +4 -0
- package/lib/overlay-menu/custom-elements.json +196 -0
- package/lib/overlay-menu/helpers/types.d.ts +8 -0
- package/lib/overlay-menu/helpers/types.js +1 -0
- package/lib/overlay-menu/helpers/uuid.d.ts +7 -0
- package/lib/overlay-menu/helpers/uuid.js +13 -0
- package/lib/overlay-menu/index.d.ts +380 -0
- package/lib/overlay-menu/index.js +921 -0
- package/lib/overlay-menu/managers/menu-manager.d.ts +98 -0
- package/lib/overlay-menu/managers/menu-manager.js +240 -0
- package/lib/overlay-menu/themes/halo/dark/index.js +5 -0
- package/lib/overlay-menu/themes/halo/light/index.js +5 -0
- package/lib/overlay-menu/themes/solar/charcoal/index.js +5 -0
- package/lib/overlay-menu/themes/solar/pearl/index.js +5 -0
- package/lib/pagination/custom-elements.json +93 -0
- package/lib/pagination/helpers/types.d.ts +9 -0
- package/lib/pagination/helpers/types.js +1 -0
- package/lib/pagination/index.d.ts +207 -0
- package/lib/pagination/index.js +400 -0
- package/lib/pagination/themes/halo/dark/index.js +6 -0
- package/lib/pagination/themes/halo/light/index.js +6 -0
- package/lib/pagination/themes/solar/charcoal/index.js +6 -0
- package/lib/pagination/themes/solar/pearl/index.js +6 -0
- package/lib/panel/custom-elements.json +39 -0
- package/lib/panel/index.d.ts +48 -0
- package/lib/panel/index.js +77 -0
- package/lib/panel/themes/halo/dark/index.js +2 -0
- package/lib/panel/themes/halo/light/index.js +2 -0
- package/lib/panel/themes/solar/charcoal/index.js +2 -0
- package/lib/panel/themes/solar/pearl/index.js +2 -0
- package/lib/password-field/custom-elements.json +156 -0
- package/lib/password-field/index.d.ts +140 -0
- package/lib/password-field/index.js +258 -0
- package/lib/password-field/themes/halo/dark/index.js +3 -0
- package/lib/password-field/themes/halo/light/index.js +3 -0
- package/lib/password-field/themes/solar/charcoal/index.js +3 -0
- package/lib/password-field/themes/solar/pearl/index.js +3 -0
- package/lib/pill/custom-elements.json +95 -0
- package/lib/pill/index.d.ts +97 -0
- package/lib/pill/index.js +162 -0
- package/lib/pill/themes/halo/dark/index.js +3 -0
- package/lib/pill/themes/halo/light/index.js +3 -0
- package/lib/pill/themes/solar/charcoal/index.js +3 -0
- package/lib/pill/themes/solar/pearl/index.js +3 -0
- package/lib/progress-bar/custom-elements.json +58 -0
- package/lib/progress-bar/index.d.ts +82 -0
- package/lib/progress-bar/index.js +159 -0
- package/lib/progress-bar/themes/halo/dark/index.js +2 -0
- package/lib/progress-bar/themes/halo/light/index.js +2 -0
- package/lib/progress-bar/themes/solar/charcoal/index.js +2 -0
- package/lib/progress-bar/themes/solar/pearl/index.js +2 -0
- package/lib/radio-button/custom-elements.json +84 -0
- package/lib/radio-button/index.d.ts +106 -0
- package/lib/radio-button/index.js +195 -0
- package/lib/radio-button/radio-button-registry.d.ts +21 -0
- package/lib/radio-button/radio-button-registry.js +40 -0
- package/lib/radio-button/themes/halo/dark/index.js +3 -0
- package/lib/radio-button/themes/halo/light/index.js +3 -0
- package/lib/radio-button/themes/solar/charcoal/index.js +3 -0
- package/lib/radio-button/themes/solar/pearl/index.js +3 -0
- package/lib/rating/custom-elements.json +58 -0
- package/lib/rating/index.d.ts +91 -0
- package/lib/rating/index.js +158 -0
- package/lib/rating/themes/halo/dark/index.js +2 -0
- package/lib/rating/themes/halo/light/index.js +2 -0
- package/lib/rating/themes/solar/charcoal/index.js +2 -0
- package/lib/rating/themes/solar/pearl/index.js +2 -0
- package/lib/search-field/custom-elements.json +173 -0
- package/lib/search-field/index.d.ts +134 -0
- package/lib/search-field/index.js +254 -0
- package/lib/search-field/themes/halo/dark/index.js +3 -0
- package/lib/search-field/themes/halo/light/index.js +3 -0
- package/lib/search-field/themes/solar/charcoal/index.js +3 -0
- package/lib/search-field/themes/solar/pearl/index.js +3 -0
- package/lib/select/custom-elements.json +103 -0
- package/lib/select/helpers/types.d.ts +3 -0
- package/lib/select/helpers/types.js +1 -0
- package/lib/select/index.d.ts +388 -0
- package/lib/select/index.js +942 -0
- package/lib/select/themes/halo/dark/index.js +5 -0
- package/lib/select/themes/halo/light/index.js +5 -0
- package/lib/select/themes/solar/charcoal/index.js +5 -0
- package/lib/select/themes/solar/pearl/index.js +5 -0
- package/lib/sidebar-layout/custom-elements.json +72 -0
- package/lib/sidebar-layout/index.d.ts +69 -0
- package/lib/sidebar-layout/index.js +135 -0
- package/lib/sidebar-layout/themes/halo/dark/index.js +3 -0
- package/lib/sidebar-layout/themes/halo/light/index.js +3 -0
- package/lib/sidebar-layout/themes/solar/charcoal/index.js +3 -0
- package/lib/sidebar-layout/themes/solar/pearl/index.js +3 -0
- package/lib/slider/custom-elements.json +181 -0
- package/lib/slider/index.d.ts +409 -0
- package/lib/slider/index.js +1188 -0
- package/lib/slider/themes/halo/dark/index.js +3 -0
- package/lib/slider/themes/halo/light/index.js +3 -0
- package/lib/slider/themes/solar/charcoal/index.js +3 -0
- package/lib/slider/themes/solar/pearl/index.js +3 -0
- package/lib/sparkline/custom-elements.json +59 -0
- package/lib/sparkline/index.d.ts +107 -0
- package/lib/sparkline/index.js +188 -0
- package/lib/sparkline/themes/halo/dark/index.js +2 -0
- package/lib/sparkline/themes/halo/light/index.js +2 -0
- package/lib/sparkline/themes/solar/charcoal/index.js +2 -0
- package/lib/sparkline/themes/solar/pearl/index.js +2 -0
- package/lib/swing-gauge/const.d.ts +22 -0
- package/lib/swing-gauge/const.js +26 -0
- package/lib/swing-gauge/custom-elements.json +109 -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 +294 -0
- package/lib/swing-gauge/index.js +762 -0
- package/lib/swing-gauge/themes/halo/dark/index.js +3 -0
- package/lib/swing-gauge/themes/halo/light/index.js +3 -0
- package/lib/swing-gauge/themes/solar/charcoal/index.js +3 -0
- package/lib/swing-gauge/themes/solar/pearl/index.js +3 -0
- package/lib/swing-gauge/types.d.ts +34 -0
- package/lib/swing-gauge/types.js +1 -0
- package/lib/tab/custom-elements.json +123 -0
- package/lib/tab/index.d.ts +118 -0
- package/lib/tab/index.js +211 -0
- package/lib/tab/themes/halo/dark/index.js +4 -0
- package/lib/tab/themes/halo/light/index.js +4 -0
- package/lib/tab/themes/solar/charcoal/index.js +4 -0
- package/lib/tab/themes/solar/pearl/index.js +4 -0
- package/lib/tab-bar/custom-elements.json +52 -0
- package/lib/tab-bar/helpers/animate.d.ts +16 -0
- package/lib/tab-bar/helpers/animate.js +53 -0
- package/lib/tab-bar/index.d.ts +108 -0
- package/lib/tab-bar/index.js +220 -0
- package/lib/tab-bar/themes/halo/dark/index.js +4 -0
- package/lib/tab-bar/themes/halo/light/index.js +4 -0
- package/lib/tab-bar/themes/solar/charcoal/index.js +4 -0
- package/lib/tab-bar/themes/solar/pearl/index.js +4 -0
- package/lib/text-field/custom-elements.json +210 -0
- package/lib/text-field/index.d.ts +171 -0
- package/lib/text-field/index.js +319 -0
- package/lib/text-field/themes/halo/dark/index.js +3 -0
- package/lib/text-field/themes/halo/light/index.js +3 -0
- package/lib/text-field/themes/solar/charcoal/index.js +3 -0
- package/lib/text-field/themes/solar/pearl/index.js +3 -0
- package/lib/time-picker/custom-elements.json +124 -0
- package/lib/time-picker/index.d.ts +379 -0
- package/lib/time-picker/index.js +777 -0
- package/lib/time-picker/themes/halo/dark/index.js +4 -0
- package/lib/time-picker/themes/halo/light/index.js +4 -0
- package/lib/time-picker/themes/solar/charcoal/index.js +4 -0
- package/lib/time-picker/themes/solar/pearl/index.js +4 -0
- package/lib/toggle/custom-elements.json +84 -0
- package/lib/toggle/index.d.ts +77 -0
- package/lib/toggle/index.js +134 -0
- package/lib/toggle/themes/halo/dark/index.js +2 -0
- package/lib/toggle/themes/halo/light/index.js +2 -0
- package/lib/toggle/themes/solar/charcoal/index.js +2 -0
- package/lib/toggle/themes/solar/pearl/index.js +2 -0
- package/lib/tooltip/custom-elements.json +62 -0
- package/lib/tooltip/elements/title-tooltip.d.ts +1 -0
- package/lib/tooltip/elements/title-tooltip.js +18 -0
- package/lib/tooltip/elements/tooltip-element.d.ts +21 -0
- package/lib/tooltip/elements/tooltip-element.js +54 -0
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +9 -0
- package/lib/tooltip/helpers/overflow-tooltip.js +19 -0
- package/lib/tooltip/helpers/renderer.d.ts +8 -0
- package/lib/tooltip/helpers/renderer.js +11 -0
- package/lib/tooltip/helpers/types.d.ts +23 -0
- package/lib/tooltip/helpers/types.js +1 -0
- package/lib/tooltip/index.d.ts +232 -0
- package/lib/tooltip/index.js +479 -0
- package/lib/tooltip/managers/tooltip-manager.d.ts +15 -0
- package/lib/tooltip/managers/tooltip-manager.js +144 -0
- package/lib/tooltip/themes/halo/dark/index.js +3 -0
- package/lib/tooltip/themes/halo/light/index.js +3 -0
- package/lib/tooltip/themes/solar/charcoal/index.js +3 -0
- package/lib/tooltip/themes/solar/pearl/index.js +3 -0
- package/lib/tornado-chart/custom-elements.json +45 -0
- package/lib/tornado-chart/elements/tornado-chart.d.ts +78 -0
- package/lib/tornado-chart/elements/tornado-chart.js +125 -0
- package/lib/tornado-chart/elements/tornado-item.d.ts +110 -0
- package/lib/tornado-chart/elements/tornado-item.js +209 -0
- package/lib/tornado-chart/index.d.ts +2 -0
- package/lib/tornado-chart/index.js +2 -0
- package/lib/tornado-chart/themes/halo/dark/index.js +6 -0
- package/lib/tornado-chart/themes/halo/light/index.js +6 -0
- package/lib/tornado-chart/themes/solar/charcoal/index.js +6 -0
- package/lib/tornado-chart/themes/solar/pearl/index.js +6 -0
- package/lib/tree/custom-elements.json +100 -0
- package/lib/tree/elements/tree-item.d.ts +96 -0
- package/lib/tree/elements/tree-item.js +182 -0
- package/lib/tree/elements/tree.d.ts +156 -0
- package/lib/tree/elements/tree.js +286 -0
- package/lib/tree/helpers/renderer.d.ts +5 -0
- package/lib/tree/helpers/renderer.js +33 -0
- package/lib/tree/helpers/types.d.ts +17 -0
- package/lib/tree/helpers/types.js +1 -0
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.js +3 -0
- package/lib/tree/managers/tree-manager.d.ts +236 -0
- package/lib/tree/managers/tree-manager.js +379 -0
- package/lib/tree/themes/halo/dark/index.js +7 -0
- package/lib/tree/themes/halo/light/index.js +7 -0
- package/lib/tree/themes/solar/charcoal/index.js +7 -0
- package/lib/tree/themes/solar/pearl/index.js +7 -0
- package/lib/tree-select/custom-elements.json +107 -0
- package/lib/tree-select/helpers/types.d.ts +4 -0
- package/lib/tree-select/helpers/types.js +1 -0
- package/lib/tree-select/index.d.ts +400 -0
- package/lib/tree-select/index.js +881 -0
- package/lib/tree-select/themes/halo/dark/index.js +12 -0
- package/lib/tree-select/themes/halo/light/index.js +12 -0
- package/lib/tree-select/themes/solar/charcoal/index.js +12 -0
- package/lib/tree-select/themes/solar/pearl/index.js +12 -0
- package/package.json +9 -9
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/tooltip/themes/halo/dark';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-interactive-chart', ':host{--chart-color-1:#6678FF;--chart-color-2:#FFFFFF;--chart-color-3:#FFC800;--chart-color-4:#9064CD;--chart-color-5:#00D0D4;--chart-color-6:#FF5000;--chart-color-7:#00C389;--chart-color-8:#EA2E6C;--chart-color-9:#999999;--chart-color-10:#3BBAFF;--line-width:2;--fill-opacity:0.4;--text-color:rgba(204, 204, 204, 0.8);--background-color:#1A1A1A;--chart-up-color:#39C46E;--chart-down-color:#F5475B;--cross-hair-color:#CCCCCC;--grid-vert-line-color:rgba(51, 51, 51, 0.5);--grid-horz-line-color:rgba(51, 51, 51, 0.5);--scale-price-border-color:rgba(51, 51, 51, 0.5);--scale-times-border-color:rgba(51, 51, 51, 0.5)}:host [part=legend]{position:absolute;left:15px;top:15px;z-index:1000;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].yaxis-left{left:70px}:host [part=legend].yaxis-right{left:15px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#ccc;border:1px solid #0d0d0d;box-shadow:0 0 0 0 rgba(0,0,0,.5);border-radius:100%;z-index:1000;cursor:pointer;background-color:#1a1a1a}:host [part=jump-button-container]:hover{color:#fff;border-color:#334bff;box-shadow:0 0 0 0 rgba(0,0,0,.8);background-color:#343434}:host [part=jump-button-container]:active{color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.5);background-color:#1a1a1a}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #ccc;border-right:2px solid #ccc;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(204,204,204,.8)}:host [part=jump-button-container],:host [part=jump-button-container]:hover,:host [part=jump-button]{border-color:grey}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/tooltip/themes/halo/light';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-interactive-chart', ':host{--chart-color-1:#334BFF;--chart-color-2:#000000;--chart-color-3:#7F6400;--chart-color-4:#71549F;--chart-color-5:#007678;--chart-color-6:#CC4000;--chart-color-7:#007653;--chart-color-8:#D22962;--chart-color-9:#595959;--chart-color-10:#236F99;--line-width:2;--fill-opacity:0.4;--text-color:rgba(13, 13, 13, 0.8);--background-color:#FAFAFA;--chart-up-color:#246B3E;--chart-down-color:#B63243;--cross-hair-color:#404040;--grid-vert-line-color:rgba(224, 224, 224, 0.5);--grid-horz-line-color:rgba(224, 224, 224, 0.5);--scale-price-border-color:rgba(224, 224, 224, 0.5);--scale-times-border-color:rgba(224, 224, 224, 0.5)}:host [part=legend]{position:absolute;left:15px;top:15px;z-index:1000;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].yaxis-left{left:70px}:host [part=legend].yaxis-right{left:15px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#0d0d0d;border:1px solid #ccc;box-shadow:0 0 0 0 rgba(0,0,0,.25);border-radius:100%;z-index:1000;cursor:pointer;background-color:#fafafa}:host [part=jump-button-container]:hover{color:#fff;border-color:#334bff;box-shadow:0 0 0 0 rgba(0,0,0,.55);background-color:#fff}:host [part=jump-button-container]:active{color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.25);background-color:#fafafa}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #0d0d0d;border-right:2px solid #0d0d0d;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(13,13,13,.8)}:host [part=jump-button-container],:host [part=jump-button-container]:hover,:host [part=jump-button]{border-color:#8d8d8d}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/tooltip/themes/solar/charcoal';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-interactive-chart', ':host{--chart-color-1:#FF9933;--chart-color-2:#B10CF2;--chart-color-3:#7DE442;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#FFE433;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--line-width:2;--fill-opacity:0.4;--text-color:rgba(194, 194, 194, 0.8);--background-color:#1A1A1C;--chart-up-color:#39C46E;--chart-down-color:#F5475B;--cross-hair-color:#E2E2E2;--grid-vert-line-color:rgba(10, 10, 10, 0.5);--grid-horz-line-color:rgba(10, 10, 10, 0.5);--scale-price-border-color:rgba(10, 10, 10, 0.5);--scale-times-border-color:rgba(10, 10, 10, 0.5);--chart-color-1:#FF9933;--chart-color-2:#B10CF2;--chart-color-3:#7DE442;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#FFE433;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--chart-color-11:#48CBF7;--chart-color-12:#F3478E;--chart-color-13:#508BF7;--chart-color-14:#EFF748;--chart-color-15:#FF4043;--chart-color-16:#A7DB0B;--chart-color-17:#C2C2C2;--chart-color-18:#1578AD;--chart-color-19:#F2B530;--chart-color-20:#297835;--chart-color-21:#7045FF;--chart-color-22:#DD48F7;--chart-color-23:#09A8C0;--chart-color-24:#60E65C;--chart-color-25:#2960A3;--grid-vert-line-color:rgba(194, 194, 194, 0.1);--grid-horz-line-color:rgba(194, 194, 194, 0.1);--scale-price-border-color:rgba(194, 194, 194, 0.1);--scale-times-border-color:rgba(194, 194, 194, 0.1)}:host [part=legend]{position:absolute;left:15px;top:15px;z-index:1000;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].yaxis-left{left:70px}:host [part=legend].yaxis-right{left:15px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#c2c2c2;background-color:#3c3c42;border:1px solid #000;box-shadow:0 0 0 0 rgba(0,0,0,.6);border-radius:100%;z-index:1000;cursor:pointer;background-image:linear-gradient(rgba(255,255,255,.1) 10%,rgba(255,255,255,0) 100%)}:host [part=jump-button-container]:hover{color:#e2e2e2;background-color:#4d4d55;border-color:#000;box-shadow:0 0 0 0 rgba(0,0,0,.9)}:host [part=jump-button-container]:active{background-color:#38383d;color:#c2c2c2;box-shadow:0 0 0 0 rgba(0,0,0,.6);background-image:linear-gradient(rgba(255,255,255,.1) 10%,rgba(255,255,255,0) 100%)}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #c2c2c2;border-right:2px solid #c2c2c2;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(194,194,194,.8)}:host [part=jump-button-container]:hover [part=jump-button]{border-color:#e2e2e2}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/tooltip/themes/solar/pearl';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-interactive-chart', ':host{--chart-color-1:#EE7600;--chart-color-2:#B10CF2;--chart-color-3:#309054;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#D9B500;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--line-width:2;--fill-opacity:0.4;--text-color:rgba(72, 72, 72, 0.8);--background-color:#FFFFFF;--chart-up-color:#309054;--chart-down-color:#D94255;--cross-hair-color:#ACAFB5;--grid-vert-line-color:rgba(213, 216, 219, 0.5);--grid-horz-line-color:rgba(213, 216, 219, 0.5);--scale-price-border-color:rgba(213, 216, 219, 0.5);--scale-times-border-color:rgba(213, 216, 219, 0.5);--chart-color-1:#EE7600;--chart-color-2:#B10CF2;--chart-color-3:#309054;--chart-color-4:#3780BF;--chart-color-5:#FA4C11;--chart-color-6:#D9B500;--chart-color-7:#8C8C8C;--chart-color-8:#5A54FF;--chart-color-9:#E53766;--chart-color-10:#648608;--chart-color-11:#40B6DE;--chart-color-12:#F3478E;--chart-color-13:#508BF7;--chart-color-14:#AAB218;--chart-color-15:#FF4043;--chart-color-16:#80A808;--chart-color-17:#707070;--chart-color-18:#1578AC;--chart-color-19:#D9A22B;--chart-color-20:#297835;--chart-color-21:#7045FF;--chart-color-22:#DD48F7;--chart-color-23:#09A8C0;--chart-color-24:#4BB347;--chart-color-25:#2960A3;--grid-vert-line-color:rgba(72, 72, 72, 0.1);--grid-horz-line-color:rgba(72, 72, 72, 0.1);--scale-price-border-color:rgba(72, 72, 72, 0.1);--scale-times-border-color:rgba(72, 72, 72, 0.1)}:host [part=legend]{position:absolute;left:15px;top:15px;z-index:1000;color:var(--text-color);font-size:90%}:host [part=legend] .row{margin:1px 5px}:host [part=legend] .price{margin-right:5px}:host [part=legend] .ohlc{margin-right:2px}:host [part=legend].yaxis-left{left:70px}:host [part=legend].yaxis-right{left:15px}:host [part=legend].horizontal{display:flex;max-width:calc(100% - 75px);flex-wrap:wrap}:host [part=jump-button-container]{display:none;position:absolute;transition:background-color .1s;width:23px;height:23px;color:#505050;background-color:#fafbfc;border:1px solid #a9afba;box-shadow:0 0 0 0 rgba(0,0,0,.3);border-radius:100%;z-index:1000;cursor:pointer;background-image:linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,.1) 100%)}:host [part=jump-button-container]:hover{color:#1d1d1d;background-color:#fff;border-color:#a9afba;box-shadow:0 0 0 0 rgba(0,0,0,.6)}:host [part=jump-button-container]:active{background-color:#fff;color:#1d1d1d;box-shadow:0 0 0 0 rgba(0,0,0,.3);background-image:none}:host [part=jump-button]{position:relative;display:inline-block;width:5px;height:5px;border-top:2px solid #505050;border-right:2px solid #505050;transform:rotate(45deg) skew(0);margin-top:8px;margin-left:7px}:host [part=branding-container]{position:absolute;opacity:.6;bottom:3px;z-index:1000}:host [part=branding-container].left{left:10px}:host [part=branding-container].right{right:10px}:host [part=branding-container].none{top:13px;right:13px}:host [part=branding]{height:22px;width:22px;fill:rgba(72,72,72,.8)}:host [part=jump-button-container]:hover [part=jump-button]{border-color:#1d1d1d}');
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "experimental",
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ef-item",
|
|
6
|
+
"description": "Used as a basic building block to compose complex custom elements,\nadditionally it can be used by applications\nto create simple menus or navigation panels.",
|
|
7
|
+
"attributes": [
|
|
8
|
+
{
|
|
9
|
+
"name": "label",
|
|
10
|
+
"description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, `label` always takes priority",
|
|
11
|
+
"type": "string | null"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "type",
|
|
15
|
+
"description": "If defined value can be `text`, `header` or `divider`",
|
|
16
|
+
"type": "ItemType | null"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "icon",
|
|
20
|
+
"description": "Set the icon name from the ef-icon list",
|
|
21
|
+
"type": "string | null"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "selected",
|
|
25
|
+
"description": "Indicates that the item is selected",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": "false"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "multiple",
|
|
31
|
+
"description": "Is the item part of a multiple selection",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": "false"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "highlighted",
|
|
37
|
+
"description": "Highlight the item",
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": "false"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "sub-label",
|
|
43
|
+
"description": "The`subLabel` property represents the text beneath the label.",
|
|
44
|
+
"type": "string | null"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "for",
|
|
48
|
+
"description": "Specifies which element an item is bound to",
|
|
49
|
+
"type": "string | null"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "value",
|
|
53
|
+
"description": "The content of this attribute represents the value of the item.",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"default": "\"\""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "disabled",
|
|
59
|
+
"description": "Set disabled state.",
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"default": "\"false\""
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"properties": [
|
|
65
|
+
{
|
|
66
|
+
"name": "label",
|
|
67
|
+
"attribute": "label",
|
|
68
|
+
"description": "The text for the label indicating the meaning of the item.\nBy having both `label` and content, `label` always takes priority",
|
|
69
|
+
"type": "string | null"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "type",
|
|
73
|
+
"attribute": "type",
|
|
74
|
+
"description": "If defined value can be `text`, `header` or `divider`",
|
|
75
|
+
"type": "ItemType | null"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "icon",
|
|
79
|
+
"attribute": "icon",
|
|
80
|
+
"description": "Set the icon name from the ef-icon list",
|
|
81
|
+
"type": "string | null"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "selected",
|
|
85
|
+
"attribute": "selected",
|
|
86
|
+
"description": "Indicates that the item is selected",
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": "false"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "multiple",
|
|
92
|
+
"attribute": "multiple",
|
|
93
|
+
"description": "Is the item part of a multiple selection",
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"default": "false"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "highlighted",
|
|
99
|
+
"attribute": "highlighted",
|
|
100
|
+
"description": "Highlight the item",
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"default": "false"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "subLabel",
|
|
106
|
+
"attribute": "sub-label",
|
|
107
|
+
"description": "The`subLabel` property represents the text beneath the label.",
|
|
108
|
+
"type": "string | null"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "for",
|
|
112
|
+
"attribute": "for",
|
|
113
|
+
"description": "Specifies which element an item is bound to",
|
|
114
|
+
"type": "string | null"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "highlightable",
|
|
118
|
+
"description": "Return true if the item can be highlighted. True if not disabled and type is Text",
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "isTruncated",
|
|
123
|
+
"description": "Getter returning if the label is truncated",
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "value",
|
|
128
|
+
"attribute": "value",
|
|
129
|
+
"description": "The content of this attribute represents the value of the item.",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"default": "\"\""
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "disabled",
|
|
135
|
+
"attribute": "disabled",
|
|
136
|
+
"description": "Set disabled state.",
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"default": "\"false\""
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"slots": [
|
|
142
|
+
{
|
|
143
|
+
"name": "left",
|
|
144
|
+
"description": "Used to render the content on the left of the label."
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "right",
|
|
148
|
+
"description": "Used to render the content on the right of the label."
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DataItem } from '@refinitiv-ui/utils';
|
|
2
|
+
export declare type ItemType = 'text' | 'header' | 'divider';
|
|
3
|
+
interface CommonItem extends DataItem {
|
|
4
|
+
/**
|
|
5
|
+
* Type of item. Value can be `text`, `header`, `divider`
|
|
6
|
+
*/
|
|
7
|
+
type?: ItemType;
|
|
8
|
+
}
|
|
9
|
+
interface CommonLabelItem extends CommonItem {
|
|
10
|
+
/**
|
|
11
|
+
* The text for the label indicating the meaning of the item.
|
|
12
|
+
*/
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set the icon name from the ef-icon list
|
|
16
|
+
*/
|
|
17
|
+
icon?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Set the tooltip text
|
|
20
|
+
*/
|
|
21
|
+
tooltip?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Maps to a text/generic type ef-item
|
|
25
|
+
*/
|
|
26
|
+
export interface ItemText extends CommonLabelItem {
|
|
27
|
+
type?: 'text';
|
|
28
|
+
/**
|
|
29
|
+
* Value of the item
|
|
30
|
+
*/
|
|
31
|
+
value: string;
|
|
32
|
+
/**
|
|
33
|
+
* The`subLabel` property represents the text beneath the label
|
|
34
|
+
*/
|
|
35
|
+
subLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Specifies which element an item is bound to
|
|
38
|
+
*/
|
|
39
|
+
for?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Maps to `ef-item[type=header]`
|
|
43
|
+
*/
|
|
44
|
+
export interface ItemHeader extends CommonLabelItem {
|
|
45
|
+
type: 'header';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Maps to `ef-item[type=divider]`
|
|
49
|
+
*/
|
|
50
|
+
export interface ItemDivider extends CommonItem {
|
|
51
|
+
type: 'divider';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Used to construct a collection of items
|
|
55
|
+
*/
|
|
56
|
+
export declare type ItemData = ItemText | ItemHeader | ItemDivider;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { ControlElement, CSSResult, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import '../icon';
|
|
4
|
+
import '../checkbox';
|
|
5
|
+
import { ItemType } from './helpers/types';
|
|
6
|
+
export * from './helpers/types';
|
|
7
|
+
/**
|
|
8
|
+
* Used as a basic building block to compose complex custom elements,
|
|
9
|
+
* additionally it can be used by applications
|
|
10
|
+
* to create simple menus or navigation panels.
|
|
11
|
+
*
|
|
12
|
+
* @attr {string} value - The content of this attribute represents the value of the item.
|
|
13
|
+
* @prop {string} [value=] - The content of this attribute represents the value of the item.
|
|
14
|
+
*
|
|
15
|
+
* @attr {boolean} disabled - Set disabled state.
|
|
16
|
+
* @prop {boolean} [disabled=false] - Set disabled state.
|
|
17
|
+
*
|
|
18
|
+
* @slot left - Used to render the content on the left of the label.
|
|
19
|
+
* @slot right - Used to render the content on the right of the label.
|
|
20
|
+
*/
|
|
21
|
+
export declare class Item extends ControlElement {
|
|
22
|
+
/**
|
|
23
|
+
* Element version number
|
|
24
|
+
* @returns version number
|
|
25
|
+
*/
|
|
26
|
+
static get version(): string;
|
|
27
|
+
/**
|
|
28
|
+
* @returns `CSSResult` that will be used to style the host,
|
|
29
|
+
* slotted children and the internal template of the element.
|
|
30
|
+
*/
|
|
31
|
+
static get styles(): CSSResult | CSSResult[];
|
|
32
|
+
/**
|
|
33
|
+
* The text for the label indicating the meaning of the item.
|
|
34
|
+
* By having both `label` and content, `label` always takes priority
|
|
35
|
+
*/
|
|
36
|
+
label: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* If defined value can be `text`, `header` or `divider`
|
|
39
|
+
* @type {ItemType | null}
|
|
40
|
+
*/
|
|
41
|
+
type: ItemType | null;
|
|
42
|
+
/**
|
|
43
|
+
* Set the icon name from the ef-icon list
|
|
44
|
+
*/
|
|
45
|
+
icon: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates that the item is selected
|
|
48
|
+
*/
|
|
49
|
+
selected: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Is the item part of a multiple selection
|
|
52
|
+
*/
|
|
53
|
+
multiple: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Highlight the item
|
|
56
|
+
*/
|
|
57
|
+
highlighted: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The`subLabel` property represents the text beneath the label.
|
|
60
|
+
*/
|
|
61
|
+
subLabel: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies which element an item is bound to
|
|
64
|
+
*/
|
|
65
|
+
for: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Cache label element
|
|
68
|
+
*/
|
|
69
|
+
private labelEl?;
|
|
70
|
+
/**
|
|
71
|
+
* True, if there is no slotted content
|
|
72
|
+
*/
|
|
73
|
+
private isSlotEmpty;
|
|
74
|
+
/**
|
|
75
|
+
* @param node that should be checked
|
|
76
|
+
* @returns whether node can be ignored.
|
|
77
|
+
*/
|
|
78
|
+
private isIgnorable;
|
|
79
|
+
/**
|
|
80
|
+
* Checks slotted children nodes and updates component to refresh label and sub-label templates.
|
|
81
|
+
* @param event slotchange
|
|
82
|
+
* @returns {void}
|
|
83
|
+
*/
|
|
84
|
+
private checkSlotChildren;
|
|
85
|
+
/**
|
|
86
|
+
* @override
|
|
87
|
+
* @returns {void}
|
|
88
|
+
*/
|
|
89
|
+
protected update(changedProperties: PropertyValues): void;
|
|
90
|
+
/**
|
|
91
|
+
* Get icon template if icon attribute is defined
|
|
92
|
+
*/
|
|
93
|
+
private get iconTemplate();
|
|
94
|
+
/**
|
|
95
|
+
* Get subLabel template if it is defined and no slot content present
|
|
96
|
+
*/
|
|
97
|
+
private get subLabelTemplate();
|
|
98
|
+
/**
|
|
99
|
+
* Get label template if it is defined and no slot content present
|
|
100
|
+
*/
|
|
101
|
+
private get labelTemplate();
|
|
102
|
+
/**
|
|
103
|
+
* Get template for `for` attribute.
|
|
104
|
+
* This is usually used with menus when an item needs to reference an element
|
|
105
|
+
*/
|
|
106
|
+
private get forTemplate();
|
|
107
|
+
/**
|
|
108
|
+
* Get template for `multiple` attribute.
|
|
109
|
+
* This is usually used with lists, when an item can be part of a multiple selection
|
|
110
|
+
*/
|
|
111
|
+
private get multipleTemplate();
|
|
112
|
+
/**
|
|
113
|
+
* Return true if the item can be highlighted. True if not disabled and type is Text
|
|
114
|
+
* @prop {boolean} highlightable
|
|
115
|
+
* @returns whether element is highlightable
|
|
116
|
+
*/
|
|
117
|
+
get highlightable(): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Getter returning if the label is truncated
|
|
120
|
+
* @prop {boolean} isTruncated
|
|
121
|
+
* @returns whether element is truncated or not
|
|
122
|
+
*/
|
|
123
|
+
get isTruncated(): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Control State behaviour will update tabindex based on the property
|
|
126
|
+
* @returns {void}
|
|
127
|
+
*/
|
|
128
|
+
private typeChanged;
|
|
129
|
+
/**
|
|
130
|
+
* A `TemplateResult` that will be used
|
|
131
|
+
* to render the updated internal template.
|
|
132
|
+
* @returns Render template
|
|
133
|
+
*/
|
|
134
|
+
protected render(): TemplateResult;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare global {
|
|
138
|
+
interface HTMLElementTagNameMap {
|
|
139
|
+
'ef-item': Item;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
namespace JSX {
|
|
143
|
+
interface IntrinsicElements {
|
|
144
|
+
'ef-item': Partial<Item> | JSXInterface.ControlHTMLAttributes<Item>;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export {};
|
|
@@ -0,0 +1,252 @@
|
|
|
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
|
+
import { ControlElement, css, customElement, html, property, query } from '@refinitiv-ui/core';
|
|
8
|
+
import '../icon';
|
|
9
|
+
import '../checkbox';
|
|
10
|
+
import { VERSION } from '../';
|
|
11
|
+
export * from './helpers/types';
|
|
12
|
+
const isAllWhitespaceTextNode = (node) => {
|
|
13
|
+
var _a;
|
|
14
|
+
return node.nodeType === document.TEXT_NODE
|
|
15
|
+
&& !((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim());
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Used as a basic building block to compose complex custom elements,
|
|
19
|
+
* additionally it can be used by applications
|
|
20
|
+
* to create simple menus or navigation panels.
|
|
21
|
+
*
|
|
22
|
+
* @attr {string} value - The content of this attribute represents the value of the item.
|
|
23
|
+
* @prop {string} [value=] - The content of this attribute represents the value of the item.
|
|
24
|
+
*
|
|
25
|
+
* @attr {boolean} disabled - Set disabled state.
|
|
26
|
+
* @prop {boolean} [disabled=false] - Set disabled state.
|
|
27
|
+
*
|
|
28
|
+
* @slot left - Used to render the content on the left of the label.
|
|
29
|
+
* @slot right - Used to render the content on the right of the label.
|
|
30
|
+
*/
|
|
31
|
+
let Item = class Item extends ControlElement {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
/**
|
|
35
|
+
* The text for the label indicating the meaning of the item.
|
|
36
|
+
* By having both `label` and content, `label` always takes priority
|
|
37
|
+
*/
|
|
38
|
+
this.label = null;
|
|
39
|
+
/**
|
|
40
|
+
* If defined value can be `text`, `header` or `divider`
|
|
41
|
+
* @type {ItemType | null}
|
|
42
|
+
*/
|
|
43
|
+
this.type = null;
|
|
44
|
+
/**
|
|
45
|
+
* Set the icon name from the ef-icon list
|
|
46
|
+
*/
|
|
47
|
+
this.icon = null;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates that the item is selected
|
|
50
|
+
*/
|
|
51
|
+
this.selected = false;
|
|
52
|
+
/**
|
|
53
|
+
* Is the item part of a multiple selection
|
|
54
|
+
*/
|
|
55
|
+
this.multiple = false;
|
|
56
|
+
/**
|
|
57
|
+
* Highlight the item
|
|
58
|
+
*/
|
|
59
|
+
this.highlighted = false;
|
|
60
|
+
/**
|
|
61
|
+
* The`subLabel` property represents the text beneath the label.
|
|
62
|
+
*/
|
|
63
|
+
this.subLabel = null;
|
|
64
|
+
/**
|
|
65
|
+
* Specifies which element an item is bound to
|
|
66
|
+
*/
|
|
67
|
+
this.for = null;
|
|
68
|
+
/**
|
|
69
|
+
* True, if there is no slotted content
|
|
70
|
+
*/
|
|
71
|
+
this.isSlotEmpty = true;
|
|
72
|
+
/**
|
|
73
|
+
* Checks slotted children nodes and updates component to refresh label and sub-label templates.
|
|
74
|
+
* @param event slotchange
|
|
75
|
+
* @returns {void}
|
|
76
|
+
*/
|
|
77
|
+
this.checkSlotChildren = (event) => {
|
|
78
|
+
const slot = event.target;
|
|
79
|
+
this.isSlotEmpty = !slot.assignedNodes().filter(node => !this.isIgnorable(node)).length;
|
|
80
|
+
void this.requestUpdate();
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Element version number
|
|
85
|
+
* @returns version number
|
|
86
|
+
*/
|
|
87
|
+
static get version() {
|
|
88
|
+
return VERSION;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @returns `CSSResult` that will be used to style the host,
|
|
92
|
+
* slotted children and the internal template of the element.
|
|
93
|
+
*/
|
|
94
|
+
static get styles() {
|
|
95
|
+
return css `
|
|
96
|
+
:host {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
}
|
|
100
|
+
[part=checkbox] {
|
|
101
|
+
pointer-events: none;
|
|
102
|
+
}
|
|
103
|
+
[part=left],
|
|
104
|
+
[part=right] {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
}
|
|
108
|
+
[part=center] {
|
|
109
|
+
flex: 1;
|
|
110
|
+
}
|
|
111
|
+
:host([type=divider]) > * {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
`;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param node that should be checked
|
|
118
|
+
* @returns whether node can be ignored.
|
|
119
|
+
*/
|
|
120
|
+
isIgnorable(node) {
|
|
121
|
+
return node.nodeType === document.COMMENT_NODE
|
|
122
|
+
|| isAllWhitespaceTextNode(node);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @override
|
|
126
|
+
* @returns {void}
|
|
127
|
+
*/
|
|
128
|
+
update(changedProperties) {
|
|
129
|
+
if (changedProperties.has('type')) {
|
|
130
|
+
this.typeChanged();
|
|
131
|
+
}
|
|
132
|
+
super.update(changedProperties);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Get icon template if icon attribute is defined
|
|
136
|
+
*/
|
|
137
|
+
get iconTemplate() {
|
|
138
|
+
return this.icon !== null && this.icon !== undefined ? html `<ef-icon part="icon" .icon="${this.icon}"></ef-icon>` : undefined;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Get subLabel template if it is defined and no slot content present
|
|
142
|
+
*/
|
|
143
|
+
get subLabelTemplate() {
|
|
144
|
+
return this.subLabel && this.isSlotEmpty ? html `<div part="sub-label">${this.subLabel}</div>` : undefined;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Get label template if it is defined and no slot content present
|
|
148
|
+
*/
|
|
149
|
+
get labelTemplate() {
|
|
150
|
+
return this.label && this.isSlotEmpty ? html `${this.label}` : undefined;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Get template for `for` attribute.
|
|
154
|
+
* This is usually used with menus when an item needs to reference an element
|
|
155
|
+
*/
|
|
156
|
+
get forTemplate() {
|
|
157
|
+
return this.for ? html `<ef-icon icon="right"></ef-icon>` : undefined;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Get template for `multiple` attribute.
|
|
161
|
+
* This is usually used with lists, when an item can be part of a multiple selection
|
|
162
|
+
*/
|
|
163
|
+
get multipleTemplate() {
|
|
164
|
+
const multiple = this.multiple && (!this.type || this.type === 'text');
|
|
165
|
+
return multiple ? html `<ef-checkbox part="checkbox" .checked="${this.selected}" tabindex="-1"></ef-checkbox>` : undefined;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Return true if the item can be highlighted. True if not disabled and type is Text
|
|
169
|
+
* @prop {boolean} highlightable
|
|
170
|
+
* @returns whether element is highlightable
|
|
171
|
+
*/
|
|
172
|
+
get highlightable() {
|
|
173
|
+
return !this.disabled && this.type !== 'header' && this.type !== 'divider';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Getter returning if the label is truncated
|
|
177
|
+
* @prop {boolean} isTruncated
|
|
178
|
+
* @returns whether element is truncated or not
|
|
179
|
+
*/
|
|
180
|
+
get isTruncated() {
|
|
181
|
+
return !!(this.labelEl && (this.labelEl.offsetWidth < this.labelEl.scrollWidth));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Control State behaviour will update tabindex based on the property
|
|
185
|
+
* @returns {void}
|
|
186
|
+
*/
|
|
187
|
+
typeChanged() {
|
|
188
|
+
const noInteraction = this.type === 'header' || this.type === 'divider' || this.disabled;
|
|
189
|
+
if (noInteraction) {
|
|
190
|
+
this.disableFocus();
|
|
191
|
+
}
|
|
192
|
+
else if (!this.disabled) {
|
|
193
|
+
this.enableFocus();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* A `TemplateResult` that will be used
|
|
198
|
+
* to render the updated internal template.
|
|
199
|
+
* @returns Render template
|
|
200
|
+
*/
|
|
201
|
+
render() {
|
|
202
|
+
return html `
|
|
203
|
+
<div part="left">
|
|
204
|
+
${this.iconTemplate}
|
|
205
|
+
${this.multipleTemplate}
|
|
206
|
+
<slot name="left"></slot>
|
|
207
|
+
</div>
|
|
208
|
+
<div part="center" id="label">
|
|
209
|
+
${this.labelTemplate}
|
|
210
|
+
<slot @slotchange="${this.checkSlotChildren}"></slot>
|
|
211
|
+
${this.subLabelTemplate}
|
|
212
|
+
</div>
|
|
213
|
+
<div part="right">
|
|
214
|
+
<slot name="right"></slot>
|
|
215
|
+
${this.forTemplate}
|
|
216
|
+
</div>
|
|
217
|
+
`;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
__decorate([
|
|
221
|
+
property({ type: String })
|
|
222
|
+
], Item.prototype, "label", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
property({ type: String, reflect: true })
|
|
225
|
+
], Item.prototype, "type", void 0);
|
|
226
|
+
__decorate([
|
|
227
|
+
property({ type: String, reflect: true })
|
|
228
|
+
], Item.prototype, "icon", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
property({ type: Boolean, reflect: true })
|
|
231
|
+
], Item.prototype, "selected", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
property({ type: Boolean, reflect: true })
|
|
234
|
+
], Item.prototype, "multiple", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ type: Boolean, reflect: true })
|
|
237
|
+
], Item.prototype, "highlighted", void 0);
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: String, reflect: true, attribute: 'sub-label' })
|
|
240
|
+
], Item.prototype, "subLabel", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
property({ type: String, reflect: true })
|
|
243
|
+
], Item.prototype, "for", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
query('#label')
|
|
246
|
+
], Item.prototype, "labelEl", void 0);
|
|
247
|
+
Item = __decorate([
|
|
248
|
+
customElement('ef-item', {
|
|
249
|
+
alias: 'coral-item'
|
|
250
|
+
})
|
|
251
|
+
], Item);
|
|
252
|
+
export { Item };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/halo/dark';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/halo/dark';
|
|
3
|
+
|
|
4
|
+
elf.customStyles.define('ef-item', ':host{outline:0;cursor:pointer;padding:0 8px;min-height:24px;box-sizing:border-box;touch-action:manipulation}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host(:after){content:\'\';min-height:inherit;font-size:0}}:host([selected]){color:#fff;font-weight:500}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:#334bff;color:#fff}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(204,204,204,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#999;background-color:transparent;font-size:83%;font-weight:500;border:none;height:24px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#404040,#404040) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=right] ::slotted(*){margin-left:.5em}:host [part=checkbox]{margin-right:8px}:host [part=sub-label]{font-size:90%}:host([sub-label]){padding:4px 8px}:host([selected]:not([highlighted]):not([focused])){background-color:#333}:host([selected]:not([multiple])){background-image:linear-gradient(#334bff,#334bff);background-size:4px 100%;background-position:left top;background-repeat:no-repeat}:host([selected][focused]),:host([selected][highlighted]){color:#fff}');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/halo/light';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/halo/light';
|
|
3
|
+
|
|
4
|
+
elf.customStyles.define('ef-item', ':host{outline:0;cursor:pointer;padding:0 8px;min-height:24px;box-sizing:border-box;touch-action:manipulation}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host(:after){content:\'\';min-height:inherit;font-size:0}}:host([selected]){color:#0d0d0d;font-weight:500}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:#334bff;color:#fff}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(64,64,64,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#737373;background-color:transparent;font-size:83%;font-weight:500;border:none;height:24px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#d9d9d9,#d9d9d9) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=right] ::slotted(*){margin-left:.5em}:host [part=checkbox]{margin-right:8px}:host [part=sub-label]{font-size:90%}:host([sub-label]){padding:4px 8px}:host([selected]:not([highlighted]):not([focused])){background-color:#e6e6e6}:host([selected]:not([multiple])){background-image:linear-gradient(#334bff,#334bff);background-size:4px 100%;background-position:left top;background-repeat:no-repeat}:host([selected][focused]),:host([selected][highlighted]){color:#fff}');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/solar/charcoal';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/solar/charcoal';
|
|
3
|
+
|
|
4
|
+
elf.customStyles.define('ef-item', ':host{outline:0;cursor:pointer;padding:0 7px;min-height:22px;box-sizing:border-box;touch-action:manipulation}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host(:after){content:\'\';min-height:inherit;font-size:0}}:host([selected]){color:#f93}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:rgba(255,255,255,.1)}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(194,194,194,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#c2c2c2;background-color:#4a4a52;font-size:100%;font-weight:400;border:1px solid #0a0a0a;height:22px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;border:none;border-top:1px solid #0a0a0a;border-bottom:1px solid transparent;text-transform:none;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#2e2e33,#2e2e33) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=sub-label]{font-size:80%}:host [part=icon],:host [part=left] ::slotted(*){margin-right:.33em}:host [part=right] ::slotted(*){margin-left:.33em}');
|