@refinitiv-ui/elements 5.3.1-next.9 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -69
- package/lib/accordion/custom-elements.json +0 -13
- package/lib/accordion/index.d.ts +1 -5
- package/lib/accordion/index.js +1 -9
- package/lib/appstate-bar/index.d.ts +1 -1
- package/lib/appstate-bar/index.js +1 -2
- package/lib/autosuggest/helpers/const.d.ts +0 -1
- package/lib/autosuggest/helpers/const.js +0 -1
- package/lib/autosuggest/helpers/types.d.ts +0 -1
- package/lib/autosuggest/helpers/types.js +0 -1
- package/lib/autosuggest/helpers/utils.d.ts +0 -1
- package/lib/autosuggest/helpers/utils.js +0 -1
- package/lib/autosuggest/index.d.ts +1 -1
- package/lib/autosuggest/index.js +1 -2
- package/lib/button/index.d.ts +3 -10
- package/lib/button/index.js +5 -21
- package/lib/button/themes/halo/dark/index.js +1 -1
- package/lib/button/themes/halo/light/index.js +1 -1
- package/lib/button/themes/solar/charcoal/index.js +1 -1
- package/lib/button/themes/solar/pearl/index.js +1 -1
- package/lib/button-bar/index.d.ts +1 -1
- package/lib/button-bar/index.js +1 -2
- package/lib/calendar/index.d.ts +3 -3
- package/lib/calendar/index.js +6 -7
- package/lib/calendar/locales.d.ts +0 -1
- package/lib/calendar/locales.js +1 -2
- package/lib/calendar/types.d.ts +0 -1
- package/lib/calendar/types.js +0 -1
- package/lib/calendar/utils.d.ts +0 -1
- package/lib/calendar/utils.js +1 -2
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +1 -2
- package/lib/card/helpers/types.d.ts +0 -1
- package/lib/card/helpers/types.js +0 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -3
- package/lib/card/themes/halo/dark/index.js +1 -1
- package/lib/card/themes/halo/light/index.js +1 -1
- package/lib/card/themes/solar/charcoal/index.js +1 -1
- package/lib/card/themes/solar/pearl/index.js +1 -1
- package/lib/chart/helpers/index.d.ts +0 -1
- package/lib/chart/helpers/index.js +0 -1
- package/lib/chart/helpers/legend.d.ts +0 -1
- package/lib/chart/helpers/legend.js +0 -1
- package/lib/chart/helpers/merge.d.ts +0 -1
- package/lib/chart/helpers/merge.js +0 -1
- package/lib/chart/helpers/types.d.ts +0 -1
- package/lib/chart/helpers/types.js +0 -1
- package/lib/chart/index.d.ts +1 -1
- package/lib/chart/index.js +1 -2
- package/lib/chart/plugins/doughnut-center-label.d.ts +0 -1
- package/lib/chart/plugins/doughnut-center-label.js +0 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +1 -2
- package/lib/clock/index.d.ts +1 -1
- package/lib/clock/index.js +1 -2
- package/lib/clock/utils/TickManager.d.ts +0 -1
- package/lib/clock/utils/TickManager.js +0 -1
- package/lib/clock/utils/timestamps.d.ts +0 -1
- package/lib/clock/utils/timestamps.js +0 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +1 -2
- package/lib/color-dialog/elements/color-palettes.d.ts +1 -1
- package/lib/color-dialog/elements/color-palettes.js +1 -2
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +1 -1
- package/lib/color-dialog/elements/grayscale-palettes.js +1 -2
- package/lib/color-dialog/elements/palettes.d.ts +0 -1
- package/lib/color-dialog/elements/palettes.js +1 -2
- package/lib/color-dialog/helpers/color-helpers.d.ts +0 -1
- package/lib/color-dialog/helpers/color-helpers.js +0 -1
- package/lib/color-dialog/helpers/value-model.d.ts +0 -1
- package/lib/color-dialog/helpers/value-model.js +0 -1
- package/lib/color-dialog/index.d.ts +1 -1
- package/lib/color-dialog/index.js +1 -2
- package/lib/combo-box/helpers/filter.d.ts +0 -1
- package/lib/combo-box/helpers/filter.js +0 -1
- package/lib/combo-box/helpers/keyboard-event.d.ts +0 -1
- package/lib/combo-box/helpers/keyboard-event.js +0 -1
- package/lib/combo-box/helpers/types.d.ts +0 -1
- package/lib/combo-box/helpers/types.js +0 -1
- package/lib/combo-box/index.d.ts +3 -2
- package/lib/combo-box/index.js +5 -8
- package/lib/combo-box/themes/halo/dark/index.js +2 -2
- package/lib/combo-box/themes/halo/light/index.js +2 -2
- package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
- package/lib/combo-box/themes/solar/pearl/index.js +1 -1
- package/lib/counter/index.d.ts +1 -1
- package/lib/counter/index.js +1 -2
- package/lib/counter/utils.d.ts +0 -1
- package/lib/counter/utils.js +0 -1
- package/lib/datetime-picker/index.d.ts +1 -1
- package/lib/datetime-picker/index.js +1 -2
- package/lib/datetime-picker/locales.d.ts +0 -1
- package/lib/datetime-picker/locales.js +0 -1
- package/lib/datetime-picker/types.d.ts +0 -1
- package/lib/datetime-picker/types.js +0 -1
- package/lib/datetime-picker/utils.d.ts +0 -1
- package/lib/datetime-picker/utils.js +0 -1
- package/lib/dialog/draggable-element.d.ts +0 -1
- package/lib/dialog/draggable-element.js +0 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +1 -2
- package/lib/email-field/index.d.ts +1 -1
- package/lib/email-field/index.js +1 -2
- package/lib/events.d.ts +0 -1
- package/lib/events.js +0 -1
- package/lib/flag/index.d.ts +1 -1
- package/lib/flag/index.js +1 -2
- package/lib/flag/utils/FlagLoader.d.ts +0 -1
- package/lib/flag/utils/FlagLoader.js +0 -1
- package/lib/header/index.d.ts +1 -1
- package/lib/header/index.js +1 -2
- package/lib/heatmap/helpers/color.d.ts +0 -1
- package/lib/heatmap/helpers/color.js +0 -1
- package/lib/heatmap/helpers/text.d.ts +0 -1
- package/lib/heatmap/helpers/text.js +0 -1
- package/lib/heatmap/helpers/track.d.ts +0 -1
- package/lib/heatmap/helpers/track.js +0 -1
- package/lib/heatmap/helpers/types.d.ts +0 -1
- package/lib/heatmap/helpers/types.js +0 -1
- package/lib/heatmap/index.d.ts +1 -1
- package/lib/heatmap/index.js +1 -2
- package/lib/icon/index.d.ts +2 -2
- package/lib/icon/index.js +3 -4
- package/lib/icon/utils/IconLoader.d.ts +1 -2
- package/lib/icon/utils/IconLoader.js +1 -2
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -2
- package/lib/interactive-chart/helpers/merge.d.ts +0 -1
- package/lib/interactive-chart/helpers/merge.js +0 -1
- package/lib/interactive-chart/helpers/types.d.ts +0 -1
- package/lib/interactive-chart/helpers/types.js +0 -1
- package/lib/interactive-chart/index.d.ts +1 -1
- package/lib/interactive-chart/index.js +1 -2
- package/lib/item/helpers/types.d.ts +0 -1
- package/lib/item/helpers/types.js +0 -1
- package/lib/item/index.d.ts +1 -1
- package/lib/item/index.js +1 -2
- package/lib/label/index.d.ts +1 -1
- package/lib/label/index.js +1 -2
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/index.js +1 -2
- package/lib/led-gauge/index.d.ts +1 -1
- package/lib/led-gauge/index.js +1 -2
- package/lib/list/extensible-function.d.ts +0 -1
- package/lib/list/extensible-function.js +0 -1
- package/lib/list/helpers/list-renderer.d.ts +0 -1
- package/lib/list/helpers/list-renderer.js +0 -1
- package/lib/list/helpers/types.d.ts +0 -1
- package/lib/list/helpers/types.js +0 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/index.js +1 -2
- package/lib/list/renderer.d.ts +0 -1
- package/lib/list/renderer.js +0 -1
- package/lib/loader/index.d.ts +1 -1
- package/lib/loader/index.js +1 -2
- package/lib/multi-input/helpers/types.d.ts +0 -1
- package/lib/multi-input/helpers/types.js +0 -1
- package/lib/multi-input/index.d.ts +1 -1
- package/lib/multi-input/index.js +1 -2
- package/lib/notification/elements/notification-tray.d.ts +1 -1
- package/lib/notification/elements/notification-tray.js +1 -2
- package/lib/notification/elements/notification.d.ts +1 -1
- package/lib/notification/elements/notification.js +1 -2
- package/lib/notification/helpers/status.d.ts +0 -1
- package/lib/notification/helpers/status.js +0 -1
- package/lib/notification/helpers/types.d.ts +0 -1
- package/lib/notification/helpers/types.js +0 -1
- package/lib/notification/index.d.ts +0 -1
- package/lib/notification/index.js +0 -1
- package/lib/number-field/index.d.ts +1 -1
- package/lib/number-field/index.js +1 -2
- package/lib/overlay/elements/overlay-backdrop.d.ts +1 -1
- package/lib/overlay/elements/overlay-backdrop.js +1 -2
- package/lib/overlay/elements/overlay-viewport.d.ts +1 -1
- package/lib/overlay/elements/overlay-viewport.js +1 -2
- package/lib/overlay/elements/overlay.d.ts +1 -1
- package/lib/overlay/elements/overlay.js +3 -4
- package/lib/overlay/helpers/functions.d.ts +0 -1
- package/lib/overlay/helpers/functions.js +0 -1
- package/lib/overlay/helpers/types.d.ts +0 -1
- package/lib/overlay/helpers/types.js +0 -1
- package/lib/overlay/index.d.ts +0 -1
- package/lib/overlay/index.js +0 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +0 -1
- package/lib/overlay/managers/backdrop-manager.js +0 -1
- package/lib/overlay/managers/close-manager.d.ts +0 -1
- package/lib/overlay/managers/close-manager.js +0 -1
- package/lib/overlay/managers/focus-manager.d.ts +0 -1
- package/lib/overlay/managers/focus-manager.js +1 -2
- package/lib/overlay/managers/interaction-lock-manager.d.ts +0 -1
- package/lib/overlay/managers/interaction-lock-manager.js +1 -2
- package/lib/overlay/managers/viewport-manager.d.ts +0 -1
- package/lib/overlay/managers/viewport-manager.js +1 -2
- package/lib/overlay/managers/zindex-manager.d.ts +0 -1
- package/lib/overlay/managers/zindex-manager.js +1 -2
- package/lib/overlay-menu/helpers/types.d.ts +0 -1
- package/lib/overlay-menu/helpers/types.js +0 -1
- package/lib/overlay-menu/helpers/uuid.d.ts +7 -0
- package/lib/overlay-menu/helpers/uuid.js +13 -0
- package/lib/overlay-menu/index.d.ts +1 -1
- package/lib/overlay-menu/index.js +4 -4
- package/lib/overlay-menu/managers/menu-manager.d.ts +0 -1
- package/lib/overlay-menu/managers/menu-manager.js +0 -1
- package/lib/pagination/helpers/types.d.ts +0 -1
- package/lib/pagination/helpers/types.js +0 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.js +1 -2
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/index.js +1 -2
- package/lib/password-field/index.d.ts +1 -1
- package/lib/password-field/index.js +1 -2
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +1 -2
- package/lib/progress-bar/index.d.ts +1 -1
- package/lib/progress-bar/index.js +1 -2
- package/lib/radio-button/index.d.ts +1 -1
- package/lib/radio-button/index.js +1 -2
- package/lib/radio-button/radio-button-registry.d.ts +0 -1
- package/lib/radio-button/radio-button-registry.js +0 -1
- package/lib/rating/index.d.ts +1 -1
- package/lib/rating/index.js +1 -2
- package/lib/search-field/index.d.ts +1 -1
- package/lib/search-field/index.js +1 -2
- package/lib/select/helpers/types.d.ts +0 -1
- package/lib/select/helpers/types.js +0 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.js +1 -2
- package/lib/sidebar-layout/index.d.ts +1 -1
- package/lib/sidebar-layout/index.js +1 -2
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -2
- package/lib/sparkline/index.d.ts +1 -1
- package/lib/sparkline/index.js +1 -2
- package/lib/swing-gauge/const.d.ts +0 -1
- package/lib/swing-gauge/const.js +0 -1
- package/lib/swing-gauge/helpers.d.ts +0 -1
- package/lib/swing-gauge/helpers.js +1 -2
- package/lib/swing-gauge/index.d.ts +5 -3
- package/lib/swing-gauge/index.js +29 -51
- package/lib/swing-gauge/types.d.ts +0 -1
- package/lib/swing-gauge/types.js +0 -1
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +1 -2
- package/lib/tab-bar/helpers/animate.d.ts +0 -1
- package/lib/tab-bar/helpers/animate.js +0 -1
- package/lib/tab-bar/index.d.ts +1 -1
- package/lib/tab-bar/index.js +1 -2
- package/lib/text-field/index.d.ts +1 -1
- package/lib/text-field/index.js +1 -2
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +1 -2
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +22 -4
- package/lib/toggle/themes/halo/dark/index.js +1 -1
- package/lib/toggle/themes/halo/light/index.js +1 -1
- package/lib/toggle/themes/solar/charcoal/index.js +1 -1
- package/lib/toggle/themes/solar/pearl/index.js +1 -1
- package/lib/tooltip/elements/title-tooltip.d.ts +0 -1
- package/lib/tooltip/elements/title-tooltip.js +0 -1
- package/lib/tooltip/elements/tooltip-element.d.ts +0 -1
- package/lib/tooltip/elements/tooltip-element.js +0 -1
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +0 -1
- package/lib/tooltip/helpers/overflow-tooltip.js +0 -1
- package/lib/tooltip/helpers/renderer.d.ts +0 -1
- package/lib/tooltip/helpers/renderer.js +0 -1
- package/lib/tooltip/helpers/types.d.ts +0 -1
- package/lib/tooltip/helpers/types.js +0 -1
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +2 -3
- package/lib/tooltip/managers/tooltip-manager.d.ts +2 -3
- package/lib/tooltip/managers/tooltip-manager.js +1 -2
- package/lib/tornado-chart/elements/tornado-chart.d.ts +1 -1
- package/lib/tornado-chart/elements/tornado-chart.js +1 -2
- package/lib/tornado-chart/elements/tornado-item.d.ts +1 -1
- package/lib/tornado-chart/elements/tornado-item.js +1 -2
- package/lib/tornado-chart/index.d.ts +0 -1
- package/lib/tornado-chart/index.js +0 -1
- package/lib/tree/elements/tree-item.d.ts +1 -1
- package/lib/tree/elements/tree-item.js +1 -2
- package/lib/tree/elements/tree.d.ts +1 -1
- package/lib/tree/elements/tree.js +1 -2
- package/lib/tree/helpers/renderer.d.ts +0 -1
- package/lib/tree/helpers/renderer.js +0 -1
- package/lib/tree/helpers/types.d.ts +0 -1
- package/lib/tree/helpers/types.js +0 -1
- package/lib/tree/index.d.ts +0 -1
- package/lib/tree/index.js +0 -1
- package/lib/tree/managers/tree-manager.d.ts +0 -1
- package/lib/tree/managers/tree-manager.js +0 -1
- package/lib/tree-select/helpers/types.d.ts +0 -1
- package/lib/tree-select/helpers/types.js +0 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/index.js +1 -2
- package/lib/tree-select/themes/halo/dark/index.js +2 -1
- package/lib/tree-select/themes/halo/light/index.js +2 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -0
- package/lib/tree-select/themes/solar/pearl/index.js +1 -0
- package/package.json +19 -46
- package/lib/accordion/index.js.map +0 -1
- package/lib/appstate-bar/index.js.map +0 -1
- package/lib/autosuggest/helpers/const.js.map +0 -1
- package/lib/autosuggest/helpers/types.js.map +0 -1
- package/lib/autosuggest/helpers/utils.js.map +0 -1
- package/lib/autosuggest/index.js.map +0 -1
- package/lib/button/index.js.map +0 -1
- package/lib/button-bar/index.js.map +0 -1
- package/lib/calendar/index.js.map +0 -1
- package/lib/calendar/locales.js.map +0 -1
- package/lib/calendar/types.js.map +0 -1
- package/lib/calendar/utils.js.map +0 -1
- package/lib/canvas/index.js.map +0 -1
- package/lib/card/helpers/types.js.map +0 -1
- package/lib/card/index.js.map +0 -1
- package/lib/chart/helpers/index.js.map +0 -1
- package/lib/chart/helpers/legend.js.map +0 -1
- package/lib/chart/helpers/merge.js.map +0 -1
- package/lib/chart/helpers/types.js.map +0 -1
- package/lib/chart/index.js.map +0 -1
- package/lib/chart/plugins/doughnut-center-label.js.map +0 -1
- package/lib/checkbox/index.js.map +0 -1
- package/lib/clock/index.js.map +0 -1
- package/lib/clock/utils/TickManager.js.map +0 -1
- package/lib/clock/utils/timestamps.js.map +0 -1
- package/lib/collapse/index.js.map +0 -1
- package/lib/color-dialog/elements/color-palettes.js.map +0 -1
- package/lib/color-dialog/elements/grayscale-palettes.js.map +0 -1
- package/lib/color-dialog/elements/palettes.js.map +0 -1
- package/lib/color-dialog/helpers/color-helpers.js.map +0 -1
- package/lib/color-dialog/helpers/value-model.js.map +0 -1
- package/lib/color-dialog/index.js.map +0 -1
- package/lib/combo-box/helpers/filter.js.map +0 -1
- package/lib/combo-box/helpers/keyboard-event.js.map +0 -1
- package/lib/combo-box/helpers/types.js.map +0 -1
- package/lib/combo-box/index.js.map +0 -1
- package/lib/counter/index.js.map +0 -1
- package/lib/counter/utils.js.map +0 -1
- package/lib/datetime-picker/index.js.map +0 -1
- package/lib/datetime-picker/locales.js.map +0 -1
- package/lib/datetime-picker/types.js.map +0 -1
- package/lib/datetime-picker/utils.js.map +0 -1
- package/lib/dialog/draggable-element.js.map +0 -1
- package/lib/dialog/index.js.map +0 -1
- package/lib/email-field/index.js.map +0 -1
- package/lib/events.js.map +0 -1
- package/lib/flag/index.js.map +0 -1
- package/lib/flag/utils/FlagLoader.js.map +0 -1
- package/lib/header/index.js.map +0 -1
- package/lib/heatmap/helpers/color.js.map +0 -1
- package/lib/heatmap/helpers/text.js.map +0 -1
- package/lib/heatmap/helpers/track.js.map +0 -1
- package/lib/heatmap/helpers/types.js.map +0 -1
- package/lib/heatmap/index.js.map +0 -1
- package/lib/icon/index.js.map +0 -1
- package/lib/icon/utils/IconLoader.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/interactive-chart/helpers/merge.js.map +0 -1
- package/lib/interactive-chart/helpers/types.js.map +0 -1
- package/lib/interactive-chart/index.js.map +0 -1
- package/lib/item/helpers/types.js.map +0 -1
- package/lib/item/index.js.map +0 -1
- package/lib/label/index.js.map +0 -1
- package/lib/layout/index.js.map +0 -1
- package/lib/led-gauge/index.js.map +0 -1
- package/lib/list/extensible-function.js.map +0 -1
- package/lib/list/helpers/list-renderer.js.map +0 -1
- package/lib/list/helpers/types.js.map +0 -1
- package/lib/list/index.js.map +0 -1
- package/lib/list/renderer.js.map +0 -1
- package/lib/loader/index.js.map +0 -1
- package/lib/multi-input/helpers/types.js.map +0 -1
- package/lib/multi-input/index.js.map +0 -1
- package/lib/notification/elements/notification-tray.js.map +0 -1
- package/lib/notification/elements/notification.js.map +0 -1
- package/lib/notification/helpers/status.js.map +0 -1
- package/lib/notification/helpers/types.js.map +0 -1
- package/lib/notification/index.js.map +0 -1
- package/lib/number-field/index.js.map +0 -1
- package/lib/overlay/elements/overlay-backdrop.js.map +0 -1
- package/lib/overlay/elements/overlay-viewport.js.map +0 -1
- package/lib/overlay/elements/overlay.js.map +0 -1
- package/lib/overlay/helpers/functions.js.map +0 -1
- package/lib/overlay/helpers/types.js.map +0 -1
- package/lib/overlay/index.js.map +0 -1
- package/lib/overlay/managers/backdrop-manager.js.map +0 -1
- package/lib/overlay/managers/close-manager.js.map +0 -1
- package/lib/overlay/managers/focus-manager.js.map +0 -1
- package/lib/overlay/managers/interaction-lock-manager.js.map +0 -1
- package/lib/overlay/managers/viewport-manager.js.map +0 -1
- package/lib/overlay/managers/zindex-manager.js.map +0 -1
- package/lib/overlay-menu/helpers/types.js.map +0 -1
- package/lib/overlay-menu/index.js.map +0 -1
- package/lib/overlay-menu/managers/menu-manager.js.map +0 -1
- package/lib/pagination/helpers/types.js.map +0 -1
- package/lib/pagination/index.js.map +0 -1
- package/lib/panel/index.js.map +0 -1
- package/lib/password-field/index.js.map +0 -1
- package/lib/pill/index.js.map +0 -1
- package/lib/progress-bar/index.js.map +0 -1
- package/lib/radio-button/index.js.map +0 -1
- package/lib/radio-button/radio-button-registry.js.map +0 -1
- package/lib/rating/index.js.map +0 -1
- package/lib/search-field/index.js.map +0 -1
- package/lib/select/helpers/types.js.map +0 -1
- package/lib/select/index.js.map +0 -1
- package/lib/sidebar-layout/index.js.map +0 -1
- package/lib/slider/index.js.map +0 -1
- package/lib/sparkline/index.js.map +0 -1
- package/lib/swing-gauge/const.js.map +0 -1
- package/lib/swing-gauge/helpers.js.map +0 -1
- package/lib/swing-gauge/index.js.map +0 -1
- package/lib/swing-gauge/types.js.map +0 -1
- package/lib/tab/index.js.map +0 -1
- package/lib/tab-bar/helpers/animate.js.map +0 -1
- package/lib/tab-bar/index.js.map +0 -1
- package/lib/text-field/index.js.map +0 -1
- package/lib/time-picker/index.js.map +0 -1
- package/lib/toggle/index.js.map +0 -1
- package/lib/tooltip/elements/title-tooltip.js.map +0 -1
- package/lib/tooltip/elements/tooltip-element.js.map +0 -1
- package/lib/tooltip/helpers/overflow-tooltip.js.map +0 -1
- package/lib/tooltip/helpers/renderer.js.map +0 -1
- package/lib/tooltip/helpers/types.js.map +0 -1
- package/lib/tooltip/index.js.map +0 -1
- package/lib/tooltip/managers/tooltip-manager.js.map +0 -1
- package/lib/tornado-chart/elements/tornado-chart.js.map +0 -1
- package/lib/tornado-chart/elements/tornado-item.js.map +0 -1
- package/lib/tornado-chart/index.js.map +0 -1
- package/lib/tree/elements/tree-item.js.map +0 -1
- package/lib/tree/elements/tree.js.map +0 -1
- package/lib/tree/helpers/renderer.js.map +0 -1
- package/lib/tree/helpers/types.js.map +0 -1
- package/lib/tree/index.js.map +0 -1
- package/lib/tree/managers/tree-manager.js.map +0 -1
- package/lib/tree-select/helpers/types.js.map +0 -1
- package/lib/tree-select/index.js.map +0 -1
- package/lib/version.d.ts +0 -2
- package/lib/version.js +0 -2
- package/lib/version.js.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { uuid } from '@refinitiv-ui/utils';
|
|
2
|
+
const id = uuid();
|
|
3
|
+
let counter = 0;
|
|
4
|
+
/**
|
|
5
|
+
* Get a semi-unique id
|
|
6
|
+
* This is probably the fastest way to do it
|
|
7
|
+
* @returns an id
|
|
8
|
+
*/
|
|
9
|
+
const getId = () => {
|
|
10
|
+
counter += 1;
|
|
11
|
+
return `${id}${counter}`;
|
|
12
|
+
};
|
|
13
|
+
export { getId };
|
|
@@ -6,13 +6,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
var OverlayMenu_1;
|
|
8
8
|
import { html, css, customElement, property, ifDefined, WarningNotice } from '@refinitiv-ui/core';
|
|
9
|
-
import { AnimationTaskRunner, CollectionComposer
|
|
9
|
+
import { AnimationTaskRunner, CollectionComposer } from '@refinitiv-ui/utils';
|
|
10
10
|
import '../icon';
|
|
11
11
|
import '../item';
|
|
12
12
|
import { Item } from '../item';
|
|
13
13
|
import { Overlay } from '../overlay';
|
|
14
|
+
import { getId } from './helpers/uuid';
|
|
14
15
|
import { OpenedMenusManager } from './managers/menu-manager';
|
|
15
|
-
import { VERSION } from '../
|
|
16
|
+
import { VERSION } from '../';
|
|
16
17
|
/**
|
|
17
18
|
* Overlay that supports single-level and multi-level menus
|
|
18
19
|
* @fires item-trigger - Dispatched when user clicks on item
|
|
@@ -812,7 +813,7 @@ let OverlayMenu = OverlayMenu_1 = class OverlayMenu extends Overlay {
|
|
|
812
813
|
menu.transitionStyle = this.transitionStyle;
|
|
813
814
|
menu.noCancelOnOutsideClick = true;
|
|
814
815
|
menu.compact = this.compact;
|
|
815
|
-
menu.id =
|
|
816
|
+
menu.id = getId();
|
|
816
817
|
return menu;
|
|
817
818
|
}
|
|
818
819
|
/**
|
|
@@ -918,4 +919,3 @@ OverlayMenu = OverlayMenu_1 = __decorate([
|
|
|
918
919
|
})
|
|
919
920
|
], OverlayMenu);
|
|
920
921
|
export { OverlayMenu };
|
|
921
|
-
//# sourceMappingURL=index.js.map
|
package/lib/pagination/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import '../button';
|
|
|
11
11
|
import '../button-bar';
|
|
12
12
|
import '../layout';
|
|
13
13
|
import '../text-field';
|
|
14
|
-
import { VERSION } from '../
|
|
14
|
+
import { VERSION } from '../';
|
|
15
15
|
/**
|
|
16
16
|
* Used to control and navigate through multiple pages
|
|
17
17
|
* @fires page-changed - Fired when the `page` property is changed
|
|
@@ -398,4 +398,3 @@ Pagination = __decorate([
|
|
|
398
398
|
})
|
|
399
399
|
], Pagination);
|
|
400
400
|
export { Pagination };
|
|
401
|
-
//# sourceMappingURL=index.js.map
|
package/lib/panel/index.d.ts
CHANGED
package/lib/panel/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { BasicElement, html, customElement, property, css } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
/**
|
|
10
10
|
* A container for components.
|
|
11
11
|
* It provides a standard background color and padding, depends on theme.
|
|
@@ -75,4 +75,3 @@ Panel = __decorate([
|
|
|
75
75
|
})
|
|
76
76
|
], Panel);
|
|
77
77
|
export { Panel };
|
|
78
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -124,7 +124,7 @@ export declare class PasswordField extends ControlElement {
|
|
|
124
124
|
*/
|
|
125
125
|
private togglePasswordVisibility;
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
|
|
128
128
|
declare global {
|
|
129
129
|
interface HTMLElementTagNameMap {
|
|
130
130
|
'ef-password-field': PasswordField;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { ControlElement, css, customElement, html, ifDefined, property, query } from '@refinitiv-ui/core';
|
|
8
8
|
import { preload } from '../icon';
|
|
9
9
|
import '../icon';
|
|
10
|
-
import { VERSION } from '../
|
|
10
|
+
import { VERSION } from '../';
|
|
11
11
|
const hasChanged = (newVal, oldVal) => oldVal === undefined ? false : newVal !== oldVal;
|
|
12
12
|
const isIE = (/Trident/g).test(navigator.userAgent);
|
|
13
13
|
let isEyeOffPreloadRequested = false;
|
|
@@ -256,4 +256,3 @@ PasswordField = __decorate([
|
|
|
256
256
|
})
|
|
257
257
|
], PasswordField);
|
|
258
258
|
export { PasswordField };
|
|
259
|
-
//# sourceMappingURL=index.js.map
|
package/lib/pill/index.d.ts
CHANGED
package/lib/pill/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ControlElement, css, customElement, html, property, query } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
import '../icon';
|
|
10
10
|
/**
|
|
11
11
|
* A small button style component
|
|
@@ -160,4 +160,3 @@ Pill = __decorate([
|
|
|
160
160
|
})
|
|
161
161
|
], Pill);
|
|
162
162
|
export { Pill };
|
|
163
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { css, html, property, customElement, styleMap, BasicElement } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
/**
|
|
10
10
|
* Data visualisation component,
|
|
11
11
|
* showing a simple percentage bar.
|
|
@@ -157,4 +157,3 @@ ProgressBar = __decorate([
|
|
|
157
157
|
})
|
|
158
158
|
], ProgressBar);
|
|
159
159
|
export { ProgressBar };
|
|
160
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, css, customElement, property, ControlElement, query } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
import { registerOverflowTooltip } from '../tooltip';
|
|
10
10
|
import { applyRegistry, removeFromRegistry, getRadioGroup } from './radio-button-registry';
|
|
11
11
|
/**
|
|
@@ -193,4 +193,3 @@ RadioButton = __decorate([
|
|
|
193
193
|
})
|
|
194
194
|
], RadioButton);
|
|
195
195
|
export { RadioButton };
|
|
196
|
-
//# sourceMappingURL=index.js.map
|
package/lib/rating/index.d.ts
CHANGED
package/lib/rating/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { BasicElement, html, css, customElement, property, queryAll, repeat } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
/**
|
|
10
10
|
* Star visualisation component that is generally used for ranking
|
|
11
11
|
* @fires value-changed - Fired when the `value` changes.
|
|
@@ -156,4 +156,3 @@ Rating = __decorate([
|
|
|
156
156
|
})
|
|
157
157
|
], Rating);
|
|
158
158
|
export { Rating };
|
|
159
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ControlElement, css, customElement, html, ifDefined, property, query } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
import '../icon';
|
|
10
10
|
const hasChanged = (newVal, oldVal) => oldVal === undefined ? false : newVal !== oldVal;
|
|
11
11
|
const isIE = (/Trident/g).test(navigator.userAgent);
|
|
@@ -252,4 +252,3 @@ SearchField = __decorate([
|
|
|
252
252
|
})
|
|
253
253
|
], SearchField);
|
|
254
254
|
export { SearchField };
|
|
255
|
-
//# sourceMappingURL=index.js.map
|
package/lib/select/index.d.ts
CHANGED
|
@@ -372,7 +372,7 @@ export declare class Select extends ControlElement implements MultiValue {
|
|
|
372
372
|
*/
|
|
373
373
|
protected render(): TemplateResult;
|
|
374
374
|
}
|
|
375
|
-
|
|
375
|
+
|
|
376
376
|
declare global {
|
|
377
377
|
interface HTMLElementTagNameMap {
|
|
378
378
|
'ef-select': Select;
|
package/lib/select/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Item } from '../item';
|
|
|
10
10
|
import '../item';
|
|
11
11
|
import '../icon';
|
|
12
12
|
import { CollectionComposer, TimeoutTaskRunner, AnimationTaskRunner } from '@refinitiv-ui/utils';
|
|
13
|
-
import { VERSION } from '../
|
|
13
|
+
import { VERSION } from '../';
|
|
14
14
|
/**
|
|
15
15
|
* Key direction
|
|
16
16
|
*/
|
|
@@ -940,4 +940,3 @@ Select = __decorate([
|
|
|
940
940
|
})
|
|
941
941
|
], Select);
|
|
942
942
|
export { Select };
|
|
943
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -53,7 +53,7 @@ export declare class SidebarLayout extends BasicElement {
|
|
|
53
53
|
*/
|
|
54
54
|
protected updated(changedProperties: PropertyValues): void;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
declare global {
|
|
58
58
|
interface HTMLElementTagNameMap {
|
|
59
59
|
'ef-sidebar-layout': SidebarLayout;
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { BasicElement, html, css, customElement, property, ifDefined, query } from '@refinitiv-ui/core';
|
|
8
8
|
import '../layout';
|
|
9
|
-
import { VERSION } from '../
|
|
9
|
+
import { VERSION } from '../';
|
|
10
10
|
/**
|
|
11
11
|
* Provides an app layout with sidebar.
|
|
12
12
|
* There are 4 sections that can be slotted a component in.
|
|
@@ -133,4 +133,3 @@ SidebarLayout = __decorate([
|
|
|
133
133
|
})
|
|
134
134
|
], SidebarLayout);
|
|
135
135
|
export { SidebarLayout };
|
|
136
|
-
//# sourceMappingURL=index.js.map
|
package/lib/slider/index.d.ts
CHANGED
package/lib/slider/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, css, ControlElement, customElement, property, styleMap, query, WarningNotice } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
import '../number-field';
|
|
10
10
|
var SliderNameType;
|
|
11
11
|
(function (SliderNameType) {
|
|
@@ -1186,4 +1186,3 @@ Slider = __decorate([
|
|
|
1186
1186
|
})
|
|
1187
1187
|
], Slider);
|
|
1188
1188
|
export { Slider };
|
|
1189
|
-
//# sourceMappingURL=index.js.map
|
package/lib/sparkline/index.d.ts
CHANGED
package/lib/sparkline/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css, customElement, property, ResponsiveElement, html, query } from '@refinitiv-ui/core';
|
|
8
8
|
import { color } from '@refinitiv-ui/utils';
|
|
9
9
|
import '@refinitiv-ui/browser-sparkline';
|
|
10
|
-
import { VERSION } from '../
|
|
10
|
+
import { VERSION } from '../';
|
|
11
11
|
let Sparkline = class Sparkline extends ResponsiveElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -186,4 +186,3 @@ Sparkline = __decorate([
|
|
|
186
186
|
})
|
|
187
187
|
], Sparkline);
|
|
188
188
|
export { Sparkline };
|
|
189
|
-
//# sourceMappingURL=index.js.map
|
package/lib/swing-gauge/const.js
CHANGED
|
@@ -54,7 +54,7 @@ const draw = (drawData, drawCtx, drawParams) => {
|
|
|
54
54
|
ctx.lineWidth = style.strokeWidth;
|
|
55
55
|
ctx.strokeStyle = style.borderColor;
|
|
56
56
|
ctx.beginPath();
|
|
57
|
-
ctx.arc(data.width / 2, data.height, data.size * data.gaugeUpperBound
|
|
57
|
+
ctx.arc(data.width / 2, data.height, data.size * data.gaugeUpperBound, 0, 2 * Math.PI);
|
|
58
58
|
ctx.strokeStyle = style.borderColor;
|
|
59
59
|
ctx.stroke();
|
|
60
60
|
ctx.beginPath();
|
|
@@ -103,4 +103,3 @@ const helpers = {
|
|
|
103
103
|
textWidth
|
|
104
104
|
};
|
|
105
105
|
export { helpers };
|
|
106
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -72,7 +72,6 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
72
72
|
private pointPointerOffset;
|
|
73
73
|
private primaryLineRadian;
|
|
74
74
|
private secondaryLineRadian;
|
|
75
|
-
private linePointerOffsetOverflow;
|
|
76
75
|
/**
|
|
77
76
|
* Data requires to draw swing gauge
|
|
78
77
|
*/
|
|
@@ -85,7 +84,6 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
85
84
|
private size;
|
|
86
85
|
private lineLength;
|
|
87
86
|
private scale;
|
|
88
|
-
private overflowScale;
|
|
89
87
|
/**
|
|
90
88
|
* Current fill percentage
|
|
91
89
|
*/
|
|
@@ -95,6 +93,10 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
95
93
|
*/
|
|
96
94
|
private previousFillPercentage;
|
|
97
95
|
/**
|
|
96
|
+
* This for keep line number of label for calculate new radius
|
|
97
|
+
*/
|
|
98
|
+
private labelLineNumber;
|
|
99
|
+
/**
|
|
98
100
|
* Get primary percentage
|
|
99
101
|
*/
|
|
100
102
|
private get primaryPercentage();
|
|
@@ -276,7 +278,7 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
276
278
|
private get secondaryLegendTemplate();
|
|
277
279
|
render(): TemplateResult;
|
|
278
280
|
}
|
|
279
|
-
|
|
281
|
+
|
|
280
282
|
declare global {
|
|
281
283
|
interface HTMLElementTagNameMap {
|
|
282
284
|
'ef-swing-gauge': SwingGauge;
|
package/lib/swing-gauge/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ResponsiveElement, css, customElement, property, html, styleMap, query, state, WarningNotice } from '@refinitiv-ui/core';
|
|
8
|
-
import { VERSION } from '../
|
|
8
|
+
import { VERSION } from '../';
|
|
9
9
|
import '../canvas';
|
|
10
10
|
import '../label';
|
|
11
11
|
import { helpers as canvasHelper } from './helpers';
|
|
@@ -21,6 +21,8 @@ const PRIMARY_RADIAN = 1.25;
|
|
|
21
21
|
const SECONDARY_RADIAN = 1.75;
|
|
22
22
|
const LINE_POINTER_OFFSET = 0.3;
|
|
23
23
|
const POINT_POINTER_OFFSET = 0.1;
|
|
24
|
+
const DEFAULT_OFFSET = 0.05;
|
|
25
|
+
const OVERFLOW_OFFSET = 0.08;
|
|
24
26
|
// When either value is below this threshold, the label position changes
|
|
25
27
|
const GAUGE_PERCENTAGE_THRESHOLD = 30;
|
|
26
28
|
const GAUGE_LABEL_FONT_SCALE = 0.14;
|
|
@@ -76,7 +78,6 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
76
78
|
this.pointPointerOffset = POINT_POINTER_OFFSET;
|
|
77
79
|
this.primaryLineRadian = PRIMARY_RADIAN;
|
|
78
80
|
this.secondaryLineRadian = SECONDARY_RADIAN;
|
|
79
|
-
this.linePointerOffsetOverflow = LINE_POINTER_OFFSET;
|
|
80
81
|
/**
|
|
81
82
|
* Data requires to draw swing gauge
|
|
82
83
|
*/
|
|
@@ -87,9 +88,8 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
87
88
|
this.width = 0;
|
|
88
89
|
this.height = 0;
|
|
89
90
|
this.size = 0;
|
|
90
|
-
this.lineLength =
|
|
91
|
+
this.lineLength = 60;
|
|
91
92
|
this.scale = 1;
|
|
92
|
-
this.overflowScale = 0.1;
|
|
93
93
|
/**
|
|
94
94
|
* Current fill percentage
|
|
95
95
|
*/
|
|
@@ -98,6 +98,10 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
98
98
|
* Keeps previous percentage calculation to avoid re-rendering the same value
|
|
99
99
|
*/
|
|
100
100
|
this.previousFillPercentage = 0;
|
|
101
|
+
/**
|
|
102
|
+
* This for keep line number of label for calculate new radius
|
|
103
|
+
*/
|
|
104
|
+
this.labelLineNumber = 1;
|
|
101
105
|
/**
|
|
102
106
|
* Style for primary container
|
|
103
107
|
*/
|
|
@@ -394,49 +398,21 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
394
398
|
* @returns swing-gauge data
|
|
395
399
|
*/
|
|
396
400
|
getData() {
|
|
397
|
-
|
|
401
|
+
// Recalculate radius to prevent container overflow
|
|
402
|
+
const gaugeHeight = this.size * this.gaugeHeightScale;
|
|
403
|
+
const containerHeight = this.labelLineNumber * MIN_LABEL_FONT_SIZE + MIN_VALUE_FONT_SIZE;
|
|
404
|
+
if (containerHeight > gaugeHeight) {
|
|
405
|
+
// The value of 'reverseScale' increases as the value of 'scale' decreases.
|
|
406
|
+
const reverseScale = 1 - this.scale;
|
|
407
|
+
// increase the offset by 25%, this for buffer to make label have some space from bottom
|
|
408
|
+
this.linePointerOffset = (containerHeight / gaugeHeight) * reverseScale * 1.25;
|
|
409
|
+
this.primaryLineRadian = PRIMARY_RADIAN + DEFAULT_OFFSET + (OVERFLOW_OFFSET * reverseScale);
|
|
410
|
+
this.secondaryLineRadian = 3 - this.primaryLineRadian;
|
|
411
|
+
}
|
|
412
|
+
const primaryPosLine = this.getPositionStyle(Segment.PRIMARY, this.primaryLineRadian, this.linePointerOffset, 0);
|
|
398
413
|
const primaryPosPoint = this.getPositionStyle(Segment.PRIMARY, PRIMARY_RADIAN, this.pointPointerOffset, 0);
|
|
399
|
-
|
|
414
|
+
const secondaryPosLine = this.getPositionStyle(Segment.SECONDARY, this.secondaryLineRadian, this.linePointerOffset, 0);
|
|
400
415
|
const secondaryPosPoint = this.getPositionStyle(Segment.SECONDARY, SECONDARY_RADIAN, this.pointPointerOffset, 0);
|
|
401
|
-
// Recalculate radian to prevent container overflow
|
|
402
|
-
let primaryHeight = 0;
|
|
403
|
-
if (this.primaryContainer.children[0]) {
|
|
404
|
-
primaryHeight += this.primaryContainer.children[0].offsetHeight;
|
|
405
|
-
}
|
|
406
|
-
if (this.primaryContainer.children[1]) {
|
|
407
|
-
primaryHeight += this.primaryContainer.children[1].offsetHeight;
|
|
408
|
-
}
|
|
409
|
-
const primarySpace = this.height - this.getValueFromStyle(primaryPosLine.top);
|
|
410
|
-
const primaryOverflow = primarySpace < primaryHeight && this.primaryPercentage >= GAUGE_PERCENTAGE_THRESHOLD && primarySpace > 0 && primaryHeight > 0;
|
|
411
|
-
let secondaryHeight = 0;
|
|
412
|
-
if (this.secondaryContainer.children[0]) {
|
|
413
|
-
secondaryHeight += this.secondaryContainer.children[0].offsetHeight;
|
|
414
|
-
}
|
|
415
|
-
if (this.secondaryContainer.children[1]) {
|
|
416
|
-
secondaryHeight += this.secondaryContainer.children[1].offsetHeight;
|
|
417
|
-
}
|
|
418
|
-
const secondarySpace = this.height - this.getValueFromStyle(secondaryPosLine.top);
|
|
419
|
-
const secondaryOverflow = secondarySpace < secondaryHeight && this.secondaryPercentage >= GAUGE_PERCENTAGE_THRESHOLD && secondarySpace > 0 && secondaryHeight > 0;
|
|
420
|
-
if (primaryOverflow || secondaryOverflow) {
|
|
421
|
-
let containerHeight = primaryHeight;
|
|
422
|
-
let containerHeightOverflow = primarySpace;
|
|
423
|
-
let containerWidth = (this.width / 2) - this.getValueFromStyle(primaryPosLine.left);
|
|
424
|
-
if ((!primaryOverflow && secondaryOverflow)
|
|
425
|
-
|| (primaryOverflow && secondaryOverflow && secondaryHeight > primaryHeight)) {
|
|
426
|
-
containerHeight = secondaryHeight;
|
|
427
|
-
containerHeightOverflow = secondarySpace;
|
|
428
|
-
containerWidth = this.getValueFromStyle(secondaryPosLine.left) - (this.width / 2);
|
|
429
|
-
}
|
|
430
|
-
// Prevents container overflow
|
|
431
|
-
const oldRadius = Math.sqrt(Math.pow(containerHeightOverflow, 2) + Math.pow(containerWidth, 2));
|
|
432
|
-
const newRadius = Math.sqrt(Math.pow(containerHeight, 2) + Math.pow(containerWidth, 2));
|
|
433
|
-
this.linePointerOffset *= Math.pow(2, newRadius / oldRadius);
|
|
434
|
-
this.linePointerOffset = this.linePointerOffset > 4 ? 4 : this.linePointerOffset;
|
|
435
|
-
this.linePointerOffsetOverflow = this.linePointerOffset;
|
|
436
|
-
this.overflowScale = this.scale;
|
|
437
|
-
primaryPosLine = this.getPositionStyle(Segment.PRIMARY, this.primaryLineRadian, this.linePointerOffset, 0);
|
|
438
|
-
secondaryPosLine = this.getPositionStyle(Segment.SECONDARY, this.secondaryLineRadian, this.linePointerOffset, 0);
|
|
439
|
-
}
|
|
440
416
|
return {
|
|
441
417
|
width: this.width,
|
|
442
418
|
height: this.height,
|
|
@@ -528,7 +504,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
528
504
|
this.scale = bestHeight / this.canvas.height;
|
|
529
505
|
}
|
|
530
506
|
this.scale = this.scale < 0.1 ? 0.1 : this.scale;
|
|
531
|
-
this.lineLength = this.scale * lineLength
|
|
507
|
+
this.lineLength = this.scale * lineLength;
|
|
532
508
|
this.gaugeWidthScale = this.scale * GAUGE_WIDTH_SCALE;
|
|
533
509
|
this.gaugeHeightScale = this.scale * GAUGE_HEIGHT_SCALE;
|
|
534
510
|
this.gaugeUpperBound = this.scale * GAUGE_UPPER_BOUND;
|
|
@@ -538,13 +514,13 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
538
514
|
this.linePointerOffset = LINE_POINTER_OFFSET;
|
|
539
515
|
this.pointPointerOffset = POINT_POINTER_OFFSET;
|
|
540
516
|
if (this.scale < 1) {
|
|
541
|
-
|
|
517
|
+
// The value of 'reverseScale' increases as the value of 'scale' decreases.
|
|
518
|
+
// This mean when scale down the offset will grow up
|
|
519
|
+
const reverseScale = 1 - this.scale;
|
|
520
|
+
const offset = DEFAULT_OFFSET * reverseScale;
|
|
542
521
|
this.primaryLineRadian = PRIMARY_RADIAN + offset;
|
|
543
522
|
this.secondaryLineRadian = SECONDARY_RADIAN - offset;
|
|
544
523
|
this.linePointerOffset = LINE_POINTER_OFFSET + (0.4 * (1 - this.scale));
|
|
545
|
-
if (this.scale <= this.overflowScale) {
|
|
546
|
-
this.linePointerOffset = this.linePointerOffsetOverflow;
|
|
547
|
-
}
|
|
548
524
|
}
|
|
549
525
|
this.primaryLineRadian = this.primaryLineRadian > 1.3 ? 1.3 : this.primaryLineRadian;
|
|
550
526
|
this.secondaryLineRadian = this.primaryLineRadian > 1.7 ? 1.7 : this.secondaryLineRadian;
|
|
@@ -591,6 +567,9 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
591
567
|
if (numberOfLines > maxLine) {
|
|
592
568
|
numberOfLines = maxLine;
|
|
593
569
|
}
|
|
570
|
+
if (textType === TextType.LABEL) {
|
|
571
|
+
this.labelLineNumber = numberOfLines;
|
|
572
|
+
}
|
|
594
573
|
do {
|
|
595
574
|
fontSize -= 1;
|
|
596
575
|
if (fontSize < minFontSize) {
|
|
@@ -781,4 +760,3 @@ SwingGauge = __decorate([
|
|
|
781
760
|
})
|
|
782
761
|
], SwingGauge);
|
|
783
762
|
export { SwingGauge };
|
|
784
|
-
//# sourceMappingURL=index.js.map
|
package/lib/swing-gauge/types.js
CHANGED
package/lib/tab/index.d.ts
CHANGED