@refinitiv-ui/elements 6.5.3 → 6.6.1
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 +30 -0
- package/lib/accordion/index.js +1 -3
- package/lib/appstate-bar/custom-elements.json +2 -2
- package/lib/appstate-bar/custom-elements.md +4 -4
- package/lib/appstate-bar/index.d.ts +2 -2
- package/lib/appstate-bar/index.js +3 -11
- package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
- package/lib/appstate-bar/themes/halo/light/index.js +1 -1
- package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
- package/lib/autosuggest/custom-elements.json +8 -8
- package/lib/autosuggest/custom-elements.md +8 -8
- package/lib/autosuggest/helpers/types.d.ts +18 -18
- package/lib/autosuggest/index.d.ts +8 -8
- package/lib/autosuggest/index.js +79 -81
- package/lib/button/custom-elements.json +1 -1
- package/lib/button/custom-elements.md +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/button/index.js +2 -4
- package/lib/button/themes/halo/dark/index.js +2 -1
- package/lib/button/themes/halo/light/index.js +2 -1
- package/lib/button/themes/solar/charcoal/index.js +2 -1
- package/lib/button/themes/solar/pearl/index.js +2 -1
- package/lib/button-bar/index.js +1 -3
- package/lib/calendar/custom-elements.json +2 -2
- package/lib/calendar/custom-elements.md +4 -4
- package/lib/calendar/index.d.ts +2 -2
- package/lib/calendar/index.js +3 -5
- package/lib/calendar/themes/halo/dark/index.js +1 -1
- package/lib/calendar/themes/halo/light/index.js +1 -1
- package/lib/calendar/themes/solar/charcoal/index.js +1 -1
- package/lib/calendar/themes/solar/pearl/index.js +1 -1
- package/lib/calendar/types.d.ts +5 -5
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/canvas/custom-elements.json +1 -1
- package/lib/canvas/custom-elements.md +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +9 -11
- package/lib/card/custom-elements.json +1 -1
- package/lib/card/custom-elements.md +3 -3
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -4
- package/lib/chart/custom-elements.json +4 -0
- package/lib/chart/custom-elements.md +1 -0
- package/lib/chart/helpers/merge.d.ts +2 -2
- package/lib/chart/helpers/types.d.ts +4 -4
- package/lib/chart/index.d.ts +1 -1
- package/lib/chart/index.js +1 -3
- package/lib/chart/themes/halo/dark/index.js +1 -1
- package/lib/chart/themes/halo/light/index.js +1 -1
- package/lib/chart/themes/solar/charcoal/index.js +1 -1
- package/lib/chart/themes/solar/pearl/index.js +1 -1
- package/lib/checkbox/custom-elements.json +1 -1
- package/lib/checkbox/custom-elements.md +3 -3
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +2 -4
- package/lib/clock/custom-elements.json +2 -2
- package/lib/clock/custom-elements.md +2 -2
- package/lib/clock/index.d.ts +2 -2
- package/lib/clock/index.js +3 -5
- package/lib/clock/utils/TickManager.d.ts +1 -1
- package/lib/collapse/custom-elements.json +1 -1
- package/lib/collapse/custom-elements.md +3 -3
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +2 -4
- package/lib/color-dialog/custom-elements.json +2 -2
- package/lib/color-dialog/custom-elements.md +4 -4
- package/lib/color-dialog/helpers/value-model.js +3 -1
- package/lib/color-dialog/index.d.ts +2 -2
- package/lib/color-dialog/index.js +3 -5
- package/lib/color-picker/custom-elements.json +1 -1
- package/lib/color-picker/custom-elements.md +3 -3
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/index.js +2 -4
- package/lib/combo-box/custom-elements.json +3 -6
- package/lib/combo-box/custom-elements.md +5 -6
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/index.d.ts +3 -12
- package/lib/combo-box/index.js +7 -20
- package/lib/combo-box/themes/halo/dark/index.js +2 -1
- package/lib/combo-box/themes/halo/light/index.js +2 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +2 -1
- package/lib/combo-box/themes/solar/pearl/index.js +2 -1
- package/lib/counter/index.js +1 -3
- package/lib/counter/themes/halo/dark/index.js +2 -1
- package/lib/counter/themes/halo/light/index.js +2 -1
- package/lib/counter/themes/solar/charcoal/index.js +2 -1
- package/lib/counter/themes/solar/pearl/index.js +2 -1
- package/lib/datetime-field/types.d.ts +3 -3
- package/lib/datetime-picker/custom-elements.json +4 -4
- package/lib/datetime-picker/custom-elements.md +4 -4
- package/lib/datetime-picker/index.d.ts +4 -4
- package/lib/datetime-picker/index.js +5 -7
- package/lib/datetime-picker/themes/halo/dark/index.js +2 -1
- package/lib/datetime-picker/themes/halo/light/index.js +2 -1
- package/lib/datetime-picker/themes/solar/charcoal/index.js +2 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +2 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/dialog/custom-elements.json +1 -1
- package/lib/dialog/custom-elements.md +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +2 -4
- package/lib/email-field/custom-elements.json +3 -3
- package/lib/email-field/custom-elements.md +5 -5
- package/lib/email-field/index.d.ts +3 -3
- package/lib/email-field/index.js +4 -6
- package/lib/email-field/themes/halo/dark/index.js +2 -1
- package/lib/email-field/themes/halo/light/index.js +2 -1
- package/lib/email-field/themes/solar/charcoal/index.js +2 -1
- package/lib/email-field/themes/solar/pearl/index.js +2 -1
- package/lib/events.d.ts +13 -13
- package/lib/flag/index.js +1 -3
- package/lib/header/index.js +1 -3
- package/lib/header/themes/halo/dark/index.js +1 -1
- package/lib/header/themes/halo/light/index.js +1 -1
- package/lib/header/themes/solar/charcoal/index.js +1 -1
- package/lib/header/themes/solar/pearl/index.js +1 -1
- package/lib/heatmap/helpers/types.d.ts +7 -7
- package/lib/heatmap/index.js +118 -120
- package/lib/icon/index.js +1 -3
- package/lib/interactive-chart/custom-elements.json +1 -1
- package/lib/interactive-chart/custom-elements.md +3 -3
- package/lib/interactive-chart/helpers/merge.d.ts +2 -2
- package/lib/interactive-chart/helpers/types.d.ts +7 -7
- package/lib/interactive-chart/index.d.ts +1 -1
- package/lib/interactive-chart/index.js +2 -4
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +2 -2
- package/lib/item/helpers/types.d.ts +2 -2
- package/lib/item/index.d.ts +2 -1
- package/lib/item/index.js +3 -4
- package/lib/label/index.js +1 -3
- package/lib/layout/index.js +1 -3
- package/lib/led-gauge/index.js +8 -10
- package/lib/list/custom-elements.json +1 -1
- package/lib/list/custom-elements.md +3 -3
- package/lib/list/elements/list.d.ts +1 -1
- package/lib/list/elements/list.js +5 -8
- package/lib/list/helpers/renderer.d.ts +0 -4
- package/lib/list/helpers/renderer.js +5 -5
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/loader/index.js +1 -3
- package/lib/multi-input/custom-elements.json +5 -5
- package/lib/multi-input/custom-elements.md +5 -5
- package/lib/multi-input/helpers/types.d.ts +3 -3
- package/lib/multi-input/index.d.ts +5 -17
- package/lib/multi-input/index.js +6 -20
- package/lib/multi-input/themes/halo/dark/index.js +1 -1
- package/lib/multi-input/themes/halo/light/index.js +1 -1
- 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.json +2 -2
- package/lib/notification/custom-elements.md +4 -4
- package/lib/notification/elements/notification-tray.js +1 -3
- package/lib/notification/elements/notification.d.ts +2 -2
- package/lib/notification/elements/notification.js +3 -5
- package/lib/notification/helpers/types.d.ts +2 -2
- package/lib/number-field/custom-elements.json +2 -2
- package/lib/number-field/custom-elements.md +4 -4
- package/lib/number-field/index.d.ts +3 -3
- package/lib/number-field/index.js +3 -5
- package/lib/number-field/themes/halo/dark/index.js +2 -1
- package/lib/number-field/themes/halo/light/index.js +2 -1
- package/lib/number-field/themes/solar/charcoal/index.js +2 -1
- package/lib/number-field/themes/solar/pearl/index.js +2 -1
- package/lib/overlay/custom-elements.json +6 -9
- package/lib/overlay/custom-elements.md +7 -8
- package/lib/overlay/elements/overlay.d.ts +7 -7
- package/lib/overlay/elements/overlay.js +10 -19
- package/lib/overlay/helpers/types.d.ts +13 -13
- package/lib/overlay/managers/close-manager.d.ts +1 -1
- package/lib/overlay/managers/zindex-manager.d.ts +1 -1
- package/lib/overlay-menu/custom-elements.json +2 -2
- package/lib/overlay-menu/custom-elements.md +2 -2
- package/lib/overlay-menu/helpers/types.d.ts +2 -2
- package/lib/overlay-menu/index.d.ts +2 -2
- package/lib/overlay-menu/index.js +30 -32
- package/lib/pagination/custom-elements.json +1 -1
- package/lib/pagination/custom-elements.md +3 -3
- package/lib/pagination/index.d.ts +1 -2
- package/lib/pagination/index.js +2 -5
- package/lib/pagination/themes/halo/dark/index.js +1 -1
- package/lib/pagination/themes/halo/light/index.js +1 -1
- package/lib/pagination/themes/solar/charcoal/index.js +1 -1
- package/lib/pagination/themes/solar/pearl/index.js +1 -1
- package/lib/panel/index.js +1 -3
- package/lib/password-field/custom-elements.json +2 -6
- package/lib/password-field/custom-elements.md +4 -5
- package/lib/password-field/index.d.ts +2 -3
- package/lib/password-field/index.js +3 -6
- package/lib/password-field/themes/halo/dark/index.js +2 -1
- package/lib/password-field/themes/halo/light/index.js +2 -1
- package/lib/password-field/themes/solar/charcoal/index.js +2 -1
- package/lib/password-field/themes/solar/pearl/index.js +2 -1
- package/lib/pill/custom-elements.json +1 -1
- package/lib/pill/custom-elements.md +3 -3
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +2 -4
- package/lib/pill/themes/halo/dark/index.js +2 -1
- package/lib/pill/themes/halo/light/index.js +2 -1
- package/lib/pill/themes/solar/charcoal/index.js +2 -1
- package/lib/pill/themes/solar/pearl/index.js +2 -1
- package/lib/progress-bar/index.js +1 -3
- package/lib/radio-button/custom-elements.json +1 -1
- package/lib/radio-button/custom-elements.md +3 -3
- package/lib/radio-button/index.d.ts +1 -1
- package/lib/radio-button/index.js +2 -4
- package/lib/rating/custom-elements.json +1 -1
- package/lib/rating/custom-elements.md +3 -3
- package/lib/rating/index.d.ts +1 -1
- package/lib/rating/index.js +2 -4
- package/lib/search-field/custom-elements.json +3 -3
- package/lib/search-field/custom-elements.md +5 -5
- package/lib/search-field/index.d.ts +3 -3
- package/lib/search-field/index.js +4 -6
- package/lib/search-field/themes/halo/dark/index.js +2 -1
- package/lib/search-field/themes/halo/light/index.js +2 -1
- package/lib/search-field/themes/solar/charcoal/index.js +2 -1
- package/lib/search-field/themes/solar/pearl/index.js +2 -1
- package/lib/select/custom-elements.json +2 -2
- package/lib/select/custom-elements.md +4 -4
- package/lib/select/helpers/types.d.ts +2 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +4 -5
- package/lib/select/themes/halo/dark/index.js +2 -1
- package/lib/select/themes/halo/light/index.js +2 -1
- package/lib/select/themes/solar/charcoal/index.js +2 -1
- package/lib/select/themes/solar/pearl/index.js +2 -1
- package/lib/sidebar-layout/index.js +1 -3
- package/lib/slider/custom-elements.json +3 -3
- package/lib/slider/custom-elements.md +5 -5
- package/lib/slider/index.d.ts +3 -3
- package/lib/slider/index.js +100 -102
- package/lib/sparkline/index.js +1 -3
- package/lib/swing-gauge/index.js +1 -3
- package/lib/swing-gauge/types.d.ts +1 -1
- package/lib/tab/custom-elements.json +1 -1
- package/lib/tab/custom-elements.md +3 -3
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +2 -4
- package/lib/tab/themes/halo/dark/index.js +1 -1
- package/lib/tab/themes/halo/light/index.js +1 -1
- 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.json +1 -1
- package/lib/tab-bar/custom-elements.md +3 -3
- package/lib/tab-bar/index.d.ts +1 -1
- package/lib/tab-bar/index.js +2 -4
- package/lib/text-field/custom-elements.json +3 -3
- package/lib/text-field/custom-elements.md +5 -5
- package/lib/text-field/index.d.ts +3 -3
- package/lib/text-field/index.js +4 -6
- package/lib/text-field/themes/halo/dark/index.js +2 -1
- package/lib/text-field/themes/halo/light/index.js +2 -1
- package/lib/text-field/themes/solar/charcoal/index.js +2 -1
- package/lib/text-field/themes/solar/pearl/index.js +2 -1
- package/lib/time-picker/custom-elements.json +1 -1
- package/lib/time-picker/custom-elements.md +3 -3
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +2 -4
- package/lib/time-picker/themes/halo/dark/index.js +2 -1
- package/lib/time-picker/themes/halo/light/index.js +2 -1
- package/lib/time-picker/themes/solar/charcoal/index.js +2 -1
- package/lib/time-picker/themes/solar/pearl/index.js +2 -1
- package/lib/toggle/custom-elements.json +1 -1
- package/lib/toggle/custom-elements.md +3 -3
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +2 -4
- package/lib/toggle/themes/halo/dark/index.js +1 -1
- package/lib/toggle/themes/halo/light/index.js +1 -1
- package/lib/toggle/themes/solar/charcoal/index.js +1 -1
- package/lib/toggle/themes/solar/pearl/index.js +1 -1
- package/lib/tooltip/helpers/types.d.ts +10 -10
- package/lib/tooltip/index.js +1 -3
- package/lib/tornado-chart/elements/tornado-chart.js +1 -3
- package/lib/tornado-chart/themes/halo/dark/index.js +1 -1
- package/lib/tornado-chart/themes/halo/light/index.js +1 -1
- package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
- package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
- package/lib/tree/custom-elements.json +2 -2
- package/lib/tree/custom-elements.md +2 -2
- package/lib/tree/elements/tree-item.js +1 -3
- package/lib/tree/elements/tree.d.ts +2 -2
- package/lib/tree/elements/tree.js +2 -2
- package/lib/tree/helpers/renderer.d.ts +0 -4
- package/lib/tree/helpers/renderer.js +5 -5
- package/lib/tree/helpers/types.d.ts +2 -2
- package/lib/tree-select/custom-elements.json +7 -7
- package/lib/tree-select/custom-elements.md +7 -7
- package/lib/tree-select/helpers/types.d.ts +2 -2
- package/lib/tree-select/index.d.ts +5 -6
- package/lib/tree-select/index.js +15 -18
- package/lib/tree-select/themes/halo/dark/index.js +2 -1
- package/lib/tree-select/themes/halo/light/index.js +2 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +2 -1
- package/lib/tree-select/themes/solar/pearl/index.js +2 -1
- package/lib/version.js +1 -1
- package/package.json +9 -9
package/lib/slider/index.js
CHANGED
|
@@ -25,107 +25,11 @@ import { clamp, preventDefault, isDecimalNumber, countDecimalPlace } from './uti
|
|
|
25
25
|
* @attr {boolean} disabled - Set disabled state
|
|
26
26
|
* @prop {boolean} [disabled=false] - Set disabled state
|
|
27
27
|
*
|
|
28
|
-
* @fires value-changed - Fired when the `value`
|
|
29
|
-
* @fires from-changed - Fired when the `from`
|
|
30
|
-
* @fires to-changed - Fired when the `to`
|
|
28
|
+
* @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
|
|
29
|
+
* @fires from-changed - Fired when the user changes from's value. The event is not triggered if `from` property is changed programmatically.
|
|
30
|
+
* @fires to-changed - Fired when the user changes to's value. The event is not triggered if `to` property is changed programmatically.
|
|
31
31
|
*/
|
|
32
32
|
let Slider = class Slider extends ControlElement {
|
|
33
|
-
constructor() {
|
|
34
|
-
super();
|
|
35
|
-
/**
|
|
36
|
-
* Whether if the thumb is being drag
|
|
37
|
-
*/
|
|
38
|
-
this.dragging = false;
|
|
39
|
-
this.valuePrevious = '';
|
|
40
|
-
this.fromPrevious = '';
|
|
41
|
-
this.toPrevious = '';
|
|
42
|
-
/**
|
|
43
|
-
* Specified size of increment or decrement jump between value.
|
|
44
|
-
*/
|
|
45
|
-
this.step = '1';
|
|
46
|
-
/**
|
|
47
|
-
* Set minimum value of slider.
|
|
48
|
-
*/
|
|
49
|
-
this.min = '0';
|
|
50
|
-
/**
|
|
51
|
-
* Slider maximum value of slider.
|
|
52
|
-
*/
|
|
53
|
-
this.max = '100';
|
|
54
|
-
/**
|
|
55
|
-
* Uses with `range`. Low value of slider in range mode.
|
|
56
|
-
*/
|
|
57
|
-
this.from = '0';
|
|
58
|
-
/**
|
|
59
|
-
* Uses with `range`. High value of slider in range mode
|
|
60
|
-
*/
|
|
61
|
-
this.to = '100';
|
|
62
|
-
/**
|
|
63
|
-
* Set slider appearances to show pin mode.
|
|
64
|
-
* @ignore
|
|
65
|
-
* NOTE: Pin isn't applicable in Halo. Hide this from document
|
|
66
|
-
*/
|
|
67
|
-
this.pin = false;
|
|
68
|
-
/**
|
|
69
|
-
* Set slider to range mode. Instead of a single value, slider will provide `from` and `to`.
|
|
70
|
-
*/
|
|
71
|
-
this.range = false;
|
|
72
|
-
/**
|
|
73
|
-
* Show steps marker on slider.
|
|
74
|
-
*/
|
|
75
|
-
this.showSteps = false;
|
|
76
|
-
/**
|
|
77
|
-
* Show input number field.
|
|
78
|
-
*/
|
|
79
|
-
this.showInputField = null;
|
|
80
|
-
/**
|
|
81
|
-
* Uses with `range`. Set minimum allowance value (distance) between `from` and `to`.
|
|
82
|
-
*/
|
|
83
|
-
this.minRange = '0';
|
|
84
|
-
/**
|
|
85
|
-
* Slider element reference
|
|
86
|
-
*/
|
|
87
|
-
this.sliderRef = createRef();
|
|
88
|
-
/**
|
|
89
|
-
* Slider's track reference
|
|
90
|
-
*/
|
|
91
|
-
this.trackRef = createRef();
|
|
92
|
-
/**
|
|
93
|
-
* From value thumb reference, rendered only in range mode
|
|
94
|
-
*/
|
|
95
|
-
this.fromThumbRef = createRef();
|
|
96
|
-
/**
|
|
97
|
-
* To value thumb reference, rendered only in range mode
|
|
98
|
-
*/
|
|
99
|
-
this.toThumbRef = createRef();
|
|
100
|
-
/**
|
|
101
|
-
* Value thumb reference
|
|
102
|
-
*/
|
|
103
|
-
this.valueThumbRef = createRef();
|
|
104
|
-
/**
|
|
105
|
-
* Current focused thumb
|
|
106
|
-
*/
|
|
107
|
-
this.activeThumb = null;
|
|
108
|
-
/**
|
|
109
|
-
* Thumb that may involves data changes
|
|
110
|
-
*/
|
|
111
|
-
this.changedThumb = null;
|
|
112
|
-
/**
|
|
113
|
-
* @ignore
|
|
114
|
-
*/
|
|
115
|
-
this.onDrag = this.onDrag.bind(this);
|
|
116
|
-
/**
|
|
117
|
-
* @ignore
|
|
118
|
-
*/
|
|
119
|
-
this.onDragStart = this.onDragStart.bind(this);
|
|
120
|
-
/**
|
|
121
|
-
* @ignore
|
|
122
|
-
*/
|
|
123
|
-
this.onDragEnd = this.onDragEnd.bind(this);
|
|
124
|
-
/**
|
|
125
|
-
* @ignore
|
|
126
|
-
*/
|
|
127
|
-
this.onKeyDown = this.onKeyDown.bind(this);
|
|
128
|
-
}
|
|
129
33
|
/**
|
|
130
34
|
* Element version number
|
|
131
35
|
* @returns version number
|
|
@@ -315,6 +219,102 @@ let Slider = class Slider extends ControlElement {
|
|
|
315
219
|
get isShowInputField() {
|
|
316
220
|
return this.showInputField !== null && this.showInputField !== undefined;
|
|
317
221
|
}
|
|
222
|
+
constructor() {
|
|
223
|
+
super();
|
|
224
|
+
/**
|
|
225
|
+
* Whether if the thumb is being drag
|
|
226
|
+
*/
|
|
227
|
+
this.dragging = false;
|
|
228
|
+
this.valuePrevious = '';
|
|
229
|
+
this.fromPrevious = '';
|
|
230
|
+
this.toPrevious = '';
|
|
231
|
+
/**
|
|
232
|
+
* Specified size of increment or decrement jump between value.
|
|
233
|
+
*/
|
|
234
|
+
this.step = '1';
|
|
235
|
+
/**
|
|
236
|
+
* Set minimum value of slider.
|
|
237
|
+
*/
|
|
238
|
+
this.min = '0';
|
|
239
|
+
/**
|
|
240
|
+
* Slider maximum value of slider.
|
|
241
|
+
*/
|
|
242
|
+
this.max = '100';
|
|
243
|
+
/**
|
|
244
|
+
* Uses with `range`. Low value of slider in range mode.
|
|
245
|
+
*/
|
|
246
|
+
this.from = '0';
|
|
247
|
+
/**
|
|
248
|
+
* Uses with `range`. High value of slider in range mode
|
|
249
|
+
*/
|
|
250
|
+
this.to = '100';
|
|
251
|
+
/**
|
|
252
|
+
* Set slider appearances to show pin mode.
|
|
253
|
+
* @ignore
|
|
254
|
+
* NOTE: Pin isn't applicable in Halo. Hide this from document
|
|
255
|
+
*/
|
|
256
|
+
this.pin = false;
|
|
257
|
+
/**
|
|
258
|
+
* Set slider to range mode. Instead of a single value, slider will provide `from` and `to`.
|
|
259
|
+
*/
|
|
260
|
+
this.range = false;
|
|
261
|
+
/**
|
|
262
|
+
* Show steps marker on slider.
|
|
263
|
+
*/
|
|
264
|
+
this.showSteps = false;
|
|
265
|
+
/**
|
|
266
|
+
* Show input number field.
|
|
267
|
+
*/
|
|
268
|
+
this.showInputField = null;
|
|
269
|
+
/**
|
|
270
|
+
* Uses with `range`. Set minimum allowance value (distance) between `from` and `to`.
|
|
271
|
+
*/
|
|
272
|
+
this.minRange = '0';
|
|
273
|
+
/**
|
|
274
|
+
* Slider element reference
|
|
275
|
+
*/
|
|
276
|
+
this.sliderRef = createRef();
|
|
277
|
+
/**
|
|
278
|
+
* Slider's track reference
|
|
279
|
+
*/
|
|
280
|
+
this.trackRef = createRef();
|
|
281
|
+
/**
|
|
282
|
+
* From value thumb reference, rendered only in range mode
|
|
283
|
+
*/
|
|
284
|
+
this.fromThumbRef = createRef();
|
|
285
|
+
/**
|
|
286
|
+
* To value thumb reference, rendered only in range mode
|
|
287
|
+
*/
|
|
288
|
+
this.toThumbRef = createRef();
|
|
289
|
+
/**
|
|
290
|
+
* Value thumb reference
|
|
291
|
+
*/
|
|
292
|
+
this.valueThumbRef = createRef();
|
|
293
|
+
/**
|
|
294
|
+
* Current focused thumb
|
|
295
|
+
*/
|
|
296
|
+
this.activeThumb = null;
|
|
297
|
+
/**
|
|
298
|
+
* Thumb that may involves data changes
|
|
299
|
+
*/
|
|
300
|
+
this.changedThumb = null;
|
|
301
|
+
/**
|
|
302
|
+
* @ignore
|
|
303
|
+
*/
|
|
304
|
+
this.onDrag = this.onDrag.bind(this);
|
|
305
|
+
/**
|
|
306
|
+
* @ignore
|
|
307
|
+
*/
|
|
308
|
+
this.onDragStart = this.onDragStart.bind(this);
|
|
309
|
+
/**
|
|
310
|
+
* @ignore
|
|
311
|
+
*/
|
|
312
|
+
this.onDragEnd = this.onDragEnd.bind(this);
|
|
313
|
+
/**
|
|
314
|
+
* @ignore
|
|
315
|
+
*/
|
|
316
|
+
this.onKeyDown = this.onKeyDown.bind(this);
|
|
317
|
+
}
|
|
318
318
|
/**
|
|
319
319
|
* On first updated lifecycle
|
|
320
320
|
* @param changedProperties changed properties
|
|
@@ -1244,8 +1244,6 @@ __decorate([
|
|
|
1244
1244
|
state()
|
|
1245
1245
|
], Slider.prototype, "changedThumb", void 0);
|
|
1246
1246
|
Slider = __decorate([
|
|
1247
|
-
customElement('ef-slider'
|
|
1248
|
-
alias: 'coral-slider'
|
|
1249
|
-
})
|
|
1247
|
+
customElement('ef-slider')
|
|
1250
1248
|
], Slider);
|
|
1251
1249
|
export { Slider };
|
package/lib/sparkline/index.js
CHANGED
|
@@ -180,8 +180,6 @@ __decorate([
|
|
|
180
180
|
query('browser-sparkline-chart')
|
|
181
181
|
], Sparkline.prototype, "chart", void 0);
|
|
182
182
|
Sparkline = __decorate([
|
|
183
|
-
customElement('ef-sparkline'
|
|
184
|
-
alias: 'sapphire-sparkline'
|
|
185
|
-
})
|
|
183
|
+
customElement('ef-sparkline')
|
|
186
184
|
], Sparkline);
|
|
187
185
|
export { Sparkline };
|
package/lib/swing-gauge/index.js
CHANGED
|
@@ -763,8 +763,6 @@ __decorate([
|
|
|
763
763
|
query('[part=canvas]', true)
|
|
764
764
|
], SwingGauge.prototype, "canvas", void 0);
|
|
765
765
|
SwingGauge = __decorate([
|
|
766
|
-
customElement('ef-swing-gauge'
|
|
767
|
-
alias: 'sapphire-swing-gauge'
|
|
768
|
-
})
|
|
766
|
+
customElement('ef-swing-gauge')
|
|
769
767
|
], SwingGauge);
|
|
770
768
|
export { SwingGauge };
|
|
@@ -18,6 +18,6 @@ A building block for individual tab
|
|
|
18
18
|
|
|
19
19
|
## Events
|
|
20
20
|
|
|
21
|
-
| Event | Description
|
|
22
|
-
|
|
23
|
-
| `clear` |
|
|
21
|
+
| Event | Description |
|
|
22
|
+
|---------|--------------------------------------------|
|
|
23
|
+
| `clear` | Fired when the user clicks on clear button |
|
package/lib/tab/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import '../label/index.js';
|
|
|
10
10
|
* @attr {string} value - Tab's value
|
|
11
11
|
* @prop {string} [value=""] - Tab's value
|
|
12
12
|
*
|
|
13
|
-
* @fires clear -
|
|
13
|
+
* @fires clear - Fired when the user clicks on clear button
|
|
14
14
|
*/
|
|
15
15
|
export declare class Tab extends ControlElement {
|
|
16
16
|
/**
|
package/lib/tab/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import '../label/index.js';
|
|
|
16
16
|
* @attr {string} value - Tab's value
|
|
17
17
|
* @prop {string} [value=""] - Tab's value
|
|
18
18
|
*
|
|
19
|
-
* @fires clear -
|
|
19
|
+
* @fires clear - Fired when the user clicks on clear button
|
|
20
20
|
*/
|
|
21
21
|
let Tab = class Tab extends ControlElement {
|
|
22
22
|
constructor() {
|
|
@@ -236,8 +236,6 @@ __decorate([
|
|
|
236
236
|
state()
|
|
237
237
|
], Tab.prototype, "isSlotHasContent", void 0);
|
|
238
238
|
Tab = __decorate([
|
|
239
|
-
customElement('ef-tab'
|
|
240
|
-
alias: 'coral-tab'
|
|
241
|
-
})
|
|
239
|
+
customElement('ef-tab')
|
|
242
240
|
], Tab);
|
|
243
241
|
export { Tab };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/dark';
|
|
2
2
|
import '@refinitiv-ui/elements/label/themes/halo/dark';
|
|
3
3
|
|
|
4
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#404040;color:#ccc;height:36px;padding:9px 12px;outline:0;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#404040;color:#ccc;height:36px;padding:9px 12px;outline:0;font-size:12px;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-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:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#1429bd}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}: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:#1429bd}: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:#1429bd}: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[clears-on-hover]) [part=close-container],:host([level="3"]:hover[clears-on-hover]) [part=close-container],:host([level="3"][active][clears-on-hover]) [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"]:hover){border-color:#1429bd}:host([level="3"]:active){border-color:#0f1e8a}' }}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/light';
|
|
2
2
|
import '@refinitiv-ui/elements/label/themes/halo/light';
|
|
3
3
|
|
|
4
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#e6e6e6;color:#0d0d0d;height:36px;padding:9px 12px;outline:0;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#e6e6e6;color:#0d0d0d;height:36px;padding:9px 12px;outline:0;font-size:12px;font-weight:500;transition:120ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-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:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}:host([active]){color:#fff;background-color:#334bff}:host([active]:hover){background-color:#1429bd}:host([active]:hover[clears-on-hover]) [part=close-container]{background-color:#1429bd;box-shadow:-1em 0 .75em -.5em #1429bd}: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:#1429bd}: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:#1429bd}: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[clears-on-hover]) [part=close-container],:host([level="3"]:hover[clears-on-hover]) [part=close-container],:host([level="3"][active][clears-on-hover]) [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"]:hover){border-color:#1429bd}:host([level="3"]:active){border-color:#0f1e8a}' }}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
|
|
2
2
|
import '@refinitiv-ui/elements/label/themes/solar/charcoal';
|
|
3
3
|
|
|
4
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#3c3c42;color:#c2c2c2;height:23px;padding:7px 15px;outline:0;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#3c3c42;color:#c2c2c2;height:23px;padding:7px 15px;outline:0;font-size:13px;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-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/icon/themes/solar/pearl';
|
|
2
2
|
import '@refinitiv-ui/elements/label/themes/solar/pearl';
|
|
3
3
|
|
|
4
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#fafbfc;color:#505050;height:23px;padding:7px 15px;outline:0;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-tab', styles: ':host{cursor:pointer;background-color:#fafbfc;color:#505050;height:23px;padding:7px 15px;outline:0;font-size:13px;font-weight:500;transition:70ms;position:relative;box-sizing:border-box;-webkit-user-select:none;-moz-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}' }}));
|
|
@@ -13,6 +13,6 @@ Container for tabs
|
|
|
13
13
|
|
|
14
14
|
## Events
|
|
15
15
|
|
|
16
|
-
| Event | Description
|
|
17
|
-
|
|
18
|
-
| `value-changed` | Fired when the `value`
|
|
16
|
+
| Event | Description |
|
|
17
|
+
|-----------------|--------------------------------------------------|
|
|
18
|
+
| `value-changed` | Fired when the user changes an active tab. The event is not triggered if `value` property is changed programmatically. |
|
package/lib/tab-bar/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../layout/index.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* Container for tabs
|
|
7
7
|
*
|
|
8
|
-
* @fires value-changed - Fired when the `value`
|
|
8
|
+
* @fires value-changed - Fired when the user changes an active tab. The event is not triggered if `value` property is changed programmatically.
|
|
9
9
|
*/
|
|
10
10
|
export declare class TabBar extends BasicElement {
|
|
11
11
|
/**
|
package/lib/tab-bar/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const BAR_TRAVEL_DISTANCE = 150; // scroll distance
|
|
|
12
12
|
/**
|
|
13
13
|
* Container for tabs
|
|
14
14
|
*
|
|
15
|
-
* @fires value-changed - Fired when the `value`
|
|
15
|
+
* @fires value-changed - Fired when the user changes an active tab. The event is not triggered if `value` property is changed programmatically.
|
|
16
16
|
*/
|
|
17
17
|
let TabBar = class TabBar extends BasicElement {
|
|
18
18
|
constructor() {
|
|
@@ -432,8 +432,6 @@ __decorate([
|
|
|
432
432
|
query('[part="right-btn"]')
|
|
433
433
|
], TabBar.prototype, "rightBtn", void 0);
|
|
434
434
|
TabBar = __decorate([
|
|
435
|
-
customElement('ef-tab-bar'
|
|
436
|
-
alias: 'coral-tab-bar'
|
|
437
|
-
})
|
|
435
|
+
customElement('ef-tab-bar')
|
|
438
436
|
], TabBar);
|
|
439
437
|
export { TabBar };
|
|
@@ -161,15 +161,15 @@
|
|
|
161
161
|
"events": [
|
|
162
162
|
{
|
|
163
163
|
"name": "value-changed",
|
|
164
|
-
"description": "
|
|
164
|
+
"description": "Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically."
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"name": "error-changed",
|
|
168
|
-
"description": "
|
|
168
|
+
"description": "Fired when the user inputs an invalid value. The event is not triggered if `error` property is changed programmatically."
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "icon-click",
|
|
172
|
-
"description": "
|
|
172
|
+
"description": "Fired when the user taps on icon added into control's slot."
|
|
173
173
|
}
|
|
174
174
|
]
|
|
175
175
|
}
|
|
@@ -21,8 +21,8 @@ Form control element for text.
|
|
|
21
21
|
|
|
22
22
|
## Events
|
|
23
23
|
|
|
24
|
-
| Event | Description
|
|
25
|
-
|
|
26
|
-
| `error-changed` |
|
|
27
|
-
| `icon-click` |
|
|
28
|
-
| `value-changed` |
|
|
24
|
+
| Event | Description |
|
|
25
|
+
|-----------------|--------------------------------------------------|
|
|
26
|
+
| `error-changed` | Fired when the user inputs an invalid value. The event is not triggered if `error` property is changed programmatically. |
|
|
27
|
+
| `icon-click` | Fired when the user taps on icon added into control's slot. |
|
|
28
|
+
| `value-changed` | Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically. |
|
|
@@ -5,9 +5,9 @@ import '../icon/index.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* Form control element for text.
|
|
7
7
|
*
|
|
8
|
-
* @fires value-changed -
|
|
9
|
-
* @fires error-changed -
|
|
10
|
-
* @fires icon-click -
|
|
8
|
+
* @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
|
|
9
|
+
* @fires error-changed - Fired when the user inputs an invalid value. The event is not triggered if `error` property is changed programmatically.
|
|
10
|
+
* @fires icon-click - Fired when the user taps on icon added into control's slot.
|
|
11
11
|
*
|
|
12
12
|
* @attr {boolean} disabled - Set disabled state
|
|
13
13
|
* @prop {boolean} [disabled=false] - Set disabled state
|
package/lib/text-field/index.js
CHANGED
|
@@ -12,9 +12,9 @@ const hasChanged = (newVal, oldVal) => oldVal === undefined ? false : newVal !==
|
|
|
12
12
|
/**
|
|
13
13
|
* Form control element for text.
|
|
14
14
|
*
|
|
15
|
-
* @fires value-changed -
|
|
16
|
-
* @fires error-changed -
|
|
17
|
-
* @fires icon-click -
|
|
15
|
+
* @fires value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
|
|
16
|
+
* @fires error-changed - Fired when the user inputs an invalid value. The event is not triggered if `error` property is changed programmatically.
|
|
17
|
+
* @fires icon-click - Fired when the user taps on icon added into control's slot.
|
|
18
18
|
*
|
|
19
19
|
* @attr {boolean} disabled - Set disabled state
|
|
20
20
|
* @prop {boolean} [disabled=false] - Set disabled state
|
|
@@ -275,8 +275,6 @@ __decorate([
|
|
|
275
275
|
property({ type: Number, attribute: 'minlength', reflect: true, hasChanged })
|
|
276
276
|
], TextField.prototype, "minLength", void 0);
|
|
277
277
|
TextField = __decorate([
|
|
278
|
-
customElement('ef-text-field'
|
|
279
|
-
alias: 'coral-text-field'
|
|
280
|
-
})
|
|
278
|
+
customElement('ef-text-field')
|
|
281
279
|
], TextField);
|
|
282
280
|
export { TextField };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/dark';
|
|
2
|
+
import '@refinitiv-ui/elements/tooltip/themes/halo/dark';
|
|
2
3
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:12px;font-weight:400;height:24px;width:152px;max-width:100%;padding:0 8px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;border-radius:0;background-color:#0d0d0d;text-overflow:ellipsis;border:1px solid #404040;color:#ccc}:host([disabled]){border:1px solid rgba(64,64,64,.5);color:rgba(204,204,204,.5);background-color:rgba(13,13,13,.5)}:host([type=number]){padding-right:0}:host([warning]){border:1px solid #ffc800}:host([warning][disabled]){color:rgba(204,204,204,.5);border:1px solid rgba(127,100,0,.5)}:host([error]),:host([error][warning]){border:1px solid #f5475b}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(204,204,204,.5);border:1px solid rgba(160,28,43,.5)}:host ::-ms-clear{display:none}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#334bff}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#ccc;min-width:1em;margin-left:2px}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host ::-moz-selection{color:#fff;background-color:#334bff}:host ::selection{color:#fff;background-color:#334bff}:host(:not([readonly]):not([error]):not([warning]):not([focused]):hover){border-color:grey;color:#fff}:host(:not([readonly]):not([error]):not([warning]):not([focused]):hover) [part=icon]{color:#6678ff}:host([warning]:hover:not([readonly]):not([focused])){color:#fff;border-color:#ffe999}:host([warning][disabled]),:host([warning][readonly]:not([focused])){border-color:rgba(255,233,153,.5)}:host([error]:hover:not([readonly]):not([focused])){color:#fff;border-color:#faa8b1}:host([error][disabled]),:host([error][readonly]:not([focused])),:host([error][warning][disabled]){border-color:rgba(250,168,177,.5)}:host([readonly]:not([focused])){border-color:rgba(64,64,64,.5);background-color:rgba(13,13,13,.5)}:host([readonly]:not([focused])) [part=icon]{color:rgba(204,204,204,.5)}:host([focused]),:host([focused][error][warning]){border-color:#334bff;color:#fff}:host([focused]) [part=icon],:host([focused][error][warning]) [part=icon]{color:#6678ff}' }}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/light';
|
|
2
|
+
import '@refinitiv-ui/elements/tooltip/themes/halo/light';
|
|
2
3
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:12px;font-weight:400;height:24px;width:152px;max-width:100%;padding:0 8px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;border-radius:0;background-color:#fff;text-overflow:ellipsis;border:1px solid #595959;color:#404040}:host([disabled]){border:1px solid rgba(89,89,89,.5);color:rgba(64,64,64,.5);background-color:rgba(255,255,255,.5)}:host([type=number]){padding-right:0}:host([warning]){border:1px solid #cca000}:host([warning][disabled]){color:rgba(64,64,64,.5);border:1px solid rgba(204,160,0,.5)}:host([error]),:host([error][warning]){border:1px solid #d94255}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(64,64,64,.5);border:1px solid rgba(182,50,67,.5)}:host ::-ms-clear{display:none}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#334bff}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#404040;min-width:1em;margin-left:2px}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host ::-moz-selection{color:#fff;background-color:#334bff}:host ::selection{color:#fff;background-color:#334bff}:host(:not([readonly]):not([error]):not([warning]):not([focused]):hover){border-color:#0d0d0d;color:#0d0d0d}:host(:not([readonly]):not([error]):not([warning]):not([focused]):hover) [part=icon]{color:#334bff}:host([warning]:hover:not([readonly]):not([focused])){color:#0d0d0d;border-color:#ffe999}:host([warning][disabled]),:host([warning][readonly]:not([focused])){border-color:rgba(255,233,153,.5)}:host([error]:hover:not([readonly]):not([focused])){color:#0d0d0d;border-color:#eeacb4}:host([error][disabled]),:host([error][readonly]:not([focused])),:host([error][warning][disabled]){border-color:rgba(238,172,180,.5)}:host([readonly]:not([focused])){border-color:rgba(89,89,89,.5);background-color:rgba(255,255,255,.5)}:host([readonly]:not([focused])) [part=icon]{color:rgba(64,64,64,.5)}:host([focused]),:host([focused][error][warning]){border-color:#334bff;color:#0d0d0d}:host([focused]) [part=icon],:host([focused][error][warning]) [part=icon]{color:#334bff}' }}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
|
|
2
|
+
import '@refinitiv-ui/elements/tooltip/themes/solar/charcoal';
|
|
2
3
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;height:23px;width:140px;max-width:100%;padding:0 5px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#c2c2c2;border-radius:0;text-overflow:ellipsis;background-color:#000;border:1px solid #4a4a52}:host([type=number]){padding-right:0}:host([error]),:host([error][warning]){border:1px solid #f5475b}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(194,194,194,.6);border:1px solid rgba(245,71,91,.6)}:host ::-ms-clear{display:none}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#e2e2e2;min-width:1em}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]){border:1px solid rgba(74,74,82,.6);color:rgba(194,194,194,.6)}:host([readonly]){border:1px solid rgba(74,74,82,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #77777d}:host([warning]){background-color:#000;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(194,194,194,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#000;border:1px solid #f5475b}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(245,71,91,.6);color:rgba(194,194,194,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(245,71,91,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #f87584}:host([highlight]){background-color:#1b252f;border:1px solid #4a4a52}:host([highlight][disabled]){border:1px solid rgba(74,74,82,.6);color:rgba(194,194,194,.6);background-color:rgba(27,37,47,.6)}:host([highlight][readonly]){border:1px solid rgba(74,74,82,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #77777d}:host([indirect]){color:#0fd;background-color:#000;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,255,221,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#f93;border-style:dotted}:host([disabled]) [part=input]::-webkit-input-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]::-moz-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]:-ms-input-placeholder{color:rgba(102,101,112,.6)}' }}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/pearl';
|
|
2
|
+
import '@refinitiv-ui/elements/tooltip/themes/solar/pearl';
|
|
2
3
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:
|
|
4
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-text-field', styles: ':host{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;height:23px;width:140px;max-width:100%;padding:0 5px;margin:1px 0;outline:0;box-sizing:border-box;display:inline-flex;align-items:center;position:relative;vertical-align:middle;color:#484848;border-radius:0;text-overflow:ellipsis;background-color:#fff;border:1px solid #a9afba}:host([type=number]){padding-right:0}:host([error]),:host([error][warning]){border:1px solid #d94255}:host([error][disabled]),:host([error][warning][disabled]){color:rgba(72,72,72,.6);border:1px solid rgba(217,66,85,.6)}:host ::-ms-clear{display:none}:host [part=input]{color:inherit;padding:0;margin:0;flex:1 1 auto;min-width:0;width:100%;height:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-overflow:ellipsis;touch-action:manipulation}:host [part=input]::-webkit-clear-button,:host [part=input]::-webkit-inner-spin-button,:host [part=input]::-webkit-search-cancel-button,:host [part=input]::-webkit-search-decoration{-webkit-appearance:none}:host [part=input]:invalid{box-shadow:none}:host [part=icon]{color:#acafb5;min-width:1em}:host([disabled]) [part=input]{-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6)}:host([readonly]){border:1px solid rgba(169,175,186,.6)}:host(:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([warning]){background-color:#fff;border:1px solid #f93}:host([warning][disabled]){border:1px solid rgba(255,153,51,.6);color:rgba(72,72,72,.6)}:host([warning][readonly]){border:1px solid rgba(255,153,51,.6)}:host([warning]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #ffb366}:host([error]),:host([error][warning]:not([focused])){background-color:#fff;border:1px solid #d94255}:host([error][disabled]),:host([error][warning]:not([focused])[disabled]){border:1px solid rgba(217,66,85,.6);color:rgba(72,72,72,.6)}:host([error][readonly]),:host([error][warning]:not([focused])[readonly]){border:1px solid rgba(217,66,85,.6)}:host([error]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover),:host([error][warning]:not([focused]):not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #e37180}:host([highlight]){background-color:#b0ffff;border:1px solid #a9afba}:host([highlight][disabled]){border:1px solid rgba(169,175,186,.6);color:rgba(72,72,72,.6);background-color:rgba(176,255,255,.6)}:host([highlight][readonly]){border:1px solid rgba(169,175,186,.6)}:host([highlight]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #bfc3cb}:host([indirect]){color:#009494;background-color:#effefe;border:1px solid #898623}:host([indirect][disabled]){border:1px solid rgba(137,134,35,.6);color:rgba(0,148,148,.6)}:host([indirect][readonly]){border:1px solid rgba(137,134,35,.6)}:host([indirect]:not([focused]):not(:focus):not([disabled]):not([readonly]):hover){border:1px solid #a7a45a}:host([focused]){background-size:100% 2px,100% 1px!important;background-position:center bottom!important;border-color:#ffb266;border-style:dotted}:host([disabled]) [part=input]::-webkit-input-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]::-moz-placeholder{color:rgba(102,101,112,.6)}:host([disabled]) [part=input]:-ms-input-placeholder{color:rgba(102,101,112,.6)}' }}));
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"events": [
|
|
108
108
|
{
|
|
109
109
|
"name": "value-changed",
|
|
110
|
-
"description": "
|
|
110
|
+
"description": "Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically."
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
113
|
"methods": [
|
|
@@ -23,6 +23,6 @@ Control the time input
|
|
|
23
23
|
|
|
24
24
|
## Events
|
|
25
25
|
|
|
26
|
-
| Event | Description
|
|
27
|
-
|
|
28
|
-
| `value-changed` |
|
|
26
|
+
| Event | Description |
|
|
27
|
+
|-----------------|--------------------------------------------------|
|
|
28
|
+
| `value-changed` | Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically. |
|
|
@@ -10,7 +10,7 @@ declare enum Segment {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Control the time input
|
|
13
|
-
* @event value-changed -
|
|
13
|
+
* @event value-changed - Fired when the user commits a value change. The event is not triggered if `value` property is changed programmatically.
|
|
14
14
|
*
|
|
15
15
|
* @attr {boolean} readonly - Set readonly state
|
|
16
16
|
* @prop {boolean} [readonly=false] - Set readonly state
|