@refinitiv-ui/elements 5.3.3 → 5.7.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 +70 -0
- package/lib/accordion/custom-elements.json +49 -0
- package/lib/accordion/custom-elements.md +18 -0
- 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/custom-elements.json +49 -0
- package/lib/appstate-bar/custom-elements.md +22 -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/custom-elements.json +233 -0
- package/lib/autosuggest/custom-elements.md +47 -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 +534 -0
- package/lib/autosuggest/index.js +1251 -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/custom-elements.md +23 -0
- package/lib/button/index.d.ts +132 -0
- package/lib/button/index.js +223 -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/custom-elements.md +9 -0
- package/lib/button-bar/index.d.ts +76 -0
- package/lib/button-bar/index.js +155 -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 +22 -0
- package/lib/calendar/constants.js +23 -0
- package/lib/calendar/custom-elements.json +199 -0
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +321 -0
- package/lib/calendar/index.js +906 -0
- package/lib/calendar/locales.d.ts +1 -0
- package/lib/calendar/locales.js +40 -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 +29 -0
- package/lib/calendar/types.js +1 -0
- package/lib/calendar/utils.d.ts +42 -0
- package/lib/calendar/utils.js +119 -0
- package/lib/canvas/custom-elements.json +69 -0
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +100 -0
- package/lib/canvas/index.js +172 -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/custom-elements.md +24 -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 +246 -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/custom-elements.md +16 -0
- package/lib/chart/helpers/index.d.ts +2 -0
- package/lib/chart/helpers/index.js +2 -0
- package/lib/chart/helpers/legend.d.ts +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/custom-elements.json +67 -0
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +95 -0
- package/lib/checkbox/index.js +193 -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 +121 -0
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +319 -0
- package/lib/clock/index.js +581 -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/custom-elements.md +27 -0
- package/lib/collapse/index.d.ts +119 -0
- package/lib/collapse/index.js +197 -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/custom-elements.md +39 -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/custom-elements.json +210 -0
- package/lib/combo-box/custom-elements.md +35 -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/custom-elements.md +11 -0
- package/lib/counter/index.d.ts +89 -0
- package/lib/counter/index.js +152 -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/custom-elements.md +49 -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 +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 +136 -0
- package/lib/dialog/custom-elements.md +47 -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/custom-elements.md +35 -0
- package/lib/email-field/index.d.ts +152 -0
- package/lib/email-field/index.js +286 -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/custom-elements.json +35 -0
- package/lib/flag/custom-elements.md +10 -0
- package/lib/flag/index.d.ts +94 -0
- package/lib/flag/index.js +166 -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/custom-elements.md +18 -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/custom-elements.json +151 -0
- package/lib/heatmap/custom-elements.md +26 -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/custom-elements.json +36 -0
- package/lib/icon/custom-elements.md +8 -0
- package/lib/icon/index.d.ts +88 -0
- package/lib/icon/index.js +169 -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/custom-elements.json +86 -0
- package/lib/interactive-chart/custom-elements.md +32 -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 +1090 -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 +151 -0
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/helpers/types.d.ts +57 -0
- package/lib/item/helpers/types.js +1 -0
- package/lib/item/index.d.ts +158 -0
- package/lib/item/index.js +271 -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/custom-elements.md +11 -0
- package/lib/label/index.d.ts +102 -0
- package/lib/label/index.js +244 -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/custom-elements.md +26 -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/custom-elements.json +113 -0
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/led-gauge/index.d.ts +143 -0
- package/lib/led-gauge/index.js +437 -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/custom-elements.md +30 -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 +600 -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/custom-elements.md +5 -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/custom-elements.json +238 -0
- package/lib/multi-input/custom-elements.md +43 -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 +590 -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/custom-elements.md +26 -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/custom-elements.json +200 -0
- package/lib/number-field/custom-elements.md +37 -0
- package/lib/number-field/index.d.ts +294 -0
- package/lib/number-field/index.js +707 -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 +345 -0
- package/lib/overlay/custom-elements.md +54 -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 +403 -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/custom-elements.json +194 -0
- package/lib/overlay-menu/custom-elements.md +44 -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 +385 -0
- package/lib/overlay-menu/index.js +933 -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/custom-elements.md +27 -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 +398 -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/custom-elements.md +11 -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/custom-elements.json +156 -0
- package/lib/password-field/custom-elements.md +31 -0
- package/lib/password-field/index.d.ts +141 -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/custom-elements.md +22 -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/custom-elements.json +58 -0
- package/lib/progress-bar/custom-elements.md +18 -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/custom-elements.json +82 -0
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +122 -0
- package/lib/radio-button/index.js +257 -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/custom-elements.json +58 -0
- package/lib/rating/custom-elements.md +17 -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/custom-elements.json +173 -0
- package/lib/search-field/custom-elements.md +33 -0
- package/lib/search-field/index.d.ts +134 -0
- package/lib/search-field/index.js +253 -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/custom-elements.md +24 -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/custom-elements.md +22 -0
- package/lib/sidebar-layout/index.d.ts +69 -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/custom-elements.json +181 -0
- package/lib/slider/custom-elements.md +28 -0
- package/lib/slider/index.d.ts +409 -0
- package/lib/slider/index.js +1187 -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/custom-elements.md +16 -0
- package/lib/sparkline/index.d.ts +107 -0
- package/lib/sparkline/index.js +186 -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/custom-elements.md +17 -0
- package/lib/swing-gauge/helpers.d.ts +8 -0
- package/lib/swing-gauge/helpers.js +105 -0
- package/lib/swing-gauge/index.d.ts +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/custom-elements.md +22 -0
- package/lib/tab/index.d.ts +118 -0
- package/lib/tab/index.js +208 -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/custom-elements.md +11 -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 +218 -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/custom-elements.md +37 -0
- package/lib/text-field/index.d.ts +193 -0
- package/lib/text-field/index.js +409 -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/custom-elements.md +28 -0
- package/lib/time-picker/index.d.ts +379 -0
- package/lib/time-picker/index.js +775 -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 +82 -0
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +86 -0
- package/lib/toggle/index.js +152 -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/custom-elements.md +14 -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/custom-elements.json +45 -0
- package/lib/tornado-chart/custom-elements.md +18 -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/custom-elements.json +113 -0
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree-item.d.ts +96 -0
- package/lib/tree/elements/tree-item.js +179 -0
- package/lib/tree/elements/tree.d.ts +201 -0
- package/lib/tree/elements/tree.js +412 -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/custom-elements.json +107 -0
- package/lib/tree-select/custom-elements.md +26 -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 +402 -0
- package/lib/tree-select/index.js +890 -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/lib/version.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +298 -15
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ControlElement, css, html } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
import '../icon/index.js';
|
|
8
|
+
import '../checkbox/index.js';
|
|
9
|
+
export * from './helpers/types';
|
|
10
|
+
const isAllWhitespaceTextNode = (node) => {
|
|
11
|
+
var _a;
|
|
12
|
+
return node.nodeType === document.TEXT_NODE
|
|
13
|
+
&& !((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim());
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Used as a basic building block to compose complex custom elements,
|
|
17
|
+
* additionally it can be used by applications
|
|
18
|
+
* to create simple menus or navigation panels.
|
|
19
|
+
*
|
|
20
|
+
* @attr {string} value - The content of this attribute represents the value of the item.
|
|
21
|
+
* @prop {string} [value=] - The content of this attribute represents the value of the item.
|
|
22
|
+
*
|
|
23
|
+
* @attr {boolean} disabled - Set disabled state.
|
|
24
|
+
* @prop {boolean} [disabled=false] - Set disabled state.
|
|
25
|
+
*
|
|
26
|
+
* @slot left - Used to render the content on the left of the label.
|
|
27
|
+
* @slot right - Used to render the content on the right of the label.
|
|
28
|
+
*/
|
|
29
|
+
let Item = class Item extends ControlElement {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
/**
|
|
33
|
+
* The text for the label indicating the meaning of the item.
|
|
34
|
+
* By having both `label` and content, `label` always takes priority
|
|
35
|
+
*/
|
|
36
|
+
this.label = null;
|
|
37
|
+
/**
|
|
38
|
+
* If defined value can be `text`, `header` or `divider`
|
|
39
|
+
* @type {ItemType | null}
|
|
40
|
+
*/
|
|
41
|
+
this.type = null;
|
|
42
|
+
/**
|
|
43
|
+
* Set the icon name from the ef-icon list
|
|
44
|
+
*/
|
|
45
|
+
this.icon = null;
|
|
46
|
+
this._selected = false;
|
|
47
|
+
/**
|
|
48
|
+
* Aria indicating current select state
|
|
49
|
+
* @ignore
|
|
50
|
+
*/
|
|
51
|
+
this.ariaSelected = 'false';
|
|
52
|
+
/**
|
|
53
|
+
* Is the item part of a multiple selection
|
|
54
|
+
*/
|
|
55
|
+
this.multiple = false;
|
|
56
|
+
/**
|
|
57
|
+
* Highlight the item
|
|
58
|
+
*/
|
|
59
|
+
this.highlighted = false;
|
|
60
|
+
/**
|
|
61
|
+
* The`subLabel` property represents the text beneath the label.
|
|
62
|
+
*/
|
|
63
|
+
this.subLabel = null;
|
|
64
|
+
/**
|
|
65
|
+
* Specifies which element an item is bound to
|
|
66
|
+
*/
|
|
67
|
+
this.for = null;
|
|
68
|
+
/**
|
|
69
|
+
* True, if there is no slotted content
|
|
70
|
+
*/
|
|
71
|
+
this.isSlotEmpty = true;
|
|
72
|
+
/**
|
|
73
|
+
* Checks slotted children nodes and updates component to refresh label and sub-label templates.
|
|
74
|
+
* @param event slotchange
|
|
75
|
+
* @returns {void}
|
|
76
|
+
*/
|
|
77
|
+
this.checkSlotChildren = (event) => {
|
|
78
|
+
const slot = event.target;
|
|
79
|
+
this.isSlotEmpty = !slot.assignedNodes().filter(node => !this.isIgnorable(node)).length;
|
|
80
|
+
this.requestUpdate();
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Element version number
|
|
85
|
+
* @returns version number
|
|
86
|
+
*/
|
|
87
|
+
static get version() {
|
|
88
|
+
return VERSION;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* `CSSResultGroup` that will be used to style the host,
|
|
92
|
+
* slotted children and the internal template of the element.
|
|
93
|
+
* @returns CSS template
|
|
94
|
+
*/
|
|
95
|
+
static get styles() {
|
|
96
|
+
return css `
|
|
97
|
+
:host {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
[part=checkbox] {
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
[part=left],
|
|
105
|
+
[part=right] {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
109
|
+
[part=center] {
|
|
110
|
+
flex: 1;
|
|
111
|
+
}
|
|
112
|
+
:host([type=divider]) > * {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Indicates that the item is selected
|
|
119
|
+
* @param value selected value
|
|
120
|
+
*/
|
|
121
|
+
set selected(value) {
|
|
122
|
+
const oldValue = this._selected;
|
|
123
|
+
if (oldValue !== value) {
|
|
124
|
+
this._selected = value;
|
|
125
|
+
this.ariaSelected = String(value);
|
|
126
|
+
void this.requestUpdate('selected', oldValue);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
get selected() {
|
|
130
|
+
return this._selected;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @param node that should be checked
|
|
134
|
+
* @returns whether node can be ignored.
|
|
135
|
+
*/
|
|
136
|
+
isIgnorable(node) {
|
|
137
|
+
return node.nodeType === document.COMMENT_NODE
|
|
138
|
+
|| isAllWhitespaceTextNode(node);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @override
|
|
142
|
+
* @returns {void}
|
|
143
|
+
*/
|
|
144
|
+
update(changedProperties) {
|
|
145
|
+
if (changedProperties.has('type')) {
|
|
146
|
+
this.typeChanged();
|
|
147
|
+
}
|
|
148
|
+
super.update(changedProperties);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Get icon template if icon attribute is defined
|
|
152
|
+
*/
|
|
153
|
+
get iconTemplate() {
|
|
154
|
+
return this.icon !== null && this.icon !== undefined ? html `<ef-icon part="icon" .icon="${this.icon}"></ef-icon>` : undefined;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get subLabel template if it is defined and no slot content present
|
|
158
|
+
*/
|
|
159
|
+
get subLabelTemplate() {
|
|
160
|
+
return this.subLabel && this.isSlotEmpty ? html `<div part="sub-label">${this.subLabel}</div>` : undefined;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get label template if it is defined and no slot content present
|
|
164
|
+
*/
|
|
165
|
+
get labelTemplate() {
|
|
166
|
+
return this.label && this.isSlotEmpty ? html `${this.label}` : undefined;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Get template for `for` attribute.
|
|
170
|
+
* This is usually used with menus when an item needs to reference an element
|
|
171
|
+
*/
|
|
172
|
+
get forTemplate() {
|
|
173
|
+
return this.for ? html `<ef-icon icon="right"></ef-icon>` : undefined;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Get template for `multiple` attribute.
|
|
177
|
+
* This is usually used with lists, when an item can be part of a multiple selection
|
|
178
|
+
*/
|
|
179
|
+
get multipleTemplate() {
|
|
180
|
+
const multiple = this.multiple && (!this.type || this.type === 'text');
|
|
181
|
+
return multiple ? html `<ef-checkbox part="checkbox" .checked="${this.selected}" tabindex="-1"></ef-checkbox>` : undefined;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Return true if the item can be highlighted. True if not disabled and type is Text
|
|
185
|
+
* @prop {boolean} highlightable
|
|
186
|
+
* @returns whether element is highlightable
|
|
187
|
+
*/
|
|
188
|
+
get highlightable() {
|
|
189
|
+
return !this.disabled && this.type !== 'header' && this.type !== 'divider';
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Getter returning if the label is truncated
|
|
193
|
+
* @prop {boolean} isTruncated
|
|
194
|
+
* @returns whether element is truncated or not
|
|
195
|
+
*/
|
|
196
|
+
get isTruncated() {
|
|
197
|
+
return !!(this.labelEl && (this.labelEl.offsetWidth < this.labelEl.scrollWidth));
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Control State behaviour will update tabindex based on the property
|
|
201
|
+
* @returns {void}
|
|
202
|
+
*/
|
|
203
|
+
typeChanged() {
|
|
204
|
+
const noInteraction = this.type === 'header' || this.type === 'divider' || this.disabled;
|
|
205
|
+
if (noInteraction) {
|
|
206
|
+
this.disableFocus();
|
|
207
|
+
}
|
|
208
|
+
else if (!this.disabled) {
|
|
209
|
+
this.enableFocus();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* A `TemplateResult` that will be used
|
|
214
|
+
* to render the updated internal template.
|
|
215
|
+
* @returns Render template
|
|
216
|
+
*/
|
|
217
|
+
render() {
|
|
218
|
+
return html `
|
|
219
|
+
<div part="left">
|
|
220
|
+
${this.iconTemplate}
|
|
221
|
+
${this.multipleTemplate}
|
|
222
|
+
<slot name="left"></slot>
|
|
223
|
+
</div>
|
|
224
|
+
<div part="center" id="label">
|
|
225
|
+
${this.labelTemplate}
|
|
226
|
+
<slot @slotchange="${this.checkSlotChildren}"></slot>
|
|
227
|
+
${this.subLabelTemplate}
|
|
228
|
+
</div>
|
|
229
|
+
<div part="right">
|
|
230
|
+
<slot name="right"></slot>
|
|
231
|
+
${this.forTemplate}
|
|
232
|
+
</div>
|
|
233
|
+
`;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
__decorate([
|
|
237
|
+
property({ type: String })
|
|
238
|
+
], Item.prototype, "label", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
property({ type: String, reflect: true })
|
|
241
|
+
], Item.prototype, "type", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
property({ type: String, reflect: true })
|
|
244
|
+
], Item.prototype, "icon", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
property({ type: Boolean, reflect: true })
|
|
247
|
+
], Item.prototype, "selected", null);
|
|
248
|
+
__decorate([
|
|
249
|
+
property({ type: String, reflect: true, attribute: 'aria-selected' })
|
|
250
|
+
], Item.prototype, "ariaSelected", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
property({ type: Boolean, reflect: true })
|
|
253
|
+
], Item.prototype, "multiple", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
property({ type: Boolean, reflect: true })
|
|
256
|
+
], Item.prototype, "highlighted", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
property({ type: String, reflect: true, attribute: 'sub-label' })
|
|
259
|
+
], Item.prototype, "subLabel", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
property({ type: String, reflect: true })
|
|
262
|
+
], Item.prototype, "for", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
query('#label')
|
|
265
|
+
], Item.prototype, "labelEl", void 0);
|
|
266
|
+
Item = __decorate([
|
|
267
|
+
customElement('ef-item', {
|
|
268
|
+
alias: 'coral-item'
|
|
269
|
+
})
|
|
270
|
+
], Item);
|
|
271
|
+
export { Item };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/halo/dark';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/halo/dark';
|
|
3
|
+
|
|
4
|
+
elf.customStyles.define('ef-item', ':host{outline:0;cursor:pointer;padding:0 8px;min-height:24px;box-sizing:border-box;touch-action:manipulation}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host(:after){content:\'\';min-height:inherit;font-size:0}}:host([selected]){color:#fff;font-weight:500}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:#334bff;color:#fff}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(204,204,204,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#999;background-color:transparent;font-size:83%;font-weight:500;border:none;height:24px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#404040,#404040) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=right] ::slotted(*){margin-left:.5em}:host [part=checkbox]{margin-right:8px}:host [part=sub-label]{font-size:90%}:host([sub-label]){padding:4px 8px}:host([selected]:not([highlighted]):not([focused])){background-color:#333}:host([selected]:not([multiple])){background-image:linear-gradient(#334bff,#334bff);background-size:4px 100%;background-position:left top;background-repeat:no-repeat}:host([selected][focused]),:host([selected][highlighted]){color:#fff}');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/halo/light';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/halo/light';
|
|
3
|
+
|
|
4
|
+
elf.customStyles.define('ef-item', ':host{outline:0;cursor:pointer;padding:0 8px;min-height:24px;box-sizing:border-box;touch-action:manipulation}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host(:after){content:\'\';min-height:inherit;font-size:0}}:host([selected]){color:#0d0d0d;font-weight:500}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:#334bff;color:#fff}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(64,64,64,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#737373;background-color:transparent;font-size:83%;font-weight:500;border:none;height:24px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#d9d9d9,#d9d9d9) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=right] ::slotted(*){margin-left:.5em}:host [part=checkbox]{margin-right:8px}:host [part=sub-label]{font-size:90%}:host([sub-label]){padding:4px 8px}:host([selected]:not([highlighted]):not([focused])){background-color:#e6e6e6}:host([selected]:not([multiple])){background-image:linear-gradient(#334bff,#334bff);background-size:4px 100%;background-position:left top;background-repeat:no-repeat}:host([selected][focused]),:host([selected][highlighted]){color:#fff}');
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/solar/charcoal';
|
|
2
|
+
import '@refinitiv-ui/elements/lib/checkbox/themes/solar/charcoal';
|
|
3
|
+
|
|
4
|
+
elf.customStyles.define('ef-item', ':host{outline:0;cursor:pointer;padding:0 7px;min-height:22px;box-sizing:border-box;touch-action:manipulation}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){:host(:after){content:\'\';min-height:inherit;font-size:0}}:host([selected]){color:#f93}:host([readonly]){cursor:default}:host([focused]),:host([highlighted]){background-color:rgba(255,255,255,.1)}:host([focused]:not([selected])),:host([highlighted]:not([selected])){color:#fff}:host [part=center],:host [part=sub-label]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host([disabled]){color:rgba(194,194,194,.5)}:host([type=divider]),:host([type=header]){pointer-events:none;min-height:auto}:host([type=divider]) [part=sub-label],:host([type=header]) [part=sub-label]{display:none}:host([type=header]){color:#c2c2c2;background-color:#4a4a52;font-size:100%;font-weight:400;border:1px solid #0a0a0a;height:22px;align-items:flex-end;margin:0;min-height:0;text-transform:uppercase;border:none;border-top:1px solid #0a0a0a;border-bottom:1px solid transparent;text-transform:none;align-items:center}:host([type=divider]){border:none;padding:0;margin:0;height:5px;background:linear-gradient(#2e2e33,#2e2e33) 0 center/calc(100% - (0px * 2)) 1px no-repeat}:host [part=checkbox],:host [part=icon],:host [part=left] ::slotted(*){margin:0 .5em 0 0}:host [part=sub-label]{font-size:80%}:host [part=icon],:host [part=left] ::slotted(*){margin-right:.33em}:host [part=right] ::slotted(*){margin-left:.33em}');
|
|
@@ -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,11 @@
|
|
|
1
|
+
# ef-label
|
|
2
|
+
|
|
3
|
+
Displays a text with alternative truncation
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-------------|--------------|-----------|---------|---------------------------------------------|
|
|
9
|
+
| `error` | `error` | `boolean` | false | Set state to error |
|
|
10
|
+
| `lineClamp` | `line-clamp` | `number` | 0 | Limit the number of lines before truncating |
|
|
11
|
+
| `warning` | `warning` | `boolean` | false | Set state to warning |
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { BasicElement, TemplateResult, CSSResultGroup } 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 `CSSResultGroup` 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(): CSSResultGroup;
|
|
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 {};
|