@refinitiv-ui/elements 7.12.1 → 7.12.2
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 +6 -0
- package/lib/slider/elements/slider.js +5 -2
- package/lib/version.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.12.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.12.1...@refinitiv-ui/elements@7.12.2) (2024-06-24)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **slider:** resolve missing thumb reference when from and to are initially equal ([#1178](https://github.com/Refinitiv/refinitiv-ui/issues/1178)) ([b7a72f3](https://github.com/Refinitiv/refinitiv-ui/commit/b7a72f3f3155fc80e2a6d2ef64cc6a3b4f71523b))
|
|
11
|
+
|
|
6
12
|
## [7.12.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.12.0...@refinitiv-ui/elements@7.12.1) (2024-06-17)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -862,12 +862,15 @@ let Slider = class Slider extends FormFieldElement {
|
|
|
862
862
|
if (distanceFrom < distanceTo) {
|
|
863
863
|
this.changedThumb = this.fromThumbRef.value;
|
|
864
864
|
this.fromPreviousInput = this.from;
|
|
865
|
+
// When from === to & changedThumb is already set,
|
|
866
|
+
// use its latest value and z-index will determine thumb on top.
|
|
867
|
+
// If this's the first drag, changedThumb would be unset.
|
|
868
|
+
// In that case, set changedThumb to "to" as it appears after "from" in the DOM.
|
|
865
869
|
}
|
|
866
|
-
else if (distanceFrom > distanceTo) {
|
|
870
|
+
else if (distanceFrom > distanceTo || !this.changedThumb) {
|
|
867
871
|
this.changedThumb = this.toThumbRef.value;
|
|
868
872
|
this.toPreviousInput = this.to;
|
|
869
873
|
}
|
|
870
|
-
// When from === to, use latest value of changedThumb and z-index will determine thumb on top
|
|
871
874
|
}
|
|
872
875
|
else {
|
|
873
876
|
this.changedThumb = this.valueThumbRef.value;
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.12.
|
|
1
|
+
export const VERSION = '7.12.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinitiv-ui/elements",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.2",
|
|
4
4
|
"description": "Element Framework Elements",
|
|
5
5
|
"author": "LSEG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
},
|
|
343
343
|
"dependencies": {
|
|
344
344
|
"@lit-labs/context": "^0.3.1",
|
|
345
|
-
"@refinitiv-ui/halo-theme": "^7.4.
|
|
346
|
-
"@refinitiv-ui/solar-theme": "^7.3.
|
|
345
|
+
"@refinitiv-ui/halo-theme": "^7.4.1",
|
|
346
|
+
"@refinitiv-ui/solar-theme": "^7.3.1",
|
|
347
347
|
"chart.js": "^4.4.2",
|
|
348
348
|
"chartjs-adapter-date-fns": "^3.0.0",
|
|
349
349
|
"d3-interpolate": "^3.0.1",
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
},
|
|
355
355
|
"devDependencies": {
|
|
356
356
|
"@refinitiv-ui/core": "^7.4.3",
|
|
357
|
-
"@refinitiv-ui/demo-block": "^7.1.
|
|
357
|
+
"@refinitiv-ui/demo-block": "^7.1.12",
|
|
358
358
|
"@refinitiv-ui/i18n": "^7.1.4",
|
|
359
359
|
"@refinitiv-ui/phrasebook": "^7.1.1",
|
|
360
360
|
"@refinitiv-ui/test-helpers": "^7.1.1",
|
|
@@ -373,5 +373,5 @@
|
|
|
373
373
|
"publishConfig": {
|
|
374
374
|
"access": "public"
|
|
375
375
|
},
|
|
376
|
-
"gitHead": "
|
|
376
|
+
"gitHead": "a65f3cc824edd761f8989dd67d23625f6d0c026e"
|
|
377
377
|
}
|