@refinitiv-ui/elements 5.3.4 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/accordion/index.d.ts +5 -5
- package/lib/accordion/index.js +8 -11
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/appstate-bar/index.d.ts +5 -5
- package/lib/appstate-bar/index.js +8 -11
- package/lib/autosuggest/custom-elements.json +24 -4
- package/lib/autosuggest/custom-elements.md +54 -0
- package/lib/autosuggest/helpers/types.d.ts +1 -1
- package/lib/autosuggest/helpers/utils.d.ts +2 -2
- package/lib/autosuggest/helpers/utils.js +1 -2
- package/lib/autosuggest/index.d.ts +13 -8
- package/lib/autosuggest/index.js +38 -31
- package/lib/button/custom-elements.json +2 -2
- package/lib/button/custom-elements.md +23 -0
- package/lib/button/index.d.ts +13 -13
- package/lib/button/index.js +41 -31
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/button-bar/index.d.ts +3 -3
- package/lib/button-bar/index.js +8 -10
- package/lib/calendar/constants.d.ts +22 -0
- package/lib/calendar/constants.js +23 -0
- package/lib/calendar/custom-elements.json +8 -6
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +9 -7
- package/lib/calendar/index.js +20 -38
- package/lib/calendar/locales.d.ts +1 -31
- package/lib/calendar/locales.js +0 -104
- package/lib/calendar/types.d.ts +1 -5
- package/lib/calendar/types.js +1 -6
- package/lib/calendar/utils.d.ts +31 -1
- package/lib/calendar/utils.js +104 -2
- package/lib/canvas/custom-elements.json +7 -5
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +4 -3
- package/lib/canvas/index.js +8 -10
- package/lib/card/custom-elements.json +3 -1
- package/lib/card/custom-elements.md +24 -0
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/index.d.ts +10 -8
- package/lib/card/index.js +14 -13
- package/lib/chart/custom-elements.json +1 -1
- package/lib/chart/custom-elements.md +16 -0
- package/lib/chart/helpers/index.d.ts +2 -2
- package/lib/chart/helpers/index.js +2 -2
- package/lib/chart/index.d.ts +6 -6
- package/lib/chart/index.js +12 -14
- package/lib/checkbox/custom-elements.json +4 -4
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +21 -13
- package/lib/checkbox/index.js +56 -31
- package/lib/clock/custom-elements.json +21 -4
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +17 -5
- package/lib/clock/index.js +37 -18
- package/lib/clock/themes/halo/dark/index.js +1 -1
- package/lib/clock/themes/halo/light/index.js +1 -1
- package/lib/clock/themes/solar/charcoal/index.js +1 -1
- package/lib/clock/themes/solar/pearl/index.js +1 -1
- package/lib/clock/utils/TickManager.js +2 -2
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/collapse/index.d.ts +7 -7
- package/lib/collapse/index.js +11 -13
- package/lib/color-dialog/custom-elements.json +29 -16
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/color-dialog/elements/color-palettes.d.ts +5 -5
- package/lib/color-dialog/elements/color-palettes.js +9 -13
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +5 -5
- package/lib/color-dialog/elements/grayscale-palettes.js +10 -13
- package/lib/color-dialog/elements/palettes.d.ts +10 -3
- package/lib/color-dialog/elements/palettes.js +58 -45
- package/lib/color-dialog/helpers/color-helpers.d.ts +7 -53
- package/lib/color-dialog/helpers/color-helpers.js +12 -109
- package/lib/color-dialog/helpers/value-model.d.ts +1 -1
- package/lib/color-dialog/helpers/value-model.js +18 -16
- package/lib/color-dialog/index.d.ts +19 -19
- package/lib/color-dialog/index.js +47 -45
- package/lib/combo-box/custom-elements.json +28 -16
- package/lib/combo-box/custom-elements.md +35 -0
- package/lib/combo-box/helpers/filter.d.ts +4 -4
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/index.d.ts +26 -18
- package/lib/combo-box/index.js +36 -27
- package/lib/combo-box/themes/halo/dark/index.js +1 -1
- package/lib/combo-box/themes/halo/light/index.js +1 -1
- 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/custom-elements.json +8 -4
- package/lib/counter/custom-elements.md +11 -0
- package/lib/counter/index.d.ts +5 -3
- package/lib/counter/index.js +11 -12
- package/lib/datetime-picker/custom-elements.json +52 -23
- package/lib/datetime-picker/custom-elements.md +57 -0
- package/lib/datetime-picker/index.d.ts +25 -14
- package/lib/datetime-picker/index.js +46 -35
- package/lib/datetime-picker/locales.d.ts +1 -1
- package/lib/datetime-picker/locales.js +12 -1
- package/lib/datetime-picker/themes/solar/charcoal/index.js +1 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +1 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/datetime-picker/utils.js +1 -1
- package/lib/dialog/custom-elements.json +34 -12
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/dialog/index.d.ts +17 -20
- package/lib/dialog/index.js +28 -31
- package/lib/email-field/custom-elements.json +81 -94
- package/lib/email-field/custom-elements.md +37 -0
- package/lib/email-field/index.d.ts +44 -116
- package/lib/email-field/index.js +48 -249
- package/lib/email-field/themes/solar/charcoal/index.js +1 -1
- package/lib/email-field/themes/solar/pearl/index.js +1 -1
- package/lib/events.d.ts +2 -2
- package/lib/events.js +1 -2
- package/lib/flag/custom-elements.md +10 -0
- package/lib/flag/index.d.ts +6 -4
- package/lib/flag/index.js +12 -12
- package/lib/flag/utils/FlagLoader.d.ts +1 -1
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/custom-elements.md +18 -0
- package/lib/header/index.d.ts +2 -2
- package/lib/header/index.js +5 -8
- package/lib/heatmap/custom-elements.md +26 -0
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +1 -1
- package/lib/heatmap/helpers/text.d.ts +1 -1
- package/lib/heatmap/index.d.ts +7 -7
- package/lib/heatmap/index.js +15 -16
- package/lib/icon/custom-elements.json +6 -4
- package/lib/icon/custom-elements.md +8 -0
- package/lib/icon/index.d.ts +9 -6
- package/lib/icon/index.js +28 -18
- package/lib/icon/utils/IconLoader.d.ts +6 -1
- package/lib/icon/utils/IconLoader.js +24 -17
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/interactive-chart/custom-elements.json +6 -10
- package/lib/interactive-chart/custom-elements.md +31 -0
- package/lib/interactive-chart/helpers/types.d.ts +2 -2
- package/lib/interactive-chart/index.d.ts +11 -8
- package/lib/interactive-chart/index.js +17 -17
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +18 -8
- package/lib/item/index.js +36 -16
- package/lib/label/custom-elements.md +11 -0
- package/lib/label/index.d.ts +3 -3
- package/lib/label/index.js +12 -20
- package/lib/layout/custom-elements.md +26 -0
- package/lib/layout/index.d.ts +3 -3
- package/lib/layout/index.js +6 -9
- package/lib/led-gauge/custom-elements.json +4 -4
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/led-gauge/index.d.ts +5 -4
- package/lib/led-gauge/index.js +9 -11
- package/lib/list/custom-elements.json +18 -5
- package/lib/list/custom-elements.md +32 -0
- package/lib/list/helpers/list-renderer.d.ts +2 -2
- package/lib/list/helpers/list-renderer.js +4 -2
- package/lib/list/helpers/types.d.ts +2 -2
- package/lib/list/index.d.ts +27 -10
- package/lib/list/index.js +54 -25
- package/lib/list/renderer.d.ts +2 -2
- package/lib/list/renderer.js +1 -1
- package/lib/loader/custom-elements.md +5 -0
- package/lib/loader/index.js +4 -8
- package/lib/multi-input/custom-elements.json +7 -6
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/multi-input/helpers/types.d.ts +1 -1
- package/lib/multi-input/index.d.ts +11 -7
- package/lib/multi-input/index.js +20 -17
- package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
- package/lib/multi-input/themes/solar/pearl/index.js +1 -1
- package/lib/notification/custom-elements.md +26 -0
- package/lib/notification/elements/notification-tray.d.ts +2 -2
- package/lib/notification/elements/notification-tray.js +6 -9
- package/lib/notification/elements/notification.d.ts +5 -5
- package/lib/notification/elements/notification.js +8 -11
- package/lib/notification/helpers/status.d.ts +1 -1
- package/lib/notification/helpers/status.js +1 -1
- package/lib/notification/helpers/types.d.ts +1 -1
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +2 -2
- package/lib/number-field/custom-elements.json +99 -54
- package/lib/number-field/custom-elements.md +42 -0
- package/lib/number-field/index.d.ts +96 -51
- package/lib/number-field/index.js +121 -89
- package/lib/number-field/themes/solar/charcoal/index.js +1 -1
- package/lib/number-field/themes/solar/pearl/index.js +1 -1
- package/lib/overlay/custom-elements.json +26 -13
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay/elements/overlay-backdrop.d.ts +4 -4
- package/lib/overlay/elements/overlay-backdrop.js +6 -9
- package/lib/overlay/elements/overlay-viewport.d.ts +3 -3
- package/lib/overlay/elements/overlay-viewport.js +5 -9
- package/lib/overlay/elements/overlay.d.ts +10 -5
- package/lib/overlay/elements/overlay.js +27 -28
- package/lib/overlay/index.d.ts +2 -2
- package/lib/overlay/index.js +1 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.js +2 -2
- package/lib/overlay/managers/close-manager.js +1 -1
- package/lib/overlay/managers/focus-manager.js +2 -2
- package/lib/overlay/managers/interaction-lock-manager.js +2 -2
- package/lib/overlay/managers/viewport-manager.d.ts +2 -2
- package/lib/overlay/managers/viewport-manager.js +6 -2
- package/lib/overlay/managers/zindex-manager.js +1 -1
- package/lib/overlay-menu/custom-elements.json +70 -20
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/overlay-menu/helpers/types.d.ts +3 -3
- package/lib/overlay-menu/index.d.ts +26 -19
- package/lib/overlay-menu/index.js +47 -33
- package/lib/overlay-menu/managers/menu-manager.d.ts +2 -2
- package/lib/overlay-menu/managers/menu-manager.js +3 -3
- package/lib/pagination/custom-elements.md +27 -0
- package/lib/pagination/index.d.ts +8 -8
- package/lib/pagination/index.js +13 -15
- package/lib/panel/custom-elements.md +11 -0
- package/lib/panel/index.d.ts +3 -3
- package/lib/panel/index.js +6 -9
- package/lib/password-field/custom-elements.json +62 -67
- package/lib/password-field/custom-elements.md +39 -0
- package/lib/password-field/index.d.ts +43 -94
- package/lib/password-field/index.js +52 -198
- package/lib/password-field/themes/solar/charcoal/index.js +1 -1
- package/lib/password-field/themes/solar/pearl/index.js +1 -1
- package/lib/pill/custom-elements.json +8 -6
- package/lib/pill/custom-elements.md +22 -0
- package/lib/pill/index.d.ts +5 -5
- package/lib/pill/index.js +9 -11
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/progress-bar/index.d.ts +3 -3
- package/lib/progress-bar/index.js +7 -9
- package/lib/radio-button/custom-elements.json +4 -4
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +25 -8
- package/lib/radio-button/index.js +84 -21
- package/lib/radio-button/radio-button-registry.d.ts +3 -2
- package/lib/radio-button/radio-button-registry.js +57 -4
- package/lib/rating/custom-elements.md +17 -0
- package/lib/rating/index.d.ts +3 -3
- package/lib/rating/index.js +9 -10
- package/lib/search-field/custom-elements.json +70 -74
- package/lib/search-field/custom-elements.md +41 -0
- package/lib/search-field/index.d.ts +44 -101
- package/lib/search-field/index.js +50 -220
- package/lib/search-field/themes/solar/charcoal/index.js +1 -1
- package/lib/search-field/themes/solar/pearl/index.js +1 -1
- package/lib/select/custom-elements.json +5 -4
- package/lib/select/custom-elements.md +24 -0
- package/lib/select/helpers/types.d.ts +1 -1
- package/lib/select/index.d.ts +18 -10
- package/lib/select/index.js +84 -45
- package/lib/sidebar-layout/custom-elements.json +2 -6
- package/lib/sidebar-layout/custom-elements.md +21 -0
- package/lib/sidebar-layout/index.d.ts +7 -6
- package/lib/sidebar-layout/index.js +9 -10
- package/lib/slider/custom-elements.json +4 -4
- package/lib/slider/custom-elements.md +28 -0
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.js +9 -10
- package/lib/sparkline/custom-elements.json +4 -4
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/sparkline/index.d.ts +6 -4
- package/lib/sparkline/index.js +10 -10
- package/lib/swing-gauge/custom-elements.json +5 -3
- package/lib/swing-gauge/custom-elements.md +17 -0
- package/lib/swing-gauge/helpers.d.ts +1 -1
- package/lib/swing-gauge/helpers.js +1 -1
- package/lib/swing-gauge/index.d.ts +9 -7
- package/lib/swing-gauge/index.js +17 -15
- package/lib/tab/custom-elements.json +2 -2
- package/lib/tab/custom-elements.md +22 -0
- package/lib/tab/index.d.ts +5 -5
- package/lib/tab/index.js +9 -12
- package/lib/tab/themes/solar/charcoal/index.js +1 -1
- package/lib/tab/themes/solar/pearl/index.js +1 -1
- package/lib/tab-bar/custom-elements.md +11 -0
- package/lib/tab-bar/index.d.ts +4 -4
- package/lib/tab-bar/index.js +9 -11
- package/lib/tab-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/tab-bar/themes/solar/pearl/index.js +1 -1
- package/lib/text-field/custom-elements.json +78 -89
- package/lib/text-field/custom-elements.md +35 -0
- package/lib/text-field/index.d.ts +59 -79
- package/lib/text-field/index.js +99 -158
- package/lib/text-field/themes/solar/charcoal/index.js +1 -1
- package/lib/text-field/themes/solar/pearl/index.js +1 -1
- package/lib/time-picker/custom-elements.json +4 -4
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/time-picker/index.d.ts +7 -4
- package/lib/time-picker/index.js +15 -14
- package/lib/time-picker/themes/solar/charcoal/index.js +1 -1
- package/lib/time-picker/themes/solar/pearl/index.js +1 -1
- package/lib/toggle/custom-elements.json +4 -4
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +14 -4
- package/lib/toggle/index.js +31 -12
- package/lib/tooltip/custom-elements.md +14 -0
- package/lib/tooltip/elements/title-tooltip.js +2 -2
- package/lib/tooltip/elements/tooltip-element.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.js +1 -1
- package/lib/tooltip/helpers/renderer.d.ts +1 -1
- package/lib/tooltip/helpers/types.d.ts +1 -1
- package/lib/tooltip/index.d.ts +9 -9
- package/lib/tooltip/index.js +18 -20
- package/lib/tooltip/managers/tooltip-manager.d.ts +2 -2
- package/lib/tooltip/managers/tooltip-manager.js +3 -7
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tornado-chart/elements/tornado-chart.d.ts +4 -4
- package/lib/tornado-chart/elements/tornado-chart.js +8 -11
- package/lib/tornado-chart/elements/tornado-item.d.ts +5 -5
- package/lib/tornado-chart/elements/tornado-item.js +10 -12
- package/lib/tornado-chart/index.d.ts +2 -2
- package/lib/tornado-chart/index.js +2 -2
- package/lib/tree/custom-elements.json +17 -3
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree-item.d.ts +4 -4
- package/lib/tree/elements/tree-item.js +10 -13
- package/lib/tree/elements/tree.d.ts +51 -5
- package/lib/tree/elements/tree.js +138 -11
- package/lib/tree/helpers/filter.d.ts +8 -0
- package/lib/tree/helpers/filter.js +33 -0
- package/lib/tree/helpers/renderer.d.ts +2 -2
- package/lib/tree/helpers/renderer.js +3 -3
- package/lib/tree/helpers/types.d.ts +9 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +3 -3
- package/lib/tree/managers/tree-manager.d.ts +22 -10
- package/lib/tree/managers/tree-manager.js +56 -40
- package/lib/tree/themes/halo/dark/index.js +1 -1
- package/lib/tree/themes/halo/light/index.js +1 -1
- package/lib/tree/themes/solar/charcoal/index.js +1 -1
- package/lib/tree/themes/solar/pearl/index.js +1 -1
- package/lib/tree-select/custom-elements.json +10 -6
- package/lib/tree-select/custom-elements.md +26 -0
- package/lib/tree-select/helpers/types.d.ts +2 -2
- package/lib/tree-select/index.d.ts +32 -28
- package/lib/tree-select/index.js +54 -44
- package/lib/tree-select/themes/halo/dark/index.js +1 -1
- package/lib/tree-select/themes/halo/light/index.js +1 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
- package/lib/tree-select/themes/solar/pearl/index.js +1 -1
- package/lib/version.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +298 -15
- package/lib/autosuggest/helpers/const.d.ts +0 -2
- package/lib/autosuggest/helpers/const.js +0 -3
- package/lib/overlay-menu/helpers/uuid.d.ts +0 -7
- package/lib/overlay-menu/helpers/uuid.js +0 -13
package/lib/sparkline/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import { color } from '@refinitiv-ui/utils';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, ResponsiveElement, html } 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 { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
import { color } from '@refinitiv-ui/utils/lib/color.js';
|
|
9
8
|
import '@refinitiv-ui/browser-sparkline';
|
|
10
|
-
import { VERSION } from '../';
|
|
11
9
|
let Sparkline = class Sparkline extends ResponsiveElement {
|
|
12
10
|
constructor() {
|
|
13
11
|
super(...arguments);
|
|
14
12
|
/**
|
|
15
13
|
* Chart data as an array of number.
|
|
14
|
+
* @type {number[]}
|
|
16
15
|
*/
|
|
17
16
|
this.data = [];
|
|
18
17
|
/**
|
|
19
18
|
* Chart previous data as an array of number.
|
|
19
|
+
* @type {number[]}
|
|
20
20
|
*/
|
|
21
21
|
this.previousData = [];
|
|
22
22
|
/**
|
|
@@ -133,7 +133,7 @@ let Sparkline = class Sparkline extends ResponsiveElement {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
|
-
* A `
|
|
136
|
+
* A `CSSResultGroup` that will be used
|
|
137
137
|
* to style the host, slotted children
|
|
138
138
|
* and the internal template of the element.
|
|
139
139
|
* @return CSS template
|
|
@@ -96,12 +96,14 @@
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "valueFormatter",
|
|
99
|
-
"description": "
|
|
99
|
+
"description": "Custom value formatter",
|
|
100
|
+
"type": "SwingGaugeValueFormatter",
|
|
100
101
|
"default": "\"defaultValueFormatter\""
|
|
101
102
|
},
|
|
102
103
|
{
|
|
103
|
-
"name": "canvasSize",
|
|
104
|
-
"description": "Getter size of component"
|
|
104
|
+
"name": "canvasSize (readonly)",
|
|
105
|
+
"description": "Getter size of component",
|
|
106
|
+
"type": "SwingGaugeCanvasSize"
|
|
105
107
|
}
|
|
106
108
|
]
|
|
107
109
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ef-swing-gauge
|
|
2
|
+
|
|
3
|
+
Data visualisation showing the percentage between two values
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-------------------------|--------------------|----------------------------|-------------------------|------------------------------------|
|
|
9
|
+
| `canvasSize (readonly)` | | `SwingGaugeCanvasSize` | | Getter size of component |
|
|
10
|
+
| `duration` | `duration` | `number` | 1000 | Animation duration in milliseconds |
|
|
11
|
+
| `primaryLabel` | `primary-label` | `string` | "" | Primary label |
|
|
12
|
+
| `primaryLegend` | `primary-legend` | `string` | "" | Primary value legend |
|
|
13
|
+
| `primaryValue` | `primary-value` | `number` | | Primary value |
|
|
14
|
+
| `secondaryLabel` | `secondary-label` | `string` | "" | Secondary label |
|
|
15
|
+
| `secondaryLegend` | `secondary-legend` | `string` | "" | Secondary value legend |
|
|
16
|
+
| `secondaryValue` | `secondary-value` | `number` | | Secondary value |
|
|
17
|
+
| `valueFormatter` | | `SwingGaugeValueFormatter` | "defaultValueFormatter" | Custom value formatter |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SwingGaugeCanvasSize, SwingGaugeData, SwingGaugeStyle } from './types';
|
|
1
|
+
import type { SwingGaugeCanvasSize, SwingGaugeData, SwingGaugeStyle } from './types';
|
|
2
2
|
declare const helpers: {
|
|
3
3
|
draw: (drawData: SwingGaugeData, drawCtx: CanvasRenderingContext2D, drawParams: SwingGaugeStyle) => void;
|
|
4
4
|
clear: (canvasSize: SwingGaugeCanvasSize, drawCtx: CanvasRenderingContext2D) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { ResponsiveElement,
|
|
3
|
-
import '../canvas';
|
|
4
|
-
import '../label';
|
|
5
|
-
import { SwingGaugeCanvasSize, SwingGaugeValueFormatter } from './types';
|
|
2
|
+
import { ResponsiveElement, CSSResultGroup, PropertyValues, TemplateResult } from '@refinitiv-ui/core';
|
|
3
|
+
import '../canvas/index.js';
|
|
4
|
+
import '../label/index.js';
|
|
5
|
+
import type { SwingGaugeCanvasSize, SwingGaugeValueFormatter } from './types';
|
|
6
6
|
export { SwingGaugeValueFormatter };
|
|
7
7
|
/**
|
|
8
8
|
* Data visualisation showing the percentage between two values
|
|
@@ -14,12 +14,12 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
14
14
|
*/
|
|
15
15
|
static get version(): string;
|
|
16
16
|
/**
|
|
17
|
-
* A `
|
|
17
|
+
* A `CSSResultGroup` that will be used
|
|
18
18
|
* to style the host, slotted children
|
|
19
19
|
* and the internal template of the element.
|
|
20
20
|
* @return CSS template
|
|
21
21
|
*/
|
|
22
|
-
static get styles():
|
|
22
|
+
static get styles(): CSSResultGroup;
|
|
23
23
|
private _primaryValue;
|
|
24
24
|
/**
|
|
25
25
|
* Primary value
|
|
@@ -55,7 +55,8 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
55
55
|
*/
|
|
56
56
|
secondaryLegend: string;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Custom value formatter
|
|
59
|
+
* @type {SwingGaugeValueFormatter}
|
|
59
60
|
*/
|
|
60
61
|
valueFormatter: SwingGaugeValueFormatter;
|
|
61
62
|
/**
|
|
@@ -149,6 +150,7 @@ export declare class SwingGauge extends ResponsiveElement {
|
|
|
149
150
|
private canvas;
|
|
150
151
|
/**
|
|
151
152
|
* Getter size of component
|
|
153
|
+
* @type {SwingGaugeCanvasSize}
|
|
152
154
|
* @returns return size of canvas
|
|
153
155
|
*/
|
|
154
156
|
get canvasSize(): SwingGaugeCanvasSize;
|
package/lib/swing-gauge/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import { VERSION } from '../';
|
|
9
|
-
import '../canvas';
|
|
10
|
-
import '../label';
|
|
11
|
-
import { helpers as canvasHelper } from './helpers';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ResponsiveElement, css, html, WarningNotice } 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 { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { state } from '@refinitiv-ui/core/lib/decorators/state.js';
|
|
7
|
+
import { styleMap } from '@refinitiv-ui/core/lib/directives/style-map.js';
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
|
+
import '../canvas/index.js';
|
|
10
|
+
import '../label/index.js';
|
|
11
|
+
import { helpers as canvasHelper } from './helpers.js';
|
|
12
12
|
import { DefaultStyle, Segment, TextType } from './const.js';
|
|
13
13
|
/**
|
|
14
14
|
* Constants from swing-gauge default specs
|
|
@@ -61,7 +61,8 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
61
61
|
*/
|
|
62
62
|
this.secondaryLegend = '';
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Custom value formatter
|
|
65
|
+
* @type {SwingGaugeValueFormatter}
|
|
65
66
|
*/
|
|
66
67
|
this.valueFormatter = this.defaultValueFormatter;
|
|
67
68
|
/**
|
|
@@ -127,7 +128,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
127
128
|
return VERSION;
|
|
128
129
|
}
|
|
129
130
|
/**
|
|
130
|
-
* A `
|
|
131
|
+
* A `CSSResultGroup` that will be used
|
|
131
132
|
* to style the host, slotted children
|
|
132
133
|
* and the internal template of the element.
|
|
133
134
|
* @return CSS template
|
|
@@ -192,7 +193,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
192
193
|
const oldValue = this._primaryValue;
|
|
193
194
|
if (oldValue !== value) {
|
|
194
195
|
this._primaryValue = value;
|
|
195
|
-
|
|
196
|
+
this.requestUpdate('primaryValue', oldValue);
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
get primaryValue() {
|
|
@@ -207,7 +208,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
207
208
|
const oldValue = this._secondaryValue;
|
|
208
209
|
if (oldValue !== value) {
|
|
209
210
|
this._secondaryValue = value;
|
|
210
|
-
|
|
211
|
+
this.requestUpdate('secondaryValue', oldValue);
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
214
|
get secondaryValue() {
|
|
@@ -242,6 +243,7 @@ let SwingGauge = class SwingGauge extends ResponsiveElement {
|
|
|
242
243
|
}
|
|
243
244
|
/**
|
|
244
245
|
* Getter size of component
|
|
246
|
+
* @type {SwingGaugeCanvasSize}
|
|
245
247
|
* @returns return size of canvas
|
|
246
248
|
*/
|
|
247
249
|
get canvasSize() {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"name": "disabled",
|
|
52
52
|
"description": "Set disabled state",
|
|
53
53
|
"type": "boolean",
|
|
54
|
-
"default": "
|
|
54
|
+
"default": "false"
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
57
|
"properties": [
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"attribute": "disabled",
|
|
110
110
|
"description": "Set disabled state",
|
|
111
111
|
"type": "boolean",
|
|
112
|
-
"default": "
|
|
112
|
+
"default": "false"
|
|
113
113
|
}
|
|
114
114
|
],
|
|
115
115
|
"events": [
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ef-tab
|
|
2
|
+
|
|
3
|
+
A building block for individual tab
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-----------------|-------------------|-----------|---------|---------------------------------------------|
|
|
9
|
+
| `active` | `active` | `boolean` | false | Specify tab's active status |
|
|
10
|
+
| `clears` | `clears` | `boolean` | false | Set tab to clearable |
|
|
11
|
+
| `clearsOnHover` | `clears-on-hover` | `boolean` | false | Set tab to clearable on hover |
|
|
12
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
13
|
+
| `icon` | `icon` | `string` | "" | Specify icon name to display in tab |
|
|
14
|
+
| `label` | `label` | `string` | "" | Specify tab's label text |
|
|
15
|
+
| `lineClamp` | `line-clamp` | `number` | 1 | Limit the number of lines before truncating |
|
|
16
|
+
| `subLabel` | `sub-label` | `string` | "" | Specify tab's sub-label text |
|
|
17
|
+
|
|
18
|
+
## Events
|
|
19
|
+
|
|
20
|
+
| Event | Description |
|
|
21
|
+
|---------|----------------------------------------------|
|
|
22
|
+
| `clear` | Dispatched when click on cross button occurs |
|
package/lib/tab/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { TemplateResult,
|
|
3
|
-
import '../icon';
|
|
4
|
-
import '../label';
|
|
2
|
+
import { TemplateResult, CSSResultGroup, ControlElement } from '@refinitiv-ui/core';
|
|
3
|
+
import '../icon/index.js';
|
|
4
|
+
import '../label/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* A building block for individual tab
|
|
7
7
|
* @attr {boolean} disabled - Set disabled state
|
|
@@ -74,12 +74,12 @@ export declare class Tab extends ControlElement {
|
|
|
74
74
|
*/
|
|
75
75
|
private handleClickClear;
|
|
76
76
|
/**
|
|
77
|
-
* A `
|
|
77
|
+
* A `CSSResultGroup` that will be used
|
|
78
78
|
* to style the host, slotted children
|
|
79
79
|
* and the internal template of the element.
|
|
80
80
|
* @returns CSS template
|
|
81
81
|
*/
|
|
82
|
-
static get styles():
|
|
82
|
+
static get styles(): CSSResultGroup;
|
|
83
83
|
/**
|
|
84
84
|
* Show Close Button if allow clears
|
|
85
85
|
* @returns close button template
|
package/lib/tab/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
import { VERSION } from '../';
|
|
9
|
-
import '../icon';
|
|
10
|
-
import '../label';
|
|
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';
|
|
11
8
|
const isAllWhitespaceTextNode = (node) => {
|
|
12
9
|
var _a;
|
|
13
10
|
return node.nodeType === document.TEXT_NODE
|
|
@@ -68,7 +65,7 @@ let Tab = class Tab extends ControlElement {
|
|
|
68
65
|
this.checkSlotChildren = (event) => {
|
|
69
66
|
const slot = event.target;
|
|
70
67
|
this.isSlotHasChildren = !slot.assignedNodes().filter(node => !this.isIgnorable(node)).length;
|
|
71
|
-
|
|
68
|
+
this.requestUpdate();
|
|
72
69
|
};
|
|
73
70
|
}
|
|
74
71
|
/**
|
|
@@ -105,7 +102,7 @@ let Tab = class Tab extends ControlElement {
|
|
|
105
102
|
this.dispatchEvent(new CustomEvent('clear'));
|
|
106
103
|
}
|
|
107
104
|
/**
|
|
108
|
-
* A `
|
|
105
|
+
* A `CSSResultGroup` that will be used
|
|
109
106
|
* to style the host, slotted children
|
|
110
107
|
* and the internal template of the element.
|
|
111
108
|
* @returns CSS template
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/icon/themes/solar/charcoal';
|
|
2
2
|
import '@refinitiv-ui/elements/lib/label/themes/solar/charcoal';
|
|
3
3
|
|
|
4
|
-
elf.customStyles.define('ef-tab', ':host{cursor:pointer;background-color:#
|
|
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 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/icon/themes/solar/pearl';
|
|
2
2
|
import '@refinitiv-ui/elements/lib/label/themes/solar/pearl';
|
|
3
3
|
|
|
4
|
-
elf.customStyles.define('ef-tab', ':host{cursor:pointer;background-color:#
|
|
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}');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ef-tab-bar
|
|
2
|
+
|
|
3
|
+
Container for tabs
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-------------|-------------|---------------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `alignment` | `alignment` | `"left" \| "center" \| "right"` | "left" | Specify tab's horizontal alignment |
|
|
10
|
+
| `level` | `level` | `"1" \| "2" \| "3"` | "1" | Use level styling from theme |
|
|
11
|
+
| `vertical` | `vertical` | `boolean` | false | Use to switch from horizontal to vertical layout. |
|
package/lib/tab-bar/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import { TemplateResult,
|
|
3
|
-
import '../button';
|
|
2
|
+
import { TemplateResult, CSSResultGroup, PropertyValues, ResponsiveElement, ElementSize } from '@refinitiv-ui/core';
|
|
3
|
+
import '../button/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Container for tabs
|
|
6
6
|
*/
|
|
@@ -11,12 +11,12 @@ export declare class TabBar extends ResponsiveElement {
|
|
|
11
11
|
*/
|
|
12
12
|
static get version(): string;
|
|
13
13
|
/**
|
|
14
|
-
* A `
|
|
14
|
+
* A `CSSResultGroup` that will be used
|
|
15
15
|
* to style the host, slotted children
|
|
16
16
|
* and the internal template of the element.
|
|
17
17
|
* @returns CSS template
|
|
18
18
|
*/
|
|
19
|
-
static get styles():
|
|
19
|
+
static get styles(): CSSResultGroup;
|
|
20
20
|
/**
|
|
21
21
|
* Specify tab's horizontal alignment
|
|
22
22
|
*/
|
package/lib/tab-bar/index.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import '../button';
|
|
10
|
-
import { VERSION } from '../';
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { html, css, ResponsiveElement } 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 { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
import { tweenAnimate } from './helpers/animate.js';
|
|
8
|
+
import '../button/index.js';
|
|
11
9
|
const BAR_TRAVEL_DISTANCE = 150; // scroll distance
|
|
12
10
|
/**
|
|
13
11
|
* Container for tabs
|
|
@@ -36,7 +34,7 @@ let TabBar = class TabBar extends ResponsiveElement {
|
|
|
36
34
|
return VERSION;
|
|
37
35
|
}
|
|
38
36
|
/**
|
|
39
|
-
* A `
|
|
37
|
+
* A `CSSResultGroup` that will be used
|
|
40
38
|
* to style the host, slotted children
|
|
41
39
|
* and the internal template of the element.
|
|
42
40
|
* @returns CSS template
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/tab/themes/solar/charcoal';
|
|
2
2
|
import '@refinitiv-ui/elements/lib/button/themes/solar/charcoal';
|
|
3
3
|
|
|
4
|
-
elf.customStyles.define('ef-tab-bar', ':host{position:relative;background-color:#151516}:host [part=content]{display:flex;overflow:hidden}:host [part=left-btn],:host [part=right-btn]{display:none;position:absolute;height:auto;margin:auto;z-index:2;top:0;bottom:0;background-color:#
|
|
4
|
+
elf.customStyles.define('ef-tab-bar', ':host{position:relative;background-color:#151516}:host [part=content]{display:flex;overflow:hidden}:host [part=left-btn],:host [part=right-btn]{display:none;position:absolute;height:auto;margin:auto;z-index:2;top:0;bottom:0;background-color:#3c3c42}:host [part=left-btn]:hover,:host [part=right-btn]:hover{background-color:#4a4a4f}:host [part=left-btn]:active,:host [part=right-btn]:active{background-color:#38383d}:host [part=left-btn]:focus:not([focused]),:host [part=left-btn][focused=visible],:host [part=right-btn]:focus:not([focused]),:host [part=right-btn][focused=visible]{background-color:#ffa041}:host [part=left-btn]:focus:not([focused]):not([active]):not(:hover),:host [part=left-btn][focused=visible]:not([active]):not(:hover),:host [part=right-btn]:focus:not([focused]):not([active]):not(:hover),:host [part=right-btn][focused=visible]:not([active]):not(:hover){color:#e2e2e2;background-color:#3c3c42}:host [part=left-btn]{left:0}:host [part=right-btn]{right:0}:host([vertical]){width:180px;flex-shrink:0}:host([vertical]) [part=content]{flex-direction:column}:host([vertical]) [part=content] ::slotted(ef-tab){justify-content:flex-start;border:none;border-bottom:1px solid #000}:host(:not([vertical])) [part=content] ::slotted(ef-tab:first-of-type){border-left:1px solid #000}');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/lib/tab/themes/solar/pearl';
|
|
2
2
|
import '@refinitiv-ui/elements/lib/button/themes/solar/pearl';
|
|
3
3
|
|
|
4
|
-
elf.customStyles.define('ef-tab-bar', ':host{position:relative;background-color:#c2c2c2}:host [part=content]{display:flex;overflow:hidden}:host [part=left-btn],:host [part=right-btn]{display:none;position:absolute;height:auto;margin:auto;z-index:2;top:0;bottom:0;background-color:#
|
|
4
|
+
elf.customStyles.define('ef-tab-bar', ':host{position:relative;background-color:#c2c2c2}:host [part=content]{display:flex;overflow:hidden}:host [part=left-btn],:host [part=right-btn]{display:none;position:absolute;height:auto;margin:auto;z-index:2;top:0;bottom:0;background-color:#fafbfc}:host [part=left-btn]:hover,:host [part=right-btn]:hover{background-color:#fafbfc}:host [part=left-btn]:active,:host [part=right-btn]:active{background-color:#e8e9ea}:host [part=left-btn]:focus:not([focused]),:host [part=left-btn][focused=visible],:host [part=right-btn]:focus:not([focused]),:host [part=right-btn][focused=visible]{background-color:#ffb771}:host [part=left-btn]:focus:not([focused]):not([active]):not(:hover),:host [part=left-btn][focused=visible]:not([active]):not(:hover),:host [part=right-btn]:focus:not([focused]):not([active]):not(:hover),:host [part=right-btn][focused=visible]:not([active]):not(:hover){color:#1d1d1d;background-color:#fafbfc}:host [part=left-btn]{left:0}:host [part=right-btn]{right:0}:host([vertical]){width:180px;flex-shrink:0}:host([vertical]) [part=content]{flex-direction:column}:host([vertical]) [part=content] ::slotted(ef-tab){justify-content:flex-start;border:none;border-bottom:1px solid #a9afba}:host(:not([vertical])) [part=content] ::slotted(ef-tab:first-of-type){border-left:1px solid #a9afba}');
|