@refinitiv-ui/elements 5.12.0-alpha.0 → 5.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +4 -4
- package/lib/accordion/index.d.ts +76 -0
- package/lib/accordion/index.js +136 -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/index.d.ts +65 -0
- package/lib/appstate-bar/index.js +100 -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/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 +75 -0
- package/lib/autosuggest/index.d.ts +538 -0
- package/lib/autosuggest/index.js +1255 -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/index.d.ts +138 -0
- package/lib/button/index.js +241 -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/index.d.ts +125 -0
- package/lib/button-bar/index.js +295 -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/constants.d.ts +26 -0
- package/lib/calendar/constants.js +28 -0
- package/lib/calendar/index.d.ts +412 -0
- package/lib/calendar/index.js +1274 -0
- package/lib/calendar/locales.d.ts +1 -0
- package/lib/calendar/locales.js +41 -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 +32 -0
- package/lib/calendar/types.js +1 -0
- package/lib/calendar/utils.d.ts +42 -0
- package/lib/calendar/utils.js +120 -0
- package/lib/canvas/index.d.ts +101 -0
- package/lib/canvas/index.js +173 -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/helpers/types.d.ts +12 -0
- package/lib/card/helpers/types.js +1 -0
- package/lib/card/index.d.ts +142 -0
- package/lib/card/index.js +248 -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/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 +491 -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/index.d.ts +97 -0
- package/lib/checkbox/index.js +194 -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/index.d.ts +321 -0
- package/lib/clock/index.js +583 -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 +4 -2
- package/lib/collapse/custom-elements.md +1 -1
- package/lib/collapse/index.d.ts +123 -0
- package/lib/collapse/index.js +227 -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/elements/color-palettes.d.ts +52 -0
- package/lib/color-dialog/elements/color-palettes.js +101 -0
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +67 -0
- package/lib/color-dialog/elements/grayscale-palettes.js +161 -0
- package/lib/color-dialog/elements/palettes.d.ts +65 -0
- package/lib/color-dialog/elements/palettes.js +132 -0
- package/lib/color-dialog/helpers/color-helpers.d.ts +16 -0
- package/lib/color-dialog/helpers/color-helpers.js +161 -0
- package/lib/color-dialog/helpers/value-model.d.ts +75 -0
- package/lib/color-dialog/helpers/value-model.js +141 -0
- package/lib/color-dialog/index.d.ts +232 -0
- package/lib/color-dialog/index.js +459 -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/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/renderer.d.ts +8 -0
- package/lib/combo-box/helpers/renderer.js +24 -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 +551 -0
- package/lib/combo-box/index.js +1183 -0
- package/lib/combo-box/themes/halo/dark/index.js +7 -0
- package/lib/combo-box/themes/halo/light/index.js +7 -0
- package/lib/combo-box/themes/solar/charcoal/index.js +7 -0
- package/lib/combo-box/themes/solar/pearl/index.js +7 -0
- package/lib/counter/index.d.ts +91 -0
- package/lib/counter/index.js +154 -0
- package/lib/counter/themes/halo/dark/index.js +3 -0
- package/lib/counter/themes/halo/light/index.js +3 -0
- package/lib/counter/themes/solar/charcoal/index.js +3 -0
- package/lib/counter/themes/solar/pearl/index.js +3 -0
- package/lib/counter/utils.d.ts +13 -0
- package/lib/counter/utils.js +52 -0
- package/lib/datetime-picker/index.d.ts +509 -0
- package/lib/datetime-picker/index.js +1175 -0
- package/lib/datetime-picker/locales.d.ts +8 -0
- package/lib/datetime-picker/locales.js +57 -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 +11 -0
- package/lib/dialog/custom-elements.md +4 -3
- package/lib/dialog/draggable-element.d.ts +14 -0
- package/lib/dialog/draggable-element.js +221 -0
- package/lib/dialog/index.d.ts +213 -0
- package/lib/dialog/index.js +353 -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/index.d.ts +80 -0
- package/lib/email-field/index.js +86 -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 +1 -0
- package/lib/flag/index.d.ts +96 -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/index.d.ts +46 -0
- package/lib/header/index.js +73 -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/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 +1103 -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/index.d.ts +90 -0
- package/lib/icon/index.js +171 -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 +52 -0
- package/lib/icon/utils/IconLoader.js +93 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -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 +383 -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/helpers/types.d.ts +57 -0
- package/lib/item/helpers/types.js +1 -0
- package/lib/item/index.d.ts +159 -0
- package/lib/item/index.js +272 -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/label/index.d.ts +102 -0
- package/lib/label/index.js +245 -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/index.d.ts +107 -0
- package/lib/layout/index.js +212 -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/index.d.ts +144 -0
- package/lib/led-gauge/index.js +438 -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/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 +37 -0
- package/lib/list/helpers/types.d.ts +3 -0
- package/lib/list/helpers/types.js +1 -0
- package/lib/list/index.d.ts +313 -0
- package/lib/list/index.js +640 -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/index.d.ts +41 -0
- package/lib/loader/index.js +61 -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/helpers/types.d.ts +11 -0
- package/lib/multi-input/helpers/types.js +1 -0
- package/lib/multi-input/index.d.ts +301 -0
- package/lib/multi-input/index.js +594 -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/elements/notification-tray.d.ts +97 -0
- package/lib/notification/elements/notification-tray.js +167 -0
- package/lib/notification/elements/notification.d.ts +90 -0
- package/lib/notification/elements/notification.js +154 -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/index.d.ts +339 -0
- package/lib/number-field/index.js +741 -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/elements/overlay-backdrop.d.ts +46 -0
- package/lib/overlay/elements/overlay-backdrop.js +64 -0
- package/lib/overlay/elements/overlay-viewport.d.ts +40 -0
- package/lib/overlay/elements/overlay-viewport.js +52 -0
- package/lib/overlay/elements/overlay.d.ts +408 -0
- package/lib/overlay/elements/overlay.js +1426 -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 +211 -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/helpers/types.d.ts +8 -0
- package/lib/overlay-menu/helpers/types.js +1 -0
- package/lib/overlay-menu/index.d.ts +387 -0
- package/lib/overlay-menu/index.js +935 -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/index.d.ts +275 -0
- package/lib/pagination/index.js +552 -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/index.d.ts +48 -0
- package/lib/panel/index.js +74 -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/index.d.ts +89 -0
- package/lib/password-field/index.js +112 -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/index.d.ts +97 -0
- package/lib/pill/index.js +160 -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/index.d.ts +82 -0
- package/lib/progress-bar/index.js +157 -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/index.d.ts +123 -0
- package/lib/radio-button/index.js +261 -0
- package/lib/radio-button/radio-button-registry.d.ts +22 -0
- package/lib/radio-button/radio-button-registry.js +93 -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/index.d.ts +91 -0
- package/lib/rating/index.js +157 -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/index.d.ts +77 -0
- package/lib/search-field/index.js +84 -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/helpers/types.d.ts +3 -0
- package/lib/select/helpers/types.js +1 -0
- package/lib/select/index.d.ts +396 -0
- package/lib/select/index.js +981 -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/index.d.ts +70 -0
- package/lib/sidebar-layout/index.js +134 -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/index.d.ts +409 -0
- package/lib/slider/index.js +1197 -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/index.d.ts +109 -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/helpers.d.ts +8 -0
- package/lib/swing-gauge/helpers.js +105 -0
- package/lib/swing-gauge/index.d.ts +296 -0
- package/lib/swing-gauge/index.js +764 -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 +13 -0
- package/lib/tab/custom-elements.md +1 -0
- package/lib/tab/index.d.ts +136 -0
- package/lib/tab/index.js +236 -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 +12 -0
- package/lib/tab-bar/custom-elements.md +7 -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 +198 -0
- package/lib/tab-bar/index.js +428 -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/index.d.ts +151 -0
- package/lib/text-field/index.js +260 -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/index.d.ts +412 -0
- package/lib/time-picker/index.js +898 -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/index.d.ts +87 -0
- package/lib/toggle/index.js +153 -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/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 +477 -0
- package/lib/tooltip/managers/tooltip-manager.d.ts +15 -0
- package/lib/tooltip/managers/tooltip-manager.js +140 -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/elements/tornado-chart.d.ts +78 -0
- package/lib/tornado-chart/elements/tornado-chart.js +122 -0
- package/lib/tornado-chart/elements/tornado-item.d.ts +110 -0
- package/lib/tornado-chart/elements/tornado-item.js +207 -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/elements/tree-item.d.ts +129 -0
- package/lib/tree/elements/tree-item.js +238 -0
- package/lib/tree/elements/tree.d.ts +203 -0
- package/lib/tree/elements/tree.js +414 -0
- package/lib/tree/helpers/filter.d.ts +8 -0
- package/lib/tree/helpers/filter.js +33 -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 +25 -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 +248 -0
- package/lib/tree/managers/tree-manager.js +395 -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/helpers/types.d.ts +4 -0
- package/lib/tree-select/helpers/types.js +1 -0
- package/lib/tree-select/index.d.ts +404 -0
- package/lib/tree-select/index.js +891 -0
- package/lib/tree-select/themes/halo/dark/index.js +11 -0
- package/lib/tree-select/themes/halo/light/index.js +11 -0
- package/lib/tree-select/themes/solar/charcoal/index.js +11 -0
- package/lib/tree-select/themes/solar/pearl/index.js +11 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +293 -24
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { BasicElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
/**
|
|
4
|
+
* Used to display multiple buttons to create a list of commands bar.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ButtonBar extends BasicElement {
|
|
7
|
+
/**
|
|
8
|
+
* Element version number
|
|
9
|
+
* @returns version number
|
|
10
|
+
*/
|
|
11
|
+
static get version(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Element's role attribute for accessibility
|
|
14
|
+
* `role` should be `radiogroup` when it is managed.
|
|
15
|
+
*/
|
|
16
|
+
protected defaultRole: 'toolbar' | 'radiogroup';
|
|
17
|
+
/**
|
|
18
|
+
* A `CSSResultGroup` that will be used
|
|
19
|
+
* to style the host, slotted children
|
|
20
|
+
* and the internal template of the element.
|
|
21
|
+
* @return CSS template
|
|
22
|
+
*/
|
|
23
|
+
static get styles(): CSSResultGroup;
|
|
24
|
+
/**
|
|
25
|
+
* Manages user interaction, only allowing one toggle button to be active at any one time.
|
|
26
|
+
*/
|
|
27
|
+
managed: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Default slot
|
|
30
|
+
*/
|
|
31
|
+
private defaultSlot;
|
|
32
|
+
/**
|
|
33
|
+
* Called once after the component is first rendered
|
|
34
|
+
* @param changedProperties map of changed properties with old values
|
|
35
|
+
* @returns {void}
|
|
36
|
+
*/
|
|
37
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
38
|
+
/**
|
|
39
|
+
* Handles key down event
|
|
40
|
+
* @param event Key down event object
|
|
41
|
+
* @returns {void}
|
|
42
|
+
*/
|
|
43
|
+
private onKeyDown;
|
|
44
|
+
/**
|
|
45
|
+
* Navigate to next or previous focusable button
|
|
46
|
+
* @param direction next | down
|
|
47
|
+
* @returns {void}
|
|
48
|
+
*/
|
|
49
|
+
private navigateToSibling;
|
|
50
|
+
/**
|
|
51
|
+
* Navigate to the first focusable button
|
|
52
|
+
* @returns {void}
|
|
53
|
+
*/
|
|
54
|
+
private first;
|
|
55
|
+
/**
|
|
56
|
+
* Navigate to the last focusable button
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
private last;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the tabindex to -1 for all buttons except the currently focused one.
|
|
62
|
+
* @param target the button to be focused
|
|
63
|
+
* @param buttons Array of Buttons that contains target
|
|
64
|
+
* @returns {void}
|
|
65
|
+
*/
|
|
66
|
+
private rovingTabIndex;
|
|
67
|
+
/**
|
|
68
|
+
* Set tabIndex to all buttons
|
|
69
|
+
* @returns {void}
|
|
70
|
+
*/
|
|
71
|
+
private manageTabIndex;
|
|
72
|
+
/**
|
|
73
|
+
* Check if button bar is nested, a.k.a. has parent button bar
|
|
74
|
+
* @returns `True` if button bar is nested
|
|
75
|
+
*/
|
|
76
|
+
private isNested;
|
|
77
|
+
/**
|
|
78
|
+
* Handles tap event
|
|
79
|
+
* @param event the param is the event of click and tap handlers
|
|
80
|
+
* @returns {void}
|
|
81
|
+
*/
|
|
82
|
+
private onTapHandler;
|
|
83
|
+
/**
|
|
84
|
+
* Get the target Button item and handle it with other managed Button items
|
|
85
|
+
* @param targetButton an Button item is the target of the event
|
|
86
|
+
* @returns {void}
|
|
87
|
+
*/
|
|
88
|
+
private manageButtons;
|
|
89
|
+
/**
|
|
90
|
+
* Return the array of Element items which is changed in the default slot
|
|
91
|
+
* @returns the array of Element of the default slot
|
|
92
|
+
*/
|
|
93
|
+
private getElementsOfSlot;
|
|
94
|
+
/**
|
|
95
|
+
* Return the array of Buttons which focusable
|
|
96
|
+
* @returns the array of focusable Buttons
|
|
97
|
+
*/
|
|
98
|
+
private getFocusableButtons;
|
|
99
|
+
/**
|
|
100
|
+
* Filter Button classes by the toggles property
|
|
101
|
+
* @param buttons the array of Button items is the converted nodes of the default slot
|
|
102
|
+
* @returns filtered Button items by the toggles property
|
|
103
|
+
*/
|
|
104
|
+
private getManagedButtons;
|
|
105
|
+
/**
|
|
106
|
+
* A `TemplateResult` that will be used
|
|
107
|
+
* to render the updated internal template.
|
|
108
|
+
* @return {TemplateResult} Render template
|
|
109
|
+
*/
|
|
110
|
+
protected render(): TemplateResult;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare global {
|
|
114
|
+
interface HTMLElementTagNameMap {
|
|
115
|
+
'ef-button-bar': ButtonBar;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
namespace JSX {
|
|
119
|
+
interface IntrinsicElements {
|
|
120
|
+
'ef-button-bar': Partial<ButtonBar> | JSXInterface.HTMLAttributes<ButtonBar>;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export {};
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
var ButtonBar_1;
|
|
2
|
+
import { __decorate } from "tslib";
|
|
3
|
+
import { BasicElement, html, css } from '@refinitiv-ui/core';
|
|
4
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
5
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
import { Button } from '../button/index.js';
|
|
8
|
+
import { ref, createRef } from '@refinitiv-ui/core/lib/directives/ref.js';
|
|
9
|
+
/**
|
|
10
|
+
* Used to display multiple buttons to create a list of commands bar.
|
|
11
|
+
*/
|
|
12
|
+
let ButtonBar = ButtonBar_1 = class ButtonBar extends BasicElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* Element's role attribute for accessibility
|
|
17
|
+
* `role` should be `radiogroup` when it is managed.
|
|
18
|
+
*/
|
|
19
|
+
this.defaultRole = 'toolbar';
|
|
20
|
+
/**
|
|
21
|
+
* Manages user interaction, only allowing one toggle button to be active at any one time.
|
|
22
|
+
*/
|
|
23
|
+
this.managed = false;
|
|
24
|
+
/**
|
|
25
|
+
* Default slot
|
|
26
|
+
*/
|
|
27
|
+
this.defaultSlot = createRef();
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Element version number
|
|
31
|
+
* @returns version number
|
|
32
|
+
*/
|
|
33
|
+
static get version() {
|
|
34
|
+
return VERSION;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A `CSSResultGroup` that will be used
|
|
38
|
+
* to style the host, slotted children
|
|
39
|
+
* and the internal template of the element.
|
|
40
|
+
* @return CSS template
|
|
41
|
+
*/
|
|
42
|
+
static get styles() {
|
|
43
|
+
return css `
|
|
44
|
+
:host {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
z-index: 0;
|
|
47
|
+
}
|
|
48
|
+
:host ::slotted(ef-button) {
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
:host ::slotted(ef-button-bar) {
|
|
52
|
+
border-radius: 0;
|
|
53
|
+
margin: 0;
|
|
54
|
+
box-shadow: none;
|
|
55
|
+
overflow: visible;
|
|
56
|
+
background: none;
|
|
57
|
+
z-index: auto;
|
|
58
|
+
}
|
|
59
|
+
:host ::slotted(ef-button:hover) {
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
:host ::slotted(ef-button:focus) {
|
|
63
|
+
z-index: 2;
|
|
64
|
+
}
|
|
65
|
+
:host ::slotted(ef-button:not(:hover):not(:focus)) {
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
@media (pointer: coarse){
|
|
69
|
+
:host ::slotted(ef-button) {
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
:host ::slotted(ef-button:first-of-type) {
|
|
74
|
+
border-top-right-radius: 0;
|
|
75
|
+
border-bottom-right-radius: 0;
|
|
76
|
+
}
|
|
77
|
+
:host ::slotted(ef-button:last-of-type) {
|
|
78
|
+
border-top-left-radius: 0;
|
|
79
|
+
border-bottom-left-radius: 0;
|
|
80
|
+
}
|
|
81
|
+
:host ::slotted(ef-button:not(:first-of-type):not(:last-of-type)) {
|
|
82
|
+
border-radius: 0;
|
|
83
|
+
}
|
|
84
|
+
:host ::slotted(:not(ef-button):not(ef-button-bar)) {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Called once after the component is first rendered
|
|
91
|
+
* @param changedProperties map of changed properties with old values
|
|
92
|
+
* @returns {void}
|
|
93
|
+
*/
|
|
94
|
+
firstUpdated(changedProperties) {
|
|
95
|
+
super.firstUpdated(changedProperties);
|
|
96
|
+
this.addEventListener('tap', this.onTapHandler);
|
|
97
|
+
this.addEventListener('keydown', this.onKeyDown);
|
|
98
|
+
this.manageTabIndex();
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Handles key down event
|
|
102
|
+
* @param event Key down event object
|
|
103
|
+
* @returns {void}
|
|
104
|
+
*/
|
|
105
|
+
onKeyDown(event) {
|
|
106
|
+
switch (event.key) {
|
|
107
|
+
case 'Tab':
|
|
108
|
+
// To prevent inserting button case, make sure there is only one tabIndex=0 in the buttons
|
|
109
|
+
this.manageTabIndex();
|
|
110
|
+
break;
|
|
111
|
+
case ' ':
|
|
112
|
+
case 'Spacebar':
|
|
113
|
+
case 'Enter':
|
|
114
|
+
this.onTapHandler(event);
|
|
115
|
+
break;
|
|
116
|
+
case 'Right':
|
|
117
|
+
case 'ArrowRight':
|
|
118
|
+
// Prevent calling twice if this component is nested
|
|
119
|
+
!this.isNested() && this.navigateToSibling('next');
|
|
120
|
+
break;
|
|
121
|
+
case 'Down':
|
|
122
|
+
case 'ArrowDown':
|
|
123
|
+
// Managed works as role radiogroup so `Up` and `Down` key can navigate among radios in the group
|
|
124
|
+
this.managed && this.navigateToSibling('next');
|
|
125
|
+
break;
|
|
126
|
+
case 'Left':
|
|
127
|
+
case 'ArrowLeft':
|
|
128
|
+
!this.isNested() && this.navigateToSibling('previous');
|
|
129
|
+
break;
|
|
130
|
+
case 'Up':
|
|
131
|
+
case 'ArrowUp':
|
|
132
|
+
this.managed && this.navigateToSibling('previous');
|
|
133
|
+
break;
|
|
134
|
+
case 'Home':
|
|
135
|
+
!this.isNested() && this.first();
|
|
136
|
+
break;
|
|
137
|
+
case 'End':
|
|
138
|
+
!this.isNested() && this.last();
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Navigate to next or previous focusable button
|
|
146
|
+
* @param direction next | down
|
|
147
|
+
* @returns {void}
|
|
148
|
+
*/
|
|
149
|
+
navigateToSibling(direction) {
|
|
150
|
+
const buttons = this.getFocusableButtons();
|
|
151
|
+
if (buttons.length <= 0) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const focusedButtonIndex = buttons.findIndex(button => button === document.activeElement);
|
|
155
|
+
const nextButton = direction === 'next'
|
|
156
|
+
? buttons[focusedButtonIndex + 1] || buttons[0]
|
|
157
|
+
: buttons[focusedButtonIndex - 1] || buttons[buttons.length - 1];
|
|
158
|
+
nextButton.focus();
|
|
159
|
+
this.rovingTabIndex(nextButton, buttons);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Navigate to the first focusable button
|
|
163
|
+
* @returns {void}
|
|
164
|
+
*/
|
|
165
|
+
first() {
|
|
166
|
+
const buttons = this.getFocusableButtons();
|
|
167
|
+
if (buttons.length <= 0) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
buttons[0].focus();
|
|
171
|
+
this.rovingTabIndex(buttons[0], buttons);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Navigate to the last focusable button
|
|
175
|
+
* @returns {void}
|
|
176
|
+
*/
|
|
177
|
+
last() {
|
|
178
|
+
const buttons = this.getFocusableButtons();
|
|
179
|
+
if (buttons.length <= 0) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
buttons[buttons.length - 1].focus();
|
|
183
|
+
this.rovingTabIndex(buttons[buttons.length - 1], buttons);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Sets the tabindex to -1 for all buttons except the currently focused one.
|
|
187
|
+
* @param target the button to be focused
|
|
188
|
+
* @param buttons Array of Buttons that contains target
|
|
189
|
+
* @returns {void}
|
|
190
|
+
*/
|
|
191
|
+
rovingTabIndex(target, buttons) {
|
|
192
|
+
buttons.forEach((button) => {
|
|
193
|
+
button.tabIndex = -1;
|
|
194
|
+
});
|
|
195
|
+
target.tabIndex = 0;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Set tabIndex to all buttons
|
|
199
|
+
* @returns {void}
|
|
200
|
+
*/
|
|
201
|
+
manageTabIndex() {
|
|
202
|
+
if (this.isNested()) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const buttons = this.getFocusableButtons();
|
|
206
|
+
if (buttons && buttons.length > 0) {
|
|
207
|
+
// Set tabindex=0 to previous focused button when new button added If not found set it to first button instead
|
|
208
|
+
let focusedButtonIndex = buttons.findIndex(button => document.activeElement === button);
|
|
209
|
+
if (focusedButtonIndex === -1) {
|
|
210
|
+
focusedButtonIndex = 0;
|
|
211
|
+
}
|
|
212
|
+
this.rovingTabIndex(buttons[focusedButtonIndex], buttons);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Check if button bar is nested, a.k.a. has parent button bar
|
|
217
|
+
* @returns `True` if button bar is nested
|
|
218
|
+
*/
|
|
219
|
+
isNested() {
|
|
220
|
+
return this.parentElement instanceof ButtonBar_1;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Handles tap event
|
|
224
|
+
* @param event the param is the event of click and tap handlers
|
|
225
|
+
* @returns {void}
|
|
226
|
+
*/
|
|
227
|
+
onTapHandler(event) {
|
|
228
|
+
if (!this.managed) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const target = event.target;
|
|
232
|
+
if (target instanceof Button && target.toggles) {
|
|
233
|
+
event.stopPropagation();
|
|
234
|
+
this.manageButtons(target);
|
|
235
|
+
}
|
|
236
|
+
target.focus();
|
|
237
|
+
this.rovingTabIndex(target, this.getFocusableButtons());
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get the target Button item and handle it with other managed Button items
|
|
241
|
+
* @param targetButton an Button item is the target of the event
|
|
242
|
+
* @returns {void}
|
|
243
|
+
*/
|
|
244
|
+
manageButtons(targetButton) {
|
|
245
|
+
const managedButtons = this.getManagedButtons();
|
|
246
|
+
const isTargetOfManaged = managedButtons.some(managedButton => managedButton === targetButton);
|
|
247
|
+
if (!isTargetOfManaged) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
managedButtons.forEach(managedButton => {
|
|
251
|
+
managedButton.active = managedButton === targetButton;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Return the array of Element items which is changed in the default slot
|
|
256
|
+
* @returns the array of Element of the default slot
|
|
257
|
+
*/
|
|
258
|
+
getElementsOfSlot() {
|
|
259
|
+
var _a;
|
|
260
|
+
return (_a = this.defaultSlot.value) === null || _a === void 0 ? void 0 : _a.assignedNodes().filter(node => node instanceof Element);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Return the array of Buttons which focusable
|
|
264
|
+
* @returns the array of focusable Buttons
|
|
265
|
+
*/
|
|
266
|
+
getFocusableButtons() {
|
|
267
|
+
return [...this.querySelectorAll('ef-button,coral-button')].filter(button => !button.disabled);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Filter Button classes by the toggles property
|
|
271
|
+
* @param buttons the array of Button items is the converted nodes of the default slot
|
|
272
|
+
* @returns filtered Button items by the toggles property
|
|
273
|
+
*/
|
|
274
|
+
getManagedButtons() {
|
|
275
|
+
const elements = this.getElementsOfSlot();
|
|
276
|
+
return elements.filter(element => element instanceof Button && element.toggles);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* A `TemplateResult` that will be used
|
|
280
|
+
* to render the updated internal template.
|
|
281
|
+
* @return {TemplateResult} Render template
|
|
282
|
+
*/
|
|
283
|
+
render() {
|
|
284
|
+
return html `<slot ${ref(this.defaultSlot)} ></slot>`;
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
__decorate([
|
|
288
|
+
property({ type: Boolean, reflect: true })
|
|
289
|
+
], ButtonBar.prototype, "managed", void 0);
|
|
290
|
+
ButtonBar = ButtonBar_1 = __decorate([
|
|
291
|
+
customElement('ef-button-bar', {
|
|
292
|
+
alias: 'coral-split-button'
|
|
293
|
+
})
|
|
294
|
+
], ButtonBar);
|
|
295
|
+
export { ButtonBar };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/button/themes/halo/dark';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-button-bar', ':host{vertical-align:bottom;margin:1px 0;border-radius:0;box-shadow:0 0 0 0 rgba(0,0,0,.5);touch-action:manipulation;background:0 0}::slotted(ef-button:not(:hover):not(:focus)){box-shadow:0 0 1px rgba(0,0,0,.5)}:host ::slotted(ef-button:not(:focus):hover),:host ::slotted(ef-button:not(:focus)[active][toggles]:hover){border-color:#0d0d0d}:host ::slotted(ef-button-bar:not(:first-child)),:host ::slotted(ef-button:not(:first-child)){margin-left:-1px}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/button/themes/halo/light';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-button-bar', ':host{vertical-align:bottom;margin:1px 0;border-radius:0;box-shadow:0 0 0 0 rgba(0,0,0,.25);touch-action:manipulation;background:0 0}::slotted(ef-button:not(:hover):not(:focus)){box-shadow:0 0 1px rgba(0,0,0,.25)}:host ::slotted(ef-button:not(:focus):hover),:host ::slotted(ef-button:not(:focus)[active][toggles]:hover){border-color:#ccc}:host ::slotted(ef-button-bar:not(:first-child)),:host ::slotted(ef-button:not(:first-child)){margin-left:-1px}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/button/themes/solar/charcoal';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-button-bar', ':host{vertical-align:bottom;margin:1px 0;border-radius:0;box-shadow:0 0 0 0 rgba(0,0,0,.6);touch-action:manipulation;background:0 0}::slotted(ef-button:not(:hover):not(:focus)){box-shadow:0 0 1px rgba(0,0,0,.6)}:host ::slotted(ef-button-bar:not(:first-child)),:host ::slotted(ef-button:not(:first-child)){margin-left:-1px}:host ::slotted(ef-button){box-shadow:none}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/button/themes/solar/pearl';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-button-bar', ':host{vertical-align:bottom;margin:1px 0;border-radius:0;box-shadow:0 0 0 0 rgba(0,0,0,.3);touch-action:manipulation;background:0 0}::slotted(ef-button:not(:hover):not(:focus)){box-shadow:0 0 1px rgba(0,0,0,.3)}:host ::slotted(ef-button-bar:not(:first-child)),:host ::slotted(ef-button:not(:first-child)){margin-left:-1px}:host ::slotted(ef-button){box-shadow:none}');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum RenderView {
|
|
2
|
+
DAY = "day",
|
|
3
|
+
MONTH = "month",
|
|
4
|
+
YEAR = "year"
|
|
5
|
+
}
|
|
6
|
+
export declare const FIRST_DAY_OF_WEEK = 0;
|
|
7
|
+
export declare const YEARS_PER_YEAR_VIEW = 16;
|
|
8
|
+
export declare const DAY_VIEW: {
|
|
9
|
+
rowCount: number;
|
|
10
|
+
columnCount: number;
|
|
11
|
+
totalCount: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const YEAR_VIEW: {
|
|
14
|
+
rowCount: number;
|
|
15
|
+
columnCount: number;
|
|
16
|
+
totalCount: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const MONTH_VIEW: {
|
|
19
|
+
rowCount: number;
|
|
20
|
+
columnCount: number;
|
|
21
|
+
totalCount: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A symbol to ensure these locales cannot be overridden
|
|
25
|
+
*/
|
|
26
|
+
export declare const CalendarLocaleScope: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { uuid } from '@refinitiv-ui/utils/lib/uuid.js';
|
|
2
|
+
export var RenderView;
|
|
3
|
+
(function (RenderView) {
|
|
4
|
+
RenderView["DAY"] = "day";
|
|
5
|
+
RenderView["MONTH"] = "month";
|
|
6
|
+
RenderView["YEAR"] = "year";
|
|
7
|
+
})(RenderView || (RenderView = {}));
|
|
8
|
+
export const FIRST_DAY_OF_WEEK = 0; // 0 for Sunday
|
|
9
|
+
export const YEARS_PER_YEAR_VIEW = 16; /* must be a square number */
|
|
10
|
+
export const DAY_VIEW = {
|
|
11
|
+
rowCount: 6,
|
|
12
|
+
columnCount: 7,
|
|
13
|
+
totalCount: 6 * 7
|
|
14
|
+
};
|
|
15
|
+
export const YEAR_VIEW = {
|
|
16
|
+
rowCount: 4,
|
|
17
|
+
columnCount: 4,
|
|
18
|
+
totalCount: 4 * 4
|
|
19
|
+
};
|
|
20
|
+
export const MONTH_VIEW = {
|
|
21
|
+
rowCount: 4,
|
|
22
|
+
columnCount: 4,
|
|
23
|
+
totalCount: 4 * 4
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A symbol to ensure these locales cannot be overridden
|
|
27
|
+
*/
|
|
28
|
+
export const CalendarLocaleScope = uuid();
|