@refinitiv-ui/elements 5.11.0 → 5.12.0-alpha.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/README.md +4 -4
- package/package.json +21 -290
- package/lib/accordion/index.d.ts +0 -76
- package/lib/accordion/index.js +0 -136
- package/lib/accordion/themes/halo/dark/index.js +0 -3
- package/lib/accordion/themes/halo/light/index.js +0 -3
- package/lib/accordion/themes/solar/charcoal/index.js +0 -3
- package/lib/accordion/themes/solar/pearl/index.js +0 -3
- package/lib/appstate-bar/index.d.ts +0 -65
- package/lib/appstate-bar/index.js +0 -100
- package/lib/appstate-bar/themes/halo/dark/index.js +0 -3
- package/lib/appstate-bar/themes/halo/light/index.js +0 -3
- package/lib/appstate-bar/themes/solar/charcoal/index.js +0 -3
- package/lib/appstate-bar/themes/solar/pearl/index.js +0 -3
- package/lib/autosuggest/helpers/types.d.ts +0 -54
- package/lib/autosuggest/helpers/types.js +0 -1
- package/lib/autosuggest/helpers/utils.d.ts +0 -39
- package/lib/autosuggest/helpers/utils.js +0 -75
- package/lib/autosuggest/index.d.ts +0 -538
- package/lib/autosuggest/index.js +0 -1255
- package/lib/autosuggest/themes/halo/dark/index.js +0 -5
- package/lib/autosuggest/themes/halo/light/index.js +0 -5
- package/lib/autosuggest/themes/solar/charcoal/index.js +0 -5
- package/lib/autosuggest/themes/solar/pearl/index.js +0 -5
- package/lib/button/index.d.ts +0 -132
- package/lib/button/index.js +0 -223
- package/lib/button/themes/halo/dark/index.js +0 -3
- package/lib/button/themes/halo/light/index.js +0 -3
- package/lib/button/themes/solar/charcoal/index.js +0 -3
- package/lib/button/themes/solar/pearl/index.js +0 -3
- package/lib/button-bar/index.d.ts +0 -76
- package/lib/button-bar/index.js +0 -155
- package/lib/button-bar/themes/halo/dark/index.js +0 -3
- package/lib/button-bar/themes/halo/light/index.js +0 -3
- package/lib/button-bar/themes/solar/charcoal/index.js +0 -3
- package/lib/button-bar/themes/solar/pearl/index.js +0 -3
- package/lib/calendar/constants.d.ts +0 -26
- package/lib/calendar/constants.js +0 -28
- package/lib/calendar/index.d.ts +0 -412
- package/lib/calendar/index.js +0 -1274
- package/lib/calendar/locales.d.ts +0 -1
- package/lib/calendar/locales.js +0 -41
- package/lib/calendar/themes/halo/dark/index.js +0 -3
- package/lib/calendar/themes/halo/light/index.js +0 -3
- package/lib/calendar/themes/solar/charcoal/index.js +0 -3
- package/lib/calendar/themes/solar/pearl/index.js +0 -3
- package/lib/calendar/types.d.ts +0 -32
- package/lib/calendar/types.js +0 -1
- package/lib/calendar/utils.d.ts +0 -42
- package/lib/calendar/utils.js +0 -120
- package/lib/canvas/index.d.ts +0 -101
- package/lib/canvas/index.js +0 -173
- package/lib/canvas/themes/halo/dark/index.js +0 -2
- package/lib/canvas/themes/halo/light/index.js +0 -2
- package/lib/canvas/themes/solar/charcoal/index.js +0 -2
- package/lib/canvas/themes/solar/pearl/index.js +0 -2
- package/lib/card/helpers/types.d.ts +0 -12
- package/lib/card/helpers/types.js +0 -1
- package/lib/card/index.d.ts +0 -142
- package/lib/card/index.js +0 -248
- package/lib/card/themes/halo/dark/index.js +0 -5
- package/lib/card/themes/halo/light/index.js +0 -5
- package/lib/card/themes/solar/charcoal/index.js +0 -5
- package/lib/card/themes/solar/pearl/index.js +0 -5
- package/lib/chart/helpers/index.d.ts +0 -2
- package/lib/chart/helpers/index.js +0 -2
- package/lib/chart/helpers/legend.d.ts +0 -5
- package/lib/chart/helpers/legend.js +0 -78
- package/lib/chart/helpers/merge.d.ts +0 -15
- package/lib/chart/helpers/merge.js +0 -28
- package/lib/chart/helpers/types.d.ts +0 -69
- package/lib/chart/helpers/types.js +0 -1
- package/lib/chart/index.d.ts +0 -187
- package/lib/chart/index.js +0 -491
- package/lib/chart/plugins/doughnut-center-label.d.ts +0 -3
- package/lib/chart/plugins/doughnut-center-label.js +0 -196
- package/lib/chart/themes/halo/dark/index.js +0 -4
- package/lib/chart/themes/halo/light/index.js +0 -4
- package/lib/chart/themes/solar/charcoal/index.js +0 -4
- package/lib/chart/themes/solar/pearl/index.js +0 -4
- package/lib/checkbox/index.d.ts +0 -97
- package/lib/checkbox/index.js +0 -194
- package/lib/checkbox/themes/halo/dark/index.js +0 -4
- package/lib/checkbox/themes/halo/light/index.js +0 -4
- package/lib/checkbox/themes/solar/charcoal/index.js +0 -4
- package/lib/checkbox/themes/solar/pearl/index.js +0 -4
- package/lib/clock/index.d.ts +0 -321
- package/lib/clock/index.js +0 -583
- package/lib/clock/themes/halo/dark/index.js +0 -2
- package/lib/clock/themes/halo/light/index.js +0 -2
- package/lib/clock/themes/solar/charcoal/index.js +0 -2
- package/lib/clock/themes/solar/pearl/index.js +0 -2
- package/lib/clock/utils/TickManager.d.ts +0 -14
- package/lib/clock/utils/TickManager.js +0 -66
- package/lib/clock/utils/timestamps.d.ts +0 -6
- package/lib/clock/utils/timestamps.js +0 -6
- package/lib/collapse/index.d.ts +0 -119
- package/lib/collapse/index.js +0 -197
- package/lib/collapse/themes/halo/dark/index.js +0 -5
- package/lib/collapse/themes/halo/light/index.js +0 -5
- package/lib/collapse/themes/solar/charcoal/index.js +0 -5
- package/lib/collapse/themes/solar/pearl/index.js +0 -5
- package/lib/color-dialog/elements/color-palettes.d.ts +0 -52
- package/lib/color-dialog/elements/color-palettes.js +0 -101
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +0 -67
- package/lib/color-dialog/elements/grayscale-palettes.js +0 -161
- package/lib/color-dialog/elements/palettes.d.ts +0 -65
- package/lib/color-dialog/elements/palettes.js +0 -132
- package/lib/color-dialog/helpers/color-helpers.d.ts +0 -16
- package/lib/color-dialog/helpers/color-helpers.js +0 -161
- package/lib/color-dialog/helpers/value-model.d.ts +0 -75
- package/lib/color-dialog/helpers/value-model.js +0 -141
- package/lib/color-dialog/index.d.ts +0 -232
- package/lib/color-dialog/index.js +0 -459
- package/lib/color-dialog/themes/halo/dark/index.js +0 -7
- package/lib/color-dialog/themes/halo/light/index.js +0 -7
- package/lib/color-dialog/themes/solar/charcoal/index.js +0 -7
- package/lib/color-dialog/themes/solar/pearl/index.js +0 -7
- package/lib/combo-box/helpers/filter.d.ts +0 -10
- package/lib/combo-box/helpers/filter.js +0 -29
- package/lib/combo-box/helpers/keyboard-event.d.ts +0 -17
- package/lib/combo-box/helpers/keyboard-event.js +0 -19
- package/lib/combo-box/helpers/renderer.d.ts +0 -8
- package/lib/combo-box/helpers/renderer.js +0 -24
- package/lib/combo-box/helpers/types.d.ts +0 -11
- package/lib/combo-box/helpers/types.js +0 -1
- package/lib/combo-box/index.d.ts +0 -551
- package/lib/combo-box/index.js +0 -1183
- package/lib/combo-box/themes/halo/dark/index.js +0 -7
- package/lib/combo-box/themes/halo/light/index.js +0 -7
- package/lib/combo-box/themes/solar/charcoal/index.js +0 -7
- package/lib/combo-box/themes/solar/pearl/index.js +0 -7
- package/lib/counter/index.d.ts +0 -91
- package/lib/counter/index.js +0 -154
- package/lib/counter/themes/halo/dark/index.js +0 -3
- package/lib/counter/themes/halo/light/index.js +0 -3
- package/lib/counter/themes/solar/charcoal/index.js +0 -3
- package/lib/counter/themes/solar/pearl/index.js +0 -3
- package/lib/counter/utils.d.ts +0 -13
- package/lib/counter/utils.js +0 -52
- package/lib/datetime-picker/index.d.ts +0 -509
- package/lib/datetime-picker/index.js +0 -1175
- package/lib/datetime-picker/locales.d.ts +0 -8
- package/lib/datetime-picker/locales.js +0 -57
- package/lib/datetime-picker/themes/halo/dark/index.js +0 -7
- package/lib/datetime-picker/themes/halo/light/index.js +0 -7
- package/lib/datetime-picker/themes/solar/charcoal/index.js +0 -7
- package/lib/datetime-picker/themes/solar/pearl/index.js +0 -7
- package/lib/datetime-picker/types.d.ts +0 -3
- package/lib/datetime-picker/types.js +0 -1
- package/lib/datetime-picker/utils.d.ts +0 -55
- package/lib/datetime-picker/utils.js +0 -92
- package/lib/dialog/draggable-element.d.ts +0 -14
- package/lib/dialog/draggable-element.js +0 -221
- package/lib/dialog/index.d.ts +0 -196
- package/lib/dialog/index.js +0 -328
- package/lib/dialog/themes/halo/dark/index.js +0 -7
- package/lib/dialog/themes/halo/light/index.js +0 -7
- package/lib/dialog/themes/solar/charcoal/index.js +0 -7
- package/lib/dialog/themes/solar/pearl/index.js +0 -7
- package/lib/email-field/index.d.ts +0 -80
- package/lib/email-field/index.js +0 -86
- package/lib/email-field/themes/halo/dark/index.js +0 -3
- package/lib/email-field/themes/halo/light/index.js +0 -3
- package/lib/email-field/themes/solar/charcoal/index.js +0 -3
- package/lib/email-field/themes/solar/pearl/index.js +0 -3
- package/lib/events.d.ts +0 -121
- package/lib/events.js +0 -1
- package/lib/flag/index.d.ts +0 -96
- package/lib/flag/index.js +0 -168
- package/lib/flag/themes/halo/dark/index.js +0 -2
- package/lib/flag/themes/halo/light/index.js +0 -2
- package/lib/flag/themes/solar/charcoal/index.js +0 -2
- package/lib/flag/themes/solar/pearl/index.js +0 -2
- package/lib/flag/utils/FlagLoader.d.ts +0 -47
- package/lib/flag/utils/FlagLoader.js +0 -86
- package/lib/header/index.d.ts +0 -46
- package/lib/header/index.js +0 -73
- package/lib/header/themes/halo/dark/index.js +0 -2
- package/lib/header/themes/halo/light/index.js +0 -2
- package/lib/header/themes/solar/charcoal/index.js +0 -2
- package/lib/header/themes/solar/pearl/index.js +0 -2
- package/lib/heatmap/helpers/color.d.ts +0 -30
- package/lib/heatmap/helpers/color.js +0 -68
- package/lib/heatmap/helpers/text.d.ts +0 -26
- package/lib/heatmap/helpers/text.js +0 -91
- package/lib/heatmap/helpers/track.d.ts +0 -102
- package/lib/heatmap/helpers/track.js +0 -160
- package/lib/heatmap/helpers/types.d.ts +0 -40
- package/lib/heatmap/helpers/types.js +0 -1
- package/lib/heatmap/index.d.ts +0 -453
- package/lib/heatmap/index.js +0 -1103
- package/lib/heatmap/themes/halo/dark/index.js +0 -4
- package/lib/heatmap/themes/halo/light/index.js +0 -4
- package/lib/heatmap/themes/solar/charcoal/index.js +0 -4
- package/lib/heatmap/themes/solar/pearl/index.js +0 -4
- package/lib/icon/index.d.ts +0 -90
- package/lib/icon/index.js +0 -171
- package/lib/icon/themes/halo/dark/index.js +0 -2
- package/lib/icon/themes/halo/light/index.js +0 -2
- package/lib/icon/themes/solar/charcoal/index.js +0 -2
- package/lib/icon/themes/solar/pearl/index.js +0 -2
- package/lib/icon/utils/IconLoader.d.ts +0 -52
- package/lib/icon/utils/IconLoader.js +0 -93
- package/lib/index.d.ts +0 -3
- package/lib/index.js +0 -3
- package/lib/interactive-chart/helpers/merge.d.ts +0 -15
- package/lib/interactive-chart/helpers/merge.js +0 -28
- package/lib/interactive-chart/helpers/types.d.ts +0 -45
- package/lib/interactive-chart/helpers/types.js +0 -6
- package/lib/interactive-chart/index.d.ts +0 -383
- package/lib/interactive-chart/index.js +0 -1093
- package/lib/interactive-chart/themes/halo/dark/index.js +0 -3
- package/lib/interactive-chart/themes/halo/light/index.js +0 -3
- package/lib/interactive-chart/themes/solar/charcoal/index.js +0 -3
- package/lib/interactive-chart/themes/solar/pearl/index.js +0 -3
- package/lib/item/helpers/types.d.ts +0 -57
- package/lib/item/helpers/types.js +0 -1
- package/lib/item/index.d.ts +0 -159
- package/lib/item/index.js +0 -272
- package/lib/item/themes/halo/dark/index.js +0 -4
- package/lib/item/themes/halo/light/index.js +0 -4
- package/lib/item/themes/solar/charcoal/index.js +0 -4
- package/lib/item/themes/solar/pearl/index.js +0 -4
- package/lib/label/index.d.ts +0 -102
- package/lib/label/index.js +0 -245
- package/lib/label/themes/halo/dark/index.js +0 -3
- package/lib/label/themes/halo/light/index.js +0 -3
- package/lib/label/themes/solar/charcoal/index.js +0 -3
- package/lib/label/themes/solar/pearl/index.js +0 -3
- package/lib/layout/index.d.ts +0 -107
- package/lib/layout/index.js +0 -212
- package/lib/layout/themes/halo/dark/index.js +0 -2
- package/lib/layout/themes/halo/light/index.js +0 -2
- package/lib/layout/themes/solar/charcoal/index.js +0 -2
- package/lib/layout/themes/solar/pearl/index.js +0 -2
- package/lib/led-gauge/index.d.ts +0 -144
- package/lib/led-gauge/index.js +0 -438
- package/lib/led-gauge/themes/halo/dark/index.js +0 -3
- package/lib/led-gauge/themes/halo/light/index.js +0 -3
- package/lib/led-gauge/themes/solar/charcoal/index.js +0 -3
- package/lib/led-gauge/themes/solar/pearl/index.js +0 -3
- package/lib/list/extensible-function.d.ts +0 -8
- package/lib/list/extensible-function.js +0 -13
- package/lib/list/helpers/list-renderer.d.ts +0 -9
- package/lib/list/helpers/list-renderer.js +0 -37
- package/lib/list/helpers/types.d.ts +0 -3
- package/lib/list/helpers/types.js +0 -1
- package/lib/list/index.d.ts +0 -313
- package/lib/list/index.js +0 -640
- package/lib/list/renderer.d.ts +0 -36
- package/lib/list/renderer.js +0 -9
- package/lib/list/themes/halo/dark/index.js +0 -3
- package/lib/list/themes/halo/light/index.js +0 -3
- package/lib/list/themes/solar/charcoal/index.js +0 -3
- package/lib/list/themes/solar/pearl/index.js +0 -3
- package/lib/loader/index.d.ts +0 -41
- package/lib/loader/index.js +0 -61
- package/lib/loader/themes/halo/dark/index.js +0 -2
- package/lib/loader/themes/halo/light/index.js +0 -2
- package/lib/loader/themes/solar/charcoal/index.js +0 -2
- package/lib/loader/themes/solar/pearl/index.js +0 -2
- package/lib/multi-input/helpers/types.d.ts +0 -11
- package/lib/multi-input/helpers/types.js +0 -1
- package/lib/multi-input/index.d.ts +0 -301
- package/lib/multi-input/index.js +0 -594
- package/lib/multi-input/themes/halo/dark/index.js +0 -4
- package/lib/multi-input/themes/halo/light/index.js +0 -4
- package/lib/multi-input/themes/solar/charcoal/index.js +0 -4
- package/lib/multi-input/themes/solar/pearl/index.js +0 -4
- package/lib/notification/elements/notification-tray.d.ts +0 -97
- package/lib/notification/elements/notification-tray.js +0 -167
- package/lib/notification/elements/notification.d.ts +0 -90
- package/lib/notification/elements/notification.js +0 -154
- package/lib/notification/helpers/status.d.ts +0 -30
- package/lib/notification/helpers/status.js +0 -130
- package/lib/notification/helpers/types.d.ts +0 -10
- package/lib/notification/helpers/types.js +0 -1
- package/lib/notification/index.d.ts +0 -2
- package/lib/notification/index.js +0 -2
- package/lib/notification/themes/halo/dark/index.js +0 -5
- package/lib/notification/themes/halo/light/index.js +0 -5
- package/lib/notification/themes/solar/charcoal/index.js +0 -5
- package/lib/notification/themes/solar/pearl/index.js +0 -5
- package/lib/number-field/index.d.ts +0 -339
- package/lib/number-field/index.js +0 -740
- package/lib/number-field/themes/halo/dark/index.js +0 -3
- package/lib/number-field/themes/halo/light/index.js +0 -3
- package/lib/number-field/themes/solar/charcoal/index.js +0 -3
- package/lib/number-field/themes/solar/pearl/index.js +0 -3
- package/lib/overlay/elements/overlay-backdrop.d.ts +0 -46
- package/lib/overlay/elements/overlay-backdrop.js +0 -64
- package/lib/overlay/elements/overlay-viewport.d.ts +0 -40
- package/lib/overlay/elements/overlay-viewport.js +0 -52
- package/lib/overlay/elements/overlay.d.ts +0 -408
- package/lib/overlay/elements/overlay.js +0 -1426
- package/lib/overlay/helpers/functions.d.ts +0 -13
- package/lib/overlay/helpers/functions.js +0 -16
- package/lib/overlay/helpers/types.d.ts +0 -97
- package/lib/overlay/helpers/types.js +0 -16
- package/lib/overlay/index.d.ts +0 -2
- package/lib/overlay/index.js +0 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +0 -45
- package/lib/overlay/managers/backdrop-manager.js +0 -96
- package/lib/overlay/managers/close-manager.d.ts +0 -54
- package/lib/overlay/managers/close-manager.js +0 -138
- package/lib/overlay/managers/focus-manager.d.ts +0 -71
- package/lib/overlay/managers/focus-manager.js +0 -228
- package/lib/overlay/managers/interaction-lock-manager.d.ts +0 -138
- package/lib/overlay/managers/interaction-lock-manager.js +0 -375
- package/lib/overlay/managers/viewport-manager.d.ts +0 -93
- package/lib/overlay/managers/viewport-manager.js +0 -211
- package/lib/overlay/managers/zindex-manager.d.ts +0 -80
- package/lib/overlay/managers/zindex-manager.js +0 -195
- package/lib/overlay/themes/halo/dark/index.js +0 -4
- package/lib/overlay/themes/halo/light/index.js +0 -4
- package/lib/overlay/themes/solar/charcoal/index.js +0 -4
- package/lib/overlay/themes/solar/pearl/index.js +0 -4
- package/lib/overlay-menu/helpers/types.d.ts +0 -8
- package/lib/overlay-menu/helpers/types.js +0 -1
- package/lib/overlay-menu/index.d.ts +0 -387
- package/lib/overlay-menu/index.js +0 -935
- package/lib/overlay-menu/managers/menu-manager.d.ts +0 -98
- package/lib/overlay-menu/managers/menu-manager.js +0 -240
- package/lib/overlay-menu/themes/halo/dark/index.js +0 -5
- package/lib/overlay-menu/themes/halo/light/index.js +0 -5
- package/lib/overlay-menu/themes/solar/charcoal/index.js +0 -5
- package/lib/overlay-menu/themes/solar/pearl/index.js +0 -5
- package/lib/pagination/index.d.ts +0 -275
- package/lib/pagination/index.js +0 -552
- package/lib/pagination/themes/halo/dark/index.js +0 -6
- package/lib/pagination/themes/halo/light/index.js +0 -6
- package/lib/pagination/themes/solar/charcoal/index.js +0 -6
- package/lib/pagination/themes/solar/pearl/index.js +0 -6
- package/lib/panel/index.d.ts +0 -48
- package/lib/panel/index.js +0 -74
- package/lib/panel/themes/halo/dark/index.js +0 -2
- package/lib/panel/themes/halo/light/index.js +0 -2
- package/lib/panel/themes/solar/charcoal/index.js +0 -2
- package/lib/panel/themes/solar/pearl/index.js +0 -2
- package/lib/password-field/index.d.ts +0 -89
- package/lib/password-field/index.js +0 -112
- package/lib/password-field/themes/halo/dark/index.js +0 -3
- package/lib/password-field/themes/halo/light/index.js +0 -3
- package/lib/password-field/themes/solar/charcoal/index.js +0 -3
- package/lib/password-field/themes/solar/pearl/index.js +0 -3
- package/lib/pill/index.d.ts +0 -97
- package/lib/pill/index.js +0 -160
- package/lib/pill/themes/halo/dark/index.js +0 -3
- package/lib/pill/themes/halo/light/index.js +0 -3
- package/lib/pill/themes/solar/charcoal/index.js +0 -3
- package/lib/pill/themes/solar/pearl/index.js +0 -3
- package/lib/progress-bar/index.d.ts +0 -82
- package/lib/progress-bar/index.js +0 -157
- package/lib/progress-bar/themes/halo/dark/index.js +0 -2
- package/lib/progress-bar/themes/halo/light/index.js +0 -2
- package/lib/progress-bar/themes/solar/charcoal/index.js +0 -2
- package/lib/progress-bar/themes/solar/pearl/index.js +0 -2
- package/lib/radio-button/index.d.ts +0 -123
- package/lib/radio-button/index.js +0 -261
- package/lib/radio-button/radio-button-registry.d.ts +0 -22
- package/lib/radio-button/radio-button-registry.js +0 -93
- package/lib/radio-button/themes/halo/dark/index.js +0 -3
- package/lib/radio-button/themes/halo/light/index.js +0 -3
- package/lib/radio-button/themes/solar/charcoal/index.js +0 -3
- package/lib/radio-button/themes/solar/pearl/index.js +0 -3
- package/lib/rating/index.d.ts +0 -91
- package/lib/rating/index.js +0 -157
- package/lib/rating/themes/halo/dark/index.js +0 -2
- package/lib/rating/themes/halo/light/index.js +0 -2
- package/lib/rating/themes/solar/charcoal/index.js +0 -2
- package/lib/rating/themes/solar/pearl/index.js +0 -2
- package/lib/search-field/index.d.ts +0 -77
- package/lib/search-field/index.js +0 -84
- package/lib/search-field/themes/halo/dark/index.js +0 -3
- package/lib/search-field/themes/halo/light/index.js +0 -3
- package/lib/search-field/themes/solar/charcoal/index.js +0 -3
- package/lib/search-field/themes/solar/pearl/index.js +0 -3
- package/lib/select/helpers/types.d.ts +0 -3
- package/lib/select/helpers/types.js +0 -1
- package/lib/select/index.d.ts +0 -396
- package/lib/select/index.js +0 -981
- package/lib/select/themes/halo/dark/index.js +0 -5
- package/lib/select/themes/halo/light/index.js +0 -5
- package/lib/select/themes/solar/charcoal/index.js +0 -5
- package/lib/select/themes/solar/pearl/index.js +0 -5
- package/lib/sidebar-layout/index.d.ts +0 -70
- package/lib/sidebar-layout/index.js +0 -134
- package/lib/sidebar-layout/themes/halo/dark/index.js +0 -3
- package/lib/sidebar-layout/themes/halo/light/index.js +0 -3
- package/lib/sidebar-layout/themes/solar/charcoal/index.js +0 -3
- package/lib/sidebar-layout/themes/solar/pearl/index.js +0 -3
- package/lib/slider/index.d.ts +0 -409
- package/lib/slider/index.js +0 -1187
- package/lib/slider/themes/halo/dark/index.js +0 -3
- package/lib/slider/themes/halo/light/index.js +0 -3
- package/lib/slider/themes/solar/charcoal/index.js +0 -3
- package/lib/slider/themes/solar/pearl/index.js +0 -3
- package/lib/sparkline/index.d.ts +0 -109
- package/lib/sparkline/index.js +0 -188
- package/lib/sparkline/themes/halo/dark/index.js +0 -2
- package/lib/sparkline/themes/halo/light/index.js +0 -2
- package/lib/sparkline/themes/solar/charcoal/index.js +0 -2
- package/lib/sparkline/themes/solar/pearl/index.js +0 -2
- package/lib/swing-gauge/const.d.ts +0 -22
- package/lib/swing-gauge/const.js +0 -26
- package/lib/swing-gauge/helpers.d.ts +0 -8
- package/lib/swing-gauge/helpers.js +0 -105
- package/lib/swing-gauge/index.d.ts +0 -296
- package/lib/swing-gauge/index.js +0 -764
- package/lib/swing-gauge/themes/halo/dark/index.js +0 -3
- package/lib/swing-gauge/themes/halo/light/index.js +0 -3
- package/lib/swing-gauge/themes/solar/charcoal/index.js +0 -3
- package/lib/swing-gauge/themes/solar/pearl/index.js +0 -3
- package/lib/swing-gauge/types.d.ts +0 -34
- package/lib/swing-gauge/types.js +0 -1
- package/lib/tab/index.d.ts +0 -118
- package/lib/tab/index.js +0 -208
- package/lib/tab/themes/halo/dark/index.js +0 -4
- package/lib/tab/themes/halo/light/index.js +0 -4
- package/lib/tab/themes/solar/charcoal/index.js +0 -4
- package/lib/tab/themes/solar/pearl/index.js +0 -4
- package/lib/tab-bar/helpers/animate.d.ts +0 -16
- package/lib/tab-bar/helpers/animate.js +0 -53
- package/lib/tab-bar/index.d.ts +0 -108
- package/lib/tab-bar/index.js +0 -218
- package/lib/tab-bar/themes/halo/dark/index.js +0 -4
- package/lib/tab-bar/themes/halo/light/index.js +0 -4
- package/lib/tab-bar/themes/solar/charcoal/index.js +0 -4
- package/lib/tab-bar/themes/solar/pearl/index.js +0 -4
- package/lib/text-field/index.d.ts +0 -151
- package/lib/text-field/index.js +0 -260
- package/lib/text-field/themes/halo/dark/index.js +0 -3
- package/lib/text-field/themes/halo/light/index.js +0 -3
- package/lib/text-field/themes/solar/charcoal/index.js +0 -3
- package/lib/text-field/themes/solar/pearl/index.js +0 -3
- package/lib/time-picker/index.d.ts +0 -412
- package/lib/time-picker/index.js +0 -898
- package/lib/time-picker/themes/halo/dark/index.js +0 -4
- package/lib/time-picker/themes/halo/light/index.js +0 -4
- package/lib/time-picker/themes/solar/charcoal/index.js +0 -4
- package/lib/time-picker/themes/solar/pearl/index.js +0 -4
- package/lib/toggle/index.d.ts +0 -87
- package/lib/toggle/index.js +0 -153
- package/lib/toggle/themes/halo/dark/index.js +0 -2
- package/lib/toggle/themes/halo/light/index.js +0 -2
- package/lib/toggle/themes/solar/charcoal/index.js +0 -2
- package/lib/toggle/themes/solar/pearl/index.js +0 -2
- package/lib/tooltip/elements/title-tooltip.d.ts +0 -1
- package/lib/tooltip/elements/title-tooltip.js +0 -18
- package/lib/tooltip/elements/tooltip-element.d.ts +0 -21
- package/lib/tooltip/elements/tooltip-element.js +0 -54
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +0 -9
- package/lib/tooltip/helpers/overflow-tooltip.js +0 -19
- package/lib/tooltip/helpers/renderer.d.ts +0 -8
- package/lib/tooltip/helpers/renderer.js +0 -11
- package/lib/tooltip/helpers/types.d.ts +0 -23
- package/lib/tooltip/helpers/types.js +0 -1
- package/lib/tooltip/index.d.ts +0 -232
- package/lib/tooltip/index.js +0 -477
- package/lib/tooltip/managers/tooltip-manager.d.ts +0 -15
- package/lib/tooltip/managers/tooltip-manager.js +0 -140
- package/lib/tooltip/themes/halo/dark/index.js +0 -3
- package/lib/tooltip/themes/halo/light/index.js +0 -3
- package/lib/tooltip/themes/solar/charcoal/index.js +0 -3
- package/lib/tooltip/themes/solar/pearl/index.js +0 -3
- package/lib/tornado-chart/elements/tornado-chart.d.ts +0 -78
- package/lib/tornado-chart/elements/tornado-chart.js +0 -122
- package/lib/tornado-chart/elements/tornado-item.d.ts +0 -110
- package/lib/tornado-chart/elements/tornado-item.js +0 -207
- package/lib/tornado-chart/index.d.ts +0 -2
- package/lib/tornado-chart/index.js +0 -2
- package/lib/tornado-chart/themes/halo/dark/index.js +0 -6
- package/lib/tornado-chart/themes/halo/light/index.js +0 -6
- package/lib/tornado-chart/themes/solar/charcoal/index.js +0 -6
- package/lib/tornado-chart/themes/solar/pearl/index.js +0 -6
- package/lib/tree/elements/tree-item.d.ts +0 -129
- package/lib/tree/elements/tree-item.js +0 -238
- package/lib/tree/elements/tree.d.ts +0 -203
- package/lib/tree/elements/tree.js +0 -414
- package/lib/tree/helpers/filter.d.ts +0 -8
- package/lib/tree/helpers/filter.js +0 -33
- package/lib/tree/helpers/renderer.d.ts +0 -5
- package/lib/tree/helpers/renderer.js +0 -33
- package/lib/tree/helpers/types.d.ts +0 -25
- package/lib/tree/helpers/types.js +0 -1
- package/lib/tree/index.d.ts +0 -4
- package/lib/tree/index.js +0 -3
- package/lib/tree/managers/tree-manager.d.ts +0 -248
- package/lib/tree/managers/tree-manager.js +0 -395
- package/lib/tree/themes/halo/dark/index.js +0 -7
- package/lib/tree/themes/halo/light/index.js +0 -7
- package/lib/tree/themes/solar/charcoal/index.js +0 -7
- package/lib/tree/themes/solar/pearl/index.js +0 -7
- package/lib/tree-select/helpers/types.d.ts +0 -4
- package/lib/tree-select/helpers/types.js +0 -1
- package/lib/tree-select/index.d.ts +0 -404
- package/lib/tree-select/index.js +0 -891
- package/lib/tree-select/themes/halo/dark/index.js +0 -11
- package/lib/tree-select/themes/halo/light/index.js +0 -11
- package/lib/tree-select/themes/solar/charcoal/index.js +0 -11
- package/lib/tree-select/themes/solar/pearl/index.js +0 -11
- package/lib/version.d.ts +0 -1
- package/lib/version.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/canvas/themes/halo/dark';
|
|
2
|
-
|
|
3
|
-
elf.customStyles.define('ef-swing-gauge', ':host{--primary-color:#6678FF;--secondary-color:#FFFFFF;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--secondary-color:#0D0D0D;--center-line-color:#FFFFFF;--border-color:#6678FF;--center-line:dotted}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px;border:1px solid var(--border-color,#6678ff);height:10px;width:10px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}');
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/canvas/themes/halo/light';
|
|
2
|
-
|
|
3
|
-
elf.customStyles.define('ef-swing-gauge', ':host{--primary-color:#334BFF;--secondary-color:#0D0D0D;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--secondary-color:#0D0D0D;--center-line-color:#FFFFFF;--border-color:#334BFF;--center-line:dotted}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px;height:12px;width:12px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}');
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/canvas/themes/solar/charcoal';
|
|
2
|
-
|
|
3
|
-
elf.customStyles.define('ef-swing-gauge', ':host{--primary-color:#FF9933;--secondary-color:#3780BF;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--primary-color:#2EB4C9;--secondary-color:#C93C4B;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{height:12px;width:12px;border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}');
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/canvas/themes/solar/pearl';
|
|
2
|
-
|
|
3
|
-
elf.customStyles.define('ef-swing-gauge', ':host{--primary-color:#EE7600;--secondary-color:#3780BF;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6;--primary-color:#2EB4C9;--secondary-color:#C93C4B;--border-color:#000000;--center-line:solid;--center-line-color:#000000;--center-line-opacity:0.6}:host [part=legend-container-outer]{padding-bottom:30px}:host [part=primary-legend],:host [part=secondary-legend]{margin-top:4px;align-items:center}:host [part=primary-legend-symbol],:host [part=secondary-legend-symbol]{height:12px;width:12px;border-radius:50%;margin-right:10px;align-self:baseline;margin-top:1px}:host [part=primary-legend-symbol]{background-color:var(--primary-color)}:host [part=secondary-legend-symbol]{background-color:var(--secondary-color)}:host [part=primary-value],:host [part=secondary-value]{font-weight:500}');
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare type SwingGaugeValueFormatter = (value: number, rawValue?: number) => string | number | undefined;
|
|
2
|
-
interface SwingGaugeData {
|
|
3
|
-
size: number;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
fillPercentage?: number;
|
|
7
|
-
gaugeWidthScale: number;
|
|
8
|
-
gaugeHeightScale: number;
|
|
9
|
-
gaugeUpperBound: number;
|
|
10
|
-
gaugeLowerBound: number;
|
|
11
|
-
lineLength: number;
|
|
12
|
-
offsetLeftPrimaryLine: number;
|
|
13
|
-
offsetTopPrimaryLine: number;
|
|
14
|
-
offsetLeftPrimaryPoint: number;
|
|
15
|
-
offsetTopPrimaryPoint: number;
|
|
16
|
-
offsetLeftSecondaryLine: number;
|
|
17
|
-
offsetTopSecondaryLine: number;
|
|
18
|
-
offsetLeftSecondaryPoint: number;
|
|
19
|
-
offsetTopSecondaryPoint: number;
|
|
20
|
-
}
|
|
21
|
-
interface SwingGaugeStyle {
|
|
22
|
-
strokeWidth: number;
|
|
23
|
-
primaryColor: string;
|
|
24
|
-
secondaryColor: string;
|
|
25
|
-
borderColor: string;
|
|
26
|
-
centerline: string;
|
|
27
|
-
centerlineOpacity: string;
|
|
28
|
-
centerlineColor: string;
|
|
29
|
-
}
|
|
30
|
-
interface SwingGaugeCanvasSize {
|
|
31
|
-
width: number;
|
|
32
|
-
height: number;
|
|
33
|
-
}
|
|
34
|
-
export { SwingGaugeData, SwingGaugeStyle, SwingGaugeCanvasSize, SwingGaugeValueFormatter };
|
package/lib/swing-gauge/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/tab/index.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { TemplateResult, CSSResultGroup, ControlElement } from '@refinitiv-ui/core';
|
|
3
|
-
import '../icon/index.js';
|
|
4
|
-
import '../label/index.js';
|
|
5
|
-
/**
|
|
6
|
-
* A building block for individual tab
|
|
7
|
-
* @attr {boolean} disabled - Set disabled state
|
|
8
|
-
* @prop {boolean} [disabled=false] - Set disabled state
|
|
9
|
-
*
|
|
10
|
-
* @fires clear - Dispatched when click on cross button occurs
|
|
11
|
-
*/
|
|
12
|
-
export declare class Tab extends ControlElement {
|
|
13
|
-
/**
|
|
14
|
-
* Element version number
|
|
15
|
-
* @returns version number
|
|
16
|
-
*/
|
|
17
|
-
static get version(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Specify icon name to display in tab
|
|
20
|
-
*/
|
|
21
|
-
icon: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specify tab's label text
|
|
24
|
-
*/
|
|
25
|
-
label: string;
|
|
26
|
-
/**
|
|
27
|
-
* Specify tab's sub-label text
|
|
28
|
-
*/
|
|
29
|
-
subLabel: string;
|
|
30
|
-
/**
|
|
31
|
-
* Specify tab's active status
|
|
32
|
-
*/
|
|
33
|
-
active: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Set tab to clearable
|
|
36
|
-
*/
|
|
37
|
-
clears: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Limit the number of lines before truncating
|
|
40
|
-
*/
|
|
41
|
-
lineClamp: number;
|
|
42
|
-
/**
|
|
43
|
-
* Set tab to clearable on hover
|
|
44
|
-
*/
|
|
45
|
-
clearsOnHover: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Use level styling from theme
|
|
48
|
-
* @ignore
|
|
49
|
-
*/
|
|
50
|
-
level: '1' | '2' | '3';
|
|
51
|
-
/**
|
|
52
|
-
* True, if there is slotted content
|
|
53
|
-
*/
|
|
54
|
-
private isSlotHasChildren;
|
|
55
|
-
/**
|
|
56
|
-
* @param node that should be checked
|
|
57
|
-
* @returns whether node can be ignored.
|
|
58
|
-
*/
|
|
59
|
-
private isIgnorable;
|
|
60
|
-
/**
|
|
61
|
-
* Checks slotted children nodes and updates component to refresh label and sub-label templates.
|
|
62
|
-
* @param event slotchange
|
|
63
|
-
* @returns {void}
|
|
64
|
-
*/
|
|
65
|
-
private checkSlotChildren;
|
|
66
|
-
/**
|
|
67
|
-
* Omitted lineClamp if subLabel is provided
|
|
68
|
-
* @returns line Clamp value
|
|
69
|
-
*/
|
|
70
|
-
private getLineClamp;
|
|
71
|
-
/**
|
|
72
|
-
* @param event event from close button
|
|
73
|
-
* @returns {void}
|
|
74
|
-
*/
|
|
75
|
-
private handleClickClear;
|
|
76
|
-
/**
|
|
77
|
-
* A `CSSResultGroup` that will be used
|
|
78
|
-
* to style the host, slotted children
|
|
79
|
-
* and the internal template of the element.
|
|
80
|
-
* @returns CSS template
|
|
81
|
-
*/
|
|
82
|
-
static get styles(): CSSResultGroup;
|
|
83
|
-
/**
|
|
84
|
-
* Show Close Button if allow clears
|
|
85
|
-
* @returns close button template
|
|
86
|
-
*/
|
|
87
|
-
private get CloseTemplate();
|
|
88
|
-
/**
|
|
89
|
-
* Create ef-label template when label is true
|
|
90
|
-
* @returns Label template
|
|
91
|
-
*/
|
|
92
|
-
private get LabelTemplate();
|
|
93
|
-
/**
|
|
94
|
-
* Create ef-label template when subLabel is true
|
|
95
|
-
* @returns SubLabel template
|
|
96
|
-
*/
|
|
97
|
-
private get SubLabelTemplate();
|
|
98
|
-
/**
|
|
99
|
-
* A `TemplateResult` that will be used
|
|
100
|
-
* to render the updated internal template.
|
|
101
|
-
* @return Render template
|
|
102
|
-
*/
|
|
103
|
-
protected render(): TemplateResult;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
declare global {
|
|
107
|
-
interface HTMLElementTagNameMap {
|
|
108
|
-
'ef-tab': Tab;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
namespace JSX {
|
|
112
|
-
interface IntrinsicElements {
|
|
113
|
-
'ef-tab': Partial<Tab> | JSXInterface.ControlHTMLAttributes<Tab>;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export {};
|
package/lib/tab/index.js
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { html, css, ControlElement } from '@refinitiv-ui/core';
|
|
3
|
-
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
-
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
-
import { VERSION } from '../version.js';
|
|
6
|
-
import '../icon/index.js';
|
|
7
|
-
import '../label/index.js';
|
|
8
|
-
const isAllWhitespaceTextNode = (node) => {
|
|
9
|
-
var _a;
|
|
10
|
-
return node.nodeType === document.TEXT_NODE
|
|
11
|
-
&& !((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim());
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* A building block for individual tab
|
|
15
|
-
* @attr {boolean} disabled - Set disabled state
|
|
16
|
-
* @prop {boolean} [disabled=false] - Set disabled state
|
|
17
|
-
*
|
|
18
|
-
* @fires clear - Dispatched when click on cross button occurs
|
|
19
|
-
*/
|
|
20
|
-
let Tab = class Tab extends ControlElement {
|
|
21
|
-
constructor() {
|
|
22
|
-
super(...arguments);
|
|
23
|
-
/**
|
|
24
|
-
* Specify icon name to display in tab
|
|
25
|
-
*/
|
|
26
|
-
this.icon = '';
|
|
27
|
-
/**
|
|
28
|
-
* Specify tab's label text
|
|
29
|
-
*/
|
|
30
|
-
this.label = '';
|
|
31
|
-
/**
|
|
32
|
-
* Specify tab's sub-label text
|
|
33
|
-
*/
|
|
34
|
-
this.subLabel = '';
|
|
35
|
-
/**
|
|
36
|
-
* Specify tab's active status
|
|
37
|
-
*/
|
|
38
|
-
this.active = false;
|
|
39
|
-
/**
|
|
40
|
-
* Set tab to clearable
|
|
41
|
-
*/
|
|
42
|
-
this.clears = false;
|
|
43
|
-
/**
|
|
44
|
-
* Limit the number of lines before truncating
|
|
45
|
-
*/
|
|
46
|
-
this.lineClamp = 1;
|
|
47
|
-
/**
|
|
48
|
-
* Set tab to clearable on hover
|
|
49
|
-
*/
|
|
50
|
-
this.clearsOnHover = false;
|
|
51
|
-
/**
|
|
52
|
-
* Use level styling from theme
|
|
53
|
-
* @ignore
|
|
54
|
-
*/
|
|
55
|
-
this.level = '1';
|
|
56
|
-
/**
|
|
57
|
-
* True, if there is slotted content
|
|
58
|
-
*/
|
|
59
|
-
this.isSlotHasChildren = true;
|
|
60
|
-
/**
|
|
61
|
-
* Checks slotted children nodes and updates component to refresh label and sub-label templates.
|
|
62
|
-
* @param event slotchange
|
|
63
|
-
* @returns {void}
|
|
64
|
-
*/
|
|
65
|
-
this.checkSlotChildren = (event) => {
|
|
66
|
-
const slot = event.target;
|
|
67
|
-
this.isSlotHasChildren = !slot.assignedNodes().filter(node => !this.isIgnorable(node)).length;
|
|
68
|
-
this.requestUpdate();
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Element version number
|
|
73
|
-
* @returns version number
|
|
74
|
-
*/
|
|
75
|
-
static get version() {
|
|
76
|
-
return VERSION;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @param node that should be checked
|
|
80
|
-
* @returns whether node can be ignored.
|
|
81
|
-
*/
|
|
82
|
-
isIgnorable(node) {
|
|
83
|
-
return node.nodeType === document.COMMENT_NODE
|
|
84
|
-
|| isAllWhitespaceTextNode(node);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Omitted lineClamp if subLabel is provided
|
|
88
|
-
* @returns line Clamp value
|
|
89
|
-
*/
|
|
90
|
-
getLineClamp() {
|
|
91
|
-
return !this.lineClamp ? 0 : this.subLabel ? 1 : this.lineClamp;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @param event event from close button
|
|
95
|
-
* @returns {void}
|
|
96
|
-
*/
|
|
97
|
-
handleClickClear(event) {
|
|
98
|
-
event.stopPropagation();
|
|
99
|
-
/**
|
|
100
|
-
* Fires when click on cross occurs
|
|
101
|
-
*/
|
|
102
|
-
this.dispatchEvent(new CustomEvent('clear'));
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* A `CSSResultGroup` that will be used
|
|
106
|
-
* to style the host, slotted children
|
|
107
|
-
* and the internal template of the element.
|
|
108
|
-
* @returns CSS template
|
|
109
|
-
*/
|
|
110
|
-
static get styles() {
|
|
111
|
-
return css `
|
|
112
|
-
:host {
|
|
113
|
-
display: inline-flex;
|
|
114
|
-
flex-shrink: 0;
|
|
115
|
-
}
|
|
116
|
-
`;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Show Close Button if allow clears
|
|
120
|
-
* @returns close button template
|
|
121
|
-
*/
|
|
122
|
-
get CloseTemplate() {
|
|
123
|
-
return this.clears || this.clearsOnHover ? html `
|
|
124
|
-
<div part="close-container">
|
|
125
|
-
<ef-icon part="close" icon="cross" @tap="${this.handleClickClear}"></ef-icon>
|
|
126
|
-
</div>
|
|
127
|
-
` : null;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Create ef-label template when label is true
|
|
131
|
-
* @returns Label template
|
|
132
|
-
*/
|
|
133
|
-
get LabelTemplate() {
|
|
134
|
-
if (!this.label || !this.isSlotHasChildren) {
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
|
-
return html `
|
|
138
|
-
<ef-label
|
|
139
|
-
part="label"
|
|
140
|
-
.lineClamp=${this.getLineClamp()}>
|
|
141
|
-
${this.label}
|
|
142
|
-
</ef-label>
|
|
143
|
-
`;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Create ef-label template when subLabel is true
|
|
147
|
-
* @returns SubLabel template
|
|
148
|
-
*/
|
|
149
|
-
get SubLabelTemplate() {
|
|
150
|
-
if (!this.subLabel || !this.isSlotHasChildren) {
|
|
151
|
-
return null;
|
|
152
|
-
}
|
|
153
|
-
return html `
|
|
154
|
-
<ef-label
|
|
155
|
-
part="sub-label"
|
|
156
|
-
.lineClamp=${this.getLineClamp()}>
|
|
157
|
-
${this.subLabel}
|
|
158
|
-
</ef-label>
|
|
159
|
-
`;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* A `TemplateResult` that will be used
|
|
163
|
-
* to render the updated internal template.
|
|
164
|
-
* @return Render template
|
|
165
|
-
*/
|
|
166
|
-
render() {
|
|
167
|
-
return html `
|
|
168
|
-
${this.icon ? html `<ef-icon icon=${this.icon} part="icon"></ef-icon>` : null}
|
|
169
|
-
<div part="label-container">
|
|
170
|
-
${this.LabelTemplate}
|
|
171
|
-
${this.SubLabelTemplate}
|
|
172
|
-
<slot @slotchange="${this.checkSlotChildren}">
|
|
173
|
-
</slot>
|
|
174
|
-
</div>
|
|
175
|
-
${this.CloseTemplate}
|
|
176
|
-
`;
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
__decorate([
|
|
180
|
-
property({ type: String })
|
|
181
|
-
], Tab.prototype, "icon", void 0);
|
|
182
|
-
__decorate([
|
|
183
|
-
property({ type: String })
|
|
184
|
-
], Tab.prototype, "label", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
property({ type: String, attribute: 'sub-label' })
|
|
187
|
-
], Tab.prototype, "subLabel", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
property({ type: Boolean, reflect: true })
|
|
190
|
-
], Tab.prototype, "active", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
property({ type: Boolean, reflect: true })
|
|
193
|
-
], Tab.prototype, "clears", void 0);
|
|
194
|
-
__decorate([
|
|
195
|
-
property({ type: Number, reflect: true, attribute: 'line-clamp' })
|
|
196
|
-
], Tab.prototype, "lineClamp", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
property({ type: Boolean, reflect: true, attribute: 'clears-on-hover' })
|
|
199
|
-
], Tab.prototype, "clearsOnHover", void 0);
|
|
200
|
-
__decorate([
|
|
201
|
-
property({ type: String, reflect: true })
|
|
202
|
-
], Tab.prototype, "level", void 0);
|
|
203
|
-
Tab = __decorate([
|
|
204
|
-
customElement('ef-tab', {
|
|
205
|
-
alias: 'coral-tab'
|
|
206
|
-
})
|
|
207
|
-
], Tab);
|
|
208
|
-
export { Tab };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/icon/themes/halo/dark';
|
|
2
|
-
import '@refinitiv-ui/elements/lib/label/themes/halo/dark';
|
|
3
|
-
|
|
4
|
-
elf.customStyles.define('ef-tab', ':host{cursor:pointer;background-color:#404040;color:#ccc;height:36px;padding:9px 12px;outline:0;font-size:12rem;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation}:host [part=icon]{min-width:1em;font-size:1.5em}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:46px}:host([sub-label]) [part=icon]{font-size:1.8em}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:46px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#fff}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:120ms;background:#334bff;box-shadow:-1em 0 .75em -.5em #334bff}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#4158ff}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#4158ff;box-shadow:-1em 0 .75em -.5em #4158ff}:host([active]:active){background-color:#0f1e8a}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([active][disabled]){color:rgba(255,255,255,.5);background-color:rgba(51,75,255,.5)}:host([disabled]){pointer-events:none;color:rgba(204,204,204,.5);background-color:rgba(64,64,64,.5)}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#4158ff}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#6678ff;background-color:#404040}:host(:hover){color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.8);background-color:#334bff}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#fff;background-color:#0f1e8a}:host(:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([level="1"]){border-right:1px solid #0d0d0d}:host([level="2"]:not(:last-child)){border-right:none}:host([level="2"]:not(:last-child)) [part=label-container]::after{content:\'\';position:absolute;margin:auto;width:1px;background:#404040;height:70%;right:0;top:0;bottom:0;z-index:1}:host([level="2"]:not(:active):not([active]):not(:hover)){background-color:#262626}:host([level="2"][active]:not(:active):not(:hover)){color:#6678ff;background-color:#0d0d0d}:host([level="2"][active]:focus:not([focused])),:host([level="2"][focused=visible]:not(:active):not(:hover)){color:#6678ff}:host([level="3"]){border-bottom:2px solid transparent;color:#ccc;background-color:#0d0d0d}:host([level="3"][clears-on-hover]) [part=close-container]{background:#0d0d0d;box-shadow:-1em 0 .75em -.5em #0d0d0d}:host([level="3"]:focus:not([focused])),:host([level="3"][focused=visible]){color:#fff;background-color:#262626}:host([level="3"]:active),:host([level="3"]:hover),:host([level="3"][active]){color:#fff;background-color:#0d0d0d;border-color:#334bff}:host([level="3"]:active) [part=close-container],:host([level="3"]:hover) [part=close-container],:host([level="3"][active]) [part=close-container]{background:#0d0d0d;box-shadow:-1em 0 .75em -.5em #0d0d0d}:host([level="3"]:active) [part=close],:host([level="3"]:hover) [part=close],:host([level="3"][active]) [part=close]{color:#fff}:host([level="3"]:active){border-color:#0f1e8a}');
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/icon/themes/halo/light';
|
|
2
|
-
import '@refinitiv-ui/elements/lib/label/themes/halo/light';
|
|
3
|
-
|
|
4
|
-
elf.customStyles.define('ef-tab', ':host{cursor:pointer;background-color:#e6e6e6;color:#0d0d0d;height:36px;padding:9px 12px;outline:0;font-size:12rem;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation}:host [part=icon]{min-width:1em;font-size:1.5em}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:46px}:host([sub-label]) [part=icon]{font-size:1.8em}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:46px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#fff}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:120ms;background:#334bff;box-shadow:-1em 0 .75em -.5em #334bff}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#4158ff}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#4158ff;box-shadow:-1em 0 .75em -.5em #4158ff}:host([active]:active){background-color:#0f1e8a}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([active][disabled]){color:rgba(255,255,255,.5);background-color:rgba(51,75,255,.5)}:host([disabled]){pointer-events:none;color:rgba(13,13,13,.5);background-color:rgba(230,230,230,.5)}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#4158ff}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#6678ff;background-color:#e6e6e6}:host(:hover){color:#fff;box-shadow:0 0 0 0 rgba(0,0,0,.55);background-color:#334bff}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#fff;background-color:#0f1e8a}:host(:active[clears-on-hover]) [part=close-container]{background-color:#0f1e8a;box-shadow:-1em 0 .75em -.5em #0f1e8a}:host([level="1"]){border-right:1px solid #fff}:host([level="2"]:not(:last-child)){border-right:none}:host([level="2"]:not(:last-child)) [part=label-container]::after{content:\'\';position:absolute;margin:auto;width:1px;background:#d9d9d9;height:70%;right:0;top:0;bottom:0;z-index:1}:host([level="2"]:not(:active):not([active]):not(:hover)){background-color:#f2f2f2}:host([level="2"][active]:not(:active):not(:hover)){color:#334bff;background-color:#fff}:host([level="2"][active]:focus:not([focused])),:host([level="2"][focused=visible]:not(:active):not(:hover)){color:#6678ff}:host([level="3"]){border-bottom:2px solid transparent;color:#404040;background-color:#fff}:host([level="3"][clears-on-hover]) [part=close-container]{background:#fff;box-shadow:-1em 0 .75em -.5em #fff}:host([level="3"]:focus:not([focused])),:host([level="3"][focused=visible]){color:#0d0d0d;background-color:#f2f2f2}:host([level="3"]:active),:host([level="3"]:hover),:host([level="3"][active]){color:#0d0d0d;background-color:#fff;border-color:#334bff}:host([level="3"]:active) [part=close-container],:host([level="3"]:hover) [part=close-container],:host([level="3"][active]) [part=close-container]{background:#fff;box-shadow:-1em 0 .75em -.5em #fff}:host([level="3"]:active) [part=close],:host([level="3"]:hover) [part=close],:host([level="3"][active]) [part=close]{color:#0d0d0d}:host([level="3"]:active){border-color:#0f1e8a}');
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/icon/themes/solar/charcoal';
|
|
2
|
-
import '@refinitiv-ui/elements/lib/label/themes/solar/charcoal';
|
|
3
|
-
|
|
4
|
-
elf.customStyles.define('ef-tab', ':host{cursor:pointer;background-color:#3c3c42;color:#c2c2c2;height:23px;padding:7px 15px;outline:0;font-size:13rem;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid #000;border-left:none}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:33px}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:33px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#e2e2e2}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:70ms;background:#4a4a4f;box-shadow:-1em 0 .75em -.5em #4a4a4f}:host([active]){color:#0a0a0a;background-color:#f93}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#ffa041;box-shadow:-1em 0 .75em -.5em #ffa041}:host([active]:active){background-color:#ed8e2f}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#ed8e2f;box-shadow:-1em 0 .75em -.5em #ed8e2f}:host([active][disabled]){background-color:#ffad5c;color:rgba(10,10,10,.7)}:host([disabled]){pointer-events:none;color:#c2c2c2;background-color:#636368}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#ffa041}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#e2e2e2;background-color:#3c3c42}:host(:hover){color:#e2e2e2;box-shadow:0 0 0 0 rgba(0,0,0,.9);background-color:#4a4a4f}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#c2c2c2;background-color:#38383d}:host(:active[clears-on-hover]) [part=close-container]{background-color:#38383d;box-shadow:-1em 0 .75em -.5em #38383d}:host [part=icon]{min-width:1em;font-size:1em}:host([sub-label]) [part=icon]{font-size:1.2em}:host([active]:hover){color:#0a0a0a;background-color:#ffb366}');
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import '@refinitiv-ui/elements/lib/icon/themes/solar/pearl';
|
|
2
|
-
import '@refinitiv-ui/elements/lib/label/themes/solar/pearl';
|
|
3
|
-
|
|
4
|
-
elf.customStyles.define('ef-tab', ':host{cursor:pointer;background-color:#fafbfc;color:#505050;height:23px;padding:7px 15px;outline:0;font-size:13rem;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;justify-content:center;touch-action:manipulation;border:1px solid #a9afba;border-left:none}:host [part=label-container]{display:flex;align-items:flex-start;flex-direction:column;width:100%;min-width:0}:host(:not([sub-label])) [part=label-container]{align-items:center}:host([icon]) [part=label-container]{padding-left:.3em}:host [part=sub-label]{font-weight:400;font-size:.875em}:host(:not([active]):not(:active):not(:hover)) [part=sub-label]{opacity:.7}:host([sub-label]){height:33px}:host([sub-label]) [part=close]{font-size:1.25em}:host([sub-label][clears]){padding-right:2.5em}:host([line-clamp="2"]),:host([line-clamp="3"]){height:33px}:host([icon][sub-label]) [part=label-container]{padding-left:.5em}:host([clears]){padding-right:2em}:host [part=close-container]{position:absolute;top:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center}:host [part=close]{margin-right:.5em;min-width:1em;font-size:1em}:host([clears-on-hover]) [part=close]{color:#1d1d1d}:host([clears-on-hover]) [part=close-container]{width:2em;opacity:0;transition:70ms;background:#fafbfc;box-shadow:-1em 0 .75em -.5em #fafbfc}:host([active]){color:#505050;background-color:#ffb266}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#ffb771;box-shadow:-1em 0 .75em -.5em #ffb771}:host([active]:active){background-color:#eda65f}:host([active]:active[clears-on-hover]) [part=close-container]{background-color:#eda65f;box-shadow:-1em 0 .75em -.5em #eda65f}:host([active][disabled]){color:#a8896a;background-color:#ffc185}:host([disabled]){pointer-events:none;color:#505050;background-color:#fbfcfd}:host(:focus:not([focused])),:host([focused=visible]){box-shadow:none;background-color:#ffb771}:host(:focus:not([focused]):not([active]):not(:hover)),:host([focused=visible]:not([active]):not(:hover)){color:#1d1d1d;background-color:#fafbfc}:host(:hover){color:#1d1d1d;box-shadow:0 0 0 0 rgba(0,0,0,.6);background-color:#fafbfc}:host(:hover[clears-on-hover]) [part=close-container]{opacity:1}:host(:active){color:#505050;background-color:#e8e9ea}:host(:active[clears-on-hover]) [part=close-container]{background-color:#e8e9ea;box-shadow:-1em 0 .75em -.5em #e8e9ea}:host [part=icon]{min-width:1em;font-size:1em}:host([sub-label]) [part=icon]{font-size:1.2em}:host([active]:hover){color:#505050;background-color:#fc9}');
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface Configs {
|
|
2
|
-
target: HTMLElement;
|
|
3
|
-
startPosition: number;
|
|
4
|
-
endPosition: number;
|
|
5
|
-
duration?: number;
|
|
6
|
-
easing?: string;
|
|
7
|
-
complete?: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const ANIMATION_DURATION = 100;
|
|
10
|
-
/**
|
|
11
|
-
* Common easing equations from https://easings.net
|
|
12
|
-
* @param configs animate config
|
|
13
|
-
* @returns {void}
|
|
14
|
-
*/
|
|
15
|
-
declare const tweenAnimate: (configs: Configs) => void;
|
|
16
|
-
export { tweenAnimate, ANIMATION_DURATION };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
var Easings;
|
|
2
|
-
(function (Easings) {
|
|
3
|
-
Easings["EaseOutQuad"] = "easeOutQuad";
|
|
4
|
-
})(Easings || (Easings = {}));
|
|
5
|
-
const ANIMATION_DURATION = 100; // specifies the length of time an animation should take to complete
|
|
6
|
-
const DEFAULT_EASING = Easings.EaseOutQuad;
|
|
7
|
-
/**
|
|
8
|
-
* Common easing equations from https://easings.net
|
|
9
|
-
* @param name type of easing
|
|
10
|
-
* @returns easing function
|
|
11
|
-
*/
|
|
12
|
-
const functionEasings = {
|
|
13
|
-
/**
|
|
14
|
-
* Decelerating to zero velocity
|
|
15
|
-
* @param time current time or position
|
|
16
|
-
* @returns easing value
|
|
17
|
-
*/
|
|
18
|
-
easeOutQuad: (time) => {
|
|
19
|
-
return time * (2 - time);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Common easing equations from https://easings.net
|
|
24
|
-
* @param configs animate config
|
|
25
|
-
* @returns {void}
|
|
26
|
-
*/
|
|
27
|
-
const tweenAnimate = (configs) => {
|
|
28
|
-
let animate;
|
|
29
|
-
const { target, startPosition, endPosition, duration = ANIMATION_DURATION, easing = DEFAULT_EASING, complete } = configs;
|
|
30
|
-
if (!target) {
|
|
31
|
-
throw new TypeError('No target argument passed');
|
|
32
|
-
}
|
|
33
|
-
const startTime = 'now' in window.performance ? performance.now() : new Date().getTime();
|
|
34
|
-
const delta = endPosition - startPosition;
|
|
35
|
-
const tweenLoop = () => {
|
|
36
|
-
const currentTime = 'now' in window.performance ? performance.now() : new Date().getTime();
|
|
37
|
-
const step = Math.min(1, ((currentTime - startTime) / duration));
|
|
38
|
-
const factor = functionEasings[easing](step); // factor can be a decimal
|
|
39
|
-
configs.target.scrollLeft = startPosition + delta * factor;
|
|
40
|
-
if (step < 1 && configs.target.scrollLeft !== endPosition) {
|
|
41
|
-
animate = requestAnimationFrame(tweenLoop);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
cancelAnimationFrame(animate);
|
|
45
|
-
if (typeof complete === 'function') {
|
|
46
|
-
complete();
|
|
47
|
-
}
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
tweenLoop();
|
|
52
|
-
};
|
|
53
|
-
export { tweenAnimate, ANIMATION_DURATION };
|
package/lib/tab-bar/index.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { TemplateResult, CSSResultGroup, PropertyValues, ResponsiveElement, ElementSize } from '@refinitiv-ui/core';
|
|
3
|
-
import '../button/index.js';
|
|
4
|
-
/**
|
|
5
|
-
* Container for tabs
|
|
6
|
-
*/
|
|
7
|
-
export declare class TabBar extends ResponsiveElement {
|
|
8
|
-
/**
|
|
9
|
-
* Element version number
|
|
10
|
-
* @returns version number
|
|
11
|
-
*/
|
|
12
|
-
static get version(): string;
|
|
13
|
-
/**
|
|
14
|
-
* A `CSSResultGroup` that will be used
|
|
15
|
-
* to style the host, slotted children
|
|
16
|
-
* and the internal template of the element.
|
|
17
|
-
* @returns CSS template
|
|
18
|
-
*/
|
|
19
|
-
static get styles(): CSSResultGroup;
|
|
20
|
-
/**
|
|
21
|
-
* Specify tab's horizontal alignment
|
|
22
|
-
*/
|
|
23
|
-
alignment: 'left' | 'center' | 'right';
|
|
24
|
-
/**
|
|
25
|
-
* Use level styling from theme
|
|
26
|
-
*/
|
|
27
|
-
level: '1' | '2' | '3';
|
|
28
|
-
/**
|
|
29
|
-
* Use to switch from horizontal to vertical layout.
|
|
30
|
-
*/
|
|
31
|
-
vertical: boolean;
|
|
32
|
-
private content;
|
|
33
|
-
private leftBtn;
|
|
34
|
-
private rightBtn;
|
|
35
|
-
private isScrolling;
|
|
36
|
-
/**
|
|
37
|
-
* Called after the element’s DOM has been updated the first time.
|
|
38
|
-
* register scroll event on content element to toggle scroll button
|
|
39
|
-
* @param changedProperties Properties that has changed
|
|
40
|
-
* @returns {void}
|
|
41
|
-
*/
|
|
42
|
-
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
43
|
-
/**
|
|
44
|
-
* Called when the element’s DOM has been updated and rendered
|
|
45
|
-
* @param changedProperties Properties that has changed
|
|
46
|
-
* @returns {void}
|
|
47
|
-
*/
|
|
48
|
-
protected updated(changedProperties: PropertyValues): void;
|
|
49
|
-
/**
|
|
50
|
-
* private method but can't override
|
|
51
|
-
* access modifiers in typescript.
|
|
52
|
-
* @ignore
|
|
53
|
-
* @param size element dimensions
|
|
54
|
-
* @returns {void}
|
|
55
|
-
*/
|
|
56
|
-
resizedCallback(size: ElementSize): void;
|
|
57
|
-
/**
|
|
58
|
-
* Hide all scroll buttons
|
|
59
|
-
* @returns {void}
|
|
60
|
-
*/
|
|
61
|
-
private hideScrollButtons;
|
|
62
|
-
/**
|
|
63
|
-
* Hide/Show scroll button when element is overflow.
|
|
64
|
-
* @param elementWidth width of element
|
|
65
|
-
* @returns {void}
|
|
66
|
-
*/
|
|
67
|
-
private toggleScrollButton;
|
|
68
|
-
/**
|
|
69
|
-
* Set tab level attribute accordingly
|
|
70
|
-
* @returns {void}
|
|
71
|
-
*/
|
|
72
|
-
private setLevel;
|
|
73
|
-
/**
|
|
74
|
-
* Detects when slot changes
|
|
75
|
-
* @returns {void}
|
|
76
|
-
*/
|
|
77
|
-
private onSlotChange;
|
|
78
|
-
/**
|
|
79
|
-
* Update scroll position when clicked on left button
|
|
80
|
-
* @returns {void}
|
|
81
|
-
*/
|
|
82
|
-
private handleScrollLeft;
|
|
83
|
-
/**
|
|
84
|
-
* Update scroll position when clicked on right button
|
|
85
|
-
* @returns {void}
|
|
86
|
-
*/
|
|
87
|
-
private handleScrollRight;
|
|
88
|
-
/**
|
|
89
|
-
* A `TemplateResult` that will be used
|
|
90
|
-
* to render the updated internal template.
|
|
91
|
-
* @return Render template
|
|
92
|
-
*/
|
|
93
|
-
protected render(): TemplateResult;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare global {
|
|
97
|
-
interface HTMLElementTagNameMap {
|
|
98
|
-
'ef-tab-bar': TabBar;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
namespace JSX {
|
|
102
|
-
interface IntrinsicElements {
|
|
103
|
-
'ef-tab-bar': Partial<TabBar> | JSXInterface.HTMLAttributes<TabBar>;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export {};
|