@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,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/solar/pearl';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/solar/pearl';
|
|
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:#ee7600}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:rgba(0,0,0,.08)}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#000}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(72,72,72,.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:#484848;background-color:#f2f3f7;font-size:100%;font-weight:400;border:1px solid #d5d8db;height:22px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;border:none;border-top:1px solid #d5d8db;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(#a9afba,#a9afba) 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}');
|
package/lib/jsx.d.ts
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
export declare namespace JSXInterface {
|
|
2
|
+
interface ControlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
3
|
+
accept?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
autoComplete?: string;
|
|
6
|
+
autocomplete?: string;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
autofocus?: boolean | string;
|
|
9
|
+
capture?: string;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
crossOrigin?: string;
|
|
12
|
+
crossorigin?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
form?: string;
|
|
15
|
+
formAction?: string;
|
|
16
|
+
formaction?: string;
|
|
17
|
+
formEncType?: string;
|
|
18
|
+
formenctype?: string;
|
|
19
|
+
formMethod?: string;
|
|
20
|
+
formmethod?: string;
|
|
21
|
+
formNoValidate?: boolean;
|
|
22
|
+
formnovalidate?: boolean;
|
|
23
|
+
formTarget?: string;
|
|
24
|
+
formtarget?: string;
|
|
25
|
+
height?: number | string;
|
|
26
|
+
list?: string;
|
|
27
|
+
max?: number | string;
|
|
28
|
+
maxLength?: number;
|
|
29
|
+
maxlength?: number | string;
|
|
30
|
+
min?: number | string;
|
|
31
|
+
minLength?: number;
|
|
32
|
+
minlength?: number | string;
|
|
33
|
+
multiple?: boolean;
|
|
34
|
+
name?: string;
|
|
35
|
+
pattern?: string;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
readOnly?: boolean;
|
|
38
|
+
readonly?: boolean | string;
|
|
39
|
+
required?: boolean;
|
|
40
|
+
size?: number;
|
|
41
|
+
src?: string;
|
|
42
|
+
step?: number | string;
|
|
43
|
+
type?: string;
|
|
44
|
+
value?: string | string[] | number;
|
|
45
|
+
width?: number | string;
|
|
46
|
+
}
|
|
47
|
+
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
48
|
+
innerHTML?: string;
|
|
49
|
+
key?: string | number;
|
|
50
|
+
accessKey?: string;
|
|
51
|
+
class?: string | {
|
|
52
|
+
[className: string]: boolean;
|
|
53
|
+
};
|
|
54
|
+
contentEditable?: boolean | string;
|
|
55
|
+
contenteditable?: boolean | string;
|
|
56
|
+
contextMenu?: string;
|
|
57
|
+
contextmenu?: string;
|
|
58
|
+
dir?: string;
|
|
59
|
+
draggable?: boolean;
|
|
60
|
+
hidden?: boolean;
|
|
61
|
+
id?: string;
|
|
62
|
+
lang?: string;
|
|
63
|
+
spellCheck?: boolean;
|
|
64
|
+
spellcheck?: boolean | string;
|
|
65
|
+
style?: {
|
|
66
|
+
[key: string]: string | undefined;
|
|
67
|
+
};
|
|
68
|
+
tabIndex?: number;
|
|
69
|
+
tabindex?: number | string;
|
|
70
|
+
title?: string;
|
|
71
|
+
inputMode?: string;
|
|
72
|
+
inputmode?: string;
|
|
73
|
+
is?: string;
|
|
74
|
+
radioGroup?: string;
|
|
75
|
+
radiogroup?: string;
|
|
76
|
+
part?: string;
|
|
77
|
+
role?: string;
|
|
78
|
+
about?: string;
|
|
79
|
+
datatype?: string;
|
|
80
|
+
inlist?: any;
|
|
81
|
+
prefix?: string;
|
|
82
|
+
property?: string;
|
|
83
|
+
resource?: string;
|
|
84
|
+
typeof?: string;
|
|
85
|
+
vocab?: string;
|
|
86
|
+
autoCapitalize?: string;
|
|
87
|
+
autocapitalize?: string;
|
|
88
|
+
autoCorrect?: string;
|
|
89
|
+
autocorrect?: string;
|
|
90
|
+
autoSave?: string;
|
|
91
|
+
autosave?: string;
|
|
92
|
+
color?: string;
|
|
93
|
+
itemProp?: string;
|
|
94
|
+
itemprop?: string;
|
|
95
|
+
itemScope?: boolean;
|
|
96
|
+
itemscope?: boolean;
|
|
97
|
+
itemType?: string;
|
|
98
|
+
itemtype?: string;
|
|
99
|
+
itemID?: string;
|
|
100
|
+
itemid?: string;
|
|
101
|
+
itemRef?: string;
|
|
102
|
+
itemref?: string;
|
|
103
|
+
results?: number;
|
|
104
|
+
security?: string;
|
|
105
|
+
unselectable?: boolean;
|
|
106
|
+
}
|
|
107
|
+
interface DOMAttributes<T = Element> {
|
|
108
|
+
ref?: any;
|
|
109
|
+
slot?: string;
|
|
110
|
+
children?: any;
|
|
111
|
+
onCopy?: (event: ClipboardEvent) => void;
|
|
112
|
+
onCopyCapture?: (event: ClipboardEvent) => void;
|
|
113
|
+
onCut?: (event: ClipboardEvent) => void;
|
|
114
|
+
onCutCapture?: (event: ClipboardEvent) => void;
|
|
115
|
+
onPaste?: (event: ClipboardEvent) => void;
|
|
116
|
+
onPasteCapture?: (event: ClipboardEvent) => void;
|
|
117
|
+
onCompositionEnd?: (event: CompositionEvent) => void;
|
|
118
|
+
onCompositionEndCapture?: (event: CompositionEvent) => void;
|
|
119
|
+
onCompositionStart?: (event: CompositionEvent) => void;
|
|
120
|
+
onCompositionStartCapture?: (event: CompositionEvent) => void;
|
|
121
|
+
onCompositionUpdate?: (event: CompositionEvent) => void;
|
|
122
|
+
onCompositionUpdateCapture?: (event: CompositionEvent) => void;
|
|
123
|
+
onFocus?: (event: FocusEvent) => void;
|
|
124
|
+
onFocusCapture?: (event: FocusEvent) => void;
|
|
125
|
+
onBlur?: (event: FocusEvent) => void;
|
|
126
|
+
onBlurCapture?: (event: FocusEvent) => void;
|
|
127
|
+
onChange?: (event: Event) => void;
|
|
128
|
+
onChangeCapture?: (event: Event) => void;
|
|
129
|
+
onInput?: (event: Event) => void;
|
|
130
|
+
onInputCapture?: (event: Event) => void;
|
|
131
|
+
onReset?: (event: Event) => void;
|
|
132
|
+
onResetCapture?: (event: Event) => void;
|
|
133
|
+
onSubmit?: (event: Event) => void;
|
|
134
|
+
onSubmitCapture?: (event: Event) => void;
|
|
135
|
+
onInvalid?: (event: Event) => void;
|
|
136
|
+
onInvalidCapture?: (event: Event) => void;
|
|
137
|
+
onLoad?: (event: Event) => void;
|
|
138
|
+
onLoadCapture?: (event: Event) => void;
|
|
139
|
+
onError?: (event: Event) => void;
|
|
140
|
+
onErrorCapture?: (event: Event) => void;
|
|
141
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
142
|
+
onKeyDownCapture?: (event: KeyboardEvent) => void;
|
|
143
|
+
onKeyPress?: (event: KeyboardEvent) => void;
|
|
144
|
+
onKeyPressCapture?: (event: KeyboardEvent) => void;
|
|
145
|
+
onKeyUp?: (event: KeyboardEvent) => void;
|
|
146
|
+
onKeyUpCapture?: (event: KeyboardEvent) => void;
|
|
147
|
+
onAuxClick?: (event: MouseEvent) => void;
|
|
148
|
+
onClick?: (event: MouseEvent) => void;
|
|
149
|
+
onClickCapture?: (event: MouseEvent) => void;
|
|
150
|
+
onContextMenu?: (event: MouseEvent) => void;
|
|
151
|
+
onContextMenuCapture?: (event: MouseEvent) => void;
|
|
152
|
+
onDblClick?: (event: MouseEvent) => void;
|
|
153
|
+
onDblClickCapture?: (event: MouseEvent) => void;
|
|
154
|
+
onDrag?: (event: DragEvent) => void;
|
|
155
|
+
onDragCapture?: (event: DragEvent) => void;
|
|
156
|
+
onDragEnd?: (event: DragEvent) => void;
|
|
157
|
+
onDragEndCapture?: (event: DragEvent) => void;
|
|
158
|
+
onDragEnter?: (event: DragEvent) => void;
|
|
159
|
+
onDragEnterCapture?: (event: DragEvent) => void;
|
|
160
|
+
onDragExit?: (event: DragEvent) => void;
|
|
161
|
+
onDragExitCapture?: (event: DragEvent) => void;
|
|
162
|
+
onDragLeave?: (event: DragEvent) => void;
|
|
163
|
+
onDragLeaveCapture?: (event: DragEvent) => void;
|
|
164
|
+
onDragOver?: (event: DragEvent) => void;
|
|
165
|
+
onDragOverCapture?: (event: DragEvent) => void;
|
|
166
|
+
onDragStart?: (event: DragEvent) => void;
|
|
167
|
+
onDragStartCapture?: (event: DragEvent) => void;
|
|
168
|
+
onDrop?: (event: DragEvent) => void;
|
|
169
|
+
onDropCapture?: (event: DragEvent) => void;
|
|
170
|
+
onMouseDown?: (event: MouseEvent) => void;
|
|
171
|
+
onMouseDownCapture?: (event: MouseEvent) => void;
|
|
172
|
+
onMouseEnter?: (event: MouseEvent) => void;
|
|
173
|
+
onMouseLeave?: (event: MouseEvent) => void;
|
|
174
|
+
onMouseMove?: (event: MouseEvent) => void;
|
|
175
|
+
onMouseMoveCapture?: (event: MouseEvent) => void;
|
|
176
|
+
onMouseOut?: (event: MouseEvent) => void;
|
|
177
|
+
onMouseOutCapture?: (event: MouseEvent) => void;
|
|
178
|
+
onMouseOver?: (event: MouseEvent) => void;
|
|
179
|
+
onMouseOverCapture?: (event: MouseEvent) => void;
|
|
180
|
+
onMouseUp?: (event: MouseEvent) => void;
|
|
181
|
+
onMouseUpCapture?: (event: MouseEvent) => void;
|
|
182
|
+
onTouchCancel?: (event: TouchEvent) => void;
|
|
183
|
+
onTouchCancelCapture?: (event: TouchEvent) => void;
|
|
184
|
+
onTouchEnd?: (event: TouchEvent) => void;
|
|
185
|
+
onTouchEndCapture?: (event: TouchEvent) => void;
|
|
186
|
+
onTouchMove?: (event: TouchEvent) => void;
|
|
187
|
+
onTouchMoveCapture?: (event: TouchEvent) => void;
|
|
188
|
+
onTouchStart?: (event: TouchEvent) => void;
|
|
189
|
+
onTouchStartCapture?: (event: TouchEvent) => void;
|
|
190
|
+
onPointerDown?: (event: PointerEvent) => void;
|
|
191
|
+
onPointerDownCapture?: (event: PointerEvent) => void;
|
|
192
|
+
onPointerMove?: (event: PointerEvent) => void;
|
|
193
|
+
onPointerMoveCapture?: (event: PointerEvent) => void;
|
|
194
|
+
onPointerUp?: (event: PointerEvent) => void;
|
|
195
|
+
onPointerUpCapture?: (event: PointerEvent) => void;
|
|
196
|
+
onPointerCancel?: (event: PointerEvent) => void;
|
|
197
|
+
onPointerCancelCapture?: (event: PointerEvent) => void;
|
|
198
|
+
onPointerEnter?: (event: PointerEvent) => void;
|
|
199
|
+
onPointerEnterCapture?: (event: PointerEvent) => void;
|
|
200
|
+
onPointerLeave?: (event: PointerEvent) => void;
|
|
201
|
+
onPointerLeaveCapture?: (event: PointerEvent) => void;
|
|
202
|
+
onPointerOver?: (event: PointerEvent) => void;
|
|
203
|
+
onPointerOverCapture?: (event: PointerEvent) => void;
|
|
204
|
+
onPointerOut?: (event: PointerEvent) => void;
|
|
205
|
+
onPointerOutCapture?: (event: PointerEvent) => void;
|
|
206
|
+
onGotPointerCapture?: (event: PointerEvent) => void;
|
|
207
|
+
onGotPointerCaptureCapture?: (event: PointerEvent) => void;
|
|
208
|
+
onLostPointerCapture?: (event: PointerEvent) => void;
|
|
209
|
+
onLostPointerCaptureCapture?: (event: PointerEvent) => void;
|
|
210
|
+
onScroll?: (event: UIEvent) => void;
|
|
211
|
+
onScrollCapture?: (event: UIEvent) => void;
|
|
212
|
+
onWheel?: (event: WheelEvent) => void;
|
|
213
|
+
onWheelCapture?: (event: WheelEvent) => void;
|
|
214
|
+
onAnimationStart?: (event: AnimationEvent) => void;
|
|
215
|
+
onAnimationStartCapture?: (event: AnimationEvent) => void;
|
|
216
|
+
onAnimationEnd?: (event: AnimationEvent) => void;
|
|
217
|
+
onAnimationEndCapture?: (event: AnimationEvent) => void;
|
|
218
|
+
onAnimationIteration?: (event: AnimationEvent) => void;
|
|
219
|
+
onAnimationIterationCapture?: (event: AnimationEvent) => void;
|
|
220
|
+
onTransitionEnd?: (event: TransitionEvent) => void;
|
|
221
|
+
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "experimental",
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ef-label",
|
|
6
|
+
"description": "Displays a text with alternative truncation",
|
|
7
|
+
"attributes": [
|
|
8
|
+
{
|
|
9
|
+
"name": "line-clamp",
|
|
10
|
+
"description": "Limit the number of lines before truncating",
|
|
11
|
+
"type": "number",
|
|
12
|
+
"default": "0"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "error",
|
|
16
|
+
"description": "Set state to error",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": "false"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "warning",
|
|
22
|
+
"description": "Set state to warning",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": "false"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"properties": [
|
|
28
|
+
{
|
|
29
|
+
"name": "lineClamp",
|
|
30
|
+
"attribute": "line-clamp",
|
|
31
|
+
"description": "Limit the number of lines before truncating",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"default": "0"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "error",
|
|
37
|
+
"attribute": "error",
|
|
38
|
+
"description": "Set state to error",
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": "false"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "warning",
|
|
44
|
+
"attribute": "warning",
|
|
45
|
+
"description": "Set state to warning",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": "false"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { BasicElement, TemplateResult, CSSResult } from '@refinitiv-ui/core';
|
|
3
|
+
/**
|
|
4
|
+
* Displays a text with alternative truncation
|
|
5
|
+
*/
|
|
6
|
+
export declare class Label extends BasicElement {
|
|
7
|
+
/**
|
|
8
|
+
* Element version number
|
|
9
|
+
* @returns version number
|
|
10
|
+
*/
|
|
11
|
+
static get version(): string;
|
|
12
|
+
/**
|
|
13
|
+
* A `CSSResult` that will be used
|
|
14
|
+
* to style the host, slotted children
|
|
15
|
+
* and the internal template of the element.
|
|
16
|
+
* @returns CSS template
|
|
17
|
+
*/
|
|
18
|
+
static get styles(): CSSResult | CSSResult[];
|
|
19
|
+
/**
|
|
20
|
+
* Limit the number of lines before truncating
|
|
21
|
+
*/
|
|
22
|
+
lineClamp: number;
|
|
23
|
+
/**
|
|
24
|
+
* Set state to error
|
|
25
|
+
*/
|
|
26
|
+
error: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Set state to warning
|
|
29
|
+
*/
|
|
30
|
+
warning: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Trimmed chunks of textual content
|
|
33
|
+
*/
|
|
34
|
+
private chunks;
|
|
35
|
+
/**
|
|
36
|
+
* Mutation Observer used to detect changes in the Light DOM
|
|
37
|
+
*/
|
|
38
|
+
private mutationObserver;
|
|
39
|
+
/**
|
|
40
|
+
* Render used to display the tooltip
|
|
41
|
+
* @returns Tooltip text
|
|
42
|
+
*/
|
|
43
|
+
protected tooltipRenderer: () => string;
|
|
44
|
+
/**
|
|
45
|
+
* Condition used to display the tooltip
|
|
46
|
+
* @param target Tooltip target
|
|
47
|
+
* @returns Whether the tooltip should be shown or not.
|
|
48
|
+
*/
|
|
49
|
+
protected tooltipCondition: (target: HTMLElement) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @override
|
|
52
|
+
*/
|
|
53
|
+
connectedCallback(): void;
|
|
54
|
+
/**
|
|
55
|
+
* @override
|
|
56
|
+
*/
|
|
57
|
+
disconnectedCallback(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Decides whether the tooltip should b shown
|
|
60
|
+
* @param tooltipTarget Target element passed by the tooltip condition
|
|
61
|
+
* @returns True if the tooltip should be shown
|
|
62
|
+
*/
|
|
63
|
+
protected shouldShowTooltip(tooltipTarget: HTMLElement): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Handles any modifications to the internal HTML
|
|
66
|
+
* @param [mutation=false] is the request from a mutation event?
|
|
67
|
+
* @returns {void}
|
|
68
|
+
*/
|
|
69
|
+
protected recalculate(mutation?: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* Returns cleaned version of `this.textContent`.
|
|
72
|
+
*/
|
|
73
|
+
protected get text(): string;
|
|
74
|
+
/**
|
|
75
|
+
* Default template
|
|
76
|
+
*/
|
|
77
|
+
protected get truncateTemplate(): TemplateResult;
|
|
78
|
+
/**
|
|
79
|
+
* Template for when line clamp is set
|
|
80
|
+
*/
|
|
81
|
+
protected get clampTemplate(): TemplateResult;
|
|
82
|
+
/**
|
|
83
|
+
* A `TemplateResult` that will be used
|
|
84
|
+
* to render the updated internal template.
|
|
85
|
+
* @return Render template
|
|
86
|
+
*/
|
|
87
|
+
protected render(): TemplateResult;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare global {
|
|
91
|
+
interface HTMLElementTagNameMap {
|
|
92
|
+
'ef-label': Label;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
namespace JSX {
|
|
96
|
+
interface IntrinsicElements {
|
|
97
|
+
'ef-label': Partial<Label> | JSXInterface.HTMLAttributes<Label>;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
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 { BasicElement, html, css, customElement, property, styleMap } from '@refinitiv-ui/core';
|
|
8
|
+
import { VERSION } from '../';
|
|
9
|
+
import { addTooltipCondition, removeTooltipCondition } from '../tooltip';
|
|
10
|
+
/**
|
|
11
|
+
* Configuration object
|
|
12
|
+
* for mutations observers
|
|
13
|
+
*/
|
|
14
|
+
const observerOptions = {
|
|
15
|
+
subtree: true,
|
|
16
|
+
childList: true,
|
|
17
|
+
characterData: true
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Reusable SPACE
|
|
21
|
+
*/
|
|
22
|
+
const _ = ' ';
|
|
23
|
+
/**
|
|
24
|
+
* Helper to check if the browser is IE
|
|
25
|
+
* @returns True if the browser is IE
|
|
26
|
+
*/
|
|
27
|
+
const isIE = () => !!navigator.userAgent.match(/Trident/g) || !!navigator.userAgent.match(/MSIE/g);
|
|
28
|
+
/**
|
|
29
|
+
* Determines if the browser is legacy or modern.
|
|
30
|
+
*/
|
|
31
|
+
/* istanbul ignore next */
|
|
32
|
+
const browserType = isIE() ? 'legacy' : 'modern';
|
|
33
|
+
/**
|
|
34
|
+
* Displays a text with alternative truncation
|
|
35
|
+
*/
|
|
36
|
+
let Label = class Label extends BasicElement {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
/**
|
|
40
|
+
* Limit the number of lines before truncating
|
|
41
|
+
*/
|
|
42
|
+
this.lineClamp = 0;
|
|
43
|
+
/**
|
|
44
|
+
* Set state to error
|
|
45
|
+
*/
|
|
46
|
+
this.error = false;
|
|
47
|
+
/**
|
|
48
|
+
* Set state to warning
|
|
49
|
+
*/
|
|
50
|
+
this.warning = false;
|
|
51
|
+
/**
|
|
52
|
+
* Trimmed chunks of textual content
|
|
53
|
+
*/
|
|
54
|
+
this.chunks = [];
|
|
55
|
+
/**
|
|
56
|
+
* Mutation Observer used to detect changes in the Light DOM
|
|
57
|
+
*/
|
|
58
|
+
this.mutationObserver = new MutationObserver(() => this.recalculate(true));
|
|
59
|
+
/**
|
|
60
|
+
* Render used to display the tooltip
|
|
61
|
+
* @returns Tooltip text
|
|
62
|
+
*/
|
|
63
|
+
this.tooltipRenderer = () => this.text;
|
|
64
|
+
/**
|
|
65
|
+
* Condition used to display the tooltip
|
|
66
|
+
* @param target Tooltip target
|
|
67
|
+
* @returns Whether the tooltip should be shown or not.
|
|
68
|
+
*/
|
|
69
|
+
this.tooltipCondition = (target) => this.shouldShowTooltip(target);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Element version number
|
|
73
|
+
* @returns version number
|
|
74
|
+
*/
|
|
75
|
+
static get version() {
|
|
76
|
+
return VERSION;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* A `CSSResult` that will be used
|
|
80
|
+
* to style the host, slotted children
|
|
81
|
+
* and the internal template of the element.
|
|
82
|
+
* @returns CSS template
|
|
83
|
+
*/
|
|
84
|
+
static get styles() {
|
|
85
|
+
return css `
|
|
86
|
+
:host {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
max-width: 100%;
|
|
89
|
+
}
|
|
90
|
+
.split {
|
|
91
|
+
height: 1.2em;
|
|
92
|
+
line-height: 1.2em;
|
|
93
|
+
margin-top: -0.1em;
|
|
94
|
+
flex: 0 1 auto;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
}
|
|
99
|
+
.left.modern {
|
|
100
|
+
word-break: break-all;
|
|
101
|
+
white-space: normal;
|
|
102
|
+
}
|
|
103
|
+
.left.legacy {
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
}
|
|
106
|
+
.center {
|
|
107
|
+
flex: 0 100 auto;
|
|
108
|
+
}
|
|
109
|
+
.right.modern {
|
|
110
|
+
direction: rtl;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
}
|
|
113
|
+
.right.legacy span {
|
|
114
|
+
float: right;
|
|
115
|
+
}
|
|
116
|
+
.clamp {
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
-webkit-box-orient: vertical;
|
|
119
|
+
display: -webkit-inline-box;
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
position: relative;
|
|
122
|
+
overflow-wrap: break-word;
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @override
|
|
128
|
+
*/
|
|
129
|
+
connectedCallback() {
|
|
130
|
+
super.connectedCallback();
|
|
131
|
+
addTooltipCondition(this.tooltipCondition, this.tooltipRenderer);
|
|
132
|
+
this.mutationObserver.observe(this, observerOptions);
|
|
133
|
+
!isIE() && this.recalculate(); // In IE the mutation will trigger
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @override
|
|
137
|
+
*/
|
|
138
|
+
disconnectedCallback() {
|
|
139
|
+
super.disconnectedCallback();
|
|
140
|
+
removeTooltipCondition(this.tooltipCondition);
|
|
141
|
+
this.mutationObserver.disconnect();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Decides whether the tooltip should b shown
|
|
145
|
+
* @param tooltipTarget Target element passed by the tooltip condition
|
|
146
|
+
* @returns True if the tooltip should be shown
|
|
147
|
+
*/
|
|
148
|
+
shouldShowTooltip(tooltipTarget) {
|
|
149
|
+
const targetMatches = tooltipTarget === this;
|
|
150
|
+
const part = this.renderRoot.firstElementChild;
|
|
151
|
+
if (targetMatches && part) {
|
|
152
|
+
return part.clientHeight !== part.scrollHeight || part.clientWidth !== part.scrollWidth;
|
|
153
|
+
}
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Handles any modifications to the internal HTML
|
|
158
|
+
* @param [mutation=false] is the request from a mutation event?
|
|
159
|
+
* @returns {void}
|
|
160
|
+
*/
|
|
161
|
+
recalculate(mutation = false) {
|
|
162
|
+
mutation; // keeping here for future use
|
|
163
|
+
const oldValue = this.text;
|
|
164
|
+
const raw = this.textContent || '';
|
|
165
|
+
this.chunks = raw.split(_).map(chunk => chunk.trim()).filter(chunk => chunk);
|
|
166
|
+
const newValue = this.text;
|
|
167
|
+
if (oldValue !== newValue) {
|
|
168
|
+
void this.requestUpdate('text', oldValue);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Returns cleaned version of `this.textContent`.
|
|
173
|
+
*/
|
|
174
|
+
get text() {
|
|
175
|
+
return this.chunks.join(_);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Default template
|
|
179
|
+
*/
|
|
180
|
+
get truncateTemplate() {
|
|
181
|
+
const words = this.chunks;
|
|
182
|
+
const left = [];
|
|
183
|
+
const right = [];
|
|
184
|
+
const isSingleWord = words.length === 1;
|
|
185
|
+
if (isSingleWord) {
|
|
186
|
+
const word = words[0];
|
|
187
|
+
const split = Math.round(word.length / 2);
|
|
188
|
+
left.push(word.substr(0, split));
|
|
189
|
+
right.push(word.substr(split));
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
const split = Math.round(words.length / 2);
|
|
193
|
+
for (let i = 0; i < words.length; i += 1) {
|
|
194
|
+
(i < split ? left : right).push(words[i]);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
const leftPart = html `<div class="split left ${browserType}">${left.join(_)}</div>`;
|
|
198
|
+
const centerPart = isSingleWord ? undefined : html `<div class="split center"> </div>`;
|
|
199
|
+
const rightPart = right.length ? html `<div class="split right ${browserType}"><span dir="ltr">${right.join(_)}</span></div>` : undefined;
|
|
200
|
+
return html `${leftPart}${centerPart}${rightPart}`;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Template for when line clamp is set
|
|
204
|
+
*/
|
|
205
|
+
get clampTemplate() {
|
|
206
|
+
const styles = {
|
|
207
|
+
maxHeight: '',
|
|
208
|
+
whiteSpace: '',
|
|
209
|
+
lineClamp: `${this.lineClamp}`,
|
|
210
|
+
'-webkit-line-clamp': `${this.lineClamp}`
|
|
211
|
+
};
|
|
212
|
+
/* istanbul ignore if */
|
|
213
|
+
if (browserType === 'legacy') {
|
|
214
|
+
const cs = getComputedStyle(this);
|
|
215
|
+
const lineHeight = parseFloat(cs.lineHeight) || 1.2 /* css default */;
|
|
216
|
+
styles.maxHeight = `calc(1em * ${lineHeight} * ${this.lineClamp})`; // faux clamp in legacy browsers
|
|
217
|
+
styles.whiteSpace = this.lineClamp === 1 ? 'nowrap' : ''; // show ellipsis in legacy browsers
|
|
218
|
+
}
|
|
219
|
+
return html `
|
|
220
|
+
<span class="clamp ${browserType}" style="${styleMap(styles)}">${this.text}</span>
|
|
221
|
+
`;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* A `TemplateResult` that will be used
|
|
225
|
+
* to render the updated internal template.
|
|
226
|
+
* @return Render template
|
|
227
|
+
*/
|
|
228
|
+
render() {
|
|
229
|
+
const template = this.lineClamp ? this.clampTemplate : this.truncateTemplate;
|
|
230
|
+
/* istanbul ignore if */
|
|
231
|
+
if (browserType === 'legacy') {
|
|
232
|
+
// Mutation observer does not fire in IE11 if slot is not present
|
|
233
|
+
return html `${template}<span style="display: none !important;"><slot></slot></span>`;
|
|
234
|
+
}
|
|
235
|
+
return template;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: Number, attribute: 'line-clamp' })
|
|
240
|
+
], Label.prototype, "lineClamp", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
property({ type: Boolean, reflect: true })
|
|
243
|
+
], Label.prototype, "error", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
property({ type: Boolean, reflect: true })
|
|
246
|
+
], Label.prototype, "warning", void 0);
|
|
247
|
+
Label = __decorate([
|
|
248
|
+
customElement('ef-label', {
|
|
249
|
+
alias: 'quartz-label'
|
|
250
|
+
})
|
|
251
|
+
], Label);
|
|
252
|
+
export { Label };
|