@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,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "experimental",
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ef-time-picker",
|
|
6
|
+
"description": "Control the time input",
|
|
7
|
+
"attributes": [
|
|
8
|
+
{
|
|
9
|
+
"name": "hours",
|
|
10
|
+
"description": "Hours time segment in 24hr format",
|
|
11
|
+
"type": "number | null"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "minutes",
|
|
15
|
+
"description": "Minutes time segment",
|
|
16
|
+
"type": "number | null"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "seconds",
|
|
20
|
+
"description": "Seconds time segment",
|
|
21
|
+
"type": "number | null"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "am-pm",
|
|
25
|
+
"description": "Toggles 12hr time display",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": "false"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "show-seconds",
|
|
31
|
+
"description": "Flag to show seconds time segment in display.\nSeconds are automatically shown when `hh:mm:ss` time format is provided as a value.",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": "false"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "value",
|
|
37
|
+
"description": "Value of the element",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"default": "\"\""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "readonly",
|
|
43
|
+
"description": "Set readonly state",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": "false"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "disabled",
|
|
49
|
+
"description": "Set disabled state",
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": "false"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"properties": [
|
|
55
|
+
{
|
|
56
|
+
"name": "hours",
|
|
57
|
+
"attribute": "hours",
|
|
58
|
+
"description": "Hours time segment in 24hr format",
|
|
59
|
+
"type": "number | null"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "minutes",
|
|
63
|
+
"attribute": "minutes",
|
|
64
|
+
"description": "Minutes time segment",
|
|
65
|
+
"type": "number | null"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "seconds",
|
|
69
|
+
"attribute": "seconds",
|
|
70
|
+
"description": "Seconds time segment",
|
|
71
|
+
"type": "number | null"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "amPm",
|
|
75
|
+
"attribute": "am-pm",
|
|
76
|
+
"description": "Toggles 12hr time display",
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"default": "false"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "showSeconds",
|
|
82
|
+
"attribute": "show-seconds",
|
|
83
|
+
"description": "Flag to show seconds time segment in display.\nSeconds are automatically shown when `hh:mm:ss` time format is provided as a value.",
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": "false"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "value",
|
|
89
|
+
"attribute": "value",
|
|
90
|
+
"description": "Value of the element",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"default": "\"\""
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "readonly",
|
|
96
|
+
"attribute": "readonly",
|
|
97
|
+
"description": "Set readonly state",
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"default": "false"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "disabled",
|
|
103
|
+
"attribute": "disabled",
|
|
104
|
+
"description": "Set disabled state",
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": "false"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"events": [
|
|
110
|
+
{
|
|
111
|
+
"name": "value-changed",
|
|
112
|
+
"description": "Dispatched when value changes"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"methods": [
|
|
116
|
+
{
|
|
117
|
+
"name": "toggle",
|
|
118
|
+
"description": "Toggles the AM/PM state",
|
|
119
|
+
"params": []
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ef-time-picker
|
|
2
|
+
|
|
3
|
+
Control the time input
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|---------------|----------------|------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `amPm` | `am-pm` | `boolean` | false | Toggles 12hr time display |
|
|
10
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
11
|
+
| `hours` | `hours` | `number \| null` | | Hours time segment in 24hr format |
|
|
12
|
+
| `minutes` | `minutes` | `number \| null` | | Minutes time segment |
|
|
13
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
14
|
+
| `seconds` | `seconds` | `number \| null` | | Seconds time segment |
|
|
15
|
+
| `showSeconds` | `show-seconds` | `boolean` | false | Flag to show seconds time segment in display.<br />Seconds are automatically shown when `hh:mm:ss` time format is provided as a value. |
|
|
16
|
+
| `value` | `value` | `string` | "" | Value of the element |
|
|
17
|
+
|
|
18
|
+
## Methods
|
|
19
|
+
|
|
20
|
+
| Method | Type | Description |
|
|
21
|
+
|----------|------------|-------------------------|
|
|
22
|
+
| `toggle` | `(): void` | Toggles the AM/PM state |
|
|
23
|
+
|
|
24
|
+
## Events
|
|
25
|
+
|
|
26
|
+
| Event | Description |
|
|
27
|
+
|-----------------|-------------------------------|
|
|
28
|
+
| `value-changed` | Dispatched when value changes |
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { JSXInterface } from '../jsx';
|
|
2
|
+
import { ControlElement, TemplateResult, CSSResultGroup, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import '../number-field/index.js';
|
|
4
|
+
declare enum Segment {
|
|
5
|
+
HOURS = "hours",
|
|
6
|
+
MINUTES = "minutes",
|
|
7
|
+
SECONDS = "seconds"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Control the time input
|
|
11
|
+
* @event value-changed - Dispatched when value changes
|
|
12
|
+
*
|
|
13
|
+
* @attr {boolean} readonly - Set readonly state
|
|
14
|
+
* @prop {boolean} [readonly=false] - Set readonly state
|
|
15
|
+
*
|
|
16
|
+
* @attr {boolean} disabled - Set disabled state
|
|
17
|
+
* @prop {boolean} [disabled=false] - Set disabled state
|
|
18
|
+
*/
|
|
19
|
+
export declare class TimePicker extends ControlElement {
|
|
20
|
+
/**
|
|
21
|
+
* Element version number
|
|
22
|
+
* @returns version number
|
|
23
|
+
*/
|
|
24
|
+
static get version(): string;
|
|
25
|
+
private isMobile;
|
|
26
|
+
/**
|
|
27
|
+
* Internal hours value, used only in value getters and setters
|
|
28
|
+
*/
|
|
29
|
+
private _hours;
|
|
30
|
+
/**
|
|
31
|
+
* Internal minutes value, used only in value getters and setters
|
|
32
|
+
*/
|
|
33
|
+
private _minutes;
|
|
34
|
+
/**
|
|
35
|
+
* Internal seconds value, used only in value getters and setters
|
|
36
|
+
*/
|
|
37
|
+
private _seconds;
|
|
38
|
+
/**
|
|
39
|
+
* If external value is set with seconds, this flag is true.
|
|
40
|
+
* The flag is not relevant when withSecond is forced to be true
|
|
41
|
+
*/
|
|
42
|
+
private valueWithSeconds;
|
|
43
|
+
/**
|
|
44
|
+
* Hours time segment in 24hr format
|
|
45
|
+
* @param hours hours value
|
|
46
|
+
* @returns {void}
|
|
47
|
+
*/
|
|
48
|
+
set hours(hours: number | null);
|
|
49
|
+
/**
|
|
50
|
+
* Get hours value
|
|
51
|
+
* @returns hours
|
|
52
|
+
*/
|
|
53
|
+
get hours(): number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Minutes time segment
|
|
56
|
+
* @param minutes minutes value
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
set minutes(minutes: number | null);
|
|
60
|
+
/**
|
|
61
|
+
* Get minutes value
|
|
62
|
+
* @returns hours
|
|
63
|
+
*/
|
|
64
|
+
get minutes(): number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Seconds time segment
|
|
67
|
+
* @param seconds seconds value
|
|
68
|
+
* @returns {void}
|
|
69
|
+
*/
|
|
70
|
+
set seconds(seconds: number | null);
|
|
71
|
+
/**
|
|
72
|
+
* Get seconds value
|
|
73
|
+
* @returns seconds
|
|
74
|
+
*/
|
|
75
|
+
get seconds(): number | null;
|
|
76
|
+
/**
|
|
77
|
+
* Toggles 12hr time display
|
|
78
|
+
*/
|
|
79
|
+
amPm: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Flag to show seconds time segment in display.
|
|
82
|
+
* Seconds are automatically shown when `hh:mm:ss` time format is provided as a value.
|
|
83
|
+
*/
|
|
84
|
+
showSeconds: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Value of the element
|
|
87
|
+
* @default -
|
|
88
|
+
* @param value Element value
|
|
89
|
+
*/
|
|
90
|
+
set value(value: string);
|
|
91
|
+
get value(): string;
|
|
92
|
+
/**
|
|
93
|
+
* Getter for mtp element (mobile)
|
|
94
|
+
*/
|
|
95
|
+
private mtpInput?;
|
|
96
|
+
/**
|
|
97
|
+
* Getter for hours part.
|
|
98
|
+
*/
|
|
99
|
+
private hoursInput;
|
|
100
|
+
/**
|
|
101
|
+
* Getter for minutes part.
|
|
102
|
+
*/
|
|
103
|
+
private minutesInput;
|
|
104
|
+
/**
|
|
105
|
+
* Getter for seconds part.
|
|
106
|
+
*/
|
|
107
|
+
private secondsInput?;
|
|
108
|
+
/**
|
|
109
|
+
* Getter for toggle part.
|
|
110
|
+
*/
|
|
111
|
+
private toggleEl?;
|
|
112
|
+
/**
|
|
113
|
+
* Return the current time string, based on the current hours, minutes and seconds.
|
|
114
|
+
* Used internally to set the value string after updates.
|
|
115
|
+
*/
|
|
116
|
+
private get currentTimeString();
|
|
117
|
+
/**
|
|
118
|
+
* Seconds are automatically shown when `hh:mm:ss` time format is provided as a value.
|
|
119
|
+
*/
|
|
120
|
+
private get isShowSeconds();
|
|
121
|
+
/**
|
|
122
|
+
* Formats the hours value
|
|
123
|
+
*/
|
|
124
|
+
private get formattedHours();
|
|
125
|
+
/**
|
|
126
|
+
* Formats the minutes value
|
|
127
|
+
*/
|
|
128
|
+
private get formattedMinutes();
|
|
129
|
+
/**
|
|
130
|
+
* Formats the seconds value
|
|
131
|
+
* @returns Formatted number
|
|
132
|
+
*/
|
|
133
|
+
private get formattedSeconds();
|
|
134
|
+
/**
|
|
135
|
+
* On first updated life-cycle
|
|
136
|
+
*
|
|
137
|
+
* @param changedProperties changed properties
|
|
138
|
+
* @returns {void}
|
|
139
|
+
*/
|
|
140
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
141
|
+
/**
|
|
142
|
+
* On updated life-cycle
|
|
143
|
+
*
|
|
144
|
+
* @param changedProperties changed properties
|
|
145
|
+
* @returns {void}
|
|
146
|
+
*/
|
|
147
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
148
|
+
/**
|
|
149
|
+
* Overwrite validation method for value
|
|
150
|
+
*
|
|
151
|
+
* @param value value
|
|
152
|
+
* @returns {boolean} result
|
|
153
|
+
*/
|
|
154
|
+
protected isValidValue(value: string): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Set time segment value in consistent way
|
|
157
|
+
* @param segment Time segment
|
|
158
|
+
* @param value Value to check
|
|
159
|
+
* @returns {void}
|
|
160
|
+
*/
|
|
161
|
+
protected setSegmentAndNotify(segment: Segment, value: number | null): void;
|
|
162
|
+
/**
|
|
163
|
+
* True if time segment has changed
|
|
164
|
+
* @param changedProperties changed properties
|
|
165
|
+
* @returns True if changed
|
|
166
|
+
*/
|
|
167
|
+
private hasTimeChanged;
|
|
168
|
+
/**
|
|
169
|
+
* Validates a given unit against a min and max value, returning a fallback if invalid.
|
|
170
|
+
*
|
|
171
|
+
* @param unit Unit to validate
|
|
172
|
+
* @param min Minimum allowed
|
|
173
|
+
* @param max Maximum allowed
|
|
174
|
+
* @param fallback Fallback value to use, if unit is invalid
|
|
175
|
+
* @returns unit or fallback or 0 value
|
|
176
|
+
*/
|
|
177
|
+
private validUnit;
|
|
178
|
+
/**
|
|
179
|
+
* Handles value change from native time picker on mobile devices
|
|
180
|
+
*
|
|
181
|
+
* @param event Event Object
|
|
182
|
+
* @returns {void}
|
|
183
|
+
*/
|
|
184
|
+
private onMobileTimeChange;
|
|
185
|
+
/**
|
|
186
|
+
* Helper, used to update the mobile time picker value
|
|
187
|
+
*
|
|
188
|
+
* @returns {void}
|
|
189
|
+
*/
|
|
190
|
+
private updateMobileTimePickerValue;
|
|
191
|
+
/**
|
|
192
|
+
* Handles the blur event of any inputs
|
|
193
|
+
*
|
|
194
|
+
* @param event Event Object
|
|
195
|
+
* @returns {void}
|
|
196
|
+
*/
|
|
197
|
+
private onBlur;
|
|
198
|
+
/**
|
|
199
|
+
* Updates a time segment to the provided value
|
|
200
|
+
*
|
|
201
|
+
* @param segment Segment id
|
|
202
|
+
* @param value Unit to change to
|
|
203
|
+
* @returns {void}
|
|
204
|
+
*/
|
|
205
|
+
private updateTimeSegmentTo;
|
|
206
|
+
/**
|
|
207
|
+
* Updates the value of a time segment (element)
|
|
208
|
+
*
|
|
209
|
+
* @param segment Segment's name
|
|
210
|
+
* @returns {void}
|
|
211
|
+
*/
|
|
212
|
+
private updateSegmentValue;
|
|
213
|
+
/**
|
|
214
|
+
* Handles the focus event of any inputs
|
|
215
|
+
*
|
|
216
|
+
* @param event Event Object
|
|
217
|
+
* @returns {void}
|
|
218
|
+
*/
|
|
219
|
+
private onFocus;
|
|
220
|
+
/**
|
|
221
|
+
* Handles any keydown events
|
|
222
|
+
* Used for control keys
|
|
223
|
+
*
|
|
224
|
+
* @param event Event Object
|
|
225
|
+
* @returns {void}
|
|
226
|
+
*/
|
|
227
|
+
private onKeydown;
|
|
228
|
+
/**
|
|
229
|
+
* Handle valid control keys and execute their corresponding commands
|
|
230
|
+
* Will stop when readonly is set
|
|
231
|
+
*
|
|
232
|
+
* @param event Event Object
|
|
233
|
+
* @returns {void}
|
|
234
|
+
*/
|
|
235
|
+
private manageControlKeys;
|
|
236
|
+
/**
|
|
237
|
+
* Handles ENTER key press
|
|
238
|
+
*
|
|
239
|
+
* @param event Event Object
|
|
240
|
+
* @returns {void}
|
|
241
|
+
*/
|
|
242
|
+
private handleEnterKey;
|
|
243
|
+
/**
|
|
244
|
+
* Handles UP key press
|
|
245
|
+
*
|
|
246
|
+
* @param event Event Object
|
|
247
|
+
* @returns {void}
|
|
248
|
+
*/
|
|
249
|
+
private handleUpKey;
|
|
250
|
+
/**
|
|
251
|
+
* Handle DOWN key press
|
|
252
|
+
*
|
|
253
|
+
* @param event Event Object
|
|
254
|
+
* @returns {void}
|
|
255
|
+
*/
|
|
256
|
+
private handleDownKey;
|
|
257
|
+
/**
|
|
258
|
+
* Handle Backspace key press
|
|
259
|
+
*
|
|
260
|
+
* @param event Event Object
|
|
261
|
+
* @returns {void}
|
|
262
|
+
*/
|
|
263
|
+
private handleBackspaceKey;
|
|
264
|
+
/**
|
|
265
|
+
* Toggles the amPm flag or updates the time segment value.
|
|
266
|
+
* Essentially a handler for user inputs on the control.
|
|
267
|
+
*
|
|
268
|
+
* @param amount to change value by
|
|
269
|
+
* @param target Segment id
|
|
270
|
+
* @returns {void}
|
|
271
|
+
*/
|
|
272
|
+
private toggleOrModify;
|
|
273
|
+
/**
|
|
274
|
+
* Changes a time segment value by a specified amount.
|
|
275
|
+
* Also updates parent values when rolling through cycles.
|
|
276
|
+
*
|
|
277
|
+
* @param amount Amount to change by
|
|
278
|
+
* @param segment Segment id
|
|
279
|
+
* @returns {void}
|
|
280
|
+
*/
|
|
281
|
+
private changeValueBy;
|
|
282
|
+
/**
|
|
283
|
+
* Gets the hours segment of the provided value
|
|
284
|
+
* as there is extra logic required for 12hr support
|
|
285
|
+
*
|
|
286
|
+
* @param value Unit to change to
|
|
287
|
+
* @returns updated value
|
|
288
|
+
*/
|
|
289
|
+
private getHoursSegment;
|
|
290
|
+
/**
|
|
291
|
+
* Updates the value of the hours element
|
|
292
|
+
*
|
|
293
|
+
* @returns {void}
|
|
294
|
+
*/
|
|
295
|
+
private updateHoursSegmentValue;
|
|
296
|
+
/**
|
|
297
|
+
* Updated the value of the minutes element
|
|
298
|
+
*
|
|
299
|
+
* @returns {void}
|
|
300
|
+
*/
|
|
301
|
+
private updateMinutesSegmentValue;
|
|
302
|
+
/**
|
|
303
|
+
* Updates the value of the seconds element
|
|
304
|
+
*
|
|
305
|
+
* @returns {void}
|
|
306
|
+
*/
|
|
307
|
+
private updateSecondsSegmentValue;
|
|
308
|
+
/**
|
|
309
|
+
* Formats a given number and prefixes a 0 on numbers lower than 10
|
|
310
|
+
*
|
|
311
|
+
* @param n Number to format
|
|
312
|
+
* @returns Formatted number
|
|
313
|
+
*/
|
|
314
|
+
private formattedUnit;
|
|
315
|
+
/**
|
|
316
|
+
* Returns `true` or `false` depending on whether the hours are before, or, after noon
|
|
317
|
+
*
|
|
318
|
+
* @returns Result
|
|
319
|
+
*/
|
|
320
|
+
private isAM;
|
|
321
|
+
/**
|
|
322
|
+
* Returns opposite of isAM
|
|
323
|
+
*
|
|
324
|
+
* @returns Result
|
|
325
|
+
*/
|
|
326
|
+
private isPM;
|
|
327
|
+
/**
|
|
328
|
+
* Toggles the AM/PM state
|
|
329
|
+
*
|
|
330
|
+
* @returns {void}
|
|
331
|
+
*/
|
|
332
|
+
toggle(): void;
|
|
333
|
+
/**
|
|
334
|
+
* A `CSSResultGroup` that will be used
|
|
335
|
+
* to style the host, slotted children
|
|
336
|
+
* and the internal template of the element.
|
|
337
|
+
* @returns CSS template
|
|
338
|
+
*/
|
|
339
|
+
static get styles(): CSSResultGroup;
|
|
340
|
+
/**
|
|
341
|
+
* Template for Seconds Segment
|
|
342
|
+
*
|
|
343
|
+
* @returns Seconds segment
|
|
344
|
+
*/
|
|
345
|
+
private getSecondsHtml;
|
|
346
|
+
/**
|
|
347
|
+
* Template for AmPm Segment
|
|
348
|
+
*
|
|
349
|
+
* @returns Am/Pm segment
|
|
350
|
+
*/
|
|
351
|
+
private getAmPmHtml;
|
|
352
|
+
/**
|
|
353
|
+
* Native input's template for mobile
|
|
354
|
+
*
|
|
355
|
+
* @returns input
|
|
356
|
+
*/
|
|
357
|
+
private getNativeInputForMobile;
|
|
358
|
+
/**
|
|
359
|
+
* A `TemplateResult` that will be used
|
|
360
|
+
* to render the updated internal template.
|
|
361
|
+
* @returns Render template
|
|
362
|
+
*/
|
|
363
|
+
protected render(): TemplateResult;
|
|
364
|
+
}
|
|
365
|
+
export {};
|
|
366
|
+
|
|
367
|
+
declare global {
|
|
368
|
+
interface HTMLElementTagNameMap {
|
|
369
|
+
'ef-time-picker': TimePicker;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
namespace JSX {
|
|
373
|
+
interface IntrinsicElements {
|
|
374
|
+
'ef-time-picker': Partial<TimePicker> | JSXInterface.ControlHTMLAttributes<TimePicker>;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export {};
|