@refinitiv-ui/elements 0.0.0-build.1957399501.1
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 +412 -0
- package/LICENSE +13 -0
- package/README.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 +243 -0
- package/lib/autosuggest/custom-elements.md +54 -0
- package/lib/autosuggest/helpers/types.d.ts +54 -0
- package/lib/autosuggest/helpers/types.js +1 -0
- package/lib/autosuggest/helpers/utils.d.ts +39 -0
- package/lib/autosuggest/helpers/utils.js +75 -0
- package/lib/autosuggest/index.d.ts +538 -0
- package/lib/autosuggest/index.js +1254 -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 +138 -0
- package/lib/button/index.js +241 -0
- package/lib/button/themes/halo/dark/index.js +3 -0
- package/lib/button/themes/halo/light/index.js +3 -0
- package/lib/button/themes/solar/charcoal/index.js +3 -0
- package/lib/button/themes/solar/pearl/index.js +3 -0
- package/lib/button-bar/custom-elements.json +26 -0
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/button-bar/index.d.ts +125 -0
- package/lib/button-bar/index.js +294 -0
- package/lib/button-bar/themes/halo/dark/index.js +3 -0
- package/lib/button-bar/themes/halo/light/index.js +3 -0
- package/lib/button-bar/themes/solar/charcoal/index.js +3 -0
- package/lib/button-bar/themes/solar/pearl/index.js +3 -0
- package/lib/calendar/constants.d.ts +26 -0
- package/lib/calendar/constants.js +28 -0
- package/lib/calendar/custom-elements.json +201 -0
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +412 -0
- package/lib/calendar/index.js +1297 -0
- package/lib/calendar/locales.d.ts +1 -0
- package/lib/calendar/locales.js +41 -0
- package/lib/calendar/themes/halo/dark/index.js +3 -0
- package/lib/calendar/themes/halo/light/index.js +3 -0
- package/lib/calendar/themes/solar/charcoal/index.js +3 -0
- package/lib/calendar/themes/solar/pearl/index.js +3 -0
- package/lib/calendar/types.d.ts +32 -0
- package/lib/calendar/types.js +1 -0
- package/lib/calendar/utils.d.ts +42 -0
- package/lib/calendar/utils.js +120 -0
- package/lib/canvas/custom-elements.json +71 -0
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +101 -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 +61 -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 +142 -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/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 +484 -0
- package/lib/chart/plugins/doughnut-center-label.d.ts +3 -0
- package/lib/chart/plugins/doughnut-center-label.js +191 -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/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +97 -0
- package/lib/checkbox/index.js +194 -0
- package/lib/checkbox/themes/halo/dark/index.js +4 -0
- package/lib/checkbox/themes/halo/light/index.js +4 -0
- package/lib/checkbox/themes/solar/charcoal/index.js +4 -0
- package/lib/checkbox/themes/solar/pearl/index.js +4 -0
- package/lib/clock/custom-elements.json +125 -0
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +321 -0
- package/lib/clock/index.js +583 -0
- package/lib/clock/themes/halo/dark/index.js +2 -0
- package/lib/clock/themes/halo/light/index.js +2 -0
- package/lib/clock/themes/solar/charcoal/index.js +2 -0
- package/lib/clock/themes/solar/pearl/index.js +2 -0
- package/lib/clock/utils/TickManager.d.ts +14 -0
- package/lib/clock/utils/TickManager.js +66 -0
- package/lib/clock/utils/timestamps.d.ts +6 -0
- package/lib/clock/utils/timestamps.js +6 -0
- package/lib/collapse/custom-elements.json +81 -0
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/collapse/index.d.ts +123 -0
- package/lib/collapse/index.js +225 -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 +206 -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 +131 -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 +241 -0
- package/lib/combo-box/custom-elements.md +42 -0
- package/lib/combo-box/helpers/filter.d.ts +10 -0
- package/lib/combo-box/helpers/filter.js +29 -0
- package/lib/combo-box/helpers/keyboard-event.d.ts +17 -0
- package/lib/combo-box/helpers/keyboard-event.js +19 -0
- package/lib/combo-box/helpers/renderer.d.ts +8 -0
- package/lib/combo-box/helpers/renderer.js +24 -0
- package/lib/combo-box/helpers/types.d.ts +11 -0
- package/lib/combo-box/helpers/types.js +1 -0
- package/lib/combo-box/index.d.ts +551 -0
- package/lib/combo-box/index.js +1199 -0
- package/lib/combo-box/themes/halo/dark/index.js +7 -0
- package/lib/combo-box/themes/halo/light/index.js +7 -0
- package/lib/combo-box/themes/solar/charcoal/index.js +7 -0
- package/lib/combo-box/themes/solar/pearl/index.js +7 -0
- package/lib/counter/custom-elements.json +39 -0
- package/lib/counter/custom-elements.md +11 -0
- package/lib/counter/index.d.ts +91 -0
- package/lib/counter/index.js +154 -0
- package/lib/counter/themes/halo/dark/index.js +3 -0
- package/lib/counter/themes/halo/light/index.js +3 -0
- package/lib/counter/themes/solar/charcoal/index.js +3 -0
- package/lib/counter/themes/solar/pearl/index.js +3 -0
- package/lib/counter/utils.d.ts +13 -0
- package/lib/counter/utils.js +52 -0
- package/lib/datetime-picker/custom-elements.json +362 -0
- package/lib/datetime-picker/custom-elements.md +57 -0
- package/lib/datetime-picker/index.d.ts +509 -0
- package/lib/datetime-picker/index.js +1174 -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 +169 -0
- package/lib/dialog/custom-elements.md +48 -0
- package/lib/dialog/draggable-element.d.ts +14 -0
- package/lib/dialog/draggable-element.js +220 -0
- package/lib/dialog/index.d.ts +213 -0
- package/lib/dialog/index.js +353 -0
- package/lib/dialog/themes/halo/dark/index.js +7 -0
- package/lib/dialog/themes/halo/light/index.js +7 -0
- package/lib/dialog/themes/solar/charcoal/index.js +7 -0
- package/lib/dialog/themes/solar/pearl/index.js +7 -0
- package/lib/email-field/custom-elements.json +186 -0
- package/lib/email-field/custom-elements.md +37 -0
- package/lib/email-field/index.d.ts +80 -0
- package/lib/email-field/index.js +91 -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 +96 -0
- package/lib/flag/index.js +168 -0
- package/lib/flag/themes/halo/dark/index.js +2 -0
- package/lib/flag/themes/halo/light/index.js +2 -0
- package/lib/flag/themes/solar/charcoal/index.js +2 -0
- package/lib/flag/themes/solar/pearl/index.js +2 -0
- package/lib/flag/utils/FlagLoader.d.ts +47 -0
- package/lib/flag/utils/FlagLoader.js +86 -0
- package/lib/header/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 +66 -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 +1094 -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 +90 -0
- package/lib/icon/index.js +171 -0
- package/lib/icon/themes/halo/dark/index.js +2 -0
- package/lib/icon/themes/halo/light/index.js +2 -0
- package/lib/icon/themes/solar/charcoal/index.js +2 -0
- package/lib/icon/themes/solar/pearl/index.js +2 -0
- package/lib/icon/utils/IconLoader.d.ts +52 -0
- package/lib/icon/utils/IconLoader.js +93 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/interactive-chart/custom-elements.json +82 -0
- package/lib/interactive-chart/custom-elements.md +31 -0
- package/lib/interactive-chart/helpers/merge.d.ts +15 -0
- package/lib/interactive-chart/helpers/merge.js +28 -0
- package/lib/interactive-chart/helpers/types.d.ts +45 -0
- package/lib/interactive-chart/helpers/types.js +6 -0
- package/lib/interactive-chart/index.d.ts +383 -0
- package/lib/interactive-chart/index.js +1089 -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/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 +159 -0
- package/lib/item/index.js +269 -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 +245 -0
- package/lib/label/themes/halo/dark/index.js +3 -0
- package/lib/label/themes/halo/light/index.js +3 -0
- package/lib/label/themes/solar/charcoal/index.js +3 -0
- package/lib/label/themes/solar/pearl/index.js +3 -0
- package/lib/layout/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 +144 -0
- package/lib/led-gauge/index.js +438 -0
- package/lib/led-gauge/themes/halo/dark/index.js +3 -0
- package/lib/led-gauge/themes/halo/light/index.js +3 -0
- package/lib/led-gauge/themes/solar/charcoal/index.js +3 -0
- package/lib/led-gauge/themes/solar/pearl/index.js +3 -0
- package/lib/list/custom-elements.json +137 -0
- package/lib/list/custom-elements.md +33 -0
- package/lib/list/extensible-function.d.ts +8 -0
- package/lib/list/extensible-function.js +13 -0
- package/lib/list/helpers/list-renderer.d.ts +9 -0
- package/lib/list/helpers/list-renderer.js +37 -0
- package/lib/list/helpers/types.d.ts +3 -0
- package/lib/list/helpers/types.js +1 -0
- package/lib/list/index.d.ts +313 -0
- package/lib/list/index.js +640 -0
- package/lib/list/renderer.d.ts +36 -0
- package/lib/list/renderer.js +9 -0
- package/lib/list/themes/halo/dark/index.js +3 -0
- package/lib/list/themes/halo/light/index.js +3 -0
- package/lib/list/themes/solar/charcoal/index.js +3 -0
- package/lib/list/themes/solar/pearl/index.js +3 -0
- package/lib/loader/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 +239 -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 +301 -0
- package/lib/multi-input/index.js +593 -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 +245 -0
- package/lib/number-field/custom-elements.md +42 -0
- package/lib/number-field/index.d.ts +339 -0
- package/lib/number-field/index.js +751 -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 +355 -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 +408 -0
- package/lib/overlay/elements/overlay.js +1428 -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 +227 -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 +210 -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 +246 -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 +387 -0
- package/lib/overlay-menu/index.js +932 -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 +76 -0
- package/lib/pagination/custom-elements.md +26 -0
- package/lib/pagination/index.d.ts +275 -0
- package/lib/pagination/index.js +551 -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 +151 -0
- package/lib/password-field/custom-elements.md +39 -0
- package/lib/password-field/index.d.ts +89 -0
- package/lib/password-field/index.js +115 -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 +97 -0
- package/lib/pill/custom-elements.md +22 -0
- package/lib/pill/index.d.ts +113 -0
- package/lib/pill/index.js +191 -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 +84 -0
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +123 -0
- package/lib/radio-button/index.js +261 -0
- package/lib/radio-button/radio-button-registry.d.ts +22 -0
- package/lib/radio-button/radio-button-registry.js +95 -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 +169 -0
- package/lib/search-field/custom-elements.md +41 -0
- package/lib/search-field/index.d.ts +77 -0
- package/lib/search-field/index.js +88 -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 +104 -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 +396 -0
- package/lib/select/index.js +978 -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 +68 -0
- package/lib/sidebar-layout/custom-elements.md +21 -0
- package/lib/sidebar-layout/index.d.ts +70 -0
- package/lib/sidebar-layout/index.js +134 -0
- package/lib/sidebar-layout/themes/halo/dark/index.js +3 -0
- package/lib/sidebar-layout/themes/halo/light/index.js +3 -0
- package/lib/sidebar-layout/themes/solar/charcoal/index.js +3 -0
- package/lib/sidebar-layout/themes/solar/pearl/index.js +3 -0
- package/lib/slider/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 +1195 -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 +109 -0
- package/lib/sparkline/index.js +187 -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 +111 -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 +296 -0
- package/lib/swing-gauge/index.js +770 -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 +136 -0
- package/lib/tab/custom-elements.md +23 -0
- package/lib/tab/index.d.ts +136 -0
- package/lib/tab/index.js +236 -0
- package/lib/tab/themes/halo/dark/index.js +4 -0
- package/lib/tab/themes/halo/light/index.js +4 -0
- package/lib/tab/themes/solar/charcoal/index.js +4 -0
- package/lib/tab/themes/solar/pearl/index.js +4 -0
- package/lib/tab-bar/custom-elements.json +64 -0
- package/lib/tab-bar/custom-elements.md +18 -0
- package/lib/tab-bar/helpers/animate.d.ts +16 -0
- package/lib/tab-bar/helpers/animate.js +53 -0
- package/lib/tab-bar/index.d.ts +198 -0
- package/lib/tab-bar/index.js +428 -0
- package/lib/tab-bar/themes/halo/dark/index.js +4 -0
- package/lib/tab-bar/themes/halo/light/index.js +4 -0
- package/lib/tab-bar/themes/solar/charcoal/index.js +4 -0
- package/lib/tab-bar/themes/solar/pearl/index.js +4 -0
- package/lib/text-field/custom-elements.json +199 -0
- package/lib/text-field/custom-elements.md +35 -0
- package/lib/text-field/index.d.ts +164 -0
- package/lib/text-field/index.js +284 -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 +122 -0
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/time-picker/index.d.ts +412 -0
- package/lib/time-picker/index.js +897 -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/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +87 -0
- package/lib/toggle/index.js +153 -0
- package/lib/toggle/themes/halo/dark/index.js +2 -0
- package/lib/toggle/themes/halo/light/index.js +2 -0
- package/lib/toggle/themes/solar/charcoal/index.js +2 -0
- package/lib/toggle/themes/solar/pearl/index.js +2 -0
- package/lib/tooltip/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 +475 -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 +114 -0
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree-item.d.ts +129 -0
- package/lib/tree/elements/tree-item.js +238 -0
- package/lib/tree/elements/tree.d.ts +203 -0
- package/lib/tree/elements/tree.js +414 -0
- package/lib/tree/helpers/filter.d.ts +8 -0
- package/lib/tree/helpers/filter.js +33 -0
- package/lib/tree/helpers/renderer.d.ts +5 -0
- package/lib/tree/helpers/renderer.js +33 -0
- package/lib/tree/helpers/types.d.ts +25 -0
- package/lib/tree/helpers/types.js +1 -0
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.js +3 -0
- package/lib/tree/managers/tree-manager.d.ts +248 -0
- package/lib/tree/managers/tree-manager.js +395 -0
- package/lib/tree/themes/halo/dark/index.js +7 -0
- package/lib/tree/themes/halo/light/index.js +7 -0
- package/lib/tree/themes/solar/charcoal/index.js +7 -0
- package/lib/tree/themes/solar/pearl/index.js +7 -0
- package/lib/tree-select/custom-elements.json +111 -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 +404 -0
- package/lib/tree-select/index.js +895 -0
- package/lib/tree-select/themes/halo/dark/index.js +11 -0
- package/lib/tree-select/themes/halo/light/index.js +11 -0
- package/lib/tree-select/themes/solar/charcoal/index.js +11 -0
- package/lib/tree-select/themes/solar/pearl/index.js +11 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +355 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { ControlElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import '../icon/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* A small button style component
|
|
6
|
+
* which is used to show one or multiple selected item.
|
|
7
|
+
* It is rarely used in the UI but inside other components to visualize multiple item selection item.
|
|
8
|
+
* @attr {string} value - Value of pill
|
|
9
|
+
* @prop {string} [value=""] - Value of pill
|
|
10
|
+
*
|
|
11
|
+
* @attr {boolean} readonly - Set readonly state
|
|
12
|
+
* @prop {boolean} [readonly=false] - Set readonly state
|
|
13
|
+
*
|
|
14
|
+
* @attr {boolean} disabled - Set disabled state
|
|
15
|
+
* @prop {boolean} [disabled=false] - Set disabled state
|
|
16
|
+
*
|
|
17
|
+
* @fires clear - Dispatched when click on cross button occurs
|
|
18
|
+
*/
|
|
19
|
+
export declare class Pill extends ControlElement {
|
|
20
|
+
/**
|
|
21
|
+
* Element version number
|
|
22
|
+
* @returns version number
|
|
23
|
+
*/
|
|
24
|
+
static get version(): string;
|
|
25
|
+
/**
|
|
26
|
+
* Element's role attribute for accessibility
|
|
27
|
+
*/
|
|
28
|
+
protected readonly defaultRole: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* A `CSSResultGroup` that will be used
|
|
31
|
+
* to style the host, slotted children
|
|
32
|
+
* and the internal template of the element.
|
|
33
|
+
* @return CSS template
|
|
34
|
+
*/
|
|
35
|
+
static get styles(): CSSResultGroup;
|
|
36
|
+
/**
|
|
37
|
+
* Set pill to clearable
|
|
38
|
+
*/
|
|
39
|
+
clears: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Set pill to toggle mode
|
|
42
|
+
*/
|
|
43
|
+
toggles: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Add to pill for active state
|
|
46
|
+
*/
|
|
47
|
+
active: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Set property pressed true on tap start and false on tap end
|
|
50
|
+
*/
|
|
51
|
+
private pressed;
|
|
52
|
+
private closeElement?;
|
|
53
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
54
|
+
/**
|
|
55
|
+
* Updates the element
|
|
56
|
+
* @param changedProperties Properties that has changed
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
protected update(changedProperties: PropertyValues): void;
|
|
60
|
+
/**
|
|
61
|
+
* Handles key down event
|
|
62
|
+
* @param event Key down event object
|
|
63
|
+
* @returns {void}
|
|
64
|
+
*/
|
|
65
|
+
private onKeyDown;
|
|
66
|
+
private get closeTemplate();
|
|
67
|
+
/**
|
|
68
|
+
* A `TemplateResult` that will be used
|
|
69
|
+
* to render the updated internal template.
|
|
70
|
+
* @return Render template
|
|
71
|
+
*/
|
|
72
|
+
protected render(): TemplateResult;
|
|
73
|
+
/**
|
|
74
|
+
* change state of `pressed` property to be true if there is no close icon or pill is pressed directly
|
|
75
|
+
* @param event tapstart event
|
|
76
|
+
* @returns {void}
|
|
77
|
+
*/
|
|
78
|
+
private onStartPress;
|
|
79
|
+
/**
|
|
80
|
+
* @param event tapstart
|
|
81
|
+
* @returns true if element property pressed could be set
|
|
82
|
+
*/
|
|
83
|
+
private couldBePressed;
|
|
84
|
+
/**
|
|
85
|
+
* change state of `pressed` property to be false if mouse leave pill or tap is end on pill
|
|
86
|
+
* @returns {void}
|
|
87
|
+
*/
|
|
88
|
+
private onEndPress;
|
|
89
|
+
/**
|
|
90
|
+
* handle when `clears` icon is tapped
|
|
91
|
+
* @returns {void}
|
|
92
|
+
*/
|
|
93
|
+
private onTapHandler;
|
|
94
|
+
/**
|
|
95
|
+
* @param event event from close button
|
|
96
|
+
* @returns {void}
|
|
97
|
+
*/
|
|
98
|
+
private clear;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare global {
|
|
102
|
+
interface HTMLElementTagNameMap {
|
|
103
|
+
'ef-pill': Pill;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
namespace JSX {
|
|
107
|
+
interface IntrinsicElements {
|
|
108
|
+
'ef-pill': Partial<Pill> | JSXInterface.ControlHTMLAttributes<Pill>;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export {};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ControlElement, css, html } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/decorators/query.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
import '../icon/index.js';
|
|
8
|
+
/**
|
|
9
|
+
* A small button style component
|
|
10
|
+
* which is used to show one or multiple selected item.
|
|
11
|
+
* It is rarely used in the UI but inside other components to visualize multiple item selection item.
|
|
12
|
+
* @attr {string} value - Value of pill
|
|
13
|
+
* @prop {string} [value=""] - Value of pill
|
|
14
|
+
*
|
|
15
|
+
* @attr {boolean} readonly - Set readonly state
|
|
16
|
+
* @prop {boolean} [readonly=false] - Set readonly state
|
|
17
|
+
*
|
|
18
|
+
* @attr {boolean} disabled - Set disabled state
|
|
19
|
+
* @prop {boolean} [disabled=false] - Set disabled state
|
|
20
|
+
*
|
|
21
|
+
* @fires clear - Dispatched when click on cross button occurs
|
|
22
|
+
*/
|
|
23
|
+
let Pill = class Pill extends ControlElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
/**
|
|
27
|
+
* Element's role attribute for accessibility
|
|
28
|
+
*/
|
|
29
|
+
this.defaultRole = 'button';
|
|
30
|
+
/**
|
|
31
|
+
* Set pill to clearable
|
|
32
|
+
*/
|
|
33
|
+
this.clears = false;
|
|
34
|
+
/**
|
|
35
|
+
* Set pill to toggle mode
|
|
36
|
+
*/
|
|
37
|
+
this.toggles = false;
|
|
38
|
+
/**
|
|
39
|
+
* Add to pill for active state
|
|
40
|
+
*/
|
|
41
|
+
this.active = false;
|
|
42
|
+
/**
|
|
43
|
+
* Set property pressed true on tap start and false on tap end
|
|
44
|
+
*/
|
|
45
|
+
this.pressed = false;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Element version number
|
|
49
|
+
* @returns version number
|
|
50
|
+
*/
|
|
51
|
+
static get version() {
|
|
52
|
+
return VERSION;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A `CSSResultGroup` that will be used
|
|
56
|
+
* to style the host, slotted children
|
|
57
|
+
* and the internal template of the element.
|
|
58
|
+
* @return CSS template
|
|
59
|
+
*/
|
|
60
|
+
static get styles() {
|
|
61
|
+
return css `
|
|
62
|
+
:host {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
position: relative;
|
|
65
|
+
}
|
|
66
|
+
[part=content] {
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
}
|
|
73
|
+
firstUpdated(changedProperties) {
|
|
74
|
+
super.firstUpdated(changedProperties);
|
|
75
|
+
this.addEventListener('tap', this.onTapHandler);
|
|
76
|
+
this.addEventListener('tapstart', this.onStartPress);
|
|
77
|
+
this.addEventListener('tapend', this.onEndPress);
|
|
78
|
+
this.addEventListener('mouseleave', this.onEndPress);
|
|
79
|
+
this.addEventListener('keydown', this.onKeyDown);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Updates the element
|
|
83
|
+
* @param changedProperties Properties that has changed
|
|
84
|
+
* @returns {void}
|
|
85
|
+
*/
|
|
86
|
+
update(changedProperties) {
|
|
87
|
+
if (changedProperties.has('toggles') || changedProperties.has('active')) {
|
|
88
|
+
if (this.toggles) {
|
|
89
|
+
this.setAttribute('aria-pressed', String(this.active));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.removeAttribute('aria-pressed');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
super.update(changedProperties);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Handles key down event
|
|
99
|
+
* @param event Key down event object
|
|
100
|
+
* @returns {void}
|
|
101
|
+
*/
|
|
102
|
+
onKeyDown(event) {
|
|
103
|
+
if ((event.key === 'Delete' || event.key === 'Del') && (this.clears && !this.readonly)) {
|
|
104
|
+
this.dispatchEvent(new CustomEvent('clear'));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
get closeTemplate() {
|
|
108
|
+
return this.clears && !this.readonly ? html `<ef-icon part="close" icon="cross" aria-hidden="true" @tap="${this.clear}"></ef-icon>` : null;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* A `TemplateResult` that will be used
|
|
112
|
+
* to render the updated internal template.
|
|
113
|
+
* @return Render template
|
|
114
|
+
*/
|
|
115
|
+
render() {
|
|
116
|
+
return html `
|
|
117
|
+
<div part="content" role="none">
|
|
118
|
+
<slot>...</slot>
|
|
119
|
+
</div>
|
|
120
|
+
${this.closeTemplate}
|
|
121
|
+
`;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* change state of `pressed` property to be true if there is no close icon or pill is pressed directly
|
|
125
|
+
* @param event tapstart event
|
|
126
|
+
* @returns {void}
|
|
127
|
+
*/
|
|
128
|
+
onStartPress(event) {
|
|
129
|
+
if (this.couldBePressed(event)) {
|
|
130
|
+
this.pressed = true;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @param event tapstart
|
|
135
|
+
* @returns true if element property pressed could be set
|
|
136
|
+
*/
|
|
137
|
+
couldBePressed(event) {
|
|
138
|
+
const element = this.closeElement;
|
|
139
|
+
return !this.readonly && (!element || !event.composedPath().includes(element));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* change state of `pressed` property to be false if mouse leave pill or tap is end on pill
|
|
143
|
+
* @returns {void}
|
|
144
|
+
*/
|
|
145
|
+
onEndPress() {
|
|
146
|
+
if (this.pressed) {
|
|
147
|
+
this.pressed = false;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* handle when `clears` icon is tapped
|
|
152
|
+
* @returns {void}
|
|
153
|
+
*/
|
|
154
|
+
onTapHandler() {
|
|
155
|
+
if (this.toggles && !this.readonly) {
|
|
156
|
+
this.active = !this.active;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @param event event from close button
|
|
161
|
+
* @returns {void}
|
|
162
|
+
*/
|
|
163
|
+
clear(event) {
|
|
164
|
+
event.stopPropagation();
|
|
165
|
+
/**
|
|
166
|
+
* Fires when click on cross occurs.
|
|
167
|
+
*/
|
|
168
|
+
this.dispatchEvent(new CustomEvent('clear'));
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ type: Boolean, reflect: true })
|
|
173
|
+
], Pill.prototype, "clears", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ type: Boolean, reflect: true })
|
|
176
|
+
], Pill.prototype, "toggles", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
property({ type: Boolean, reflect: true })
|
|
179
|
+
], Pill.prototype, "active", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
property({ type: Boolean, reflect: true })
|
|
182
|
+
], Pill.prototype, "pressed", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
query('[part=close]')
|
|
185
|
+
], Pill.prototype, "closeElement", void 0);
|
|
186
|
+
Pill = __decorate([
|
|
187
|
+
customElement('ef-pill', {
|
|
188
|
+
alias: 'coral-pill'
|
|
189
|
+
})
|
|
190
|
+
], Pill);
|
|
191
|
+
export { Pill };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/halo/dark';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;background:#333;transition:120ms;color:#ccc;margin:2px;font-family:inherit;font-size:12rem;font-weight:400;padding:0 5px;min-width:21px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;width:12px;height:12px;box-sizing:border-box;cursor:pointer;background-clip:content-box;color:#ccc;min-width:12px;opacity:.4;background-color:initial}:host [part=close]:active{border:1px solid transparent}:host([focused=visible]){border:1px solid #334bff}:host{border-radius:10px;height:20px;line-height:20px;background-color:#1a1a1a;border:1px solid #333}:host(:hover),:host([active]:hover){background-color:#334bff;border-color:#334bff}:host([active]){border-color:#0d0d0d;background-color:#334bff}:host([toggles][active][pressed]),:host([toggles][pressed]){border-color:#0d0d0d}:host([toggles][pressed]),:host([toggles][pressed]:hover){background-color:#0f1e8a}:host(:hover),:host([active]),:host([pressed]){color:#fff}:host(:hover) [part=close],:host([active]) [part=close],:host([pressed]) [part=close]{color:#fff;opacity:1}:host([disabled]){border-color:#0d0d0d;color:#ccc;background-color:#333}@media (pointer:coarse){:host(:not([active])),:host([toggles]:not([active])){color:#ccc;background-color:#1a1a1a;border-color:#333}:host(:not([active])) [part=close],:host([toggles]:not([active])) [part=close]{color:#ccc;opacity:.4}}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/halo/light';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;background:#fafafa;transition:120ms;color:#0d0d0d;margin:2px;font-family:inherit;font-size:12rem;font-weight:400;padding:0 5px;min-width:21px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;width:12px;height:12px;box-sizing:border-box;cursor:pointer;background-clip:content-box;color:#595959;min-width:12px;opacity:.4;background-color:initial}:host [part=close]:active{border:1px solid transparent}:host([focused=visible]){border:1px solid #334bff}:host{border-radius:10px;height:20px;line-height:20px;background-color:#fafafa;border:1px solid #ccc}:host(:hover),:host([active]:hover){background-color:#334bff;border-color:#334bff}:host([active]){border-color:#ccc;background-color:#334bff}:host([toggles][active][pressed]),:host([toggles][pressed]){border-color:#ccc}:host([toggles][pressed]),:host([toggles][pressed]:hover){background-color:#0f1e8a}:host(:hover),:host([active]),:host([pressed]){color:#fff}:host(:hover) [part=close],:host([active]) [part=close],:host([pressed]) [part=close]{color:#fff;opacity:1}:host([disabled]){border-color:#ccc;color:#0d0d0d;background-color:#fafafa}@media (pointer:coarse){:host(:not([active])),:host([toggles]:not([active])){color:#0d0d0d;background-color:#fafafa;border-color:#ccc}:host(:not([active])) [part=close],:host([toggles]:not([active])) [part=close]{color:#0d0d0d;opacity:.4}}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/solar/charcoal';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;transition:70ms;font-family:inherit;font-size:13rem;font-weight:400;min-width:22px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;box-sizing:border-box;cursor:pointer;background-clip:content-box;width:11px;height:11px;color:#c2c2c2;background-color:#000}:host [part=close]:active{border:1px solid transparent}:host([clears]:hover) [part=close]{display:flex}:host([focused=visible]){border:1px solid #f93}:host{background:#c2c2c2;border-radius:2px;padding:0 4px;color:#000;height:17px;margin:3px 3px 0 0}:host [part=close]:active{border:none}:host([readonly]){background:#c2c2c2}:host([toggles][active]){background:#f93;color:#000}:host([toggles][active]) [part=close]{color:#f93}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover){background:#fff}:host([toggles][active]:hover){background:#ffb366}}');
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@refinitiv-ui/elements/lib/icon/themes/solar/pearl';
|
|
2
|
+
|
|
3
|
+
elf.customStyles.define('ef-pill', ':host{touch-action:manipulation;transition:70ms;font-family:inherit;font-size:13rem;font-weight:400;min-width:22px;max-width:180px;outline:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;position:relative;overflow:hidden}:host [part=close]{touch-action:manipulation;border-radius:100%;position:relative;display:flex;margin-left:4px;flex:none;box-sizing:border-box;cursor:pointer;background-clip:content-box;width:11px;height:11px;color:#a9afba;background-color:#fff}:host [part=close]:active{border:1px solid transparent}:host([clears]:hover) [part=close]{display:flex}:host([focused=visible]){border:1px solid #f93}:host{background:#a9afba;border-radius:2px;padding:0 4px;color:#fff;height:17px;margin:3px 3px 0 0}:host [part=close]:active{border:none}:host([readonly]){background:#a9afba}:host([toggles][active]){background:#ee7600;color:#fff}:host([toggles][active]) [part=close]{color:#ee7600}@media (-ms-high-contrast:none),(pointer:fine){:host(:hover){background:#8a8a96}:host([toggles][active]:hover){background:#ee7600}}');
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "experimental",
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ef-progress-bar",
|
|
6
|
+
"description": "Data visualisation component,\nshowing a simple percentage bar.",
|
|
7
|
+
"attributes": [
|
|
8
|
+
{
|
|
9
|
+
"name": "value",
|
|
10
|
+
"description": "The current value of the bar.\nThis can range from `0-100` and\nwill be represented as a percentage bar",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"default": "\"100\""
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "alignment",
|
|
16
|
+
"description": "The alignment of the bar.\nThe bar can either start from the `left` or `right`.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"default": "\"left\""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "label",
|
|
22
|
+
"description": "The current label to be displayed next to the bar.\nThis is affixed to the end of the bar, so make sure to cater for this.",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": "\"\""
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"properties": [
|
|
28
|
+
{
|
|
29
|
+
"name": "value",
|
|
30
|
+
"attribute": "value",
|
|
31
|
+
"description": "The current value of the bar.\nThis can range from `0-100` and\nwill be represented as a percentage bar",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"default": "\"100\""
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "alignment",
|
|
37
|
+
"attribute": "alignment",
|
|
38
|
+
"description": "The alignment of the bar.\nThe bar can either start from the `left` or `right`.",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"default": "\"left\""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "label",
|
|
44
|
+
"attribute": "label",
|
|
45
|
+
"description": "The current label to be displayed next to the bar.\nThis is affixed to the end of the bar, so make sure to cater for this.",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"default": "\"\""
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"slots": [
|
|
51
|
+
{
|
|
52
|
+
"name": "label",
|
|
53
|
+
"description": "Overrides the label property and places custom content. Useful for modifying the color, or, adding icons."
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ef-progress-bar
|
|
2
|
+
|
|
3
|
+
Data visualisation component,
|
|
4
|
+
showing a simple percentage bar.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-------------|-------------|----------|---------|--------------------------------------------------|
|
|
10
|
+
| `alignment` | `alignment` | `string` | "left" | The alignment of the bar.<br />The bar can either start from the `left` or `right`. |
|
|
11
|
+
| `label` | `label` | `string` | "" | The current label to be displayed next to the bar.<br />This is affixed to the end of the bar, so make sure to cater for this. |
|
|
12
|
+
| `value` | `value` | `string` | "100" | The current value of the bar.<br />This can range from `0-100` and<br />will be represented as a percentage bar |
|
|
13
|
+
|
|
14
|
+
## Slots
|
|
15
|
+
|
|
16
|
+
| Name | Description |
|
|
17
|
+
|---------|--------------------------------------------------|
|
|
18
|
+
| `label` | Overrides the label property and places custom content. Useful for modifying the color, or, adding icons. |
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { CSSResultGroup, TemplateResult, BasicElement, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
/**
|
|
4
|
+
* Data visualisation component,
|
|
5
|
+
* showing a simple percentage bar.
|
|
6
|
+
* @slot label - Overrides the label property and places custom content. Useful for modifying the color, or, adding icons.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ProgressBar extends BasicElement {
|
|
9
|
+
/**
|
|
10
|
+
* Element version number
|
|
11
|
+
* @returns version number
|
|
12
|
+
*/
|
|
13
|
+
static get version(): string;
|
|
14
|
+
private valuePrevious;
|
|
15
|
+
/**
|
|
16
|
+
* A `CSSResultGroup` that will be used
|
|
17
|
+
* to style the host, slotted children
|
|
18
|
+
* and the internal template of the element.
|
|
19
|
+
* @return CSS template
|
|
20
|
+
*/
|
|
21
|
+
static get styles(): CSSResultGroup;
|
|
22
|
+
/**
|
|
23
|
+
* The current value of the bar.
|
|
24
|
+
* This can range from `0-100` and
|
|
25
|
+
* will be represented as a percentage bar
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* The alignment of the bar.
|
|
30
|
+
* The bar can either start from the `left` or `right`.
|
|
31
|
+
*/
|
|
32
|
+
alignment: string;
|
|
33
|
+
/**
|
|
34
|
+
* The current label to be displayed next to the bar.
|
|
35
|
+
* This is affixed to the end of the bar, so make sure to cater for this.
|
|
36
|
+
*/
|
|
37
|
+
label: string;
|
|
38
|
+
/**
|
|
39
|
+
* Converts value from string to number for calculations
|
|
40
|
+
* @returns value of bar as a number
|
|
41
|
+
*/
|
|
42
|
+
private get valueNumber();
|
|
43
|
+
/**
|
|
44
|
+
* Gets the current part names for the internal bar
|
|
45
|
+
*/
|
|
46
|
+
private get barParts();
|
|
47
|
+
/**
|
|
48
|
+
* Calculates the bar's percentage width
|
|
49
|
+
*/
|
|
50
|
+
private get barFill();
|
|
51
|
+
/**
|
|
52
|
+
* Returns CSS styles for showing
|
|
53
|
+
* the bar's fill percentage.
|
|
54
|
+
*/
|
|
55
|
+
private get barStyle();
|
|
56
|
+
/**
|
|
57
|
+
* Called after an update has occurred
|
|
58
|
+
* @param changedProperties changed properties
|
|
59
|
+
* @returns {void}
|
|
60
|
+
*/
|
|
61
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
62
|
+
/**
|
|
63
|
+
* A `TemplateResult` that will be used
|
|
64
|
+
* to render the updated internal template.
|
|
65
|
+
* @return Render template
|
|
66
|
+
*/
|
|
67
|
+
protected render(): TemplateResult;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare global {
|
|
71
|
+
interface HTMLElementTagNameMap {
|
|
72
|
+
'ef-progress-bar': ProgressBar;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
namespace JSX {
|
|
76
|
+
interface IntrinsicElements {
|
|
77
|
+
'ef-progress-bar': Partial<ProgressBar> | JSXInterface.HTMLAttributes<ProgressBar>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, BasicElement } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/decorators/property.js';
|
|
5
|
+
import { styleMap } from '@refinitiv-ui/core/directives/style-map.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
/**
|
|
8
|
+
* Data visualisation component,
|
|
9
|
+
* showing a simple percentage bar.
|
|
10
|
+
* @slot label - Overrides the label property and places custom content. Useful for modifying the color, or, adding icons.
|
|
11
|
+
*/
|
|
12
|
+
let ProgressBar = class ProgressBar extends BasicElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.valuePrevious = '';
|
|
16
|
+
/**
|
|
17
|
+
* The current value of the bar.
|
|
18
|
+
* This can range from `0-100` and
|
|
19
|
+
* will be represented as a percentage bar
|
|
20
|
+
*/
|
|
21
|
+
this.value = '100';
|
|
22
|
+
/**
|
|
23
|
+
* The alignment of the bar.
|
|
24
|
+
* The bar can either start from the `left` or `right`.
|
|
25
|
+
*/
|
|
26
|
+
this.alignment = 'left';
|
|
27
|
+
/**
|
|
28
|
+
* The current label to be displayed next to the bar.
|
|
29
|
+
* This is affixed to the end of the bar, so make sure to cater for this.
|
|
30
|
+
*/
|
|
31
|
+
this.label = '';
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Element version number
|
|
35
|
+
* @returns version number
|
|
36
|
+
*/
|
|
37
|
+
static get version() {
|
|
38
|
+
return VERSION;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A `CSSResultGroup` that will be used
|
|
42
|
+
* to style the host, slotted children
|
|
43
|
+
* and the internal template of the element.
|
|
44
|
+
* @return CSS template
|
|
45
|
+
*/
|
|
46
|
+
static get styles() {
|
|
47
|
+
return css `
|
|
48
|
+
:host {
|
|
49
|
+
height: 10px;
|
|
50
|
+
display: flex;
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
[part~=bar] {
|
|
54
|
+
height: 100%;
|
|
55
|
+
position: relative;
|
|
56
|
+
}
|
|
57
|
+
[part=label] {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 50%;
|
|
60
|
+
left: 100%;
|
|
61
|
+
height: 0;
|
|
62
|
+
line-height: 0;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
margin-left: 10px;
|
|
65
|
+
}
|
|
66
|
+
:host([alignment=right]) {
|
|
67
|
+
justify-content: flex-end;
|
|
68
|
+
}
|
|
69
|
+
:host([alignment=right]) [part=label] {
|
|
70
|
+
left: auto;
|
|
71
|
+
right: 100%;
|
|
72
|
+
margin-left: 0;
|
|
73
|
+
margin-right: 10px;
|
|
74
|
+
}
|
|
75
|
+
:host [part~=bar-zero] [part=label] {
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Converts value from string to number for calculations
|
|
82
|
+
* @returns value of bar as a number
|
|
83
|
+
*/
|
|
84
|
+
get valueNumber() {
|
|
85
|
+
const value = parseFloat(this.value);
|
|
86
|
+
if (!this.value || isNaN(value)) { // check value is invalid
|
|
87
|
+
const valuePrevious = parseFloat(this.valuePrevious);
|
|
88
|
+
// if valuePrevious is invalid return default value 100
|
|
89
|
+
return !valuePrevious || isNaN(valuePrevious) ? 100 : valuePrevious;
|
|
90
|
+
}
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Gets the current part names for the internal bar
|
|
95
|
+
*/
|
|
96
|
+
get barParts() {
|
|
97
|
+
return this.barFill ? 'bar' : 'bar bar-zero';
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Calculates the bar's percentage width
|
|
101
|
+
*/
|
|
102
|
+
get barFill() {
|
|
103
|
+
return Math.min(100, Math.max(0, this.valueNumber));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns CSS styles for showing
|
|
107
|
+
* the bar's fill percentage.
|
|
108
|
+
*/
|
|
109
|
+
get barStyle() {
|
|
110
|
+
return {
|
|
111
|
+
width: `${this.barFill}%`,
|
|
112
|
+
minWidth: `${this.barFill ? 1 : 0}px`
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Called after an update has occurred
|
|
117
|
+
* @param changedProperties changed properties
|
|
118
|
+
* @returns {void}
|
|
119
|
+
*/
|
|
120
|
+
updated(changedProperties) {
|
|
121
|
+
changedProperties.forEach((oldValue, propName) => {
|
|
122
|
+
if (propName === 'value') {
|
|
123
|
+
this.valuePrevious = oldValue;
|
|
124
|
+
this.value = this.valueNumber.toString();
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* A `TemplateResult` that will be used
|
|
130
|
+
* to render the updated internal template.
|
|
131
|
+
* @return Render template
|
|
132
|
+
*/
|
|
133
|
+
render() {
|
|
134
|
+
return html `
|
|
135
|
+
<div part="${this.barParts}" style="${styleMap(this.barStyle)}">
|
|
136
|
+
<span part="label">
|
|
137
|
+
<slot name="label">${this.label}</slot>
|
|
138
|
+
</span>
|
|
139
|
+
</div>
|
|
140
|
+
`;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
__decorate([
|
|
144
|
+
property({ type: String })
|
|
145
|
+
], ProgressBar.prototype, "value", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
property({ type: String, reflect: true })
|
|
148
|
+
], ProgressBar.prototype, "alignment", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
property({ type: String })
|
|
151
|
+
], ProgressBar.prototype, "label", void 0);
|
|
152
|
+
ProgressBar = __decorate([
|
|
153
|
+
customElement('ef-progress-bar', {
|
|
154
|
+
alias: 'sapphire-bar'
|
|
155
|
+
})
|
|
156
|
+
], ProgressBar);
|
|
157
|
+
export { ProgressBar };
|