@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,52 @@
|
|
|
1
|
+
var OverlayViewport_1;
|
|
2
|
+
import { __decorate } from "tslib";
|
|
3
|
+
import { ResponsiveElement, css, html } from '@refinitiv-ui/core';
|
|
4
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
5
|
+
import { VERSION } from '../../version.js';
|
|
6
|
+
/**
|
|
7
|
+
* A private element to find overlay size boundaries
|
|
8
|
+
*/
|
|
9
|
+
let OverlayViewport = OverlayViewport_1 = class OverlayViewport extends ResponsiveElement {
|
|
10
|
+
/**
|
|
11
|
+
* Element version number
|
|
12
|
+
* @returns version number
|
|
13
|
+
*/
|
|
14
|
+
static get version() {
|
|
15
|
+
return VERSION;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A `CSSResultGroup` that will be used
|
|
19
|
+
* to style the host, slotted children
|
|
20
|
+
* and the internal template of the element.
|
|
21
|
+
* @return CSS template
|
|
22
|
+
*/
|
|
23
|
+
static get styles() {
|
|
24
|
+
return css `
|
|
25
|
+
:host {
|
|
26
|
+
display: block;
|
|
27
|
+
position: fixed;
|
|
28
|
+
visibility: hidden;
|
|
29
|
+
top: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
left: 0;
|
|
33
|
+
z-index: -1;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A `TemplateResult` that will be used
|
|
39
|
+
* to render the updated internal template.
|
|
40
|
+
* @return Render template
|
|
41
|
+
*/
|
|
42
|
+
render() {
|
|
43
|
+
return OverlayViewport_1.Template;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
OverlayViewport.Template = html ``; /* IE11 need empty template */
|
|
47
|
+
OverlayViewport = OverlayViewport_1 = __decorate([
|
|
48
|
+
customElement('ef-overlay-viewport', {
|
|
49
|
+
theme: false
|
|
50
|
+
})
|
|
51
|
+
], OverlayViewport);
|
|
52
|
+
export { OverlayViewport };
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { JSXInterface } from '../../jsx';
|
|
2
|
+
import { ResponsiveElement, TemplateResult, CSSResultGroup, PropertyValues, ElementSize } from '@refinitiv-ui/core';
|
|
3
|
+
import { TransitionStyle, PositionTarget, Position, NullOrUndefined, PositionTargetStrategy } from '../helpers/types.js';
|
|
4
|
+
export type { TransitionStyle, PositionTarget, Position, PositionTargetStrategy };
|
|
5
|
+
/**
|
|
6
|
+
* Element to help building modals, dialogs and other overlay content
|
|
7
|
+
* @fires closed - Dispatched when overlay becomes invisible and close animation finishes
|
|
8
|
+
* @fires opened - Dispatched when the overlay becomes visible and the open animation finishes
|
|
9
|
+
* @fires refit - Dispatched when refit algorithm finishes calculations
|
|
10
|
+
* @fires opened-changed - Dispatched when when open attribute changes internally. Prevent default to stop opening/closing pipeline
|
|
11
|
+
*/
|
|
12
|
+
export declare class Overlay extends ResponsiveElement {
|
|
13
|
+
/**
|
|
14
|
+
* Element version number
|
|
15
|
+
* @returns version number
|
|
16
|
+
*/
|
|
17
|
+
static get version(): string;
|
|
18
|
+
protected readonly defaultTabIndex = -1;
|
|
19
|
+
private _fullyOpened;
|
|
20
|
+
private static Template;
|
|
21
|
+
/**
|
|
22
|
+
* A `CSSResultGroup` that will be used
|
|
23
|
+
* to style the host, slotted children
|
|
24
|
+
* and the internal template of the element.
|
|
25
|
+
* @return CSS template
|
|
26
|
+
*/
|
|
27
|
+
static get styles(): CSSResultGroup;
|
|
28
|
+
/**
|
|
29
|
+
* True if the overlay is currently displayed
|
|
30
|
+
*/
|
|
31
|
+
opened: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* True to add shadow
|
|
34
|
+
*/
|
|
35
|
+
withShadow: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* True to make overlay background transparent
|
|
38
|
+
*/
|
|
39
|
+
transparent: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* True to apply spacing for overlay content
|
|
42
|
+
*/
|
|
43
|
+
spacing: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Set the transition style
|
|
46
|
+
*/
|
|
47
|
+
transitionStyle: TransitionStyle | NullOrUndefined;
|
|
48
|
+
/**
|
|
49
|
+
* Set a preferable z-index to override automatically calculated z-index
|
|
50
|
+
*/
|
|
51
|
+
zIndex: number | NullOrUndefined;
|
|
52
|
+
/**
|
|
53
|
+
* Set a specific x coordinate
|
|
54
|
+
*/
|
|
55
|
+
x: number | NullOrUndefined;
|
|
56
|
+
/**
|
|
57
|
+
* Set a specific y coordinate
|
|
58
|
+
*/
|
|
59
|
+
y: number | NullOrUndefined;
|
|
60
|
+
/**
|
|
61
|
+
* Set the position target as follows:
|
|
62
|
+
* - HTMLElement if overlay is position next to the HTML element
|
|
63
|
+
* - String containing `top`, `right`, `left`, `bottom`, `center` combinations to position against the screen.
|
|
64
|
+
* For instance: `top left` - put the overlay at `top left` point of the screen; `bottom` - put overlay at `bottom center` point of the screen
|
|
65
|
+
*/
|
|
66
|
+
positionTarget: HTMLElement | PositionTarget | NullOrUndefined;
|
|
67
|
+
/**
|
|
68
|
+
* A pixel value that will be added to the position calculated on the horizontal axis.
|
|
69
|
+
* The offset will be applied either to the `left` or `right` depending on the `positionTarget`
|
|
70
|
+
*/
|
|
71
|
+
horizontalOffset: number;
|
|
72
|
+
/**
|
|
73
|
+
* A pixel value that will be added to the position calculated on the vertical axis.
|
|
74
|
+
* The offset will be applied either to the `top` or `bottom` depending on the `positionTarget`
|
|
75
|
+
*/
|
|
76
|
+
verticalOffset: number;
|
|
77
|
+
/**
|
|
78
|
+
* A pixel value that will be added to the position calculated on the vertical or horizontal axis.
|
|
79
|
+
* The offset is applied dynamically depending on the `positionTarget`
|
|
80
|
+
*/
|
|
81
|
+
offset: number;
|
|
82
|
+
/**
|
|
83
|
+
* Set to true to disable canceling the overlay with the ESC key
|
|
84
|
+
*/
|
|
85
|
+
noCancelOnEscKey: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Set to true to disable canceling the overlay by clicking outside it
|
|
88
|
+
*/
|
|
89
|
+
noCancelOnOutsideClick: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Set to true to show overlay in full screen mode
|
|
92
|
+
*/
|
|
93
|
+
fullScreen: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* True to not overlap positionTarget
|
|
96
|
+
*/
|
|
97
|
+
noOverlap: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Stop preventing user interaction when overlay is visible
|
|
100
|
+
*/
|
|
101
|
+
noInteractionLock: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* True to not apply focus management.
|
|
104
|
+
* The overlay will not limit Tab behaviour or do auto-focusing
|
|
105
|
+
*/
|
|
106
|
+
noFocusManagement: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* True to lock position target
|
|
109
|
+
* Valid only if noInteractionLock is false (default)
|
|
110
|
+
*/
|
|
111
|
+
lockPositionTarget: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* A list of elements, which are active when overlay is opened
|
|
114
|
+
* Valid only if noInteractionLock is false (default)
|
|
115
|
+
*/
|
|
116
|
+
interactiveElements: HTMLElement[];
|
|
117
|
+
/**
|
|
118
|
+
* True to show backdrop
|
|
119
|
+
*/
|
|
120
|
+
withBackdrop: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Set to true to disable autofocusing the overlay or open
|
|
123
|
+
*/
|
|
124
|
+
noAutofocus: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Used as a hook to support deprecation attributes from v3
|
|
127
|
+
*/
|
|
128
|
+
private _position?;
|
|
129
|
+
/**
|
|
130
|
+
* Set position and align against the attach target.
|
|
131
|
+
* Position may contain a single word or a comma separated list to set the priority.
|
|
132
|
+
* Position is not applied if `attachTarget` is not HTML Element.
|
|
133
|
+
* For instance: `[bottom-middle, top-middle]` - default position is bottom-middle, if cannot fit position top-middle;
|
|
134
|
+
* or `[left, right]` - align is not set, set best position on the left or right
|
|
135
|
+
*
|
|
136
|
+
* Position can be: `top`, `right`, `bottom`, `left`, `center`
|
|
137
|
+
* Align can be: `start`, `middle`, `end`
|
|
138
|
+
*
|
|
139
|
+
* @param value Position value
|
|
140
|
+
*/
|
|
141
|
+
set position(value: Position[] | undefined);
|
|
142
|
+
get position(): Position[] | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Parsed position for re-use
|
|
145
|
+
*/
|
|
146
|
+
private _positionStrategy;
|
|
147
|
+
/**
|
|
148
|
+
* Get parsed position strategy or the default strategy if none provided
|
|
149
|
+
* @returns positionStrategy as a list of tuples containing position and align
|
|
150
|
+
*/
|
|
151
|
+
private get positionStrategy();
|
|
152
|
+
/**
|
|
153
|
+
* Get position target configuration based on positionTarget and fullScreen properties
|
|
154
|
+
* Used for caching and calculations
|
|
155
|
+
*/
|
|
156
|
+
get positionTargetConfig(): PositionTargetStrategy;
|
|
157
|
+
/**
|
|
158
|
+
* Set focus boundary to restrict tabbing. Default's overlay itself.
|
|
159
|
+
* If external focus is required, set to null
|
|
160
|
+
*/
|
|
161
|
+
focusBoundary: HTMLElement | ShadowRoot | null;
|
|
162
|
+
/**
|
|
163
|
+
* A hook to reset transition and transform when the overlay is opened.
|
|
164
|
+
* This removes the complexity of calculating specific "transformed"
|
|
165
|
+
* coordinates for descendant elements
|
|
166
|
+
* @param animationReady True to set attribute
|
|
167
|
+
*/
|
|
168
|
+
private set animationReady(value);
|
|
169
|
+
/**
|
|
170
|
+
* Run the animation reverse order when closing
|
|
171
|
+
* @param animationReverse True to set attribute
|
|
172
|
+
*/
|
|
173
|
+
private set animationReverse(value);
|
|
174
|
+
/**
|
|
175
|
+
* Used with dynamic `slide` animation to detect correct animation position
|
|
176
|
+
* @param animationPosition Set animation position
|
|
177
|
+
*/
|
|
178
|
+
private set animationPosition(value);
|
|
179
|
+
private _firstResizeDone;
|
|
180
|
+
/**
|
|
181
|
+
* Used to set attribute after the initial callback has been fired
|
|
182
|
+
* A function is here to sort IE11 flickering problem
|
|
183
|
+
* @param firstResizeDone True if the initial resize has happened
|
|
184
|
+
*/
|
|
185
|
+
private set firstResizeDone(value);
|
|
186
|
+
private get firstResizeDone();
|
|
187
|
+
/**
|
|
188
|
+
* Used internally to keep calculated positions
|
|
189
|
+
*/
|
|
190
|
+
private calculated;
|
|
191
|
+
/**
|
|
192
|
+
* All internal opened set events can be stoppable externally
|
|
193
|
+
* Use this instead of setting opened directly
|
|
194
|
+
* Protected method that can be used by managers or subclasses
|
|
195
|
+
* @param opened True if opened
|
|
196
|
+
* @returns {void}
|
|
197
|
+
*/
|
|
198
|
+
protected setOpened(opened: boolean): void;
|
|
199
|
+
disconnectedCallback(): void;
|
|
200
|
+
/**
|
|
201
|
+
* Called when the element’s DOM has been updated and rendered
|
|
202
|
+
* @param changedProperties Properties that has changed
|
|
203
|
+
* @returns shouldUpdate
|
|
204
|
+
*/
|
|
205
|
+
protected shouldUpdate(changedProperties: PropertyValues): boolean;
|
|
206
|
+
private redrawThrottler;
|
|
207
|
+
/**
|
|
208
|
+
* Run when opened attribute changes.
|
|
209
|
+
* The function must be throttled in animation task to give time an element to be rendered
|
|
210
|
+
* @returns {void}
|
|
211
|
+
*/
|
|
212
|
+
private openedChange;
|
|
213
|
+
/**
|
|
214
|
+
* This function sets obligatory registers
|
|
215
|
+
* and sets/removes optional registers
|
|
216
|
+
* based on the fact whether the overlay is opened or not
|
|
217
|
+
* or whether the register attribute has changed
|
|
218
|
+
* @param changedProperties Changed properties
|
|
219
|
+
* @returns {void}
|
|
220
|
+
*/
|
|
221
|
+
private setRegisters;
|
|
222
|
+
/**
|
|
223
|
+
* This function is called in order to remove overlay from main registers
|
|
224
|
+
* Registers must be removed in correct order, otherwise overlay might behave
|
|
225
|
+
* unexpectedly. All other registers are removed inside onFullyClosed function
|
|
226
|
+
* once animations are finished or on disconnectedCallback
|
|
227
|
+
* @returns {void}
|
|
228
|
+
*/
|
|
229
|
+
private removeMainRegisters;
|
|
230
|
+
/**
|
|
231
|
+
* Set and remove animation event listener
|
|
232
|
+
* @returns {void}
|
|
233
|
+
*/
|
|
234
|
+
private onOpenedChangedAnimation;
|
|
235
|
+
/**
|
|
236
|
+
* Ensure that the opened flag gets removed when transition has finished
|
|
237
|
+
* Ensure that transitioned hook is applied when opened
|
|
238
|
+
* @returns {void}
|
|
239
|
+
*/
|
|
240
|
+
private onOpenedChangedAnimationEvent;
|
|
241
|
+
/**
|
|
242
|
+
* A helper method to fire opening events
|
|
243
|
+
* @returns {void}
|
|
244
|
+
*/
|
|
245
|
+
private onFullyOpened;
|
|
246
|
+
/**
|
|
247
|
+
* A helper method to deregister element from all listeners
|
|
248
|
+
* once the overlay is fully closed
|
|
249
|
+
* Note: some registries are remove immediately after close
|
|
250
|
+
* @returns {void}
|
|
251
|
+
*/
|
|
252
|
+
private onFullyClosed;
|
|
253
|
+
/**
|
|
254
|
+
* Run when the overlay has opened, initial positioning is done,
|
|
255
|
+
* managers are registered and opening transition has finished
|
|
256
|
+
* @returns {void}
|
|
257
|
+
*/
|
|
258
|
+
protected onOpened(): void;
|
|
259
|
+
/**
|
|
260
|
+
* Run when the overlay has closed, managers are de-registered
|
|
261
|
+
* and closing transition has finished
|
|
262
|
+
* @returns {void}
|
|
263
|
+
*/
|
|
264
|
+
protected onClosed(): void;
|
|
265
|
+
/**
|
|
266
|
+
* Here to avoid redundant call to set styles and calculate position
|
|
267
|
+
*/
|
|
268
|
+
private cachedProperties;
|
|
269
|
+
/**
|
|
270
|
+
* A helper method to set or remove style property if the value is different
|
|
271
|
+
* @param property Property name
|
|
272
|
+
* @param value Property value
|
|
273
|
+
* @returns {void}
|
|
274
|
+
*/
|
|
275
|
+
private setPropertyIf;
|
|
276
|
+
/**
|
|
277
|
+
* Cache height and width.
|
|
278
|
+
* Calculating offsetHeight and offsetWidth is expensive,
|
|
279
|
+
* therefore try to use cached version
|
|
280
|
+
* @returns {void}
|
|
281
|
+
*/
|
|
282
|
+
private setResizeSizingInfo;
|
|
283
|
+
/**
|
|
284
|
+
* Get overlay with and height information
|
|
285
|
+
* Sizing is cached and may not reflect the current
|
|
286
|
+
*/
|
|
287
|
+
private get sizingRect();
|
|
288
|
+
private _sizingInfo;
|
|
289
|
+
/**
|
|
290
|
+
* A helper getter to get sizing information for the overlay
|
|
291
|
+
* @returns {Object} sizingInfo
|
|
292
|
+
*/
|
|
293
|
+
private get sizingInfo();
|
|
294
|
+
/**
|
|
295
|
+
* Reset current sizing info to original values
|
|
296
|
+
* @returns {void}
|
|
297
|
+
*/
|
|
298
|
+
private resetSizingInfo;
|
|
299
|
+
/**
|
|
300
|
+
* Get information of view boundaries for the overlay
|
|
301
|
+
*/
|
|
302
|
+
private get viewAreaInfo();
|
|
303
|
+
/**
|
|
304
|
+
* Enforce the overlay to fit the viewArea
|
|
305
|
+
* @param [viewHeight=this._viewAreaInfo.viewHeight] Height to limit to
|
|
306
|
+
* @param [viewWidth=this._viewAreaInfo.viewWidth] Width to limit to
|
|
307
|
+
* @returns {void}
|
|
308
|
+
*/
|
|
309
|
+
private limitToViewArea;
|
|
310
|
+
/**
|
|
311
|
+
* Set top, left, right, bottom to style tag taking into account offset.
|
|
312
|
+
* If property is null or undefined, remove from style tag
|
|
313
|
+
* @param style An object containing top, left, right and/or bottom
|
|
314
|
+
* @returns {void}
|
|
315
|
+
*/
|
|
316
|
+
private setPositionStyle;
|
|
317
|
+
/**
|
|
318
|
+
* Used to cache sizing info for easy comparison
|
|
319
|
+
*/
|
|
320
|
+
private refitString;
|
|
321
|
+
/**
|
|
322
|
+
* This function serves as a safeguard between resize observer and internal logic to prevent resize loop
|
|
323
|
+
* fit setting. Never refits the overlay if previous sizes are the same as last fit size
|
|
324
|
+
* @param clb Callback to run if cache has changed
|
|
325
|
+
* @returns {void}
|
|
326
|
+
*/
|
|
327
|
+
private refitIfChanged;
|
|
328
|
+
/**
|
|
329
|
+
* Immediately run fit method without throttling
|
|
330
|
+
* Use carefully as calling this function multiple times has a performance impact
|
|
331
|
+
* @returns {void}
|
|
332
|
+
*/
|
|
333
|
+
private fitNonThrottled;
|
|
334
|
+
/**
|
|
335
|
+
* Fit based on the position target
|
|
336
|
+
* @returns {void}
|
|
337
|
+
*/
|
|
338
|
+
private fitPositionTarget;
|
|
339
|
+
/**
|
|
340
|
+
* Clear all cached values.
|
|
341
|
+
* Run when external changes occur to styles to re-calculate position.
|
|
342
|
+
* @returns {void}
|
|
343
|
+
*/
|
|
344
|
+
clearCached(): void;
|
|
345
|
+
private fitThrottler;
|
|
346
|
+
/**
|
|
347
|
+
* Fit the overlay panel
|
|
348
|
+
* @returns {void}
|
|
349
|
+
*/
|
|
350
|
+
fit(): void;
|
|
351
|
+
/**
|
|
352
|
+
* Clear all cached values and fit the overlay.
|
|
353
|
+
* Use this function if any of `maxWidth`, `maxHeight`, `minWidth`, `minHeight`, `height` or `width` changed
|
|
354
|
+
* @returns {void}
|
|
355
|
+
*/
|
|
356
|
+
refit(): void;
|
|
357
|
+
private resizeHeight;
|
|
358
|
+
private resizeWidth;
|
|
359
|
+
private resizedThrottler;
|
|
360
|
+
/**
|
|
361
|
+
* Element resize callback
|
|
362
|
+
* @param size dimension details
|
|
363
|
+
* @returns {void}
|
|
364
|
+
* @private
|
|
365
|
+
*/
|
|
366
|
+
resizedCallback(size: ElementSize): void;
|
|
367
|
+
/**
|
|
368
|
+
* Move overlay to front of other overlays
|
|
369
|
+
* @returns {void}
|
|
370
|
+
*/
|
|
371
|
+
toFront(): void;
|
|
372
|
+
/**
|
|
373
|
+
* Returns true if the overlay is opened and animation is not running.
|
|
374
|
+
* Returns false if overlay is closed and animation is not running
|
|
375
|
+
* @readonly
|
|
376
|
+
*/
|
|
377
|
+
get fullyOpened(): boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Returns true if overlay is doing opening or closing transition
|
|
380
|
+
* @readonly
|
|
381
|
+
*/
|
|
382
|
+
get transitioning(): boolean;
|
|
383
|
+
/**
|
|
384
|
+
* A `TemplateResult` that will be used
|
|
385
|
+
* to render the updated internal template.
|
|
386
|
+
* @return Render template
|
|
387
|
+
*/
|
|
388
|
+
protected render(): TemplateResult;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
declare global {
|
|
392
|
+
interface HTMLElementTagNameMap {
|
|
393
|
+
'ef-overlay': Overlay;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
namespace JSX {
|
|
397
|
+
interface IntrinsicElements {
|
|
398
|
+
'ef-overlay': Partial<Overlay> | JSXInterface.HTMLAttributes<Overlay>;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export {};
|