@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,380 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { TemplateResult, CSSResult, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import '../icon';
|
|
4
|
+
import '../item';
|
|
5
|
+
import { Overlay } from '../overlay';
|
|
6
|
+
import { OverlayMenuData } from './helpers/types';
|
|
7
|
+
export { OverlayMenuData };
|
|
8
|
+
/**
|
|
9
|
+
* Overlay that supports single-level and multi-level menus
|
|
10
|
+
* @fires item-trigger - Dispatched when user clicks on item
|
|
11
|
+
* @fires opened-changed - Dispatched when when opened attribute changes internally. Prevent default to stop opening/closing pipeline
|
|
12
|
+
*
|
|
13
|
+
* @attr {boolean} opened - True if the menu is currently displayed
|
|
14
|
+
* @prop {boolean} [opened=false] - True if the menu is currently displayed
|
|
15
|
+
*
|
|
16
|
+
* @attr {boolean} with-backdrop - True to show backdrop
|
|
17
|
+
* @prop {boolean} [withBackdrop=false] - True to show backdrop
|
|
18
|
+
*
|
|
19
|
+
* @attr {boolean} no-cancel-on-esc-key - Set to true to disable canceling the overlay with the ESC key
|
|
20
|
+
* @prop {boolean} [noCancelOnEscKey=false] - Set to true to disable canceling the overlay with the ESC key
|
|
21
|
+
*
|
|
22
|
+
* @attr {boolean} no-cancel-on-outside-click - Set to true to disable canceling the overlay by clicking outside it
|
|
23
|
+
* @prop {boolean} [noCancelOnOutsideClick=false] - Set to true to disable canceling the overlay by clicking outside it
|
|
24
|
+
*
|
|
25
|
+
* @attr {boolean} lock-position-target - Set to true to lock position target
|
|
26
|
+
* @prop {boolean} [lockPositionTarget=false] - Set to true to lock position target
|
|
27
|
+
*
|
|
28
|
+
* @prop {HTMLElement|null} [positionTarget=null] - Position next to the HTML element
|
|
29
|
+
*
|
|
30
|
+
* @attr {string} transition-style - Set the transition style
|
|
31
|
+
* @prop {string|null} [transitionStyle=null] - Set the transition style
|
|
32
|
+
*
|
|
33
|
+
* @prop {string} [value=] - Returns the first selected item from values.
|
|
34
|
+
*
|
|
35
|
+
* @attr {number} x - Set a specific x coordinate
|
|
36
|
+
* @prop {number} x - Set a specific x coordinate
|
|
37
|
+
*
|
|
38
|
+
* @attr {number} y - Set a specific y coordinate
|
|
39
|
+
* @prop {number} y - Set a specific y coordinate
|
|
40
|
+
*
|
|
41
|
+
* @attr {number} horizontal-offset - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
|
|
42
|
+
* @prop {number} horizontalOffset - A pixel value that will be added to the position calculated on the horizontal axis. The offset will be applied either to the `left` or `right` depending on the `positionTarget`
|
|
43
|
+
*
|
|
44
|
+
* @attr {number} vertical-offset - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
|
|
45
|
+
* @prop {number} verticalOffset - A pixel value that will be added to the position calculated on the vertical axis. The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
|
|
46
|
+
*
|
|
47
|
+
* @attr {number} offset - A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget`
|
|
48
|
+
* @prop {number} offset - A pixel value that will be added to the position calculated on the vertical or horizontal axis. The offset is applied dynamically depending on the `positionTarget`
|
|
49
|
+
*
|
|
50
|
+
* @attr {{} | undefined} position - Set position and align against the attach target.
|
|
51
|
+
* @prop {{} | undefined} position - Set position and align against the attach target.
|
|
52
|
+
*/
|
|
53
|
+
export declare class OverlayMenu extends Overlay {
|
|
54
|
+
/**
|
|
55
|
+
* Element version number
|
|
56
|
+
* @returns version number
|
|
57
|
+
*/
|
|
58
|
+
static get version(): string;
|
|
59
|
+
/**
|
|
60
|
+
* A `CSSResult` that will be used
|
|
61
|
+
* to style the host, slotted children
|
|
62
|
+
* and the internal template of the element.
|
|
63
|
+
* @return CSS template
|
|
64
|
+
*/
|
|
65
|
+
static get styles(): CSSResult | CSSResult[];
|
|
66
|
+
constructor();
|
|
67
|
+
private dataDisconnectThrottler;
|
|
68
|
+
private menuHighlightedItem?;
|
|
69
|
+
private oldPosition?;
|
|
70
|
+
private oldPositionTarget?;
|
|
71
|
+
private oldInteractiveElements;
|
|
72
|
+
private menuIndex;
|
|
73
|
+
private composer;
|
|
74
|
+
private _data;
|
|
75
|
+
private parentDataItem?;
|
|
76
|
+
private lazyRendered;
|
|
77
|
+
/**
|
|
78
|
+
* Switch to compact style menu
|
|
79
|
+
*/
|
|
80
|
+
compact: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Array of item's values
|
|
83
|
+
* @type {string[]}
|
|
84
|
+
*/
|
|
85
|
+
get values(): string[];
|
|
86
|
+
set values(values: string[]);
|
|
87
|
+
/**
|
|
88
|
+
* Returns the first selected item value.
|
|
89
|
+
*/
|
|
90
|
+
get value(): string;
|
|
91
|
+
set value(value: string);
|
|
92
|
+
/**
|
|
93
|
+
* Construct the menu from data object.
|
|
94
|
+
* Cannot be used with internal content
|
|
95
|
+
*/
|
|
96
|
+
get data(): OverlayMenuData | undefined;
|
|
97
|
+
set data(value: OverlayMenuData | undefined);
|
|
98
|
+
/**
|
|
99
|
+
* A flag indicating that the menu is nested
|
|
100
|
+
* Used for styling
|
|
101
|
+
*/
|
|
102
|
+
private nested;
|
|
103
|
+
/**
|
|
104
|
+
* Get values from data collection
|
|
105
|
+
* @returns data values
|
|
106
|
+
*/
|
|
107
|
+
private getDataValues;
|
|
108
|
+
/**
|
|
109
|
+
* Set values to data collection
|
|
110
|
+
* @param values data values
|
|
111
|
+
* @returns {void}
|
|
112
|
+
*/
|
|
113
|
+
private setDataValues;
|
|
114
|
+
/**
|
|
115
|
+
* Get values from slotted element collection
|
|
116
|
+
* @returns slotted item values
|
|
117
|
+
*/
|
|
118
|
+
private getSlottedValues;
|
|
119
|
+
/**
|
|
120
|
+
* Set values to slotted elements
|
|
121
|
+
* @param values element values
|
|
122
|
+
* @returns {void}
|
|
123
|
+
*/
|
|
124
|
+
private setSlottedValues;
|
|
125
|
+
/**
|
|
126
|
+
* A flag to check whether menu is constructed from data
|
|
127
|
+
* or from slotted content
|
|
128
|
+
* It is not possible to combine two
|
|
129
|
+
*/
|
|
130
|
+
private get withData();
|
|
131
|
+
/**
|
|
132
|
+
* True if menu is fully opened and is currently in focus
|
|
133
|
+
*/
|
|
134
|
+
private get isActive();
|
|
135
|
+
/**
|
|
136
|
+
* Get descendant as data item
|
|
137
|
+
* Valid only for CC
|
|
138
|
+
* @returns descendant data item
|
|
139
|
+
*/
|
|
140
|
+
private getDataDescendants;
|
|
141
|
+
/**
|
|
142
|
+
* Get descendant as item
|
|
143
|
+
* Valid only for slotted
|
|
144
|
+
* @param [parent=this] parent menu
|
|
145
|
+
* @returns descendant item
|
|
146
|
+
*/
|
|
147
|
+
private getSlottedDescendants;
|
|
148
|
+
/**
|
|
149
|
+
* Filter items out of children
|
|
150
|
+
*/
|
|
151
|
+
private get items();
|
|
152
|
+
/**
|
|
153
|
+
* Invoked when a component is removed from the document’s DOM.
|
|
154
|
+
* @return {void}
|
|
155
|
+
*/
|
|
156
|
+
disconnectedCallback(): void;
|
|
157
|
+
/**
|
|
158
|
+
* Called when the element’s DOM has been updated and rendered
|
|
159
|
+
* @param changedProperties Properties that has changed
|
|
160
|
+
* @returns shouldUpdate
|
|
161
|
+
*/
|
|
162
|
+
protected shouldUpdate(changedProperties: PropertyValues): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Reflects property values to attributes and calls render to render DOM via lit-html.
|
|
165
|
+
* @param changedProperties Properties which have changed
|
|
166
|
+
* @return {void}
|
|
167
|
+
*/
|
|
168
|
+
protected update(changedProperties: PropertyValues): void;
|
|
169
|
+
/**
|
|
170
|
+
* Called after the component is first rendered
|
|
171
|
+
* @param changedProperties Properties which have changed
|
|
172
|
+
* @return {void}
|
|
173
|
+
*/
|
|
174
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
175
|
+
/**
|
|
176
|
+
* Called after render life-cycle finished
|
|
177
|
+
* @param changedProperties Properties which have changed
|
|
178
|
+
* @return {void}
|
|
179
|
+
*/
|
|
180
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
181
|
+
/**
|
|
182
|
+
* Run when the overlay has closed, managers are de-registered
|
|
183
|
+
* and closing transition has finished
|
|
184
|
+
* @return {void}
|
|
185
|
+
*/
|
|
186
|
+
protected onClosed(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Selects all data from CollectionComposer
|
|
189
|
+
* @return all MenuItems stored in CollectionComposer
|
|
190
|
+
*/
|
|
191
|
+
private getAllComposedData;
|
|
192
|
+
/**
|
|
193
|
+
* Get menu depth from the collection composer
|
|
194
|
+
* @returns depth
|
|
195
|
+
*/
|
|
196
|
+
private getDataDepth;
|
|
197
|
+
/**
|
|
198
|
+
* Run while overlay is opening
|
|
199
|
+
* @return {void}
|
|
200
|
+
*/
|
|
201
|
+
private opening;
|
|
202
|
+
/**
|
|
203
|
+
* Run while overlay is closing
|
|
204
|
+
* @return {void}
|
|
205
|
+
*/
|
|
206
|
+
private closing;
|
|
207
|
+
/**
|
|
208
|
+
* Run when modification has happened in CC
|
|
209
|
+
* @returns {void}
|
|
210
|
+
*/
|
|
211
|
+
private modificationUpdate;
|
|
212
|
+
/**
|
|
213
|
+
* Construct menu items and nested menus from data object
|
|
214
|
+
* @return {void}
|
|
215
|
+
*/
|
|
216
|
+
private constructDataMenus;
|
|
217
|
+
/**
|
|
218
|
+
* Remove all nested menus from the light DOM
|
|
219
|
+
* @return {void}
|
|
220
|
+
*/
|
|
221
|
+
private disconnectNestedMenus;
|
|
222
|
+
/**
|
|
223
|
+
* This function must be called to register menu or menu items
|
|
224
|
+
* @return {void}
|
|
225
|
+
*/
|
|
226
|
+
private registerMenu;
|
|
227
|
+
/**
|
|
228
|
+
* Fired when mouse move event happens
|
|
229
|
+
* @param event Mouse move event
|
|
230
|
+
* @return {void}
|
|
231
|
+
*/
|
|
232
|
+
private onItemMouseMove;
|
|
233
|
+
/**
|
|
234
|
+
* Provide keyboard item selection
|
|
235
|
+
* @param event Keyup event
|
|
236
|
+
* @return {void}
|
|
237
|
+
*/
|
|
238
|
+
private onKeyUp;
|
|
239
|
+
/**
|
|
240
|
+
* Provide keyboard navigation
|
|
241
|
+
* @param event Keydown event
|
|
242
|
+
* @return {void}
|
|
243
|
+
*/
|
|
244
|
+
private onKeyDown;
|
|
245
|
+
/**
|
|
246
|
+
* Fired when mouse click event happens on the menu.
|
|
247
|
+
* @param event Tap event
|
|
248
|
+
* @return {void}
|
|
249
|
+
*/
|
|
250
|
+
private onItemTap;
|
|
251
|
+
/**
|
|
252
|
+
* Dispatch item trigger even
|
|
253
|
+
* @param item Menu item
|
|
254
|
+
* @returns {void}
|
|
255
|
+
*/
|
|
256
|
+
private dispatchItemTrigger;
|
|
257
|
+
/**
|
|
258
|
+
* Run when back item is clicked in compact mode
|
|
259
|
+
* @return {void}
|
|
260
|
+
*/
|
|
261
|
+
private onBackItemTap;
|
|
262
|
+
/**
|
|
263
|
+
* Run when mouse is over back item in compact mode
|
|
264
|
+
* @return {void}
|
|
265
|
+
*/
|
|
266
|
+
private onBackItemMouseMove;
|
|
267
|
+
/**
|
|
268
|
+
* Manually execute click if return key is pressed
|
|
269
|
+
* @return {void}
|
|
270
|
+
*/
|
|
271
|
+
private onEnter;
|
|
272
|
+
/**
|
|
273
|
+
* Highlight next or previous highlightable element if present
|
|
274
|
+
* @param direction -1 - up/next; 1 - down/previous
|
|
275
|
+
* @param [circular=false] Set to true to have circular navigation over items
|
|
276
|
+
* @return {void}
|
|
277
|
+
*/
|
|
278
|
+
private focusElement;
|
|
279
|
+
/**
|
|
280
|
+
* Run when left arrow is pressed.
|
|
281
|
+
* Close current menu if possible
|
|
282
|
+
* @return {void}
|
|
283
|
+
*/
|
|
284
|
+
private onArrowLeft;
|
|
285
|
+
/**
|
|
286
|
+
* Run when right arrow is pressed.
|
|
287
|
+
* Open menu if possible
|
|
288
|
+
* @return {void}
|
|
289
|
+
*/
|
|
290
|
+
private onArrowRight;
|
|
291
|
+
/**
|
|
292
|
+
* Open/close nested menu
|
|
293
|
+
* @param menuItem Item to open/close menu for. Undefined to close all opened nested menus
|
|
294
|
+
* @return {void}
|
|
295
|
+
*/
|
|
296
|
+
private setOpenedMenu;
|
|
297
|
+
/**
|
|
298
|
+
* Highlight an item with all ancestors to the top menu
|
|
299
|
+
* @param [item] An item to highlight
|
|
300
|
+
* @return {void}
|
|
301
|
+
*/
|
|
302
|
+
private setItemHighlight;
|
|
303
|
+
/**
|
|
304
|
+
* Check whether an item can be highlighted
|
|
305
|
+
* @param item Item to check
|
|
306
|
+
* @return true of the item can be highlighted
|
|
307
|
+
*/
|
|
308
|
+
private isHighlightable;
|
|
309
|
+
/**
|
|
310
|
+
* Get first ef-item in the ancestor tree
|
|
311
|
+
* @param target HTML element to start searching from
|
|
312
|
+
* @return item item if found
|
|
313
|
+
*/
|
|
314
|
+
private getItem;
|
|
315
|
+
/**
|
|
316
|
+
* Run when `data` collection has been set or updated
|
|
317
|
+
* @return {void}
|
|
318
|
+
*/
|
|
319
|
+
private onDataChange;
|
|
320
|
+
/**
|
|
321
|
+
* Run when the default slot items have changed
|
|
322
|
+
* @return {void}
|
|
323
|
+
*/
|
|
324
|
+
private onSlotChange;
|
|
325
|
+
/**
|
|
326
|
+
* If data has changed, try to keep the highlighted item unless
|
|
327
|
+
* highlighted item has been removed itself
|
|
328
|
+
* @returns {void}
|
|
329
|
+
*/
|
|
330
|
+
private onMenuReHighlight;
|
|
331
|
+
/**
|
|
332
|
+
* Insert nested menu if it is not attached
|
|
333
|
+
* For `data` menus only
|
|
334
|
+
* @param menu Menu element
|
|
335
|
+
* @return {void}
|
|
336
|
+
*/
|
|
337
|
+
private insertNestedMenu;
|
|
338
|
+
/**
|
|
339
|
+
* Create overlay menu from items
|
|
340
|
+
* Inherit properties from current menu
|
|
341
|
+
* @return menu element
|
|
342
|
+
*/
|
|
343
|
+
private toOverlayMenu;
|
|
344
|
+
/**
|
|
345
|
+
* Create template for menu item
|
|
346
|
+
* @param item JSON object to parse
|
|
347
|
+
* @return template result
|
|
348
|
+
*/
|
|
349
|
+
private toItem;
|
|
350
|
+
/**
|
|
351
|
+
* Construct items from data
|
|
352
|
+
* @returns {TemplateResult} Template result
|
|
353
|
+
*/
|
|
354
|
+
private get fromDataItems();
|
|
355
|
+
/**
|
|
356
|
+
* Construct back item for compact menu
|
|
357
|
+
* @returns {TemplateResult} Template result
|
|
358
|
+
*/
|
|
359
|
+
private compactBackItem;
|
|
360
|
+
/**
|
|
361
|
+
* A `TemplateResult` that will be used
|
|
362
|
+
* to render the updated internal template.
|
|
363
|
+
* @returns {TemplateResult} Render template
|
|
364
|
+
*/
|
|
365
|
+
protected render(): TemplateResult;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare global {
|
|
369
|
+
interface HTMLElementTagNameMap {
|
|
370
|
+
'ef-overlay-menu': OverlayMenu;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
namespace JSX {
|
|
374
|
+
interface IntrinsicElements {
|
|
375
|
+
'ef-overlay-menu': Partial<OverlayMenu> | JSXInterface.HTMLAttributes<OverlayMenu>;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export {};
|